composio 0.1.8 → 0.1.9

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: 953aa316be770c444ed3e7225b3ce1ce3ab7bb12522d23895c5f5395dd120479
4
- data.tar.gz: 2238ce5295754b4004e39507bc11f0ec7e31b939b02fe1cd0aedacb0ab5af664
3
+ metadata.gz: 12bca9fcaf3ed64d8a9fc4ae997d474f9512a6342f635813652d56fed502cd70
4
+ data.tar.gz: a1ed487a3dc4cdc2d8612a0c38145f73321610469b07fce41ccbcfa3e2e9ec02
5
5
  SHA512:
6
- metadata.gz: 9151c65b1ec793c2d1e055f86c3c8c7a21f1f1b5472b692d65867d1de779e033ba2b55003ba4206b39c4e4ee3205f016666a62ac53bf7d03e25d494e6e27345a
7
- data.tar.gz: b352e4ec843c6f7add2e991b4074ad63010e1108a60d6016b499e0f95f3bd91c3eedb8ca7bb679cbb7189a4059c3b3a790c2c8b3ff4c046bd62a0461cbf0ec49
6
+ metadata.gz: 66f00bd57d5c0684e623f86ab625f985639a49780d69c9139fc066a0f056424ee334ce50573bb971315a898fc83f14e6eeefe09ba7bb36d38ec2c67d9fc43b7b
7
+ data.tar.gz: e123dc3761333a513fd6a955e6d8b72ac6c2ac45dc738afdbd51d154d5c1f20f1778bafedd62164a71f0c67f174ca0540243895c7248ecb09c05b5abb3e370e1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- composio (0.1.8)
4
+ composio (0.1.9)
5
5
  faraday (>= 1.0.1, < 3.0)
6
6
  faraday-multipart (~> 1.0, >= 1.0.4)
