Skip to content

Commit 58dec41

Browse files
Merge pull request #3 from gleanwork/speakeasy-sdk-regen-1746060560
chore: 🐝 Update SDK - Generate GLEAN 0.1.0-beta.1
2 parents 8459a4d + a966c50 commit 58dec41

File tree

722 files changed

+8438
-75884
lines changed

Some content is hidden

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

722 files changed

+8438
-75884
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
**/.speakeasy/temp/
2+
**/.speakeasy/logs/
13
# Ignore Gradle project-specific cache directory
24
.gradle
35
# Ignore Gradle build output directory

.speakeasy/gen.lock

Lines changed: 62 additions & 531 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ generation:
1111
parameterOrderingFeb2024: true
1212
requestResponseComponentNamesFeb2024: true
1313
securityFeb2025: true
14+
sharedErrorComponentsApr2025: false
1415
auth:
1516
oAuth2ClientCredentialsEnabled: true
1617
oAuth2PasswordEnabled: true
1718
java:
18-
version: 0.0.3
19+
version: 0.1.0-beta.1
1920
additionalDependencies: []
2021
additionalPlugins: []
2122
artifactID: api-client

.speakeasy/glean-merged-spec.yaml

Lines changed: 5477 additions & 8452 deletions
Large diffs are not rendered by default.

.speakeasy/workflow.lock

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
speakeasyVersion: 1.539.2
1+
speakeasyVersion: 1.541.2
22
sources:
33
Glean API:
44
sourceNamespace: glean-api-specs
5-
sourceRevisionDigest: sha256:57e3640581a128d3fe18376fa9d80f8340eadf0dc0982aa35c09bef0980967b3
6-
sourceBlobDigest: sha256:6bc72f74f71a240fd856970a3e7f199b01435c1dbe606428131177cb092508c3
5+
sourceRevisionDigest: sha256:1756c09ecbe23405704c2ca0a7fc16f744e0104dd7eae3eea4f70d5a04348c16
6+
sourceBlobDigest: sha256:774205fd75a3374e402da1109732bc48f7fcd38efe41d5709663e17ac4f28898
77
tags:
88
- latest
9+
- speakeasy-sdk-regen-1746060560
910
Glean-OAS:
1011
sourceNamespace: glean-oas
1112
sourceRevisionDigest: sha256:8841834dd58ddd4e2dcf98fc90fbd06fbf3626a29df941503cce55b9548a5317
@@ -17,10 +18,10 @@ targets:
1718
glean:
1819
source: Glean API
1920
sourceNamespace: glean-api-specs
20-
sourceRevisionDigest: sha256:57e3640581a128d3fe18376fa9d80f8340eadf0dc0982aa35c09bef0980967b3
21-
sourceBlobDigest: sha256:6bc72f74f71a240fd856970a3e7f199b01435c1dbe606428131177cb092508c3
21+
sourceRevisionDigest: sha256:1756c09ecbe23405704c2ca0a7fc16f744e0104dd7eae3eea4f70d5a04348c16
22+
sourceBlobDigest: sha256:774205fd75a3374e402da1109732bc48f7fcd38efe41d5709663e17ac4f28898
2223
codeSamplesNamespace: glean-api-specs-java-code-samples
23-
codeSamplesRevisionDigest: sha256:c2f6fa21610e37d43925a5679cb0f6cf371a6926bd73fc8c146c3098ba1b04da
24+
codeSamplesRevisionDigest: sha256:722c2fa1077cdc27eda09a75812f0f0c2120d6e367ded49055e0d3b20f1aed1b
2425
workflow:
2526
workflowVersion: 1.0.0
2627
speakeasyVersion: latest
@@ -33,9 +34,15 @@ workflow:
3334
glean:
3435
target: java
3536
source: Glean API
37+
publish:
38+
java:
39+
ossrhUsername: $ossrh_username
40+
ossrhPassword: $ossrh_password
41+
gpgSecretKey: $java_gpg_secret_key
42+
gpgPassPhrase: $java_gpg_passphrase
3643
codeSamples:
3744
registry:
3845
location: registry.speakeasyapi.dev/glean-el2/sdk/glean-api-specs-java-code-samples
3946
labelOverride:
40-
fixedValue: Java (SDK)
47+
fixedValue: Java (Client)
4148
blocking: false

README.md

Lines changed: 92 additions & 262 deletions
Large diffs are not rendered by default.

RELEASES.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
3+
## 2025-05-01 00:49:03
4+
### Changes
5+
Based on:
6+
- OpenAPI Doc
7+
- Speakeasy CLI 1.541.2 (2.595.4) https://github.com/speakeasy-api/speakeasy
8+
### Generated
9+
- [java v0.1.0-beta.1] .
10+
### Releases
11+
- [Maven Central v0.1.0-beta.1] https://central.sonatype.com/artifact/com.glean/api-client/0.1.0-beta.1 - .

