Skip to content

Commit 63c10bd

Browse files
feat(audit_trail): add support for Event.resources (#1849)
Co-authored-by: Rémy Léone <[email protected]>
1 parent 3b16b6f commit 63c10bd

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

packages/clients/src/api/audit_trail/v1alpha1/marshalling.gen.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ export const unmarshalEvent = (data: unknown): Event => {
179179
requestBody: data.request_body,
180180
requestId: data.request_id,
181181
resource: data.resource ? unmarshalResource(data.resource) : undefined,
182+
resources: unmarshalArrayOfObject(data.resources, unmarshalResource),
182183
serviceName: data.service_name,
183184
sourceIp: data.source_ip,
184185
statusCode: data.status_code,

packages/clients/src/api/audit_trail/v1alpha1/types.gen.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,10 @@ export interface Event {
127127
serviceName: string
128128
/** API method called to trigger the event. */
129129
methodName: string
130-
/** Resource attached to the event. */
130+
/** @deprecated Resource attached to the event. */
131131
resource?: Resource
132+
/** Resources attached to the event. */
133+
resources: Resource[]
132134
/** Unique identifier of the request at the origin of the event. */
133135
requestId: string
134136
/** Request at the origin of the event. */

0 commit comments

Comments
 (0)