/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { roomsV1CreateRoomDeprecated } from "../funcs/roomsV1CreateRoomDeprecated.js"; import { roomsV1DestroyRoomDeprecated } from "../funcs/roomsV1DestroyRoomDeprecated.js"; import { roomsV1GetActiveRoomsForProcessDeprecated } from "../funcs/roomsV1GetActiveRoomsForProcessDeprecated.js"; import { roomsV1GetConnectionInfoDeprecated } from "../funcs/roomsV1GetConnectionInfoDeprecated.js"; import { roomsV1GetInactiveRoomsForProcessDeprecated } from "../funcs/roomsV1GetInactiveRoomsForProcessDeprecated.js"; import { roomsV1GetRoomInfoDeprecated } from "../funcs/roomsV1GetRoomInfoDeprecated.js"; import { roomsV1SuspendRoomDeprecated } from "../funcs/roomsV1SuspendRoomDeprecated.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; import { unwrapAsync } from "../types/fp.js"; export class RoomsV1 extends ClientSDK { /** * CreateRoomDeprecated * * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ async createRoomDeprecated( createRoomParams: components.CreateRoomParams, appId?: string | undefined, roomId?: string | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(roomsV1CreateRoomDeprecated( this, createRoomParams, appId, roomId, options, )); } /** * GetRoomInfoDeprecated * * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ async getRoomInfoDeprecated( roomId: string, appId?: string | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(roomsV1GetRoomInfoDeprecated( this, roomId, appId, options, )); } /** * GetActiveRoomsForProcessDeprecated * * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ async getActiveRoomsForProcessDeprecated( processId: string, appId?: string | undefined, options?: RequestOptions, ): Promise> { return unwrapAsync(roomsV1GetActiveRoomsForProcessDeprecated( this, processId, appId, options, )); } /** * GetInactiveRoomsForProcessDeprecated * * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ async getInactiveRoomsForProcessDeprecated( processId: string, appId?: string | undefined, options?: RequestOptions, ): Promise> { return unwrapAsync(roomsV1GetInactiveRoomsForProcessDeprecated( this, processId, appId, options, )); } /** * DestroyRoomDeprecated * * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ async destroyRoomDeprecated( roomId: string, appId?: string | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(roomsV1DestroyRoomDeprecated( this, roomId, appId, options, )); } /** * SuspendRoomDeprecated * * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ async suspendRoomDeprecated( roomId: string, appId?: string | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(roomsV1SuspendRoomDeprecated( this, roomId, appId, options, )); } /** * GetConnectionInfoDeprecated * * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ async getConnectionInfoDeprecated( roomId: string, appId?: string | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(roomsV1GetConnectionInfoDeprecated( this, roomId, appId, options, )); } }