@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, 06:00 UTC

main
ts 36 lines 1.16 KB
Raw
1 import type * as ssm from "@distilled.cloud/aws/ssm-contacts";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { Contact } from "./Contact.ts";
5
6 /**
7 * Runtime binding for `ssm-contacts:ListPagesByContact`.
8 *
9 * List the pages (individual engagement deliveries) sent to the bound
10 * contact. The contact's ARN is injected as `ContactId`.
11 * Provide the implementation with
12 * `Effect.provide(AWS.SSMContacts.ListPagesByContactHttp)`.
13 * ### Working with Pages
14 * **Example:** List Pages Sent to a Contact
15 * ```typescript
16 * const listPagesByContact = yield* AWS.SSMContacts.ListPagesByContact(oncall);
17 *
18 * const { Pages } = yield* listPagesByContact();
19 * ```
20 *
21 * @binding
22 */
23 export interface ListPagesByContact extends Binding.Service<
24 ListPagesByContact,
25 "AWS.SSMContacts.ListPagesByContact",
26 (
27 contact: Contact,
28 ) => Effect.Effect<
29 (
30 request?: Omit<ssm.ListPagesByContactRequest, "ContactId">,
31 ) => Effect.Effect<ssm.ListPagesByContactResult, ssm.ListPagesByContactError>
32 >
33 > {}
34 export const ListPagesByContact = Binding.Service<ListPagesByContact>(
35 "AWS.SSMContacts.ListPagesByContact",
36 );