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
| 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 StartDeviceDiscovery}. |
| 7 | */ |
| 8 | export interface StartDeviceDiscoveryRequest extends mi.StartDeviceDiscoveryRequest {} |
| 9 | |
| 10 | /** |
| 11 | * Runtime binding for `iotmanagedintegrations:StartDeviceDiscovery` |
| 12 | * (account-level). |
| 13 | * |
| 14 | * Starts a discovery scan for devices reachable through a controller |
| 15 | * (`ZWAVE`/`ZIGBEE`), a cloud-to-cloud connector (`CLOUD`), or a custom |
| 16 | * protocol. Provide the implementation with |
| 17 | * `Effect.provide(AWS.IoTManagedIntegrations.StartDeviceDiscoveryHttp)`. |
| 18 | * |
| 19 | * ### Discovering Devices |
| 20 | * **Example:** Start a Zigbee Discovery Scan |
| 21 | * ```typescript |
| 22 | * // init — account-level binding takes no resource |
| 23 | * const startDiscovery = yield* IoTManagedIntegrations.StartDeviceDiscovery(); |
| 24 | * |
| 25 | * // runtime |
| 26 | * const { Id } = yield* startDiscovery({ |
| 27 | * DiscoveryType: "ZIGBEE", |
| 28 | * ControllerIdentifier: controllerManagedThingId, |
| 29 | * }); |
| 30 | * ``` |
| 31 | * |
| 32 | * @binding |
| 33 | */ |
| 34 | export interface StartDeviceDiscovery extends Binding.Service< |
| 35 | StartDeviceDiscovery, |
| 36 | "AWS.IoTManagedIntegrations.StartDeviceDiscovery", |
| 37 | () => Effect.Effect< |
| 38 | ( |
| 39 | request: StartDeviceDiscoveryRequest, |
| 40 | ) => Effect.Effect<mi.StartDeviceDiscoveryResponse, mi.StartDeviceDiscoveryError> |
| 41 | > |
| 42 | > {} |
| 43 | export const StartDeviceDiscovery = Binding.Service<StartDeviceDiscovery>( |
| 44 | "AWS.IoTManagedIntegrations.StartDeviceDiscovery", |
| 45 | ); |