composio 0.1.0
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 +7 -0
- data/Gemfile +11 -0
- data/Gemfile.lock +93 -0
- data/README.md +1779 -0
- data/Rakefile +10 -0
- data/composio.gemspec +39 -0
- data/header.png +0 -0
- data/lib/composio/api/actions_api.rb +1062 -0
- data/lib/composio/api/api_keys_api.rb +268 -0
- data/lib/composio/api/apps_api.rb +266 -0
- data/lib/composio/api/auth_api.rb +370 -0
- data/lib/composio/api/cli_api.rb +266 -0
- data/lib/composio/api/connections_api.rb +591 -0
- data/lib/composio/api/integrations_api.rb +578 -0
- data/lib/composio/api/logs_api.rb +166 -0
- data/lib/composio/api/metadata_api.rb +180 -0
- data/lib/composio/api/team_api.rb +188 -0
- data/lib/composio/api/triggers_api.rb +1222 -0
- data/lib/composio/api_client.rb +436 -0
- data/lib/composio/api_client_custom.rb +14 -0
- data/lib/composio/api_error.rb +53 -0
- data/lib/composio/configuration.rb +330 -0
- data/lib/composio/models/action_details.rb +357 -0
- data/lib/composio/models/action_details_minimal.rb +329 -0
- data/lib/composio/models/action_execution_req_dto.rb +260 -0
- data/lib/composio/models/action_execution_res_dto.rb +238 -0
- data/lib/composio/models/action_log_data.rb +345 -0
- data/lib/composio/models/action_metadata.rb +402 -0
- data/lib/composio/models/action_metadata_type.rb +101 -0
- data/lib/composio/models/actions_controller_v1.rb +222 -0
- data/lib/composio/models/actions_list_response_dto.rb +250 -0
- data/lib/composio/models/actions_minimal_list_response_dto.rb +250 -0
- data/lib/composio/models/actions_query_dto.rb +300 -0
- data/lib/composio/models/active_trigger_instance.rb +311 -0
- data/lib/composio/models/active_triggers_res_dto.rb +238 -0
- data/lib/composio/models/add_repo_url_req_dto.rb +221 -0
- data/lib/composio/models/add_repo_url_res_dto.rb +221 -0
- data/lib/composio/models/add_tools_req_dto.rb +251 -0
- data/lib/composio/models/add_tools_request_dto.rb +251 -0
- data/lib/composio/models/api_key_res_dto.rb +323 -0
- data/lib/composio/models/app_info_response_dto.rb +323 -0
- data/lib/composio/models/app_list_res_dto.rb +238 -0
- data/lib/composio/models/app_query_dto.rb +216 -0
- data/lib/composio/models/auth_config_dto.rb +229 -0
- data/lib/composio/models/cli_query_dto.rb +231 -0
- data/lib/composio/models/connected_account_response_dto.rb +331 -0
- data/lib/composio/models/connection_params.rb +395 -0
- data/lib/composio/models/connection_params_for_account.rb +323 -0
- data/lib/composio/models/connection_params_headers.rb +224 -0
- data/lib/composio/models/connection_with_app_data.rb +358 -0
- data/lib/composio/models/connection_with_app_data_created_at.rb +101 -0
- data/lib/composio/models/connector_list_item_dto.rb +376 -0
- data/lib/composio/models/connector_list_item_dto_created_at.rb +102 -0
- data/lib/composio/models/connector_list_item_dto_updated_at.rb +102 -0
- data/lib/composio/models/create_connector_payload_dto.rb +274 -0
- data/lib/composio/models/create_connector_payload_dto_use_composio_auth.rb +226 -0
- data/lib/composio/models/delete_api_key_req_dto.rb +221 -0
- data/lib/composio/models/delete_api_key_response_dto.rb +221 -0
- data/lib/composio/models/delete_row_apidto.rb +236 -0
- data/lib/composio/models/delete_tools_req_dto.rb +221 -0
- data/lib/composio/models/delete_tools_res_dto.rb +221 -0
- data/lib/composio/models/direct_execute_req_dto.rb +262 -0
- data/lib/composio/models/enable_trigger_body_dto.rb +221 -0
- data/lib/composio/models/enable_trigger_params_dto.rb +236 -0
- data/lib/composio/models/execute_action_res_dto.rb +236 -0
- data/lib/composio/models/generate_api_key_req_dto.rb +221 -0
- data/lib/composio/models/generate_cli_session_req_dto.rb +221 -0
- data/lib/composio/models/generate_cli_session_res_dto.rb +221 -0
- data/lib/composio/models/get_active_triggers_query_dto.rb +276 -0
- data/lib/composio/models/get_cli_session_res_dto.rb +236 -0
- data/lib/composio/models/get_connections_query_dto.rb +287 -0
- data/lib/composio/models/get_connections_response_dto.rb +250 -0
- data/lib/composio/models/get_connections_result.rb +236 -0
- data/lib/composio/models/get_connector_info_res_dto.rb +417 -0
- data/lib/composio/models/get_connector_list_res_dto.rb +253 -0
- data/lib/composio/models/get_logs_dto.rb +288 -0
- data/lib/composio/models/get_logs_query_dto.rb +246 -0
- data/lib/composio/models/get_trigger_params_dto.rb +221 -0
- data/lib/composio/models/get_trigger_response_dto.rb +230 -0
- data/lib/composio/models/handle_trigger_body_dto.rb +221 -0
- data/lib/composio/models/handle_trigger_params_dto.rb +236 -0
- data/lib/composio/models/identify_client_req_dto.rb +231 -0
- data/lib/composio/models/identify_client_res_dto.rb +251 -0
- data/lib/composio/models/initiate_connection_payload_dto.rb +281 -0
- data/lib/composio/models/initiate_connection_response.rb +272 -0
- data/lib/composio/models/invite_member_req_dto.rb +251 -0
- data/lib/composio/models/job_status.rb +37 -0
- data/lib/composio/models/list_triggers_query_dto.rb +246 -0
- data/lib/composio/models/logout_res_dto.rb +221 -0
- data/lib/composio/models/logs_res_dto.rb +233 -0
- data/lib/composio/models/magic_link_req_dto.rb +236 -0
- data/lib/composio/models/magic_link_res_dto.rb +220 -0
- data/lib/composio/models/member_res_dto.rb +305 -0
- data/lib/composio/models/meta.rb +220 -0
- data/lib/composio/models/meta_app.rb +220 -0
- data/lib/composio/models/metadata_query_dto.rb +221 -0
- data/lib/composio/models/metadata_req_dto.rb +232 -0
- data/lib/composio/models/o_auth2_callback_query_dto.rb +220 -0
- data/lib/composio/models/open_api_spec_list_res_dto.rb +436 -0
- data/lib/composio/models/page_info.rb +338 -0
- data/lib/composio/models/page_info_dto.rb +248 -0
- data/lib/composio/models/patch_connector_req_dto.rb +226 -0
- data/lib/composio/models/patch_connector_res_dto.rb +221 -0
- data/lib/composio/models/proxy_execution_req_dto.rb +234 -0
- data/lib/composio/models/redirect_uri_dto.rb +215 -0
- data/lib/composio/models/set_callback_url_body_dto.rb +221 -0
- data/lib/composio/models/single_app_info_res_dto.rb +394 -0
- data/lib/composio/models/single_trigger_res_dto.rb +336 -0
- data/lib/composio/models/status.rb +37 -0
- data/lib/composio/models/switch_trigger_status_body_dto.rb +221 -0
- data/lib/composio/models/switch_trigger_status_params_dto.rb +221 -0
- data/lib/composio/models/time.rb +41 -0
- data/lib/composio/models/toggle_connected_account_response_dto.rb +220 -0
- data/lib/composio/models/toggle_trigger_state_response_dto.rb +220 -0
- data/lib/composio/models/tools_execute_req_dto.rb +275 -0
- data/lib/composio/models/track_client_req_dto.rb +240 -0
- data/lib/composio/models/track_client_res_dto.rb +221 -0
- data/lib/composio/models/trigger_config.rb +237 -0
- data/lib/composio/models/trigger_instance_params_dto.rb +221 -0
- data/lib/composio/models/trigger_log_data.rb +345 -0
- data/lib/composio/models/trigger_log_item_dto.rb +336 -0
- data/lib/composio/models/trigger_logs_res_dto.rb +236 -0
- data/lib/composio/models/trigger_metadata.rb +402 -0
- data/lib/composio/models/trigger_metadata_dto.rb +347 -0
- data/lib/composio/models/trigger_metadata_type.rb +101 -0
- data/lib/composio/models/trigger_res_dto.rb +361 -0
- data/lib/composio/models/trigger_response_dto.rb +241 -0
- data/lib/composio/models/trigger_toggle_info_response_dto.rb +221 -0
- data/lib/composio/models/triggers_enabled_toggle_req_dto.rb +221 -0
- data/lib/composio/models/triggers_enabled_toggle_res_dto.rb +221 -0
- data/lib/composio/models/type.rb +37 -0
- data/lib/composio/models/user_git_user_info.rb +230 -0
- data/lib/composio/models/verify_cli_code_res_dto.rb +251 -0
- data/lib/composio/models/verify_magic_link_data_dto.rb +263 -0
- data/lib/composio/models/verify_magic_link_req_dto.rb +221 -0
- data/lib/composio/models/verify_magic_link_res_dto.rb +230 -0
- data/lib/composio/models/webhook_url_response_dto.rb +231 -0
- data/lib/composio/version.rb +11 -0
- data/lib/composio.rb +214 -0
- data/spec/api/actions_api_spec.rb +164 -0
- data/spec/api/api_keys_api_spec.rb +61 -0
- data/spec/api/apps_api_spec.rb +63 -0
- data/spec/api/auth_api_spec.rb +73 -0
- data/spec/api/cli_api_spec.rb +63 -0
- data/spec/api/connections_api_spec.rb +103 -0
- data/spec/api/integrations_api_spec.rb +96 -0
- data/spec/api/logs_api_spec.rb +48 -0
- data/spec/api/metadata_api_spec.rb +50 -0
- data/spec/api/team_api_spec.rb +50 -0
- data/spec/api/triggers_api_spec.rb +188 -0
- data/spec/api_client_spec.rb +191 -0
- data/spec/configuration_spec.rb +38 -0
- data/spec/models/action_details_minimal_spec.rb +76 -0
- data/spec/models/action_details_spec.rb +88 -0
- data/spec/models/action_execution_req_dto_spec.rb +58 -0
- data/spec/models/action_execution_res_dto_spec.rb +40 -0
- data/spec/models/action_log_data_spec.rb +70 -0
- data/spec/models/action_metadata_spec.rb +88 -0
- data/spec/models/action_metadata_type_spec.rb +25 -0
- data/spec/models/actions_controller_v1_spec.rb +28 -0
- data/spec/models/actions_list_response_dto_spec.rb +40 -0
- data/spec/models/actions_minimal_list_response_dto_spec.rb +40 -0
- data/spec/models/actions_query_dto_spec.rb +82 -0
- data/spec/models/active_trigger_instance_spec.rb +70 -0
- data/spec/models/active_triggers_res_dto_spec.rb +34 -0
- data/spec/models/add_repo_url_req_dto_spec.rb +28 -0
- data/spec/models/add_repo_url_res_dto_spec.rb +28 -0
- data/spec/models/add_tools_req_dto_spec.rb +40 -0
- data/spec/models/add_tools_request_dto_spec.rb +40 -0
- data/spec/models/api_key_res_dto_spec.rb +52 -0
- data/spec/models/app_info_response_dto_spec.rb +70 -0
- data/spec/models/app_list_res_dto_spec.rb +34 -0
- data/spec/models/app_query_dto_spec.rb +28 -0
- data/spec/models/auth_config_dto_spec.rb +34 -0
- data/spec/models/cli_query_dto_spec.rb +34 -0
- data/spec/models/connected_account_response_dto_spec.rb +82 -0
- data/spec/models/connection_params_for_account_spec.rb +100 -0
- data/spec/models/connection_params_headers_spec.rb +34 -0
- data/spec/models/connection_params_spec.rb +118 -0
- data/spec/models/connection_with_app_data_created_at_spec.rb +25 -0
- data/spec/models/connection_with_app_data_spec.rb +100 -0
- data/spec/models/connector_list_item_dto_created_at_spec.rb +25 -0
- data/spec/models/connector_list_item_dto_spec.rb +94 -0
- data/spec/models/connector_list_item_dto_updated_at_spec.rb +25 -0
- data/spec/models/create_connector_payload_dto_spec.rb +58 -0
- data/spec/models/create_connector_payload_dto_use_composio_auth_spec.rb +22 -0
- data/spec/models/delete_api_key_req_dto_spec.rb +28 -0
- data/spec/models/delete_api_key_response_dto_spec.rb +28 -0
- data/spec/models/delete_row_apidto_spec.rb +34 -0
- data/spec/models/delete_tools_req_dto_spec.rb +28 -0
- data/spec/models/delete_tools_res_dto_spec.rb +28 -0
- data/spec/models/direct_execute_req_dto_spec.rb +46 -0
- data/spec/models/enable_trigger_body_dto_spec.rb +28 -0
- data/spec/models/enable_trigger_params_dto_spec.rb +34 -0
- data/spec/models/execute_action_res_dto_spec.rb +34 -0
- data/spec/models/generate_api_key_req_dto_spec.rb +28 -0
- data/spec/models/generate_cli_session_req_dto_spec.rb +28 -0
- data/spec/models/generate_cli_session_res_dto_spec.rb +28 -0
- data/spec/models/get_active_triggers_query_dto_spec.rb +64 -0
- data/spec/models/get_cli_session_res_dto_spec.rb +34 -0
- data/spec/models/get_connections_query_dto_spec.rb +76 -0
- data/spec/models/get_connections_response_dto_spec.rb +40 -0
- data/spec/models/get_connections_result_spec.rb +34 -0
- data/spec/models/get_connector_info_res_dto_spec.rb +106 -0
- data/spec/models/get_connector_list_res_dto_spec.rb +40 -0
- data/spec/models/get_logs_dto_spec.rb +70 -0
- data/spec/models/get_logs_query_dto_spec.rb +46 -0
- data/spec/models/get_trigger_params_dto_spec.rb +28 -0
- data/spec/models/get_trigger_response_dto_spec.rb +34 -0
- data/spec/models/handle_trigger_body_dto_spec.rb +28 -0
- data/spec/models/handle_trigger_params_dto_spec.rb +34 -0
- data/spec/models/identify_client_req_dto_spec.rb +34 -0
- data/spec/models/identify_client_res_dto_spec.rb +40 -0
- data/spec/models/initiate_connection_payload_dto_spec.rb +46 -0
- data/spec/models/initiate_connection_response_spec.rb +34 -0
- data/spec/models/invite_member_req_dto_spec.rb +40 -0
- data/spec/models/job_status_spec.rb +22 -0
- data/spec/models/list_triggers_query_dto_spec.rb +46 -0
- data/spec/models/logout_res_dto_spec.rb +28 -0
- data/spec/models/logs_res_dto_spec.rb +34 -0
- data/spec/models/magic_link_req_dto_spec.rb +34 -0
- data/spec/models/magic_link_res_dto_spec.rb +28 -0
- data/spec/models/member_res_dto_spec.rb +52 -0
- data/spec/models/meta_app_spec.rb +28 -0
- data/spec/models/meta_spec.rb +28 -0
- data/spec/models/metadata_query_dto_spec.rb +28 -0
- data/spec/models/metadata_req_dto_spec.rb +34 -0
- data/spec/models/o_auth2_callback_query_dto_spec.rb +28 -0
- data/spec/models/open_api_spec_list_res_dto_spec.rb +94 -0
- data/spec/models/page_info_dto_spec.rb +40 -0
- data/spec/models/page_info_spec.rb +46 -0
- data/spec/models/patch_connector_req_dto_spec.rb +34 -0
- data/spec/models/patch_connector_res_dto_spec.rb +28 -0
- data/spec/models/proxy_execution_req_dto_spec.rb +34 -0
- data/spec/models/redirect_uri_dto_spec.rb +28 -0
- data/spec/models/set_callback_url_body_dto_spec.rb +28 -0
- data/spec/models/single_app_info_res_dto_spec.rb +118 -0
- data/spec/models/single_trigger_res_dto_spec.rb +76 -0
- data/spec/models/status_spec.rb +22 -0
- data/spec/models/switch_trigger_status_body_dto_spec.rb +28 -0
- data/spec/models/switch_trigger_status_params_dto_spec.rb +28 -0
- data/spec/models/time_spec.rb +22 -0
- data/spec/models/toggle_connected_account_response_dto_spec.rb +28 -0
- data/spec/models/toggle_trigger_state_response_dto_spec.rb +28 -0
- data/spec/models/tools_execute_req_dto_spec.rb +58 -0
- data/spec/models/track_client_req_dto_spec.rb +40 -0
- data/spec/models/track_client_res_dto_spec.rb +28 -0
- data/spec/models/trigger_config_spec.rb +34 -0
- data/spec/models/trigger_instance_params_dto_spec.rb +28 -0
- data/spec/models/trigger_log_data_spec.rb +70 -0
- data/spec/models/trigger_log_item_dto_spec.rb +82 -0
- data/spec/models/trigger_logs_res_dto_spec.rb +34 -0
- data/spec/models/trigger_metadata_dto_spec.rb +82 -0
- data/spec/models/trigger_metadata_spec.rb +94 -0
- data/spec/models/trigger_metadata_type_spec.rb +25 -0
- data/spec/models/trigger_res_dto_spec.rb +100 -0
- data/spec/models/trigger_response_dto_spec.rb +40 -0
- data/spec/models/trigger_toggle_info_response_dto_spec.rb +28 -0
- data/spec/models/triggers_enabled_toggle_req_dto_spec.rb +28 -0
- data/spec/models/triggers_enabled_toggle_res_dto_spec.rb +28 -0
- data/spec/models/type_spec.rb +22 -0
- data/spec/models/user_git_user_info_spec.rb +34 -0
- data/spec/models/verify_cli_code_res_dto_spec.rb +40 -0
- data/spec/models/verify_magic_link_data_dto_spec.rb +46 -0
- data/spec/models/verify_magic_link_req_dto_spec.rb +28 -0
- data/spec/models/verify_magic_link_res_dto_spec.rb +34 -0
- data/spec/models/webhook_url_response_dto_spec.rb +34 -0
- data/spec/simple_test_spec.rb +52 -0
- data/spec/spec_helper.rb +107 -0
- metadata +504 -0
|
@@ -0,0 +1,188 @@
|
|
|
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::TriggersApi
|
|
13
|
+
describe 'TriggersApi' do
|
|
14
|
+
before do
|
|
15
|
+
# run before each test
|
|
16
|
+
@api_instance = Composio::TriggersApi.new
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
after do
|
|
20
|
+
# run after each test
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of TriggersApi' do
|
|
24
|
+
it 'should create an instance of TriggersApi' do
|
|
25
|
+
expect(@api_instance).to be_instance_of(Composio::TriggersApi)
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# unit tests for delete_trigger_instance
|
|
30
|
+
# Delete trigger
|
|
31
|
+
# Deletes a specified trigger instance.
|
|
32
|
+
# @param trigger_instance_id
|
|
33
|
+
# @param [Hash] opts the optional parameters
|
|
34
|
+
# @return [DeleteRowAPIDTO]
|
|
35
|
+
describe 'delete_trigger_instance 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
|
+
|
|
41
|
+
# unit tests for disable_trigger_instance
|
|
42
|
+
# Disable trigger
|
|
43
|
+
# Disables a specified trigger instance.
|
|
44
|
+
# @param trigger_instance_id
|
|
45
|
+
# @param [Hash] opts the optional parameters
|
|
46
|
+
# @return [TriggerResponseDTO]
|
|
47
|
+
describe 'disable_trigger_instance test' do
|
|
48
|
+
it 'should work' do
|
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# unit tests for enable
|
|
54
|
+
# Enable trigger
|
|
55
|
+
# Enables a trigger for a connected account and specific trigger name.
|
|
56
|
+
# @param connected_account_id
|
|
57
|
+
# @param trigger_name
|
|
58
|
+
# @param [Hash] opts the optional parameters
|
|
59
|
+
# @option opts [EnableTriggerBodyDTO] :enable_trigger_body_dto EnableTriggerBodyDTO
|
|
60
|
+
# @return [TriggerResponseDTO]
|
|
61
|
+
describe 'enable test' do
|
|
62
|
+
it 'should work' do
|
|
63
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
# unit tests for get_active_triggers
|
|
68
|
+
# Get active triggers
|
|
69
|
+
# Lists active triggers based on query parameters.
|
|
70
|
+
# @param [Hash] opts the optional parameters
|
|
71
|
+
# @option opts [String] :connected_account_ids
|
|
72
|
+
# @option opts [String] :integration_ids
|
|
73
|
+
# @option opts [String] :trigger_ids
|
|
74
|
+
# @option opts [String] :trigger_names
|
|
75
|
+
# @option opts [Float] :page
|
|
76
|
+
# @option opts [Float] :limit
|
|
77
|
+
# @option opts [Boolean] :show_disabled
|
|
78
|
+
# @return [ActiveTriggersResDTO]
|
|
79
|
+
describe 'get_active_triggers test' do
|
|
80
|
+
it 'should work' do
|
|
81
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# unit tests for get_by_id
|
|
86
|
+
# Get trigger
|
|
87
|
+
# Retrieves a specific trigger by its ID.
|
|
88
|
+
# @param trigger_id
|
|
89
|
+
# @param [Hash] opts the optional parameters
|
|
90
|
+
# @return [GetTriggerResponseDTO]
|
|
91
|
+
describe 'get_by_id test' do
|
|
92
|
+
it 'should work' do
|
|
93
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# unit tests for get_callback_url
|
|
98
|
+
# Get webhook url
|
|
99
|
+
# Retrieves the universal callback URL set for the client.
|
|
100
|
+
# @param [Hash] opts the optional parameters
|
|
101
|
+
# @return [WebhookURLResponseDTO]
|
|
102
|
+
describe 'get_callback_url test' do
|
|
103
|
+
it 'should work' do
|
|
104
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# unit tests for get_logs_based_on_connection_and_integration_details
|
|
109
|
+
# Get logs
|
|
110
|
+
# Fetches logs based on connection and integration details.
|
|
111
|
+
# @param [Hash] opts the optional parameters
|
|
112
|
+
# @option opts [String] :connection_id
|
|
113
|
+
# @option opts [String] :integration_id
|
|
114
|
+
# @option opts [Float] :page
|
|
115
|
+
# @option opts [Float] :limit
|
|
116
|
+
# @return [TriggerLogsResDTO]
|
|
117
|
+
describe 'get_logs_based_on_connection_and_integration_details test' do
|
|
118
|
+
it 'should work' do
|
|
119
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
120
|
+
end
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
# unit tests for get_trigger_info
|
|
124
|
+
# Get trigger info
|
|
125
|
+
# Get Trigger Info
|
|
126
|
+
# @param trigger_name
|
|
127
|
+
# @param [Hash] opts the optional parameters
|
|
128
|
+
# @return [Array<SingleTriggerResDTO>]
|
|
129
|
+
describe 'get_trigger_info test' do
|
|
130
|
+
it 'should work' do
|
|
131
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
132
|
+
end
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
# unit tests for list
|
|
136
|
+
# List triggers
|
|
137
|
+
# List triggers
|
|
138
|
+
# @param [Hash] opts the optional parameters
|
|
139
|
+
# @option opts [String] :app_names
|
|
140
|
+
# @option opts [String] :connected_account_ids
|
|
141
|
+
# @option opts [String] :trigger_ids
|
|
142
|
+
# @option opts [Boolean] :show_enabled_only
|
|
143
|
+
# @return [Array<TriggerResDTO>]
|
|
144
|
+
describe 'list test' do
|
|
145
|
+
it 'should work' do
|
|
146
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
147
|
+
end
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
# unit tests for set_callback_url
|
|
151
|
+
# Set callback url
|
|
152
|
+
# Sets a universal callback URL for the client.
|
|
153
|
+
# @param [Hash] opts the optional parameters
|
|
154
|
+
# @option opts [SetCallbackUrlBodyDTO] :set_callback_url_body_dto SetCallbackUrlBodyDTO
|
|
155
|
+
# @return [TriggerResponseDTO]
|
|
156
|
+
describe 'set_callback_url test' do
|
|
157
|
+
it 'should work' do
|
|
158
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
159
|
+
end
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
# unit tests for switch_instance_status
|
|
163
|
+
# Switch trigger instance status
|
|
164
|
+
# Switches the status of a trigger instance.
|
|
165
|
+
# @param trigger_id
|
|
166
|
+
# @param [Hash] opts the optional parameters
|
|
167
|
+
# @option opts [SwitchTriggerStatusBodyDTO] :switch_trigger_status_body_dto SwitchTriggerStatusBodyDTO
|
|
168
|
+
# @return [TriggerResponseDTO]
|
|
169
|
+
describe 'switch_instance_status test' do
|
|
170
|
+
it 'should work' do
|
|
171
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
172
|
+
end
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
# unit tests for switch_post_instance_status
|
|
176
|
+
# Switch post trigger instance status
|
|
177
|
+
# Switches the status of a trigger instance.
|
|
178
|
+
# @param trigger_id
|
|
179
|
+
# @param [Hash] opts the optional parameters
|
|
180
|
+
# @option opts [SwitchTriggerStatusBodyDTO] :switch_trigger_status_body_dto SwitchTriggerStatusBodyDTO
|
|
181
|
+
# @return [TriggerResponseDTO]
|
|
182
|
+
describe 'switch_post_instance_status test' do
|
|
183
|
+
it 'should work' do
|
|
184
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
185
|
+
end
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
end
|
|
@@ -0,0 +1,191 @@
|
|
|
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
|
+
|
|
11
|
+
describe Composio::ApiClient do
|
|
12
|
+
context 'initialization' do
|
|
13
|
+
context 'URL stuff' do
|
|
14
|
+
context 'host' do
|
|
15
|
+
it 'removes http from host' do
|
|
16
|
+
|
|
17
|
+
configuration = Composio::Configuration.new
|
|
18
|
+
configuration.host = 'http://example.com'
|
|
19
|
+
expect(configuration.host).to eq('example.com')
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
it 'removes https from host' do
|
|
23
|
+
configuration = Composio::Configuration.new
|
|
24
|
+
configuration.host = 'https://wookiee.com'
|
|
25
|
+
expect(configuration.host).to eq('wookiee.com')
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
it 'removes trailing path from host' do
|
|
29
|
+
configuration = Composio::Configuration.new
|
|
30
|
+
configuration.host = 'hello.com/v4'
|
|
31
|
+
expect(configuration.host).to eq('hello.com')
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
context 'base_path' do
|
|
36
|
+
it "prepends a slash to base_path" do
|
|
37
|
+
configuration = Composio::Configuration.new
|
|
38
|
+
configuration.base_path = 'v4/dog'
|
|
39
|
+
expect(configuration.base_path).to eq('/v4/dog')
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
it "doesn't prepend a slash if one is already there" do
|
|
43
|
+
configuration = Composio::Configuration.new
|
|
44
|
+
configuration.base_path = '/v4/dog'
|
|
45
|
+
expect(configuration.base_path).to eq('/v4/dog')
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
it "ends up as a blank string if nil" do
|
|
49
|
+
configuration = Composio::Configuration.new
|
|
50
|
+
configuration.base_path = nil
|
|
51
|
+
expect(configuration.base_path).to eq('')
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
describe '#deserialize' do
|
|
58
|
+
it "handles Array<Integer>" do
|
|
59
|
+
api_client = Composio::ApiClient.new
|
|
60
|
+
headers = { 'Content-Type' => 'application/json' }
|
|
61
|
+
response = double('response', headers: headers, body: '[12, 34]')
|
|
62
|
+
data = api_client.deserialize(response, 'Array<Integer>')
|
|
63
|
+
expect(data).to be_instance_of(Array)
|
|
64
|
+
expect(data).to eq([12, 34])
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
it 'handles Array<Array<Integer>>' do
|
|
68
|
+
api_client = Composio::ApiClient.new
|
|
69
|
+
headers = { 'Content-Type' => 'application/json' }
|
|
70
|
+
response = double('response', headers: headers, body: '[[12, 34], [56]]')
|
|
71
|
+
data = api_client.deserialize(response, 'Array<Array<Integer>>')
|
|
72
|
+
expect(data).to be_instance_of(Array)
|
|
73
|
+
expect(data).to eq([[12, 34], [56]])
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
it 'handles Hash<String, String>' do
|
|
77
|
+
api_client = Composio::ApiClient.new
|
|
78
|
+
headers = { 'Content-Type' => 'application/json' }
|
|
79
|
+
response = double('response', headers: headers, body: '{"message": "Hello"}')
|
|
80
|
+
data = api_client.deserialize(response, 'Hash<String, String>')
|
|
81
|
+
expect(data).to be_instance_of(Hash)
|
|
82
|
+
expect(data).to eq(:message => 'Hello')
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
describe "#object_to_hash" do
|
|
87
|
+
it 'ignores nils and includes empty arrays' do
|
|
88
|
+
# uncomment below to test object_to_hash for model
|
|
89
|
+
# api_client = Composio::ApiClient.new
|
|
90
|
+
# _model = Composio::ModelName.new
|
|
91
|
+
# update the model attribute below
|
|
92
|
+
# _model.id = 1
|
|
93
|
+
# update the expected value (hash) below
|
|
94
|
+
# expected = {id: 1, name: '', tags: []}
|
|
95
|
+
# expect(api_client.object_to_hash(_model)).to eq(expected)
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
describe '#build_collection_param' do
|
|
100
|
+
let(:param) { ['aa', 'bb', 'cc'] }
|
|
101
|
+
let(:api_client) { Composio::ApiClient.new }
|
|
102
|
+
|
|
103
|
+
it 'works for csv' do
|
|
104
|
+
expect(api_client.build_collection_param(param, :csv)).to eq('aa,bb,cc')
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
it 'works for ssv' do
|
|
108
|
+
expect(api_client.build_collection_param(param, :ssv)).to eq('aa bb cc')
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
it 'works for tsv' do
|
|
112
|
+
expect(api_client.build_collection_param(param, :tsv)).to eq("aa\tbb\tcc")
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
it 'works for pipes' do
|
|
116
|
+
expect(api_client.build_collection_param(param, :pipes)).to eq('aa|bb|cc')
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
it 'works for multi' do
|
|
120
|
+
expect(api_client.build_collection_param(param, :multi)).to eq(['aa', 'bb', 'cc'])
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
it 'fails for invalid collection format' do
|
|
124
|
+
expect { api_client.build_collection_param(param, :INVALID) }.to raise_error(RuntimeError, 'unknown collection format: :INVALID')
|
|
125
|
+
end
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
describe '#json_mime?' do
|
|
129
|
+
let(:api_client) { Composio::ApiClient.new }
|
|
130
|
+
|
|
131
|
+
it 'works' do
|
|
132
|
+
expect(api_client.json_mime?(nil)).to eq false
|
|
133
|
+
expect(api_client.json_mime?('')).to eq false
|
|
134
|
+
|
|
135
|
+
expect(api_client.json_mime?('application/json')).to eq true
|
|
136
|
+
expect(api_client.json_mime?('application/json; charset=UTF8')).to eq true
|
|
137
|
+
expect(api_client.json_mime?('APPLICATION/JSON')).to eq true
|
|
138
|
+
|
|
139
|
+
expect(api_client.json_mime?('application/xml')).to eq false
|
|
140
|
+
expect(api_client.json_mime?('text/plain')).to eq false
|
|
141
|
+
expect(api_client.json_mime?('application/jsonp')).to eq false
|
|
142
|
+
end
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
describe '#select_header_accept' do
|
|
146
|
+
let(:api_client) { Composio::ApiClient.new }
|
|
147
|
+
|
|
148
|
+
it 'works' do
|
|
149
|
+
expect(api_client.select_header_accept(nil)).to be_nil
|
|
150
|
+
expect(api_client.select_header_accept([])).to be_nil
|
|
151
|
+
|
|
152
|
+
expect(api_client.select_header_accept(['application/json'])).to eq('application/json')
|
|
153
|
+
expect(api_client.select_header_accept(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
|
|
154
|
+
expect(api_client.select_header_accept(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON')
|
|
155
|
+
|
|
156
|
+
expect(api_client.select_header_accept(['application/xml'])).to eq('application/xml')
|
|
157
|
+
expect(api_client.select_header_accept(['text/html', 'application/xml'])).to eq('text/html,application/xml')
|
|
158
|
+
end
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
describe '#select_header_content_type' do
|
|
162
|
+
let(:api_client) { Composio::ApiClient.new }
|
|
163
|
+
|
|
164
|
+
it 'works' do
|
|
165
|
+
expect(api_client.select_header_content_type(nil)).to be_nil
|
|
166
|
+
expect(api_client.select_header_content_type([])).to be_nil
|
|
167
|
+
|
|
168
|
+
expect(api_client.select_header_content_type(['application/json'])).to eq('application/json')
|
|
169
|
+
expect(api_client.select_header_content_type(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
|
|
170
|
+
expect(api_client.select_header_content_type(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON')
|
|
171
|
+
expect(api_client.select_header_content_type(['application/xml'])).to eq('application/xml')
|
|
172
|
+
expect(api_client.select_header_content_type(['text/plain', 'application/xml'])).to eq('text/plain')
|
|
173
|
+
end
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
describe '#sanitize_filename' do
|
|
177
|
+
let(:api_client) { Composio::ApiClient.new }
|
|
178
|
+
|
|
179
|
+
it 'works' do
|
|
180
|
+
expect(api_client.sanitize_filename('sun')).to eq('sun')
|
|
181
|
+
expect(api_client.sanitize_filename('sun.gif')).to eq('sun.gif')
|
|
182
|
+
expect(api_client.sanitize_filename('../sun.gif')).to eq('sun.gif')
|
|
183
|
+
expect(api_client.sanitize_filename('/var/tmp/sun.gif')).to eq('sun.gif')
|
|
184
|
+
expect(api_client.sanitize_filename('./sun.gif')).to eq('sun.gif')
|
|
185
|
+
expect(api_client.sanitize_filename('..\sun.gif')).to eq('sun.gif')
|
|
186
|
+
expect(api_client.sanitize_filename('\var\tmp\sun.gif')).to eq('sun.gif')
|
|
187
|
+
expect(api_client.sanitize_filename('c:\var\tmp\sun.gif')).to eq('sun.gif')
|
|
188
|
+
expect(api_client.sanitize_filename('.\sun.gif')).to eq('sun.gif')
|
|
189
|
+
end
|
|
190
|
+
end
|
|
191
|
+
end
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
|
|
11
|
+
describe Composio::Configuration do
|
|
12
|
+
let(:config) { Composio::Configuration.default }
|
|
13
|
+
|
|
14
|
+
before(:each) do
|
|
15
|
+
# uncomment below to setup host and base_path
|
|
16
|
+
# require 'URI'
|
|
17
|
+
# uri = URI.parse("https://backend.composio.dev")
|
|
18
|
+
# Composio.configure do |c|
|
|
19
|
+
# c.host = uri.host
|
|
20
|
+
# c.base_path = uri.path
|
|
21
|
+
# end
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
describe '#base_url' do
|
|
25
|
+
it 'should have the default value' do
|
|
26
|
+
# uncomment below to test default value of the base path
|
|
27
|
+
# expect(config.base_url).to eq("https://backend.composio.dev")
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
it 'should remove trailing slashes' do
|
|
31
|
+
[nil, '', '/', '//'].each do |base_path|
|
|
32
|
+
config.base_path = base_path
|
|
33
|
+
# uncomment below to test trailing slashes
|
|
34
|
+
# expect(config.base_url).to eq("https://backend.composio.dev")
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
@@ -0,0 +1,76 @@
|
|
|
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::ActionDetailsMinimal
|
|
14
|
+
describe Composio::ActionDetailsMinimal do
|
|
15
|
+
let(:instance) { Composio::ActionDetailsMinimal.new }
|
|
16
|
+
|
|
17
|
+
describe 'test an instance of ActionDetailsMinimal' do
|
|
18
|
+
it 'should create an instance of ActionDetailsMinimal' do
|
|
19
|
+
expect(instance).to be_instance_of(Composio::ActionDetailsMinimal)
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
describe 'test attribute "tags"' 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 "description"' 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 "app_id"' 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 "app_key"' 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 "app_name"' 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
|
+
describe 'test attribute "display_name"' do
|
|
53
|
+
it 'should work' do
|
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
describe 'test attribute "enabled"' do
|
|
59
|
+
it 'should work' do
|
|
60
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
describe 'test attribute "logo"' do
|
|
65
|
+
it 'should work' do
|
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
describe 'test attribute "name"' do
|
|
71
|
+
it 'should work' do
|
|
72
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
end
|
|
@@ -0,0 +1,88 @@
|
|
|
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::ActionDetails
|
|
14
|
+
describe Composio::ActionDetails do
|
|
15
|
+
let(:instance) { Composio::ActionDetails.new }
|
|
16
|
+
|
|
17
|
+
describe 'test an instance of ActionDetails' do
|
|
18
|
+
it 'should create an instance of ActionDetails' do
|
|
19
|
+
expect(instance).to be_instance_of(Composio::ActionDetails)
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
describe 'test attribute "tags"' 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 "description"' 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 "parameters"' 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 "response"' 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 "app_id"' 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
|
+
describe 'test attribute "app_key"' do
|
|
53
|
+
it 'should work' do
|
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
describe 'test attribute "app_name"' do
|
|
59
|
+
it 'should work' do
|
|
60
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
describe 'test attribute "display_name"' do
|
|
65
|
+
it 'should work' do
|
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
describe 'test attribute "enabled"' do
|
|
71
|
+
it 'should work' do
|
|
72
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
describe 'test attribute "logo"' do
|
|
77
|
+
it 'should work' do
|
|
78
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
describe 'test attribute "name"' do
|
|
83
|
+
it 'should work' do
|
|
84
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
end
|
|
@@ -0,0 +1,58 @@
|
|
|
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::ActionExecutionReqDTO
|
|
14
|
+
describe Composio::ActionExecutionReqDTO do
|
|
15
|
+
let(:instance) { Composio::ActionExecutionReqDTO.new }
|
|
16
|
+
|
|
17
|
+
describe 'test an instance of ActionExecutionReqDTO' do
|
|
18
|
+
it 'should create an instance of ActionExecutionReqDTO' do
|
|
19
|
+
expect(instance).to be_instance_of(Composio::ActionExecutionReqDTO)
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
describe 'test attribute "connected_account_id"' 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 "app_name"' 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 "entity_id"' 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 "endpoint"' 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 "input"' 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
|
+
describe 'test attribute "text"' do
|
|
53
|
+
it 'should work' do
|
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
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::ActionExecutionResDto
|
|
14
|
+
describe Composio::ActionExecutionResDto do
|
|
15
|
+
let(:instance) { Composio::ActionExecutionResDto.new }
|
|
16
|
+
|
|
17
|
+
describe 'test an instance of ActionExecutionResDto' do
|
|
18
|
+
it 'should create an instance of ActionExecutionResDto' do
|
|
19
|
+
expect(instance).to be_instance_of(Composio::ActionExecutionResDto)
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
describe 'test attribute "data"' 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 "error"' 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 "successfull"' 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
|
+
end
|