Skip to content

chore: 🐝 Update SDK - Generate 2.1.0 #117

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
**/.speakeasy/temp/
**/.speakeasy/logs/
.speakeasy/reports
# Ignore IDE-specific configs
.project
Expand Down
461 changes: 345 additions & 116 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
speakeasyVersion: 1.533.0
speakeasyVersion: 1.581.2
sources:
my-source:
sourceNamespace: my-source
Expand All @@ -9,11 +9,11 @@ sources:
- main
sample-source:
sourceNamespace: my-source
sourceRevisionDigest: sha256:5c4ac3b133a9b0d18d00a131ead78279d8d36a49e31f5f562d1a200fa11caec3
sourceBlobDigest: sha256:7866415b04810057478603476c27c4042cd2561a5f539d7181e4d5eac8ffca0a
sourceRevisionDigest: sha256:54a22b9df649d87202bb0895b59cc91db033c1575ff251881e7163414bbd41ac
sourceBlobDigest: sha256:b8ee114339ed7bcbd1b90b7e1a64598cace619430264ea8b4ad05693d6be7f38
tags:
- latest
- speakeasy-sdk-regen-1733962674
- speakeasy-sdk-regen-1751588379
- 1.0.0
targets:
airbyte-api:
Expand All @@ -24,10 +24,10 @@ targets:
testing:
source: sample-source
sourceNamespace: my-source
sourceRevisionDigest: sha256:5c4ac3b133a9b0d18d00a131ead78279d8d36a49e31f5f562d1a200fa11caec3
sourceBlobDigest: sha256:7866415b04810057478603476c27c4042cd2561a5f539d7181e4d5eac8ffca0a
sourceRevisionDigest: sha256:54a22b9df649d87202bb0895b59cc91db033c1575ff251881e7163414bbd41ac
sourceBlobDigest: sha256:b8ee114339ed7bcbd1b90b7e1a64598cace619430264ea8b4ad05693d6be7f38
codeSamplesNamespace: my-source-java-code-samples
codeSamplesRevisionDigest: sha256:b4a63e27822e0b961739d46a6b15049756d339c93f1008fae50a8052afce6cd9
codeSamplesRevisionDigest: sha256:3ca146eee7be0e0a87aa08416d0c2c2c3d3e66461ddaead3967536adb75f8efb
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
64 changes: 39 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ airbyte-api: Programmatically control Airbyte Cloud, OSS & Enterprise.
* [Available Resources and Operations](#available-resources-and-operations)
* [Error Handling](#error-handling)
* [Server Selection](#server-selection)
* [Debugging](#debugging)
* [Development](#development)
* [Maturity](#maturity)
* [Contributions](#contributions)
Expand All @@ -42,15 +43,15 @@ The samples below show how a published SDK artifact is used:

Gradle:
```groovy
implementation 'com.airbyte:api:2.0.0'
implementation 'com.airbyte:api:2.1.0'
```

Maven:
```xml
<dependency>
<groupId>com.airbyte</groupId>
<artifactId>api</artifactId>
<version>2.0.0</version>
<version>2.1.0</version>
</dependency>
```

Expand All @@ -67,29 +68,6 @@ On Windows:
```bash
gradlew.bat publishToMavenLocal -Pskip.signing
```

### Logging
A logging framework/facade has not yet been adopted but is under consideration.

For request and response logging (especially json bodies) use:
```java
SpeakeasyHTTPClient.setDebugLogging(true); // experimental API only (may change without warning)
```
Example output:
```
Sending request: http://localhost:35123/bearer#global GET
Request headers: {Accept=[application/json], Authorization=[******], Client-Level-Header=[added by client], Idempotency-Key=[some-key], x-speakeasy-user-agent=[speakeasy-sdk/java 0.0.1 internal 0.1.0 org.openapis.openapi]}
Received response: (GET http://localhost:35123/bearer#global) 200
Response headers: {access-control-allow-credentials=[true], access-control-allow-origin=[*], connection=[keep-alive], content-length=[50], content-type=[application/json], date=[Wed, 09 Apr 2025 01:43:29 GMT], server=[gunicorn/19.9.0]}
Response body:
{
"authenticated": true,
"token": "global"
}
```
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`.

Another option is to set the System property `-Djdk.httpclient.HttpClient.log=all`. However, this second option does not log bodies.
<!-- End SDK Installation [installation] -->

<!-- Start SDK Example Usage [usage] -->
Expand Down Expand Up @@ -122,6 +100,7 @@ public class Application {
.destinationId("e478de0d-a3a0-475c-b019-25f7dd29e281")
.sourceId("95e66a59-8045-4307-9678-63bc3c9b8c93")
.name("Postgres-to-Bigquery")
.namespaceFormat("${SOURCE_NAMESPACE}")
.build();

CreateConnectionResponse res = sdk.connections().createConnection()
Expand Down Expand Up @@ -175,6 +154,7 @@ public class Application {
.destinationId("e478de0d-a3a0-475c-b019-25f7dd29e281")
.sourceId("95e66a59-8045-4307-9678-63bc3c9b8c93")
.name("Postgres-to-Bigquery")
.namespaceFormat("${SOURCE_NAMESPACE}")
.build();

CreateConnectionResponse res = sdk.connections().createConnection()
Expand Down Expand Up @@ -242,6 +222,7 @@ public class Application {

### [organizations()](docs/sdks/organizations/README.md)

* [createOrUpdateOrganizationOAuthCredentials](docs/sdks/organizations/README.md#createorupdateorganizationoauthcredentials) - Create OAuth override credentials for an organization and source type.
* [listOrganizationsForUser](docs/sdks/organizations/README.md#listorganizationsforuser) - List all organizations for a user

### [permissions()](docs/sdks/permissions/README.md)
Expand Down Expand Up @@ -336,6 +317,7 @@ public class Application {
.destinationId("e478de0d-a3a0-475c-b019-25f7dd29e281")
.sourceId("95e66a59-8045-4307-9678-63bc3c9b8c93")
.name("Postgres-to-Bigquery")
.namespaceFormat("${SOURCE_NAMESPACE}")
.build();

CreateConnectionResponse res = sdk.connections().createConnection()
Expand Down Expand Up @@ -382,6 +364,7 @@ public class Application {
.destinationId("e478de0d-a3a0-475c-b019-25f7dd29e281")
.sourceId("95e66a59-8045-4307-9678-63bc3c9b8c93")
.name("Postgres-to-Bigquery")
.namespaceFormat("${SOURCE_NAMESPACE}")
.build();

CreateConnectionResponse res = sdk.connections().createConnection()
Expand All @@ -396,6 +379,37 @@ public class Application {
```
<!-- End Server Selection [server] -->

<!-- Start Debugging [debug] -->
## Debugging

### Debug
You can setup your SDK to emit debug logs for SDK requests and responses.

For request and response logging (especially json bodies), call `enableHTTPDebugLogging(boolean)` on the SDK builder like so:
```java
SDK.builder()
.enableHTTPDebugLogging(true)
.build();
```
Example output:
```
Sending request: http://localhost:35123/bearer#global GET
Request headers: {Accept=[application/json], Authorization=[******], Client-Level-Header=[added by client], Idempotency-Key=[some-key], x-speakeasy-user-agent=[speakeasy-sdk/java 0.0.1 internal 0.1.0 org.openapis.openapi]}
Received response: (GET http://localhost:35123/bearer#global) 200
Response headers: {access-control-allow-credentials=[true], access-control-allow-origin=[*], connection=[keep-alive], content-length=[50], content-type=[application/json], date=[Wed, 09 Apr 2025 01:43:29 GMT], server=[gunicorn/19.9.0]}
Response body:
{
"authenticated": true,
"token": "global"
}
```
__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`.

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

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

<!-- Placeholder for Future Speakeasy SDK Sections -->

# Development
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -1201,4 +1201,14 @@ Based on:
### Generated
- [java v2.0.0] .
### Releases
- [Maven Central v2.0.0] https://central.sonatype.com/artifact/com.airbyte/api/2.0.0 - .
- [Maven Central v2.0.0] https://central.sonatype.com/artifact/com.airbyte/api/2.0.0 - .

## 2025-07-15 00:20:23
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.581.2 (2.656.9) https://github.com/speakeasy-api/speakeasy
### Generated
- [java v2.1.0] .
### Releases
- [Maven Central v2.1.0] https://central.sonatype.com/artifact/com.airbyte/api/2.1.0 - .
1 change: 1 addition & 0 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public class Application {
.destinationId("e478de0d-a3a0-475c-b019-25f7dd29e281")
.sourceId("95e66a59-8045-4307-9678-63bc3c9b8c93")
.name("Postgres-to-Bigquery")
.namespaceFormat("${SOURCE_NAMESPACE}")
.build();

CreateConnectionResponse res = sdk.connections().createConnection()
Expand Down
14 changes: 10 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ repositories {
}

java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
withSourcesJar()
withJavadocJar()
}
Expand Down Expand Up @@ -65,6 +63,10 @@ tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}

tasks.withType(JavaCompile).configureEach {
options.release = 11
}

sourcesJar {
archiveBaseName = "${artifactId}"
}
Expand Down Expand Up @@ -103,11 +105,15 @@ publishing {
// https://github.com/gradle/gradle/issues/18619
groupId = "com.airbyte"
artifactId = "api"
version = "2.0.0"
version = "2.1.0"

from components.java

pom {
properties = [
'maven.compiler.source': '11',
'maven.compiler.target': '11',
]
name = 'Airbyte Java SDK'
description = 'SDK enabling Java developers to easily integrate with the Airbyte API.'
url = 'https://github.com/airbytehq/airbyte-api-java-sdk'
Expand Down Expand Up @@ -157,4 +163,4 @@ dependencies {
implementation 'commons-io:commons-io:2.18.0'
}

apply from: 'build-extras.gradle'
apply from: 'build-extras.gradle'
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# CreateOrUpdateOrganizationOAuthCredentialsRequest


## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
| `organizationOAuthCredentialsRequest` | [OrganizationOAuthCredentialsRequest](../../models/shared/OrganizationOAuthCredentialsRequest.md) | :heavy_check_mark: | N/A |
| `organizationId` | *String* | :heavy_check_mark: | N/A |
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# CreateOrUpdateOrganizationOAuthCredentialsResponse


## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ |
| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation |
| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
| `rawResponse` | [HttpResponse\<InputStream>](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
Loading