composio 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e1c2b5564c6e76a2e1b6b905e9c3d31a56c017590f1cf0c069bdb8c41d3d5a1b
4
- data.tar.gz: 7342b73ad7d92f68a6945da4120b374901def43d824ea1d8855a7d1bcf9052a3
3
+ metadata.gz: 40dd6ba64a20420cf838ed5d54a53b7000c597bac3efdb277e265620d9711656
4
+ data.tar.gz: 9e07696f4afe02d5d7747f443a8ecaca21d944af0690f4a914650cf3cc76b89d
5
5
  SHA512:
6
- metadata.gz: 7dd022a28f47742401799ad4ce7f7614f447184d034ee302b7ab5c83215e0337ebd8e7c4e47f6423b1be2e1e8504ab7182171f9ae5e0a47f1bbaf32f7ea49f38
7
- data.tar.gz: 591c45e7a0533ff498dcd0529f9c9b59d0f4fbf9517614d28c8347b76c7ad73cc6a126dde5f61d0dfd0c5cc863b5a79e9b2b7c85afa9490a73b193cca70a9633
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)
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.9)
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.2)
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.5.0)
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.4-blue)](https://rubygems.org/gems/composio/versions/0.1.4)
9
+ [![npm](https://img.shields.io/badge/gem-v0.1.5-blue)](https://rubygems.org/gems/composio/versions/0.1.5)
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.4'
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
@@ -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.4'
10
+ VERSION = '0.1.5'
11
11
  end
@@ -25,4 +25,10 @@ describe Composio::EnableTriggerBodyDTO do
25
25
  end
26
26
  end
27
27
 
28
+ describe 'test attribute "verify_host"' do
29
+ it 'should work' do
30
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
+ end
32
+ end
33
+
28
34
  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
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-04 00:00:00.000000000 Z
11
+ date: 2024-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday