Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.421.1
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot authored and frankie567 committed Oct 24, 2024
1 parent cddeb0e commit 9a9607a
Show file tree
Hide file tree
Showing 16 changed files with 113 additions and 77 deletions.
22 changes: 11 additions & 11 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 @@ -15,7 +15,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: true
typescript:
version: 0.13.3
version: 0.13.4
additionalDependencies:
dependencies: {}
devDependencies: {}
Expand Down
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
speakeasyVersion: 1.420.0
speakeasyVersion: 1.421.1
sources:
Polar-OAS:
sourceNamespace: polar-oas
sourceRevisionDigest: sha256:a53271a526352407a56a330114f34000ed294192c2282469a0ce080e6b034d0f
sourceBlobDigest: sha256:7d0dddbc1b652f122a0fdfe0e312a72cade0d322590a5bb99e6dda789c61c5eb
sourceRevisionDigest: sha256:f6103548f368df47426a16ea11e73e7723a9c148abb583655869c1bf2a4b44fe
sourceBlobDigest: sha256:e4d5bea4ffc74b41e58b9fdd6396d43c95b3b069a564ed3e421efdf13716091a
tags:
- latest
- main
targets:
polar:
source: Polar-OAS
sourceNamespace: polar-oas
sourceRevisionDigest: sha256:a53271a526352407a56a330114f34000ed294192c2282469a0ce080e6b034d0f
sourceBlobDigest: sha256:7d0dddbc1b652f122a0fdfe0e312a72cade0d322590a5bb99e6dda789c61c5eb
sourceRevisionDigest: sha256:f6103548f368df47426a16ea11e73e7723a9c148abb583655869c1bf2a4b44fe
sourceBlobDigest: sha256:e4d5bea4ffc74b41e58b9fdd6396d43c95b3b069a564ed3e421efdf13716091a
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,4 +148,14 @@ Based on:
### Generated
- [typescript v0.13.3] .
### Releases
- [NPM v0.13.3] https://www.npmjs.com/package/@polar-sh/sdk/v/0.13.3 - .
- [NPM v0.13.3] https://www.npmjs.com/package/@polar-sh/sdk/v/0.13.3 - .

