@bikefinder/sdk 0.3.0 → 0.5.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 CHANGED
@@ -116,11 +116,22 @@ Command reads validate stored identity, catalog arguments, artifacts, and execut
116
116
 
117
117
  ## Current API contract
118
118
 
119
+ SDK 0.5.0 uses settings schema 34. Position requests and positioning schedules
120
+ have dedicated HTTP methods, and movement-alert preferences belong to tracker
121
+ preferences. Firmware mode selectors, per-mode timers and command-listening
122
+ settings are removed. Use `requestStaffTrackerPosition`,
123
+ `getStaffTrackerPositioning` and `setStaffTrackerPositioningSchedule` for staff
124
+ positioning controls. Deploy the matching API before updating consumers.
125
+
126
+ SDK 0.4.0 removes insurance contract/attempt methods, provider value types and subscription `tier` fields. Ordinary subscription reads and allocation remain. Deploy the matching API with this SDK release.
127
+
128
+ The shared `ObservationSeries` type replaces `AwsObservationSeries` in selections and current readings. Its JSON fields remain `definitionId` and optional `subject`; HTTP and SignalR use the same package-owned identity.
129
+
119
130
  The API has no external consumers. The owner approved breaking changes during this simplification; the published 0.1.x SDK is not a compatibility baseline. Update the API and generated SDK together. No legacy response wrappers or parallel versioned route tree are retained.
120
131
 
121
132
  Observation history and events use the shared typed Observation union, discriminated by its catalog-defined type string. Current readings contain the selected series and a nullable typed CurrentObservation. Null means that no current reading exists. HTTP and SignalR use these same models.
122
133
 
123
- Request validation stays strict and response validation checks known fields without dropping additions. Mode IDs remain open strings from catalog data. Protocol schemas still own value bounds, subject rules, conditional constraints and presentation metadata.
134
+ Request validation stays strict and response validation checks known fields without dropping additions. Position requests, server schedules and movement-alert preferences have independent typed request contracts. Protocol schemas still own value bounds, subject rules, conditional constraints and presentation metadata.
124
135
 
125
136
  Contract export uses Microsoft.Extensions.ApiDescription.Server through the contract script. It executes startup with inert configuration and disables cloud event workers; it does not open a listening HTTP server or need cloud credentials. Ordinary builds do not rewrite the checked-in contract.
126
137
 
@@ -189,11 +189,6 @@ export declare const observationValueSchema: {
189
189
  readonly minimum: 0;
190
190
  readonly maximum: 9007199254740991;
191
191
  };
192
- readonly responseWindow: {
193
- readonly type: "integer";
194
- readonly minimum: 0;
195
- readonly maximum: 9007199254740991;
196
- };
197
192
  readonly psm: {
198
193
  readonly type: "integer";
199
194
  readonly minimum: 0;
@@ -220,7 +215,7 @@ export declare const observationValueSchema: {
220
215
  readonly maximum: 9007199254740991;
221
216
  };
222
217
  };
223
- readonly required: readonly ["rrc", "mqtt", "responseWindow", "psm", "esp", "wifiScan", "bleScan", "gnss"];
218
+ readonly required: readonly ["rrc", "mqtt", "psm", "esp", "wifiScan", "bleScan", "gnss"];
224
219
  readonly additionalProperties: false;
225
220
  };
226
221
  readonly ActivityEntries: {
@@ -236,11 +231,6 @@ export declare const observationValueSchema: {
236
231
  readonly minimum: 0;
237
232
  readonly maximum: 4294967295;
238
233
  };
239
- readonly responseWindow: {
240
- readonly type: "integer";
241
- readonly minimum: 0;
242
- readonly maximum: 4294967295;
243
- };
244
234
  readonly psm: {
245
235
  readonly type: "integer";
246
236
  readonly minimum: 0;
@@ -267,7 +257,7 @@ export declare const observationValueSchema: {
267
257
  readonly maximum: 4294967295;
268
258
  };
269
259
  };
270
- readonly required: readonly ["rrc", "mqtt", "responseWindow", "psm", "esp", "wifiScan", "bleScan", "gnss"];
260
+ readonly required: readonly ["rrc", "mqtt", "psm", "esp", "wifiScan", "bleScan", "gnss"];
271
261
  readonly additionalProperties: false;
272
262
  };
