1import type * as repostspace from "@distilled.cloud/aws/repostspace";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4import type { Space } from "./Space.ts";
5
6export interface ListChannelsRequest extends Omit<
7 repostspace.ListChannelsInput,
8 "spaceId"
9> {}
10
11/**
12 * Runtime binding for the `ListChannels` operation (IAM action
13 * `repostspace:ListChannels` on the space ARN).
14 *
15 * Lists the channels of the bound {@link Space}, one page per call
16 * (`nextToken`/`maxResults`).
17 * Provide the implementation with
18 * `Effect.provide(AWS.RePostSpace.ListChannelsHttp)`.
19 * ### Managing Channels
20 * **Example:** List the space's channels
21 * ```typescript
22 * const listChannels = yield* AWS.RePostSpace.ListChannels(space);
23 *
24 * const { channels } = yield* listChannels();
25 * ```
26 *
27 * @binding
28 */
29export interface ListChannels extends Binding.Service<
30 ListChannels,
31 "AWS.RePostSpace.ListChannels",
32 (
33 space: Space,
34 ) => Effect.Effect<
35 (
36 request?: ListChannelsRequest,
37 ) => Effect.Effect<
38 repostspace.ListChannelsOutput,
39 repostspace.ListChannelsError
40 >
41 >
42> {}
43export const ListChannels = Binding.Service<ListChannels>(
44 "AWS.RePostSpace.ListChannels",
45);