/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { buildsV2CreateBuildV2Deprecated } from "../funcs/buildsV2CreateBuildV2Deprecated.js"; import { buildsV2CreateBuildWithUploadUrlV2Deprecated } from "../funcs/buildsV2CreateBuildWithUploadUrlV2Deprecated.js"; import { buildsV2CreateWithMultipartUploadsV2Deprecated } from "../funcs/buildsV2CreateWithMultipartUploadsV2Deprecated.js"; import { buildsV2DeleteBuildV2Deprecated } from "../funcs/buildsV2DeleteBuildV2Deprecated.js"; import { buildsV2GetBuildInfoV2Deprecated } from "../funcs/buildsV2GetBuildInfoV2Deprecated.js"; import { buildsV2GetBuildsV2Deprecated } from "../funcs/buildsV2GetBuildsV2Deprecated.js"; import { buildsV2RunBuildV2Deprecated } from "../funcs/buildsV2RunBuildV2Deprecated.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; export class BuildsV2 extends ClientSDK { /** * GetBuildsV2Deprecated * * @remarks * Returns an array of [builds](https://hathora.dev/docs/concepts/hathora-entities#build) 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 getBuildsV2Deprecated( appId?: string | undefined, options?: RequestOptions, ): Promise> { return unwrapAsync(buildsV2GetBuildsV2Deprecated( this, appId, options, )); } /** * GetBuildInfoV2Deprecated * * @remarks * Get details for a [build](https://hathora.dev/docs/concepts/hathora-entities#build). * * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ async getBuildInfoV2Deprecated( buildId: number, appId?: string | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(buildsV2GetBuildInfoV2Deprecated( this, buildId, appId, options, )); } /** * CreateBuildV2Deprecated * * @remarks * Creates a new [build](https://hathora.dev/docs/concepts/hathora-entities#build). Responds with a `buildId` that you must pass to [`RunBuild()`](https://hathora.dev/api#tag/BuildV1/operation/RunBuild) to build the game server artifact. You can optionally pass in a `buildTag` to associate an external version with a build. * * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ async createBuildV2Deprecated( createBuildParams: components.CreateBuildParams, appId?: string | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(buildsV2CreateBuildV2Deprecated( this, createBuildParams, appId, options, )); } /** * CreateBuildWithUploadUrlV2Deprecated * * @remarks * Creates a new [build](https://hathora.dev/docs/concepts/hathora-entities#build) with `uploadUrl` that can be used to upload the build to before calling `runBuild`. Responds with a `buildId` that you must pass to [`RunBuild()`](https://hathora.dev/api#tag/BuildV1/operation/RunBuild) to build the game server artifact. You can optionally pass in a `buildTag` to associate an external version with a build. * * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ async createBuildWithUploadUrlV2Deprecated( createBuildParams: components.CreateBuildParams, appId?: string | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(buildsV2CreateBuildWithUploadUrlV2Deprecated( this, createBuildParams, appId, options, )); } /** * CreateWithMultipartUploadsV2Deprecated * * @remarks * Creates a new [build](https://hathora.dev/docs/concepts/hathora-entities#build) with optional `multipartUploadUrls` that can be used to upload larger builds in parts before calling `runBuild`. Responds with a `buildId` that you must pass to [`RunBuild()`](https://hathora.dev/api#tag/BuildV1/operation/RunBuild) to build the game server artifact. You can optionally pass in a `buildTag` to associate an external version with a build. * * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ async createWithMultipartUploadsV2Deprecated( createMultipartBuildParams: components.CreateMultipartBuildParams, appId?: string | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(buildsV2CreateWithMultipartUploadsV2Deprecated( this, createMultipartBuildParams, appId, options, )); } /** * DeleteBuildV2Deprecated * * @remarks * Delete a [build](https://hathora.dev/docs/concepts/hathora-entities#build). All associated metadata is deleted. * * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ async deleteBuildV2Deprecated( buildId: number, appId?: string | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(buildsV2DeleteBuildV2Deprecated( this, buildId, appId, options, )); } /** * RunBuildV2Deprecated * * @remarks * Builds a game server artifact from a tarball you provide. Pass in the `buildId` generated from [`CreateBuild()`](https://hathora.dev/api#tag/BuildV1/operation/CreateBuild). * * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ async runBuildV2Deprecated( buildId: number, requestBody: operations.RunBuildV2DeprecatedRequestBody, appId?: string | undefined, options?: RequestOptions, ): Promise> { return unwrapAsync(buildsV2RunBuildV2Deprecated( this, buildId, requestBody, appId, options, )); } }