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

main
ts 37 lines 1.18 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 ListChannelsRequest extends Omit<repostspace.ListChannelsInput, "spaceId"> {}
7
8 /**
9 * Runtime binding for the `ListChannels` operation (IAM action
10 * `repostspace:ListChannels` on the space ARN).
11 *
12 * Lists the channels of the bound {@link Space}, one page per call
13 * (`nextToken`/`maxResults`).
14 * Provide the implementation with
15 * `Effect.provide(AWS.RePostSpace.ListChannelsHttp)`.
16 * ### Managing Channels
17 * **Example:** List the space's channels
18 * ```typescript
19 * const listChannels = yield* AWS.RePostSpace.ListChannels(space);
20 *
21 * const { channels } = yield* listChannels();
22 * ```
23 *
24 * @binding
25 */
26 export interface ListChannels extends Binding.Service<
27 ListChannels,
28 "AWS.RePostSpace.ListChannels",
29 (
30 space: Space,
31 ) => Effect.Effect<
32 (
33 request?: ListChannelsRequest,
34 ) => Effect.Effect<repostspace.ListChannelsOutput, repostspace.ListChannelsError>
35 >
36 > {}
37 export const ListChannels = Binding.Service<ListChannels>("AWS.RePostSpace.ListChannels");