@formant/data-sdk 0.0.66 → 0.0.67

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.
@@ -3,6 +3,9 @@ import { DataChannel } from "./DataChannel";
3
3
  import { CaptureStream } from "./CaptureStream";
4
4
  import { Manipulator } from "./Manipulator";
5
5
  import { TextRequestDataChannel, BinaryRequestDataChannel } from "./RequestDataChannel";
6
+ import { InterventionType } from "./main";
7
+ import { IInterventionTypeMap } from "./main";
8
+ import { IInterventionResponse } from "./main";
6
9
  export interface ConfigurationDocument {
7
10
  urdfFiles: string[];
8
11
  telemetry?: {
@@ -87,4 +90,8 @@ export declare class Device {
87
90
  [key in string]: string[];
88
91
  }): Promise<import("./Fleet").TelemetryResult[]>;
89
92
  getTelemetryStreams(): Promise<TelemetryStream[]>;
93
+ createInterventionRequest<T extends InterventionType>(message: string, interventionType: InterventionType, interventionRequest: IInterventionTypeMap[T]["request"], tags?: {
94
+ [key in string]: string[];
95
+ }): Promise<(id: string) => IInterventionTypeMap[T]["response"]>;
96
+ addInterventionResponse<T extends InterventionType>(interventionId: string, interventionType: InterventionType, data: IInterventionTypeMap[T]["response"]): Promise<IInterventionResponse>;
90
97
  }
@@ -33,4 +33,5 @@ export declare class Fleet {
33
33
  static getFileUrl(uuid: string): Promise<string>;
34
34
  static queryTelemetry(query: IQuery): Promise<IStreamData<keyof import("./main").IStreamTypeMap>[]>;
35
35
  static queryEvents(query: IEventQuery): Promise<IEvent[]>;
36
+ static getInterventions(): Promise<IEvent[]>;
36
37
  }
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "require": "./dist/data-sdk.umd.js"
19
19
  }
20
20
  },
21
- "version": "0.0.66",
21
+ "version": "0.0.67",
22
22
  "scripts": {
23
23
  "dev": "vite --port 9146",
24
24
  "build": "tsc && vite build",