Skip to content

Commit 16cda15

Browse files
speakeasybotfrankie567
authored andcommitted
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.418.4
1 parent 29944e6 commit 16cda15

File tree

93 files changed

+839
-741
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+839
-741
lines changed

.speakeasy/gen.lock

+43-23
Large diffs are not rendered by default.

.speakeasy/gen.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ generation:
1515
auth:
1616
oAuth2ClientCredentialsEnabled: true
1717
python:
18-
version: 0.6.0
18+
version: 0.6.1
1919
additionalDependencies:
2020
dev: {}
2121
main: {}

.speakeasy/workflow.lock

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
speakeasyVersion: 1.414.1
1+
speakeasyVersion: 1.418.4
22
sources:
33
Polar-OAS:
44
sourceNamespace: polar-oas
5-
sourceRevisionDigest: sha256:2f0fab250bdd2a15f4b8b225063ce16b4c2dcd0da7a7634bbd7889568e660f2c
6-
sourceBlobDigest: sha256:e17ea29a2bc4fc5f01ead9a66ea39f07913e6ea3732e5ecf47675de704af2041
5+
sourceRevisionDigest: sha256:b083b473d9fd6021a6126b423b2a5516d609a816b8bcce935b1a585d1298290a
6+
sourceBlobDigest: sha256:8aa5bbab824b689955e2c1763c1751ce61965e9bddb63c207b0cbdaefac8d5ed
77
tags:
88
- latest
99
- main
1010
targets:
1111
polar:
1212
source: Polar-OAS
1313
sourceNamespace: polar-oas
14-
sourceRevisionDigest: sha256:2f0fab250bdd2a15f4b8b225063ce16b4c2dcd0da7a7634bbd7889568e660f2c
15-
sourceBlobDigest: sha256:e17ea29a2bc4fc5f01ead9a66ea39f07913e6ea3732e5ecf47675de704af2041
14+
sourceRevisionDigest: sha256:b083b473d9fd6021a6126b423b2a5516d609a816b8bcce935b1a585d1298290a
15+
sourceBlobDigest: sha256:8aa5bbab824b689955e2c1763c1751ce61965e9bddb63c207b0cbdaefac8d5ed
1616
workflow:
1717
workflowVersion: 1.0.0
1818
speakeasyVersion: latest

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ asyncio.run(main())
103103

