From 93c2a0d67374620f6bffefb04b3a9d13a38f81b2 Mon Sep 17 00:00:00 2001 From: "konfig-bot[bot]" <121480725+konfig-bot[bot]@users.noreply.github.com> Date: Mon, 16 Sep 2024 13:35:18 +0000 Subject: [PATCH] Update OpenAPI Specification (#9) * 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 --- .konfig/changesets/salty-bears-train.md | 5 +++++ STATISTICS.md | 4 ++-- composio.json | 4 ++++ openapi-fixed.json | 4 ++++ ruby/.konfig/generate-id.txt | 2 +- ruby/README.md | 4 ++++ ruby/lib/composio/api/triggers_api.rb | 8 ++++++-- .../composio/models/enable_trigger_body_dto.rb | 18 ++++++++++++++---- .../models/enable_trigger_body_dto_spec.rb | 6 ++++++ 9 files changed, 46 insertions(+), 9 deletions(-) create mode 100644 .konfig/changesets/salty-bears-train.md diff --git a/.konfig/changesets/salty-bears-train.md b/.konfig/changesets/salty-bears-train.md new file mode 100644 index 0000000..acf1dd6 --- /dev/null +++ b/.konfig/changesets/salty-bears-train.md @@ -0,0 +1,5 @@ +--- +ruby: patch +--- + +Regenerate SDKs diff --git a/STATISTICS.md b/STATISTICS.md index fd670d9..5837aeb 100644 --- a/STATISTICS.md +++ b/STATISTICS.md @@ -2,5 +2,5 @@ | SDK Name | Lines of Code | | -------- | ------------- | -| ruby | 45965 | -| **Total** | 45965 | +| ruby | 45989 | +| **Total** | 45989 | diff --git a/composio.json b/composio.json index 01e51c2..be6f149 100644 --- a/composio.json +++ b/composio.json @@ -2127,6 +2127,10 @@ "triggerConfig": { "type": "object", "description": "The trigger configuration" + }, + "verifyHost": { + "type": "string", + "description": "The verify host" } }, "type": "object", diff --git a/openapi-fixed.json b/openapi-fixed.json index 957b3cb..f20c151 100644 --- a/openapi-fixed.json +++ b/openapi-fixed.json @@ -3547,6 +3547,10 @@ "triggerConfig": { "description": "The trigger configuration", "type": "object" + }, + "verifyHost": { + "description": "The verify host", + "type": "string" } }, "type": "object", diff --git a/ruby/.konfig/generate-id.txt b/ruby/.konfig/generate-id.txt index 704242d..e22d264 100644 --- a/ruby/.konfig/generate-id.txt +++ b/ruby/.konfig/generate-id.txt @@ -1 +1 @@ -0de9221e-c62a-485a-b9d8-8a778359d9f7 \ No newline at end of file +5bc35665-35b0-4fcd-abe5-92c0c742234f \ No newline at end of file diff --git a/ruby/README.md b/ruby/README.md index 6b25056..95c0241 100644 --- a/ruby/README.md +++ b/ruby/README.md @@ -921,6 +921,7 @@ result = composio.triggers.enable( trigger_config: {}, connected_account_id: "'+j>6", trigger_name: "'+j>6", + verify_host: "string_example", ) p result ``` @@ -932,6 +933,9 @@ The trigger configuration ##### connected_account_id: `String` ##### trigger_name: `String` +##### verifyHost: `String` +The verify host + #### 🔄 Return [TriggerResponseDTO](./lib/composio/models/trigger_response_dto.rb) diff --git a/ruby/lib/composio/api/triggers_api.rb b/ruby/lib/composio/api/triggers_api.rb index 399e781..8f61267 100644 --- a/ruby/lib/composio/api/triggers_api.rb +++ b/ruby/lib/composio/api/triggers_api.rb @@ -203,11 +203,13 @@ def disable_trigger_instance_with_http_info(trigger_instance_id:, extra: {}) # @param trigger_config [Object] The trigger configuration # @param connected_account_id [String] # @param trigger_name [String] + # @param verify_host [String] The verify host # @param body [EnableTriggerBodyDTO] # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name - def enable(trigger_config:, connected_account_id:, trigger_name:, extra: {}) + def enable(trigger_config:, connected_account_id:, trigger_name:, verify_host: SENTINEL, extra: {}) _body = {} _body[:triggerConfig] = trigger_config if trigger_config != SENTINEL + _body[:verifyHost] = verify_host if verify_host != SENTINEL extra[:enable_trigger_body_dto] = _body if !_body.empty? api_response = enable_with_http_info_impl(connected_account_id, trigger_name, extra) api_response.data @@ -220,11 +222,13 @@ def enable(trigger_config:, connected_account_id:, trigger_name:, extra: {}) # @param trigger_config [Object] The trigger configuration # @param connected_account_id [String] # @param trigger_name [String] + # @param verify_host [String] The verify host # @param body [EnableTriggerBodyDTO] # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name - def enable_with_http_info(trigger_config:, connected_account_id:, trigger_name:, extra: {}) + def enable_with_http_info(trigger_config:, connected_account_id:, trigger_name:, verify_host: SENTINEL, extra: {}) _body = {} _body[:triggerConfig] = trigger_config if trigger_config != SENTINEL + _body[:verifyHost] = verify_host if verify_host != SENTINEL extra[:enable_trigger_body_dto] = _body if !_body.empty? enable_with_http_info_impl(connected_account_id, trigger_name, extra) end diff --git a/ruby/lib/composio/models/enable_trigger_body_dto.rb b/ruby/lib/composio/models/enable_trigger_body_dto.rb index 136ac91..b33a057 100644 --- a/ruby/lib/composio/models/enable_trigger_body_dto.rb +++ b/ruby/lib/composio/models/enable_trigger_body_dto.rb @@ -14,10 +14,14 @@ class EnableTriggerBodyDTO # The trigger configuration attr_accessor :trigger_config + # The verify host + attr_accessor :verify_host + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'trigger_config' => :'triggerConfig' + :'trigger_config' => :'triggerConfig', + :'verify_host' => :'verifyHost' } end @@ -29,7 +33,8 @@ def self.acceptable_attributes # Attribute type mapping. def self.openapi_types { - :'trigger_config' => :'Object' + :'trigger_config' => :'Object', + :'verify_host' => :'String' } end @@ -57,6 +62,10 @@ def initialize(attributes = {}) if attributes.key?(:'trigger_config') self.trigger_config = attributes[:'trigger_config'] end + + if attributes.key?(:'verify_host') + self.verify_host = attributes[:'verify_host'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -82,7 +91,8 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - trigger_config == o.trigger_config + trigger_config == o.trigger_config && + verify_host == o.verify_host end # @see the `==` method @@ -94,7 +104,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [trigger_config].hash + [trigger_config, verify_host].hash end # Builds the object from hash diff --git a/ruby/spec/models/enable_trigger_body_dto_spec.rb b/ruby/spec/models/enable_trigger_body_dto_spec.rb index a1992f9..1b443d7 100644 --- a/ruby/spec/models/enable_trigger_body_dto_spec.rb +++ b/ruby/spec/models/enable_trigger_body_dto_spec.rb @@ -25,4 +25,10 @@ end end + describe 'test attribute "verify_host"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end