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

main
ts 40 lines 1.21 KB
Raw
1 import type * as repostspace from "@distilled.cloud/aws/repostspace";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { Space } from "./Space.ts";
5
6 export interface UpdateChannelRequest extends Omit<repostspace.UpdateChannelInput, "spaceId"> {}
7
8 /**
9 * Runtime binding for the `UpdateChannel` operation (IAM action
10 * `repostspace:UpdateChannel` on the space ARN).
11 *
12 * Renames a channel of the bound {@link Space} and/or updates its
13 * description.
14 * Provide the implementation with
15 * `Effect.provide(AWS.RePostSpace.UpdateChannelHttp)`.
16 * ### Managing Channels
17 * **Example:** Rename a channel
18 * ```typescript
19 * const updateChannel = yield* AWS.RePostSpace.UpdateChannel(space);
20 *
21 * yield* updateChannel({
22 * channelId,
23 * channelName: "Networking & DNS",
24 * });
25 * ```
26 *
27 * @binding
28 */
29 export interface UpdateChannel extends Binding.Service<
30 UpdateChannel,
31 "AWS.RePostSpace.UpdateChannel",
32 (
33 space: Space,
34 ) => Effect.Effect<
35 (
36 request: UpdateChannelRequest,
37 ) => Effect.Effect<repostspace.UpdateChannelOutput, repostspace.UpdateChannelError>
38 >
39 > {}
40 export const UpdateChannel = Binding.Service<UpdateChannel>("AWS.RePostSpace.UpdateChannel");