Skip to content

Commit 28bc4d2

Browse files
speakeasybotfrankie567
authored andcommitted
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.438.1
1 parent c995730 commit 28bc4d2

File tree

175 files changed

+2415
-1746
lines changed

Some content is hidden

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

175 files changed

+2415
-1746
lines changed

.speakeasy/gen.lock

+82-55
Large diffs are not rendered by default.

.speakeasy/gen.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,14 @@ generation:
1616
oAuth2ClientCredentialsEnabled: true
1717
oAuth2PasswordEnabled: false
1818
python:
19-
version: 0.7.2
19+
version: 0.8.0
2020
additionalDependencies:
2121
dev: {}
2222
main: {}
2323
authors:
2424
- Polar
2525
clientServerStatusCodesAsErrors: true
26+
defaultErrorName: SDKError
2627
description: Polar SDK for Python
2728
enumFormat: enum
2829
fixFlags:

.speakeasy/workflow.lock

+10-5
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
1-
speakeasyVersion: 1.431.0
1+
speakeasyVersion: 1.438.1
22
sources:
33
Polar-OAS:
44
sourceNamespace: polar-oas
5-
sourceRevisionDigest: sha256:24ce22f912266c290b90a984be308b37c71712a60a136bd2a24fbe08555eec7d
6-
sourceBlobDigest: sha256:0e4a2d08c7f1223110e726f0037614363ba877289fef1c97a1a12fd3d5a7dc59
5+
sourceRevisionDigest: sha256:4c8f6dea674031cefb5b638d589e7903c000e0f44ffbf6046027cbc0ba9dda55
6+
sourceBlobDigest: sha256:0f5b5388af51c8cea34904ea7acce013ecca69a2afb75886d9f134e135a365bd
77
tags:
88
- latest
99
- main
1010
targets:
1111
polar:
1212
source: Polar-OAS
1313
sourceNamespace: polar-oas
14-
sourceRevisionDigest: sha256:24ce22f912266c290b90a984be308b37c71712a60a136bd2a24fbe08555eec7d
15-
sourceBlobDigest: sha256:0e4a2d08c7f1223110e726f0037614363ba877289fef1c97a1a12fd3d5a7dc59
14+
sourceRevisionDigest: sha256:4c8f6dea674031cefb5b638d589e7903c000e0f44ffbf6046027cbc0ba9dda55
15+
sourceBlobDigest: sha256:0f5b5388af51c8cea34904ea7acce013ecca69a2afb75886d9f134e135a365bd
16+
codeSamplesNamespace: polar-oas-code-samples
17+
codeSamplesRevisionDigest: sha256:d980ce7e51397e88d462aed35890accbb2be4d8c18090d89e306bd189fd48ac5
1618
workflow:
1719
workflowVersion: 1.0.0
1820
speakeasyVersion: latest
@@ -24,6 +26,7 @@ workflow:
2426
- location: https://raw.githubusercontent.com/polarsource/polar/main/sdk/overlays/security.yml
2527
- location: https://raw.githubusercontent.com/polarsource/polar/main/sdk/overlays/type_parameter.yml
2628
- location: https://raw.githubusercontent.com/polarsource/polar/main/sdk/overlays/product_price_discriminator.yml
29+
- location: https://raw.githubusercontent.com/polarsource/polar/main/sdk/overlays/read_only.yml
2730
registry:
2831
location: registry.speakeasyapi.dev/polar/polar/polar-oas
2932
targets:
@@ -35,3 +38,5 @@ workflow:
3538
token: $pypi_token
3639
codeSamples:
3740
output: codeSamples.yaml
41+
registry:
42+
location: registry.speakeasyapi.dev/polar/polar/polar-oas-code-samples

.speakeasy/workflow.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,5 @@ targets:
2020
token: $pypi_token
2121
codeSamples:
2222
output: codeSamples.yaml
23+
registry:
24+
location: registry.speakeasyapi.dev/polar/polar/polar-oas-code-samples

README.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ asyncio.run(main())
177177

