Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.441.1
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot authored and frankie567 committed Nov 21, 2024
1 parent 1dec59d commit 700b504
Show file tree
Hide file tree
Showing 756 changed files with 24,755 additions and 3,721 deletions.
248 changes: 197 additions & 51 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 @@ -16,7 +16,7 @@ generation:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: false
typescript:
version: 0.16.0
version: 0.16.1
additionalDependencies:
dependencies: {}
devDependencies: {}
Expand Down
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
speakeasyVersion: 1.438.1
speakeasyVersion: 1.441.1
sources:
Polar-OAS:
sourceNamespace: polar-oas
sourceRevisionDigest: sha256:4df6842813b1d54baedbb25f874738d0e3c669760833f3b457579ba69a12a8e4
sourceBlobDigest: sha256:0f5b5388af51c8cea34904ea7acce013ecca69a2afb75886d9f134e135a365bd
sourceRevisionDigest: sha256:40cfebc679930e4cab6ae524322b0aa254b63e14ab7a1935f67c41d8b128986c
sourceBlobDigest: sha256:a1cecf3e9bc0d658473d314616d6e136f03b5de155080793993c0ea6a6485632
tags:
- latest
- main
- speakeasy-sdk-regen-1731543964
targets:
polar:
source: Polar-OAS
sourceNamespace: polar-oas
sourceRevisionDigest: sha256:4df6842813b1d54baedbb25f874738d0e3c669760833f3b457579ba69a12a8e4
sourceBlobDigest: sha256:0f5b5388af51c8cea34904ea7acce013ecca69a2afb75886d9f134e135a365bd
sourceRevisionDigest: sha256:40cfebc679930e4cab6ae524322b0aa254b63e14ab7a1935f67c41d8b128986c
sourceBlobDigest: sha256:a1cecf3e9bc0d658473d314616d6e136f03b5de155080793993c0ea6a6485632
codeSamplesNamespace: polar-oas-code-samples
codeSamplesRevisionDigest: sha256:75cc7be78a96633fb0659d25db90c457df8c0fac82a428524a1fadb33d3a8699
codeSamplesRevisionDigest: sha256:fba51b8ba0c966e53809221ba57a524b479a39477f5b9d4d81889512f1a47492
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,14 @@ run();
* [update](docs/sdks/customfields/README.md#update) - Update Custom Field
* [delete](docs/sdks/customfields/README.md#delete) - Delete Custom Field

### [discounts](docs/sdks/discounts/README.md)

* [list](docs/sdks/discounts/README.md#list) - List Discounts
* [create](docs/sdks/discounts/README.md#create) - Create Discount
* [get](docs/sdks/discounts/README.md#get) - Get Discount
* [update](docs/sdks/discounts/README.md#update) - Update Discount
* [delete](docs/sdks/discounts/README.md#delete) - Delete Discount

### [externalOrganizations](docs/sdks/externalorganizations/README.md)

* [list](docs/sdks/externalorganizations/README.md#list) - List External Organizations
Expand Down Expand Up @@ -333,6 +341,11 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
- [`customFieldsGet`](docs/sdks/customfields/README.md#get) - Get Custom Field
- [`customFieldsList`](docs/sdks/customfields/README.md#list) - List Custom Fields
- [`customFieldsUpdate`](docs/sdks/customfields/README.md#update) - Update Custom Field
- [`discountsCreate`](docs/sdks/discounts/README.md#create) - Create Discount
- [`discountsDelete`](docs/sdks/discounts/README.md#delete) - Delete Discount
- [`discountsGet`](docs/sdks/discounts/README.md#get) - Get Discount
- [`discountsList`](docs/sdks/discounts/README.md#list) - List Discounts
- [`discountsUpdate`](docs/sdks/discounts/README.md#update) - Update Discount
- [`externalOrganizationsList`](docs/sdks/externalorganizations/README.md#list) - List External Organizations
- [`filesCreate`](docs/sdks/files/README.md#create) - Create File
- [`filesDelete`](docs/sdks/files/README.md#delete) - Delete File
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,4 +208,14 @@ Based on:
### Generated
- [typescript v0.16.0] .
### Releases
- [NPM v0.16.0] https://www.npmjs.com/package/@polar-sh/sdk/v/0.16.0 - .
- [NPM v0.16.0] https://www.npmjs.com/package/@polar-sh/sdk/v/0.16.0 - .

## 2024-11-21 14:21:06
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.441.1 (2.461.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.16.1] .
### Releases
- [NPM v0.16.1] https://www.npmjs.com/package/@polar-sh/sdk/v/0.16.1 - .
34 changes: 32 additions & 2 deletions codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ actions:
"x-codeSamples":
- "lang": "typescript"
"label": "create"
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.checkoutLinks.create({\n productPriceId: \"<value>\",\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();"
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.checkoutLinks.create({\n productId: \"<value>\",\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();"
- target: $["paths"]["/v1/checkout-links/{id}"]["delete"]
update:
"x-codeSamples":
Expand Down Expand Up @@ -146,7 +146,7 @@ actions:
"x-codeSamples":
- "lang": "typescript"
"label": "create"
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.checkouts.custom.create({\n productPriceId: \"<value>\",\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();"
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.checkouts.custom.create({\n productId: \"<value>\",\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();"
- target: $["paths"]["/v1/checkouts/custom/client/{client_secret}"]["get"]
update:
"x-codeSamples":
Expand Down Expand Up @@ -207,6 +207,36 @@ actions:
- "lang": "typescript"
"label": "update"
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.customFields.update({\n id: \"<value>\",\n customFieldUpdate: {},\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();"
- target: $["paths"]["/v1/discounts/"]["get"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "list"
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.discounts.list({});\n\n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();"
- target: $["paths"]["/v1/discounts/"]["post"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "create"
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.discounts.create({\n duration: \"forever\",\n durationInMonths: 417458,\n type: \"fixed\",\n amount: 69025,\n name: \"<value>\",\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();"
- target: $["paths"]["/v1/discounts/{id}"]["delete"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "delete"
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n await polar.discounts.delete({\n id: \"<value>\",\n });\n\n\n}\n\nrun();"
- target: $["paths"]["/v1/discounts/{id}"]["get"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "get"
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.discounts.get({\n id: \"<value>\",\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();"
- target: $["paths"]["/v1/discounts/{id}"]["patch"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "update"
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.discounts.update({\n id: \"<value>\",\n discountUpdate: {},\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();"
- target: $["paths"]["/v1/external_organizations/"]["get"]
update:
"x-codeSamples":
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/address.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import { Address } from "@polar-sh/sdk/models/components";

let value: Address = {
country: "Netherlands",
country: "Indonesia",
};
```

Expand Down
10 changes: 5 additions & 5 deletions docs/models/components/advertisementcampaign.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
import { AdvertisementCampaign } from "@polar-sh/sdk/models/components";

let value: AdvertisementCampaign = {
createdAt: new Date("2023-05-29T14:57:16.680Z"),
modifiedAt: new Date("2022-10-03T22:43:14.073Z"),
createdAt: new Date("2023-08-23T00:01:10.136Z"),
modifiedAt: new Date("2022-12-27T03:11:24.442Z"),
id: "<value>",
imageUrl: "https://basic-emergent.net",
imageUrlDark: "https://alienated-metal.biz",
imageUrl: "https://glum-guacamole.net/",
imageUrlDark: "https://elegant-deduction.name",
text: "<value>",
linkUrl: "https://spherical-cauliflower.info",
linkUrl: "https://noxious-cannon.biz",
};
```

Expand Down
16 changes: 8 additions & 8 deletions docs/models/components/advertisementcampaignlistresource.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@ import { AdvertisementCampaignListResource } from "@polar-sh/sdk/models/componen
let value: AdvertisementCampaignListResource = {
items: [
{
createdAt: new Date("2022-03-16T23:12:57.117Z"),
modifiedAt: new Date("2024-12-22T15:39:21.636Z"),
createdAt: new Date("2023-11-29T16:15:54.686Z"),
modifiedAt: new Date("2023-05-29T12:27:54.010Z"),
id: "<value>",
imageUrl: "https://trivial-ostrich.biz",
imageUrlDark: "https://awesome-moment.info",
imageUrl: "https://tidy-illusion.org/",
imageUrlDark: "https://brave-bathhouse.org",
text: "<value>",
linkUrl: "https://alienated-governance.info",
linkUrl: "https://outstanding-hose.com/",
},
],
pagination: {
totalCount: 152359,
maxPage: 414720,
totalCount: 125551,
maxPage: 212696,
},
dimensions: [
910478,
605338,
],
};
```
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/advertisementsortproperty.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
```typescript
import { AdvertisementSortProperty } from "@polar-sh/sdk/models/components";

let value: AdvertisementSortProperty = "-granted_at";
let value: AdvertisementSortProperty = "created_at";
```

## Values
Expand Down
26 changes: 13 additions & 13 deletions docs/models/components/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,39 +12,39 @@ let value: Article = {
body: "<value>",
byline: {
name: "<value>",
avatarUrl: "https://unwieldy-vision.name/",
avatarUrl: "https://fond-draw.biz",
},
visibility: "hidden",
userId: "<value>",
organizationId: "<value>",
organization: {
createdAt: new Date("2024-01-25T11:17:56.076Z"),
modifiedAt: new Date("2022-01-18T01:14:03.818Z"),
createdAt: new Date("2022-09-19T22:20:10.589Z"),
modifiedAt: new Date("2022-07-27T22:36:26.348Z"),
id: "<value>",
name: "<value>",
slug: "<value>",
avatarUrl: "https://hoarse-sonnet.biz/",
avatarUrl: "https://kaleidoscopic-plastic.info",
bio: "<value>",
company: "Hoeger - Flatley",
company: "Kutch LLC",
blog: "<value>",
location: "<value>",
email: "Grayson.Rice@gmail.com",
email: "Malika.Corkery@hotmail.com",
twitterUsername: "<value>",
pledgeMinimumAmount: 646822,
pledgeMinimumAmount: 224402,
pledgeBadgeShowAmount: false,
defaultUpfrontSplitToContributors: 887921,
defaultUpfrontSplitToContributors: 773225,
profileSettings: {},
featureSettings: {},
},
publishedAt: new Date("2022-06-06T17:12:12.382Z"),
publishedAt: new Date("2024-02-28T15:11:58.405Z"),
paidSubscribersOnly: false,
paidSubscribersOnlyEndsAt: new Date("2024-06-13T14:44:19.237Z"),
paidSubscribersOnlyEndsAt: new Date("2024-09-28T06:46:47.521Z"),
isPreview: false,
isPinned: false,
notifySubscribers: false,
notificationsSentAt: new Date("2023-10-31T06:09:51.790Z"),
emailSentToCount: 29242,
ogImageUrl: "https://mysterious-sediment.info",
notificationsSentAt: new Date("2024-03-09T22:34:08.540Z"),
emailSentToCount: 107145,
ogImageUrl: "https://indelible-disposer.name",
ogDescription: "<value>",
};
```
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/articlebyline.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
```typescript
import { ArticleByline } from "@polar-sh/sdk/models/components";

let value: ArticleByline = "organization";
let value: ArticleByline = "user";
```

## Values
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/articlepreview.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import { ArticlePreview } from "@polar-sh/sdk/models/components";

let value: ArticlePreview = {
email: "Berneice16@hotmail.com",
email: "Clyde_Rohan@yahoo.com",
};
```

Expand Down
6 changes: 3 additions & 3 deletions docs/models/components/articlereceivers.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
import { ArticleReceivers } from "@polar-sh/sdk/models/components";

let value: ArticleReceivers = {
freeSubscribers: 666805,
premiumSubscribers: 821345,
organizationMembers: 426397,
freeSubscribers: 790463,
premiumSubscribers: 346895,
organizationMembers: 509380,
};
```

Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/articlevisibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
```typescript
import { ArticleVisibility } from "@polar-sh/sdk/models/components";

let value: ArticleVisibility = "hidden";
let value: ArticleVisibility = "public";
```

## Values
Expand Down
8 changes: 4 additions & 4 deletions docs/models/components/assignee.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
import { Assignee } from "@polar-sh/sdk/models/components";

let value: Assignee = {
id: 838479,
login: "Rafaela_Smith",
htmlUrl: "https://terrible-provision.net",
avatarUrl: "https://pitiful-avalanche.biz/",
id: 131629,
login: "Bradly_Brakus",
htmlUrl: "https://pleasant-design.info/",
avatarUrl: "https://profitable-skyline.org/",
};
```

Expand Down
8 changes: 4 additions & 4 deletions docs/models/components/attachedcustomfield.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@ import { AttachedCustomField } from "@polar-sh/sdk/models/components";
let value: AttachedCustomField = {
customFieldId: "<value>",
customField: {
createdAt: new Date("2023-10-31T04:19:03.850Z"),
modifiedAt: new Date("2024-01-14T05:30:11.757Z"),
createdAt: new Date("2022-11-17T14:35:18.819Z"),
modifiedAt: new Date("2023-02-10T13:04:40.129Z"),
id: "<value>",
metadata: {
"key": "<value>",
"key": 800251,
},
slug: "<value>",
name: "<value>",
organizationId: "<value>",
properties: {},
},
order: 756641,
order: 893114,
required: false,
};
```
Expand Down
8 changes: 4 additions & 4 deletions docs/models/components/author.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
import { Author } from "@polar-sh/sdk/models/components";

let value: Author = {
id: 202789,
login: "Gia84",
htmlUrl: "https://exhausted-disadvantage.info/",
avatarUrl: "https://noxious-minority.org",
id: 771809,
login: "Kasandra55",
htmlUrl: "https://proper-fen.info/",
avatarUrl: "https://that-creator.org/",
};
```

Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/authorizeorganization.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { AuthorizeOrganization } from "@polar-sh/sdk/models/components";
let value: AuthorizeOrganization = {
id: "<value>",
slug: "<value>",
avatarUrl: "https://private-outrun.com/",
avatarUrl: "https://knotty-millet.org/",
};
```

Expand Down
18 changes: 9 additions & 9 deletions docs/models/components/authorizeresponseorganization.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,28 @@ import { AuthorizeResponseOrganization } from "@polar-sh/sdk/models/components";

let value: AuthorizeResponseOrganization = {
client: {
createdAt: new Date("2024-03-20T05:44:31.552Z"),
modifiedAt: new Date("2023-09-14T04:31:24.353Z"),
createdAt: new Date("2024-06-07T11:46:11.561Z"),
modifiedAt: new Date("2024-06-29T03:29:33.064Z"),
clientId: "<id>",
clientName: "<value>",
clientUri: "https://dark-captain.biz/",
logoUri: "https://difficult-ceramic.com",
tosUri: "https://excellent-countess.info",
policyUri: "https://outrageous-traditionalism.net",
clientUri: "https://glittering-convection.name",
logoUri: "https://spiffy-apricot.info/",
tosUri: "https://boring-pocket-watch.biz",
policyUri: "https://funny-aftermath.name/",
},
sub: {
id: "<value>",
slug: "<value>",
avatarUrl: "https://scented-pharmacopoeia.net",
avatarUrl: "https://yellowish-brace.org/",
},
scopes: [
"articles:read",
"subscriptions:read",
],
organizations: [
{
id: "<value>",
slug: "<value>",
avatarUrl: "https://unruly-possession.info",
avatarUrl: "https://timely-cannon.name/",
},
],
};
Expand Down
Loading

0 comments on commit 700b504

Please sign in to comment.