Skip to content

Commit

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

* Regenerate SDKs

---------

Co-authored-by: konfig-bot[bot] <121480725+konfig-bot[bot]@users.noreply.github.com>
Co-authored-by: konfig-publisher <[email protected]>
  • Loading branch information
konfig-bot[bot] and konfig-publisher authored Oct 22, 2024
1 parent 2e1b8e3 commit 7c4621a
Show file tree
Hide file tree
Showing 12 changed files with 341 additions and 14 deletions.
5 changes: 5 additions & 0 deletions .konfig/changesets/long-results-call.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
ruby: patch
---

Regenerate SDKs
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 | 56327 |
| **Total** | 56327 |
| ruby | 56607 |
| **Total** | 56607 |
25 changes: 23 additions & 2 deletions composio.json
Original file line number Diff line number Diff line change
Expand Up @@ -1622,6 +1622,26 @@
"connectedAccountId"
]
},
"CustomAuthDTO": {
"properties": {
"base_url": {
"type": "string"
},
"parameters": {
"items": {
"$ref": "#/components/schemas/Parameter"
},
"type": "array"
},
"body": {
"type": "object"
}
},
"type": "object",
"required": [
"parameters"
]
},
"ActionExecutionReqDTO": {
"properties": {
"connectedAccountId": {
Expand All @@ -1640,7 +1660,7 @@
"type": "object"
},
"authConfig": {
"$ref": "#/components/schemas/GetConnectionInfoResponseDTO"
"$ref": "#/components/schemas/CustomAuthDTO"
},
"text": {
"type": "string"
Expand Down Expand Up @@ -3386,7 +3406,8 @@
"HOBBY",
"STARTER",
"GROWTH",
"ENTERPRISE"
"ENTERPRISE",
"STARTUP"
],
"type": "string"
}
Expand Down
25 changes: 23 additions & 2 deletions openapi-fixed.json
Original file line number Diff line number Diff line change
Expand Up @@ -3626,6 +3626,26 @@
"connectedAccountId"
]
},
"CustomAuthDTO": {
"properties": {
"parameters": {
"items": {
"$ref": "#/components/schemas/Parameter"
},
"type": "array"
},
"base_url": {
"type": "string"
},
"body": {
"type": "object"
}
},
"type": "object",
"required": [
"parameters"
]
},
"ActionExecutionReqDTO": {
"properties": {
"connectedAccountId": {
Expand All @@ -3644,7 +3664,7 @@
"type": "object"
},
"authConfig": {
"$ref": "#/components/schemas/GetConnectionInfoResponseDTO"
"$ref": "#/components/schemas/CustomAuthDTO"
},
"text": {
"type": "string"
Expand Down Expand Up @@ -5390,7 +5410,8 @@
"HOBBY",
"STARTER",
"GROWTH",
"ENTERPRISE"
"ENTERPRISE",
"STARTUP"
],
"type": "string"
}
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 @@
7d439415-6a0e-4a36-9564-9420fc3b077d
61d05517-312e-48be-8f52-ca6e81ed953a
4 changes: 1 addition & 3 deletions ruby/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,6 @@ result = composio.actions.execute(
"value" => "value_example",
}
],
"base_url" => "base_url_example",
"body" => {},
},
text: "string_example",
)
Expand All @@ -233,7 +231,7 @@ p result
##### entityId: `String`<a id="entityid-string"></a>
##### endpoint: `String`<a id="endpoint-string"></a>
##### input: `Object`<a id="input-object"></a>
##### authConfig: [`GetConnectionInfoResponseDTO`](./lib/composio/models/get_connection_info_response_dto.rb)<a id="authconfig-getconnectioninforesponsedtolibcomposiomodelsget_connection_info_response_dtorb"></a>
##### authConfig: [`CustomAuthDTO`](./lib/composio/models/custom_auth_dto.rb)<a id="authconfig-customauthdtolibcomposiomodelscustom_auth_dtorb"></a>
##### text: `String`<a id="text-string"></a>
#### 🔄 Return<a id="🔄-return"></a>

Expand Down
1 change: 1 addition & 0 deletions ruby/lib/composio.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,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/custom_auth_dto'
require 'composio/models/data'
require 'composio/models/delete_api_key_req_dto'
require 'composio/models/delete_api_key_response_dto'
Expand Down
4 changes: 2 additions & 2 deletions ruby/lib/composio/api/actions_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def initialize(api_client = ApiClient.default)
# @param entity_id [String]
# @param endpoint [String]
# @param input [Object]
# @param auth_config [GetConnectionInfoResponseDTO]
# @param auth_config [CustomAuthDTO]
# @param text [String]
# @param body [ActionExecutionReqDTO]
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
Expand Down Expand Up @@ -54,7 +54,7 @@ def execute(action_id:, connected_account_id: SENTINEL, app_name: SENTINEL, enti
# @param entity_id [String]
# @param endpoint [String]
# @param input [Object]
# @param auth_config [GetConnectionInfoResponseDTO]
# @param auth_config [CustomAuthDTO]
# @param text [String]
# @param body [ActionExecutionReqDTO]
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
Expand Down
2 changes: 1 addition & 1 deletion ruby/lib/composio/models/action_execution_req_dto.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def self.openapi_types
:'entity_id' => :'String',
:'endpoint' => :'String',
:'input' => :'Object',
:'auth_config' => :'GetConnectionInfoResponseDTO',
:'auth_config' => :'CustomAuthDTO',
:'text' => :'String'
}
end
Expand Down
Loading

0 comments on commit 7c4621a

Please sign in to comment.