@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 44 lines 1.29 KB
Raw
1 import type * as connectors from "@distilled.cloud/gcp/connectors_v2";
2 import * as Binding from "alchemy/Binding";
3 import type { RuntimeContext } from "alchemy/RuntimeContext";
4 import type * as Effect from "effect/Effect";
5 import type { ConnectionsEntityTypesEntity } from "./ConnectionsEntityTypesEntity.ts";
6
7 export interface GetEntityRequest extends Omit<
8 connectors.GetProjectsLocationsConnectionsEntityTypesEntitiesRequest,
9 "name"
10 > {}
11
12 /**
13 * Runtime binding for Integration Connectors `entities.get`.
14 *
15 * Bind this operation to a {@link ConnectionsEntityTypesEntity} in a
16 * Function/Action init phase. Provide {@link GetEntityHttp}.
17 *
18 * ### Reading an Entity
19 * **Example:** Get the current row
20 * ```typescript
21 * const getEntity = yield* GCP.Connectors.GetEntity(account);
22 * const live = yield* getEntity();
23 * ```
24 *
25 * @binding
26 * @category Connectors
27 */
28 export interface GetEntity extends Binding.Service<
29 GetEntity,
30 "GCP.Connectors.GetEntity",
31 (
32 entity: ConnectionsEntityTypesEntity,
33 ) => Effect.Effect<
34 (
35 request?: GetEntityRequest,
36 ) => Effect.Effect<
37 connectors.Entity,
38 connectors.GetProjectsLocationsConnectionsEntityTypesEntitiesError,
39 RuntimeContext
40 >
41 >
42 > {}
43
44 export const GetEntity = Binding.Service<GetEntity>("GCP.Connectors.GetEntity");