@formant/data-sdk 1.11.0 → 1.12.0

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.
@@ -6,10 +6,12 @@ export declare const AppRtcClientPools: {
6
6
  readonly teleop: RtcClientPool<RtcClient>;
7
7
  readonly portForward: RtcClientPool<RtcClient>;
8
8
  readonly observe: RtcClientPool<RtcClient>;
9
+ readonly headless: RtcClientPool<RtcClient>;
9
10
  readonly 0: RtcClientPool<RtcClient>;
10
11
  readonly 1: RtcClientPool<RtcClient>;
11
12
  readonly 2: RtcClientPool<RtcClient>;
12
13
  readonly 3: RtcClientPool<RtcClient>;
14
+ readonly 4: RtcClientPool<RtcClient>;
13
15
  };
14
16
  export declare const defaultRtcClientPool: RtcClientPool<RtcClient>;
15
17
  export declare const getRtcClientPool: (options: {
File without changes
@@ -36,6 +36,9 @@ import { queryDevices } from "./api/queryDevices";
36
36
  import { queryEvents } from "./api/queryEvents";
37
37
  import { queryTelemetry } from "./api/queryTelemetry";
38
38
  import { createFleet } from "./api/createFleet";
39
+ import { getAllEventTriggerGroup } from "./api/getAllEventTriggerGroup";
40
+ import { getEventTriggerGroup } from "./api/getEventTriggerGroup";
41
+ import { patchEventTriggerGroup } from "./api/patchEventTriggerGroup";
39
42
  export declare class Fleet {
40
43
  static defaultDeviceId: string | undefined;
41
44
  static knownContext: WeakRef<Device>[];
@@ -79,4 +82,7 @@ export declare class Fleet {
79
82
  static queryDevices: typeof queryDevices;
80
83
  static queryEvents: typeof queryEvents;
81
84
  static queryTelemetry: typeof queryTelemetry;
85
+ static getAllEventTriggerGroup: typeof getAllEventTriggerGroup;
86
+ static getEventTriggerGroup: typeof getEventTriggerGroup;
87
+ static patchEventTriggergroup: typeof patchEventTriggerGroup;
82
88
  }
@@ -0,0 +1,2 @@
1
+ import { IEventTriggerGroup } from "../model/IEventTriggerGroup";
2
+ export declare function getAllEventTriggerGroup(): Promise<IEventTriggerGroup[]>;
@@ -0,0 +1,2 @@
1
+ import { IEventTriggerGroup } from "../model/IEventTriggerGroup";
2
+ export declare function getEventTriggerGroup(id: string): Promise<IEventTriggerGroup>;
@@ -1,2 +1,2 @@
1
- import { IRtcPeer } from "@formant/realtime-sdk/dist/model/IRtcPeer";
1
+ import { IRtcPeer } from "@formant/realtime-sdk";
2
2
  export declare function getPeers(): Promise<IRtcPeer[]>;
@@ -0,0 +1,2 @@
1
+ import { IEventTriggerGroup } from "../model/IEventTriggerGroup";
2
+ export declare function patchEventTriggerGroup(id: string, eventTrigger: Partial<IEventTriggerGroup>): Promise<IEventTriggerGroup>;
@@ -1,9 +1,8 @@
1
- import { IRtcSendConfiguration, IRtcStreamMessage, RtcClient } from "@formant/realtime-sdk";
1
+ import { IRtcSendConfiguration, IRtcStreamMessage, RtcClient, IRtcPeer } from "@formant/realtime-sdk";
2
2
  import { DataChannel } from "../DataChannel";
3
3
  import { EventEmitter } from "eventemitter3";
4
4
  import { Manipulator } from "../Manipulator";
5
5
  import { BinaryRequestDataChannel, TextRequestDataChannel } from "../RequestDataChannel";
6
- import { IRtcPeer } from "@formant/realtime-sdk/dist/model/IRtcPeer";
7
6
  import { IRealtimeSubscriber } from "./IRealtimeSubscriber";
8
7
  import { ICustomDataChannelCreator } from "./ICustomDataChannelCreator";
9
8
  import { ConfigurationDocument, RealtimeListener, RealtimeAudioStream, RealtimeVideoStream, RealtimeDataStream } from "./device.types";
@@ -1,4 +1,4 @@
1
- import { IRtcPeer } from "@formant/realtime-sdk/dist/model/IRtcPeer";
1
+ import { IRtcPeer } from "@formant/realtime-sdk";
2
2
  import { CaptureStream } from "../CaptureStream";
3
3
  import { InterventionType } from "../model/InterventionType";
4
4
  import { IInterventionTypeMap } from "../model/IInterventionTypeMap";
@@ -1,5 +1,5 @@
1
+ import { IRtcPeer } from "@formant/realtime-sdk";
1
2
  import { IStreamCurrentValue } from "../model/IStreamCurrentValue";
2
- import { IRtcPeer } from "@formant/realtime-sdk/dist/model/IRtcPeer";
3
3
  import { ConfigurationDocument } from "./device.types";
4
4
  import { BaseDevice } from "./BaseDevice";
5
5
  export declare class PeerDevice extends BaseDevice {
@@ -1,8 +1,7 @@
1
- import { IRtcStreamPayload } from "@formant/realtime-sdk";
1
+ import { IRtcStreamPayload, RtcStreamType } from "@formant/realtime-sdk";
2
2
  import { ITags } from "../model/ITags";
3
3
  import { Uuid } from "../model/Uuid";
4
4
  import { SessionType } from "../model/SessionType";
5
- import { RtcStreamType } from "@formant/realtime-sdk/dist/model/RtcStreamType";
6
5
  export interface ConfigurationDocument {
7
6
  tags: ITags;
8
7
  urdfFiles: string[];
@@ -0,0 +1,13 @@
1
+ import { Uuid } from "./Uuid";
2
+ import { IScopeFilter } from "./IScopeFilter";
3
+ import { ITaggedEntity } from "./ITaggedEntity";
4
+ import { ITags } from "./ITags";
5
+ import { IDevice } from "./IDevice";
6
+ export interface IEventTriggerGroup extends ITaggedEntity {
7
+ organizationId?: Uuid;
8
+ deviceScope: IScopeFilter;
9
+ enabled?: boolean;
10
+ smsTags: ITags;
11
+ phoneNumbers?: string[];
12
+ devices?: IDevice[];
13
+ }
@@ -5,18 +5,22 @@ export declare const SessionTypes: {
5
5
  readonly TELEOP: 1;
6
6
  readonly PORT_FORWARD: 2;
7
7
  readonly OBSERVE: 3;
8
+ readonly HEADLESS: 4;
8
9
  };
9
10
  export declare const SessionTypeConstants: {
10
11
  readonly Unknown: 0;
11
12
  readonly Teleop: 1;
12
13
  readonly PortForward: 2;
13
14
  readonly Observe: 3;
15
+ readonly Headless: 4;
14
16
  readonly unknown: 0;
15
17
  readonly teleop: 1;
16
18
  readonly portForward: 2;
17
19
  readonly observe: 3;
20
+ readonly headless: 4;
18
21
  readonly UNKNOWN: 0;
19
22
  readonly TELEOP: 1;
20
23
  readonly PORT_FORWARD: 2;
21
24
  readonly OBSERVE: 3;
25
+ readonly HEADLESS: 4;
22
26
  };
@@ -1,2 +1,2 @@
1
- import { IRtcPeer } from "@formant/realtime-sdk/dist/model/IRtcPeer";
1
+ import { IRtcPeer } from "@formant/realtime-sdk";
2
2
  export declare const isRtcPeer: (peer: IRtcPeer | undefined) => peer is IRtcPeer;
package/package.json CHANGED
@@ -24,7 +24,7 @@
24
24
  }
25
25
  }
26
26
  },
27
- "version": "1.11.0",
27
+ "version": "1.12.0",
28
28
  "scripts": {
29
29
  "preversion": "npm run verify",
30
30
  "postversion": "make",
@@ -46,7 +46,7 @@
46
46
  "docs": "typedoc src/main.ts --theme default --out ../../docs/data-sdk/"
47
47
  },
48
48
  "devDependencies": {
49
- "@formant/realtime-sdk": "1.0.0",
49
+ "@formant/realtime-sdk": "1.2.0",
50
50
  "@types/base-64": "^1.0.0",
51
51
  "@types/node": "^18.16.3",
52
52
  "@types/pako": "^2.0.0",
@@ -69,7 +69,7 @@
69
69
  "pako": "^2.1.0"
70
70
  },
71
71
  "peerDependencies": {
72
- "@formant/realtime-sdk": "^0.0.20 || ^1.0.0"
72
+ "@formant/realtime-sdk": "^1.2.0"
73
73
  },
74
74
  "engines": {
75
75
  "node": "^18.12.0 || ^16.13.0"