@viamrobotics/sdk 0.40.1 → 0.40.2
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/v1/app_pb.d.ts +10 -0
- package/dist/gen/app/v1/robot_pb.d.ts +5 -0
- package/dist/main.es.js +393 -21
- package/dist/main.umd.js +3 -3
- package/dist/services/data-manager/client.d.ts +6 -0
- package/dist/services/vision/vision.d.ts +21 -0
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -6106,11 +6106,16 @@ const In = (a) => {
|
|
|
6106
6106
|
e,
|
|
6107
6107
|
n
|
|
6108
6108
|
), o = t.additionalIceServers.map(
|
|
6109
|
-
(c) =>
|
|
6110
|
-
|
|
6111
|
-
|
|
6112
|
-
|
|
6113
|
-
|
|
6109
|
+
(c) => {
|
|
6110
|
+
const p = [];
|
|
6111
|
+
for (const d of c.urls)
|
|
6112
|
+
d.endsWith("udp") && p.push(`${d.slice(0, -3)}tcp`), p.push(d);
|
|
6113
|
+
return {
|
|
6114
|
+
urls: p,
|
|
6115
|
+
credential: c.credential,
|
|
6116
|
+
username: c.username
|
|
6117
|
+
};
|
|
6118
|
+
}
|
|
6114
6119
|
), i = n;
|
|
6115
6120
|
let r;
|
|
6116
6121
|
return i.webrtcOptions === void 0 ? r = {
|
|
@@ -6148,7 +6153,7 @@ const In = (a) => {
|
|
|
6148
6153
|
"cannot set webrtcOptions.signalingCredentials with webrtcOptions.signalingAccessToken"
|
|
6149
6154
|
);
|
|
6150
6155
|
}
|
|
6151
|
-
}, Kf = "v0.1.
|
|
6156
|
+
}, Kf = "v0.1.430", ur = /* @__PURE__ */ s.makeEnum(
|
|
6152
6157
|
"viam.common.v1.KinematicsFileFormat",
|
|
6153
6158
|
[
|
|
6154
6159
|
{ no: 0, name: "KINEMATICS_FILE_FORMAT_UNSPECIFIED", localName: "UNSPECIFIED" },
|
|
@@ -6621,7 +6626,7 @@ const In = (a) => {
|
|
|
6621
6626
|
WorldState: hr,
|
|
6622
6627
|
safety_heartbeat_monitored: Sr
|
|
6623
6628
|
}, Symbol.toStringTag, { value: "Module" })), Ka = new Headers({
|
|
6624
|
-
"viam-client": `typescript;v0.40.
|
|
6629
|
+
"viam-client": `typescript;v0.40.2;${Kf}`
|
|
6625
6630
|
}), G = async function(e, n, t, o = {}, i = {}) {
|
|
6626
6631
|
const r = new q({
|
|
6627
6632
|
name: n,
|
|
@@ -10816,7 +10821,14 @@ const gt = /* @__PURE__ */ s.makeMessageType(
|
|
|
10816
10821
|
/* ScalarType.STRING */
|
|
10817
10822
|
},
|
|
10818
10823
|
{ no: 5, name: "sessions", kind: "message", T: rl },
|
|
10819
|
-
{ no: 6, name: "traffic_tunnel_endpoints", kind: "message", T: ml, repeated: !0 }
|
|
10824
|
+
{ no: 6, name: "traffic_tunnel_endpoints", kind: "message", T: ml, repeated: !0 },
|
|
10825
|
+
{
|
|
10826
|
+
no: 7,
|
|
10827
|
+
name: "no_tls",
|
|
10828
|
+
kind: "scalar",
|
|
10829
|
+
T: 8
|
|
10830
|
+
/* ScalarType.BOOL */
|
|
10831
|
+
}
|
|
10820
10832
|
]
|
|
10821
10833
|
), rl = /* @__PURE__ */ s.makeMessageType(
|
|
10822
10834
|
"viam.app.v1.SessionsConfig",
|
|
@@ -15836,7 +15848,8 @@ const fi = (a) => !!(a > 0 && Number.isInteger(a)), QR = (a) => a.includes("loca
|
|
|
15836
15848
|
T: 9
|
|
15837
15849
|
/* ScalarType.STRING */
|
|
15838
15850
|
},
|
|
15839
|
-
{ no: 3, name: "robot_config", kind: "message", T: l }
|
|
15851
|
+
{ no: 3, name: "robot_config", kind: "message", T: l },
|
|
15852
|
+
{ no: 4, name: "last_known_update", kind: "message", T: _, opt: !0 }
|
|
15840
15853
|
]
|
|
15841
15854
|
), Bu = /* @__PURE__ */ s.makeMessageType(
|
|
15842
15855
|
"viam.app.v1.UpdateRobotPartResponse",
|
|
@@ -16250,7 +16263,8 @@ const fi = (a) => !!(a > 0 && Number.isInteger(a)), QR = (a) => a.includes("loca
|
|
|
16250
16263
|
},
|
|
16251
16264
|
{ no: 3, name: "config", kind: "message", T: l },
|
|
16252
16265
|
{ no: 4, name: "public", kind: "scalar", T: 8, opt: !0 },
|
|
16253
|
-
{ no: 5, name: "visibility", kind: "enum", T: s.getEnumType(Nn), opt: !0 }
|
|
16266
|
+
{ no: 5, name: "visibility", kind: "enum", T: s.getEnumType(Nn), opt: !0 },
|
|
16267
|
+
{ no: 6, name: "last_known_update", kind: "message", T: _, opt: !0 }
|
|
16254
16268
|
]
|
|
16255
16269
|
), rg = /* @__PURE__ */ s.makeMessageType(
|
|
16256
16270
|
"viam.app.v1.UpdateFragmentResponse",
|
|
@@ -19370,6 +19384,9 @@ class t1 {
|
|
|
19370
19384
|
* );
|
|
19371
19385
|
* ```
|
|
19372
19386
|
*
|
|
19387
|
+
* For more information, see [App
|
|
19388
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#getuseridbyemail).
|
|
19389
|
+
*
|
|
19373
19390
|
* @param email The email address of the user
|
|
19374
19391
|
* @returns The user's ID
|
|
19375
19392
|
*/
|
|
@@ -19379,6 +19396,9 @@ class t1 {
|
|
|
19379
19396
|
/**
|
|
19380
19397
|
* Create a new organization.
|
|
19381
19398
|
*
|
|
19399
|
+
* For more information, see [App
|
|
19400
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#createorganization).
|
|
19401
|
+
*
|
|
19382
19402
|
* @param name The name of the new organization
|
|
19383
19403
|
* @returns The new organization
|
|
19384
19404
|
*/
|
|
@@ -19394,6 +19414,9 @@ class t1 {
|
|
|
19394
19414
|
* const organizations = await appClient.listOrganizations();
|
|
19395
19415
|
* ```
|
|
19396
19416
|
*
|
|
19417
|
+
* For more information, see [App
|
|
19418
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#listorganizations).
|
|
19419
|
+
*
|
|
19397
19420
|
* @returns The organization list
|
|
19398
19421
|
*/
|
|
19399
19422
|
async listOrganizations() {
|
|
@@ -19411,6 +19434,9 @@ class t1 {
|
|
|
19411
19434
|
* );
|
|
19412
19435
|
* ```
|
|
19413
19436
|
*
|
|
19437
|
+
* For more information, see [App
|
|
19438
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#getorganizationswithaccesstolocation).
|
|
19439
|
+
*
|
|
19414
19440
|
* @param locationId The ID of the location to query
|
|
19415
19441
|
* @returns The list of locations with access to the requested location
|
|
19416
19442
|
*/
|
|
@@ -19439,6 +19465,9 @@ class t1 {
|
|
|
19439
19465
|
* );
|
|
19440
19466
|
* ```
|
|
19441
19467
|
*
|
|
19468
|
+
* For more information, see [App
|
|
19469
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#getorganization).
|
|
19470
|
+
*
|
|
19442
19471
|
* @param organizationId The ID of the organization
|
|
19443
19472
|
* @returns Details about the organization, if it exists
|
|
19444
19473
|
*/
|
|
@@ -19455,6 +19484,9 @@ class t1 {
|
|
|
19455
19484
|
* await appClient.getOrganizationNamespaceAvailability('name');
|
|
19456
19485
|
* ```
|
|
19457
19486
|
*
|
|
19487
|
+
* For more information, see [App
|
|
19488
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#getorganizationnamespaceavailability).
|
|
19489
|
+
*
|
|
19458
19490
|
* @param namespace The namespace to query for availability
|
|
19459
19491
|
* @returns A boolean indicating whether or not the namespace is available
|
|
19460
19492
|
*/
|
|
@@ -19475,6 +19507,9 @@ class t1 {
|
|
|
19475
19507
|
* );
|
|
19476
19508
|
* ```
|
|
19477
19509
|
*
|
|
19510
|
+
* For more information, see [App
|
|
19511
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#updateorganization).
|
|
19512
|
+
*
|
|
19478
19513
|
* @param organizationId The id of the organization to update
|
|
19479
19514
|
* @param name Optional name to update the organization with
|
|
19480
19515
|
* @param publicNamespace Optional namespace to update the organization with
|
|
@@ -19500,6 +19535,9 @@ class t1 {
|
|
|
19500
19535
|
* await appClient.deleteOrganization('<YOUR-ORGANIZATION-ID>');
|
|
19501
19536
|
* ```
|
|
19502
19537
|
*
|
|
19538
|
+
* For more information, see [App
|
|
19539
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#deleteorganization).
|
|
19540
|
+
*
|
|
19503
19541
|
* @param organizationId The id of the organization to delete
|
|
19504
19542
|
*/
|
|
19505
19543
|
async deleteOrganization(e) {
|
|
@@ -19516,6 +19554,9 @@ class t1 {
|
|
|
19516
19554
|
* );
|
|
19517
19555
|
* ```
|
|
19518
19556
|
*
|
|
19557
|
+
* For more information, see [App
|
|
19558
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#listorganizationmembers).
|
|
19559
|
+
*
|
|
19519
19560
|
* @param organizationId The id of the organization to query
|
|
19520
19561
|
* @returns An object containing organization members, pending invites, and
|
|
19521
19562
|
* org ID
|
|
@@ -19547,6 +19588,9 @@ class t1 {
|
|
|
19547
19588
|
* );
|
|
19548
19589
|
* ```
|
|
19549
19590
|
*
|
|
19591
|
+
* For more information, see [App
|
|
19592
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#createorganizationinvite).
|
|
19593
|
+
*
|
|
19550
19594
|
* @param organizationId The id of the organization to create the invite for
|
|
19551
19595
|
* @param email The email address of the user to generate an invite for
|
|
19552
19596
|
* @param authorizations The authorizations to associate with the new invite
|
|
@@ -19586,6 +19630,9 @@ class t1 {
|
|
|
19586
19630
|
* );
|
|
19587
19631
|
* ```
|
|
19588
19632
|
*
|
|
19633
|
+
* For more information, see [App
|
|
19634
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#updateorganizationinviteauthorizations).
|
|
19635
|
+
*
|
|
19589
19636
|
* @param organizationId The id of the organization
|
|
19590
19637
|
* @param email The email address associated with the invite
|
|
19591
19638
|
* @param addAuthsList List of authorizations to add to the invite
|
|
@@ -19612,6 +19659,9 @@ class t1 {
|
|
|
19612
19659
|
* );
|
|
19613
19660
|
* ```
|
|
19614
19661
|
*
|
|
19662
|
+
* For more information, see [App
|
|
19663
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#deleteorganizationmember).
|
|
19664
|
+
*
|
|
19615
19665
|
* @param organizationId The ID of the organization
|
|
19616
19666
|
* @param userId The ID of the user
|
|
19617
19667
|
*/
|
|
@@ -19630,6 +19680,9 @@ class t1 {
|
|
|
19630
19680
|
* );
|
|
19631
19681
|
* ```
|
|
19632
19682
|
*
|
|
19683
|
+
* For more information, see [App
|
|
19684
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#deleteorganizationinvite).
|
|
19685
|
+
*
|
|
19633
19686
|
* @param organizationId The ID of the organization
|
|
19634
19687
|
* @param email The email associated with the invite to delete
|
|
19635
19688
|
*/
|
|
@@ -19648,6 +19701,9 @@ class t1 {
|
|
|
19648
19701
|
* );
|
|
19649
19702
|
* ```
|
|
19650
19703
|
*
|
|
19704
|
+
* For more information, see [App
|
|
19705
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#resendorganizationinvite).
|
|
19706
|
+
*
|
|
19651
19707
|
* @param organizationId The ID of the organization
|
|
19652
19708
|
* @param email The email associated with the invite to resend
|
|
19653
19709
|
* @returns The invite
|
|
@@ -19670,6 +19726,9 @@ class t1 {
|
|
|
19670
19726
|
* );
|
|
19671
19727
|
* ```
|
|
19672
19728
|
*
|
|
19729
|
+
* For more information, see [App
|
|
19730
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#createlocation).
|
|
19731
|
+
*
|
|
19673
19732
|
* @param organizationId The ID of the organization to create the location
|
|
19674
19733
|
* under
|
|
19675
19734
|
* @param name The name of the location to create
|
|
@@ -19693,6 +19752,9 @@ class t1 {
|
|
|
19693
19752
|
* const location = await appClient.getLocation('<YOUR-LOCATION-ID>');
|
|
19694
19753
|
* ```
|
|
19695
19754
|
*
|
|
19755
|
+
* For more information, see [App
|
|
19756
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#getlocation).
|
|
19757
|
+
*
|
|
19696
19758
|
* @param locId The ID of the location to query.
|
|
19697
19759
|
* @returns The location object
|
|
19698
19760
|
*/
|
|
@@ -19713,6 +19775,9 @@ class t1 {
|
|
|
19713
19775
|
* );
|
|
19714
19776
|
* ```
|
|
19715
19777
|
*
|
|
19778
|
+
* For more information, see [App
|
|
19779
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#updatelocation).
|
|
19780
|
+
*
|
|
19716
19781
|
* @param locId The ID of the location to update
|
|
19717
19782
|
* @param name Optional string to update the location's name to
|
|
19718
19783
|
* @param parentLocId Optional string to update the location's parent location
|
|
@@ -19737,6 +19802,9 @@ class t1 {
|
|
|
19737
19802
|
* await appClient.deleteLocation('<YOUR-LOCATION-ID>');
|
|
19738
19803
|
* ```
|
|
19739
19804
|
*
|
|
19805
|
+
* For more information, see [App
|
|
19806
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#deletelocation).
|
|
19807
|
+
*
|
|
19740
19808
|
* @param locId The ID of the location to delete
|
|
19741
19809
|
*/
|
|
19742
19810
|
async deleteLocation(e) {
|
|
@@ -19753,6 +19821,9 @@ class t1 {
|
|
|
19753
19821
|
* );
|
|
19754
19822
|
* ```
|
|
19755
19823
|
*
|
|
19824
|
+
* For more information, see [App
|
|
19825
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#listlocations).
|
|
19826
|
+
*
|
|
19756
19827
|
* @param organizationId The ID of the organization to query
|
|
19757
19828
|
* @returns A list of locations under the organization
|
|
19758
19829
|
*/
|
|
@@ -19771,6 +19842,9 @@ class t1 {
|
|
|
19771
19842
|
* );
|
|
19772
19843
|
* ```
|
|
19773
19844
|
*
|
|
19845
|
+
* For more information, see [App
|
|
19846
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#sharelocation).
|
|
19847
|
+
*
|
|
19774
19848
|
* @param organizationId The ID of the organization to share with
|
|
19775
19849
|
* @param locId The ID of the location to share
|
|
19776
19850
|
*/
|
|
@@ -19789,6 +19863,9 @@ class t1 {
|
|
|
19789
19863
|
* );
|
|
19790
19864
|
* ```
|
|
19791
19865
|
*
|
|
19866
|
+
* For more information, see [App
|
|
19867
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#unsharelocation).
|
|
19868
|
+
*
|
|
19792
19869
|
* @param organizationId The ID of the organization to unshare with
|
|
19793
19870
|
* @param locId The ID of the location to unshare
|
|
19794
19871
|
*/
|
|
@@ -19806,6 +19883,9 @@ class t1 {
|
|
|
19806
19883
|
* );
|
|
19807
19884
|
* ```
|
|
19808
19885
|
*
|
|
19886
|
+
* For more information, see [App
|
|
19887
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#locationauth).
|
|
19888
|
+
*
|
|
19809
19889
|
* @param locId The ID of the location to retrieve `LocationAuth` from.
|
|
19810
19890
|
* @returns The `LocationAuth` for the requested location.
|
|
19811
19891
|
*/
|
|
@@ -19823,6 +19903,9 @@ class t1 {
|
|
|
19823
19903
|
* );
|
|
19824
19904
|
* ```
|
|
19825
19905
|
*
|
|
19906
|
+
* For more information, see [App
|
|
19907
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#createlocationsecret).
|
|
19908
|
+
*
|
|
19826
19909
|
* @param locId The ID of the location to create a `LocationAuth` for
|
|
19827
19910
|
* @returns The newly created `LocationAuth`
|
|
19828
19911
|
*/
|
|
@@ -19841,6 +19924,9 @@ class t1 {
|
|
|
19841
19924
|
* );
|
|
19842
19925
|
* ```
|
|
19843
19926
|
*
|
|
19927
|
+
* For more information, see [App
|
|
19928
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#deletelocationsecret).
|
|
19929
|
+
*
|
|
19844
19930
|
* @param locId The ID of the location to delete the `LocationAuth` from
|
|
19845
19931
|
* @param secretId The ID of the location secret to delete
|
|
19846
19932
|
*/
|
|
@@ -19856,6 +19942,9 @@ class t1 {
|
|
|
19856
19942
|
* const robot = await appClient.getRobot('<YOUR-ROBOT-ID>');
|
|
19857
19943
|
* ```
|
|
19858
19944
|
*
|
|
19945
|
+
* For more information, see [App
|
|
19946
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#getrobot).
|
|
19947
|
+
*
|
|
19859
19948
|
* @param id The ID of the robot
|
|
19860
19949
|
* @returns The `Robot` object
|
|
19861
19950
|
*/
|
|
@@ -19873,6 +19962,9 @@ class t1 {
|
|
|
19873
19962
|
* );
|
|
19874
19963
|
* ```
|
|
19875
19964
|
*
|
|
19965
|
+
* For more information, see [App
|
|
19966
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#getroverrentalrobots).
|
|
19967
|
+
*
|
|
19876
19968
|
* @param orgId The ID of the organization to query
|
|
19877
19969
|
* @returns The list of `RoverRentalRobot` objects
|
|
19878
19970
|
*/
|
|
@@ -19888,6 +19980,9 @@ class t1 {
|
|
|
19888
19980
|
* const robotParts = await appClient.getRobotParts('<YOUR-ROBOT-ID>');
|
|
19889
19981
|
* ```
|
|
19890
19982
|
*
|
|
19983
|
+
* For more information, see [App
|
|
19984
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#getrobotparts).
|
|
19985
|
+
*
|
|
19891
19986
|
* @param robotId The ID of the robot to query
|
|
19892
19987
|
* @returns The list of `RobotPart` objects associated with the robot
|
|
19893
19988
|
*/
|
|
@@ -19903,6 +19998,9 @@ class t1 {
|
|
|
19903
19998
|
* const robotPart = await appClient.getRobotPart('<YOUR-ROBOT-PART-ID>');
|
|
19904
19999
|
* ```
|
|
19905
20000
|
*
|
|
20001
|
+
* For more information, see [App
|
|
20002
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#getrobotpart).
|
|
20003
|
+
*
|
|
19906
20004
|
* @param id The ID of the requested robot part
|
|
19907
20005
|
* @returns The robot part and a its json config
|
|
19908
20006
|
*/
|
|
@@ -19921,6 +20019,9 @@ class t1 {
|
|
|
19921
20019
|
* );
|
|
19922
20020
|
* ```
|
|
19923
20021
|
*
|
|
20022
|
+
* For more information, see [App
|
|
20023
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#getrobotpartlogs).
|
|
20024
|
+
*
|
|
19924
20025
|
* @param id The ID of the requested robot part
|
|
19925
20026
|
* @param filter Optional string to filter logs on
|
|
19926
20027
|
* @param levels Optional array of log levels to return. Defaults to returning
|
|
@@ -19950,6 +20051,9 @@ class t1 {
|
|
|
19950
20051
|
* );
|
|
19951
20052
|
* ```
|
|
19952
20053
|
*
|
|
20054
|
+
* For more information, see [App
|
|
20055
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#tailrobotpartlogs).
|
|
20056
|
+
*
|
|
19953
20057
|
* @param id The ID of the requested robot part
|
|
19954
20058
|
* @param queue A queue to put the log entries into
|
|
19955
20059
|
* @param filter Optional string to filter logs on
|
|
@@ -19977,6 +20081,9 @@ class t1 {
|
|
|
19977
20081
|
* );
|
|
19978
20082
|
* ```
|
|
19979
20083
|
*
|
|
20084
|
+
* For more information, see [App
|
|
20085
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#getrobotparthistory).
|
|
20086
|
+
*
|
|
19980
20087
|
* @param id The ID of the requested robot part
|
|
19981
20088
|
* @returns The list of the robot part's history
|
|
19982
20089
|
*/
|
|
@@ -19995,6 +20102,9 @@ class t1 {
|
|
|
19995
20102
|
* );
|
|
19996
20103
|
* ```
|
|
19997
20104
|
*
|
|
20105
|
+
* For more information, see [App
|
|
20106
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#updaterobotpart).
|
|
20107
|
+
*
|
|
19998
20108
|
* @param id The ID of the requested robot part
|
|
19999
20109
|
* @param name The new name of the robot part
|
|
20000
20110
|
* @param robotConfig The new config for the robot part
|
|
@@ -20015,6 +20125,9 @@ class t1 {
|
|
|
20015
20125
|
* );
|
|
20016
20126
|
* ```
|
|
20017
20127
|
*
|
|
20128
|
+
* For more information, see [App
|
|
20129
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#newrobotpart).
|
|
20130
|
+
*
|
|
20018
20131
|
* @param robotId The ID of the robot to create a part for
|
|
20019
20132
|
* @param partName The name for the new robot part
|
|
20020
20133
|
* @returns The ID of the newly-created robot part
|
|
@@ -20031,6 +20144,9 @@ class t1 {
|
|
|
20031
20144
|
* await appClient.deleteRobotPart('<YOUR-ROBOT-PART-ID>');
|
|
20032
20145
|
* ```
|
|
20033
20146
|
*
|
|
20147
|
+
* For more information, see [App
|
|
20148
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#deleterobotpart).
|
|
20149
|
+
*
|
|
20034
20150
|
* @param partId The ID of the part to delete
|
|
20035
20151
|
*/
|
|
20036
20152
|
async deleteRobotPart(e) {
|
|
@@ -20046,6 +20162,9 @@ class t1 {
|
|
|
20046
20162
|
* await appClient.getRobotAPIKeys('<YOUR-ROBOT-ID>');
|
|
20047
20163
|
* ```
|
|
20048
20164
|
*
|
|
20165
|
+
* For more information, see [App
|
|
20166
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#getrobotapikeys).
|
|
20167
|
+
*
|
|
20049
20168
|
* @param robotId The ID of the robot to get API keys for
|
|
20050
20169
|
* @returns A list of the robot's API keys
|
|
20051
20170
|
*/
|
|
@@ -20061,6 +20180,9 @@ class t1 {
|
|
|
20061
20180
|
* await appClient.markPartAsMain('<YOUR-ROBOT-PART-ID>');
|
|
20062
20181
|
* ```
|
|
20063
20182
|
*
|
|
20183
|
+
* For more information, see [App
|
|
20184
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#markpartasmain).
|
|
20185
|
+
*
|
|
20064
20186
|
* @param partId The ID of the part to mark as main
|
|
20065
20187
|
*/
|
|
20066
20188
|
async markPartAsMain(e) {
|
|
@@ -20075,6 +20197,9 @@ class t1 {
|
|
|
20075
20197
|
* await appClient.markPartForRestart('<YOUR-ROBOT-PART-ID>');
|
|
20076
20198
|
* ```
|
|
20077
20199
|
*
|
|
20200
|
+
* For more information, see [App
|
|
20201
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#markpartforrestart).
|
|
20202
|
+
*
|
|
20078
20203
|
* @param partId The ID of the part to mark for restart
|
|
20079
20204
|
*/
|
|
20080
20205
|
async markPartForRestart(e) {
|
|
@@ -20091,6 +20216,9 @@ class t1 {
|
|
|
20091
20216
|
* );
|
|
20092
20217
|
* ```
|
|
20093
20218
|
*
|
|
20219
|
+
* For more information, see [App
|
|
20220
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#createrobotpartsecret).
|
|
20221
|
+
*
|
|
20094
20222
|
* @param partId The ID of the part to create a secret for
|
|
20095
20223
|
* @returns The robot part object
|
|
20096
20224
|
*/
|
|
@@ -20109,6 +20237,9 @@ class t1 {
|
|
|
20109
20237
|
* );
|
|
20110
20238
|
* ```
|
|
20111
20239
|
*
|
|
20240
|
+
* For more information, see [App
|
|
20241
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#deleterobotpartsecret).
|
|
20242
|
+
*
|
|
20112
20243
|
* @param partId The ID of the part to delete a secret from
|
|
20113
20244
|
* @param secretId The ID of the secret to delete
|
|
20114
20245
|
*/
|
|
@@ -20124,6 +20255,9 @@ class t1 {
|
|
|
20124
20255
|
* const robots = await appClient.listRobots('<YOUR-LOCATION-ID>');
|
|
20125
20256
|
* ```
|
|
20126
20257
|
*
|
|
20258
|
+
* For more information, see [App
|
|
20259
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#listrobots).
|
|
20260
|
+
*
|
|
20127
20261
|
* @param locId The ID of the location to list robots for
|
|
20128
20262
|
* @returns The list of robot objects
|
|
20129
20263
|
*/
|
|
@@ -20142,6 +20276,9 @@ class t1 {
|
|
|
20142
20276
|
* );
|
|
20143
20277
|
* ```
|
|
20144
20278
|
*
|
|
20279
|
+
* For more information, see [App
|
|
20280
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#newrobot).
|
|
20281
|
+
*
|
|
20145
20282
|
* @param locId The ID of the location to create the robot in
|
|
20146
20283
|
* @param name The name of the new robot
|
|
20147
20284
|
* @returns The new robot's ID
|
|
@@ -20163,6 +20300,9 @@ class t1 {
|
|
|
20163
20300
|
* );
|
|
20164
20301
|
* ```
|
|
20165
20302
|
*
|
|
20303
|
+
* For more information, see [App
|
|
20304
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#updaterobot).
|
|
20305
|
+
*
|
|
20166
20306
|
* @param robotId The ID of the robot to update
|
|
20167
20307
|
* @param locId The ID of the location where the robot is
|
|
20168
20308
|
* @param name The name to update the robot to
|
|
@@ -20184,6 +20324,9 @@ class t1 {
|
|
|
20184
20324
|
* await appClient.deleteRobot('<YOUR-ROBOT-ID>');
|
|
20185
20325
|
* ```
|
|
20186
20326
|
*
|
|
20327
|
+
* For more information, see [App
|
|
20328
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#deleterobot).
|
|
20329
|
+
*
|
|
20187
20330
|
* @param id The ID of the robot to delete
|
|
20188
20331
|
*/
|
|
20189
20332
|
async deleteRobot(e) {
|
|
@@ -20200,6 +20343,9 @@ class t1 {
|
|
|
20200
20343
|
* );
|
|
20201
20344
|
* ```
|
|
20202
20345
|
*
|
|
20346
|
+
* For more information, see [App
|
|
20347
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#listfragments).
|
|
20348
|
+
*
|
|
20203
20349
|
* @param organizationId The ID of the organization to list fragments for
|
|
20204
20350
|
* @param publicOnly Optional, deprecated boolean. Use fragmentVisibilities
|
|
20205
20351
|
* instead. If true then only public fragments will be listed. Defaults to
|
|
@@ -20229,6 +20375,9 @@ class t1 {
|
|
|
20229
20375
|
* );
|
|
20230
20376
|
* ```
|
|
20231
20377
|
*
|
|
20378
|
+
* For more information, see [App
|
|
20379
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#getfragment).
|
|
20380
|
+
*
|
|
20232
20381
|
* @param id The ID of the fragment to look up
|
|
20233
20382
|
* @returns The requested fragment
|
|
20234
20383
|
*/
|
|
@@ -20247,6 +20396,9 @@ class t1 {
|
|
|
20247
20396
|
* );
|
|
20248
20397
|
* ```
|
|
20249
20398
|
*
|
|
20399
|
+
* For more information, see [App
|
|
20400
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#createfragment).
|
|
20401
|
+
*
|
|
20250
20402
|
* @param organizationId The ID of the organization to create the fragment
|
|
20251
20403
|
* under
|
|
20252
20404
|
* @param name The name of the new fragment
|
|
@@ -20272,6 +20424,9 @@ class t1 {
|
|
|
20272
20424
|
* );
|
|
20273
20425
|
* ```
|
|
20274
20426
|
*
|
|
20427
|
+
* For more information, see [App
|
|
20428
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#updatefragment).
|
|
20429
|
+
*
|
|
20275
20430
|
* @param id The ID of the fragment to update
|
|
20276
20431
|
* @param name The name to update the fragment to
|
|
20277
20432
|
* @param config The config to update the fragment to
|
|
@@ -20303,6 +20458,9 @@ class t1 {
|
|
|
20303
20458
|
* await appClient.deleteFragment('12a12ab1-1234-5678-abcd-abcd01234567');
|
|
20304
20459
|
* ```
|
|
20305
20460
|
*
|
|
20461
|
+
* For more information, see [App
|
|
20462
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#deletefragment).
|
|
20463
|
+
*
|
|
20306
20464
|
* @param id The ID of the fragment to delete
|
|
20307
20465
|
*/
|
|
20308
20466
|
async deleteFragment(e) {
|
|
@@ -20317,6 +20475,9 @@ class t1 {
|
|
|
20317
20475
|
* );
|
|
20318
20476
|
* ```
|
|
20319
20477
|
*
|
|
20478
|
+
* For more information, see [App
|
|
20479
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#listmachinefragments).
|
|
20480
|
+
*
|
|
20320
20481
|
* @param machineId The machine ID used to filter fragments defined in a
|
|
20321
20482
|
* machine's parts. Also returns any fragments nested within the fragments
|
|
20322
20483
|
* defined in parts.
|
|
@@ -20347,6 +20508,9 @@ class t1 {
|
|
|
20347
20508
|
* );
|
|
20348
20509
|
* ```
|
|
20349
20510
|
*
|
|
20511
|
+
* For more information, see [App
|
|
20512
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#addrole).
|
|
20513
|
+
*
|
|
20350
20514
|
* @param organizationId The ID of the organization to create the role under
|
|
20351
20515
|
* @param entityId The ID of the entity the role belongs to (for example a
|
|
20352
20516
|
* user ID)
|
|
@@ -20382,6 +20546,9 @@ class t1 {
|
|
|
20382
20546
|
* );
|
|
20383
20547
|
* ```
|
|
20384
20548
|
*
|
|
20549
|
+
* For more information, see [App
|
|
20550
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#removerole).
|
|
20551
|
+
*
|
|
20385
20552
|
* @param organizationId The ID of the organization to remove the role from
|
|
20386
20553
|
* @param entityId The ID of the entity the role belongs to (for example a
|
|
20387
20554
|
* user ID)
|
|
@@ -20430,6 +20597,12 @@ class t1 {
|
|
|
20430
20597
|
* });
|
|
20431
20598
|
* await appClient.changeRole(oldAuth, newAuth);
|
|
20432
20599
|
* ```
|
|
20600
|
+
*
|
|
20601
|
+
* For more information, see [App
|
|
20602
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#changerole).
|
|
20603
|
+
*
|
|
20604
|
+
* @param oldAuthorization The existing authorization
|
|
20605
|
+
* @param newAuthorization The new authorization to change to
|
|
20433
20606
|
*/
|
|
20434
20607
|
async changeRole(e, n) {
|
|
20435
20608
|
await this.client.changeRole({ oldAuthorization: e, newAuthorization: n });
|
|
@@ -20437,6 +20610,9 @@ class t1 {
|
|
|
20437
20610
|
/**
|
|
20438
20611
|
* List all authorizations for an organization.
|
|
20439
20612
|
*
|
|
20613
|
+
* For more information, see [App
|
|
20614
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#listauthorizations).
|
|
20615
|
+
*
|
|
20440
20616
|
* @param organizationId The ID of the organization to list authorizations for
|
|
20441
20617
|
* @param resourceIds Optional list of IDs of resources to list authorizations
|
|
20442
20618
|
* for. If not provided, all resources will be included
|
|
@@ -20451,6 +20627,9 @@ class t1 {
|
|
|
20451
20627
|
/**
|
|
20452
20628
|
* Checks whether requested permissions exist.
|
|
20453
20629
|
*
|
|
20630
|
+
* For more information, see [App
|
|
20631
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#checkpermissions).
|
|
20632
|
+
*
|
|
20454
20633
|
* @param permissions A list of permissions to check
|
|
20455
20634
|
* @returns A filtered list of the authorized permissions
|
|
20456
20635
|
*/
|
|
@@ -20468,6 +20647,9 @@ class t1 {
|
|
|
20468
20647
|
* );
|
|
20469
20648
|
* ```
|
|
20470
20649
|
*
|
|
20650
|
+
* For more information, see [App
|
|
20651
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#getregistryitem).
|
|
20652
|
+
*
|
|
20471
20653
|
* @param itemId The ID of the item to get
|
|
20472
20654
|
* @returns The requested item
|
|
20473
20655
|
*/
|
|
@@ -20487,6 +20669,9 @@ class t1 {
|
|
|
20487
20669
|
* );
|
|
20488
20670
|
* ```
|
|
20489
20671
|
*
|
|
20672
|
+
* For more information, see [App
|
|
20673
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#createregistryitem).
|
|
20674
|
+
*
|
|
20490
20675
|
* @param organizationId The ID of the organization to create the registry
|
|
20491
20676
|
* item under
|
|
20492
20677
|
* @param name The name of the registry item
|
|
@@ -20513,6 +20698,9 @@ class t1 {
|
|
|
20513
20698
|
* );
|
|
20514
20699
|
* ```
|
|
20515
20700
|
*
|
|
20701
|
+
* For more information, see [App
|
|
20702
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#updateregistryitem).
|
|
20703
|
+
*
|
|
20516
20704
|
* @param itemId The ID of the registry item to update
|
|
20517
20705
|
* @param type The PackageType to update the item to
|
|
20518
20706
|
* @param description A description of the item
|
|
@@ -20541,6 +20729,9 @@ class t1 {
|
|
|
20541
20729
|
* );
|
|
20542
20730
|
* ```
|
|
20543
20731
|
*
|
|
20732
|
+
* For more information, see [App
|
|
20733
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#listregistryitems).
|
|
20734
|
+
*
|
|
20544
20735
|
* @param organizationId The ID of the organization to query registry items
|
|
20545
20736
|
* for
|
|
20546
20737
|
* @param types A list of types to query. If empty, will not filter on type
|
|
@@ -20576,6 +20767,9 @@ class t1 {
|
|
|
20576
20767
|
* await appClient.deleteRegistryItem('<YOUR-REGISTRY-ITEM-ID>');
|
|
20577
20768
|
* ```
|
|
20578
20769
|
*
|
|
20770
|
+
* For more information, see [App
|
|
20771
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#deleteregistryitem).
|
|
20772
|
+
*
|
|
20579
20773
|
* @param itemId The ID of the item to delete
|
|
20580
20774
|
*/
|
|
20581
20775
|
async deleteRegistryItem(e) {
|
|
@@ -20595,6 +20789,9 @@ class t1 {
|
|
|
20595
20789
|
* );
|
|
20596
20790
|
* ```
|
|
20597
20791
|
*
|
|
20792
|
+
* For more information, see [App
|
|
20793
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#createmodule).
|
|
20794
|
+
*
|
|
20598
20795
|
* @param organizationId The ID of the organization to create the module under
|
|
20599
20796
|
* @param name The name of the module
|
|
20600
20797
|
* @returns The module ID and a URL to its detail page
|
|
@@ -20621,6 +20818,9 @@ class t1 {
|
|
|
20621
20818
|
* );
|
|
20622
20819
|
* ```
|
|
20623
20820
|
*
|
|
20821
|
+
* For more information, see [App
|
|
20822
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#updatemodule).
|
|
20823
|
+
*
|
|
20624
20824
|
* @param moduleId The ID of the module to update
|
|
20625
20825
|
* @param visibility The visibility to set for the module
|
|
20626
20826
|
* @param url The url to reference for documentation, code, etc.
|
|
@@ -20648,6 +20848,9 @@ class t1 {
|
|
|
20648
20848
|
* const module = await appClient.getModule('<YOUR-MODULE-ID>');
|
|
20649
20849
|
* ```
|
|
20650
20850
|
*
|
|
20851
|
+
* For more information, see [App
|
|
20852
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#getmodule).
|
|
20853
|
+
*
|
|
20651
20854
|
* @param moduleId The ID of the module
|
|
20652
20855
|
* @returns The requested module
|
|
20653
20856
|
*/
|
|
@@ -20663,6 +20866,9 @@ class t1 {
|
|
|
20663
20866
|
* const modules = await appClient.listModules('<YOUR-ORGANIZATION-ID>');
|
|
20664
20867
|
* ```
|
|
20665
20868
|
*
|
|
20869
|
+
* For more information, see [App
|
|
20870
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#listmodules).
|
|
20871
|
+
*
|
|
20666
20872
|
* @param organizationId The ID of the organization to query
|
|
20667
20873
|
* @returns The organization's modules
|
|
20668
20874
|
*/
|
|
@@ -20672,6 +20878,9 @@ class t1 {
|
|
|
20672
20878
|
/**
|
|
20673
20879
|
* Creates a new API key.
|
|
20674
20880
|
*
|
|
20881
|
+
* For more information, see [App
|
|
20882
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#createkey).
|
|
20883
|
+
*
|
|
20675
20884
|
* @param authorizations The list of authorizations to provide for the API key
|
|
20676
20885
|
* @param name An optional name for the key. If none is passed, defaults to
|
|
20677
20886
|
* present timestamp
|
|
@@ -20689,6 +20898,9 @@ class t1 {
|
|
|
20689
20898
|
* await appClient.deleteKey('<YOUR-KEY-ID>');
|
|
20690
20899
|
* ```
|
|
20691
20900
|
*
|
|
20901
|
+
* For more information, see [App
|
|
20902
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#deletekey).
|
|
20903
|
+
*
|
|
20692
20904
|
* @param id The ID of the key to delete
|
|
20693
20905
|
*/
|
|
20694
20906
|
async deleteKey(e) {
|
|
@@ -20703,6 +20915,9 @@ class t1 {
|
|
|
20703
20915
|
* const keys = await appClient.listKeys('<YOUR-ORGANIZATION-ID>');
|
|
20704
20916
|
* ```
|
|
20705
20917
|
*
|
|
20918
|
+
* For more information, see [App
|
|
20919
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#listkeys).
|
|
20920
|
+
*
|
|
20706
20921
|
* @param orgId The ID of the organization to query
|
|
20707
20922
|
* @returns The list of API keys
|
|
20708
20923
|
*/
|
|
@@ -20718,6 +20933,9 @@ class t1 {
|
|
|
20718
20933
|
* const key = await appClient.rotateKey('<YOUR-KEY-ID>');
|
|
20719
20934
|
* ```
|
|
20720
20935
|
*
|
|
20936
|
+
* For more information, see [App
|
|
20937
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#rotatekey).
|
|
20938
|
+
*
|
|
20721
20939
|
* @param id The ID of the key to rotate
|
|
20722
20940
|
* @returns The updated key and ID
|
|
20723
20941
|
*/
|
|
@@ -20736,6 +20954,9 @@ class t1 {
|
|
|
20736
20954
|
* );
|
|
20737
20955
|
* ```
|
|
20738
20956
|
*
|
|
20957
|
+
* For more information, see [App
|
|
20958
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#createkeyfromexistingkeyauthorizations).
|
|
20959
|
+
*
|
|
20739
20960
|
* @param id The ID of the key to duplicate
|
|
20740
20961
|
* @returns The new key and ID
|
|
20741
20962
|
*/
|
|
@@ -20754,6 +20975,9 @@ class t1 {
|
|
|
20754
20975
|
* );
|
|
20755
20976
|
* ```
|
|
20756
20977
|
*
|
|
20978
|
+
* For more information, see [App
|
|
20979
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#getappcontent).
|
|
20980
|
+
*
|
|
20757
20981
|
* @param publicNamespace The public namespace of the organization
|
|
20758
20982
|
* @param name The name of the app
|
|
20759
20983
|
* @returns The blob path and entrypoint of the app content
|
|
@@ -20772,6 +20996,9 @@ class t1 {
|
|
|
20772
20996
|
* );
|
|
20773
20997
|
* ```
|
|
20774
20998
|
*
|
|
20999
|
+
* For more information, see [App
|
|
21000
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#getorganizationmetadata).
|
|
21001
|
+
*
|
|
20775
21002
|
* @param id The ID of the organization
|
|
20776
21003
|
* @returns The metadata associated with the organization
|
|
20777
21004
|
*/
|
|
@@ -20791,6 +21018,9 @@ class t1 {
|
|
|
20791
21018
|
* });
|
|
20792
21019
|
* ```
|
|
20793
21020
|
*
|
|
21021
|
+
* For more information, see [App
|
|
21022
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#updateorganizationmetadata).
|
|
21023
|
+
*
|
|
20794
21024
|
* @param id The ID of the organization
|
|
20795
21025
|
* @param data The metadata to update
|
|
20796
21026
|
*/
|
|
@@ -20811,6 +21041,9 @@ class t1 {
|
|
|
20811
21041
|
* );
|
|
20812
21042
|
* ```
|
|
20813
21043
|
*
|
|
21044
|
+
* For more information, see [App
|
|
21045
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#getlocationmetadata).
|
|
21046
|
+
*
|
|
20814
21047
|
* @param id The ID of the location
|
|
20815
21048
|
* @returns The metadata associated with the location
|
|
20816
21049
|
*/
|
|
@@ -20828,6 +21061,9 @@ class t1 {
|
|
|
20828
21061
|
* });
|
|
20829
21062
|
* ```
|
|
20830
21063
|
*
|
|
21064
|
+
* For more information, see [App
|
|
21065
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#updatelocationmetadata).
|
|
21066
|
+
*
|
|
20831
21067
|
* @param id The ID of the location
|
|
20832
21068
|
* @param data The metadata to update
|
|
20833
21069
|
*/
|
|
@@ -20846,6 +21082,9 @@ class t1 {
|
|
|
20846
21082
|
* const metadata = await appClient.getRobotMetadata('<YOUR-ROBOT-ID>');
|
|
20847
21083
|
* ```
|
|
20848
21084
|
*
|
|
21085
|
+
* For more information, see [App
|
|
21086
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#getrobotmetadata).
|
|
21087
|
+
*
|
|
20849
21088
|
* @param id The ID of the robot
|
|
20850
21089
|
* @returns The metadata associated with the robot
|
|
20851
21090
|
*/
|
|
@@ -20863,6 +21102,9 @@ class t1 {
|
|
|
20863
21102
|
* });
|
|
20864
21103
|
* ```
|
|
20865
21104
|
*
|
|
21105
|
+
* For more information, see [App
|
|
21106
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#updaterobotmetadata).
|
|
21107
|
+
*
|
|
20866
21108
|
* @param id The ID of the robot
|
|
20867
21109
|
* @param data The metadata to update
|
|
20868
21110
|
*/
|
|
@@ -20880,6 +21122,9 @@ class t1 {
|
|
|
20880
21122
|
* );
|
|
20881
21123
|
* ```
|
|
20882
21124
|
*
|
|
21125
|
+
* For more information, see [App
|
|
21126
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#getrobotpartmetadata).
|
|
21127
|
+
*
|
|
20883
21128
|
* @param id The ID of the robot part
|
|
20884
21129
|
* @returns The metadata associated with the robot part
|
|
20885
21130
|
*/
|
|
@@ -20897,6 +21142,9 @@ class t1 {
|
|
|
20897
21142
|
* });
|
|
20898
21143
|
* ```
|
|
20899
21144
|
*
|
|
21145
|
+
* For more information, see [App
|
|
21146
|
+
* API](https://docs.viam.com/dev/reference/apis/fleet/#updaterobotpartmetadata).
|
|
21147
|
+
*
|
|
20900
21148
|
* @param id The ID of the robot part
|
|
20901
21149
|
* @param data The metadata to update
|
|
20902
21150
|
*/
|
|
@@ -21395,6 +21643,9 @@ class o1 {
|
|
|
21395
21643
|
* const usage = await billing.getCurrentMonthUsage('<organization-id>');
|
|
21396
21644
|
* ```
|
|
21397
21645
|
*
|
|
21646
|
+
* For more information, see [Billing
|
|
21647
|
+
* API](https://docs.viam.com/dev/reference/apis/billing-client/#getcurrentmonthusage).
|
|
21648
|
+
*
|
|
21398
21649
|
* @param orgId - The organization ID.
|
|
21399
21650
|
*/
|
|
21400
21651
|
async getCurrentMonthUsage(e) {
|
|
@@ -21415,6 +21666,9 @@ class o1 {
|
|
|
21415
21666
|
* );
|
|
21416
21667
|
* ```
|
|
21417
21668
|
*
|
|
21669
|
+
* For more information, see [Billing
|
|
21670
|
+
* API](https://docs.viam.com/dev/reference/apis/billing-client/#getorgbillinginformation).
|
|
21671
|
+
*
|
|
21418
21672
|
* @param orgId - The organization ID.
|
|
21419
21673
|
*/
|
|
21420
21674
|
async getOrgBillingInformation(e) {
|
|
@@ -21433,6 +21687,9 @@ class o1 {
|
|
|
21433
21687
|
* );
|
|
21434
21688
|
* ```
|
|
21435
21689
|
*
|
|
21690
|
+
* For more information, see [Billing
|
|
21691
|
+
* API](https://docs.viam.com/dev/reference/apis/billing-client/#getinvoicesummary).
|
|
21692
|
+
*
|
|
21436
21693
|
* @param orgId - The organization ID.
|
|
21437
21694
|
*/
|
|
21438
21695
|
async getInvoicesSummary(e) {
|
|
@@ -21452,6 +21709,9 @@ class o1 {
|
|
|
21452
21709
|
* );
|
|
21453
21710
|
* ```
|
|
21454
21711
|
*
|
|
21712
|
+
* For more information, see [Billing
|
|
21713
|
+
* API](https://docs.viam.com/dev/reference/apis/billing-client/#getinvoicepdf).
|
|
21714
|
+
*
|
|
21455
21715
|
* @param id - The invoice ID.
|
|
21456
21716
|
* @param orgId - The organization ID.
|
|
21457
21717
|
*/
|
|
@@ -23474,6 +23734,9 @@ class O1 {
|
|
|
23474
23734
|
* );
|
|
23475
23735
|
* ```
|
|
23476
23736
|
*
|
|
23737
|
+
* For more information, see [Data
|
|
23738
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#exporttabulardata).
|
|
23739
|
+
*
|
|
23477
23740
|
* @param partId The ID of the part that owns the data
|
|
23478
23741
|
* @param resourceName The name of the requested resource that captured the
|
|
23479
23742
|
* data
|
|
@@ -23529,6 +23792,9 @@ class O1 {
|
|
|
23529
23792
|
* );
|
|
23530
23793
|
* ```
|
|
23531
23794
|
*
|
|
23795
|
+
* For more information, see [Data
|
|
23796
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#exporttabulardata).
|
|
23797
|
+
*
|
|
23532
23798
|
* @param organizationId The ID of the organization that owns the data
|
|
23533
23799
|
* @param query The SQL query to run
|
|
23534
23800
|
* @returns An array of data objects
|
|
@@ -23569,6 +23835,9 @@ class O1 {
|
|
|
23569
23835
|
* );
|
|
23570
23836
|
* ```
|
|
23571
23837
|
*
|
|
23838
|
+
* For more information, see [Data
|
|
23839
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#tabulardatabymql).
|
|
23840
|
+
*
|
|
23572
23841
|
* @param organizationId The ID of the organization that owns the data
|
|
23573
23842
|
* @param query The MQL query to run as a list of BSON documents
|
|
23574
23843
|
* @param useRecentData Whether to query blob storage or your recent data
|
|
@@ -23601,6 +23870,9 @@ class O1 {
|
|
|
23601
23870
|
* );
|
|
23602
23871
|
* ```
|
|
23603
23872
|
*
|
|
23873
|
+
* For more information, see [Data
|
|
23874
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#tabulardatabyfilter).
|
|
23875
|
+
*
|
|
23604
23876
|
* @param filter Optional `pb.Filter` specifying tabular data to retrieve. No
|
|
23605
23877
|
* `filter` implies all tabular data.
|
|
23606
23878
|
* @param limit The maximum number of entries to include in a page. Defaults
|
|
@@ -23661,6 +23933,9 @@ class O1 {
|
|
|
23661
23933
|
* );
|
|
23662
23934
|
* ```
|
|
23663
23935
|
*
|
|
23936
|
+
* For more information, see [Data
|
|
23937
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#binarydatabyfilter).
|
|
23938
|
+
*
|
|
23664
23939
|
* @param filter Optional `pb.Filter` specifying binary data to retrieve. No
|
|
23665
23940
|
* `filter` implies all binary data.
|
|
23666
23941
|
* @param limit The maximum number of entries to include in a page. Defaults
|
|
@@ -23707,6 +23982,9 @@ class O1 {
|
|
|
23707
23982
|
* ]);
|
|
23708
23983
|
* ```
|
|
23709
23984
|
*
|
|
23985
|
+
* For more information, see [Data
|
|
23986
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#binarydatabyids).
|
|
23987
|
+
*
|
|
23710
23988
|
* @param ids The IDs of the requested binary data
|
|
23711
23989
|
* @returns An array of data objects
|
|
23712
23990
|
*/
|
|
@@ -23731,6 +24009,9 @@ class O1 {
|
|
|
23731
24009
|
* );
|
|
23732
24010
|
* ```
|
|
23733
24011
|
*
|
|
24012
|
+
* For more information, see [Data
|
|
24013
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#deletetabulardata).
|
|
24014
|
+
*
|
|
23734
24015
|
* @param organizationId The ID of organization to delete data from
|
|
23735
24016
|
* @param deleteOlderThanDays Delete data that was captured more than this
|
|
23736
24017
|
* many days ago. For example if `deleteOlderThanDays` is 10, this deletes
|
|
@@ -23759,6 +24040,9 @@ class O1 {
|
|
|
23759
24040
|
* } as Filter);
|
|
23760
24041
|
* ```
|
|
23761
24042
|
*
|
|
24043
|
+
* For more information, see [Data
|
|
24044
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#deletebinarydatabyfilter).
|
|
24045
|
+
*
|
|
23762
24046
|
* @param filter Optional `pb.Filter` specifying binary data to delete. No
|
|
23763
24047
|
* `filter` implies all binary data.
|
|
23764
24048
|
* @param includeInternalData Whether or not to delete internal data. Default
|
|
@@ -23782,6 +24066,9 @@ class O1 {
|
|
|
23782
24066
|
* ]);
|
|
23783
24067
|
* ```
|
|
23784
24068
|
*
|
|
24069
|
+
* For more information, see [Data
|
|
24070
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#deletebinarydatabyids).
|
|
24071
|
+
*
|
|
23785
24072
|
* @param ids The IDs of the data to be deleted. Must be non-empty.
|
|
23786
24073
|
* @returns The number of items deleted
|
|
23787
24074
|
*/
|
|
@@ -23806,6 +24093,9 @@ class O1 {
|
|
|
23806
24093
|
* );
|
|
23807
24094
|
* ```
|
|
23808
24095
|
*
|
|
24096
|
+
* For more information, see [Data
|
|
24097
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#addtagstobinarydatabyids).
|
|
24098
|
+
*
|
|
23809
24099
|
* @param tags The list of tags to add to specified binary data. Must be
|
|
23810
24100
|
* non-empty.
|
|
23811
24101
|
* @param ids The IDs of the data to be tagged. Must be non-empty.
|
|
@@ -23839,6 +24129,9 @@ class O1 {
|
|
|
23839
24129
|
* );
|
|
23840
24130
|
* ```
|
|
23841
24131
|
*
|
|
24132
|
+
* For more information, see [Data
|
|
24133
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#addtagstobinarydatabyfilter).
|
|
24134
|
+
*
|
|
23842
24135
|
* @param tags The tags to add to the data
|
|
23843
24136
|
* @param filter Optional `pb.Filter` specifying binary data to add tags to.
|
|
23844
24137
|
* No `filter` implies all binary data.
|
|
@@ -23863,6 +24156,9 @@ class O1 {
|
|
|
23863
24156
|
* );
|
|
23864
24157
|
* ```
|
|
23865
24158
|
*
|
|
24159
|
+
* For more information, see [Data
|
|
24160
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#removetagsfrombinarydatabyids).
|
|
24161
|
+
*
|
|
23866
24162
|
* @param tags List of tags to remove from specified binary data. Must be
|
|
23867
24163
|
* non-empty.
|
|
23868
24164
|
* @param ids The IDs of the data to be edited. Must be non-empty.
|
|
@@ -23895,6 +24191,9 @@ class O1 {
|
|
|
23895
24191
|
* );
|
|
23896
24192
|
* ```
|
|
23897
24193
|
*
|
|
24194
|
+
* For more information, see [Data
|
|
24195
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#removetagsfrombinarydatabyfilter).
|
|
24196
|
+
*
|
|
23898
24197
|
* @param tags List of tags to remove from specified binary data. Must be
|
|
23899
24198
|
* non-empty.
|
|
23900
24199
|
* @param filter Optional `pb.Filter` specifying binary data to add tags to.
|
|
@@ -23918,6 +24217,9 @@ class O1 {
|
|
|
23918
24217
|
* } as Filter);
|
|
23919
24218
|
* ```
|
|
23920
24219
|
*
|
|
24220
|
+
* For more information, see [Data
|
|
24221
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#tagsbyfilter).
|
|
24222
|
+
*
|
|
23921
24223
|
* @param filter Optional `pb.Filter` specifying what data to get tags from.
|
|
23922
24224
|
* No `filter` implies all data.
|
|
23923
24225
|
* @returns The list of tags
|
|
@@ -23941,6 +24243,9 @@ class O1 {
|
|
|
23941
24243
|
* );
|
|
23942
24244
|
* ```
|
|
23943
24245
|
*
|
|
24246
|
+
* For more information, see [Data
|
|
24247
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#addboundingboxtoimagebyid).
|
|
24248
|
+
*
|
|
23944
24249
|
* @param binaryId The ID of the image to add the bounding box to
|
|
23945
24250
|
* @param label A label for the bounding box
|
|
23946
24251
|
* @param xMinNormalized The min X value of the bounding box normalized from 0
|
|
@@ -23982,6 +24287,9 @@ class O1 {
|
|
|
23982
24287
|
* );
|
|
23983
24288
|
* ```
|
|
23984
24289
|
*
|
|
24290
|
+
* For more information, see [Data
|
|
24291
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#removeboundingboxfromimagebyid).
|
|
24292
|
+
*
|
|
23985
24293
|
* @param binId The ID of the image to remove the bounding box from
|
|
23986
24294
|
* @param bboxId The ID of the bounding box to remove
|
|
23987
24295
|
*/
|
|
@@ -24009,6 +24317,9 @@ class O1 {
|
|
|
24009
24317
|
* } as Filter);
|
|
24010
24318
|
* ```
|
|
24011
24319
|
*
|
|
24320
|
+
* For more information, see [Data
|
|
24321
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#boundingboxlabelsbyfilter).
|
|
24322
|
+
*
|
|
24012
24323
|
* @param filter Optional `pb.Filter` specifying what data to get tags from.
|
|
24013
24324
|
* No `filter` implies all labels.
|
|
24014
24325
|
* @returns The list of bounding box labels
|
|
@@ -24032,6 +24343,9 @@ class O1 {
|
|
|
24032
24343
|
* );
|
|
24033
24344
|
* ```
|
|
24034
24345
|
*
|
|
24346
|
+
* For more information, see [Data
|
|
24347
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#configuredatabaseuser).
|
|
24348
|
+
*
|
|
24035
24349
|
* @param organizationId The ID of the organization
|
|
24036
24350
|
* @param password The password of the user
|
|
24037
24351
|
*/
|
|
@@ -24049,6 +24363,9 @@ class O1 {
|
|
|
24049
24363
|
* );
|
|
24050
24364
|
* ```
|
|
24051
24365
|
*
|
|
24366
|
+
* For more information, see [Data
|
|
24367
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#getdatabaseconnection).
|
|
24368
|
+
*
|
|
24052
24369
|
* @param organizationId Organization to retrieve connection for
|
|
24053
24370
|
* @returns Hostname of the federated database
|
|
24054
24371
|
*/
|
|
@@ -24071,6 +24388,9 @@ class O1 {
|
|
|
24071
24388
|
* );
|
|
24072
24389
|
* ```
|
|
24073
24390
|
*
|
|
24391
|
+
* For more information, see [Data
|
|
24392
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#addbinarydatatodatasetbyids).
|
|
24393
|
+
*
|
|
24074
24394
|
* @param ids The IDs of binary data to add to dataset
|
|
24075
24395
|
* @param datasetId The ID of the dataset to be added to
|
|
24076
24396
|
*/
|
|
@@ -24101,6 +24421,9 @@ class O1 {
|
|
|
24101
24421
|
* );
|
|
24102
24422
|
* ```
|
|
24103
24423
|
*
|
|
24424
|
+
* For more information, see [Data
|
|
24425
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#removebinarydatafromdatasetbyids).
|
|
24426
|
+
*
|
|
24104
24427
|
* @param ids The IDs of the binary data to remove from dataset
|
|
24105
24428
|
* @param datasetId The ID of the dataset to be removed from
|
|
24106
24429
|
*/
|
|
@@ -24129,6 +24452,9 @@ class O1 {
|
|
|
24129
24452
|
* );
|
|
24130
24453
|
* ```
|
|
24131
24454
|
*
|
|
24455
|
+
* For more information, see [Data
|
|
24456
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#createdataset).
|
|
24457
|
+
*
|
|
24132
24458
|
* @param name The name of the new dataset
|
|
24133
24459
|
* @param organizationId The ID of the organization the dataset is being
|
|
24134
24460
|
* created in
|
|
@@ -24149,6 +24475,9 @@ class O1 {
|
|
|
24149
24475
|
* await dataClient.deleteDataset('12ab3de4f56a7bcd89ef0ab1');
|
|
24150
24476
|
* ```
|
|
24151
24477
|
*
|
|
24478
|
+
* For more information, see [Data
|
|
24479
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#deletedataset).
|
|
24480
|
+
*
|
|
24152
24481
|
* @param id The ID of the dataset.
|
|
24153
24482
|
*/
|
|
24154
24483
|
async deleteDataset(e) {
|
|
@@ -24166,6 +24495,9 @@ class O1 {
|
|
|
24166
24495
|
* );
|
|
24167
24496
|
* ```
|
|
24168
24497
|
*
|
|
24498
|
+
* For more information, see [Data
|
|
24499
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#renamedataset).
|
|
24500
|
+
*
|
|
24169
24501
|
* @param id The ID of the dataset
|
|
24170
24502
|
* @param name The new name of the dataset
|
|
24171
24503
|
*/
|
|
@@ -24183,6 +24515,9 @@ class O1 {
|
|
|
24183
24515
|
* );
|
|
24184
24516
|
* ```
|
|
24185
24517
|
*
|
|
24518
|
+
* For more information, see [Data
|
|
24519
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#listdatasetsbyorganizationid).
|
|
24520
|
+
*
|
|
24186
24521
|
* @param organizationId The ID of the organization
|
|
24187
24522
|
* @returns The list of datasets in the organization
|
|
24188
24523
|
*/
|
|
@@ -24205,6 +24540,9 @@ class O1 {
|
|
|
24205
24540
|
* ]);
|
|
24206
24541
|
* ```
|
|
24207
24542
|
*
|
|
24543
|
+
* For more information, see [Data
|
|
24544
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#listdatasetsbyids).
|
|
24545
|
+
*
|
|
24208
24546
|
* @param ids The list of IDs of the datasets
|
|
24209
24547
|
* @returns The list of datasets
|
|
24210
24548
|
*/
|
|
@@ -24219,8 +24557,8 @@ class O1 {
|
|
|
24219
24557
|
/**
|
|
24220
24558
|
* Uploads the content and metadata for tabular data.
|
|
24221
24559
|
*
|
|
24222
|
-
* Upload tabular data collected on a robot through a specific component
|
|
24223
|
-
*
|
|
24560
|
+
* Upload tabular data collected on a robot through a specific component (for
|
|
24561
|
+
* example, a motor) along with the relevant metadata to app.viam.com. Tabular
|
|
24224
24562
|
* data can be found under the "Sensors" subtab of the Data tab on
|
|
24225
24563
|
* app.viam.com.
|
|
24226
24564
|
*
|
|
@@ -24247,11 +24585,14 @@ class O1 {
|
|
|
24247
24585
|
* );
|
|
24248
24586
|
* ```
|
|
24249
24587
|
*
|
|
24588
|
+
* For more information, see [Data
|
|
24589
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#tabulardatacaptureupload).
|
|
24590
|
+
*
|
|
24250
24591
|
* @param tabularData The list of data to be uploaded, represented tabularly
|
|
24251
24592
|
* as an array.
|
|
24252
24593
|
* @param partId The part ID of the component used to capture the data
|
|
24253
24594
|
* @param componentType The type of the component used to capture the data
|
|
24254
|
-
* (
|
|
24595
|
+
* (for example, "movementSensor")
|
|
24255
24596
|
* @param componentName The name of the component used to capture the data
|
|
24256
24597
|
* @param methodName The name of the method used to capture the data.
|
|
24257
24598
|
* @param tags The list of tags to allow for tag-based filtering when
|
|
@@ -24295,9 +24636,10 @@ class O1 {
|
|
|
24295
24636
|
/**
|
|
24296
24637
|
* Uploads the content and metadata for binary data.
|
|
24297
24638
|
*
|
|
24298
|
-
* Upload binary data collected on a robot through a specific component (
|
|
24299
|
-
* a motor) along with the relevant metadata to app.viam.com. binary
|
|
24300
|
-
* be found under the "Sensors" subtab of the Data tab on
|
|
24639
|
+
* Upload binary data collected on a robot through a specific component (for
|
|
24640
|
+
* example, a motor) along with the relevant metadata to app.viam.com. binary
|
|
24641
|
+
* data can be found under the "Sensors" subtab of the Data tab on
|
|
24642
|
+
* app.viam.com.
|
|
24301
24643
|
*
|
|
24302
24644
|
* @example
|
|
24303
24645
|
*
|
|
@@ -24313,16 +24655,19 @@ class O1 {
|
|
|
24313
24655
|
* );
|
|
24314
24656
|
* ```
|
|
24315
24657
|
*
|
|
24658
|
+
* For more information, see [Data
|
|
24659
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#binarydatacaptureupload).
|
|
24660
|
+
*
|
|
24316
24661
|
* @param binaryData The data to be uploaded, represented in bytes
|
|
24317
24662
|
* @param partId The part ID of the component used to capture the data
|
|
24318
24663
|
* @param componentType The type of the component used to capture the data
|
|
24319
|
-
* (
|
|
24664
|
+
* (for example, "movementSensor")
|
|
24320
24665
|
* @param componentName The name of the component used to capture the data
|
|
24321
24666
|
* @param methodName The name of the method used to capture the data.
|
|
24322
24667
|
* @param fileExtension The file extension of binary data including the
|
|
24323
|
-
* period,
|
|
24324
|
-
* corresponding mime type based on this extension. Files with
|
|
24325
|
-
* .jpg, or .png extension will be saved to the images tab.
|
|
24668
|
+
* period, for example .jpg, .png, or .pcd. The backend will route the
|
|
24669
|
+
* binary to its corresponding mime type based on this extension. Files with
|
|
24670
|
+
* a .jpeg, .jpg, or .png extension will be saved to the images tab.
|
|
24326
24671
|
* @param tags The list of tags to allow for tag-based filtering when
|
|
24327
24672
|
* retrieving data
|
|
24328
24673
|
* @param dataRequestTimes Tuple containing `Date` objects denoting the times
|
|
@@ -24379,6 +24724,9 @@ class O1 {
|
|
|
24379
24724
|
* );
|
|
24380
24725
|
* ```
|
|
24381
24726
|
*
|
|
24727
|
+
* For more information, see [Data
|
|
24728
|
+
* API](https://docs.viam.com/dev/reference/apis/data-client/#getlatesttabulardata).
|
|
24729
|
+
*
|
|
24382
24730
|
* @param partId The ID of the part that owns the data
|
|
24383
24731
|
* @param resourceName The name of the requested resource that captured the
|
|
24384
24732
|
* data. Ex: "my-sensor"
|
|
@@ -24506,6 +24854,9 @@ class N1 {
|
|
|
24506
24854
|
* );
|
|
24507
24855
|
* ```
|
|
24508
24856
|
*
|
|
24857
|
+
* For more information, see [ML Training
|
|
24858
|
+
* API](https://docs.viam.com/dev/reference/apis/ml-training-client/#submittrainingjob).
|
|
24859
|
+
*
|
|
24509
24860
|
* @param organizationId - The organization ID.
|
|
24510
24861
|
* @param datasetId - The dataset ID.
|
|
24511
24862
|
* @param modelName - The model name.
|
|
@@ -24539,6 +24890,9 @@ class N1 {
|
|
|
24539
24890
|
* );
|
|
24540
24891
|
* ```
|
|
24541
24892
|
*
|
|
24893
|
+
* For more information, see [ML Training
|
|
24894
|
+
* API](https://docs.viam.com/dev/reference/apis/ml-training-client/#submitcustomtrainingjob).
|
|
24895
|
+
*
|
|
24542
24896
|
* @param organizationId - The organization ID.
|
|
24543
24897
|
* @param datasetId - The dataset ID.
|
|
24544
24898
|
* @param registryItemId - The registry item ID.
|
|
@@ -24565,6 +24919,9 @@ class N1 {
|
|
|
24565
24919
|
* const job = await mlTrainingClient.getTrainingJob('<training-job-id>');
|
|
24566
24920
|
* ```
|
|
24567
24921
|
*
|
|
24922
|
+
* For more information, see [ML Training
|
|
24923
|
+
* API](https://docs.viam.com/dev/reference/apis/ml-training-client/#gettrainingjob).
|
|
24924
|
+
*
|
|
24568
24925
|
* @param id - The training job ID.
|
|
24569
24926
|
*/
|
|
24570
24927
|
async getTrainingJob(e) {
|
|
@@ -24582,6 +24939,9 @@ class N1 {
|
|
|
24582
24939
|
* );
|
|
24583
24940
|
* ```
|
|
24584
24941
|
*
|
|
24942
|
+
* For more information, see [ML Training
|
|
24943
|
+
* API](https://docs.viam.com/dev/reference/apis/ml-training-client/#listtrainingjobs).
|
|
24944
|
+
*
|
|
24585
24945
|
* @param organizationId - The organization ID.
|
|
24586
24946
|
* @param status - The training job status.
|
|
24587
24947
|
*/
|
|
@@ -24597,6 +24957,9 @@ class N1 {
|
|
|
24597
24957
|
* await mlTrainingClient.cancelTrainingJob('<training-job-id>');
|
|
24598
24958
|
* ```
|
|
24599
24959
|
*
|
|
24960
|
+
* For more information, see [ML Training
|
|
24961
|
+
* API](https://docs.viam.com/dev/reference/apis/ml-training-client/#canceltrainingjob).
|
|
24962
|
+
*
|
|
24600
24963
|
* @param id - The training job ID.
|
|
24601
24964
|
*/
|
|
24602
24965
|
async cancelTrainingJob(e) {
|
|
@@ -24611,6 +24974,9 @@ class N1 {
|
|
|
24611
24974
|
* await mlTrainingClient.deleteCompletedTrainingJob('<training-job-id>');
|
|
24612
24975
|
* ```
|
|
24613
24976
|
*
|
|
24977
|
+
* For more information, see [ML Training
|
|
24978
|
+
* API](https://docs.viam.com/dev/reference/apis/ml-training-client/#deletecompletedtrainingjob).
|
|
24979
|
+
*
|
|
24614
24980
|
* @param id - The training job ID.
|
|
24615
24981
|
*/
|
|
24616
24982
|
async deleteCompletedTrainingJob(e) {
|
|
@@ -26710,6 +27076,9 @@ class uS {
|
|
|
26710
27076
|
* await dataManager.sync();
|
|
26711
27077
|
* ```
|
|
26712
27078
|
*
|
|
27079
|
+
* For more information, see [Data Manager
|
|
27080
|
+
* API](https://docs.viam.com/dev/reference/apis/services/data/#sync).
|
|
27081
|
+
*
|
|
26713
27082
|
* @param extra - Extra arguments to pass to the sync request.
|
|
26714
27083
|
* @param callOptions - Call options for the sync request.
|
|
26715
27084
|
*/
|
|
@@ -26733,6 +27102,9 @@ class uS {
|
|
|
26733
27102
|
* await dataManager.doCommand(new Struct({ cmd: 'test', data1: 500 }));
|
|
26734
27103
|
* ```
|
|
26735
27104
|
*
|
|
27105
|
+
* For more information, see [Data Manager
|
|
27106
|
+
* API](https://docs.viam.com/dev/reference/apis/services/data/#docommand).
|
|
27107
|
+
*
|
|
26736
27108
|
* @param command - The command to do.
|
|
26737
27109
|
* @param callOptions - Call options for the command.
|
|
26738
27110
|
*/
|
|
@@ -27101,7 +27473,7 @@ class OS {
|
|
|
27101
27473
|
);
|
|
27102
27474
|
}
|
|
27103
27475
|
}
|
|
27104
|
-
const CS = "0.40.
|
|
27476
|
+
const CS = "0.40.2";
|
|
27105
27477
|
export {
|
|
27106
27478
|
g_ as AnalogValue,
|
|
27107
27479
|
d_ as ArmClient,
|