composio 0.1.6 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/README.md +492 -4
- data/lib/composio/api/actions_api.rb +107 -0
- data/lib/composio/api/analytics_api.rb +181 -0
- data/lib/composio/api/apps_api.rb +257 -0
- data/lib/composio/api/connections_api.rb +84 -0
- data/lib/composio/api/event_logs_api.rb +427 -0
- data/lib/composio/api/logs_api.rb +127 -9
- data/lib/composio/api/payment_api.rb +430 -0
- data/lib/composio/models/action_analytics_dto.rb +250 -0
- data/lib/composio/models/action_by_app_dto.rb +237 -0
- data/lib/composio/models/action_by_status_dto.rb +237 -0
- data/lib/composio/models/action_get_nla_inputs_req_dto.rb +220 -0
- data/lib/composio/models/additional_info.rb +220 -0
- data/lib/composio/models/analytics_data_req_dto.rb +250 -0
- data/lib/composio/models/analytics_data_res_dto.rb +282 -0
- data/lib/composio/models/analytics_entity_data_dto.rb +257 -0
- data/lib/composio/models/api_key_res_dto.rb +61 -4
- data/lib/composio/models/app_name_count_dto.rb +267 -0
- data/lib/composio/models/client_unique_user_id_count_dto.rb +237 -0
- data/lib/composio/models/connected_account_response_dto.rb +10 -1
- data/lib/composio/models/connection_params.rb +22 -6
- data/lib/composio/models/connection_with_app_data.rb +22 -6
- data/lib/composio/models/connector_list_item_dto.rb +16 -1
- data/lib/composio/models/create_checkout_session_req_dto.rb +220 -0
- data/lib/composio/models/data.rb +234 -0
- data/lib/composio/models/entity_query_req_dto.rb +216 -0
- data/lib/composio/models/fetch_query_dto.rb +278 -0
- data/lib/composio/models/get_connection_info_response_dto.rb +250 -0
- data/lib/composio/models/get_connector_list_res_dto.rb +0 -1
- data/lib/composio/models/get_logs_dto.rb +10 -10
- data/lib/composio/models/{job_status.rb → get_logs_dto_status.rb} +6 -6
- data/lib/composio/models/ingest_data_dto.rb +298 -0
- data/lib/composio/models/ingest_data_response_dto.rb +220 -0
- data/lib/composio/models/integrations_with_counts_dto.rb +297 -0
- data/lib/composio/models/invite_member_req_dto.rb +14 -4
- data/lib/composio/models/last_time_period.rb +40 -0
- data/lib/composio/models/member_info_res_dto.rb +324 -0
- data/lib/composio/models/{connection_with_app_data_created_at.rb → member_info_res_dto_created_at.rb} +1 -1
- data/lib/composio/models/member_res_dto.rb +16 -1
- data/lib/composio/models/member_res_dto_role.rb +36 -0
- data/lib/composio/models/open_api_spec_list_res_dto.rb +17 -74
- data/lib/composio/models/parameter.rb +248 -0
- data/lib/composio/models/plan.rb +38 -0
- data/lib/composio/models/role.rb +36 -0
- data/lib/composio/models/state.rb +41 -0
- data/lib/composio/models/status.rb +7 -4
- data/lib/composio/models/t_connection_count_dto.rb +236 -0
- data/lib/composio/models/time_period_req_dto.rb +216 -0
- data/lib/composio/models/top_entities_res_dto.rb +223 -0
- data/lib/composio/models/update_member_req_dto.rb +236 -0
- data/lib/composio/models/update_member_req_dto_role.rb +36 -0
- data/lib/composio/models/webhook_req_dto.rb +221 -0
- data/lib/composio/models/webhook_secret_res_dto.rb +221 -0
- data/lib/composio/version.rb +1 -1
- data/lib/composio.rb +43 -2
- data/spec/api/actions_api_spec.rb +13 -0
- data/spec/api/analytics_api_spec.rb +51 -0
- data/spec/api/apps_api_spec.rb +34 -0
- data/spec/api/connections_api_spec.rb +11 -0
- data/spec/api/event_logs_api_spec.rb +83 -0
- data/spec/api/logs_api_spec.rb +13 -1
- data/spec/api/payment_api_spec.rb +83 -0
- data/spec/models/action_analytics_dto_spec.rb +40 -0
- data/spec/models/action_by_app_dto_spec.rb +34 -0
- data/spec/models/action_by_status_dto_spec.rb +34 -0
- data/spec/models/action_get_nla_inputs_req_dto_spec.rb +28 -0
- data/spec/models/additional_info_spec.rb +28 -0
- data/spec/models/analytics_data_req_dto_spec.rb +32 -0
- data/spec/models/analytics_data_res_dto_spec.rb +52 -0
- data/spec/models/analytics_entity_data_dto_spec.rb +40 -0
- data/spec/models/api_key_res_dto_spec.rb +18 -0
- data/spec/models/app_name_count_dto_spec.rb +46 -0
- data/spec/models/client_unique_user_id_count_dto_spec.rb +34 -0
- data/spec/models/connected_account_response_dto_spec.rb +6 -0
- data/spec/models/connection_params_spec.rb +6 -0
- data/spec/models/connection_with_app_data_spec.rb +6 -0
- data/spec/models/connector_list_item_dto_spec.rb +6 -0
- data/spec/models/create_checkout_session_req_dto_spec.rb +28 -0
- data/spec/models/data_spec.rb +34 -0
- data/spec/models/entity_query_req_dto_spec.rb +28 -0
- data/spec/models/fetch_query_dto_spec.rb +34 -0
- data/spec/models/get_connection_info_response_dto_spec.rb +40 -0
- data/spec/models/get_logs_dto_spec.rb +1 -1
- data/spec/models/get_logs_dto_status_spec.rb +22 -0
- data/spec/models/ingest_data_dto_spec.rb +64 -0
- data/spec/models/ingest_data_response_dto_spec.rb +28 -0
- data/spec/models/integrations_with_counts_dto_spec.rb +58 -0
- data/spec/models/invite_member_req_dto_spec.rb +6 -0
- data/spec/models/last_time_period_spec.rb +22 -0
- data/spec/models/{connection_with_app_data_created_at_spec.rb → member_info_res_dto_created_at_spec.rb} +2 -2
- data/spec/models/member_info_res_dto_spec.rb +76 -0
- data/spec/models/member_res_dto_role_spec.rb +22 -0
- data/spec/models/member_res_dto_spec.rb +6 -0
- data/spec/models/open_api_spec_list_res_dto_spec.rb +5 -29
- data/spec/models/parameter_spec.rb +40 -0
- data/spec/models/plan_spec.rb +22 -0
- data/spec/models/role_spec.rb +22 -0
- data/spec/models/state_spec.rb +22 -0
- data/spec/models/t_connection_count_dto_spec.rb +34 -0
- data/spec/models/time_period_req_dto_spec.rb +28 -0
- data/spec/models/top_entities_res_dto_spec.rb +28 -0
- data/spec/models/update_member_req_dto_role_spec.rb +22 -0
- data/spec/models/update_member_req_dto_spec.rb +34 -0
- data/spec/models/webhook_req_dto_spec.rb +28 -0
- data/spec/models/webhook_secret_res_dto_spec.rb +28 -0
- metadata +215 -110
- data/spec/models/job_status_spec.rb +0 -22
data/spec/api/apps_api_spec.rb
CHANGED
@@ -26,6 +26,17 @@ describe 'AppsApi' do
|
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
29
|
+
# unit tests for delete_open_api_spec_tool
|
30
|
+
# Delete open api spec tool
|
31
|
+
# @param id
|
32
|
+
# @param [Hash] opts the optional parameters
|
33
|
+
# @return [Object]
|
34
|
+
describe 'delete_open_api_spec_tool test' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
29
40
|
# unit tests for get_details
|
30
41
|
# Get app
|
31
42
|
# Get app details
|
@@ -38,6 +49,17 @@ describe 'AppsApi' do
|
|
38
49
|
end
|
39
50
|
end
|
40
51
|
|
52
|
+
# unit tests for get_open_api_spec_status
|
53
|
+
# Get open api spec status
|
54
|
+
# @param id
|
55
|
+
# @param [Hash] opts the optional parameters
|
56
|
+
# @return [Object]
|
57
|
+
describe 'get_open_api_spec_status test' do
|
58
|
+
it 'should work' do
|
59
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
41
63
|
# unit tests for list
|
42
64
|
# Get apps
|
43
65
|
# Retrieve a list of all applications based on query parameters.
|
@@ -61,4 +83,16 @@ describe 'AppsApi' do
|
|
61
83
|
end
|
62
84
|
end
|
63
85
|
|
86
|
+
# unit tests for send_email_to_client
|
87
|
+
# Send email to client
|
88
|
+
# @param [Hash] opts the optional parameters
|
89
|
+
# @option opts [String] :admin_token
|
90
|
+
# @option opts [Object] :body
|
91
|
+
# @return [Object]
|
92
|
+
describe 'send_email_to_client test' do
|
93
|
+
it 'should work' do
|
94
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
64
98
|
end
|
@@ -70,6 +70,17 @@ describe 'ConnectionsApi' do
|
|
70
70
|
end
|
71
71
|
end
|
72
72
|
|
73
|
+
# unit tests for get_info
|
74
|
+
# Get connection info
|
75
|
+
# @param connected_account_id
|
76
|
+
# @param [Hash] opts the optional parameters
|
77
|
+
# @return [GetConnectionInfoResponseDTO]
|
78
|
+
describe 'get_info test' do
|
79
|
+
it 'should work' do
|
80
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
73
84
|
# unit tests for initiate
|
74
85
|
# Initiate connection
|
75
86
|
# @param [Hash] opts the optional parameters
|
@@ -0,0 +1,83 @@
|
|
1
|
+
=begin
|
2
|
+
#Composio OpenAPI
|
3
|
+
|
4
|
+
#Composio SDK: Equip your agent with high-quality tools and build your real-world usecase
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
=end
|
8
|
+
|
9
|
+
require 'spec_helper'
|
10
|
+
require 'json'
|
11
|
+
|
12
|
+
# Unit tests for Composio::EventLogsApi
|
13
|
+
describe 'EventLogsApi' do
|
14
|
+
before do
|
15
|
+
# run before each test
|
16
|
+
@api_instance = Composio::EventLogsApi.new
|
17
|
+
end
|
18
|
+
|
19
|
+
after do
|
20
|
+
# run after each test
|
21
|
+
end
|
22
|
+
|
23
|
+
describe 'test an instance of EventLogsApi' do
|
24
|
+
it 'should create an instance of EventLogsApi' do
|
25
|
+
expect(@api_instance).to be_instance_of(Composio::EventLogsApi)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
# unit tests for get_events
|
30
|
+
# Get events
|
31
|
+
# Fetch events from database
|
32
|
+
# @param start_time
|
33
|
+
# @param end_time
|
34
|
+
# @param [Hash] opts the optional parameters
|
35
|
+
# @return [Object]
|
36
|
+
describe 'get_events test' do
|
37
|
+
it 'should work' do
|
38
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
# unit tests for get_webhook
|
43
|
+
# Get webhook
|
44
|
+
# @param [Hash] opts the optional parameters
|
45
|
+
# @return [Object]
|
46
|
+
describe 'get_webhook test' do
|
47
|
+
it 'should work' do
|
48
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
# unit tests for get_webhook_secret
|
53
|
+
# Get webhook secret
|
54
|
+
# @param [Hash] opts the optional parameters
|
55
|
+
# @return [Object]
|
56
|
+
describe 'get_webhook_secret test' do
|
57
|
+
it 'should work' do
|
58
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
# unit tests for refresh_webhook_secret
|
63
|
+
# Refresh webhook
|
64
|
+
# @param [Hash] opts the optional parameters
|
65
|
+
# @return [Object]
|
66
|
+
describe 'refresh_webhook_secret test' do
|
67
|
+
it 'should work' do
|
68
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
# unit tests for update_webhook
|
73
|
+
# Update webhook
|
74
|
+
# @param [Hash] opts the optional parameters
|
75
|
+
# @option opts [WebhookReqDTO] :webhook_req_dto WebhookReqDTO
|
76
|
+
# @return [Object]
|
77
|
+
describe 'update_webhook test' do
|
78
|
+
it 'should work' do
|
79
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
end
|
data/spec/api/logs_api_spec.rb
CHANGED
@@ -26,6 +26,18 @@ describe 'LogsApi' do
|
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
29
|
+
# unit tests for add_new_logs
|
30
|
+
# Post logs
|
31
|
+
# Add new logs
|
32
|
+
# @param [Hash] opts the optional parameters
|
33
|
+
# @option opts [IngestDataDTO] :ingest_data_dto IngestDataDTO
|
34
|
+
# @return [IngestDataResponseDTO]
|
35
|
+
describe 'add_new_logs test' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
29
41
|
# unit tests for list
|
30
42
|
# Get logs
|
31
43
|
# List logs
|
@@ -38,7 +50,7 @@ describe 'LogsApi' do
|
|
38
50
|
# @option opts [String] :entity_id
|
39
51
|
# @option opts [Float] :limit
|
40
52
|
# @option opts [String] :cursor
|
41
|
-
# @option opts [String] :
|
53
|
+
# @option opts [String] :logs_type
|
42
54
|
# @return [LogsResDTO]
|
43
55
|
describe 'list test' do
|
44
56
|
it 'should work' do
|
@@ -0,0 +1,83 @@
|
|
1
|
+
=begin
|
2
|
+
#Composio OpenAPI
|
3
|
+
|
4
|
+
#Composio SDK: Equip your agent with high-quality tools and build your real-world usecase
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
=end
|
8
|
+
|
9
|
+
require 'spec_helper'
|
10
|
+
require 'json'
|
11
|
+
|
12
|
+
# Unit tests for Composio::PaymentApi
|
13
|
+
describe 'PaymentApi' do
|
14
|
+
before do
|
15
|
+
# run before each test
|
16
|
+
@api_instance = Composio::PaymentApi.new
|
17
|
+
end
|
18
|
+
|
19
|
+
after do
|
20
|
+
# run after each test
|
21
|
+
end
|
22
|
+
|
23
|
+
describe 'test an instance of PaymentApi' do
|
24
|
+
it 'should create an instance of PaymentApi' do
|
25
|
+
expect(@api_instance).to be_instance_of(Composio::PaymentApi)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
# unit tests for create_checkout_session
|
30
|
+
# Create checkout session
|
31
|
+
# @param [Hash] opts the optional parameters
|
32
|
+
# @option opts [CreateCheckoutSessionReqDto] :create_checkout_session_req_dto CreateCheckoutSessionReqDto
|
33
|
+
# @return [Object]
|
34
|
+
describe 'create_checkout_session test' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
# unit tests for get_checkout_session_status
|
41
|
+
# Get checkout session status
|
42
|
+
# @param session_id
|
43
|
+
# @param [Hash] opts the optional parameters
|
44
|
+
# @return [Object]
|
45
|
+
describe 'get_checkout_session_status 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 get_invoice
|
52
|
+
# Get invoice
|
53
|
+
# @param invoice_id
|
54
|
+
# @param [Hash] opts the optional parameters
|
55
|
+
# @return [Object]
|
56
|
+
describe 'get_invoice test' do
|
57
|
+
it 'should work' do
|
58
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
# unit tests for get_invoices
|
63
|
+
# Get invoices
|
64
|
+
# @param [Hash] opts the optional parameters
|
65
|
+
# @return [Object]
|
66
|
+
describe 'get_invoices test' do
|
67
|
+
it 'should work' do
|
68
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
# unit tests for handle_stripe_webhook
|
73
|
+
# Handle stripe webhook
|
74
|
+
# @param [Hash] opts the optional parameters
|
75
|
+
# @option opts [Object] :body
|
76
|
+
# @return [Object]
|
77
|
+
describe 'handle_stripe_webhook test' do
|
78
|
+
it 'should work' do
|
79
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
end
|
@@ -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::ActionAnalyticsDTO
|
14
|
+
describe Composio::ActionAnalyticsDTO do
|
15
|
+
let(:instance) { Composio::ActionAnalyticsDTO.new }
|
16
|
+
|
17
|
+
describe 'test an instance of ActionAnalyticsDTO' do
|
18
|
+
it 'should create an instance of ActionAnalyticsDTO' do
|
19
|
+
expect(instance).to be_instance_of(Composio::ActionAnalyticsDTO)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
describe 'test attribute "date"' 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 "by_app"' 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 "by_status"' 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
|
@@ -0,0 +1,34 @@
|
|
1
|
+
=begin
|
2
|
+
#Composio OpenAPI
|
3
|
+
|
4
|
+
#Composio SDK: Equip your agent with high-quality tools and build your real-world usecase
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
=end
|
8
|
+
|
9
|
+
require 'spec_helper'
|
10
|
+
require 'json'
|
11
|
+
require 'date'
|
12
|
+
|
13
|
+
# Unit tests for Composio::ActionByAppDTO
|
14
|
+
describe Composio::ActionByAppDTO do
|
15
|
+
let(:instance) { Composio::ActionByAppDTO.new }
|
16
|
+
|
17
|
+
describe 'test an instance of ActionByAppDTO' do
|
18
|
+
it 'should create an instance of ActionByAppDTO' do
|
19
|
+
expect(instance).to be_instance_of(Composio::ActionByAppDTO)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
describe 'test attribute "app_name"' 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 "total_count"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
=begin
|
2
|
+
#Composio OpenAPI
|
3
|
+
|
4
|
+
#Composio SDK: Equip your agent with high-quality tools and build your real-world usecase
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
=end
|
8
|
+
|
9
|
+
require 'spec_helper'
|
10
|
+
require 'json'
|
11
|
+
require 'date'
|
12
|
+
|
13
|
+
# Unit tests for Composio::ActionByStatusDTO
|
14
|
+
describe Composio::ActionByStatusDTO do
|
15
|
+
let(:instance) { Composio::ActionByStatusDTO.new }
|
16
|
+
|
17
|
+
describe 'test an instance of ActionByStatusDTO' do
|
18
|
+
it 'should create an instance of ActionByStatusDTO' do
|
19
|
+
expect(instance).to be_instance_of(Composio::ActionByStatusDTO)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
describe 'test attribute "failed"' 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 "success"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
@@ -0,0 +1,28 @@
|
|
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::ActionGetNLAInputsReqDTO
|
14
|
+
describe Composio::ActionGetNLAInputsReqDTO do
|
15
|
+
let(:instance) { Composio::ActionGetNLAInputsReqDTO.new }
|
16
|
+
|
17
|
+
describe 'test an instance of ActionGetNLAInputsReqDTO' do
|
18
|
+
it 'should create an instance of ActionGetNLAInputsReqDTO' do
|
19
|
+
expect(instance).to be_instance_of(Composio::ActionGetNLAInputsReqDTO)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
describe 'test attribute "text"' 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
|
+
end
|
@@ -0,0 +1,28 @@
|
|
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::AdditionalInfo
|
14
|
+
describe Composio::AdditionalInfo do
|
15
|
+
let(:instance) { Composio::AdditionalInfo.new }
|
16
|
+
|
17
|
+
describe 'test an instance of AdditionalInfo' do
|
18
|
+
it 'should create an instance of AdditionalInfo' do
|
19
|
+
expect(instance).to be_instance_of(Composio::AdditionalInfo)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
describe 'test attribute "meta"' 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
|
+
end
|
@@ -0,0 +1,32 @@
|
|
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::AnalyticsDataReqDTO
|
14
|
+
describe Composio::AnalyticsDataReqDTO do
|
15
|
+
let(:instance) { Composio::AnalyticsDataReqDTO.new }
|
16
|
+
|
17
|
+
describe 'test an instance of AnalyticsDataReqDTO' do
|
18
|
+
it 'should create an instance of AnalyticsDataReqDTO' do
|
19
|
+
expect(instance).to be_instance_of(Composio::AnalyticsDataReqDTO)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
describe 'test attribute "last_time_period"' do
|
23
|
+
it 'should work' do
|
24
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
25
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["DAY", "WEEK", "MONTH", "SIX_MONTH", "YEAR", "FIVE_YEAR"])
|
26
|
+
# validator.allowable_values.each do |value|
|
27
|
+
# expect { instance.last_time_period = value }.not_to raise_error
|
28
|
+
# end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
@@ -0,0 +1,52 @@
|
|
1
|
+
=begin
|
2
|
+
#Composio OpenAPI
|
3
|
+
|
4
|
+
#Composio SDK: Equip your agent with high-quality tools and build your real-world usecase
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
=end
|
8
|
+
|
9
|
+
require 'spec_helper'
|
10
|
+
require 'json'
|
11
|
+
require 'date'
|
12
|
+
|
13
|
+
# Unit tests for Composio::AnalyticsDataResDTO
|
14
|
+
describe Composio::AnalyticsDataResDTO do
|
15
|
+
let(:instance) { Composio::AnalyticsDataResDTO.new }
|
16
|
+
|
17
|
+
describe 'test an instance of AnalyticsDataResDTO' do
|
18
|
+
it 'should create an instance of AnalyticsDataResDTO' do
|
19
|
+
expect(instance).to be_instance_of(Composio::AnalyticsDataResDTO)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
describe 'test attribute "entity"' 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 "actions"' 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 "trigger"' 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 "integrations"' 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"' do
|
47
|
+
it 'should work' do
|
48
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
end
|
@@ -0,0 +1,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::AnalyticsEntityDataDTO
|
14
|
+
describe Composio::AnalyticsEntityDataDTO do
|
15
|
+
let(:instance) { Composio::AnalyticsEntityDataDTO.new }
|
16
|
+
|
17
|
+
describe 'test an instance of AnalyticsEntityDataDTO' do
|
18
|
+
it 'should create an instance of AnalyticsEntityDataDTO' do
|
19
|
+
expect(instance).to be_instance_of(Composio::AnalyticsEntityDataDTO)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
describe 'test attribute "by_connections"' 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 "by_actions"' 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 "by_triggers"' 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
|
@@ -49,4 +49,22 @@ describe Composio::APIKeyResDTO do
|
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
52
|
+
describe 'test attribute "is_hidden"' 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 "last_used"' 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 "member"' 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
|
+
|
52
70
|
end
|
@@ -0,0 +1,46 @@
|
|
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::AppNameCountDTO
|
14
|
+
describe Composio::AppNameCountDTO do
|
15
|
+
let(:instance) { Composio::AppNameCountDTO.new }
|
16
|
+
|
17
|
+
describe 'test an instance of AppNameCountDTO' do
|
18
|
+
it 'should create an instance of AppNameCountDTO' do
|
19
|
+
expect(instance).to be_instance_of(Composio::AppNameCountDTO)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
describe 'test attribute "app_name"' 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 "connection_count"' 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 "trigger_count"' 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 "request_logs_count"' 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
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
=begin
|
2
|
+
#Composio OpenAPI
|
3
|
+
|
4
|
+
#Composio SDK: Equip your agent with high-quality tools and build your real-world usecase
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
=end
|
8
|
+
|
9
|
+
require 'spec_helper'
|
10
|
+
require 'json'
|
11
|
+
require 'date'
|
12
|
+
|
13
|
+
# Unit tests for Composio::ClientUniqueUserIdCountDTO
|
14
|
+
describe Composio::ClientUniqueUserIdCountDTO do
|
15
|
+
let(:instance) { Composio::ClientUniqueUserIdCountDTO.new }
|
16
|
+
|
17
|
+
describe 'test an instance of ClientUniqueUserIdCountDTO' do
|
18
|
+
it 'should create an instance of ClientUniqueUserIdCountDTO' do
|
19
|
+
expect(instance).to be_instance_of(Composio::ClientUniqueUserIdCountDTO)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
describe 'test attribute "client_unique_user_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 "count"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
@@ -31,6 +31,12 @@ describe Composio::ConnectedAccountResponseDTO do
|
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|
34
|
+
describe 'test attribute "member_info"' 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
|
+
|
34
40
|
describe 'test attribute "meta"' do
|
35
41
|
it 'should work' do
|
36
42
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|