Skip to content

Commit

Permalink
SDK regeneration
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Aug 23, 2024
1 parent abae7c4 commit b7dcf67
Show file tree
Hide file tree
Showing 8 changed files with 601 additions and 443 deletions.
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ repositories {

dependencies {
api 'com.squareup.okhttp3:okhttp:4.12.0'
api 'com.fasterxml.jackson.core:jackson-databind:2.17.2'
api 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.17.2'
api 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.17.2'
api 'com.fasterxml.jackson.core:jackson-databind:2.13.0'
api 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.12.3'
api 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.12.3'
implementation 'javax.websocket:javax.websocket-api:1.1'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
Expand Down Expand Up @@ -47,7 +47,7 @@ publishing {
maven(MavenPublication) {
groupId = 'com.assemblyai'
artifactId = 'assemblyai-java'
version = '2.2.0'
version = '2.3.0'
from components.java
pom {
scm {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,16 +277,14 @@ public Transcript get(String transcriptId, RequestOptions requestOptions) {
}

/**
* Delete the transcript.
* Deleting does not delete the resource itself, but removes the data from the resource and marks it as deleted.
* Remove the data from the transcript and mark it as deleted.
*/
public Transcript delete(String transcriptId) {
return delete(transcriptId, null);
}

/**
* Delete the transcript.
* Deleting does not delete the resource itself, but removes the data from the resource and marks it as deleted.
* Remove the data from the transcript and mark it as deleted.
*/
public Transcript delete(String transcriptId, RequestOptions requestOptions) {
HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
@JsonInclude(JsonInclude.Include.NON_ABSENT)
@JsonDeserialize(builder = ListTranscriptParams.Builder.class)
public final class ListTranscriptParams {
private final Optional<Integer> limit;
private final Optional<Long> limit;

private final Optional<TranscriptStatus> status;

Expand All @@ -36,7 +36,7 @@ public final class ListTranscriptParams {
private final Map<String, Object> additionalProperties;

private ListTranscriptParams(
Optional<Integer> limit,
Optional<Long> limit,
Optional<TranscriptStatus> status,
Optional<String> createdOn,
Optional<String> beforeId,
Expand All @@ -56,7 +56,7 @@ private ListTranscriptParams(
* @return Maximum amount of transcripts to retrieve
*/
@JsonProperty("limit")
public Optional<Integer> getLimit() {
public Optional<Long> getLimit() {
return limit;
}

Expand Down Expand Up @@ -136,7 +136,7 @@ public static Builder builder() {

@JsonIgnoreProperties(ignoreUnknown = true)
public static final class Builder {
private Optional<Integer> limit = Optional.empty();
private Optional<Long> limit = Optional.empty();

private Optional<TranscriptStatus> status = Optional.empty();

Expand Down Expand Up @@ -164,12 +164,12 @@ public Builder from(ListTranscriptParams other) {
}

@JsonSetter(value = "limit", nulls = Nulls.SKIP)
public Builder limit(Optional<Integer> limit) {
public Builder limit(Optional<Long> limit) {
this.limit = limit;
return this;
}

public Builder limit(Integer limit) {
public Builder limit(Long limit) {
this.limit = Optional.ofNullable(limit);
return this;
}
Expand Down
Loading

0 comments on commit b7dcf67

Please sign in to comment.