import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; import * as operations from "../models/operations/index.js"; export declare class Stream extends ClientSDK { /** * Create a stream * * @remarks * The only parameter you are required to set is the name of your stream, * but we also highly recommend that you define transcoding profiles * parameter that suits your specific broadcasting configuration. * \ * \ * If you do not define transcoding rendition profiles when creating the * stream, a default set of profiles will be used. These profiles include * 240p, 360p, 480p and 720p. * \ * \ * The playback policy is set to public by default for new streams. It can * also be added upon the creation of a new stream by adding * `"playbackPolicy": {"type": "jwt"}` */ create(request: components.NewStreamPayload, options?: RequestOptions): Promise; /** * Retrieve streams */ getAll(streamsonly?: string | undefined, options?: RequestOptions): Promise; /** * Retrieve a stream */ get(id: string, options?: RequestOptions): Promise; /** * Update a stream */ update(streamPatchPayload: components.StreamPatchPayload, id: string, options?: RequestOptions): Promise; /** * Delete a stream * * @remarks * This will also suspend any active stream sessions, so make sure to wait * until the stream has finished. To explicitly interrupt an active * session, consider instead updating the suspended field in the stream * using the PATCH stream API. */ delete(id: string, options?: RequestOptions): Promise; /** * Terminates a live stream * * @remarks * `DELETE /stream/{id}/terminate` can be used to terminate an ongoing * session on a live stream. Unlike suspending the stream, it allows the * streamer to restart streaming even immediately, but it will force * terminate the current session and stop the recording. * \ * \ * A 204 No Content status response indicates the stream was successfully * terminated. */ terminate(id: string, options?: RequestOptions): Promise; /** * Start ingest for a pull stream * * @remarks * `POST /stream/{id}/start-pull` can be used to start ingest for a stream * configured with a pull source. If the stream has recording configured, * it will also start recording. * \ * \ * A 204 No Content status response indicates the stream was successfully * started. */ startPull(id: string, options?: RequestOptions): Promise; /** * Create a clip */ createClip(request: components.ClipPayload, options?: RequestOptions): Promise; /** * Retrieve clips of a livestream */ getClips(id: string, options?: RequestOptions): Promise; /** * Add a multistream target */ addMultistreamTarget(targetAddPayload: components.TargetAddPayload, id: string, options?: RequestOptions): Promise; /** * Remove a multistream target */ removeMultistreamTarget(id: string, targetId: string, options?: RequestOptions): Promise; } //# sourceMappingURL=stream.d.ts.map