@viamrobotics/sdk 0.57.0 → 0.58.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.
Files changed (49) hide show
  1. package/README.md +0 -5
  2. package/dist/api-version.d.ts +1 -1
  3. package/dist/app/data-client.d.ts +3 -1
  4. package/dist/audio-common.d.ts +1 -1
  5. package/dist/gen/app/v1/app_pb.d.ts +65 -0
  6. package/dist/gen/component/camera/v1/camera_pb.d.ts +8 -0
  7. package/dist/gen/opentelemetry/proto/collector/logs/v1/logs_service_connect.d.ts +44 -0
  8. package/dist/gen/opentelemetry/proto/collector/logs/v1/logs_service_pb.d.ts +135 -0
  9. package/dist/gen/opentelemetry/proto/collector/metrics/v1/metrics_service_connect.d.ts +44 -0
  10. package/dist/gen/opentelemetry/proto/collector/metrics/v1/metrics_service_pb.d.ts +135 -0
  11. package/dist/gen/opentelemetry/proto/collector/profiles/v1development/profiles_service_connect.d.ts +43 -0
  12. package/dist/gen/opentelemetry/proto/collector/profiles/v1development/profiles_service_pb.d.ts +142 -0
  13. package/dist/gen/opentelemetry/proto/collector/trace/v1/trace_service_connect.d.ts +44 -0
  14. package/dist/gen/opentelemetry/proto/collector/trace/v1/trace_service_pb.d.ts +135 -0
  15. package/dist/gen/opentelemetry/proto/common/v1/common_pb.d.ts +322 -0
  16. package/dist/gen/opentelemetry/proto/logs/v1/logs_pb.d.ts +479 -0
  17. package/dist/gen/opentelemetry/proto/metrics/v1/metrics_pb.d.ts +1349 -0
  18. package/dist/gen/opentelemetry/proto/profiles/v1development/profiles_pb.d.ts +890 -0
  19. package/dist/gen/opentelemetry/proto/resource/v1/resource_pb.d.ts +73 -0
  20. package/dist/gen/opentelemetry/proto/trace/v1/trace_pb.d.ts +683 -0
  21. package/dist/gen/robot/v1/robot_connect.d.ts +10 -1
  22. package/dist/gen/robot/v1/robot_pb.d.ts +44 -0
  23. package/dist/main.es.js +12232 -11862
  24. package/dist/main.umd.js +7 -7
  25. package/dist/robot/client.d.ts +20 -16
  26. package/dist/robot/robot.d.ts +19 -10
  27. package/dist/robot.d.ts +1 -1
  28. package/dist/services/motion/client.d.ts +1 -0
  29. package/dist/services/motion/motion.d.ts +1 -0
  30. package/package.json +1 -1
  31. package/dist/app/app-client.spec.d.ts +0 -1
  32. package/dist/app/billing-client.spec.d.ts +0 -1
  33. package/dist/app/data-client.spec.d.ts +0 -1
  34. package/dist/app/ml-training-client.spec.d.ts +0 -1
  35. package/dist/app/provisioning-client.spec.d.ts +0 -1
  36. package/dist/app/viam-client.spec.d.ts +0 -1
  37. package/dist/components/audio-in/client.spec.d.ts +0 -1
  38. package/dist/components/audio-out/client.spec.d.ts +0 -1
  39. package/dist/components/board/client.spec.d.ts +0 -1
  40. package/dist/components/input-controller/client.spec.d.ts +0 -1
  41. package/dist/components/movement-sensor/client.spec.d.ts +0 -1
  42. package/dist/components/power-sensor/client.spec.d.ts +0 -1
  43. package/dist/extra/stream/client.spec.d.ts +0 -1
  44. package/dist/services/discovery/client.spec.d.ts +0 -1
  45. package/dist/services/motion/client.spec.d.ts +0 -1
  46. package/dist/services/navigation/client.spec.d.ts +0 -1
  47. package/dist/services/slam/client.spec.d.ts +0 -1
  48. package/dist/services/vision/client.spec.d.ts +0 -1
  49. package/dist/services/world-state-store/client.spec.d.ts +0 -1
@@ -3,7 +3,7 @@ import { type Client } from '@connectrpc/connect';
3
3
  import { type Credentials } from '../app/viam-transport';
4
4
  import { EventDispatcher } from '../events';
5
5
  import type { PoseInFrame, Transform } from '../gen/common/v1/common_pb';
