Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.484.1
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot authored and frankie567 committed Feb 5, 2025
1 parent d020572 commit fba1091
Show file tree
Hide file tree
Showing 255 changed files with 3,223 additions and 4,104 deletions.
135 changes: 99 additions & 36 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.23.0
version: 0.24.0
additionalDependencies:
dependencies:
standardwebhooks: ^1.0.0
Expand Down
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@ speakeasyVersion: 1.484.1
sources:
Polar-OAS:
sourceNamespace: polar-oas
sourceRevisionDigest: sha256:21a65b5061eb52a7b7c00f2d4ba58400af0022fe9ecd328ddacc255aa99c1516
sourceBlobDigest: sha256:65979b2ca8b35454357ff88e58d12c23708f6ea4dd5b22474799c45c2d9856aa
sourceRevisionDigest: sha256:a8d31a2dd048613ee2abd5d2594764d36c83117f5648b3357bdfd141e78f37a7
sourceBlobDigest: sha256:bb75fb8e82c07390905f655add61b36a8494881b7ceb65a141feb6c855510868
tags:
- latest
- speakeasy-sdk-regen-1738283170
- speakeasy-sdk-regen-1738772723
- 0.1.0
targets:
polar:
source: Polar-OAS
sourceNamespace: polar-oas
sourceRevisionDigest: sha256:21a65b5061eb52a7b7c00f2d4ba58400af0022fe9ecd328ddacc255aa99c1516
sourceBlobDigest: sha256:65979b2ca8b35454357ff88e58d12c23708f6ea4dd5b22474799c45c2d9856aa
sourceRevisionDigest: sha256:a8d31a2dd048613ee2abd5d2594764d36c83117f5648b3357bdfd141e78f37a7
sourceBlobDigest: sha256:bb75fb8e82c07390905f655add61b36a8494881b7ceb65a141feb6c855510868
codeSamplesNamespace: polar-oas-ts-code-samples
codeSamplesRevisionDigest: sha256:e80890cbfc42b796b1ff4d175c7969ad55bfa58835fa7c1c39446a560261ce87
codeSamplesRevisionDigest: sha256:9d7656e79ef90381c4d56402365719e4b69443b49c33e0a1b2279936d7d177d2
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
35 changes: 14 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -344,18 +344,13 @@ app.post("/webhook", express.raw({ type: "application/json" }), (req: Request, r

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

* [~~create~~](docs/sdks/checkouts/README.md#create) - Create Checkout :warning: **Deprecated** Use [create](docs/sdks/custom/README.md#create) instead.
* [~~get~~](docs/sdks/checkouts/README.md#get) - Get Checkout :warning: **Deprecated**

#### [checkouts.custom](docs/sdks/custom/README.md)

* [list](docs/sdks/custom/README.md#list) - List Checkout Sessions
* [create](docs/sdks/custom/README.md#create) - Create Checkout Session
* [get](docs/sdks/custom/README.md#get) - Get Checkout Session
* [update](docs/sdks/custom/README.md#update) - Update Checkout Session
* [clientGet](docs/sdks/custom/README.md#clientget) - Get Checkout Session from Client
* [clientUpdate](docs/sdks/custom/README.md#clientupdate) - Update Checkout Session from Client
* [clientConfirm](docs/sdks/custom/README.md#clientconfirm) - Confirm Checkout Session from Client
* [list](docs/sdks/checkouts/README.md#list) - List Checkout Sessions
* [create](docs/sdks/checkouts/README.md#create) - Create Checkout Session
* [get](docs/sdks/checkouts/README.md#get) - Get Checkout Session
* [update](docs/sdks/checkouts/README.md#update) - Update Checkout Session
* [clientGet](docs/sdks/checkouts/README.md#clientget) - Get Checkout Session from Client
* [clientUpdate](docs/sdks/checkouts/README.md#clientupdate) - Update Checkout Session from Client
* [clientConfirm](docs/sdks/checkouts/README.md#clientconfirm) - Confirm Checkout Session from Client

### [customerPortal](docs/sdks/customerportal/README.md)

Expand Down Expand Up @@ -555,13 +550,13 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
- [`checkoutLinksGet`](docs/sdks/checkoutlinks/README.md#get) - Get Checkout Link
- [`checkoutLinksList`](docs/sdks/checkoutlinks/README.md#list) - List Checkout Links
- [`checkoutLinksUpdate`](docs/sdks/checkoutlinks/README.md#update) - Update Checkout Link
- [`checkoutsCustomClientConfirm`](docs/sdks/custom/README.md#clientconfirm) - Confirm Checkout Session from Client
- [`checkoutsCustomClientGet`](docs/sdks/custom/README.md#clientget) - Get Checkout Session from Client
- [`checkoutsCustomClientUpdate`](docs/sdks/custom/README.md#clientupdate) - Update Checkout Session from Client
- [`checkoutsCustomCreate`](docs/sdks/custom/README.md#create) - Create Checkout Session
- [`checkoutsCustomGet`](docs/sdks/custom/README.md#get) - Get Checkout Session
- [`checkoutsCustomList`](docs/sdks/custom/README.md#list) - List Checkout Sessions
- [`checkoutsCustomUpdate`](docs/sdks/custom/README.md#update) - Update Checkout Session
- [`checkoutsClientConfirm`](docs/sdks/checkouts/README.md#clientconfirm) - Confirm Checkout Session from Client
- [`checkoutsClientGet`](docs/sdks/checkouts/README.md#clientget) - Get Checkout Session from Client
- [`checkoutsClientUpdate`](docs/sdks/checkouts/README.md#clientupdate) - Update Checkout Session from Client
- [`checkoutsCreate`](docs/sdks/checkouts/README.md#create) - Create Checkout Session
- [`checkoutsGet`](docs/sdks/checkouts/README.md#get) - Get Checkout Session
- [`checkoutsList`](docs/sdks/checkouts/README.md#list) - List Checkout Sessions
- [`checkoutsUpdate`](docs/sdks/checkouts/README.md#update) - Update Checkout Session
- [`customerPortalBenefitGrantsGet`](docs/sdks/benefitgrants/README.md#get) - Get Benefit Grant
- [`customerPortalBenefitGrantsList`](docs/sdks/benefitgrants/README.md#list) - List Benefit Grants
- [`customerPortalBenefitGrantsUpdate`](docs/sdks/benefitgrants/README.md#update) - Update Benefit Grant
Expand Down Expand Up @@ -650,8 +645,6 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
- [`subscriptionsList`](docs/sdks/subscriptions/README.md#list) - List Subscriptions
- [`subscriptionsRevoke`](docs/sdks/subscriptions/README.md#revoke) - Revoke Subscription
- [`subscriptionsUpdate`](docs/sdks/subscriptions/README.md#update) - Update Subscription
- ~~[`checkoutsCreate`](docs/sdks/checkouts/README.md#create)~~ - Create Checkout :warning: **Deprecated** Use [`checkoutsCustomCreate`](docs/sdks/custom/README.md#create) instead.
- ~~[`checkoutsGet`](docs/sdks/checkouts/README.md#get)~~ - Get Checkout :warning: **Deprecated**

</details>
<!-- End Standalone functions [standalone-funcs] -->
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -438,4 +438,14 @@ Based on:
### Generated
- [typescript v0.23.0] .
### Releases
- [NPM v0.23.0] https://www.npmjs.com/package/@polar-sh/sdk/v/0.23.0 - .
- [NPM v0.23.0] https://www.npmjs.com/package/@polar-sh/sdk/v/0.23.0 - .

## 2025-02-05 16:31:15
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.484.1 (2.503.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.24.0] .
### Releases
- [NPM v0.24.0] https://www.npmjs.com/package/@polar-sh/sdk/v/0.24.0 - .
28 changes: 14 additions & 14 deletions codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,48 +81,48 @@ actions:
- "lang": "typescript"
"label": "Typescript (SDK)"
"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.update({\n id: \"<value>\",\n checkoutLinkUpdate: {},\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();"
- target: $["paths"]["/v1/checkouts/custom/"]["get"]
- target: $["paths"]["/v1/checkouts/"]["get"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "Typescript (SDK)"
"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.list({});\n\n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();"
- target: $["paths"]["/v1/checkouts/custom/"]["post"]
"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.list({});\n\n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();"
- target: $["paths"]["/v1/checkouts/"]["post"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "Typescript (SDK)"
"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 allowDiscountCodes: true,\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"]
"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.create({\n allowDiscountCodes: true,\n productId: \"<value>\",\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();"
- target: $["paths"]["/v1/checkouts/client/{client_secret}"]["get"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "Typescript (SDK)"
"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.clientGet({\n clientSecret: \"<value>\",\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();"
- target: $["paths"]["/v1/checkouts/custom/client/{client_secret}"]["patch"]
"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.clientGet({\n clientSecret: \"<value>\",\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();"
- target: $["paths"]["/v1/checkouts/client/{client_secret}"]["patch"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "Typescript (SDK)"
"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.clientUpdate({\n clientSecret: \"<value>\",\n checkoutUpdatePublic: {},\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();"
- target: $["paths"]["/v1/checkouts/custom/client/{client_secret}/confirm"]["post"]
"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.clientUpdate({\n clientSecret: \"<value>\",\n checkoutUpdatePublic: {},\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();"
- target: $["paths"]["/v1/checkouts/client/{client_secret}/confirm"]["post"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "Typescript (SDK)"
"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.clientConfirm({\n clientSecret: \"<value>\",\n checkoutConfirmStripe: {},\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();"
- target: $["paths"]["/v1/checkouts/custom/{id}"]["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.checkouts.clientConfirm({\n clientSecret: \"<value>\",\n checkoutConfirmStripe: {},\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();"
- target: $["paths"]["/v1/checkouts/{id}"]["get"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "Typescript (SDK)"
"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.get({\n id: \"<value>\",\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();"
- target: $["paths"]["/v1/checkouts/custom/{id}"]["patch"]
"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.get({\n id: \"<value>\",\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();"
- target: $["paths"]["/v1/checkouts/{id}"]["patch"]
update:
"x-codeSamples":
- "lang": "typescript"
"label": "Typescript (SDK)"
"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.update({\n id: \"<value>\",\n checkoutUpdate: {},\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.update({\n id: \"<value>\",\n checkoutUpdate: {},\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();"
- target: $["paths"]["/v1/custom-fields/"]["get"]
update:
"x-codeSamples":
Expand Down
4 changes: 2 additions & 2 deletions docs/models/components/aggregation.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

```typescript
const value: components.PropertyAggregation = {
func: "max",
func: "sum",
property: "<value>",
};
```
Expand All @@ -31,7 +31,7 @@ const value: components.PropertyAggregation = {

```typescript
const value: components.PropertyAggregation = {
func: "avg",
func: "min",
property: "<value>",
};
```
Expand Down
20 changes: 10 additions & 10 deletions docs/models/components/benefitadssubscriber.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,29 @@
import { BenefitAdsSubscriber } from "@polar-sh/sdk/models/components/benefitadssubscriber.js";

let value: BenefitAdsSubscriber = {
createdAt: new Date("2023-07-01T14:29:36.398Z"),
modifiedAt: new Date("2023-11-02T18:12:33.953Z"),
createdAt: new Date("2025-11-11T15:10:16.010Z"),
modifiedAt: new Date("2025-12-14T21:14:15.864Z"),
id: "<value>",
description: "aside yawningly modulo apud yowza warp",
description: "boyfriend miserable actually truthfully spear yuck ultimately",
selectable: false,
deletable: false,
organizationId: "<value>",
organization: {
createdAt: new Date("2025-05-18T00:30:59.700Z"),
modifiedAt: new Date("2023-07-09T01:59:04.501Z"),
createdAt: new Date("2025-04-18T03:12:06.282Z"),
modifiedAt: new Date("2025-03-20T17:52:27.062Z"),
id: "<value>",
name: "<value>",
slug: "<value>",
avatarUrl: "https://scary-testimonial.info",
avatarUrl: "https://distorted-pepper.com",
bio: "<value>",
company: "Price, Goodwin and Hudson",
company: "Dooley, Kessler and Ullrich",
blog: "<value>",
location: "<value>",
email: "Rafaela_Smith@hotmail.com",
email: "Alicia_Leffler59@hotmail.com",
twitterUsername: "<value>",
pledgeMinimumAmount: 541162,
pledgeMinimumAmount: 419731,
pledgeBadgeShowAmount: false,
defaultUpfrontSplitToContributors: 845961,
defaultUpfrontSplitToContributors: 660201,
profileSettings: {},
featureSettings: {},
subscriptionSettings: {
Expand Down
23 changes: 11 additions & 12 deletions docs/models/components/benefitcustomsubscriber.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,36 +6,35 @@
import { BenefitCustomSubscriber } from "@polar-sh/sdk/models/components/benefitcustomsubscriber.js";

let value: BenefitCustomSubscriber = {
createdAt: new Date("2024-06-03T20:31:20.070Z"),
modifiedAt: new Date("2023-02-07T17:15:24.418Z"),
createdAt: new Date("2023-01-13T15:47:28.412Z"),
modifiedAt: new Date("2025-05-13T07:35:58.550Z"),
id: "<value>",
description:
"whoever circumnavigate settle optimistically usually impossible pish humiliating brr heighten",
description: "status monthly since joyously whereas loftily towards",
selectable: false,
deletable: false,
organizationId: "<value>",
organization: {
createdAt: new Date("2025-03-23T14:32:17.323Z"),
modifiedAt: new Date("2024-08-02T08:01:42.159Z"),
createdAt: new Date("2024-07-02T06:17:05.413Z"),
modifiedAt: new Date("2025-10-10T04:53:42.729Z"),
id: "<value>",
name: "<value>",
slug: "<value>",
avatarUrl: "https://discrete-annual.biz",
avatarUrl: "https://judicious-bonfire.com",
bio: "<value>",
company: "Prosacco - Marks",
company: "Krajcik, Ondricka and Tillman",
blog: "<value>",
location: "<value>",
email: "Grover47@hotmail.com",
email: "Sonny85@gmail.com",
twitterUsername: "<value>",
pledgeMinimumAmount: 347812,
pledgeMinimumAmount: 303011,
pledgeBadgeShowAmount: false,
defaultUpfrontSplitToContributors: 408902,
defaultUpfrontSplitToContributors: 780236,
profileSettings: {},
featureSettings: {},
subscriptionSettings: {
allowMultipleSubscriptions: false,
allowCustomerUpdates: false,
prorationBehavior: "invoice",
prorationBehavior: "prorate",
},
},
properties: {
Expand Down
22 changes: 11 additions & 11 deletions docs/models/components/benefitdiscordsubscriber.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,36 +6,36 @@
import { BenefitDiscordSubscriber } from "@polar-sh/sdk/models/components/benefitdiscordsubscriber.js";

let value: BenefitDiscordSubscriber = {
createdAt: new Date("2023-06-02T13:52:45.545Z"),
modifiedAt: new Date("2025-09-26T07:23:43.790Z"),
createdAt: new Date("2023-01-08T07:38:15.944Z"),
modifiedAt: new Date("2023-10-30T01:32:14.646Z"),
id: "<value>",
description:
"casement the priesthood individual entomb psst jaggedly kissingly forenenst marathon",
"tarry wherever hypothesise helpfully taxicab from wry behind airbrush",
selectable: false,
deletable: false,
organizationId: "<value>",
organization: {
createdAt: new Date("2024-12-20T23:02:17.882Z"),
modifiedAt: new Date("2024-04-04T00:34:06.285Z"),
createdAt: new Date("2023-12-13T20:35:41.555Z"),
modifiedAt: new Date("2024-05-29T18:00:09.559Z"),
id: "<value>",
name: "<value>",
slug: "<value>",
avatarUrl: "https://frivolous-agreement.com/",
avatarUrl: "https://lively-metal.org/",
bio: "<value>",
company: "Botsford, Klein and Smitham",
company: "Gerhold, Champlin and Abbott",
blog: "<value>",
location: "<value>",
email: "Delores.Senger48@yahoo.com",
email: "Rupert_Grant@yahoo.com",
twitterUsername: "<value>",
pledgeMinimumAmount: 60269,
pledgeMinimumAmount: 2536,
pledgeBadgeShowAmount: false,
defaultUpfrontSplitToContributors: 785555,
defaultUpfrontSplitToContributors: 770717,
profileSettings: {},
featureSettings: {},
subscriptionSettings: {
allowMultipleSubscriptions: false,
allowCustomerUpdates: false,
prorationBehavior: "invoice",
prorationBehavior: "prorate",
},
},
properties: {
Expand Down
Loading

0 comments on commit fba1091

Please sign in to comment.