Skip to content

Commit

Permalink
Merge pull request #65 from dubinc/speakeasy-sdk-regen-1734481661
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate 0.2.2-alpha.46
  • Loading branch information
devkiran authored Dec 18, 2024
2 parents bb9f3cb + 12e3265 commit b80f26a
Show file tree
Hide file tree
Showing 10 changed files with 44 additions and 47 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: 696b11ac8aea0ac84de6ac987269993a
docChecksum: cb382cc4468d569fac201d1bf8058387
docVersion: 0.0.1
speakeasyVersion: 1.453.10
generationVersion: 2.474.15
releaseVersion: 0.2.2-alpha.45
configChecksum: 4618f89a9a0384516a943aac284eb368
speakeasyVersion: 1.456.0
generationVersion: 2.481.0
releaseVersion: 0.2.2-alpha.46
configChecksum: 110f8d5546ff85a14374a226ec17c704
repoURL: https://github.com/dubinc/dub-ruby.git
installationURL: https://github.com/dubinc/dub-ruby
published: true
features:
ruby:
core: 3.4.2
core: 3.4.5
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": [], "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>", "payoutMethodId": "<id>", "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": []}
"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": [], "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>", "payoutMethodId": "<id>", "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": []}
"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.45
version: 0.2.2-alpha.46
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.10
speakeasyVersion: 1.456.0
sources:
dub:
sourceNamespace: dub
sourceRevisionDigest: sha256:978c517865917582a98fc2b3862077ad97f642317d2f688e728417f111dc8d9f
sourceBlobDigest: sha256:4fb9afd3f82041cb034a365f95133390b69b22cbb6bd915dea4c7ce235cc144b
sourceRevisionDigest: sha256:125fb377eb94157f33fddc9e0236e947fadb07a67bd1e77489fb435d6fa21897
sourceBlobDigest: sha256:1a0d16219c5d15e56c8d4f3010b89035f7ea6d5af284d33241f231f8e87d361c
tags:
- latest
- speakeasy-sdk-regen-1733876933
- speakeasy-sdk-regen-1734481661
- 0.0.1
targets:
my-first-target:
source: dub
sourceNamespace: dub
sourceRevisionDigest: sha256:978c517865917582a98fc2b3862077ad97f642317d2f688e728417f111dc8d9f
sourceBlobDigest: sha256:4fb9afd3f82041cb034a365f95133390b69b22cbb6bd915dea4c7ce235cc144b
sourceRevisionDigest: sha256:125fb377eb94157f33fddc9e0236e947fadb07a67bd1e77489fb435d6fa21897
sourceBlobDigest: sha256:1a0d16219c5d15e56c8d4f3010b89035f7ea6d5af284d33241f231f8e87d361c
codeSamplesNamespace: code-samples-ruby-my-first-target
codeSamplesRevisionDigest: sha256:29612da3e5f57dffc61fb22a244c0ba54e5a9d0f3e22c69567c9461c933e73f0
codeSamplesRevisionDigest: sha256:be430496c5ffd6e93aea865088a78f98e5796fd60153f3d2810c5d230e9ebcb6
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
8 changes: 4 additions & 4 deletions 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.45)
dub (0.2.2.pre.alpha.46)
faraday
faraday-multipart
rack
Expand All @@ -17,13 +17,13 @@ GEM
faraday-net_http (>= 2.0, < 3.5)
json
logger
faraday-multipart (1.0.4)
multipart-post (~> 2)
faraday-multipart (1.1.0)
multipart-post (~> 2.0)
faraday-net_http (3.4.0)
net-http (>= 0.5.0)
json (2.8.2)
language_server-protocol (3.17.0.3)
logger (1.6.2)
logger (1.6.3)
minitest (5.25.2)
multipart-post (2.4.1)
net-http (0.6.0)
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -598,4 +598,14 @@ Based on:
### Generated
- [ruby v0.2.2-alpha.45] .
### Releases
- [Ruby Gems v0.2.2-alpha.45] https://rubygems.org/gems/dub/versions/0.2.2-alpha.45 - .
- [Ruby Gems v0.2.2-alpha.45] https://rubygems.org/gems/dub/versions/0.2.2-alpha.45 - .

