Skip to content

Commit

Permalink
Merge pull request #28 from dubinc/speakeasy-sdk-regen-1724633769
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate 0.8.2
  • Loading branch information
devkiran authored Aug 27, 2024
2 parents 5a972f9 + 1262bbb commit bb5f000
Show file tree
Hide file tree
Showing 8 changed files with 174 additions and 124 deletions.
10 changes: 5 additions & 5 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: 3bb9be4afb2fadce5fd5e67aabc0a27e
docChecksum: eed7a2ad5cc93c07aac35e5c6d536a9a
docVersion: 0.0.1
speakeasyVersion: 1.377.3
generationVersion: 2.404.2
releaseVersion: 0.8.1
configChecksum: 00def1b591b3e5f98f2ff34b2c8279e6
speakeasyVersion: 1.379.0
generationVersion: 2.404.3
releaseVersion: 0.8.2
configChecksum: 9ad93f9705e117c0020ddc17d962f7ae
repoURL: https://github.com/dubinc/dub-go.git
installationURL: https://github.com/dubinc/dub-go
features:
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.1
version: 0.8.2
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.377.3
speakeasyVersion: 1.379.0
sources:
dub:
sourceNamespace: dub
sourceRevisionDigest: sha256:3ce5687fd3cba66efe7bdf74e115ea113ff8f700762507608dbbc16acd375392
sourceBlobDigest: sha256:b56ec854820ec7a0ee23fe596f5fee03535d9b142038244744e8197ef8a542c7
sourceRevisionDigest: sha256:20361bc4b0e0d752d9e2dc3416291702086cfc703db1934d990d54a64b085acb
sourceBlobDigest: sha256:60c8fb4ef34c80869c5b32ce1fe353138ae7ec1785ca158577f0f934460e5e9d
tags:
- latest
- main
targets:
my-first-target:
source: dub
sourceNamespace: dub
sourceRevisionDigest: sha256:3ce5687fd3cba66efe7bdf74e115ea113ff8f700762507608dbbc16acd375392
sourceBlobDigest: sha256:b56ec854820ec7a0ee23fe596f5fee03535d9b142038244744e8197ef8a542c7
sourceRevisionDigest: sha256:20361bc4b0e0d752d9e2dc3416291702086cfc703db1934d990d54a64b085acb
sourceBlobDigest: sha256:60c8fb4ef34c80869c5b32ce1fe353138ae7ec1785ca158577f0f934460e5e9d
codeSamplesNamespace: code-samples-go-my-first-target
codeSamplesRevisionDigest: sha256:8052678c7e0565b743d1989ff99cce602be631cbae8cde2e542e8b2d8a5cfcd9
codeSamplesRevisionDigest: sha256:7abdb1aefff37c5b966d45be38fdb51c7aff76a0c6b933cd9aa692ca54b53634
outLocation: /github/workspace/repo
workflow:
workflowVersion: 1.0.0
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,4 +248,14 @@ Based on:
### Generated
- [go v0.8.1] .
### Releases
- [Go v0.8.1] https://github.com/dubinc/dub-go/releases/tag/v0.8.1 - .
- [Go v0.8.1] https://github.com/dubinc/dub-go/releases/tag/v0.8.1 - .

## 2024-08-27 00:56:29
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.379.0 (2.404.3) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.8.2] .
### Releases
- [Go v0.8.2] https://github.com/dubinc/dub-go/releases/tag/v0.8.2 - .
132 changes: 66 additions & 66 deletions codeSamples.yaml

Large diffs are not rendered by default.

