composio 0.1.13 → 0.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +6 -2
- data/lib/composio/api/connections_api.rb +6 -2
- data/lib/composio/models/app_info_response_dto.rb +24 -1
- data/lib/composio/models/app_query_dto.rb +11 -1
- data/lib/composio/models/initiate_connection_payload_dto.rb +13 -4
- data/lib/composio/version.rb +1 -1
- data/spec/api/apps_api_spec.rb +1 -0
- data/spec/models/app_info_response_dto_spec.rb +12 -0
- data/spec/models/app_query_dto_spec.rb +6 -0
- data/spec/models/initiate_connection_payload_dto_spec.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72d9e6ddf44f0e69a8606992a7d08c37002d42b6cbbdede443a291c24ed7ee7c
|
4
|
+
data.tar.gz: 2ecf08b8d25160932174e5679ffdb06dec248dd41ac448b3ae730c5899d06018
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17d811b5c9affe8d65a214db002bbf61af978961b044baafedbe489f3ac01e0f6a3f77a2dd708a785e19bed385c8c1e51eab6a8102009604ef290ebdaabac5c3
|
7
|
+
data.tar.gz: 78588bd5973a953aada42f28d8b85dd1983eb109d3242f1e8950bd8fbf32e5c968c570394ef3cab71c01e2a0320937e5581e822fb9821ff45bfdd84a769f250b
|
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.15)
|
5
5
|
faraday (>= 1.0.1, < 3.0)
|
6
6
|
faraday-multipart (~> 1.0, >= 1.0.4)
|
7
7
|
|
@@ -67,7 +67,7 @@ GEM
|
|
67
67
|
rubocop-ast (>= 1.2.0, < 2.0)
|
68
68
|
ruby-progressbar (~> 1.7)
|
69
69
|
unicode-display_width (>= 1.4.0, < 3.0)
|
70
|
-
rubocop-ast (1.
|
70
|
+
rubocop-ast (1.33.0)
|
71
71
|
parser (>= 3.3.1.0)
|
72
72
|
ruby-progressbar (1.13.0)
|
73
73
|
ruby2_keywords (0.0.5)
|
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
|
-
[](https://rubygems.org/gems/composio/versions/0.1.15)
|
10
10
|
[](https://composio.dev)
|
11
11
|
|
12
12
|
</div>
|
@@ -79,7 +79,7 @@ Composio SDK: Equip your agent with high-quality tools and build your real-world
|
|
79
79
|
Add to Gemfile:
|
80
80
|
|
81
81
|
```ruby
|
82
|
-
gem 'composio', '~> 0.1.
|
82
|
+
gem 'composio', '~> 0.1.15'
|
83
83
|
```
|
84
84
|
|
85
85
|
## Getting Started<a id="getting-started"></a>
|
@@ -547,6 +547,7 @@ Retrieve a list of all applications based on query parameters.
|
|
547
547
|
```ruby
|
548
548
|
result = composio.apps.list(
|
549
549
|
category: "string_example",
|
550
|
+
additional_fields: "string_example",
|
550
551
|
include_local: "string_example",
|
551
552
|
)
|
552
553
|
p result
|
@@ -555,6 +556,7 @@ p result
|
|
555
556
|
#### ⚙️ Parameters<a id="⚙️-parameters"></a>
|
556
557
|
|
557
558
|
##### category: `String`<a id="category-string"></a>
|
559
|
+
##### additional_fields: `String`<a id="additional_fields-string"></a>
|
558
560
|
##### include_local: `String`<a id="include_local-string"></a>
|
559
561
|
#### 🔄 Return<a id="🔄-return"></a>
|
560
562
|
|
@@ -811,6 +813,7 @@ result = composio.connections.initiate(
|
|
811
813
|
data: "a",
|
812
814
|
redirect_uri: "string_example",
|
813
815
|
user_uuid: "string_example",
|
816
|
+
entity_id: "string_example",
|
814
817
|
)
|
815
818
|
p result
|
816
819
|
```
|
@@ -821,6 +824,7 @@ p result
|
|
821
824
|
##### data: `String`<a id="data-string"></a>
|
822
825
|
##### redirectUri: `String`<a id="redirecturi-string"></a>
|
823
826
|
##### userUuid: `String`<a id="useruuid-string"></a>
|
827
|
+
##### entityId: `String`<a id="entityid-string"></a>
|
824
828
|
#### 🔄 Return<a id="🔄-return"></a>
|
825
829
|
|
826
830
|
[InitiateConnectionResponse](./lib/composio/models/initiate_connection_response.rb)
|
@@ -466,14 +466,16 @@ module Composio
|
|
466
466
|
# @param data [String]
|
467
467
|
# @param redirect_uri [String]
|
468
468
|
# @param user_uuid [String]
|
469
|
+
# @param entity_id [String]
|
469
470
|
# @param body [InitiateConnectionPayloadDto]
|
470
471
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
471
|
-
def initiate(integration_id:, data: SENTINEL, redirect_uri: SENTINEL, user_uuid: SENTINEL, extra: {})
|
472
|
+
def initiate(integration_id:, data: SENTINEL, redirect_uri: SENTINEL, user_uuid: SENTINEL, entity_id: SENTINEL, extra: {})
|
472
473
|
_body = {}
|
473
474
|
_body[:data] = data if data != SENTINEL
|
474
475
|
_body[:integrationId] = integration_id if integration_id != SENTINEL
|
475
476
|
_body[:redirectUri] = redirect_uri if redirect_uri != SENTINEL
|
476
477
|
_body[:userUuid] = user_uuid if user_uuid != SENTINEL
|
478
|
+
_body[:entityId] = entity_id if entity_id != SENTINEL
|
477
479
|
extra[:initiate_connection_payload_dto] = _body if !_body.empty?
|
478
480
|
api_response = initiate_with_http_info_impl(extra)
|
479
481
|
api_response.data
|
@@ -485,14 +487,16 @@ module Composio
|
|
485
487
|
# @param data [String]
|
486
488
|
# @param redirect_uri [String]
|
487
489
|
# @param user_uuid [String]
|
490
|
+
# @param entity_id [String]
|
488
491
|
# @param body [InitiateConnectionPayloadDto]
|
489
492
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
490
|
-
def initiate_with_http_info(integration_id:, data: SENTINEL, redirect_uri: SENTINEL, user_uuid: SENTINEL, extra: {})
|
493
|
+
def initiate_with_http_info(integration_id:, data: SENTINEL, redirect_uri: SENTINEL, user_uuid: SENTINEL, entity_id: SENTINEL, extra: {})
|
491
494
|
_body = {}
|
492
495
|
_body[:data] = data if data != SENTINEL
|
493
496
|
_body[:integrationId] = integration_id if integration_id != SENTINEL
|
494
497
|
_body[:redirectUri] = redirect_uri if redirect_uri != SENTINEL
|
495
498
|
_body[:userUuid] = user_uuid if user_uuid != SENTINEL
|
499
|
+
_body[:entityId] = entity_id if entity_id != SENTINEL
|
496
500
|
extra[:initiate_connection_payload_dto] = _body if !_body.empty?
|
497
501
|
initiate_with_http_info_impl(extra)
|
498
502
|
end
|
@@ -11,6 +11,9 @@ require 'time'
|
|
11
11
|
|
12
12
|
module Composio
|
13
13
|
class AppInfoResponseDto
|
14
|
+
# The tags of the app
|
15
|
+
attr_accessor :tags
|
16
|
+
|
14
17
|
# The description of the app
|
15
18
|
attr_accessor :description
|
16
19
|
|
@@ -29,6 +32,9 @@ module Composio
|
|
29
32
|
# The categories of the app
|
30
33
|
attr_accessor :categories
|
31
34
|
|
35
|
+
# The authentication schemes of the app
|
36
|
+
attr_accessor :auth_schemes
|
37
|
+
|
32
38
|
# Indicates if the app is enabled
|
33
39
|
attr_accessor :enabled
|
34
40
|
|
@@ -38,12 +44,14 @@ module Composio
|
|
38
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
39
45
|
def self.attribute_map
|
40
46
|
{
|
47
|
+
:'tags' => :'tags',
|
41
48
|
:'description' => :'description',
|
42
49
|
:'app_id' => :'appId',
|
43
50
|
:'key' => :'key',
|
44
51
|
:'name' => :'name',
|
45
52
|
:'logo' => :'logo',
|
46
53
|
:'categories' => :'categories',
|
54
|
+
:'auth_schemes' => :'auth_schemes',
|
47
55
|
:'enabled' => :'enabled',
|
48
56
|
:'no_auth' => :'no_auth'
|
49
57
|
}
|
@@ -57,12 +65,14 @@ module Composio
|
|
57
65
|
# Attribute type mapping.
|
58
66
|
def self.openapi_types
|
59
67
|
{
|
68
|
+
:'tags' => :'Array<Object>',
|
60
69
|
:'description' => :'String',
|
61
70
|
:'app_id' => :'String',
|
62
71
|
:'key' => :'String',
|
63
72
|
:'name' => :'String',
|
64
73
|
:'logo' => :'String',
|
65
74
|
:'categories' => :'Array<Object>',
|
75
|
+
:'auth_schemes' => :'Object',
|
66
76
|
:'enabled' => :'Boolean',
|
67
77
|
:'no_auth' => :'Boolean'
|
68
78
|
}
|
@@ -71,6 +81,7 @@ module Composio
|
|
71
81
|
# List of attributes with nullable: true
|
72
82
|
def self.openapi_nullable
|
73
83
|
Set.new([
|
84
|
+
:'auth_schemes',
|
74
85
|
])
|
75
86
|
end
|
76
87
|
|
@@ -89,6 +100,12 @@ module Composio
|
|
89
100
|
h[k.to_sym] = v
|
90
101
|
}
|
91
102
|
|
103
|
+
if attributes.key?(:'tags')
|
104
|
+
if (value = attributes[:'tags']).is_a?(Array)
|
105
|
+
self.tags = value
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
92
109
|
if attributes.key?(:'description')
|
93
110
|
self.description = attributes[:'description']
|
94
111
|
end
|
@@ -115,6 +132,10 @@ module Composio
|
|
115
132
|
end
|
116
133
|
end
|
117
134
|
|
135
|
+
if attributes.key?(:'auth_schemes')
|
136
|
+
self.auth_schemes = attributes[:'auth_schemes']
|
137
|
+
end
|
138
|
+
|
118
139
|
if attributes.key?(:'enabled')
|
119
140
|
self.enabled = attributes[:'enabled']
|
120
141
|
end
|
@@ -177,12 +198,14 @@ module Composio
|
|
177
198
|
def ==(o)
|
178
199
|
return true if self.equal?(o)
|
179
200
|
self.class == o.class &&
|
201
|
+
tags == o.tags &&
|
180
202
|
description == o.description &&
|
181
203
|
app_id == o.app_id &&
|
182
204
|
key == o.key &&
|
183
205
|
name == o.name &&
|
184
206
|
logo == o.logo &&
|
185
207
|
categories == o.categories &&
|
208
|
+
auth_schemes == o.auth_schemes &&
|
186
209
|
enabled == o.enabled &&
|
187
210
|
no_auth == o.no_auth
|
188
211
|
end
|
@@ -196,7 +219,7 @@ module Composio
|
|
196
219
|
# Calculates hash code according to all attributes.
|
197
220
|
# @return [Integer] Hash code
|
198
221
|
def hash
|
199
|
-
[description, app_id, key, name, logo, categories, enabled, no_auth].hash
|
222
|
+
[tags, description, app_id, key, name, logo, categories, auth_schemes, enabled, no_auth].hash
|
200
223
|
end
|
201
224
|
|
202
225
|
# Builds the object from hash
|
@@ -14,6 +14,9 @@ module Composio
|
|
14
14
|
# Category of the app
|
15
15
|
attr_accessor :category
|
16
16
|
|
17
|
+
# Additional fields to include in the response
|
18
|
+
attr_accessor :additional_fields
|
19
|
+
|
17
20
|
# Whether to include local tools or not
|
18
21
|
attr_accessor :include_local
|
19
22
|
|
@@ -21,6 +24,7 @@ module Composio
|
|
21
24
|
def self.attribute_map
|
22
25
|
{
|
23
26
|
:'category' => :'category',
|
27
|
+
:'additional_fields' => :'additionalFields',
|
24
28
|
:'include_local' => :'includeLocal'
|
25
29
|
}
|
26
30
|
end
|
@@ -34,6 +38,7 @@ module Composio
|
|
34
38
|
def self.openapi_types
|
35
39
|
{
|
36
40
|
:'category' => :'String',
|
41
|
+
:'additional_fields' => :'String',
|
37
42
|
:'include_local' => :'String'
|
38
43
|
}
|
39
44
|
end
|
@@ -63,6 +68,10 @@ module Composio
|
|
63
68
|
self.category = attributes[:'category']
|
64
69
|
end
|
65
70
|
|
71
|
+
if attributes.key?(:'additional_fields')
|
72
|
+
self.additional_fields = attributes[:'additional_fields']
|
73
|
+
end
|
74
|
+
|
66
75
|
if attributes.key?(:'include_local')
|
67
76
|
self.include_local = attributes[:'include_local']
|
68
77
|
end
|
@@ -87,6 +96,7 @@ module Composio
|
|
87
96
|
return true if self.equal?(o)
|
88
97
|
self.class == o.class &&
|
89
98
|
category == o.category &&
|
99
|
+
additional_fields == o.additional_fields &&
|
90
100
|
include_local == o.include_local
|
91
101
|
end
|
92
102
|
|
@@ -99,7 +109,7 @@ module Composio
|
|
99
109
|
# Calculates hash code according to all attributes.
|
100
110
|
# @return [Integer] Hash code
|
101
111
|
def hash
|
102
|
-
[category, include_local].hash
|
112
|
+
[category, additional_fields, include_local].hash
|
103
113
|
end
|
104
114
|
|
105
115
|
# Builds the object from hash
|
@@ -19,13 +19,16 @@ module Composio
|
|
19
19
|
|
20
20
|
attr_accessor :user_uuid
|
21
21
|
|
22
|
+
attr_accessor :entity_id
|
23
|
+
|
22
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
25
|
def self.attribute_map
|
24
26
|
{
|
25
27
|
:'data' => :'data',
|
26
28
|
:'integration_id' => :'integrationId',
|
27
29
|
:'redirect_uri' => :'redirectUri',
|
28
|
-
:'user_uuid' => :'userUuid'
|
30
|
+
:'user_uuid' => :'userUuid',
|
31
|
+
:'entity_id' => :'entityId'
|
29
32
|
}
|
30
33
|
end
|
31
34
|
|
@@ -40,7 +43,8 @@ module Composio
|
|
40
43
|
:'data' => :'String',
|
41
44
|
:'integration_id' => :'String',
|
42
45
|
:'redirect_uri' => :'String',
|
43
|
-
:'user_uuid' => :'String'
|
46
|
+
:'user_uuid' => :'String',
|
47
|
+
:'entity_id' => :'String'
|
44
48
|
}
|
45
49
|
end
|
46
50
|
|
@@ -80,6 +84,10 @@ module Composio
|
|
80
84
|
if attributes.key?(:'user_uuid')
|
81
85
|
self.user_uuid = attributes[:'user_uuid']
|
82
86
|
end
|
87
|
+
|
88
|
+
if attributes.key?(:'entity_id')
|
89
|
+
self.entity_id = attributes[:'entity_id']
|
90
|
+
end
|
83
91
|
end
|
84
92
|
|
85
93
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -142,7 +150,8 @@ module Composio
|
|
142
150
|
data == o.data &&
|
143
151
|
integration_id == o.integration_id &&
|
144
152
|
redirect_uri == o.redirect_uri &&
|
145
|
-
user_uuid == o.user_uuid
|
153
|
+
user_uuid == o.user_uuid &&
|
154
|
+
entity_id == o.entity_id
|
146
155
|
end
|
147
156
|
|
148
157
|
# @see the `==` method
|
@@ -154,7 +163,7 @@ module Composio
|
|
154
163
|
# Calculates hash code according to all attributes.
|
155
164
|
# @return [Integer] Hash code
|
156
165
|
def hash
|
157
|
-
[data, integration_id, redirect_uri, user_uuid].hash
|
166
|
+
[data, integration_id, redirect_uri, user_uuid, entity_id].hash
|
158
167
|
end
|
159
168
|
|
160
169
|
# Builds the object from hash
|
data/lib/composio/version.rb
CHANGED
data/spec/api/apps_api_spec.rb
CHANGED
@@ -67,6 +67,7 @@ describe 'AppsApi' do
|
|
67
67
|
# Retrieve a list of all applications based on query parameters.
|
68
68
|
# @param [Hash] opts the optional parameters
|
69
69
|
# @option opts [String] :category
|
70
|
+
# @option opts [String] :additional_fields
|
70
71
|
# @option opts [String] :include_local
|
71
72
|
# @return [AppListResDTO]
|
72
73
|
describe 'list test' do
|
@@ -19,6 +19,12 @@ describe Composio::AppInfoResponseDto do
|
|
19
19
|
expect(instance).to be_instance_of(Composio::AppInfoResponseDto)
|
20
20
|
end
|
21
21
|
end
|
22
|
+
describe 'test attribute "tags"' do
|
23
|
+
it 'should work' do
|
24
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
22
28
|
describe 'test attribute "description"' do
|
23
29
|
it 'should work' do
|
24
30
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -55,6 +61,12 @@ describe Composio::AppInfoResponseDto do
|
|
55
61
|
end
|
56
62
|
end
|
57
63
|
|
64
|
+
describe 'test attribute "auth_schemes"' do
|
65
|
+
it 'should work' do
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
58
70
|
describe 'test attribute "enabled"' do
|
59
71
|
it 'should work' do
|
60
72
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -25,6 +25,12 @@ describe Composio::AppQueryDTO do
|
|
25
25
|
end
|
26
26
|
end
|
27
27
|
|
28
|
+
describe 'test attribute "additional_fields"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
28
34
|
describe 'test attribute "include_local"' do
|
29
35
|
it 'should work' do
|
30
36
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -43,4 +43,10 @@ describe Composio::InitiateConnectionPayloadDto do
|
|
43
43
|
end
|
44
44
|
end
|
45
45
|
|
46
|
+
describe 'test attribute "entity_id"' do
|
47
|
+
it 'should work' do
|
48
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
46
52
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: composio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Konfig
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-10-
|
11
|
+
date: 2024-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|