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

main
ts 40 lines 1.22 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 * `DeleteUser` request with `applicationId` injected from the bound application.
8 */
9 export interface DeleteUserRequest extends Omit<qbusiness.DeleteUserRequest, "applicationId"> {}
10
11 /**
12 * Runtime binding for the `DeleteUser` operation (IAM action
13 * `qbusiness:DeleteUser`), scoped to one {@link Application}.
14 *
15 * Deletes a user from the application user store.
16 * Provide the implementation with
17 * `Effect.provide(AWS.QBusiness.DeleteUserHttp)`.
18 *
19 * ### User Management
20 * **Example:** Delete a User
21 * ```typescript
22 * const deleteUser = yield* AWS.QBusiness.DeleteUser(app);
23 *
24 * yield* deleteUser({ userId: "user@example.com" });
25 * ```
26 *
27 * @binding
28 */
29 export interface DeleteUser extends Binding.Service<
30 DeleteUser,
31 "AWS.QBusiness.DeleteUser",
32 (
33 application: Application,
34 ) => Effect.Effect<
35 (
36 request: DeleteUserRequest,
37 ) => Effect.Effect<qbusiness.DeleteUserResponse, qbusiness.DeleteUserError>
38 >
39 > {}
40 export const DeleteUser = Binding.Service<DeleteUser>("AWS.QBusiness.DeleteUser");