Skip to content

Commit b9fbc2e

Browse files
speakeasybotfrankie567
authored andcommitted
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.546.0
1 parent 4f9c585 commit b9fbc2e

File tree

211 files changed

+1650
-1664
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

211 files changed

+1650
-1664
lines changed

.speakeasy/gen.lock

Lines changed: 274 additions & 342 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ generation:
1919
oAuth2ClientCredentialsEnabled: true
2020
oAuth2PasswordEnabled: true
2121
go:
22-
version: 0.4.17
22+
version: 0.4.18
2323
additionalDependencies: {}
2424
allowUnknownFieldsInWeakUnions: true
2525
clientServerStatusCodesAsErrors: true

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.545.0
1+
speakeasyVersion: 1.546.0
22
sources:
33
Polar-OAS:
44
sourceNamespace: polar-oas
5-
sourceRevisionDigest: sha256:ba0590f99f7d92377e3a79c9be70073f4df7d5bb9f01b6c4383788f93d22e0c7
6-
sourceBlobDigest: sha256:0bc1a2119cc5d3cb5d8b9cad79fb3f40aca01b54bd0cef480914d4acdeaf5260
5+
sourceRevisionDigest: sha256:c7a2237d450b688b5357245d59b3abe46e05e3437fc3a26dcce195ee7c8ca22d
6+
sourceBlobDigest: sha256:5ec6adb4d32fce786c18ccd7074e12ea21ab65bb0210efbcd2c11dee05b70fd9
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1746836792
9+
- speakeasy-sdk-regen-1747355284
1010
- 0.1.0
1111
targets:
1212
polar:
1313
source: Polar-OAS
1414
sourceNamespace: polar-oas
15-
sourceRevisionDigest: sha256:ba0590f99f7d92377e3a79c9be70073f4df7d5bb9f01b6c4383788f93d22e0c7
16-
sourceBlobDigest: sha256:0bc1a2119cc5d3cb5d8b9cad79fb3f40aca01b54bd0cef480914d4acdeaf5260
15+
sourceRevisionDigest: sha256:c7a2237d450b688b5357245d59b3abe46e05e3437fc3a26dcce195ee7c8ca22d
16+
sourceBlobDigest: sha256:5ec6adb4d32fce786c18ccd7074e12ea21ab65bb0210efbcd2c11dee05b70fd9
1717
codeSamplesNamespace: polar-oas-code-samples-go
18-
codeSamplesRevisionDigest: sha256:03e2d5aec6413e0702f627d8d6dc7d48917295988d0dd45c95970e636e291941
18+
codeSamplesRevisionDigest: sha256:b4130003f9005d3a73f004e230206ff39f3720c0dfbcd16f39281a9931c0e441
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 153 additions & 223 deletions
Large diffs are not rendered by default.

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,4 +318,14 @@ Based on:
318318
### Generated
319319
- [go v0.4.17] .
320320
### Releases
321-
- [Go v0.4.17] https://github.com/polarsource/polar-go/releases/tag/v0.4.17 - .
321+
- [Go v0.4.17] https://github.com/polarsource/polar-go/releases/tag/v0.4.17 - .
322+
323+
## 2025-05-16 09:38:30
324+
### Changes
325+
Based on:
326+
- OpenAPI Doc
327+
- Speakeasy CLI 1.546.0 (2.603.1) https://github.com/speakeasy-api/speakeasy
328+
### Generated
329+
- [go v0.4.18] .
330+
### Releases
331+
- [Go v0.4.18] https://github.com/polarsource/polar-go/releases/tag/v0.4.18 - .

codeSamples.yaml

