@@ -11,6 +11,10 @@ import {
1111 CreateModuleResponse ,
1212 Fragment ,
1313 FragmentVisibility ,
14+ GetLocationMetadataResponse ,
15+ GetOrganizationMetadataResponse ,
16+ GetRobotMetadataResponse ,
17+ GetRobotPartMetadataResponse ,
1418 GetRobotPartLogsResponse ,
1519 GetRobotPartResponse ,
1620 ListOrganizationMembersResponse ,
@@ -29,6 +33,10 @@ import {
2933 RobotPartHistoryEntry ,
3034 RotateKeyResponse ,
3135 RoverRentalRobot ,
36+ UpdateLocationMetadataResponse ,
37+ UpdateOrganizationMetadataResponse ,
38+ UpdateRobotMetadataResponse ,
39+ UpdateRobotPartMetadataResponse ,
3240 Visibility ,
3341} from '../gen/app/v1/app_pb' ;
3442import type { LogEntry } from '../gen/common/v1/common_pb' ;
@@ -1175,4 +1183,100 @@ export class AppClient {
11751183 ) : Promise < CreateKeyFromExistingKeyAuthorizationsResponse > {
11761184 return this . client . createKeyFromExistingKeyAuthorizations ( { id } ) ;
11771185 }
1186+
1187+ /**
1188+ * Retrieves user-defined metadata for an organization.
1189+ *
1190+ * @param organizationId The ID of the organization
1191+ * @returns The metadata associated with the organization
1192+ */
1193+ async getOrganizationMetadata ( organizationId : string ) : Promise < GetOrganizationMetadataResponse > {
1194+ return this . client . getOrganizationMetadata ( { organizationId } ) ;
1195+ }
1196+
1197+ /**
1198+ * Updates user-defined metadata for an organization.
1199+ *
1200+ * @param organizationId The ID of the organization
1201+ * @param data The metadata to update
1202+ * @returns Response indicating success or failure
1203+ */
1204+ async updateOrganizationMetadata (
1205+ organizationId : string ,
1206+ data : Record < string , any >
1207+ ) : Promise < UpdateOrganizationMetadataResponse > {
1208+ return this . client . updateOrganizationMetadata ( { organizationId, data } ) ;
1209+ }
1210+
1211+ /**
1212+ * Retrieves user-defined metadata for a location.
1213+ *
1214+ * @param locationId The ID of the location
1215+ * @returns The metadata associated with the location
1216+ */
1217+ async getLocationMetadata ( locationId : string ) : Promise < GetLocationMetadataResponse > {
1218+ return this . client . getLocationMetadata ( { locationId } ) ;
1219+ }
1220+
1221+ /**
1222+ * Updates user-defined metadata for a location.
1223+ *
1224+ * @param locationId The ID of the location
1225+ * @param data The metadata to update
1226+ * @returns Response indicating success or failure
1227+ */
1228+ async updateLocationMetadata (
1229+ locationId : string ,
1230+ data : Record < string , any >
1231+ ) : Promise < UpdateLocationMetadataResponse > {
1232+ return this . client . updateLocationMetadata ( { locationId, data } ) ;
1233+ }
1234+
1235+ /**
1236+ * Retrieves user-defined metadata for a robot.
1237+ *
1238+ * @param id The ID of the robot
1239+ * @returns The metadata associated with the robot
1240+ */
1241+ async getRobotMetadata ( id : string ) : Promise < GetRobotMetadataResponse > {
1242+ return this . client . getRobotMetadata ( { id } ) ;
1243+ }
1244+
1245+ /**
1246+ * Updates user-defined metadata for a robot.
1247+ *
1248+ * @param id The ID of the robot
1249+ * @param data The metadata to update
1250+ * @returns Response indicating success or failure
1251+ */
1252+ async updateRobotMetadata (
1253+ id : string ,
1254+ data : Record < string , any >
1255+ ) : Promise < UpdateRobotMetadataResponse > {
1256+ return this . client . updateRobotMetadata ( { id, data } ) ;
1257+ }
1258+
1259+ /**
1260+ * Retrieves user-defined metadata for a robot part.
1261+ *
1262+ * @param id The ID of the robot part
1263+ * @returns The metadata associated with the robot part
1264+ */
1265+ async getRobotPartMetadata ( id : string ) : Promise < GetRobotPartMetadataResponse > {
1266+ return this . client . getRobotPartMetadata ( { id } ) ;
1267+ }
1268+
1269+ /**
1270+ * Updates user-defined metadata for a robot part.
1271+ *
1272+ * @param id The ID of the robot part
1273+ * @param data The metadata to update
1274+ * @returns Response indicating success or failure
1275+ */
1276+ async updateRobotPartMetadata (
1277+ id : string ,
1278+ data : Record < string , any >
1279+ ) : Promise < UpdateRobotPartMetadataResponse > {
1280+ return this . client . updateRobotPartMetadata ( { id, data } ) ;
1281+ }
11781282}
0 commit comments