From 84bbf542ecb85780e078b348cb25877dfc3628f0 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 7 Dec 2024 00:29:15 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.453.1 --- .speakeasy/gen.lock | 16 ++++++++-------- .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 14 +++++++------- Gemfile.lock | 2 +- RELEASES.md | 12 +++++++++++- docs/models/shared/workspaceschema.md | 1 - dub.gemspec | 2 +- .../models/shared/workspaceschema.rb | 7 ++----- lib/open_api_sdk/sdkconfiguration.rb | 6 +++--- lib/open_api_sdk/utils/utils.rb | 2 +- 10 files changed, 35 insertions(+), 29 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 1096629..a32a912 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,18 +1,18 @@ lockVersion: 2.0.0 id: 5a2dd83e-da98-455b-8ef9-0100a914efdf management: - docChecksum: da455826be171d9d1ff0d376f0695b24 + docChecksum: 1de3a03409e745a2e8bebe20674c1eeb docVersion: 0.0.1 - speakeasyVersion: 1.453.0 - generationVersion: 2.472.1 - releaseVersion: 0.2.2-alpha.43 - configChecksum: e177e12b80730ddf13edbd534fd588ab + speakeasyVersion: 1.453.1 + generationVersion: 2.474.4 + releaseVersion: 0.2.2-alpha.44 + configChecksum: dfdca522118a4e36294cba5e00cfe929 repoURL: https://github.com/dubinc/dub-ruby.git installationURL: https://github.com/dubinc/dub-ruby published: true features: ruby: - core: 3.4.1 + core: 3.4.2 deprecations: 2.81.1 examples: 2.81.3 flattening: 2.81.1 @@ -753,7 +753,7 @@ examples: idOrSlug: "" responses: "200": - application/json: {"id": "", "name": "", "slug": "", "logo": "", "inviteCode": "", "plan": "business extra", "stripeId": "", "billingCycleStart": "900.65", "paymentFailedAt": "", "stripeConnectId": "", "usage": "5588.34", "usageLimit": "8441.99", "linksUsage": "5442.21", "linksLimit": "8306.36", "salesUsage": "5212.35", "salesLimit": "785.92", "domainsLimit": "9699.61", "tagsLimit": "8661.61", "usersLimit": "4580.49", "aiUsage": "7352.87", "aiLimit": "4508.24", "conversionEnabled": true, "dotLinkClaimed": true, "createdAt": "", "users": [], "domains": [], "publishableKey": "", "bankAccountName": "", "partialAccountNumber": "", "routingNumber": "", "bankAccountVerified": false} + application/json: {"id": "", "name": "", "slug": "", "logo": "", "inviteCode": "", "plan": "business extra", "stripeId": "", "billingCycleStart": "900.65", "paymentFailedAt": "", "stripeConnectId": "", "usage": "5588.34", "usageLimit": "8441.99", "linksUsage": "5442.21", "linksLimit": "8306.36", "salesUsage": "5212.35", "salesLimit": "785.92", "domainsLimit": "9699.61", "tagsLimit": "8661.61", "usersLimit": "4580.49", "aiUsage": "7352.87", "aiLimit": "4508.24", "conversionEnabled": true, "dotLinkClaimed": true, "createdAt": "", "users": [], "domains": [], "bankAccountName": "", "partialAccountNumber": "", "routingNumber": "", "bankAccountVerified": false} "400": application/json: {"error": {"code": "bad_request", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#bad-request"}} "401": @@ -779,7 +779,7 @@ examples: idOrSlug: "" responses: "200": - application/json: {"id": "", "name": "", "slug": "", "logo": "", "inviteCode": "", "plan": "enterprise", "stripeId": "", "billingCycleStart": "245.55", "paymentFailedAt": "", "stripeConnectId": "", "usage": "5971.29", "usageLimit": "156.52", "linksUsage": "3446.2", "linksLimit": "7084.55", "salesUsage": "9914.64", "salesLimit": "2703.24", "domainsLimit": "6276.9", "tagsLimit": "6841.99", "usersLimit": "4888.52", "aiUsage": "4430.76", "aiLimit": "9840.08", "conversionEnabled": true, "dotLinkClaimed": false, "createdAt": "", "users": [], "domains": [], "publishableKey": "", "bankAccountName": "", "partialAccountNumber": "", "routingNumber": "", "bankAccountVerified": false} + application/json: {"id": "", "name": "", "slug": "", "logo": "", "inviteCode": "", "plan": "enterprise", "stripeId": "", "billingCycleStart": "245.55", "paymentFailedAt": "", "stripeConnectId": "", "usage": "5971.29", "usageLimit": "156.52", "linksUsage": "3446.2", "linksLimit": "7084.55", "salesUsage": "9914.64", "salesLimit": "2703.24", "domainsLimit": "6276.9", "tagsLimit": "6841.99", "usersLimit": "4888.52", "aiUsage": "4430.76", "aiLimit": "9840.08", "conversionEnabled": true, "dotLinkClaimed": false, "createdAt": "", "users": [], "domains": [], "bankAccountName": "", "partialAccountNumber": "", "routingNumber": "", "bankAccountVerified": false} "400": application/json: {"error": {"code": "bad_request", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#bad-request"}} "401": diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 8531695..b57b3df 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -13,7 +13,7 @@ generation: oAuth2ClientCredentialsEnabled: true oAuth2PasswordEnabled: false ruby: - version: 0.2.2-alpha.43 + version: 0.2.2-alpha.44 author: Dub description: Ruby Client SDK Generated by Speakeasy imports: diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index d1e88eb..eee7383 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,21 +1,21 @@ -speakeasyVersion: 1.453.0 +speakeasyVersion: 1.453.1 sources: dub: sourceNamespace: dub - sourceRevisionDigest: sha256:8bc3a13b184ef46bdb008901de5787ab67fe235e1df98be7e32af3bce8e394e4 - sourceBlobDigest: sha256:98d898001f0ef6455618c09c8c6a368877c2fc520cb3d1ed70a17728d4775a9e + sourceRevisionDigest: sha256:39633506dd318475cfb26087075212a07611057a06169a31c883d6c6607ec12d + sourceBlobDigest: sha256:f6e6d4ce8b927fb6b730f8b1c3836e9d28e68077ed46be1c30edd19532956a53 tags: - latest - - speakeasy-sdk-regen-1733444916 + - speakeasy-sdk-regen-1733531300 - 0.0.1 targets: my-first-target: source: dub sourceNamespace: dub - sourceRevisionDigest: sha256:8bc3a13b184ef46bdb008901de5787ab67fe235e1df98be7e32af3bce8e394e4 - sourceBlobDigest: sha256:98d898001f0ef6455618c09c8c6a368877c2fc520cb3d1ed70a17728d4775a9e + sourceRevisionDigest: sha256:39633506dd318475cfb26087075212a07611057a06169a31c883d6c6607ec12d + sourceBlobDigest: sha256:f6e6d4ce8b927fb6b730f8b1c3836e9d28e68077ed46be1c30edd19532956a53 codeSamplesNamespace: code-samples-ruby-my-first-target - codeSamplesRevisionDigest: sha256:c6e16674848edbbcc641c9f9932aa88c2bb12a7c7919ee6e33ca211ae7bd51fd + codeSamplesRevisionDigest: sha256:02bed900386d7247b076783198764920203a5d9206259ab544266bacebb5037a workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/Gemfile.lock b/Gemfile.lock index a71831b..6fb18fc 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - dub (0.2.2.pre.alpha.43) + dub (0.2.2.pre.alpha.44) faraday faraday-multipart rack diff --git a/RELEASES.md b/RELEASES.md index 713a445..3a7e2b0 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -578,4 +578,14 @@ Based on: ### Generated - [ruby v0.2.2-alpha.43] . ### Releases -- [Ruby Gems v0.2.2-alpha.43] https://rubygems.org/gems/dub/versions/0.2.2-alpha.43 - . \ No newline at end of file +- [Ruby Gems v0.2.2-alpha.43] https://rubygems.org/gems/dub/versions/0.2.2-alpha.43 - . + +## 2024-12-07 00:28:15 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.453.1 (2.474.4) https://github.com/speakeasy-api/speakeasy +### Generated +- [ruby v0.2.2-alpha.44] . +### Releases +- [Ruby Gems v0.2.2-alpha.44] https://rubygems.org/gems/dub/versions/0.2.2-alpha.44 - . \ No newline at end of file diff --git a/docs/models/shared/workspaceschema.md b/docs/models/shared/workspaceschema.md index 3b8be39..42ecca9 100644 --- a/docs/models/shared/workspaceschema.md +++ b/docs/models/shared/workspaceschema.md @@ -32,7 +32,6 @@ | `users` | T::Array<[::OpenApiSDK::Shared::Users](../../models/shared/users.md)> | :heavy_check_mark: | The role of the authenticated user in the workspace. | | `domains` | T::Array<[::OpenApiSDK::Shared::Domains](../../models/shared/domains.md)> | :heavy_check_mark: | The domains of the workspace. | | `flags` | T::Hash[Symbol, *T::Boolean*] | :heavy_minus_sign: | The feature flags of the workspace, indicating which features are enabled. | -| `publishable_key` | *::String* | :heavy_check_mark: | The publishable key of the workspace. | | `bank_account_name` | *::String* | :heavy_check_mark: | [BETA – Dub Partners]: The name of the connected bank account. | | `partial_account_number` | *::String* | :heavy_check_mark: | [BETA – Dub Partners]: The partial account number of the bank account. | | `routing_number` | *::String* | :heavy_check_mark: | [BETA – Dub Partners]: The routing number of the bank account. | diff --git a/dub.gemspec b/dub.gemspec index e9fd4c0..f42952a 100644 --- a/dub.gemspec +++ b/dub.gemspec @@ -4,7 +4,7 @@ $LOAD_PATH.push File.expand_path('lib', __dir__) Gem::Specification.new do |s| s.name = 'dub' - s.version = '0.2.2-alpha.43' + s.version = '0.2.2-alpha.44' s.platform = Gem::Platform::RUBY s.licenses = ['Apache-2.0'] s.summary = '' diff --git a/lib/open_api_sdk/models/shared/workspaceschema.rb b/lib/open_api_sdk/models/shared/workspaceschema.rb index f31aa4d..147c834 100644 --- a/lib/open_api_sdk/models/shared/workspaceschema.rb +++ b/lib/open_api_sdk/models/shared/workspaceschema.rb @@ -49,8 +49,6 @@ class WorkspaceSchema < ::OpenApiSDK::Utils::FieldAugmented field :payment_failed_at, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('paymentFailedAt') } } # The plan of the workspace. field :plan, ::OpenApiSDK::Shared::Plan, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('plan'), 'decoder': Utils.enum_from_string(::OpenApiSDK::Shared::Plan, false) } } - # The publishable key of the workspace. - field :publishable_key, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('publishableKey') } } # [BETA – Dub Partners]: The routing number of the bank account. field :routing_number, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('routingNumber') } } # The limit of tracked revenue in the current billing cycle (in cents). @@ -77,8 +75,8 @@ class WorkspaceSchema < ::OpenApiSDK::Utils::FieldAugmented field :flags, T.nilable(T::Hash[Symbol, T::Boolean]), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('flags') } } - sig { params(ai_limit: ::Float, ai_usage: ::Float, bank_account_name: ::String, bank_account_verified: T::Boolean, billing_cycle_start: ::Float, conversion_enabled: T::Boolean, created_at: ::String, domains: T::Array[::OpenApiSDK::Shared::Domains], domains_limit: ::Float, dot_link_claimed: T::Boolean, id: ::String, invite_code: ::String, links_limit: ::Float, links_usage: ::Float, logo: ::String, name: ::String, partial_account_number: ::String, payment_failed_at: ::String, plan: ::OpenApiSDK::Shared::Plan, publishable_key: ::String, routing_number: ::String, sales_limit: ::Float, sales_usage: ::Float, slug: ::String, stripe_connect_id: ::String, stripe_id: ::String, tags_limit: ::Float, usage: ::Float, usage_limit: ::Float, users: T::Array[::OpenApiSDK::Shared::Users], users_limit: ::Float, flags: T.nilable(T::Hash[Symbol, T::Boolean])).void } - def initialize(ai_limit: nil, ai_usage: nil, bank_account_name: nil, bank_account_verified: nil, billing_cycle_start: nil, conversion_enabled: nil, created_at: nil, domains: nil, domains_limit: nil, dot_link_claimed: nil, id: nil, invite_code: nil, links_limit: nil, links_usage: nil, logo: nil, name: nil, partial_account_number: nil, payment_failed_at: nil, plan: nil, publishable_key: nil, routing_number: nil, sales_limit: nil, sales_usage: nil, slug: nil, stripe_connect_id: nil, stripe_id: nil, tags_limit: nil, usage: nil, usage_limit: nil, users: nil, users_limit: nil, flags: nil) + sig { params(ai_limit: ::Float, ai_usage: ::Float, bank_account_name: ::String, bank_account_verified: T::Boolean, billing_cycle_start: ::Float, conversion_enabled: T::Boolean, created_at: ::String, domains: T::Array[::OpenApiSDK::Shared::Domains], domains_limit: ::Float, dot_link_claimed: T::Boolean, id: ::String, invite_code: ::String, links_limit: ::Float, links_usage: ::Float, logo: ::String, name: ::String, partial_account_number: ::String, payment_failed_at: ::String, plan: ::OpenApiSDK::Shared::Plan, routing_number: ::String, sales_limit: ::Float, sales_usage: ::Float, slug: ::String, stripe_connect_id: ::String, stripe_id: ::String, tags_limit: ::Float, usage: ::Float, usage_limit: ::Float, users: T::Array[::OpenApiSDK::Shared::Users], users_limit: ::Float, flags: T.nilable(T::Hash[Symbol, T::Boolean])).void } + def initialize(ai_limit: nil, ai_usage: nil, bank_account_name: nil, bank_account_verified: nil, billing_cycle_start: nil, conversion_enabled: nil, created_at: nil, domains: nil, domains_limit: nil, dot_link_claimed: nil, id: nil, invite_code: nil, links_limit: nil, links_usage: nil, logo: nil, name: nil, partial_account_number: nil, payment_failed_at: nil, plan: nil, routing_number: nil, sales_limit: nil, sales_usage: nil, slug: nil, stripe_connect_id: nil, stripe_id: nil, tags_limit: nil, usage: nil, usage_limit: nil, users: nil, users_limit: nil, flags: nil) @ai_limit = ai_limit @ai_usage = ai_usage @bank_account_name = bank_account_name @@ -98,7 +96,6 @@ def initialize(ai_limit: nil, ai_usage: nil, bank_account_name: nil, bank_accoun @partial_account_number = partial_account_number @payment_failed_at = payment_failed_at @plan = plan - @publishable_key = publishable_key @routing_number = routing_number @sales_limit = sales_limit @sales_usage = sales_usage diff --git a/lib/open_api_sdk/sdkconfiguration.rb b/lib/open_api_sdk/sdkconfiguration.rb index 0fa2070..99a5f1a 100644 --- a/lib/open_api_sdk/sdkconfiguration.rb +++ b/lib/open_api_sdk/sdkconfiguration.rb @@ -38,9 +38,9 @@ def initialize(client, security, server_url, server_idx) @security = security @language = 'ruby' @openapi_doc_version = '0.0.1' - @sdk_version = '0.2.2-alpha.43' - @gen_version = '2.472.1' - @user_agent = 'speakeasy-sdk/ruby 0.2.2-alpha.43 2.472.1 0.0.1 dub' + @sdk_version = '0.2.2-alpha.44' + @gen_version = '2.474.4' + @user_agent = 'speakeasy-sdk/ruby 0.2.2-alpha.44 2.474.4 0.0.1 dub' end sig { returns([String, T::Hash[Symbol, String]]) } diff --git a/lib/open_api_sdk/utils/utils.rb b/lib/open_api_sdk/utils/utils.rb index 2947b3f..5bd479c 100644 --- a/lib/open_api_sdk/utils/utils.rb +++ b/lib/open_api_sdk/utils/utils.rb @@ -358,7 +358,7 @@ def self.generate_url(clazz, server_url, path, path_params, gbls = nil) sig { params(content_type: String, pattern: String).returns(T::Boolean) } def self.match_content_type(content_type, pattern) - return true if content_type == pattern || pattern == '*' || pattern == '*/*' + return true if content_type == pattern || ['*', '*/*'].include?(pattern) pieces = content_type.split(';') pieces.each do |piece|