Skip to content

Commit 78f3de4

Browse files
authored
Merge pull request #54 from apideck-libraries/speakeasy-sdk-regen-1756212001
chore: 🐝 Update SDK - Generate 0.15.0
2 parents a3fe549 + 621e985 commit 78f3de4

File tree

197 files changed

+30087
-6854
lines changed

Some content is hidden

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

197 files changed

+30087
-6854
lines changed

.speakeasy/gen.lock

Lines changed: 128 additions & 25 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
@@ -21,7 +21,7 @@ generation:
2121
generateNewTests: false
2222
skipResponseBodyAssertions: false
2323
csharp:
24-
version: 0.14.0
24+
version: 0.15.0
2525
additionalDependencies: []
2626
author: Speakeasy
2727
baseErrorName: ApideckError

.speakeasy/workflow.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.606.4
1+
speakeasyVersion: 1.611.1
22
sources:
33
Apideck:
44
sourceNamespace: apideck
5-
sourceRevisionDigest: sha256:078e68a8cec3da1e448d7bc55dd01b005f0098ef6b50595d24b7ebc9c07f4b89
6-
sourceBlobDigest: sha256:124328f4c187b9316e99832028dd5a8473d10f603564cf1bd2bfdbad33f8fb66
5+
sourceRevisionDigest: sha256:cb0201d032f54350a28bd8c493037ef74777e49604a1b8f76718c2d0d9918db4
6+
sourceBlobDigest: sha256:88de9a39fea7106d70b4526a9c8207a4c54c38a3c13136b2b27fbb947336e267
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1755873446
10-
- 10.20.11
9+
- speakeasy-sdk-regen-1756212001
10+
- 10.20.13
1111
targets:
1212
apideck:
1313
source: Apideck
1414
sourceNamespace: apideck
15-
sourceRevisionDigest: sha256:078e68a8cec3da1e448d7bc55dd01b005f0098ef6b50595d24b7ebc9c07f4b89
16-
sourceBlobDigest: sha256:124328f4c187b9316e99832028dd5a8473d10f603564cf1bd2bfdbad33f8fb66
15+
sourceRevisionDigest: sha256:cb0201d032f54350a28bd8c493037ef74777e49604a1b8f76718c2d0d9918db4
16+
sourceBlobDigest: sha256:88de9a39fea7106d70b4526a9c8207a4c54c38a3c13136b2b27fbb947336e267
1717
codeSamplesNamespace: apideck-csharp-code-samples
18-
codeSamplesRevisionDigest: sha256:0fd3004c1ebcd04ff918f581c20ae3e57753f62337a5b59e08d1d1fa977d4d34
18+
codeSamplesRevisionDigest: sha256:ddafbaf172a1dd29604e96e047c0497d859f32b07372ef981ab14f4b4b5e5c05
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

NUGET.md

Lines changed: 49 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -247,26 +247,15 @@ while(res != null)
247247
<!-- Start Error Handling [errors] -->
248248
## Error Handling
249249

250-
Handling errors in this SDK should largely match your expectations. All operations return a response object or throw an exception.
251-
252-
By default, an API error will raise a `ApideckUnifySdk.Models.Errors.APIException` exception, which has the following properties:
250+
[`ApideckError`](./src/ApideckUnifySdk/Models/Errors/ApideckError.cs) is the base exception class for all HTTP error responses. It has the following properties:
253251

254252
| Property | Type | Description |
255253
|---------------|-----------------------|-----------------------|
256-
| `Message` | *string* | The error message |
257-
| `Request` | *HttpRequestMessage* | The HTTP request |
258-
| `Response` | *HttpResponseMessage* | The HTTP response |
259-
260-
When custom error responses are specified for an operation, the SDK may also throw 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 `ListAsync` method throws the following exceptions:
254+
| `Message` | *string* | Error message |
255+
| `Request` | *HttpRequestMessage* | HTTP request object |
256+
| `Response` | *HttpResponseMessage* | HTTP response object |
261257

