@viamrobotics/sdk 0.60.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.504";
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
  *
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
 
6
- import { GetLogsRequest, GetLogsResponse, LinkOrgRequest, LinkOrgResponse, LinkRepoRequest, LinkRepoResponse, ListAppLinksRequest, ListAppLinksResponse, ListJobsRequest, ListJobsResponse, ListRepoLinksRequest, ListRepoLinksResponse, RemoveAppLinkRequest, RemoveAppLinkResponse, StartBuildRequest, StartBuildResponse, StartReloadBuildRequest, StartReloadBuildResponse, UnlinkOrgRequest, UnlinkOrgResponse, UnlinkRepoRequest, UnlinkRepoResponse } from "./build_pb.js";
6
+ import { GetLogsRequest, GetLogsResponse, LinkOrgRequest, LinkOrgResponse, LinkRepoRequest, LinkRepoResponse, ListAppLinksRequest, ListAppLinksResponse, ListJobsRequest, ListJobsResponse, ListRepoLinksRequest, ListRepoLinksResponse, RemoveAppLinkRequest, RemoveAppLinkResponse, StartBuildRequest, StartBuildResponse, StartPackageBuildRequest, StartPackageBuildResponse, StartReloadBuildRequest, StartReloadBuildResponse, UnlinkOrgRequest, UnlinkOrgResponse, UnlinkRepoRequest, UnlinkRepoResponse } from "./build_pb.js";
7
7
  import { MethodKind } from "@bufbuild/protobuf";
8
8
 
9
9
  /**
@@ -135,6 +135,17 @@ export declare const BuildService: {
135
135
  readonly O: typeof StartReloadBuildResponse,
136
136
  readonly kind: MethodKind.ClientStreaming,
137
137
  },
138
+ /**
139
+ * Start a build where the source code is hosted by Viam
140
+ *
141
+ * @generated from rpc viam.app.build.v1.BuildService.StartPackageBuild
142
+ */
143
+ readonly startPackageBuild: {
144
+ readonly name: "StartPackageBuild",
145
+ readonly I: typeof StartPackageBuildRequest,
146
+ readonly O: typeof StartPackageBuildResponse,
147
+ readonly kind: MethodKind.Unary,
148
+ },
138
149
  }
139
150
  };
140
151
 
@@ -256,6 +256,77 @@ export declare class StartReloadBuildResponse extends Message<StartReloadBuildRe
256
256
  static equals(a: StartReloadBuildResponse | PlainMessage<StartReloadBuildResponse> | undefined, b: StartReloadBuildResponse | PlainMessage<StartReloadBuildResponse> | undefined): boolean;
257
257
  }
258
258
 
259
+ /**
260
+ * @generated from message viam.app.build.v1.StartPackageBuildRequest
261
+ */
262
+ export declare class StartPackageBuildRequest extends Message<StartPackageBuildRequest> {
263
+ /**
264
+ * module_id to build for
265
+ *
266
+ * @generated from field: string module_id = 1;
267
+ */
268
+ moduleId: string;
269
+
270
+ /**
271
+ * the version of source code to build for
272
+ *
273
+ * @generated from field: string package_version = 2;
274
+ */
275
+ packageVersion: string;
276
+
277
+ /**
278
+ * version of the module to publish to the registry. must be valid semver2.0 string (ex: 1.2.3-rc0)
279
+ *
280
+ * @generated from field: string module_version = 3;
281
+ */
282
+ moduleVersion: string;
283
+
284
+ /**
285
+ * specify the platforms to build for (ex: linux/arm64)
286
+ *
287
+ * @generated from field: repeated string platforms = 4;
288
+ */
289
+ platforms: string[];
290
+
291
+ constructor(data?: PartialMessage<StartPackageBuildRequest>);
292
+
293
+ static readonly runtime: typeof proto3;
294
+ static readonly typeName = "viam.app.build.v1.StartPackageBuildRequest";
295
+ static readonly fields: FieldList;
296
+
297
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StartPackageBuildRequest;
298
+
299
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StartPackageBuildRequest;
300
+
301
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StartPackageBuildRequest;
302
+
303
+ static equals(a: StartPackageBuildRequest | PlainMessage<StartPackageBuildRequest> | undefined, b: StartPackageBuildRequest | PlainMessage<StartPackageBuildRequest> | undefined): boolean;
304
+ }
305
+
306
+ /**
307
+ * @generated from message viam.app.build.v1.StartPackageBuildResponse
308
+ */
309
+ export declare class StartPackageBuildResponse extends Message<StartPackageBuildResponse> {
310
+ /**
311
+ * @generated from field: string build_id = 1;
312
+ */
313
+ buildId: string;
314
+
315
+ constructor(data?: PartialMessage<StartPackageBuildResponse>);
316
+
317
+ static readonly runtime: typeof proto3;
318
+ static readonly typeName = "viam.app.build.v1.StartPackageBuildResponse";
319
+ static readonly fields: FieldList;
320
+
321
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StartPackageBuildResponse;
322
+
323
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StartPackageBuildResponse;
324
+
325
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StartPackageBuildResponse;
326
+
327
+ static equals(a: StartPackageBuildResponse | PlainMessage<StartPackageBuildResponse> | undefined, b: StartPackageBuildResponse | PlainMessage<StartPackageBuildResponse> | undefined): boolean;
328
+ }
329
+
259
330
  /**
260
331
  * GetLogsResponse is a streaming endpoint that may have multiple messages that belong
261
332
  * to the same build_step if there are too many bytes to fit into a single gRPC
@@ -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;
@@ -435,6 +435,11 @@ export declare class UploadMetadata extends Message<UploadMetadata> {
435
435
  */
