@@ -88,9 +88,9 @@ type AdminOrganizationAuditLogListResponse struct {
8888 // "workload_identity_provider_mapping.updated",
8989 // "workload_identity_provider_mapping.deleted", "role.created", "role.updated",
9090 // "role.deleted", "role.assignment.created", "role.assignment.deleted",
91- // "scim.enabled ", "scim.disabled ", "service_account.created ",
92- // "service_account.updated ", "service_account.deleted ", "user.added ",
93- // "user.updated", "user.deleted".
91+ // "role.bound_to_resource ", "role.unbound_from_resource ", "scim.enabled ",
92+ // "scim.disabled ", "service_account.created ", "service_account.updated ",
93+ // "service_account.deleted", "user.added", " user.updated", "user.deleted".
9494 Type AdminOrganizationAuditLogListResponseType `json:"type" api:"required"`
9595 // The actor who performed the audit logged action.
9696 Actor AdminOrganizationAuditLogListResponseActor `json:"actor" api:"nullable"`
@@ -172,10 +172,14 @@ type AdminOrganizationAuditLogListResponse struct {
172172 // The details for events with this `type`.
173173 RoleAssignmentDeleted AdminOrganizationAuditLogListResponseRoleAssignmentDeleted `json:"role.assignment.deleted"`
174174 // The details for events with this `type`.
175+ RoleBoundToResource AdminOrganizationAuditLogListResponseRoleBoundToResource `json:"role.bound_to_resource"`
176+ // The details for events with this `type`.
175177 RoleCreated AdminOrganizationAuditLogListResponseRoleCreated `json:"role.created"`
176178 // The details for events with this `type`.
177179 RoleDeleted AdminOrganizationAuditLogListResponseRoleDeleted `json:"role.deleted"`
178180 // The details for events with this `type`.
181+ RoleUnboundFromResource AdminOrganizationAuditLogListResponseRoleUnboundFromResource `json:"role.unbound_from_resource"`
182+ // The details for events with this `type`.
179183 RoleUpdated AdminOrganizationAuditLogListResponseRoleUpdated `json:"role.updated"`
180184 // The details for events with this `type`.
181185 ScimDisabled AdminOrganizationAuditLogListResponseScimDisabled `json:"scim.disabled"`
@@ -248,8 +252,10 @@ type AdminOrganizationAuditLogListResponse struct {
248252 RateLimitUpdated respjson.Field
249253 RoleAssignmentCreated respjson.Field
250254 RoleAssignmentDeleted respjson.Field
255+ RoleBoundToResource respjson.Field
251256 RoleCreated respjson.Field
252257 RoleDeleted respjson.Field
258+ RoleUnboundFromResource respjson.Field
253259 RoleUpdated respjson.Field
254260 ScimDisabled respjson.Field
255261 ScimEnabled respjson.Field
@@ -329,6 +335,8 @@ const (
329335 AdminOrganizationAuditLogListResponseTypeRoleDeleted AdminOrganizationAuditLogListResponseType = "role.deleted"
330336 AdminOrganizationAuditLogListResponseTypeRoleAssignmentCreated AdminOrganizationAuditLogListResponseType = "role.assignment.created"
331337 AdminOrganizationAuditLogListResponseTypeRoleAssignmentDeleted AdminOrganizationAuditLogListResponseType = "role.assignment.deleted"
338+ AdminOrganizationAuditLogListResponseTypeRoleBoundToResource AdminOrganizationAuditLogListResponseType = "role.bound_to_resource"
339+ AdminOrganizationAuditLogListResponseTypeRoleUnboundFromResource AdminOrganizationAuditLogListResponseType = "role.unbound_from_resource"
332340 AdminOrganizationAuditLogListResponseTypeScimEnabled AdminOrganizationAuditLogListResponseType = "scim.enabled"
333341 AdminOrganizationAuditLogListResponseTypeScimDisabled AdminOrganizationAuditLogListResponseType = "scim.disabled"
334342 AdminOrganizationAuditLogListResponseTypeServiceAccountCreated AdminOrganizationAuditLogListResponseType = "service_account.created"
@@ -1546,6 +1554,56 @@ func (r *AdminOrganizationAuditLogListResponseRoleAssignmentDeleted) UnmarshalJS
15461554 return apijson .UnmarshalRoot (data , r )
15471555}
15481556
1557+ // The details for events with this `type`.
1558+ type AdminOrganizationAuditLogListResponseRoleBoundToResource struct {
1559+ // The ID of the resource the role was bound to. ChatGPT workspace connector
1560+ // resources use `<workspace_id>__<connector_id>`.
1561+ ID string `json:"id"`
1562+ // The connector ID for a ChatGPT workspace connector resource.
1563+ ConnectorID string `json:"connector_id"`
1564+ // The connector display name for a ChatGPT workspace connector resource, or the
1565+ // connector ID when the display name could not be resolved.
1566+ ConnectorName string `json:"connector_name"`
1567+ // Whether the connector is enabled for the role.
1568+ Enabled bool `json:"enabled"`
1569+ // The permissions granted to the role for the resource.
1570+ Permissions []string `json:"permissions"`
1571+ // The ID of the resource the role was bound to.
1572+ ResourceID string `json:"resource_id"`
1573+ // The type of resource the role was bound to.
1574+ ResourceType string `json:"resource_type"`
1575+ // The ID of the role that was bound to the resource.
1576+ RoleID string `json:"role_id"`
1577+ // The connector role mutation path that produced the event.
1578+ //
1579+ // Any of "role_toggle", "role_connector_update", "role_delete",
1580+ // "workspace_permissions", "connector_publish".
1581+ Source string `json:"source"`
1582+ // The workspace ID for a ChatGPT workspace connector resource.
1583+ WorkspaceID string `json:"workspace_id"`
1584+ // JSON contains metadata for fields, check presence with [respjson.Field.Valid].
1585+ JSON struct {
1586+ ID respjson.Field
1587+ ConnectorID respjson.Field
1588+ ConnectorName respjson.Field
1589+ Enabled respjson.Field
1590+ Permissions respjson.Field
1591+ ResourceID respjson.Field
1592+ ResourceType respjson.Field
1593+ RoleID respjson.Field
1594+ Source respjson.Field
1595+ WorkspaceID respjson.Field
1596+ ExtraFields map [string ]respjson.Field
1597+ raw string
1598+ } `json:"-"`
1599+ }
1600+
1601+ // Returns the unmodified JSON received from the API
1602+ func (r AdminOrganizationAuditLogListResponseRoleBoundToResource ) RawJSON () string { return r .JSON .raw }
1603+ func (r * AdminOrganizationAuditLogListResponseRoleBoundToResource ) UnmarshalJSON (data []byte ) error {
1604+ return apijson .UnmarshalRoot (data , r )
1605+ }
1606+
15491607// The details for events with this `type`.
15501608type AdminOrganizationAuditLogListResponseRoleCreated struct {
15511609 // The role ID.
@@ -1594,6 +1652,58 @@ func (r *AdminOrganizationAuditLogListResponseRoleDeleted) UnmarshalJSON(data []
15941652 return apijson .UnmarshalRoot (data , r )
15951653}
15961654
1655+ // The details for events with this `type`.
1656+ type AdminOrganizationAuditLogListResponseRoleUnboundFromResource struct {
1657+ // The ID of the resource the role was unbound from. ChatGPT workspace connector
1658+ // resources use `<workspace_id>__<connector_id>`.
1659+ ID string `json:"id"`
1660+ // The connector ID for a ChatGPT workspace connector resource.
1661+ ConnectorID string `json:"connector_id"`
1662+ // The connector display name for a ChatGPT workspace connector resource, or the
1663+ // connector ID when the display name could not be resolved.
1664+ ConnectorName string `json:"connector_name"`
1665+ // Whether the connector is enabled for the role.
1666+ Enabled bool `json:"enabled"`
1667+ // The permissions remaining for the role after the change.
1668+ Permissions []string `json:"permissions"`
1669+ // The ID of the resource the role was unbound from.
1670+ ResourceID string `json:"resource_id"`
1671+ // The type of resource the role was unbound from.
1672+ ResourceType string `json:"resource_type"`
1673+ // The ID of the role that was unbound from the resource.
1674+ RoleID string `json:"role_id"`
1675+ // The connector role mutation path that produced the event.
1676+ //
1677+ // Any of "role_toggle", "role_connector_update", "role_delete",
1678+ // "workspace_permissions", "connector_publish".
1679+ Source string `json:"source"`
1680+ // The workspace ID for a ChatGPT workspace connector resource.
1681+ WorkspaceID string `json:"workspace_id"`
1682+ // JSON contains metadata for fields, check presence with [respjson.Field.Valid].
1683+ JSON struct {
1684+ ID respjson.Field
1685+ ConnectorID respjson.Field
1686+ ConnectorName respjson.Field
1687+ Enabled respjson.Field
1688+ Permissions respjson.Field
1689+ ResourceID respjson.Field
1690+ ResourceType respjson.Field
1691+ RoleID respjson.Field
1692+ Source respjson.Field
1693+ WorkspaceID respjson.Field
1694+ ExtraFields map [string ]respjson.Field
1695+ raw string
1696+ } `json:"-"`
1697+ }
1698+
1699+ // Returns the unmodified JSON received from the API
1700+ func (r AdminOrganizationAuditLogListResponseRoleUnboundFromResource ) RawJSON () string {
1701+ return r .JSON .raw
1702+ }
1703+ func (r * AdminOrganizationAuditLogListResponseRoleUnboundFromResource ) UnmarshalJSON (data []byte ) error {
1704+ return apijson .UnmarshalRoot (data , r )
1705+ }
1706+
15971707// The details for events with this `type`.
15981708type AdminOrganizationAuditLogListResponseRoleUpdated struct {
15991709 // The role ID.
@@ -2057,6 +2167,11 @@ type AdminOrganizationAuditLogListParams struct {
20572167 // A limit on the number of objects to be returned. Limit can range between 1 and
20582168 // 100, and the default is 20.
20592169 Limit param.Opt [int64 ] `query:"limit,omitzero" json:"-"`
2170+ // Return only tenant-scoped events associated with this organization. Required for
2171+ // tenant-scoped events such as `role.bound_to_resource` and
2172+ // `role.unbound_from_resource`. When `true`, all supplied event types must be
2173+ // tenant-scoped.
2174+ TenantOnly param.Opt [bool ] `query:"tenant_only,omitzero" json:"-"`
20602175 // Return only events performed by users with these emails.
20612176 ActorEmails []string `query:"actor_emails,omitzero" json:"-"`
20622177 // Return only events performed by these actors. Can be a user ID, a service
@@ -2086,14 +2201,15 @@ type AdminOrganizationAuditLogListParams struct {
20862201 // "workload_identity_provider_mapping.updated",
20872202 // "workload_identity_provider_mapping.deleted", "role.created", "role.updated",
20882203 // "role.deleted", "role.assignment.created", "role.assignment.deleted",
2089- // "scim.enabled ", "scim.disabled ", "service_account.created ",
2090- // "service_account.updated ", "service_account.deleted ", "user.added ",
2091- // "user.updated", "user.deleted".
2204+ // "role.bound_to_resource ", "role.unbound_from_resource ", "scim.enabled ",
2205+ // "scim.disabled ", "service_account.created ", "service_account.updated ",
2206+ // "service_account.deleted", "user.added", " user.updated", "user.deleted".
20922207 EventTypes []string `query:"event_types,omitzero" json:"-"`
20932208 // Return only events for these projects.
20942209 ProjectIDs []string `query:"project_ids,omitzero" json:"-"`
20952210 // Return only events performed on these targets. For example, a project ID
2096- // updated.
2211+ // updated. For ChatGPT connector role events, use the workspace connector resource
2212+ // ID shown in `details.id`, such as `<workspace_id>__<connector_id>`.
20972213 ResourceIDs []string `query:"resource_ids,omitzero" json:"-"`
20982214 paramObj
20992215}
0 commit comments