@formant/realtime-sdk 0.0.19 → 0.0.20
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/common/config/index.d.ts +2 -0
- package/dist/common/delay.d.ts +1 -1
- package/dist/common/isErrorType.d.ts +1 -0
- package/dist/common/narrowError.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/IAccessScope.d.ts +5 -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/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/IPointCloud.d.ts +6 -0
- 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/ITransformNode.d.ts +8 -0
- package/dist/model/IUser.d.ts +11 -3
- package/dist/model/IVideo.d.ts +7 -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/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/StreamType.d.ts +2 -0
- 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/videoMimeTypes.d.ts +1 -0
- package/dist/protos/api/signaling/v1/signaling_grpc_web_pb.d.ts +106 -120
- package/dist/rtc-client/DeadlineEnforcer.d.ts +4 -0
- package/dist/rtc-client/DeadlineReachedError.d.ts +3 -0
- package/dist/rtc-client/RtcClient.d.ts +2 -1
- package/dist/rtc-client/RtcClientV1.d.ts +1 -0
- package/dist/rtc-client/models/RtcChannelLabel.d.ts +1 -1
- package/dist/rtc-client/utils/garbageCollect.d.ts +1 -0
- package/dist/rtc-client/utils/getErrorMessage.d.ts +1 -0
- package/dist/version.txt +1 -0
- package/package.json +1 -1
package/dist/model/Feature.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { agentFeatures, features } from "./features";
|
|
2
|
-
export declare type Feature = typeof features[number];
|
|
3
|
-
export declare type AgentFeature = typeof agentFeatures[number];
|
|
2
|
+
export declare type Feature = (typeof features)[number];
|
|
3
|
+
export declare type AgentFeature = (typeof agentFeatures)[number];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type HexRgbColor = string;
|
|
@@ -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
|
+
}
|
|
@@ -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/IUser.d.ts
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
import { CognitoRegion } from "./CognitoRegion";
|
|
2
|
+
import { IAccessScope } from "./IAccessScope";
|
|
1
3
|
import { IsoDate } from "./IsoDate";
|
|
2
4
|
import { ITaggedEntity } from "./ITaggedEntity";
|
|
3
5
|
import { Uuid } from "./Uuid";
|
|
4
6
|
export interface IUser extends ITaggedEntity {
|
|
5
7
|
organizationId?: Uuid;
|
|
6
|
-
email
|
|
7
|
-
firstName
|
|
8
|
-
lastName
|
|
8
|
+
email?: string;
|
|
9
|
+
firstName?: string;
|
|
10
|
+
lastName?: string;
|
|
11
|
+
scope?: IAccessScope;
|
|
9
12
|
roleId: Uuid;
|
|
10
13
|
teamId?: Uuid | null;
|
|
11
14
|
phoneNumber?: string;
|
|
@@ -16,4 +19,9 @@ export interface IUser extends ITaggedEntity {
|
|
|
16
19
|
passwordHash?: string | null;
|
|
17
20
|
isSingleSignOn?: boolean;
|
|
18
21
|
isServiceAccount?: boolean;
|
|
22
|
+
region: CognitoRegion;
|
|
23
|
+
jobTitle?: string;
|
|
24
|
+
language?: string;
|
|
25
|
+
units?: string;
|
|
26
|
+
timezone?: string;
|
|
19
27
|
}
|
package/dist/model/LogLevel.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { logLevels } from "./logLevels";
|
|
2
|
-
export declare type LogLevel = typeof logLevels[number];
|
|
2
|
+
export declare type LogLevel = (typeof logLevels)[number];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { marker3DActions } from "./marker3DActions";
|
|
2
|
-
export declare type Marker3DAction = typeof marker3DActions[number];
|
|
2
|
+
export declare type Marker3DAction = (typeof marker3DActions)[number];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { marker3DTypes } from "./marker3DTypes";
|
|
2
|
-
export declare type Marker3DType = typeof marker3DTypes[number];
|
|
2
|
+
export declare type Marker3DType = (typeof marker3DTypes)[number];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { organizationPlans } from "./organizationPlans";
|
|
2
|
-
export declare type OrganizationPlan = typeof organizationPlans[number];
|
|
2
|
+
export declare type OrganizationPlan = (typeof organizationPlans)[number];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { rtcConnectionStatuses } from "./rtcConnectionStatuses";
|
|
2
|
-
export declare type RtcConnectionStatus = typeof rtcConnectionStatuses[number];
|
|
2
|
+
export declare type RtcConnectionStatus = (typeof rtcConnectionStatuses)[number];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { rtcIceServerProtocols } from "./rtcIceServerProtocols";
|
|
2
|
-
export declare type RtcIceServerProtocol = typeof rtcIceServerProtocols[number];
|
|
2
|
+
export declare type RtcIceServerProtocol = (typeof rtcIceServerProtocols)[number];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { rtcIceTransportPolicies } from "./rtcIceTransportPolicies";
|
|
2
|
-
export declare type RtcIceTransportPolicy = typeof rtcIceTransportPolicies[number];
|
|
2
|
+
export declare type RtcIceTransportPolicy = (typeof rtcIceTransportPolicies)[number];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { rtcImageStreamTypes, rtcStreamTypes } from "./rtcStreamTypes";
|
|
2
|
-
export declare type RtcStreamType = typeof rtcStreamTypes[number];
|
|
3
|
-
export declare type RtcImageStreamType = typeof rtcImageStreamTypes[number];
|
|
2
|
+
export declare type RtcStreamType = (typeof rtcStreamTypes)[number];
|
|
3
|
+
export declare type RtcImageStreamType = (typeof rtcImageStreamTypes)[number];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const cognitoRegions: readonly ["AMER", "EMEA"];
|
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
|
+
declare 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 videoMimeTypes: readonly ["video/mp4"];
|
|
@@ -1,127 +1,113 @@
|
|
|
1
|
-
import * as grpcWeb from
|
|
1
|
+
import * as grpcWeb from 'grpc-web';
|
|
2
|
+
|
|
3
|
+
import * as protos_api_signaling_v1_signaling_pb from '../../../../protos/api/signaling/v1/signaling_pb';
|
|
2
4
|
|
|
3
|
-
import * as protos_api_signaling_v1_signaling_pb from "../../../../protos/api/signaling/v1/signaling_pb";
|
|
4
5
|
|
|
5
6
|
export class SignalingClient {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
): grpcWeb.ClientReadableStream<protos_api_signaling_v1_signaling_pb.GetIceServersResponse>;
|
|
65
|
-
|
|
66
|
-
sendSignal(
|
|
67
|
-
request: protos_api_signaling_v1_signaling_pb.SendSignalRequest,
|
|
68
|
-
metadata: grpcWeb.Metadata | undefined,
|
|
69
|
-
callback: (
|
|
70
|
-
err: grpcWeb.RpcError,
|
|
71
|
-
response: protos_api_signaling_v1_signaling_pb.SendSignalResponse
|
|
72
|
-
) => void
|
|
73
|
-
): grpcWeb.ClientReadableStream<protos_api_signaling_v1_signaling_pb.SendSignalResponse>;
|
|
74
|
-
|
|
75
|
-
receiveSignalStream(
|
|
76
|
-
request: protos_api_signaling_v1_signaling_pb.ReceiveSignalStreamRequest,
|
|
77
|
-
metadata?: grpcWeb.Metadata
|
|
78
|
-
): grpcWeb.ClientReadableStream<protos_api_signaling_v1_signaling_pb.ReceiveSignalStreamResponse>;
|
|
7
|
+
constructor (hostname: string,
|
|
8
|
+
credentials?: null | { [index: string]: string; },
|
|
9
|
+
options?: null | { [index: string]: any; });
|
|
10
|
+
|
|
11
|
+
getHealth(
|
|
12
|
+
request: protos_api_signaling_v1_signaling_pb.GetHealthRequest,
|
|
13
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
14
|
+
callback: (err: grpcWeb.Error,
|
|
15
|
+
response: protos_api_signaling_v1_signaling_pb.GetHealthResponse) => void
|
|
16
|
+
): grpcWeb.ClientReadableStream<protos_api_signaling_v1_signaling_pb.GetHealthResponse>;
|
|
17
|
+
|
|
18
|
+
createPeer(
|
|
19
|
+
request: protos_api_signaling_v1_signaling_pb.CreatePeerRequest,
|
|
20
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
21
|
+
callback: (err: grpcWeb.Error,
|
|
22
|
+
response: protos_api_signaling_v1_signaling_pb.CreatePeerResponse) => void
|
|
23
|
+
): grpcWeb.ClientReadableStream<protos_api_signaling_v1_signaling_pb.CreatePeerResponse>;
|
|
24
|
+
|
|
25
|
+
deletePeer(
|
|
26
|
+
request: protos_api_signaling_v1_signaling_pb.DeletePeerRequest,
|
|
27
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
28
|
+
callback: (err: grpcWeb.Error,
|
|
29
|
+
response: protos_api_signaling_v1_signaling_pb.DeletePeerResponse) => void
|
|
30
|
+
): grpcWeb.ClientReadableStream<protos_api_signaling_v1_signaling_pb.DeletePeerResponse>;
|
|
31
|
+
|
|
32
|
+
refreshPeer(
|
|
33
|
+
request: protos_api_signaling_v1_signaling_pb.RefreshPeerRequest,
|
|
34
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
35
|
+
callback: (err: grpcWeb.Error,
|
|
36
|
+
response: protos_api_signaling_v1_signaling_pb.RefreshPeerResponse) => void
|
|
37
|
+
): grpcWeb.ClientReadableStream<protos_api_signaling_v1_signaling_pb.RefreshPeerResponse>;
|
|
38
|
+
|
|
39
|
+
getPeers(
|
|
40
|
+
request: protos_api_signaling_v1_signaling_pb.GetPeersRequest,
|
|
41
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
42
|
+
callback: (err: grpcWeb.Error,
|
|
43
|
+
response: protos_api_signaling_v1_signaling_pb.GetPeersResponse) => void
|
|
44
|
+
): grpcWeb.ClientReadableStream<protos_api_signaling_v1_signaling_pb.GetPeersResponse>;
|
|
45
|
+
|
|
46
|
+
getIceServers(
|
|
47
|
+
request: protos_api_signaling_v1_signaling_pb.GetIceServersRequest,
|
|
48
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
49
|
+
callback: (err: grpcWeb.Error,
|
|
50
|
+
response: protos_api_signaling_v1_signaling_pb.GetIceServersResponse) => void
|
|
51
|
+
): grpcWeb.ClientReadableStream<protos_api_signaling_v1_signaling_pb.GetIceServersResponse>;
|
|
52
|
+
|
|
53
|
+
sendSignal(
|
|
54
|
+
request: protos_api_signaling_v1_signaling_pb.SendSignalRequest,
|
|
55
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
56
|
+
callback: (err: grpcWeb.Error,
|
|
57
|
+
response: protos_api_signaling_v1_signaling_pb.SendSignalResponse) => void
|
|
58
|
+
): grpcWeb.ClientReadableStream<protos_api_signaling_v1_signaling_pb.SendSignalResponse>;
|
|
59
|
+
|
|
60
|
+
receiveSignalStream(
|
|
61
|
+
request: protos_api_signaling_v1_signaling_pb.ReceiveSignalStreamRequest,
|
|
62
|
+
metadata?: grpcWeb.Metadata
|
|
63
|
+
): grpcWeb.ClientReadableStream<protos_api_signaling_v1_signaling_pb.ReceiveSignalStreamResponse>;
|
|
64
|
+
|
|
79
65
|
}
|
|
80
66
|
|
|
81
67
|
export class SignalingPromiseClient {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
): grpcWeb.ClientReadableStream<protos_api_signaling_v1_signaling_pb.ReceiveSignalStreamResponse>;
|
|
68
|
+
constructor (hostname: string,
|
|
69
|
+
credentials?: null | { [index: string]: string; },
|
|
70
|
+
options?: null | { [index: string]: any; });
|
|
71
|
+
|
|
72
|
+
getHealth(
|
|
73
|
+
request: protos_api_signaling_v1_signaling_pb.GetHealthRequest,
|
|
74
|
+
metadata?: grpcWeb.Metadata
|
|
75
|
+
): Promise<protos_api_signaling_v1_signaling_pb.GetHealthResponse>;
|
|
76
|
+
|
|
77
|
+
createPeer(
|
|
78
|
+
request: protos_api_signaling_v1_signaling_pb.CreatePeerRequest,
|
|
79
|
+
metadata?: grpcWeb.Metadata
|
|
80
|
+
): Promise<protos_api_signaling_v1_signaling_pb.CreatePeerResponse>;
|
|
81
|
+
|
|
82
|
+
deletePeer(
|
|
83
|
+
request: protos_api_signaling_v1_signaling_pb.DeletePeerRequest,
|
|
84
|
+
metadata?: grpcWeb.Metadata
|
|
85
|
+
): Promise<protos_api_signaling_v1_signaling_pb.DeletePeerResponse>;
|
|
86
|
+
|
|
87
|
+
refreshPeer(
|
|
88
|
+
request: protos_api_signaling_v1_signaling_pb.RefreshPeerRequest,
|
|
89
|
+
metadata?: grpcWeb.Metadata
|
|
90
|
+
): Promise<protos_api_signaling_v1_signaling_pb.RefreshPeerResponse>;
|
|
91
|
+
|
|
92
|
+
getPeers(
|
|
93
|
+
request: protos_api_signaling_v1_signaling_pb.GetPeersRequest,
|
|
94
|
+
metadata?: grpcWeb.Metadata
|
|
95
|
+
): Promise<protos_api_signaling_v1_signaling_pb.GetPeersResponse>;
|
|
96
|
+
|
|
97
|
+
getIceServers(
|
|
98
|
+
request: protos_api_signaling_v1_signaling_pb.GetIceServersRequest,
|
|
99
|
+
metadata?: grpcWeb.Metadata
|
|
100
|
+
): Promise<protos_api_signaling_v1_signaling_pb.GetIceServersResponse>;
|
|
101
|
+
|
|
102
|
+
sendSignal(
|
|
103
|
+
request: protos_api_signaling_v1_signaling_pb.SendSignalRequest,
|
|
104
|
+
metadata?: grpcWeb.Metadata
|
|
105
|
+
): Promise<protos_api_signaling_v1_signaling_pb.SendSignalResponse>;
|
|
106
|
+
|
|
107
|
+
receiveSignalStream(
|
|
108
|
+
request: protos_api_signaling_v1_signaling_pb.ReceiveSignalStreamRequest,
|
|
109
|
+
metadata?: grpcWeb.Metadata
|
|
110
|
+
): grpcWeb.ClientReadableStream<protos_api_signaling_v1_signaling_pb.ReceiveSignalStreamResponse>;
|
|
111
|
+
|
|
127
112
|
}
|
|
113
|
+
|
|
@@ -3,6 +3,7 @@ import { IRtcPeer } from "../model/IRtcPeer";
|
|
|
3
3
|
import { RtcConnectionStatus } from "../model/RtcConnectionStatus";
|
|
4
4
|
import { Timestamp } from "../model/Timestamp";
|
|
5
5
|
import { Uuid } from "../model/Uuid";
|
|
6
|
+
import { RtcConnection } from "./RtcConnection";
|
|
6
7
|
import { IPingInfo } from "./models/IPingInfo";
|
|
7
8
|
import { IRtcClientConfiguration } from "./models/IRtcClientConfiguration";
|
|
8
9
|
import { IRtcConnectionStatsInfo } from "./models/IRtcConnectionStatsInfo";
|
|
@@ -10,7 +11,6 @@ import { IRtcSendConfiguration } from "./models/IRtcSendConfiguration";
|
|
|
10
11
|
import { IRtcSessionMetricsMessageCounts } from "./models/IRtcSessionMetricsMessageCounts";
|
|
11
12
|
import { IRtcStreamMessage } from "./models/IRtcStreamMessage";
|
|
12
13
|
import { IStreamControl } from "./models/IStreamControl";
|
|
13
|
-
import { RtcConnection } from "./RtcConnection";
|
|
14
14
|
/**
|
|
15
15
|
* RtcClient to be used by browsers.
|
|
16
16
|
*/
|
|
@@ -29,6 +29,7 @@ export declare class RtcClient {
|
|
|
29
29
|
private isConnectionInitiator;
|
|
30
30
|
private isOutgoingConnection;
|
|
31
31
|
private peerDataChannelListeners;
|
|
32
|
+
private rtcInstancesConstructed;
|
|
32
33
|
constructor(config: IRtcClientConfiguration);
|
|
33
34
|
send(remotePeerId: Uuid, message: IRtcStreamMessage, config: IRtcSendConfiguration): void;
|
|
34
35
|
controlRemoteStream(remotePeerId: Uuid, streamControl: IStreamControl): void;
|
|
@@ -17,6 +17,7 @@ export declare class RtcClientV1 {
|
|
|
17
17
|
private updateInterval;
|
|
18
18
|
private connections;
|
|
19
19
|
private connectingSessions;
|
|
20
|
+
private rtcInstancesConstructed;
|
|
20
21
|
constructor(config: IRtcClientConfigurationV1);
|
|
21
22
|
send(peerId: Uuid, message: IRtcStreamMessage, config: IRtcSendConfiguration): void;
|
|
22
23
|
controlRemoteStream(peerId: Uuid, streamControl: IStreamControl): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { rtcChannelLabels } from "./rtcChannelLabels";
|
|
2
|
-
export declare type RtcChannelLabel = typeof rtcChannelLabels[number];
|
|
2
|
+
export declare type RtcChannelLabel = (typeof rtcChannelLabels)[number];
|