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

main
ts 37 lines 1.25 KB
Raw
1 import type * as repostspace from "@distilled.cloud/aws/repostspace";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { Space } from "./Space.ts";
5
6 export interface RegisterAdminRequest extends Omit<repostspace.RegisterAdminInput, "spaceId"> {}
7
8 /**
9 * Runtime binding for the `RegisterAdmin` operation (IAM action
10 * `repostspace:RegisterAdmin` on the space ARN).
11 *
12 * Promotes an IAM Identity Center user or group (by accessor id) to
13 * administrator of the bound {@link Space}.
14 * Provide the implementation with
15 * `Effect.provide(AWS.RePostSpace.RegisterAdminHttp)`.
16 * ### Managing Admins
17 * **Example:** Register a space administrator
18 * ```typescript
19 * const registerAdmin = yield* AWS.RePostSpace.RegisterAdmin(space);
20 *
21 * yield* registerAdmin({ adminId: "94682c8d-1234-5678-9abc-e001c76e2c44" });
22 * ```
23 *
24 * @binding
25 */
26 export interface RegisterAdmin extends Binding.Service<
27 RegisterAdmin,
28 "AWS.RePostSpace.RegisterAdmin",
29 (
30 space: Space,
31 ) => Effect.Effect<
32 (
33 request: RegisterAdminRequest,
34 ) => Effect.Effect<repostspace.RegisterAdminResponse, repostspace.RegisterAdminError>
35 >
36 > {}
37 export const RegisterAdmin = Binding.Service<RegisterAdmin>("AWS.RePostSpace.RegisterAdmin");