Skip to content

Commit c42b170

Browse files
authored
Merge pull request #106 from dubinc/speakeasy-sdk-regen-1745368176
chore: 🐝 Update SDK - Generate 0.2.2-alpha.91
2 parents f1083c6 + 44c024a commit c42b170

File tree

12 files changed

+2983
-50
lines changed

12 files changed

+2983
-50
lines changed

.speakeasy/gen.lock

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

.speakeasy/gen.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ generation:
1111
parameterOrderingFeb2024: true
1212
requestResponseComponentNamesFeb2024: true
1313
securityFeb2025: false
14+
sharedErrorComponentsApr2025: false
1415
auth:
1516
oAuth2ClientCredentialsEnabled: true
1617
oAuth2PasswordEnabled: false
1718
ruby:
18-
version: 0.2.2-alpha.89
19+
version: 0.2.2-alpha.91
1920
additionalDependencies:
2021
development: {}
2122
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:ca25358e6fa346ab4982878f64ab56d6488292352fc58be8f0009d34ffd26d93
6-
sourceBlobDigest: sha256:ca9137ed58bcc05907cbc09a3ced829db957dca2856f168a9671b042a3476039
5+
sourceRevisionDigest: sha256:cc74d4b778663e0ec4d0b41a34c3fce58c9f511cf900986f1f907e9616dd0a2a
6+
sourceBlobDigest: sha256:7cbe6558a6785dec525c166f3e3a6fc98bee295b0f1cd0551045ba758a40ea8d
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1745333853
9+
- speakeasy-sdk-regen-1745368176
1010
- 0.0.1
1111
targets:
1212
my-first-target:
1313
source: dub
1414
sourceNamespace: dub
15-
sourceRevisionDigest: sha256:ca25358e6fa346ab4982878f64ab56d6488292352fc58be8f0009d34ffd26d93
16-
sourceBlobDigest: sha256:ca9137ed58bcc05907cbc09a3ced829db957dca2856f168a9671b042a3476039
15+
sourceRevisionDigest: sha256:cc74d4b778663e0ec4d0b41a34c3fce58c9f511cf900986f1f907e9616dd0a2a
16+
sourceBlobDigest: sha256:7cbe6558a6785dec525c166f3e3a6fc98bee295b0f1cd0551045ba758a40ea8d
1717
codeSamplesNamespace: code-samples-ruby-my-first-target
18-
codeSamplesRevisionDigest: sha256:adabed752c4fb7282226cb7bae6485b8ecef1c9f83f519ced1e31d5f5c205ace
18+
codeSamplesRevisionDigest: sha256:1f1d6dfdc00e3679db128a67368b09bb0c5ecfbc0953d546d906df9f6de27797
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.89)
4+
dub (0.2.2.pre.alpha.91)
55
faraday
66
faraday-multipart
77
faraday-retry (~> 2.2.1)
@@ -14,7 +14,7 @@ GEM
1414
specs:
1515
ast (2.4.2)
1616
erubi (1.13.0)
17-
faraday (2.13.0)
17+
faraday (2.13.1)
1818
faraday-net_http (>= 2.0, < 3.5)
1919
json
2020
logger

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1008,4 +1008,14 @@ Based on:
10081008
### Generated
10091009
- [ruby v0.2.2-alpha.89] .
10101010
### Releases
1011-
- [Ruby Gems v0.2.2-alpha.89] https://rubygems.org/gems/dub/versions/0.2.2-alpha.89 - .
1011+
- [Ruby Gems v0.2.2-alpha.89] https://rubygems.org/gems/dub/versions/0.2.2-alpha.89 - .
1012+
1013+
## 2025-04-29 00:29:49
1014+
### Changes
1015+
Based on:
1016+
- OpenAPI Doc
1017+
- Speakeasy CLI 1.526.0 (2.563.0) https://github.com/speakeasy-api/speakeasy
1018+
### Generated
1019+
- [ruby v0.2.2-alpha.91] .
1020+
### Releases
1021+
- [Ruby Gems v0.2.2-alpha.91] https://rubygems.org/gems/dub/versions/0.2.2-alpha.91 - .

codeSamples.yaml

