Skip to content

Commit aee0c50

Browse files
chore: 🐝 Update SDK - Generate SDK 2.16.51
1 parent 19c90d9 commit aee0c50

10 files changed

Lines changed: 74 additions & 39 deletions

File tree

β€Ž.speakeasy/gen.lockβ€Ž

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
lockVersion: 2.0.0
22
id: 5bbaa3a9-baa0-471b-ba6a-13fd88e8c119
33
management:
4-
docChecksum: dc20363f8b5b98547871a6b5350a4ccb
4+
docChecksum: 51b03d3086f63341c3159b74c09622a6
55
docVersion: 1.0.0
6-
speakeasyVersion: 1.759.3
7-
generationVersion: 2.869.25
8-
releaseVersion: 2.16.50
9-
configChecksum: 066a7034b7b7bc20c6765cc55b1bc2e4
6+
speakeasyVersion: 1.760.0
7+
generationVersion: 2.873.1
8+
releaseVersion: 2.16.51
9+
configChecksum: 72edbb0684c2b566c7f1bb663e036a62
1010
repoURL: https://github.com/gr4vy/gr4vy-java.git
1111
installationURL: https://github.com/gr4vy/gr4vy-java
1212
published: true
1313
persistentEdits:
14-
generation_id: 4395450c-fea6-492d-ab66-5f720af31dad
15-
pristine_commit_hash: d490e56868c26e0348ccb0f582a09e6a4b9bf258
16-
pristine_tree_hash: e17af3deefae767b93eca39e156f87854f9b50aa
14+
generation_id: 42781d40-e432-4fdd-87aa-ae0016178f9c
15+
pristine_commit_hash: 9b295150ca6f5a912c049a69d4abce66a2542227
16+
pristine_tree_hash: 71f373df5e4be51d47bc0704a14023d7870970a9
1717
features:
1818
java:
1919
additionalDependencies: 0.1.0
2020
constsAndDefaults: 0.1.3
21-
core: 3.55.22
21+
core: 3.55.23
2222
flattening: 2.81.1
23-
globalSecurity: 2.83.2
23+
globalSecurity: 2.83.4
2424
globalSecurityCallbacks: 0.1.0
2525
globalSecurityFlattening: 0.1.0
2626
globalServerURLs: 2.83.1
@@ -2382,8 +2382,8 @@ trackedFiles:
23822382
pristine_git_object: 15c4e4642f204ccb312d8814155b69e153b4e19b
23832383
gradle.properties:
23842384
id: 2afbb999f001
2385-
last_write_checksum: sha1:f9294b05290d70d1a54f6d4b48954e5823ab9cc3
2386-
pristine_git_object: 2814d83898c72053f48cfac224c53290e0a3f550
2385+
last_write_checksum: sha1:d3a5dd308aeb3f4ebd95ab464a01aa68970c62b4
2386+
pristine_git_object: ad977a4324cf23529851cfbdbd4b97f6d37c57e2
23872387
gradle/wrapper/gradle-wrapper.jar:
23882388
id: ec27dae6e852
23892389
last_write_checksum: sha1:f725fb1467084142d74fd7cd8eab691ab3442611
@@ -2706,8 +2706,8 @@ trackedFiles:
27062706
pristine_git_object: 502a7312d3dc82c102dbaf7ed5e952d0c793e26f
27072707
src/main/java/com/gr4vy/sdk/SDKConfiguration.java:
27082708
id: 73a7edeaca45
2709-
last_write_checksum: sha1:9209ca39fd069c85fbaabf4836761e5cfe10c5e2
2710-
pristine_git_object: 3ef4161e28592807a7496cc9a1eb0e1348265f25
2709+
last_write_checksum: sha1:a8a995a72d6a44785a1d2b336798c17f5bc70d4f
2710+
pristine_git_object: fbd34cb3cb4dbc5f6e967cd5acb1ee59a844aa4b
27112711
src/main/java/com/gr4vy/sdk/SecuritySource.java:
27122712
id: 1b6add6b9b50
27132713
last_write_checksum: sha1:2f365cc823c6243188e83f4df618c9737fcee8bd
@@ -6798,12 +6798,12 @@ trackedFiles:
67986798
pristine_git_object: 949a4a31c6ae97ff73623b1200001ea60fb219b2
67996799
src/main/java/com/gr4vy/sdk/utils/Security.java:
68006800
id: 8f93474a370e
6801-
last_write_checksum: sha1:3cb0c57c59bf6fbfa337a14defa91234e0311a77
6802-
pristine_git_object: a20fca31d1e204e0cf780445d4d265455ea71f41
6801+
last_write_checksum: sha1:5aa8a43fbc374f9947dd4194b1b4aa09c74b380f
6802+
pristine_git_object: 8ae265ad86296538f92cce56028da9a3994beb7e
68036803
src/main/java/com/gr4vy/sdk/utils/SecurityMetadata.java:
68046804
id: 23577fb2f4b9
6805-
last_write_checksum: sha1:02f5a9ebde25eb03d947711d81d580766f146295
6806-
pristine_git_object: 9132374065fc5a324a22efbb5c726ff055bed15f
6805+
last_write_checksum: sha1:8d04940c05091c7d707d4f78ebce9467d9fd1f8b
6806+
pristine_git_object: ba37fc547488aac6e1b73811c20a9521c6d6ed29
68076807
src/main/java/com/gr4vy/sdk/utils/SerializedBody.java:
68086808
id: 89853ad52436
68096809
last_write_checksum: sha1:d80e55e06c669faf81edc0f133388dd690772f6e
@@ -6846,8 +6846,8 @@ trackedFiles:
68466846
pristine_git_object: 1381df61cea0f4f9c967cfc339dae3505fa15357
68476847
src/main/java/com/gr4vy/sdk/utils/Utils.java:
68486848
id: 3e329f0c996a
6849-
last_write_checksum: sha1:6e4ec81d73c5c1819eb1bc083e282796db9ff0e7
6850-
pristine_git_object: d37522606c0fd19f3a911aa9db8b839e2149e6e4
6849+
last_write_checksum: sha1:ea4e330c4740aad89fcbe88e113f97b24fc3343c
6850+
pristine_git_object: bcb5e713103030d843ac8d1dce75e3b1b22814f2
68516851
src/main/java/com/gr4vy/sdk/utils/pagination/AsyncPaginator.java:
68526852
id: 48a0072a494a
68536853
last_write_checksum: sha1:a2f016ee27c4f925c52401ce751aedf909e773a1
@@ -10615,7 +10615,6 @@ examples:
1061510615
application/json: {"type": "error", "code": "gateway_timeout", "status": 504, "message": "Request could not be processed"}
1061610616
examplesVersion: 1.0.2
1061710617
generatedTests: {}
10618-
releaseNotes: "## Java SDK Changes:\n* `gr4vy.transactions.create()`: \n * `request.transactionCreate.connectionOptions` **Changed**\n* `gr4vy.transactions.update()`: \n * `request.transactionUpdate.connectionOptions` **Changed**\n* `gr4vy.paymentLinks.create()`: \n * `request.paymentLinkCreate.connectionOptions` **Changed**\n"
1061910618
generatedFiles:
1062010619
- .gitattributes
1062110620
- USAGE.md

