@mattermost/types 11.2.0 → 11.4.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.
@@ -69,3 +69,7 @@ export interface AccessControlled {
69
69
  */
70
70
  access_control_enforced?: boolean;
71
71
  }
72
+ export type AccessControlPolicyActiveUpdate = {
73
+ id: string;
74
+ active: boolean;
75
+ };
package/lib/channels.d.ts CHANGED
@@ -49,6 +49,7 @@ export type Channel = {
49
49
  policy_id?: string | null;
50
50
  banner_info?: ChannelBanner;
51
51
  policy_enforced?: boolean;
52
+ policy_is_active?: boolean;
52
53
  default_category_name?: string;
53
54
  };
54
55
  export type ServerChannel = Channel & {
package/lib/config.d.ts CHANGED
@@ -20,6 +20,7 @@ export type ClientConfig = {
20
20
  BuildHash: string;
21
21
  BuildHashEnterprise: string;
22
22
  BuildNumber: string;
23
+ IsFipsEnabled: string;
23
24
  CollapsedThreads: CollapsedThreads;
24
25
  CustomBrandText: string;
25
26
  CustomDescriptionText: string;
@@ -72,6 +73,7 @@ export type ClientConfig = {
72
73
  EnableFile: string;
73
74
  EnableGifPicker: string;
74
75
  EnableGuestAccounts: string;
76
+ EnableGuestMagicLink: string;
75
77
  EnableIncomingWebhooks: string;
76
78
  EnableJoinLeaveMessageByDefault: string;
77
79
  EnableLatex: string;
@@ -221,6 +223,9 @@ export type ClientConfig = {
221
223
  ScheduledPosts: string;
222
224
  DeleteAccountLink: string;
223
225
  ContentFlaggingEnabled: 'true' | 'false';
226
+ EnableBurnOnRead: string;
227
+ BurnOnReadDurationSeconds: string;
228
+ BurnOnReadMaximumTimeToLiveSeconds: string;
224
229
  EnableAttributeBasedAccessControl: string;
225
230
  EnableChannelScopeAccessControl: string;
226
231
  EnableUserManagedAttributes: string;
@@ -310,6 +315,7 @@ export type ServiceSettings = {
310
315
  GoroutineHealthThreshold: number;
311
316
  GoogleDeveloperKey: string;
312
317
  EnableOAuthServiceProvider: boolean;
318
+ EnableDynamicClientRegistration: boolean;
313
319
  EnableIncomingWebhooks: boolean;
314
320
  EnableOutgoingWebhooks: boolean;
315
321
  EnableOutgoingOAuthConnections: boolean;
@@ -385,6 +391,7 @@ export type ServiceSettings = {
385
391
  PostPriority: boolean;
386
392
  EnableAPIChannelDeletion: boolean;
387
393
  EnableAWSMetering: boolean;
394
+ AWSMeteringTimeoutSeconds: number;
388
395
  SplitKey: string;
389
396
  FeatureFlagSyncIntervalSeconds: number;
390
397
  DebugSplit: boolean;
@@ -396,6 +403,10 @@ export type ServiceSettings = {
396
403
  PersistentNotificationIntervalMinutes: number;
397
404
  PersistentNotificationMaxCount: number;
398
405
  PersistentNotificationMaxRecipients: number;
406
+ EnableBurnOnRead: boolean;
407
+ BurnOnReadDurationSeconds: number;
408
+ BurnOnReadMaximumTimeToLiveSeconds: number;
409
+ BurnOnReadSchedulerFrequencySeconds: number;
399
410
  UniqueEmojiReactionLimitPerPost: number;
400
411
  RefreshPostStatsRunTime: string;
401
412
  MaximumPayloadSizeBytes: number;
@@ -711,7 +722,7 @@ export type AutoTranslationSettings = {
711
722
  URL: string;
712
723
  APIKey: string;
713
724
  };
714
- TimeoutMs: {
725
+ TimeoutsMs: {
715
726
  NewPost: number;
716
727
  Fetch: number;
717
728
  Notification: number;
@@ -764,6 +775,13 @@ export type NativeAppSettings = {
764
775
  MobileJailbreakProtection: boolean;
765
776
  MobileEnableSecureFilePreview: boolean;
766
777
  MobileAllowPdfLinkNavigation: boolean;
778
+ EnableIntuneMAM: boolean;
779
+ };
780
+ export type IntuneSettings = {
781
+ Enable: boolean;
782
+ TenantId?: string;
783
+ ClientId?: string;
784
+ AuthService?: string;
767
785
  };
768
786
  export type ClusterSettings = {
769
787
  Enable: boolean;
@@ -787,6 +805,7 @@ export type MetricsSettings = {
787
805
  ClientSideUserIds: string[];
788
806
  };
789
807
  export type ExperimentalSettings = {
808
+ ClientSideCertEnable: boolean;
790
809
  LinkMetadataTimeoutMilliseconds: number;
791
810
  RestrictSystemAdmin: boolean;
792
811
  EnableSharedChannels: boolean;
@@ -908,6 +927,7 @@ export type GuestAccountsSettings = {
908
927
  AllowEmailAccounts: boolean;
909
928
  EnforceMultifactorAuthentication: boolean;
910
929
  RestrictCreationToDomains: string;
930
+ EnableGuestMagicLink: boolean;
911
931
  };
912
932
  export type ImageProxySettings = {
913
933
  Enable: boolean;
@@ -986,6 +1006,7 @@ export type AdminConfig = {
986
1006
  LocalizationSettings: LocalizationSettings;
987
1007
  SamlSettings: SamlSettings;
988
1008
  NativeAppSettings: NativeAppSettings;
1009
+ IntuneSettings: IntuneSettings;
989
1010
  ClusterSettings: ClusterSettings;
990
1011
  MetricsSettings: MetricsSettings;
991
1012
  ExperimentalSettings: ExperimentalSettings;
package/lib/drafts.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { PostMetadata, PostPriorityMetadata } from './posts';
1
+ import type { PostMetadata, PostPriorityMetadata, PostType } from './posts';
2
2
  export type Draft = {
3
3
  create_at: number;
4
4
  update_at: number;
@@ -7,6 +7,7 @@ export type Draft = {
7
7
  channel_id: string;
8
8
  root_id: string;
9
9
  message: string;
10
+ type?: PostType;
10
11
  props: Record<string, any>;
11
12
  file_ids?: string[];
12
13
  metadata?: PostMetadata;
package/lib/plugins.d.ts CHANGED
@@ -94,6 +94,7 @@ export type PluginStatusRedux = {
94
94
  };
95
95
  export type ClientPluginManifest = {
96
96
  id: string;
97
+ name: string;
97
98
  min_server_version?: string;
98
99
  version: string;
99
100
  webapp: {
package/lib/posts.d.ts CHANGED
@@ -5,7 +5,7 @@ import type { Reaction } from './reactions';
5
5
  import type { TeamType } from './teams';
6
6
  import type { UserProfile } from './users';
7
7
  import { type RelationOneToOne, type RelationOneToMany, type IDMappedObjects } from './utilities';
8
- export type PostType = 'system_add_remove' | 'system_add_to_channel' | 'system_add_to_team' | 'system_channel_deleted' | 'system_channel_restored' | 'system_displayname_change' | 'system_convert_channel' | 'system_ephemeral' | 'system_header_change' | 'system_join_channel' | 'system_join_leave' | 'system_leave_channel' | 'system_purpose_change' | 'system_remove_from_channel' | 'system_combined_user_activity' | 'system_fake_parent_deleted' | 'system_generic' | 'reminder' | 'system_wrangler' | 'custom_spillage_report' | '';
8
+ export type PostType = 'system_add_remove' | 'system_add_to_channel' | 'system_add_to_team' | 'system_channel_deleted' | 'system_channel_restored' | 'system_displayname_change' | 'system_convert_channel' | 'system_ephemeral' | 'system_header_change' | 'system_join_channel' | 'system_join_leave' | 'system_leave_channel' | 'system_purpose_change' | 'system_remove_from_channel' | 'system_combined_user_activity' | 'system_fake_parent_deleted' | 'system_generic' | 'reminder' | 'system_wrangler' | 'custom_spillage_report' | 'burn_on_read' | '';
9
9
  export type PostEmbedType = 'image' | 'link' | 'message_attachment' | 'opengraph' | 'permalink';
10
10
  export type PostEmbed = {
11
11
  type: PostEmbedType;
@@ -36,6 +36,8 @@ export type PostMetadata = {
36
36
  reactions?: Reaction[];
37
37
  priority?: PostPriorityMetadata;
38
38
  acknowledgements?: PostAcknowledgement[];
39
+ expire_at?: number;
40
+ recipients?: string[];
39
41
  };
40
42
  export type Post = {
41
43
  id: string;
@@ -0,0 +1,34 @@
1
+ export type Recap = {
2
+ id: string;
3
+ user_id: string;
4
+ title: string;
5
+ create_at: number;
6
+ update_at: number;
7
+ delete_at: number;
8
+ read_at: number;
9
+ total_message_count: number;
10
+ status: RecapStatus;
11
+ bot_id: string;
12
+ channels?: RecapChannel[];
13
+ };
14
+ export type RecapChannel = {
15
+ id: string;
16
+ recap_id: string;
17
+ channel_id: string;
18
+ channel_name: string;
19
+ highlights: string[];
20
+ action_items: string[];
21
+ source_post_ids: string[];
22
+ create_at: number;
23
+ };
24
+ export type CreateRecapRequest = {
25
+ title: string;
26
+ channel_ids: string[];
27
+ agent_id: string;
28
+ };
29
+ export declare enum RecapStatus {
30
+ PENDING = "pending",
31
+ PROCESSING = "processing",
32
+ COMPLETED = "completed",
33
+ FAILED = "failed"
34
+ }
package/lib/recaps.js ADDED
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
3
+ // See LICENSE.txt for license information.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.RecapStatus = void 0;
6
+ var RecapStatus;
7
+ (function (RecapStatus) {
8
+ RecapStatus["PENDING"] = "pending";
9
+ RecapStatus["PROCESSING"] = "processing";
10
+ RecapStatus["COMPLETED"] = "completed";
11
+ RecapStatus["FAILED"] = "failed";
12
+ })(RecapStatus || (exports.RecapStatus = RecapStatus = {}));
@@ -17,6 +17,7 @@ function scheduledPostFromPost(post, schedulingInfo) {
17
17
  props: post.props,
18
18
  metadata: post.metadata,
19
19
  priority: post.metadata.priority,
20
+ type: post.type,
20
21
  };
21
22
  }
22
23
  function scheduledPostToPost(scheduledPost) {
@@ -27,7 +28,7 @@ function scheduledPostToPost(scheduledPost) {
27
28
  original_id: '',
28
29
  pending_post_id: '',
29
30
  reply_count: 0,
30
- type: '',
31
+ type: scheduledPost.type || '',
31
32
  id: scheduledPost.id,
32
33
  create_at: scheduledPost.create_at,
33
34
  update_at: scheduledPost.update_at,
package/lib/store.d.ts CHANGED
@@ -16,6 +16,7 @@ import type { JobsState } from './jobs';
16
16
  import type { LimitsState } from './limits';
17
17
  import type { PostsState } from './posts';
18
18
  import type { PreferenceType } from './preferences';
19
+ import type { Recap } from './recaps';
19
20
  import type { AdminRequestsStatuses, ChannelsRequestsStatuses, FilesRequestsStatuses, GeneralRequestsStatuses, PostsRequestsStatuses, RolesRequestsStatuses, TeamsRequestsStatuses, UsersRequestsStatuses } from './requests';
20
21
  import type { Role } from './roles';
21
22
  import type { ScheduledPostsState } from './schedule_post';
@@ -36,6 +37,10 @@ export type GlobalState = {
36
37
  channelBookmarks: ChannelBookmarksState;
37
38
  posts: PostsState;
38
39
  threads: ThreadsState;
40
+ recaps: {
41
+ byId: Record<string, Recap>;
42
+ allIds: string[];
43
+ };
39
44
  agents: {
40
45
  agents: Array<{
41
46
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mattermost/types",
3
- "version": "11.2.0",
3
+ "version": "11.4.0",
4
4
  "description": "Shared type definitions used by the Mattermost web app",
5
5
  "keywords": [
6
6
  "mattermost"