@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 15 lines 648 Bytes
Raw
1 import * as sns from "@distilled.cloud/aws/sns";
2 import * as Layer from "effect/Layer";
3 import { makeSnsAccountHttpBinding } from "./BindingHttp.ts";
4 import { CheckIfPhoneNumberIsOptedOut } from "./CheckIfPhoneNumberIsOptedOut.ts";
5
6 export const CheckIfPhoneNumberIsOptedOutHttp = Layer.effect(
7 CheckIfPhoneNumberIsOptedOut,
8 makeSnsAccountHttpBinding({
9 tag: "AWS.SNS.CheckIfPhoneNumberIsOptedOut",
10 operation: sns.checkIfPhoneNumberIsOptedOut,
11 // Opt-out reads are backed by `sms-voice:DescribeOptedOutNumbers`
12 // (probe-verified).
13 actions: ["sns:CheckIfPhoneNumberIsOptedOut", "sms-voice:DescribeOptedOutNumbers"],
14 }),
15 );