Lines changed: 71 additions & 71 deletions
Large diffs are not rendered by default.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# FileIDFilter
2+
3+
Filter by file ID.
4+
5+
6+
## Supported Types
7+
8+
###
9+
10+
```go
11+
fileIDFilter := operations.CreateFileIDFilterStr(string{/* values here */})
12+
```
13+
14+
###
15+
16+
```go
17+
fileIDFilter := operations.CreateFileIDFilterArrayOfStr([]string{/* values here */})
18+
```
19+
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# FilesListQueryParamOrganizationIDFilter
2+
3+
Filter by organization ID.
4+
5+
6+
## Supported Types
7+
8+
###
9+
10+
```go
11+
filesListQueryParamOrganizationIDFilter := operations.CreateFilesListQueryParamOrganizationIDFilterStr(string{/* values here */})
12+
```
13+
14+
###
15+
16+
```go
17+
filesListQueryParamOrganizationIDFilter := operations.CreateFilesListQueryParamOrganizationIDFilterArrayOfStr([]string{/* values here */})
18+
```
19+

docs/models/operations/fileslistrequest.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
## Fields
55

6-
| Field | Type | Required | Description | Example |
7-
| ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- |
8-
| `OrganizationID` | **string* | :heavy_minus_sign: | N/A | 1dbfc517-0bbf-4301-9ba8-555ca42b9737 |
9-
| `Ids` | []*string* | :heavy_minus_sign: | List of file IDs to get. | |
10-
| `Page` | **int64* | :heavy_minus_sign: | Page number, defaults to 1. | |
11-
| `Limit` | **int64* | :heavy_minus_sign: | Size of a page, defaults to 10. Maximum is 100. | |
6+
| Field | Type | Required | Description |
7+
| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
8+
| `OrganizationID` | [*operations.FilesListQueryParamOrganizationIDFilter](../../models/operations/fileslistqueryparamorganizationidfilter.md) | :heavy_minus_sign: | Filter by organization ID. |
9+
| `Ids` | [*operations.FileIDFilter](../../models/operations/fileidfilter.md) | :heavy_minus_sign: | Filter by file ID. |
10+
| `Page` | **int64* | :heavy_minus_sign: | Page number, defaults to 1. |
11+
| `Limit` | **int64* | :heavy_minus_sign: | Size of a page, defaults to 10. Maximum is 100. |

