Skip to content

Commit a0d20c7

Browse files
authored
Merge pull request #120 from AssemblyAI/fern-bot/08-23-2024-1000PM
🌿 Fern Regeneration -- August 23, 2024
2 parents abae7c4 + 9116c7a commit a0d20c7

9 files changed

+599
-441
lines changed

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ publishing {
4747
maven(MavenPublication) {
4848
groupId = 'com.assemblyai'
4949
artifactId = 'assemblyai-java'
50-
version = '2.2.0'
50+
version = '2.3.0'
5151
from components.java
5252
pom {
5353
scm {
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
package com.assemblyai.api.core;
22

33
public class Constants {
4-
public static final String SDK_VERSION = "2.2.0";
4+
public static final String SDK_VERSION = "2.3.0";
55
}

src/main/java/com/assemblyai/api/resources/transcripts/TranscriptsClient.java

+2-4
Original file line numberDiff line numberDiff line change
@@ -277,16 +277,14 @@ public Transcript get(String transcriptId, RequestOptions requestOptions) {
277277
}
278278

279279
/**
280-
* Delete the transcript.
281-
* Deleting does not delete the resource itself, but removes the data from the resource and marks it as deleted.
280+
* Remove the data from the transcript and mark it as deleted.
282281
*/
283282
public Transcript delete(String transcriptId) {
284283
return delete(transcriptId, null);
285284
}
286285

287286
/**
288-
* Delete the transcript.
289-
* Deleting does not delete the resource itself, but removes the data from the resource and marks it as deleted.
287+
* Remove the data from the transcript and mark it as deleted.
290288
*/
291289
public Transcript delete(String transcriptId, RequestOptions requestOptions) {
292290
HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl())

src/main/java/com/assemblyai/api/resources/transcripts/requests/ListTranscriptParams.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
@JsonInclude(JsonInclude.Include.NON_ABSENT)
2222
@JsonDeserialize(builder = ListTranscriptParams.Builder.class)
2323
public final class ListTranscriptParams {
24-
private final Optional<Integer> limit;
24+
private final Optional<Long> limit;
2525

2626
private final Optional<TranscriptStatus> status;
2727

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

3838
private ListTranscriptParams(
39-
Optional<Integer> limit,
39+
Optional<Long> limit,
4040
Optional<TranscriptStatus> status,
4141
Optional<String> createdOn,
4242
Optional<String> beforeId,
@@ -56,7 +56,7 @@ private ListTranscriptParams(
5656
* @return Maximum amount of transcripts to retrieve
5757
*/
5858
@JsonProperty("limit")
59-
public Optional<Integer> getLimit() {
59+
public Optional<Long> getLimit() {
6060
return limit;
6161
}
6262

@@ -136,7 +136,7 @@ public static Builder builder() {
136136

137137
@JsonIgnoreProperties(ignoreUnknown = true)
138138
public static final class Builder {
139-
private Optional<Integer> limit = Optional.empty();
139+
private Optional<Long> limit = Optional.empty();
140140

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

@@ -164,12 +164,12 @@ public Builder from(ListTranscriptParams other) {
164164
}
165165

166166
@JsonSetter(value = "limit", nulls = Nulls.SKIP)
167-
public Builder limit(Optional<Integer> limit) {
167+
public Builder limit(Optional<Long> limit) {
168168
this.limit = limit;
169169
return this;
170170
}
171171

172-
public Builder limit(Integer limit) {
172+
public Builder limit(Long limit) {
173173
this.limit = Optional.ofNullable(limit);
174174
return this;
175175
}

0 commit comments

Comments
 (0)