Skip to content

Commit 6505ce2

Browse files
HavenDVgithub-actions[bot]
andauthored
feat: Updated OpenAPI spec (#152)
Co-authored-by: github-actions[bot] <bot@openai.com>
1 parent 8395886 commit 6505ce2

3 files changed

Lines changed: 70 additions & 10 deletions

File tree

src/libs/AssemblyAI/Generated/AssemblyAI.ITranscriptClient.ListTranscripts.g.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,27 @@ public partial interface ITranscriptClient
1111
/// Transcripts are sorted from newest to oldest and can be retrieved for the last 90 days of usage. The previous URL always points to a page with older transcripts.<br/>
1212
/// If you need to retrieve transcripts from more than 90 days ago please reach out to our Support team at support@assemblyai.com.
1313
/// </summary>
14+
/// <param name="limit">
15+
/// Default Value: 10
16+
/// </param>
1417
/// <param name="status">
1518
/// The status of your transcript. Possible values are queued, processing, completed, or error.
1619
/// </param>
20+
/// <param name="createdOn"></param>
21+
/// <param name="beforeId"></param>
22+
/// <param name="afterId"></param>
23+
/// <param name="throttledOnly">
24+
/// Default Value: false
25+
/// </param>
1726
/// <param name="cancellationToken">The token to cancel the operation with</param>
1827
/// <exception cref="global::AssemblyAI.ApiException"></exception>
1928
global::System.Threading.Tasks.Task<global::AssemblyAI.TranscriptList> ListTranscriptsAsync(
29+
int? limit = default,
2030
global::AssemblyAI.TranscriptStatus? status = default,
31+
global::System.DateTime? createdOn = default,
32+
global::System.Guid? beforeId = default,
33+
global::System.Guid? afterId = default,
34+
bool? throttledOnly = default,
2135
global::System.Threading.CancellationToken cancellationToken = default);
2236
}
2337
}

src/libs/AssemblyAI/Generated/AssemblyAI.TranscriptClient.ListTranscripts.g.cs