273
263
  readonly RecoveryCounts: {
@@ -288,13 +278,8 @@ export declare const observationValueSchema: {
288
278
  readonly minimum: 0;
289
279
  readonly maximum: 4294967295;
290
280
  };
291
- readonly psmFallbacks: {
292
- readonly type: "integer";
293
- readonly minimum: 0;
294
- readonly maximum: 4294967295;
295
- };
296
281
  };
297
- readonly required: readonly ["espRecoveries", "wifiTimeouts", "bleTimeouts", "psmFallbacks"];
282
+ readonly required: readonly ["espRecoveries", "wifiTimeouts", "bleTimeouts"];
298
283
  readonly additionalProperties: false;
299
284
  };
300
285
  readonly AssistanceMasks: {
@@ -3806,20 +3791,20 @@ export declare const observationValueSchema: {
3806
3791
  };
3807
3792
  };
3808
3793
  };
3809
- readonly "health.remainingOnline": {
3794
+ readonly "diagnostics.remainingSeconds": {
3810
3795
  readonly type: "integer";
3811
3796
  readonly minimum: 0;
3812
3797
  readonly maximum: 4294967295;
3813
- readonly title: "Remaining online time";
3814
- readonly description: "Remaining time in the tracker's online window, in seconds.";
3798
+ readonly title: "Diagnostics remaining";
3799
+ readonly description: "Remaining time for configured diagnostic logging and instrumentation, in seconds.";
3815
3800
  readonly "x-bf": {
3816
3801
  readonly definitionId: 79;
3817
3802
  readonly role: "measurement";
3818
3803
  readonly subject: "device";
3819
3804
  readonly producer: "device";
3820
3805
  readonly presentation: {
3821
- readonly displayName: "Remaining online time";
3822
- readonly description: "Remaining time in the tracker's online window, in seconds.";
3806
+ readonly displayName: "Diagnostics remaining";
3807
+ readonly description: "Remaining time for configured diagnostic logging and instrumentation, in seconds.";
3823
3808
  readonly hiddenByDefault: false;
3824
3809
  readonly unit: "s";
3825
3810
  };
@@ -4782,9 +4767,9 @@ export declare const observationValueSchema: {
4782
4767
  readonly type: "array";
4783
4768
  readonly items: {
4784
4769
  readonly type: "string";
4785
- readonly enum: readonly ["rrc", "mqtt", "responseWindow", "psm", "esp", "wifiScan", "bleScan", "gnss"];
4770
+ readonly enum: readonly ["rrc", "mqtt", "psm", "esp", "wifiScan", "bleScan", "gnss"];
4786
4771
  };
4787
- readonly maxItems: 8;
4772
+ readonly maxItems: 7;
4788
4773
  readonly title: "Power activities";
4789
4774
  readonly description: "Readable activity state; elapsed counters remain independent and overlap.";
4790
4775
  readonly "x-bf": {
@@ -5050,24 +5035,6 @@ export declare const observationValueSchema: {
5050
5035
  };
5051
5036
  };
5052
5037
  };
5053
- readonly "power.psmFallbacks": {
5054
- readonly type: "integer";
5055
- readonly minimum: 0;
5056
- readonly maximum: 4294967295;
5057
- readonly title: "Power-saving fallback count";
5058
- readonly description: "Number of power-saving-mode fallbacks recorded in the power-activity snapshot.";
5059
- readonly "x-bf": {
5060
- readonly definitionId: 142;
5061
- readonly role: "counter";
5062
- readonly subject: "device";
5063
- readonly producer: "device";
5064
- readonly presentation: {
5065
- readonly displayName: "Power-saving fallback count";
5066
- readonly description: "Number of power-saving-mode fallbacks recorded in the power-activity snapshot.";
5067
- readonly hiddenByDefault: true;
5068
- };
5069
- };
5070
- };
5071
5038
  readonly "power.psmMs": {
5072
5039
  readonly type: "integer";
5073
5040
  readonly minimum: 0;
@@ -5087,43 +5054,6 @@ export declare const observationValueSchema: {
5087
5054
  };
5088
5055
  };
5089
5056
  };
5090
- readonly "power.responseWindowEntries": {
5091
- readonly type: "integer";
5092
- readonly minimum: 0;
5093
- readonly maximum: 4294967295;
5094
- readonly title: "Command response window entry count";
5095
- readonly description: "Number of entries into the command-response window recorded in the power-activity snapshot.";
5096
- readonly "x-bf": {
5097
- readonly definitionId: 144;
5098
- readonly role: "counter";
5099
- readonly subject: "device";
5100
- readonly producer: "device";
5101
- readonly presentation: {
5102
- readonly displayName: "Command response window entry count";
5103
- readonly description: "Number of entries into the command-response window recorded in the power-activity snapshot.";
5104
- readonly hiddenByDefault: true;
5105
- };
5106
- };
5107
- };
5108
- readonly "power.responseWindowMs": {
5109
- readonly type: "integer";
5110
- readonly minimum: 0;
5111
- readonly maximum: 9007199254740991;
5112
- readonly title: "Command response window total time";
5113
- readonly description: "Accumulated time attributed to the command-response window, in milliseconds, in the power-activity snapshot.";
5114
- readonly "x-bf": {
5115
- readonly definitionId: 145;
5116
- readonly role: "counter";
5117
- readonly subject: "device";
5118
- readonly producer: "device";
5119
- readonly presentation: {
5120
- readonly displayName: "Command response window total time";
5121
- readonly description: "Accumulated time attributed to the command-response window, in milliseconds, in the power-activity snapshot.";
5122
- readonly hiddenByDefault: true;
5123
- readonly unit: "ms";
5124
- };
5125
- };
5126
- };
5127
5057
  readonly "power.rrcEntries": {
5128
5058
  readonly type: "integer";
5129
5059
  readonly minimum: 0;
@@ -5383,13 +5313,8 @@ export declare const observationValueSchema: {
5383
5313
  readonly saturated: {
5384
5314
  readonly type: "boolean";
5385
5315
  };
5386
- readonly mode: {
5387
- readonly type: "integer";
5388
- readonly minimum: 0;
5389
- readonly maximum: 2;
5390
- };
5391
5316
  };
5392
- readonly required: readonly ["completedCount", "trigger", "outcome", "elapsedMs", "activeMs", "activityMs", "activityEntries", "recoveries", "saturated", "mode"];
5317
+ readonly required: readonly ["completedCount", "trigger", "outcome", "elapsedMs", "activeMs", "activityMs", "activityEntries", "recoveries", "saturated"];
5393
5318
  readonly additionalProperties: false;
5394
5319
  readonly title: "Work completed";
5395
5320
  readonly description: "One operation outcome and its interval accounting; not a replacement for independently selectable since-boot totals.";
@@ -5411,12 +5336,8 @@ export declare const observationValueSchema: {
5411
5336
  readonly path: "elapsedMs";
5412
5337
  readonly label: "Elapsed";
5413
5338
  readonly format: "duration";
5414
- }, {
5415
- readonly path: "mode";
5416
- readonly label: "Mode";
5417
- readonly format: "label";
5418
5339
  }];
5419
- readonly extensibleEnumFields: readonly ["mode"];
5340
+ readonly extensibleEnumFields: readonly [];
5420
5341
  };
5421
5342
  };
