/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { appsV1CreateAppV1Deprecated } from "../funcs/appsV1CreateAppV1Deprecated.js"; import { appsV1DeleteAppV1Deprecated } from "../funcs/appsV1DeleteAppV1Deprecated.js"; import { appsV1GetAppInfoV1Deprecated } from "../funcs/appsV1GetAppInfoV1Deprecated.js"; import { appsV1GetAppsV1Deprecated } from "../funcs/appsV1GetAppsV1Deprecated.js"; import { appsV1UpdateAppV1Deprecated } from "../funcs/appsV1UpdateAppV1Deprecated.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; import { unwrapAsync } from "../types/fp.js"; export class AppsV1 extends ClientSDK { /** * GetAppsV1Deprecated * * @remarks * Returns an unsorted list of your organization’s [applications](https://hathora.dev/docs/concepts/hathora-entities#application). An application is uniquely identified by an `appId`. * * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ async getAppsV1Deprecated( options?: RequestOptions, ): Promise< Array > { return unwrapAsync(appsV1GetAppsV1Deprecated( this, options, )); } /** * CreateAppV1Deprecated * * @remarks * Create a new [application](https://hathora.dev/docs/concepts/hathora-entities#application). * * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ async createAppV1Deprecated( request: components.CreateAppConfig, options?: RequestOptions, ): Promise { return unwrapAsync(appsV1CreateAppV1Deprecated( this, request, options, )); } /** * UpdateAppV1Deprecated * * @remarks * Update data for an existing [application](https://hathora.dev/docs/concepts/hathora-entities#application) using `appId`. * * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ async updateAppV1Deprecated( createAppConfig: components.CreateAppConfig, appId?: string | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(appsV1UpdateAppV1Deprecated( this, createAppConfig, appId, options, )); } /** * GetAppInfoV1Deprecated * * @remarks * Get details for an [application](https://hathora.dev/docs/concepts/hathora-entities#application) using `appId`. * * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ async getAppInfoV1Deprecated( appId?: string | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(appsV1GetAppInfoV1Deprecated( this, appId, options, )); } /** * DeleteAppV1Deprecated * * @remarks * Delete an [application](https://hathora.dev/docs/concepts/hathora-entities#application) using `appId`. Your organization will lose access to this application. * * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ async deleteAppV1Deprecated( appId?: string | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(appsV1DeleteAppV1Deprecated( this, appId, options, )); } }