Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.431.0
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot authored and frankie567 committed Nov 6, 2024
1 parent a4e9ef0 commit 3393822
Show file tree
Hide file tree
Showing 12 changed files with 61 additions and 31 deletions.
34 changes: 17 additions & 17 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.15.0
version: 0.15.1
additionalDependencies:
dependencies: {}
devDependencies: {}
Expand Down
8 changes: 4 additions & 4 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ speakeasyVersion: 1.431.0
sources:
Polar-OAS:
sourceNamespace: polar-oas
sourceRevisionDigest: sha256:c7e33d349286ddccd4829c8a687488e4605b8e4ee1f7a1f292f49a74872f598e
sourceBlobDigest: sha256:7316038513ebb138e351a2af12f12b570b62f9691c2be6df032216ee0406f91a
sourceRevisionDigest: sha256:f42da804fd4b2c4d782ed454d174adb8316fdc986e50245ae703e445020b1b76
sourceBlobDigest: sha256:0e4a2d08c7f1223110e726f0037614363ba877289fef1c97a1a12fd3d5a7dc59
tags:
- latest
- main
targets:
polar:
source: Polar-OAS
sourceNamespace: polar-oas
sourceRevisionDigest: sha256:c7e33d349286ddccd4829c8a687488e4605b8e4ee1f7a1f292f49a74872f598e
sourceBlobDigest: sha256:7316038513ebb138e351a2af12f12b570b62f9691c2be6df032216ee0406f91a
sourceRevisionDigest: sha256:f42da804fd4b2c4d782ed454d174adb8316fdc986e50245ae703e445020b1b76
sourceBlobDigest: sha256:0e4a2d08c7f1223110e726f0037614363ba877289fef1c97a1a12fd3d5a7dc59
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 @@ -188,4 +188,14 @@ Based on:
### Generated
- [typescript v0.15.0] .
### Releases
- [NPM v0.15.0] https://www.npmjs.com/package/@polar-sh/sdk/v/0.15.0 - .
- [NPM v0.15.0] https://www.npmjs.com/package/@polar-sh/sdk/v/0.15.0 - .

## 2024-11-06 14:14:28
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.431.0 (2.451.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.15.1] .
### Releases
- [NPM v0.15.1] https://www.npmjs.com/package/@polar-sh/sdk/v/0.15.1 - .
3 changes: 2 additions & 1 deletion docs/models/components/checkoutupdate.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ let value: CheckoutUpdate = {};
| `customerTaxId` | *string* | :heavy_minus_sign: | N/A |
| `metadata` | Record<string, *string*> | :heavy_minus_sign: | Key-value object allowing you to store additional information.<br/><br/>The key must be a string with a maximum length of **40 characters**.<br/>The value must be a string with a maximum length of **500 characters**.<br/>You can store up to **50 key-value pairs**. |
| `customerIpAddress` | *string* | :heavy_minus_sign: | N/A |
| `successUrl` | *string* | :heavy_minus_sign: | URL where the customer will be redirected after a successful payment.You can add the `checkout_id={CHECKOUT_ID}` query parameter to retrieve the checkout session id. |
| `successUrl` | *string* | :heavy_minus_sign: | URL where the customer will be redirected after a successful payment.You can add the `checkout_id={CHECKOUT_ID}` query parameter to retrieve the checkout session id. |
| `embedOrigin` | *string* | :heavy_minus_sign: | If you plan to embed the checkout session, set this to the Origin of the embedding page. It'll allow the Polar iframe to communicate with the parent page. |
3 changes: 2 additions & 1 deletion docs/models/components/polarcheckoutschemascheckoutcreate.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@ let value: PolarCheckoutSchemasCheckoutCreate = {
| `customerBillingAddress` | [components.Address](../../models/components/address.md) | :heavy_minus_sign: | N/A |
| `customerTaxId` | *string* | :heavy_minus_sign: | N/A |
| `subscriptionId` | *string* | :heavy_minus_sign: | ID of a subscription to upgrade. It must be on a free pricing. If checkout is successful, metadata set on this checkout will be copied to the subscription, and existing keys will be overwritten. |
| `successUrl` | *string* | :heavy_minus_sign: | URL where the customer will be redirected after a successful payment.You can add the `checkout_id={CHECKOUT_ID}` query parameter to retrieve the checkout session id. |
| `successUrl` | *string* | :heavy_minus_sign: | URL where the customer will be redirected after a successful payment.You can add the `checkout_id={CHECKOUT_ID}` query parameter to retrieve the checkout session id. |
| `embedOrigin` | *string* | :heavy_minus_sign: | If you plan to embed the checkout session, set this to the Origin of the embedding page. It'll allow the Polar iframe to communicate with the parent page. |
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.15.0",
"version": "0.15.1",
"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.15.0",
"version": "0.15.1",
"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.15.0",
sdkVersion: "0.15.1",
genVersion: "2.451.0",
userAgent: "speakeasy-sdk/typescript 0.15.0 2.451.0 0.1.0 @polar-sh/sdk",
userAgent: "speakeasy-sdk/typescript 0.15.1 2.451.0 0.1.0 @polar-sh/sdk",
} as const;
9 changes: 9 additions & 0 deletions src/models/components/checkoutupdate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ export type CheckoutUpdate = {
* URL where the customer will be redirected after a successful payment.You can add the `checkout_id={CHECKOUT_ID}` query parameter to retrieve the checkout session id.
*/
successUrl?: string | null | undefined;
/**
* If you plan to embed the checkout session, set this to the Origin of the embedding page. It'll allow the Polar iframe to communicate with the parent page.
*/
embedOrigin?: string | null | undefined;
};

