@@ -2211,16 +2211,19 @@ export const MockEntitlementsWithUserLimit: TypesGen.Entitlements = {
2211
2211
2212
2212
export const MockExperiments : TypesGen . Experiment [ ] = [ ] ;
2213
2213
2214
+ /**
2215
+ * An audit log for MockOrganization.
2216
+ */
2214
2217
export const MockAuditLog : TypesGen . AuditLog = {
2215
2218
id : "fbd2116a-8961-4954-87ae-e4575bd29ce0" ,
2216
2219
request_id : "53bded77-7b9d-4e82-8771-991a34d759f9" ,
2217
2220
time : "2022-05-19T16:45:57.122Z" ,
2218
2221
organization_id : MockOrganization . id ,
2219
2222
organization : {
2220
2223
id : MockOrganization . id ,
2221
- name : "mock name" ,
2222
- display_name : "mock display name" ,
2223
- icon : "/emojis/1f48f-1f3ff.png" ,
2224
+ name : MockOrganization . name ,
2225
+ display_name : MockOrganization . display_name ,
2226
+ icon : MockOrganization . icon ,
2224
2227
} ,
2225
2228
ip : "127.0.0.1" ,
2226
2229
user_agent :
@@ -2245,12 +2248,22 @@ export const MockAuditLog: TypesGen.AuditLog = {
2245
2248
is_deleted : false ,
2246
2249
} ;
2247
2250
2251
+ /**
2252
+ * An audit log for MockOrganization2.
2253
+ */
2248
2254
export const MockAuditLog2 : TypesGen . AuditLog = {
2249
2255
...MockAuditLog ,
2250
2256
id : "53bded77-7b9d-4e82-8771-991a34d759f9" ,
2251
2257
action : "write" ,
2252
2258
time : "2022-05-20T16:45:57.122Z" ,
2253
2259
description : "{user} updated workspace {target}" ,
2260
+ organization_id : MockOrganization2 . id ,
2261
+ organization : {
2262
+ id : MockOrganization2 . id ,
2263
+ name : MockOrganization2 . name ,
2264
+ display_name : MockOrganization2 . display_name ,
2265
+ icon : MockOrganization2 . icon ,
2266
+ } ,
2254
2267
diff : {
2255
2268
workspace_name : {
2256
2269
old : "old-workspace-name" ,
@@ -2275,6 +2288,37 @@ export const MockAuditLog2: TypesGen.AuditLog = {
2275
2288
} ,
2276
2289
} ;
2277
2290
2291
+ /**
2292
+ * An audit log without an organization.
2293
+ */
2294
+ export const MockAuditLog3 : TypesGen . AuditLog = {
2295
+ id : "8efa9208-656a-422d-842d-b9dec0cf1bf3" ,
2296
+ request_id : "57ee9510-8330-480d-9ffa-4024e5805465" ,
2297
+ time : "2024-06-11T01:32:11.123Z" ,
2298
+ organization_id : "00000000-0000-0000-000000000000" ,
2299
+ ip : "127.0.0.1" ,
2300
+ user_agent :
2301
+ '"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36"' ,
2302
+ resource_type : "template" ,
2303
+ resource_id : "a624458c-1562-4689-a671-42c0b7d2d0c5" ,
2304
+ resource_target : "docker" ,
2305
+ resource_icon : "" ,
2306
+ action : "write" ,
2307
+ diff : {
2308
+ display_name : {
2309
+ old : "old display" ,
2310
+ new : "new display" ,
2311
+ secret : false ,
2312
+ } ,
2313
+ } ,
2314
+ status_code : 200 ,
2315
+ additional_fields : { } ,
2316
+ description : "{user} updated template {target}" ,
2317
+ user : MockUser ,
2318
+ resource_link : "/templates/docker" ,
2319
+ is_deleted : false ,
2320
+ } ;
2321
+
2278
2322
export const MockWorkspaceCreateAuditLogForDifferentOwner = {
2279
2323
...MockAuditLog ,
2280
2324
additional_fields : {
0 commit comments