@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 51 lines 1.69 KB
Raw
1 import type * as smsvoice from "@distilled.cloud/aws/pinpoint-sms-voice-v2";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { OptOutList } from "./OptOutList.ts";
5
6 /**
7 * The `OptOutListName` is injected by the binding from the bound opt-out
8 * list; the caller supplies the destination number to opt back in.
9 */
10 export interface DeleteOptedOutNumberRequest extends Omit<
11 smsvoice.DeleteOptedOutNumberRequest,
12 "OptOutListName"
13 > {}
14
15 /**
16 * Runtime binding for `sms-voice:DeleteOptedOutNumber`.
17 *
18 * Removes a destination phone number from the bound opt-out list, opting
19 * the end user back in to receiving messages. Numbers that opted
20 * themselves out by replying with a keyword can only be removed once
21 * every 30 days. The deploy-time half grants
22 * `sms-voice:DeleteOptedOutNumber` on the list. Provide the
23 * implementation with
24 * `Effect.provide(AWS.PinpointSMSVoiceV2.DeleteOptedOutNumberHttp)`.
25 * ### Managing Opt-Outs
26 * **Example:** Opt a Number Back In
27 * ```typescript
28 * // init
29 * const deleteOptedOut =
30 * yield* AWS.PinpointSMSVoiceV2.DeleteOptedOutNumber(optOuts);
31 *
32 * // runtime
33 * yield* deleteOptedOut({ OptedOutNumber: "+12065550100" });
34 * ```
35 *
36 * @binding
37 */
38 export interface DeleteOptedOutNumber extends Binding.Service<
39 DeleteOptedOutNumber,
40 "AWS.PinpointSMSVoiceV2.DeleteOptedOutNumber",
41 (
42 optOutList: OptOutList,
43 ) => Effect.Effect<
44 (
45 request: DeleteOptedOutNumberRequest,
46 ) => Effect.Effect<smsvoice.DeleteOptedOutNumberResult, smsvoice.DeleteOptedOutNumberError>
47 >
48 > {}
49 export const DeleteOptedOutNumber = Binding.Service<DeleteOptedOutNumber>(
50 "AWS.PinpointSMSVoiceV2.DeleteOptedOutNumber",
51 );