@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 49 lines 1.77 KB
Raw
1 import type * as appflow from "@distilled.cloud/aws/appflow";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { ConnectorProfile } from "./ConnectorProfile.ts";
5
6 export interface ListConnectorEntitiesRequest extends Omit<
7 appflow.ListConnectorEntitiesRequest,
8 "connectorProfileName"
9 > {}
10
11 /**
12 * Runtime binding for `appflow:ListConnectorEntities`.
13 *
14 * Bind this operation to a {@link ConnectorProfile} in the function's init
15 * phase to get a callable that discovers the entities the connected
16 * application exposes (e.g. Salesforce objects, database tables) — useful for
17 * dynamic schema discovery at runtime. The connector profile name is injected
18 * automatically and `appflow:ListConnectorEntities` is granted on the
19 * profile. Provide the implementation with
20 * `Effect.provide(AWS.AppFlow.ListConnectorEntitiesHttp)`.
21 * ### Discovering Connector Entities
22 * **Example:** List the Entities Behind a Connector Profile
23 * ```typescript
24 * // init — bind the operation to the connector profile
25 * const listConnectorEntities =
26 * yield* AWS.AppFlow.ListConnectorEntities(profile);
27 *
28 * // runtime — enumerate the connector's entities
29 * const result = yield* listConnectorEntities();
30 * // result.connectorEntityMap groups entities by category
31 * ```
32 *
33 * @binding
34 */
35 export interface ListConnectorEntities extends Binding.Service<
36 ListConnectorEntities,
37 "AWS.AppFlow.ListConnectorEntities",
38 (
39 profile: ConnectorProfile,
40 ) => Effect.Effect<
41 (
42 request?: ListConnectorEntitiesRequest,
43 ) => Effect.Effect<appflow.ListConnectorEntitiesResponse, appflow.ListConnectorEntitiesError>
44 >
45 > {}
46
47 export const ListConnectorEntities = Binding.Service<ListConnectorEntities>(
48 "AWS.AppFlow.ListConnectorEntities",
49 );