6464 "RateLimitUpdatedChangesRequested" ,
6565 "RoleAssignmentCreated" ,
6666 "RoleAssignmentDeleted" ,
67+ "RoleBoundToResource" ,
6768 "RoleCreated" ,
6869 "RoleDeleted" ,
70+ "RoleUnboundFromResource" ,
6971 "RoleUpdated" ,
7072 "RoleUpdatedChangesRequested" ,
7173 "ScimDisabled" ,
@@ -653,6 +655,48 @@ class RoleAssignmentDeleted(BaseModel):
653655 """The type of resource the role assignment was scoped to."""
654656
655657
658+ class RoleBoundToResource (BaseModel ):
659+ """The details for events with this `type`."""
660+
661+ id : Optional [str ] = None
662+ """The ID of the resource the role was bound to.
663+
664+ ChatGPT workspace connector resources use `<workspace_id>__<connector_id>`.
665+ """
666+
667+ connector_id : Optional [str ] = None
668+ """The connector ID for a ChatGPT workspace connector resource."""
669+
670+ connector_name : Optional [str ] = None
671+ """
672+ The connector display name for a ChatGPT workspace connector resource, or the
673+ connector ID when the display name could not be resolved.
674+ """
675+
676+ enabled : Optional [bool ] = None
677+ """Whether the connector is enabled for the role."""
678+
679+ permissions : Optional [List [str ]] = None
680+ """The permissions granted to the role for the resource."""
681+
682+ resource_id : Optional [str ] = None
683+ """The ID of the resource the role was bound to."""
684+
685+ resource_type : Optional [str ] = None
686+ """The type of resource the role was bound to."""
687+
688+ role_id : Optional [str ] = None
689+ """The ID of the role that was bound to the resource."""
690+
691+ source : Optional [
692+ Literal ["role_toggle" , "role_connector_update" , "role_delete" , "workspace_permissions" , "connector_publish" ]
693+ ] = None
694+ """The connector role mutation path that produced the event."""
695+
696+ workspace_id : Optional [str ] = None
697+ """The workspace ID for a ChatGPT workspace connector resource."""
698+
699+
656700class RoleCreated (BaseModel ):
657701 """The details for events with this `type`."""
658702
@@ -679,6 +723,48 @@ class RoleDeleted(BaseModel):
679723 """The role ID."""
680724
681725
726+ class RoleUnboundFromResource (BaseModel ):
727+ """The details for events with this `type`."""
728+
729+ id : Optional [str ] = None
730+ """The ID of the resource the role was unbound from.
731+
732+ ChatGPT workspace connector resources use `<workspace_id>__<connector_id>`.
733+ """
734+
735+ connector_id : Optional [str ] = None
736+ """The connector ID for a ChatGPT workspace connector resource."""
737+
738+ connector_name : Optional [str ] = None
739+ """
740+ The connector display name for a ChatGPT workspace connector resource, or the
741+ connector ID when the display name could not be resolved.
742+ """
743+
744+ enabled : Optional [bool ] = None
745+ """Whether the connector is enabled for the role."""
746+
747+ permissions : Optional [List [str ]] = None
748+ """The permissions remaining for the role after the change."""
749+
750+ resource_id : Optional [str ] = None
751+ """The ID of the resource the role was unbound from."""
752+
753+ resource_type : Optional [str ] = None
754+ """The type of resource the role was unbound from."""
755+
756+ role_id : Optional [str ] = None
757+ """The ID of the role that was unbound from the resource."""
758+
759+ source : Optional [
760+ Literal ["role_toggle" , "role_connector_update" , "role_delete" , "workspace_permissions" , "connector_publish" ]
761+ ] = None
762+ """The connector role mutation path that produced the event."""
763+
764+ workspace_id : Optional [str ] = None
765+ """The workspace ID for a ChatGPT workspace connector resource."""
766+
767+
682768class RoleUpdatedChangesRequested (BaseModel ):
683769 """The payload used to update the role."""
684770
@@ -941,6 +1027,8 @@ class AuditLogListResponse(BaseModel):
9411027 "role.deleted" ,
9421028 "role.assignment.created" ,
9431029 "role.assignment.deleted" ,
1030+ "role.bound_to_resource" ,
1031+ "role.unbound_from_resource" ,
9441032 "scim.enabled" ,
9451033 "scim.disabled" ,
9461034 "service_account.created" ,
@@ -1083,12 +1171,20 @@ class AuditLogListResponse(BaseModel):
10831171 role_assignment_deleted : Optional [RoleAssignmentDeleted ] = FieldInfo (alias = "role.assignment.deleted" , default = None )
10841172 """The details for events with this `type`."""
10851173
1174+ role_bound_to_resource : Optional [RoleBoundToResource ] = FieldInfo (alias = "role.bound_to_resource" , default = None )
1175+ """The details for events with this `type`."""
1176+
10861177 role_created : Optional [RoleCreated ] = FieldInfo (alias = "role.created" , default = None )
10871178 """The details for events with this `type`."""
10881179
10891180 role_deleted : Optional [RoleDeleted ] = FieldInfo (alias = "role.deleted" , default = None )
10901181 """The details for events with this `type`."""
10911182
1183+ role_unbound_from_resource : Optional [RoleUnboundFromResource ] = FieldInfo (
1184+ alias = "role.unbound_from_resource" , default = None
1185+ )
1186+ """The details for events with this `type`."""
1187+
10921188 role_updated : Optional [RoleUpdated ] = FieldInfo (alias = "role.updated" , default = None )
10931189 """The details for events with this `type`."""
10941190
0 commit comments