Skip to content

Commit 7fcb3e9

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.575.5
1 parent 86baeeb commit 7fcb3e9

File tree

745 files changed

+22145
-24080
lines changed

Some content is hidden

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

745 files changed

+22145
-24080
lines changed

.gitattributes

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,4 @@
88
*.bat text eol=crlf
99

1010
# This allows generated code to be indexed correctly
11-
*.java linguist-generated=false
12-
11+
*.java linguist-generated=false

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
**/.speakeasy/temp/
2+
**/.speakeasy/logs/
3+
.speakeasy/reports
14
# Ignore Gradle project-specific cache directory
25
.gradle
36
# Ignore Gradle build output directory

.speakeasy/gen.lock

Lines changed: 240 additions & 162 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,35 @@ generation:
44
maintainOpenAPIOrder: true
55
usageSnippets:
66
optionalPropertyRendering: withExample
7+
sdkInitStyle: constructor
78
useClassNamesForArrayFields: true
89
fixes:
910
nameResolutionDec2023: true
11+
nameResolutionFeb2025: false
1012
parameterOrderingFeb2024: true
1113
requestResponseComponentNamesFeb2024: true
14+
securityFeb2025: false
15+
sharedErrorComponentsApr2025: false
1216
auth:
1317
oAuth2ClientCredentialsEnabled: true
1418
oAuth2PasswordEnabled: false
19+
tests:
20+
generateTests: true
21+
generateNewTests: false
22+
skipResponseBodyAssertions: false
1523
java:
16-
version: 1.0.0-beta
24+
version: 1.0.0-beta.1
1725
additionalDependencies: []
1826
additionalPlugins:
1927
- id 'org.jreleaser' version '1.15.0'
2028
artifactID: shippo-sdk
29+
baseErrorName: ShippoError
2130
clientServerStatusCodesAsErrors: true
2231
companyEmail: [email protected]
2332
companyName: Shippo
2433
companyURL: www.goshippo.com
2534
defaultErrorName: SDKError
35+
enableCustomCodeRegions: false
2636
externalDocs:
2737
url: https://github.com/goshippo/shippo-java-sdk
2838
version: ""
@@ -41,6 +51,7 @@ java:
4151
descriptions: Maven library which integrates with Shippo Multi Carrier Shipping API. This library provides access to Shippo (goshippo.com) API capabilities. Including label generation, rating, tracking and more.
4252
version: ""
4353
inputModelSuffix: input
54+
languageVersion: 11
4455
license:
4556
name: The MIT License (MIT)
4657
shortName: MIT

.speakeasy/workflow.lock

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
1-
speakeasyVersion: 1.448.2
1+
speakeasyVersion: 1.575.5
22
sources:
33
my-first-source:
44
sourceNamespace: my-first-source
5-
sourceRevisionDigest: sha256:480494c08f99f68cd119fdb481d81d31d37e4e22211cc6fd8a5197857b7580b4
6-
sourceBlobDigest: sha256:422c969f0c8ded72f1dc9d756407a9d51740270b9d16fd9c4f4a9d50f4e714ba
5+
sourceRevisionDigest: sha256:c7975b03b0e922bd14ceb9f47b00751e5ab098fca449707d2e20845cf7cc50f5
6+
sourceBlobDigest: sha256:38d48412b95b3b5c0ed071f4887b46472950b923b239a773d7830c0ee92c6c14
77
tags:
88
- latest
9+
- speakeasy-sdk-regen-1733703738
910
- "2018-02-08"
1011
targets:
1112
my-first-target:
1213
source: my-first-source
1314
sourceNamespace: my-first-source
14-
sourceRevisionDigest: sha256:480494c08f99f68cd119fdb481d81d31d37e4e22211cc6fd8a5197857b7580b4
15-
sourceBlobDigest: sha256:422c969f0c8ded72f1dc9d756407a9d51740270b9d16fd9c4f4a9d50f4e714ba
15+
sourceRevisionDigest: sha256:c7975b03b0e922bd14ceb9f47b00751e5ab098fca449707d2e20845cf7cc50f5
16+
sourceBlobDigest: sha256:38d48412b95b3b5c0ed071f4887b46472950b923b239a773d7830c0ee92c6c14
1617
codeSamplesNamespace: my-first-source-java-code-samples
17-
codeSamplesRevisionDigest: sha256:2b960672ec02abfbb6692e804ee954c218ece797c765654fab7f71084709ef08
18+
codeSamplesRevisionDigest: sha256:c84df6f743866d934f71e93607214e7de1cb94ee9e984226361201c40d019f35
1819
workflow:
1920
workflowVersion: 1.0.0
2021
speakeasyVersion: latest

