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

main
ts 34 lines 1.19 KB
Raw
1 import type * as chatbot from "@distilled.cloud/aws/chatbot";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Runtime binding for `chatbot:GetAccountPreferences`.
7 *
8 * Returns the account-level AWS Chatbot preferences (whether user-level
9 * authorization is required and whether training-data collection is
10 * enabled). Provide the implementation with
11 * `Effect.provide(AWS.Chatbot.GetAccountPreferencesHttp)`.
12 * ### Account Preferences
13 * **Example:** Read the account preferences
14 * ```typescript
15 * const getAccountPreferences = yield* AWS.Chatbot.GetAccountPreferences();
16 * const result = yield* getAccountPreferences();
17 * const trainingData = result.AccountPreferences?.TrainingDataCollectionEnabled;
18 * ```
19 *
20 * @binding
21 */
22 export interface GetAccountPreferences extends Binding.Service<
23 GetAccountPreferences,
24 "AWS.Chatbot.GetAccountPreferences",
25 () => Effect.Effect<
26 (
27 request?: chatbot.GetAccountPreferencesRequest,
28 ) => Effect.Effect<chatbot.GetAccountPreferencesResult, chatbot.GetAccountPreferencesError>
29 >
30 > {}
31
32 export const GetAccountPreferences = Binding.Service<GetAccountPreferences>(
33 "AWS.Chatbot.GetAccountPreferences",
34 );