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 GetChannelRequest extends Omit<repostspace.GetChannelInput, "spaceId"> {} |
| 7 | |
| 8 | /** |
| 9 | * Runtime binding for the `GetChannel` operation (IAM action |
| 10 | * `repostspace:GetChannel` on the space ARN). |
| 11 | * |
| 12 | * Reads a channel of the bound {@link Space} — its name, description, |
| 13 | * status, and per-accessor channel roles. |
| 14 | * Provide the implementation with |
| 15 | * `Effect.provide(AWS.RePostSpace.GetChannelHttp)`. |
| 16 | * ### Managing Channels |
| 17 | * **Example:** Read a channel |
| 18 | * ```typescript |
| 19 | * const getChannel = yield* AWS.RePostSpace.GetChannel(space); |
| 20 | * |
| 21 | * const channel = yield* getChannel({ channelId }); |
| 22 | * console.log(channel.channelName, channel.channelStatus); |
| 23 | * ``` |
| 24 | * |
| 25 | * @binding |
| 26 | */ |
| 27 | export interface GetChannel extends Binding.Service< |
| 28 | GetChannel, |
| 29 | "AWS.RePostSpace.GetChannel", |
| 30 | ( |
| 31 | space: Space, |
| 32 | ) => Effect.Effect< |
| 33 | ( |
| 34 | request: GetChannelRequest, |
| 35 | ) => Effect.Effect<repostspace.GetChannelOutput, repostspace.GetChannelError> |
| 36 | > |
| 37 | > {} |
| 38 | export const GetChannel = Binding.Service<GetChannel>("AWS.RePostSpace.GetChannel"); |