Skip to content

Commit f64b057

Browse files
authored
Merge pull request #49 from apideck-libraries/speakeasy-sdk-regen-1750931286
chore: 🐝 Update SDK - Generate 0.16.0
2 parents 4e065af + 1386b39 commit f64b057

File tree

1,836 files changed

+196621
-79622
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,836 files changed

+196621
-79622
lines changed

.speakeasy/gen.lock

Lines changed: 1188 additions & 9 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,12 @@ generation:
1616
auth:
1717
oAuth2ClientCredentialsEnabled: true
1818
oAuth2PasswordEnabled: true
19+
tests:
20+
generateTests: true
21+
generateNewTests: false
22+
skipResponseBodyAssertions: false
1923
java:
20-
version: 0.15.0
24+
version: 0.16.0
2125
additionalDependencies: []
2226
additionalPlugins: []
2327
artifactID: unify

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.568.0
1+
speakeasyVersion: 1.570.1
22
sources:
33
Apideck-OAS:
44
sourceNamespace: apideck-oas
5-
sourceRevisionDigest: sha256:98879308d175441880e8bfd5a78729c17b42287478dabf9fa0a420ea32c17e2c
6-
sourceBlobDigest: sha256:4043c2e85efddd3fe9a763fb5532060aa249d5b3437f4df8555ed3ae4f97f795
5+
sourceRevisionDigest: sha256:5366e26abe22052f1c62cf28022652257de5d6ee8012492a17e6d93d8f544897
6+
sourceBlobDigest: sha256:81651792afd1e134bbeb982e71cd4b435c32ef3a517799b0e0243c6434163311
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1749932062
9+
- speakeasy-sdk-regen-1750931286
1010
- 10.18.0
1111
targets:
1212
apideck:
1313
source: Apideck-OAS
1414
sourceNamespace: apideck-oas
15-
sourceRevisionDigest: sha256:98879308d175441880e8bfd5a78729c17b42287478dabf9fa0a420ea32c17e2c
16-
sourceBlobDigest: sha256:4043c2e85efddd3fe9a763fb5532060aa249d5b3437f4df8555ed3ae4f97f795
15+
sourceRevisionDigest: sha256:5366e26abe22052f1c62cf28022652257de5d6ee8012492a17e6d93d8f544897
16+
sourceBlobDigest: sha256:81651792afd1e134bbeb982e71cd4b435c32ef3a517799b0e0243c6434163311
1717
codeSamplesNamespace: apideck-oas-java-code-samples
18-
codeSamplesRevisionDigest: sha256:a3a91f44f3df960304547878b4b22e5bbda6d2944e12aed36ff78b86ad26f287
18+
codeSamplesRevisionDigest: sha256:9c7b9603bdc508122c5624afc41a2870b244ad3933a8563089b16ea16bc3f3ce
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 52 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,15 @@ The samples below show how a published SDK artifact is used:
4747

4848
Gradle:
4949
```groovy
50-
implementation 'com.apideck:unify:0.15.0'
50+
implementation 'com.apideck:unify:0.16.0'
5151
```
5252

5353
Maven:
5454
```xml
5555
<dependency>
5656
<groupId>com.apideck</groupId>
5757
<artifactId>unify</artifactId>
58-
<version>0.15.0</version>
58+
<version>0.16.0</version>
5959
</dependency>
6060
```
6161

@@ -76,9 +76,11 @@ gradlew.bat publishToMavenLocal -Pskip.signing
7676
### Logging
7777
A logging framework/facade has not yet been adopted but is under consideration.
7878