7
7
 
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.8-blue)](https://rubygems.org/gems/composio/versions/0.1.8)
9
+ [![npm](https://img.shields.io/badge/gem-v0.1.9-blue)](https://rubygems.org/gems/composio/versions/0.1.9)
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.8'
81
+ gem 'composio', '~> 0.1.9'
82
82
  ```
83
83
 
84
84
  ## Getting Started<a id="getting-started"></a>
@@ -209,6 +209,17 @@ result = composio.actions.execute(
209
209
  entity_id: "string_example",
210
210
  endpoint: "string_example",
211
211
  input: {},
212
+ auth_config: {
213
+ "parameters" => [
214
+ {
215
+ "name" => "name_example",
216
+ "_in" => "_in_example",
217
+ "value" => "value_example",
218
+ }
219
+ ],
220
+ "base_url" => "base_url_example",
221
+ "body" => {},
222
+ },
212
223
  text: "string_example",
213
224
  )
214
225
  p result
@@ -222,6 +233,7 @@ p result
222
233
  ##### entityId: `String`<a id="entityid-string"></a>
223
234
  ##### endpoint: `String`<a id="endpoint-string"></a>
224
235
  ##### input: `Object`<a id="input-object"></a>
236
+ ##### authConfig: [`GetConnectionInfoResponseDTO`](./lib/composio/models/get_connection_info_response_dto.rb)<a id="authconfig-getconnectioninforesponsedtolibcomposiomodelsget_connection_info_response_dtorb"></a>
225
237
  ##### text: `String`<a id="text-string"></a>
226
238
  #### 🔄 Return<a id="🔄-return"></a>
227
239
 
@@ -26,16 +26,18 @@ module Composio
26
26
  # @param entity_id [String]
27
27
  # @param endpoint [String]
28
28
  # @param input [Object]
29
+ # @param auth_config [GetConnectionInfoResponseDTO]
29
30
  # @param text [String]
30
31
  # @param body [ActionExecutionReqDTO]
31
32
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
32
- def execute(action_id:, connected_account_id: SENTINEL, app_name: SENTINEL, entity_id: SENTINEL, endpoint: SENTINEL, input: SENTINEL, text: SENTINEL, extra: {})
33
+ def execute(action_id:, connected_account_id: SENTINEL, app_name: SENTINEL, entity_id: SENTINEL, endpoint: SENTINEL, input: SENTINEL, auth_config: SENTINEL, text: SENTINEL, extra: {})
33
34
  _body = {}
34
35
  _body[:connectedAccountId] = connected_account_id if connected_account_id != SENTINEL
35
36
  _body[:appName] = app_name if app_name != SENTINEL
36
37
  _body[:entityId] = entity_id if entity_id != SENTINEL
37
38
  _body[:endpoint] = endpoint if endpoint != SENTINEL
38
39
  _body[:input] = input if input != SENTINEL
40
+ _body[:authConfig] = auth_config if auth_config != SENTINEL
39
41
  _body[:text] = text if text != SENTINEL
40
42
  extra[:action_execution_req_dto] = _body if !_body.empty?
41
43
  api_response = execute_with_http_info_impl(action_id, extra)
@@ -52,16 +54,18 @@ module Composio
52
54
  # @param entity_id [String]
53
55
  # @param endpoint [String]
54
56
  # @param input [Object]
57
+ # @param auth_config [GetConnectionInfoResponseDTO]
55
58
  # @param text [String]
56
59
  # @param body [ActionExecutionReqDTO]
57
60
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
58
- def execute_with_http_info(action_id:, connected_account_id: SENTINEL, app_name: SENTINEL, entity_id: SENTINEL, endpoint: SENTINEL, input: SENTINEL, text: SENTINEL, extra: {})
61
+ def execute_with_http_info(action_id:, connected_account_id: SENTINEL, app_name: SENTINEL, entity_id: SENTINEL, endpoint: SENTINEL, input: SENTINEL, auth_config: SENTINEL, text: SENTINEL, extra: {})
59
62
  _body = {}
60
63
  _body[:connectedAccountId] = connected_account_id if connected_account_id != SENTINEL
61
64
  _body[:appName] = app_name if app_name != SENTINEL
62
65
  _body[:entityId] = entity_id if entity_id != SENTINEL
63
66
  _body[:endpoint] = endpoint if endpoint != SENTINEL
64
67
  _body[:input] = input if input != SENTINEL
68
+ _body[:authConfig] = auth_config if auth_config != SENTINEL
65
69
  _body[:text] = text if text != SENTINEL
66
70
  extra[:action_execution_req_dto] = _body if !_body.empty?
67
71
  execute_with_http_info_impl(action_id, extra)
@@ -21,6 +21,8 @@ module Composio
21
21
 
22
22
  attr_accessor :input
23
23
 
24
+ attr_accessor :auth_config
25
+
24
26
  attr_accessor :text
25
27
 
26
28
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -31,6 +33,7 @@ module Composio
31
33
  :'entity_id' => :'entityId',
32
34
  :'endpoint' => :'endpoint',
33
35
  :'input' => :'input',
36
+ :'auth_config' => :'authConfig',
34
37
  :'text' => :'text'
35
38
  }
36
39
  end
@@ -48,6 +51,7 @@ module Composio
48
51
  :'entity_id' => :'String',
49
52
  :'endpoint' => :'String',
50
53
  :'input' => :'Object',
54
+ :'auth_config' => :'GetConnectionInfoResponseDTO',
51
55
  :'text' => :'String'
52
56
  }
53
57
  end
@@ -93,6 +97,10 @@ module Composio
93
97
  self.input = attributes[:'input']
94
98
  end
95
99
 
100
+ if attributes.key?(:'auth_config')
101
+ self.auth_config = attributes[:'auth_config']
102
+ end
103
+
96
104
  if attributes.key?(:'text')
97
105
  self.text = attributes[:'text']
98
106
  end
@@ -121,6 +129,7 @@ module Composio
121
129
  entity_id == o.entity_id &&
122
130
  endpoint == o.endpoint &&
123
131
  input == o.input &&
132
+ auth_config == o.auth_config &&
124
133
  text == o.text
125
134
  end
126
135
 
@@ -133,7 +142,7 @@ module Composio
133
142
  # Calculates hash code according to all attributes.
134
143
  # @return [Integer] Hash code
135
144
  def hash
136
- [connected_account_id, app_name, entity_id, endpoint, input, text].hash
145
+ [connected_account_id, app_name, entity_id, endpoint, input, auth_config, text].hash
137
146
  end
138
147
 
139
148
  # 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.8'
10
+ VERSION = '0.1.9'
11
11
  end
@@ -49,6 +49,12 @@ describe Composio::ActionExecutionReqDTO do
49
49
  end
50
50
  end
51
51
 
52
+ describe 'test attribute "auth_config"' do
53
+ it 'should work' do
54
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
+ end
56
+ end
57
+
52
58
  describe 'test attribute "text"' do
53
59
  it 'should work' do
54
60
  # 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.8
4
+ version: 0.1.9
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-09 00:00:00.000000000 Z
11
+ date: 2024-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday