Skip to content

Commit 147476a

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.455.3
1 parent 04fa3b4 commit 147476a

36 files changed

+178
-84
lines changed

.speakeasy/gen.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
lockVersion: 2.0.0
22
id: 269b4377-e36b-42c4-9e18-aa74d5f13d72
33
management:
4-
docChecksum: 2b4023b1963941d7d087b102ba3565e5
4+
docChecksum: ccfd9ac3093db519aa1d0e7c25fa3c11
55
docVersion: 3.3.1
6-
speakeasyVersion: 1.454.2
7-
generationVersion: 2.477.4
8-
releaseVersion: 1.5.1
9-
configChecksum: 4ff630d29919dbb462871bda61665520
6+
speakeasyVersion: 1.455.3
7+
generationVersion: 2.479.3
8+
releaseVersion: 1.6.0
9+
configChecksum: ca04217722b0e019a5c5421ead276f47
1010
repoURL: https://github.com/BoltApp/bolt-go.git
1111
repoSubDirectory: .
1212
installationURL: https://github.com/BoltApp/bolt-go
1313
published: true
1414
features:
1515
go:
1616
additionalDependencies: 0.1.0
17-
core: 3.5.18
17+
core: 3.6.0
1818
defaultEnabledRetries: 0.2.0
1919
envVarSecurityUsage: 0.3.2
2020
errorUnions: 0.1.0

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.454.2
1+
speakeasyVersion: 1.455.3
22
sources:
33
bolt-go-api:
44
sourceNamespace: bolt-go-api
5-
sourceRevisionDigest: sha256:bbdde444ce4480b53d0e45bbc1265605433c63513439641f024b14f8dca86773
6-
sourceBlobDigest: sha256:d050e954f5ebd17f1c86efac05d4e8d7845f4dcff06c12c16b022d3e5b3efd75
5+
sourceRevisionDigest: sha256:2dfaa9386b195ecd8c40f8ad978cb0fdb65630eebba654f6dac46705b1a3ba73
6+
sourceBlobDigest: sha256:8cd600ffafc592ddcbc48697169b225361eea1676e5f8395cd6b3297d4a426f1
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1734048780
9+
- speakeasy-sdk-regen-1734221659
1010
- 3.3.1
1111
targets:
1212
bolt-go-sdk:
1313
source: bolt-go-api
1414
sourceNamespace: bolt-go-api
15-
sourceRevisionDigest: sha256:bbdde444ce4480b53d0e45bbc1265605433c63513439641f024b14f8dca86773
16-
sourceBlobDigest: sha256:d050e954f5ebd17f1c86efac05d4e8d7845f4dcff06c12c16b022d3e5b3efd75
15+
sourceRevisionDigest: sha256:2dfaa9386b195ecd8c40f8ad978cb0fdb65630eebba654f6dac46705b1a3ba73
16+
sourceBlobDigest: sha256:8cd600ffafc592ddcbc48697169b225361eea1676e5f8395cd6b3297d4a426f1
1717
codeSamplesNamespace: bolt-go-api-code-samples
18-
codeSamplesRevisionDigest: sha256:626ed0547d7bee84774e773aa5eeda1139b4f75a635b458cccc8b97518fa581b
18+
codeSamplesRevisionDigest: sha256:b4388cd8b1ec80ae04404204147dc38dcdb4fe07cb50b0c56e8db5a739ece81e
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,4 +238,14 @@ Based on:
238238
### Generated
239239
- [go v1.5.1] .
240240
### Releases
241-
- [Go v1.5.1] https://github.com/BoltApp/bolt-go/releases/tag/v1.5.1 - .
241+
- [Go v1.5.1] https://github.com/BoltApp/bolt-go/releases/tag/v1.5.1 - .
242+
243+
## 2024-12-15 00:14:16
244+
### Changes
245+
Based on:
246+
- OpenAPI Doc
247+
- Speakeasy CLI 1.455.3 (2.479.3) https://github.com/speakeasy-api/speakeasy
248+
### Generated
249+
- [go v1.6.0] .
250+
### Releases
251+
- [Go v1.6.0] https://github.com/BoltApp/bolt-go/releases/tag/v1.6.0 - .

account.go

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ func (s *Account) GetDetails(ctx context.Context, xPublishableKey string, xMerch
8383
return nil, err
8484
}
8585

