@viamrobotics/sdk 0.61.1 → 0.62.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.
@@ -1 +1 @@
1
- export declare const apiVersion = "v0.1.512";
1
+ export declare const apiVersion = "v0.1.513";
@@ -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 { KinematicsData } from '../../utils';
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<KinematicsData>;
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<import("../../utils").KinematicsData>;
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<import("../../utils").KinematicsData>;
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 { KinematicsData } from '../../utils';
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<KinematicsData>;
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.
@@ -6150,6 +6150,35 @@ export declare class ModuleMetadata extends Message<ModuleMetadata> {
6150
6150
  static equals(a: ModuleMetadata | PlainMessage<ModuleMetadata> | undefined, b: ModuleMetadata | PlainMessage<ModuleMetadata> | undefined): boolean;
6151
6151
  }
6152
6152
 
6153
+ /**
6154
+ * @generated from message viam.app.v1.MLModelVersion
6155
+ */
6156
+ export declare class MLModelVersion extends Message<MLModelVersion> {
6157
+ /**
6158
+ * @generated from field: string version = 1;
6159
+ */
6160
+ version: string;
6161
+
6162
+ /**
6163
+ * @generated from field: google.protobuf.Timestamp created_on = 2;
6164
+ */
6165
+ createdOn?: Timestamp;
6166
+
6167
+ constructor(data?: PartialMessage<MLModelVersion>);
6168
+
6169
+ static readonly runtime: typeof proto3;
6170
+ static readonly typeName = "viam.app.v1.MLModelVersion";
6171
+ static readonly fields: FieldList;
6172
+
6173
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MLModelVersion;
6174
+
6175
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MLModelVersion;
6176
+
6177
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MLModelVersion;
6178
+
6179
+ static equals(a: MLModelVersion | PlainMessage<MLModelVersion> | undefined, b: MLModelVersion | PlainMessage<MLModelVersion> | undefined): boolean;
6180
+ }
6181
+
6153
6182
  /**
6154
6183
  * @generated from message viam.app.v1.MLModelMetadata
6155
6184
  */
@@ -6157,7 +6186,8 @@ export declare class MLModelMetadata extends Message<MLModelMetadata> {
6157
6186
  /**
6158
6187
  * A list of package versions for a ML model
6159
6188
  *
6160
- * @generated from field: repeated string versions = 1;
6189
+ * @generated from field: repeated string versions = 1 [deprecated = true];
6190
+ * @deprecated
6161
6191
  */
6162
6192
  versions: string[];
6163
6193
 
@@ -6171,6 +6201,11 @@ export declare class MLModelMetadata extends Message<MLModelMetadata> {
6171
6201
  */
6172
6202
  modelFramework: ModelFramework;
6173
6203
 
6204
+ /**
6205
+ * @generated from field: repeated viam.app.v1.MLModelVersion detailed_versions = 4;
6206
+ */
6207
+ detailedVersions: MLModelVersion[];
6208
+
6174
6209
  constructor(data?: PartialMessage<MLModelMetadata>);
6175
6210
 
6176
6211
  static readonly runtime: typeof proto3;