Ability to load past meetings + URL management

This commit is contained in:
Koper
2023-09-14 23:05:13 +07:00
parent 07204ee2db
commit c9d01a9d30
13 changed files with 437 additions and 59 deletions

View File

@@ -97,6 +97,45 @@ export interface V1TranscriptsListRequest {
*
*/
export class DefaultApi extends runtime.BaseAPI {
/**
* Endpoint that serves Prometheus metrics.
* Metrics
*/
async metricsRaw(
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<runtime.ApiResponse<any>> {
const queryParameters: any = {};
const headerParameters: runtime.HTTPHeaders = {};
const response = await this.request(
{
path: `/metrics`,
method: "GET",
headers: headerParameters,
query: queryParameters,
},
initOverrides,
);
if (this.isJsonMime(response.headers.get("content-type"))) {
return new runtime.JSONApiResponse<any>(response);
} else {
return new runtime.TextApiResponse(response) as any;
}
}
/**
* Endpoint that serves Prometheus metrics.
* Metrics
*/
async metrics(
initOverrides?: RequestInit | runtime.InitOverrideFunction,
): Promise<any> {
const response = await this.metricsRaw(initOverrides);
return await response.value();
}
/**
* Rtc Offer
*/

View File

@@ -54,7 +54,19 @@ export interface GetTranscript {
* @type {any}
* @memberof GetTranscript
*/
summary: any | null;
title: any | null;
/**
*
* @type {any}
* @memberof GetTranscript
*/
shortSummary: any | null;
/**
*
* @type {any}
* @memberof GetTranscript
*/
longSummary: any | null;
/**
*
* @type {any}
@@ -85,7 +97,9 @@ export function instanceOfGetTranscript(value: object): boolean {
isInstance = isInstance && "status" in value;
isInstance = isInstance && "locked" in value;
isInstance = isInstance && "duration" in value;
isInstance = isInstance && "summary" in value;
isInstance = isInstance && "title" in value;
isInstance = isInstance && "shortSummary" in value;
isInstance = isInstance && "longSummary" in value;
isInstance = isInstance && "createdAt" in value;
isInstance = isInstance && "sourceLanguage" in value;
isInstance = isInstance && "targetLanguage" in value;
@@ -110,7 +124,9 @@ export function GetTranscriptFromJSONTyped(
status: json["status"],
locked: json["locked"],
duration: json["duration"],
summary: json["summary"],
title: json["title"],
shortSummary: json["short_summary"],
longSummary: json["long_summary"],
createdAt: json["created_at"],
sourceLanguage: json["source_language"],
targetLanguage: json["target_language"],
@@ -130,7 +146,9 @@ export function GetTranscriptToJSON(value?: GetTranscript | null): any {
status: value.status,
locked: value.locked,
duration: value.duration,
summary: value.summary,
title: value.title,
short_summary: value.shortSummary,
long_summary: value.longSummary,
created_at: value.createdAt,
source_language: value.sourceLanguage,
target_language: value.targetLanguage,

View File

@@ -36,7 +36,19 @@ export interface UpdateTranscript {
* @type {any}
* @memberof UpdateTranscript
*/
summary?: any | null;
title?: any | null;
/**
*
* @type {any}
* @memberof UpdateTranscript
*/
shortSummary?: any | null;
/**
*
* @type {any}
* @memberof UpdateTranscript
*/
longSummary?: any | null;
}
/**
@@ -62,7 +74,13 @@ export function UpdateTranscriptFromJSONTyped(
return {
name: !exists(json, "name") ? undefined : json["name"],
locked: !exists(json, "locked") ? undefined : json["locked"],
summary: !exists(json, "summary") ? undefined : json["summary"],
title: !exists(json, "title") ? undefined : json["title"],
shortSummary: !exists(json, "short_summary")
? undefined
: json["short_summary"],
longSummary: !exists(json, "long_summary")
? undefined
: json["long_summary"],
};
}
@@ -76,6 +94,8 @@ export function UpdateTranscriptToJSON(value?: UpdateTranscript | null): any {
return {
name: value.name,
locked: value.locked,
summary: value.summary,
title: value.title,
short_summary: value.shortSummary,
long_summary: value.longSummary,
};
}