Skip to content

Commit 7c3ad33

Browse files
Merge pull request #256 from skyflowapi/saileshwar/SK-2385-update-generated-code-with-updated-spec-file
SK-2385 update generated code with updated spec file
2 parents da31806 + e36927e commit 7c3ad33

File tree

128 files changed

+8394
-5663
lines changed

Some content is hidden

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

128 files changed

+8394
-5663
lines changed

src/main/java/com/skyflow/VaultClient.java

Lines changed: 201 additions & 178 deletions
Large diffs are not rendered by default.

src/main/java/com/skyflow/enums/DetectOutputTranscriptions.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ public enum DetectOutputTranscriptions {
44
DIARIZED_TRANSCRIPTION("diarized_transcription"),
55
MEDICAL_DIARIZED_TRANSCRIPTION("medical_diarized_transcription"),
66
MEDICAL_TRANSCRIPTION("medical_transcription"),
7-
PLAINTEXT_TRANSCRIPTION("plaintext_transcription"),
87
TRANSCRIPTION("transcription");
98

109
private final String detectOutputTranscriptions;

src/main/java/com/skyflow/generated/rest/ApiClient.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ public class ApiClient {
3131

3232
protected final Supplier<AuthenticationClient> authenticationClient;
3333

34-
protected final Supplier<GuardrailsClient> guardrailsClient;
34+
protected final Supplier<FilesClient> filesClient;
3535

3636
protected final Supplier<StringsClient> stringsClient;
3737

38-
protected final Supplier<FilesClient> filesClient;
38+
protected final Supplier<GuardrailsClient> guardrailsClient;
3939

4040
public ApiClient(ClientOptions clientOptions) {
4141
this.clientOptions = clientOptions;
@@ -45,9 +45,9 @@ public ApiClient(ClientOptions clientOptions) {
4545
this.tokensClient = Suppliers.memoize(() -> new TokensClient(clientOptions));
4646
this.queryClient = Suppliers.memoize(() -> new QueryClient(clientOptions));
4747
this.authenticationClient = Suppliers.memoize(() -> new AuthenticationClient(clientOptions));
48-
this.guardrailsClient = Suppliers.memoize(() -> new GuardrailsClient(clientOptions));
49-
this.stringsClient = Suppliers.memoize(() -> new StringsClient(clientOptions));
5048
this.filesClient = Suppliers.memoize(() -> new FilesClient(clientOptions));
49+
this.stringsClient = Suppliers.memoize(() -> new StringsClient(clientOptions));
50+
this.guardrailsClient = Suppliers.memoize(() -> new GuardrailsClient(clientOptions));
5151
}
5252

5353
public AuditClient audit() {
@@ -74,16 +74,16 @@ public AuthenticationClient authentication() {
7474
return this.authenticationClient.get();
7575
}
7676

77-
public GuardrailsClient guardrails() {
78-
return this.guardrailsClient.get();
77+
public FilesClient files() {
78+
return this.filesClient.get();
7979
}
8080

8181
public StringsClient strings() {
8282
return this.stringsClient.get();
8383
}
8484

85-
public FilesClient files() {
86-
return this.filesClient.get();
85+
public GuardrailsClient guardrails() {
86+
return this.guardrailsClient.get();
8787
}
8888

8989
public static ApiClientBuilder builder() {

src/main/java/com/skyflow/generated/rest/ApiClientBuilder.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,6 @@ public ApiClientBuilder httpClient(OkHttpClient httpClient) {
5757
}
5858

5959
public ApiClient build() {
60-
if (token == null) {
61-
throw new RuntimeException("Please provide token");
62-
}
6360
this.clientOptionsBuilder.addHeader("Authorization", "Bearer " + this.token);
6461
clientOptionsBuilder.environment(this.environment);
6562
return new ApiClient(clientOptionsBuilder.build());

src/main/java/com/skyflow/generated/rest/AsyncApiClient.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ public class AsyncApiClient {
3131

3232
protected final Supplier<AsyncAuthenticationClient> authenticationClient;
3333

34-
protected final Supplier<AsyncGuardrailsClient> guardrailsClient;
34+
protected final Supplier<AsyncFilesClient> filesClient;
3535

3636
protected final Supplier<AsyncStringsClient> stringsClient;
3737

38-
protected final Supplier<AsyncFilesClient> filesClient;
38+
protected final Supplier<AsyncGuardrailsClient> guardrailsClient;
3939

4040
public AsyncApiClient(ClientOptions clientOptions) {
4141
this.clientOptions = clientOptions;
@@ -45,9 +45,9 @@ public AsyncApiClient(ClientOptions clientOptions) {
4545
this.tokensClient = Suppliers.memoize(() -> new AsyncTokensClient(clientOptions));
4646
this.queryClient = Suppliers.memoize(() -> new AsyncQueryClient(clientOptions));
4747
this.authenticationClient = Suppliers.memoize(() -> new AsyncAuthenticationClient(clientOptions));
48-
this.guardrailsClient = Suppliers.memoize(() -> new AsyncGuardrailsClient(clientOptions));
49-
this.stringsClient = Suppliers.memoize(() -> new AsyncStringsClient(clientOptions));
5048
this.filesClient = Suppliers.memoize(() -> new AsyncFilesClient(clientOptions));
49+
this.stringsClient = Suppliers.memoize(() -> new AsyncStringsClient(clientOptions));
50+
this.guardrailsClient = Suppliers.memoize(() -> new AsyncGuardrailsClient(clientOptions));
5151
}
5252

5353
public AsyncAuditClient audit() {
@@ -74,16 +74,16 @@ public AsyncAuthenticationClient authentication() {
7474
return this.authenticationClient.get();
7575
}
7676

77-
public AsyncGuardrailsClient guardrails() {
78-
return this.guardrailsClient.get();
77+
public AsyncFilesClient files() {
78+
return this.filesClient.get();
7979
}
8080

8181
public AsyncStringsClient strings() {
8282
return this.stringsClient.get();
8383
}
8484

85-
public AsyncFilesClient files() {
86-
return this.filesClient.get();
85+
public AsyncGuardrailsClient guardrails() {
86+
return this.guardrailsClient.get();
8787
}
8888

8989
public static AsyncApiClientBuilder builder() {

src/main/java/com/skyflow/generated/rest/AsyncApiClientBuilder.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,6 @@ public AsyncApiClientBuilder httpClient(OkHttpClient httpClient) {
5757
}
5858

5959
public AsyncApiClient build() {
60-
if (token == null) {
61-
throw new RuntimeException("Please provide token");
62-
}
6360
this.clientOptionsBuilder.addHeader("Authorization", "Bearer " + this.token);
6461
clientOptionsBuilder.environment(this.environment);
6562
return new AsyncApiClient(clientOptionsBuilder.build());

src/main/java/com/skyflow/generated/rest/core/ClientOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ private ClientOptions(
3434
{
3535
put("X-Fern-Language", "JAVA");
3636
put("X-Fern-SDK-Name", "com.skyflow.fern:api-sdk");
37-
put("X-Fern-SDK-Version", "0.0.322");
37+
put("X-Fern-SDK-Version", "0.0.378");
3838
}
3939
});
4040
this.headerSuppliers = headerSuppliers;

0 commit comments

Comments
 (0)