@formant/realtime-sdk 0.0.19 → 1.0.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.
- package/LICENSE.txt +19 -0
- package/README.md +43 -0
- package/dist/{common → client}/Credentials.d.ts +1 -1
- package/dist/common/BaseClient.d.ts +4 -3
- package/dist/common/LogReporter.d.ts +1 -3
- package/dist/common/LruCache.d.ts +1 -1
- package/dist/common/PromiseLruCache.d.ts +1 -1
- package/dist/common/ResponseError.d.ts +3 -2
- package/dist/common/StatsManager.d.ts +1 -1
- package/dist/common/StatsReporter.d.ts +7 -6
- package/dist/common/config/index.d.ts +2 -0
- package/dist/common/defined.d.ts +3 -0
- package/dist/common/isErrorType.d.ts +1 -0
- package/dist/common/narrowError.d.ts +1 -1
- package/dist/common/redact.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/model/AnnotationAreaType.d.ts +2 -0
- package/dist/model/CognitoRegion.d.ts +2 -0
- package/dist/model/Feature.d.ts +2 -2
- package/dist/model/HealthStatus.d.ts +2 -0
- package/dist/model/HexRgbColor.d.ts +1 -0
- package/dist/model/IAnnotationAreaTypeMap.d.ts +4 -0
- package/dist/model/IBattery.d.ts +6 -0
- package/dist/model/IBitset.d.ts +4 -0
- package/dist/model/IBoundingBox.d.ts +6 -0
- package/dist/model/IDictionary.d.ts +3 -0
- package/dist/model/IFile.d.ts +6 -0
- package/dist/model/IFilter.d.ts +10 -0
- package/dist/model/IGoal.d.ts +5 -0
- package/dist/model/IHealth.d.ts +5 -0
- package/dist/model/IImage.d.ts +6 -0
- package/dist/model/IImageAnnotation.d.ts +9 -0
- package/dist/model/ILocalization.d.ts +14 -0
- package/dist/model/ILocation.d.ts +6 -0
- package/dist/model/IMap.d.ts +10 -0
- package/dist/model/INumericSetEntry.d.ts +5 -0
- package/dist/model/IOdometry.d.ts +7 -0
- package/dist/model/IPath.d.ts +5 -0
- package/dist/model/IPoint.d.ts +1 -1
- package/dist/model/IPointCloud.d.ts +6 -0
- package/dist/model/IRtcSession.d.ts +1 -1
- package/dist/model/IRtcStream.d.ts +1 -0
- package/dist/model/IScopeFilter.d.ts +6 -0
- package/dist/model/IStreamTypeMap.d.ts +27 -0
- package/dist/model/ITagSets.d.ts +3 -0
- package/dist/model/ITags.d.ts +2 -3
- package/dist/model/ITransformNode.d.ts +8 -0
- package/dist/model/IUser.d.ts +18 -4
- package/dist/model/IUserScope.d.ts +16 -0
- package/dist/model/IVideo.d.ts +7 -0
- package/dist/model/IsoDate.d.ts +1 -1
- package/dist/model/LanguageType.d.ts +2 -0
- package/dist/model/LogLevel.d.ts +1 -1
- package/dist/model/Marker3DAction.d.ts +1 -1
- package/dist/model/Marker3DType.d.ts +1 -1
- package/dist/model/OrganizationPlan.d.ts +1 -1
- package/dist/model/RequireKeys.d.ts +3 -0
- package/dist/model/RtcConnectionStatus.d.ts +1 -1
- package/dist/model/RtcIceServerProtocol.d.ts +1 -1
- package/dist/model/RtcIceTransportPolicy.d.ts +1 -1
- package/dist/model/RtcStreamType.d.ts +2 -2
- package/dist/model/SmsOptInStatus.d.ts +2 -0
- package/dist/model/StreamType.d.ts +2 -0
- package/dist/model/Timeout.d.ts +1 -1
- package/dist/model/Timestamp.d.ts +1 -1
- package/dist/model/Uuid.d.ts +1 -1
- package/dist/model/VideoMimeType.d.ts +2 -0
- package/dist/model/cognitoRegions.d.ts +1 -0
- package/dist/model/features.d.ts +1 -1
- package/dist/model/healthStatuses.d.ts +5 -0
- package/dist/model/languageTypes.d.ts +1 -0
- package/dist/model/rtcStreamTypes.d.ts +2 -1
- package/dist/model/smsOptInStatuses.d.ts +1 -0
- package/dist/model/videoMimeTypes.d.ts +1 -0
- package/dist/protos/api/signaling/v1/signaling_grpc_web_pb.d.ts +106 -120
- package/dist/protos/api/signaling/v1/signaling_grpc_web_pb.js +27 -175
- package/dist/protos/api/signaling/v1/signaling_pb.js +7 -1
- package/dist/realtime-sdk/src/index.d.ts +10 -10
- package/dist/rtc-client/DeadlineEnforcer.d.ts +4 -0
- package/dist/rtc-client/DeadlineReachedError.d.ts +3 -0
- package/dist/rtc-client/IHasPeerConnection.d.ts +3 -0
- package/dist/rtc-client/IHasRemoteDeviceId.d.ts +4 -0
- package/dist/rtc-client/RtcClient.d.ts +3 -0
- package/dist/rtc-client/RtcClientV1.d.ts +1 -0
- package/dist/rtc-client/RtcConnection.d.ts +18 -14
- package/dist/rtc-client/RtcConnectionV1.d.ts +2 -1
- package/dist/rtc-client/RtcSessionMetrics.d.ts +5 -4
- package/dist/rtc-client/RtcSessionMetricsV1.d.ts +8 -6
- package/dist/rtc-client/gatherPingMetrics.d.ts +2 -2
- package/dist/rtc-client/models/IIceMode.d.ts +1 -1
- package/dist/rtc-client/models/IRtcClientConfiguration.d.ts +1 -1
- package/dist/rtc-client/models/IRtcConnectionConfiguration.d.ts +1 -1
- package/dist/rtc-client/models/IRtcStreamPayload.d.ts +2 -0
- package/dist/rtc-client/models/IStreamControl.d.ts +1 -1
- package/dist/rtc-client/models/RtcChannelLabel.d.ts +1 -1
- package/dist/rtc-client/models/RtcCommunicationType.d.ts +1 -1
- package/dist/rtc-client/utils/assertHasPeerConnection.d.ts +1 -0
- package/dist/rtc-client/utils/garbageCollect.d.ts +1 -0
- package/dist/rtc-client/utils/getErrorMessage.d.ts +1 -0
- package/dist/rtc-client/utils/partition.d.ts +1 -0
- package/dist/ui/utils/browser.d.ts +1 -1
- package/package.json +3 -3
- package/dist/protos/api/signaling/v1/signaling_grpc_pb.js +0 -276
package/dist/model/Feature.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { agentFeatures, features } from "./features";
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type Feature = (typeof features)[number];
|
|
3
|
+
export type AgentFeature = (typeof agentFeatures)[number];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type HexRgbColor = string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ITagSets } from "./ITagSets";
|
|
2
|
+
import { StreamType } from "./StreamType";
|
|
3
|
+
import { Uuid } from "./Uuid";
|
|
4
|
+
export interface IFilter {
|
|
5
|
+
deviceIds?: Uuid[];
|
|
6
|
+
names?: string[];
|
|
7
|
+
types?: StreamType[];
|
|
8
|
+
tags?: ITagSets | ITagSets[];
|
|
9
|
+
notNames?: string[];
|
|
10
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AnnotationAreaType } from "./AnnotationAreaType";
|
|
2
|
+
import { HexRgbColor } from "./HexRgbColor";
|
|
3
|
+
import { IAnnotationAreaTypeMap } from "./IAnnotationAreaTypeMap";
|
|
4
|
+
export interface IImageAnnotation<T extends AnnotationAreaType = AnnotationAreaType> {
|
|
5
|
+
label: string;
|
|
6
|
+
type: AnnotationAreaType;
|
|
7
|
+
area: IAnnotationAreaTypeMap[T];
|
|
8
|
+
color: HexRgbColor;
|
|
9
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IGoal } from "./IGoal";
|
|
2
|
+
import { IMap } from "./IMap";
|
|
3
|
+
import { IOdometry } from "./IOdometry";
|
|
4
|
+
import { IPath } from "./IPath";
|
|
5
|
+
import { IPointCloud } from "./IPointCloud";
|
|
6
|
+
export interface ILocalization {
|
|
7
|
+
odometry?: IOdometry;
|
|
8
|
+
map?: IMap;
|
|
9
|
+
pointClouds?: IPointCloud[];
|
|
10
|
+
path?: IPath;
|
|
11
|
+
goal?: IGoal;
|
|
12
|
+
url?: string;
|
|
13
|
+
size?: number;
|
|
14
|
+
}
|
package/dist/model/IPoint.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { IVector3 } from "./IVector3";
|
|
2
|
-
export
|
|
2
|
+
export type IPoint = IVector3;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { IBattery } from "./IBattery";
|
|
2
|
+
import { IBitset } from "./IBitset";
|
|
3
|
+
import { IFile } from "./IFile";
|
|
4
|
+
import { IHealth } from "./IHealth";
|
|
5
|
+
import { IImage } from "./IImage";
|
|
6
|
+
import { ILocalization } from "./ILocalization";
|
|
7
|
+
import { ILocation } from "./ILocation";
|
|
8
|
+
import { INumericSetEntry } from "./INumericSetEntry";
|
|
9
|
+
import { IPointCloud } from "./IPointCloud";
|
|
10
|
+
import { ITransformNode } from "./ITransformNode";
|
|
11
|
+
import { IVideo } from "./IVideo";
|
|
12
|
+
export interface IStreamTypeMap {
|
|
13
|
+
bitset: IBitset;
|
|
14
|
+
localization: ILocalization;
|
|
15
|
+
"point cloud": IPointCloud;
|
|
16
|
+
location: ILocation;
|
|
17
|
+
file: IFile;
|
|
18
|
+
health: IHealth;
|
|
19
|
+
"transform tree": ITransformNode;
|
|
20
|
+
battery: IBattery;
|
|
21
|
+
video: IVideo;
|
|
22
|
+
"numeric set": INumericSetEntry[];
|
|
23
|
+
json: string;
|
|
24
|
+
image: IImage;
|
|
25
|
+
numeric: number;
|
|
26
|
+
text: string;
|
|
27
|
+
}
|
package/dist/model/ITags.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
1
|
+
import { IDictionary } from "./IDictionary";
|
|
2
|
+
export type ITags = IDictionary;
|
package/dist/model/IUser.d.ts
CHANGED
|
@@ -1,13 +1,20 @@
|
|
|
1
|
+
import { CognitoRegion } from "./CognitoRegion";
|
|
1
2
|
import { IsoDate } from "./IsoDate";
|
|
2
3
|
import { ITaggedEntity } from "./ITaggedEntity";
|
|
4
|
+
import { IUserScope } from "./IUserScope";
|
|
5
|
+
import { LanguageType } from "./LanguageType";
|
|
6
|
+
import { SmsOptInStatus } from "./SmsOptInStatus";
|
|
3
7
|
import { Uuid } from "./Uuid";
|
|
4
8
|
export interface IUser extends ITaggedEntity {
|
|
5
9
|
organizationId?: Uuid;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
+
accountId?: Uuid | null;
|
|
11
|
+
roleId: Uuid | null;
|
|
12
|
+
email?: string;
|
|
13
|
+
firstName?: string;
|
|
14
|
+
lastName?: string;
|
|
15
|
+
scope?: IUserScope | null;
|
|
10
16
|
teamId?: Uuid | null;
|
|
17
|
+
eventTriggerGroupId?: Uuid | null;
|
|
11
18
|
phoneNumber?: string;
|
|
12
19
|
enabled?: boolean;
|
|
13
20
|
isOrganizationOwner?: boolean;
|
|
@@ -16,4 +23,11 @@ export interface IUser extends ITaggedEntity {
|
|
|
16
23
|
passwordHash?: string | null;
|
|
17
24
|
isSingleSignOn?: boolean;
|
|
18
25
|
isServiceAccount?: boolean;
|
|
26
|
+
smsOptInStatus?: SmsOptInStatus | null;
|
|
27
|
+
region: CognitoRegion;
|
|
28
|
+
jobTitle?: string;
|
|
29
|
+
language?: LanguageType;
|
|
30
|
+
units?: string;
|
|
31
|
+
timezone?: string;
|
|
32
|
+
allowCustomEmailConfiguration?: boolean;
|
|
19
33
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IScopeFilter } from "./IScopeFilter";
|
|
2
|
+
import { RequireKeys } from "./RequireKeys";
|
|
3
|
+
export interface IUserResourceScope {
|
|
4
|
+
roles?: IScopeFilter;
|
|
5
|
+
users?: IScopeFilter;
|
|
6
|
+
teams?: IScopeFilter;
|
|
7
|
+
devices?: IScopeFilter;
|
|
8
|
+
fleets?: IScopeFilter;
|
|
9
|
+
events?: IScopeFilter;
|
|
10
|
+
views?: IScopeFilter;
|
|
11
|
+
keyValue?: IScopeFilter;
|
|
12
|
+
}
|
|
13
|
+
export interface IUserScope extends IScopeFilter, IUserResourceScope {
|
|
14
|
+
}
|
|
15
|
+
export type IFullUserScope = IScopeFilter & RequireKeys<IUserResourceScope>;
|
|
16
|
+
export declare const fullAccessUserScope: IFullUserScope;
|
package/dist/model/IsoDate.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type IsoDate = string;
|
package/dist/model/LogLevel.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { logLevels } from "./logLevels";
|
|
2
|
-
export
|
|
2
|
+
export type LogLevel = (typeof logLevels)[number];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { marker3DActions } from "./marker3DActions";
|
|
2
|
-
export
|
|
2
|
+
export type Marker3DAction = (typeof marker3DActions)[number];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { marker3DTypes } from "./marker3DTypes";
|
|
2
|
-
export
|
|
2
|
+
export type Marker3DType = (typeof marker3DTypes)[number];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { organizationPlans } from "./organizationPlans";
|
|
2
|
-
export
|
|
2
|
+
export type OrganizationPlan = (typeof organizationPlans)[number];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { rtcConnectionStatuses } from "./rtcConnectionStatuses";
|
|
2
|
-
export
|
|
2
|
+
export type RtcConnectionStatus = (typeof rtcConnectionStatuses)[number];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { rtcIceServerProtocols } from "./rtcIceServerProtocols";
|
|
2
|
-
export
|
|
2
|
+
export type RtcIceServerProtocol = (typeof rtcIceServerProtocols)[number];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { rtcIceTransportPolicies } from "./rtcIceTransportPolicies";
|
|
2
|
-
export
|
|
2
|
+
export type RtcIceTransportPolicy = (typeof rtcIceTransportPolicies)[number];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { rtcImageStreamTypes, rtcStreamTypes } from "./rtcStreamTypes";
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type RtcStreamType = (typeof rtcStreamTypes)[number];
|
|
3
|
+
export type RtcImageStreamType = (typeof rtcImageStreamTypes)[number];
|
package/dist/model/Timeout.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type Timeout = ReturnType<typeof setTimeout>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type Timestamp = number;
|
package/dist/model/Uuid.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type Uuid = string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const cognitoRegions: readonly ["AMER", "EMEA", "JAPAC"];
|
package/dist/model/features.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const agentFeatures: readonly ["telemetry", "internalTelemetry", "teleop", "ssh", "customEvents", "triggeredEvents", "portForwarding", "commands", "interventions", "onDemand", "appConfig", "blobStorage"];
|
|
2
|
-
export declare const features: readonly ["telemetry", "internalTelemetry", "teleop", "ssh", "customEvents", "triggeredEvents", "portForwarding", "commands", "interventions", "onDemand", "appConfig", "blobStorage", "events", "analytics", "annotations", "observability", "diagnostics", "advancedConfiguration", "dataExport", "
|
|
2
|
+
export declare const features: readonly ["telemetry", "internalTelemetry", "teleop", "ssh", "customEvents", "triggeredEvents", "portForwarding", "commands", "interventions", "onDemand", "appConfig", "blobStorage", "events", "analytics", "annotations", "observability", "diagnostics", "advancedConfiguration", "dataExport", "share", "adapters", "s3Export", "fileStorage", "roleViewer", "teams", "schedules", "teleop2.0", "billing", "taskSummaries"];
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const healthStatuses: readonly ["unknown", "operational", "offline", "error"];
|
|
2
|
+
type HealthStatus = (typeof healthStatuses)[number];
|
|
3
|
+
export declare function healthStatusToOrdinal(a: HealthStatus): number;
|
|
4
|
+
export declare function ordinalToHealthStatus(a: number): HealthStatus;
|
|
5
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const languageTypes: readonly ["en-US", "fr-CA"];
|
|
@@ -20,6 +20,7 @@ export declare const rtcPointCloudStreamType: "point-cloud";
|
|
|
20
20
|
export declare const rtcMarkerArrayStreamType: "marker-array";
|
|
21
21
|
export declare const rtcPointStreamType: "point";
|
|
22
22
|
export declare const rtcJsonStringType: "json-string";
|
|
23
|
-
export declare const
|
|
23
|
+
export declare const rtcOdometryStreamType: "odometry";
|
|
24
|
+
export declare const rtcStreamTypes: readonly ["ping", "pong", "ping-v2", "pong-v2", "stream-control", "streams-info", "agent-info", "numeric", "boolean", "bitset", "twist", "compressed-image", "h264-video-frame", "audio-chunk", "pose", "goal-id", "joint-state", "pose-with-covariance", "point-cloud", "point", "marker-array", "json-string", "odometry"];
|
|
24
25
|
export declare const rtcImageStreamTypes: string[];
|
|
25
26
|
export declare const rtcSystemStreamTypes: string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const smsOptInStatuses: readonly ["OPT_IN", "OPT_OUT"];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const videoMimeTypes: readonly ["video/mp4"];
|