composio 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +3 -3
  3. data/README.md +462 -4
  4. data/lib/composio/api/actions_api.rb +107 -0
  5. data/lib/composio/api/analytics_api.rb +181 -0
  6. data/lib/composio/api/apps_api.rb +257 -0
  7. data/lib/composio/api/event_logs_api.rb +427 -0
  8. data/lib/composio/api/logs_api.rb +127 -9
  9. data/lib/composio/api/payment_api.rb +430 -0
  10. data/lib/composio/models/action_analytics_dto.rb +250 -0
  11. data/lib/composio/models/action_by_app_dto.rb +237 -0
  12. data/lib/composio/models/action_by_status_dto.rb +237 -0
  13. data/lib/composio/models/action_get_nla_inputs_req_dto.rb +220 -0
  14. data/lib/composio/models/analytics_data_req_dto.rb +250 -0
  15. data/lib/composio/models/analytics_data_res_dto.rb +282 -0
  16. data/lib/composio/models/analytics_entity_data_dto.rb +257 -0
  17. data/lib/composio/models/api_key_res_dto.rb +61 -4
  18. data/lib/composio/models/app_name_count_dto.rb +267 -0
  19. data/lib/composio/models/client_unique_user_id_count_dto.rb +237 -0
  20. data/lib/composio/models/connected_account_response_dto.rb +10 -1
  21. data/lib/composio/models/connection_params.rb +22 -6
  22. data/lib/composio/models/connection_with_app_data.rb +22 -6
  23. data/lib/composio/models/connector_list_item_dto.rb +16 -1
  24. data/lib/composio/models/create_checkout_session_req_dto.rb +220 -0
  25. data/lib/composio/models/entity_query_req_dto.rb +216 -0
  26. data/lib/composio/models/fetch_query_dto.rb +278 -0
  27. data/lib/composio/models/get_connector_list_res_dto.rb +0 -1
  28. data/lib/composio/models/get_logs_dto.rb +10 -10
  29. data/lib/composio/models/{job_status.rb → get_logs_dto_status.rb} +6 -6
  30. data/lib/composio/models/ingest_data_dto.rb +298 -0
  31. data/lib/composio/models/ingest_data_response_dto.rb +220 -0
  32. data/lib/composio/models/integrations_with_counts_dto.rb +297 -0
  33. data/lib/composio/models/invite_member_req_dto.rb +14 -4
  34. data/lib/composio/models/last_time_period.rb +40 -0
  35. data/lib/composio/models/member_info_res_dto.rb +324 -0
  36. data/lib/composio/models/{connection_with_app_data_created_at.rb → member_info_res_dto_created_at.rb} +1 -1
  37. data/lib/composio/models/member_res_dto.rb +16 -1
  38. data/lib/composio/models/member_res_dto_role.rb +36 -0
  39. data/lib/composio/models/open_api_spec_list_res_dto.rb +17 -74
  40. data/lib/composio/models/plan.rb +38 -0
  41. data/lib/composio/models/role.rb +36 -0
  42. data/lib/composio/models/state.rb +41 -0
  43. data/lib/composio/models/status.rb +7 -4
  44. data/lib/composio/models/t_connection_count_dto.rb +236 -0
  45. data/lib/composio/models/time_period_req_dto.rb +216 -0
  46. data/lib/composio/models/top_entities_res_dto.rb +223 -0
  47. data/lib/composio/models/update_member_req_dto.rb +236 -0
  48. data/lib/composio/models/update_member_req_dto_role.rb +36 -0
  49. data/lib/composio/models/webhook_req_dto.rb +221 -0
  50. data/lib/composio/models/webhook_secret_res_dto.rb +221 -0
  51. data/lib/composio/version.rb +1 -1
  52. data/lib/composio.rb +39 -2
  53. data/spec/api/actions_api_spec.rb +13 -0
  54. data/spec/api/analytics_api_spec.rb +51 -0
  55. data/spec/api/apps_api_spec.rb +34 -0
  56. data/spec/api/event_logs_api_spec.rb +83 -0
  57. data/spec/api/logs_api_spec.rb +13 -1
  58. data/spec/api/payment_api_spec.rb +83 -0
  59. data/spec/models/action_analytics_dto_spec.rb +40 -0
  60. data/spec/models/action_by_app_dto_spec.rb +34 -0
  61. data/spec/models/action_by_status_dto_spec.rb +34 -0
  62. data/spec/models/action_get_nla_inputs_req_dto_spec.rb +28 -0
  63. data/spec/models/analytics_data_req_dto_spec.rb +32 -0
  64. data/spec/models/analytics_data_res_dto_spec.rb +52 -0
  65. data/spec/models/analytics_entity_data_dto_spec.rb +40 -0
  66. data/spec/models/api_key_res_dto_spec.rb +18 -0
  67. data/spec/models/app_name_count_dto_spec.rb +46 -0
  68. data/spec/models/client_unique_user_id_count_dto_spec.rb +34 -0
  69. data/spec/models/connected_account_response_dto_spec.rb +6 -0
  70. data/spec/models/connection_params_spec.rb +6 -0
  71. data/spec/models/connection_with_app_data_spec.rb +6 -0
  72. data/spec/models/connector_list_item_dto_spec.rb +6 -0
  73. data/spec/models/create_checkout_session_req_dto_spec.rb +28 -0
  74. data/spec/models/entity_query_req_dto_spec.rb +28 -0
  75. data/spec/models/fetch_query_dto_spec.rb +34 -0
  76. data/spec/models/get_logs_dto_spec.rb +1 -1
  77. data/spec/models/get_logs_dto_status_spec.rb +22 -0
  78. data/spec/models/ingest_data_dto_spec.rb +64 -0
  79. data/spec/models/ingest_data_response_dto_spec.rb +28 -0
  80. data/spec/models/integrations_with_counts_dto_spec.rb +58 -0
  81. data/spec/models/invite_member_req_dto_spec.rb +6 -0
  82. data/spec/models/last_time_period_spec.rb +22 -0
  83. data/spec/models/{connection_with_app_data_created_at_spec.rb → member_info_res_dto_created_at_spec.rb} +2 -2
  84. data/spec/models/member_info_res_dto_spec.rb +76 -0
  85. data/spec/models/member_res_dto_role_spec.rb +22 -0
  86. data/spec/models/member_res_dto_spec.rb +6 -0
  87. data/spec/models/open_api_spec_list_res_dto_spec.rb +5 -29
  88. data/spec/models/plan_spec.rb +22 -0
  89. data/spec/models/role_spec.rb +22 -0
  90. data/spec/models/state_spec.rb +22 -0
  91. data/spec/models/t_connection_count_dto_spec.rb +34 -0
  92. data/spec/models/time_period_req_dto_spec.rb +28 -0
  93. data/spec/models/top_entities_res_dto_spec.rb +28 -0
  94. data/spec/models/update_member_req_dto_role_spec.rb +22 -0
  95. data/spec/models/update_member_req_dto_spec.rb +34 -0
  96. data/spec/models/webhook_req_dto_spec.rb +28 -0
  97. data/spec/models/webhook_secret_res_dto_spec.rb +28 -0
  98. metadata +201 -108
  99. data/spec/models/job_status_spec.rb +0 -22