5422
5343
  };
@@ -5429,11 +5350,6 @@ export declare const observationValueSchema: {
5429
5350
  readonly minimum: 1;
5430
5351
  readonly maximum: 65535;
5431
5352
  };
5432
- readonly mode: {
5433
- readonly type: "integer";
5434
- readonly minimum: 0;
5435
- readonly maximum: 2;
5436
- };
5437
5353
  readonly state: {
5438
5354
  readonly type: "string";
5439
5355
  };
@@ -5482,13 +5398,13 @@ export declare const observationValueSchema: {
5482
5398
  readonly operation: {
5483
5399
  readonly anyOf: readonly [{
5484
5400
  readonly type: "string";
5485
- readonly enum: readonly ["capture", "mqttOpen", "publish", "listen", "modemOnline", "modemEdrx", "modemPsm", "modemOffline", "disconnectMqtt", "prepareConnection", "connect"];
5401
+ readonly enum: readonly ["capture", "mqttOpen", "publish", "modemOnline", "modemEdrx", "modemOffline", "disconnectMqtt", "prepareConnection", "connect"];
5486
5402
  }, {
5487
5403
  readonly type: "null";
5488
5404
  }];
5489
5405
  };
5490
5406
  };
5491
- readonly required: readonly ["workflowVersion", "mode", "state", "owner", "phase", "outcome", "durationMs", "error", "waitReason", "operation"];
5407
+ readonly required: readonly ["workflowVersion", "state", "owner", "phase", "outcome", "durationMs", "error", "waitReason", "operation"];
5492
5408
  readonly title: "Workflow execution";
