@omirion/orbit-sdk 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -492,6 +492,8 @@ type CommandResult = {
492
492
  * Captured output / structured payload (device-defined). Synchronous result only.
493
493
  */
494
494
  output?: string;
495
+ errorCode?: number | null;
496
+ deviceErrorCode?: number | null;
495
497
  /**
496
498
  * Error detail; empty when successful. Synchronous result only.
497
499
  */
@@ -527,6 +529,8 @@ type CommandInvocation = {
527
529
  * Captured output excerpt (up to 4 KiB); null until a result is recorded.
528
530
  */
529
531
  output: string | null;
532
+ errorCode?: number | null;
533
+ deviceErrorCode?: number | null;
530
534
  /**
531
535
  * Error detail; null when successful or still pending.
532
536
  */
@@ -582,6 +586,12 @@ type CommandDefinition = {
582
586
  */
583
587
  type CommandManifest = {
584
588
  version: string;
589
+ /**
590
+ * Positive uint32 device error codes as canonical decimal keys, mapped to display labels.
591
+ */
592
+ errorCodes?: {
593
+ [key: string]: string;
594
+ };
585
595
  commands: Array<CommandDefinition>;
586
596
  };
587
597
  /**
package/dist/index.d.ts CHANGED
@@ -492,6 +492,8 @@ type CommandResult = {
492
492
  * Captured output / structured payload (device-defined). Synchronous result only.
493
493
  */
494
494
  output?: string;
495
+ errorCode?: number | null;
496
+ deviceErrorCode?: number | null;
495
497
  /**
496
498
  * Error detail; empty when successful. Synchronous result only.
497
499
  */
@@ -527,6 +529,8 @@ type CommandInvocation = {
527
529
  * Captured output excerpt (up to 4 KiB); null until a result is recorded.
528
530
  */
529
531
  output: string | null;
532
+ errorCode?: number | null;
533
+ deviceErrorCode?: number | null;
530
534
  /**
531
535
  * Error detail; null when successful or still pending.
532
536
  */
@@ -582,6 +586,12 @@ type CommandDefinition = {
582
586
  */
583
587
  type CommandManifest = {
584
588
  version: string;
589
+ /**
590
+ * Positive uint32 device error codes as canonical decimal keys, mapped to display labels.
591
+ */
592
+ errorCodes?: {
593
+ [key: string]: string;
594
+ };
585
595
  commands: Array<CommandDefinition>;
586
596
  };
587
597
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omirion/orbit-sdk",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Official TypeScript SDK for the Omirion Orbit public API (/api/v1).",
5
5
  "license": "MIT",
6
6
  "type": "module",