@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.
@@ -0,0 +1,12 @@
1
+ export type Agent = {
2
+ id: string;
3
+ displayName: string;
4
+ username: string;
5
+ service_id: string;
6
+ service_type: string;
7
+ };
8
+ export type LLMService = {
9
+ id: string;
10
+ name: string;
11
+ type: string;
12
+ };
package/lib/agents.js ADDED
@@ -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/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;
@@ -98,6 +98,8 @@ export type OAuthApp = {
98
98
  'callback_urls': string[];
99
99
  'homepage': string;
100
100
  'is_trusted': boolean;
101
+ 'is_dynamically_registered'?: boolean;
102
+ 'is_public'?: boolean;
101
103
  };
102
104
  export type OutgoingOAuthConnection = {
103
105
  'id': string;
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.1.0",
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:mattermost/mattermost",
27
+ "url": "git+https://github.com/mattermost/mattermost.git",
28
28
  "directory": "webapp/platform/types"
29
29
  },
30
30
  "devDependencies": {