composio 0.1.6 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/README.md +492 -4
- data/lib/composio/api/actions_api.rb +107 -0
- data/lib/composio/api/analytics_api.rb +181 -0
- data/lib/composio/api/apps_api.rb +257 -0
- data/lib/composio/api/connections_api.rb +84 -0
- data/lib/composio/api/event_logs_api.rb +427 -0
- data/lib/composio/api/logs_api.rb +127 -9
- data/lib/composio/api/payment_api.rb +430 -0
- data/lib/composio/models/action_analytics_dto.rb +250 -0
- data/lib/composio/models/action_by_app_dto.rb +237 -0
- data/lib/composio/models/action_by_status_dto.rb +237 -0
- data/lib/composio/models/action_get_nla_inputs_req_dto.rb +220 -0
- data/lib/composio/models/additional_info.rb +220 -0
- data/lib/composio/models/analytics_data_req_dto.rb +250 -0
- data/lib/composio/models/analytics_data_res_dto.rb +282 -0
- data/lib/composio/models/analytics_entity_data_dto.rb +257 -0
- data/lib/composio/models/api_key_res_dto.rb +61 -4
- data/lib/composio/models/app_name_count_dto.rb +267 -0
- data/lib/composio/models/client_unique_user_id_count_dto.rb +237 -0
- data/lib/composio/models/connected_account_response_dto.rb +10 -1
- data/lib/composio/models/connection_params.rb +22 -6
- data/lib/composio/models/connection_with_app_data.rb +22 -6
- data/lib/composio/models/connector_list_item_dto.rb +16 -1
- data/lib/composio/models/create_checkout_session_req_dto.rb +220 -0
- data/lib/composio/models/data.rb +234 -0
- data/lib/composio/models/entity_query_req_dto.rb +216 -0
- data/lib/composio/models/fetch_query_dto.rb +278 -0
- data/lib/composio/models/get_connection_info_response_dto.rb +250 -0
- data/lib/composio/models/get_connector_list_res_dto.rb +0 -1
- data/lib/composio/models/get_logs_dto.rb +10 -10
- data/lib/composio/models/{job_status.rb → get_logs_dto_status.rb} +6 -6
- data/lib/composio/models/ingest_data_dto.rb +298 -0
- data/lib/composio/models/ingest_data_response_dto.rb +220 -0
- data/lib/composio/models/integrations_with_counts_dto.rb +297 -0
- data/lib/composio/models/invite_member_req_dto.rb +14 -4
- data/lib/composio/models/last_time_period.rb +40 -0
- data/lib/composio/models/member_info_res_dto.rb +324 -0
- data/lib/composio/models/{connection_with_app_data_created_at.rb → member_info_res_dto_created_at.rb} +1 -1
- data/lib/composio/models/member_res_dto.rb +16 -1
- data/lib/composio/models/member_res_dto_role.rb +36 -0
- data/lib/composio/models/open_api_spec_list_res_dto.rb +17 -74
- data/lib/composio/models/parameter.rb +248 -0
- data/lib/composio/models/plan.rb +38 -0
- data/lib/composio/models/role.rb +36 -0
- data/lib/composio/models/state.rb +41 -0
- data/lib/composio/models/status.rb +7 -4
- data/lib/composio/models/t_connection_count_dto.rb +236 -0
- data/lib/composio/models/time_period_req_dto.rb +216 -0
- data/lib/composio/models/top_entities_res_dto.rb +223 -0
- data/lib/composio/models/update_member_req_dto.rb +236 -0
- data/lib/composio/models/update_member_req_dto_role.rb +36 -0
- data/lib/composio/models/webhook_req_dto.rb +221 -0
- data/lib/composio/models/webhook_secret_res_dto.rb +221 -0
- data/lib/composio/version.rb +1 -1
- data/lib/composio.rb +43 -2
- data/spec/api/actions_api_spec.rb +13 -0
- data/spec/api/analytics_api_spec.rb +51 -0
- data/spec/api/apps_api_spec.rb +34 -0
- data/spec/api/connections_api_spec.rb +11 -0
- data/spec/api/event_logs_api_spec.rb +83 -0
- data/spec/api/logs_api_spec.rb +13 -1
- data/spec/api/payment_api_spec.rb +83 -0
- data/spec/models/action_analytics_dto_spec.rb +40 -0
- data/spec/models/action_by_app_dto_spec.rb +34 -0
- data/spec/models/action_by_status_dto_spec.rb +34 -0
- data/spec/models/action_get_nla_inputs_req_dto_spec.rb +28 -0
- data/spec/models/additional_info_spec.rb +28 -0
- data/spec/models/analytics_data_req_dto_spec.rb +32 -0
- data/spec/models/analytics_data_res_dto_spec.rb +52 -0
- data/spec/models/analytics_entity_data_dto_spec.rb +40 -0
- data/spec/models/api_key_res_dto_spec.rb +18 -0
- data/spec/models/app_name_count_dto_spec.rb +46 -0
- data/spec/models/client_unique_user_id_count_dto_spec.rb +34 -0
- data/spec/models/connected_account_response_dto_spec.rb +6 -0
- data/spec/models/connection_params_spec.rb +6 -0
- data/spec/models/connection_with_app_data_spec.rb +6 -0
- data/spec/models/connector_list_item_dto_spec.rb +6 -0
- data/spec/models/create_checkout_session_req_dto_spec.rb +28 -0
- data/spec/models/data_spec.rb +34 -0
- data/spec/models/entity_query_req_dto_spec.rb +28 -0
- data/spec/models/fetch_query_dto_spec.rb +34 -0
- data/spec/models/get_connection_info_response_dto_spec.rb +40 -0
- data/spec/models/get_logs_dto_spec.rb +1 -1
- data/spec/models/get_logs_dto_status_spec.rb +22 -0
- data/spec/models/ingest_data_dto_spec.rb +64 -0
- data/spec/models/ingest_data_response_dto_spec.rb +28 -0
- data/spec/models/integrations_with_counts_dto_spec.rb +58 -0
- data/spec/models/invite_member_req_dto_spec.rb +6 -0
- data/spec/models/last_time_period_spec.rb +22 -0
- data/spec/models/{connection_with_app_data_created_at_spec.rb → member_info_res_dto_created_at_spec.rb} +2 -2
- data/spec/models/member_info_res_dto_spec.rb +76 -0
- data/spec/models/member_res_dto_role_spec.rb +22 -0
- data/spec/models/member_res_dto_spec.rb +6 -0
- data/spec/models/open_api_spec_list_res_dto_spec.rb +5 -29
- data/spec/models/parameter_spec.rb +40 -0
- data/spec/models/plan_spec.rb +22 -0
- data/spec/models/role_spec.rb +22 -0
- data/spec/models/state_spec.rb +22 -0
- data/spec/models/t_connection_count_dto_spec.rb +34 -0
- data/spec/models/time_period_req_dto_spec.rb +28 -0
- data/spec/models/top_entities_res_dto_spec.rb +28 -0
- data/spec/models/update_member_req_dto_role_spec.rb +22 -0
- data/spec/models/update_member_req_dto_spec.rb +34 -0
- data/spec/models/webhook_req_dto_spec.rb +28 -0
- data/spec/models/webhook_secret_res_dto_spec.rb +28 -0
- metadata +215 -110
- data/spec/models/job_status_spec.rb +0 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 953aa316be770c444ed3e7225b3ce1ce3ab7bb12522d23895c5f5395dd120479
|
4
|
+
data.tar.gz: 2238ce5295754b4004e39507bc11f0ec7e31b939b02fe1cd0aedacb0ab5af664
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9151c65b1ec793c2d1e055f86c3c8c7a21f1f1b5472b692d65867d1de779e033ba2b55003ba4206b39c4e4ee3205f016666a62ac53bf7d03e25d494e6e27345a
|
7
|
+
data.tar.gz: b352e4ec843c6f7add2e991b4074ad63010e1108a60d6016b499e0f95f3bd91c3eedb8ca7bb679cbb7189a4059c3b3a790c2c8b3ff4c046bd62a0461cbf0ec49
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
composio (0.1.
|
4
|
+
composio (0.1.8)
|
5
5
|
faraday (>= 1.0.1, < 3.0)
|
6
6
|
faraday-multipart (~> 1.0, >= 1.0.4)
|
7
7
|
|
@@ -44,7 +44,7 @@ GEM
|
|
44
44
|
regexp_parser (2.9.2)
|
45
45
|
reline (0.5.10)
|
46
46
|
io-console (~> 0.5)
|
47
|
-
rexml (3.3.
|
47
|
+
rexml (3.3.8)
|
48
48
|
rspec (3.13.0)
|
49
49
|
rspec-core (~> 3.13.0)
|
50
50
|
rspec-expectations (~> 3.13.0)
|
@@ -54,7 +54,7 @@ GEM
|
|
54
54
|
rspec-expectations (3.13.3)
|
55
55
|
diff-lcs (>= 1.2.0, < 2.0)
|
56
56
|
rspec-support (~> 3.13.0)
|
57
|
-
rspec-mocks (3.13.
|
57
|
+
rspec-mocks (3.13.2)
|
58
58
|
diff-lcs (>= 1.2.0, < 2.0)
|
59
59
|
rspec-support (~> 3.13.0)
|
60
60
|
rspec-support (3.13.1)
|
data/README.md
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
Composio SDK: Equip your agent with high-quality tools and build your real-world usecase
|
8
8
|
|
9
|
-
[![npm](https://img.shields.io/badge/gem-v0.1.
|
9
|
+
[![npm](https://img.shields.io/badge/gem-v0.1.8-blue)](https://rubygems.org/gems/composio/versions/0.1.8)
|
10
10
|
[![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](https://composio.dev)
|
11
11
|
|
12
12
|
</div>
|
@@ -25,23 +25,41 @@ Composio SDK: Equip your agent with high-quality tools and build your real-world
|
|
25
25
|
* [`composio.actions.execute`](#composioactionsexecute)
|
26
26
|
* [`composio.actions.execute_action_proxy`](#composioactionsexecute_action_proxy)
|
27
27
|
* [`composio.actions.get_action_by_id`](#composioactionsget_action_by_id)
|
28
|
+
* [`composio.actions.get_action_inputs`](#composioactionsget_action_inputs)
|
28
29
|
* [`composio.actions.get_all_actions_based_on_query`](#composioactionsget_all_actions_based_on_query)
|
30
|
+
* [`composio.analytics.get`](#composioanalyticsget)
|
31
|
+
* [`composio.analytics.get_top_entities`](#composioanalyticsget_top_entities)
|
32
|
+
* [`composio.apps.delete_open_api_spec_tool`](#composioappsdelete_open_api_spec_tool)
|
29
33
|
* [`composio.apps.get_details`](#composioappsget_details)
|
34
|
+
* [`composio.apps.get_open_api_spec_status`](#composioappsget_open_api_spec_status)
|
30
35
|
* [`composio.apps.list`](#composioappslist)
|
31
36
|
* [`composio.apps.list_open_api_specs`](#composioappslist_open_api_specs)
|
37
|
+
* [`composio.apps.send_email_to_client`](#composioappssend_email_to_client)
|
32
38
|
* [`composio.auth.identify_client_operation`](#composioauthidentify_client_operation)
|
33
39
|
* [`composio.connections.delete`](#composioconnectionsdelete)
|
34
40
|
* [`composio.connections.disable`](#composioconnectionsdisable)
|
35
41
|
* [`composio.connections.enable`](#composioconnectionsenable)
|
36
42
|
* [`composio.connections.get`](#composioconnectionsget)
|
43
|
+
* [`composio.connections.get_info`](#composioconnectionsget_info)
|
37
44
|
* [`composio.connections.initiate`](#composioconnectionsinitiate)
|
38
45
|
* [`composio.connections.list`](#composioconnectionslist)
|
46
|
+
* [`composio.event_logs.get_events`](#composioevent_logsget_events)
|
47
|
+
* [`composio.event_logs.get_webhook`](#composioevent_logsget_webhook)
|
48
|
+
* [`composio.event_logs.get_webhook_secret`](#composioevent_logsget_webhook_secret)
|
49
|
+
* [`composio.event_logs.refresh_webhook_secret`](#composioevent_logsrefresh_webhook_secret)
|
50
|
+
* [`composio.event_logs.update_webhook`](#composioevent_logsupdate_webhook)
|
39
51
|
* [`composio.integrations.create_integration`](#composiointegrationscreate_integration)
|
40
52
|
* [`composio.integrations.delete_connector`](#composiointegrationsdelete_connector)
|
41
53
|
* [`composio.integrations.get_connector_info`](#composiointegrationsget_connector_info)
|
42
54
|
* [`composio.integrations.list_global_connectors`](#composiointegrationslist_global_connectors)
|
43
55
|
* [`composio.integrations.update_integration`](#composiointegrationsupdate_integration)
|
56
|
+
* [`composio.logs.add_new_logs`](#composiologsadd_new_logs)
|
44
57
|
* [`composio.logs.list`](#composiologslist)
|
58
|
+
* [`composio.payment.create_checkout_session`](#composiopaymentcreate_checkout_session)
|
59
|
+
* [`composio.payment.get_checkout_session_status`](#composiopaymentget_checkout_session_status)
|
60
|
+
* [`composio.payment.get_invoice`](#composiopaymentget_invoice)
|
61
|
+
* [`composio.payment.get_invoices`](#composiopaymentget_invoices)
|
62
|
+
* [`composio.payment.handle_stripe_webhook`](#composiopaymenthandle_stripe_webhook)
|
45
63
|
* [`composio.triggers.delete_trigger_instance`](#composiotriggersdelete_trigger_instance)
|
46
64
|
* [`composio.triggers.disable_trigger_instance`](#composiotriggersdisable_trigger_instance)
|
47
65
|
* [`composio.triggers.enable`](#composiotriggersenable)
|
@@ -60,7 +78,7 @@ Composio SDK: Equip your agent with high-quality tools and build your real-world
|
|
60
78
|
Add to Gemfile:
|
61
79
|
|
62
80
|
```ruby
|
63
|
-
gem 'composio', '~> 0.1.
|
81
|
+
gem 'composio', '~> 0.1.8'
|
64
82
|
```
|
65
83
|
|
66
84
|
## Getting Started<a id="getting-started"></a>
|
@@ -278,6 +296,33 @@ p result
|
|
278
296
|
---
|
279
297
|
|
280
298
|
|
299
|
+
### `composio.actions.get_action_inputs`<a id="composioactionsget_action_inputs"></a>
|
300
|
+
|
301
|
+
Get the inputs for an action with NLA
|
302
|
+
|
303
|
+
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
304
|
+
|
305
|
+
```ruby
|
306
|
+
result = composio.actions.get_action_inputs(
|
307
|
+
text: "string_example",
|
308
|
+
action_id: "'+j>6",
|
309
|
+
)
|
310
|
+
p result
|
311
|
+
```
|
312
|
+
|
313
|
+
#### ⚙️ Parameters<a id="⚙️-parameters"></a>
|
314
|
+
|
315
|
+
##### text: `String`<a id="text-string"></a>
|
316
|
+
##### action_id: `String`<a id="action_id-string"></a>
|
317
|
+
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
318
|
+
|
319
|
+
`/api/v2/actions/{actionId}/execute/get.inputs` `POST`
|
320
|
+
|
321
|
+
[🔙 **Back to Table of Contents**](#table-of-contents)
|
322
|
+
|
323
|
+
---
|
324
|
+
|
325
|
+
|
281
326
|
### `composio.actions.get_all_actions_based_on_query`<a id="composioactionsget_all_actions_based_on_query"></a>
|
282
327
|
|
283
328
|
Retrieve a list of all actions based on query parameters.
|
@@ -325,6 +370,89 @@ p result
|
|
325
370
|
---
|
326
371
|
|
327
372
|
|
373
|
+
### `composio.analytics.get`<a id="composioanalyticsget"></a>
|
374
|
+
|
375
|
+
Get analytics
|
376
|
+
|
377
|
+
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
378
|
+
|
379
|
+
```ruby
|
380
|
+
result = composio.analytics.get(
|
381
|
+
last_time_period: "DAY",
|
382
|
+
)
|
383
|
+
p result
|
384
|
+
```
|
385
|
+
|
386
|
+
#### ⚙️ Parameters<a id="⚙️-parameters"></a>
|
387
|
+
|
388
|
+
##### last_time_period: `String`<a id="last_time_period-string"></a>
|
389
|
+
#### 🔄 Return<a id="🔄-return"></a>
|
390
|
+
|
391
|
+
[AnalyticsDataResDTO](./lib/composio/models/analytics_data_res_dto.rb)
|
392
|
+
|
393
|
+
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
394
|
+
|
395
|
+
`/api/v1/analytics` `GET`
|
396
|
+
|
397
|
+
[🔙 **Back to Table of Contents**](#table-of-contents)
|
398
|
+
|
399
|
+
---
|
400
|
+
|
401
|
+
|
402
|
+
### `composio.analytics.get_top_entities`<a id="composioanalyticsget_top_entities"></a>
|
403
|
+
|
404
|
+
Get top entities
|
405
|
+
|
406
|
+
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
407
|
+
|
408
|
+
```ruby
|
409
|
+
result = composio.analytics.get_top_entities(
|
410
|
+
query: "string_example",
|
411
|
+
)
|
412
|
+
p result
|
413
|
+
```
|
414
|
+
|
415
|
+
#### ⚙️ Parameters<a id="⚙️-parameters"></a>
|
416
|
+
|
417
|
+
##### query: `String`<a id="query-string"></a>
|
418
|
+
#### 🔄 Return<a id="🔄-return"></a>
|
419
|
+
|
420
|
+
[TopEntitiesResDTO](./lib/composio/models/top_entities_res_dto.rb)
|
421
|
+
|
422
|
+
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
423
|
+
|
424
|
+
`/api/v1/analytics/entities` `GET`
|
425
|
+
|
426
|
+
[🔙 **Back to Table of Contents**](#table-of-contents)
|
427
|
+
|
428
|
+
---
|
429
|
+
|
430
|
+
|
431
|
+
### `composio.apps.delete_open_api_spec_tool`<a id="composioappsdelete_open_api_spec_tool"></a>
|
432
|
+
|
433
|
+
Delete open api spec tool
|
434
|
+
|
435
|
+
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
436
|
+
|
437
|
+
```ruby
|
438
|
+
result = composio.apps.delete_open_api_spec_tool(
|
439
|
+
id: "'+j>6",
|
440
|
+
)
|
441
|
+
p result
|
442
|
+
```
|
443
|
+
|
444
|
+
#### ⚙️ Parameters<a id="⚙️-parameters"></a>
|
445
|
+
|
446
|
+
##### id: `String`<a id="id-string"></a>
|
447
|
+
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
448
|
+
|
449
|
+
`/api/v1/apps/openapi/spec/delete/{id}` `DELETE`
|
450
|
+
|
451
|
+
[🔙 **Back to Table of Contents**](#table-of-contents)
|
452
|
+
|
453
|
+
---
|
454
|
+
|
455
|
+
|
328
456
|
### `composio.apps.get_details`<a id="composioappsget_details"></a>
|
329
457
|
|
330
458
|
Get app details
|
@@ -354,6 +482,31 @@ p result
|
|
354
482
|
---
|
355
483
|
|
356
484
|
|
485
|
+
### `composio.apps.get_open_api_spec_status`<a id="composioappsget_open_api_spec_status"></a>
|
486
|
+
|
487
|
+
Get open api spec status
|
488
|
+
|
489
|
+
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
490
|
+
|
491
|
+
```ruby
|
492
|
+
result = composio.apps.get_open_api_spec_status(
|
493
|
+
id: "'+j>6",
|
494
|
+
)
|
495
|
+
p result
|
496
|
+
```
|
497
|
+
|
498
|
+
#### ⚙️ Parameters<a id="⚙️-parameters"></a>
|
499
|
+
|
500
|
+
##### id: `String`<a id="id-string"></a>
|
501
|
+
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
502
|
+
|
503
|
+
`/api/v1/apps/openapi/spec/status/{id}` `GET`
|
504
|
+
|
505
|
+
[🔙 **Back to Table of Contents**](#table-of-contents)
|
506
|
+
|
507
|
+
---
|
508
|
+
|
509
|
+
|
357
510
|
### `composio.apps.list`<a id="composioappslist"></a>
|
358
511
|
|
359
512
|
Retrieve a list of all applications based on query parameters.
|
@@ -409,6 +562,32 @@ p result
|
|
409
562
|
---
|
410
563
|
|
411
564
|
|
565
|
+
### `composio.apps.send_email_to_client`<a id="composioappssend_email_to_client"></a>
|
566
|
+
|
567
|
+
Send email to client
|
568
|
+
|
569
|
+
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
570
|
+
|
571
|
+
```ruby
|
572
|
+
result = composio.apps.send_email_to_client(
|
573
|
+
admin_token: "string_example",
|
574
|
+
body: None,
|
575
|
+
)
|
576
|
+
p result
|
577
|
+
```
|
578
|
+
|
579
|
+
#### ⚙️ Parameters<a id="⚙️-parameters"></a>
|
580
|
+
|
581
|
+
##### admin_token: `String`<a id="admin_token-string"></a>
|
582
|
+
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
583
|
+
|
584
|
+
`/api/v1/apps/openapi/send_email_to_client` `POST`
|
585
|
+
|
586
|
+
[🔙 **Back to Table of Contents**](#table-of-contents)
|
587
|
+
|
588
|
+
---
|
589
|
+
|
590
|
+
|
412
591
|
### `composio.auth.identify_client_operation`<a id="composioauthidentify_client_operation"></a>
|
413
592
|
|
414
593
|
Identify client
|
@@ -560,6 +739,35 @@ p result
|
|
560
739
|
---
|
561
740
|
|
562
741
|
|
742
|
+
### `composio.connections.get_info`<a id="composioconnectionsget_info"></a>
|
743
|
+
|
744
|
+
Get connection info
|
745
|
+
|
746
|
+
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
747
|
+
|
748
|
+
```ruby
|
749
|
+
result = composio.connections.get_info(
|
750
|
+
connected_account_id: "'+j>6",
|
751
|
+
)
|
752
|
+
p result
|
753
|
+
```
|
754
|
+
|
755
|
+
#### ⚙️ Parameters<a id="⚙️-parameters"></a>
|
756
|
+
|
757
|
+
##### connected_account_id: `String`<a id="connected_account_id-string"></a>
|
758
|
+
#### 🔄 Return<a id="🔄-return"></a>
|
759
|
+
|
760
|
+
[GetConnectionInfoResponseDTO](./lib/composio/models/get_connection_info_response_dto.rb)
|
761
|
+
|
762
|
+
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
763
|
+
|
764
|
+
`/api/v1/connectedAccounts/{connectedAccountId}/info` `GET`
|
765
|
+
|
766
|
+
[🔙 **Back to Table of Contents**](#table-of-contents)
|
767
|
+
|
768
|
+
---
|
769
|
+
|
770
|
+
|
563
771
|
### `composio.connections.initiate`<a id="composioconnectionsinitiate"></a>
|
564
772
|
|
565
773
|
Initiate connection
|
@@ -640,6 +848,120 @@ p result
|
|
640
848
|
---
|
641
849
|
|
642
850
|
|
851
|
+
### `composio.event_logs.get_events`<a id="composioevent_logsget_events"></a>
|
852
|
+
|
853
|
+
Fetch events from database
|
854
|
+
|
855
|
+
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
856
|
+
|
857
|
+
```ruby
|
858
|
+
result = composio.event_logs.get_events(
|
859
|
+
start_time: "0480-02-18T20:01:32F21798096225500850762068629339333975650685",
|
860
|
+
end_time: "0480-02-18T20:01:32F21798096225500850762068629339333975650685",
|
861
|
+
)
|
862
|
+
p result
|
863
|
+
```
|
864
|
+
|
865
|
+
#### ⚙️ Parameters<a id="⚙️-parameters"></a>
|
866
|
+
|
867
|
+
##### start_time: `String`<a id="start_time-string"></a>
|
868
|
+
##### end_time: `String`<a id="end_time-string"></a>
|
869
|
+
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
870
|
+
|
871
|
+
`/api/v1/event_logs/get/events` `GET`
|
872
|
+
|
873
|
+
[🔙 **Back to Table of Contents**](#table-of-contents)
|
874
|
+
|
875
|
+
---
|
876
|
+
|
877
|
+
|
878
|
+
### `composio.event_logs.get_webhook`<a id="composioevent_logsget_webhook"></a>
|
879
|
+
|
880
|
+
Get webhook
|
881
|
+
|
882
|
+
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
883
|
+
|
884
|
+
```ruby
|
885
|
+
result = composio.event_logs.get_webhook
|
886
|
+
p result
|
887
|
+
```
|
888
|
+
|
889
|
+
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
890
|
+
|
891
|
+
`/api/v1/event_logs/get/webhook` `GET`
|
892
|
+
|
893
|
+
[🔙 **Back to Table of Contents**](#table-of-contents)
|
894
|
+
|
895
|
+
---
|
896
|
+
|
897
|
+
|
898
|
+
### `composio.event_logs.get_webhook_secret`<a id="composioevent_logsget_webhook_secret"></a>
|
899
|
+
|
900
|
+
Get webhook secret
|
901
|
+
|
902
|
+
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
903
|
+
|
904
|
+
```ruby
|
905
|
+
result = composio.event_logs.get_webhook_secret
|
906
|
+
p result
|
907
|
+
```
|
908
|
+
|
909
|
+
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
910
|
+
|
911
|
+
`/api/v1/event_logs/webhook/secret/get` `GET`
|
912
|
+
|
913
|
+
[🔙 **Back to Table of Contents**](#table-of-contents)
|
914
|
+
|
915
|
+
---
|
916
|
+
|
917
|
+
|
918
|
+
### `composio.event_logs.refresh_webhook_secret`<a id="composioevent_logsrefresh_webhook_secret"></a>
|
919
|
+
|
920
|
+
Refresh webhook
|
921
|
+
|
922
|
+
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
923
|
+
|
924
|
+
```ruby
|
925
|
+
result = composio.event_logs.refresh_webhook_secret
|
926
|
+
p result
|
927
|
+
```
|
928
|
+
|
929
|
+
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
930
|
+
|
931
|
+
`/api/v1/event_logs/webhook/secret/refresh` `POST`
|
932
|
+
|
933
|
+
[🔙 **Back to Table of Contents**](#table-of-contents)
|
934
|
+
|
935
|
+
---
|
936
|
+
|
937
|
+
|
938
|
+
### `composio.event_logs.update_webhook`<a id="composioevent_logsupdate_webhook"></a>
|
939
|
+
|
940
|
+
Update webhook
|
941
|
+
|
942
|
+
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
943
|
+
|
944
|
+
```ruby
|
945
|
+
result = composio.event_logs.update_webhook(
|
946
|
+
event_webhook_url: "string_example",
|
947
|
+
)
|
948
|
+
p result
|
949
|
+
```
|
950
|
+
|
951
|
+
#### ⚙️ Parameters<a id="⚙️-parameters"></a>
|
952
|
+
|
953
|
+
##### eventWebhookURL: `String`<a id="eventwebhookurl-string"></a>
|
954
|
+
Event Webhook URL
|
955
|
+
|
956
|
+
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
957
|
+
|
958
|
+
`/api/v1/event_logs/set/webhook` `POST`
|
959
|
+
|
960
|
+
[🔙 **Back to Table of Contents**](#table-of-contents)
|
961
|
+
|
962
|
+
---
|
963
|
+
|
964
|
+
|
643
965
|
### `composio.integrations.create_integration`<a id="composiointegrationscreate_integration"></a>
|
644
966
|
|
645
967
|
Create connector
|
@@ -807,6 +1129,55 @@ Flag to indicate if the connector is enabled
|
|
807
1129
|
---
|
808
1130
|
|
809
1131
|
|
1132
|
+
### `composio.logs.add_new_logs`<a id="composiologsadd_new_logs"></a>
|
1133
|
+
|
1134
|
+
Add new logs
|
1135
|
+
|
1136
|
+
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
1137
|
+
|
1138
|
+
```ruby
|
1139
|
+
result = composio.logs.add_new_logs(
|
1140
|
+
provider_name: "string_example",
|
1141
|
+
action_name: "string_example",
|
1142
|
+
request: {},
|
1143
|
+
response: {},
|
1144
|
+
is_error: true,
|
1145
|
+
connection_id: "string_example",
|
1146
|
+
entity_id: "string_example",
|
1147
|
+
)
|
1148
|
+
p result
|
1149
|
+
```
|
1150
|
+
|
1151
|
+
#### ⚙️ Parameters<a id="⚙️-parameters"></a>
|
1152
|
+
|
1153
|
+
##### providerName: `String`<a id="providername-string"></a>
|
1154
|
+
Provider name of the log
|
1155
|
+
|
1156
|
+
##### actionName: `String`<a id="actionname-string"></a>
|
1157
|
+
Action name of the log
|
1158
|
+
|
1159
|
+
##### request: `Object`<a id="request-object"></a>
|
1160
|
+
##### response: `Object`<a id="response-object"></a>
|
1161
|
+
##### isError: `Boolean`<a id="iserror-boolean"></a>
|
1162
|
+
##### connectionId: `String`<a id="connectionid-string"></a>
|
1163
|
+
Connection ID of the log
|
1164
|
+
|
1165
|
+
##### entityId: `String`<a id="entityid-string"></a>
|
1166
|
+
Entity ID of the log
|
1167
|
+
|
1168
|
+
#### 🔄 Return<a id="🔄-return"></a>
|
1169
|
+
|
1170
|
+
[IngestDataResponseDTO](./lib/composio/models/ingest_data_response_dto.rb)
|
1171
|
+
|
1172
|
+
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
1173
|
+
|
1174
|
+
`/api/v1/logs` `POST`
|
1175
|
+
|
1176
|
+
[🔙 **Back to Table of Contents**](#table-of-contents)
|
1177
|
+
|
1178
|
+
---
|
1179
|
+
|
1180
|
+
|
810
1181
|
### `composio.logs.list`<a id="composiologslist"></a>
|
811
1182
|
|
812
1183
|
List logs
|
@@ -823,7 +1194,7 @@ result = composio.logs.list(
|
|
823
1194
|
entity_id: "string_example",
|
824
1195
|
limit: 10,
|
825
1196
|
cursor: "string_example",
|
826
|
-
|
1197
|
+
logs_type: "string_example",
|
827
1198
|
)
|
828
1199
|
p result
|
829
1200
|
```
|
@@ -838,7 +1209,7 @@ p result
|
|
838
1209
|
##### entity_id: `String`<a id="entity_id-string"></a>
|
839
1210
|
##### limit: `Float`<a id="limit-float"></a>
|
840
1211
|
##### cursor: `String`<a id="cursor-string"></a>
|
841
|
-
#####
|
1212
|
+
##### logs_type: `String`<a id="logs_type-string"></a>
|
842
1213
|
#### 🔄 Return<a id="🔄-return"></a>
|
843
1214
|
|
844
1215
|
[LogsResDTO](./lib/composio/models/logs_res_dto.rb)
|
@@ -852,6 +1223,123 @@ p result
|
|
852
1223
|
---
|
853
1224
|
|
854
1225
|
|
1226
|
+
### `composio.payment.create_checkout_session`<a id="composiopaymentcreate_checkout_session"></a>
|
1227
|
+
|
1228
|
+
Create checkout session
|
1229
|
+
|
1230
|
+
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
1231
|
+
|
1232
|
+
```ruby
|
1233
|
+
result = composio.payment.create_checkout_session(
|
1234
|
+
plan: "HOBBY",
|
1235
|
+
)
|
1236
|
+
p result
|
1237
|
+
```
|
1238
|
+
|
1239
|
+
#### ⚙️ Parameters<a id="⚙️-parameters"></a>
|
1240
|
+
|
1241
|
+
##### plan: [`Plan`](./lib/composio/models/plan.rb)<a id="plan-planlibcomposiomodelsplanrb"></a>
|
1242
|
+
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
1243
|
+
|
1244
|
+
`/api/v1/payment/create-checkout-session` `POST`
|
1245
|
+
|
1246
|
+
[🔙 **Back to Table of Contents**](#table-of-contents)
|
1247
|
+
|
1248
|
+
---
|
1249
|
+
|
1250
|
+
|
1251
|
+
### `composio.payment.get_checkout_session_status`<a id="composiopaymentget_checkout_session_status"></a>
|
1252
|
+
|
1253
|
+
Get checkout session status
|
1254
|
+
|
1255
|
+
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
1256
|
+
|
1257
|
+
```ruby
|
1258
|
+
result = composio.payment.get_checkout_session_status(
|
1259
|
+
session_id: "'+j>6",
|
1260
|
+
)
|
1261
|
+
p result
|
1262
|
+
```
|
1263
|
+
|
1264
|
+
#### ⚙️ Parameters<a id="⚙️-parameters"></a>
|
1265
|
+
|
1266
|
+
##### session_id: `String`<a id="session_id-string"></a>
|
1267
|
+
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
1268
|
+
|
1269
|
+
`/api/v1/payment/checkout-session/{sessionId}/status` `GET`
|
1270
|
+
|
1271
|
+
[🔙 **Back to Table of Contents**](#table-of-contents)
|
1272
|
+
|
1273
|
+
---
|
1274
|
+
|
1275
|
+
|
1276
|
+
### `composio.payment.get_invoice`<a id="composiopaymentget_invoice"></a>
|
1277
|
+
|
1278
|
+
Get invoice
|
1279
|
+
|
1280
|
+
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
1281
|
+
|
1282
|
+
```ruby
|
1283
|
+
result = composio.payment.get_invoice(
|
1284
|
+
invoice_id: "'+j>6",
|
1285
|
+
)
|
1286
|
+
p result
|
1287
|
+
```
|
1288
|
+
|
1289
|
+
#### ⚙️ Parameters<a id="⚙️-parameters"></a>
|
1290
|
+
|
1291
|
+
##### invoice_id: `String`<a id="invoice_id-string"></a>
|
1292
|
+
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
1293
|
+
|
1294
|
+
`/api/v1/payment/invoices/{invoiceId}` `GET`
|
1295
|
+
|
1296
|
+
[🔙 **Back to Table of Contents**](#table-of-contents)
|
1297
|
+
|
1298
|
+
---
|
1299
|
+
|
1300
|
+
|
1301
|
+
### `composio.payment.get_invoices`<a id="composiopaymentget_invoices"></a>
|
1302
|
+
|
1303
|
+
Get invoices
|
1304
|
+
|
1305
|
+
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
1306
|
+
|
1307
|
+
```ruby
|
1308
|
+
result = composio.payment.get_invoices
|
1309
|
+
p result
|
1310
|
+
```
|
1311
|
+
|
1312
|
+
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
1313
|
+
|
1314
|
+
`/api/v1/payment/invoices` `GET`
|
1315
|
+
|
1316
|
+
[🔙 **Back to Table of Contents**](#table-of-contents)
|
1317
|
+
|
1318
|
+
---
|
1319
|
+
|
1320
|
+
|
1321
|
+
### `composio.payment.handle_stripe_webhook`<a id="composiopaymenthandle_stripe_webhook"></a>
|
1322
|
+
|
1323
|
+
Handle stripe webhook
|
1324
|
+
|
1325
|
+
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
1326
|
+
|
1327
|
+
```ruby
|
1328
|
+
result = composio.payment.handle_stripe_webhook(
|
1329
|
+
body: None,
|
1330
|
+
)
|
1331
|
+
p result
|
1332
|
+
```
|
1333
|
+
|
1334
|
+
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
1335
|
+
|
1336
|
+
`/api/v1/payment/webhook` `POST`
|
1337
|
+
|
1338
|
+
[🔙 **Back to Table of Contents**](#table-of-contents)
|
1339
|
+
|
1340
|
+
---
|
1341
|
+
|
1342
|
+
|
855
1343
|
### `composio.triggers.delete_trigger_instance`<a id="composiotriggersdelete_trigger_instance"></a>
|
856
1344
|
|
857
1345
|
Deletes a specified trigger instance.
|