diff --git a/build.gradle b/build.gradle index b74d985..e02552e 100644 --- a/build.gradle +++ b/build.gradle @@ -47,7 +47,7 @@ java { group = 'com.phenoml.maven' -version = '10.2.0' +version = '10.2.1' jar { dependsOn(":generatePomFileForMavenPublication") @@ -78,7 +78,7 @@ publishing { maven(MavenPublication) { groupId = 'com.phenoml.maven' artifactId = 'phenoml-java-sdk' - version = '10.2.0' + version = '10.2.1' from components.java pom { name = 'phenoml' diff --git a/changelog.md b/changelog.md index 9a2aa62..41b1c02 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,14 @@ +## 10.2.1 - 2026-03-23 +* docs: update AuthGenerateTokenRequest field documentation +* Clarify the purpose of username and password fields in AuthGenerateTokenRequest +* to better reflect their actual usage as API credential client ID and secret +* rather than user credentials. +* Key changes: +* Update username field documentation to indicate it represents API credential client ID +* Update password field documentation to indicate it represents API credential client secret +* Clarify builder method documentation for both fields +* 🌿 Generated with Fern + ## 10.2.0 - 2026-03-17 * The SDK now supports MEDITECH as a new FHIR provider option. Use `Provider.MEDITECH` to configure MEDITECH provider integrations. diff --git a/reference.md b/reference.md index 944c1a1..77a8f53 100644 --- a/reference.md +++ b/reference.md @@ -1236,7 +1236,7 @@ client.authtoken().auth().generateToken(
-**username:** `String` — The user's username or email +**username:** `String` — The API credential client ID
@@ -1244,7 +1244,7 @@ client.authtoken().auth().generateToken(
-**password:** `String` — The user's password +**password:** `String` — The API credential client secret
diff --git a/src/main/java/com/phenoml/api/core/ClientOptions.java b/src/main/java/com/phenoml/api/core/ClientOptions.java index 7741a40..16535ea 100644 --- a/src/main/java/com/phenoml/api/core/ClientOptions.java +++ b/src/main/java/com/phenoml/api/core/ClientOptions.java @@ -32,10 +32,10 @@ private ClientOptions( this.headers.putAll(headers); this.headers.putAll(new HashMap() { { - put("User-Agent", "com.phenoml.maven:phenoml-java-sdk/10.2.0"); + put("User-Agent", "com.phenoml.maven:phenoml-java-sdk/10.2.1"); put("X-Fern-Language", "JAVA"); put("X-Fern-SDK-Name", "com.phenoml.fern:api-sdk"); - put("X-Fern-SDK-Version", "10.2.0"); + put("X-Fern-SDK-Version", "10.2.1"); } }); this.headerSuppliers = headerSuppliers; diff --git a/src/main/java/com/phenoml/api/resources/authtoken/auth/requests/AuthGenerateTokenRequest.java b/src/main/java/com/phenoml/api/resources/authtoken/auth/requests/AuthGenerateTokenRequest.java index 3220962..7ee23fa 100644 --- a/src/main/java/com/phenoml/api/resources/authtoken/auth/requests/AuthGenerateTokenRequest.java +++ b/src/main/java/com/phenoml/api/resources/authtoken/auth/requests/AuthGenerateTokenRequest.java @@ -32,7 +32,7 @@ private AuthGenerateTokenRequest(String username, String password, MapThe user's username or email

+ *

The API credential client ID

*/ PasswordStage username(@NotNull String username); @@ -87,7 +87,7 @@ public interface UsernameStage { public interface PasswordStage { /** - *

The user's password

+ *

The API credential client secret

*/ _FinalStage password(@NotNull String password); } @@ -115,8 +115,8 @@ public Builder from(AuthGenerateTokenRequest other) { } /** - *

The user's username or email

- *

The user's username or email

+ *

The API credential client ID

+ *

The API credential client ID

* @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -127,8 +127,8 @@ public PasswordStage username(@NotNull String username) { } /** - *

The user's password

- *

The user's password

+ *

The API credential client secret

+ *

The API credential client secret

* @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override