.speakeasy/workflow.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ targets:
1212
source: my-first-source
1313
publish:
1414
java:
15-
useSonatypeLegacy: false
1615
ossrhUsername: $ossrh_username
1716
ossrhPassword: $ossrh_password
1817
gpgSecretKey: $java_gpg_secret_key

README.md

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -290,9 +290,7 @@ By default, an API error will throw a `models/errors/SDKError` exception. When c
290290
package hello.world;
291291

292292
import com.goshippo.shippo_sdk.Shippo;
293-
import com.goshippo.shippo_sdk.models.errors.InitiateOauth2SigninCarrierAccountsResponseBody;
294-
import com.goshippo.shippo_sdk.models.errors.InitiateOauth2SigninCarrierAccountsResponseResponseBody;
295-
import com.goshippo.shippo_sdk.models.errors.InitiateOauth2SigninResponseBody;
293+
import com.goshippo.shippo_sdk.models.errors.*;
296294
import com.goshippo.shippo_sdk.models.operations.InitiateOauth2SigninResponse;
297295
import java.lang.Exception;
298296

@@ -301,15 +299,13 @@ public class Application {
301299
public static void main(String[] args) throws InitiateOauth2SigninResponseBody, InitiateOauth2SigninCarrierAccountsResponseBody, InitiateOauth2SigninCarrierAccountsResponseResponseBody, Exception {
302300

303301
Shippo sdk = Shippo.builder()
304-
.apiKeyHeader("<YOUR_API_KEY_HERE>")
305302
.shippoApiVersion("2018-02-08")
303+
.apiKeyHeader("<YOUR_API_KEY_HERE>")
306304
.build();
307305

308306
InitiateOauth2SigninResponse res = sdk.carrierAccounts().initiateOauth2Signin()
309307
.carrierAccountObjectId("<id>")
310-
.redirectUri("https://enlightened-mortise.com/")
311-
.state("Louisiana")
312-
.shippoApiVersion("2018-02-08")
308+
.redirectUri("https://ashamed-reporter.biz")
313309
.call();
314310

315311
// handle response
@@ -323,7 +319,7 @@ public class Application {
323319

324320
### Override Server URL Per-Client
325321

326-
The default server can also be overridden globally using the `.serverURL(String serverUrl)` builder method when initializing the SDK client instance. For example:
322+
The default server can be overridden globally using the `.serverURL(String serverUrl)` builder method when initializing the SDK client instance. For example:
327323
```java
328324
package hello.world;
329325

@@ -337,14 +333,13 @@ public class Application {
337333

338334
Shippo sdk = Shippo.builder()
339335
.serverURL("https://api.goshippo.com")
340-
.apiKeyHeader("<YOUR_API_KEY_HERE>")
341336
.shippoApiVersion("2018-02-08")
337+
.apiKeyHeader("<YOUR_API_KEY_HERE>")
342338
.build();
343339

344340
ListAddressesResponse res = sdk.addresses().list()
345341
.page(1L)
346342
.results(5L)
347-
.shippoApiVersion("2018-02-08")
348343
.call();
349344

350345
if (res.addressPaginatedList().isPresent()) {
@@ -386,7 +381,6 @@ public class Application {
386381
ListAddressesResponse res = sdk.addresses().list()
387382
.page(1L)
388383
.results(5L)
389-
.shippoApiVersion("2018-02-08")
390384
.call();
391385

392386
if (res.addressPaginatedList().isPresent()) {

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,14 @@ Based on:
6060
### Generated
6161
- [java v1.0.0-beta.3] .
6262
### Releases
63-
- [Maven Central v1.0.0-beta.3] https://central.sonatype.com/artifact/com.goshippo/sdk/1.0.0-beta.3 - .
63+
- [Maven Central v1.0.0-beta.3] https://central.sonatype.com/artifact/com.goshippo/sdk/1.0.0-beta.3 - .
64+
65+
## 2025-07-07 00:25:19
66+
### Changes
67+
Based on:
68+
- OpenAPI Doc
69+
- Speakeasy CLI 1.575.5 (2.648.7) https://github.com/speakeasy-api/speakeasy
70+
### Generated
71+
- [java v1.0.0-beta.1] .
72+
### Releases
73+
- [Maven Central v1.0.0-beta.1] https://central.sonatype.com/artifact/com.goshippo/shippo-sdk/1.0.0-beta.1 - .

USAGE.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,13 @@ public class Application {
1111
public static void main(String[] args) throws Exception {
1212

1313
Shippo sdk = Shippo.builder()
14-
.apiKeyHeader("<YOUR_API_KEY_HERE>")
1514
.shippoApiVersion("2018-02-08")
15+
.apiKeyHeader("<YOUR_API_KEY_HERE>")
1616
.build();
1717

1818
ListAddressesResponse res = sdk.addresses().list()
1919
.page(1L)
2020
.results(5L)
21-
.shippoApiVersion("2018-02-08")
2221
.call();
2322

2423
if (res.addressPaginatedList().isPresent()) {

build.gradle

Lines changed: 29 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ repositories {
2828
}
2929

3030
java {
31-
sourceCompatibility = JavaVersion.VERSION_11
32-
targetCompatibility = JavaVersion.VERSION_11
3331
withSourcesJar()
3432
withJavadocJar()
3533
}
@@ -40,9 +38,12 @@ model {
4038
}
4139
}
4240

41+
version = "${version}"
42+
group = "${groupId}"
43+
4344
jar {
4445
dependsOn(":generatePomFileForMavenPublication")
45-
archiveBaseName = "shippo-sdk"
46+
archiveBaseName = "${artifactId}"
4647

4748
into("META-INF/maven/com.goshippo/shippo-sdk") {
4849
from("$buildDir/pom.xml")
@@ -63,15 +64,16 @@ tasks.withType(Javadoc) {
6364
options.addStringOption('Xdoclint:none', '-quiet')
6465
}
6566

66-
group = "com.goshippo"
67-
version = "1.0.0-beta"
67+
tasks.withType(JavaCompile).configureEach {
68+
options.release = 11
69+
}
6870

6971
sourcesJar {
70-
archiveBaseName = "shippo-sdk"
72+
archiveBaseName = "${artifactId}"
7173
}
7274

7375
javadocJar {
74-
archiveBaseName = "shippo-sdk"
76+
archiveBaseName = "${artifactId}"
7577
}
7678
sonatypeCentralUpload {
7779
// This is your Sonatype generated username
@@ -81,9 +83,9 @@ sonatypeCentralUpload {
8183

8284
// This is a list of files to upload. Ideally you would point to your jar file, source and javadoc jar (required by central)
8385
archives = files(
84-
"$buildDir/libs/shippo-sdk-${version}.jar",
85-
"$buildDir/libs/shippo-sdk-${version}-sources.jar",
86-
"$buildDir/libs/shippo-sdk-${version}-javadoc.jar"
86+
"$buildDir/libs/${artifactId}-${version}.jar",
87+
"$buildDir/libs/${artifactId}-${version}-sources.jar",
88+
"$buildDir/libs/${artifactId}-${version}-javadoc.jar"
8789
)
8890

8991
// This is the pom file to upload. This is required by central
@@ -100,13 +102,19 @@ publishing {
100102

101103
publications {
102104
maven(MavenPublication) {
103-
groupId = 'com.goshippo'
104-
artifactId = 'shippo-sdk'
105-
version = '1.0.0-beta'
105+
// note that properties can't yet be used below!
106+
// https://github.com/gradle/gradle/issues/18619
107+
groupId = "com.goshippo"
108+
artifactId = "shippo-sdk"
109+
version = "1.0.0-beta.1"
106110

107111
from components.java
108112

109113
pom {
114+
properties = [
115+
'maven.compiler.source': '11',
116+
'maven.compiler.target': '11',
117+
]
110118
name = 'Shippo Java SDK'
111119
description = 'SDK enabling Java developers to easily integrate with the Shippo API.'
112120
url = 'https://https://github.com/goshippo/shippo-java-sdk'
@@ -145,17 +153,15 @@ if (!project.hasProperty('skip.signing')) {
145153
}
146154
}
147155

156+
157+
148158
dependencies {
149-
api 'com.fasterxml.jackson.core:jackson-annotations:2.17.2'
150-
implementation 'com.fasterxml.jackson.core:jackson-databind:2.17.2'
151-
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.17.2'
152-
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.17.2'
159+
api 'com.fasterxml.jackson.core:jackson-annotations:2.18.2'
160+
implementation 'com.fasterxml.jackson.core:jackson-databind:2.18.2'
161+
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.18.2'
162+
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.18.2'
153163
api('org.openapitools:jackson-databind-nullable:0.2.6') {exclude group: 'com.fasterxml.jackson.core', module: 'jackson-databind'}
154-
implementation 'org.apache.httpcomponents:httpclient:4.5.14'
155-
implementation 'org.apache.httpcomponents:httpmime:4.5.14'
156-
implementation 'commons-io:commons-io:2.15.1'
164+
implementation 'commons-io:commons-io:2.18.0'
157165
}
158166

159-
160-
161-
apply from: 'build-extras.gradle'
167+
apply from: 'build-extras.gradle'

0 commit comments

Comments
 (0)