@mattermost/types 10.9.0 → 10.11.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.
package/lib/admin.d.ts CHANGED
@@ -125,3 +125,23 @@ export type SupportPacketContent = {
125
125
  selected: boolean;
126
126
  mandatory: boolean;
127
127
  };
128
+ export type LdapSampleEntry = {
129
+ dn: string;
130
+ username?: string;
131
+ email?: string;
132
+ first_name?: string;
133
+ last_name?: string;
134
+ id?: string;
135
+ display_name?: string;
136
+ available_attributes?: Record<string, string>;
137
+ };
138
+ export type LdapDiagnosticResult = {
139
+ test_name: string;
140
+ test_value: string;
141
+ total_count: number;
142
+ entries_with_value: number;
143
+ message?: string;
144
+ error?: string;
145
+ sample_results: LdapSampleEntry[];
146
+ };
147
+ export type TestLdapFiltersResponse = LdapDiagnosticResult[];
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
+ default_category_name?: string;
52
53
  };
53
54
  export type ServerChannel = Channel & {
54
55
  /**
package/lib/cloud.d.ts CHANGED
@@ -41,6 +41,7 @@ export type Subscription = {
41
41
  cancel_at?: number;
42
42
  will_renew?: string;
43
43
  simulated_current_time_ms?: number;
44
+ is_cloud_preview?: boolean;
44
45
  };
45
46
  export type Product = {
46
47
  id: string;
package/lib/config.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import type { ContentFlaggingEvent, NotificationTarget } from './content_flagging';
1
2
  export type ClientConfig = {
2
3
  AboutLink: string;
3
4
  AllowBannerDismissal: string;
@@ -109,6 +110,7 @@ export type ClientConfig = {
109
110
  EnableUserDeactivation: string;
110
111
  EnableUserTypingMessages: string;
111
112
  EnforceMultifactorAuthentication: string;
113
+ ExperimentalChannelCategorySorting: string;
112
114
  ExperimentalClientSideCertCheck: string;
113
115
  ExperimentalClientSideCertEnable: string;
114
116
  ExperimentalEnableAuthenticationTransfer: string;
@@ -218,6 +220,7 @@ export type ClientConfig = {
218
220
  UsersStatusAndProfileFetchingPollIntervalMilliseconds: string;
219
221
  YoutubeReferrerPolicy: 'true' | 'false';
220
222
  ScheduledPosts: string;
223
+ DeleteAccountLink: string;
221
224
  };
222
225
  export type License = {
223
226
  id: string;
@@ -399,6 +402,7 @@ export type ServiceSettings = {
399
402
  ScheduledPosts: boolean;
400
403
  EnableWebHubChannelIteration: boolean;
401
404
  FrameAncestors: string;
405
+ DeleteAccountLink: string;
402
406
  };
403
407
  export type TeamSettings = {
404
408
  SiteName: string;
@@ -507,7 +511,10 @@ export type ConnectedWorkspacesSettings = {
507
511
  EnableSharedChannels: boolean;
508
512
  EnableRemoteClusterService: boolean;
509
513
  DisableSharedChannelsStatusSync: boolean;
514
+ SyncUsersOnConnectionOpen: boolean;
515
+ GlobalUserSyncBatchSize: number;
510
516
  MaxPostsPerSync: number;
517
+ MemberSyncBatchSize: number;
511
518
  };
512
519
  export type FileSettings = {
513
520
  EnableFileAttachments: boolean;
@@ -683,6 +690,7 @@ export type LdapSettings = {
683
690
  LoginIdAttribute: string;
684
691
  PictureAttribute: string;
685
692
  SyncIntervalMinutes: number;
693
+ ReAddRemovedMembers: boolean;
686
694
  SkipCertificateVerification: boolean;
687
695
  PublicCertificateFile: string;
688
696
  PrivateKeyFile: string;
@@ -751,6 +759,8 @@ export type NativeAppSettings = {
751
759
  MobileEnableBiometrics: boolean;
752
760
  MobilePreventScreenCapture: boolean;
753
761
  MobileJailbreakProtection: boolean;
762
+ MobileEnableSecureFilePreview: boolean;
763
+ MobileAllowPdfLinkNavigation: boolean;
754
764
  };
755
765
  export type ClusterSettings = {
756
766
  Enable: boolean;
@@ -761,7 +771,7 @@ export type ClusterSettings = {
761
771
  AdvertiseAddress: string;
762
772
  UseIPAddress: boolean;
763
773
  EnableGossipCompression: boolean;
764
- EnableExperimentalGossipEncryption: boolean;
774
+ EnableGossipEncryption: boolean;
765
775
  ReadOnlyConfig: boolean;
766
776
  GossipPort: number;
767
777
  };
@@ -786,6 +796,7 @@ export type ExperimentalSettings = {
786
796
  DisableWakeUpReconnectHandler: boolean;
787
797
  UsersStatusAndProfileFetchingPollIntervalMilliseconds: number;
788
798
  YoutubeReferrerPolicy: boolean;
799
+ ExperimentalChannelCategorySorting: boolean;
789
800
  };
790
801
  export type AnalyticsSettings = {
791
802
  MaxUsersForStatistics: number;
@@ -847,6 +858,7 @@ export type DataRetentionSettings = {
847
858
  BoardsRetentionDays: number;
848
859
  TimeBetweenBatchesMilliseconds: number;
849
860
  RetentionIdsBatchSize: number;
861
+ PreservePinnedPosts: boolean;
850
862
  };
851
863
  export type MessageExportSettings = {
852
864
  EnableExport: boolean;
@@ -927,6 +939,32 @@ export type ExportSettings = {
927
939
  export type AccessControlSettings = {
928
940
  EnableAttributeBasedAccessControl: boolean;
929
941
  EnableChannelScopeAccessControl: boolean;
942
+ EnableUserManagedAttributes: boolean;
943
+ };
944
+ export type ContentFlaggingNotificationSettings = {
945
+ ReviewerSettings: ContentFlaggingReviewerSetting;
946
+ EventTargetMapping: Record<ContentFlaggingEvent, NotificationTarget[]>;
947
+ AdditionalSettings: ContentFlaggingAdditionalSettings;
948
+ };
949
+ export type TeamReviewerSetting = {
950
+ Enabled: boolean;
951
+ ReviewerIds: string[];
952
+ };
953
+ export type ContentFlaggingReviewerSetting = {
954
+ CommonReviewers: boolean;
955
+ CommonReviewerIds: string[];
956
+ TeamReviewersSetting: Record<string, TeamReviewerSetting>;
957
+ SystemAdminsAsReviewers: boolean;
958
+ TeamAdminsAsReviewers: boolean;
959
+ };
960
+ export type ContentFlaggingAdditionalSettings = {
961
+ Reasons: string[];
962
+ ReporterCommentRequired: boolean;
963
+ ReviewerCommentRequired: boolean;
964
+ HideFlaggedContent: boolean;
965
+ };
966
+ export type ContentFlaggingSettings = {
967
+ NotificationSettings: ContentFlaggingNotificationSettings;
930
968
  };
931
969
  export type AdminConfig = {
932
970
  ServiceSettings: ServiceSettings;
@@ -974,6 +1012,7 @@ export type AdminConfig = {
974
1012
  WranglerSettings: WranglerSettings;
975
1013
  ConnectedWorkspacesSettings: ConnectedWorkspacesSettings;
976
1014
  AccessControlSettings: AccessControlSettings;
1015
+ ContentFlaggingSettings: ContentFlaggingSettings;
977
1016
  };
978
1017
  export type ReplicaLagSetting = {
979
1018
  DataSource: string;
@@ -0,0 +1,2 @@
1
+ export type ContentFlaggingEvent = 'flagged' | 'assigned' | 'removed' | 'dismissed';
2
+ export type NotificationTarget = 'reviewers' | 'author' | 'reporter';
@@ -0,0 +1,4 @@
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 });
package/lib/general.d.ts CHANGED
@@ -8,6 +8,7 @@ export type GeneralState = {
8
8
  license: ClientLicense;
9
9
  serverVersion: string;
10
10
  customProfileAttributes: IDMappedObjects<UserPropertyField>;
11
+ cwsAvailability: 'pending' | 'available' | 'unavailable' | 'not_applicable';
11
12
  };
12
13
  export type SystemSetting = {
13
14
  name: string;
@@ -60,6 +60,9 @@ export type CommandArgs = {
60
60
  team_id?: string;
61
61
  root_id?: string;
62
62
  };
63
+ export type DialogArgs = {
64
+ channel_id: string;
65
+ };
63
66
  export type CommandResponse = {
64
67
  response_type: string;
65
68
  text: string;
@@ -120,6 +123,7 @@ export type IntegrationsState = {
120
123
  appsBotIDs: string[];
121
124
  systemCommands: IDMappedObjects<Command>;
122
125
  commands: IDMappedObjects<Command>;
126
+ dialogArguments?: DialogArgs;
123
127
  dialogTriggerId: string;
124
128
  dialog?: {
125
129
  url: string;
@@ -13,3 +13,14 @@ export type SharedChannelRemote = {
13
13
  last_post_create_at: number;
14
14
  last_post_create_id: string;
15
15
  };
16
+ export type RemoteClusterInfo = {
17
+ name: string;
18
+ display_name: string;
19
+ create_at: number;
20
+ delete_at: number;
21
+ last_ping_at: number;
22
+ };
23
+ export type SharedChannelsState = {
24
+ remotes: Record<string, RemoteClusterInfo[]>;
25
+ remotesByRemoteId: Record<string, RemoteClusterInfo>;
26
+ };
package/lib/store.d.ts CHANGED
@@ -20,6 +20,7 @@ import type { Role } from './roles';
20
20
  import type { ScheduledPostsState } from './schedule_post';
21
21
  import type { SchemesState } from './schemes';
22
22
  import type { SearchState } from './search';
23
+ import type { RemoteClusterInfo } from './shared_channels';
23
24
  import type { TeamsState } from './teams';
24
25
  import type { ThreadsState } from './threads';
25
26
  import type { Typing } from './typing';
@@ -68,6 +69,10 @@ export type GlobalState = {
68
69
  hostedCustomer: HostedCustomerState;
69
70
  usage: CloudUsage;
70
71
  scheduledPosts: ScheduledPostsState;
72
+ sharedChannels?: {
73
+ remotes?: Record<string, RemoteClusterInfo[]>;
74
+ remotesByRemoteId?: Record<string, RemoteClusterInfo>;
75
+ };
71
76
  };
72
77
  errors: any[];
73
78
  requests: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mattermost/types",
3
- "version": "10.9.0",
3
+ "version": "10.11.0",
4
4
  "description": "Shared type definitions used by the Mattermost web app",
5
5
  "keywords": [
6
6
  "mattermost"