79-
For request and response logging (especially json bodies) use:
79+
For request and response logging (especially json bodies), call `enableHTTPDebugLogging()` on the SDK builder like so:
8080
```java
81-
SpeakeasyHTTPClient.setDebugLogging(true); // experimental API only (may change without warning)
81+
SDK.builder()
82+
.enableHTTPDebugLogging()
83+
.build();
8284
```
8385
Example output:
8486
```
@@ -92,7 +94,9 @@ Response body:
9294
"token": "global"
9395
}
9496
```
95-
WARNING: This should only used for temporary debugging purposes. Leaving this option on in a production system could expose credentials/secrets in logs. <i>Authorization</i> headers are redacted by default and there is the ability to specify redacted header names via `SpeakeasyHTTPClient.setRedactedHeaders`.
97+
__WARNING__: This should only used for temporary debugging purposes. Leaving this option on in a production system could expose credentials/secrets in logs. <i>Authorization</i> headers are redacted by default and there is the ability to specify redacted header names via `SpeakeasyHTTPClient.setRedactedHeaders`.
98+
99+
__NOTE__: This is a convenience method that calls `HTTPClient.enableDebugLogging()`. The `SpeakeasyHTTPClient` honors this setting. If you are using a custom HTTP client, it is up to the custom client to honor this setting.
96100

97101
Another option is to set the System property `-Djdk.httpclient.HttpClient.log=all`. However, this second option does not log bodies.
98102
<!-- End SDK Installation [installation] -->
@@ -109,6 +113,7 @@ import com.apideck.unify.Apideck;
109113
import com.apideck.unify.models.components.TaxRatesFilter;
110114
import com.apideck.unify.models.errors.*;
111115
import com.apideck.unify.models.operations.AccountingTaxRatesAllRequest;
116+
import com.apideck.unify.models.operations.AccountingTaxRatesAllResponse;
112117
import java.lang.Exception;
113118
import java.util.Map;
114119

