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

main
ts 34 lines 1.19 KB
Raw
1 import type * as detective from "@distilled.cloud/aws/detective";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Runtime binding for `detective:ListInvitations`.
7 *
8 * Lists open behavior-graph invitations *received by this account* — the
9 * member-account side of the Detective handshake, ready for an automation
10 * that auto-accepts invitations from the security account.
11 * Provide the implementation with
12 * `Effect.provide(AWS.Detective.ListInvitationsHttp)`.
13 * ### Responding to Invitations
14 * **Example:** List Pending Invitations
15 * ```typescript
16 * // init — account-level binding, no resource argument
17 * const listInvitations = yield* AWS.Detective.ListInvitations();
18 *
19 * // runtime
20 * const { Invitations } = yield* listInvitations();
21 * ```
22 *
23 * @binding
24 */
25 export interface ListInvitations extends Binding.Service<
26 ListInvitations,
27 "AWS.Detective.ListInvitations",
28 () => Effect.Effect<
29 (
30 request?: detective.ListInvitationsRequest,
31 ) => Effect.Effect<detective.ListInvitationsResponse, detective.ListInvitationsError>
32 >
33 > {}
34 export const ListInvitations = Binding.Service<ListInvitations>("AWS.Detective.ListInvitations");