Skip to content

Commit

Permalink
Merge pull request #120 from AssemblyAI/fern-bot/08-23-2024-1000PM
Browse files Browse the repository at this point in the history
🌿 Fern Regeneration -- August 23, 2024
  • Loading branch information
smithakolan authored Aug 23, 2024
2 parents abae7c4 + 9116c7a commit a0d20c7
Show file tree
Hide file tree
Showing 9 changed files with 599 additions and 441 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
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
2 changes: 1 addition & 1 deletion src/main/java/com/assemblyai/api/core/Constants.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package com.assemblyai.api.core;

public class Constants {
public static final String SDK_VERSION = "2.2.0";
public static final String SDK_VERSION = "2.3.0";
}
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 a0d20c7

Please sign in to comment.