Lines changed: 44 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,21 @@ public partial class TranscriptClient
77
{
88
partial void PrepareListTranscriptsArguments(
99
global::System.Net.Http.HttpClient httpClient,
10-
ref global::AssemblyAI.TranscriptStatus? status);
10+
ref int? limit,
11+
ref global::AssemblyAI.TranscriptStatus? status,
12+
ref global::System.DateTime? createdOn,
13+
ref global::System.Guid? beforeId,
14+
ref global::System.Guid? afterId,
15+
ref bool? throttledOnly);
1116
partial void PrepareListTranscriptsRequest(
1217
global::System.Net.Http.HttpClient httpClient,
1318
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
14-
global::AssemblyAI.TranscriptStatus? status);
19+
int? limit,
20+
global::AssemblyAI.TranscriptStatus? status,
21+
global::System.DateTime? createdOn,
22+
global::System.Guid? beforeId,
23+
global::System.Guid? afterId,
24+
bool? throttledOnly);
1525
partial void ProcessListTranscriptsResponse(
1626
global::System.Net.Http.HttpClient httpClient,
1727
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
@@ -28,26 +38,50 @@ partial void ProcessListTranscriptsResponseContent(
2838
/// Transcripts are sorted from newest to oldest and can be retrieved for the last 90 days of usage. The previous URL always points to a page with older transcripts.<br/>
2939
/// If you need to retrieve transcripts from more than 90 days ago please reach out to our Support team at support@assemblyai.com.
3040
/// </summary>
41+
/// <param name="limit">
42+
/// Default Value: 10
43+
/// </param>
3144
/// <param name="status">
3245
/// The status of your transcript. Possible values are queued, processing, completed, or error.
3346
/// </param>
47+
/// <param name="createdOn"></param>
48+
/// <param name="beforeId"></param>
49+
/// <param name="afterId"></param>
50+
/// <param name="throttledOnly">
51+
/// Default Value: false
52+
/// </param>
3453
/// <param name="cancellationToken">The token to cancel the operation with</param>
3554
/// <exception cref="global::AssemblyAI.ApiException"></exception>
3655
public async global::System.Threading.Tasks.Task<global::AssemblyAI.TranscriptList> ListTranscriptsAsync(
56+
int? limit = default,
3757
global::AssemblyAI.TranscriptStatus? status = default,
58+
global::System.DateTime? createdOn = default,
59+
global::System.Guid? beforeId = default,
60+
global::System.Guid? afterId = default,
61+
bool? throttledOnly = default,
3862
global::System.Threading.CancellationToken cancellationToken = default)
3963
{
4064
PrepareArguments(
4165
client: HttpClient);
4266
PrepareListTranscriptsArguments(
4367
httpClient: HttpClient,
44-
status: ref status);
68+
limit: ref limit,
69+
status: ref status,
70+
createdOn: ref createdOn,
71+
beforeId: ref beforeId,
72+
afterId: ref afterId,
73+
throttledOnly: ref throttledOnly);
4574

4675
var __pathBuilder = new global::AssemblyAI.PathBuilder(
4776
path: "/v2/transcript",
4877
baseUri: HttpClient.BaseAddress);
4978
__pathBuilder
50-
.AddOptionalParameter("status", status?.ToValueString())
79+
.AddOptionalParameter("limit", limit?.ToString())
80+
.AddOptionalParameter("status", status?.ToValueString())
81+
.AddOptionalParameter("created_on", createdOn?.ToString("yyyy-MM-dd"))
82+
.AddOptionalParameter("before_id", beforeId?.ToString())
83+
.AddOptionalParameter("after_id", afterId?.ToString())
84+
.AddOptionalParameter("throttled_only", throttledOnly?.ToString())
5185
;
5286
var __path = __pathBuilder.ToString();
5387
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
@@ -80,7 +114,12 @@ partial void ProcessListTranscriptsResponseContent(
80114
PrepareListTranscriptsRequest(
81115
httpClient: HttpClient,
82116
httpRequestMessage: __httpRequest,
83-
status: status);
117+
limit: limit,
118+
status: status,
119+
createdOn: createdOn,
120+
beforeId: beforeId,
121+
afterId: afterId,
122+
throttledOnly: throttledOnly);
84123

85124
using var __response = await HttpClient.SendAsync(
86125
request: __httpRequest,

src/libs/AssemblyAI/openapi.yaml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,10 @@ paths:
186186
in: query
187187
description: Maximum amount of transcripts to retrieve
188188
schema:
189-
$ref: "#/components/schemas/ListTranscriptParams/properties/limit"
189+
type: integer
190+
minimum: 1
191+
maximum: 200
192+
default: 10
190193
- name: status
191194
x-label: Status
192195
in: query
@@ -201,28 +204,32 @@ paths:
201204
in: query
202205
description: Only get transcripts created on this date
203206
schema:
204-
$ref: "#/components/schemas/ListTranscriptParams/properties/created_on"
207+
type: string
208+
format: date
205209

206210
- name: before_id
207211
x-label: Before ID
208212
in: query
209213
description: Get transcripts that were created before this transcript ID
210214
schema:
211-
$ref: "#/components/schemas/ListTranscriptParams/properties/before_id"
215+
type: string
216+
format: uuid
212217

213218
- name: after_id
214219
x-label: After ID
215220
in: query
216221
description: Get transcripts that were created after this transcript ID
217222
schema:
218-
$ref: "#/components/schemas/ListTranscriptParams/properties/after_id"
223+
type: string
224+
format: uuid
219225

220226
- name: throttled_only
221227
x-label: Throttled only
222228
in: query
223229
description: Only get throttled transcripts, overrides the status filter
224230
schema:
225-
$ref: "#/components/schemas/ListTranscriptParams/properties/throttled_only"
231+
type: boolean
232+
default: false
226233
deprecated: true
227234
responses:
228235
"200":

0 commit comments

Comments
 (0)