@openpeepshq/common 0.29.0 → 0.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -52,6 +52,10 @@ export declare const adminSections: readonly [{
52
52
  readonly key: "database";
53
53
  readonly path: "/admin/db";
54
54
  readonly capabilities: readonly ["core-db-access"];
55
+ }, {
56
+ readonly key: "auditLog";
57
+ readonly path: "/admin/audit-log";
58
+ readonly capabilities: readonly ["core-auditLog-read"];
55
59
  }];
56
60
  export type AdminSectionKey = (typeof adminSections)[number]['key'];
57
61
  export type AdminSection = (typeof adminSections)[number];
@@ -65,6 +65,11 @@ export const adminSections = [
65
65
  path: '/admin/db',
66
66
  capabilities: ['core-db-access'],
67
67
  },
68
+ {
69
+ key: 'auditLog',
70
+ path: '/admin/audit-log',
71
+ capabilities: ['core-auditLog-read'],
72
+ },
68
73
  ];
69
74
  export const canAccessAdminSection = (roles, section) => checkRoleCapabilities(roles ?? [], [...section.capabilities]).success;
70
75
  export const getVisibleAdminSections = (roles) => adminSections.filter((section) => canAccessAdminSection(roles, section));
@@ -181,12 +181,25 @@ const getScopedPostReadCapabilities = (authData, neededCapabilities, post) => {
181
181
  }
182
182
  return { add: ['core-posts-read'], remove: [] };
183
183
  };
