@viamrobotics/sdk 0.77.0 → 0.78.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.
Files changed (46) hide show
  1. package/README.md +1 -1
  2. package/dist/api-version.d.ts +1 -1
  3. package/dist/app/app-client.d.ts +85 -102
  4. package/dist/app/billing-client.d.ts +4 -5
  5. package/dist/app/data-client.d.ts +31 -31
  6. package/dist/app/ml-training-client.d.ts +6 -6
  7. package/dist/components/arm/arm.d.ts +8 -9
  8. package/dist/components/base/base.d.ts +8 -8
  9. package/dist/components/board/board.d.ts +12 -13
  10. package/dist/components/button/button.d.ts +1 -1
  11. package/dist/components/camera/camera.d.ts +2 -2
  12. package/dist/components/encoder/encoder.d.ts +4 -4
  13. package/dist/components/gantry/gantry.d.ts +8 -8
  14. package/dist/components/generic/generic.d.ts +1 -1
  15. package/dist/components/gripper/gripper.d.ts +6 -6
  16. package/dist/components/input-controller/input-controller.d.ts +3 -3
  17. package/dist/components/motor/motor.d.ts +11 -11
  18. package/dist/components/movement-sensor/movement-sensor.d.ts +10 -10
  19. package/dist/components/pose-tracker/pose-tracker.d.ts +1 -1
  20. package/dist/components/power-sensor/power-sensor.d.ts +4 -4
  21. package/dist/components/sensor/sensor.d.ts +1 -1
  22. package/dist/components/servo/servo.d.ts +5 -5
  23. package/dist/components/switch/switch.d.ts +3 -3
  24. package/dist/gen/app/v1/app_pb.d.ts +14 -0
  25. package/dist/gen/app/v1/billing_pb.d.ts +5 -0
  26. package/dist/gen/common/v1/common_pb.d.ts +588 -6
  27. package/dist/gen/google/api/field_behavior_pb.d.ts +1 -1
  28. package/dist/gen/proto/rpc/webrtc/v1/grpc_pb.d.ts +9 -0
  29. package/dist/gen/proto/rpc/webrtc/v1/signaling_pb.d.ts +25 -0
  30. package/dist/gen/robot/v1/robot_pb.d.ts +66 -2
  31. package/dist/gen/service/motion/v1/motion_pb.d.ts +8 -0
  32. package/dist/gen/service/navigation/v1/navigation_connect.d.ts +324 -43
  33. package/dist/gen/service/navigation/v1/navigation_pb.d.ts +2350 -229
  34. package/dist/main.d.ts +1 -1
  35. package/dist/main.es.js +6631 -4829
  36. package/dist/main.umd.js +9 -9
  37. package/dist/robot/client.d.ts +156 -30
  38. package/dist/services/data-manager/client.d.ts +2 -2
  39. package/dist/services/motion/motion.d.ts +7 -7
  40. package/dist/services/navigation/client.d.ts +32 -11
  41. package/dist/services/navigation/navigation.d.ts +162 -110
  42. package/dist/services/navigation/types.d.ts +36 -5
  43. package/dist/services/navigation.d.ts +1 -1
  44. package/dist/services/slam/slam.d.ts +4 -4
  45. package/dist/services/vision/vision.d.ts +8 -8
  46. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
- import type { JsonValue } from '@bufbuild/protobuf';
1
+ import type { JsonObject, JsonValue } from '@bufbuild/protobuf';
2
2
  import { Struct } from '@bufbuild/protobuf';
3
3
  import { type Transport } from '@connectrpc/connect';
4
4
  import { type PackageType } from '../gen/app/packages/v1/packages_pb';
