composio 0.1.14 → 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
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
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>
|
@@ -813,6 +813,7 @@ result = composio.connections.initiate(
|
|
813
813
|
data: "a",
|
814
814
|
redirect_uri: "string_example",
|
815
815
|
user_uuid: "string_example",
|
816
|
+
entity_id: "string_example",
|
816
817
|
)
|
817
818
|
p result
|
818
819
|
```
|
@@ -823,6 +824,7 @@ p result
|
|
823
824
|
##### data: `String`<a id="data-string"></a>
|
824
825
|
##### redirectUri: `String`<a id="redirecturi-string"></a>
|
825
826
|
##### userUuid: `String`<a id="useruuid-string"></a>
|
827
|
+
##### entityId: `String`<a id="entityid-string"></a>
|
826
828
|
#### 🔄 Return<a id="🔄-return"></a>
|
827
829
|
|
828
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
|
@@ -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
@@ -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
|