@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 06:00 UTC

main
ts 41 lines 1.46 KB
Raw
1 import type * as mediapackagev2 from "@distilled.cloud/aws/mediapackagev2";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { OriginEndpoint } from "./OriginEndpoint.ts";
5
6 /**
7 * Runtime binding for `mediapackagev2:ResetOriginEndpointState`.
8 *
9 * Resets the packaging state of the bound {@link OriginEndpoint} — clearing
10 * its manifests and cached segments so playback restarts clean after the
11 * channel's content was reset or replaced. The endpoint's group, channel,
12 * and name are injected from the binding. Provide the implementation with
13 * `Effect.provide(AWS.MediaPackageV2.ResetOriginEndpointStateHttp)`.
14 * ### Resetting Ingest State
15 * **Example:** Reset an Endpoint After Resetting Its Channel
16 * ```typescript
17 * // init — bind the operation to the endpoint
18 * const resetEndpoint =
19 * yield* AWS.MediaPackageV2.ResetOriginEndpointState(endpoint);
20 *
21 * // runtime
22 * const { ResetAt } = yield* resetEndpoint();
23 * ```
24 *
25 * @binding
26 */
27 export interface ResetOriginEndpointState extends Binding.Service<
28 ResetOriginEndpointState,
29 "AWS.MediaPackageV2.ResetOriginEndpointState",
30 (
31 endpoint: OriginEndpoint,
32 ) => Effect.Effect<
33 () => Effect.Effect<
34 mediapackagev2.ResetOriginEndpointStateResponse,
35 mediapackagev2.ResetOriginEndpointStateError
36 >
37 >
38 > {}
39 export const ResetOriginEndpointState = Binding.Service<ResetOriginEndpointState>(
40 "AWS.MediaPackageV2.ResetOriginEndpointState",
41 );