5
- import { type APIKeyWithAuthorizations, type AllowedLoginMethods, Authorization, AuthorizedPermissions, type CreateKeyFromExistingKeyAuthorizationsResponse, type CreateKeyResponse, type CreateModuleResponse, type CreateOAuthAppUserResponse, type Fragment, type FragmentImportList, type FragmentVisibility, type GetAppContentResponse, type GetAppBrandingResponse, type GetRobotPartLogsResponse, type GetRobotPartResponse, type GetRobotPartByNameAndLocationResponse, type ListOrganizationMembersResponse, type Location, type LocationAuth, type Model, type Module, type Organization, type OrganizationIdentity, type OrganizationInvite, type OrgDetails, type RegistryItem, type RegistryItemBilling, type RegistryItemStatus, type Robot, type RobotPart, type RobotPartHistoryEntry, type RotateKeyResponse, type RoverRentalRobot, type Visibility, type LocationSummary } from '../gen/app/v1/app_pb';
5
+ import { Authorization, AuthorizedPermissions, type AllowedLoginMethods, type APIKeyWithAuthorizations, type CreateKeyFromExistingKeyAuthorizationsResponse, type CreateKeyResponse, type CreateModuleResponse, type CreateOAuthAppUserResponse, type Fragment, type FragmentImportList, type FragmentVisibility, type GetAppBrandingResponse, type GetAppContentResponse, type GetRobotPartByNameAndLocationResponse, type GetRobotPartLogsResponse, type GetRobotPartResponse, type ListOrganizationMembersResponse, type Location, type LocationAuth, type LocationSummary, type Model, type Module, type Organization, type OrganizationIdentity, type OrganizationInvite, type OrgDetails, type RegistryItem, type RegistryItemBilling, type RegistryItemStatus, type Robot, type RobotPart, type RobotPartHistoryEntry, type RotateKeyResponse, type RoverRentalRobot, type Visibility } 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.
@@ -49,7 +49,7 @@ export declare class AppClient {
49
49
  * ```
50
50
  *
51
51
  * For more information, see [App
52
- * API](https://docs.viam.com/dev/reference/apis/fleet/#getuseridbyemail).
52
+ * API](https://docs.viam.com/reference/apis/fleet/#getuseridbyemail).
53
53
  *
54
54
  * @param email The email address of the user
55
55
  * @returns The user's ID
@@ -59,7 +59,7 @@ export declare class AppClient {
59
59
  * Create a new organization.
60
60
  *
61
61
  * For more information, see [App
62
- * API](https://docs.viam.com/dev/reference/apis/fleet/#createorganization).
62
+ * API](https://docs.viam.com/reference/apis/fleet/#createorganization).
63
63
  *
64
64
  * @param name The name of the new organization
65
65
  * @returns The new organization
@@ -75,7 +75,7 @@ export declare class AppClient {
75
75
  * ```
76
76
  *
77
77
  * For more information, see [App
78
- * API](https://docs.viam.com/dev/reference/apis/fleet/#listorganizations).
78
+ * API](https://docs.viam.com/reference/apis/fleet/#listorganizations).
79
79
  *
80
80
  * @returns The organization list
81
81
  */
@@ -91,7 +91,7 @@ export declare class AppClient {
91
91
  * ```
92
92
  *
93
93
  * For more information, see [App
94
- * API](https://docs.viam.com/dev/reference/apis/fleet/#getorganizationswithaccesstolocation).
94
+ * API](https://docs.viam.com/reference/apis/fleet/#getorganizationswithaccesstolocation).
95
95
  *
96
96
  * @param locationId The ID of the location to query
97
97
  * @returns The list of locations with access to the requested location
@@ -114,7 +114,7 @@ export declare class AppClient {
114
114
  * ```
115
115
  *
116
116
  * For more information, see [App
117
- * API](https://docs.viam.com/dev/reference/apis/fleet/#getorganization).
117
+ * API](https://docs.viam.com/reference/apis/fleet/#getorganization).
118
118
  *
119
119
  * @param organizationId The ID of the organization
120
120
  * @returns Details about the organization, if it exists
@@ -130,7 +130,7 @@ export declare class AppClient {
130
130
  * ```
131
131
  *
132
132
  * For more information, see [App
133
- * API](https://docs.viam.com/dev/reference/apis/fleet/#getorganizationnamespaceavailability).
133
+ * API](https://docs.viam.com/reference/apis/fleet/#getorganizationnamespaceavailability).
134
134
  *
135
135
  * @param namespace The namespace to query for availability
136
136
  * @returns A boolean indicating whether or not the namespace is available
@@ -149,7 +149,7 @@ export declare class AppClient {
149
149
  * ```
150
150
  *
151
151
  * For more information, see [App
152
- * API](https://docs.viam.com/dev/reference/apis/fleet/#updateorganization).
152
+ * API](https://docs.viam.com/reference/apis/fleet/#updateorganization).
153
153
  *
154
154
  * @param organizationId The id of the organization to update
155
155
  * @param name Optional name to update the organization with
@@ -171,7 +171,7 @@ export declare class AppClient {
171
171
  * ```
172
172
  *
173
173
  * For more information, see [App
174
- * API](https://docs.viam.com/dev/reference/apis/fleet/#deleteorganization).
174
+ * API](https://docs.viam.com/reference/apis/fleet/#deleteorganization).
175
175
  *
176
176
  * @param organizationId The id of the organization to delete
177
177
  */
@@ -186,7 +186,7 @@ export declare class AppClient {
186
186
  * ```
187
187
  *
188
188
  * For more information, see [App
189
- * API](https://docs.viam.com/dev/reference/apis/fleet/#listorganizationmembers).
189
+ * API](https://docs.viam.com/reference/apis/fleet/#listorganizationmembers).
190
190
  *
191
191
  * @param organizationId The id of the organization to query
192
192
  * @returns An object containing organization members, pending invites, and org ID
@@ -217,7 +217,7 @@ export declare class AppClient {
217
217
  * ```
218
218
  *
219
219
  * For more information, see [App
220
- * API](https://docs.viam.com/dev/reference/apis/fleet/#createorganizationinvite).
220
+ * API](https://docs.viam.com/reference/apis/fleet/#createorganizationinvite).
221
221
  *
222
222
  * @param organizationId The id of the organization to create the invite for
223
223
  * @param email The email address of the user to generate an invite for
@@ -252,7 +252,7 @@ export declare class AppClient {
252
252
  * ```
253
253
  *
254
254
  * For more information, see [App
255
- * API](https://docs.viam.com/dev/reference/apis/fleet/#updateorganizationinviteauthorizations).
255
+ * API](https://docs.viam.com/reference/apis/fleet/#updateorganizationinviteauthorizations).
256
256
  *
257
257
  * @param organizationId The id of the organization
258
258
  * @param email The email address associated with the invite
@@ -271,7 +271,7 @@ export declare class AppClient {
271
271
  * ```
272
272
  *
273
273
  * For more information, see [App
274
- * API](https://docs.viam.com/dev/reference/apis/fleet/#deleteorganizationmember).
274
+ * API](https://docs.viam.com/reference/apis/fleet/#deleteorganizationmember).
275
275
  *
276
276
  * @param organizationId The ID of the organization
277
277
  * @param userId The ID of the user
@@ -287,7 +287,7 @@ export declare class AppClient {
287
287
  * ```
288
288
  *
289
289
  * For more information, see [App
290
- * API](https://docs.viam.com/dev/reference/apis/fleet/#deleteorganizationinvite).
290
+ * API](https://docs.viam.com/reference/apis/fleet/#deleteorganizationinvite).
291
291
  *
292
292
  * @param organizationId The ID of the organization
293
293
  * @param email The email associated with the invite to delete
@@ -306,7 +306,7 @@ export declare class AppClient {
306
306
  * ```
307
307
  *
308
308
  * For more information, see [App
309
- * API](https://docs.viam.com/dev/reference/apis/fleet/#resendorganizationinvite).
309
+ * API](https://docs.viam.com/reference/apis/fleet/#resendorganizationinvite).
310
310
  *
311
311
  * @param organizationId The ID of the organization
312
312
  * @param email The email associated with the invite to resend
@@ -323,7 +323,7 @@ export declare class AppClient {
323
323
  * ```
324
324
  *
325
325
  * For more information, see [App
326
- * API](https://docs.viam.com/dev/reference/apis/fleet/#createlocation).
326
+ * API](https://docs.viam.com/reference/apis/fleet/#createlocation).
327
327
  *
328
328
  * @param organizationId The ID of the organization to create the location under
329
329
  * @param name The name of the location to create
@@ -340,8 +340,7 @@ export declare class AppClient {
340
340
  * const location = await appClient.getLocation('<YOUR-LOCATION-ID>');
341
341
  * ```
342
342
  *
343
- * For more information, see [App
344
- * API](https://docs.viam.com/dev/reference/apis/fleet/#getlocation).
343
+ * For more information, see [App API](https://docs.viam.com/reference/apis/fleet/#getlocation).
345
344
  *
346
345
  * @param locId The ID of the location to query.
347
346
  * @returns The location object
@@ -357,7 +356,7 @@ export declare class AppClient {
357
356
  * ```
358
357
  *
359
358
  * For more information, see [App
360
- * API](https://docs.viam.com/dev/reference/apis/fleet/#updatelocation).
359
+ * API](https://docs.viam.com/reference/apis/fleet/#updatelocation).
361
360
  *
362
361
  * @param locId The ID of the location to update
363
362
  * @param name Optional string to update the location's name to
@@ -376,7 +375,7 @@ export declare class AppClient {
376
375
  * ```
377
376
  *
378
377
  * For more information, see [App
379
- * API](https://docs.viam.com/dev/reference/apis/fleet/#deletelocation).
378
+ * API](https://docs.viam.com/reference/apis/fleet/#deletelocation).
380
379
  *
381
380
  * @param locId The ID of the location to delete
382
381
  */
@@ -390,8 +389,7 @@ export declare class AppClient {
390
389
  * const locations = await appClient.listLocations('<YOUR-ORGANIZATION-ID>');
391
390
  * ```
392
391
  *
393
- * For more information, see [App
394
- * API](https://docs.viam.com/dev/reference/apis/fleet/#listlocations).
392
+ * For more information, see [App API](https://docs.viam.com/reference/apis/fleet/#listlocations).
395
393
  *
396
394
  * @param organizationId The ID of the organization to query
397
395
  * @returns A list of locations under the organization
@@ -406,8 +404,7 @@ export declare class AppClient {
406
404
  * await appClient.shareLocation('<OTHER-ORGANIZATION-ID>', '<YOUR-LOCATION-ID>');
407
405
  * ```
408
406
  *
409
- * For more information, see [App
410
- * API](https://docs.viam.com/dev/reference/apis/fleet/#sharelocation).
407
+ * For more information, see [App API](https://docs.viam.com/reference/apis/fleet/#sharelocation).
411
408
  *
412
409
  * @param organizationId The ID of the organization to share with
413
410
  * @param locId The ID of the location to share
@@ -423,7 +420,7 @@ export declare class AppClient {
423
420
  * ```
424
421
  *
425
422
  * For more information, see [App
426
- * API](https://docs.viam.com/dev/reference/apis/fleet/#unsharelocation).
423
+ * API](https://docs.viam.com/reference/apis/fleet/#unsharelocation).
427
424
  *
428
425
  * @param organizationId The ID of the organization to unshare with
429
426
  * @param locId The ID of the location to unshare
@@ -438,8 +435,7 @@ export declare class AppClient {
438
435
  * const locationAuth = await appClient.locationAuth('<YOUR-LOCATION-ID>');
439
436
  * ```
440
437
  *
441
- * For more information, see [App
442
- * API](https://docs.viam.com/dev/reference/apis/fleet/#locationauth).
438
+ * For more information, see [App API](https://docs.viam.com/reference/apis/fleet/#locationauth).
443
439
  *
444
440
  * @param locId The ID of the location to retrieve `LocationAuth` from.
445
441
  * @returns The `LocationAuth` for the requested location.
@@ -455,7 +451,7 @@ export declare class AppClient {
455
451
  * ```
456
452
  *
457
453
  * For more information, see [App
458
- * API](https://docs.viam.com/dev/reference/apis/fleet/#createlocationsecret).
454
+ * API](https://docs.viam.com/reference/apis/fleet/#createlocationsecret).
459
455
  *
460
456
  * @param locId The ID of the location to create a `LocationAuth` for
461
457
  * @returns The newly created `LocationAuth`
@@ -471,7 +467,7 @@ export declare class AppClient {
471
467
  * ```
472
468
  *
473
469
  * For more information, see [App
474
- * API](https://docs.viam.com/dev/reference/apis/fleet/#deletelocationsecret).
470
+ * API](https://docs.viam.com/reference/apis/fleet/#deletelocationsecret).
475
471
  *
476
472
  * @param locId The ID of the location to delete the `LocationAuth` from
477
473
  * @param secretId The ID of the location secret to delete
@@ -486,7 +482,7 @@ export declare class AppClient {
486
482
  * const robot = await appClient.getRobot('<YOUR-ROBOT-ID>');
487
483
  * ```
488
484
  *
489
- * For more information, see [App API](https://docs.viam.com/dev/reference/apis/fleet/#getrobot).
485
+ * For more information, see [App API](https://docs.viam.com/reference/apis/fleet/#getrobot).
490
486
  *
491
487
  * @param id The ID of the robot
492
488
  * @returns The `Robot` object
@@ -501,8 +497,7 @@ export declare class AppClient {
501
497
  * const roverRentalRobots = await appClient.getRoverRentalRobots('<YOUR-ORGANIZATION-ID>');
502
498
  * ```
503
499
  *
504
- * For more information, see [App
505
- * API](https://docs.viam.com/dev/reference/apis/fleet/#getroverrentalrobots).
500
+ * For more information, see [App API](https://docs.viam.com/reference/apis/fleet/).
506
501
  *
507
502
  * @param orgId The ID of the organization to query
508
503
  * @returns The list of `RoverRentalRobot` objects
@@ -517,8 +512,7 @@ export declare class AppClient {
517
512
  * const robotParts = await appClient.getRobotParts('<YOUR-ROBOT-ID>');
518
513
  * ```
519
514
  *
520
- * For more information, see [App
521
- * API](https://docs.viam.com/dev/reference/apis/fleet/#getrobotparts).
515
+ * For more information, see [App API](https://docs.viam.com/reference/apis/fleet/#getrobotparts).
522
516
  *
523
517
  * @param robotId The ID of the robot to query
524
518
  * @returns The list of `RobotPart` objects associated with the robot
@@ -539,8 +533,7 @@ export declare class AppClient {
539
533
  * }
540
534
  * ```
541
535
  *
542
- * For more information, see [App
543
- * API](https://docs.viam.com/dev/reference/apis/fleet/#getrobotpart).
536
+ * For more information, see [App API](https://docs.viam.com/reference/apis/fleet/#getrobotpart).
544
537
  *
545
538
  * @param id The ID of the requested robot part
546
539
  * @returns The robot part and a its json config
@@ -559,7 +552,7 @@ export declare class AppClient {
559
552
  * ```
560
553
  *
561
554
  * For more information, see [App
562
- * API](https://docs.viam.com/dev/reference/apis/fleet/#getrobotpartbynameandlocation).
555
+ * API](https://docs.viam.com/reference/apis/fleet/#getrobotpartbynameandlocation).
563
556
  *
564
557
  * @param name The name of the requested robot part
565
558
  * @param locationId The ID of the location of the requested robot part
@@ -577,7 +570,7 @@ export declare class AppClient {
577
570
  * ```
578
571
  *
579
572
  * For more information, see [App
580
- * API](https://docs.viam.com/dev/reference/apis/fleet/#getrobotpartlogs).
573
+ * API](https://docs.viam.com/reference/apis/fleet/#getrobotpartlogs).
581
574
  *
582
575
  * @param id The ID of the requested robot part
583
576
  * @param filter Optional string to filter logs on
@@ -602,7 +595,7 @@ export declare class AppClient {
602
595
  * ```
603
596
  *
604
597
  * For more information, see [App
605
- * API](https://docs.viam.com/dev/reference/apis/fleet/#tailrobotpartlogs).
598
+ * API](https://docs.viam.com/reference/apis/fleet/#tailrobotpartlogs).
606
599
  *
607
600
  * @param id The ID of the requested robot part
608
601
  * @param queue A queue to put the log entries into
@@ -621,7 +614,7 @@ export declare class AppClient {
621
614
  * ```
622
615
  *
623
616
  * For more information, see [App
624
- * API](https://docs.viam.com/dev/reference/apis/fleet/#getrobotparthistory).
617
+ * API](https://docs.viam.com/reference/apis/fleet/#getrobotparthistory).
625
618
  *
626
619
  * @param id The ID of the requested robot part
627
620
  * @param start Optional start time. Only history entries created after this time will be
@@ -641,7 +634,7 @@ export declare class AppClient {
641
634
  * ```
642
635
  *
643
636
  * For more information, see [App
644
- * API](https://docs.viam.com/dev/reference/apis/fleet/#updaterobotpart).
637
+ * API](https://docs.viam.com/reference/apis/fleet/#updaterobotpart).
645
638
  *
646
639
  * @param id The ID of the requested robot part
647
640
  * @param name The new name of the robot part
@@ -658,8 +651,7 @@ export declare class AppClient {
658
651
  * const robotPartId = await appClient.newRobotPart('<YOUR-ROBOT-ID>', 'newPart');
659
652
  * ```
660
653
  *
661
- * For more information, see [App
662
- * API](https://docs.viam.com/dev/reference/apis/fleet/#newrobotpart).
654
+ * For more information, see [App API](https://docs.viam.com/reference/apis/fleet/#newrobotpart).
663
655
  *
664
656
  * @param robotId The ID of the robot to create a part for
665
657
  * @param partName The name for the new robot part
@@ -676,7 +668,7 @@ export declare class AppClient {
676
668
  * ```
677
669
  *
678
670
  * For more information, see [App
679
- * API](https://docs.viam.com/dev/reference/apis/fleet/#deleterobotpart).
671
+ * API](https://docs.viam.com/reference/apis/fleet/#deleterobotpart).
680
672
  *
681
673
  * @param partId The ID of the part to delete
682
674
  */
@@ -691,7 +683,7 @@ export declare class AppClient {
691
683
  * ```
692
684
  *
693
685
  * For more information, see [App
694
- * API](https://docs.viam.com/dev/reference/apis/fleet/#getrobotapikeys).
686
+ * API](https://docs.viam.com/reference/apis/fleet/#getrobotapikeys).
695
687
  *
696
688
  * @param robotId The ID of the robot to get API keys for
697
689
  * @returns A list of the robot's API keys
@@ -707,7 +699,7 @@ export declare class AppClient {
707
699
  * ```
708
700
  *
709
701
  * For more information, see [App
710
- * API](https://docs.viam.com/dev/reference/apis/fleet/#markpartasmain).
702
+ * API](https://docs.viam.com/reference/apis/fleet/#markpartasmain).
711
703
  *
712
704
  * @param partId The ID of the part to mark as main
713
705
  */
@@ -722,7 +714,7 @@ export declare class AppClient {
722
714
  * ```
723
715
  *
724
716
  * For more information, see [App
725
- * API](https://docs.viam.com/dev/reference/apis/fleet/#markpartforrestart).
717
+ * API](https://docs.viam.com/reference/apis/fleet/#markpartforrestart).
726
718
  *
727
719
  * @param partId The ID of the part to mark for restart
728
720
  */
@@ -737,7 +729,7 @@ export declare class AppClient {
737
729
  * ```
738
730
  *
739
731
  * For more information, see [App
740
- * API](https://docs.viam.com/dev/reference/apis/fleet/#createrobotpartsecret).
732
+ * API](https://docs.viam.com/reference/apis/fleet/#createrobotpartsecret).
741
733
  *
742
734
  * @param partId The ID of the part to create a secret for
743
735
  * @returns The robot part object
@@ -753,7 +745,7 @@ export declare class AppClient {
753
745
  * ```
754
746
  *
755
747
  * For more information, see [App
756
- * API](https://docs.viam.com/dev/reference/apis/fleet/#deleterobotpartsecret).
748
+ * API](https://docs.viam.com/reference/apis/fleet/#deleterobotpartsecret).
757
749
  *
758
750
  * @param partId The ID of the part to delete a secret from
759
751
  * @param secretId The ID of the secret to delete
@@ -768,8 +760,7 @@ export declare class AppClient {
768
760
  * const robots = await appClient.listRobots('<YOUR-LOCATION-ID>');
769
761
  * ```
770
762
  *
771
- * For more information, see [App
772
- * API](https://docs.viam.com/dev/reference/apis/fleet/#listrobots).
763
+ * For more information, see [App API](https://docs.viam.com/reference/apis/fleet/#listrobots).
773
764
  *
774
765
  * @param locId The ID of the location to list robots for
775
766
  * @returns The list of robot objects
@@ -788,7 +779,7 @@ export declare class AppClient {
788
779
  * ```
789
780
  *
790
781
  * For more information, see [App
791
- * API](https://docs.viam.com/dev/reference/apis/fleet/#listrobotsforlocations).
782
+ * API](https://docs.viam.com/reference/apis/fleet/#listrobotsforlocations).
792
783
  *
793
784
  * @param locationIds The IDs of the locations to list robots for
794
785
  * @returns The list of robot objects across all the given locations
@@ -803,7 +794,7 @@ export declare class AppClient {
803
794
  * const robotId = await appClient.newRobot('<YOUR-LOCATION-ID>', 'newRobot');
804
795
  * ```
805
796
  *
806
- * For more information, see [App API](https://docs.viam.com/dev/reference/apis/fleet/#newrobot).
797
+ * For more information, see [App API](https://docs.viam.com/reference/apis/fleet/#newrobot).
807
798
  *
808
799
  * @param locId The ID of the location to create the robot in
809
800
  * @param name The name of the new robot
@@ -824,8 +815,7 @@ export declare class AppClient {
824
815
  * );
825
816
  * ```
826
817
  *
827
- * For more information, see [App
828
- * API](https://docs.viam.com/dev/reference/apis/fleet/#updaterobot).
818
+ * For more information, see [App API](https://docs.viam.com/reference/apis/fleet/#updaterobot).
829
819
  *
830
820
  * @param robotId The ID of the robot to update
831
821
  * @param locId The ID of the location where the robot is
@@ -842,8 +832,7 @@ export declare class AppClient {
842
832
  * await appClient.deleteRobot('<YOUR-ROBOT-ID>');
843
833
  * ```
844
834
  *
845
- * For more information, see [App
846
- * API](https://docs.viam.com/dev/reference/apis/fleet/#deleterobot).
835
+ * For more information, see [App API](https://docs.viam.com/reference/apis/fleet/#deleterobot).
847
836
  *
848
837
  * @param id The ID of the robot to delete
849
838
  */
@@ -857,8 +846,7 @@ export declare class AppClient {
857
846
  * const fragments = await appClient.listFragments('<YOUR-ORGANIZATION-ID>');
858
847
  * ```
859
848
  *
860
- * For more information, see [App
861
- * API](https://docs.viam.com/dev/reference/apis/fleet/#listfragments).
849
+ * For more information, see [App API](https://docs.viam.com/reference/apis/fleet/#listfragments).
862
850
  *
863
851
  * @param organizationId The ID of the organization to list fragments for
864
852
  * @param publicOnly Optional, deprecated boolean. Use fragmentVisibilities instead. If true then
@@ -879,8 +867,7 @@ export declare class AppClient {
879
867
  * const fragment = await appClient.getFragment('12a12ab1-1234-5678-abcd-abcd01234567');
880
868
  * ```
881
869
  *
882
- * For more information, see [App
883
- * API](https://docs.viam.com/dev/reference/apis/fleet/#getfragment).
870
+ * For more information, see [App API](https://docs.viam.com/reference/apis/fleet/#getfragment).
884
871
  *
885
872
  * @param id The ID of the fragment to look up
886
873
  * @returns The requested fragment
@@ -896,7 +883,7 @@ export declare class AppClient {
896
883
  * ```
897
884
  *
898
885
  * For more information, see [App
899
- * API](https://docs.viam.com/dev/reference/apis/fleet/#createfragment).
886
+ * API](https://docs.viam.com/reference/apis/fleet/#createfragment).
900
887
  *
901
888
  * @param organizationId The ID of the organization to create the fragment under
902
889
  * @param name The name of the new fragment
@@ -917,7 +904,7 @@ export declare class AppClient {
917
904
  * ```
918
905
  *
919
906
  * For more information, see [App
920
- * API](https://docs.viam.com/dev/reference/apis/fleet/#updatefragment).
907
+ * API](https://docs.viam.com/reference/apis/fleet/#updatefragment).
921
908
  *
922
909
  * @param id The ID of the fragment to update
923
910
  * @param name The name to update the fragment to
@@ -929,9 +916,11 @@ export declare class AppClient {
929
916
  * not passed, the visibility will be unchanged. If visibility is not set and makePublic is set,
930
917
  * makePublic takes effect. If makePublic and visibility are set, they must not be conflicting.
931
918
  * If neither is set, the fragment visibility will remain unchanged.
919
+ * @param fragmentConfigJson Optional fragment config as a JSON object. Takes precedence over
920
+ * config if both are passed.
932
921
  * @returns The updated fragment
933
922
  */
934
- updateFragment(id: string, name: string, config: Struct, makePublic?: boolean, visibility?: FragmentVisibility): Promise<Fragment | undefined>;
923
+ updateFragment(id: string, name: string, config: Struct, makePublic?: boolean, visibility?: FragmentVisibility, fragmentConfigJson?: JsonObject): Promise<Fragment | undefined>;
935
924
  /**
936
925
  * Deletes a fragment.
937
926
  *
@@ -942,7 +931,7 @@ export declare class AppClient {
942
931
  * ```
943
932
  *
944
933
  * For more information, see [App
945
- * API](https://docs.viam.com/dev/reference/apis/fleet/#deletefragment).
934
+ * API](https://docs.viam.com/reference/apis/fleet/#deletefragment).
946
935
  *
947
936
  * @param id The ID of the fragment to delete
948
937
  */
@@ -955,7 +944,7 @@ export declare class AppClient {
955
944
  * ```
956
945
  *
957
946
  * For more information, see [App
958
- * API](https://docs.viam.com/dev/reference/apis/fleet/#listmachinefragments).
947
+ * API](https://docs.viam.com/reference/apis/fleet/#listmachinefragments).
959
948
  *
960
949
  * @param machineId The machine ID used to filter fragments defined in a machine's parts. Also
961
950
  * returns any fragments nested within the fragments defined in parts.
@@ -981,7 +970,7 @@ export declare class AppClient {
981
970
  * );
982
971
  * ```
983
972
  *
984
- * For more information, see [App API](https://docs.viam.com/dev/reference/apis/fleet/#addrole).
973
+ * For more information, see [App API](https://docs.viam.com/reference/apis/fleet/#addrole).
985
974
  *
986
975
  * @param organizationId The ID of the organization to create the role under
987
976
  * @param entityId The ID of the entity the role belongs to (for example a user ID)
@@ -1006,8 +995,7 @@ export declare class AppClient {
1006
995
  * );
1007
996
  * ```
1008
997
  *
1009
- * For more information, see [App
1010
- * API](https://docs.viam.com/dev/reference/apis/fleet/#removerole).
998
+ * For more information, see [App API](https://docs.viam.com/reference/apis/fleet/#removerole).
1011
999
  *
1012
1000
  * @param organizationId The ID of the organization to remove the role from
1013
1001
  * @param entityId The ID of the entity the role belongs to (for example a user ID)
@@ -1046,8 +1034,7 @@ export declare class AppClient {
1046
1034
  * await appClient.changeRole(oldAuth, newAuth);
1047
1035
  * ```
1048
1036
  *
1049
- * For more information, see [App
1050
- * API](https://docs.viam.com/dev/reference/apis/fleet/#changerole).
1037
+ * For more information, see [App API](https://docs.viam.com/reference/apis/fleet/#changerole).
1051
1038
  *
1052
1039
  * @param oldAuthorization The existing authorization
1053
1040
  * @param newAuthorization The new authorization to change to
@@ -1057,7 +1044,7 @@ export declare class AppClient {
1057
1044
  * List all authorizations for an organization.
1058
1045
  *
1059
1046
  * For more information, see [App
1060
- * API](https://docs.viam.com/dev/reference/apis/fleet/#listauthorizations).
1047
+ * API](https://docs.viam.com/reference/apis/fleet/#listauthorizations).
1061
1048
  *
1062
1049
  * @param organizationId The ID of the organization to list authorizations for
1063
1050
  * @param resourceIds Optional list of IDs of resources to list authorizations for. If not
@@ -1069,7 +1056,7 @@ export declare class AppClient {
1069
1056
  * Checks whether requested permissions exist.
1070
1057
  *
1071
1058
  * For more information, see [App
1072
- * API](https://docs.viam.com/dev/reference/apis/fleet/#checkpermissions).
1059
+ * API](https://docs.viam.com/reference/apis/fleet/#checkpermissions).
1073
1060
  *
1074
1061
  * @param permissions A list of permissions to check
1075
1062
  * @returns A filtered list of the authorized permissions
@@ -1085,7 +1072,7 @@ export declare class AppClient {
1085
1072
  * ```
1086
1073
  *
1087
1074
  * For more information, see [App
1088
- * API](https://docs.viam.com/dev/reference/apis/fleet/#getregistryitem).
1075
+ * API](https://docs.viam.com/reference/apis/fleet/#getregistryitem).
1089
1076
  *
1090
1077
  * @param itemId The ID of the item to get
1091
1078
  * @returns The requested item
@@ -1101,7 +1088,7 @@ export declare class AppClient {
1101
1088
  * ```
1102
1089
  *
1103
1090
  * For more information, see [App
1104
- * API](https://docs.viam.com/dev/reference/apis/fleet/#createregistryitem).
1091
+ * API](https://docs.viam.com/reference/apis/fleet/#createregistryitem).
1105
1092
  *
1106
1093
  * @param organizationId The ID of the organization to create the registry item under
1107
1094
  * @param name The name of the registry item
@@ -1123,7 +1110,7 @@ export declare class AppClient {
1123
1110
  * ```
1124
1111
  *
1125
1112
  * For more information, see [App
1126
- * API](https://docs.viam.com/dev/reference/apis/fleet/#updateregistryitem).
1113
+ * API](https://docs.viam.com/reference/apis/fleet/#updateregistryitem).
1127
1114
  *
1128
1115
  * @param itemId The ID of the registry item to update
1129
1116
  * @param type The PackageType to update the item to
@@ -1149,7 +1136,7 @@ export declare class AppClient {
1149
1136
  * ```
1150
1137
  *
1151
1138
  * For more information, see [App
1152
- * API](https://docs.viam.com/dev/reference/apis/fleet/#listregistryitems).
1139
+ * API](https://docs.viam.com/reference/apis/fleet/#listregistryitems).
1153
1140
  *
1154
1141
  * @param organizationId The ID of the organization to query registry items for
1155
1142
  * @param types A list of types to query. If empty, will not filter on type
@@ -1172,7 +1159,7 @@ export declare class AppClient {
1172
1159
  * ```
1173
1160
  *
1174
1161
  * For more information, see [App
1175
- * API](https://docs.viam.com/dev/reference/apis/fleet/#deleteregistryitem).
1162
+ * API](https://docs.viam.com/reference/apis/fleet/#deleteregistryitem).
1176
1163
  *
1177
1164
  * @param itemId The ID of the item to delete
1178
1165
  */
@@ -1242,8 +1229,7 @@ export declare class AppClient {
1242
1229
  * const module = await appClient.createModule('<YOUR-ORGANIZATION-ID>', 'newModule');
1243
1230
  * ```
1244
1231
  *
1245
- * For more information, see [App
1246
- * API](https://docs.viam.com/dev/reference/apis/fleet/#createmodule).
1232
+ * For more information, see [App API](https://docs.viam.com/reference/apis/fleet/#createmodule).
1247
1233
  *
1248
1234
  * @param organizationId The ID of the organization to create the module under
1249
1235
  * @param name The name of the module
@@ -1266,8 +1252,7 @@ export declare class AppClient {
1266
1252
  * );
1267
1253
  * ```
1268
1254
  *
1269
- * For more information, see [App
1270
- * API](https://docs.viam.com/dev/reference/apis/fleet/#updatemodule).
1255
+ * For more information, see [App API](https://docs.viam.com/reference/apis/fleet/#updatemodule).
1271
1256
  *
1272
1257
  * @param moduleId The ID of the module to update
1273
1258
  * @param visibility The visibility to set for the module
@@ -1287,7 +1272,7 @@ export declare class AppClient {
1287
1272
  * const module = await appClient.getModule('<YOUR-MODULE-ID>');
1288
1273
  * ```
1289
1274
  *
1290
- * For more information, see [App API](https://docs.viam.com/dev/reference/apis/fleet/#getmodule).
1275
+ * For more information, see [App API](https://docs.viam.com/reference/apis/fleet/#getmodule).
1291
1276
  *
1292
1277
  * @param moduleId The ID of the module
1293
1278
  * @returns The requested module
@@ -1302,8 +1287,7 @@ export declare class AppClient {
1302
1287
  * const modules = await appClient.listModules('<YOUR-ORGANIZATION-ID>');
1303
1288
  * ```
1304
1289
  *
1305
- * For more information, see [App
1306
- * API](https://docs.viam.com/dev/reference/apis/fleet/#listmodules).
1290
+ * For more information, see [App API](https://docs.viam.com/reference/apis/fleet/#listmodules).
1307
1291
  *
1308
1292
  * @param organizationId The ID of the organization to query
1309
1293
  * @returns The organization's modules
@@ -1312,7 +1296,7 @@ export declare class AppClient {
1312
1296
  /**
1313
1297
  * Creates a new API key.
1314
1298
  *
1315
- * For more information, see [App API](https://docs.viam.com/dev/reference/apis/fleet/#createkey).
1299
+ * For more information, see [App API](https://docs.viam.com/reference/apis/fleet/#createkey).
1316
1300
  *
1317
1301
  * @param authorizations The list of authorizations to provide for the API key
1318
1302
  * @param name An optional name for the key. If none is passed, defaults to present timestamp
@@ -1328,7 +1312,7 @@ export declare class AppClient {
1328
1312
  * await appClient.deleteKey('<YOUR-KEY-ID>');
1329
1313
  * ```
1330
1314
  *
1331
- * For more information, see [App API](https://docs.viam.com/dev/reference/apis/fleet/#deletekey).
1315
+ * For more information, see [App API](https://docs.viam.com/reference/apis/fleet/#deletekey).
1332
1316
  *
1333
1317
  * @param id The ID of the key to delete
1334
1318
  */
@@ -1342,7 +1326,7 @@ export declare class AppClient {
1342
1326
  * const keys = await appClient.listKeys('<YOUR-ORGANIZATION-ID>');
1343
1327
  * ```
1344
1328
  *
1345
- * For more information, see [App API](https://docs.viam.com/dev/reference/apis/fleet/#listkeys).
1329
+ * For more information, see [App API](https://docs.viam.com/reference/apis/fleet/#listkeys).
1346
1330
  *
1347
1331
  * @param orgId The ID of the organization to query
1348
1332
  * @returns The list of API keys
@@ -1357,7 +1341,7 @@ export declare class AppClient {
1357
1341
  * const key = await appClient.rotateKey('<YOUR-KEY-ID>');
1358
1342
  * ```
1359
1343
  *
1360
- * For more information, see [App API](https://docs.viam.com/dev/reference/apis/fleet/#rotatekey).
1344
+ * For more information, see [App API](https://docs.viam.com/reference/apis/fleet/#rotatekey).
1361
1345
  *
1362
1346
  * @param id The ID of the key to rotate
1363
1347
  * @returns The updated key and ID
@@ -1373,7 +1357,7 @@ export declare class AppClient {
1373
1357
  * ```
1374
1358
  *
1375
1359
  * For more information, see [App
1376
- * API](https://docs.viam.com/dev/reference/apis/fleet/#createkeyfromexistingkeyauthorizations).
1360
+ * API](https://docs.viam.com/reference/apis/fleet/#createkeyfromexistingkeyauthorizations).
1377
1361
  *
1378
1362
  * @param id The ID of the key to duplicate
1379
1363
  * @returns The new key and ID
@@ -1391,8 +1375,7 @@ export declare class AppClient {
1391
1375
  * );
1392
1376
  * ```
1393
1377
  *
1394
- * For more information, see [App
1395
- * API](https://docs.viam.com/dev/reference/apis/fleet/#getappcontent).
1378
+ * For more information, see [App API](https://docs.viam.com/reference/apis/fleet/#getappcontent).
1396
1379
  *
1397
1380
  * @param publicNamespace The public namespace of the organization
1398
1381
  * @param name The name of the app
@@ -1409,7 +1392,7 @@ export declare class AppClient {
1409
1392
  * ```
1410
1393
  *
1411
1394
  * For more information, see [App
1412
- * API](https://docs.viam.com/dev/reference/apis/fleet/#getorganizationmetadata).
1395
+ * API](https://docs.viam.com/reference/apis/fleet/#getorganizationmetadata).
1413
1396
  *
1414
1397
  * @param id The ID of the organization
1415
1398
  * @returns The metadata associated with the organization
@@ -1427,7 +1410,7 @@ export declare class AppClient {
1427
1410
  * ```
1428
1411
  *
1429
1412
  * For more information, see [App
1430
- * API](https://docs.viam.com/dev/reference/apis/fleet/#updateorganizationmetadata).
1413
+ * API](https://docs.viam.com/reference/apis/fleet/#updateorganizationmetadata).
1431
1414
  *
1432
1415
  * @param id The ID of the organization
1433
1416
  * @param data The metadata to update
@@ -1443,7 +1426,7 @@ export declare class AppClient {
1443
1426
  * ```
1444
1427
  *
1445
1428
  * For more information, see [App
1446
- * API](https://docs.viam.com/dev/reference/apis/fleet/#getlocationmetadata).
1429
+ * API](https://docs.viam.com/reference/apis/fleet/#getlocationmetadata).
1447
1430
  *
1448
1431
  * @param id The ID of the location
1449
1432
  * @returns The metadata associated with the location
@@ -1461,7 +1444,7 @@ export declare class AppClient {
1461
1444
  * ```
1462
1445
  *
1463
1446
  * For more information, see [App
1464
- * API](https://docs.viam.com/dev/reference/apis/fleet/#updatelocationmetadata).
1447
+ * API](https://docs.viam.com/reference/apis/fleet/#updatelocationmetadata).
1465
1448
  *
1466
1449
  * @param id The ID of the location
1467
1450
  * @param data The metadata to update
@@ -1477,7 +1460,7 @@ export declare class AppClient {
1477
1460
  * ```
1478
1461
  *
1479
1462
  * For more information, see [App
1480
- * API](https://docs.viam.com/dev/reference/apis/fleet/#getrobotmetadata).
1463
+ * API](https://docs.viam.com/reference/apis/fleet/#getrobotmetadata).
1481
1464
  *
1482
1465
  * @param id The ID of the robot
1483
1466
  * @returns The metadata associated with the robot
@@ -1495,7 +1478,7 @@ export declare class AppClient {
1495
1478
  * ```
1496
1479
  *
1497
1480
  * For more information, see [App
1498
- * API](https://docs.viam.com/dev/reference/apis/fleet/#updaterobotmetadata).
1481
+ * API](https://docs.viam.com/reference/apis/fleet/#updaterobotmetadata).
1499
1482
  *
1500
1483
  * @param id The ID of the robot
1501
1484
  * @param data The metadata to update
@@ -1511,7 +1494,7 @@ export declare class AppClient {
1511
1494
  * ```
1512
1495
  *
1513
1496
  * For more information, see [App
1514
- * API](https://docs.viam.com/dev/reference/apis/fleet/#getrobotpartmetadata).
1497
+ * API](https://docs.viam.com/reference/apis/fleet/#getrobotpartmetadata).
1515
1498
  *
1516
1499
  * @param id The ID of the robot part
1517
1500
  * @returns The metadata associated with the robot part
@@ -1529,7 +1512,7 @@ export declare class AppClient {
1529
1512
  * ```
1530
1513
  *
1531
1514
  * For more information, see [App
1532
- * API](https://docs.viam.com/dev/reference/apis/fleet/#updaterobotpartmetadata).
1515
+ * API](https://docs.viam.com/reference/apis/fleet/#updaterobotpartmetadata).
1533
1516
  *
1534
1517
  * @param id The ID of the robot part
1535
1518
  * @param data The metadata to update
@@ -1548,7 +1531,7 @@ export declare class AppClient {
1548
1531
  * ```
1549
1532
  *
1550
1533
  * For more information, see [App
1551
- * API](https://docs.viam.com/dev/reference/apis/fleet/#getappbranding).
1534
+ * API](https://docs.viam.com/reference/apis/fleet/#getappbranding).
1552
1535
  *
1553
1536
  * @param publicNamespace The public namespace of the organization
1554
1537
  * @param name The name of the app