436
436
  datasetIds: string[];
437
437
 
438
+ /**
439
+ * @generated from field: string mime_type = 13;
440
+ */
441
+ mimeType: string;
442
+
438
443
  constructor(data?: PartialMessage<UploadMetadata>);
439
444
 
440
445
  static readonly runtime: typeof proto3;
@@ -119,6 +119,55 @@ export declare enum FragmentErrorType {
119
119
  CYCLE_DETECTED = 4,
120
120
  }
121
121
 
122
+ /**
123
+ * @generated from enum viam.app.v1.ModuleSourceType
124
+ */
125
+ export declare enum ModuleSourceType {
126
+ /**
127
+ * @generated from enum value: MODULE_SOURCE_TYPE_UNSPECIFIED = 0;
128
+ */
129
+ UNSPECIFIED = 0,
130
+
131
+ /**
132
+ * Module source code is stored externally, such as in github.
133
+ *
134
+ * @generated from enum value: MODULE_SOURCE_TYPE_EXTERNAL = 1;
135
+ */
136
+ EXTERNAL = 1,
137
+
138
+ /**
139
+ * Module source code is versioned and managed within Viam.
140
+ *
141
+ * @generated from enum value: MODULE_SOURCE_TYPE_VIAM_HOSTED = 2;
142
+ */
143
+ VIAM_HOSTED = 2,
144
+ }
145
+
146
+ /**
147
+ * @generated from enum viam.app.v1.ModuleLanguage
148
+ */
149
+ export declare enum ModuleLanguage {
150
+ /**
151
+ * @generated from enum value: MODULE_LANGUAGE_UNSPECIFIED = 0;
152
+ */
153
+ UNSPECIFIED = 0,
154
+
155
+ /**
156
+ * @generated from enum value: MODULE_LANGUAGE_GOLANG = 1;
157
+ */
158
+ GOLANG = 1,
159
+
160
+ /**
161
+ * @generated from enum value: MODULE_LANGUAGE_PYTHON = 2;
162
+ */
163
+ PYTHON = 2,
164
+
165
+ /**
166
+ * @generated from enum value: MODULE_LANGUAGE_CPP = 3;
167
+ */
168
+ CPP = 3,
169
+ }
170
+
122
171
  /**
123
172
  * @generated from enum viam.app.v1.RegistryItemStatus
124
173
  */
@@ -872,9 +921,9 @@ export declare class GetOrganizationNamespaceAvailabilityResponse extends Messag
872
921
  */
