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,166 @@
|
|
|
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 LogsApi
|
|
13
|
+
attr_accessor :api_client
|
|
14
|
+
|
|
15
|
+
def initialize(api_client = ApiClient.default)
|
|
16
|
+
@api_client = api_client
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
# Get logs
|
|
20
|
+
#
|
|
21
|
+
# List logs
|
|
22
|
+
#
|
|
23
|
+
# @param type [String]
|
|
24
|
+
# @param time [String]
|
|
25
|
+
# @param status [String]
|
|
26
|
+
# @param search [String]
|
|
27
|
+
# @param integration_id [String]
|
|
28
|
+
# @param limit [Float]
|
|
29
|
+
# @param cursor [String]
|
|
30
|
+
# @param connection_id [String]
|
|
31
|
+
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
|
32
|
+
def list(type: SENTINEL, time: SENTINEL, status: SENTINEL, search: SENTINEL, integration_id: SENTINEL, limit: 10, cursor: SENTINEL, connection_id: SENTINEL, extra: {})
|
|
33
|
+
extra[:type] = type if type != SENTINEL
|
|
34
|
+
extra[:time] = time if time != SENTINEL
|
|
35
|
+
extra[:status] = status if status != SENTINEL
|
|
36
|
+
extra[:search] = search if search != SENTINEL
|
|
37
|
+
extra[:integration_id] = integration_id if integration_id != SENTINEL
|
|
38
|
+
extra[:limit] = limit if limit != SENTINEL
|
|
39
|
+
extra[:cursor] = cursor if cursor != SENTINEL
|
|
40
|
+
extra[:connection_id] = connection_id if connection_id != SENTINEL
|
|
41
|
+
api_response = list_with_http_info_impl(extra)
|
|
42
|
+
api_response.data
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Get logs
|
|
46
|
+
#
|
|
47
|
+
# List logs
|
|
48
|
+
#
|
|
49
|
+
# @param type [String]
|
|
50
|
+
# @param time [String]
|
|
51
|
+
# @param status [String]
|
|
52
|
+
# @param search [String]
|
|
53
|
+
# @param integration_id [String]
|
|
54
|
+
# @param limit [Float]
|
|
55
|
+
# @param cursor [String]
|
|
56
|
+
# @param connection_id [String]
|
|
57
|
+
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
|
58
|
+
def list_with_http_info(type: SENTINEL, time: SENTINEL, status: SENTINEL, search: SENTINEL, integration_id: SENTINEL, limit: 10, cursor: SENTINEL, connection_id: SENTINEL, extra: {})
|
|
59
|
+
extra[:type] = type if type != SENTINEL
|
|
60
|
+
extra[:time] = time if time != SENTINEL
|
|
61
|
+
extra[:status] = status if status != SENTINEL
|
|
62
|
+
extra[:search] = search if search != SENTINEL
|
|
63
|
+
extra[:integration_id] = integration_id if integration_id != SENTINEL
|
|
64
|
+
extra[:limit] = limit if limit != SENTINEL
|
|
65
|
+
extra[:cursor] = cursor if cursor != SENTINEL
|
|
66
|
+
extra[:connection_id] = connection_id if connection_id != SENTINEL
|
|
67
|
+
list_with_http_info_impl(extra)
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# Get logs
|
|
71
|
+
# List logs
|
|
72
|
+
# @param [Hash] opts the optional parameters
|
|
73
|
+
# @option opts [String] :type
|
|
74
|
+
# @option opts [String] :time
|
|
75
|
+
# @option opts [String] :status
|
|
76
|
+
# @option opts [String] :search
|
|
77
|
+
# @option opts [String] :integration_id
|
|
78
|
+
# @option opts [Float] :limit (default to 10)
|
|
79
|
+
# @option opts [String] :cursor
|
|
80
|
+
# @option opts [String] :connection_id
|
|
81
|
+
# @return [LogsResDTO]
|
|
82
|
+
private def list_impl(opts = {})
|
|
83
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
|
84
|
+
data
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# Get logs
|
|
88
|
+
# List logs
|
|
89
|
+
# @param [Hash] opts the optional parameters
|
|
90
|
+
# @option opts [String] :type
|
|
91
|
+
# @option opts [String] :time
|
|
92
|
+
# @option opts [String] :status
|
|
93
|
+
# @option opts [String] :search
|
|
94
|
+
# @option opts [String] :integration_id
|
|
95
|
+
# @option opts [Float] :limit (default to 10)
|
|
96
|
+
# @option opts [String] :cursor
|
|
97
|
+
# @option opts [String] :connection_id
|
|
98
|
+
# @return [APIResponse] data is LogsResDTO, status code, headers and response
|
|
99
|
+
private def list_with_http_info_impl(opts = {})
|
|
100
|
+
if @api_client.config.debugging
|
|
101
|
+
@api_client.config.logger.debug 'Calling API: LogsApi.list ...'
|
|
102
|
+
end
|
|
103
|
+
allowable_values = ["error", "info", "debug"]
|
|
104
|
+
if @api_client.config.client_side_validation && opts[:'type'] && !allowable_values.include?(opts[:'type'])
|
|
105
|
+
fail ArgumentError, "invalid value for \"type\", must be one of #{allowable_values}"
|
|
106
|
+
end
|
|
107
|
+
allowable_values = ["5m", "30m", "6h", "1d", "1w", "1month", "1y"]
|
|
108
|
+
if @api_client.config.client_side_validation && opts[:'time'] && !allowable_values.include?(opts[:'time'])
|
|
109
|
+
fail ArgumentError, "invalid value for \"time\", must be one of #{allowable_values}"
|
|
110
|
+
end
|
|
111
|
+
allowable_values = ["all", "success", "error"]
|
|
112
|
+
if @api_client.config.client_side_validation && opts[:'status'] && !allowable_values.include?(opts[:'status'])
|
|
113
|
+
fail ArgumentError, "invalid value for \"status\", must be one of #{allowable_values}"
|
|
114
|
+
end
|
|
115
|
+
# resource path
|
|
116
|
+
local_var_path = '/api/v1/logs'
|
|
117
|
+
|
|
118
|
+
# query parameters
|
|
119
|
+
query_params = opts[:query_params] || {}
|
|
120
|
+
query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
|
|
121
|
+
query_params[:'time'] = opts[:'time'] if !opts[:'time'].nil?
|
|
122
|
+
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
|
123
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
|
124
|
+
query_params[:'integrationId'] = opts[:'integration_id'] if !opts[:'integration_id'].nil?
|
|
125
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
126
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
127
|
+
query_params[:'connectionId'] = opts[:'connection_id'] if !opts[:'connection_id'].nil?
|
|
128
|
+
|
|
129
|
+
# header parameters
|
|
130
|
+
header_params = opts[:header_params] || {}
|
|
131
|
+
# HTTP header 'Accept' (if needed)
|
|
132
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
133
|
+
|
|
134
|
+
# form parameters
|
|
135
|
+
form_params = opts[:form_params] || {}
|
|
136
|
+
|
|
137
|
+
# http body (model)
|
|
138
|
+
post_body = opts[:debug_body]
|
|
139
|
+
|
|
140
|
+
# return_type
|
|
141
|
+
return_type = opts[:debug_return_type] || 'LogsResDTO'
|
|
142
|
+
|
|
143
|
+
# auth_names
|
|
144
|
+
auth_names = opts[:debug_auth_names] || ['api_key']
|
|
145
|
+
|
|
146
|
+
new_options = opts.merge(
|
|
147
|
+
:operation => :"LogsApi.list",
|
|
148
|
+
:header_params => header_params,
|
|
149
|
+
:query_params => query_params,
|
|
150
|
+
:form_params => form_params,
|
|
151
|
+
:body => post_body,
|
|
152
|
+
:auth_names => auth_names,
|
|
153
|
+
:return_type => return_type
|
|
154
|
+
)
|
|
155
|
+
|
|
156
|
+
data, status_code, headers, response = @api_client.call_api(:GET, local_var_path, new_options)
|
|
157
|
+
if @api_client.config.debugging
|
|
158
|
+
@api_client.config.logger.debug "API called: LogsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
159
|
+
end
|
|
160
|
+
APIResponse::new(data, status_code, headers, response)
|
|
161
|
+
end
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
# top-level client access to avoid having the user to insantiate their own API instances
|
|
165
|
+
Logs = LogsApi::new
|
|
166
|
+
end
|
|
@@ -0,0 +1,180 @@
|
|
|
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
|
|
@@ -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 '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
|