Skip to content

Commit

Permalink
Merge pull request #30 from dubinc/speakeasy-sdk-regen-1725325019
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-tey authored Sep 4, 2024
2 parents 3d214fa + e79dc7d commit b69589f
Show file tree
Hide file tree
Showing 35 changed files with 709 additions and 5,904 deletions.
20 changes: 9 additions & 11 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 1773e9c7-1931-4663-8ac8-4deaf8db76f5
management:
docChecksum: 721d398075627f52145125ad6074cef5
docChecksum: e79768bd6535cef0d8d78eefb5ac63e1
docVersion: 0.0.1
speakeasyVersion: 1.385.0
generationVersion: 2.407.2
releaseVersion: 0.8.3
configChecksum: 3e166aa94dbbe0e682863a8e921fd3de
speakeasyVersion: 1.390.1
generationVersion: 2.409.0
releaseVersion: 0.8.4
configChecksum: d80689321ee4af28fe3bd50ad2aadef1
repoURL: https://github.com/dubinc/dub-go.git
installationURL: https://github.com/dubinc/dub-go
features:
Expand Down Expand Up @@ -68,6 +68,7 @@ generatedFiles:
- /models/operations/deletelink.go
- /models/operations/updatelink.go
- /models/operations/bulkcreatelinks.go
- /models/operations/bulkdeletelinks.go
- /models/operations/bulkupdatelinks.go
- /models/operations/upsertlink.go
- /models/operations/getqrcode.go
Expand Down Expand Up @@ -138,6 +139,8 @@ generatedFiles:
- docs/models/operations/bulkcreatelinkstagids.md
- docs/models/operations/bulkcreatelinkstagnames.md
- docs/models/operations/requestbody.md
- docs/models/operations/bulkdeletelinksrequest.md
- docs/models/operations/bulkdeletelinksresponsebody.md
- docs/models/operations/bulkupdatelinkstagids.md
- docs/models/operations/bulkupdatelinkstagnames.md
- docs/models/operations/data.md
Expand Down Expand Up @@ -173,18 +176,13 @@ generatedFiles:
- docs/models/operations/updatedomainrequestbody.md
- docs/models/operations/updatedomainrequest.md
- docs/models/operations/trackleadrequestbody.md
- docs/models/operations/customer.md
- docs/models/operations/click.md
- docs/models/operations/geo.md
- docs/models/operations/link.md
- docs/models/operations/customer.md
- docs/models/operations/trackleadresponsebody.md
- docs/models/operations/paymentprocessor.md
- docs/models/operations/tracksalerequestbody.md
- docs/models/operations/tracksalecustomer.md
- docs/models/operations/sale.md
- docs/models/operations/tracksaleclick.md
- docs/models/operations/tracksalegeo.md
- docs/models/operations/tracksalelink.md
- docs/models/operations/tracksaleresponsebody.md
- docs/models/operations/trackcustomerrequestbody.md
- docs/models/operations/trackcustomerresponsebody.md
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: true
go:
version: 0.8.3
version: 0.8.4
additionalDependencies: {}
allowUnknownFieldsInWeakUnions: false
clientServerStatusCodesAsErrors: true
Expand Down
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
speakeasyVersion: 1.385.0
speakeasyVersion: 1.390.1
sources:
dub:
sourceNamespace: dub
sourceRevisionDigest: sha256:6f51a92a8181d22e519f6a9e133de91aa1869660eb0b4489531a4921451f9a80
sourceBlobDigest: sha256:2917324289fcad4862f27d0936635702b26bd1d50702ee75cb33b7374e3218d6
sourceRevisionDigest: sha256:9b23095f0ee1a4785428a8c33a4fdcd78d16084867e20cea62500d56f1e4931a
sourceBlobDigest: sha256:0610a3a3d2096fc72cdfd1c92b1be59f41530f7b48dc93566bc297baefcf3882
tags:
- latest
- main
targets:
my-first-target:
source: dub
sourceNamespace: dub
sourceRevisionDigest: sha256:6f51a92a8181d22e519f6a9e133de91aa1869660eb0b4489531a4921451f9a80
sourceBlobDigest: sha256:2917324289fcad4862f27d0936635702b26bd1d50702ee75cb33b7374e3218d6
sourceRevisionDigest: sha256:9b23095f0ee1a4785428a8c33a4fdcd78d16084867e20cea62500d56f1e4931a
sourceBlobDigest: sha256:0610a3a3d2096fc72cdfd1c92b1be59f41530f7b48dc93566bc297baefcf3882
codeSamplesNamespace: code-samples-go-my-first-target
codeSamplesRevisionDigest: sha256:6283859044efd071481fc79c39b803ead94d4d28842b253b94ffbf7cff0e6484
codeSamplesRevisionDigest: sha256:1ebc6edd35fc9e9c677056f38ae4b27292dc9c7cfc5962103b32fb2ee60754bf
outLocation: /github/workspace/repo
workflow:
workflowVersion: 1.0.0
Expand Down
73 changes: 37 additions & 36 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@ func main() {
s := dubgo.New(
dubgo.WithSecurity("DUB_API_KEY"),
)
var request *operations.CreateLinkRequestBody = &operations.CreateLinkRequestBody{

ctx := context.Background()
res, err := s.Links.Create(ctx, &operations.CreateLinkRequestBody{
URL: "https://google.com",
ExternalID: dubgo.String("123456"),
TagIds: operations.CreateTagIdsStr(
"[\"clux0rgak00011...\"]",
),
}
ctx := context.Background()
res, err := s.Links.Create(ctx, request)
})
if err != nil {
log.Fatal(err)
}
Expand All @@ -91,17 +91,17 @@ func main() {
s := dubgo.New(
dubgo.WithSecurity("DUB_API_KEY"),
)
var request *operations.UpsertLinkRequestBody = &operations.UpsertLinkRequestBody{

ctx := context.Background()
res, err := s.Links.Upsert(ctx, &operations.UpsertLinkRequestBody{
URL: "https://google.com",
ExternalID: dubgo.String("123456"),
TagIds: operations.CreateUpsertLinkTagIdsArrayOfStr(
[]string{
"clux0rgak00011...",
},
),
}
ctx := context.Background()
res, err := s.Links.Upsert(ctx, request)
})
if err != nil {
log.Fatal(err)
}
Expand All @@ -125,6 +125,7 @@ func main() {
* [Delete](docs/sdks/links/README.md#delete) - Delete a link
* [Update](docs/sdks/links/README.md#update) - Update a link
* [CreateMany](docs/sdks/links/README.md#createmany) - Bulk create links
* [DeleteMany](docs/sdks/links/README.md#deletemany) - Bulk delete links
* [UpdateMany](docs/sdks/links/README.md#updatemany) - Bulk update links
* [Upsert](docs/sdks/links/README.md#upsert) - Upsert a link

Expand Down Expand Up @@ -205,12 +206,12 @@ func main() {
s := dubgo.New(
dubgo.WithSecurity("DUB_API_KEY"),
)
request := operations.GetLinksRequest{

ctx := context.Background()
res, err := s.Links.List(ctx, operations.GetLinksRequest{
Page: dubgo.Float64(1),
PageSize: dubgo.Float64(50),
}
ctx := context.Background()
res, err := s.Links.List(ctx, request)
})
if err != nil {

var e *sdkerrors.BadRequest
Expand Down Expand Up @@ -306,12 +307,12 @@ func main() {
dubgo.WithServerIndex(0),
dubgo.WithSecurity("DUB_API_KEY"),
)
request := operations.GetLinksRequest{

ctx := context.Background()
res, err := s.Links.List(ctx, operations.GetLinksRequest{
Page: dubgo.Float64(1),
PageSize: dubgo.Float64(50),
}
ctx := context.Background()
res, err := s.Links.List(ctx, request)
})
if err != nil {
log.Fatal(err)
}
Expand Down Expand Up @@ -354,12 +355,12 @@ func main() {
dubgo.WithServerURL("https://api.dub.co"),
dubgo.WithSecurity("DUB_API_KEY"),
)
request := operations.GetLinksRequest{

ctx := context.Background()
res, err := s.Links.List(ctx, operations.GetLinksRequest{
Page: dubgo.Float64(1),
PageSize: dubgo.Float64(50),
}
ctx := context.Background()
res, err := s.Links.List(ctx, request)
})
if err != nil {
log.Fatal(err)
}
Expand Down Expand Up @@ -439,12 +440,12 @@ func main() {
s := dubgo.New(
dubgo.WithSecurity("DUB_API_KEY"),
)
request := operations.GetLinksRequest{

ctx := context.Background()
res, err := s.Links.List(ctx, operations.GetLinksRequest{
Page: dubgo.Float64(1),
PageSize: dubgo.Float64(50),
}
ctx := context.Background()
res, err := s.Links.List(ctx, request)
})
if err != nil {
log.Fatal(err)
}
Expand Down Expand Up @@ -497,12 +498,12 @@ func main() {
s := dubgo.New(
dubgo.WithSecurity("DUB_API_KEY"),
)
request := operations.GetLinksRequest{

ctx := context.Background()
res, err := s.Links.List(ctx, operations.GetLinksRequest{
Page: dubgo.Float64(1),
PageSize: dubgo.Float64(50),
}
ctx := context.Background()
res, err := s.Links.List(ctx, request, operations.WithRetries(
}, operations.WithRetries(
retry.Config{
Strategy: "backoff",
Backoff: &retry.BackoffStrategy{
Expand Down Expand Up @@ -563,12 +564,12 @@ func main() {
}),
dubgo.WithSecurity("DUB_API_KEY"),
)
request := operations.GetLinksRequest{

ctx := context.Background()
res, err := s.Links.List(ctx, operations.GetLinksRequest{
Page: dubgo.Float64(1),
PageSize: dubgo.Float64(50),
}
ctx := context.Background()
res, err := s.Links.List(ctx, request)
})
if err != nil {
log.Fatal(err)
}
Expand Down Expand Up @@ -615,12 +616,12 @@ func main() {
s := dubgo.New(
dubgo.WithSecurity("DUB_API_KEY"),
)
request := operations.GetLinksRequest{

ctx := context.Background()
res, err := s.Links.List(ctx, operations.GetLinksRequest{
Page: dubgo.Float64(1),
PageSize: dubgo.Float64(50),
}
ctx := context.Background()
res, err := s.Links.List(ctx, request)
})
if err != nil {
log.Fatal(err)
}
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,4 +268,14 @@ Based on:
### Generated
- [go v0.8.3] .
### Releases
- [Go v0.8.3] https://github.com/dubinc/dub-go/releases/tag/v0.8.3 - .
- [Go v0.8.3] https://github.com/dubinc/dub-go/releases/tag/v0.8.3 - .

## 2024-09-04 00:57:47
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.390.1 (2.409.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.8.4] .
### Releases
- [Go v0.8.4] https://github.com/dubinc/dub-go/releases/tag/v0.8.4 - .
16 changes: 8 additions & 8 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ func main() {
s := dubgo.New(
dubgo.WithSecurity("DUB_API_KEY"),
)
var request *operations.CreateLinkRequestBody = &operations.CreateLinkRequestBody{

ctx := context.Background()
res, err := s.Links.Create(ctx, &operations.CreateLinkRequestBody{
URL: "https://google.com",
ExternalID: dubgo.String("123456"),
TagIds: operations.CreateTagIdsStr(
"[\"clux0rgak00011...\"]",
),
}
ctx := context.Background()
res, err := s.Links.Create(ctx, request)
})
if err != nil {
log.Fatal(err)
}
Expand All @@ -46,17 +46,17 @@ func main() {
s := dubgo.New(
dubgo.WithSecurity("DUB_API_KEY"),
)
var request *operations.UpsertLinkRequestBody = &operations.UpsertLinkRequestBody{

ctx := context.Background()
res, err := s.Links.Upsert(ctx, &operations.UpsertLinkRequestBody{
URL: "https://google.com",
ExternalID: dubgo.String("123456"),
TagIds: operations.CreateUpsertLinkTagIdsArrayOfStr(
[]string{
"clux0rgak00011...",
},
),
}
ctx := context.Background()
res, err := s.Links.Upsert(ctx, request)
})
if err != nil {
log.Fatal(err)
}
Expand Down
Loading

0 comments on commit b69589f

Please sign in to comment.