86+
for k, v := range o.SetHeaders {
87+
req.Header.Set(k, v)
88+
}
89+
8690
globalRetryConfig := s.sdkConfiguration.RetryConfig
8791
retryConfig := o.Retries
8892
if retryConfig == nil {
@@ -297,6 +301,10 @@ func (s *Account) AddAddress(ctx context.Context, xPublishableKey string, addres
297301
return nil, err
298302
}
299303

304+
for k, v := range o.SetHeaders {
305+
req.Header.Set(k, v)
306+
}
307+
300308
globalRetryConfig := s.sdkConfiguration.RetryConfig
301309
retryConfig := o.Retries
302310
if retryConfig == nil {
@@ -512,6 +520,10 @@ func (s *Account) UpdateAddress(ctx context.Context, id string, xPublishableKey
512520
return nil, err
513521
}
514522

523+
for k, v := range o.SetHeaders {
524+
req.Header.Set(k, v)
525+
}
526+
515527
globalRetryConfig := s.sdkConfiguration.RetryConfig
516528
retryConfig := o.Retries
517529
if retryConfig == nil {
@@ -720,6 +732,10 @@ func (s *Account) DeleteAddress(ctx context.Context, id string, xPublishableKey
720732
return nil, err
721733
}
722734

735+
for k, v := range o.SetHeaders {
736+
req.Header.Set(k, v)
737+
}
738+
723739
globalRetryConfig := s.sdkConfiguration.RetryConfig
724740
retryConfig := o.Retries
725741
if retryConfig == nil {
@@ -915,6 +931,10 @@ func (s *Account) AddPaymentMethod(ctx context.Context, xPublishableKey string,
915931
return nil, err
916932
}
917933

934+
for k, v := range o.SetHeaders {
935+
req.Header.Set(k, v)
936+
}
937+
918938
globalRetryConfig := s.sdkConfiguration.RetryConfig
919939
retryConfig := o.Retries
920940
if retryConfig == nil {
@@ -1123,6 +1143,10 @@ func (s *Account) DeletePaymentMethod(ctx context.Context, id string, xPublishab
11231143
return nil, err
11241144
}
11251145

1146+
for k, v := range o.SetHeaders {
1147+
req.Header.Set(k, v)
1148+
}
1149+
11261150
globalRetryConfig := s.sdkConfiguration.RetryConfig
11271151
retryConfig := o.Retries
11281152
if retryConfig == nil {

boltsdk.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,9 @@ func New(opts ...SDKOption) *BoltSDK {
198198
sdkConfiguration: sdkConfiguration{
199199
Language: "go",
200200
OpenAPIDocVersion: "3.3.1",
201-
SDKVersion: "1.5.1",
202-
GenVersion: "2.477.4",
203-
UserAgent: "speakeasy-sdk/go 1.5.1 2.477.4 3.3.1 github.com/BoltApp/bolt-go",
201+
SDKVersion: "1.6.0",
202+
GenVersion: "2.479.3",
203+
UserAgent: "speakeasy-sdk/go 1.6.0 2.479.3 3.3.1 github.com/BoltApp/bolt-go",
204204
ServerDefaults: []map[string]string{
205205
{
206206
"environment": "api-sandbox",

gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ generation:
1313
oAuth2ClientCredentialsEnabled: false
1414
oAuth2PasswordEnabled: false
1515
go:
16-
version: 1.5.1
16+
version: 1.6.0
1717
additionalDependencies: {}
1818
allowUnknownFieldsInWeakUnions: false
1919
clientServerStatusCodesAsErrors: true

guest.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ func (s *Guest) Initialize(ctx context.Context, security operations.GuestPayment
8989
return nil, err
9090
}
9191

92+
for k, v := range o.SetHeaders {
93+
req.Header.Set(k, v)
94+
}
95+
9296
globalRetryConfig := s.sdkConfiguration.RetryConfig
9397
retryConfig := o.Retries
9498
if retryConfig == nil {
@@ -304,6 +308,10 @@ func (s *Guest) PerformAction(ctx context.Context, security operations.GuestPaym
304308
return nil, err
305309
}
306310

311+
for k, v := range o.SetHeaders {
312+
req.Header.Set(k, v)
313+
}
314+
307315
globalRetryConfig := s.sdkConfiguration.RetryConfig
308316
retryConfig := o.Retries
309317
if retryConfig == nil {

internal/utils/queryparams.go

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,11 @@ func populateDeepObjectParamsStruct(qsValues url.Values, priorScope string, stru
214214
continue
215215
}
216216

217-
scope := priorScope + "[" + qpTag.ParamName + "]"
217+
scope := priorScope
218+
219+
if !qpTag.Inline {
220+
scope = priorScope + "[" + qpTag.ParamName + "]"
221+
}
218222

219223
switch fieldValue.Kind() {
220224
case reflect.Array, reflect.Slice:
@@ -252,6 +256,13 @@ type paramTag struct {
252256
Explode bool
253257
ParamName string
254258
Serialization string
259+
260+
// Inline is a special case for union/oneOf. When a wrapper struct type is
261+
// used, each union/oneOf value field should be inlined (e.g. not appended
262+
// in deepObject style with the name) as if the value was directly on the
263+
// parent struct field. Without this annotation, the value would not be
264+
// encoded by downstream logic that requires the struct field tag.
265+
Inline bool
255266
}
256267

257268
func parseQueryParamTag(field reflect.StructField) *paramTag {

internal/utils/utils.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ func parseStructTag(tagKey string, field reflect.StructField) map[string]string
127127

128128
func parseParamTag(tagKey string, field reflect.StructField, defaultStyle string, defaultExplode bool) *paramTag {
129129
// example `{tagKey}:"style=simple,explode=false,name=apiID"`
130+
// example `{tagKey}:"inline"`
130131
values := parseStructTag(tagKey, field)
131132
if values == nil {
132133
return nil
@@ -140,6 +141,8 @@ func parseParamTag(tagKey string, field reflect.StructField, defaultStyle string
140141

141142
for k, v := range values {
142143
switch k {
144+
case "inline":
145+
tag.Inline = v == "true"
143146
case "style":
144147
tag.Style = v
145148
case "explode":

loggedin.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ func (s *LoggedIn) Initialize(ctx context.Context, xPublishableKey string, payme
8989
return nil, err
9090
}
9191

92+
for k, v := range o.SetHeaders {
93+
req.Header.Set(k, v)
94+
}
95+
9296
globalRetryConfig := s.sdkConfiguration.RetryConfig
9397
retryConfig := o.Retries
9498
if retryConfig == nil {
@@ -304,6 +308,10 @@ func (s *LoggedIn) PerformAction(ctx context.Context, id string, xPublishableKey
304308
return nil, err
305309
}
306310

311+
for k, v := range o.SetHeaders {
312+
req.Header.Set(k, v)
313+
}
314+
307315
globalRetryConfig := s.sdkConfiguration.RetryConfig
308316
retryConfig := o.Retries
309317
if retryConfig == nil {

0 commit comments

Comments
 (0)