/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { multistreamCreate } from "../funcs/multistreamCreate.js"; import { multistreamDelete } from "../funcs/multistreamDelete.js"; import { multistreamGet } from "../funcs/multistreamGet.js"; import { multistreamGetAll } from "../funcs/multistreamGetAll.js"; import { multistreamUpdate } from "../funcs/multistreamUpdate.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 Multistream extends ClientSDK { /** * Retrieve Multistream Targets */ async getAll( options?: RequestOptions, ): Promise { return unwrapAsync(multistreamGetAll( this, options, )); } /** * Create a multistream target */ async create( request: components.MultistreamTargetInput, options?: RequestOptions, ): Promise { return unwrapAsync(multistreamCreate( this, request, options, )); } /** * Retrieve a multistream target */ async get( id: string, options?: RequestOptions, ): Promise { return unwrapAsync(multistreamGet( this, id, options, )); } /** * Update Multistream Target */ async update( multistreamTargetPatchPayload: components.MultistreamTargetPatchPayload, id: string, options?: RequestOptions, ): Promise { return unwrapAsync(multistreamUpdate( this, multistreamTargetPatchPayload, id, options, )); } /** * Delete a multistream target * * @remarks * Make sure to remove any references to the target on existing * streams before actually deleting it from the API. */ async delete( id: string, options?: RequestOptions, ): Promise { return unwrapAsync(multistreamDelete( this, id, options, )); } }