@formant/realtime-sdk 0.0.5 → 0.0.8

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.
@@ -0,0 +1,5 @@
1
+ import { IBaseEntity } from "./IBaseEntity";
2
+ import { ITags } from "./ITags";
3
+ export interface ITaggedEntity extends IBaseEntity {
4
+ tags: ITags;
5
+ }
@@ -1,15 +1,13 @@
1
- import { IBaseEntity } from "./IBaseEntity";
2
1
  import { IsoDate } from "./IsoDate";
3
- import { ITags } from "./ITags";
2
+ import { ITaggedEntity } from "./ITaggedEntity";
4
3
  import { Uuid } from "./Uuid";
5
- export interface IUser extends IBaseEntity {
4
+ export interface IUser extends ITaggedEntity {
6
5
  organizationId?: Uuid;
7
6
  email: string;
8
7
  firstName: string;
9
8
  lastName: string;
10
9
  roleId: Uuid;
11
10
  teamId?: Uuid | null;
12
- tags: ITags;
13
11
  phoneNumber?: string;
14
12
  enabled?: boolean;
15
13
  isOrganizationOwner?: boolean;
@@ -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", "onDemand", "share", "adapters", "s3Export", "fileStorage", "roleViewer", "teams"];
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", "onDemand", "share", "adapters", "s3Export", "fileStorage", "roleViewer", "teams", "schedules"];
@@ -1 +1 @@
1
- export declare const rtcIceTransportPolicies: readonly ["all", "relay"];
1
+ export declare const rtcIceTransportPolicies: readonly ["stun", "turn"];
@@ -35,6 +35,7 @@ enum SessionType {
35
35
  UNKNOWN = 0;
36
36
  TELEOP = 1;
37
37
  PORT_FORWARD = 2;
38
+ OBSERVE = 3;
38
39
  }
39
40
 
40
41
  message Signal {
@@ -353,4 +353,5 @@ export enum SessionType {
353
353
  UNKNOWN = 0,
354
354
  TELEOP = 1,
355
355
  PORT_FORWARD = 2,
356
+ OBSERVE = 3,
356
357
  }
@@ -2988,7 +2988,8 @@ proto.v1.signaling.api.ReceiveSignalStreamResponse.prototype.hasSignal = functio
2988
2988
  proto.v1.signaling.api.SessionType = {
2989
2989
  UNKNOWN: 0,
2990
2990
  TELEOP: 1,
2991
- PORT_FORWARD: 2
2991
+ PORT_FORWARD: 2,
2992
+ OBSERVE: 3
2992
2993
  };
2993
2994
 
2994
2995
  goog.object.extend(exports, proto.v1.signaling.api);
@@ -2,6 +2,7 @@ import { IRtcPeer } from "../model/IRtcPeer";
2
2
  import { RtcConnectionStatus } from "../model/RtcConnectionStatus";
3
3
  import { Timestamp } from "../model/Timestamp";
4
4
  import { Uuid } from "../model/Uuid";
5
+ import { SessionType } from "../protos/api/signaling/v1/signaling_pb";
5
6
  import { IRtcClientConfiguration } from "./models/IRtcClientConfiguration";
6
7
  import { IRtcConnectConfiguration } from "./models/IRtcConnectConfiguration";
7
8
  import { IRtcConnectionStatsInfo } from "./models/IRtcConnectionStatsInfo";
@@ -36,7 +37,7 @@ export declare class RtcClient {
36
37
  * Connects to a peer given its id.
37
38
  * Returns the id of the session, if one is created.
38
39
  */
39
- connect(remotePeerId: Uuid, config?: IRtcConnectConfiguration): Promise<Uuid | undefined>;
40
+ connect(remotePeerId: Uuid, config?: IRtcConnectConfiguration, sessionType?: SessionType): Promise<Uuid | undefined>;
40
41
  connectLan(agentEndpoint: string): Promise<Uuid | false>;
41
42
  getConnections(): RtcConnection[];
42
43
  createCustomDataChannel(remotePeerId: Uuid, channelName: string, init: RTCDataChannelInit, isBinary: boolean, listener: (peerId: Uuid, channel: RTCDataChannel) => void): () => void;
@@ -45,6 +46,9 @@ export declare class RtcClient {
45
46
  getConnectionStatsInfo(remotePeerId: Uuid): Promise<IRtcConnectionStatsInfo | undefined>;
46
47
  disconnect(remotePeerId: Uuid): Promise<void>;
47
48
  getPeers(): Promise<IRtcPeer[]>;
49
+ getSessions(): Promise<{
50
+ [key in string]: string[];
51
+ }>;
48
52
  getPing(remotePeerId: Uuid): number | undefined;
49
53
  getLastMessageTimestamp(remotePeerId: Uuid): Timestamp | undefined;
50
54
  getSessionMetricsMessageCounts(remotePeerId: Uuid): IRtcSessionMetricsMessageCounts | undefined;
@@ -2,5 +2,5 @@ import { RtcIceServerProtocol } from "../../model/RtcIceServerProtocol";
2
2
  import { RtcIceTransportPolicy } from "../../model/RtcIceTransportPolicy";
3
3
  export interface IRtcConnectConfiguration {
4
4
  rtcIceServerProtocol?: RtcIceServerProtocol;
5
- rtcIceTransportPolicy?: RtcIceTransportPolicy;
5
+ rtcIceTransportPolicies?: RtcIceTransportPolicy[];
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formant/realtime-sdk",
3
- "version": "0.0.5",
3
+ "version": "0.0.8",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/realtime-sdk/src/index.d.ts",