Skip to content

Commit

Permalink
Merge pull request #74 from dubinc/speakeasy-sdk-regen-1737332822
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate 0.2.2-alpha.55
  • Loading branch information
devkiran authored Jan 20, 2025
2 parents a112cd0 + 7491c2b commit 1d6ab45
Show file tree
Hide file tree
Showing 11 changed files with 178 additions and 192 deletions.
312 changes: 145 additions & 167 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

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.54
version: 0.2.2-alpha.55
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.468.9
speakeasyVersion: 1.469.2
sources:
dub:
sourceNamespace: dub
sourceRevisionDigest: sha256:4f696c8f3f4d24652aa78110fb7e81283206f11a157609760c556227d6df46b3
sourceBlobDigest: sha256:3b9749ee4775b8022360e4efaad2a707cd10b0d65d85a424cb17498b6d1e6005
sourceRevisionDigest: sha256:72b6da342cef08dcdaa4e609c46e39eba56458bc47edff7cb958041a799714b7
sourceBlobDigest: sha256:2db078d1bdf0a1bbb76dfc80c3272d19eecccf91adb3090189e58492c31c2f9a
tags:
- latest
- speakeasy-sdk-regen-1737073570
- speakeasy-sdk-regen-1737332822
- 0.0.1
targets:
my-first-target:
source: dub
sourceNamespace: dub
sourceRevisionDigest: sha256:4f696c8f3f4d24652aa78110fb7e81283206f11a157609760c556227d6df46b3
sourceBlobDigest: sha256:3b9749ee4775b8022360e4efaad2a707cd10b0d65d85a424cb17498b6d1e6005
sourceRevisionDigest: sha256:72b6da342cef08dcdaa4e609c46e39eba56458bc47edff7cb958041a799714b7
sourceBlobDigest: sha256:2db078d1bdf0a1bbb76dfc80c3272d19eecccf91adb3090189e58492c31c2f9a
codeSamplesNamespace: code-samples-ruby-my-first-target
codeSamplesRevisionDigest: sha256:065ed9d6831ec504c4a084389bccf27a33c2232610e521db068e73f82fc4d7d7
codeSamplesRevisionDigest: sha256:44b428d9fa9bf6c3d6baa3f33060dd2aa437983cf9abaad53ec2389f5a452ecc
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.54)
dub (0.2.2.pre.alpha.55)
faraday
faraday-multipart
rack
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ end
### [customers](docs/sdks/customers/README.md)

* [list](docs/sdks/customers/README.md#list) - Retrieve a list of customers
* [create](docs/sdks/customers/README.md#create) - Create a customer
* [~~create~~](docs/sdks/customers/README.md#create) - Create a customer :warning: **Deprecated**
* [get](docs/sdks/customers/README.md#get) - Retrieve a customer
* [update](docs/sdks/customers/README.md#update) - Update a customer
* [delete](docs/sdks/customers/README.md#delete) - Delete a customer
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -688,4 +688,14 @@ Based on:
### Generated
- [ruby v0.2.2-alpha.54] .
### Releases
- [Ruby Gems v0.2.2-alpha.54] https://rubygems.org/gems/dub/versions/0.2.2-alpha.54 - .
- [Ruby Gems v0.2.2-alpha.54] https://rubygems.org/gems/dub/versions/0.2.2-alpha.54 - .

## 2025-01-20 00:26:47
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.469.2 (2.493.23) https://github.com/speakeasy-api/speakeasy
### Generated
- [ruby v0.2.2-alpha.55] .
### Releases
- [Ruby Gems v0.2.2-alpha.55] https://rubygems.org/gems/dub/versions/0.2.2-alpha.55 - .
6 changes: 0 additions & 6 deletions codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@ actions:
- "lang": "ruby"
"label": "getCustomers"
"source": "require 'dub'\n\n\ns = ::OpenApiSDK::Dub.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n token: \"DUB_API_KEY\",\n )\n)\n\n\nreq = ::OpenApiSDK::Operations::GetCustomersRequest.new()\n \nres = s.customers.list(req)\n\nif ! res.response_bodies.nil?\n # handle response\nend"
- target: $["paths"]["/customers"]["post"]
update:
"x-codeSamples":
- "lang": "ruby"
"label": "createCustomer"
"source": "require 'dub'\n\n\ns = ::OpenApiSDK::Dub.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n token: \"DUB_API_KEY\",\n )\n)\n\n\nreq = ::OpenApiSDK::Operations::CreateCustomerRequestBody.new(\n external_id: \"<id>\",\n)\n \nres = s.customers.create(req)\n\nif ! res.object.nil?\n # handle response\nend"
- target: $["paths"]["/customers/{id}"]["delete"]
update:
"x-codeSamples":
Expand Down
8 changes: 5 additions & 3 deletions docs/sdks/customers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
### Available Operations

* [list](#list) - Retrieve a list of customers
* [create](#create) - Create a customer
* [~~create~~](#create) - Create a customer :warning: **Deprecated**
* [get](#get) - Retrieve a customer
* [update](#update) - Update a customer
* [delete](#delete) - Delete a customer
Expand Down Expand Up @@ -51,9 +51,11 @@ end



## create
## ~~create~~

Create a customer for the authenticated workspace.
[Deprecated]: Customer creation can only be done via tracking a lead event. Use the /track/lead endpoint instead.

> :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible.
### Example Usage

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.54'
s.version = '0.2.2-alpha.55'
s.platform = Gem::Platform::RUBY
s.licenses = ['Apache-2.0']
s.summary = ''
Expand Down
4 changes: 3 additions & 1 deletion lib/open_api_sdk/customers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ def list(request)
sig { params(request: T.nilable(::OpenApiSDK::Operations::CreateCustomerRequestBody)).returns(::OpenApiSDK::Operations::CreateCustomerResponse) }
def create(request)
# create - Create a customer
# Create a customer for the authenticated workspace.
# [Deprecated]: Customer creation can only be done via tracking a lead event. Use the /track/lead endpoint instead.
#
# @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
url, params = @sdk_configuration.get_server_details
base_url = Utils.template_url(url, params)
url = "#{base_url}/customers"
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.54'
@gen_version = '2.493.21'
@user_agent = 'speakeasy-sdk/ruby 0.2.2-alpha.54 2.493.21 0.0.1 dub'
@sdk_version = '0.2.2-alpha.55'
@gen_version = '2.493.23'
@user_agent = 'speakeasy-sdk/ruby 0.2.2-alpha.55 2.493.23 0.0.1 dub'
end

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

0 comments on commit 1d6ab45

Please sign in to comment.