diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock
index 9c0da0a7..ac2c3d78 100644
--- a/.speakeasy/gen.lock
+++ b/.speakeasy/gen.lock
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 983150e6-ebc8-43fe-9b18-750461aad344
management:
- docChecksum: 1457c7a0b5015bae5c5e9b2c47ca23c3
+ docChecksum: 023dd0396155eafbbdd3b7acf11e1395
docVersion: 0.1.0
- speakeasyVersion: 1.385.0
- generationVersion: 2.407.2
- releaseVersion: 0.6.1
- configChecksum: 7323b6f75c1f55cf6e131f0df753481c
+ speakeasyVersion: 1.390.1
+ generationVersion: 2.409.0
+ releaseVersion: 0.7.0
+ configChecksum: 38929047fb1a6e83c2404132a941907a
repoURL: https://github.com/polarsource/polar-js.git
installationURL: https://github.com/polarsource/polar-js
published: true
@@ -14,7 +14,7 @@ features:
typescript:
additionalDependencies: 0.1.0
constsAndDefaults: 0.1.11
- core: 3.14.2
+ core: 3.16.0
defaultEnabledRetries: 0.1.0
deprecations: 2.81.1
devContainers: 2.90.0
@@ -32,15 +32,16 @@ features:
retries: 2.83.0
sdkHooks: 0.1.0
unions: 2.85.7
+ uploadStreams: 0.1.0
webhooks: 1.0.0
generatedFiles:
- src/funcs/externalOrganizationsList.ts
- src/funcs/repositoriesList.ts
- - src/funcs/repositoriesRetrieve.ts
+ - src/funcs/repositoriesGet.ts
- src/funcs/repositoriesUpdate.ts
- src/funcs/organizationsList.ts
- src/funcs/organizationsCreate.ts
- - src/funcs/organizationsRetrieve.ts
+ - src/funcs/organizationsGet.ts
- src/funcs/organizationsUpdate.ts
- src/funcs/subscriptionsList.ts
- src/funcs/subscriptionsCreate.ts
@@ -48,71 +49,71 @@ generatedFiles:
- src/funcs/subscriptionsExport.ts
- src/funcs/articlesList.ts
- src/funcs/articlesCreate.ts
- - src/funcs/articlesRetrieve.ts
+ - src/funcs/articlesGet.ts
- src/funcs/articlesUpdate.ts
- src/funcs/articlesDelete.ts
- src/funcs/articlesReceivers.ts
- src/funcs/articlesPreview.ts
- src/funcs/articlesSend.ts
- src/funcs/advertisementsList.ts
- - src/funcs/advertisementsRetrieve.ts
+ - src/funcs/advertisementsGet.ts
- src/funcs/oauth2Token.ts
- src/funcs/oauth2Revoke.ts
- src/funcs/oauth2Introspect.ts
- src/funcs/oauth2Userinfo.ts
- src/funcs/benefitsList.ts
- src/funcs/benefitsCreate.ts
- - src/funcs/benefitsRetrieve.ts
+ - src/funcs/benefitsGet.ts
- src/funcs/benefitsUpdate.ts
- src/funcs/benefitsDelete.ts
- src/funcs/benefitsGrants.ts
- src/funcs/productsList.ts
- src/funcs/productsCreate.ts
- - src/funcs/productsRetrieve.ts
+ - src/funcs/productsGet.ts
- src/funcs/productsUpdate.ts
- src/funcs/productsUpdateBenefits.ts
- src/funcs/ordersList.ts
- - src/funcs/ordersRetrieve.ts
+ - src/funcs/ordersGet.ts
- src/funcs/ordersInvoice.ts
- src/funcs/checkoutsCreate.ts
- - src/funcs/checkoutsRetrieve.ts
+ - src/funcs/checkoutsGet.ts
- src/funcs/filesList.ts
- src/funcs/filesCreate.ts
- src/funcs/filesUploaded.ts
- src/funcs/filesUpdate.ts
- src/funcs/filesDelete.ts
- - src/funcs/metricsRetrieve.ts
+ - src/funcs/metricsGet.ts
- src/funcs/metricsLimits.ts
- src/funcs/licenseKeysList.ts
- - src/funcs/licenseKeysRetrieve.ts
+ - src/funcs/licenseKeysGet.ts
- src/funcs/licenseKeysUpdate.ts
- src/funcs/licenseKeysGetActivation.ts
- src/funcs/usersBenefitsList.ts
- - src/funcs/usersBenefitsRetrieve.ts
+ - src/funcs/usersBenefitsGet.ts
- src/funcs/usersOrdersList.ts
- - src/funcs/usersOrdersRetrieve.ts
+ - src/funcs/usersOrdersGet.ts
- src/funcs/usersOrdersInvoice.ts
- src/funcs/usersSubscriptionsList.ts
- src/funcs/usersSubscriptionsCreate.ts
- - src/funcs/usersSubscriptionsRetrieve.ts
+ - src/funcs/usersSubscriptionsGet.ts
- src/funcs/usersSubscriptionsUpdate.ts
- src/funcs/usersSubscriptionsCancel.ts
- src/funcs/usersAdvertisementsList.ts
- src/funcs/usersAdvertisementsCreate.ts
- - src/funcs/usersAdvertisementsRetrieve.ts
+ - src/funcs/usersAdvertisementsGet.ts
- src/funcs/usersAdvertisementsUpdate.ts
- src/funcs/usersAdvertisementsDelete.ts
- src/funcs/usersAdvertisementsEnable.ts
- src/funcs/usersDownloadablesList.ts
- - src/funcs/usersDownloadablesRetrieve.ts
+ - src/funcs/usersDownloadablesGet.ts
- src/funcs/usersLicenseKeysList.ts
- - src/funcs/usersLicenseKeysRetrieve.ts
+ - src/funcs/usersLicenseKeysGet.ts
- src/funcs/usersLicenseKeysValidate.ts
- src/funcs/usersLicenseKeysActivate.ts
- src/funcs/usersLicenseKeysDeactivate.ts
- src/funcs/oauth2ClientsList.ts
- src/funcs/oauth2ClientsCreate.ts
- - src/funcs/oauth2ClientsRetrieve.ts
+ - src/funcs/oauth2ClientsGet.ts
- src/funcs/oauth2ClientsUpdate.ts
- src/funcs/oauth2ClientsDelete.ts
- src/sdk/polarbenefits.ts
@@ -151,6 +152,7 @@ generatedFiles:
- src/lib/dlv.ts
- src/lib/encodings.ts
- src/lib/env.ts
+ - src/lib/files.ts
- src/lib/http.ts
- src/lib/is-plain-object.ts
- src/lib/logger.ts
@@ -172,6 +174,7 @@ generatedFiles:
- src/types/index.ts
- src/types/operations.ts
- src/types/rfcdate.ts
+ - src/types/streams.ts
- tsconfig.json
- src/models/operations/usersbenefitslist.ts
- src/models/operations/usersbenefitsget.ts
diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml
index 6589c5e5..1c7f5dca 100644
--- a/.speakeasy/gen.yaml
+++ b/.speakeasy/gen.yaml
@@ -15,7 +15,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: true
typescript:
- version: 0.6.1
+ version: 0.7.0
additionalDependencies:
dependencies: {}
devDependencies: {}
diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock
index f93310f0..7becce7d 100644
--- a/.speakeasy/workflow.lock
+++ b/.speakeasy/workflow.lock
@@ -1,9 +1,9 @@
-speakeasyVersion: 1.385.0
+speakeasyVersion: 1.390.1
sources:
Polar-OAS:
sourceNamespace: polar-oas
- sourceRevisionDigest: sha256:823650b7bbc048b9feae6a5cb62601dc978e79a25fae66d61152a49b59a4bacf
- sourceBlobDigest: sha256:839047495a6cbe8a089b36a53f0c00857d55e79c000b662b5f6e4b39ff927a8c
+ sourceRevisionDigest: sha256:5b11bf163e1665176abe1722c7ebda17d111f6e4b2419fb4a2bb9b789a3f22f9
+ sourceBlobDigest: sha256:3e5775321e8bfce8b04f57138abe6ea40d3d5a1bf0fe7be1df498cf91a5d6901
tags:
- latest
- main
@@ -11,8 +11,8 @@ targets:
polar:
source: Polar-OAS
sourceNamespace: polar-oas
- sourceRevisionDigest: sha256:823650b7bbc048b9feae6a5cb62601dc978e79a25fae66d61152a49b59a4bacf
- sourceBlobDigest: sha256:839047495a6cbe8a089b36a53f0c00857d55e79c000b662b5f6e4b39ff927a8c
+ sourceRevisionDigest: sha256:5b11bf163e1665176abe1722c7ebda17d111f6e4b2419fb4a2bb9b789a3f22f9
+ sourceBlobDigest: sha256:3e5775321e8bfce8b04f57138abe6ea40d3d5a1bf0fe7be1df498cf91a5d6901
outLocation: /github/workspace/repo
workflow:
workflowVersion: 1.0.0
diff --git a/README.md b/README.md
index 901fd436..dd728b5a 100644
--- a/README.md
+++ b/README.md
@@ -109,19 +109,19 @@ run();
### [users.benefits](docs/sdks/polarbenefits/README.md)
* [list](docs/sdks/polarbenefits/README.md#list) - List Benefits
-* [retrieve](docs/sdks/polarbenefits/README.md#retrieve) - Get Benefit
+* [get](docs/sdks/polarbenefits/README.md#get) - Get Benefit
### [users.orders](docs/sdks/polarorders/README.md)
* [list](docs/sdks/polarorders/README.md#list) - List Orders
-* [retrieve](docs/sdks/polarorders/README.md#retrieve) - Get Order
+* [get](docs/sdks/polarorders/README.md#get) - Get Order
* [invoice](docs/sdks/polarorders/README.md#invoice) - Get Order Invoice
### [users.subscriptions](docs/sdks/polarsubscriptions/README.md)
* [list](docs/sdks/polarsubscriptions/README.md#list) - List Subscriptions
* [create](docs/sdks/polarsubscriptions/README.md#create) - Create Free Subscription
-* [retrieve](docs/sdks/polarsubscriptions/README.md#retrieve) - Get Subscription
+* [get](docs/sdks/polarsubscriptions/README.md#get) - Get Subscription
* [update](docs/sdks/polarsubscriptions/README.md#update) - Update Subscription
* [cancel](docs/sdks/polarsubscriptions/README.md#cancel) - Cancel Subscription
@@ -129,7 +129,7 @@ run();
* [list](docs/sdks/polaradvertisements/README.md#list) - List Advertisements
* [create](docs/sdks/polaradvertisements/README.md#create) - Create Advertisement
-* [retrieve](docs/sdks/polaradvertisements/README.md#retrieve) - Get Advertisement
+* [get](docs/sdks/polaradvertisements/README.md#get) - Get Advertisement
* [update](docs/sdks/polaradvertisements/README.md#update) - Update Advertisement
* [delete](docs/sdks/polaradvertisements/README.md#delete) - Delete Advertisement
* [enable](docs/sdks/polaradvertisements/README.md#enable) - Enable Advertisement
@@ -137,12 +137,12 @@ run();
### [users.downloadables](docs/sdks/downloadables/README.md)
* [list](docs/sdks/downloadables/README.md#list) - List Downloadables
-* [retrieve](docs/sdks/downloadables/README.md#retrieve) - Get Downloadable
+* [get](docs/sdks/downloadables/README.md#get) - Get Downloadable
### [users.licenseKeys](docs/sdks/polarlicensekeys/README.md)
* [list](docs/sdks/polarlicensekeys/README.md#list) - List License Keys
-* [retrieve](docs/sdks/polarlicensekeys/README.md#retrieve) - Get License Key
+* [get](docs/sdks/polarlicensekeys/README.md#get) - Get License Key
* [validate](docs/sdks/polarlicensekeys/README.md#validate) - Validate License Key
* [activate](docs/sdks/polarlicensekeys/README.md#activate) - Activate License Key
* [deactivate](docs/sdks/polarlicensekeys/README.md#deactivate) - Deactivate License Key
@@ -154,14 +154,14 @@ run();
### [repositories](docs/sdks/repositories/README.md)
* [list](docs/sdks/repositories/README.md#list) - List Repositories
-* [retrieve](docs/sdks/repositories/README.md#retrieve) - Get Repository
+* [get](docs/sdks/repositories/README.md#get) - Get Repository
* [update](docs/sdks/repositories/README.md#update) - Update Repository
### [organizations](docs/sdks/organizations/README.md)
* [list](docs/sdks/organizations/README.md#list) - List Organizations
* [create](docs/sdks/organizations/README.md#create) - Create Organization
-* [retrieve](docs/sdks/organizations/README.md#retrieve) - Get Organization
+* [get](docs/sdks/organizations/README.md#get) - Get Organization
* [update](docs/sdks/organizations/README.md#update) - Update Organization
### [subscriptions](docs/sdks/subscriptions/README.md)
@@ -175,7 +175,7 @@ run();
* [list](docs/sdks/articles/README.md#list) - List Articles
* [create](docs/sdks/articles/README.md#create) - Create Article
-* [retrieve](docs/sdks/articles/README.md#retrieve) - Get Article
+* [get](docs/sdks/articles/README.md#get) - Get Article
* [update](docs/sdks/articles/README.md#update) - Update Article
* [delete](docs/sdks/articles/README.md#delete) - Delete Article
* [receivers](docs/sdks/articles/README.md#receivers) - Get Article Receivers Count
@@ -185,7 +185,7 @@ run();
### [advertisements](docs/sdks/advertisements/README.md)
* [list](docs/sdks/advertisements/README.md#list) - List Campaigns
-* [retrieve](docs/sdks/advertisements/README.md#retrieve) - Get Campaign
+* [get](docs/sdks/advertisements/README.md#get) - Get Campaign
### [oauth2](docs/sdks/oauth2/README.md)
@@ -198,7 +198,7 @@ run();
* [list](docs/sdks/clients/README.md#list) - List Clients
* [create](docs/sdks/clients/README.md#create) - Create Client
-* [retrieve](docs/sdks/clients/README.md#retrieve) - Get Client
+* [get](docs/sdks/clients/README.md#get) - Get Client
* [update](docs/sdks/clients/README.md#update) - Update Client
* [delete](docs/sdks/clients/README.md#delete) - Delete Client
@@ -206,7 +206,7 @@ run();
* [list](docs/sdks/benefits/README.md#list) - List Benefits
* [create](docs/sdks/benefits/README.md#create) - Create Benefit
-* [retrieve](docs/sdks/benefits/README.md#retrieve) - Get Benefit
+* [get](docs/sdks/benefits/README.md#get) - Get Benefit
* [update](docs/sdks/benefits/README.md#update) - Update Benefit
* [delete](docs/sdks/benefits/README.md#delete) - Delete Benefit
* [grants](docs/sdks/benefits/README.md#grants) - List Benefit Grants
@@ -215,20 +215,20 @@ run();
* [list](docs/sdks/products/README.md#list) - List Products
* [create](docs/sdks/products/README.md#create) - Create Product
-* [retrieve](docs/sdks/products/README.md#retrieve) - Get Product
+* [get](docs/sdks/products/README.md#get) - Get Product
* [update](docs/sdks/products/README.md#update) - Update Product
* [updateBenefits](docs/sdks/products/README.md#updatebenefits) - Update Product Benefits
### [orders](docs/sdks/orders/README.md)
* [list](docs/sdks/orders/README.md#list) - List Orders
-* [retrieve](docs/sdks/orders/README.md#retrieve) - Get Order
+* [get](docs/sdks/orders/README.md#get) - Get Order
* [invoice](docs/sdks/orders/README.md#invoice) - Get Order Invoice
### [checkouts](docs/sdks/checkouts/README.md)
* [create](docs/sdks/checkouts/README.md#create) - Create Checkout
-* [retrieve](docs/sdks/checkouts/README.md#retrieve) - Get Checkout
+* [get](docs/sdks/checkouts/README.md#get) - Get Checkout
### [files](docs/sdks/files/README.md)
@@ -240,13 +240,13 @@ run();
### [metrics](docs/sdks/metrics/README.md)
-* [retrieve](docs/sdks/metrics/README.md#retrieve) - Get Metrics
+* [get](docs/sdks/metrics/README.md#get) - Get Metrics
* [limits](docs/sdks/metrics/README.md#limits) - Get Metrics Limits
### [licenseKeys](docs/sdks/licensekeys/README.md)
* [list](docs/sdks/licensekeys/README.md#list) - List License Keys
-* [retrieve](docs/sdks/licensekeys/README.md#retrieve) - Get License Key
+* [get](docs/sdks/licensekeys/README.md#get) - Get License Key
* [update](docs/sdks/licensekeys/README.md#update) - Update License Key
* [getActivation](docs/sdks/licensekeys/README.md#getactivation) - Get Activation
@@ -266,24 +266,24 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
Available standalone functions
+- [advertisementsGet](docs/sdks/advertisements/README.md#get)
- [advertisementsList](docs/sdks/advertisements/README.md#list)
-- [advertisementsRetrieve](docs/sdks/advertisements/README.md#retrieve)
- [articlesCreate](docs/sdks/articles/README.md#create)
- [articlesDelete](docs/sdks/articles/README.md#delete)
+- [articlesGet](docs/sdks/articles/README.md#get)
- [articlesList](docs/sdks/articles/README.md#list)
- [articlesPreview](docs/sdks/articles/README.md#preview)
- [articlesReceivers](docs/sdks/articles/README.md#receivers)
-- [articlesRetrieve](docs/sdks/articles/README.md#retrieve)
- [articlesSend](docs/sdks/articles/README.md#send)
- [articlesUpdate](docs/sdks/articles/README.md#update)
- [benefitsCreate](docs/sdks/benefits/README.md#create)
- [benefitsDelete](docs/sdks/benefits/README.md#delete)
+- [benefitsGet](docs/sdks/benefits/README.md#get)
- [benefitsGrants](docs/sdks/benefits/README.md#grants)
- [benefitsList](docs/sdks/benefits/README.md#list)
-- [benefitsRetrieve](docs/sdks/benefits/README.md#retrieve)
- [benefitsUpdate](docs/sdks/benefits/README.md#update)
- [checkoutsCreate](docs/sdks/checkouts/README.md#create)
-- [checkoutsRetrieve](docs/sdks/checkouts/README.md#retrieve)
+- [checkoutsGet](docs/sdks/checkouts/README.md#get)
- [externalOrganizationsList](docs/sdks/externalorganizations/README.md#list)
- [filesCreate](docs/sdks/files/README.md#create)
- [filesDelete](docs/sdks/files/README.md#delete)
@@ -291,34 +291,34 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
- [filesUpdate](docs/sdks/files/README.md#update)
- [filesUploaded](docs/sdks/files/README.md#uploaded)
- [licenseKeysGetActivation](docs/sdks/licensekeys/README.md#getactivation)
+- [licenseKeysGet](docs/sdks/licensekeys/README.md#get)
- [licenseKeysList](docs/sdks/licensekeys/README.md#list)
-- [licenseKeysRetrieve](docs/sdks/licensekeys/README.md#retrieve)
- [licenseKeysUpdate](docs/sdks/licensekeys/README.md#update)
+- [metricsGet](docs/sdks/metrics/README.md#get)
- [metricsLimits](docs/sdks/metrics/README.md#limits)
-- [metricsRetrieve](docs/sdks/metrics/README.md#retrieve)
- [oauth2ClientsCreate](docs/sdks/clients/README.md#create)
- [oauth2ClientsDelete](docs/sdks/clients/README.md#delete)
+- [oauth2ClientsGet](docs/sdks/clients/README.md#get)
- [oauth2ClientsList](docs/sdks/clients/README.md#list)
-- [oauth2ClientsRetrieve](docs/sdks/clients/README.md#retrieve)
- [oauth2ClientsUpdate](docs/sdks/clients/README.md#update)
- [oauth2Introspect](docs/sdks/oauth2/README.md#introspect)
- [oauth2Revoke](docs/sdks/oauth2/README.md#revoke)
- [oauth2Token](docs/sdks/oauth2/README.md#token)
- [oauth2Userinfo](docs/sdks/oauth2/README.md#userinfo)
+- [ordersGet](docs/sdks/orders/README.md#get)
- [ordersInvoice](docs/sdks/orders/README.md#invoice)
- [ordersList](docs/sdks/orders/README.md#list)
-- [ordersRetrieve](docs/sdks/orders/README.md#retrieve)
- [organizationsCreate](docs/sdks/organizations/README.md#create)
+- [organizationsGet](docs/sdks/organizations/README.md#get)
- [organizationsList](docs/sdks/organizations/README.md#list)
-- [organizationsRetrieve](docs/sdks/organizations/README.md#retrieve)
- [organizationsUpdate](docs/sdks/organizations/README.md#update)
- [productsCreate](docs/sdks/products/README.md#create)
+- [productsGet](docs/sdks/products/README.md#get)
- [productsList](docs/sdks/products/README.md#list)
-- [productsRetrieve](docs/sdks/products/README.md#retrieve)
- [productsUpdateBenefits](docs/sdks/products/README.md#updatebenefits)
- [productsUpdate](docs/sdks/products/README.md#update)
+- [repositoriesGet](docs/sdks/repositories/README.md#get)
- [repositoriesList](docs/sdks/repositories/README.md#list)
-- [repositoriesRetrieve](docs/sdks/repositories/README.md#retrieve)
- [repositoriesUpdate](docs/sdks/repositories/README.md#update)
- [subscriptionsCreate](docs/sdks/subscriptions/README.md#create)
- [subscriptionsExport](docs/sdks/subscriptions/README.md#export)
@@ -327,25 +327,25 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
- [usersAdvertisementsCreate](docs/sdks/polaradvertisements/README.md#create)
- [usersAdvertisementsDelete](docs/sdks/polaradvertisements/README.md#delete)
- [usersAdvertisementsEnable](docs/sdks/polaradvertisements/README.md#enable)
+- [usersAdvertisementsGet](docs/sdks/polaradvertisements/README.md#get)
- [usersAdvertisementsList](docs/sdks/polaradvertisements/README.md#list)
-- [usersAdvertisementsRetrieve](docs/sdks/polaradvertisements/README.md#retrieve)
- [usersAdvertisementsUpdate](docs/sdks/polaradvertisements/README.md#update)
+- [usersBenefitsGet](docs/sdks/polarbenefits/README.md#get)
- [usersBenefitsList](docs/sdks/polarbenefits/README.md#list)
-- [usersBenefitsRetrieve](docs/sdks/polarbenefits/README.md#retrieve)
+- [usersDownloadablesGet](docs/sdks/downloadables/README.md#get)
- [usersDownloadablesList](docs/sdks/downloadables/README.md#list)
-- [usersDownloadablesRetrieve](docs/sdks/downloadables/README.md#retrieve)
- [usersLicenseKeysActivate](docs/sdks/polarlicensekeys/README.md#activate)
- [usersLicenseKeysDeactivate](docs/sdks/polarlicensekeys/README.md#deactivate)
+- [usersLicenseKeysGet](docs/sdks/polarlicensekeys/README.md#get)
- [usersLicenseKeysList](docs/sdks/polarlicensekeys/README.md#list)
-- [usersLicenseKeysRetrieve](docs/sdks/polarlicensekeys/README.md#retrieve)
- [usersLicenseKeysValidate](docs/sdks/polarlicensekeys/README.md#validate)
+- [usersOrdersGet](docs/sdks/polarorders/README.md#get)
- [usersOrdersInvoice](docs/sdks/polarorders/README.md#invoice)
- [usersOrdersList](docs/sdks/polarorders/README.md#list)
-- [usersOrdersRetrieve](docs/sdks/polarorders/README.md#retrieve)
- [usersSubscriptionsCancel](docs/sdks/polarsubscriptions/README.md#cancel)
- [usersSubscriptionsCreate](docs/sdks/polarsubscriptions/README.md#create)
+- [usersSubscriptionsGet](docs/sdks/polarsubscriptions/README.md#get)
- [usersSubscriptionsList](docs/sdks/polarsubscriptions/README.md#list)
-- [usersSubscriptionsRetrieve](docs/sdks/polarsubscriptions/README.md#retrieve)
- [usersSubscriptionsUpdate](docs/sdks/polarsubscriptions/README.md#update)
diff --git a/RELEASES.md b/RELEASES.md
index f7b63445..30507332 100644
--- a/RELEASES.md
+++ b/RELEASES.md
@@ -8,4 +8,14 @@ Based on:
### Generated
- [typescript v0.6.1] .
### Releases
-- [NPM v0.6.1] https://www.npmjs.com/package/@polar-sh/sdk/v/0.6.1 - .
\ No newline at end of file
+- [NPM v0.6.1] https://www.npmjs.com/package/@polar-sh/sdk/v/0.6.1 - .
+
+## 2024-09-04 00:24:19
+### Changes
+Based on:
+- OpenAPI Doc
+- Speakeasy CLI 1.390.1 (2.409.0) https://github.com/speakeasy-api/speakeasy
+### Generated
+- [typescript v0.7.0] .
+### Releases
+- [NPM v0.7.0] https://www.npmjs.com/package/@polar-sh/sdk/v/0.7.0 - .
\ No newline at end of file
diff --git a/codeSamples.yaml b/codeSamples.yaml
index 5dd1dbf6..86bf1796 100644
--- a/codeSamples.yaml
+++ b/codeSamples.yaml
@@ -3,7 +3,32 @@ info:
title: CodeSamples overlay for typescript target
version: 0.0.0
actions:
- - target: $["paths"]["/v1/users/benefits/"]["get"]
+ - target: $["paths"]["/v1/users/subscriptions/{id}"]["patch"]
+ update:
+ x-codeSamples:
+ - lang: typescript
+ label: update
+ source: |-
+ import { Polar } from "@polar-sh/sdk";
+
+ const polar = new Polar({
+ accessToken: process.env["POLAR_ACCESS_TOKEN"] ?? "",
+ });
+
+ async function run() {
+ const result = await polar.users.subscriptions.update({
+ id: "",
+ userSubscriptionUpdate: {
+ productPriceId: "",
+ },
+ });
+
+ // Handle the result
+ console.log(result)
+ }
+
+ run();
+ - target: $["paths"]["/v1/orders/"]["get"]
update:
x-codeSamples:
- lang: typescript
@@ -16,7 +41,7 @@ actions:
});
async function run() {
- const result = await polar.users.benefits.list({});
+ const result = await polar.orders.list({});
for await (const page of result) {
// Handle the page
@@ -25,11 +50,11 @@ actions:
}
run();
- - target: $["paths"]["/v1/users/subscriptions/{id}"]["get"]
+ - target: $["paths"]["/v1/users/downloadables/"]["get"]
update:
x-codeSamples:
- lang: typescript
- label: get
+ label: list
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -38,16 +63,16 @@ actions:
});
async function run() {
- const result = await polar.users.subscriptions.retrieve({
- id: "",
- });
+ const result = await polar.users.downloadables.list({});
- // Handle the result
- console.log(result)
+ for await (const page of result) {
+ // Handle the page
+ console.log(page);
+ }
}
run();
- - target: $["paths"]["/v1/users/license-keys/{id}"]["get"]
+ - target: $["paths"]["/v1/repositories/{id}"]["get"]
update:
x-codeSamples:
- lang: typescript
@@ -60,7 +85,7 @@ actions:
});
async function run() {
- const result = await polar.users.licenseKeys.retrieve({
+ const result = await polar.repositories.get({
id: "",
});
@@ -69,11 +94,11 @@ actions:
}
run();
- - target: $["paths"]["/v1/repositories/"]["get"]
+ - target: $["paths"]["/v1/organizations/{id}"]["get"]
update:
x-codeSamples:
- lang: typescript
- label: list
+ label: get
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -82,20 +107,20 @@ actions:
});
async function run() {
- const result = await polar.repositories.list({});
+ const result = await polar.organizations.get({
+ id: "",
+ });
- for await (const page of result) {
- // Handle the page
- console.log(page);
- }
+ // Handle the result
+ console.log(result)
}
run();
- - target: $["paths"]["/v1/subscriptions/export"]["get"]
+ - target: $["paths"]["/v1/organizations/{id}"]["patch"]
update:
x-codeSamples:
- lang: typescript
- label: export
+ label: update
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -104,18 +129,21 @@ actions:
});
async function run() {
- const result = await polar.subscriptions.export({});
+ const result = await polar.organizations.update({
+ id: "",
+ organizationUpdate: {},
+ });
// Handle the result
console.log(result)
}
run();
- - target: $["paths"]["/v1/users/subscriptions/"]["get"]
+ - target: $["paths"]["/v1/benefits/{id}/grants"]["get"]
update:
x-codeSamples:
- lang: typescript
- label: list
+ label: grants
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -124,7 +152,9 @@ actions:
});
async function run() {
- const result = await polar.users.subscriptions.list({});
+ const result = await polar.benefits.grants({
+ id: "",
+ });
for await (const page of result) {
// Handle the page
@@ -133,7 +163,7 @@ actions:
}
run();
- - target: $["paths"]["/v1/users/subscriptions/{id}"]["patch"]
+ - target: $["paths"]["/v1/files/{id}"]["patch"]
update:
x-codeSamples:
- lang: typescript
@@ -146,11 +176,9 @@ actions:
});
async function run() {
- const result = await polar.users.subscriptions.update({
+ const result = await polar.files.update({
id: "",
- userSubscriptionUpdate: {
- productPriceId: "",
- },
+ filePatch: {},
});
// Handle the result
@@ -158,11 +186,11 @@ actions:
}
run();
- - target: $["paths"]["/v1/repositories/{id}"]["patch"]
+ - target: $["paths"]["/v1/users/license-keys/activate"]["post"]
update:
x-codeSamples:
- lang: typescript
- label: update
+ label: activate
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -171,9 +199,10 @@ actions:
});
async function run() {
- const result = await polar.repositories.update({
- id: "",
- repositoryUpdate: {},
+ const result = await polar.users.licenseKeys.activate({
+ key: "",
+ organizationId: "",
+ label: "",
});
// Handle the result
@@ -181,11 +210,11 @@ actions:
}
run();
- - target: $["paths"]["/v1/articles/{id}/send"]["post"]
+ - target: $["paths"]["/v1/benefits/{id}"]["get"]
update:
x-codeSamples:
- lang: typescript
- label: send
+ label: get
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -194,7 +223,7 @@ actions:
});
async function run() {
- const result = await polar.articles.send({
+ const result = await polar.benefits.get({
id: "",
});
@@ -203,11 +232,11 @@ actions:
}
run();
- - target: $["paths"]["/v1/oauth2/introspect"]["post"]
+ - target: $["paths"]["/v1/license-keys/{id}"]["get"]
update:
x-codeSamples:
- lang: typescript
- label: introspect_token
+ label: get
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -216,10 +245,8 @@ actions:
});
async function run() {
- const result = await polar.oauth2.introspect({
- token: "",
- clientId: "",
- clientSecret: "",
+ const result = await polar.licenseKeys.get({
+ id: "",
});
// Handle the result
@@ -227,11 +254,11 @@ actions:
}
run();
- - target: $["paths"]["/v1/oauth2/register/{client_id}"]["put"]
+ - target: $["paths"]["/v1/license-keys/{id}"]["patch"]
update:
x-codeSamples:
- lang: typescript
- label: update_client
+ label: update
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -240,15 +267,9 @@ actions:
});
async function run() {
- const result = await polar.oauth2.clients.update({
- clientId: "",
- oAuth2ClientConfigurationUpdate: {
- redirectUris: [
- "https://alarming-nondisclosure.com",
- ],
- clientName: "",
- clientId: "",
- },
+ const result = await polar.licenseKeys.update({
+ id: "",
+ licenseKeyUpdate: {},
});
// Handle the result
@@ -256,11 +277,17 @@ actions:
}
run();
- - target: $["paths"]["/v1/products/{id}"]["get"]
+ - target: $["paths"]["/v1/articles/{id}"]["delete"]
update:
x-codeSamples:
- lang: typescript
- label: get
+ 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.articles.delete({\n id: \"\",\n });\n\n \n}\n\nrun();"
+ - target: $["paths"]["/v1/articles/{id}/send"]["post"]
+ update:
+ x-codeSamples:
+ - lang: typescript
+ label: send
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -269,7 +296,7 @@ actions:
});
async function run() {
- const result = await polar.products.retrieve({
+ const result = await polar.articles.send({
id: "",
});
@@ -278,11 +305,11 @@ actions:
}
run();
- - target: $["paths"]["/v1/metrics/limits"]["get"]
+ - target: $["paths"]["/v1/orders/{id}"]["get"]
update:
x-codeSamples:
- lang: typescript
- label: limits
+ label: get
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -291,18 +318,26 @@ actions:
});
async function run() {
- const result = await polar.metrics.limits();
+ const result = await polar.orders.get({
+ id: "",
+ });
// Handle the result
console.log(result)
}
run();
- - target: $["paths"]["/v1/users/subscriptions/"]["post"]
+ - target: $["paths"]["/v1/files/{id}"]["delete"]
update:
x-codeSamples:
- lang: typescript
- label: create
+ 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.files.delete({\n id: \"\",\n });\n\n \n}\n\nrun();"
+ - target: $["paths"]["/v1/oauth2/register/{client_id}"]["get"]
+ update:
+ x-codeSamples:
+ - lang: typescript
+ label: get_client
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -311,8 +346,8 @@ actions:
});
async function run() {
- const result = await polar.users.subscriptions.create({
- productId: "",
+ const result = await polar.oauth2.clients.get({
+ clientId: "",
});
// Handle the result
@@ -320,11 +355,11 @@ actions:
}
run();
- - target: $["paths"]["/v1/users/advertisements/"]["get"]
+ - target: $["paths"]["/v1/license-keys/{id}/activations/{activation_id}"]["get"]
update:
x-codeSamples:
- lang: typescript
- label: list
+ label: get_activation
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -333,20 +368,21 @@ actions:
});
async function run() {
- const result = await polar.users.advertisements.list({});
+ const result = await polar.licenseKeys.getActivation({
+ id: "",
+ activationId: "",
+ });
- for await (const page of result) {
- // Handle the page
- console.log(page);
- }
+ // Handle the result
+ console.log(result)
}
run();
- - target: $["paths"]["/v1/external_organizations/"]["get"]
+ - target: $["paths"]["/v1/users/subscriptions/{id}"]["get"]
update:
x-codeSamples:
- lang: typescript
- label: list
+ label: get
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -355,16 +391,22 @@ actions:
});
async function run() {
- const result = await polar.externalOrganizations.list({});
+ const result = await polar.users.subscriptions.get({
+ id: "",
+ });
- for await (const page of result) {
- // Handle the page
- console.log(page);
- }
+ // Handle the result
+ console.log(result)
}
run();
- - target: $["paths"]["/v1/organizations/{id}"]["get"]
+ - target: $["paths"]["/v1/users/advertisements/{id}/enable"]["post"]
+ update:
+ x-codeSamples:
+ - lang: typescript
+ label: enable
+ 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.users.advertisements.enable({\n id: \"\",\n userAdvertisementCampaignEnable: {\n benefitId: \"\",\n },\n });\n\n \n}\n\nrun();"
+ - target: $["paths"]["/v1/users/downloadables/{token}"]["get"]
update:
x-codeSamples:
- lang: typescript
@@ -377,8 +419,8 @@ actions:
});
async function run() {
- const result = await polar.organizations.retrieve({
- id: "",
+ const result = await polar.users.downloadables.get({
+ token: "",
});
// Handle the result
@@ -386,11 +428,11 @@ actions:
}
run();
- - target: $["paths"]["/v1/articles/{id}"]["patch"]
+ - target: $["paths"]["/v1/users/license-keys/validate"]["post"]
update:
x-codeSamples:
- lang: typescript
- label: update
+ label: validate
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -399,9 +441,9 @@ actions:
});
async function run() {
- const result = await polar.articles.update({
- id: "",
- articleUpdate: {},
+ const result = await polar.users.licenseKeys.validate({
+ key: "",
+ organizationId: "",
});
// Handle the result
@@ -409,7 +451,7 @@ actions:
}
run();
- - target: $["paths"]["/v1/advertisements/"]["get"]
+ - target: $["paths"]["/v1/repositories/"]["get"]
update:
x-codeSamples:
- lang: typescript
@@ -422,9 +464,7 @@ actions:
});
async function run() {
- const result = await polar.advertisements.list({
- benefitId: "",
- });
+ const result = await polar.repositories.list({});
for await (const page of result) {
// Handle the page
@@ -433,11 +473,11 @@ actions:
}
run();
- - target: $["paths"]["/v1/users/orders/"]["get"]
+ - target: $["paths"]["/v1/oauth2/revoke"]["post"]
update:
x-codeSamples:
- lang: typescript
- label: list
+ label: revoke_token
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -446,20 +486,22 @@ actions:
});
async function run() {
- const result = await polar.users.orders.list({});
+ const result = await polar.oauth2.revoke({
+ token: "",
+ clientId: "",
+ clientSecret: "",
+ });
- for await (const page of result) {
- // Handle the page
- console.log(page);
- }
+ // Handle the result
+ console.log(result)
}
run();
- - target: $["paths"]["/v1/articles/{id}/receivers"]["get"]
+ - target: $["paths"]["/v1/users/subscriptions/"]["post"]
update:
x-codeSamples:
- lang: typescript
- label: receivers
+ label: create
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -468,8 +510,8 @@ actions:
});
async function run() {
- const result = await polar.articles.receivers({
- id: "",
+ const result = await polar.users.subscriptions.create({
+ productId: "",
});
// Handle the result
@@ -477,7 +519,7 @@ actions:
}
run();
- - target: $["paths"]["/v1/oauth2/"]["get"]
+ - target: $["paths"]["/v1/organizations/"]["get"]
update:
x-codeSamples:
- lang: typescript
@@ -490,7 +532,7 @@ actions:
});
async function run() {
- const result = await polar.oauth2.clients.list({});
+ const result = await polar.organizations.list({});
for await (const page of result) {
// Handle the page
@@ -499,11 +541,11 @@ actions:
}
run();
- - target: $["paths"]["/v1/products/"]["get"]
+ - target: $["paths"]["/v1/users/advertisements/{id}"]["get"]
update:
x-codeSamples:
- lang: typescript
- label: list
+ label: get
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -512,20 +554,20 @@ actions:
});
async function run() {
- const result = await polar.products.list({});
+ const result = await polar.users.advertisements.get({
+ id: "",
+ });
- for await (const page of result) {
- // Handle the page
- console.log(page);
- }
+ // Handle the result
+ console.log(result)
}
run();
- - target: $["paths"]["/v1/products/{id}/benefits"]["post"]
+ - target: $["paths"]["/v1/users/license-keys/"]["get"]
update:
x-codeSamples:
- lang: typescript
- label: update_benefits
+ label: list
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -534,50 +576,20 @@ actions:
});
async function run() {
- const result = await polar.products.updateBenefits({
- id: "",
- productBenefitsUpdate: {
- benefits: [
- "",
- ],
- },
- });
-
- // Handle the result
- console.log(result)
- }
-
- run();
- - target: $["paths"]["/v1/metrics/"]["get"]
- update:
- x-codeSamples:
- - lang: typescript
- label: get
- source: |-
- import { Polar } from "@polar-sh/sdk";
- import { RFCDate } from "@polar-sh/sdk/types";
-
- const polar = new Polar({
- accessToken: process.env["POLAR_ACCESS_TOKEN"] ?? "",
- });
-
- async function run() {
- const result = await polar.metrics.retrieve({
- startDate: new RFCDate("2023-02-11"),
- endDate: new RFCDate("2024-11-01"),
- interval: "hour",
- });
+ const result = await polar.users.licenseKeys.list({});
- // Handle the result
- console.log(result)
+ for await (const page of result) {
+ // Handle the page
+ console.log(page);
+ }
}
run();
- - target: $["paths"]["/v1/users/orders/{id}"]["get"]
+ - target: $["paths"]["/v1/benefits/"]["get"]
update:
x-codeSamples:
- lang: typescript
- label: get
+ label: list
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -586,16 +598,16 @@ actions:
});
async function run() {
- const result = await polar.users.orders.retrieve({
- id: "",
- });
+ const result = await polar.benefits.list({});
- // Handle the result
- console.log(result)
+ for await (const page of result) {
+ // Handle the page
+ console.log(page);
+ }
}
run();
- - target: $["paths"]["/v1/benefits/"]["get"]
+ - target: $["paths"]["/v1/products/"]["get"]
update:
x-codeSamples:
- lang: typescript
@@ -608,7 +620,7 @@ actions:
});
async function run() {
- const result = await polar.benefits.list({});
+ const result = await polar.products.list({});
for await (const page of result) {
// Handle the page
@@ -617,11 +629,11 @@ actions:
}
run();
- - target: $["paths"]["/v1/benefits/{id}"]["patch"]
+ - target: $["paths"]["/v1/files/{id}/uploaded"]["post"]
update:
x-codeSamples:
- lang: typescript
- label: update
+ label: uploaded
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -630,9 +642,19 @@ actions:
});
async function run() {
- const result = await polar.benefits.update({
+ const result = await polar.files.uploaded({
id: "",
- requestBody: {},
+ fileUploadCompleted: {
+ id: "",
+ path: "/sys",
+ parts: [
+ {
+ number: 241210,
+ checksumEtag: "",
+ checksumSha256Base64: "",
+ },
+ ],
+ },
});
// Handle the result
@@ -640,11 +662,11 @@ actions:
}
run();
- - target: $["paths"]["/v1/orders/{id}/invoice"]["get"]
+ - target: $["paths"]["/v1/organizations/"]["post"]
update:
x-codeSamples:
- lang: typescript
- label: invoice
+ label: create
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -653,8 +675,9 @@ actions:
});
async function run() {
- const result = await polar.orders.invoice({
- id: "",
+ const result = await polar.organizations.create({
+ name: "",
+ slug: "",
});
// Handle the result
@@ -662,7 +685,7 @@ actions:
}
run();
- - target: $["paths"]["/v1/files/"]["post"]
+ - target: $["paths"]["/v1/subscriptions/"]["post"]
update:
x-codeSamples:
- lang: typescript
@@ -675,19 +698,9 @@ actions:
});
async function run() {
- const result = await polar.files.create({
- name: "",
- mimeType: "",
- size: 489382,
- upload: {
- parts: [
- {
- number: 638424,
- chunkStart: 859213,
- chunkEnd: 417458,
- },
- ],
- },
+ const result = await polar.subscriptions.create({
+ email: "Jena.Nienow28@yahoo.com",
+ productId: "",
});
// Handle the result
@@ -695,7 +708,7 @@ actions:
}
run();
- - target: $["paths"]["/v1/users/orders/{id}/invoice"]["get"]
+ - target: $["paths"]["/v1/orders/{id}/invoice"]["get"]
update:
x-codeSamples:
- lang: typescript
@@ -708,7 +721,7 @@ actions:
});
async function run() {
- const result = await polar.users.orders.invoice({
+ const result = await polar.orders.invoice({
id: "",
});
@@ -717,17 +730,11 @@ actions:
}
run();
- - target: $["paths"]["/v1/users/advertisements/{id}/enable"]["post"]
- update:
- x-codeSamples:
- - lang: typescript
- label: enable
- 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.users.advertisements.enable({\n id: \"\",\n userAdvertisementCampaignEnable: {\n benefitId: \"\",\n },\n });\n\n \n}\n\nrun();"
- - target: $["paths"]["/v1/orders/{id}"]["get"]
+ - target: $["paths"]["/v1/users/advertisements/"]["post"]
update:
x-codeSamples:
- lang: typescript
- label: get
+ label: create
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -736,8 +743,10 @@ actions:
});
async function run() {
- const result = await polar.orders.retrieve({
- id: "",
+ const result = await polar.users.advertisements.create({
+ imageUrl: "http://limp-pastry.org",
+ text: "",
+ linkUrl: "http://flashy-cartload.net",
});
// Handle the result
@@ -745,11 +754,11 @@ actions:
}
run();
- - target: $["paths"]["/v1/license-keys/{id}"]["get"]
+ - target: $["paths"]["/v1/external_organizations/"]["get"]
update:
x-codeSamples:
- lang: typescript
- label: get
+ label: list
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -758,20 +767,20 @@ actions:
});
async function run() {
- const result = await polar.licenseKeys.retrieve({
- id: "",
- });
+ const result = await polar.externalOrganizations.list({});
- // Handle the result
- console.log(result)
+ for await (const page of result) {
+ // Handle the page
+ console.log(page);
+ }
}
run();
- - target: $["paths"]["/v1/checkouts/"]["post"]
+ - target: $["paths"]["/v1/advertisements/"]["get"]
update:
x-codeSamples:
- lang: typescript
- label: create
+ label: list
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -780,21 +789,22 @@ actions:
});
async function run() {
- const result = await polar.checkouts.create({
- productPriceId: "",
- successUrl: "http://limp-pastry.org",
+ const result = await polar.advertisements.list({
+ benefitId: "",
});
- // Handle the result
- console.log(result)
+ for await (const page of result) {
+ // Handle the page
+ console.log(page);
+ }
}
run();
- - target: $["paths"]["/v1/users/benefits/{id}"]["get"]
+ - target: $["paths"]["/v1/oauth2/register/{client_id}"]["delete"]
update:
x-codeSamples:
- lang: typescript
- label: get
+ label: delete_client
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -803,8 +813,8 @@ actions:
});
async function run() {
- const result = await polar.users.benefits.retrieve({
- id: "",
+ const result = await polar.oauth2.clients.delete({
+ clientId: "",
});
// Handle the result
@@ -812,11 +822,11 @@ actions:
}
run();
- - target: $["paths"]["/v1/users/downloadables/{token}"]["get"]
+ - target: $["paths"]["/v1/checkouts/"]["post"]
update:
x-codeSamples:
- lang: typescript
- label: get
+ label: create
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -825,8 +835,9 @@ actions:
});
async function run() {
- const result = await polar.users.downloadables.retrieve({
- token: "",
+ const result = await polar.checkouts.create({
+ productPriceId: "",
+ successUrl: "http://limp-pastry.org",
});
// Handle the result
@@ -834,7 +845,7 @@ actions:
}
run();
- - target: $["paths"]["/v1/users/license-keys/"]["get"]
+ - target: $["paths"]["/v1/users/benefits/"]["get"]
update:
x-codeSamples:
- lang: typescript
@@ -847,7 +858,7 @@ actions:
});
async function run() {
- const result = await polar.users.licenseKeys.list({});
+ const result = await polar.users.benefits.list({});
for await (const page of result) {
// Handle the page
@@ -856,11 +867,11 @@ actions:
}
run();
- - target: $["paths"]["/v1/subscriptions/"]["get"]
+ - target: $["paths"]["/v1/users/orders/{id}"]["get"]
update:
x-codeSamples:
- lang: typescript
- label: list
+ label: get
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -869,20 +880,20 @@ actions:
});
async function run() {
- const result = await polar.subscriptions.list({});
+ const result = await polar.users.orders.get({
+ id: "",
+ });
- for await (const page of result) {
- // Handle the page
- console.log(page);
- }
+ // Handle the result
+ console.log(result)
}
run();
- - target: $["paths"]["/v1/benefits/{id}"]["get"]
+ - target: $["paths"]["/v1/users/subscriptions/"]["get"]
update:
x-codeSamples:
- lang: typescript
- label: get
+ label: list
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -891,20 +902,20 @@ actions:
});
async function run() {
- const result = await polar.benefits.retrieve({
- id: "",
- });
+ const result = await polar.users.subscriptions.list({});
- // Handle the result
- console.log(result)
+ for await (const page of result) {
+ // Handle the page
+ console.log(page);
+ }
}
run();
- - target: $["paths"]["/v1/products/{id}"]["patch"]
+ - target: $["paths"]["/v1/oauth2/register"]["post"]
update:
x-codeSamples:
- lang: typescript
- label: update
+ label: create_client
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -913,9 +924,11 @@ actions:
});
async function run() {
- const result = await polar.products.update({
- id: "",
- productUpdate: {},
+ const result = await polar.oauth2.clients.create({
+ redirectUris: [
+ "http://limp-pastry.org",
+ ],
+ clientName: "",
});
// Handle the result
@@ -923,11 +936,11 @@ actions:
}
run();
- - target: $["paths"]["/v1/organizations/"]["post"]
+ - target: $["paths"]["/v1/metrics/limits"]["get"]
update:
x-codeSamples:
- lang: typescript
- label: create
+ label: limits
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -936,21 +949,18 @@ actions:
});
async function run() {
- const result = await polar.organizations.create({
- name: "",
- slug: "",
- });
+ const result = await polar.metrics.limits();
// Handle the result
console.log(result)
}
run();
- - target: $["paths"]["/v1/oauth2/token"]["post"]
+ - target: $["paths"]["/v1/users/benefits/{id}"]["get"]
update:
x-codeSamples:
- lang: typescript
- label: request_token
+ label: get
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -959,11 +969,8 @@ actions:
});
async function run() {
- const result = await polar.oauth2.token({
- clientId: "",
- clientSecret: "",
- code: "",
- redirectUri: "http://multicolored-chivalry.name",
+ const result = await polar.users.benefits.get({
+ id: "",
});
// Handle the result
@@ -971,11 +978,11 @@ actions:
}
run();
- - target: $["paths"]["/v1/files/"]["get"]
+ - target: $["paths"]["/v1/users/orders/{id}/invoice"]["get"]
update:
x-codeSamples:
- lang: typescript
- label: list
+ label: invoice
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -984,20 +991,20 @@ actions:
});
async function run() {
- const result = await polar.files.list({});
+ const result = await polar.users.orders.invoice({
+ id: "",
+ });
- for await (const page of result) {
- // Handle the page
- console.log(page);
- }
+ // Handle the result
+ console.log(result)
}
run();
- - target: $["paths"]["/v1/files/{id}/uploaded"]["post"]
+ - target: $["paths"]["/v1/users/license-keys/{id}"]["get"]
update:
x-codeSamples:
- lang: typescript
- label: uploaded
+ label: get
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -1006,19 +1013,8 @@ actions:
});
async function run() {
- const result = await polar.files.uploaded({
+ const result = await polar.users.licenseKeys.get({
id: "",
- fileUploadCompleted: {
- id: "",
- path: "/sys",
- parts: [
- {
- number: 241210,
- checksumEtag: "",
- checksumSha256Base64: "",
- },
- ],
- },
});
// Handle the result
@@ -1026,17 +1022,11 @@ actions:
}
run();
- - target: $["paths"]["/v1/files/{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.files.delete({\n id: \"\",\n });\n\n \n}\n\nrun();"
- - target: $["paths"]["/v1/license-keys/{id}/activations/{activation_id}"]["get"]
+ - target: $["paths"]["/v1/oauth2/"]["get"]
update:
x-codeSamples:
- lang: typescript
- label: get_activation
+ label: list
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -1045,21 +1035,26 @@ actions:
});
async function run() {
- const result = await polar.licenseKeys.getActivation({
- id: "",
- activationId: "",
- });
+ const result = await polar.oauth2.clients.list({});
- // Handle the result
- console.log(result)
+ for await (const page of result) {
+ // Handle the page
+ console.log(page);
+ }
}
run();
- - target: $["paths"]["/v1/organizations/{id}"]["patch"]
+ - target: $["paths"]["/v1/benefits/{id}"]["delete"]
update:
x-codeSamples:
- lang: typescript
- label: update
+ 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.benefits.delete({\n id: \"\",\n });\n\n \n}\n\nrun();"
+ - target: $["paths"]["/v1/products/"]["post"]
+ update:
+ x-codeSamples:
+ - lang: typescript
+ label: create
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -1068,9 +1063,14 @@ actions:
});
async function run() {
- const result = await polar.organizations.update({
- id: "",
- organizationUpdate: {},
+ const result = await polar.products.create({
+ name: "",
+ prices: [
+ {
+ recurringInterval: "month",
+ priceAmount: 638424,
+ },
+ ],
});
// Handle the result
@@ -1078,11 +1078,11 @@ actions:
}
run();
- - target: $["paths"]["/v1/articles/{id}/preview"]["post"]
+ - target: $["paths"]["/v1/files/"]["post"]
update:
x-codeSamples:
- lang: typescript
- label: preview
+ label: create
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -1091,10 +1091,18 @@ actions:
});
async function run() {
- const result = await polar.articles.preview({
- id: "",
- articlePreview: {
- email: "Eileen56@yahoo.com",
+ const result = await polar.files.create({
+ name: "",
+ mimeType: "",
+ size: 489382,
+ upload: {
+ parts: [
+ {
+ number: 638424,
+ chunkStart: 859213,
+ chunkEnd: 417458,
+ },
+ ],
},
});
@@ -1103,11 +1111,11 @@ actions:
}
run();
- - target: $["paths"]["/v1/advertisements/{id}"]["get"]
+ - target: $["paths"]["/v1/license-keys"]["get"]
update:
x-codeSamples:
- lang: typescript
- label: get
+ label: list
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -1116,16 +1124,16 @@ actions:
});
async function run() {
- const result = await polar.advertisements.retrieve({
- id: "",
- });
+ const result = await polar.licenseKeys.list({});
- // Handle the result
- console.log(result)
+ for await (const page of result) {
+ // Handle the page
+ console.log(page);
+ }
}
run();
- - target: $["paths"]["/v1/license-keys"]["get"]
+ - target: $["paths"]["/v1/users/advertisements/"]["get"]
update:
x-codeSamples:
- lang: typescript
@@ -1138,7 +1146,7 @@ actions:
});
async function run() {
- const result = await polar.licenseKeys.list({});
+ const result = await polar.users.advertisements.list({});
for await (const page of result) {
// Handle the page
@@ -1147,11 +1155,11 @@ actions:
}
run();
- - target: $["paths"]["/v1/users/advertisements/{id}"]["get"]
+ - target: $["paths"]["/v1/users/advertisements/{id}"]["delete"]
update:
x-codeSamples:
- lang: typescript
- label: get
+ label: delete
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -1160,7 +1168,7 @@ actions:
});
async function run() {
- const result = await polar.users.advertisements.retrieve({
+ const result = await polar.users.advertisements.delete({
id: "",
});
@@ -1169,11 +1177,11 @@ actions:
}
run();
- - target: $["paths"]["/v1/users/license-keys/activate"]["post"]
+ - target: $["paths"]["/v1/articles/"]["post"]
update:
x-codeSamples:
- lang: typescript
- label: activate
+ label: create
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -1182,10 +1190,8 @@ actions:
});
async function run() {
- const result = await polar.users.licenseKeys.activate({
- key: "",
- organizationId: "",
- label: "",
+ const result = await polar.articles.create({
+ title: "",
});
// Handle the result
@@ -1193,11 +1199,11 @@ actions:
}
run();
- - target: $["paths"]["/v1/subscriptions/"]["post"]
+ - target: $["paths"]["/v1/articles/{id}"]["patch"]
update:
x-codeSamples:
- lang: typescript
- label: create
+ label: update
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -1206,9 +1212,9 @@ actions:
});
async function run() {
- const result = await polar.subscriptions.create({
- email: "Jena.Nienow28@yahoo.com",
- productId: "",
+ const result = await polar.articles.update({
+ id: "",
+ articleUpdate: {},
});
// Handle the result
@@ -1216,11 +1222,11 @@ actions:
}
run();
- - target: $["paths"]["/v1/benefits/"]["post"]
+ - target: $["paths"]["/v1/checkouts/{id}"]["get"]
update:
x-codeSamples:
- lang: typescript
- label: create
+ label: get
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -1229,12 +1235,8 @@ actions:
});
async function run() {
- const result = await polar.benefits.create({
- description: "Multi-tiered motivating standardization",
- properties: {
- guildToken: "",
- roleId: "",
- },
+ const result = await polar.checkouts.get({
+ id: "",
});
// Handle the result
@@ -1242,7 +1244,7 @@ actions:
}
run();
- - target: $["paths"]["/v1/orders/"]["get"]
+ - target: $["paths"]["/v1/files/"]["get"]
update:
x-codeSamples:
- lang: typescript
@@ -1255,7 +1257,7 @@ actions:
});
async function run() {
- const result = await polar.orders.list({});
+ const result = await polar.files.list({});
for await (const page of result) {
// Handle the page
@@ -1264,11 +1266,11 @@ actions:
}
run();
- - target: $["paths"]["/v1/users/advertisements/"]["post"]
+ - target: $["paths"]["/v1/users/advertisements/{id}"]["patch"]
update:
x-codeSamples:
- lang: typescript
- label: create
+ label: update
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -1277,10 +1279,9 @@ actions:
});
async function run() {
- const result = await polar.users.advertisements.create({
- imageUrl: "http://limp-pastry.org",
- text: "",
- linkUrl: "http://flashy-cartload.net",
+ const result = await polar.users.advertisements.update({
+ id: "",
+ userAdvertisementCampaignUpdate: {},
});
// Handle the result
@@ -1288,7 +1289,7 @@ actions:
}
run();
- - target: $["paths"]["/v1/repositories/{id}"]["get"]
+ - target: $["paths"]["/v1/products/{id}"]["get"]
update:
x-codeSamples:
- lang: typescript
@@ -1301,7 +1302,7 @@ actions:
});
async function run() {
- const result = await polar.repositories.retrieve({
+ const result = await polar.products.get({
id: "",
});
@@ -1310,7 +1311,7 @@ actions:
}
run();
- - target: $["paths"]["/v1/license-keys/{id}"]["patch"]
+ - target: $["paths"]["/v1/products/{id}"]["patch"]
update:
x-codeSamples:
- lang: typescript
@@ -1323,9 +1324,9 @@ actions:
});
async function run() {
- const result = await polar.licenseKeys.update({
+ const result = await polar.products.update({
id: "",
- licenseKeyUpdate: {},
+ productUpdate: {},
});
// Handle the result
@@ -1333,11 +1334,11 @@ actions:
}
run();
- - target: $["paths"]["/v1/users/subscriptions/{id}"]["delete"]
+ - target: $["paths"]["/v1/products/{id}/benefits"]["post"]
update:
x-codeSamples:
- lang: typescript
- label: cancel
+ label: update_benefits
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -1346,8 +1347,13 @@ actions:
});
async function run() {
- const result = await polar.users.subscriptions.cancel({
+ const result = await polar.products.updateBenefits({
id: "",
+ productBenefitsUpdate: {
+ benefits: [
+ "",
+ ],
+ },
});
// Handle the result
@@ -1361,41 +1367,33 @@ actions:
- lang: typescript
label: deactivate
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.users.licenseKeys.deactivate({\n key: \"\",\n organizationId: \"\",\n activationId: \"\",\n });\n\n \n}\n\nrun();"
- - target: $["paths"]["/v1/subscriptions/import"]["post"]
+ - target: $["paths"]["/v1/articles/"]["get"]
update:
x-codeSamples:
- lang: typescript
- label: import
+ label: list
source: |-
import { Polar } from "@polar-sh/sdk";
- import { openAsBlob } from "node:fs";
const polar = new Polar({
accessToken: process.env["POLAR_ACCESS_TOKEN"] ?? "",
});
async function run() {
- const result = await polar.subscriptions.importSubscriptions({
- file: await openAsBlob("./sample-file"),
- organizationId: "",
- });
+ const result = await polar.articles.list({});
- // Handle the result
- console.log(result)
+ for await (const page of result) {
+ // Handle the page
+ console.log(page);
+ }
}
run();
- - target: $["paths"]["/v1/articles/{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.articles.delete({\n id: \"\",\n });\n\n \n}\n\nrun();"
- - target: $["paths"]["/v1/products/"]["post"]
+ - target: $["paths"]["/v1/benefits/{id}"]["patch"]
update:
x-codeSamples:
- lang: typescript
- label: create
+ label: update
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -1404,14 +1402,9 @@ actions:
});
async function run() {
- const result = await polar.products.create({
- name: "",
- prices: [
- {
- recurringInterval: "month",
- priceAmount: 638424,
- },
- ],
+ const result = await polar.benefits.update({
+ id: "",
+ requestBody: {},
});
// Handle the result
@@ -1419,11 +1412,11 @@ actions:
}
run();
- - target: $["paths"]["/v1/files/{id}"]["patch"]
+ - target: $["paths"]["/v1/oauth2/token"]["post"]
update:
x-codeSamples:
- lang: typescript
- label: update
+ label: request_token
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -1432,9 +1425,11 @@ actions:
});
async function run() {
- const result = await polar.files.update({
- id: "",
- filePatch: {},
+ const result = await polar.oauth2.token({
+ clientId: "",
+ clientSecret: "",
+ code: "",
+ redirectUri: "http://multicolored-chivalry.name",
});
// Handle the result
@@ -1442,11 +1437,11 @@ actions:
}
run();
- - target: $["paths"]["/v1/users/license-keys/validate"]["post"]
+ - target: $["paths"]["/v1/oauth2/introspect"]["post"]
update:
x-codeSamples:
- lang: typescript
- label: validate
+ label: introspect_token
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -1455,9 +1450,10 @@ actions:
});
async function run() {
- const result = await polar.users.licenseKeys.validate({
- key: "",
- organizationId: "",
+ const result = await polar.oauth2.introspect({
+ token: "",
+ clientId: "",
+ clientSecret: "",
});
// Handle the result
@@ -1465,33 +1461,11 @@ actions:
}
run();
- - target: $["paths"]["/v1/organizations/"]["get"]
- update:
- x-codeSamples:
- - lang: typescript
- label: list
- source: |-
- import { Polar } from "@polar-sh/sdk";
-
- const polar = new Polar({
- accessToken: process.env["POLAR_ACCESS_TOKEN"] ?? "",
- });
-
- async function run() {
- const result = await polar.organizations.list({});
-
- for await (const page of result) {
- // Handle the page
- console.log(page);
- }
- }
-
- run();
- - target: $["paths"]["/v1/oauth2/register"]["post"]
+ - target: $["paths"]["/v1/users/subscriptions/{id}"]["delete"]
update:
x-codeSamples:
- lang: typescript
- label: create_client
+ label: cancel
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -1500,11 +1474,8 @@ actions:
});
async function run() {
- const result = await polar.oauth2.clients.create({
- redirectUris: [
- "http://limp-pastry.org",
- ],
- clientName: "",
+ const result = await polar.users.subscriptions.cancel({
+ id: "",
});
// Handle the result
@@ -1512,11 +1483,11 @@ actions:
}
run();
- - target: $["paths"]["/v1/oauth2/register/{client_id}"]["get"]
+ - target: $["paths"]["/v1/repositories/{id}"]["patch"]
update:
x-codeSamples:
- lang: typescript
- label: get_client
+ label: update
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -1525,8 +1496,9 @@ actions:
});
async function run() {
- const result = await polar.oauth2.clients.retrieve({
- clientId: "",
+ const result = await polar.repositories.update({
+ id: "",
+ repositoryUpdate: {},
});
// Handle the result
@@ -1534,17 +1506,11 @@ actions:
}
run();
- - target: $["paths"]["/v1/benefits/{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.benefits.delete({\n id: \"\",\n });\n\n \n}\n\nrun();"
- - target: $["paths"]["/v1/benefits/{id}/grants"]["get"]
+ - target: $["paths"]["/v1/subscriptions/"]["get"]
update:
x-codeSamples:
- lang: typescript
- label: grants
+ label: list
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -1553,9 +1519,7 @@ actions:
});
async function run() {
- const result = await polar.benefits.grants({
- id: "",
- });
+ const result = await polar.subscriptions.list({});
for await (const page of result) {
// Handle the page
@@ -1564,21 +1528,23 @@ actions:
}
run();
- - target: $["paths"]["/v1/articles/{id}"]["get"]
+ - target: $["paths"]["/v1/subscriptions/import"]["post"]
update:
x-codeSamples:
- lang: typescript
- label: get
+ label: import
source: |-
import { Polar } from "@polar-sh/sdk";
+ import { openAsBlob } from "node:fs";
const polar = new Polar({
accessToken: process.env["POLAR_ACCESS_TOKEN"] ?? "",
});
async function run() {
- const result = await polar.articles.retrieve({
- id: "",
+ const result = await polar.subscriptions.importSubscriptions({
+ file: await openAsBlob("./sample-file"),
+ organizationId: "",
});
// Handle the result
@@ -1586,11 +1552,11 @@ actions:
}
run();
- - target: $["paths"]["/v1/checkouts/{id}"]["get"]
+ - target: $["paths"]["/v1/subscriptions/export"]["get"]
update:
x-codeSamples:
- lang: typescript
- label: get
+ label: export
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -1599,20 +1565,18 @@ actions:
});
async function run() {
- const result = await polar.checkouts.retrieve({
- id: "",
- });
+ const result = await polar.subscriptions.export({});
// Handle the result
console.log(result)
}
run();
- - target: $["paths"]["/v1/articles/"]["post"]
+ - target: $["paths"]["/v1/articles/{id}/receivers"]["get"]
update:
x-codeSamples:
- lang: typescript
- label: create
+ label: receivers
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -1621,8 +1585,8 @@ actions:
});
async function run() {
- const result = await polar.articles.create({
- title: "",
+ const result = await polar.articles.receivers({
+ id: "",
});
// Handle the result
@@ -1630,11 +1594,11 @@ actions:
}
run();
- - target: $["paths"]["/v1/oauth2/register/{client_id}"]["delete"]
+ - target: $["paths"]["/v1/oauth2/register/{client_id}"]["put"]
update:
x-codeSamples:
- lang: typescript
- label: delete_client
+ label: update_client
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -1643,8 +1607,15 @@ actions:
});
async function run() {
- const result = await polar.oauth2.clients.delete({
+ const result = await polar.oauth2.clients.update({
clientId: "",
+ oAuth2ClientConfigurationUpdate: {
+ redirectUris: [
+ "https://alarming-nondisclosure.com",
+ ],
+ clientName: "",
+ clientId: "",
+ },
});
// Handle the result
@@ -1652,11 +1623,11 @@ actions:
}
run();
- - target: $["paths"]["/v1/users/advertisements/{id}"]["patch"]
+ - target: $["paths"]["/v1/benefits/"]["post"]
update:
x-codeSamples:
- lang: typescript
- label: update
+ label: create
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -1665,9 +1636,12 @@ actions:
});
async function run() {
- const result = await polar.users.advertisements.update({
- id: "",
- userAdvertisementCampaignUpdate: {},
+ const result = await polar.benefits.create({
+ description: "Multi-tiered motivating standardization",
+ properties: {
+ guildToken: "",
+ roleId: "",
+ },
});
// Handle the result
@@ -1675,21 +1649,24 @@ actions:
}
run();
- - target: $["paths"]["/v1/users/advertisements/{id}"]["delete"]
+ - target: $["paths"]["/v1/metrics/"]["get"]
update:
x-codeSamples:
- lang: typescript
- label: delete
+ label: get
source: |-
import { Polar } from "@polar-sh/sdk";
+ import { RFCDate } from "@polar-sh/sdk/types";
const polar = new Polar({
accessToken: process.env["POLAR_ACCESS_TOKEN"] ?? "",
});
async function run() {
- const result = await polar.users.advertisements.delete({
- id: "",
+ const result = await polar.metrics.get({
+ startDate: new RFCDate("2024-02-07"),
+ endDate: new RFCDate("2022-04-09"),
+ interval: "week",
});
// Handle the result
@@ -1697,7 +1674,7 @@ actions:
}
run();
- - target: $["paths"]["/v1/users/downloadables/"]["get"]
+ - target: $["paths"]["/v1/users/orders/"]["get"]
update:
x-codeSamples:
- lang: typescript
@@ -1710,7 +1687,7 @@ actions:
});
async function run() {
- const result = await polar.users.downloadables.list({});
+ const result = await polar.users.orders.list({});
for await (const page of result) {
// Handle the page
@@ -1719,11 +1696,11 @@ actions:
}
run();
- - target: $["paths"]["/v1/articles/"]["get"]
+ - target: $["paths"]["/v1/articles/{id}"]["get"]
update:
x-codeSamples:
- lang: typescript
- label: list
+ label: get
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -1732,20 +1709,20 @@ actions:
});
async function run() {
- const result = await polar.articles.list({});
+ const result = await polar.articles.get({
+ id: "",
+ });
- for await (const page of result) {
- // Handle the page
- console.log(page);
- }
+ // Handle the result
+ console.log(result)
}
run();
- - target: $["paths"]["/v1/oauth2/revoke"]["post"]
+ - target: $["paths"]["/v1/articles/{id}/preview"]["post"]
update:
x-codeSamples:
- lang: typescript
- label: revoke_token
+ label: preview
source: |-
import { Polar } from "@polar-sh/sdk";
@@ -1754,10 +1731,33 @@ actions:
});
async function run() {
- const result = await polar.oauth2.revoke({
- token: "",
- clientId: "",
- clientSecret: "",
+ const result = await polar.articles.preview({
+ id: "",
+ articlePreview: {
+ email: "Eileen56@yahoo.com",
+ },
+ });
+
+ // Handle the result
+ console.log(result)
+ }
+
+ run();
+ - target: $["paths"]["/v1/advertisements/{id}"]["get"]
+ update:
+ x-codeSamples:
+ - lang: typescript
+ label: get
+ source: |-
+ import { Polar } from "@polar-sh/sdk";
+
+ const polar = new Polar({
+ accessToken: process.env["POLAR_ACCESS_TOKEN"] ?? "",
+ });
+
+ async function run() {
+ const result = await polar.advertisements.get({
+ id: "",
});
// Handle the result
diff --git a/docs/models/components/advertisementcampaign.md b/docs/models/components/advertisementcampaign.md
index e30d870e..95846f28 100644
--- a/docs/models/components/advertisementcampaign.md
+++ b/docs/models/components/advertisementcampaign.md
@@ -6,13 +6,13 @@
import { AdvertisementCampaign } from "@polar-sh/sdk/models/components";
let value: AdvertisementCampaign = {
- createdAt: new Date("2024-10-04T19:21:17.718Z"),
- modifiedAt: new Date("2022-04-17T13:52:40.378Z"),
+ createdAt: new Date("2022-01-19T11:47:33.199Z"),
+ modifiedAt: new Date("2024-01-02T08:15:37.555Z"),
id: "",
- imageUrl: "https://insubstantial-worth.name",
- imageUrlDark: "http://respectful-silly.com",
+ imageUrl: "https://instructive-sled.net",
+ imageUrlDark: "https://pricey-fang.com",
text: "",
- linkUrl: "http://electric-sophomore.info",
+ linkUrl: "https://vacant-borrowing.name",
};
```
diff --git a/docs/models/components/advertisementcampaignlistresource.md b/docs/models/components/advertisementcampaignlistresource.md
index 74b591ef..29bc60c8 100644
--- a/docs/models/components/advertisementcampaignlistresource.md
+++ b/docs/models/components/advertisementcampaignlistresource.md
@@ -8,20 +8,20 @@ import { AdvertisementCampaignListResource } from "@polar-sh/sdk/models/componen
let value: AdvertisementCampaignListResource = {
items: [
{
- createdAt: new Date("2023-10-21T00:43:02.324Z"),
- modifiedAt: new Date("2024-12-01T09:39:29.562Z"),
+ createdAt: new Date("2022-11-14T14:15:52.743Z"),
+ modifiedAt: new Date("2024-02-02T00:22:56.064Z"),
id: "",
- imageUrl: "https://talkative-volcano.org",
- imageUrlDark: "http://quarrelsome-professional.info",
+ imageUrl: "https://quick-witted-reactant.org",
+ imageUrlDark: "http://adorable-cruelty.name",
text: "",
- linkUrl: "https://reasonable-lever.name",
+ linkUrl: "http://outlying-watercress.name",
},
],
pagination: {
- totalCount: 333965,
- maxPage: 29100,
+ totalCount: 833819,
+ maxPage: 962771,
},
- dimensions: [790840],
+ dimensions: [914791],
};
```
diff --git a/docs/models/components/advertisementsortproperty.md b/docs/models/components/advertisementsortproperty.md
index 61967a5d..331cdbf6 100644
--- a/docs/models/components/advertisementsortproperty.md
+++ b/docs/models/components/advertisementsortproperty.md
@@ -5,7 +5,7 @@
```typescript
import { AdvertisementSortProperty } from "@polar-sh/sdk/models/components";
-let value: AdvertisementSortProperty = "views";
+let value: AdvertisementSortProperty = "-granted_at";
```
## Values
diff --git a/docs/models/components/article.md b/docs/models/components/article.md
index 26e801d4..aa082857 100644
--- a/docs/models/components/article.md
+++ b/docs/models/components/article.md
@@ -14,37 +14,37 @@ let value: Article = {
name: "",
avatarUrl: "",
},
- visibility: "private",
+ visibility: "public",
userId: "",
organizationId: "",
organization: {
- createdAt: new Date("2023-01-31T19:43:46.202Z"),
- modifiedAt: new Date("2022-04-09T02:03:52.155Z"),
+ createdAt: new Date("2023-11-28T00:32:02.177Z"),
+ modifiedAt: new Date("2024-02-18T12:41:59.739Z"),
id: "",
name: "",
slug: "",
avatarUrl: "",
bio: "",
- company: "Jaskolski - Cremin",
+ company: "Adams and Sons",
blog: "",
location: "",
- email: "Herminia_Heathcote0@gmail.com",
+ email: "Alberto_Lehner@yahoo.com",
twitterUsername: "",
- pledgeMinimumAmount: 279068,
+ pledgeMinimumAmount: 361151,
pledgeBadgeShowAmount: false,
- defaultUpfrontSplitToContributors: 968865,
+ defaultUpfrontSplitToContributors: 89494,
donationsEnabled: false,
profileSettings: {},
featureSettings: {},
},
- publishedAt: new Date("2022-08-18T21:15:45.806Z"),
+ publishedAt: new Date("2023-07-05T23:16:18.690Z"),
paidSubscribersOnly: false,
- paidSubscribersOnlyEndsAt: new Date("2024-01-28T05:16:06.976Z"),
+ paidSubscribersOnlyEndsAt: new Date("2023-03-21T21:54:24.703Z"),
isPreview: false,
isPinned: false,
notifySubscribers: false,
- notificationsSentAt: new Date("2022-05-07T19:27:28.518Z"),
- emailSentToCount: 99416,
+ notificationsSentAt: new Date("2022-06-18T09:01:07.876Z"),
+ emailSentToCount: 24313,
ogImageUrl: "",
ogDescription: "",
};
diff --git a/docs/models/components/articlepreview.md b/docs/models/components/articlepreview.md
index d6f555c7..03e170cd 100644
--- a/docs/models/components/articlepreview.md
+++ b/docs/models/components/articlepreview.md
@@ -6,7 +6,7 @@
import { ArticlePreview } from "@polar-sh/sdk/models/components";
let value: ArticlePreview = {
- email: "Abdul.Farrell@yahoo.com",
+ email: "Mason57@gmail.com",
};
```
diff --git a/docs/models/components/articlereceivers.md b/docs/models/components/articlereceivers.md
index 24467580..b4571bcd 100644
--- a/docs/models/components/articlereceivers.md
+++ b/docs/models/components/articlereceivers.md
@@ -6,9 +6,9 @@
import { ArticleReceivers } from "@polar-sh/sdk/models/components";
let value: ArticleReceivers = {
- freeSubscribers: 671957,
- premiumSubscribers: 724148,
- organizationMembers: 948861,
+ freeSubscribers: 8511,
+ premiumSubscribers: 279068,
+ organizationMembers: 968865,
};
```
diff --git a/docs/models/components/assignee.md b/docs/models/components/assignee.md
index dc08c133..272521c7 100644
--- a/docs/models/components/assignee.md
+++ b/docs/models/components/assignee.md
@@ -6,10 +6,10 @@
import { Assignee } from "@polar-sh/sdk/models/components";
let value: Assignee = {
- id: 181476,
- login: "Grady24",
- htmlUrl: "https://easy-fix.net",
- avatarUrl: "https://snappy-ambassador.info",
+ id: 496548,
+ login: "Mark18",
+ htmlUrl: "http://dapper-dolphin.biz",
+ avatarUrl: "https://easy-fix.net",
};
```
diff --git a/docs/models/components/author.md b/docs/models/components/author.md
index b1a5f145..64f11a88 100644
--- a/docs/models/components/author.md
+++ b/docs/models/components/author.md
@@ -6,10 +6,10 @@
import { Author } from "@polar-sh/sdk/models/components";
let value: Author = {
- id: 633987,
- login: "Carmen.Feeney",
- htmlUrl: "http://stark-try.org",
- avatarUrl: "https://frosty-wood.net",
+ id: 706411,
+ login: "Ofelia_Bailey",
+ htmlUrl: "http://embarrassed-peasant.biz",
+ avatarUrl: "http://stark-try.org",
};
```
diff --git a/docs/models/components/benefit.md b/docs/models/components/benefit.md
index 39ce204e..aba6228a 100644
--- a/docs/models/components/benefit.md
+++ b/docs/models/components/benefit.md
@@ -6,18 +6,24 @@
import { Benefit } from "@polar-sh/sdk/models/components";
let value: Benefit = {
- createdAt: new Date("2022-03-25T19:54:28.931Z"),
- modifiedAt: new Date("2023-01-31T23:47:04.287Z"),
+ createdAt: new Date("2023-10-18T08:07:39.633Z"),
+ modifiedAt: new Date("2023-05-05T05:57:31.258Z"),
id: "",
- description: "Quality-focused uniform customer loyalty",
+ description: "Enterprise-wide transitional leverage",
selectable: false,
deletable: false,
organizationId: "",
properties: {
- repositoryId: "",
- repositoryOwner: "polarsource",
- repositoryName: "private_repo",
- permission: "admin",
+ prefix: "",
+ expires: {
+ ttl: 160230,
+ timeframe: "year",
+ },
+ activations: {
+ limit: 661118,
+ enableUserAdmin: false,
+ },
+ limitUsage: 335631,
},
};
```
diff --git a/docs/models/components/benefitads.md b/docs/models/components/benefitads.md
index 0fb8cef2..eee1f5e4 100644
--- a/docs/models/components/benefitads.md
+++ b/docs/models/components/benefitads.md
@@ -10,10 +10,10 @@ Use it so your backers can display ads on your README, website, etc.
import { BenefitAds } from "@polar-sh/sdk/models/components";
let value: BenefitAds = {
- createdAt: new Date("2024-03-21T21:54:23.935Z"),
- modifiedAt: new Date("2023-04-22T11:56:37.763Z"),
+ createdAt: new Date("2022-02-13T10:02:48.165Z"),
+ modifiedAt: new Date("2023-04-21T20:01:42.100Z"),
id: "",
- description: "Total client-server moratorium",
+ description: "Balanced incremental application",
selectable: false,
deletable: false,
organizationId: "",
diff --git a/docs/models/components/benefitadscreate.md b/docs/models/components/benefitadscreate.md
index 1278717f..c743cb0a 100644
--- a/docs/models/components/benefitadscreate.md
+++ b/docs/models/components/benefitadscreate.md
@@ -6,7 +6,7 @@
import { BenefitAdsCreate } from "@polar-sh/sdk/models/components";
let value: BenefitAdsCreate = {
- description: "Virtual maximized benchmark",
+ description: "Open-architected global framework",
properties: {},
};
```
diff --git a/docs/models/components/benefitcustom.md b/docs/models/components/benefitcustom.md
index f1b7f90b..7f234ae1 100644
--- a/docs/models/components/benefitcustom.md
+++ b/docs/models/components/benefitcustom.md
@@ -10,10 +10,10 @@ Use it to grant any kind of benefit that doesn't fit in the other types.
import { BenefitCustom } from "@polar-sh/sdk/models/components";
let value: BenefitCustom = {
- createdAt: new Date("2024-02-23T20:49:36.498Z"),
- modifiedAt: new Date("2023-08-03T17:14:09.133Z"),
+ createdAt: new Date("2023-06-05T05:39:59.994Z"),
+ modifiedAt: new Date("2024-09-21T21:00:27.794Z"),
id: "",
- description: "Open-source disintermediate firmware",
+ description: "Digitized optimal help-desk",
selectable: false,
deletable: false,
organizationId: "",
diff --git a/docs/models/components/benefitcustomcreate.md b/docs/models/components/benefitcustomcreate.md
index 781fff32..6c09c04f 100644
--- a/docs/models/components/benefitcustomcreate.md
+++ b/docs/models/components/benefitcustomcreate.md
@@ -8,7 +8,7 @@ Schema to create a benefit of type `custom`.
import { BenefitCustomCreate } from "@polar-sh/sdk/models/components";
let value: BenefitCustomCreate = {
- description: "Persistent encompassing hardware",
+ description: "Proactive content-based success",
isTaxApplicable: false,
properties: {
note: "",
diff --git a/docs/models/components/benefitdiscordcreate.md b/docs/models/components/benefitdiscordcreate.md
index fdda15b6..8e49faa2 100644
--- a/docs/models/components/benefitdiscordcreate.md
+++ b/docs/models/components/benefitdiscordcreate.md
@@ -6,7 +6,7 @@
import { BenefitDiscordCreate } from "@polar-sh/sdk/models/components";
let value: BenefitDiscordCreate = {
- description: "Grass-roots asynchronous monitoring",
+ description: "Up-sized high-level matrices",
properties: {
guildToken: "",
roleId: "",
diff --git a/docs/models/components/benefitdiscordinput.md b/docs/models/components/benefitdiscordinput.md
index 470d8088..5ccd8321 100644
--- a/docs/models/components/benefitdiscordinput.md
+++ b/docs/models/components/benefitdiscordinput.md
@@ -10,10 +10,10 @@ Use it to automatically invite your backers to a Discord server.
import { BenefitDiscordInput } from "@polar-sh/sdk/models/components";
let value: BenefitDiscordInput = {
- createdAt: new Date("2023-09-26T00:55:47.150Z"),
- modifiedAt: new Date("2023-10-21T14:57:34.914Z"),
+ createdAt: new Date("2022-11-29T09:47:26.598Z"),
+ modifiedAt: new Date("2023-11-04T14:49:14.630Z"),
id: "",
- description: "Centralized holistic architecture",
+ description: "Grass-roots radical protocol",
selectable: false,
deletable: false,
organizationId: "",
diff --git a/docs/models/components/benefitdiscordoutput.md b/docs/models/components/benefitdiscordoutput.md
index 790481c3..9f4f403d 100644
--- a/docs/models/components/benefitdiscordoutput.md
+++ b/docs/models/components/benefitdiscordoutput.md
@@ -10,10 +10,10 @@ Use it to automatically invite your backers to a Discord server.
import { BenefitDiscordOutput } from "@polar-sh/sdk/models/components";
let value: BenefitDiscordOutput = {
- createdAt: new Date("2024-12-29T18:23:56.699Z"),
- modifiedAt: new Date("2022-01-04T09:31:49.390Z"),
+ createdAt: new Date("2024-09-11T06:37:56.432Z"),
+ modifiedAt: new Date("2022-07-25T13:21:57.906Z"),
id: "",
- description: "Horizontal methodical implementation",
+ description: "Progressive non-volatile internet solution",
selectable: false,
deletable: false,
organizationId: "",
diff --git a/docs/models/components/benefitdownloadables.md b/docs/models/components/benefitdownloadables.md
index 6acb4239..22bbc08f 100644
--- a/docs/models/components/benefitdownloadables.md
+++ b/docs/models/components/benefitdownloadables.md
@@ -6,10 +6,10 @@
import { BenefitDownloadables } from "@polar-sh/sdk/models/components";
let value: BenefitDownloadables = {
- createdAt: new Date("2022-11-18T06:52:13.468Z"),
- modifiedAt: new Date("2024-01-16T15:53:29.217Z"),
+ createdAt: new Date("2023-12-13T09:21:23.434Z"),
+ modifiedAt: new Date("2023-02-19T13:21:40.065Z"),
id: "",
- description: "Diverse actuating system engine",
+ description: "Adaptive zero administration toolset",
selectable: false,
deletable: false,
organizationId: "",
diff --git a/docs/models/components/benefitdownloadablescreate.md b/docs/models/components/benefitdownloadablescreate.md
index d5be7a9b..45b49a38 100644
--- a/docs/models/components/benefitdownloadablescreate.md
+++ b/docs/models/components/benefitdownloadablescreate.md
@@ -6,7 +6,7 @@
import { BenefitDownloadablesCreate } from "@polar-sh/sdk/models/components";
let value: BenefitDownloadablesCreate = {
- description: "Integrated 4th generation workforce",
+ description: "Compatible multi-state focus group",
properties: {
files: [""],
},
diff --git a/docs/models/components/benefitgithubrepository.md b/docs/models/components/benefitgithubrepository.md
index b11a63f7..2c5f5418 100644
--- a/docs/models/components/benefitgithubrepository.md
+++ b/docs/models/components/benefitgithubrepository.md
@@ -10,10 +10,10 @@ Use it to automatically invite your backers to a private GitHub repository.
import { BenefitGitHubRepository } from "@polar-sh/sdk/models/components";
let value: BenefitGitHubRepository = {
- createdAt: new Date("2023-12-13T09:21:23.434Z"),
- modifiedAt: new Date("2023-02-19T13:21:40.065Z"),
+ createdAt: new Date("2023-07-28T05:09:36.614Z"),
+ modifiedAt: new Date("2022-11-30T16:09:25.930Z"),
id: "",
- description: "Adaptive zero administration toolset",
+ description: "Function-based zero tolerance ability",
selectable: false,
deletable: false,
organizationId: "",
@@ -21,7 +21,7 @@ let value: BenefitGitHubRepository = {
repositoryId: "",
repositoryOwner: "polarsource",
repositoryName: "private_repo",
- permission: "pull",
+ permission: "triage",
},
};
```
diff --git a/docs/models/components/benefitgithubrepositorycreate.md b/docs/models/components/benefitgithubrepositorycreate.md
index 550461ab..7ec84e8e 100644
--- a/docs/models/components/benefitgithubrepositorycreate.md
+++ b/docs/models/components/benefitgithubrepositorycreate.md
@@ -6,11 +6,11 @@
import { BenefitGitHubRepositoryCreate } from "@polar-sh/sdk/models/components";
let value: BenefitGitHubRepositoryCreate = {
- description: "Future-proofed multimedia matrices",
+ description: "Fundamental global toolset",
properties: {
repositoryOwner: "polarsource",
repositoryName: "private_repo",
- permission: "admin",
+ permission: "push",
},
};
```
diff --git a/docs/models/components/benefitgithubrepositorycreateproperties.md b/docs/models/components/benefitgithubrepositorycreateproperties.md
index d54fee93..758a4563 100644
--- a/docs/models/components/benefitgithubrepositorycreateproperties.md
+++ b/docs/models/components/benefitgithubrepositorycreateproperties.md
@@ -10,7 +10,7 @@ import { BenefitGitHubRepositoryCreateProperties } from "@polar-sh/sdk/models/co
let value: BenefitGitHubRepositoryCreateProperties = {
repositoryOwner: "polarsource",
repositoryName: "private_repo",
- permission: "push",
+ permission: "triage",
};
```
diff --git a/docs/models/components/benefitgithubrepositorycreatepropertiespermission.md b/docs/models/components/benefitgithubrepositorycreatepropertiespermission.md
index 937b0aa3..5e1ecf62 100644
--- a/docs/models/components/benefitgithubrepositorycreatepropertiespermission.md
+++ b/docs/models/components/benefitgithubrepositorycreatepropertiespermission.md
@@ -7,7 +7,7 @@ The permission level to grant. Read more about roles and their permissions on [G
```typescript
import { BenefitGitHubRepositoryCreatePropertiesPermission } from "@polar-sh/sdk/models/components";
-let value: BenefitGitHubRepositoryCreatePropertiesPermission = "maintain";
+let value: BenefitGitHubRepositoryCreatePropertiesPermission = "pull";
```
## Values
diff --git a/docs/models/components/benefitgithubrepositoryproperties.md b/docs/models/components/benefitgithubrepositoryproperties.md
index b4782e89..55967ae2 100644
--- a/docs/models/components/benefitgithubrepositoryproperties.md
+++ b/docs/models/components/benefitgithubrepositoryproperties.md
@@ -11,7 +11,7 @@ let value: BenefitGitHubRepositoryProperties = {
repositoryId: "",
repositoryOwner: "polarsource",
repositoryName: "private_repo",
- permission: "triage",
+ permission: "push",
};
```
diff --git a/docs/models/components/benefitlicensekeyscreate.md b/docs/models/components/benefitlicensekeyscreate.md
index d557ed19..394dc6a7 100644
--- a/docs/models/components/benefitlicensekeyscreate.md
+++ b/docs/models/components/benefitlicensekeyscreate.md
@@ -6,7 +6,7 @@
import { BenefitLicenseKeysCreate } from "@polar-sh/sdk/models/components";
let value: BenefitLicenseKeysCreate = {
- description: "Visionary even-keeled hierarchy",
+ description: "Profound maximized secured line",
properties: {},
};
```
diff --git a/docs/models/components/benefitlicensekeysinput.md b/docs/models/components/benefitlicensekeysinput.md
index 130ddfa8..19a30cda 100644
--- a/docs/models/components/benefitlicensekeysinput.md
+++ b/docs/models/components/benefitlicensekeysinput.md
@@ -6,24 +6,24 @@
import { BenefitLicenseKeysInput } from "@polar-sh/sdk/models/components";
let value: BenefitLicenseKeysInput = {
- createdAt: new Date("2024-03-05T22:43:05.406Z"),
- modifiedAt: new Date("2023-02-11T22:19:54.833Z"),
+ createdAt: new Date("2023-02-19T17:31:20.127Z"),
+ modifiedAt: new Date("2023-09-26T00:55:47.150Z"),
id: "",
- description: "Compatible real-time attitude",
+ description: "Phased analyzing implementation",
selectable: false,
deletable: false,
organizationId: "",
properties: {
prefix: "",
expires: {
- ttl: 688684,
+ ttl: 78246,
timeframe: "day",
},
activations: {
- limit: 707983,
+ limit: 371287,
enableUserAdmin: false,
},
- limitUsage: 105372,
+ limitUsage: 97659,
},
};
```
diff --git a/docs/models/components/benefitlicensekeysoutput.md b/docs/models/components/benefitlicensekeysoutput.md
index 0b040e62..dff5db4e 100644
--- a/docs/models/components/benefitlicensekeysoutput.md
+++ b/docs/models/components/benefitlicensekeysoutput.md
@@ -6,24 +6,24 @@
import { BenefitLicenseKeysOutput } from "@polar-sh/sdk/models/components";
let value: BenefitLicenseKeysOutput = {
- createdAt: new Date("2023-10-28T13:05:15.433Z"),
- modifiedAt: new Date("2022-12-05T22:32:45.162Z"),
+ createdAt: new Date("2022-07-11T10:12:51.159Z"),
+ modifiedAt: new Date("2023-12-29T14:19:58.836Z"),
id: "",
- description: "Multi-layered foreground emulation",
+ description: "Function-based discrete neural-net",
selectable: false,
deletable: false,
organizationId: "",
properties: {
prefix: "",
expires: {
- ttl: 633062,
+ ttl: 200364,
timeframe: "year",
},
activations: {
- limit: 890653,
+ limit: 925703,
enableUserAdmin: false,
},
- limitUsage: 514513,
+ limitUsage: 607249,
},
};
```
diff --git a/docs/models/components/benefitlicensekeysproperties.md b/docs/models/components/benefitlicensekeysproperties.md
index 2b67ace3..54717bc9 100644
--- a/docs/models/components/benefitlicensekeysproperties.md
+++ b/docs/models/components/benefitlicensekeysproperties.md
@@ -8,14 +8,14 @@ import { BenefitLicenseKeysProperties } from "@polar-sh/sdk/models/components";
let value: BenefitLicenseKeysProperties = {
prefix: "",
expires: {
- ttl: 432606,
+ ttl: 309251,
timeframe: "month",
},
activations: {
- limit: 928219,
+ limit: 403218,
enableUserAdmin: false,
},
- limitUsage: 456520,
+ limitUsage: 284000,
};
```
diff --git a/docs/models/components/bodysubscriptionsimport.md b/docs/models/components/bodysubscriptionsimport.md
index 2e9e406f..0b3097bf 100644
--- a/docs/models/components/bodysubscriptionsimport.md
+++ b/docs/models/components/bodysubscriptionsimport.md
@@ -4,12 +4,8 @@
```typescript
import { BodySubscriptionsImport } from "@polar-sh/sdk/models/components";
-import { openAsBlob } from "node:fs";
-let value: BodySubscriptionsImport = {
- file: await openAsBlob("./sample-file"),
- organizationId: "",
-};
+// No examples available for this model
```
## Fields
diff --git a/docs/models/components/checkout.md b/docs/models/components/checkout.md
index 576e8085..d4cd7e30 100644
--- a/docs/models/components/checkout.md
+++ b/docs/models/components/checkout.md
@@ -12,33 +12,34 @@ let value: Checkout = {
customerEmail: "",
customerName: "",
product: {
- createdAt: new Date("2022-11-05T03:26:51.552Z"),
- modifiedAt: new Date("2022-12-18T20:42:53.320Z"),
+ createdAt: new Date("2022-12-22T04:40:16.326Z"),
+ modifiedAt: new Date("2023-08-12T11:13:21.497Z"),
id: "",
name: "",
- description: "Realigned 4th generation knowledge base",
+ description: "Fully-configurable background service-desk",
isRecurring: false,
isArchived: false,
organizationId: "",
- type: "business",
+ type: "individual",
isHighlighted: false,
prices: [
{
- createdAt: new Date("2022-05-01T07:46:13.650Z"),
- modifiedAt: new Date("2023-08-05T19:44:41.161Z"),
+ createdAt: new Date("2023-03-21T06:56:48.424Z"),
+ modifiedAt: new Date("2022-11-05T03:26:51.552Z"),
id: "",
- priceAmount: 606308,
+ priceAmount: 321043,
priceCurrency: "",
isArchived: false,
+ recurringInterval: "year",
},
],
benefits: [
{
- createdAt: new Date("2024-02-10T17:25:58.582Z"),
- modifiedAt: new Date("2023-12-31T13:59:13.213Z"),
+ createdAt: new Date("2023-09-08T11:43:43.721Z"),
+ modifiedAt: new Date("2024-03-19T00:44:08.177Z"),
id: "",
- type: "github_repository",
- description: "Ameliorated web-enabled success",
+ type: "ads",
+ description: "Configurable intangible methodology",
selectable: false,
deletable: false,
organizationId: "",
@@ -49,27 +50,27 @@ let value: Checkout = {
id: "",
organizationId: "",
name: "",
- path: "/etc/defaults",
+ path: "/etc",
mimeType: "",
- size: 682119,
+ size: 703218,
storageVersion: "",
checksumEtag: "",
checksumSha256Base64: "",
checksumSha256Hex: "",
- lastModifiedAt: new Date("2024-08-08T09:57:53.622Z"),
+ lastModifiedAt: new Date("2023-12-31T13:59:13.213Z"),
version: "",
isUploaded: false,
- createdAt: new Date("2024-09-03T21:07:57.724Z"),
+ createdAt: new Date("2023-11-27T17:25:10.266Z"),
sizeReadable: "",
publicUrl: "",
},
],
},
productPrice: {
- createdAt: new Date("2022-01-02T07:45:50.322Z"),
- modifiedAt: new Date("2023-08-10T06:27:10.605Z"),
+ createdAt: new Date("2024-11-17T05:16:39.880Z"),
+ modifiedAt: new Date("2024-09-01T15:48:48.906Z"),
id: "",
- priceAmount: 937219,
+ priceAmount: 103298,
priceCurrency: "",
isArchived: false,
},
diff --git a/docs/models/components/checkoutcreate.md b/docs/models/components/checkoutcreate.md
index fc7b68fe..bd512942 100644
--- a/docs/models/components/checkoutcreate.md
+++ b/docs/models/components/checkoutcreate.md
@@ -7,7 +7,7 @@ import { CheckoutCreate } from "@polar-sh/sdk/models/components";
let value: CheckoutCreate = {
productPriceId: "",
- successUrl: "http://well-made-loop.net",
+ successUrl: "https://trained-technologist.com",
};
```
diff --git a/docs/models/components/currencyamount.md b/docs/models/components/currencyamount.md
index e77e9618..3b9e88e4 100644
--- a/docs/models/components/currencyamount.md
+++ b/docs/models/components/currencyamount.md
@@ -6,8 +6,8 @@
import { CurrencyAmount } from "@polar-sh/sdk/models/components";
let value: CurrencyAmount = {
- currency: "Yen",
- amount: 791762,
+ currency: "Egyptian Pound",
+ amount: 728559,
};
```
diff --git a/docs/models/components/donationinput.md b/docs/models/components/donationinput.md
index a84c23fa..dad57858 100644
--- a/docs/models/components/donationinput.md
+++ b/docs/models/components/donationinput.md
@@ -6,46 +6,46 @@
import { DonationInput } from "@polar-sh/sdk/models/components";
let value: DonationInput = {
- createdAt: new Date("2024-05-19T17:59:45.911Z"),
- modifiedAt: new Date("2022-06-19T05:03:50.784Z"),
+ createdAt: new Date("2023-07-05T07:23:07.004Z"),
+ modifiedAt: new Date("2022-10-13T23:00:15.092Z"),
id: "",
- amount: 300651,
- currency: "Won",
+ amount: 786189,
+ currency: "Costa Rican Colon",
message: "",
donor: {
id: "",
publicName: "",
avatarUrl: "",
},
- email: "Katharina.Farrell@yahoo.com",
+ email: "Pedro44@yahoo.com",
issue: {
- id: "a40e1942-f32e-4550-9575-6f5d56d0bd0a",
- number: 958146,
+ id: "c88373a4-0e19-442f-b2e5-5055756f5d56",
+ number: 866459,
title: "",
state: "open",
- issueCreatedAt: new Date("2024-06-21T15:14:10.777Z"),
+ issueCreatedAt: new Date("2024-02-01T10:07:41.097Z"),
needsConfirmationSolved: false,
funding: {},
repository: {
- id: "fe13db4f-62cb-4a3f-8941-aebc0b80a692",
+ id: "d0af2dfe-13db-44f6-acba-3f8941aebc0b",
isPrivate: false,
name: "MyOrg",
- description: "Extended solution-oriented conglomeration",
+ description: "Optimized 6th generation model",
stars: 1337,
license: "",
homepage: "",
profileSettings: {},
organization: {
- id: "b2ecfcc8-f895-4010-b5dd-3d6fa1804e54",
+ id: "6924d3b2-ecfc-4c8f-8950-10f5dd3d6fa1",
name: "",
avatarUrl: "",
isPersonal: false,
bio: "",
prettyName: "",
- company: "Lynch, Crooks and Wunsch",
+ company: "Bayer - Friesen",
blog: "",
location: "",
- email: "Gregorio.Langworth@gmail.com",
+ email: "Enrico_Haag16@hotmail.com",
twitterUsername: "",
organizationId: "",
},
diff --git a/docs/models/components/donor.md b/docs/models/components/donor.md
index 6515990b..5ca6db0f 100644
--- a/docs/models/components/donor.md
+++ b/docs/models/components/donor.md
@@ -7,8 +7,9 @@ import { Donor } from "@polar-sh/sdk/models/components";
let value: Donor = {
id: "",
- publicName: "",
+ name: "",
avatarUrl: "",
+ isPersonal: false,
};
```
diff --git a/docs/models/components/downloadablefilecreate.md b/docs/models/components/downloadablefilecreate.md
index 3f0f027d..48cceccf 100644
--- a/docs/models/components/downloadablefilecreate.md
+++ b/docs/models/components/downloadablefilecreate.md
@@ -10,13 +10,13 @@ import { DownloadableFileCreate } from "@polar-sh/sdk/models/components";
let value: DownloadableFileCreate = {
name: "",
mimeType: "",
- size: 751022,
+ size: 426943,
upload: {
parts: [
{
- number: 388319,
- chunkStart: 927212,
- chunkEnd: 160393,
+ number: 528234,
+ chunkStart: 301692,
+ chunkEnd: 349440,
},
],
},
diff --git a/docs/models/components/downloadablefileread.md b/docs/models/components/downloadablefileread.md
index 75b6308a..db82a5b4 100644
--- a/docs/models/components/downloadablefileread.md
+++ b/docs/models/components/downloadablefileread.md
@@ -11,17 +11,17 @@ let value: DownloadableFileRead = {
id: "",
organizationId: "",
name: "",
- path: "/home/user/dir",
+ path: "/usr/ports",
mimeType: "",
- size: 307376,
+ size: 518150,
storageVersion: "",
checksumEtag: "",
checksumSha256Base64: "",
checksumSha256Hex: "",
- lastModifiedAt: new Date("2022-03-30T06:18:49.679Z"),
+ lastModifiedAt: new Date("2024-04-24T15:49:18.836Z"),
version: "",
isUploaded: false,
- createdAt: new Date("2023-08-12T20:35:15.275Z"),
+ createdAt: new Date("2024-07-12T16:24:09.257Z"),
sizeReadable: "",
};
```
diff --git a/docs/models/components/fileread.md b/docs/models/components/fileread.md
index 6eb1e386..63853bc8 100644
--- a/docs/models/components/fileread.md
+++ b/docs/models/components/fileread.md
@@ -9,19 +9,18 @@ let value: FileRead = {
id: "