@@ -328,6 +328,113 @@ module Composio
328
328
  end
329
329
 
330
330
 
331
+ # Get action inputs
332
+ #
333
+ # Get the inputs for an action with NLA
334
+ #
335
+ # @param text [String]
336
+ # @param action_id [String]
337
+ # @param body [ActionGetNLAInputsReqDTO]
338
+ # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
339
+ def get_action_inputs(text:, action_id:, extra: {})
340
+ _body = {}
341
+ _body[:text] = text if text != SENTINEL
342
+ extra[:action_get_nla_inputs_req_dto] = _body if !_body.empty?
343
+ api_response = get_action_inputs_with_http_info_impl(action_id, extra)
344
+ api_response.data
345
+ end
346
+
347
+ # Get action inputs
348
+ #
349
+ # Get the inputs for an action with NLA
350
+ #
351
+ # @param text [String]
352
+ # @param action_id [String]
353
+ # @param body [ActionGetNLAInputsReqDTO]
354
+ # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
355
+ def get_action_inputs_with_http_info(text:, action_id:, extra: {})
356
+ _body = {}
357
+ _body[:text] = text if text != SENTINEL
358
+ extra[:action_get_nla_inputs_req_dto] = _body if !_body.empty?
359
+ get_action_inputs_with_http_info_impl(action_id, extra)
360
+ end
361
+
362
+ # Get action inputs
363
+ # Get the inputs for an action with NLA
364
+ # @param action_id [String]
365
+ # @param [Hash] opts the optional parameters
366
+ # @option opts [ActionGetNLAInputsReqDTO] :action_get_nla_inputs_req_dto ActionGetNLAInputsReqDTO
367
+ # @return [Object]
368
+ private def get_action_inputs_impl(action_id, opts = {})
369
+ data, _status_code, _headers = get_action_inputs_with_http_info(action_id, opts)
370
+ data
371
+ end
372
+
373
+ # Get action inputs
374
+ # Get the inputs for an action with NLA
375
+ # @param action_id [String]
376
+ # @param [Hash] opts the optional parameters
377
+ # @option opts [ActionGetNLAInputsReqDTO] :action_get_nla_inputs_req_dto ActionGetNLAInputsReqDTO
378
+ # @return [APIResponse] data is Object, status code, headers and response
379
+ private def get_action_inputs_with_http_info_impl(action_id, opts = {})
380
+ if @api_client.config.debugging
381
+ @api_client.config.logger.debug 'Calling API: ActionsApi.get_action_inputs ...'
382
+ end
383
+ # verify the required parameter 'action_id' is set
384
+ if @api_client.config.client_side_validation && action_id.nil?
385
+ fail ArgumentError, "Missing the required parameter 'action_id' when calling ActionsApi.get_action_inputs"
386
+ end
387
+ pattern = Regexp.new(/[^\/#\?]+?/)
388
+ if @api_client.config.client_side_validation && action_id !~ pattern
389
+ fail ArgumentError, "invalid value for 'action_id' when calling ActionsApi.get_action_inputs, must conform to the pattern #{pattern}."
390
+ end
391
+
392
+ # resource path
393
+ local_var_path = '/api/v2/actions/{actionId}/execute/get.inputs'.sub('{' + 'actionId' + '}', CGI.escape(action_id.to_s))
394
+
395
+ # query parameters
396
+ query_params = opts[:query_params] || {}
397
+
398
+ # header parameters
399
+ header_params = opts[:header_params] || {}
400
+ # HTTP header 'Accept' (if needed)
401
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
402
+ # HTTP header 'Content-Type'
403
+ content_type = @api_client.select_header_content_type(['application/json'])
404
+ if !content_type.nil?
405
+ header_params['Content-Type'] = content_type
406
+ end
407
+
408
+ # form parameters
409
+ form_params = opts[:form_params] || {}
410
+
411
+ # http body (model)
412
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'action_get_nla_inputs_req_dto'])
413
+
414
+ # return_type
415
+ return_type = opts[:debug_return_type] || 'Object'
416
+
417
+ # auth_names
418
+ auth_names = opts[:debug_auth_names] || ['api_key']
419
+
420
+ new_options = opts.merge(
421
+ :operation => :"ActionsApi.get_action_inputs",
422
+ :header_params => header_params,
423
+ :query_params => query_params,
424
+ :form_params => form_params,
425
+ :body => post_body,
426
+ :auth_names => auth_names,
427
+ :return_type => return_type
428
+ )
429
+
430
+ data, status_code, headers, response = @api_client.call_api(:POST, local_var_path, new_options)
431
+ if @api_client.config.debugging
432
+ @api_client.config.logger.debug "API called: ActionsApi#get_action_inputs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
433
+ end
434
+ APIResponse::new(data, status_code, headers, response)
435
+ end
436
+
437
+
331
438
  # List actions minimal