184
- export const getPostCapabilities = (authData, post, config) => mergeCapabilities([
185
- getPostVisibilityCapabilities(post, authData.profile),
186
- getConfigCapabilities('post', getPostRelationships(authData, post), config),
187
- getConfigCapabilities('profile', getProfileRelationships(authData, post.profile), config),
188
- getGroupCapabilities(authData, post.group),
189
- ]);
184
+ export const getPostCapabilities = (authData, post, config) => {
185
+ // Drafts are visible to the creator only. The profile `self` relationship is
186
+ // the single source that grants post caps to the author, so for a draft we
187
+ // drop every other source (visibility, post relationships, group) to keep
188
+ // the draft away from local users, audience, group members, etc. `isDraft`
189
+ // is an explicit flag (default false), so a post that merely lacks
190
+ // `publishedAt` is not mistaken for a draft. Pinned in
191
+ // `capabilitiesHelpers.test.ts` ("grants draft post capabilities to the
192
+ // author solely via the self relationship").
193
+ if (post.isDraft === true) {
194
+ return getConfigCapabilities('profile', getProfileRelationships(authData, post.profile), config);
195
+ }
196
+ return mergeCapabilities([
197
+ getPostVisibilityCapabilities(post, authData.profile),
198
+ getConfigCapabilities('post', getPostRelationships(authData, post), config),
199
+ getConfigCapabilities('profile', getProfileRelationships(authData, post.profile), config),
200
+ getGroupCapabilities(authData, post.group),
201
+ ]);
202
+ };
190
203
  const getReportCapabilities = (authData, report, config) => mergeCapabilities([
191
204
  getConfigCapabilities('report', getReportRelationships(authData, report), config),
192
205
  getRoleCapabilities(authData.profile),
@@ -305,8 +305,9 @@ export declare const canCreatePostType: (authData: AuthorizationData, type: Post
305
305
  * Scope-free variant of {@link canCreatePostType}: may this profile create a
306
306
  * post of `type` in any of `visibilities`, judging capabilities only. Token
307
307
  * scopes load after the first paint in the clients, so gating UI on them would
308
- * flash a denial for allowed users; the create endpoints still enforce
309
- * scopes.
308
+ * flash a denial for allowed users; the create and publish endpoints still
309
+ * enforce scopes (publishing a draft goes through `core-posts-update`, the
310
+ * same capability-based scope-checked path as creation).
310
311
  */
311
312
  export declare const canCreatePostTypeIgnoringScopes: (authData: AuthorizationData, type: PostType, visibilities?: readonly VisibilityType[]) => boolean;
312
313
  export type PostActionAvailability = {
@@ -319,6 +320,13 @@ export type PostActionAvailability = {
319
320
  * post stay fully disabled (existing feed rule). Each action also follows
320
321
  * the capability the matching write endpoint actually checks: feed replies
321
322
  * and reposts need create-*, reactions need core-posts-react.
323
+ *
324
+ * Drafts disable every action up front: the author's own `self` relationship
325
+ * grants the full post capabilities, so without this check the Drafts page
326
+ * would render live Reply / Repost / React buttons for the owner's own
327
+ * drafts — the server rejects reply/repost with `error.postNotPublished`,
328
+ * and react/vote have their own draft guards in core (no hidden state
329
+ * mutation on an unpublished post).
322
330
  */
323
331
  export declare const getPostActionAvailability: (authData: AuthorizationData, post: PublicPost, config: CapabilitiesConfig) => PostActionAvailability;
324
332
  /** Sentinel handle for block-hidden reply tombstones (no name/handle leak). */
@@ -488,8 +488,9 @@ export const canCreatePostType = (authData, type) => visibilityTypeValues.some((
488
488
  * Scope-free variant of {@link canCreatePostType}: may this profile create a
489
489
  * post of `type` in any of `visibilities`, judging capabilities only. Token
490
490
  * scopes load after the first paint in the clients, so gating UI on them would
491
- * flash a denial for allowed users; the create endpoints still enforce
492
- * scopes.
491
+ * flash a denial for allowed users; the create and publish endpoints still
492
+ * enforce scopes (publishing a draft goes through `core-posts-update`, the
493
+ * same capability-based scope-checked path as creation).
493
494
  */
494
495
  export const canCreatePostTypeIgnoringScopes = (authData, type, visibilities = visibilityTypeValues) => visibilities.some((visibility) => visibility === 'group'
495
496
  ? !!authData.profile?.memberships?.some((m) => checkCapabilities([`core-posts-create-${type}`], getGroupCapabilities(authData, m.group)).success)
@@ -501,8 +502,18 @@ export const canCreatePostTypeIgnoringScopes = (authData, type, visibilities = v
501
502
  * post stay fully disabled (existing feed rule). Each action also follows
502
503
  * the capability the matching write endpoint actually checks: feed replies
503
504
  * and reposts need create-*, reactions need core-posts-react.
505
+ *
506
+ * Drafts disable every action up front: the author's own `self` relationship
507
+ * grants the full post capabilities, so without this check the Drafts page
508
+ * would render live Reply / Repost / React buttons for the owner's own
509
+ * drafts — the server rejects reply/repost with `error.postNotPublished`,
510
+ * and react/vote have their own draft guards in core (no hidden state
511
+ * mutation on an unpublished post).
504
512
  */
505
513
  export const getPostActionAvailability = (authData, post, config) => {
514
+ if (post.isDraft === true) {
515
+ return { canReply: false, canRepost: false, canReact: false };
516
+ }
506
517
  const isGroupPost = !!post.groupId || !!post.group;
507
518
  const membershipExists = !!authData.profile?.memberships?.some((m) => m.group.id === post.group?.id || m.group.id === post.groupId);
508
519
  if (isGroupPost && !membershipExists) {
@@ -3588,6 +3588,8 @@ export declare const publicReplyPostSchema: z.ZodObject<{
3588
3588
  seen: z.ZodOptional<z.ZodBoolean>;
3589
3589
  inReplyToId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3590
3590
  hidden: z.ZodOptional<z.ZodBoolean>;
3591
+ publishedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3592
+ isDraft: z.ZodOptional<z.ZodBoolean>;
3591
3593
  replyTo: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3592
3594
  id: z.ZodString;
3593
3595
  type: z.ZodEnum<{
@@ -5291,6 +5293,8 @@ export declare const publicReplyPostSchema: z.ZodObject<{
5291
5293
  seen: z.ZodOptional<z.ZodBoolean>;
5292
5294
  inReplyToId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
5293
5295
  hidden: z.ZodOptional<z.ZodBoolean>;
5296
+ publishedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
5297
+ isDraft: z.ZodOptional<z.ZodBoolean>;
5294
5298
  }, z.core.$strip>>>;
5295
5299
  }, z.core.$strip>;
5296
5300
  export type PublicReplyPost = z.infer<typeof publicReplyPostSchema>;
@@ -7124,6 +7128,8 @@ export declare const publicPostSchema: z.ZodObject<{
7124
7128
  blockedByMe: z.ZodOptional<z.ZodBoolean>;
7125
7129
  }, z.core.$strip>>>>;
7126
7130
  hidden: z.ZodOptional<z.ZodBoolean>;
7131
+ publishedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
7132
+ isDraft: z.ZodOptional<z.ZodBoolean>;
7127
7133
  repostCount: z.ZodNumber;
7128
7134
  replyCount: z.ZodNumber;
7129
7135
  reactions: z.ZodArray<z.ZodObject<{
@@ -9055,6 +9061,8 @@ export declare const publicPostSchema: z.ZodObject<{
9055
9061
  seen: z.ZodOptional<z.ZodBoolean>;
9056
9062
  inReplyToId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
9057
9063
  hidden: z.ZodOptional<z.ZodBoolean>;
9064
+ publishedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
9065
+ isDraft: z.ZodOptional<z.ZodBoolean>;
9058
9066
  replyTo: z.ZodNullable<z.ZodOptional<z.ZodObject<{
9059
9067
  id: z.ZodString;
9060
9068
  type: z.ZodEnum<{
@@ -10758,6 +10766,8 @@ export declare const publicPostSchema: z.ZodObject<{
10758
10766
  seen: z.ZodOptional<z.ZodBoolean>;
10759
10767
  inReplyToId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
10760
10768
  hidden: z.ZodOptional<z.ZodBoolean>;
10769
+ publishedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
10770
+ isDraft: z.ZodOptional<z.ZodBoolean>;
10761
10771
  }, z.core.$strip>>>;
10762
10772
  }, z.core.$strip>>>;
10763
10773
  latestRepliesHasMore: z.ZodOptional<z.ZodBoolean>;
@@ -12727,6 +12737,8 @@ export declare const publicPostSchema: z.ZodObject<{
12727
12737
  seen: z.ZodOptional<z.ZodBoolean>;
12728
12738
  inReplyToId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
12729
12739
  hidden: z.ZodOptional<z.ZodBoolean>;
12740
+ publishedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
12741
+ isDraft: z.ZodOptional<z.ZodBoolean>;
12730
12742
  replyTo: z.ZodNullable<z.ZodOptional<z.ZodObject<{
12731
12743
  id: z.ZodString;
12732
12744
  type: z.ZodEnum<{
@@ -14430,6 +14442,8 @@ export declare const publicPostSchema: z.ZodObject<{
14430
14442
  seen: z.ZodOptional<z.ZodBoolean>;
14431
14443
  inReplyToId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
14432
14444
  hidden: z.ZodOptional<z.ZodBoolean>;
14445
+ publishedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
14446
+ isDraft: z.ZodOptional<z.ZodBoolean>;
14433
14447
  }, z.core.$strip>>>;
14434
14448
  }, z.core.$strip>>>;
14435
14449
  repost: z.ZodNullable<z.ZodOptional<z.ZodObject<{
@@ -16134,6 +16148,8 @@ export declare const publicPostSchema: z.ZodObject<{
16134
16148
  }, z.core.$strip>>>>;
16135
16149
  inReplyToId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
16136
16150
  hidden: z.ZodOptional<z.ZodBoolean>;
16151
+ publishedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
16152
+ isDraft: z.ZodOptional<z.ZodBoolean>;
16137
16153
  replyTo: z.ZodNullable<z.ZodOptional<z.ZodObject<{
16138
16154
  id: z.ZodString;
16139
16155
  type: z.ZodEnum<{
@@ -17837,6 +17853,8 @@ export declare const publicPostSchema: z.ZodObject<{
17837
17853
  seen: z.ZodOptional<z.ZodBoolean>;
17838
17854
  inReplyToId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
17839
17855
  hidden: z.ZodOptional<z.ZodBoolean>;
17856
+ publishedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
17857
+ isDraft: z.ZodOptional<z.ZodBoolean>;
17840
17858
  }, z.core.$strip>>>;
17841
17859
  repostCount: z.ZodNumber;
17842
17860
  replyCount: z.ZodNumber;
@@ -19769,6 +19787,8 @@ export declare const publicPostSchema: z.ZodObject<{
19769
19787
  seen: z.ZodOptional<z.ZodBoolean>;
19770
19788
  inReplyToId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
19771
19789
  hidden: z.ZodOptional<z.ZodBoolean>;
19790
+ publishedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
19791
+ isDraft: z.ZodOptional<z.ZodBoolean>;
19772
19792
  replyTo: z.ZodNullable<z.ZodOptional<z.ZodObject<{
19773
19793
  id: z.ZodString;
19774
19794
  type: z.ZodEnum<{
@@ -21472,6 +21492,8 @@ export declare const publicPostSchema: z.ZodObject<{
21472
21492
  seen: z.ZodOptional<z.ZodBoolean>;
21473
21493
  inReplyToId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
21474
21494
  hidden: z.ZodOptional<z.ZodBoolean>;
21495
+ publishedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
21496
+ isDraft: z.ZodOptional<z.ZodBoolean>;
21475
21497
  }, z.core.$strip>>>;
21476
21498
  }, z.core.$strip>>>;
21477
21499
  latestRepliesHasMore: z.ZodOptional<z.ZodBoolean>;
@@ -23703,6 +23725,8 @@ export declare const publicNotificationSchema: z.ZodObject<{
23703
23725
  blockedByMe: z.ZodOptional<z.ZodBoolean>;
23704
23726
  }, z.core.$strip>>>>;
23705
23727
  hidden: z.ZodOptional<z.ZodBoolean>;
23728
+ publishedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
23729
+ isDraft: z.ZodOptional<z.ZodBoolean>;
23706
23730
  repostCount: z.ZodNumber;
23707
23731
  replyCount: z.ZodNumber;
23708
23732
  reactions: z.ZodArray<z.ZodObject<{
@@ -25634,6 +25658,8 @@ export declare const publicNotificationSchema: z.ZodObject<{
25634
25658
  seen: z.ZodOptional<z.ZodBoolean>;
25635
25659
  inReplyToId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
25636
25660
  hidden: z.ZodOptional<z.ZodBoolean>;
25661
+ publishedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
25662
+ isDraft: z.ZodOptional<z.ZodBoolean>;
25637
25663
  replyTo: z.ZodNullable<z.ZodOptional<z.ZodObject<{
25638
25664
  id: z.ZodString;
25639
25665
  type: z.ZodEnum<{
@@ -27337,6 +27363,8 @@ export declare const publicNotificationSchema: z.ZodObject<{
27337
27363
  seen: z.ZodOptional<z.ZodBoolean>;
27338
27364
  inReplyToId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
27339
27365
  hidden: z.ZodOptional<z.ZodBoolean>;
27366
+ publishedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
27367
+ isDraft: z.ZodOptional<z.ZodBoolean>;
27340
27368
  }, z.core.$strip>>>;
27341
27369
  }, z.core.$strip>>>;
27342
27370
  latestRepliesHasMore: z.ZodOptional<z.ZodBoolean>;
@@ -29306,6 +29334,8 @@ export declare const publicNotificationSchema: z.ZodObject<{
29306
29334
  seen: z.ZodOptional<z.ZodBoolean>;
29307
29335
  inReplyToId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
29308
29336
  hidden: z.ZodOptional<z.ZodBoolean>;
29337
+ publishedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
29338
+ isDraft: z.ZodOptional<z.ZodBoolean>;
29309
29339
  replyTo: z.ZodNullable<z.ZodOptional<z.ZodObject<{
29310
29340
  id: z.ZodString;
29311
29341
  type: z.ZodEnum<{
@@ -31009,6 +31039,8 @@ export declare const publicNotificationSchema: z.ZodObject<{
31009
31039
  seen: z.ZodOptional<z.ZodBoolean>;
31010
31040
  inReplyToId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
31011
31041
  hidden: z.ZodOptional<z.ZodBoolean>;
31042
+ publishedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
31043
+ isDraft: z.ZodOptional<z.ZodBoolean>;
31012
31044
  }, z.core.$strip>>>;
31013
31045
  }, z.core.$strip>>>;
31014
31046
  repost: z.ZodNullable<z.ZodOptional<z.ZodObject<{
@@ -32713,6 +32745,8 @@ export declare const publicNotificationSchema: z.ZodObject<{
32713
32745
  }, z.core.$strip>>>>;
32714
32746
  inReplyToId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
32715
32747
  hidden: z.ZodOptional<z.ZodBoolean>;
32748
+ publishedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
32749
+ isDraft: z.ZodOptional<z.ZodBoolean>;
32716
32750
  replyTo: z.ZodNullable<z.ZodOptional<z.ZodObject<{
32717
32751
  id: z.ZodString;
32718
32752
  type: z.ZodEnum<{
@@ -34416,6 +34450,8 @@ export declare const publicNotificationSchema: z.ZodObject<{
34416
34450
  seen: z.ZodOptional<z.ZodBoolean>;
34417
34451
  inReplyToId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
34418
34452
  hidden: z.ZodOptional<z.ZodBoolean>;
34453
+ publishedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
34454
+ isDraft: z.ZodOptional<z.ZodBoolean>;
34419
34455
  }, z.core.$strip>>>;
34420
34456
  repostCount: z.ZodNumber;
34421
34457
  replyCount: z.ZodNumber;
@@ -36348,6 +36384,8 @@ export declare const publicNotificationSchema: z.ZodObject<{
36348
36384
  seen: z.ZodOptional<z.ZodBoolean>;
36349
36385
  inReplyToId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
36350
36386
  hidden: z.ZodOptional<z.ZodBoolean>;
36387
+ publishedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
36388
+ isDraft: z.ZodOptional<z.ZodBoolean>;
36351
36389
  replyTo: z.ZodNullable<z.ZodOptional<z.ZodObject<{
36352
36390
  id: z.ZodString;
36353
36391
  type: z.ZodEnum<{
@@ -38051,6 +38089,8 @@ export declare const publicNotificationSchema: z.ZodObject<{
38051
38089
  seen: z.ZodOptional<z.ZodBoolean>;
38052
38090
  inReplyToId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
38053
38091
  hidden: z.ZodOptional<z.ZodBoolean>;
38092
+ publishedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
38093
+ isDraft: z.ZodOptional<z.ZodBoolean>;
38054
38094
  }, z.core.$strip>>>;
38055
38095
  }, z.core.$strip>>>;
38056
38096
  latestRepliesHasMore: z.ZodOptional<z.ZodBoolean>;
@@ -41348,6 +41388,8 @@ export declare const publicReportSchema: z.ZodObject<{
41348
41388
  blockedByMe: z.ZodOptional<z.ZodBoolean>;
41349
41389
  }, z.core.$strip>>>>;
41350
41390
  hidden: z.ZodOptional<z.ZodBoolean>;
41391
+ publishedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
41392
+ isDraft: z.ZodOptional<z.ZodBoolean>;
41351
41393
  repostCount: z.ZodNumber;
41352
41394
  replyCount: z.ZodNumber;
41353
41395
  reactions: z.ZodArray<z.ZodObject<{
@@ -43279,6 +43321,8 @@ export declare const publicReportSchema: z.ZodObject<{
43279
43321
  seen: z.ZodOptional<z.ZodBoolean>;
43280
43322
  inReplyToId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
43281
43323
  hidden: z.ZodOptional<z.ZodBoolean>;
43324
+ publishedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
43325
+ isDraft: z.ZodOptional<z.ZodBoolean>;
43282
43326
  replyTo: z.ZodNullable<z.ZodOptional<z.ZodObject<{
43283
43327
  id: z.ZodString;
43284
43328
  type: z.ZodEnum<{
@@ -44982,6 +45026,8 @@ export declare const publicReportSchema: z.ZodObject<{
44982
45026
  seen: z.ZodOptional<z.ZodBoolean>;
44983
45027
  inReplyToId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
44984
45028
  hidden: z.ZodOptional<z.ZodBoolean>;
45029
+ publishedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
45030
+ isDraft: z.ZodOptional<z.ZodBoolean>;
44985
45031
  }, z.core.$strip>>>;
44986
45032
  }, z.core.$strip>>>;
44987
45033
  latestRepliesHasMore: z.ZodOptional<z.ZodBoolean>;
@@ -46951,6 +46997,8 @@ export declare const publicReportSchema: z.ZodObject<{
46951
46997
  seen: z.ZodOptional<z.ZodBoolean>;
46952
46998
  inReplyToId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
46953
46999
  hidden: z.ZodOptional<z.ZodBoolean>;
47000
+ publishedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
47001
+ isDraft: z.ZodOptional<z.ZodBoolean>;
46954
47002
  replyTo: z.ZodNullable<z.ZodOptional<z.ZodObject<{
46955
47003
  id: z.ZodString;
46956
47004
  type: z.ZodEnum<{
@@ -48654,6 +48702,8 @@ export declare const publicReportSchema: z.ZodObject<{
48654
48702
  seen: z.ZodOptional<z.ZodBoolean>;
48655
48703
  inReplyToId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
48656
48704
  hidden: z.ZodOptional<z.ZodBoolean>;
48705
+ publishedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
48706
+ isDraft: z.ZodOptional<z.ZodBoolean>;
48657
48707
  }, z.core.$strip>>>;
48658
48708
  }, z.core.$strip>>>;
48659
48709
  repost: z.ZodNullable<z.ZodOptional<z.ZodObject<{
@@ -50358,6 +50408,8 @@ export declare const publicReportSchema: z.ZodObject<{
50358
50408
  }, z.core.$strip>>>>;
50359
50409
  inReplyToId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
50360
50410
  hidden: z.ZodOptional<z.ZodBoolean>;
50411
+ publishedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
50412
+ isDraft: z.ZodOptional<z.ZodBoolean>;
50361
50413
  replyTo: z.ZodNullable<z.ZodOptional<z.ZodObject<{
50362
50414
  id: z.ZodString;
50363
50415
  type: z.ZodEnum<{
@@ -52061,6 +52113,8 @@ export declare const publicReportSchema: z.ZodObject<{
52061
52113
  seen: z.ZodOptional<z.ZodBoolean>;
52062
52114
  inReplyToId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
52063
52115
  hidden: z.ZodOptional<z.ZodBoolean>;
52116
+ publishedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
52117
+ isDraft: z.ZodOptional<z.ZodBoolean>;
52064
52118
  }, z.core.$strip>>>;
52065
52119
  repostCount: z.ZodNumber;
52066
52120
  replyCount: z.ZodNumber;
@@ -53993,6 +54047,8 @@ export declare const publicReportSchema: z.ZodObject<{
53993
54047
  seen: z.ZodOptional<z.ZodBoolean>;
53994
54048
  inReplyToId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
53995
54049
  hidden: z.ZodOptional<z.ZodBoolean>;
54050
+ publishedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
54051
+ isDraft: z.ZodOptional<z.ZodBoolean>;
53996
54052
  replyTo: z.ZodNullable<z.ZodOptional<z.ZodObject<{
53997
54053
  id: z.ZodString;
53998
54054
  type: z.ZodEnum<{
@@ -55696,6 +55752,8 @@ export declare const publicReportSchema: z.ZodObject<{
55696
55752
  seen: z.ZodOptional<z.ZodBoolean>;
55697
55753
  inReplyToId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
55698
55754
  hidden: z.ZodOptional<z.ZodBoolean>;
55755
+ publishedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
55756
+ isDraft: z.ZodOptional<z.ZodBoolean>;
55699
55757
  }, z.core.$strip>>>;
55700
55758
  }, z.core.$strip>>>;
55701
55759
  latestRepliesHasMore: z.ZodOptional<z.ZodBoolean>;
@@ -57748,6 +57806,8 @@ export declare const directMessageSearchHitSchema: z.ZodObject<{
57748
57806
  blockedByMe: z.ZodOptional<z.ZodBoolean>;
57749
57807
  }, z.core.$strip>>>>;
57750
57808
  hidden: z.ZodOptional<z.ZodBoolean>;
57809
+ publishedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
57810
+ isDraft: z.ZodOptional<z.ZodBoolean>;
57751
57811
  repostCount: z.ZodNumber;
57752
57812
  replyCount: z.ZodNumber;
57753
57813
  reactions: z.ZodArray<z.ZodObject<{
@@ -59679,6 +59739,8 @@ export declare const directMessageSearchHitSchema: z.ZodObject<{
59679
59739
  seen: z.ZodOptional<z.ZodBoolean>;
59680
59740
  inReplyToId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
59681
59741
  hidden: z.ZodOptional<z.ZodBoolean>;
59742
+ publishedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
59743
+ isDraft: z.ZodOptional<z.ZodBoolean>;
59682
59744
  replyTo: z.ZodNullable<z.ZodOptional<z.ZodObject<{
59683
59745
  id: z.ZodString;
59684
59746
  type: z.ZodEnum<{
@@ -61382,6 +61444,8 @@ export declare const directMessageSearchHitSchema: z.ZodObject<{
61382
61444
  seen: z.ZodOptional<z.ZodBoolean>;
61383
61445
  inReplyToId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
61384
61446
  hidden: z.ZodOptional<z.ZodBoolean>;
61447
+ publishedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
61448
+ isDraft: z.ZodOptional<z.ZodBoolean>;
61385
61449
  }, z.core.$strip>>>;
61386
61450
  }, z.core.$strip>>>;
61387
61451
  latestRepliesHasMore: z.ZodOptional<z.ZodBoolean>;
@@ -63351,6 +63415,8 @@ export declare const directMessageSearchHitSchema: z.ZodObject<{
63351
63415
  seen: z.ZodOptional<z.ZodBoolean>;
63352
63416
  inReplyToId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
63353
63417
  hidden: z.ZodOptional<z.ZodBoolean>;
63418
+ publishedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
63419
+ isDraft: z.ZodOptional<z.ZodBoolean>;
63354
63420
  replyTo: z.ZodNullable<z.ZodOptional<z.ZodObject<{
63355
63421
  id: z.ZodString;
63356
63422
  type: z.ZodEnum<{
@@ -65054,6 +65120,8 @@ export declare const directMessageSearchHitSchema: z.ZodObject<{
65054
65120
  seen: z.ZodOptional<z.ZodBoolean>;
65055
65121
  inReplyToId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
65056
65122
  hidden: z.ZodOptional<z.ZodBoolean>;
65123
+ publishedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
65124
+ isDraft: z.ZodOptional<z.ZodBoolean>;
65057
65125
  }, z.core.$strip>>>;
65058
65126
  }, z.core.$strip>>>;
65059
65127
  repost: z.ZodNullable<z.ZodOptional<z.ZodObject<{
@@ -66758,6 +66826,8 @@ export declare const directMessageSearchHitSchema: z.ZodObject<{
66758
66826
  }, z.core.$strip>>>>;
66759
66827
  inReplyToId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
66760
66828
  hidden: z.ZodOptional<z.ZodBoolean>;
66829
+ publishedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
66830
+ isDraft: z.ZodOptional<z.ZodBoolean>;
66761
66831
  replyTo: z.ZodNullable<z.ZodOptional<z.ZodObject<{
66762
66832
  id: z.ZodString;
66763
66833
  type: z.ZodEnum<{
@@ -68461,6 +68531,8 @@ export declare const directMessageSearchHitSchema: z.ZodObject<{
68461
68531
  seen: z.ZodOptional<z.ZodBoolean>;
68462
68532
  inReplyToId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
68463
68533
  hidden: z.ZodOptional<z.ZodBoolean>;
68534
+ publishedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
68535
+ isDraft: z.ZodOptional<z.ZodBoolean>;
68464
68536
  }, z.core.$strip>>>;
68465
68537
  repostCount: z.ZodNumber;
68466
68538
  replyCount: z.ZodNumber;
@@ -70393,6 +70465,8 @@ export declare const directMessageSearchHitSchema: z.ZodObject<{
70393
70465
  seen: z.ZodOptional<z.ZodBoolean>;
70394
70466
  inReplyToId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
70395
70467
  hidden: z.ZodOptional<z.ZodBoolean>;
70468
+ publishedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
70469
+ isDraft: z.ZodOptional<z.ZodBoolean>;
70396
70470
  replyTo: z.ZodNullable<z.ZodOptional<z.ZodObject<{
70397
70471
  id: z.ZodString;
70398
70472
  type: z.ZodEnum<{
@@ -72096,6 +72170,8 @@ export declare const directMessageSearchHitSchema: z.ZodObject<{
72096
72170
  seen: z.ZodOptional<z.ZodBoolean>;
72097
72171
  inReplyToId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
72098
72172
  hidden: z.ZodOptional<z.ZodBoolean>;
72173
+ publishedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
72174
+ isDraft: z.ZodOptional<z.ZodBoolean>;
72099
72175
  }, z.core.$strip>>>;
72100
72176
  }, z.core.$strip>>>;
72101
72177
  latestRepliesHasMore: z.ZodOptional<z.ZodBoolean>;
@@ -72942,6 +73018,7 @@ export declare const postCreationDataSchema: z.ZodObject<{
72942
73018
  votersVisible: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
72943
73019
  expiresAt: z.ZodOptional<z.ZodOptional<z.ZodISODateTime>>;
72944
73020
  }, z.core.$strip>>;
73021
+ draft: z.ZodOptional<z.ZodBoolean>;
72945
73022
  }, z.core.$strip>;
72946
73023
  export type PostCreationData = z.infer<typeof postCreationDataSchema>;
72947
73024
  export declare const postCreationDataFormSchema: z.ZodObject<{
@@ -73521,6 +73598,7 @@ export declare const postCreationDataFormSchema: z.ZodObject<{
73521
73598
  votersVisible: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
73522
73599
  expiresAt: z.ZodOptional<z.ZodOptional<z.ZodISODateTime>>;
73523
73600
  }, z.core.$strip>>;
73601
+ draft: z.ZodOptional<z.ZodBoolean>;
73524
73602
  }, z.core.$strip>;
73525
73603
  declare const answerWithPublicProfileSchema: z.ZodObject<{
73526
73604
  selection: z.ZodArray<z.ZodNumber>;
package/dist/types/api.js CHANGED
@@ -118,6 +118,10 @@ const publicReplyPostObject = z.object({
118
118
  seen: z.boolean().optional(),
119
119
  inReplyToId: z.string().optional().nullable(),
120
120
  hidden: z.boolean().optional(),
121
+ /** ISO publish timestamp. Absent/undefined while the post is a draft. */
122
+ publishedAt: z.string().datetime().optional().nullable(),
123
+ /** True while the post is an unpublished draft (visible to the creator only). */
124
+ isDraft: z.boolean().optional(),
121
125
  });
122
126
  export const publicReplyPostSchema = publicReplyPostObject.extend({
123
127
  replyTo: publicReplyPostObject.optional().nullable(),
@@ -594,6 +598,8 @@ export const postCreationDataSchema = z.object({
594
598
  * strips it.
595
599
  */
596
600
  questionDraft: questionSchema.partial().optional(),
601
+ /** Save as an unpublished draft instead of publishing (default: publish). */
602
+ draft: z.boolean().optional(),
597
603
  });
598
604
  export const postCreationDataFormSchema = postCreationDataSchema
599
605
  .refine((data) => {
@@ -0,0 +1,33 @@
1
+ import { z } from 'zod';
2
+ export declare const auditLogEntrySchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ actorProfileId: z.ZodString;
5
+ actorAccountId: z.ZodNullable<z.ZodString>;
6
+ actorIp: z.ZodNullable<z.ZodString>;
7
+ action: z.ZodString;
8
+ targetType: z.ZodString;
9
+ targetId: z.ZodNullable<z.ZodString>;
10
+ targetLabel: z.ZodNullable<z.ZodString>;
11
+ metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
12
+ createdAt: z.ZodString;
13
+ }, z.core.$strip>;
14
+ export type AuditLogEntry = z.infer<typeof auditLogEntrySchema>;
15
+ /**
16
+ * Keyset cursor: the `created_at`/`id` of the last row of the previous page.
17
+ * Both parts are required together so a row that ties on `created_at` with the
18
+ * boundary row is not skipped when paging ("older" = strictly below the pair).
19
+ */
20
+ export declare const auditLogCursorSchema: z.ZodObject<{
21
+ before: z.ZodString;
22
+ beforeId: z.ZodString;
23
+ }, z.core.$strip>;
24
+ export type AuditLogCursor = z.infer<typeof auditLogCursorSchema>;
25
+ export declare const auditLogListQuerySchema: z.ZodObject<{
26
+ before: z.ZodOptional<z.ZodString>;
27
+ beforeId: z.ZodOptional<z.ZodString>;
28
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
29
+ actor: z.ZodOptional<z.ZodString>;
30
+ targetType: z.ZodOptional<z.ZodString>;
31
+ targetId: z.ZodOptional<z.ZodString>;
32
+ }, z.core.$strip>;
33
+ export type AuditLogListQuery = z.infer<typeof auditLogListQuerySchema>;
@@ -0,0 +1,32 @@
1
+ import { z } from 'zod';
2
+ export const auditLogEntrySchema = z.object({
3
+ id: z.string(),
4
+ actorProfileId: z.string(),
5
+ actorAccountId: z.string().nullable(),
6
+ actorIp: z.string().nullable(),
7
+ action: z.string(),
8
+ targetType: z.string(),
9
+ targetId: z.string().nullable(),
10
+ targetLabel: z.string().nullable(),
11
+ metadata: z.record(z.string(), z.unknown()).nullable(),
12
+ createdAt: z.string().datetime(),
13
+ });
14
+ /**
15
+ * Keyset cursor: the `created_at`/`id` of the last row of the previous page.
16
+ * Both parts are required together so a row that ties on `created_at` with the
17
+ * boundary row is not skipped when paging ("older" = strictly below the pair).
18
+ */
19
+ export const auditLogCursorSchema = z.object({
20
+ before: z.string().datetime(),
21
+ beforeId: z.string().uuid(),
22
+ });
23
+ export const auditLogListQuerySchema = z.object({
24
+ /** Only entries older than this `created_at`. Pair with `beforeId`. */
25
+ before: z.string().datetime().optional(),
26
+ /** The `id` paired with `before`; rows with the same `created_at` but a lower `id` are the ones returned. */
27
+ beforeId: z.string().uuid().optional(),
28
+ limit: z.coerce.number().int().min(1).max(1000).optional(),
29
+ actor: z.string().optional(),
30
+ targetType: z.string().optional(),
31
+ targetId: z.string().optional(),
32
+ });
@@ -27,14 +27,14 @@ export type GroupCapability = (typeof groupCapabilities)[number];
27
27
  export type ProfileCapability = (typeof profileCapabilities)[number];
28
28
  export type ReportCapability = (typeof reportCapabilities)[number];
29
29
  export type AccessTokenCapability = (typeof accessTokenCapabilities)[number];
30
- export declare const roleCapabilities: readonly ["core-local", "core-accounts-read", "core-accounts-create", "core-accounts-update", "core-accounts-delete", "core-reports-create", "core-reports-update", "core-groups-create", "core-groups-read", "core-groups-delete", "core-groups-addMember", "core-groups-removeMember", "core-groups-changeMemberRole", "core-posts-create-note-local", "core-posts-create-note-public", "core-posts-create-note-direct", "core-posts-create-note-private", "core-posts-create-event-local", "core-posts-create-event-public", "core-posts-create-event-direct", "core-posts-create-event-private", "core-posts-create-poll-local", "core-posts-create-poll-public", "core-posts-create-poll-direct", "core-posts-create-poll-private", "core-posts-create-article-local", "core-posts-create-article-public", "core-posts-create-article-direct", "core-posts-create-article-private", "core-posts-create-resource-local", "core-posts-create-resource-public", "core-posts-create-resource-direct", "core-posts-create-resource-private", "core-posts-read-local", "core-posts-announce", "core-posts-delete", "core-profiles-read", "core-profiles-roles-update", "core-profiles-delete", "core-profiles-suspend", "core-profiles-update", "core-profiles-impersonate", "core-analytics-read", "core-config-update", "core-config-read", "core-federation-manage", "core-customization-read", "core-customization-update", "core-capabilities-read", "core-capabilities-update", "core-backups-create", "core-backups-read", "core-backups-download", "core-backups-restore", "core-db-access", "core-i18n-update", "core-logs-read", "core-roles-read", "core-roles-update", "core-maintenance-restart", "core-media-read", "core-media-delete", "core-inviteLinks-create", "core-inviteLinks-read", "core-inviteLinks-update", "core-inviteLinks-delete", "core-serviceTokens-create", "core-serviceTokens-read", "core-serviceTokens-update", "core-serviceTokens-delete", "core-plugins-manage"];
30
+ export declare const roleCapabilities: readonly ["core-local", "core-accounts-read", "core-accounts-create", "core-accounts-update", "core-accounts-delete", "core-reports-create", "core-reports-update", "core-groups-create", "core-groups-read", "core-groups-delete", "core-groups-addMember", "core-groups-removeMember", "core-groups-changeMemberRole", "core-posts-create-note-local", "core-posts-create-note-public", "core-posts-create-note-direct", "core-posts-create-note-private", "core-posts-create-event-local", "core-posts-create-event-public", "core-posts-create-event-direct", "core-posts-create-event-private", "core-posts-create-poll-local", "core-posts-create-poll-public", "core-posts-create-poll-direct", "core-posts-create-poll-private", "core-posts-create-article-local", "core-posts-create-article-public", "core-posts-create-article-direct", "core-posts-create-article-private", "core-posts-create-resource-local", "core-posts-create-resource-public", "core-posts-create-resource-direct", "core-posts-create-resource-private", "core-posts-read-local", "core-posts-announce", "core-posts-delete", "core-profiles-read", "core-profiles-roles-update", "core-profiles-delete", "core-profiles-suspend", "core-profiles-update", "core-profiles-impersonate", "core-analytics-read", "core-config-update", "core-config-read", "core-federation-manage", "core-customization-read", "core-customization-update", "core-capabilities-read", "core-capabilities-update", "core-backups-create", "core-backups-read", "core-backups-download", "core-backups-restore", "core-db-access", "core-i18n-update", "core-logs-read", "core-auditLog-read", "core-roles-read", "core-roles-update", "core-maintenance-restart", "core-media-read", "core-media-delete", "core-inviteLinks-create", "core-inviteLinks-read", "core-inviteLinks-update", "core-inviteLinks-delete", "core-serviceTokens-create", "core-serviceTokens-read", "core-serviceTokens-update", "core-serviceTokens-delete", "core-plugins-manage"];
31
31
  export type RoleCapability = (typeof roleCapabilities)[number];
32
32
  /**
33
33
  * Capability keys an instance admin can toggle for each role (leaves) plus the
34
34
  * wildcard allow-all keys an editor exposes. `*` covers capabilities that do not
35
35
  * fall under a `core-<domain>-*` category (e.g. `core-local`).
36
36
  */
37
- export declare const roleCapabilityEditorKeys: readonly ["core-local", "core-accounts-read", "core-accounts-create", "core-accounts-update", "core-accounts-delete", "core-reports-create", "core-reports-update", "core-groups-create", "core-groups-read", "core-groups-delete", "core-groups-addMember", "core-groups-removeMember", "core-groups-changeMemberRole", "core-posts-create-note-local", "core-posts-create-note-public", "core-posts-create-note-direct", "core-posts-create-note-private", "core-posts-create-event-local", "core-posts-create-event-public", "core-posts-create-event-direct", "core-posts-create-event-private", "core-posts-create-poll-local", "core-posts-create-poll-public", "core-posts-create-poll-direct", "core-posts-create-poll-private", "core-posts-create-article-local", "core-posts-create-article-public", "core-posts-create-article-direct", "core-posts-create-article-private", "core-posts-create-resource-local", "core-posts-create-resource-public", "core-posts-create-resource-direct", "core-posts-create-resource-private", "core-posts-read-local", "core-posts-announce", "core-posts-delete", "core-profiles-read", "core-profiles-roles-update", "core-profiles-delete", "core-profiles-suspend", "core-profiles-update", "core-profiles-impersonate", "core-analytics-read", "core-config-update", "core-config-read", "core-federation-manage", "core-customization-read", "core-customization-update", "core-capabilities-read", "core-capabilities-update", "core-backups-create", "core-backups-read", "core-backups-download", "core-backups-restore", "core-db-access", "core-i18n-update", "core-logs-read", "core-roles-read", "core-roles-update", "core-maintenance-restart", "core-media-read", "core-media-delete", "core-inviteLinks-create", "core-inviteLinks-read", "core-inviteLinks-update", "core-inviteLinks-delete", "core-serviceTokens-create", "core-serviceTokens-read", "core-serviceTokens-update", "core-serviceTokens-delete", "core-plugins-manage", "*", "core-accounts-*", "core-analytics-*", "core-backups-*", "core-capabilities-*", "core-config-*", "core-customization-*", "core-db-*", "core-federation-*", "core-groups-*", "core-i18n-*", "core-inviteLinks-*", "core-logs-*", "core-maintenance-*", "core-media-*", "core-plugins-*", "core-profiles-*", "core-posts-create-*", "core-posts-*", "core-reports-*", "core-roles-*", "core-serviceTokens-*"];
37
+ export declare const roleCapabilityEditorKeys: readonly ["core-local", "core-accounts-read", "core-accounts-create", "core-accounts-update", "core-accounts-delete", "core-reports-create", "core-reports-update", "core-groups-create", "core-groups-read", "core-groups-delete", "core-groups-addMember", "core-groups-removeMember", "core-groups-changeMemberRole", "core-posts-create-note-local", "core-posts-create-note-public", "core-posts-create-note-direct", "core-posts-create-note-private", "core-posts-create-event-local", "core-posts-create-event-public", "core-posts-create-event-direct", "core-posts-create-event-private", "core-posts-create-poll-local", "core-posts-create-poll-public", "core-posts-create-poll-direct", "core-posts-create-poll-private", "core-posts-create-article-local", "core-posts-create-article-public", "core-posts-create-article-direct", "core-posts-create-article-private", "core-posts-create-resource-local", "core-posts-create-resource-public", "core-posts-create-resource-direct", "core-posts-create-resource-private", "core-posts-read-local", "core-posts-announce", "core-posts-delete", "core-profiles-read", "core-profiles-roles-update", "core-profiles-delete", "core-profiles-suspend", "core-profiles-update", "core-profiles-impersonate", "core-analytics-read", "core-config-update", "core-config-read", "core-federation-manage", "core-customization-read", "core-customization-update", "core-capabilities-read", "core-capabilities-update", "core-backups-create", "core-backups-read", "core-backups-download", "core-backups-restore", "core-db-access", "core-i18n-update", "core-logs-read", "core-auditLog-read", "core-roles-read", "core-roles-update", "core-maintenance-restart", "core-media-read", "core-media-delete", "core-inviteLinks-create", "core-inviteLinks-read", "core-inviteLinks-update", "core-inviteLinks-delete", "core-serviceTokens-create", "core-serviceTokens-read", "core-serviceTokens-update", "core-serviceTokens-delete", "core-plugins-manage", "*", "core-accounts-*", "core-analytics-*", "core-auditLog-*", "core-backups-*", "core-capabilities-*", "core-config-*", "core-customization-*", "core-db-*", "core-federation-*", "core-groups-*", "core-i18n-*", "core-inviteLinks-*", "core-logs-*", "core-maintenance-*", "core-media-*", "core-plugins-*", "core-profiles-*", "core-posts-create-*", "core-posts-*", "core-reports-*", "core-roles-*", "core-serviceTokens-*"];
38
38
  /** Capability keys an admin can toggle per relationship for posts. */
39
39
  export declare const postCapabilityEditorKeys: readonly ["core-posts-read", "core-posts-update", "core-posts-delete", "core-posts-vote", "core-posts-react", "core-posts-rsvp", "core-posts-reply", "core-posts-jam-moderate", "core-posts-jam-speak", "core-posts-jam-read", "core-posts-*"];
40
40
  /** Capability keys an admin can toggle per relationship for profiles. */
@@ -179,6 +179,7 @@ export const roleCapabilities = [
179
179
  'core-db-access',
180
180
  'core-i18n-update',
181
181
  'core-logs-read',
182
+ 'core-auditLog-read',
182
183
  'core-roles-read',
183
184
  'core-roles-update',
184
185
  'core-maintenance-restart',
@@ -204,6 +205,7 @@ export const roleCapabilityEditorKeys = [
204
205
  '*',
205
206
  'core-accounts-*',
206
207
  'core-analytics-*',
208
+ 'core-auditLog-*',
207
209
  'core-backups-*',
208
210
  'core-capabilities-*',
209
211
  'core-config-*',