β€Ž.speakeasy/gen.yamlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ generation:
3030
generateNewTests: false
3131
skipResponseBodyAssertions: false
3232
java:
33-
version: 2.16.50
33+
version: 2.16.51
3434
additionalDependencies:
3535
- testImplementation:org.junit.jupiter:junit-jupiter:5.10.0
3636
- implementation:com.auth0:java-jwt:4.5.0

β€Ž.speakeasy/workflow.lockβ€Ž

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
speakeasyVersion: 1.759.3
1+
speakeasyVersion: 1.760.0
22
sources:
33
Gr4vy:
44
sourceNamespace: openapi
@@ -9,8 +9,8 @@ sources:
99
- 1.0.0
1010
openapi:
1111
sourceNamespace: openapi
12-
sourceRevisionDigest: sha256:cdd2abb9a296846525779e4433b5719f6f92afa9cdecd9040513e399902866d1
13-
sourceBlobDigest: sha256:85c126d56e378330e849d5eae0d0971bb71461d09b705f2d429aaa5cf33b3d97
12+
sourceRevisionDigest: sha256:81fa0b747f004b99bf676fd74b51f6779dc8ebf808f6b19558bc751240943068
13+
sourceBlobDigest: sha256:04eaddea66ea47506ae3930f7c6650661cfda125f1ed9b85c52a621f82a22c8c
1414
tags:
1515
- latest
1616
- 1.0.0
@@ -25,10 +25,10 @@ targets:
2525
java:
2626
source: openapi
2727
sourceNamespace: openapi
28-
sourceRevisionDigest: sha256:cdd2abb9a296846525779e4433b5719f6f92afa9cdecd9040513e399902866d1
29-
sourceBlobDigest: sha256:85c126d56e378330e849d5eae0d0971bb71461d09b705f2d429aaa5cf33b3d97
28+
sourceRevisionDigest: sha256:81fa0b747f004b99bf676fd74b51f6779dc8ebf808f6b19558bc751240943068
29+
sourceBlobDigest: sha256:04eaddea66ea47506ae3930f7c6650661cfda125f1ed9b85c52a621f82a22c8c
3030
codeSamplesNamespace: openapi-java-code-samples
31-
codeSamplesRevisionDigest: sha256:f133ebb2dc5c554fc91bad0baa3c7946a5b17ff92b468f180aa60da8badb46e2
31+
codeSamplesRevisionDigest: sha256:053800d6917b17df26cb149dc3ab06fa81760dfd7574c8e7a9b40834bbdab224
3232
workflow:
3333
workflowVersion: 1.0.0
3434
speakeasyVersion: latest

