@mattermost/types 11.1.0 → 11.2.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/agents.d.ts +12 -0
- package/lib/agents.js +4 -0
- package/lib/config.d.ts +15 -1
- package/lib/integrations.d.ts +2 -0
- package/lib/store.d.ts +9 -0
- package/package.json +2 -2
package/lib/agents.d.ts
ADDED
package/lib/agents.js
ADDED
package/lib/config.d.ts
CHANGED
|
@@ -572,7 +572,7 @@ export type EmailSettings = {
|
|
|
572
572
|
SendPushNotifications: boolean;
|
|
573
573
|
PushNotificationServer: string;
|
|
574
574
|
PushNotificationServerType: 'off' | 'mhpns' | 'mtpns' | 'custom';
|
|
575
|
-
PushNotificationServerLocation: 'us' | 'de';
|
|
575
|
+
PushNotificationServerLocation: 'global' | 'us' | 'de' | 'jp';
|
|
576
576
|
PushNotificationContents: string;
|
|
577
577
|
PushNotificationBuffer: number;
|
|
578
578
|
EnableEmailBatching: boolean;
|
|
@@ -704,6 +704,19 @@ export type LocalizationSettings = {
|
|
|
704
704
|
AvailableLocales: string;
|
|
705
705
|
EnableExperimentalLocales: boolean;
|
|
706
706
|
};
|
|
707
|
+
export type AutoTranslationSettings = {
|
|
708
|
+
Enable: boolean;
|
|
709
|
+
Provider: '' | 'libretranslate';
|
|
710
|
+
LibreTranslate: {
|
|
711
|
+
URL: string;
|
|
712
|
+
APIKey: string;
|
|
713
|
+
};
|
|
714
|
+
TimeoutMs: {
|
|
715
|
+
NewPost: number;
|
|
716
|
+
Fetch: number;
|
|
717
|
+
Notification: number;
|
|
718
|
+
};
|
|
719
|
+
};
|
|
707
720
|
export type SamlSettings = {
|
|
708
721
|
Enable: boolean;
|
|
709
722
|
EnableSyncWithLdap: boolean;
|
|
@@ -994,6 +1007,7 @@ export type AdminConfig = {
|
|
|
994
1007
|
ConnectedWorkspacesSettings: ConnectedWorkspacesSettings;
|
|
995
1008
|
AccessControlSettings: AccessControlSettings;
|
|
996
1009
|
ContentFlaggingSettings: ContentFlaggingSettings;
|
|
1010
|
+
AutoTranslationSettings: AutoTranslationSettings;
|
|
997
1011
|
};
|
|
998
1012
|
export type ReplicaLagSetting = {
|
|
999
1013
|
DataSource: string;
|
package/lib/integrations.d.ts
CHANGED
package/lib/store.d.ts
CHANGED
|
@@ -36,6 +36,15 @@ export type GlobalState = {
|
|
|
36
36
|
channelBookmarks: ChannelBookmarksState;
|
|
37
37
|
posts: PostsState;
|
|
38
38
|
threads: ThreadsState;
|
|
39
|
+
agents: {
|
|
40
|
+
agents: Array<{
|
|
41
|
+
id: string;
|
|
42
|
+
displayName: string;
|
|
43
|
+
username: string;
|
|
44
|
+
service_id: string;
|
|
45
|
+
service_type: string;
|
|
46
|
+
}>;
|
|
47
|
+
};
|
|
39
48
|
bots: {
|
|
40
49
|
accounts: Record<string, Bot>;
|
|
41
50
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mattermost/types",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.2.0",
|
|
4
4
|
"description": "Shared type definitions used by the Mattermost web app",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mattermost"
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"repository": {
|
|
26
26
|
"type": "git",
|
|
27
|
-
"url": "github
|
|
27
|
+
"url": "git+https://github.com/mattermost/mattermost.git",
|
|
28
28
|
"directory": "webapp/platform/types"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|