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

main
ts 38 lines 1.19 KB
Raw
1 import type * as qbusiness from "@distilled.cloud/aws/qbusiness";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { Application } from "./Application.ts";
5
6 /**
7 * `GetUser` request with `applicationId` injected from the bound application.
8 */
9 export interface GetUserRequest extends Omit<qbusiness.GetUserRequest, "applicationId"> {}
10
11 /**
12 * Runtime binding for the `GetUser` operation (IAM action
13 * `qbusiness:GetUser`), scoped to one {@link Application}.
14 *
15 * Reads a user's alias mappings from the application user store.
16 * Provide the implementation with
17 * `Effect.provide(AWS.QBusiness.GetUserHttp)`.
18 *
19 * ### User Management
20 * **Example:** Read a User
21 * ```typescript
22 * const getUser = yield* AWS.QBusiness.GetUser(app);
23 *
24 * const { userAliases } = yield* getUser({ userId: "user@example.com" });
25 * ```
26 *
27 * @binding
28 */
29 export interface GetUser extends Binding.Service<
30 GetUser,
31 "AWS.QBusiness.GetUser",
32 (
33 application: Application,
34 ) => Effect.Effect<
35 (request: GetUserRequest) => Effect.Effect<qbusiness.GetUserResponse, qbusiness.GetUserError>
36 >
37 > {}
38 export const GetUser = Binding.Service<GetUser>("AWS.QBusiness.GetUser");