@lifesi/genesis 0.0.0-stage → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,19 @@
1
+ import type { GenesisClient } from './client.js';
2
+ import type { OperationInput, OperationOutput } from './types.js';
3
+ /** Beacons uses the authenticated Genesis organization; never supply an org header. */
4
+ export declare function beaconsModule(client: GenesisClient): {
5
+ devices: {
6
+ list: () => Promise<{
7
+ data?: import("./index.js").components["schemas"]["Beacons.BridgeDevice"][];
8
+ }>;
9
+ update: (id: string, body: OperationInput<"beacons_updateBridgeDevice">["body"]) => Promise<{
10
+ id: string;
11
+ org_id: string;
12
+ name: string;
13
+ nicknames: string[];
14
+ created_at: string;
15
+ status: string;
16
+ }>;
17
+ revoke: (id: string) => Promise<OperationOutput<"beacons_revokeBridgeDevice"> | undefined>;
18
+ };
19
+ };
@@ -0,0 +1,10 @@
1
+ /** Beacons uses the authenticated Genesis organization; never supply an org header. */
2
+ export function beaconsModule(client) {
3
+ return {
4
+ devices: {
5
+ list: () => client.request('beacons_listBridgeDevices'),
6
+ update: (id, body) => client.request('beacons_updateBridgeDevice', { id, body }),
7
+ revoke: (id) => client.request('beacons_revokeBridgeDevice', { id }),
8
+ },
9
+ };
10
+ }