The best way to control Claude Code, Codex and more from any computer or phone

main
ts 44 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 * `GetMapGlyphs` request with `MapName` injected from the bound
8 * resource.
9 */
10 export interface GetMapGlyphsRequest extends Omit<location.GetMapGlyphsRequest, "MapName"> {}
11
12 /**
13 * Retrieves a glyph range (font PBF) used to render map labels.
14 *
15 * Runtime binding for the `GetMapGlyphs` operation (IAM action
16 * `geo:GetMapGlyphs`), scoped to one {@link LocationMap | Map}. Provide the implementation with
17 * `Effect.provide(AWS.Location.GetMapGlyphsHttp)`.
18 *
19 * ### Serving Map Assets
20 * **Example:** Serve Glyphs
21 * ```typescript
22 * const getGlyphs = yield* Location.GetMapGlyphs(map);
23 *
24 * const glyphs = yield* getGlyphs({
25 * FontStack: "Arial Regular",
26 * FontUnicodeRange: "0-255.pbf",
27 * });
28 * // glyphs.Blob → protobuf-encoded glyph bytes
29 * ```
30 *
31 * @binding
32 */
33 export interface GetMapGlyphs extends Binding.Service<
34 GetMapGlyphs,
35 "AWS.Location.GetMapGlyphs",
36 (
37 map: LocationMap,
38 ) => Effect.Effect<
39 (
40 request: GetMapGlyphsRequest,
41 ) => Effect.Effect<location.GetMapGlyphsResponse, location.GetMapGlyphsError>
42 >
43 > {}
44 export const GetMapGlyphs = Binding.Service<GetMapGlyphs>("AWS.Location.GetMapGlyphs");