@@ -1384,16 +1384,16 @@ public function __construct(SeamClient $seam)
13841384
13851385 public function encode_credential (
13861386 string $ acs_credential_id ,
1387- string $ device_id ,
1387+ string $ acs_encoder_id ,
13881388 bool $ wait_for_action_attempt = true
13891389 ): ActionAttempt {
13901390 $ request_payload = [];
13911391
13921392 if ($ acs_credential_id !== null ) {
13931393 $ request_payload ["acs_credential_id " ] = $ acs_credential_id ;
13941394 }
1395- if ($ device_id !== null ) {
1396- $ request_payload ["device_id " ] = $ device_id ;
1395+ if ($ acs_encoder_id !== null ) {
1396+ $ request_payload ["acs_encoder_id " ] = $ acs_encoder_id ;
13971397 }
13981398
13991399 $ res = $ this ->seam ->request (
@@ -1415,45 +1415,43 @@ public function encode_credential(
14151415 }
14161416
14171417 public function list (
1418+ array $ acs_encoder_ids = null ,
14181419 array $ acs_system_ids = null ,
1419- array $ device_ids = null ,
14201420 float $ limit = null
1421- ): array {
1421+ ): void {
14221422 $ request_payload = [];
14231423
1424+ if ($ acs_encoder_ids !== null ) {
1425+ $ request_payload ["acs_encoder_ids " ] = $ acs_encoder_ids ;
1426+ }
14241427 if ($ acs_system_ids !== null ) {
14251428 $ request_payload ["acs_system_ids " ] = $ acs_system_ids ;
14261429 }
1427- if ($ device_ids !== null ) {
1428- $ request_payload ["device_ids " ] = $ device_ids ;
1429- }
14301430 if ($ limit !== null ) {
14311431 $ request_payload ["limit " ] = $ limit ;
14321432 }
14331433
1434- $ res = $ this ->seam ->request (
1434+ $ this ->seam ->request (
14351435 "POST " ,
14361436 "/acs/encoders/list " ,
14371437 json: $ request_payload ,
1438- inner_object: "devices "
1438+ inner_object: "acs_encoders "
14391439 );
1440-
1441- return array_map (fn ($ r ) => Device::from_json ($ r ), $ res );
14421440 }
14431441
14441442 public function scan_credential (
1443+ string $ acs_encoder_id ,
14451444 string $ acs_system_id ,
1446- string $ device_id ,
14471445 bool $ wait_for_action_attempt = true
14481446 ): ActionAttempt {
14491447 $ request_payload = [];
14501448
1449+ if ($ acs_encoder_id !== null ) {
1450+ $ request_payload ["acs_encoder_id " ] = $ acs_encoder_id ;
1451+ }
14511452 if ($ acs_system_id !== null ) {
14521453 $ request_payload ["acs_system_id " ] = $ acs_system_id ;
14531454 }
1454- if ($ device_id !== null ) {
1455- $ request_payload ["device_id " ] = $ device_id ;
1456- }
14571455
14581456 $ res = $ this ->seam ->request (
14591457 "POST " ,
0 commit comments