6
- import { GetModelsFromModulesRequest, RestartModuleRequest, TransformPCDRequest, TransformPoseRequest } from '../gen/robot/v1/robot_pb';
6
+ import { GetModelsFromModulesRequest, GetPoseRequest, RestartModuleRequest, TransformPCDRequest, TransformPoseRequest } from '../gen/robot/v1/robot_pb';
7
7
  import type { Robot } from './robot';
8
8
  import type { AccessToken, Credential } from '../main';
9
9
  interface ICEServer {
@@ -161,10 +161,7 @@ export declare class RobotClient extends EventDispatcher implements Robot {
161
161
  readonly name: "CancelOperation";
162
162
  readonly I: typeof import("../gen/robot/v1/robot_pb").CancelOperationRequest;
163
163
  readonly O: typeof import("../gen/robot/v1/robot_pb").CancelOperationResponse;
164
- readonly kind: import("@bufbuild/protobuf").MethodKind.Unary; /**
165
- * Set timeout in milliseconds for dialing. Default is defined by
166
- * DIAL_TIMEOUT. A value of 0 disables the timeout.
167
- */
164
+ readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
168
165
  };
169
166
  readonly blockForOperation: {
170
167
  readonly name: "BlockForOperation";
@@ -264,7 +261,7 @@ export declare class RobotClient extends EventDispatcher implements Robot {
264
261
  };
265
262
  readonly getPose: {
266
263
  readonly name: "GetPose";
267
- readonly I: typeof import("../gen/robot/v1/robot_pb").GetPoseRequest;
264
+ readonly I: typeof GetPoseRequest;
268
265
  readonly O: typeof import("../gen/robot/v1/robot_pb").GetPoseResponse;
269
266
  readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
270
267
  };
@@ -280,6 +277,12 @@ export declare class RobotClient extends EventDispatcher implements Robot {
280
277
  readonly O: typeof import("../gen/robot/v1/robot_pb").TransformPCDResponse;
281
278
  readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
282
279
  };
280
+ readonly sendTraces: {
281
+ readonly name: "SendTraces";
282
+ readonly I: typeof import("../gen/robot/v1/robot_pb").SendTracesRequest;
283
+ readonly O: typeof import("../gen/robot/v1/robot_pb").SendTracesResponse;
284
+ readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
285
+ };
283
286
  };
284
287
  }>;
