The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 04:45 UTC
| 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 SendInvitesRequest extends Omit<repostspace.SendInvitesInput, "spaceId"> {} |
| 7 | |
| 8 | /** |
| 9 | * Runtime binding for the `SendInvites` operation (IAM action |
| 10 | * `repostspace:SendInvites` on the space ARN). |
| 11 | * |
| 12 | * Sends invitation emails (with a custom title and body) to users or |
| 13 | * groups of the bound {@link Space}, identified by their IAM Identity |
| 14 | * Center accessor ids. |
| 15 | * Provide the implementation with |
| 16 | * `Effect.provide(AWS.RePostSpace.SendInvitesHttp)`. |
| 17 | * ### Inviting Users |
| 18 | * **Example:** Invite users to the private re:Post |
| 19 | * ```typescript |
| 20 | * const sendInvites = yield* AWS.RePostSpace.SendInvites(space); |
| 21 | * |
| 22 | * yield* sendInvites({ |
| 23 | * accessorIds: ["94682c8d-1234-5678-9abc-e001c76e2c44"], |
| 24 | * title: "Join our internal re:Post", |
| 25 | * body: "Ask and answer questions about our AWS workloads.", |
| 26 | * }); |
| 27 | * ``` |
| 28 | * |
| 29 | * @binding |
| 30 | */ |
| 31 | export interface SendInvites extends Binding.Service< |
| 32 | SendInvites, |
| 33 | "AWS.RePostSpace.SendInvites", |
| 34 | ( |
| 35 | space: Space, |
| 36 | ) => Effect.Effect< |
| 37 | ( |
| 38 | request: SendInvitesRequest, |
| 39 | ) => Effect.Effect<repostspace.SendInvitesResponse, repostspace.SendInvitesError> |
| 40 | > |
| 41 | > {} |
| 42 | export const SendInvites = Binding.Service<SendInvites>("AWS.RePostSpace.SendInvites"); |