@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, 06:00 UTC

main
ts 42 lines 1.33 KB
Raw
1 import type * as datazone from "@distilled.cloud/aws/datazone";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { Domain } from "./Domain.ts";
5
6 export interface AcceptPredictionsRequest extends Omit<
7 datazone.AcceptPredictionsInput,
8 "domainIdentifier"
9 > {}
10
11 /**
12 * Runtime binding for `datazone:AcceptPredictions`.
13 *
14 * Accepts ML-generated metadata predictions (business-name suggestions) on an asset in the bound domain. The domain id is injected from the binding.
15 * Provide the implementation with
16 * `Effect.provide(AWS.DataZone.AcceptPredictionsHttp)`.
17 * ### Publishing Assets
18 * **Example:** Accept All Predictions
19 * ```typescript
20 * // init — bind the operation to the domain
21 * const acceptPredictions = yield* AWS.DataZone.AcceptPredictions(domain);
22 *
23 * // runtime
24 * yield* acceptPredictions({ identifier: assetId, acceptRule: { rule: "ALL" } });
25 * ```
26 *
27 * @binding
28 */
29 export interface AcceptPredictions extends Binding.Service<
30 AcceptPredictions,
31 "AWS.DataZone.AcceptPredictions",
32 (
33 domain: Domain,
34 ) => Effect.Effect<
35 (
36 request: AcceptPredictionsRequest,
37 ) => Effect.Effect<datazone.AcceptPredictionsOutput, datazone.AcceptPredictionsError>
38 >
39 > {}
40 export const AcceptPredictions = Binding.Service<AcceptPredictions>(
41 "AWS.DataZone.AcceptPredictions",
42 );