104104
* [list](docs/sdks/articles/README.md#list) - List Articles
105105
* [create](docs/sdks/articles/README.md#create) - Create Article
106+
* [export](docs/sdks/articles/README.md#export) - Export Articles
106107
* [get](docs/sdks/articles/README.md#get) - Get Article
107108
* [update](docs/sdks/articles/README.md#update) - Update Article
108109
* [delete](docs/sdks/articles/README.md#delete) - Delete Article

RELEASES.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -213,4 +213,14 @@ Based on:
213213
### Generated
214214
- [python v0.6.0] .
215215
### Releases
216-
- [PyPI v0.6.0] https://pypi.org/project/polar-sdk/0.6.0 - .
216+
- [PyPI v0.6.0] https://pypi.org/project/polar-sdk/0.6.0 - .
217+
218+
## 2024-10-16 00:12:01
219+
### Changes
220+
Based on:
221+
- OpenAPI Doc
222+
- Speakeasy CLI 1.418.4 (2.438.3) https://github.com/speakeasy-api/speakeasy
223+
### Generated
224+
- [python v0.6.1] .
225+
### Releases
226+
- [PyPI v0.6.1] https://pypi.org/project/polar-sdk/0.6.1 - .

codeSamples.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ actions:
2727
- "lang": "python"
2828
"label": "create"
2929
"source": "from polar_sdk import Polar\n\ns = Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n)\n\nres = s.articles.create(request={\n \"title\": \"<value>\",\n})\n\nif res is not None:\n # handle response\n pass"
30+
- target: $["paths"]["/v1/articles/export"]["get"]
31+
update:
32+
"x-codeSamples":
33+
- "lang": "python"
34+
"label": "export"
35+
"source": "from polar_sdk import Polar\n\ns = Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n)\n\nres = s.articles.export(organization_id=\"cf4e3d5e-2b50-4470-a85b-8d021391fabb\")\n\nif res is not None:\n # handle response\n pass"
3036
- target: $["paths"]["/v1/articles/{id}"]["delete"]
3137
update:
3238
"x-codeSamples":

docs/models/articlecreate.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
| `body` | *OptionalNullable[str]* | :heavy_minus_sign: | Body in string format. Either one of body or body_base64 is required. |
1111
| `body_base64` | *OptionalNullable[str]* | :heavy_minus_sign: | Body in base64-encoded format. Can be helpful to bypass Web Application Firewalls (WAF). Either one of body or body_base64 is required. |
1212
| `organization_id` | *OptionalNullable[str]* | :heavy_minus_sign: | The ID of the organization owning the article. **Required unless you use an organization token.** |
13-
| `byline` | [Optional[models.ArticleCreateArticleByline]](../models/articlecreatearticlebyline.md) | :heavy_minus_sign: | If the user or organization should be credited in the byline. |
14-
| `visibility` | [Optional[models.ArticleCreateArticleVisibility]](../models/articlecreatearticlevisibility.md) | :heavy_minus_sign: | N/A |
13+
| `byline` | [Optional[models.ArticleByline]](../models/articlebyline.md) | :heavy_minus_sign: | N/A |
14+
| `visibility` | [Optional[models.ArticleVisibility]](../models/articlevisibility.md) | :heavy_minus_sign: | N/A |
1515
| `paid_subscribers_only` | *Optional[bool]* | :heavy_minus_sign: | Set to true to only make this article available for subscribers to a paid subscription tier in the organization. |
1616
| `paid_subscribers_only_ends_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | If specified, time at which the article should no longer be restricted to paid subscribers. Only relevant if `paid_subscribers_only` is true. |
1717
| `published_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | Time of publishing. If this date is in the future, the post will be scheduled to publish at this time. If visibility is 'public', published_at will default to the current time. |

docs/models/articlecreatearticlebyline.md

-11
This file was deleted.

docs/models/articlecreatearticlevisibility.md

-10
This file was deleted.

docs/models/articlesexportrequest.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# ArticlesExportRequest
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ------------------ | ------------------ | ------------------ | ------------------ |
8+
| `organization_id` | *str* | :heavy_check_mark: | N/A |

docs/models/benefitbase.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
| `created_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | Creation timestamp of the object. |
99
| `modified_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | Last modification timestamp of the object. |
1010
| `id` | *str* | :heavy_check_mark: | The ID of the benefit. |
11-
| `type` | [models.BenefitType](../models/benefittype.md) | :heavy_check_mark: | The type of the benefit. |
11+
| `type` | [models.BenefitType](../models/benefittype.md) | :heavy_check_mark: | N/A |
1212
| `description` | *str* | :heavy_check_mark: | The description of the benefit. |
1313
| `selectable` | *bool* | :heavy_check_mark: | Whether the benefit is selectable when creating a product. |
1414
| `deletable` | *bool* | :heavy_check_mark: | Whether the benefit is deletable. |

docs/models/benefitgrantwebhook.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
| `user_id` | *str* | :heavy_check_mark: | The ID of the user concerned by this grant. |
1616
| `benefit_id` | *str* | :heavy_check_mark: | The ID of the benefit concerned by this grant. |
1717
| `properties` | [models.BenefitGrantWebhookProperties](../models/benefitgrantwebhookproperties.md) | :heavy_check_mark: | N/A |
18-
| `benefit` | [models.BenefitGrantWebhookBenefit](../models/benefitgrantwebhookbenefit.md) | :heavy_check_mark: | N/A |
18+
| `benefit` | [models.BenefitInput](../models/benefitinput.md) | :heavy_check_mark: | N/A |
1919
| `granted_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | The timestamp when the benefit was granted. If `None`, the benefit is not granted. |
2020
| `revoked_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | The timestamp when the benefit was revoked. If `None`, the benefit is not revoked. |
2121
| `previous_properties` | [OptionalNullable[models.PreviousProperties]](../models/previousproperties.md) | :heavy_minus_sign: | N/A |

docs/models/benefitgrantwebhookbenefit.md docs/models/benefitinput.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# BenefitGrantWebhookBenefit
1+
# BenefitInput
22

33

44
## Supported Types

docs/models/benefitscreateresponsebenefitscreate.md

-49
This file was deleted.

docs/models/benefitsgetresponsebenefitsget.md

-49
This file was deleted.

docs/models/benefitsupdateresponsebenefitsupdate.md

-49
This file was deleted.

0 commit comments

Comments
 (0)