@viamrobotics/sdk 0.54.0 → 0.56.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.
@@ -0,0 +1,5 @@
1
+ import type { Credential, AccessToken } from '../main';
2
+ export declare const testCredential: Credential;
3
+ export declare const differentCredential: Credential;
4
+ export declare const testAccessToken: AccessToken;
5
+ export declare const differentAccessToken: AccessToken;
@@ -0,0 +1,4 @@
1
+ export declare const TEST_URL = "http://base.test";
2
+ export declare const TEST_HOST = "test-host";
3
+ export declare const TEST_AUTH_ENTITY = "test-entity";
4
+ export declare const TEST_SIGNALING_ADDRESS = "https://signaling.test";
@@ -0,0 +1,2 @@
1
+ import type { Transport } from '@connectrpc/connect';
2
+ export declare const createMockTransport: () => Transport;
@@ -0,0 +1,2 @@
1
+ export declare const createMockPeerConnection: (closeFn?: import("vitest").Mock<any, any>, addEventListenerFn?: import("vitest").Mock<any, any>, removeEventListenerFn?: import("vitest").Mock<any, any>, iceConnectionState?: RTCIceConnectionState) => RTCPeerConnection;
2
+ export declare const createMockDataChannel: (closeFn?: import("vitest").Mock<any, any>, addEventListenerFn?: import("vitest").Mock<any, any>, removeEventListenerFn?: import("vitest").Mock<any, any>, readyState?: RTCDataChannelState) => RTCDataChannel;
@@ -1 +1 @@
1
- export declare const apiVersion = "v0.1.487";
1
+ export declare const apiVersion = "v0.1.488";
@@ -1,7 +1,7 @@
1
1
  import type { PlainMessage, Struct } from '@bufbuild/protobuf';
2
2
  import type { Pose, Resource, Vector3 } from '../../types';
3
3
  import * as armApi from '../../gen/component/arm/v1/arm_pb';
4
- import type { Geometry } from '../../gen/common/v1/common_pb';
4
+ import type { Geometry, Mesh } from '../../gen/common/v1/common_pb';
5
5
  import type { Frame } from '../../gen/app/v1/robot_pb';
6
6
  export type ArmJointPositions = PlainMessage<armApi.JointPositions>;
7
7
  export declare const ArmJointPositions: typeof armApi.JointPositions;
@@ -36,6 +36,18 @@ export interface Arm extends Resource {
36
36
  * API](https://docs.viam.com/dev/reference/apis/components/arm/#getgeometries).
37
37
  */
38
38
  getGeometries: (extra?: Struct) => Promise<Geometry[]>;
39
+ /**
40
+ * Get the 3D models of the component
41
+ *
42
+ * @example
43
+ *
44
+ * ```ts
45
+ * const arm = new VIAM.ArmClient(machine, 'my_arm');
46
+ * const models = await arm.get3DModels();
47
+ * console.log(models);
48
+ * ```
49
+ */
50
+ get3DModels: (extra?: Struct) => Promise<Record<string, Mesh>>;
39
51
  /**
40
52
  * Get the kinematics information associated with the arm.
41
53
  *
@@ -4,6 +4,7 @@ import { JointPositions } from '../../gen/component/arm/v1/arm_pb';
4
4
  import type { RobotClient } from '../../robot';
5
5
  import type { Options, Pose } from '../../types';
6
6
  import type { Arm } from './arm';
7
+ import { Mesh } from '../../gen/common/v1/common_pb';
7
8
  /**
8
9
  * A gRPC-web client for the Arm component.
9
10
  *
@@ -17,6 +18,7 @@ export declare class ArmClient implements Arm {
17
18
  constructor(client: RobotClient, name: string, options?: Options);
18
19
  getEndPosition(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/common/v1/common_pb").Pose>;
19
20
  getGeometries(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/common/v1/common_pb").Geometry[]>;
21
+ get3DModels(extra?: {}, callOptions?: CallOptions): Promise<Record<string, Mesh>>;
20
22
  getKinematics(extra?: {}, callOptions?: CallOptions): Promise<{
21
23
  name: string;
22
24
  kinematic_param_type: "SVA" | "URDF" | "UNSPECIFIED";
@@ -937,6 +937,11 @@ export declare class CreateInvoiceAndChargeImmediatelyRequest extends Message<Cr
937
937
  * @generated from message viam.app.v1.CreateInvoiceAndChargeImmediatelyResponse
938
938
  */
939
939
  export declare class CreateInvoiceAndChargeImmediatelyResponse extends Message<CreateInvoiceAndChargeImmediatelyResponse> {
940
+ /**
941
+ * @generated from field: string invoice_id = 1;
942
+ */
943
+ invoiceId: string;
944
+
940
945
  constructor(data?: PartialMessage<CreateInvoiceAndChargeImmediatelyResponse>);
941
946
 
942
947
  static readonly runtime: typeof proto3;