diff --git a/.release-please-manifest.json b/.release-please-manifest.json index e0b8841f..407051a9 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.89.0" + ".": "1.90.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 5a7b82c9..2923d829 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 214 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-e0a19c46b65842ff370613aac24ba8777d7b961bd46a20e936e878386e048852.yml -openapi_spec_hash: 0f635610cedd9a0aacc6d5b347c3cccf +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-3e092c1a52f33e962b8415bfa24a244fdb66783aa093e027501124cb8658881b.yml +openapi_spec_hash: 677f23c2d65201b72074b3effb7d9ad4 config_hash: a143293c5450ae8f52acad08f3102575 diff --git a/CHANGELOG.md b/CHANGELOG.md index d0d5c4bc..251c92e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.90.0 (2025-09-24) + +Full Changelog: [v1.89.0...v1.90.0](https://github.com/Increase/increase-ruby/compare/v1.89.0...v1.90.0) + +### Features + +* **api:** api update ([1d66673](https://github.com/Increase/increase-ruby/commit/1d666739b4d2b06f94ee367cb34c6254b55ab137)) + ## 1.89.0 (2025-09-24) Full Changelog: [v1.88.0...v1.89.0](https://github.com/Increase/increase-ruby/compare/v1.88.0...v1.89.0) diff --git a/Gemfile.lock b/Gemfile.lock index d3a9ebea..2cf0c4c7 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - increase (1.89.0) + increase (1.90.0) connection_pool GEM diff --git a/README.md b/README.md index 17503c41..f92e88cd 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application ```ruby -gem "increase", "~> 1.89.0" +gem "increase", "~> 1.90.0" ``` diff --git a/lib/increase/models/event_subscription_create_params.rb b/lib/increase/models/event_subscription_create_params.rb index ea85f5f4..7aafbf03 100644 --- a/lib/increase/models/event_subscription_create_params.rb +++ b/lib/increase/models/event_subscription_create_params.rb @@ -35,7 +35,13 @@ class EventSubscriptionCreateParams < Increase::Internal::Type::BaseModel # @return [String, nil] optional :shared_secret, String - # @!method initialize(url:, oauth_connection_id: nil, selected_event_category: nil, shared_secret: nil, request_options: {}) + # @!attribute status + # The status of the event subscription. Defaults to `active` if not specified. + # + # @return [Symbol, Increase::Models::EventSubscriptionCreateParams::Status, nil] + optional :status, enum: -> { Increase::EventSubscriptionCreateParams::Status } + + # @!method initialize(url:, oauth_connection_id: nil, selected_event_category: nil, shared_secret: nil, status: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Increase::Models::EventSubscriptionCreateParams} for more details. # @@ -47,6 +53,8 @@ class EventSubscriptionCreateParams < Increase::Internal::Type::BaseModel # # @param shared_secret [String] The key that will be used to sign webhooks. If no value is passed, a random stri # + # @param status [Symbol, Increase::Models::EventSubscriptionCreateParams::Status] The status of the event subscription. Defaults to `active` if not specified. + # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] # If specified, this subscription will only receive webhooks for Events with the @@ -371,6 +379,20 @@ module SelectedEventCategory # @!method self.values # @return [Array] end + + # The status of the event subscription. Defaults to `active` if not specified. + module Status + extend Increase::Internal::Type::Enum + + # The subscription is active and Events will be delivered normally. + ACTIVE = :active + + # The subscription is temporarily disabled and Events will not be delivered. + DISABLED = :disabled + + # @!method self.values + # @return [Array] + end end end end diff --git a/lib/increase/resources/event_subscriptions.rb b/lib/increase/resources/event_subscriptions.rb index c9e25b84..a395de60 100644 --- a/lib/increase/resources/event_subscriptions.rb +++ b/lib/increase/resources/event_subscriptions.rb @@ -8,7 +8,7 @@ class EventSubscriptions # # Create an Event Subscription # - # @overload create(url:, oauth_connection_id: nil, selected_event_category: nil, shared_secret: nil, request_options: {}) + # @overload create(url:, oauth_connection_id: nil, selected_event_category: nil, shared_secret: nil, status: nil, request_options: {}) # # @param url [String] The URL you'd like us to send webhooks to. # @@ -18,6 +18,8 @@ class EventSubscriptions # # @param shared_secret [String] The key that will be used to sign webhooks. If no value is passed, a random stri # + # @param status [Symbol, Increase::Models::EventSubscriptionCreateParams::Status] The status of the event subscription. Defaults to `active` if not specified. + # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # # @return [Increase::Models::EventSubscription] diff --git a/lib/increase/version.rb b/lib/increase/version.rb index 4f6f2d4b..965f016e 100644 --- a/lib/increase/version.rb +++ b/lib/increase/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Increase - VERSION = "1.89.0" + VERSION = "1.90.0" end diff --git a/rbi/increase/models/event_subscription_create_params.rbi b/rbi/increase/models/event_subscription_create_params.rbi index 3f2801f4..96b34bf6 100644 --- a/rbi/increase/models/event_subscription_create_params.rbi +++ b/rbi/increase/models/event_subscription_create_params.rbi @@ -53,6 +53,21 @@ module Increase sig { params(shared_secret: String).void } attr_writer :shared_secret + # The status of the event subscription. Defaults to `active` if not specified. + sig do + returns( + T.nilable(Increase::EventSubscriptionCreateParams::Status::OrSymbol) + ) + end + attr_reader :status + + sig do + params( + status: Increase::EventSubscriptionCreateParams::Status::OrSymbol + ).void + end + attr_writer :status + sig do params( url: String, @@ -60,6 +75,7 @@ module Increase selected_event_category: Increase::EventSubscriptionCreateParams::SelectedEventCategory::OrSymbol, shared_secret: String, + status: Increase::EventSubscriptionCreateParams::Status::OrSymbol, request_options: Increase::RequestOptions::OrHash ).returns(T.attached_class) end @@ -75,6 +91,8 @@ module Increase # The key that will be used to sign webhooks. If no value is passed, a random # string will be used as default. shared_secret: nil, + # The status of the event subscription. Defaults to `active` if not specified. + status: nil, request_options: {} ) end @@ -87,6 +105,7 @@ module Increase selected_event_category: Increase::EventSubscriptionCreateParams::SelectedEventCategory::OrSymbol, shared_secret: String, + status: Increase::EventSubscriptionCreateParams::Status::OrSymbol, request_options: Increase::RequestOptions } ) @@ -846,6 +865,41 @@ module Increase def self.values end end + + # The status of the event subscription. Defaults to `active` if not specified. + module Status + extend Increase::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Increase::EventSubscriptionCreateParams::Status) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + # The subscription is active and Events will be delivered normally. + ACTIVE = + T.let( + :active, + Increase::EventSubscriptionCreateParams::Status::TaggedSymbol + ) + + # The subscription is temporarily disabled and Events will not be delivered. + DISABLED = + T.let( + :disabled, + Increase::EventSubscriptionCreateParams::Status::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Increase::EventSubscriptionCreateParams::Status::TaggedSymbol + ] + ) + end + def self.values + end + end end end end diff --git a/rbi/increase/resources/event_subscriptions.rbi b/rbi/increase/resources/event_subscriptions.rbi index ca138e19..046588e2 100644 --- a/rbi/increase/resources/event_subscriptions.rbi +++ b/rbi/increase/resources/event_subscriptions.rbi @@ -11,6 +11,7 @@ module Increase selected_event_category: Increase::EventSubscriptionCreateParams::SelectedEventCategory::OrSymbol, shared_secret: String, + status: Increase::EventSubscriptionCreateParams::Status::OrSymbol, request_options: Increase::RequestOptions::OrHash ).returns(Increase::EventSubscription) end @@ -26,6 +27,8 @@ module Increase # The key that will be used to sign webhooks. If no value is passed, a random # string will be used as default. shared_secret: nil, + # The status of the event subscription. Defaults to `active` if not specified. + status: nil, request_options: {} ) end diff --git a/sig/increase/models/event_subscription_create_params.rbs b/sig/increase/models/event_subscription_create_params.rbs index 764053d5..f467d579 100644 --- a/sig/increase/models/event_subscription_create_params.rbs +++ b/sig/increase/models/event_subscription_create_params.rbs @@ -5,7 +5,8 @@ module Increase url: String, oauth_connection_id: String, selected_event_category: Increase::Models::EventSubscriptionCreateParams::selected_event_category, - shared_secret: String + shared_secret: String, + status: Increase::Models::EventSubscriptionCreateParams::status } & Increase::Internal::Type::request_parameters @@ -29,11 +30,18 @@ module Increase def shared_secret=: (String) -> String + attr_reader status: Increase::Models::EventSubscriptionCreateParams::status? + + def status=: ( + Increase::Models::EventSubscriptionCreateParams::status + ) -> Increase::Models::EventSubscriptionCreateParams::status + def initialize: ( url: String, ?oauth_connection_id: String, ?selected_event_category: Increase::Models::EventSubscriptionCreateParams::selected_event_category, ?shared_secret: String, + ?status: Increase::Models::EventSubscriptionCreateParams::status, ?request_options: Increase::request_opts ) -> void @@ -42,6 +50,7 @@ module Increase oauth_connection_id: String, selected_event_category: Increase::Models::EventSubscriptionCreateParams::selected_event_category, shared_secret: String, + status: Increase::Models::EventSubscriptionCreateParams::status, request_options: Increase::RequestOptions } @@ -468,6 +477,20 @@ module Increase def self?.values: -> ::Array[Increase::Models::EventSubscriptionCreateParams::selected_event_category] end + + type status = :active | :disabled + + module Status + extend Increase::Internal::Type::Enum + + # The subscription is active and Events will be delivered normally. + ACTIVE: :active + + # The subscription is temporarily disabled and Events will not be delivered. + DISABLED: :disabled + + def self?.values: -> ::Array[Increase::Models::EventSubscriptionCreateParams::status] + end end end end diff --git a/sig/increase/resources/event_subscriptions.rbs b/sig/increase/resources/event_subscriptions.rbs index 6d19323f..bff94346 100644 --- a/sig/increase/resources/event_subscriptions.rbs +++ b/sig/increase/resources/event_subscriptions.rbs @@ -6,6 +6,7 @@ module Increase ?oauth_connection_id: String, ?selected_event_category: Increase::Models::EventSubscriptionCreateParams::selected_event_category, ?shared_secret: String, + ?status: Increase::Models::EventSubscriptionCreateParams::status, ?request_options: Increase::request_opts ) -> Increase::EventSubscription