composio 0.1.0 → 0.1.1
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 +4 -4
- data/README.md +2 -2
- data/lib/composio/models/initiate_connection_response.rb +13 -4
- data/lib/composio/version.rb +1 -1
- data/spec/models/initiate_connection_response_spec.rb +6 -0
- data/spec/simple_test_spec.rb +8 -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: 17348a4555cf03d3775601dc39fb61aa4189f28b1ecf248c76d179d659d1aa0c
|
|
4
|
+
data.tar.gz: ef93d6594b166353ac9bfcf7711377a0ff33e54b235046d67026cf5a6d15193a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 46cc5d0d0fed380ddc04dcae3e722f36797f2e3806b30f8648b5490b79b1c3289c54cb680537b4cc88b19c524344f390b59760b1fc2d97d3dfb4094cf049a082
|
|
7
|
+
data.tar.gz: d16609a02b937a7599e738db912c65c415aaf9b6700503af3de36a6bef71e31433744b671edf4ef9c9a98da88fdf7461dea93af7589706de4a61faa99b081496
|
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.1)
|
|
5
5
|
faraday (>= 1.0.1, < 3.0)
|
|
6
6
|
faraday-multipart (~> 1.0, >= 1.0.4)
|
|
7
7
|
|
|
@@ -15,12 +15,12 @@ GEM
|
|
|
15
15
|
irb (>= 1.5.0)
|
|
16
16
|
reline (>= 0.3.1)
|
|
17
17
|
diff-lcs (1.5.1)
|
|
18
|
-
faraday (2.
|
|
19
|
-
faraday-net_http (>= 2.0, < 3.
|
|
18
|
+
faraday (2.11.0)
|
|
19
|
+
faraday-net_http (>= 2.0, < 3.4)
|
|
20
20
|
logger
|
|
21
21
|
faraday-multipart (1.0.4)
|
|
22
22
|
multipart-post (~> 2)
|
|
23
|
-
faraday-net_http (3.
|
|
23
|
+
faraday-net_http (3.3.0)
|
|
24
24
|
net-http
|
|
25
25
|
io-console (0.7.2)
|
|
26
26
|
irb (1.6.4)
|
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.1)
|
|
10
10
|
[](https://composio.dev)
|
|
11
11
|
|
|
12
12
|
</div>
|
|
@@ -78,7 +78,7 @@ Composio SDK: Equip your agent with high-quality tools and build your real-world
|
|
|
78
78
|
Add to Gemfile:
|
|
79
79
|
|
|
80
80
|
```ruby
|
|
81
|
-
gem 'composio', '~> 0.1.
|
|
81
|
+
gem 'composio', '~> 0.1.1'
|
|
82
82
|
```
|
|
83
83
|
|
|
84
84
|
## Getting Started<a id="getting-started"></a>
|
|
@@ -15,11 +15,14 @@ module Composio
|
|
|
15
15
|
|
|
16
16
|
attr_accessor :connected_account_id
|
|
17
17
|
|
|
18
|
+
attr_accessor :redirect_url
|
|
19
|
+
|
|
18
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
19
21
|
def self.attribute_map
|
|
20
22
|
{
|
|
21
23
|
:'connection_status' => :'connectionStatus',
|
|
22
|
-
:'connected_account_id' => :'connectedAccountId'
|
|
24
|
+
:'connected_account_id' => :'connectedAccountId',
|
|
25
|
+
:'redirect_url' => :'redirectUrl'
|
|
23
26
|
}
|
|
24
27
|
end
|
|
25
28
|
|
|
@@ -32,7 +35,8 @@ module Composio
|
|
|
32
35
|
def self.openapi_types
|
|
33
36
|
{
|
|
34
37
|
:'connection_status' => :'String',
|
|
35
|
-
:'connected_account_id' => :'String'
|
|
38
|
+
:'connected_account_id' => :'String',
|
|
39
|
+
:'redirect_url' => :'String'
|
|
36
40
|
}
|
|
37
41
|
end
|
|
38
42
|
|
|
@@ -64,6 +68,10 @@ module Composio
|
|
|
64
68
|
if attributes.key?(:'connected_account_id')
|
|
65
69
|
self.connected_account_id = attributes[:'connected_account_id']
|
|
66
70
|
end
|
|
71
|
+
|
|
72
|
+
if attributes.key?(:'redirect_url')
|
|
73
|
+
self.redirect_url = attributes[:'redirect_url']
|
|
74
|
+
end
|
|
67
75
|
end
|
|
68
76
|
|
|
69
77
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -133,7 +141,8 @@ module Composio
|
|
|
133
141
|
return true if self.equal?(o)
|
|
134
142
|
self.class == o.class &&
|
|
135
143
|
connection_status == o.connection_status &&
|
|
136
|
-
connected_account_id == o.connected_account_id
|
|
144
|
+
connected_account_id == o.connected_account_id &&
|
|
145
|
+
redirect_url == o.redirect_url
|
|
137
146
|
end
|
|
138
147
|
|
|
139
148
|
# @see the `==` method
|
|
@@ -145,7 +154,7 @@ module Composio
|
|
|
145
154
|
# Calculates hash code according to all attributes.
|
|
146
155
|
# @return [Integer] Hash code
|
|
147
156
|
def hash
|
|
148
|
-
[connection_status, connected_account_id].hash
|
|
157
|
+
[connection_status, connected_account_id, redirect_url].hash
|
|
149
158
|
end
|
|
150
159
|
|
|
151
160
|
# Builds the object from hash
|
data/lib/composio/version.rb
CHANGED
|
@@ -31,4 +31,10 @@ describe Composio::InitiateConnectionResponse do
|
|
|
31
31
|
end
|
|
32
32
|
end
|
|
33
33
|
|
|
34
|
+
describe 'test attribute "redirect_url"' do
|
|
35
|
+
it 'should work' do
|
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
|
|
34
40
|
end
|
data/spec/simple_test_spec.rb
CHANGED
|
@@ -32,6 +32,14 @@ describe 'GettingStarted' do
|
|
|
32
32
|
expect(result).to_not be_nil
|
|
33
33
|
end
|
|
34
34
|
|
|
35
|
+
it 'api_keys.remove' do
|
|
36
|
+
configuration = Composio::Configuration.new
|
|
37
|
+
configuration.api_key = 'YOUR API KEY'
|
|
38
|
+
configuration.host = 'http://127.0.0.1:4010'
|
|
39
|
+
composio = Composio::Client.new(configuration)
|
|
40
|
+
result = composio.api_keys.remove(id: "test")
|
|
41
|
+
end
|
|
42
|
+
|
|
35
43
|
it 'actions.execute' do
|
|
36
44
|
configuration = Composio::Configuration.new
|
|
37
45
|
configuration.api_key = 'YOUR API KEY'
|
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.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Konfig
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-08-
|
|
11
|
+
date: 2024-08-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|