@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.
- package/dist/__fixtures__/credentials.d.ts +5 -0
- package/dist/__fixtures__/test-constants.d.ts +4 -0
- package/dist/__mocks__/transports.d.ts +2 -0
- package/dist/__mocks__/webrtc.d.ts +2 -0
- package/dist/api-version.d.ts +1 -1
- package/dist/components/arm/arm.d.ts +13 -1
- package/dist/components/arm/client.d.ts +2 -0
- package/dist/gen/app/v1/billing_pb.d.ts +5 -0
- package/dist/main.es.js +1091 -1067
- package/dist/main.umd.js +7 -7
- package/dist/robot/__fixtures__/dial-configs.d.ts +4 -0
- package/dist/robot/__mocks__/robot-service.d.ts +5 -0
- package/dist/rpc/__fixtures__/dial-options.d.ts +6 -0
- package/dist/rpc/__fixtures__/dial-webrtc-options.d.ts +8 -0
- package/dist/rpc/__mocks__/signaling-exchanges.d.ts +3 -0
- package/package.json +1 -1
- /package/dist/robot/{client.spec.d.ts → __tests__/client.spec.d.ts} +0 -0
- /package/dist/robot/{grpc-connection-manager.spec.d.ts → __tests__/grpc-connection-manager.spec.d.ts} +0 -0
- /package/dist/robot/{session-manager.spec.d.ts → __tests__/session-manager.spec.d.ts} +0 -0
- /package/dist/rpc/{dial.spec.d.ts → __tests__/dial.spec.d.ts} +0 -0
|
@@ -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,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;
|
package/dist/api-version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const apiVersion = "v0.1.
|
|
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;
|