Skip to content

Commit

Permalink
Update OpenAPI Specification (#21)
Browse files Browse the repository at this point in the history
* Update OpenAPI Specification (composio.json)

* run konfig fix

* Regenerate SDKs

---------

Co-authored-by: konfig-bot[bot] <121480725+konfig-bot[bot]@users.noreply.github.com>
Co-authored-by: dphuang2 <[email protected]>
Co-authored-by: konfig-publisher <[email protected]>
  • Loading branch information
3 people authored Oct 9, 2024
1 parent dd15f69 commit 4f461bb
Show file tree
Hide file tree
Showing 18 changed files with 1,433 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .konfig/changesets/eight-pugs-lay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
ruby: patch
---

Regenerate SDKs
2 changes: 2 additions & 0 deletions .konfig/progress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ operationIds:
post: Connections_disable
/api/v1/connectedAccounts/{connectedAccountId}/enable:
post: Connections_enable
/api/v1/connectedAccounts/{connectedAccountId}/info:
get: Connections_getInfo
/api/v1/event_logs/get/events:
get: EventLogs_getEvents
/api/v1/event_logs/get/webhook:
Expand Down
4 changes: 2 additions & 2 deletions STATISTICS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

| SDK Name | Lines of Code |
| -------- | ------------- |
| ruby | 55073 |
| **Total** | 55073 |
| ruby | 56296 |
| **Total** | 56296 |
99 changes: 99 additions & 0 deletions composio.json
Original file line number Diff line number Diff line change
Expand Up @@ -1750,6 +1750,73 @@
"page"
]
},
"GetConnectionInfoResponseDTO": {
"properties": {
"base_url": {
"type": "string"
},
"parameters": {
"items": {
"$ref": "#/components/schemas/Parameter"
},
"type": "array"
},
"body": {
"type": "object"
}
},
"type": "object",
"required": [
"base_url",
"parameters",
"body"
]
},
"Parameter": {
"properties": {
"name": {
"type": "string"
},
"in": {
"type": "string"
},
"value": {
"type": "string"
}
},
"type": "object",
"required": [
"name",
"in",
"value"
]
},
"Data": {
"properties": {
"field1": {
"type": "string"
},
"field2": {
"type": "string"
}
},
"type": "object",
"required": [
"field1",
"field2"
]
},
"AdditionalInfo": {
"properties": {
"meta": {
"type": "string"
}
},
"type": "object",
"required": [
"meta"
]
},
"GetConnectionsQueryDto": {
"properties": {
"page": {
Expand Down Expand Up @@ -3982,6 +4049,38 @@
]
}
},
"/api/v1/connectedAccounts/{connectedAccountId}/info": {
"get": {
"operationId": "getConnectionInfo",
"parameters": [
{
"in": "path",
"name": "connectedAccountId",
"required": true,
"schema": {
"pattern": "[^\\/#\\?]+?",
"type": "string"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GetConnectionInfoResponseDTO"
}
}
},
"description": ""
}
},
"summary": "Get connection info",
"tags": [
"Connections"
]
}
},
"/api/v1/connectedAccounts/{connectedAccountId}/disable": {
"post": {
"operationId": "disableConnection",
Expand Down
103 changes: 101 additions & 2 deletions openapi-fixed.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
"name": "Triggers"
},
{
"name": "Apps"
"name": "Connections"
},
{
"name": "Connections"
"name": "Apps"
},
{
"name": "Integrations"
Expand Down Expand Up @@ -698,6 +698,38 @@
}
}
},
"/api/v1/connectedAccounts/{connectedAccountId}/info": {
"get": {
"tags": [
"Connections"
],
"summary": "Get connection info",
"operationId": "Connections_getInfo",
"parameters": [
{
"in": "path",
"name": "connectedAccountId",
"required": true,
"schema": {
"pattern": "[^\\/#\\?]+?",
"type": "string"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GetConnectionInfoResponseDTO"
}
}
}
}
}
}
},
"/api/v1/connectedAccounts/{connectedAccountId}/disable": {
"post": {
"tags": [
Expand Down Expand Up @@ -3722,6 +3754,73 @@
"page"
]
},
"GetConnectionInfoResponseDTO": {
"properties": {
"parameters": {
"items": {
"$ref": "#/components/schemas/Parameter"
},
"type": "array"
},
"base_url": {
"type": "string"
},
"body": {
"type": "object"
}
},
"type": "object",
"required": [
"base_url",
"parameters",
"body"
]
},
"Parameter": {
"properties": {
"name": {
"type": "string"
},
"in": {
"type": "string"
},
"value": {
"type": "string"
}
},
"type": "object",
"required": [
"name",
"in",
"value"
]
},
"Data": {
"properties": {
"field1": {
"type": "string"
},
"field2": {
"type": "string"
}
},
"type": "object",
"required": [
"field1",
"field2"
]
},
"AdditionalInfo": {
"properties": {
"meta": {
"type": "string"
}
},
"type": "object",
"required": [
"meta"
]
},
"GetConnectionsQueryDto": {
"properties": {
"page": {
Expand Down
2 changes: 1 addition & 1 deletion ruby/.konfig/generate-id.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bad5a01f-0956-4796-afce-df6b6fee1c71
be19308b-de07-478b-85e8-6f20a85bcf3c
30 changes: 30 additions & 0 deletions ruby/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ Composio SDK: Equip your agent with high-quality tools and build your real-world
* [`composio.connections.disable`](#composioconnectionsdisable)
* [`composio.connections.enable`](#composioconnectionsenable)
* [`composio.connections.get`](#composioconnectionsget)
* [`composio.connections.get_info`](#composioconnectionsget_info)
* [`composio.connections.initiate`](#composioconnectionsinitiate)
* [`composio.connections.list`](#composioconnectionslist)
* [`composio.event_logs.get_events`](#composioevent_logsget_events)
Expand Down Expand Up @@ -738,6 +739,35 @@ p result
---


### `composio.connections.get_info`<a id="composioconnectionsget_info"></a>

Get connection info

#### 🛠️ Usage<a id="🛠️-usage"></a>

```ruby
result = composio.connections.get_info(
connected_account_id: "'+j>6",
)
p result
```

#### ⚙️ Parameters<a id="⚙️-parameters"></a>

##### connected_account_id: `String`<a id="connected_account_id-string"></a>
#### 🔄 Return<a id="🔄-return"></a>

[GetConnectionInfoResponseDTO](./lib/composio/models/get_connection_info_response_dto.rb)

#### 🌐 Endpoint<a id="🌐-endpoint"></a>

`/api/v1/connectedAccounts/{connectedAccountId}/info` `GET`

[🔙 **Back to Table of Contents**](#table-of-contents)

---


### `composio.connections.initiate`<a id="composioconnectionsinitiate"></a>

Initiate connection
Expand Down
4 changes: 4 additions & 0 deletions ruby/lib/composio.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
require 'composio/models/add_repo_url_res_dto'
require 'composio/models/add_tools_req_dto'
require 'composio/models/add_tools_request_dto'
require 'composio/models/additional_info'
require 'composio/models/analytics_data_req_dto'
require 'composio/models/analytics_data_res_dto'
require 'composio/models/analytics_entity_data_dto'
Expand All @@ -58,6 +59,7 @@
require 'composio/models/create_checkout_session_req_dto'
require 'composio/models/create_connector_payload_dto'
require 'composio/models/create_connector_payload_dto_use_composio_auth'
require 'composio/models/data'
require 'composio/models/delete_api_key_req_dto'
require 'composio/models/delete_api_key_response_dto'
require 'composio/models/delete_row_apidto'
Expand All @@ -74,6 +76,7 @@
require 'composio/models/generate_cli_session_res_dto'
require 'composio/models/get_active_triggers_query_dto'
require 'composio/models/get_cli_session_res_dto'
require 'composio/models/get_connection_info_response_dto'
require 'composio/models/get_connections_query_dto'
require 'composio/models/get_connections_response_dto'
require 'composio/models/get_connections_result'
Expand Down Expand Up @@ -112,6 +115,7 @@
require 'composio/models/open_api_spec_list_res_dto'
require 'composio/models/page_info'
require 'composio/models/page_info_dto'
require 'composio/models/parameter'
require 'composio/models/patch_connector_req_dto'
require 'composio/models/patch_connector_res_dto'
require 'composio/models/plan'
Expand Down
Loading

0 comments on commit 4f461bb

Please sign in to comment.