composio 0.1.14 → 0.1.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -4
- data/README.md +248 -202
- data/lib/composio/api/actions_api.rb +191 -4
- data/lib/composio/api/admin_api.rb +78 -0
- data/lib/composio/api/auth_api.rb +77 -0
- data/lib/composio/api/cli_api.rb +266 -0
- data/lib/composio/api/connections_api.rb +128 -6
- data/lib/composio/api/event_logs_api.rb +0 -318
- data/lib/composio/api/integrations_api.rb +8 -4
- data/lib/composio/api/logs_api.rb +19 -4
- data/lib/composio/api/triggers_api.rb +9 -2
- data/lib/composio/models/action_execution_req_dto.rb +31 -4
- data/lib/composio/models/actions_query_dto.rb +22 -4
- data/lib/composio/models/app_query_dto.rb +1 -1
- data/lib/composio/models/client_dto.rb +374 -0
- data/lib/composio/models/client_dto_created_at.rb +102 -0
- data/lib/composio/models/client_dto_last_subscribed_at.rb +102 -0
- data/lib/composio/models/client_dto_updated_at.rb +102 -0
- data/lib/composio/models/client_info_res_dto.rb +235 -0
- data/lib/composio/models/connection_params.rb +15 -4
- data/lib/composio/models/connection_with_app_data.rb +15 -4
- data/lib/composio/models/create_connector_payload_dto.rb +12 -7
- data/lib/composio/models/expected_input_fields_dto.rb +346 -0
- data/lib/composio/models/get_connections_query_dto.rb +15 -4
- data/lib/composio/models/get_connector_info_res_dto.rb +1 -1
- data/lib/composio/models/get_logs_dto.rb +14 -4
- data/lib/composio/models/ingest_data_dto.rb +21 -1
- data/lib/composio/models/initiate_connection_payload_dto.rb +28 -18
- data/lib/composio/models/list_triggers_query_dto.rb +11 -1
- data/lib/composio/models/sdk_error_res_dto.rb +221 -0
- data/lib/composio/models/session_info_dto.rb +224 -0
- data/lib/composio/models/tools_execute_req_dto.rb +22 -4
- data/lib/composio/models/trigger_response_dto.rb +14 -4
- data/lib/composio/models/update_connection_labels_payload_dto.rb +222 -0
- data/lib/composio/version.rb +1 -1
- data/lib/composio.rb +12 -3
- data/spec/api/actions_api_spec.rb +25 -0
- data/spec/api/admin_api_spec.rb +11 -0
- data/spec/api/auth_api_spec.rb +11 -0
- data/spec/api/cli_api_spec.rb +63 -0
- data/spec/api/connections_api_spec.rb +14 -0
- data/spec/api/event_logs_api_spec.rb +0 -43
- data/spec/api/logs_api_spec.rb +1 -0
- data/spec/api/triggers_api_spec.rb +1 -0
- data/spec/models/action_execution_req_dto_spec.rb +18 -0
- data/spec/models/actions_query_dto_spec.rb +12 -0
- data/spec/models/client_dto_created_at_spec.rb +25 -0
- data/spec/models/client_dto_last_subscribed_at_spec.rb +25 -0
- data/spec/models/client_dto_spec.rb +100 -0
- data/spec/models/client_dto_updated_at_spec.rb +25 -0
- data/spec/models/client_info_res_dto_spec.rb +34 -0
- data/spec/models/connection_params_spec.rb +6 -0
- data/spec/models/connection_with_app_data_spec.rb +6 -0
- data/spec/models/create_connector_payload_dto_spec.rb +6 -0
- data/spec/models/expected_input_fields_dto_spec.rb +82 -0
- data/spec/models/get_connections_query_dto_spec.rb +6 -0
- data/spec/models/get_logs_dto_spec.rb +6 -0
- data/spec/models/ingest_data_dto_spec.rb +12 -0
- data/spec/models/initiate_connection_payload_dto_spec.rb +12 -0
- data/spec/models/list_triggers_query_dto_spec.rb +6 -0
- data/spec/models/sdk_error_res_dto_spec.rb +28 -0
- data/spec/models/session_info_dto_spec.rb +34 -0
- data/spec/models/tools_execute_req_dto_spec.rb +12 -0
- data/spec/models/trigger_response_dto_spec.rb +6 -0
- data/spec/models/update_connection_labels_payload_dto_spec.rb +28 -0
- metadata +32 -4
- data/spec/api/payment_api_spec.rb +0 -83
@@ -26,19 +26,25 @@ module Composio
|
|
26
26
|
# @param entity_id [String]
|
27
27
|
# @param endpoint [String]
|
28
28
|
# @param input [Object]
|
29
|
+
# @param session_info [SessionInfoDTO]
|
29
30
|
# @param auth_config [CustomAuthDTO]
|
30
31
|
# @param text [String]
|
32
|
+
# @param custom_description [String]
|
33
|
+
# @param system_prompt [String]
|
31
34
|
# @param body [ActionExecutionReqDTO]
|
32
35
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
33
|
-
def execute(action_id:, connected_account_id: SENTINEL, app_name: SENTINEL, entity_id: SENTINEL, endpoint: SENTINEL, input: SENTINEL, auth_config: SENTINEL, text: SENTINEL, extra: {})
|
36
|
+
def execute(action_id:, connected_account_id: SENTINEL, app_name: SENTINEL, entity_id: SENTINEL, endpoint: SENTINEL, input: SENTINEL, session_info: SENTINEL, auth_config: SENTINEL, text: SENTINEL, custom_description: SENTINEL, system_prompt: SENTINEL, extra: {})
|
34
37
|
_body = {}
|
35
38
|
_body[:connectedAccountId] = connected_account_id if connected_account_id != SENTINEL
|
36
39
|
_body[:appName] = app_name if app_name != SENTINEL
|
37
40
|
_body[:entityId] = entity_id if entity_id != SENTINEL
|
38
41
|
_body[:endpoint] = endpoint if endpoint != SENTINEL
|
39
42
|
_body[:input] = input if input != SENTINEL
|
43
|
+
_body[:sessionInfo] = session_info if session_info != SENTINEL
|
40
44
|
_body[:authConfig] = auth_config if auth_config != SENTINEL
|
41
45
|
_body[:text] = text if text != SENTINEL
|
46
|
+
_body[:customDescription] = custom_description if custom_description != SENTINEL
|
47
|
+
_body[:systemPrompt] = system_prompt if system_prompt != SENTINEL
|
42
48
|
extra[:action_execution_req_dto] = _body if !_body.empty?
|
43
49
|
api_response = execute_with_http_info_impl(action_id, extra)
|
44
50
|
api_response.data
|
@@ -54,19 +60,25 @@ module Composio
|
|
54
60
|
# @param entity_id [String]
|
55
61
|
# @param endpoint [String]
|
56
62
|
# @param input [Object]
|
63
|
+
# @param session_info [SessionInfoDTO]
|
57
64
|
# @param auth_config [CustomAuthDTO]
|
58
65
|
# @param text [String]
|
66
|
+
# @param custom_description [String]
|
67
|
+
# @param system_prompt [String]
|
59
68
|
# @param body [ActionExecutionReqDTO]
|
60
69
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
61
|
-
def execute_with_http_info(action_id:, connected_account_id: SENTINEL, app_name: SENTINEL, entity_id: SENTINEL, endpoint: SENTINEL, input: SENTINEL, auth_config: SENTINEL, text: SENTINEL, extra: {})
|
70
|
+
def execute_with_http_info(action_id:, connected_account_id: SENTINEL, app_name: SENTINEL, entity_id: SENTINEL, endpoint: SENTINEL, input: SENTINEL, session_info: SENTINEL, auth_config: SENTINEL, text: SENTINEL, custom_description: SENTINEL, system_prompt: SENTINEL, extra: {})
|
62
71
|
_body = {}
|
63
72
|
_body[:connectedAccountId] = connected_account_id if connected_account_id != SENTINEL
|
64
73
|
_body[:appName] = app_name if app_name != SENTINEL
|
65
74
|
_body[:entityId] = entity_id if entity_id != SENTINEL
|
66
75
|
_body[:endpoint] = endpoint if endpoint != SENTINEL
|
67
76
|
_body[:input] = input if input != SENTINEL
|
77
|
+
_body[:sessionInfo] = session_info if session_info != SENTINEL
|
68
78
|
_body[:authConfig] = auth_config if auth_config != SENTINEL
|
69
79
|
_body[:text] = text if text != SENTINEL
|
80
|
+
_body[:customDescription] = custom_description if custom_description != SENTINEL
|
81
|
+
_body[:systemPrompt] = system_prompt if system_prompt != SENTINEL
|
70
82
|
extra[:action_execution_req_dto] = _body if !_body.empty?
|
71
83
|
execute_with_http_info_impl(action_id, extra)
|
72
84
|
end
|
@@ -453,8 +465,10 @@ module Composio
|
|
453
465
|
# @param usecase_limit [Float]
|
454
466
|
# @param filter_important_actions [Boolean]
|
455
467
|
# @param show_all [Boolean]
|
468
|
+
# @param page [Float]
|
469
|
+
# @param offset [Float]
|
456
470
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
457
|
-
def get_all_actions_based_on_query(app_names: SENTINEL, use_case: SENTINEL, show_enabled_only: SENTINEL, limit: SENTINEL, apps: SENTINEL, actions: SENTINEL, tags: SENTINEL, usecase_limit: SENTINEL, filter_important_actions: SENTINEL, show_all: SENTINEL, extra: {})
|
471
|
+
def get_all_actions_based_on_query(app_names: SENTINEL, use_case: SENTINEL, show_enabled_only: SENTINEL, limit: SENTINEL, apps: SENTINEL, actions: SENTINEL, tags: SENTINEL, usecase_limit: SENTINEL, filter_important_actions: SENTINEL, show_all: SENTINEL, page: SENTINEL, offset: SENTINEL, extra: {})
|
458
472
|
extra[:app_names] = app_names if app_names != SENTINEL
|
459
473
|
extra[:use_case] = use_case if use_case != SENTINEL
|
460
474
|
extra[:show_enabled_only] = show_enabled_only if show_enabled_only != SENTINEL
|
@@ -465,6 +479,8 @@ module Composio
|
|
465
479
|
extra[:usecase_limit] = usecase_limit if usecase_limit != SENTINEL
|
466
480
|
extra[:filter_important_actions] = filter_important_actions if filter_important_actions != SENTINEL
|
467
481
|
extra[:show_all] = show_all if show_all != SENTINEL
|
482
|
+
extra[:page] = page if page != SENTINEL
|
483
|
+
extra[:offset] = offset if offset != SENTINEL
|
468
484
|
api_response = get_all_actions_based_on_query_with_http_info_impl(extra)
|
469
485
|
api_response.data
|
470
486
|
end
|
@@ -483,8 +499,10 @@ module Composio
|
|
483
499
|
# @param usecase_limit [Float]
|
484
500
|
# @param filter_important_actions [Boolean]
|
485
501
|
# @param show_all [Boolean]
|
502
|
+
# @param page [Float]
|
503
|
+
# @param offset [Float]
|
486
504
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
487
|
-
def get_all_actions_based_on_query_with_http_info(app_names: SENTINEL, use_case: SENTINEL, show_enabled_only: SENTINEL, limit: SENTINEL, apps: SENTINEL, actions: SENTINEL, tags: SENTINEL, usecase_limit: SENTINEL, filter_important_actions: SENTINEL, show_all: SENTINEL, extra: {})
|
505
|
+
def get_all_actions_based_on_query_with_http_info(app_names: SENTINEL, use_case: SENTINEL, show_enabled_only: SENTINEL, limit: SENTINEL, apps: SENTINEL, actions: SENTINEL, tags: SENTINEL, usecase_limit: SENTINEL, filter_important_actions: SENTINEL, show_all: SENTINEL, page: SENTINEL, offset: SENTINEL, extra: {})
|
488
506
|
extra[:app_names] = app_names if app_names != SENTINEL
|
489
507
|
extra[:use_case] = use_case if use_case != SENTINEL
|
490
508
|
extra[:show_enabled_only] = show_enabled_only if show_enabled_only != SENTINEL
|
@@ -495,6 +513,8 @@ module Composio
|
|
495
513
|
extra[:usecase_limit] = usecase_limit if usecase_limit != SENTINEL
|
496
514
|
extra[:filter_important_actions] = filter_important_actions if filter_important_actions != SENTINEL
|
497
515
|
extra[:show_all] = show_all if show_all != SENTINEL
|
516
|
+
extra[:page] = page if page != SENTINEL
|
517
|
+
extra[:offset] = offset if offset != SENTINEL
|
498
518
|
get_all_actions_based_on_query_with_http_info_impl(extra)
|
499
519
|
end
|
500
520
|
|
@@ -511,6 +531,8 @@ module Composio
|
|
511
531
|
# @option opts [Float] :usecase_limit
|
512
532
|
# @option opts [Boolean] :filter_important_actions
|
513
533
|
# @option opts [Boolean] :show_all
|
534
|
+
# @option opts [Float] :page
|
535
|
+
# @option opts [Float] :offset
|
514
536
|
# @return [ActionsListResponseDTO]
|
515
537
|
private def get_all_actions_based_on_query_impl(opts = {})
|
516
538
|
data, _status_code, _headers = get_all_actions_based_on_query_with_http_info(opts)
|
@@ -530,6 +552,8 @@ module Composio
|
|
530
552
|
# @option opts [Float] :usecase_limit
|
531
553
|
# @option opts [Boolean] :filter_important_actions
|
532
554
|
# @option opts [Boolean] :show_all
|
555
|
+
# @option opts [Float] :page
|
556
|
+
# @option opts [Float] :offset
|
533
557
|
# @return [APIResponse] data is ActionsListResponseDTO, status code, headers and response
|
534
558
|
private def get_all_actions_based_on_query_with_http_info_impl(opts = {})
|
535
559
|
if @api_client.config.debugging
|
@@ -550,6 +574,8 @@ module Composio
|
|
550
574
|
query_params[:'usecaseLimit'] = opts[:'usecase_limit'] if !opts[:'usecase_limit'].nil?
|
551
575
|
query_params[:'filterImportantActions'] = opts[:'filter_important_actions'] if !opts[:'filter_important_actions'].nil?
|
552
576
|
query_params[:'showAll'] = opts[:'show_all'] if !opts[:'show_all'].nil?
|
577
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
578
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
553
579
|
|
554
580
|
# header parameters
|
555
581
|
header_params = opts[:header_params] || {}
|
@@ -584,6 +610,167 @@ module Composio
|
|
584
610
|
end
|
585
611
|
APIResponse::new(data, status_code, headers, response)
|
586
612
|
end
|
613
|
+
|
614
|
+
|
615
|
+
# List actions
|
616
|
+
#
|
617
|
+
# Retrieve a list of all actions based on query parameters.
|
618
|
+
#
|
619
|
+
# @param app_names [String]
|
620
|
+
# @param use_case [String]
|
621
|
+
# @param show_enabled_only [Boolean]
|
622
|
+
# @param limit [Float]
|
623
|
+
# @param apps [String]
|
624
|
+
# @param actions [String]
|
625
|
+
# @param tags [String]
|
626
|
+
# @param usecase_limit [Float]
|
627
|
+
# @param filter_important_actions [Boolean]
|
628
|
+
# @param show_all [Boolean]
|
629
|
+
# @param page [Float]
|
630
|
+
# @param offset [Float]
|
631
|
+
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
632
|
+
def list(app_names: SENTINEL, use_case: SENTINEL, show_enabled_only: SENTINEL, limit: SENTINEL, apps: SENTINEL, actions: SENTINEL, tags: SENTINEL, usecase_limit: SENTINEL, filter_important_actions: SENTINEL, show_all: SENTINEL, page: SENTINEL, offset: SENTINEL, extra: {})
|
633
|
+
extra[:app_names] = app_names if app_names != SENTINEL
|
634
|
+
extra[:use_case] = use_case if use_case != SENTINEL
|
635
|
+
extra[:show_enabled_only] = show_enabled_only if show_enabled_only != SENTINEL
|
636
|
+
extra[:limit] = limit if limit != SENTINEL
|
637
|
+
extra[:apps] = apps if apps != SENTINEL
|
638
|
+
extra[:actions] = actions if actions != SENTINEL
|
639
|
+
extra[:tags] = tags if tags != SENTINEL
|
640
|
+
extra[:usecase_limit] = usecase_limit if usecase_limit != SENTINEL
|
641
|
+
extra[:filter_important_actions] = filter_important_actions if filter_important_actions != SENTINEL
|
642
|
+
extra[:show_all] = show_all if show_all != SENTINEL
|
643
|
+
extra[:page] = page if page != SENTINEL
|
644
|
+
extra[:offset] = offset if offset != SENTINEL
|
645
|
+
api_response = list_with_http_info_impl(extra)
|
646
|
+
api_response.data
|
647
|
+
end
|
648
|
+
|
649
|
+
# List actions
|
650
|
+
#
|
651
|
+
# Retrieve a list of all actions based on query parameters.
|
652
|
+
#
|
653
|
+
# @param app_names [String]
|
654
|
+
# @param use_case [String]
|
655
|
+
# @param show_enabled_only [Boolean]
|
656
|
+
# @param limit [Float]
|
657
|
+
# @param apps [String]
|
658
|
+
# @param actions [String]
|
659
|
+
# @param tags [String]
|
660
|
+
# @param usecase_limit [Float]
|
661
|
+
# @param filter_important_actions [Boolean]
|
662
|
+
# @param show_all [Boolean]
|
663
|
+
# @param page [Float]
|
664
|
+
# @param offset [Float]
|
665
|
+
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
666
|
+
def list_with_http_info(app_names: SENTINEL, use_case: SENTINEL, show_enabled_only: SENTINEL, limit: SENTINEL, apps: SENTINEL, actions: SENTINEL, tags: SENTINEL, usecase_limit: SENTINEL, filter_important_actions: SENTINEL, show_all: SENTINEL, page: SENTINEL, offset: SENTINEL, extra: {})
|
667
|
+
extra[:app_names] = app_names if app_names != SENTINEL
|
668
|
+
extra[:use_case] = use_case if use_case != SENTINEL
|
669
|
+
extra[:show_enabled_only] = show_enabled_only if show_enabled_only != SENTINEL
|
670
|
+
extra[:limit] = limit if limit != SENTINEL
|
671
|
+
extra[:apps] = apps if apps != SENTINEL
|
672
|
+
extra[:actions] = actions if actions != SENTINEL
|
673
|
+
extra[:tags] = tags if tags != SENTINEL
|
674
|
+
extra[:usecase_limit] = usecase_limit if usecase_limit != SENTINEL
|
675
|
+
extra[:filter_important_actions] = filter_important_actions if filter_important_actions != SENTINEL
|
676
|
+
extra[:show_all] = show_all if show_all != SENTINEL
|
677
|
+
extra[:page] = page if page != SENTINEL
|
678
|
+
extra[:offset] = offset if offset != SENTINEL
|
679
|
+
list_with_http_info_impl(extra)
|
680
|
+
end
|
681
|
+
|
682
|
+
# List actions
|
683
|
+
# Retrieve a list of all actions based on query parameters.
|
684
|
+
# @param [Hash] opts the optional parameters
|
685
|
+
# @option opts [String] :app_names
|
686
|
+
# @option opts [String] :use_case
|
687
|
+
# @option opts [Boolean] :show_enabled_only
|
688
|
+
# @option opts [Float] :limit
|
689
|
+
# @option opts [String] :apps
|
690
|
+
# @option opts [String] :actions
|
691
|
+
# @option opts [String] :tags
|
692
|
+
# @option opts [Float] :usecase_limit
|
693
|
+
# @option opts [Boolean] :filter_important_actions
|
694
|
+
# @option opts [Boolean] :show_all
|
695
|
+
# @option opts [Float] :page
|
696
|
+
# @option opts [Float] :offset
|
697
|
+
# @return [ActionsListResponseDTO]
|
698
|
+
private def list_impl(opts = {})
|
699
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
700
|
+
data
|
701
|
+
end
|
702
|
+
|
703
|
+
# List actions
|
704
|
+
# Retrieve a list of all actions based on query parameters.
|
705
|
+
# @param [Hash] opts the optional parameters
|
706
|
+
# @option opts [String] :app_names
|
707
|
+
# @option opts [String] :use_case
|
708
|
+
# @option opts [Boolean] :show_enabled_only
|
709
|
+
# @option opts [Float] :limit
|
710
|
+
# @option opts [String] :apps
|
711
|
+
# @option opts [String] :actions
|
712
|
+
# @option opts [String] :tags
|
713
|
+
# @option opts [Float] :usecase_limit
|
714
|
+
# @option opts [Boolean] :filter_important_actions
|
715
|
+
# @option opts [Boolean] :show_all
|
716
|
+
# @option opts [Float] :page
|
717
|
+
# @option opts [Float] :offset
|
718
|
+
# @return [APIResponse] data is ActionsListResponseDTO, status code, headers and response
|
719
|
+
private def list_with_http_info_impl(opts = {})
|
720
|
+
if @api_client.config.debugging
|
721
|
+
@api_client.config.logger.debug 'Calling API: ActionsApi.list ...'
|
722
|
+
end
|
723
|
+
# resource path
|
724
|
+
local_var_path = '/api/v2/actions'
|
725
|
+
|
726
|
+
# query parameters
|
727
|
+
query_params = opts[:query_params] || {}
|
728
|
+
query_params[:'appNames'] = opts[:'app_names'] if !opts[:'app_names'].nil?
|
729
|
+
query_params[:'useCase'] = opts[:'use_case'] if !opts[:'use_case'].nil?
|
730
|
+
query_params[:'showEnabledOnly'] = opts[:'show_enabled_only'] if !opts[:'show_enabled_only'].nil?
|
731
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
732
|
+
query_params[:'apps'] = opts[:'apps'] if !opts[:'apps'].nil?
|
733
|
+
query_params[:'actions'] = opts[:'actions'] if !opts[:'actions'].nil?
|
734
|
+
query_params[:'tags'] = opts[:'tags'] if !opts[:'tags'].nil?
|
735
|
+
query_params[:'usecaseLimit'] = opts[:'usecase_limit'] if !opts[:'usecase_limit'].nil?
|
736
|
+
query_params[:'filterImportantActions'] = opts[:'filter_important_actions'] if !opts[:'filter_important_actions'].nil?
|
737
|
+
query_params[:'showAll'] = opts[:'show_all'] if !opts[:'show_all'].nil?
|
738
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
739
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
740
|
+
|
741
|
+
# header parameters
|
742
|
+
header_params = opts[:header_params] || {}
|
743
|
+
# HTTP header 'Accept' (if needed)
|
744
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
745
|
+
|
746
|
+
# form parameters
|
747
|
+
form_params = opts[:form_params] || {}
|
748
|
+
|
749
|
+
# http body (model)
|
750
|
+
post_body = opts[:debug_body]
|
751
|
+
|
752
|
+
# return_type
|
753
|
+
return_type = opts[:debug_return_type] || 'ActionsListResponseDTO'
|
754
|
+
|
755
|
+
# auth_names
|
756
|
+
auth_names = opts[:debug_auth_names] || ['api_key']
|
757
|
+
|
758
|
+
new_options = opts.merge(
|
759
|
+
:operation => :"ActionsApi.list",
|
760
|
+
:header_params => header_params,
|
761
|
+
:query_params => query_params,
|
762
|
+
:form_params => form_params,
|
763
|
+
:body => post_body,
|
764
|
+
:auth_names => auth_names,
|
765
|
+
:return_type => return_type
|
766
|
+
)
|
767
|
+
|
768
|
+
data, status_code, headers, response = @api_client.call_api(:GET, local_var_path, new_options)
|
769
|
+
if @api_client.config.debugging
|
770
|
+
@api_client.config.logger.debug "API called: ActionsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
771
|
+
end
|
772
|
+
APIResponse::new(data, status_code, headers, response)
|
773
|
+
end
|
587
774
|
end
|
588
775
|
|
589
776
|
# top-level client access to avoid having the user to insantiate their own API instances
|
@@ -16,6 +16,84 @@ module Composio
|
|
16
16
|
@api_client = api_client
|
17
17
|
end
|
18
18
|
|
19
|
+
# Clear cache
|
20
|
+
#
|
21
|
+
# @param x_admin_token [String]
|
22
|
+
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
23
|
+
def clear_cache(x_admin_token: SENTINEL, extra: {})
|
24
|
+
extra[:x_admin_token] = x_admin_token if x_admin_token != SENTINEL
|
25
|
+
api_response = clear_cache_with_http_info_impl(extra)
|
26
|
+
api_response.data
|
27
|
+
end
|
28
|
+
|
29
|
+
# Clear cache
|
30
|
+
#
|
31
|
+
# @param x_admin_token [String]
|
32
|
+
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
33
|
+
def clear_cache_with_http_info(x_admin_token: SENTINEL, extra: {})
|
34
|
+
extra[:x_admin_token] = x_admin_token if x_admin_token != SENTINEL
|
35
|
+
clear_cache_with_http_info_impl(extra)
|
36
|
+
end
|
37
|
+
|
38
|
+
# Clear cache
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @option opts [String] :x_admin_token
|
41
|
+
# @return [Object]
|
42
|
+
private def clear_cache_impl(opts = {})
|
43
|
+
data, _status_code, _headers = clear_cache_with_http_info(opts)
|
44
|
+
data
|
45
|
+
end
|
46
|
+
|
47
|
+
# Clear cache
|
48
|
+
# @param [Hash] opts the optional parameters
|
49
|
+
# @option opts [String] :x_admin_token
|
50
|
+
# @return [APIResponse] data is Object, status code, headers and response
|
51
|
+
private def clear_cache_with_http_info_impl(opts = {})
|
52
|
+
if @api_client.config.debugging
|
53
|
+
@api_client.config.logger.debug 'Calling API: AdminApi.clear_cache ...'
|
54
|
+
end
|
55
|
+
# resource path
|
56
|
+
local_var_path = '/api/v1/clear-cache'
|
57
|
+
|
58
|
+
# query parameters
|
59
|
+
query_params = opts[:query_params] || {}
|
60
|
+
|
61
|
+
# header parameters
|
62
|
+
header_params = opts[:header_params] || {}
|
63
|
+
# HTTP header 'Accept' (if needed)
|
64
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
65
|
+
header_params[:'X-ADMIN-TOKEN'] = opts[:'x_admin_token'] if !opts[:'x_admin_token'].nil?
|
66
|
+
|
67
|
+
# form parameters
|
68
|
+
form_params = opts[:form_params] || {}
|
69
|
+
|
70
|
+
# http body (model)
|
71
|
+
post_body = opts[:debug_body]
|
72
|
+
|
73
|
+
# return_type
|
74
|
+
return_type = opts[:debug_return_type] || 'Object'
|
75
|
+
|
76
|
+
# auth_names
|
77
|
+
auth_names = opts[:debug_auth_names] || ['api_key']
|
78
|
+
|
79
|
+
new_options = opts.merge(
|
80
|
+
:operation => :"AdminApi.clear_cache",
|
81
|
+
:header_params => header_params,
|
82
|
+
:query_params => query_params,
|
83
|
+
:form_params => form_params,
|
84
|
+
:body => post_body,
|
85
|
+
:auth_names => auth_names,
|
86
|
+
:return_type => return_type
|
87
|
+
)
|
88
|
+
|
89
|
+
data, status_code, headers, response = @api_client.call_api(:POST, local_var_path, new_options)
|
90
|
+
if @api_client.config.debugging
|
91
|
+
@api_client.config.logger.debug "API called: AdminApi#clear_cache\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
92
|
+
end
|
93
|
+
APIResponse::new(data, status_code, headers, response)
|
94
|
+
end
|
95
|
+
|
96
|
+
|
19
97
|
# Jssentry dns
|
20
98
|
#
|
21
99
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
@@ -16,6 +16,83 @@ module Composio
|
|
16
16
|
@api_client = api_client
|
17
17
|
end
|
18
18
|
|
19
|
+
# Get user info
|
20
|
+
#
|
21
|
+
# Get client info
|
22
|
+
#
|
23
|
+
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
24
|
+
def get_user_info(extra: {})
|
25
|
+
api_response = get_user_info_with_http_info_impl(extra)
|
26
|
+
api_response.data
|
27
|
+
end
|
28
|
+
|
29
|
+
# Get user info
|
30
|
+
#
|
31
|
+
# Get client info
|
32
|
+
#
|
33
|
+
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
34
|
+
def get_user_info_with_http_info(extra: {})
|
35
|
+
get_user_info_with_http_info_impl(extra)
|
36
|
+
end
|
37
|
+
|
38
|
+
# Get user info
|
39
|
+
# Get client info
|
40
|
+
# @param [Hash] opts the optional parameters
|
41
|
+
# @return [ClientInfoResDTO]
|
42
|
+
private def get_user_info_impl(opts = {})
|
43
|
+
data, _status_code, _headers = get_user_info_with_http_info(opts)
|
44
|
+
data
|
45
|
+
end
|
46
|
+
|
47
|
+
# Get user info
|
48
|
+
# Get client info
|
49
|
+
# @param [Hash] opts the optional parameters
|
50
|
+
# @return [APIResponse] data is ClientInfoResDTO, status code, headers and response
|
51
|
+
private def get_user_info_with_http_info_impl(opts = {})
|
52
|
+
if @api_client.config.debugging
|
53
|
+
@api_client.config.logger.debug 'Calling API: AuthApi.get_user_info ...'
|
54
|
+
end
|
55
|
+
# resource path
|
56
|
+
local_var_path = '/api/v1/client/auth/client_info'
|
57
|
+
|
58
|
+
# query parameters
|
59
|
+
query_params = opts[:query_params] || {}
|
60
|
+
|
61
|
+
# header parameters
|
62
|
+
header_params = opts[:header_params] || {}
|
63
|
+
# HTTP header 'Accept' (if needed)
|
64
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
65
|
+
|
66
|
+
# form parameters
|
67
|
+
form_params = opts[:form_params] || {}
|
68
|
+
|
69
|
+
# http body (model)
|
70
|
+
post_body = opts[:debug_body]
|
71
|
+
|
72
|
+
# return_type
|
73
|
+
return_type = opts[:debug_return_type] || 'ClientInfoResDTO'
|
74
|
+
|
75
|
+
# auth_names
|
76
|
+
auth_names = opts[:debug_auth_names] || ['api_key']
|
77
|
+
|
78
|
+
new_options = opts.merge(
|
79
|
+
:operation => :"AuthApi.get_user_info",
|
80
|
+
:header_params => header_params,
|
81
|
+
:query_params => query_params,
|
82
|
+
:form_params => form_params,
|
83
|
+
:body => post_body,
|
84
|
+
:auth_names => auth_names,
|
85
|
+
:return_type => return_type
|
86
|
+
)
|
87
|
+
|
88
|
+
data, status_code, headers, response = @api_client.call_api(:GET, local_var_path, new_options)
|
89
|
+
if @api_client.config.debugging
|
90
|
+
@api_client.config.logger.debug "API called: AuthApi#get_user_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
91
|
+
end
|
92
|
+
APIResponse::new(data, status_code, headers, response)
|
93
|
+
end
|
94
|
+
|
95
|
+
|
19
96
|
# Identify client
|
20
97
|
#
|
21
98
|
# @param hash [String] The hash of the client
|