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

main
ts 38 lines 1.41 KB
Raw
1 import type * as account from "@distilled.cloud/aws/account";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Runtime binding for `account:GetContactInformation`.
7 *
8 * Reads the calling account's primary contact — full name, address, phone
9 * number, and company. The contact fields are marked sensitive at the wire
10 * level, so distilled returns them as `string | Redacted<string>`. Account
11 * Management is an account singleton, so the binding takes no resource
12 * argument. Provide the implementation with
13 * `Effect.provide(AWS.Account.GetContactInformationHttp)`.
14 * ### Reading Account Settings
15 * **Example:** Read the Primary Contact
16 * ```typescript
17 * // init — account-level binding, no resource argument
18 * const getContactInformation = yield* AWS.Account.GetContactInformation();
19 *
20 * // runtime
21 * const { ContactInformation } = yield* getContactInformation();
22 * console.log(ContactInformation?.CountryCode);
23 * ```
24 *
25 * @binding
26 */
27 export interface GetContactInformation extends Binding.Service<
28 GetContactInformation,
29 "AWS.Account.GetContactInformation",
30 () => Effect.Effect<
31 (
32 request?: account.GetContactInformationRequest,
33 ) => Effect.Effect<account.GetContactInformationResponse, account.GetContactInformationError>
34 >
35 > {}
36 export const GetContactInformation = Binding.Service<GetContactInformation>(
37 "AWS.Account.GetContactInformation",
38 );