@viamrobotics/sdk 0.61.0 → 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.508";
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
  *
@@ -475,26 +475,30 @@ export declare class DataClient {
475
475
  * 0.3,
476
476
  * 0.3,
477
477
  * 0.6,
478
- * 0.6
478
+ * 0.6,
479
+ * 0.4
479
480
  * );
480
481
  * ```
481
482
  *
482
483
  * For more information, see [Data
483
484
  * API](https://docs.viam.com/dev/reference/apis/data-client/#addboundingboxtoimagebyid).
484
485
  *
485
- * @param binaryId The ID of the image to add the bounding box to
486
- * @param label A label for the bounding box
487
- * @param xMinNormalized The min X value of the bounding box normalized from 0
488
- * to 1
489
- * @param yMinNormalized The min Y value of the bounding box normalized from 0
490
- * to 1
491
- * @param xMaxNormalized The max X value of the bounding box normalized from 0
492
- * to 1
493
- * @param yMaxNormalized The max Y value of the bounding box normalized from 0
494
- * to 1
486
+ * @param {string | BinaryID} binaryId The ID of the image to add the bounding
487
+ * box to
488
+ * @param {string} label A label for the bounding box
489
+ * @param {number} xMinNormalized The min X value of the bounding box
490
+ * normalized from 0 to 1
491
+ * @param {number} yMinNormalized The min Y value of the bounding box
492
+ * normalized from 0 to 1
493
+ * @param {number} xMaxNormalized The max X value of the bounding box
494
+ * normalized from 0 to 1
495
+ * @param {number} yMaxNormalized The max Y value of the bounding box
496
+ * normalized from 0 to 1
497
+ * @param {number} [confidence] Model's confidence in a predicted bounding box
498
+ * expressed as a normalized value from 0 to 1
495
499
  * @returns The bounding box ID
496
500
  */
497
- addBoundingBoxToImageById(binaryId: string | BinaryID, label: string, xMinNormalized: number, yMinNormalized: number, xMaxNormalized: number, yMaxNormalized: number): Promise<string>;
501
+ addBoundingBoxToImageById(binaryId: string | BinaryID, label: string, xMinNormalized: number, yMinNormalized: number, xMaxNormalized: number, yMaxNormalized: number, confidence?: number): Promise<string>;
498
502
  /**
499
503
  * Remove a bounding box from an image.
500
504
  *
@@ -514,6 +518,40 @@ export declare class DataClient {
514
518
  * @param bboxId The ID of the bounding box to remove
515
519
  */
516
520
  removeBoundingBoxFromImageById(binId: string | BinaryID, bboxId: string): Promise<void>;
521
+ /**
522
+ * Update an existing bounding box
523
+ *
524
+ * @example
525
+ *
526
+ * ```ts
527
+ * await dataClient.updateBoundingBox(
528
+ * 'ccb74b53-1235-4328-a4b9-91dff1915a50/x5vur1fmps/YAEzj5I1kTwtYsDdf4a7ctaJpGgKRHmnM9bJNVyblk52UpqmrnMVTITaBKZctKEh',
529
+ * '691361a6f124d202010cf415'
530
+ * 'label1',
531
+ * 0.3,
532
+ * 0.3,
533
+ * 0.6,
534
+ * 0.6,
535
+ * 0.4
536
+ * );
537
+ * ```
538
+ *
539
+ * @param {string | BinaryID} binaryId The ID of the image that the target
540
+ * bounding box is attached to
541
+ * @param {string} bboxId The ID of the bounding box
542
+ * @param {string} [label] A label for the bounding box
543
+ * @param {number} [xMinNormalized] The min X value of the bounding box
544
+ * normalized from 0 to 1
545
+ * @param {number} [yMinNormalized] The min Y value of the bounding box
546
+ * normalized from 0 to 1
547
+ * @param {number} [xMaxNormalized] The max X value of the bounding box
548
+ * normalized from 0 to 1
549
+ * @param {number} [yMaxNormalized] The max Y value of the bounding box
550
+ * normalized from 0 to 1
551
+ * @param {number} [confidence] Model's confidence in a predicted bounding box
552
+ * expressed as a normalized value from 0 to 1
553
+ */
554
+ updateBoundingBox(binaryId: string | BinaryID, bboxId: string, label: string, xMinNormalized: number, yMinNormalized: number, xMaxNormalized: number, yMaxNormalized: number, confidence?: number): Promise<void>;
517
555
  /**
518
556
  * Get a list of bounding box labels using a Filter.
519
557
  *
@@ -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.
@@ -1876,6 +1876,11 @@ export declare class AddBoundingBoxToImageByIDRequest extends Message<AddBoundin
1876
1876
  */
1877
1877
  yMaxNormalized: number;
1878
1878
 
1879
+ /**
1880
+ * @generated from field: optional double confidence = 9;
1881
+ */
1882
+ confidence?: number;
1883
+
1879
1884
  constructor(data?: PartialMessage<AddBoundingBoxToImageByIDRequest>);
1880
1885
 
1881
1886
  static readonly runtime: typeof proto3;
@@ -2020,6 +2025,11 @@ export declare class UpdateBoundingBoxRequest extends Message<UpdateBoundingBoxR
2020
2025
  */
2021
2026
  yMaxNormalized?: number;
2022
2027
 
2028
+ /**
2029
+ * @generated from field: optional double confidence = 9;
2030
+ */
2031
+ confidence?: number;
2032
+
2023
2033
  constructor(data?: PartialMessage<UpdateBoundingBoxRequest>);
2024
2034
 
2025
2035
  static readonly runtime: typeof proto3;
@@ -921,9 +921,9 @@ export declare class GetOrganizationNamespaceAvailabilityResponse extends Messag
921
921
  */
922
922
  export declare class FragmentImportList extends Message<FragmentImportList> {
923
923
  /**
924
- * @generated from field: repeated viam.app.v1.FragmentImport imports = 1;
924
+ * @generated from field: repeated viam.app.v1.FragmentImport fragments = 1;
925
925
  */
926
- imports: FragmentImport[];
926
+ fragments: FragmentImport[];
927
927
 
928
928
  constructor(data?: PartialMessage<FragmentImportList>);
929
929
 
@@ -972,9 +972,9 @@ export declare class UpdateOrganizationRequest extends Message<UpdateOrganizatio
972
972
  cid?: string;
973
973
 
974
974
  /**
975
- * @generated from field: optional viam.app.v1.FragmentImportList fragment_imports = 6;
975
+ * @generated from field: optional viam.app.v1.FragmentImportList default_fragments = 6;
976
976
  */
977
- fragmentImports?: FragmentImportList;
977
+ defaultFragments?: FragmentImportList;
978
978
 
979
979
  constructor(data?: PartialMessage<UpdateOrganizationRequest>);
980
980
 
@@ -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;
@@ -859,6 +859,13 @@ export declare class GetKinematicsResponse extends Message<GetKinematicsResponse
859
859
  */
860
860
  kinematicsData: Uint8Array;
861
861
 
862
+ /**
863
+ * Map of URDF mesh file paths to mesh data
864
+ *
865
+ * @generated from field: map<string, viam.common.v1.Mesh> meshes_by_urdf_filepath = 3;
866
+ */
867
+ meshesByUrdfFilepath: { [key: string]: Mesh };
868
+
862
869
  constructor(data?: PartialMessage<GetKinematicsResponse>);
863
870
 
864
871
  static readonly runtime: typeof proto3;