Skip to content

Commit 3a66043

Browse files
authored
Merge pull request #69 from dubinc/speakeasy-sdk-regen-1735950369
chore: 🐝 Update SDK - Generate 0.2.2-alpha.50
2 parents e5fa613 + cd1782c commit 3a66043

File tree

17 files changed

+119
-39
lines changed

17 files changed

+119
-39
lines changed

.speakeasy/gen.lock

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
lockVersion: 2.0.0
22
id: 5a2dd83e-da98-455b-8ef9-0100a914efdf
33
management:
4-
docChecksum: b6c3f376c48f7905069b63adb30d9d19
4+
docChecksum: e904bd8a77ea57b3ba18586e860e5b93
55
docVersion: 0.0.1
6-
speakeasyVersion: 1.460.3
7-
generationVersion: 2.484.0
8-
releaseVersion: 0.2.2-alpha.49
9-
configChecksum: f929ae2a5c86837f3cd32c8d89cee377
6+
speakeasyVersion: 1.462.2
7+
generationVersion: 2.486.1
8+
releaseVersion: 0.2.2-alpha.50
9+
configChecksum: 8ca20f60de494acb27c03e685fdff35e
1010
repoURL: https://github.com/dubinc/dub-ruby.git
1111
installationURL: https://github.com/dubinc/dub-ruby
1212
published: true
1313
features:
1414
ruby:
15-
core: 3.4.5
16-
deprecations: 2.81.1
15+
core: 3.5.0
16+
deprecations: 2.81.2
1717
examples: 2.81.3
1818
flattening: 2.81.1
1919
globalSecurity: 2.81.7
@@ -77,6 +77,7 @@ generatedFiles:
7777
- docs/models/operations/getcustomerresponse.md
7878
- docs/models/operations/getcustomerresponsebody.md
7979
- docs/models/operations/getcustomersinterval.md
80+
- docs/models/operations/getcustomersrequest.md
8081
- docs/models/operations/getcustomersresponse.md
8182
- docs/models/operations/getcustomertype.md
8283
- docs/models/operations/getlinkinforequest.md
@@ -267,6 +268,7 @@ generatedFiles:
267268
- lib/open_api_sdk/models/operations/getcustomer_responsebody.rb
268269
- lib/open_api_sdk/models/operations/getcustomer_type.rb
269270
- lib/open_api_sdk/models/operations/getcustomers_interval.rb
271+
- lib/open_api_sdk/models/operations/getcustomers_request.rb
270272
- lib/open_api_sdk/models/operations/getcustomers_response.rb
271273
- lib/open_api_sdk/models/operations/getlinkinfo_request.rb
272274
- lib/open_api_sdk/models/operations/getlinkinfo_response.rb
@@ -1168,6 +1170,7 @@ examples:
11681170
parameters:
11691171
path:
11701172
id: "<id>"
1173+
query: {}
11711174
responses:
11721175
"200":
11731176
application/json: {"id": "<id>", "externalId": "<id>", "name": "<value>", "createdAt": "<value>"}
@@ -1194,6 +1197,7 @@ examples:
11941197
parameters:
11951198
path:
11961199
id: "<id>"
1200+
query: {}
11971201
responses:
11981202
"200":
11991203
application/json: {"id": "<id>", "externalId": "<id>", "name": "<value>", "createdAt": "<value>"}

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ generation:
1313
oAuth2ClientCredentialsEnabled: true
1414
oAuth2PasswordEnabled: false
1515
ruby:
16-
version: 0.2.2-alpha.49
16+
version: 0.2.2-alpha.50
1717
author: Dub
1818
description: Ruby Client SDK Generated by Speakeasy
1919
imports:

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.460.3
1+
speakeasyVersion: 1.462.2
22
sources:
33
dub:
44
sourceNamespace: dub
5-
sourceRevisionDigest: sha256:dddf8a87e22bdbe6cd02c275330fafb3693f78b361c62ed17b9449593098c463
6-
sourceBlobDigest: sha256:1b42a9880bdb51e5cadcf56873c1b05492c0ba24bf82cd416493f71c289830fa
5+
sourceRevisionDigest: sha256:62aaae2d8e03fb3ae9656f57f6040992ed409d859d733cd22a246da173e2b95e
6+
sourceBlobDigest: sha256:92f1737af067df0a426e19c6f461d5f97f94768ba5dcf52752994c635240ed36
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1735518473
9+
- speakeasy-sdk-regen-1735950369
1010
- 0.0.1
1111
targets:
1212
my-first-target:
1313
source: dub
1414
sourceNamespace: dub
15-
sourceRevisionDigest: sha256:dddf8a87e22bdbe6cd02c275330fafb3693f78b361c62ed17b9449593098c463
16-
sourceBlobDigest: sha256:1b42a9880bdb51e5cadcf56873c1b05492c0ba24bf82cd416493f71c289830fa
15+
sourceRevisionDigest: sha256:62aaae2d8e03fb3ae9656f57f6040992ed409d859d733cd22a246da173e2b95e
16+
sourceBlobDigest: sha256:92f1737af067df0a426e19c6f461d5f97f94768ba5dcf52752994c635240ed36
1717
codeSamplesNamespace: code-samples-ruby-my-first-target
18-
codeSamplesRevisionDigest: sha256:49ea397640cdc7658ed910819e1b2a883e615015818d1e12189d49e5a32ade67
18+
codeSamplesRevisionDigest: sha256:9040027627626d0d9296d0001c9e3fe16b949b832b25c9a2dd62f63abea336fe
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

Gemfile.lock

Lines changed: 2 additions & 2 deletions
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.49)
4+
dub (0.2.2.pre.alpha.50)
55
faraday
66
faraday-multipart
77
rack
@@ -102,4 +102,4 @@ DEPENDENCIES
102102
tapioca
103103

