Skip to content

Commit e6b60e7

Browse files
committed
fix SDK generation
1 parent 2a570b6 commit e6b60e7

File tree

654 files changed

+7337
-27280
lines changed

Some content is hidden

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

654 files changed

+7337
-27280
lines changed

.speakeasy/gen.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
lockVersion: 2.0.0
22
id: 59dcfa56-8330-4162-8246-092811fc63e8
33
management:
4-
docChecksum: c9c74cf96c7060832077b6bfb6e9d77a
4+
docChecksum: eb9c846a65c4ee77004d8294d5b023b0
55
docVersion: 1.0.1
6-
speakeasyVersion: 1.615.2
7-
generationVersion: 2.698.4
8-
releaseVersion: 0.4.0
9-
configChecksum: 89506d35adf7315f5da7aeafa97a59a5
6+
speakeasyVersion: 1.631.4
7+
generationVersion: 2.716.16
8+
releaseVersion: 0.5.5
9+
configChecksum: c272fd869c7b4456e9a143187eebe8be
1010
features:
1111
python:
1212
additionalDependencies: 1.0.0
13-
core: 5.20.4
13+
core: 5.22.0
1414
defaultEnabledRetries: 0.2.0
1515
devContainers: 3.0.0
1616
enumUnions: 0.1.0
@@ -26,7 +26,7 @@ features:
2626
responseFormat: 1.0.1
2727
retries: 3.0.2
2828
sdkHooks: 1.1.0
29-
unions: 3.0.4
29+
unions: 3.0.5
3030
generatedFiles:
3131
- .devcontainer/README.md
3232
- .devcontainer/devcontainer.json

.speakeasy/gen.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,17 @@ generation:
2525
generateTests: false
2626
generateNewTests: true
2727
skipResponseBodyAssertions: false
28+
compile:
29+
enabled: false
2830
python:
29-
version: 0.4.0
31+
version: 0.5.5
3032
additionalDependencies:
3133
dev: {}
3234
main: {}
3335
allowedRedefinedBuiltins:
3436
- id
3537
- object
38+
asyncMode: both
3639
authors:
3740
- Speakeasy
3841
baseErrorName: BoltError
@@ -43,6 +46,8 @@ python:
4346
enumFormat: enum
4447
envVarPrefix: BOLT
4548
fixFlags:
49+
disableTypeChecking: true
50+
nameResolutionFeb2025: true
4651
responseRequiredSep2024: true
4752
flattenGlobalSecurity: true
4853
flattenRequests: true
@@ -56,6 +61,7 @@ python:
5661
shared: ""
5762
webhooks: ""
5863
inputModelSuffix: input
64+
legacyPyright: false
5965
maxMethodParams: 999
6066
methodArguments: infer-optional-args
6167
moduleName: ""