USAGE.md

Lines changed: 14 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ package hello.world;
44

55
import com.glean.api_client.Glean;
66
import com.glean.api_client.models.components.*;
7-
import com.glean.api_client.models.operations.ActivityResponse;
7+
import com.glean.api_client.models.operations.ChatResponse;
88
import java.lang.Exception;
9-
import java.time.OffsetDateTime;
109
import java.util.List;
1110

1211
public class Application {
@@ -17,37 +16,21 @@ public class Application {
1716
.bearerAuth("<YOUR_BEARER_TOKEN_HERE>")
1817
.build();
1918

20-
Activity req = Activity.builder()
21-
.events(List.of(
22-
ActivityEvent.builder()
23-
.action(ActivityEventAction.HISTORICAL_VIEW)
24-
.timestamp(OffsetDateTime.parse("2000-01-23T04:56:07.000Z"))
25-
.url("https://example.com/")
26-
.build(),
27-
ActivityEvent.builder()
28-
.action(ActivityEventAction.SEARCH)
29-
.timestamp(OffsetDateTime.parse("2000-01-23T04:56:07.000Z"))
30-
.url("https://example.com/search?q=query")
31-
.params(ActivityEventParams.builder()
32-
.query("query")
33-
.build())
34-
.build(),
35-
ActivityEvent.builder()
36-
.action(ActivityEventAction.VIEW)
37-
.timestamp(OffsetDateTime.parse("2000-01-23T04:56:07.000Z"))
38-
.url("https://example.com/")
39-
.params(ActivityEventParams.builder()
40-
.duration(20L)
41-
.referrer("https://example.com/document")
42-
.build())
43-
.build()))
44-
.build();
45-
46-
ActivityResponse res = sdk.client().activity().report()
47-
.request(req)
19+
ChatResponse res = sdk.client().chat().start()
20+
.chatRequest(ChatRequest.builder()
21+
.messages(List.of(
22+
ChatMessage.builder()
23+
.fragments(List.of(
24+
ChatMessageFragment.builder()
25+
.text("What are the company holidays this year?")
26+
.build()))
27+
.build()))
28+
.build())
4829
.call();
4930

50-
// handle response
31+
if (res.chatResponse().isPresent()) {
32+
// handle response
33+
}
5134
}
5235
}
5336
```

build.gradle

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ plugins {
1414
id 'java-library'
1515
id 'maven-publish'
1616
id 'signing'
17+
id 'cl.franciscosolis.sonatype-central-upload' version '1.0.3'
1718
}
1819

1920
compileJava.options.encoding = "UTF-8"
@@ -43,6 +44,7 @@ group = "${groupId}"
4344

4445
jar {
4546
dependsOn(":generatePomFileForMavenPublication")
47+
archiveBaseName = "${artifactId}"
4648

4749
into("META-INF/maven/com.glean/api-client") {
4850
from("$buildDir/pom.xml")
@@ -70,6 +72,27 @@ sourcesJar {
7072
javadocJar {
7173
archiveBaseName = "${artifactId}"
7274
}
75+
sonatypeCentralUpload {
76+
// This is your Sonatype generated username
77+
username = System.getenv("SONATYPE_USERNAME")
78+
// This is your sonatype generated password
79+
password = System.getenv("SONATYPE_PASSWORD")
80+
81+
// This is a list of files to upload. Ideally you would point to your jar file, source and javadoc jar (required by central)
82+
archives = files(
83+
"$buildDir/libs/${artifactId}-${version}.jar",
84+
"$buildDir/libs/${artifactId}-${version}-sources.jar",
85+
"$buildDir/libs/${artifactId}-${version}-javadoc.jar"
86+
)
87+
88+
// This is the pom file to upload. This is required by central
89+
pom = file("$buildDir/pom.xml")
90+
91+
// This is your PGP private key. This is required to sign your files
92+
signingKey = System.getenv("SONATYPE_SIGNING_KEY")
93+
// This is your PGP private key passphrase to decrypt your private key
94+
signingKeyPassphrase = System.getenv("SIGNING_KEY_PASSPHRASE")
95+
}
7396

7497

7598
publishing {
@@ -80,7 +103,7 @@ publishing {
80103
// https://github.com/gradle/gradle/issues/18619
81104
groupId = "com.glean"
82105
artifactId = "api-client"
83-
version = "0.0.3"
106+
version = "0.1.0-beta.1"
84107

85108
from components.java
86109

@@ -102,12 +125,12 @@ publishing {
102125
developer {
103126
name = 'Glean'
104127
organization = 'Glean'
105-
email = 'info@glean.com'
128+
email = 'support@glean.com'
106129
}
107130
}
108131
organization {
109132
name = 'Glean'
110-
url = 'www.glean.com'
133+
url = 'https://www.glean.com'
111134
}
112135
}
113136
}

docs/models/components/AddCredentialRequest.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)