8000 chore: 🐝 Update SDK - Generate 0.16.3 by github-actions[bot] · Pull Request #123 · dubinc/dub-go · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

chore: 🐝 Update SDK - Generate 0.16.3 #123

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 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: 2888b170a568c5574a256a458ca8e766
docChecksum: 1f2d4c898b6141a97115319cc3fc6712
docVersion: 0.0.1
speakeasyVersion: 1.563.4
generationVersion: 2.630.6
releaseVersion: 0.16.2
configChecksum: 696637ded7ebcb2da560dc31ea2837ab
releaseVersion: 0.16.3
configChecksum: 602d792f4b685c617cbc92912d72cfd4
repoURL: https://github.com/dubinc/dub-go.git
installationURL: https://github.com/dubinc/dub-go
features:
Expand Down Expand Up @@ -333,7 +333,6 @@ generatedFiles:
- docs/models/operations/listcommissionstype.md
- docs/models/operations/listdomainsrequest.md
- docs/models/operations/listdomainsresponse.md
- docs/models/operations/listeventsqueryparamsortby.md
- docs/models/operations/listeventsqueryparamtagids.md
- docs/models/operations/listeventsrequest.md
- docs/models/operations/listeventsresponsebody.md
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ generation:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: false
go:
version: 0.16.2
version: 0.16.3
additionalDependencies: {}
allowUnknownFieldsInWeakUnions: true
baseErrorName: DubError
Expand Down
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@ speakeasyVersion: 1.563.4
sources:
dub:
sourceNamespace: dub
sourceRevisionDigest: sha256:13ded45a55670e8bfc69e0ba1cb9075c44c788f2607c605a1f3e12a431e7635e
sourceBlobDigest: sha256:8871337bf8162405789f534c54fc6ecf47ae3c1ee532adffb6e034e9f9d02b32
sourceRevisionDigest: sha256:a467c7b38cd2bddbabef583ed2364c7cf7f96d4f186a5ec8d84bd736c57d3b05
sourceBlobDigest: sha256:11d8d4c502d1fa0d1be55eb77212cc074b4db9399a1ead9897242fb1986c38e8
tags:
- latest
- speakeasy-sdk-regen-1750119283
- speakeasy-sdk-regen-1750134442
- 0.0.1
targets:
my-first-target:
source: dub
sourceNamespace: dub
sourceRevisionDigest: sha256:13ded45a55670e8bfc69e0ba1cb9075c44c788f2607c605a1f3e12a431e7635e
sourceBlobDigest: sha256:8871337bf8162405789f534c54fc6ecf47ae3c1ee532adffb6e034e9f9d02b32
sourceRevisionDigest: sha256:a467c7b38cd2bddbabef583ed2364c7cf7f96d4f186a5ec8d84bd736c57d3b05
sourceBlobDigest: sha256:11d8d4c502d1fa0d1be55eb77212cc074b4db9399a1ead9897242fb1986c38e8
codeSamplesNamespace: code-samples-go-my-first-target
codeSamplesRevisionDigest: sha256:c5345e3818e4e471517119ec2f305583e9922baaee225ea8e496ce0aec148544
codeSamplesRevisionDigest: sha256:c12c046e51c8f5cd67a917077a9cee53e98b4469c9c18cf421555cf924057269
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -1188,4 +1188,14 @@ Based on:
### Generated
- [go v0.16.2] .
### Releases
- [Go v0.16.2] https://github.com/dubinc/dub-go/releases/tag/v0.16.2 - . 8000
- [Go v0.16.2] https://github.com/dubinc/dub-go/releases/tag/v0.16.2 - .

## 2025-06-17 04:27:04
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.563.4 (2.630.6) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.16.3] .
### Releases
- [Go v0.16.3] https://github.com/dubinc/dub-go/releases/tag/v0.16.3 - .
10 changes: 0 additions & 10 deletions docs/models/operations/listeventsqueryparamsortby.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/models/operations/listeventsrequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@
| `Page` | **float64* | :heavy_minus_sign: | N/A | |
| `Limit` | **float64* | :heavy_minus_sign: | N/A | |
| `SortOrder` | [*operations.QueryParamSortOrder](../../models/operations/queryparamsortorder.md) | :heavy_minus_sign: | The sort order. The default is `desc`. | |
| `SortBy` | [*operations.ListEventsQueryParamSortBy](../../models/operations/listeventsqueryparamsortby.md) | :heavy_minus_sign: | The field to sort the events by. The default is `timestamp`. | |
| `SortBy` | [*operations.QueryParamSortBy](../../models/operations/queryparamsortby.md) | :heavy_minus_sign: | The field to sort the events by. The default is `timestamp`. | |
| `Order` | [*operations.Order](../../models/operations/order.md) | :heavy_minus_sign: | DEPRECATED. Use `sortOrder` instead. | |
10 changes: 5 additions & 5 deletions docs/models/operations/queryparamsortby.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# QueryParamSortBy

The field to sort the events by. The default is `timestamp`.


## Values

