Skip to content

Commit ab75e0d

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.575.5
1 parent d4a37f8 commit ab75e0d

File tree

1,003 files changed

+13163
-118723
lines changed

Some content is hidden

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

1,003 files changed

+13163
-118723
lines changed

.speakeasy/gen.lock

Lines changed: 32 additions & 906 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ generation:
2424
generateNewTests: false
2525
skipResponseBodyAssertions: false
2626
python:
27-
version: 0.19.0
27+
version: 0.20.0
2828
additionalDependencies:
2929
dev: {}
3030
main: {}

.speakeasy/workflow.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.570.1
1+
speakeasyVersion: 1.575.5
22
sources:
33
Apideck:
44
sourceNamespace: apideck
5-
sourceRevisionDigest: sha256:92f29919dab3af53e6278cecca2b95c38d5977dcc46fb4d9086360225ea2fd48
6-
sourceBlobDigest: sha256:312c9a0c323d213f0d91e2124e1feb346c5657e76b815a7a9b1bbcf6b5beb357
5+
sourceRevisionDigest: sha256:58d0abd0a05800047f98fd60dcebd853df732791a91a346c8515157f32999372
6+
sourceBlobDigest: sha256:82f9887e82aefa1d47227f638634d6085196d40364023afefff309946a16abb7
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1750931281
10-
- 10.18.0
9+
- speakeasy-sdk-regen-1751018986
10+
- 10.18.1
1111
targets:
1212
apideck:
1313
source: Apideck
1414
sourceNamespace: apideck
15-
sourceRevisionDigest: sha256:92f29919dab3af53e6278cecca2b95c38d5977dcc46fb4d9086360225ea2fd48
16-
sourceBlobDigest: sha256:312c9a0c323d213f0d91e2124e1feb346c5657e76b815a7a9b1bbcf6b5beb357
15+
sourceRevisionDigest: sha256:58d0abd0a05800047f98fd60dcebd853df732791a91a346c8515157f32999372
16+
sourceBlobDigest: sha256:82f9887e82aefa1d47227f638634d6085196d40364023afefff309946a16abb7
1717
codeSamplesNamespace: apideck-python-code-samples
18-
codeSamplesRevisionDigest: sha256:9f78fe93304d35cc64773e1adb027e0a6bb591ee982759f7b19b4deac7e0b490
18+
codeSamplesRevisionDigest: sha256:5b5baea355358a6fad5bccbc190d0377cd5a65aa1c91ba90d0ec104a40552c70
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 52 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -933,31 +933,20 @@ with Apideck(
933933
<!-- Start Error Handling [errors] -->
934934
## Error Handling
935935

936-
Handling errors in this SDK should largely match your expectations. All operations return a response object or raise an exception.
936+
[`ApideckError`](./src/apideck_unify/models/apideckerror.py) is the base class for all HTTP error responses. It has the following properties:
937937

938-
By default, an API error will raise a models.APIError exception, which has the following properties:
939-
940-
| Property | Type | Description |
941-
|-----------------|------------------|-----------------------|
942-
| `.status_code` | *int* | The HTTP status code |
943-
| `.message` | *str* | The error message |
944-
| `.raw_response` | *httpx.Response* | The raw HTTP response |
945-
| `.body` | *str* | The response content |
946-
947-
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:
948-
949-
| Error Type | Status Code | Content Type |
950-
| ------------------------------ | ----------- | ---------------- |
951-
| models.BadRequestResponse | 400 | application/json |
952-
| models.UnauthorizedResponse | 401 | application/json |
953-
| models.PaymentRequiredResponse | 402 | application/json |
954-
| models.NotFoundResponse | 404 | application/json |
955-
| models.UnprocessableResponse | 422 | application/json |
956-
| models.APIError | 4XX, 5XX | \*/\* |
938+
| Property | Type | Description |
939+
| ------------------ | ---------------- | --------------------------------------------------------------------------------------- |
940+
| `err.message` | `str` | Error message |
941+
| `err.status_code` | `int` | HTTP response status code eg `404` |
942+
| `err.headers` | `httpx.Headers` | HTTP response headers |
943+
| `err.body` | `str` | HTTP body. Can be empty string if no body is returned. |
944+
| `err.raw_response` | `httpx.Response` | Raw HTTP response |
945+
| `err.data` | | Optional. Some errors may contain structured data. [See Error Classes](#error-classes). |
957946

958947
### Example
959-
960948
```python
949+
import apideck_unify
961950
from apideck_unify import Apideck, models
962951
import os
963952

@@ -985,25 +974,49 @@ with Apideck(
985974

986975
res = res.next()
987976

988-
except models.BadRequestResponse as e:
989-
# handle e.data: models.BadRequestResponseData
990-
raise(e)
991-
except models.UnauthorizedResponse as e:
992-
# handle e.data: models.UnauthorizedResponseData
993-
raise(e)
994-
except models.PaymentRequiredResponse as e:
995-
# handle e.data: models.PaymentRequiredResponseData
996-
raise(e)
997-
except models.NotFoundResponse as e:
998-
# handle e.data: models.NotFoundResponseData
999-
raise(e)
1000-
except models.UnprocessableResponse as e:
1001-
# handle e.data: models.UnprocessableResponseData
1002-
raise(e)
1003-
except models.APIError as e:
1004-
# handle exception
1005-
raise(e)
977+
978+
except models.ApideckError as e:
979+
# The base class for HTTP error responses
980+
print(e.message)
981+
print(e.status_code)
982+
print(e.body)
983+
print(e.headers)
984+
print(e.raw_response)
985+
986+
# Depending on the method different errors may be thrown
987+
if isinstance(e, models.BadRequestResponse):
988+
print(e.data.status_code) # Optional[float]
989+
print(e.data.error) # Optional[str]
990+
print(e.data.type_name) # Optional[str]
991+
print(e.data.message) # Optional[str]
992+
print(e.data.detail) # Optional[apideck_unify.BadRequestResponseDetail]
1006993
```
994+
995+
### Error Classes
996+
**Primary errors:**
997+
* [`ApideckError`](./src/apideck_unify/models/apideckerror.py): The base class for HTTP error responses.
998+
* [`UnauthorizedResponse`](./src/apideck_unify/models/unauthorizedresponse.py): Unauthorized. Status code `401`.
999+
* [`PaymentRequiredResponse`](./src/apideck_unify/models/paymentrequiredresponse.py): Payment Required. Status code `402`.
1000+
* [`NotFoundResponse`](./src/apideck_unify/models/notfoundresponse.py): The specified resource was not found. Status code `404`. *
1001+
* [`BadRequestResponse`](./src/apideck_unify/models/badrequestresponse.py): Bad Request. Status code `400`. *
1002+
* [`UnprocessableResponse`](./src/apideck_unify/models/unprocessableresponse.py): Unprocessable. Status code `422`. *
1003+
1004+
<details><summary>Less common errors (5)</summary>
1005+
1006+
<br />
1007+
1008+
**Network errors:**
1009+
* [`httpx.RequestError`](https://www.python-httpx.org/exceptions/#httpx.RequestError): Base class for request errors.
1010+
* [`httpx.ConnectError`](https://www.python-httpx.org/exceptions/#httpx.ConnectError): HTTP client was unable to make a request to a server.
1011+
* [`httpx.TimeoutException`](https://www.python-httpx.org/exceptions/#httpx.TimeoutException): HTTP request timed out.
1012+
1013+
1014+
**Inherit from [`ApideckError`](./src/apideck_unify/models/apideckerror.py)**:
1015+
* [`ResponseValidationError`](./src/apideck_unify/models/responsevalidationerror.py): Type mismatch between the response data and the expected Pydantic model. Provides access to the Pydantic validation error via the `cause` attribute.
1016+
1017+
</details>
1018+
1019+
\* Check [the method documentation](#available-resources-and-operations) to see if the error is applicable.
10071020
<!-- End Error Handling [errors] -->
10081021

10091022
<!-- Start Server Selection [server] -->

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,4 +328,14 @@ Based on:
328328
### Generated
329329
- [python v0.19.0] .
330330
### Releases
331-
- [PyPI v0.19.0] https://pypi.org/project/apideck-unify/0.19.0 - .
331+
- [PyPI v0.19.0] https://pypi.org/project/apideck-unify/0.19.0 - .
332+
333+
## 2025-07-05 00:18:33
334+
### Changes
335+
Based on:
336+
- OpenAPI Doc
337+
- Speakeasy CLI 1.575.5 (2.648.7) https://github.com/speakeasy-api/speakeasy
338+
### Generated
339+
- [python v0.20.0] .
340+
### Releases
341+
- [PyPI v0.20.0] https://pypi.org/project/apideck-unify/0.20.0 - .

docs/models/bankaccount.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@
1515
| `bsb_number` | *OptionalNullable[str]* | :heavy_minus_sign: | A BSB is a 6 digit numeric code used for identifying the branch of an Australian or New Zealand bank or financial institution. | 062-001 |
1616
| `branch_identifier` | *OptionalNullable[str]* | :heavy_minus_sign: | A branch identifier is a unique identifier for a branch of a bank or financial institution. | 001 |
1717
| `bank_code` | *OptionalNullable[str]* | :heavy_minus_sign: | A bank code is a code assigned by a central bank, a bank supervisory body or a Bankers Association in a country to all its licensed member banks or financial institutions. | BNH |
18-
| `currency` | [OptionalNullable[models.Currency]](../models/currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD |
18+
| `currency` | [OptionalNullable[models.Currency]](../models/currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD |
19+
| `country` | *OptionalNullable[str]* | :heavy_minus_sign: | Country code according to ISO 3166-1 alpha-2. | US |

0 commit comments

Comments
 (0)