Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.431.0
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot authored and frankie567 committed Nov 6, 2024
1 parent 24e94b9 commit 4d16076
Show file tree
Hide file tree
Showing 184 changed files with 5,506 additions and 583 deletions.
199 changes: 170 additions & 29 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ generation:
requestResponseComponentNamesFeb2024: true
auth:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: false
python:
version: 0.7.0
version: 0.7.1
additionalDependencies:
dev: {}
main: {}
Expand Down
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
speakeasyVersion: 1.424.0
speakeasyVersion: 1.431.0
sources:
Polar-OAS:
sourceNamespace: polar-oas
sourceRevisionDigest: sha256:814854f05d50ba78118c85640341bf5523d41e08d3d90789a3804f5b58bbdda6
sourceBlobDigest: sha256:47c4285003255d7bf61593438fcc7f5cc4650bece8005ac801a6c26cd2eabba7
sourceRevisionDigest: sha256:bdfd06b23a17ee112bbcfaaf77e0e5293d2305ec4704ab750626221f270c5bfc
sourceBlobDigest: sha256:7316038513ebb138e351a2af12f12b570b62f9691c2be6df032216ee0406f91a
tags:
- latest
- main
targets:
polar:
source: Polar-OAS
sourceNamespace: polar-oas
sourceRevisionDigest: sha256:814854f05d50ba78118c85640341bf5523d41e08d3d90789a3804f5b58bbdda6
sourceBlobDigest: sha256:47c4285003255d7bf61593438fcc7f5cc4650bece8005ac801a6c26cd2eabba7
sourceRevisionDigest: sha256:bdfd06b23a17ee112bbcfaaf77e0e5293d2305ec4704ab750626221f270c5bfc
sourceBlobDigest: sha256:7316038513ebb138e351a2af12f12b570b62f9691c2be6df032216ee0406f91a
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,14 @@ asyncio.run(main())
* [client_update](docs/sdks/custom/README.md#client_update) - Update Checkout Session from Client
* [client_confirm](docs/sdks/custom/README.md#client_confirm) - Confirm Checkout Session from Client

### [custom_fields](docs/sdks/customfields/README.md)

* [list](docs/sdks/customfields/README.md#list) - List Custom Fields
* [create](docs/sdks/customfields/README.md#create) - Create Custom Field
* [get](docs/sdks/customfields/README.md#get) - Get Custom Field
* [update](docs/sdks/customfields/README.md#update) - Update Custom Field
* [delete](docs/sdks/customfields/README.md#delete) - Delete Custom Field

### [external_organizations](docs/sdks/externalorganizations/README.md)

* [list](docs/sdks/externalorganizations/README.md#list) - List External Organizations
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,4 +273,14 @@ Based on:
### Generated
- [python v0.7.0] .
### Releases
- [PyPI v0.7.0] https://pypi.org/project/polar-sdk/0.7.0 - .
- [PyPI v0.7.0] https://pypi.org/project/polar-sdk/0.7.0 - .

## 2024-11-06 00:11:45
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.431.0 (2.451.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.7.1] .
### Releases
- [PyPI v0.7.1] https://pypi.org/project/polar-sdk/0.7.1 - .
30 changes: 30 additions & 0 deletions codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,36 @@ actions:
- "lang": "python"
"label": "update"
"source": "from polar_sdk import Polar\n\ns = Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n)\n\nres = s.checkouts.custom.update(id=\"<value>\", checkout_update={})\n\nif res is not None:\n # handle response\n pass"
- target: $["paths"]["/v1/custom-fields/"]["get"]
update:
"x-codeSamples":
- "lang": "python"
"label": "list"
"source": "from polar_sdk import Polar\n\ns = Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n)\n\nres = s.custom_fields.list()\n\nif res is not None:\n while True:\n # handle items\n\n res = res.next()\n if res is None:\n break"
- target: $["paths"]["/v1/custom-fields/"]["post"]
update:
"x-codeSamples":
- "lang": "python"
"label": "create"
"source": "import polar_sdk\nfrom polar_sdk import Polar\n\ns = Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n)\n\nres = s.custom_fields.create(request={\n \"type\": polar_sdk.CustomFieldCreateNumberType.NUMBER,\n \"slug\": \"<value>\",\n \"name\": \"<value>\",\n \"properties\": {},\n})\n\nif res is not None:\n # handle response\n pass"
- target: $["paths"]["/v1/custom-fields/{id}"]["delete"]
update:
"x-codeSamples":
- "lang": "python"
"label": "delete"
"source": "from polar_sdk import Polar\n\ns = Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n)\n\ns.custom_fields.delete(id=\"<value>\")\n\n# Use the SDK ..."
- target: $["paths"]["/v1/custom-fields/{id}"]["get"]
update:
"x-codeSamples":
- "lang": "python"
"label": "get"
"source": "from polar_sdk import Polar\n\ns = Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n)\n\nres = s.custom_fields.get(id=\"<value>\")\n\nif res is not None:\n # handle response\n pass"
- target: $["paths"]["/v1/custom-fields/{id}"]["patch"]
update:
"x-codeSamples":
- "lang": "python"
"label": "update"
"source": "import polar_sdk\nfrom polar_sdk import Polar\n\ns = Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n)\n\nres = s.custom_fields.update(id=\"<value>\", custom_field_update={\n \"type\": polar_sdk.CustomFieldUpdateTextType.TEXT,\n})\n\nif res is not None:\n # handle response\n pass"
- target: $["paths"]["/v1/external_organizations/"]["get"]
update:
"x-codeSamples":
Expand Down
13 changes: 13 additions & 0 deletions docs/models/attachedcustomfield.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# AttachedCustomField

Schema of a custom field attached to a resource.


## Fields

| Field | Type | Required | Description |
| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- |
| `custom_field_id` | *str* | :heavy_check_mark: | ID of the custom field. |
| `custom_field` | [models.CustomField](../models/customfield.md) | :heavy_check_mark: | N/A |
| `order` | *int* | :heavy_check_mark: | Order of the custom field in the resource. |
| `required` | *bool* | :heavy_check_mark: | Whether the value is required for this custom field. |
11 changes: 11 additions & 0 deletions docs/models/attachedcustomfieldcreate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# AttachedCustomFieldCreate

Schema to attach a custom field to a resource.


## Fields

| Field | Type | Required | Description |
| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- |
| `custom_field_id` | *str* | :heavy_check_mark: | ID of the custom field to attach. |
| `required` | *bool* | :heavy_check_mark: | Whether the value is required for this custom field. |
3 changes: 2 additions & 1 deletion docs/models/benefitadssubscriber.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
| `selectable` | *bool* | :heavy_check_mark: | Whether the benefit is selectable when creating a product. |
| `deletable` | *bool* | :heavy_check_mark: | Whether the benefit is deletable. |
| `organization_id` | *str* | :heavy_check_mark: | The ID of the organization owning the benefit. |
| `properties` | [models.BenefitAdsProperties](../models/benefitadsproperties.md) | :heavy_check_mark: | Properties for a benefit of type `ads`. |
| `grants` | List[[models.BenefitGrantAds](../models/benefitgrantads.md)] | :heavy_check_mark: | N/A |
| `organization` | [models.Organization](../models/organization.md) | :heavy_check_mark: | N/A |
| `properties` | [models.BenefitAdsProperties](../models/benefitadsproperties.md) | :heavy_check_mark: | Properties for a benefit of type `ads`. |
| `type` | [models.BenefitAdsSubscriberType](../models/benefitadssubscribertype.md) | :heavy_check_mark: | N/A |
2 changes: 2 additions & 0 deletions docs/models/benefitarticlessubscriber.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,7 @@
| `selectable` | *bool* | :heavy_check_mark: | Whether the benefit is selectable when creating a product. |
| `deletable` | *bool* | :heavy_check_mark: | Whether the benefit is deletable. |
| `organization_id` | *str* | :heavy_check_mark: | The ID of the organization owning the benefit. |
| `grants` | List[[models.BenefitGrantSubscriber](../models/benefitgrantsubscriber.md)] | :heavy_check_mark: | N/A |
| `organization` | [models.Organization](../models/organization.md) | :heavy_check_mark: | N/A |
| `properties` | [models.BenefitArticlesSubscriberProperties](../models/benefitarticlessubscriberproperties.md) | :heavy_check_mark: | Properties available to subscribers for a benefit of type `articles`. |
| `type` | [models.Type](../models/type.md) | :heavy_check_mark: | N/A |
1 change: 1 addition & 0 deletions docs/models/benefitcustomsubscriber.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@
| `deletable` | *bool* | :heavy_check_mark: | Whether the benefit is deletable. |
| `organization_id` | *str* | :heavy_check_mark: | The ID of the organization owning the benefit. |
| `grants` | List[[models.BenefitGrantSubscriber](../models/benefitgrantsubscriber.md)] | :heavy_check_mark: | N/A |
| `organization` | [models.Organization](../models/organization.md) | :heavy_check_mark: | N/A |
| `properties` | [models.BenefitCustomSubscriberProperties](../models/benefitcustomsubscriberproperties.md) | :heavy_check_mark: | Properties available to subscribers for a benefit of type `custom`. |
| `type` | [models.BenefitCustomSubscriberType](../models/benefitcustomsubscribertype.md) | :heavy_check_mark: | N/A |
2 changes: 2 additions & 0 deletions docs/models/benefitdiscordsubscriber.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,7 @@
| `selectable` | *bool* | :heavy_check_mark: | Whether the benefit is selectable when creating a product. |
| `deletable` | *bool* | :heavy_check_mark: | Whether the benefit is deletable. |
| `organization_id` | *str* | :heavy_check_mark: | The ID of the organization owning the benefit. |
| `grants` | List[[models.BenefitGrantSubscriber](../models/benefitgrantsubscriber.md)] | :heavy_check_mark: | N/A |
| `organization` | [models.Organization](../models/organization.md) | :heavy_check_mark: | N/A |
| `properties` | [models.BenefitDiscordSubscriberProperties](../models/benefitdiscordsubscriberproperties.md) | :heavy_check_mark: | Properties available to subscribers for a benefit of type `discord`. |
| `type` | [models.BenefitDiscordSubscriberType](../models/benefitdiscordsubscribertype.md) | :heavy_check_mark: | N/A |
Loading

0 comments on commit 4d16076

Please sign in to comment.