Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.475.0
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot authored and frankie567 committed Jan 24, 2025
1 parent 32e6966 commit 5faa5eb
Show file tree
Hide file tree
Showing 647 changed files with 4,835 additions and 3,270 deletions.
124 changes: 59 additions & 65 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.21.3
version: 0.22.0
additionalDependencies:
dependencies:
standardwebhooks: ^1.0.0
Expand Down
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
speakeasyVersion: 1.474.0
speakeasyVersion: 1.475.0
sources:
Polar-OAS:
sourceNamespace: polar-oas
sourceRevisionDigest: sha256:2caa144dc82e70c044b00f129338bb160d9f4d529b3bb2d827ada0162e0df39f
sourceRevisionDigest: sha256:66a404e8dead21b781a713e2dacfa0818742678a2b85c68d4a885e021ec5bb89
sourceBlobDigest: sha256:a2c4a9d1003b730a2305769700bfb4c9028732a336ffa7c8c219658d82bd24a1
tags:
- latest
- speakeasy-sdk-regen-1737591955
- speakeasy-sdk-regen-1737734302
- 0.1.0
targets:
polar:
source: Polar-OAS
sourceNamespace: polar-oas
sourceRevisionDigest: sha256:2caa144dc82e70c044b00f129338bb160d9f4d529b3bb2d827ada0162e0df39f
sourceRevisionDigest: sha256:66a404e8dead21b781a713e2dacfa0818742678a2b85c68d4a885e021ec5bb89
sourceBlobDigest: sha256:a2c4a9d1003b730a2305769700bfb4c9028732a336ffa7c8c219658d82bd24a1
codeSamplesNamespace: polar-oas-ts-code-samples
codeSamplesRevisionDigest: sha256:999957128f23bb79cc528f8cee488b03d0706088496c93fbdb858cb82fb869a0
codeSamplesRevisionDigest: sha256:4404606551c3b133d33d7fd0fe71c90470d17671b2fceb0f9302adbf14a2820e
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ yarn add @polar-sh/sdk zod
# Note that Yarn does not install peer dependencies automatically. You will need
# to install zod as shown above.
```

> [!NOTE]
> This package is published with CommonJS and ES Modules (ESM) support.
<!-- End SDK Installation [installation] -->
<!-- Start Requirements [requirements] -->
Expand Down Expand Up @@ -752,10 +755,8 @@ If the method throws an error and it is not captured by the known errors, it wil

```typescript
import { Polar } from "@polar-sh/sdk";
import {
HTTPValidationError,
SDKValidationError,
} from "@polar-sh/sdk/models/errors";
import { HTTPValidationError } from "@polar-sh/sdk/models/errors/httpvalidationerror.js";
import { SDKValidationError } from "@polar-sh/sdk/models/errors/sdkvalidationerror.js";

