@viamrobotics/sdk 0.40.1 → 0.41.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.
- package/dist/api-version.d.ts +1 -1
- package/dist/app/app-client.d.ts +234 -0
- package/dist/app/billing-client.d.ts +12 -0
- package/dist/app/data-client.d.ts +98 -10
- package/dist/app/ml-training-client.d.ts +18 -0
- package/dist/components/arm/arm.d.ts +21 -0
- package/dist/components/base/base.d.ts +24 -0
- package/dist/components/board/board.d.ts +33 -0
- package/dist/components/button/button.d.ts +3 -0
- package/dist/components/camera/camera.d.ts +12 -0
- package/dist/components/encoder/encoder.d.ts +9 -0
- package/dist/components/gantry/gantry.d.ts +21 -0
- package/dist/components/generic/generic.d.ts +3 -0
- package/dist/components/gripper/gripper.d.ts +15 -0
- package/dist/components/input-controller/input-controller.d.ts +6 -0
- package/dist/components/motor/motor.d.ts +30 -0
- package/dist/components/movement-sensor/movement-sensor.d.ts +27 -0
- package/dist/components/power-sensor/power-sensor.d.ts +12 -0
- package/dist/components/sensor/sensor.d.ts +3 -0
- package/dist/components/servo/servo.d.ts +12 -0
- package/dist/components/switch/switch.d.ts +9 -0
- package/dist/gen/app/datapipelines/v1/data_pipelines_connect.d.ts +7 -7
- package/dist/gen/app/datapipelines/v1/data_pipelines_pb.d.ts +35 -35
- package/dist/gen/app/v1/app_connect.d.ts +12 -1
- package/dist/gen/app/v1/app_pb.d.ts +63 -0
- package/dist/gen/app/v1/robot_pb.d.ts +5 -0
- package/dist/main.d.ts +1 -1
- package/dist/main.es.js +2132 -1730
- package/dist/main.umd.js +7 -7
- package/dist/services/data-manager/client.d.ts +6 -0
- package/dist/services/ml-model/client.d.ts +1 -1
- package/dist/services/ml-model/index.d.ts +1 -1
- package/dist/services/ml-model/ml-model.d.ts +2 -0
- package/dist/services/vision/vision.d.ts +21 -0
- package/package.json +1 -1
package/dist/app/app-client.d.ts
CHANGED
|
@@ -52,6 +52,9 @@ export declare class AppClient {
|
|
|
52
52
|
* );
|
|
53
53
|
* ```
|
|
54
54
|
*
|
|
55
|
+
* For more information, see [App
|
|
56
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#getuseridbyemail).
|
|
57
|
+
*
|
|
55
58
|
* @param email The email address of the user
|
|
56
59
|
* @returns The user's ID
|
|
57
60
|
*/
|
|
@@ -59,6 +62,9 @@ export declare class AppClient {
|
|
|
59
62
|
/**
|
|
60
63
|
* Create a new organization.
|
|
61
64
|
*
|
|
65
|
+
* For more information, see [App
|
|
66
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#createorganization).
|
|
67
|
+
*
|
|
62
68
|
* @param name The name of the new organization
|
|
63
69
|
* @returns The new organization
|
|
64
70
|
*/
|
|
@@ -72,6 +78,9 @@ export declare class AppClient {
|
|
|
72
78
|
* const organizations = await appClient.listOrganizations();
|
|
73
79
|
* ```
|
|
74
80
|
*
|
|
81
|
+
* For more information, see [App
|
|
82
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#listorganizations).
|
|
83
|
+
*
|
|
75
84
|
* @returns The organization list
|
|
76
85
|
*/
|
|
77
86
|
listOrganizations(): Promise<Organization[]>;
|
|
@@ -87,6 +96,9 @@ export declare class AppClient {
|
|
|
87
96
|
* );
|
|
88
97
|
* ```
|
|
89
98
|
*
|
|
99
|
+
* For more information, see [App
|
|
100
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#getorganizationswithaccesstolocation).
|
|
101
|
+
*
|
|
90
102
|
* @param locationId The ID of the location to query
|
|
91
103
|
* @returns The list of locations with access to the requested location
|
|
92
104
|
*/
|
|
@@ -109,6 +121,9 @@ export declare class AppClient {
|
|
|
109
121
|
* );
|
|
110
122
|
* ```
|
|
111
123
|
*
|
|
124
|
+
* For more information, see [App
|
|
125
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#getorganization).
|
|
126
|
+
*
|
|
112
127
|
* @param organizationId The ID of the organization
|
|
113
128
|
* @returns Details about the organization, if it exists
|
|
114
129
|
*/
|
|
@@ -123,6 +138,9 @@ export declare class AppClient {
|
|
|
123
138
|
* await appClient.getOrganizationNamespaceAvailability('name');
|
|
124
139
|
* ```
|
|
125
140
|
*
|
|
141
|
+
* For more information, see [App
|
|
142
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#getorganizationnamespaceavailability).
|
|
143
|
+
*
|
|
126
144
|
* @param namespace The namespace to query for availability
|
|
127
145
|
* @returns A boolean indicating whether or not the namespace is available
|
|
128
146
|
*/
|
|
@@ -139,6 +157,9 @@ export declare class AppClient {
|
|
|
139
157
|
* );
|
|
140
158
|
* ```
|
|
141
159
|
*
|
|
160
|
+
* For more information, see [App
|
|
161
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#updateorganization).
|
|
162
|
+
*
|
|
142
163
|
* @param organizationId The id of the organization to update
|
|
143
164
|
* @param name Optional name to update the organization with
|
|
144
165
|
* @param publicNamespace Optional namespace to update the organization with
|
|
@@ -156,6 +177,9 @@ export declare class AppClient {
|
|
|
156
177
|
* await appClient.deleteOrganization('<YOUR-ORGANIZATION-ID>');
|
|
157
178
|
* ```
|
|
158
179
|
*
|
|
180
|
+
* For more information, see [App
|
|
181
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#deleteorganization).
|
|
182
|
+
*
|
|
159
183
|
* @param organizationId The id of the organization to delete
|
|
160
184
|
*/
|
|
161
185
|
deleteOrganization(organizationId: string): Promise<void>;
|
|
@@ -170,6 +194,9 @@ export declare class AppClient {
|
|
|
170
194
|
* );
|
|
171
195
|
* ```
|
|
172
196
|
*
|
|
197
|
+
* For more information, see [App
|
|
198
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#listorganizationmembers).
|
|
199
|
+
*
|
|
173
200
|
* @param organizationId The id of the organization to query
|
|
174
201
|
* @returns An object containing organization members, pending invites, and
|
|
175
202
|
* org ID
|
|
@@ -199,6 +226,9 @@ export declare class AppClient {
|
|
|
199
226
|
* );
|
|
200
227
|
* ```
|
|
201
228
|
*
|
|
229
|
+
* For more information, see [App
|
|
230
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#createorganizationinvite).
|
|
231
|
+
*
|
|
202
232
|
* @param organizationId The id of the organization to create the invite for
|
|
203
233
|
* @param email The email address of the user to generate an invite for
|
|
204
234
|
* @param authorizations The authorizations to associate with the new invite
|
|
@@ -231,6 +261,9 @@ export declare class AppClient {
|
|
|
231
261
|
* );
|
|
232
262
|
* ```
|
|
233
263
|
*
|
|
264
|
+
* For more information, see [App
|
|
265
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#updateorganizationinviteauthorizations).
|
|
266
|
+
*
|
|
234
267
|
* @param organizationId The id of the organization
|
|
235
268
|
* @param email The email address associated with the invite
|
|
236
269
|
* @param addAuthsList List of authorizations to add to the invite
|
|
@@ -250,6 +283,9 @@ export declare class AppClient {
|
|
|
250
283
|
* );
|
|
251
284
|
* ```
|
|
252
285
|
*
|
|
286
|
+
* For more information, see [App
|
|
287
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#deleteorganizationmember).
|
|
288
|
+
*
|
|
253
289
|
* @param organizationId The ID of the organization
|
|
254
290
|
* @param userId The ID of the user
|
|
255
291
|
*/
|
|
@@ -266,6 +302,9 @@ export declare class AppClient {
|
|
|
266
302
|
* );
|
|
267
303
|
* ```
|
|
268
304
|
*
|
|
305
|
+
* For more information, see [App
|
|
306
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#deleteorganizationinvite).
|
|
307
|
+
*
|
|
269
308
|
* @param organizationId The ID of the organization
|
|
270
309
|
* @param email The email associated with the invite to delete
|
|
271
310
|
*/
|
|
@@ -282,6 +321,9 @@ export declare class AppClient {
|
|
|
282
321
|
* );
|
|
283
322
|
* ```
|
|
284
323
|
*
|
|
324
|
+
* For more information, see [App
|
|
325
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#resendorganizationinvite).
|
|
326
|
+
*
|
|
285
327
|
* @param organizationId The ID of the organization
|
|
286
328
|
* @param email The email associated with the invite to resend
|
|
287
329
|
* @returns The invite
|
|
@@ -299,6 +341,9 @@ export declare class AppClient {
|
|
|
299
341
|
* );
|
|
300
342
|
* ```
|
|
301
343
|
*
|
|
344
|
+
* For more information, see [App
|
|
345
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#createlocation).
|
|
346
|
+
*
|
|
302
347
|
* @param organizationId The ID of the organization to create the location
|
|
303
348
|
* under
|
|
304
349
|
* @param name The name of the location to create
|
|
@@ -316,6 +361,9 @@ export declare class AppClient {
|
|
|
316
361
|
* const location = await appClient.getLocation('<YOUR-LOCATION-ID>');
|
|
317
362
|
* ```
|
|
318
363
|
*
|
|
364
|
+
* For more information, see [App
|
|
365
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#getlocation).
|
|
366
|
+
*
|
|
319
367
|
* @param locId The ID of the location to query.
|
|
320
368
|
* @returns The location object
|
|
321
369
|
*/
|
|
@@ -332,6 +380,9 @@ export declare class AppClient {
|
|
|
332
380
|
* );
|
|
333
381
|
* ```
|
|
334
382
|
*
|
|
383
|
+
* For more information, see [App
|
|
384
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#updatelocation).
|
|
385
|
+
*
|
|
335
386
|
* @param locId The ID of the location to update
|
|
336
387
|
* @param name Optional string to update the location's name to
|
|
337
388
|
* @param parentLocId Optional string to update the location's parent location
|
|
@@ -349,6 +400,9 @@ export declare class AppClient {
|
|
|
349
400
|
* await appClient.deleteLocation('<YOUR-LOCATION-ID>');
|
|
350
401
|
* ```
|
|
351
402
|
*
|
|
403
|
+
* For more information, see [App
|
|
404
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#deletelocation).
|
|
405
|
+
*
|
|
352
406
|
* @param locId The ID of the location to delete
|
|
353
407
|
*/
|
|
354
408
|
deleteLocation(locId: string): Promise<void>;
|
|
@@ -363,6 +417,9 @@ export declare class AppClient {
|
|
|
363
417
|
* );
|
|
364
418
|
* ```
|
|
365
419
|
*
|
|
420
|
+
* For more information, see [App
|
|
421
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#listlocations).
|
|
422
|
+
*
|
|
366
423
|
* @param organizationId The ID of the organization to query
|
|
367
424
|
* @returns A list of locations under the organization
|
|
368
425
|
*/
|
|
@@ -379,6 +436,9 @@ export declare class AppClient {
|
|
|
379
436
|
* );
|
|
380
437
|
* ```
|
|
381
438
|
*
|
|
439
|
+
* For more information, see [App
|
|
440
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#sharelocation).
|
|
441
|
+
*
|
|
382
442
|
* @param organizationId The ID of the organization to share with
|
|
383
443
|
* @param locId The ID of the location to share
|
|
384
444
|
*/
|
|
@@ -395,6 +455,9 @@ export declare class AppClient {
|
|
|
395
455
|
* );
|
|
396
456
|
* ```
|
|
397
457
|
*
|
|
458
|
+
* For more information, see [App
|
|
459
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#unsharelocation).
|
|
460
|
+
*
|
|
398
461
|
* @param organizationId The ID of the organization to unshare with
|
|
399
462
|
* @param locId The ID of the location to unshare
|
|
400
463
|
*/
|
|
@@ -410,6 +473,9 @@ export declare class AppClient {
|
|
|
410
473
|
* );
|
|
411
474
|
* ```
|
|
412
475
|
*
|
|
476
|
+
* For more information, see [App
|
|
477
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#locationauth).
|
|
478
|
+
*
|
|
413
479
|
* @param locId The ID of the location to retrieve `LocationAuth` from.
|
|
414
480
|
* @returns The `LocationAuth` for the requested location.
|
|
415
481
|
*/
|
|
@@ -425,6 +491,9 @@ export declare class AppClient {
|
|
|
425
491
|
* );
|
|
426
492
|
* ```
|
|
427
493
|
*
|
|
494
|
+
* For more information, see [App
|
|
495
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#createlocationsecret).
|
|
496
|
+
*
|
|
428
497
|
* @param locId The ID of the location to create a `LocationAuth` for
|
|
429
498
|
* @returns The newly created `LocationAuth`
|
|
430
499
|
*/
|
|
@@ -441,6 +510,9 @@ export declare class AppClient {
|
|
|
441
510
|
* );
|
|
442
511
|
* ```
|
|
443
512
|
*
|
|
513
|
+
* For more information, see [App
|
|
514
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#deletelocationsecret).
|
|
515
|
+
*
|
|
444
516
|
* @param locId The ID of the location to delete the `LocationAuth` from
|
|
445
517
|
* @param secretId The ID of the location secret to delete
|
|
446
518
|
*/
|
|
@@ -454,6 +526,9 @@ export declare class AppClient {
|
|
|
454
526
|
* const robot = await appClient.getRobot('<YOUR-ROBOT-ID>');
|
|
455
527
|
* ```
|
|
456
528
|
*
|
|
529
|
+
* For more information, see [App
|
|
530
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#getrobot).
|
|
531
|
+
*
|
|
457
532
|
* @param id The ID of the robot
|
|
458
533
|
* @returns The `Robot` object
|
|
459
534
|
*/
|
|
@@ -469,6 +544,9 @@ export declare class AppClient {
|
|
|
469
544
|
* );
|
|
470
545
|
* ```
|
|
471
546
|
*
|
|
547
|
+
* For more information, see [App
|
|
548
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#getroverrentalrobots).
|
|
549
|
+
*
|
|
472
550
|
* @param orgId The ID of the organization to query
|
|
473
551
|
* @returns The list of `RoverRentalRobot` objects
|
|
474
552
|
*/
|
|
@@ -482,6 +560,9 @@ export declare class AppClient {
|
|
|
482
560
|
* const robotParts = await appClient.getRobotParts('<YOUR-ROBOT-ID>');
|
|
483
561
|
* ```
|
|
484
562
|
*
|
|
563
|
+
* For more information, see [App
|
|
564
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#getrobotparts).
|
|
565
|
+
*
|
|
485
566
|
* @param robotId The ID of the robot to query
|
|
486
567
|
* @returns The list of `RobotPart` objects associated with the robot
|
|
487
568
|
*/
|
|
@@ -495,6 +576,9 @@ export declare class AppClient {
|
|
|
495
576
|
* const robotPart = await appClient.getRobotPart('<YOUR-ROBOT-PART-ID>');
|
|
496
577
|
* ```
|
|
497
578
|
*
|
|
579
|
+
* For more information, see [App
|
|
580
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#getrobotpart).
|
|
581
|
+
*
|
|
498
582
|
* @param id The ID of the requested robot part
|
|
499
583
|
* @returns The robot part and a its json config
|
|
500
584
|
*/
|
|
@@ -511,6 +595,9 @@ export declare class AppClient {
|
|
|
511
595
|
* );
|
|
512
596
|
* ```
|
|
513
597
|
*
|
|
598
|
+
* For more information, see [App
|
|
599
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#getrobotpartlogs).
|
|
600
|
+
*
|
|
514
601
|
* @param id The ID of the requested robot part
|
|
515
602
|
* @param filter Optional string to filter logs on
|
|
516
603
|
* @param levels Optional array of log levels to return. Defaults to returning
|
|
@@ -533,6 +620,9 @@ export declare class AppClient {
|
|
|
533
620
|
* );
|
|
534
621
|
* ```
|
|
535
622
|
*
|
|
623
|
+
* For more information, see [App
|
|
624
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#tailrobotpartlogs).
|
|
625
|
+
*
|
|
536
626
|
* @param id The ID of the requested robot part
|
|
537
627
|
* @param queue A queue to put the log entries into
|
|
538
628
|
* @param filter Optional string to filter logs on
|
|
@@ -551,6 +641,9 @@ export declare class AppClient {
|
|
|
551
641
|
* );
|
|
552
642
|
* ```
|
|
553
643
|
*
|
|
644
|
+
* For more information, see [App
|
|
645
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#getrobotparthistory).
|
|
646
|
+
*
|
|
554
647
|
* @param id The ID of the requested robot part
|
|
555
648
|
* @returns The list of the robot part's history
|
|
556
649
|
*/
|
|
@@ -567,6 +660,9 @@ export declare class AppClient {
|
|
|
567
660
|
* );
|
|
568
661
|
* ```
|
|
569
662
|
*
|
|
663
|
+
* For more information, see [App
|
|
664
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#updaterobotpart).
|
|
665
|
+
*
|
|
570
666
|
* @param id The ID of the requested robot part
|
|
571
667
|
* @param name The new name of the robot part
|
|
572
668
|
* @param robotConfig The new config for the robot part
|
|
@@ -585,6 +681,9 @@ export declare class AppClient {
|
|
|
585
681
|
* );
|
|
586
682
|
* ```
|
|
587
683
|
*
|
|
684
|
+
* For more information, see [App
|
|
685
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#newrobotpart).
|
|
686
|
+
*
|
|
588
687
|
* @param robotId The ID of the robot to create a part for
|
|
589
688
|
* @param partName The name for the new robot part
|
|
590
689
|
* @returns The ID of the newly-created robot part
|
|
@@ -599,6 +698,9 @@ export declare class AppClient {
|
|
|
599
698
|
* await appClient.deleteRobotPart('<YOUR-ROBOT-PART-ID>');
|
|
600
699
|
* ```
|
|
601
700
|
*
|
|
701
|
+
* For more information, see [App
|
|
702
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#deleterobotpart).
|
|
703
|
+
*
|
|
602
704
|
* @param partId The ID of the part to delete
|
|
603
705
|
*/
|
|
604
706
|
deleteRobotPart(partId: string): Promise<void>;
|
|
@@ -612,6 +714,9 @@ export declare class AppClient {
|
|
|
612
714
|
* await appClient.getRobotAPIKeys('<YOUR-ROBOT-ID>');
|
|
613
715
|
* ```
|
|
614
716
|
*
|
|
717
|
+
* For more information, see [App
|
|
718
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#getrobotapikeys).
|
|
719
|
+
*
|
|
615
720
|
* @param robotId The ID of the robot to get API keys for
|
|
616
721
|
* @returns A list of the robot's API keys
|
|
617
722
|
*/
|
|
@@ -625,6 +730,9 @@ export declare class AppClient {
|
|
|
625
730
|
* await appClient.markPartAsMain('<YOUR-ROBOT-PART-ID>');
|
|
626
731
|
* ```
|
|
627
732
|
*
|
|
733
|
+
* For more information, see [App
|
|
734
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#markpartasmain).
|
|
735
|
+
*
|
|
628
736
|
* @param partId The ID of the part to mark as main
|
|
629
737
|
*/
|
|
630
738
|
markPartAsMain(partId: string): Promise<void>;
|
|
@@ -637,6 +745,9 @@ export declare class AppClient {
|
|
|
637
745
|
* await appClient.markPartForRestart('<YOUR-ROBOT-PART-ID>');
|
|
638
746
|
* ```
|
|
639
747
|
*
|
|
748
|
+
* For more information, see [App
|
|
749
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#markpartforrestart).
|
|
750
|
+
*
|
|
640
751
|
* @param partId The ID of the part to mark for restart
|
|
641
752
|
*/
|
|
642
753
|
markPartForRestart(partId: string): Promise<void>;
|
|
@@ -651,6 +762,9 @@ export declare class AppClient {
|
|
|
651
762
|
* );
|
|
652
763
|
* ```
|
|
653
764
|
*
|
|
765
|
+
* For more information, see [App
|
|
766
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#createrobotpartsecret).
|
|
767
|
+
*
|
|
654
768
|
* @param partId The ID of the part to create a secret for
|
|
655
769
|
* @returns The robot part object
|
|
656
770
|
*/
|
|
@@ -667,6 +781,9 @@ export declare class AppClient {
|
|
|
667
781
|
* );
|
|
668
782
|
* ```
|
|
669
783
|
*
|
|
784
|
+
* For more information, see [App
|
|
785
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#deleterobotpartsecret).
|
|
786
|
+
*
|
|
670
787
|
* @param partId The ID of the part to delete a secret from
|
|
671
788
|
* @param secretId The ID of the secret to delete
|
|
672
789
|
*/
|
|
@@ -680,6 +797,9 @@ export declare class AppClient {
|
|
|
680
797
|
* const robots = await appClient.listRobots('<YOUR-LOCATION-ID>');
|
|
681
798
|
* ```
|
|
682
799
|
*
|
|
800
|
+
* For more information, see [App
|
|
801
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#listrobots).
|
|
802
|
+
*
|
|
683
803
|
* @param locId The ID of the location to list robots for
|
|
684
804
|
* @returns The list of robot objects
|
|
685
805
|
*/
|
|
@@ -696,6 +816,9 @@ export declare class AppClient {
|
|
|
696
816
|
* );
|
|
697
817
|
* ```
|
|
698
818
|
*
|
|
819
|
+
* For more information, see [App
|
|
820
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#newrobot).
|
|
821
|
+
*
|
|
699
822
|
* @param locId The ID of the location to create the robot in
|
|
700
823
|
* @param name The name of the new robot
|
|
701
824
|
* @returns The new robot's ID
|
|
@@ -715,6 +838,9 @@ export declare class AppClient {
|
|
|
715
838
|
* );
|
|
716
839
|
* ```
|
|
717
840
|
*
|
|
841
|
+
* For more information, see [App
|
|
842
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#updaterobot).
|
|
843
|
+
*
|
|
718
844
|
* @param robotId The ID of the robot to update
|
|
719
845
|
* @param locId The ID of the location where the robot is
|
|
720
846
|
* @param name The name to update the robot to
|
|
@@ -730,6 +856,9 @@ export declare class AppClient {
|
|
|
730
856
|
* await appClient.deleteRobot('<YOUR-ROBOT-ID>');
|
|
731
857
|
* ```
|
|
732
858
|
*
|
|
859
|
+
* For more information, see [App
|
|
860
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#deleterobot).
|
|
861
|
+
*
|
|
733
862
|
* @param id The ID of the robot to delete
|
|
734
863
|
*/
|
|
735
864
|
deleteRobot(id: string): Promise<void>;
|
|
@@ -744,6 +873,9 @@ export declare class AppClient {
|
|
|
744
873
|
* );
|
|
745
874
|
* ```
|
|
746
875
|
*
|
|
876
|
+
* For more information, see [App
|
|
877
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#listfragments).
|
|
878
|
+
*
|
|
747
879
|
* @param organizationId The ID of the organization to list fragments for
|
|
748
880
|
* @param publicOnly Optional, deprecated boolean. Use fragmentVisibilities
|
|
749
881
|
* instead. If true then only public fragments will be listed. Defaults to
|
|
@@ -767,6 +899,9 @@ export declare class AppClient {
|
|
|
767
899
|
* );
|
|
768
900
|
* ```
|
|
769
901
|
*
|
|
902
|
+
* For more information, see [App
|
|
903
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#getfragment).
|
|
904
|
+
*
|
|
770
905
|
* @param id The ID of the fragment to look up
|
|
771
906
|
* @returns The requested fragment
|
|
772
907
|
*/
|
|
@@ -783,6 +918,9 @@ export declare class AppClient {
|
|
|
783
918
|
* );
|
|
784
919
|
* ```
|
|
785
920
|
*
|
|
921
|
+
* For more information, see [App
|
|
922
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#createfragment).
|
|
923
|
+
*
|
|
786
924
|
* @param organizationId The ID of the organization to create the fragment
|
|
787
925
|
* under
|
|
788
926
|
* @param name The name of the new fragment
|
|
@@ -802,6 +940,9 @@ export declare class AppClient {
|
|
|
802
940
|
* );
|
|
803
941
|
* ```
|
|
804
942
|
*
|
|
943
|
+
* For more information, see [App
|
|
944
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#updatefragment).
|
|
945
|
+
*
|
|
805
946
|
* @param id The ID of the fragment to update
|
|
806
947
|
* @param name The name to update the fragment to
|
|
807
948
|
* @param config The config to update the fragment to
|
|
@@ -825,6 +966,9 @@ export declare class AppClient {
|
|
|
825
966
|
* await appClient.deleteFragment('12a12ab1-1234-5678-abcd-abcd01234567');
|
|
826
967
|
* ```
|
|
827
968
|
*
|
|
969
|
+
* For more information, see [App
|
|
970
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#deletefragment).
|
|
971
|
+
*
|
|
828
972
|
* @param id The ID of the fragment to delete
|
|
829
973
|
*/
|
|
830
974
|
deleteFragment(id: string): Promise<void>;
|
|
@@ -837,6 +981,9 @@ export declare class AppClient {
|
|
|
837
981
|
* );
|
|
838
982
|
* ```
|
|
839
983
|
*
|
|
984
|
+
* For more information, see [App
|
|
985
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#listmachinefragments).
|
|
986
|
+
*
|
|
840
987
|
* @param machineId The machine ID used to filter fragments defined in a
|
|
841
988
|
* machine's parts. Also returns any fragments nested within the fragments
|
|
842
989
|
* defined in parts.
|
|
@@ -862,6 +1009,9 @@ export declare class AppClient {
|
|
|
862
1009
|
* );
|
|
863
1010
|
* ```
|
|
864
1011
|
*
|
|
1012
|
+
* For more information, see [App
|
|
1013
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#addrole).
|
|
1014
|
+
*
|
|
865
1015
|
* @param organizationId The ID of the organization to create the role under
|
|
866
1016
|
* @param entityId The ID of the entity the role belongs to (for example a
|
|
867
1017
|
* user ID)
|
|
@@ -886,6 +1036,9 @@ export declare class AppClient {
|
|
|
886
1036
|
* );
|
|
887
1037
|
* ```
|
|
888
1038
|
*
|
|
1039
|
+
* For more information, see [App
|
|
1040
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#removerole).
|
|
1041
|
+
*
|
|
889
1042
|
* @param organizationId The ID of the organization to remove the role from
|
|
890
1043
|
* @param entityId The ID of the entity the role belongs to (for example a
|
|
891
1044
|
* user ID)
|
|
@@ -923,11 +1076,20 @@ export declare class AppClient {
|
|
|
923
1076
|
* });
|
|
924
1077
|
* await appClient.changeRole(oldAuth, newAuth);
|
|
925
1078
|
* ```
|
|
1079
|
+
*
|
|
1080
|
+
* For more information, see [App
|
|
1081
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#changerole).
|
|
1082
|
+
*
|
|
1083
|
+
* @param oldAuthorization The existing authorization
|
|
1084
|
+
* @param newAuthorization The new authorization to change to
|
|
926
1085
|
*/
|
|
927
1086
|
changeRole(oldAuthorization: Authorization, newAuthorization: Authorization): Promise<void>;
|
|
928
1087
|
/**
|
|
929
1088
|
* List all authorizations for an organization.
|
|
930
1089
|
*
|
|
1090
|
+
* For more information, see [App
|
|
1091
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#listauthorizations).
|
|
1092
|
+
*
|
|
931
1093
|
* @param organizationId The ID of the organization to list authorizations for
|
|
932
1094
|
* @param resourceIds Optional list of IDs of resources to list authorizations
|
|
933
1095
|
* for. If not provided, all resources will be included
|
|
@@ -937,6 +1099,9 @@ export declare class AppClient {
|
|
|
937
1099
|
/**
|
|
938
1100
|
* Checks whether requested permissions exist.
|
|
939
1101
|
*
|
|
1102
|
+
* For more information, see [App
|
|
1103
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#checkpermissions).
|
|
1104
|
+
*
|
|
940
1105
|
* @param permissions A list of permissions to check
|
|
941
1106
|
* @returns A filtered list of the authorized permissions
|
|
942
1107
|
*/
|
|
@@ -952,6 +1117,9 @@ export declare class AppClient {
|
|
|
952
1117
|
* );
|
|
953
1118
|
* ```
|
|
954
1119
|
*
|
|
1120
|
+
* For more information, see [App
|
|
1121
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#getregistryitem).
|
|
1122
|
+
*
|
|
955
1123
|
* @param itemId The ID of the item to get
|
|
956
1124
|
* @returns The requested item
|
|
957
1125
|
*/
|
|
@@ -969,6 +1137,9 @@ export declare class AppClient {
|
|
|
969
1137
|
* );
|
|
970
1138
|
* ```
|
|
971
1139
|
*
|
|
1140
|
+
* For more information, see [App
|
|
1141
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#createregistryitem).
|
|
1142
|
+
*
|
|
972
1143
|
* @param organizationId The ID of the organization to create the registry
|
|
973
1144
|
* item under
|
|
974
1145
|
* @param name The name of the registry item
|
|
@@ -989,6 +1160,9 @@ export declare class AppClient {
|
|
|
989
1160
|
* );
|
|
990
1161
|
* ```
|
|
991
1162
|
*
|
|
1163
|
+
* For more information, see [App
|
|
1164
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#updateregistryitem).
|
|
1165
|
+
*
|
|
992
1166
|
* @param itemId The ID of the registry item to update
|
|
993
1167
|
* @param type The PackageType to update the item to
|
|
994
1168
|
* @param description A description of the item
|
|
@@ -1010,6 +1184,9 @@ export declare class AppClient {
|
|
|
1010
1184
|
* );
|
|
1011
1185
|
* ```
|
|
1012
1186
|
*
|
|
1187
|
+
* For more information, see [App
|
|
1188
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#listregistryitems).
|
|
1189
|
+
*
|
|
1013
1190
|
* @param organizationId The ID of the organization to query registry items
|
|
1014
1191
|
* for
|
|
1015
1192
|
* @param types A list of types to query. If empty, will not filter on type
|
|
@@ -1034,6 +1211,9 @@ export declare class AppClient {
|
|
|
1034
1211
|
* await appClient.deleteRegistryItem('<YOUR-REGISTRY-ITEM-ID>');
|
|
1035
1212
|
* ```
|
|
1036
1213
|
*
|
|
1214
|
+
* For more information, see [App
|
|
1215
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#deleteregistryitem).
|
|
1216
|
+
*
|
|
1037
1217
|
* @param itemId The ID of the item to delete
|
|
1038
1218
|
*/
|
|
1039
1219
|
deleteRegistryItem(itemId: string): Promise<void>;
|
|
@@ -1049,6 +1229,9 @@ export declare class AppClient {
|
|
|
1049
1229
|
* );
|
|
1050
1230
|
* ```
|
|
1051
1231
|
*
|
|
1232
|
+
* For more information, see [App
|
|
1233
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#createmodule).
|
|
1234
|
+
*
|
|
1052
1235
|
* @param organizationId The ID of the organization to create the module under
|
|
1053
1236
|
* @param name The name of the module
|
|
1054
1237
|
* @returns The module ID and a URL to its detail page
|
|
@@ -1070,6 +1253,9 @@ export declare class AppClient {
|
|
|
1070
1253
|
* );
|
|
1071
1254
|
* ```
|
|
1072
1255
|
*
|
|
1256
|
+
* For more information, see [App
|
|
1257
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#updatemodule).
|
|
1258
|
+
*
|
|
1073
1259
|
* @param moduleId The ID of the module to update
|
|
1074
1260
|
* @param visibility The visibility to set for the module
|
|
1075
1261
|
* @param url The url to reference for documentation, code, etc.
|
|
@@ -1088,6 +1274,9 @@ export declare class AppClient {
|
|
|
1088
1274
|
* const module = await appClient.getModule('<YOUR-MODULE-ID>');
|
|
1089
1275
|
* ```
|
|
1090
1276
|
*
|
|
1277
|
+
* For more information, see [App
|
|
1278
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#getmodule).
|
|
1279
|
+
*
|
|
1091
1280
|
* @param moduleId The ID of the module
|
|
1092
1281
|
* @returns The requested module
|
|
1093
1282
|
*/
|
|
@@ -1101,6 +1290,9 @@ export declare class AppClient {
|
|
|
1101
1290
|
* const modules = await appClient.listModules('<YOUR-ORGANIZATION-ID>');
|
|
1102
1291
|
* ```
|
|
1103
1292
|
*
|
|
1293
|
+
* For more information, see [App
|
|
1294
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#listmodules).
|
|
1295
|
+
*
|
|
1104
1296
|
* @param organizationId The ID of the organization to query
|
|
1105
1297
|
* @returns The organization's modules
|
|
1106
1298
|
*/
|
|
@@ -1108,6 +1300,9 @@ export declare class AppClient {
|
|
|
1108
1300
|
/**
|
|
1109
1301
|
* Creates a new API key.
|
|
1110
1302
|
*
|
|
1303
|
+
* For more information, see [App
|
|
1304
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#createkey).
|
|
1305
|
+
*
|
|
1111
1306
|
* @param authorizations The list of authorizations to provide for the API key
|
|
1112
1307
|
* @param name An optional name for the key. If none is passed, defaults to
|
|
1113
1308
|
* present timestamp
|
|
@@ -1123,6 +1318,9 @@ export declare class AppClient {
|
|
|
1123
1318
|
* await appClient.deleteKey('<YOUR-KEY-ID>');
|
|
1124
1319
|
* ```
|
|
1125
1320
|
*
|
|
1321
|
+
* For more information, see [App
|
|
1322
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#deletekey).
|
|
1323
|
+
*
|
|
1126
1324
|
* @param id The ID of the key to delete
|
|
1127
1325
|
*/
|
|
1128
1326
|
deleteKey(id: string): Promise<import("../gen/app/v1/app_pb").DeleteKeyResponse>;
|
|
@@ -1135,6 +1333,9 @@ export declare class AppClient {
|
|
|
1135
1333
|
* const keys = await appClient.listKeys('<YOUR-ORGANIZATION-ID>');
|
|
1136
1334
|
* ```
|
|
1137
1335
|
*
|
|
1336
|
+
* For more information, see [App
|
|
1337
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#listkeys).
|
|
1338
|
+
*
|
|
1138
1339
|
* @param orgId The ID of the organization to query
|
|
1139
1340
|
* @returns The list of API keys
|
|
1140
1341
|
*/
|
|
@@ -1148,6 +1349,9 @@ export declare class AppClient {
|
|
|
1148
1349
|
* const key = await appClient.rotateKey('<YOUR-KEY-ID>');
|
|
1149
1350
|
* ```
|
|
1150
1351
|
*
|
|
1352
|
+
* For more information, see [App
|
|
1353
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#rotatekey).
|
|
1354
|
+
*
|
|
1151
1355
|
* @param id The ID of the key to rotate
|
|
1152
1356
|
* @returns The updated key and ID
|
|
1153
1357
|
*/
|
|
@@ -1164,6 +1368,9 @@ export declare class AppClient {
|
|
|
1164
1368
|
* );
|
|
1165
1369
|
* ```
|
|
1166
1370
|
*
|
|
1371
|
+
* For more information, see [App
|
|
1372
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#createkeyfromexistingkeyauthorizations).
|
|
1373
|
+
*
|
|
1167
1374
|
* @param id The ID of the key to duplicate
|
|
1168
1375
|
* @returns The new key and ID
|
|
1169
1376
|
*/
|
|
@@ -1180,6 +1387,9 @@ export declare class AppClient {
|
|
|
1180
1387
|
* );
|
|
1181
1388
|
* ```
|
|
1182
1389
|
*
|
|
1390
|
+
* For more information, see [App
|
|
1391
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#getappcontent).
|
|
1392
|
+
*
|
|
1183
1393
|
* @param publicNamespace The public namespace of the organization
|
|
1184
1394
|
* @param name The name of the app
|
|
1185
1395
|
* @returns The blob path and entrypoint of the app content
|
|
@@ -1196,6 +1406,9 @@ export declare class AppClient {
|
|
|
1196
1406
|
* );
|
|
1197
1407
|
* ```
|
|
1198
1408
|
*
|
|
1409
|
+
* For more information, see [App
|
|
1410
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#getorganizationmetadata).
|
|
1411
|
+
*
|
|
1199
1412
|
* @param id The ID of the organization
|
|
1200
1413
|
* @returns The metadata associated with the organization
|
|
1201
1414
|
*/
|
|
@@ -1211,6 +1424,9 @@ export declare class AppClient {
|
|
|
1211
1424
|
* });
|
|
1212
1425
|
* ```
|
|
1213
1426
|
*
|
|
1427
|
+
* For more information, see [App
|
|
1428
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#updateorganizationmetadata).
|
|
1429
|
+
*
|
|
1214
1430
|
* @param id The ID of the organization
|
|
1215
1431
|
* @param data The metadata to update
|
|
1216
1432
|
*/
|
|
@@ -1226,6 +1442,9 @@ export declare class AppClient {
|
|
|
1226
1442
|
* );
|
|
1227
1443
|
* ```
|
|
1228
1444
|
*
|
|
1445
|
+
* For more information, see [App
|
|
1446
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#getlocationmetadata).
|
|
1447
|
+
*
|
|
1229
1448
|
* @param id The ID of the location
|
|
1230
1449
|
* @returns The metadata associated with the location
|
|
1231
1450
|
*/
|
|
@@ -1241,6 +1460,9 @@ export declare class AppClient {
|
|
|
1241
1460
|
* });
|
|
1242
1461
|
* ```
|
|
1243
1462
|
*
|
|
1463
|
+
* For more information, see [App
|
|
1464
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#updatelocationmetadata).
|
|
1465
|
+
*
|
|
1244
1466
|
* @param id The ID of the location
|
|
1245
1467
|
* @param data The metadata to update
|
|
1246
1468
|
*/
|
|
@@ -1254,6 +1476,9 @@ export declare class AppClient {
|
|
|
1254
1476
|
* const metadata = await appClient.getRobotMetadata('<YOUR-ROBOT-ID>');
|
|
1255
1477
|
* ```
|
|
1256
1478
|
*
|
|
1479
|
+
* For more information, see [App
|
|
1480
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#getrobotmetadata).
|
|
1481
|
+
*
|
|
1257
1482
|
* @param id The ID of the robot
|
|
1258
1483
|
* @returns The metadata associated with the robot
|
|
1259
1484
|
*/
|
|
@@ -1269,6 +1494,9 @@ export declare class AppClient {
|
|
|
1269
1494
|
* });
|
|
1270
1495
|
* ```
|
|
1271
1496
|
*
|
|
1497
|
+
* For more information, see [App
|
|
1498
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#updaterobotmetadata).
|
|
1499
|
+
*
|
|
1272
1500
|
* @param id The ID of the robot
|
|
1273
1501
|
* @param data The metadata to update
|
|
1274
1502
|
*/
|
|
@@ -1284,6 +1512,9 @@ export declare class AppClient {
|
|
|
1284
1512
|
* );
|
|
1285
1513
|
* ```
|
|
1286
1514
|
*
|
|
1515
|
+
* For more information, see [App
|
|
1516
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#getrobotpartmetadata).
|
|
1517
|
+
*
|
|
1287
1518
|
* @param id The ID of the robot part
|
|
1288
1519
|
* @returns The metadata associated with the robot part
|
|
1289
1520
|
*/
|
|
@@ -1299,6 +1530,9 @@ export declare class AppClient {
|
|
|
1299
1530
|
* });
|
|
1300
1531
|
* ```
|
|
1301
1532
|
*
|
|
1533
|
+
* For more information, see [App
|
|
1534
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#updaterobotpartmetadata).
|
|
1535
|
+
*
|
|
1302
1536
|
* @param id The ID of the robot part
|
|
1303
1537
|
* @param data The metadata to update
|
|
1304
1538
|
*/
|