332
439
  #
333
440
  # Retrieve a list of all actions based on query parameters.
@@ -0,0 +1,181 @@
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 AnalyticsApi
13
+ attr_accessor :api_client
14
+
15
+ def initialize(api_client = ApiClient.default)
16
+ @api_client = api_client
17
+ end
18
+
19
+ # Get analytics
20
+ #
21
+ # @param last_time_period [String]
22
+ # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
23
+ def get(last_time_period: SENTINEL, extra: {})
24
+ extra[:last_time_period] = last_time_period if last_time_period != SENTINEL
25
+ api_response = get_with_http_info_impl(extra)
26
+ api_response.data
27
+ end
28
+
29
+ # Get analytics
30
+ #
31
+ # @param last_time_period [String]
32
+ # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
33
+ def get_with_http_info(last_time_period: SENTINEL, extra: {})
34
+ extra[:last_time_period] = last_time_period if last_time_period != SENTINEL
35
+ get_with_http_info_impl(extra)
36
+ end
37
+
38
+ # Get analytics
39
+ # @param [Hash] opts the optional parameters
40
+ # @option opts [String] :last_time_period
41
+ # @return [AnalyticsDataResDTO]
42
+ private def get_impl(opts = {})
43
+ data, _status_code, _headers = get_with_http_info(opts)
44
+ data
45
+ end
46
+
47
+ # Get analytics
48
+ # @param [Hash] opts the optional parameters
49
+ # @option opts [String] :last_time_period
50
+ # @return [APIResponse] data is AnalyticsDataResDTO, status code, headers and response
51
+ private def get_with_http_info_impl(opts = {})
52
+ if @api_client.config.debugging
53
+ @api_client.config.logger.debug 'Calling API: AnalyticsApi.get ...'
54
+ end
55
+ allowable_values = ["DAY", "WEEK", "MONTH", "SIX_MONTH", "YEAR", "FIVE_YEAR"]
56
+ if @api_client.config.client_side_validation && opts[:'last_time_period'] && !allowable_values.include?(opts[:'last_time_period'])
57
+ fail ArgumentError, "invalid value for \"last_time_period\", must be one of #{allowable_values}"
58
+ end
59
+ # resource path
60
+ local_var_path = '/api/v1/analytics'
61
+
62
+ # query parameters
63
+ query_params = opts[:query_params] || {}
64
+ query_params[:'lastTimePeriod'] = opts[:'last_time_period'] if !opts[:'last_time_period'].nil?
65
+
66
+ # header parameters
67
+ header_params = opts[:header_params] || {}
68
+ # HTTP header 'Accept' (if needed)
69
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
70
+
71
+ # form parameters
72
+ form_params = opts[:form_params] || {}
73
+
74
+ # http body (model)
75
+ post_body = opts[:debug_body]
76
+
77
+ # return_type
78
+ return_type = opts[:debug_return_type] || 'AnalyticsDataResDTO'
79
+
80
+ # auth_names
81
+ auth_names = opts[:debug_auth_names] || ['api_key']
82
+
83
+ new_options = opts.merge(
84
+ :operation => :"AnalyticsApi.get",
85
+ :header_params => header_params,
86
+ :query_params => query_params,
87
+ :form_params => form_params,
88
+ :body => post_body,
89
+ :auth_names => auth_names,
90
+ :return_type => return_type
91
+ )
92
+
93
+ data, status_code, headers, response = @api_client.call_api(:GET, local_var_path, new_options)
94
+ if @api_client.config.debugging
95
+ @api_client.config.logger.debug "API called: AnalyticsApi#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
96
+ end
97
+ APIResponse::new(data, status_code, headers, response)
98
+ end
99
+
100
+
101
+ # Get top entities
102
+ #
103
+ # @param query [String]
104
+ # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
105
+ def get_top_entities(query: SENTINEL, extra: {})
106
+ extra[:query] = query if query != SENTINEL
107
+ api_response = get_top_entities_with_http_info_impl(extra)
108
+ api_response.data
109
+ end
110
+
111
+ # Get top entities
112
+ #
113
+ # @param query [String]
114
+ # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
115
+ def get_top_entities_with_http_info(query: SENTINEL, extra: {})
116
+ extra[:query] = query if query != SENTINEL
117
+ get_top_entities_with_http_info_impl(extra)
118
+ end
119
+
120
+ # Get top entities
121
+ # @param [Hash] opts the optional parameters
122
+ # @option opts [String] :query
123
+ # @return [TopEntitiesResDTO]
124
+ private def get_top_entities_impl(opts = {})
125
+ data, _status_code, _headers = get_top_entities_with_http_info(opts)
126
+ data
127
+ end
128
+
129
+ # Get top entities
130
+ # @param [Hash] opts the optional parameters
131
+ # @option opts [String] :query
132
+ # @return [APIResponse] data is TopEntitiesResDTO, status code, headers and response
133
+ private def get_top_entities_with_http_info_impl(opts = {})
134
+ if @api_client.config.debugging
135
+ @api_client.config.logger.debug 'Calling API: AnalyticsApi.get_top_entities ...'
136
+ end
137
+ # resource path
138
+ local_var_path = '/api/v1/analytics/entities'
139
+
140
+ # query parameters
141
+ query_params = opts[:query_params] || {}
142
+ query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil?
143
+
144
+ # header parameters
145
+ header_params = opts[:header_params] || {}
146
+ # HTTP header 'Accept' (if needed)
147
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
148
+
149
+ # form parameters
150
+ form_params = opts[:form_params] || {}
151
+
152
+ # http body (model)
153
+ post_body = opts[:debug_body]
154
+
155
+ # return_type
156
+ return_type = opts[:debug_return_type] || 'TopEntitiesResDTO'
157
+
158
+ # auth_names
159
+ auth_names = opts[:debug_auth_names] || ['api_key']
160
+
161
+ new_options = opts.merge(
162
+ :operation => :"AnalyticsApi.get_top_entities",
163
+ :header_params => header_params,
164
+ :query_params => query_params,
165
+ :form_params => form_params,
166
+ :body => post_body,
167
+ :auth_names => auth_names,
168
+ :return_type => return_type
169
+ )
170
+
171
+ data, status_code, headers, response = @api_client.call_api(:GET, local_var_path, new_options)
172
+ if @api_client.config.debugging
173
+ @api_client.config.logger.debug "API called: AnalyticsApi#get_top_entities\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
174
+ end
175
+ APIResponse::new(data, status_code, headers, response)
176
+ end
177
+ end
178
+
179
+ # top-level client access to avoid having the user to insantiate their own API instances
180
+ Analytics = AnalyticsApi::new
181
+ end
@@ -16,6 +16,90 @@ module Composio
16
16
  @api_client = api_client
