Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.474.0
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot authored and frankie567 committed Jan 24, 2025
1 parent 3afecbf commit 32d1c95
Show file tree
Hide file tree
Showing 422 changed files with 7,990 additions and 4,393 deletions.
1,155 changes: 493 additions & 662 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ generation:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: false
typescript:
version: 0.21.2
version: 0.21.3
additionalDependencies:
dependencies:
standardwebhooks: ^1.0.0
Expand Down
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
speakeasyVersion: 1.469.0
speakeasyVersion: 1.474.0
sources:
Polar-OAS:
sourceNamespace: polar-oas
sourceRevisionDigest: sha256:24ce3874bbe7fd794b67813b9074ca907d43dc65c66113d6e86484e9c469f9b2
sourceBlobDigest: sha256:32d99ec97d3f6c8eb9466be6de65737f5728349909078b2292df876d26fd8034
sourceRevisionDigest: sha256:2caa144dc82e70c044b00f129338bb160d9f4d529b3bb2d827ada0162e0df39f
sourceBlobDigest: sha256:a2c4a9d1003b730a2305769700bfb4c9028732a336ffa7c8c219658d82bd24a1
tags:
- latest
- speakeasy-sdk-regen-1737119835
- speakeasy-sdk-regen-1737591955
- 0.1.0
targets:
polar:
source: Polar-OAS
sourceNamespace: polar-oas
sourceRevisionDigest: sha256:24ce3874bbe7fd794b67813b9074ca907d43dc65c66113d6e86484e9c469f9b2
sourceBlobDigest: sha256:32d99ec97d3f6c8eb9466be6de65737f5728349909078b2292df876d26fd8034
sourceRevisionDigest: sha256:2caa144dc82e70c044b00f129338bb160d9f4d529b3bb2d827ada0162e0df39f
sourceBlobDigest: sha256:a2c4a9d1003b730a2305769700bfb4c9028732a336ffa7c8c219658d82bd24a1
codeSamplesNamespace: polar-oas-ts-code-samples
codeSamplesRevisionDigest: sha256:f8f6e9b01f7a4290ab8ef87c8efd94aa13554b81b1bbff26e4203f45e9de151a
codeSamplesRevisionDigest: sha256:999957128f23bb79cc528f8cee488b03d0706088496c93fbdb858cb82fb869a0
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
5 changes: 4 additions & 1 deletion FUNCTIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ const polar = new PolarCore({
});

