composio 0.1.11 → 0.1.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +27 -6
- data/lib/composio/api/admin_api.rb +92 -0
- data/lib/composio/api/integrations_api.rb +4 -4
- data/lib/composio/models/create_connector_payload_dto.rb +0 -5
- data/lib/composio/version.rb +1 -1
- data/lib/composio.rb +3 -0
- data/spec/api/admin_api_spec.rb +39 -0
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5aec9dd011a71ff421a1efc228b6cbd03c0d1e6b009f5c1d2cfbc0663e09ce8
|
4
|
+
data.tar.gz: 521a068ed6d5eb40b672c541e93fb4dfb9c2e3f7d88bbdcf2d476f0f0138c912
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2babc1eb71dc62146304a2a5766db9a62e9cea76285d6e5a3e3422b948cd8d3c6d9926d7d09752c13659388de2a54a438d6f3b35ca47b0badb4c3688ea9bcad
|
7
|
+
data.tar.gz: a46bb3a88a365cc06e3ab05527592e2fb31b68a11aafde422e3f5f81c8dbb232f4f17d57f19bd0ad23325d1573d04e080a1118d0c6a7b9939b40e7cbf829f7d3
|
data/Gemfile.lock
CHANGED
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.
|
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.
|
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
|
@@ -981,8 +1002,8 @@ Create a new connector
|
|
981
1002
|
```ruby
|
982
1003
|
result = composio.integrations.create_integration(
|
983
1004
|
name: "string_example",
|
984
|
-
auth_scheme: "string_example",
|
985
1005
|
app_id: "string_example",
|
1006
|
+
auth_scheme: "string_example",
|
986
1007
|
auth_config: {
|
987
1008
|
},
|
988
1009
|
use_composio_auth: true,
|
@@ -996,12 +1017,12 @@ p result
|
|
996
1017
|
##### name: `String`<a id="name-string"></a>
|
997
1018
|
Name of the connector
|
998
1019
|
|
999
|
-
##### authScheme: `String`<a id="authscheme-string"></a>
|
1000
|
-
Authentication scheme
|
1001
|
-
|
1002
1020
|
##### appId: `String`<a id="appid-string"></a>
|
1003
1021
|
Application ID
|
1004
1022
|
|
1023
|
+
##### authScheme: `String`<a id="authscheme-string"></a>
|
1024
|
+
Authentication scheme
|
1025
|
+
|
1005
1026
|
##### authConfig: [`AuthConfigDTO`](./lib/composio/models/auth_config_dto.rb)<a id="authconfig-authconfigdtolibcomposiomodelsauth_config_dtorb"></a>
|
1006
1027
|
##### useComposioAuth: [`CreateConnectorPayloadDTOUseComposioAuth`](./lib/composio/models/create_connector_payload_dto_use_composio_auth.rb)<a id="usecomposioauth-createconnectorpayloaddtousecomposioauthlibcomposiomodelscreate_connector_payload_dto_use_composio_authrb"></a>
|
1007
1028
|
##### forceNewIntegration: `Boolean`<a id="forcenewintegration-boolean"></a>
|
@@ -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
|
@@ -21,14 +21,14 @@ module Composio
|
|
21
21
|
# Create a new connector
|
22
22
|
#
|
23
23
|
# @param name [String] Name of the connector
|
24
|
-
# @param auth_scheme [String] Authentication scheme
|
25
24
|
# @param app_id [String] Application ID
|
25
|
+
# @param auth_scheme [String] Authentication scheme
|
26
26
|
# @param auth_config [AuthConfigDTO]
|
27
27
|
# @param use_composio_auth [CreateConnectorPayloadDTOUseComposioAuth]
|
28
28
|
# @param force_new_integration [Boolean] Flag to force new integration
|
29
29
|
# @param body [CreateConnectorPayloadDTO]
|
30
30
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
31
|
-
def create_integration(name:,
|
31
|
+
def create_integration(name:, app_id:, auth_scheme: SENTINEL, auth_config: SENTINEL, use_composio_auth: SENTINEL, force_new_integration: SENTINEL, extra: {})
|
32
32
|
_body = {}
|
33
33
|
_body[:name] = name if name != SENTINEL
|
34
34
|
_body[:authScheme] = auth_scheme if auth_scheme != SENTINEL
|
@@ -46,14 +46,14 @@ module Composio
|
|
46
46
|
# Create a new connector
|
47
47
|
#
|
48
48
|
# @param name [String] Name of the connector
|
49
|
-
# @param auth_scheme [String] Authentication scheme
|
50
49
|
# @param app_id [String] Application ID
|
50
|
+
# @param auth_scheme [String] Authentication scheme
|
51
51
|
# @param auth_config [AuthConfigDTO]
|
52
52
|
# @param use_composio_auth [CreateConnectorPayloadDTOUseComposioAuth]
|
53
53
|
# @param force_new_integration [Boolean] Flag to force new integration
|
54
54
|
# @param body [CreateConnectorPayloadDTO]
|
55
55
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
56
|
-
def create_integration_with_http_info(name:,
|
56
|
+
def create_integration_with_http_info(name:, app_id:, auth_scheme: SENTINEL, auth_config: SENTINEL, use_composio_auth: SENTINEL, force_new_integration: SENTINEL, extra: {})
|
57
57
|
_body = {}
|
58
58
|
_body[:name] = name if name != SENTINEL
|
59
59
|
_body[:authScheme] = auth_scheme if auth_scheme != SENTINEL
|
@@ -110,10 +110,6 @@ module Composio
|
|
110
110
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
111
111
|
end
|
112
112
|
|
113
|
-
if @auth_scheme.nil?
|
114
|
-
invalid_properties.push('invalid value for "auth_scheme", auth_scheme cannot be nil.')
|
115
|
-
end
|
116
|
-
|
117
113
|
if @app_id.nil?
|
118
114
|
invalid_properties.push('invalid value for "app_id", app_id cannot be nil.')
|
119
115
|
end
|
@@ -125,7 +121,6 @@ module Composio
|
|
125
121
|
# @return true if the model is valid
|
126
122
|
def valid?
|
127
123
|
return false if @name.nil?
|
128
|
-
return false if @auth_scheme.nil?
|
129
124
|
return false if @app_id.nil?
|
130
125
|
true
|
131
126
|
end
|
data/lib/composio/version.rb
CHANGED
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.
|
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-
|
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
|