Skip to content

Commit 3d8603f

Browse files
authored
Merge pull request #126 from dubinc/speakeasy-sdk-regen-1752180427
chore: 🐝 Update SDK - Generate 0.2.2-alpha.131
2 parents 7e96197 + 3d0e620 commit 3d8603f

16 files changed

Lines changed: 70 additions & 229 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
bin/
2+
sorbet/
13
**/.speakeasy/temp/
24
**/.speakeasy/logs/
35
.speakeasy/temp/

.speakeasy/gen.lock

Lines changed: 28 additions & 28 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ generation:
1717
oAuth2ClientCredentialsEnabled: true
1818
oAuth2PasswordEnabled: false
1919
ruby:
20-
version: 0.2.2-alpha.129
20+
version: 0.2.2-alpha.131
2121
additionalDependencies:
2222
development: {}
2323
runtime: {}

.speakeasy/workflow.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@ speakeasyVersion: 1.526.0
22
sources:
33
dub:
44
sourceNamespace: dub
5-
sourceRevisionDigest: sha256:60b4110749047b66c670556c87a1168919b99baf77babc638742b52d1a984f3b
6-
sourceBlobDigest: sha256:10ba86a2637ecec0bfb2270c015fdd8a6f2c5b99ff7b78730d70efe909d354cf
5+
sourceRevisionDigest: sha256:fe11ba45a54452fb7549455054a2a586fcccfded4e65172f6f1a40eb06f5cc52
6+
sourceBlobDigest: sha256:e1ff17fb00ae029bf9d914ce735b80c02580e6238ccc3497f7f841c8395db95f
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1751762121
9+
- speakeasy-sdk-regen-1752180427
1010
- 0.0.1
1111
targets:
1212
my-first-target:
1313
source: dub
1414
sourceNamespace: dub
15-
sourceRevisionDigest: sha256:60b4110749047b66c670556c87a1168919b99baf77babc638742b52d1a984f3b
16-
sourceBlobDigest: sha256:10ba86a2637ecec0bfb2270c015fdd8a6f2c5b99ff7b78730d70efe909d354cf
15+
sourceRevisionDigest: sha256:fe11ba45a54452fb7549455054a2a586fcccfded4e65172f6f1a40eb06f5cc52
16+
sourceBlobDigest: sha256:e1ff17fb00ae029bf9d914ce735b80c02580e6238ccc3497f7f841c8395db95f
1717
codeSamplesNamespace: code-samples-ruby-my-first-target
18-
codeSamplesRevisionDigest: sha256:f88fc3a9fbf8b718c36a29b69b4d3198a83d098191c1c46eafda770fb7cfa6c7
18+
codeSamplesRevisionDigest: sha256:7fa5d128aa6e915d73ad7d09243e783c48f7487163970b0173e7039fa5f5801e
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
dub (0.2.2.pre.alpha.129)
4+
dub (0.2.2.pre.alpha.131)
55
faraday
66
faraday-multipart
77
faraday-retry (~> 2.2.1)

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ When custom error responses are specified for an operation, the SDK may also thr
294294
```ruby
295295
require 'dub'
296296

297+
Models = ::OpenApiSDK::Models
297298
s = ::OpenApiSDK::Dub.new(
298299
security: Models::Shared::Security.new(
299300
token: 'DUB_API_KEY',
@@ -319,9 +320,9 @@ begin
319320
],
320321
)
321322

322-
res = s.links.create(req)
323+
res = s.links.create(request: req)
323324

324-
if ! res.link_schema.nil?
325+
unless res.nil?
325326
# handle response
326327
end
327328
rescue Models::Errors::BadRequest => e

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1208,4 +1208,14 @@ Based on:
12081208
### Generated
12091209
- [ruby v0.2.2-alpha.129] .
12101210
### Releases
1211-
- [Ruby Gems v0.2.2-alpha.129] https://rubygems.org/gems/dub/versions/0.2.2-alpha.129 - .
1211+
- [Ruby Gems v0.2.2-alpha.129] https://rubygems.org/gems/dub/versions/0.2.2-alpha.129 - .
1212+
1213+
## 2025-07-10 20:46:52
1214+
### Changes
1215+
Based on:
1216+
- OpenAPI Doc
1217+
- Speakeasy CLI 1.526.0 (2.563.0) https://github.com/speakeasy-api/speakeasy
1218+
### Generated
1219+
- [ruby v0.2.2-alpha.131] .
1220+
### Releases
1221+
- [Ruby Gems v0.2.2-alpha.131] https://rubygems.org/gems/dub/versions/0.2.2-alpha.131 - .

codeSamples.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,13 +242,13 @@ actions:
242242
"x-codeSamples":
243243
- "lang": "ruby"
244244
"label": "trackLead"
245-
"source": "require 'dub'\n\ns = ::OpenApiSDK::Dub.new(\n security: ::OpenApiSDK::Shared::Security.new(\n token: \"DUB_API_KEY\",\n ),\n )\n\nreq = ::OpenApiSDK::Operations::TrackLeadRequestBody.new(\n click_id: \"<id>\",\n event_name: \"Sign up\",\n external_id: \"<id>\",\n)\n\nres = s.track.lead(req)\n\nif ! res.object.nil?\n # handle response\nend"
245+
"source": "require 'dub'\n\ns = ::OpenApiSDK::Dub.new(\n security: ::OpenApiSDK::Shared::Security.new(\n token: \"DUB_API_KEY\",\n ),\n )\n\nreq = ::OpenApiSDK::Operations::TrackLeadRequestBody.new(\n click_id: \"<id>\",\n event_name: \"Sign up\",\n customer_external_id: \"<id>\",\n)\n\nres = s.track.lead(req)\n\nif ! res.object.nil?\n # handle response\nend"
246246
- target: $["paths"]["/track/sale"]["post"]
247247
update:
248248
"x-codeSamples":
249249
- "lang": "ruby"
250250
"label": "trackSale"
251-
"source": "require 'dub'\n\ns = ::OpenApiSDK::Dub.new(\n security: ::OpenApiSDK::Shared::Security.new(\n token: \"DUB_API_KEY\",\n ),\n )\n\nreq = ::OpenApiSDK::Operations::TrackSaleRequestBody.new(\n external_id: \"<id>\",\n amount: 996_500,\n event_name: \"Invoice paid\",\n payment_processor: ::OpenApiSDK::Operations::PaymentProcessor::CUSTOM,\n lead_event_name: \"Cloned template 1481267\",\n)\n\nres = s.track.sale(req)\n\nif ! res.object.nil?\n # handle response\nend"
251+
"source": "require 'dub'\n\ns = ::OpenApiSDK::Dub.new(\n security: ::OpenApiSDK::Shared::Security.new(\n token: \"DUB_API_KEY\",\n ),\n )\n\nreq = ::OpenApiSDK::Operations::TrackSaleRequestBody.new(\n customer_external_id: \"<id>\",\n amount: 996_500,\n event_name: \"Invoice paid\",\n payment_processor: ::OpenApiSDK::Operations::PaymentProcessor::CUSTOM,\n lead_event_name: \"Cloned template 1481267\",\n)\n\nres = s.track.sale(req)\n\nif ! res.object.nil?\n # handle response\nend"
252252
- target: $["paths"]["/workspaces/{idOrSlug}"]["get"]
253253
update:
254254
"x-codeSamples":

docs/models/operations/trackleadrequestbody.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
88
| `click_id` | *::String* | :heavy_check_mark: | The unique ID of the click that the lead conversion event is attributed to. You can read this value from `dub_id` cookie. | |
99
| `event_name` | *::String* | :heavy_check_mark: | The name of the lead event to track. Can also be used as a unique identifier to associate a given lead event for a customer for a subsequent sale event (via the `leadEventName` prop in `/track/sale`). | Sign up |
10-
| `external_id` | *::String* | :heavy_check_mark: | The unique ID of the customer in your system. Will be used to identify and attribute all future events to this customer. | |
10+
| `customer_external_id` | *::String* | :heavy_check_mark: | The unique ID of the customer in your system. Will be used to identify and attribute all future events to this customer. | |
1111
| `customer_name` | *T.nilable(::String)* | :heavy_minus_sign: | The name of the customer. If not passed, a random name will be generated (e.g. “Big Red Caribou”). | |
1212
| `customer_email` | *T.nilable(::String)* | :heavy_minus_sign: | The email address of the customer. | |
1313
| `customer_avatar` | *T.nilable(::String)* | :heavy_minus_sign: | The avatar URL of the customer. | |

0 commit comments

Comments
 (0)