873
922
  export declare class FragmentImportList extends Message<FragmentImportList> {
874
923
  /**
875
- * @generated from field: repeated viam.app.v1.FragmentImport imports = 1;
924
+ * @generated from field: repeated viam.app.v1.FragmentImport fragments = 1;
876
925
  */
877
- imports: FragmentImport[];
926
+ fragments: FragmentImport[];
878
927
 
879
928
  constructor(data?: PartialMessage<FragmentImportList>);
880
929
 
@@ -923,9 +972,9 @@ export declare class UpdateOrganizationRequest extends Message<UpdateOrganizatio
923
972
  cid?: string;
924
973
 
925
974
  /**
926
- * @generated from field: optional viam.app.v1.FragmentImportList fragment_imports = 6;
975
+ * @generated from field: optional viam.app.v1.FragmentImportList default_fragments = 6;
927
976
  */
928
- fragmentImports?: FragmentImportList;
977
+ defaultFragments?: FragmentImportList;
929
978
 
930
979
  constructor(data?: PartialMessage<UpdateOrganizationRequest>);
931
980
 
@@ -6072,6 +6121,20 @@ export declare class ModuleMetadata extends Message<ModuleMetadata> {
6072
6121
  */
6073
6122
  apps: App[];
6074
6123
 
6124
+ /**
6125
+ * Determines the type of module, either a registry module or an inline module.
6126
+ *
6127
+ * @generated from field: optional viam.app.v1.ModuleSourceType source_type = 7;
6128
+ */
6129
+ sourceType?: ModuleSourceType;
6130
+
6131
+ /**
6132
+ * Specifies the language that the module is written in.
6133
+ *
6134
+ * @generated from field: optional viam.app.v1.ModuleLanguage language = 8;
6135
+ */
6136
+ language?: ModuleLanguage;
6137
+
6075
6138
  constructor(data?: PartialMessage<ModuleMetadata>);
6076
6139
 
6077
6140
  static readonly runtime: typeof proto3;
@@ -6594,6 +6657,16 @@ export declare class ListRegistryItemsRequest extends Message<ListRegistryItemsR
6594
6657
  */
6595
6658
  includeMarkdownDocumentation?: boolean;
6596
6659
 
6660
+ /**
6661
+ * @generated from field: repeated viam.app.v1.ModuleSourceType module_source_types = 10;
6662
+ */
6663
+ moduleSourceTypes: ModuleSourceType[];
6664
+
6665
+ /**
6666
+ * @generated from field: repeated viam.app.v1.ModuleLanguage module_languages = 11;
6667
+ */
6668
+ moduleLanguages: ModuleLanguage[];
6669
+
6597
6670
  constructor(data?: PartialMessage<ListRegistryItemsRequest>);
6598
6671
 
6599
6672
  static readonly runtime: typeof proto3;
@@ -7041,6 +7114,20 @@ export declare class UpdateModuleMetadata extends Message<UpdateModuleMetadata>
7041
7114
  */
7042
7115
  apps: App[];
7043
7116
 
7117
+ /**
7118
+ * Determines where the source code of module is managed, either externally or hosted by viam.
7119
+ *
7120
+ * @generated from field: optional viam.app.v1.ModuleSourceType source_type = 4;
7121
+ */
7122
+ sourceType?: ModuleSourceType;
7123
+
7124
+ /**
7125
+ * The language the module is written in
7126
+ *
7127
+ * @generated from field: optional viam.app.v1.ModuleLanguage language = 5;
7128
+ */
7129
+ language?: ModuleLanguage;
7130
+
7044
7131
  constructor(data?: PartialMessage<UpdateModuleMetadata>);
7045
7132
 
7046
7133
  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;
@@ -359,6 +359,11 @@ export declare class CloudConfig extends Message<CloudConfig> {
359
359
  */
360
360
  appAddress: string;
361
361
 
362
+ /**
363
+ * @generated from field: viam.provisioning.v1.APIKey api_key = 4;
364
+ */
365
+ apiKey?: APIKey;
366
+
362
367
  constructor(data?: PartialMessage<CloudConfig>);
363
368
 
364
369
  static readonly runtime: typeof proto3;
@@ -374,3 +379,32 @@ export declare class CloudConfig extends Message<CloudConfig> {
374
379
  static equals(a: CloudConfig | PlainMessage<CloudConfig> | undefined, b: CloudConfig | PlainMessage<CloudConfig> | undefined): boolean;
375
380
  }
376
381
 
382
+ /**
383
+ * @generated from message viam.provisioning.v1.APIKey
384
+ */
385
+ export declare class APIKey extends Message<APIKey> {
386
+ /**
387
+ * @generated from field: string id = 1;
388
+ */
389
+ id: string;
390
+
391
+ /**
392
+ * @generated from field: string key = 2;
393
+ */
394
+ key: string;
395
+
396
+ constructor(data?: PartialMessage<APIKey>);
397
+
398
+ static readonly runtime: typeof proto3;
399
+ static readonly typeName = "viam.provisioning.v1.APIKey";
400
+ static readonly fields: FieldList;
401
+
402
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): APIKey;
403
+
404
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): APIKey;
405
+
406
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): APIKey;
407
+
408
+ static equals(a: APIKey | PlainMessage<APIKey> | undefined, b: APIKey | PlainMessage<APIKey> | undefined): boolean;
409
+ }
410
+