104104
BUNDLED WITH
105-
2.2.33
105+
2.5.23

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,4 +638,14 @@ Based on:
638638
### Generated
639639
- [ruby v0.2.2-alpha.49] .
640640
### Releases
641-
- [Ruby Gems v0.2.2-alpha.49] https://rubygems.org/gems/dub/versions/0.2.2-alpha.49 - .
641+
- [Ruby Gems v0.2.2-alpha.49] https://rubygems.org/gems/dub/versions/0.2.2-alpha.49 - .
642+
643+
## 2025-01-06 00:28:04
644+
### Changes
645+
Based on:
646+
- OpenAPI Doc
647+
- Speakeasy CLI 1.462.2 (2.486.1) https://github.com/speakeasy-api/speakeasy
648+
### Generated
649+
- [ruby v0.2.2-alpha.50] .
650+
### Releases
651+
- [Ruby Gems v0.2.2-alpha.50] https://rubygems.org/gems/dub/versions/0.2.2-alpha.50 - .

codeSamples.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ actions:
1414
"x-codeSamples":
1515
- "lang": "ruby"
1616
"label": "getCustomers"
17-
"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 \nres = s.customers.list()\n\nif ! res.response_bodies.nil?\n # handle response\nend"
17+
"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"
1818
- target: $["paths"]["/customers"]["post"]
1919
update:
2020
"x-codeSamples":
@@ -38,7 +38,7 @@ actions:
3838
"x-codeSamples":
3939
- "lang": "ruby"
4040
"label": "updateCustomer"
41-
"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 \nres = s.customers.update(id=\"<id>\", request_body=::OpenApiSDK::Operations::UpdateCustomerRequestBody.new())\n\nif ! res.object.nil?\n # handle response\nend"
41+
"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::UpdateCustomerRequest.new(\n id: \"<id>\",\n)\n \nres = s.customers.update(req)\n\nif ! res.object.nil?\n # handle response\nend"
4242
- target: $["paths"]["/domains"]["get"]
4343
update:
4444
"x-codeSamples":

docs/models/operations/getcustomerrequest.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
## Fields
55

6-
| Field | Type | Required | Description |
7-
| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- |
8-
| `id` | *::String* | :heavy_check_mark: | The unique identifier of the customer in Dub. |
6+
| Field | Type | Required | Description |
7+
| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
8+
| `id` | *::String* | :heavy_check_mark: | The unique identifier of the customer in Dub. |
9+
| `include_expanded_fields` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Whether to include expanded fields on the customer (`link`, `partner`, `discount`). |
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# GetCustomersRequest
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
8+
| `email` | *T.nilable(::String)* | :heavy_minus_sign: | A case-sensitive filter on the list based on the customer's `email` field. The value must be a string. |
9+
| `external_id` | *T.nilable(::String)* | :heavy_minus_sign: | A case-sensitive filter on the list based on the customer's `externalId` field. The value must be a string. |
10+
| `include_expanded_fields` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Whether to include expanded fields on the customer (`link`, `partner`, `discount`). |

docs/models/operations/updatecustomerrequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@
66
| Field | Type | Required | Description |
77
| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
88
| `id` | *::String* | :heavy_check_mark: | The unique identifier of the customer in Dub. |
9+
| `include_expanded_fields` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Whether to include expanded fields on the customer (`link`, `partner`, `discount`). |
910
| `request_body` | [T.nilable(::OpenApiSDK::Operations::UpdateCustomerRequestBody)](../../models/operations/updatecustomerrequestbody.md) | :heavy_minus_sign: | N/A |

docs/sdks/customers/README.md

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,23 @@ s.config_security(
2828
)
2929
)
3030

31+
32+
req = ::OpenApiSDK::Operations::GetCustomersRequest.new()
3133

32-
res = s.customers.list()
34+
res = s.customers.list(req)
3335

3436
if ! res.response_bodies.nil?
3537
# handle response
3638
end
3739

3840
```
3941

42+
### Parameters
43+
44+
| Parameter | Type | Required | Description |
45+
| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- |
46+
| `request` | [::OpenApiSDK::Operations::GetCustomersRequest](../../models/operations/getcustomersrequest.md) | :heavy_check_mark: | The request object to use for the request. |
47+
4048
### Response
4149

4250
**[T.nilable(::OpenApiSDK::Operations::GetCustomersResponse)](../../models/operations/getcustomersresponse.md)**
@@ -144,8 +152,12 @@ s.config_security(
144152
)
145153
)
146154

155+
156+
req = ::OpenApiSDK::Operations::UpdateCustomerRequest.new(
157+
id: "<id>",
158+
)
147159

148-
res = s.customers.update(id="<id>", request_body=::OpenApiSDK::Operations::UpdateCustomerRequestBody.new())
160+
res = s.customers.update(req)
149161

150162
if ! res.object.nil?
151163
# handle response
@@ -155,10 +167,9 @@ end
155167

156168
### Parameters
157169

158-
| Parameter | Type | Required | Description |
159-
| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
160-
| `id` | *::String* | :heavy_check_mark: | The unique identifier of the customer in Dub. |
161-
| `request_body` | [T.nilable(::OpenApiSDK::Operations::UpdateCustomerRequestBody)](../../models/operations/updatecustomerrequestbody.md) | :heavy_minus_sign: | N/A |
170+
| Parameter | Type | Required | Description |
171+
| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
172+
| `request` | [::OpenApiSDK::Operations::UpdateCustomerRequest](../../models/operations/updatecustomerrequest.md) | :heavy_check_mark: | The request object to use for the request. |
162173

163174
### Response
164175

0 commit comments

Comments
 (0)