@mattermost/types 9.2.0 → 9.4.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/admin.d.ts +12 -12
- package/lib/apps.d.ts +31 -31
- package/lib/audits.d.ts +1 -1
- package/lib/autocomplete.d.ts +2 -2
- package/lib/boards.d.ts +2 -2
- package/lib/bots.d.ts +2 -2
- package/lib/channel_categories.d.ts +4 -4
- package/lib/channels.d.ts +19 -17
- package/lib/client4.d.ts +5 -4
- package/lib/cloud.d.ts +28 -20
- package/lib/compliance.d.ts +1 -1
- package/lib/config.d.ts +67 -54
- package/lib/data_retention.d.ts +7 -7
- package/lib/drafts.d.ts +1 -1
- package/lib/emojis.d.ts +7 -7
- package/lib/errors.d.ts +1 -1
- package/lib/files.d.ts +5 -5
- package/lib/general.d.ts +2 -2
- package/lib/groups.d.ts +22 -22
- package/lib/hosted_customer.d.ts +5 -5
- package/lib/integration_actions.d.ts +4 -4
- package/lib/integrations.d.ts +12 -12
- package/lib/jobs.d.ts +6 -6
- package/lib/marketplace.d.ts +1 -1
- package/lib/message_attachments.d.ts +2 -2
- package/lib/mfa.d.ts +1 -1
- package/lib/plugins.d.ts +14 -14
- package/lib/posts.d.ts +28 -17
- package/lib/preferences.d.ts +2 -2
- package/lib/product_notices.d.ts +2 -2
- package/lib/products.d.ts +2 -2
- package/lib/reactions.d.ts +1 -1
- package/lib/requests.d.ts +13 -13
- package/lib/roles.d.ts +1 -1
- package/lib/saml.d.ts +2 -2
- package/lib/schemes.d.ts +4 -4
- package/lib/search.d.ts +3 -3
- package/lib/sessions.d.ts +1 -1
- package/lib/setup.d.ts +1 -1
- package/lib/store.d.ts +1 -1
- package/lib/teams.d.ts +11 -11
- package/lib/terms_of_service.d.ts +1 -1
- package/lib/threads.d.ts +6 -6
- package/lib/typing.d.ts +1 -1
- package/lib/users.d.ts +12 -11
- package/lib/utilities.d.ts +9 -9
- package/package.json +1 -1
package/lib/hosted_customer.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ export interface SelfHostedSignupSuccessResponse {
|
|
|
30
30
|
progress: ValueOf<typeof SelfHostedSignupProgress>;
|
|
31
31
|
license: Record<string, string>;
|
|
32
32
|
}
|
|
33
|
-
export
|
|
33
|
+
export type HostedCustomerState = {
|
|
34
34
|
products: {
|
|
35
35
|
products: Record<string, Product>;
|
|
36
36
|
productsLoaded: boolean;
|
|
@@ -48,21 +48,21 @@ export declare type HostedCustomerState = {
|
|
|
48
48
|
trueUpReviewStatus: TrueUpReviewStatusReducer;
|
|
49
49
|
trueUpReviewProfile: TrueUpReviewProfileReducer;
|
|
50
50
|
};
|
|
51
|
-
export
|
|
51
|
+
export type TrueUpReviewProfile = {
|
|
52
52
|
content: string;
|
|
53
53
|
};
|
|
54
|
-
export
|
|
54
|
+
export type TrueUpReviewStatus = {
|
|
55
55
|
due_date: number;
|
|
56
56
|
complete: boolean;
|
|
57
57
|
};
|
|
58
|
-
|
|
58
|
+
type RequestState = 'IDLE' | 'LOADING' | 'OK';
|
|
59
59
|
export interface TrueUpReviewProfileReducer extends TrueUpReviewProfile {
|
|
60
60
|
getRequestState: RequestState;
|
|
61
61
|
}
|
|
62
62
|
export interface TrueUpReviewStatusReducer extends TrueUpReviewStatus {
|
|
63
63
|
getRequestState: RequestState;
|
|
64
64
|
}
|
|
65
|
-
export
|
|
65
|
+
export type SelfHostedExpansionRequest = {
|
|
66
66
|
seats: number;
|
|
67
67
|
license_id: string;
|
|
68
68
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type PostAction = {
|
|
2
2
|
id?: string;
|
|
3
3
|
type?: string;
|
|
4
4
|
name?: string;
|
|
@@ -10,15 +10,15 @@ export declare type PostAction = {
|
|
|
10
10
|
integration?: PostActionIntegration;
|
|
11
11
|
cookie?: string;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export type PostActionOption = {
|
|
14
14
|
text: string;
|
|
15
15
|
value: string;
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type PostActionIntegration = {
|
|
18
18
|
url?: string;
|
|
19
19
|
context?: Record<string, any>;
|
|
20
20
|
};
|
|
21
|
-
export
|
|
21
|
+
export type PostActionResponse = {
|
|
22
22
|
status: string;
|
|
23
23
|
trigger_id: string;
|
|
24
24
|
};
|
package/lib/integrations.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MessageAttachment } from './message_attachments';
|
|
2
2
|
import { IDMappedObjects } from './utilities';
|
|
3
|
-
export
|
|
3
|
+
export type IncomingWebhook = {
|
|
4
4
|
id: string;
|
|
5
5
|
create_at: number;
|
|
6
6
|
update_at: number;
|
|
@@ -14,7 +14,7 @@ export declare type IncomingWebhook = {
|
|
|
14
14
|
icon_url: string;
|
|
15
15
|
channel_locked: boolean;
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type OutgoingWebhook = {
|
|
18
18
|
id: string;
|
|
19
19
|
token: string;
|
|
20
20
|
create_at: number;
|
|
@@ -32,7 +32,7 @@ export declare type OutgoingWebhook = {
|
|
|
32
32
|
username: string;
|
|
33
33
|
icon_url: string;
|
|
34
34
|
};
|
|
35
|
-
export
|
|
35
|
+
export type Command = {
|
|
36
36
|
'id': string;
|
|
37
37
|
'token': string;
|
|
38
38
|
'create_at': number;
|
|
@@ -51,12 +51,12 @@ export declare type Command = {
|
|
|
51
51
|
'description': string;
|
|
52
52
|
'url': string;
|
|
53
53
|
};
|
|
54
|
-
export
|
|
54
|
+
export type CommandArgs = {
|
|
55
55
|
channel_id: string;
|
|
56
56
|
team_id?: string;
|
|
57
57
|
root_id?: string;
|
|
58
58
|
};
|
|
59
|
-
export
|
|
59
|
+
export type CommandResponse = {
|
|
60
60
|
response_type: string;
|
|
61
61
|
text: string;
|
|
62
62
|
username: string;
|
|
@@ -70,7 +70,7 @@ export declare type CommandResponse = {
|
|
|
70
70
|
attachments: MessageAttachment[];
|
|
71
71
|
extra_responses: CommandResponse[];
|
|
72
72
|
};
|
|
73
|
-
export
|
|
73
|
+
export type AutocompleteSuggestion = {
|
|
74
74
|
Complete: string;
|
|
75
75
|
Suggestion: string;
|
|
76
76
|
Hint: string;
|
|
@@ -78,8 +78,8 @@ export declare type AutocompleteSuggestion = {
|
|
|
78
78
|
IconData: string;
|
|
79
79
|
type?: string;
|
|
80
80
|
};
|
|
81
|
-
export
|
|
82
|
-
export
|
|
81
|
+
export type CommandAutocompleteSuggestion = AutocompleteSuggestion;
|
|
82
|
+
export type OAuthApp = {
|
|
83
83
|
'id': string;
|
|
84
84
|
'creator_id': string;
|
|
85
85
|
'create_at': number;
|
|
@@ -92,7 +92,7 @@ export declare type OAuthApp = {
|
|
|
92
92
|
'homepage': string;
|
|
93
93
|
'is_trusted': boolean;
|
|
94
94
|
};
|
|
95
|
-
export
|
|
95
|
+
export type IntegrationsState = {
|
|
96
96
|
incomingHooks: IDMappedObjects<IncomingWebhook>;
|
|
97
97
|
outgoingHooks: IDMappedObjects<OutgoingWebhook>;
|
|
98
98
|
oauthApps: IDMappedObjects<OAuthApp>;
|
|
@@ -101,7 +101,7 @@ export declare type IntegrationsState = {
|
|
|
101
101
|
systemCommands: IDMappedObjects<Command>;
|
|
102
102
|
commands: IDMappedObjects<Command>;
|
|
103
103
|
};
|
|
104
|
-
export
|
|
104
|
+
export type DialogSubmission = {
|
|
105
105
|
url: string;
|
|
106
106
|
callback_id: string;
|
|
107
107
|
state: string;
|
|
@@ -113,7 +113,7 @@ export declare type DialogSubmission = {
|
|
|
113
113
|
};
|
|
114
114
|
cancelled: boolean;
|
|
115
115
|
};
|
|
116
|
-
export
|
|
116
|
+
export type DialogElement = {
|
|
117
117
|
display_name: string;
|
|
118
118
|
name: string;
|
|
119
119
|
type: string;
|
|
@@ -130,7 +130,7 @@ export declare type DialogElement = {
|
|
|
130
130
|
value: any;
|
|
131
131
|
}>;
|
|
132
132
|
};
|
|
133
|
-
export
|
|
133
|
+
export type SubmitDialogResponse = {
|
|
134
134
|
error?: string;
|
|
135
135
|
errors?: Record<string, string>;
|
|
136
136
|
};
|
package/lib/jobs.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IDMappedObjects } from './utilities';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
2
|
+
export type JobType = 'data_retention' | 'elasticsearch_post_indexing' | 'bleve_post_indexing' | 'ldap_sync' | 'message_export';
|
|
3
|
+
export type JobStatus = 'pending' | 'in_progress' | 'success' | 'error' | 'cancel_requested' | 'canceled' | 'warning';
|
|
4
|
+
export type Job = JobTypeBase & {
|
|
5
5
|
id: string;
|
|
6
6
|
priority: number;
|
|
7
7
|
create_at: number;
|
|
@@ -11,13 +11,13 @@ export declare type Job = JobTypeBase & {
|
|
|
11
11
|
progress: number;
|
|
12
12
|
data: any;
|
|
13
13
|
};
|
|
14
|
-
export
|
|
14
|
+
export type JobsByType = {
|
|
15
15
|
[x in JobType]?: Job[];
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type JobsState = {
|
|
18
18
|
jobs: IDMappedObjects<Job>;
|
|
19
19
|
jobsByTypeList: JobsByType;
|
|
20
20
|
};
|
|
21
|
-
export
|
|
21
|
+
export type JobTypeBase = {
|
|
22
22
|
type: JobType;
|
|
23
23
|
};
|
package/lib/marketplace.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PostAction } from './integration_actions';
|
|
2
|
-
export
|
|
2
|
+
export type MessageAttachment = {
|
|
3
3
|
id: number;
|
|
4
4
|
fallback: string;
|
|
5
5
|
color: string;
|
|
@@ -18,7 +18,7 @@ export declare type MessageAttachment = {
|
|
|
18
18
|
timestamp: number | string;
|
|
19
19
|
actions?: PostAction[];
|
|
20
20
|
};
|
|
21
|
-
export
|
|
21
|
+
export type MessageAttachmentField = {
|
|
22
22
|
title: string;
|
|
23
23
|
value: any;
|
|
24
24
|
short: boolean;
|
package/lib/mfa.d.ts
CHANGED
package/lib/plugins.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type PluginManifest = {
|
|
2
2
|
id: string;
|
|
3
3
|
name: string;
|
|
4
4
|
description?: string;
|
|
@@ -15,10 +15,10 @@ export declare type PluginManifest = {
|
|
|
15
15
|
settings_schema?: PluginSettingsSchema;
|
|
16
16
|
props?: Record<string, any>;
|
|
17
17
|
};
|
|
18
|
-
export
|
|
18
|
+
export type PluginRedux = PluginManifest & {
|
|
19
19
|
active: boolean;
|
|
20
20
|
};
|
|
21
|
-
export
|
|
21
|
+
export type PluginManifestServer = {
|
|
22
22
|
executables?: {
|
|
23
23
|
'linux-amd64'?: string;
|
|
24
24
|
'darwin-amd64'?: string;
|
|
@@ -26,15 +26,15 @@ export declare type PluginManifestServer = {
|
|
|
26
26
|
};
|
|
27
27
|
executable: string;
|
|
28
28
|
};
|
|
29
|
-
export
|
|
29
|
+
export type PluginManifestWebapp = {
|
|
30
30
|
bundle_path: string;
|
|
31
31
|
};
|
|
32
|
-
export
|
|
32
|
+
export type PluginSettingsSchema = {
|
|
33
33
|
header: string;
|
|
34
34
|
footer: string;
|
|
35
35
|
settings: PluginSetting[];
|
|
36
36
|
};
|
|
37
|
-
export
|
|
37
|
+
export type PluginSetting = {
|
|
38
38
|
key: string;
|
|
39
39
|
display_name: string;
|
|
40
40
|
type: string;
|
|
@@ -45,15 +45,15 @@ export declare type PluginSetting = {
|
|
|
45
45
|
options?: PluginSettingOption[];
|
|
46
46
|
hosting?: 'on-prem' | 'cloud';
|
|
47
47
|
};
|
|
48
|
-
export
|
|
48
|
+
export type PluginSettingOption = {
|
|
49
49
|
display_name: string;
|
|
50
50
|
value: string;
|
|
51
51
|
};
|
|
52
|
-
export
|
|
52
|
+
export type PluginsResponse = {
|
|
53
53
|
active: PluginManifest[];
|
|
54
54
|
inactive: PluginManifest[];
|
|
55
55
|
};
|
|
56
|
-
export
|
|
56
|
+
export type PluginStatus = {
|
|
57
57
|
plugin_id: string;
|
|
58
58
|
cluster_id: string;
|
|
59
59
|
plugin_path: string;
|
|
@@ -62,12 +62,12 @@ export declare type PluginStatus = {
|
|
|
62
62
|
description: string;
|
|
63
63
|
version: string;
|
|
64
64
|
};
|
|
65
|
-
|
|
65
|
+
type PluginInstance = {
|
|
66
66
|
cluster_id: string;
|
|
67
67
|
version: string;
|
|
68
68
|
state: number;
|
|
69
69
|
};
|
|
70
|
-
export
|
|
70
|
+
export type PluginStatusRedux = {
|
|
71
71
|
id: string;
|
|
72
72
|
name: string;
|
|
73
73
|
description: string;
|
|
@@ -77,7 +77,7 @@ export declare type PluginStatusRedux = {
|
|
|
77
77
|
error?: string;
|
|
78
78
|
instances: PluginInstance[];
|
|
79
79
|
};
|
|
80
|
-
export
|
|
80
|
+
export type ClientPluginManifest = {
|
|
81
81
|
id: string;
|
|
82
82
|
min_server_version?: string;
|
|
83
83
|
version: string;
|
|
@@ -85,7 +85,7 @@ export declare type ClientPluginManifest = {
|
|
|
85
85
|
bundle_path: string;
|
|
86
86
|
};
|
|
87
87
|
};
|
|
88
|
-
export
|
|
88
|
+
export type MarketplaceLabel = {
|
|
89
89
|
name: string;
|
|
90
90
|
description?: string;
|
|
91
91
|
url?: string;
|
|
@@ -105,7 +105,7 @@ export declare enum ReleaseStage {
|
|
|
105
105
|
Beta = "beta",
|
|
106
106
|
Experimental = "experimental"
|
|
107
107
|
}
|
|
108
|
-
export
|
|
108
|
+
export type MarketplacePlugin = {
|
|
109
109
|
homepage_url?: string;
|
|
110
110
|
icon_data?: string;
|
|
111
111
|
download_url?: string;
|
package/lib/posts.d.ts
CHANGED
|
@@ -2,32 +2,33 @@ import { Channel, ChannelType } from './channels';
|
|
|
2
2
|
import { CustomEmoji } from './emojis';
|
|
3
3
|
import { FileInfo } from './files';
|
|
4
4
|
import { Reaction } from './reactions';
|
|
5
|
+
import { TeamType } from './teams';
|
|
5
6
|
import { UserProfile } from './users';
|
|
6
7
|
import { RelationOneToOne, RelationOneToMany, IDMappedObjects } from './utilities';
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
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' | '';
|
|
9
|
+
export type PostEmbedType = 'image' | 'link' | 'message_attachment' | 'opengraph' | 'permalink';
|
|
10
|
+
export type PostEmbed = {
|
|
10
11
|
type: PostEmbedType;
|
|
11
12
|
url: string;
|
|
12
13
|
data?: OpenGraphMetadata | PostPreviewMetadata;
|
|
13
14
|
};
|
|
14
|
-
export
|
|
15
|
+
export type PostImage = {
|
|
15
16
|
format: string;
|
|
16
17
|
frameCount: number;
|
|
17
18
|
height: number;
|
|
18
19
|
width: number;
|
|
19
20
|
};
|
|
20
|
-
export
|
|
21
|
+
export type PostAcknowledgement = {
|
|
21
22
|
post_id: Post['id'];
|
|
22
23
|
user_id: UserProfile['id'];
|
|
23
24
|
acknowledged_at: number;
|
|
24
25
|
};
|
|
25
|
-
export
|
|
26
|
+
export type PostPriorityMetadata = {
|
|
26
27
|
priority: PostPriority | '';
|
|
27
28
|
requested_ack?: boolean;
|
|
28
29
|
persistent_notifications?: boolean;
|
|
29
30
|
};
|
|
30
|
-
export
|
|
31
|
+
export type PostMetadata = {
|
|
31
32
|
embeds: PostEmbed[];
|
|
32
33
|
emojis: CustomEmoji[];
|
|
33
34
|
files: FileInfo[];
|
|
@@ -36,7 +37,7 @@ export declare type PostMetadata = {
|
|
|
36
37
|
priority?: PostPriorityMetadata;
|
|
37
38
|
acknowledgements?: PostAcknowledgement[];
|
|
38
39
|
};
|
|
39
|
-
export
|
|
40
|
+
export type Post = {
|
|
40
41
|
id: string;
|
|
41
42
|
create_at: number;
|
|
42
43
|
update_at: number;
|
|
@@ -65,37 +66,37 @@ export declare type Post = {
|
|
|
65
66
|
is_following?: boolean;
|
|
66
67
|
exists?: boolean;
|
|
67
68
|
};
|
|
68
|
-
export
|
|
69
|
+
export type PostState = 'DELETED';
|
|
69
70
|
export declare enum PostPriority {
|
|
70
71
|
URGENT = "urgent",
|
|
71
72
|
IMPORTANT = "important"
|
|
72
73
|
}
|
|
73
|
-
export
|
|
74
|
+
export type PostList = {
|
|
74
75
|
order: Array<Post['id']>;
|
|
75
76
|
posts: Record<string, Post>;
|
|
76
77
|
next_post_id: string;
|
|
77
78
|
prev_post_id: string;
|
|
78
79
|
first_inaccessible_post_time: number;
|
|
79
80
|
};
|
|
80
|
-
export
|
|
81
|
+
export type PaginatedPostList = PostList & {
|
|
81
82
|
has_next: boolean;
|
|
82
83
|
};
|
|
83
|
-
export
|
|
84
|
+
export type PostSearchResults = PostList & {
|
|
84
85
|
matches: RelationOneToOne<Post, string[]>;
|
|
85
86
|
};
|
|
86
|
-
export
|
|
87
|
+
export type PostOrderBlock = {
|
|
87
88
|
order: string[];
|
|
88
89
|
recent?: boolean;
|
|
89
90
|
oldest?: boolean;
|
|
90
91
|
};
|
|
91
|
-
export
|
|
92
|
+
export type MessageHistory = {
|
|
92
93
|
messages: string[];
|
|
93
94
|
index: {
|
|
94
95
|
post: number;
|
|
95
96
|
comment: number;
|
|
96
97
|
};
|
|
97
98
|
};
|
|
98
|
-
export
|
|
99
|
+
export type PostsState = {
|
|
99
100
|
posts: IDMappedObjects<Post>;
|
|
100
101
|
postsReplies: {
|
|
101
102
|
[x in Post['id']]: number;
|
|
@@ -148,7 +149,7 @@ export declare type TeamsUsageResponse = {
|
|
|
148
149
|
active: number;
|
|
149
150
|
cloud_archived: number;
|
|
150
151
|
};
|
|
151
|
-
export
|
|
152
|
+
export type PostAnalytics = {
|
|
152
153
|
channel_id: string;
|
|
153
154
|
post_id: string;
|
|
154
155
|
user_actual_id: string;
|
|
@@ -157,9 +158,19 @@ export declare type PostAnalytics = {
|
|
|
157
158
|
requested_ack?: boolean;
|
|
158
159
|
persistent_notifications?: boolean;
|
|
159
160
|
};
|
|
160
|
-
export
|
|
161
|
+
export type ActivityEntry = {
|
|
161
162
|
postType: Post['type'];
|
|
162
163
|
actorId: string[];
|
|
163
164
|
userIds: string[];
|
|
164
165
|
usernames: string[];
|
|
165
166
|
};
|
|
167
|
+
export type PostInfo = {
|
|
168
|
+
channel_id: string;
|
|
169
|
+
channel_type: ChannelType;
|
|
170
|
+
channel_display_name: string;
|
|
171
|
+
has_joined_channel: boolean;
|
|
172
|
+
team_id: string;
|
|
173
|
+
team_type: TeamType;
|
|
174
|
+
team_display_name: string;
|
|
175
|
+
has_joined_team: boolean;
|
|
176
|
+
};
|
package/lib/preferences.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type PreferenceType = {
|
|
2
2
|
category: string;
|
|
3
3
|
name: string;
|
|
4
4
|
user_id: string;
|
|
5
5
|
value?: string;
|
|
6
6
|
};
|
|
7
|
-
export
|
|
7
|
+
export type PreferencesType = {
|
|
8
8
|
[x: string]: PreferenceType;
|
|
9
9
|
};
|
package/lib/product_notices.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare enum Action {
|
|
2
2
|
URL = "url"
|
|
3
3
|
}
|
|
4
|
-
export
|
|
4
|
+
export type ProductNotice = {
|
|
5
5
|
/** Unique identifier for this notice. Can be a running number. Used for storing 'viewed' state on the server. */
|
|
6
6
|
id: string;
|
|
7
7
|
/** Notice title. Use {{Mattermost}} instead of plain text to support white-labeling. Text supports Markdown. */
|
|
@@ -23,4 +23,4 @@ export declare type ProductNotice = {
|
|
|
23
23
|
/** List of product notices. Order is important and is used to resolve priorities.
|
|
24
24
|
* Each notice will only be show if conditions are met.
|
|
25
25
|
*/
|
|
26
|
-
export
|
|
26
|
+
export type ProductNotices = ProductNotice[];
|
package/lib/products.d.ts
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
* - `null` - explicitly Channels
|
|
3
3
|
* - `string` - uuid - any other product
|
|
4
4
|
*/
|
|
5
|
-
export
|
|
5
|
+
export type ProductIdentifier = null | string;
|
|
6
6
|
/** @see {@link ProductIdentifier} */
|
|
7
|
-
export
|
|
7
|
+
export type ProductScope = ProductIdentifier | ProductIdentifier[];
|
package/lib/reactions.d.ts
CHANGED
package/lib/requests.d.ts
CHANGED
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export type RequestStatusOption = 'not_started' | 'started' | 'success' | 'failure' | 'cancelled';
|
|
2
|
+
export type RequestStatusType = {
|
|
3
3
|
status: RequestStatusOption;
|
|
4
4
|
error: null | Record<string, any>;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type ChannelsRequestsStatuses = {
|
|
7
7
|
getChannels: RequestStatusType;
|
|
8
8
|
getAllChannels: RequestStatusType;
|
|
9
9
|
myChannels: RequestStatusType;
|
|
10
10
|
createChannel: RequestStatusType;
|
|
11
11
|
updateChannel: RequestStatusType;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export type GeneralRequestsStatuses = {
|
|
14
14
|
websocket: RequestStatusType;
|
|
15
15
|
};
|
|
16
|
-
export
|
|
16
|
+
export type PostsRequestsStatuses = {
|
|
17
17
|
createPost: RequestStatusType;
|
|
18
18
|
editPost: RequestStatusType;
|
|
19
19
|
getPostThread: RequestStatusType;
|
|
20
20
|
};
|
|
21
|
-
export
|
|
21
|
+
export type ThreadsRequestStatuses = {
|
|
22
22
|
getThreads: RequestStatusType;
|
|
23
23
|
};
|
|
24
|
-
export
|
|
24
|
+
export type TeamsRequestsStatuses = {
|
|
25
25
|
getMyTeams: RequestStatusType;
|
|
26
26
|
getTeams: RequestStatusType;
|
|
27
27
|
joinTeam: RequestStatusType;
|
|
28
28
|
};
|
|
29
|
-
export
|
|
29
|
+
export type UsersRequestsStatuses = {
|
|
30
30
|
login: RequestStatusType;
|
|
31
31
|
logout: RequestStatusType;
|
|
32
32
|
autocompleteUsers: RequestStatusType;
|
|
33
33
|
updateMe: RequestStatusType;
|
|
34
34
|
};
|
|
35
|
-
export
|
|
35
|
+
export type AdminRequestsStatuses = {
|
|
36
36
|
createCompliance: RequestStatusType;
|
|
37
37
|
};
|
|
38
|
-
export
|
|
38
|
+
export type EmojisRequestsStatuses = {
|
|
39
39
|
createCustomEmoji: RequestStatusType;
|
|
40
40
|
getCustomEmojis: RequestStatusType;
|
|
41
41
|
deleteCustomEmoji: RequestStatusType;
|
|
42
42
|
getCustomEmoji: RequestStatusType;
|
|
43
43
|
};
|
|
44
|
-
export
|
|
44
|
+
export type FilesRequestsStatuses = {
|
|
45
45
|
uploadFiles: RequestStatusType;
|
|
46
46
|
};
|
|
47
|
-
export
|
|
47
|
+
export type RolesRequestsStatuses = {
|
|
48
48
|
getRolesByNames: RequestStatusType;
|
|
49
49
|
getRoleByName: RequestStatusType;
|
|
50
50
|
getRole: RequestStatusType;
|
|
51
51
|
editRole: RequestStatusType;
|
|
52
52
|
};
|
|
53
|
-
export
|
|
53
|
+
export type SearchRequestsStatuses = {
|
|
54
54
|
flaggedPosts: RequestStatusType;
|
|
55
55
|
pinnedPosts: RequestStatusType;
|
|
56
56
|
};
|
package/lib/roles.d.ts
CHANGED
package/lib/saml.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type SamlCertificateStatus = {
|
|
2
2
|
idp_certificate_file: string;
|
|
3
3
|
private_key_file: string;
|
|
4
4
|
public_certificate_file: string;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type SamlMetadataResponse = {
|
|
7
7
|
idp_descriptor_url: string;
|
|
8
8
|
idp_url: string;
|
|
9
9
|
idp_public_certificate: string;
|
package/lib/schemes.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export type SchemeScope = 'team' | 'channel';
|
|
2
|
+
export type Scheme = {
|
|
3
3
|
id: string;
|
|
4
4
|
name: string;
|
|
5
5
|
description: string;
|
|
@@ -18,12 +18,12 @@ export declare type Scheme = {
|
|
|
18
18
|
default_playbook_member_role: string;
|
|
19
19
|
default_run_member_role: string;
|
|
20
20
|
};
|
|
21
|
-
export
|
|
21
|
+
export type SchemesState = {
|
|
22
22
|
schemes: {
|
|
23
23
|
[x: string]: Scheme;
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
|
-
export
|
|
26
|
+
export type SchemePatch = {
|
|
27
27
|
name?: string;
|
|
28
28
|
description?: string;
|
|
29
29
|
};
|
package/lib/search.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type Search = {
|
|
2
2
|
terms: string;
|
|
3
3
|
isOrSearch: boolean;
|
|
4
4
|
};
|
|
5
|
-
export
|
|
5
|
+
export type SearchState = {
|
|
6
6
|
current: any;
|
|
7
7
|
results: string[];
|
|
8
8
|
fileResults: string[];
|
|
@@ -18,7 +18,7 @@ export declare type SearchState = {
|
|
|
18
18
|
[x: string]: string[];
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
|
-
export
|
|
21
|
+
export type SearchParameter = {
|
|
22
22
|
terms: string;
|
|
23
23
|
is_or_search: boolean;
|
|
24
24
|
time_zone_offset?: number;
|
package/lib/sessions.d.ts
CHANGED
package/lib/setup.d.ts
CHANGED
package/lib/store.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ import { ThreadsState } from './threads';
|
|
|
21
21
|
import { Typing } from './typing';
|
|
22
22
|
import { UsersState } from './users';
|
|
23
23
|
import { AppsState } from './apps';
|
|
24
|
-
export
|
|
24
|
+
export type GlobalState = {
|
|
25
25
|
entities: {
|
|
26
26
|
general: GeneralState;
|
|
27
27
|
users: UsersState;
|