178178
### [oauth2](docs/sdks/oauth2/README.md)
179179

180+
* [authorize](docs/sdks/oauth2/README.md#authorize) - Authorize
180181
* [token](docs/sdks/oauth2/README.md#token) - Request Token
181182
* [revoke](docs/sdks/oauth2/README.md#revoke) - Revoke Token
182183
* [introspect](docs/sdks/oauth2/README.md#introspect) - Introspect Token
@@ -335,10 +336,10 @@ By default, an API error will raise a models.SDKError exception, which has the f
335336

336337
When custom error responses are specified for an operation, the SDK may also raise their associated exceptions. You can refer to respective *Errors* tables in SDK docs for more details on possible exception types for each operation. For example, the `list_async` method may raise the following exceptions:
337338

338-
| Error Type | Status Code | Content Type |
339-
| -------------------------- | -------------------------- | -------------------------- |
340-
| models.HTTPValidationError | 422 | application/json |
341-
| models.SDKError | 4XX, 5XX | \*/\* |
339+
| Error Type | Status Code | Content Type |
340+
| -------------------------- | ----------- | ---------------- |
341+
| models.HTTPValidationError | 422 | application/json |
342+
| models.SDKError | 4XX, 5XX | \*/\* |
342343

343344
### Example
344345

@@ -377,10 +378,10 @@ except models.SDKError as e:
377378

378379
You can override the default server globally by passing a server name to the `server: str` optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the names associated with the available servers:
379380

380-
| Name | Server | Variables |
381-
| ----- | ------ | --------- |
382-
| `production` | `https://api.polar.sh` | None |
383-
| `sandbox` | `https://sandbox-api.polar.sh` | None |
381+
| Name | Server |
382+
| ------------ | ------------------------------ |
383+
| `production` | `https://api.polar.sh` |
384+
| `sandbox` | `https://sandbox-api.polar.sh` |
384385

385386
#### Example
386387

@@ -404,7 +405,6 @@ if res is not None:
404405

405406
```
406407

407-
408408
### Override Server URL Per-Client
409409

410410
The default server can also be overridden globally by passing a URL to the `server_url: str` optional parameter when initializing the SDK client instance. For example:
@@ -517,9 +517,9 @@ s = Polar(async_client=CustomClient(httpx.AsyncClient()))
517517

518518
This SDK supports the following security scheme globally:
519519

520-
| Name | Type | Scheme |
521-
| -------------- | -------------- | -------------- |
522-
| `access_token` | http | HTTP Bearer |
520+
| Name | Type | Scheme |
521+
| -------------- | ---- | ----------- |
522+
| `access_token` | http | HTTP Bearer |
523523

524524
To authenticate with the API the `access_token` parameter must be set when initializing the SDK client instance. For example:
525525
```python

RELEASES.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -293,4 +293,14 @@ Based on:
293293
### Generated
294294
- [python v0.7.2] .
295295
### Releases
296-
- [PyPI v0.7.2] https://pypi.org/project/polar-sdk/0.7.2 - .
296+
- [PyPI v0.7.2] https://pypi.org/project/polar-sdk/0.7.2 - .
297+
298+
## 2024-11-13 14:20:56
299+
### Changes
300+
Based on:
301+
- OpenAPI Doc
302+
- Speakeasy CLI 1.438.1 (2.457.2) https://github.com/speakeasy-api/speakeasy
303+
### Generated
304+
- [python v0.8.0] .
305+
### Releases
306+
- [PyPI v0.8.0] https://pypi.org/project/polar-sdk/0.8.0 - .

codeSamples.yaml

+7-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ actions:
146146
"x-codeSamples":
147147
- "lang": "python"
148148
"label": "create"
149-
"source": "import polar_sdk\nfrom polar_sdk import Polar\n\ns = Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n)\n\nres = s.checkouts.custom.create(request={\n \"payment_processor\": polar_sdk.PaymentProcessor.STRIPE,\n \"product_price_id\": \"<value>\",\n})\n\nif res is not None:\n # handle response\n pass"
149+
"source": "import polar_sdk\nfrom polar_sdk import Polar\n\ns = Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n)\n\nres = s.checkouts.custom.create(request={\n \"payment_processor\": polar_sdk.PolarCheckoutSchemasCheckoutCreatePaymentProcessor.STRIPE,\n \"product_price_id\": \"<value>\",\n})\n\nif res is not None:\n # handle response\n pass"
150150
- target: $["paths"]["/v1/checkouts/custom/client/{client_secret}"]["get"]
151151
update:
152152
"x-codeSamples":
@@ -285,6 +285,12 @@ actions:
285285
- "lang": "python"
286286
"label": "list"
287287
"source": "from polar_sdk import Polar\n\ns = Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n)\n\nres = s.oauth2.clients.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"
288+
- target: $["paths"]["/v1/oauth2/authorize"]["get"]
289+
update:
290+
"x-codeSamples":
291+
- "lang": "python"
292+
"label": "authorize"
293+
"source": "from polar_sdk import Polar\n\ns = Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n)\n\nres = s.oauth2.authorize()\n\nif res is not None:\n # handle response\n pass"
288294
- target: $["paths"]["/v1/oauth2/introspect"]["post"]
289295
update:
290296
"x-codeSamples":

docs/models/authorizeorganization.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# AuthorizeOrganization
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ------------------ | ------------------ | ------------------ | ------------------ |
8+
| `id` | *str* | :heavy_check_mark: | N/A |
9+
| `slug` | *str* | :heavy_check_mark: | N/A |
10+
| `avatar_url` | *Nullable[str]* | :heavy_check_mark: | N/A |
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# AuthorizeResponseOrganization
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ |
8+
| `client` | [models.OAuth2ClientPublic](../models/oauth2clientpublic.md) | :heavy_check_mark: | N/A |
9+
| `sub` | [Nullable[models.AuthorizeOrganization]](../models/authorizeorganization.md) | :heavy_check_mark: | N/A |
10+
| `scopes` | List[[models.Scope](../models/scope.md)] | :heavy_check_mark: | N/A |
11+
| `organizations` | List[[models.AuthorizeOrganization](../models/authorizeorganization.md)] | :heavy_check_mark: | N/A |
12+
| `sub_type` | [models.AuthorizeResponseOrganizationSubType](../models/authorizeresponseorganizationsubtype.md) | :heavy_check_mark: | N/A |
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# AuthorizeResponseOrganizationSubType
2+
3+
4+
## Values
5+
6+
| Name | Value |
7+
| -------------- | -------------- |
8+
| `ORGANIZATION` | organization |

docs/models/authorizeresponseuser.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# AuthorizeResponseUser
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
8+
| `client` | [models.OAuth2ClientPublic](../models/oauth2clientpublic.md) | :heavy_check_mark: | N/A |
9+
| `sub` | [Nullable[models.AuthorizeUser]](../models/authorizeuser.md) | :heavy_check_mark: | N/A |
10+
| `scopes` | List[[models.Scope](../models/scope.md)] | :heavy_check_mark: | N/A |
11+
| `sub_type` | [models.AuthorizeResponseUserSubType](../models/authorizeresponseusersubtype.md) | :heavy_check_mark: | N/A |
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# AuthorizeResponseUserSubType
2+
3+
4+
## Values
5+
6+
| Name | Value |
7+
| ------ | ------ |
8+
| `USER` | user |
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# DonationUser
1+
# AuthorizeUser
22

33

44
## Fields
55

66
| Field | Type | Required | Description |
77
| ------------------ | ------------------ | ------------------ | ------------------ |
88
| `id` | *str* | :heavy_check_mark: | N/A |
9-
| `public_name` | *str* | :heavy_check_mark: | N/A |
9+
| `email` | *str* | :heavy_check_mark: | N/A |
1010
| `avatar_url` | *Nullable[str]* | :heavy_check_mark: | N/A |

docs/models/benefitdiscordinput.md

-20
This file was deleted.

docs/models/benefitdiscordpropertiesinput.md

-11
This file was deleted.

0 commit comments

Comments
 (0)