@viamrobotics/sdk 0.61.1 → 0.62.1
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/api-version.d.ts +1 -1
- package/dist/app/app-client.d.ts +4 -2
- package/dist/components/arm/arm.d.ts +5 -2
- package/dist/components/arm/client.d.ts +2 -1
- package/dist/components/gantry/client.d.ts +2 -1
- package/dist/components/gantry/gantry.d.ts +5 -2
- package/dist/gen/app/v1/app_pb.d.ts +46 -1
- package/dist/main.es.js +2952 -2923
- package/dist/main.umd.js +7 -7
- package/dist/utils.d.ts +9 -2
- package/package.json +1 -1
package/dist/api-version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const apiVersion = "v0.1.
|
|
1
|
+
export declare const apiVersion = "v0.1.515";
|
package/dist/app/app-client.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { JsonValue } from '@bufbuild/protobuf';
|
|
|
2
2
|
import { Struct } from '@bufbuild/protobuf';
|
|
3
3
|
import { type Transport } from '@connectrpc/connect';
|
|
4
4
|
import { PackageType } from '../gen/app/packages/v1/packages_pb';
|
|
5
|
-
import { APIKeyWithAuthorizations, Authorization, AuthorizedPermissions, CreateKeyFromExistingKeyAuthorizationsResponse, CreateKeyResponse, CreateModuleResponse, Fragment, FragmentVisibility, GetAppContentResponse, GetAppBrandingResponse, GetRobotPartLogsResponse, GetRobotPartResponse, GetRobotPartByNameAndLocationResponse, ListOrganizationMembersResponse, Location, LocationAuth, Model, Module, Organization, OrganizationIdentity, OrganizationInvite, OrgDetails, RegistryItem, RegistryItemStatus, Robot, RobotPart, RobotPartHistoryEntry, RotateKeyResponse, RoverRentalRobot, Visibility, LocationSummary } from '../gen/app/v1/app_pb';
|
|
5
|
+
import { APIKeyWithAuthorizations, Authorization, AuthorizedPermissions, CreateKeyFromExistingKeyAuthorizationsResponse, CreateKeyResponse, CreateModuleResponse, Fragment, FragmentImportList, FragmentVisibility, GetAppContentResponse, GetAppBrandingResponse, GetRobotPartLogsResponse, GetRobotPartResponse, GetRobotPartByNameAndLocationResponse, ListOrganizationMembersResponse, Location, LocationAuth, Model, Module, Organization, OrganizationIdentity, OrganizationInvite, OrgDetails, RegistryItem, RegistryItemStatus, Robot, RobotPart, RobotPartHistoryEntry, RotateKeyResponse, RoverRentalRobot, Visibility, LocationSummary } from '../gen/app/v1/app_pb';
|
|
6
6
|
import type { LogEntry } from '../gen/common/v1/common_pb';
|
|
7
7
|
/**
|
|
8
8
|
* Creates an Authorization object from auth details.
|
|
@@ -165,9 +165,11 @@ export declare class AppClient {
|
|
|
165
165
|
* @param publicNamespace Optional namespace to update the organization with
|
|
166
166
|
* @param region Optional region to update the organization with
|
|
167
167
|
* @param cid Optional CRM ID to update the organization with
|
|
168
|
+
* @param defaultFragments Optional default fragments to set for the
|
|
169
|
+
* organization
|
|
168
170
|
* @returns The updated organization details
|
|
169
171
|
*/
|
|
170
|
-
updateOrganization(organizationId: string, name?: string, publicNamespace?: string, region?: string, cid?: string): Promise<Organization | undefined>;
|
|
172
|
+
updateOrganization(organizationId: string, name?: string, publicNamespace?: string, region?: string, cid?: string, defaultFragments?: FragmentImportList): Promise<Organization | undefined>;
|
|
171
173
|
/**
|
|
172
174
|
* Deletes an organization.
|
|
173
175
|
*
|
|
@@ -2,7 +2,7 @@ import type { PlainMessage, Struct } from '@bufbuild/protobuf';
|
|
|
2
2
|
import type { Pose, Resource } from '../../types';
|
|
3
3
|
import * as armApi from '../../gen/component/arm/v1/arm_pb';
|
|
4
4
|
import type { Geometry, Mesh } from '../../gen/common/v1/common_pb';
|
|
5
|
-
import type {
|
|
5
|
+
import type { GetKinematicsResult } from '../../utils';
|
|
6
6
|
export type ArmJointPositions = PlainMessage<armApi.JointPositions>;
|
|
7
7
|
export declare const ArmJointPositions: typeof armApi.JointPositions;
|
|
8
8
|
/** Represents a physical robot arm that exists in three-dimensional space. */
|
|
@@ -61,8 +61,11 @@ export interface Arm extends Resource {
|
|
|
61
61
|
* For more information, see [Arm
|
|
62
62
|
* API](https://docs.viam.com/dev/reference/apis/components/arm/#getkinematics).
|
|
63
63
|
* ```
|
|
64
|
+
*
|
|
65
|
+
* @returns The legacy kinematics data shape or the newer object containing
|
|
66
|
+
* kinematics data plus a map of URDF mesh file paths to mesh data.
|
|
64
67
|
*/
|
|
65
|
-
getKinematics: (extra?: Struct) => Promise<
|
|
68
|
+
getKinematics: (extra?: Struct) => Promise<GetKinematicsResult>;
|
|
66
69
|
/**
|
|
67
70
|
* Move the end of the arm to the pose.
|
|
68
71
|
*
|
|
@@ -5,6 +5,7 @@ import type { RobotClient } from '../../robot';
|
|
|
5
5
|
import type { Options, Pose } from '../../types';
|
|
6
6
|
import type { Arm } from './arm';
|
|
7
7
|
import { Mesh } from '../../gen/common/v1/common_pb';
|
|
8
|
+
import type { GetKinematicsResult } from '../../utils';
|
|
8
9
|
/**
|
|
9
10
|
* A gRPC-web client for the Arm component.
|
|
10
11
|
*
|
|
@@ -18,7 +19,7 @@ export declare class ArmClient implements Arm {
|
|
|
18
19
|
constructor(client: RobotClient, name: string, options?: Options);
|
|
19
20
|
getEndPosition(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/common/v1/common_pb").Pose>;
|
|
20
21
|
getGeometries(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/common/v1/common_pb").Geometry[]>;
|
|
21
|
-
getKinematics(extra?: {}, callOptions?: CallOptions): Promise<
|
|
22
|
+
getKinematics(extra?: {}, callOptions?: CallOptions): Promise<GetKinematicsResult>;
|
|
22
23
|
get3DModels(extra?: {}, callOptions?: CallOptions): Promise<Record<string, Mesh>>;
|
|
23
24
|
moveToPosition(pose: Pose, extra?: {}, callOptions?: CallOptions): Promise<void>;
|
|
24
25
|
moveToJointPositions(jointPositionsList: number[], extra?: {}, callOptions?: CallOptions): Promise<void>;
|
|
@@ -3,6 +3,7 @@ import type { CallOptions } from '@connectrpc/connect';
|
|
|
3
3
|
import type { RobotClient } from '../../robot';
|
|
4
4
|
import type { Options } from '../../types';
|
|
5
5
|
import type { Gantry } from './gantry';
|
|
6
|
+
import type { GetKinematicsResult } from '../../utils';
|
|
6
7
|
/**
|
|
7
8
|
* A gRPC-web client for the Gantry component.
|
|
8
9
|
*
|
|
@@ -15,7 +16,7 @@ export declare class GantryClient implements Gantry {
|
|
|
15
16
|
callOptions: CallOptions;
|
|
16
17
|
constructor(client: RobotClient, name: string, options?: Options);
|
|
17
18
|
getGeometries(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/common/v1/common_pb").Geometry[]>;
|
|
18
|
-
getKinematics(extra?: {}, callOptions?: CallOptions): Promise<
|
|
19
|
+
getKinematics(extra?: {}, callOptions?: CallOptions): Promise<GetKinematicsResult>;
|
|
19
20
|
getPosition(extra?: {}, callOptions?: CallOptions): Promise<number[]>;
|
|
20
21
|
moveToPosition(positionsMm: number[], speedsMmPerSec: number[], extra?: {}, callOptions?: CallOptions): Promise<void>;
|
|
21
22
|
home(extra?: {}, callOptions?: CallOptions): Promise<boolean>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Struct } from '@bufbuild/protobuf';
|
|
2
2
|
import type { Resource } from '../../types';
|
|
3
3
|
import type { Geometry } from '../../gen/common/v1/common_pb';
|
|
4
|
-
import type {
|
|
4
|
+
import type { GetKinematicsResult } from '../../utils';
|
|
5
5
|
/** Represents a physical gantry that exists in three-dimensional space. */
|
|
6
6
|
export interface Gantry extends Resource {
|
|
7
7
|
/**
|
|
@@ -34,8 +34,11 @@ export interface Gantry extends Resource {
|
|
|
34
34
|
*
|
|
35
35
|
* For more information, see [Gantry
|
|
36
36
|
* API](https://docs.viam.com/dev/reference/apis/components/gantry/#getkinematics).
|
|
37
|
+
*
|
|
38
|
+
* @returns The legacy kinematics data shape or the newer object containing
|
|
39
|
+
* kinematics data plus a map of URDF mesh file paths to mesh data.
|
|
37
40
|
*/
|
|
38
|
-
getKinematics: (extra?: Struct) => Promise<
|
|
41
|
+
getKinematics: (extra?: Struct) => Promise<GetKinematicsResult>;
|
|
39
42
|
/**
|
|
40
43
|
* Move each axis of the gantry to the positionsMm at the speeds in
|
|
41
44
|
* speedsMmPerSec.
|
|
@@ -645,6 +645,11 @@ export declare class Organization extends Message<Organization> {
|
|
|
645
645
|
*/
|
|
646
646
|
cid?: string;
|
|
647
647
|
|
|
648
|
+
/**
|
|
649
|
+
* @generated from field: optional viam.app.v1.FragmentImportList default_fragments = 7;
|
|
650
|
+
*/
|
|
651
|
+
defaultFragments?: FragmentImportList;
|
|
652
|
+
|
|
648
653
|
constructor(data?: PartialMessage<Organization>);
|
|
649
654
|
|
|
650
655
|
static readonly runtime: typeof proto3;
|
|
@@ -6150,6 +6155,35 @@ export declare class ModuleMetadata extends Message<ModuleMetadata> {
|
|
|
6150
6155
|
static equals(a: ModuleMetadata | PlainMessage<ModuleMetadata> | undefined, b: ModuleMetadata | PlainMessage<ModuleMetadata> | undefined): boolean;
|
|
6151
6156
|
}
|
|
6152
6157
|
|
|
6158
|
+
/**
|
|
6159
|
+
* @generated from message viam.app.v1.MLModelVersion
|
|
6160
|
+
*/
|
|
6161
|
+
export declare class MLModelVersion extends Message<MLModelVersion> {
|
|
6162
|
+
/**
|
|
6163
|
+
* @generated from field: string version = 1;
|
|
6164
|
+
*/
|
|
6165
|
+
version: string;
|
|
6166
|
+
|
|
6167
|
+
/**
|
|
6168
|
+
* @generated from field: google.protobuf.Timestamp created_on = 2;
|
|
6169
|
+
*/
|
|
6170
|
+
createdOn?: Timestamp;
|
|
6171
|
+
|
|
6172
|
+
constructor(data?: PartialMessage<MLModelVersion>);
|
|
6173
|
+
|
|
6174
|
+
static readonly runtime: typeof proto3;
|
|
6175
|
+
static readonly typeName = "viam.app.v1.MLModelVersion";
|
|
6176
|
+
static readonly fields: FieldList;
|
|
6177
|
+
|
|
6178
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MLModelVersion;
|
|
6179
|
+
|
|
6180
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MLModelVersion;
|
|
6181
|
+
|
|
6182
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MLModelVersion;
|
|
6183
|
+
|
|
6184
|
+
static equals(a: MLModelVersion | PlainMessage<MLModelVersion> | undefined, b: MLModelVersion | PlainMessage<MLModelVersion> | undefined): boolean;
|
|
6185
|
+
}
|
|
6186
|
+
|
|
6153
6187
|
/**
|
|
6154
6188
|
* @generated from message viam.app.v1.MLModelMetadata
|
|
6155
6189
|
*/
|
|
@@ -6157,7 +6191,8 @@ export declare class MLModelMetadata extends Message<MLModelMetadata> {
|
|
|
6157
6191
|
/**
|
|
6158
6192
|
* A list of package versions for a ML model
|
|
6159
6193
|
*
|
|
6160
|
-
* @generated from field: repeated string versions = 1;
|
|
6194
|
+
* @generated from field: repeated string versions = 1 [deprecated = true];
|
|
6195
|
+
* @deprecated
|
|
6161
6196
|
*/
|
|
6162
6197
|
versions: string[];
|
|
6163
6198
|
|
|
@@ -6171,6 +6206,11 @@ export declare class MLModelMetadata extends Message<MLModelMetadata> {
|
|
|
6171
6206
|
*/
|
|
6172
6207
|
modelFramework: ModelFramework;
|
|
6173
6208
|
|
|
6209
|
+
/**
|
|
6210
|
+
* @generated from field: repeated viam.app.v1.MLModelVersion detailed_versions = 4;
|
|
6211
|
+
*/
|
|
6212
|
+
detailedVersions: MLModelVersion[];
|
|
6213
|
+
|
|
6174
6214
|
constructor(data?: PartialMessage<MLModelMetadata>);
|
|
6175
6215
|
|
|
6176
6216
|
static readonly runtime: typeof proto3;
|
|
@@ -8353,6 +8393,11 @@ export declare class GetAppContentResponse extends Message<GetAppContentResponse
|
|
|
8353
8393
|
*/
|
|
8354
8394
|
appType: AppType;
|
|
8355
8395
|
|
|
8396
|
+
/**
|
|
8397
|
+
* @generated from field: bool public = 4;
|
|
8398
|
+
*/
|
|
8399
|
+
public: boolean;
|
|
8400
|
+
|
|
8356
8401
|
constructor(data?: PartialMessage<GetAppContentResponse>);
|
|
8357
8402
|
|
|
8358
8403
|
static readonly runtime: typeof proto3;
|