@mattermost/types 9.11.0 → 10.1.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/channels.d.ts +2 -2
- package/lib/config.d.ts +15 -9
- package/lib/integrations.d.ts +5 -0
- package/lib/plugins.d.ts +10 -0
- package/lib/preferences.d.ts +1 -1
- package/lib/requests.d.ts +0 -1
- package/lib/users.d.ts +2 -2
- package/package.json +1 -1
package/lib/channels.d.ts
CHANGED
|
@@ -11,8 +11,8 @@ export type ChannelStats = {
|
|
|
11
11
|
export type ChannelNotifyProps = {
|
|
12
12
|
desktop_threads: 'default' | 'all' | 'mention' | 'none';
|
|
13
13
|
desktop: 'default' | 'all' | 'mention' | 'none';
|
|
14
|
-
desktop_sound: 'on' | 'off';
|
|
15
|
-
desktop_notification_sound?: 'Bing' | 'Crackle' | 'Down' | 'Hello' | 'Ripple' | 'Upstairs';
|
|
14
|
+
desktop_sound: 'default' | 'on' | 'off';
|
|
15
|
+
desktop_notification_sound?: 'default' | 'Bing' | 'Crackle' | 'Down' | 'Hello' | 'Ripple' | 'Upstairs';
|
|
16
16
|
email: 'default' | 'all' | 'mention' | 'none';
|
|
17
17
|
mark_unread: 'all' | 'mention';
|
|
18
18
|
push: 'default' | 'all' | 'mention' | 'none';
|
package/lib/config.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export type ClientConfig = {
|
|
|
8
8
|
AndroidLatestVersion: string;
|
|
9
9
|
AndroidMinVersion: string;
|
|
10
10
|
AppDownloadLink: string;
|
|
11
|
+
AppsPluginEnabled: string;
|
|
11
12
|
AsymmetricSigningPublicKey: string;
|
|
12
13
|
AvailableLocales: string;
|
|
13
14
|
BannerColor: string;
|
|
@@ -84,7 +85,6 @@ export type ClientConfig = {
|
|
|
84
85
|
EnableOutgoingWebhooks: string;
|
|
85
86
|
EnablePostIconOverride: string;
|
|
86
87
|
EnablePostUsernameOverride: string;
|
|
87
|
-
EnablePreviewFeatures: string;
|
|
88
88
|
EnablePreviewModeBanner: string;
|
|
89
89
|
EnablePublicLink: string;
|
|
90
90
|
EnableReliableWebSockets: string;
|
|
@@ -208,6 +208,7 @@ export type ClientConfig = {
|
|
|
208
208
|
ServiceEnvironment: string;
|
|
209
209
|
UniqueEmojiReactionLimitPerPost: string;
|
|
210
210
|
UsersStatusAndProfileFetchingPollIntervalMilliseconds: string;
|
|
211
|
+
YoutubeReferrerPolicy: 'true' | 'false';
|
|
211
212
|
};
|
|
212
213
|
export type License = {
|
|
213
214
|
id: string;
|
|
@@ -347,7 +348,6 @@ export type ServiceSettings = {
|
|
|
347
348
|
EnableUserStatuses: boolean;
|
|
348
349
|
ExperimentalEnableAuthenticationTransfer: boolean;
|
|
349
350
|
ClusterLogTimeoutMilliseconds: number;
|
|
350
|
-
EnablePreviewFeatures: boolean;
|
|
351
351
|
EnableTutorial: boolean;
|
|
352
352
|
EnableOnboardingFlow: boolean;
|
|
353
353
|
ExperimentalEnableDefaultChannelLeaveJoinMessages: boolean;
|
|
@@ -375,7 +375,6 @@ export type ServiceSettings = {
|
|
|
375
375
|
DebugSplit: boolean;
|
|
376
376
|
ManagedResourcePaths: string;
|
|
377
377
|
EnableCustomGroups: boolean;
|
|
378
|
-
SelfHostedPurchase: boolean;
|
|
379
378
|
AllowSyncedDrafts: boolean;
|
|
380
379
|
AllowPersistentNotifications: boolean;
|
|
381
380
|
AllowPersistentNotificationsForGuests: boolean;
|
|
@@ -385,6 +384,7 @@ export type ServiceSettings = {
|
|
|
385
384
|
UniqueEmojiReactionLimitPerPost: number;
|
|
386
385
|
RefreshPostStatsRunTime: string;
|
|
387
386
|
MaximumPayloadSizeBytes: number;
|
|
387
|
+
MaximumURLLength: number;
|
|
388
388
|
};
|
|
389
389
|
export type TeamSettings = {
|
|
390
390
|
SiteName: string;
|
|
@@ -447,7 +447,6 @@ export type LogSettings = {
|
|
|
447
447
|
EnableDiagnostics: boolean;
|
|
448
448
|
VerboseDiagnostics: boolean;
|
|
449
449
|
EnableSentry: boolean;
|
|
450
|
-
AdvancedLoggingConfig: string;
|
|
451
450
|
AdvancedLoggingJSON: Record<string, any>;
|
|
452
451
|
MaxFieldSize: number;
|
|
453
452
|
};
|
|
@@ -459,7 +458,6 @@ export type ExperimentalAuditSettings = {
|
|
|
459
458
|
FileMaxBackups: number;
|
|
460
459
|
FileCompress: boolean;
|
|
461
460
|
FileMaxQueueSize: number;
|
|
462
|
-
AdvancedLoggingConfig: string;
|
|
463
461
|
AdvancedLoggingJSON: Record<string, any>;
|
|
464
462
|
};
|
|
465
463
|
export type NotificationLogSettings = {
|
|
@@ -471,7 +469,6 @@ export type NotificationLogSettings = {
|
|
|
471
469
|
FileLevel: string;
|
|
472
470
|
FileJson: boolean;
|
|
473
471
|
FileLocation: string;
|
|
474
|
-
AdvancedLoggingConfig: string;
|
|
475
472
|
AdvancedLoggingJSON: Record<string, any>;
|
|
476
473
|
};
|
|
477
474
|
export type PasswordSettings = {
|
|
@@ -669,7 +666,6 @@ export type LdapSettings = {
|
|
|
669
666
|
LoginButtonColor: string;
|
|
670
667
|
LoginButtonBorderColor: string;
|
|
671
668
|
LoginButtonTextColor: string;
|
|
672
|
-
Trace: boolean;
|
|
673
669
|
};
|
|
674
670
|
export type ComplianceSettings = {
|
|
675
671
|
Enable: boolean;
|
|
@@ -741,6 +737,8 @@ export type MetricsSettings = {
|
|
|
741
737
|
Enable: boolean;
|
|
742
738
|
BlockProfileRate: number;
|
|
743
739
|
ListenAddress: string;
|
|
740
|
+
EnableClientMetrics: boolean;
|
|
741
|
+
EnableNotificationMetrics: boolean;
|
|
744
742
|
};
|
|
745
743
|
export type ExperimentalSettings = {
|
|
746
744
|
ClientSideCertEnable: boolean;
|
|
@@ -752,10 +750,19 @@ export type ExperimentalSettings = {
|
|
|
752
750
|
DisableAppBar: boolean;
|
|
753
751
|
DisableRefetchingOnBrowserFocus: boolean;
|
|
754
752
|
DelayChannelAutocomplete: boolean;
|
|
753
|
+
DisableWakeUpReconnectHandler: boolean;
|
|
754
|
+
UsersStatusAndProfileFetchingPollIntervalMilliseconds: number;
|
|
755
|
+
YoutubeReferrerPolicy: boolean;
|
|
755
756
|
};
|
|
756
757
|
export type AnalyticsSettings = {
|
|
757
758
|
MaxUsersForStatistics: number;
|
|
758
759
|
};
|
|
760
|
+
export type CacheSettings = {
|
|
761
|
+
CacheType: string;
|
|
762
|
+
RedisAddress: string;
|
|
763
|
+
RedisPassword: string;
|
|
764
|
+
RedisDB: number;
|
|
765
|
+
};
|
|
759
766
|
export type ElasticsearchSettings = {
|
|
760
767
|
ConnectionURL: string;
|
|
761
768
|
Backend: string;
|
|
@@ -828,7 +835,6 @@ export type JobSettings = {
|
|
|
828
835
|
CleanupJobsThresholdDays: number;
|
|
829
836
|
CleanupConfigThresholdDays: number;
|
|
830
837
|
};
|
|
831
|
-
export type ProductSettings = Record<string, never>;
|
|
832
838
|
export type PluginSettings = {
|
|
833
839
|
Enable: boolean;
|
|
834
840
|
EnableUploads: boolean;
|
|
@@ -909,12 +915,12 @@ export type AdminConfig = {
|
|
|
909
915
|
MetricsSettings: MetricsSettings;
|
|
910
916
|
ExperimentalSettings: ExperimentalSettings;
|
|
911
917
|
AnalyticsSettings: AnalyticsSettings;
|
|
918
|
+
CacheSettings: CacheSettings;
|
|
912
919
|
ElasticsearchSettings: ElasticsearchSettings;
|
|
913
920
|
BleveSettings: BleveSettings;
|
|
914
921
|
DataRetentionSettings: DataRetentionSettings;
|
|
915
922
|
MessageExportSettings: MessageExportSettings;
|
|
916
923
|
JobSettings: JobSettings;
|
|
917
|
-
ProductSettings: ProductSettings;
|
|
918
924
|
PluginSettings: PluginSettings;
|
|
919
925
|
DisplaySettings: DisplaySettings;
|
|
920
926
|
GuestAccountsSettings: GuestAccountsSettings;
|
package/lib/integrations.d.ts
CHANGED
|
@@ -14,6 +14,10 @@ export type IncomingWebhook = {
|
|
|
14
14
|
icon_url: string;
|
|
15
15
|
channel_locked: boolean;
|
|
16
16
|
};
|
|
17
|
+
export type IncomingWebhooksWithCount = {
|
|
18
|
+
incoming_webhooks: IncomingWebhook[];
|
|
19
|
+
total_count: number;
|
|
20
|
+
};
|
|
17
21
|
export type OutgoingWebhook = {
|
|
18
22
|
id: string;
|
|
19
23
|
token: string;
|
|
@@ -108,6 +112,7 @@ export type OutgoingOAuthConnection = {
|
|
|
108
112
|
};
|
|
109
113
|
export type IntegrationsState = {
|
|
110
114
|
incomingHooks: IDMappedObjects<IncomingWebhook>;
|
|
115
|
+
incomingHooksTotalCount: number;
|
|
111
116
|
outgoingHooks: IDMappedObjects<OutgoingWebhook>;
|
|
112
117
|
oauthApps: IDMappedObjects<OAuthApp>;
|
|
113
118
|
outgoingOAuthConnections: IDMappedObjects<OutgoingOAuthConnection>;
|
package/lib/plugins.d.ts
CHANGED
|
@@ -37,6 +37,16 @@ export type PluginSettingsSchema = {
|
|
|
37
37
|
header: string;
|
|
38
38
|
footer: string;
|
|
39
39
|
settings: PluginSetting[];
|
|
40
|
+
sections?: PluginSettingSection[];
|
|
41
|
+
};
|
|
42
|
+
export type PluginSettingSection = {
|
|
43
|
+
key: string;
|
|
44
|
+
title?: string;
|
|
45
|
+
subtitle?: string;
|
|
46
|
+
settings: PluginSetting[];
|
|
47
|
+
header?: string;
|
|
48
|
+
footer?: string;
|
|
49
|
+
custom?: boolean;
|
|
40
50
|
};
|
|
41
51
|
export type PluginSetting = {
|
|
42
52
|
key: string;
|
package/lib/preferences.d.ts
CHANGED
package/lib/requests.d.ts
CHANGED
package/lib/users.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import type { Team } from './teams';
|
|
|
6
6
|
import type { IDMappedObjects, RelationOneToManyUnique, RelationOneToOne } from './utilities';
|
|
7
7
|
export type UserNotifyProps = {
|
|
8
8
|
desktop: 'default' | 'all' | 'mention' | 'none';
|
|
9
|
-
desktop_sound: 'true' | 'false';
|
|
9
|
+
desktop_sound: 'default' | 'true' | 'false';
|
|
10
10
|
calls_desktop_sound: 'true' | 'false';
|
|
11
11
|
email: 'true' | 'false';
|
|
12
12
|
mark_unread: 'all' | 'mention';
|
|
@@ -17,7 +17,7 @@ export type UserNotifyProps = {
|
|
|
17
17
|
channel: 'true' | 'false';
|
|
18
18
|
mention_keys: string;
|
|
19
19
|
highlight_keys: string;
|
|
20
|
-
desktop_notification_sound?: 'Bing' | 'Crackle' | 'Down' | 'Hello' | 'Ripple' | 'Upstairs';
|
|
20
|
+
desktop_notification_sound?: 'default' | 'Bing' | 'Crackle' | 'Down' | 'Hello' | 'Ripple' | 'Upstairs';
|
|
21
21
|
calls_notification_sound?: 'Dynamic' | 'Calm' | 'Urgent' | 'Cheerful';
|
|
22
22
|
desktop_threads?: 'default' | 'all' | 'mention' | 'none';
|
|
23
23
|
email_threads?: 'default' | 'all' | 'mention' | 'none';
|