const polar = new Polar({
accessToken: process.env["POLAR_ACCESS_TOKEN"] ?? "",
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -398,4 +398,14 @@ Based on:
### Generated
- [typescript v0.21.3] .
### Releases
- [NPM v0.21.3] https://www.npmjs.com/package/@polar-sh/sdk/v/0.21.3 - .
- [NPM v0.21.3] https://www.npmjs.com/package/@polar-sh/sdk/v/0.21.3 - .

## 2025-01-24 16:02:12
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.475.0 (2.495.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.22.0] .
### Releases
- [NPM v0.22.0] https://www.npmjs.com/package/@polar-sh/sdk/v/0.22.0 - .
2 changes: 1 addition & 1 deletion codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ actions:
"x-codeSamples":
- "lang": "typescript"
"label": "Typescript (SDK)"
"source": "import { Polar } from \"@polar-sh/sdk\";\nimport { RFCDate } from \"@polar-sh/sdk/types\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.metrics.get({\n startDate: new RFCDate(\"2025-02-06\"),\n endDate: new RFCDate(\"2024-09-04\"),\n interval: \"week\",\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();"
"source": "import { Polar } from \"@polar-sh/sdk\";\nimport { RFCDate } from \"@polar-sh/sdk/types/rfcdate.js\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.metrics.get({\n startDate: new RFCDate(\"2025-02-06\"),\n endDate: new RFCDate(\"2024-09-04\"),\n interval: \"week\",\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();"
- target: $["paths"]["/v1/metrics/limits"]["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 @@ -3,7 +3,7 @@
## Example Usage

```typescript
import { Address } from "@polar-sh/sdk/models/components";
import { Address } from "@polar-sh/sdk/models/components/address.js";

let value: Address = {
country: "Nauru",
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/advertisementcampaign.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Example Usage

```typescript
import { AdvertisementCampaign } from "@polar-sh/sdk/models/components";
import { AdvertisementCampaign } from "@polar-sh/sdk/models/components/advertisementcampaign.js";

let value: AdvertisementCampaign = {
createdAt: new Date("2023-10-13T09:29:12.610Z"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Example Usage

```typescript
import { AdvertisementCampaignListResource } from "@polar-sh/sdk/models/components";
import { AdvertisementCampaignListResource } from "@polar-sh/sdk/models/components/advertisementcampaignlistresource.js";

let value: AdvertisementCampaignListResource = {
items: [
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 @@ -3,7 +3,7 @@
## Example Usage

```typescript
import { AdvertisementSortProperty } from "@polar-sh/sdk/models/components";
import { AdvertisementSortProperty } from "@polar-sh/sdk/models/components/advertisementsortproperty.js";

let value: AdvertisementSortProperty = "clicks";
```
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/assignee.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Example Usage

```typescript
import { Assignee } from "@polar-sh/sdk/models/components";
import { Assignee } from "@polar-sh/sdk/models/components/assignee.js";

let value: Assignee = {
id: 522048,
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/attachedcustomfield.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Schema of a custom field attached to a resource.
## Example Usage

```typescript
import { AttachedCustomField } from "@polar-sh/sdk/models/components";
import { AttachedCustomField } from "@polar-sh/sdk/models/components/attachedcustomfield.js";

let value: AttachedCustomField = {
customFieldId: "<value>",
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/attachedcustomfieldcreate.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Schema to attach a custom field to a resource.
## Example Usage

```typescript
import { AttachedCustomFieldCreate } from "@polar-sh/sdk/models/components";
import { AttachedCustomFieldCreate } from "@polar-sh/sdk/models/components/attachedcustomfieldcreate.js";

let value: AttachedCustomFieldCreate = {
customFieldId: "<value>",
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/author.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Example Usage

```typescript
import { Author } from "@polar-sh/sdk/models/components";
import { Author } from "@polar-sh/sdk/models/components/author.js";

let value: Author = {
id: 324872,
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 @@ -3,7 +3,7 @@
## Example Usage

```typescript
import { AuthorizeOrganization } from "@polar-sh/sdk/models/components";
import { AuthorizeOrganization } from "@polar-sh/sdk/models/components/authorizeorganization.js";

let value: AuthorizeOrganization = {
id: "<value>",
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/authorizeresponseorganization.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Example Usage

```typescript
import { AuthorizeResponseOrganization } from "@polar-sh/sdk/models/components";
import { AuthorizeResponseOrganization } from "@polar-sh/sdk/models/components/authorizeresponseorganization.js";

let value: AuthorizeResponseOrganization = {
client: {
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/authorizeresponseuser.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Example Usage

```typescript
import { AuthorizeResponseUser } from "@polar-sh/sdk/models/components";
import { AuthorizeResponseUser } from "@polar-sh/sdk/models/components/authorizeresponseuser.js";

let value: AuthorizeResponseUser = {
client: {
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/authorizeuser.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Example Usage

```typescript
import { AuthorizeUser } from "@polar-sh/sdk/models/components";
import { AuthorizeUser } from "@polar-sh/sdk/models/components/authorizeuser.js";

let value: AuthorizeUser = {
id: "<value>",
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/benefitads.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Use it so your backers can display ads on your README, website, etc.
## Example Usage

```typescript
import { BenefitAds } from "@polar-sh/sdk/models/components";
import { BenefitAds } from "@polar-sh/sdk/models/components/benefitads.js";

let value: BenefitAds = {
createdAt: new Date("2023-06-27T15:10:04.073Z"),
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/benefitadscreate.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Example Usage

```typescript
import { BenefitAdsCreate } from "@polar-sh/sdk/models/components";
import { BenefitAdsCreate } from "@polar-sh/sdk/models/components/benefitadscreate.js";

let value: BenefitAdsCreate = {
description: "oxygenate forenenst uproot",
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/benefitadsproperties.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Properties for a benefit of type `ads`.
## Example Usage

```typescript
import { BenefitAdsProperties } from "@polar-sh/sdk/models/components";
import { BenefitAdsProperties } from "@polar-sh/sdk/models/components/benefitadsproperties.js";

let value: BenefitAdsProperties = {};
```
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/benefitadssubscriber.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Example Usage

```typescript
import { BenefitAdsSubscriber } from "@polar-sh/sdk/models/components";
import { BenefitAdsSubscriber } from "@polar-sh/sdk/models/components/benefitadssubscriber.js";

let value: BenefitAdsSubscriber = {
createdAt: new Date("2023-01-10T13:24:18.025Z"),
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/benefitadsupdate.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Example Usage

```typescript
import { BenefitAdsUpdate } from "@polar-sh/sdk/models/components";
import { BenefitAdsUpdate } from "@polar-sh/sdk/models/components/benefitadsupdate.js";

let value: BenefitAdsUpdate = {};
```
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/benefitbase.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Example Usage

```typescript
import { BenefitBase } from "@polar-sh/sdk/models/components";
import { BenefitBase } from "@polar-sh/sdk/models/components/benefitbase.js";

let value: BenefitBase = {
createdAt: new Date("2023-11-17T21:39:15.131Z"),
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/benefitcustom.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Use it to grant any kind of benefit that doesn't fit in the other types.
## Example Usage

```typescript
import { BenefitCustom } from "@polar-sh/sdk/models/components";
import { BenefitCustom } from "@polar-sh/sdk/models/components/benefitcustom.js";

let value: BenefitCustom = {
createdAt: new Date("2023-11-28T23:36:29.114Z"),
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/benefitcustomcreate.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Schema to create a benefit of type `custom`.
## Example Usage

```typescript
import { BenefitCustomCreate } from "@polar-sh/sdk/models/components";
import { BenefitCustomCreate } from "@polar-sh/sdk/models/components/benefitcustomcreate.js";

let value: BenefitCustomCreate = {
description: "wire majestically yet",
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/benefitcustomcreateproperties.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Properties for creating a benefit of type `custom`.
## Example Usage

```typescript
import { BenefitCustomCreateProperties } from "@polar-sh/sdk/models/components";
import { BenefitCustomCreateProperties } from "@polar-sh/sdk/models/components/benefitcustomcreateproperties.js";

let value: BenefitCustomCreateProperties = {};
```
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/benefitcustomproperties.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Properties for a benefit of type `custom`.
## Example Usage

```typescript
import { BenefitCustomProperties } from "@polar-sh/sdk/models/components";
import { BenefitCustomProperties } from "@polar-sh/sdk/models/components/benefitcustomproperties.js";

let value: BenefitCustomProperties = {
note: "<value>",
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/benefitcustomsubscriber.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Example Usage

```typescript
import { BenefitCustomSubscriber } from "@polar-sh/sdk/models/components";
import { BenefitCustomSubscriber } from "@polar-sh/sdk/models/components/benefitcustomsubscriber.js";

let value: BenefitCustomSubscriber = {
createdAt: new Date("2023-03-05T12:03:53.313Z"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Properties available to subscribers for a benefit of type `custom`.
## Example Usage

```typescript
import { BenefitCustomSubscriberProperties } from "@polar-sh/sdk/models/components";
import { BenefitCustomSubscriberProperties } from "@polar-sh/sdk/models/components/benefitcustomsubscriberproperties.js";

let value: BenefitCustomSubscriberProperties = {
note: "<value>",
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/benefitcustomupdate.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Example Usage

```typescript
import { BenefitCustomUpdate } from "@polar-sh/sdk/models/components";
import { BenefitCustomUpdate } from "@polar-sh/sdk/models/components/benefitcustomupdate.js";

let value: BenefitCustomUpdate = {};
```
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/benefitdiscord.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Use it to automatically invite your backers to a Discord server.
## Example Usage

```typescript
import { BenefitDiscord } from "@polar-sh/sdk/models/components";
import { BenefitDiscord } from "@polar-sh/sdk/models/components/benefitdiscord.js";

let value: BenefitDiscord = {
createdAt: new Date("2025-04-23T02:16:34.389Z"),
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/benefitdiscordcreate.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Example Usage

```typescript
import { BenefitDiscordCreate } from "@polar-sh/sdk/models/components";
import { BenefitDiscordCreate } from "@polar-sh/sdk/models/components/benefitdiscordcreate.js";

let value: BenefitDiscordCreate = {
description: "unconscious whose ick untimely",
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/benefitdiscordcreateproperties.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Properties to create a benefit of type `discord`.
## Example Usage

```typescript
import { BenefitDiscordCreateProperties } from "@polar-sh/sdk/models/components";
import { BenefitDiscordCreateProperties } from "@polar-sh/sdk/models/components/benefitdiscordcreateproperties.js";

let value: BenefitDiscordCreateProperties = {
guildToken: "<value>",
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/benefitdiscordproperties.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Properties for a benefit of type `discord`.
## Example Usage

```typescript
import { BenefitDiscordProperties } from "@polar-sh/sdk/models/components";
import { BenefitDiscordProperties } from "@polar-sh/sdk/models/components/benefitdiscordproperties.js";

let value: BenefitDiscordProperties = {
guildId: "<id>",
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/benefitdiscordsubscriber.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Example Usage

```typescript
import { BenefitDiscordSubscriber } from "@polar-sh/sdk/models/components";
import { BenefitDiscordSubscriber } from "@polar-sh/sdk/models/components/benefitdiscordsubscriber.js";

let value: BenefitDiscordSubscriber = {
createdAt: new Date("2024-02-04T10:48:51.582Z"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Properties available to subscribers for a benefit of type `discord`.
## Example Usage

```typescript
import { BenefitDiscordSubscriberProperties } from "@polar-sh/sdk/models/components";
import { BenefitDiscordSubscriberProperties } from "@polar-sh/sdk/models/components/benefitdiscordsubscriberproperties.js";

let value: BenefitDiscordSubscriberProperties = {
guildId: "<id>",
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/benefitdiscordupdate.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Example Usage

```typescript
import { BenefitDiscordUpdate } from "@polar-sh/sdk/models/components";
import { BenefitDiscordUpdate } from "@polar-sh/sdk/models/components/benefitdiscordupdate.js";

let value: BenefitDiscordUpdate = {};
```
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/benefitdownloadables.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Example Usage

```typescript
import { BenefitDownloadables } from "@polar-sh/sdk/models/components";
import { BenefitDownloadables } from "@polar-sh/sdk/models/components/benefitdownloadables.js";

let value: BenefitDownloadables = {
createdAt: new Date("2024-05-23T10:17:07.880Z"),
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/benefitdownloadablescreate.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Example Usage

```typescript
import { BenefitDownloadablesCreate } from "@polar-sh/sdk/models/components";
import { BenefitDownloadablesCreate } from "@polar-sh/sdk/models/components/benefitdownloadablescreate.js";

let value: BenefitDownloadablesCreate = {
description:
Expand Down
Loading

0 comments on commit 5faa5eb

Please sign in to comment.