@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 38 lines 1.16 KB
Raw
1 import type * as licensemanager from "@distilled.cloud/aws/license-manager";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Request for {@link AcceptGrant}.
7 */
8 export interface AcceptGrantRequest extends licensemanager.AcceptGrantRequest {}
9
10 /**
11 * Runtime binding for `license-manager:AcceptGrant` — accept a license
12 * grant that another account distributed to this account, activating the
13 * granted entitlements.
14 *
15 * Provide the implementation with
16 * `Effect.provide(AWS.LicenseManager.AcceptGrantHttp)`.
17 * ### Managing Grants
18 * **Example:** Accept a Received Grant
19 * ```typescript
20 * // init
21 * const acceptGrant = yield* AWS.LicenseManager.AcceptGrant();
22 *
23 * // runtime
24 * const { Status } = yield* acceptGrant({ GrantArn: grantArn });
25 * ```
26 *
27 * @binding
28 */
29 export interface AcceptGrant extends Binding.Service<
30 AcceptGrant,
31 "AWS.LicenseManager.AcceptGrant",
32 () => Effect.Effect<
33 (
34 request: AcceptGrantRequest,
35 ) => Effect.Effect<licensemanager.AcceptGrantResponse, licensemanager.AcceptGrantError>
36 >
37 > {}
38 export const AcceptGrant = Binding.Service<AcceptGrant>("AWS.LicenseManager.AcceptGrant");