async function run() {
const res = await externalOrganizationsList(polar, {});
const res = await externalOrganizationsList(polar, {
page: 1,
limit: 10,
});

switch (true) {
case res.ok:
Expand Down
175 changes: 102 additions & 73 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,14 @@ const polar = new Polar();
async function run() {
const result = await polar.endpointcheckoutCreatedPost({
data: {
createdAt: new Date("2024-11-12T14:26:42.882Z"),
modifiedAt: new Date("2023-05-28T05:08:06.235Z"),
createdAt: new Date("2025-11-12T14:26:42.882Z"),
modifiedAt: new Date("2024-05-27T05:08:06.235Z"),
id: "<value>",
paymentProcessor: "stripe",
status: "failed",
clientSecret: "<value>",
url: "https://heavy-beret.com/",
expiresAt: new Date("2022-02-25T02:26:48.460Z"),
expiresAt: new Date("2023-02-25T02:26:48.460Z"),
successUrl: "https://sardonic-final.info/",
embedOrigin: "<value>",
amount: 962818,
Expand All @@ -120,47 +120,38 @@ async function run() {
isPaymentFormRequired: false,
customerId: "<value>",
customerName: "<value>",
customerEmail: "[email protected]",
customerEmail: "<value>",
customerIpAddress: "<value>",
customerBillingAddress: {
country: "South Africa",
country: "Solomon Islands",
},
customerTaxId: "<id>",
paymentProcessorMetadata: {},
paymentProcessorMetadata: {
"key": "<value>",
"key1": "<value>",
"key2": "<value>",
},
metadata: {
"key": 18677,
"key1": 95370,
"key": "<value>",
},
product: {
createdAt: new Date("2022-04-02T00:05:42.586Z"),
modifiedAt: new Date("2023-12-16T03:02:38.803Z"),
createdAt: new Date("2024-11-17T19:11:13.132Z"),
modifiedAt: new Date("2024-02-27T04:46:39.621Z"),
id: "<value>",
name: "<value>",
description:
"for embarrassment untidy long-term near honestly separate yet",
isRecurring: true,
isArchived: false,
description: "border opposite overload interior shady",
isRecurring: false,
isArchived: true,
organizationId: "<value>",
prices: [
{
createdAt: new Date("2025-11-19T15:59:15.588Z"),
modifiedAt: new Date("2023-11-17T00:11:23.972Z"),
id: "<value>",
isArchived: false,
productId: "<value>",
priceCurrency: "<value>",
minimumAmount: 363560,
maximumAmount: 75876,
presetAmount: 82334,
},
],
prices: [],
benefits: [
{
createdAt: new Date("2023-08-22T00:47:02.059Z"),
modifiedAt: new Date("2023-06-04T10:32:44.101Z"),
createdAt: new Date("2025-08-24T18:28:03.144Z"),
modifiedAt: new Date("2023-10-21T11:52:11.842Z"),
id: "<value>",
type: "license_keys",
description: "within jacket unless",
type: "ads",
description:
"certainly these restfully geez who countess happily gym",
selectable: false,
deletable: false,
organizationId: "<value>",
Expand All @@ -171,38 +162,55 @@ async function run() {
id: "<value>",
organizationId: "<value>",
name: "<value>",
path: "/private/var",
path: "/private/tmp",
mimeType: "<value>",
size: 486328,
storageVersion: "<value>",
checksumEtag: "<value>",
checksumSha256Base64: "<value>",
checksumSha256Hex: "<value>",
lastModifiedAt: new Date("2023-09-26T17:28:00.673Z"),
version: "<value>",
isUploaded: true,
createdAt: new Date("2025-05-06T18:54:29.001Z"),
sizeReadable: "<value>",
publicUrl: "https://forsaken-underpants.biz",
},
{
id: "<value>",
organizationId: "<value>",
name: "<value>",
path: "/Users",
mimeType: "<value>",
size: 245189,
size: 796127,
storageVersion: "<value>",
checksumEtag: "<value>",
checksumSha256Base64: "<value>",
checksumSha256Hex: "<value>",
lastModifiedAt: new Date("2022-11-03T15:00:03.276Z"),
lastModifiedAt: new Date("2023-09-05T18:42:07.313Z"),
version: "<value>",
isUploaded: false,
createdAt: new Date("2024-06-07T13:47:02.365Z"),
createdAt: new Date("2025-10-05T11:55:07.194Z"),
sizeReadable: "<value>",
publicUrl: "https://webbed-experience.name/",
publicUrl: "https://quick-witted-markup.org/",
},
],
},
productPrice: {
createdAt: new Date("2025-02-14T09:22:19.644Z"),
modifiedAt: new Date("2023-12-28T20:59:29.904Z"),
createdAt: new Date("2025-11-19T15:59:15.588Z"),
modifiedAt: new Date("2023-11-17T00:11:23.972Z"),
id: "<value>",
isArchived: false,
productId: "<value>",
priceCurrency: "<value>",
minimumAmount: 417896,
maximumAmount: 962818,
presetAmount: 6400,
recurringInterval: "month",
minimumAmount: 363560,
maximumAmount: 75876,
presetAmount: 82334,
},
discount: {
duration: "repeating",
type: "fixed",
basisPoints: 341163,
type: "percentage",
basisPoints: 416143,
id: "<value>",
name: "<value>",
code: "<value>",
Expand All @@ -212,65 +220,58 @@ async function run() {
{
customFieldId: "<value>",
customField: {
createdAt: new Date("2023-08-19T22:18:44.316Z"),
modifiedAt: new Date("2024-04-28T23:39:10.699Z"),
createdAt: new Date("2024-06-03T08:42:54.736Z"),
modifiedAt: new Date("2025-02-14T09:22:19.644Z"),
id: "<value>",
metadata: {
"key": false,
"key": "<value>",
},
slug: "<value>",
name: "<value>",
organizationId: "<value>",
properties: {
options: [
{
value: "<value>",
label: "<value>",
},
],
},
properties: {},
},
order: 996863,
required: false,
order: 169862,
required: true,
},
{
customFieldId: "<value>",
customField: {
createdAt: new Date("2024-07-02T09:46:29.338Z"),
modifiedAt: new Date("2025-01-24T18:08:49.597Z"),
createdAt: new Date("2025-11-21T05:56:48.487Z"),
modifiedAt: new Date("2023-01-08T00:22:16.025Z"),
id: "<value>",
metadata: {
"key": false,
"key": 648726,
},
slug: "<value>",
name: "<value>",
organizationId: "<value>",
properties: {},
},
order: 72589,
order: 918364,
required: true,
},
{
customFieldId: "<value>",
customField: {
createdAt: new Date("2025-07-31T13:25:31.669Z"),
modifiedAt: new Date("2023-11-12T09:40:10.044Z"),
createdAt: new Date("2024-04-28T23:39:10.699Z"),
modifiedAt: new Date("2025-04-20T22:18:45.464Z"),
id: "<value>",
metadata: {
"key": "<value>",
"key": 500372,
},
slug: "<value>",
name: "<value>",
organizationId: "<value>",
properties: {},
},
order: 161325,
order: 187532,
required: true,
},
],
customerMetadata: {
"key": "<value>",
"key1": "<value>",
"key1": 790078,
},
},
});
Expand Down Expand Up @@ -486,6 +487,11 @@ app.post("/webhook", express.raw({ type: "application/json" }), (req: Request, r
* [update](docs/sdks/products/README.md#update) - Update Product
* [updateBenefits](docs/sdks/products/README.md#updatebenefits) - Update Product Benefits

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

* [list](docs/sdks/refunds/README.md#list) - List Refunds
* [create](docs/sdks/refunds/README.md#create) - Create Refund

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

* [list](docs/sdks/repositories/README.md#list) - List Repositories
Expand Down Expand Up @@ -606,6 +612,8 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
- [`productsList`](docs/sdks/products/README.md#list) - List Products
- [`productsUpdate`](docs/sdks/products/README.md#update) - Update Product
- [`productsUpdateBenefits`](docs/sdks/products/README.md#updatebenefits) - Update Product Benefits
- [`refundsCreate`](docs/sdks/refunds/README.md#create) - Create Refund
- [`refundsList`](docs/sdks/refunds/README.md#list) - List Refunds
- [`repositoriesGet`](docs/sdks/repositories/README.md#get) - Get Repository
- [`repositoriesList`](docs/sdks/repositories/README.md#list) - List Repositories
- [`repositoriesUpdate`](docs/sdks/repositories/README.md#update) - Update Repository
Expand Down Expand Up @@ -639,7 +647,10 @@ const polar = new Polar({
});

async function run() {
const result = await polar.externalOrganizations.list({});
const result = await polar.externalOrganizations.list({
page: 1,
limit: 10,
});

for await (const page of result) {
// Handle the page
Expand All @@ -666,7 +677,10 @@ const polar = new Polar({
});

async function run() {
const result = await polar.externalOrganizations.list({}, {
const result = await polar.externalOrganizations.list({
page: 1,
limit: 10,
}, {
retries: {
strategy: "backoff",
backoff: {
Expand Down Expand Up @@ -708,7 +722,10 @@ const polar = new Polar({
});

async function run() {
const result = await polar.externalOrganizations.list({});
const result = await polar.externalOrganizations.list({
page: 1,
limit: 10,
});

for await (const page of result) {
// Handle the page
Expand Down Expand Up @@ -747,7 +764,10 @@ const polar = new Polar({
async function run() {
let result;
try {
result = await polar.externalOrganizations.list({});
result = await polar.externalOrganizations.list({
page: 1,
limit: 10,
});

for await (const page of result) {
// Handle the page
Expand Down Expand Up @@ -816,7 +836,10 @@ const polar = new Polar({
});

async function run() {
const result = await polar.externalOrganizations.list({});
const result = await polar.externalOrganizations.list({
page: 1,
limit: 10,
});

for await (const page of result) {
// Handle the page
Expand All @@ -840,7 +863,10 @@ const polar = new Polar({
});

async function run() {
const result = await polar.externalOrganizations.list({});
const result = await polar.externalOrganizations.list({
page: 1,
limit: 10,
});

for await (const page of result) {
// Handle the page
Expand Down Expand Up @@ -922,7 +948,10 @@ const polar = new Polar({
});

async function run() {
const result = await polar.externalOrganizations.list({});
const result = await polar.externalOrganizations.list({
page: 1,
limit: 10,
});

for await (const page of result) {
// Handle the page
Expand Down
Loading

0 comments on commit 32d1c95

Please sign in to comment.