17
17
  end
18
18
 
19
+ # Delete open api spec tool
20
+ #
21
+ # @param id [String]
22
+ # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
23
+ def delete_open_api_spec_tool(id:, extra: {})
24
+ api_response = delete_open_api_spec_tool_with_http_info_impl(id, extra)
25
+ api_response.data
26
+ end
27
+
28
+ # Delete open api spec tool
29
+ #
30
+ # @param id [String]
31
+ # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
32
+ def delete_open_api_spec_tool_with_http_info(id:, extra: {})
33
+ delete_open_api_spec_tool_with_http_info_impl(id, extra)
34
+ end
35
+
36
+ # Delete open api spec tool
37
+ # @param id [String]
38
+ # @param [Hash] opts the optional parameters
39
+ # @return [Object]
40
+ private def delete_open_api_spec_tool_impl(id, opts = {})
41
+ data, _status_code, _headers = delete_open_api_spec_tool_with_http_info(id, opts)
42
+ data
43
+ end
44
+
45
+ # Delete open api spec tool
46
+ # @param id [String]
47
+ # @param [Hash] opts the optional parameters
48
+ # @return [APIResponse] data is Object, status code, headers and response
49
+ private def delete_open_api_spec_tool_with_http_info_impl(id, opts = {})
50
+ if @api_client.config.debugging
51
+ @api_client.config.logger.debug 'Calling API: AppsApi.delete_open_api_spec_tool ...'
52
+ end
53
+ # verify the required parameter 'id' is set
54
+ if @api_client.config.client_side_validation && id.nil?
55
+ fail ArgumentError, "Missing the required parameter 'id' when calling AppsApi.delete_open_api_spec_tool"
56
+ end
57
+ pattern = Regexp.new(/[^\/#\?]+?/)
58
+ if @api_client.config.client_side_validation && id !~ pattern
59
+ fail ArgumentError, "invalid value for 'id' when calling AppsApi.delete_open_api_spec_tool, must conform to the pattern #{pattern}."
60
+ end
61
+
62
+ # resource path
63
+ local_var_path = '/api/v1/apps/openapi/spec/delete/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
64
+
65
+ # query parameters
66
+ query_params = opts[:query_params] || {}
67
+
68
+ # header parameters
69
+ header_params = opts[:header_params] || {}
70
+ # HTTP header 'Accept' (if needed)
71
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
72
+
73
+ # form parameters
74
+ form_params = opts[:form_params] || {}
75
+
76
+ # http body (model)
77
+ post_body = opts[:debug_body]
78
+
79
+ # return_type
80
+ return_type = opts[:debug_return_type] || 'Object'
81
+
82
+ # auth_names
83
+ auth_names = opts[:debug_auth_names] || ['api_key']
84
+
85
+ new_options = opts.merge(
86
+ :operation => :"AppsApi.delete_open_api_spec_tool",
87
+ :header_params => header_params,
88
+ :query_params => query_params,
89
+ :form_params => form_params,
90
+ :body => post_body,
91
+ :auth_names => auth_names,
92
+ :return_type => return_type
93
+ )
94
+
95
+ data, status_code, headers, response = @api_client.call_api(:DELETE, local_var_path, new_options)
96
+ if @api_client.config.debugging
97
+ @api_client.config.logger.debug "API called: AppsApi#delete_open_api_spec_tool\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
98
+ end
99
+ APIResponse::new(data, status_code, headers, response)
100
+ end
101
+
102
+
19
103
  # Get app
20
104
  #
21
105
  # Get app details
@@ -106,6 +190,90 @@ module Composio
106
190
  end
107
191
 
108
192
 
193
+ # Get open api spec status
194
+ #
195
+ # @param id [String]
196
+ # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
197
+ def get_open_api_spec_status(id:, extra: {})
198
+ api_response = get_open_api_spec_status_with_http_info_impl(id, extra)
199
+ api_response.data
200
+ end
201
+
202
+ # Get open api spec status
203
+ #
204
+ # @param id [String]
205
+ # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
206
+ def get_open_api_spec_status_with_http_info(id:, extra: {})
207
+ get_open_api_spec_status_with_http_info_impl(id, extra)
208
+ end
209
+
210
+ # Get open api spec status
211
+ # @param id [String]
212
+ # @param [Hash] opts the optional parameters
213
+ # @return [Object]
214
+ private def get_open_api_spec_status_impl(id, opts = {})
215
+ data, _status_code, _headers = get_open_api_spec_status_with_http_info(id, opts)
216
+ data
217
+ end
218
+
219
+ # Get open api spec status
220
+ # @param id [String]
221
+ # @param [Hash] opts the optional parameters
222
+ # @return [APIResponse] data is Object, status code, headers and response
223
+ private def get_open_api_spec_status_with_http_info_impl(id, opts = {})
224
+ if @api_client.config.debugging
225
+ @api_client.config.logger.debug 'Calling API: AppsApi.get_open_api_spec_status ...'
226
+ end
227
+ # verify the required parameter 'id' is set
228
+ if @api_client.config.client_side_validation && id.nil?
229
+ fail ArgumentError, "Missing the required parameter 'id' when calling AppsApi.get_open_api_spec_status"
230
+ end
231
+ pattern = Regexp.new(/[^\/#\?]+?/)
232
+ if @api_client.config.client_side_validation && id !~ pattern
233
+ fail ArgumentError, "invalid value for 'id' when calling AppsApi.get_open_api_spec_status, must conform to the pattern #{pattern}."
234
+ end
235
+
236
+ # resource path
237
+ local_var_path = '/api/v1/apps/openapi/spec/status/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
238
+
239
+ # query parameters
240
+ query_params = opts[:query_params] || {}
241
+
242
+ # header parameters
243
+ header_params = opts[:header_params] || {}
244
+ # HTTP header 'Accept' (if needed)
245
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
246
+
247
+ # form parameters
248
+ form_params = opts[:form_params] || {}
249
+
250
+ # http body (model)
251
+ post_body = opts[:debug_body]
252
+
253
+ # return_type
254
+ return_type = opts[:debug_return_type] || 'Object'
255
+
256
+ # auth_names
257
+ auth_names = opts[:debug_auth_names] || ['api_key']
258
+
259
+ new_options = opts.merge(
260
+ :operation => :"AppsApi.get_open_api_spec_status",
261
+ :header_params => header_params,
262
+ :query_params => query_params,
263
+ :form_params => form_params,
264
+ :body => post_body,
265
+ :auth_names => auth_names,
266
+ :return_type => return_type
267
+ )
268
+
269
+ data, status_code, headers, response = @api_client.call_api(:GET, local_var_path, new_options)
270
+ if @api_client.config.debugging
271
+ @api_client.config.logger.debug "API called: AppsApi#get_open_api_spec_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
272
+ end
273
+ APIResponse::new(data, status_code, headers, response)
274
+ end
275
+
276
+
109
277
  # Get apps
110
278
  #
111
279
  # Retrieve a list of all applications based on query parameters.
@@ -266,6 +434,95 @@ module Composio
266
434
  end
267
435
  APIResponse::new(data, status_code, headers, response)
268
436
  end
437
+
438
+
439
+ # Send email to client
440
+ #
441
+ # @param admin_token [String]
442
+ # @param body [Object]
443
+ # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
444
+ def send_email_to_client(admin_token: SENTINEL, body: SENTINEL, extra: {})
445
+ extra[:body] = body if body != SENTINEL
446
+ extra[:admin_token] = admin_token if admin_token != SENTINEL
447
+ api_response = send_email_to_client_with_http_info_impl(extra)
448
+ api_response.data
449
+ end
450
+
451
+ # Send email to client
452
+ #
453
+ # @param admin_token [String]
454
+ # @param body [Object]
455
+ # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
456
+ def send_email_to_client_with_http_info(admin_token: SENTINEL, body: SENTINEL, extra: {})
457
+ extra[:body] = body if body != SENTINEL
458
+ extra[:admin_token] = admin_token if admin_token != SENTINEL
459
+ send_email_to_client_with_http_info_impl(extra)
460
+ end
461
+
462
+ # Send email to client
463
+ # @param [Hash] opts the optional parameters
464
+ # @option opts [String] :admin_token
465
+ # @option opts [Object] :body
466
+ # @return [Object]
467
+ private def send_email_to_client_impl(opts = {})
468
+ data, _status_code, _headers = send_email_to_client_with_http_info(opts)
469
+ data
470
+ end
471
+
472
+ # Send email to client
473
+ # @param [Hash] opts the optional parameters
474
+ # @option opts [String] :admin_token
475
+ # @option opts [Object] :body
476
+ # @return [APIResponse] data is Object, status code, headers and response
477
+ private def send_email_to_client_with_http_info_impl(opts = {})
478
+ if @api_client.config.debugging
479
+ @api_client.config.logger.debug 'Calling API: AppsApi.send_email_to_client ...'
480
+ end
481
+ # resource path
482
+ local_var_path = '/api/v1/apps/openapi/send_email_to_client'
483
+
484
+ # query parameters
485
+ query_params = opts[:query_params] || {}
486
+ query_params[:'adminToken'] = opts[:'admin_token'] if !opts[:'admin_token'].nil?
487
+
488
+ # header parameters
489
+ header_params = opts[:header_params] || {}
490
+ # HTTP header 'Accept' (if needed)
491
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
492
+ # HTTP header 'Content-Type'
493
+ content_type = @api_client.select_header_content_type(['application/json'])
494
+ if !content_type.nil?
495
+ header_params['Content-Type'] = content_type
496
+ end
497
+
498
+ # form parameters
499
+ form_params = opts[:form_params] || {}
500
+
501
+ # http body (model)
502
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
503
+
504
+ # return_type
505
+ return_type = opts[:debug_return_type] || 'Object'
506
+
507
+ # auth_names
508
+ auth_names = opts[:debug_auth_names] || ['api_key']
509
+
510
+ new_options = opts.merge(
511
+ :operation => :"AppsApi.send_email_to_client",
512
+ :header_params => header_params,
513
+ :query_params => query_params,
514
+ :form_params => form_params,
515
+ :body => post_body,
516
+ :auth_names => auth_names,
517
+ :return_type => return_type
518
+ )
519
+
520
+ data, status_code, headers, response = @api_client.call_api(:POST, local_var_path, new_options)
521
+ if @api_client.config.debugging
522
+ @api_client.config.logger.debug "API called: AppsApi#send_email_to_client\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
523
+ end
524
+ APIResponse::new(data, status_code, headers, response)
525
+ end
269
526
  end
270
527
 
271
528
  # top-level client access to avoid having the user to insantiate their own API instances