/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { deploymentsV1CreateDeploymentV1Deprecated } from "../funcs/deploymentsV1CreateDeploymentV1Deprecated.js"; import { deploymentsV1GetDeploymentInfoV1Deprecated } from "../funcs/deploymentsV1GetDeploymentInfoV1Deprecated.js"; import { deploymentsV1GetDeploymentsV1Deprecated } from "../funcs/deploymentsV1GetDeploymentsV1Deprecated.js"; import { deploymentsV1GetLatestDeploymentV1Deprecated } from "../funcs/deploymentsV1GetLatestDeploymentV1Deprecated.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; import { unwrapAsync } from "../types/fp.js"; export class DeploymentsV1 extends ClientSDK { /** * GetDeploymentsV1Deprecated * * @remarks * Returns an array of [deployments](https://hathora.dev/docs/concepts/hathora-entities#deployment) for an [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 getDeploymentsV1Deprecated( appId?: string | undefined, options?: RequestOptions, ): Promise> { return unwrapAsync(deploymentsV1GetDeploymentsV1Deprecated( this, appId, options, )); } /** * GetLatestDeploymentV1Deprecated * * @remarks * Get the latest [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment) for an [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 getLatestDeploymentV1Deprecated( appId?: string | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(deploymentsV1GetLatestDeploymentV1Deprecated( this, appId, options, )); } /** * GetDeploymentInfoV1Deprecated * * @remarks * Get details for a [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment). * * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ async getDeploymentInfoV1Deprecated( deploymentId: number, appId?: string | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(deploymentsV1GetDeploymentInfoV1Deprecated( this, deploymentId, appId, options, )); } /** * CreateDeploymentV1Deprecated * * @remarks * Create a new [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment). Creating a new deployment means all new rooms created will use the latest deployment configuration, but existing games in progress will not be affected. * * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ async createDeploymentV1Deprecated( buildId: number, deploymentConfig: components.DeploymentConfig, appId?: string | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(deploymentsV1CreateDeploymentV1Deprecated( this, buildId, deploymentConfig, appId, options, )); } }