mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-21 04:39:06 +00:00
Updated API
This commit is contained in:
@@ -285,6 +285,14 @@ export class DefaultApi extends runtime.BaseAPI {
|
|||||||
|
|
||||||
const headerParameters: runtime.HTTPHeaders = {};
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
// oauth required
|
||||||
|
headerParameters["Authorization"] = await this.configuration.accessToken(
|
||||||
|
"OAuth2AuthorizationCodeBearer",
|
||||||
|
[],
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
const response = await this.request(
|
const response = await this.request(
|
||||||
{
|
{
|
||||||
path: `/v1/transcripts/{transcript_id}/audio`.replace(
|
path: `/v1/transcripts/{transcript_id}/audio`.replace(
|
||||||
@@ -340,6 +348,14 @@ export class DefaultApi extends runtime.BaseAPI {
|
|||||||
|
|
||||||
const headerParameters: runtime.HTTPHeaders = {};
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
// oauth required
|
||||||
|
headerParameters["Authorization"] = await this.configuration.accessToken(
|
||||||
|
"OAuth2AuthorizationCodeBearer",
|
||||||
|
[],
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
const response = await this.request(
|
const response = await this.request(
|
||||||
{
|
{
|
||||||
path: `/v1/transcripts/{transcript_id}/audio/mp3`.replace(
|
path: `/v1/transcripts/{transcript_id}/audio/mp3`.replace(
|
||||||
@@ -395,6 +411,14 @@ export class DefaultApi extends runtime.BaseAPI {
|
|||||||
|
|
||||||
const headerParameters: runtime.HTTPHeaders = {};
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
// oauth required
|
||||||
|
headerParameters["Authorization"] = await this.configuration.accessToken(
|
||||||
|
"OAuth2AuthorizationCodeBearer",
|
||||||
|
[],
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
const response = await this.request(
|
const response = await this.request(
|
||||||
{
|
{
|
||||||
path: `/v1/transcripts/{transcript_id}/topics`.replace(
|
path: `/v1/transcripts/{transcript_id}/topics`.replace(
|
||||||
@@ -517,6 +541,14 @@ export class DefaultApi extends runtime.BaseAPI {
|
|||||||
|
|
||||||
headerParameters["Content-Type"] = "application/json";
|
headerParameters["Content-Type"] = "application/json";
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
// oauth required
|
||||||
|
headerParameters["Authorization"] = await this.configuration.accessToken(
|
||||||
|
"OAuth2AuthorizationCodeBearer",
|
||||||
|
[],
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
const response = await this.request(
|
const response = await this.request(
|
||||||
{
|
{
|
||||||
path: `/v1/transcripts/{transcript_id}/record/webrtc`.replace(
|
path: `/v1/transcripts/{transcript_id}/record/webrtc`.replace(
|
||||||
|
|||||||
@@ -49,6 +49,12 @@ export interface GetTranscript {
|
|||||||
* @memberof GetTranscript
|
* @memberof GetTranscript
|
||||||
*/
|
*/
|
||||||
duration: any | null;
|
duration: any | null;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {any}
|
||||||
|
* @memberof GetTranscript
|
||||||
|
*/
|
||||||
|
summary: any | null;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {any}
|
* @type {any}
|
||||||
@@ -67,6 +73,7 @@ export function instanceOfGetTranscript(value: object): boolean {
|
|||||||
isInstance = isInstance && "status" in value;
|
isInstance = isInstance && "status" in value;
|
||||||
isInstance = isInstance && "locked" in value;
|
isInstance = isInstance && "locked" in value;
|
||||||
isInstance = isInstance && "duration" in value;
|
isInstance = isInstance && "duration" in value;
|
||||||
|
isInstance = isInstance && "summary" in value;
|
||||||
isInstance = isInstance && "createdAt" in value;
|
isInstance = isInstance && "createdAt" in value;
|
||||||
|
|
||||||
return isInstance;
|
return isInstance;
|
||||||
@@ -89,6 +96,7 @@ export function GetTranscriptFromJSONTyped(
|
|||||||
status: json["status"],
|
status: json["status"],
|
||||||
locked: json["locked"],
|
locked: json["locked"],
|
||||||
duration: json["duration"],
|
duration: json["duration"],
|
||||||
|
summary: json["summary"],
|
||||||
createdAt: json["created_at"],
|
createdAt: json["created_at"],
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -106,6 +114,7 @@ export function GetTranscriptToJSON(value?: GetTranscript | null): any {
|
|||||||
status: value.status,
|
status: value.status,
|
||||||
locked: value.locked,
|
locked: value.locked,
|
||||||
duration: value.duration,
|
duration: value.duration,
|
||||||
|
summary: value.summary,
|
||||||
created_at: value.createdAt,
|
created_at: value.createdAt,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,6 +31,12 @@ export interface UpdateTranscript {
|
|||||||
* @memberof UpdateTranscript
|
* @memberof UpdateTranscript
|
||||||
*/
|
*/
|
||||||
locked?: any | null;
|
locked?: any | null;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {any}
|
||||||
|
* @memberof UpdateTranscript
|
||||||
|
*/
|
||||||
|
summary?: any | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -56,6 +62,7 @@ export function UpdateTranscriptFromJSONTyped(
|
|||||||
return {
|
return {
|
||||||
name: !exists(json, "name") ? undefined : json["name"],
|
name: !exists(json, "name") ? undefined : json["name"],
|
||||||
locked: !exists(json, "locked") ? undefined : json["locked"],
|
locked: !exists(json, "locked") ? undefined : json["locked"],
|
||||||
|
summary: !exists(json, "summary") ? undefined : json["summary"],
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -69,5 +76,6 @@ export function UpdateTranscriptToJSON(value?: UpdateTranscript | null): any {
|
|||||||
return {
|
return {
|
||||||
name: value.name,
|
name: value.name,
|
||||||
locked: value.locked,
|
locked: value.locked,
|
||||||
|
summary: value.summary,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user