β€ŽREADME.mdβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,15 @@ The samples below show how a published SDK artifact is used:
5959

6060
Gradle:
6161
```groovy
62-
implementation 'com.gr4vy:sdk:2.16.50'
62+
implementation 'com.gr4vy:sdk:2.16.51'
6363
```
6464

6565
Maven:
6666
```xml
6767
<dependency>
6868
<groupId>com.gr4vy</groupId>
6969
<artifactId>sdk</artifactId>
70-
<version>2.16.50</version>
70+
<version>2.16.51</version>
7171
</dependency>
7272
```
7373

β€ŽRELEASES.mdβ€Ž

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1338,4 +1338,14 @@ Based on:
13381338
### Generated
13391339
- [java v2.16.50] .
13401340
### Releases
1341-
- [Maven Central v2.16.50] https://central.sonatype.com/artifact/com.gr4vy/sdk/2.16.50 - .
1341+
- [Maven Central v2.16.50] https://central.sonatype.com/artifact/com.gr4vy/sdk/2.16.50 - .
1342+
1343+
## 2026-03-30 16:15:03
1344+
### Changes
1345+
Based on:
1346+
- OpenAPI Doc
1347+
- Speakeasy CLI 1.760.0 (2.873.1) https://github.com/speakeasy-api/speakeasy
1348+
### Generated
1349+
- [java v2.16.51] .
1350+
### Releases
1351+
- [Maven Central v2.16.51] https://central.sonatype.com/artifact/com.gr4vy/sdk/2.16.51 - .

β€Žgradle.propertiesβ€Ž

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

