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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fc35b76a804bb21c1e7f5f98f777ad19c8ae7681f79d870ecfd2701cee10b750
4
- data.tar.gz: 8f54c026c97c1147e563e52c3ed4a552212c668327d21793b60222d1692842aa
3
+ metadata.gz: 17348a4555cf03d3775601dc39fb61aa4189f28b1ecf248c76d179d659d1aa0c
4
+ data.tar.gz: ef93d6594b166353ac9bfcf7711377a0ff33e54b235046d67026cf5a6d15193a
5
5
  SHA512:
6
- metadata.gz: aec68da2ae9410b5c0b6f064997900a004bca768e85392fb81225fadee3828b34455e97a05ac2ae61cf7533d9dfbd34c9ef9cd78a6fc1b2e2dc366f9b37b2005
7
- data.tar.gz: 56c95422beea272a845b17de5cbfa3491644b2cf4d39476358721b5fe28ccdc4ccecf484dd952e0d30b18dd8e0ac288a20f4efce922046dbbabd10570cfa7530
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.0)
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.10.1)
19
- faraday-net_http (>= 2.0, < 3.2)
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.1.1)
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
- [![npm](https://img.shields.io/badge/gem-v0.1.0-blue)](https://rubygems.org/gems/composio/versions/0.1.0)
9
+ [![npm](https://img.shields.io/badge/gem-v0.1.1-blue)](https://rubygems.org/gems/composio/versions/0.1.1)
10
10
  [![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](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.0'
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
@@ -7,5 +7,5 @@ The version of the OpenAPI document: 1.0.0
7
7
  =end
8
8
 
9
9
  module Composio
10
- VERSION = '0.1.0'
10
+ VERSION = '0.1.1'
11
11
  end
@@ -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
@@ -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.0
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-25 00:00:00.000000000 Z
11
+ date: 2024-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday