composio 0.1.4 → 0.1.5
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 +6 -2
- data/lib/composio/api/triggers_api.rb +6 -2
- data/lib/composio/models/enable_trigger_body_dto.rb +14 -4
- data/lib/composio/version.rb +1 -1
- 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: 40dd6ba64a20420cf838ed5d54a53b7000c597bac3efdb277e265620d9711656
|
4
|
+
data.tar.gz: 9e07696f4afe02d5d7747f443a8ecaca21d944af0690f4a914650cf3cc76b89d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4be5aa561c92c8e2f5d2a44a8f8cb8b318f2fa785e118134c7fe55ad8676a51877bddc21a0fcd14076f641589cbad70510b12576396761dd140f27628e606e11
|
7
|
+
data.tar.gz: c989c380614684d830e112188327bdcbda782499b7a17cf1fc3ef3410cafbd4333cdc62a134c19f415f4f7f6a6932ab0f309f3c100e5e4ae07f0782ee6104cea
|
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.5)
|
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
|
-
[](https://rubygems.org/gems/composio/versions/0.1.5)
|
10
10
|
[](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.5'
|
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
|
@@ -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
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.5
|
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-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|