Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.468.9
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Jan 17, 2025
1 parent 36c5eae commit 29fbe50
Show file tree
Hide file tree
Showing 24 changed files with 470 additions and 64 deletions.
21 changes: 15 additions & 6 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
lockVersion: 2.0.0
id: 1773e9c7-1931-4663-8ac8-4deaf8db76f5
management:
docChecksum: 810d019618d329428080463b7bf165c7
docChecksum: c7226fc27f4fb4b6c492bc7d8bb0ce6d
docVersion: 0.0.1
speakeasyVersion: 1.468.6
generationVersion: 2.493.13
releaseVersion: 0.13.7
configChecksum: 2f2039ee32c0cf12dca9120c6482d369
speakeasyVersion: 1.468.9
generationVersion: 2.493.21
releaseVersion: 0.13.8
configChecksum: d8f401459f441daef587a52f205431bd
repoURL: https://github.com/dubinc/dub-go.git
installationURL: https://github.com/dubinc/dub-go
features:
go:
additionalDependencies: 0.1.0
constsAndDefaults: 0.1.6
core: 3.6.5
core: 3.6.6
defaultEnabledRetries: 0.2.0
deprecations: 2.81.2
envVarSecurityUsage: 0.3.2
Expand Down Expand Up @@ -84,6 +84,7 @@ generatedFiles:
- /models/operations/getlinkscount.go
- /models/operations/getmetatags.go
- /models/operations/getqrcode.go
- /models/operations/gettags.go
- /models/operations/getworkspace.go
- /models/operations/listdomains.go
- /models/operations/listevents.go
Expand Down Expand Up @@ -263,8 +264,12 @@ generatedFiles:
- docs/models/operations/getmetatagsrequest.md
- docs/models/operations/getmetatagsresponsebody.md
- docs/models/operations/getqrcoderequest.md
- docs/models/operations/gettagsqueryparamsortby.md
- docs/models/operations/gettagsqueryparamsortorder.md
- docs/models/operations/gettagsrequest.md
- docs/models/operations/getworkspacerequest.md
- docs/models/operations/groupby.md
- docs/models/operations/ids.md
- docs/models/operations/interval.md
- docs/models/operations/level.md
- docs/models/operations/link.md
Expand Down Expand Up @@ -800,6 +805,10 @@ examples:
application/json: {"error": {"code": "internal_server_error", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#internal-server_error"}}
getTags:
speakeasy-default-get-tags:
parameters:
query:
page: 1
pageSize: 50
responses:
"200":
application/json: []
Expand Down
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.7
version: 0.13.8
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.6
speakeasyVersion: 1.468.9
sources:
dub:
sourceNamespace: dub
sourceRevisionDigest: sha256:8f1ed80fededd786ade56e4bc6424b7b50057c13f861e1a1b4918c0451b7848a
sourceBlobDigest: sha256:4f857c24e9fc5883500df254e0cfeda49c2c1251bcc40597d9751bd2f79fc07d
sourceRevisionDigest: sha256:41266b2386065bd2349a81696f9d5b3035464a7e3116439035fd253266fb3bcd
sourceBlobDigest: sha256:3b9749ee4775b8022360e4efaad2a707cd10b0d65d85a424cb17498b6d1e6005
tags:
- latest
- speakeasy-sdk-regen-1736899942
- speakeasy-sdk-regen-1737072750
- 0.0.1
targets:
my-first-target:
source: dub
sourceNamespace: dub
sourceRevisionDigest: sha256:8f1ed80fededd786ade56e4bc6424b7b50057c13f861e1a1b4918c0451b7848a
sourceBlobDigest: sha256:4f857c24e9fc5883500df254e0cfeda49c2c1251bcc40597d9751bd2f79fc07d
sourceRevisionDigest: sha256:41266b2386065bd2349a81696f9d5b3035464a7e3116439035fd253266fb3bcd
sourceBlobDigest: sha256:3b9749ee4775b8022360e4efaad2a707cd10b0d65d85a424cb17498b6d1e6005
codeSamplesNamespace: code-samples-go-my-first-target
codeSamplesRevisionDigest: sha256:47561dae2f044a97a8b3bc24b44e2feb8f5de92ef28c2d70f7fcbb9864f0d1ac
codeSamplesRevisionDigest: sha256:7ff3381295c9901019e16be1e50cf905eb52483759819faaacef846b488acf74
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 @@ -708,4 +708,14 @@ Based on:
### Generated
- [go v0.13.7] .
### Releases
- [Go v0.13.7] https://github.com/dubinc/dub-go/releases/tag/v0.13.7 - .
- [Go v0.13.7] https://github.com/dubinc/dub-go/releases/tag/v0.13.7 - .

## 2025-01-17 00:12:15
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.468.9 (2.493.21) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.13.8] .
### Releases
- [Go v0.13.8] https://github.com/dubinc/dub-go/releases/tag/v0.13.8 - .
6 changes: 5 additions & 1 deletion analytics.go
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,11 @@ func (s *Analytics) Retrieve(ctx context.Context, request operations.RetrieveAna
return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500:
fallthrough
rawBody, err := utils.ConsumeRawBody(httpRes)
if err != nil {
return nil, err
}
return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes)
case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600:
rawBody, err := utils.ConsumeRawBody(httpRes)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ actions:
"x-codeSamples":
- "lang": "go"
"label": "getTags"
"source": "package main\n\nimport(\n\t\"context\"\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n\n res, err := s.Tags.List(ctx)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}"
"source": "package main\n\nimport(\n\t\"context\"\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n ctx := context.Background()\n \n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n\n res, err := s.Tags.List(ctx, operations.GetTagsRequest{\n Page: dubgo.Float64(1),\n PageSize: dubgo.Float64(50),\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}"
- target: $["paths"]["/tags"]["post"]
update:
"x-codeSamples":
Expand Down
30 changes: 25 additions & 5 deletions customers.go
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,11 @@ func (s *Customers) List(ctx context.Context, request operations.GetCustomersReq
return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500:
fallthrough
rawBody, err := utils.ConsumeRawBody(httpRes)
if err != nil {
return nil, err
}
return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes)
case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600:
rawBody, err := utils.ConsumeRawBody(httpRes)
if err != nil {
Expand Down Expand Up @@ -776,7 +780,11 @@ func (s *Customers) Create(ctx context.Context, request *operations.CreateCustom
return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500:
fallthrough
rawBody, err := utils.ConsumeRawBody(httpRes)
if err != nil {
return nil, err
}
return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes)
case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600:
rawBody, err := utils.ConsumeRawBody(httpRes)
if err != nil {
Expand Down Expand Up @@ -1159,7 +1167,11 @@ func (s *Customers) Get(ctx context.Context, request operations.GetCustomerReque
return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500:
fallthrough
rawBody, err := utils.ConsumeRawBody(httpRes)
if err != nil {
return nil, err
}
return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes)
case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600:
rawBody, err := utils.ConsumeRawBody(httpRes)
if err != nil {
Expand Down Expand Up @@ -1550,7 +1562,11 @@ func (s *Customers) Update(ctx context.Context, request operations.UpdateCustome
return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500:
fallthrough
rawBody, err := utils.ConsumeRawBody(httpRes)
if err != nil {
return nil, err
}
return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes)
case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600:
rawBody, err := utils.ConsumeRawBody(httpRes)
if err != nil {
Expand Down Expand Up @@ -1933,7 +1949,11 @@ func (s *Customers) Delete(ctx context.Context, id string, opts ...operations.Op
return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500:
fallthrough
rawBody, err := utils.ConsumeRawBody(httpRes)
if err != nil {
return nil, err
}
return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes)
case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600:
rawBody, err := utils.ConsumeRawBody(httpRes)
if err != nil {
Expand Down
11 changes: 11 additions & 0 deletions docs/models/operations/gettagsqueryparamsortby.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# GetTagsQueryParamSortBy

The field to sort the tags by.


## Values

| Name | Value |
| ---------------------------------- | ---------------------------------- |
| `GetTagsQueryParamSortByName` | name |
| `GetTagsQueryParamSortByCreatedAt` | createdAt |
11 changes: 11 additions & 0 deletions docs/models/operations/gettagsqueryparamsortorder.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# GetTagsQueryParamSortOrder

The order to sort the tags by.


## Values

| Name | Value |
| -------------------------------- | -------------------------------- |
| `GetTagsQueryParamSortOrderAsc` | asc |
| `GetTagsQueryParamSortOrderDesc` | desc |
13 changes: 13 additions & 0 deletions docs/models/operations/gettagsrequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# GetTagsRequest


## Fields

| Field | Type | Required | Description | Example |
| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- |
| `SortBy` | [*operations.GetTagsQueryParamSortBy](../../models/operations/gettagsqueryparamsortby.md) | :heavy_minus_sign: | The field to sort the tags by. | |
| `SortOrder` | [*operations.GetTagsQueryParamSortOrder](../../models/operations/gettagsqueryparamsortorder.md) | :heavy_minus_sign: | The order to sort the tags by. | |
| `Search` | **string* | :heavy_minus_sign: | The search term to filter the tags by. | |
| `Ids` | [*operations.Ids](../../models/operations/ids.md) | :heavy_minus_sign: | IDs of tags to filter by. | |
| `Page` | **float64* | :heavy_minus_sign: | The page number for pagination. | 1 |
| `PageSize` | **float64* | :heavy_minus_sign: | The number of items per page. | 50 |
19 changes: 19 additions & 0 deletions docs/models/operations/ids.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Ids

IDs of tags to filter by.


## Supported Types

###

```go
ids := operations.CreateIdsStr(string{/* values here */})
```

###

```go
ids := operations.CreateIdsArrayOfStr([]string{/* values here */})
```

15 changes: 10 additions & 5 deletions docs/sdks/tags/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ package main
import(
"context"
dubgo "github.com/dubinc/dub-go"
"github.com/dubinc/dub-go/models/operations"
"log"
)

Expand All @@ -91,7 +92,10 @@ func main() {
dubgo.WithSecurity("DUB_API_KEY"),
)

res, err := s.Tags.List(ctx)
res, err := s.Tags.List(ctx, operations.GetTagsRequest{
Page: dubgo.Float64(1),
PageSize: dubgo.Float64(50),
})
if err != nil {
log.Fatal(err)
}
Expand All @@ -103,10 +107,11 @@ func main() {

### Parameters

| Parameter | Type | Required | Description |
| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- |
| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. |
| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. |
| Parameter | Type | Required | Description |
| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- |
| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. |
| `request` | [operations.GetTagsRequest](../../models/operations/gettagsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
| `opts` | [][operations.Option](../../models/operations/option.md) | :heavy_minus_sign: | The options for this request. |

### Response

Expand Down
24 changes: 20 additions & 4 deletions domains.go
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,11 @@ func (s *Domains) Create(ctx context.Context, request *operations.CreateDomainRe
return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500:
fallthrough
rawBody, err := utils.ConsumeRawBody(httpRes)
if err != nil {
return nil, err
}
return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes)
case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600:
rawBody, err := utils.ConsumeRawBody(httpRes)
if err != nil {
Expand Down Expand Up @@ -829,7 +833,11 @@ func (s *Domains) List(ctx context.Context, request operations.ListDomainsReques
return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500:
fallthrough
rawBody, err := utils.ConsumeRawBody(httpRes)
if err != nil {
return nil, err
}
return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes)
case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600:
rawBody, err := utils.ConsumeRawBody(httpRes)
if err != nil {
Expand Down Expand Up @@ -1221,7 +1229,11 @@ func (s *Domains) Update(ctx context.Context, slug string, requestBody *operatio
return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500:
fallthrough
rawBody, err := utils.ConsumeRawBody(httpRes)
if err != nil {
return nil, err
}
return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes)
case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600:
rawBody, err := utils.ConsumeRawBody(httpRes)
if err != nil {
Expand Down Expand Up @@ -1604,7 +1616,11 @@ func (s *Domains) Delete(ctx context.Context, slug string, opts ...operations.Op
return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", httpRes.Header.Get("Content-Type")), httpRes.StatusCode, string(rawBody), httpRes)
}
case httpRes.StatusCode >= 400 && httpRes.StatusCode < 500:
fallthrough
rawBody, err := utils.ConsumeRawBody(httpRes)
if err != nil {
return nil, err
}
return nil, sdkerrors.NewSDKError("API error occurred", httpRes.StatusCode, string(rawBody), httpRes)
case httpRes.StatusCode >= 500 && httpRes.StatusCode < 600:
rawBody, err := utils.ConsumeRawBody(httpRes)
if err != nil {
Expand Down
Loading

0 comments on commit 29fbe50

Please sign in to comment.