@mentra/cloud-protocol 3.3.0-dev.920 → 3.3.0-dev.921
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/package.json
CHANGED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"records": [
|
|
4
|
+
{
|
|
5
|
+
"schemaVersion": 1,
|
|
6
|
+
"recordId": "rec-snap-0001",
|
|
7
|
+
"phoneDeviceId": "phone-7f3a91",
|
|
8
|
+
"collectorSessionId": "cs-20261013-01",
|
|
9
|
+
"sequence": 0,
|
|
10
|
+
"observedAt": "2026-10-13T11:00:00Z",
|
|
11
|
+
"capabilities": [
|
|
12
|
+
"glasses_connection",
|
|
13
|
+
"glasses_battery",
|
|
14
|
+
"glasses_versions",
|
|
15
|
+
"miniapp_execution",
|
|
16
|
+
"engine_active"
|
|
17
|
+
],
|
|
18
|
+
"kind": "snapshot",
|
|
19
|
+
"payload": {
|
|
20
|
+
"phone": {
|
|
21
|
+
"model": "Pixel 8",
|
|
22
|
+
"os": "android",
|
|
23
|
+
"osVersion": "15",
|
|
24
|
+
"appVersion": "3.4.0",
|
|
25
|
+
"appBuild": "3400",
|
|
26
|
+
"engineVersion": "1.12.0",
|
|
27
|
+
"sdkVersion": "0.9.2"
|
|
28
|
+
},
|
|
29
|
+
"glasses": {
|
|
30
|
+
"model": "mentra_live",
|
|
31
|
+
"firmware": {
|
|
32
|
+
"apk": "1.7.3",
|
|
33
|
+
"mtk": "2.1.0",
|
|
34
|
+
"bes": "0.8.5"
|
|
35
|
+
},
|
|
36
|
+
"connection": {
|
|
37
|
+
"state": "connected",
|
|
38
|
+
"observedAt": "2026-10-13T11:00:00Z"
|
|
39
|
+
},
|
|
40
|
+
"battery": {
|
|
41
|
+
"state": "measured",
|
|
42
|
+
"observedAt": "2026-10-13T11:00:00Z",
|
|
43
|
+
"level": 76,
|
|
44
|
+
"charging": false
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
}
|
|
@@ -13,7 +13,9 @@
|
|
|
13
13
|
"glasses_battery",
|
|
14
14
|
"glasses_versions",
|
|
15
15
|
"miniapp_execution",
|
|
16
|
-
"
|
|
16
|
+
"app_foreground",
|
|
17
|
+
"engine_active",
|
|
18
|
+
"photo_operations"
|
|
17
19
|
],
|
|
18
20
|
"kind": "snapshot",
|
|
19
21
|
"deviceBinding": {
|
|
@@ -64,7 +66,9 @@
|
|
|
64
66
|
"glasses_battery",
|
|
65
67
|
"glasses_versions",
|
|
66
68
|
"miniapp_execution",
|
|
67
|
-
"
|
|
69
|
+
"app_foreground",
|
|
70
|
+
"engine_active",
|
|
71
|
+
"photo_operations"
|
|
68
72
|
],
|
|
69
73
|
"kind": "miniapp_launch",
|
|
70
74
|
"payload": {
|
|
@@ -87,7 +91,9 @@
|
|
|
87
91
|
"glasses_battery",
|
|
88
92
|
"glasses_versions",
|
|
89
93
|
"miniapp_execution",
|
|
90
|
-
"
|
|
94
|
+
"app_foreground",
|
|
95
|
+
"engine_active",
|
|
96
|
+
"photo_operations"
|
|
91
97
|
],
|
|
92
98
|
"kind": "usage_checkpoint",
|
|
93
99
|
"payload": {
|
|
@@ -128,7 +134,9 @@
|
|
|
128
134
|
"glasses_battery",
|
|
129
135
|
"glasses_versions",
|
|
130
136
|
"miniapp_execution",
|
|
131
|
-
"
|
|
137
|
+
"app_foreground",
|
|
138
|
+
"engine_active",
|
|
139
|
+
"photo_operations"
|
|
132
140
|
],
|
|
133
141
|
"kind": "photo_operation",
|
|
134
142
|
"operationId": "op-photo-41c9",
|
|
@@ -154,7 +162,9 @@
|
|
|
154
162
|
"glasses_battery",
|
|
155
163
|
"glasses_versions",
|
|
156
164
|
"miniapp_execution",
|
|
157
|
-
"
|
|
165
|
+
"app_foreground",
|
|
166
|
+
"engine_active",
|
|
167
|
+
"photo_operations"
|
|
158
168
|
],
|
|
159
169
|
"kind": "photo_operation",
|
|
160
170
|
"operationId": "op-photo-41c9",
|
package/src/fleet.ts
CHANGED
|
@@ -197,7 +197,15 @@ export const FleetRecordSchema = z.discriminatedUnion("kind", [
|
|
|
197
197
|
})
|
|
198
198
|
.strict(),
|
|
199
199
|
z.object({...base, kind: z.literal("coverage_gap"), payload: FleetCoverageGapPayloadSchema}).strict(),
|
|
200
|
-
])
|
|
200
|
+
]).superRefine((value, ctx) => {
|
|
201
|
+
// A snapshot's glasses belong to the pair its binding names, so the two come together.
|
|
202
|
+
if (value.kind === "snapshot" && (value.payload.glasses !== undefined) !== (value.deviceBinding !== undefined))
|
|
203
|
+
ctx.addIssue({
|
|
204
|
+
code: "custom",
|
|
205
|
+
path: ["deviceBinding"],
|
|
206
|
+
message: "deviceBinding is required for, and only for, a snapshot that includes glasses",
|
|
207
|
+
})
|
|
208
|
+
})
|
|
201
209
|
export type FleetRecord = z.infer<typeof FleetRecordSchema>
|
|
202
210
|
export type FleetDeviceBinding = z.infer<typeof FleetDeviceBindingSchema>
|
|
203
211
|
|