16 changes: 10 additions & 6 deletions docs/models/components/workspaceschema.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
| `Name` | *string* | :heavy_check_mark: | The name of the workspace. |
| `Slug` | *string* | :heavy_check_mark: | The slug of the workspace. |
| `Logo` | **string* | :heavy_minus_sign: | The logo of the workspace. |
| `Plan` | [components.Plan](../../models/components/plan.md) | :heavy_check_mark: | The plan of the workspace. |
| `StripeID` | *string* | :heavy_check_mark: | The Stripe ID of the workspace. |
| `BillingCycleStart` | *float64* | :heavy_check_mark: | The date and time when the billing cycle starts for the workspace. |
| `StripeConnectID` | *string* | :heavy_check_mark: | [BETA]: The Stripe Connect ID of the workspace. |
| `InviteCode` | *string* | :heavy_check_mark: | The invite code of the workspace. |
| `Usage` | *float64* | :heavy_check_mark: | The usage of the workspace. |
| `UsageLimit` | *float64* | :heavy_check_mark: | The usage limit of the workspace. |
| `LinksUsage` | *float64* | :heavy_check_mark: | The links usage of the workspace. |
Expand All @@ -18,13 +23,12 @@
| `DomainsLimit` | *float64* | :heavy_check_mark: | The domains limit of the workspace. |
| `TagsLimit` | *float64* | :heavy_check_mark: | The tags limit of the workspace. |
| `UsersLimit` | *float64* | :heavy_check_mark: | The users limit of the workspace. |
| `Plan` | [components.Plan](../../models/components/plan.md) | :heavy_check_mark: | The plan of the workspace. |
| `StripeID` | *string* | :heavy_check_mark: | The Stripe ID of the workspace. |
| `BillingCycleStart` | *float64* | :heavy_check_mark: | The date and time when the billing cycle starts for the workspace. |
| `StripeConnectID` | *string* | :heavy_check_mark: | [BETA]: The Stripe Connect ID of the workspace. |
| `AiUsage` | *float64* | :heavy_check_mark: | The AI usage of the workspace. |
| `AiLimit` | *float64* | :heavy_check_mark: | The AI limit of the workspace. |
| `ReferralLinkID` | *string* | :heavy_check_mark: | The ID of the referral link of the workspace. |
| `ReferredSignups` | *float64* | :heavy_check_mark: | The number of signups referred by the workspace. |
| `ConversionEnabled` | *bool* | :heavy_check_mark: | Whether the workspace has conversion tracking enabled (d.to/conversions). |
| `CreatedAt` | *string* | :heavy_check_mark: | The date and time when the workspace was created. |
| `Users` | [][components.Users](../../models/components/users.md) | :heavy_check_mark: | The role of the authenticated user in the workspace. |
| `Domains` | [][components.Domains](../../models/components/domains.md) | :heavy_check_mark: | The domains of the workspace. |
| `InviteCode` | *string* | :heavy_check_mark: | The invite code of the workspace. |
| `ConversionEnabled` | *bool* | :heavy_check_mark: | Whether the workspace has conversion tracking enabled (d.to/conversions). |
| `Flags` | map[string]*bool* | :heavy_minus_sign: | The feature flags of the workspace, indicating which features are enabled. |
6 changes: 3 additions & 3 deletions dub.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@ func New(opts ...SDKOption) *Dub {
sdkConfiguration: sdkConfiguration{
Language: "go",
OpenAPIDocVersion: "0.0.1",
SDKVersion: "0.8.1",
GenVersion: "2.404.2",
UserAgent: "speakeasy-sdk/go 0.8.1 2.404.2 0.0.1 github.com/dubinc/dub-go",
SDKVersion: "0.8.2",
GenVersion: "2.404.3",
UserAgent: "speakeasy-sdk/go 0.8.2 2.404.3 0.0.1 github.com/dubinc/dub-go",
Hooks: hooks.New(),
},
}
Expand Down
108 changes: 72 additions & 36 deletions models/components/workspaceschema.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,16 @@ type WorkspaceSchema struct {
Slug string `json:"slug"`
// The logo of the workspace.
Logo *string `default:"null" json:"logo"`
// The plan of the workspace.
Plan Plan `json:"plan"`
// The Stripe ID of the workspace.
StripeID *string `json:"stripeId"`
// The date and time when the billing cycle starts for the workspace.
BillingCycleStart float64 `json:"billingCycleStart"`
// [BETA]: The Stripe Connect ID of the workspace.
StripeConnectID *string `json:"stripeConnectId"`
// The invite code of the workspace.
InviteCode *string `json:"inviteCode"`
// The usage of the workspace.
Usage float64 `json:"usage"`
// The usage limit of the workspace.
Expand All @@ -157,24 +167,22 @@ type WorkspaceSchema struct {
TagsLimit float64 `json:"tagsLimit"`
// The users limit of the workspace.
UsersLimit float64 `json:"usersLimit"`
// The plan of the workspace.
Plan Plan `json:"plan"`
// The Stripe ID of the workspace.
StripeID *string `json:"stripeId"`
// The date and time when the billing cycle starts for the workspace.
BillingCycleStart float64 `json:"billingCycleStart"`
// [BETA]: The Stripe Connect ID of the workspace.
StripeConnectID *string `json:"stripeConnectId"`
// The AI usage of the workspace.
AiUsage float64 `json:"aiUsage"`
// The AI limit of the workspace.
AiLimit float64 `json:"aiLimit"`
// The ID of the referral link of the workspace.
ReferralLinkID *string `json:"referralLinkId"`
// The number of signups referred by the workspace.
ReferredSignups float64 `json:"referredSignups"`
// Whether the workspace has conversion tracking enabled (d.to/conversions).
ConversionEnabled bool `json:"conversionEnabled"`
// The date and time when the workspace was created.
CreatedAt string `json:"createdAt"`
// The role of the authenticated user in the workspace.
Users []Users `json:"users"`
// The domains of the workspace.
Domains []Domains `json:"domains"`
// The invite code of the workspace.
InviteCode *string `json:"inviteCode"`
// Whether the workspace has conversion tracking enabled (d.to/conversions).
ConversionEnabled bool `json:"conversionEnabled"`
// The feature flags of the workspace, indicating which features are enabled.
Flags map[string]bool `json:"flags,omitempty"`
}
Expand Down Expand Up @@ -218,6 +226,41 @@ func (o *WorkspaceSchema) GetLogo() *string {
return o.Logo
}

func (o *WorkspaceSchema) GetPlan() Plan {
if o == nil {
return Plan("")
}
return o.Plan
}

func (o *WorkspaceSchema) GetStripeID() *string {
if o == nil {
return nil
}
return o.StripeID
}

func (o *WorkspaceSchema) GetBillingCycleStart() float64 {
if o == nil {
return 0.0
}
return o.BillingCycleStart
}

func (o *WorkspaceSchema) GetStripeConnectID() *string {
if o == nil {
return nil
}
return o.StripeConnectID
}

func (o *WorkspaceSchema) GetInviteCode() *string {
if o == nil {
return nil
}
return o.InviteCode
}

func (o *WorkspaceSchema) GetUsage() float64 {
if o == nil {
return 0.0
Expand Down Expand Up @@ -281,32 +324,39 @@ func (o *WorkspaceSchema) GetUsersLimit() float64 {
return o.UsersLimit
}

func (o *WorkspaceSchema) GetPlan() Plan {
func (o *WorkspaceSchema) GetAiUsage() float64 {
if o == nil {
return Plan("")
return 0.0
}
return o.Plan
return o.AiUsage
}

func (o *WorkspaceSchema) GetStripeID() *string {
func (o *WorkspaceSchema) GetAiLimit() float64 {
if o == nil {
return 0.0
}
return o.AiLimit
}

func (o *WorkspaceSchema) GetReferralLinkID() *string {
if o == nil {
return nil
}
return o.StripeID
return o.ReferralLinkID
}

func (o *WorkspaceSchema) GetBillingCycleStart() float64 {
func (o *WorkspaceSchema) GetReferredSignups() float64 {
if o == nil {
return 0.0
}
return o.BillingCycleStart
return o.ReferredSignups
}

func (o *WorkspaceSchema) GetStripeConnectID() *string {
func (o *WorkspaceSchema) GetConversionEnabled() bool {
if o == nil {
return nil
return false
}
return o.StripeConnectID
return o.ConversionEnabled
}

func (o *WorkspaceSchema) GetCreatedAt() string {
Expand All @@ -330,20 +380,6 @@ func (o *WorkspaceSchema) GetDomains() []Domains {
return o.Domains
}

func (o *WorkspaceSchema) GetInviteCode() *string {
if o == nil {
return nil
}
return o.InviteCode
}

func (o *WorkspaceSchema) GetConversionEnabled() bool {
if o == nil {
return false
}
return o.ConversionEnabled
}

func (o *WorkspaceSchema) GetFlags() map[string]bool {
if o == nil {
return nil
Expand Down

0 comments on commit bb5f000

Please sign in to comment.