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

main
ts 42 lines 1.32 KB
Raw
1 import type * as datazone from "@distilled.cloud/aws/datazone";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { Domain } from "./Domain.ts";
5
6 export interface ListNotificationsRequest extends Omit<
7 datazone.ListNotificationsInput,
8 "domainIdentifier"
9 > {}
10
11 /**
12 * Runtime binding for `datazone:ListNotifications`.
13 *
14 * Lists task or event notifications for the calling user in the bound domain. The domain id is injected from the binding.
15 * Provide the implementation with
16 * `Effect.provide(AWS.DataZone.ListNotificationsHttp)`.
17 * ### Portal, Profiles & Notifications
18 * **Example:** Read Pending Tasks
19 * ```typescript
20 * // init — bind the operation to the domain
21 * const listNotifications = yield* AWS.DataZone.ListNotifications(domain);
22 *
23 * // runtime
24 * const tasks = yield* listNotifications({ type: "TASK", taskStatus: "ACTIVE" });
25 * ```
26 *
27 * @binding
28 */
29 export interface ListNotifications extends Binding.Service<
30 ListNotifications,
31 "AWS.DataZone.ListNotifications",
32 (
33 domain: Domain,
34 ) => Effect.Effect<
35 (
36 request: ListNotificationsRequest,
37 ) => Effect.Effect<datazone.ListNotificationsOutput, datazone.ListNotificationsError>
38 >
39 > {}
40 export const ListNotifications = Binding.Service<ListNotifications>(
41 "AWS.DataZone.ListNotifications",
42 );