@formant/data-sdk 1.80.1 → 1.80.3
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.
- package/dist/data-sdk.cjs.js +1 -1
- package/dist/data-sdk.cjs.js.map +1 -1
- package/dist/data-sdk.es.js +6 -11
- package/dist/data-sdk.es.js.map +1 -1
- package/dist/data-sdk.es6.js +6 -11
- package/dist/data-sdk.umd.js +1 -1
- package/dist/types/data-sdk/src/devices/BaseDevice.d.ts +2 -0
- package/dist/types/data-sdk/src/devices/Device.d.ts +2 -2
- package/dist/types/data-sdk/src/devices/device.types.d.ts +25 -1
- package/dist/types/data-sdk/src/main.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IRtcSendConfiguration, IRtcStreamMessage, RtcClient, IRtcPeer } from "@formant/realtime-sdk";
|
|
2
|
+
import { IPingInfo } from "@formant/realtime-sdk/dist/rtc-client/models/IPingInfo";
|
|
2
3
|
import { DataChannel } from "../DataChannel";
|
|
3
4
|
import { EventEmitter } from "eventemitter3";
|
|
4
5
|
import { Manipulator } from "../Manipulator";
|
|
@@ -25,6 +26,7 @@ export declare abstract class BaseDevice extends EventEmitter implements IRealti
|
|
|
25
26
|
protected stopConnectionMonitoring(): void;
|
|
26
27
|
protected assertNotCancelled(cancelled: boolean): void;
|
|
27
28
|
getRealtimeStatus(): "disconnected" | "connecting" | "connected";
|
|
29
|
+
getRealtimePingInfo(): IPingInfo | undefined;
|
|
28
30
|
getRealtimePing(): number | undefined;
|
|
29
31
|
addRealtimeListener(listener: RealtimeListener): void;
|
|
30
32
|
removeRealtimeListener(listener: RealtimeListener): void;
|
|
@@ -17,7 +17,7 @@ import { ITags } from "../model/ITags";
|
|
|
17
17
|
import { SessionType } from "../model/SessionType";
|
|
18
18
|
import { TelemetryResult } from "../model/TelemetryResult";
|
|
19
19
|
import { BaseDevice } from "./BaseDevice";
|
|
20
|
-
import {
|
|
20
|
+
import { ConfigurationDocument, ICommandTemplate, IStartRealtimeConnectionOptions, TelemetryStream } from "./device.types";
|
|
21
21
|
export declare class Device extends BaseDevice {
|
|
22
22
|
id: string;
|
|
23
23
|
name: string;
|
|
@@ -58,7 +58,7 @@ export declare class Device extends BaseDevice {
|
|
|
58
58
|
getRemotePeer(): Promise<IRtcPeer>;
|
|
59
59
|
stopRealtimeConnection(): Promise<void>;
|
|
60
60
|
isInRealtimeSession(): Promise<boolean>;
|
|
61
|
-
getAvailableCommands(includeDisabled?: boolean): Promise<
|
|
61
|
+
getAvailableCommands(includeDisabled?: boolean): Promise<ICommandTemplate[]>;
|
|
62
62
|
sendCommand(name: string, data?: string, time?: Date, metadata?: {}, id?: string): Promise<Response>;
|
|
63
63
|
getCommand(id: string): Promise<Response>;
|
|
64
64
|
createCaptureStream(streamName: string): Promise<CaptureStream>;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { IRtcStreamPayload, RtcStreamType } from "@formant/realtime-sdk";
|
|
2
|
+
import { IDictionary } from "../model/IDictionary";
|
|
3
|
+
import { IFilter } from "../model/IFilter";
|
|
4
|
+
import { IScopeFilter } from "../model/IScopeFilter";
|
|
5
|
+
import { ITaggedEntity } from "../model/ITaggedEntity";
|
|
2
6
|
import { ITags } from "../model/ITags";
|
|
3
|
-
import { Uuid } from "../model/Uuid";
|
|
4
7
|
import { SessionType } from "../model/SessionType";
|
|
8
|
+
import { Uuid } from "../model/Uuid";
|
|
5
9
|
export interface ConfigurationDocument {
|
|
6
10
|
tags: ITags;
|
|
7
11
|
urdfFiles: string[];
|
|
@@ -34,6 +38,26 @@ export interface ConfigurationDocument {
|
|
|
34
38
|
};
|
|
35
39
|
};
|
|
36
40
|
}
|
|
41
|
+
export interface ICommandDeliverySettings {
|
|
42
|
+
ttlMs?: number;
|
|
43
|
+
retryable?: boolean;
|
|
44
|
+
}
|
|
45
|
+
export interface ICommandTemplate extends ITaggedEntity {
|
|
46
|
+
organizationId?: Uuid;
|
|
47
|
+
name: string;
|
|
48
|
+
command: string;
|
|
49
|
+
description?: string;
|
|
50
|
+
parameterEnabled: boolean;
|
|
51
|
+
allowParameterOverride?: boolean;
|
|
52
|
+
parameterValue?: string | null;
|
|
53
|
+
parameterMeta?: IDictionary;
|
|
54
|
+
deviceScope?: IScopeFilter;
|
|
55
|
+
enabled?: boolean;
|
|
56
|
+
deviceFilter: IFilter | null;
|
|
57
|
+
lambdaUri?: string | null;
|
|
58
|
+
deliverySettings?: ICommandDeliverySettings;
|
|
59
|
+
schema?: string | null;
|
|
60
|
+
}
|
|
37
61
|
export interface Command {
|
|
38
62
|
id: string;
|
|
39
63
|
name: string;
|
|
@@ -17,7 +17,7 @@ export { User } from "./User";
|
|
|
17
17
|
export { Views } from "./Views";
|
|
18
18
|
export type { CaptureSession } from "./CaptureStream";
|
|
19
19
|
export type { DataChannelBinaryListener, DataChannelErrorListener, DataChannelListener, DataChannelStringListener, } from "./DataChannel";
|
|
20
|
-
export type { Command, ConfigurationDocument, IAdapterConfiguration, IJointState, IStartRealtimeConnectionOptions, RealtimeAudioStream, RealtimeDataStream, RealtimeListener, RealtimeMessage, RealtimeVideoStream, TelemetryStream, } from "./devices/device.types";
|
|
20
|
+
export type { Command, ConfigurationDocument, IAdapterConfiguration, ICommandTemplate, IJointState, IStartRealtimeConnectionOptions, RealtimeAudioStream, RealtimeDataStream, RealtimeListener, RealtimeMessage, RealtimeVideoStream, TelemetryStream, } from "./devices/device.types";
|
|
21
21
|
export type { RealtimeManipulatorConfig } from "./Manipulator";
|
|
22
22
|
export type { DataPoint, ModuleData, QueryRange, Stream, StreamData, } from "./message-bus/listeners/addModuleDataListener";
|
|
23
23
|
export type { EmbeddedAppMessage, IDevice, ModuleConfigurationMessage, } from "./message-bus/listeners/EmbeddedAppMessage";
|