## 2024-10-24 00:25:54
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.421.1 (2.438.15) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.13.4] .
### Releases
- [NPM v0.13.4] https://www.npmjs.com/package/@polar-sh/sdk/v/0.13.4 - .
56 changes: 29 additions & 27 deletions docs/models/components/checkoutpublic.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/models/components/listresourcecheckout.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ let value: ListResourceCheckout = {
url: "https://bustling-shark.biz/",
expiresAt: new Date("2024-03-25T03:51:27.034Z"),
successUrl: "https://sweet-yarmulke.com",
embedOrigin: "<value>",
amount: 150417,
taxAmount: 636216,
currency: "Kwanza",
Expand Down
54 changes: 28 additions & 26 deletions docs/models/components/polarcheckoutschemascheckout.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/models/components/webhookcheckoutcreatedpayload.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ let value: WebhookCheckoutCreatedPayload = {
url: "https://unlawful-rationale.org/",
expiresAt: new Date("2023-03-01T00:50:01.666Z"),
successUrl: "https://unlined-hornet.net/",
embedOrigin: "<value>",
amount: 424591,
taxAmount: 708007,
currency: "Naira",
Expand Down
1 change: 1 addition & 0 deletions docs/models/components/webhookcheckoutupdatedpayload.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ let value: WebhookCheckoutUpdatedPayload = {
url: "https://clear-cut-dream.biz",
expiresAt: new Date("2024-02-16T11:29:47.688Z"),
successUrl: "https://slushy-event.net/",
embedOrigin: "<value>",
amount: 366561,
taxAmount: 426401,
currency: "Brazilian Real",
Expand Down
1 change: 1 addition & 0 deletions docs/models/operations/checkoutscustomlistresponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ let value: CheckoutsCustomListResponse = {
url: "https://whirlwind-section.com",
expiresAt: new Date("2024-06-01T05:01:31.045Z"),
successUrl: "https://esteemed-citizen.biz/",
embedOrigin: "<value>",
amount: 528315,
taxAmount: 671690,
currency: "Kuwaiti Dinar",
Expand Down
2 changes: 1 addition & 1 deletion jsr.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{
"name": "@polar-sh/sdk",
"version": "0.13.3",
"version": "0.13.4",
"exports": {
".": "./src/index.ts",
"./models/errors": "./src/models/errors/index.ts",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@polar-sh/sdk",
"version": "0.13.3",
"version": "0.13.4",
"author": "Speakeasy",
"main": "./index.js",
"sideEffects": false,
Expand Down
4 changes: 2 additions & 2 deletions src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
export const SDK_METADATA = {
language: "typescript",
openapiDocVersion: "0.1.0",
sdkVersion: "0.13.3",
sdkVersion: "0.13.4",
genVersion: "2.438.15",
userAgent: "speakeasy-sdk/typescript 0.13.3 2.438.15 0.1.0 @polar-sh/sdk",
userAgent: "speakeasy-sdk/typescript 0.13.4 2.438.15 0.1.0 @polar-sh/sdk",
} as const;
9 changes: 9 additions & 0 deletions src/models/components/checkoutpublic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ export type CheckoutPublic = {
* URL where the customer will be redirected after a successful payment.
*/
successUrl: string;
/**
* When checkout is embedded, represents the Origin of the page embedding the checkout. Used as a security measure to send messages only to the embedding page.
*/
embedOrigin: string | null;
amount: number | null;
/**
* Computed tax amount to pay in cents.
Expand Down Expand Up @@ -152,6 +156,7 @@ export const CheckoutPublic$inboundSchema: z.ZodType<
url: z.string(),
expires_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
success_url: z.string(),
embed_origin: z.nullable(z.string()),
amount: z.nullable(z.number().int()),
tax_amount: z.nullable(z.number().int()),
currency: z.nullable(z.string()),
Expand All @@ -178,6 +183,7 @@ export const CheckoutPublic$inboundSchema: z.ZodType<
"client_secret": "clientSecret",
"expires_at": "expiresAt",
"success_url": "successUrl",
"embed_origin": "embedOrigin",
"tax_amount": "taxAmount",
"total_amount": "totalAmount",
"product_id": "productId",
Expand Down Expand Up @@ -205,6 +211,7 @@ export type CheckoutPublic$Outbound = {
url: string;
expires_at: string;
success_url: string;
embed_origin: string | null;
amount: number | null;
tax_amount: number | null;
currency: string | null;
Expand Down Expand Up @@ -238,6 +245,7 @@ export const CheckoutPublic$outboundSchema: z.ZodType<
url: z.string(),
expiresAt: z.date().transform(v => v.toISOString()),
successUrl: z.string(),
embedOrigin: z.nullable(z.string()),
amount: z.nullable(z.number().int()),
taxAmount: z.nullable(z.number().int()),
currency: z.nullable(z.string()),
Expand All @@ -264,6 +272,7 @@ export const CheckoutPublic$outboundSchema: z.ZodType<
clientSecret: "client_secret",
expiresAt: "expires_at",
successUrl: "success_url",
embedOrigin: "embed_origin",
taxAmount: "tax_amount",
totalAmount: "total_amount",
productId: "product_id",
Expand Down
9 changes: 9 additions & 0 deletions src/models/components/polarcheckoutschemascheckout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ export type PolarCheckoutSchemasCheckout = {
* URL where the customer will be redirected after a successful payment.
*/
successUrl: string;
/**
* When checkout is embedded, represents the Origin of the page embedding the checkout. Used as a security measure to send messages only to the embedding page.
*/
embedOrigin: string | null;
amount: number | null;
/**
* Computed tax amount to pay in cents.
Expand Down Expand Up @@ -134,6 +138,7 @@ export const PolarCheckoutSchemasCheckout$inboundSchema: z.ZodType<
url: z.string(),
expires_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
success_url: z.string(),
embed_origin: z.nullable(z.string()),
amount: z.nullable(z.number().int()),
tax_amount: z.nullable(z.number().int()),
currency: z.nullable(z.string()),
Expand All @@ -159,6 +164,7 @@ export const PolarCheckoutSchemasCheckout$inboundSchema: z.ZodType<
"client_secret": "clientSecret",
"expires_at": "expiresAt",
"success_url": "successUrl",
"embed_origin": "embedOrigin",
"tax_amount": "taxAmount",
"total_amount": "totalAmount",
"product_id": "productId",
Expand All @@ -185,6 +191,7 @@ export type PolarCheckoutSchemasCheckout$Outbound = {
url: string;
expires_at: string;
success_url: string;
embed_origin: string | null;
amount: number | null;
tax_amount: number | null;
currency: string | null;
Expand Down Expand Up @@ -217,6 +224,7 @@ export const PolarCheckoutSchemasCheckout$outboundSchema: z.ZodType<
url: z.string(),
expiresAt: z.date().transform(v => v.toISOString()),
successUrl: z.string(),
embedOrigin: z.nullable(z.string()),
amount: z.nullable(z.number().int()),
taxAmount: z.nullable(z.number().int()),
currency: z.nullable(z.string()),
Expand All @@ -242,6 +250,7 @@ export const PolarCheckoutSchemasCheckout$outboundSchema: z.ZodType<
clientSecret: "client_secret",
expiresAt: "expires_at",
successUrl: "success_url",
embedOrigin: "embed_origin",
taxAmount: "tax_amount",
totalAmount: "total_amount",
productId: "product_id",
Expand Down

0 comments on commit 9a9607a

Please sign in to comment.