@devries-cameron20 / t3code Mirror · read-only
Fork 0

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

main
ts 47 lines 1.49 KB
Raw
1 import type * as codeartifact from "@distilled.cloud/aws/codeartifact";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { Repository } from "./Repository.ts";
5
6 /**
7 * Request for {@link DescribePackage} — `domain`, `domainOwner`, and
8 * `repository` are injected from the bound {@link Repository}.
9 */
10 export interface DescribePackageRequest extends Omit<
11 codeartifact.DescribePackageRequest,
12 "domain" | "domainOwner" | "repository"
13 > {}
14
15 /**
16 * Runtime binding for `codeartifact:DescribePackage`.
17 *
18 * Reads a package's description, including its origin configuration, from the bound repository. Provide the implementation with
19 * `Effect.provide(AWS.CodeArtifact.DescribePackageHttp)`.
20 * ### Inspecting Packages
21 * **Example:** Describe a Package
22 * ```typescript
23 * const describePackage = yield* AWS.CodeArtifact.DescribePackage(repo);
24 *
25 * const res = yield* describePackage({
26 * format: "generic",
27 * namespace: "my-ns",
28 * package: "my-package",
29 * });
30 * console.log(res.package?.originConfiguration);
31 * ```
32 *
33 * @binding
34 */
35 export interface DescribePackage extends Binding.Service<
36 DescribePackage,
37 "AWS.CodeArtifact.DescribePackage",
38 (
39 repository: Repository,
40 ) => Effect.Effect<
41 (
42 request: DescribePackageRequest,
43 ) => Effect.Effect<codeartifact.DescribePackageResult, codeartifact.DescribePackageError>
44 >
45 > {}
46
47 export const DescribePackage = Binding.Service<DescribePackage>("AWS.CodeArtifact.DescribePackage");