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

main
ts 48 lines 1.63 KB
Raw
1 import type * as codeconnections from "@distilled.cloud/aws/codeconnections";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Request for {@link ListRepositoryLinks}.
7 */
8 export interface ListRepositoryLinksRequest extends codeconnections.ListRepositoryLinksInput {}
9
10 /**
11 * Runtime binding for `codeconnections:ListRepositoryLinks`.
12 *
13 * An account-level operation (no repository-link argument) that enumerates
14 * the account's repository links — the Git-sync attachments between a
15 * connection and a specific provider repository. Useful for sync dashboards
16 * that discover which repositories are wired up before drilling into their
17 * sync status. Provide the implementation with
18 * `Effect.provide(AWS.CodeConnections.ListRepositoryLinksHttp)`.
19 * ### Monitoring Git Sync
20 * **Example:** List the Account's Repository Links
21 * ```typescript
22 * // init — account-level binding takes no resource
23 * const listRepositoryLinks =
24 * yield* AWS.CodeConnections.ListRepositoryLinks();
25 *
26 * // runtime
27 * const result = yield* listRepositoryLinks();
28 * const repos = (result.RepositoryLinks ?? []).map((l) => l.RepositoryName);
29 * ```
30 *
31 * @binding
32 */
33 export interface ListRepositoryLinks extends Binding.Service<
34 ListRepositoryLinks,
35 "AWS.CodeConnections.ListRepositoryLinks",
36 () => Effect.Effect<
37 (
38 request?: ListRepositoryLinksRequest,
39 ) => Effect.Effect<
40 codeconnections.ListRepositoryLinksOutput,
41 codeconnections.ListRepositoryLinksError
42 >
43 >
44 > {}
45
46 export const ListRepositoryLinks = Binding.Service<ListRepositoryLinks>(
47 "AWS.CodeConnections.ListRepositoryLinks",
48 );