@mattermost/types 11.3.0 → 11.5.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/channel_bookmarks.d.ts +4 -0
- package/lib/channels.d.ts +2 -0
- package/lib/cloud.d.ts +0 -4
- package/lib/config.d.ts +17 -11
- package/lib/errors.d.ts +1 -0
- package/lib/integration_actions.d.ts +2 -1
- package/lib/integration_actions.js +3 -0
- package/lib/integrations.d.ts +7 -7
- package/lib/posts.d.ts +9 -1
- package/lib/properties.d.ts +3 -0
- package/lib/recaps.d.ts +34 -0
- package/lib/recaps.js +12 -0
- package/lib/store.d.ts +11 -0
- package/lib/users.d.ts +0 -1
- package/package.json +1 -1
|
@@ -40,6 +40,10 @@ export type ChannelBookmarkPatch = {
|
|
|
40
40
|
image_url?: string;
|
|
41
41
|
emoji?: string;
|
|
42
42
|
};
|
|
43
|
+
export type UpdateChannelBookmarkResponse = {
|
|
44
|
+
updated: ChannelBookmark;
|
|
45
|
+
deleted: ChannelBookmark;
|
|
46
|
+
};
|
|
43
47
|
export type ChannelBookmarkWithFileInfo = ChannelBookmark & {
|
|
44
48
|
file: FileInfo;
|
|
45
49
|
};
|
package/lib/channels.d.ts
CHANGED
|
@@ -51,6 +51,7 @@ export type Channel = {
|
|
|
51
51
|
policy_enforced?: boolean;
|
|
52
52
|
policy_is_active?: boolean;
|
|
53
53
|
default_category_name?: string;
|
|
54
|
+
autotranslation?: boolean;
|
|
54
55
|
};
|
|
55
56
|
export type ServerChannel = Channel & {
|
|
56
57
|
/**
|
|
@@ -101,6 +102,7 @@ export type ChannelMembership = {
|
|
|
101
102
|
scheme_user: boolean;
|
|
102
103
|
scheme_admin: boolean;
|
|
103
104
|
post_root_id?: string;
|
|
105
|
+
autotranslation_disabled?: boolean;
|
|
104
106
|
};
|
|
105
107
|
export type ChannelUnread = {
|
|
106
108
|
channel_id: string;
|
package/lib/cloud.d.ts
CHANGED
|
@@ -163,10 +163,6 @@ export type TeamsUsage = {
|
|
|
163
163
|
export type ValidBusinessEmail = {
|
|
164
164
|
is_valid: boolean;
|
|
165
165
|
};
|
|
166
|
-
export interface NewsletterRequestBody {
|
|
167
|
-
email: string;
|
|
168
|
-
subscribed_content: string;
|
|
169
|
-
}
|
|
170
166
|
export declare const areShippingDetailsValid: (address: Address | null | undefined) => boolean;
|
|
171
167
|
export type Feedback = {
|
|
172
168
|
reason: string;
|
package/lib/config.d.ts
CHANGED
|
@@ -229,6 +229,9 @@ export type ClientConfig = {
|
|
|
229
229
|
EnableAttributeBasedAccessControl: string;
|
|
230
230
|
EnableChannelScopeAccessControl: string;
|
|
231
231
|
EnableUserManagedAttributes: string;
|
|
232
|
+
AutoTranslationLanguages: string;
|
|
233
|
+
EnableAutoTranslation: string;
|
|
234
|
+
RestrictDMAndGMAutotranslation: string;
|
|
232
235
|
};
|
|
233
236
|
export type License = {
|
|
234
237
|
id: string;
|
|
@@ -315,6 +318,8 @@ export type ServiceSettings = {
|
|
|
315
318
|
GoroutineHealthThreshold: number;
|
|
316
319
|
GoogleDeveloperKey: string;
|
|
317
320
|
EnableOAuthServiceProvider: boolean;
|
|
321
|
+
EnableDynamicClientRegistration: boolean;
|
|
322
|
+
DCRRedirectURIAllowlist: string[];
|
|
318
323
|
EnableIncomingWebhooks: boolean;
|
|
319
324
|
EnableOutgoingWebhooks: boolean;
|
|
320
325
|
EnableOutgoingOAuthConnections: boolean;
|
|
@@ -402,6 +407,10 @@ export type ServiceSettings = {
|
|
|
402
407
|
PersistentNotificationIntervalMinutes: number;
|
|
403
408
|
PersistentNotificationMaxCount: number;
|
|
404
409
|
PersistentNotificationMaxRecipients: number;
|
|
410
|
+
EnableBurnOnRead: boolean;
|
|
411
|
+
BurnOnReadDurationSeconds: number;
|
|
412
|
+
BurnOnReadMaximumTimeToLiveSeconds: number;
|
|
413
|
+
BurnOnReadSchedulerFrequencySeconds: number;
|
|
405
414
|
UniqueEmojiReactionLimitPerPost: number;
|
|
406
415
|
RefreshPostStatsRunTime: string;
|
|
407
416
|
MaximumPayloadSizeBytes: number;
|
|
@@ -712,16 +721,18 @@ export type LocalizationSettings = {
|
|
|
712
721
|
};
|
|
713
722
|
export type AutoTranslationSettings = {
|
|
714
723
|
Enable: boolean;
|
|
715
|
-
|
|
724
|
+
TargetLanguages: string[];
|
|
725
|
+
Workers: number;
|
|
726
|
+
Provider: '' | 'libretranslate' | 'agents';
|
|
716
727
|
LibreTranslate: {
|
|
717
728
|
URL: string;
|
|
718
729
|
APIKey: string;
|
|
719
730
|
};
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
Fetch: number;
|
|
723
|
-
Notification: number;
|
|
731
|
+
Agents?: {
|
|
732
|
+
LLMServiceID: string;
|
|
724
733
|
};
|
|
734
|
+
TimeoutMs: number;
|
|
735
|
+
RestrictDMAndGM: boolean;
|
|
725
736
|
};
|
|
726
737
|
export type SamlSettings = {
|
|
727
738
|
Enable: boolean;
|
|
@@ -800,6 +811,7 @@ export type MetricsSettings = {
|
|
|
800
811
|
ClientSideUserIds: string[];
|
|
801
812
|
};
|
|
802
813
|
export type ExperimentalSettings = {
|
|
814
|
+
ClientSideCertEnable: boolean;
|
|
803
815
|
LinkMetadataTimeoutMilliseconds: number;
|
|
804
816
|
RestrictSystemAdmin: boolean;
|
|
805
817
|
EnableSharedChannels: boolean;
|
|
@@ -1035,12 +1047,6 @@ export type EnvironmentConfigSettings<T> = {
|
|
|
1035
1047
|
export type EnvironmentConfig = {
|
|
1036
1048
|
[P in keyof AdminConfig]: EnvironmentConfigSettings<AdminConfig[P]>;
|
|
1037
1049
|
};
|
|
1038
|
-
export type WarnMetricStatus = {
|
|
1039
|
-
id: string;
|
|
1040
|
-
limit: number;
|
|
1041
|
-
acked: boolean;
|
|
1042
|
-
store_status: string;
|
|
1043
|
-
};
|
|
1044
1050
|
export declare enum CollapsedThreads {
|
|
1045
1051
|
DISABLED = "disabled",
|
|
1046
1052
|
DEFAULT_ON = "default_on",
|
package/lib/errors.d.ts
CHANGED
|
@@ -20,6 +20,9 @@ function isPostAction(v) {
|
|
|
20
20
|
if ('disabled' in v && typeof v.disabled !== 'boolean') {
|
|
21
21
|
return false;
|
|
22
22
|
}
|
|
23
|
+
if ('tooltip' in v && typeof v.tooltip !== 'string') {
|
|
24
|
+
return false;
|
|
25
|
+
}
|
|
23
26
|
if ('style' in v && typeof v.style !== 'string') {
|
|
24
27
|
return false;
|
|
25
28
|
}
|
package/lib/integrations.d.ts
CHANGED
|
@@ -127,13 +127,14 @@ export type IntegrationsState = {
|
|
|
127
127
|
commands: IDMappedObjects<Command>;
|
|
128
128
|
dialogArguments?: DialogArgs;
|
|
129
129
|
dialogTriggerId: string;
|
|
130
|
-
dialog?:
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
130
|
+
dialog?: OpenDialogRequest;
|
|
131
|
+
};
|
|
132
|
+
export type OpenDialogRequest = {
|
|
133
|
+
trigger_id: string;
|
|
134
|
+
url: string;
|
|
135
|
+
dialog: Dialog;
|
|
135
136
|
};
|
|
136
|
-
type Dialog = {
|
|
137
|
+
export type Dialog = {
|
|
137
138
|
callback_id?: string;
|
|
138
139
|
elements?: DialogElement[];
|
|
139
140
|
title: string;
|
|
@@ -186,4 +187,3 @@ export type SubmitDialogResponse = {
|
|
|
186
187
|
type?: string;
|
|
187
188
|
form?: Dialog;
|
|
188
189
|
};
|
|
189
|
-
export {};
|
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' | 'burn_on_read' | '';
|
|
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' | 'system_autotranslation' | 'burn_on_read' | '';
|
|
9
9
|
export type PostEmbedType = 'image' | 'link' | 'message_attachment' | 'opengraph' | 'permalink';
|
|
10
10
|
export type PostEmbed = {
|
|
11
11
|
type: PostEmbedType;
|
|
@@ -28,6 +28,13 @@ export type PostPriorityMetadata = {
|
|
|
28
28
|
requested_ack?: boolean;
|
|
29
29
|
persistent_notifications?: boolean;
|
|
30
30
|
};
|
|
31
|
+
export type PostTranslation = {
|
|
32
|
+
object?: {
|
|
33
|
+
message: string;
|
|
34
|
+
};
|
|
35
|
+
state: 'ready' | 'skipped' | 'processing' | 'unavailable';
|
|
36
|
+
source_lang?: string;
|
|
37
|
+
};
|
|
31
38
|
export type PostMetadata = {
|
|
32
39
|
embeds: PostEmbed[];
|
|
33
40
|
emojis: CustomEmoji[];
|
|
@@ -36,6 +43,7 @@ export type PostMetadata = {
|
|
|
36
43
|
reactions?: Reaction[];
|
|
37
44
|
priority?: PostPriorityMetadata;
|
|
38
45
|
acknowledgements?: PostAcknowledgement[];
|
|
46
|
+
translations?: Record<string, PostTranslation>;
|
|
39
47
|
expire_at?: number;
|
|
40
48
|
recipients?: string[];
|
|
41
49
|
};
|
package/lib/properties.d.ts
CHANGED
|
@@ -48,6 +48,9 @@ export type UserPropertyField = PropertyField & {
|
|
|
48
48
|
ldap?: string;
|
|
49
49
|
saml?: string;
|
|
50
50
|
managed?: string;
|
|
51
|
+
protected?: boolean;
|
|
52
|
+
source_plugin_id?: string;
|
|
53
|
+
access_mode?: '' | 'source_only' | 'shared_only';
|
|
51
54
|
};
|
|
52
55
|
};
|
|
53
56
|
export type SelectPropertyField = PropertyField & {
|
package/lib/recaps.d.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export type Recap = {
|
|
2
|
+
id: string;
|
|
3
|
+
user_id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
create_at: number;
|
|
6
|
+
update_at: number;
|
|
7
|
+
delete_at: number;
|
|
8
|
+
read_at: number;
|
|
9
|
+
total_message_count: number;
|
|
10
|
+
status: RecapStatus;
|
|
11
|
+
bot_id: string;
|
|
12
|
+
channels?: RecapChannel[];
|
|
13
|
+
};
|
|
14
|
+
export type RecapChannel = {
|
|
15
|
+
id: string;
|
|
16
|
+
recap_id: string;
|
|
17
|
+
channel_id: string;
|
|
18
|
+
channel_name: string;
|
|
19
|
+
highlights: string[];
|
|
20
|
+
action_items: string[];
|
|
21
|
+
source_post_ids: string[];
|
|
22
|
+
create_at: number;
|
|
23
|
+
};
|
|
24
|
+
export type CreateRecapRequest = {
|
|
25
|
+
title: string;
|
|
26
|
+
channel_ids: string[];
|
|
27
|
+
agent_id: string;
|
|
28
|
+
};
|
|
29
|
+
export declare enum RecapStatus {
|
|
30
|
+
PENDING = "pending",
|
|
31
|
+
PROCESSING = "processing",
|
|
32
|
+
COMPLETED = "completed",
|
|
33
|
+
FAILED = "failed"
|
|
34
|
+
}
|
package/lib/recaps.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
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 });
|
|
5
|
+
exports.RecapStatus = void 0;
|
|
6
|
+
var RecapStatus;
|
|
7
|
+
(function (RecapStatus) {
|
|
8
|
+
RecapStatus["PENDING"] = "pending";
|
|
9
|
+
RecapStatus["PROCESSING"] = "processing";
|
|
10
|
+
RecapStatus["COMPLETED"] = "completed";
|
|
11
|
+
RecapStatus["FAILED"] = "failed";
|
|
12
|
+
})(RecapStatus || (exports.RecapStatus = RecapStatus = {}));
|
package/lib/store.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { AdminState } from './admin';
|
|
2
|
+
import type { LLMService } from './agents';
|
|
2
3
|
import type { AppsState } from './apps';
|
|
3
4
|
import type { Bot } from './bots';
|
|
4
5
|
import type { ChannelBookmarksState } from './channel_bookmarks';
|
|
@@ -16,6 +17,7 @@ import type { JobsState } from './jobs';
|
|
|
16
17
|
import type { LimitsState } from './limits';
|
|
17
18
|
import type { PostsState } from './posts';
|
|
18
19
|
import type { PreferenceType } from './preferences';
|
|
20
|
+
import type { Recap } from './recaps';
|
|
19
21
|
import type { AdminRequestsStatuses, ChannelsRequestsStatuses, FilesRequestsStatuses, GeneralRequestsStatuses, PostsRequestsStatuses, RolesRequestsStatuses, TeamsRequestsStatuses, UsersRequestsStatuses } from './requests';
|
|
20
22
|
import type { Role } from './roles';
|
|
21
23
|
import type { ScheduledPostsState } from './schedule_post';
|
|
@@ -36,6 +38,10 @@ export type GlobalState = {
|
|
|
36
38
|
channelBookmarks: ChannelBookmarksState;
|
|
37
39
|
posts: PostsState;
|
|
38
40
|
threads: ThreadsState;
|
|
41
|
+
recaps: {
|
|
42
|
+
byId: Record<string, Recap>;
|
|
43
|
+
allIds: string[];
|
|
44
|
+
};
|
|
39
45
|
agents: {
|
|
40
46
|
agents: Array<{
|
|
41
47
|
id: string;
|
|
@@ -44,6 +50,11 @@ export type GlobalState = {
|
|
|
44
50
|
service_id: string;
|
|
45
51
|
service_type: string;
|
|
46
52
|
}>;
|
|
53
|
+
llmServices: LLMService[];
|
|
54
|
+
agentsStatus: {
|
|
55
|
+
available: boolean;
|
|
56
|
+
reason?: string;
|
|
57
|
+
};
|
|
47
58
|
};
|
|
48
59
|
bots: {
|
|
49
60
|
accounts: Record<string, Bot>;
|
package/lib/users.d.ts
CHANGED
|
@@ -70,7 +70,6 @@ export type UsersState = {
|
|
|
70
70
|
profiles: IDMappedObjects<UserProfile>;
|
|
71
71
|
profilesInTeam: RelationOneToManyUnique<Team, UserProfile>;
|
|
72
72
|
profilesNotInTeam: RelationOneToManyUnique<Team, UserProfile>;
|
|
73
|
-
profilesWithoutTeam: Set<string>;
|
|
74
73
|
profilesInChannel: RelationOneToManyUnique<Channel, UserProfile>;
|
|
75
74
|
profilesNotInChannel: RelationOneToManyUnique<Channel, UserProfile>;
|
|
76
75
|
profilesInGroup: RelationOneToManyUnique<Group, UserProfile>;
|