@bikefinder/sdk 0.10.0 → 0.12.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.
- package/README.md +8 -2
- package/dist/device-schema.d.ts +148 -32
- package/dist/device-schema.js +195 -33
- package/dist/generated/index.d.ts +1 -1
- package/dist/generated/sdk.gen.d.ts +5 -1
- package/dist/generated/sdk.gen.js +19 -1
- package/dist/generated/types.gen.d.ts +163 -45
- package/dist/generated/zod.gen.d.ts +3636 -771
- package/dist/generated/zod.gen.js +201 -57
- package/dist/index.js +3 -2
- package/openapi/api.json +834 -159
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -48,9 +48,11 @@ await api.dispose();
|
|
|
48
48
|
|
|
49
49
|
Use `staffRealtime.connection` and `staffRealtime.hub` for staff operations. Connections are created without starting; start only the ones the application uses. Paged streams accept one query object, for example `api.realtime.hub.watchTrackers({limit: 50})`. Pass the returned `nextCursor` as `cursor` for another page.
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
Both connections use native SignalR stateful reconnect. Temporary WebSocket interruptions can resume the existing connection and stream subscriptions, with buffered messages replayed by SignalR. Negotiation is enabled and realtime requests include cookies for load-balancer task affinity. Both the API and SDK must support stateful reconnect; each side uses SignalR's default 100,000-byte buffer.
|
|
52
52
|
|
|
53
|
-
The application
|
|
53
|
+
The application owns subscription sharing, retained data and account scope. Subscribe to native `connection.onreconnecting`, `onreconnected` and `onclose` events to update its UI. Stateful recovery preserves subscriptions without a new hub connection or an `onreconnected` event. If recovery fails, automatic reconnect can establish a new connection: recreate subscriptions in `onreconnected`. Server restarts and authentication-expiry closures can require new connections. Initial `start()` failures still require application retries, and a terminated stream is finished. There is no custom watch-state or subscription coordinator, and history queries remain necessary to recover gaps after a new connection.
|
|
54
|
+
|
|
55
|
+
The application's Auth0 SDK supplies tokens and handles refresh. Create a new client for a new account session. `dispose()` aborts HTTP requests and stops both connections. REST requests use bearer authentication, omit cookies and reject redirects. Realtime requests also use bearer authentication and allow affinity cookies. Network/validation failures reject; HTTP Problem Details are available as `result.error` by default. Writes are never automatically retried; a `503 operation_unconfirmed` may already have committed.
|
|
54
56
|
|
|
55
57
|
REST calls automatically validate response structure without transforming response JSON. The API uses native Firestore mapping and narrow field converters before responding. Malformed known values fail with `stored_data_invalid`; ordinary document responses no longer carry partial-data `readIssues`. Stream values use the native SignalR decoder; import `zTrackerDocument` from `@bikefinder/sdk/schemas` and call `.parse(value)` for the same runtime boundary check on a stream message. Both transports reference the same generated payload types. Firestore responses come from the actual C# DTOs in `Firestore/TrackerData.cs` and `Firestore/ResourceData.cs`. Unmodeled storage fields are ignored, never forwarded into response extensions. Server-serialized response fixtures are validated by both API and generated-client tests. IDs are exact Firestore IDs.
|
|
56
58
|
|
|
@@ -122,6 +124,10 @@ Command reads validate stored identity, catalog arguments, artifacts, and execut
|
|
|
122
124
|
|
|
123
125
|
## Current API contract
|
|
124
126
|
|
|
127
|
+
Version **0.12.0** enables native SignalR stateful reconnect on customer and staff connections. Temporary transport interruptions retain existing subscriptions when the original server connection survives. Negotiation and affinity cookies are enabled; a new connection still requires new subscriptions. Generated observation types also include the deployed `power.idleState` observation.
|
|
128
|
+
|
|
129
|
+
Version **0.11.0** adds `listStaffTrackerCommandObservations({path: {id, operationId}, query: {limit, cursor}})`. It returns a typed `ObservationPage` scoped to that tracker and command, including cached readings and later resolved locations. Subscribe to observation events and match both `deviceId` and `requestId` for live results.
|
|
130
|
+
|
|
125
131
|
Version **0.9.0** removes the separate positioning request/schedule APIs and
|
|
126
132
|
retires their device command. Request WiFi, LTE and GPS observations through
|
|
127
133
|
normal `requestObservations` commands. Fresh radio observations are geolocated
|
package/dist/device-schema.d.ts
CHANGED
|
@@ -2901,26 +2901,6 @@ export declare const observationValueSchema: {
|
|
|
2901
2901
|
};
|
|
2902
2902
|
};
|
|
2903
2903
|
};
|
|
2904
|
-
readonly "device.buildFingerprint": {
|
|
2905
|
-
readonly type: "string";
|
|
2906
|
-
readonly minLength: 1;
|
|
2907
|
-
readonly maxLength: 256;
|
|
2908
|
-
readonly pattern: "^[ -~]*$";
|
|
2909
|
-
readonly title: "Firmware build fingerprint";
|
|
2910
|
-
readonly description: "Build fingerprint identifying the tracker firmware build.";
|
|
2911
|
-
readonly "x-bf": {
|
|
2912
|
-
readonly definitionId: 48;
|
|
2913
|
-
readonly role: "state";
|
|
2914
|
-
readonly subject: "device";
|
|
2915
|
-
readonly producer: "device";
|
|
2916
|
-
readonly requestScoped: false;
|
|
2917
|
-
readonly presentation: {
|
|
2918
|
-
readonly displayName: "Firmware build fingerprint";
|
|
2919
|
-
readonly description: "Build fingerprint identifying the tracker firmware build.";
|
|
2920
|
-
readonly hiddenByDefault: true;
|
|
2921
|
-
};
|
|
2922
|
-
};
|
|
2923
|
-
};
|
|
2924
2904
|
readonly "device.diagnosticEvent": {
|
|
2925
2905
|
readonly type: "object";
|
|
2926
2906
|
readonly properties: {
|
|
@@ -6173,6 +6153,128 @@ export declare const observationValueSchema: {
|
|
|
6173
6153
|
};
|
|
6174
6154
|
};
|
|
6175
6155
|
};
|
|
6156
|
+
readonly "power.idleState": {
|
|
6157
|
+
readonly type: "object";
|
|
6158
|
+
readonly properties: {
|
|
6159
|
+
readonly waitBoundMs: {
|
|
6160
|
+
readonly type: "integer";
|
|
6161
|
+
readonly minimum: 0;
|
|
6162
|
+
readonly maximum: 4294967295;
|
|
6163
|
+
};
|
|
6164
|
+
readonly boundaryCount: {
|
|
6165
|
+
readonly type: "integer";
|
|
6166
|
+
readonly minimum: 0;
|
|
6167
|
+
readonly maximum: 4294967295;
|
|
6168
|
+
};
|
|
6169
|
+
readonly uartState: {
|
|
6170
|
+
readonly type: "string";
|
|
6171
|
+
readonly enum: readonly ["unknown", "active", "suspended", "off", "suspending"];
|
|
6172
|
+
};
|
|
6173
|
+
readonly uartUsage: {
|
|
6174
|
+
readonly type: "integer";
|
|
6175
|
+
readonly minimum: -2147483648;
|
|
6176
|
+
readonly maximum: 2147483647;
|
|
6177
|
+
};
|
|
6178
|
+
readonly uartEnabled: {
|
|
6179
|
+
readonly type: "boolean";
|
|
6180
|
+
};
|
|
6181
|
+
readonly uartBusy: {
|
|
6182
|
+
readonly type: "boolean";
|
|
6183
|
+
};
|
|
6184
|
+
readonly i2cState: {
|
|
6185
|
+
readonly type: "string";
|
|
6186
|
+
readonly enum: readonly ["unknown", "active", "suspended", "off", "suspending"];
|
|
6187
|
+
};
|
|
6188
|
+
readonly i2cUsage: {
|
|
6189
|
+
readonly type: "integer";
|
|
6190
|
+
readonly minimum: -2147483648;
|
|
6191
|
+
readonly maximum: 2147483647;
|
|
6192
|
+
};
|
|
6193
|
+
readonly i2cEnabled: {
|
|
6194
|
+
readonly type: "boolean";
|
|
6195
|
+
};
|
|
6196
|
+
readonly hfClockDriverState: {
|
|
6197
|
+
readonly type: "integer";
|
|
6198
|
+
readonly minimum: 0;
|
|
6199
|
+
readonly maximum: 3;
|
|
6200
|
+
};
|
|
6201
|
+
readonly gpioInputs: {
|
|
6202
|
+
readonly type: "integer";
|
|
6203
|
+
readonly minimum: 0;
|
|
6204
|
+
readonly maximum: 4294967295;
|
|
6205
|
+
};
|
|
6206
|
+
readonly gpioOutputs: {
|
|
6207
|
+
readonly type: "integer";
|
|
6208
|
+
readonly minimum: 0;
|
|
6209
|
+
readonly maximum: 4294967295;
|
|
6210
|
+
};
|
|
6211
|
+
readonly gpioOutputEnable: {
|
|
6212
|
+
readonly type: "integer";
|
|
6213
|
+
readonly minimum: 0;
|
|
6214
|
+
readonly maximum: 4294967295;
|
|
6215
|
+
};
|
|
6216
|
+
readonly gpioPullUps: {
|
|
6217
|
+
readonly type: "integer";
|
|
6218
|
+
readonly minimum: 0;
|
|
6219
|
+
readonly maximum: 4294967295;
|
|
6220
|
+
};
|
|
6221
|
+
readonly gpioPullDowns: {
|
|
6222
|
+
readonly type: "integer";
|
|
6223
|
+
readonly minimum: 0;
|
|
6224
|
+
readonly maximum: 4294967295;
|
|
6225
|
+
};
|
|
6226
|
+
readonly gpioInputEnable: {
|
|
6227
|
+
readonly type: "integer";
|
|
6228
|
+
readonly minimum: 0;
|
|
6229
|
+
readonly maximum: 4294967295;
|
|
6230
|
+
};
|
|
6231
|
+
readonly gpioteEventPins: {
|
|
6232
|
+
readonly type: "integer";
|
|
6233
|
+
readonly minimum: 0;
|
|
6234
|
+
readonly maximum: 4294967295;
|
|
6235
|
+
};
|
|
6236
|
+
readonly batteryReadyMask: {
|
|
6237
|
+
readonly type: "integer";
|
|
6238
|
+
readonly minimum: 0;
|
|
6239
|
+
readonly maximum: 4294967295;
|
|
6240
|
+
};
|
|
6241
|
+
readonly gaugeVoltageModeMask: {
|
|
6242
|
+
readonly type: "integer";
|
|
6243
|
+
readonly minimum: 0;
|
|
6244
|
+
readonly maximum: 4294967295;
|
|
6245
|
+
};
|
|
6246
|
+
};
|
|
6247
|
+
readonly required: readonly ["waitBoundMs", "boundaryCount", "uartState", "uartUsage", "uartEnabled", "uartBusy", "i2cState", "i2cUsage", "i2cEnabled", "hfClockDriverState", "gpioInputs", "gpioOutputs", "gpioOutputEnable", "gpioPullUps", "gpioPullDowns", "gpioInputEnable", "gpioteEventPins", "batteryReadyMask", "gaugeVoltageModeMask"];
|
|
6248
|
+
readonly additionalProperties: false;
|
|
6249
|
+
readonly title: "Last controller idle boundary";
|
|
6250
|
+
readonly description: "Snapshot taken before the last nonzero controller wait, with its original evidence time. Device PM states and usage counts, UART/I2C enable bits, GPIO configuration, dedicated GPIOTE event pins, and battery configuration-owner masks are passive reads. The HF clock field is the Zephyr clock driver status (0 starting, 1 off, 2 on, 3 unknown), not a measurement of all hardware clock consumers. This is a boundary sample, not proof of continuous sleep or measured energy. No polling timer or automatic publication is added.";
|
|
6251
|
+
readonly "x-bf": {
|
|
6252
|
+
readonly definitionId: 176;
|
|
6253
|
+
readonly role: "state";
|
|
6254
|
+
readonly subject: "device";
|
|
6255
|
+
readonly producer: "device";
|
|
6256
|
+
readonly requestScoped: false;
|
|
6257
|
+
readonly presentation: {
|
|
6258
|
+
readonly displayName: "Last controller idle boundary";
|
|
6259
|
+
readonly hiddenByDefault: true;
|
|
6260
|
+
readonly description: "Snapshot taken before the last nonzero controller wait, with its original evidence time. Device PM states and usage counts, UART/I2C enable bits, GPIO configuration, dedicated GPIOTE event pins, and battery configuration-owner masks are passive reads. The HF clock field is the Zephyr clock driver status (0 starting, 1 off, 2 on, 3 unknown), not a measurement of all hardware clock consumers. This is a boundary sample, not proof of continuous sleep or measured energy. No polling timer or automatic publication is added.";
|
|
6261
|
+
readonly formatter: "fields";
|
|
6262
|
+
readonly fields: readonly [{
|
|
6263
|
+
readonly path: "uartState";
|
|
6264
|
+
}, {
|
|
6265
|
+
readonly path: "uartUsage";
|
|
6266
|
+
}, {
|
|
6267
|
+
readonly path: "i2cState";
|
|
6268
|
+
}, {
|
|
6269
|
+
readonly path: "i2cUsage";
|
|
6270
|
+
}, {
|
|
6271
|
+
readonly path: "uartEnabled";
|
|
6272
|
+
}, {
|
|
6273
|
+
readonly path: "gaugeVoltageModeMask";
|
|
6274
|
+
}];
|
|
6275
|
+
};
|
|
6276
|
+
};
|
|
6277
|
+
};
|
|
6176
6278
|
};
|
|
6177
6279
|
};
|
|
6178
6280
|
export declare const settingsValueSchema: {
|
|
@@ -7248,18 +7350,6 @@ export declare const observationDefinitions: readonly [{
|
|
|
7248
7350
|
readonly hiddenByDefault: true;
|
|
7249
7351
|
readonly unit: "bytes";
|
|
7250
7352
|
};
|
|
7251
|
-
}, {
|
|
7252
|
-
readonly id: 48;
|
|
7253
|
-
readonly name: "device.buildFingerprint";
|
|
7254
|
-
readonly role: "state";
|
|
7255
|
-
readonly subject: "device";
|
|
7256
|
-
readonly producer: "device";
|
|
7257
|
-
readonly requestScoped: false;
|
|
7258
|
-
readonly presentation: {
|
|
7259
|
-
readonly displayName: "Firmware build fingerprint";
|
|
7260
|
-
readonly description: "Build fingerprint identifying the tracker firmware build.";
|
|
7261
|
-
readonly hiddenByDefault: true;
|
|
7262
|
-
};
|
|
7263
7353
|
}, {
|
|
7264
7354
|
readonly id: 49;
|
|
7265
7355
|
readonly name: "device.diagnosticEvent";
|
|
@@ -8976,4 +9066,30 @@ export declare const observationDefinitions: readonly [{
|
|
|
8976
9066
|
readonly path: "bytesSent";
|
|
8977
9067
|
}];
|
|
8978
9068
|
};
|
|
9069
|
+
}, {
|
|
9070
|
+
readonly id: 176;
|
|
9071
|
+
readonly name: "power.idleState";
|
|
9072
|
+
readonly role: "state";
|
|
9073
|
+
readonly subject: "device";
|
|
9074
|
+
readonly producer: "device";
|
|
9075
|
+
readonly requestScoped: false;
|
|
9076
|
+
readonly presentation: {
|
|
9077
|
+
readonly displayName: "Last controller idle boundary";
|
|
9078
|
+
readonly hiddenByDefault: true;
|
|
9079
|
+
readonly description: "Snapshot taken before the last nonzero controller wait, with its original evidence time. Device PM states and usage counts, UART/I2C enable bits, GPIO configuration, dedicated GPIOTE event pins, and battery configuration-owner masks are passive reads. The HF clock field is the Zephyr clock driver status (0 starting, 1 off, 2 on, 3 unknown), not a measurement of all hardware clock consumers. This is a boundary sample, not proof of continuous sleep or measured energy. No polling timer or automatic publication is added.";
|
|
9080
|
+
readonly formatter: "fields";
|
|
9081
|
+
readonly fields: readonly [{
|
|
9082
|
+
readonly path: "uartState";
|
|
9083
|
+
}, {
|
|
9084
|
+
readonly path: "uartUsage";
|
|
9085
|
+
}, {
|
|
9086
|
+
readonly path: "i2cState";
|
|
9087
|
+
}, {
|
|
9088
|
+
readonly path: "i2cUsage";
|
|
9089
|
+
}, {
|
|
9090
|
+
readonly path: "uartEnabled";
|
|
9091
|
+
}, {
|
|
9092
|
+
readonly path: "gaugeVoltageModeMask";
|
|
9093
|
+
}];
|
|
9094
|
+
};
|
|
8979
9095
|
}];
|
package/dist/device-schema.js
CHANGED
|
@@ -3667,26 +3667,6 @@ export const observationValueSchema = {
|
|
|
3667
3667
|
}
|
|
3668
3668
|
}
|
|
3669
3669
|
},
|
|
3670
|
-
"device.buildFingerprint": {
|
|
3671
|
-
"type": "string",
|
|
3672
|
-
"minLength": 1,
|
|
3673
|
-
"maxLength": 256,
|
|
3674
|
-
"pattern": "^[ -~]*$",
|
|
3675
|
-
"title": "Firmware build fingerprint",
|
|
3676
|
-
"description": "Build fingerprint identifying the tracker firmware build.",
|
|
3677
|
-
"x-bf": {
|
|
3678
|
-
"definitionId": 48,
|
|
3679
|
-
"role": "state",
|
|
3680
|
-
"subject": "device",
|
|
3681
|
-
"producer": "device",
|
|
3682
|
-
"requestScoped": false,
|
|
3683
|
-
"presentation": {
|
|
3684
|
-
"displayName": "Firmware build fingerprint",
|
|
3685
|
-
"description": "Build fingerprint identifying the tracker firmware build.",
|
|
3686
|
-
"hiddenByDefault": true
|
|
3687
|
-
}
|
|
3688
|
-
}
|
|
3689
|
-
},
|
|
3690
3670
|
"device.diagnosticEvent": {
|
|
3691
3671
|
"type": "object",
|
|
3692
3672
|
"properties": {
|
|
@@ -7393,6 +7373,167 @@ export const observationValueSchema = {
|
|
|
7393
7373
|
]
|
|
7394
7374
|
}
|
|
7395
7375
|
}
|
|
7376
|
+
},
|
|
7377
|
+
"power.idleState": {
|
|
7378
|
+
"type": "object",
|
|
7379
|
+
"properties": {
|
|
7380
|
+
"waitBoundMs": {
|
|
7381
|
+
"type": "integer",
|
|
7382
|
+
"minimum": 0,
|
|
7383
|
+
"maximum": 4294967295
|
|
7384
|
+
},
|
|
7385
|
+
"boundaryCount": {
|
|
7386
|
+
"type": "integer",
|
|
7387
|
+
"minimum": 0,
|
|
7388
|
+
"maximum": 4294967295
|
|
7389
|
+
},
|
|
7390
|
+
"uartState": {
|
|
7391
|
+
"type": "string",
|
|
7392
|
+
"enum": [
|
|
7393
|
+
"unknown",
|
|
7394
|
+
"active",
|
|
7395
|
+
"suspended",
|
|
7396
|
+
"off",
|
|
7397
|
+
"suspending"
|
|
7398
|
+
]
|
|
7399
|
+
},
|
|
7400
|
+
"uartUsage": {
|
|
7401
|
+
"type": "integer",
|
|
7402
|
+
"minimum": -2147483648,
|
|
7403
|
+
"maximum": 2147483647
|
|
7404
|
+
},
|
|
7405
|
+
"uartEnabled": {
|
|
7406
|
+
"type": "boolean"
|
|
7407
|
+
},
|
|
7408
|
+
"uartBusy": {
|
|
7409
|
+
"type": "boolean"
|
|
7410
|
+
},
|
|
7411
|
+
"i2cState": {
|
|
7412
|
+
"type": "string",
|
|
7413
|
+
"enum": [
|
|
7414
|
+
"unknown",
|
|
7415
|
+
"active",
|
|
7416
|
+
"suspended",
|
|
7417
|
+
"off",
|
|
7418
|
+
"suspending"
|
|
7419
|
+
]
|
|
7420
|
+
},
|
|
7421
|
+
"i2cUsage": {
|
|
7422
|
+
"type": "integer",
|
|
7423
|
+
"minimum": -2147483648,
|
|
7424
|
+
"maximum": 2147483647
|
|
7425
|
+
},
|
|
7426
|
+
"i2cEnabled": {
|
|
7427
|
+
"type": "boolean"
|
|
7428
|
+
},
|
|
7429
|
+
"hfClockDriverState": {
|
|
7430
|
+
"type": "integer",
|
|
7431
|
+
"minimum": 0,
|
|
7432
|
+
"maximum": 3
|
|
7433
|
+
},
|
|
7434
|
+
"gpioInputs": {
|
|
7435
|
+
"type": "integer",
|
|
7436
|
+
"minimum": 0,
|
|
7437
|
+
"maximum": 4294967295
|
|
7438
|
+
},
|
|
7439
|
+
"gpioOutputs": {
|
|
7440
|
+
"type": "integer",
|
|
7441
|
+
"minimum": 0,
|
|
7442
|
+
"maximum": 4294967295
|
|
7443
|
+
},
|
|
7444
|
+
"gpioOutputEnable": {
|
|
7445
|
+
"type": "integer",
|
|
7446
|
+
"minimum": 0,
|
|
7447
|
+
"maximum": 4294967295
|
|
7448
|
+
},
|
|
7449
|
+
"gpioPullUps": {
|
|
7450
|
+
"type": "integer",
|
|
7451
|
+
"minimum": 0,
|
|
7452
|
+
"maximum": 4294967295
|
|
7453
|
+
},
|
|
7454
|
+
"gpioPullDowns": {
|
|
7455
|
+
"type": "integer",
|
|
7456
|
+
"minimum": 0,
|
|
7457
|
+
"maximum": 4294967295
|
|
7458
|
+
},
|
|
7459
|
+
"gpioInputEnable": {
|
|
7460
|
+
"type": "integer",
|
|
7461
|
+
"minimum": 0,
|
|
7462
|
+
"maximum": 4294967295
|
|
7463
|
+
},
|
|
7464
|
+
"gpioteEventPins": {
|
|
7465
|
+
"type": "integer",
|
|
7466
|
+
"minimum": 0,
|
|
7467
|
+
"maximum": 4294967295
|
|
7468
|
+
},
|
|
7469
|
+
"batteryReadyMask": {
|
|
7470
|
+
"type": "integer",
|
|
7471
|
+
"minimum": 0,
|
|
7472
|
+
"maximum": 4294967295
|
|
7473
|
+
},
|
|
7474
|
+
"gaugeVoltageModeMask": {
|
|
7475
|
+
"type": "integer",
|
|
7476
|
+
"minimum": 0,
|
|
7477
|
+
"maximum": 4294967295
|
|
7478
|
+
}
|
|
7479
|
+
},
|
|
7480
|
+
"required": [
|
|
7481
|
+
"waitBoundMs",
|
|
7482
|
+
"boundaryCount",
|
|
7483
|
+
"uartState",
|
|
7484
|
+
"uartUsage",
|
|
7485
|
+
"uartEnabled",
|
|
7486
|
+
"uartBusy",
|
|
7487
|
+
"i2cState",
|
|
7488
|
+
"i2cUsage",
|
|
7489
|
+
"i2cEnabled",
|
|
7490
|
+
"hfClockDriverState",
|
|
7491
|
+
"gpioInputs",
|
|
7492
|
+
"gpioOutputs",
|
|
7493
|
+
"gpioOutputEnable",
|
|
7494
|
+
"gpioPullUps",
|
|
7495
|
+
"gpioPullDowns",
|
|
7496
|
+
"gpioInputEnable",
|
|
7497
|
+
"gpioteEventPins",
|
|
7498
|
+
"batteryReadyMask",
|
|
7499
|
+
"gaugeVoltageModeMask"
|
|
7500
|
+
],
|
|
7501
|
+
"additionalProperties": false,
|
|
7502
|
+
"title": "Last controller idle boundary",
|
|
7503
|
+
"description": "Snapshot taken before the last nonzero controller wait, with its original evidence time. Device PM states and usage counts, UART/I2C enable bits, GPIO configuration, dedicated GPIOTE event pins, and battery configuration-owner masks are passive reads. The HF clock field is the Zephyr clock driver status (0 starting, 1 off, 2 on, 3 unknown), not a measurement of all hardware clock consumers. This is a boundary sample, not proof of continuous sleep or measured energy. No polling timer or automatic publication is added.",
|
|
7504
|
+
"x-bf": {
|
|
7505
|
+
"definitionId": 176,
|
|
7506
|
+
"role": "state",
|
|
7507
|
+
"subject": "device",
|
|
7508
|
+
"producer": "device",
|
|
7509
|
+
"requestScoped": false,
|
|
7510
|
+
"presentation": {
|
|
7511
|
+
"displayName": "Last controller idle boundary",
|
|
7512
|
+
"hiddenByDefault": true,
|
|
7513
|
+
"description": "Snapshot taken before the last nonzero controller wait, with its original evidence time. Device PM states and usage counts, UART/I2C enable bits, GPIO configuration, dedicated GPIOTE event pins, and battery configuration-owner masks are passive reads. The HF clock field is the Zephyr clock driver status (0 starting, 1 off, 2 on, 3 unknown), not a measurement of all hardware clock consumers. This is a boundary sample, not proof of continuous sleep or measured energy. No polling timer or automatic publication is added.",
|
|
7514
|
+
"formatter": "fields",
|
|
7515
|
+
"fields": [
|
|
7516
|
+
{
|
|
7517
|
+
"path": "uartState"
|
|
7518
|
+
},
|
|
7519
|
+
{
|
|
7520
|
+
"path": "uartUsage"
|
|
7521
|
+
},
|
|
7522
|
+
{
|
|
7523
|
+
"path": "i2cState"
|
|
7524
|
+
},
|
|
7525
|
+
{
|
|
7526
|
+
"path": "i2cUsage"
|
|
7527
|
+
},
|
|
7528
|
+
{
|
|
7529
|
+
"path": "uartEnabled"
|
|
7530
|
+
},
|
|
7531
|
+
{
|
|
7532
|
+
"path": "gaugeVoltageModeMask"
|
|
7533
|
+
}
|
|
7534
|
+
]
|
|
7535
|
+
}
|
|
7536
|
+
}
|
|
7396
7537
|
}
|
|
7397
7538
|
}
|
|
7398
7539
|
};
|
|
@@ -8589,19 +8730,6 @@ export const observationDefinitions = [
|
|
|
8589
8730
|
"unit": "bytes"
|
|
8590
8731
|
}
|
|
8591
8732
|
},
|
|
8592
|
-
{
|
|
8593
|
-
"id": 48,
|
|
8594
|
-
"name": "device.buildFingerprint",
|
|
8595
|
-
"role": "state",
|
|
8596
|
-
"subject": "device",
|
|
8597
|
-
"producer": "device",
|
|
8598
|
-
"requestScoped": false,
|
|
8599
|
-
"presentation": {
|
|
8600
|
-
"displayName": "Firmware build fingerprint",
|
|
8601
|
-
"description": "Build fingerprint identifying the tracker firmware build.",
|
|
8602
|
-
"hiddenByDefault": true
|
|
8603
|
-
}
|
|
8604
|
-
},
|
|
8605
8733
|
{
|
|
8606
8734
|
"id": 49,
|
|
8607
8735
|
"name": "device.diagnosticEvent",
|
|
@@ -10568,5 +10696,39 @@ export const observationDefinitions = [
|
|
|
10568
10696
|
}
|
|
10569
10697
|
]
|
|
10570
10698
|
}
|
|
10699
|
+
},
|
|
10700
|
+
{
|
|
10701
|
+
"id": 176,
|
|
10702
|
+
"name": "power.idleState",
|
|
10703
|
+
"role": "state",
|
|
10704
|
+
"subject": "device",
|
|
10705
|
+
"producer": "device",
|
|
10706
|
+
"requestScoped": false,
|
|
10707
|
+
"presentation": {
|
|
10708
|
+
"displayName": "Last controller idle boundary",
|
|
10709
|
+
"hiddenByDefault": true,
|
|
10710
|
+
"description": "Snapshot taken before the last nonzero controller wait, with its original evidence time. Device PM states and usage counts, UART/I2C enable bits, GPIO configuration, dedicated GPIOTE event pins, and battery configuration-owner masks are passive reads. The HF clock field is the Zephyr clock driver status (0 starting, 1 off, 2 on, 3 unknown), not a measurement of all hardware clock consumers. This is a boundary sample, not proof of continuous sleep or measured energy. No polling timer or automatic publication is added.",
|
|
10711
|
+
"formatter": "fields",
|
|
10712
|
+
"fields": [
|
|
10713
|
+
{
|
|
10714
|
+
"path": "uartState"
|
|
10715
|
+
},
|
|
10716
|
+
{
|
|
10717
|
+
"path": "uartUsage"
|
|
10718
|
+
},
|
|
10719
|
+
{
|
|
10720
|
+
"path": "i2cState"
|
|
10721
|
+
},
|
|
10722
|
+
{
|
|
10723
|
+
"path": "i2cUsage"
|
|
10724
|
+
},
|
|
10725
|
+
{
|
|
10726
|
+
"path": "uartEnabled"
|
|
10727
|
+
},
|
|
10728
|
+
{
|
|
10729
|
+
"path": "gaugeVoltageModeMask"
|
|
10730
|
+
}
|
|
10731
|
+
]
|
|
10732
|
+
}
|
|
10571
10733
|
}
|
|
10572
10734
|
];
|