@mattermost/types 9.0.0 → 9.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/config.d.ts +27 -5
- package/lib/groups.d.ts +16 -6
- package/lib/posts.d.ts +0 -1
- package/lib/store.d.ts +0 -2
- package/lib/utilities.d.ts +1 -0
- package/package.json +1 -1
- package/lib/gifs.d.ts +0 -152
- package/lib/gifs.js +0 -4
package/lib/config.d.ts
CHANGED
|
@@ -65,6 +65,7 @@ export declare type ClientConfig = {
|
|
|
65
65
|
EnableGifPicker: string;
|
|
66
66
|
EnableGuestAccounts: string;
|
|
67
67
|
EnableIncomingWebhooks: string;
|
|
68
|
+
EnableJoinLeaveMessageByDefault: string;
|
|
68
69
|
EnableLatex: string;
|
|
69
70
|
EnableInlineLatex: string;
|
|
70
71
|
EnableLdap: string;
|
|
@@ -114,10 +115,7 @@ export declare type ClientConfig = {
|
|
|
114
115
|
FileLevel: string;
|
|
115
116
|
FeatureFlagAppsEnabled: string;
|
|
116
117
|
FeatureFlagCallsEnabled: string;
|
|
117
|
-
FeatureFlagGraphQL: string;
|
|
118
118
|
ForgotPasswordLink: string;
|
|
119
|
-
GfycatAPIKey: string;
|
|
120
|
-
GfycatAPISecret: string;
|
|
121
119
|
GiphySdkKey: string;
|
|
122
120
|
GoogleDeveloperKey: string;
|
|
123
121
|
GuestAccountsEnforceMultifactorAuthentication: string;
|
|
@@ -323,8 +321,6 @@ export declare type ServiceSettings = {
|
|
|
323
321
|
EnableCustomEmoji: boolean;
|
|
324
322
|
EnableEmojiPicker: boolean;
|
|
325
323
|
EnableGifPicker: boolean;
|
|
326
|
-
GfycatAPIKey: string;
|
|
327
|
-
GfycatAPISecret: string;
|
|
328
324
|
GiphySdkKey: string;
|
|
329
325
|
PostEditTimeLimit: number;
|
|
330
326
|
TimeBetweenUserTypingUpdatesMilliseconds: number;
|
|
@@ -395,6 +391,7 @@ export declare type TeamSettings = {
|
|
|
395
391
|
ExperimentalPrimaryTeam: string;
|
|
396
392
|
ExperimentalDefaultChannels: string[];
|
|
397
393
|
EnableLastActiveTime: boolean;
|
|
394
|
+
EnableJoinLeaveMessageByDefault: boolean;
|
|
398
395
|
};
|
|
399
396
|
export declare type ClientRequirements = {
|
|
400
397
|
AndroidLatestVersion: string;
|
|
@@ -417,6 +414,7 @@ export declare type SqlSettings = {
|
|
|
417
414
|
DisableDatabaseSearch: boolean;
|
|
418
415
|
MigrationsStatementTimeoutSeconds: number;
|
|
419
416
|
ReplicaLagSettings: ReplicaLagSetting[];
|
|
417
|
+
ReplicaMonitorIntervalSeconds: number;
|
|
420
418
|
};
|
|
421
419
|
export declare type LogSettings = {
|
|
422
420
|
EnableConsole: boolean;
|
|
@@ -432,6 +430,7 @@ export declare type LogSettings = {
|
|
|
432
430
|
VerboseDiagnostics: boolean;
|
|
433
431
|
EnableSentry: boolean;
|
|
434
432
|
AdvancedLoggingConfig: string;
|
|
433
|
+
AdvancedLoggingJSON: Record<string, any>;
|
|
435
434
|
};
|
|
436
435
|
export declare type ExperimentalAuditSettings = {
|
|
437
436
|
FileEnabled: boolean;
|
|
@@ -442,6 +441,7 @@ export declare type ExperimentalAuditSettings = {
|
|
|
442
441
|
FileCompress: boolean;
|
|
443
442
|
FileMaxQueueSize: number;
|
|
444
443
|
AdvancedLoggingConfig: string;
|
|
444
|
+
AdvancedLoggingJSON: Record<string, any>;
|
|
445
445
|
};
|
|
446
446
|
export declare type NotificationLogSettings = {
|
|
447
447
|
EnableConsole: boolean;
|
|
@@ -453,6 +453,7 @@ export declare type NotificationLogSettings = {
|
|
|
453
453
|
FileJson: boolean;
|
|
454
454
|
FileLocation: string;
|
|
455
455
|
AdvancedLoggingConfig: string;
|
|
456
|
+
AdvancedLoggingJSON: Record<string, any>;
|
|
456
457
|
};
|
|
457
458
|
export declare type PasswordSettings = {
|
|
458
459
|
MinimumLength: number;
|
|
@@ -487,6 +488,21 @@ export declare type FileSettings = {
|
|
|
487
488
|
AmazonS3SSE: boolean;
|
|
488
489
|
AmazonS3Trace: boolean;
|
|
489
490
|
AmazonS3RequestTimeoutMilliseconds: number;
|
|
491
|
+
DedicatedExportStore: boolean;
|
|
492
|
+
ExportDriverName: string;
|
|
493
|
+
ExportDirectory: string;
|
|
494
|
+
ExportAmazonS3AccessKeyId: string;
|
|
495
|
+
ExportAmazonS3SecretAccessKey: string;
|
|
496
|
+
ExportAmazonS3Bucket: string;
|
|
497
|
+
ExportAmazonS3PathPrefix: string;
|
|
498
|
+
ExportAmazonS3Region: string;
|
|
499
|
+
ExportAmazonS3Endpoint: string;
|
|
500
|
+
ExportAmazonS3SSL: boolean;
|
|
501
|
+
ExportAmazonS3SignV2: boolean;
|
|
502
|
+
ExportAmazonS3SSE: boolean;
|
|
503
|
+
ExportAmazonS3Trace: boolean;
|
|
504
|
+
ExportAmazonS3RequestTimeoutMilliseconds: number;
|
|
505
|
+
ExportAmazonS3PresignExpiresSeconds: number;
|
|
490
506
|
};
|
|
491
507
|
export declare type EmailSettings = {
|
|
492
508
|
EnableSignUpWithEmail: boolean;
|
|
@@ -756,6 +772,10 @@ export declare type DataRetentionSettings = {
|
|
|
756
772
|
FileRetentionDays: number;
|
|
757
773
|
DeletionJobStartTime: string;
|
|
758
774
|
BatchSize: number;
|
|
775
|
+
EnableBoardsDeletion: boolean;
|
|
776
|
+
BoardsRetentionDays: number;
|
|
777
|
+
TimeBetweenBatchesMilliseconds: number;
|
|
778
|
+
RetentionIdsBatchSize: number;
|
|
759
779
|
};
|
|
760
780
|
export declare type MessageExportSettings = {
|
|
761
781
|
EnableExport: boolean;
|
|
@@ -801,6 +821,7 @@ export declare type PluginSettings = {
|
|
|
801
821
|
export declare type DisplaySettings = {
|
|
802
822
|
CustomURLSchemes: string[];
|
|
803
823
|
ExperimentalTimezone: boolean;
|
|
824
|
+
MaxMarkdownNodes: number;
|
|
804
825
|
};
|
|
805
826
|
export declare type GuestAccountsSettings = {
|
|
806
827
|
Enable: boolean;
|
|
@@ -818,6 +839,7 @@ export declare type ImageProxySettings = {
|
|
|
818
839
|
export declare type CloudSettings = {
|
|
819
840
|
CWSURL: string;
|
|
820
841
|
CWSAPIURL: string;
|
|
842
|
+
CWSMock: boolean;
|
|
821
843
|
};
|
|
822
844
|
export declare type FeatureFlags = Record<string, string | boolean>;
|
|
823
845
|
export declare type ImportSettings = {
|
package/lib/groups.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ export declare type Group = {
|
|
|
32
32
|
allow_reference: boolean;
|
|
33
33
|
channel_member_count?: number;
|
|
34
34
|
channel_member_timezones_count?: number;
|
|
35
|
+
member_ids?: string[];
|
|
35
36
|
};
|
|
36
37
|
export declare enum GroupSource {
|
|
37
38
|
Ldap = "ldap",
|
|
@@ -123,13 +124,21 @@ export declare type GroupCreateWithUserIds = {
|
|
|
123
124
|
user_ids: string[];
|
|
124
125
|
description?: string;
|
|
125
126
|
};
|
|
126
|
-
export declare type
|
|
127
|
+
export declare type GetGroupsParams = {
|
|
128
|
+
filter_allow_reference?: boolean;
|
|
129
|
+
page?: number;
|
|
130
|
+
per_page?: number;
|
|
131
|
+
include_member_count?: boolean;
|
|
132
|
+
include_archived?: boolean;
|
|
133
|
+
filter_archived?: boolean;
|
|
134
|
+
include_member_ids?: boolean;
|
|
135
|
+
};
|
|
136
|
+
export declare type GetGroupsForUserParams = GetGroupsParams & {
|
|
137
|
+
filter_has_member: string;
|
|
138
|
+
};
|
|
139
|
+
export declare type GroupSearchParams = GetGroupsParams & {
|
|
127
140
|
q: string;
|
|
128
|
-
|
|
129
|
-
page: number;
|
|
130
|
-
per_page: number;
|
|
131
|
-
include_member_count: boolean;
|
|
132
|
-
user_id?: string;
|
|
141
|
+
filter_has_member?: string;
|
|
133
142
|
include_timezones?: string;
|
|
134
143
|
include_channel_member_count?: string;
|
|
135
144
|
};
|
|
@@ -140,4 +149,5 @@ export declare type GroupMembership = {
|
|
|
140
149
|
export declare type GroupPermissions = {
|
|
141
150
|
can_delete: boolean;
|
|
142
151
|
can_manage_members: boolean;
|
|
152
|
+
can_restore: boolean;
|
|
143
153
|
};
|
package/lib/posts.d.ts
CHANGED
|
@@ -109,7 +109,6 @@ export declare type PostsState = {
|
|
|
109
109
|
postEditHistory: Post[];
|
|
110
110
|
currentFocusedPostId: string;
|
|
111
111
|
messagesHistory: MessageHistory;
|
|
112
|
-
expandedURLs: Record<string, string>;
|
|
113
112
|
limitedViews: {
|
|
114
113
|
channels: Record<Channel['id'], number>;
|
|
115
114
|
threads: Record<Post['root_id'], number>;
|
package/lib/store.d.ts
CHANGED
|
@@ -21,7 +21,6 @@ import { ThreadsState } from './threads';
|
|
|
21
21
|
import { Typing } from './typing';
|
|
22
22
|
import { UsersState } from './users';
|
|
23
23
|
import { AppsState } from './apps';
|
|
24
|
-
import { GifsState } from './gifs';
|
|
25
24
|
export declare type GlobalState = {
|
|
26
25
|
entities: {
|
|
27
26
|
general: GeneralState;
|
|
@@ -52,7 +51,6 @@ export declare type GlobalState = {
|
|
|
52
51
|
pending: Set<string>;
|
|
53
52
|
};
|
|
54
53
|
schemes: SchemesState;
|
|
55
|
-
gifs: GifsState;
|
|
56
54
|
groups: GroupsState;
|
|
57
55
|
channelCategories: ChannelCategoriesState;
|
|
58
56
|
apps: AppsState;
|
package/lib/utilities.d.ts
CHANGED
|
@@ -30,3 +30,4 @@ export declare type ValueOf<T> = T[keyof T];
|
|
|
30
30
|
export declare type RequireOnlyOne<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof T, Keys>> & {
|
|
31
31
|
[K in Keys]-?: Required<Pick<T, K>> & Partial<Record<Exclude<Keys, K>, undefined>>;
|
|
32
32
|
}[Keys];
|
|
33
|
+
export declare type Intersection<T1, T2> = Omit<Omit<T1 & T2, keyof (Omit<T1, keyof (T2)>)>, keyof (Omit<T2, keyof (T1)>)>;
|
package/package.json
CHANGED
package/lib/gifs.d.ts
DELETED
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
export declare type GifsState = {
|
|
2
|
-
app: GifsAppState;
|
|
3
|
-
cache: GifsCacheState;
|
|
4
|
-
categories: GifsCategoriesState;
|
|
5
|
-
search: GifsSearchState;
|
|
6
|
-
};
|
|
7
|
-
export declare type GifsAppState = {
|
|
8
|
-
appClassName: string;
|
|
9
|
-
appId: string;
|
|
10
|
-
appName: string;
|
|
11
|
-
basePath: string;
|
|
12
|
-
enableHistory: boolean;
|
|
13
|
-
header: {
|
|
14
|
-
tabs: number[];
|
|
15
|
-
displayText: boolean;
|
|
16
|
-
};
|
|
17
|
-
itemTapType: number;
|
|
18
|
-
shareEvent: string;
|
|
19
|
-
};
|
|
20
|
-
declare type GifsCacheState = {
|
|
21
|
-
gifs: Record<string, GfycatAPIItem>;
|
|
22
|
-
updating: boolean;
|
|
23
|
-
};
|
|
24
|
-
declare type GifsCategoriesState = {
|
|
25
|
-
cursor: string;
|
|
26
|
-
hasMore: boolean;
|
|
27
|
-
isFetching: boolean;
|
|
28
|
-
tagsDict: Record<string, boolean>;
|
|
29
|
-
tagsList: GfycatAPITag[];
|
|
30
|
-
};
|
|
31
|
-
declare type GifsSearchState = {
|
|
32
|
-
priorLocation: string | null;
|
|
33
|
-
resultsByTerm: Record<string, GifsResult>;
|
|
34
|
-
scrollPosition: number;
|
|
35
|
-
searchBarText: string;
|
|
36
|
-
searchText: string;
|
|
37
|
-
};
|
|
38
|
-
export declare type GifsResult = GfycatAPIPaginatedResponse & {
|
|
39
|
-
count: number;
|
|
40
|
-
currentPage: number;
|
|
41
|
-
didInvalidate: boolean;
|
|
42
|
-
found: number;
|
|
43
|
-
isFetching: boolean;
|
|
44
|
-
items: string[];
|
|
45
|
-
moreRemaining: boolean;
|
|
46
|
-
pages: Record<number, string[]>;
|
|
47
|
-
start: number;
|
|
48
|
-
};
|
|
49
|
-
export interface GfycatAPIPaginatedResponse {
|
|
50
|
-
cursor?: string;
|
|
51
|
-
gfycats: GfycatAPIItem[];
|
|
52
|
-
totalCount?: number;
|
|
53
|
-
}
|
|
54
|
-
export interface GfycatAPIItemResponse {
|
|
55
|
-
gfyItem: GfycatAPIItem;
|
|
56
|
-
}
|
|
57
|
-
export interface GfycatAPIItem {
|
|
58
|
-
anonymous?: boolean;
|
|
59
|
-
avgColor: string;
|
|
60
|
-
captionsUrl?: null;
|
|
61
|
-
content_urls: {
|
|
62
|
-
[key: string]: GfycatAPIContent;
|
|
63
|
-
};
|
|
64
|
-
createDate: number;
|
|
65
|
-
description?: string;
|
|
66
|
-
dislikes?: number;
|
|
67
|
-
domainWhitelist?: any[];
|
|
68
|
-
duration?: number;
|
|
69
|
-
encoding?: boolean;
|
|
70
|
-
extraLemmas?: string;
|
|
71
|
-
finished?: boolean;
|
|
72
|
-
frameRate: number;
|
|
73
|
-
gatekeeper: number;
|
|
74
|
-
geoWhitelist?: any[];
|
|
75
|
-
gfyId: string;
|
|
76
|
-
gfyName: string;
|
|
77
|
-
gfyNumber?: string;
|
|
78
|
-
gfySlug?: string;
|
|
79
|
-
gif100px?: string;
|
|
80
|
-
gifSize?: number;
|
|
81
|
-
gifUrl: string;
|
|
82
|
-
hasAudio: boolean;
|
|
83
|
-
hasTransparency: boolean;
|
|
84
|
-
height: number;
|
|
85
|
-
languageCategories: string[];
|
|
86
|
-
languageText?: string;
|
|
87
|
-
likes: number;
|
|
88
|
-
max1mbGif?: string;
|
|
89
|
-
max2mbGif: string;
|
|
90
|
-
max5mbGif: string;
|
|
91
|
-
md5?: string;
|
|
92
|
-
miniPosterUrl: string;
|
|
93
|
-
miniUrl?: string;
|
|
94
|
-
mobileHeight?: number;
|
|
95
|
-
mobilePosterUrl?: string;
|
|
96
|
-
mobileUrl: string;
|
|
97
|
-
mobileWidth?: number;
|
|
98
|
-
mp4Size?: number;
|
|
99
|
-
mp4Url: string;
|
|
100
|
-
nsfw: boolean | number;
|
|
101
|
-
numFrames: number;
|
|
102
|
-
posterUrl: string;
|
|
103
|
-
published: number;
|
|
104
|
-
rating?: string;
|
|
105
|
-
ratio?: null;
|
|
106
|
-
sitename?: string;
|
|
107
|
-
source?: number;
|
|
108
|
-
tags: string[];
|
|
109
|
-
thumb100PosterUrl: string;
|
|
110
|
-
title?: string;
|
|
111
|
-
type?: number;
|
|
112
|
-
url?: string;
|
|
113
|
-
userData?: GfycatAPIUser | [];
|
|
114
|
-
userDisplayName?: string;
|
|
115
|
-
userName?: string;
|
|
116
|
-
username?: string;
|
|
117
|
-
userProfileImageUrl?: string;
|
|
118
|
-
views: number;
|
|
119
|
-
views5?: number;
|
|
120
|
-
webmSize?: number;
|
|
121
|
-
webmUrl?: string;
|
|
122
|
-
webpUrl?: string;
|
|
123
|
-
width: number;
|
|
124
|
-
}
|
|
125
|
-
export interface GfycatAPIContent {
|
|
126
|
-
width: number;
|
|
127
|
-
size: number;
|
|
128
|
-
url: string;
|
|
129
|
-
height: number;
|
|
130
|
-
}
|
|
131
|
-
export interface GfycatAPIUser {
|
|
132
|
-
createDate?: number;
|
|
133
|
-
description?: string;
|
|
134
|
-
followers: number;
|
|
135
|
-
following: number;
|
|
136
|
-
iframeProfileImageVisible?: boolean;
|
|
137
|
-
name: string;
|
|
138
|
-
profileImageUrl: string;
|
|
139
|
-
profileUrl?: string;
|
|
140
|
-
publishedGfycats?: number;
|
|
141
|
-
subscription?: number;
|
|
142
|
-
url?: string;
|
|
143
|
-
userid?: string;
|
|
144
|
-
username: string;
|
|
145
|
-
verified: boolean;
|
|
146
|
-
views: number;
|
|
147
|
-
}
|
|
148
|
-
export interface GfycatAPITag {
|
|
149
|
-
tagName: string;
|
|
150
|
-
gfyId: string;
|
|
151
|
-
}
|
|
152
|
-
export {};
|
package/lib/gifs.js
DELETED