@viamrobotics/sdk 0.77.0 → 0.79.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 (50) 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 +109 -102
  4. package/dist/app/billing-client.d.ts +4 -4
  5. package/dist/app/data-client.d.ts +31 -31
  6. package/dist/app/ml-training-client.d.ts +6 -6
  7. package/dist/app/viam-client.d.ts +2 -1
  8. package/dist/app/viam-transport.d.ts +2 -3
  9. package/dist/components/arm/arm.d.ts +8 -9
  10. package/dist/components/base/base.d.ts +8 -8
  11. package/dist/components/board/board.d.ts +12 -12
  12. package/dist/components/button/button.d.ts +1 -1
  13. package/dist/components/camera/camera.d.ts +2 -2
  14. package/dist/components/encoder/encoder.d.ts +4 -4
  15. package/dist/components/gantry/gantry.d.ts +8 -8
  16. package/dist/components/generic/generic.d.ts +1 -1
  17. package/dist/components/gripper/gripper.d.ts +6 -6
  18. package/dist/components/input-controller/input-controller.d.ts +3 -3
  19. package/dist/components/motor/motor.d.ts +11 -11
  20. package/dist/components/movement-sensor/movement-sensor.d.ts +10 -10
  21. package/dist/components/pose-tracker/pose-tracker.d.ts +1 -1
  22. package/dist/components/power-sensor/power-sensor.d.ts +4 -4
  23. package/dist/components/sensor/sensor.d.ts +1 -1
  24. package/dist/components/servo/servo.d.ts +5 -5
  25. package/dist/components/switch/switch.d.ts +3 -3
  26. package/dist/gen/app/mltraining/v1/ml_training_pb.d.ts +7 -0
  27. package/dist/gen/app/v1/app_pb.d.ts +14 -0
  28. package/dist/gen/app/v1/billing_pb.d.ts +5 -0
  29. package/dist/gen/app/v1/robot_pb.d.ts +18 -6
  30. package/dist/gen/common/v1/common_pb.d.ts +588 -6
  31. package/dist/gen/google/api/field_behavior_pb.d.ts +1 -1
  32. package/dist/gen/proto/rpc/webrtc/v1/grpc_pb.d.ts +9 -0
  33. package/dist/gen/proto/rpc/webrtc/v1/signaling_pb.d.ts +25 -0
  34. package/dist/gen/robot/v1/robot_pb.d.ts +66 -2
  35. package/dist/gen/service/motion/v1/motion_pb.d.ts +8 -0
  36. package/dist/gen/service/navigation/v1/navigation_connect.d.ts +324 -43
  37. package/dist/gen/service/navigation/v1/navigation_pb.d.ts +2350 -229
  38. package/dist/main.d.ts +5 -5
  39. package/dist/main.es.js +9579 -7720
  40. package/dist/main.umd.js +11 -9
  41. package/dist/robot/client.d.ts +57 -1272
  42. package/dist/services/data-manager/client.d.ts +2 -2
  43. package/dist/services/motion/motion.d.ts +7 -7
  44. package/dist/services/navigation/client.d.ts +32 -11
  45. package/dist/services/navigation/navigation.d.ts +162 -110
  46. package/dist/services/navigation/types.d.ts +36 -5
  47. package/dist/services/navigation.d.ts +1 -1
  48. package/dist/services/slam/slam.d.ts +4 -4
  49. package/dist/services/vision/vision.d.ts +8 -8
  50. package/package.json +4 -4