/** @internal */
Expand Down Expand Up @@ -94,6 +98,7 @@ export const CheckoutUpdate$inboundSchema: z.ZodType<
metadata: z.nullable(z.record(z.string())).optional(),
customer_ip_address: z.nullable(z.string()).optional(),
success_url: z.nullable(z.string()).optional(),
embed_origin: z.nullable(z.string()).optional(),
}).transform((v) => {
return remap$(v, {
"custom_field_data": "customFieldData",
Expand All @@ -104,6 +109,7 @@ export const CheckoutUpdate$inboundSchema: z.ZodType<
"customer_tax_id": "customerTaxId",
"customer_ip_address": "customerIpAddress",
"success_url": "successUrl",
"embed_origin": "embedOrigin",
});
});

Expand All @@ -119,6 +125,7 @@ export type CheckoutUpdate$Outbound = {
metadata?: { [k: string]: string } | null | undefined;
customer_ip_address?: string | null | undefined;
success_url?: string | null | undefined;
embed_origin?: string | null | undefined;
};

/** @internal */
Expand All @@ -138,6 +145,7 @@ export const CheckoutUpdate$outboundSchema: z.ZodType<
metadata: z.nullable(z.record(z.string())).optional(),
customerIpAddress: z.nullable(z.string()).optional(),
successUrl: z.nullable(z.string()).optional(),
embedOrigin: z.nullable(z.string()).optional(),
}).transform((v) => {
return remap$(v, {
customFieldData: "custom_field_data",
Expand All @@ -148,6 +156,7 @@ export const CheckoutUpdate$outboundSchema: z.ZodType<
customerTaxId: "customer_tax_id",
customerIpAddress: "customer_ip_address",
successUrl: "success_url",
embedOrigin: "embed_origin",
});
});

Expand Down
9 changes: 9 additions & 0 deletions src/models/components/polarcheckoutschemascheckoutcreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ export type PolarCheckoutSchemasCheckoutCreate = {
* URL where the customer will be redirected after a successful payment.You can add the `checkout_id={CHECKOUT_ID}` query parameter to retrieve the checkout session id.
*/
successUrl?: string | null | undefined;
/**
* If you plan to embed the checkout session, set this to the Origin of the embedding page. It'll allow the Polar iframe to communicate with the parent page.
*/
embedOrigin?: string | null | undefined;
};

/** @internal */
Expand Down Expand Up @@ -153,6 +157,7 @@ export const PolarCheckoutSchemasCheckoutCreate$inboundSchema: z.ZodType<
customer_tax_id: z.nullable(z.string()).optional(),
subscription_id: z.nullable(z.string()).optional(),
success_url: z.nullable(z.string()).optional(),
embed_origin: z.nullable(z.string()).optional(),
}).transform((v) => {
return remap$(v, {
"custom_field_data": "customFieldData",
Expand All @@ -165,6 +170,7 @@ export const PolarCheckoutSchemasCheckoutCreate$inboundSchema: z.ZodType<
"customer_tax_id": "customerTaxId",
"subscription_id": "subscriptionId",
"success_url": "successUrl",
"embed_origin": "embedOrigin",
});
});

Expand All @@ -184,6 +190,7 @@ export type PolarCheckoutSchemasCheckoutCreate$Outbound = {
customer_tax_id?: string | null | undefined;
subscription_id?: string | null | undefined;
success_url?: string | null | undefined;
embed_origin?: string | null | undefined;
};

/** @internal */
Expand All @@ -206,6 +213,7 @@ export const PolarCheckoutSchemasCheckoutCreate$outboundSchema: z.ZodType<
customerTaxId: z.nullable(z.string()).optional(),
subscriptionId: z.nullable(z.string()).optional(),
successUrl: z.nullable(z.string()).optional(),
embedOrigin: z.nullable(z.string()).optional(),
}).transform((v) => {
return remap$(v, {
customFieldData: "custom_field_data",
Expand All @@ -218,6 +226,7 @@ export const PolarCheckoutSchemasCheckoutCreate$outboundSchema: z.ZodType<
customerTaxId: "customer_tax_id",
subscriptionId: "subscription_id",
successUrl: "success_url",
embedOrigin: "embed_origin",
});
});

Expand Down

0 comments on commit 3393822

Please sign in to comment.