/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { environmentsCloneEnvironment } from "../funcs/environments-clone-environment.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import { unwrapAsync } from "../types/fp.js"; import * as models from "./models/index.js"; export class Environments extends ClientSDK { /** * Clone an environment * * @remarks * Clone all published features and plans from the source environment into a target environment. If target_environment_id is provided, entities are cloned into that existing environment. Otherwise a new environment is created from name and type first. */ async cloneEnvironment( id: string, body: models.CloneEnvironmentRequest, options?: RequestOptions, ): Promise { return unwrapAsync(environmentsCloneEnvironment( this, id, body, options, )); } }