@mentra/sdk 2.1.23 → 2.1.26
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/app/server/index.d.ts +2 -0
- package/dist/app/server/index.d.ts.map +1 -1
- package/dist/app/server/index.js +80 -18
- package/dist/app/session/dashboard.d.ts +7 -7
- package/dist/app/session/dashboard.d.ts.map +1 -1
- package/dist/app/session/dashboard.js +12 -12
- package/dist/app/session/events.d.ts.map +1 -1
- package/dist/app/session/index.d.ts +5 -1
- package/dist/app/session/index.d.ts.map +1 -1
- package/dist/app/session/index.js +14 -7
- package/dist/app/session/modules/camera.d.ts +17 -0
- package/dist/app/session/modules/camera.d.ts.map +1 -1
- package/dist/app/session/modules/camera.js +23 -0
- package/dist/app/session/modules/simple-storage.d.ts +30 -0
- package/dist/app/session/modules/simple-storage.d.ts.map +1 -0
- package/dist/app/session/modules/simple-storage.js +232 -0
- package/dist/constants/messages.d.ts +19 -0
- package/dist/constants/messages.d.ts.map +1 -0
- package/dist/constants/messages.js +57 -0
- package/dist/index.d.ts +2 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +18 -15
- package/dist/types/enums.d.ts +0 -20
- package/dist/types/enums.d.ts.map +1 -1
- package/dist/types/enums.js +2 -25
- package/dist/types/index.d.ts +0 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +0 -2
- package/dist/types/layouts.d.ts +3 -3
- package/dist/types/layouts.d.ts.map +1 -1
- package/dist/types/message-types.d.ts +1 -1
- package/dist/types/message-types.d.ts.map +1 -1
- package/dist/types/message-types.js +8 -13
- package/dist/types/messages/base.d.ts.map +1 -1
- package/dist/types/messages/cloud-to-app.d.ts.map +1 -1
- package/dist/types/messages/cloud-to-glasses.d.ts +0 -7
- package/dist/types/messages/cloud-to-glasses.d.ts.map +1 -1
- package/dist/types/messages/glasses-to-cloud.d.ts +91 -9
- package/dist/types/messages/glasses-to-cloud.d.ts.map +1 -1
- package/dist/types/messages/glasses-to-cloud.js +44 -1
- package/dist/types/models.d.ts.map +1 -1
- package/dist/types/webhooks.d.ts +4 -51
- package/dist/types/webhooks.d.ts.map +1 -1
- package/dist/types/webhooks.js +0 -27
- package/package.json +4 -1
- package/dist/types/user-session.d.ts +0 -73
- package/dist/types/user-session.d.ts.map +0 -1
- package/dist/types/user-session.js +0 -17
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Simple Storage SDK Module for MentraOS Apps
|
|
4
|
+
* Provides localStorage-like API with cloud synchronization
|
|
5
|
+
*/
|
|
6
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
+
};
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.SimpleStorage = void 0;
|
|
11
|
+
const node_fetch_1 = __importDefault(require("node-fetch"));
|
|
12
|
+
/**
|
|
13
|
+
* Key-value storage with local caching and cloud sync
|
|
14
|
+
* Data is isolated by userId and packageName
|
|
15
|
+
*/
|
|
16
|
+
class SimpleStorage {
|
|
17
|
+
constructor(appSession) {
|
|
18
|
+
this.storage = null;
|
|
19
|
+
this.appSession = appSession;
|
|
20
|
+
this.userId = appSession.userId;
|
|
21
|
+
this.packageName = appSession.getPackageName();
|
|
22
|
+
this.baseUrl = this.getBaseUrl();
|
|
23
|
+
}
|
|
24
|
+
// Convert WebSocket URL to HTTP for API calls
|
|
25
|
+
getBaseUrl() {
|
|
26
|
+
const serverUrl = this.appSession.getServerUrl();
|
|
27
|
+
if (!serverUrl)
|
|
28
|
+
return "http://localhost:8002";
|
|
29
|
+
return serverUrl.replace(/\/app-ws$/, "").replace(/^ws/, "http");
|
|
30
|
+
}
|
|
31
|
+
// Generate auth headers for API requests
|
|
32
|
+
getAuthHeaders() {
|
|
33
|
+
const apiKey = this.appSession.config?.apiKey || "unknown-api-key";
|
|
34
|
+
return {
|
|
35
|
+
Authorization: `Bearer ${this.packageName}:${apiKey}`,
|
|
36
|
+
"Content-Type": "application/json",
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
// Fetch all data from cloud and cache locally
|
|
40
|
+
async fetchStorageFromCloud() {
|
|
41
|
+
try {
|
|
42
|
+
const response = await (0, node_fetch_1.default)(`${this.baseUrl}/api/sdk/simple-storage/${encodeURIComponent(this.userId)}`, {
|
|
43
|
+
headers: this.getAuthHeaders(),
|
|
44
|
+
});
|
|
45
|
+
if (response.ok) {
|
|
46
|
+
const result = await response.json();
|
|
47
|
+
if (result.success && result.data) {
|
|
48
|
+
this.storage = result.data;
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
this.storage = {};
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
console.error("Failed to fetch storage from cloud:", await response.text());
|
|
56
|
+
this.storage = {};
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
catch (error) {
|
|
60
|
+
console.error("Error fetching storage from cloud:", error);
|
|
61
|
+
this.storage = {};
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
// Get item from cache or cloud
|
|
65
|
+
async get(key) {
|
|
66
|
+
try {
|
|
67
|
+
if (this.storage !== null && this.storage !== undefined) {
|
|
68
|
+
return this.storage[key];
|
|
69
|
+
}
|
|
70
|
+
await this.fetchStorageFromCloud();
|
|
71
|
+
return this.storage?.[key];
|
|
72
|
+
}
|
|
73
|
+
catch (error) {
|
|
74
|
+
console.error("Error getting item:", error);
|
|
75
|
+
return undefined;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
// Set item with optimistic update and cloud sync
|
|
79
|
+
async set(key, value) {
|
|
80
|
+
try {
|
|
81
|
+
if (this.storage === null || this.storage === undefined) {
|
|
82
|
+
await this.fetchStorageFromCloud();
|
|
83
|
+
}
|
|
84
|
+
// Update cache immediately (optimistic update)
|
|
85
|
+
if (this.storage) {
|
|
86
|
+
this.storage[key] = value;
|
|
87
|
+
}
|
|
88
|
+
// Sync to cloud
|
|
89
|
+
const response = await (0, node_fetch_1.default)(`${this.baseUrl}/api/sdk/simple-storage/${encodeURIComponent(this.userId)}/${encodeURIComponent(key)}`, {
|
|
90
|
+
method: "PUT",
|
|
91
|
+
headers: this.getAuthHeaders(),
|
|
92
|
+
body: JSON.stringify({ value }),
|
|
93
|
+
});
|
|
94
|
+
if (!response.ok) {
|
|
95
|
+
console.error("Failed to sync item to cloud:", await response.text());
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
catch (error) {
|
|
99
|
+
console.error("Error setting item:", error);
|
|
100
|
+
throw error;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
// Delete item from cache and cloud
|
|
104
|
+
async delete(key) {
|
|
105
|
+
try {
|
|
106
|
+
if (this.storage === null || this.storage === undefined) {
|
|
107
|
+
await this.fetchStorageFromCloud();
|
|
108
|
+
}
|
|
109
|
+
// Remove from cache
|
|
110
|
+
if (this.storage) {
|
|
111
|
+
delete this.storage[key];
|
|
112
|
+
}
|
|
113
|
+
// Sync to cloud
|
|
114
|
+
const response = await (0, node_fetch_1.default)(`${this.baseUrl}/api/sdk/simple-storage/${encodeURIComponent(this.userId)}/${encodeURIComponent(key)}`, {
|
|
115
|
+
method: "DELETE",
|
|
116
|
+
headers: this.getAuthHeaders(),
|
|
117
|
+
});
|
|
118
|
+
if (response.ok) {
|
|
119
|
+
const result = await response.json();
|
|
120
|
+
return result.success;
|
|
121
|
+
}
|
|
122
|
+
else {
|
|
123
|
+
console.error("Failed to delete item from cloud:", await response.text());
|
|
124
|
+
return false;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
catch (error) {
|
|
128
|
+
console.error("Error deleting item:", error);
|
|
129
|
+
return false;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
// Clear all data from cache and cloud
|
|
133
|
+
async clear() {
|
|
134
|
+
try {
|
|
135
|
+
this.storage = {};
|
|
136
|
+
const response = await (0, node_fetch_1.default)(`${this.baseUrl}/api/sdk/simple-storage/${encodeURIComponent(this.userId)}`, {
|
|
137
|
+
method: "DELETE",
|
|
138
|
+
headers: this.getAuthHeaders(),
|
|
139
|
+
});
|
|
140
|
+
if (response.ok) {
|
|
141
|
+
const result = await response.json();
|
|
142
|
+
return result.success;
|
|
143
|
+
}
|
|
144
|
+
else {
|
|
145
|
+
console.error("Failed to clear storage from cloud:", await response.text());
|
|
146
|
+
return false;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
catch (error) {
|
|
150
|
+
console.error("Error clearing storage:", error);
|
|
151
|
+
return false;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
// Get all storage keys
|
|
155
|
+
async keys() {
|
|
156
|
+
try {
|
|
157
|
+
if (this.storage === null || this.storage === undefined) {
|
|
158
|
+
await this.fetchStorageFromCloud();
|
|
159
|
+
}
|
|
160
|
+
return Object.keys(this.storage || {});
|
|
161
|
+
}
|
|
162
|
+
catch (error) {
|
|
163
|
+
console.error("Error getting keys:", error);
|
|
164
|
+
return [];
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
// Get number of stored items
|
|
168
|
+
async size() {
|
|
169
|
+
try {
|
|
170
|
+
if (this.storage === null || this.storage === undefined) {
|
|
171
|
+
await this.fetchStorageFromCloud();
|
|
172
|
+
}
|
|
173
|
+
return Object.keys(this.storage || {}).length;
|
|
174
|
+
}
|
|
175
|
+
catch (error) {
|
|
176
|
+
console.error("Error getting storage size:", error);
|
|
177
|
+
return 0;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
// Check if key exists
|
|
181
|
+
async hasKey(key) {
|
|
182
|
+
try {
|
|
183
|
+
if (this.storage === null || this.storage === undefined) {
|
|
184
|
+
await this.fetchStorageFromCloud();
|
|
185
|
+
}
|
|
186
|
+
return key in (this.storage || {});
|
|
187
|
+
}
|
|
188
|
+
catch (error) {
|
|
189
|
+
console.error("Error checking key:", error);
|
|
190
|
+
return false;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
// Get copy of all stored data
|
|
194
|
+
async getAllData() {
|
|
195
|
+
try {
|
|
196
|
+
if (this.storage === null || this.storage === undefined) {
|
|
197
|
+
await this.fetchStorageFromCloud();
|
|
198
|
+
}
|
|
199
|
+
return { ...(this.storage || {}) };
|
|
200
|
+
}
|
|
201
|
+
catch (error) {
|
|
202
|
+
console.error("Error getting all data:", error);
|
|
203
|
+
return {};
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
// Set multiple items at once
|
|
207
|
+
async setMultiple(data) {
|
|
208
|
+
try {
|
|
209
|
+
if (this.storage === null || this.storage === undefined) {
|
|
210
|
+
await this.fetchStorageFromCloud();
|
|
211
|
+
}
|
|
212
|
+
// Update cache
|
|
213
|
+
if (this.storage) {
|
|
214
|
+
Object.assign(this.storage, data);
|
|
215
|
+
}
|
|
216
|
+
// Bulk upsert to cloud
|
|
217
|
+
const response = await (0, node_fetch_1.default)(`${this.baseUrl}/api/sdk/simple-storage/${encodeURIComponent(this.userId)}`, {
|
|
218
|
+
method: "PUT",
|
|
219
|
+
headers: this.getAuthHeaders(),
|
|
220
|
+
body: JSON.stringify({ data }),
|
|
221
|
+
});
|
|
222
|
+
if (!response.ok) {
|
|
223
|
+
console.error("Failed to upsert multiple items to cloud:", await response.text());
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
catch (error) {
|
|
227
|
+
console.error("Error setting multiple items:", error);
|
|
228
|
+
throw error;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
exports.SimpleStorage = SimpleStorage;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* messages.ts
|
|
3
|
+
*
|
|
4
|
+
* This file defines constant messages that should be displayed
|
|
5
|
+
* in the terminal to notify developers about new SDK releases.
|
|
6
|
+
*
|
|
7
|
+
* Each function generates a stylized ASCII message (banner-style)
|
|
8
|
+
* that highlights the latest SDK version and provides the npm install command.
|
|
9
|
+
* https://patorjk.com/software/taag/
|
|
10
|
+
*
|
|
11
|
+
* These messages are intended to be logged to the console or shown in
|
|
12
|
+
* terminal output so developers are aware of updates in a clear
|
|
13
|
+
* and visually distinct way.
|
|
14
|
+
*
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
export declare const newSDKUpdate2: (versionNumb: string) => string;
|
|
18
|
+
export declare const newSDKUpdate: (versionNumb: string) => string;
|
|
19
|
+
//# sourceMappingURL=messages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/constants/messages.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,eAAO,MAAM,aAAa,GAAI,aAAa,MAAM,KAAG,MAcnD,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,aAAa,MAAM,KAAG,MAoBlD,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* messages.ts
|
|
4
|
+
*
|
|
5
|
+
* This file defines constant messages that should be displayed
|
|
6
|
+
* in the terminal to notify developers about new SDK releases.
|
|
7
|
+
*
|
|
8
|
+
* Each function generates a stylized ASCII message (banner-style)
|
|
9
|
+
* that highlights the latest SDK version and provides the npm install command.
|
|
10
|
+
* https://patorjk.com/software/taag/
|
|
11
|
+
*
|
|
12
|
+
* These messages are intended to be logged to the console or shown in
|
|
13
|
+
* terminal output so developers are aware of updates in a clear
|
|
14
|
+
* and visually distinct way.
|
|
15
|
+
*
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.newSDKUpdate = exports.newSDKUpdate2 = void 0;
|
|
20
|
+
const newSDKUpdate2 = (versionNumb) => {
|
|
21
|
+
return `
|
|
22
|
+
___
|
|
23
|
+
/__/:\\ ┬╔╗╔╔═╗╦ ╦ ╦ ╦╔═╗╔╦╗╔═╗╔╦╗╔═╗┬
|
|
24
|
+
| |:: \\ │║║║║╣ ║║║ ║ ║╠═╝ ║║╠═╣ ║ ║╣ │
|
|
25
|
+
| |:|: \\ o╝╚╝╚═╝╚╩╝ ╚═╝╩ ═╩╝╩ ╩ ╩ ╚═╝o
|
|
26
|
+
__|__|:|\\:\\ -------------------------------
|
|
27
|
+
/__/::::| \\:\\ SDK VERSION V${versionNumb} is out!
|
|
28
|
+
\\ \\:\\~~\\_\\ -------------------------------
|
|
29
|
+
\\ \\:\\ npm install @mentra/sdk@latest
|
|
30
|
+
\\ \\:\\
|
|
31
|
+
\\ \\:\\
|
|
32
|
+
\\__\\/
|
|
33
|
+
`;
|
|
34
|
+
};
|
|
35
|
+
exports.newSDKUpdate2 = newSDKUpdate2;
|
|
36
|
+
const newSDKUpdate = (versionNumb) => {
|
|
37
|
+
return `
|
|
38
|
+
|
|
39
|
+
/$$ /$$ /$$$$$$$$ /$$ /$$ /$$$$$$$$ /$$$$$$$ /$$$$$$
|
|
40
|
+
| $$$ /$$$| $$_____/| $$$ | $$|__ $$__/| $$__ $$ /$$__ $$
|
|
41
|
+
| $$$$ /$$$$| $$ | $$$$| $$ | $$ | $$ \ $$| $$ \ $$
|
|
42
|
+
| $$ $$/$$ $$| $$$$$ | $$ $$ $$ | $$ | $$$$$$$/| $$$$$$$$
|
|
43
|
+
| $$ $$$| $$| $$__/ | $$ $$$$ | $$ | $$__ $$| $$__ $$
|
|
44
|
+
| $$\ $ | $$| $$ | $$\ $$$ | $$ | $$ \ $$| $$ | $$
|
|
45
|
+
| $$ \/ | $$| $$$$$$$$| $$ \ $$ | $$ | $$ | $$| $$ | $$
|
|
46
|
+
|__/ |__/|________/|__/ \__/ |__/ |__/ |__/|__/ |__/
|
|
47
|
+
|
|
48
|
+
┬╔╗╔╔═╗╦ ╦ ╦ ╦╔═╗╔╦╗╔═╗╔╦╗╔═╗┬
|
|
49
|
+
│║║║║╣ ║║║ ║ ║╠═╝ ║║╠═╣ ║ ║╣ │
|
|
50
|
+
o╝╚╝╚═╝╚╩╝ ╚═╝╩ ═╩╝╩ ╩ ╩ ╚═╝o
|
|
51
|
+
-------------------------------
|
|
52
|
+
SDK VERSION V${versionNumb} is out!
|
|
53
|
+
-------------------------------
|
|
54
|
+
bun install @mentra/sdk@latest
|
|
55
|
+
`;
|
|
56
|
+
};
|
|
57
|
+
exports.newSDKUpdate = newSDKUpdate;
|
package/dist/index.d.ts
CHANGED
|
@@ -12,14 +12,13 @@ export * from "./types/streams";
|
|
|
12
12
|
export * from "./types/layouts";
|
|
13
13
|
export * from "./types/dashboard";
|
|
14
14
|
export * from "./types/rtmp-stream";
|
|
15
|
-
export { AppType,
|
|
15
|
+
export { AppType, LayoutType, ViewType, AppSettingType, HardwareType, HardwareRequirementLevel, } from "./types/enums";
|
|
16
16
|
export * from "./types/models";
|
|
17
|
-
export * from "./types/user-session";
|
|
18
17
|
export * from "./types/webhooks";
|
|
19
18
|
export * from "./types/capabilities";
|
|
20
19
|
export * from "./app/index";
|
|
21
20
|
export * from "./logging/logger";
|
|
22
|
-
export { ButtonPress, HeadPosition, GlassesBatteryUpdate, PhoneBatteryUpdate, GlassesConnectionState, LocationUpdate, CalendarEvent, Vad, PhoneNotification, PhoneNotificationDismissed, StartApp, StopApp, ConnectionInit, DashboardState, OpenDashboard, GlassesToCloudMessage, PhotoResponse, RtmpStreamStatus, KeepAliveAck, } from "./types/messages/glasses-to-cloud";
|
|
21
|
+
export { ButtonPress, HeadPosition, GlassesBatteryUpdate, PhoneBatteryUpdate, GlassesConnectionState, LocationUpdate, CalendarEvent, Vad, PhoneNotification, PhoneNotificationDismissed, StartApp, StopApp, ConnectionInit, DashboardState, OpenDashboard, GlassesToCloudMessage, PhotoResponse, PhotoErrorCode, PhotoStage, ConnectionState, PhotoErrorDetails, RtmpStreamStatus, KeepAliveAck, } from "./types/messages/glasses-to-cloud";
|
|
23
22
|
export { ConnectionAck, ConnectionError, AuthError, DisplayEvent, AppStateChange, MicrophoneStateChange, CloudToGlassesMessage, PhotoRequestToGlasses, SettingsUpdate, StartRtmpStream, StopRtmpStream, KeepRtmpStreamAlive, } from "./types/messages/cloud-to-glasses";
|
|
24
23
|
export { AppConnectionInit, AppSubscriptionUpdate, RtmpStreamRequest, RtmpStreamStopRequest, AppToCloudMessage, PhotoRequest, } from "./types/messages/app-to-cloud";
|
|
25
24
|
export { TextWall, DoubleTextWall, DashboardCard, ReferenceCard, Layout, DisplayRequest, BitmapView, ClearView, } from "./types/layouts";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,cAAc,eAAe,CAAC;AAG9B,cAAc,uBAAuB,CAAC;AAGtC,cAAc,uBAAuB,CAAC;AAGtC,cAAc,mCAAmC,CAAC;AAClD,cAAc,mCAAmC,CAAC;AAClD,cAAc,+BAA+B,CAAC;AAG9C,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AAGxC,OAAO,EAEL,gBAAgB,EAChB,kBAAkB,EAClB,UAAU,EACV,cAAc,IAAI,iBAAiB,EAAE,+DAA+D;AACpG,kBAAkB,EAClB,UAAU,EACV,iBAAiB,EACjB,eAAe,EACf,QAAQ,EACR,uBAAuB,EACvB,aAAa,EACb,mBAAmB,EACnB,yBAAyB,EACzB,YAAY,EACZ,sBAAsB,EACtB,iBAAiB,EACjB,qBAAqB,EACrB,WAAW,EACX,UAAU,EACV,eAAe,EACf,qBAAqB,EACrB,iBAAiB,EAEjB,kBAAkB,EAClB,oBAAoB,EACpB,YAAY,EACZ,gBAAgB,EAChB,oBAAoB,EACpB,YAAY,EACZ,YAAY,EACZ,2BAA2B,EAC3B,sBAAsB,EACtB,0BAA0B,EAC1B,qBAAqB,EAGrB,eAAe,IAAI,wBAAwB,EAC3C,kBAAkB,IAAI,2BAA2B,GAClD,MAAM,+BAA+B,CAAC;AAGvC,c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AAuB,EACvB,gBAAgB,EAChB,mBAAmB,EACnB,uBAAuB,EACvB,cAAc,IAAI,qBAAqB,GACxC,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EACL,cAAc,EACd,UAAU,EACV,WAAW,EACX,SAAS,EACT,iBAAiB,EACjB,UAAU,EACV,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EACL,WAAW,EACX,WAAW,EACX,YAAY,EACZ,mBAAmB,GACpB,MAAM,qBAAqB,CAAC;AAG7B,cAAc,uBAAuB,CAAC;AAGtC,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
16
|
};
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.validateAppConfig = exports.isPhotoRequestFromApp = exports.isRtmpStreamStopRequest = exports.isRtmpStreamRequest = exports.isDisplayRequest = exports.isAppSubscriptionUpdate = exports.isAppConnectionInit = exports.isKeepRtmpStreamAlive = exports.isStopRtmpStream = exports.isStartRtmpStream = exports.isSettingsUpdateToGlasses = exports.isPhotoRequest = exports.isAppStateChange = exports.isDisplayEvent = exports.isConnectionAck = exports.isPhoneNotificationDismissed = exports.isKeepAliveAck = exports.isRtmpStreamStatusFromGlasses = exports.isPhotoResponseFromGlasses = exports.isStopApp = exports.isStartApp = exports.isConnectionInit = exports.isHeadPosition = exports.isButtonPress = exports.
|
|
18
|
+
exports.validateAppConfig = exports.isPhotoRequestFromApp = exports.isRtmpStreamStopRequest = exports.isRtmpStreamRequest = exports.isDisplayRequest = exports.isAppSubscriptionUpdate = exports.isAppConnectionInit = exports.isKeepRtmpStreamAlive = exports.isStopRtmpStream = exports.isStartRtmpStream = exports.isSettingsUpdateToGlasses = exports.isPhotoRequest = exports.isAppStateChange = exports.isDisplayEvent = exports.isConnectionAck = exports.isPhoneNotificationDismissed = exports.isKeepAliveAck = exports.isRtmpStreamStatusFromGlasses = exports.isPhotoResponseFromGlasses = exports.isStopApp = exports.isStartApp = exports.isConnectionInit = exports.isHeadPosition = exports.isButtonPress = exports.PhotoStage = exports.PhotoErrorCode = exports.HardwareRequirementLevel = exports.HardwareType = exports.AppSettingType = exports.ViewType = exports.LayoutType = exports.AppType = exports.isRtmpStreamStatusFromCloud = exports.isPhotoResponseFromCloud = exports.isManagedStreamStatus = exports.isDashboardAlwaysOnChanged = exports.isDashboardModeChanged = exports.isStreamStatusCheckResponse = exports.isAudioChunk = exports.isDataStream = exports.isCapabilitiesUpdate = exports.isSettingsUpdate = exports.isAppStopped = exports.isAppConnectionError = exports.isAppConnectionAck = void 0;
|
|
19
19
|
__exportStar(require("./types/token"), exports);
|
|
20
20
|
// Message type enums
|
|
21
21
|
__exportStar(require("./types/message-types"), exports);
|
|
@@ -57,8 +57,6 @@ __exportStar(require("./types/rtmp-stream"), exports);
|
|
|
57
57
|
// Other system enums
|
|
58
58
|
var enums_1 = require("./types/enums");
|
|
59
59
|
Object.defineProperty(exports, "AppType", { enumerable: true, get: function () { return enums_1.AppType; } });
|
|
60
|
-
Object.defineProperty(exports, "AppState", { enumerable: true, get: function () { return enums_1.AppState; } });
|
|
61
|
-
Object.defineProperty(exports, "Language", { enumerable: true, get: function () { return enums_1.Language; } });
|
|
62
60
|
Object.defineProperty(exports, "LayoutType", { enumerable: true, get: function () { return enums_1.LayoutType; } });
|
|
63
61
|
Object.defineProperty(exports, "ViewType", { enumerable: true, get: function () { return enums_1.ViewType; } });
|
|
64
62
|
Object.defineProperty(exports, "AppSettingType", { enumerable: true, get: function () { return enums_1.AppSettingType; } });
|
|
@@ -66,8 +64,6 @@ Object.defineProperty(exports, "HardwareType", { enumerable: true, get: function
|
|
|
66
64
|
Object.defineProperty(exports, "HardwareRequirementLevel", { enumerable: true, get: function () { return enums_1.HardwareRequirementLevel; } });
|
|
67
65
|
// Core model interfaces
|
|
68
66
|
__exportStar(require("./types/models"), exports);
|
|
69
|
-
// Session-related interfaces
|
|
70
|
-
__exportStar(require("./types/user-session"), exports);
|
|
71
67
|
// Webhook interfaces
|
|
72
68
|
__exportStar(require("./types/webhooks"), exports);
|
|
73
69
|
// Capability Discovery types
|
|
@@ -76,17 +72,24 @@ __exportStar(require("./types/capabilities"), exports);
|
|
|
76
72
|
__exportStar(require("./app/index"), exports);
|
|
77
73
|
// Logging exports
|
|
78
74
|
__exportStar(require("./logging/logger"), exports);
|
|
79
|
-
//
|
|
75
|
+
// Re-export common types for convenience
|
|
76
|
+
// This allows developers to import commonly used types directly from the package root
|
|
77
|
+
// without having to know exactly which file they come from
|
|
78
|
+
// From messages/glasses-to-cloud.ts
|
|
80
79
|
var glasses_to_cloud_1 = require("./types/messages/glasses-to-cloud");
|
|
81
|
-
Object.defineProperty(exports, "
|
|
82
|
-
Object.defineProperty(exports, "
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
Object.defineProperty(exports, "
|
|
86
|
-
Object.defineProperty(exports, "
|
|
87
|
-
Object.defineProperty(exports, "
|
|
88
|
-
Object.defineProperty(exports, "
|
|
89
|
-
Object.defineProperty(exports, "
|
|
80
|
+
Object.defineProperty(exports, "PhotoErrorCode", { enumerable: true, get: function () { return glasses_to_cloud_1.PhotoErrorCode; } });
|
|
81
|
+
Object.defineProperty(exports, "PhotoStage", { enumerable: true, get: function () { return glasses_to_cloud_1.PhotoStage; } });
|
|
82
|
+
// Type guards - re-export the most commonly used ones for convenience
|
|
83
|
+
var glasses_to_cloud_2 = require("./types/messages/glasses-to-cloud");
|
|
84
|
+
Object.defineProperty(exports, "isButtonPress", { enumerable: true, get: function () { return glasses_to_cloud_2.isButtonPress; } });
|
|
85
|
+
Object.defineProperty(exports, "isHeadPosition", { enumerable: true, get: function () { return glasses_to_cloud_2.isHeadPosition; } });
|
|
86
|
+
Object.defineProperty(exports, "isConnectionInit", { enumerable: true, get: function () { return glasses_to_cloud_2.isConnectionInit; } });
|
|
87
|
+
Object.defineProperty(exports, "isStartApp", { enumerable: true, get: function () { return glasses_to_cloud_2.isStartApp; } });
|
|
88
|
+
Object.defineProperty(exports, "isStopApp", { enumerable: true, get: function () { return glasses_to_cloud_2.isStopApp; } });
|
|
89
|
+
Object.defineProperty(exports, "isPhotoResponseFromGlasses", { enumerable: true, get: function () { return glasses_to_cloud_2.isPhotoResponse; } });
|
|
90
|
+
Object.defineProperty(exports, "isRtmpStreamStatusFromGlasses", { enumerable: true, get: function () { return glasses_to_cloud_2.isRtmpStreamStatus; } });
|
|
91
|
+
Object.defineProperty(exports, "isKeepAliveAck", { enumerable: true, get: function () { return glasses_to_cloud_2.isKeepAliveAck; } });
|
|
92
|
+
Object.defineProperty(exports, "isPhoneNotificationDismissed", { enumerable: true, get: function () { return glasses_to_cloud_2.isPhoneNotificationDismissed; } });
|
|
90
93
|
var cloud_to_glasses_1 = require("./types/messages/cloud-to-glasses");
|
|
91
94
|
Object.defineProperty(exports, "isConnectionAck", { enumerable: true, get: function () { return cloud_to_glasses_1.isConnectionAck; } });
|
|
92
95
|
Object.defineProperty(exports, "isDisplayEvent", { enumerable: true, get: function () { return cloud_to_glasses_1.isDisplayEvent; } });
|
package/dist/types/enums.d.ts
CHANGED
|
@@ -6,25 +6,6 @@ export declare enum AppType {
|
|
|
6
6
|
BACKGROUND = "background",// Can temporarily take control of display
|
|
7
7
|
STANDARD = "standard"
|
|
8
8
|
}
|
|
9
|
-
/**
|
|
10
|
-
* Application states in the system
|
|
11
|
-
*/
|
|
12
|
-
export declare enum AppState {
|
|
13
|
-
NOT_INSTALLED = "not_installed",// Initial state
|
|
14
|
-
INSTALLED = "installed",// Installed but never run
|
|
15
|
-
BOOTING = "booting",// Starting up
|
|
16
|
-
RUNNING = "running",// Active and running
|
|
17
|
-
STOPPED = "stopped",// Manually stopped
|
|
18
|
-
ERROR = "error"
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Supported languages
|
|
22
|
-
*/
|
|
23
|
-
export declare enum Language {
|
|
24
|
-
EN = "en",
|
|
25
|
-
ES = "es",
|
|
26
|
-
FR = "fr"
|
|
27
|
-
}
|
|
28
9
|
/**
|
|
29
10
|
* Types of layouts for displaying content
|
|
30
11
|
*/
|
|
@@ -42,7 +23,6 @@ export declare enum LayoutType {
|
|
|
42
23
|
*/
|
|
43
24
|
export declare enum ViewType {
|
|
44
25
|
DASHBOARD = "dashboard",// Regular dashboard (main/expanded)
|
|
45
|
-
ALWAYS_ON = "always_on",// Persistent overlay dashboard
|
|
46
26
|
MAIN = "main"
|
|
47
27
|
}
|
|
48
28
|
export declare enum AppSettingType {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../src/types/enums.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,oBAAY,OAAO;IACjB,gBAAgB,qBAAqB,CAAE,6CAA6C;IACpF,UAAU,eAAe,CAAE,0CAA0C;IACrE,QAAQ,aAAa;CACtB;
|
|
1
|
+
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../src/types/enums.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,oBAAY,OAAO;IACjB,gBAAgB,qBAAqB,CAAE,6CAA6C;IACpF,UAAU,eAAe,CAAE,0CAA0C;IACrE,QAAQ,aAAa;CACtB;AAED;;GAEG;AACH,oBAAY,UAAU;IACpB,SAAS,cAAc;IACvB,gBAAgB,qBAAqB;IACrC,cAAc,mBAAmB;IACjC,cAAc,mBAAmB;IACjC,WAAW,gBAAgB;IAC3B,gBAAgB,qBAAqB;IACrC,UAAU,eAAe;CAC1B;AAED;;GAEG;AACH,oBAAY,QAAQ;IAClB,SAAS,cAAc,CAAE,oCAAoC;IAE7D,IAAI,SAAS;CACd;AAGD,oBAAY,cAAc;IACxB,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,mBAAmB,wBAAwB;IAC3C,kBAAkB,uBAAuB;IACzC,WAAW,gBAAgB;IAC3B,WAAW,eAAe;IAC1B,aAAa,kBAAkB;IAC/B,WAAW,gBAAgB;CAC5B;AAKD;;GAEG;AACH,oBAAY,YAAY;IACtB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,OAAO,YAAY;IACnB,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,IAAI,SAAS;CACd;AAED;;GAEG;AACH,oBAAY,wBAAwB;IAClC,QAAQ,aAAa,CAAE,4CAA4C;IACnE,QAAQ,aAAa;CACtB"}
|
package/dist/types/enums.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// src/enums.ts
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.HardwareRequirementLevel = exports.HardwareType = exports.AppSettingType = exports.ViewType = exports.LayoutType = exports.
|
|
4
|
+
exports.HardwareRequirementLevel = exports.HardwareType = exports.AppSettingType = exports.ViewType = exports.LayoutType = exports.AppType = void 0;
|
|
5
5
|
/**
|
|
6
6
|
* Types of Third-Party Applications (Apps)
|
|
7
7
|
*/
|
|
@@ -11,29 +11,6 @@ var AppType;
|
|
|
11
11
|
AppType["BACKGROUND"] = "background";
|
|
12
12
|
AppType["STANDARD"] = "standard";
|
|
13
13
|
})(AppType || (exports.AppType = AppType = {}));
|
|
14
|
-
// TODO(isaiah): doesn't seem like this is actually used anywhere, remove?
|
|
15
|
-
/**
|
|
16
|
-
* Application states in the system
|
|
17
|
-
*/
|
|
18
|
-
var AppState;
|
|
19
|
-
(function (AppState) {
|
|
20
|
-
AppState["NOT_INSTALLED"] = "not_installed";
|
|
21
|
-
AppState["INSTALLED"] = "installed";
|
|
22
|
-
AppState["BOOTING"] = "booting";
|
|
23
|
-
AppState["RUNNING"] = "running";
|
|
24
|
-
AppState["STOPPED"] = "stopped";
|
|
25
|
-
AppState["ERROR"] = "error";
|
|
26
|
-
})(AppState || (exports.AppState = AppState = {}));
|
|
27
|
-
/**
|
|
28
|
-
* Supported languages
|
|
29
|
-
*/
|
|
30
|
-
var Language;
|
|
31
|
-
(function (Language) {
|
|
32
|
-
Language["EN"] = "en";
|
|
33
|
-
Language["ES"] = "es";
|
|
34
|
-
Language["FR"] = "fr";
|
|
35
|
-
// TODO: Add more languages
|
|
36
|
-
})(Language || (exports.Language = Language = {}));
|
|
37
14
|
/**
|
|
38
15
|
* Types of layouts for displaying content
|
|
39
16
|
*/
|
|
@@ -53,7 +30,7 @@ var LayoutType;
|
|
|
53
30
|
var ViewType;
|
|
54
31
|
(function (ViewType) {
|
|
55
32
|
ViewType["DASHBOARD"] = "dashboard";
|
|
56
|
-
|
|
33
|
+
// ALWAYS_ON = "always_on", // Persistent overlay dashboard
|
|
57
34
|
ViewType["MAIN"] = "main";
|
|
58
35
|
})(ViewType || (exports.ViewType = ViewType = {}));
|
|
59
36
|
// Types for AppSettings
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAEA,cAAc,SAAS,CAAC;AAGxB,cAAc,iBAAiB,CAAC;AAGhC,cAAc,iBAAiB,CAAC;AAGhC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AAGxC,OAAO,EAEL,gBAAgB,EAChB,kBAAkB,EAClB,UAAU,EACV,cAAc,IAAI,iBAAiB,EAAE,+DAA+D;AACpG,kBAAkB,EAClB,UAAU,EACV,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,QAAQ,EACR,uBAAuB,EACvB,aAAa,EACb,mBAAmB,EACnB,yBAAyB,EACzB,YAAY,EACZ,sBAAsB,EACtB,iBAAiB,EACjB,qBAAqB,EACrB,WAAW,EACX,UAAU,EACV,eAAe,EACf,qBAAqB,EAErB,kBAAkB,EAClB,oBAAoB,EACpB,YAAY,EACZ,gBAAgB,EAChB,oBAAoB,EACpB,YAAY,EACZ,YAAY,EACZ,mBAAmB,EACnB,sBAAsB,EACtB,0BAA0B,EAC1B,qBAAqB,EACrB,2BAA2B,EAG3B,eAAe,IAAI,wBAAwB,EAC3C,kBAAkB,IAAI,2BAA2B,GAClD,MAAM,yBAAyB,CAAC;AAGjC,cAAc,WAAW,CAAC;AAG1B,cAAc,WAAW,CAAC;AAG1B,cAAc,aAAa,CAAC;AAG5B,cAAc,eAAe,CAAC;AAG9B,cAAc,SAAS,CAAC;AAGxB,cAAc,UAAU,CAAC;AAGzB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAEA,cAAc,SAAS,CAAC;AAGxB,cAAc,iBAAiB,CAAC;AAGhC,cAAc,iBAAiB,CAAC;AAGhC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AAGxC,OAAO,EAEL,gBAAgB,EAChB,kBAAkB,EAClB,UAAU,EACV,cAAc,IAAI,iBAAiB,EAAE,+DAA+D;AACpG,kBAAkB,EAClB,UAAU,EACV,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,QAAQ,EACR,uBAAuB,EACvB,aAAa,EACb,mBAAmB,EACnB,yBAAyB,EACzB,YAAY,EACZ,sBAAsB,EACtB,iBAAiB,EACjB,qBAAqB,EACrB,WAAW,EACX,UAAU,EACV,eAAe,EACf,qBAAqB,EAErB,kBAAkB,E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,cAAc,EACd,gBAAgB,EAChB,UAAU,EACV,SAAS,EACT,eAAe,IAAI,0BAA0B,EAC7C,kBAAkB,IAAI,6BAA6B,EACnD,cAAc,GACf,MAAM,6BAA6B,CAAC;AAErC,OAAO,EACL,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,2BAA2B,EAC3B,2BAA2B,EAC3B,gBAAgB,IAAI,yBAAyB,EAC7C,iBAAiB,EACjB,gBAAgB,EAChB,qBAAqB,GACtB,MAAM,6BAA6B,CAAC;AAErC,OAAO,EACL,mBAAmB,EACnB,uBAAuB,EACvB,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,uBAAuB,EACvB,cAAc,IAAI,qBAAqB,GACxC,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EACL,cAAc,EACd,UAAU,EACV,WAAW,EACX,SAAS,EACT,iBAAiB,EACjB,UAAU,EACV,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,UAAU,CAAC;AAGlB,OAAO,EAAE,YAAY,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAEjE,OAAO,EACL,WAAW,EACX,WAAW,EACX,YAAY,EACZ,mBAAmB,GACpB,MAAM,eAAe,CAAC;AAEvB;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,MAAM,WAAW,oBAAqB,SAAQ,OAAO;IACnD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,UAAU,GAAG,IAAI,CAAC;CAClC"}
|
package/dist/types/index.js
CHANGED
|
@@ -56,8 +56,6 @@ __exportStar(require("./rtmp-stream"), exports);
|
|
|
56
56
|
__exportStar(require("./enums"), exports);
|
|
57
57
|
// Core model interfaces
|
|
58
58
|
__exportStar(require("./models"), exports);
|
|
59
|
-
// Session-related interfaces
|
|
60
|
-
__exportStar(require("./user-session"), exports);
|
|
61
59
|
// Webhook interfaces
|
|
62
60
|
__exportStar(require("./webhooks"), exports);
|
|
63
61
|
// Capability Discovery types
|
package/dist/types/layouts.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { LayoutType, ViewType } from
|
|
2
|
-
import { AppToCloudMessageType } from
|
|
3
|
-
import { BaseMessage } from
|
|
1
|
+
import { LayoutType, ViewType } from "./enums";
|
|
2
|
+
import { AppToCloudMessageType } from "./message-types";
|
|
3
|
+
import { BaseMessage } from "./messages/base";
|
|
4
4
|
/**
|
|
5
5
|
* Text wall layout
|
|
6
6
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layouts.d.ts","sourceRoot":"","sources":["../../src/types/layouts.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C;;GAEG;AACH,MAAM,WAAW,QAAQ;
|
|
1
|
+
{"version":3,"file":"layouts.d.ts","sourceRoot":"","sources":["../../src/types/layouts.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,UAAU,EAAE,UAAU,CAAC,SAAS,CAAC;IACjC,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,UAAU,CAAC,gBAAgB,CAAC;IACxC,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,UAAU,EAAE,UAAU,CAAC,cAAc,CAAC;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,UAAU,EAAE,UAAU,CAAC,cAAc,CAAC;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,UAAU;IACzB,UAAU,EAAE,UAAU,CAAC,WAAW,CAAC;IACnC,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,UAAU,CAAC,gBAAgB,CAAC;IACxC,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,UAAU,EAAE,UAAU,CAAC,UAAU,CAAC;CACnC;AAED;;GAEG;AACH,MAAM,MAAM,MAAM,GACd,QAAQ,GACR,cAAc,GACd,aAAa,GACb,aAAa,GACb,UAAU,GACV,eAAe,GACf,SAAS,CAAC;AAEd,MAAM,WAAW,cAAe,SAAQ,WAAW;IACjD,IAAI,EAAE,qBAAqB,CAAC,eAAe,CAAC;IAC5C,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,QAAQ,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB"}
|
|
@@ -38,10 +38,10 @@ export declare enum CloudToGlassesMessageType {
|
|
|
38
38
|
DISPLAY_EVENT = "display_event",
|
|
39
39
|
APP_STATE_CHANGE = "app_state_change",
|
|
40
40
|
MICROPHONE_STATE_CHANGE = "microphone_state_change",
|
|
41
|
+
SETTINGS_UPDATE = "settings_update",
|
|
41
42
|
PHOTO_REQUEST = "photo_request",
|
|
42
43
|
AUDIO_PLAY_REQUEST = "audio_play_request",
|
|
43
44
|
AUDIO_STOP_REQUEST = "audio_stop_request",
|
|
44
|
-
SETTINGS_UPDATE = "settings_update",
|
|
45
45
|
START_RTMP_STREAM = "start_rtmp_stream",
|
|
46
46
|
STOP_RTMP_STREAM = "stop_rtmp_stream",
|
|
47
47
|
KEEP_RTMP_STREAM_ALIVE = "keep_rtmp_stream_alive",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message-types.d.ts","sourceRoot":"","sources":["../../src/types/message-types.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,oBAAY,yBAAyB;IAEnC,eAAe,oBAAoB;IACnC,gBAAgB,qBAAqB;
|
|
1
|
+
{"version":3,"file":"message-types.d.ts","sourceRoot":"","sources":["../../src/types/message-types.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,oBAAY,yBAAyB;IAEnC,eAAe,oBAAoB;IACnC,gBAAgB,qBAAqB;IAErC,SAAS,cAAuB;IAChC,QAAQ,aAAsB;IAE9B,eAAe,oBAAoB;IACnC,cAAc,mBAA4B;IAG1C,cAAc,mBAA4B;IAG1C,mBAAmB,wBAAwB;IAG3C,kBAAkB,uBAAgC;IAClD,cAAc,mBAAmB;IAEjC,YAAY,iBAA0B;IACtC,aAAa,kBAA2B;IACxC,sBAAsB,2BAAoC;IAC1D,oBAAoB,yBAAkC;IACtD,wBAAwB,6BAAsC;IAC9D,eAAe,oBAA6B;IAG5C,eAAe,oBAA6B;IAC5C,GAAG,QAAiB;IAGpB,kBAAkB,uBAAgC;IAClD,4BAA4B,iCAA0C;IAGtE,cAAc,mBAA4B;IAC1C,gCAAgC,4BAA8C;IAG9E,kBAAkB,uBAAgC;IAElD,WAAW,gBAAyB;IACpC,mBAAmB,wBAAwB;C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