docs/sdks/benefitgrants/README.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,8 @@ func main() {
3434
s := polargo.New()
3535

3636
res, err := s.CustomerPortal.BenefitGrants.List(ctx, operations.CustomerPortalBenefitGrantsListRequest{
37-
OrganizationID: polargo.Pointer(operations.CreateCustomerPortalBenefitGrantsListQueryParamOrganizationIDFilterArrayOfStr(
38-
[]string{
39-
"1dbfc517-0bbf-4301-9ba8-555ca42b9737",
40-
},
37+
OrganizationID: polargo.Pointer(operations.CreateCustomerPortalBenefitGrantsListQueryParamOrganizationIDFilterStr(
38+
"1dbfc517-0bbf-4301-9ba8-555ca42b9737",
4139
)),
4240
}, operations.CustomerPortalBenefitGrantsListSecurity{
4341
CustomerSession: os.Getenv("POLAR_CUSTOMER_SESSION"),
@@ -167,12 +165,8 @@ func main() {
167165

168166
res, err := s.CustomerPortal.BenefitGrants.Update(ctx, operations.CustomerPortalBenefitGrantsUpdateSecurity{
169167
CustomerSession: os.Getenv("POLAR_CUSTOMER_SESSION"),
170-
}, "<value>", components.CreateCustomerBenefitGrantUpdateGithubRepository(
171-
components.CustomerBenefitGrantGitHubRepositoryUpdate{
172-
Properties: components.CustomerBenefitGrantGitHubRepositoryPropertiesUpdate{
173-
AccountID: "<id>",
174-
},
175-
},
168+
}, "<value>", components.CreateCustomerBenefitGrantUpdateLicenseKeys(
169+
components.CustomerBenefitGrantLicenseKeysUpdate{},
176170
))
177171
if err != nil {
178172
log.Fatal(err)

docs/sdks/benefits/README.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,11 @@ func main() {
111111
polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")),
112112
)
113113

114-
res, err := s.Benefits.Create(ctx, components.CreateBenefitCreateGithubRepository(
115-
components.BenefitGitHubRepositoryCreate{
116-
Description: "yuck forager beneath please shadowy foodstuffs welcome",
114+
res, err := s.Benefits.Create(ctx, components.CreateBenefitCreateLicenseKeys(
115+
components.BenefitLicenseKeysCreate{
116+
Description: "mature emergent at outside arrogantly gadzooks zealous equatorial notwithstanding",
117117
OrganizationID: polargo.String("1dbfc517-0bbf-4301-9ba8-555ca42b9737"),
118-
Properties: components.BenefitGitHubRepositoryCreateProperties{
119-
RepositoryOwner: "polarsource",
120-
RepositoryName: "private_repo",
121-
Permission: components.BenefitGitHubRepositoryCreatePropertiesPermissionTriage,
122-
},
118+
Properties: components.BenefitLicenseKeysCreateProperties{},
123119
},
124120
))
125121
if err != nil {
@@ -232,8 +228,8 @@ func main() {
232228
polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")),
233229
)
234230

235-
res, err := s.Benefits.Update(ctx, "<value>", operations.CreateBenefitsUpdateBenefitUpdateBenefitDownloadablesUpdate(
236-
components.BenefitDownloadablesUpdate{},
231+
res, err := s.Benefits.Update(ctx, "<value>", operations.CreateBenefitsUpdateBenefitUpdateBenefitCustomUpdate(
232+
components.BenefitCustomUpdate{},
237233
))
238234
if err != nil {
239235
log.Fatal(err)

docs/sdks/checkoutlinks/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,9 @@ func main() {
111111
polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")),
112112
)
113113

114-
res, err := s.CheckoutLinks.Create(ctx, operations.CreateCheckoutLinksCreateCheckoutLinkCreateCheckoutLinkCreateProduct(
115-
components.CheckoutLinkCreateProduct{
116-
ProductID: "<value>",
114+
res, err := s.CheckoutLinks.Create(ctx, operations.CreateCheckoutLinksCreateCheckoutLinkCreateCheckoutLinkCreateProductPrice(
115+
components.CheckoutLinkCreateProductPrice{
116+
ProductPriceID: "<value>",
117117
},
118118
))
119119
if err != nil {

docs/sdks/checkouts/README.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,8 @@ func main() {
4040
)
4141

4242
res, err := s.Checkouts.List(ctx, operations.CheckoutsListRequest{
43-
OrganizationID: polargo.Pointer(operations.CreateCheckoutsListQueryParamOrganizationIDFilterArrayOfStr(
44-
[]string{
45-
"1dbfc517-0bbf-4301-9ba8-555ca42b9737",
46-
},
43+
OrganizationID: polargo.Pointer(operations.CreateCheckoutsListQueryParamOrganizationIDFilterStr(
44+
"1dbfc517-0bbf-4301-9ba8-555ca42b9737",
4745
)),
4846
})
4947
if err != nil {
@@ -114,11 +112,12 @@ func main() {
114112

115113
res, err := s.Checkouts.Create(ctx, components.CheckoutCreate{
116114
CustomerBillingAddress: &components.Address{
117-
Country: "SE",
115+
Country: "FR",
118116
},
119117
Products: []string{
120-
"<value>",
121-
"<value>",
118+
"<value 1>",
119+
"<value 2>",
120+
"<value 3>",
122121
},
123122
})
124123
if err != nil {
@@ -232,7 +231,7 @@ func main() {
232231

233232
res, err := s.Checkouts.Update(ctx, "<value>", components.CheckoutUpdate{
234233
CustomerBillingAddress: &components.Address{
235-
Country: "FR",
234+
Country: "US",
236235
},
237236
})
238237
if err != nil {
@@ -340,7 +339,7 @@ func main() {
340339

341340
res, err := s.Checkouts.ClientUpdate(ctx, "<value>", components.CheckoutUpdatePublic{
342341
CustomerBillingAddress: &components.Address{
343-
Country: "FR",
342+
Country: "US",
344343
},
345344
})
346345
if err != nil {
@@ -403,7 +402,7 @@ func main() {
403402

404403
res, err := s.Checkouts.ClientConfirm(ctx, "<value>", components.CheckoutConfirmStripe{
405404
CustomerBillingAddress: &components.Address{
406-
Country: "FR",
405+
Country: "US",
407406
},
408407
})
409408
if err != nil {

docs/sdks/clients/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ func main() {
102102

103103
res, err := s.Oauth2.Clients.Create(ctx, components.OAuth2ClientConfiguration{
104104
RedirectUris: []string{
105-
"https://inferior-chainstay.com",
105+
"https://impolite-hippodrome.com/",
106+
"https://acidic-tomography.net/",
106107
},
107108
ClientName: "<value>",
108109
})
@@ -212,9 +213,8 @@ func main() {
212213

213214
res, err := s.Oauth2.Clients.Update(ctx, "<id>", components.OAuth2ClientConfigurationUpdate{
214215
RedirectUris: []string{
215-
"https://grown-worth.name",
216-
"https://worthwhile-avalanche.org/",
217-
"https://general-digit.com/",
216+
"https://classic-cantaloupe.org",
217+
"https://corrupt-status.biz/",
218218
},
219219
ClientName: "<value>",
220220
ClientID: "<id>",

docs/sdks/customers/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ func main() {
120120
121121
Name: polargo.String("John Doe"),
122122
BillingAddress: &components.Address{
123-
Country: "SE",
123+
Country: "FR",
124124
},
125125
TaxID: []*components.CustomerCreateTaxID{
126126
polargo.Pointer(components.CreateCustomerCreateTaxIDStr(
@@ -249,10 +249,10 @@ func main() {
249249
},
250250
TaxID: []*components.CustomerUpdateTaxID{
251251
polargo.Pointer(components.CreateCustomerUpdateTaxIDStr(
252-
"FR61954506077",
252+
"911144442",
253253
)),
254254
polargo.Pointer(components.CreateCustomerUpdateTaxIDStr(
255-
"eu_vat",
255+
"us_ein",
256256
)),
257257
},
258258
ExternalID: polargo.String("usr_1337"),
@@ -443,10 +443,10 @@ func main() {
443443
},
444444
TaxID: []*components.CustomerUpdateExternalIDTaxID{
445445
polargo.Pointer(components.CreateCustomerUpdateExternalIDTaxIDStr(
446-
"FR61954506077",
446+
"911144442",
447447
)),
448448
polargo.Pointer(components.CreateCustomerUpdateExternalIDTaxIDStr(
449-
"eu_vat",
449+
"us_ein",
450450
)),
451451
},
452452
})

docs/sdks/customersessions/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ func main() {
3434
polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")),
3535
)
3636

37-
res, err := s.CustomerSessions.Create(ctx, operations.CreateCustomerSessionsCreateCustomerSessionCreateCustomerSessionCustomerIDCreate(
38-
components.CustomerSessionCustomerIDCreate{
39-
CustomerID: "<value>",
37+
res, err := s.CustomerSessions.Create(ctx, operations.CreateCustomerSessionsCreateCustomerSessionCreateCustomerSessionCustomerExternalIDCreate(
38+
components.CustomerSessionCustomerExternalIDCreate{
39+
CustomerExternalID: "<id>",
4040
},
4141
))
4242
if err != nil {

docs/sdks/customfields/README.md

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,8 @@ func main() {
3838
)
3939

4040
res, err := s.CustomFields.List(ctx, operations.CustomFieldsListRequest{
41-
OrganizationID: polargo.Pointer(operations.CreateCustomFieldsListQueryParamOrganizationIDFilterArrayOfStr(
42-
[]string{
43-
"1dbfc517-0bbf-4301-9ba8-555ca42b9737",
44-
},
41+
OrganizationID: polargo.Pointer(operations.CreateCustomFieldsListQueryParamOrganizationIDFilterStr(
42+
"1dbfc517-0bbf-4301-9ba8-555ca42b9737",
4543
)),
4644
})
4745
if err != nil {
@@ -116,12 +114,7 @@ func main() {
116114
Name: "<value>",
117115
OrganizationID: polargo.String("1dbfc517-0bbf-4301-9ba8-555ca42b9737"),
118116
Properties: components.CustomFieldSelectProperties{
119-
Options: []components.CustomFieldSelectOption{
120-
components.CustomFieldSelectOption{
121-
Value: "<value>",
122-
Label: "<value>",
123-
},
124-
},
117+
Options: []components.CustomFieldSelectOption{},
125118
},
126119
},
127120
))
@@ -234,8 +227,8 @@ func main() {
234227
polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")),
235228
)
236229

237-
res, err := s.CustomFields.Update(ctx, "<value>", components.CreateCustomFieldUpdateNumber(
238-
components.CustomFieldUpdateNumber{},
230+
res, err := s.CustomFields.Update(ctx, "<value>", components.CreateCustomFieldUpdateDate(
231+
components.CustomFieldUpdateDate{},
239232
))
240233
if err != nil {
241234
log.Fatal(err)

docs/sdks/discounts/README.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,8 @@ func main() {
3838
)
3939

4040
res, err := s.Discounts.List(ctx, operations.DiscountsListRequest{
41-
OrganizationID: polargo.Pointer(operations.CreateDiscountsListQueryParamOrganizationIDFilterArrayOfStr(
42-
[]string{
43-
"1dbfc517-0bbf-4301-9ba8-555ca42b9737",
44-
},
41+
OrganizationID: polargo.Pointer(operations.CreateDiscountsListQueryParamOrganizationIDFilterStr(
42+
"1dbfc517-0bbf-4301-9ba8-555ca42b9737",
4543
)),
4644
})
4745
if err != nil {
@@ -110,12 +108,11 @@ func main() {
110108
polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")),
111109
)
112110

113-
res, err := s.Discounts.Create(ctx, components.CreateDiscountCreateDiscountFixedRepeatDurationCreate(
114-
components.DiscountFixedRepeatDurationCreate{
115-
Duration: components.DiscountDurationForever,
116-
DurationInMonths: 417458,
111+
res, err := s.Discounts.Create(ctx, components.CreateDiscountCreateDiscountPercentageOnceForeverDurationCreate(
112+
components.DiscountPercentageOnceForeverDurationCreate{
113+
Duration: components.DiscountDurationOnce,
117114
Type: components.DiscountTypeFixed,
118-
Amount: 69025,
115+
BasisPoints: 449604,
119116
Name: "<value>",
120117
OrganizationID: polargo.String("1dbfc517-0bbf-4301-9ba8-555ca42b9737"),
121118
},

docs/sdks/downloadables/README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,8 @@ func main() {
3232

3333
res, err := s.CustomerPortal.Downloadables.List(ctx, operations.CustomerPortalDownloadablesListSecurity{
3434
CustomerSession: os.Getenv("POLAR_CUSTOMER_SESSION"),
35-
}, polargo.Pointer(operations.CreateCustomerPortalDownloadablesListQueryParamOrganizationIDFilterArrayOfStr(
36-
[]string{
37-
"1dbfc517-0bbf-4301-9ba8-555ca42b9737",
38-
},
35+
}, polargo.Pointer(operations.CreateCustomerPortalDownloadablesListQueryParamOrganizationIDFilterStr(
36+
"1dbfc517-0bbf-4301-9ba8-555ca42b9737",
3937
)), nil, nil, nil)
4038
if err != nil {
4139
log.Fatal(err)

0 commit comments

Comments
 (0)