5493
5409
  readonly description: "Passive tracking workflow and service execution evidence. Offline traces retain their original timestamps and do not create connection demand.";
5494
5410
  readonly "x-bf": {
@@ -5518,7 +5434,7 @@ export declare const observationValueSchema: {
5518
5434
  readonly label: "Duration";
5519
5435
  readonly format: "duration";
5520
5436
  }];
5521
- readonly extensibleEnumFields: readonly ["mode", "state"];
5437
+ readonly extensibleEnumFields: readonly ["state"];
5522
5438
  };
5523
5439
  };
5524
5440
  };
@@ -6114,75 +6030,19 @@ export declare const settingsValueSchema: {
6114
6030
  readonly title: "BLE advertising interval";
6115
6031
  readonly description: "Advertising interval in 0.625 millisecond units. Applied by the peripheral owner independently of LTE connection work.";
6116
6032
  };
6117
- readonly mode: {
6118
- readonly type: "integer";
6119
- readonly minimum: 0;
6120
- readonly maximum: 2;
6121
- readonly title: "Firmware mode ID";
6122
- readonly description: "Stable integer firmware mode ID: 0, 1 or 2. Each mode’s stages are defined in firmware. Public mode names are mapped to these IDs by the assigned tracking mode catalog.";
6123
- };
6124
- readonly poweredReportIntervalSeconds: {
6033
+ readonly connectedReportIntervalSeconds: {
6125
6034
  readonly type: "integer";
6126
6035
  readonly minimum: 30;
6127
6036
  readonly maximum: 86400;
6128
- readonly title: "Powered report interval";
6129
- readonly description: "Period between tracking reports on confirmed external power.";
6130
- };
6131
- readonly mode0IdleSeconds: {
6132
- readonly type: "integer";
6133
- readonly minimum: 60;
6134
- readonly maximum: 604800;
6135
- readonly title: "Mode 0 idle duration";
6136
- readonly description: "Maximum battery idle duration after a mode 0 cycle, measured from the end of work.";
6137
- };
6138
- readonly mode1IdleSeconds: {
6139
- readonly type: "integer";
6140
- readonly minimum: 60;
6141
- readonly maximum: 604800;
6142
- readonly title: "Mode 1 idle duration";
6143
- readonly description: "Maximum battery idle duration after a mode 1 cycle, measured from the end of work.";
6144
- };
6145
- readonly mode2IdleSeconds: {
6146
- readonly type: "integer";
6147
- readonly minimum: 10;
6148
- readonly maximum: 86400;
6149
- readonly title: "Mode 2 idle duration";
6150
- readonly description: "Maximum battery idle duration after a mode 2 cycle, measured from the end of work.";
6037
+ readonly title: "Connected report interval";
6038
+ readonly description: "Period between battery and status reports while the tracker maintains its connection. These reports do not initiate positioning scans.";
6151
6039
  };
6152
- readonly mode0MinimumRestSeconds: {
6040
+ readonly movementCooldownSeconds: {
6153
6041
  readonly type: "integer";
6154
6042
  readonly minimum: 0;
6155
6043
  readonly maximum: 86400;
6156
- readonly title: "Mode 0 minimum rest";
6157
- readonly description: "Duration after a mode 0 cycle with the accelerometer and its wake interrupt disabled. Firmware re-enables motion detection when this period ends.";
6158
- };
6159
- readonly mode1MinimumRestSeconds: {
6160
- readonly type: "integer";
6161
- readonly minimum: 0;
6162
- readonly maximum: 86400;
6163
- readonly title: "Mode 1 minimum rest";
6164
- readonly description: "Duration after a mode 1 cycle with the accelerometer and its wake interrupt disabled. Firmware re-enables motion detection when this period ends.";
6165
- };
6166
- readonly mode2MinimumRestSeconds: {
6167
- readonly type: "integer";
6168
- readonly minimum: 0;
6169
- readonly maximum: 86400;
6170
- readonly title: "Mode 2 minimum rest";
6171
- readonly description: "Duration after a mode 2 cycle with the accelerometer and its wake interrupt disabled. Firmware re-enables motion detection when this period ends.";
6172
- };
6173
- readonly psmResidenceSeconds: {
6174
- readonly type: "integer";
6175
- readonly minimum: 0;
6176
- readonly maximum: 86400;
6177
- readonly title: "PSM residence";
6178
- readonly description: "Maximum idle time in PSM before setting the modem offline; capped by the existing idle deadline.";
6179
- };
6180
- readonly commandListenSeconds: {
6181
- readonly type: "integer";
6182
- readonly minimum: 0;
6183
- readonly maximum: 3600;
6184
- readonly title: "Tracking command window";
6185
- readonly description: "Time to keep an existing connection available after a battery tracking report.";
6044
+ readonly title: "Movement cooldown";
6045
+ readonly description: "Time after an accepted movement detection with the accelerometer and its wake interrupt disabled. Positioning, reports and reconnects do not restart the cooldown.";
6186
6046
  };
6187
6047
  readonly gnssSearchTimeoutSeconds: {
6188
6048
  readonly type: "integer";
@@ -6199,20 +6059,6 @@ export declare const settingsValueSchema: {
6199
6059
  readonly title: "Requested eDRX cycle";
6200
6060
  readonly description: "Requested paging cycle; zero disables eDRX. Network-granted values can differ.";
6201
6061
  };
6202
- readonly psmTauSeconds: {
6203
- readonly type: "integer";
6204
- readonly minimum: 0;
6205
- readonly maximum: 35712000;
6206
- readonly title: "Requested PSM TAU";
6207
- readonly description: "Requested periodic registration-update interval.";
6208
- };
6209
- readonly psmActiveSeconds: {
6210
- readonly type: "integer";
6211
- readonly minimum: 0;
6212
- readonly maximum: 11160;
6213
- readonly title: "Requested PSM active time";
6214
- readonly description: "Requested active time before the modem enters PSM.";
6215
- };
6216
6062
  readonly automaticDiagnosticsPower: {
6217
6063
  readonly type: "string";
6218
6064
  readonly enum: readonly ["any", "external"];
@@ -6368,7 +6214,7 @@ export declare const settingsValueSchema: {
6368
6214
  readonly "x-bf": {
6369
6215
  readonly domain: "settings";
6370
6216
  readonly version: 1;
6371
- readonly settingsSchemaVersion: 33;
6217
+ readonly settingsSchemaVersion: 34;
6372
6218
  };
6373
6219
  };
6374
6220
  export declare const observationDefinitions: readonly [{
@@ -7449,13 +7295,13 @@ export declare const observationDefinitions: readonly [{
7449
7295
  };
7450
7296
  }, {
7451
7297
  readonly id: 79;
7452
- readonly name: "health.remainingOnline";
7298
+ readonly name: "diagnostics.remainingSeconds";
7453
7299
  readonly role: "measurement";
7454
7300
  readonly subject: "device";
7455
7301
  readonly producer: "device";
7456
7302
  readonly presentation: {
7457
- readonly displayName: "Remaining online time";
7458
- readonly description: "Remaining time in the tracker's online window, in seconds.";
7303
+ readonly displayName: "Diagnostics remaining";
7304
+ readonly description: "Remaining time for configured diagnostic logging and instrumentation, in seconds.";
7459
7305
  readonly hiddenByDefault: false;
7460
7306
  readonly unit: "s";
7461
7307
  };
@@ -8153,17 +7999,6 @@ export declare const observationDefinitions: readonly [{
8153
7999
  readonly description: "Number of entries into modem power-saving mode recorded in the power-activity snapshot.";
8154
8000
  readonly hiddenByDefault: true;
8155
8001
  };
8156
- }, {
8157
- readonly id: 142;
8158
- readonly name: "power.psmFallbacks";
8159
- readonly role: "counter";
8160
- readonly subject: "device";
8161
- readonly producer: "device";
8162
- readonly presentation: {
8163
- readonly displayName: "Power-saving fallback count";
8164
- readonly description: "Number of power-saving-mode fallbacks recorded in the power-activity snapshot.";
8165
- readonly hiddenByDefault: true;
8166
- };
8167
8002
  }, {
8168
8003
  readonly id: 143;
8169
8004
  readonly name: "power.psmMs";
@@ -8176,29 +8011,6 @@ export declare const observationDefinitions: readonly [{
8176
8011
  readonly hiddenByDefault: true;
8177
8012
  readonly unit: "ms";
8178
8013
  };
8179
- }, {
8180
- readonly id: 144;
8181
- readonly name: "power.responseWindowEntries";
8182
- readonly role: "counter";
8183
- readonly subject: "device";
8184
- readonly producer: "device";
8185
- readonly presentation: {
8186
- readonly displayName: "Command response window entry count";
8187
- readonly description: "Number of entries into the command-response window recorded in the power-activity snapshot.";
8188
- readonly hiddenByDefault: true;
8189
- };
8190
- }, {
8191
- readonly id: 145;
8192
- readonly name: "power.responseWindowMs";
8193
- readonly role: "counter";
8194
- readonly subject: "device";
8195
- readonly producer: "device";
8196
- readonly presentation: {
8197
- readonly displayName: "Command response window total time";
8198
- readonly description: "Accumulated time attributed to the command-response window, in milliseconds, in the power-activity snapshot.";
8199
- readonly hiddenByDefault: true;
8200
- readonly unit: "ms";
8201
- };
8202
8014
  }, {
8203
8015
  readonly id: 146;
8204
8016
  readonly name: "power.rrcEntries";
@@ -8356,12 +8168,8 @@ export declare const observationDefinitions: readonly [{
8356
8168
  readonly path: "elapsedMs";
8357
8169
  readonly label: "Elapsed";
8358
8170
  readonly format: "duration";
8359
- }, {
8360
- readonly path: "mode";
8361
- readonly label: "Mode";
8362
- readonly format: "label";
8363
8171
  }];
8364
- readonly extensibleEnumFields: readonly ["mode"];
8172
+ readonly extensibleEnumFields: readonly [];
8365
8173
  };
8366
8174
  }, {
8367
8175
  readonly id: 158;
@@ -8391,7 +8199,7 @@ export declare const observationDefinitions: readonly [{
8391
8199
  readonly label: "Duration";
8392
8200
  readonly format: "duration";
8393
8201
  }];
8394
- readonly extensibleEnumFields: readonly ["mode", "state"];
8202
+ readonly extensibleEnumFields: readonly ["state"];
8395
8203
  };
8396
8204
  }, {
8397
8205
  readonly id: 159;