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: "", organizationId: "", name: "", - path: "/var/yp", + path: "/root", mimeType: "", - size: 190567, + size: 937219, storageVersion: "", checksumEtag: "", checksumSha256Base64: "", checksumSha256Hex: "", - lastModifiedAt: new Date("2023-01-25T07:50:37.582Z"), + lastModifiedAt: new Date("2023-03-20T01:13:26.553Z"), version: "", isUploaded: false, - createdAt: new Date("2022-01-21T23:00:31.318Z"), + createdAt: new Date("2024-11-16T07:19:00.301Z"), sizeReadable: "", - publicUrl: "", }; ``` diff --git a/docs/models/components/filet.md b/docs/models/components/filet.md index ec4b2fe4..343570a8 100644 --- a/docs/models/components/filet.md +++ b/docs/models/components/filet.md @@ -5,15 +5,12 @@ ```typescript import { FileT } from "@polar-sh/sdk/models/components"; -let value: FileT = { - fileName: "your_file_here", - content: new TextEncoder().encode("0xbA8ebdEfD4"), -}; +// No examples available for this model ``` ## Fields -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `fileName` | *string* | :heavy_check_mark: | N/A | -| `content` | *Uint8Array* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------- | ---------------------------- | ---------------------------- | ---------------------------- | +| `fileName` | *string* | :heavy_check_mark: | N/A | +| `content` | *ReadableStream* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/components/fileupload.md b/docs/models/components/fileupload.md index d113ac04..4b45b161 100644 --- a/docs/models/components/fileupload.md +++ b/docs/models/components/fileupload.md @@ -9,24 +9,24 @@ let value: FileUpload = { id: "", organizationId: "", name: "", - path: "/etc/defaults", + path: "/mnt", mimeType: "", - size: 24944, + size: 80532, storageVersion: "", checksumEtag: "", checksumSha256Base64: "", checksumSha256Hex: "", - lastModifiedAt: new Date("2022-10-18T11:36:15.419Z"), + lastModifiedAt: new Date("2023-08-12T20:35:15.275Z"), upload: { id: "", - path: "/etc/namedb", + path: "/etc", parts: [ { - number: 66149, - chunkStart: 513760, - chunkEnd: 65604, - url: "http://thrifty-frontier.com", - expiresAt: new Date("2022-03-02T09:32:30.763Z"), + number: 274575, + chunkStart: 221396, + chunkEnd: 8689, + url: "http://alert-directory.com", + expiresAt: new Date("2022-03-14T11:59:43.461Z"), }, ], }, diff --git a/docs/models/components/fileuploadcompleted.md b/docs/models/components/fileuploadcompleted.md index 3c6f9d73..e016d84e 100644 --- a/docs/models/components/fileuploadcompleted.md +++ b/docs/models/components/fileuploadcompleted.md @@ -7,10 +7,10 @@ import { FileUploadCompleted } from "@polar-sh/sdk/models/components"; let value: FileUploadCompleted = { id: "", - path: "/opt", + path: "/usr", parts: [ { - number: 455898, + number: 690785, checksumEtag: "", checksumSha256Base64: "", }, diff --git a/docs/models/components/introspecttokenresponse.md b/docs/models/components/introspecttokenresponse.md index a86752e9..8b3c77a6 100644 --- a/docs/models/components/introspecttokenresponse.md +++ b/docs/models/components/introspecttokenresponse.md @@ -14,8 +14,8 @@ let value: IntrospectTokenResponse = { sub: "", aud: "", iss: "", - exp: 980581, - iat: 544647, + exp: 826825, + iat: 410301, }; ``` diff --git a/docs/models/components/issueinput.md b/docs/models/components/issueinput.md index d0b2c356..831949b2 100644 --- a/docs/models/components/issueinput.md +++ b/docs/models/components/issueinput.md @@ -6,33 +6,33 @@ import { IssueInput } from "@polar-sh/sdk/models/components"; let value: IssueInput = { - id: "575f1400-e764-4ad7-b34e-c1b781b36a08", - number: 11355, + id: "3a7d575f-1400-4e76-8ad7-334ec1b781b3", + number: 418637, title: "", state: "closed", - issueCreatedAt: new Date("2023-07-15T07:10:40.515Z"), + issueCreatedAt: new Date("2022-01-06T19:40:31.996Z"), needsConfirmationSolved: false, funding: {}, repository: { - id: "d100efad-a200-4ef0-822e-b2164cf9ab83", + id: "8088d100-efad-4a20-8ef0-422eb2164cf9", isPrivate: false, name: "MyOrg", - description: "Integrated fresh-thinking product", + description: "Proactive object-oriented interface", stars: 1337, license: "", homepage: "", profileSettings: {}, organization: { - id: "723ffda9-e06b-4ee4-825c-1fc0e115c80b", + id: "366c723f-fda9-4e06-bee4-825c1fc0e115", name: "", avatarUrl: "", isPersonal: false, bio: "", prettyName: "", - company: "Wilkinson, Morar and Carroll", + company: "Leffler, Auer and Purdy", blog: "", location: "", - email: "Flavio92@yahoo.com", + email: "Vergie55@hotmail.com", twitterUsername: "", organizationId: "", }, diff --git a/docs/models/components/label.md b/docs/models/components/label.md index 1bcf3789..00dcf5d2 100644 --- a/docs/models/components/label.md +++ b/docs/models/components/label.md @@ -7,7 +7,7 @@ import { Label } from "@polar-sh/sdk/models/components"; let value: Label = { name: "", - color: "cyan", + color: "indigo", }; ``` diff --git a/docs/models/components/listresourcearticle.md b/docs/models/components/listresourcearticle.md index 499f3fb7..f6369b84 100644 --- a/docs/models/components/listresourcearticle.md +++ b/docs/models/components/listresourcearticle.md @@ -16,44 +16,44 @@ let value: ListResourceArticle = { name: "", avatarUrl: "", }, - visibility: "private", + visibility: "hidden", userId: "", organizationId: "", organization: { - createdAt: new Date("2023-01-10T12:01:37.848Z"), - modifiedAt: new Date("2023-12-02T08:58:34.766Z"), + createdAt: new Date("2024-03-22T03:31:31.298Z"), + modifiedAt: new Date("2023-02-28T23:06:04.973Z"), id: "", name: "", slug: "", avatarUrl: "", bio: "", - company: "Lowe, Thiel and Goldner", + company: "Lehner, Mueller and Welch", blog: "", location: "", - email: "Caleigh.Grady63@yahoo.com", + email: "Sister.Doyle63@hotmail.com", twitterUsername: "", - pledgeMinimumAmount: 710337, + pledgeMinimumAmount: 676243, pledgeBadgeShowAmount: false, - defaultUpfrontSplitToContributors: 299643, + defaultUpfrontSplitToContributors: 548361, donationsEnabled: false, profileSettings: {}, featureSettings: {}, }, - publishedAt: new Date("2022-01-09T15:23:00.369Z"), + publishedAt: new Date("2024-08-21T15:23:28.417Z"), paidSubscribersOnly: false, - paidSubscribersOnlyEndsAt: new Date("2023-05-20T09:37:09.099Z"), + paidSubscribersOnlyEndsAt: new Date("2022-10-26T20:39:23.963Z"), isPreview: false, isPinned: false, notifySubscribers: false, - notificationsSentAt: new Date("2023-02-13T10:57:01.355Z"), - emailSentToCount: 24527, + notificationsSentAt: new Date("2023-08-19T20:54:27.128Z"), + emailSentToCount: 148268, ogImageUrl: "", ogDescription: "", }, ], pagination: { - totalCount: 530537, - maxPage: 558065, + totalCount: 282699, + maxPage: 856303, }, }; ``` diff --git a/docs/models/components/listresourcebenefit.md b/docs/models/components/listresourcebenefit.md index 7dae8102..403e7715 100644 --- a/docs/models/components/listresourcebenefit.md +++ b/docs/models/components/listresourcebenefit.md @@ -8,21 +8,23 @@ import { ListResourceBenefit } from "@polar-sh/sdk/models/components"; let value: ListResourceBenefit = { items: [ { - createdAt: new Date("2023-04-21T20:01:42.100Z"), - modifiedAt: new Date("2022-03-07T16:46:29.387Z"), + createdAt: new Date("2023-11-17T13:53:16.489Z"), + modifiedAt: new Date("2022-03-25T19:54:28.931Z"), id: "", - description: "Open-architected actuating info-mediaries", + description: "Horizontal neutral support", selectable: false, deletable: false, organizationId: "", properties: { - paidArticles: false, + guildId: "", + roleId: "", + guildToken: "", }, }, ], pagination: { - totalCount: 907733, - maxPage: 184362, + totalCount: 247399, + maxPage: 878493, }, }; ``` diff --git a/docs/models/components/listresourcebenefitgrant.md b/docs/models/components/listresourcebenefitgrant.md index 9bf690e5..1a781556 100644 --- a/docs/models/components/listresourcebenefitgrant.md +++ b/docs/models/components/listresourcebenefitgrant.md @@ -8,8 +8,8 @@ import { ListResourceBenefitGrant } from "@polar-sh/sdk/models/components"; let value: ListResourceBenefitGrant = { items: [ { - createdAt: new Date("2024-10-24T15:33:24.787Z"), - modifiedAt: new Date("2023-11-30T18:58:30.874Z"), + createdAt: new Date("2023-03-18T10:22:36.389Z"), + modifiedAt: new Date("2023-03-12T09:26:29.954Z"), id: "", isGranted: false, isRevoked: false, @@ -21,8 +21,8 @@ let value: ListResourceBenefitGrant = { }, ], pagination: { - totalCount: 672041, - maxPage: 813054, + totalCount: 37565, + maxPage: 999278, }, }; ``` diff --git a/docs/models/components/listresourcefileread.md b/docs/models/components/listresourcefileread.md index e7942a3c..dbdca1a5 100644 --- a/docs/models/components/listresourcefileread.md +++ b/docs/models/components/listresourcefileread.md @@ -11,24 +11,24 @@ let value: ListResourceFileRead = { id: "", organizationId: "", name: "", - path: "/rescue", + path: "/usr/local/bin", mimeType: "", - size: 770675, + size: 365100, storageVersion: "", checksumEtag: "", checksumSha256Base64: "", checksumSha256Hex: "", - lastModifiedAt: new Date("2024-07-12T16:24:09.257Z"), + lastModifiedAt: new Date("2024-12-23T07:30:37.674Z"), version: "", isUploaded: false, - createdAt: new Date("2024-02-29T16:45:21.184Z"), + createdAt: new Date("2022-07-28T20:40:19.948Z"), sizeReadable: "", publicUrl: "", }, ], pagination: { - totalCount: 373216, - maxPage: 633415, + totalCount: 355225, + maxPage: 19122, }, }; ``` diff --git a/docs/models/components/listresourceoauth2client.md b/docs/models/components/listresourceoauth2client.md index 46eb1d24..902ce22b 100644 --- a/docs/models/components/listresourceoauth2client.md +++ b/docs/models/components/listresourceoauth2client.md @@ -8,19 +8,19 @@ import { ListResourceOAuth2Client } from "@polar-sh/sdk/models/components"; let value: ListResourceOAuth2Client = { items: [ { - redirectUris: ["http://vapid-porthole.net"], + redirectUris: ["http://idiotic-wholesaler.name"], clientName: "", - createdAt: new Date("2022-11-11T16:23:05.729Z"), - modifiedAt: new Date("2024-11-27T05:48:21.062Z"), + createdAt: new Date("2024-08-13T11:27:07.282Z"), + modifiedAt: new Date("2023-11-13T09:00:35.761Z"), clientId: "", clientSecret: "", - clientIdIssuedAt: 42976, - clientSecretExpiresAt: 919783, + clientIdIssuedAt: 502721, + clientSecretExpiresAt: 379356, }, ], pagination: { - totalCount: 116098, - maxPage: 36033, + totalCount: 922348, + maxPage: 542129, }, }; ``` diff --git a/docs/models/components/listresourceorder.md b/docs/models/components/listresourceorder.md index 9b183eb9..faf0d740 100644 --- a/docs/models/components/listresourceorder.md +++ b/docs/models/components/listresourceorder.md @@ -8,54 +8,54 @@ import { ListResourceOrder } from "@polar-sh/sdk/models/components"; let value: ListResourceOrder = { items: [ { - createdAt: new Date("2024-10-28T02:19:14.729Z"), - modifiedAt: new Date("2024-07-18T13:44:51.693Z"), + createdAt: new Date("2024-11-16T18:43:16.578Z"), + modifiedAt: new Date("2023-04-20T20:57:49.890Z"), id: "", - amount: 52508, - taxAmount: 935833, - currency: "Norwegian Krone", + amount: 117320, + taxAmount: 325118, + currency: "Boliviano boliviano", userId: "", productId: "", productPriceId: "", subscriptionId: "", user: { id: "", - email: "Sim.Jacobs21@hotmail.com", + email: "Lambert_Weber84@yahoo.com", publicName: "", githubUsername: "", avatarUrl: "", }, product: { - createdAt: new Date("2022-06-11T23:57:33.459Z"), - modifiedAt: new Date("2024-04-18T10:24:49.909Z"), + createdAt: new Date("2022-02-27T13:10:28.905Z"), + modifiedAt: new Date("2024-10-22T16:07:37.247Z"), id: "", name: "", - description: "Public-key coherent monitoring", + description: "Persistent zero defect success", isRecurring: false, isArchived: false, organizationId: "", - type: "business", + type: "individual", isHighlighted: false, }, productPrice: { - createdAt: new Date("2022-01-10T18:55:40.734Z"), - modifiedAt: new Date("2022-04-17T14:16:27.861Z"), + createdAt: new Date("2023-02-21T20:20:12.317Z"), + modifiedAt: new Date("2022-08-20T20:11:16.082Z"), id: "", - priceAmount: 90233, + priceAmount: 147808, priceCurrency: "", isArchived: false, - recurringInterval: "month", + recurringInterval: "year", }, subscription: { - createdAt: new Date("2023-11-10T14:59:03.400Z"), - modifiedAt: new Date("2023-09-29T20:46:44.522Z"), + createdAt: new Date("2024-01-21T16:30:55.798Z"), + modifiedAt: new Date("2022-07-27T05:06:14.785Z"), id: "", - status: "trialing", - currentPeriodStart: new Date("2022-09-22T17:54:58.970Z"), - currentPeriodEnd: new Date("2022-04-16T19:59:24.257Z"), + status: "past_due", + currentPeriodStart: new Date("2024-09-12T00:58:19.414Z"), + currentPeriodEnd: new Date("2024-08-02T19:41:40.359Z"), cancelAtPeriodEnd: false, - startedAt: new Date("2022-07-05T06:02:39.098Z"), - endedAt: new Date("2024-12-15T11:41:08.386Z"), + startedAt: new Date("2022-01-10T18:55:40.734Z"), + endedAt: new Date("2022-04-17T14:16:27.861Z"), userId: "", productId: "", priceId: "", @@ -63,8 +63,8 @@ let value: ListResourceOrder = { }, ], pagination: { - totalCount: 859581, - maxPage: 896582, + totalCount: 90233, + maxPage: 497777, }, }; ``` diff --git a/docs/models/components/listresourceproduct.md b/docs/models/components/listresourceproduct.md index d17849a4..0faf1115 100644 --- a/docs/models/components/listresourceproduct.md +++ b/docs/models/components/listresourceproduct.md @@ -8,36 +8,39 @@ import { ListResourceProduct } from "@polar-sh/sdk/models/components"; let value: ListResourceProduct = { items: [ { - createdAt: new Date("2022-10-20T07:11:40.624Z"), - modifiedAt: new Date("2024-12-05T22:38:23.244Z"), + createdAt: new Date("2024-12-15T03:45:01.172Z"), + modifiedAt: new Date("2023-01-21T16:11:36.352Z"), id: "", name: "", - description: "Organic tangible time-frame", + description: "Monitored non-volatile task-force", isRecurring: false, isArchived: false, organizationId: "", - type: "business", + type: "individual", isHighlighted: false, prices: [ { - createdAt: new Date("2024-02-05T06:43:41.039Z"), - modifiedAt: new Date("2022-10-26T08:43:16.322Z"), + createdAt: new Date("2024-06-10T02:34:07.582Z"), + modifiedAt: new Date("2022-10-20T07:11:40.624Z"), id: "", - priceAmount: 335498, + priceAmount: 976226, priceCurrency: "", isArchived: false, + recurringInterval: "year", }, ], benefits: [ { - createdAt: new Date("2022-06-11T20:43:17.206Z"), - modifiedAt: new Date("2024-04-18T17:40:39.234Z"), + createdAt: new Date("2024-11-14T19:09:53.487Z"), + modifiedAt: new Date("2024-04-17T23:02:17.676Z"), id: "", - type: "custom", - description: "Ameliorated content-based budgetary management", + description: "Cross-group neutral definition", selectable: false, deletable: false, organizationId: "", + properties: { + paidArticles: false, + }, }, ], medias: [ @@ -45,17 +48,17 @@ let value: ListResourceProduct = { id: "", organizationId: "", name: "", - path: "/opt/sbin", + path: "/Network", mimeType: "", - size: 260628, + size: 82057, storageVersion: "", checksumEtag: "", checksumSha256Base64: "", checksumSha256Hex: "", - lastModifiedAt: new Date("2023-07-27T02:35:23.562Z"), + lastModifiedAt: new Date("2022-06-11T20:43:17.206Z"), version: "", isUploaded: false, - createdAt: new Date("2024-08-12T16:57:21.311Z"), + createdAt: new Date("2024-04-18T17:40:39.234Z"), sizeReadable: "", publicUrl: "", }, @@ -63,8 +66,8 @@ let value: ListResourceProduct = { }, ], pagination: { - totalCount: 773084, - maxPage: 179410, + totalCount: 62636, + maxPage: 21688, }, }; ``` diff --git a/docs/models/components/metric.md b/docs/models/components/metric.md index 8c4ea67a..57c8ae99 100644 --- a/docs/models/components/metric.md +++ b/docs/models/components/metric.md @@ -9,8 +9,8 @@ import { Metric } from "@polar-sh/sdk/models/components"; let value: Metric = { slug: "", - displayName: "Giuseppe67", - type: "scalar", + displayName: "Ed.Metz77", + type: "currency", }; ``` diff --git a/docs/models/components/metricperiod.md b/docs/models/components/metricperiod.md index 32d6299c..57f1c288 100644 --- a/docs/models/components/metricperiod.md +++ b/docs/models/components/metricperiod.md @@ -6,18 +6,18 @@ import { MetricPeriod } from "@polar-sh/sdk/models/components"; let value: MetricPeriod = { - timestamp: new Date("2023-06-14T19:11:01.269Z"), - orders: 24753, - revenue: 39992, - averageOrderValue: 7468, - oneTimeProducts: 639705, - oneTimeProductsRevenue: 927403, - newSubscriptions: 408303, - newSubscriptionsRevenue: 693153, - renewedSubscriptions: 377406, - renewedSubscriptionsRevenue: 705148, - activeSubscriptions: 809365, - monthlyRecurringRevenue: 596065, + timestamp: new Date("2024-10-19T02:05:23.904Z"), + orders: 2677, + revenue: 391797, + averageOrderValue: 931505, + oneTimeProducts: 242178, + oneTimeProductsRevenue: 673838, + newSubscriptions: 250398, + newSubscriptionsRevenue: 224467, + renewedSubscriptions: 483394, + renewedSubscriptionsRevenue: 24753, + activeSubscriptions: 39992, + monthlyRecurringRevenue: 7468, }; ``` diff --git a/docs/models/components/metrics.md b/docs/models/components/metrics.md index 517665ed..4c03a9f4 100644 --- a/docs/models/components/metrics.md +++ b/docs/models/components/metrics.md @@ -8,57 +8,57 @@ import { Metrics } from "@polar-sh/sdk/models/components"; let value: Metrics = { orders: { slug: "", - displayName: "Zachariah_Jakubowski", + displayName: "Irving_Orn", type: "currency", }, revenue: { slug: "", - displayName: "Aniyah_Schiller23", + displayName: "Onie_Welch40", type: "scalar", }, averageOrderValue: { slug: "", - displayName: "Kallie.Emmerich74", + displayName: "Sonia79", type: "currency", }, oneTimeProducts: { slug: "", - displayName: "Miracle.Grimes", + displayName: "Mariam53", type: "scalar", }, oneTimeProductsRevenue: { slug: "", - displayName: "Jermain_DuBuque84", + displayName: "Ollie_Cummerata72", type: "scalar", }, newSubscriptions: { slug: "", - displayName: "Brock.Wolf", - type: "currency", + displayName: "Jayme49", + type: "scalar", }, newSubscriptionsRevenue: { slug: "", - displayName: "Arielle.Schumm97", - type: "scalar", + displayName: "Orlando.Leuschke13", + type: "currency", }, renewedSubscriptions: { slug: "", - displayName: "Otha7", - type: "scalar", + displayName: "Hertha.Gutkowski81", + type: "currency", }, renewedSubscriptionsRevenue: { slug: "", - displayName: "Hermann87", - type: "currency", + displayName: "Bartholome78", + type: "scalar", }, activeSubscriptions: { slug: "", - displayName: "Hollis59", - type: "currency", + displayName: "Delia42", + type: "scalar", }, monthlyRecurringRevenue: { slug: "", - displayName: "Bill_Rutherford93", + displayName: "Berenice.Thiel", type: "scalar", }, }; diff --git a/docs/models/components/metricsintervallimit.md b/docs/models/components/metricsintervallimit.md index 67c4ffc2..8d91459b 100644 --- a/docs/models/components/metricsintervallimit.md +++ b/docs/models/components/metricsintervallimit.md @@ -8,7 +8,7 @@ Date interval limit to get metrics for a given interval. import { MetricsIntervalLimit } from "@polar-sh/sdk/models/components"; let value: MetricsIntervalLimit = { - maxDays: 668234, + maxDays: 455579, }; ``` diff --git a/docs/models/components/metricsintervalslimits.md b/docs/models/components/metricsintervalslimits.md index 6b29bc98..052957f3 100644 --- a/docs/models/components/metricsintervalslimits.md +++ b/docs/models/components/metricsintervalslimits.md @@ -9,19 +9,19 @@ import { MetricsIntervalsLimits } from "@polar-sh/sdk/models/components"; let value: MetricsIntervalsLimits = { hour: { - maxDays: 897543, + maxDays: 809365, }, day: { - maxDays: 654082, + maxDays: 596065, }, week: { - maxDays: 769967, + maxDays: 709036, }, month: { - maxDays: 373040, + maxDays: 537236, }, year: { - maxDays: 357425, + maxDays: 954334, }, }; ``` diff --git a/docs/models/components/metricslimits.md b/docs/models/components/metricslimits.md index 7f914689..b1793b7c 100644 --- a/docs/models/components/metricslimits.md +++ b/docs/models/components/metricslimits.md @@ -9,22 +9,22 @@ import { MetricsLimits } from "@polar-sh/sdk/models/components"; import { RFCDate } from "@polar-sh/sdk/types"; let value: MetricsLimits = { - minDate: new RFCDate("2024-02-17"), + minDate: new RFCDate("2023-12-03"), intervals: { hour: { - maxDays: 537236, + maxDays: 927403, }, day: { - maxDays: 954334, + maxDays: 408303, }, week: { - maxDays: 455579, + maxDays: 693153, }, month: { - maxDays: 351936, + maxDays: 377406, }, year: { - maxDays: 600193, + maxDays: 705148, }, }, }; diff --git a/docs/models/components/metricsresponse.md b/docs/models/components/metricsresponse.md index 0e015bd4..2cc66dc6 100644 --- a/docs/models/components/metricsresponse.md +++ b/docs/models/components/metricsresponse.md @@ -10,75 +10,75 @@ import { MetricsResponse } from "@polar-sh/sdk/models/components"; let value: MetricsResponse = { periods: [ { - timestamp: new Date("2023-12-06T00:25:13.582Z"), - orders: 376389, - revenue: 254025, - averageOrderValue: 364912, - oneTimeProducts: 551079, - oneTimeProductsRevenue: 260904, - newSubscriptions: 131903, - newSubscriptionsRevenue: 495970, - renewedSubscriptions: 200516, - renewedSubscriptionsRevenue: 681740, - activeSubscriptions: 514054, - monthlyRecurringRevenue: 277340, + timestamp: new Date("2024-12-18T03:13:18.068Z"), + orders: 918092, + revenue: 759283, + averageOrderValue: 579681, + oneTimeProducts: 364544, + oneTimeProductsRevenue: 455898, + newSubscriptions: 501063, + newSubscriptionsRevenue: 642352, + renewedSubscriptions: 376389, + renewedSubscriptionsRevenue: 254025, + activeSubscriptions: 364912, + monthlyRecurringRevenue: 551079, }, ], metrics: { orders: { slug: "", - displayName: "Avis.Leffler39", - type: "scalar", + displayName: "Devin.Cole", + type: "currency", }, revenue: { slug: "", - displayName: "Daron_Beahan", + displayName: "Jordan52", type: "currency", }, averageOrderValue: { slug: "", - displayName: "Abel57", - type: "currency", + displayName: "Bianka23", + type: "scalar", }, oneTimeProducts: { slug: "", - displayName: "Cecil_Bode97", - type: "currency", + displayName: "Kyle.Witting60", + type: "scalar", }, oneTimeProductsRevenue: { slug: "", - displayName: "Leola50", + displayName: "Kole8", type: "currency", }, newSubscriptions: { slug: "", - displayName: "Elisa.Smith", - type: "currency", + displayName: "Shanny_Wolff96", + type: "scalar", }, newSubscriptionsRevenue: { slug: "", - displayName: "Hassie.Lebsack72", + displayName: "Joesph83", type: "currency", }, renewedSubscriptions: { slug: "", - displayName: "Alexane.Hilpert", - type: "scalar", + displayName: "Hassan_Waters", + type: "currency", }, renewedSubscriptionsRevenue: { slug: "", - displayName: "Dell57", - type: "currency", + displayName: "Dock.Reichert37", + type: "scalar", }, activeSubscriptions: { slug: "", - displayName: "Luigi.Koch", - type: "currency", + displayName: "Abbie97", + type: "scalar", }, monthlyRecurringRevenue: { slug: "", - displayName: "Ethan_Marquardt94", - type: "currency", + displayName: "King.Stokes", + type: "scalar", }, }, }; diff --git a/docs/models/components/metrictype.md b/docs/models/components/metrictype.md index 7c6c9526..c26679e1 100644 --- a/docs/models/components/metrictype.md +++ b/docs/models/components/metrictype.md @@ -5,7 +5,7 @@ ```typescript import { MetricType } from "@polar-sh/sdk/models/components"; -let value: MetricType = "scalar"; +let value: MetricType = "currency"; ``` ## Values diff --git a/docs/models/components/oauth2client.md b/docs/models/components/oauth2client.md index 56fc17ee..42ea16dd 100644 --- a/docs/models/components/oauth2client.md +++ b/docs/models/components/oauth2client.md @@ -6,14 +6,14 @@ import { OAuth2Client } from "@polar-sh/sdk/models/components"; let value: OAuth2Client = { - redirectUris: ["http://honorable-defender.org"], + redirectUris: ["https://recent-soy.biz"], clientName: "", - createdAt: new Date("2023-09-09T19:26:50.272Z"), - modifiedAt: new Date("2022-11-25T19:57:38.137Z"), + createdAt: new Date("2024-11-27T05:48:21.062Z"), + modifiedAt: new Date("2022-02-17T02:27:05.018Z"), clientId: "", clientSecret: "", - clientIdIssuedAt: 906355, - clientSecretExpiresAt: 160467, + clientIdIssuedAt: 919783, + clientSecretExpiresAt: 116098, }; ``` diff --git a/docs/models/components/oauth2clientconfiguration.md b/docs/models/components/oauth2clientconfiguration.md index 8fe99d33..47d44dae 100644 --- a/docs/models/components/oauth2clientconfiguration.md +++ b/docs/models/components/oauth2clientconfiguration.md @@ -6,7 +6,7 @@ import { OAuth2ClientConfiguration } from "@polar-sh/sdk/models/components"; let value: OAuth2ClientConfiguration = { - redirectUris: ["https://international-dame.org"], + redirectUris: ["http://frosty-go-kart.biz"], clientName: "", }; ``` diff --git a/docs/models/components/oauth2clientconfigurationgranttypes.md b/docs/models/components/oauth2clientconfigurationgranttypes.md index e56dc464..8a13b57a 100644 --- a/docs/models/components/oauth2clientconfigurationgranttypes.md +++ b/docs/models/components/oauth2clientconfigurationgranttypes.md @@ -5,7 +5,7 @@ ```typescript import { OAuth2ClientConfigurationGrantTypes } from "@polar-sh/sdk/models/components"; -let value: OAuth2ClientConfigurationGrantTypes = "refresh_token"; +let value: OAuth2ClientConfigurationGrantTypes = "authorization_code"; ``` ## Values diff --git a/docs/models/components/oauth2clientconfigurationtokenendpointauthmethod.md b/docs/models/components/oauth2clientconfigurationtokenendpointauthmethod.md index 96d9adfa..3b4b608f 100644 --- a/docs/models/components/oauth2clientconfigurationtokenendpointauthmethod.md +++ b/docs/models/components/oauth2clientconfigurationtokenendpointauthmethod.md @@ -5,7 +5,7 @@ ```typescript import { OAuth2ClientConfigurationTokenEndpointAuthMethod } from "@polar-sh/sdk/models/components"; -let value: OAuth2ClientConfigurationTokenEndpointAuthMethod = "client_secret_post"; +let value: OAuth2ClientConfigurationTokenEndpointAuthMethod = "client_secret_basic"; ``` ## Values diff --git a/docs/models/components/oauth2clientconfigurationupdate.md b/docs/models/components/oauth2clientconfigurationupdate.md index d5a9004c..2d0dd4d4 100644 --- a/docs/models/components/oauth2clientconfigurationupdate.md +++ b/docs/models/components/oauth2clientconfigurationupdate.md @@ -6,7 +6,7 @@ import { OAuth2ClientConfigurationUpdate } from "@polar-sh/sdk/models/components"; let value: OAuth2ClientConfigurationUpdate = { - redirectUris: ["http://pure-fashion.info"], + redirectUris: ["http://untrue-chub.name"], clientName: "", clientId: "", }; diff --git a/docs/models/components/oauth2clientconfigurationupdategranttypes.md b/docs/models/components/oauth2clientconfigurationupdategranttypes.md index d74fd46e..b7c73b4f 100644 --- a/docs/models/components/oauth2clientconfigurationupdategranttypes.md +++ b/docs/models/components/oauth2clientconfigurationupdategranttypes.md @@ -5,7 +5,7 @@ ```typescript import { OAuth2ClientConfigurationUpdateGrantTypes } from "@polar-sh/sdk/models/components"; -let value: OAuth2ClientConfigurationUpdateGrantTypes = "authorization_code"; +let value: OAuth2ClientConfigurationUpdateGrantTypes = "refresh_token"; ``` ## Values diff --git a/docs/models/components/oauth2clientconfigurationupdatetokenendpointauthmethod.md b/docs/models/components/oauth2clientconfigurationupdatetokenendpointauthmethod.md index a978aa8c..c35d4b04 100644 --- a/docs/models/components/oauth2clientconfigurationupdatetokenendpointauthmethod.md +++ b/docs/models/components/oauth2clientconfigurationupdatetokenendpointauthmethod.md @@ -5,7 +5,7 @@ ```typescript import { OAuth2ClientConfigurationUpdateTokenEndpointAuthMethod } from "@polar-sh/sdk/models/components"; -let value: OAuth2ClientConfigurationUpdateTokenEndpointAuthMethod = "client_secret_post"; +let value: OAuth2ClientConfigurationUpdateTokenEndpointAuthMethod = "none"; ``` ## Values diff --git a/docs/models/components/onev11oauth21tokenpostxcomponentsauthorizationcodetokenrequest.md b/docs/models/components/onev11oauth21tokenpostxcomponentsauthorizationcodetokenrequest.md index f28d9b14..adccefc4 100644 --- a/docs/models/components/onev11oauth21tokenpostxcomponentsauthorizationcodetokenrequest.md +++ b/docs/models/components/onev11oauth21tokenpostxcomponentsauthorizationcodetokenrequest.md @@ -9,7 +9,7 @@ let value: Onev11oauth21tokenPostXComponentsAuthorizationCodeTokenRequest = { clientId: "", clientSecret: "", code: "", - redirectUri: "https://unfit-symbol.name", + redirectUri: "https://hidden-probability.net", }; ``` diff --git a/docs/models/components/orderinput.md b/docs/models/components/orderinput.md index 5ccd166b..2abb55bc 100644 --- a/docs/models/components/orderinput.md +++ b/docs/models/components/orderinput.md @@ -6,29 +6,29 @@ import { OrderInput } from "@polar-sh/sdk/models/components"; let value: OrderInput = { - createdAt: new Date("2024-10-18T21:41:24.904Z"), - modifiedAt: new Date("2022-04-07T17:16:54.121Z"), + createdAt: new Date("2022-06-08T13:57:21.253Z"), + modifiedAt: new Date("2022-01-01T14:21:40.383Z"), id: "", - amount: 215398, - taxAmount: 602229, - currency: "Venezuelan bolívar", + amount: 168042, + taxAmount: 425402, + currency: "Convertible Marks", userId: "", productId: "", productPriceId: "", subscriptionId: "", user: { id: "", - email: "Providenci34@hotmail.com", + email: "Diego_Durgan@gmail.com", publicName: "", githubUsername: "", avatarUrl: "", }, product: { - createdAt: new Date("2023-10-26T20:38:50.096Z"), - modifiedAt: new Date("2024-03-08T01:34:54.088Z"), + createdAt: new Date("2022-04-07T17:16:54.121Z"), + modifiedAt: new Date("2022-08-25T01:50:03.891Z"), id: "", name: "", - description: "Cross-group multi-state parallelism", + description: "Phased systematic paradigm", isRecurring: false, isArchived: false, organizationId: "", @@ -36,24 +36,23 @@ let value: OrderInput = { isHighlighted: false, }, productPrice: { - createdAt: new Date("2023-08-31T20:17:14.873Z"), - modifiedAt: new Date("2024-06-08T21:13:55.029Z"), + createdAt: new Date("2022-06-24T10:10:57.619Z"), + modifiedAt: new Date("2023-01-10T23:35:06.289Z"), id: "", - priceAmount: 25756, + priceAmount: 605712, priceCurrency: "", isArchived: false, - recurringInterval: "month", }, subscription: { - createdAt: new Date("2022-03-04T19:45:41.602Z"), - modifiedAt: new Date("2024-09-29T16:33:31.525Z"), + createdAt: new Date("2024-03-08T01:34:54.088Z"), + modifiedAt: new Date("2022-05-07T18:22:11.271Z"), id: "", - status: "incomplete", - currentPeriodStart: new Date("2022-02-24T02:04:28.850Z"), - currentPeriodEnd: new Date("2023-07-21T18:46:44.157Z"), + status: "past_due", + currentPeriodStart: new Date("2024-03-08T18:22:12.262Z"), + currentPeriodEnd: new Date("2024-07-25T11:42:59.521Z"), cancelAtPeriodEnd: false, - startedAt: new Date("2022-11-18T00:08:26.950Z"), - endedAt: new Date("2024-04-07T14:18:46.539Z"), + startedAt: new Date("2023-11-30T15:48:28.105Z"), + endedAt: new Date("2023-08-31T20:17:14.873Z"), userId: "", productId: "", priceId: "", diff --git a/docs/models/components/orderinvoice.md b/docs/models/components/orderinvoice.md index 2493e73e..be8a577a 100644 --- a/docs/models/components/orderinvoice.md +++ b/docs/models/components/orderinvoice.md @@ -8,7 +8,7 @@ Order's invoice data. import { OrderInvoice } from "@polar-sh/sdk/models/components"; let value: OrderInvoice = { - url: "https://idolized-science.info", + url: "https://prize-plug.net", }; ``` diff --git a/docs/models/components/orderoutput.md b/docs/models/components/orderoutput.md index e4d3b793..ba8f4528 100644 --- a/docs/models/components/orderoutput.md +++ b/docs/models/components/orderoutput.md @@ -6,53 +6,54 @@ import { OrderOutput } from "@polar-sh/sdk/models/components"; let value: OrderOutput = { - createdAt: new Date("2022-03-06T03:42:09.347Z"), - modifiedAt: new Date("2022-10-25T03:22:00.138Z"), + createdAt: new Date("2023-11-10T14:59:03.400Z"), + modifiedAt: new Date("2023-09-29T20:46:44.522Z"), id: "", - amount: 470621, - taxAmount: 473190, - currency: "Brazilian Real", + amount: 382440, + taxAmount: 241557, + currency: "Bermudian Dollar (customarily known as Bermuda Dollar)", userId: "", productId: "", productPriceId: "", subscriptionId: "", user: { id: "", - email: "Jacques_Lang42@yahoo.com", + email: "Winifred.Stokes27@gmail.com", publicName: "", githubUsername: "", avatarUrl: "", }, product: { - createdAt: new Date("2022-04-20T13:18:31.340Z"), - modifiedAt: new Date("2024-07-28T09:48:49.849Z"), + createdAt: new Date("2023-05-31T19:12:43.878Z"), + modifiedAt: new Date("2023-06-03T14:47:27.947Z"), id: "", name: "", - description: "Assimilated background infrastructure", + description: "Cross-group homogeneous hub", isRecurring: false, isArchived: false, organizationId: "", - type: "free", + type: "individual", isHighlighted: false, }, productPrice: { - createdAt: new Date("2023-03-19T13:21:51.599Z"), - modifiedAt: new Date("2022-09-15T20:21:14.010Z"), + createdAt: new Date("2024-11-26T02:47:19.604Z"), + modifiedAt: new Date("2023-04-10T09:10:19.089Z"), id: "", - priceAmount: 399812, + priceAmount: 99958, priceCurrency: "", isArchived: false, + recurringInterval: "year", }, subscription: { - createdAt: new Date("2022-03-06T12:31:26.254Z"), - modifiedAt: new Date("2024-01-06T20:04:16.147Z"), + createdAt: new Date("2022-02-13T10:57:56.431Z"), + modifiedAt: new Date("2022-05-09T13:52:07.193Z"), id: "", - status: "incomplete", - currentPeriodStart: new Date("2023-01-13T19:27:55.747Z"), - currentPeriodEnd: new Date("2024-07-28T00:05:24.116Z"), + status: "active", + currentPeriodStart: new Date("2022-10-25T07:00:52.665Z"), + currentPeriodEnd: new Date("2023-05-18T06:02:41.929Z"), cancelAtPeriodEnd: false, - startedAt: new Date("2024-02-22T06:55:25.503Z"), - endedAt: new Date("2023-03-15T00:51:02.013Z"), + startedAt: new Date("2023-03-19T13:21:51.599Z"), + endedAt: new Date("2022-09-15T20:21:14.010Z"), userId: "", productId: "", priceId: "", diff --git a/docs/models/components/orderproduct.md b/docs/models/components/orderproduct.md index 1e1d8e5a..c15ab2d3 100644 --- a/docs/models/components/orderproduct.md +++ b/docs/models/components/orderproduct.md @@ -6,11 +6,11 @@ import { OrderProduct } from "@polar-sh/sdk/models/components"; let value: OrderProduct = { - createdAt: new Date("2023-12-27T02:55:05.178Z"), - modifiedAt: new Date("2022-03-18T18:23:23.037Z"), + createdAt: new Date("2023-03-15T00:51:02.013Z"), + modifiedAt: new Date("2023-12-02T13:10:20.148Z"), id: "", name: "", - description: "Pre-emptive solution-oriented synergy", + description: "Innovative foreground adapter", isRecurring: false, isArchived: false, organizationId: "", diff --git a/docs/models/components/ordersortproperty.md b/docs/models/components/ordersortproperty.md index 2c2c55fd..813ad683 100644 --- a/docs/models/components/ordersortproperty.md +++ b/docs/models/components/ordersortproperty.md @@ -5,7 +5,7 @@ ```typescript import { OrderSortProperty } from "@polar-sh/sdk/models/components"; -let value: OrderSortProperty = "-created_at"; +let value: OrderSortProperty = "subscription"; ``` ## Values diff --git a/docs/models/components/ordersubscription.md b/docs/models/components/ordersubscription.md index 50e4625e..e3fd45bc 100644 --- a/docs/models/components/ordersubscription.md +++ b/docs/models/components/ordersubscription.md @@ -6,15 +6,15 @@ import { OrderSubscription } from "@polar-sh/sdk/models/components"; let value: OrderSubscription = { - createdAt: new Date("2023-12-02T13:10:20.148Z"), - modifiedAt: new Date("2023-02-23T00:16:14.412Z"), + createdAt: new Date("2023-03-15T04:39:30.890Z"), + modifiedAt: new Date("2022-03-06T12:31:26.254Z"), id: "", - status: "trialing", - currentPeriodStart: new Date("2022-01-25T01:59:40.254Z"), - currentPeriodEnd: new Date("2023-04-19T05:01:06.012Z"), + status: "past_due", + currentPeriodStart: new Date("2022-05-16T17:36:12.941Z"), + currentPeriodEnd: new Date("2023-01-13T19:27:55.747Z"), cancelAtPeriodEnd: false, - startedAt: new Date("2023-02-15T17:29:42.348Z"), - endedAt: new Date("2023-11-05T12:32:11.394Z"), + startedAt: new Date("2024-07-28T00:05:24.116Z"), + endedAt: new Date("2024-02-22T06:55:25.503Z"), userId: "", productId: "", priceId: "", diff --git a/docs/models/components/orderuser.md b/docs/models/components/orderuser.md index 15c9165f..c7ec167c 100644 --- a/docs/models/components/orderuser.md +++ b/docs/models/components/orderuser.md @@ -7,7 +7,7 @@ import { OrderUser } from "@polar-sh/sdk/models/components"; let value: OrderUser = { id: "", - email: "Mollie.Hane@hotmail.com", + email: "Leta62@yahoo.com", publicName: "", githubUsername: "", avatarUrl: "", diff --git a/docs/models/components/organizationavatarfilecreate.md b/docs/models/components/organizationavatarfilecreate.md index f2a6da07..dedd0cdd 100644 --- a/docs/models/components/organizationavatarfilecreate.md +++ b/docs/models/components/organizationavatarfilecreate.md @@ -10,13 +10,13 @@ import { OrganizationAvatarFileCreate } from "@polar-sh/sdk/models/components"; let value: OrganizationAvatarFileCreate = { name: "", mimeType: "", - size: 987349, + size: 95619, upload: { parts: [ { - number: 918092, - chunkStart: 759283, - chunkEnd: 579681, + number: 392569, + chunkStart: 871103, + chunkEnd: 878373, }, ], }, diff --git a/docs/models/components/organizationavatarfileread.md b/docs/models/components/organizationavatarfileread.md index 57c64697..d792cf67 100644 --- a/docs/models/components/organizationavatarfileread.md +++ b/docs/models/components/organizationavatarfileread.md @@ -11,17 +11,17 @@ let value: OrganizationAvatarFileRead = { id: "", organizationId: "", name: "", - path: "/etc", + path: "/usr/include", mimeType: "", - size: 274575, + size: 373216, storageVersion: "", checksumEtag: "", checksumSha256Base64: "", checksumSha256Hex: "", - lastModifiedAt: new Date("2022-08-31T15:36:43.704Z"), + lastModifiedAt: new Date("2023-11-26T05:20:36.955Z"), version: "", isUploaded: false, - createdAt: new Date("2022-01-10T12:34:46.645Z"), + createdAt: new Date("2022-09-02T06:12:35.444Z"), sizeReadable: "", publicUrl: "", }; diff --git a/docs/models/components/organizationinput.md b/docs/models/components/organizationinput.md index 2e391196..9c29e2c8 100644 --- a/docs/models/components/organizationinput.md +++ b/docs/models/components/organizationinput.md @@ -6,21 +6,21 @@ import { OrganizationInput } from "@polar-sh/sdk/models/components"; let value: OrganizationInput = { - createdAt: new Date("2022-01-30T16:15:56.450Z"), - modifiedAt: new Date("2024-02-10T16:41:02.340Z"), + createdAt: new Date("2024-10-14T01:01:00.407Z"), + modifiedAt: new Date("2022-10-25T08:26:08.362Z"), id: "", name: "", slug: "", avatarUrl: "", bio: "", - company: "Wiegand and Sons", + company: "Gerlach - Dietrich", blog: "", location: "", - email: "Josefina.Sauer@hotmail.com", + email: "Alejandrin94@yahoo.com", twitterUsername: "", - pledgeMinimumAmount: 471207, + pledgeMinimumAmount: 419858, pledgeBadgeShowAmount: false, - defaultUpfrontSplitToContributors: 374062, + defaultUpfrontSplitToContributors: 694088, donationsEnabled: false, profileSettings: {}, featureSettings: {}, diff --git a/docs/models/components/permission.md b/docs/models/components/permission.md index 7d1901c7..52ae5f7b 100644 --- a/docs/models/components/permission.md +++ b/docs/models/components/permission.md @@ -7,7 +7,7 @@ The permission level to grant. Read more about roles and their permissions on [G ```typescript import { Permission } from "@polar-sh/sdk/models/components"; -let value: Permission = "maintain"; +let value: Permission = "push"; ``` ## Values diff --git a/docs/models/components/pledgeinput.md b/docs/models/components/pledgeinput.md index df0eb772..2d02682a 100644 --- a/docs/models/components/pledgeinput.md +++ b/docs/models/components/pledgeinput.md @@ -6,41 +6,41 @@ import { PledgeInput } from "@polar-sh/sdk/models/components"; let value: PledgeInput = { - createdAt: new Date("2022-02-05T03:11:27.844Z"), - modifiedAt: new Date("2022-12-20T19:42:29.339Z"), + createdAt: new Date("2024-04-25T06:18:52.474Z"), + modifiedAt: new Date("2023-03-31T21:01:04.718Z"), id: "", - amount: 60995, - currency: "Kroon", - state: "charge_disputed", - type: "pay_on_completion", + amount: 12171, + currency: "Kwanza", + state: "pending", + type: "pay_upfront", issue: { - id: "bb31180f-739a-4e9e-857e-b809e2810331", - number: 953676, + id: "3d8bb311-80f7-439a-a9e0-57eb809e2810", + number: 244376, title: "", state: "open", - issueCreatedAt: new Date("2023-10-01T05:20:17.768Z"), + issueCreatedAt: new Date("2022-05-17T05:17:42.222Z"), needsConfirmationSolved: false, funding: {}, repository: { - id: "81d4c700-b607-4f3c-93c7-3b9da3f2ceda", + id: "f3981d4c-700b-4607-b3c9-3c73b9da3f2c", isPrivate: false, name: "MyOrg", - description: "Networked system-worthy collaboration", + description: "Upgradable static moratorium", stars: 1337, license: "", homepage: "", profileSettings: {}, organization: { - id: "3f225741-1faf-44b7-944e-472e802857a5", + id: "7e23f225-7411-4faf-8b75-44e472e80285", name: "", avatarUrl: "", isPersonal: false, bio: "", prettyName: "", - company: "Gusikowski, Bailey and Gleichner", + company: "Murazik - Hansen", blog: "", location: "", - email: "Coby_OHara@yahoo.com", + email: "Elisa43@hotmail.com", twitterUsername: "", organizationId: "", }, diff --git a/docs/models/components/pledgestate.md b/docs/models/components/pledgestate.md index f0bce87d..1119aa39 100644 --- a/docs/models/components/pledgestate.md +++ b/docs/models/components/pledgestate.md @@ -5,7 +5,7 @@ ```typescript import { PledgeState } from "@polar-sh/sdk/models/components"; -let value: PledgeState = "initiated"; +let value: PledgeState = "cancelled"; ``` ## Values diff --git a/docs/models/components/prices.md b/docs/models/components/prices.md index 72effa3c..a928c9e1 100644 --- a/docs/models/components/prices.md +++ b/docs/models/components/prices.md @@ -6,7 +6,7 @@ import { Prices } from "@polar-sh/sdk/models/components"; let value: Prices = { - priceAmount: 745398, + id: "", }; ``` diff --git a/docs/models/components/productinput.md b/docs/models/components/productinput.md index dac395ec..1302b0d7 100644 --- a/docs/models/components/productinput.md +++ b/docs/models/components/productinput.md @@ -8,32 +8,33 @@ A product. import { ProductInput } from "@polar-sh/sdk/models/components"; let value: ProductInput = { - createdAt: new Date("2023-09-26T04:04:07.045Z"), - modifiedAt: new Date("2023-02-17T02:09:11.357Z"), + createdAt: new Date("2024-12-08T01:50:27.022Z"), + modifiedAt: new Date("2024-03-12T23:47:56.847Z"), id: "", name: "", - description: "Robust content-based project", + description: "Automated object-oriented collaboration", isRecurring: false, isArchived: false, organizationId: "", - type: "business", + type: "free", isHighlighted: false, prices: [ { - createdAt: new Date("2024-01-04T11:36:32.816Z"), - modifiedAt: new Date("2024-04-24T21:02:13.053Z"), + createdAt: new Date("2023-09-26T04:04:07.045Z"), + modifiedAt: new Date("2023-02-17T02:09:11.357Z"), id: "", - priceAmount: 963741, + priceAmount: 779180, priceCurrency: "", isArchived: false, + recurringInterval: "month", }, ], benefits: [ { - createdAt: new Date("2024-08-20T22:42:15.265Z"), - modifiedAt: new Date("2022-06-05T02:11:11.335Z"), + createdAt: new Date("2024-01-21T06:28:30.659Z"), + modifiedAt: new Date("2023-01-13T14:31:45.452Z"), id: "", - description: "Vision-oriented systemic frame", + description: "Programmable real-time toolset", selectable: false, deletable: false, organizationId: "", @@ -47,17 +48,17 @@ let value: ProductInput = { id: "", organizationId: "", name: "", - path: "/opt/share", + path: "/usr/lib", mimeType: "", - size: 45234, + size: 878601, storageVersion: "", checksumEtag: "", checksumSha256Base64: "", checksumSha256Hex: "", - lastModifiedAt: new Date("2023-06-18T02:32:25.845Z"), + lastModifiedAt: new Date("2022-06-05T02:11:11.335Z"), version: "", isUploaded: false, - createdAt: new Date("2022-12-23T12:36:25.838Z"), + createdAt: new Date("2024-12-29T04:33:35.446Z"), }, ], }; diff --git a/docs/models/components/productinputbenefits.md b/docs/models/components/productinputbenefits.md index b2ba6164..92687a5e 100644 --- a/docs/models/components/productinputbenefits.md +++ b/docs/models/components/productinputbenefits.md @@ -6,16 +6,14 @@ import { ProductInputBenefits } from "@polar-sh/sdk/models/components"; let value: ProductInputBenefits = { - createdAt: new Date("2022-02-20T10:20:27.903Z"), - modifiedAt: new Date("2024-03-08T09:23:46.256Z"), + createdAt: new Date("2024-05-22T20:25:13.971Z"), + modifiedAt: new Date("2023-04-20T15:40:09.449Z"), id: "", - description: "Digitized discrete interface", + type: "articles", + description: "Grass-roots disintermediate synergy", selectable: false, deletable: false, organizationId: "", - properties: { - paidArticles: false, - }, }; ``` diff --git a/docs/models/components/productmediafilecreate.md b/docs/models/components/productmediafilecreate.md index 86ab5537..55dead03 100644 --- a/docs/models/components/productmediafilecreate.md +++ b/docs/models/components/productmediafilecreate.md @@ -10,13 +10,13 @@ import { ProductMediaFileCreate } from "@polar-sh/sdk/models/components"; let value: ProductMediaFileCreate = { name: "", mimeType: "", - size: 878373, + size: 160393, upload: { parts: [ { - number: 667593, - chunkStart: 690785, - chunkEnd: 192718, + number: 28952, + chunkStart: 350207, + chunkEnd: 895692, }, ], }, diff --git a/docs/models/components/productmediafilereadinput.md b/docs/models/components/productmediafilereadinput.md index 410a7fa3..e16dba63 100644 --- a/docs/models/components/productmediafilereadinput.md +++ b/docs/models/components/productmediafilereadinput.md @@ -11,17 +11,17 @@ let value: ProductMediaFileReadInput = { id: "", organizationId: "", name: "", - path: "/opt/share", + path: "/usr/sbin", mimeType: "", - size: 496915, + size: 362888, storageVersion: "", checksumEtag: "", checksumSha256Base64: "", checksumSha256Hex: "", - lastModifiedAt: new Date("2023-09-15T08:37:16.678Z"), + lastModifiedAt: new Date("2023-04-29T16:31:11.882Z"), version: "", isUploaded: false, - createdAt: new Date("2022-07-08T17:26:09.397Z"), + createdAt: new Date("2022-02-19T13:50:52.709Z"), }; ``` diff --git a/docs/models/components/productonetimecreate.md b/docs/models/components/productonetimecreate.md index f658c769..3dbe60f7 100644 --- a/docs/models/components/productonetimecreate.md +++ b/docs/models/components/productonetimecreate.md @@ -11,7 +11,7 @@ let value: ProductOneTimeCreate = { name: "", prices: [ { - priceAmount: 583404, + priceAmount: 871083, }, ], }; diff --git a/docs/models/components/productpriceinput.md b/docs/models/components/productpriceinput.md index 3024eeda..7ebfea24 100644 --- a/docs/models/components/productpriceinput.md +++ b/docs/models/components/productpriceinput.md @@ -6,13 +6,13 @@ import { ProductPriceInput } from "@polar-sh/sdk/models/components"; let value: ProductPriceInput = { - createdAt: new Date("2022-02-05T08:54:59.720Z"), - modifiedAt: new Date("2023-04-04T05:56:40.707Z"), + createdAt: new Date("2022-01-29T05:29:52.473Z"), + modifiedAt: new Date("2023-06-10T09:43:52.873Z"), id: "", - priceAmount: 456688, + priceAmount: 57320, priceCurrency: "", isArchived: false, - recurringInterval: "month", + recurringInterval: "year", }; ``` diff --git a/docs/models/components/productpriceonetimecreate.md b/docs/models/components/productpriceonetimecreate.md index b91a1ff3..08dc419a 100644 --- a/docs/models/components/productpriceonetimecreate.md +++ b/docs/models/components/productpriceonetimecreate.md @@ -8,7 +8,7 @@ Schema to create a one-time product price. import { ProductPriceOneTimeCreate } from "@polar-sh/sdk/models/components"; let value: ProductPriceOneTimeCreate = { - priceAmount: 589695, + priceAmount: 773084, }; ``` diff --git a/docs/models/components/productpricerecurringcreate.md b/docs/models/components/productpricerecurringcreate.md index ba40727d..c9bd205e 100644 --- a/docs/models/components/productpricerecurringcreate.md +++ b/docs/models/components/productpricerecurringcreate.md @@ -9,7 +9,7 @@ import { ProductPriceRecurringCreate } from "@polar-sh/sdk/models/components"; let value: ProductPriceRecurringCreate = { recurringInterval: "month", - priceAmount: 107004, + priceAmount: 521996, }; ``` diff --git a/docs/models/components/productrecurringcreate.md b/docs/models/components/productrecurringcreate.md index 9cb588fa..a17fed2e 100644 --- a/docs/models/components/productrecurringcreate.md +++ b/docs/models/components/productrecurringcreate.md @@ -12,7 +12,7 @@ let value: ProductRecurringCreate = { prices: [ { recurringInterval: "month", - priceAmount: 117320, + priceAmount: 432281, }, ], }; diff --git a/docs/models/components/productrecurringcreatetype.md b/docs/models/components/productrecurringcreatetype.md index 171b5fdb..e1332bfd 100644 --- a/docs/models/components/productrecurringcreatetype.md +++ b/docs/models/components/productrecurringcreatetype.md @@ -7,7 +7,7 @@ ```typescript import { ProductRecurringCreateType } from "@polar-sh/sdk/models/components"; -let value: ProductRecurringCreateType = "business"; +let value: ProductRecurringCreateType = "individual"; ``` ## Values diff --git a/docs/models/components/reactions.md b/docs/models/components/reactions.md index 83804a51..a80e9d12 100644 --- a/docs/models/components/reactions.md +++ b/docs/models/components/reactions.md @@ -6,15 +6,15 @@ import { Reactions } from "@polar-sh/sdk/models/components"; let value: Reactions = { - totalCount: 108165, - plusOne: 943143, - minusOne: 392319, - laugh: 786954, - hooray: 221218, - confused: 496548, - heart: 683727, - rocket: 326903, - eyes: 102446, + totalCount: 329651, + plusOne: 403147, + minusOne: 791762, + laugh: 68880, + hooray: 108165, + confused: 943143, + heart: 392319, + rocket: 786954, + eyes: 221218, }; ``` diff --git a/docs/models/components/repositoryinput.md b/docs/models/components/repositoryinput.md index c7a36b22..ea26ed56 100644 --- a/docs/models/components/repositoryinput.md +++ b/docs/models/components/repositoryinput.md @@ -6,25 +6,25 @@ import { RepositoryInput } from "@polar-sh/sdk/models/components"; let value: RepositoryInput = { - id: "c42defcc-e8f1-4977-b73e-63562a7b408f", + id: "544ec42d-efcc-4e8f-9977-773e63562a7b", isPrivate: false, name: "MyOrg", - description: "Assimilated empowering support", + description: "Expanded 6th generation interface", stars: 1337, license: "", homepage: "", profileSettings: {}, organization: { - id: "3d48fdaf-313a-41f5-bd94-259c0b36f25e", + id: "f05e3d48-fdaf-4313-a1f5-fd94259c0b36", name: "", avatarUrl: "", isPersonal: false, bio: "", prettyName: "", - company: "Mayer - Goyette", + company: "Cruickshank, Harris and Trantow", blog: "", location: "", - email: "Unique.Ferry32@gmail.com", + email: "King94@yahoo.com", twitterUsername: "", organizationId: "", }, diff --git a/docs/models/components/s3filecreatemultipart.md b/docs/models/components/s3filecreatemultipart.md index 2ed26ede..23b755fa 100644 --- a/docs/models/components/s3filecreatemultipart.md +++ b/docs/models/components/s3filecreatemultipart.md @@ -8,9 +8,9 @@ import { S3FileCreateMultipart } from "@polar-sh/sdk/models/components"; let value: S3FileCreateMultipart = { parts: [ { - number: 28952, - chunkStart: 350207, - chunkEnd: 895692, + number: 70410, + chunkStart: 781480, + chunkEnd: 421844, }, ], }; diff --git a/docs/models/components/s3filecreatepart.md b/docs/models/components/s3filecreatepart.md index aea80b82..8f43c11e 100644 --- a/docs/models/components/s3filecreatepart.md +++ b/docs/models/components/s3filecreatepart.md @@ -6,9 +6,9 @@ import { S3FileCreatePart } from "@polar-sh/sdk/models/components"; let value: S3FileCreatePart = { - number: 95619, - chunkStart: 392569, - chunkEnd: 871103, + number: 751022, + chunkStart: 388319, + chunkEnd: 927212, }; ``` diff --git a/docs/models/components/s3fileuploadcompletedpart.md b/docs/models/components/s3fileuploadcompletedpart.md index 9276ffb9..b0f51a92 100644 --- a/docs/models/components/s3fileuploadcompletedpart.md +++ b/docs/models/components/s3fileuploadcompletedpart.md @@ -6,7 +6,7 @@ import { S3FileUploadCompletedPart } from "@polar-sh/sdk/models/components"; let value: S3FileUploadCompletedPart = { - number: 501063, + number: 192718, checksumEtag: "", checksumSha256Base64: "", }; diff --git a/docs/models/components/s3fileuploadmultipart.md b/docs/models/components/s3fileuploadmultipart.md index e77d3c9e..8ff24489 100644 --- a/docs/models/components/s3fileuploadmultipart.md +++ b/docs/models/components/s3fileuploadmultipart.md @@ -7,14 +7,14 @@ import { S3FileUploadMultipart } from "@polar-sh/sdk/models/components"; let value: S3FileUploadMultipart = { id: "", - path: "/var", + path: "/boot/defaults", parts: [ { - number: 773456, - chunkStart: 884952, - chunkEnd: 456410, - url: "https://crisp-fairness.biz", - expiresAt: new Date("2024-02-21T08:49:40.675Z"), + number: 222658, + chunkStart: 856277, + chunkEnd: 369490, + url: "http://average-middleman.org", + expiresAt: new Date("2024-04-27T16:58:28.547Z"), }, ], }; diff --git a/docs/models/components/s3fileuploadpart.md b/docs/models/components/s3fileuploadpart.md index 5b740e43..40b523da 100644 --- a/docs/models/components/s3fileuploadpart.md +++ b/docs/models/components/s3fileuploadpart.md @@ -6,11 +6,11 @@ import { S3FileUploadPart } from "@polar-sh/sdk/models/components"; let value: S3FileUploadPart = { - number: 432984, - chunkStart: 426943, - chunkEnd: 528234, - url: "http://great-bath.net", - expiresAt: new Date("2023-04-08T08:11:53.044Z"), + number: 884952, + chunkStart: 456410, + chunkEnd: 897277, + url: "http://glamorous-constraint.net", + expiresAt: new Date("2023-04-20T13:12:59.565Z"), }; ``` diff --git a/docs/models/components/subscriptioninput.md b/docs/models/components/subscriptioninput.md index 9937ce2d..96bc69ae 100644 --- a/docs/models/components/subscriptioninput.md +++ b/docs/models/components/subscriptioninput.md @@ -6,52 +6,52 @@ import { SubscriptionInput } from "@polar-sh/sdk/models/components"; let value: SubscriptionInput = { - createdAt: new Date("2024-10-24T01:55:36.487Z"), - modifiedAt: new Date("2022-09-20T07:31:13.949Z"), + createdAt: new Date("2022-07-13T23:57:35.752Z"), + modifiedAt: new Date("2024-07-14T23:01:43.155Z"), id: "", - status: "unpaid", - currentPeriodStart: new Date("2023-11-23T10:25:56.996Z"), - currentPeriodEnd: new Date("2022-11-06T23:44:25.988Z"), + status: "active", + currentPeriodStart: new Date("2023-07-14T02:24:25.197Z"), + currentPeriodEnd: new Date("2022-06-03T18:52:21.655Z"), cancelAtPeriodEnd: false, - startedAt: new Date("2024-01-31T08:17:14.176Z"), - endedAt: new Date("2023-01-08T05:39:18.359Z"), + startedAt: new Date("2022-05-20T22:43:19.573Z"), + endedAt: new Date("2023-01-29T11:00:42.421Z"), userId: "", productId: "", priceId: "", user: { - email: "Layla_Kreiger14@gmail.com", + email: "Tressa_Fisher28@yahoo.com", publicName: "", githubUsername: "", avatarUrl: "", }, product: { - createdAt: new Date("2022-10-05T23:22:14.259Z"), - modifiedAt: new Date("2022-10-09T13:56:07.921Z"), + createdAt: new Date("2024-01-31T08:17:14.176Z"), + modifiedAt: new Date("2023-01-08T05:39:18.359Z"), id: "", name: "", - description: "Diverse system-worthy model", + description: "Configurable methodical info-mediaries", isRecurring: false, isArchived: false, organizationId: "", - type: "individual", + type: "business", isHighlighted: false, prices: [ { - createdAt: new Date("2024-09-12T06:16:21.396Z"), - modifiedAt: new Date("2023-01-29T14:02:48.210Z"), + createdAt: new Date("2022-06-11T23:45:58.690Z"), + modifiedAt: new Date("2022-10-05T23:22:14.259Z"), id: "", - priceAmount: 185518, + priceAmount: 256916, priceCurrency: "", isArchived: false, - recurringInterval: "year", + recurringInterval: "month", }, ], benefits: [ { - createdAt: new Date("2023-10-06T18:19:12.733Z"), - modifiedAt: new Date("2022-12-24T14:11:46.817Z"), + createdAt: new Date("2023-12-01T02:09:27.780Z"), + modifiedAt: new Date("2023-06-24T02:43:59.783Z"), id: "", - description: "Self-enabling dynamic concept", + description: "Right-sized tertiary frame", selectable: false, deletable: false, organizationId: "", @@ -65,25 +65,25 @@ let value: SubscriptionInput = { id: "", organizationId: "", name: "", - path: "/opt/share", + path: "/home", mimeType: "", - size: 796397, + size: 708898, storageVersion: "", checksumEtag: "", checksumSha256Base64: "", checksumSha256Hex: "", - lastModifiedAt: new Date("2023-04-20T15:40:09.449Z"), + lastModifiedAt: new Date("2023-08-07T19:18:51.919Z"), version: "", isUploaded: false, - createdAt: new Date("2022-10-19T23:35:36.777Z"), + createdAt: new Date("2023-10-06T18:19:12.733Z"), }, ], }, price: { - createdAt: new Date("2022-11-23T21:32:50.393Z"), - modifiedAt: new Date("2024-09-29T19:23:27.577Z"), + createdAt: new Date("2024-06-06T07:32:39.338Z"), + modifiedAt: new Date("2022-12-13T22:20:08.235Z"), id: "", - priceAmount: 978173, + priceAmount: 204072, priceCurrency: "", isArchived: false, }, diff --git a/docs/models/components/tokenendpointauthmethod.md b/docs/models/components/tokenendpointauthmethod.md index 396ac84c..c0fbed1c 100644 --- a/docs/models/components/tokenendpointauthmethod.md +++ b/docs/models/components/tokenendpointauthmethod.md @@ -5,7 +5,7 @@ ```typescript import { TokenEndpointAuthMethod } from "@polar-sh/sdk/models/components"; -let value: TokenEndpointAuthMethod = "client_secret_basic"; +let value: TokenEndpointAuthMethod = "client_secret_post"; ``` ## Values diff --git a/docs/models/components/tokenresponse.md b/docs/models/components/tokenresponse.md index 75d68a9f..066b9f1f 100644 --- a/docs/models/components/tokenresponse.md +++ b/docs/models/components/tokenresponse.md @@ -7,7 +7,7 @@ import { TokenResponse } from "@polar-sh/sdk/models/components"; let value: TokenResponse = { accessToken: "", - expiresIn: 623295, + expiresIn: 991142, refreshToken: "", scope: "", idToken: "", diff --git a/docs/models/components/userinfouser.md b/docs/models/components/userinfouser.md index 5c5d2031..19992448 100644 --- a/docs/models/components/userinfouser.md +++ b/docs/models/components/userinfouser.md @@ -8,7 +8,7 @@ import { UserInfoUser } from "@polar-sh/sdk/models/components"; let value: UserInfoUser = { sub: "", name: "", - email: "Jo_Hoeger54@yahoo.com", + email: "Sherwood_Torphy32@yahoo.com", emailVerified: false, }; ``` diff --git a/docs/models/components/webhookbenefitcreatedpayload.md b/docs/models/components/webhookbenefitcreatedpayload.md index d90dd9b8..150b3880 100644 --- a/docs/models/components/webhookbenefitcreatedpayload.md +++ b/docs/models/components/webhookbenefitcreatedpayload.md @@ -11,17 +11,19 @@ import { WebhookBenefitCreatedPayload } from "@polar-sh/sdk/models/components"; let value: WebhookBenefitCreatedPayload = { data: { - createdAt: new Date("2023-11-04T14:49:14.630Z"), - modifiedAt: new Date("2023-01-26T01:18:29.432Z"), + createdAt: new Date("2023-03-30T12:04:29.893Z"), + modifiedAt: new Date("2022-01-01T18:51:32.168Z"), id: "", - description: "Reverse-engineered scalable function", + description: "Public-key 24/7 encoding", selectable: false, deletable: false, organizationId: "", properties: { - note: "", + repositoryId: "", + repositoryOwner: "polarsource", + repositoryName: "private_repo", + permission: "admin", }, - isTaxApplicable: false, }, }; ``` diff --git a/docs/models/components/webhookbenefitcreatedpayloadbenefit.md b/docs/models/components/webhookbenefitcreatedpayloadbenefit.md index ef91f216..79742743 100644 --- a/docs/models/components/webhookbenefitcreatedpayloadbenefit.md +++ b/docs/models/components/webhookbenefitcreatedpayloadbenefit.md @@ -6,18 +6,16 @@ import { WebhookBenefitCreatedPayloadBenefit } from "@polar-sh/sdk/models/components"; let value: WebhookBenefitCreatedPayloadBenefit = { - createdAt: new Date("2023-03-30T12:04:29.893Z"), - modifiedAt: new Date("2022-01-01T18:51:32.168Z"), + createdAt: new Date("2024-05-06T04:29:47.496Z"), + modifiedAt: new Date("2023-12-10T13:17:18.763Z"), id: "", - description: "Public-key 24/7 encoding", + description: "De-engineered holistic framework", selectable: false, deletable: false, organizationId: "", properties: { - repositoryId: "", - repositoryOwner: "polarsource", - repositoryName: "private_repo", - permission: "admin", + guildId: "", + roleId: "", }, }; ``` diff --git a/docs/models/components/webhookbenefitupdatedpayload.md b/docs/models/components/webhookbenefitupdatedpayload.md index 74044a2f..f120e1df 100644 --- a/docs/models/components/webhookbenefitupdatedpayload.md +++ b/docs/models/components/webhookbenefitupdatedpayload.md @@ -11,16 +11,18 @@ import { WebhookBenefitUpdatedPayload } from "@polar-sh/sdk/models/components"; let value: WebhookBenefitUpdatedPayload = { data: { - createdAt: new Date("2024-08-29T04:26:53.411Z"), - modifiedAt: new Date("2024-03-21T15:17:35.884Z"), + createdAt: new Date("2024-11-23T02:29:33.162Z"), + modifiedAt: new Date("2022-11-11T17:15:53.573Z"), id: "", - description: "Synergistic web-enabled product", + description: "Realigned intermediate interface", selectable: false, deletable: false, organizationId: "", properties: { - guildId: "", - roleId: "", + archived: { + key: false, + }, + files: [""], }, }, }; diff --git a/docs/models/components/webhookbenefitupdatedpayloadbenefit.md b/docs/models/components/webhookbenefitupdatedpayloadbenefit.md index d85c2e93..70d47eb2 100644 --- a/docs/models/components/webhookbenefitupdatedpayloadbenefit.md +++ b/docs/models/components/webhookbenefitupdatedpayloadbenefit.md @@ -6,10 +6,10 @@ import { WebhookBenefitUpdatedPayloadBenefit } from "@polar-sh/sdk/models/components"; let value: WebhookBenefitUpdatedPayloadBenefit = { - createdAt: new Date("2024-11-23T02:29:33.162Z"), - modifiedAt: new Date("2022-11-11T17:15:53.573Z"), + createdAt: new Date("2022-05-09T18:29:56.003Z"), + modifiedAt: new Date("2024-01-25T19:07:43.463Z"), id: "", - description: "Realigned intermediate interface", + description: "Sharable next generation artificial intelligence", selectable: false, deletable: false, organizationId: "", diff --git a/docs/models/components/webhookdonationcreatedpayload.md b/docs/models/components/webhookdonationcreatedpayload.md index e695438a..2b074c73 100644 --- a/docs/models/components/webhookdonationcreatedpayload.md +++ b/docs/models/components/webhookdonationcreatedpayload.md @@ -11,46 +11,47 @@ import { WebhookDonationCreatedPayload } from "@polar-sh/sdk/models/components"; let value: WebhookDonationCreatedPayload = { data: { - createdAt: new Date("2022-07-06T02:55:55.600Z"), - modifiedAt: new Date("2024-08-28T19:59:13.022Z"), + createdAt: new Date("2022-04-23T05:15:54.733Z"), + modifiedAt: new Date("2023-11-19T08:50:07.120Z"), id: "", - amount: 148379, - currency: "Bond Markets Units European Composite Unit (EURCO)", + amount: 783274, + currency: "Moroccan Dirham", message: "", donor: { id: "", - publicName: "", + name: "", avatarUrl: "", + isPersonal: false, }, - email: "Kenyatta_Wiegand98@gmail.com", + email: "Sheila_Cormier5@gmail.com", issue: { - id: "0f816ff3-477c-413e-902c-14125b0960a6", - number: 401688, + id: "9ff8f0f8-16ff-4347-bc13-e902c14125b0", + number: 624498, title: "", - state: "closed", - issueCreatedAt: new Date("2022-04-05T00:44:28.497Z"), + state: "open", + issueCreatedAt: new Date("2022-02-08T23:56:37.370Z"), needsConfirmationSolved: false, funding: {}, repository: { - id: "51a472af-923c-4594-9f83-f350cf876ffb", + id: "a668151a-472a-4f92-bc59-49f83f350cf8", isPrivate: false, name: "MyOrg", - description: "Persistent 4th generation attitude", + description: "Multi-layered fault-tolerant website", stars: 1337, license: "", homepage: "", profileSettings: {}, organization: { - id: "c6ecbb4e-243c-4f78-9ffa-feda53e5ae6e", + id: "fb901c6e-cbb4-4e24-bcf7-89ffafeda53e", name: "", avatarUrl: "", isPersonal: false, bio: "", prettyName: "", - company: "Nienow Group", + company: "Nikolaus Group", blog: "", location: "", - email: "Jimmie.Gibson74@gmail.com", + email: "Theodora_Barton@yahoo.com", twitterUsername: "", organizationId: "", }, diff --git a/docs/models/components/webhookordercreatedpayload.md b/docs/models/components/webhookordercreatedpayload.md index 24e6ce4f..1ae05208 100644 --- a/docs/models/components/webhookordercreatedpayload.md +++ b/docs/models/components/webhookordercreatedpayload.md @@ -11,54 +11,53 @@ import { WebhookOrderCreatedPayload } from "@polar-sh/sdk/models/components"; let value: WebhookOrderCreatedPayload = { data: { - createdAt: new Date("2023-11-13T08:17:15.757Z"), - modifiedAt: new Date("2023-05-16T17:53:37.409Z"), + createdAt: new Date("2023-01-21T17:19:50.907Z"), + modifiedAt: new Date("2023-10-20T19:28:55.834Z"), id: "", - amount: 288570, - taxAmount: 85066, - currency: "Tala", + amount: 897543, + taxAmount: 654082, + currency: "Lilangeni", userId: "", productId: "", productPriceId: "", subscriptionId: "", user: { id: "", - email: "Bertha32@gmail.com", + email: "Florence.Ortiz@yahoo.com", publicName: "", githubUsername: "", avatarUrl: "", }, product: { - createdAt: new Date("2022-07-20T14:30:27.937Z"), - modifiedAt: new Date("2023-11-02T00:21:23.394Z"), + createdAt: new Date("2022-11-13T06:32:39.070Z"), + modifiedAt: new Date("2022-04-04T05:35:49.851Z"), id: "", name: "", - description: "Intuitive explicit portal", + description: "Synergized contextually-based array", isRecurring: false, isArchived: false, organizationId: "", - type: "business", + type: "free", isHighlighted: false, }, productPrice: { - createdAt: new Date("2024-01-14T03:40:29.200Z"), - modifiedAt: new Date("2023-06-19T11:50:17.389Z"), + createdAt: new Date("2022-12-19T22:20:38.778Z"), + modifiedAt: new Date("2022-07-20T14:30:27.937Z"), id: "", - priceAmount: 144691, + priceAmount: 611328, priceCurrency: "", isArchived: false, - recurringInterval: "month", }, subscription: { - createdAt: new Date("2022-07-04T04:11:25.479Z"), - modifiedAt: new Date("2023-04-12T05:46:01.669Z"), + createdAt: new Date("2023-03-18T17:11:45.531Z"), + modifiedAt: new Date("2023-02-07T22:02:19.982Z"), id: "", - status: "incomplete", - currentPeriodStart: new Date("2022-03-11T15:43:07.050Z"), - currentPeriodEnd: new Date("2022-10-17T17:00:32.142Z"), + status: "canceled", + currentPeriodStart: new Date("2024-03-06T22:40:47.679Z"), + currentPeriodEnd: new Date("2023-08-01T11:46:24.442Z"), cancelAtPeriodEnd: false, - startedAt: new Date("2022-08-17T05:53:37.129Z"), - endedAt: new Date("2023-01-17T19:10:33.392Z"), + startedAt: new Date("2024-01-14T03:40:29.200Z"), + endedAt: new Date("2023-06-19T11:50:17.389Z"), userId: "", productId: "", priceId: "", diff --git a/docs/models/components/webhookorganizationupdatedpayload.md b/docs/models/components/webhookorganizationupdatedpayload.md index 2eddbc4e..cb6f0806 100644 --- a/docs/models/components/webhookorganizationupdatedpayload.md +++ b/docs/models/components/webhookorganizationupdatedpayload.md @@ -11,21 +11,21 @@ import { WebhookOrganizationUpdatedPayload } from "@polar-sh/sdk/models/componen let value: WebhookOrganizationUpdatedPayload = { data: { - createdAt: new Date("2023-03-16T08:44:10.226Z"), - modifiedAt: new Date("2022-09-12T14:51:11.361Z"), + createdAt: new Date("2024-12-12T18:13:48.672Z"), + modifiedAt: new Date("2022-03-31T09:54:33.812Z"), id: "", name: "", slug: "", avatarUrl: "", bio: "", - company: "Leffler, Legros and Kuphal", + company: "Langworth - O'Reilly", blog: "", location: "", - email: "Timothy.Goldner@gmail.com", + email: "Gregory_Feeney52@gmail.com", twitterUsername: "", - pledgeMinimumAmount: 196374, + pledgeMinimumAmount: 498534, pledgeBadgeShowAmount: false, - defaultUpfrontSplitToContributors: 532320, + defaultUpfrontSplitToContributors: 237523, donationsEnabled: false, profileSettings: {}, featureSettings: {}, diff --git a/docs/models/components/webhookpledgecreatedpayload.md b/docs/models/components/webhookpledgecreatedpayload.md index 9981fe91..7adc53b8 100644 --- a/docs/models/components/webhookpledgecreatedpayload.md +++ b/docs/models/components/webhookpledgecreatedpayload.md @@ -11,41 +11,41 @@ import { WebhookPledgeCreatedPayload } from "@polar-sh/sdk/models/components"; let value: WebhookPledgeCreatedPayload = { data: { - createdAt: new Date("2023-10-03T17:07:23.022Z"), - modifiedAt: new Date("2023-06-06T05:53:45.930Z"), + createdAt: new Date("2024-03-08T07:39:12.720Z"), + modifiedAt: new Date("2022-04-20T07:22:31.472Z"), id: "", - amount: 756654, - currency: "Tanzanian Shilling", - state: "created", - type: "pay_upfront", + amount: 584593, + currency: "Sri Lanka Rupee", + state: "charge_disputed", + type: "pay_directly", issue: { - id: "e2f52d82-d351-43bb-af48-b656bcdb35ff", - number: 162358, + id: "44e2f52d-82d3-4513-bb6f-48b656bcdb35", + number: 973819, title: "", state: "closed", - issueCreatedAt: new Date("2022-11-15T18:16:45.053Z"), + issueCreatedAt: new Date("2022-06-27T22:39:48.120Z"), needsConfirmationSolved: false, funding: {}, repository: { - id: "b27537a8-cd9e-4731-9c17-7d525f77b114", + id: "e4b27537-a8cd-49e7-b19c-177d525f77b1", isPrivate: false, name: "MyOrg", - description: "Synergized transitional policy", + description: "Business-focused directional structure", stars: 1337, license: "", homepage: "", profileSettings: {}, organization: { - id: "52ff785f-c378-414d-8c98-e0c2bb89eb75", + id: "eb52ff78-5fc3-4781-8d4c-98e0c2bb89eb", name: "", avatarUrl: "", isPersonal: false, bio: "", prettyName: "", - company: "Murphy, Skiles and Kerluke", + company: "Hessel - Swift", blog: "", location: "", - email: "Harrison.Russel@gmail.com", + email: "Robert41@yahoo.com", twitterUsername: "", organizationId: "", }, diff --git a/docs/models/components/webhookpledgeupdatedpayload.md b/docs/models/components/webhookpledgeupdatedpayload.md index c4063437..934e5458 100644 --- a/docs/models/components/webhookpledgeupdatedpayload.md +++ b/docs/models/components/webhookpledgeupdatedpayload.md @@ -11,41 +11,41 @@ import { WebhookPledgeUpdatedPayload } from "@polar-sh/sdk/models/components"; let value: WebhookPledgeUpdatedPayload = { data: { - createdAt: new Date("2023-11-26T20:15:12.862Z"), - modifiedAt: new Date("2022-03-08T03:03:39.281Z"), + createdAt: new Date("2024-06-25T04:17:08.854Z"), + modifiedAt: new Date("2024-08-30T13:11:53.224Z"), id: "", - amount: 751033, - currency: "Bond Markets Units European Composite Unit (EURCO)", - state: "created", + amount: 103990, + currency: "UAE Dirham", + state: "disputed", type: "pay_upfront", issue: { - id: "69e51001-9c6d-4c5e-b476-2799bfbbe694", - number: 595198, + id: "ce2169e5-1001-49c6-9c5e-34762799bfbb", + number: 932080, title: "", - state: "closed", - issueCreatedAt: new Date("2024-03-18T17:39:35.300Z"), + state: "open", + issueCreatedAt: new Date("2023-10-22T11:28:24.123Z"), needsConfirmationSolved: false, funding: {}, repository: { - id: "2bb4ecae-6c3d-45db-bade-bd5daea4c506", + id: "49fb2bb4-ecae-46c3-95db-3adebd5daea4", isPrivate: false, name: "MyOrg", - description: "Profit-focused leading edge moratorium", + description: "Self-enabling explicit ability", stars: 1337, license: "", homepage: "", profileSettings: {}, organization: { - id: "a94c0264-4cf5-4e9d-9a45-78adc1ac600d", + id: "6a8aa94c-0264-44cf-9e9d-9a4578adc1ac", name: "", avatarUrl: "", isPersonal: false, bio: "", prettyName: "", - company: "Schoen, Altenwerth and Bechtelar", + company: "Bauch - Bartell", blog: "", location: "", - email: "Liza.Sawayn@gmail.com", + email: "Stephanie5@hotmail.com", twitterUsername: "", organizationId: "", }, diff --git a/docs/models/components/webhookproductcreatedpayload.md b/docs/models/components/webhookproductcreatedpayload.md index 05b3bec5..40573979 100644 --- a/docs/models/components/webhookproductcreatedpayload.md +++ b/docs/models/components/webhookproductcreatedpayload.md @@ -11,11 +11,11 @@ import { WebhookProductCreatedPayload } from "@polar-sh/sdk/models/components"; let value: WebhookProductCreatedPayload = { data: { - createdAt: new Date("2022-04-06T18:30:51.845Z"), - modifiedAt: new Date("2022-04-16T17:02:36.441Z"), + createdAt: new Date("2022-03-04T08:05:58.239Z"), + modifiedAt: new Date("2023-06-30T02:28:26.949Z"), id: "", name: "", - description: "Innovative systemic parallelism", + description: "Visionary asymmetric artificial intelligence", isRecurring: false, isArchived: false, organizationId: "", @@ -23,27 +23,25 @@ let value: WebhookProductCreatedPayload = { isHighlighted: false, prices: [ { - createdAt: new Date("2023-02-08T05:42:06.071Z"), - modifiedAt: new Date("2022-12-02T19:05:21.194Z"), + createdAt: new Date("2024-03-10T11:24:11.514Z"), + modifiedAt: new Date("2023-09-13T21:22:35.776Z"), id: "", - priceAmount: 342342, + priceAmount: 578210, priceCurrency: "", isArchived: false, - recurringInterval: "year", + recurringInterval: "month", }, ], benefits: [ { - createdAt: new Date("2023-09-22T03:20:01.030Z"), - modifiedAt: new Date("2022-12-11T18:32:09.289Z"), + createdAt: new Date("2023-01-11T04:58:25.406Z"), + modifiedAt: new Date("2024-12-19T16:03:13.461Z"), id: "", - description: "User-centric multi-state knowledge base", + type: "downloadables", + description: "Organized dynamic throughput", selectable: false, deletable: false, organizationId: "", - properties: { - paidArticles: false, - }, }, ], medias: [ @@ -51,17 +49,17 @@ let value: WebhookProductCreatedPayload = { id: "", organizationId: "", name: "", - path: "/rescue", + path: "/Users", mimeType: "", - size: 564667, + size: 559774, storageVersion: "", checksumEtag: "", checksumSha256Base64: "", checksumSha256Hex: "", - lastModifiedAt: new Date("2023-06-16T12:32:11.414Z"), + lastModifiedAt: new Date("2023-07-21T23:44:43.125Z"), version: "", isUploaded: false, - createdAt: new Date("2022-02-26T01:59:13.599Z"), + createdAt: new Date("2023-09-11T20:59:18.622Z"), }, ], }, diff --git a/docs/models/components/webhookproductupdatedpayload.md b/docs/models/components/webhookproductupdatedpayload.md index f102c9cd..7b6ec4a1 100644 --- a/docs/models/components/webhookproductupdatedpayload.md +++ b/docs/models/components/webhookproductupdatedpayload.md @@ -11,33 +11,33 @@ import { WebhookProductUpdatedPayload } from "@polar-sh/sdk/models/components"; let value: WebhookProductUpdatedPayload = { data: { - createdAt: new Date("2024-09-14T16:10:11.420Z"), - modifiedAt: new Date("2022-04-25T01:41:16.030Z"), + createdAt: new Date("2023-06-16T12:32:11.414Z"), + modifiedAt: new Date("2022-02-26T01:59:13.599Z"), id: "", name: "", - description: "Optional mobile secured line", + description: "Triple-buffered attitude-oriented knowledge user", isRecurring: false, isArchived: false, organizationId: "", - type: "business", + type: "individual", isHighlighted: false, prices: [ { - createdAt: new Date("2022-09-25T11:01:44.671Z"), - modifiedAt: new Date("2022-02-12T06:12:34.909Z"), + createdAt: new Date("2024-03-12T20:53:35.561Z"), + modifiedAt: new Date("2024-03-06T05:29:10.472Z"), id: "", - priceAmount: 963976, + priceAmount: 244032, priceCurrency: "", isArchived: false, - recurringInterval: "year", + recurringInterval: "month", }, ], benefits: [ { - createdAt: new Date("2022-08-26T16:33:18.549Z"), - modifiedAt: new Date("2022-09-18T20:38:54.808Z"), + createdAt: new Date("2024-04-27T07:53:12.695Z"), + modifiedAt: new Date("2024-03-23T09:31:34.975Z"), id: "", - description: "Triple-buffered multimedia alliance", + description: "Down-sized content-based superstructure", selectable: false, deletable: false, organizationId: "", @@ -51,17 +51,17 @@ let value: WebhookProductUpdatedPayload = { id: "", organizationId: "", name: "", - path: "/Network", + path: "/tmp", mimeType: "", - size: 333072, + size: 42924, storageVersion: "", checksumEtag: "", checksumSha256Base64: "", checksumSha256Hex: "", - lastModifiedAt: new Date("2024-03-08T07:39:12.720Z"), + lastModifiedAt: new Date("2023-01-08T08:57:06.777Z"), version: "", isUploaded: false, - createdAt: new Date("2022-04-20T07:22:31.472Z"), + createdAt: new Date("2023-01-01T01:07:35.992Z"), }, ], }, diff --git a/docs/models/components/webhooksubscriptioncreatedpayload.md b/docs/models/components/webhooksubscriptioncreatedpayload.md index dc250607..52372e12 100644 --- a/docs/models/components/webhooksubscriptioncreatedpayload.md +++ b/docs/models/components/webhooksubscriptioncreatedpayload.md @@ -11,30 +11,30 @@ import { WebhookSubscriptionCreatedPayload } from "@polar-sh/sdk/models/componen let value: WebhookSubscriptionCreatedPayload = { data: { - createdAt: new Date("2024-06-22T23:28:44.132Z"), - modifiedAt: new Date("2022-04-28T12:04:17.137Z"), + createdAt: new Date("2022-03-29T17:55:37.250Z"), + modifiedAt: new Date("2022-02-24T02:04:28.850Z"), id: "", - status: "past_due", - currentPeriodStart: new Date("2024-06-14T19:17:17.033Z"), - currentPeriodEnd: new Date("2023-08-22T07:48:59.376Z"), + status: "active", + currentPeriodStart: new Date("2022-11-18T00:08:26.950Z"), + currentPeriodEnd: new Date("2024-04-07T14:18:46.539Z"), cancelAtPeriodEnd: false, - startedAt: new Date("2023-06-03T13:33:10.353Z"), - endedAt: new Date("2023-10-08T08:06:10.997Z"), + startedAt: new Date("2024-02-23T16:44:36.773Z"), + endedAt: new Date("2022-02-05T08:54:59.720Z"), userId: "", productId: "", priceId: "", user: { - email: "Sophia.Reynolds@hotmail.com", + email: "Jacquelyn.DAmore66@yahoo.com", publicName: "", githubUsername: "", avatarUrl: "", }, product: { - createdAt: new Date("2023-04-08T07:31:58.107Z"), - modifiedAt: new Date("2023-02-14T08:50:00.905Z"), + createdAt: new Date("2024-06-14T19:17:17.033Z"), + modifiedAt: new Date("2023-08-22T07:48:59.376Z"), id: "", name: "", - description: "Reactive incremental frame", + description: "Multi-layered maximized structure", isRecurring: false, isArchived: false, organizationId: "", @@ -42,10 +42,10 @@ let value: WebhookSubscriptionCreatedPayload = { isHighlighted: false, prices: [ { - createdAt: new Date("2024-03-19T01:22:32.543Z"), - modifiedAt: new Date("2024-08-14T01:02:42.877Z"), + createdAt: new Date("2023-09-23T06:50:48.665Z"), + modifiedAt: new Date("2023-03-26T01:26:17.107Z"), id: "", - priceAmount: 5152, + priceAmount: 421819, priceCurrency: "", isArchived: false, recurringInterval: "month", @@ -53,10 +53,10 @@ let value: WebhookSubscriptionCreatedPayload = { ], benefits: [ { - createdAt: new Date("2024-01-20T19:14:35.379Z"), - modifiedAt: new Date("2024-10-04T18:43:22.566Z"), + createdAt: new Date("2023-07-20T03:21:03.976Z"), + modifiedAt: new Date("2023-01-27T11:59:02.339Z"), id: "", - description: "Assimilated next generation success", + description: "Team-oriented zero administration policy", selectable: false, deletable: false, organizationId: "", @@ -70,27 +70,28 @@ let value: WebhookSubscriptionCreatedPayload = { id: "", organizationId: "", name: "", - path: "/etc/ppp", + path: "/usr/share", mimeType: "", - size: 844854, + size: 5152, storageVersion: "", checksumEtag: "", checksumSha256Base64: "", checksumSha256Hex: "", - lastModifiedAt: new Date("2023-06-14T22:27:39.245Z"), + lastModifiedAt: new Date("2022-06-21T16:36:48.015Z"), version: "", isUploaded: false, - createdAt: new Date("2023-07-14T02:24:25.197Z"), + createdAt: new Date("2024-01-31T19:07:40.846Z"), }, ], }, price: { - createdAt: new Date("2022-05-20T22:43:19.573Z"), - modifiedAt: new Date("2023-01-29T11:00:42.421Z"), + createdAt: new Date("2024-10-04T18:43:22.566Z"), + modifiedAt: new Date("2022-02-07T08:11:50.595Z"), id: "", - priceAmount: 621473, + priceAmount: 710456, priceCurrency: "", isArchived: false, + recurringInterval: "year", }, }, }; diff --git a/docs/models/components/webhooksubscriptionupdatedpayload.md b/docs/models/components/webhooksubscriptionupdatedpayload.md index 6fe9ed35..d31f7b47 100644 --- a/docs/models/components/webhooksubscriptionupdatedpayload.md +++ b/docs/models/components/webhooksubscriptionupdatedpayload.md @@ -11,57 +11,56 @@ import { WebhookSubscriptionUpdatedPayload } from "@polar-sh/sdk/models/componen let value: WebhookSubscriptionUpdatedPayload = { data: { - createdAt: new Date("2023-11-12T19:14:09.581Z"), - modifiedAt: new Date("2022-04-04T05:50:28.145Z"), + createdAt: new Date("2023-06-18T02:32:25.845Z"), + modifiedAt: new Date("2022-12-23T12:36:25.838Z"), id: "", status: "active", - currentPeriodStart: new Date("2023-05-12T04:34:47.459Z"), - currentPeriodEnd: new Date("2024-08-08T00:00:20.417Z"), + currentPeriodStart: new Date("2023-06-29T14:50:43.901Z"), + currentPeriodEnd: new Date("2023-09-15T08:37:16.678Z"), cancelAtPeriodEnd: false, - startedAt: new Date("2024-10-19T04:50:03.107Z"), - endedAt: new Date("2023-11-19T23:56:05.934Z"), + startedAt: new Date("2022-07-08T17:26:09.397Z"), + endedAt: new Date("2023-11-12T19:14:09.581Z"), userId: "", productId: "", priceId: "", user: { - email: "Gretchen_Hahn@hotmail.com", + email: "Jessie_Kling62@gmail.com", publicName: "", githubUsername: "", avatarUrl: "", }, product: { - createdAt: new Date("2024-06-07T16:17:55.929Z"), - modifiedAt: new Date("2024-02-04T05:06:10.596Z"), + createdAt: new Date("2024-04-16T10:17:32.273Z"), + modifiedAt: new Date("2023-03-16T23:09:39.112Z"), id: "", name: "", - description: "Future-proofed high-level concept", + description: "Fully-configurable full-range success", isRecurring: false, isArchived: false, organizationId: "", - type: "free", + type: "business", isHighlighted: false, prices: [ { - createdAt: new Date("2023-09-23T18:50:35.990Z"), - modifiedAt: new Date("2024-08-18T03:00:36.875Z"), + createdAt: new Date("2023-01-17T14:50:27.063Z"), + modifiedAt: new Date("2023-05-23T19:48:04.040Z"), id: "", - priceAmount: 194901, + priceAmount: 211455, priceCurrency: "", isArchived: false, + recurringInterval: "month", }, ], benefits: [ { - createdAt: new Date("2024-03-23T09:21:28.000Z"), - modifiedAt: new Date("2022-05-12T15:38:28.027Z"), + createdAt: new Date("2023-09-23T18:50:35.990Z"), + modifiedAt: new Date("2024-08-18T03:00:36.875Z"), id: "", - description: "Upgradable empowering monitoring", + type: "articles", + description: "Universal optimal attitude", selectable: false, deletable: false, organizationId: "", - properties: { - paidArticles: false, - }, }, ], medias: [ @@ -69,25 +68,25 @@ let value: WebhookSubscriptionUpdatedPayload = { id: "", organizationId: "", name: "", - path: "/etc/ppp", + path: "/var/mail", mimeType: "", - size: 724994, + size: 334474, storageVersion: "", checksumEtag: "", checksumSha256Base64: "", checksumSha256Hex: "", - lastModifiedAt: new Date("2022-05-08T00:35:36.269Z"), + lastModifiedAt: new Date("2023-12-24T13:22:55.258Z"), version: "", isUploaded: false, - createdAt: new Date("2022-06-30T06:42:11.302Z"), + createdAt: new Date("2022-07-12T04:59:12.983Z"), }, ], }, price: { - createdAt: new Date("2024-03-31T01:16:59.768Z"), - modifiedAt: new Date("2022-03-04T08:05:58.239Z"), + createdAt: new Date("2022-05-08T00:35:36.269Z"), + modifiedAt: new Date("2022-06-30T06:42:11.302Z"), id: "", - priceAmount: 497357, + priceAmount: 899867, priceCurrency: "", isArchived: false, recurringInterval: "year", diff --git a/docs/sdks/advertisements/README.md b/docs/sdks/advertisements/README.md index b2e5ed33..16ef6148 100644 --- a/docs/sdks/advertisements/README.md +++ b/docs/sdks/advertisements/README.md @@ -6,7 +6,7 @@ ### Available Operations * [list](#list) - List Campaigns -* [retrieve](#retrieve) - Get Campaign +* [get](#get) - Get Campaign ## list @@ -90,7 +90,7 @@ run(); | errors.SDKError | 4xx-5xx | */* | -## retrieve +## get Get an advertisement campaign by ID. @@ -104,7 +104,7 @@ const polar = new Polar({ }); async function run() { - const result = await polar.advertisements.retrieve({ + const result = await polar.advertisements.get({ id: "", }); @@ -121,7 +121,7 @@ The standalone function version of this method: ```typescript import { PolarCore } from "@polar-sh/sdk/core.js"; -import { advertisementsRetrieve } from "@polar-sh/sdk/funcs/advertisementsRetrieve.js"; +import { advertisementsGet } from "@polar-sh/sdk/funcs/advertisementsGet.js"; // Use `PolarCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -130,7 +130,7 @@ const polar = new PolarCore({ }); async function run() { - const res = await advertisementsRetrieve(polar, { + const res = await advertisementsGet(polar, { id: "", }); diff --git a/docs/sdks/articles/README.md b/docs/sdks/articles/README.md index 860239fa..112b8635 100644 --- a/docs/sdks/articles/README.md +++ b/docs/sdks/articles/README.md @@ -7,7 +7,7 @@ * [list](#list) - List Articles * [create](#create) - Create Article -* [retrieve](#retrieve) - Get Article +* [get](#get) - Get Article * [update](#update) - Update Article * [delete](#delete) - Delete Article * [receivers](#receivers) - Get Article Receivers Count @@ -170,7 +170,7 @@ run(); | errors.SDKError | 4xx-5xx | */* | -## retrieve +## get Get an article by ID. @@ -184,7 +184,7 @@ const polar = new Polar({ }); async function run() { - const result = await polar.articles.retrieve({ + const result = await polar.articles.get({ id: "", }); @@ -201,7 +201,7 @@ The standalone function version of this method: ```typescript import { PolarCore } from "@polar-sh/sdk/core.js"; -import { articlesRetrieve } from "@polar-sh/sdk/funcs/articlesRetrieve.js"; +import { articlesGet } from "@polar-sh/sdk/funcs/articlesGet.js"; // Use `PolarCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -210,7 +210,7 @@ const polar = new PolarCore({ }); async function run() { - const res = await articlesRetrieve(polar, { + const res = await articlesGet(polar, { id: "", }); diff --git a/docs/sdks/benefits/README.md b/docs/sdks/benefits/README.md index 929bf753..5be607e7 100644 --- a/docs/sdks/benefits/README.md +++ b/docs/sdks/benefits/README.md @@ -7,7 +7,7 @@ * [list](#list) - List Benefits * [create](#create) - Create Benefit -* [retrieve](#retrieve) - Get Benefit +* [get](#get) - Get Benefit * [update](#update) - Update Benefit * [delete](#delete) - Delete Benefit * [grants](#grants) - List Benefit Grants @@ -176,7 +176,7 @@ run(); | errors.SDKError | 4xx-5xx | */* | -## retrieve +## get Get a benefit by ID. @@ -190,7 +190,7 @@ const polar = new Polar({ }); async function run() { - const result = await polar.benefits.retrieve({ + const result = await polar.benefits.get({ id: "", }); @@ -207,7 +207,7 @@ The standalone function version of this method: ```typescript import { PolarCore } from "@polar-sh/sdk/core.js"; -import { benefitsRetrieve } from "@polar-sh/sdk/funcs/benefitsRetrieve.js"; +import { benefitsGet } from "@polar-sh/sdk/funcs/benefitsGet.js"; // Use `PolarCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -216,7 +216,7 @@ const polar = new PolarCore({ }); async function run() { - const res = await benefitsRetrieve(polar, { + const res = await benefitsGet(polar, { id: "", }); diff --git a/docs/sdks/checkouts/README.md b/docs/sdks/checkouts/README.md index 0a9ee942..b9a13047 100644 --- a/docs/sdks/checkouts/README.md +++ b/docs/sdks/checkouts/README.md @@ -6,7 +6,7 @@ ### Available Operations * [create](#create) - Create Checkout -* [retrieve](#retrieve) - Get Checkout +* [get](#get) - Get Checkout ## create @@ -88,7 +88,7 @@ run(); | errors.SDKError | 4xx-5xx | */* | -## retrieve +## get Get an active checkout session by ID. @@ -102,7 +102,7 @@ const polar = new Polar({ }); async function run() { - const result = await polar.checkouts.retrieve({ + const result = await polar.checkouts.get({ id: "", }); @@ -119,7 +119,7 @@ The standalone function version of this method: ```typescript import { PolarCore } from "@polar-sh/sdk/core.js"; -import { checkoutsRetrieve } from "@polar-sh/sdk/funcs/checkoutsRetrieve.js"; +import { checkoutsGet } from "@polar-sh/sdk/funcs/checkoutsGet.js"; // Use `PolarCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -128,7 +128,7 @@ const polar = new PolarCore({ }); async function run() { - const res = await checkoutsRetrieve(polar, { + const res = await checkoutsGet(polar, { id: "", }); diff --git a/docs/sdks/clients/README.md b/docs/sdks/clients/README.md index d776eec3..9b5ccd9c 100644 --- a/docs/sdks/clients/README.md +++ b/docs/sdks/clients/README.md @@ -7,7 +7,7 @@ * [list](#list) - List Clients * [create](#create) - Create Client -* [retrieve](#retrieve) - Get Client +* [get](#get) - Get Client * [update](#update) - Update Client * [delete](#delete) - Delete Client @@ -173,7 +173,7 @@ run(); | errors.SDKError | 4xx-5xx | */* | -## retrieve +## get Get an OAuth2 client by Client ID. @@ -187,7 +187,7 @@ const polar = new Polar({ }); async function run() { - const result = await polar.oauth2.clients.retrieve({ + const result = await polar.oauth2.clients.get({ clientId: "", }); @@ -204,7 +204,7 @@ The standalone function version of this method: ```typescript import { PolarCore } from "@polar-sh/sdk/core.js"; -import { oauth2ClientsRetrieve } from "@polar-sh/sdk/funcs/oauth2ClientsRetrieve.js"; +import { oauth2ClientsGet } from "@polar-sh/sdk/funcs/oauth2ClientsGet.js"; // Use `PolarCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -213,7 +213,7 @@ const polar = new PolarCore({ }); async function run() { - const res = await oauth2ClientsRetrieve(polar, { + const res = await oauth2ClientsGet(polar, { clientId: "", }); diff --git a/docs/sdks/downloadables/README.md b/docs/sdks/downloadables/README.md index 548cf384..13ed4175 100644 --- a/docs/sdks/downloadables/README.md +++ b/docs/sdks/downloadables/README.md @@ -6,7 +6,7 @@ ### Available Operations * [list](#list) - List Downloadables -* [retrieve](#retrieve) - Get Downloadable +* [get](#get) - Get Downloadable ## list @@ -86,7 +86,7 @@ run(); | errors.SDKError | 4xx-5xx | */* | -## retrieve +## get Get Downloadable @@ -100,7 +100,7 @@ const polar = new Polar({ }); async function run() { - const result = await polar.users.downloadables.retrieve({ + const result = await polar.users.downloadables.get({ token: "", }); @@ -117,7 +117,7 @@ The standalone function version of this method: ```typescript import { PolarCore } from "@polar-sh/sdk/core.js"; -import { usersDownloadablesRetrieve } from "@polar-sh/sdk/funcs/usersDownloadablesRetrieve.js"; +import { usersDownloadablesGet } from "@polar-sh/sdk/funcs/usersDownloadablesGet.js"; // Use `PolarCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -126,7 +126,7 @@ const polar = new PolarCore({ }); async function run() { - const res = await usersDownloadablesRetrieve(polar, { + const res = await usersDownloadablesGet(polar, { token: "", }); diff --git a/docs/sdks/licensekeys/README.md b/docs/sdks/licensekeys/README.md index 0a4fdf5f..cacde658 100644 --- a/docs/sdks/licensekeys/README.md +++ b/docs/sdks/licensekeys/README.md @@ -6,7 +6,7 @@ ### Available Operations * [list](#list) - List License Keys -* [retrieve](#retrieve) - Get License Key +* [get](#get) - Get License Key * [update](#update) - Update License Key * [getActivation](#getactivation) - Get Activation @@ -90,7 +90,7 @@ run(); | errors.SDKError | 4xx-5xx | */* | -## retrieve +## get Get a license key. @@ -104,7 +104,7 @@ const polar = new Polar({ }); async function run() { - const result = await polar.licenseKeys.retrieve({ + const result = await polar.licenseKeys.get({ id: "", }); @@ -121,7 +121,7 @@ The standalone function version of this method: ```typescript import { PolarCore } from "@polar-sh/sdk/core.js"; -import { licenseKeysRetrieve } from "@polar-sh/sdk/funcs/licenseKeysRetrieve.js"; +import { licenseKeysGet } from "@polar-sh/sdk/funcs/licenseKeysGet.js"; // Use `PolarCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -130,7 +130,7 @@ const polar = new PolarCore({ }); async function run() { - const res = await licenseKeysRetrieve(polar, { + const res = await licenseKeysGet(polar, { id: "", }); diff --git a/docs/sdks/metrics/README.md b/docs/sdks/metrics/README.md index 02a2d0bb..778869cd 100644 --- a/docs/sdks/metrics/README.md +++ b/docs/sdks/metrics/README.md @@ -5,10 +5,10 @@ ### Available Operations -* [retrieve](#retrieve) - Get Metrics +* [get](#get) - Get Metrics * [limits](#limits) - Get Metrics Limits -## retrieve +## get Get metrics about your orders and subscriptions. @@ -23,10 +23,10 @@ const polar = new Polar({ }); 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.metrics.get({ + startDate: new RFCDate("2024-02-07"), + endDate: new RFCDate("2022-04-09"), + interval: "week", }); // Handle the result @@ -42,7 +42,7 @@ The standalone function version of this method: ```typescript import { PolarCore } from "@polar-sh/sdk/core.js"; -import { metricsRetrieve } from "@polar-sh/sdk/funcs/metricsRetrieve.js"; +import { metricsGet } from "@polar-sh/sdk/funcs/metricsGet.js"; import { RFCDate } from "@polar-sh/sdk/types"; // Use `PolarCore` for best tree-shaking performance. @@ -52,10 +52,10 @@ const polar = new PolarCore({ }); async function run() { - const res = await metricsRetrieve(polar, { - startDate: new RFCDate("2022-12-21"), - endDate: new RFCDate("2023-10-22"), - interval: "year", + const res = await metricsGet(polar, { + startDate: new RFCDate("2023-07-26"), + endDate: new RFCDate("2022-03-28"), + interval: "hour", }); if (!res.ok) { diff --git a/docs/sdks/orders/README.md b/docs/sdks/orders/README.md index 538f6677..69231f88 100644 --- a/docs/sdks/orders/README.md +++ b/docs/sdks/orders/README.md @@ -6,7 +6,7 @@ ### Available Operations * [list](#list) - List Orders -* [retrieve](#retrieve) - Get Order +* [get](#get) - Get Order * [invoice](#invoice) - Get Order Invoice ## list @@ -87,7 +87,7 @@ run(); | errors.SDKError | 4xx-5xx | */* | -## retrieve +## get Get an order by ID. @@ -101,7 +101,7 @@ const polar = new Polar({ }); async function run() { - const result = await polar.orders.retrieve({ + const result = await polar.orders.get({ id: "", }); @@ -118,7 +118,7 @@ The standalone function version of this method: ```typescript import { PolarCore } from "@polar-sh/sdk/core.js"; -import { ordersRetrieve } from "@polar-sh/sdk/funcs/ordersRetrieve.js"; +import { ordersGet } from "@polar-sh/sdk/funcs/ordersGet.js"; // Use `PolarCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -127,7 +127,7 @@ const polar = new PolarCore({ }); async function run() { - const res = await ordersRetrieve(polar, { + const res = await ordersGet(polar, { id: "", }); diff --git a/docs/sdks/organizations/README.md b/docs/sdks/organizations/README.md index 7ed73c19..18909d80 100644 --- a/docs/sdks/organizations/README.md +++ b/docs/sdks/organizations/README.md @@ -7,7 +7,7 @@ * [list](#list) - List Organizations * [create](#create) - Create Organization -* [retrieve](#retrieve) - Get Organization +* [get](#get) - Get Organization * [update](#update) - Update Organization ## list @@ -168,7 +168,7 @@ run(); | errors.SDKError | 4xx-5xx | */* | -## retrieve +## get Get an organization by ID. @@ -182,7 +182,7 @@ const polar = new Polar({ }); async function run() { - const result = await polar.organizations.retrieve({ + const result = await polar.organizations.get({ id: "", }); @@ -199,7 +199,7 @@ The standalone function version of this method: ```typescript import { PolarCore } from "@polar-sh/sdk/core.js"; -import { organizationsRetrieve } from "@polar-sh/sdk/funcs/organizationsRetrieve.js"; +import { organizationsGet } from "@polar-sh/sdk/funcs/organizationsGet.js"; // Use `PolarCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -208,7 +208,7 @@ const polar = new PolarCore({ }); async function run() { - const res = await organizationsRetrieve(polar, { + const res = await organizationsGet(polar, { id: "", }); diff --git a/docs/sdks/polaradvertisements/README.md b/docs/sdks/polaradvertisements/README.md index 804fef2f..01f824f8 100644 --- a/docs/sdks/polaradvertisements/README.md +++ b/docs/sdks/polaradvertisements/README.md @@ -7,7 +7,7 @@ * [list](#list) - List Advertisements * [create](#create) - Create Advertisement -* [retrieve](#retrieve) - Get Advertisement +* [get](#get) - Get Advertisement * [update](#update) - Update Advertisement * [delete](#delete) - Delete Advertisement * [enable](#enable) - Enable Advertisement @@ -172,7 +172,7 @@ run(); | errors.SDKError | 4xx-5xx | */* | -## retrieve +## get Get an advertisement campaign by ID. @@ -186,7 +186,7 @@ const polar = new Polar({ }); async function run() { - const result = await polar.users.advertisements.retrieve({ + const result = await polar.users.advertisements.get({ id: "", }); @@ -203,7 +203,7 @@ The standalone function version of this method: ```typescript import { PolarCore } from "@polar-sh/sdk/core.js"; -import { usersAdvertisementsRetrieve } from "@polar-sh/sdk/funcs/usersAdvertisementsRetrieve.js"; +import { usersAdvertisementsGet } from "@polar-sh/sdk/funcs/usersAdvertisementsGet.js"; // Use `PolarCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -212,7 +212,7 @@ const polar = new PolarCore({ }); async function run() { - const res = await usersAdvertisementsRetrieve(polar, { + const res = await usersAdvertisementsGet(polar, { id: "", }); diff --git a/docs/sdks/polarbenefits/README.md b/docs/sdks/polarbenefits/README.md index 2cf61584..14ca086b 100644 --- a/docs/sdks/polarbenefits/README.md +++ b/docs/sdks/polarbenefits/README.md @@ -6,7 +6,7 @@ ### Available Operations * [list](#list) - List Benefits -* [retrieve](#retrieve) - Get Benefit +* [get](#get) - Get Benefit ## list @@ -86,7 +86,7 @@ run(); | errors.SDKError | 4xx-5xx | */* | -## retrieve +## get Get a granted benefit by ID. @@ -100,7 +100,7 @@ const polar = new Polar({ }); async function run() { - const result = await polar.users.benefits.retrieve({ + const result = await polar.users.benefits.get({ id: "", }); @@ -117,7 +117,7 @@ The standalone function version of this method: ```typescript import { PolarCore } from "@polar-sh/sdk/core.js"; -import { usersBenefitsRetrieve } from "@polar-sh/sdk/funcs/usersBenefitsRetrieve.js"; +import { usersBenefitsGet } from "@polar-sh/sdk/funcs/usersBenefitsGet.js"; // Use `PolarCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -126,7 +126,7 @@ const polar = new PolarCore({ }); async function run() { - const res = await usersBenefitsRetrieve(polar, { + const res = await usersBenefitsGet(polar, { id: "", }); diff --git a/docs/sdks/polarlicensekeys/README.md b/docs/sdks/polarlicensekeys/README.md index 4bed1c6a..5d32f5a6 100644 --- a/docs/sdks/polarlicensekeys/README.md +++ b/docs/sdks/polarlicensekeys/README.md @@ -6,7 +6,7 @@ ### Available Operations * [list](#list) - List License Keys -* [retrieve](#retrieve) - Get License Key +* [get](#get) - Get License Key * [validate](#validate) - Validate License Key * [activate](#activate) - Activate License Key * [deactivate](#deactivate) - Deactivate License Key @@ -91,7 +91,7 @@ run(); | errors.SDKError | 4xx-5xx | */* | -## retrieve +## get Get a license key. @@ -105,7 +105,7 @@ const polar = new Polar({ }); async function run() { - const result = await polar.users.licenseKeys.retrieve({ + const result = await polar.users.licenseKeys.get({ id: "", }); @@ -122,7 +122,7 @@ The standalone function version of this method: ```typescript import { PolarCore } from "@polar-sh/sdk/core.js"; -import { usersLicenseKeysRetrieve } from "@polar-sh/sdk/funcs/usersLicenseKeysRetrieve.js"; +import { usersLicenseKeysGet } from "@polar-sh/sdk/funcs/usersLicenseKeysGet.js"; // Use `PolarCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -131,7 +131,7 @@ const polar = new PolarCore({ }); async function run() { - const res = await usersLicenseKeysRetrieve(polar, { + const res = await usersLicenseKeysGet(polar, { id: "", }); diff --git a/docs/sdks/polarorders/README.md b/docs/sdks/polarorders/README.md index c8181094..347a1612 100644 --- a/docs/sdks/polarorders/README.md +++ b/docs/sdks/polarorders/README.md @@ -6,7 +6,7 @@ ### Available Operations * [list](#list) - List Orders -* [retrieve](#retrieve) - Get Order +* [get](#get) - Get Order * [invoice](#invoice) - Get Order Invoice ## list @@ -87,7 +87,7 @@ run(); | errors.SDKError | 4xx-5xx | */* | -## retrieve +## get Get an order by ID. @@ -101,7 +101,7 @@ const polar = new Polar({ }); async function run() { - const result = await polar.users.orders.retrieve({ + const result = await polar.users.orders.get({ id: "", }); @@ -118,7 +118,7 @@ The standalone function version of this method: ```typescript import { PolarCore } from "@polar-sh/sdk/core.js"; -import { usersOrdersRetrieve } from "@polar-sh/sdk/funcs/usersOrdersRetrieve.js"; +import { usersOrdersGet } from "@polar-sh/sdk/funcs/usersOrdersGet.js"; // Use `PolarCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -127,7 +127,7 @@ const polar = new PolarCore({ }); async function run() { - const res = await usersOrdersRetrieve(polar, { + const res = await usersOrdersGet(polar, { id: "", }); diff --git a/docs/sdks/polarsubscriptions/README.md b/docs/sdks/polarsubscriptions/README.md index fb87fda6..9a19932e 100644 --- a/docs/sdks/polarsubscriptions/README.md +++ b/docs/sdks/polarsubscriptions/README.md @@ -7,7 +7,7 @@ * [list](#list) - List Subscriptions * [create](#create) - Create Free Subscription -* [retrieve](#retrieve) - Get Subscription +* [get](#get) - Get Subscription * [update](#update) - Update Subscription * [cancel](#cancel) - Cancel Subscription @@ -171,7 +171,7 @@ run(); | errors.SDKError | 4xx-5xx | */* | -## retrieve +## get Get a subscription by ID. @@ -185,7 +185,7 @@ const polar = new Polar({ }); async function run() { - const result = await polar.users.subscriptions.retrieve({ + const result = await polar.users.subscriptions.get({ id: "", }); @@ -202,7 +202,7 @@ The standalone function version of this method: ```typescript import { PolarCore } from "@polar-sh/sdk/core.js"; -import { usersSubscriptionsRetrieve } from "@polar-sh/sdk/funcs/usersSubscriptionsRetrieve.js"; +import { usersSubscriptionsGet } from "@polar-sh/sdk/funcs/usersSubscriptionsGet.js"; // Use `PolarCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -211,7 +211,7 @@ const polar = new PolarCore({ }); async function run() { - const res = await usersSubscriptionsRetrieve(polar, { + const res = await usersSubscriptionsGet(polar, { id: "", }); diff --git a/docs/sdks/products/README.md b/docs/sdks/products/README.md index ca1cffd6..f9794718 100644 --- a/docs/sdks/products/README.md +++ b/docs/sdks/products/README.md @@ -7,7 +7,7 @@ * [list](#list) - List Products * [create](#create) - Create Product -* [retrieve](#retrieve) - Get Product +* [get](#get) - Get Product * [update](#update) - Update Product * [updateBenefits](#updatebenefits) - Update Product Benefits @@ -179,7 +179,7 @@ run(); | errors.SDKError | 4xx-5xx | */* | -## retrieve +## get Get a product by ID. @@ -193,7 +193,7 @@ const polar = new Polar({ }); async function run() { - const result = await polar.products.retrieve({ + const result = await polar.products.get({ id: "", }); @@ -210,7 +210,7 @@ The standalone function version of this method: ```typescript import { PolarCore } from "@polar-sh/sdk/core.js"; -import { productsRetrieve } from "@polar-sh/sdk/funcs/productsRetrieve.js"; +import { productsGet } from "@polar-sh/sdk/funcs/productsGet.js"; // Use `PolarCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -219,7 +219,7 @@ const polar = new PolarCore({ }); async function run() { - const res = await productsRetrieve(polar, { + const res = await productsGet(polar, { id: "", }); diff --git a/docs/sdks/repositories/README.md b/docs/sdks/repositories/README.md index e3e7438c..46a611c4 100644 --- a/docs/sdks/repositories/README.md +++ b/docs/sdks/repositories/README.md @@ -6,7 +6,7 @@ ### Available Operations * [list](#list) - List Repositories -* [retrieve](#retrieve) - Get Repository +* [get](#get) - Get Repository * [update](#update) - Update Repository ## list @@ -87,7 +87,7 @@ run(); | errors.SDKError | 4xx-5xx | */* | -## retrieve +## get Get a repository by ID. @@ -101,7 +101,7 @@ const polar = new Polar({ }); async function run() { - const result = await polar.repositories.retrieve({ + const result = await polar.repositories.get({ id: "", }); @@ -118,7 +118,7 @@ The standalone function version of this method: ```typescript import { PolarCore } from "@polar-sh/sdk/core.js"; -import { repositoriesRetrieve } from "@polar-sh/sdk/funcs/repositoriesRetrieve.js"; +import { repositoriesGet } from "@polar-sh/sdk/funcs/repositoriesGet.js"; // Use `PolarCore` for best tree-shaking performance. // You can create one instance of it to use across an application. @@ -127,7 +127,7 @@ const polar = new PolarCore({ }); async function run() { - const res = await repositoriesRetrieve(polar, { + const res = await repositoriesGet(polar, { id: "", }); diff --git a/jsr.json b/jsr.json index 7a5b5797..67ded9f0 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "@polar-sh/sdk", - "version": "0.6.1", + "version": "0.7.0", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index 3d06afbb..b06b5ba2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,13 +1,14 @@ { "name": "@polar-sh/sdk", - "version": "0.6.1", + "version": "0.7.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@polar-sh/sdk", - "version": "0.6.1", + "version": "0.7.0", "devDependencies": { + "@types/node": "^18.19.3", "@typescript-eslint/eslint-plugin": "^7.7.1", "@typescript-eslint/parser": "^7.7.1", "eslint": "^8.57.0", @@ -205,6 +206,16 @@ "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", "dev": true }, + "node_modules/@types/node": { + "version": "18.19.48", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.48.tgz", + "integrity": "sha512-7WevbG4ekUcRQSZzOwxWgi5dZmTak7FaxXDoW7xVxPBmKx1rTzfmRLkeCgJzcbBnOV2dkhAPc8cCeT6agocpjg==", + "dev": true, + "license": "MIT", + "dependencies": { + "undici-types": "~5.26.4" + } + }, "node_modules/@typescript-eslint/eslint-plugin": { "version": "7.18.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.18.0.tgz", @@ -3005,6 +3016,13 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "dev": true, + "license": "MIT" + }, "node_modules/uri-js": { "version": "4.4.1", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", diff --git a/package.json b/package.json index b9181cab..2a9090d6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@polar-sh/sdk", - "version": "0.6.1", + "version": "0.7.0", "author": "Speakeasy", "main": "./index.js", "sideEffects": false, @@ -17,6 +17,7 @@ "zod": ">= 3" }, "devDependencies": { + "@types/node": "^18.19.3", "@typescript-eslint/eslint-plugin": "^7.7.1", "@typescript-eslint/parser": "^7.7.1", "eslint": "^8.57.0", diff --git a/src/funcs/advertisementsRetrieve.ts b/src/funcs/advertisementsGet.ts similarity index 98% rename from src/funcs/advertisementsRetrieve.ts rename to src/funcs/advertisementsGet.ts index 77aac9f8..8fe2f5c9 100644 --- a/src/funcs/advertisementsRetrieve.ts +++ b/src/funcs/advertisementsGet.ts @@ -29,7 +29,7 @@ import { Result } from "../types/fp.js"; * @remarks * Get an advertisement campaign by ID. */ -export async function advertisementsRetrieve( +export async function advertisementsGet( client$: PolarCore, request: operations.AdvertisementsGetRequest, options?: RequestOptions diff --git a/src/funcs/articlesRetrieve.ts b/src/funcs/articlesGet.ts similarity index 99% rename from src/funcs/articlesRetrieve.ts rename to src/funcs/articlesGet.ts index 0f5a982c..c07afaf3 100644 --- a/src/funcs/articlesRetrieve.ts +++ b/src/funcs/articlesGet.ts @@ -29,7 +29,7 @@ import { Result } from "../types/fp.js"; * @remarks * Get an article by ID. */ -export async function articlesRetrieve( +export async function articlesGet( client$: PolarCore, request: operations.ArticlesGetRequest, options?: RequestOptions diff --git a/src/funcs/benefitsRetrieve.ts b/src/funcs/benefitsGet.ts similarity index 99% rename from src/funcs/benefitsRetrieve.ts rename to src/funcs/benefitsGet.ts index eb26e1f2..5b594423 100644 --- a/src/funcs/benefitsRetrieve.ts +++ b/src/funcs/benefitsGet.ts @@ -28,7 +28,7 @@ import { Result } from "../types/fp.js"; * @remarks * Get a benefit by ID. */ -export async function benefitsRetrieve( +export async function benefitsGet( client$: PolarCore, request: operations.BenefitsGetRequest, options?: RequestOptions diff --git a/src/funcs/checkoutsRetrieve.ts b/src/funcs/checkoutsGet.ts similarity index 98% rename from src/funcs/checkoutsRetrieve.ts rename to src/funcs/checkoutsGet.ts index 2ed138c2..b1c67c2f 100644 --- a/src/funcs/checkoutsRetrieve.ts +++ b/src/funcs/checkoutsGet.ts @@ -29,7 +29,7 @@ import { Result } from "../types/fp.js"; * @remarks * Get an active checkout session by ID. */ -export async function checkoutsRetrieve( +export async function checkoutsGet( client$: PolarCore, request: operations.CheckoutsGetRequest, options?: RequestOptions diff --git a/src/funcs/licenseKeysRetrieve.ts b/src/funcs/licenseKeysGet.ts similarity index 98% rename from src/funcs/licenseKeysRetrieve.ts rename to src/funcs/licenseKeysGet.ts index 2679ddaa..1c3e53a8 100644 --- a/src/funcs/licenseKeysRetrieve.ts +++ b/src/funcs/licenseKeysGet.ts @@ -29,7 +29,7 @@ import { Result } from "../types/fp.js"; * @remarks * Get a license key. */ -export async function licenseKeysRetrieve( +export async function licenseKeysGet( client$: PolarCore, request: operations.LicenseKeysGetRequest, options?: RequestOptions diff --git a/src/funcs/metricsRetrieve.ts b/src/funcs/metricsGet.ts similarity index 99% rename from src/funcs/metricsRetrieve.ts rename to src/funcs/metricsGet.ts index 2c31d4e3..b1852814 100644 --- a/src/funcs/metricsRetrieve.ts +++ b/src/funcs/metricsGet.ts @@ -29,7 +29,7 @@ import { Result } from "../types/fp.js"; * @remarks * Get metrics about your orders and subscriptions. */ -export async function metricsRetrieve( +export async function metricsGet( client$: PolarCore, request: operations.MetricsGetRequest, options?: RequestOptions diff --git a/src/funcs/oauth2ClientsRetrieve.ts b/src/funcs/oauth2ClientsGet.ts similarity index 98% rename from src/funcs/oauth2ClientsRetrieve.ts rename to src/funcs/oauth2ClientsGet.ts index 6c92bf29..7e77b3bc 100644 --- a/src/funcs/oauth2ClientsRetrieve.ts +++ b/src/funcs/oauth2ClientsGet.ts @@ -29,7 +29,7 @@ import * as z from "zod"; * @remarks * Get an OAuth2 client by Client ID. */ -export async function oauth2ClientsRetrieve( +export async function oauth2ClientsGet( client$: PolarCore, request: operations.Oauth2ClientsOauth2GetClientRequest, options?: RequestOptions diff --git a/src/funcs/ordersRetrieve.ts b/src/funcs/ordersGet.ts similarity index 99% rename from src/funcs/ordersRetrieve.ts rename to src/funcs/ordersGet.ts index 19a4cc13..5102e8f5 100644 --- a/src/funcs/ordersRetrieve.ts +++ b/src/funcs/ordersGet.ts @@ -29,7 +29,7 @@ import { Result } from "../types/fp.js"; * @remarks * Get an order by ID. */ -export async function ordersRetrieve( +export async function ordersGet( client$: PolarCore, request: operations.OrdersGetRequest, options?: RequestOptions diff --git a/src/funcs/organizationsRetrieve.ts b/src/funcs/organizationsGet.ts similarity index 98% rename from src/funcs/organizationsRetrieve.ts rename to src/funcs/organizationsGet.ts index 02e7cb3c..2d051d81 100644 --- a/src/funcs/organizationsRetrieve.ts +++ b/src/funcs/organizationsGet.ts @@ -29,7 +29,7 @@ import { Result } from "../types/fp.js"; * @remarks * Get an organization by ID. */ -export async function organizationsRetrieve( +export async function organizationsGet( client$: PolarCore, request: operations.OrganizationsGetRequest, options?: RequestOptions diff --git a/src/funcs/productsRetrieve.ts b/src/funcs/productsGet.ts similarity index 99% rename from src/funcs/productsRetrieve.ts rename to src/funcs/productsGet.ts index 8747e82f..04b5036d 100644 --- a/src/funcs/productsRetrieve.ts +++ b/src/funcs/productsGet.ts @@ -29,7 +29,7 @@ import { Result } from "../types/fp.js"; * @remarks * Get a product by ID. */ -export async function productsRetrieve( +export async function productsGet( client$: PolarCore, request: operations.ProductsGetRequest, options?: RequestOptions diff --git a/src/funcs/repositoriesRetrieve.ts b/src/funcs/repositoriesGet.ts similarity index 98% rename from src/funcs/repositoriesRetrieve.ts rename to src/funcs/repositoriesGet.ts index b2be5655..b55330af 100644 --- a/src/funcs/repositoriesRetrieve.ts +++ b/src/funcs/repositoriesGet.ts @@ -29,7 +29,7 @@ import { Result } from "../types/fp.js"; * @remarks * Get a repository by ID. */ -export async function repositoriesRetrieve( +export async function repositoriesGet( client$: PolarCore, request: operations.RepositoriesGetRequest, options?: RequestOptions diff --git a/src/funcs/subscriptionsImportSubscriptions.ts b/src/funcs/subscriptionsImportSubscriptions.ts index dcfffd67..241a2810 100644 --- a/src/funcs/subscriptionsImportSubscriptions.ts +++ b/src/funcs/subscriptionsImportSubscriptions.ts @@ -3,6 +3,7 @@ */ import { PolarCore } from "../core.js"; +import { readableStreamToArrayBuffer } from "../lib/files.js"; import * as m$ from "../lib/matchers.js"; import * as schemas$ from "../lib/schemas.js"; import { RequestOptions } from "../lib/sdks.js"; @@ -21,6 +22,7 @@ import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import { isBlobLike } from "../types/blobs.js"; import { Result } from "../types/fp.js"; +import { isReadableStream } from "../types/streams.js"; /** * Import Subscriptions @@ -60,6 +62,10 @@ export async function subscriptionsImportSubscriptions( if (isBlobLike(payload$.file)) { body$.append("file", payload$.file); + } else if (isReadableStream(payload$.file.content)) { + const buffer = await readableStreamToArrayBuffer(payload$.file.content); + const blob = new Blob([buffer], { type: "application/octet-stream" }); + body$.append("file", blob); } else { body$.append( "file", diff --git a/src/funcs/usersAdvertisementsRetrieve.ts b/src/funcs/usersAdvertisementsGet.ts similarity index 98% rename from src/funcs/usersAdvertisementsRetrieve.ts rename to src/funcs/usersAdvertisementsGet.ts index 40b67d47..fa6a5beb 100644 --- a/src/funcs/usersAdvertisementsRetrieve.ts +++ b/src/funcs/usersAdvertisementsGet.ts @@ -29,7 +29,7 @@ import { Result } from "../types/fp.js"; * @remarks * Get an advertisement campaign by ID. */ -export async function usersAdvertisementsRetrieve( +export async function usersAdvertisementsGet( client$: PolarCore, request: operations.UsersAdvertisementsGetRequest, options?: RequestOptions diff --git a/src/funcs/usersBenefitsRetrieve.ts b/src/funcs/usersBenefitsGet.ts similarity index 98% rename from src/funcs/usersBenefitsRetrieve.ts rename to src/funcs/usersBenefitsGet.ts index 59903867..99765a65 100644 --- a/src/funcs/usersBenefitsRetrieve.ts +++ b/src/funcs/usersBenefitsGet.ts @@ -28,7 +28,7 @@ import { Result } from "../types/fp.js"; * @remarks * Get a granted benefit by ID. */ -export async function usersBenefitsRetrieve( +export async function usersBenefitsGet( client$: PolarCore, request: operations.UsersBenefitsGetRequest, options?: RequestOptions diff --git a/src/funcs/usersDownloadablesRetrieve.ts b/src/funcs/usersDownloadablesGet.ts similarity index 98% rename from src/funcs/usersDownloadablesRetrieve.ts rename to src/funcs/usersDownloadablesGet.ts index 2de7239f..be2522c3 100644 --- a/src/funcs/usersDownloadablesRetrieve.ts +++ b/src/funcs/usersDownloadablesGet.ts @@ -26,7 +26,7 @@ import * as z from "zod"; /** * Get Downloadable */ -export async function usersDownloadablesRetrieve( +export async function usersDownloadablesGet( client$: PolarCore, request: operations.UsersDownloadablesGetRequest, options?: RequestOptions diff --git a/src/funcs/usersLicenseKeysRetrieve.ts b/src/funcs/usersLicenseKeysGet.ts similarity index 98% rename from src/funcs/usersLicenseKeysRetrieve.ts rename to src/funcs/usersLicenseKeysGet.ts index 94dd77ba..402c0eae 100644 --- a/src/funcs/usersLicenseKeysRetrieve.ts +++ b/src/funcs/usersLicenseKeysGet.ts @@ -29,7 +29,7 @@ import { Result } from "../types/fp.js"; * @remarks * Get a license key. */ -export async function usersLicenseKeysRetrieve( +export async function usersLicenseKeysGet( client$: PolarCore, request: operations.UsersLicenseKeysGetRequest, options?: RequestOptions diff --git a/src/funcs/usersOrdersRetrieve.ts b/src/funcs/usersOrdersGet.ts similarity index 98% rename from src/funcs/usersOrdersRetrieve.ts rename to src/funcs/usersOrdersGet.ts index 7ac3c8b5..afe594b7 100644 --- a/src/funcs/usersOrdersRetrieve.ts +++ b/src/funcs/usersOrdersGet.ts @@ -29,7 +29,7 @@ import { Result } from "../types/fp.js"; * @remarks * Get an order by ID. */ -export async function usersOrdersRetrieve( +export async function usersOrdersGet( client$: PolarCore, request: operations.UsersOrdersGetRequest, options?: RequestOptions diff --git a/src/funcs/usersSubscriptionsRetrieve.ts b/src/funcs/usersSubscriptionsGet.ts similarity index 98% rename from src/funcs/usersSubscriptionsRetrieve.ts rename to src/funcs/usersSubscriptionsGet.ts index 84a4afd8..d3ea8374 100644 --- a/src/funcs/usersSubscriptionsRetrieve.ts +++ b/src/funcs/usersSubscriptionsGet.ts @@ -29,7 +29,7 @@ import { Result } from "../types/fp.js"; * @remarks * Get a subscription by ID. */ -export async function usersSubscriptionsRetrieve( +export async function usersSubscriptionsGet( client$: PolarCore, request: operations.UsersSubscriptionsGetRequest, options?: RequestOptions diff --git a/src/index.ts b/src/index.ts index ceb63804..c6fc7f02 100644 --- a/src/index.ts +++ b/src/index.ts @@ -4,3 +4,4 @@ export * from "./sdk/sdk.js"; export * from "./lib/config.js"; +export * as files from "./lib/files.js"; diff --git a/src/lib/config.ts b/src/lib/config.ts index dc1be180..be48e244 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -52,7 +52,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "0.1.0", - sdkVersion: "0.6.1", - genVersion: "2.407.2", - userAgent: "speakeasy-sdk/typescript 0.6.1 2.407.2 0.1.0 @polar-sh/sdk", + sdkVersion: "0.7.0", + genVersion: "2.409.0", + userAgent: "speakeasy-sdk/typescript 0.7.0 2.409.0 0.1.0 @polar-sh/sdk", } as const; diff --git a/src/lib/files.ts b/src/lib/files.ts new file mode 100644 index 00000000..69028c73 --- /dev/null +++ b/src/lib/files.ts @@ -0,0 +1,58 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { Readable } from "stream"; +import { createReadStream } from "fs"; +import { readFile } from "fs/promises"; + +export function toStream(filePath: string): ReadableStream { + return Readable.toWeb( + createReadStream(filePath), + ) as ReadableStream; +} + +export async function toByteArray(filePath: string): Promise { + return readFile(filePath); +} + +export async function toString(filePath: string): Promise { + return readFile(filePath, "utf8"); +} + +/** + * Consumes a stream and returns a concatenated array buffer. Useful in + * situations where we need to read the whole file because it forms part of a + * larger payload containing other fields, and we can't modify the underlying + * request structure. + */ +export async function readableStreamToArrayBuffer( + readable: ReadableStream, +): Promise { + const reader = readable.getReader(); + const chunks: Uint8Array[] = []; + + let totalLength = 0; + let done = false; + + while (!done) { + const { value, done: doneReading } = await reader.read(); + + if (doneReading) { + done = true; + } else { + chunks.push(value); + totalLength += value.length; + } + } + + const concatenatedChunks = new Uint8Array(totalLength); + let offset = 0; + + for (const chunk of chunks) { + concatenatedChunks.set(chunk, offset); + offset += chunk.length; + } + + return concatenatedChunks.buffer; +} diff --git a/src/lib/sdks.ts b/src/lib/sdks.ts index a0355f4f..76c0a467 100644 --- a/src/lib/sdks.ts +++ b/src/lib/sdks.ts @@ -185,6 +185,18 @@ export class ClientSDK { } } + if (conf.body instanceof ReadableStream) { + if (!fetchOptions) { + fetchOptions = { + // @ts-expect-error see https://github.com/node-fetch/node-fetch/issues/1769 + duplex: "half", + }; + } else { + // @ts-expect-error see https://github.com/node-fetch/node-fetch/issues/1769 + fetchOptions.duplex = "half"; + } + } + let input; try { input = this.hooks$.beforeCreateRequest(context, { diff --git a/src/models/components/bodysubscriptionsimport.ts b/src/models/components/bodysubscriptionsimport.ts index 50905ae6..c4a6e962 100644 --- a/src/models/components/bodysubscriptionsimport.ts +++ b/src/models/components/bodysubscriptionsimport.ts @@ -2,14 +2,13 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as b64$ from "../../lib/base64.js"; import { remap as remap$ } from "../../lib/primitives.js"; import { blobLikeSchema } from "../../types/blobs.js"; import * as z from "zod"; export type FileT = { fileName: string; - content: Uint8Array | string; + content: ReadableStream | Blob | ArrayBuffer | Buffer; }; export type BodySubscriptionsImport = { @@ -26,19 +25,29 @@ export type BodySubscriptionsImport = { /** @internal */ export const FileT$inboundSchema: z.ZodType = z.object({ fileName: z.string(), - content: b64$.zodInbound, + content: z.union([ + z.instanceof(ReadableStream), + z.instanceof(Blob), + z.instanceof(ArrayBuffer), + z.instanceof(Buffer), + ]), }); /** @internal */ export type FileT$Outbound = { fileName: string; - content: Uint8Array; + content: ReadableStream | Blob | ArrayBuffer | Buffer; }; /** @internal */ export const FileT$outboundSchema: z.ZodType = z.object({ fileName: z.string(), - content: b64$.zodOutbound, + content: z.union([ + z.instanceof(ReadableStream), + z.instanceof(Blob), + z.instanceof(ArrayBuffer), + z.instanceof(Buffer), + ]), }); /** diff --git a/src/sdk/advertisements.ts b/src/sdk/advertisements.ts index 7d9cd8f3..f9861c25 100644 --- a/src/sdk/advertisements.ts +++ b/src/sdk/advertisements.ts @@ -2,8 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { advertisementsGet } from "../funcs/advertisementsGet.js"; import { advertisementsList } from "../funcs/advertisementsList.js"; -import { advertisementsRetrieve } from "../funcs/advertisementsRetrieve.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; import * as operations from "../models/operations/index.js"; @@ -30,10 +30,10 @@ export class Advertisements extends ClientSDK { * @remarks * Get an advertisement campaign by ID. */ - async retrieve( + async get( request: operations.AdvertisementsGetRequest, options?: RequestOptions ): Promise { - return unwrapAsync(advertisementsRetrieve(this, request, options)); + return unwrapAsync(advertisementsGet(this, request, options)); } } diff --git a/src/sdk/articles.ts b/src/sdk/articles.ts index 86f547b0..7ec175b0 100644 --- a/src/sdk/articles.ts +++ b/src/sdk/articles.ts @@ -4,10 +4,10 @@ import { articlesCreate } from "../funcs/articlesCreate.js"; import { articlesDelete } from "../funcs/articlesDelete.js"; +import { articlesGet } from "../funcs/articlesGet.js"; import { articlesList } from "../funcs/articlesList.js"; import { articlesPreview } from "../funcs/articlesPreview.js"; import { articlesReceivers } from "../funcs/articlesReceivers.js"; -import { articlesRetrieve } from "../funcs/articlesRetrieve.js"; import { articlesSend } from "../funcs/articlesSend.js"; import { articlesUpdate } from "../funcs/articlesUpdate.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; @@ -49,11 +49,11 @@ export class Articles extends ClientSDK { * @remarks * Get an article by ID. */ - async retrieve( + async get( request: operations.ArticlesGetRequest, options?: RequestOptions ): Promise { - return unwrapAsync(articlesRetrieve(this, request, options)); + return unwrapAsync(articlesGet(this, request, options)); } /** diff --git a/src/sdk/benefits.ts b/src/sdk/benefits.ts index 50cd8e18..e44e66e2 100644 --- a/src/sdk/benefits.ts +++ b/src/sdk/benefits.ts @@ -4,9 +4,9 @@ import { benefitsCreate } from "../funcs/benefitsCreate.js"; import { benefitsDelete } from "../funcs/benefitsDelete.js"; +import { benefitsGet } from "../funcs/benefitsGet.js"; import { benefitsGrants } from "../funcs/benefitsGrants.js"; import { benefitsList } from "../funcs/benefitsList.js"; -import { benefitsRetrieve } from "../funcs/benefitsRetrieve.js"; import { benefitsUpdate } from "../funcs/benefitsUpdate.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as operations from "../models/operations/index.js"; @@ -46,11 +46,11 @@ export class Benefits extends ClientSDK { * @remarks * Get a benefit by ID. */ - async retrieve( + async get( request: operations.BenefitsGetRequest, options?: RequestOptions ): Promise { - return unwrapAsync(benefitsRetrieve(this, request, options)); + return unwrapAsync(benefitsGet(this, request, options)); } /** diff --git a/src/sdk/checkouts.ts b/src/sdk/checkouts.ts index 01ba8355..ea803ec9 100644 --- a/src/sdk/checkouts.ts +++ b/src/sdk/checkouts.ts @@ -3,7 +3,7 @@ */ import { checkoutsCreate } from "../funcs/checkoutsCreate.js"; -import { checkoutsRetrieve } from "../funcs/checkoutsRetrieve.js"; +import { checkoutsGet } from "../funcs/checkoutsGet.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; import * as operations from "../models/operations/index.js"; @@ -29,10 +29,10 @@ export class Checkouts extends ClientSDK { * @remarks * Get an active checkout session by ID. */ - async retrieve( + async get( request: operations.CheckoutsGetRequest, options?: RequestOptions ): Promise { - return unwrapAsync(checkoutsRetrieve(this, request, options)); + return unwrapAsync(checkoutsGet(this, request, options)); } } diff --git a/src/sdk/clients.ts b/src/sdk/clients.ts index 08d4ca90..11c3fab2 100644 --- a/src/sdk/clients.ts +++ b/src/sdk/clients.ts @@ -4,8 +4,8 @@ import { oauth2ClientsCreate } from "../funcs/oauth2ClientsCreate.js"; import { oauth2ClientsDelete } from "../funcs/oauth2ClientsDelete.js"; +import { oauth2ClientsGet } from "../funcs/oauth2ClientsGet.js"; import { oauth2ClientsList } from "../funcs/oauth2ClientsList.js"; -import { oauth2ClientsRetrieve } from "../funcs/oauth2ClientsRetrieve.js"; import { oauth2ClientsUpdate } from "../funcs/oauth2ClientsUpdate.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; @@ -46,11 +46,11 @@ export class Clients extends ClientSDK { * @remarks * Get an OAuth2 client by Client ID. */ - async retrieve( + async get( request: operations.Oauth2ClientsOauth2GetClientRequest, options?: RequestOptions ): Promise { - return unwrapAsync(oauth2ClientsRetrieve(this, request, options)); + return unwrapAsync(oauth2ClientsGet(this, request, options)); } /** diff --git a/src/sdk/downloadables.ts b/src/sdk/downloadables.ts index d23c1152..7704a723 100644 --- a/src/sdk/downloadables.ts +++ b/src/sdk/downloadables.ts @@ -2,8 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { usersDownloadablesGet } from "../funcs/usersDownloadablesGet.js"; import { usersDownloadablesList } from "../funcs/usersDownloadablesList.js"; -import { usersDownloadablesRetrieve } from "../funcs/usersDownloadablesRetrieve.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; @@ -23,10 +23,10 @@ export class Downloadables extends ClientSDK { /** * Get Downloadable */ - async retrieve( + async get( request: operations.UsersDownloadablesGetRequest, options?: RequestOptions ): Promise { - return unwrapAsync(usersDownloadablesRetrieve(this, request, options)); + return unwrapAsync(usersDownloadablesGet(this, request, options)); } } diff --git a/src/sdk/licensekeys.ts b/src/sdk/licensekeys.ts index 21e06474..ac23153f 100644 --- a/src/sdk/licensekeys.ts +++ b/src/sdk/licensekeys.ts @@ -2,9 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { licenseKeysGet } from "../funcs/licenseKeysGet.js"; import { licenseKeysGetActivation } from "../funcs/licenseKeysGetActivation.js"; import { licenseKeysList } from "../funcs/licenseKeysList.js"; -import { licenseKeysRetrieve } from "../funcs/licenseKeysRetrieve.js"; import { licenseKeysUpdate } from "../funcs/licenseKeysUpdate.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; @@ -32,11 +32,11 @@ export class LicenseKeys extends ClientSDK { * @remarks * Get a license key. */ - async retrieve( + async get( request: operations.LicenseKeysGetRequest, options?: RequestOptions ): Promise { - return unwrapAsync(licenseKeysRetrieve(this, request, options)); + return unwrapAsync(licenseKeysGet(this, request, options)); } /** diff --git a/src/sdk/metrics.ts b/src/sdk/metrics.ts index 4cfe1090..eeafdabf 100644 --- a/src/sdk/metrics.ts +++ b/src/sdk/metrics.ts @@ -2,8 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { metricsGet } from "../funcs/metricsGet.js"; import { metricsLimits } from "../funcs/metricsLimits.js"; -import { metricsRetrieve } from "../funcs/metricsRetrieve.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; import * as operations from "../models/operations/index.js"; @@ -16,11 +16,11 @@ export class Metrics extends ClientSDK { * @remarks * Get metrics about your orders and subscriptions. */ - async retrieve( + async get( request: operations.MetricsGetRequest, options?: RequestOptions ): Promise { - return unwrapAsync(metricsRetrieve(this, request, options)); + return unwrapAsync(metricsGet(this, request, options)); } /** diff --git a/src/sdk/orders.ts b/src/sdk/orders.ts index 0c388ed4..3169555c 100644 --- a/src/sdk/orders.ts +++ b/src/sdk/orders.ts @@ -2,9 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { ordersGet } from "../funcs/ordersGet.js"; import { ordersInvoice } from "../funcs/ordersInvoice.js"; import { ordersList } from "../funcs/ordersList.js"; -import { ordersRetrieve } from "../funcs/ordersRetrieve.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; import * as operations from "../models/operations/index.js"; @@ -31,11 +31,11 @@ export class Orders extends ClientSDK { * @remarks * Get an order by ID. */ - async retrieve( + async get( request: operations.OrdersGetRequest, options?: RequestOptions ): Promise { - return unwrapAsync(ordersRetrieve(this, request, options)); + return unwrapAsync(ordersGet(this, request, options)); } /** diff --git a/src/sdk/organizations.ts b/src/sdk/organizations.ts index 239b138d..e1a0d0a0 100644 --- a/src/sdk/organizations.ts +++ b/src/sdk/organizations.ts @@ -3,8 +3,8 @@ */ import { organizationsCreate } from "../funcs/organizationsCreate.js"; +import { organizationsGet } from "../funcs/organizationsGet.js"; import { organizationsList } from "../funcs/organizationsList.js"; -import { organizationsRetrieve } from "../funcs/organizationsRetrieve.js"; import { organizationsUpdate } from "../funcs/organizationsUpdate.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; @@ -45,11 +45,11 @@ export class Organizations extends ClientSDK { * @remarks * Get an organization by ID. */ - async retrieve( + async get( request: operations.OrganizationsGetRequest, options?: RequestOptions ): Promise { - return unwrapAsync(organizationsRetrieve(this, request, options)); + return unwrapAsync(organizationsGet(this, request, options)); } /** diff --git a/src/sdk/polaradvertisements.ts b/src/sdk/polaradvertisements.ts index 36e81bd6..af60e4ba 100644 --- a/src/sdk/polaradvertisements.ts +++ b/src/sdk/polaradvertisements.ts @@ -5,8 +5,8 @@ import { usersAdvertisementsCreate } from "../funcs/usersAdvertisementsCreate.js"; import { usersAdvertisementsDelete } from "../funcs/usersAdvertisementsDelete.js"; import { usersAdvertisementsEnable } from "../funcs/usersAdvertisementsEnable.js"; +import { usersAdvertisementsGet } from "../funcs/usersAdvertisementsGet.js"; import { usersAdvertisementsList } from "../funcs/usersAdvertisementsList.js"; -import { usersAdvertisementsRetrieve } from "../funcs/usersAdvertisementsRetrieve.js"; import { usersAdvertisementsUpdate } from "../funcs/usersAdvertisementsUpdate.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; @@ -47,11 +47,11 @@ export class PolarAdvertisements extends ClientSDK { * @remarks * Get an advertisement campaign by ID. */ - async retrieve( + async get( request: operations.UsersAdvertisementsGetRequest, options?: RequestOptions ): Promise { - return unwrapAsync(usersAdvertisementsRetrieve(this, request, options)); + return unwrapAsync(usersAdvertisementsGet(this, request, options)); } /** diff --git a/src/sdk/polarbenefits.ts b/src/sdk/polarbenefits.ts index 8ca7cb96..4de7bde2 100644 --- a/src/sdk/polarbenefits.ts +++ b/src/sdk/polarbenefits.ts @@ -2,8 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { usersBenefitsGet } from "../funcs/usersBenefitsGet.js"; import { usersBenefitsList } from "../funcs/usersBenefitsList.js"; -import { usersBenefitsRetrieve } from "../funcs/usersBenefitsRetrieve.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; @@ -29,10 +29,10 @@ export class PolarBenefits extends ClientSDK { * @remarks * Get a granted benefit by ID. */ - async retrieve( + async get( request: operations.UsersBenefitsGetRequest, options?: RequestOptions ): Promise { - return unwrapAsync(usersBenefitsRetrieve(this, request, options)); + return unwrapAsync(usersBenefitsGet(this, request, options)); } } diff --git a/src/sdk/polarlicensekeys.ts b/src/sdk/polarlicensekeys.ts index 6d8d5cdb..f3fb9836 100644 --- a/src/sdk/polarlicensekeys.ts +++ b/src/sdk/polarlicensekeys.ts @@ -4,8 +4,8 @@ import { usersLicenseKeysActivate } from "../funcs/usersLicenseKeysActivate.js"; import { usersLicenseKeysDeactivate } from "../funcs/usersLicenseKeysDeactivate.js"; +import { usersLicenseKeysGet } from "../funcs/usersLicenseKeysGet.js"; import { usersLicenseKeysList } from "../funcs/usersLicenseKeysList.js"; -import { usersLicenseKeysRetrieve } from "../funcs/usersLicenseKeysRetrieve.js"; import { usersLicenseKeysValidate } from "../funcs/usersLicenseKeysValidate.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; @@ -30,11 +30,11 @@ export class PolarLicenseKeys extends ClientSDK { * @remarks * Get a license key. */ - async retrieve( + async get( request: operations.UsersLicenseKeysGetRequest, options?: RequestOptions ): Promise { - return unwrapAsync(usersLicenseKeysRetrieve(this, request, options)); + return unwrapAsync(usersLicenseKeysGet(this, request, options)); } /** diff --git a/src/sdk/polarorders.ts b/src/sdk/polarorders.ts index bfab93a0..2f98c23e 100644 --- a/src/sdk/polarorders.ts +++ b/src/sdk/polarorders.ts @@ -2,9 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { usersOrdersGet } from "../funcs/usersOrdersGet.js"; import { usersOrdersInvoice } from "../funcs/usersOrdersInvoice.js"; import { usersOrdersList } from "../funcs/usersOrdersList.js"; -import { usersOrdersRetrieve } from "../funcs/usersOrdersRetrieve.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; import * as operations from "../models/operations/index.js"; @@ -31,11 +31,11 @@ export class PolarOrders extends ClientSDK { * @remarks * Get an order by ID. */ - async retrieve( + async get( request: operations.UsersOrdersGetRequest, options?: RequestOptions ): Promise { - return unwrapAsync(usersOrdersRetrieve(this, request, options)); + return unwrapAsync(usersOrdersGet(this, request, options)); } /** diff --git a/src/sdk/polarsubscriptions.ts b/src/sdk/polarsubscriptions.ts index ecbfb5d1..939e55c4 100644 --- a/src/sdk/polarsubscriptions.ts +++ b/src/sdk/polarsubscriptions.ts @@ -4,8 +4,8 @@ import { usersSubscriptionsCancel } from "../funcs/usersSubscriptionsCancel.js"; import { usersSubscriptionsCreate } from "../funcs/usersSubscriptionsCreate.js"; +import { usersSubscriptionsGet } from "../funcs/usersSubscriptionsGet.js"; import { usersSubscriptionsList } from "../funcs/usersSubscriptionsList.js"; -import { usersSubscriptionsRetrieve } from "../funcs/usersSubscriptionsRetrieve.js"; import { usersSubscriptionsUpdate } from "../funcs/usersSubscriptionsUpdate.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; @@ -48,11 +48,11 @@ export class PolarSubscriptions extends ClientSDK { * @remarks * Get a subscription by ID. */ - async retrieve( + async get( request: operations.UsersSubscriptionsGetRequest, options?: RequestOptions ): Promise { - return unwrapAsync(usersSubscriptionsRetrieve(this, request, options)); + return unwrapAsync(usersSubscriptionsGet(this, request, options)); } /** diff --git a/src/sdk/products.ts b/src/sdk/products.ts index d5723dee..8dd53e84 100644 --- a/src/sdk/products.ts +++ b/src/sdk/products.ts @@ -3,8 +3,8 @@ */ import { productsCreate } from "../funcs/productsCreate.js"; +import { productsGet } from "../funcs/productsGet.js"; import { productsList } from "../funcs/productsList.js"; -import { productsRetrieve } from "../funcs/productsRetrieve.js"; import { productsUpdate } from "../funcs/productsUpdate.js"; import { productsUpdateBenefits } from "../funcs/productsUpdateBenefits.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; @@ -46,11 +46,11 @@ export class Products extends ClientSDK { * @remarks * Get a product by ID. */ - async retrieve( + async get( request: operations.ProductsGetRequest, options?: RequestOptions ): Promise { - return unwrapAsync(productsRetrieve(this, request, options)); + return unwrapAsync(productsGet(this, request, options)); } /** diff --git a/src/sdk/repositories.ts b/src/sdk/repositories.ts index 3d8a8a41..6e00b7dd 100644 --- a/src/sdk/repositories.ts +++ b/src/sdk/repositories.ts @@ -2,8 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { repositoriesGet } from "../funcs/repositoriesGet.js"; import { repositoriesList } from "../funcs/repositoriesList.js"; -import { repositoriesRetrieve } from "../funcs/repositoriesRetrieve.js"; import { repositoriesUpdate } from "../funcs/repositoriesUpdate.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; @@ -31,11 +31,11 @@ export class Repositories extends ClientSDK { * @remarks * Get a repository by ID. */ - async retrieve( + async get( request: operations.RepositoriesGetRequest, options?: RequestOptions ): Promise { - return unwrapAsync(repositoriesRetrieve(this, request, options)); + return unwrapAsync(repositoriesGet(this, request, options)); } /** diff --git a/src/types/streams.ts b/src/types/streams.ts new file mode 100644 index 00000000..a0163e7a --- /dev/null +++ b/src/types/streams.ts @@ -0,0 +1,21 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +export function isReadableStream( + val: unknown, +): val is ReadableStream { + if (typeof val !== "object" || val === null) { + return false; + } + + // Check for the presence of methods specific to ReadableStream + const stream = val as ReadableStream; + + // ReadableStream has methods like getReader, cancel, and tee + return ( + typeof stream.getReader === "function" && + typeof stream.cancel === "function" && + typeof stream.tee === "function" + ); +}