.speakeasy/out.openapi.yaml

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ tags:
1616
description: |
1717
Use the Account endpoint to view and manage customer accounts. Perform actions such as creating an account, updating an address, or adding a payment method. This endpoint is for merchants using the Accounts Package. See our related guide on [Bolt OAuth](https://help.bolt.com/developers/bolt-oauth/).
1818
- name: Configuration
19-
description: "Use this resource to retrieve and set Merchant Callback URLs. Bolt uses these URLs to exchange information with your commerce server. See our related guide [About the Merchant Callback API](https://help.bolt.com/products/checkout/how-to-integrate/merchant-api-new/). \n"
19+
description: |
20+
Use this resource to retrieve and set Merchant Callback URLs. Bolt uses these URLs to exchange information with your commerce server. See our related guide [About the Merchant Callback API](https://help.bolt.com/products/checkout/how-to-integrate/merchant-api-new/).
2021
- name: OAuth
2122
description: |
2223
Use this endpoint to retrieve an OAuth token. Use the token to allow your ecommerce server to make calls to the Account endpoint and create a one-click checkout experience for shoppers. See related guide [Fetch OAuth Token](https://help.bolt.com/products/ignite/api-implementation/endpoints/oauth-guide/).
@@ -2281,7 +2282,11 @@ components:
22812282
example: csv
22822283
type: string
22832284
statements_type:
2284-
description: "The time period and statement type: \n * [Funding details statement](https://help.bolt.com/operations/financials/export-funding-detail-statements/) with transactional events: Use `daily_transaction` or `monthly_transaction`\n * [Bank transfer statement](https://help.bolt.com/operations/financials/export-bank-transfer-statements/) with settlement and funding events: Use `daily_funding`\n * [Dispute statement](https://help.bolt.com/operations/disputes/dispute-statements/#how-to-read-dispute-statements): Use `monthly_dispute`\n"
2285+
description: |
2286+
The time period and statement type:
2287+
* [Funding details statement](https://help.bolt.com/operations/financials/export-funding-detail-statements/) with transactional events: Use `daily_transaction` or `monthly_transaction`
2288+
* [Bank transfer statement](https://help.bolt.com/operations/financials/export-bank-transfer-statements/) with settlement and funding events: Use `daily_funding`
2289+
* [Dispute statement](https://help.bolt.com/operations/disputes/dispute-statements/#how-to-read-dispute-statements): Use `monthly_dispute`
22852290
enum:
22862291
- daily_transaction
22872292
- monthly_transaction
@@ -4955,7 +4960,10 @@ components:
49554960
description: Fetched value using OTP value from the Authorization Modal.
49564961
type: string
49574962
grant_type:
4958-
description: "The type of OAuth 2.0 grant being utilized. \n\nThe value will always be `authorization_code` when exchanging an authorization code for an access token.\n"
4963+
description: |
4964+
The type of OAuth 2.0 grant being utilized.
4965+
4966+
The value will always be `authorization_code` when exchanging an authorization code for an access token.
49594967
enum:
49604968
- authorization_code
49614969
type: string
@@ -4986,7 +4994,10 @@ components:
49864994
description: Your Bolt API Key.
49874995
type: string
49884996
grant_type:
4989-
description: "The type of OAuth 2.0 grant being utilized. \n\nThe value will always be `refresh_token` when exchanging a refresh token for an access token.\n"
4997+
description: |
4998+
The type of OAuth 2.0 grant being utilized.
4999+
5000+
The value will always be `refresh_token` when exchanging a refresh token for an access token.
49905001
enum:
49915002
- refresh_token
49925003
type: string
@@ -9341,7 +9352,12 @@ paths:
93419352
- Transactions
93429353
/v1/oauth/token:
93439354
post:
9344-
description: "Endpoint for receiving access, ID, and refresh tokens from Bolt's OAuth server. \n\nTo use this endpoint, first use the Authorization Code Request flow by using the `authorization_code` Grant Type (`grant_type`). Then, in the event that you would need a second or subsequent code, use the `refresh_token` value returned from a successful request as the `refresh_token` input value in your subsequent `refresh_token` Grant Type (`grant_type`) request.\n\n **Reminder - the Content-Type of this request must be application/x-www-form-urlencoded**\n"
9355+
description: |
9356+
Endpoint for receiving access, ID, and refresh tokens from Bolt's OAuth server.
9357+
9358+
To use this endpoint, first use the Authorization Code Request flow by using the `authorization_code` Grant Type (`grant_type`). Then, in the event that you would need a second or subsequent code, use the `refresh_token` value returned from a successful request as the `refresh_token` input value in your subsequent `refresh_token` Grant Type (`grant_type`) request.
9359+
9360+
**Reminder - the Content-Type of this request must be application/x-www-form-urlencoded**
93459361
operationId: OAuthToken
93469362
parameters:
93479363
- $ref: '#/components/parameters/x-publishable-key'

.speakeasy/speakeasy-modifications-overlay.yaml

Lines changed: 0 additions & 110 deletions
This file was deleted.

.speakeasy/workflow.lock

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,27 @@
1-
speakeasyVersion: 1.615.2
1+
speakeasyVersion: 1.631.4
22
sources:
3-
Subscriptions API:
4-
sourceNamespace: subscriptions-api
5-
sourceRevisionDigest: sha256:e617088551fc0371a95717d18f22b8fd2bf499cd2e7fe055e5d4e7f4e74d5f8e
6-
sourceBlobDigest: sha256:4bad90deedeb8a2e0a48ebd5446f1056436f1c18bb4c88b8cd3735d075f95510
7-
tags:
8-
- latest
9-
- v1
103
bolt-python-api:
114
sourceNamespace: bolt-python-api
12-
sourceRevisionDigest: sha256:1c68ff1445a2b985a64ae5d030696a1505122d2bb127f3243b55be2b6385995c
13-
sourceBlobDigest: sha256:24a83ba3da522ad9ee6859fd8741f87f17bd061c01b0a1eea9713011388a4d42
5+
sourceRevisionDigest: sha256:979591ab54418fcfcf6bb36ba4aa4748231411d7d9612b3d60aec41003fde169
6+
sourceBlobDigest: sha256:0af17f076ed8196f10613e2f3081b45456c15f67bc75ca7a2f569bf55d9bca8a
147
tags:
158
- latest
169
- 1.0.1
1710
targets:
18-
bolt:
19-
source: Subscriptions API
20-
sourceNamespace: subscriptions-api
21-
sourceRevisionDigest: sha256:e617088551fc0371a95717d18f22b8fd2bf499cd2e7fe055e5d4e7f4e74d5f8e
22-
sourceBlobDigest: sha256:4bad90deedeb8a2e0a48ebd5446f1056436f1c18bb4c88b8cd3735d075f95510
23-
codeSamplesNamespace: subscriptions-api-python-code-samples
24-
codeSamplesRevisionDigest: sha256:09ecade3c1374fe1e0e44e0a6ab5b448fc0968c20e9e079d5d8c75998d4a090a
2511
bolt-sdk:
2612
source: bolt-python-api
2713
sourceNamespace: bolt-python-api
28-
sourceRevisionDigest: sha256:1c68ff1445a2b985a64ae5d030696a1505122d2bb127f3243b55be2b6385995c
29-
sourceBlobDigest: sha256:24a83ba3da522ad9ee6859fd8741f87f17bd061c01b0a1eea9713011388a4d42
14+
sourceRevisionDigest: sha256:979591ab54418fcfcf6bb36ba4aa4748231411d7d9612b3d60aec41003fde169
15+
sourceBlobDigest: sha256:0af17f076ed8196f10613e2f3081b45456c15f67bc75ca7a2f569bf55d9bca8a
3016
codeSamplesNamespace: bolt-python-api-code-samples
31-
codeSamplesRevisionDigest: sha256:e6364b702acc10dd71f3e0f75f711ab04e8b2b520536dc8c4d906d81dec043c1
17+
codeSamplesRevisionDigest: sha256:36b7d722795affd99bfba79792072019359acf6ba365167f7b2614d2643a0516
3218
workflow:
3319
workflowVersion: 1.0.0
3420
speakeasyVersion: latest
3521
sources:
3622
bolt-python-api:
3723
inputs:
3824
- location: https://assets.bolt.com/external-api-references/bolt.yml
39-
overlays:
40-
- location: .speakeasy/speakeasy-modifications-overlay.yaml
4125
output: .speakeasy/out.openapi.yaml
4226
registry:
4327
location: registry.speakeasyapi.dev/bolt/boltpublicapi/bolt-python-api

.speakeasy/workflow.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ sources:
44
bolt-python-api:
55
inputs:
66
- location: https://assets.bolt.com/external-api-references/bolt.yml
7-
overlays:
8-
- location: .speakeasy/speakeasy-modifications-overlay.yaml
97
output: .speakeasy/out.openapi.yaml
108
registry:
119
location: registry.speakeasyapi.dev/bolt/boltpublicapi/bolt-python-api

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ with Bolt() as bolt:
154154
</br>
155155

156156
The same SDK client can also be used to make asynchronous requests by importing asyncio.
157+
157158
```python
158159
# Asynchronous Example
159160
import asyncio

USAGE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ with Bolt() as bolt:
1919
</br>
2020

2121
The same SDK client can also be used to make asynchronous requests by importing asyncio.
22+
2223
```python
2324
# Asynchronous Example
2425
import asyncio
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# ErrorsBoltAPIResponse
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ |
8+
| `errors` | List[[models.ErrorBoltAPI](../models/errorboltapi.md)] | :heavy_minus_sign: | N/A |
9+
| `result` | [Optional[models.RequestResult]](../models/requestresult.md) | :heavy_minus_sign: | Custom-defined Bolt result object. |
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# ErrorsOauthServerResponse
2+
3+
Invalid request to OAuth Token.
4+
5+
6+
## Fields
7+
8+
| Field | Type | Required | Description |
9+
| ------------------- | ------------------- | ------------------- | ------------------- |
10+
| `error` | *Optional[str]* | :heavy_minus_sign: | N/A |
11+
| `error_description` | *Optional[str]* | :heavy_minus_sign: | N/A |

0 commit comments

Comments
 (0)