composio 0.1.4 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -4
- data/README.md +6 -2
- data/lib/composio/api/triggers_api.rb +6 -2
- data/lib/composio/models/connected_account_response_dto.rb +29 -1
- data/lib/composio/models/enable_trigger_body_dto.rb +14 -4
- data/lib/composio/version.rb +1 -1
- data/spec/models/connected_account_response_dto_spec.rb +12 -0
- data/spec/models/enable_trigger_body_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: 72b585b874b3025021e8aead8165bcd81ba79e765c9304a41401da27a2f641d5
|
4
|
+
data.tar.gz: a0d05fe0432098875ff52bb39840a4b421472c8a07067754016c1501898e6076
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a386999bbd71b41ef715c89fdc39328ef75d454691d8d105b1ffb11d48c7ce3dfba01dabc74f6fdc39db2ab87e51190a70a9054720301283acb57e6ea60118b8
|
7
|
+
data.tar.gz: 4c8fecdcd3c203f7d14430333c56310b8638537f46f4dc944db2da11be26ee8dbf76eef672c41dd619676def1b311856fdfe3f47f434bf1edaa76d3307473aea
|
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.6)
|
5
5
|
faraday (>= 1.0.1, < 3.0)
|
6
6
|
faraday-multipart (~> 1.0, >= 1.0.4)
|
7
7
|
|
@@ -42,7 +42,7 @@ GEM
|
|
42
42
|
rainbow (3.1.1)
|
43
43
|
rake (13.0.6)
|
44
44
|
regexp_parser (2.9.2)
|
45
|
-
reline (0.5.
|
45
|
+
reline (0.5.10)
|
46
46
|
io-console (~> 0.5)
|
47
47
|
rexml (3.3.7)
|
48
48
|
rspec (3.13.0)
|
@@ -51,7 +51,7 @@ GEM
|
|
51
51
|
rspec-mocks (~> 3.13.0)
|
52
52
|
rspec-core (3.13.1)
|
53
53
|
rspec-support (~> 3.13.0)
|
54
|
-
rspec-expectations (3.13.
|
54
|
+
rspec-expectations (3.13.3)
|
55
55
|
diff-lcs (>= 1.2.0, < 2.0)
|
56
56
|
rspec-support (~> 3.13.0)
|
57
57
|
rspec-mocks (3.13.1)
|
@@ -71,7 +71,7 @@ GEM
|
|
71
71
|
parser (>= 3.3.1.0)
|
72
72
|
ruby-progressbar (1.13.0)
|
73
73
|
ruby2_keywords (0.0.5)
|
74
|
-
unicode-display_width (2.
|
74
|
+
unicode-display_width (2.6.0)
|
75
75
|
|
76
76
|
PLATFORMS
|
77
77
|
x86_64-linux
|
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.6-blue)](https://rubygems.org/gems/composio/versions/0.1.6)
|
10
10
|
[![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](https://composio.dev)
|
11
11
|
|
12
12
|
</div>
|
@@ -60,7 +60,7 @@ Composio SDK: Equip your agent with high-quality tools and build your real-world
|
|
60
60
|
Add to Gemfile:
|
61
61
|
|
62
62
|
```ruby
|
63
|
-
gem 'composio', '~> 0.1.
|
63
|
+
gem 'composio', '~> 0.1.6'
|
64
64
|
```
|
65
65
|
|
66
66
|
## Getting Started<a id="getting-started"></a>
|
@@ -921,6 +921,7 @@ result = composio.triggers.enable(
|
|
921
921
|
trigger_config: {},
|
922
922
|
connected_account_id: "'+j>6",
|
923
923
|
trigger_name: "'+j>6",
|
924
|
+
verify_host: "string_example",
|
924
925
|
)
|
925
926
|
p result
|
926
927
|
```
|
@@ -932,6 +933,9 @@ The trigger configuration
|
|
932
933
|
|
933
934
|
##### connected_account_id: `String`<a id="connected_account_id-string"></a>
|
934
935
|
##### trigger_name: `String`<a id="trigger_name-string"></a>
|
936
|
+
##### verifyHost: `String`<a id="verifyhost-string"></a>
|
937
|
+
The verify host
|
938
|
+
|
935
939
|
#### 🔄 Return<a id="🔄-return"></a>
|
936
940
|
|
937
941
|
[TriggerResponseDTO](./lib/composio/models/trigger_response_dto.rb)
|
@@ -203,11 +203,13 @@ module Composio
|
|
203
203
|
# @param trigger_config [Object] The trigger configuration
|
204
204
|
# @param connected_account_id [String]
|
205
205
|
# @param trigger_name [String]
|
206
|
+
# @param verify_host [String] The verify host
|
206
207
|
# @param body [EnableTriggerBodyDTO]
|
207
208
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
208
|
-
def enable(trigger_config:, connected_account_id:, trigger_name:, extra: {})
|
209
|
+
def enable(trigger_config:, connected_account_id:, trigger_name:, verify_host: SENTINEL, extra: {})
|
209
210
|
_body = {}
|
210
211
|
_body[:triggerConfig] = trigger_config if trigger_config != SENTINEL
|
212
|
+
_body[:verifyHost] = verify_host if verify_host != SENTINEL
|
211
213
|
extra[:enable_trigger_body_dto] = _body if !_body.empty?
|
212
214
|
api_response = enable_with_http_info_impl(connected_account_id, trigger_name, extra)
|
213
215
|
api_response.data
|
@@ -220,11 +222,13 @@ module Composio
|
|
220
222
|
# @param trigger_config [Object] The trigger configuration
|
221
223
|
# @param connected_account_id [String]
|
222
224
|
# @param trigger_name [String]
|
225
|
+
# @param verify_host [String] The verify host
|
223
226
|
# @param body [EnableTriggerBodyDTO]
|
224
227
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
225
|
-
def enable_with_http_info(trigger_config:, connected_account_id:, trigger_name:, extra: {})
|
228
|
+
def enable_with_http_info(trigger_config:, connected_account_id:, trigger_name:, verify_host: SENTINEL, extra: {})
|
226
229
|
_body = {}
|
227
230
|
_body[:triggerConfig] = trigger_config if trigger_config != SENTINEL
|
231
|
+
_body[:verifyHost] = verify_host if verify_host != SENTINEL
|
228
232
|
extra[:enable_trigger_body_dto] = _body if !_body.empty?
|
229
233
|
enable_with_http_info_impl(connected_account_id, trigger_name, extra)
|
230
234
|
end
|
@@ -23,6 +23,10 @@ module Composio
|
|
23
23
|
|
24
24
|
attr_accessor :client_unique_user_id
|
25
25
|
|
26
|
+
attr_accessor :app_name
|
27
|
+
|
28
|
+
attr_accessor :entity_id
|
29
|
+
|
26
30
|
attr_accessor :status
|
27
31
|
|
28
32
|
attr_accessor :enabled
|
@@ -40,6 +44,8 @@ module Composio
|
|
40
44
|
:'is_disabled' => :'isDisabled',
|
41
45
|
:'id' => :'id',
|
42
46
|
:'client_unique_user_id' => :'clientUniqueUserId',
|
47
|
+
:'app_name' => :'appName',
|
48
|
+
:'entity_id' => :'entityId',
|
43
49
|
:'status' => :'status',
|
44
50
|
:'enabled' => :'enabled',
|
45
51
|
:'created_at' => :'createdAt',
|
@@ -61,6 +67,8 @@ module Composio
|
|
61
67
|
:'is_disabled' => :'Boolean',
|
62
68
|
:'id' => :'String',
|
63
69
|
:'client_unique_user_id' => :'String',
|
70
|
+
:'app_name' => :'String',
|
71
|
+
:'entity_id' => :'String',
|
64
72
|
:'status' => :'String',
|
65
73
|
:'enabled' => :'Boolean',
|
66
74
|
:'created_at' => :'String',
|
@@ -113,6 +121,14 @@ module Composio
|
|
113
121
|
self.client_unique_user_id = attributes[:'client_unique_user_id']
|
114
122
|
end
|
115
123
|
|
124
|
+
if attributes.key?(:'app_name')
|
125
|
+
self.app_name = attributes[:'app_name']
|
126
|
+
end
|
127
|
+
|
128
|
+
if attributes.key?(:'entity_id')
|
129
|
+
self.entity_id = attributes[:'entity_id']
|
130
|
+
end
|
131
|
+
|
116
132
|
if attributes.key?(:'status')
|
117
133
|
self.status = attributes[:'status']
|
118
134
|
end
|
@@ -150,6 +166,14 @@ module Composio
|
|
150
166
|
invalid_properties.push('invalid value for "client_unique_user_id", client_unique_user_id cannot be nil.')
|
151
167
|
end
|
152
168
|
|
169
|
+
if @app_name.nil?
|
170
|
+
invalid_properties.push('invalid value for "app_name", app_name cannot be nil.')
|
171
|
+
end
|
172
|
+
|
173
|
+
if @entity_id.nil?
|
174
|
+
invalid_properties.push('invalid value for "entity_id", entity_id cannot be nil.')
|
175
|
+
end
|
176
|
+
|
153
177
|
if @status.nil?
|
154
178
|
invalid_properties.push('invalid value for "status", status cannot be nil.')
|
155
179
|
end
|
@@ -172,6 +196,8 @@ module Composio
|
|
172
196
|
return false if @app_unique_id.nil?
|
173
197
|
return false if @id.nil?
|
174
198
|
return false if @client_unique_user_id.nil?
|
199
|
+
return false if @app_name.nil?
|
200
|
+
return false if @entity_id.nil?
|
175
201
|
return false if @status.nil?
|
176
202
|
return false if @created_at.nil?
|
177
203
|
return false if @updated_at.nil?
|
@@ -189,6 +215,8 @@ module Composio
|
|
189
215
|
is_disabled == o.is_disabled &&
|
190
216
|
id == o.id &&
|
191
217
|
client_unique_user_id == o.client_unique_user_id &&
|
218
|
+
app_name == o.app_name &&
|
219
|
+
entity_id == o.entity_id &&
|
192
220
|
status == o.status &&
|
193
221
|
enabled == o.enabled &&
|
194
222
|
created_at == o.created_at &&
|
@@ -204,7 +232,7 @@ module Composio
|
|
204
232
|
# Calculates hash code according to all attributes.
|
205
233
|
# @return [Integer] Hash code
|
206
234
|
def hash
|
207
|
-
[integration_id, app_unique_id, meta, is_disabled, id, client_unique_user_id, status, enabled, created_at, updated_at].hash
|
235
|
+
[integration_id, app_unique_id, meta, is_disabled, id, client_unique_user_id, app_name, entity_id, status, enabled, created_at, updated_at].hash
|
208
236
|
end
|
209
237
|
|
210
238
|
# Builds the object from hash
|
@@ -14,10 +14,14 @@ module Composio
|
|
14
14
|
# The trigger configuration
|
15
15
|
attr_accessor :trigger_config
|
16
16
|
|
17
|
+
# The verify host
|
18
|
+
attr_accessor :verify_host
|
19
|
+
|
17
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
18
21
|
def self.attribute_map
|
19
22
|
{
|
20
|
-
:'trigger_config' => :'triggerConfig'
|
23
|
+
:'trigger_config' => :'triggerConfig',
|
24
|
+
:'verify_host' => :'verifyHost'
|
21
25
|
}
|
22
26
|
end
|
23
27
|
|
@@ -29,7 +33,8 @@ module Composio
|
|
29
33
|
# Attribute type mapping.
|
30
34
|
def self.openapi_types
|
31
35
|
{
|
32
|
-
:'trigger_config' => :'Object'
|
36
|
+
:'trigger_config' => :'Object',
|
37
|
+
:'verify_host' => :'String'
|
33
38
|
}
|
34
39
|
end
|
35
40
|
|
@@ -57,6 +62,10 @@ module Composio
|
|
57
62
|
if attributes.key?(:'trigger_config')
|
58
63
|
self.trigger_config = attributes[:'trigger_config']
|
59
64
|
end
|
65
|
+
|
66
|
+
if attributes.key?(:'verify_host')
|
67
|
+
self.verify_host = attributes[:'verify_host']
|
68
|
+
end
|
60
69
|
end
|
61
70
|
|
62
71
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -82,7 +91,8 @@ module Composio
|
|
82
91
|
def ==(o)
|
83
92
|
return true if self.equal?(o)
|
84
93
|
self.class == o.class &&
|
85
|
-
trigger_config == o.trigger_config
|
94
|
+
trigger_config == o.trigger_config &&
|
95
|
+
verify_host == o.verify_host
|
86
96
|
end
|
87
97
|
|
88
98
|
# @see the `==` method
|
@@ -94,7 +104,7 @@ module Composio
|
|
94
104
|
# Calculates hash code according to all attributes.
|
95
105
|
# @return [Integer] Hash code
|
96
106
|
def hash
|
97
|
-
[trigger_config].hash
|
107
|
+
[trigger_config, verify_host].hash
|
98
108
|
end
|
99
109
|
|
100
110
|
# Builds the object from hash
|
data/lib/composio/version.rb
CHANGED
@@ -55,6 +55,18 @@ describe Composio::ConnectedAccountResponseDTO do
|
|
55
55
|
end
|
56
56
|
end
|
57
57
|
|
58
|
+
describe 'test attribute "app_name"' do
|
59
|
+
it 'should work' do
|
60
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
describe 'test attribute "entity_id"' 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 "status"' do
|
59
71
|
it 'should work' do
|
60
72
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
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.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Konfig
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-09-
|
11
|
+
date: 2024-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|