Lines changed: 1 addition & 1 deletion
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\ns = ::OpenApiSDK::Dub.new(\n security: ::OpenApiSDK::Shared::Security.new(\n token: \"DUB_API_KEY\",\n ),\n )\n\nreq = ::OpenApiSDK::Operations::GetCustomersRequest.new()\n\nres = s.customers.list(req)\n\nif ! res.response_bodies.nil?\n # handle response\nend"
17+
"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::GetCustomersRequest.new(\n page: 1.0,\n page_size: 50.0,\n)\n\nres = s.customers.list(req)\n\nif ! res.response_bodies.nil?\n # handle response\nend"
1818
- target: $["paths"]["/customers/{id}"]["delete"]
1919
update:
2020
"x-codeSamples":

docs/models/operations/getcustomersrequest.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@
33

44
## Fields
55

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`). |
6+
| Field | Type | Required | Description | Example |
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. Takes precedence over `externalId`. | |
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. Takes precedence over `search`. | |
10+
| `search` | *T.nilable(::String)* | :heavy_minus_sign: | A search query to filter customers by email, externalId, or name. If `email` or `externalId` is provided, this will be ignored. | |
11+
| `include_expanded_fields` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Whether to include expanded fields on the customer (`link`, `partner`, `discount`). | |
12+
| `page` | *T.nilable(::Float)* | :heavy_minus_sign: | The page number for pagination. | 1 |
13+
| `page_size` | *T.nilable(::Float)* | :heavy_minus_sign: | The number of items per page. | 50 |

docs/sdks/customers/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ s = ::OpenApiSDK::Dub.new(
2626
),
2727
)
2828

29-
req = ::OpenApiSDK::Operations::GetCustomersRequest.new()
29+
req = ::OpenApiSDK::Operations::GetCustomersRequest.new(
30+
page: 1.0,
31+
page_size: 50.0,
32+
)
3033

3134
res = s.customers.list(req)
3235

dub.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ $LOAD_PATH.push File.expand_path('lib', __dir__)
44

55
Gem::Specification.new do |s|
66
s.name = 'dub'
7-
s.version = '0.2.2-alpha.89'
7+
s.version = '0.2.2-alpha.91'
88
s.platform = Gem::Platform::RUBY
99
s.licenses = ['Apache-2.0']
1010
s.summary = ''

lib/open_api_sdk/models/operations/getcustomers_request.rb

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,28 @@ module Operations
1111
class GetCustomersRequest < ::Crystalline::FieldAugmented
1212
extend T::Sig
1313

14-
# A case-sensitive filter on the list based on the customer's `email` field. The value must be a string.
14+
# A case-sensitive filter on the list based on the customer's `email` field. The value must be a string. Takes precedence over `externalId`.
1515
field :email, T.nilable(::String), { 'query_param': { 'field_name': 'email', 'style': 'form', 'explode': true } }
16-
# A case-sensitive filter on the list based on the customer's `externalId` field. The value must be a string.
16+
# A case-sensitive filter on the list based on the customer's `externalId` field. The value must be a string. Takes precedence over `search`.
1717
field :external_id, T.nilable(::String), { 'query_param': { 'field_name': 'externalId', 'style': 'form', 'explode': true } }
1818
# Whether to include expanded fields on the customer (`link`, `partner`, `discount`).
1919
field :include_expanded_fields, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'includeExpandedFields', 'style': 'form', 'explode': true } }
20+
# The page number for pagination.
21+
field :page, T.nilable(::Float), { 'query_param': { 'field_name': 'page', 'style': 'form', 'explode': true } }
22+
# The number of items per page.
23+
field :page_size, T.nilable(::Float), { 'query_param': { 'field_name': 'pageSize', 'style': 'form', 'explode': true } }
24+
# A search query to filter customers by email, externalId, or name. If `email` or `externalId` is provided, this will be ignored.
25+
field :search, T.nilable(::String), { 'query_param': { 'field_name': 'search', 'style': 'form', 'explode': true } }
2026

2127

22-
sig { params(email: T.nilable(::String), external_id: T.nilable(::String), include_expanded_fields: T.nilable(T::Boolean)).void }
23-
def initialize(email: nil, external_id: nil, include_expanded_fields: nil)
28+
sig { params(email: T.nilable(::String), external_id: T.nilable(::String), include_expanded_fields: T.nilable(T::Boolean), page: T.nilable(::Float), page_size: T.nilable(::Float), search: T.nilable(::String)).void }
29+
def initialize(email: nil, external_id: nil, include_expanded_fields: nil, page: nil, page_size: nil, search: nil)
2430
@email = email
2531
@external_id = external_id
2632
@include_expanded_fields = include_expanded_fields
33+
@page = page
34+
@page_size = page_size
35+
@search = search
2736
end
2837
end
2938
end

0 commit comments

Comments
 (0)