Skip to content

Commit

Permalink
Update OpenAPI Specification (#7)
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 Sep 4, 2024
1 parent c64ed86 commit 5d80823
Show file tree
Hide file tree
Showing 11 changed files with 63 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .konfig/changesets/thick-deer-think.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 @@ -227,6 +227,8 @@ securityParameters:
query: false
endpoint:
query: false
entityId:
query: false
filterImportantActions:
query: false
includeLocal:
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 | 45939 |
| **Total** | 45939 |
| ruby | 45965 |
| **Total** | 45965 |
12 changes: 12 additions & 0 deletions composio.json
Original file line number Diff line number Diff line change
Expand Up @@ -2760,6 +2760,10 @@
"type": "string",
"description": "Integration UUID"
},
"entityId": {
"type": "string",
"description": "Entity UUID"
},
"limit": {
"type": "number",
"description": "Limit of the logs",
Expand Down Expand Up @@ -3880,6 +3884,14 @@
"description": "Integration UUID"
}
},
{
"in": "query",
"name": "entityId",
"schema": {
"type": "string",
"description": "Entity UUID"
}
},
{
"in": "query",
"name": "limit",
Expand Down
12 changes: 12 additions & 0 deletions openapi-fixed.json
Original file line number Diff line number Diff line change
Expand Up @@ -1370,6 +1370,14 @@
"type": "string"
}
},
{
"in": "query",
"name": "entityId",
"schema": {
"description": "Entity UUID",
"type": "string"
}
},
{
"in": "query",
"name": "limit",
Expand Down Expand Up @@ -4172,6 +4180,10 @@
"description": "Integration UUID",
"type": "string"
},
"entityId": {
"description": "Entity UUID",
"type": "string"
},
"limit": {
"description": "Limit of the logs",
"type": "number",
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 @@
24f08abc-9cbe-40e9-9cef-4a33f20ce6b1
9acfe967-445a-4280-ad82-5bb6ebf0b30a
2 changes: 2 additions & 0 deletions ruby/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -820,6 +820,7 @@ result = composio.logs.list(
status: "all",
search: "string_example",
integration_id: "string_example",
entity_id: "string_example",
limit: 10,
cursor: "string_example",
connection_id: "string_example",
Expand All @@ -834,6 +835,7 @@ p result
##### status: `String`<a id="status-string"></a>
##### search: `String`<a id="search-string"></a>
##### integration_id: `String`<a id="integration_id-string"></a>
##### entity_id: `String`<a id="entity_id-string"></a>
##### limit: `Float`<a id="limit-float"></a>
##### cursor: `String`<a id="cursor-string"></a>
##### connection_id: `String`<a id="connection_id-string"></a>
Expand Down
11 changes: 9 additions & 2 deletions ruby/lib/composio/api/logs_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,18 @@ def initialize(api_client = ApiClient.default)
# @param status [String]
# @param search [String]
# @param integration_id [String]
# @param entity_id [String]
# @param limit [Float]
# @param cursor [String]
# @param connection_id [String]
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
def list(type: SENTINEL, time: SENTINEL, status: SENTINEL, search: SENTINEL, integration_id: SENTINEL, limit: 10, cursor: SENTINEL, connection_id: SENTINEL, extra: {})
def list(type: SENTINEL, time: SENTINEL, status: SENTINEL, search: SENTINEL, integration_id: SENTINEL, entity_id: SENTINEL, limit: 10, cursor: SENTINEL, connection_id: SENTINEL, extra: {})
extra[:type] = type if type != SENTINEL
extra[:time] = time if time != SENTINEL
extra[:status] = status if status != SENTINEL
extra[:search] = search if search != SENTINEL
extra[:integration_id] = integration_id if integration_id != SENTINEL
extra[:entity_id] = entity_id if entity_id != SENTINEL
extra[:limit] = limit if limit != SENTINEL
extra[:cursor] = cursor if cursor != SENTINEL
extra[:connection_id] = connection_id if connection_id != SENTINEL
Expand All @@ -51,16 +53,18 @@ def list(type: SENTINEL, time: SENTINEL, status: SENTINEL, search: SENTINEL, int
# @param status [String]
# @param search [String]
# @param integration_id [String]
# @param entity_id [String]
# @param limit [Float]
# @param cursor [String]
# @param connection_id [String]
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
def list_with_http_info(type: SENTINEL, time: SENTINEL, status: SENTINEL, search: SENTINEL, integration_id: SENTINEL, limit: 10, cursor: SENTINEL, connection_id: SENTINEL, extra: {})
def list_with_http_info(type: SENTINEL, time: SENTINEL, status: SENTINEL, search: SENTINEL, integration_id: SENTINEL, entity_id: SENTINEL, limit: 10, cursor: SENTINEL, connection_id: SENTINEL, extra: {})
extra[:type] = type if type != SENTINEL
extra[:time] = time if time != SENTINEL
extra[:status] = status if status != SENTINEL
extra[:search] = search if search != SENTINEL
extra[:integration_id] = integration_id if integration_id != SENTINEL
extra[:entity_id] = entity_id if entity_id != SENTINEL
extra[:limit] = limit if limit != SENTINEL
extra[:cursor] = cursor if cursor != SENTINEL
extra[:connection_id] = connection_id if connection_id != SENTINEL
Expand All @@ -75,6 +79,7 @@ def list_with_http_info(type: SENTINEL, time: SENTINEL, status: SENTINEL, search
# @option opts [String] :status
# @option opts [String] :search
# @option opts [String] :integration_id
# @option opts [String] :entity_id
# @option opts [Float] :limit (default to 10)
# @option opts [String] :cursor
# @option opts [String] :connection_id
Expand All @@ -92,6 +97,7 @@ def list_with_http_info(type: SENTINEL, time: SENTINEL, status: SENTINEL, search
# @option opts [String] :status
# @option opts [String] :search
# @option opts [String] :integration_id
# @option opts [String] :entity_id
# @option opts [Float] :limit (default to 10)
# @option opts [String] :cursor
# @option opts [String] :connection_id
Expand Down Expand Up @@ -122,6 +128,7 @@ def list_with_http_info(type: SENTINEL, time: SENTINEL, status: SENTINEL, search
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
query_params[:'integrationId'] = opts[:'integration_id'] if !opts[:'integration_id'].nil?
query_params[:'entityId'] = opts[:'entity_id'] if !opts[:'entity_id'].nil?
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
query_params[:'connectionId'] = opts[:'connection_id'] if !opts[:'connection_id'].nil?
Expand Down
12 changes: 11 additions & 1 deletion ruby/lib/composio/models/get_logs_dto.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ class GetLogsDTO
# Integration UUID
attr_accessor :integration_id

# Entity UUID
attr_accessor :entity_id

# Limit of the logs
attr_accessor :limit

Expand All @@ -43,6 +46,7 @@ def self.attribute_map
:'status' => :'status',
:'search' => :'search',
:'integration_id' => :'integrationId',
:'entity_id' => :'entityId',
:'limit' => :'limit',
:'cursor' => :'cursor',
:'connection_id' => :'connectionId'
Expand All @@ -62,6 +66,7 @@ def self.openapi_types
:'status' => :'Status',
:'search' => :'String',
:'integration_id' => :'String',
:'entity_id' => :'String',
:'limit' => :'Float',
:'cursor' => :'String',
:'connection_id' => :'String'
Expand Down Expand Up @@ -109,6 +114,10 @@ def initialize(attributes = {})
self.integration_id = attributes[:'integration_id']
end

if attributes.key?(:'entity_id')
self.entity_id = attributes[:'entity_id']
end

if attributes.key?(:'limit')
self.limit = attributes[:'limit']
else
Expand Down Expand Up @@ -147,6 +156,7 @@ def ==(o)
status == o.status &&
search == o.search &&
integration_id == o.integration_id &&
entity_id == o.entity_id &&
limit == o.limit &&
cursor == o.cursor &&
connection_id == o.connection_id
Expand All @@ -161,7 +171,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
[type, time, status, search, integration_id, limit, cursor, connection_id].hash
[type, time, status, search, integration_id, entity_id, limit, cursor, connection_id].hash
end

# Builds the object from hash
Expand Down
1 change: 1 addition & 0 deletions ruby/spec/api/logs_api_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
# @option opts [String] :status
# @option opts [String] :search
# @option opts [String] :integration_id
# @option opts [String] :entity_id
# @option opts [Float] :limit
# @option opts [String] :cursor
# @option opts [String] :connection_id
Expand Down
6 changes: 6 additions & 0 deletions ruby/spec/models/get_logs_dto_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@
end
end

describe 'test attribute "entity_id"' do
it 'should work' do
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
end
end

describe 'test attribute "limit"' do
it 'should work' do
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
Expand Down

0 comments on commit 5d80823

Please sign in to comment.