@formant/data-sdk 1.74.0 → 1.76.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.
@@ -0,0 +1,9 @@
1
+ import { createTeleopView, deleteTeleopView, fetchTeleopViews, getTeleopView, updateTeleopView } from "./api/teleopViews";
2
+ export declare class Views {
3
+ constructor();
4
+ static createTeleopView: typeof createTeleopView;
5
+ static updateTeleopView: typeof updateTeleopView;
6
+ static deleteTeleopView: typeof deleteTeleopView;
7
+ static getTeleopView: typeof getTeleopView;
8
+ static fetchTeleopViews: typeof fetchTeleopViews;
9
+ }
@@ -0,0 +1,73 @@
1
+ import { RtcStreamType } from "../connector/model/IUniverseData";
2
+ import { IsoDate } from "../model/IsoDate";
3
+ import { ITags } from "../model/ITags";
4
+ export interface IDictionary<T = string> {
5
+ [key: string]: T;
6
+ }
7
+ export interface ITeleopViewModule {
8
+ id: string;
9
+ type: string;
10
+ position: {
11
+ x: number;
12
+ y: number;
13
+ };
14
+ size: {
15
+ width: number;
16
+ height: number;
17
+ };
18
+ isButton?: boolean;
19
+ label?: string;
20
+ isTextInput?: boolean;
21
+ config: ModuleConfig;
22
+ }
23
+ export interface ITeleopViewConfiguration {
24
+ modules: ITeleopViewModule[];
25
+ modulePickerPosition: {
26
+ x: number;
27
+ y: number;
28
+ };
29
+ }
30
+ export interface ITeleopView {
31
+ id: string;
32
+ organizationId: string;
33
+ name: string;
34
+ configuration: ITeleopViewConfiguration;
35
+ createdAt?: IsoDate;
36
+ updatedAt?: IsoDate;
37
+ tags?: ITags;
38
+ }
39
+ export interface ITeleopViewResponse {
40
+ items: ITeleopView[];
41
+ }
42
+ export type ModuleConfigItem = {
43
+ id: string;
44
+ name: string;
45
+ type: "realtime-streams";
46
+ multiple?: boolean;
47
+ supportedTypes: RtcStreamType[];
48
+ } | {
49
+ id: string;
50
+ name: string;
51
+ type: "named-string";
52
+ defaultValue: string;
53
+ } | {
54
+ id: string;
55
+ name: string;
56
+ type: "named-boolean";
57
+ defaultValue: boolean;
58
+ } | {
59
+ id: string;
60
+ name: string;
61
+ type: "named-number";
62
+ defaultValue: number;
63
+ };
64
+ export type ConfigValue = string | number | boolean | any[];
65
+ export type ModuleConfig = {
66
+ [key: string]: ConfigValue;
67
+ };
68
+ export declare function request<T>(endpoint: string, options?: RequestInit): Promise<T>;
69
+ export declare function fetchTeleopViews(): Promise<ITeleopView[]>;
70
+ export declare function getTeleopView(id: string): Promise<ITeleopView>;
71
+ export declare function createTeleopView(view: Omit<ITeleopView, "id" | "organizationId" | "createdAt" | "updatedAt">): Promise<ITeleopView>;
72
+ export declare function updateTeleopView(id: string, view: Partial<ITeleopView>): Promise<ITeleopView>;
73
+ export declare function deleteTeleopView(id: string): Promise<void>;
@@ -1 +1,2 @@
1
- export declare const FORMANT_API_URL: any;
1
+ export declare let FORMANT_API_URL: any;
2
+ export declare const setFormantApiUrl: (url: string) => void;
@@ -14,6 +14,7 @@ export { Manipulator } from "./Manipulator";
14
14
  export { BinaryRequestDataChannel, TextRequestDataChannel, } from "./RequestDataChannel";
15
15
  export { Role } from "./Role";
16
16
  export { User } from "./User";
17
+ export { Views } from "./Views";
17
18
  export type { CaptureSession } from "./CaptureStream";
18
19
  export type { DataChannelBinaryListener, DataChannelErrorListener, DataChannelListener, DataChannelStringListener, } from "./DataChannel";
19
20
  export type { Command, ConfigurationDocument, IAdapterConfiguration, IJointState, IStartRealtimeConnectionOptions, RealtimeAudioStream, RealtimeDataStream, RealtimeListener, RealtimeMessage, RealtimeVideoStream, TelemetryStream, } from "./devices/device.types";
@@ -156,7 +157,7 @@ export type { IAuthentication } from "./stores/IAuthentication";
156
157
  export type { IConfirmForgotPasswordRequest } from "./stores/IConfirmForgotPasswordRequest";
157
158
  export type { IRespondToNewPasswordRequiredChallengeRequest } from "./stores/IRespondToNewPasswordRequiredChallengeRequest";
158
159
  import "./init.ts";
159
- export { RtcClient, RtcClientV1, RtcSignalingClient, createRtcStreamMessage, } from "@formant/realtime-sdk";
160
+ export { createRtcStreamMessage, RtcClient, RtcClientV1, RtcSignalingClient, } from "@formant/realtime-sdk";
160
161
  export * from "./connector/data/BaseUniverseDataConnector";
161
162
  export * from "./connector/data/LiveUniverseData";
162
163
  export * from "./connector/data/queryStore";
@@ -37,7 +37,6 @@ export declare class AuthenticationStore implements IAuthenticationStore {
37
37
  * @deprecated Do not use directly. This will be removed in future versions of the API
38
38
  */
39
39
  get isShareToken(): boolean;
40
- setEnvironment(env: "prod" | "stage" | "dev" | "local"): void;
41
40
  login(email: string, password: string): Promise<IAuthentication>;
42
41
  login(email: string, password: string, options: {
43
42
  advanced: true;
package/package.json CHANGED
@@ -24,7 +24,7 @@
24
24
  }
25
25
  }
26
26
  },
27
- "version": "1.74.0",
27
+ "version": "1.76.0",
28
28
  "scripts": {
29
29
  "preversion": "npm run verify",
30
30
  "postversion": "make",