composio 0.1.12 → 0.1.14

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: ae34134747b921cb4cb7d6f4c2d436138393cd3b9080d901137ddabccaabf227
4
- data.tar.gz: f3260f26259c56f17b083529e7521d641de53f4ad088aca7cf95ad8f69513947
3
+ metadata.gz: 8ea0061615d84f7212bcbff0036fbcc902ac0e02c97554ee7326bf5c7523b6f1
4
+ data.tar.gz: 3acc00300b80b5f497d151a22677a0552b351d263a03e3b620598fb134fe7198
5
5
  SHA512:
6
- metadata.gz: a4c07bf7584a7d3dbec076f76ad38a24c4f1b6a5a9e003006a0a97a1efffac6ece26f4c52990f11e2a3ea25c9d74cc9cb5482ce0758212a47c6797f388df185e
7
- data.tar.gz: afd1765ef6e0d1e1de493e75b0146d6937aee8a905df21fb48795a11cbbe67e7f3e47ddf9f3bd8f5883d003816245ab18ba8d8ada2d45e3632c7ea98800c98c6
6
+ metadata.gz: 855c823d6ad2a362937ee357f369094148bb231a4688a214b50668b12fb78fc71479d30003924ea9382da2d8755e983324a3d1ee31eb213251443b3a51d10e11
7
+ data.tar.gz: d09dc540eaa5c772c3895bf38b8d0fb2ba7f4b12625c661e14b2e818feb2ca97221f9d9c760bdf17dc0437cc04e6a02f161e028cfc0f8a1cdddedfd1a50993ac
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- composio (0.1.12)
4
+ composio (0.1.14)
5
5
  faraday (>= 1.0.1, < 3.0)
6
6
  faraday-multipart (~> 1.0, >= 1.0.4)
7
7
 
@@ -67,7 +67,7 @@ GEM
67
67
  rubocop-ast (>= 1.2.0, < 2.0)
68
68
  ruby-progressbar (~> 1.7)
69
69
  unicode-display_width (>= 1.4.0, < 3.0)
70
- rubocop-ast (1.32.3)
70
+ rubocop-ast (1.33.0)
71
71
  parser (>= 3.3.1.0)
72
72
  ruby-progressbar (1.13.0)
