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
@@ -16,324 +16,6 @@ module Composio
|
|
16
16
|
@api_client = api_client
|
17
17
|
end
|
18
18
|
|
19
|
-
# Get events
|
20
|
-
#
|
21
|
-
# Fetch events from database
|
22
|
-
#
|
23
|
-
# @param start_time [String]
|
24
|
-
# @param end_time [String]
|
25
|
-
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
26
|
-
def get_events(start_time:, end_time:, extra: {})
|
27
|
-
api_response = get_events_with_http_info_impl(start_time, end_time, extra)
|
28
|
-
api_response.data
|
29
|
-
end
|
30
|
-
|
31
|
-
# Get events
|
32
|
-
#
|
33
|
-
# Fetch events from database
|
34
|
-
#
|
35
|
-
# @param start_time [String]
|
36
|
-
# @param end_time [String]
|
37
|
-
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
38
|
-
def get_events_with_http_info(start_time:, end_time:, extra: {})
|
39
|
-
get_events_with_http_info_impl(start_time, end_time, extra)
|
40
|
-
end
|
41
|
-
|
42
|
-
# Get events
|
43
|
-
# Fetch events from database
|
44
|
-
# @param start_time [String]
|
45
|
-
# @param end_time [String]
|
46
|
-
# @param [Hash] opts the optional parameters
|
47
|
-
# @return [Object]
|
48
|
-
private def get_events_impl(start_time, end_time, opts = {})
|
49
|
-
data, _status_code, _headers = get_events_with_http_info(start_time, end_time, opts)
|
50
|
-
data
|
51
|
-
end
|
52
|
-
|
53
|
-
# Get events
|
54
|
-
# Fetch events from database
|
55
|
-
# @param start_time [String]
|
56
|
-
# @param end_time [String]
|
57
|
-
# @param [Hash] opts the optional parameters
|
58
|
-
# @return [APIResponse] data is Object, status code, headers and response
|
59
|
-
private def get_events_with_http_info_impl(start_time, end_time, opts = {})
|
60
|
-
if @api_client.config.debugging
|
61
|
-
@api_client.config.logger.debug 'Calling API: EventLogsApi.get_events ...'
|
62
|
-
end
|
63
|
-
# verify the required parameter 'start_time' is set
|
64
|
-
if @api_client.config.client_side_validation && start_time.nil?
|
65
|
-
fail ArgumentError, "Missing the required parameter 'start_time' when calling EventLogsApi.get_events"
|
66
|
-
end
|
67
|
-
pattern = Regexp.new(/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d.\d+Z?/)
|
68
|
-
if @api_client.config.client_side_validation && start_time !~ pattern
|
69
|
-
fail ArgumentError, "invalid value for 'start_time' when calling EventLogsApi.get_events, must conform to the pattern #{pattern}."
|
70
|
-
end
|
71
|
-
|
72
|
-
# verify the required parameter 'end_time' is set
|
73
|
-
if @api_client.config.client_side_validation && end_time.nil?
|
74
|
-
fail ArgumentError, "Missing the required parameter 'end_time' when calling EventLogsApi.get_events"
|
75
|
-
end
|
76
|
-
pattern = Regexp.new(/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d.\d+Z?/)
|
77
|
-
if @api_client.config.client_side_validation && end_time !~ pattern
|
78
|
-
fail ArgumentError, "invalid value for 'end_time' when calling EventLogsApi.get_events, must conform to the pattern #{pattern}."
|
79
|
-
end
|
80
|
-
|
81
|
-
# resource path
|
82
|
-
local_var_path = '/api/v1/event_logs/get/events'
|
83
|
-
|
84
|
-
# query parameters
|
85
|
-
query_params = opts[:query_params] || {}
|
86
|
-
query_params[:'startTime'] = start_time
|
87
|
-
query_params[:'endTime'] = end_time
|
88
|
-
|
89
|
-
# header parameters
|
90
|
-
header_params = opts[:header_params] || {}
|
91
|
-
# HTTP header 'Accept' (if needed)
|
92
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
93
|
-
|
94
|
-
# form parameters
|
95
|
-
form_params = opts[:form_params] || {}
|
96
|
-
|
97
|
-
# http body (model)
|
98
|
-
post_body = opts[:debug_body]
|
99
|
-
|
100
|
-
# return_type
|
101
|
-
return_type = opts[:debug_return_type] || 'Object'
|
102
|
-
|
103
|
-
# auth_names
|
104
|
-
auth_names = opts[:debug_auth_names] || ['api_key']
|
105
|
-
|
106
|
-
new_options = opts.merge(
|
107
|
-
:operation => :"EventLogsApi.get_events",
|
108
|
-
:header_params => header_params,
|
109
|
-
:query_params => query_params,
|
110
|
-
:form_params => form_params,
|
111
|
-
:body => post_body,
|
112
|
-
:auth_names => auth_names,
|
113
|
-
:return_type => return_type
|
114
|
-
)
|
115
|
-
|
116
|
-
data, status_code, headers, response = @api_client.call_api(:GET, local_var_path, new_options)
|
117
|
-
if @api_client.config.debugging
|
118
|
-
@api_client.config.logger.debug "API called: EventLogsApi#get_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
119
|
-
end
|
120
|
-
APIResponse::new(data, status_code, headers, response)
|
121
|
-
end
|
122
|
-
|
123
|
-
|
124
|
-
# Get webhook
|
125
|
-
#
|
126
|
-
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
127
|
-
def get_webhook(extra: {})
|
128
|
-
api_response = get_webhook_with_http_info_impl(extra)
|
129
|
-
api_response.data
|
130
|
-
end
|
131
|
-
|
132
|
-
# Get webhook
|
133
|
-
#
|
134
|
-
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
135
|
-
def get_webhook_with_http_info(extra: {})
|
136
|
-
get_webhook_with_http_info_impl(extra)
|
137
|
-
end
|
138
|
-
|
139
|
-
# Get webhook
|
140
|
-
# @param [Hash] opts the optional parameters
|
141
|
-
# @return [Object]
|
142
|
-
private def get_webhook_impl(opts = {})
|
143
|
-
data, _status_code, _headers = get_webhook_with_http_info(opts)
|
144
|
-
data
|
145
|
-
end
|
146
|
-
|
147
|
-
# Get webhook
|
148
|
-
# @param [Hash] opts the optional parameters
|
149
|
-
# @return [APIResponse] data is Object, status code, headers and response
|
150
|
-
private def get_webhook_with_http_info_impl(opts = {})
|
151
|
-
if @api_client.config.debugging
|
152
|
-
@api_client.config.logger.debug 'Calling API: EventLogsApi.get_webhook ...'
|
153
|
-
end
|
154
|
-
# resource path
|
155
|
-
local_var_path = '/api/v1/event_logs/get/webhook'
|
156
|
-
|
157
|
-
# query parameters
|
158
|
-
query_params = opts[:query_params] || {}
|
159
|
-
|
160
|
-
# header parameters
|
161
|
-
header_params = opts[:header_params] || {}
|
162
|
-
# HTTP header 'Accept' (if needed)
|
163
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
164
|
-
|
165
|
-
# form parameters
|
166
|
-
form_params = opts[:form_params] || {}
|
167
|
-
|
168
|
-
# http body (model)
|
169
|
-
post_body = opts[:debug_body]
|
170
|
-
|
171
|
-
# return_type
|
172
|
-
return_type = opts[:debug_return_type] || 'Object'
|
173
|
-
|
174
|
-
# auth_names
|
175
|
-
auth_names = opts[:debug_auth_names] || ['api_key']
|
176
|
-
|
177
|
-
new_options = opts.merge(
|
178
|
-
:operation => :"EventLogsApi.get_webhook",
|
179
|
-
:header_params => header_params,
|
180
|
-
:query_params => query_params,
|
181
|
-
:form_params => form_params,
|
182
|
-
:body => post_body,
|
183
|
-
:auth_names => auth_names,
|
184
|
-
:return_type => return_type
|
185
|
-
)
|
186
|
-
|
187
|
-
data, status_code, headers, response = @api_client.call_api(:GET, local_var_path, new_options)
|
188
|
-
if @api_client.config.debugging
|
189
|
-
@api_client.config.logger.debug "API called: EventLogsApi#get_webhook\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
190
|
-
end
|
191
|
-
APIResponse::new(data, status_code, headers, response)
|
192
|
-
end
|
193
|
-
|
194
|
-
|
195
|
-
# Get webhook secret
|
196
|
-
#
|
197
|
-
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
198
|
-
def get_webhook_secret(extra: {})
|
199
|
-
api_response = get_webhook_secret_with_http_info_impl(extra)
|
200
|
-
api_response.data
|
201
|
-
end
|
202
|
-
|
203
|
-
# Get webhook secret
|
204
|
-
#
|
205
|
-
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
206
|
-
def get_webhook_secret_with_http_info(extra: {})
|
207
|
-
get_webhook_secret_with_http_info_impl(extra)
|
208
|
-
end
|
209
|
-
|
210
|
-
# Get webhook secret
|
211
|
-
# @param [Hash] opts the optional parameters
|
212
|
-
# @return [Object]
|
213
|
-
private def get_webhook_secret_impl(opts = {})
|
214
|
-
data, _status_code, _headers = get_webhook_secret_with_http_info(opts)
|
215
|
-
data
|
216
|
-
end
|
217
|
-
|
218
|
-
# Get webhook secret
|
219
|
-
# @param [Hash] opts the optional parameters
|
220
|
-
# @return [APIResponse] data is Object, status code, headers and response
|
221
|
-
private def get_webhook_secret_with_http_info_impl(opts = {})
|
222
|
-
if @api_client.config.debugging
|
223
|
-
@api_client.config.logger.debug 'Calling API: EventLogsApi.get_webhook_secret ...'
|
224
|
-
end
|
225
|
-
# resource path
|
226
|
-
local_var_path = '/api/v1/event_logs/webhook/secret/get'
|
227
|
-
|
228
|
-
# query parameters
|
229
|
-
query_params = opts[:query_params] || {}
|
230
|
-
|
231
|
-
# header parameters
|
232
|
-
header_params = opts[:header_params] || {}
|
233
|
-
# HTTP header 'Accept' (if needed)
|
234
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
235
|
-
|
236
|
-
# form parameters
|
237
|
-
form_params = opts[:form_params] || {}
|
238
|
-
|
239
|
-
# http body (model)
|
240
|
-
post_body = opts[:debug_body]
|
241
|
-
|
242
|
-
# return_type
|
243
|
-
return_type = opts[:debug_return_type] || 'Object'
|
244
|
-
|
245
|
-
# auth_names
|
246
|
-
auth_names = opts[:debug_auth_names] || ['api_key']
|
247
|
-
|
248
|
-
new_options = opts.merge(
|
249
|
-
:operation => :"EventLogsApi.get_webhook_secret",
|
250
|
-
:header_params => header_params,
|
251
|
-
:query_params => query_params,
|
252
|
-
:form_params => form_params,
|
253
|
-
:body => post_body,
|
254
|
-
:auth_names => auth_names,
|
255
|
-
:return_type => return_type
|
256
|
-
)
|
257
|
-
|
258
|
-
data, status_code, headers, response = @api_client.call_api(:GET, local_var_path, new_options)
|
259
|
-
if @api_client.config.debugging
|
260
|
-
@api_client.config.logger.debug "API called: EventLogsApi#get_webhook_secret\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
261
|
-
end
|
262
|
-
APIResponse::new(data, status_code, headers, response)
|
263
|
-
end
|
264
|
-
|
265
|
-
|
266
|
-
# Refresh webhook
|
267
|
-
#
|
268
|
-
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
269
|
-
def refresh_webhook_secret(extra: {})
|
270
|
-
api_response = refresh_webhook_secret_with_http_info_impl(extra)
|
271
|
-
api_response.data
|
272
|
-
end
|
273
|
-
|
274
|
-
# Refresh webhook
|
275
|
-
#
|
276
|
-
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
277
|
-
def refresh_webhook_secret_with_http_info(extra: {})
|
278
|
-
refresh_webhook_secret_with_http_info_impl(extra)
|
279
|
-
end
|
280
|
-
|
281
|
-
# Refresh webhook
|
282
|
-
# @param [Hash] opts the optional parameters
|
283
|
-
# @return [Object]
|
284
|
-
private def refresh_webhook_secret_impl(opts = {})
|
285
|
-
data, _status_code, _headers = refresh_webhook_secret_with_http_info(opts)
|
286
|
-
data
|
287
|
-
end
|
288
|
-
|
289
|
-
# Refresh webhook
|
290
|
-
# @param [Hash] opts the optional parameters
|
291
|
-
# @return [APIResponse] data is Object, status code, headers and response
|
292
|
-
private def refresh_webhook_secret_with_http_info_impl(opts = {})
|
293
|
-
if @api_client.config.debugging
|
294
|
-
@api_client.config.logger.debug 'Calling API: EventLogsApi.refresh_webhook_secret ...'
|
295
|
-
end
|
296
|
-
# resource path
|
297
|
-
local_var_path = '/api/v1/event_logs/webhook/secret/refresh'
|
298
|
-
|
299
|
-
# query parameters
|
300
|
-
query_params = opts[:query_params] || {}
|
301
|
-
|
302
|
-
# header parameters
|
303
|
-
header_params = opts[:header_params] || {}
|
304
|
-
# HTTP header 'Accept' (if needed)
|
305
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
306
|
-
|
307
|
-
# form parameters
|
308
|
-
form_params = opts[:form_params] || {}
|
309
|
-
|
310
|
-
# http body (model)
|
311
|
-
post_body = opts[:debug_body]
|
312
|
-
|
313
|
-
# return_type
|
314
|
-
return_type = opts[:debug_return_type] || 'Object'
|
315
|
-
|
316
|
-
# auth_names
|
317
|
-
auth_names = opts[:debug_auth_names] || ['api_key']
|
318
|
-
|
319
|
-
new_options = opts.merge(
|
320
|
-
:operation => :"EventLogsApi.refresh_webhook_secret",
|
321
|
-
:header_params => header_params,
|
322
|
-
:query_params => query_params,
|
323
|
-
:form_params => form_params,
|
324
|
-
:body => post_body,
|
325
|
-
:auth_names => auth_names,
|
326
|
-
:return_type => return_type
|
327
|
-
)
|
328
|
-
|
329
|
-
data, status_code, headers, response = @api_client.call_api(:POST, local_var_path, new_options)
|
330
|
-
if @api_client.config.debugging
|
331
|
-
@api_client.config.logger.debug "API called: EventLogsApi#refresh_webhook_secret\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
332
|
-
end
|
333
|
-
APIResponse::new(data, status_code, headers, response)
|
334
|
-
end
|
335
|
-
|
336
|
-
|
337
19
|
# Update webhook
|
338
20
|
#
|
339
21
|
# @param event_webhook_url [String] Event Webhook URL
|
@@ -21,20 +21,22 @@ module Composio
|
|
21
21
|
# Create a new connector
|
22
22
|
#
|
23
23
|
# @param name [String] Name of the connector
|
24
|
-
# @param app_id [String] Application ID
|
25
24
|
# @param auth_scheme [String] Authentication scheme
|
26
25
|
# @param auth_config [AuthConfigDTO]
|
27
26
|
# @param use_composio_auth [CreateConnectorPayloadDTOUseComposioAuth]
|
27
|
+
# @param app_id [String] Composio App UUID to be used for authentication. Either specify this or appName
|
28
|
+
# @param app_name [String] Name of the app to be used for authentication. Either specify this or appId
|
28
29
|
# @param force_new_integration [Boolean] Flag to force new integration
|
29
30
|
# @param body [CreateConnectorPayloadDTO]
|
30
31
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
31
|
-
def create_integration(name:,
|
32
|
+
def create_integration(name:, auth_scheme: SENTINEL, auth_config: SENTINEL, use_composio_auth: SENTINEL, app_id: SENTINEL, app_name: SENTINEL, force_new_integration: SENTINEL, extra: {})
|
32
33
|
_body = {}
|
33
34
|
_body[:name] = name if name != SENTINEL
|
34
35
|
_body[:authScheme] = auth_scheme if auth_scheme != SENTINEL
|
35
36
|
_body[:authConfig] = auth_config if auth_config != SENTINEL
|
36
37
|
_body[:useComposioAuth] = use_composio_auth if use_composio_auth != SENTINEL
|
37
38
|
_body[:appId] = app_id if app_id != SENTINEL
|
39
|
+
_body[:appName] = app_name if app_name != SENTINEL
|
38
40
|
_body[:forceNewIntegration] = force_new_integration if force_new_integration != SENTINEL
|
39
41
|
extra[:create_connector_payload_dto] = _body if !_body.empty?
|
40
42
|
api_response = create_integration_with_http_info_impl(extra)
|
@@ -46,20 +48,22 @@ module Composio
|
|
46
48
|
# Create a new connector
|
47
49
|
#
|
48
50
|
# @param name [String] Name of the connector
|
49
|
-
# @param app_id [String] Application ID
|
50
51
|
# @param auth_scheme [String] Authentication scheme
|
51
52
|
# @param auth_config [AuthConfigDTO]
|
52
53
|
# @param use_composio_auth [CreateConnectorPayloadDTOUseComposioAuth]
|
54
|
+
# @param app_id [String] Composio App UUID to be used for authentication. Either specify this or appName
|
55
|
+
# @param app_name [String] Name of the app to be used for authentication. Either specify this or appId
|
53
56
|
# @param force_new_integration [Boolean] Flag to force new integration
|
54
57
|
# @param body [CreateConnectorPayloadDTO]
|
55
58
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
56
|
-
def create_integration_with_http_info(name:,
|
59
|
+
def create_integration_with_http_info(name:, auth_scheme: SENTINEL, auth_config: SENTINEL, use_composio_auth: SENTINEL, app_id: SENTINEL, app_name: SENTINEL, force_new_integration: SENTINEL, extra: {})
|
57
60
|
_body = {}
|
58
61
|
_body[:name] = name if name != SENTINEL
|
59
62
|
_body[:authScheme] = auth_scheme if auth_scheme != SENTINEL
|
60
63
|
_body[:authConfig] = auth_config if auth_config != SENTINEL
|
61
64
|
_body[:useComposioAuth] = use_composio_auth if use_composio_auth != SENTINEL
|
62
65
|
_body[:appId] = app_id if app_id != SENTINEL
|
66
|
+
_body[:appName] = app_name if app_name != SENTINEL
|
63
67
|
_body[:forceNewIntegration] = force_new_integration if force_new_integration != SENTINEL
|
64
68
|
extra[:create_connector_payload_dto] = _body if !_body.empty?
|
65
69
|
create_integration_with_http_info_impl(extra)
|
@@ -26,12 +26,16 @@ module Composio
|
|
26
26
|
# @param response [Object]
|
27
27
|
# @param is_error [Boolean]
|
28
28
|
# @param connection_id [String] Connection ID of the log
|
29
|
+
# @param session_id [String] Session ID of the log
|
30
|
+
# @param logs_type [String] Type of the log
|
29
31
|
# @param entity_id [String] Entity ID of the log
|
30
32
|
# @param body [IngestDataDTO]
|
31
33
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
32
|
-
def add_new_logs(provider_name:, action_name:, request:, response:, is_error:, connection_id: SENTINEL, entity_id: SENTINEL, extra: {})
|
34
|
+
def add_new_logs(provider_name:, action_name:, request:, response:, is_error:, connection_id: SENTINEL, session_id: SENTINEL, logs_type: SENTINEL, entity_id: SENTINEL, extra: {})
|
33
35
|
_body = {}
|
34
36
|
_body[:connectionId] = connection_id if connection_id != SENTINEL
|
37
|
+
_body[:sessionId] = session_id if session_id != SENTINEL
|
38
|
+
_body[:logsType] = logs_type if logs_type != SENTINEL
|
35
39
|
_body[:entityId] = entity_id if entity_id != SENTINEL
|
36
40
|
_body[:providerName] = provider_name if provider_name != SENTINEL
|
37
41
|
_body[:actionName] = action_name if action_name != SENTINEL
|
@@ -53,12 +57,16 @@ module Composio
|
|
53
57
|
# @param response [Object]
|
54
58
|
# @param is_error [Boolean]
|
55
59
|
# @param connection_id [String] Connection ID of the log
|
60
|
+
# @param session_id [String] Session ID of the log
|
61
|
+
# @param logs_type [String] Type of the log
|
56
62
|
# @param entity_id [String] Entity ID of the log
|
57
63
|
# @param body [IngestDataDTO]
|
58
64
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
59
|
-
def add_new_logs_with_http_info(provider_name:, action_name:, request:, response:, is_error:, connection_id: SENTINEL, entity_id: SENTINEL, extra: {})
|
65
|
+
def add_new_logs_with_http_info(provider_name:, action_name:, request:, response:, is_error:, connection_id: SENTINEL, session_id: SENTINEL, logs_type: SENTINEL, entity_id: SENTINEL, extra: {})
|
60
66
|
_body = {}
|
61
67
|
_body[:connectionId] = connection_id if connection_id != SENTINEL
|
68
|
+
_body[:sessionId] = session_id if session_id != SENTINEL
|
69
|
+
_body[:logsType] = logs_type if logs_type != SENTINEL
|
62
70
|
_body[:entityId] = entity_id if entity_id != SENTINEL
|
63
71
|
_body[:providerName] = provider_name if provider_name != SENTINEL
|
64
72
|
_body[:actionName] = action_name if action_name != SENTINEL
|
@@ -147,8 +155,9 @@ module Composio
|
|
147
155
|
# @param limit [Float]
|
148
156
|
# @param cursor [String]
|
149
157
|
# @param logs_type [String]
|
158
|
+
# @param session_id [String]
|
150
159
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
151
|
-
def list(type: SENTINEL, time: SENTINEL, status: SENTINEL, search: SENTINEL, integration_id: SENTINEL, entity_id: SENTINEL, limit: 10, cursor: SENTINEL, logs_type: SENTINEL, extra: {})
|
160
|
+
def list(type: SENTINEL, time: SENTINEL, status: SENTINEL, search: SENTINEL, integration_id: SENTINEL, entity_id: SENTINEL, limit: 10, cursor: SENTINEL, logs_type: SENTINEL, session_id: SENTINEL, extra: {})
|
152
161
|
extra[:type] = type if type != SENTINEL
|
153
162
|
extra[:time] = time if time != SENTINEL
|
154
163
|
extra[:status] = status if status != SENTINEL
|
@@ -158,6 +167,7 @@ module Composio
|
|
158
167
|
extra[:limit] = limit if limit != SENTINEL
|
159
168
|
extra[:cursor] = cursor if cursor != SENTINEL
|
160
169
|
extra[:logs_type] = logs_type if logs_type != SENTINEL
|
170
|
+
extra[:session_id] = session_id if session_id != SENTINEL
|
161
171
|
api_response = list_with_http_info_impl(extra)
|
162
172
|
api_response.data
|
163
173
|
end
|
@@ -175,8 +185,9 @@ module Composio
|
|
175
185
|
# @param limit [Float]
|
176
186
|
# @param cursor [String]
|
177
187
|
# @param logs_type [String]
|
188
|
+
# @param session_id [String]
|
178
189
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
179
|
-
def list_with_http_info(type: SENTINEL, time: SENTINEL, status: SENTINEL, search: SENTINEL, integration_id: SENTINEL, entity_id: SENTINEL, limit: 10, cursor: SENTINEL, logs_type: SENTINEL, extra: {})
|
190
|
+
def list_with_http_info(type: SENTINEL, time: SENTINEL, status: SENTINEL, search: SENTINEL, integration_id: SENTINEL, entity_id: SENTINEL, limit: 10, cursor: SENTINEL, logs_type: SENTINEL, session_id: SENTINEL, extra: {})
|
180
191
|
extra[:type] = type if type != SENTINEL
|
181
192
|
extra[:time] = time if time != SENTINEL
|
182
193
|
extra[:status] = status if status != SENTINEL
|
@@ -186,6 +197,7 @@ module Composio
|
|
186
197
|
extra[:limit] = limit if limit != SENTINEL
|
187
198
|
extra[:cursor] = cursor if cursor != SENTINEL
|
188
199
|
extra[:logs_type] = logs_type if logs_type != SENTINEL
|
200
|
+
extra[:session_id] = session_id if session_id != SENTINEL
|
189
201
|
list_with_http_info_impl(extra)
|
190
202
|
end
|
191
203
|
|
@@ -201,6 +213,7 @@ module Composio
|
|
201
213
|
# @option opts [Float] :limit (default to 10)
|
202
214
|
# @option opts [String] :cursor
|
203
215
|
# @option opts [String] :logs_type
|
216
|
+
# @option opts [String] :session_id
|
204
217
|
# @return [LogsResDTO]
|
205
218
|
private def list_impl(opts = {})
|
206
219
|
data, _status_code, _headers = list_with_http_info(opts)
|
@@ -219,6 +232,7 @@ module Composio
|
|
219
232
|
# @option opts [Float] :limit (default to 10)
|
220
233
|
# @option opts [String] :cursor
|
221
234
|
# @option opts [String] :logs_type
|
235
|
+
# @option opts [String] :session_id
|
222
236
|
# @return [APIResponse] data is LogsResDTO, status code, headers and response
|
223
237
|
private def list_with_http_info_impl(opts = {})
|
224
238
|
if @api_client.config.debugging
|
@@ -250,6 +264,7 @@ module Composio
|
|
250
264
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
251
265
|
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
252
266
|
query_params[:'logsType'] = opts[:'logs_type'] if !opts[:'logs_type'].nil?
|
267
|
+
query_params[:'sessionId'] = opts[:'session_id'] if !opts[:'session_id'].nil?
|
253
268
|
|
254
269
|
# header parameters
|
255
270
|
header_params = opts[:header_params] || {}
|
@@ -725,12 +725,14 @@ module Composio
|
|
725
725
|
# @param app_names [String]
|
726
726
|
# @param connected_account_ids [String]
|
727
727
|
# @param trigger_ids [String]
|
728
|
+
# @param integration_ids [String]
|
728
729
|
# @param show_enabled_only [Boolean]
|
729
730
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
730
|
-
def list(app_names: SENTINEL, connected_account_ids: SENTINEL, trigger_ids: SENTINEL, show_enabled_only: SENTINEL, extra: {})
|
731
|
+
def list(app_names: SENTINEL, connected_account_ids: SENTINEL, trigger_ids: SENTINEL, integration_ids: SENTINEL, show_enabled_only: SENTINEL, extra: {})
|
731
732
|
extra[:app_names] = app_names if app_names != SENTINEL
|
732
733
|
extra[:connected_account_ids] = connected_account_ids if connected_account_ids != SENTINEL
|
733
734
|
extra[:trigger_ids] = trigger_ids if trigger_ids != SENTINEL
|
735
|
+
extra[:integration_ids] = integration_ids if integration_ids != SENTINEL
|
734
736
|
extra[:show_enabled_only] = show_enabled_only if show_enabled_only != SENTINEL
|
735
737
|
api_response = list_with_http_info_impl(extra)
|
736
738
|
api_response.data
|
@@ -743,12 +745,14 @@ module Composio
|
|
743
745
|
# @param app_names [String]
|
744
746
|
# @param connected_account_ids [String]
|
745
747
|
# @param trigger_ids [String]
|
748
|
+
# @param integration_ids [String]
|
746
749
|
# @param show_enabled_only [Boolean]
|
747
750
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
748
|
-
def list_with_http_info(app_names: SENTINEL, connected_account_ids: SENTINEL, trigger_ids: SENTINEL, show_enabled_only: SENTINEL, extra: {})
|
751
|
+
def list_with_http_info(app_names: SENTINEL, connected_account_ids: SENTINEL, trigger_ids: SENTINEL, integration_ids: SENTINEL, show_enabled_only: SENTINEL, extra: {})
|
749
752
|
extra[:app_names] = app_names if app_names != SENTINEL
|
750
753
|
extra[:connected_account_ids] = connected_account_ids if connected_account_ids != SENTINEL
|
751
754
|
extra[:trigger_ids] = trigger_ids if trigger_ids != SENTINEL
|
755
|
+
extra[:integration_ids] = integration_ids if integration_ids != SENTINEL
|
752
756
|
extra[:show_enabled_only] = show_enabled_only if show_enabled_only != SENTINEL
|
753
757
|
list_with_http_info_impl(extra)
|
754
758
|
end
|
@@ -759,6 +763,7 @@ module Composio
|
|
759
763
|
# @option opts [String] :app_names
|
760
764
|
# @option opts [String] :connected_account_ids
|
761
765
|
# @option opts [String] :trigger_ids
|
766
|
+
# @option opts [String] :integration_ids
|
762
767
|
# @option opts [Boolean] :show_enabled_only
|
763
768
|
# @return [Array<TriggerResDTO>]
|
764
769
|
private def list_impl(opts = {})
|
@@ -772,6 +777,7 @@ module Composio
|
|
772
777
|
# @option opts [String] :app_names
|
773
778
|
# @option opts [String] :connected_account_ids
|
774
779
|
# @option opts [String] :trigger_ids
|
780
|
+
# @option opts [String] :integration_ids
|
775
781
|
# @option opts [Boolean] :show_enabled_only
|
776
782
|
# @return [APIResponse] data is Array<TriggerResDTO>, status code, headers and response
|
777
783
|
private def list_with_http_info_impl(opts = {})
|
@@ -786,6 +792,7 @@ module Composio
|
|
786
792
|
query_params[:'appNames'] = opts[:'app_names'] if !opts[:'app_names'].nil?
|
787
793
|
query_params[:'connectedAccountIds'] = opts[:'connected_account_ids'] if !opts[:'connected_account_ids'].nil?
|
788
794
|
query_params[:'triggerIds'] = opts[:'trigger_ids'] if !opts[:'trigger_ids'].nil?
|
795
|
+
query_params[:'integrationIds'] = opts[:'integration_ids'] if !opts[:'integration_ids'].nil?
|
789
796
|
query_params[:'showEnabledOnly'] = opts[:'show_enabled_only'] if !opts[:'show_enabled_only'].nil?
|
790
797
|
|
791
798
|
# header parameters
|
@@ -21,10 +21,16 @@ module Composio
|
|
21
21
|
|
22
22
|
attr_accessor :input
|
23
23
|
|
24
|
+
attr_accessor :session_info
|
25
|
+
|
24
26
|
attr_accessor :auth_config
|
25
27
|
|
26
28
|
attr_accessor :text
|
27
29
|
|
30
|
+
attr_accessor :custom_description
|
31
|
+
|
32
|
+
attr_accessor :system_prompt
|
33
|
+
|
28
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
29
35
|
def self.attribute_map
|
30
36
|
{
|
@@ -33,8 +39,11 @@ module Composio
|
|
33
39
|
:'entity_id' => :'entityId',
|
34
40
|
:'endpoint' => :'endpoint',
|
35
41
|
:'input' => :'input',
|
42
|
+
:'session_info' => :'sessionInfo',
|
36
43
|
:'auth_config' => :'authConfig',
|
37
|
-
:'text' => :'text'
|
44
|
+
:'text' => :'text',
|
45
|
+
:'custom_description' => :'customDescription',
|
46
|
+
:'system_prompt' => :'systemPrompt'
|
38
47
|
}
|
39
48
|
end
|
40
49
|
|
@@ -51,8 +60,11 @@ module Composio
|
|
51
60
|
:'entity_id' => :'String',
|
52
61
|
:'endpoint' => :'String',
|
53
62
|
:'input' => :'Object',
|
63
|
+
:'session_info' => :'SessionInfoDTO',
|
54
64
|
:'auth_config' => :'CustomAuthDTO',
|
55
|
-
:'text' => :'String'
|
65
|
+
:'text' => :'String',
|
66
|
+
:'custom_description' => :'String',
|
67
|
+
:'system_prompt' => :'String'
|
56
68
|
}
|
57
69
|
end
|
58
70
|
|
@@ -97,6 +109,10 @@ module Composio
|
|
97
109
|
self.input = attributes[:'input']
|
98
110
|
end
|
99
111
|
|
112
|
+
if attributes.key?(:'session_info')
|
113
|
+
self.session_info = attributes[:'session_info']
|
114
|
+
end
|
115
|
+
|
100
116
|
if attributes.key?(:'auth_config')
|
101
117
|
self.auth_config = attributes[:'auth_config']
|
102
118
|
end
|
@@ -104,6 +120,14 @@ module Composio
|
|
104
120
|
if attributes.key?(:'text')
|
105
121
|
self.text = attributes[:'text']
|
106
122
|
end
|
123
|
+
|
124
|
+
if attributes.key?(:'custom_description')
|
125
|
+
self.custom_description = attributes[:'custom_description']
|
126
|
+
end
|
127
|
+
|
128
|
+
if attributes.key?(:'system_prompt')
|
129
|
+
self.system_prompt = attributes[:'system_prompt']
|
130
|
+
end
|
107
131
|
end
|
108
132
|
|
109
133
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -129,8 +153,11 @@ module Composio
|
|
129
153
|
entity_id == o.entity_id &&
|
130
154
|
endpoint == o.endpoint &&
|
131
155
|
input == o.input &&
|
156
|
+
session_info == o.session_info &&
|
132
157
|
auth_config == o.auth_config &&
|
133
|
-
text == o.text
|
158
|
+
text == o.text &&
|
159
|
+
custom_description == o.custom_description &&
|
160
|
+
system_prompt == o.system_prompt
|
134
161
|
end
|
135
162
|
|
136
163
|
# @see the `==` method
|
@@ -142,7 +169,7 @@ module Composio
|
|
142
169
|
# Calculates hash code according to all attributes.
|
143
170
|
# @return [Integer] Hash code
|
144
171
|
def hash
|
145
|
-
[connected_account_id, app_name, entity_id, endpoint, input, auth_config, text].hash
|
172
|
+
[connected_account_id, app_name, entity_id, endpoint, input, session_info, auth_config, text, custom_description, system_prompt].hash
|
146
173
|
end
|
147
174
|
|
148
175
|
# Builds the object from hash
|
@@ -35,6 +35,10 @@ module Composio
|
|
35
35
|
|
36
36
|
attr_accessor :show_all
|
37
37
|
|
38
|
+
attr_accessor :page
|
39
|
+
|
40
|
+
attr_accessor :offset
|
41
|
+
|
38
42
|
# Attribute mapping from ruby-style variable name to JSON key.
|
39
43
|
def self.attribute_map
|
40
44
|
{
|
@@ -47,7 +51,9 @@ module Composio
|
|
47
51
|
:'actions' => :'actions',
|
48
52
|
:'usecase_limit' => :'usecaseLimit',
|
49
53
|
:'filter_important_actions' => :'filterImportantActions',
|
50
|
-
:'show_all' => :'showAll'
|
54
|
+
:'show_all' => :'showAll',
|
55
|
+
:'page' => :'page',
|
56
|
+
:'offset' => :'offset'
|
51
57
|
}
|
52
58
|
end
|
53
59
|
|
@@ -68,7 +74,9 @@ module Composio
|
|
68
74
|
:'actions' => :'String',
|
69
75
|
:'usecase_limit' => :'Float',
|
70
76
|
:'filter_important_actions' => :'Boolean',
|
71
|
-
:'show_all' => :'Boolean'
|
77
|
+
:'show_all' => :'Boolean',
|
78
|
+
:'page' => :'Float',
|
79
|
+
:'offset' => :'Float'
|
72
80
|
}
|
73
81
|
end
|
74
82
|
|
@@ -132,6 +140,14 @@ module Composio
|
|
132
140
|
if attributes.key?(:'show_all')
|
133
141
|
self.show_all = attributes[:'show_all']
|
134
142
|
end
|
143
|
+
|
144
|
+
if attributes.key?(:'page')
|
145
|
+
self.page = attributes[:'page']
|
146
|
+
end
|
147
|
+
|
148
|
+
if attributes.key?(:'offset')
|
149
|
+
self.offset = attributes[:'offset']
|
150
|
+
end
|
135
151
|
end
|
136
152
|
|
137
153
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -161,7 +177,9 @@ module Composio
|
|
161
177
|
actions == o.actions &&
|
162
178
|
usecase_limit == o.usecase_limit &&
|
163
179
|
filter_important_actions == o.filter_important_actions &&
|
164
|
-
show_all == o.show_all
|
180
|
+
show_all == o.show_all &&
|
181
|
+
page == o.page &&
|
182
|
+
offset == o.offset
|
165
183
|
end
|
166
184
|
|
167
185
|
# @see the `==` method
|
@@ -173,7 +191,7 @@ module Composio
|
|
173
191
|
# Calculates hash code according to all attributes.
|
174
192
|
# @return [Integer] Hash code
|
175
193
|
def hash
|
176
|
-
[tags, app_names, use_case, show_enabled_only, limit, apps, actions, usecase_limit, filter_important_actions, show_all].hash
|
194
|
+
[tags, app_names, use_case, show_enabled_only, limit, apps, actions, usecase_limit, filter_important_actions, show_all, page, offset].hash
|
177
195
|
end
|
178
196
|
|
179
197
|
# Builds the object from hash
|