@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 50 lines 1.58 KB
Raw
1 import type * as mi from "@distilled.cloud/aws/iot-managed-integrations";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Request for {@link SendConnectorEvent}.
7 */
8 export interface SendConnectorEventRequest extends mi.SendConnectorEventRequest {}
9
10 /**
11 * Runtime binding for `iotmanagedintegrations:SendConnectorEvent`
12 * (account-level).
13 *
14 * The cloud-to-cloud connector data plane: a connector Lambda calls this to
15 * push third-party device events (state reports, discovery results, command
16 * responses) into Managed integrations. Provide the implementation with
17 * `Effect.provide(AWS.IoTManagedIntegrations.SendConnectorEventHttp)`.
18 *
19 * ### Connectors
20 * **Example:** Report a Device State Change from a Connector
21 * ```typescript
22 * const sendConnectorEvent = yield* IoTManagedIntegrations.SendConnectorEvent();
23 *
24 * yield* sendConnectorEvent({
25 * ConnectorId: connectorId,
26 * Operation: "DEVICE_EVENT",
27 * ConnectorDeviceId: "third-party-device-1",
28 * Devices: [
29 * {
30 * ConnectorDeviceId: "third-party-device-1",
31 * CapabilityReport: capabilityReport,
32 * },
33 * ],
34 * });
35 * ```
36 *
37 * @binding
38 */
39 export interface SendConnectorEvent extends Binding.Service<
40 SendConnectorEvent,
41 "AWS.IoTManagedIntegrations.SendConnectorEvent",
42 () => Effect.Effect<
43 (
44 request: SendConnectorEventRequest,
45 ) => Effect.Effect<mi.SendConnectorEventResponse, mi.SendConnectorEventError>
46 >
47 > {}
48 export const SendConnectorEvent = Binding.Service<SendConnectorEvent>(
49 "AWS.IoTManagedIntegrations.SendConnectorEvent",
50 );