@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, 04:45 UTC

main
ts 46 lines 1.45 KB
Raw
1 import type * as notifications from "@distilled.cloud/aws/notifications";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { NotificationConfiguration } from "./NotificationConfiguration.ts";
5
6 /**
7 * Request for {@link ListChannels} — the bound configuration's ARN is
8 * injected automatically.
9 */
10 export interface ListChannelsRequest extends Omit<
11 notifications.ListChannelsRequest,
12 "notificationConfigurationArn"
13 > {}
14
15 /**
16 * Runtime binding for `notifications:ListChannels`.
17 *
18 * List the delivery channel ARNs associated with a notification
19 * configuration. Provide the implementation with
20 * `Effect.provide(AWS.Notifications.ListChannelsHttp)`.
21 * ### Reading Configuration Channels
22 * **Example:** List a Configuration's Channels
23 * ```typescript
24 * // init — bind the operation to the configuration
25 * const listChannels = yield* AWS.Notifications.ListChannels(config);
26 *
27 * // runtime
28 * const result = yield* listChannels();
29 * const channelArns = result.channels;
30 * ```
31 *
32 * @binding
33 */
34 export interface ListChannels extends Binding.Service<
35 ListChannels,
36 "AWS.Notifications.ListChannels",
37 (
38 configuration: NotificationConfiguration,
39 ) => Effect.Effect<
40 (
41 request?: ListChannelsRequest,
42 ) => Effect.Effect<notifications.ListChannelsResponse, notifications.ListChannelsError>
43 >
44 > {}
45
46 export const ListChannels = Binding.Service<ListChannels>("AWS.Notifications.ListChannels");