Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.418.4
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot authored and frankie567 committed Oct 16, 2024
1 parent 29944e6 commit 16cda15
Show file tree
Hide file tree
Showing 93 changed files with 839 additions and 741 deletions.
66 changes: 43 additions & 23 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: true
python:
version: 0.6.0
version: 0.6.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.414.1
speakeasyVersion: 1.418.4
sources:
Polar-OAS:
sourceNamespace: polar-oas
sourceRevisionDigest: sha256:2f0fab250bdd2a15f4b8b225063ce16b4c2dcd0da7a7634bbd7889568e660f2c
sourceBlobDigest: sha256:e17ea29a2bc4fc5f01ead9a66ea39f07913e6ea3732e5ecf47675de704af2041
sourceRevisionDigest: sha256:b083b473d9fd6021a6126b423b2a5516d609a816b8bcce935b1a585d1298290a
sourceBlobDigest: sha256:8aa5bbab824b689955e2c1763c1751ce61965e9bddb63c207b0cbdaefac8d5ed
tags:
- latest
- main
targets:
polar:
source: Polar-OAS
sourceNamespace: polar-oas
sourceRevisionDigest: sha256:2f0fab250bdd2a15f4b8b225063ce16b4c2dcd0da7a7634bbd7889568e660f2c
sourceBlobDigest: sha256:e17ea29a2bc4fc5f01ead9a66ea39f07913e6ea3732e5ecf47675de704af2041
sourceRevisionDigest: sha256:b083b473d9fd6021a6126b423b2a5516d609a816b8bcce935b1a585d1298290a
sourceBlobDigest: sha256:8aa5bbab824b689955e2c1763c1751ce61965e9bddb63c207b0cbdaefac8d5ed
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ asyncio.run(main())

* [list](docs/sdks/articles/README.md#list) - List Articles
* [create](docs/sdks/articles/README.md#create) - Create Article
* [export](docs/sdks/articles/README.md#export) - Export Articles
* [get](docs/sdks/articles/README.md#get) - Get Article
* [update](docs/sdks/articles/README.md#update) - Update Article
* [delete](docs/sdks/articles/README.md#delete) - Delete Article
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,4 +213,14 @@ Based on:
### Generated
- [python v0.6.0] .
### Releases
- [PyPI v0.6.0] https://pypi.org/project/polar-sdk/0.6.0 - .
- [PyPI v0.6.0] https://pypi.org/project/polar-sdk/0.6.0 - .

## 2024-10-16 00:12:01
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.418.4 (2.438.3) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.6.1] .
### Releases
- [PyPI v0.6.1] https://pypi.org/project/polar-sdk/0.6.1 - .
6 changes: 6 additions & 0 deletions codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ actions:
- "lang": "python"
"label": "create"
"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"
- target: $["paths"]["/v1/articles/export"]["get"]
update:
"x-codeSamples":
- "lang": "python"
"label": "export"
"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"
- target: $["paths"]["/v1/articles/{id}"]["delete"]
update:
"x-codeSamples":
Expand Down
4 changes: 2 additions & 2 deletions docs/models/articlecreate.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
| `body` | *OptionalNullable[str]* | :heavy_minus_sign: | Body in string format. Either one of body or body_base64 is required. |
| `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. |
| `organization_id` | *OptionalNullable[str]* | :heavy_minus_sign: | The ID of the organization owning the article. **Required unless you use an organization token.** |
| `byline` | [Optional[models.ArticleCreateArticleByline]](../models/articlecreatearticlebyline.md) | :heavy_minus_sign: | If the user or organization should be credited in the byline. |
| `visibility` | [Optional[models.ArticleCreateArticleVisibility]](../models/articlecreatearticlevisibility.md) | :heavy_minus_sign: | N/A |
| `byline` | [Optional[models.ArticleByline]](../models/articlebyline.md) | :heavy_minus_sign: | N/A |
| `visibility` | [Optional[models.ArticleVisibility]](../models/articlevisibility.md) | :heavy_minus_sign: | N/A |
| `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. |
| `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. |
| `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. |
Expand Down
11 changes: 0 additions & 11 deletions docs/models/articlecreatearticlebyline.md

This file was deleted.

10 changes: 0 additions & 10 deletions docs/models/articlecreatearticlevisibility.md

This file was deleted.

8 changes: 8 additions & 0 deletions docs/models/articlesexportrequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# ArticlesExportRequest


## Fields

| Field | Type | Required | Description |
| ------------------ | ------------------ | ------------------ | ------------------ |
| `organization_id` | *str* | :heavy_check_mark: | N/A |
2 changes: 1 addition & 1 deletion docs/models/benefitbase.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
| `created_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | Creation timestamp of the object. |
| `modified_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | Last modification timestamp of the object. |
| `id` | *str* | :heavy_check_mark: | The ID of the benefit. |
| `type` | [models.BenefitType](../models/benefittype.md) | :heavy_check_mark: | The type of the benefit. |
| `type` | [models.BenefitType](../models/benefittype.md) | :heavy_check_mark: | N/A |
| `description` | *str* | :heavy_check_mark: | The description of the benefit. |
| `selectable` | *bool* | :heavy_check_mark: | Whether the benefit is selectable when creating a product. |
| `deletable` | *bool* | :heavy_check_mark: | Whether the benefit is deletable. |
Expand Down
2 changes: 1 addition & 1 deletion docs/models/benefitgrantwebhook.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
| `user_id` | *str* | :heavy_check_mark: | The ID of the user concerned by this grant. |
| `benefit_id` | *str* | :heavy_check_mark: | The ID of the benefit concerned by this grant. |
| `properties` | [models.BenefitGrantWebhookProperties](../models/benefitgrantwebhookproperties.md) | :heavy_check_mark: | N/A |
| `benefit` | [models.BenefitGrantWebhookBenefit](../models/benefitgrantwebhookbenefit.md) | :heavy_check_mark: | N/A |
| `benefit` | [models.BenefitInput](../models/benefitinput.md) | :heavy_check_mark: | N/A |
| `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. |
| `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. |
| `previous_properties` | [OptionalNullable[models.PreviousProperties]](../models/previousproperties.md) | :heavy_minus_sign: | N/A |
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# BenefitGrantWebhookBenefit
# BenefitInput


## Supported Types
Expand Down
49 changes: 0 additions & 49 deletions docs/models/benefitscreateresponsebenefitscreate.md

This file was deleted.

49 changes: 0 additions & 49 deletions docs/models/benefitsgetresponsebenefitsget.md

This file was deleted.

49 changes: 0 additions & 49 deletions docs/models/benefitsupdateresponsebenefitsupdate.md

This file was deleted.

Loading

0 comments on commit 16cda15

Please sign in to comment.