@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.17 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 ListTokens}.
7 */
8 export interface ListTokensRequest extends licensemanager.ListTokensRequest {}
9
10 /**
11 * Runtime binding for `license-manager:ListTokens` — enumerate the refresh
12 * tokens minted for the account's licenses (token metadata only; the token
13 * material itself is returned once by `CreateToken`).
14 *
15 * Provide the implementation with
16 * `Effect.provide(AWS.LicenseManager.ListTokensHttp)`.
17 * ### License Checkout Data Plane
18 * **Example:** List Activation Tokens
19 * ```typescript
20 * // init
21 * const listTokens = yield* AWS.LicenseManager.ListTokens();
22 *
23 * // runtime
24 * const { Tokens } = yield* listTokens();
25 * ```
26 *
27 * @binding
28 */
29 export interface ListTokens extends Binding.Service<
30 ListTokens,
31 "AWS.LicenseManager.ListTokens",
32 () => Effect.Effect<
33 (
34 request?: ListTokensRequest,
35 ) => Effect.Effect<licensemanager.ListTokensResponse, licensemanager.ListTokensError>
36 >
37 > {}
38 export const ListTokens = Binding.Service<ListTokens>("AWS.LicenseManager.ListTokens");