@mattermost/types 11.2.0 → 11.3.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;
@@ -385,6 +390,7 @@ export type ServiceSettings = {
385
390
  PostPriority: boolean;
386
391
  EnableAPIChannelDeletion: boolean;
387
392
  EnableAWSMetering: boolean;
393
+ AWSMeteringTimeoutSeconds: number;
388
394
  SplitKey: string;
389
395
  FeatureFlagSyncIntervalSeconds: number;
390
396
  DebugSplit: boolean;
@@ -764,6 +770,13 @@ export type NativeAppSettings = {
764
770
  MobileJailbreakProtection: boolean;
765
771
  MobileEnableSecureFilePreview: boolean;
766
772
  MobileAllowPdfLinkNavigation: boolean;
773
+ EnableIntuneMAM: boolean;
774
+ };
775
+ export type IntuneSettings = {
776
+ Enable: boolean;
777
+ TenantId?: string;
778
+ ClientId?: string;
779
+ AuthService?: string;
767
780
  };
768
781
  export type ClusterSettings = {
769
782
  Enable: boolean;
@@ -908,6 +921,7 @@ export type GuestAccountsSettings = {
908
921
  AllowEmailAccounts: boolean;
909
922
  EnforceMultifactorAuthentication: boolean;
910
923
  RestrictCreationToDomains: string;
924
+ EnableGuestMagicLink: boolean;
911
925
  };
912
926
  export type ImageProxySettings = {
913
927
  Enable: boolean;
@@ -986,6 +1000,7 @@ export type AdminConfig = {
986
1000
  LocalizationSettings: LocalizationSettings;
987
1001
  SamlSettings: SamlSettings;
988
1002
  NativeAppSettings: NativeAppSettings;
1003
+ IntuneSettings: IntuneSettings;
989
1004
  ClusterSettings: ClusterSettings;
990
1005
  MetricsSettings: MetricsSettings;
991
1006
  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;
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mattermost/types",
3
- "version": "11.2.0",
3
+ "version": "11.3.0",
4
4
  "description": "Shared type definitions used by the Mattermost web app",
5
5
  "keywords": [
6
6
  "mattermost"