@mattermost/types 11.1.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.
- package/lib/access_control.d.ts +4 -0
- package/lib/agents.d.ts +12 -0
- package/lib/agents.js +4 -0
- package/lib/channels.d.ts +1 -0
- package/lib/config.d.ts +30 -1
- package/lib/drafts.d.ts +2 -1
- package/lib/integrations.d.ts +2 -0
- package/lib/plugins.d.ts +1 -0
- package/lib/posts.d.ts +3 -1
- package/lib/schedule_post.js +2 -1
- package/lib/store.d.ts +9 -0
- package/package.json +2 -2
package/lib/access_control.d.ts
CHANGED
package/lib/agents.d.ts
ADDED
package/lib/agents.js
ADDED
package/lib/channels.d.ts
CHANGED
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;
|
|
@@ -572,7 +578,7 @@ export type EmailSettings = {
|
|
|
572
578
|
SendPushNotifications: boolean;
|
|
573
579
|
PushNotificationServer: string;
|
|
574
580
|
PushNotificationServerType: 'off' | 'mhpns' | 'mtpns' | 'custom';
|
|
575
|
-
PushNotificationServerLocation: 'us' | 'de';
|
|
581
|
+
PushNotificationServerLocation: 'global' | 'us' | 'de' | 'jp';
|
|
576
582
|
PushNotificationContents: string;
|
|
577
583
|
PushNotificationBuffer: number;
|
|
578
584
|
EnableEmailBatching: boolean;
|
|
@@ -704,6 +710,19 @@ export type LocalizationSettings = {
|
|
|
704
710
|
AvailableLocales: string;
|
|
705
711
|
EnableExperimentalLocales: boolean;
|
|
706
712
|
};
|
|
713
|
+
export type AutoTranslationSettings = {
|
|
714
|
+
Enable: boolean;
|
|
715
|
+
Provider: '' | 'libretranslate';
|
|
716
|
+
LibreTranslate: {
|
|
717
|
+
URL: string;
|
|
718
|
+
APIKey: string;
|
|
719
|
+
};
|
|
720
|
+
TimeoutMs: {
|
|
721
|
+
NewPost: number;
|
|
722
|
+
Fetch: number;
|
|
723
|
+
Notification: number;
|
|
724
|
+
};
|
|
725
|
+
};
|
|
707
726
|
export type SamlSettings = {
|
|
708
727
|
Enable: boolean;
|
|
709
728
|
EnableSyncWithLdap: boolean;
|
|
@@ -751,6 +770,13 @@ export type NativeAppSettings = {
|
|
|
751
770
|
MobileJailbreakProtection: boolean;
|
|
752
771
|
MobileEnableSecureFilePreview: boolean;
|
|
753
772
|
MobileAllowPdfLinkNavigation: boolean;
|
|
773
|
+
EnableIntuneMAM: boolean;
|
|
774
|
+
};
|
|
775
|
+
export type IntuneSettings = {
|
|
776
|
+
Enable: boolean;
|
|
777
|
+
TenantId?: string;
|
|
778
|
+
ClientId?: string;
|
|
779
|
+
AuthService?: string;
|
|
754
780
|
};
|
|
755
781
|
export type ClusterSettings = {
|
|
756
782
|
Enable: boolean;
|
|
@@ -895,6 +921,7 @@ export type GuestAccountsSettings = {
|
|
|
895
921
|
AllowEmailAccounts: boolean;
|
|
896
922
|
EnforceMultifactorAuthentication: boolean;
|
|
897
923
|
RestrictCreationToDomains: string;
|
|
924
|
+
EnableGuestMagicLink: boolean;
|
|
898
925
|
};
|
|
899
926
|
export type ImageProxySettings = {
|
|
900
927
|
Enable: boolean;
|
|
@@ -973,6 +1000,7 @@ export type AdminConfig = {
|
|
|
973
1000
|
LocalizationSettings: LocalizationSettings;
|
|
974
1001
|
SamlSettings: SamlSettings;
|
|
975
1002
|
NativeAppSettings: NativeAppSettings;
|
|
1003
|
+
IntuneSettings: IntuneSettings;
|
|
976
1004
|
ClusterSettings: ClusterSettings;
|
|
977
1005
|
MetricsSettings: MetricsSettings;
|
|
978
1006
|
ExperimentalSettings: ExperimentalSettings;
|
|
@@ -994,6 +1022,7 @@ export type AdminConfig = {
|
|
|
994
1022
|
ConnectedWorkspacesSettings: ConnectedWorkspacesSettings;
|
|
995
1023
|
AccessControlSettings: AccessControlSettings;
|
|
996
1024
|
ContentFlaggingSettings: ContentFlaggingSettings;
|
|
1025
|
+
AutoTranslationSettings: AutoTranslationSettings;
|
|
997
1026
|
};
|
|
998
1027
|
export type ReplicaLagSetting = {
|
|
999
1028
|
DataSource: string;
|
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/integrations.d.ts
CHANGED
package/lib/plugins.d.ts
CHANGED
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;
|
package/lib/schedule_post.js
CHANGED
|
@@ -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/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.3.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": {
|