Skip to content
Open
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
189 changes: 127 additions & 62 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 @@ -29,7 +29,7 @@ generation:
generateNewTests: false
skipResponseBodyAssertions: false
go:
version: 0.23.9
version: 0.23.10
additionalDependencies: {}
allowUnknownFieldsInWeakUnions: true
baseErrorName: DubError
Expand Down
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ speakeasyVersion: 1.761.9
sources:
dub:
sourceNamespace: dub
sourceRevisionDigest: sha256:0ec08cbcd2e443170af2f65a87a730ea85fee80c53b2ccc0e6e685c134b814e0
sourceBlobDigest: sha256:c95e6e9feaed9d2cc7d68eab9855dd6ee3ba77615f44e0538cd4a0f19080ab67
sourceRevisionDigest: sha256:1ac99f7516208f75678de0f09598c7b9c63b095aac3df9bde2abf915dd8c736e
sourceBlobDigest: sha256:4cfa099e5f7cae5705a6501f8b4455812eda42ddc94688897bca1de71abe0b38
tags:
- latest
- 0.0.1
targets:
my-first-target:
source: dub
sourceNamespace: dub
sourceRevisionDigest: sha256:0ec08cbcd2e443170af2f65a87a730ea85fee80c53b2ccc0e6e685c134b814e0
sourceBlobDigest: sha256:c95e6e9feaed9d2cc7d68eab9855dd6ee3ba77615f44e0538cd4a0f19080ab67
sourceRevisionDigest: sha256:1ac99f7516208f75678de0f09598c7b9c63b095aac3df9bde2abf915dd8c736e
sourceBlobDigest: sha256:4cfa099e5f7cae5705a6501f8b4455812eda42ddc94688897bca1de71abe0b38
codeSamplesNamespace: code-samples-go-my-first-target
codeSamplesRevisionDigest: sha256:dfec97bf41cd6be48d251fea7281591a7df95d028190169e1fbeaa00681bb1dc
codeSamplesRevisionDigest: sha256:a428e84bff614580976eb4535ff935a939c5e233694e1272477ea6259b9eac2d
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 @@ -1458,4 +1458,14 @@ Based on:
### Generated
- [go v0.23.9] .
### Releases
- [Go v0.23.9] https://github.com/dubinc/dub-go/releases/tag/v0.23.9 - .
- [Go v0.23.9] https://github.com/dubinc/dub-go/releases/tag/v0.23.9 - .

## 2026-04-28 00:32:51
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.761.9 (2.881.4) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.23.10] .
### Releases
- [Go v0.23.10] https://github.com/dubinc/dub-go/releases/tag/v0.23.10 - .
2 changes: 0 additions & 2 deletions analytics.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ import (
"net/url"
)

// Analytics - Retrieve analytics for a partner
// Retrieve analytics for a partner within a program. The response type vary based on the `groupBy` query parameter.
type Analytics struct {
rootSDK *Dub
sdkConfiguration config.SDKConfiguration
Expand Down
12 changes: 6 additions & 6 deletions codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -223,14 +223,14 @@ actions:
update:
"x-codeSamples":
- "lang": "go"
"label": "approvePartner"
"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.PartnerApplications.Approve(ctx, operations.ApprovePartnerRequestBody{\n PartnerID: \"<id>\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}"
"label": "approvePartnerApplication"
"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.PartnerApplications.Approve(ctx, operations.ApprovePartnerApplicationRequestBody{\n PartnerID: \"<id>\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}"
- target: $["paths"]["/partners/applications/reject"]["post"]
update:
"x-codeSamples":
- "lang": "go"
"label": "rejectPartner"
"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.PartnerApplications.Reject(ctx, operations.RejectPartnerRequestBody{\n PartnerID: \"<id>\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}"
"label": "rejectPartnerApplication"
"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.PartnerApplications.Reject(ctx, operations.RejectPartnerApplicationRequestBody{\n PartnerID: \"<id>\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}"
- target: $["paths"]["/partners/ban"]["post"]
update:
"x-codeSamples":
Expand All @@ -247,8 +247,8 @@ actions:
update:
"x-codeSamples":
- "lang": "go"
"label": "retrieveLinks"
"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.Partners.RetrieveLinks(ctx, operations.RetrieveLinksRequest{})\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}"
"label": "retrievePartnerLinks"
"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.Partners.RetrieveLinks(ctx, operations.RetrievePartnerLinksRequest{})\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}"
- target: $["paths"]["/partners/links"]["post"]
update:
"x-codeSamples":
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ApprovePartnerRequestBody
# ApprovePartnerApplicationRequestBody


## Fields
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ApprovePartnerResponseBody
# ApprovePartnerApplicationResponseBody

The approved partner

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# RejectPartnerRequestBody
# RejectPartnerApplicationRequestBody


## Fields
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# RejectPartnerResponseBody
# RejectPartnerApplicationResponseBody

The rejected partner

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# RetrieveLinksRequest
# RetrievePartnerLinksRequest


## Fields
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# RetrieveLinksResponseBody
# RetrievePartnerLinksResponseBody


## Fields
Expand Down
32 changes: 16 additions & 16 deletions docs/sdks/partnerapplications/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Approve a pending partner application to your program. The partner will be enrol

### Example Usage

<!-- UsageSnippet language="go" operationID="approvePartner" method="post" path="/partners/applications/approve" -->
<!-- UsageSnippet language="go" operationID="approvePartnerApplication" method="post" path="/partners/applications/approve" -->
```go
package main

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

res, err := s.PartnerApplications.Approve(ctx, operations.ApprovePartnerRequestBody{
res, err := s.PartnerApplications.Approve(ctx, operations.ApprovePartnerApplicationRequestBody{
PartnerID: "<id>",
})
if err != nil {
Expand All @@ -112,15 +112,15 @@ 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. |
| `request` | [operations.ApprovePartnerRequestBody](../../models/operations/approvepartnerrequestbody.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. |
| 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.ApprovePartnerApplicationRequestBody](../../models/operations/approvepartnerapplicationrequestbody.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

**[*operations.ApprovePartnerResponseBody](../../models/operations/approvepartnerresponsebody.md), error**
**[*operations.ApprovePartnerApplicationResponseBody](../../models/operations/approvepartnerapplicationresponsebody.md), error**

### Errors

Expand All @@ -143,7 +143,7 @@ Reject a pending partner application to your program. The partner will be notifi

### Example Usage

<!-- UsageSnippet language="go" operationID="rejectPartner" method="post" path="/partners/applications/reject" -->
<!-- UsageSnippet language="go" operationID="rejectPartnerApplication" method="post" path="/partners/applications/reject" -->
```go
package main

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

res, err := s.PartnerApplications.Reject(ctx, operations.RejectPartnerRequestBody{
res, err := s.PartnerApplications.Reject(ctx, operations.RejectPartnerApplicationRequestBody{
PartnerID: "<id>",
})
if err != nil {
Expand All @@ -175,15 +175,15 @@ 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. |
| `request` | [operations.RejectPartnerRequestBody](../../models/operations/rejectpartnerrequestbody.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. |
| 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.RejectPartnerApplicationRequestBody](../../models/operations/rejectpartnerapplicationrequestbody.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

**[*operations.RejectPartnerResponseBody](../../models/operations/rejectpartnerresponsebody.md), error**
**[*operations.RejectPartnerApplicationResponseBody](../../models/operations/rejectpartnerapplicationresponsebody.md), error**

### Errors

Expand Down
Loading