mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 20:29:06 +00:00
slop review
This commit is contained in:
@@ -548,6 +548,18 @@ export const $Meeting = {
|
||||
title: "Meeting",
|
||||
} as const;
|
||||
|
||||
export const $MeetingConsentRequest = {
|
||||
properties: {
|
||||
consent_given: {
|
||||
type: "boolean",
|
||||
title: "Consent Given",
|
||||
},
|
||||
},
|
||||
type: "object",
|
||||
required: ["consent_given"],
|
||||
title: "MeetingConsentRequest",
|
||||
} as const;
|
||||
|
||||
export const $Page_GetTranscript_ = {
|
||||
properties: {
|
||||
items: {
|
||||
@@ -1166,6 +1178,35 @@ export const $ValidationError = {
|
||||
title: "ValidationError",
|
||||
} as const;
|
||||
|
||||
export const $WherebyWebhookEvent = {
|
||||
properties: {
|
||||
apiVersion: {
|
||||
type: "string",
|
||||
title: "Apiversion",
|
||||
},
|
||||
id: {
|
||||
type: "string",
|
||||
title: "Id",
|
||||
},
|
||||
createdAt: {
|
||||
type: "string",
|
||||
format: "date-time",
|
||||
title: "Createdat",
|
||||
},
|
||||
type: {
|
||||
type: "string",
|
||||
title: "Type",
|
||||
},
|
||||
data: {
|
||||
type: "object",
|
||||
title: "Data",
|
||||
},
|
||||
},
|
||||
type: "object",
|
||||
required: ["apiVersion", "id", "createdAt", "type", "data"],
|
||||
title: "WherebyWebhookEvent",
|
||||
} as const;
|
||||
|
||||
export const $Word = {
|
||||
properties: {
|
||||
text: {
|
||||
|
||||
@@ -4,6 +4,8 @@ import type { CancelablePromise } from "./core/CancelablePromise";
|
||||
import type { BaseHttpRequest } from "./core/BaseHttpRequest";
|
||||
import type {
|
||||
MetricsResponse,
|
||||
V1MeetingAudioConsentData,
|
||||
V1MeetingAudioConsentResponse,
|
||||
V1RoomsListData,
|
||||
V1RoomsListResponse,
|
||||
V1RoomsCreateData,
|
||||
@@ -64,6 +66,8 @@ import type {
|
||||
V1ZulipGetStreamsResponse,
|
||||
V1ZulipGetTopicsData,
|
||||
V1ZulipGetTopicsResponse,
|
||||
V1WherebyWebhookData,
|
||||
V1WherebyWebhookResponse,
|
||||
} from "./types.gen";
|
||||
|
||||
export class DefaultService {
|
||||
@@ -82,6 +86,31 @@ export class DefaultService {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Meeting Audio Consent
|
||||
* @param data The data for the request.
|
||||
* @param data.meetingId
|
||||
* @param data.requestBody
|
||||
* @returns unknown Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public v1MeetingAudioConsent(
|
||||
data: V1MeetingAudioConsentData,
|
||||
): CancelablePromise<V1MeetingAudioConsentResponse> {
|
||||
return this.httpRequest.request({
|
||||
method: "POST",
|
||||
url: "/v1/meetings/{meeting_id}/consent",
|
||||
path: {
|
||||
meeting_id: data.meetingId,
|
||||
},
|
||||
body: data.requestBody,
|
||||
mediaType: "application/json",
|
||||
errors: {
|
||||
422: "Validation Error",
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Rooms List
|
||||
* @param data The data for the request.
|
||||
@@ -807,4 +836,25 @@ export class DefaultService {
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Whereby Webhook
|
||||
* @param data The data for the request.
|
||||
* @param data.requestBody
|
||||
* @returns unknown Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public v1WherebyWebhook(
|
||||
data: V1WherebyWebhookData,
|
||||
): CancelablePromise<V1WherebyWebhookResponse> {
|
||||
return this.httpRequest.request({
|
||||
method: "POST",
|
||||
url: "/v1/whereby",
|
||||
body: data.requestBody,
|
||||
mediaType: "application/json",
|
||||
errors: {
|
||||
422: "Validation Error",
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -109,6 +109,10 @@ export type Meeting = {
|
||||
end_date: string;
|
||||
};
|
||||
|
||||
export type MeetingConsentRequest = {
|
||||
consent_given: boolean;
|
||||
};
|
||||
|
||||
export type Page_GetTranscript_ = {
|
||||
items: Array<GetTranscript>;
|
||||
total: number;
|
||||
@@ -229,6 +233,16 @@ export type ValidationError = {
|
||||
type: string;
|
||||
};
|
||||
|
||||
export type WherebyWebhookEvent = {
|
||||
apiVersion: string;
|
||||
id: string;
|
||||
createdAt: string;
|
||||
type: string;
|
||||
data: {
|
||||
[key: string]: unknown;
|
||||
};
|
||||
};
|
||||
|
||||
export type Word = {
|
||||
text: string;
|
||||
start: number;
|
||||
@@ -238,6 +252,13 @@ export type Word = {
|
||||
|
||||
export type MetricsResponse = unknown;
|
||||
|
||||
export type V1MeetingAudioConsentData = {
|
||||
meetingId: string;
|
||||
requestBody: MeetingConsentRequest;
|
||||
};
|
||||
|
||||
export type V1MeetingAudioConsentResponse = unknown;
|
||||
|
||||
export type V1RoomsListData = {
|
||||
/**
|
||||
* Page number
|
||||
@@ -454,6 +475,12 @@ export type V1ZulipGetTopicsData = {
|
||||
|
||||
export type V1ZulipGetTopicsResponse = Array<Topic>;
|
||||
|
||||
export type V1WherebyWebhookData = {
|
||||
requestBody: WherebyWebhookEvent;
|
||||
};
|
||||
|
||||
export type V1WherebyWebhookResponse = unknown;
|
||||
|
||||
export type $OpenApiTs = {
|
||||
"/metrics": {
|
||||
get: {
|
||||
@@ -465,6 +492,21 @@ export type $OpenApiTs = {
|
||||
};
|
||||
};
|
||||
};
|
||||
"/v1/meetings/{meeting_id}/consent": {
|
||||
post: {
|
||||
req: V1MeetingAudioConsentData;
|
||||
res: {
|
||||
/**
|
||||
* Successful Response
|
||||
*/
|
||||
200: unknown;
|
||||
/**
|
||||
* Validation Error
|
||||
*/
|
||||
422: HTTPValidationError;
|
||||
};
|
||||
};
|
||||
};
|
||||
"/v1/rooms": {
|
||||
get: {
|
||||
req: V1RoomsListData;
|
||||
@@ -902,4 +944,19 @@ export type $OpenApiTs = {
|
||||
};
|
||||
};
|
||||
};
|
||||
"/v1/whereby": {
|
||||
post: {
|
||||
req: V1WherebyWebhookData;
|
||||
res: {
|
||||
/**
|
||||
* Successful Response
|
||||
*/
|
||||
200: unknown;
|
||||
/**
|
||||
* Validation Error
|
||||
*/
|
||||
422: HTTPValidationError;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user