## 2024-12-18 00:27:38
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.456.0 (2.481.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [ruby v0.2.2-alpha.46] .
### Releases
- [Ruby Gems v0.2.2-alpha.46] https://rubygems.org/gems/dub/versions/0.2.2-alpha.46 - .
7 changes: 2 additions & 5 deletions docs/models/shared/workspaceschema.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
| `billing_cycle_start` | *::Float* | :heavy_check_mark: | The date and time when the billing cycle starts for the workspace. |
| `payment_failed_at` | *::String* | :heavy_check_mark: | The date and time when the payment failed for the workspace. |
| `stripe_connect_id` | *::String* | :heavy_check_mark: | [BETA – Dub Conversions]: The Stripe Connect ID of the workspace. |
| `payout_method_id` | *::String* | :heavy_check_mark: | [BETA – Dub Partners]: The ID of the payment method for partner payouts. |
| `usage` | *::Float* | :heavy_check_mark: | The usage of the workspace. |
| `usage_limit` | *::Float* | :heavy_check_mark: | The usage limit of the workspace. |
| `links_usage` | *::Float* | :heavy_check_mark: | The links usage of the workspace. |
Expand All @@ -31,8 +32,4 @@
| `created_at` | *::String* | :heavy_check_mark: | The date and time when the workspace was created. |
| `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. |
| `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. |
| `bank_account_verified` | *T::Boolean* | :heavy_check_mark: | [BETA – Dub Partners]: Whether the bank account is verified. |
| `flags` | T::Hash[Symbol, *T::Boolean*] | :heavy_minus_sign: | The feature flags of the workspace, indicating which features are enabled. |
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.45'
s.version = '0.2.2-alpha.46'
s.platform = Gem::Platform::RUBY
s.licenses = ['Apache-2.0']
s.summary = ''
Expand Down
19 changes: 5 additions & 14 deletions lib/open_api_sdk/models/shared/workspaceschema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ class WorkspaceSchema < ::OpenApiSDK::Utils::FieldAugmented
field :ai_limit, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('aiLimit') } }
# The AI usage of the workspace.
field :ai_usage, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('aiUsage') } }
# [BETA – Dub Partners]: The name of the connected bank account.
field :bank_account_name, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('bankAccountName') } }
# [BETA – Dub Partners]: Whether the bank account is verified.
field :bank_account_verified, T::Boolean, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('bankAccountVerified') } }
# The date and time when the billing cycle starts for the workspace.
field :billing_cycle_start, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('billingCycleStart') } }
# Whether the workspace has conversion tracking enabled (d.to/conversions).
Expand All @@ -43,14 +39,12 @@ class WorkspaceSchema < ::OpenApiSDK::Utils::FieldAugmented
field :logo, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('logo') } }
# The name of the workspace.
field :name, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('name') } }
# [BETA – Dub Partners]: The partial account number of the bank account.
field :partial_account_number, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('partialAccountNumber') } }
# The date and time when the payment failed for the workspace.
field :payment_failed_at, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('paymentFailedAt') } }
# [BETA – Dub Partners]: The ID of the payment method for partner payouts.
field :payout_method_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('payoutMethodId') } }
# 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) } }
# [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).
field :sales_limit, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('salesLimit') } }
# The dollar amount of tracked revenue in the current billing cycle (in cents).
Expand All @@ -75,12 +69,10 @@ 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, 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)
sig { params(ai_limit: ::Float, ai_usage: ::Float, 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, payment_failed_at: ::String, payout_method_id: ::String, plan: ::OpenApiSDK::Shared::Plan, 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, 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, payment_failed_at: nil, payout_method_id: nil, plan: 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
@bank_account_verified = bank_account_verified
@billing_cycle_start = billing_cycle_start
@conversion_enabled = conversion_enabled
@created_at = created_at
Expand All @@ -93,10 +85,9 @@ def initialize(ai_limit: nil, ai_usage: nil, bank_account_name: nil, bank_accoun
@links_usage = links_usage
@logo = logo
@name = name
@partial_account_number = partial_account_number
@payment_failed_at = payment_failed_at
@payout_method_id = payout_method_id
@plan = plan
@routing_number = routing_number
@sales_limit = sales_limit
@sales_usage = sales_usage
@slug = slug
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.45'
@gen_version = '2.474.15'
@user_agent = 'speakeasy-sdk/ruby 0.2.2-alpha.45 2.474.15 0.0.1 dub'
@sdk_version = '0.2.2-alpha.46'
@gen_version = '2.481.0'
@user_agent = 'speakeasy-sdk/ruby 0.2.2-alpha.46 2.481.0 0.0.1 dub'
end

sig { returns([String, T::Hash[Symbol, String]]) }
Expand Down
Loading

0 comments on commit b80f26a

Please sign in to comment.