diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 7965babb..bc811028 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: c0b91f58fe2c7569b382da08ffc3aa77 + docChecksum: 089f5b92c1fb2f4bb8c301ddddbe5224 docVersion: 0.1.0 speakeasyVersion: 1.484.1 generationVersion: 2.503.2 - releaseVersion: 0.23.0 - configChecksum: afcd4bfecf6ae912c1e13a161ad46955 + releaseVersion: 0.24.0 + configChecksum: 0a509e596eb262e452704c780f97c8ac repoURL: https://github.com/polarsource/polar-js.git installationURL: https://github.com/polarsource/polar-js published: true @@ -124,8 +124,6 @@ generatedFiles: - docs/models/components/checkoutdiscountfixedrepeatduration.md - docs/models/components/checkoutdiscountpercentageonceforeverduration.md - docs/models/components/checkoutdiscountpercentagerepeatduration.md - - docs/models/components/checkoutlegacy.md - - docs/models/components/checkoutlegacycreate.md - docs/models/components/checkoutlink.md - docs/models/components/checkoutlinkcreate.md - docs/models/components/checkoutlinkdiscount.md @@ -557,16 +555,15 @@ generatedFiles: - docs/models/operations/checkoutlinkslistrequest.md - docs/models/operations/checkoutlinkslistresponse.md - docs/models/operations/checkoutlinksupdaterequest.md - - docs/models/operations/checkoutscustomclientconfirmrequest.md - - docs/models/operations/checkoutscustomclientgetrequest.md - - docs/models/operations/checkoutscustomclientupdaterequest.md - - docs/models/operations/checkoutscustomgetrequest.md - - docs/models/operations/checkoutscustomlistqueryparamorganizationidfilter.md - - docs/models/operations/checkoutscustomlistqueryparamproductidfilter.md - - docs/models/operations/checkoutscustomlistrequest.md - - docs/models/operations/checkoutscustomlistresponse.md - - docs/models/operations/checkoutscustomupdaterequest.md + - docs/models/operations/checkoutsclientconfirmrequest.md + - docs/models/operations/checkoutsclientgetrequest.md + - docs/models/operations/checkoutsclientupdaterequest.md - docs/models/operations/checkoutsgetrequest.md + - docs/models/operations/checkoutslistqueryparamorganizationidfilter.md + - docs/models/operations/checkoutslistqueryparamproductidfilter.md + - docs/models/operations/checkoutslistrequest.md + - docs/models/operations/checkoutslistresponse.md + - docs/models/operations/checkoutsupdaterequest.md - docs/models/operations/customeridfilter.md - docs/models/operations/customerportalbenefitgrantsgetrequest.md - docs/models/operations/customerportalbenefitgrantslistqueryparambenefitidfilter.md @@ -727,7 +724,6 @@ generatedFiles: - docs/sdks/checkoutlinks/README.md - docs/sdks/checkouts/README.md - docs/sdks/clients/README.md - - docs/sdks/custom/README.md - docs/sdks/customerportal/README.md - docs/sdks/customers/README.md - docs/sdks/customersessions/README.md @@ -771,15 +767,13 @@ generatedFiles: - src/funcs/checkoutLinksGet.ts - src/funcs/checkoutLinksList.ts - src/funcs/checkoutLinksUpdate.ts + - src/funcs/checkoutsClientConfirm.ts + - src/funcs/checkoutsClientGet.ts + - src/funcs/checkoutsClientUpdate.ts - src/funcs/checkoutsCreate.ts - - src/funcs/checkoutsCustomClientConfirm.ts - - src/funcs/checkoutsCustomClientGet.ts - - src/funcs/checkoutsCustomClientUpdate.ts - - src/funcs/checkoutsCustomCreate.ts - - src/funcs/checkoutsCustomGet.ts - - src/funcs/checkoutsCustomList.ts - - src/funcs/checkoutsCustomUpdate.ts - src/funcs/checkoutsGet.ts + - src/funcs/checkoutsList.ts + - src/funcs/checkoutsUpdate.ts - src/funcs/customFieldsCreate.ts - src/funcs/customFieldsDelete.ts - src/funcs/customFieldsGet.ts @@ -960,8 +954,6 @@ generatedFiles: - src/models/components/checkoutdiscountfixedrepeatduration.ts - src/models/components/checkoutdiscountpercentageonceforeverduration.ts - src/models/components/checkoutdiscountpercentagerepeatduration.ts - - src/models/components/checkoutlegacy.ts - - src/models/components/checkoutlegacycreate.ts - src/models/components/checkoutlink.ts - src/models/components/checkoutlinkcreate.ts - src/models/components/checkoutlinkpricecreate.ts @@ -1277,13 +1269,12 @@ generatedFiles: - src/models/operations/checkoutlinksget.ts - src/models/operations/checkoutlinkslist.ts - src/models/operations/checkoutlinksupdate.ts - - src/models/operations/checkoutscustomclientconfirm.ts - - src/models/operations/checkoutscustomclientget.ts - - src/models/operations/checkoutscustomclientupdate.ts - - src/models/operations/checkoutscustomget.ts - - src/models/operations/checkoutscustomlist.ts - - src/models/operations/checkoutscustomupdate.ts + - src/models/operations/checkoutsclientconfirm.ts + - src/models/operations/checkoutsclientget.ts + - src/models/operations/checkoutsclientupdate.ts - src/models/operations/checkoutsget.ts + - src/models/operations/checkoutslist.ts + - src/models/operations/checkoutsupdate.ts - src/models/operations/customerportalbenefitgrantsget.ts - src/models/operations/customerportalbenefitgrantslist.ts - src/models/operations/customerportalbenefitgrantsupdate.ts @@ -1363,7 +1354,6 @@ generatedFiles: - src/sdk/checkoutlinks.ts - src/sdk/checkouts.ts - src/sdk/clients.ts - - src/sdk/custom.ts - src/sdk/customerportal.ts - src/sdk/customers.ts - src/sdk/customersessions.ts @@ -2051,10 +2041,10 @@ examples: checkouts:create: speakeasy-default-checkouts:create: requestBody: - application/json: {"product_price_id": "", "success_url": "https://probable-heating.com/"} + application/json: {"allow_discount_codes": true, "success_url": "https://probable-heating.com/", "product_price_id": ""} responses: "201": - application/json: {"id": "", "customer_email": "", "customer_name": "", "product": {"created_at": "2023-03-17T15:39:20.911Z", "modified_at": "2025-05-22T22:27:14.379Z", "id": "", "name": "", "description": "resolve barracks approximate though championship kookily attend alongside aw blend", "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2024-04-02T12:48:32.253Z", "modified_at": "2023-05-28T06:20:22.766Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 796474, "maximum_amount": 951062, "preset_amount": 86, "recurring_interval": "month"}, {"created_at": "2025-06-13T23:30:51.782Z", "modified_at": "2024-10-04T11:56:21.731Z", "id": "", "is_archived": false, "product_id": "", "recurring_interval": "year"}], "benefits": [{"created_at": "2025-03-09T19:18:20.415Z", "modified_at": "2025-05-27T15:09:35.417Z", "id": "", "type": "custom", "description": "than rightfully brightly sleet where schedule insolence", "selectable": false, "deletable": true, "organization_id": ""}, {"created_at": "2023-10-10T12:11:05.217Z", "modified_at": "2025-12-13T05:18:01.829Z", "id": "", "type": "discord", "description": "obligation elliptical ick", "selectable": true, "deletable": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/usr/src", "mime_type": "", "size": 199311, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-09-11T01:54:42.561Z", "version": "", "is_uploaded": false, "created_at": "2025-03-28T10:54:13.192Z", "size_readable": "", "public_url": "https://blank-manner.org/"}, {"id": "", "organization_id": "", "name": "", "path": "/var", "mime_type": "", "size": 475786, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-02-01T04:08:07.069Z", "version": "", "is_uploaded": true, "created_at": "2023-10-14T21:15:17.585Z", "size_readable": "", "public_url": "https://impolite-dish.biz"}, {"id": "", "organization_id": "", "name": "", "path": "/private", "mime_type": "", "size": 149413, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-03-25T05:20:06.588Z", "version": "", "is_uploaded": false, "created_at": "2025-02-09T15:32:31.554Z", "size_readable": "", "public_url": "https://mild-switchboard.info/"}]}, "product_price": {"created_at": "2023-01-20T11:09:16.789Z", "modified_at": "2023-09-10T10:08:53.440Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "price_amount": 64738, "recurring_interval": "month"}} + application/json: {"created_at": "2024-06-17T07:14:55.338Z", "modified_at": "2024-11-30T17:06:07.804Z", "id": "", "payment_processor": "stripe", "status": "confirmed", "client_secret": "", "url": "https://black-and-white-secrecy.org/", "expires_at": "2023-01-01T02:16:41.381Z", "success_url": "https://brisk-seafood.net/", "embed_origin": "", "amount": 586220, "tax_amount": 752438, "currency": "CFP Franc", "subtotal_amount": 357021, "total_amount": 259629, "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": true, "is_discount_applicable": true, "is_free_product_price": true, "is_payment_required": true, "is_payment_setup_required": true, "is_payment_form_required": true, "customer_id": "", "customer_name": "", "customer_email": "", "customer_ip_address": "", "customer_billing_address": {"country": "Bangladesh"}, "customer_tax_id": "", "payment_processor_metadata": {}, "metadata": {"key": 36521, "key1": 650237}, "product": {"created_at": "2023-03-17T15:39:20.911Z", "modified_at": "2025-05-22T22:27:14.379Z", "id": "", "name": "", "description": "resolve barracks approximate though championship kookily attend alongside aw blend", "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2024-07-27T18:44:31.482Z", "modified_at": "2023-01-31T06:30:36.486Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "price_amount": 550483, "recurring_interval": "year"}, {"created_at": "2023-10-12T17:02:32.250Z", "modified_at": "2025-05-07T11:22:17.516Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 703441, "maximum_amount": 920994, "preset_amount": 780486, "recurring_interval": "year"}], "benefits": [{"created_at": "2025-03-09T19:18:20.415Z", "modified_at": "2025-05-27T15:09:35.417Z", "id": "", "type": "custom", "description": "than rightfully brightly sleet where schedule insolence", "selectable": false, "deletable": true, "organization_id": ""}, {"created_at": "2023-10-10T12:11:05.217Z", "modified_at": "2025-12-13T05:18:01.829Z", "id": "", "type": "discord", "description": "obligation elliptical ick", "selectable": true, "deletable": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/usr/src", "mime_type": "", "size": 199311, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-09-11T01:54:42.561Z", "version": "", "is_uploaded": false, "created_at": "2025-03-28T10:54:13.192Z", "size_readable": "", "public_url": "https://blank-manner.org/"}, {"id": "", "organization_id": "", "name": "", "path": "/var", "mime_type": "", "size": 475786, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-02-01T04:08:07.069Z", "version": "", "is_uploaded": true, "created_at": "2023-10-14T21:15:17.585Z", "size_readable": "", "public_url": "https://impolite-dish.biz"}, {"id": "", "organization_id": "", "name": "", "path": "/private", "mime_type": "", "size": 149413, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-03-25T05:20:06.588Z", "version": "", "is_uploaded": false, "created_at": "2025-02-09T15:32:31.554Z", "size_readable": "", "public_url": "https://mild-switchboard.info/"}]}, "product_price": {"created_at": "2024-04-13T23:08:55.199Z", "modified_at": "2024-10-06T23:48:35.278Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 491427, "maximum_amount": 490420, "preset_amount": 325463, "recurring_interval": "year"}, "discount": {"duration": "once", "type": "fixed", "amount": 583353, "currency": "Libyan Dinar", "id": "", "name": "", "code": ""}, "subscription_id": "", "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2023-04-21T23:18:33.658Z", "modified_at": "2023-07-26T12:35:34.317Z", "id": "", "metadata": {"key": true, "key1": false, "key2": 17207}, "slug": "", "name": "", "organization_id": "", "properties": {}}, "order": 198175, "required": false}], "customer_metadata": {"key": 679885}} "422": application/json: {} checkouts:get: @@ -2064,9 +2054,11 @@ examples: id: "" responses: "200": - application/json: {"id": "", "customer_email": "", "customer_name": "", "product": {"created_at": "2025-02-06T13:54:48.821Z", "modified_at": "2024-09-04T11:33:52.011Z", "id": "", "name": "", "description": "tune only fellow scary but embarrassment metabolise", "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2024-08-19T11:11:04.610Z", "modified_at": "2024-07-25T06:33:15.810Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "minimum_amount": 458049, "maximum_amount": 450824, "preset_amount": 262795}, {"created_at": "2024-04-25T04:53:50.189Z", "modified_at": "2025-05-28T07:17:57.134Z", "id": "", "is_archived": true, "product_id": "", "recurring_interval": "month"}], "benefits": [{"created_at": "2025-11-07T20:31:03.453Z", "modified_at": "2024-06-17T09:19:42.888Z", "id": "", "type": "custom", "description": "unless scholarship ick", "selectable": true, "deletable": true, "organization_id": ""}, {"created_at": "2023-03-05T14:01:26.927Z", "modified_at": "2024-08-21T23:59:38.589Z", "id": "", "type": "custom", "description": "wash fork whose helpful calmly council", "selectable": true, "deletable": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/dev", "mime_type": "", "size": 363455, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-11-12T10:51:39.493Z", "version": "", "is_uploaded": false, "created_at": "2025-06-10T14:56:30.468Z", "size_readable": "", "public_url": "https://violent-hyphenation.info/"}, {"id": "", "organization_id": "", "name": "", "path": "/var/spool", "mime_type": "", "size": 362683, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-04-16T15:25:27.950Z", "version": "", "is_uploaded": true, "created_at": "2024-11-09T06:42:52.951Z", "size_readable": "", "public_url": "https://descriptive-giggle.biz"}]}, "product_price": {"created_at": "2024-08-28T15:06:35.685Z", "modified_at": "2025-06-02T05:45:06.910Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "price_amount": 746585, "recurring_interval": "year"}} + application/json: {"created_at": "2025-02-06T13:54:48.821Z", "modified_at": "2024-09-04T11:33:52.011Z", "id": "", "payment_processor": "stripe", "status": "confirmed", "client_secret": "", "url": "https://willing-impostor.info", "expires_at": "2023-10-16T00:34:27.106Z", "success_url": "https://warm-hundred.net/", "embed_origin": "", "amount": 78888, "tax_amount": 219956, "currency": "Dalasi", "subtotal_amount": 94589, "total_amount": 552582, "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": false, "is_discount_applicable": true, "is_free_product_price": false, "is_payment_required": false, "is_payment_setup_required": false, "is_payment_form_required": true, "customer_id": "", "customer_name": "", "customer_email": "", "customer_ip_address": "", "customer_billing_address": {"country": "Gabon"}, "customer_tax_id": "", "payment_processor_metadata": {}, "metadata": {}, "product": {"created_at": "2025-02-06T13:54:48.821Z", "modified_at": "2024-09-04T11:33:52.011Z", "id": "", "name": "", "description": "tune only fellow scary but embarrassment metabolise", "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2025-03-19T09:19:03.347Z", "modified_at": "2025-04-26T05:27:06.241Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "price_amount": 909118}, {"created_at": "2025-11-21T18:15:13.381Z", "modified_at": "2024-05-02T12:57:21.117Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "price_amount": 132944, "recurring_interval": "month"}], "benefits": [{"created_at": "2025-11-07T20:31:03.453Z", "modified_at": "2024-06-17T09:19:42.888Z", "id": "", "type": "custom", "description": "unless scholarship ick", "selectable": true, "deletable": true, "organization_id": ""}, {"created_at": "2023-03-05T14:01:26.927Z", "modified_at": "2024-08-21T23:59:38.589Z", "id": "", "type": "custom", "description": "wash fork whose helpful calmly council", "selectable": true, "deletable": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/dev", "mime_type": "", "size": 363455, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-11-12T10:51:39.493Z", "version": "", "is_uploaded": false, "created_at": "2025-06-10T14:56:30.468Z", "size_readable": "", "public_url": "https://violent-hyphenation.info/"}, {"id": "", "organization_id": "", "name": "", "path": "/var/spool", "mime_type": "", "size": 362683, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-04-16T15:25:27.950Z", "version": "", "is_uploaded": true, "created_at": "2024-11-09T06:42:52.951Z", "size_readable": "", "public_url": "https://descriptive-giggle.biz"}]}, "product_price": {"created_at": "2025-08-02T18:30:37.023Z", "modified_at": "2024-12-07T21:19:29.300Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "price_amount": 292871}, "discount": {"duration": "repeating", "type": "fixed", "basis_points": 384844, "id": "", "name": "", "code": ""}, "subscription_id": "", "attached_custom_fields": [], "customer_metadata": {"key": 656841, "key1": 607679, "key2": true}} "422": application/json: {} + "404": + application/json: {"detail": ""} checkouts:custom:list: speakeasy-default-checkouts:custom:list: parameters: @@ -2826,7 +2818,7 @@ examples: application/json: {"name": "", "filter": {"conjunction": "and", "clauses": [{"property": "", "operator": "ne", "value": ""}]}, "aggregation": {"func": "sum", "property": ""}} responses: "201": - application/json: {"metadata": {}, "created_at": "2023-04-09T14:25:29.356Z", "modified_at": "2025-05-18T17:03:53.906Z", "id": "", "name": "", "filter": {"conjunction": "or", "clauses": []}, "aggregation": {}, "organization_id": ""} + application/json: {"metadata": {}, "created_at": "2023-04-09T14:25:29.356Z", "modified_at": "2025-05-18T17:03:53.906Z", "id": "", "name": "", "filter": {"conjunction": "or", "clauses": []}, "aggregation": {"func": "min", "property": ""}, "organization_id": ""} "422": application/json: {} meters:get: @@ -2850,7 +2842,7 @@ examples: application/json: {} responses: "200": - application/json: {"metadata": {"key": 344620, "key1": false, "key2": 984008}, "created_at": "2023-03-01T06:03:05.915Z", "modified_at": "2025-09-09T13:32:29.600Z", "id": "", "name": "", "filter": {"conjunction": "and", "clauses": [{"property": "", "operator": "ne", "value": false}]}, "aggregation": {}, "organization_id": ""} + application/json: {"metadata": {"key": 344620, "key1": false, "key2": 984008}, "created_at": "2023-03-01T06:03:05.915Z", "modified_at": "2025-09-09T13:32:29.600Z", "id": "", "name": "", "filter": {"conjunction": "and", "clauses": [{"property": "", "operator": "ne", "value": 991464}]}, "aggregation": {"func": "max", "property": ""}, "organization_id": ""} "404": application/json: {"detail": ""} "422": @@ -2886,5 +2878,76 @@ examples: application/json: {"detail": ""} "422": application/json: {} + checkouts:list: + speakeasy-default-checkouts:list: + parameters: + query: + page: 1 + limit: 10 + responses: + "200": + application/json: {"items": [{"created_at": "2024-08-22T19:26:20.850Z", "modified_at": "2025-01-13T10:26:00.433Z", "id": "", "payment_processor": "stripe", "status": "open", "client_secret": "", "url": "https://crooked-overload.name/", "expires_at": "2023-01-20T06:21:22.156Z", "success_url": "https://breakable-bathrobe.net", "embed_origin": "", "amount": 509883, "tax_amount": 633911, "currency": "Afghani", "subtotal_amount": 54607, "total_amount": 367745, "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": true, "is_discount_applicable": true, "is_free_product_price": false, "is_payment_required": false, "is_payment_setup_required": false, "is_payment_form_required": true, "customer_id": "", "customer_name": "", "customer_email": "", "customer_ip_address": "", "customer_billing_address": {"country": "Aruba"}, "customer_tax_id": "", "payment_processor_metadata": {"key": ""}, "metadata": {"key": "", "key1": true, "key2": true}, "product": {"created_at": "2023-03-24T06:20:14.879Z", "modified_at": "2025-09-10T04:30:13.188Z", "id": "", "name": "", "description": "sprinkles er since truly", "is_recurring": false, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2024-08-19T22:29:27.736Z", "modified_at": "2023-03-15T10:11:56.132Z", "id": "", "is_archived": true, "product_id": "", "recurring_interval": "month"}, {"created_at": "2023-10-11T19:17:33.283Z", "modified_at": "2023-12-22T07:54:29.563Z", "id": "", "is_archived": true, "product_id": ""}], "benefits": [{"created_at": "2024-05-03T10:59:46.313Z", "modified_at": "2023-01-06T17:33:20.863Z", "id": "", "type": "downloadables", "description": "yesterday eek censor tenement commonly softly boo massive sorrowful aw", "selectable": true, "deletable": false, "organization_id": ""}, {"created_at": "2023-11-17T06:46:18.694Z", "modified_at": "2023-10-09T03:58:07.827Z", "id": "", "type": "license_keys", "description": "steeple overheard swerve than bicycle twine huzzah obnoxiously", "selectable": true, "deletable": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/opt/share", "mime_type": "", "size": 561143, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-08-16T15:42:00.686Z", "version": "", "is_uploaded": true, "created_at": "2024-04-27T12:09:29.137Z", "size_readable": "", "public_url": "https://fair-marketplace.org/"}, {"id": "", "organization_id": "", "name": "", "path": "/usr/local/src", "mime_type": "", "size": 152303, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-10-03T23:44:36.269Z", "version": "", "is_uploaded": false, "created_at": "2024-06-18T04:12:45.071Z", "size_readable": "", "public_url": "https://entire-affiliate.biz"}, {"id": "", "organization_id": "", "name": "", "path": "/System", "mime_type": "", "size": 832756, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-08-19T10:34:27.488Z", "version": "", "is_uploaded": false, "created_at": "2024-03-28T11:42:09.368Z", "size_readable": "", "public_url": "https://flustered-forgery.net"}]}, "product_price": {"created_at": "2025-03-07T02:26:31.358Z", "modified_at": "2023-06-21T02:05:32.746Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "minimum_amount": 374478, "maximum_amount": 859260, "preset_amount": 496154}, "discount": {"duration": "forever", "duration_in_months": 704478, "type": "percentage", "basis_points": 938369, "id": "", "name": "", "code": ""}, "subscription_id": "", "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2024-04-22T16:13:21.235Z", "modified_at": "2024-09-10T11:54:14.319Z", "id": "", "metadata": {"key": true, "key1": ""}, "slug": "", "name": "", "organization_id": "", "properties": {}}, "order": 608798, "required": true}, {"custom_field_id": "", "custom_field": {"created_at": "2024-01-30T05:46:03.648Z", "modified_at": "2024-07-31T16:24:14.183Z", "id": "", "metadata": {"key": ""}, "slug": "", "name": "", "organization_id": "", "properties": {}}, "order": 694688, "required": true}], "customer_metadata": {"key": true, "key1": 314043, "key2": ""}}, {"created_at": "2025-05-18T21:08:27.359Z", "modified_at": "2023-01-01T11:05:05.995Z", "id": "", "payment_processor": "stripe", "status": "succeeded", "client_secret": "", "url": "https://hoarse-baseboard.name/", "expires_at": "2024-10-05T17:09:46.559Z", "success_url": "https://sparkling-hydrolyze.biz/", "embed_origin": "", "amount": 211832, "tax_amount": 119137, "currency": "Manat", "subtotal_amount": 839722, "total_amount": 968727, "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": true, "is_discount_applicable": false, "is_free_product_price": true, "is_payment_required": false, "is_payment_setup_required": true, "is_payment_form_required": true, "customer_id": "", "customer_name": "", "customer_email": "", "customer_ip_address": "", "customer_billing_address": {"country": "Latvia"}, "customer_tax_id": "", "payment_processor_metadata": {"key": ""}, "metadata": {"key": true, "key1": true}, "product": {"created_at": "2025-07-29T15:14:26.705Z", "modified_at": "2023-02-27T11:29:27.249Z", "id": "", "name": "", "description": "ack solicit weakly", "is_recurring": false, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2023-02-04T16:53:23.272Z", "modified_at": "2025-05-09T13:20:09.208Z", "id": "", "is_archived": false, "product_id": "", "recurring_interval": "year"}], "benefits": [{"created_at": "2023-05-02T01:47:04.536Z", "modified_at": "2024-11-15T04:09:28.193Z", "id": "", "type": "license_keys", "description": "but favorite beneath", "selectable": false, "deletable": true, "organization_id": ""}, {"created_at": "2025-09-02T23:08:00.186Z", "modified_at": "2025-10-28T04:58:58.509Z", "id": "", "type": "downloadables", "description": "how until to onto ouch shrilly ramp ethical busily archaeology", "selectable": true, "deletable": false, "organization_id": ""}, {"created_at": "2023-02-25T17:28:41.442Z", "modified_at": "2024-12-18T20:11:41.014Z", "id": "", "type": "ads", "description": "except following ick verbally drat pillow", "selectable": false, "deletable": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/usr/ports", "mime_type": "", "size": 850053, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-01-07T04:08:08.901Z", "version": "", "is_uploaded": true, "created_at": "2025-06-16T08:19:05.026Z", "size_readable": "", "public_url": "https://that-plumber.org"}, {"id": "", "organization_id": "", "name": "", "path": "/rescue", "mime_type": "", "size": 915295, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-05-28T03:27:06.201Z", "version": "", "is_uploaded": false, "created_at": "2025-11-28T05:50:05.391Z", "size_readable": "", "public_url": "https://interesting-baseboard.biz"}, {"id": "", "organization_id": "", "name": "", "path": "/usr/X11R6", "mime_type": "", "size": 113341, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-06-02T17:02:41.566Z", "version": "", "is_uploaded": true, "created_at": "2024-10-06T22:24:47.498Z", "size_readable": "", "public_url": "https://skeletal-commercial.net"}]}, "product_price": {"created_at": "2024-04-30T20:59:40.436Z", "modified_at": "2025-12-21T09:31:52.337Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 552172, "maximum_amount": 206795, "preset_amount": 257426, "recurring_interval": "month"}, "discount": {"duration": "repeating", "type": "percentage", "basis_points": 526858, "id": "", "name": "", "code": ""}, "subscription_id": "", "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2024-08-31T03:57:12.777Z", "modified_at": "2025-03-30T11:09:26.643Z", "id": "", "metadata": {"key": true, "key1": 351638}, "slug": "", "name": "", "organization_id": "", "properties": {"options": []}}, "order": 898170, "required": true}, {"custom_field_id": "", "custom_field": {"created_at": "2025-03-05T15:08:11.722Z", "modified_at": "2024-01-09T06:57:27.306Z", "id": "", "metadata": {"key": true, "key1": 239463, "key2": true}, "slug": "", "name": "", "organization_id": "", "properties": {}}, "order": 341163, "required": true}], "customer_metadata": {"key": "", "key1": false}}, {"created_at": "2024-07-13T16:13:57.819Z", "modified_at": "2024-12-20T01:52:19.079Z", "id": "", "payment_processor": "stripe", "status": "open", "client_secret": "", "url": "https://vague-interviewer.org", "expires_at": "2024-02-10T18:58:34.440Z", "success_url": "https://total-scorn.name", "embed_origin": "", "amount": 178449, "tax_amount": 215623, "currency": "Brazilian Real", "subtotal_amount": 140546, "total_amount": 27174, "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": false, "is_discount_applicable": false, "is_free_product_price": true, "is_payment_required": true, "is_payment_setup_required": true, "is_payment_form_required": true, "customer_id": "", "customer_name": "", "customer_email": "", "customer_ip_address": "", "customer_billing_address": {"country": "Uganda"}, "customer_tax_id": "", "payment_processor_metadata": {}, "metadata": {"key": true, "key1": "", "key2": true}, "product": {"created_at": "2023-06-06T23:34:06.957Z", "modified_at": "2023-09-03T07:41:45.532Z", "id": "", "name": "", "description": "opposite buck shocked unto", "is_recurring": true, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2024-01-31T21:47:42.410Z", "modified_at": "2024-11-26T05:32:47.450Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "price_amount": 73215, "recurring_interval": "month"}], "benefits": [], "medias": []}, "product_price": {"created_at": "2025-01-21T04:22:35.280Z", "modified_at": "2023-10-20T16:40:10.867Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "price_amount": 510593}, "discount": {"duration": "repeating", "duration_in_months": 256905, "type": "fixed", "basis_points": 539479, "id": "", "name": "", "code": ""}, "subscription_id": "", "attached_custom_fields": [], "customer_metadata": {"key": ""}}], "pagination": {"total_count": 633451, "max_page": 50745}} + "422": + application/json: {} + checkouts:update: + speakeasy-default-checkouts:update: + parameters: + path: + id: "" + requestBody: + application/json: {} + responses: + "200": + application/json: {"created_at": "2025-07-28T19:04:48.565Z", "modified_at": "2024-10-16T10:52:42.015Z", "id": "", "payment_processor": "stripe", "status": "expired", "client_secret": "", "url": "https://powerless-juggernaut.org", "expires_at": "2023-03-01T06:03:05.915Z", "success_url": "https://juvenile-exploration.biz", "embed_origin": "", "amount": 139579, "tax_amount": 789275, "currency": "US Dollar", "subtotal_amount": 302461, "total_amount": 464385, "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": false, "is_discount_applicable": false, "is_free_product_price": true, "is_payment_required": true, "is_payment_setup_required": false, "is_payment_form_required": false, "customer_id": "", "customer_name": "", "customer_email": "", "customer_ip_address": "", "customer_billing_address": {"country": "Israel"}, "customer_tax_id": "", "payment_processor_metadata": {"key": "", "key1": ""}, "metadata": {}, "product": {"created_at": "2023-09-12T16:22:21.923Z", "modified_at": "2024-01-22T19:32:52.503Z", "id": "", "name": "", "description": "mobility char innocently dowse restfully ew woot through quantify", "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2024-09-02T03:35:45.584Z", "modified_at": "2024-05-22T21:03:36.028Z", "id": "", "is_archived": true, "product_id": ""}], "benefits": [], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/net", "mime_type": "", "size": 34036, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-09-26T03:13:45.129Z", "version": "", "is_uploaded": true, "created_at": "2024-06-16T12:36:03.175Z", "size_readable": "", "public_url": "https://reflecting-hydrolyze.info"}, {"id": "", "organization_id": "", "name": "", "path": "/boot", "mime_type": "", "size": 20664, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-07-23T20:53:49.881Z", "version": "", "is_uploaded": false, "created_at": "2023-05-28T18:12:24.101Z", "size_readable": "", "public_url": "https://teeming-velocity.net/"}, {"id": "", "organization_id": "", "name": "", "path": "/usr/libdata", "mime_type": "", "size": 86078, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-09-02T01:36:01.445Z", "version": "", "is_uploaded": false, "created_at": "2024-07-06T17:41:05.826Z", "size_readable": "", "public_url": "https://straight-cinema.com/"}]}, "product_price": {"created_at": "2024-04-27T18:43:33.136Z", "modified_at": "2025-08-14T18:17:42.881Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "price_amount": 750835}, "discount": {"duration": "repeating", "type": "percentage", "amount": 623264, "currency": "Boliviano boliviano", "id": "", "name": "", "code": ""}, "subscription_id": "", "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2024-03-14T23:04:44.967Z", "modified_at": "2024-03-02T14:45:30.354Z", "id": "", "metadata": {"key": 257829, "key1": 302363, "key2": 675911}, "slug": "", "name": "", "organization_id": "", "properties": {}}, "order": 65573, "required": true}], "customer_metadata": {"key": false}} + "403": + application/json: {"detail": ""} + "404": + application/json: {"detail": ""} + "422": + application/json: {} + checkouts:client_get: + speakeasy-default-checkouts:client-get: + parameters: + path: + client_secret: "" + responses: + "200": + application/json: {"created_at": "2023-06-23T19:45:02.115Z", "modified_at": "2023-11-26T05:04:17.930Z", "id": "", "payment_processor": "stripe", "status": "succeeded", "client_secret": "", "url": "https://firm-median.name", "expires_at": "2025-10-05T02:43:03.106Z", "success_url": "https://distinct-release.info", "embed_origin": "", "amount": 649087, "tax_amount": 818651, "currency": "Costa Rican Colon", "subtotal_amount": 643894, "total_amount": 773661, "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": false, "is_discount_applicable": true, "is_free_product_price": false, "is_payment_required": false, "is_payment_setup_required": true, "is_payment_form_required": false, "customer_id": "", "customer_name": "", "customer_email": "", "customer_ip_address": "", "customer_billing_address": {"country": "French Guiana"}, "customer_tax_id": "", "payment_processor_metadata": {"key": "", "key1": ""}, "product": {"created_at": "2023-10-13T16:57:32.051Z", "modified_at": "2025-11-01T11:47:43.290Z", "id": "", "name": "", "description": "triumphantly rise energetically where", "is_recurring": true, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2023-02-19T04:21:39.872Z", "modified_at": "2025-11-03T20:37:17.415Z", "id": "", "is_archived": false, "product_id": ""}, {"created_at": "2024-07-17T23:46:27.274Z", "modified_at": "2025-06-13T18:38:01.612Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "price_amount": 973583}, {"created_at": "2025-10-21T12:03:07.471Z", "modified_at": "2023-08-15T10:28:06.670Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "minimum_amount": 544481, "maximum_amount": 633694, "preset_amount": 670458}], "benefits": [{"created_at": "2025-07-05T20:16:55.610Z", "modified_at": "2024-09-19T12:59:12.930Z", "id": "", "type": "custom", "description": "reporter gee among house incidentally", "selectable": true, "deletable": true, "organization_id": ""}, {"created_at": "2025-07-23T16:17:04.686Z", "modified_at": "2025-10-15T01:25:33.429Z", "id": "", "type": "discord", "description": "definitive as fluffy", "selectable": false, "deletable": true, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/opt/share", "mime_type": "", "size": 625185, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-05-17T14:56:37.099Z", "version": "", "is_uploaded": true, "created_at": "2024-03-07T06:13:50.940Z", "size_readable": "", "public_url": "https://creamy-giant.biz"}]}, "product_price": {"created_at": "2024-08-06T20:46:57.853Z", "modified_at": "2025-10-13T10:31:29.242Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "price_amount": 29169, "recurring_interval": "year"}, "discount": {"duration": "forever", "duration_in_months": 442095, "type": "fixed", "basis_points": 565670, "id": "", "name": "", "code": ""}, "organization": {"created_at": "2023-06-12T01:20:42.663Z", "modified_at": "2023-02-21T05:50:56.610Z", "id": "", "name": "", "slug": "", "avatar_url": "https://bouncy-thyme.info/", "bio": "", "company": "Kerluke, Mayert and Langosh", "blog": "", "location": "", "email": "Kaylee_Cassin36@gmail.com", "twitter_username": "", "pledge_minimum_amount": 449940, "pledge_badge_show_amount": true, "default_upfront_split_to_contributors": 614629, "profile_settings": {}, "feature_settings": {"issue_funding_enabled": false}, "subscription_settings": {"allow_multiple_subscriptions": false, "allow_customer_updates": false, "proration_behavior": "invoice"}}, "attached_custom_fields": []} + "404": + application/json: {"detail": ""} + "422": + application/json: {} + checkouts:client_update: + speakeasy-default-checkouts:client-update: + parameters: + path: + client_secret: "" + requestBody: + application/json: {} + responses: + "200": + application/json: {"created_at": "2025-10-22T20:45:21.815Z", "modified_at": "2024-07-16T23:31:05.499Z", "id": "", "payment_processor": "stripe", "status": "expired", "client_secret": "", "url": "https://energetic-nectarine.org", "expires_at": "2023-07-02T09:01:58.946Z", "success_url": "https://unsteady-reservation.net", "embed_origin": "", "amount": 169287, "tax_amount": 984514, "currency": "Naira", "subtotal_amount": 839103, "total_amount": 574252, "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": true, "is_discount_applicable": false, "is_free_product_price": false, "is_payment_required": true, "is_payment_setup_required": false, "is_payment_form_required": true, "customer_id": "", "customer_name": "", "customer_email": "", "customer_ip_address": "", "customer_billing_address": {"country": "Ecuador"}, "customer_tax_id": "", "payment_processor_metadata": {"key": "", "key1": "", "key2": ""}, "product": {"created_at": "2023-04-02T09:15:44.014Z", "modified_at": "2023-07-09T01:19:03.728Z", "id": "", "name": "", "description": "till after well-documented under though ah inspect", "is_recurring": false, "is_archived": false, "organization_id": "", "prices": [{"created_at": "2025-04-22T09:54:53.338Z", "modified_at": "2025-12-06T03:26:59.167Z", "id": "", "is_archived": true, "product_id": "", "recurring_interval": "year"}, {"created_at": "2024-05-21T13:31:59.278Z", "modified_at": "2024-07-23T08:48:13.292Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "minimum_amount": 473173, "maximum_amount": 399171, "preset_amount": 566306}, {"created_at": "2025-05-18T11:07:27.088Z", "modified_at": "2025-08-07T01:01:04.852Z", "id": "", "is_archived": true, "product_id": "", "recurring_interval": "year"}], "benefits": [{"created_at": "2023-03-15T12:20:36.952Z", "modified_at": "2025-05-20T04:50:42.884Z", "id": "", "type": "custom", "description": "petticoat probable gently polyester aw although shoulder", "selectable": false, "deletable": false, "organization_id": ""}, {"created_at": "2024-11-19T07:53:51.394Z", "modified_at": "2025-03-11T10:27:43.078Z", "id": "", "type": "discord", "description": "that meanwhile receptor futon orchestrate since slushy surprised ick", "selectable": true, "deletable": false, "organization_id": ""}], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/opt", "mime_type": "", "size": 197645, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-11-16T03:17:08.766Z", "version": "", "is_uploaded": true, "created_at": "2023-08-26T11:13:36.032Z", "size_readable": "", "public_url": "https://knotty-vicinity.biz"}, {"id": "", "organization_id": "", "name": "", "path": "/opt/lib", "mime_type": "", "size": 859643, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2024-03-29T16:21:18.296Z", "version": "", "is_uploaded": true, "created_at": "2024-06-11T19:24:10.100Z", "size_readable": "", "public_url": "https://grounded-soybean.com"}, {"id": "", "organization_id": "", "name": "", "path": "/lib", "mime_type": "", "size": 560820, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2025-12-13T08:26:39.160Z", "version": "", "is_uploaded": false, "created_at": "2025-06-24T16:48:30.542Z", "size_readable": "", "public_url": "https://lost-bathhouse.org"}]}, "product_price": {"created_at": "2023-02-26T13:38:52.930Z", "modified_at": "2023-02-23T20:39:49.714Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "minimum_amount": 375172, "maximum_amount": 699553, "preset_amount": 451608}, "discount": {"duration": "forever", "duration_in_months": 37700, "type": "percentage", "amount": 999915, "currency": "New Taiwan Dollar", "id": "", "name": "", "code": ""}, "organization": {"created_at": "2025-10-06T00:49:46.530Z", "modified_at": "2025-06-18T09:23:32.088Z", "id": "", "name": "", "slug": "", "avatar_url": "https://grim-hierarchy.org", "bio": "", "company": "Cummerata, O'Hara and Bartell", "blog": "", "location": "", "email": "Rosemarie34@gmail.com", "twitter_username": "", "pledge_minimum_amount": 970203, "pledge_badge_show_amount": false, "default_upfront_split_to_contributors": 329221, "profile_settings": {}, "feature_settings": {"issue_funding_enabled": false}, "subscription_settings": {"allow_multiple_subscriptions": false, "allow_customer_updates": true, "proration_behavior": "invoice"}}, "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2023-09-24T10:32:20.156Z", "modified_at": "2023-07-29T07:38:21.612Z", "id": "", "metadata": {}, "slug": "", "name": "", "organization_id": "", "properties": {}}, "order": 548675, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2023-10-21T17:51:12.758Z", "modified_at": "2024-12-22T09:13:34.031Z", "id": "", "metadata": {}, "slug": "", "name": "", "organization_id": "", "properties": {}}, "order": 91865, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2025-01-10T00:58:19.051Z", "modified_at": "2024-08-16T21:07:52.038Z", "id": "", "metadata": {"key": "", "key1": 269993}, "slug": "", "name": "", "organization_id": "", "properties": {}}, "order": 918763, "required": true}]} + "403": + application/json: {"detail": ""} + "404": + application/json: {"detail": ""} + "422": + application/json: {} + checkouts:client_confirm: + speakeasy-default-checkouts:client-confirm: + parameters: + path: + client_secret: "" + requestBody: + application/json: {} + responses: + "200": + application/json: {"created_at": "2025-09-27T22:33:04.250Z", "modified_at": "2025-07-24T02:45:26.067Z", "id": "", "payment_processor": "stripe", "client_secret": "", "url": "https://difficult-summary.net", "expires_at": "2024-02-11T02:25:13.433Z", "success_url": "https://quixotic-ceramic.name", "embed_origin": "", "amount": 714568, "tax_amount": 682520, "currency": "Taka", "subtotal_amount": 660127, "total_amount": 433381, "product_id": "", "product_price_id": "", "discount_id": "", "allow_discount_codes": false, "is_discount_applicable": false, "is_free_product_price": true, "is_payment_required": false, "is_payment_setup_required": false, "is_payment_form_required": true, "customer_id": "", "customer_name": "", "customer_email": "", "customer_ip_address": "", "customer_billing_address": {"country": "Andorra"}, "customer_tax_id": "", "payment_processor_metadata": {"key": "", "key1": ""}, "product": {"created_at": "2025-05-15T21:24:29.311Z", "modified_at": "2025-04-02T20:53:59.657Z", "id": "", "name": "", "description": "inculcate expense paintwork rigid slight mmm medium instead", "is_recurring": true, "is_archived": true, "organization_id": "", "prices": [{"created_at": "2024-02-15T08:36:36.257Z", "modified_at": "2024-02-09T09:07:35.326Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "price_amount": 525971, "recurring_interval": "year"}, {"created_at": "2024-01-30T20:43:56.426Z", "modified_at": "2023-08-06T17:09:38.164Z", "id": "", "is_archived": false, "product_id": "", "price_currency": "", "price_amount": 869549, "recurring_interval": "year"}], "benefits": [], "medias": [{"id": "", "organization_id": "", "name": "", "path": "/srv", "mime_type": "", "size": 558056, "storage_version": "", "checksum_etag": "", "checksum_sha256_base64": "", "checksum_sha256_hex": "", "last_modified_at": "2023-11-10T09:58:46.696Z", "version": "", "is_uploaded": false, "created_at": "2025-11-30T11:03:00.592Z", "size_readable": "", "public_url": "https://firm-laughter.com/"}]}, "product_price": {"created_at": "2025-12-26T20:09:50.416Z", "modified_at": "2023-03-02T11:38:31.977Z", "id": "", "is_archived": true, "product_id": "", "price_currency": "", "price_amount": 697447}, "discount": {"duration": "once", "duration_in_months": 625024, "type": "percentage", "amount": 40370, "currency": "Bahraini Dinar", "id": "", "name": "", "code": ""}, "organization": {"created_at": "2025-01-28T11:55:38.839Z", "modified_at": "2024-02-24T06:00:35.077Z", "id": "", "name": "", "slug": "", "avatar_url": "https://bulky-tomb.name/", "bio": "", "company": "Kovacek - Schmitt", "blog": "", "location": "", "email": "Walton.Haag@hotmail.com", "twitter_username": "", "pledge_minimum_amount": 531864, "pledge_badge_show_amount": false, "default_upfront_split_to_contributors": 877778, "profile_settings": {}, "feature_settings": {"issue_funding_enabled": false}, "subscription_settings": {"allow_multiple_subscriptions": true, "allow_customer_updates": true, "proration_behavior": "prorate"}}, "attached_custom_fields": [{"custom_field_id": "", "custom_field": {"created_at": "2023-11-17T20:38:02.954Z", "modified_at": "2025-01-17T20:39:54.598Z", "id": "", "metadata": {"key": false}, "slug": "", "name": "", "organization_id": "", "properties": {}}, "order": 39121, "required": true}, {"custom_field_id": "", "custom_field": {"created_at": "2025-02-05T08:36:50.941Z", "modified_at": "2024-06-02T01:24:27.441Z", "id": "", "metadata": {"key": false, "key1": 324086, "key2": true}, "slug": "", "name": "", "organization_id": "", "properties": {}}, "order": 217224, "required": false}, {"custom_field_id": "", "custom_field": {"created_at": "2024-05-30T10:52:29.356Z", "modified_at": "2025-12-17T09:50:33.819Z", "id": "", "metadata": {"key": "", "key1": 804883, "key2": ""}, "slug": "", "name": "", "organization_id": "", "properties": {}}, "order": 527536, "required": true}], "customer_session_token": ""} + "403": + application/json: {"detail": ""} + "404": + application/json: {"detail": ""} + "422": + application/json: {} examplesVersion: 1.0.0 generatedTests: {} diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 78744f78..991c0920 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -16,7 +16,7 @@ generation: oAuth2ClientCredentialsEnabled: true oAuth2PasswordEnabled: false typescript: - version: 0.23.0 + version: 0.24.0 additionalDependencies: dependencies: standardwebhooks: ^1.0.0 diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 8ad56db2..a5bbc662 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -2,20 +2,20 @@ speakeasyVersion: 1.484.1 sources: Polar-OAS: sourceNamespace: polar-oas - sourceRevisionDigest: sha256:21a65b5061eb52a7b7c00f2d4ba58400af0022fe9ecd328ddacc255aa99c1516 - sourceBlobDigest: sha256:65979b2ca8b35454357ff88e58d12c23708f6ea4dd5b22474799c45c2d9856aa + sourceRevisionDigest: sha256:a8d31a2dd048613ee2abd5d2594764d36c83117f5648b3357bdfd141e78f37a7 + sourceBlobDigest: sha256:bb75fb8e82c07390905f655add61b36a8494881b7ceb65a141feb6c855510868 tags: - latest - - speakeasy-sdk-regen-1738283170 + - speakeasy-sdk-regen-1738772723 - 0.1.0 targets: polar: source: Polar-OAS sourceNamespace: polar-oas - sourceRevisionDigest: sha256:21a65b5061eb52a7b7c00f2d4ba58400af0022fe9ecd328ddacc255aa99c1516 - sourceBlobDigest: sha256:65979b2ca8b35454357ff88e58d12c23708f6ea4dd5b22474799c45c2d9856aa + sourceRevisionDigest: sha256:a8d31a2dd048613ee2abd5d2594764d36c83117f5648b3357bdfd141e78f37a7 + sourceBlobDigest: sha256:bb75fb8e82c07390905f655add61b36a8494881b7ceb65a141feb6c855510868 codeSamplesNamespace: polar-oas-ts-code-samples - codeSamplesRevisionDigest: sha256:e80890cbfc42b796b1ff4d175c7969ad55bfa58835fa7c1c39446a560261ce87 + codeSamplesRevisionDigest: sha256:9d7656e79ef90381c4d56402365719e4b69443b49c33e0a1b2279936d7d177d2 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index 772e4f75..34a4a0bc 100644 --- a/README.md +++ b/README.md @@ -344,18 +344,13 @@ app.post("/webhook", express.raw({ type: "application/json" }), (req: Request, r ### [checkouts](docs/sdks/checkouts/README.md) -* [~~create~~](docs/sdks/checkouts/README.md#create) - Create Checkout :warning: **Deprecated** Use [create](docs/sdks/custom/README.md#create) instead. -* [~~get~~](docs/sdks/checkouts/README.md#get) - Get Checkout :warning: **Deprecated** - -#### [checkouts.custom](docs/sdks/custom/README.md) - -* [list](docs/sdks/custom/README.md#list) - List Checkout Sessions -* [create](docs/sdks/custom/README.md#create) - Create Checkout Session -* [get](docs/sdks/custom/README.md#get) - Get Checkout Session -* [update](docs/sdks/custom/README.md#update) - Update Checkout Session -* [clientGet](docs/sdks/custom/README.md#clientget) - Get Checkout Session from Client -* [clientUpdate](docs/sdks/custom/README.md#clientupdate) - Update Checkout Session from Client -* [clientConfirm](docs/sdks/custom/README.md#clientconfirm) - Confirm Checkout Session from Client +* [list](docs/sdks/checkouts/README.md#list) - List Checkout Sessions +* [create](docs/sdks/checkouts/README.md#create) - Create Checkout Session +* [get](docs/sdks/checkouts/README.md#get) - Get Checkout Session +* [update](docs/sdks/checkouts/README.md#update) - Update Checkout Session +* [clientGet](docs/sdks/checkouts/README.md#clientget) - Get Checkout Session from Client +* [clientUpdate](docs/sdks/checkouts/README.md#clientupdate) - Update Checkout Session from Client +* [clientConfirm](docs/sdks/checkouts/README.md#clientconfirm) - Confirm Checkout Session from Client ### [customerPortal](docs/sdks/customerportal/README.md) @@ -555,13 +550,13 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md). - [`checkoutLinksGet`](docs/sdks/checkoutlinks/README.md#get) - Get Checkout Link - [`checkoutLinksList`](docs/sdks/checkoutlinks/README.md#list) - List Checkout Links - [`checkoutLinksUpdate`](docs/sdks/checkoutlinks/README.md#update) - Update Checkout Link -- [`checkoutsCustomClientConfirm`](docs/sdks/custom/README.md#clientconfirm) - Confirm Checkout Session from Client -- [`checkoutsCustomClientGet`](docs/sdks/custom/README.md#clientget) - Get Checkout Session from Client -- [`checkoutsCustomClientUpdate`](docs/sdks/custom/README.md#clientupdate) - Update Checkout Session from Client -- [`checkoutsCustomCreate`](docs/sdks/custom/README.md#create) - Create Checkout Session -- [`checkoutsCustomGet`](docs/sdks/custom/README.md#get) - Get Checkout Session -- [`checkoutsCustomList`](docs/sdks/custom/README.md#list) - List Checkout Sessions -- [`checkoutsCustomUpdate`](docs/sdks/custom/README.md#update) - Update Checkout Session +- [`checkoutsClientConfirm`](docs/sdks/checkouts/README.md#clientconfirm) - Confirm Checkout Session from Client +- [`checkoutsClientGet`](docs/sdks/checkouts/README.md#clientget) - Get Checkout Session from Client +- [`checkoutsClientUpdate`](docs/sdks/checkouts/README.md#clientupdate) - Update Checkout Session from Client +- [`checkoutsCreate`](docs/sdks/checkouts/README.md#create) - Create Checkout Session +- [`checkoutsGet`](docs/sdks/checkouts/README.md#get) - Get Checkout Session +- [`checkoutsList`](docs/sdks/checkouts/README.md#list) - List Checkout Sessions +- [`checkoutsUpdate`](docs/sdks/checkouts/README.md#update) - Update Checkout Session - [`customerPortalBenefitGrantsGet`](docs/sdks/benefitgrants/README.md#get) - Get Benefit Grant - [`customerPortalBenefitGrantsList`](docs/sdks/benefitgrants/README.md#list) - List Benefit Grants - [`customerPortalBenefitGrantsUpdate`](docs/sdks/benefitgrants/README.md#update) - Update Benefit Grant @@ -650,8 +645,6 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md). - [`subscriptionsList`](docs/sdks/subscriptions/README.md#list) - List Subscriptions - [`subscriptionsRevoke`](docs/sdks/subscriptions/README.md#revoke) - Revoke Subscription - [`subscriptionsUpdate`](docs/sdks/subscriptions/README.md#update) - Update Subscription -- ~~[`checkoutsCreate`](docs/sdks/checkouts/README.md#create)~~ - Create Checkout :warning: **Deprecated** Use [`checkoutsCustomCreate`](docs/sdks/custom/README.md#create) instead. -- ~~[`checkoutsGet`](docs/sdks/checkouts/README.md#get)~~ - Get Checkout :warning: **Deprecated** diff --git a/RELEASES.md b/RELEASES.md index e1e9f850..45399f4d 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -438,4 +438,14 @@ Based on: ### Generated - [typescript v0.23.0] . ### Releases -- [NPM v0.23.0] https://www.npmjs.com/package/@polar-sh/sdk/v/0.23.0 - . \ No newline at end of file +- [NPM v0.23.0] https://www.npmjs.com/package/@polar-sh/sdk/v/0.23.0 - . + +## 2025-02-05 16:31:15 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.484.1 (2.503.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v0.24.0] . +### Releases +- [NPM v0.24.0] https://www.npmjs.com/package/@polar-sh/sdk/v/0.24.0 - . \ No newline at end of file diff --git a/codeSamples.yaml b/codeSamples.yaml index f4944aed..5f8ed65c 100644 --- a/codeSamples.yaml +++ b/codeSamples.yaml @@ -81,48 +81,48 @@ actions: - "lang": "typescript" "label": "Typescript (SDK)" "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 const result = await polar.checkoutLinks.update({\n id: \"\",\n checkoutLinkUpdate: {},\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();" - - target: $["paths"]["/v1/checkouts/custom/"]["get"] + - target: $["paths"]["/v1/checkouts/"]["get"] update: "x-codeSamples": - "lang": "typescript" "label": "Typescript (SDK)" - "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 const result = await polar.checkouts.custom.list({});\n\n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" - - target: $["paths"]["/v1/checkouts/custom/"]["post"] + "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 const result = await polar.checkouts.list({});\n\n for await (const page of result) {\n // Handle the page\n console.log(page);\n }\n}\n\nrun();" + - target: $["paths"]["/v1/checkouts/"]["post"] update: "x-codeSamples": - "lang": "typescript" "label": "Typescript (SDK)" - "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 const result = await polar.checkouts.custom.create({\n allowDiscountCodes: true,\n productId: \"\",\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();" - - target: $["paths"]["/v1/checkouts/custom/client/{client_secret}"]["get"] + "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 const result = await polar.checkouts.create({\n allowDiscountCodes: true,\n productId: \"\",\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();" + - target: $["paths"]["/v1/checkouts/client/{client_secret}"]["get"] update: "x-codeSamples": - "lang": "typescript" "label": "Typescript (SDK)" - "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 const result = await polar.checkouts.custom.clientGet({\n clientSecret: \"\",\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();" - - target: $["paths"]["/v1/checkouts/custom/client/{client_secret}"]["patch"] + "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 const result = await polar.checkouts.clientGet({\n clientSecret: \"\",\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();" + - target: $["paths"]["/v1/checkouts/client/{client_secret}"]["patch"] update: "x-codeSamples": - "lang": "typescript" "label": "Typescript (SDK)" - "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 const result = await polar.checkouts.custom.clientUpdate({\n clientSecret: \"\",\n checkoutUpdatePublic: {},\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();" - - target: $["paths"]["/v1/checkouts/custom/client/{client_secret}/confirm"]["post"] + "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 const result = await polar.checkouts.clientUpdate({\n clientSecret: \"\",\n checkoutUpdatePublic: {},\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();" + - target: $["paths"]["/v1/checkouts/client/{client_secret}/confirm"]["post"] update: "x-codeSamples": - "lang": "typescript" "label": "Typescript (SDK)" - "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 const result = await polar.checkouts.custom.clientConfirm({\n clientSecret: \"\",\n checkoutConfirmStripe: {},\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();" - - target: $["paths"]["/v1/checkouts/custom/{id}"]["get"] + "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 const result = await polar.checkouts.clientConfirm({\n clientSecret: \"\",\n checkoutConfirmStripe: {},\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();" + - target: $["paths"]["/v1/checkouts/{id}"]["get"] update: "x-codeSamples": - "lang": "typescript" "label": "Typescript (SDK)" - "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 const result = await polar.checkouts.custom.get({\n id: \"\",\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();" - - target: $["paths"]["/v1/checkouts/custom/{id}"]["patch"] + "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 const result = await polar.checkouts.get({\n id: \"\",\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();" + - target: $["paths"]["/v1/checkouts/{id}"]["patch"] update: "x-codeSamples": - "lang": "typescript" "label": "Typescript (SDK)" - "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 const result = await polar.checkouts.custom.update({\n id: \"\",\n checkoutUpdate: {},\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();" + "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 const result = await polar.checkouts.update({\n id: \"\",\n checkoutUpdate: {},\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();" - target: $["paths"]["/v1/custom-fields/"]["get"] update: "x-codeSamples": diff --git a/docs/models/components/aggregation.md b/docs/models/components/aggregation.md index c5157f5b..1becc3e0 100644 --- a/docs/models/components/aggregation.md +++ b/docs/models/components/aggregation.md @@ -7,7 +7,7 @@ ```typescript const value: components.PropertyAggregation = { - func: "max", + func: "sum", property: "", }; ``` @@ -31,7 +31,7 @@ const value: components.PropertyAggregation = { ```typescript const value: components.PropertyAggregation = { - func: "avg", + func: "min", property: "", }; ``` diff --git a/docs/models/components/benefitadssubscriber.md b/docs/models/components/benefitadssubscriber.md index 4200fa78..f7dba5e6 100644 --- a/docs/models/components/benefitadssubscriber.md +++ b/docs/models/components/benefitadssubscriber.md @@ -6,29 +6,29 @@ import { BenefitAdsSubscriber } from "@polar-sh/sdk/models/components/benefitadssubscriber.js"; let value: BenefitAdsSubscriber = { - createdAt: new Date("2023-07-01T14:29:36.398Z"), - modifiedAt: new Date("2023-11-02T18:12:33.953Z"), + createdAt: new Date("2025-11-11T15:10:16.010Z"), + modifiedAt: new Date("2025-12-14T21:14:15.864Z"), id: "", - description: "aside yawningly modulo apud yowza warp", + description: "boyfriend miserable actually truthfully spear yuck ultimately", selectable: false, deletable: false, organizationId: "", organization: { - createdAt: new Date("2025-05-18T00:30:59.700Z"), - modifiedAt: new Date("2023-07-09T01:59:04.501Z"), + createdAt: new Date("2025-04-18T03:12:06.282Z"), + modifiedAt: new Date("2025-03-20T17:52:27.062Z"), id: "", name: "", slug: "", - avatarUrl: "https://scary-testimonial.info", + avatarUrl: "https://distorted-pepper.com", bio: "", - company: "Price, Goodwin and Hudson", + company: "Dooley, Kessler and Ullrich", blog: "", location: "", - email: "Rafaela_Smith@hotmail.com", + email: "Alicia_Leffler59@hotmail.com", twitterUsername: "", - pledgeMinimumAmount: 541162, + pledgeMinimumAmount: 419731, pledgeBadgeShowAmount: false, - defaultUpfrontSplitToContributors: 845961, + defaultUpfrontSplitToContributors: 660201, profileSettings: {}, featureSettings: {}, subscriptionSettings: { diff --git a/docs/models/components/benefitcustomsubscriber.md b/docs/models/components/benefitcustomsubscriber.md index 96163818..a39640ff 100644 --- a/docs/models/components/benefitcustomsubscriber.md +++ b/docs/models/components/benefitcustomsubscriber.md @@ -6,36 +6,35 @@ import { BenefitCustomSubscriber } from "@polar-sh/sdk/models/components/benefitcustomsubscriber.js"; let value: BenefitCustomSubscriber = { - createdAt: new Date("2024-06-03T20:31:20.070Z"), - modifiedAt: new Date("2023-02-07T17:15:24.418Z"), + createdAt: new Date("2023-01-13T15:47:28.412Z"), + modifiedAt: new Date("2025-05-13T07:35:58.550Z"), id: "", - description: - "whoever circumnavigate settle optimistically usually impossible pish humiliating brr heighten", + description: "status monthly since joyously whereas loftily towards", selectable: false, deletable: false, organizationId: "", organization: { - createdAt: new Date("2025-03-23T14:32:17.323Z"), - modifiedAt: new Date("2024-08-02T08:01:42.159Z"), + createdAt: new Date("2024-07-02T06:17:05.413Z"), + modifiedAt: new Date("2025-10-10T04:53:42.729Z"), id: "", name: "", slug: "", - avatarUrl: "https://discrete-annual.biz", + avatarUrl: "https://judicious-bonfire.com", bio: "", - company: "Prosacco - Marks", + company: "Krajcik, Ondricka and Tillman", blog: "", location: "", - email: "Grover47@hotmail.com", + email: "Sonny85@gmail.com", twitterUsername: "", - pledgeMinimumAmount: 347812, + pledgeMinimumAmount: 303011, pledgeBadgeShowAmount: false, - defaultUpfrontSplitToContributors: 408902, + defaultUpfrontSplitToContributors: 780236, profileSettings: {}, featureSettings: {}, subscriptionSettings: { allowMultipleSubscriptions: false, allowCustomerUpdates: false, - prorationBehavior: "invoice", + prorationBehavior: "prorate", }, }, properties: { diff --git a/docs/models/components/benefitdiscordsubscriber.md b/docs/models/components/benefitdiscordsubscriber.md index 32b630ba..04f23785 100644 --- a/docs/models/components/benefitdiscordsubscriber.md +++ b/docs/models/components/benefitdiscordsubscriber.md @@ -6,36 +6,36 @@ import { BenefitDiscordSubscriber } from "@polar-sh/sdk/models/components/benefitdiscordsubscriber.js"; let value: BenefitDiscordSubscriber = { - createdAt: new Date("2023-06-02T13:52:45.545Z"), - modifiedAt: new Date("2025-09-26T07:23:43.790Z"), + createdAt: new Date("2023-01-08T07:38:15.944Z"), + modifiedAt: new Date("2023-10-30T01:32:14.646Z"), id: "", description: - "casement the priesthood individual entomb psst jaggedly kissingly forenenst marathon", + "tarry wherever hypothesise helpfully taxicab from wry behind airbrush", selectable: false, deletable: false, organizationId: "", organization: { - createdAt: new Date("2024-12-20T23:02:17.882Z"), - modifiedAt: new Date("2024-04-04T00:34:06.285Z"), + createdAt: new Date("2023-12-13T20:35:41.555Z"), + modifiedAt: new Date("2024-05-29T18:00:09.559Z"), id: "", name: "", slug: "", - avatarUrl: "https://frivolous-agreement.com/", + avatarUrl: "https://lively-metal.org/", bio: "", - company: "Botsford, Klein and Smitham", + company: "Gerhold, Champlin and Abbott", blog: "", location: "", - email: "Delores.Senger48@yahoo.com", + email: "Rupert_Grant@yahoo.com", twitterUsername: "", - pledgeMinimumAmount: 60269, + pledgeMinimumAmount: 2536, pledgeBadgeShowAmount: false, - defaultUpfrontSplitToContributors: 785555, + defaultUpfrontSplitToContributors: 770717, profileSettings: {}, featureSettings: {}, subscriptionSettings: { allowMultipleSubscriptions: false, allowCustomerUpdates: false, - prorationBehavior: "invoice", + prorationBehavior: "prorate", }, }, properties: { diff --git a/docs/models/components/benefitdownloadablessubscriber.md b/docs/models/components/benefitdownloadablessubscriber.md index aaacfd71..73a10718 100644 --- a/docs/models/components/benefitdownloadablessubscriber.md +++ b/docs/models/components/benefitdownloadablessubscriber.md @@ -6,29 +6,29 @@ import { BenefitDownloadablesSubscriber } from "@polar-sh/sdk/models/components/benefitdownloadablessubscriber.js"; let value: BenefitDownloadablesSubscriber = { - createdAt: new Date("2023-03-25T21:04:22.867Z"), - modifiedAt: new Date("2023-01-25T16:27:26.116Z"), + createdAt: new Date("2024-04-04T15:28:18.748Z"), + modifiedAt: new Date("2024-05-25T01:47:44.345Z"), id: "", - description: "narrow while honored absent urban busily", + description: "agreement pfft ack dreamily", selectable: false, deletable: false, organizationId: "", organization: { - createdAt: new Date("2025-08-20T17:29:24.705Z"), - modifiedAt: new Date("2024-04-01T13:16:59.523Z"), + createdAt: new Date("2024-10-31T20:28:03.091Z"), + modifiedAt: new Date("2024-12-01T20:03:30.175Z"), id: "", name: "", slug: "", - avatarUrl: "https://worthless-hammock.name/", + avatarUrl: "https://angelic-petal.biz/", bio: "", - company: "Fahey, Glover and Ritchie", + company: "Schuster - Labadie", blog: "", location: "", - email: "Cole.Altenwerth@hotmail.com", + email: "Nicola.Moore@yahoo.com", twitterUsername: "", - pledgeMinimumAmount: 759015, + pledgeMinimumAmount: 902511, pledgeBadgeShowAmount: false, - defaultUpfrontSplitToContributors: 57387, + defaultUpfrontSplitToContributors: 898830, profileSettings: {}, featureSettings: {}, subscriptionSettings: { diff --git a/docs/models/components/benefitgithubrepositorysubscriber.md b/docs/models/components/benefitgithubrepositorysubscriber.md index e755ee9f..fea4e099 100644 --- a/docs/models/components/benefitgithubrepositorysubscriber.md +++ b/docs/models/components/benefitgithubrepositorysubscriber.md @@ -6,35 +6,35 @@ import { BenefitGitHubRepositorySubscriber } from "@polar-sh/sdk/models/components/benefitgithubrepositorysubscriber.js"; let value: BenefitGitHubRepositorySubscriber = { - createdAt: new Date("2025-05-01T10:55:39.996Z"), - modifiedAt: new Date("2025-09-17T04:38:05.058Z"), + createdAt: new Date("2023-08-05T18:16:23.124Z"), + modifiedAt: new Date("2025-04-12T17:44:59.979Z"), id: "", - description: "inasmuch ugh freely king", + description: "willing unless hm t-shirt lovingly so thoughtfully mean", selectable: false, deletable: false, organizationId: "", organization: { - createdAt: new Date("2024-04-08T13:26:15.845Z"), - modifiedAt: new Date("2025-10-27T07:57:46.272Z"), + createdAt: new Date("2024-04-01T03:45:31.071Z"), + modifiedAt: new Date("2024-12-15T07:00:39.939Z"), id: "", name: "", slug: "", - avatarUrl: "https://plump-vibration.com/", + avatarUrl: "https://winged-kiss.name", bio: "", - company: "Streich, Hartmann and Marks", + company: "Raynor Inc", blog: "", location: "", - email: "Ethyl.Pfannerstill@gmail.com", + email: "Kayli84@gmail.com", twitterUsername: "", - pledgeMinimumAmount: 931255, + pledgeMinimumAmount: 376595, pledgeBadgeShowAmount: false, - defaultUpfrontSplitToContributors: 921123, + defaultUpfrontSplitToContributors: 172249, profileSettings: {}, featureSettings: {}, subscriptionSettings: { allowMultipleSubscriptions: false, allowCustomerUpdates: false, - prorationBehavior: "invoice", + prorationBehavior: "prorate", }, }, properties: { diff --git a/docs/models/components/benefitlicensekeyssubscriber.md b/docs/models/components/benefitlicensekeyssubscriber.md index 873967ed..160f0d28 100644 --- a/docs/models/components/benefitlicensekeyssubscriber.md +++ b/docs/models/components/benefitlicensekeyssubscriber.md @@ -6,29 +6,29 @@ import { BenefitLicenseKeysSubscriber } from "@polar-sh/sdk/models/components/benefitlicensekeyssubscriber.js"; let value: BenefitLicenseKeysSubscriber = { - createdAt: new Date("2025-11-12T13:13:35.041Z"), - modifiedAt: new Date("2024-07-14T16:45:43.480Z"), + createdAt: new Date("2023-10-24T05:28:30.875Z"), + modifiedAt: new Date("2024-09-02T17:41:59.365Z"), id: "", - description: "impressive spook submitter cinder outside towards", + description: "tusk beyond jazz provided monstrous unnaturally", selectable: false, deletable: false, organizationId: "", organization: { - createdAt: new Date("2024-03-24T14:39:48.268Z"), - modifiedAt: new Date("2025-06-13T13:52:47.549Z"), + createdAt: new Date("2023-08-24T15:31:37.773Z"), + modifiedAt: new Date("2023-06-07T08:38:35.544Z"), id: "", name: "", slug: "", - avatarUrl: "https://splendid-lifestyle.org/", + avatarUrl: "https://unique-draft.org", bio: "", - company: "Hodkiewicz - Price", + company: "Ziemann, Cruickshank and Treutel", blog: "", location: "", - email: "Javier_Lowe@hotmail.com", + email: "Margarita.Von@gmail.com", twitterUsername: "", - pledgeMinimumAmount: 955483, + pledgeMinimumAmount: 952572, pledgeBadgeShowAmount: false, - defaultUpfrontSplitToContributors: 765342, + defaultUpfrontSplitToContributors: 278866, profileSettings: {}, featureSettings: {}, subscriptionSettings: { @@ -40,14 +40,14 @@ let value: BenefitLicenseKeysSubscriber = { properties: { prefix: "", expires: { - ttl: 991044, - timeframe: "day", + ttl: 319942, + timeframe: "year", }, activations: { - limit: 194607, + limit: 684106, enableCustomerAdmin: false, }, - limitUsage: 114036, + limitUsage: 771406, }, }; ``` diff --git a/docs/models/components/benefitlicensekeyssubscriberproperties.md b/docs/models/components/benefitlicensekeyssubscriberproperties.md index b4fee83f..93d1bbe7 100644 --- a/docs/models/components/benefitlicensekeyssubscriberproperties.md +++ b/docs/models/components/benefitlicensekeyssubscriberproperties.md @@ -8,14 +8,14 @@ import { BenefitLicenseKeysSubscriberProperties } from "@polar-sh/sdk/models/com let value: BenefitLicenseKeysSubscriberProperties = { prefix: "", expires: { - ttl: 262116, - timeframe: "day", + ttl: 13063, + timeframe: "month", }, activations: { - limit: 550447, + limit: 530903, enableCustomerAdmin: false, }, - limitUsage: 397151, + limitUsage: 389007, }; ``` diff --git a/docs/models/components/checkoutconfirmstripecustomfielddata.md b/docs/models/components/checkoutconfirmstripecustomfielddata.md index 5ad241c7..8cb53734 100644 --- a/docs/models/components/checkoutconfirmstripecustomfielddata.md +++ b/docs/models/components/checkoutconfirmstripecustomfielddata.md @@ -12,7 +12,7 @@ const value: string = ""; ### `number` ```typescript -const value: number = 941845; +const value: number = 995167; ``` ### `boolean` @@ -24,6 +24,6 @@ const value: boolean = false; ### `Date` ```typescript -const value: Date = new Date("2025-08-27T16:44:25.827Z"); +const value: Date = new Date("2024-08-28T06:32:45.499Z"); ``` diff --git a/docs/models/components/checkoutlegacy.md b/docs/models/components/checkoutlegacy.md deleted file mode 100644 index cb145a39..00000000 --- a/docs/models/components/checkoutlegacy.md +++ /dev/null @@ -1,95 +0,0 @@ -# CheckoutLegacy - -A checkout session. - -## Example Usage - -```typescript -import { CheckoutLegacy } from "@polar-sh/sdk/models/components/checkoutlegacy.js"; - -let value: CheckoutLegacy = { - id: "", - customerEmail: "", - customerName: "", - product: { - createdAt: new Date("2025-01-14T23:41:16.557Z"), - modifiedAt: new Date("2024-12-24T17:17:57.453Z"), - id: "", - name: "", - description: "into so beside worth aha", - isRecurring: false, - isArchived: false, - organizationId: "", - prices: [ - { - createdAt: new Date("2024-04-03T03:19:40.194Z"), - modifiedAt: new Date("2025-11-14T23:46:27.525Z"), - id: "", - isArchived: false, - productId: "", - priceCurrency: "", - minimumAmount: 967421, - maximumAmount: 96914, - presetAmount: 928334, - recurringInterval: "year", - }, - ], - benefits: [ - { - createdAt: new Date("2025-02-19T17:19:26.112Z"), - modifiedAt: new Date("2024-02-02T14:43:20.833Z"), - id: "", - type: "downloadables", - description: - "where continually taxicab meanwhile whoa and shabby vulgarise geez", - selectable: false, - deletable: false, - organizationId: "", - }, - ], - medias: [ - { - id: "", - organizationId: "", - name: "", - path: "/etc", - mimeType: "", - size: 805620, - storageVersion: "", - checksumEtag: "", - checksumSha256Base64: "", - checksumSha256Hex: "", - lastModifiedAt: new Date("2023-07-29T10:09:09.367Z"), - version: "", - isUploaded: false, - createdAt: new Date("2025-03-25T03:51:27.034Z"), - sizeReadable: "", - publicUrl: "https://sweet-yarmulke.com", - }, - ], - }, - productPrice: { - createdAt: new Date("2023-02-09T18:57:00.819Z"), - modifiedAt: new Date("2025-06-14T21:21:42.344Z"), - id: "", - isArchived: false, - productId: "", - priceCurrency: "", - minimumAmount: 376639, - maximumAmount: 398935, - presetAmount: 572046, - recurringInterval: "month", - }, -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | -| `id` | *string* | :heavy_check_mark: | The ID of the checkout. | -| `url` | *string* | :heavy_minus_sign: | URL the customer should be redirected to complete the purchase. | -| `customerEmail` | *string* | :heavy_check_mark: | N/A | -| `customerName` | *string* | :heavy_check_mark: | N/A | -| `product` | [components.CheckoutProduct](../../models/components/checkoutproduct.md) | :heavy_check_mark: | Product data for a checkout session. | -| `productPrice` | *components.ProductPrice* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/components/checkoutlegacycreate.md b/docs/models/components/checkoutlegacycreate.md deleted file mode 100644 index cd3d3b6c..00000000 --- a/docs/models/components/checkoutlegacycreate.md +++ /dev/null @@ -1,21 +0,0 @@ -# CheckoutLegacyCreate - -## Example Usage - -```typescript -import { CheckoutLegacyCreate } from "@polar-sh/sdk/models/components/checkoutlegacycreate.js"; - -let value: CheckoutLegacyCreate = { - productPriceId: "", - successUrl: "https://downright-publicity.net/", -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `productPriceId` | *string* | :heavy_check_mark: | ID of the product price to subscribe to. | -| `successUrl` | *string* | :heavy_check_mark: | URL where the customer will be redirected after a successful subscription. You can add the `session_id={CHECKOUT_SESSION_ID}` query parameter to retrieve the checkout session id. | -| `customerEmail` | *string* | :heavy_minus_sign: | If you already know the email of your customer, you can set it. It'll be pre-filled on the checkout page. | -| `subscriptionId` | *string* | :heavy_minus_sign: | ID of the subscription to update. If not provided, a new subscription will be created. | \ No newline at end of file diff --git a/docs/models/components/checkoutlink.md b/docs/models/components/checkoutlink.md index 6a44a799..c515197c 100644 --- a/docs/models/components/checkoutlink.md +++ b/docs/models/components/checkoutlink.md @@ -8,51 +8,50 @@ Checkout link data. import { CheckoutLink } from "@polar-sh/sdk/models/components/checkoutlink.js"; let value: CheckoutLink = { - createdAt: new Date("2025-10-30T09:13:30.404Z"), - modifiedAt: new Date("2024-05-08T19:54:41.594Z"), + createdAt: new Date("2024-05-08T19:34:14.084Z"), + modifiedAt: new Date("2024-05-18T15:37:41.330Z"), id: "", metadata: { - "key": "", + "key": 29923, }, paymentProcessor: "stripe", clientSecret: "", - successUrl: "https://accurate-reward.com", + successUrl: "https://confused-adrenalin.name/", label: "", allowDiscountCodes: false, productId: "", productPriceId: "", discountId: "", product: { - createdAt: new Date("2024-05-22T16:24:30.904Z"), - modifiedAt: new Date("2023-08-14T06:42:01.422Z"), + createdAt: new Date("2023-04-19T10:40:28.754Z"), + modifiedAt: new Date("2023-06-12T15:14:18.032Z"), id: "", name: "", - description: - "insert loose reassuringly fat provision easily quizzically usable yowza metabolise", + description: "eek swiftly seldom", isRecurring: false, isArchived: false, organizationId: "", prices: [ { - createdAt: new Date("2024-01-10T13:58:51.311Z"), - modifiedAt: new Date("2023-07-31T07:38:02.828Z"), + createdAt: new Date("2024-08-29T03:30:52.625Z"), + modifiedAt: new Date("2025-06-09T05:53:11.314Z"), id: "", isArchived: false, productId: "", priceCurrency: "", - minimumAmount: 464473, - maximumAmount: 375553, - presetAmount: 815446, + minimumAmount: 446595, + maximumAmount: 5486, + presetAmount: 218782, + recurringInterval: "month", }, ], benefits: [ { - createdAt: new Date("2023-01-17T18:22:37.801Z"), - modifiedAt: new Date("2024-09-17T03:44:36.212Z"), + createdAt: new Date("2025-12-11T02:58:19.413Z"), + modifiedAt: new Date("2024-11-30T17:03:39.942Z"), id: "", - type: "github_repository", - description: - "why highly cauliflower meanwhile a space prejudge oof awkwardly inasmuch", + type: "custom", + description: "intent swanling cauliflower", selectable: false, deletable: false, organizationId: "", @@ -63,53 +62,51 @@ let value: CheckoutLink = { id: "", organizationId: "", name: "", - path: "/usr/obj", + path: "/var", mimeType: "", - size: 4891, + size: 5116, storageVersion: "", checksumEtag: "", checksumSha256Base64: "", checksumSha256Hex: "", - lastModifiedAt: new Date("2025-11-06T07:58:52.676Z"), + lastModifiedAt: new Date("2025-04-11T14:30:53.873Z"), version: "", isUploaded: false, - createdAt: new Date("2023-03-01T13:04:14.388Z"), + createdAt: new Date("2023-01-10T03:18:49.542Z"), sizeReadable: "", - publicUrl: "https://alive-venom.com/", + publicUrl: "https://drab-utilization.info/", }, ], }, productPrice: { - createdAt: new Date("2023-12-19T22:18:12.650Z"), - modifiedAt: new Date("2023-01-09T04:55:52.406Z"), + createdAt: new Date("2023-12-13T23:25:27.070Z"), + modifiedAt: new Date("2024-12-01T20:18:43.840Z"), id: "", isArchived: false, productId: "", - priceCurrency: "", - minimumAmount: 240572, - maximumAmount: 714693, - presetAmount: 378278, - recurringInterval: "year", + recurringInterval: "month", }, discount: { - duration: "forever", + duration: "once", + durationInMonths: 788333, type: "fixed", - basisPoints: 982000, - createdAt: new Date("2024-07-24T15:46:43.780Z"), - modifiedAt: new Date("2023-10-13T03:45:21.275Z"), + amount: 39617, + currency: "East Caribbean Dollar", + createdAt: new Date("2024-06-28T15:00:15.453Z"), + modifiedAt: new Date("2024-06-16T15:00:21.981Z"), id: "", metadata: { - "key": 706780, + "key": 635148, }, name: "", code: "", - startsAt: new Date("2024-05-27T09:14:17.968Z"), - endsAt: new Date("2024-12-04T10:43:19.828Z"), - maxRedemptions: 108040, - redemptionsCount: 874066, + startsAt: new Date("2024-03-16T02:10:36.135Z"), + endsAt: new Date("2025-04-01T10:18:17.294Z"), + maxRedemptions: 876583, + redemptionsCount: 489731, organizationId: "", }, - url: "https://sophisticated-cap.name", + url: "https://french-optimal.name", }; ``` diff --git a/docs/models/components/checkoutlinkdiscount.md b/docs/models/components/checkoutlinkdiscount.md index e9408bf1..e1c03c3e 100644 --- a/docs/models/components/checkoutlinkdiscount.md +++ b/docs/models/components/checkoutlinkdiscount.md @@ -8,21 +8,21 @@ ```typescript const value: components.DiscountFixedOnceForeverDurationBase = { duration: "forever", - type: "fixed", - amount: 107645, - currency: "CFP Franc", - createdAt: new Date("2025-01-13T18:49:36.050Z"), - modifiedAt: new Date("2025-11-11T12:57:03.441Z"), + type: "percentage", + amount: 58904, + currency: "Cordoba Oro", + createdAt: new Date("2023-05-25T23:19:35.845Z"), + modifiedAt: new Date("2024-04-18T06:24:50.359Z"), id: "", metadata: { - "key": "", + "key": false, }, name: "", code: "", - startsAt: new Date("2025-05-20T09:25:06.072Z"), - endsAt: new Date("2024-04-06T00:08:29.443Z"), - maxRedemptions: 929687, - redemptionsCount: 686991, + startsAt: new Date("2023-05-27T16:26:09.723Z"), + endsAt: new Date("2023-08-17T19:12:36.222Z"), + maxRedemptions: 423019, + redemptionsCount: 60393, organizationId: "", }; ``` @@ -32,22 +32,22 @@ const value: components.DiscountFixedOnceForeverDurationBase = { ```typescript const value: components.DiscountFixedRepeatDurationBase = { duration: "once", - durationInMonths: 32474, + durationInMonths: 77469, type: "fixed", - amount: 712690, - currency: "Afghani", - createdAt: new Date("2024-06-08T04:16:09.888Z"), - modifiedAt: new Date("2024-08-29T03:30:52.625Z"), + amount: 573379, + currency: "Sudanese Pound", + createdAt: new Date("2025-10-08T20:53:19.157Z"), + modifiedAt: new Date("2024-04-24T15:10:47.996Z"), id: "", metadata: { - "key": false, + "key": 60068, }, name: "", code: "", - startsAt: new Date("2024-05-04T11:13:51.388Z"), - endsAt: new Date("2023-01-07T00:19:19.316Z"), - maxRedemptions: 218782, - redemptionsCount: 47554, + startsAt: new Date("2024-06-04T22:39:17.784Z"), + endsAt: new Date("2025-08-11T12:40:25.231Z"), + maxRedemptions: 592279, + redemptionsCount: 375101, organizationId: "", }; ``` @@ -56,21 +56,21 @@ const value: components.DiscountFixedRepeatDurationBase = { ```typescript const value: components.DiscountPercentageOnceForeverDurationBase = { - duration: "repeating", - type: "percentage", - basisPoints: 1920, - createdAt: new Date("2023-02-12T05:28:18.955Z"), - modifiedAt: new Date("2023-09-05T04:07:53.610Z"), + duration: "once", + type: "fixed", + basisPoints: 918704, + createdAt: new Date("2023-03-22T23:42:49.599Z"), + modifiedAt: new Date("2024-08-04T20:02:30.502Z"), id: "", metadata: { - "key": false, + "key": 759464, }, name: "", code: "", - startsAt: new Date("2024-03-13T07:48:02.355Z"), - endsAt: new Date("2024-07-07T21:03:19.722Z"), - maxRedemptions: 872509, - redemptionsCount: 891243, + startsAt: new Date("2023-06-15T15:51:43.676Z"), + endsAt: new Date("2023-07-07T15:07:14.072Z"), + maxRedemptions: 716005, + redemptionsCount: 679958, organizationId: "", }; ``` @@ -80,21 +80,21 @@ const value: components.DiscountPercentageOnceForeverDurationBase = { ```typescript const value: components.DiscountPercentageRepeatDurationBase = { duration: "forever", - durationInMonths: 760160, - type: "fixed", - basisPoints: 175186, - createdAt: new Date("2025-12-06T00:26:41.692Z"), - modifiedAt: new Date("2024-11-30T11:14:21.780Z"), + durationInMonths: 4558, + type: "percentage", + basisPoints: 987398, + createdAt: new Date("2025-01-01T12:27:08.755Z"), + modifiedAt: new Date("2025-10-19T19:37:40.374Z"), id: "", metadata: { - "key": 877838, + "key": false, }, name: "", code: "", - startsAt: new Date("2023-01-30T15:06:46.475Z"), - endsAt: new Date("2023-11-10T08:00:29.356Z"), - maxRedemptions: 719170, - redemptionsCount: 454623, + startsAt: new Date("2025-01-19T20:11:42.821Z"), + endsAt: new Date("2024-01-20T23:38:05.989Z"), + maxRedemptions: 79659, + redemptionsCount: 32170, organizationId: "", }; ``` diff --git a/docs/models/components/checkoutlinkmetadata.md b/docs/models/components/checkoutlinkmetadata.md index 1dd7cd97..7cfeb932 100644 --- a/docs/models/components/checkoutlinkmetadata.md +++ b/docs/models/components/checkoutlinkmetadata.md @@ -12,7 +12,7 @@ const value: string = ""; ### `number` ```typescript -const value: number = 281326; +const value: number = 411009; ``` ### `boolean` diff --git a/docs/models/components/checkoutlinkpricecreatemetadata.md b/docs/models/components/checkoutlinkpricecreatemetadata.md index 75611c18..0b0575d0 100644 --- a/docs/models/components/checkoutlinkpricecreatemetadata.md +++ b/docs/models/components/checkoutlinkpricecreatemetadata.md @@ -12,7 +12,7 @@ const value: string = ""; ### `number` ```typescript -const value: number = 194687; +const value: number = 71075; ``` ### `boolean` diff --git a/docs/models/components/checkoutlinkproduct.md b/docs/models/components/checkoutlinkproduct.md index f4d0f0c7..e2e5ee9b 100644 --- a/docs/models/components/checkoutlinkproduct.md +++ b/docs/models/components/checkoutlinkproduct.md @@ -8,32 +8,34 @@ Product data for a checkout link. import { CheckoutLinkProduct } from "@polar-sh/sdk/models/components/checkoutlinkproduct.js"; let value: CheckoutLinkProduct = { - createdAt: new Date("2025-01-29T02:00:47.187Z"), - modifiedAt: new Date("2024-07-26T10:07:41.065Z"), + createdAt: new Date("2024-07-15T02:59:18.334Z"), + modifiedAt: new Date("2023-06-25T04:35:26.551Z"), id: "", name: "", - description: "lest gadzooks unless", + description: + "blah diligently now new usually excepting concerning miscalculate", isRecurring: false, isArchived: false, organizationId: "", prices: [ { - createdAt: new Date("2024-06-13T20:02:24.167Z"), - modifiedAt: new Date("2024-12-02T17:40:05.617Z"), + createdAt: new Date("2023-09-21T21:29:51.348Z"), + modifiedAt: new Date("2025-07-17T18:56:25.683Z"), id: "", isArchived: false, productId: "", + priceCurrency: "", + priceAmount: 973257, recurringInterval: "year", }, ], benefits: [ { - createdAt: new Date("2024-04-22T03:18:32.830Z"), - modifiedAt: new Date("2024-08-26T12:09:55.533Z"), + createdAt: new Date("2024-10-23T19:46:51.933Z"), + modifiedAt: new Date("2024-10-26T10:22:57.351Z"), id: "", - type: "ads", - description: - "tattered hourly or huzzah vanish obnoxiously beside eternity", + type: "github_repository", + description: "afore knowledgeably bah", selectable: false, deletable: false, organizationId: "", @@ -44,19 +46,19 @@ let value: CheckoutLinkProduct = { id: "", organizationId: "", name: "", - path: "/home", + path: "/usr/sbin", mimeType: "", - size: 443062, + size: 6773, storageVersion: "", checksumEtag: "", checksumSha256Base64: "", checksumSha256Hex: "", - lastModifiedAt: new Date("2024-07-06T18:19:06.566Z"), + lastModifiedAt: new Date("2023-01-31T09:32:31.170Z"), version: "", isUploaded: false, - createdAt: new Date("2025-09-12T13:15:58.455Z"), + createdAt: new Date("2024-07-27T09:20:22.857Z"), sizeReadable: "", - publicUrl: "https://second-milestone.biz", + publicUrl: "https://wry-formation.info/", }, ], }; diff --git a/docs/models/components/checkoutlinkproductcreatemetadata.md b/docs/models/components/checkoutlinkproductcreatemetadata.md index 3c3f9926..54f1e553 100644 --- a/docs/models/components/checkoutlinkproductcreatemetadata.md +++ b/docs/models/components/checkoutlinkproductcreatemetadata.md @@ -12,7 +12,7 @@ const value: string = ""; ### `number` ```typescript -const value: number = 258807; +const value: number = 623092; ``` ### `boolean` diff --git a/docs/models/components/checkoutlinksortproperty.md b/docs/models/components/checkoutlinksortproperty.md index 8d44e55f..64af5b77 100644 --- a/docs/models/components/checkoutlinksortproperty.md +++ b/docs/models/components/checkoutlinksortproperty.md @@ -5,7 +5,7 @@ ```typescript import { CheckoutLinkSortProperty } from "@polar-sh/sdk/models/components/checkoutlinksortproperty.js"; -let value: CheckoutLinkSortProperty = "created_at"; +let value: CheckoutLinkSortProperty = "-created_at"; ``` ## Values diff --git a/docs/models/components/checkoutlinkupdatemetadata.md b/docs/models/components/checkoutlinkupdatemetadata.md index d871caca..91f5aa9a 100644 --- a/docs/models/components/checkoutlinkupdatemetadata.md +++ b/docs/models/components/checkoutlinkupdatemetadata.md @@ -12,7 +12,7 @@ const value: string = ""; ### `number` ```typescript -const value: number = 227897; +const value: number = 57659; ``` ### `boolean` diff --git a/docs/models/components/checkoutpricecreatecustomermetadata.md b/docs/models/components/checkoutpricecreatecustomermetadata.md index 2d16691a..f611b022 100644 --- a/docs/models/components/checkoutpricecreatecustomermetadata.md +++ b/docs/models/components/checkoutpricecreatecustomermetadata.md @@ -12,7 +12,7 @@ const value: string = ""; ### `number` ```typescript -const value: number = 440603; +const value: number = 206931; ``` ### `boolean` diff --git a/docs/models/components/checkoutpricecreatecustomfielddata.md b/docs/models/components/checkoutpricecreatecustomfielddata.md index 92c2e05e..9b7d0a22 100644 --- a/docs/models/components/checkoutpricecreatecustomfielddata.md +++ b/docs/models/components/checkoutpricecreatecustomfielddata.md @@ -12,7 +12,7 @@ const value: string = ""; ### `number` ```typescript -const value: number = 844283; +const value: number = 884057; ``` ### `boolean` @@ -24,6 +24,6 @@ const value: boolean = false; ### `Date` ```typescript -const value: Date = new Date("2025-03-11T20:25:17.588Z"); +const value: Date = new Date("2024-02-19T22:12:16.458Z"); ``` diff --git a/docs/models/components/checkoutpricecreatemetadata.md b/docs/models/components/checkoutpricecreatemetadata.md index d5485e55..ea1e4992 100644 --- a/docs/models/components/checkoutpricecreatemetadata.md +++ b/docs/models/components/checkoutpricecreatemetadata.md @@ -12,7 +12,7 @@ const value: string = ""; ### `number` ```typescript -const value: number = 427526; +const value: number = 70720; ``` ### `boolean` diff --git a/docs/models/components/checkoutproductcreatecustomermetadata.md b/docs/models/components/checkoutproductcreatecustomermetadata.md index c55c6886..a9a264b3 100644 --- a/docs/models/components/checkoutproductcreatecustomermetadata.md +++ b/docs/models/components/checkoutproductcreatecustomermetadata.md @@ -12,7 +12,7 @@ const value: string = ""; ### `number` ```typescript -const value: number = 209169; +const value: number = 624312; ``` ### `boolean` diff --git a/docs/models/components/checkoutproductcreatecustomfielddata.md b/docs/models/components/checkoutproductcreatecustomfielddata.md index 4334c954..5087192f 100644 --- a/docs/models/components/checkoutproductcreatecustomfielddata.md +++ b/docs/models/components/checkoutproductcreatecustomfielddata.md @@ -12,7 +12,7 @@ const value: string = ""; ### `number` ```typescript -const value: number = 534148; +const value: number = 618481; ``` ### `boolean` @@ -24,6 +24,6 @@ const value: boolean = false; ### `Date` ```typescript -const value: Date = new Date("2024-04-17T14:04:46.675Z"); +const value: Date = new Date("2024-05-24T23:31:12.496Z"); ``` diff --git a/docs/models/components/checkoutproductcreatemetadata.md b/docs/models/components/checkoutproductcreatemetadata.md index 7402e493..3a803ef3 100644 --- a/docs/models/components/checkoutproductcreatemetadata.md +++ b/docs/models/components/checkoutproductcreatemetadata.md @@ -12,7 +12,7 @@ const value: string = ""; ### `number` ```typescript -const value: number = 577549; +const value: number = 147974; ``` ### `boolean` diff --git a/docs/models/components/checkoutpublic.md b/docs/models/components/checkoutpublic.md index ab3b2715..df3ac776 100644 --- a/docs/models/components/checkoutpublic.md +++ b/docs/models/components/checkoutpublic.md @@ -8,21 +8,21 @@ Checkout session data retrieved using the client secret. import { CheckoutPublic } from "@polar-sh/sdk/models/components/checkoutpublic.js"; let value: CheckoutPublic = { - createdAt: new Date("2023-11-30T21:38:11.468Z"), - modifiedAt: new Date("2025-06-17T11:24:47.637Z"), + createdAt: new Date("2023-06-17T09:07:14.703Z"), + modifiedAt: new Date("2024-02-04T08:20:52.886Z"), id: "", paymentProcessor: "stripe", - status: "succeeded", + status: "confirmed", clientSecret: "", - url: "https://powerless-valley.com", - expiresAt: new Date("2023-06-17T07:07:26.732Z"), - successUrl: "https://flowery-embossing.org/", + url: "https://haunting-deed.com", + expiresAt: new Date("2023-07-21T01:23:23.506Z"), + successUrl: "https://excitable-fedora.com/", embedOrigin: "", - amount: 44220, - taxAmount: 25897, - currency: "CFA Franc BEAC", - subtotalAmount: 160090, - totalAmount: 42977, + amount: 405846, + taxAmount: 167626, + currency: "Rufiyaa", + subtotalAmount: 377877, + totalAmount: 639652, productId: "", productPriceId: "", discountId: "", @@ -37,44 +37,43 @@ let value: CheckoutPublic = { customerEmail: "", customerIpAddress: "", customerBillingAddress: { - country: "Jordan", + country: "San Marino", }, customerTaxId: "", paymentProcessorMetadata: { "key": "", }, product: { - createdAt: new Date("2025-08-24T13:14:58.426Z"), - modifiedAt: new Date("2023-12-02T10:43:36.676Z"), + createdAt: new Date("2023-04-03T20:01:39.272Z"), + modifiedAt: new Date("2024-02-24T04:43:08.800Z"), id: "", name: "", description: - "apud amidst delightfully valentine jealous clean safe reassemble traduce onto", + "abacus after abaft whereas phew pro pace provided with inspection", isRecurring: false, isArchived: false, organizationId: "", prices: [ { - createdAt: new Date("2023-07-01T18:48:05.220Z"), - modifiedAt: new Date("2025-01-07T06:50:44.539Z"), + createdAt: new Date("2025-07-02T19:45:41.035Z"), + modifiedAt: new Date("2023-10-02T13:18:18.281Z"), id: "", isArchived: false, productId: "", priceCurrency: "", - minimumAmount: 531236, - maximumAmount: 969433, - presetAmount: 133813, + minimumAmount: 914093, + maximumAmount: 64739, + presetAmount: 89357, recurringInterval: "year", }, ], benefits: [ { - createdAt: new Date("2023-12-08T15:35:06.694Z"), - modifiedAt: new Date("2024-11-02T12:09:54.791Z"), + createdAt: new Date("2024-07-12T17:41:56.779Z"), + modifiedAt: new Date("2025-01-05T23:16:10.605Z"), id: "", - type: "ads", - description: - "corrupt because yet boo disconnection schnitzel round among until mmm", + type: "custom", + description: "powerless um upside-down cluttered even", selectable: false, deletable: false, organizationId: "", @@ -85,56 +84,59 @@ let value: CheckoutPublic = { id: "", organizationId: "", name: "", - path: "/var/yp", + path: "/private", mimeType: "", - size: 992118, + size: 120388, storageVersion: "", checksumEtag: "", checksumSha256Base64: "", checksumSha256Hex: "", - lastModifiedAt: new Date("2023-07-16T15:28:27.357Z"), + lastModifiedAt: new Date("2024-02-05T14:35:18.199Z"), version: "", isUploaded: false, - createdAt: new Date("2025-05-21T18:31:46.006Z"), + createdAt: new Date("2024-03-11T14:59:18.289Z"), sizeReadable: "", - publicUrl: "https://severe-word.org", + publicUrl: "https://sandy-testing.info", }, ], }, productPrice: { - createdAt: new Date("2025-08-17T04:21:09.664Z"), - modifiedAt: new Date("2025-02-13T00:46:04.848Z"), + createdAt: new Date("2024-10-12T16:07:08.214Z"), + modifiedAt: new Date("2024-08-16T04:54:46.128Z"), id: "", isArchived: false, productId: "", + priceCurrency: "", + minimumAmount: 896306, + maximumAmount: 592378, + presetAmount: 256631, recurringInterval: "year", }, discount: { - duration: "repeating", - durationInMonths: 4087, + duration: "forever", type: "percentage", - amount: 723689, - currency: "Bhutanese Ngultrum", + amount: 709922, + currency: "Malagasy Ariary", id: "", name: "", code: "", }, organization: { - createdAt: new Date("2025-08-09T05:43:20.222Z"), - modifiedAt: new Date("2024-06-15T15:13:24.972Z"), + createdAt: new Date("2025-01-23T20:37:44.789Z"), + modifiedAt: new Date("2024-04-24T19:43:12.777Z"), id: "", name: "", slug: "", - avatarUrl: "https://neighboring-testimonial.net/", + avatarUrl: "https://powerless-reconsideration.org/", bio: "", - company: "King, Okuneva and Murphy", + company: "Willms, Buckridge and Zboncak", blog: "", location: "", - email: "Nathan18@gmail.com", + email: "Armando_Pacocha@gmail.com", twitterUsername: "", - pledgeMinimumAmount: 384521, + pledgeMinimumAmount: 600106, pledgeBadgeShowAmount: false, - defaultUpfrontSplitToContributors: 519611, + defaultUpfrontSplitToContributors: 609454, profileSettings: {}, featureSettings: {}, subscriptionSettings: { @@ -147,18 +149,18 @@ let value: CheckoutPublic = { { customFieldId: "", customField: { - createdAt: new Date("2025-03-06T13:27:13.872Z"), - modifiedAt: new Date("2023-01-29T12:41:56.507Z"), + createdAt: new Date("2024-02-28T12:56:08.312Z"), + modifiedAt: new Date("2025-01-16T21:04:26.038Z"), id: "", metadata: { - "key": false, + "key": "", }, slug: "", name: "", organizationId: "", properties: {}, }, - order: 324393, + order: 349551, required: false, }, ], diff --git a/docs/models/components/checkoutpublicconfirmed.md b/docs/models/components/checkoutpublicconfirmed.md index 7fb45833..c9a1d1a7 100644 --- a/docs/models/components/checkoutpublicconfirmed.md +++ b/docs/models/components/checkoutpublicconfirmed.md @@ -11,20 +11,20 @@ right after the checkout. import { CheckoutPublicConfirmed } from "@polar-sh/sdk/models/components/checkoutpublicconfirmed.js"; let value: CheckoutPublicConfirmed = { - createdAt: new Date("2023-09-05T20:51:23.814Z"), - modifiedAt: new Date("2025-01-27T00:03:50.601Z"), + createdAt: new Date("2023-12-08T15:35:06.694Z"), + modifiedAt: new Date("2024-11-02T12:09:54.791Z"), id: "", paymentProcessor: "stripe", clientSecret: "", - url: "https://fluffy-baritone.biz/", - expiresAt: new Date("2023-02-11T10:30:57.987Z"), - successUrl: "https://impressionable-gift.info", + url: "https://valuable-humor.info/", + expiresAt: new Date("2025-05-11T19:29:38.167Z"), + successUrl: "https://magnificent-safe.com", embedOrigin: "", - amount: 261294, - taxAmount: 360333, - currency: "Mexican Peso", - subtotalAmount: 224524, - totalAmount: 461968, + amount: 252409, + taxAmount: 692991, + currency: "Vatu", + subtotalAmount: 117208, + totalAmount: 134387, productId: "", productPriceId: "", discountId: "", @@ -39,43 +39,41 @@ let value: CheckoutPublicConfirmed = { customerEmail: "", customerIpAddress: "", customerBillingAddress: { - country: "Mexico", + country: "Virgin Islands, British", }, customerTaxId: "", paymentProcessorMetadata: { "key": "", }, product: { - createdAt: new Date("2023-06-01T08:25:28.208Z"), - modifiedAt: new Date("2023-12-03T10:32:14.023Z"), + createdAt: new Date("2023-04-10T23:52:52.292Z"), + modifiedAt: new Date("2023-02-17T00:20:01.255Z"), id: "", name: "", - description: "zowie coolly vein dress unhappy rewrite quaver", + description: "subsidy a petticoat emerge on pension solemnly", isRecurring: false, isArchived: false, organizationId: "", prices: [ { - createdAt: new Date("2023-06-26T16:20:01.687Z"), - modifiedAt: new Date("2025-05-15T23:00:36.400Z"), + createdAt: new Date("2025-05-21T07:18:56.019Z"), + modifiedAt: new Date("2025-06-04T18:13:43.679Z"), id: "", isArchived: false, productId: "", priceCurrency: "", - minimumAmount: 981974, - maximumAmount: 107492, - presetAmount: 841413, - recurringInterval: "month", + priceAmount: 721978, + recurringInterval: "year", }, ], benefits: [ { - createdAt: new Date("2023-02-26T08:18:41.042Z"), - modifiedAt: new Date("2024-07-25T08:28:29.928Z"), + createdAt: new Date("2025-12-23T08:38:56.825Z"), + modifiedAt: new Date("2023-07-16T15:28:27.357Z"), id: "", - type: "discord", + type: "downloadables", description: - "customise and boo but mmm insistent regular furthermore saturate aw", + "sarcastic godparent weird patiently married alliance sonar keenly", selectable: false, deletable: false, organizationId: "", @@ -86,73 +84,72 @@ let value: CheckoutPublicConfirmed = { id: "", organizationId: "", name: "", - path: "/tmp", + path: "/private", mimeType: "", - size: 92130, + size: 393776, storageVersion: "", checksumEtag: "", checksumSha256Base64: "", checksumSha256Hex: "", - lastModifiedAt: new Date("2023-06-02T19:37:32.666Z"), + lastModifiedAt: new Date("2023-08-20T06:58:32.848Z"), version: "", isUploaded: false, - createdAt: new Date("2023-02-05T13:22:26.842Z"), + createdAt: new Date("2023-09-05T20:51:23.814Z"), sizeReadable: "", - publicUrl: "https://elementary-pomelo.com/", + publicUrl: "https://critical-earth.com", }, ], }, productPrice: { - createdAt: new Date("2023-06-06T16:15:17.058Z"), - modifiedAt: new Date("2025-12-12T15:11:11.667Z"), + createdAt: new Date("2025-02-04T09:06:07.394Z"), + modifiedAt: new Date("2024-03-19T06:06:09.580Z"), id: "", isArchived: false, productId: "", priceCurrency: "", - minimumAmount: 504269, - maximumAmount: 294184, - presetAmount: 55505, + priceAmount: 377668, + recurringInterval: "month", }, discount: { duration: "forever", - durationInMonths: 245773, - type: "percentage", - amount: 278278, - currency: "Argentine Peso", + durationInMonths: 590966, + type: "fixed", + amount: 461968, + currency: "Mauritius Rupee", id: "", name: "", code: "", }, organization: { - createdAt: new Date("2024-03-28T19:55:31.271Z"), - modifiedAt: new Date("2024-01-26T20:32:24.172Z"), + createdAt: new Date("2023-06-01T08:25:28.208Z"), + modifiedAt: new Date("2023-12-03T10:32:14.023Z"), id: "", name: "", slug: "", - avatarUrl: "https://motionless-gradient.org/", + avatarUrl: "https://important-provider.biz", bio: "", - company: "Herzog Group", + company: "Schuster Group", blog: "", location: "", - email: "Thad_Simonis@yahoo.com", + email: "Isadore_Nicolas82@hotmail.com", twitterUsername: "", - pledgeMinimumAmount: 772726, + pledgeMinimumAmount: 129904, pledgeBadgeShowAmount: false, - defaultUpfrontSplitToContributors: 509186, + defaultUpfrontSplitToContributors: 263484, profileSettings: {}, featureSettings: {}, subscriptionSettings: { allowMultipleSubscriptions: false, allowCustomerUpdates: false, - prorationBehavior: "invoice", + prorationBehavior: "prorate", }, }, attachedCustomFields: [ { customFieldId: "", customField: { - createdAt: new Date("2024-04-10T22:26:51.446Z"), - modifiedAt: new Date("2024-12-24T07:57:58.923Z"), + createdAt: new Date("2024-08-04T09:00:15.814Z"), + modifiedAt: new Date("2025-04-27T15:00:24.699Z"), id: "", metadata: { "key": false, @@ -162,7 +159,7 @@ let value: CheckoutPublicConfirmed = { organizationId: "", properties: {}, }, - order: 32623, + order: 957425, required: false, }, ], diff --git a/docs/models/components/checkoutpublicconfirmedcustomfielddata.md b/docs/models/components/checkoutpublicconfirmedcustomfielddata.md index 021912a6..95db9049 100644 --- a/docs/models/components/checkoutpublicconfirmedcustomfielddata.md +++ b/docs/models/components/checkoutpublicconfirmedcustomfielddata.md @@ -12,7 +12,7 @@ const value: string = ""; ### `number` ```typescript -const value: number = 30643; +const value: number = 70999; ``` ### `boolean` @@ -24,6 +24,6 @@ const value: boolean = false; ### `Date` ```typescript -const value: Date = new Date("2023-03-08T19:15:27.321Z"); +const value: Date = new Date("2023-11-24T11:33:05.047Z"); ``` diff --git a/docs/models/components/checkoutpublicconfirmeddiscount.md b/docs/models/components/checkoutpublicconfirmeddiscount.md index fc6e1428..155e5d11 100644 --- a/docs/models/components/checkoutpublicconfirmeddiscount.md +++ b/docs/models/components/checkoutpublicconfirmeddiscount.md @@ -7,10 +7,10 @@ ```typescript const value: components.CheckoutDiscountFixedOnceForeverDuration = { - duration: "forever", - type: "fixed", - amount: 753178, - currency: "Aruban Guilder", + duration: "repeating", + type: "percentage", + amount: 217880, + currency: "Zambian Kwacha", id: "", name: "", code: "", @@ -21,11 +21,11 @@ const value: components.CheckoutDiscountFixedOnceForeverDuration = { ```typescript const value: components.CheckoutDiscountFixedRepeatDuration = { - duration: "once", - durationInMonths: 830242, + duration: "repeating", + durationInMonths: 68180, type: "fixed", - amount: 787613, - currency: "Brunei Dollar", + amount: 642261, + currency: "Costa Rican Colon", id: "", name: "", code: "", @@ -36,9 +36,9 @@ const value: components.CheckoutDiscountFixedRepeatDuration = { ```typescript const value: components.CheckoutDiscountPercentageOnceForeverDuration = { - duration: "repeating", - type: "percentage", - basisPoints: 218756, + duration: "forever", + type: "fixed", + basisPoints: 672706, id: "", name: "", code: "", @@ -50,9 +50,9 @@ const value: components.CheckoutDiscountPercentageOnceForeverDuration = { ```typescript const value: components.CheckoutDiscountPercentageRepeatDuration = { duration: "forever", - durationInMonths: 458005, + durationInMonths: 969433, type: "fixed", - basisPoints: 211031, + basisPoints: 530721, id: "", name: "", code: "", diff --git a/docs/models/components/checkoutpubliccustomfielddata.md b/docs/models/components/checkoutpubliccustomfielddata.md index 1b95c07b..56725ad9 100644 --- a/docs/models/components/checkoutpubliccustomfielddata.md +++ b/docs/models/components/checkoutpubliccustomfielddata.md @@ -12,7 +12,7 @@ const value: string = ""; ### `number` ```typescript -const value: number = 718538; +const value: number = 303843; ``` ### `boolean` @@ -24,6 +24,6 @@ const value: boolean = false; ### `Date` ```typescript -const value: Date = new Date("2023-02-23T22:42:00.409Z"); +const value: Date = new Date("2024-12-25T18:28:53.746Z"); ``` diff --git a/docs/models/components/checkoutpublicdiscount.md b/docs/models/components/checkoutpublicdiscount.md index e888af32..660fc6fc 100644 --- a/docs/models/components/checkoutpublicdiscount.md +++ b/docs/models/components/checkoutpublicdiscount.md @@ -7,10 +7,10 @@ ```typescript const value: components.CheckoutDiscountFixedOnceForeverDuration = { - duration: "repeating", + duration: "once", type: "fixed", - amount: 239127, - currency: "Comoro Franc", + amount: 478678, + currency: "Singapore Dollar", id: "", name: "", code: "", @@ -21,11 +21,11 @@ const value: components.CheckoutDiscountFixedOnceForeverDuration = { ```typescript const value: components.CheckoutDiscountFixedRepeatDuration = { - duration: "repeating", - durationInMonths: 250506, + duration: "once", + durationInMonths: 792152, type: "percentage", - amount: 64739, - currency: "Bulgarian Lev", + amount: 19463, + currency: "Colombian Peso", id: "", name: "", code: "", @@ -37,8 +37,8 @@ const value: components.CheckoutDiscountFixedRepeatDuration = { ```typescript const value: components.CheckoutDiscountPercentageOnceForeverDuration = { duration: "forever", - type: "percentage", - basisPoints: 671505, + type: "fixed", + basisPoints: 27636, id: "", name: "", code: "", @@ -49,10 +49,10 @@ const value: components.CheckoutDiscountPercentageOnceForeverDuration = { ```typescript const value: components.CheckoutDiscountPercentageRepeatDuration = { - duration: "once", - durationInMonths: 260242, + duration: "forever", + durationInMonths: 625774, type: "percentage", - basisPoints: 344401, + basisPoints: 206874, id: "", name: "", code: "", diff --git a/docs/models/components/checkoutsortproperty.md b/docs/models/components/checkoutsortproperty.md index f73a6705..635ab29b 100644 --- a/docs/models/components/checkoutsortproperty.md +++ b/docs/models/components/checkoutsortproperty.md @@ -5,7 +5,7 @@ ```typescript import { CheckoutSortProperty } from "@polar-sh/sdk/models/components/checkoutsortproperty.js"; -let value: CheckoutSortProperty = "created_at"; +let value: CheckoutSortProperty = "expires_at"; ``` ## Values diff --git a/docs/models/components/checkoutupdatecustomermetadata.md b/docs/models/components/checkoutupdatecustomermetadata.md index da123e7a..1463cc54 100644 --- a/docs/models/components/checkoutupdatecustomermetadata.md +++ b/docs/models/components/checkoutupdatecustomermetadata.md @@ -12,7 +12,7 @@ const value: string = ""; ### `number` ```typescript -const value: number = 750737; +const value: number = 340087; ``` ### `boolean` diff --git a/docs/models/components/checkoutupdatecustomfielddata.md b/docs/models/components/checkoutupdatecustomfielddata.md index 7d7c8e14..1d9c852f 100644 --- a/docs/models/components/checkoutupdatecustomfielddata.md +++ b/docs/models/components/checkoutupdatecustomfielddata.md @@ -12,7 +12,7 @@ const value: string = ""; ### `number` ```typescript -const value: number = 967589; +const value: number = 500784; ``` ### `boolean` @@ -24,6 +24,6 @@ const value: boolean = false; ### `Date` ```typescript -const value: Date = new Date("2025-05-10T16:19:06.783Z"); +const value: Date = new Date("2025-10-16T02:00:31.918Z"); ``` diff --git a/docs/models/components/checkoutupdatemetadata.md b/docs/models/components/checkoutupdatemetadata.md index e312bf27..676de775 100644 --- a/docs/models/components/checkoutupdatemetadata.md +++ b/docs/models/components/checkoutupdatemetadata.md @@ -12,7 +12,7 @@ const value: string = ""; ### `number` ```typescript -const value: number = 44260; +const value: number = 694286; ``` ### `boolean` diff --git a/docs/models/components/checkoutupdatepubliccustomfielddata.md b/docs/models/components/checkoutupdatepubliccustomfielddata.md index 11f01c1b..080113e8 100644 --- a/docs/models/components/checkoutupdatepubliccustomfielddata.md +++ b/docs/models/components/checkoutupdatepubliccustomfielddata.md @@ -12,7 +12,7 @@ const value: string = ""; ### `number` ```typescript -const value: number = 879364; +const value: number = 71631; ``` ### `boolean` @@ -24,6 +24,6 @@ const value: boolean = false; ### `Date` ```typescript -const value: Date = new Date("2023-06-07T04:12:06.961Z"); +const value: Date = new Date("2025-06-13T14:07:06.026Z"); ``` diff --git a/docs/models/components/clauses.md b/docs/models/components/clauses.md index da45c5bc..2fe58a98 100644 --- a/docs/models/components/clauses.md +++ b/docs/models/components/clauses.md @@ -8,7 +8,7 @@ ```typescript const value: components.FilterClause = { property: "", - operator: "eq", + operator: "gt", value: false, }; ``` @@ -17,7 +17,7 @@ const value: components.FilterClause = { ```typescript const value: components.Filter = { - conjunction: "or", + conjunction: "and", clauses: [], }; ``` diff --git a/docs/models/components/customerbenefitgrant.md b/docs/models/components/customerbenefitgrant.md index 01c2656b..9eed73a7 100644 --- a/docs/models/components/customerbenefitgrant.md +++ b/docs/models/components/customerbenefitgrant.md @@ -7,11 +7,11 @@ ```typescript const value: components.CustomerBenefitGrantDiscord = { - createdAt: new Date("2025-05-17T05:06:11.950Z"), - modifiedAt: new Date("2023-07-03T14:59:21.254Z"), + createdAt: new Date("2025-11-03T20:41:32.976Z"), + modifiedAt: new Date("2023-12-07T04:29:21.475Z"), id: "", - grantedAt: new Date("2024-12-09T08:42:56.831Z"), - revokedAt: new Date("2025-03-11T18:16:52.321Z"), + grantedAt: new Date("2023-07-11T19:27:37.850Z"), + revokedAt: new Date("2025-09-21T16:35:34.104Z"), customerId: "", benefitId: "", subscriptionId: "", @@ -19,17 +19,17 @@ const value: components.CustomerBenefitGrantDiscord = { isGranted: false, isRevoked: false, customer: { - createdAt: new Date("2025-02-14T01:57:38.329Z"), - modifiedAt: new Date("2023-02-26T16:10:21.358Z"), + createdAt: new Date("2024-06-13T15:30:19.597Z"), + modifiedAt: new Date("2024-06-28T00:09:50.341Z"), id: "", - email: "Carlos.Ward@yahoo.com", + email: "Dolores_Macejkovic@hotmail.com", emailVerified: false, name: "", billingAddress: { - country: "Anguilla", + country: "Burkina Faso", }, taxId: [ - "si_tin", + "om_vat", ], oauthAccounts: { "key": { @@ -39,30 +39,29 @@ const value: components.CustomerBenefitGrantDiscord = { }, }, benefit: { - createdAt: new Date("2024-05-16T11:26:11.280Z"), - modifiedAt: new Date("2025-05-17T20:32:17.192Z"), + createdAt: new Date("2024-05-13T18:08:52.522Z"), + modifiedAt: new Date("2024-06-24T05:42:29.206Z"), id: "", - description: - "inconsequential portray state hm what seemingly idolized twine off responsibility", + description: "like yuck black-and-white", selectable: false, deletable: false, organizationId: "", organization: { - createdAt: new Date("2024-11-29T22:41:42.230Z"), - modifiedAt: new Date("2023-01-22T01:43:38.808Z"), + createdAt: new Date("2024-02-18T07:07:56.877Z"), + modifiedAt: new Date("2024-05-15T01:41:14.995Z"), id: "", name: "", slug: "", - avatarUrl: "https://bruised-digit.biz/", + avatarUrl: "https://spiffy-accompanist.name", bio: "", - company: "O'Conner, Swaniawski and Schultz", + company: "Smith - Fisher", blog: "", location: "", - email: "Laila.Pfeffer@hotmail.com", + email: "Darlene61@gmail.com", twitterUsername: "", - pledgeMinimumAmount: 134406, + pledgeMinimumAmount: 197761, pledgeBadgeShowAmount: false, - defaultUpfrontSplitToContributors: 605309, + defaultUpfrontSplitToContributors: 517222, profileSettings: {}, featureSettings: {}, subscriptionSettings: { @@ -83,11 +82,11 @@ const value: components.CustomerBenefitGrantDiscord = { ```typescript const value: components.CustomerBenefitGrantGitHubRepository = { - createdAt: new Date("2023-07-12T17:46:18.920Z"), - modifiedAt: new Date("2023-11-19T16:34:45.510Z"), + createdAt: new Date("2024-10-31T05:10:14.364Z"), + modifiedAt: new Date("2023-01-14T10:21:01.202Z"), id: "", - grantedAt: new Date("2023-10-17T19:40:17.347Z"), - revokedAt: new Date("2025-05-07T09:01:06.714Z"), + grantedAt: new Date("2023-10-05T21:44:59.619Z"), + revokedAt: new Date("2025-01-20T01:04:50.326Z"), customerId: "", benefitId: "", subscriptionId: "", @@ -95,17 +94,17 @@ const value: components.CustomerBenefitGrantGitHubRepository = { isGranted: false, isRevoked: false, customer: { - createdAt: new Date("2023-06-16T18:55:28.891Z"), - modifiedAt: new Date("2024-04-27T16:00:32.884Z"), + createdAt: new Date("2024-11-01T07:14:23.436Z"), + modifiedAt: new Date("2025-09-09T13:04:44.306Z"), id: "", - email: "Odie.Franey48@yahoo.com", + email: "Porter_Hilpert@hotmail.com", emailVerified: false, name: "", billingAddress: { - country: "Palestine", + country: "Vanuatu", }, taxId: [ - "", + "no_voec", ], oauthAccounts: { "key": { @@ -115,30 +114,30 @@ const value: components.CustomerBenefitGrantGitHubRepository = { }, }, benefit: { - createdAt: new Date("2024-08-11T13:01:00.484Z"), - modifiedAt: new Date("2024-11-28T16:19:41.020Z"), + createdAt: new Date("2024-03-27T22:50:15.785Z"), + modifiedAt: new Date("2023-04-13T11:45:19.275Z"), id: "", description: - "amidst decent instructor out ew incidentally phew yak conservation reassemble", + "nor upwardly noxious unless ew wherever adventurously where within blah", selectable: false, deletable: false, organizationId: "", organization: { - createdAt: new Date("2024-03-06T21:50:32.713Z"), - modifiedAt: new Date("2023-10-20T12:01:16.137Z"), + createdAt: new Date("2024-11-25T18:23:53.239Z"), + modifiedAt: new Date("2025-10-05T09:47:55.156Z"), id: "", name: "", slug: "", - avatarUrl: "https://inconsequential-lava.com", + avatarUrl: "https://profuse-embarrassment.net", bio: "", - company: "Rosenbaum - Waters", + company: "Bayer, Emmerich and Wehner", blog: "", location: "", - email: "Stella.Champlin94@yahoo.com", + email: "Antoinette.Hickle5@hotmail.com", twitterUsername: "", - pledgeMinimumAmount: 629156, + pledgeMinimumAmount: 282370, pledgeBadgeShowAmount: false, - defaultUpfrontSplitToContributors: 235765, + defaultUpfrontSplitToContributors: 153133, profileSettings: {}, featureSettings: {}, subscriptionSettings: { @@ -160,11 +159,11 @@ const value: components.CustomerBenefitGrantGitHubRepository = { ```typescript const value: components.CustomerBenefitGrantDownloadables = { - createdAt: new Date("2024-06-18T07:49:43.108Z"), - modifiedAt: new Date("2025-02-26T17:27:19.483Z"), + createdAt: new Date("2024-07-24T08:55:42.913Z"), + modifiedAt: new Date("2023-08-31T16:57:01.365Z"), id: "", - grantedAt: new Date("2025-06-18T07:24:46.613Z"), - revokedAt: new Date("2025-12-30T17:52:39.500Z"), + grantedAt: new Date("2025-07-18T02:33:02.859Z"), + revokedAt: new Date("2025-04-13T16:34:33.011Z"), customerId: "", benefitId: "", subscriptionId: "", @@ -172,14 +171,14 @@ const value: components.CustomerBenefitGrantDownloadables = { isGranted: false, isRevoked: false, customer: { - createdAt: new Date("2023-08-17T13:06:43.730Z"), - modifiedAt: new Date("2024-04-23T13:59:45.564Z"), + createdAt: new Date("2024-02-28T08:38:23.712Z"), + modifiedAt: new Date("2025-07-10T23:10:00.876Z"), id: "", - email: "Alexis31@yahoo.com", + email: "Linda.Jast40@yahoo.com", emailVerified: false, name: "", billingAddress: { - country: "United Kingdom", + country: "Colombia", }, taxId: [ "", @@ -192,29 +191,29 @@ const value: components.CustomerBenefitGrantDownloadables = { }, }, benefit: { - createdAt: new Date("2023-04-29T23:50:26.349Z"), - modifiedAt: new Date("2025-12-17T05:53:22.650Z"), + createdAt: new Date("2024-11-08T10:01:55.357Z"), + modifiedAt: new Date("2023-07-18T08:10:20.804Z"), id: "", - description: "boo vaguely vibraphone", + description: "ravioli and sweetly", selectable: false, deletable: false, organizationId: "", organization: { - createdAt: new Date("2024-03-01T11:20:38.154Z"), - modifiedAt: new Date("2025-05-05T05:07:58.692Z"), + createdAt: new Date("2025-09-24T21:01:28.984Z"), + modifiedAt: new Date("2024-09-14T18:42:51.260Z"), id: "", name: "", slug: "", - avatarUrl: "https://poor-sightseeing.name", + avatarUrl: "https://infatuated-sightseeing.net", bio: "", - company: "Connelly and Sons", + company: "Jenkins, Koss and Ebert", blog: "", location: "", - email: "Joaquin54@gmail.com", + email: "Maritza_Reilly35@gmail.com", twitterUsername: "", - pledgeMinimumAmount: 496921, + pledgeMinimumAmount: 319753, pledgeBadgeShowAmount: false, - defaultUpfrontSplitToContributors: 359898, + defaultUpfrontSplitToContributors: 365230, profileSettings: {}, featureSettings: {}, subscriptionSettings: { @@ -237,11 +236,11 @@ const value: components.CustomerBenefitGrantDownloadables = { ```typescript const value: components.CustomerBenefitGrantLicenseKeys = { - createdAt: new Date("2023-05-27T16:46:38.890Z"), - modifiedAt: new Date("2024-06-10T10:18:55.444Z"), + createdAt: new Date("2023-03-09T18:10:09.588Z"), + modifiedAt: new Date("2025-08-07T06:17:20.997Z"), id: "", - grantedAt: new Date("2025-04-14T12:09:29.462Z"), - revokedAt: new Date("2025-09-11T02:58:27.558Z"), + grantedAt: new Date("2024-11-16T07:53:47.712Z"), + revokedAt: new Date("2023-02-28T06:46:59.017Z"), customerId: "", benefitId: "", subscriptionId: "", @@ -249,17 +248,17 @@ const value: components.CustomerBenefitGrantLicenseKeys = { isGranted: false, isRevoked: false, customer: { - createdAt: new Date("2025-10-13T20:20:07.426Z"), - modifiedAt: new Date("2023-05-03T18:10:14.633Z"), + createdAt: new Date("2023-10-03T14:17:41.986Z"), + modifiedAt: new Date("2023-06-15T01:32:52.208Z"), id: "", - email: "Cory.Streich10@yahoo.com", + email: "Keshawn82@yahoo.com", emailVerified: false, name: "", billingAddress: { - country: "Guinea-Bissau", + country: "Christmas Island", }, taxId: [ - "my_frp", + "pe_ruc", ], oauthAccounts: { "key": { @@ -269,48 +268,48 @@ const value: components.CustomerBenefitGrantLicenseKeys = { }, }, benefit: { - createdAt: new Date("2025-10-10T06:04:08.009Z"), - modifiedAt: new Date("2023-12-12T13:29:21.662Z"), + createdAt: new Date("2025-09-06T05:11:52.841Z"), + modifiedAt: new Date("2025-05-17T11:08:19.354Z"), id: "", - description: "ha academics reassuringly conjecture gah harmful", + description: "outrun yet why", selectable: false, deletable: false, organizationId: "", organization: { - createdAt: new Date("2024-05-03T23:37:31.406Z"), - modifiedAt: new Date("2025-01-02T08:17:22.976Z"), + createdAt: new Date("2023-09-13T23:26:45.333Z"), + modifiedAt: new Date("2025-01-20T09:50:42.405Z"), id: "", name: "", slug: "", - avatarUrl: "https://evil-account.biz/", + avatarUrl: "https://pretty-chasuble.biz/", bio: "", - company: "McKenzie, Abshire and Schaefer", + company: "Runolfsdottir LLC", blog: "", location: "", - email: "Velda_Upton@gmail.com", + email: "Nicola.Aufderhar9@gmail.com", twitterUsername: "", - pledgeMinimumAmount: 185878, + pledgeMinimumAmount: 276720, pledgeBadgeShowAmount: false, - defaultUpfrontSplitToContributors: 351191, + defaultUpfrontSplitToContributors: 677488, profileSettings: {}, featureSettings: {}, subscriptionSettings: { allowMultipleSubscriptions: false, allowCustomerUpdates: false, - prorationBehavior: "invoice", + prorationBehavior: "prorate", }, }, properties: { prefix: "", expires: { - ttl: 834393, - timeframe: "month", + ttl: 872004, + timeframe: "day", }, activations: { - limit: 248582, + limit: 788551, enableCustomerAdmin: false, }, - limitUsage: 819983, + limitUsage: 588907, }, }, properties: {}, @@ -321,11 +320,11 @@ const value: components.CustomerBenefitGrantLicenseKeys = { ```typescript const value: components.CustomerBenefitGrantAds = { - createdAt: new Date("2024-05-20T03:07:59.370Z"), - modifiedAt: new Date("2023-01-12T22:10:24.998Z"), + createdAt: new Date("2023-04-27T20:51:56.543Z"), + modifiedAt: new Date("2025-01-23T18:32:15.375Z"), id: "", - grantedAt: new Date("2023-06-18T00:19:04.057Z"), - revokedAt: new Date("2024-04-07T05:52:36.033Z"), + grantedAt: new Date("2023-11-28T08:15:52.623Z"), + revokedAt: new Date("2025-05-08T14:24:55.853Z"), customerId: "", benefitId: "", subscriptionId: "", @@ -333,17 +332,17 @@ const value: components.CustomerBenefitGrantAds = { isGranted: false, isRevoked: false, customer: { - createdAt: new Date("2023-03-27T01:29:21.084Z"), - modifiedAt: new Date("2024-12-06T02:39:54.212Z"), + createdAt: new Date("2024-02-06T21:19:44.981Z"), + modifiedAt: new Date("2023-05-28T07:24:58.835Z"), id: "", - email: "Laurence8@gmail.com", + email: "Shany.Grimes78@yahoo.com", emailVerified: false, name: "", billingAddress: { - country: "Cyprus", + country: "Israel", }, taxId: [ - "no_vat", + "", ], oauthAccounts: { "key": { @@ -353,30 +352,29 @@ const value: components.CustomerBenefitGrantAds = { }, }, benefit: { - createdAt: new Date("2025-11-16T14:07:22.719Z"), - modifiedAt: new Date("2025-09-24T21:40:36.341Z"), + createdAt: new Date("2025-04-23T04:28:47.510Z"), + modifiedAt: new Date("2024-04-26T14:18:23.756Z"), id: "", - description: - "um musty fundraising besides fantastic makeover correctly where always before", + description: "bah indeed nauseate gosh", selectable: false, deletable: false, organizationId: "", organization: { - createdAt: new Date("2024-08-08T20:28:07.077Z"), - modifiedAt: new Date("2023-06-30T01:06:25.745Z"), + createdAt: new Date("2024-05-31T17:57:52.601Z"), + modifiedAt: new Date("2024-02-20T00:47:22.305Z"), id: "", name: "", slug: "", - avatarUrl: "https://shabby-basket.net/", + avatarUrl: "https://awesome-armchair.biz/", bio: "", - company: "Huels - Cassin", + company: "Orn - Dach", blog: "", location: "", - email: "Darwin_Ebert@hotmail.com", + email: "Viviane26@hotmail.com", twitterUsername: "", - pledgeMinimumAmount: 742133, + pledgeMinimumAmount: 888269, pledgeBadgeShowAmount: false, - defaultUpfrontSplitToContributors: 354888, + defaultUpfrontSplitToContributors: 966298, profileSettings: {}, featureSettings: {}, subscriptionSettings: { @@ -397,11 +395,11 @@ const value: components.CustomerBenefitGrantAds = { ```typescript const value: components.CustomerBenefitGrantCustom = { - createdAt: new Date("2023-04-19T01:33:18.247Z"), - modifiedAt: new Date("2025-11-29T00:13:08.140Z"), + createdAt: new Date("2023-07-12T16:48:40.890Z"), + modifiedAt: new Date("2024-07-29T05:04:15.427Z"), id: "", - grantedAt: new Date("2024-02-19T20:23:05.888Z"), - revokedAt: new Date("2025-08-15T11:30:59.577Z"), + grantedAt: new Date("2024-01-13T10:00:25.967Z"), + revokedAt: new Date("2024-03-12T08:26:51.024Z"), customerId: "", benefitId: "", subscriptionId: "", @@ -409,17 +407,17 @@ const value: components.CustomerBenefitGrantCustom = { isGranted: false, isRevoked: false, customer: { - createdAt: new Date("2024-11-10T04:29:42.756Z"), - modifiedAt: new Date("2025-01-13T07:42:06.849Z"), + createdAt: new Date("2024-05-10T19:41:29.989Z"), + modifiedAt: new Date("2023-03-08T17:56:09.580Z"), id: "", - email: "Erik_Runolfsson@yahoo.com", + email: "Nat94@gmail.com", emailVerified: false, name: "", billingAddress: { - country: "Romania", + country: "Martinique", }, taxId: [ - "my_sst", + "", ], oauthAccounts: { "key": { @@ -429,35 +427,36 @@ const value: components.CustomerBenefitGrantCustom = { }, }, benefit: { - createdAt: new Date("2025-07-20T15:40:12.430Z"), - modifiedAt: new Date("2024-03-18T21:55:22.090Z"), + createdAt: new Date("2025-10-06T12:45:51.755Z"), + modifiedAt: new Date("2025-12-28T09:43:36.201Z"), id: "", - description: "whether jealously immediately spew", + description: + "optimal despite scale warmly sugary ugh without what furthermore", selectable: false, deletable: false, organizationId: "", organization: { - createdAt: new Date("2025-04-06T11:49:25.383Z"), - modifiedAt: new Date("2024-06-09T19:07:01.719Z"), + createdAt: new Date("2025-09-22T02:49:31.119Z"), + modifiedAt: new Date("2024-04-04T00:39:34.729Z"), id: "", name: "", slug: "", - avatarUrl: "https://discrete-ribbon.net", + avatarUrl: "https://rowdy-fort.org/", bio: "", - company: "Wehner, Towne and Tremblay", + company: "Wintheiser - Howell", blog: "", location: "", - email: "Pasquale.Gleason-Runolfsdottir@yahoo.com", + email: "Ramiro_Schulist60@hotmail.com", twitterUsername: "", - pledgeMinimumAmount: 442160, + pledgeMinimumAmount: 890464, pledgeBadgeShowAmount: false, - defaultUpfrontSplitToContributors: 700800, + defaultUpfrontSplitToContributors: 154004, profileSettings: {}, featureSettings: {}, subscriptionSettings: { allowMultipleSubscriptions: false, allowCustomerUpdates: false, - prorationBehavior: "invoice", + prorationBehavior: "prorate", }, }, properties: { diff --git a/docs/models/components/customerbenefitgrantads.md b/docs/models/components/customerbenefitgrantads.md index ed04796f..a70a2e1a 100644 --- a/docs/models/components/customerbenefitgrantads.md +++ b/docs/models/components/customerbenefitgrantads.md @@ -6,11 +6,11 @@ import { CustomerBenefitGrantAds } from "@polar-sh/sdk/models/components/customerbenefitgrantads.js"; let value: CustomerBenefitGrantAds = { - createdAt: new Date("2025-04-11T05:43:48.406Z"), - modifiedAt: new Date("2023-01-27T01:42:16.171Z"), + createdAt: new Date("2025-05-10T16:59:51.268Z"), + modifiedAt: new Date("2024-01-26T02:08:19.912Z"), id: "", - grantedAt: new Date("2025-06-10T16:16:44.051Z"), - revokedAt: new Date("2025-03-31T02:26:27.528Z"), + grantedAt: new Date("2024-08-19T06:06:53.937Z"), + revokedAt: new Date("2024-04-13T22:22:57.873Z"), customerId: "", benefitId: "", subscriptionId: "", @@ -18,17 +18,17 @@ let value: CustomerBenefitGrantAds = { isGranted: false, isRevoked: false, customer: { - createdAt: new Date("2023-07-17T12:03:07.247Z"), - modifiedAt: new Date("2024-03-02T08:51:53.258Z"), + createdAt: new Date("2024-05-06T01:33:06.900Z"), + modifiedAt: new Date("2024-06-16T05:41:02.707Z"), id: "", - email: "Adolf80@gmail.com", + email: "Queen85@gmail.com", emailVerified: false, name: "", billingAddress: { - country: "Afghanistan", + country: "United States Minor Outlying Islands", }, taxId: [ - "br_cnpj", + "", ], oauthAccounts: { "key": { @@ -38,29 +38,29 @@ let value: CustomerBenefitGrantAds = { }, }, benefit: { - createdAt: new Date("2025-11-05T16:50:02.471Z"), - modifiedAt: new Date("2023-12-31T16:17:23.828Z"), + createdAt: new Date("2025-08-30T02:25:42.565Z"), + modifiedAt: new Date("2025-07-30T07:23:10.648Z"), id: "", - description: "towards storyboard behind moral likewise irritably", + description: "jiggle narrow while honored absent urban busily", selectable: false, deletable: false, organizationId: "", organization: { - createdAt: new Date("2024-10-25T18:56:37.422Z"), - modifiedAt: new Date("2025-01-08T18:32:25.623Z"), + createdAt: new Date("2025-08-20T17:29:24.705Z"), + modifiedAt: new Date("2024-04-01T13:16:59.523Z"), id: "", name: "", slug: "", - avatarUrl: "https://variable-numeric.com", + avatarUrl: "https://worthless-hammock.name/", bio: "", - company: "Jacobson LLC", + company: "Fahey, Glover and Ritchie", blog: "", location: "", - email: "Zella.Goldner@gmail.com", + email: "Cole.Altenwerth@hotmail.com", twitterUsername: "", - pledgeMinimumAmount: 375300, + pledgeMinimumAmount: 759015, pledgeBadgeShowAmount: false, - defaultUpfrontSplitToContributors: 789168, + defaultUpfrontSplitToContributors: 57387, profileSettings: {}, featureSettings: {}, subscriptionSettings: { diff --git a/docs/models/components/customerbenefitgrantcustom.md b/docs/models/components/customerbenefitgrantcustom.md index cc5979df..f4e297ea 100644 --- a/docs/models/components/customerbenefitgrantcustom.md +++ b/docs/models/components/customerbenefitgrantcustom.md @@ -6,11 +6,11 @@ import { CustomerBenefitGrantCustom } from "@polar-sh/sdk/models/components/customerbenefitgrantcustom.js"; let value: CustomerBenefitGrantCustom = { - createdAt: new Date("2025-02-16T04:17:46.843Z"), - modifiedAt: new Date("2023-11-09T15:15:15.958Z"), + createdAt: new Date("2024-02-25T22:57:12.478Z"), + modifiedAt: new Date("2025-12-15T02:44:28.054Z"), id: "", - grantedAt: new Date("2024-10-31T10:31:58.487Z"), - revokedAt: new Date("2023-03-01T16:32:42.679Z"), + grantedAt: new Date("2024-08-24T13:14:09.111Z"), + revokedAt: new Date("2024-05-23T06:35:11.657Z"), customerId: "", benefitId: "", subscriptionId: "", @@ -18,14 +18,14 @@ let value: CustomerBenefitGrantCustom = { isGranted: false, isRevoked: false, customer: { - createdAt: new Date("2023-11-22T16:09:54.713Z"), - modifiedAt: new Date("2023-08-11T06:09:30.010Z"), + createdAt: new Date("2024-03-31T07:34:34.111Z"), + modifiedAt: new Date("2024-09-26T22:56:42.613Z"), id: "", - email: "Myron_Daugherty@yahoo.com", + email: "Geraldine23@yahoo.com", emailVerified: false, name: "", billingAddress: { - country: "Denmark", + country: "Tanzania", }, taxId: [ "", @@ -38,29 +38,30 @@ let value: CustomerBenefitGrantCustom = { }, }, benefit: { - createdAt: new Date("2024-04-01T03:11:44.762Z"), - modifiedAt: new Date("2025-05-29T11:27:32.508Z"), + createdAt: new Date("2025-08-27T22:34:29.586Z"), + modifiedAt: new Date("2023-08-04T22:15:19.791Z"), id: "", - description: "connect amused bowling redound corrupt honorable ah", + description: + "palatable qua inventory expensive cantaloupe lovingly frankly", selectable: false, deletable: false, organizationId: "", organization: { - createdAt: new Date("2024-08-21T13:51:49.769Z"), - modifiedAt: new Date("2025-05-12T15:20:34.562Z"), + createdAt: new Date("2023-07-30T18:22:13.120Z"), + modifiedAt: new Date("2025-07-01T09:15:10.452Z"), id: "", name: "", slug: "", - avatarUrl: "https://silent-dandelion.name", + avatarUrl: "https://criminal-adaptation.biz/", bio: "", - company: "Feeney - Goldner", + company: "Bartell, Veum and Beer", blog: "", location: "", - email: "Janis_Heller13@yahoo.com", + email: "Fay30@hotmail.com", twitterUsername: "", - pledgeMinimumAmount: 60692, + pledgeMinimumAmount: 871254, pledgeBadgeShowAmount: false, - defaultUpfrontSplitToContributors: 708881, + defaultUpfrontSplitToContributors: 409316, profileSettings: {}, featureSettings: {}, subscriptionSettings: { diff --git a/docs/models/components/customerbenefitgrantdiscord.md b/docs/models/components/customerbenefitgrantdiscord.md index ce93724f..4c5f8a97 100644 --- a/docs/models/components/customerbenefitgrantdiscord.md +++ b/docs/models/components/customerbenefitgrantdiscord.md @@ -6,11 +6,11 @@ import { CustomerBenefitGrantDiscord } from "@polar-sh/sdk/models/components/customerbenefitgrantdiscord.js"; let value: CustomerBenefitGrantDiscord = { - createdAt: new Date("2025-07-11T10:07:05.535Z"), - modifiedAt: new Date("2023-05-30T04:41:33.304Z"), + createdAt: new Date("2023-12-15T21:39:10.857Z"), + modifiedAt: new Date("2023-11-13T05:18:38.099Z"), id: "", - grantedAt: new Date("2023-01-29T00:45:56.979Z"), - revokedAt: new Date("2024-03-17T21:39:36.457Z"), + grantedAt: new Date("2023-07-05T22:00:57.114Z"), + revokedAt: new Date("2024-08-23T09:07:04.039Z"), customerId: "", benefitId: "", subscriptionId: "", @@ -18,17 +18,17 @@ let value: CustomerBenefitGrantDiscord = { isGranted: false, isRevoked: false, customer: { - createdAt: new Date("2025-04-29T11:11:06.519Z"), - modifiedAt: new Date("2024-01-17T20:56:10.200Z"), + createdAt: new Date("2025-07-14T14:46:19.316Z"), + modifiedAt: new Date("2024-06-28T15:00:27.569Z"), id: "", - email: "Malachi16@hotmail.com", + email: "Tillman89@yahoo.com", emailVerified: false, name: "", billingAddress: { - country: "Iraq", + country: "Bonaire, Sint Eustatius and Saba", }, taxId: [ - "", + "ca_qst", ], oauthAccounts: { "key": { @@ -38,30 +38,29 @@ let value: CustomerBenefitGrantDiscord = { }, }, benefit: { - createdAt: new Date("2025-01-13T14:31:56.581Z"), - modifiedAt: new Date("2025-08-31T16:18:43.774Z"), + createdAt: new Date("2023-07-14T04:14:38.100Z"), + modifiedAt: new Date("2025-08-06T16:40:59.881Z"), id: "", - description: - "dream coaxingly unlike married behind whether mostly substantiate", + description: "eyeglasses minus aha acquaintance if", selectable: false, deletable: false, organizationId: "", organization: { - createdAt: new Date("2024-06-24T00:22:07.985Z"), - modifiedAt: new Date("2024-09-07T14:21:20.970Z"), + createdAt: new Date("2023-07-02T05:45:15.890Z"), + modifiedAt: new Date("2023-06-09T10:36:15.974Z"), id: "", name: "", slug: "", - avatarUrl: "https://trusting-role.biz", + avatarUrl: "https://alert-kielbasa.com", bio: "", - company: "Ebert - Mraz", + company: "Konopelski - DuBuque", blog: "", location: "", - email: "Joey.Jenkins65@yahoo.com", + email: "Genesis_Okuneva@yahoo.com", twitterUsername: "", - pledgeMinimumAmount: 707050, + pledgeMinimumAmount: 668199, pledgeBadgeShowAmount: false, - defaultUpfrontSplitToContributors: 532248, + defaultUpfrontSplitToContributors: 422082, profileSettings: {}, featureSettings: {}, subscriptionSettings: { diff --git a/docs/models/components/customerbenefitgrantdownloadables.md b/docs/models/components/customerbenefitgrantdownloadables.md index 90cdc1e1..95a43ae9 100644 --- a/docs/models/components/customerbenefitgrantdownloadables.md +++ b/docs/models/components/customerbenefitgrantdownloadables.md @@ -6,11 +6,11 @@ import { CustomerBenefitGrantDownloadables } from "@polar-sh/sdk/models/components/customerbenefitgrantdownloadables.js"; let value: CustomerBenefitGrantDownloadables = { - createdAt: new Date("2024-09-28T19:26:25.236Z"), - modifiedAt: new Date("2024-03-14T04:01:44.816Z"), + createdAt: new Date("2024-01-10T11:58:44.248Z"), + modifiedAt: new Date("2023-04-25T03:34:55.800Z"), id: "", - grantedAt: new Date("2024-08-10T17:40:51.908Z"), - revokedAt: new Date("2024-12-12T23:04:48.157Z"), + grantedAt: new Date("2024-07-10T21:14:43.569Z"), + revokedAt: new Date("2023-02-14T04:34:11.014Z"), customerId: "", benefitId: "", subscriptionId: "", @@ -18,14 +18,14 @@ let value: CustomerBenefitGrantDownloadables = { isGranted: false, isRevoked: false, customer: { - createdAt: new Date("2023-10-28T17:12:20.149Z"), - modifiedAt: new Date("2025-04-14T05:18:33.547Z"), + createdAt: new Date("2023-06-26T05:35:58.572Z"), + modifiedAt: new Date("2023-05-26T02:48:59.527Z"), id: "", - email: "Sibyl74@hotmail.com", + email: "Erling29@yahoo.com", emailVerified: false, name: "", billingAddress: { - country: "Algeria", + country: "Tanzania", }, taxId: [ "", @@ -38,29 +38,29 @@ let value: CustomerBenefitGrantDownloadables = { }, }, benefit: { - createdAt: new Date("2024-06-07T09:44:26.832Z"), - modifiedAt: new Date("2025-08-07T12:38:19.435Z"), + createdAt: new Date("2024-09-07T14:21:20.970Z"), + modifiedAt: new Date("2025-05-23T09:35:37.185Z"), id: "", - description: "youthful deduction atop ack", + description: "psst aw circa gah amongst irritably consequently soap rule", selectable: false, deletable: false, organizationId: "", organization: { - createdAt: new Date("2024-01-26T02:08:19.912Z"), - modifiedAt: new Date("2024-08-19T06:06:53.937Z"), + createdAt: new Date("2023-03-18T16:43:15.845Z"), + modifiedAt: new Date("2025-11-30T16:32:17.395Z"), id: "", name: "", slug: "", - avatarUrl: "https://key-jet.com/", + avatarUrl: "https://hospitable-minor.com/", bio: "", - company: "Greenfelder, Larson and Goodwin", + company: "Dicki, Von and Franecki", blog: "", location: "", - email: "Rico_Hickle-Torphy57@hotmail.com", + email: "Dana84@yahoo.com", twitterUsername: "", - pledgeMinimumAmount: 704149, + pledgeMinimumAmount: 471649, pledgeBadgeShowAmount: false, - defaultUpfrontSplitToContributors: 944788, + defaultUpfrontSplitToContributors: 285935, profileSettings: {}, featureSettings: {}, subscriptionSettings: { diff --git a/docs/models/components/customerbenefitgrantgithubrepository.md b/docs/models/components/customerbenefitgrantgithubrepository.md index 915b9306..84c5a504 100644 --- a/docs/models/components/customerbenefitgrantgithubrepository.md +++ b/docs/models/components/customerbenefitgrantgithubrepository.md @@ -6,11 +6,11 @@ import { CustomerBenefitGrantGitHubRepository } from "@polar-sh/sdk/models/components/customerbenefitgrantgithubrepository.js"; let value: CustomerBenefitGrantGitHubRepository = { - createdAt: new Date("2023-06-14T07:38:33.904Z"), - modifiedAt: new Date("2025-06-18T17:55:49.940Z"), + createdAt: new Date("2025-09-18T02:24:20.215Z"), + modifiedAt: new Date("2023-08-20T00:33:32.523Z"), id: "", - grantedAt: new Date("2024-07-06T15:33:57.659Z"), - revokedAt: new Date("2024-05-05T22:20:39.516Z"), + grantedAt: new Date("2023-01-28T21:38:59.292Z"), + revokedAt: new Date("2024-11-25T05:58:39.491Z"), customerId: "", benefitId: "", subscriptionId: "", @@ -18,17 +18,17 @@ let value: CustomerBenefitGrantGitHubRepository = { isGranted: false, isRevoked: false, customer: { - createdAt: new Date("2025-04-07T07:22:12.777Z"), - modifiedAt: new Date("2024-05-30T21:00:32.381Z"), + createdAt: new Date("2024-09-05T22:49:00.223Z"), + modifiedAt: new Date("2023-05-21T00:34:47.505Z"), id: "", - email: "Gustave89@yahoo.com", + email: "Gisselle_Bradtke16@hotmail.com", emailVerified: false, name: "", billingAddress: { - country: "Mali", + country: "Reunion", }, taxId: [ - "ch_uid", + "", ], oauthAccounts: { "key": { @@ -38,30 +38,29 @@ let value: CustomerBenefitGrantGitHubRepository = { }, }, benefit: { - createdAt: new Date("2025-10-04T08:43:33.671Z"), - modifiedAt: new Date("2025-07-31T06:29:37.217Z"), + createdAt: new Date("2025-02-20T14:44:41.629Z"), + modifiedAt: new Date("2023-03-18T07:56:55.620Z"), id: "", - description: - "atop gosh outgoing unsung asset valiantly unfortunately for aha", + description: "whoever instead rubric thorny forenenst till", selectable: false, deletable: false, organizationId: "", organization: { - createdAt: new Date("2023-08-08T23:44:33.248Z"), - modifiedAt: new Date("2024-01-01T23:37:23.079Z"), + createdAt: new Date("2023-10-04T12:08:13.052Z"), + modifiedAt: new Date("2024-02-18T05:45:49.390Z"), id: "", name: "", slug: "", - avatarUrl: "https://silky-advancement.biz/", + avatarUrl: "https://upright-casement.com", bio: "", - company: "Dibbert, Ledner and Cormier", + company: "Huels - Hegmann", blog: "", location: "", - email: "Reggie_Rolfson22@hotmail.com", + email: "Carolyn89@hotmail.com", twitterUsername: "", - pledgeMinimumAmount: 249245, + pledgeMinimumAmount: 754099, pledgeBadgeShowAmount: false, - defaultUpfrontSplitToContributors: 628991, + defaultUpfrontSplitToContributors: 479741, profileSettings: {}, featureSettings: {}, subscriptionSettings: { diff --git a/docs/models/components/customerbenefitgrantlicensekeys.md b/docs/models/components/customerbenefitgrantlicensekeys.md index a4702179..fa901f20 100644 --- a/docs/models/components/customerbenefitgrantlicensekeys.md +++ b/docs/models/components/customerbenefitgrantlicensekeys.md @@ -6,11 +6,11 @@ import { CustomerBenefitGrantLicenseKeys } from "@polar-sh/sdk/models/components/customerbenefitgrantlicensekeys.js"; let value: CustomerBenefitGrantLicenseKeys = { - createdAt: new Date("2025-11-11T15:10:16.010Z"), - modifiedAt: new Date("2025-12-14T21:14:15.864Z"), + createdAt: new Date("2024-08-23T15:56:27.872Z"), + modifiedAt: new Date("2024-12-18T00:35:32.011Z"), id: "", - grantedAt: new Date("2024-09-25T22:20:08.593Z"), - revokedAt: new Date("2023-01-16T16:38:44.010Z"), + grantedAt: new Date("2023-09-01T09:43:12.235Z"), + revokedAt: new Date("2025-10-04T08:43:33.671Z"), customerId: "", benefitId: "", subscriptionId: "", @@ -18,17 +18,17 @@ let value: CustomerBenefitGrantLicenseKeys = { isGranted: false, isRevoked: false, customer: { - createdAt: new Date("2025-07-09T12:36:53.974Z"), - modifiedAt: new Date("2025-03-16T05:56:53.673Z"), + createdAt: new Date("2025-07-31T06:29:37.217Z"), + modifiedAt: new Date("2025-05-12T17:01:01.281Z"), id: "", - email: "Nikita54@gmail.com", + email: "Clemmie_Schowalter40@gmail.com", emailVerified: false, name: "", billingAddress: { - country: "Italy", + country: "Timor-Leste", }, taxId: [ - "jp_trn", + "", ], oauthAccounts: { "key": { @@ -38,30 +38,30 @@ let value: CustomerBenefitGrantLicenseKeys = { }, }, benefit: { - createdAt: new Date("2024-07-23T05:39:52.689Z"), - modifiedAt: new Date("2025-07-24T01:28:50.568Z"), + createdAt: new Date("2023-11-24T13:29:30.071Z"), + modifiedAt: new Date("2023-11-26T17:52:56.229Z"), id: "", description: - "because pivot toward postbox mmm excluding next nauseate majestic switchboard", + "inside keenly since pillbox chiffonier charlatan supposing abaft uh-huh quickly", selectable: false, deletable: false, organizationId: "", organization: { - createdAt: new Date("2023-08-04T22:15:19.791Z"), - modifiedAt: new Date("2024-09-15T04:48:18.076Z"), + createdAt: new Date("2025-11-12T10:24:01.727Z"), + modifiedAt: new Date("2025-05-01T10:55:39.996Z"), id: "", name: "", slug: "", - avatarUrl: "https://obedient-curl.biz", + avatarUrl: "https://dim-toaster.com", bio: "", - company: "Rogahn, McLaughlin and Grady", + company: "Connelly, Hettinger and Hegmann", blog: "", location: "", - email: "Madelynn73@gmail.com", + email: "Myles26@gmail.com", twitterUsername: "", - pledgeMinimumAmount: 927475, + pledgeMinimumAmount: 564777, pledgeBadgeShowAmount: false, - defaultUpfrontSplitToContributors: 261712, + defaultUpfrontSplitToContributors: 411312, profileSettings: {}, featureSettings: {}, subscriptionSettings: { @@ -73,14 +73,14 @@ let value: CustomerBenefitGrantLicenseKeys = { properties: { prefix: "", expires: { - ttl: 919617, + ttl: 104466, timeframe: "year", }, activations: { - limit: 453969, + limit: 927286, enableCustomerAdmin: false, }, - limitUsage: 965818, + limitUsage: 218555, }, }, properties: {}, diff --git a/docs/models/components/customerbenefitgrantsortproperty.md b/docs/models/components/customerbenefitgrantsortproperty.md index 1d82e399..408140c5 100644 --- a/docs/models/components/customerbenefitgrantsortproperty.md +++ b/docs/models/components/customerbenefitgrantsortproperty.md @@ -5,7 +5,7 @@ ```typescript import { CustomerBenefitGrantSortProperty } from "@polar-sh/sdk/models/components/customerbenefitgrantsortproperty.js"; -let value: CustomerBenefitGrantSortProperty = "granted_at"; +let value: CustomerBenefitGrantSortProperty = "-type"; ``` ## Values diff --git a/docs/models/components/customercreate.md b/docs/models/components/customercreate.md index 52bdd2ab..1cbaff6a 100644 --- a/docs/models/components/customercreate.md +++ b/docs/models/components/customercreate.md @@ -6,7 +6,7 @@ import { CustomerCreate } from "@polar-sh/sdk/models/components/customercreate.js"; let value: CustomerCreate = { - email: "Oral.Abshire@yahoo.com", + email: "Eriberto.Renner47@gmail.com", }; ``` diff --git a/docs/models/components/customercreatemetadata.md b/docs/models/components/customercreatemetadata.md index 96a29dc6..ff7f287e 100644 --- a/docs/models/components/customercreatemetadata.md +++ b/docs/models/components/customercreatemetadata.md @@ -12,7 +12,7 @@ const value: string = ""; ### `number` ```typescript -const value: number = 927007; +const value: number = 116640; ``` ### `boolean` diff --git a/docs/models/components/customercreatetaxid.md b/docs/models/components/customercreatetaxid.md index 8fa1a92e..0a759c1e 100644 --- a/docs/models/components/customercreatetaxid.md +++ b/docs/models/components/customercreatetaxid.md @@ -12,6 +12,6 @@ const value: string = ""; ### `components.TaxIDFormat` ```typescript -const value: components.TaxIDFormat = "rs_pib"; +const value: components.TaxIDFormat = "is_vat"; ``` diff --git a/docs/models/components/customerorder.md b/docs/models/components/customerorder.md index 4f83e6ee..8a70e0ef 100644 --- a/docs/models/components/customerorder.md +++ b/docs/models/components/customerorder.md @@ -6,46 +6,45 @@ import { CustomerOrder } from "@polar-sh/sdk/models/components/customerorder.js"; let value: CustomerOrder = { - createdAt: new Date("2023-12-03T11:11:57.521Z"), - modifiedAt: new Date("2024-04-17T22:12:43.442Z"), + createdAt: new Date("2023-04-08T08:19:25.840Z"), + modifiedAt: new Date("2024-04-12T05:52:48.696Z"), id: "", - amount: 708746, - taxAmount: 145482, - currency: "Cayman Islands Dollar", + amount: 750956, + taxAmount: 340070, + currency: "Kina", customerId: "", productId: "", productPriceId: "", subscriptionId: "", userId: "", product: { - createdAt: new Date("2025-05-18T23:12:46.422Z"), - modifiedAt: new Date("2023-09-30T12:05:03.388Z"), + createdAt: new Date("2025-09-01T19:47:14.357Z"), + modifiedAt: new Date("2025-05-19T07:19:58.851Z"), id: "", name: "", - description: - "sermon though anti ouch microchip gadzooks someplace pneumonia if", + description: "than indeed hassle", isRecurring: false, isArchived: false, organizationId: "", prices: [ { - createdAt: new Date("2025-01-20T02:39:15.832Z"), - modifiedAt: new Date("2025-11-07T04:52:23.286Z"), + createdAt: new Date("2025-03-25T22:52:07.722Z"), + modifiedAt: new Date("2024-03-31T06:40:04.841Z"), id: "", isArchived: false, productId: "", priceCurrency: "", - priceAmount: 503910, + priceAmount: 151092, recurringInterval: "year", }, ], benefits: [ { - createdAt: new Date("2025-11-01T01:06:17.820Z"), - modifiedAt: new Date("2024-02-15T09:23:09.263Z"), + createdAt: new Date("2024-11-29T23:56:50.889Z"), + modifiedAt: new Date("2024-06-04T01:21:54.034Z"), id: "", - type: "custom", - description: "hmph inside trust at tight how opposite even boo", + type: "discord", + description: "collectivization geez discrete gym aha", selectable: false, deletable: false, organizationId: "", @@ -56,71 +55,68 @@ let value: CustomerOrder = { id: "", organizationId: "", name: "", - path: "/usr/include", + path: "/Library", mimeType: "", - size: 23668, + size: 132707, storageVersion: "", checksumEtag: "", checksumSha256Base64: "", checksumSha256Hex: "", - lastModifiedAt: new Date("2025-02-05T00:56:02.970Z"), + lastModifiedAt: new Date("2024-09-17T16:51:01.606Z"), version: "", isUploaded: false, - createdAt: new Date("2025-11-10T13:57:16.361Z"), + createdAt: new Date("2025-10-06T18:59:00.388Z"), sizeReadable: "", - publicUrl: "https://big-ecliptic.com/", + publicUrl: "https://radiant-strait.net", }, ], organization: { - createdAt: new Date("2024-07-03T00:38:08.268Z"), - modifiedAt: new Date("2023-07-18T03:51:13.957Z"), + createdAt: new Date("2024-02-17T00:44:13.481Z"), + modifiedAt: new Date("2025-05-30T10:39:49.151Z"), id: "", name: "", slug: "", - avatarUrl: "https://informal-government.com", + avatarUrl: "https://trusting-language.name/", bio: "", - company: "Casper Inc", + company: "Parker, Blick and Fritsch", blog: "", location: "", - email: "Ayana.Brown28@gmail.com", + email: "Augusta_Gislason@hotmail.com", twitterUsername: "", - pledgeMinimumAmount: 223296, + pledgeMinimumAmount: 426373, pledgeBadgeShowAmount: false, - defaultUpfrontSplitToContributors: 669865, + defaultUpfrontSplitToContributors: 73292, profileSettings: {}, featureSettings: {}, subscriptionSettings: { allowMultipleSubscriptions: false, allowCustomerUpdates: false, - prorationBehavior: "prorate", + prorationBehavior: "invoice", }, }, }, productPrice: { - createdAt: new Date("2025-03-12T05:09:38.589Z"), - modifiedAt: new Date("2023-10-23T00:05:45.383Z"), + createdAt: new Date("2025-08-15T09:01:20.024Z"), + modifiedAt: new Date("2025-10-16T21:16:15.870Z"), id: "", isArchived: false, productId: "", - priceCurrency: "", - priceAmount: 870461, - recurringInterval: "month", }, subscription: { - createdAt: new Date("2023-02-26T04:08:50.752Z"), - modifiedAt: new Date("2024-05-30T11:53:32.749Z"), + createdAt: new Date("2023-10-24T17:16:51.911Z"), + modifiedAt: new Date("2023-06-14T13:59:56.674Z"), id: "", - amount: 299905, - currency: "Won", - recurringInterval: "month", - status: "unpaid", - currentPeriodStart: new Date("2025-12-04T02:11:47.695Z"), - currentPeriodEnd: new Date("2024-11-07T19:38:45.779Z"), + amount: 638493, + currency: "Cuban Peso", + recurringInterval: "year", + status: "incomplete_expired", + currentPeriodStart: new Date("2023-03-13T09:32:54.501Z"), + currentPeriodEnd: new Date("2024-05-07T00:30:07.587Z"), cancelAtPeriodEnd: false, - canceledAt: new Date("2025-09-20T14:09:26.370Z"), - startedAt: new Date("2023-12-09T23:28:03.526Z"), - endsAt: new Date("2025-05-13T12:44:04.791Z"), - endedAt: new Date("2025-04-18T11:56:30.460Z"), + canceledAt: new Date("2024-11-28T13:10:32.383Z"), + startedAt: new Date("2023-04-14T04:07:05.692Z"), + endsAt: new Date("2024-08-25T11:47:00.419Z"), + endedAt: new Date("2024-04-23T18:30:17.394Z"), customerId: "", productId: "", priceId: "", diff --git a/docs/models/components/customerorderinvoice.md b/docs/models/components/customerorderinvoice.md index e9871632..6aaf779d 100644 --- a/docs/models/components/customerorderinvoice.md +++ b/docs/models/components/customerorderinvoice.md @@ -8,7 +8,7 @@ Order's invoice data. import { CustomerOrderInvoice } from "@polar-sh/sdk/models/components/customerorderinvoice.js"; let value: CustomerOrderInvoice = { - url: "https://naughty-scout.org", + url: "https://ideal-translation.biz/", }; ``` diff --git a/docs/models/components/customerorderproduct.md b/docs/models/components/customerorderproduct.md index 4c2617c5..20dd1a86 100644 --- a/docs/models/components/customerorderproduct.md +++ b/docs/models/components/customerorderproduct.md @@ -6,33 +6,34 @@ import { CustomerOrderProduct } from "@polar-sh/sdk/models/components/customerorderproduct.js"; let value: CustomerOrderProduct = { - createdAt: new Date("2024-02-15T12:52:52.298Z"), - modifiedAt: new Date("2024-05-20T01:39:36.546Z"), + createdAt: new Date("2025-02-10T01:04:09.916Z"), + modifiedAt: new Date("2024-04-07T10:03:51.865Z"), id: "", name: "", - description: "between ew flickering shanghai", + description: "repeatedly lest modulo since", isRecurring: false, isArchived: false, organizationId: "", prices: [ { - createdAt: new Date("2024-04-15T18:02:33.861Z"), - modifiedAt: new Date("2024-08-18T15:47:38.887Z"), + createdAt: new Date("2024-12-23T23:52:06.888Z"), + modifiedAt: new Date("2023-12-29T13:25:29.981Z"), id: "", isArchived: false, productId: "", priceCurrency: "", - priceAmount: 760155, - recurringInterval: "year", + priceAmount: 454779, + recurringInterval: "month", }, ], benefits: [ { - createdAt: new Date("2025-01-06T15:36:55.941Z"), - modifiedAt: new Date("2025-05-30T12:07:26.736Z"), + createdAt: new Date("2024-04-08T12:59:09.276Z"), + modifiedAt: new Date("2025-10-29T06:23:43.138Z"), id: "", type: "downloadables", - description: "hastily unabashedly cute as innocently oof", + description: + "alongside idealistic colorfully below accompany coaxingly and minus why", selectable: false, deletable: false, organizationId: "", @@ -43,37 +44,37 @@ let value: CustomerOrderProduct = { id: "", organizationId: "", name: "", - path: "/tmp", + path: "/sbin", mimeType: "", - size: 942114, + size: 805841, storageVersion: "", checksumEtag: "", checksumSha256Base64: "", checksumSha256Hex: "", - lastModifiedAt: new Date("2025-05-30T06:09:38.320Z"), + lastModifiedAt: new Date("2025-04-22T19:20:53.019Z"), version: "", isUploaded: false, - createdAt: new Date("2023-12-05T07:06:31.528Z"), + createdAt: new Date("2024-03-16T20:09:33.162Z"), sizeReadable: "", - publicUrl: "https://clueless-lace.org", + publicUrl: "https://closed-wriggler.org/", }, ], organization: { - createdAt: new Date("2024-07-28T23:36:52.386Z"), - modifiedAt: new Date("2025-11-03T14:18:38.128Z"), + createdAt: new Date("2024-01-14T21:46:23.229Z"), + modifiedAt: new Date("2025-07-01T17:27:09.272Z"), id: "", name: "", slug: "", - avatarUrl: "https://monstrous-metal.org/", + avatarUrl: "https://vague-suspension.biz", bio: "", - company: "Mertz, Bergstrom and Fadel", + company: "Bednar, Schoen and Mayer", blog: "", location: "", - email: "Johnpaul4@gmail.com", + email: "Katheryn.Bashirian81@hotmail.com", twitterUsername: "", - pledgeMinimumAmount: 381831, + pledgeMinimumAmount: 807215, pledgeBadgeShowAmount: false, - defaultUpfrontSplitToContributors: 27651, + defaultUpfrontSplitToContributors: 703504, profileSettings: {}, featureSettings: {}, subscriptionSettings: { diff --git a/docs/models/components/customerordersortproperty.md b/docs/models/components/customerordersortproperty.md index 16219167..5b1b717c 100644 --- a/docs/models/components/customerordersortproperty.md +++ b/docs/models/components/customerordersortproperty.md @@ -5,7 +5,7 @@ ```typescript import { CustomerOrderSortProperty } from "@polar-sh/sdk/models/components/customerordersortproperty.js"; -let value: CustomerOrderSortProperty = "organization"; +let value: CustomerOrderSortProperty = "-created_at"; ``` ## Values diff --git a/docs/models/components/customerordersubscription.md b/docs/models/components/customerordersubscription.md index fda11108..67f2d8e4 100644 --- a/docs/models/components/customerordersubscription.md +++ b/docs/models/components/customerordersubscription.md @@ -6,26 +6,26 @@ import { CustomerOrderSubscription } from "@polar-sh/sdk/models/components/customerordersubscription.js"; let value: CustomerOrderSubscription = { - createdAt: new Date("2025-03-01T17:35:32.633Z"), - modifiedAt: new Date("2023-04-13T14:30:46.098Z"), + createdAt: new Date("2023-07-08T09:04:33.014Z"), + modifiedAt: new Date("2023-09-14T19:42:35.208Z"), id: "", - amount: 232581, - currency: "Cape Verde Escudo", - recurringInterval: "year", - status: "incomplete_expired", - currentPeriodStart: new Date("2023-11-07T18:41:18.933Z"), - currentPeriodEnd: new Date("2023-10-26T12:08:29.053Z"), + amount: 896612, + currency: "Netherlands Antillian Guilder", + recurringInterval: "month", + status: "active", + currentPeriodStart: new Date("2025-01-18T04:11:11.964Z"), + currentPeriodEnd: new Date("2024-03-25T17:02:56.524Z"), cancelAtPeriodEnd: false, - canceledAt: new Date("2025-10-30T21:51:53.950Z"), - startedAt: new Date("2025-11-05T00:11:06.002Z"), - endsAt: new Date("2025-06-30T11:37:55.414Z"), - endedAt: new Date("2024-05-09T20:50:01.294Z"), + canceledAt: new Date("2023-09-21T10:22:20.793Z"), + startedAt: new Date("2023-10-28T16:26:05.274Z"), + endsAt: new Date("2024-12-12T17:46:52.061Z"), + endedAt: new Date("2025-02-20T08:10:09.864Z"), customerId: "", productId: "", priceId: "", discountId: "", checkoutId: "", - customerCancellationReason: "switched_service", + customerCancellationReason: "other", customerCancellationComment: "", }; ``` diff --git a/docs/models/components/customerportalcustomer.md b/docs/models/components/customerportalcustomer.md index 45f51eed..6120dc09 100644 --- a/docs/models/components/customerportalcustomer.md +++ b/docs/models/components/customerportalcustomer.md @@ -6,17 +6,17 @@ import { CustomerPortalCustomer } from "@polar-sh/sdk/models/components/customerportalcustomer.js"; let value: CustomerPortalCustomer = { - createdAt: new Date("2024-08-20T20:54:18.212Z"), - modifiedAt: new Date("2023-07-09T11:32:01.340Z"), + createdAt: new Date("2023-05-27T00:07:13.026Z"), + modifiedAt: new Date("2025-04-22T05:43:29.394Z"), id: "", - email: "Hal_Moore38@hotmail.com", + email: "Pearline_Baumbach@hotmail.com", emailVerified: false, name: "", billingAddress: { - country: "North Macedonia", + country: "Malta", }, taxId: [ - "", + "ad_nrt", ], oauthAccounts: { "key": { diff --git a/docs/models/components/customerportalcustomertaxid.md b/docs/models/components/customerportalcustomertaxid.md index 04d32db6..3ca21ef5 100644 --- a/docs/models/components/customerportalcustomertaxid.md +++ b/docs/models/components/customerportalcustomertaxid.md @@ -12,6 +12,6 @@ const value: string = ""; ### `components.TaxIDFormat` ```typescript -const value: components.TaxIDFormat = "ge_vat"; +const value: components.TaxIDFormat = "cl_tin"; ``` diff --git a/docs/models/components/customersession.md b/docs/models/components/customersession.md index e1114417..a2fa5bbc 100644 --- a/docs/models/components/customersession.md +++ b/docs/models/components/customersession.md @@ -8,31 +8,31 @@ A customer session that can be used to authenticate as a customer. import { CustomerSession } from "@polar-sh/sdk/models/components/customersession.js"; let value: CustomerSession = { - createdAt: new Date("2025-10-04T02:51:01.618Z"), - modifiedAt: new Date("2025-06-15T05:16:58.669Z"), + createdAt: new Date("2024-11-29T23:44:32.134Z"), + modifiedAt: new Date("2023-10-14T18:21:15.353Z"), id: "", token: "", - expiresAt: new Date("2023-09-02T16:34:40.356Z"), - customerPortalUrl: "https://svelte-pecan.biz/", + expiresAt: new Date("2024-08-14T13:06:25.159Z"), + customerPortalUrl: "https://filthy-airmail.biz", customerId: "", customer: { - createdAt: new Date("2025-08-10T13:22:12.445Z"), - modifiedAt: new Date("2025-09-17T22:21:07.335Z"), + createdAt: new Date("2025-10-28T00:46:45.109Z"), + modifiedAt: new Date("2023-01-23T11:33:34.208Z"), id: "", metadata: { - "key": 984631, + "key": "", }, - email: "Ryan.Wilderman9@yahoo.com", + email: "Meghan.McKenzie-Bogisich78@gmail.com", emailVerified: false, name: "", billingAddress: { - country: "New Caledonia", + country: "Falkland Islands (Malvinas)", }, taxId: [ - "au_arn", + "do_rcn", ], organizationId: "", - avatarUrl: "https://spiffy-lift.info/", + avatarUrl: "https://stale-sonar.name", }, }; ``` diff --git a/docs/models/components/customersortproperty.md b/docs/models/components/customersortproperty.md index 27390f2f..fe7a7a3d 100644 --- a/docs/models/components/customersortproperty.md +++ b/docs/models/components/customersortproperty.md @@ -5,7 +5,7 @@ ```typescript import { CustomerSortProperty } from "@polar-sh/sdk/models/components/customersortproperty.js"; -let value: CustomerSortProperty = "-name"; +let value: CustomerSortProperty = "-created_at"; ``` ## Values diff --git a/docs/models/components/customersubscription.md b/docs/models/components/customersubscription.md index fd6e5481..8c359f63 100644 --- a/docs/models/components/customersubscription.md +++ b/docs/models/components/customersubscription.md @@ -6,20 +6,20 @@ import { CustomerSubscription } from "@polar-sh/sdk/models/components/customersubscription.js"; let value: CustomerSubscription = { - createdAt: new Date("2024-08-01T05:19:33.987Z"), - modifiedAt: new Date("2024-12-16T23:08:04.134Z"), + createdAt: new Date("2023-09-08T11:54:14.747Z"), + modifiedAt: new Date("2024-10-29T09:51:57.657Z"), id: "", - amount: 837627, - currency: "Moldovan Leu", - recurringInterval: "year", - status: "unpaid", - currentPeriodStart: new Date("2025-02-28T10:40:23.489Z"), - currentPeriodEnd: new Date("2023-03-28T00:11:16.408Z"), + amount: 269593, + currency: "Dominican Peso", + recurringInterval: "month", + status: "incomplete", + currentPeriodStart: new Date("2025-03-29T00:56:36.017Z"), + currentPeriodEnd: new Date("2025-08-23T21:58:47.391Z"), cancelAtPeriodEnd: false, - canceledAt: new Date("2025-02-24T14:49:29.759Z"), - startedAt: new Date("2025-12-03T08:49:56.716Z"), - endsAt: new Date("2024-03-04T05:44:49.104Z"), - endedAt: new Date("2023-02-17T14:20:03.646Z"), + canceledAt: new Date("2023-01-19T14:46:34.753Z"), + startedAt: new Date("2024-12-16T01:50:43.036Z"), + endsAt: new Date("2024-09-08T22:32:20.535Z"), + endedAt: new Date("2025-09-19T07:28:52.145Z"), customerId: "", productId: "", priceId: "", @@ -29,32 +29,36 @@ let value: CustomerSubscription = { customerCancellationComment: "", userId: "", product: { - createdAt: new Date("2023-12-05T19:46:35.337Z"), - modifiedAt: new Date("2025-10-03T01:06:50.719Z"), + createdAt: new Date("2024-04-03T18:27:33.065Z"), + modifiedAt: new Date("2024-09-25T16:52:07.472Z"), id: "", name: "", - description: "ew however exotic snuggle", + description: "postbox boastfully gurn till", isRecurring: false, isArchived: false, organizationId: "", prices: [ { - createdAt: new Date("2025-06-06T01:02:17.834Z"), - modifiedAt: new Date("2024-03-31T22:40:18.773Z"), + createdAt: new Date("2023-11-13T19:30:07.544Z"), + modifiedAt: new Date("2023-09-17T06:04:05.728Z"), id: "", isArchived: false, productId: "", priceCurrency: "", - priceAmount: 651972, + minimumAmount: 223296, + maximumAmount: 669865, + presetAmount: 793798, + recurringInterval: "month", }, ], benefits: [ { - createdAt: new Date("2023-12-12T20:01:19.784Z"), - modifiedAt: new Date("2023-05-19T01:33:52.237Z"), + createdAt: new Date("2023-12-16T02:34:06.572Z"), + modifiedAt: new Date("2025-03-12T05:09:38.589Z"), id: "", - type: "downloadables", - description: "ah although pear general coop", + type: "ads", + description: + "willow happy-go-lucky however instead clamor cow pike daughter ouch", selectable: false, deletable: false, organizationId: "", @@ -65,37 +69,37 @@ let value: CustomerSubscription = { id: "", organizationId: "", name: "", - path: "/sbin", + path: "/Users", mimeType: "", - size: 452420, + size: 672127, storageVersion: "", checksumEtag: "", checksumSha256Base64: "", checksumSha256Hex: "", - lastModifiedAt: new Date("2024-11-12T18:42:06.711Z"), + lastModifiedAt: new Date("2025-05-30T12:07:26.736Z"), version: "", isUploaded: false, - createdAt: new Date("2025-12-11T03:53:45.945Z"), + createdAt: new Date("2025-04-29T06:13:47.879Z"), sizeReadable: "", - publicUrl: "https://emotional-doing.biz", + publicUrl: "https://caring-simple.name/", }, ], organization: { - createdAt: new Date("2025-05-01T09:46:08.628Z"), - modifiedAt: new Date("2024-06-28T11:49:18.398Z"), + createdAt: new Date("2023-02-06T04:23:11.388Z"), + modifiedAt: new Date("2025-05-14T04:28:07.813Z"), id: "", name: "", slug: "", - avatarUrl: "https://trusty-gray.name/", + avatarUrl: "https://gifted-lay.net/", bio: "", - company: "McDermott, Lang and Upton", + company: "Balistreri, Haag and Bauch", blog: "", location: "", - email: "Jackson.Pagac@hotmail.com", + email: "Mckayla66@hotmail.com", twitterUsername: "", - pledgeMinimumAmount: 36075, + pledgeMinimumAmount: 160977, pledgeBadgeShowAmount: false, - defaultUpfrontSplitToContributors: 822895, + defaultUpfrontSplitToContributors: 600460, profileSettings: {}, featureSettings: {}, subscriptionSettings: { @@ -106,11 +110,12 @@ let value: CustomerSubscription = { }, }, price: { - createdAt: new Date("2025-11-15T22:58:40.556Z"), - modifiedAt: new Date("2024-05-27T01:39:32.870Z"), + createdAt: new Date("2024-04-20T22:15:06.639Z"), + modifiedAt: new Date("2024-05-30T04:40:15.018Z"), id: "", isArchived: false, productId: "", + recurringInterval: "month", }, }; ``` diff --git a/docs/models/components/customersubscriptionproduct.md b/docs/models/components/customersubscriptionproduct.md index 0d98f6ef..ddccbc08 100644 --- a/docs/models/components/customersubscriptionproduct.md +++ b/docs/models/components/customersubscriptionproduct.md @@ -6,32 +6,30 @@ import { CustomerSubscriptionProduct } from "@polar-sh/sdk/models/components/customersubscriptionproduct.js"; let value: CustomerSubscriptionProduct = { - createdAt: new Date("2025-01-09T14:23:44.216Z"), - modifiedAt: new Date("2025-12-04T03:13:51.971Z"), + createdAt: new Date("2025-03-20T21:26:47.376Z"), + modifiedAt: new Date("2023-01-12T14:50:02.595Z"), id: "", name: "", - description: "among cannibalise below ack fond uh-huh till lazy cemetery", + description: "so shirk via big minister pinstripe", isRecurring: false, isArchived: false, organizationId: "", prices: [ { - createdAt: new Date("2024-10-12T18:11:53.175Z"), - modifiedAt: new Date("2023-01-29T06:07:04.295Z"), + createdAt: new Date("2025-11-20T18:25:25.333Z"), + modifiedAt: new Date("2024-11-11T13:52:42.697Z"), id: "", isArchived: false, productId: "", - priceCurrency: "", - priceAmount: 697365, }, ], benefits: [ { - createdAt: new Date("2025-05-18T00:02:04.577Z"), - modifiedAt: new Date("2024-03-27T23:35:54.981Z"), + createdAt: new Date("2023-05-09T03:26:26.188Z"), + modifiedAt: new Date("2024-10-06T16:35:33.165Z"), id: "", - type: "discord", - description: "frankly absent stiff once", + type: "custom", + description: "concerning openly although vestment monasticism", selectable: false, deletable: false, organizationId: "", @@ -42,37 +40,37 @@ let value: CustomerSubscriptionProduct = { id: "", organizationId: "", name: "", - path: "/lib", + path: "/opt/share", mimeType: "", - size: 22997, + size: 671066, storageVersion: "", checksumEtag: "", checksumSha256Base64: "", checksumSha256Hex: "", - lastModifiedAt: new Date("2024-08-29T09:37:49.436Z"), + lastModifiedAt: new Date("2023-11-26T06:17:33.278Z"), version: "", isUploaded: false, - createdAt: new Date("2024-05-10T02:47:53.663Z"), + createdAt: new Date("2024-03-17T03:37:28.338Z"), sizeReadable: "", - publicUrl: "https://minor-captain.org/", + publicUrl: "https://distant-lamp.net/", }, ], organization: { - createdAt: new Date("2025-03-22T02:32:08.991Z"), - modifiedAt: new Date("2024-02-03T18:19:11.088Z"), + createdAt: new Date("2023-02-07T17:42:25.899Z"), + modifiedAt: new Date("2024-06-15T23:24:38.141Z"), id: "", name: "", slug: "", - avatarUrl: "https://carefree-swanling.name", + avatarUrl: "https://prickly-yak.com", bio: "", - company: "Kertzmann - Metz", + company: "Hammes - Abshire", blog: "", location: "", - email: "Myra2@yahoo.com", + email: "Lucinda_Johnson61@yahoo.com", twitterUsername: "", - pledgeMinimumAmount: 430261, + pledgeMinimumAmount: 319646, pledgeBadgeShowAmount: false, - defaultUpfrontSplitToContributors: 284396, + defaultUpfrontSplitToContributors: 200824, profileSettings: {}, featureSettings: {}, subscriptionSettings: { diff --git a/docs/models/components/customersubscriptionsortproperty.md b/docs/models/components/customersubscriptionsortproperty.md index a0def233..ee894680 100644 --- a/docs/models/components/customersubscriptionsortproperty.md +++ b/docs/models/components/customersubscriptionsortproperty.md @@ -5,7 +5,7 @@ ```typescript import { CustomerSubscriptionSortProperty } from "@polar-sh/sdk/models/components/customersubscriptionsortproperty.js"; -let value: CustomerSubscriptionSortProperty = "-product"; +let value: CustomerSubscriptionSortProperty = "organization"; ``` ## Values diff --git a/docs/models/components/customerupdatemetadata.md b/docs/models/components/customerupdatemetadata.md index 03f56375..d5564670 100644 --- a/docs/models/components/customerupdatemetadata.md +++ b/docs/models/components/customerupdatemetadata.md @@ -12,7 +12,7 @@ const value: string = ""; ### `number` ```typescript -const value: number = 695735; +const value: number = 853228; ``` ### `boolean` diff --git a/docs/models/components/customerupdatetaxid.md b/docs/models/components/customerupdatetaxid.md index 76bef1ba..e693f945 100644 --- a/docs/models/components/customerupdatetaxid.md +++ b/docs/models/components/customerupdatetaxid.md @@ -12,6 +12,6 @@ const value: string = ""; ### `components.TaxIDFormat` ```typescript -const value: components.TaxIDFormat = "us_ein"; +const value: components.TaxIDFormat = "cn_tin"; ``` diff --git a/docs/models/components/customfieldcreatecheckboxmetadata.md b/docs/models/components/customfieldcreatecheckboxmetadata.md index 3692633d..fc54b8de 100644 --- a/docs/models/components/customfieldcreatecheckboxmetadata.md +++ b/docs/models/components/customfieldcreatecheckboxmetadata.md @@ -12,7 +12,7 @@ const value: string = ""; ### `number` ```typescript -const value: number = 555300; +const value: number = 888924; ``` ### `boolean` diff --git a/docs/models/components/customfieldcreatedatemetadata.md b/docs/models/components/customfieldcreatedatemetadata.md index bca527ab..6bf38289 100644 --- a/docs/models/components/customfieldcreatedatemetadata.md +++ b/docs/models/components/customfieldcreatedatemetadata.md @@ -12,7 +12,7 @@ const value: string = ""; ### `number` ```typescript -const value: number = 373718; +const value: number = 844253; ``` ### `boolean` diff --git a/docs/models/components/customfieldcreatenumbermetadata.md b/docs/models/components/customfieldcreatenumbermetadata.md index 2c7e67e2..55ce90f1 100644 --- a/docs/models/components/customfieldcreatenumbermetadata.md +++ b/docs/models/components/customfieldcreatenumbermetadata.md @@ -12,7 +12,7 @@ const value: string = ""; ### `number` ```typescript -const value: number = 572268; +const value: number = 966607; ``` ### `boolean` diff --git a/docs/models/components/customfieldcreateselectmetadata.md b/docs/models/components/customfieldcreateselectmetadata.md index 8da1290f..1849ae5e 100644 --- a/docs/models/components/customfieldcreateselectmetadata.md +++ b/docs/models/components/customfieldcreateselectmetadata.md @@ -12,7 +12,7 @@ const value: string = ""; ### `number` ```typescript -const value: number = 642566; +const value: number = 905059; ``` ### `boolean` diff --git a/docs/models/components/customfieldcreatetextmetadata.md b/docs/models/components/customfieldcreatetextmetadata.md index 06527625..e9e7596d 100644 --- a/docs/models/components/customfieldcreatetextmetadata.md +++ b/docs/models/components/customfieldcreatetextmetadata.md @@ -12,7 +12,7 @@ const value: string = ""; ### `number` ```typescript -const value: number = 194346; +const value: number = 940497; ``` ### `boolean` diff --git a/docs/models/components/customfieldsortproperty.md b/docs/models/components/customfieldsortproperty.md index e3cf4c7d..763b2c3a 100644 --- a/docs/models/components/customfieldsortproperty.md +++ b/docs/models/components/customfieldsortproperty.md @@ -5,7 +5,7 @@ ```typescript import { CustomFieldSortProperty } from "@polar-sh/sdk/models/components/customfieldsortproperty.js"; -let value: CustomFieldSortProperty = "created_at"; +let value: CustomFieldSortProperty = "-created_at"; ``` ## Values diff --git a/docs/models/components/customfieldtype.md b/docs/models/components/customfieldtype.md index d3c8dbab..c697e819 100644 --- a/docs/models/components/customfieldtype.md +++ b/docs/models/components/customfieldtype.md @@ -5,7 +5,7 @@ ```typescript import { CustomFieldType } from "@polar-sh/sdk/models/components/customfieldtype.js"; -let value: CustomFieldType = "select"; +let value: CustomFieldType = "date"; ``` ## Values diff --git a/docs/models/components/customfieldupdatecheckboxmetadata.md b/docs/models/components/customfieldupdatecheckboxmetadata.md index 25062551..9dbde6da 100644 --- a/docs/models/components/customfieldupdatecheckboxmetadata.md +++ b/docs/models/components/customfieldupdatecheckboxmetadata.md @@ -12,7 +12,7 @@ const value: string = ""; ### `number` ```typescript -const value: number = 181080; +const value: number = 42665; ``` ### `boolean` diff --git a/docs/models/components/customfieldupdatedatemetadata.md b/docs/models/components/customfieldupdatedatemetadata.md index 94ee3b21..90d6607b 100644 --- a/docs/models/components/customfieldupdatedatemetadata.md +++ b/docs/models/components/customfieldupdatedatemetadata.md @@ -12,7 +12,7 @@ const value: string = ""; ### `number` ```typescript -const value: number = 327241; +const value: number = 415732; ``` ### `boolean` diff --git a/docs/models/components/customfieldupdatenumbermetadata.md b/docs/models/components/customfieldupdatenumbermetadata.md index 6f8421d5..f7218b8c 100644 --- a/docs/models/components/customfieldupdatenumbermetadata.md +++ b/docs/models/components/customfieldupdatenumbermetadata.md @@ -12,7 +12,7 @@ const value: string = ""; ### `number` ```typescript -const value: number = 507263; +const value: number = 857243; ``` ### `boolean` diff --git a/docs/models/components/customfieldupdateselectmetadata.md b/docs/models/components/customfieldupdateselectmetadata.md index e0ab6f92..65cba74d 100644 --- a/docs/models/components/customfieldupdateselectmetadata.md +++ b/docs/models/components/customfieldupdateselectmetadata.md @@ -12,7 +12,7 @@ const value: string = ""; ### `number` ```typescript -const value: number = 606817; +const value: number = 533171; ``` ### `boolean` diff --git a/docs/models/components/customfieldupdatetextmetadata.md b/docs/models/components/customfieldupdatetextmetadata.md index 0f27c16c..7e484e48 100644 --- a/docs/models/components/customfieldupdatetextmetadata.md +++ b/docs/models/components/customfieldupdatetextmetadata.md @@ -12,7 +12,7 @@ const value: string = ""; ### `number` ```typescript -const value: number = 840077; +const value: number = 76555; ``` ### `boolean` diff --git a/docs/models/components/discount.md b/docs/models/components/discount.md index ec8fa3e3..0ea93de3 100644 --- a/docs/models/components/discount.md +++ b/docs/models/components/discount.md @@ -8,29 +8,29 @@ ```typescript const value: components.DiscountFixedOnceForeverDuration = { duration: "once", - type: "percentage", - amount: 489718, - currency: "Iceland Krona", - createdAt: new Date("2024-08-23T08:05:58.593Z"), - modifiedAt: new Date("2023-08-23T01:09:24.286Z"), + type: "fixed", + amount: 669678, + currency: "Guarani", + createdAt: new Date("2023-08-06T01:17:24.651Z"), + modifiedAt: new Date("2025-06-06T21:57:47.252Z"), id: "", metadata: { - "key": 735506, + "key": "", }, name: "", code: "", - startsAt: new Date("2024-09-09T13:37:48.525Z"), - endsAt: new Date("2025-04-15T10:58:58.826Z"), - maxRedemptions: 761965, - redemptionsCount: 753580, + startsAt: new Date("2024-09-01T01:32:00.618Z"), + endsAt: new Date("2023-12-04T05:53:21.167Z"), + maxRedemptions: 693117, + redemptionsCount: 375675, organizationId: "", products: [ { - createdAt: new Date("2023-06-08T00:44:14.730Z"), - modifiedAt: new Date("2024-12-13T14:53:56.296Z"), + createdAt: new Date("2025-04-14T22:34:09.472Z"), + modifiedAt: new Date("2024-06-13T20:02:24.167Z"), id: "", name: "", - description: "as hm paltry plagiarise under until", + description: "sadly jealously whether woot unlike eek courtroom and", isRecurring: false, isArchived: false, organizationId: "", @@ -43,31 +43,31 @@ const value: components.DiscountFixedOnceForeverDuration = { ```typescript const value: components.DiscountFixedRepeatDuration = { - duration: "repeating", - durationInMonths: 588740, + duration: "once", + durationInMonths: 533389, type: "percentage", - amount: 497351, - currency: "Bahraini Dinar", - createdAt: new Date("2025-01-23T11:55:36.245Z"), - modifiedAt: new Date("2024-02-16T14:02:02.979Z"), + amount: 228056, + currency: "Cedi", + createdAt: new Date("2023-08-02T05:08:19.832Z"), + modifiedAt: new Date("2024-04-30T14:18:15.397Z"), id: "", metadata: { - "key": "", + "key": 899227, }, name: "", code: "", - startsAt: new Date("2025-03-06T18:10:07.671Z"), - endsAt: new Date("2023-05-22T17:17:29.962Z"), - maxRedemptions: 797917, - redemptionsCount: 259565, + startsAt: new Date("2025-04-24T17:55:23.603Z"), + endsAt: new Date("2025-02-23T00:26:10.360Z"), + maxRedemptions: 572670, + redemptionsCount: 328580, organizationId: "", products: [ { - createdAt: new Date("2024-10-04T16:51:57.858Z"), - modifiedAt: new Date("2024-09-16T11:04:31.392Z"), + createdAt: new Date("2023-03-18T19:18:13.816Z"), + modifiedAt: new Date("2023-10-11T15:40:30.871Z"), id: "", name: "", - description: "after depot parade eek", + description: "distorted since circumnavigate ack", isRecurring: false, isArchived: false, organizationId: "", @@ -82,28 +82,27 @@ const value: components.DiscountFixedRepeatDuration = { const value: components.DiscountPercentageOnceForeverDuration = { duration: "forever", type: "fixed", - basisPoints: 716963, - createdAt: new Date("2023-10-19T10:24:21.578Z"), - modifiedAt: new Date("2024-03-30T05:36:59.222Z"), + basisPoints: 29572, + createdAt: new Date("2024-01-13T01:15:41.261Z"), + modifiedAt: new Date("2023-10-14T16:34:12.050Z"), id: "", metadata: { - "key": false, + "key": 300893, }, name: "", code: "", - startsAt: new Date("2024-09-13T12:44:39.147Z"), - endsAt: new Date("2025-01-16T20:25:36.336Z"), - maxRedemptions: 745497, - redemptionsCount: 446714, + startsAt: new Date("2023-06-25T01:47:44.862Z"), + endsAt: new Date("2025-10-29T03:16:27.463Z"), + maxRedemptions: 429279, + redemptionsCount: 637803, organizationId: "", products: [ { - createdAt: new Date("2024-04-17T04:00:42.753Z"), - modifiedAt: new Date("2024-05-30T08:15:17.595Z"), + createdAt: new Date("2025-10-12T17:31:29.736Z"), + modifiedAt: new Date("2024-09-19T10:21:04.413Z"), id: "", name: "", - description: - "crocodile till what now conceal gadzooks sleepily ostrich at", + description: "phew spellcheck fisherman tentacle", isRecurring: false, isArchived: false, organizationId: "", @@ -116,30 +115,30 @@ const value: components.DiscountPercentageOnceForeverDuration = { ```typescript const value: components.DiscountPercentageRepeatDuration = { - duration: "forever", - durationInMonths: 781342, + duration: "repeating", + durationInMonths: 517842, type: "fixed", - basisPoints: 503514, - createdAt: new Date("2024-03-16T19:57:05.733Z"), - modifiedAt: new Date("2023-03-21T18:29:07.239Z"), + basisPoints: 892340, + createdAt: new Date("2024-06-20T17:32:39.701Z"), + modifiedAt: new Date("2024-03-23T00:48:37.906Z"), id: "", metadata: { - "key": false, + "key": 213547, }, name: "", code: "", - startsAt: new Date("2024-03-17T16:09:00.802Z"), - endsAt: new Date("2024-02-13T11:34:19.325Z"), - maxRedemptions: 673417, - redemptionsCount: 443476, + startsAt: new Date("2024-01-04T11:10:19.973Z"), + endsAt: new Date("2025-03-17T02:44:16.095Z"), + maxRedemptions: 563474, + redemptionsCount: 762279, organizationId: "", products: [ { - createdAt: new Date("2024-02-12T19:18:02.060Z"), - modifiedAt: new Date("2024-09-08T10:27:51.086Z"), + createdAt: new Date("2025-04-15T02:43:00.812Z"), + modifiedAt: new Date("2025-04-05T22:09:08.993Z"), id: "", name: "", - description: "filthy abnormally gee convalesce from", + description: "rarely and watery less", isRecurring: false, isArchived: false, organizationId: "", diff --git a/docs/models/components/discountcreate.md b/docs/models/components/discountcreate.md index aff0c992..fe97449b 100644 --- a/docs/models/components/discountcreate.md +++ b/docs/models/components/discountcreate.md @@ -8,8 +8,8 @@ ```typescript const value: components.DiscountFixedOnceForeverDurationCreate = { duration: "repeating", - type: "percentage", - amount: 5162, + type: "fixed", + amount: 200931, name: "", }; ``` @@ -19,9 +19,9 @@ const value: components.DiscountFixedOnceForeverDurationCreate = { ```typescript const value: components.DiscountFixedRepeatDurationCreate = { duration: "forever", - durationInMonths: 29745, + durationInMonths: 531209, type: "percentage", - amount: 240039, + amount: 5736, name: "", }; ``` @@ -30,9 +30,9 @@ const value: components.DiscountFixedRepeatDurationCreate = { ```typescript const value: components.DiscountPercentageOnceForeverDurationCreate = { - duration: "once", - type: "fixed", - basisPoints: 867773, + duration: "repeating", + type: "percentage", + basisPoints: 939645, name: "", }; ``` @@ -41,10 +41,10 @@ const value: components.DiscountPercentageOnceForeverDurationCreate = { ```typescript const value: components.DiscountPercentageRepeatDurationCreate = { - duration: "once", - durationInMonths: 742122, + duration: "repeating", + durationInMonths: 366259, type: "percentage", - basisPoints: 862722, + basisPoints: 369720, name: "", }; ``` diff --git a/docs/models/components/discountfixedonceforeverduration.md b/docs/models/components/discountfixedonceforeverduration.md index f5338533..010d8219 100644 --- a/docs/models/components/discountfixedonceforeverduration.md +++ b/docs/models/components/discountfixedonceforeverduration.md @@ -8,30 +8,31 @@ Schema for a fixed amount discount that is applied once or forever. import { DiscountFixedOnceForeverDuration } from "@polar-sh/sdk/models/components/discountfixedonceforeverduration.js"; let value: DiscountFixedOnceForeverDuration = { - duration: "once", - type: "percentage", - amount: 556789, - currency: "Sri Lanka Rupee", - createdAt: new Date("2024-05-06T00:09:58.053Z"), - modifiedAt: new Date("2025-03-26T23:23:17.727Z"), + duration: "forever", + type: "fixed", + amount: 28751, + currency: "Algerian Dinar", + createdAt: new Date("2024-05-11T07:16:04.376Z"), + modifiedAt: new Date("2025-09-23T19:53:37.650Z"), id: "", metadata: { - "key": 119326, + "key": 877508, }, name: "", code: "", - startsAt: new Date("2023-03-18T03:00:38.903Z"), - endsAt: new Date("2023-10-21T14:08:24.521Z"), - maxRedemptions: 973264, - redemptionsCount: 81673, + startsAt: new Date("2024-10-13T01:17:52.314Z"), + endsAt: new Date("2024-04-30T17:04:34.452Z"), + maxRedemptions: 328582, + redemptionsCount: 970094, organizationId: "", products: [ { - createdAt: new Date("2024-08-12T15:17:55.507Z"), - modifiedAt: new Date("2025-10-06T06:16:48.745Z"), + createdAt: new Date("2024-06-08T03:51:14.602Z"), + modifiedAt: new Date("2024-01-29T17:37:29.584Z"), id: "", name: "", - description: "crystallize fine times", + description: + "ghost so plagiarise canter utilization consequently vivaciously whether crocodile till", isRecurring: false, isArchived: false, organizationId: "", diff --git a/docs/models/components/discountfixedonceforeverdurationcreate.md b/docs/models/components/discountfixedonceforeverdurationcreate.md index 3ddc048a..129073dd 100644 --- a/docs/models/components/discountfixedonceforeverdurationcreate.md +++ b/docs/models/components/discountfixedonceforeverdurationcreate.md @@ -8,9 +8,9 @@ Schema to create a fixed amount discount that is applied once or forever. import { DiscountFixedOnceForeverDurationCreate } from "@polar-sh/sdk/models/components/discountfixedonceforeverdurationcreate.js"; let value: DiscountFixedOnceForeverDurationCreate = { - duration: "forever", + duration: "once", type: "percentage", - amount: 610598, + amount: 507331, name: "", }; ``` diff --git a/docs/models/components/discountfixedonceforeverdurationcreatemetadata.md b/docs/models/components/discountfixedonceforeverdurationcreatemetadata.md index 2255fa73..d5d65acb 100644 --- a/docs/models/components/discountfixedonceforeverdurationcreatemetadata.md +++ b/docs/models/components/discountfixedonceforeverdurationcreatemetadata.md @@ -12,7 +12,7 @@ const value: string = ""; ### `number` ```typescript -const value: number = 197761; +const value: number = 921566; ``` ### `boolean` diff --git a/docs/models/components/discountfixedonceforeverdurationmetadata.md b/docs/models/components/discountfixedonceforeverdurationmetadata.md index 085a335b..1f332b41 100644 --- a/docs/models/components/discountfixedonceforeverdurationmetadata.md +++ b/docs/models/components/discountfixedonceforeverdurationmetadata.md @@ -12,7 +12,7 @@ const value: string = ""; ### `number` ```typescript -const value: number = 184149; +const value: number = 653738; ``` ### `boolean` diff --git a/docs/models/components/discountfixedrepeatduration.md b/docs/models/components/discountfixedrepeatduration.md index 2c558be2..ab9966d4 100644 --- a/docs/models/components/discountfixedrepeatduration.md +++ b/docs/models/components/discountfixedrepeatduration.md @@ -9,32 +9,31 @@ for a certain number of months. import { DiscountFixedRepeatDuration } from "@polar-sh/sdk/models/components/discountfixedrepeatduration.js"; let value: DiscountFixedRepeatDuration = { - duration: "repeating", - durationInMonths: 567481, + duration: "forever", + durationInMonths: 413557, type: "percentage", - amount: 354918, - currency: "Costa Rican Colon", - createdAt: new Date("2024-07-30T13:05:52.298Z"), - modifiedAt: new Date("2024-08-05T04:55:45.780Z"), + amount: 917050, + currency: "Jordanian Dinar", + createdAt: new Date("2024-02-29T19:48:02.801Z"), + modifiedAt: new Date("2024-01-31T22:45:45.666Z"), id: "", metadata: { - "key": false, + "key": "", }, name: "", code: "", - startsAt: new Date("2023-01-07T06:53:10.517Z"), - endsAt: new Date("2025-07-26T16:25:31.489Z"), - maxRedemptions: 608236, - redemptionsCount: 939645, + startsAt: new Date("2025-07-01T17:00:11.359Z"), + endsAt: new Date("2023-09-10T06:10:12.499Z"), + maxRedemptions: 554412, + redemptionsCount: 781342, organizationId: "", products: [ { - createdAt: new Date("2025-03-27T18:09:35.560Z"), - modifiedAt: new Date("2024-02-06T10:05:18.965Z"), + createdAt: new Date("2023-01-29T06:29:52.901Z"), + modifiedAt: new Date("2024-07-05T20:26:06.152Z"), id: "", name: "", - description: - "woot enroll captain given exaggerate first adjourn consequently", + description: "yahoo neat although an freezing yowza", isRecurring: false, isArchived: false, organizationId: "", diff --git a/docs/models/components/discountfixedrepeatdurationcreate.md b/docs/models/components/discountfixedrepeatdurationcreate.md index 93d66366..3320ab38 100644 --- a/docs/models/components/discountfixedrepeatdurationcreate.md +++ b/docs/models/components/discountfixedrepeatdurationcreate.md @@ -9,10 +9,10 @@ for a certain number of months. import { DiscountFixedRepeatDurationCreate } from "@polar-sh/sdk/models/components/discountfixedrepeatdurationcreate.js"; let value: DiscountFixedRepeatDurationCreate = { - duration: "once", - durationInMonths: 684348, + duration: "forever", + durationInMonths: 296892, type: "percentage", - amount: 896483, + amount: 753129, name: "", }; ``` diff --git a/docs/models/components/discountfixedrepeatdurationcreatemetadata.md b/docs/models/components/discountfixedrepeatdurationcreatemetadata.md index 1c8d030a..a61b7ff6 100644 --- a/docs/models/components/discountfixedrepeatdurationcreatemetadata.md +++ b/docs/models/components/discountfixedrepeatdurationcreatemetadata.md @@ -12,7 +12,7 @@ const value: string = ""; ### `number` ```typescript -const value: number = 12254; +const value: number = 190139; ``` ### `boolean` diff --git a/docs/models/components/discountfixedrepeatdurationmetadata.md b/docs/models/components/discountfixedrepeatdurationmetadata.md index 4ff38012..28b641e0 100644 --- a/docs/models/components/discountfixedrepeatdurationmetadata.md +++ b/docs/models/components/discountfixedrepeatdurationmetadata.md @@ -12,7 +12,7 @@ const value: string = ""; ### `number` ```typescript -const value: number = 966803; +const value: number = 556766; ``` ### `boolean` diff --git a/docs/models/components/discountpercentageonceforeverduration.md b/docs/models/components/discountpercentageonceforeverduration.md index 08780e0c..1e944ae0 100644 --- a/docs/models/components/discountpercentageonceforeverduration.md +++ b/docs/models/components/discountpercentageonceforeverduration.md @@ -9,28 +9,28 @@ import { DiscountPercentageOnceForeverDuration } from "@polar-sh/sdk/models/comp let value: DiscountPercentageOnceForeverDuration = { duration: "forever", - type: "percentage", - basisPoints: 575779, - createdAt: new Date("2025-07-09T12:53:28.498Z"), - modifiedAt: new Date("2023-07-12T07:15:18.514Z"), + type: "fixed", + basisPoints: 161431, + createdAt: new Date("2025-06-16T05:18:39.218Z"), + modifiedAt: new Date("2024-09-02T05:46:16.237Z"), id: "", metadata: { - "key": false, + "key": 447999, }, name: "", code: "", - startsAt: new Date("2025-03-28T11:02:14.499Z"), - endsAt: new Date("2024-01-13T00:35:57.498Z"), - maxRedemptions: 114297, - redemptionsCount: 742203, + startsAt: new Date("2025-03-26T23:23:17.727Z"), + endsAt: new Date("2024-08-26T03:33:56.447Z"), + maxRedemptions: 119326, + redemptionsCount: 69457, organizationId: "", products: [ { - createdAt: new Date("2024-07-25T12:45:38.576Z"), - modifiedAt: new Date("2024-05-29T19:48:45.859Z"), + createdAt: new Date("2023-10-21T14:08:24.521Z"), + modifiedAt: new Date("2025-12-02T16:44:09.862Z"), id: "", name: "", - description: "brook machine so loudly fully proper after nor vacantly", + description: "whoever obediently tired", isRecurring: false, isArchived: false, organizationId: "", diff --git a/docs/models/components/discountpercentageonceforeverdurationcreate.md b/docs/models/components/discountpercentageonceforeverdurationcreate.md index 2e91b81d..9b8e54ba 100644 --- a/docs/models/components/discountpercentageonceforeverdurationcreate.md +++ b/docs/models/components/discountpercentageonceforeverdurationcreate.md @@ -8,9 +8,9 @@ Schema to create a percentage discount that is applied once or forever. import { DiscountPercentageOnceForeverDurationCreate } from "@polar-sh/sdk/models/components/discountpercentageonceforeverdurationcreate.js"; let value: DiscountPercentageOnceForeverDurationCreate = { - duration: "repeating", + duration: "forever", type: "fixed", - basisPoints: 371996, + basisPoints: 294050, name: "", }; ``` diff --git a/docs/models/components/discountpercentageonceforeverdurationcreatemetadata.md b/docs/models/components/discountpercentageonceforeverdurationcreatemetadata.md index 3828cfb2..1fa455cb 100644 --- a/docs/models/components/discountpercentageonceforeverdurationcreatemetadata.md +++ b/docs/models/components/discountpercentageonceforeverdurationcreatemetadata.md @@ -12,7 +12,7 @@ const value: string = ""; ### `number` ```typescript -const value: number = 925518; +const value: number = 771396; ``` ### `boolean` diff --git a/docs/models/components/discountpercentageonceforeverdurationmetadata.md b/docs/models/components/discountpercentageonceforeverdurationmetadata.md index 1638048d..ff375da1 100644 --- a/docs/models/components/discountpercentageonceforeverdurationmetadata.md +++ b/docs/models/components/discountpercentageonceforeverdurationmetadata.md @@ -12,7 +12,7 @@ const value: string = ""; ### `number` ```typescript -const value: number = 1789; +const value: number = 802085; ``` ### `boolean` diff --git a/docs/models/components/discountpercentagerepeatduration.md b/docs/models/components/discountpercentagerepeatduration.md index 33eb1195..a4b742d5 100644 --- a/docs/models/components/discountpercentagerepeatduration.md +++ b/docs/models/components/discountpercentagerepeatduration.md @@ -10,29 +10,30 @@ import { DiscountPercentageRepeatDuration } from "@polar-sh/sdk/models/component let value: DiscountPercentageRepeatDuration = { duration: "forever", - durationInMonths: 953563, - type: "fixed", - basisPoints: 796478, - createdAt: new Date("2024-09-05T22:20:30.347Z"), - modifiedAt: new Date("2025-01-26T06:13:38.114Z"), + durationInMonths: 842114, + type: "percentage", + basisPoints: 76002, + createdAt: new Date("2025-05-29T15:48:13.106Z"), + modifiedAt: new Date("2025-07-15T18:24:29.781Z"), id: "", metadata: { - "key": 383859, + "key": "", }, name: "", code: "", - startsAt: new Date("2023-06-07T21:21:33.285Z"), - endsAt: new Date("2025-12-18T07:12:19.050Z"), - maxRedemptions: 727201, - redemptionsCount: 455069, + startsAt: new Date("2025-04-24T09:01:08.745Z"), + endsAt: new Date("2025-12-11T00:30:42.283Z"), + maxRedemptions: 790733, + redemptionsCount: 397879, organizationId: "", products: [ { - createdAt: new Date("2024-06-24T05:42:29.206Z"), - modifiedAt: new Date("2023-01-01T06:40:37.483Z"), + createdAt: new Date("2025-02-25T15:09:11.481Z"), + modifiedAt: new Date("2023-11-17T05:21:02.494Z"), id: "", name: "", - description: "foretell upbeat gift", + description: + "planula mozzarella though irresponsible hubris ack attribute underneath", isRecurring: false, isArchived: false, organizationId: "", diff --git a/docs/models/components/discountpercentagerepeatdurationcreate.md b/docs/models/components/discountpercentagerepeatdurationcreate.md index 91133e1e..6cbe4da4 100644 --- a/docs/models/components/discountpercentagerepeatdurationcreate.md +++ b/docs/models/components/discountpercentagerepeatdurationcreate.md @@ -10,9 +10,9 @@ import { DiscountPercentageRepeatDurationCreate } from "@polar-sh/sdk/models/com let value: DiscountPercentageRepeatDurationCreate = { duration: "forever", - durationInMonths: 333999, + durationInMonths: 794873, type: "percentage", - basisPoints: 699519, + basisPoints: 174370, name: "", }; ``` diff --git a/docs/models/components/discountpercentagerepeatdurationcreatemetadata.md b/docs/models/components/discountpercentagerepeatdurationcreatemetadata.md index 72417d82..2b6b6bf7 100644 --- a/docs/models/components/discountpercentagerepeatdurationcreatemetadata.md +++ b/docs/models/components/discountpercentagerepeatdurationcreatemetadata.md @@ -12,7 +12,7 @@ const value: string = ""; ### `number` ```typescript -const value: number = 964686; +const value: number = 534734; ``` ### `boolean` diff --git a/docs/models/components/discountpercentagerepeatdurationmetadata.md b/docs/models/components/discountpercentagerepeatdurationmetadata.md index 3815bad6..714b3301 100644 --- a/docs/models/components/discountpercentagerepeatdurationmetadata.md +++ b/docs/models/components/discountpercentagerepeatdurationmetadata.md @@ -12,7 +12,7 @@ const value: string = ""; ### `number` ```typescript -const value: number = 483254; +const value: number = 660797; ``` ### `boolean` diff --git a/docs/models/components/discountproduct.md b/docs/models/components/discountproduct.md index 6e7a86f0..4d7d0e8d 100644 --- a/docs/models/components/discountproduct.md +++ b/docs/models/components/discountproduct.md @@ -8,12 +8,11 @@ A product that a discount can be applied to. import { DiscountProduct } from "@polar-sh/sdk/models/components/discountproduct.js"; let value: DiscountProduct = { - createdAt: new Date("2024-10-02T09:58:03.592Z"), - modifiedAt: new Date("2023-03-25T07:10:04.801Z"), + createdAt: new Date("2024-05-15T04:33:28.578Z"), + modifiedAt: new Date("2023-05-20T06:56:19.867Z"), id: "", name: "", - description: - "separately except reproach once intensely miserably thoroughly cram um", + description: "beyond incidentally abaft all ouch", isRecurring: false, isArchived: false, organizationId: "", diff --git a/docs/models/components/discountsortproperty.md b/docs/models/components/discountsortproperty.md index aeac5368..34599d02 100644 --- a/docs/models/components/discountsortproperty.md +++ b/docs/models/components/discountsortproperty.md @@ -5,7 +5,7 @@ ```typescript import { DiscountSortProperty } from "@polar-sh/sdk/models/components/discountsortproperty.js"; -let value: DiscountSortProperty = "-name"; +let value: DiscountSortProperty = "code"; ``` ## Values diff --git a/docs/models/components/discountupdatemetadata.md b/docs/models/components/discountupdatemetadata.md index 365ecf37..ce392e7e 100644 --- a/docs/models/components/discountupdatemetadata.md +++ b/docs/models/components/discountupdatemetadata.md @@ -12,7 +12,7 @@ const value: string = ""; ### `number` ```typescript -const value: number = 696443; +const value: number = 743991; ``` ### `boolean` diff --git a/docs/models/components/downloadablefilecreate.md b/docs/models/components/downloadablefilecreate.md index 6952c344..66b6b977 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/download let value: DownloadableFileCreate = { name: "", mimeType: "", - size: 398200, + size: 676871, upload: { parts: [ { - number: 476388, - chunkStart: 330300, - chunkEnd: 515670, + number: 713755, + chunkStart: 969927, + chunkEnd: 67661, }, ], }, diff --git a/docs/models/components/downloadablefileread.md b/docs/models/components/downloadablefileread.md index 7a6c5348..8833823b 100644 --- a/docs/models/components/downloadablefileread.md +++ b/docs/models/components/downloadablefileread.md @@ -11,17 +11,17 @@ let value: DownloadableFileRead = { id: "", organizationId: "", name: "", - path: "/usr", + path: "/etc/defaults", mimeType: "", - size: 961027, + size: 841413, storageVersion: "", checksumEtag: "", checksumSha256Base64: "", checksumSha256Hex: "", - lastModifiedAt: new Date("2023-09-08T22:35:25.287Z"), + lastModifiedAt: new Date("2024-06-20T19:25:27.760Z"), version: "", isUploaded: false, - createdAt: new Date("2023-01-22T11:37:01.698Z"), + createdAt: new Date("2023-02-26T08:18:41.042Z"), sizeReadable: "", }; ``` diff --git a/docs/models/components/downloadableread.md b/docs/models/components/downloadableread.md index 07e57b99..22d30556 100644 --- a/docs/models/components/downloadableread.md +++ b/docs/models/components/downloadableread.md @@ -12,17 +12,17 @@ let value: DownloadableRead = { id: "", organizationId: "", name: "", - path: "/root", + path: "/media", mimeType: "", - size: 922676, + size: 318089, storageVersion: "", checksumEtag: "", checksumSha256Base64: "", checksumSha256Hex: "", - lastModifiedAt: new Date("2025-01-18T05:12:42.510Z"), + lastModifiedAt: new Date("2024-02-10T08:22:56.942Z"), download: { - url: "https://faint-programme.com/", - expiresAt: new Date("2023-10-14T09:08:59.998Z"), + url: "https://reflecting-vol.org", + expiresAt: new Date("2024-11-01T14:40:25.537Z"), }, version: "", isUploaded: false, diff --git a/docs/models/components/event.md b/docs/models/components/event.md index cfd62245..0920b31e 100644 --- a/docs/models/components/event.md +++ b/docs/models/components/event.md @@ -7,12 +7,12 @@ import { Event } from "@polar-sh/sdk/models/components/event.js"; let value: Event = { metadata: { - "key": "", + "key": 429753, }, id: "", - timestamp: new Date("2024-07-18T18:53:24.110Z"), + timestamp: new Date("2024-05-10T19:30:11.410Z"), name: "", - source: "user", + source: "system", organizationId: "", customerId: "", externalCustomerId: "", diff --git a/docs/models/components/eventcreatecustomermetadata.md b/docs/models/components/eventcreatecustomermetadata.md index b64a7aa8..62ab314d 100644 --- a/docs/models/components/eventcreatecustomermetadata.md +++ b/docs/models/components/eventcreatecustomermetadata.md @@ -12,7 +12,7 @@ const value: string = ""; ### `number` ```typescript -const value: number = 859870; +const value: number = 160225; ``` ### `boolean` diff --git a/docs/models/components/eventcreateexternalcustomermetadata.md b/docs/models/components/eventcreateexternalcustomermetadata.md index 530d6849..e5bae416 100644 --- a/docs/models/components/eventcreateexternalcustomermetadata.md +++ b/docs/models/components/eventcreateexternalcustomermetadata.md @@ -12,7 +12,7 @@ const value: string = ""; ### `number` ```typescript -const value: number = 669386; +const value: number = 923446; ``` ### `boolean` diff --git a/docs/models/components/eventmetadata.md b/docs/models/components/eventmetadata.md index 4fe2aca3..e70d7ac5 100644 --- a/docs/models/components/eventmetadata.md +++ b/docs/models/components/eventmetadata.md @@ -12,7 +12,7 @@ const value: string = ""; ### `number` ```typescript -const value: number = 76182; +const value: number = 406863; ``` ### `boolean` diff --git a/docs/models/components/eventsingestresponse.md b/docs/models/components/eventsingestresponse.md index 29d97aba..b194525f 100644 --- a/docs/models/components/eventsingestresponse.md +++ b/docs/models/components/eventsingestresponse.md @@ -6,7 +6,7 @@ import { EventsIngestResponse } from "@polar-sh/sdk/models/components/eventsingestresponse.js"; let value: EventsIngestResponse = { - inserted: 284122, + inserted: 667082, }; ``` diff --git a/docs/models/components/eventsortproperty.md b/docs/models/components/eventsortproperty.md index 1a8d0aec..d4437491 100644 --- a/docs/models/components/eventsortproperty.md +++ b/docs/models/components/eventsortproperty.md @@ -5,7 +5,7 @@ ```typescript import { EventSortProperty } from "@polar-sh/sdk/models/components/eventsortproperty.js"; -let value: EventSortProperty = "timestamp"; +let value: EventSortProperty = "-timestamp"; ``` ## Values diff --git a/docs/models/components/filecreate.md b/docs/models/components/filecreate.md index e7f504cf..3eb7f7c2 100644 --- a/docs/models/components/filecreate.md +++ b/docs/models/components/filecreate.md @@ -9,13 +9,13 @@ const value: components.DownloadableFileCreate = { name: "", mimeType: "", - size: 842652, + size: 386893, upload: { parts: [ { - number: 770313, - chunkStart: 246585, - chunkEnd: 586310, + number: 499013, + chunkStart: 895114, + chunkEnd: 429014, }, ], }, @@ -28,13 +28,13 @@ const value: components.DownloadableFileCreate = { const value: components.OrganizationAvatarFileCreate = { name: "", mimeType: "", - size: 490431, + size: 670168, upload: { parts: [ { - number: 816554, - chunkStart: 353480, - chunkEnd: 36596, + number: 424591, + chunkStart: 708007, + chunkEnd: 613225, }, ], }, @@ -47,13 +47,13 @@ const value: components.OrganizationAvatarFileCreate = { const value: components.ProductMediaFileCreate = { name: "", mimeType: "", - size: 887276, + size: 441603, upload: { parts: [ { - number: 670281, - chunkStart: 181858, - chunkEnd: 205704, + number: 549022, + chunkStart: 598149, + chunkEnd: 879059, }, ], }, diff --git a/docs/models/components/filedownload.md b/docs/models/components/filedownload.md index 4832ad75..9e34bdd4 100644 --- a/docs/models/components/filedownload.md +++ b/docs/models/components/filedownload.md @@ -9,21 +9,21 @@ let value: FileDownload = { id: "", organizationId: "", name: "", - path: "/usr/bin", + path: "/root", mimeType: "", - size: 51623, + size: 403640, storageVersion: "", checksumEtag: "", checksumSha256Base64: "", checksumSha256Hex: "", - lastModifiedAt: new Date("2024-01-14T02:23:02.233Z"), + lastModifiedAt: new Date("2024-08-20T01:51:34.538Z"), download: { - url: "https://blind-impostor.name/", - expiresAt: new Date("2025-11-30T00:24:40.391Z"), + url: "https://youthful-babushka.biz/", + expiresAt: new Date("2023-03-21T01:09:01.645Z"), }, version: "", isUploaded: false, - service: "organization_avatar", + service: "product_media", sizeReadable: "", }; ``` diff --git a/docs/models/components/fileread.md b/docs/models/components/fileread.md index 8c24212d..44f9b712 100644 --- a/docs/models/components/fileread.md +++ b/docs/models/components/fileread.md @@ -10,17 +10,17 @@ const value: components.DownloadableFileRead = { id: "", organizationId: "", name: "", - path: "/usr/share", + path: "/lib", mimeType: "", - size: 642670, + size: 519896, storageVersion: "", checksumEtag: "", checksumSha256Base64: "", checksumSha256Hex: "", - lastModifiedAt: new Date("2024-05-26T10:58:25.218Z"), + lastModifiedAt: new Date("2025-03-17T16:35:25.913Z"), version: "", isUploaded: false, - createdAt: new Date("2025-05-31T04:15:24.134Z"), + createdAt: new Date("2024-06-06T10:16:02.095Z"), sizeReadable: "", }; ``` @@ -32,19 +32,19 @@ const value: components.OrganizationAvatarFileRead = { id: "", organizationId: "", name: "", - path: "/home/user", + path: "/lost+found", mimeType: "", - size: 292291, + size: 822093, storageVersion: "", checksumEtag: "", checksumSha256Base64: "", checksumSha256Hex: "", - lastModifiedAt: new Date("2023-07-09T06:31:28.422Z"), + lastModifiedAt: new Date("2025-06-27T17:02:16.887Z"), version: "", isUploaded: false, - createdAt: new Date("2025-12-29T18:54:48.908Z"), + createdAt: new Date("2024-08-26T12:14:31.680Z"), sizeReadable: "", - publicUrl: "https://rural-individual.com/", + publicUrl: "https://metallic-scarification.org", }; ``` @@ -55,19 +55,19 @@ const value: components.ProductMediaFileRead = { id: "", organizationId: "", name: "", - path: "/dev", + path: "/Applications", mimeType: "", - size: 929429, + size: 973627, storageVersion: "", checksumEtag: "", checksumSha256Base64: "", checksumSha256Hex: "", - lastModifiedAt: new Date("2025-03-27T00:27:03.075Z"), + lastModifiedAt: new Date("2024-01-13T03:45:06.715Z"), version: "", isUploaded: false, - createdAt: new Date("2024-08-21T10:14:28.976Z"), + createdAt: new Date("2024-03-13T10:38:44.143Z"), sizeReadable: "", - publicUrl: "https://aching-sailor.biz/", + publicUrl: "https://tepid-recommendation.biz/", }; ``` diff --git a/docs/models/components/fileservicetypes.md b/docs/models/components/fileservicetypes.md index 86294c86..5c776d22 100644 --- a/docs/models/components/fileservicetypes.md +++ b/docs/models/components/fileservicetypes.md @@ -5,7 +5,7 @@ ```typescript import { FileServiceTypes } from "@polar-sh/sdk/models/components/fileservicetypes.js"; -let value: FileServiceTypes = "organization_avatar"; +let value: FileServiceTypes = "product_media"; ``` ## Values diff --git a/docs/models/components/fileupload.md b/docs/models/components/fileupload.md index cd6b61dc..3e9f2649 100644 --- a/docs/models/components/fileupload.md +++ b/docs/models/components/fileupload.md @@ -9,29 +9,29 @@ let value: FileUpload = { id: "", organizationId: "", name: "", - path: "/selinux", + path: "/etc/ppp", mimeType: "", - size: 157751, + size: 197770, storageVersion: "", checksumEtag: "", checksumSha256Base64: "", checksumSha256Hex: "", - lastModifiedAt: new Date("2023-03-20T13:14:56.817Z"), + lastModifiedAt: new Date("2023-09-26T21:26:47.589Z"), upload: { id: "", - path: "/sys", + path: "/usr/lib", parts: [ { - number: 78052, - chunkStart: 471895, - chunkEnd: 614513, - url: "https://utilized-nougat.name", - expiresAt: new Date("2024-12-13T19:53:22.769Z"), + number: 943491, + chunkStart: 127155, + chunkEnd: 547940, + url: "https://awful-antelope.info/", + expiresAt: new Date("2024-04-11T03:41:23.498Z"), }, ], }, version: "", - service: "organization_avatar", + service: "product_media", sizeReadable: "", }; ``` diff --git a/docs/models/components/fileuploadcompleted.md b/docs/models/components/fileuploadcompleted.md index b69df37a..f4be3b23 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/fileuploadc let value: FileUploadCompleted = { id: "", - path: "/usr/obj", + path: "/opt/sbin", parts: [ { - number: 206812, + number: 125830, checksumEtag: "", checksumSha256Base64: "", }, diff --git a/docs/models/components/filter.md b/docs/models/components/filter.md index d95404fd..dd09e2ca 100644 --- a/docs/models/components/filter.md +++ b/docs/models/components/filter.md @@ -6,7 +6,7 @@ import { Filter } from "@polar-sh/sdk/models/components/filter.js"; let value: Filter = { - conjunction: "or", + conjunction: "and", clauses: [], }; ``` diff --git a/docs/models/components/filterclause.md b/docs/models/components/filterclause.md index ecba01c2..f345ff16 100644 --- a/docs/models/components/filterclause.md +++ b/docs/models/components/filterclause.md @@ -7,8 +7,8 @@ import { FilterClause } from "@polar-sh/sdk/models/components/filterclause.js"; let value: FilterClause = { property: "", - operator: "lt", - value: false, + operator: "gte", + value: "", }; ``` diff --git a/docs/models/components/filteroperator.md b/docs/models/components/filteroperator.md index 87f76f25..f0ebe4e5 100644 --- a/docs/models/components/filteroperator.md +++ b/docs/models/components/filteroperator.md @@ -5,7 +5,7 @@ ```typescript import { FilterOperator } from "@polar-sh/sdk/models/components/filteroperator.js"; -let value: FilterOperator = "gte"; +let value: FilterOperator = "lt"; ``` ## Values diff --git a/docs/models/components/func.md b/docs/models/components/func.md index 6d3637ad..e97de1b4 100644 --- a/docs/models/components/func.md +++ b/docs/models/components/func.md @@ -5,7 +5,7 @@ ```typescript import { Func } from "@polar-sh/sdk/models/components/propertyaggregation.js"; -let value: Func = "avg"; +let value: Func = "sum"; ``` ## Values diff --git a/docs/models/components/licensekeyactivationbase.md b/docs/models/components/licensekeyactivationbase.md index 79436a2f..dd9069b6 100644 --- a/docs/models/components/licensekeyactivationbase.md +++ b/docs/models/components/licensekeyactivationbase.md @@ -10,8 +10,8 @@ let value: LicenseKeyActivationBase = { licenseKeyId: "", label: "", meta: {}, - createdAt: new Date("2024-12-02T14:44:34.345Z"), - modifiedAt: new Date("2024-08-12T03:13:38.266Z"), + createdAt: new Date("2024-03-03T16:12:29.834Z"), + modifiedAt: new Date("2024-08-21T23:08:59.755Z"), }; ``` diff --git a/docs/models/components/licensekeyactivationread.md b/docs/models/components/licensekeyactivationread.md index d4c357b9..bd41e1cd 100644 --- a/docs/models/components/licensekeyactivationread.md +++ b/docs/models/components/licensekeyactivationread.md @@ -10,8 +10,8 @@ let value: LicenseKeyActivationRead = { licenseKeyId: "", label: "", meta: {}, - createdAt: new Date("2024-07-22T06:22:31.196Z"), - modifiedAt: new Date("2023-11-25T10:54:53.363Z"), + createdAt: new Date("2025-03-04T13:39:39.013Z"), + modifiedAt: new Date("2024-06-17T10:36:28.925Z"), licenseKey: { id: "", organizationId: "", @@ -19,38 +19,38 @@ let value: LicenseKeyActivationRead = { customerId: "", user: { id: "", - email: "Gregorio.Bednar60@hotmail.com", + email: "Mathias.Moore79@hotmail.com", publicName: "", }, customer: { - createdAt: new Date("2025-03-24T10:57:17.586Z"), - modifiedAt: new Date("2023-04-30T03:55:25.651Z"), + createdAt: new Date("2024-10-03T18:42:54.796Z"), + modifiedAt: new Date("2023-01-26T17:55:04.137Z"), id: "", metadata: { - "key": 536704, + "key": false, }, - email: "Billie.Lesch57@hotmail.com", + email: "Dulce_Heaney97@yahoo.com", emailVerified: false, name: "", billingAddress: { - country: "Lao People's Democratic Republic", + country: "Costa Rica", }, taxId: [ "", ], organizationId: "", - avatarUrl: "https://likable-intervention.com/", + avatarUrl: "https://boiling-taxicab.biz", }, benefitId: "", key: "", displayKey: "", status: "disabled", - limitActivations: 913700, - usage: 613443, - limitUsage: 627191, - validations: 748403, - lastValidatedAt: new Date("2025-10-22T22:24:04.640Z"), - expiresAt: new Date("2025-12-12T19:04:30.975Z"), + limitActivations: 760552, + usage: 893084, + limitUsage: 207539, + validations: 723268, + lastValidatedAt: new Date("2024-01-22T23:18:37.610Z"), + expiresAt: new Date("2024-03-01T13:30:13.678Z"), }, }; ``` diff --git a/docs/models/components/licensekeycustomer.md b/docs/models/components/licensekeycustomer.md index cfe7a953..5f7354e4 100644 --- a/docs/models/components/licensekeycustomer.md +++ b/docs/models/components/licensekeycustomer.md @@ -6,23 +6,23 @@ import { LicenseKeyCustomer } from "@polar-sh/sdk/models/components/licensekeycustomer.js"; let value: LicenseKeyCustomer = { - createdAt: new Date("2024-11-05T16:01:51.588Z"), - modifiedAt: new Date("2025-04-14T18:31:45.123Z"), + createdAt: new Date("2025-04-21T01:22:42.197Z"), + modifiedAt: new Date("2025-06-08T02:20:37.651Z"), id: "", metadata: { "key": false, }, - email: "Tamia.Schoen50@gmail.com", + email: "Sharon34@gmail.com", emailVerified: false, name: "", billingAddress: { - country: "Suriname", + country: "Papua New Guinea", }, taxId: [ - "", + "za_vat", ], organizationId: "", - avatarUrl: "https://inferior-asset.info", + avatarUrl: "https://coordinated-roadway.name", }; ``` diff --git a/docs/models/components/licensekeycustomermetadata.md b/docs/models/components/licensekeycustomermetadata.md index 6394f3f4..41761e75 100644 --- a/docs/models/components/licensekeycustomermetadata.md +++ b/docs/models/components/licensekeycustomermetadata.md @@ -12,7 +12,7 @@ const value: string = ""; ### `number` ```typescript -const value: number = 982463; +const value: number = 201820; ``` ### `boolean` diff --git a/docs/models/components/licensekeycustomertaxid.md b/docs/models/components/licensekeycustomertaxid.md index e650668e..6604a38f 100644 --- a/docs/models/components/licensekeycustomertaxid.md +++ b/docs/models/components/licensekeycustomertaxid.md @@ -12,6 +12,6 @@ const value: string = ""; ### `components.TaxIDFormat` ```typescript -const value: components.TaxIDFormat = "ge_vat"; +const value: components.TaxIDFormat = "ru_kpp"; ``` diff --git a/docs/models/components/licensekeyread.md b/docs/models/components/licensekeyread.md index e78c29ac..b7fbfb13 100644 --- a/docs/models/components/licensekeyread.md +++ b/docs/models/components/licensekeyread.md @@ -12,38 +12,38 @@ let value: LicenseKeyRead = { customerId: "", user: { id: "", - email: "Amari.Pacocha@yahoo.com", + email: "Elyssa43@gmail.com", publicName: "", }, customer: { - createdAt: new Date("2025-10-11T08:44:45.015Z"), - modifiedAt: new Date("2025-06-23T11:20:33.120Z"), + createdAt: new Date("2025-06-30T07:08:54.951Z"), + modifiedAt: new Date("2023-05-27T20:18:55.326Z"), id: "", metadata: { "key": false, }, - email: "Monserrate6@hotmail.com", + email: "Enoch88@yahoo.com", emailVerified: false, name: "", billingAddress: { - country: "Mayotte", + country: "Bouvet Island", }, taxId: [ "", ], organizationId: "", - avatarUrl: "https://interesting-contractor.net/", + avatarUrl: "https://primary-t-shirt.net/", }, benefitId: "", key: "", displayKey: "", - status: "granted", - limitActivations: 533036, - usage: 43716, - limitUsage: 714830, - validations: 953020, - lastValidatedAt: new Date("2023-02-17T11:30:13.324Z"), - expiresAt: new Date("2023-04-23T23:31:32.791Z"), + status: "revoked", + limitActivations: 759924, + usage: 996613, + limitUsage: 1122, + validations: 828056, + lastValidatedAt: new Date("2023-12-24T14:14:54.996Z"), + expiresAt: new Date("2025-03-29T18:50:11.175Z"), }; ``` diff --git a/docs/models/components/licensekeystatus.md b/docs/models/components/licensekeystatus.md index 63662a54..9d27ec8e 100644 --- a/docs/models/components/licensekeystatus.md +++ b/docs/models/components/licensekeystatus.md @@ -5,7 +5,7 @@ ```typescript import { LicenseKeyStatus } from "@polar-sh/sdk/models/components/licensekeystatus.js"; -let value: LicenseKeyStatus = "revoked"; +let value: LicenseKeyStatus = "granted"; ``` ## Values diff --git a/docs/models/components/licensekeyuser.md b/docs/models/components/licensekeyuser.md index 046fd981..d9765c08 100644 --- a/docs/models/components/licensekeyuser.md +++ b/docs/models/components/licensekeyuser.md @@ -7,7 +7,7 @@ import { LicenseKeyUser } from "@polar-sh/sdk/models/components/licensekeyuser.j let value: LicenseKeyUser = { id: "", - email: "Junior_Kilback66@hotmail.com", + email: "Ettie80@yahoo.com", publicName: "", }; ``` diff --git a/docs/models/components/licensekeywithactivations.md b/docs/models/components/licensekeywithactivations.md index 70715fba..cdf15aa6 100644 --- a/docs/models/components/licensekeywithactivations.md +++ b/docs/models/components/licensekeywithactivations.md @@ -12,46 +12,46 @@ let value: LicenseKeyWithActivations = { customerId: "", user: { id: "", - email: "Cloyd.Ritchie-Bode@yahoo.com", + email: "Mckenna10@hotmail.com", publicName: "", }, customer: { - createdAt: new Date("2025-06-20T15:53:40.277Z"), - modifiedAt: new Date("2023-03-15T03:56:16.597Z"), + createdAt: new Date("2025-09-15T22:32:56.647Z"), + modifiedAt: new Date("2024-11-19T03:20:24.143Z"), id: "", metadata: { - "key": "", + "key": 237924, }, - email: "Lindsey_Senger-Douglas@gmail.com", + email: "Rachel.Ankunding-Kris@gmail.com", emailVerified: false, name: "", billingAddress: { - country: "Tunisia", + country: "Iraq", }, taxId: [ - "ca_bn", + "", ], organizationId: "", - avatarUrl: "https://utilized-birdbath.com/", + avatarUrl: "https://valuable-sailor.info", }, benefitId: "", key: "", displayKey: "", - status: "revoked", - limitActivations: 224337, - usage: 826099, - limitUsage: 416006, - validations: 482400, - lastValidatedAt: new Date("2023-05-21T23:41:53.158Z"), - expiresAt: new Date("2023-01-31T20:48:56.127Z"), + status: "disabled", + limitActivations: 709769, + usage: 340254, + limitUsage: 39686, + validations: 622315, + lastValidatedAt: new Date("2025-11-05T02:23:41.409Z"), + expiresAt: new Date("2025-03-30T13:47:48.742Z"), activations: [ { id: "", licenseKeyId: "", label: "", meta: {}, - createdAt: new Date("2025-04-12T02:56:59.471Z"), - modifiedAt: new Date("2023-03-23T02:13:30.603Z"), + createdAt: new Date("2023-09-07T20:58:48.974Z"), + modifiedAt: new Date("2024-09-01T04:02:03.009Z"), }, ], }; diff --git a/docs/models/components/listresourcecheckout.md b/docs/models/components/listresourcecheckout.md index 5dae3805..cb7065f6 100644 --- a/docs/models/components/listresourcecheckout.md +++ b/docs/models/components/listresourcecheckout.md @@ -8,21 +8,21 @@ import { ListResourceCheckout } from "@polar-sh/sdk/models/components/listresour let value: ListResourceCheckout = { items: [ { - createdAt: new Date("2024-10-28T11:31:56.911Z"), - modifiedAt: new Date("2023-09-16T16:37:59.200Z"), + createdAt: new Date("2025-01-14T23:41:16.557Z"), + modifiedAt: new Date("2024-12-24T17:17:57.453Z"), id: "", paymentProcessor: "stripe", - status: "succeeded", + status: "expired", clientSecret: "", - url: "https://unaware-hydrolyze.info/", - expiresAt: new Date("2023-08-12T17:54:50.405Z"), - successUrl: "https://worthy-mountain.name", + url: "https://frizzy-necklace.net", + expiresAt: new Date("2025-02-04T18:30:24.992Z"), + successUrl: "https://monstrous-sailor.biz/", embedOrigin: "", - amount: 288489, - taxAmount: 325851, - currency: "Costa Rican Colon", - subtotalAmount: 514602, - totalAmount: 147974, + amount: 221298, + taxAmount: 484987, + currency: "Lebanese Pound", + subtotalAmount: 23472, + totalAmount: 581946, productId: "", productPriceId: "", discountId: "", @@ -37,41 +37,43 @@ let value: ListResourceCheckout = { customerEmail: "", customerIpAddress: "", customerBillingAddress: { - country: "Nauru", + country: "Indonesia", }, customerTaxId: "", paymentProcessorMetadata: { "key": "", }, metadata: { - "key": 624312, + "key": 914824, }, product: { - createdAt: new Date("2023-03-19T12:14:28.421Z"), - modifiedAt: new Date("2025-08-26T22:14:14.011Z"), + createdAt: new Date("2024-01-01T02:20:17.002Z"), + modifiedAt: new Date("2023-04-29T04:30:50.569Z"), id: "", name: "", - description: "out scarification optimal fowl boggle bowed", + description: "gracefully geez bustling sweet", isRecurring: false, isArchived: false, organizationId: "", prices: [ { - createdAt: new Date("2023-01-03T12:45:05.812Z"), - modifiedAt: new Date("2024-05-17T23:11:42.440Z"), + createdAt: new Date("2023-07-22T18:34:54.272Z"), + modifiedAt: new Date("2024-08-18T23:28:00.562Z"), id: "", isArchived: false, productId: "", - recurringInterval: "month", + priceCurrency: "", + priceAmount: 254226, }, ], benefits: [ { - createdAt: new Date("2025-06-21T19:10:18.665Z"), - modifiedAt: new Date("2023-11-15T02:07:42.804Z"), + createdAt: new Date("2025-05-10T08:15:00.850Z"), + modifiedAt: new Date("2023-02-18T22:59:57.571Z"), id: "", - type: "downloadables", - description: "after abaft whereas", + type: "discord", + description: + "off splurge emulsify gee recompense eggplant midst crumble quirkily", selectable: false, deletable: false, organizationId: "", @@ -82,35 +84,33 @@ let value: ListResourceCheckout = { id: "", organizationId: "", name: "", - path: "/etc/ppp", + path: "/boot", mimeType: "", - size: 112517, + size: 817418, storageVersion: "", checksumEtag: "", checksumSha256Base64: "", checksumSha256Hex: "", - lastModifiedAt: new Date("2024-09-19T10:31:49.778Z"), + lastModifiedAt: new Date("2024-02-17T19:07:11.758Z"), version: "", isUploaded: false, - createdAt: new Date("2025-02-05T21:05:30.503Z"), + createdAt: new Date("2024-03-13T05:34:44.227Z"), sizeReadable: "", - publicUrl: "https://amazing-rubric.net", + publicUrl: "https://grounded-eternity.biz", }, ], }, productPrice: { - createdAt: new Date("2023-03-19T00:42:58.835Z"), - modifiedAt: new Date("2025-12-29T00:34:10.069Z"), + createdAt: new Date("2024-10-28T11:31:56.911Z"), + modifiedAt: new Date("2023-09-16T16:37:59.200Z"), id: "", isArchived: false, productId: "", - priceCurrency: "", - priceAmount: 477797, }, discount: { duration: "once", type: "percentage", - basisPoints: 504097, + basisPoints: 446326, id: "", name: "", code: "", @@ -120,8 +120,8 @@ let value: ListResourceCheckout = { { customFieldId: "", customField: { - createdAt: new Date("2024-01-21T08:41:14.953Z"), - modifiedAt: new Date("2025-09-04T01:03:05.967Z"), + createdAt: new Date("2023-08-12T17:54:50.405Z"), + modifiedAt: new Date("2024-11-05T14:24:16.309Z"), id: "", metadata: { "key": false, @@ -131,18 +131,18 @@ let value: ListResourceCheckout = { organizationId: "", properties: {}, }, - order: 731671, + order: 589101, required: false, }, ], customerMetadata: { - "key": false, + "key": 288489, }, }, ], pagination: { - totalCount: 310285, - maxPage: 789945, + totalCount: 325851, + maxPage: 196355, }, }; ``` diff --git a/docs/models/components/listresourcecheckoutlink.md b/docs/models/components/listresourcecheckoutlink.md index 4eab6cda..531194a9 100644 --- a/docs/models/components/listresourcecheckoutlink.md +++ b/docs/models/components/listresourcecheckoutlink.md @@ -8,50 +8,49 @@ import { ListResourceCheckoutLink } from "@polar-sh/sdk/models/components/listre let value: ListResourceCheckoutLink = { items: [ { - createdAt: new Date("2024-06-23T23:34:58.651Z"), - modifiedAt: new Date("2025-11-01T17:29:09.841Z"), + createdAt: new Date("2024-07-11T02:38:25.234Z"), + modifiedAt: new Date("2023-05-24T18:23:37.331Z"), id: "", metadata: { - "key": 727645, + "key": 940490, }, paymentProcessor: "stripe", clientSecret: "", - successUrl: "https://aggressive-toothbrush.org", + successUrl: "https://gigantic-shore.biz/", label: "", allowDiscountCodes: false, productId: "", productPriceId: "", discountId: "", product: { - createdAt: new Date("2023-08-14T05:05:54.788Z"), - modifiedAt: new Date("2024-03-25T01:06:23.500Z"), + createdAt: new Date("2023-06-30T14:38:50.223Z"), + modifiedAt: new Date("2023-07-28T19:17:35.373Z"), id: "", name: "", - description: "bulky inwardly importance", + description: + "besides viciously impostor youthfully implode ick sans in aha cheerful", isRecurring: false, isArchived: false, organizationId: "", prices: [ { - createdAt: new Date("2024-12-02T06:03:57.837Z"), - modifiedAt: new Date("2023-03-06T13:25:23.485Z"), + createdAt: new Date("2025-12-08T08:01:33.093Z"), + modifiedAt: new Date("2025-03-20T12:48:06.524Z"), id: "", isArchived: false, productId: "", priceCurrency: "", - minimumAmount: 617530, - maximumAmount: 132273, - presetAmount: 431813, - recurringInterval: "year", + priceAmount: 81000, }, ], benefits: [ { - createdAt: new Date("2023-05-27T16:26:09.723Z"), - modifiedAt: new Date("2023-08-17T19:12:36.222Z"), + createdAt: new Date("2023-09-30T01:25:20.761Z"), + modifiedAt: new Date("2023-03-27T15:01:03.976Z"), id: "", type: "discord", - description: "excluding break cinema", + description: + "around confute woot provided flint ski jungle tinderbox weakly", selectable: false, deletable: false, organizationId: "", @@ -62,54 +61,54 @@ let value: ListResourceCheckoutLink = { id: "", organizationId: "", name: "", - path: "/etc/ppp", + path: "/opt", mimeType: "", - size: 716005, + size: 727645, storageVersion: "", checksumEtag: "", checksumSha256Base64: "", checksumSha256Hex: "", - lastModifiedAt: new Date("2025-01-15T05:36:08.764Z"), + lastModifiedAt: new Date("2025-10-23T17:28:25.330Z"), version: "", isUploaded: false, - createdAt: new Date("2024-07-21T09:07:41.522Z"), + createdAt: new Date("2023-01-18T18:59:13.114Z"), sizeReadable: "", - publicUrl: "https://tight-willow.net/", + publicUrl: "https://unfit-crest.info", }, ], }, productPrice: { - createdAt: new Date("2025-01-19T20:11:42.821Z"), - modifiedAt: new Date("2024-01-20T23:38:05.989Z"), + createdAt: new Date("2025-05-02T01:05:10.633Z"), + modifiedAt: new Date("2025-08-23T12:17:46.590Z"), id: "", isArchived: false, productId: "", + recurringInterval: "month", }, discount: { - duration: "once", + duration: "repeating", type: "fixed", - amount: 459536, - currency: "Indian Rupee", - createdAt: new Date("2023-02-02T19:05:41.893Z"), - modifiedAt: new Date("2023-08-07T11:34:37.599Z"), + basisPoints: 119158, + createdAt: new Date("2025-06-15T07:00:27.081Z"), + modifiedAt: new Date("2024-04-29T09:33:54.132Z"), id: "", metadata: { - "key": "", + "key": false, }, name: "", code: "", - startsAt: new Date("2023-01-14T23:04:34.235Z"), - endsAt: new Date("2024-11-09T13:41:21.375Z"), - maxRedemptions: 98946, - redemptionsCount: 148389, + startsAt: new Date("2023-01-01T03:57:20.246Z"), + endsAt: new Date("2023-05-07T01:41:54.981Z"), + maxRedemptions: 368343, + redemptionsCount: 397657, organizationId: "", }, - url: "https://sneaky-switch.com/", + url: "https://memorable-tomography.info", }, ], pagination: { - totalCount: 615665, - maxPage: 619689, + totalCount: 66963, + maxPage: 457962, }, }; ``` diff --git a/docs/models/components/listresourcecustomer.md b/docs/models/components/listresourcecustomer.md index 34ca8d4b..36e259ff 100644 --- a/docs/models/components/listresourcecustomer.md +++ b/docs/models/components/listresourcecustomer.md @@ -8,28 +8,28 @@ import { ListResourceCustomer } from "@polar-sh/sdk/models/components/listresour let value: ListResourceCustomer = { items: [ { - createdAt: new Date("2024-03-27T22:50:15.785Z"), - modifiedAt: new Date("2023-04-13T11:45:19.275Z"), + createdAt: new Date("2023-05-07T03:52:19.100Z"), + modifiedAt: new Date("2025-10-02T20:36:49.150Z"), id: "", metadata: { "key": false, }, - email: "Manley.Ankunding@gmail.com", + email: "Rod.Rath@gmail.com", emailVerified: false, name: "", billingAddress: { - country: "Montserrat", + country: "Mauritius", }, taxId: [ - "", + "ca_pst_sk", ], organizationId: "", - avatarUrl: "https://minty-circumference.info/", + avatarUrl: "https://functional-chiffonier.name", }, ], pagination: { - totalCount: 886518, - maxPage: 575198, + totalCount: 524410, + maxPage: 291533, }, }; ``` diff --git a/docs/models/components/listresourcecustomerbenefitgrant.md b/docs/models/components/listresourcecustomerbenefitgrant.md index 0244dedd..c53341fa 100644 --- a/docs/models/components/listresourcecustomerbenefitgrant.md +++ b/docs/models/components/listresourcecustomerbenefitgrant.md @@ -8,11 +8,11 @@ import { ListResourceCustomerBenefitGrant } from "@polar-sh/sdk/models/component let value: ListResourceCustomerBenefitGrant = { items: [ { - createdAt: new Date("2024-10-17T05:26:12.523Z"), - modifiedAt: new Date("2024-09-18T01:12:09.442Z"), + createdAt: new Date("2023-02-21T23:25:35.025Z"), + modifiedAt: new Date("2023-06-13T11:03:06.616Z"), id: "", - grantedAt: new Date("2023-03-16T20:56:58.345Z"), - revokedAt: new Date("2025-04-25T05:56:55.870Z"), + grantedAt: new Date("2023-01-02T23:04:43.120Z"), + revokedAt: new Date("2024-01-30T14:22:07.592Z"), customerId: "", benefitId: "", subscriptionId: "", @@ -20,14 +20,14 @@ let value: ListResourceCustomerBenefitGrant = { isGranted: false, isRevoked: false, customer: { - createdAt: new Date("2023-10-19T11:47:06.902Z"), - modifiedAt: new Date("2025-10-03T00:52:18.817Z"), + createdAt: new Date("2025-06-07T12:19:55.464Z"), + modifiedAt: new Date("2024-09-23T01:16:34.405Z"), id: "", - email: "Maurine.Kunde@gmail.com", + email: "Chanelle11@hotmail.com", emailVerified: false, name: "", billingAddress: { - country: "Virgin Islands, U.S.", + country: "Lithuania", }, taxId: [ "", @@ -40,29 +40,29 @@ let value: ListResourceCustomerBenefitGrant = { }, }, benefit: { - createdAt: new Date("2025-07-27T06:53:00.076Z"), - modifiedAt: new Date("2025-03-15T19:17:39.043Z"), + createdAt: new Date("2025-07-06T11:20:32.944Z"), + modifiedAt: new Date("2024-06-24T05:24:09.981Z"), id: "", - description: "willfully likewise if per department till", + description: "unless fearless rosy swim woot", selectable: false, deletable: false, organizationId: "", organization: { - createdAt: new Date("2024-07-24T08:55:42.913Z"), - modifiedAt: new Date("2023-08-31T16:57:01.365Z"), + createdAt: new Date("2023-12-13T12:05:42.154Z"), + modifiedAt: new Date("2023-11-29T20:53:48.144Z"), id: "", name: "", slug: "", - avatarUrl: "https://smooth-governance.org", + avatarUrl: "https://yellow-pantyhose.net", bio: "", - company: "Mueller Group", + company: "Parker, Corkery and Collins", blog: "", location: "", - email: "Antonette.Beier@yahoo.com", + email: "Adriana_Schneider@hotmail.com", twitterUsername: "", - pledgeMinimumAmount: 180967, + pledgeMinimumAmount: 123486, pledgeBadgeShowAmount: false, - defaultUpfrontSplitToContributors: 82393, + defaultUpfrontSplitToContributors: 462247, profileSettings: {}, featureSettings: { issueFundingEnabled: false, @@ -74,15 +74,17 @@ let value: ListResourceCustomerBenefitGrant = { }, }, properties: { - note: "", + activeFiles: [ + "", + ], }, }, properties: {}, }, ], pagination: { - totalCount: 83454, - maxPage: 568720, + totalCount: 371870, + maxPage: 517246, }, }; ``` diff --git a/docs/models/components/listresourcecustomerorder.md b/docs/models/components/listresourcecustomerorder.md index e2513449..37d91834 100644 --- a/docs/models/components/listresourcecustomerorder.md +++ b/docs/models/components/listresourcecustomerorder.md @@ -8,45 +8,45 @@ import { ListResourceCustomerOrder } from "@polar-sh/sdk/models/components/listr let value: ListResourceCustomerOrder = { items: [ { - createdAt: new Date("2024-04-04T11:52:53.437Z"), - modifiedAt: new Date("2025-01-01T05:21:21.151Z"), + createdAt: new Date("2023-11-02T17:00:24.297Z"), + modifiedAt: new Date("2025-06-09T01:32:18.992Z"), id: "", - amount: 9143, - taxAmount: 538556, - currency: "Pound Sterling", + amount: 287750, + taxAmount: 73957, + currency: "Convertible Marks", customerId: "", productId: "", productPriceId: "", subscriptionId: "", userId: "", product: { - createdAt: new Date("2024-01-03T04:14:52.159Z"), - modifiedAt: new Date("2024-04-19T19:40:49.785Z"), + createdAt: new Date("2023-06-13T18:10:23.570Z"), + modifiedAt: new Date("2024-03-08T00:49:25.499Z"), id: "", name: "", - description: "runway schlep atomize wilted for nucleotidase", + description: "decisive firsthand pish quaintly", isRecurring: false, isArchived: false, organizationId: "", prices: [ { - createdAt: new Date("2023-04-02T15:04:46.624Z"), - modifiedAt: new Date("2023-05-15T08:58:24.746Z"), + createdAt: new Date("2023-08-11T06:09:30.010Z"), + modifiedAt: new Date("2024-02-29T04:01:52.904Z"), id: "", isArchived: false, productId: "", priceCurrency: "", - priceAmount: 574906, + priceAmount: 738230, + recurringInterval: "month", }, ], benefits: [ { - createdAt: new Date("2023-03-22T03:07:22.809Z"), - modifiedAt: new Date("2024-05-11T13:10:25.231Z"), + createdAt: new Date("2023-07-16T02:10:57.222Z"), + modifiedAt: new Date("2025-07-11T20:54:23.054Z"), id: "", type: "license_keys", - description: - "these fathom opposite physically intently briefly tough", + description: "wonderful knavishly forenenst although inculcate gee", selectable: false, deletable: false, organizationId: "", @@ -57,81 +57,84 @@ let value: ListResourceCustomerOrder = { id: "", organizationId: "", name: "", - path: "/usr/share", + path: "/opt/bin", mimeType: "", - size: 186220, + size: 982213, storageVersion: "", checksumEtag: "", checksumSha256Base64: "", checksumSha256Hex: "", - lastModifiedAt: new Date("2025-05-19T15:18:16.482Z"), + lastModifiedAt: new Date("2025-08-14T06:57:51.565Z"), version: "", isUploaded: false, - createdAt: new Date("2023-03-02T23:25:37.864Z"), + createdAt: new Date("2024-10-27T01:41:34.978Z"), sizeReadable: "", - publicUrl: "https://orange-reboot.name", + publicUrl: "https://hollow-basket.info/", }, ], organization: { - createdAt: new Date("2024-10-16T21:08:22.533Z"), - modifiedAt: new Date("2023-02-10T13:48:36.795Z"), + createdAt: new Date("2023-09-27T06:28:40.601Z"), + modifiedAt: new Date("2024-10-28T23:19:43.392Z"), id: "", name: "", slug: "", - avatarUrl: "https://sturdy-elver.net/", + avatarUrl: "https://frail-management.net", bio: "", - company: "Mann, Braun and Bergstrom", + company: "Roberts Group", blog: "", location: "", - email: "Tiana_Jones49@yahoo.com", + email: "Dorian.Goldner47@yahoo.com", twitterUsername: "", - pledgeMinimumAmount: 695287, + pledgeMinimumAmount: 349963, pledgeBadgeShowAmount: false, - defaultUpfrontSplitToContributors: 918408, + defaultUpfrontSplitToContributors: 896497, profileSettings: {}, featureSettings: {}, subscriptionSettings: { allowMultipleSubscriptions: false, allowCustomerUpdates: false, - prorationBehavior: "prorate", + prorationBehavior: "invoice", }, }, }, productPrice: { - createdAt: new Date("2025-07-01T18:58:52.929Z"), - modifiedAt: new Date("2023-07-24T16:26:37.343Z"), + createdAt: new Date("2025-02-15T22:24:33.253Z"), + modifiedAt: new Date("2024-08-03T05:37:09.894Z"), id: "", isArchived: false, productId: "", + priceCurrency: "", + priceAmount: 474320, + recurringInterval: "month", }, subscription: { - createdAt: new Date("2024-04-07T20:09:24.360Z"), - modifiedAt: new Date("2025-06-16T22:04:20.447Z"), + createdAt: new Date("2025-11-19T15:09:26.906Z"), + modifiedAt: new Date("2025-07-14T02:36:39.601Z"), id: "", - amount: 734834, - currency: "Pa'anga", - recurringInterval: "month", - status: "active", - currentPeriodStart: new Date("2025-02-16T00:18:19.556Z"), - currentPeriodEnd: new Date("2025-03-11T06:09:41.890Z"), + amount: 820374, + currency: "Tanzanian Shilling", + recurringInterval: "year", + status: "incomplete", + currentPeriodStart: new Date("2025-11-30T18:08:12.857Z"), + currentPeriodEnd: new Date("2025-10-20T08:31:50.564Z"), cancelAtPeriodEnd: false, - canceledAt: new Date("2023-03-20T16:45:23.582Z"), - startedAt: new Date("2025-02-19T06:52:44.896Z"), - endsAt: new Date("2024-11-17T08:18:48.207Z"), - endedAt: new Date("2024-01-18T09:48:34.643Z"), + canceledAt: new Date("2025-02-01T21:36:44.416Z"), + startedAt: new Date("2023-11-17T01:02:55.807Z"), + endsAt: new Date("2023-01-02T05:13:35.742Z"), + endedAt: new Date("2024-06-16T12:06:28.738Z"), customerId: "", productId: "", priceId: "", discountId: "", checkoutId: "", - customerCancellationReason: "missing_features", + customerCancellationReason: "too_complex", customerCancellationComment: "", }, }, ], pagination: { - totalCount: 29009, - maxPage: 391990, + totalCount: 993982, + maxPage: 132915, }, }; ``` diff --git a/docs/models/components/listresourcecustomersubscription.md b/docs/models/components/listresourcecustomersubscription.md index 389a5761..07d5dc58 100644 --- a/docs/models/components/listresourcecustomersubscription.md +++ b/docs/models/components/listresourcecustomersubscription.md @@ -8,20 +8,20 @@ import { ListResourceCustomerSubscription } from "@polar-sh/sdk/models/component let value: ListResourceCustomerSubscription = { items: [ { - createdAt: new Date("2024-11-11T13:52:42.697Z"), - modifiedAt: new Date("2023-05-09T03:26:26.188Z"), + createdAt: new Date("2024-04-07T18:37:14.280Z"), + modifiedAt: new Date("2024-12-04T06:57:20.808Z"), id: "", - amount: 588222, - currency: "Netherlands Antillian Guilder", - recurringInterval: "month", - status: "incomplete", - currentPeriodStart: new Date("2023-11-10T03:19:35.166Z"), - currentPeriodEnd: new Date("2025-09-12T00:09:48.443Z"), + amount: 496702, + currency: "Armenian Dram", + recurringInterval: "year", + status: "unpaid", + currentPeriodStart: new Date("2024-10-19T06:21:31.750Z"), + currentPeriodEnd: new Date("2024-09-28T03:10:30.785Z"), cancelAtPeriodEnd: false, - canceledAt: new Date("2023-08-21T04:25:21.569Z"), - startedAt: new Date("2025-05-07T15:08:34.450Z"), - endsAt: new Date("2024-03-10T10:40:48.230Z"), - endedAt: new Date("2024-02-09T15:36:42.368Z"), + canceledAt: new Date("2025-07-04T11:41:05.814Z"), + startedAt: new Date("2025-07-01T18:58:52.929Z"), + endsAt: new Date("2023-07-24T16:26:37.343Z"), + endedAt: new Date("2024-04-07T20:09:24.360Z"), customerId: "", productId: "", priceId: "", @@ -31,33 +31,34 @@ let value: ListResourceCustomerSubscription = { customerCancellationComment: "", userId: "", product: { - createdAt: new Date("2024-03-28T06:43:43.157Z"), - modifiedAt: new Date("2025-12-12T17:13:53.718Z"), + createdAt: new Date("2025-03-16T09:04:21.592Z"), + modifiedAt: new Date("2025-07-14T10:46:58.301Z"), id: "", name: "", - description: "apropos underplay since aha", + description: "by amongst amid before", isRecurring: false, isArchived: false, organizationId: "", prices: [ { - createdAt: new Date("2024-07-10T18:47:54.602Z"), - modifiedAt: new Date("2025-06-27T17:39:57.169Z"), + createdAt: new Date("2025-10-30T16:04:35.456Z"), + modifiedAt: new Date("2024-12-30T18:24:30.633Z"), id: "", isArchived: false, productId: "", priceCurrency: "", - priceAmount: 34432, + priceAmount: 270530, recurringInterval: "month", }, ], benefits: [ { - createdAt: new Date("2025-04-04T07:16:34.900Z"), - modifiedAt: new Date("2024-11-25T22:09:52.331Z"), + createdAt: new Date("2023-03-30T12:54:31.192Z"), + modifiedAt: new Date("2023-10-01T15:47:39.560Z"), id: "", - type: "license_keys", - description: "woot outside behind", + type: "ads", + description: + "apud hefty bakeware why carefree dependable squeaky freely", selectable: false, deletable: false, organizationId: "", @@ -68,37 +69,37 @@ let value: ListResourceCustomerSubscription = { id: "", organizationId: "", name: "", - path: "/var/mail", + path: "/usr/bin", mimeType: "", - size: 20512, + size: 156405, storageVersion: "", checksumEtag: "", checksumSha256Base64: "", checksumSha256Hex: "", - lastModifiedAt: new Date("2023-05-14T05:19:16.057Z"), + lastModifiedAt: new Date("2025-07-13T10:03:43.619Z"), version: "", isUploaded: false, - createdAt: new Date("2023-07-10T09:38:33.519Z"), + createdAt: new Date("2025-08-01T05:59:09.495Z"), sizeReadable: "", - publicUrl: "https://wonderful-mortise.com", + publicUrl: "https://elastic-unique.biz", }, ], organization: { - createdAt: new Date("2024-05-16T23:08:38.509Z"), - modifiedAt: new Date("2025-05-08T05:53:08.264Z"), + createdAt: new Date("2023-12-05T15:57:48.116Z"), + modifiedAt: new Date("2024-04-29T05:57:00.820Z"), id: "", name: "", slug: "", - avatarUrl: "https://french-pigpen.biz/", + avatarUrl: "https://last-cd.org", bio: "", - company: "Schinner, Simonis and Lubowitz", + company: "Thompson - Senger", blog: "", location: "", - email: "Libbie_Doyle@yahoo.com", + email: "Emanuel_Becker15@hotmail.com", twitterUsername: "", - pledgeMinimumAmount: 467406, + pledgeMinimumAmount: 230393, pledgeBadgeShowAmount: false, - defaultUpfrontSplitToContributors: 429753, + defaultUpfrontSplitToContributors: 278619, profileSettings: {}, featureSettings: {}, subscriptionSettings: { @@ -109,20 +110,21 @@ let value: ListResourceCustomerSubscription = { }, }, price: { - createdAt: new Date("2025-07-01T17:25:22.386Z"), - modifiedAt: new Date("2025-01-01T02:55:36.953Z"), + createdAt: new Date("2024-12-14T03:39:36.370Z"), + modifiedAt: new Date("2024-12-04T16:26:10.535Z"), id: "", isArchived: false, productId: "", priceCurrency: "", - priceAmount: 975779, - recurringInterval: "month", + minimumAmount: 855156, + maximumAmount: 36726, + presetAmount: 557712, }, }, ], pagination: { - totalCount: 923446, - maxPage: 765578, + totalCount: 385941, + maxPage: 789265, }, }; ``` diff --git a/docs/models/components/listresourcecustomfield.md b/docs/models/components/listresourcecustomfield.md index 670b315d..030299bf 100644 --- a/docs/models/components/listresourcecustomfield.md +++ b/docs/models/components/listresourcecustomfield.md @@ -8,11 +8,11 @@ import { ListResourceCustomField } from "@polar-sh/sdk/models/components/listres let value: ListResourceCustomField = { items: [ { - createdAt: new Date("2024-04-16T21:05:59.681Z"), - modifiedAt: new Date("2024-02-22T06:19:27.101Z"), + createdAt: new Date("2024-03-10T20:41:59.793Z"), + modifiedAt: new Date("2025-03-17T00:47:08.664Z"), id: "", metadata: { - "key": 881238, + "key": 306, }, slug: "", name: "", @@ -21,8 +21,8 @@ let value: ListResourceCustomField = { }, ], pagination: { - totalCount: 202737, - maxPage: 163653, + totalCount: 16877, + maxPage: 839715, }, }; ``` diff --git a/docs/models/components/listresourcediscount.md b/docs/models/components/listresourcediscount.md index edc57af7..6debd933 100644 --- a/docs/models/components/listresourcediscount.md +++ b/docs/models/components/listresourcediscount.md @@ -8,30 +8,30 @@ import { ListResourceDiscount } from "@polar-sh/sdk/models/components/listresour let value: ListResourceDiscount = { items: [ { - duration: "repeating", + duration: "once", type: "fixed", - amount: 845300, - currency: "Czech Koruna", - createdAt: new Date("2024-06-18T16:36:45.826Z"), - modifiedAt: new Date("2025-03-11T15:36:59.646Z"), + amount: 314769, + currency: "Hryvnia", + createdAt: new Date("2023-12-12T21:18:05.566Z"), + modifiedAt: new Date("2025-06-20T13:02:49.294Z"), id: "", metadata: { - "key": false, + "key": "", }, name: "", code: "", - startsAt: new Date("2024-03-16T08:24:56.079Z"), - endsAt: new Date("2024-07-01T09:39:28.718Z"), - maxRedemptions: 29572, - redemptionsCount: 344026, + startsAt: new Date("2025-11-06T07:58:52.676Z"), + endsAt: new Date("2023-03-01T13:04:14.388Z"), + maxRedemptions: 262883, + redemptionsCount: 24886, organizationId: "", products: [ { - createdAt: new Date("2023-10-14T16:34:12.050Z"), - modifiedAt: new Date("2024-03-03T12:22:36.931Z"), + createdAt: new Date("2025-11-17T10:52:20.252Z"), + modifiedAt: new Date("2023-02-26T15:31:31.267Z"), id: "", name: "", - description: "colorless phew spellcheck fisherman tentacle", + description: "throughout supposing scrabble queasily haversack", isRecurring: false, isArchived: false, organizationId: "", @@ -40,8 +40,8 @@ let value: ListResourceDiscount = { }, ], pagination: { - totalCount: 803942, - maxPage: 517842, + totalCount: 840168, + maxPage: 390200, }, }; ``` diff --git a/docs/models/components/listresourcedownloadableread.md b/docs/models/components/listresourcedownloadableread.md index 07571caf..1820c5ee 100644 --- a/docs/models/components/listresourcedownloadableread.md +++ b/docs/models/components/listresourcedownloadableread.md @@ -14,28 +14,28 @@ let value: ListResourceDownloadableRead = { id: "", organizationId: "", name: "", - path: "/selinux", + path: "/Library", mimeType: "", - size: 921343, + size: 38962, storageVersion: "", checksumEtag: "", checksumSha256Base64: "", checksumSha256Hex: "", - lastModifiedAt: new Date("2024-12-12T02:05:45.362Z"), + lastModifiedAt: new Date("2025-04-12T13:54:50.989Z"), download: { - url: "https://tiny-premier.info", - expiresAt: new Date("2025-05-30T10:39:49.151Z"), + url: "https://ignorant-expense.info/", + expiresAt: new Date("2025-09-19T23:23:51.226Z"), }, version: "", isUploaded: false, - service: "downloadable", + service: "product_media", sizeReadable: "", }, }, ], pagination: { - totalCount: 871469, - maxPage: 509142, + totalCount: 912745, + maxPage: 805401, }, }; ``` diff --git a/docs/models/components/listresourceevent.md b/docs/models/components/listresourceevent.md index d8cf5a87..c437c170 100644 --- a/docs/models/components/listresourceevent.md +++ b/docs/models/components/listresourceevent.md @@ -9,10 +9,10 @@ let value: ListResourceEvent = { items: [ { metadata: { - "key": "", + "key": 618463, }, id: "", - timestamp: new Date("2023-05-05T13:10:17.632Z"), + timestamp: new Date("2023-07-24T03:40:16.074Z"), name: "", source: "system", organizationId: "", @@ -21,8 +21,8 @@ let value: ListResourceEvent = { }, ], pagination: { - totalCount: 284949, - maxPage: 367728, + totalCount: 818705, + maxPage: 817278, }, }; ``` diff --git a/docs/models/components/listresourcefileread.md b/docs/models/components/listresourcefileread.md index 9600f222..eec424cf 100644 --- a/docs/models/components/listresourcefileread.md +++ b/docs/models/components/listresourcefileread.md @@ -11,23 +11,24 @@ let value: ListResourceFileRead = { id: "", organizationId: "", name: "", - path: "/etc/ppp", + path: "/Applications", mimeType: "", - size: 808797, + size: 803114, storageVersion: "", checksumEtag: "", checksumSha256Base64: "", checksumSha256Hex: "", - lastModifiedAt: new Date("2024-11-11T05:07:40.672Z"), + lastModifiedAt: new Date("2023-09-16T23:07:17.927Z"), version: "", isUploaded: false, - createdAt: new Date("2024-12-03T20:46:32.398Z"), + createdAt: new Date("2023-04-01T23:40:15.677Z"), sizeReadable: "", + publicUrl: "https://elderly-marathon.com", }, ], pagination: { - totalCount: 925438, - maxPage: 891799, + totalCount: 790109, + maxPage: 981974, }, }; ``` diff --git a/docs/models/components/listresourcelicensekeyread.md b/docs/models/components/listresourcelicensekeyread.md index 02629c67..dab40f3b 100644 --- a/docs/models/components/listresourcelicensekeyread.md +++ b/docs/models/components/listresourcelicensekeyread.md @@ -14,43 +14,43 @@ let value: ListResourceLicenseKeyRead = { customerId: "", user: { id: "", - email: "Dahlia20@hotmail.com", + email: "Bessie.Sawayn91@gmail.com", publicName: "", }, customer: { - createdAt: new Date("2024-01-22T23:18:37.610Z"), - modifiedAt: new Date("2024-03-01T13:30:13.678Z"), + createdAt: new Date("2024-06-18T17:26:23.980Z"), + modifiedAt: new Date("2024-12-05T02:22:06.346Z"), id: "", metadata: { - "key": 131173, + "key": 889495, }, - email: "Tristin_Halvorson24@yahoo.com", + email: "Reva.Heathcote@hotmail.com", emailVerified: false, name: "", billingAddress: { - country: "Cocos (Keeling) Islands", + country: "Somalia", }, taxId: [ - "ge_vat", + "sg_gst", ], organizationId: "", - avatarUrl: "https://small-barge.biz/", + avatarUrl: "https://subdued-vestment.org", }, benefitId: "", key: "", displayKey: "", - status: "disabled", - limitActivations: 319651, - usage: 701679, - limitUsage: 22860, - validations: 590360, - lastValidatedAt: new Date("2024-08-19T11:50:24.629Z"), - expiresAt: new Date("2023-06-08T18:18:07.548Z"), + status: "granted", + limitActivations: 392307, + usage: 575206, + limitUsage: 690546, + validations: 464706, + lastValidatedAt: new Date("2025-05-13T09:28:35.495Z"), + expiresAt: new Date("2024-11-23T16:18:25.939Z"), }, ], pagination: { - totalCount: 118735, - maxPage: 928155, + totalCount: 595870, + maxPage: 145395, }, }; ``` diff --git a/docs/models/components/listresourcemeter.md b/docs/models/components/listresourcemeter.md index 7777887a..1e2c1656 100644 --- a/docs/models/components/listresourcemeter.md +++ b/docs/models/components/listresourcemeter.md @@ -8,8 +8,8 @@ import { ListResourceMeter } from "@polar-sh/sdk/models/components/listresourcem let value: ListResourceMeter = { items: [], pagination: { - totalCount: 998684, - maxPage: 945277, + totalCount: 765578, + maxPage: 527575, }, }; ``` diff --git a/docs/models/components/metadataquery.md b/docs/models/components/metadataquery.md index 54e16f21..c86faa56 100644 --- a/docs/models/components/metadataquery.md +++ b/docs/models/components/metadataquery.md @@ -12,7 +12,7 @@ const value: string = ""; ### `number` ```typescript -const value: number = 185953; +const value: number = 628171; ``` ### `boolean` @@ -33,7 +33,7 @@ const value: string[] = [ ```typescript const value: number[] = [ - 955322, + 714352, ]; ``` diff --git a/docs/models/components/meter.md b/docs/models/components/meter.md index f5553484..6c8fa940 100644 --- a/docs/models/components/meter.md +++ b/docs/models/components/meter.md @@ -9,8 +9,8 @@ let value: Meter = { metadata: { "key": false, }, - createdAt: new Date("2023-08-30T15:22:03.927Z"), - modifiedAt: new Date("2024-02-01T01:45:50.315Z"), + createdAt: new Date("2023-03-28T00:11:16.408Z"), + modifiedAt: new Date("2025-02-24T14:49:29.759Z"), id: "", name: "", filter: { diff --git a/docs/models/components/meteraggregation.md b/docs/models/components/meteraggregation.md index e21dc5d7..d17cdc0e 100644 --- a/docs/models/components/meteraggregation.md +++ b/docs/models/components/meteraggregation.md @@ -9,7 +9,7 @@ The aggregation to apply on the filtered events to calculate the meter. ```typescript const value: components.PropertyAggregation = { - func: "sum", + func: "avg", property: "", }; ``` @@ -24,7 +24,7 @@ const value: components.CountAggregation = {}; ```typescript const value: components.PropertyAggregation = { - func: "avg", + func: "min", property: "", }; ``` @@ -42,7 +42,7 @@ const value: components.PropertyAggregation = { ```typescript const value: components.PropertyAggregation = { - func: "min", + func: "avg", property: "", }; ``` diff --git a/docs/models/components/metercreate.md b/docs/models/components/metercreate.md index 0d906093..6629a7d8 100644 --- a/docs/models/components/metercreate.md +++ b/docs/models/components/metercreate.md @@ -11,10 +11,7 @@ let value: MeterCreate = { conjunction: "and", clauses: [], }, - aggregation: { - func: "max", - property: "", - }, + aggregation: {}, }; ``` diff --git a/docs/models/components/metercreateaggregation.md b/docs/models/components/metercreateaggregation.md index 7559377c..284fff36 100644 --- a/docs/models/components/metercreateaggregation.md +++ b/docs/models/components/metercreateaggregation.md @@ -9,7 +9,7 @@ The aggregation to apply on the filtered events to calculate the meter. ```typescript const value: components.PropertyAggregation = { - func: "min", + func: "sum", property: "", }; ``` @@ -42,7 +42,7 @@ const value: components.PropertyAggregation = { ```typescript const value: components.PropertyAggregation = { - func: "avg", + func: "max", property: "", }; ``` diff --git a/docs/models/components/metercreatemetadata.md b/docs/models/components/metercreatemetadata.md index 1e436e9c..3a98bd6b 100644 --- a/docs/models/components/metercreatemetadata.md +++ b/docs/models/components/metercreatemetadata.md @@ -12,7 +12,7 @@ const value: string = ""; ### `number` ```typescript -const value: number = 104508; +const value: number = 133731; ``` ### `boolean` diff --git a/docs/models/components/metermetadata.md b/docs/models/components/metermetadata.md index 402f1b8b..95571b22 100644 --- a/docs/models/components/metermetadata.md +++ b/docs/models/components/metermetadata.md @@ -12,7 +12,7 @@ const value: string = ""; ### `number` ```typescript -const value: number = 843359; +const value: number = 653252; ``` ### `boolean` diff --git a/docs/models/components/meterquantities.md b/docs/models/components/meterquantities.md index 5e762a1b..7ab38ebf 100644 --- a/docs/models/components/meterquantities.md +++ b/docs/models/components/meterquantities.md @@ -8,8 +8,8 @@ import { MeterQuantities } from "@polar-sh/sdk/models/components/meterquantities let value: MeterQuantities = { quantities: [ { - timestamp: new Date("2025-10-01T21:33:32.957Z"), - quantity: 9139.45, + timestamp: new Date("2025-02-01T06:48:50.620Z"), + quantity: 2458.04, }, ], }; diff --git a/docs/models/components/meterquantity.md b/docs/models/components/meterquantity.md index 80c02802..8562fefa 100644 --- a/docs/models/components/meterquantity.md +++ b/docs/models/components/meterquantity.md @@ -6,8 +6,8 @@ import { MeterQuantity } from "@polar-sh/sdk/models/components/meterquantity.js"; let value: MeterQuantity = { - timestamp: new Date("2024-01-03T00:29:55.711Z"), - quantity: 3865.86, + timestamp: new Date("2023-06-22T15:02:43.515Z"), + quantity: 9038.8, }; ``` diff --git a/docs/models/components/metersortproperty.md b/docs/models/components/metersortproperty.md index e00eda36..15cafac9 100644 --- a/docs/models/components/metersortproperty.md +++ b/docs/models/components/metersortproperty.md @@ -5,7 +5,7 @@ ```typescript import { MeterSortProperty } from "@polar-sh/sdk/models/components/metersortproperty.js"; -let value: MeterSortProperty = "-name"; +let value: MeterSortProperty = "-created_at"; ``` ## Values diff --git a/docs/models/components/meterupdatemetadata.md b/docs/models/components/meterupdatemetadata.md index 7b31ae3d..03324911 100644 --- a/docs/models/components/meterupdatemetadata.md +++ b/docs/models/components/meterupdatemetadata.md @@ -12,7 +12,7 @@ const value: string = ""; ### `number` ```typescript -const value: number = 19151; +const value: number = 349924; ``` ### `boolean` diff --git a/docs/models/components/metric.md b/docs/models/components/metric.md index fc44fd82..17253143 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/metric.js"; let value: Metric = { slug: "", - displayName: "Marvin62", - type: "currency", + displayName: "Elfrieda5", + type: "scalar", }; ``` diff --git a/docs/models/components/metricperiod.md b/docs/models/components/metricperiod.md index 5a6b504b..0da1433c 100644 --- a/docs/models/components/metricperiod.md +++ b/docs/models/components/metricperiod.md @@ -6,19 +6,19 @@ import { MetricPeriod } from "@polar-sh/sdk/models/components/metricperiod.js"; let value: MetricPeriod = { - timestamp: new Date("2024-09-01T04:02:03.009Z"), - orders: 390215, - revenue: 546501, - cumulativeRevenue: 724060, - averageOrderValue: 486717, - oneTimeProducts: 912317, - oneTimeProductsRevenue: 692115, - newSubscriptions: 352319, - newSubscriptionsRevenue: 612334, - renewedSubscriptions: 455377, - renewedSubscriptionsRevenue: 792031, - activeSubscriptions: 7449, - monthlyRecurringRevenue: 585566, + timestamp: new Date("2023-03-21T05:24:16.803Z"), + orders: 171134, + revenue: 634157, + cumulativeRevenue: 367986, + averageOrderValue: 917300, + oneTimeProducts: 793274, + oneTimeProductsRevenue: 320837, + newSubscriptions: 986116, + newSubscriptionsRevenue: 666499, + renewedSubscriptions: 17438, + renewedSubscriptionsRevenue: 463088, + activeSubscriptions: 910324, + monthlyRecurringRevenue: 295960, }; ``` diff --git a/docs/models/components/metrics.md b/docs/models/components/metrics.md index d3909803..c56e7836 100644 --- a/docs/models/components/metrics.md +++ b/docs/models/components/metrics.md @@ -8,62 +8,62 @@ import { Metrics } from "@polar-sh/sdk/models/components/metrics.js"; let value: Metrics = { orders: { slug: "", - displayName: "Burley7", - type: "scalar", + displayName: "Jo3", + type: "currency", }, revenue: { slug: "", - displayName: "Hudson.Sipes", - type: "scalar", + displayName: "Aracely_Ondricka", + type: "currency", }, cumulativeRevenue: { slug: "", - displayName: "Bernadine_Sauer97", - type: "scalar", + displayName: "Jayson.Frami28", + type: "currency", }, averageOrderValue: { slug: "", - displayName: "Amanda38", - type: "currency", + displayName: "Rory49", + type: "scalar", }, oneTimeProducts: { slug: "", - displayName: "Abbey_Hansen23", - type: "currency", + displayName: "Alfreda.Osinski", + type: "scalar", }, oneTimeProductsRevenue: { slug: "", - displayName: "Ocie.Rosenbaum", - type: "scalar", + displayName: "Ernie36", + type: "currency", }, newSubscriptions: { slug: "", - displayName: "Kenyatta85", - type: "currency", + displayName: "Lauren_Bogisich", + type: "scalar", }, newSubscriptionsRevenue: { slug: "", - displayName: "Bruce_Mante33", + displayName: "Palma.Sipes", type: "scalar", }, renewedSubscriptions: { slug: "", - displayName: "Anastasia_Roberts70", - type: "currency", + displayName: "Elza36", + type: "scalar", }, renewedSubscriptionsRevenue: { slug: "", - displayName: "Keara_Ullrich", + displayName: "Mavis.Kassulke98", type: "scalar", }, activeSubscriptions: { slug: "", - displayName: "Axel.Wisoky47", + displayName: "Gavin_Weber", type: "scalar", }, monthlyRecurringRevenue: { slug: "", - displayName: "Kris92", + displayName: "Rogers.Huels", type: "scalar", }, }; diff --git a/docs/models/components/metricsintervallimit.md b/docs/models/components/metricsintervallimit.md index f183922a..7c34d932 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/metricsintervallimit.js"; let value: MetricsIntervalLimit = { - maxDays: 78973, + maxDays: 388445, }; ``` diff --git a/docs/models/components/metricsintervalslimits.md b/docs/models/components/metricsintervalslimits.md index 8c4fcf41..59d6d4c7 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/metricsi let value: MetricsIntervalsLimits = { hour: { - maxDays: 972889, + maxDays: 637086, }, day: { - maxDays: 94400, + maxDays: 643394, }, week: { - maxDays: 210237, + maxDays: 306043, }, month: { - maxDays: 276943, + maxDays: 864742, }, year: { - maxDays: 766004, + maxDays: 593604, }, }; ``` diff --git a/docs/models/components/metricslimits.md b/docs/models/components/metricslimits.md index 753c55be..1554f04a 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/metricslimits.js" import { RFCDate } from "@polar-sh/sdk/types/rfcdate.js"; let value: MetricsLimits = { - minDate: new RFCDate("2025-12-09"), + minDate: new RFCDate("2024-11-05"), intervals: { hour: { - maxDays: 507533, + maxDays: 583044, }, day: { - maxDays: 278799, + maxDays: 365827, }, week: { - maxDays: 110699, + maxDays: 956924, }, month: { - maxDays: 341695, + maxDays: 430616, }, year: { - maxDays: 634079, + maxDays: 634386, }, }, }; diff --git a/docs/models/components/metricsresponse.md b/docs/models/components/metricsresponse.md index 30cba81f..7775e6a1 100644 --- a/docs/models/components/metricsresponse.md +++ b/docs/models/components/metricsresponse.md @@ -10,80 +10,80 @@ import { MetricsResponse } from "@polar-sh/sdk/models/components/metricsresponse let value: MetricsResponse = { periods: [ { - timestamp: new Date("2024-09-25T16:34:12.626Z"), - orders: 75685, - revenue: 313717, - cumulativeRevenue: 982685, - averageOrderValue: 613334, - oneTimeProducts: 419747, - oneTimeProductsRevenue: 915692, - newSubscriptions: 361284, - newSubscriptionsRevenue: 747146, - renewedSubscriptions: 146265, - renewedSubscriptionsRevenue: 697160, - activeSubscriptions: 491440, - monthlyRecurringRevenue: 424629, + timestamp: new Date("2024-08-16T20:36:27.976Z"), + orders: 637070, + revenue: 92130, + cumulativeRevenue: 139432, + averageOrderValue: 32442, + oneTimeProducts: 162408, + oneTimeProductsRevenue: 222577, + newSubscriptions: 690703, + newSubscriptionsRevenue: 65214, + renewedSubscriptions: 687407, + renewedSubscriptionsRevenue: 405428, + activeSubscriptions: 142953, + monthlyRecurringRevenue: 982330, }, ], metrics: { orders: { slug: "", - displayName: "Darien13", + displayName: "Joannie.Bednar61", type: "currency", }, revenue: { slug: "", - displayName: "Ian_Berge", + displayName: "Dudley.Jerde", type: "scalar", }, cumulativeRevenue: { slug: "", - displayName: "Magdalen51", - type: "scalar", + displayName: "Valentin66", + type: "currency", }, averageOrderValue: { slug: "", - displayName: "Ana.Haag7", - type: "currency", + displayName: "Richard.White", + type: "scalar", }, oneTimeProducts: { slug: "", - displayName: "Fredy.Schimmel", - type: "scalar", + displayName: "Adonis3", + type: "currency", }, oneTimeProductsRevenue: { slug: "", - displayName: "Jalon_Grimes", + displayName: "Scot_Konopelski20", type: "scalar", }, newSubscriptions: { slug: "", - displayName: "Verna_Nicolas64", + displayName: "Zoe.Prohaska3", type: "currency", }, newSubscriptionsRevenue: { slug: "", - displayName: "Laurel61", + displayName: "Nathan.Ebert77", type: "scalar", }, renewedSubscriptions: { slug: "", - displayName: "Teagan56", + displayName: "Celia92", type: "currency", }, renewedSubscriptionsRevenue: { slug: "", - displayName: "Reva.Heathcote", - type: "currency", + displayName: "Victor26", + type: "scalar", }, activeSubscriptions: { slug: "", - displayName: "Merl96", + displayName: "Dudley.Schulist57", type: "scalar", }, monthlyRecurringRevenue: { slug: "", - displayName: "Gladyce.Pollich", + displayName: "Lera93", type: "currency", }, }, diff --git a/docs/models/components/organizationavatarfilecreate.md b/docs/models/components/organizationavatarfilecreate.md index d29e4884..12b561e0 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/or let value: OrganizationAvatarFileCreate = { name: "", mimeType: "", - size: 550329, + size: 756985, upload: { parts: [ { - number: 124065, - chunkStart: 786178, - chunkEnd: 511956, + number: 303546, + chunkStart: 733471, + chunkEnd: 366561, }, ], }, diff --git a/docs/models/components/organizationavatarfileread.md b/docs/models/components/organizationavatarfileread.md index c87fd237..97b5a4b4 100644 --- a/docs/models/components/organizationavatarfileread.md +++ b/docs/models/components/organizationavatarfileread.md @@ -11,19 +11,19 @@ let value: OrganizationAvatarFileRead = { id: "", organizationId: "", name: "", - path: "/var/log", + path: "/rescue", mimeType: "", - size: 264328, + size: 481923, storageVersion: "", checksumEtag: "", checksumSha256Base64: "", checksumSha256Hex: "", - lastModifiedAt: new Date("2025-12-02T12:30:01.615Z"), + lastModifiedAt: new Date("2025-09-03T23:43:39.465Z"), version: "", isUploaded: false, - createdAt: new Date("2023-09-03T13:07:24.254Z"), + createdAt: new Date("2024-01-09T01:39:56.054Z"), sizeReadable: "", - publicUrl: "https://unused-signature.com/", + publicUrl: "https://complete-gown.name", }; ``` diff --git a/docs/models/components/productmediafilecreate.md b/docs/models/components/productmediafilecreate.md index 3e6de26b..0d817688 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/productm let value: ProductMediaFileCreate = { name: "", mimeType: "", - size: 516518, + size: 270667, upload: { parts: [ { - number: 87837, - chunkStart: 592935, - chunkEnd: 398259, + number: 276109, + chunkStart: 708466, + chunkEnd: 108829, }, ], }, diff --git a/docs/models/components/s3downloadurl.md b/docs/models/components/s3downloadurl.md index 924d46b4..06e1ff7e 100644 --- a/docs/models/components/s3downloadurl.md +++ b/docs/models/components/s3downloadurl.md @@ -6,8 +6,8 @@ import { S3DownloadURL } from "@polar-sh/sdk/models/components/s3downloadurl.js"; let value: S3DownloadURL = { - url: "https://finished-cinder.name", - expiresAt: new Date("2023-08-09T20:54:37.953Z"), + url: "https://hot-scout.org/", + expiresAt: new Date("2023-07-01T14:29:36.398Z"), }; ``` diff --git a/docs/models/components/s3filecreatemultipart.md b/docs/models/components/s3filecreatemultipart.md index e2e5d421..c1523573 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/s3filecre let value: S3FileCreateMultipart = { parts: [ { - number: 892451, - chunkStart: 629961, - chunkEnd: 369529, + number: 187613, + chunkStart: 318122, + chunkEnd: 946068, }, ], }; diff --git a/docs/models/components/s3filecreatepart.md b/docs/models/components/s3filecreatepart.md index 684561a4..4a3ad54b 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/s3filecreatepart.js"; let value: S3FileCreatePart = { - number: 860443, - chunkStart: 695723, - chunkEnd: 593724, + number: 228555, + chunkStart: 565095, + chunkEnd: 117761, }; ``` diff --git a/docs/models/components/s3fileuploadcompletedpart.md b/docs/models/components/s3fileuploadcompletedpart.md index 024558b9..b661e8d6 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/s3fileuploadcompletedpart.js"; let value: S3FileUploadCompletedPart = { - number: 938085, + number: 106842, checksumEtag: "", checksumSha256Base64: "", }; diff --git a/docs/models/components/s3fileuploadmultipart.md b/docs/models/components/s3fileuploadmultipart.md index d5461051..eb092e34 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/s3fileupl let value: S3FileUploadMultipart = { id: "", - path: "/bin", + path: "/home/user/dir", parts: [ { - number: 969553, - chunkStart: 803186, - chunkEnd: 75004, - url: "https://quixotic-testimonial.info", - expiresAt: new Date("2024-07-05T15:48:53.749Z"), + number: 96303, + chunkStart: 571158, + chunkEnd: 217338, + url: "https://agile-digit.name/", + expiresAt: new Date("2023-05-15T23:01:01.438Z"), }, ], }; diff --git a/docs/models/components/s3fileuploadpart.md b/docs/models/components/s3fileuploadpart.md index 85436652..b3a574e6 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/s3fileuploadpart.js"; let value: S3FileUploadPart = { - number: 837314, - chunkStart: 483788, - chunkEnd: 526368, - url: "https://gracious-eggplant.com/", - expiresAt: new Date("2024-10-01T00:07:14.901Z"), + number: 661356, + chunkStart: 860421, + chunkEnd: 869369, + url: "https://likable-taxicab.net/", + expiresAt: new Date("2025-08-07T13:25:38.279Z"), }; ``` diff --git a/docs/models/components/timeinterval.md b/docs/models/components/timeinterval.md index 10360861..da0ffbda 100644 --- a/docs/models/components/timeinterval.md +++ b/docs/models/components/timeinterval.md @@ -5,7 +5,7 @@ ```typescript import { TimeInterval } from "@polar-sh/sdk/models/components/timeinterval.js"; -let value: TimeInterval = "year"; +let value: TimeInterval = "hour"; ``` ## Values diff --git a/docs/models/components/validatedlicensekey.md b/docs/models/components/validatedlicensekey.md index 5034732d..b0e11477 100644 --- a/docs/models/components/validatedlicensekey.md +++ b/docs/models/components/validatedlicensekey.md @@ -12,38 +12,38 @@ let value: ValidatedLicenseKey = { customerId: "", user: { id: "", - email: "Cletus_Kirlin@yahoo.com", + email: "Jaquelin.Howe92@gmail.com", publicName: "", }, customer: { - createdAt: new Date("2024-04-23T18:30:17.394Z"), - modifiedAt: new Date("2023-10-07T17:52:57.869Z"), + createdAt: new Date("2025-03-01T10:44:40.614Z"), + modifiedAt: new Date("2023-08-25T14:51:17.867Z"), id: "", metadata: { - "key": "", + "key": 581991, }, - email: "Sophie_Corkery@gmail.com", + email: "Reagan_Kreiger@yahoo.com", emailVerified: false, name: "", billingAddress: { - country: "Democratic Republic of the Congo", + country: "Faroe Islands", }, taxId: [ "", ], organizationId: "", - avatarUrl: "https://scientific-vision.net", + avatarUrl: "https://orderly-mixture.name", }, benefitId: "", key: "", displayKey: "", - status: "revoked", - limitActivations: 245539, - usage: 534639, - limitUsage: 726566, - validations: 116592, - lastValidatedAt: new Date("2023-03-07T13:13:15.838Z"), - expiresAt: new Date("2023-09-03T16:15:30.511Z"), + status: "granted", + limitActivations: 568633, + usage: 91389, + limitUsage: 682642, + validations: 51457, + lastValidatedAt: new Date("2023-07-27T07:25:51.531Z"), + expiresAt: new Date("2023-11-19T11:06:17.765Z"), }; ``` diff --git a/docs/models/components/value.md b/docs/models/components/value.md index 0d2e2fd7..94482e26 100644 --- a/docs/models/components/value.md +++ b/docs/models/components/value.md @@ -12,7 +12,7 @@ const value: string = ""; ### `number` ```typescript -const value: number = 508721; +const value: number = 23677; ``` ### `boolean` diff --git a/docs/models/operations/advertisementslistresponse.md b/docs/models/operations/advertisementslistresponse.md index 462eb93a..14e0379e 100644 --- a/docs/models/operations/advertisementslistresponse.md +++ b/docs/models/operations/advertisementslistresponse.md @@ -9,21 +9,21 @@ let value: AdvertisementsListResponse = { result: { items: [ { - createdAt: new Date("2025-02-07T20:02:50.033Z"), - modifiedAt: new Date("2025-03-02T22:52:48.220Z"), + createdAt: new Date("2024-07-14T01:14:05.609Z"), + modifiedAt: new Date("2023-03-11T12:23:21.693Z"), id: "", - imageUrl: "https://monumental-innovation.net/", - imageUrlDark: "https://remorseful-smog.net/", + imageUrl: "https://mushy-volleyball.org", + imageUrlDark: "https://honored-perp.info/", text: "", - linkUrl: "https://livid-insolence.org/", + linkUrl: "https://wilted-bookcase.name", }, ], pagination: { - totalCount: 435743, - maxPage: 913584, + totalCount: 677590, + maxPage: 219370, }, dimensions: [ - 909641, + 586095, ], }, }; diff --git a/docs/models/operations/benefitsgrantsresponse.md b/docs/models/operations/benefitsgrantsresponse.md index 63539edd..daffeff9 100644 --- a/docs/models/operations/benefitsgrantsresponse.md +++ b/docs/models/operations/benefitsgrantsresponse.md @@ -9,8 +9,8 @@ let value: BenefitsGrantsResponse = { result: { items: [ { - createdAt: new Date("2024-02-24T13:40:14.894Z"), - modifiedAt: new Date("2025-06-24T03:29:30.577Z"), + createdAt: new Date("2024-12-12T16:47:35.521Z"), + modifiedAt: new Date("2023-12-07T08:29:54.913Z"), id: "", isGranted: false, isRevoked: false, @@ -20,30 +20,30 @@ let value: BenefitsGrantsResponse = { userId: "", benefitId: "", customer: { - createdAt: new Date("2024-09-21T04:25:18.763Z"), - modifiedAt: new Date("2025-06-08T18:22:37.952Z"), + createdAt: new Date("2025-03-23T12:44:05.239Z"), + modifiedAt: new Date("2024-06-19T21:50:51.021Z"), id: "", metadata: { - "key": 361690, + "key": "", }, - email: "Rafael74@yahoo.com", + email: "Katlynn55@gmail.com", emailVerified: false, name: "", billingAddress: { - country: "Saint Vincent and the Grenadines", + country: "Panama", }, taxId: [ - "ua_vat", + "", ], organizationId: "", - avatarUrl: "https://spotless-entry.org/", + avatarUrl: "https://proud-lox.net/", }, properties: {}, }, ], pagination: { - totalCount: 734579, - maxPage: 334548, + totalCount: 987633, + maxPage: 981642, }, }, }; diff --git a/docs/models/operations/benefitslistresponse.md b/docs/models/operations/benefitslistresponse.md index 658ad00e..37bbf7f5 100644 --- a/docs/models/operations/benefitslistresponse.md +++ b/docs/models/operations/benefitslistresponse.md @@ -9,22 +9,31 @@ let value: BenefitsListResponse = { result: { items: [ { - createdAt: new Date("2025-07-11T04:58:53.619Z"), - modifiedAt: new Date("2024-05-22T08:02:04.970Z"), + createdAt: new Date("2023-02-19T01:11:58.352Z"), + modifiedAt: new Date("2025-07-23T17:59:18.862Z"), id: "", - description: "proofread schlep hotfoot", + description: + "excluding reproachfully slump mmm indeed requirement unwieldy mmm till", selectable: false, deletable: false, organizationId: "", properties: { - note: "", + prefix: "", + expires: { + ttl: 232193, + timeframe: "year", + }, + activations: { + limit: 48324, + enableCustomerAdmin: false, + }, + limitUsage: 283012, }, - isTaxApplicable: false, }, ], pagination: { - totalCount: 173996, - maxPage: 670567, + totalCount: 336707, + maxPage: 280695, }, }, }; diff --git a/docs/models/operations/benefitsupdatebenefitupdate.md b/docs/models/operations/benefitsupdatebenefitupdate.md index 1128b40d..a890b34a 100644 --- a/docs/models/operations/benefitsupdatebenefitupdate.md +++ b/docs/models/operations/benefitsupdatebenefitupdate.md @@ -28,7 +28,7 @@ const value: components.BenefitGitHubRepositoryUpdate = { properties: { repositoryOwner: "polarsource", repositoryName: "private_repo", - permission: "push", + permission: "maintain", }, }; ``` diff --git a/docs/models/operations/benefitsupdaterequest.md b/docs/models/operations/benefitsupdaterequest.md index 28d5b83a..b16c7afd 100644 --- a/docs/models/operations/benefitsupdaterequest.md +++ b/docs/models/operations/benefitsupdaterequest.md @@ -7,7 +7,13 @@ import { BenefitsUpdateRequest } from "@polar-sh/sdk/models/operations/benefitsu let value: BenefitsUpdateRequest = { id: "", - requestBody: {}, + requestBody: { + properties: { + repositoryOwner: "polarsource", + repositoryName: "private_repo", + permission: "pull", + }, + }, }; ``` diff --git a/docs/models/operations/benefittypefilter.md b/docs/models/operations/benefittypefilter.md index bc0ed555..92604062 100644 --- a/docs/models/operations/benefittypefilter.md +++ b/docs/models/operations/benefittypefilter.md @@ -8,14 +8,14 @@ Filter by benefit type. ### `components.BenefitType` ```typescript -const value: components.BenefitType = "custom"; +const value: components.BenefitType = "license_keys"; ``` ### `components.BenefitType[]` ```typescript const value: components.BenefitType[] = [ - "ads", + "license_keys", ]; ``` diff --git a/docs/models/operations/checkoutlinkslistresponse.md b/docs/models/operations/checkoutlinkslistresponse.md index 939508ea..9137cd8d 100644 --- a/docs/models/operations/checkoutlinkslistresponse.md +++ b/docs/models/operations/checkoutlinkslistresponse.md @@ -9,46 +9,50 @@ let value: CheckoutLinksListResponse = { result: { items: [ { - createdAt: new Date("2023-05-25T17:05:30.262Z"), - modifiedAt: new Date("2025-08-26T07:12:11.781Z"), + createdAt: new Date("2025-05-23T07:56:48.531Z"), + modifiedAt: new Date("2024-04-23T20:28:53.298Z"), id: "", metadata: { - "key": "", + "key": false, }, paymentProcessor: "stripe", clientSecret: "", - successUrl: "https://unwritten-parsnip.name", + successUrl: "https://corny-casket.net", label: "", allowDiscountCodes: false, productId: "", productPriceId: "", discountId: "", product: { - createdAt: new Date("2025-02-27T23:03:31.631Z"), - modifiedAt: new Date("2023-08-31T20:30:50.225Z"), + createdAt: new Date("2023-09-20T15:54:20.278Z"), + modifiedAt: new Date("2025-02-20T05:29:23.423Z"), id: "", name: "", - description: "certainly past for kiss representation", + description: "alive although until", isRecurring: false, isArchived: false, organizationId: "", prices: [ { - createdAt: new Date("2024-10-08T21:58:12.889Z"), - modifiedAt: new Date("2023-12-09T12:07:34.499Z"), + createdAt: new Date("2023-12-26T16:17:58.881Z"), + modifiedAt: new Date("2025-11-06T05:51:47.281Z"), id: "", isArchived: false, productId: "", + priceCurrency: "", + minimumAmount: 97554, + maximumAmount: 230217, + presetAmount: 299227, recurringInterval: "month", }, ], benefits: [ { - createdAt: new Date("2025-08-22T15:41:23.211Z"), - modifiedAt: new Date("2024-10-13T17:33:07.782Z"), + createdAt: new Date("2023-04-16T17:08:57.790Z"), + modifiedAt: new Date("2023-06-19T12:29:53.961Z"), id: "", - type: "ads", - description: "bravely tankful step-mother", + type: "license_keys", + description: "young that boo noted cheerfully bleach", selectable: false, deletable: false, organizationId: "", @@ -59,57 +63,55 @@ let value: CheckoutLinksListResponse = { id: "", organizationId: "", name: "", - path: "/opt/share", + path: "/usr/include", mimeType: "", - size: 96748, + size: 259370, storageVersion: "", checksumEtag: "", checksumSha256Base64: "", checksumSha256Hex: "", - lastModifiedAt: new Date("2024-11-11T07:14:50.067Z"), + lastModifiedAt: new Date("2024-10-03T07:59:59.919Z"), version: "", isUploaded: false, - createdAt: new Date("2023-12-18T13:55:58.887Z"), + createdAt: new Date("2024-04-26T19:48:43.329Z"), sizeReadable: "", - publicUrl: "https://stormy-colon.net", + publicUrl: "https://silent-alliance.net/", }, ], }, productPrice: { - createdAt: new Date("2025-12-14T06:40:09.825Z"), - modifiedAt: new Date("2023-05-06T23:30:24.719Z"), + createdAt: new Date("2023-11-03T08:03:35.528Z"), + modifiedAt: new Date("2025-10-09T15:49:23.914Z"), id: "", isArchived: false, productId: "", priceCurrency: "", - priceAmount: 744608, - recurringInterval: "year", + priceAmount: 463504, }, discount: { duration: "repeating", - type: "fixed", - amount: 716863, - currency: "UAE Dirham", - createdAt: new Date("2025-02-18T03:02:24.560Z"), - modifiedAt: new Date("2024-11-08T22:21:04.694Z"), + type: "percentage", + basisPoints: 102996, + createdAt: new Date("2024-08-06T20:26:04.230Z"), + modifiedAt: new Date("2023-08-15T06:07:54.440Z"), id: "", metadata: { - "key": 650063, + "key": false, }, name: "", code: "", - startsAt: new Date("2024-12-31T08:52:08.907Z"), - endsAt: new Date("2024-11-02T00:12:23.441Z"), - maxRedemptions: 201564, - redemptionsCount: 307891, + startsAt: new Date("2025-10-31T21:20:06.190Z"), + endsAt: new Date("2023-02-21T08:10:22.238Z"), + maxRedemptions: 645688, + redemptionsCount: 641713, organizationId: "", }, - url: "https://tangible-fishery.org", + url: "https://powerless-gradient.org/", }, ], pagination: { - totalCount: 946912, - maxPage: 712252, + totalCount: 479872, + maxPage: 824900, }, }, }; diff --git a/docs/models/operations/checkoutscustomclientconfirmrequest.md b/docs/models/operations/checkoutsclientconfirmrequest.md similarity index 87% rename from docs/models/operations/checkoutscustomclientconfirmrequest.md rename to docs/models/operations/checkoutsclientconfirmrequest.md index d0c12509..d7bf6cc2 100644 --- a/docs/models/operations/checkoutscustomclientconfirmrequest.md +++ b/docs/models/operations/checkoutsclientconfirmrequest.md @@ -1,11 +1,11 @@ -# CheckoutsCustomClientConfirmRequest +# CheckoutsClientConfirmRequest ## Example Usage ```typescript -import { CheckoutsCustomClientConfirmRequest } from "@polar-sh/sdk/models/operations/checkoutscustomclientconfirm.js"; +import { CheckoutsClientConfirmRequest } from "@polar-sh/sdk/models/operations/checkoutsclientconfirm.js"; -let value: CheckoutsCustomClientConfirmRequest = { +let value: CheckoutsClientConfirmRequest = { clientSecret: "", checkoutConfirmStripe: {}, }; diff --git a/docs/models/operations/checkoutscustomclientgetrequest.md b/docs/models/operations/checkoutsclientgetrequest.md similarity index 73% rename from docs/models/operations/checkoutscustomclientgetrequest.md rename to docs/models/operations/checkoutsclientgetrequest.md index 38b7078a..d25f37a6 100644 --- a/docs/models/operations/checkoutscustomclientgetrequest.md +++ b/docs/models/operations/checkoutsclientgetrequest.md @@ -1,11 +1,11 @@ -# CheckoutsCustomClientGetRequest +# CheckoutsClientGetRequest ## Example Usage ```typescript -import { CheckoutsCustomClientGetRequest } from "@polar-sh/sdk/models/operations/checkoutscustomclientget.js"; +import { CheckoutsClientGetRequest } from "@polar-sh/sdk/models/operations/checkoutsclientget.js"; -let value: CheckoutsCustomClientGetRequest = { +let value: CheckoutsClientGetRequest = { clientSecret: "", }; ``` diff --git a/docs/models/operations/checkoutscustomclientupdaterequest.md b/docs/models/operations/checkoutsclientupdaterequest.md similarity index 87% rename from docs/models/operations/checkoutscustomclientupdaterequest.md rename to docs/models/operations/checkoutsclientupdaterequest.md index 16735395..32bd9a31 100644 --- a/docs/models/operations/checkoutscustomclientupdaterequest.md +++ b/docs/models/operations/checkoutsclientupdaterequest.md @@ -1,11 +1,11 @@ -# CheckoutsCustomClientUpdateRequest +# CheckoutsClientUpdateRequest ## Example Usage ```typescript -import { CheckoutsCustomClientUpdateRequest } from "@polar-sh/sdk/models/operations/checkoutscustomclientupdate.js"; +import { CheckoutsClientUpdateRequest } from "@polar-sh/sdk/models/operations/checkoutsclientupdate.js"; -let value: CheckoutsCustomClientUpdateRequest = { +let value: CheckoutsClientUpdateRequest = { clientSecret: "", checkoutUpdatePublic: {}, }; diff --git a/docs/models/operations/checkoutscustomgetrequest.md b/docs/models/operations/checkoutscustomgetrequest.md deleted file mode 100644 index e62399e6..00000000 --- a/docs/models/operations/checkoutscustomgetrequest.md +++ /dev/null @@ -1,17 +0,0 @@ -# CheckoutsCustomGetRequest - -## Example Usage - -```typescript -import { CheckoutsCustomGetRequest } from "@polar-sh/sdk/models/operations/checkoutscustomget.js"; - -let value: CheckoutsCustomGetRequest = { - id: "", -}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------ | ------------------------ | ------------------------ | ------------------------ | -| `id` | *string* | :heavy_check_mark: | The checkout session ID. | \ No newline at end of file diff --git a/docs/models/operations/checkoutsgetrequest.md b/docs/models/operations/checkoutsgetrequest.md index 3891d539..840e1fdf 100644 --- a/docs/models/operations/checkoutsgetrequest.md +++ b/docs/models/operations/checkoutsgetrequest.md @@ -6,12 +6,12 @@ import { CheckoutsGetRequest } from "@polar-sh/sdk/models/operations/checkoutsget.js"; let value: CheckoutsGetRequest = { - id: "", + id: "", }; ``` ## Fields -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `id` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------ | ------------------------ | ------------------------ | ------------------------ | +| `id` | *string* | :heavy_check_mark: | The checkout session ID. | \ No newline at end of file diff --git a/docs/models/operations/checkoutscustomlistqueryparamorganizationidfilter.md b/docs/models/operations/checkoutslistqueryparamorganizationidfilter.md similarity index 78% rename from docs/models/operations/checkoutscustomlistqueryparamorganizationidfilter.md rename to docs/models/operations/checkoutslistqueryparamorganizationidfilter.md index c61024f1..6522c5e1 100644 --- a/docs/models/operations/checkoutscustomlistqueryparamorganizationidfilter.md +++ b/docs/models/operations/checkoutslistqueryparamorganizationidfilter.md @@ -1,4 +1,4 @@ -# CheckoutsCustomListQueryParamOrganizationIDFilter +# CheckoutsListQueryParamOrganizationIDFilter Filter by organization ID. diff --git a/docs/models/operations/checkoutscustomlistqueryparamproductidfilter.md b/docs/models/operations/checkoutslistqueryparamproductidfilter.md similarity index 80% rename from docs/models/operations/checkoutscustomlistqueryparamproductidfilter.md rename to docs/models/operations/checkoutslistqueryparamproductidfilter.md index 0eb79a42..d1b04d20 100644 --- a/docs/models/operations/checkoutscustomlistqueryparamproductidfilter.md +++ b/docs/models/operations/checkoutslistqueryparamproductidfilter.md @@ -1,4 +1,4 @@ -# CheckoutsCustomListQueryParamProductIDFilter +# CheckoutsListQueryParamProductIDFilter Filter by product ID. diff --git a/docs/models/operations/checkoutscustomlistrequest.md b/docs/models/operations/checkoutslistrequest.md similarity index 93% rename from docs/models/operations/checkoutscustomlistrequest.md rename to docs/models/operations/checkoutslistrequest.md index 7b1508ae..9f6f728c 100644 --- a/docs/models/operations/checkoutscustomlistrequest.md +++ b/docs/models/operations/checkoutslistrequest.md @@ -1,19 +1,19 @@ -# CheckoutsCustomListRequest +# CheckoutsListRequest ## Example Usage ```typescript -import { CheckoutsCustomListRequest } from "@polar-sh/sdk/models/operations/checkoutscustomlist.js"; +import { CheckoutsListRequest } from "@polar-sh/sdk/models/operations/checkoutslist.js"; -let value: CheckoutsCustomListRequest = {}; +let value: CheckoutsListRequest = {}; ``` ## Fields | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `organizationId` | *operations.CheckoutsCustomListQueryParamOrganizationIDFilter* | :heavy_minus_sign: | Filter by organization ID. | -| `productId` | *operations.CheckoutsCustomListQueryParamProductIDFilter* | :heavy_minus_sign: | Filter by product ID. | +| `organizationId` | *operations.CheckoutsListQueryParamOrganizationIDFilter* | :heavy_minus_sign: | Filter by organization ID. | +| `productId` | *operations.CheckoutsListQueryParamProductIDFilter* | :heavy_minus_sign: | Filter by product ID. | | `page` | *number* | :heavy_minus_sign: | Page number, defaults to 1. | | `limit` | *number* | :heavy_minus_sign: | Size of a page, defaults to 10. Maximum is 100. | | `sorting` | [components.CheckoutSortProperty](../../models/components/checkoutsortproperty.md)[] | :heavy_minus_sign: | Sorting criterion. Several criteria can be used simultaneously and will be applied in order. Add a minus sign `-` before the criteria name to sort by descending order. | \ No newline at end of file diff --git a/docs/models/operations/checkoutscustomlistresponse.md b/docs/models/operations/checkoutslistresponse.md similarity index 64% rename from docs/models/operations/checkoutscustomlistresponse.md rename to docs/models/operations/checkoutslistresponse.md index 17581f82..5f5fd5da 100644 --- a/docs/models/operations/checkoutscustomlistresponse.md +++ b/docs/models/operations/checkoutslistresponse.md @@ -1,29 +1,29 @@ -# CheckoutsCustomListResponse +# CheckoutsListResponse ## Example Usage ```typescript -import { CheckoutsCustomListResponse } from "@polar-sh/sdk/models/operations/checkoutscustomlist.js"; +import { CheckoutsListResponse } from "@polar-sh/sdk/models/operations/checkoutslist.js"; -let value: CheckoutsCustomListResponse = { +let value: CheckoutsListResponse = { result: { items: [ { - createdAt: new Date("2023-10-23T09:17:13.863Z"), - modifiedAt: new Date("2024-10-18T07:47:44.539Z"), + createdAt: new Date("2023-07-23T21:38:00.079Z"), + modifiedAt: new Date("2025-09-11T23:55:44.792Z"), id: "", paymentProcessor: "stripe", - status: "open", + status: "confirmed", clientSecret: "", - url: "https://important-brook.name/", - expiresAt: new Date("2025-05-16T07:21:18.933Z"), - successUrl: "https://big-nun.biz/", + url: "https://inexperienced-adaptation.biz", + expiresAt: new Date("2025-07-04T13:03:20.225Z"), + successUrl: "https://that-gown.biz/", embedOrigin: "", - amount: 380035, - taxAmount: 192779, - currency: "New Zealand Dollar", - subtotalAmount: 818926, - totalAmount: 858543, + amount: 800727, + taxAmount: 72288, + currency: "Tanzanian Shilling", + subtotalAmount: 419866, + totalAmount: 328710, productId: "", productPriceId: "", discountId: "", @@ -38,45 +38,46 @@ let value: CheckoutsCustomListResponse = { customerEmail: "", customerIpAddress: "", customerBillingAddress: { - country: "Samoa", + country: "Croatia", }, customerTaxId: "", paymentProcessorMetadata: { "key": "", }, metadata: { - "key": 555825, + "key": 947946, }, product: { - createdAt: new Date("2023-08-11T11:47:49.202Z"), - modifiedAt: new Date("2023-01-17T15:41:24.386Z"), + createdAt: new Date("2024-01-22T06:01:41.855Z"), + modifiedAt: new Date("2023-09-10T19:30:29.998Z"), id: "", name: "", - description: "to aha cripple parade whoa horde range", + description: "conjecture gut with shimmering", isRecurring: false, isArchived: false, organizationId: "", prices: [ { - createdAt: new Date("2023-04-25T07:49:56.848Z"), - modifiedAt: new Date("2023-02-06T23:30:01.627Z"), + createdAt: new Date("2024-09-26T16:42:50.105Z"), + modifiedAt: new Date("2023-01-09T20:45:49.123Z"), id: "", isArchived: false, productId: "", priceCurrency: "", - minimumAmount: 473214, - maximumAmount: 575300, - presetAmount: 351869, + minimumAmount: 271660, + maximumAmount: 486148, + presetAmount: 180507, + recurringInterval: "year", }, ], benefits: [ { - createdAt: new Date("2024-06-18T20:31:13.886Z"), - modifiedAt: new Date("2023-05-19T22:17:21.271Z"), + createdAt: new Date("2023-04-26T07:49:59.337Z"), + modifiedAt: new Date("2025-03-03T05:53:22.940Z"), id: "", - type: "custom", + type: "downloadables", description: - "essence think plan boo barring paltry what how ouch splosh", + "supposing than which angrily colorfully mostly impact ick", selectable: false, deletable: false, organizationId: "", @@ -87,38 +88,39 @@ let value: CheckoutsCustomListResponse = { id: "", organizationId: "", name: "", - path: "/etc/defaults", + path: "/private/tmp", mimeType: "", - size: 532711, + size: 291293, storageVersion: "", checksumEtag: "", checksumSha256Base64: "", checksumSha256Hex: "", - lastModifiedAt: new Date("2023-08-15T06:07:54.440Z"), + lastModifiedAt: new Date("2023-04-06T21:56:28.637Z"), version: "", isUploaded: false, - createdAt: new Date("2025-01-30T08:56:13.071Z"), + createdAt: new Date("2025-08-21T18:01:23.530Z"), sizeReadable: "", - publicUrl: "https://athletic-parsnip.name", + publicUrl: "https://stiff-runway.net", }, ], }, productPrice: { - createdAt: new Date("2024-03-03T07:12:01.015Z"), - modifiedAt: new Date("2025-12-17T17:59:43.205Z"), + createdAt: new Date("2025-06-11T07:56:22.222Z"), + modifiedAt: new Date("2025-03-15T18:23:55.861Z"), id: "", isArchived: false, productId: "", priceCurrency: "", - minimumAmount: 479872, - maximumAmount: 824900, - presetAmount: 929707, + minimumAmount: 766757, + maximumAmount: 759611, + presetAmount: 66920, recurringInterval: "year", }, discount: { duration: "repeating", type: "fixed", - basisPoints: 272187, + amount: 212124, + currency: "Costa Rican Colon", id: "", name: "", code: "", @@ -128,29 +130,29 @@ let value: CheckoutsCustomListResponse = { { customFieldId: "", customField: { - createdAt: new Date("2024-04-09T14:14:15.442Z"), - modifiedAt: new Date("2023-06-28T09:01:18.116Z"), + createdAt: new Date("2024-06-30T02:18:36.520Z"), + modifiedAt: new Date("2025-05-09T22:10:56.397Z"), id: "", metadata: { - "key": "", + "key": 992044, }, slug: "", name: "", organizationId: "", properties: {}, }, - order: 714891, + order: 771027, required: false, }, ], customerMetadata: { - "key": "", + "key": false, }, }, ], pagination: { - totalCount: 633006, - maxPage: 365539, + totalCount: 411321, + maxPage: 120809, }, }, }; diff --git a/docs/models/operations/checkoutscustomupdaterequest.md b/docs/models/operations/checkoutsupdaterequest.md similarity index 87% rename from docs/models/operations/checkoutscustomupdaterequest.md rename to docs/models/operations/checkoutsupdaterequest.md index 89053333..4ede0750 100644 --- a/docs/models/operations/checkoutscustomupdaterequest.md +++ b/docs/models/operations/checkoutsupdaterequest.md @@ -1,11 +1,11 @@ -# CheckoutsCustomUpdateRequest +# CheckoutsUpdateRequest ## Example Usage ```typescript -import { CheckoutsCustomUpdateRequest } from "@polar-sh/sdk/models/operations/checkoutscustomupdate.js"; +import { CheckoutsUpdateRequest } from "@polar-sh/sdk/models/operations/checkoutsupdate.js"; -let value: CheckoutsCustomUpdateRequest = { +let value: CheckoutsUpdateRequest = { id: "", checkoutUpdate: {}, }; diff --git a/docs/models/operations/customerportalbenefitgrantslistresponse.md b/docs/models/operations/customerportalbenefitgrantslistresponse.md index 82e09de1..65b0c4f9 100644 --- a/docs/models/operations/customerportalbenefitgrantslistresponse.md +++ b/docs/models/operations/customerportalbenefitgrantslistresponse.md @@ -9,11 +9,11 @@ let value: CustomerPortalBenefitGrantsListResponse = { result: { items: [ { - createdAt: new Date("2023-04-12T21:22:01.938Z"), - modifiedAt: new Date("2023-08-18T16:02:32.488Z"), + createdAt: new Date("2024-04-29T23:40:43.285Z"), + modifiedAt: new Date("2024-01-19T17:57:19.906Z"), id: "", - grantedAt: new Date("2024-08-03T11:54:03.969Z"), - revokedAt: new Date("2024-02-23T19:06:55.917Z"), + grantedAt: new Date("2025-03-18T04:49:50.317Z"), + revokedAt: new Date("2023-07-20T22:17:57.471Z"), customerId: "", benefitId: "", subscriptionId: "", @@ -21,17 +21,17 @@ let value: CustomerPortalBenefitGrantsListResponse = { isGranted: false, isRevoked: false, customer: { - createdAt: new Date("2023-11-21T05:08:37.946Z"), - modifiedAt: new Date("2023-02-23T01:56:49.955Z"), + createdAt: new Date("2024-12-03T04:34:28.027Z"), + modifiedAt: new Date("2023-03-07T06:28:40.969Z"), id: "", - email: "Raoul.Watsica13@gmail.com", + email: "Ona74@hotmail.com", emailVerified: false, name: "", billingAddress: { - country: "Mongolia", + country: "Niger", }, taxId: [ - "ca_qst", + "om_vat", ], oauthAccounts: { "key": { @@ -41,29 +41,30 @@ let value: CustomerPortalBenefitGrantsListResponse = { }, }, benefit: { - createdAt: new Date("2024-03-23T19:55:15.274Z"), - modifiedAt: new Date("2023-05-12T05:27:49.525Z"), + createdAt: new Date("2023-08-31T20:30:50.225Z"), + modifiedAt: new Date("2023-11-27T20:53:52.117Z"), id: "", - description: "exacerbate frankly cautiously nocturnal", + description: + "cheerfully hasty behind developmental meanwhile entwine hubris at aching", selectable: false, deletable: false, organizationId: "", organization: { - createdAt: new Date("2025-05-07T19:52:37.336Z"), - modifiedAt: new Date("2024-02-26T15:17:44.821Z"), + createdAt: new Date("2025-07-21T21:47:53.222Z"), + modifiedAt: new Date("2024-05-04T22:23:11.834Z"), id: "", name: "", slug: "", - avatarUrl: "https://finished-disappointment.name/", + avatarUrl: "https://political-fax.org/", bio: "", - company: "Barton, Batz and Barrows", + company: "Cummings, Rutherford and Fritsch", blog: "", location: "", - email: "Kristy30@yahoo.com", + email: "Wilson20@gmail.com", twitterUsername: "", - pledgeMinimumAmount: 850938, + pledgeMinimumAmount: 89104, pledgeBadgeShowAmount: false, - defaultUpfrontSplitToContributors: 500778, + defaultUpfrontSplitToContributors: 716863, profileSettings: {}, featureSettings: { issueFundingEnabled: false, @@ -71,20 +72,19 @@ let value: CustomerPortalBenefitGrantsListResponse = { subscriptionSettings: { allowMultipleSubscriptions: false, allowCustomerUpdates: false, - prorationBehavior: "prorate", + prorationBehavior: "invoice", }, }, properties: { - repositoryOwner: "polarsource", - repositoryName: "private_repo", + note: "", }, }, properties: {}, }, ], pagination: { - totalCount: 609764, - maxPage: 240842, + totalCount: 710882, + maxPage: 618551, }, }, }; diff --git a/docs/models/operations/customerportalbenefitgrantsupdaterequest.md b/docs/models/operations/customerportalbenefitgrantsupdaterequest.md index b2447b44..feb9e5b8 100644 --- a/docs/models/operations/customerportalbenefitgrantsupdaterequest.md +++ b/docs/models/operations/customerportalbenefitgrantsupdaterequest.md @@ -7,7 +7,11 @@ import { CustomerPortalBenefitGrantsUpdateRequest } from "@polar-sh/sdk/models/o let value: CustomerPortalBenefitGrantsUpdateRequest = { id: "", - customerBenefitGrantUpdate: {}, + customerBenefitGrantUpdate: { + properties: { + accountId: "", + }, + }, }; ``` diff --git a/docs/models/operations/customerportaldownloadableslistresponse.md b/docs/models/operations/customerportaldownloadableslistresponse.md index 7f3ab15e..beb6076e 100644 --- a/docs/models/operations/customerportaldownloadableslistresponse.md +++ b/docs/models/operations/customerportaldownloadableslistresponse.md @@ -15,28 +15,28 @@ let value: CustomerPortalDownloadablesListResponse = { id: "", organizationId: "", name: "", - path: "/usr/src", + path: "/Users", mimeType: "", - size: 391395, + size: 666396, storageVersion: "", checksumEtag: "", checksumSha256Base64: "", checksumSha256Hex: "", - lastModifiedAt: new Date("2025-09-22T23:51:29.754Z"), + lastModifiedAt: new Date("2024-11-02T00:12:23.441Z"), download: { - url: "https://shameful-consistency.org", - expiresAt: new Date("2025-05-20T04:09:40.373Z"), + url: "https://funny-sushi.org/", + expiresAt: new Date("2024-01-04T19:23:41.792Z"), }, version: "", isUploaded: false, - service: "downloadable", + service: "organization_avatar", sizeReadable: "", }, }, ], pagination: { - totalCount: 899586, - maxPage: 545395, + totalCount: 946912, + maxPage: 712252, }, }, }; diff --git a/docs/models/operations/customerportallicensekeyslistresponse.md b/docs/models/operations/customerportallicensekeyslistresponse.md index d5541e3d..957e935c 100644 --- a/docs/models/operations/customerportallicensekeyslistresponse.md +++ b/docs/models/operations/customerportallicensekeyslistresponse.md @@ -15,43 +15,43 @@ let value: CustomerPortalLicenseKeysListResponse = { customerId: "", user: { id: "", - email: "Reymundo_Heathcote@hotmail.com", + email: "Darien_Blanda@gmail.com", publicName: "", }, customer: { - createdAt: new Date("2025-06-16T09:26:41.863Z"), - modifiedAt: new Date("2025-04-29T04:35:05.789Z"), + createdAt: new Date("2024-05-11T20:46:06.747Z"), + modifiedAt: new Date("2025-10-08T12:39:56.525Z"), id: "", metadata: { - "key": 924347, + "key": false, }, - email: "Hilda_Ruecker@gmail.com", + email: "Katharina76@gmail.com", emailVerified: false, name: "", billingAddress: { - country: "Venezuela", + country: "Romania", }, taxId: [ "", ], organizationId: "", - avatarUrl: "https://aged-newsprint.com/", + avatarUrl: "https://deafening-ad.net/", }, benefitId: "", key: "", displayKey: "", - status: "disabled", - limitActivations: 884184, - usage: 901209, - limitUsage: 648245, - validations: 31026, - lastValidatedAt: new Date("2024-09-07T18:44:00.744Z"), - expiresAt: new Date("2023-03-26T23:06:39.615Z"), + status: "granted", + limitActivations: 435439, + usage: 92611, + limitUsage: 538374, + validations: 408442, + lastValidatedAt: new Date("2023-10-27T08:26:38.601Z"), + expiresAt: new Date("2025-11-07T05:30:16.112Z"), }, ], pagination: { - totalCount: 82141, - maxPage: 55687, + totalCount: 310417, + maxPage: 669673, }, }, }; diff --git a/docs/models/operations/customerportalorderslistqueryparamproductpricetypefilter.md b/docs/models/operations/customerportalorderslistqueryparamproductpricetypefilter.md index a9ac13c2..9a31ecbd 100644 --- a/docs/models/operations/customerportalorderslistqueryparamproductpricetypefilter.md +++ b/docs/models/operations/customerportalorderslistqueryparamproductpricetypefilter.md @@ -8,7 +8,7 @@ Filter by product price type. `recurring` will return orders corresponding to su ### `components.ProductPriceType` ```typescript -const value: components.ProductPriceType = "one_time"; +const value: components.ProductPriceType = "recurring"; ``` ### `components.ProductPriceType[]` diff --git a/docs/models/operations/customerportalorderslistresponse.md b/docs/models/operations/customerportalorderslistresponse.md index 4f4c045c..a6c859b6 100644 --- a/docs/models/operations/customerportalorderslistresponse.md +++ b/docs/models/operations/customerportalorderslistresponse.md @@ -9,44 +9,47 @@ let value: CustomerPortalOrdersListResponse = { result: { items: [ { - createdAt: new Date("2024-09-13T07:03:50.482Z"), - modifiedAt: new Date("2025-05-01T10:56:04.818Z"), + createdAt: new Date("2025-01-23T09:01:57.863Z"), + modifiedAt: new Date("2025-05-08T14:16:36.701Z"), id: "", - amount: 783242, - taxAmount: 298221, - currency: "Riel", + amount: 649938, + taxAmount: 409155, + currency: "Dominican Peso", customerId: "", productId: "", productPriceId: "", subscriptionId: "", userId: "", product: { - createdAt: new Date("2024-07-11T09:17:17.799Z"), - modifiedAt: new Date("2023-01-06T18:31:00.573Z"), + createdAt: new Date("2025-11-14T12:22:42.084Z"), + modifiedAt: new Date("2024-12-08T17:18:13.370Z"), id: "", name: "", - description: - "milky rotten yahoo though gut neatly gracefully pish aw chairperson", + description: "procrastinate those yahoo", isRecurring: false, isArchived: false, organizationId: "", prices: [ { - createdAt: new Date("2024-11-24T15:28:40.373Z"), - modifiedAt: new Date("2023-04-03T02:30:21.355Z"), + createdAt: new Date("2024-06-06T11:37:05.080Z"), + modifiedAt: new Date("2024-11-21T22:44:43.009Z"), id: "", isArchived: false, productId: "", - recurringInterval: "month", + priceCurrency: "", + minimumAmount: 63522, + maximumAmount: 229557, + presetAmount: 566873, + recurringInterval: "year", }, ], benefits: [ { - createdAt: new Date("2023-02-22T10:37:19.141Z"), - modifiedAt: new Date("2023-06-13T23:31:57.151Z"), + createdAt: new Date("2023-09-22T17:39:37.386Z"), + modifiedAt: new Date("2023-04-12T21:22:01.938Z"), id: "", type: "ads", - description: "underneath lazily westernise near armchair outfox", + description: "er aha hence outside thread modulo hence", selectable: false, deletable: false, organizationId: "", @@ -57,85 +60,85 @@ let value: CustomerPortalOrdersListResponse = { id: "", organizationId: "", name: "", - path: "/usr/lib", + path: "/sbin", mimeType: "", - size: 794795, + size: 671207, storageVersion: "", checksumEtag: "", checksumSha256Base64: "", checksumSha256Hex: "", - lastModifiedAt: new Date("2024-12-30T09:58:26.971Z"), + lastModifiedAt: new Date("2023-02-09T05:05:40.460Z"), version: "", isUploaded: false, - createdAt: new Date("2025-12-30T22:13:06.413Z"), + createdAt: new Date("2023-02-12T21:33:27.477Z"), sizeReadable: "", - publicUrl: "https://plain-sushi.net", + publicUrl: "https://murky-monasticism.name/", }, ], organization: { - createdAt: new Date("2023-05-23T19:42:16.496Z"), - modifiedAt: new Date("2025-04-22T20:02:07.778Z"), + createdAt: new Date("2024-06-14T11:17:00.227Z"), + modifiedAt: new Date("2024-09-06T07:42:30.967Z"), id: "", name: "", slug: "", - avatarUrl: "https://creamy-elevator.net/", + avatarUrl: "https://unwritten-step.name/", bio: "", - company: "Hegmann and Sons", + company: "Monahan Group", blog: "", location: "", - email: "Elfrieda53@gmail.com", + email: "Sierra_Upton73@gmail.com", twitterUsername: "", - pledgeMinimumAmount: 962090, + pledgeMinimumAmount: 887719, pledgeBadgeShowAmount: false, - defaultUpfrontSplitToContributors: 79278, + defaultUpfrontSplitToContributors: 793954, profileSettings: {}, featureSettings: {}, subscriptionSettings: { allowMultipleSubscriptions: false, allowCustomerUpdates: false, - prorationBehavior: "prorate", + prorationBehavior: "invoice", }, }, }, productPrice: { - createdAt: new Date("2023-01-20T19:32:27.742Z"), - modifiedAt: new Date("2024-01-22T16:24:11.216Z"), + createdAt: new Date("2025-02-02T10:55:26.311Z"), + modifiedAt: new Date("2025-06-24T18:17:35.994Z"), id: "", isArchived: false, productId: "", priceCurrency: "", - minimumAmount: 770461, - maximumAmount: 122517, - presetAmount: 244727, + minimumAmount: 230328, + maximumAmount: 343271, + presetAmount: 806742, }, subscription: { - createdAt: new Date("2023-05-12T02:08:01.225Z"), - modifiedAt: new Date("2023-02-07T10:39:04.040Z"), + createdAt: new Date("2024-02-11T20:26:54.603Z"), + modifiedAt: new Date("2024-12-17T17:23:25.138Z"), id: "", - amount: 837651, - currency: "Mexican Peso", + amount: 818790, + currency: "Leone", recurringInterval: "year", - status: "incomplete", - currentPeriodStart: new Date("2025-01-15T07:56:56.753Z"), - currentPeriodEnd: new Date("2024-09-22T05:59:40.163Z"), + status: "unpaid", + currentPeriodStart: new Date("2023-11-23T10:40:17.877Z"), + currentPeriodEnd: new Date("2024-04-14T17:43:01.391Z"), cancelAtPeriodEnd: false, - canceledAt: new Date("2025-07-07T05:15:36.403Z"), - startedAt: new Date("2024-06-10T11:25:59.466Z"), - endsAt: new Date("2023-11-12T01:52:40.233Z"), - endedAt: new Date("2024-07-10T23:13:51.219Z"), + canceledAt: new Date("2025-04-26T20:46:56.899Z"), + startedAt: new Date("2025-04-15T00:49:44.087Z"), + endsAt: new Date("2024-12-23T22:20:10.160Z"), + endedAt: new Date("2023-05-18T15:26:11.061Z"), customerId: "", productId: "", priceId: "", discountId: "", checkoutId: "", - customerCancellationReason: "switched_service", + customerCancellationReason: "too_complex", customerCancellationComment: "", }, }, ], pagination: { - totalCount: 686124, - maxPage: 944158, + totalCount: 965902, + maxPage: 263923, }, }, }; diff --git a/docs/models/operations/customerportalsubscriptionslistresponse.md b/docs/models/operations/customerportalsubscriptionslistresponse.md index 1b209683..5a6b6ee4 100644 --- a/docs/models/operations/customerportalsubscriptionslistresponse.md +++ b/docs/models/operations/customerportalsubscriptionslistresponse.md @@ -9,54 +9,55 @@ let value: CustomerPortalSubscriptionsListResponse = { result: { items: [ { - createdAt: new Date("2024-02-06T19:20:56.885Z"), - modifiedAt: new Date("2024-09-17T14:26:52.744Z"), + createdAt: new Date("2023-03-17T14:15:47.145Z"), + modifiedAt: new Date("2023-01-17T04:26:28.465Z"), id: "", - amount: 355205, - currency: "Tugrik", + amount: 603437, + currency: "Aruban Guilder", recurringInterval: "year", - status: "trialing", - currentPeriodStart: new Date("2025-10-18T21:22:24.698Z"), - currentPeriodEnd: new Date("2025-04-22T11:09:07.785Z"), + status: "unpaid", + currentPeriodStart: new Date("2025-09-14T17:23:49.285Z"), + currentPeriodEnd: new Date("2024-12-11T11:25:49.041Z"), cancelAtPeriodEnd: false, - canceledAt: new Date("2025-03-07T10:39:53.773Z"), - startedAt: new Date("2025-06-02T02:35:41.235Z"), - endsAt: new Date("2024-08-19T03:32:25.730Z"), - endedAt: new Date("2023-08-14T10:53:30.820Z"), + canceledAt: new Date("2023-02-04T00:06:32.788Z"), + startedAt: new Date("2024-09-07T18:44:00.744Z"), + endsAt: new Date("2023-03-26T23:06:39.615Z"), + endedAt: new Date("2023-04-01T00:38:08.817Z"), customerId: "", productId: "", priceId: "", discountId: "", checkoutId: "", - customerCancellationReason: "other", + customerCancellationReason: "customer_service", customerCancellationComment: "", userId: "", product: { - createdAt: new Date("2023-11-07T11:10:32.200Z"), - modifiedAt: new Date("2023-11-07T09:51:48.285Z"), + createdAt: new Date("2023-05-14T02:27:58.691Z"), + modifiedAt: new Date("2024-08-02T14:29:39.309Z"), id: "", name: "", - description: "notwithstanding solicit um via quick apud unfinished", + description: "which milky rotten yahoo though gut neatly", isRecurring: false, isArchived: false, organizationId: "", prices: [ { - createdAt: new Date("2024-09-05T16:51:20.305Z"), - modifiedAt: new Date("2025-01-01T13:16:47.178Z"), + createdAt: new Date("2025-11-17T05:07:47.437Z"), + modifiedAt: new Date("2025-06-03T00:37:14.106Z"), id: "", isArchived: false, productId: "", + priceCurrency: "", + priceAmount: 900208, }, ], benefits: [ { - createdAt: new Date("2024-06-05T14:27:13.096Z"), - modifiedAt: new Date("2024-08-26T21:33:54.654Z"), + createdAt: new Date("2023-02-25T04:35:19.601Z"), + modifiedAt: new Date("2023-11-26T14:30:46.698Z"), id: "", - type: "downloadables", - description: - "cemetery which decongestant convoke railway singing clear huzzah even sew", + type: "custom", + description: "foretell given scarcely huddle underneath lazily", selectable: false, deletable: false, organizationId: "", @@ -67,37 +68,37 @@ let value: CustomerPortalSubscriptionsListResponse = { id: "", organizationId: "", name: "", - path: "/etc/namedb", + path: "/usr/libdata", mimeType: "", - size: 837785, + size: 361350, storageVersion: "", checksumEtag: "", checksumSha256Base64: "", checksumSha256Hex: "", - lastModifiedAt: new Date("2023-01-21T17:45:11.070Z"), + lastModifiedAt: new Date("2023-03-01T19:51:18.551Z"), version: "", isUploaded: false, - createdAt: new Date("2024-03-09T00:17:48.149Z"), + createdAt: new Date("2025-06-13T06:37:29.999Z"), sizeReadable: "", - publicUrl: "https://dead-pile.org", + publicUrl: "https://lawful-wear.net", }, ], organization: { - createdAt: new Date("2023-03-30T16:27:34.642Z"), - modifiedAt: new Date("2023-01-11T02:56:26.303Z"), + createdAt: new Date("2023-05-27T18:45:21.938Z"), + modifiedAt: new Date("2024-01-20T10:45:07.072Z"), id: "", name: "", slug: "", - avatarUrl: "https://staid-heartbeat.info", + avatarUrl: "https://stable-sticker.name", bio: "", - company: "Smitham Group", + company: "Hirthe - Hauck", blog: "", location: "", - email: "Bruce_Littel14@hotmail.com", + email: "Candida16@hotmail.com", twitterUsername: "", - pledgeMinimumAmount: 215097, + pledgeMinimumAmount: 431433, pledgeBadgeShowAmount: false, - defaultUpfrontSplitToContributors: 517526, + defaultUpfrontSplitToContributors: 905909, profileSettings: {}, featureSettings: {}, subscriptionSettings: { @@ -108,20 +109,17 @@ let value: CustomerPortalSubscriptionsListResponse = { }, }, price: { - createdAt: new Date("2025-04-19T15:12:09.561Z"), - modifiedAt: new Date("2023-03-27T08:21:58.735Z"), + createdAt: new Date("2025-05-21T02:16:12.635Z"), + modifiedAt: new Date("2024-12-30T09:58:26.971Z"), id: "", isArchived: false, productId: "", - priceCurrency: "", - priceAmount: 898190, - recurringInterval: "month", }, }, ], pagination: { - totalCount: 753003, - maxPage: 154610, + totalCount: 999020, + maxPage: 716292, }, }, }; diff --git a/docs/models/operations/customerslistresponse.md b/docs/models/operations/customerslistresponse.md index 0e3bc25c..6ddb3c90 100644 --- a/docs/models/operations/customerslistresponse.md +++ b/docs/models/operations/customerslistresponse.md @@ -9,28 +9,28 @@ let value: CustomersListResponse = { result: { items: [ { - createdAt: new Date("2024-12-15T11:06:40.873Z"), - modifiedAt: new Date("2025-04-18T04:27:12.304Z"), + createdAt: new Date("2023-03-19T06:56:52.426Z"), + modifiedAt: new Date("2024-08-26T02:17:15.307Z"), id: "", metadata: { - "key": 832553, + "key": "", }, - email: "Josefa.Casper98@hotmail.com", + email: "Tyson18@gmail.com", emailVerified: false, name: "", billingAddress: { - country: "New Caledonia", + country: "France", }, taxId: [ - "eu_vat", + "jp_cn", ], organizationId: "", - avatarUrl: "https://minor-interior.name/", + avatarUrl: "https://accurate-fencing.biz", }, ], pagination: { - totalCount: 63522, - maxPage: 229557, + totalCount: 781770, + maxPage: 389060, }, }, }; diff --git a/docs/models/operations/customfieldslistresponse.md b/docs/models/operations/customfieldslistresponse.md index 6ca79bd2..f353bf23 100644 --- a/docs/models/operations/customfieldslistresponse.md +++ b/docs/models/operations/customfieldslistresponse.md @@ -9,21 +9,28 @@ let value: CustomFieldsListResponse = { result: { items: [ { - createdAt: new Date("2023-03-24T00:32:50.154Z"), - modifiedAt: new Date("2025-09-11T06:52:42.475Z"), + createdAt: new Date("2025-02-10T10:40:30.475Z"), + modifiedAt: new Date("2023-05-22T16:27:14.359Z"), id: "", metadata: { - "key": 357041, + "key": "", }, slug: "", name: "", organizationId: "", - properties: {}, + properties: { + options: [ + { + value: "", + label: "", + }, + ], + }, }, ], pagination: { - totalCount: 453344, - maxPage: 922927, + totalCount: 457456, + maxPage: 423899, }, }, }; diff --git a/docs/models/operations/customfieldtypefilter.md b/docs/models/operations/customfieldtypefilter.md index e9e58070..64e771da 100644 --- a/docs/models/operations/customfieldtypefilter.md +++ b/docs/models/operations/customfieldtypefilter.md @@ -8,14 +8,14 @@ Filter by custom field type. ### `components.CustomFieldType` ```typescript -const value: components.CustomFieldType = "number"; +const value: components.CustomFieldType = "select"; ``` ### `components.CustomFieldType[]` ```typescript const value: components.CustomFieldType[] = [ - "number", + "checkbox", ]; ``` diff --git a/docs/models/operations/discountslistresponse.md b/docs/models/operations/discountslistresponse.md index 43d86aa8..bdf5d51f 100644 --- a/docs/models/operations/discountslistresponse.md +++ b/docs/models/operations/discountslistresponse.md @@ -9,31 +9,32 @@ let value: DiscountsListResponse = { result: { items: [ { - duration: "forever", - durationInMonths: 432668, - type: "fixed", - amount: 524576, - currency: "Saint Helena Pound", - createdAt: new Date("2025-04-27T00:34:32.428Z"), - modifiedAt: new Date("2025-03-15T09:53:44.348Z"), + duration: "repeating", + durationInMonths: 53999, + type: "percentage", + amount: 365539, + currency: "CFA Franc BEAC", + createdAt: new Date("2023-11-14T14:51:03.070Z"), + modifiedAt: new Date("2025-11-27T23:06:00.390Z"), id: "", metadata: { - "key": "", + "key": false, }, name: "", code: "", - startsAt: new Date("2023-03-22T05:40:31.125Z"), - endsAt: new Date("2023-07-05T06:38:06.989Z"), - maxRedemptions: 9914, - redemptionsCount: 755787, + startsAt: new Date("2023-08-20T01:03:14.805Z"), + endsAt: new Date("2025-09-10T04:35:18.843Z"), + maxRedemptions: 310675, + redemptionsCount: 442312, organizationId: "", products: [ { - createdAt: new Date("2023-08-13T04:54:32.640Z"), - modifiedAt: new Date("2024-04-22T05:47:56.110Z"), + createdAt: new Date("2024-04-20T12:22:07.487Z"), + modifiedAt: new Date("2023-06-28T21:12:27.512Z"), id: "", name: "", - description: "with vice mount", + description: + "properly emphasise outdo meh victoriously scared descendant", isRecurring: false, isArchived: false, organizationId: "", @@ -42,8 +43,8 @@ let value: DiscountsListResponse = { }, ], pagination: { - totalCount: 200628, - maxPage: 638376, + totalCount: 436394, + maxPage: 29070, }, }, }; diff --git a/docs/models/operations/eventslistresponse.md b/docs/models/operations/eventslistresponse.md index 78028aed..1a7a4bc6 100644 --- a/docs/models/operations/eventslistresponse.md +++ b/docs/models/operations/eventslistresponse.md @@ -10,20 +10,20 @@ let value: EventsListResponse = { items: [ { metadata: { - "key": false, + "key": "", }, id: "", - timestamp: new Date("2024-10-08T23:12:56.036Z"), + timestamp: new Date("2025-04-22T20:02:07.778Z"), name: "", - source: "user", + source: "system", organizationId: "", customerId: "", externalCustomerId: "", }, ], pagination: { - totalCount: 598626, - maxPage: 232318, + totalCount: 148673, + maxPage: 290460, }, }, }; diff --git a/docs/models/operations/externalorganizationslistresponse.md b/docs/models/operations/externalorganizationslistresponse.md index 5039a5d3..e13f1171 100644 --- a/docs/models/operations/externalorganizationslistresponse.md +++ b/docs/models/operations/externalorganizationslistresponse.md @@ -9,24 +9,24 @@ let value: ExternalOrganizationsListResponse = { result: { items: [ { - id: "d727515f-ef91-4323-8e36-10fc62f68144", + id: "d007de3c-6a52-4b40-9f61-cd4a1633f08a", platform: "github", name: "", - avatarUrl: "https://diligent-alliance.org", + avatarUrl: "https://standard-commodity.name/", isPersonal: false, bio: "", prettyName: "", - company: "Reichert, Spinka and Crist", + company: "Smitham, Kassulke and Parker", blog: "", location: "", - email: "Salvatore_Hand@gmail.com", + email: "Mack.Labadie@yahoo.com", twitterUsername: "", organizationId: "", }, ], pagination: { - totalCount: 95287, - maxPage: 365272, + totalCount: 156726, + maxPage: 159487, }, }, }; diff --git a/docs/models/operations/fileslistresponse.md b/docs/models/operations/fileslistresponse.md index dcaa06fd..0be43a62 100644 --- a/docs/models/operations/fileslistresponse.md +++ b/docs/models/operations/fileslistresponse.md @@ -12,24 +12,24 @@ let value: FilesListResponse = { id: "", organizationId: "", name: "", - path: "/media", + path: "/usr/sbin", mimeType: "", - size: 968944, + size: 335847, storageVersion: "", checksumEtag: "", checksumSha256Base64: "", checksumSha256Hex: "", - lastModifiedAt: new Date("2025-07-23T14:11:18.603Z"), + lastModifiedAt: new Date("2023-05-15T06:40:17.204Z"), version: "", isUploaded: false, - createdAt: new Date("2023-08-20T01:03:14.805Z"), + createdAt: new Date("2024-08-05T08:45:43.654Z"), sizeReadable: "", - publicUrl: "https://gaseous-hutch.info", + publicUrl: "https://close-rubric.name", }, ], pagination: { - totalCount: 163215, - maxPage: 510880, + totalCount: 587138, + maxPage: 38402, }, }, }; diff --git a/docs/models/operations/filesupdateresponsefilesupdate.md b/docs/models/operations/filesupdateresponsefilesupdate.md index 316ff372..373d4eeb 100644 --- a/docs/models/operations/filesupdateresponsefilesupdate.md +++ b/docs/models/operations/filesupdateresponsefilesupdate.md @@ -14,15 +14,15 @@ const value: components.DownloadableFileRead = { name: "", path: "/var/tmp", mimeType: "", - size: 288092, + size: 340928, storageVersion: "", checksumEtag: "", checksumSha256Base64: "", checksumSha256Hex: "", - lastModifiedAt: new Date("2023-09-12T20:59:04.584Z"), + lastModifiedAt: new Date("2025-09-01T08:10:24.577Z"), version: "", isUploaded: false, - createdAt: new Date("2025-08-08T17:52:44.076Z"), + createdAt: new Date("2023-03-21T05:06:33.575Z"), sizeReadable: "", }; ``` @@ -34,19 +34,19 @@ const value: components.ProductMediaFileRead = { id: "", organizationId: "", name: "", - path: "/usr/lib", + path: "/etc/namedb", mimeType: "", - size: 493295, + size: 441396, storageVersion: "", checksumEtag: "", checksumSha256Base64: "", checksumSha256Hex: "", - lastModifiedAt: new Date("2025-08-20T09:00:03.223Z"), + lastModifiedAt: new Date("2023-02-22T05:57:53.960Z"), version: "", isUploaded: false, - createdAt: new Date("2024-05-22T18:22:13.947Z"), + createdAt: new Date("2023-10-23T09:17:13.863Z"), sizeReadable: "", - publicUrl: "https://selfish-dividend.biz/", + publicUrl: "https://competent-cassava.info", }; ``` @@ -57,19 +57,19 @@ const value: components.OrganizationAvatarFileRead = { id: "", organizationId: "", name: "", - path: "/var/log", + path: "/etc/defaults", mimeType: "", - size: 621912, + size: 652841, storageVersion: "", checksumEtag: "", checksumSha256Base64: "", checksumSha256Hex: "", - lastModifiedAt: new Date("2025-04-17T03:17:03.175Z"), + lastModifiedAt: new Date("2025-05-16T07:21:18.933Z"), version: "", isUploaded: false, - createdAt: new Date("2024-08-07T19:18:35.830Z"), + createdAt: new Date("2024-06-03T07:51:56.631Z"), sizeReadable: "", - publicUrl: "https://snoopy-underpants.net", + publicUrl: "https://pleasant-design.info/", }; ``` diff --git a/docs/models/operations/filesuploadedrequest.md b/docs/models/operations/filesuploadedrequest.md index adf0b809..6919111a 100644 --- a/docs/models/operations/filesuploadedrequest.md +++ b/docs/models/operations/filesuploadedrequest.md @@ -9,10 +9,10 @@ let value: FilesUploadedRequest = { id: "", fileUploadCompleted: { id: "", - path: "/boot/defaults", + path: "/home/user", parts: [ { - number: 969201, + number: 440469, checksumEtag: "", checksumSha256Base64: "", }, diff --git a/docs/models/operations/filesuploadedresponsefilesuploaded.md b/docs/models/operations/filesuploadedresponsefilesuploaded.md index f0e78ba4..1514bf68 100644 --- a/docs/models/operations/filesuploadedresponsefilesuploaded.md +++ b/docs/models/operations/filesuploadedresponsefilesuploaded.md @@ -12,17 +12,17 @@ const value: components.DownloadableFileRead = { id: "", organizationId: "", name: "", - path: "/opt/sbin", + path: "/etc/defaults", mimeType: "", - size: 833788, + size: 729879, storageVersion: "", checksumEtag: "", checksumSha256Base64: "", checksumSha256Hex: "", - lastModifiedAt: new Date("2023-12-04T01:41:28.976Z"), + lastModifiedAt: new Date("2023-08-26T14:07:50.921Z"), version: "", isUploaded: false, - createdAt: new Date("2023-11-11T16:35:17.530Z"), + createdAt: new Date("2024-01-31T23:06:11.787Z"), sizeReadable: "", }; ``` @@ -34,19 +34,19 @@ const value: components.ProductMediaFileRead = { id: "", organizationId: "", name: "", - path: "/sys", + path: "/boot", mimeType: "", - size: 772091, + size: 253101, storageVersion: "", checksumEtag: "", checksumSha256Base64: "", checksumSha256Hex: "", - lastModifiedAt: new Date("2023-12-26T22:50:22.790Z"), + lastModifiedAt: new Date("2025-07-19T13:31:14.258Z"), version: "", isUploaded: false, - createdAt: new Date("2025-03-18T01:57:40.972Z"), + createdAt: new Date("2024-08-07T17:37:37.433Z"), sizeReadable: "", - publicUrl: "https://blind-bonnet.biz/", + publicUrl: "https://dreary-costume.name", }; ``` @@ -57,19 +57,19 @@ const value: components.OrganizationAvatarFileRead = { id: "", organizationId: "", name: "", - path: "/rescue", + path: "/home", mimeType: "", - size: 299887, + size: 197723, storageVersion: "", checksumEtag: "", checksumSha256Base64: "", checksumSha256Hex: "", - lastModifiedAt: new Date("2023-11-26T09:08:13.270Z"), + lastModifiedAt: new Date("2023-04-19T17:54:17.414Z"), version: "", isUploaded: false, - createdAt: new Date("2024-07-05T02:56:49.501Z"), + createdAt: new Date("2025-04-12T11:26:13.525Z"), sizeReadable: "", - publicUrl: "https://swift-metabolite.com/", + publicUrl: "https://unhealthy-sunbeam.com/", }; ``` diff --git a/docs/models/operations/licensekeyslistresponse.md b/docs/models/operations/licensekeyslistresponse.md index 5e6d4155..6c2785d3 100644 --- a/docs/models/operations/licensekeyslistresponse.md +++ b/docs/models/operations/licensekeyslistresponse.md @@ -15,43 +15,43 @@ let value: LicenseKeysListResponse = { customerId: "", user: { id: "", - email: "Dasia.Barrows55@hotmail.com", + email: "Kayley_Armstrong@yahoo.com", publicName: "", }, customer: { - createdAt: new Date("2023-07-16T03:20:51.058Z"), - modifiedAt: new Date("2025-11-03T06:22:57.576Z"), + createdAt: new Date("2024-12-05T15:28:55.131Z"), + modifiedAt: new Date("2023-12-23T04:40:26.461Z"), id: "", metadata: { - "key": 43285, + "key": 379268, }, - email: "Christ_Haag-Mohr90@gmail.com", + email: "Concepcion.Gibson-Kulas@hotmail.com", emailVerified: false, name: "", billingAddress: { - country: "Gambia", + country: "Guinea", }, taxId: [ "", ], organizationId: "", - avatarUrl: "https://illiterate-spear.name", + avatarUrl: "https://strident-icebreaker.biz/", }, benefitId: "", key: "", displayKey: "", - status: "disabled", - limitActivations: 442506, - usage: 350135, - limitUsage: 736498, - validations: 183329, - lastValidatedAt: new Date("2024-12-03T04:34:28.027Z"), - expiresAt: new Date("2023-03-07T06:28:40.969Z"), + status: "granted", + limitActivations: 157908, + usage: 949028, + limitUsage: 596695, + validations: 262422, + lastValidatedAt: new Date("2023-10-14T07:54:56.503Z"), + expiresAt: new Date("2025-12-24T20:20:59.879Z"), }, ], pagination: { - totalCount: 725573, - maxPage: 774186, + totalCount: 644684, + maxPage: 163249, }, }, }; diff --git a/docs/models/operations/meterseventsresponse.md b/docs/models/operations/meterseventsresponse.md index 43d93cdb..4e17a565 100644 --- a/docs/models/operations/meterseventsresponse.md +++ b/docs/models/operations/meterseventsresponse.md @@ -10,10 +10,10 @@ let value: MetersEventsResponse = { items: [ { metadata: { - "key": false, + "key": 800965, }, id: "", - timestamp: new Date("2024-04-25T23:55:35.873Z"), + timestamp: new Date("2023-04-14T01:43:46.701Z"), name: "", source: "system", organizationId: "", @@ -22,8 +22,8 @@ let value: MetersEventsResponse = { }, ], pagination: { - totalCount: 423, - maxPage: 785188, + totalCount: 848252, + maxPage: 362405, }, }, }; diff --git a/docs/models/operations/meterslistresponse.md b/docs/models/operations/meterslistresponse.md index 15242a56..88f9de2e 100644 --- a/docs/models/operations/meterslistresponse.md +++ b/docs/models/operations/meterslistresponse.md @@ -9,8 +9,8 @@ let value: MetersListResponse = { result: { items: [], pagination: { - totalCount: 329104, - maxPage: 7413, + totalCount: 746579, + maxPage: 584312, }, }, }; diff --git a/docs/models/operations/metersquantitiesrequest.md b/docs/models/operations/metersquantitiesrequest.md index 5689e48a..9089e2c0 100644 --- a/docs/models/operations/metersquantitiesrequest.md +++ b/docs/models/operations/metersquantitiesrequest.md @@ -7,9 +7,9 @@ import { MetersQuantitiesRequest } from "@polar-sh/sdk/models/operations/metersq let value: MetersQuantitiesRequest = { id: "", - startTimestamp: new Date("2024-01-12T17:46:58.096Z"), - endTimestamp: new Date("2023-11-08T17:39:47.068Z"), - interval: "week", + startTimestamp: new Date("2023-12-24T13:52:23.192Z"), + endTimestamp: new Date("2024-08-09T12:03:56.304Z"), + interval: "hour", }; ``` diff --git a/docs/models/operations/metricsgetrequest.md b/docs/models/operations/metricsgetrequest.md index 38df17d7..f6a481ae 100644 --- a/docs/models/operations/metricsgetrequest.md +++ b/docs/models/operations/metricsgetrequest.md @@ -7,9 +7,9 @@ import { MetricsGetRequest } from "@polar-sh/sdk/models/operations/metricsget.js import { RFCDate } from "@polar-sh/sdk/types/rfcdate.js"; let value: MetricsGetRequest = { - startDate: new RFCDate("2025-04-27"), - endDate: new RFCDate("2023-02-06"), - interval: "hour", + startDate: new RFCDate("2025-06-16"), + endDate: new RFCDate("2025-07-29"), + interval: "day", }; ``` diff --git a/docs/models/operations/oauth2authorizeresponseoauth2authorize.md b/docs/models/operations/oauth2authorizeresponseoauth2authorize.md index d85ce125..5d80f1ad 100644 --- a/docs/models/operations/oauth2authorizeresponseoauth2authorize.md +++ b/docs/models/operations/oauth2authorizeresponseoauth2authorize.md @@ -10,22 +10,22 @@ Successful Response ```typescript const value: components.AuthorizeResponseUser = { client: { - createdAt: new Date("2025-03-29T05:10:24.186Z"), - modifiedAt: new Date("2023-08-10T10:42:10.674Z"), + createdAt: new Date("2025-04-29T08:16:33.102Z"), + modifiedAt: new Date("2023-11-09T21:59:58.532Z"), clientId: "", clientName: "", - clientUri: "https://punctual-discourse.com/", - logoUri: "https://peaceful-passport.name/", - tosUri: "https://guilty-godfather.biz/", - policyUri: "https://lavish-cellar.com/", + clientUri: "https://compassionate-intellect.net", + logoUri: "https://mild-intent.com/", + tosUri: "https://both-rim.info/", + policyUri: "https://smooth-pepper.info/", }, sub: { id: "", - email: "Alyson_Rohan49@yahoo.com", - avatarUrl: "https://courageous-tray.net", + email: "Jaylon_Johnston@gmail.com", + avatarUrl: "https://unlawful-bin.name/", }, scopes: [ - "organizations:read", + "customer_portal:read", ], }; ``` @@ -35,28 +35,28 @@ const value: components.AuthorizeResponseUser = { ```typescript const value: components.AuthorizeResponseOrganization = { client: { - createdAt: new Date("2023-04-18T01:10:45.728Z"), - modifiedAt: new Date("2025-10-12T04:57:23.597Z"), + createdAt: new Date("2025-09-27T18:33:14.332Z"), + modifiedAt: new Date("2023-02-03T22:19:42.582Z"), clientId: "", clientName: "", - clientUri: "https://failing-commodity.net", - logoUri: "https://far-fowl.info", - tosUri: "https://fatal-mathematics.net/", - policyUri: "https://flowery-trick.name/", + clientUri: "https://celebrated-haircut.info/", + logoUri: "https://sorrowful-follower.info/", + tosUri: "https://foolish-help.info/", + policyUri: "https://scaly-cannon.com", }, sub: { id: "", slug: "", - avatarUrl: "https://grumpy-knickers.com/", + avatarUrl: "https://bustling-coil.com/", }, scopes: [ - "profile", + "license_keys:read", ], organizations: [ { id: "", slug: "", - avatarUrl: "https://sick-instruction.org", + avatarUrl: "https://alienated-fencing.name", }, ], }; diff --git a/docs/models/operations/oauth2clientslistresponse.md b/docs/models/operations/oauth2clientslistresponse.md index b0504e09..f6dd044a 100644 --- a/docs/models/operations/oauth2clientslistresponse.md +++ b/docs/models/operations/oauth2clientslistresponse.md @@ -10,20 +10,20 @@ let value: Oauth2ClientsListResponse = { items: [ { redirectUris: [ - "https://illustrious-accountability.net/", + "https://far-flung-heartache.info/", ], clientName: "", - createdAt: new Date("2024-05-10T03:17:43.418Z"), - modifiedAt: new Date("2025-03-13T12:34:38.744Z"), + createdAt: new Date("2025-10-02T16:17:12.780Z"), + modifiedAt: new Date("2025-01-12T12:44:08.199Z"), clientId: "", clientSecret: "", - clientIdIssuedAt: 497744, - clientSecretExpiresAt: 14894, + clientIdIssuedAt: 319975, + clientSecretExpiresAt: 765552, }, ], pagination: { - totalCount: 872126, - maxPage: 920533, + totalCount: 442657, + maxPage: 589402, }, }, }; diff --git a/docs/models/operations/oauth2clientsoauth2updateclientrequest.md b/docs/models/operations/oauth2clientsoauth2updateclientrequest.md index 0ce362c0..ff7c8525 100644 --- a/docs/models/operations/oauth2clientsoauth2updateclientrequest.md +++ b/docs/models/operations/oauth2clientsoauth2updateclientrequest.md @@ -9,7 +9,7 @@ let value: Oauth2ClientsOauth2UpdateClientRequest = { clientId: "", oAuth2ClientConfigurationUpdate: { redirectUris: [ - "https://runny-bandwidth.net", + "https://golden-knickers.com", ], clientName: "", clientId: "", diff --git a/docs/models/operations/oauth2introspecttokentokentypehint.md b/docs/models/operations/oauth2introspecttokentokentypehint.md index 8c2b5627..998560e4 100644 --- a/docs/models/operations/oauth2introspecttokentokentypehint.md +++ b/docs/models/operations/oauth2introspecttokentokentypehint.md @@ -5,7 +5,7 @@ ```typescript import { Oauth2IntrospectTokenTokenTypeHint } from "@polar-sh/sdk/models/operations/oauth2introspecttoken.js"; -let value: Oauth2IntrospectTokenTokenTypeHint = "access_token"; +let value: Oauth2IntrospectTokenTokenTypeHint = "refresh_token"; ``` ## Values diff --git a/docs/models/operations/oauth2requesttokenrequestbody.md b/docs/models/operations/oauth2requesttokenrequestbody.md index 9c6911bb..fca0d06a 100644 --- a/docs/models/operations/oauth2requesttokenrequestbody.md +++ b/docs/models/operations/oauth2requesttokenrequestbody.md @@ -11,7 +11,7 @@ const value: clientId: "", clientSecret: "", code: "", - redirectUri: "https://small-trolley.net", + redirectUri: "https://decent-bathhouse.com/", }; ``` diff --git a/docs/models/operations/orderslistresponse.md b/docs/models/operations/orderslistresponse.md index 282472ca..e564130f 100644 --- a/docs/models/operations/orderslistresponse.md +++ b/docs/models/operations/orderslistresponse.md @@ -9,21 +9,21 @@ let value: OrdersListResponse = { result: { items: [ { - createdAt: new Date("2024-09-07T16:45:09.899Z"), - modifiedAt: new Date("2025-03-14T14:49:55.703Z"), + createdAt: new Date("2025-01-25T19:36:23.667Z"), + modifiedAt: new Date("2025-12-25T02:20:19.631Z"), id: "", metadata: { "key": "", }, status: "", - amount: 432322, - taxAmount: 579103, - refundedAmount: 8088, - refundedTaxAmount: 271660, - currency: "Tenge", - billingReason: "purchase", + amount: 360860, + taxAmount: 359870, + refundedAmount: 465424, + refundedTaxAmount: 262400, + currency: "Pataca", + billingReason: "subscription_update", billingAddress: { - country: "Puerto Rico", + country: "Honduras", }, customerId: "", productId: "", @@ -32,103 +32,104 @@ let value: OrdersListResponse = { subscriptionId: "", checkoutId: "", customer: { - createdAt: new Date("2023-04-26T07:49:59.337Z"), - modifiedAt: new Date("2025-03-03T05:53:22.940Z"), + createdAt: new Date("2023-11-04T01:43:26.070Z"), + modifiedAt: new Date("2025-10-21T04:47:53.381Z"), id: "", metadata: { - "key": false, + "key": 232703, }, - email: "Terrance24@hotmail.com", + email: "Jewel_Barton@yahoo.com", emailVerified: false, name: "", billingAddress: { - country: "Monaco", + country: "Switzerland", }, taxId: [ - "kr_brn", + "ro_tin", ], organizationId: "", - avatarUrl: "https://finished-incandescence.com/", + avatarUrl: "https://squeaky-experience.com", }, userId: "", user: { id: "", - email: "Kasey_Nienow51@yahoo.com", + email: "Giovanna.Ritchie@gmail.com", publicName: "", }, product: { - createdAt: new Date("2025-08-22T20:14:42.910Z"), - modifiedAt: new Date("2023-05-13T14:09:00.250Z"), + createdAt: new Date("2023-01-17T07:46:40.038Z"), + modifiedAt: new Date("2025-08-13T20:24:17.767Z"), id: "", name: "", - description: "override whose inasmuch weary gently carpool too in", + description: + "gracefully pfft taro but roughly despite safe yogurt psst readies", isRecurring: false, isArchived: false, organizationId: "", }, productPrice: { - createdAt: new Date("2025-12-23T06:42:41.549Z"), - modifiedAt: new Date("2025-04-25T01:05:15.633Z"), + createdAt: new Date("2024-02-21T13:36:12.093Z"), + modifiedAt: new Date("2024-09-20T13:21:44.003Z"), id: "", isArchived: false, productId: "", priceCurrency: "", - minimumAmount: 728290, - maximumAmount: 411321, - presetAmount: 120809, + minimumAmount: 224738, + maximumAmount: 677383, + presetAmount: 902627, + recurringInterval: "month", }, discount: { duration: "repeating", - durationInMonths: 335847, - type: "fixed", - amount: 531355, - currency: "Metical", - createdAt: new Date("2023-05-10T16:07:10.579Z"), - modifiedAt: new Date("2025-04-19T21:02:01.154Z"), + type: "percentage", + amount: 831779, + currency: "East Caribbean Dollar", + createdAt: new Date("2025-08-16T20:34:49.918Z"), + modifiedAt: new Date("2024-07-24T08:00:42.998Z"), id: "", metadata: { - "key": 587138, + "key": false, }, name: "", code: "", - startsAt: new Date("2023-02-12T02:08:42.634Z"), - endsAt: new Date("2023-08-25T12:08:38.630Z"), - maxRedemptions: 440469, - redemptionsCount: 104088, + startsAt: new Date("2024-04-24T18:34:12.157Z"), + endsAt: new Date("2023-10-01T16:51:40.339Z"), + maxRedemptions: 868229, + redemptionsCount: 882022, organizationId: "", }, subscription: { metadata: { - "key": false, + "key": "", }, - createdAt: new Date("2023-08-26T14:07:50.921Z"), - modifiedAt: new Date("2024-01-31T23:06:11.787Z"), + createdAt: new Date("2025-03-18T12:21:35.318Z"), + modifiedAt: new Date("2024-01-03T07:20:18.003Z"), id: "", - amount: 33394, - currency: "Egyptian Pound", + amount: 860098, + currency: "Algerian Dinar", recurringInterval: "year", - status: "active", - currentPeriodStart: new Date("2025-03-13T09:56:57.969Z"), - currentPeriodEnd: new Date("2023-08-16T12:23:08.303Z"), + status: "incomplete", + currentPeriodStart: new Date("2025-08-26T03:06:52.368Z"), + currentPeriodEnd: new Date("2023-05-30T01:40:11.174Z"), cancelAtPeriodEnd: false, - canceledAt: new Date("2023-08-04T00:15:59.783Z"), - startedAt: new Date("2024-10-01T20:58:37.542Z"), - endsAt: new Date("2023-07-30T10:24:54.251Z"), - endedAt: new Date("2023-08-05T16:54:18.635Z"), + canceledAt: new Date("2024-12-11T02:42:16.684Z"), + startedAt: new Date("2023-09-05T05:28:52.147Z"), + endsAt: new Date("2025-04-09T06:38:23.918Z"), + endedAt: new Date("2023-07-21T21:02:29.433Z"), customerId: "", productId: "", priceId: "", discountId: "", checkoutId: "", - customerCancellationReason: "customer_service", + customerCancellationReason: "unused", customerCancellationComment: "", userId: "", }, }, ], pagination: { - totalCount: 759559, - maxPage: 88180, + totalCount: 505990, + maxPage: 708686, }, }, }; diff --git a/docs/models/operations/organizationslistresponse.md b/docs/models/operations/organizationslistresponse.md index 6c8dca28..63ffc3ab 100644 --- a/docs/models/operations/organizationslistresponse.md +++ b/docs/models/operations/organizationslistresponse.md @@ -9,21 +9,21 @@ let value: OrganizationsListResponse = { result: { items: [ { - createdAt: new Date("2024-01-18T10:27:53.946Z"), - modifiedAt: new Date("2024-03-13T11:39:05.439Z"), + createdAt: new Date("2025-06-27T14:30:01.915Z"), + modifiedAt: new Date("2024-12-15T19:44:40.318Z"), id: "", name: "", slug: "", - avatarUrl: "https://foolish-help.info/", + avatarUrl: "https://troubled-term.name/", bio: "", - company: "Quitzon Group", + company: "Lubowitz, Stiedemann and Gutmann", blog: "", location: "", - email: "Carleton82@gmail.com", + email: "Francesco_Crist75@hotmail.com", twitterUsername: "", - pledgeMinimumAmount: 23823, + pledgeMinimumAmount: 469513, pledgeBadgeShowAmount: false, - defaultUpfrontSplitToContributors: 325000, + defaultUpfrontSplitToContributors: 784207, profileSettings: {}, featureSettings: {}, subscriptionSettings: { @@ -34,8 +34,8 @@ let value: OrganizationsListResponse = { }, ], pagination: { - totalCount: 153222, - maxPage: 171654, + totalCount: 418870, + maxPage: 176942, }, }, }; diff --git a/docs/models/operations/productpricetypefilter.md b/docs/models/operations/productpricetypefilter.md index 1dbb1e30..c7464f63 100644 --- a/docs/models/operations/productpricetypefilter.md +++ b/docs/models/operations/productpricetypefilter.md @@ -15,7 +15,7 @@ const value: components.ProductPriceType = "one_time"; ```typescript const value: components.ProductPriceType[] = [ - "recurring", + "one_time", ]; ``` diff --git a/docs/models/operations/productslistresponse.md b/docs/models/operations/productslistresponse.md index 74ae9afd..bbe3acbc 100644 --- a/docs/models/operations/productslistresponse.md +++ b/docs/models/operations/productslistresponse.md @@ -9,21 +9,21 @@ let value: ProductsListResponse = { result: { items: [ { - createdAt: new Date("2025-11-21T10:38:18.727Z"), - modifiedAt: new Date("2023-02-14T21:08:31.136Z"), + createdAt: new Date("2023-10-26T06:52:39.499Z"), + modifiedAt: new Date("2025-05-17T21:20:13.788Z"), id: "", name: "", - description: "secret deny gosh summary molasses boohoo", + description: "heavy aha dimly deduct amnesty swath likewise zowie nor", isRecurring: false, isArchived: false, organizationId: "", metadata: { - "key": false, + "key": "", }, prices: [ { - createdAt: new Date("2024-07-24T14:04:05.326Z"), - modifiedAt: new Date("2024-09-01T23:17:16.509Z"), + createdAt: new Date("2025-01-30T09:06:03.992Z"), + modifiedAt: new Date("2023-10-04T08:23:30.297Z"), id: "", isArchived: false, productId: "", @@ -31,17 +31,17 @@ let value: ProductsListResponse = { ], benefits: [ { - createdAt: new Date("2023-09-08T06:21:23.364Z"), - modifiedAt: new Date("2024-09-23T00:28:40.141Z"), + createdAt: new Date("2024-01-05T21:57:51.624Z"), + modifiedAt: new Date("2025-10-12T15:13:45.035Z"), id: "", - description: "tectonics fowl husk diagram conjecture", + description: "merrily whenever knife knowledgeably pillory cellar", selectable: false, deletable: false, organizationId: "", properties: { repositoryOwner: "polarsource", repositoryName: "private_repo", - permission: "maintain", + permission: "pull", }, }, ], @@ -50,45 +50,45 @@ let value: ProductsListResponse = { id: "", organizationId: "", name: "", - path: "/opt/lib", + path: "/proc", mimeType: "", - size: 239376, + size: 47637, storageVersion: "", checksumEtag: "", checksumSha256Base64: "", checksumSha256Hex: "", - lastModifiedAt: new Date("2023-08-02T08:02:13.737Z"), + lastModifiedAt: new Date("2024-03-17T02:39:34.219Z"), version: "", isUploaded: false, - createdAt: new Date("2023-07-03T16:53:40.680Z"), + createdAt: new Date("2025-03-31T13:21:21.860Z"), sizeReadable: "", - publicUrl: "https://illiterate-nucleotidase.info", + publicUrl: "https://marvelous-dish.name", }, ], attachedCustomFields: [ { customFieldId: "", customField: { - createdAt: new Date("2025-04-11T09:52:16.670Z"), - modifiedAt: new Date("2023-02-21T05:24:54.252Z"), + createdAt: new Date("2025-10-16T19:49:07.268Z"), + modifiedAt: new Date("2025-04-07T12:40:12.871Z"), id: "", metadata: { - "key": 968822, + "key": "", }, slug: "", name: "", organizationId: "", properties: {}, }, - order: 850425, + order: 97672, required: false, }, ], }, ], pagination: { - totalCount: 295674, - maxPage: 610935, + totalCount: 926284, + maxPage: 956054, }, }, }; diff --git a/docs/models/operations/queryparambenefittypefilter.md b/docs/models/operations/queryparambenefittypefilter.md index 831e3505..30237128 100644 --- a/docs/models/operations/queryparambenefittypefilter.md +++ b/docs/models/operations/queryparambenefittypefilter.md @@ -8,7 +8,7 @@ Filter by benefit type. ### `components.BenefitType` ```typescript -const value: components.BenefitType = "github_repository"; +const value: components.BenefitType = "license_keys"; ``` ### `components.BenefitType[]` diff --git a/docs/models/operations/queryparamproductpricetypefilter.md b/docs/models/operations/queryparamproductpricetypefilter.md index 3911e043..1e59d111 100644 --- a/docs/models/operations/queryparamproductpricetypefilter.md +++ b/docs/models/operations/queryparamproductpricetypefilter.md @@ -15,7 +15,7 @@ const value: components.ProductPriceType = "one_time"; ```typescript const value: components.ProductPriceType[] = [ - "one_time", + "recurring", ]; ``` diff --git a/docs/models/operations/refundslistresponse.md b/docs/models/operations/refundslistresponse.md index 76c61083..e64e1b4c 100644 --- a/docs/models/operations/refundslistresponse.md +++ b/docs/models/operations/refundslistresponse.md @@ -9,17 +9,17 @@ let value: RefundsListResponse = { result: { items: [ { - createdAt: new Date("2025-09-01T07:38:52.026Z"), - modifiedAt: new Date("2025-08-12T03:02:25.209Z"), + createdAt: new Date("2024-07-24T14:04:05.326Z"), + modifiedAt: new Date("2024-09-01T23:17:16.509Z"), id: "", metadata: { - "key": "", + "key": 228344, }, - status: "canceled", - reason: "customer_request", - amount: 888997, - taxAmount: 72274, - currency: "Belarusian Ruble", + status: "failed", + reason: "fraudulent", + amount: 299460, + taxAmount: 499023, + currency: "Danish Krone", organizationId: "", orderId: "", subscriptionId: "", @@ -28,8 +28,8 @@ let value: RefundsListResponse = { }, ], pagination: { - totalCount: 441396, - maxPage: 47672, + totalCount: 618980, + maxPage: 299568, }, }, }; diff --git a/docs/models/operations/repositorieslistresponse.md b/docs/models/operations/repositorieslistresponse.md index 89ad1edf..0e41b846 100644 --- a/docs/models/operations/repositorieslistresponse.md +++ b/docs/models/operations/repositorieslistresponse.md @@ -9,59 +9,60 @@ let value: RepositoriesListResponse = { result: { items: [ { - id: "01b42fda-52de-4d41-a8cf-e00a290b6cb7", + id: "2879f934-3c71-4d69-bf98-ee7aa4290dcb", platform: "github", isPrivate: false, name: "MyOrg", - description: "since nab meh", + description: + "what well for anti powerfully bludgeon extricate rich aboard positively", stars: 1337, license: "", homepage: "", profileSettings: {}, organization: { - id: "e0804e67-6b68-41b8-bfd5-5a78f19a39c4", + id: "0bc653d7-c922-44d5-8eab-407a5fafc82a", platform: "github", name: "", - avatarUrl: "https://lined-range.info/", + avatarUrl: "https://magnificent-kick.biz/", isPersonal: false, bio: "", prettyName: "", - company: "Krajcik Group", + company: "Lueilwitz - Klein", blog: "", location: "", - email: "Arnoldo.Kreiger@gmail.com", + email: "Josephine36@gmail.com", twitterUsername: "", organizationId: "", }, internalOrganization: { - createdAt: new Date("2024-03-28T22:44:50.176Z"), - modifiedAt: new Date("2023-05-27T18:03:05.713Z"), + createdAt: new Date("2023-04-22T23:49:59.353Z"), + modifiedAt: new Date("2025-08-20T01:08:40.919Z"), id: "", name: "", slug: "", - avatarUrl: "https://digital-help.org/", + avatarUrl: "https://bossy-humor.name", bio: "", - company: "Kerluke - Bartell", + company: "Rippin LLC", blog: "", location: "", - email: "Arjun_Witting3@hotmail.com", + email: "Reggie.Williamson@yahoo.com", twitterUsername: "", - pledgeMinimumAmount: 107706, + pledgeMinimumAmount: 940297, pledgeBadgeShowAmount: false, - defaultUpfrontSplitToContributors: 405510, + defaultUpfrontSplitToContributors: 918904, profileSettings: {}, featureSettings: {}, subscriptionSettings: { allowMultipleSubscriptions: false, allowCustomerUpdates: false, - prorationBehavior: "invoice", + prorationBehavior: "prorate", }, }, }, ], pagination: { - totalCount: 167200, - maxPage: 774538, + totalCount: 223258, + maxPage: 285971, }, }, }; diff --git a/docs/models/operations/sourcefilter.md b/docs/models/operations/sourcefilter.md index 02e8daa1..740491cb 100644 --- a/docs/models/operations/sourcefilter.md +++ b/docs/models/operations/sourcefilter.md @@ -8,14 +8,14 @@ Filter by event source. ### `components.EventSource` ```typescript -const value: components.EventSource = "system"; +const value: components.EventSource = "user"; ``` ### `components.EventSource[]` ```typescript const value: components.EventSource[] = [ - "system", + "user", ]; ``` diff --git a/docs/models/operations/subscriptionslistresponse.md b/docs/models/operations/subscriptionslistresponse.md index fcc8de5c..a464036f 100644 --- a/docs/models/operations/subscriptionslistresponse.md +++ b/docs/models/operations/subscriptionslistresponse.md @@ -9,98 +9,89 @@ let value: SubscriptionsListResponse = { result: { items: [ { - createdAt: new Date("2023-03-15T19:09:10.567Z"), - modifiedAt: new Date("2023-06-22T14:36:35.854Z"), + createdAt: new Date("2023-05-05T13:10:17.632Z"), + modifiedAt: new Date("2024-01-01T00:27:16.216Z"), id: "", - amount: 647125, - currency: "Norwegian Krone", + amount: 284949, + currency: "Rupiah", recurringInterval: "month", status: "incomplete_expired", - currentPeriodStart: new Date("2024-03-31T12:33:05.474Z"), - currentPeriodEnd: new Date("2024-06-08T17:30:09.345Z"), + currentPeriodStart: new Date("2024-07-18T18:53:24.110Z"), + currentPeriodEnd: new Date("2025-12-22T19:23:26.375Z"), cancelAtPeriodEnd: false, - canceledAt: new Date("2025-10-02T16:17:12.780Z"), - startedAt: new Date("2025-01-12T12:44:08.199Z"), - endsAt: new Date("2023-12-17T16:38:04.549Z"), - endedAt: new Date("2025-04-19T01:05:03.927Z"), + canceledAt: new Date("2024-03-31T16:13:48.951Z"), + startedAt: new Date("2024-03-28T17:58:24.040Z"), + endsAt: new Date("2023-11-08T09:32:49.355Z"), + endedAt: new Date("2024-09-03T06:17:32.428Z"), customerId: "", productId: "", priceId: "", discountId: "", checkoutId: "", - customerCancellationReason: "switched_service", + customerCancellationReason: "unused", customerCancellationComment: "", metadata: { - "key": 656298, + "key": false, }, customer: { - createdAt: new Date("2023-12-23T08:13:29.025Z"), - modifiedAt: new Date("2024-07-02T16:32:20.721Z"), + createdAt: new Date("2025-12-30T13:22:32.320Z"), + modifiedAt: new Date("2025-11-02T00:33:03.085Z"), id: "", metadata: { - "key": "", + "key": false, }, - email: "Vaughn_Bayer84@hotmail.com", + email: "Nicola_Rodriguez@gmail.com", emailVerified: false, name: "", billingAddress: { - country: "Puerto Rico", + country: "Malta", }, taxId: [ "", ], organizationId: "", - avatarUrl: "https://stingy-vicinity.info", + avatarUrl: "https://near-accompanist.org", }, userId: "", user: { id: "", - email: "Hobart1@yahoo.com", + email: "Marlon44@yahoo.com", publicName: "", }, product: { - createdAt: new Date("2024-11-15T02:48:54.405Z"), - modifiedAt: new Date("2024-11-01T14:38:38.415Z"), + createdAt: new Date("2025-07-30T22:25:36.191Z"), + modifiedAt: new Date("2023-04-25T12:59:08.238Z"), id: "", name: "", description: - "equally dearly shiny lieu yellow coordination absent bah", + "afterwards gray against depend although offensively alliance", isRecurring: false, isArchived: false, organizationId: "", metadata: { - "key": "", + "key": false, }, prices: [ { - createdAt: new Date("2023-06-04T10:07:51.925Z"), - modifiedAt: new Date("2023-07-20T12:08:42.008Z"), + createdAt: new Date("2025-07-11T05:15:47.275Z"), + modifiedAt: new Date("2023-06-21T05:44:00.806Z"), id: "", isArchived: false, productId: "", - priceCurrency: "", - minimumAmount: 551475, - maximumAmount: 284483, - presetAmount: 382070, }, ], benefits: [ { - createdAt: new Date("2024-09-01T08:37:51.173Z"), - modifiedAt: new Date("2025-08-19T11:27:16.475Z"), + createdAt: new Date("2025-08-05T04:22:38.604Z"), + modifiedAt: new Date("2024-01-28T21:34:54.077Z"), id: "", - description: - "without upon table amid midst always jealously excitedly", + description: "because fencing maul but from", selectable: false, deletable: false, organizationId: "", properties: { - archived: { - "key": false, - }, - files: [ - "", - ], + imageHeight: 400, + imageWidth: 400, }, }, ], @@ -109,76 +100,76 @@ let value: SubscriptionsListResponse = { id: "", organizationId: "", name: "", - path: "/etc/namedb", + path: "/proc", mimeType: "", - size: 143096, + size: 90205, storageVersion: "", checksumEtag: "", checksumSha256Base64: "", checksumSha256Hex: "", - lastModifiedAt: new Date("2025-08-13T06:17:28.680Z"), + lastModifiedAt: new Date("2024-12-11T14:27:58.846Z"), version: "", isUploaded: false, - createdAt: new Date("2024-04-02T02:58:06.798Z"), + createdAt: new Date("2024-12-03T06:25:18.097Z"), sizeReadable: "", - publicUrl: "https://exotic-term.name/", + publicUrl: "https://authorized-cook.name", }, ], attachedCustomFields: [ { customFieldId: "", customField: { - createdAt: new Date("2023-08-05T15:41:47.092Z"), - modifiedAt: new Date("2025-09-27T13:25:44.103Z"), + createdAt: new Date("2024-03-30T16:46:12.008Z"), + modifiedAt: new Date("2023-01-30T13:17:24.903Z"), id: "", metadata: { - "key": "", + "key": false, }, slug: "", name: "", organizationId: "", properties: {}, }, - order: 65329, + order: 290128, required: false, }, ], }, price: { - createdAt: new Date("2023-10-31T16:41:22.925Z"), - modifiedAt: new Date("2023-07-14T23:16:31.297Z"), + createdAt: new Date("2024-05-14T06:17:05.573Z"), + modifiedAt: new Date("2024-08-20T05:45:34.061Z"), id: "", isArchived: false, productId: "", priceCurrency: "", - minimumAmount: 605091, - maximumAmount: 456372, - presetAmount: 157070, - recurringInterval: "year", + minimumAmount: 240941, + maximumAmount: 498711, + presetAmount: 925381, + recurringInterval: "month", }, discount: { duration: "repeating", type: "fixed", - basisPoints: 518855, - createdAt: new Date("2024-01-05T21:57:51.624Z"), - modifiedAt: new Date("2025-10-12T15:13:45.035Z"), + basisPoints: 905121, + createdAt: new Date("2023-02-11T15:02:00.343Z"), + modifiedAt: new Date("2024-07-28T05:07:27.507Z"), id: "", metadata: { - "key": 570553, + "key": "", }, name: "", code: "", - startsAt: new Date("2024-08-05T09:35:38.556Z"), - endsAt: new Date("2025-12-29T19:44:24.118Z"), - maxRedemptions: 895939, - redemptionsCount: 987408, + startsAt: new Date("2023-10-25T00:03:32.852Z"), + endsAt: new Date("2025-10-01T15:06:38.998Z"), + maxRedemptions: 415447, + redemptionsCount: 463038, organizationId: "", }, }, ], pagination: { - totalCount: 240387, - maxPage: 482366, + totalCount: 403074, + maxPage: 739469, }, }, }; diff --git a/docs/models/operations/tokentypehint.md b/docs/models/operations/tokentypehint.md index dfb1336c..33d12d88 100644 --- a/docs/models/operations/tokentypehint.md +++ b/docs/models/operations/tokentypehint.md @@ -5,7 +5,7 @@ ```typescript import { TokenTypeHint } from "@polar-sh/sdk/models/operations/oauth2revoketoken.js"; -let value: TokenTypeHint = "access_token"; +let value: TokenTypeHint = "refresh_token"; ``` ## Values diff --git a/docs/sdks/checkouts/README.md b/docs/sdks/checkouts/README.md index 2c762073..e098cff6 100644 --- a/docs/sdks/checkouts/README.md +++ b/docs/sdks/checkouts/README.md @@ -5,14 +5,94 @@ ### Available Operations -* [~~create~~](#create) - Create Checkout :warning: **Deprecated** Use [create](docs/sdks/custom/README.md#create) instead. -* [~~get~~](#get) - Get Checkout :warning: **Deprecated** +* [list](#list) - List Checkout Sessions +* [create](#create) - Create Checkout Session +* [get](#get) - Get Checkout Session +* [update](#update) - Update Checkout Session +* [clientGet](#clientget) - Get Checkout Session from Client +* [clientUpdate](#clientupdate) - Update Checkout Session from Client +* [clientConfirm](#clientconfirm) - Confirm Checkout Session from Client -## ~~create~~ +## list -Create a checkout session. +List checkout sessions. + +### Example Usage + +```typescript +import { Polar } from "@polar-sh/sdk"; + +const polar = new Polar({ + accessToken: process.env["POLAR_ACCESS_TOKEN"] ?? "", +}); + +async function run() { + const result = await polar.checkouts.list({}); + + for await (const page of result) { + // Handle the page + console.log(page); + } +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { PolarCore } from "@polar-sh/sdk/core.js"; +import { checkoutsList } from "@polar-sh/sdk/funcs/checkoutsList.js"; -> :warning: **DEPRECATED**: This API is deprecated. We recommend you to use the new custom checkout API, which is more flexible and powerful. Please refer to the documentation for more information.. Use `create` instead. +// Use `PolarCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const polar = new PolarCore({ + accessToken: process.env["POLAR_ACCESS_TOKEN"] ?? "", +}); + +async function run() { + const res = await checkoutsList(polar, {}); + + if (!res.ok) { + throw res.error; + } + + const { value: result } = res; + + for await (const page of result) { + // Handle the page + console.log(page); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.CheckoutsListRequest](../../models/operations/checkoutslistrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[operations.CheckoutsListResponse](../../models/operations/checkoutslistresponse.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| -------------------------- | -------------------------- | -------------------------- | +| errors.HTTPValidationError | 422 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | + +## create + +Create a checkout session. ### Example Usage @@ -25,8 +105,9 @@ const polar = new Polar({ async function run() { const result = await polar.checkouts.create({ - productPriceId: "", + allowDiscountCodes: true, successUrl: "https://probable-heating.com/", + productPriceId: "", }); // Handle the result @@ -52,8 +133,9 @@ const polar = new PolarCore({ async function run() { const res = await checkoutsCreate(polar, { - productPriceId: "", + allowDiscountCodes: true, successUrl: "https://probable-heating.com/", + productPriceId: "", }); if (!res.ok) { @@ -73,14 +155,14 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [components.CheckoutLegacyCreate](../../models/components/checkoutlegacycreate.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [components.CheckoutCreate](../../models/components/checkoutcreate.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[components.CheckoutLegacy](../../models/components/checkoutlegacy.md)\>** +**Promise\<[components.Checkout](../../models/components/checkout.md)\>** ### Errors @@ -89,11 +171,9 @@ run(); | errors.HTTPValidationError | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | -## ~~get~~ - -Get an active checkout session by ID. +## get -> :warning: **DEPRECATED**: This API is deprecated. We recommend you to use the new custom checkout API, which is more flexible and powerful. Please refer to the documentation for more information.. +Get a checkout session by ID. ### Example Usage @@ -159,11 +239,335 @@ run(); ### Response -**Promise\<[components.CheckoutLegacy](../../models/components/checkoutlegacy.md)\>** +**Promise\<[components.Checkout](../../models/components/checkout.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| -------------------------- | -------------------------- | -------------------------- | +| errors.ResourceNotFound | 404 | application/json | +| errors.HTTPValidationError | 422 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | + +## update + +Update a checkout session. + +### Example Usage + +```typescript +import { Polar } from "@polar-sh/sdk"; + +const polar = new Polar({ + accessToken: process.env["POLAR_ACCESS_TOKEN"] ?? "", +}); + +async function run() { + const result = await polar.checkouts.update({ + id: "", + checkoutUpdate: {}, + }); + + // Handle the result + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { PolarCore } from "@polar-sh/sdk/core.js"; +import { checkoutsUpdate } from "@polar-sh/sdk/funcs/checkoutsUpdate.js"; + +// Use `PolarCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const polar = new PolarCore({ + accessToken: process.env["POLAR_ACCESS_TOKEN"] ?? "", +}); + +async function run() { + const res = await checkoutsUpdate(polar, { + id: "", + checkoutUpdate: {}, + }); + + if (!res.ok) { + throw res.error; + } + + const { value: result } = res; + + // Handle the result + console.log(result); +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.CheckoutsUpdateRequest](../../models/operations/checkoutsupdaterequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[components.Checkout](../../models/components/checkout.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------------------------- | ------------------------------------- | ------------------------------------- | +| errors.AlreadyActiveSubscriptionError | 403 | application/json | +| errors.ResourceNotFound | 404 | application/json | +| errors.HTTPValidationError | 422 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | + +## clientGet + +Get a checkout session by client secret. + +### Example Usage + +```typescript +import { Polar } from "@polar-sh/sdk"; + +const polar = new Polar({ + accessToken: process.env["POLAR_ACCESS_TOKEN"] ?? "", +}); + +async function run() { + const result = await polar.checkouts.clientGet({ + clientSecret: "", + }); + + // Handle the result + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { PolarCore } from "@polar-sh/sdk/core.js"; +import { checkoutsClientGet } from "@polar-sh/sdk/funcs/checkoutsClientGet.js"; + +// Use `PolarCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const polar = new PolarCore({ + accessToken: process.env["POLAR_ACCESS_TOKEN"] ?? "", +}); + +async function run() { + const res = await checkoutsClientGet(polar, { + clientSecret: "", + }); + + if (!res.ok) { + throw res.error; + } + + const { value: result } = res; + + // Handle the result + console.log(result); +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.CheckoutsClientGetRequest](../../models/operations/checkoutsclientgetrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[components.CheckoutPublic](../../models/components/checkoutpublic.md)\>** ### Errors | Error Type | Status Code | Content Type | | -------------------------- | -------------------------- | -------------------------- | +| errors.ResourceNotFound | 404 | application/json | | errors.HTTPValidationError | 422 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file +| errors.SDKError | 4XX, 5XX | \*/\* | + +## clientUpdate + +Update a checkout session by client secret. + +### Example Usage + +```typescript +import { Polar } from "@polar-sh/sdk"; + +const polar = new Polar({ + accessToken: process.env["POLAR_ACCESS_TOKEN"] ?? "", +}); + +async function run() { + const result = await polar.checkouts.clientUpdate({ + clientSecret: "", + checkoutUpdatePublic: {}, + }); + + // Handle the result + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { PolarCore } from "@polar-sh/sdk/core.js"; +import { checkoutsClientUpdate } from "@polar-sh/sdk/funcs/checkoutsClientUpdate.js"; + +// Use `PolarCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const polar = new PolarCore({ + accessToken: process.env["POLAR_ACCESS_TOKEN"] ?? "", +}); + +async function run() { + const res = await checkoutsClientUpdate(polar, { + clientSecret: "", + checkoutUpdatePublic: {}, + }); + + if (!res.ok) { + throw res.error; + } + + const { value: result } = res; + + // Handle the result + console.log(result); +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.CheckoutsClientUpdateRequest](../../models/operations/checkoutsclientupdaterequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[components.CheckoutPublic](../../models/components/checkoutpublic.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------------------------- | ------------------------------------- | ------------------------------------- | +| errors.AlreadyActiveSubscriptionError | 403 | application/json | +| errors.ResourceNotFound | 404 | application/json | +| errors.HTTPValidationError | 422 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | + +## clientConfirm + +Confirm a checkout session by client secret. + +Orders and subscriptions will be processed. + +### Example Usage + +```typescript +import { Polar } from "@polar-sh/sdk"; + +const polar = new Polar({ + accessToken: process.env["POLAR_ACCESS_TOKEN"] ?? "", +}); + +async function run() { + const result = await polar.checkouts.clientConfirm({ + clientSecret: "", + checkoutConfirmStripe: {}, + }); + + // Handle the result + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { PolarCore } from "@polar-sh/sdk/core.js"; +import { checkoutsClientConfirm } from "@polar-sh/sdk/funcs/checkoutsClientConfirm.js"; + +// Use `PolarCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const polar = new PolarCore({ + accessToken: process.env["POLAR_ACCESS_TOKEN"] ?? "", +}); + +async function run() { + const res = await checkoutsClientConfirm(polar, { + clientSecret: "", + checkoutConfirmStripe: {}, + }); + + if (!res.ok) { + throw res.error; + } + + const { value: result } = res; + + // Handle the result + console.log(result); +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.CheckoutsClientConfirmRequest](../../models/operations/checkoutsclientconfirmrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[components.CheckoutPublicConfirmed](../../models/components/checkoutpublicconfirmed.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| ------------------------------------- | ------------------------------------- | ------------------------------------- | +| errors.AlreadyActiveSubscriptionError | 403 | application/json | +| errors.ResourceNotFound | 404 | application/json | +| errors.HTTPValidationError | 422 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/custom/README.md b/docs/sdks/custom/README.md deleted file mode 100644 index 4b5d6657..00000000 --- a/docs/sdks/custom/README.md +++ /dev/null @@ -1,571 +0,0 @@ -# Custom -(*checkouts.custom*) - -## Overview - -### Available Operations - -* [list](#list) - List Checkout Sessions -* [create](#create) - Create Checkout Session -* [get](#get) - Get Checkout Session -* [update](#update) - Update Checkout Session -* [clientGet](#clientget) - Get Checkout Session from Client -* [clientUpdate](#clientupdate) - Update Checkout Session from Client -* [clientConfirm](#clientconfirm) - Confirm Checkout Session from Client - -## list - -List checkout sessions. - -### Example Usage - -```typescript -import { Polar } from "@polar-sh/sdk"; - -const polar = new Polar({ - accessToken: process.env["POLAR_ACCESS_TOKEN"] ?? "", -}); - -async function run() { - const result = await polar.checkouts.custom.list({}); - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PolarCore } from "@polar-sh/sdk/core.js"; -import { checkoutsCustomList } from "@polar-sh/sdk/funcs/checkoutsCustomList.js"; - -// Use `PolarCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const polar = new PolarCore({ - accessToken: process.env["POLAR_ACCESS_TOKEN"] ?? "", -}); - -async function run() { - const res = await checkoutsCustomList(polar, {}); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - for await (const page of result) { - // Handle the page - console.log(page); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.CheckoutsCustomListRequest](../../models/operations/checkoutscustomlistrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | -| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | -| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | - -### Response - -**Promise\<[operations.CheckoutsCustomListResponse](../../models/operations/checkoutscustomlistresponse.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| -------------------------- | -------------------------- | -------------------------- | -| errors.HTTPValidationError | 422 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | - -## create - -Create a checkout session. - -### Example Usage - -```typescript -import { Polar } from "@polar-sh/sdk"; - -const polar = new Polar({ - accessToken: process.env["POLAR_ACCESS_TOKEN"] ?? "", -}); - -async function run() { - const result = await polar.checkouts.custom.create({ - allowDiscountCodes: true, - productId: "", - }); - - // Handle the result - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PolarCore } from "@polar-sh/sdk/core.js"; -import { checkoutsCustomCreate } from "@polar-sh/sdk/funcs/checkoutsCustomCreate.js"; - -// Use `PolarCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const polar = new PolarCore({ - accessToken: process.env["POLAR_ACCESS_TOKEN"] ?? "", -}); - -async function run() { - const res = await checkoutsCustomCreate(polar, { - allowDiscountCodes: true, - productId: "", - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - // Handle the result - console.log(result); -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [components.CheckoutCreate](../../models/components/checkoutcreate.md) | :heavy_check_mark: | The request object to use for the request. | -| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | -| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | -| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | - -### Response - -**Promise\<[components.Checkout](../../models/components/checkout.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| -------------------------- | -------------------------- | -------------------------- | -| errors.HTTPValidationError | 422 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | - -## get - -Get a checkout session by ID. - -### Example Usage - -```typescript -import { Polar } from "@polar-sh/sdk"; - -const polar = new Polar({ - accessToken: process.env["POLAR_ACCESS_TOKEN"] ?? "", -}); - -async function run() { - const result = await polar.checkouts.custom.get({ - id: "", - }); - - // Handle the result - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PolarCore } from "@polar-sh/sdk/core.js"; -import { checkoutsCustomGet } from "@polar-sh/sdk/funcs/checkoutsCustomGet.js"; - -// Use `PolarCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const polar = new PolarCore({ - accessToken: process.env["POLAR_ACCESS_TOKEN"] ?? "", -}); - -async function run() { - const res = await checkoutsCustomGet(polar, { - id: "", - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - // Handle the result - console.log(result); -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.CheckoutsCustomGetRequest](../../models/operations/checkoutscustomgetrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | -| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | -| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | - -### Response - -**Promise\<[components.Checkout](../../models/components/checkout.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| -------------------------- | -------------------------- | -------------------------- | -| errors.ResourceNotFound | 404 | application/json | -| errors.HTTPValidationError | 422 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | - -## update - -Update a checkout session. - -### Example Usage - -```typescript -import { Polar } from "@polar-sh/sdk"; - -const polar = new Polar({ - accessToken: process.env["POLAR_ACCESS_TOKEN"] ?? "", -}); - -async function run() { - const result = await polar.checkouts.custom.update({ - id: "", - checkoutUpdate: {}, - }); - - // Handle the result - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PolarCore } from "@polar-sh/sdk/core.js"; -import { checkoutsCustomUpdate } from "@polar-sh/sdk/funcs/checkoutsCustomUpdate.js"; - -// Use `PolarCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const polar = new PolarCore({ - accessToken: process.env["POLAR_ACCESS_TOKEN"] ?? "", -}); - -async function run() { - const res = await checkoutsCustomUpdate(polar, { - id: "", - checkoutUpdate: {}, - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - // Handle the result - console.log(result); -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.CheckoutsCustomUpdateRequest](../../models/operations/checkoutscustomupdaterequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | -| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | -| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | - -### Response - -**Promise\<[components.Checkout](../../models/components/checkout.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| errors.AlreadyActiveSubscriptionError | 403 | application/json | -| errors.ResourceNotFound | 404 | application/json | -| errors.HTTPValidationError | 422 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | - -## clientGet - -Get a checkout session by client secret. - -### Example Usage - -```typescript -import { Polar } from "@polar-sh/sdk"; - -const polar = new Polar({ - accessToken: process.env["POLAR_ACCESS_TOKEN"] ?? "", -}); - -async function run() { - const result = await polar.checkouts.custom.clientGet({ - clientSecret: "", - }); - - // Handle the result - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PolarCore } from "@polar-sh/sdk/core.js"; -import { checkoutsCustomClientGet } from "@polar-sh/sdk/funcs/checkoutsCustomClientGet.js"; - -// Use `PolarCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const polar = new PolarCore({ - accessToken: process.env["POLAR_ACCESS_TOKEN"] ?? "", -}); - -async function run() { - const res = await checkoutsCustomClientGet(polar, { - clientSecret: "", - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - // Handle the result - console.log(result); -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.CheckoutsCustomClientGetRequest](../../models/operations/checkoutscustomclientgetrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | -| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | -| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | - -### Response - -**Promise\<[components.CheckoutPublic](../../models/components/checkoutpublic.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| -------------------------- | -------------------------- | -------------------------- | -| errors.ResourceNotFound | 404 | application/json | -| errors.HTTPValidationError | 422 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | - -## clientUpdate - -Update a checkout session by client secret. - -### Example Usage - -```typescript -import { Polar } from "@polar-sh/sdk"; - -const polar = new Polar({ - accessToken: process.env["POLAR_ACCESS_TOKEN"] ?? "", -}); - -async function run() { - const result = await polar.checkouts.custom.clientUpdate({ - clientSecret: "", - checkoutUpdatePublic: {}, - }); - - // Handle the result - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PolarCore } from "@polar-sh/sdk/core.js"; -import { checkoutsCustomClientUpdate } from "@polar-sh/sdk/funcs/checkoutsCustomClientUpdate.js"; - -// Use `PolarCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const polar = new PolarCore({ - accessToken: process.env["POLAR_ACCESS_TOKEN"] ?? "", -}); - -async function run() { - const res = await checkoutsCustomClientUpdate(polar, { - clientSecret: "", - checkoutUpdatePublic: {}, - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - // Handle the result - console.log(result); -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.CheckoutsCustomClientUpdateRequest](../../models/operations/checkoutscustomclientupdaterequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | -| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | -| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | - -### Response - -**Promise\<[components.CheckoutPublic](../../models/components/checkoutpublic.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| errors.AlreadyActiveSubscriptionError | 403 | application/json | -| errors.ResourceNotFound | 404 | application/json | -| errors.HTTPValidationError | 422 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | - -## clientConfirm - -Confirm a checkout session by client secret. - -Orders and subscriptions will be processed. - -### Example Usage - -```typescript -import { Polar } from "@polar-sh/sdk"; - -const polar = new Polar({ - accessToken: process.env["POLAR_ACCESS_TOKEN"] ?? "", -}); - -async function run() { - const result = await polar.checkouts.custom.clientConfirm({ - clientSecret: "", - checkoutConfirmStripe: {}, - }); - - // Handle the result - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { PolarCore } from "@polar-sh/sdk/core.js"; -import { checkoutsCustomClientConfirm } from "@polar-sh/sdk/funcs/checkoutsCustomClientConfirm.js"; - -// Use `PolarCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const polar = new PolarCore({ - accessToken: process.env["POLAR_ACCESS_TOKEN"] ?? "", -}); - -async function run() { - const res = await checkoutsCustomClientConfirm(polar, { - clientSecret: "", - checkoutConfirmStripe: {}, - }); - - if (!res.ok) { - throw res.error; - } - - const { value: result } = res; - - // Handle the result - console.log(result); -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.CheckoutsCustomClientConfirmRequest](../../models/operations/checkoutscustomclientconfirmrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | -| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | -| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | - -### Response - -**Promise\<[components.CheckoutPublicConfirmed](../../models/components/checkoutpublicconfirmed.md)\>** - -### Errors - -| Error Type | Status Code | Content Type | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | -| errors.AlreadyActiveSubscriptionError | 403 | application/json | -| errors.ResourceNotFound | 404 | application/json | -| errors.HTTPValidationError | 422 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/jsr.json b/jsr.json index ad8db381..5880e58f 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "@polar-sh/sdk", - "version": "0.23.0", + "version": "0.24.0", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index 1378063e..cb091277 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@polar-sh/sdk", - "version": "0.23.0", + "version": "0.24.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@polar-sh/sdk", - "version": "0.23.0", + "version": "0.24.0", "dependencies": { "standardwebhooks": "^1.0.0" }, diff --git a/package.json b/package.json index 3d313208..869893c0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@polar-sh/sdk", - "version": "0.23.0", + "version": "0.24.0", "author": "Speakeasy", "type": "module", "tshy": { diff --git a/src/funcs/checkoutsCustomClientConfirm.ts b/src/funcs/checkoutsClientConfirm.ts similarity index 89% rename from src/funcs/checkoutsCustomClientConfirm.ts rename to src/funcs/checkoutsClientConfirm.ts index f9e4dbf2..e96245b3 100644 --- a/src/funcs/checkoutsCustomClientConfirm.ts +++ b/src/funcs/checkoutsClientConfirm.ts @@ -36,9 +36,9 @@ import { import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import { - CheckoutsCustomClientConfirmRequest, - CheckoutsCustomClientConfirmRequest$outboundSchema, -} from "../models/operations/checkoutscustomclientconfirm.js"; + CheckoutsClientConfirmRequest, + CheckoutsClientConfirmRequest$outboundSchema, +} from "../models/operations/checkoutsclientconfirm.js"; import { Result } from "../types/fp.js"; /** @@ -49,9 +49,9 @@ import { Result } from "../types/fp.js"; * * Orders and subscriptions will be processed. */ -export async function checkoutsCustomClientConfirm( +export async function checkoutsClientConfirm( client: PolarCore, - request: CheckoutsCustomClientConfirmRequest, + request: CheckoutsClientConfirmRequest, options?: RequestOptions, ): Promise< Result< @@ -70,7 +70,7 @@ export async function checkoutsCustomClientConfirm( > { const parsed = safeParse( request, - (value) => CheckoutsCustomClientConfirmRequest$outboundSchema.parse(value), + (value) => CheckoutsClientConfirmRequest$outboundSchema.parse(value), "Input validation failed", ); if (!parsed.ok) { @@ -88,9 +88,9 @@ export async function checkoutsCustomClientConfirm( }), }; - const path = pathToFunc( - "/v1/checkouts/custom/client/{client_secret}/confirm", - )(pathParams); + const path = pathToFunc("/v1/checkouts/client/{client_secret}/confirm")( + pathParams, + ); const headers = new Headers(compactMap({ "Content-Type": "application/json", @@ -102,7 +102,7 @@ export async function checkoutsCustomClientConfirm( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { - operationID: "checkouts:custom:client_confirm", + operationID: "checkouts:client_confirm", oAuth2Scopes: [], resolvedSecurity: requestSecurity, diff --git a/src/funcs/checkoutsCustomClientGet.ts b/src/funcs/checkoutsClientGet.ts similarity index 89% rename from src/funcs/checkoutsCustomClientGet.ts rename to src/funcs/checkoutsClientGet.ts index 8ec33c12..702dd190 100644 --- a/src/funcs/checkoutsCustomClientGet.ts +++ b/src/funcs/checkoutsClientGet.ts @@ -32,9 +32,9 @@ import { import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import { - CheckoutsCustomClientGetRequest, - CheckoutsCustomClientGetRequest$outboundSchema, -} from "../models/operations/checkoutscustomclientget.js"; + CheckoutsClientGetRequest, + CheckoutsClientGetRequest$outboundSchema, +} from "../models/operations/checkoutsclientget.js"; import { Result } from "../types/fp.js"; /** @@ -43,9 +43,9 @@ import { Result } from "../types/fp.js"; * @remarks * Get a checkout session by client secret. */ -export async function checkoutsCustomClientGet( +export async function checkoutsClientGet( client: PolarCore, - request: CheckoutsCustomClientGetRequest, + request: CheckoutsClientGetRequest, options?: RequestOptions, ): Promise< Result< @@ -63,7 +63,7 @@ export async function checkoutsCustomClientGet( > { const parsed = safeParse( request, - (value) => CheckoutsCustomClientGetRequest$outboundSchema.parse(value), + (value) => CheckoutsClientGetRequest$outboundSchema.parse(value), "Input validation failed", ); if (!parsed.ok) { @@ -79,9 +79,7 @@ export async function checkoutsCustomClientGet( }), }; - const path = pathToFunc("/v1/checkouts/custom/client/{client_secret}")( - pathParams, - ); + const path = pathToFunc("/v1/checkouts/client/{client_secret}")(pathParams); const headers = new Headers(compactMap({ Accept: "application/json", @@ -92,7 +90,7 @@ export async function checkoutsCustomClientGet( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { - operationID: "checkouts:custom:client_get", + operationID: "checkouts:client_get", oAuth2Scopes: [], resolvedSecurity: requestSecurity, diff --git a/src/funcs/checkoutsCustomClientUpdate.ts b/src/funcs/checkoutsClientUpdate.ts similarity index 89% rename from src/funcs/checkoutsCustomClientUpdate.ts rename to src/funcs/checkoutsClientUpdate.ts index 0a75bcf8..d287bb09 100644 --- a/src/funcs/checkoutsCustomClientUpdate.ts +++ b/src/funcs/checkoutsClientUpdate.ts @@ -36,9 +36,9 @@ import { import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import { - CheckoutsCustomClientUpdateRequest, - CheckoutsCustomClientUpdateRequest$outboundSchema, -} from "../models/operations/checkoutscustomclientupdate.js"; + CheckoutsClientUpdateRequest, + CheckoutsClientUpdateRequest$outboundSchema, +} from "../models/operations/checkoutsclientupdate.js"; import { Result } from "../types/fp.js"; /** @@ -47,9 +47,9 @@ import { Result } from "../types/fp.js"; * @remarks * Update a checkout session by client secret. */ -export async function checkoutsCustomClientUpdate( +export async function checkoutsClientUpdate( client: PolarCore, - request: CheckoutsCustomClientUpdateRequest, + request: CheckoutsClientUpdateRequest, options?: RequestOptions, ): Promise< Result< @@ -68,7 +68,7 @@ export async function checkoutsCustomClientUpdate( > { const parsed = safeParse( request, - (value) => CheckoutsCustomClientUpdateRequest$outboundSchema.parse(value), + (value) => CheckoutsClientUpdateRequest$outboundSchema.parse(value), "Input validation failed", ); if (!parsed.ok) { @@ -86,9 +86,7 @@ export async function checkoutsCustomClientUpdate( }), }; - const path = pathToFunc("/v1/checkouts/custom/client/{client_secret}")( - pathParams, - ); + const path = pathToFunc("/v1/checkouts/client/{client_secret}")(pathParams); const headers = new Headers(compactMap({ "Content-Type": "application/json", @@ -100,7 +98,7 @@ export async function checkoutsCustomClientUpdate( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { - operationID: "checkouts:custom:client_update", + operationID: "checkouts:client_update", oAuth2Scopes: [], resolvedSecurity: requestSecurity, diff --git a/src/funcs/checkoutsCreate.ts b/src/funcs/checkoutsCreate.ts index 562620e7..ae5bee0f 100644 --- a/src/funcs/checkoutsCreate.ts +++ b/src/funcs/checkoutsCreate.ts @@ -11,13 +11,13 @@ import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { - CheckoutLegacy, - CheckoutLegacy$inboundSchema, -} from "../models/components/checkoutlegacy.js"; + Checkout, + Checkout$inboundSchema, +} from "../models/components/checkout.js"; import { - CheckoutLegacyCreate, - CheckoutLegacyCreate$outboundSchema, -} from "../models/components/checkoutlegacycreate.js"; + CheckoutCreate, + CheckoutCreate$outboundSchema, +} from "../models/components/checkoutcreate.js"; import { ConnectionError, InvalidRequestError, @@ -34,20 +34,18 @@ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import { Result } from "../types/fp.js"; /** - * Create Checkout + * Create Checkout Session * * @remarks * Create a checkout session. - * - * @deprecated method: This API is deprecated. We recommend you to use the new custom checkout API, which is more flexible and powerful. Please refer to the documentation for more information.. Use create instead. */ export async function checkoutsCreate( client: PolarCore, - request: CheckoutLegacyCreate, + request: CheckoutCreate, options?: RequestOptions, ): Promise< Result< - CheckoutLegacy, + Checkout, | HTTPValidationError | SDKError | SDKValidationError @@ -60,7 +58,7 @@ export async function checkoutsCreate( > { const parsed = safeParse( request, - (value) => CheckoutLegacyCreate$outboundSchema.parse(value), + (value) => CheckoutCreate$outboundSchema.parse(value), "Input validation failed", ); if (!parsed.ok) { @@ -123,7 +121,7 @@ export async function checkoutsCreate( }; const [result] = await M.match< - CheckoutLegacy, + Checkout, | HTTPValidationError | SDKError | SDKValidationError @@ -133,7 +131,7 @@ export async function checkoutsCreate( | RequestTimeoutError | ConnectionError >( - M.json(201, CheckoutLegacy$inboundSchema), + M.json(201, Checkout$inboundSchema), M.jsonErr(422, HTTPValidationError$inboundSchema), M.fail("4XX"), M.fail("5XX"), diff --git a/src/funcs/checkoutsCustomCreate.ts b/src/funcs/checkoutsCustomCreate.ts deleted file mode 100644 index 3fa3f504..00000000 --- a/src/funcs/checkoutsCustomCreate.ts +++ /dev/null @@ -1,144 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PolarCore } from "../core.js"; -import { encodeJSON } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.js"; -import { safeParse } from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import { - Checkout, - Checkout$inboundSchema, -} from "../models/components/checkout.js"; -import { - CheckoutCreate, - CheckoutCreate$outboundSchema, -} from "../models/components/checkoutcreate.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { - HTTPValidationError, - HTTPValidationError$inboundSchema, -} from "../models/errors/httpvalidationerror.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import { Result } from "../types/fp.js"; - -/** - * Create Checkout Session - * - * @remarks - * Create a checkout session. - */ -export async function checkoutsCustomCreate( - client: PolarCore, - request: CheckoutCreate, - options?: RequestOptions, -): Promise< - Result< - Checkout, - | HTTPValidationError - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > -> { - const parsed = safeParse( - request, - (value) => CheckoutCreate$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return parsed; - } - const payload = parsed.value; - const body = encodeJSON("body", payload, { explode: true }); - - const path = pathToFunc("/v1/checkouts/custom/")(); - - const headers = new Headers(compactMap({ - "Content-Type": "application/json", - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.accessToken); - const securityInput = secConfig == null ? {} : { accessToken: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - operationID: "checkouts:custom:create", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.accessToken, - retryConfig: options?.retries - || client._options.retryConfig - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "POST", - baseURL: options?.serverURL, - path: path, - headers: headers, - body: body, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return requestRes; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: ["422", "4XX", "5XX"], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return doResult; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - Checkout, - | HTTPValidationError - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - M.json(201, Checkout$inboundSchema), - M.jsonErr(422, HTTPValidationError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, { extraFields: responseFields }); - if (!result.ok) { - return result; - } - - return result; -} diff --git a/src/funcs/checkoutsCustomGet.ts b/src/funcs/checkoutsCustomGet.ts deleted file mode 100644 index 69db77c9..00000000 --- a/src/funcs/checkoutsCustomGet.ts +++ /dev/null @@ -1,157 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { PolarCore } from "../core.js"; -import { encodeSimple } from "../lib/encodings.js"; -import * as M from "../lib/matchers.js"; -import { compactMap } from "../lib/primitives.js"; -import { safeParse } from "../lib/schemas.js"; -import { RequestOptions } from "../lib/sdks.js"; -import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; -import { pathToFunc } from "../lib/url.js"; -import { - Checkout, - Checkout$inboundSchema, -} from "../models/components/checkout.js"; -import { - ConnectionError, - InvalidRequestError, - RequestAbortedError, - RequestTimeoutError, - UnexpectedClientError, -} from "../models/errors/httpclienterrors.js"; -import { - HTTPValidationError, - HTTPValidationError$inboundSchema, -} from "../models/errors/httpvalidationerror.js"; -import { - ResourceNotFound, - ResourceNotFound$inboundSchema, -} from "../models/errors/resourcenotfound.js"; -import { SDKError } from "../models/errors/sdkerror.js"; -import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; -import { - CheckoutsCustomGetRequest, - CheckoutsCustomGetRequest$outboundSchema, -} from "../models/operations/checkoutscustomget.js"; -import { Result } from "../types/fp.js"; - -/** - * Get Checkout Session - * - * @remarks - * Get a checkout session by ID. - */ -export async function checkoutsCustomGet( - client: PolarCore, - request: CheckoutsCustomGetRequest, - options?: RequestOptions, -): Promise< - Result< - Checkout, - | ResourceNotFound - | HTTPValidationError - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - > -> { - const parsed = safeParse( - request, - (value) => CheckoutsCustomGetRequest$outboundSchema.parse(value), - "Input validation failed", - ); - if (!parsed.ok) { - return parsed; - } - const payload = parsed.value; - const body = null; - - const pathParams = { - id: encodeSimple("id", payload.id, { - explode: false, - charEncoding: "percent", - }), - }; - - const path = pathToFunc("/v1/checkouts/custom/{id}")(pathParams); - - const headers = new Headers(compactMap({ - Accept: "application/json", - })); - - const secConfig = await extractSecurity(client._options.accessToken); - const securityInput = secConfig == null ? {} : { accessToken: secConfig }; - const requestSecurity = resolveGlobalSecurity(securityInput); - - const context = { - operationID: "checkouts:custom:get", - oAuth2Scopes: [], - - resolvedSecurity: requestSecurity, - - securitySource: client._options.accessToken, - retryConfig: options?.retries - || client._options.retryConfig - || { strategy: "none" }, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }; - - const requestRes = client._createRequest(context, { - security: requestSecurity, - method: "GET", - baseURL: options?.serverURL, - path: path, - headers: headers, - body: body, - timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, - }, options); - if (!requestRes.ok) { - return requestRes; - } - const req = requestRes.value; - - const doResult = await client._do(req, { - context, - errorCodes: ["404", "422", "4XX", "5XX"], - retryConfig: context.retryConfig, - retryCodes: context.retryCodes, - }); - if (!doResult.ok) { - return doResult; - } - const response = doResult.value; - - const responseFields = { - HttpMeta: { Response: response, Request: req }, - }; - - const [result] = await M.match< - Checkout, - | ResourceNotFound - | HTTPValidationError - | SDKError - | SDKValidationError - | UnexpectedClientError - | InvalidRequestError - | RequestAbortedError - | RequestTimeoutError - | ConnectionError - >( - M.json(200, Checkout$inboundSchema), - M.jsonErr(404, ResourceNotFound$inboundSchema), - M.jsonErr(422, HTTPValidationError$inboundSchema), - M.fail("4XX"), - M.fail("5XX"), - )(response, { extraFields: responseFields }); - if (!result.ok) { - return result; - } - - return result; -} diff --git a/src/funcs/checkoutsGet.ts b/src/funcs/checkoutsGet.ts index a929e460..3115f631 100644 --- a/src/funcs/checkoutsGet.ts +++ b/src/funcs/checkoutsGet.ts @@ -11,9 +11,9 @@ import { RequestOptions } from "../lib/sdks.js"; import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; import { pathToFunc } from "../lib/url.js"; import { - CheckoutLegacy, - CheckoutLegacy$inboundSchema, -} from "../models/components/checkoutlegacy.js"; + Checkout, + Checkout$inboundSchema, +} from "../models/components/checkout.js"; import { ConnectionError, InvalidRequestError, @@ -25,6 +25,10 @@ import { HTTPValidationError, HTTPValidationError$inboundSchema, } from "../models/errors/httpvalidationerror.js"; +import { + ResourceNotFound, + ResourceNotFound$inboundSchema, +} from "../models/errors/resourcenotfound.js"; import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import { @@ -34,12 +38,10 @@ import { import { Result } from "../types/fp.js"; /** - * Get Checkout + * Get Checkout Session * * @remarks - * Get an active checkout session by ID. - * - * @deprecated method: This API is deprecated. We recommend you to use the new custom checkout API, which is more flexible and powerful. Please refer to the documentation for more information.. + * Get a checkout session by ID. */ export async function checkoutsGet( client: PolarCore, @@ -47,7 +49,8 @@ export async function checkoutsGet( options?: RequestOptions, ): Promise< Result< - CheckoutLegacy, + Checkout, + | ResourceNotFound | HTTPValidationError | SDKError | SDKValidationError @@ -115,7 +118,7 @@ export async function checkoutsGet( const doResult = await client._do(req, { context, - errorCodes: ["422", "4XX", "5XX"], + errorCodes: ["404", "422", "4XX", "5XX"], retryConfig: context.retryConfig, retryCodes: context.retryCodes, }); @@ -129,7 +132,8 @@ export async function checkoutsGet( }; const [result] = await M.match< - CheckoutLegacy, + Checkout, + | ResourceNotFound | HTTPValidationError | SDKError | SDKValidationError @@ -139,7 +143,8 @@ export async function checkoutsGet( | RequestTimeoutError | ConnectionError >( - M.json(200, CheckoutLegacy$inboundSchema), + M.json(200, Checkout$inboundSchema), + M.jsonErr(404, ResourceNotFound$inboundSchema), M.jsonErr(422, HTTPValidationError$inboundSchema), M.fail("4XX"), M.fail("5XX"), diff --git a/src/funcs/checkoutsCustomList.ts b/src/funcs/checkoutsList.ts similarity index 88% rename from src/funcs/checkoutsCustomList.ts rename to src/funcs/checkoutsList.ts index 65c35272..e0c3470a 100644 --- a/src/funcs/checkoutsCustomList.ts +++ b/src/funcs/checkoutsList.ts @@ -25,11 +25,11 @@ import { import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import { - CheckoutsCustomListRequest, - CheckoutsCustomListRequest$outboundSchema, - CheckoutsCustomListResponse, - CheckoutsCustomListResponse$inboundSchema, -} from "../models/operations/checkoutscustomlist.js"; + CheckoutsListRequest, + CheckoutsListRequest$outboundSchema, + CheckoutsListResponse, + CheckoutsListResponse$inboundSchema, +} from "../models/operations/checkoutslist.js"; import { Result } from "../types/fp.js"; import { createPageIterator, @@ -44,14 +44,14 @@ import { * @remarks * List checkout sessions. */ -export async function checkoutsCustomList( +export async function checkoutsList( client: PolarCore, - request: CheckoutsCustomListRequest, + request: CheckoutsListRequest, options?: RequestOptions, ): Promise< PageIterator< Result< - CheckoutsCustomListResponse, + CheckoutsListResponse, | HTTPValidationError | SDKError | SDKValidationError @@ -66,7 +66,7 @@ export async function checkoutsCustomList( > { const parsed = safeParse( request, - (value) => CheckoutsCustomListRequest$outboundSchema.parse(value), + (value) => CheckoutsListRequest$outboundSchema.parse(value), "Input validation failed", ); if (!parsed.ok) { @@ -75,7 +75,7 @@ export async function checkoutsCustomList( const payload = parsed.value; const body = null; - const path = pathToFunc("/v1/checkouts/custom/")(); + const path = pathToFunc("/v1/checkouts/")(); const query = encodeFormQuery({ "limit": payload.limit, @@ -94,7 +94,7 @@ export async function checkoutsCustomList( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { - operationID: "checkouts:custom:list", + operationID: "checkouts:list", oAuth2Scopes: [], resolvedSecurity: requestSecurity, @@ -137,7 +137,7 @@ export async function checkoutsCustomList( }; const [result, raw] = await M.match< - CheckoutsCustomListResponse, + CheckoutsListResponse, | HTTPValidationError | SDKError | SDKValidationError @@ -147,7 +147,7 @@ export async function checkoutsCustomList( | RequestTimeoutError | ConnectionError >( - M.json(200, CheckoutsCustomListResponse$inboundSchema, { key: "Result" }), + M.json(200, CheckoutsListResponse$inboundSchema, { key: "Result" }), M.jsonErr(422, HTTPValidationError$inboundSchema), M.fail("4XX"), M.fail("5XX"), @@ -161,7 +161,7 @@ export async function checkoutsCustomList( ): { next: Paginator< Result< - CheckoutsCustomListResponse, + CheckoutsListResponse, | HTTPValidationError | SDKError | SDKValidationError @@ -194,7 +194,7 @@ export async function checkoutsCustomList( } const nextVal = () => - checkoutsCustomList( + checkoutsList( client, { ...request, diff --git a/src/funcs/checkoutsCustomUpdate.ts b/src/funcs/checkoutsUpdate.ts similarity index 91% rename from src/funcs/checkoutsCustomUpdate.ts rename to src/funcs/checkoutsUpdate.ts index d8dda972..853e9e62 100644 --- a/src/funcs/checkoutsCustomUpdate.ts +++ b/src/funcs/checkoutsUpdate.ts @@ -36,9 +36,9 @@ import { import { SDKError } from "../models/errors/sdkerror.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import { - CheckoutsCustomUpdateRequest, - CheckoutsCustomUpdateRequest$outboundSchema, -} from "../models/operations/checkoutscustomupdate.js"; + CheckoutsUpdateRequest, + CheckoutsUpdateRequest$outboundSchema, +} from "../models/operations/checkoutsupdate.js"; import { Result } from "../types/fp.js"; /** @@ -47,9 +47,9 @@ import { Result } from "../types/fp.js"; * @remarks * Update a checkout session. */ -export async function checkoutsCustomUpdate( +export async function checkoutsUpdate( client: PolarCore, - request: CheckoutsCustomUpdateRequest, + request: CheckoutsUpdateRequest, options?: RequestOptions, ): Promise< Result< @@ -68,7 +68,7 @@ export async function checkoutsCustomUpdate( > { const parsed = safeParse( request, - (value) => CheckoutsCustomUpdateRequest$outboundSchema.parse(value), + (value) => CheckoutsUpdateRequest$outboundSchema.parse(value), "Input validation failed", ); if (!parsed.ok) { @@ -84,7 +84,7 @@ export async function checkoutsCustomUpdate( }), }; - const path = pathToFunc("/v1/checkouts/custom/{id}")(pathParams); + const path = pathToFunc("/v1/checkouts/{id}")(pathParams); const headers = new Headers(compactMap({ "Content-Type": "application/json", @@ -96,7 +96,7 @@ export async function checkoutsCustomUpdate( const requestSecurity = resolveGlobalSecurity(securityInput); const context = { - operationID: "checkouts:custom:update", + operationID: "checkouts:update", oAuth2Scopes: [], resolvedSecurity: requestSecurity, diff --git a/src/lib/config.ts b/src/lib/config.ts index 34468a67..0a0a2f9a 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -60,7 +60,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "0.1.0", - sdkVersion: "0.23.0", + sdkVersion: "0.24.0", genVersion: "2.503.2", - userAgent: "speakeasy-sdk/typescript 0.23.0 2.503.2 0.1.0 @polar-sh/sdk", + userAgent: "speakeasy-sdk/typescript 0.24.0 2.503.2 0.1.0 @polar-sh/sdk", } as const; diff --git a/src/models/components/checkoutlegacy.ts b/src/models/components/checkoutlegacy.ts deleted file mode 100644 index e9a496dd..00000000 --- a/src/models/components/checkoutlegacy.ts +++ /dev/null @@ -1,119 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - CheckoutProduct, - CheckoutProduct$inboundSchema, - CheckoutProduct$Outbound, - CheckoutProduct$outboundSchema, -} from "./checkoutproduct.js"; -import { - ProductPrice, - ProductPrice$inboundSchema, - ProductPrice$Outbound, - ProductPrice$outboundSchema, -} from "./productprice.js"; - -/** - * A checkout session. - */ -export type CheckoutLegacy = { - /** - * The ID of the checkout. - */ - id: string; - /** - * URL the customer should be redirected to complete the purchase. - */ - url?: string | null | undefined; - customerEmail: string | null; - customerName: string | null; - /** - * Product data for a checkout session. - */ - product: CheckoutProduct; - productPrice: ProductPrice; -}; - -/** @internal */ -export const CheckoutLegacy$inboundSchema: z.ZodType< - CheckoutLegacy, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), - url: z.nullable(z.string()).optional(), - customer_email: z.nullable(z.string()), - customer_name: z.nullable(z.string()), - product: CheckoutProduct$inboundSchema, - product_price: ProductPrice$inboundSchema, -}).transform((v) => { - return remap$(v, { - "customer_email": "customerEmail", - "customer_name": "customerName", - "product_price": "productPrice", - }); -}); - -/** @internal */ -export type CheckoutLegacy$Outbound = { - id: string; - url?: string | null | undefined; - customer_email: string | null; - customer_name: string | null; - product: CheckoutProduct$Outbound; - product_price: ProductPrice$Outbound; -}; - -/** @internal */ -export const CheckoutLegacy$outboundSchema: z.ZodType< - CheckoutLegacy$Outbound, - z.ZodTypeDef, - CheckoutLegacy -> = z.object({ - id: z.string(), - url: z.nullable(z.string()).optional(), - customerEmail: z.nullable(z.string()), - customerName: z.nullable(z.string()), - product: CheckoutProduct$outboundSchema, - productPrice: ProductPrice$outboundSchema, -}).transform((v) => { - return remap$(v, { - customerEmail: "customer_email", - customerName: "customer_name", - productPrice: "product_price", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CheckoutLegacy$ { - /** @deprecated use `CheckoutLegacy$inboundSchema` instead. */ - export const inboundSchema = CheckoutLegacy$inboundSchema; - /** @deprecated use `CheckoutLegacy$outboundSchema` instead. */ - export const outboundSchema = CheckoutLegacy$outboundSchema; - /** @deprecated use `CheckoutLegacy$Outbound` instead. */ - export type Outbound = CheckoutLegacy$Outbound; -} - -export function checkoutLegacyToJSON(checkoutLegacy: CheckoutLegacy): string { - return JSON.stringify(CheckoutLegacy$outboundSchema.parse(checkoutLegacy)); -} - -export function checkoutLegacyFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CheckoutLegacy$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CheckoutLegacy' from JSON`, - ); -} diff --git a/src/models/components/checkoutlegacycreate.ts b/src/models/components/checkoutlegacycreate.ts deleted file mode 100644 index 03f6d760..00000000 --- a/src/models/components/checkoutlegacycreate.ts +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type CheckoutLegacyCreate = { - /** - * ID of the product price to subscribe to. - */ - productPriceId: string; - /** - * URL where the customer will be redirected after a successful subscription. You can add the `session_id={CHECKOUT_SESSION_ID}` query parameter to retrieve the checkout session id. - */ - successUrl: string; - /** - * If you already know the email of your customer, you can set it. It'll be pre-filled on the checkout page. - */ - customerEmail?: string | null | undefined; - /** - * ID of the subscription to update. If not provided, a new subscription will be created. - */ - subscriptionId?: string | null | undefined; -}; - -/** @internal */ -export const CheckoutLegacyCreate$inboundSchema: z.ZodType< - CheckoutLegacyCreate, - z.ZodTypeDef, - unknown -> = z.object({ - product_price_id: z.string(), - success_url: z.string(), - customer_email: z.nullable(z.string()).optional(), - subscription_id: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - "product_price_id": "productPriceId", - "success_url": "successUrl", - "customer_email": "customerEmail", - "subscription_id": "subscriptionId", - }); -}); - -/** @internal */ -export type CheckoutLegacyCreate$Outbound = { - product_price_id: string; - success_url: string; - customer_email?: string | null | undefined; - subscription_id?: string | null | undefined; -}; - -/** @internal */ -export const CheckoutLegacyCreate$outboundSchema: z.ZodType< - CheckoutLegacyCreate$Outbound, - z.ZodTypeDef, - CheckoutLegacyCreate -> = z.object({ - productPriceId: z.string(), - successUrl: z.string(), - customerEmail: z.nullable(z.string()).optional(), - subscriptionId: z.nullable(z.string()).optional(), -}).transform((v) => { - return remap$(v, { - productPriceId: "product_price_id", - successUrl: "success_url", - customerEmail: "customer_email", - subscriptionId: "subscription_id", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CheckoutLegacyCreate$ { - /** @deprecated use `CheckoutLegacyCreate$inboundSchema` instead. */ - export const inboundSchema = CheckoutLegacyCreate$inboundSchema; - /** @deprecated use `CheckoutLegacyCreate$outboundSchema` instead. */ - export const outboundSchema = CheckoutLegacyCreate$outboundSchema; - /** @deprecated use `CheckoutLegacyCreate$Outbound` instead. */ - export type Outbound = CheckoutLegacyCreate$Outbound; -} - -export function checkoutLegacyCreateToJSON( - checkoutLegacyCreate: CheckoutLegacyCreate, -): string { - return JSON.stringify( - CheckoutLegacyCreate$outboundSchema.parse(checkoutLegacyCreate), - ); -} - -export function checkoutLegacyCreateFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CheckoutLegacyCreate$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CheckoutLegacyCreate' from JSON`, - ); -} diff --git a/src/models/operations/checkoutscustomclientconfirm.ts b/src/models/operations/checkoutsclientconfirm.ts similarity index 52% rename from src/models/operations/checkoutscustomclientconfirm.ts rename to src/models/operations/checkoutsclientconfirm.ts index 7d59c986..6c86d940 100644 --- a/src/models/operations/checkoutscustomclientconfirm.ts +++ b/src/models/operations/checkoutsclientconfirm.ts @@ -14,7 +14,7 @@ import { } from "../components/checkoutconfirmstripe.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -export type CheckoutsCustomClientConfirmRequest = { +export type CheckoutsClientConfirmRequest = { /** * The checkout session client secret. */ @@ -23,8 +23,8 @@ export type CheckoutsCustomClientConfirmRequest = { }; /** @internal */ -export const CheckoutsCustomClientConfirmRequest$inboundSchema: z.ZodType< - CheckoutsCustomClientConfirmRequest, +export const CheckoutsClientConfirmRequest$inboundSchema: z.ZodType< + CheckoutsClientConfirmRequest, z.ZodTypeDef, unknown > = z.object({ @@ -38,16 +38,16 @@ export const CheckoutsCustomClientConfirmRequest$inboundSchema: z.ZodType< }); /** @internal */ -export type CheckoutsCustomClientConfirmRequest$Outbound = { +export type CheckoutsClientConfirmRequest$Outbound = { client_secret: string; CheckoutConfirmStripe: CheckoutConfirmStripe$Outbound; }; /** @internal */ -export const CheckoutsCustomClientConfirmRequest$outboundSchema: z.ZodType< - CheckoutsCustomClientConfirmRequest$Outbound, +export const CheckoutsClientConfirmRequest$outboundSchema: z.ZodType< + CheckoutsClientConfirmRequest$Outbound, z.ZodTypeDef, - CheckoutsCustomClientConfirmRequest + CheckoutsClientConfirmRequest > = z.object({ clientSecret: z.string(), checkoutConfirmStripe: CheckoutConfirmStripe$outboundSchema, @@ -62,34 +62,31 @@ export const CheckoutsCustomClientConfirmRequest$outboundSchema: z.ZodType< * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace CheckoutsCustomClientConfirmRequest$ { - /** @deprecated use `CheckoutsCustomClientConfirmRequest$inboundSchema` instead. */ - export const inboundSchema = - CheckoutsCustomClientConfirmRequest$inboundSchema; - /** @deprecated use `CheckoutsCustomClientConfirmRequest$outboundSchema` instead. */ - export const outboundSchema = - CheckoutsCustomClientConfirmRequest$outboundSchema; - /** @deprecated use `CheckoutsCustomClientConfirmRequest$Outbound` instead. */ - export type Outbound = CheckoutsCustomClientConfirmRequest$Outbound; +export namespace CheckoutsClientConfirmRequest$ { + /** @deprecated use `CheckoutsClientConfirmRequest$inboundSchema` instead. */ + export const inboundSchema = CheckoutsClientConfirmRequest$inboundSchema; + /** @deprecated use `CheckoutsClientConfirmRequest$outboundSchema` instead. */ + export const outboundSchema = CheckoutsClientConfirmRequest$outboundSchema; + /** @deprecated use `CheckoutsClientConfirmRequest$Outbound` instead. */ + export type Outbound = CheckoutsClientConfirmRequest$Outbound; } -export function checkoutsCustomClientConfirmRequestToJSON( - checkoutsCustomClientConfirmRequest: CheckoutsCustomClientConfirmRequest, +export function checkoutsClientConfirmRequestToJSON( + checkoutsClientConfirmRequest: CheckoutsClientConfirmRequest, ): string { return JSON.stringify( - CheckoutsCustomClientConfirmRequest$outboundSchema.parse( - checkoutsCustomClientConfirmRequest, + CheckoutsClientConfirmRequest$outboundSchema.parse( + checkoutsClientConfirmRequest, ), ); } -export function checkoutsCustomClientConfirmRequestFromJSON( +export function checkoutsClientConfirmRequestFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => - CheckoutsCustomClientConfirmRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CheckoutsCustomClientConfirmRequest' from JSON`, + (x) => CheckoutsClientConfirmRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CheckoutsClientConfirmRequest' from JSON`, ); } diff --git a/src/models/operations/checkoutsclientget.ts b/src/models/operations/checkoutsclientget.ts new file mode 100644 index 00000000..d8c4dfab --- /dev/null +++ b/src/models/operations/checkoutsclientget.ts @@ -0,0 +1,78 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +export type CheckoutsClientGetRequest = { + /** + * The checkout session client secret. + */ + clientSecret: string; +}; + +/** @internal */ +export const CheckoutsClientGetRequest$inboundSchema: z.ZodType< + CheckoutsClientGetRequest, + z.ZodTypeDef, + unknown +> = z.object({ + client_secret: z.string(), +}).transform((v) => { + return remap$(v, { + "client_secret": "clientSecret", + }); +}); + +/** @internal */ +export type CheckoutsClientGetRequest$Outbound = { + client_secret: string; +}; + +/** @internal */ +export const CheckoutsClientGetRequest$outboundSchema: z.ZodType< + CheckoutsClientGetRequest$Outbound, + z.ZodTypeDef, + CheckoutsClientGetRequest +> = z.object({ + clientSecret: z.string(), +}).transform((v) => { + return remap$(v, { + clientSecret: "client_secret", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CheckoutsClientGetRequest$ { + /** @deprecated use `CheckoutsClientGetRequest$inboundSchema` instead. */ + export const inboundSchema = CheckoutsClientGetRequest$inboundSchema; + /** @deprecated use `CheckoutsClientGetRequest$outboundSchema` instead. */ + export const outboundSchema = CheckoutsClientGetRequest$outboundSchema; + /** @deprecated use `CheckoutsClientGetRequest$Outbound` instead. */ + export type Outbound = CheckoutsClientGetRequest$Outbound; +} + +export function checkoutsClientGetRequestToJSON( + checkoutsClientGetRequest: CheckoutsClientGetRequest, +): string { + return JSON.stringify( + CheckoutsClientGetRequest$outboundSchema.parse(checkoutsClientGetRequest), + ); +} + +export function checkoutsClientGetRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CheckoutsClientGetRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CheckoutsClientGetRequest' from JSON`, + ); +} diff --git a/src/models/operations/checkoutscustomclientupdate.ts b/src/models/operations/checkoutsclientupdate.ts similarity index 52% rename from src/models/operations/checkoutscustomclientupdate.ts rename to src/models/operations/checkoutsclientupdate.ts index 500a86a8..47f4cdad 100644 --- a/src/models/operations/checkoutscustomclientupdate.ts +++ b/src/models/operations/checkoutsclientupdate.ts @@ -14,7 +14,7 @@ import { } from "../components/checkoutupdatepublic.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -export type CheckoutsCustomClientUpdateRequest = { +export type CheckoutsClientUpdateRequest = { /** * The checkout session client secret. */ @@ -23,8 +23,8 @@ export type CheckoutsCustomClientUpdateRequest = { }; /** @internal */ -export const CheckoutsCustomClientUpdateRequest$inboundSchema: z.ZodType< - CheckoutsCustomClientUpdateRequest, +export const CheckoutsClientUpdateRequest$inboundSchema: z.ZodType< + CheckoutsClientUpdateRequest, z.ZodTypeDef, unknown > = z.object({ @@ -38,16 +38,16 @@ export const CheckoutsCustomClientUpdateRequest$inboundSchema: z.ZodType< }); /** @internal */ -export type CheckoutsCustomClientUpdateRequest$Outbound = { +export type CheckoutsClientUpdateRequest$Outbound = { client_secret: string; CheckoutUpdatePublic: CheckoutUpdatePublic$Outbound; }; /** @internal */ -export const CheckoutsCustomClientUpdateRequest$outboundSchema: z.ZodType< - CheckoutsCustomClientUpdateRequest$Outbound, +export const CheckoutsClientUpdateRequest$outboundSchema: z.ZodType< + CheckoutsClientUpdateRequest$Outbound, z.ZodTypeDef, - CheckoutsCustomClientUpdateRequest + CheckoutsClientUpdateRequest > = z.object({ clientSecret: z.string(), checkoutUpdatePublic: CheckoutUpdatePublic$outboundSchema, @@ -62,33 +62,31 @@ export const CheckoutsCustomClientUpdateRequest$outboundSchema: z.ZodType< * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace CheckoutsCustomClientUpdateRequest$ { - /** @deprecated use `CheckoutsCustomClientUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = CheckoutsCustomClientUpdateRequest$inboundSchema; - /** @deprecated use `CheckoutsCustomClientUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = - CheckoutsCustomClientUpdateRequest$outboundSchema; - /** @deprecated use `CheckoutsCustomClientUpdateRequest$Outbound` instead. */ - export type Outbound = CheckoutsCustomClientUpdateRequest$Outbound; +export namespace CheckoutsClientUpdateRequest$ { + /** @deprecated use `CheckoutsClientUpdateRequest$inboundSchema` instead. */ + export const inboundSchema = CheckoutsClientUpdateRequest$inboundSchema; + /** @deprecated use `CheckoutsClientUpdateRequest$outboundSchema` instead. */ + export const outboundSchema = CheckoutsClientUpdateRequest$outboundSchema; + /** @deprecated use `CheckoutsClientUpdateRequest$Outbound` instead. */ + export type Outbound = CheckoutsClientUpdateRequest$Outbound; } -export function checkoutsCustomClientUpdateRequestToJSON( - checkoutsCustomClientUpdateRequest: CheckoutsCustomClientUpdateRequest, +export function checkoutsClientUpdateRequestToJSON( + checkoutsClientUpdateRequest: CheckoutsClientUpdateRequest, ): string { return JSON.stringify( - CheckoutsCustomClientUpdateRequest$outboundSchema.parse( - checkoutsCustomClientUpdateRequest, + CheckoutsClientUpdateRequest$outboundSchema.parse( + checkoutsClientUpdateRequest, ), ); } -export function checkoutsCustomClientUpdateRequestFromJSON( +export function checkoutsClientUpdateRequestFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => - CheckoutsCustomClientUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CheckoutsCustomClientUpdateRequest' from JSON`, + (x) => CheckoutsClientUpdateRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CheckoutsClientUpdateRequest' from JSON`, ); } diff --git a/src/models/operations/checkoutscustomclientget.ts b/src/models/operations/checkoutscustomclientget.ts deleted file mode 100644 index 031e71fc..00000000 --- a/src/models/operations/checkoutscustomclientget.ts +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type CheckoutsCustomClientGetRequest = { - /** - * The checkout session client secret. - */ - clientSecret: string; -}; - -/** @internal */ -export const CheckoutsCustomClientGetRequest$inboundSchema: z.ZodType< - CheckoutsCustomClientGetRequest, - z.ZodTypeDef, - unknown -> = z.object({ - client_secret: z.string(), -}).transform((v) => { - return remap$(v, { - "client_secret": "clientSecret", - }); -}); - -/** @internal */ -export type CheckoutsCustomClientGetRequest$Outbound = { - client_secret: string; -}; - -/** @internal */ -export const CheckoutsCustomClientGetRequest$outboundSchema: z.ZodType< - CheckoutsCustomClientGetRequest$Outbound, - z.ZodTypeDef, - CheckoutsCustomClientGetRequest -> = z.object({ - clientSecret: z.string(), -}).transform((v) => { - return remap$(v, { - clientSecret: "client_secret", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CheckoutsCustomClientGetRequest$ { - /** @deprecated use `CheckoutsCustomClientGetRequest$inboundSchema` instead. */ - export const inboundSchema = CheckoutsCustomClientGetRequest$inboundSchema; - /** @deprecated use `CheckoutsCustomClientGetRequest$outboundSchema` instead. */ - export const outboundSchema = CheckoutsCustomClientGetRequest$outboundSchema; - /** @deprecated use `CheckoutsCustomClientGetRequest$Outbound` instead. */ - export type Outbound = CheckoutsCustomClientGetRequest$Outbound; -} - -export function checkoutsCustomClientGetRequestToJSON( - checkoutsCustomClientGetRequest: CheckoutsCustomClientGetRequest, -): string { - return JSON.stringify( - CheckoutsCustomClientGetRequest$outboundSchema.parse( - checkoutsCustomClientGetRequest, - ), - ); -} - -export function checkoutsCustomClientGetRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CheckoutsCustomClientGetRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CheckoutsCustomClientGetRequest' from JSON`, - ); -} diff --git a/src/models/operations/checkoutscustomget.ts b/src/models/operations/checkoutscustomget.ts deleted file mode 100644 index 12940971..00000000 --- a/src/models/operations/checkoutscustomget.ts +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type CheckoutsCustomGetRequest = { - /** - * The checkout session ID. - */ - id: string; -}; - -/** @internal */ -export const CheckoutsCustomGetRequest$inboundSchema: z.ZodType< - CheckoutsCustomGetRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), -}); - -/** @internal */ -export type CheckoutsCustomGetRequest$Outbound = { - id: string; -}; - -/** @internal */ -export const CheckoutsCustomGetRequest$outboundSchema: z.ZodType< - CheckoutsCustomGetRequest$Outbound, - z.ZodTypeDef, - CheckoutsCustomGetRequest -> = z.object({ - id: z.string(), -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CheckoutsCustomGetRequest$ { - /** @deprecated use `CheckoutsCustomGetRequest$inboundSchema` instead. */ - export const inboundSchema = CheckoutsCustomGetRequest$inboundSchema; - /** @deprecated use `CheckoutsCustomGetRequest$outboundSchema` instead. */ - export const outboundSchema = CheckoutsCustomGetRequest$outboundSchema; - /** @deprecated use `CheckoutsCustomGetRequest$Outbound` instead. */ - export type Outbound = CheckoutsCustomGetRequest$Outbound; -} - -export function checkoutsCustomGetRequestToJSON( - checkoutsCustomGetRequest: CheckoutsCustomGetRequest, -): string { - return JSON.stringify( - CheckoutsCustomGetRequest$outboundSchema.parse(checkoutsCustomGetRequest), - ); -} - -export function checkoutsCustomGetRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CheckoutsCustomGetRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CheckoutsCustomGetRequest' from JSON`, - ); -} diff --git a/src/models/operations/checkoutscustomlist.ts b/src/models/operations/checkoutscustomlist.ts deleted file mode 100644 index e3e64537..00000000 --- a/src/models/operations/checkoutscustomlist.ts +++ /dev/null @@ -1,330 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { - CheckoutSortProperty, - CheckoutSortProperty$inboundSchema, - CheckoutSortProperty$outboundSchema, -} from "../components/checkoutsortproperty.js"; -import { - ListResourceCheckout, - ListResourceCheckout$inboundSchema, - ListResourceCheckout$Outbound, - ListResourceCheckout$outboundSchema, -} from "../components/listresourcecheckout.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -/** - * Filter by organization ID. - */ -export type CheckoutsCustomListQueryParamOrganizationIDFilter = - | string - | Array; - -/** - * Filter by product ID. - */ -export type CheckoutsCustomListQueryParamProductIDFilter = - | string - | Array; - -export type CheckoutsCustomListRequest = { - /** - * Filter by organization ID. - */ - organizationId?: string | Array | null | undefined; - /** - * Filter by product ID. - */ - productId?: string | Array | null | undefined; - /** - * Page number, defaults to 1. - */ - page?: number | undefined; - /** - * Size of a page, defaults to 10. Maximum is 100. - */ - limit?: number | undefined; - /** - * Sorting criterion. Several criteria can be used simultaneously and will be applied in order. Add a minus sign `-` before the criteria name to sort by descending order. - */ - sorting?: Array | null | undefined; -}; - -export type CheckoutsCustomListResponse = { - result: ListResourceCheckout; -}; - -/** @internal */ -export const CheckoutsCustomListQueryParamOrganizationIDFilter$inboundSchema: - z.ZodType< - CheckoutsCustomListQueryParamOrganizationIDFilter, - z.ZodTypeDef, - unknown - > = z.union([z.string(), z.array(z.string())]); - -/** @internal */ -export type CheckoutsCustomListQueryParamOrganizationIDFilter$Outbound = - | string - | Array; - -/** @internal */ -export const CheckoutsCustomListQueryParamOrganizationIDFilter$outboundSchema: - z.ZodType< - CheckoutsCustomListQueryParamOrganizationIDFilter$Outbound, - z.ZodTypeDef, - CheckoutsCustomListQueryParamOrganizationIDFilter - > = z.union([z.string(), z.array(z.string())]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CheckoutsCustomListQueryParamOrganizationIDFilter$ { - /** @deprecated use `CheckoutsCustomListQueryParamOrganizationIDFilter$inboundSchema` instead. */ - export const inboundSchema = - CheckoutsCustomListQueryParamOrganizationIDFilter$inboundSchema; - /** @deprecated use `CheckoutsCustomListQueryParamOrganizationIDFilter$outboundSchema` instead. */ - export const outboundSchema = - CheckoutsCustomListQueryParamOrganizationIDFilter$outboundSchema; - /** @deprecated use `CheckoutsCustomListQueryParamOrganizationIDFilter$Outbound` instead. */ - export type Outbound = - CheckoutsCustomListQueryParamOrganizationIDFilter$Outbound; -} - -export function checkoutsCustomListQueryParamOrganizationIDFilterToJSON( - checkoutsCustomListQueryParamOrganizationIDFilter: - CheckoutsCustomListQueryParamOrganizationIDFilter, -): string { - return JSON.stringify( - CheckoutsCustomListQueryParamOrganizationIDFilter$outboundSchema.parse( - checkoutsCustomListQueryParamOrganizationIDFilter, - ), - ); -} - -export function checkoutsCustomListQueryParamOrganizationIDFilterFromJSON( - jsonString: string, -): SafeParseResult< - CheckoutsCustomListQueryParamOrganizationIDFilter, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - CheckoutsCustomListQueryParamOrganizationIDFilter$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'CheckoutsCustomListQueryParamOrganizationIDFilter' from JSON`, - ); -} - -/** @internal */ -export const CheckoutsCustomListQueryParamProductIDFilter$inboundSchema: - z.ZodType< - CheckoutsCustomListQueryParamProductIDFilter, - z.ZodTypeDef, - unknown - > = z.union([z.string(), z.array(z.string())]); - -/** @internal */ -export type CheckoutsCustomListQueryParamProductIDFilter$Outbound = - | string - | Array; - -/** @internal */ -export const CheckoutsCustomListQueryParamProductIDFilter$outboundSchema: - z.ZodType< - CheckoutsCustomListQueryParamProductIDFilter$Outbound, - z.ZodTypeDef, - CheckoutsCustomListQueryParamProductIDFilter - > = z.union([z.string(), z.array(z.string())]); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CheckoutsCustomListQueryParamProductIDFilter$ { - /** @deprecated use `CheckoutsCustomListQueryParamProductIDFilter$inboundSchema` instead. */ - export const inboundSchema = - CheckoutsCustomListQueryParamProductIDFilter$inboundSchema; - /** @deprecated use `CheckoutsCustomListQueryParamProductIDFilter$outboundSchema` instead. */ - export const outboundSchema = - CheckoutsCustomListQueryParamProductIDFilter$outboundSchema; - /** @deprecated use `CheckoutsCustomListQueryParamProductIDFilter$Outbound` instead. */ - export type Outbound = CheckoutsCustomListQueryParamProductIDFilter$Outbound; -} - -export function checkoutsCustomListQueryParamProductIDFilterToJSON( - checkoutsCustomListQueryParamProductIDFilter: - CheckoutsCustomListQueryParamProductIDFilter, -): string { - return JSON.stringify( - CheckoutsCustomListQueryParamProductIDFilter$outboundSchema.parse( - checkoutsCustomListQueryParamProductIDFilter, - ), - ); -} - -export function checkoutsCustomListQueryParamProductIDFilterFromJSON( - jsonString: string, -): SafeParseResult< - CheckoutsCustomListQueryParamProductIDFilter, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - CheckoutsCustomListQueryParamProductIDFilter$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'CheckoutsCustomListQueryParamProductIDFilter' from JSON`, - ); -} - -/** @internal */ -export const CheckoutsCustomListRequest$inboundSchema: z.ZodType< - CheckoutsCustomListRequest, - z.ZodTypeDef, - unknown -> = z.object({ - organization_id: z.nullable(z.union([z.string(), z.array(z.string())])) - .optional(), - product_id: z.nullable(z.union([z.string(), z.array(z.string())])).optional(), - page: z.number().int().default(1), - limit: z.number().int().default(10), - sorting: z.nullable(z.array(CheckoutSortProperty$inboundSchema)).optional(), -}).transform((v) => { - return remap$(v, { - "organization_id": "organizationId", - "product_id": "productId", - }); -}); - -/** @internal */ -export type CheckoutsCustomListRequest$Outbound = { - organization_id?: string | Array | null | undefined; - product_id?: string | Array | null | undefined; - page: number; - limit: number; - sorting?: Array | null | undefined; -}; - -/** @internal */ -export const CheckoutsCustomListRequest$outboundSchema: z.ZodType< - CheckoutsCustomListRequest$Outbound, - z.ZodTypeDef, - CheckoutsCustomListRequest -> = z.object({ - organizationId: z.nullable(z.union([z.string(), z.array(z.string())])) - .optional(), - productId: z.nullable(z.union([z.string(), z.array(z.string())])).optional(), - page: z.number().int().default(1), - limit: z.number().int().default(10), - sorting: z.nullable(z.array(CheckoutSortProperty$outboundSchema)).optional(), -}).transform((v) => { - return remap$(v, { - organizationId: "organization_id", - productId: "product_id", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CheckoutsCustomListRequest$ { - /** @deprecated use `CheckoutsCustomListRequest$inboundSchema` instead. */ - export const inboundSchema = CheckoutsCustomListRequest$inboundSchema; - /** @deprecated use `CheckoutsCustomListRequest$outboundSchema` instead. */ - export const outboundSchema = CheckoutsCustomListRequest$outboundSchema; - /** @deprecated use `CheckoutsCustomListRequest$Outbound` instead. */ - export type Outbound = CheckoutsCustomListRequest$Outbound; -} - -export function checkoutsCustomListRequestToJSON( - checkoutsCustomListRequest: CheckoutsCustomListRequest, -): string { - return JSON.stringify( - CheckoutsCustomListRequest$outboundSchema.parse(checkoutsCustomListRequest), - ); -} - -export function checkoutsCustomListRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CheckoutsCustomListRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CheckoutsCustomListRequest' from JSON`, - ); -} - -/** @internal */ -export const CheckoutsCustomListResponse$inboundSchema: z.ZodType< - CheckoutsCustomListResponse, - z.ZodTypeDef, - unknown -> = z.object({ - Result: ListResourceCheckout$inboundSchema, -}).transform((v) => { - return remap$(v, { - "Result": "result", - }); -}); - -/** @internal */ -export type CheckoutsCustomListResponse$Outbound = { - Result: ListResourceCheckout$Outbound; -}; - -/** @internal */ -export const CheckoutsCustomListResponse$outboundSchema: z.ZodType< - CheckoutsCustomListResponse$Outbound, - z.ZodTypeDef, - CheckoutsCustomListResponse -> = z.object({ - result: ListResourceCheckout$outboundSchema, -}).transform((v) => { - return remap$(v, { - result: "Result", - }); -}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CheckoutsCustomListResponse$ { - /** @deprecated use `CheckoutsCustomListResponse$inboundSchema` instead. */ - export const inboundSchema = CheckoutsCustomListResponse$inboundSchema; - /** @deprecated use `CheckoutsCustomListResponse$outboundSchema` instead. */ - export const outboundSchema = CheckoutsCustomListResponse$outboundSchema; - /** @deprecated use `CheckoutsCustomListResponse$Outbound` instead. */ - export type Outbound = CheckoutsCustomListResponse$Outbound; -} - -export function checkoutsCustomListResponseToJSON( - checkoutsCustomListResponse: CheckoutsCustomListResponse, -): string { - return JSON.stringify( - CheckoutsCustomListResponse$outboundSchema.parse( - checkoutsCustomListResponse, - ), - ); -} - -export function checkoutsCustomListResponseFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => CheckoutsCustomListResponse$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CheckoutsCustomListResponse' from JSON`, - ); -} diff --git a/src/models/operations/checkoutsget.ts b/src/models/operations/checkoutsget.ts index 384fd42d..3e31062a 100644 --- a/src/models/operations/checkoutsget.ts +++ b/src/models/operations/checkoutsget.ts @@ -8,6 +8,9 @@ import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type CheckoutsGetRequest = { + /** + * The checkout session ID. + */ id: string; }; diff --git a/src/models/operations/checkoutslist.ts b/src/models/operations/checkoutslist.ts new file mode 100644 index 00000000..600aafba --- /dev/null +++ b/src/models/operations/checkoutslist.ts @@ -0,0 +1,318 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { + CheckoutSortProperty, + CheckoutSortProperty$inboundSchema, + CheckoutSortProperty$outboundSchema, +} from "../components/checkoutsortproperty.js"; +import { + ListResourceCheckout, + ListResourceCheckout$inboundSchema, + ListResourceCheckout$Outbound, + ListResourceCheckout$outboundSchema, +} from "../components/listresourcecheckout.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +/** + * Filter by organization ID. + */ +export type CheckoutsListQueryParamOrganizationIDFilter = + | string + | Array; + +/** + * Filter by product ID. + */ +export type CheckoutsListQueryParamProductIDFilter = string | Array; + +export type CheckoutsListRequest = { + /** + * Filter by organization ID. + */ + organizationId?: string | Array | null | undefined; + /** + * Filter by product ID. + */ + productId?: string | Array | null | undefined; + /** + * Page number, defaults to 1. + */ + page?: number | undefined; + /** + * Size of a page, defaults to 10. Maximum is 100. + */ + limit?: number | undefined; + /** + * Sorting criterion. Several criteria can be used simultaneously and will be applied in order. Add a minus sign `-` before the criteria name to sort by descending order. + */ + sorting?: Array | null | undefined; +}; + +export type CheckoutsListResponse = { + result: ListResourceCheckout; +}; + +/** @internal */ +export const CheckoutsListQueryParamOrganizationIDFilter$inboundSchema: + z.ZodType< + CheckoutsListQueryParamOrganizationIDFilter, + z.ZodTypeDef, + unknown + > = z.union([z.string(), z.array(z.string())]); + +/** @internal */ +export type CheckoutsListQueryParamOrganizationIDFilter$Outbound = + | string + | Array; + +/** @internal */ +export const CheckoutsListQueryParamOrganizationIDFilter$outboundSchema: + z.ZodType< + CheckoutsListQueryParamOrganizationIDFilter$Outbound, + z.ZodTypeDef, + CheckoutsListQueryParamOrganizationIDFilter + > = z.union([z.string(), z.array(z.string())]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CheckoutsListQueryParamOrganizationIDFilter$ { + /** @deprecated use `CheckoutsListQueryParamOrganizationIDFilter$inboundSchema` instead. */ + export const inboundSchema = + CheckoutsListQueryParamOrganizationIDFilter$inboundSchema; + /** @deprecated use `CheckoutsListQueryParamOrganizationIDFilter$outboundSchema` instead. */ + export const outboundSchema = + CheckoutsListQueryParamOrganizationIDFilter$outboundSchema; + /** @deprecated use `CheckoutsListQueryParamOrganizationIDFilter$Outbound` instead. */ + export type Outbound = CheckoutsListQueryParamOrganizationIDFilter$Outbound; +} + +export function checkoutsListQueryParamOrganizationIDFilterToJSON( + checkoutsListQueryParamOrganizationIDFilter: + CheckoutsListQueryParamOrganizationIDFilter, +): string { + return JSON.stringify( + CheckoutsListQueryParamOrganizationIDFilter$outboundSchema.parse( + checkoutsListQueryParamOrganizationIDFilter, + ), + ); +} + +export function checkoutsListQueryParamOrganizationIDFilterFromJSON( + jsonString: string, +): SafeParseResult< + CheckoutsListQueryParamOrganizationIDFilter, + SDKValidationError +> { + return safeParse( + jsonString, + (x) => + CheckoutsListQueryParamOrganizationIDFilter$inboundSchema.parse( + JSON.parse(x), + ), + `Failed to parse 'CheckoutsListQueryParamOrganizationIDFilter' from JSON`, + ); +} + +/** @internal */ +export const CheckoutsListQueryParamProductIDFilter$inboundSchema: z.ZodType< + CheckoutsListQueryParamProductIDFilter, + z.ZodTypeDef, + unknown +> = z.union([z.string(), z.array(z.string())]); + +/** @internal */ +export type CheckoutsListQueryParamProductIDFilter$Outbound = + | string + | Array; + +/** @internal */ +export const CheckoutsListQueryParamProductIDFilter$outboundSchema: z.ZodType< + CheckoutsListQueryParamProductIDFilter$Outbound, + z.ZodTypeDef, + CheckoutsListQueryParamProductIDFilter +> = z.union([z.string(), z.array(z.string())]); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CheckoutsListQueryParamProductIDFilter$ { + /** @deprecated use `CheckoutsListQueryParamProductIDFilter$inboundSchema` instead. */ + export const inboundSchema = + CheckoutsListQueryParamProductIDFilter$inboundSchema; + /** @deprecated use `CheckoutsListQueryParamProductIDFilter$outboundSchema` instead. */ + export const outboundSchema = + CheckoutsListQueryParamProductIDFilter$outboundSchema; + /** @deprecated use `CheckoutsListQueryParamProductIDFilter$Outbound` instead. */ + export type Outbound = CheckoutsListQueryParamProductIDFilter$Outbound; +} + +export function checkoutsListQueryParamProductIDFilterToJSON( + checkoutsListQueryParamProductIDFilter: + CheckoutsListQueryParamProductIDFilter, +): string { + return JSON.stringify( + CheckoutsListQueryParamProductIDFilter$outboundSchema.parse( + checkoutsListQueryParamProductIDFilter, + ), + ); +} + +export function checkoutsListQueryParamProductIDFilterFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + CheckoutsListQueryParamProductIDFilter$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CheckoutsListQueryParamProductIDFilter' from JSON`, + ); +} + +/** @internal */ +export const CheckoutsListRequest$inboundSchema: z.ZodType< + CheckoutsListRequest, + z.ZodTypeDef, + unknown +> = z.object({ + organization_id: z.nullable(z.union([z.string(), z.array(z.string())])) + .optional(), + product_id: z.nullable(z.union([z.string(), z.array(z.string())])).optional(), + page: z.number().int().default(1), + limit: z.number().int().default(10), + sorting: z.nullable(z.array(CheckoutSortProperty$inboundSchema)).optional(), +}).transform((v) => { + return remap$(v, { + "organization_id": "organizationId", + "product_id": "productId", + }); +}); + +/** @internal */ +export type CheckoutsListRequest$Outbound = { + organization_id?: string | Array | null | undefined; + product_id?: string | Array | null | undefined; + page: number; + limit: number; + sorting?: Array | null | undefined; +}; + +/** @internal */ +export const CheckoutsListRequest$outboundSchema: z.ZodType< + CheckoutsListRequest$Outbound, + z.ZodTypeDef, + CheckoutsListRequest +> = z.object({ + organizationId: z.nullable(z.union([z.string(), z.array(z.string())])) + .optional(), + productId: z.nullable(z.union([z.string(), z.array(z.string())])).optional(), + page: z.number().int().default(1), + limit: z.number().int().default(10), + sorting: z.nullable(z.array(CheckoutSortProperty$outboundSchema)).optional(), +}).transform((v) => { + return remap$(v, { + organizationId: "organization_id", + productId: "product_id", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CheckoutsListRequest$ { + /** @deprecated use `CheckoutsListRequest$inboundSchema` instead. */ + export const inboundSchema = CheckoutsListRequest$inboundSchema; + /** @deprecated use `CheckoutsListRequest$outboundSchema` instead. */ + export const outboundSchema = CheckoutsListRequest$outboundSchema; + /** @deprecated use `CheckoutsListRequest$Outbound` instead. */ + export type Outbound = CheckoutsListRequest$Outbound; +} + +export function checkoutsListRequestToJSON( + checkoutsListRequest: CheckoutsListRequest, +): string { + return JSON.stringify( + CheckoutsListRequest$outboundSchema.parse(checkoutsListRequest), + ); +} + +export function checkoutsListRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CheckoutsListRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CheckoutsListRequest' from JSON`, + ); +} + +/** @internal */ +export const CheckoutsListResponse$inboundSchema: z.ZodType< + CheckoutsListResponse, + z.ZodTypeDef, + unknown +> = z.object({ + Result: ListResourceCheckout$inboundSchema, +}).transform((v) => { + return remap$(v, { + "Result": "result", + }); +}); + +/** @internal */ +export type CheckoutsListResponse$Outbound = { + Result: ListResourceCheckout$Outbound; +}; + +/** @internal */ +export const CheckoutsListResponse$outboundSchema: z.ZodType< + CheckoutsListResponse$Outbound, + z.ZodTypeDef, + CheckoutsListResponse +> = z.object({ + result: ListResourceCheckout$outboundSchema, +}).transform((v) => { + return remap$(v, { + result: "Result", + }); +}); + +/** + * @internal + * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. + */ +export namespace CheckoutsListResponse$ { + /** @deprecated use `CheckoutsListResponse$inboundSchema` instead. */ + export const inboundSchema = CheckoutsListResponse$inboundSchema; + /** @deprecated use `CheckoutsListResponse$outboundSchema` instead. */ + export const outboundSchema = CheckoutsListResponse$outboundSchema; + /** @deprecated use `CheckoutsListResponse$Outbound` instead. */ + export type Outbound = CheckoutsListResponse$Outbound; +} + +export function checkoutsListResponseToJSON( + checkoutsListResponse: CheckoutsListResponse, +): string { + return JSON.stringify( + CheckoutsListResponse$outboundSchema.parse(checkoutsListResponse), + ); +} + +export function checkoutsListResponseFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CheckoutsListResponse$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CheckoutsListResponse' from JSON`, + ); +} diff --git a/src/models/operations/checkoutscustomupdate.ts b/src/models/operations/checkoutsupdate.ts similarity index 51% rename from src/models/operations/checkoutscustomupdate.ts rename to src/models/operations/checkoutsupdate.ts index 531e7a81..8e3163b2 100644 --- a/src/models/operations/checkoutscustomupdate.ts +++ b/src/models/operations/checkoutsupdate.ts @@ -14,7 +14,7 @@ import { } from "../components/checkoutupdate.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -export type CheckoutsCustomUpdateRequest = { +export type CheckoutsUpdateRequest = { /** * The checkout session ID. */ @@ -23,8 +23,8 @@ export type CheckoutsCustomUpdateRequest = { }; /** @internal */ -export const CheckoutsCustomUpdateRequest$inboundSchema: z.ZodType< - CheckoutsCustomUpdateRequest, +export const CheckoutsUpdateRequest$inboundSchema: z.ZodType< + CheckoutsUpdateRequest, z.ZodTypeDef, unknown > = z.object({ @@ -37,16 +37,16 @@ export const CheckoutsCustomUpdateRequest$inboundSchema: z.ZodType< }); /** @internal */ -export type CheckoutsCustomUpdateRequest$Outbound = { +export type CheckoutsUpdateRequest$Outbound = { id: string; CheckoutUpdate: CheckoutUpdate$Outbound; }; /** @internal */ -export const CheckoutsCustomUpdateRequest$outboundSchema: z.ZodType< - CheckoutsCustomUpdateRequest$Outbound, +export const CheckoutsUpdateRequest$outboundSchema: z.ZodType< + CheckoutsUpdateRequest$Outbound, z.ZodTypeDef, - CheckoutsCustomUpdateRequest + CheckoutsUpdateRequest > = z.object({ id: z.string(), checkoutUpdate: CheckoutUpdate$outboundSchema, @@ -60,31 +60,29 @@ export const CheckoutsCustomUpdateRequest$outboundSchema: z.ZodType< * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace CheckoutsCustomUpdateRequest$ { - /** @deprecated use `CheckoutsCustomUpdateRequest$inboundSchema` instead. */ - export const inboundSchema = CheckoutsCustomUpdateRequest$inboundSchema; - /** @deprecated use `CheckoutsCustomUpdateRequest$outboundSchema` instead. */ - export const outboundSchema = CheckoutsCustomUpdateRequest$outboundSchema; - /** @deprecated use `CheckoutsCustomUpdateRequest$Outbound` instead. */ - export type Outbound = CheckoutsCustomUpdateRequest$Outbound; +export namespace CheckoutsUpdateRequest$ { + /** @deprecated use `CheckoutsUpdateRequest$inboundSchema` instead. */ + export const inboundSchema = CheckoutsUpdateRequest$inboundSchema; + /** @deprecated use `CheckoutsUpdateRequest$outboundSchema` instead. */ + export const outboundSchema = CheckoutsUpdateRequest$outboundSchema; + /** @deprecated use `CheckoutsUpdateRequest$Outbound` instead. */ + export type Outbound = CheckoutsUpdateRequest$Outbound; } -export function checkoutsCustomUpdateRequestToJSON( - checkoutsCustomUpdateRequest: CheckoutsCustomUpdateRequest, +export function checkoutsUpdateRequestToJSON( + checkoutsUpdateRequest: CheckoutsUpdateRequest, ): string { return JSON.stringify( - CheckoutsCustomUpdateRequest$outboundSchema.parse( - checkoutsCustomUpdateRequest, - ), + CheckoutsUpdateRequest$outboundSchema.parse(checkoutsUpdateRequest), ); } -export function checkoutsCustomUpdateRequestFromJSON( +export function checkoutsUpdateRequestFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => CheckoutsCustomUpdateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'CheckoutsCustomUpdateRequest' from JSON`, + (x) => CheckoutsUpdateRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CheckoutsUpdateRequest' from JSON`, ); } diff --git a/src/sdk/checkouts.ts b/src/sdk/checkouts.ts index e97105fb..feac4d50 100644 --- a/src/sdk/checkouts.ts +++ b/src/sdk/checkouts.ts @@ -2,33 +2,58 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import { checkoutsClientConfirm } from "../funcs/checkoutsClientConfirm.js"; +import { checkoutsClientGet } from "../funcs/checkoutsClientGet.js"; +import { checkoutsClientUpdate } from "../funcs/checkoutsClientUpdate.js"; import { checkoutsCreate } from "../funcs/checkoutsCreate.js"; import { checkoutsGet } from "../funcs/checkoutsGet.js"; +import { checkoutsList } from "../funcs/checkoutsList.js"; +import { checkoutsUpdate } from "../funcs/checkoutsUpdate.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import { CheckoutLegacy } from "../models/components/checkoutlegacy.js"; -import { CheckoutLegacyCreate } from "../models/components/checkoutlegacycreate.js"; +import { Checkout } from "../models/components/checkout.js"; +import { CheckoutCreate } from "../models/components/checkoutcreate.js"; +import { CheckoutPublic } from "../models/components/checkoutpublic.js"; +import { CheckoutPublicConfirmed } from "../models/components/checkoutpublicconfirmed.js"; +import { CheckoutsClientConfirmRequest } from "../models/operations/checkoutsclientconfirm.js"; +import { CheckoutsClientGetRequest } from "../models/operations/checkoutsclientget.js"; +import { CheckoutsClientUpdateRequest } from "../models/operations/checkoutsclientupdate.js"; import { CheckoutsGetRequest } from "../models/operations/checkoutsget.js"; +import { + CheckoutsListRequest, + CheckoutsListResponse, +} from "../models/operations/checkoutslist.js"; +import { CheckoutsUpdateRequest } from "../models/operations/checkoutsupdate.js"; import { unwrapAsync } from "../types/fp.js"; -import { Custom } from "./custom.js"; +import { PageIterator, unwrapResultIterator } from "../types/operations.js"; export class Checkouts extends ClientSDK { - private _custom?: Custom; - get custom(): Custom { - return (this._custom ??= new Custom(this._options)); + /** + * List Checkout Sessions + * + * @remarks + * List checkout sessions. + */ + async list( + request: CheckoutsListRequest, + options?: RequestOptions, + ): Promise> { + return unwrapResultIterator(checkoutsList( + this, + request, + options, + )); } /** - * Create Checkout + * Create Checkout Session * * @remarks * Create a checkout session. - * - * @deprecated method: This API is deprecated. We recommend you to use the new custom checkout API, which is more flexible and powerful. Please refer to the documentation for more information.. Use create instead. */ async create( - request: CheckoutLegacyCreate, + request: CheckoutCreate, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(checkoutsCreate( this, request, @@ -37,21 +62,89 @@ export class Checkouts extends ClientSDK { } /** - * Get Checkout + * Get Checkout Session * * @remarks - * Get an active checkout session by ID. - * - * @deprecated method: This API is deprecated. We recommend you to use the new custom checkout API, which is more flexible and powerful. Please refer to the documentation for more information.. + * Get a checkout session by ID. */ async get( request: CheckoutsGetRequest, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(checkoutsGet( this, request, options, )); } + + /** + * Update Checkout Session + * + * @remarks + * Update a checkout session. + */ + async update( + request: CheckoutsUpdateRequest, + options?: RequestOptions, + ): Promise { + return unwrapAsync(checkoutsUpdate( + this, + request, + options, + )); + } + + /** + * Get Checkout Session from Client + * + * @remarks + * Get a checkout session by client secret. + */ + async clientGet( + request: CheckoutsClientGetRequest, + options?: RequestOptions, + ): Promise { + return unwrapAsync(checkoutsClientGet( + this, + request, + options, + )); + } + + /** + * Update Checkout Session from Client + * + * @remarks + * Update a checkout session by client secret. + */ + async clientUpdate( + request: CheckoutsClientUpdateRequest, + options?: RequestOptions, + ): Promise { + return unwrapAsync(checkoutsClientUpdate( + this, + request, + options, + )); + } + + /** + * Confirm Checkout Session from Client + * + * @remarks + * Confirm a checkout session by client secret. + * + * Orders and subscriptions will be processed. + */ + async clientConfirm( + request: CheckoutsClientConfirmRequest, + options?: RequestOptions, + ): Promise { + return unwrapAsync(checkoutsClientConfirm( + this, + request, + options, + )); + } } diff --git a/src/sdk/custom.ts b/src/sdk/custom.ts deleted file mode 100644 index ee103007..00000000 --- a/src/sdk/custom.ts +++ /dev/null @@ -1,150 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { checkoutsCustomClientConfirm } from "../funcs/checkoutsCustomClientConfirm.js"; -import { checkoutsCustomClientGet } from "../funcs/checkoutsCustomClientGet.js"; -import { checkoutsCustomClientUpdate } from "../funcs/checkoutsCustomClientUpdate.js"; -import { checkoutsCustomCreate } from "../funcs/checkoutsCustomCreate.js"; -import { checkoutsCustomGet } from "../funcs/checkoutsCustomGet.js"; -import { checkoutsCustomList } from "../funcs/checkoutsCustomList.js"; -import { checkoutsCustomUpdate } from "../funcs/checkoutsCustomUpdate.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import { Checkout } from "../models/components/checkout.js"; -import { CheckoutCreate } from "../models/components/checkoutcreate.js"; -import { CheckoutPublic } from "../models/components/checkoutpublic.js"; -import { CheckoutPublicConfirmed } from "../models/components/checkoutpublicconfirmed.js"; -import { CheckoutsCustomClientConfirmRequest } from "../models/operations/checkoutscustomclientconfirm.js"; -import { CheckoutsCustomClientGetRequest } from "../models/operations/checkoutscustomclientget.js"; -import { CheckoutsCustomClientUpdateRequest } from "../models/operations/checkoutscustomclientupdate.js"; -import { CheckoutsCustomGetRequest } from "../models/operations/checkoutscustomget.js"; -import { - CheckoutsCustomListRequest, - CheckoutsCustomListResponse, -} from "../models/operations/checkoutscustomlist.js"; -import { CheckoutsCustomUpdateRequest } from "../models/operations/checkoutscustomupdate.js"; -import { unwrapAsync } from "../types/fp.js"; -import { PageIterator, unwrapResultIterator } from "../types/operations.js"; - -export class Custom extends ClientSDK { - /** - * List Checkout Sessions - * - * @remarks - * List checkout sessions. - */ - async list( - request: CheckoutsCustomListRequest, - options?: RequestOptions, - ): Promise> { - return unwrapResultIterator(checkoutsCustomList( - this, - request, - options, - )); - } - - /** - * Create Checkout Session - * - * @remarks - * Create a checkout session. - */ - async create( - request: CheckoutCreate, - options?: RequestOptions, - ): Promise { - return unwrapAsync(checkoutsCustomCreate( - this, - request, - options, - )); - } - - /** - * Get Checkout Session - * - * @remarks - * Get a checkout session by ID. - */ - async get( - request: CheckoutsCustomGetRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(checkoutsCustomGet( - this, - request, - options, - )); - } - - /** - * Update Checkout Session - * - * @remarks - * Update a checkout session. - */ - async update( - request: CheckoutsCustomUpdateRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(checkoutsCustomUpdate( - this, - request, - options, - )); - } - - /** - * Get Checkout Session from Client - * - * @remarks - * Get a checkout session by client secret. - */ - async clientGet( - request: CheckoutsCustomClientGetRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(checkoutsCustomClientGet( - this, - request, - options, - )); - } - - /** - * Update Checkout Session from Client - * - * @remarks - * Update a checkout session by client secret. - */ - async clientUpdate( - request: CheckoutsCustomClientUpdateRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(checkoutsCustomClientUpdate( - this, - request, - options, - )); - } - - /** - * Confirm Checkout Session from Client - * - * @remarks - * Confirm a checkout session by client secret. - * - * Orders and subscriptions will be processed. - */ - async clientConfirm( - request: CheckoutsCustomClientConfirmRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(checkoutsCustomClientConfirm( - this, - request, - options, - )); - } -}