| Name | Value |
| ------------------------ | ------------------------ |
| `QueryParamSortByClicks` | clicks |
| `QueryParamSortByLeads` | leads |
| `QueryParamSortBySales` | sales |
| Name | Value |
| --------------------------- | --------------------------- |
| `QueryParamSortByTimestamp` | timestamp |
1 change: 0 additions & 1 deletion docs/models/operations/retrieveanalyticsrequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
| `FolderID` | **string* | :heavy_minus_sign: | The folder ID to retrieve analytics for. If not provided, return analytics for unsorted links. | |
| `Qr` | **bool* | :heavy_minus_sign: | Deprecated. Use the `trigger` field instead. Filter for QR code scans. If true, filter for QR codes only. If false, filter for links only. If undefined, return both. | |
| `Root` | **bool* | :heavy_minus_sign: | Filter for root domains. If true, filter for domains only. If false, filter for links only. If undefined, return both. | |
| `SortBy` | [*operations.QueryParamSortBy](../../models/operations/queryparamsortby.md) | :heavy_minus_sign: | N/A | |
| `UtmSource` | **string* | :heavy_minus_sign: | The UTM source of the short link. | |
| `UtmMedium` | **string* | :heavy_minus_sign: | The UTM medium of the short link. | |
| `UtmCampaign` | **string* | :heavy_minus_sign: | The UTM campaign of the short link. | |
Expand Down
10 changes: 4 additions & 6 deletions dub.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,8 @@ func Pointer[T any](v T) *T { return &v }

// Dub API: Dub is link management infrastructure for companies to create marketing campaigns, link sharing features, and referral programs.
type Dub struct {
SDKVersion string
Links *Links
// Retrieve analytics for a partner
// Retrieve analytics for a partner within a program. The response type vary based on the `groupBy` query parameter.
SDKVersion string
Links *Links
Analytics *Analytics
Events *Events
Tags *Tags
Expand Down Expand Up @@ -142,9 +140,9 @@ func WithTimeout(timeout time.Duration) SDKOption {
// New creates a new instance of the SDK with the provided options
func New(opts ...SDKOption) *Dub {
sdk := &Dub{
SDKVersion: "0.16.2",
SDKVersion: "0.16.3",
sdkConfiguration: config.SDKConfiguration{
UserAgent: "speakeasy-sdk/go 0.16.2 2.630.6 0.0.1 github.com/dubinc/dub-go",
UserAgent: "speakeasy-sdk/go 0.16.3 2.630.6 0.0.1 github.com/dubinc/dub-go",
ServerList: ServerList,
},
hooks: hooks.New(),
Expand Down
18 changes: 9 additions & 9 deletions models/operations/listevents.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,27 +206,27 @@ func (e *QueryParamSortOrder) UnmarshalJSON(data []byte) error {
}
}

// ListEventsQueryParamSortBy - The field to sort the events by. The default is `timestamp`.
type ListEventsQueryParamSortBy string
// QueryParamSortBy - The field to sort the events by. The default is `timestamp`.
type QueryParamSortBy string

const (
ListEventsQueryParamSortByTimestamp ListEventsQueryParamSortBy = "timestamp"
QueryParamSortByTimestamp QueryParamSortBy = "timestamp"
)

func (e ListEventsQueryParamSortBy) ToPointer() *ListEventsQueryParamSortBy {
func (e QueryParamSortBy) ToPointer() *QueryParamSortBy {
return &e
}
func (e *ListEventsQueryParamSortBy) UnmarshalJSON(data []byte) error {
func (e *QueryParamSortBy) UnmarshalJSON(data []byte) error {
var v string
if err := json.Unmarshal(data, &v); err != nil {
return err
}
switch v {
case "timestamp":
*e = ListEventsQueryParamSortBy(v)
*e = QueryParamSortBy(v)
return nil
default:
return fmt.Errorf("invalid value for ListEventsQueryParamSortBy: %v", v)
return fmt.Errorf("invalid value for QueryParamSortBy: %v", v)
}
}

Expand Down Expand Up @@ -333,7 +333,7 @@ type ListEventsRequest struct {
// The sort order. The default is `desc`.
SortOrder *QueryParamSortOrder `default:"desc" queryParam:"style=form,explode=true,name=sortOrder"`
// The field to sort the events by. The default is `timestamp`.
SortBy *ListEventsQueryParamSortBy `default:"timestamp" queryParam:"style=form,explode=true,name=sortBy"`
SortBy *QueryParamSortBy `default:"timestamp" queryParam:"style=form,explode=true,name=sortBy"`
// DEPRECATED. Use `sortOrder` instead.
Order *Order `default:"desc" queryParam:"style=form,explode=true,name=order"`
}
Expand Down Expand Up @@ -608,7 +608,7 @@ func (o *ListEventsRequest) GetSortOrder() *QueryParamSortOrder {
return o.SortOrder
}

func (o *ListEventsRequest) GetSortBy() *ListEventsQueryParamSortBy {
func (o *ListEventsRequest) GetSortBy() *QueryParamSortBy {
if o == nil {
return nil
}
Expand Down
Loading
0