@viamrobotics/sdk 0.21.0 → 0.22.0-b.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.
@@ -129,5 +129,6 @@ export declare class RobotClient extends EventDispatcher implements Robot {
129
129
  resourceRPCSubtypes(): Promise<proto.ResourceRPCSubtype[]>;
130
130
  getStatus(resourceNames?: ResourceName.AsObject[]): Promise<proto.Status[]>;
131
131
  streamStatus(resourceNames?: ResourceName.AsObject[], durationMs?: number): RobotStatusStream;
132
+ restartModule(moduleId?: string, moduleName?: string): Promise<void>;
132
133
  }
133
134
  export {};
@@ -140,5 +140,16 @@ export interface Robot {
140
140
  * @alpha
141
141
  */
142
142
  getCloudMetadata(): Promise<CloudMetadata>;
143
+ /**
144
+ * Restarts a module running on the machine with the given id or name.
145
+ *
146
+ * @param moduleId - The id matching the module_id field of the registry
147
+ * module in your part configuration
148
+ * @param moduleName - The name matching the name field of the local/registry
149
+ * module in your part configuration
150
+ * @group Modules
151
+ * @alpha
152
+ */
153
+ restartModule(moduleId?: string, moduleName?: string): Promise<void>;
143
154
  }
144
155
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viamrobotics/sdk",
3
- "version": "0.21.0",
3
+ "version": "0.22.0-b.0",
4
4
  "description": "",
5
5
  "main": "./dist/main.umd.js",
6
6
  "module": "./dist/main.es.js",