262-
| Error Type | Status Code | Content Type |
263-
| ----------------------------------------------------- | ----------- | ---------------- |
264-
| ApideckUnifySdk.Models.Errors.BadRequestResponse | 400 | application/json |
265-
| ApideckUnifySdk.Models.Errors.UnauthorizedResponse | 401 | application/json |
266-
| ApideckUnifySdk.Models.Errors.PaymentRequiredResponse | 402 | application/json |
267-
| ApideckUnifySdk.Models.Errors.NotFoundResponse | 404 | application/json |
268-
| ApideckUnifySdk.Models.Errors.UnprocessableResponse | 422 | application/json |
269-
| ApideckUnifySdk.Models.Errors.APIException | 4XX, 5XX | \*/\* |
258+
Some exceptions in this SDK include an additional `Payload` field, which will contain deserialized custom error data when present. Possible exceptions are listed in the [Error Classes](#error-classes) section.
270259

271260
### Example
272261

@@ -309,40 +298,57 @@ try
309298
res = await res.Next!();
310299
}
311300
}
312-
catch (Exception ex)
301+
catch (ApideckError ex) // all SDK exceptions inherit from ApideckError
313302
{
314-
if (ex is BadRequestResponse)
315-
{
316-
// Handle exception data
317-
throw;
318-
}
319-
else if (ex is UnauthorizedResponse)
320-
{
321-
// Handle exception data
322-
throw;
323-
}
324-
else if (ex is PaymentRequiredResponse)
325-
{
326-
// Handle exception data
327-
throw;
328-
}
329-
else if (ex is NotFoundResponse)
330-
{
331-
// Handle exception data
332-
throw;
333-
}
334-
else if (ex is UnprocessableResponse)
303+
// ex.ToString() provides a detailed error message
304+
System.Console.WriteLine(ex);
305+
306+
// Base exception fields
307+
HttpRequestMessage request = ex.Request;
308+
HttpResponseMessage response = ex.Response;
309+
var statusCode = (int)response.StatusCode;
310+
var responseBody = ex.Body;
311+
312+
if (ex is BadRequestResponse) // different exceptions may be thrown depending on the method
335313
{
336-
// Handle exception data
337-
throw;
314+
// Check error data fields
315+
BadRequestResponsePayload payload = ex.Payload;
316+
double StatusCode = payload.StatusCode;
317+
string Error = payload.Error;
318+
// ...
338319
}
339-
else if (ex is ApideckUnifySdk.Models.Errors.APIException)
320+
321+
// An underlying cause may be provided
322+
if (ex.InnerException != null)
340323
{
341-
// Handle default exception
342-
throw;
324+
Exception cause = ex.InnerException;
343325
}
344326
}
327+
catch (System.Net.Http.HttpRequestException ex)
328+
{
329+
// Check ex.InnerException for Network connectivity errors
330+
}
345331
```
332+
333+
### Error Classes
334+
335+
**Primary exceptions:**
336+
* [`ApideckError`](./src/ApideckUnifySdk/Models/Errors/ApideckError.cs): The base class for HTTP error responses.
337+
* [`UnauthorizedResponse`](./src/ApideckUnifySdk/Models/Errors/UnauthorizedResponse.cs): Unauthorized. Status code `401`.
338+
* [`PaymentRequiredResponse`](./src/ApideckUnifySdk/Models/Errors/PaymentRequiredResponse.cs): Payment Required. Status code `402`.
339+
* [`NotFoundResponse`](./src/ApideckUnifySdk/Models/Errors/NotFoundResponse.cs): The specified resource was not found. Status code `404`. *
340+
* [`BadRequestResponse`](./src/ApideckUnifySdk/Models/Errors/BadRequestResponse.cs): Bad Request. Status code `400`. *
341+
* [`UnprocessableResponse`](./src/ApideckUnifySdk/Models/Errors/UnprocessableResponse.cs): Unprocessable. Status code `422`. *
342+
343+
<details><summary>Less common exceptions (2)</summary>
344+
345+
* [`System.Net.Http.HttpRequestException`](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httprequestexception): Network connectivity error. For more details about the underlying cause, inspect the `ex.InnerException`.
346+
347+
* Inheriting from [`ApideckError`](./src/ApideckUnifySdk/Models/Errors/ApideckError.cs):
348+
* [`ResponseValidationError`](./src/ApideckUnifySdk/Models/Errors/ResponseValidationError.cs): Thrown when the response data could not be deserialized into the expected type.
349+
</details>
350+
351+
\* Refer to the [relevant documentation](#available-resources-and-operations) to determine whether an exception applies to a specific operation.
346352
<!-- End Error Handling [errors] -->
347353

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

README.md

Lines changed: 57 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -657,6 +657,14 @@ while(res != null)
657657
### [Vault](docs/sdks/vault/README.md)
658658

659659

660+
#### [Vault.ConnectionConsent](docs/sdks/connectionconsent/README.md)
661+
662+
* [Update](docs/sdks/connectionconsent/README.md#update) - Update consent state
663+
664+
#### [Vault.ConnectionConsents](docs/sdks/connectionconsents/README.md)
665+
666+
* [List](docs/sdks/connectionconsents/README.md#list) - Get consent records
667+
660668
#### [Vault.ConnectionCustomMappings](docs/sdks/connectioncustommappings/README.md)
661669

662670
* [List](docs/sdks/connectioncustommappings/README.md#list) - List connection custom mappings
@@ -878,26 +886,15 @@ while(res != null)
878886
<!-- Start Error Handling [errors] -->
879887
## Error Handling
880888

881-
Handling errors in this SDK should largely match your expectations. All operations return a response object or throw an exception.
882-
883-
By default, an API error will raise a `ApideckUnifySdk.Models.Errors.APIException` exception, which has the following properties:
889+
[`ApideckError`](./src/ApideckUnifySdk/Models/Errors/ApideckError.cs) is the base exception class for all HTTP error responses. It has the following properties:
884890

885891
| Property | Type | Description |
886892
|---------------|-----------------------|-----------------------|
887-
| `Message` | *string* | The error message |
888-
| `Request` | *HttpRequestMessage* | The HTTP request |
889-
| `Response` | *HttpResponseMessage* | The HTTP response |
890-
891-
When custom error responses are specified for an operation, the SDK may also throw 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 `ListAsync` method throws the following exceptions:
893+
| `Message` | *string* | Error message |
894+
| `Request` | *HttpRequestMessage* | HTTP request object |
895+
| `Response` | *HttpResponseMessage* | HTTP response object |
892896

893-
| Error Type | Status Code | Content Type |
894-
| ----------------------------------------------------- | ----------- | ---------------- |
895-
| ApideckUnifySdk.Models.Errors.BadRequestResponse | 400 | application/json |
896-
| ApideckUnifySdk.Models.Errors.UnauthorizedResponse | 401 | application/json |
897-
| ApideckUnifySdk.Models.Errors.PaymentRequiredResponse | 402 | application/json |
898-
| ApideckUnifySdk.Models.Errors.NotFoundResponse | 404 | application/json |
899-
| ApideckUnifySdk.Models.Errors.UnprocessableResponse | 422 | application/json |
900-
| ApideckUnifySdk.Models.Errors.APIException | 4XX, 5XX | \*/\* |
897+
Some exceptions in this SDK include an additional `Payload` field, which will contain deserialized custom error data when present. Possible exceptions are listed in the [Error Classes](#error-classes) section.
901898

902899
### Example
903900

@@ -940,40 +937,57 @@ try
940937
res = await res.Next!();
941938
}
942939
}
943-
catch (Exception ex)
940+
catch (ApideckError ex) // all SDK exceptions inherit from ApideckError
944941
{
945-
if (ex is BadRequestResponse)
946-
{
947-
// Handle exception data
948-
throw;
949-
}
950-
else if (ex is UnauthorizedResponse)
951-
{
952-
// Handle exception data
953-
throw;
954-
}
955-
else if (ex is PaymentRequiredResponse)
956-
{
957-
// Handle exception data
958-
throw;
959-
}
960-
else if (ex is NotFoundResponse)
961-
{
962-
// Handle exception data
963-
throw;
964-
}
965-
else if (ex is UnprocessableResponse)
942+
// ex.ToString() provides a detailed error message
943+
System.Console.WriteLine(ex);
944+
945+
// Base exception fields
946+
HttpRequestMessage request = ex.Request;
947+
HttpResponseMessage response = ex.Response;
948+
var statusCode = (int)response.StatusCode;
949+
var responseBody = ex.Body;
950+
951+
if (ex is BadRequestResponse) // different exceptions may be thrown depending on the method
966952
{
967-
// Handle exception data
968-
throw;
953+
// Check error data fields
954+
BadRequestResponsePayload payload = ex.Payload;
955+
double StatusCode = payload.StatusCode;
956+
string Error = payload.Error;
957+
// ...
969958
}
970-
else if (ex is ApideckUnifySdk.Models.Errors.APIException)
959+
960+
// An underlying cause may be provided
961+
if (ex.InnerException != null)
971962
{
972-
// Handle default exception
973-
throw;
963+
Exception cause = ex.InnerException;
974964
}
975965
}
966+
catch (System.Net.Http.HttpRequestException ex)
967+
{
968+
// Check ex.InnerException for Network connectivity errors
969+
}
976970
```
971+
972+
### Error Classes
973+
974+
**Primary exceptions:**
975+
* [`ApideckError`](./src/ApideckUnifySdk/Models/Errors/ApideckError.cs): The base class for HTTP error responses.
976+
* [`UnauthorizedResponse`](./src/ApideckUnifySdk/Models/Errors/UnauthorizedResponse.cs): Unauthorized. Status code `401`.
977+
* [`PaymentRequiredResponse`](./src/ApideckUnifySdk/Models/Errors/PaymentRequiredResponse.cs): Payment Required. Status code `402`.
978+
* [`NotFoundResponse`](./src/ApideckUnifySdk/Models/Errors/NotFoundResponse.cs): The specified resource was not found. Status code `404`. *
979+
* [`BadRequestResponse`](./src/ApideckUnifySdk/Models/Errors/BadRequestResponse.cs): Bad Request. Status code `400`. *
980+
* [`UnprocessableResponse`](./src/ApideckUnifySdk/Models/Errors/UnprocessableResponse.cs): Unprocessable. Status code `422`. *
981+
982+
<details><summary>Less common exceptions (2)</summary>
983+
984+
* [`System.Net.Http.HttpRequestException`](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httprequestexception): Network connectivity error. For more details about the underlying cause, inspect the `ex.InnerException`.
985+
986+
* Inheriting from [`ApideckError`](./src/ApideckUnifySdk/Models/Errors/ApideckError.cs):
987+
* [`ResponseValidationError`](./src/ApideckUnifySdk/Models/Errors/ResponseValidationError.cs): Thrown when the response data could not be deserialized into the expected type.
988+
</details>
989+
990+
\* Refer to the [relevant documentation](#available-resources-and-operations) to determine whether an exception applies to a specific operation.
977991
<!-- End Error Handling [errors] -->
978992

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

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,4 +408,14 @@ Based on:
408408
### Generated
409409
- [csharp v0.14.0] .
410410
### Releases
411-
- [NuGet v0.14.0] https://www.nuget.org/packages/ApideckUnifySdk/0.14.0 - .
411+
- [NuGet v0.14.0] https://www.nuget.org/packages/ApideckUnifySdk/0.14.0 - .
412+
413+
## 2025-09-08 00:13:17
414+
### Changes
415+
Based on:
416+
- OpenAPI Doc
417+
- Speakeasy CLI 1.611.1 (2.694.1) https://github.com/speakeasy-api/speakeasy
418+
### Generated
419+
- [csharp v0.15.0] .
420+
### Releases
421+
- [NuGet v0.15.0] https://www.nuget.org/packages/ApideckUnifySdk/0.15.0 - .

docs/Models/Components/CompanyInfo.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
| `Emails` | List<[Email](../../Models/Components/Email.md)> | :heavy_minus_sign: | N/A | |
2424
| `CustomMappings` | Dictionary<String, *object*> | :heavy_minus_sign: | When custom mappings are configured on the resource, the result is included here. | |
2525
| `TrackingCategoriesEnabled` | *bool* | :heavy_minus_sign: | Whether tracking categories are enabled for the company on transactions | |
26+
| `TrackingCategoriesMode` | [TrackingCategoriesMode](../../Models/Components/TrackingCategoriesMode.md) | :heavy_minus_sign: | The mode of tracking categories for the company on transactions | disabled |
2627
| `RowVersion` | *string* | :heavy_minus_sign: | A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. | 1-12345 |
2728
| `UpdatedBy` | *string* | :heavy_minus_sign: | The user who last updated the object. | 12345 |
2829
| `CreatedBy` | *string* | :heavy_minus_sign: | The user who created the object. | 12345 |

0 commit comments

Comments
 (0)