Skip to content

Commit 4062189

Browse files
github-actions[bot]speakeasybotspeakeasy-github[bot]
authored
chore: 🐝 Update SDK - Generate 0.27.7 (#80)
* ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.660.0 * empty commit to trigger [run-tests] workflow --------- Co-authored-by: speakeasybot <[email protected]> Co-authored-by: speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
1 parent c595e88 commit 4062189

File tree

325 files changed

+3109
-832
lines changed

Some content is hidden

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

325 files changed

+3109
-832
lines changed

.speakeasy/gen.lock

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: 38254260-287a-40b6-9ac5-c2fcb654c9cc
33
management:
4-
docChecksum: 4d3762f1431f5a9416d23130ae5bddef
5-
docVersion: 10.21.15
6-
speakeasyVersion: 1.658.2
7-
generationVersion: 2.755.9
8-
releaseVersion: 0.27.6
9-
configChecksum: 222168d62574e76fde931b16441bb719
4+
docChecksum: fec8c2730e982bf83c3099723c55988d
5+
docVersion: 10.21.16
6+
speakeasyVersion: 1.660.0
7+
generationVersion: 2.760.2
8+
releaseVersion: 0.27.7
9+
configChecksum: e91115f5d020b72fcda97e832283d71c
1010
repoURL: https://github.com/apideck-libraries/sdk-java.git
1111
published: true
1212
features:
@@ -15,7 +15,7 @@ features:
1515
additionalDependencies: 0.1.0
1616
additionalProperties: 0.0.1
1717
constsAndDefaults: 0.1.1
18-
core: 3.55.2
18+
core: 3.55.3
1919
deprecations: 2.81.1
2020
downloadStreams: 0.1.1
2121
errors: 1.0.0
@@ -24,7 +24,7 @@ features:
2424
globalSecurityCallbacks: 0.1.0
2525
globalSecurityFlattening: 0.1.0
2626
globalServerURLs: 2.83.0
27-
globals: 2.82.2
27+
globals: 2.82.4
2828
groups: 2.81.3
2929
inputOutputModels: 2.83.0
3030
methodServerURLs: 2.82.1
@@ -4603,6 +4603,7 @@ generatedFiles:
46034603
- src/main/java/com/apideck/unify/utils/SerializedBody.java
46044604
- src/main/java/com/apideck/unify/utils/SessionManager.java
46054605
- src/main/java/com/apideck/unify/utils/SpeakeasyHTTPClient.java
4606+
- src/main/java/com/apideck/unify/utils/SpeakeasyLogger.java
46064607
- src/main/java/com/apideck/unify/utils/SpeakeasyMetadata.java
46074608
- src/main/java/com/apideck/unify/utils/StreamingParser.java
46084609
- src/main/java/com/apideck/unify/utils/TypedObject.java

.speakeasy/gen.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ generation:
2525
generateNewTests: false
2626
skipResponseBodyAssertions: false
2727
java:
28-
version: 0.27.6
28+
version: 0.27.7
2929
additionalDependencies: []
3030
additionalPlugins: []
3131
artifactID: unify
@@ -37,8 +37,8 @@ java:
3737
companyURL: www.apideck.com
3838
defaultErrorName: APIException
3939
enableCustomCodeRegions: false
40+
enableSlf4jLogging: false
4041
enableStreamingUploads: false
41-
enhancedUnionMemberResolution: true
4242
flattenGlobalSecurity: true
4343
generateOptionalUnionAccessors: false
4444
generateSpringBootStarter: true
@@ -60,6 +60,8 @@ java:
6060
maxMethodParams: 4
6161
nullFriendlyParameters: false
6262
openUnions: true
63+
operationScopedParams: true
6364
outputModelSuffix: output
6465
projectName: Apideck
6566
templateVersion: v2
67+
unionStrategy: populated-fields

.speakeasy/workflow.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.658.2
1+
speakeasyVersion: 1.660.0
22
sources:
33
Apideck-OAS:
44
sourceNamespace: apideck-oas
5-
sourceRevisionDigest: sha256:38731f59ebe557d903d2922559804cbd1fc1708d59db53f824e018b9fdf9975b
6-
sourceBlobDigest: sha256:cd8d4014fea095312cdfd23c454c99a2db4465ddcfcb7123b65095b6da53d2d9
5+
sourceRevisionDigest: sha256:85d0d06301e39146f69bd1c0253a1ca571e16ad9dfb1a38813e8070d58803fc8
6+
sourceBlobDigest: sha256:129482fb20633945aba7ec1c30007ea42ccab0819670f2708ad73ddaf642322a
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1763537230
10-
- 10.21.15
9+
- speakeasy-sdk-regen-1763971802
10+
- 10.21.16
1111
targets:
1212
apideck:
1313
source: Apideck-OAS
1414
sourceNamespace: apideck-oas
15-
sourceRevisionDigest: sha256:38731f59ebe557d903d2922559804cbd1fc1708d59db53f824e018b9fdf9975b
16-
sourceBlobDigest: sha256:cd8d4014fea095312cdfd23c454c99a2db4465ddcfcb7123b65095b6da53d2d9
15+
sourceRevisionDigest: sha256:85d0d06301e39146f69bd1c0253a1ca571e16ad9dfb1a38813e8070d58803fc8
16+
sourceBlobDigest: sha256:129482fb20633945aba7ec1c30007ea42ccab0819670f2708ad73ddaf642322a
1717
codeSamplesNamespace: apideck-oas-java-code-samples
18-
codeSamplesRevisionDigest: sha256:c440332349144fc109ccc3411ae9090ee8cee42d9e519370f2715068950f8d25
18+
codeSamplesRevisionDigest: sha256:44b6bcee4438a411e12563c6961350b0d9bceee632e86a14ce91d2dd140efe20
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@ The samples below show how a published SDK artifact is used:
5050

5151
Gradle:
5252
```groovy
53-
implementation 'com.apideck:unify:0.27.6'
53+
implementation 'com.apideck:unify:0.27.7'
5454
```
5555

5656
Maven:
5757
```xml
5858
<dependency>
5959
<groupId>com.apideck</groupId>
6060
<artifactId>unify</artifactId>
61-
<version>0.27.6</version>
61+
<version>0.27.7</version>
6262
</dependency>
6363
```
6464

@@ -1487,9 +1487,11 @@ public class Application {
14871487
## Debugging
14881488

14891489
### Debug
1490+
14901491
You can setup your SDK to emit debug logs for SDK requests and responses.
14911492

14921493
For request and response logging (especially json bodies), call `enableHTTPDebugLogging(boolean)` on the SDK builder like so:
1494+
14931495
```java
14941496
SDK.builder()
14951497
.enableHTTPDebugLogging(true)
@@ -1507,10 +1509,11 @@ Response body:
15071509
"token": "global"
15081510
}
15091511
```
1510-
__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`.
1512+
__WARNING__: This logging should only be 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`.
15111513

15121514
__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.
15131515

1516+
15141517
Another option is to set the System property `-Djdk.httpclient.HttpClient.log=all`. However, this second option does not log bodies.
15151518
<!-- End Debugging [debug] -->
15161519

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,4 +618,14 @@ Based on:
618618
### Generated
619619
- [java v0.27.6] .
620620
### Releases
621-
- [Maven Central v0.27.6] https://central.sonatype.com/artifact/com.apideck/unify/0.27.6 - .
621+
- [Maven Central v0.27.6] https://central.sonatype.com/artifact/com.apideck/unify/0.27.6 - .
622+
623+
## 2025-11-24 08:09:36
624+
### Changes
625+
Based on:
626+
- OpenAPI Doc
627+
- Speakeasy CLI 1.660.0 (2.760.2) https://github.com/speakeasy-api/speakeasy
628+
### Generated
629+
- [java v0.27.7] .
630+
### Releases
631+
- [Maven Central v0.27.7] https://central.sonatype.com/artifact/com.apideck/unify/0.27.7 - .

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
groupId=com.apideck
22
artifactId=unify
3-
version=0.27.6
3+
version=0.27.7
44
org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g

spring/unify-spring-boot-autoconfigure/src/main/java/com/apideck/unify/UnifyAutoConfig.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ public RetryConfig retryConfig(UnifyAutoConfigProperties properties) {
7272
// Default retry config for other strategies
7373
return RetryConfig.builder().build();
7474
}
75-
7675
/**
7776
* Creates a {@code Consumer<String>} bean for HTTP debug logging if none exists.
7877
* This logger is used by the SpeakeasyHTTPClient for debug output when debug logging is enabled.
@@ -85,7 +84,6 @@ public RetryConfig retryConfig(UnifyAutoConfigProperties properties) {
8584
public Consumer<String> httpLogger() {
8685
return System.out::println;
8786
}
88-
8987
/**
9088
* Creates an HTTPClient bean if none exists.
9189
*
@@ -207,10 +205,10 @@ public com.apideck.unify.utils.Globals globals(UnifyAutoConfigProperties propert
207205
// Populate globals from properties
208206
UnifyAutoConfigProperties.Globals globalProps = properties.getGlobals();
209207
if (globalProps.getConsumerId() != null) {
210-
globals.putParam("header", "consumerId", globalProps.getConsumerId());
208+
globals.putParam("header", "x-apideck-consumer-id", globalProps.getConsumerId());
211209
}
212210
if (globalProps.getAppId() != null) {
213-
globals.putParam("header", "appId", globalProps.getAppId());
211+
globals.putParam("header", "x-apideck-app-id", globalProps.getAppId());
214212
}
215213

216214
return globals;

src/main/java/com/apideck/unify/Apideck.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ public Builder enableHTTPDebugLogging(boolean enabled) {
239239
* @return The builder instance.
240240
*/
241241
public Builder consumerId(String consumerId) {
242-
this.sdkConfiguration.globals.putParam("header", "consumerId", consumerId);
242+
this.sdkConfiguration.globals.putParam("header", "x-apideck-consumer-id", consumerId);
243243
return this;
244244
}
245245

@@ -250,7 +250,7 @@ public Builder consumerId(String consumerId) {
250250
* @return The builder instance.
251251
*/
252252
public Builder appId(String appId) {
253-
this.sdkConfiguration.globals.putParam("header", "appId", appId);
253+
this.sdkConfiguration.globals.putParam("header", "x-apideck-app-id", appId);
254254
return this;
255255
}
256256
// Visible for testing, may be accessed via reflection in tests

src/main/java/com/apideck/unify/SDKConfiguration.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
public class SDKConfiguration {
2121

2222
private static final String LANGUAGE = "java";
23-
public static final String OPENAPI_DOC_VERSION = "10.21.15";
24-
public static final String SDK_VERSION = "0.27.6";
25-
public static final String GEN_VERSION = "2.755.9";
23+
public static final String OPENAPI_DOC_VERSION = "10.21.16";
24+
public static final String SDK_VERSION = "0.27.7";
25+
public static final String GEN_VERSION = "2.760.2";
2626
private static final String BASE_PACKAGE = "com.apideck.unify";
2727
public static final String USER_AGENT =
2828
String.format("speakeasy-sdk/%s %s %s %s %s",

src/main/java/com/apideck/unify/operations/AccountingAgedCreditorsOne.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import com.apideck.unify.utils.AsyncRetries;
2323
import com.apideck.unify.utils.BackoffStrategy;
2424
import com.apideck.unify.utils.Blob;
25+
import com.apideck.unify.utils.Globals;
2526
import com.apideck.unify.utils.HTTPClient;
2627
import com.apideck.unify.utils.HTTPRequest;
2728
import com.apideck.unify.utils.Headers;
@@ -58,6 +59,7 @@ static abstract class Base {
5859
final RetryConfig retryConfig;
5960
final HTTPClient client;
6061
final Headers _headers;
62+
final Globals operationGlobals;
6163

6264
public Base(
6365
SDKConfiguration sdkConfiguration, Optional<Options> options,
@@ -81,6 +83,11 @@ public Base(
8183
.build())
8284
.build());
8385
this.client = this.sdkConfiguration.client();
86+
this.operationGlobals = new Globals();
87+
this.sdkConfiguration.globals.getParam("header", "x-apideck-consumer-id")
88+
.ifPresent(param -> operationGlobals.putParam("header", "x-apideck-consumer-id", param));
89+
this.sdkConfiguration.globals.getParam("header", "x-apideck-app-id")
90+
.ifPresent(param -> operationGlobals.putParam("header", "x-apideck-app-id", param));
8491
}
8592

8693
Optional<SecuritySource> securitySource() {
@@ -125,8 +132,8 @@ <T>HttpRequest buildRequest(T request, Class<T> klass) throws Exception {
125132
req.addQueryParams(Utils.getQueryParams(
126133
klass,
127134
request,
128-
this.sdkConfiguration.globals));
129-
req.addHeaders(Utils.getHeadersFromMetadata(request, this.sdkConfiguration.globals));
135+
this.operationGlobals));
136+
req.addHeaders(Utils.getHeadersFromMetadata(request, this.operationGlobals));
130137
Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity());
131138

132139
return req.build();

0 commit comments

Comments
 (0)