@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 34 lines 1.11 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
5 /**
6 * Runtime binding for `ssm-contacts:ListPageReceipts`.
7 *
8 * List the delivery/read receipts of a page — one receipt per contact
9 * channel the page was sent over.
10 * Provide the implementation with
11 * `Effect.provide(AWS.SSMContacts.ListPageReceiptsHttp)`.
12 * ### Working with Pages
13 * **Example:** Check Whether a Page Was Read
14 * ```typescript
15 * const listPageReceipts = yield* AWS.SSMContacts.ListPageReceipts();
16 *
17 * const { Receipts } = yield* listPageReceipts({ PageId: pageArn });
18 * // receipts with ReceiptType "READ" mean the page was acknowledged
19 * ```
20 *
21 * @binding
22 */
23 export interface ListPageReceipts extends Binding.Service<
24 ListPageReceipts,
25 "AWS.SSMContacts.ListPageReceipts",
26 () => Effect.Effect<
27 (
28 request: ssm.ListPageReceiptsRequest,
29 ) => Effect.Effect<ssm.ListPageReceiptsResult, ssm.ListPageReceiptsError>
30 >
31 > {}
32 export const ListPageReceipts = Binding.Service<ListPageReceipts>(
33 "AWS.SSMContacts.ListPageReceipts",
34 );