composio 0.1.15 → 0.1.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +4 -4
  3. data/README.md +250 -202
  4. data/lib/composio/api/actions_api.rb +201 -6
  5. data/lib/composio/api/admin_api.rb +78 -0
  6. data/lib/composio/api/auth_api.rb +77 -0
  7. data/lib/composio/api/cli_api.rb +266 -0
  8. data/lib/composio/api/connections_api.rb +124 -6
  9. data/lib/composio/api/event_logs_api.rb +0 -318
  10. data/lib/composio/api/integrations_api.rb +8 -4
  11. data/lib/composio/api/logs_api.rb +19 -4
  12. data/lib/composio/api/triggers_api.rb +9 -2
  13. data/lib/composio/models/action_execution_req_dto.rb +31 -4
  14. data/lib/composio/models/action_get_nla_inputs_req_dto.rb +22 -4
  15. data/lib/composio/models/actions_query_dto.rb +22 -4
  16. data/lib/composio/models/app_query_dto.rb +1 -1
  17. data/lib/composio/models/client_dto.rb +374 -0
  18. data/lib/composio/models/client_dto_created_at.rb +102 -0
  19. data/lib/composio/models/client_dto_last_subscribed_at.rb +102 -0
  20. data/lib/composio/models/client_dto_updated_at.rb +102 -0
  21. data/lib/composio/models/client_info_res_dto.rb +235 -0
  22. data/lib/composio/models/connection_params.rb +15 -4
  23. data/lib/composio/models/connection_with_app_data.rb +15 -4
  24. data/lib/composio/models/create_connector_payload_dto.rb +12 -7
  25. data/lib/composio/models/expected_input_fields_dto.rb +346 -0
  26. data/lib/composio/models/get_connections_query_dto.rb +15 -4
  27. data/lib/composio/models/get_connector_info_res_dto.rb +1 -1
  28. data/lib/composio/models/get_logs_dto.rb +14 -4
  29. data/lib/composio/models/ingest_data_dto.rb +21 -1
  30. data/lib/composio/models/initiate_connection_payload_dto.rb +19 -18
  31. data/lib/composio/models/list_triggers_query_dto.rb +11 -1
  32. data/lib/composio/models/sdk_error_res_dto.rb +221 -0
  33. data/lib/composio/models/session_info_dto.rb +224 -0
  34. data/lib/composio/models/tools_execute_req_dto.rb +22 -4
  35. data/lib/composio/models/trigger_response_dto.rb +14 -4
  36. data/lib/composio/models/update_connection_labels_payload_dto.rb +222 -0
  37. data/lib/composio/version.rb +1 -1
  38. data/lib/composio.rb +12 -3
  39. data/spec/api/actions_api_spec.rb +25 -0
  40. data/spec/api/admin_api_spec.rb +11 -0
  41. data/spec/api/auth_api_spec.rb +11 -0
  42. data/spec/api/cli_api_spec.rb +63 -0
  43. data/spec/api/connections_api_spec.rb +14 -0
  44. data/spec/api/event_logs_api_spec.rb +0 -43
  45. data/spec/api/logs_api_spec.rb +1 -0
  46. data/spec/api/triggers_api_spec.rb +1 -0
  47. data/spec/models/action_execution_req_dto_spec.rb +18 -0
  48. data/spec/models/action_get_nla_inputs_req_dto_spec.rb +12 -0
  49. data/spec/models/actions_query_dto_spec.rb +12 -0
  50. data/spec/models/client_dto_created_at_spec.rb +25 -0
  51. data/spec/models/client_dto_last_subscribed_at_spec.rb +25 -0
  52. data/spec/models/client_dto_spec.rb +100 -0
  53. data/spec/models/client_dto_updated_at_spec.rb +25 -0
  54. data/spec/models/client_info_res_dto_spec.rb +34 -0
  55. data/spec/models/connection_params_spec.rb +6 -0
  56. data/spec/models/connection_with_app_data_spec.rb +6 -0
  57. data/spec/models/create_connector_payload_dto_spec.rb +6 -0
  58. data/spec/models/expected_input_fields_dto_spec.rb +82 -0
  59. data/spec/models/get_connections_query_dto_spec.rb +6 -0
  60. data/spec/models/get_logs_dto_spec.rb +6 -0
  61. data/spec/models/ingest_data_dto_spec.rb +12 -0
  62. data/spec/models/initiate_connection_payload_dto_spec.rb +6 -0
  63. data/spec/models/list_triggers_query_dto_spec.rb +6 -0
  64. data/spec/models/sdk_error_res_dto_spec.rb +28 -0
  65. data/spec/models/session_info_dto_spec.rb +34 -0
  66. data/spec/models/tools_execute_req_dto_spec.rb +12 -0
  67. data/spec/models/trigger_response_dto_spec.rb +6 -0
  68. data/spec/models/update_connection_labels_payload_dto_spec.rb +28 -0
  69. metadata +32 -4
  70. data/spec/api/payment_api_spec.rb +0 -83
@@ -1,83 +0,0 @@
1
- =begin
2
- #Composio OpenAPI
3
-
4
- #Composio SDK: Equip your agent with high-quality tools and build your real-world usecase
5
-
6
- The version of the OpenAPI document: 1.0.0
7
- =end
8
-
9
- require 'spec_helper'
10
- require 'json'
11
-
12
- # Unit tests for Composio::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