Skip to content

Commit

Permalink
Merge pull request #75 from dubinc/speakeasy-sdk-regen-1737331954
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate 0.13.9
  • Loading branch information
devkiran authored Jan 20, 2025
2 parents 673afe1 + a04d924 commit 906a18d
Show file tree
Hide file tree
Showing 16 changed files with 276 additions and 214 deletions.
340 changes: 172 additions & 168 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ generation:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: false
go:
version: 0.13.8
version: 0.13.9
additionalDependencies: {}
allowUnknownFieldsInWeakUnions: false
clientServerStatusCodesAsErrors: true
Expand Down
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
speakeasyVersion: 1.468.9
speakeasyVersion: 1.469.2
sources:
dub:
sourceNamespace: dub
sourceRevisionDigest: sha256:41266b2386065bd2349a81696f9d5b3035464a7e3116439035fd253266fb3bcd
sourceBlobDigest: sha256:3b9749ee4775b8022360e4efaad2a707cd10b0d65d85a424cb17498b6d1e6005
sourceRevisionDigest: sha256:c613adceb61129188110e742e004712144967f24be9fd9cf4b4d8049f09d5564
sourceBlobDigest: sha256:2db078d1bdf0a1bbb76dfc80c3272d19eecccf91adb3090189e58492c31c2f9a
tags:
- latest
- speakeasy-sdk-regen-1737072750
- speakeasy-sdk-regen-1737331954
- 0.0.1
targets:
my-first-target:
source: dub
sourceNamespace: dub
sourceRevisionDigest: sha256:41266b2386065bd2349a81696f9d5b3035464a7e3116439035fd253266fb3bcd
sourceBlobDigest: sha256:3b9749ee4775b8022360e4efaad2a707cd10b0d65d85a424cb17498b6d1e6005
sourceRevisionDigest: sha256:c613adceb61129188110e742e004712144967f24be9fd9cf4b4d8049f09d5564
sourceBlobDigest: sha256:2db078d1bdf0a1bbb76dfc80c3272d19eecccf91adb3090189e58492c31c2f9a
codeSamplesNamespace: code-samples-go-my-first-target
codeSamplesRevisionDigest: sha256:7ff3381295c9901019e16be1e50cf905eb52483759819faaacef846b488acf74
codeSamplesRevisionDigest: sha256:afae1de1ebfca4fcf6da8d65cf02e9393b4ef4ae319e2ce5c04329b9cc9fb5c4
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func main() {
### [Customers](docs/sdks/customers/README.md)

* [List](docs/sdks/customers/README.md#list) - Retrieve a list of customers
* [Create](docs/sdks/customers/README.md#create) - Create a customer
* [~~Create~~](docs/sdks/customers/README.md#create) - Create a customer :warning: **Deprecated**
* [Get](docs/sdks/customers/README.md#get) - Retrieve a customer
* [Update](docs/sdks/customers/README.md#update) - Update a customer
* [Delete](docs/sdks/customers/README.md#delete) - Delete a customer
Expand Down Expand Up @@ -566,8 +566,12 @@ func main() {
)

res, err := s.Links.List(ctx, operations.GetLinksRequest{
Page: dubgo.Float64(1),
PageSize: dubgo.Float64(50),
ShowArchived: dubgo.Bool(true),
WithTags: dubgo.Bool(true),
SortBy: operations.SortByCreatedAt.ToPointer(),
SortOrder: operations.SortOrderDesc.ToPointer(),
Page: dubgo.Float64(1),
PageSize: dubgo.Float64(50),
})
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 @@ -718,4 +718,14 @@ Based on:
### Generated
- [go v0.13.8] .
### Releases
- [Go v0.13.8] https://github.com/dubinc/dub-go/releases/tag/v0.13.8 - .
- [Go v0.13.8] https://github.com/dubinc/dub-go/releases/tag/v0.13.8 - .

## 2025-01-20 00:12:17
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.469.2 (2.493.23) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.13.9] .
### Releases
- [Go v0.13.9] https://github.com/dubinc/dub-go/releases/tag/v0.13.9 - .
24 changes: 9 additions & 15 deletions codeSamples.yaml

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion customers.go
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,9 @@ func (s *Customers) List(ctx context.Context, request operations.GetCustomersReq
}

// Create a customer
// Create a customer for the authenticated workspace.
// [Deprecated]: Customer creation can only be done via tracking a lead event. Use the /track/lead endpoint instead.
//
// Deprecated: This will be removed in a future release, please migrate away from it as soon as possible.
func (s *Customers) Create(ctx context.Context, request *operations.CreateCustomerRequestBody, opts ...operations.Option) (*operations.CreateCustomerResponseBody, error) {
hookCtx := hooks.HookContext{
Context: ctx,
Expand Down
2 changes: 2 additions & 0 deletions docs/sdks/analytics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ func main() {
)

res, err := s.Analytics.Retrieve(ctx, operations.RetrieveAnalyticsRequest{
Event: operations.EventClicks.ToPointer(),
GroupBy: operations.QueryParamGroupByCount.ToPointer(),
Timezone: dubgo.String("America/New_York"),
City: dubgo.String("New York"),
Device: dubgo.String("Desktop"),
Expand Down
8 changes: 5 additions & 3 deletions docs/sdks/customers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
### Available Operations

* [List](#list) - Retrieve a list of customers
* [Create](#create) - Create a customer
* [~~Create~~](#create) - Create a customer :warning: **Deprecated**
* [Get](#get) - Retrieve a customer
* [Update](#update) - Update a customer
* [Delete](#delete) - Delete a customer
Expand Down Expand Up @@ -71,9 +71,11 @@ func main() {
| sdkerrors.InternalServerError | 500 | application/json |
| sdkerrors.SDKError | 4XX, 5XX | \*/\* |

## Create
## ~~Create~~

Create a customer for the authenticated workspace.
[Deprecated]: Customer creation can only be done via tracking a lead event. Use the /track/lead endpoint instead.

> :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible.
### Example Usage

Expand Down
1 change: 1 addition & 0 deletions docs/sdks/domains/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ func main() {
)

res, err := s.Domains.List(ctx, operations.ListDomainsRequest{
Archived: dubgo.Bool(true),
Page: dubgo.Float64(1),
PageSize: dubgo.Float64(50),
})
Expand Down
6 changes: 6 additions & 0 deletions docs/sdks/events/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,19 @@ func main() {
)

res, err := s.Events.List(ctx, operations.ListEventsRequest{
Event: operations.QueryParamEventClicks.ToPointer(),
Interval: operations.QueryParamIntervalTwentyFourh.ToPointer(),
Timezone: dubgo.String("America/New_York"),
City: dubgo.String("New York"),
Device: dubgo.String("Desktop"),
Browser: dubgo.String("Chrome"),
Os: dubgo.String("Windows"),
Referer: dubgo.String("google.com"),
RefererURL: dubgo.String("https://dub.co/blog"),
Page: dubgo.Float64(1),
Limit: dubgo.Float64(100),
SortOrder: operations.QueryParamSortOrderDesc.ToPointer(),
SortBy: operations.QueryParamSortByTimestamp.ToPointer(),
})
if err != nil {
log.Fatal(err)
Expand Down
35 changes: 28 additions & 7 deletions docs/sdks/links/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ func main() {
)

res, err := s.Links.List(ctx, operations.GetLinksRequest{
ShowArchived: dubgo.Bool(true),
WithTags: dubgo.Bool(true),
SortBy: operations.SortByCreatedAt.ToPointer(),
SortOrder: operations.SortOrderDesc.ToPointer(),
Page: dubgo.Float64(1),
PageSize: dubgo.Float64(50),
})
Expand Down Expand Up @@ -182,7 +186,10 @@ func main() {
dubgo.WithSecurity("DUB_API_KEY"),
)

res, err := s.Links.Count(ctx, operations.GetLinksCountRequest{})
res, err := s.Links.Count(ctx, operations.GetLinksCountRequest{
ShowArchived: dubgo.Bool(true),
WithTags: dubgo.Bool(true),
})
if err != nil {
log.Fatal(err)
}
Expand Down Expand Up @@ -305,7 +312,7 @@ func main() {
dubgo.WithSecurity("DUB_API_KEY"),
)

res, err := s.Links.Update(ctx, "<value>", &operations.UpdateLinkRequestBody{
res, err := s.Links.Update(ctx, "<id>", &operations.UpdateLinkRequestBody{
URL: dubgo.String("https://google.com"),
ExternalID: dubgo.String("123456"),
TagIds: dubgo.Pointer(operations.CreateUpdateLinkTagIdsArrayOfStr(
Expand Down Expand Up @@ -373,7 +380,7 @@ func main() {
dubgo.WithSecurity("DUB_API_KEY"),
)

res, err := s.Links.Delete(ctx, "<value>")
res, err := s.Links.Delete(ctx, "<id>")
if err != nil {
log.Fatal(err)
}
Expand Down Expand Up @@ -434,7 +441,24 @@ func main() {
)

res, err := s.Links.CreateMany(ctx, []operations.RequestBody{

operations.RequestBody{
URL: "https://google.com",
ExternalID: dubgo.String("123456"),
TagIds: dubgo.Pointer(operations.CreateBulkCreateLinksTagIdsArrayOfStr(
[]string{
"clux0rgak00011...",
},
)),
},
operations.RequestBody{
URL: "https://google.com",
ExternalID: dubgo.String("123456"),
TagIds: dubgo.Pointer(operations.CreateBulkCreateLinksTagIdsArrayOfStr(
[]string{
"clux0rgak00011...",
},
)),
},
})
if err != nil {
log.Fatal(err)
Expand Down Expand Up @@ -496,9 +520,6 @@ func main() {
)

res, err := s.Links.UpdateMany(ctx, &operations.BulkUpdateLinksRequestBody{
LinkIds: []string{

},
Data: operations.Data{
URL: dubgo.String("https://google.com"),
TagIds: dubgo.Pointer(operations.CreateBulkUpdateLinksTagIdsArrayOfStr(
Expand Down
9 changes: 8 additions & 1 deletion docs/sdks/qrcodes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,14 @@ func main() {
)

res, err := s.QRCodes.Get(ctx, operations.GetQRCodeRequest{
URL: "https://brief-micronutrient.org",
URL: "https://normal-making.name",
Size: dubgo.Float64(600),
Level: operations.LevelL.ToPointer(),
FgColor: dubgo.String("#000000"),
BgColor: dubgo.String("#FFFFFF"),
HideLogo: dubgo.Bool(true),
Margin: dubgo.Float64(2),
IncludeMargin: dubgo.Bool(true),
})
if err != nil {
log.Fatal(err)
Expand Down
2 changes: 2 additions & 0 deletions docs/sdks/tags/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ func main() {
)

res, err := s.Tags.List(ctx, operations.GetTagsRequest{
SortBy: operations.GetTagsQueryParamSortByName.ToPointer(),
SortOrder: operations.GetTagsQueryParamSortOrderAsc.ToPointer(),
Page: dubgo.Float64(1),
PageSize: dubgo.Float64(50),
})
Expand Down
15 changes: 11 additions & 4 deletions docs/sdks/track/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,13 @@ func main() {
)

res, err := s.Track.Lead(ctx, &operations.TrackLeadRequestBody{
ClickID: "<value>",
ClickID: "<id>",
EventName: "Sign up",
CustomerID: dubgo.String("<value>"),
ExternalID: dubgo.String(""),
CustomerID: nil,
CustomerName: nil,
CustomerEmail: nil,
CustomerAvatar: nil,
})
if err != nil {
log.Fatal(err)
Expand Down Expand Up @@ -96,10 +100,13 @@ func main() {
)

res, err := s.Track.Sale(ctx, &operations.TrackSaleRequestBody{
CustomerID: dubgo.String("<value>"),
ExternalID: dubgo.String(""),
CustomerID: nil,
Amount: 996500,
PaymentProcessor: operations.PaymentProcessorShopify,
PaymentProcessor: operations.PaymentProcessorPaddle,
EventName: dubgo.String("Purchase"),
InvoiceID: nil,
Currency: dubgo.String("usd"),
})
if err != nil {
log.Fatal(err)
Expand Down
6 changes: 3 additions & 3 deletions dub.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ func New(opts ...SDKOption) *Dub {
sdkConfiguration: sdkConfiguration{
Language: "go",
OpenAPIDocVersion: "0.0.1",
SDKVersion: "0.13.8",
GenVersion: "2.493.21",
UserAgent: "speakeasy-sdk/go 0.13.8 2.493.21 0.0.1 github.com/dubinc/dub-go",
SDKVersion: "0.13.9",
GenVersion: "2.493.23",
UserAgent: "speakeasy-sdk/go 0.13.9 2.493.23 0.0.1 github.com/dubinc/dub-go",
Hooks: hooks.New(),
},
}
Expand Down

0 comments on commit 906a18d

Please sign in to comment.