@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 34 lines 1.25 KB
Raw
1 import type * as signer from "@distilled.cloud/aws/signer";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Runtime binding for `signer:RevokeSignature`.
7 *
8 * Permanently invalidates the signature produced by a single signing job —
9 * the surgical alternative to revoking a whole profile version when one
10 * artifact is compromised. Account-level operation — job ids are chosen per
11 * request at runtime, so the binding takes no resource argument. Provide the
12 * implementation with `Effect.provide(AWS.Signer.RevokeSignatureHttp)`.
13 * ### Revoking Signatures
14 * **Example:** Revoke One Job's Signature
15 * ```typescript
16 * // init — account-level binding, no resource argument
17 * const revokeSignature = yield* AWS.Signer.RevokeSignature();
18 *
19 * // runtime
20 * yield* revokeSignature({ jobId, reason: "artifact compromised" });
21 * ```
22 *
23 * @binding
24 */
25 export interface RevokeSignature extends Binding.Service<
26 RevokeSignature,
27 "AWS.Signer.RevokeSignature",
28 () => Effect.Effect<
29 (
30 request: signer.RevokeSignatureRequest,
31 ) => Effect.Effect<signer.RevokeSignatureResponse, signer.RevokeSignatureError>
32 >
33 > {}
34 export const RevokeSignature = Binding.Service<RevokeSignature>("AWS.Signer.RevokeSignature");