@@ -590,52 +590,54 @@ def import_account(
590590
591591 return res .decode_body (adminv1 .User .__json_decode__ )
592592
593- def report_action (
593+ def report_event (
594594 self ,
595595 user_id : str ,
596596 * ,
597- action : str ,
597+ type : Optional [ str ] = None ,
598598 wait : Optional [bool ] = None ,
599- ) -> adminv1 .ReportUserActionResponse :
599+ ) -> adminv1 .ReportUserEventResponse :
600600 """
601- Report a user action .
601+ Report a user event .
602602
603603 If the `<externalId>@<connectionId>` user identifier syntax is
604604 used and the user doesn't exist, they will be imported.
605605
606- By default, the action is processed asynchronously.
606+ By default, the event is processed asynchronously.
607607
608608 :param user_id:
609609 The identifier of the user.
610610
611611 This can be in the format `<externalId>@<connectionId>` where
612612 `externalId` is the identity provider user identifier and
613613 and `connectionId` is the User provider connection identifier.
614- :param action:
615- The type of action.
614+ :param type:
615+ The event type.
616+
617+ If not specified, this defaults to `CHANGED`.
616618 :param wait:
617619 Process the user action synchronously.
618620
619621 Otherwise the action is processed in the background and errors
620622 won't be returned.
621623 """
622624 req = Request (
623- "admin.users.reportAction " ,
625+ "admin.users.reportEvent " ,
624626 "POST" ,
625- f"/admin/v1/users/{ util .quote_path (user_id )} :reportAction " ,
627+ f"/admin/v1/users/{ util .quote_path (user_id )} :event " ,
626628 )
627629 body : Dict [str , Any ] = {}
628630
629- if action :
630- body ["action " ] = action
631+ if type :
632+ body ["type " ] = type
631633 if wait :
632634 body ["wait" ] = wait
633635
634636 req .set_body (body )
635637
636638 res = self ._transport .execute (req )
637639
638- return res .decode_body (adminv1 .ReportUserActionResponse .__json_decode__ )
640+ return res .decode_body (adminv1 .ReportUserEventResponse .__json_decode__ )
639641
640642 def create_api_session (
641643 self ,
@@ -1321,52 +1323,54 @@ async def import_account(
13211323
13221324 return res .decode_body (adminv1 .User .__json_decode__ )
13231325
1324- async def report_action (
1326+ async def report_event (
13251327 self ,
13261328 user_id : str ,
13271329 * ,
1328- action : str ,
1330+ type : Optional [ str ] = None ,
13291331 wait : Optional [bool ] = None ,
1330- ) -> adminv1 .ReportUserActionResponse :
1332+ ) -> adminv1 .ReportUserEventResponse :
13311333 """
1332- Report a user action .
1334+ Report a user event .
13331335
13341336 If the `<externalId>@<connectionId>` user identifier syntax is
13351337 used and the user doesn't exist, they will be imported.
13361338
1337- By default, the action is processed asynchronously.
1339+ By default, the event is processed asynchronously.
13381340
13391341 :param user_id:
13401342 The identifier of the user.
13411343
13421344 This can be in the format `<externalId>@<connectionId>` where
13431345 `externalId` is the identity provider user identifier and
13441346 and `connectionId` is the User provider connection identifier.
1345- :param action:
1346- The type of action.
1347+ :param type:
1348+ The event type.
1349+
1350+ If not specified, this defaults to `CHANGED`.
13471351 :param wait:
13481352 Process the user action synchronously.
13491353
13501354 Otherwise the action is processed in the background and errors
13511355 won't be returned.
13521356 """
13531357 req = Request (
1354- "admin.users.reportAction " ,
1358+ "admin.users.reportEvent " ,
13551359 "POST" ,
1356- f"/admin/v1/users/{ util .quote_path (user_id )} :reportAction " ,
1360+ f"/admin/v1/users/{ util .quote_path (user_id )} :event " ,
13571361 )
13581362 body : Dict [str , Any ] = {}
13591363
1360- if action :
1361- body ["action " ] = action
1364+ if type :
1365+ body ["type " ] = type
13621366 if wait :
13631367 body ["wait" ] = wait
13641368
13651369 req .set_body (body )
13661370
13671371 res = await self ._transport .execute (req )
13681372
1369- return res .decode_body (adminv1 .ReportUserActionResponse .__json_decode__ )
1373+ return res .decode_body (adminv1 .ReportUserEventResponse .__json_decode__ )
13701374
13711375 async def create_api_session (
13721376 self ,
0 commit comments