diff --git a/.konfig/changesets/ten-wolves-occur.md b/.konfig/changesets/ten-wolves-occur.md new file mode 100644 index 0000000..acf1dd6 --- /dev/null +++ b/.konfig/changesets/ten-wolves-occur.md @@ -0,0 +1,5 @@ +--- +ruby: patch +--- + +Regenerate SDKs diff --git a/.konfig/progress.yaml b/.konfig/progress.yaml index 4cae9d8..7312bfa 100644 --- a/.konfig/progress.yaml +++ b/.konfig/progress.yaml @@ -229,6 +229,8 @@ securityParameters: query: false filterImportantActions: query: false + includeLocal: + query: false integrationId: query: false integrationIds: diff --git a/STATISTICS.md b/STATISTICS.md index 4120a6b..2675435 100644 --- a/STATISTICS.md +++ b/STATISTICS.md @@ -2,5 +2,5 @@ | SDK Name | Lines of Code | | -------- | ------------- | -| ruby | 45913 | -| **Total** | 45913 | +| ruby | 45939 | +| **Total** | 45939 | diff --git a/composio.json b/composio.json index fe5e6f4..cd21abe 100644 --- a/composio.json +++ b/composio.json @@ -579,6 +579,10 @@ "category": { "type": "string", "description": "Category of the app" + }, + "includeLocal": { + "type": "string", + "description": "Whether to include local tools or not" } }, "type": "object" @@ -2917,6 +2921,14 @@ "type": "string", "description": "Category of the app" } + }, + { + "in": "query", + "name": "includeLocal", + "schema": { + "type": "string", + "description": "Whether to include local tools or not" + } } ], "responses": { diff --git a/openapi-fixed.json b/openapi-fixed.json index 8de3f08..1f21a17 100644 --- a/openapi-fixed.json +++ b/openapi-fixed.json @@ -168,6 +168,14 @@ "description": "Category of the app", "type": "string" } + }, + { + "in": "query", + "name": "includeLocal", + "schema": { + "description": "Whether to include local tools or not", + "type": "string" + } } ], "responses": { @@ -1983,6 +1991,10 @@ "category": { "description": "Category of the app", "type": "string" + }, + "includeLocal": { + "description": "Whether to include local tools or not", + "type": "string" } }, "type": "object" diff --git a/ruby/.konfig/generate-id.txt b/ruby/.konfig/generate-id.txt index c19d674..c25467e 100644 --- a/ruby/.konfig/generate-id.txt +++ b/ruby/.konfig/generate-id.txt @@ -1 +1 @@ -92a5d752-6b9e-468b-a77e-48e0dc61ae54 \ No newline at end of file +f47f823e-01a5-4a2f-86cd-e4e02f9f4e21 \ No newline at end of file diff --git a/ruby/README.md b/ruby/README.md index e1c335a..7c0c920 100644 --- a/ruby/README.md +++ b/ruby/README.md @@ -363,6 +363,7 @@ Retrieve a list of all applications based on query parameters. ```ruby result = composio.apps.list( category: "string_example", + include_local: "string_example", ) p result ``` @@ -370,6 +371,7 @@ p result #### ⚙️ Parameters ##### category: `String` +##### include_local: `String` #### 🔄 Return [AppListResDTO](./lib/composio/models/app_list_res_dto.rb) diff --git a/ruby/lib/composio/api/apps_api.rb b/ruby/lib/composio/api/apps_api.rb index b752cc3..59706eb 100644 --- a/ruby/lib/composio/api/apps_api.rb +++ b/ruby/lib/composio/api/apps_api.rb @@ -111,9 +111,11 @@ def get_details_with_http_info(app_name:, extra: {}) # Retrieve a list of all applications based on query parameters. # # @param category [String] + # @param include_local [String] # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name - def list(category: SENTINEL, extra: {}) + def list(category: SENTINEL, include_local: SENTINEL, extra: {}) extra[:category] = category if category != SENTINEL + extra[:include_local] = include_local if include_local != SENTINEL api_response = list_with_http_info_impl(extra) api_response.data end @@ -123,9 +125,11 @@ def list(category: SENTINEL, extra: {}) # Retrieve a list of all applications based on query parameters. # # @param category [String] + # @param include_local [String] # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name - def list_with_http_info(category: SENTINEL, extra: {}) + def list_with_http_info(category: SENTINEL, include_local: SENTINEL, extra: {}) extra[:category] = category if category != SENTINEL + extra[:include_local] = include_local if include_local != SENTINEL list_with_http_info_impl(extra) end @@ -133,6 +137,7 @@ def list_with_http_info(category: SENTINEL, extra: {}) # Retrieve a list of all applications based on query parameters. # @param [Hash] opts the optional parameters # @option opts [String] :category + # @option opts [String] :include_local # @return [AppListResDTO] private def list_impl(opts = {}) data, _status_code, _headers = list_with_http_info(opts) @@ -143,6 +148,7 @@ def list_with_http_info(category: SENTINEL, extra: {}) # Retrieve a list of all applications based on query parameters. # @param [Hash] opts the optional parameters # @option opts [String] :category + # @option opts [String] :include_local # @return [APIResponse] data is AppListResDTO, status code, headers and response private def list_with_http_info_impl(opts = {}) if @api_client.config.debugging @@ -154,6 +160,7 @@ def list_with_http_info(category: SENTINEL, extra: {}) # query parameters query_params = opts[:query_params] || {} query_params[:'category'] = opts[:'category'] if !opts[:'category'].nil? + query_params[:'includeLocal'] = opts[:'include_local'] if !opts[:'include_local'].nil? # header parameters header_params = opts[:header_params] || {} diff --git a/ruby/lib/composio/models/app_query_dto.rb b/ruby/lib/composio/models/app_query_dto.rb index b09edb5..f6d962e 100644 --- a/ruby/lib/composio/models/app_query_dto.rb +++ b/ruby/lib/composio/models/app_query_dto.rb @@ -14,10 +14,14 @@ class AppQueryDTO # Category of the app attr_accessor :category + # Whether to include local tools or not + attr_accessor :include_local + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'category' => :'category' + :'category' => :'category', + :'include_local' => :'includeLocal' } end @@ -29,7 +33,8 @@ def self.acceptable_attributes # Attribute type mapping. def self.openapi_types { - :'category' => :'String' + :'category' => :'String', + :'include_local' => :'String' } end @@ -57,6 +62,10 @@ def initialize(attributes = {}) if attributes.key?(:'category') self.category = attributes[:'category'] end + + if attributes.key?(:'include_local') + self.include_local = attributes[:'include_local'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -77,7 +86,8 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - category == o.category + category == o.category && + include_local == o.include_local end # @see the `==` method @@ -89,7 +99,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [category].hash + [category, include_local].hash end # Builds the object from hash diff --git a/ruby/spec/api/apps_api_spec.rb b/ruby/spec/api/apps_api_spec.rb index 5c95ce9..317f183 100644 --- a/ruby/spec/api/apps_api_spec.rb +++ b/ruby/spec/api/apps_api_spec.rb @@ -43,6 +43,7 @@ # Retrieve a list of all applications based on query parameters. # @param [Hash] opts the optional parameters # @option opts [String] :category + # @option opts [String] :include_local # @return [AppListResDTO] describe 'list test' do it 'should work' do diff --git a/ruby/spec/models/app_query_dto_spec.rb b/ruby/spec/models/app_query_dto_spec.rb index 5ddba89..bee0884 100644 --- a/ruby/spec/models/app_query_dto_spec.rb +++ b/ruby/spec/models/app_query_dto_spec.rb @@ -25,4 +25,10 @@ end end + describe 'test attribute "include_local"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end