Skip to content
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
"enable-wire-tests": true,
"publish-to": "central"
},
"originGitCommit": "8c63b16b085fcf9b05835232378d834802257e7a",
"originGitCommit": "c61889b06b6ef367f5e7d6aef5f2b8cbca390aa7",
"originGitCommitIsDirty": true,
"invokedBy": "ci",
"requestedVersion": "AUTO",
"ciProvider": "unknown",
"sdkVersion": "17.9.2"
}
"sdkVersion": "17.9.3"
}
8 changes: 7 additions & 1 deletion .fern/replay.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ java {

group = 'com.phenoml.maven'

version = '17.9.2'
version = '17.9.3'

jar {
dependsOn(":generatePomFileForMavenPublication")
Expand Down Expand Up @@ -89,7 +89,7 @@ publishing {
maven(MavenPublication) {
groupId = 'com.phenoml.maven'
artifactId = 'phenoml-java-sdk'
version = '17.9.2'
version = '17.9.3'
from components.java
pom {
name = 'phenoml'
Expand Down
4 changes: 2 additions & 2 deletions code-examples.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"metadata": {
"language": "java",
"packageName": "com.phenoml.maven:phenoml-java-sdk",
"sdkVersion": "17.9.2",
"specCommit": "8c63b16b085fcf9b05835232378d834802257e7a",
"sdkVersion": "17.9.3",
"specCommit": "c61889b06b6ef367f5e7d6aef5f2b8cbca390aa7",
"generatorName": "fernapi/fern-java-sdk"
},
"renderRules": {
Expand Down
2 changes: 1 addition & 1 deletion reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -1171,7 +1171,7 @@ client.agent().prompts().patch(
OAuth 2.0 client credentials token endpoint (RFC 6749 §4.4).
Accepts client_id and client_secret in the request body (JSON or
form-encoded) or via Basic Auth header (RFC 6749 §2.3.1), and
returns an access token with expiration information.
returns an access token with token expiration information.
</dd>
</dl>
</dd>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/phenoml/api/core/ClientOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ private ClientOptions(
this.headers.putAll(headers);
this.headers.putAll(new HashMap<String, String>() {
{
put("User-Agent", "com.phenoml.maven.phenoml-java-sdk/17.9.2");
put("User-Agent", "com.phenoml.maven.phenoml-java-sdk/17.9.3");
put("X-Fern-Language", "JAVA");
put("X-Fern-SDK-Name", "com.phenoml.fern:api-sdk");
put("X-Fern-SDK-Version", "17.9.2");
put("X-Fern-SDK-Version", "17.9.3");
}
});
this.headerSuppliers = headerSuppliers;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public AsyncRawAuthtokenClient withRawResponse() {
* OAuth 2.0 client credentials token endpoint (RFC 6749 §4.4).
* Accepts client_id and client_secret in the request body (JSON or
* form-encoded) or via Basic Auth header (RFC 6749 §2.3.1), and
* returns an access token with expiration information.
* returns an access token with token expiration information.
*/
public CompletableFuture<TokenResponse> getToken() {
return this.rawClient.getToken().thenApply(response -> response.body());
Expand All @@ -40,7 +40,7 @@ public CompletableFuture<TokenResponse> getToken() {
* OAuth 2.0 client credentials token endpoint (RFC 6749 §4.4).
* Accepts client_id and client_secret in the request body (JSON or
* form-encoded) or via Basic Auth header (RFC 6749 §2.3.1), and
* returns an access token with expiration information.
* returns an access token with token expiration information.
*/
public CompletableFuture<TokenResponse> getToken(RequestOptions requestOptions) {
return this.rawClient.getToken(requestOptions).thenApply(response -> response.body());
Expand All @@ -50,7 +50,7 @@ public CompletableFuture<TokenResponse> getToken(RequestOptions requestOptions)
* OAuth 2.0 client credentials token endpoint (RFC 6749 §4.4).
* Accepts client_id and client_secret in the request body (JSON or
* form-encoded) or via Basic Auth header (RFC 6749 §2.3.1), and
* returns an access token with expiration information.
* returns an access token with token expiration information.
*/
public CompletableFuture<TokenResponse> getToken(ClientCredentialsRequest request) {
return this.rawClient.getToken(request).thenApply(response -> response.body());
Expand All @@ -60,7 +60,7 @@ public CompletableFuture<TokenResponse> getToken(ClientCredentialsRequest reques
* OAuth 2.0 client credentials token endpoint (RFC 6749 §4.4).
* Accepts client_id and client_secret in the request body (JSON or
* form-encoded) or via Basic Auth header (RFC 6749 §2.3.1), and
* returns an access token with expiration information.
* returns an access token with token expiration information.
*/
public CompletableFuture<TokenResponse> getToken(ClientCredentialsRequest request, RequestOptions requestOptions) {
return this.rawClient.getToken(request, requestOptions).thenApply(response -> response.body());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public AsyncRawAuthtokenClient(ClientOptions clientOptions) {
* OAuth 2.0 client credentials token endpoint (RFC 6749 §4.4).
* Accepts client_id and client_secret in the request body (JSON or
* form-encoded) or via Basic Auth header (RFC 6749 §2.3.1), and
* returns an access token with expiration information.
* returns an access token with token expiration information.
*/
public CompletableFuture<PhenomlClientHttpResponse<TokenResponse>> getToken() {
return getToken(ClientCredentialsRequest.builder().build());
Expand All @@ -51,7 +51,7 @@ public CompletableFuture<PhenomlClientHttpResponse<TokenResponse>> getToken() {
* OAuth 2.0 client credentials token endpoint (RFC 6749 §4.4).
* Accepts client_id and client_secret in the request body (JSON or
* form-encoded) or via Basic Auth header (RFC 6749 §2.3.1), and
* returns an access token with expiration information.
* returns an access token with token expiration information.
*/
public CompletableFuture<PhenomlClientHttpResponse<TokenResponse>> getToken(RequestOptions requestOptions) {
return getToken(ClientCredentialsRequest.builder().build(), requestOptions);
Expand All @@ -61,7 +61,7 @@ public CompletableFuture<PhenomlClientHttpResponse<TokenResponse>> getToken(Requ
* OAuth 2.0 client credentials token endpoint (RFC 6749 §4.4).
* Accepts client_id and client_secret in the request body (JSON or
* form-encoded) or via Basic Auth header (RFC 6749 §2.3.1), and
* returns an access token with expiration information.
* returns an access token with token expiration information.
*/
public CompletableFuture<PhenomlClientHttpResponse<TokenResponse>> getToken(ClientCredentialsRequest request) {
return getToken(request, null);
Expand All @@ -71,7 +71,7 @@ public CompletableFuture<PhenomlClientHttpResponse<TokenResponse>> getToken(Clie
* OAuth 2.0 client credentials token endpoint (RFC 6749 §4.4).
* Accepts client_id and client_secret in the request body (JSON or
* form-encoded) or via Basic Auth header (RFC 6749 §2.3.1), and
* returns an access token with expiration information.
* returns an access token with token expiration information.
*/
public CompletableFuture<PhenomlClientHttpResponse<TokenResponse>> getToken(
ClientCredentialsRequest request, RequestOptions requestOptions) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public RawAuthtokenClient withRawResponse() {
* OAuth 2.0 client credentials token endpoint (RFC 6749 §4.4).
* Accepts client_id and client_secret in the request body (JSON or
* form-encoded) or via Basic Auth header (RFC 6749 §2.3.1), and
* returns an access token with expiration information.
* returns an access token with token expiration information.
*/
public TokenResponse getToken() {
return this.rawClient.getToken().body();
Expand All @@ -39,7 +39,7 @@ public TokenResponse getToken() {
* OAuth 2.0 client credentials token endpoint (RFC 6749 §4.4).
* Accepts client_id and client_secret in the request body (JSON or
* form-encoded) or via Basic Auth header (RFC 6749 §2.3.1), and
* returns an access token with expiration information.
* returns an access token with token expiration information.
*/
public TokenResponse getToken(RequestOptions requestOptions) {
return this.rawClient.getToken(requestOptions).body();
Expand All @@ -49,7 +49,7 @@ public TokenResponse getToken(RequestOptions requestOptions) {
* OAuth 2.0 client credentials token endpoint (RFC 6749 §4.4).
* Accepts client_id and client_secret in the request body (JSON or
* form-encoded) or via Basic Auth header (RFC 6749 §2.3.1), and
* returns an access token with expiration information.
* returns an access token with token expiration information.
*/
public TokenResponse getToken(ClientCredentialsRequest request) {
return this.rawClient.getToken(request).body();
Expand All @@ -59,7 +59,7 @@ public TokenResponse getToken(ClientCredentialsRequest request) {
* OAuth 2.0 client credentials token endpoint (RFC 6749 §4.4).
* Accepts client_id and client_secret in the request body (JSON or
* form-encoded) or via Basic Auth header (RFC 6749 §2.3.1), and
* returns an access token with expiration information.
* returns an access token with token expiration information.
*/
public TokenResponse getToken(ClientCredentialsRequest request, RequestOptions requestOptions) {
return this.rawClient.getToken(request, requestOptions).body();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public RawAuthtokenClient(ClientOptions clientOptions) {
* OAuth 2.0 client credentials token endpoint (RFC 6749 §4.4).
* Accepts client_id and client_secret in the request body (JSON or
* form-encoded) or via Basic Auth header (RFC 6749 §2.3.1), and
* returns an access token with expiration information.
* returns an access token with token expiration information.
*/
public PhenomlClientHttpResponse<TokenResponse> getToken() {
return getToken(ClientCredentialsRequest.builder().build());
Expand All @@ -47,7 +47,7 @@ public PhenomlClientHttpResponse<TokenResponse> getToken() {
* OAuth 2.0 client credentials token endpoint (RFC 6749 §4.4).
* Accepts client_id and client_secret in the request body (JSON or
* form-encoded) or via Basic Auth header (RFC 6749 §2.3.1), and
* returns an access token with expiration information.
* returns an access token with token expiration information.
*/
public PhenomlClientHttpResponse<TokenResponse> getToken(RequestOptions requestOptions) {
return getToken(ClientCredentialsRequest.builder().build(), requestOptions);
Expand All @@ -57,7 +57,7 @@ public PhenomlClientHttpResponse<TokenResponse> getToken(RequestOptions requestO
* OAuth 2.0 client credentials token endpoint (RFC 6749 §4.4).
* Accepts client_id and client_secret in the request body (JSON or
* form-encoded) or via Basic Auth header (RFC 6749 §2.3.1), and
* returns an access token with expiration information.
* returns an access token with token expiration information.
*/
public PhenomlClientHttpResponse<TokenResponse> getToken(ClientCredentialsRequest request) {
return getToken(request, null);
Expand All @@ -67,7 +67,7 @@ public PhenomlClientHttpResponse<TokenResponse> getToken(ClientCredentialsReques
* OAuth 2.0 client credentials token endpoint (RFC 6749 §4.4).
* Accepts client_id and client_secret in the request body (JSON or
* form-encoded) or via Basic Auth header (RFC 6749 §2.3.1), and
* returns an access token with expiration information.
* returns an access token with token expiration information.
*/
public PhenomlClientHttpResponse<TokenResponse> getToken(
ClientCredentialsRequest request, RequestOptions requestOptions) {
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/openapi/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"openapi": "3.0.3",
"info": {
"title": "Phenoml API",
"version": "8c63b16b085fcf9b05835232378d834802257e7a"
"version": "c61889b06b6ef367f5e7d6aef5f2b8cbca390aa7"
},
"x-services": [
{
Expand Down Expand Up @@ -1448,7 +1448,7 @@
"post": {
"operationId": "authtoken_getToken",
"summary": "Request an access token",
"description": "OAuth 2.0 client credentials token endpoint (RFC 6749 \u00a74.4).\nAccepts client_id and client_secret in the request body (JSON or\nform-encoded) or via Basic Auth header (RFC 6749 \u00a72.3.1), and\nreturns an access token with expiration information.\n",
"description": "OAuth 2.0 client credentials token endpoint (RFC 6749 \u00a74.4).\nAccepts client_id and client_secret in the request body (JSON or\nform-encoded) or via Basic Auth header (RFC 6749 \u00a72.3.1), and\nreturns an access token with token expiration information.\n",
"security": [
{
"BasicAuth": []
Expand Down