73
73
  ruby2_keywords (0.0.5)
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.12-blue)](https://rubygems.org/gems/composio/versions/0.1.12)
9
+ [![npm](https://img.shields.io/badge/gem-v0.1.14-blue)](https://rubygems.org/gems/composio/versions/0.1.14)
10
10
  [![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](https://composio.dev)
11
11
 
12
12
  </div>
@@ -27,6 +27,7 @@ Composio SDK: Equip your agent with high-quality tools and build your real-world
27
27
  * [`composio.actions.get_action_by_id`](#composioactionsget_action_by_id)
28
28
  * [`composio.actions.get_action_inputs`](#composioactionsget_action_inputs)
29
29
  * [`composio.actions.get_all_actions_based_on_query`](#composioactionsget_all_actions_based_on_query)
30
+ * [`composio.admin.get_sentry_dns`](#composioadminget_sentry_dns)
30
31
  * [`composio.analytics.get`](#composioanalyticsget)
31
32
  * [`composio.analytics.get_top_entities`](#composioanalyticsget_top_entities)
32
33
  * [`composio.apps.delete_open_api_spec_tool`](#composioappsdelete_open_api_spec_tool)
@@ -78,7 +79,7 @@ Composio SDK: Equip your agent with high-quality tools and build your real-world
78
79
  Add to Gemfile:
79
80
 
80
81
  ```ruby
81
- gem 'composio', '~> 0.1.12'
82
+ gem 'composio', '~> 0.1.14'
82
83
  ```
83
84
 
84
85
  ## Getting Started<a id="getting-started"></a>
@@ -380,6 +381,26 @@ p result
380
381
  ---
381
382
 
382
383
 
384
+ ### `composio.admin.get_sentry_dns`<a id="composioadminget_sentry_dns"></a>
385
+
386
+ Jssentry dns
387
+
388
+ #### 🛠️ Usage<a id="🛠️-usage"></a>
389
+
390
+ ```ruby
391
+ result = composio.admin.get_sentry_dns
392
+ p result
393
+ ```
394
+
395
+ #### 🌐 Endpoint<a id="🌐-endpoint"></a>
396
+
397
+ `/api/v1/cli/js-sentry-dns` `GET`
398
+
399
+ [🔙 **Back to Table of Contents**](#table-of-contents)
400
+
401
+ ---
402
+
403
+
383
404
  ### `composio.analytics.get`<a id="composioanalyticsget"></a>
384
405
 
385
406
  Get analytics
@@ -526,6 +547,7 @@ Retrieve a list of all applications based on query parameters.
526
547
  ```ruby
527
548
  result = composio.apps.list(
528
549
  category: "string_example",
550
+ additional_fields: "string_example",
529
551
  include_local: "string_example",
530
552
  )
531
553
  p result
@@ -534,6 +556,7 @@ p result
534
556
  #### ⚙️ Parameters<a id="⚙️-parameters"></a>
535
557
 
536
558
  ##### category: `String`<a id="category-string"></a>
559
+ ##### additional_fields: `String`<a id="additional_fields-string"></a>
537
560
  ##### include_local: `String`<a id="include_local-string"></a>
538
561
  #### 🔄 Return<a id="🔄-return"></a>
539
562
 
@@ -0,0 +1,92 @@
1
+ =begin
2
+ #Composio OpenAPI
3
+
4
+ #Composio SDK: Equip your agent with high-quality tools and build your real-world usecase
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ =end
8
+
9
+ require 'cgi'
10
+
11
+ module Composio
12
+ class AdminApi
13
+ attr_accessor :api_client
14
+
15
+ def initialize(api_client = ApiClient.default)
16
+ @api_client = api_client
17
+ end
18
+
19
+ # Jssentry dns
20
+ #
21
+ # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
22
+ def get_sentry_dns(extra: {})
23
+ api_response = get_sentry_dns_with_http_info_impl(extra)
24
+ api_response.data
25
+ end
26
+
27
+ # Jssentry dns
28
+ #
29
+ # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
30
+ def get_sentry_dns_with_http_info(extra: {})
31
+ get_sentry_dns_with_http_info_impl(extra)
32
+ end
33
+
34
+ # Jssentry dns
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Object]
37
+ private def get_sentry_dns_impl(opts = {})
38
+ data, _status_code, _headers = get_sentry_dns_with_http_info(opts)
39
+ data
40
+ end
41
+
42
+ # Jssentry dns
43
+ # @param [Hash] opts the optional parameters
44
+ # @return [APIResponse] data is Object, status code, headers and response
45
+ private def get_sentry_dns_with_http_info_impl(opts = {})
46
+ if @api_client.config.debugging
47
+ @api_client.config.logger.debug 'Calling API: AdminApi.get_sentry_dns ...'
48
+ end
49
+ # resource path
50
+ local_var_path = '/api/v1/cli/js-sentry-dns'
51
+
52
+ # query parameters
53
+ query_params = opts[:query_params] || {}
54
+
55
+ # header parameters
56
+ header_params = opts[:header_params] || {}
57
+ # HTTP header 'Accept' (if needed)
58
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
59
+
60
+ # form parameters
61
+ form_params = opts[:form_params] || {}
62
+
63
+ # http body (model)
64
+ post_body = opts[:debug_body]
65
+
66
+ # return_type
67
+ return_type = opts[:debug_return_type] || 'Object'
68
+
69
+ # auth_names
70
+ auth_names = opts[:debug_auth_names] || ['api_key']
71
+
72
+ new_options = opts.merge(
73
+ :operation => :"AdminApi.get_sentry_dns",
74
+ :header_params => header_params,
75
+ :query_params => query_params,
76
+ :form_params => form_params,
77
+ :body => post_body,
78
+ :auth_names => auth_names,
79
+ :return_type => return_type
80
+ )
81
+
82
+ data, status_code, headers, response = @api_client.call_api(:GET, local_var_path, new_options)
83
+ if @api_client.config.debugging
84
+ @api_client.config.logger.debug "API called: AdminApi#get_sentry_dns\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
85
+ end
86
+ APIResponse::new(data, status_code, headers, response)
87
+ end
88
+ end
89
+
90
+ # top-level client access to avoid having the user to insantiate their own API instances
91
+ Admin = AdminApi::new
92
+ end
@@ -11,6 +11,9 @@ require 'time'
11
11
 
12
12
  module Composio
13
13
  class AppInfoResponseDto
14
+ # The tags of the app
15
+ attr_accessor :tags
16
+
14
17
  # The description of the app
15
18
  attr_accessor :description
16
19
 
@@ -29,6 +32,9 @@ module Composio
29
32
  # The categories of the app
30
33
  attr_accessor :categories
31
34
 
35
+ # The authentication schemes of the app
36
+ attr_accessor :auth_schemes
37
+
32
38
  # Indicates if the app is enabled
33
39
  attr_accessor :enabled
34
40
 
@@ -38,12 +44,14 @@ module Composio
38
44
  # Attribute mapping from ruby-style variable name to JSON key.
39
45
  def self.attribute_map
40
46
  {
47
+ :'tags' => :'tags',
41
48
  :'description' => :'description',
42
49
  :'app_id' => :'appId',
43
50
  :'key' => :'key',
44
51
  :'name' => :'name',
45
52
  :'logo' => :'logo',
46
53
  :'categories' => :'categories',
54
+ :'auth_schemes' => :'auth_schemes',
47
55
  :'enabled' => :'enabled',
48
56
  :'no_auth' => :'no_auth'
49
57
  }
@@ -57,12 +65,14 @@ module Composio
57
65
  # Attribute type mapping.
58
66
  def self.openapi_types
59
67
  {
68
+ :'tags' => :'Array<Object>',
60
69
  :'description' => :'String',
61
70
  :'app_id' => :'String',
62
71
  :'key' => :'String',
63
72
  :'name' => :'String',
64
73
  :'logo' => :'String',
65
74
  :'categories' => :'Array<Object>',
75
+ :'auth_schemes' => :'Object',
66
76
  :'enabled' => :'Boolean',
67
77
  :'no_auth' => :'Boolean'
68
78
  }
@@ -71,6 +81,7 @@ module Composio
71
81
  # List of attributes with nullable: true
72
82
  def self.openapi_nullable
73
83
  Set.new([
84
+ :'auth_schemes',
74
85
  ])
75
86
  end
76
87
 
@@ -89,6 +100,12 @@ module Composio
89
100
  h[k.to_sym] = v
90
101
  }
91
102
 
103
+ if attributes.key?(:'tags')
104
+ if (value = attributes[:'tags']).is_a?(Array)
105
+ self.tags = value
106
+ end
107
+ end
108
+
92
109
  if attributes.key?(:'description')
93
110
  self.description = attributes[:'description']
94
111
  end
@@ -115,6 +132,10 @@ module Composio
115
132
  end
116
133
  end
117
134
 
135
+ if attributes.key?(:'auth_schemes')
136
+ self.auth_schemes = attributes[:'auth_schemes']
137
+ end
138
+
118
139
  if attributes.key?(:'enabled')
119
140
  self.enabled = attributes[:'enabled']
120
141
  end
@@ -177,12 +198,14 @@ module Composio
177
198
  def ==(o)
178
199
  return true if self.equal?(o)
179
200
  self.class == o.class &&
201
+ tags == o.tags &&
180
202
  description == o.description &&
181
203
  app_id == o.app_id &&
182
204
  key == o.key &&
183
205
  name == o.name &&
184
206
  logo == o.logo &&
185
207
  categories == o.categories &&
208
+ auth_schemes == o.auth_schemes &&
186
209
  enabled == o.enabled &&
187
210
  no_auth == o.no_auth
188
211
  end
@@ -196,7 +219,7 @@ module Composio
196
219
  # Calculates hash code according to all attributes.
197
220
  # @return [Integer] Hash code
198
221
  def hash
199
- [description, app_id, key, name, logo, categories, enabled, no_auth].hash
222
+ [tags, description, app_id, key, name, logo, categories, auth_schemes, enabled, no_auth].hash
200
223
  end
201
224
 
202
225
  # Builds the object from hash
@@ -14,6 +14,9 @@ module Composio
14
14
  # Category of the app
15
15
  attr_accessor :category
16
16
 
17
+ # Additional fields to include in the response
18
+ attr_accessor :additional_fields
19
+
17
20
  # Whether to include local tools or not
18
21
  attr_accessor :include_local
19
22
 
@@ -21,6 +24,7 @@ module Composio
21
24
  def self.attribute_map
22
25
  {
23
26
  :'category' => :'category',
27
+ :'additional_fields' => :'additionalFields',
24
28
  :'include_local' => :'includeLocal'
25
29
  }
26
30
  end
@@ -34,6 +38,7 @@ module Composio
34
38
  def self.openapi_types
35
39
  {
36
40
  :'category' => :'String',
41
+ :'additional_fields' => :'String',
37
42
  :'include_local' => :'String'
38
43
  }
39
44
  end
@@ -63,6 +68,10 @@ module Composio
63
68
  self.category = attributes[:'category']
64
69
  end
65
70
 
71
+ if attributes.key?(:'additional_fields')
72
+ self.additional_fields = attributes[:'additional_fields']
73
+ end
74
+
66
75
  if attributes.key?(:'include_local')
67
76
  self.include_local = attributes[:'include_local']
68
77
  end
@@ -87,6 +96,7 @@ module Composio
87
96
  return true if self.equal?(o)
88
97
  self.class == o.class &&
89
98
  category == o.category &&
99
+ additional_fields == o.additional_fields &&
90
100
  include_local == o.include_local
91
101
  end
92
102
 
@@ -99,7 +109,7 @@ module Composio
99
109
  # Calculates hash code according to all attributes.
100
110
  # @return [Integer] Hash code
101
111
  def hash
102
- [category, include_local].hash
112
+ [category, additional_fields, include_local].hash
103
113
  end
104
114
 
105
115
  # 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.12'
10
+ VERSION = '0.1.14'
11
11
  end
data/lib/composio.rb CHANGED
@@ -167,6 +167,7 @@ require 'composio/models/webhook_url_response_dto'
167
167
  # APIs
168
168
  require 'composio/api/api_keys_api'
169
169
  require 'composio/api/actions_api'
170
+ require 'composio/api/admin_api'
170
171
  require 'composio/api/analytics_api'
171
172
  require 'composio/api/apps_api'
172
173
  require 'composio/api/auth_api'
@@ -219,6 +220,7 @@ module Composio
219
220
  class Client
220
221
  attr_reader :api_keys
221
222
  attr_reader :actions
223
+ attr_reader :admin
222
224
  attr_reader :analytics
223
225
  attr_reader :apps
224
226
  attr_reader :auth
@@ -233,6 +235,7 @@ module Composio
233
235
  @api_client = ApiClient::new(config)
234
236
  @api_keys = Composio::APIKeysApi.new(@api_client)
235
237
  @actions = Composio::ActionsApi.new(@api_client)
238
+ @admin = Composio::AdminApi.new(@api_client)
236
239
  @analytics = Composio::AnalyticsApi.new(@api_client)
237
240
  @apps = Composio::AppsApi.new(@api_client)
238
241
  @auth = Composio::AuthApi.new(@api_client)
@@ -0,0 +1,39 @@
1
+ =begin
2
+ #Composio OpenAPI
3
+
4
+ #Composio SDK: Equip your agent with high-quality tools and build your real-world usecase
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ =end
8
+
9
+ require 'spec_helper'
10
+ require 'json'
11
+
12
+ # Unit tests for Composio::AdminApi
13
+ describe 'AdminApi' do
14
+ before do
15
+ # run before each test
16
+ @api_instance = Composio::AdminApi.new
17
+ end
18
+
19
+ after do
20
+ # run after each test
21
+ end
22
+
23
+ describe 'test an instance of AdminApi' do
24
+ it 'should create an instance of AdminApi' do
25
+ expect(@api_instance).to be_instance_of(Composio::AdminApi)
26
+ end
27
+ end
28
+
29
+ # unit tests for get_sentry_dns
30
+ # Jssentry dns
31
+ # @param [Hash] opts the optional parameters
32
+ # @return [Object]
33
+ describe 'get_sentry_dns test' do
34
+ it 'should work' do
35
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
36
+ end
37
+ end
38
+
39
+ end
@@ -67,6 +67,7 @@ describe 'AppsApi' do
67
67
  # Retrieve a list of all applications based on query parameters.
68
68
  # @param [Hash] opts the optional parameters
69
69
  # @option opts [String] :category
70
+ # @option opts [String] :additional_fields
70
71
  # @option opts [String] :include_local
71
72
  # @return [AppListResDTO]
72
73
  describe 'list test' do
@@ -19,6 +19,12 @@ describe Composio::AppInfoResponseDto do
19
19
  expect(instance).to be_instance_of(Composio::AppInfoResponseDto)
20
20
  end
21
21
  end
22
+ describe 'test attribute "tags"' do
23
+ it 'should work' do
24
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
25
+ end
26
+ end
27
+
22
28
  describe 'test attribute "description"' do
23
29
  it 'should work' do
24
30
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -55,6 +61,12 @@ describe Composio::AppInfoResponseDto do
55
61
  end
56
62
  end
57
63
 
64
+ describe 'test attribute "auth_schemes"' 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 "enabled"' do
59
71
  it 'should work' do
60
72
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -25,6 +25,12 @@ describe Composio::AppQueryDTO do
25
25
  end
26
26
  end
27
27
 
28
+ describe 'test attribute "additional_fields"' 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
  describe 'test attribute "include_local"' do
29
35
  it 'should work' do
30
36
  # 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.12
4
+ version: 0.1.14
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-24 00:00:00.000000000 Z
11
+ date: 2024-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -86,6 +86,7 @@ files:
86
86
  - header.png
87
87
  - lib/composio.rb
88
88
  - lib/composio/api/actions_api.rb
89
+ - lib/composio/api/admin_api.rb
89
90
  - lib/composio/api/analytics_api.rb
90
91
  - lib/composio/api/api_keys_api.rb
91
92
  - lib/composio/api/apps_api.rb
@@ -250,6 +251,7 @@ files:
250
251
  - lib/composio/models/webhook_url_response_dto.rb
251
252
  - lib/composio/version.rb
252
253
  - spec/api/actions_api_spec.rb
254
+ - spec/api/admin_api_spec.rb
253
255
  - spec/api/analytics_api_spec.rb
254
256
  - spec/api/api_keys_api_spec.rb
255
257
  - spec/api/apps_api_spec.rb
@@ -447,6 +449,7 @@ test_files:
447
449
  - spec/api/integrations_api_spec.rb
448
450
  - spec/api/connections_api_spec.rb
449
451
  - spec/api/api_keys_api_spec.rb
452
+ - spec/api/admin_api_spec.rb
450
453
  - spec/api/analytics_api_spec.rb
451
454
  - spec/api/logs_api_spec.rb
452
455
  - spec/api_client_spec.rb