285
288
  get armService(): Client<{
@@ -320,7 +323,7 @@ export declare class RobotClient extends EventDispatcher implements Robot {
320
323
  readonly I: typeof import("../gen/component/arm/v1/arm_pb").StopRequest;
321
324
  readonly O: typeof import("../gen/component/arm/v1/arm_pb").StopResponse;
322
325
  readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
323
- }; /** Options required to dial a robot. */
326
+ };
324
327
  readonly isMoving: {
325
328
  readonly name: "IsMoving";
326
329
  readonly I: typeof import("../gen/component/arm/v1/arm_pb").IsMovingRequest;
@@ -390,10 +393,7 @@ export declare class RobotClient extends EventDispatcher implements Robot {
390
393
  readonly name: "IsMoving";
391
394
  readonly I: typeof import("../gen/component/base/v1/base_pb").IsMovingRequest;
392
395
  readonly O: typeof import("../gen/component/base/v1/base_pb").IsMovingResponse;
393
- readonly kind: import("@bufbuild/protobuf").MethodKind.Unary; /**
394
- * Set timeout in milliseconds for dialing. Default is defined by
395
- * DIAL_TIMEOUT. A value of 0 disables the timeout.
396
- */
396
+ readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
397
397
  };
398
398
  readonly doCommand: {
399
399
  readonly name: "DoCommand";
@@ -576,6 +576,7 @@ export declare class RobotClient extends EventDispatcher implements Robot {
576
576
  readonly name: "DoCommand";
577
577
  readonly I: typeof import("../gen/common/v1/common_pb").DoCommandRequest;
578
578
  readonly O: typeof import("../gen/common/v1/common_pb").DoCommandResponse;
579
+ /** Options required to dial a robot via gRPC. */
579
580
  readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
580
581
  };
581
582
  readonly getKinematics: {
@@ -648,7 +649,6 @@ export declare class RobotClient extends EventDispatcher implements Robot {
648
649
  readonly O: typeof import("../gen/common/v1/common_pb").DoCommandResponse;
649
650
  readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
650
651
  };
651
- /** @default Number.POSITIVE_INFINITY */
652
652
  readonly getGeometries: {
653
653
  readonly name: "GetGeometries";
654
654
  readonly I: typeof import("../gen/common/v1/common_pb").GetGeometriesRequest;
@@ -849,7 +849,7 @@ export declare class RobotClient extends EventDispatcher implements Robot {
849
849
  readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
850
850
  };
851
851
  readonly setRPM: {
852
- readonly name: "SetRPM";
852
+ readonly name: "SetRPM"; /** @default Number.POSITIVE_INFINITY */
853
853
  readonly I: typeof import("../gen/component/motor/v1/motor_pb").SetRPMRequest;
854
854
  readonly O: typeof import("../gen/component/motor/v1/motor_pb").SetRPMResponse;
855
855
  readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
@@ -893,7 +893,10 @@ export declare class RobotClient extends EventDispatcher implements Robot {
893
893
  readonly doCommand: {
894
894
  readonly name: "DoCommand";
895
895
  readonly I: typeof import("../gen/common/v1/common_pb").DoCommandRequest;
896
- readonly O: typeof import("../gen/common/v1/common_pb").DoCommandResponse;
896
+ readonly O: typeof import("../gen/common/v1/common_pb").DoCommandResponse; /**
897
+ * Validates a DialConf passed to createRobotClient. Throws an error for invalid
898
+ * configs.
899
+ */
897
900
  readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
898
901
  };
899
902
  readonly getGeometries: {
@@ -960,7 +963,7 @@ export declare class RobotClient extends EventDispatcher implements Robot {
960
963
  readonly I: typeof import("../gen/service/navigation/v1/navigation_pb").GetPropertiesRequest;
961
964
  readonly O: typeof import("../gen/service/navigation/v1/navigation_pb").GetPropertiesResponse;
962
965
  readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
963
- };
966
+ }; /** Options required to dial a robot. */
964
967
  readonly doCommand: {
965
968
  readonly name: "DoCommand";
966
969
  readonly I: typeof import("../gen/common/v1/common_pb").DoCommandRequest;
@@ -1128,7 +1131,7 @@ export declare class RobotClient extends EventDispatcher implements Robot {
1128
1131
  readonly getGeometries: {
1129
1132
  readonly name: "GetGeometries";
1130
1133
  readonly I: typeof import("../gen/common/v1/common_pb").GetGeometriesRequest;
1131
- readonly O: typeof import("../gen/common/v1/common_pb").GetGeometriesResponse; /** @default 10. */
1134
+ readonly O: typeof import("../gen/common/v1/common_pb").GetGeometriesResponse;
1132
1135
  readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
1133
1136
  };
1134
1137
  };
@@ -1226,5 +1229,6 @@ export declare class RobotClient extends EventDispatcher implements Robot {
1226
1229
  getMachineStatus(): Promise<import("../gen/robot/v1/robot_pb").GetMachineStatusResponse>;
1227
1230
  getVersion(): Promise<import("../gen/robot/v1/robot_pb").GetVersionResponse>;
1228
1231
  restartModule(moduleId?: string, moduleName?: string): Promise<void>;
1232
+ getPose(componentName: string, destinationFrame: string, supplementalTransforms: Transform[]): Promise<PoseInFrame>;
1229
1233
  }
1230
1234
  export {};
@@ -1,9 +1,18 @@
1
- import type { Struct } from '@bufbuild/protobuf';
1
+ import type { PlainMessage, Struct } from '@bufbuild/protobuf';
2
2
  import { MachineConnectionEvent } from '../events';
3
- import type { PoseInFrame, Transform } from '../gen/common/v1/common_pb';
4
3
  import * as proto from '../gen/robot/v1/robot_pb';
5
- import type { ResourceName } from '../types';
6
- export type CloudMetadata = proto.GetCloudMetadataResponse;
4
+ import type { PoseInFrame, ResourceName, Transform } from '../types';
5
+ export type CloudMetadata = PlainMessage<proto.GetCloudMetadataResponse>;
6
+ export type ConfigStatus = PlainMessage<proto.ConfigStatus>;
7
+ export type FrameSystemConfig = PlainMessage<proto.FrameSystemConfig>;
8
+ export type JobStatus = PlainMessage<proto.JobStatus>;
9
+ export type MachineStatus = PlainMessage<proto.GetMachineStatusResponse>;
10
+ export type MachineStatusState = proto.GetMachineStatusResponse_State;
11
+ export type ModuleModel = PlainMessage<proto.ModuleModel>;
12
+ export type ResourceRPCSubtype = PlainMessage<proto.ResourceRPCSubtype>;
13
+ export type ResourceStatus = PlainMessage<proto.ResourceStatus>;
14
+ export type Session = PlainMessage<proto.Session>;
15
+ export type Operation = PlainMessage<proto.Operation>;
7
16
  type Callback = (args: unknown) => void;
8
17
  export interface Robot {
9
18
  /**
@@ -18,7 +27,7 @@ export interface Robot {
18
27
  * @group Sessions
19
28
  * @alpha
20
29
  */
21
- getSessions(): Promise<proto.Session[]>;
30
+ getSessions(): Promise<Session[]>;
22
31
  /**
23
32
  * Get the list of operations currently running on the machine.
24
33
  *
@@ -31,7 +40,7 @@ export interface Robot {
31
40
  * @group Operations
32
41
  * @alpha
33
42
  */
34
- getOperations(): Promise<proto.Operation[]>;
43
+ getOperations(): Promise<Operation[]>;
35
44
  /**
36
45
  * Cancels the specified operation on the machine.
37
46
  *
@@ -89,7 +98,7 @@ export interface Robot {
89
98
  * @group Frame System
90
99
  * @alpha
91
100
  */
92
- frameSystemConfig(transform: Transform[]): Promise<proto.FrameSystemConfig[]>;
101
+ frameSystemConfig(transform: Transform[]): Promise<FrameSystemConfig[]>;
93
102
  /**
94
103
  * Transform a given source Pose from the reference frame to a new specified
95
104
  * destination which is a reference frame.
@@ -130,7 +139,7 @@ export interface Robot {
130
139
  * @group Resources
131
140
  * @alpha
132
141
  */
133
- getModelsFromModules(): Promise<proto.ModuleModel[]>;
142
+ getModelsFromModules(): Promise<ModuleModel[]>;
134
143
  /**
135
144
  * Get a list of all resources on the machine.
136
145
  *
@@ -156,7 +165,7 @@ export interface Robot {
156
165
  * @group Resources
157
166
  * @alpha
158
167
  */
159
- resourceRPCSubtypes(): Promise<proto.ResourceRPCSubtype[]>;
168
+ resourceRPCSubtypes(): Promise<ResourceRPCSubtype[]>;
160
169
  /**
161
170
  * Call a function when a connection event occurs.
162
171
  *
@@ -195,7 +204,7 @@ export interface Robot {
195
204
  *
196
205
  * @alpha
197
206
  */
198
- getMachineStatus(): Promise<proto.GetMachineStatusResponse>;
207
+ getMachineStatus(): Promise<MachineStatus>;
199
208
  /**
200
209
  * Restarts a module running on the machine with the given id or name.
201
210
  *
package/dist/robot.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export { RobotClient, type DialConf, type DialDirectConf, type DialWebRTCConf, } from './robot/client';
2
2
  export { createRobotClient } from './robot/dial';
3
- export type { CloudMetadata, Robot } from './robot/robot';
3
+ export * from './robot/robot';
@@ -21,6 +21,7 @@ export declare class MotionClient implements Motion {
21
21
  stopPlan(componentName: string, extra?: {}, callOptions?: CallOptions): Promise<null>;
22
22
  getPlan(componentName: string, lastPlanOnly?: boolean, executionId?: string, extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/service/motion/v1/motion_pb").GetPlanResponse>;
23
23
  listPlanStatuses(onlyActivePlans?: boolean, extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/service/motion/v1/motion_pb").ListPlanStatusesResponse>;
24
+ /** @deprecated Use `RobotClient.getPose` instead. */
24
25
  getPose(componentName: string, destinationFrame: string, supplementalTransforms: Transform[], extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/common/v1/common_pb").PoseInFrame>;
25
26
  doCommand(command: Struct, callOptions?: CallOptions): Promise<JsonValue>;
26
27
  }
@@ -229,6 +229,7 @@ export interface Motion extends Resource {
229
229
  /**
230
230
  * Get the current location and orientation of a component.
231
231
  *
232
+ * @deprecated Use `RobotClient.getPose` instead.
232
233
  * @example
233
234
  *
234
235
  * ```ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viamrobotics/sdk",
3
- "version": "0.57.0",
3
+ "version": "0.58.0",
4
4
  "description": "",
5
5
  "main": "./dist/main.umd.js",
6
6
  "module": "./dist/main.es.js",
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};