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

main
ts 36 lines 1.24 KB
Raw
1 import type * as schemas from "@distilled.cloud/aws/schemas";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { Discoverer } from "./Discoverer.ts";
5
6 /**
7 * Runtime binding for `schemas:StopDiscoverer`.
8 *
9 * Pauses schema discovery on the bound {@link Discoverer} — e.g. an ops
10 * function halting discovery during a noisy backfill so junk schemas are not
11 * published to the `discovered-schemas` registry. The discoverer id is
12 * injected from the binding. Provide the implementation with
13 * `Effect.provide(AWS.Schemas.StopDiscovererHttp)`.
14 * ### Controlling a Discoverer
15 * **Example:** Pause Discovery
16 * ```typescript
17 * // init — bind the operation to the discoverer
18 * const stopDiscoverer = yield* AWS.Schemas.StopDiscoverer(discoverer);
19 *
20 * // runtime
21 * const { State } = yield* stopDiscoverer();
22 * // State === "STOPPED"
23 * ```
24 *
25 * @binding
26 */
27 export interface StopDiscoverer extends Binding.Service<
28 StopDiscoverer,
29 "AWS.Schemas.StopDiscoverer",
30 (
31 discoverer: Discoverer,
32 ) => Effect.Effect<
33 () => Effect.Effect<schemas.StopDiscovererResponse, schemas.StopDiscovererError>
34 >
35 > {}
36 export const StopDiscoverer = Binding.Service<StopDiscoverer>("AWS.Schemas.StopDiscoverer");