@bikefinder/sdk 0.5.0 → 0.6.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.
@@ -39,42 +39,125 @@ export type AccountProfileDocument = {
39
39
  data: AccountProfileData;
40
40
  [key: string]: unknown;
41
41
  };
42
- export type ActivityDurationsValue = {
43
- rrc: number;
44
- mqtt: number;
45
- psm: number;
46
- esp: number;
47
- wifiScan: number;
48
- bleScan: number;
49
- gnss: number;
50
- [key: string]: unknown;
51
- };
52
- export type ActivityEntriesValue = {
53
- rrc: number;
54
- mqtt: number;
55
- psm: number;
56
- esp: number;
57
- wifiScan: number;
58
- bleScan: number;
59
- gnss: number;
42
+ /**
43
+ * acquisition.completed
44
+ *
45
+ * Request-scoped domain evidence emitted before its terminal command result.
46
+ */
47
+ export type AcquisitionCompletedValue = {
48
+ sampledMask: number;
49
+ unavailableMask: number;
50
+ timedOutMask: number;
51
+ cancelledMask: number;
52
+ failedMask: number;
60
53
  [key: string]: unknown;
61
54
  };
55
+ export type AcquisitionOptions = {
56
+ gnss?: {
57
+ /**
58
+ * assistance for this behavior request.
59
+ */
60
+ assistance?: boolean;
61
+ /**
62
+ * powerMode for this behavior request.
63
+ */
64
+ powerMode?: "disabled" | "performance" | "power";
65
+ /**
66
+ * Keep LTE paging available during the normal connected search. GNSS priority can block LTE paging for up to 40 seconds.
67
+ */
68
+ priorityMode?: boolean;
69
+ /**
70
+ * lowAccuracy for this behavior request.
71
+ */
72
+ lowAccuracy?: boolean;
73
+ /**
74
+ * targetAccuracyMeters for this behavior request.
75
+ */
76
+ targetAccuracyMeters?: number;
77
+ /**
78
+ * consecutiveFixes for this behavior request.
79
+ */
80
+ consecutiveFixes?: number;
81
+ /**
82
+ * visibility.enabled for this behavior request.
83
+ */
84
+ visibilityEnabled?: boolean;
85
+ /**
86
+ * visibility.executionSeconds for this behavior request.
87
+ */
88
+ visibilityExecutionSeconds?: number;
89
+ /**
90
+ * visibility.minSatellites for this behavior request.
91
+ */
92
+ visibilityMinSatellites?: number;
93
+ } | null;
94
+ cell?: {
95
+ /**
96
+ * mode for this behavior request.
97
+ */
98
+ mode?: "serving" | "gci" | "neighbors";
99
+ /**
100
+ * gciCount for this behavior request.
101
+ */
102
+ gciCount?: number;
103
+ } | null;
104
+ wifi?: {
105
+ /**
106
+ * scanType for this behavior request.
107
+ */
108
+ scanType?: "active" | "passive";
109
+ /**
110
+ * activeMinMs for this behavior request.
111
+ */
112
+ activeMinMs?: number;
113
+ /**
114
+ * activeMaxMs for this behavior request.
115
+ */
116
+ activeMaxMs?: number;
117
+ /**
118
+ * passiveMs for this behavior request.
119
+ */
120
+ passiveMs?: number;
121
+ /**
122
+ * channelMask for this behavior request.
123
+ */
124
+ channelMask?: number;
125
+ /**
126
+ * budgetMs for this behavior request.
127
+ */
128
+ budgetMs?: number;
129
+ } | null;
130
+ };
131
+ /**
132
+ * Agnss completed
133
+ *
134
+ * A single assistance exchange outcome; later fix latency is new search evidence, not a mutation of this completed record.
135
+ */
62
136
  export type AgnssCompletedValue = {
63
- outcome: OperationOutcomeValue;
64
- error: null | OperationErrorValue;
65
- requested: AssistanceMasksValue;
66
- supplied: AssistanceMasksValue;
67
- serverProcessingMs: null | number;
137
+ outcome: DeviceObservationValuesOperationOutcome;
138
+ error: DeviceObservationValuesOperationError | null;
139
+ requested: DeviceObservationValuesAssistanceMasks;
140
+ supplied: DeviceObservationValuesAssistanceMasks;
141
+ serverProcessingMs: number | null;
68
142
  replyValidated: boolean;
69
143
  acceptedRecords: number;
70
144
  timeSkipped: boolean;
71
145
  transferDurationMs: number;
72
146
  [key: string]: unknown;
73
147
  };
148
+ /**
149
+ * Agnss transfer trace
150
+ *
151
+ * No fixed chunk0..4 public observations; distinguish milestones from durations and absent stages from real zero.
152
+ */
74
153
  export type AgnssTransferTraceValue = {
75
- milestones: Array<TraceMilestoneValue>;
76
- durations: Array<TimingDurationValue>;
77
- serviceTiming: AgnssTransferTraceValueServiceTiming;
154
+ milestones: Array<DeviceObservationValuesTraceMilestone>;
155
+ durations: Array<DeviceObservationValuesTimingDuration>;
156
+ serviceTiming: {
157
+ maximumStepMs: number;
158
+ maximumGapMs: number;
159
+ [key: string]: unknown;
160
+ };
78
161
  omitted: number;
79
162
  [key: string]: unknown;
80
163
  };
@@ -378,347 +461,115 @@ export type AuditPartialOfAuditQuestionnaireDataAuditQuestionnaireData = {
378
461
  wouldRecommend?: null | TextOrNumber;
379
462
  [key: string]: unknown;
380
463
  };
381
- export type AwsBatteryArtifact = {
464
+ export type BatteryArtifact = {
382
465
  moduleId: string;
383
466
  version: string;
384
467
  sha256: string;
385
468
  imageBytes: number;
386
469
  [key: string]: unknown;
387
470
  };
388
- export type AwsCommand = {
389
- deviceId: string;
390
- requestId: number;
391
- operationId: string;
392
- command: "status" | "reconcileSettings" | "disconnect" | "requestObservations" | "sample" | "cancel" | "reboot" | "identify" | "streamObservations" | "selfTest" | "switchEnvironment" | "clearEnvironment" | "listEnvironments" | "updateBattery" | "runBatteryCheck" | "requestPosition" | "enableDiagnostics";
393
- arguments: Array<number>;
394
- metrics: null | Array<number>;
395
- enrollmentUrl: null | string;
396
- requestedBy: string;
397
- requestedAt: string;
398
- publishedAt: null | string;
399
- inventoryId: string;
400
- commandId: number;
401
- execution?: null | CommandExecution;
402
- executionVersion?: number;
403
- batteryUpdate?: null | AwsBatteryArtifact;
404
- [key: string]: unknown;
405
- };
406
- export type AwsCommandAvailability = {
407
- definition: CommandDefinition;
408
- available: boolean;
409
- reason: null | string;
410
- [key: string]: unknown;
411
- };
412
- export type AwsCommandCapabilities = {
413
- device: AwsDeviceIdentity;
414
- firmware: null | FirmwareLteCurrent;
415
- protocolVerified: boolean;
416
- commands: Array<AwsCommandAvailability>;
417
- [key: string]: unknown;
418
- };
419
- export type AwsCommandPage = {
420
- items: Array<AwsCommand>;
421
- nextCursor: null | string;
422
- readIssues?: null | Array<AwsCommandReadIssue>;
423
- [key: string]: unknown;
424
- };
425
- export type AwsCommandReadIssue = {
426
- requestId: null | number;
427
- code: string;
428
- [key: string]: unknown;
429
- };
430
- export type AwsCommandRequest = {
431
- operationId: string;
432
- expectedInventoryId: string;
433
- command: "status";
434
- arguments: Array<never>;
435
- metrics?: null;
436
- enrollmentUrl?: null;
437
- confirmed?: boolean;
438
- } | {
439
- operationId: string;
440
- expectedInventoryId: string;
441
- command: "reconcileSettings";
442
- arguments: Array<never>;
443
- metrics?: null;
444
- enrollmentUrl?: null;
445
- confirmed?: boolean;
446
- } | {
447
- operationId: string;
448
- expectedInventoryId: string;
449
- command: "disconnect";
450
- arguments: Array<never>;
451
- metrics?: null;
452
- enrollmentUrl?: null;
453
- confirmed: true;
454
- } | {
455
- operationId: string;
456
- expectedInventoryId: string;
457
- command: "requestObservations";
458
- arguments: [0 | 1, number];
459
- metrics: Array<1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 32 | 33 | 34 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 48 | 49 | 50 | 52 | 53 | 54 | 55 | 56 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 107 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 121 | 123 | 124 | 126 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 143 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164>;
460
- enrollmentUrl?: null;
461
- confirmed?: boolean;
462
- } | {
463
- operationId: string;
464
- expectedInventoryId: string;
465
- command: "sample";
466
- arguments: [1 | 2 | 4 | 8 | 16 | 32, number];
467
- metrics?: null;
468
- enrollmentUrl?: null;
469
- confirmed?: boolean;
470
- } | {
471
- operationId: string;
472
- expectedInventoryId: string;
473
- command: "cancel";
474
- arguments: [number];
475
- metrics?: null;
476
- enrollmentUrl?: null;
477
- confirmed?: boolean;
478
- } | {
479
- operationId: string;
480
- expectedInventoryId: string;
481
- command: "reboot";
482
- arguments: Array<never>;
483
- metrics?: null;
484
- enrollmentUrl?: null;
485
- confirmed: true;
486
- } | {
487
- operationId: string;
488
- expectedInventoryId: string;
489
- command: "identify";
490
- arguments: [number];
491
- metrics?: null;
492
- enrollmentUrl?: null;
493
- confirmed?: boolean;
494
- } | {
495
- operationId: string;
496
- expectedInventoryId: string;
497
- command: "streamObservations";
498
- arguments: [
499
- number,
500
- number,
501
- number,
502
- 0 | 1 | 2 | 3,
503
- 1 | 2 | 4 | 8 | 16 | 32
504
- ];
505
- metrics: Array<1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 32 | 33 | 34 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 48 | 49 | 50 | 52 | 53 | 54 | 55 | 56 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 107 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 121 | 123 | 124 | 126 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 143 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164>;
506
- enrollmentUrl?: null;
507
- confirmed?: boolean;
508
- } | {
509
- operationId: string;
510
- expectedInventoryId: string;
511
- command: "selfTest";
512
- arguments: [1 | 2 | 4 | 8, number];
513
- metrics?: null;
514
- enrollmentUrl?: null;
515
- confirmed?: boolean;
516
- } | {
517
- operationId: string;
518
- expectedInventoryId: string;
519
- command: "switchEnvironment";
520
- arguments: Array<never>;
521
- metrics?: null;
522
- enrollmentUrl: string;
523
- confirmed: true;
524
- } | {
525
- operationId: string;
526
- expectedInventoryId: string;
527
- command: "clearEnvironment";
528
- arguments: Array<never>;
529
- metrics?: null;
530
- enrollmentUrl: string;
531
- confirmed: true;
532
- } | {
533
- operationId: string;
534
- expectedInventoryId: string;
535
- command: "listEnvironments";
536
- arguments: Array<never>;
537
- metrics?: null;
538
- enrollmentUrl?: null;
539
- confirmed?: boolean;
540
- } | {
541
- operationId: string;
542
- expectedInventoryId: string;
543
- command: "runBatteryCheck";
544
- arguments: Array<never>;
545
- metrics?: null;
546
- enrollmentUrl?: null;
547
- confirmed?: boolean;
548
- } | {
549
- operationId: string;
550
- expectedInventoryId: string;
551
- command: "requestPosition";
552
- arguments: [0 | 1, number];
553
- metrics?: null;
554
- enrollmentUrl?: null;
555
- confirmed?: boolean;
556
- } | {
557
- operationId: string;
558
- expectedInventoryId: string;
559
- command: "enableDiagnostics";
560
- arguments: [number];
561
- metrics?: null;
562
- enrollmentUrl?: null;
563
- confirmed?: boolean;
564
- };
565
- export type AwsCommandUpdate = {
566
- requestId: number;
567
- command: AwsCommand | null;
568
- readIssue: AwsCommandReadIssue | null;
569
- [key: string]: unknown;
570
- };
571
- export type AwsConnectivity = {
572
- connected: boolean;
573
- checkedAt: string;
574
- [key: string]: unknown;
575
- };
576
- export type AwsDeviceIdentity = {
577
- deviceId: string;
578
- inventoryId: string;
579
- hardwareGeneration: number;
580
- [key: string]: unknown;
581
- };
582
- export type AwsFirmwareCancellation = {
583
- requestId: string;
584
- expectedExecutionVersion: number;
585
- };
586
- export type AwsFirmwareExecution = {
587
- status: string;
588
- version: null | number;
589
- executionNumber: null | number;
590
- [key: string]: unknown;
591
- };
592
- export type AwsFirmwareReceipt = {
593
- deviceId: string;
594
- requestId: string;
595
- releaseId: string;
596
- chip: string;
597
- targetVersion: string;
598
- requestedBy: string;
599
- requestedAt: string;
600
- jobAcceptedAt: null | string;
601
- execution: AwsFirmwareExecution;
602
- expiresAt?: null | string;
603
- attemptLimit?: null | number;
604
- [key: string]: unknown;
605
- };
606
- export type AwsFirmwareRelease = {
607
- id: string;
608
- chip: string;
609
- targetVersion: string;
610
- size: number;
611
- sha256: string;
612
- notes?: null | string;
613
- [key: string]: unknown;
614
- };
615
- export type AwsFirmwareRequest = {
616
- requestId: string;
617
- expectedInventoryId: string;
618
- releaseId: string;
619
- };
620
- export type AwsObservationPage = {
621
- items: Array<Observation>;
622
- nextCursor: null | string;
623
- [key: string]: unknown;
624
- };
625
- export type AwsObservationReading = {
626
- series: ReadObservationSeries;
627
- observation: null | CurrentObservation;
628
- [key: string]: unknown;
629
- };
630
- export type AwsObservationSelection = {
631
- series: Array<ObservationSeries>;
632
- };
633
- export type AwsSettingsApplication = {
634
- settings: null | SettingsApplicationStatus;
635
- connection: null | ConnectionApplicationStatus;
636
- [key: string]: unknown;
637
- };
638
- export type AwsSettingsCapabilities = {
639
- modemTrace?: null | boolean;
640
- gnssVisibilityDetection?: null | boolean;
641
- lteRai?: null | boolean;
642
- ltePowerDiagnostics?: null | boolean;
643
- modemMemoryDiagnostics?: null | boolean;
644
- trackingDiagnostics?: null | boolean;
645
- diagnosticCommands?: null | boolean;
646
- [key: string]: unknown;
647
- };
648
- export type AwsSettingsReadIssue = {
649
- path: string;
650
- code: string;
651
- [key: string]: unknown;
652
- };
653
- export type AwsSettingsSnapshot = {
654
- version: number;
655
- exists: boolean;
656
- desired: ReadDeviceSettings;
657
- reported: ReadDeviceSettings;
658
- application: AwsSettingsApplication;
659
- capabilities: null | AwsSettingsCapabilities;
660
- schemaVersion: null | number;
661
- completeVersion: null | number;
662
- readIssues: Array<AwsSettingsReadIssue>;
663
- [key: string]: unknown;
664
- };
665
- export type AwsSettingsWrite = {
666
- expectedVersion: number;
667
- settings: DeviceSettings;
668
- };
669
- export type BatteryChargingAdaptationStatusValue = {
670
- mode: BatteryChargingAdaptationStatusValueMode;
671
- input: null | ChargingInputAdaptationValue;
672
- concurrency: null | ChargingConcurrencyAdaptationValue;
471
+ /**
472
+ * Charging adaptation
473
+ *
474
+ * Actor-owned qualification state for input current and module concurrency, with independent reasons and retained cooldowns. Mode is the adopted input-current setting. Input is null outside adaptive mode; concurrency is null when charging is disabled or the actor uses a single-module configuration. Qualifications are controller limits, not module inventory, charger commands or current flow.
475
+ */
476
+ export type BatteryChargingAdaptationStatusValue = unknown & {
477
+ mode: "disabled" | "adaptive" | "fixed";
478
+ input: DeviceObservationValuesChargingInputAdaptation | null;
479
+ concurrency: DeviceObservationValuesChargingConcurrencyAdaptation | null;
673
480
  [key: string]: unknown;
674
481
  };
675
482
  export type BatteryChargingAdaptationStatusValueMode = "disabled" | "adaptive" | "fixed";
483
+ /**
484
+ * Charging allocation decisions
485
+ *
486
+ * LTE allocation intent and acknowledged output, not proof of actual current flow. Reports stopped fault gates and physical-identity power reservations, including unreachable modules and lost acknowledgements. Remaining durations freeze at capture; use observation age. A null reservation list is unavailable, not empty. Reads perform no UART I/O and never retire or renew a reservation.
487
+ */
676
488
  export type BatteryChargingAllocationsValue = {
677
489
  inventoryConfirmed: boolean;
678
490
  held: boolean;
679
491
  inputBudgetMa: number;
680
492
  maximumChargers: number;
681
- reason: BatteryChargingAllocationsValueReason;
682
- modules: Array<ChargingAllocationMemberValue>;
683
- reservations: null | Array<ChargingPowerReservationValue>;
493
+ reason: "none" | "disabled" | "detached" | "unknownInput" | "notReady" | "communication" | "stale" | "thermal" | "cable" | "full" | "overcurrent" | "maintenance" | "chargerFault" | "allocationBudget";
494
+ modules: Array<DeviceObservationValuesChargingAllocationMember>;
495
+ reservations: Array<DeviceObservationValuesChargingPowerReservation> | null;
684
496
  [key: string]: unknown;
685
497
  };
686
498
  export type BatteryChargingAllocationsValueReason = "none" | "disabled" | "detached" | "unknownInput" | "notReady" | "communication" | "stale" | "thermal" | "cable" | "full" | "overcurrent" | "maintenance" | "chargerFault" | "allocationBudget";
499
+ /**
500
+ * Charging changed
501
+ *
502
+ * One charging transition advances a state view. No second automatic status record is needed for that edge.
503
+ */
687
504
  export type BatteryChargingChangedValue = {
688
- previous: ChargingStatusValue;
689
- current: ChargingStatusValue;
690
- details: null | ChargingTransitionDetailsValue;
505
+ previous: DeviceObservationValuesChargingStatus;
506
+ current: DeviceObservationValuesChargingStatus;
507
+ details: DeviceObservationValuesChargingTransitionDetails | null;
691
508
  [key: string]: unknown;
692
509
  };
510
+ /**
511
+ * Charging maintenance completed
512
+ *
513
+ * Emit once when the resume outcome is known. Full or unsafe deliberate stops are not failures to resume.
514
+ */
693
515
  export type BatteryChargingMaintenanceCompletedValue = {
694
516
  holdDurationMs: number;
695
- resumeOutcome: BatteryChargingMaintenanceCompletedValueResumeOutcome;
517
+ resumeOutcome: "resumed" | "deferred" | "notRequired";
696
518
  resumeDelayMs: number;
697
519
  startedAgeMs: number;
698
520
  [key: string]: unknown;
699
521
  };
700
522
  export type BatteryChargingMaintenanceCompletedValueResumeOutcome = "resumed" | "deferred" | "notRequired";
523
+ /**
524
+ * Charging maintenance status
525
+ *
526
+ * One high-level maintenance state. Active elapsed time is computed in a view, not re-emitted every second.
527
+ */
701
528
  export type BatteryChargingMaintenanceStatusValue = {
702
- phase: BatteryChargingMaintenanceStatusValuePhase;
703
- reason: BatteryChargingMaintenanceStatusValueReason;
704
- startedAgeMs: null | number;
529
+ phase: "idle" | "stopping" | "running" | "resuming";
530
+ reason: "none" | "startup" | "attachment" | "audit" | "repair";
531
+ startedAgeMs: number | null;
705
532
  [key: string]: unknown;
706
533
  };
707
534
  export type BatteryChargingMaintenanceStatusValuePhase = "idle" | "stopping" | "running" | "resuming";
708
535
  export type BatteryChargingMaintenanceStatusValueReason = "none" | "startup" | "attachment" | "audit" | "repair";
536
+ /**
537
+ * Battery check completed
538
+ *
539
+ * Workflow outcome and inventory commit are separate: setup can fail after membership discovery succeeds. Failed/partial membership discovery preserves accepted inventory. Boot work needs no initiating command. References neither force delivery nor require target retention.
540
+ */
709
541
  export type BatteryCheckCompletedValue = {
710
- trigger: BatteryCheckCompletedValueTrigger;
711
- outcome: OperationOutcomeValue;
542
+ trigger: "boot" | "command";
543
+ outcome: DeviceObservationValuesOperationOutcome;
712
544
  durationMs: number;
713
- inventoryResult: BatteryCheckCompletedValueInventoryResult;
714
- error: null | OperationErrorValue;
545
+ inventoryResult: "committed" | "notCommitted";
546
+ error: DeviceObservationValuesOperationError | null;
715
547
  [key: string]: unknown;
716
548
  };
717
549
  export type BatteryCheckCompletedValueInventoryResult = "committed" | "notCommitted";
718
550
  export type BatteryCheckCompletedValueTrigger = "boot" | "command";
551
+ /**
552
+ * battery.checkResult
553
+ *
554
+ * Request-scoped domain evidence emitted before its terminal command result.
555
+ */
556
+ export type BatteryCheckResultValue = {
557
+ moduleCount: number;
558
+ readyMask: number;
559
+ [key: string]: unknown;
560
+ };
561
+ /**
562
+ * Battery communication timing
563
+ *
564
+ * Successful and failed existing requests; no extra UART traffic or per-success event stream.
565
+ */
719
566
  export type BatteryCommunicationTimingValue = {
720
- operations: Array<ModuleTimingValue>;
721
- interval: BatteryCommunicationTimingValueInterval;
567
+ operations: Array<DeviceObservationValuesModuleTiming>;
568
+ interval: {
569
+ startAgeMs: number;
570
+ endAgeMs: number;
571
+ [key: string]: unknown;
572
+ };
722
573
  [key: string]: unknown;
723
574
  };
724
575
  export type BatteryCommunicationTimingValueInterval = {
@@ -726,19 +577,34 @@ export type BatteryCommunicationTimingValueInterval = {
726
577
  endAgeMs: number;
727
578
  [key: string]: unknown;
728
579
  };
580
+ /**
581
+ * Battery displayed level
582
+ *
583
+ * The display result and its provenance must agree. It is not an average of module percentages.
584
+ */
729
585
  export type BatteryDisplayedLevelValue = {
730
586
  percent: number;
731
- sourceSubject: string;
587
+ sourceSubject: DeviceObservationValuesModuleSubject;
732
588
  safetyCompensated: boolean;
733
589
  [key: string]: unknown;
734
590
  };
591
+ /**
592
+ * Power external power changed
593
+ *
594
+ * External input can change independently of charging; a tracker becoming full does not imply unplugging.
595
+ */
735
596
  export type BatteryExternalPowerChangedValue = {
736
- previous: ExternalPowerValue;
737
- current: ExternalPowerValue;
597
+ previous: DeviceObservationValuesExternalPower;
598
+ current: DeviceObservationValuesExternalPower;
738
599
  [key: string]: unknown;
739
600
  };
601
+ /**
602
+ * Battery failure trace
603
+ *
604
+ * Bounded UART failure evidence with original uptime timestamps, raw addressed destination and typed exchange stage. Request and received-response prefixes are truncated engineering evidence, never firmware, identity-transfer or bootloader-secret payloads. Expected cancellation/shutdown does not evict real failures. Reading this cache never performs I/O.
605
+ */
740
606
  export type BatteryFailureTraceValue = {
741
- entries: Array<BatteryFailureValue>;
607
+ entries: Array<DeviceObservationValuesBatteryFailure>;
742
608
  omitted: number;
743
609
  [key: string]: unknown;
744
610
  };
@@ -756,13 +622,23 @@ export type BatteryFailureValue = {
756
622
  [key: string]: unknown;
757
623
  };
758
624
  export type BatteryFailureValueStage = "admission" | "prepare" | "rxStart" | "txStart" | "txWait" | "rxWait" | "replyWait" | "validation" | "done";
759
- export type BatteryInventoryValue = {
760
- status: BatteryInventoryValueStatus;
761
- members: null | Array<InventoryMemberValue>;
762
- capacityReached: null | boolean;
625
+ /**
626
+ * Battery inventory
627
+ *
628
+ * Last accepted responsive inventory within the supported chain limit, not proof that no silent physical module exists. Failed/partial discovery cannot commit a smaller inventory. Setup failure is separate from membership discovery.
629
+ */
630
+ export type BatteryInventoryValue = unknown & {
631
+ status: "unknown" | "confirmed";
632
+ members: Array<DeviceObservationValuesInventoryMember> | null;
633
+ capacityReached: boolean | null;
763
634
  [key: string]: unknown;
764
635
  };
765
636
  export type BatteryInventoryValueStatus = "unknown" | "confirmed";
637
+ /**
638
+ * Battery module charge completed
639
+ *
640
+ * A fault-free hardware charge-done observation accepted by LTE. Values describe this completion, not current shadow settings. Termination current is nominal for a 180 milliohm charger sense resistor. The observation timestamp is the completion detection time.
641
+ */
766
642
  export type BatteryModuleChargeCompletedValue = {
767
643
  terminationCurrentMa: number;
768
644
  voltageMv: number;
@@ -771,30 +647,59 @@ export type BatteryModuleChargeCompletedValue = {
771
647
  rechargeDropMv: number;
772
648
  [key: string]: unknown;
773
649
  };
650
+ /**
651
+ * Battery module charge rested
652
+ *
653
+ * First existing voltage sample at least 60 seconds and at most 15 minutes after an acknowledged charger disable following completion. This is post-charge voltage under tracker load, not a no-load capacity measurement. No extra hardware polling is scheduled.
654
+ */
774
655
  export type BatteryModuleChargeRestedValue = {
775
656
  voltageMv: number;
776
657
  afterStopMs: number;
777
658
  sinceCompletionMs: number;
778
659
  [key: string]: unknown;
779
660
  };
661
+ /**
662
+ * Charger module register snapshot
663
+ *
664
+ * Explicit engineering evidence about cached registers. The snapshot time does not make every register fresh. It is not an automatic alternate publication of decoded product state.
665
+ */
780
666
  export type BatteryModuleChargerRegisterSnapshotValue = {
781
- registers: Array<RegisterReadingValue>;
667
+ registers: Array<DeviceObservationValuesRegisterReading>;
782
668
  omitted: number;
783
669
  [key: string]: unknown;
784
670
  };
671
+ /**
672
+ * Charger module settings
673
+ *
674
+ * A coherent readback of hardware settings, distinct from acknowledged commands. Emit only a complete validated settings read; do not join unrelated cached registers.
675
+ */
785
676
  export type BatteryModuleChargerSettingsValue = {
786
- inputLimit: BatteryModuleChargerSettingsValueInputLimit;
677
+ inputLimit: "100mA" | "500mA" | "800mA" | "unlimited";
787
678
  chargeCurrentSetting: number;
788
679
  lowCurrentMode: boolean;
789
680
  [key: string]: unknown;
790
681
  };
791
682
  export type BatteryModuleChargerSettingsValueInputLimit = "100mA" | "500mA" | "800mA" | "unlimited";
683
+ /**
684
+ * Battery module charger status
685
+ *
686
+ * State/fault and optional local MSP charging guard are one coherent hardware snapshot. Guard reports permission, actual output, remaining authorization at capture, local inhibit reasons and safety-policy/boot generations. Null on legacy modules. Supply/guard fields must never borrow older cache entries.
687
+ */
792
688
  export type BatteryModuleChargerStatusValue = {
793
- state: BatteryModuleChargerStatusValueState;
689
+ state: "ready" | "charging" | "full" | "fault";
794
690
  fault: number;
795
- inputValidated: null | boolean;
796
- voltageRegulationActive: null | boolean;
797
- guard: null | BatteryModuleChargerStatusValueGuard;
691
+ inputValidated: boolean | null;
692
+ voltageRegulationActive: boolean | null;
693
+ guard: {
694
+ authorized: boolean;
695
+ outputEnabled: boolean;
696
+ remainingMs: number;
697
+ inhibitReasons: number;
698
+ policyRevision: number;
699
+ authorizedSample: number;
700
+ bootGeneration: number;
701
+ [key: string]: unknown;
702
+ } | null;
798
703
  [key: string]: unknown;
799
704
  };
800
705
  export type BatteryModuleChargerStatusValueGuard = {
@@ -808,31 +713,56 @@ export type BatteryModuleChargerStatusValueGuard = {
808
713
  [key: string]: unknown;
809
714
  };
810
715
  export type BatteryModuleChargerStatusValueState = "ready" | "charging" | "full" | "fault";
716
+ /**
717
+ * Battery module firmware
718
+ *
719
+ * Version and confidence are inseparable; relay headers do not prove remote firmware identity.
720
+ */
811
721
  export type BatteryModuleFirmwareValue = {
812
- version: string;
813
- evidence: BatteryModuleFirmwareValueEvidence;
722
+ version: DeviceObservationValuesVersion;
723
+ evidence: "directResponse" | "targetPayload" | "relayHeader";
814
724
  [key: string]: unknown;
815
725
  };
816
726
  export type BatteryModuleFirmwareValueEvidence = "directResponse" | "targetPayload" | "relayHeader";
727
+ /**
728
+ * Battery module fuel gauge mode
729
+ *
730
+ * Operating mode reported by the identified battery module's fuel gauge.
731
+ */
817
732
  export type BatteryModuleGaugeModeValue = "mixed" | "voltage" | "unknown";
733
+ /**
734
+ * Battery module gauge reset
735
+ *
736
+ * A reset command confirmed executed or a flag transition from a known baseline for this module binding. An initially set or repeatedly read sticky flag is state evidence, not a new reset. A later flag confirmation of the same commanded reset does not emit a second event.
737
+ */
818
738
  export type BatteryModuleGaugeResetValue = {
819
- origin: BatteryModuleGaugeResetValueOrigin;
739
+ origin: "confirmedCommand" | "observedFlagTransition";
820
740
  [key: string]: unknown;
821
741
  };
822
742
  export type BatteryModuleGaugeResetValueOrigin = "confirmedCommand" | "observedFlagTransition";
743
+ /**
744
+ * Battery module readiness
745
+ *
746
+ * Readiness concerns verified configuration, not whether a cached physical reading exists.
747
+ */
823
748
  export type BatteryModuleReadinessValue = {
824
- state: BatteryModuleReadinessValueState;
825
- reason: BatteryModuleReadinessValueReason;
749
+ state: "unknown" | "notReady" | "ready";
750
+ reason: "none" | "configurationPending" | "communication" | "verification";
826
751
  [key: string]: unknown;
827
752
  };
828
753
  export type BatteryModuleReadinessValueReason = "none" | "configurationPending" | "communication" | "verification";
829
754
  export type BatteryModuleReadinessValueState = "unknown" | "notReady" | "ready";
830
- export type BatteryModuleThermalStatusValue = {
831
- state: BatteryModuleThermalStatusValueState;
832
- reason: BatteryModuleThermalStatusValueReason;
833
- temperatureSource: BatteryModuleThermalStatusValueTemperatureSource;
834
- thermistorAdc: null | number;
835
- lteTemperatureC: null | number;
755
+ /**
756
+ * Battery module thermal status
757
+ *
758
+ * Per-module charging temperature decision with hysteresis. The exact fresh reading accepted for the reported decision is thermistorAdc (raw ADC) for batteryModule, lteTemperatureC (degrees Celsius) for lte, or neither for unavailable. Reading and decision share a timestamp and module binding. Temperature drift alone does not produce a new state observation. A limited state does not establish a 130 mA battery-current guarantee.
759
+ */
760
+ export type BatteryModuleThermalStatusValue = unknown & {
761
+ state: "unknown" | "allowed" | "limited" | "stopped";
762
+ reason: "none" | "invalidThresholds" | "cableThreshold" | "missingEvidence" | "lowTemperature" | "highTemperature";
763
+ temperatureSource: "unavailable" | "batteryModule" | "lte";
764
+ thermistorAdc: number | null;
765
+ lteTemperatureC: number | null;
836
766
  [key: string]: unknown;
837
767
  };
838
768
  export type BatteryModuleThermalStatusValueReason = "none" | "invalidThresholds" | "cableThreshold" | "missingEvidence" | "lowTemperature" | "highTemperature";
@@ -843,37 +773,57 @@ export type BatteryObservation = {
843
773
  level: null | number;
844
774
  isCharging: boolean;
845
775
  };
776
+ /**
777
+ * Battery operation failed
778
+ *
779
+ * One canonical battery-operation failure, including charging stop failures. A route is usable even when discovery cannot identify the target module.
780
+ */
846
781
  export type BatteryOperationFailedValue = {
847
782
  operation: number;
848
- error: OperationErrorValue;
849
- phase: null | string;
850
- module: null | string;
783
+ error: DeviceObservationValuesOperationError;
784
+ phase: string | null;
785
+ module: DeviceObservationValuesModuleSubject | null;
851
786
  [key: string]: unknown;
852
787
  };
788
+ /**
789
+ * battery.protocolExchange
790
+ *
791
+ * Last protocol envelope exchange. Transport/framing/correlation errors are distinct from the matched MSP result. No request or response payload bytes are retained. Operation-body validity is checked separately by the typed consumer.
792
+ */
853
793
  export type BatteryProtocolExchangeValue = {
854
794
  operation: number;
855
795
  elapsedMs: number;
856
796
  transportError: number;
857
- status: null | number;
858
- bootGeneration: null | number;
797
+ status: number | null;
798
+ bootGeneration: number | null;
859
799
  [key: string]: unknown;
860
800
  };
801
+ /**
802
+ * battery.protocolIdentity
803
+ *
804
+ * Accepted HELLO identity and metadata for this raw route. Optional unavailable metadata is null. Relay headers are not module identity evidence.
805
+ */
861
806
  export type BatteryProtocolIdentityValue = {
862
807
  moduleId: string;
863
808
  bootGeneration: number;
864
809
  capabilities: string;
865
- hardwareRevision: null | number;
866
- resetReason: null | number;
810
+ hardwareRevision: number | null;
811
+ resetReason: number | null;
867
812
  [key: string]: unknown;
868
813
  };
814
+ /**
815
+ * battery.updateHealth
816
+ *
817
+ * Operational verification after a completed MSP installation and LTE restart. Installation completion does not imply operational health. A failed health check never rearms image installation or consumes another flash attempt.
818
+ */
869
819
  export type BatteryUpdateHealthValue = {
870
820
  requestId: number;
871
821
  slot: number;
872
- target: string;
822
+ target: DeviceObservationValuesModuleSubject;
873
823
  imageInstalled: boolean;
874
- state: BatteryUpdateHealthValueState;
824
+ state: "operational" | "failed" | "unsupported";
875
825
  error: number;
876
- bootGeneration: null | number;
826
+ bootGeneration: number | null;
877
827
  [key: string]: unknown;
878
828
  };
879
829
  export type BatteryUpdateHealthValueState = "operational" | "failed" | "unsupported";
@@ -957,6 +907,11 @@ export type CancelLegacyLteUpgrade = {
957
907
  requestId: string;
958
908
  expectedCycleId: string;
959
909
  };
910
+ export type CellAcquisitionOptions = {
911
+ mode?: CellMode;
912
+ gciCount?: number;
913
+ [key: string]: unknown;
914
+ };
960
915
  export type CellIdentityValue = {
961
916
  mcc: null | number;
962
917
  mnc: null | number;
@@ -966,6 +921,7 @@ export type CellIdentityValue = {
966
921
  earfcn: null | number;
967
922
  [key: string]: unknown;
968
923
  };
924
+ export type CellMode = "serving" | "gci" | "neighbors";
969
925
  export type CellNeighbourValue = {
970
926
  pci: number;
971
927
  earfcn: number;
@@ -984,13 +940,12 @@ export type CellReadingValue = {
984
940
  rsrq: number | "NaN" | "Infinity" | "-Infinity" | null;
985
941
  [key: string]: unknown;
986
942
  };
987
- export type CellularEnvironmentValue = {
988
- serving: CellReadingValue;
989
- rat: CellularEnvironmentValueRat;
990
- globalCells: Array<CellReadingValue>;
991
- neighbours: Array<CellNeighbourValue>;
992
- [key: string]: unknown;
993
- };
943
+ /**
944
+ * Cellular environment
945
+ *
946
+ * Coherent serving-cell identity, radio technology and signal evidence, with neighbouring or global cells when explicitly requested. Routine tracking reads serving-cell information without an extended cell search.
947
+ */
948
+ export type CellularEnvironmentValue = DeviceObservationValuesCellularEnvironment;
994
949
  export type CellularEnvironmentValueRat = "lteM" | "nbIot";
995
950
  export type ChargingAdjustmentReasonValue = "qualifying" | "atCeiling" | "poorSupply" | "inputVoltageRegulation";
996
951
  export type ChargingAllocationMemberValue = {
@@ -1026,11 +981,12 @@ export type ChargingPowerReservationValue = {
1026
981
  remainingMs: number;
1027
982
  [key: string]: unknown;
1028
983
  };
1029
- export type ChargingStatusValue = {
1030
- state: ChargingStatusValueState;
1031
- reason: ChargingStatusValueReason;
1032
- [key: string]: unknown;
1033
- };
984
+ /**
985
+ * Charging status
986
+ *
987
+ * Conflicting fresh evidence means unknown. Confirmed input absence means notCharging; any fresh charging member means charging. Full requires noncapped accepted nonempty inventory and fresh ready/full evidence for every member. Paused requires known noncharging evidence and an active resumable hold. Otherwise unknown or confirmed idle/disabled. Per-module faults and plan constraints do not overwrite the aggregate reason.
988
+ */
989
+ export type ChargingStatusValue = DeviceObservationValuesChargingStatus;
1034
990
  export type ChargingStatusValueReason = "none" | "externalPowerAbsent" | "externalPowerUnknown" | "noDiscoveredModules" | "inventoryUnknown" | "inventoryCapped" | "inconsistentEvidence" | "notReady" | "communication" | "stale" | "thermal" | "cable" | "allModulesFull" | "overcurrent" | "maintenance" | "chargerFault" | "disabled" | "hardwareIdle";
1035
991
  export type ChargingStatusValueState = "unknown" | "notCharging" | "charging" | "full" | "paused";
1036
992
  export type ChargingTransitionDetailsValue = {
@@ -1050,27 +1006,44 @@ export type Com4SimStatus = {
1050
1006
  checkedAt: string;
1051
1007
  [key: string]: unknown;
1052
1008
  };
1009
+ export type CommandAvailability = {
1010
+ definition: CommandDefinition;
1011
+ available: boolean;
1012
+ reason: null | string;
1013
+ [key: string]: unknown;
1014
+ };
1015
+ export type CommandCapabilities = {
1016
+ device: DeviceIdentity;
1017
+ firmware: null | FirmwareLteCurrent;
1018
+ commands: Array<CommandAvailability>;
1019
+ [key: string]: unknown;
1020
+ };
1053
1021
  export type CommandChoice = {
1054
1022
  value: number;
1055
1023
  label: string;
1056
1024
  [key: string]: unknown;
1057
1025
  };
1058
1026
  export type CommandDefinition = {
1059
- name: "status" | "reconcileSettings" | "disconnect" | "requestObservations" | "sample" | "cancel" | "reboot" | "identify" | "streamObservations" | "selfTest" | "switchEnvironment" | "clearEnvironment" | "listEnvironments" | "updateBattery" | "runBatteryCheck" | "requestPosition" | "enableDiagnostics";
1027
+ name: "status" | "reconcileSettings" | "requestObservations" | "sample" | "cancel" | "reboot" | "identify" | "streamObservations" | "selfTest" | "switchEnvironment" | "clearEnvironment" | "listEnvironments" | "updateBattery" | "runBatteryCheck" | "requestPosition" | "enableDiagnostics";
1060
1028
  label: string;
1061
1029
  description: string;
1062
1030
  input: CommandInput;
1063
1031
  parameters: Array<CommandParameter>;
1064
1032
  confirmationRequired?: boolean;
1033
+ acquisitionOptions?: boolean;
1065
1034
  [key: string]: unknown;
1066
1035
  };
1067
1036
  export type CommandExecution = {
1068
- accepted?: null | CommandResponseReceipt;
1069
1037
  completed?: null | CommandResponseReceipt;
1070
- phase?: CommandResponseValuePhase;
1071
1038
  [key: string]: unknown;
1072
1039
  };
1073
1040
  export type CommandInput = "arguments" | "batteryFirmware" | "enrollmentUrl" | "metrics";
1041
+ export type CommandPage = {
1042
+ items: Array<TrackerCommand>;
1043
+ nextCursor: null | string;
1044
+ readIssues?: null | Array<CommandReadIssue>;
1045
+ [key: string]: unknown;
1046
+ };
1074
1047
  export type CommandParameter = {
1075
1048
  name: string;
1076
1049
  label: string;
@@ -1081,96 +1054,58 @@ export type CommandParameter = {
1081
1054
  choices?: null | Array<CommandChoice>;
1082
1055
  [key: string]: unknown;
1083
1056
  };
1057
+ export type CommandReadIssue = {
1058
+ requestId: null | number;
1059
+ code: string;
1060
+ [key: string]: unknown;
1061
+ };
1084
1062
  export type CommandResponseReceipt = {
1085
1063
  id: string;
1086
1064
  receivedAt: string;
1087
1065
  value: CommandResponseValue;
1088
1066
  [key: string]: unknown;
1089
1067
  };
1068
+ /**
1069
+ * Command result receipt
1070
+ */
1090
1071
  export type CommandResponseValue = {
1091
1072
  protocolVersion: number;
1092
1073
  certificateId: string;
1093
1074
  requestId: number;
1094
1075
  commandId: number;
1095
- phase: CommandResponseValuePhase;
1096
1076
  result: number;
1097
- diagnosticsRemainingSeconds: number;
1098
- uptimeSeconds: number;
1099
- data: null | CommandResponseValueData;
1100
- [key: string]: unknown;
1101
- };
1102
- export type CommandResponseValueData = ({
1103
- kind: "status";
1104
- } & CommandResponseValueDataCommandResponseValueDataStatus) | ({
1105
- kind: "observations";
1106
- } & CommandResponseValueDataCommandResponseValueDataObservations) | ({
1107
- kind: "stream";
1108
- } & CommandResponseValueDataCommandResponseValueDataStream) | ({
1109
- kind: "environments";
1110
- } & CommandResponseValueDataCommandResponseValueDataEnvironments) | ({
1111
- kind: "selfTest";
1112
- } & CommandResponseValueDataCommandResponseValueDataSelfTest) | ({
1113
- kind: "sample";
1114
- } & CommandResponseValueDataCommandResponseValueDataSample) | ({
1115
- kind: "batteryCheck";
1116
- } & CommandResponseValueDataCommandResponseValueDataBatteryCheck);
1117
- export type CommandResponseValueDataCommandResponseValueDataBatteryCheck = {
1118
- kind?: "batteryCheck";
1119
- moduleCount: number;
1120
- readyMask: number;
1121
- [key: string]: unknown;
1122
- };
1123
- export type CommandResponseValueDataCommandResponseValueDataEnvironments = {
1124
- kind?: "environments";
1125
- availableCapacity: number;
1126
- environments: Array<SavedEnvironmentValue>;
1127
- [key: string]: unknown;
1128
- };
1129
- export type CommandResponseValueDataCommandResponseValueDataObservations = {
1130
- kind?: "observations";
1131
- publishedObservations: Array<string>;
1132
1077
  unavailableObservations: Array<string>;
1133
1078
  [key: string]: unknown;
1134
1079
  };
1135
- export type CommandResponseValueDataCommandResponseValueDataSample = {
1136
- kind?: "sample";
1137
- sampledMask: number;
1138
- unavailableMask: number;
1139
- timedOutMask: number;
1140
- cancelledMask: number;
1141
- failedMask: number;
1142
- [key: string]: unknown;
1143
- };
1144
- export type CommandResponseValueDataCommandResponseValueDataSelfTest = {
1145
- kind?: "selfTest";
1146
- testedMask: number;
1147
- passedMask: number;
1148
- failedMask: number;
1149
- unavailableMask: number;
1150
- busyMask: number;
1080
+ /**
1081
+ * Command result
1082
+ *
1083
+ * Terminal command outcome correlated by the enclosing request ID. Domain values are separate observations; unavailable observations name requested readings that were not delivered.
1084
+ */
1085
+ export type CommandResultValue = {
1086
+ commandId: number;
1087
+ result: number;
1088
+ unavailableObservations: Array<string>;
1151
1089
  [key: string]: unknown;
1152
1090
  };
1153
- export type CommandResponseValueDataCommandResponseValueDataStatus = {
1154
- kind?: "status";
1091
+ /**
1092
+ * command.status
1093
+ *
1094
+ * Request-scoped domain evidence emitted before its terminal command result.
1095
+ */
1096
+ export type CommandStatusValue = {
1155
1097
  connectionId: string;
1156
1098
  lastActionRequestId: number;
1157
- controllerPhase: number;
1158
1099
  activeRequestId: number;
1159
1100
  activeSourceMask: number;
1160
1101
  [key: string]: unknown;
1161
1102
  };
1162
- export type CommandResponseValueDataCommandResponseValueDataStream = {
1163
- kind?: "stream";
1164
- publishedObservations: Array<string>;
1165
- unavailableObservations: Array<string>;
1166
- capturedEvents: number;
1167
- sentEvents: number;
1168
- droppedEvents: number;
1169
- bytesSent: number;
1170
- reason: number;
1103
+ export type CommandUpdate = {
1104
+ requestId: number;
1105
+ command: TrackerCommand | null;
1106
+ readIssue: CommandReadIssue | null;
1171
1107
  [key: string]: unknown;
1172
1108
  };
1173
- export type CommandResponseValuePhase = "accepted" | "completed";
1174
1109
  export type ConfigurationApplicationState = "applied" | "pending" | "rejected";
1175
1110
  export type ConnectionApplicationStatus = {
1176
1111
  state: ConfigurationApplicationState;
@@ -1180,23 +1115,72 @@ export type ConnectionApplicationStatus = {
1180
1115
  error: number;
1181
1116
  [key: string]: unknown;
1182
1117
  };
1183
- export type ConnectionEventValue = {
1184
- state: ConnectionEventValueState;
1118
+ /**
1119
+ * Connection event
1120
+ *
1121
+ * Broker-observed connectivity complements device observations and can report an offline tracker.
1122
+ */
1123
+ export type ConnectionEventValue = unknown & {
1124
+ state: "connected" | "disconnected";
1185
1125
  sessionId: string;
1186
- reason: null | string;
1126
+ reason: string | null;
1187
1127
  eventVersion: string;
1188
- clientInitiatedDisconnect: null | boolean;
1128
+ clientInitiatedDisconnect: boolean | null;
1189
1129
  certificateId: string;
1190
1130
  [key: string]: unknown;
1191
1131
  };
1192
1132
  export type ConnectionEventValueState = "connected" | "disconnected";
1133
+ /**
1134
+ * Connection operation failed
1135
+ *
1136
+ * One coherent connection.operationFailed fact.
1137
+ */
1193
1138
  export type ConnectionOperationFailedValue = {
1194
- operation: ConnectionOperationFailedValueOperation;
1195
- error: OperationErrorValue;
1196
- rawReason: null | number;
1139
+ operation: "registration" | "dns" | "tls" | "mqtt" | "subscription" | "receipt";
1140
+ error: DeviceObservationValuesOperationError;
1141
+ rawReason: number | null;
1197
1142
  [key: string]: unknown;
1198
1143
  };
1199
1144
  export type ConnectionOperationFailedValueOperation = "registration" | "dns" | "tls" | "mqtt" | "subscription" | "receipt";
1145
+ /**
1146
+ * Connection runtime status
1147
+ *
1148
+ * Passive snapshot of saturating since-boot activity. MQTT reconnect attempts are admitted opens after a successful MQTT session this boot; LTE attempts are admitted attachment operations. Modem recoveries exclude provisioning and shutdown. Notification failures count failed socket callback registrations; fallback waits count bounded polling waits. Mode describes the current socket, and last error remains until callback registration succeeds. Capturing this observation performs no network operation.
1149
+ */
1150
+ export type ConnectionRuntimeStatusValue = {
1151
+ mqttReconnectAttempts: number;
1152
+ lteAttachAttempts: number;
1153
+ modemOfflineRecoveries: number;
1154
+ notificationMode: "disconnected" | "callback" | "polling";
1155
+ notificationFailures: number;
1156
+ fallbackWaits: number;
1157
+ lastNotificationError: number;
1158
+ [key: string]: unknown;
1159
+ };
1160
+ export type ConnectionRuntimeStatusValueNotificationMode = "disconnected" | "callback" | "polling";
1161
+ /**
1162
+ * connection.savedEnvironments
1163
+ *
1164
+ * Request-scoped domain evidence emitted before its terminal command result.
1165
+ */
1166
+ export type ConnectionSavedEnvironmentsValue = {
1167
+ availableCapacity: number;
1168
+ environments: Array<DeviceObservationValuesSavedEnvironment>;
1169
+ [key: string]: unknown;
1170
+ };
1171
+ /**
1172
+ * Controller wake counts
1173
+ *
1174
+ * Saturating since-boot dispatcher activity from waits with a nonzero requested duration. Delivered reasons coalesce and one wait may increment multiple reasons; timeout counts waits that return no reason. Zero-duration probes are excluded. These counts are not physical interrupts, CPU sleep entries or energy measurements. Capturing this observation schedules no activity.
1175
+ */
1176
+ export type ControllerWakeCountsValue = {
1177
+ event: number;
1178
+ command: number;
1179
+ io: number;
1180
+ sensor: number;
1181
+ timeout: number;
1182
+ [key: string]: unknown;
1183
+ };
1200
1184
  export type CoordinatesValue = {
1201
1185
  latitude: number | "NaN" | "Infinity" | "-Infinity";
1202
1186
  longitude: number | "NaN" | "Infinity" | "-Infinity";
@@ -1490,10 +1474,6 @@ export type CurrentObservation = ({
1490
1474
  } & CurrentObservationSystemBootedCurrent) | ({
1491
1475
  type: "wifi.scanCompleted";
1492
1476
  } & CurrentObservationWifiScanCompletedCurrent) | ({
1493
- type: "work.completed";
1494
- } & CurrentObservationWorkCompletedCurrent) | ({
1495
- type: "workflow.execution";
1496
- } & CurrentObservationWorkflowExecutionCurrent) | ({
1497
1477
  type: "battery.module.chargeCompleted";
1498
1478
  } & CurrentObservationBatteryModuleChargeCompletedCurrent) | ({
1499
1479
  type: "battery.module.chargeRested";
@@ -1505,7 +1485,11 @@ export type CurrentObservation = ({
1505
1485
  type: "battery.updateHealth";
1506
1486
  } & CurrentObservationBatteryUpdateHealthCurrent) | ({
1507
1487
  type: "battery.charging.allocations";
1508
- } & CurrentObservationBatteryChargingAllocationsCurrent);
1488
+ } & CurrentObservationBatteryChargingAllocationsCurrent) | ({
1489
+ type: "connection.runtimeStatus";
1490
+ } & CurrentObservationConnectionRuntimeStatusCurrent) | ({
1491
+ type: "controller.wakeCounts";
1492
+ } & CurrentObservationControllerWakeCountsCurrent);
1509
1493
  export type CurrentObservationAgnssCompletedCurrent = {
1510
1494
  type: "agnss.completed";
1511
1495
  /**
@@ -2308,6 +2292,29 @@ export type CurrentObservationConnectionReportsCurrent = {
2308
2292
  receivedAt: string;
2309
2293
  [key: string]: unknown;
2310
2294
  };
2295
+ export type CurrentObservationConnectionRuntimeStatusCurrent = {
2296
+ type: "connection.runtimeStatus";
2297
+ /**
2298
+ * Connection runtime status
2299
+ *
2300
+ * Passive snapshot of saturating since-boot activity. MQTT reconnect attempts are admitted opens after a successful MQTT session this boot; LTE attempts are admitted attachment operations. Modem recoveries exclude provisioning and shutdown. Notification failures count failed socket callback registrations; fallback waits count bounded polling waits. Mode describes the current socket, and last error remains until callback registration succeeds. Capturing this observation performs no network operation.
2301
+ */
2302
+ value: {
2303
+ mqttReconnectAttempts: number;
2304
+ lteAttachAttempts: number;
2305
+ modemOfflineRecoveries: number;
2306
+ notificationMode: "disconnected" | "callback" | "polling";
2307
+ notificationFailures: number;
2308
+ fallbackWaits: number;
2309
+ lastNotificationError: number;
2310
+ [key: string]: unknown;
2311
+ };
2312
+ deviceId: string;
2313
+ sourceObservationId: string;
2314
+ measuredAt: string;
2315
+ receivedAt: string;
2316
+ [key: string]: unknown;
2317
+ };
2311
2318
  export type CurrentObservationConnectionRxPayloadBytesCurrent = {
2312
2319
  type: "connection.rxPayloadBytes";
2313
2320
  /**
@@ -2420,6 +2427,27 @@ export type CurrentObservationConnectionTxPayloadBytesCurrent = {
2420
2427
  receivedAt: string;
2421
2428
  [key: string]: unknown;
2422
2429
  };
2430
+ export type CurrentObservationControllerWakeCountsCurrent = {
2431
+ type: "controller.wakeCounts";
2432
+ /**
2433
+ * Controller wake counts
2434
+ *
2435
+ * Saturating since-boot dispatcher activity from waits with a nonzero requested duration. Delivered reasons coalesce and one wait may increment multiple reasons; timeout counts waits that return no reason. Zero-duration probes are excluded. These counts are not physical interrupts, CPU sleep entries or energy measurements. Capturing this observation schedules no activity.
2436
+ */
2437
+ value: {
2438
+ event: number;
2439
+ command: number;
2440
+ io: number;
2441
+ sensor: number;
2442
+ timeout: number;
2443
+ [key: string]: unknown;
2444
+ };
2445
+ deviceId: string;
2446
+ sourceObservationId: string;
2447
+ measuredAt: string;
2448
+ receivedAt: string;
2449
+ [key: string]: unknown;
2450
+ };
2423
2451
  export type CurrentObservationDeviceBuildFingerprintCurrent = {
2424
2452
  type: "device.buildFingerprint";
2425
2453
  /**
@@ -3324,7 +3352,6 @@ export type CurrentObservationOutboxOccupancyCurrent = {
3324
3352
  capacityBytes: number;
3325
3353
  count: number;
3326
3354
  urgentCount: number;
3327
- existingOnlyCount: number;
3328
3355
  externalOnlyCount: number;
3329
3356
  oldestPendingAgeMs: number | null;
3330
3357
  [key: string]: unknown;
@@ -3807,67 +3834,33 @@ export type CurrentObservationWifiScanCompletedCurrent = {
3807
3834
  receivedAt: string;
3808
3835
  [key: string]: unknown;
3809
3836
  };
3810
- export type CurrentObservationWorkCompletedCurrent = {
3811
- type: "work.completed";
3812
- /**
3813
- * Work completed
3814
- *
3815
- * One operation outcome and its interval accounting; not a replacement for independently selectable since-boot totals.
3816
- */
3817
- value: {
3818
- completedCount: number;
3819
- trigger: "boot" | "timer" | "movement" | "command";
3820
- outcome: DeviceObservationValuesOperationOutcome;
3821
- elapsedMs: number;
3822
- activeMs: number;
3823
- activityMs: DeviceObservationValuesActivityDurations;
3824
- activityEntries: DeviceObservationValuesActivityEntries;
3825
- recoveries: DeviceObservationValuesRecoveryCounts;
3826
- saturated: boolean;
3827
- [key: string]: unknown;
3828
- };
3829
- deviceId: string;
3830
- sourceObservationId: string;
3831
- measuredAt: string;
3832
- receivedAt: string;
3833
- [key: string]: unknown;
3834
- };
3835
- export type CurrentObservationWorkflowExecutionCurrent = {
3836
- type: "workflow.execution";
3837
- /**
3838
- * Workflow execution
3839
- *
3840
- * Passive tracking workflow and service execution evidence. Offline traces retain their original timestamps and do not create connection demand.
3841
- */
3842
- value: {
3843
- workflowVersion: number;
3844
- state: string;
3845
- owner: "workflow" | "command" | "update" | "recovery" | "shutdown" | "fault" | "settings" | "charging" | "ble" | "network";
3846
- phase: "entered" | "completed" | "cancelled" | "ownerChanged" | "snapshot";
3847
- outcome: "done" | "unavailable" | "failed" | "timeout" | "cancelled" | null;
3848
- durationMs: number | null;
3849
- error: number | null;
3850
- waitReason: "resource" | "command" | "update" | "configuration" | "rest" | "network" | null;
3851
- operation: "capture" | "mqttOpen" | "publish" | "modemOnline" | "modemEdrx" | "modemOffline" | "disconnectMqtt" | "prepareConnection" | "connect" | null;
3852
- [key: string]: unknown;
3853
- };
3854
- deviceId: string;
3855
- sourceObservationId: string;
3856
- measuredAt: string;
3857
- receivedAt: string;
3858
- [key: string]: unknown;
3859
- };
3860
3837
  export type CustomerFirmwareReportOutcome = "transferFailed" | "targetVersionObserved";
3861
3838
  export type DenylistChange = {
3862
3839
  requestId: string;
3863
3840
  isBlacklisted: boolean;
3864
3841
  };
3842
+ export type DeviceConnectivity = {
3843
+ connected: boolean;
3844
+ checkedAt: string;
3845
+ [key: string]: unknown;
3846
+ };
3847
+ /**
3848
+ * Device diagnostic event
3849
+ *
3850
+ * Requested engineering log evidence, not an automatic second operational publication or an event-sequence subject.
3851
+ */
3865
3852
  export type DeviceDiagnosticEventValue = {
3866
3853
  code: number;
3867
3854
  arguments: Array<number>;
3868
3855
  sequence: number;
3869
3856
  [key: string]: unknown;
3870
3857
  };
3858
+ export type DeviceIdentity = {
3859
+ deviceId: string;
3860
+ inventoryId: string;
3861
+ hardwareGeneration: number;
3862
+ [key: string]: unknown;
3863
+ };
3871
3864
  export type DeviceObservationValues = {
3872
3865
  /**
3873
3866
  * Agnss completed
@@ -4702,7 +4695,6 @@ export type DeviceObservationValues = {
4702
4695
  capacityBytes: number;
4703
4696
  count: number;
4704
4697
  urgentCount: number;
4705
- existingOnlyCount: number;
4706
4698
  externalOnlyCount: number;
4707
4699
  oldestPendingAgeMs: number | null;
4708
4700
  [key: string]: unknown;
@@ -4925,40 +4917,6 @@ export type DeviceObservationValues = {
4925
4917
  * One coherent wifi.scanCompleted fact.
4926
4918
  */
4927
4919
  "wifi.scanCompleted"?: DeviceObservationValuesScanCompleted;
4928
- /**
4929
- * Work completed
4930
- *
4931
- * One operation outcome and its interval accounting; not a replacement for independently selectable since-boot totals.
4932
- */
4933
- "work.completed"?: {
4934
- completedCount: number;
4935
- trigger: "boot" | "timer" | "movement" | "command";
4936
- outcome: DeviceObservationValuesOperationOutcome;
4937
- elapsedMs: number;
4938
- activeMs: number;
4939
- activityMs: DeviceObservationValuesActivityDurations;
4940
- activityEntries: DeviceObservationValuesActivityEntries;
4941
- recoveries: DeviceObservationValuesRecoveryCounts;
4942
- saturated: boolean;
4943
- [key: string]: unknown;
4944
- };
4945
- /**
4946
- * Workflow execution
4947
- *
4948
- * Passive tracking workflow and service execution evidence. Offline traces retain their original timestamps and do not create connection demand.
4949
- */
4950
- "workflow.execution"?: {
4951
- workflowVersion: number;
4952
- state: string;
4953
- owner: "workflow" | "command" | "update" | "recovery" | "shutdown" | "fault" | "settings" | "charging" | "ble" | "network";
4954
- phase: "entered" | "completed" | "cancelled" | "ownerChanged" | "snapshot";
4955
- outcome: "done" | "unavailable" | "failed" | "timeout" | "cancelled" | null;
4956
- durationMs: number | null;
4957
- error: number | null;
4958
- waitReason: "resource" | "command" | "update" | "configuration" | "rest" | "network" | null;
4959
- operation: "capture" | "mqttOpen" | "publish" | "modemOnline" | "modemEdrx" | "modemOffline" | "disconnectMqtt" | "prepareConnection" | "connect" | null;
4960
- [key: string]: unknown;
4961
- };
4962
4920
  /**
4963
4921
  * Battery module charge completed
4964
4922
  *
@@ -5039,6 +4997,118 @@ export type DeviceObservationValues = {
5039
4997
  reservations: Array<DeviceObservationValuesChargingPowerReservation> | null;
5040
4998
  [key: string]: unknown;
5041
4999
  };
5000
+ /**
5001
+ * Connection runtime status
5002
+ *
5003
+ * Passive snapshot of saturating since-boot activity. MQTT reconnect attempts are admitted opens after a successful MQTT session this boot; LTE attempts are admitted attachment operations. Modem recoveries exclude provisioning and shutdown. Notification failures count failed socket callback registrations; fallback waits count bounded polling waits. Mode describes the current socket, and last error remains until callback registration succeeds. Capturing this observation performs no network operation.
5004
+ */
5005
+ "connection.runtimeStatus"?: {
5006
+ mqttReconnectAttempts: number;
5007
+ lteAttachAttempts: number;
5008
+ modemOfflineRecoveries: number;
5009
+ notificationMode: "disconnected" | "callback" | "polling";
5010
+ notificationFailures: number;
5011
+ fallbackWaits: number;
5012
+ lastNotificationError: number;
5013
+ [key: string]: unknown;
5014
+ };
5015
+ /**
5016
+ * Controller wake counts
5017
+ *
5018
+ * Saturating since-boot dispatcher activity from waits with a nonzero requested duration. Delivered reasons coalesce and one wait may increment multiple reasons; timeout counts waits that return no reason. Zero-duration probes are excluded. These counts are not physical interrupts, CPU sleep entries or energy measurements. Capturing this observation schedules no activity.
5019
+ */
5020
+ "controller.wakeCounts"?: {
5021
+ event: number;
5022
+ command: number;
5023
+ io: number;
5024
+ sensor: number;
5025
+ timeout: number;
5026
+ [key: string]: unknown;
5027
+ };
5028
+ /**
5029
+ * Command result
5030
+ *
5031
+ * Terminal command outcome correlated by the enclosing request ID. Domain values are separate observations; unavailable observations name requested readings that were not delivered.
5032
+ */
5033
+ "command.result"?: {
5034
+ commandId: number;
5035
+ result: number;
5036
+ unavailableObservations: Array<string>;
5037
+ [key: string]: unknown;
5038
+ };
5039
+ /**
5040
+ * command.status
5041
+ *
5042
+ * Request-scoped domain evidence emitted before its terminal command result.
5043
+ */
5044
+ "command.status"?: {
5045
+ connectionId: string;
5046
+ lastActionRequestId: number;
5047
+ activeRequestId: number;
5048
+ activeSourceMask: number;
5049
+ [key: string]: unknown;
5050
+ };
5051
+ /**
5052
+ * connection.savedEnvironments
5053
+ *
5054
+ * Request-scoped domain evidence emitted before its terminal command result.
5055
+ */
5056
+ "connection.savedEnvironments"?: {
5057
+ availableCapacity: number;
5058
+ environments: Array<DeviceObservationValuesSavedEnvironment>;
5059
+ [key: string]: unknown;
5060
+ };
5061
+ /**
5062
+ * acquisition.completed
5063
+ *
5064
+ * Request-scoped domain evidence emitted before its terminal command result.
5065
+ */
5066
+ "acquisition.completed"?: {
5067
+ sampledMask: number;
5068
+ unavailableMask: number;
5069
+ timedOutMask: number;
5070
+ cancelledMask: number;
5071
+ failedMask: number;
5072
+ [key: string]: unknown;
5073
+ };
5074
+ /**
5075
+ * device.selfTestCompleted
5076
+ *
5077
+ * Request-scoped domain evidence emitted before its terminal command result.
5078
+ */
5079
+ "device.selfTestCompleted"?: {
5080
+ testedMask: number;
5081
+ passedMask: number;
5082
+ failedMask: number;
5083
+ unavailableMask: number;
5084
+ busyMask: number;
5085
+ [key: string]: unknown;
5086
+ };
5087
+ /**
5088
+ * battery.checkResult
5089
+ *
5090
+ * Request-scoped domain evidence emitted before its terminal command result.
5091
+ */
5092
+ "battery.checkResult"?: {
5093
+ moduleCount: number;
5094
+ readyMask: number;
5095
+ [key: string]: unknown;
5096
+ };
5097
+ /**
5098
+ * diagnostics.streamCompleted
5099
+ *
5100
+ * Request-scoped domain evidence emitted before its terminal command result.
5101
+ */
5102
+ "diagnostics.streamCompleted"?: {
5103
+ publishedObservations: Array<string>;
5104
+ unavailableObservations: Array<string>;
5105
+ capturedEvents: number;
5106
+ sentEvents: number;
5107
+ droppedEvents: number;
5108
+ bytesSent: number;
5109
+ reason: number;
5110
+ [key: string]: unknown;
5111
+ };
5042
5112
  [key: string]: unknown;
5043
5113
  };
5044
5114
  export type DeviceObservationValuesActivityDurations = {
@@ -5284,7 +5354,6 @@ export type DeviceObservationValuesRegisterReading = {
5284
5354
  };
5285
5355
  export type DeviceObservationValuesResetContext = {
5286
5356
  sequence: number;
5287
- controllerPhase: number;
5288
5357
  operation: number;
5289
5358
  error: number;
5290
5359
  errorOperation: number;
@@ -5324,6 +5393,19 @@ export type DeviceObservationValuesWifiAccessPoint = {
5324
5393
  channel: number | null;
5325
5394
  [key: string]: unknown;
5326
5395
  };
5396
+ /**
5397
+ * device.selfTestCompleted
5398
+ *
5399
+ * Request-scoped domain evidence emitted before its terminal command result.
5400
+ */
5401
+ export type DeviceSelfTestCompletedValue = {
5402
+ testedMask: number;
5403
+ passedMask: number;
5404
+ failedMask: number;
5405
+ unavailableMask: number;
5406
+ busyMask: number;
5407
+ [key: string]: unknown;
5408
+ };
5327
5409
  export type DeviceSettings = {
5328
5410
  /**
5329
5411
  * Battery measurement interval
@@ -5481,16 +5563,10 @@ export type DeviceSettings = {
5481
5563
  * Maximum sum of programmed input-current limits across charging modules, including single-module charging and weak-supply fallback. The per-module ceiling also applies. Unlimited input is capped to a finite limit within this budget.
5482
5564
  */
5483
5565
  chargingTotalInputLimitMilliamps?: number;
5484
- /**
5485
- * Workflow debug tracing
5486
- *
5487
- * Record bounded tracking workflow and service execution traces. Traces use an available connection and do not keep LTE awake.
5488
- */
5489
- workflowDebugEnabled?: boolean;
5490
5566
  /**
5491
5567
  * I2C idle power saving
5492
5568
  *
5493
- * Suspend the LTE I2C controller between transactions. Default off. Changes apply at an idle bus boundary without interrupting active operations; motion detection remains enabled.
5569
+ * Suspend the LTE I2C controller between transactions. Enabled by default. Changes apply at an idle bus boundary without interrupting active operations; motion detection remains enabled.
5494
5570
  */
5495
5571
  i2cIdlePowerSavingEnabled?: boolean;
5496
5572
  /**
@@ -5512,11 +5588,11 @@ export type DeviceSettings = {
5512
5588
  */
5513
5589
  bleAdvertisingIntervalUnits?: number;
5514
5590
  /**
5515
- * Connected report interval
5591
+ * Report interval on external power
5516
5592
  *
5517
- * Period between battery and status reports while the tracker maintains its connection. These reports do not initiate positioning scans.
5593
+ * Interval between periodic status reports while external power is confirmed. Zero disables periodic reports on external power. Does not control report contents, positioning requests, event reports or local battery safety checks.
5518
5594
  */
5519
- connectedReportIntervalSeconds?: number;
5595
+ reportIntervalOnExternalPowerSeconds?: number;
5520
5596
  /**
5521
5597
  * Movement cooldown
5522
5598
  *
@@ -5662,14 +5738,29 @@ export type DeviceSettings = {
5662
5738
  */
5663
5739
  chargingStatusMaxAgeSeconds?: number;
5664
5740
  /**
5665
- * Automatic work reporting
5741
+ * Report interval on battery
5666
5742
  *
5667
- * Upload work.completed cycle outcomes and interval accounting on existing connections. Off by default. automaticDiagnosticsPower controls eligible power sources. Cached on-demand observations remain available when off; workflowDebugEnabled independently controls detailed step traces.
5743
+ * Interval between periodic status reports while battery power is confirmed. Zero disables periodic reports on battery (the default). Does not control report contents, positioning requests, event reports or local battery safety checks.
5668
5744
  */
5669
- workReportingEnabled?: boolean;
5745
+ reportIntervalOnBatterySeconds?: number;
5670
5746
  };
5671
5747
  export type DeviceSettingsAutomaticDiagnosticsPower = "any" | "external";
5672
5748
  export type DeviceSettingsWifiScanType = "active" | "passive";
5749
+ /**
5750
+ * diagnostics.streamCompleted
5751
+ *
5752
+ * Request-scoped domain evidence emitted before its terminal command result.
5753
+ */
5754
+ export type DiagnosticsStreamCompletedValue = {
5755
+ publishedObservations: Array<string>;
5756
+ unavailableObservations: Array<string>;
5757
+ capturedEvents: number;
5758
+ sentEvents: number;
5759
+ droppedEvents: number;
5760
+ bytesSent: number;
5761
+ reason: number;
5762
+ [key: string]: unknown;
5763
+ };
5673
5764
  export type DirectoryProfile = {
5674
5765
  id: string;
5675
5766
  email: null | string;
@@ -5683,17 +5774,22 @@ export type DocumentReadIssue = {
5683
5774
  code: string;
5684
5775
  [key: string]: unknown;
5685
5776
  };
5686
- export type ExternalPowerValue = "unknown" | "disconnected" | "connected";
5777
+ /**
5778
+ * External power
5779
+ *
5780
+ * External power connection state reported by the tracker.
5781
+ */
5782
+ export type ExternalPowerValue = DeviceObservationValuesExternalPower;
5687
5783
  export type FactoryResetReport = {
5688
5784
  requestId: string;
5689
5785
  trackerCreatedAt: string;
5690
5786
  };
5691
- export type FaultValue = {
5692
- sequence: number;
5693
- reason: number;
5694
- pc: number;
5695
- [key: string]: unknown;
5696
- };
5787
+ /**
5788
+ * Health last modem fault
5789
+ *
5790
+ * Health, worker and heap evidence is useful for support; counter reset scope and units must be explicit.
5791
+ */
5792
+ export type FaultValue = DeviceObservationValuesFault;
5697
5793
  export type FavoriteData = {
5698
5794
  deviceId?: null | string;
5699
5795
  comment?: null | string;
@@ -5723,6 +5819,16 @@ export type FirmwareAvailability = {
5723
5819
  [key: string]: unknown;
5724
5820
  };
5725
5821
  export type FirmwareBlockReason = "subscriptionRequired" | "accountRestricted" | "temporarilyPaused" | "repeatedFailures" | "locationRequired" | "outsideSupportedArea" | "installedVersionUnknown" | "appUpdateRequired";
5822
+ export type FirmwareCancellation = {
5823
+ requestId: string;
5824
+ expectedExecutionVersion: number;
5825
+ };
5826
+ export type FirmwareExecution = {
5827
+ status: string;
5828
+ version: null | number;
5829
+ executionNumber: null | number;
5830
+ [key: string]: unknown;
5831
+ };
5726
5832
  export type FirmwareLteCurrent = {
5727
5833
  /**
5728
5834
  * Cellular firmware version
@@ -5736,6 +5842,29 @@ export type FirmwareLteCurrent = {
5736
5842
  receivedAt: string;
5737
5843
  [key: string]: unknown;
5738
5844
  };
5845
+ export type FirmwareReceipt = {
5846
+ deviceId: string;
5847
+ requestId: string;
5848
+ releaseId: string;
5849
+ chip: string;
5850
+ targetVersion: string;
5851
+ requestedBy: string;
5852
+ requestedAt: string;
5853
+ jobAcceptedAt: null | string;
5854
+ execution: FirmwareExecution;
5855
+ expiresAt?: null | string;
5856
+ attemptLimit?: null | number;
5857
+ [key: string]: unknown;
5858
+ };
5859
+ export type FirmwareRelease = {
5860
+ id: string;
5861
+ chip: string;
5862
+ targetVersion: string;
5863
+ size: number;
5864
+ sha256: string;
5865
+ notes?: null | string;
5866
+ [key: string]: unknown;
5867
+ };
5739
5868
  export type FirmwareReleaseState = "available" | "current" | "unsupported" | "blocked";
5740
5869
  export type FirmwareTransfer = {
5741
5870
  imageUrl: string;
@@ -5745,10 +5874,15 @@ export type FirmwareTransfer = {
5745
5874
  rebootTimeoutMs: number;
5746
5875
  [key: string]: unknown;
5747
5876
  };
5877
+ /**
5878
+ * Firmware update progress
5879
+ *
5880
+ * Progress is useful but never establishes installation success; Jobs remains the terminal-result authority.
5881
+ */
5748
5882
  export type FirmwareUpdateProgressValue = {
5749
5883
  jobId: string;
5750
- chip: FirmwareUpdateProgressValueChip;
5751
- phase: FirmwareUpdateProgressValuePhase;
5884
+ chip: "lte" | "battery" | "esp" | "modem";
5885
+ phase: "downloading" | "verifying" | "rebooting";
5752
5886
  bytesDownloaded: number;
5753
5887
  totalBytes: number;
5754
5888
  execution: number;
@@ -5756,13 +5890,23 @@ export type FirmwareUpdateProgressValue = {
5756
5890
  };
5757
5891
  export type FirmwareUpdateProgressValueChip = "lte" | "battery" | "esp" | "modem";
5758
5892
  export type FirmwareUpdateProgressValuePhase = "downloading" | "verifying" | "rebooting";
5893
+ export type FirmwareUpdateRequest = {
5894
+ requestId: string;
5895
+ expectedInventoryId: string;
5896
+ releaseId: string;
5897
+ };
5898
+ /**
5899
+ * Firmware update result
5900
+ *
5901
+ * One coherent firmware.updateResult fact.
5902
+ */
5759
5903
  export type FirmwareUpdateResultValue = {
5760
5904
  jobId: string;
5761
5905
  execution: number;
5762
- chip: FirmwareUpdateResultValueChip;
5763
- target: string;
5764
- outcome: FirmwareUpdateResultValueOutcome;
5765
- error: null | OperationErrorValue;
5906
+ chip: "lte" | "battery" | "esp" | "modem";
5907
+ target: DeviceObservationValuesVersion;
5908
+ outcome: "succeeded" | "failed" | "cancelled";
5909
+ error: DeviceObservationValuesOperationError | null;
5766
5910
  [key: string]: unknown;
5767
5911
  };
5768
5912
  export type FirmwareUpdateResultValueChip = "lte" | "battery" | "esp" | "modem";
@@ -5785,13 +5929,23 @@ export type GaugeControlValue = {
5785
5929
  voltageEstimatorActive: boolean;
5786
5930
  [key: string]: unknown;
5787
5931
  };
5932
+ /**
5933
+ * Gauge module latched faults
5934
+ *
5935
+ * Sticky history since the current module binding, distinct from flags currently present in the control register.
5936
+ */
5788
5937
  export type GaugeModuleLatchedFaultsValue = {
5789
5938
  batteryFailureSeen: boolean;
5790
5939
  powerOnResetSeen: boolean;
5791
5940
  [key: string]: unknown;
5792
5941
  };
5942
+ /**
5943
+ * Gauge module status
5944
+ *
5945
+ * Validated gauge health/conversion evidence; the conversion register is not an unbounded boot counter. Configured gaugeMode remains separately selectable.
5946
+ */
5793
5947
  export type GaugeModuleStatusValue = {
5794
- control: GaugeControlValue;
5948
+ control: DeviceObservationValuesGaugeControl;
5795
5949
  conversionCounter: number;
5796
5950
  [key: string]: unknown;
5797
5951
  };
@@ -5804,13 +5958,25 @@ export type Gen2FirmwareRelease = {
5804
5958
  notes: string;
5805
5959
  [key: string]: unknown;
5806
5960
  };
5807
- export type GeolocationFixValue = {
5808
- latitude: number | "NaN" | "Infinity" | "-Infinity";
5809
- longitude: number | "NaN" | "Infinity" | "-Infinity";
5810
- accuracy: number | "NaN" | "Infinity" | "-Infinity";
5811
- sourceObservationId: string;
5812
- [key: string]: unknown;
5813
- };
5961
+ /**
5962
+ * Position wifi fix
5963
+ *
5964
+ * Resolved locations and lookup failures are server-produced evidence; distinguish them from raw device scans.
5965
+ */
5966
+ export type GeolocationFixValue = DeviceObservationValuesGeolocationFix;
5967
+ export type GnssAcquisitionOptions = {
5968
+ assistance?: boolean;
5969
+ powerMode?: GnssPowerMode;
5970
+ priorityMode?: boolean;
5971
+ lowAccuracy?: boolean;
5972
+ targetAccuracyMeters?: number;
5973
+ consecutiveFixes?: number;
5974
+ visibilityEnabled?: boolean;
5975
+ visibilityExecutionSeconds?: number;
5976
+ visibilityMinSatellites?: number;
5977
+ [key: string]: unknown;
5978
+ };
5979
+ export type GnssPowerMode = "disabled" | "performance" | "power";
5814
5980
  export type GnssPvtSampleValue = {
5815
5981
  ageMs: number;
5816
5982
  receiverExecutionMs: number;
@@ -5820,26 +5986,41 @@ export type GnssPvtSampleValue = {
5820
5986
  accuracy: number | "NaN" | "Infinity" | "-Infinity" | null;
5821
5987
  [key: string]: unknown;
5822
5988
  };
5989
+ /**
5990
+ * Gnss search completed
5991
+ *
5992
+ * Logical search result, observed receiver execution across assistance restarts, peaks and same-search references. Unknown receiver execution is null; reads and retries preserve the original evidence.
5993
+ */
5823
5994
  export type GnssSearchCompletedValue = {
5824
- outcome: OperationOutcomeValue;
5825
- error: null | OperationErrorValue;
5995
+ outcome: DeviceObservationValuesOperationOutcome;
5996
+ error: DeviceObservationValuesOperationError | null;
5826
5997
  durationMs: number;
5827
- receiverExecutionMs: null | number;
5828
- stopReason: GnssSearchCompletedValueStopReason;
5829
- peakSatellites: null | number;
5830
- peakSnr: number | "NaN" | "Infinity" | "-Infinity" | null;
5998
+ receiverExecutionMs: number | null;
5999
+ stopReason: "fix" | "timeout" | "visibility" | "blocked" | "cancelled" | "budgetExhausted" | "error";
6000
+ peakSatellites: number | null;
6001
+ peakSnr: number | null;
5831
6002
  blockedCount: number;
5832
- visibility: GnssSearchCompletedValueVisibility;
5833
- assistanceToFixMs: null | number;
6003
+ visibility: "unknown" | "visible" | "poor";
6004
+ assistanceToFixMs: number | null;
5834
6005
  [key: string]: unknown;
5835
6006
  };
5836
6007
  export type GnssSearchCompletedValueStopReason = "fix" | "timeout" | "visibility" | "blocked" | "cancelled" | "budgetExhausted" | "error";
5837
6008
  export type GnssSearchCompletedValueVisibility = "unknown" | "visible" | "poor";
6009
+ /**
6010
+ * Gnss search trace
6011
+ *
6012
+ * Latest bounded window of distinct PVT readings from one logical search. Original uptime, cumulative observed receiver execution, flags, healthy satellites, mean C/N0 and valid-fix accuracy are captured together; omissions count evicted older samples. Reading never starts GNSS.
6013
+ */
5838
6014
  export type GnssSearchTraceValue = {
5839
- samples: Array<GnssPvtSampleValue>;
6015
+ samples: Array<DeviceObservationValuesGnssPvtSample>;
5840
6016
  omitted: number;
5841
6017
  [key: string]: unknown;
5842
6018
  };
6019
+ /**
6020
+ * Health boot history status
6021
+ *
6022
+ * This is boot/fault checkpoint knowledge, not outbox persistence. Boot/fault totals remain independently selectable and explicitly best-effort.
6023
+ */
5843
6024
  export type HealthBootHistoryStatusValue = {
5844
6025
  durable: boolean;
5845
6026
  reset: boolean;
@@ -5933,10 +6114,15 @@ export type LegacyLteUpgradeResult = {
5933
6114
  targetVersion: string;
5934
6115
  [key: string]: unknown;
5935
6116
  };
6117
+ /**
6118
+ * Location lookup completed
6119
+ *
6120
+ * One coherent location.lookupCompleted fact.
6121
+ */
5936
6122
  export type LocationLookupCompletedValue = {
5937
- outcome: OperationOutcomeValue;
5938
- error: null | OperationErrorValue;
5939
- sourceObservationId: string;
6123
+ outcome: DeviceObservationValuesOperationOutcome;
6124
+ error: DeviceObservationValuesOperationError | null;
6125
+ sourceObservationId: DeviceObservationValuesObservationId;
5940
6126
  [key: string]: unknown;
5941
6127
  };
5942
6128
  export type LocationObservation = {
@@ -5955,9 +6141,14 @@ export type LocationSource = "BLE" | "CBT";
5955
6141
  export type MembershipName = {
5956
6142
  displayName: string;
5957
6143
  };
6144
+ /**
6145
+ * Modem energy query completed
6146
+ *
6147
+ * The estimate and its context must be one result. It is not a calibrated whole-tracker battery-energy measurement.
6148
+ */
5958
6149
  export type ModemEnergyQueryCompletedValue = {
5959
6150
  result: number;
5960
- energy: null | ModemEnergyValue;
6151
+ energy: DeviceObservationValuesModemEnergy | null;
5961
6152
  [key: string]: unknown;
5962
6153
  };
5963
6154
  export type ModemEnergyValue = {
@@ -5983,31 +6174,66 @@ export type ModuleTimingValue = {
5983
6174
  export type MovementAlertPreference = {
5984
6175
  enabled: boolean;
5985
6176
  };
6177
+ /**
6178
+ * Movement detected
6179
+ *
6180
+ * An occurrence is different from a current-state snapshot; operational events need useful typed context.
6181
+ */
5986
6182
  export type MovementDetectedValue = {
5987
6183
  [key: string]: unknown;
5988
6184
  };
6185
+ /**
6186
+ * Network edrx grant
6187
+ *
6188
+ * One coherent network.edrxGrant fact.
6189
+ */
5989
6190
  export type NetworkEdrxGrantValue = {
5990
- rat: NetworkEdrxGrantValueRat;
5991
- cycleMs: null | number;
5992
- pagingWindowMs: null | number;
6191
+ rat: "lteM" | "nbIot";
6192
+ cycleMs: number | null;
6193
+ pagingWindowMs: number | null;
5993
6194
  [key: string]: unknown;
5994
6195
  };
5995
6196
  export type NetworkEdrxGrantValueRat = "lteM" | "nbIot";
6197
+ /**
6198
+ * Network psm grant
6199
+ *
6200
+ * One coherent network.psmGrant fact.
6201
+ */
5996
6202
  export type NetworkPsmGrantValue = {
5997
- tauSeconds: null | number;
5998
- activeSeconds: null | number;
6203
+ tauSeconds: number | null;
6204
+ activeSeconds: number | null;
5999
6205
  [key: string]: unknown;
6000
6206
  };
6207
+ /**
6208
+ * Cellular access technology
6209
+ *
6210
+ * Last access technology reported by the modem. Repeated identical callbacks and cached reads preserve its original observation time.
6211
+ */
6001
6212
  export type NetworkRatValue = "unknown" | "lteM" | "nbIot";
6213
+ /**
6214
+ * Network registration
6215
+ *
6216
+ * Last registration state observed by the modem owner. The registered boolean is derived from home or roaming; repeated identical callbacks do not renew state evidence.
6217
+ */
6002
6218
  export type NetworkRegistrationValue = "unknown" | "notRegistered" | "home" | "searching" | "denied" | "roaming" | "simFailure" | "noSuitableCell";
6219
+ /**
6220
+ * Network retry status
6221
+ *
6222
+ * Connection delivery backoff owned by the retry controller. retryAt is a boot-uptime deadline in milliseconds, null after success or profile reset; elapsed time and cached reads do not renew the state. consecutiveFailures is bounded retry state, not a lifetime failure count.
6223
+ */
6003
6224
  export type NetworkRetryStatusValue = {
6004
- retryInMs: null | number;
6225
+ retryInMs: number | null;
6005
6226
  consecutiveFailures: number;
6006
6227
  [key: string]: unknown;
6007
6228
  };
6229
+ /**
6230
+ * Network serving cell
6231
+ *
6232
+ * One passive serving-cell identity fact. Identity fields need a consistent cell context; omit unresolved fields instead of filling from an old cell. Independently timed signal measurements and extended scans remain separately selectable.
6233
+ */
6008
6234
  export type NetworkServingCellValue = {
6009
- rat: null | NetworkServingCellValueRat;
6010
- identity: CellIdentityValue;
6235
+ rat: "lteM" | "nbIot" | null;
6236
+ identity: DeviceObservationValuesCellIdentity;
6011
6237
  [key: string]: unknown;
6012
6238
  };
6013
6239
  export type NetworkServingCellValueRat = "lteM" | "nbIot";
@@ -6324,10 +6550,6 @@ export type Observation = ({
6324
6550
  } & ObservationSystemBootedObservation) | ({
6325
6551
  type: "wifi.scanCompleted";
6326
6552
  } & ObservationWifiScanCompletedObservation) | ({
6327
- type: "work.completed";
6328
- } & ObservationWorkCompletedObservation) | ({
6329
- type: "workflow.execution";
6330
- } & ObservationWorkflowExecutionObservation) | ({
6331
6553
  type: "battery.module.chargeCompleted";
6332
6554
  } & ObservationBatteryModuleChargeCompletedObservation) | ({
6333
6555
  type: "battery.module.chargeRested";
@@ -6339,7 +6561,47 @@ export type Observation = ({
6339
6561
  type: "battery.updateHealth";
6340
6562
  } & ObservationBatteryUpdateHealthObservation) | ({
6341
6563
  type: "battery.charging.allocations";
6342
- } & ObservationBatteryChargingAllocationsObservation);
6564
+ } & ObservationBatteryChargingAllocationsObservation) | ({
6565
+ type: "connection.runtimeStatus";
6566
+ } & ObservationConnectionRuntimeStatusObservation) | ({
6567
+ type: "controller.wakeCounts";
6568
+ } & ObservationControllerWakeCountsObservation) | ({
6569
+ type: "command.result";
6570
+ } & ObservationCommandResultObservation) | ({
6571
+ type: "command.status";
6572
+ } & ObservationCommandStatusObservation) | ({
6573
+ type: "connection.savedEnvironments";
6574
+ } & ObservationConnectionSavedEnvironmentsObservation) | ({
6575
+ type: "acquisition.completed";
6576
+ } & ObservationAcquisitionCompletedObservation) | ({
6577
+ type: "device.selfTestCompleted";
6578
+ } & ObservationDeviceSelfTestCompletedObservation) | ({
6579
+ type: "battery.checkResult";
6580
+ } & ObservationBatteryCheckResultObservation) | ({
6581
+ type: "diagnostics.streamCompleted";
6582
+ } & ObservationDiagnosticsStreamCompletedObservation);
6583
+ export type ObservationAcquisitionCompletedObservation = {
6584
+ type: "acquisition.completed";
6585
+ /**
6586
+ * acquisition.completed
6587
+ *
6588
+ * Request-scoped domain evidence emitted before its terminal command result.
6589
+ */
6590
+ value: {
6591
+ sampledMask: number;
6592
+ unavailableMask: number;
6593
+ timedOutMask: number;
6594
+ cancelledMask: number;
6595
+ failedMask: number;
6596
+ [key: string]: unknown;
6597
+ };
6598
+ deviceId: string;
6599
+ observationId: string;
6600
+ receivedAt: string;
6601
+ ageMs: number;
6602
+ measuredAt: string;
6603
+ [key: string]: unknown;
6604
+ };
6343
6605
  export type ObservationAgnssCompletedObservation = {
6344
6606
  type: "agnss.completed";
6345
6607
  /**
@@ -6548,6 +6810,25 @@ export type ObservationBatteryCheckCompletedObservation = {
6548
6810
  measuredAt: string;
6549
6811
  [key: string]: unknown;
6550
6812
  };
6813
+ export type ObservationBatteryCheckResultObservation = {
6814
+ type: "battery.checkResult";
6815
+ /**
6816
+ * battery.checkResult
6817
+ *
6818
+ * Request-scoped domain evidence emitted before its terminal command result.
6819
+ */
6820
+ value: {
6821
+ moduleCount: number;
6822
+ readyMask: number;
6823
+ [key: string]: unknown;
6824
+ };
6825
+ deviceId: string;
6826
+ observationId: string;
6827
+ receivedAt: string;
6828
+ ageMs: number;
6829
+ measuredAt: string;
6830
+ [key: string]: unknown;
6831
+ };
6551
6832
  export type ObservationBatteryCommunicationTimingObservation = {
6552
6833
  type: "battery.communicationTiming";
6553
6834
  subject: DeviceObservationValuesBatteryRouteSubject;
@@ -7067,6 +7348,47 @@ export type ObservationCellScanCompletedObservation = {
7067
7348
  measuredAt: string;
7068
7349
  [key: string]: unknown;
7069
7350
  };
7351
+ export type ObservationCommandResultObservation = {
7352
+ type: "command.result";
7353
+ /**
7354
+ * Command result
7355
+ *
7356
+ * Terminal command outcome correlated by the enclosing request ID. Domain values are separate observations; unavailable observations name requested readings that were not delivered.
7357
+ */
7358
+ value: {
7359
+ commandId: number;
7360
+ result: number;
7361
+ unavailableObservations: Array<string>;
7362
+ [key: string]: unknown;
7363
+ };
7364
+ deviceId: string;
7365
+ observationId: string;
7366
+ receivedAt: string;
7367
+ ageMs: number;
7368
+ measuredAt: string;
7369
+ [key: string]: unknown;
7370
+ };
7371
+ export type ObservationCommandStatusObservation = {
7372
+ type: "command.status";
7373
+ /**
7374
+ * command.status
7375
+ *
7376
+ * Request-scoped domain evidence emitted before its terminal command result.
7377
+ */
7378
+ value: {
7379
+ connectionId: string;
7380
+ lastActionRequestId: number;
7381
+ activeRequestId: number;
7382
+ activeSourceMask: number;
7383
+ [key: string]: unknown;
7384
+ };
7385
+ deviceId: string;
7386
+ observationId: string;
7387
+ receivedAt: string;
7388
+ ageMs: number;
7389
+ measuredAt: string;
7390
+ [key: string]: unknown;
7391
+ };
7070
7392
  export type ObservationConnectionAttemptsObservation = {
7071
7393
  type: "connection.attempts";
7072
7394
  /**
@@ -7185,14 +7507,57 @@ export type ObservationConnectionReportsObservation = {
7185
7507
  measuredAt: string;
7186
7508
  [key: string]: unknown;
7187
7509
  };
7188
- export type ObservationConnectionRxPayloadBytesObservation = {
7189
- type: "connection.rxPayloadBytes";
7510
+ export type ObservationConnectionRuntimeStatusObservation = {
7511
+ type: "connection.runtimeStatus";
7512
+ /**
7513
+ * Connection runtime status
7514
+ *
7515
+ * Passive snapshot of saturating since-boot activity. MQTT reconnect attempts are admitted opens after a successful MQTT session this boot; LTE attempts are admitted attachment operations. Modem recoveries exclude provisioning and shutdown. Notification failures count failed socket callback registrations; fallback waits count bounded polling waits. Mode describes the current socket, and last error remains until callback registration succeeds. Capturing this observation performs no network operation.
7516
+ */
7517
+ value: {
7518
+ mqttReconnectAttempts: number;
7519
+ lteAttachAttempts: number;
7520
+ modemOfflineRecoveries: number;
7521
+ notificationMode: "disconnected" | "callback" | "polling";
7522
+ notificationFailures: number;
7523
+ fallbackWaits: number;
7524
+ lastNotificationError: number;
7525
+ [key: string]: unknown;
7526
+ };
7527
+ deviceId: string;
7528
+ observationId: string;
7529
+ receivedAt: string;
7530
+ ageMs: number;
7531
+ measuredAt: string;
7532
+ [key: string]: unknown;
7533
+ };
7534
+ export type ObservationConnectionRxPayloadBytesObservation = {
7535
+ type: "connection.rxPayloadBytes";
7536
+ /**
7537
+ * Received payload bytes
7538
+ *
7539
+ * Received payload bytes recorded by the connection diagnostics.
7540
+ */
7541
+ value: number;
7542
+ deviceId: string;
7543
+ observationId: string;
7544
+ receivedAt: string;
7545
+ ageMs: number;
7546
+ measuredAt: string;
7547
+ [key: string]: unknown;
7548
+ };
7549
+ export type ObservationConnectionSavedEnvironmentsObservation = {
7550
+ type: "connection.savedEnvironments";
7190
7551
  /**
7191
- * Received payload bytes
7552
+ * connection.savedEnvironments
7192
7553
  *
7193
- * Received payload bytes recorded by the connection diagnostics.
7554
+ * Request-scoped domain evidence emitted before its terminal command result.
7194
7555
  */
7195
- value: number;
7556
+ value: {
7557
+ availableCapacity: number;
7558
+ environments: Array<DeviceObservationValuesSavedEnvironment>;
7559
+ [key: string]: unknown;
7560
+ };
7196
7561
  deviceId: string;
7197
7562
  observationId: string;
7198
7563
  receivedAt: string;
@@ -7305,6 +7670,28 @@ export type ObservationConnectionTxPayloadBytesObservation = {
7305
7670
  measuredAt: string;
7306
7671
  [key: string]: unknown;
7307
7672
  };
7673
+ export type ObservationControllerWakeCountsObservation = {
7674
+ type: "controller.wakeCounts";
7675
+ /**
7676
+ * Controller wake counts
7677
+ *
7678
+ * Saturating since-boot dispatcher activity from waits with a nonzero requested duration. Delivered reasons coalesce and one wait may increment multiple reasons; timeout counts waits that return no reason. Zero-duration probes are excluded. These counts are not physical interrupts, CPU sleep entries or energy measurements. Capturing this observation schedules no activity.
7679
+ */
7680
+ value: {
7681
+ event: number;
7682
+ command: number;
7683
+ io: number;
7684
+ sensor: number;
7685
+ timeout: number;
7686
+ [key: string]: unknown;
7687
+ };
7688
+ deviceId: string;
7689
+ observationId: string;
7690
+ receivedAt: string;
7691
+ ageMs: number;
7692
+ measuredAt: string;
7693
+ [key: string]: unknown;
7694
+ };
7308
7695
  export type ObservationDeviceBuildFingerprintObservation = {
7309
7696
  type: "device.buildFingerprint";
7310
7697
  /**
@@ -7355,6 +7742,28 @@ export type ObservationDeviceHardwareVersionObservation = {
7355
7742
  measuredAt: string;
7356
7743
  [key: string]: unknown;
7357
7744
  };
7745
+ export type ObservationDeviceSelfTestCompletedObservation = {
7746
+ type: "device.selfTestCompleted";
7747
+ /**
7748
+ * device.selfTestCompleted
7749
+ *
7750
+ * Request-scoped domain evidence emitted before its terminal command result.
7751
+ */
7752
+ value: {
7753
+ testedMask: number;
7754
+ passedMask: number;
7755
+ failedMask: number;
7756
+ unavailableMask: number;
7757
+ busyMask: number;
7758
+ [key: string]: unknown;
7759
+ };
7760
+ deviceId: string;
7761
+ observationId: string;
7762
+ receivedAt: string;
7763
+ ageMs: number;
7764
+ measuredAt: string;
7765
+ [key: string]: unknown;
7766
+ };
7358
7767
  export type ObservationDiagnosticsRemainingSecondsObservation = {
7359
7768
  type: "diagnostics.remainingSeconds";
7360
7769
  /**
@@ -7370,6 +7779,30 @@ export type ObservationDiagnosticsRemainingSecondsObservation = {
7370
7779
  measuredAt: string;
7371
7780
  [key: string]: unknown;
7372
7781
  };
7782
+ export type ObservationDiagnosticsStreamCompletedObservation = {
7783
+ type: "diagnostics.streamCompleted";
7784
+ /**
7785
+ * diagnostics.streamCompleted
7786
+ *
7787
+ * Request-scoped domain evidence emitted before its terminal command result.
7788
+ */
7789
+ value: {
7790
+ publishedObservations: Array<string>;
7791
+ unavailableObservations: Array<string>;
7792
+ capturedEvents: number;
7793
+ sentEvents: number;
7794
+ droppedEvents: number;
7795
+ bytesSent: number;
7796
+ reason: number;
7797
+ [key: string]: unknown;
7798
+ };
7799
+ deviceId: string;
7800
+ observationId: string;
7801
+ receivedAt: string;
7802
+ ageMs: number;
7803
+ measuredAt: string;
7804
+ [key: string]: unknown;
7805
+ };
7373
7806
  export type ObservationEventsLostObservation = {
7374
7807
  type: "events.lost";
7375
7808
  /**
@@ -8267,7 +8700,6 @@ export type ObservationOutboxOccupancyObservation = {
8267
8700
  capacityBytes: number;
8268
8701
  count: number;
8269
8702
  urgentCount: number;
8270
- existingOnlyCount: number;
8271
8703
  externalOnlyCount: number;
8272
8704
  oldestPendingAgeMs: number | null;
8273
8705
  [key: string]: unknown;
@@ -8339,6 +8771,11 @@ export type ObservationOutboxUrgentEvictedObservation = {
8339
8771
  measuredAt: string;
8340
8772
  [key: string]: unknown;
8341
8773
  };
8774
+ export type ObservationPage = {
8775
+ items: Array<Observation>;
8776
+ nextCursor: null | string;
8777
+ [key: string]: unknown;
8778
+ };
8342
8779
  export type ObservationPeripheralAccelerometerStatusObservation = {
8343
8780
  type: "peripheral.accelerometer.status";
8344
8781
  /**
@@ -8750,6 +9187,14 @@ export type ObservationRadioWifiAccessPointsObservation = {
8750
9187
  measuredAt: string;
8751
9188
  [key: string]: unknown;
8752
9189
  };
9190
+ export type ObservationReading = {
9191
+ series: ReadObservationSeries;
9192
+ observation: null | CurrentObservation;
9193
+ [key: string]: unknown;
9194
+ };
9195
+ export type ObservationSelection = {
9196
+ series: Array<ObservationSeries>;
9197
+ };
8753
9198
  export type ObservationSeries = {
8754
9199
  definitionId: number;
8755
9200
  subject?: null | string;
@@ -8788,58 +9233,6 @@ export type ObservationWifiScanCompletedObservation = {
8788
9233
  measuredAt: string;
8789
9234
  [key: string]: unknown;
8790
9235
  };
8791
- export type ObservationWorkCompletedObservation = {
8792
- type: "work.completed";
8793
- /**
8794
- * Work completed
8795
- *
8796
- * One operation outcome and its interval accounting; not a replacement for independently selectable since-boot totals.
8797
- */
8798
- value: {
8799
- completedCount: number;
8800
- trigger: "boot" | "timer" | "movement" | "command";
8801
- outcome: DeviceObservationValuesOperationOutcome;
8802
- elapsedMs: number;
8803
- activeMs: number;
8804
- activityMs: DeviceObservationValuesActivityDurations;
8805
- activityEntries: DeviceObservationValuesActivityEntries;
8806
- recoveries: DeviceObservationValuesRecoveryCounts;
8807
- saturated: boolean;
8808
- [key: string]: unknown;
8809
- };
8810
- deviceId: string;
8811
- observationId: string;
8812
- receivedAt: string;
8813
- ageMs: number;
8814
- measuredAt: string;
8815
- [key: string]: unknown;
8816
- };
8817
- export type ObservationWorkflowExecutionObservation = {
8818
- type: "workflow.execution";
8819
- /**
8820
- * Workflow execution
8821
- *
8822
- * Passive tracking workflow and service execution evidence. Offline traces retain their original timestamps and do not create connection demand.
8823
- */
8824
- value: {
8825
- workflowVersion: number;
8826
- state: string;
8827
- owner: "workflow" | "command" | "update" | "recovery" | "shutdown" | "fault" | "settings" | "charging" | "ble" | "network";
8828
- phase: "entered" | "completed" | "cancelled" | "ownerChanged" | "snapshot";
8829
- outcome: "done" | "unavailable" | "failed" | "timeout" | "cancelled" | null;
8830
- durationMs: number | null;
8831
- error: number | null;
8832
- waitReason: "resource" | "command" | "update" | "configuration" | "rest" | "network" | null;
8833
- operation: "capture" | "mqttOpen" | "publish" | "modemOnline" | "modemEdrx" | "modemOffline" | "disconnectMqtt" | "prepareConnection" | "connect" | null;
8834
- [key: string]: unknown;
8835
- };
8836
- deviceId: string;
8837
- observationId: string;
8838
- receivedAt: string;
8839
- ageMs: number;
8840
- measuredAt: string;
8841
- [key: string]: unknown;
8842
- };
8843
9236
  export type OperationAccepted = {
8844
9237
  location: string;
8845
9238
  [key: string]: unknown;
@@ -8851,14 +9244,18 @@ export type OperationErrorValue = {
8851
9244
  };
8852
9245
  export type OperationErrorValuePhase = "decode" | "validation" | "registration" | "dns" | "tls" | "mqtt" | "subscription" | "read" | "write" | "verify" | "setup" | "discovery" | "sample" | "publish" | "stop" | "resume" | "download" | "install" | "cancel";
8853
9246
  export type OperationOutcomeValue = "success" | "empty" | "partial" | "timeout" | "failed" | "cancelled" | "budgetExhausted" | "skipped";
9247
+ /**
9248
+ * Outbox occupancy
9249
+ *
9250
+ * Stored FIFO occupancy at capture, before admitting this diagnostic. Permission subsets overlap: a record is external-only or existing-connection-only only when every stored permission requires it. Oldest age is null for an empty queue. Reading this immutable snapshot does not sweep or drain the queue.
9251
+ */
8854
9252
  export type OutboxOccupancyValue = {
8855
9253
  bytes: number;
8856
9254
  capacityBytes: number;
8857
9255
  count: number;
8858
9256
  urgentCount: number;
8859
- existingOnlyCount: number;
8860
9257
  externalOnlyCount: number;
8861
- oldestPendingAgeMs: null | number;
9258
+ oldestPendingAgeMs: number | null;
8862
9259
  [key: string]: unknown;
8863
9260
  };
8864
9261
  export type PatchFieldOfBikeCurrency = PatchFieldOfBikeCurrencyBikeCurrency | null;
@@ -8871,11 +9268,12 @@ export type PatchFieldOfPreferenceUnitPreferenceUnit = "metric" | "imperial";
8871
9268
  export type PatchFieldOfstring = string | null;
8872
9269
  export type PatchFieldOfTextOrNumber = PatchFieldOfTextOrNumberTextOrNumber | null;
8873
9270
  export type PatchFieldOfTextOrNumberTextOrNumber = string | number;
8874
- export type PeripheralStatusValue = {
8875
- state: PeripheralStatusValueState;
8876
- reason: null | OperationErrorValue;
8877
- [key: string]: unknown;
8878
- };
9271
+ /**
9272
+ * Peripheral esp status
9273
+ *
9274
+ * Last verified hardware status, independent of work-queue activity. Ready requires successful hardware communication; off requires confirmed disable or power-off. Cached reads preserve the source time. Pending work does not fabricate a busy or starting hardware state.
9275
+ */
9276
+ export type PeripheralStatusValue = DeviceObservationValuesPeripheralStatus;
8879
9277
  export type PeripheralStatusValueState = "unknown" | "off" | "ready" | "failed";
8880
9278
  export type PhotoData = {
8881
9279
  type?: null | string;
@@ -8902,11 +9300,16 @@ export type PhotoPage = {
8902
9300
  nextCursor: null | string;
8903
9301
  [key: string]: unknown;
8904
9302
  };
9303
+ /**
9304
+ * Position gnss fix
9305
+ *
9306
+ * One PVT solution with its quality/provenance. Do not populate missing fields from another fix.
9307
+ */
8905
9308
  export type PositionGnssFixValue = {
8906
- coordinates: CoordinatesValue;
8907
- accuracy: number | "NaN" | "Infinity" | "-Infinity";
8908
- motion: null | FixMotionValue;
8909
- quality: null | FixQualityValue;
9309
+ coordinates: DeviceObservationValuesCoordinates;
9310
+ accuracy: number;
9311
+ motion: DeviceObservationValuesFixMotion | null;
9312
+ quality: DeviceObservationValuesFixQuality | null;
8910
9313
  [key: string]: unknown;
8911
9314
  };
8912
9315
  export type PositioningSchedule = {
@@ -8945,12 +9348,6 @@ export type PushRegistration = {
8945
9348
  platform: PushPlatform;
8946
9349
  replaceTokens: Array<string>;
8947
9350
  };
8948
- export type RecoveryCountsValue = {
8949
- espRecoveries: number;
8950
- wifiTimeouts: number;
8951
- bleTimeouts: number;
8952
- [key: string]: unknown;
8953
- };
8954
9351
  export type RedeemInvitation = {
8955
9352
  accessCode: string;
8956
9353
  displayName: string;
@@ -8967,7 +9364,6 @@ export type ReportFirmwareAttempt = {
8967
9364
  };
8968
9365
  export type ResetContextValue = {
8969
9366
  sequence: number;
8970
- controllerPhase: number;
8971
9367
  operation: number;
8972
9368
  error: number;
8973
9369
  errorOperation: number;
@@ -8987,10 +9383,15 @@ export type SavedEnvironmentValue = {
8987
9383
  clearing: boolean;
8988
9384
  [key: string]: unknown;
8989
9385
  };
8990
- export type ScanCompletedValue = {
8991
- outcome: OperationOutcomeValue;
8992
- error: null | OperationErrorValue;
8993
- durationMs: number;
9386
+ /**
9387
+ * Wifi scan completed
9388
+ *
9389
+ * One coherent wifi.scanCompleted fact.
9390
+ */
9391
+ export type ScanCompletedValue = DeviceObservationValuesScanCompleted;
9392
+ export type SettingsApplication = {
9393
+ settings: null | SettingsApplicationStatus;
9394
+ connection: null | ConnectionApplicationStatus;
8994
9395
  [key: string]: unknown;
8995
9396
  };
8996
9397
  export type SettingsApplicationStatus = {
@@ -9000,6 +9401,33 @@ export type SettingsApplicationStatus = {
9000
9401
  error: number;
9001
9402
  [key: string]: unknown;
9002
9403
  };
9404
+ export type SettingsCapabilities = {
9405
+ modemTrace?: null | boolean;
9406
+ gnssVisibilityDetection?: null | boolean;
9407
+ lteRai?: null | boolean;
9408
+ ltePowerDiagnostics?: null | boolean;
9409
+ modemMemoryDiagnostics?: null | boolean;
9410
+ trackingDiagnostics?: null | boolean;
9411
+ diagnosticCommands?: null | boolean;
9412
+ [key: string]: unknown;
9413
+ };
9414
+ export type SettingsReadIssue = {
9415
+ path: string;
9416
+ code: string;
9417
+ [key: string]: unknown;
9418
+ };
9419
+ export type SettingsSnapshot = {
9420
+ version: number;
9421
+ exists: boolean;
9422
+ desired: ReadDeviceSettings;
9423
+ reported: ReadDeviceSettings;
9424
+ application: SettingsApplication;
9425
+ capabilities: null | SettingsCapabilities;
9426
+ schemaVersion: null | number;
9427
+ completeVersion: null | number;
9428
+ readIssues: Array<SettingsReadIssue>;
9429
+ [key: string]: unknown;
9430
+ };
9003
9431
  export type StaffAccount = {
9004
9432
  profile: null | DirectoryProfile;
9005
9433
  document: null | AccountProfileDocument;
@@ -9064,6 +9492,142 @@ export type StartFirmwareUpdate = {
9064
9492
  platform: "ios" | "android";
9065
9493
  build: number;
9066
9494
  };
9495
+ export type SubmitCommandRequest = {
9496
+ operationId: string;
9497
+ expectedInventoryId: string;
9498
+ command: "status";
9499
+ arguments: Array<never>;
9500
+ metrics?: null;
9501
+ enrollmentUrl?: null;
9502
+ confirmed?: boolean;
9503
+ acquisitionOptions?: null;
9504
+ } | {
9505
+ operationId: string;
9506
+ expectedInventoryId: string;
9507
+ command: "reconcileSettings";
9508
+ arguments: Array<never>;
9509
+ metrics?: null;
9510
+ enrollmentUrl?: null;
9511
+ confirmed?: boolean;
9512
+ acquisitionOptions?: null;
9513
+ } | {
9514
+ operationId: string;
9515
+ expectedInventoryId: string;
9516
+ command: "requestObservations";
9517
+ arguments: [0 | 1, number];
9518
+ metrics: Array<1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 32 | 33 | 34 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 48 | 49 | 50 | 52 | 53 | 54 | 55 | 56 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 107 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 121 | 123 | 124 | 126 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 143 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 155 | 156 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166>;
9519
+ enrollmentUrl?: null;
9520
+ confirmed?: boolean;
9521
+ acquisitionOptions?: AcquisitionOptions | null;
9522
+ } | {
9523
+ operationId: string;
9524
+ expectedInventoryId: string;
9525
+ command: "sample";
9526
+ arguments: [number, number];
9527
+ metrics?: null;
9528
+ enrollmentUrl?: null;
9529
+ confirmed?: boolean;
9530
+ acquisitionOptions?: AcquisitionOptions | null;
9531
+ } | {
9532
+ operationId: string;
9533
+ expectedInventoryId: string;
9534
+ command: "cancel";
9535
+ arguments: [number];
9536
+ metrics?: null;
9537
+ enrollmentUrl?: null;
9538
+ confirmed?: boolean;
9539
+ acquisitionOptions?: null;
9540
+ } | {
9541
+ operationId: string;
9542
+ expectedInventoryId: string;
9543
+ command: "reboot";
9544
+ arguments: Array<never>;
9545
+ metrics?: null;
9546
+ enrollmentUrl?: null;
9547
+ confirmed: true;
9548
+ acquisitionOptions?: null;
9549
+ } | {
9550
+ operationId: string;
9551
+ expectedInventoryId: string;
9552
+ command: "identify";
9553
+ arguments: [number];
9554
+ metrics?: null;
9555
+ enrollmentUrl?: null;
9556
+ confirmed?: boolean;
9557
+ acquisitionOptions?: null;
9558
+ } | {
9559
+ operationId: string;
9560
+ expectedInventoryId: string;
9561
+ command: "streamObservations";
9562
+ arguments: [number, number, number, 0 | 1 | 2 | 3, number];
9563
+ metrics: Array<1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 32 | 33 | 34 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 48 | 49 | 50 | 52 | 53 | 54 | 55 | 56 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 107 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 121 | 123 | 124 | 126 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 143 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 155 | 156 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166>;
9564
+ enrollmentUrl?: null;
9565
+ confirmed?: boolean;
9566
+ acquisitionOptions?: null;
9567
+ } | {
9568
+ operationId: string;
9569
+ expectedInventoryId: string;
9570
+ command: "selfTest";
9571
+ arguments: [number, number];
9572
+ metrics?: null;
9573
+ enrollmentUrl?: null;
9574
+ confirmed?: boolean;
9575
+ acquisitionOptions?: null;
9576
+ } | {
9577
+ operationId: string;
9578
+ expectedInventoryId: string;
9579
+ command: "switchEnvironment";
9580
+ arguments: Array<never>;
9581
+ metrics?: null;
9582
+ enrollmentUrl: string;
9583
+ confirmed: true;
9584
+ acquisitionOptions?: null;
9585
+ } | {
9586
+ operationId: string;
9587
+ expectedInventoryId: string;
9588
+ command: "clearEnvironment";
9589
+ arguments: Array<never>;
9590
+ metrics?: null;
9591
+ enrollmentUrl: string;
9592
+ confirmed: true;
9593
+ acquisitionOptions?: null;
9594
+ } | {
9595
+ operationId: string;
9596
+ expectedInventoryId: string;
9597
+ command: "listEnvironments";
9598
+ arguments: Array<never>;
9599
+ metrics?: null;
9600
+ enrollmentUrl?: null;
9601
+ confirmed?: boolean;
9602
+ acquisitionOptions?: null;
9603
+ } | {
9604
+ operationId: string;
9605
+ expectedInventoryId: string;
9606
+ command: "runBatteryCheck";
9607
+ arguments: Array<never>;
9608
+ metrics?: null;
9609
+ enrollmentUrl?: null;
9610
+ confirmed?: boolean;
9611
+ acquisitionOptions?: null;
9612
+ } | {
9613
+ operationId: string;
9614
+ expectedInventoryId: string;
9615
+ command: "requestPosition";
9616
+ arguments: [0 | 1, number];
9617
+ metrics?: null;
9618
+ enrollmentUrl?: null;
9619
+ confirmed?: boolean;
9620
+ acquisitionOptions?: null;
9621
+ } | {
9622
+ operationId: string;
9623
+ expectedInventoryId: string;
9624
+ command: "enableDiagnostics";
9625
+ arguments: [number];
9626
+ metrics?: null;
9627
+ enrollmentUrl?: null;
9628
+ confirmed?: boolean;
9629
+ acquisitionOptions?: null;
9630
+ };
9067
9631
  export type SubscriptionData = {
9068
9632
  uid?: null | string;
9069
9633
  name?: null | string;
@@ -9100,9 +9664,14 @@ export type SubscriptionPage = {
9100
9664
  nextCursor: null | string;
9101
9665
  [key: string]: unknown;
9102
9666
  };
9667
+ /**
9668
+ * System booted
9669
+ *
9670
+ * One coherent system.booted fact.
9671
+ */
9103
9672
  export type SystemBootedValue = {
9104
9673
  resetCause: number;
9105
- resetContext: null | ResetContextValue;
9674
+ resetContext: DeviceObservationValuesResetContext | null;
9106
9675
  [key: string]: unknown;
9107
9676
  };
9108
9677
  export type TextOrNumber = string | number;
@@ -9128,6 +9697,25 @@ export type TrackerBatteryObservation = {
9128
9697
  receivedAt?: null | string;
9129
9698
  [key: string]: unknown;
9130
9699
  };
9700
+ export type TrackerCommand = {
9701
+ deviceId: string;
9702
+ requestId: number;
9703
+ operationId: string;
9704
+ command: "status" | "reconcileSettings" | "requestObservations" | "sample" | "cancel" | "reboot" | "identify" | "streamObservations" | "selfTest" | "switchEnvironment" | "clearEnvironment" | "listEnvironments" | "updateBattery" | "runBatteryCheck" | "requestPosition" | "enableDiagnostics";
9705
+ arguments: Array<number>;
9706
+ metrics: null | Array<number>;
9707
+ enrollmentUrl: null | string;
9708
+ requestedBy: string;
9709
+ requestedAt: string;
9710
+ publishedAt: null | string;
9711
+ inventoryId: string;
9712
+ commandId: number;
9713
+ execution?: null | CommandExecution;
9714
+ executionVersion?: number;
9715
+ batteryUpdate?: null | BatteryArtifact;
9716
+ acquisitionOptions?: null | ReadAcquisitionOptions;
9717
+ [key: string]: unknown;
9718
+ };
9131
9719
  export type TrackerData = {
9132
9720
  generation?: null | TextOrNumber;
9133
9721
  cloud?: null | string;
@@ -9421,49 +10009,112 @@ export type TrackerWeightedAverage = {
9421
10009
  count?: null | number;
9422
10010
  [key: string]: unknown;
9423
10011
  };
10012
+ export type UpdateSettingsRequest = {
10013
+ expectedVersion: number;
10014
+ settings: DeviceSettings;
10015
+ };
9424
10016
  export type WifiAccessPointValue = {
9425
10017
  mac: string;
9426
10018
  rssi: null | number;
9427
10019
  channel: null | number;
9428
10020
  [key: string]: unknown;
9429
10021
  };
9430
- export type WorkCompletedValue = {
9431
- completedCount: number;
9432
- trigger: WorkCompletedValueTrigger;
9433
- outcome: OperationOutcomeValue;
9434
- elapsedMs: number;
9435
- activeMs: number;
9436
- activityMs: ActivityDurationsValue;
9437
- activityEntries: ActivityEntriesValue;
9438
- recoveries: RecoveryCountsValue;
9439
- saturated: boolean;
10022
+ export type WifiAcquisitionOptions = {
10023
+ scanType?: WifiScanType;
10024
+ activeMinMs?: number;
10025
+ activeMaxMs?: number;
10026
+ passiveMs?: number;
10027
+ channelMask?: number;
10028
+ budgetMs?: number;
9440
10029
  [key: string]: unknown;
9441
10030
  };
9442
- export type WorkCompletedValueTrigger = "boot" | "timer" | "movement" | "command";
10031
+ export type WifiScanType = "active" | "passive";
9443
10032
  export type WorkExecutionData = {
9444
10033
  state?: null | string;
9445
10034
  attempts?: null | number;
9446
10035
  finishedAt?: null | string;
9447
10036
  [key: string]: unknown;
9448
10037
  };
9449
- export type WorkflowExecutionValue = {
9450
- workflowVersion: number;
9451
- state: WorkflowExecutionValueState;
9452
- owner: WorkflowExecutionValueOwner;
9453
- phase: WorkflowExecutionValuePhase;
9454
- outcome: null | WorkflowExecutionValueOutcome;
9455
- durationMs: null | number;
9456
- error: null | number;
9457
- waitReason: null | WorkflowExecutionValueWaitReason;
9458
- operation: null | WorkflowExecutionValueOperation;
9459
- [key: string]: unknown;
9460
- };
9461
- export type WorkflowExecutionValueOperation = "capture" | "mqttOpen" | "publish" | "modemOnline" | "modemEdrx" | "modemOffline" | "disconnectMqtt" | "prepareConnection" | "connect";
9462
- export type WorkflowExecutionValueOutcome = "done" | "unavailable" | "failed" | "timeout" | "cancelled";
9463
- export type WorkflowExecutionValueOwner = "workflow" | "command" | "update" | "recovery" | "shutdown" | "fault" | "settings" | "charging" | "ble" | "network";
9464
- export type WorkflowExecutionValuePhase = "entered" | "completed" | "cancelled" | "ownerChanged" | "snapshot";
9465
- export type WorkflowExecutionValueState = "idle" | "battery" | "connect" | "publish";
9466
- export type WorkflowExecutionValueWaitReason = "resource" | "command" | "update" | "configuration" | "rest" | "network";
10038
+ export type ReadAcquisitionOptions = {
10039
+ gnss?: {
10040
+ /**
10041
+ * assistance for this behavior request.
10042
+ */
10043
+ assistance?: boolean;
10044
+ /**
10045
+ * powerMode for this behavior request.
10046
+ */
10047
+ powerMode?: "disabled" | "performance" | "power";
10048
+ /**
10049
+ * Keep LTE paging available during the normal connected search. GNSS priority can block LTE paging for up to 40 seconds.
10050
+ */
10051
+ priorityMode?: boolean;
10052
+ /**
10053
+ * lowAccuracy for this behavior request.
10054
+ */
10055
+ lowAccuracy?: boolean;
10056
+ /**
10057
+ * targetAccuracyMeters for this behavior request.
10058
+ */
10059
+ targetAccuracyMeters?: number;
10060
+ /**
10061
+ * consecutiveFixes for this behavior request.
10062
+ */
10063
+ consecutiveFixes?: number;
10064
+ /**
10065
+ * visibility.enabled for this behavior request.
10066
+ */
10067
+ visibilityEnabled?: boolean;
10068
+ /**
10069
+ * visibility.executionSeconds for this behavior request.
10070
+ */
10071
+ visibilityExecutionSeconds?: number;
10072
+ /**
10073
+ * visibility.minSatellites for this behavior request.
10074
+ */
10075
+ visibilityMinSatellites?: number;
10076
+ [key: string]: unknown;
10077
+ } | null;
10078
+ cell?: {
10079
+ /**
10080
+ * mode for this behavior request.
10081
+ */
10082
+ mode?: "serving" | "gci" | "neighbors";
10083
+ /**
10084
+ * gciCount for this behavior request.
10085
+ */
10086
+ gciCount?: number;
10087
+ [key: string]: unknown;
10088
+ } | null;
10089
+ wifi?: {
10090
+ /**
10091
+ * scanType for this behavior request.
10092
+ */
10093
+ scanType?: "active" | "passive";
10094
+ /**
10095
+ * activeMinMs for this behavior request.
10096
+ */
10097
+ activeMinMs?: number;
10098
+ /**
10099
+ * activeMaxMs for this behavior request.
10100
+ */
10101
+ activeMaxMs?: number;
10102
+ /**
10103
+ * passiveMs for this behavior request.
10104
+ */
10105
+ passiveMs?: number;
10106
+ /**
10107
+ * channelMask for this behavior request.
10108
+ */
10109
+ channelMask?: number;
10110
+ /**
10111
+ * budgetMs for this behavior request.
10112
+ */
10113
+ budgetMs?: number;
10114
+ [key: string]: unknown;
10115
+ } | null;
10116
+ [key: string]: unknown;
10117
+ };
9467
10118
  export type ReadCustomerFirmwareReportOutcome = "transferFailed" | "targetVersionObserved";
9468
10119
  export type ReadDeviceSettings = {
9469
10120
  /**
@@ -9622,16 +10273,10 @@ export type ReadDeviceSettings = {
9622
10273
  * Maximum sum of programmed input-current limits across charging modules, including single-module charging and weak-supply fallback. The per-module ceiling also applies. Unlimited input is capped to a finite limit within this budget.
9623
10274
  */
9624
10275
  chargingTotalInputLimitMilliamps?: number;
9625
- /**
9626
- * Workflow debug tracing
9627
- *
9628
- * Record bounded tracking workflow and service execution traces. Traces use an available connection and do not keep LTE awake.
9629
- */
9630
- workflowDebugEnabled?: boolean;
9631
10276
  /**
9632
10277
  * I2C idle power saving
9633
10278
  *
9634
- * Suspend the LTE I2C controller between transactions. Default off. Changes apply at an idle bus boundary without interrupting active operations; motion detection remains enabled.
10279
+ * Suspend the LTE I2C controller between transactions. Enabled by default. Changes apply at an idle bus boundary without interrupting active operations; motion detection remains enabled.
9635
10280
  */
9636
10281
  i2cIdlePowerSavingEnabled?: boolean;
9637
10282
  /**
@@ -9653,11 +10298,11 @@ export type ReadDeviceSettings = {
9653
10298
  */
9654
10299
  bleAdvertisingIntervalUnits?: number;
9655
10300
  /**
9656
- * Connected report interval
10301
+ * Report interval on external power
9657
10302
  *
9658
- * Period between battery and status reports while the tracker maintains its connection. These reports do not initiate positioning scans.
10303
+ * Interval between periodic status reports while external power is confirmed. Zero disables periodic reports on external power. Does not control report contents, positioning requests, event reports or local battery safety checks.
9659
10304
  */
9660
- connectedReportIntervalSeconds?: number;
10305
+ reportIntervalOnExternalPowerSeconds?: number;
9661
10306
  /**
9662
10307
  * Movement cooldown
9663
10308
  *
@@ -9803,11 +10448,11 @@ export type ReadDeviceSettings = {
9803
10448
  */
9804
10449
  chargingStatusMaxAgeSeconds?: number;
9805
10450
  /**
9806
- * Automatic work reporting
10451
+ * Report interval on battery
9807
10452
  *
9808
- * Upload work.completed cycle outcomes and interval accounting on existing connections. Off by default. automaticDiagnosticsPower controls eligible power sources. Cached on-demand observations remain available when off; workflowDebugEnabled independently controls detailed step traces.
10453
+ * Interval between periodic status reports while battery power is confirmed. Zero disables periodic reports on battery (the default). Does not control report contents, positioning requests, event reports or local battery safety checks.
9809
10454
  */
9810
- workReportingEnabled?: boolean;
10455
+ reportIntervalOnBatterySeconds?: number;
9811
10456
  [key: string]: unknown;
9812
10457
  };
9813
10458
  export type ReadObservationSeries = {
@@ -9883,7 +10528,7 @@ export type LookupStaffTrackerInventoryResponses = {
9883
10528
  /**
9884
10529
  * OK
9885
10530
  */
9886
- 200: AwsDeviceIdentity;
10531
+ 200: DeviceIdentity;
9887
10532
  };
9888
10533
  export type LookupStaffTrackerInventoryResponse = LookupStaffTrackerInventoryResponses[keyof LookupStaffTrackerInventoryResponses];
9889
10534
  export type GetStaffTrackerSchemaData = {
@@ -11294,7 +11939,7 @@ export type GetStaffTrackerConnectivityResponses = {
11294
11939
  /**
11295
11940
  * OK
11296
11941
  */
11297
- 200: AwsConnectivity;
11942
+ 200: DeviceConnectivity;
11298
11943
  };
11299
11944
  export type GetStaffTrackerConnectivityResponse = GetStaffTrackerConnectivityResponses[keyof GetStaffTrackerConnectivityResponses];
11300
11945
  export type GetStaffTrackerCommandCatalogData = {
@@ -11316,7 +11961,7 @@ export type GetStaffTrackerCommandCatalogResponses = {
11316
11961
  /**
11317
11962
  * OK
11318
11963
  */
11319
- 200: AwsCommandCapabilities;
11964
+ 200: CommandCapabilities;
11320
11965
  };
11321
11966
  export type GetStaffTrackerCommandCatalogResponse = GetStaffTrackerCommandCatalogResponses[keyof GetStaffTrackerCommandCatalogResponses];
11322
11967
  export type ListStaffTrackerObservationsData = {
@@ -11345,7 +11990,7 @@ export type ListStaffTrackerObservationsResponses = {
11345
11990
  /**
11346
11991
  * OK
11347
11992
  */
11348
- 200: AwsObservationPage;
11993
+ 200: ObservationPage;
11349
11994
  };
11350
11995
  export type ListStaffTrackerObservationsResponse = ListStaffTrackerObservationsResponses[keyof ListStaffTrackerObservationsResponses];
11351
11996
  export type GetStaffTrackerObservationData = {
@@ -11392,7 +12037,7 @@ export type ReadStaffTrackerObservationsResponses = {
11392
12037
  /**
11393
12038
  * OK
11394
12039
  */
11395
- 200: Array<AwsObservationReading>;
12040
+ 200: Array<ObservationReading>;
11396
12041
  };
11397
12042
  export type ReadStaffTrackerObservationsResponse = ReadStaffTrackerObservationsResponses[keyof ReadStaffTrackerObservationsResponses];
11398
12043
  export type GetStaffTrackerPositioningData = {
@@ -11486,7 +12131,7 @@ export type UploadStaffTrackerBatteryFirmwareResponses = {
11486
12131
  /**
11487
12132
  * Accepted
11488
12133
  */
11489
- 202: AwsCommand;
12134
+ 202: TrackerCommand;
11490
12135
  };
11491
12136
  export type UploadStaffTrackerBatteryFirmwareResponse = UploadStaffTrackerBatteryFirmwareResponses[keyof UploadStaffTrackerBatteryFirmwareResponses];
11492
12137
  export type ListStaffTrackerCommandsData = {
@@ -11511,11 +12156,11 @@ export type ListStaffTrackerCommandsResponses = {
11511
12156
  /**
11512
12157
  * OK
11513
12158
  */
11514
- 200: AwsCommandPage;
12159
+ 200: CommandPage;
11515
12160
  };
11516
12161
  export type ListStaffTrackerCommandsResponse = ListStaffTrackerCommandsResponses[keyof ListStaffTrackerCommandsResponses];
11517
12162
  export type SendStaffTrackerCommandData = {
11518
- body: AwsCommandRequest;
12163
+ body: SubmitCommandRequest;
11519
12164
  path: {
11520
12165
  id: string;
11521
12166
  };
@@ -11533,7 +12178,7 @@ export type SendStaffTrackerCommandResponses = {
11533
12178
  /**
11534
12179
  * Accepted
11535
12180
  */
11536
- 202: AwsCommand;
12181
+ 202: TrackerCommand;
11537
12182
  };
11538
12183
  export type SendStaffTrackerCommandResponse = SendStaffTrackerCommandResponses[keyof SendStaffTrackerCommandResponses];
11539
12184
  export type GetStaffTrackerCommandData = {
@@ -11556,7 +12201,7 @@ export type GetStaffTrackerCommandResponses = {
11556
12201
  /**
11557
12202
  * OK
11558
12203
  */
11559
- 200: AwsCommand;
12204
+ 200: TrackerCommand;
11560
12205
  };
11561
12206
  export type GetStaffTrackerCommandResponse = GetStaffTrackerCommandResponses[keyof GetStaffTrackerCommandResponses];
11562
12207
  export type GetStaffTrackerSettingsData = {
@@ -11578,11 +12223,11 @@ export type GetStaffTrackerSettingsResponses = {
11578
12223
  /**
11579
12224
  * OK
11580
12225
  */
11581
- 200: AwsSettingsSnapshot;
12226
+ 200: SettingsSnapshot;
11582
12227
  };
11583
12228
  export type GetStaffTrackerSettingsResponse = GetStaffTrackerSettingsResponses[keyof GetStaffTrackerSettingsResponses];
11584
12229
  export type UpdateStaffTrackerSettingsData = {
11585
- body: AwsSettingsWrite;
12230
+ body: UpdateSettingsRequest;
11586
12231
  path: {
11587
12232
  id: string;
11588
12233
  };
@@ -11600,7 +12245,7 @@ export type UpdateStaffTrackerSettingsResponses = {
11600
12245
  /**
11601
12246
  * OK
11602
12247
  */
11603
- 200: AwsSettingsSnapshot;
12248
+ 200: SettingsSnapshot;
11604
12249
  };
11605
12250
  export type UpdateStaffTrackerSettingsResponse = UpdateStaffTrackerSettingsResponses[keyof UpdateStaffTrackerSettingsResponses];
11606
12251
  export type ListStaffTrackerFirmwareReleasesData = {
@@ -11622,7 +12267,7 @@ export type ListStaffTrackerFirmwareReleasesResponses = {
11622
12267
  /**
11623
12268
  * OK
11624
12269
  */
11625
- 200: Array<AwsFirmwareRelease>;
12270
+ 200: Array<FirmwareRelease>;
11626
12271
  };
11627
12272
  export type ListStaffTrackerFirmwareReleasesResponse = ListStaffTrackerFirmwareReleasesResponses[keyof ListStaffTrackerFirmwareReleasesResponses];
11628
12273
  export type ListActiveStaffTrackerFirmwareUpdatesData = {
@@ -11644,11 +12289,11 @@ export type ListActiveStaffTrackerFirmwareUpdatesResponses = {
11644
12289
  /**
11645
12290
  * OK
11646
12291
  */
11647
- 200: Array<AwsFirmwareReceipt>;
12292
+ 200: Array<FirmwareReceipt>;
11648
12293
  };
11649
12294
  export type ListActiveStaffTrackerFirmwareUpdatesResponse = ListActiveStaffTrackerFirmwareUpdatesResponses[keyof ListActiveStaffTrackerFirmwareUpdatesResponses];
11650
12295
  export type RequestStaffTrackerFirmwareUpdateData = {
11651
- body: AwsFirmwareRequest;
12296
+ body: FirmwareUpdateRequest;
11652
12297
  path: {
11653
12298
  id: string;
11654
12299
  };
@@ -11666,7 +12311,7 @@ export type RequestStaffTrackerFirmwareUpdateResponses = {
11666
12311
  /**
11667
12312
  * Accepted
11668
12313
  */
11669
- 202: AwsFirmwareReceipt;
12314
+ 202: FirmwareReceipt;
11670
12315
  };
11671
12316
  export type RequestStaffTrackerFirmwareUpdateResponse = RequestStaffTrackerFirmwareUpdateResponses[keyof RequestStaffTrackerFirmwareUpdateResponses];
11672
12317
  export type GetStaffTrackerFirmwareUpdateData = {
@@ -11689,11 +12334,11 @@ export type GetStaffTrackerFirmwareUpdateResponses = {
11689
12334
  /**
11690
12335
  * OK
11691
12336
  */
11692
- 200: AwsFirmwareReceipt;
12337
+ 200: FirmwareReceipt;
11693
12338
  };
11694
12339
  export type GetStaffTrackerFirmwareUpdateResponse = GetStaffTrackerFirmwareUpdateResponses[keyof GetStaffTrackerFirmwareUpdateResponses];
11695
12340
  export type CancelStaffTrackerFirmwareUpdateData = {
11696
- body: AwsFirmwareCancellation;
12341
+ body: FirmwareCancellation;
11697
12342
  path: {
11698
12343
  id: string;
11699
12344
  updateId: string;
@@ -11712,6 +12357,6 @@ export type CancelStaffTrackerFirmwareUpdateResponses = {
11712
12357
  /**
11713
12358
  * Accepted
11714
12359
  */
11715
- 202: AwsFirmwareReceipt;
12360
+ 202: FirmwareReceipt;
11716
12361
  };
11717
12362
  export type CancelStaffTrackerFirmwareUpdateResponse = CancelStaffTrackerFirmwareUpdateResponses[keyof CancelStaffTrackerFirmwareUpdateResponses];