@viamrobotics/sdk 0.61.0 → 0.61.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.
@@ -1 +1 @@
1
- export declare const apiVersion = "v0.1.508";
1
+ export declare const apiVersion = "v0.1.512";
@@ -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
  *
@@ -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
 
@@ -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;