β€Žsrc/main/java/com/gr4vy/sdk/SDKConfiguration.javaβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ public class SDKConfiguration {
2222

2323
private static final String LANGUAGE = "java";
2424
public static final String OPENAPI_DOC_VERSION = "1.0.0";
25-
public static final String SDK_VERSION = "2.16.50";
26-
public static final String GEN_VERSION = "2.869.25";
25+
public static final String SDK_VERSION = "2.16.51";
26+
public static final String GEN_VERSION = "2.873.1";
2727
private static final String BASE_PACKAGE = "com.gr4vy.sdk";
2828
public static final String USER_AGENT =
2929
String.format("speakeasy-sdk/%s %s %s %s %s",

β€Žsrc/main/java/com/gr4vy/sdk/utils/Security.javaβ€Ž

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import java.lang.reflect.Field;
77
import java.nio.charset.StandardCharsets;
8+
import java.util.ArrayList;
89
import java.util.Arrays;
910
import java.util.Base64;
1011
import java.util.Deque;
@@ -23,9 +24,22 @@ private Security() {
2324
// prevent instantiation
2425
}
2526

26-
public static HTTPRequest configureSecurity(HTTPRequest request, Object security) throws Exception {
27+
public static HTTPRequest configureSecurity(HTTPRequest request, Object security, String... allowedFields) throws Exception {
2728
if (security != null) {
28-
Field[] fields = security.getClass().getDeclaredFields();
29+
Field[] fields;
30+
if (allowedFields.length > 0) {
31+
List<Field> ordered = new ArrayList<>();
32+
for (String name : allowedFields) {
33+
try {
34+
ordered.add(security.getClass().getDeclaredField(name));
35+
} catch (NoSuchFieldException e) {
36+
// skip unknown fields
37+
}
38+
}
39+
fields = ordered.toArray(new Field[0]);
40+
} else {
41+
fields = security.getClass().getDeclaredFields();
42+
}
2943

3044
for (Field field : fields) {
3145
field.setAccessible(true);
@@ -41,13 +55,19 @@ public static HTTPRequest configureSecurity(HTTPRequest request, Object security
4155

4256
if (securityMetadata.option) {
4357
parseSecurityOption(request, value);
58+
if (!securityMetadata.composite) {
59+
return request;
60+
}
4461
} else if (securityMetadata.scheme) {
4562
if ((securityMetadata.subtype != null && securityMetadata.subtype.equals("basic"))
4663
&& Types.getType(value.getClass()) != Types.OBJECT) {
4764
parseSecurityScheme(request, securityMetadata, security);
4865
} else {
4966
parseSecurityScheme(request, securityMetadata, value);
5067
}
68+
if (!securityMetadata.composite) {
69+
return request;
70+
}
5171
}
5272
}
5373
}
@@ -71,7 +91,12 @@ private static void parseSecurityOption(HTTPRequest request, Object option)
7191
continue;
7292
}
7393

74-
parseSecurityScheme(request, securityMetadata, value);
94+
if (securityMetadata.subtype != null && securityMetadata.subtype.equals("basic")
95+
&& Types.getType(value.getClass()) != Types.OBJECT) {
96+
parseSecurityScheme(request, securityMetadata, option);
97+
} else {
98+
parseSecurityScheme(request, securityMetadata, value);
99+
}
75100
}
76101
}
77102

β€Žsrc/main/java/com/gr4vy/sdk/utils/SecurityMetadata.javaβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ class SecurityMetadata {
1111
String subtype;
1212
boolean option;
1313
boolean scheme;
14+
boolean composite;
1415
String name;
1516

1617
private SecurityMetadata() {

β€Žsrc/main/java/com/gr4vy/sdk/utils/Utils.javaβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,8 @@ public static <T extends Object> List<QueryParameter> getQueryParams(Class<T> ty
308308
return QueryParameters.parseQueryParams(type, params, globals);
309309
}
310310

311-
public static HTTPRequest configureSecurity(HTTPRequest request, Object security) throws Exception {
312-
return Security.configureSecurity(request, security);
311+
public static HTTPRequest configureSecurity(HTTPRequest request, Object security, String... allowedFields) throws Exception {
312+
return Security.configureSecurity(request, security, allowedFields);
313313
}
314314

315315
private static final String DOLLAR_MARKER = "D9qPtyhOYzkHGu3c";

0 commit comments

Comments
Β (0)