@@ -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 ConfigPropertyChangeResult, 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
@@ -649,6 +642,30 @@ export declare class AppClient {
649
642
  * @returns The updated robot part
650
643
  */
651
644
  updateRobotPart(id: string, name: string, robotConfig: Struct): Promise<RobotPart | undefined>;
645
+ /**
646
+ * Sets individual properties in a robot part's config. Each change is written where the property
647
+ * comes from: the part config, a fragment mod or variable, or a new fragment mod.
648
+ *
649
+ * @example
650
+ *
651
+ * ```ts
652
+ * const results = await appClient.setConfigProperty('<YOUR-ROBOT-PART-ID>', [
653
+ * { path: 'components.my-arm.attributes.speed', value: 50 },
654
+ * ]);
655
+ * ```
656
+ *
657
+ * For more information, see [App
658
+ * API](https://docs.viam.com/reference/apis/fleet/#setconfigproperty).
659
+ *
660
+ * @param robotPartId The ID of the robot part to update
661
+ * @param propertyChanges The properties to set, each a path into the config (for example
662
+ * "components.my-arm.frame") and the value to set it to. Changes are applied in order.
663
+ * @returns The result of each change, in the same order as the requested changes
664
+ */
665
+ setConfigProperty(robotPartId: string, propertyChanges: {
666
+ path: string;
667
+ value: JsonValue;
668
+ }[]): Promise<ConfigPropertyChangeResult[]>;
652
669
  /**
653
670
  * Creates a new robot part.
654
671
  *
@@ -658,8 +675,7 @@ export declare class AppClient {
658
675
  * const robotPartId = await appClient.newRobotPart('<YOUR-ROBOT-ID>', 'newPart');
659
676
  * ```
660
677
  *
661
- * For more information, see [App
662
- * API](https://docs.viam.com/dev/reference/apis/fleet/#newrobotpart).
678
+ * For more information, see [App API](https://docs.viam.com/reference/apis/fleet/#newrobotpart).
663
679
  *
664
680
  * @param robotId The ID of the robot to create a part for
665
681
  * @param partName The name for the new robot part
@@ -676,7 +692,7 @@ export declare class AppClient {
676
692
  * ```
677
693
  *
678
694
  * For more information, see [App
679
- * API](https://docs.viam.com/dev/reference/apis/fleet/#deleterobotpart).
695
+ * API](https://docs.viam.com/reference/apis/fleet/#deleterobotpart).
680
696
  *
681
697
  * @param partId The ID of the part to delete
682
698
  */
@@ -691,7 +707,7 @@ export declare class AppClient {
691
707
  * ```
692
708
  *
693
709
  * For more information, see [App
694
- * API](https://docs.viam.com/dev/reference/apis/fleet/#getrobotapikeys).
710
+ * API](https://docs.viam.com/reference/apis/fleet/#getrobotapikeys).
695
711
  *
696
712
  * @param robotId The ID of the robot to get API keys for
697
713
  * @returns A list of the robot's API keys
@@ -707,7 +723,7 @@ export declare class AppClient {
707
723
  * ```
708
724
  *
709
725
  * For more information, see [App
710
- * API](https://docs.viam.com/dev/reference/apis/fleet/#markpartasmain).
726
+ * API](https://docs.viam.com/reference/apis/fleet/#markpartasmain).
711
727
  *
712
728
  * @param partId The ID of the part to mark as main
713
729
  */
@@ -722,7 +738,7 @@ export declare class AppClient {
722
738
  * ```
723
739
  *
724
740
  * For more information, see [App
725
- * API](https://docs.viam.com/dev/reference/apis/fleet/#markpartforrestart).
741
+ * API](https://docs.viam.com/reference/apis/fleet/#markpartforrestart).
726
742
  *
727
743
  * @param partId The ID of the part to mark for restart
728
744
  */
@@ -737,7 +753,7 @@ export declare class AppClient {
737
753
  * ```
738
754
  *
739
755
  * For more information, see [App
740
- * API](https://docs.viam.com/dev/reference/apis/fleet/#createrobotpartsecret).
756
+ * API](https://docs.viam.com/reference/apis/fleet/#createrobotpartsecret).
741
757
  *
742
758
  * @param partId The ID of the part to create a secret for
743
759
  * @returns The robot part object
@@ -753,7 +769,7 @@ export declare class AppClient {
753
769
  * ```
754
770
  *
755
771
  * For more information, see [App
756
- * API](https://docs.viam.com/dev/reference/apis/fleet/#deleterobotpartsecret).
772
+ * API](https://docs.viam.com/reference/apis/fleet/#deleterobotpartsecret).
757
773
  *
758
774
  * @param partId The ID of the part to delete a secret from
759
775
  * @param secretId The ID of the secret to delete
@@ -768,8 +784,7 @@ export declare class AppClient {
768
784
  * const robots = await appClient.listRobots('<YOUR-LOCATION-ID>');
769
785
  * ```
770
786
  *
771
- * For more information, see [App
772
- * API](https://docs.viam.com/dev/reference/apis/fleet/#listrobots).
787
+ * For more information, see [App API](https://docs.viam.com/reference/apis/fleet/#listrobots).
773
788
  *
774
789
  * @param locId The ID of the location to list robots for
775
790
  * @returns The list of robot objects
@@ -788,7 +803,7 @@ export declare class AppClient {
788
803
  * ```
789
804
  *
790
805
  * For more information, see [App
791
- * API](https://docs.viam.com/dev/reference/apis/fleet/#listrobotsforlocations).
806
+ * API](https://docs.viam.com/reference/apis/fleet/#listrobotsforlocations).
792
807
  *
793
808
  * @param locationIds The IDs of the locations to list robots for
794
809
  * @returns The list of robot objects across all the given locations
@@ -803,7 +818,7 @@ export declare class AppClient {
803
818
  * const robotId = await appClient.newRobot('<YOUR-LOCATION-ID>', 'newRobot');
804
819
  * ```
805
820
  *
806
- * For more information, see [App API](https://docs.viam.com/dev/reference/apis/fleet/#newrobot).
821
+ * For more information, see [App API](https://docs.viam.com/reference/apis/fleet/#newrobot).
807
822
  *
808
823
  * @param locId The ID of the location to create the robot in
809
824
  * @param name The name of the new robot
@@ -824,8 +839,7 @@ export declare class AppClient {
824
839
  * );
825
840
  * ```
826
841
  *
827
- * For more information, see [App
828
- * API](https://docs.viam.com/dev/reference/apis/fleet/#updaterobot).
842
+ * For more information, see [App API](https://docs.viam.com/reference/apis/fleet/#updaterobot).
829
843
  *
830
844
  * @param robotId The ID of the robot to update
831
845
  * @param locId The ID of the location where the robot is
@@ -842,8 +856,7 @@ export declare class AppClient {
842
856
  * await appClient.deleteRobot('<YOUR-ROBOT-ID>');
843
857
  * ```
844
858
  *
845
- * For more information, see [App
846
- * API](https://docs.viam.com/dev/reference/apis/fleet/#deleterobot).
859
+ * For more information, see [App API](https://docs.viam.com/reference/apis/fleet/#deleterobot).
847
860
  *
848
861
  * @param id The ID of the robot to delete
849
862
  */
@@ -857,8 +870,7 @@ export declare class AppClient {
857
870
  * const fragments = await appClient.listFragments('<YOUR-ORGANIZATION-ID>');
858
871
  * ```
859
872
  *
860
- * For more information, see [App
861
- * API](https://docs.viam.com/dev/reference/apis/fleet/#listfragments).
873
+ * For more information, see [App API](https://docs.viam.com/reference/apis/fleet/#listfragments).
862
874
  *
863
875
  * @param organizationId The ID of the organization to list fragments for
864
876
  * @param publicOnly Optional, deprecated boolean. Use fragmentVisibilities instead. If true then
@@ -879,8 +891,7 @@ export declare class AppClient {
879
891
  * const fragment = await appClient.getFragment('12a12ab1-1234-5678-abcd-abcd01234567');
880
892
  * ```
881
893
  *
882
- * For more information, see [App
883
- * API](https://docs.viam.com/dev/reference/apis/fleet/#getfragment).
894
+ * For more information, see [App API](https://docs.viam.com/reference/apis/fleet/#getfragment).
884
895
  *
885
896
  * @param id The ID of the fragment to look up
886
897
  * @returns The requested fragment
@@ -896,7 +907,7 @@ export declare class AppClient {
896
907
  * ```
897
908
  *
898
909
  * For more information, see [App
899
- * API](https://docs.viam.com/dev/reference/apis/fleet/#createfragment).
910
+ * API](https://docs.viam.com/reference/apis/fleet/#createfragment).
900
911
  *
901
912
  * @param organizationId The ID of the organization to create the fragment under
902
913
  * @param name The name of the new fragment
@@ -917,7 +928,7 @@ export declare class AppClient {
917
928
  * ```
918
929
  *
919
930
  * For more information, see [App
920
- * API](https://docs.viam.com/dev/reference/apis/fleet/#updatefragment).
931
+ * API](https://docs.viam.com/reference/apis/fleet/#updatefragment).
921
932
  *
922
933
  * @param id The ID of the fragment to update
923
934
  * @param name The name to update the fragment to
@@ -929,9 +940,11 @@ export declare class AppClient {
929
940
  * not passed, the visibility will be unchanged. If visibility is not set and makePublic is set,
930
941
  * makePublic takes effect. If makePublic and visibility are set, they must not be conflicting.
931
942
  * If neither is set, the fragment visibility will remain unchanged.
943
+ * @param fragmentConfigJson Optional fragment config as a JSON object. Takes precedence over
944
+ * config if both are passed.
932
945
  * @returns The updated fragment
933
946
  */
934
- updateFragment(id: string, name: string, config: Struct, makePublic?: boolean, visibility?: FragmentVisibility): Promise<Fragment | undefined>;
947
+ updateFragment(id: string, name: string, config: Struct, makePublic?: boolean, visibility?: FragmentVisibility, fragmentConfigJson?: JsonObject): Promise<Fragment | undefined>;
935
948
  /**
936
949
  * Deletes a fragment.
937
950
  *
@@ -942,7 +955,7 @@ export declare class AppClient {
942
955
  * ```
943
956
  *
944
957
  * For more information, see [App
945
- * API](https://docs.viam.com/dev/reference/apis/fleet/#deletefragment).
958
+ * API](https://docs.viam.com/reference/apis/fleet/#deletefragment).
946
959
  *
947
960
  * @param id The ID of the fragment to delete
948
961
  */
@@ -955,7 +968,7 @@ export declare class AppClient {
955
968
  * ```
956
969
  *
957
970
  * For more information, see [App
958
- * API](https://docs.viam.com/dev/reference/apis/fleet/#listmachinefragments).
971
+ * API](https://docs.viam.com/reference/apis/fleet/#listmachinefragments).
959
972
  *
960
973
  * @param machineId The machine ID used to filter fragments defined in a machine's parts. Also
961
974
  * returns any fragments nested within the fragments defined in parts.
@@ -981,7 +994,7 @@ export declare class AppClient {
981
994
  * );
982
995
  * ```
983
996
  *
984
- * For more information, see [App API](https://docs.viam.com/dev/reference/apis/fleet/#addrole).
997
+ * For more information, see [App API](https://docs.viam.com/reference/apis/fleet/#addrole).
985
998
  *
986
999
  * @param organizationId The ID of the organization to create the role under
987
1000
  * @param entityId The ID of the entity the role belongs to (for example a user ID)
@@ -1006,8 +1019,7 @@ export declare class AppClient {
1006
1019
  * );
1007
1020
  * ```
1008
1021
  *
1009
- * For more information, see [App
1010
- * API](https://docs.viam.com/dev/reference/apis/fleet/#removerole).
1022
+ * For more information, see [App API](https://docs.viam.com/reference/apis/fleet/#removerole).
1011
1023
  *
1012
1024
  * @param organizationId The ID of the organization to remove the role from
1013
1025
  * @param entityId The ID of the entity the role belongs to (for example a user ID)
@@ -1046,8 +1058,7 @@ export declare class AppClient {
1046
1058
  * await appClient.changeRole(oldAuth, newAuth);
1047
1059
  * ```
1048
1060
  *
1049
- * For more information, see [App
1050
- * API](https://docs.viam.com/dev/reference/apis/fleet/#changerole).
1061
+ * For more information, see [App API](https://docs.viam.com/reference/apis/fleet/#changerole).
1051
1062
  *
1052
1063
  * @param oldAuthorization The existing authorization
1053
1064
  * @param newAuthorization The new authorization to change to
@@ -1057,7 +1068,7 @@ export declare class AppClient {
1057
1068
  * List all authorizations for an organization.
1058
1069
  *
1059
1070
  * For more information, see [App
1060
- * API](https://docs.viam.com/dev/reference/apis/fleet/#listauthorizations).
1071
+ * API](https://docs.viam.com/reference/apis/fleet/#listauthorizations).
1061
1072
  *
1062
1073
  * @param organizationId The ID of the organization to list authorizations for
1063
1074
  * @param resourceIds Optional list of IDs of resources to list authorizations for. If not
@@ -1069,7 +1080,7 @@ export declare class AppClient {
1069
1080
  * Checks whether requested permissions exist.
1070
1081
  *
1071
1082
  * For more information, see [App
1072
- * API](https://docs.viam.com/dev/reference/apis/fleet/#checkpermissions).
1083
+ * API](https://docs.viam.com/reference/apis/fleet/#checkpermissions).
1073
1084
  *
1074
1085
  * @param permissions A list of permissions to check
1075
1086
  * @returns A filtered list of the authorized permissions
@@ -1085,7 +1096,7 @@ export declare class AppClient {
1085
1096
  * ```
1086
1097
  *
1087
1098
  * For more information, see [App
1088
- * API](https://docs.viam.com/dev/reference/apis/fleet/#getregistryitem).
1099
+ * API](https://docs.viam.com/reference/apis/fleet/#getregistryitem).
1089
1100
  *
1090
1101
  * @param itemId The ID of the item to get
1091
1102
  * @returns The requested item
@@ -1101,7 +1112,7 @@ export declare class AppClient {
1101
1112
  * ```
1102
1113
  *
1103
1114
  * For more information, see [App
1104
- * API](https://docs.viam.com/dev/reference/apis/fleet/#createregistryitem).
1115
+ * API](https://docs.viam.com/reference/apis/fleet/#createregistryitem).
1105
1116
  *
1106
1117
  * @param organizationId The ID of the organization to create the registry item under
1107
1118
  * @param name The name of the registry item
@@ -1123,7 +1134,7 @@ export declare class AppClient {
1123
1134
  * ```
1124
1135
  *
1125
1136
  * For more information, see [App
1126
- * API](https://docs.viam.com/dev/reference/apis/fleet/#updateregistryitem).
1137
+ * API](https://docs.viam.com/reference/apis/fleet/#updateregistryitem).
1127
1138
  *
1128
1139
  * @param itemId The ID of the registry item to update
1129
1140
  * @param type The PackageType to update the item to
@@ -1149,7 +1160,7 @@ export declare class AppClient {
1149
1160
  * ```
1150
1161
  *
1151
1162
  * For more information, see [App
1152
- * API](https://docs.viam.com/dev/reference/apis/fleet/#listregistryitems).
1163
+ * API](https://docs.viam.com/reference/apis/fleet/#listregistryitems).
1153
1164
  *
1154
1165
  * @param organizationId The ID of the organization to query registry items for
1155
1166
  * @param types A list of types to query. If empty, will not filter on type
@@ -1172,7 +1183,7 @@ export declare class AppClient {
1172
1183
  * ```
1173
1184
  *
1174
1185
  * For more information, see [App
1175
- * API](https://docs.viam.com/dev/reference/apis/fleet/#deleteregistryitem).
1186
+ * API](https://docs.viam.com/reference/apis/fleet/#deleteregistryitem).
1176
1187
  *
1177
1188
  * @param itemId The ID of the item to delete
1178
1189
  */
@@ -1242,8 +1253,7 @@ export declare class AppClient {
1242
1253
  * const module = await appClient.createModule('<YOUR-ORGANIZATION-ID>', 'newModule');
1243
1254
  * ```
1244
1255
  *
1245
- * For more information, see [App
1246
- * API](https://docs.viam.com/dev/reference/apis/fleet/#createmodule).
1256
+ * For more information, see [App API](https://docs.viam.com/reference/apis/fleet/#createmodule).
1247
1257
  *
1248
1258
  * @param organizationId The ID of the organization to create the module under
1249
1259
  * @param name The name of the module
@@ -1266,8 +1276,7 @@ export declare class AppClient {
1266
1276
  * );
1267
1277
  * ```
1268
1278
  *
1269
- * For more information, see [App
1270
- * API](https://docs.viam.com/dev/reference/apis/fleet/#updatemodule).
1279
+ * For more information, see [App API](https://docs.viam.com/reference/apis/fleet/#updatemodule).
1271
1280
  *
1272
1281
  * @param moduleId The ID of the module to update
1273
1282
  * @param visibility The visibility to set for the module
@@ -1287,7 +1296,7 @@ export declare class AppClient {
1287
1296
  * const module = await appClient.getModule('<YOUR-MODULE-ID>');
1288
1297
  * ```
1289
1298
  *
1290
- * For more information, see [App API](https://docs.viam.com/dev/reference/apis/fleet/#getmodule).
1299
+ * For more information, see [App API](https://docs.viam.com/reference/apis/fleet/#getmodule).
1291
1300
  *
1292
1301
  * @param moduleId The ID of the module
1293
1302
  * @returns The requested module
@@ -1302,8 +1311,7 @@ export declare class AppClient {
1302
1311
  * const modules = await appClient.listModules('<YOUR-ORGANIZATION-ID>');
1303
1312
  * ```
1304
1313
  *
1305
- * For more information, see [App
1306
- * API](https://docs.viam.com/dev/reference/apis/fleet/#listmodules).
1314
+ * For more information, see [App API](https://docs.viam.com/reference/apis/fleet/#listmodules).
1307
1315
  *
1308
1316
  * @param organizationId The ID of the organization to query
1309
1317
  * @returns The organization's modules
@@ -1312,7 +1320,7 @@ export declare class AppClient {
1312
1320
  /**
1313
1321
  * Creates a new API key.
1314
1322
  *
1315
- * For more information, see [App API](https://docs.viam.com/dev/reference/apis/fleet/#createkey).
1323
+ * For more information, see [App API](https://docs.viam.com/reference/apis/fleet/#createkey).
1316
1324
  *
1317
1325
  * @param authorizations The list of authorizations to provide for the API key
1318
1326
  * @param name An optional name for the key. If none is passed, defaults to present timestamp
@@ -1328,7 +1336,7 @@ export declare class AppClient {
1328
1336
  * await appClient.deleteKey('<YOUR-KEY-ID>');
1329
1337
  * ```
1330
1338
  *
1331
- * For more information, see [App API](https://docs.viam.com/dev/reference/apis/fleet/#deletekey).
1339
+ * For more information, see [App API](https://docs.viam.com/reference/apis/fleet/#deletekey).
1332
1340
  *
1333
1341
  * @param id The ID of the key to delete
1334
1342
  */
@@ -1342,7 +1350,7 @@ export declare class AppClient {
1342
1350
  * const keys = await appClient.listKeys('<YOUR-ORGANIZATION-ID>');
1343
1351
  * ```
1344
1352
  *
1345
- * For more information, see [App API](https://docs.viam.com/dev/reference/apis/fleet/#listkeys).
1353
+ * For more information, see [App API](https://docs.viam.com/reference/apis/fleet/#listkeys).
1346
1354
  *
1347
1355
  * @param orgId The ID of the organization to query
1348
1356
  * @returns The list of API keys
@@ -1357,7 +1365,7 @@ export declare class AppClient {
1357
1365
  * const key = await appClient.rotateKey('<YOUR-KEY-ID>');
1358
1366
  * ```
1359
1367
  *
1360
- * For more information, see [App API](https://docs.viam.com/dev/reference/apis/fleet/#rotatekey).
1368
+ * For more information, see [App API](https://docs.viam.com/reference/apis/fleet/#rotatekey).
1361
1369
  *
1362
1370
  * @param id The ID of the key to rotate
1363
1371
  * @returns The updated key and ID
@@ -1373,7 +1381,7 @@ export declare class AppClient {
1373
1381
  * ```
1374
1382
  *
1375
1383
  * For more information, see [App
1376
- * API](https://docs.viam.com/dev/reference/apis/fleet/#createkeyfromexistingkeyauthorizations).
1384
+ * API](https://docs.viam.com/reference/apis/fleet/#createkeyfromexistingkeyauthorizations).
1377
1385
  *
1378
1386
  * @param id The ID of the key to duplicate
1379
1387
  * @returns The new key and ID
@@ -1391,8 +1399,7 @@ export declare class AppClient {
1391
1399
  * );
1392
1400
  * ```
1393
1401
  *
1394
- * For more information, see [App
1395
- * API](https://docs.viam.com/dev/reference/apis/fleet/#getappcontent).
1402
+ * For more information, see [App API](https://docs.viam.com/reference/apis/fleet/#getappcontent).
1396
1403
  *
1397
1404
  * @param publicNamespace The public namespace of the organization
1398
1405
  * @param name The name of the app
@@ -1409,7 +1416,7 @@ export declare class AppClient {
1409
1416
  * ```
1410
1417
  *
1411
1418
  * For more information, see [App
1412
- * API](https://docs.viam.com/dev/reference/apis/fleet/#getorganizationmetadata).
1419
+ * API](https://docs.viam.com/reference/apis/fleet/#getorganizationmetadata).
1413
1420
  *
1414
1421
  * @param id The ID of the organization
1415
1422
  * @returns The metadata associated with the organization
@@ -1427,7 +1434,7 @@ export declare class AppClient {
1427
1434
  * ```
1428
1435
  *
1429
1436
  * For more information, see [App
1430
- * API](https://docs.viam.com/dev/reference/apis/fleet/#updateorganizationmetadata).
1437
+ * API](https://docs.viam.com/reference/apis/fleet/#updateorganizationmetadata).
1431
1438
  *
1432
1439
  * @param id The ID of the organization
1433
1440
  * @param data The metadata to update
@@ -1443,7 +1450,7 @@ export declare class AppClient {
1443
1450
  * ```
1444
1451
  *
1445
1452
  * For more information, see [App
1446
- * API](https://docs.viam.com/dev/reference/apis/fleet/#getlocationmetadata).
1453
+ * API](https://docs.viam.com/reference/apis/fleet/#getlocationmetadata).
1447
1454
  *
1448
1455
  * @param id The ID of the location
1449
1456
  * @returns The metadata associated with the location
@@ -1461,7 +1468,7 @@ export declare class AppClient {
1461
1468
  * ```
1462
1469
  *
1463
1470
  * For more information, see [App
1464
- * API](https://docs.viam.com/dev/reference/apis/fleet/#updatelocationmetadata).
1471
+ * API](https://docs.viam.com/reference/apis/fleet/#updatelocationmetadata).
1465
1472
  *
1466
1473
  * @param id The ID of the location
1467
1474
  * @param data The metadata to update
@@ -1477,7 +1484,7 @@ export declare class AppClient {
1477
1484
  * ```
1478
1485
  *
1479
1486
  * For more information, see [App
1480
- * API](https://docs.viam.com/dev/reference/apis/fleet/#getrobotmetadata).
1487
+ * API](https://docs.viam.com/reference/apis/fleet/#getrobotmetadata).
1481
1488
  *
1482
1489
  * @param id The ID of the robot
1483
1490
  * @returns The metadata associated with the robot
@@ -1495,7 +1502,7 @@ export declare class AppClient {
1495
1502
  * ```
1496
1503
  *
1497
1504
  * For more information, see [App
1498
- * API](https://docs.viam.com/dev/reference/apis/fleet/#updaterobotmetadata).
1505
+ * API](https://docs.viam.com/reference/apis/fleet/#updaterobotmetadata).
1499
1506
  *
1500
1507
  * @param id The ID of the robot
1501
1508
  * @param data The metadata to update
@@ -1511,7 +1518,7 @@ export declare class AppClient {
1511
1518
  * ```
1512
1519
  *
1513
1520
  * For more information, see [App
1514
- * API](https://docs.viam.com/dev/reference/apis/fleet/#getrobotpartmetadata).
1521
+ * API](https://docs.viam.com/reference/apis/fleet/#getrobotpartmetadata).
1515
1522
  *
1516
1523
  * @param id The ID of the robot part
1517
1524
  * @returns The metadata associated with the robot part
@@ -1529,7 +1536,7 @@ export declare class AppClient {
1529
1536
  * ```
1530
1537
  *
1531
1538
  * For more information, see [App
1532
- * API](https://docs.viam.com/dev/reference/apis/fleet/#updaterobotpartmetadata).
1539
+ * API](https://docs.viam.com/reference/apis/fleet/#updaterobotpartmetadata).
1533
1540
  *
1534
1541
  * @param id The ID of the robot part
1535
1542
  * @param data The metadata to update
@@ -1548,7 +1555,7 @@ export declare class AppClient {
1548
1555
  * ```
1549
1556
  *
1550
1557
  * For more information, see [App
1551
- * API](https://docs.viam.com/dev/reference/apis/fleet/#getappbranding).
1558
+ * API](https://docs.viam.com/reference/apis/fleet/#getappbranding).
1552
1559
  *
1553
1560
  * @param publicNamespace The public namespace of the organization
1554
1561
  * @param name The name of the app