@mentra/sdk 1.1.20 → 2.0.1
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/{tpa → app}/index.d.ts.map +1 -1
- package/dist/{tpa → app}/index.js +2 -2
- package/dist/{tpa → app}/server/index.d.ts +21 -21
- package/dist/app/server/index.d.ts.map +1 -0
- package/dist/{tpa → app}/server/index.js +21 -21
- package/dist/{tpa → app}/session/api-client.d.ts +1 -1
- package/dist/{tpa → app}/session/api-client.d.ts.map +1 -1
- package/dist/{tpa → app}/session/api-client.js +2 -2
- package/dist/{tpa → app}/session/dashboard.d.ts +9 -9
- package/dist/{tpa → app}/session/dashboard.d.ts.map +1 -1
- package/dist/{tpa → app}/session/dashboard.js +10 -10
- package/dist/{tpa → app}/session/events.d.ts +1 -1
- package/dist/{tpa → app}/session/events.d.ts.map +1 -1
- package/dist/{tpa → app}/session/events.js +1 -1
- package/dist/{tpa → app}/session/index.d.ts +38 -38
- package/dist/{tpa → app}/session/index.d.ts.map +1 -1
- package/dist/{tpa → app}/session/index.js +116 -116
- package/dist/{tpa → app}/session/layouts.d.ts +2 -2
- package/dist/{tpa → app}/session/layouts.d.ts.map +1 -1
- package/dist/{tpa → app}/session/layouts.js +4 -4
- package/dist/{tpa → app}/session/modules/streaming.d.ts +5 -5
- package/dist/{tpa → app}/session/modules/streaming.d.ts.map +1 -1
- package/dist/{tpa → app}/session/modules/streaming.js +7 -7
- package/dist/{tpa → app}/session/settings.d.ts +3 -3
- package/dist/{tpa → app}/session/settings.d.ts.map +1 -1
- package/dist/{tpa → app}/session/settings.js +5 -7
- package/dist/app/token/index.d.ts +7 -0
- package/dist/app/token/index.d.ts.map +1 -0
- package/dist/{tpa → app}/token/index.js +2 -2
- package/dist/{tpa → app}/token/utils.d.ts +6 -6
- package/dist/{tpa → app}/token/utils.d.ts.map +1 -1
- package/dist/{tpa → app}/token/utils.js +6 -6
- package/dist/{tpa → app}/webview/index.d.ts +3 -3
- package/dist/{tpa → app}/webview/index.d.ts.map +1 -1
- package/dist/{tpa → app}/webview/index.js +4 -4
- package/dist/examples/rtmp-streaming-example.js +6 -6
- package/dist/index.d.ts +39 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +76 -16
- package/dist/types/capabilities.d.ts +1 -1
- package/dist/types/capabilities.js +1 -1
- package/dist/types/dashboard/index.d.ts +9 -9
- package/dist/types/enums.d.ts +2 -2
- package/dist/types/enums.js +8 -8
- package/dist/types/index.d.ts +6 -6
- package/dist/types/index.js +24 -24
- package/dist/types/layouts.d.ts +2 -2
- package/dist/types/message-types.d.ts +15 -15
- package/dist/types/message-types.js +47 -47
- package/dist/types/messages/app-to-cloud.d.ts +146 -0
- package/dist/types/messages/{tpa-to-cloud.d.ts.map → app-to-cloud.d.ts.map} +1 -1
- package/dist/types/messages/{tpa-to-cloud.js → app-to-cloud.js} +18 -18
- package/dist/types/messages/{cloud-to-tpa.d.ts → cloud-to-app.d.ts} +52 -52
- package/dist/types/messages/{cloud-to-tpa.d.ts.map → cloud-to-app.d.ts.map} +1 -1
- package/dist/types/messages/{cloud-to-tpa.js → cloud-to-app.js} +22 -22
- package/dist/types/models.d.ts +7 -7
- package/dist/types/models.js +3 -3
- package/dist/types/streams.d.ts +2 -2
- package/dist/types/streams.js +2 -2
- package/dist/types/token.d.ts +7 -7
- package/dist/types/token.js +2 -2
- package/dist/types/webhooks.d.ts +8 -8
- package/dist/types/webhooks.js +3 -3
- package/package.json +1 -1
- package/dist/tpa/server/index.d.ts.map +0 -1
- package/dist/tpa/token/index.d.ts +0 -7
- package/dist/tpa/token/index.d.ts.map +0 -1
- package/dist/types/messages/tpa-to-cloud.d.ts +0 -146
- /package/dist/{tpa → app}/index.d.ts +0 -0
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
|
-
// src/messages/
|
2
|
+
// src/messages/app-to-cloud.ts
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
-
exports.
|
5
|
-
exports.
|
4
|
+
exports.isAppConnectionInit = isAppConnectionInit;
|
5
|
+
exports.isAppSubscriptionUpdate = isAppSubscriptionUpdate;
|
6
6
|
exports.isDisplayRequest = isDisplayRequest;
|
7
7
|
exports.isPhotoRequest = isPhotoRequest;
|
8
8
|
exports.isDashboardContentUpdate = isDashboardContentUpdate;
|
@@ -12,56 +12,56 @@ exports.isRtmpStreamRequest = isRtmpStreamRequest;
|
|
12
12
|
exports.isRtmpStreamStopRequest = isRtmpStreamStopRequest;
|
13
13
|
const message_types_1 = require("../message-types");
|
14
14
|
/**
|
15
|
-
* Type guard to check if a message is a
|
15
|
+
* Type guard to check if a message is a App connection init
|
16
16
|
*/
|
17
|
-
function
|
18
|
-
return message.type === message_types_1.
|
17
|
+
function isAppConnectionInit(message) {
|
18
|
+
return message.type === message_types_1.AppToCloudMessageType.CONNECTION_INIT;
|
19
19
|
}
|
20
20
|
/**
|
21
|
-
* Type guard to check if a message is a
|
21
|
+
* Type guard to check if a message is a App subscription update
|
22
22
|
*/
|
23
|
-
function
|
24
|
-
return message.type === message_types_1.
|
23
|
+
function isAppSubscriptionUpdate(message) {
|
24
|
+
return message.type === message_types_1.AppToCloudMessageType.SUBSCRIPTION_UPDATE;
|
25
25
|
}
|
26
26
|
/**
|
27
|
-
* Type guard to check if a message is a
|
27
|
+
* Type guard to check if a message is a App display request
|
28
28
|
*/
|
29
29
|
function isDisplayRequest(message) {
|
30
|
-
return message.type === message_types_1.
|
30
|
+
return message.type === message_types_1.AppToCloudMessageType.DISPLAY_REQUEST;
|
31
31
|
}
|
32
32
|
/**
|
33
|
-
* Type guard to check if a message is a
|
33
|
+
* Type guard to check if a message is a App photo request
|
34
34
|
*/
|
35
35
|
function isPhotoRequest(message) {
|
36
|
-
return message.type === message_types_1.
|
36
|
+
return message.type === message_types_1.AppToCloudMessageType.PHOTO_REQUEST;
|
37
37
|
}
|
38
38
|
/**
|
39
39
|
* Type guard to check if a message is a dashboard content update
|
40
40
|
*/
|
41
41
|
function isDashboardContentUpdate(message) {
|
42
|
-
return message.type === message_types_1.
|
42
|
+
return message.type === message_types_1.AppToCloudMessageType.DASHBOARD_CONTENT_UPDATE;
|
43
43
|
}
|
44
44
|
/**
|
45
45
|
* Type guard to check if a message is a dashboard mode change
|
46
46
|
*/
|
47
47
|
function isDashboardModeChange(message) {
|
48
|
-
return message.type === message_types_1.
|
48
|
+
return message.type === message_types_1.AppToCloudMessageType.DASHBOARD_MODE_CHANGE;
|
49
49
|
}
|
50
50
|
/**
|
51
51
|
* Type guard to check if a message is a dashboard system update
|
52
52
|
*/
|
53
53
|
function isDashboardSystemUpdate(message) {
|
54
|
-
return message.type === message_types_1.
|
54
|
+
return message.type === message_types_1.AppToCloudMessageType.DASHBOARD_SYSTEM_UPDATE;
|
55
55
|
}
|
56
56
|
/**
|
57
57
|
* Type guard to check if a message is an RTMP stream request
|
58
58
|
*/
|
59
59
|
function isRtmpStreamRequest(message) {
|
60
|
-
return message.type === message_types_1.
|
60
|
+
return message.type === message_types_1.AppToCloudMessageType.RTMP_STREAM_REQUEST;
|
61
61
|
}
|
62
62
|
/**
|
63
63
|
* Type guard to check if a message is an RTMP stream stop request
|
64
64
|
*/
|
65
65
|
function isRtmpStreamStopRequest(message) {
|
66
|
-
return message.type === message_types_1.
|
66
|
+
return message.type === message_types_1.AppToCloudMessageType.RTMP_STREAM_STOP;
|
67
67
|
}
|
@@ -1,25 +1,25 @@
|
|
1
1
|
import { BaseMessage } from './base';
|
2
|
-
import {
|
2
|
+
import { CloudToAppMessageType } from '../message-types';
|
3
3
|
import { StreamType } from '../streams';
|
4
|
-
import { AppSettings,
|
4
|
+
import { AppSettings, AppConfig } from '../models';
|
5
5
|
import { LocationUpdate, CalendarEvent, RtmpStreamStatus, PhotoResponse } from './glasses-to-cloud';
|
6
6
|
import { DashboardMode } from '../dashboard';
|
7
7
|
import { Capabilities } from '../capabilities';
|
8
8
|
/**
|
9
|
-
* Connection acknowledgment to
|
9
|
+
* Connection acknowledgment to App
|
10
10
|
*/
|
11
|
-
export interface
|
12
|
-
type:
|
11
|
+
export interface AppConnectionAck extends BaseMessage {
|
12
|
+
type: CloudToAppMessageType.CONNECTION_ACK;
|
13
13
|
settings?: AppSettings;
|
14
14
|
augmentosSettings?: Record<string, any>;
|
15
|
-
config?:
|
15
|
+
config?: AppConfig;
|
16
16
|
capabilities?: Capabilities;
|
17
17
|
}
|
18
18
|
/**
|
19
|
-
* Connection error to
|
19
|
+
* Connection error to App
|
20
20
|
*/
|
21
|
-
export interface
|
22
|
-
type:
|
21
|
+
export interface AppConnectionError extends BaseMessage {
|
22
|
+
type: CloudToAppMessageType.CONNECTION_ERROR;
|
23
23
|
message: string;
|
24
24
|
code?: string;
|
25
25
|
}
|
@@ -35,34 +35,34 @@ export interface PermissionErrorDetail {
|
|
35
35
|
message: string;
|
36
36
|
}
|
37
37
|
/**
|
38
|
-
* Permission error notification to
|
38
|
+
* Permission error notification to App
|
39
39
|
* Sent when subscriptions are rejected due to missing permissions
|
40
40
|
*/
|
41
41
|
export interface PermissionError extends BaseMessage {
|
42
|
-
type:
|
42
|
+
type: CloudToAppMessageType.PERMISSION_ERROR;
|
43
43
|
/** General error message */
|
44
44
|
message: string;
|
45
45
|
/** Array of details for each rejected stream */
|
46
46
|
details: PermissionErrorDetail[];
|
47
47
|
}
|
48
48
|
/**
|
49
|
-
* App stopped notification to
|
49
|
+
* App stopped notification to App
|
50
50
|
*/
|
51
51
|
export interface AppStopped extends BaseMessage {
|
52
|
-
type:
|
52
|
+
type: CloudToAppMessageType.APP_STOPPED;
|
53
53
|
reason: "user_disabled" | "system_stop" | "error";
|
54
54
|
message?: string;
|
55
55
|
}
|
56
56
|
/**
|
57
|
-
* Settings update to
|
57
|
+
* Settings update to App
|
58
58
|
*/
|
59
59
|
export interface SettingsUpdate extends BaseMessage {
|
60
|
-
type:
|
60
|
+
type: CloudToAppMessageType.SETTINGS_UPDATE;
|
61
61
|
packageName: string;
|
62
62
|
settings: AppSettings;
|
63
63
|
}
|
64
64
|
/**
|
65
|
-
* AugmentOS settings update to
|
65
|
+
* AugmentOS settings update to App
|
66
66
|
*/
|
67
67
|
export interface AugmentosSettingsUpdate extends BaseMessage {
|
68
68
|
type: 'augmentos_settings_update';
|
@@ -108,7 +108,7 @@ export interface AudioChunk extends BaseMessage {
|
|
108
108
|
sampleRate?: number;
|
109
109
|
}
|
110
110
|
/**
|
111
|
-
* Tool call from cloud to
|
111
|
+
* Tool call from cloud to App
|
112
112
|
* Represents a tool invocation with filled parameters
|
113
113
|
*/
|
114
114
|
export interface ToolCall {
|
@@ -118,10 +118,10 @@ export interface ToolCall {
|
|
118
118
|
userId: string;
|
119
119
|
}
|
120
120
|
/**
|
121
|
-
* Stream data to
|
121
|
+
* Stream data to App
|
122
122
|
*/
|
123
123
|
export interface DataStream extends BaseMessage {
|
124
|
-
type:
|
124
|
+
type: CloudToAppMessageType.DATA_STREAM;
|
125
125
|
streamType: StreamType;
|
126
126
|
data: unknown;
|
127
127
|
}
|
@@ -129,14 +129,14 @@ export interface DataStream extends BaseMessage {
|
|
129
129
|
* Dashboard mode changed notification
|
130
130
|
*/
|
131
131
|
export interface DashboardModeChanged extends BaseMessage {
|
132
|
-
type:
|
132
|
+
type: CloudToAppMessageType.DASHBOARD_MODE_CHANGED;
|
133
133
|
mode: DashboardMode;
|
134
134
|
}
|
135
135
|
/**
|
136
136
|
* Dashboard always-on state changed notification
|
137
137
|
*/
|
138
138
|
export interface DashboardAlwaysOnChanged extends BaseMessage {
|
139
|
-
type:
|
139
|
+
type: CloudToAppMessageType.DASHBOARD_ALWAYS_ON_CHANGED;
|
140
140
|
enabled: boolean;
|
141
141
|
}
|
142
142
|
/**
|
@@ -147,35 +147,35 @@ export interface StandardConnectionError extends BaseMessage {
|
|
147
147
|
message: string;
|
148
148
|
}
|
149
149
|
/**
|
150
|
-
* Custom message for general-purpose communication (cloud to
|
150
|
+
* Custom message for general-purpose communication (cloud to App)
|
151
151
|
*/
|
152
152
|
export interface CustomMessage extends BaseMessage {
|
153
|
-
type:
|
153
|
+
type: CloudToAppMessageType.CUSTOM_MESSAGE;
|
154
154
|
action: string;
|
155
155
|
payload: any;
|
156
156
|
}
|
157
157
|
/**
|
158
|
-
* Union type for all messages from cloud to
|
158
|
+
* Union type for all messages from cloud to Apps
|
159
159
|
*/
|
160
|
-
export type
|
161
|
-
export declare function
|
162
|
-
export declare function
|
163
|
-
export declare function isAppStopped(message:
|
164
|
-
export declare function isSettingsUpdate(message:
|
165
|
-
export declare function isDataStream(message:
|
166
|
-
export declare function isAudioChunk(message:
|
167
|
-
export declare function isDashboardModeChanged(message:
|
168
|
-
export declare function isDashboardAlwaysOnChanged(message:
|
169
|
-
export declare function isRtmpStreamStatus(message:
|
170
|
-
export declare function isPhotoResponse(message:
|
171
|
-
export declare function
|
172
|
-
export declare function
|
173
|
-
export declare function
|
160
|
+
export type CloudToAppMessage = AppConnectionAck | AppConnectionError | StandardConnectionError | DataStream | AppStopped | SettingsUpdate | TranscriptionData | TranslationData | AudioChunk | LocationUpdate | CalendarEvent | DataStream | PhotoResponse | DashboardModeChanged | DashboardAlwaysOnChanged | CustomMessage | AugmentosSettingsUpdate | AppMessageReceived | AppUserJoined | AppUserLeft | AppRoomUpdated | AppDirectMessageResponse | RtmpStreamStatus | PhotoResponse | PermissionError;
|
161
|
+
export declare function isAppConnectionAck(message: CloudToAppMessage): message is AppConnectionAck;
|
162
|
+
export declare function isAppConnectionError(message: CloudToAppMessage): message is AppConnectionError;
|
163
|
+
export declare function isAppStopped(message: CloudToAppMessage): message is AppStopped;
|
164
|
+
export declare function isSettingsUpdate(message: CloudToAppMessage): message is SettingsUpdate;
|
165
|
+
export declare function isDataStream(message: CloudToAppMessage): message is DataStream;
|
166
|
+
export declare function isAudioChunk(message: CloudToAppMessage): message is AudioChunk;
|
167
|
+
export declare function isDashboardModeChanged(message: CloudToAppMessage): message is DashboardModeChanged;
|
168
|
+
export declare function isDashboardAlwaysOnChanged(message: CloudToAppMessage): message is DashboardAlwaysOnChanged;
|
169
|
+
export declare function isRtmpStreamStatus(message: CloudToAppMessage): message is RtmpStreamStatus;
|
170
|
+
export declare function isPhotoResponse(message: CloudToAppMessage): message is PhotoResponse;
|
171
|
+
export declare function isAppMessageReceived(message: CloudToAppMessage): message is AppMessageReceived;
|
172
|
+
export declare function isAppUserJoined(message: CloudToAppMessage): message is AppUserJoined;
|
173
|
+
export declare function isAppUserLeft(message: CloudToAppMessage): message is AppUserLeft;
|
174
174
|
/**
|
175
|
-
* Message received from another
|
175
|
+
* Message received from another App user
|
176
176
|
*/
|
177
|
-
export interface
|
178
|
-
type:
|
177
|
+
export interface AppMessageReceived extends BaseMessage {
|
178
|
+
type: CloudToAppMessageType.APP_MESSAGE_RECEIVED;
|
179
179
|
payload: any;
|
180
180
|
messageId: string;
|
181
181
|
senderUserId: string;
|
@@ -183,10 +183,10 @@ export interface TpaMessageReceived extends BaseMessage {
|
|
183
183
|
roomId?: string;
|
184
184
|
}
|
185
185
|
/**
|
186
|
-
* Notification that a user joined the
|
186
|
+
* Notification that a user joined the App
|
187
187
|
*/
|
188
|
-
export interface
|
189
|
-
type:
|
188
|
+
export interface AppUserJoined extends BaseMessage {
|
189
|
+
type: CloudToAppMessageType.APP_USER_JOINED;
|
190
190
|
userId: string;
|
191
191
|
sessionId: string;
|
192
192
|
joinedAt: Date;
|
@@ -194,10 +194,10 @@ export interface TpaUserJoined extends BaseMessage {
|
|
194
194
|
roomId?: string;
|
195
195
|
}
|
196
196
|
/**
|
197
|
-
* Notification that a user left the
|
197
|
+
* Notification that a user left the App
|
198
198
|
*/
|
199
|
-
export interface
|
200
|
-
type:
|
199
|
+
export interface AppUserLeft extends BaseMessage {
|
200
|
+
type: CloudToAppMessageType.APP_USER_LEFT;
|
201
201
|
userId: string;
|
202
202
|
sessionId: string;
|
203
203
|
leftAt: Date;
|
@@ -206,8 +206,8 @@ export interface TpaUserLeft extends BaseMessage {
|
|
206
206
|
/**
|
207
207
|
* Room status update (members, config changes, etc.)
|
208
208
|
*/
|
209
|
-
export interface
|
210
|
-
type:
|
209
|
+
export interface AppRoomUpdated extends BaseMessage {
|
210
|
+
type: CloudToAppMessageType.APP_ROOM_UPDATED;
|
211
211
|
roomId: string;
|
212
212
|
updateType: 'user_joined' | 'user_left' | 'config_changed' | 'room_closed';
|
213
213
|
roomData: {
|
@@ -220,11 +220,11 @@ export interface TpaRoomUpdated extends BaseMessage {
|
|
220
220
|
/**
|
221
221
|
* Response to a direct message attempt
|
222
222
|
*/
|
223
|
-
export interface
|
224
|
-
type:
|
223
|
+
export interface AppDirectMessageResponse extends BaseMessage {
|
224
|
+
type: CloudToAppMessageType.APP_DIRECT_MESSAGE_RESPONSE;
|
225
225
|
messageId: string;
|
226
226
|
success: boolean;
|
227
227
|
error?: string;
|
228
228
|
targetUserId: string;
|
229
229
|
}
|
230
|
-
//# sourceMappingURL=cloud-to-
|
230
|
+
//# sourceMappingURL=cloud-to-app.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"cloud-to-
|
1
|
+
{"version":3,"file":"cloud-to-app.d.ts","sourceRoot":"","sources":["../../../src/types/messages/cloud-to-app.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AACrC,OAAO,EAAE,qBAAqB,EAA6B,MAAM,kBAAkB,CAAC;AACpF,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAkB,MAAM,WAAW,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACpG,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAM/C;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,WAAW;IACnD,IAAI,EAAE,qBAAqB,CAAC,cAAc,CAAC;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AAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,IAAI,CAAC;IACf,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,WAAY,SAAQ,WAAW;IAC9C,IAAI,EAAE,qBAAqB,CAAC,aAAa,CAAC;IAC1C,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,IAAI,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,cAAe,SAAQ,WAAW;IACjD,IAAI,EAAE,qBAAqB,CAAC,gBAAgB,CAAC;IAC7C,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,aAAa,GAAG,WAAW,GAAG,gBAAgB,GAAG,aAAa,CAAC;IAC3E,QAAQ,EAAE;QACR,WAAW,EAAE,MAAM,CAAC;QACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,QAAQ,CAAC,EAAE,GAAG,CAAC;KAChB,CAAC;CACH;AAED;;GAEG;AACH,MAAM,WAAW,wBAAyB,SAAQ,WAAW;IAC3D,IAAI,EAAE,qBAAqB,CAAC,2BAA2B,CAAC;IACxD,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;CACtB"}
|
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
|
-
// src/messages/cloud-to-
|
2
|
+
// src/messages/cloud-to-app.ts
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
-
exports.
|
5
|
-
exports.
|
4
|
+
exports.isAppConnectionAck = isAppConnectionAck;
|
5
|
+
exports.isAppConnectionError = isAppConnectionError;
|
6
6
|
exports.isAppStopped = isAppStopped;
|
7
7
|
exports.isSettingsUpdate = isSettingsUpdate;
|
8
8
|
exports.isDataStream = isDataStream;
|
@@ -11,37 +11,37 @@ exports.isDashboardModeChanged = isDashboardModeChanged;
|
|
11
11
|
exports.isDashboardAlwaysOnChanged = isDashboardAlwaysOnChanged;
|
12
12
|
exports.isRtmpStreamStatus = isRtmpStreamStatus;
|
13
13
|
exports.isPhotoResponse = isPhotoResponse;
|
14
|
-
exports.
|
15
|
-
exports.
|
16
|
-
exports.
|
14
|
+
exports.isAppMessageReceived = isAppMessageReceived;
|
15
|
+
exports.isAppUserJoined = isAppUserJoined;
|
16
|
+
exports.isAppUserLeft = isAppUserLeft;
|
17
17
|
const message_types_1 = require("../message-types");
|
18
18
|
const streams_1 = require("../streams");
|
19
19
|
//===========================================================
|
20
20
|
// Type guards
|
21
21
|
//===========================================================
|
22
|
-
function
|
23
|
-
return message.type === message_types_1.
|
22
|
+
function isAppConnectionAck(message) {
|
23
|
+
return message.type === message_types_1.CloudToAppMessageType.CONNECTION_ACK;
|
24
24
|
}
|
25
|
-
function
|
26
|
-
return message.type === message_types_1.
|
25
|
+
function isAppConnectionError(message) {
|
26
|
+
return message.type === message_types_1.CloudToAppMessageType.CONNECTION_ERROR || message.type === 'connection_error';
|
27
27
|
}
|
28
28
|
function isAppStopped(message) {
|
29
|
-
return message.type === message_types_1.
|
29
|
+
return message.type === message_types_1.CloudToAppMessageType.APP_STOPPED;
|
30
30
|
}
|
31
31
|
function isSettingsUpdate(message) {
|
32
|
-
return message.type === message_types_1.
|
32
|
+
return message.type === message_types_1.CloudToAppMessageType.SETTINGS_UPDATE;
|
33
33
|
}
|
34
34
|
function isDataStream(message) {
|
35
|
-
return message.type === message_types_1.
|
35
|
+
return message.type === message_types_1.CloudToAppMessageType.DATA_STREAM;
|
36
36
|
}
|
37
37
|
function isAudioChunk(message) {
|
38
38
|
return message.type === streams_1.StreamType.AUDIO_CHUNK;
|
39
39
|
}
|
40
40
|
function isDashboardModeChanged(message) {
|
41
|
-
return message.type === message_types_1.
|
41
|
+
return message.type === message_types_1.CloudToAppMessageType.DASHBOARD_MODE_CHANGED;
|
42
42
|
}
|
43
43
|
function isDashboardAlwaysOnChanged(message) {
|
44
|
-
return message.type === message_types_1.
|
44
|
+
return message.type === message_types_1.CloudToAppMessageType.DASHBOARD_ALWAYS_ON_CHANGED;
|
45
45
|
}
|
46
46
|
function isRtmpStreamStatus(message) {
|
47
47
|
return message.type === message_types_1.GlassesToCloudMessageType.RTMP_STREAM_STATUS;
|
@@ -49,13 +49,13 @@ function isRtmpStreamStatus(message) {
|
|
49
49
|
function isPhotoResponse(message) {
|
50
50
|
return message.type === message_types_1.GlassesToCloudMessageType.PHOTO_RESPONSE;
|
51
51
|
}
|
52
|
-
// New type guards for
|
53
|
-
function
|
54
|
-
return message.type === message_types_1.
|
52
|
+
// New type guards for App-to-App communication
|
53
|
+
function isAppMessageReceived(message) {
|
54
|
+
return message.type === message_types_1.CloudToAppMessageType.APP_MESSAGE_RECEIVED;
|
55
55
|
}
|
56
|
-
function
|
57
|
-
return message.type === message_types_1.
|
56
|
+
function isAppUserJoined(message) {
|
57
|
+
return message.type === message_types_1.CloudToAppMessageType.APP_USER_JOINED;
|
58
58
|
}
|
59
|
-
function
|
60
|
-
return message.type === message_types_1.
|
59
|
+
function isAppUserLeft(message) {
|
60
|
+
return message.type === message_types_1.CloudToAppMessageType.APP_USER_LEFT;
|
61
61
|
}
|
package/dist/types/models.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { AppSettingType,
|
1
|
+
import { AppSettingType, AppType } from './enums';
|
2
2
|
export interface ToolParameterSchema {
|
3
3
|
type: 'string' | 'number' | 'boolean';
|
4
4
|
description: string;
|
@@ -46,7 +46,7 @@ export interface AppI {
|
|
46
46
|
uninstallable?: boolean;
|
47
47
|
webviewURL?: string;
|
48
48
|
logoURL: string;
|
49
|
-
|
49
|
+
appType: AppType;
|
50
50
|
appStoreId?: string;
|
51
51
|
/**
|
52
52
|
* @deprecated Use organizationId instead. Will be removed after migration.
|
@@ -129,10 +129,10 @@ export type AppSetting = (BaseAppSetting & {
|
|
129
129
|
});
|
130
130
|
export type AppSettings = AppSetting[];
|
131
131
|
/**
|
132
|
-
*
|
133
|
-
* Represents the schema in
|
132
|
+
* App configuration file structure
|
133
|
+
* Represents the schema in app_config.json
|
134
134
|
*/
|
135
|
-
export interface
|
135
|
+
export interface AppConfig {
|
136
136
|
name: string;
|
137
137
|
description: string;
|
138
138
|
version: string;
|
@@ -140,11 +140,11 @@ export interface TpaConfig {
|
|
140
140
|
tools: ToolSchema[];
|
141
141
|
}
|
142
142
|
/**
|
143
|
-
* Validate a
|
143
|
+
* Validate a App configuration object
|
144
144
|
* @param config Object to validate
|
145
145
|
* @returns True if the config is valid
|
146
146
|
*/
|
147
|
-
export declare function
|
147
|
+
export declare function validateAppConfig(config: any): config is AppConfig;
|
148
148
|
/**
|
149
149
|
* Transcript segment for speech processing
|
150
150
|
*/
|
package/dist/types/models.js
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
// packages/sdk/types/src/models.ts - Core models
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
5
5
|
exports.LEGACY_PERMISSION_MAP = exports.PermissionType = void 0;
|
6
|
-
exports.
|
6
|
+
exports.validateAppConfig = validateAppConfig;
|
7
7
|
const enums_1 = require("./enums");
|
8
8
|
// Define PermissionType enum with legacy support
|
9
9
|
var PermissionType;
|
@@ -23,11 +23,11 @@ exports.LEGACY_PERMISSION_MAP = new Map([
|
|
23
23
|
[PermissionType.NOTIFICATIONS, [PermissionType.READ_NOTIFICATIONS]]
|
24
24
|
]);
|
25
25
|
/**
|
26
|
-
* Validate a
|
26
|
+
* Validate a App configuration object
|
27
27
|
* @param config Object to validate
|
28
28
|
* @returns True if the config is valid
|
29
29
|
*/
|
30
|
-
function
|
30
|
+
function validateAppConfig(config) {
|
31
31
|
if (!config || typeof config !== 'object')
|
32
32
|
return false;
|
33
33
|
// Check required string properties
|
package/dist/types/streams.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
|
-
* Types of streams that
|
2
|
+
* Types of streams that Apps can subscribe to
|
3
3
|
*
|
4
|
-
* These are events and data that
|
4
|
+
* These are events and data that Apps can receive from the cloud.
|
5
5
|
* Not all message types can be subscribed to as streams.
|
6
6
|
*/
|
7
7
|
export declare enum StreamType {
|
package/dist/types/streams.js
CHANGED
@@ -13,9 +13,9 @@ exports.getBaseStreamType = getBaseStreamType;
|
|
13
13
|
exports.isLanguageStream = isLanguageStream;
|
14
14
|
exports.getLanguageInfo = getLanguageInfo;
|
15
15
|
/**
|
16
|
-
* Types of streams that
|
16
|
+
* Types of streams that Apps can subscribe to
|
17
17
|
*
|
18
|
-
* These are events and data that
|
18
|
+
* These are events and data that Apps can receive from the cloud.
|
19
19
|
* Not all message types can be subscribed to as streams.
|
20
20
|
*/
|
21
21
|
var StreamType;
|
package/dist/types/token.d.ts
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
/**
|
2
|
-
* 🔐
|
2
|
+
* 🔐 AppToken Types Module
|
3
3
|
*
|
4
|
-
* Defines types for the
|
4
|
+
* Defines types for the App token authentication mechanism.
|
5
5
|
*/
|
6
6
|
/**
|
7
|
-
* The payload structure for
|
7
|
+
* The payload structure for App tokens
|
8
8
|
*/
|
9
|
-
export interface
|
9
|
+
export interface AppTokenPayload {
|
10
10
|
/** User identifier */
|
11
11
|
userId: string;
|
12
|
-
/**
|
12
|
+
/** App package name */
|
13
13
|
packageName: string;
|
14
14
|
/** Session identifier */
|
15
15
|
sessionId: string;
|
@@ -19,13 +19,13 @@ export interface TpaTokenPayload {
|
|
19
19
|
exp?: number;
|
20
20
|
}
|
21
21
|
/**
|
22
|
-
* Response from validating a
|
22
|
+
* Response from validating a App token
|
23
23
|
*/
|
24
24
|
export interface TokenValidationResult {
|
25
25
|
/** Whether the token is valid */
|
26
26
|
valid: boolean;
|
27
27
|
/** The decoded payload if valid */
|
28
|
-
payload?:
|
28
|
+
payload?: AppTokenPayload;
|
29
29
|
/** Error message if invalid */
|
30
30
|
error?: string;
|
31
31
|
}
|
package/dist/types/token.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
/**
|
3
|
-
* 🔐
|
3
|
+
* 🔐 AppToken Types Module
|
4
4
|
*
|
5
|
-
* Defines types for the
|
5
|
+
* Defines types for the App token authentication mechanism.
|
6
6
|
*/
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/types/webhooks.d.ts
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
/**
|
2
|
-
* Types of webhook requests that can be sent to
|
2
|
+
* Types of webhook requests that can be sent to Apps
|
3
3
|
*/
|
4
4
|
export declare enum WebhookRequestType {
|
5
|
-
/** Request to start a
|
5
|
+
/** Request to start a App session */
|
6
6
|
SESSION_REQUEST = "session_request",
|
7
|
-
/** Request to stop a
|
7
|
+
/** Request to stop a App session */
|
8
8
|
STOP_REQUEST = "stop_request",
|
9
9
|
/** Server registration confirmation */
|
10
10
|
SERVER_REGISTRATION = "server_registration",
|
@@ -29,7 +29,7 @@ export interface BaseWebhookRequest {
|
|
29
29
|
/**
|
30
30
|
* Session request webhook
|
31
31
|
*
|
32
|
-
* Sent to a
|
32
|
+
* Sent to a App when a user starts the App
|
33
33
|
*/
|
34
34
|
export interface SessionWebhookRequest extends BaseWebhookRequest {
|
35
35
|
type: WebhookRequestType.SESSION_REQUEST;
|
@@ -38,7 +38,7 @@ export interface SessionWebhookRequest extends BaseWebhookRequest {
|
|
38
38
|
/**
|
39
39
|
* Stop request webhook
|
40
40
|
*
|
41
|
-
* Sent to a
|
41
|
+
* Sent to a App when a user or the system stops the App
|
42
42
|
*/
|
43
43
|
export interface StopWebhookRequest extends BaseWebhookRequest {
|
44
44
|
type: WebhookRequestType.STOP_REQUEST;
|
@@ -47,7 +47,7 @@ export interface StopWebhookRequest extends BaseWebhookRequest {
|
|
47
47
|
/**
|
48
48
|
* Server registration webhook
|
49
49
|
*
|
50
|
-
* Sent to a
|
50
|
+
* Sent to a App when its server registration is confirmed
|
51
51
|
*/
|
52
52
|
export interface ServerRegistrationWebhookRequest extends BaseWebhookRequest {
|
53
53
|
type: WebhookRequestType.SERVER_REGISTRATION;
|
@@ -58,7 +58,7 @@ export interface ServerRegistrationWebhookRequest extends BaseWebhookRequest {
|
|
58
58
|
/**
|
59
59
|
* Session recovery webhook
|
60
60
|
*
|
61
|
-
* Sent to a
|
61
|
+
* Sent to a App when the system is trying to recover a session after server restart
|
62
62
|
*/
|
63
63
|
export interface SessionRecoveryWebhookRequest extends BaseWebhookRequest {
|
64
64
|
type: WebhookRequestType.SESSION_RECOVERY;
|
@@ -67,7 +67,7 @@ export interface SessionRecoveryWebhookRequest extends BaseWebhookRequest {
|
|
67
67
|
/**
|
68
68
|
* Server heartbeat webhook
|
69
69
|
*
|
70
|
-
* Sent to a
|
70
|
+
* Sent to a App to check its health status
|
71
71
|
*/
|
72
72
|
export interface ServerHeartbeatWebhookRequest extends BaseWebhookRequest {
|
73
73
|
type: WebhookRequestType.SERVER_HEARTBEAT;
|
package/dist/types/webhooks.js
CHANGED
@@ -8,13 +8,13 @@ exports.isServerRegistrationWebhookRequest = isServerRegistrationWebhookRequest;
|
|
8
8
|
exports.isSessionRecoveryWebhookRequest = isSessionRecoveryWebhookRequest;
|
9
9
|
exports.isServerHeartbeatWebhookRequest = isServerHeartbeatWebhookRequest;
|
10
10
|
/**
|
11
|
-
* Types of webhook requests that can be sent to
|
11
|
+
* Types of webhook requests that can be sent to Apps
|
12
12
|
*/
|
13
13
|
var WebhookRequestType;
|
14
14
|
(function (WebhookRequestType) {
|
15
|
-
/** Request to start a
|
15
|
+
/** Request to start a App session */
|
16
16
|
WebhookRequestType["SESSION_REQUEST"] = "session_request";
|
17
|
-
/** Request to stop a
|
17
|
+
/** Request to stop a App session */
|
18
18
|
WebhookRequestType["STOP_REQUEST"] = "stop_request";
|
19
19
|
/** Server registration confirmation */
|
20
20
|
WebhookRequestType["SERVER_REGISTRATION"] = "server_registration";
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
|
3
3
|
"name": "@mentra/sdk",
|
4
|
-
"version": "
|
4
|
+
"version": "2.0.1",
|
5
5
|
"description": "Build apps for MentraOS smartglasses. This SDK provides everything you need to create real-time smartglasses applications.",
|
6
6
|
"source": "src/index.ts",
|
7
7
|
"main": "dist/index.js",
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tpa/server/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAgB,EAAE,KAAK,OAAO,EAAE,MAAM,SAAS,CAAC;AAEhD,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAExC,OAAO,EAQL,QAAQ,EACT,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAI9B;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,eAAe;IAC9B,oIAAoI;IACpI,WAAW,EAAE,MAAM,CAAC;IACpB,yDAAyD;IACzD,MAAM,EAAE,MAAM,CAAC;IACf,oDAAoD;IACpD,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,+FAA+F;IAC/F,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IAE3B,iEAAiE;IACjE,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gDAAgD;IAChD,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,qBAAa,SAAS;IAYR,OAAO,CAAC,MAAM;IAX1B,2BAA2B;IAC3B,OAAO,CAAC,GAAG,CAAU;IACrB,+CAA+C;I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