@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.
- package/dist/app/viam-transport.d.ts +1 -0
- package/dist/main.d.ts +1 -1
- package/dist/main.es.js +23 -11
- package/dist/main.umd.js +2 -2
- package/dist/robot/client.d.ts +1 -0
- package/dist/robot/robot.d.ts +11 -0
- package/package.json +1 -1
package/dist/robot/client.d.ts
CHANGED
|
@@ -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 {};
|
package/dist/robot/robot.d.ts
CHANGED
|
@@ -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 {};
|