Skip to content

Commit

Permalink
Merge pull request #63 from dubinc/speakeasy-sdk-regen-1733531300
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate 0.2.2-alpha.44
  • Loading branch information
devkiran authored Dec 7, 2024
2 parents 57fb3bf + 84bbf54 commit 5c0f511
Show file tree
Hide file tree
Showing 10 changed files with 35 additions and 29 deletions.
16 changes: 8 additions & 8 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -753,7 +753,7 @@ examples:
idOrSlug: "<value>"
responses:
"200":
application/json: {"id": "<id>", "name": "<value>", "slug": "<value>", "logo": "<value>", "inviteCode": "<value>", "plan": "business extra", "stripeId": "<value>", "billingCycleStart": "900.65", "paymentFailedAt": "<value>", "stripeConnectId": "<value>", "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": "<value>", "users": [], "domains": [], "publishableKey": "<value>", "bankAccountName": "<value>", "partialAccountNumber": "<value>", "routingNumber": "<value>", "bankAccountVerified": false}
application/json: {"id": "<id>", "name": "<value>", "slug": "<value>", "logo": "<value>", "inviteCode": "<value>", "plan": "business extra", "stripeId": "<value>", "billingCycleStart": "900.65", "paymentFailedAt": "<value>", "stripeConnectId": "<value>", "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": "<value>", "users": [], "domains": [], "bankAccountName": "<value>", "partialAccountNumber": "<value>", "routingNumber": "<value>", "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":
Expand All @@ -779,7 +779,7 @@ examples:
idOrSlug: "<value>"
responses:
"200":
application/json: {"id": "<id>", "name": "<value>", "slug": "<value>", "logo": "<value>", "inviteCode": "<value>", "plan": "enterprise", "stripeId": "<value>", "billingCycleStart": "245.55", "paymentFailedAt": "<value>", "stripeConnectId": "<value>", "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": "<value>", "users": [], "domains": [], "publishableKey": "<value>", "bankAccountName": "<value>", "partialAccountNumber": "<value>", "routingNumber": "<value>", "bankAccountVerified": false}
application/json: {"id": "<id>", "name": "<value>", "slug": "<value>", "logo": "<value>", "inviteCode": "<value>", "plan": "enterprise", "stripeId": "<value>", "billingCycleStart": "245.55", "paymentFailedAt": "<value>", "stripeConnectId": "<value>", "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": "<value>", "users": [], "domains": [], "bankAccountName": "<value>", "partialAccountNumber": "<value>", "routingNumber": "<value>", "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":
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -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
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 - .
- [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 - .
1 change: 0 additions & 1 deletion docs/models/shared/workspaceschema.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. |
Expand Down
2 changes: 1 addition & 1 deletion dub.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ''
Expand Down
7 changes: 2 additions & 5 deletions lib/open_api_sdk/models/shared/workspaceschema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand All @@ -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
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions lib/open_api_sdk/sdkconfiguration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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]]) }
Expand Down
2 changes: 1 addition & 1 deletion lib/open_api_sdk/utils/utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down

0 comments on commit 5c0f511

Please sign in to comment.