@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 41 lines 1.34 KB
Raw
1 import type * as location from "@distilled.cloud/aws/location";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { Map as LocationMap } from "./Map.ts";
5
6 /**
7 * `GetMapSprites` request with `MapName` injected from the bound
8 * resource.
9 */
10 export interface GetMapSpritesRequest extends Omit<location.GetMapSpritesRequest, "MapName"> {}
11
12 /**
13 * Retrieves the map's sprite sheet (PNG) or sprite index (JSON) used to render icons.
14 *
15 * Runtime binding for the `GetMapSprites` operation (IAM action
16 * `geo:GetMapSprites`), scoped to one {@link LocationMap | Map}. Provide the implementation with
17 * `Effect.provide(AWS.Location.GetMapSpritesHttp)`.
18 *
19 * ### Serving Map Assets
20 * **Example:** Serve the Sprite Index
21 * ```typescript
22 * const getSprites = yield* Location.GetMapSprites(map);
23 *
24 * const sprites = yield* getSprites({ FileName: "sprites.json" });
25 * // sprites.Blob → sprite index JSON bytes
26 * ```
27 *
28 * @binding
29 */
30 export interface GetMapSprites extends Binding.Service<
31 GetMapSprites,
32 "AWS.Location.GetMapSprites",
33 (
34 map: LocationMap,
35 ) => Effect.Effect<
36 (
37 request: GetMapSpritesRequest,
38 ) => Effect.Effect<location.GetMapSpritesResponse, location.GetMapSpritesError>
39 >
40 > {}
41 export const GetMapSprites = Binding.Service<GetMapSprites>("AWS.Location.GetMapSprites");