@@ -139,8 +144,8 @@ public class Application {
139144
sdk.accounting().taxRates().list()
140145
.request(req)
141146
.callAsStream()
142-
.forEach(item -> {
143-
// handle item
147+
.forEach((AccountingTaxRatesAllResponse item) -> {
148+
// handle page
144149
});
145150

146151
}
@@ -721,19 +726,22 @@ public class Application {
721726
<!-- Start Pagination [pagination] -->
722727
## Pagination
723728

724-
Some of the endpoints in this SDK support pagination. To use pagination, you make your SDK calls as usual, but the
725-
returned response object will have a `next` method that can be called to pull down the next group of results. The `next`
726-
function returns an `Optional` value, which `isPresent` until there are no more pages to be fetched.
729+
Some of the endpoints in this SDK support pagination. To use pagination, you can make your SDK calls using the `callAsIterable` or `callAsStream` methods.
730+
For certain operations, you can also use the `callAsStreamUnwrapped` method that streams individual page items directly.
731+
732+
Here's an example depicting the different ways to use pagination:
733+
727734

728-
Here's an example of one such pagination call:
729735
```java
730736
package hello.world;
731737

732738
import com.apideck.unify.Apideck;
733739
import com.apideck.unify.models.components.TaxRatesFilter;
734740
import com.apideck.unify.models.errors.*;
735741
import com.apideck.unify.models.operations.AccountingTaxRatesAllRequest;
742+
import com.apideck.unify.models.operations.AccountingTaxRatesAllResponse;
736743
import java.lang.Exception;
744+
import java.lang.Iterable;
737745
import java.util.Map;
738746

739747
public class Application {
@@ -760,12 +768,24 @@ public class Application {
760768
.fields("id,updated_at")
761769
.build();
762770

763-
sdk.accounting().taxRates().list()
764-
.request(req)
765-
.callAsStream()
766-
.forEach(item -> {
767-
// handle item
768-
});
771+
var b = sdk.accounting().taxRates().list()
772+
.request(req);
773+
774+
// Iterate through all pages using a traditional for-each loop
775+
// Each iteration returns a complete page response
776+
Iterable<AccountingTaxRatesAllResponse> iterable = b.callAsIterable();
777+
for (AccountingTaxRatesAllResponse page : iterable) {
778+
// handle page
779+
}
780+
781+
// Stream through all pages and process individual items
782+
// callAsStreamUnwrapped() flattens pages into individual items
783+
784+
// Stream through pages without unwrapping (each item is a complete page)
785+
b.callAsStream()
786+
.forEach((AccountingTaxRatesAllResponse page) -> {
787+
// handle page
788+
});
769789

770790
}
771791
}
@@ -785,6 +805,7 @@ import com.apideck.unify.Apideck;
785805
import com.apideck.unify.models.components.TaxRatesFilter;
786806
import com.apideck.unify.models.errors.*;
787807
import com.apideck.unify.models.operations.AccountingTaxRatesAllRequest;
808+
import com.apideck.unify.models.operations.AccountingTaxRatesAllResponse;
788809
import com.apideck.unify.utils.BackoffStrategy;
789810
import com.apideck.unify.utils.RetryConfig;
790811
import java.lang.Exception;
@@ -828,8 +849,8 @@ public class Application {
828849
.build())
829850
.build())
830851
.callAsStream()
831-
.forEach(item -> {
832-
// handle item
852+
.forEach((AccountingTaxRatesAllResponse item) -> {
853+
// handle page
833854
});
834855

835856
}
@@ -844,6 +865,7 @@ import com.apideck.unify.Apideck;
844865
import com.apideck.unify.models.components.TaxRatesFilter;
845866
import com.apideck.unify.models.errors.*;
846867
import com.apideck.unify.models.operations.AccountingTaxRatesAllRequest;
868+
import com.apideck.unify.models.operations.AccountingTaxRatesAllResponse;
847869
import com.apideck.unify.utils.BackoffStrategy;
848870
import com.apideck.unify.utils.RetryConfig;
849871
import java.lang.Exception;
@@ -887,8 +909,8 @@ public class Application {
887909
sdk.accounting().taxRates().list()
888910
.request(req)
889911
.callAsStream()
890-
.forEach(item -> {
891-
// handle item
912+
.forEach((AccountingTaxRatesAllResponse item) -> {
913+
// handle page
892914
});
893915

894916
}
@@ -921,6 +943,7 @@ import com.apideck.unify.Apideck;
921943
import com.apideck.unify.models.components.TaxRatesFilter;
922944
import com.apideck.unify.models.errors.*;
923945
import com.apideck.unify.models.operations.AccountingTaxRatesAllRequest;
946+
import com.apideck.unify.models.operations.AccountingTaxRatesAllResponse;
924947
import java.lang.Exception;
925948
import java.util.Map;
926949

@@ -951,8 +974,8 @@ public class Application {
951974
sdk.accounting().taxRates().list()
952975
.request(req)
953976
.callAsStream()
954-
.forEach(item -> {
955-
// handle item
977+
.forEach((AccountingTaxRatesAllResponse item) -> {
978+
// handle page
956979
});
957980

958981
}
@@ -973,6 +996,7 @@ import com.apideck.unify.Apideck;
973996
import com.apideck.unify.models.components.TaxRatesFilter;
974997
import com.apideck.unify.models.errors.*;
975998
import com.apideck.unify.models.operations.AccountingTaxRatesAllRequest;
999+
import com.apideck.unify.models.operations.AccountingTaxRatesAllResponse;
9761000
import java.lang.Exception;
9771001
import java.util.Map;
9781002

@@ -1004,8 +1028,8 @@ public class Application {
10041028
sdk.accounting().taxRates().list()
10051029
.request(req)
10061030
.callAsStream()
1007-
.forEach(item -> {
1008-
// handle item
1031+
.forEach((AccountingTaxRatesAllResponse item) -> {
1032+
// handle page
10091033
});
10101034

10111035
}
@@ -1076,6 +1100,7 @@ import com.apideck.unify.Apideck;
10761100
import com.apideck.unify.models.components.TaxRatesFilter;
10771101
import com.apideck.unify.models.errors.*;
10781102
import com.apideck.unify.models.operations.AccountingTaxRatesAllRequest;
1103+
import com.apideck.unify.models.operations.AccountingTaxRatesAllResponse;
10791104
import java.lang.Exception;
10801105
import java.util.Map;
10811106

@@ -1106,8 +1131,8 @@ public class Application {
11061131
sdk.accounting().taxRates().list()
11071132
.request(req)
11081133
.callAsStream()
1109-
.forEach(item -> {
1110-
// handle item
1134+
.forEach((AccountingTaxRatesAllResponse item) -> {
1135+
// handle page
11111136
});
11121137

11131138
}

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,4 +338,14 @@ Based on:
338338
### Generated
339339
- [java v0.15.0] .
340340
### Releases
341-
- [Maven Central v0.15.0] https://central.sonatype.com/artifact/com.apideck/unify/0.15.0 - .
341+
- [Maven Central v0.15.0] https://central.sonatype.com/artifact/com.apideck/unify/0.15.0 - .
342+
343+
## 2025-06-26 09:47:46
344+
### Changes
345+
Based on:
346+
- OpenAPI Doc
347+
- Speakeasy CLI 1.570.1 (2.638.1) https://github.com/speakeasy-api/speakeasy
348+
### Generated
349+
- [java v0.16.0] .
350+
### Releases
351+
- [Maven Central v0.16.0] https://central.sonatype.com/artifact/com.apideck/unify/0.16.0 - .

USAGE.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import com.apideck.unify.Apideck;
66
import com.apideck.unify.models.components.TaxRatesFilter;
77
import com.apideck.unify.models.errors.*;
88
import com.apideck.unify.models.operations.AccountingTaxRatesAllRequest;
9+
import com.apideck.unify.models.operations.AccountingTaxRatesAllResponse;
910
import java.lang.Exception;
1011
import java.util.Map;
1112

@@ -36,8 +37,8 @@ public class Application {
3637
sdk.accounting().taxRates().list()
3738
.request(req)
3839
.callAsStream()
39-
.forEach(item -> {
40-
// handle item
40+
.forEach((AccountingTaxRatesAllResponse item) -> {
41+
// handle page
4142
});
4243

4344
}

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ publishing {
103103
// https://github.com/gradle/gradle/issues/18619
104104
groupId = "com.apideck"
105105
artifactId = "unify"
106-
version = "0.15.0"
106+
version = "0.16.0"
107107

108108
from components.java
109109

docs/models/components/Classification.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Classification
22

3-
The classification of account.
3+
Filter by account classification.
44

55

66
## Values

docs/models/components/LedgerAccount.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
| `displayId` | *Optional\<String>* | :heavy_minus_sign: | The human readable display ID used when displaying the account | 1-12345 |
1010
| ~~`nominalCode`~~ | *JsonNullable\<String>* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.<br/><br/>The nominal code of the ledger account. | N091 |
1111
| `code` | *JsonNullable\<String>* | :heavy_minus_sign: | The code assigned to the account. | 453 |
12-
| `classification` | [JsonNullable\<Classification>](../../models/components/Classification.md) | :heavy_minus_sign: | The classification of account. | asset |
12+
| `classification` | [JsonNullable\<LedgerAccountClassification>](../../models/components/LedgerAccountClassification.md) | :heavy_minus_sign: | The classification of account. | asset |
1313
| `type` | [Optional\<LedgerAccountType>](../../models/components/LedgerAccountType.md) | :heavy_minus_sign: | The type of account. | bank |
1414
| `subType` | *JsonNullable\<String>* | :heavy_minus_sign: | The sub type of account. | CHECKING_ACCOUNT |
1515
| `name` | *JsonNullable\<String>* | :heavy_minus_sign: | The name of the account. | Bank account |
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# LedgerAccountClassification
2+
3+
The classification of account.
4+
5+
6+
## Values
7+
8+
| Name | Value |
9+
| ---------------- | ---------------- |
10+
| `ASSET` | asset |
11+
| `EQUITY` | equity |
12+
| `EXPENSE` | expense |
13+
| `LIABILITY` | liability |
14+
| `REVENUE` | revenue |
15+
| `INCOME` | income |
16+
| `OTHER_INCOME` | other_income |
17+
| `OTHER_EXPENSE` | other_expense |
18+
| `COSTS_OF_SALES` | costs_of_sales |
19+
| `OTHER` | other |

0 commit comments

Comments
 (0)