// This file is auto-generated by @hey-api/openapi-ts import type { CancelablePromise } from "./core/CancelablePromise"; import type { BaseHttpRequest } from "./core/BaseHttpRequest"; import type { MetricsResponse, V1MeetingGetData, V1MeetingGetResponse, V1MeetingCreateData, V1MeetingCreateResponse, V1RoomsListData, V1RoomsListResponse, V1RoomsCreateData, V1RoomsCreateResponse, V1RoomsDeleteData, V1RoomsDeleteResponse, V1RoomsCreateMeetingData, V1RoomsCreateMeetingResponse, V1TranscriptsListData, V1TranscriptsListResponse, V1TranscriptsCreateData, V1TranscriptsCreateResponse, V1TranscriptsCreateMeetingData, V1TranscriptsCreateMeetingResponse, V1TranscriptGetData, V1TranscriptGetResponse, V1TranscriptUpdateData, V1TranscriptUpdateResponse, V1TranscriptDeleteData, V1TranscriptDeleteResponse, V1TranscriptGetTopicsData, V1TranscriptGetTopicsResponse, V1TranscriptGetTopicsWithWordsData, V1TranscriptGetTopicsWithWordsResponse, V1TranscriptGetTopicsWithWordsPerSpeakerData, V1TranscriptGetTopicsWithWordsPerSpeakerResponse, V1TranscriptHeadAudioMp3Data, V1TranscriptHeadAudioMp3Response, V1TranscriptGetAudioMp3Data, V1TranscriptGetAudioMp3Response, V1TranscriptGetAudioWaveformData, V1TranscriptGetAudioWaveformResponse, V1TranscriptGetParticipantsData, V1TranscriptGetParticipantsResponse, V1TranscriptAddParticipantData, V1TranscriptAddParticipantResponse, V1TranscriptGetParticipantData, V1TranscriptGetParticipantResponse, V1TranscriptUpdateParticipantData, V1TranscriptUpdateParticipantResponse, V1TranscriptDeleteParticipantData, V1TranscriptDeleteParticipantResponse, V1TranscriptAssignSpeakerData, V1TranscriptAssignSpeakerResponse, V1TranscriptMergeSpeakerData, V1TranscriptMergeSpeakerResponse, V1TranscriptRecordUploadData, V1TranscriptRecordUploadResponse, V1TranscriptGetWebsocketEventsData, V1TranscriptGetWebsocketEventsResponse, V1TranscriptRecordWebrtcData, V1TranscriptRecordWebrtcResponse, V1TranscriptProcessData, V1TranscriptProcessResponse, V1UserMeResponse, } from "./types.gen"; export class DefaultService { constructor(public readonly httpRequest: BaseHttpRequest) {} /** * Metrics * Endpoint that serves Prometheus metrics. * @returns unknown Successful Response * @throws ApiError */ public metrics(): CancelablePromise { return this.httpRequest.request({ method: "GET", url: "/metrics", }); } /** * Meeting Get * @param data The data for the request. * @param data.meetingId * @returns GetMeeting Successful Response * @throws ApiError */ public v1MeetingGet( data: V1MeetingGetData, ): CancelablePromise { return this.httpRequest.request({ method: "GET", url: "/v1/meetings/{meeting_id}", path: { meeting_id: data.meetingId, }, errors: { 422: "Validation Error", }, }); } /** * Meeting Create * @param data The data for the request. * @param data.roomId * @returns GetMeeting Successful Response * @throws ApiError */ public v1MeetingCreate( data: V1MeetingCreateData, ): CancelablePromise { return this.httpRequest.request({ method: "POST", url: "/v1/meetings/", query: { room_id: data.roomId, }, errors: { 422: "Validation Error", }, }); } /** * Rooms List * @param data The data for the request. * @param data.page Page number * @param data.size Page size * @returns Page_Room_ Successful Response * @throws ApiError */ public v1RoomsList( data: V1RoomsListData = {}, ): CancelablePromise { return this.httpRequest.request({ method: "GET", url: "/v1/rooms", query: { page: data.page, size: data.size, }, errors: { 422: "Validation Error", }, }); } /** * Rooms Create * @param data The data for the request. * @param data.requestBody * @returns Room Successful Response * @throws ApiError */ public v1RoomsCreate( data: V1RoomsCreateData, ): CancelablePromise { return this.httpRequest.request({ method: "POST", url: "/v1/rooms", body: data.requestBody, mediaType: "application/json", errors: { 422: "Validation Error", }, }); } /** * Rooms Delete * @param data The data for the request. * @param data.roomId * @returns DeletionStatus Successful Response * @throws ApiError */ public v1RoomsDelete( data: V1RoomsDeleteData, ): CancelablePromise { return this.httpRequest.request({ method: "DELETE", url: "/v1/rooms/{room_id}", path: { room_id: data.roomId, }, errors: { 422: "Validation Error", }, }); } /** * Rooms Create Meeting * @param data The data for the request. * @param data.roomName * @returns GetMeeting Successful Response * @throws ApiError */ public v1RoomsCreateMeeting( data: V1RoomsCreateMeetingData, ): CancelablePromise { return this.httpRequest.request({ method: "POST", url: "/v1/rooms/{room_name}/meeting", path: { room_name: data.roomName, }, errors: { 422: "Validation Error", }, }); } /** * Transcripts List * @param data The data for the request. * @param data.page Page number * @param data.size Page size * @returns Page_GetTranscript_ Successful Response * @throws ApiError */ public v1TranscriptsList( data: V1TranscriptsListData = {}, ): CancelablePromise { return this.httpRequest.request({ method: "GET", url: "/v1/transcripts", query: { page: data.page, size: data.size, }, errors: { 422: "Validation Error", }, }); } /** * Transcripts Create * @param data The data for the request. * @param data.requestBody * @returns GetTranscript Successful Response * @throws ApiError */ public v1TranscriptsCreate( data: V1TranscriptsCreateData, ): CancelablePromise { return this.httpRequest.request({ method: "POST", url: "/v1/transcripts", body: data.requestBody, mediaType: "application/json", errors: { 422: "Validation Error", }, }); } /** * Transcripts Create Meeting * @param data The data for the request. * @param data.requestBody * @returns GetTranscript Successful Response * @throws ApiError */ public v1TranscriptsCreateMeeting( data: V1TranscriptsCreateMeetingData, ): CancelablePromise { return this.httpRequest.request({ method: "POST", url: "/v1/transcripts/meeting", body: data.requestBody, mediaType: "application/json", errors: { 422: "Validation Error", }, }); } /** * Transcript Get * @param data The data for the request. * @param data.transcriptId * @returns GetTranscript Successful Response * @throws ApiError */ public v1TranscriptGet( data: V1TranscriptGetData, ): CancelablePromise { return this.httpRequest.request({ method: "GET", url: "/v1/transcripts/{transcript_id}", path: { transcript_id: data.transcriptId, }, errors: { 422: "Validation Error", }, }); } /** * Transcript Update * @param data The data for the request. * @param data.transcriptId * @param data.requestBody * @returns GetTranscript Successful Response * @throws ApiError */ public v1TranscriptUpdate( data: V1TranscriptUpdateData, ): CancelablePromise { return this.httpRequest.request({ method: "PATCH", url: "/v1/transcripts/{transcript_id}", path: { transcript_id: data.transcriptId, }, body: data.requestBody, mediaType: "application/json", errors: { 422: "Validation Error", }, }); } /** * Transcript Delete * @param data The data for the request. * @param data.transcriptId * @returns DeletionStatus Successful Response * @throws ApiError */ public v1TranscriptDelete( data: V1TranscriptDeleteData, ): CancelablePromise { return this.httpRequest.request({ method: "DELETE", url: "/v1/transcripts/{transcript_id}", path: { transcript_id: data.transcriptId, }, errors: { 422: "Validation Error", }, }); } /** * Transcript Get Topics * @param data The data for the request. * @param data.transcriptId * @returns GetTranscriptTopic Successful Response * @throws ApiError */ public v1TranscriptGetTopics( data: V1TranscriptGetTopicsData, ): CancelablePromise { return this.httpRequest.request({ method: "GET", url: "/v1/transcripts/{transcript_id}/topics", path: { transcript_id: data.transcriptId, }, errors: { 422: "Validation Error", }, }); } /** * Transcript Get Topics With Words * @param data The data for the request. * @param data.transcriptId * @returns GetTranscriptTopicWithWords Successful Response * @throws ApiError */ public v1TranscriptGetTopicsWithWords( data: V1TranscriptGetTopicsWithWordsData, ): CancelablePromise { return this.httpRequest.request({ method: "GET", url: "/v1/transcripts/{transcript_id}/topics/with-words", path: { transcript_id: data.transcriptId, }, errors: { 422: "Validation Error", }, }); } /** * Transcript Get Topics With Words Per Speaker * @param data The data for the request. * @param data.transcriptId * @param data.topicId * @returns GetTranscriptTopicWithWordsPerSpeaker Successful Response * @throws ApiError */ public v1TranscriptGetTopicsWithWordsPerSpeaker( data: V1TranscriptGetTopicsWithWordsPerSpeakerData, ): CancelablePromise { return this.httpRequest.request({ method: "GET", url: "/v1/transcripts/{transcript_id}/topics/{topic_id}/words-per-speaker", path: { transcript_id: data.transcriptId, topic_id: data.topicId, }, errors: { 422: "Validation Error", }, }); } /** * Transcript Get Audio Mp3 * @param data The data for the request. * @param data.transcriptId * @param data.token * @returns unknown Successful Response * @throws ApiError */ public v1TranscriptHeadAudioMp3( data: V1TranscriptHeadAudioMp3Data, ): CancelablePromise { return this.httpRequest.request({ method: "HEAD", url: "/v1/transcripts/{transcript_id}/audio/mp3", path: { transcript_id: data.transcriptId, }, query: { token: data.token, }, errors: { 422: "Validation Error", }, }); } /** * Transcript Get Audio Mp3 * @param data The data for the request. * @param data.transcriptId * @param data.token * @returns unknown Successful Response * @throws ApiError */ public v1TranscriptGetAudioMp3( data: V1TranscriptGetAudioMp3Data, ): CancelablePromise { return this.httpRequest.request({ method: "GET", url: "/v1/transcripts/{transcript_id}/audio/mp3", path: { transcript_id: data.transcriptId, }, query: { token: data.token, }, errors: { 422: "Validation Error", }, }); } /** * Transcript Get Audio Waveform * @param data The data for the request. * @param data.transcriptId * @returns AudioWaveform Successful Response * @throws ApiError */ public v1TranscriptGetAudioWaveform( data: V1TranscriptGetAudioWaveformData, ): CancelablePromise { return this.httpRequest.request({ method: "GET", url: "/v1/transcripts/{transcript_id}/audio/waveform", path: { transcript_id: data.transcriptId, }, errors: { 422: "Validation Error", }, }); } /** * Transcript Get Participants * @param data The data for the request. * @param data.transcriptId * @returns Participant Successful Response * @throws ApiError */ public v1TranscriptGetParticipants( data: V1TranscriptGetParticipantsData, ): CancelablePromise { return this.httpRequest.request({ method: "GET", url: "/v1/transcripts/{transcript_id}/participants", path: { transcript_id: data.transcriptId, }, errors: { 422: "Validation Error", }, }); } /** * Transcript Add Participant * @param data The data for the request. * @param data.transcriptId * @param data.requestBody * @returns Participant Successful Response * @throws ApiError */ public v1TranscriptAddParticipant( data: V1TranscriptAddParticipantData, ): CancelablePromise { return this.httpRequest.request({ method: "POST", url: "/v1/transcripts/{transcript_id}/participants", path: { transcript_id: data.transcriptId, }, body: data.requestBody, mediaType: "application/json", errors: { 422: "Validation Error", }, }); } /** * Transcript Get Participant * @param data The data for the request. * @param data.transcriptId * @param data.participantId * @returns Participant Successful Response * @throws ApiError */ public v1TranscriptGetParticipant( data: V1TranscriptGetParticipantData, ): CancelablePromise { return this.httpRequest.request({ method: "GET", url: "/v1/transcripts/{transcript_id}/participants/{participant_id}", path: { transcript_id: data.transcriptId, participant_id: data.participantId, }, errors: { 422: "Validation Error", }, }); } /** * Transcript Update Participant * @param data The data for the request. * @param data.transcriptId * @param data.participantId * @param data.requestBody * @returns Participant Successful Response * @throws ApiError */ public v1TranscriptUpdateParticipant( data: V1TranscriptUpdateParticipantData, ): CancelablePromise { return this.httpRequest.request({ method: "PATCH", url: "/v1/transcripts/{transcript_id}/participants/{participant_id}", path: { transcript_id: data.transcriptId, participant_id: data.participantId, }, body: data.requestBody, mediaType: "application/json", errors: { 422: "Validation Error", }, }); } /** * Transcript Delete Participant * @param data The data for the request. * @param data.transcriptId * @param data.participantId * @returns DeletionStatus Successful Response * @throws ApiError */ public v1TranscriptDeleteParticipant( data: V1TranscriptDeleteParticipantData, ): CancelablePromise { return this.httpRequest.request({ method: "DELETE", url: "/v1/transcripts/{transcript_id}/participants/{participant_id}", path: { transcript_id: data.transcriptId, participant_id: data.participantId, }, errors: { 422: "Validation Error", }, }); } /** * Transcript Assign Speaker * @param data The data for the request. * @param data.transcriptId * @param data.requestBody * @returns SpeakerAssignmentStatus Successful Response * @throws ApiError */ public v1TranscriptAssignSpeaker( data: V1TranscriptAssignSpeakerData, ): CancelablePromise { return this.httpRequest.request({ method: "PATCH", url: "/v1/transcripts/{transcript_id}/speaker/assign", path: { transcript_id: data.transcriptId, }, body: data.requestBody, mediaType: "application/json", errors: { 422: "Validation Error", }, }); } /** * Transcript Merge Speaker * @param data The data for the request. * @param data.transcriptId * @param data.requestBody * @returns SpeakerAssignmentStatus Successful Response * @throws ApiError */ public v1TranscriptMergeSpeaker( data: V1TranscriptMergeSpeakerData, ): CancelablePromise { return this.httpRequest.request({ method: "PATCH", url: "/v1/transcripts/{transcript_id}/speaker/merge", path: { transcript_id: data.transcriptId, }, body: data.requestBody, mediaType: "application/json", errors: { 422: "Validation Error", }, }); } /** * Transcript Record Upload * @param data The data for the request. * @param data.transcriptId * @param data.chunkNumber * @param data.totalChunks * @param data.formData * @returns unknown Successful Response * @throws ApiError */ public v1TranscriptRecordUpload( data: V1TranscriptRecordUploadData, ): CancelablePromise { return this.httpRequest.request({ method: "POST", url: "/v1/transcripts/{transcript_id}/record/upload", path: { transcript_id: data.transcriptId, }, query: { chunk_number: data.chunkNumber, total_chunks: data.totalChunks, }, formData: data.formData, mediaType: "multipart/form-data", errors: { 422: "Validation Error", }, }); } /** * Transcript Get Websocket Events * @param data The data for the request. * @param data.transcriptId * @returns unknown Successful Response * @throws ApiError */ public v1TranscriptGetWebsocketEvents( data: V1TranscriptGetWebsocketEventsData, ): CancelablePromise { return this.httpRequest.request({ method: "GET", url: "/v1/transcripts/{transcript_id}/events", path: { transcript_id: data.transcriptId, }, errors: { 422: "Validation Error", }, }); } /** * Transcript Record Webrtc * @param data The data for the request. * @param data.transcriptId * @param data.requestBody * @returns unknown Successful Response * @throws ApiError */ public v1TranscriptRecordWebrtc( data: V1TranscriptRecordWebrtcData, ): CancelablePromise { return this.httpRequest.request({ method: "POST", url: "/v1/transcripts/{transcript_id}/record/webrtc", path: { transcript_id: data.transcriptId, }, body: data.requestBody, mediaType: "application/json", errors: { 422: "Validation Error", }, }); } /** * Transcript Process * @param data The data for the request. * @param data.transcriptId * @returns unknown Successful Response * @throws ApiError */ public v1TranscriptProcess( data: V1TranscriptProcessData, ): CancelablePromise { return this.httpRequest.request({ method: "POST", url: "/v1/transcripts/{transcript_id}/process", path: { transcript_id: data.transcriptId, }, errors: { 422: "Validation Error", }, }); } /** * User Me * @returns unknown Successful Response * @throws ApiError */ public v1UserMe(): CancelablePromise { return this.httpRequest.request({ method: "GET", url: "/v1/me", }); } }