Skip to content

Commit 5faa5eb

Browse files
speakeasybotfrankie567
authored andcommitted
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.475.0
1 parent 32e6966 commit 5faa5eb

647 files changed

Lines changed: 4835 additions & 3270 deletions

File tree

Some content is hidden

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

.speakeasy/gen.lock

Lines changed: 59 additions & 65 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
@@ -16,7 +16,7 @@ generation:
1616
oAuth2ClientCredentialsEnabled: true
1717
oAuth2PasswordEnabled: false
1818
typescript:
19-
version: 0.21.3
19+
version: 0.22.0
2020
additionalDependencies:
2121
dependencies:
2222
standardwebhooks: ^1.0.0

.speakeasy/workflow.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.474.0
1+
speakeasyVersion: 1.475.0
22
sources:
33
Polar-OAS:
44
sourceNamespace: polar-oas
5-
sourceRevisionDigest: sha256:2caa144dc82e70c044b00f129338bb160d9f4d529b3bb2d827ada0162e0df39f
5+
sourceRevisionDigest: sha256:66a404e8dead21b781a713e2dacfa0818742678a2b85c68d4a885e021ec5bb89
66
sourceBlobDigest: sha256:a2c4a9d1003b730a2305769700bfb4c9028732a336ffa7c8c219658d82bd24a1
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1737591955
9+
- speakeasy-sdk-regen-1737734302
1010
- 0.1.0
1111
targets:
1212
polar:
1313
source: Polar-OAS
1414
sourceNamespace: polar-oas
15-
sourceRevisionDigest: sha256:2caa144dc82e70c044b00f129338bb160d9f4d529b3bb2d827ada0162e0df39f
15+
sourceRevisionDigest: sha256:66a404e8dead21b781a713e2dacfa0818742678a2b85c68d4a885e021ec5bb89
1616
sourceBlobDigest: sha256:a2c4a9d1003b730a2305769700bfb4c9028732a336ffa7c8c219658d82bd24a1
1717
codeSamplesNamespace: polar-oas-ts-code-samples
18-
codeSamplesRevisionDigest: sha256:999957128f23bb79cc528f8cee488b03d0706088496c93fbdb858cb82fb869a0
18+
codeSamplesRevisionDigest: sha256:4404606551c3b133d33d7fd0fe71c90470d17671b2fceb0f9302adbf14a2820e
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ yarn add @polar-sh/sdk zod
7373
# Note that Yarn does not install peer dependencies automatically. You will need
7474
# to install zod as shown above.
7575
```
76+
77+
> [!NOTE]
78+
> This package is published with CommonJS and ES Modules (ESM) support.
7679
<!-- End SDK Installation [installation] -->
7780
7881
<!-- Start Requirements [requirements] -->
@@ -752,10 +755,8 @@ If the method throws an error and it is not captured by the known errors, it wil
752755

753756
```typescript
754757
import { Polar } from "@polar-sh/sdk";
755-
import {
756-
HTTPValidationError,
757-
SDKValidationError,
758-
} from "@polar-sh/sdk/models/errors";
758+
import { HTTPValidationError } from "@polar-sh/sdk/models/errors/httpvalidationerror.js";
759+
import { SDKValidationError } from "@polar-sh/sdk/models/errors/sdkvalidationerror.js";
759760

760761
const polar = new Polar({
761762
accessToken: process.env["POLAR_ACCESS_TOKEN"] ?? "",

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,4 +398,14 @@ Based on:
398398
### Generated
399399
- [typescript v0.21.3] .
400400
### Releases
401-
- [NPM v0.21.3] https://www.npmjs.com/package/@polar-sh/sdk/v/0.21.3 - .
401+
- [NPM v0.21.3] https://www.npmjs.com/package/@polar-sh/sdk/v/0.21.3 - .
402+
403+
## 2025-01-24 16:02:12
404+
### Changes
405+
Based on:
406+
- OpenAPI Doc
407+
- Speakeasy CLI 1.475.0 (2.495.1) https://github.com/speakeasy-api/speakeasy
408+
### Generated
409+
- [typescript v0.22.0] .
410+
### Releases
411+
- [NPM v0.22.0] https://www.npmjs.com/package/@polar-sh/sdk/v/0.22.0 - .

codeSamples.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ actions:
398398
"x-codeSamples":
399399
- "lang": "typescript"
400400
"label": "Typescript (SDK)"
401-
"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();"
401+
"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();"
402402
- target: $["paths"]["/v1/metrics/limits"]["get"]
403403
update:
404404
"x-codeSamples":

docs/models/components/address.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Example Usage
44

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

88
let value: Address = {
99
country: "Nauru",

docs/models/components/advertisementcampaign.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Example Usage
44

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

88
let value: AdvertisementCampaign = {
99
createdAt: new Date("2023-10-13T09:29:12.610Z"),

docs/models/components/advertisementcampaignlistresource.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Example Usage
44

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

88
let value: AdvertisementCampaignListResource = {
99
items: [

docs/models/components/advertisementsortproperty.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Example Usage
44

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

88
let value: AdvertisementSortProperty = "clicks";
99
```

0 commit comments

Comments
 (0)