composio 0.1.12 → 0.1.13

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: e5aec9dd011a71ff421a1efc228b6cbd03c0d1e6b009f5c1d2cfbc0663e09ce8
4
+ data.tar.gz: 521a068ed6d5eb40b672c541e93fb4dfb9c2e3f7d88bbdcf2d476f0f0138c912
5
5
  SHA512:
6
- metadata.gz: a4c07bf7584a7d3dbec076f76ad38a24c4f1b6a5a9e003006a0a97a1efffac6ece26f4c52990f11e2a3ea25c9d74cc9cb5482ce0758212a47c6797f388df185e
7
- data.tar.gz: afd1765ef6e0d1e1de493e75b0146d6937aee8a905df21fb48795a11cbbe67e7f3e47ddf9f3bd8f5883d003816245ab18ba8d8ada2d45e3632c7ea98800c98c6
6
+ metadata.gz: f2babc1eb71dc62146304a2a5766db9a62e9cea76285d6e5a3e3422b948cd8d3c6d9926d7d09752c13659388de2a54a438d6f3b35ca47b0badb4c3688ea9bcad
7
+ data.tar.gz: a46bb3a88a365cc06e3ab05527592e2fb31b68a11aafde422e3f5f81c8dbb232f4f17d57f19bd0ad23325d1573d04e080a1118d0c6a7b9939b40e7cbf829f7d3
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.13)
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.12-blue)](https://rubygems.org/gems/composio/versions/0.1.12)
9
+ [![npm](https://img.shields.io/badge/gem-v0.1.13-blue)](https://rubygems.org/gems/composio/versions/0.1.13)
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.13'
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
@@ -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
@@ -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.13'
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
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.13
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-25 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