@mattermost/types 6.7.0-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.
Files changed (90) hide show
  1. package/README.md +53 -0
  2. package/lib/admin.d.ts +50 -0
  3. package/lib/admin.js +4 -0
  4. package/lib/apps.d.ts +182 -0
  5. package/lib/apps.js +24 -0
  6. package/lib/audits.d.ts +9 -0
  7. package/lib/audits.js +4 -0
  8. package/lib/autocomplete.d.ts +12 -0
  9. package/lib/autocomplete.js +4 -0
  10. package/lib/bots.d.ts +15 -0
  11. package/lib/bots.js +4 -0
  12. package/lib/channel_categories.d.ts +30 -0
  13. package/lib/channel_categories.js +12 -0
  14. package/lib/channels.d.ts +165 -0
  15. package/lib/channels.js +4 -0
  16. package/lib/client4.d.ts +41 -0
  17. package/lib/client4.js +12 -0
  18. package/lib/cloud.d.ts +102 -0
  19. package/lib/cloud.js +12 -0
  20. package/lib/compliance.d.ts +13 -0
  21. package/lib/compliance.js +4 -0
  22. package/lib/config.d.ts +781 -0
  23. package/lib/config.js +11 -0
  24. package/lib/data_retention.d.ts +30 -0
  25. package/lib/data_retention.js +4 -0
  26. package/lib/emojis.d.ts +28 -0
  27. package/lib/emojis.js +4 -0
  28. package/lib/errors.d.ts +12 -0
  29. package/lib/errors.js +4 -0
  30. package/lib/files.d.ts +37 -0
  31. package/lib/files.js +4 -0
  32. package/lib/general.d.ts +26 -0
  33. package/lib/general.js +24 -0
  34. package/lib/groups.d.ts +132 -0
  35. package/lib/groups.js +4 -0
  36. package/lib/integration_actions.d.ts +24 -0
  37. package/lib/integration_actions.js +4 -0
  38. package/lib/integrations.d.ts +150 -0
  39. package/lib/integrations.js +4 -0
  40. package/lib/jobs.d.ts +23 -0
  41. package/lib/jobs.js +2 -0
  42. package/lib/marketplace.d.ts +43 -0
  43. package/lib/marketplace.js +22 -0
  44. package/lib/message_attachments.d.ts +25 -0
  45. package/lib/message_attachments.js +4 -0
  46. package/lib/mfa.d.ts +4 -0
  47. package/lib/mfa.js +4 -0
  48. package/lib/plugins.d.ts +119 -0
  49. package/lib/plugins.js +22 -0
  50. package/lib/posts.d.ts +126 -0
  51. package/lib/posts.js +4 -0
  52. package/lib/preferences.d.ts +9 -0
  53. package/lib/preferences.js +4 -0
  54. package/lib/product_notices.d.ts +26 -0
  55. package/lib/product_notices.js +9 -0
  56. package/lib/reactions.d.ts +6 -0
  57. package/lib/reactions.js +2 -0
  58. package/lib/requests.d.ts +102 -0
  59. package/lib/requests.js +4 -0
  60. package/lib/roles.d.ts +13 -0
  61. package/lib/roles.js +2 -0
  62. package/lib/saml.d.ts +10 -0
  63. package/lib/saml.js +4 -0
  64. package/lib/schemes.d.ts +29 -0
  65. package/lib/schemes.js +2 -0
  66. package/lib/search.d.ts +27 -0
  67. package/lib/search.js +4 -0
  68. package/lib/sessions.d.ts +15 -0
  69. package/lib/sessions.js +4 -0
  70. package/lib/setup.d.ts +3 -0
  71. package/lib/setup.js +4 -0
  72. package/lib/store.d.ts +76 -0
  73. package/lib/store.js +4 -0
  74. package/lib/teams.d.ts +90 -0
  75. package/lib/teams.js +4 -0
  76. package/lib/terms_of_service.d.ts +6 -0
  77. package/lib/terms_of_service.js +4 -0
  78. package/lib/themes.d.ts +34 -0
  79. package/lib/themes.js +4 -0
  80. package/lib/threads.d.ts +59 -0
  81. package/lib/threads.js +13 -0
  82. package/lib/typing.d.ts +5 -0
  83. package/lib/typing.js +2 -0
  84. package/lib/users.d.ts +134 -0
  85. package/lib/users.js +16 -0
  86. package/lib/utilities.d.ts +25 -0
  87. package/lib/utilities.js +4 -0
  88. package/lib/websocket.d.ts +17 -0
  89. package/lib/websocket.js +4 -0
  90. package/package.json +34 -0
@@ -0,0 +1,119 @@
1
+ declare type Plugin = {
2
+ id: string;
3
+ name: string;
4
+ description?: string;
5
+ homepage_url?: string;
6
+ support_url?: string;
7
+ release_notes_url?: string;
8
+ icon_path?: string;
9
+ version: string;
10
+ min_server_version?: string;
11
+ server?: PluginManifestServer;
12
+ backend?: PluginManifestServer;
13
+ webapp?: PluginManifestWebapp;
14
+ settings_schema?: PluginSettingsSchema;
15
+ props?: Record<string, any>;
16
+ };
17
+ export declare type PluginManifest = Plugin;
18
+ export declare type PluginRedux = PluginManifest & {
19
+ active: boolean;
20
+ };
21
+ export declare type PluginManifestServer = {
22
+ executables?: {
23
+ 'linux-amd64'?: string;
24
+ 'darwin-amd64'?: string;
25
+ 'windows-amd64'?: string;
26
+ };
27
+ executable: string;
28
+ };
29
+ export declare type PluginManifestWebapp = {
30
+ bundle_path: string;
31
+ };
32
+ export declare type PluginSettingsSchema = {
33
+ header: string;
34
+ footer: string;
35
+ settings: PluginSetting[];
36
+ };
37
+ export declare type PluginSetting = {
38
+ key: string;
39
+ display_name: string;
40
+ type: string;
41
+ help_text: string;
42
+ regenerate_help_text?: string;
43
+ placeholder: string;
44
+ default: any;
45
+ options?: PluginSettingOption[];
46
+ };
47
+ export declare type PluginSettingOption = {
48
+ display_name: string;
49
+ value: string;
50
+ };
51
+ export declare type PluginsResponse = {
52
+ active: PluginManifest[];
53
+ inactive: PluginManifest[];
54
+ };
55
+ export declare type PluginStatus = {
56
+ plugin_id: string;
57
+ cluster_id: string;
58
+ plugin_path: string;
59
+ state: number;
60
+ name: string;
61
+ description: string;
62
+ version: string;
63
+ };
64
+ declare type PluginInstance = {
65
+ cluster_id: string;
66
+ version: string;
67
+ state: number;
68
+ };
69
+ export declare type PluginStatusRedux = {
70
+ id: string;
71
+ name: string;
72
+ description: string;
73
+ version: string;
74
+ active: boolean;
75
+ state: number;
76
+ instances: PluginInstance[];
77
+ };
78
+ export declare type ClientPluginManifest = {
79
+ id: string;
80
+ min_server_version?: string;
81
+ version: string;
82
+ webapp: {
83
+ bundle_path: string;
84
+ };
85
+ };
86
+ export declare type MarketplaceLabel = {
87
+ name: string;
88
+ description?: string;
89
+ url?: string;
90
+ color?: string;
91
+ };
92
+ export declare enum HostingType {
93
+ OnPrem = "on-prem",
94
+ Cloud = "cloud"
95
+ }
96
+ export declare enum AuthorType {
97
+ Mattermost = "mattermost",
98
+ Partner = "partner",
99
+ Community = "community"
100
+ }
101
+ export declare enum ReleaseStage {
102
+ Production = "production",
103
+ Beta = "beta",
104
+ Experimental = "experimental"
105
+ }
106
+ export declare type MarketplacePlugin = {
107
+ homepage_url?: string;
108
+ icon_data?: string;
109
+ download_url?: string;
110
+ release_notes_url?: string;
111
+ labels?: MarketplaceLabel[];
112
+ hosting?: HostingType;
113
+ author_type: AuthorType;
114
+ release_stage: ReleaseStage;
115
+ enterprise: boolean;
116
+ manifest: PluginManifest;
117
+ installed_version?: string;
118
+ };
119
+ export {};
package/lib/plugins.js ADDED
@@ -0,0 +1,22 @@
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.ReleaseStage = exports.AuthorType = exports.HostingType = void 0;
6
+ var HostingType;
7
+ (function (HostingType) {
8
+ HostingType["OnPrem"] = "on-prem";
9
+ HostingType["Cloud"] = "cloud";
10
+ })(HostingType = exports.HostingType || (exports.HostingType = {}));
11
+ var AuthorType;
12
+ (function (AuthorType) {
13
+ AuthorType["Mattermost"] = "mattermost";
14
+ AuthorType["Partner"] = "partner";
15
+ AuthorType["Community"] = "community";
16
+ })(AuthorType = exports.AuthorType || (exports.AuthorType = {}));
17
+ var ReleaseStage;
18
+ (function (ReleaseStage) {
19
+ ReleaseStage["Production"] = "production";
20
+ ReleaseStage["Beta"] = "beta";
21
+ ReleaseStage["Experimental"] = "experimental";
22
+ })(ReleaseStage = exports.ReleaseStage || (exports.ReleaseStage = {}));
package/lib/posts.d.ts ADDED
@@ -0,0 +1,126 @@
1
+ import { ChannelType } from './channels';
2
+ import { CustomEmoji } from './emojis';
3
+ import { FileInfo } from './files';
4
+ import { Reaction } from './reactions';
5
+ import { RelationOneToOne, RelationOneToMany, IDMappedObjects } from './utilities';
6
+ export declare 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';
7
+ export declare type PostEmbedType = 'image' | 'link' | 'message_attachment' | 'opengraph' | 'permalink';
8
+ export declare type PostEmbed = {
9
+ type: PostEmbedType;
10
+ url: string;
11
+ data?: OpenGraphMetadata | PostPreviewMetadata;
12
+ };
13
+ export declare type PostImage = {
14
+ format: string;
15
+ frameCount: number;
16
+ height: number;
17
+ width: number;
18
+ };
19
+ export declare type PostMetadata = {
20
+ embeds: PostEmbed[];
21
+ emojis: CustomEmoji[];
22
+ files: FileInfo[];
23
+ images: Record<string, PostImage>;
24
+ reactions: Reaction[];
25
+ };
26
+ export declare type Post = {
27
+ id: string;
28
+ create_at: number;
29
+ update_at: number;
30
+ edit_at: number;
31
+ delete_at: number;
32
+ is_pinned: boolean;
33
+ user_id: string;
34
+ channel_id: string;
35
+ root_id: string;
36
+ original_id: string;
37
+ message: string;
38
+ type: PostType;
39
+ props: Record<string, any>;
40
+ hashtags: string;
41
+ pending_post_id: string;
42
+ reply_count: number;
43
+ file_ids?: string[];
44
+ metadata: PostMetadata;
45
+ failed?: boolean;
46
+ user_activity_posts?: Post[];
47
+ state?: 'DELETED';
48
+ filenames?: string[];
49
+ last_reply_at?: number;
50
+ participants?: any;
51
+ message_source?: string;
52
+ is_following?: boolean;
53
+ exists?: boolean;
54
+ };
55
+ export declare type UserActivityPost = Post & {
56
+ system_post_ids: string[];
57
+ user_activity_posts: Post[];
58
+ };
59
+ export declare type PostList = {
60
+ order: Array<Post['id']>;
61
+ posts: Map<string, Post>;
62
+ next_post_id: string;
63
+ prev_post_id: string;
64
+ };
65
+ export declare type PostSearchResults = PostList & {
66
+ matches: RelationOneToOne<Post, string[]>;
67
+ };
68
+ export declare type PostWithFormatData = Post & {
69
+ isFirstReply: boolean;
70
+ isLastReply: boolean;
71
+ previousPostIsComment: boolean;
72
+ commentedOnPost?: Post;
73
+ consecutivePostByUser: boolean;
74
+ replyCount: number;
75
+ isCommentMention: boolean;
76
+ highlight: boolean;
77
+ };
78
+ export declare type PostOrderBlock = {
79
+ order: string[];
80
+ recent?: boolean;
81
+ oldest?: boolean;
82
+ };
83
+ export declare type MessageHistory = {
84
+ messages: string[];
85
+ index: {
86
+ post: number;
87
+ comment: number;
88
+ };
89
+ };
90
+ export declare type PostsState = {
91
+ posts: IDMappedObjects<Post>;
92
+ postsReplies: {
93
+ [x in Post['id']]: number;
94
+ };
95
+ postsInChannel: Record<string, PostOrderBlock[]>;
96
+ postsInThread: RelationOneToMany<Post, Post>;
97
+ reactions: RelationOneToOne<Post, Record<string, Reaction>>;
98
+ openGraph: RelationOneToOne<Post, Record<string, OpenGraphMetadata>>;
99
+ pendingPostIds: string[];
100
+ selectedPostId: string;
101
+ currentFocusedPostId: string;
102
+ messagesHistory: MessageHistory;
103
+ expandedURLs: Record<string, string>;
104
+ };
105
+ export declare type OpenGraphMetadataImage = {
106
+ secure_url?: string;
107
+ url: string;
108
+ height?: number;
109
+ width?: number;
110
+ };
111
+ export declare type OpenGraphMetadata = {
112
+ type?: string;
113
+ title?: string;
114
+ description?: string;
115
+ site_name?: string;
116
+ url?: string;
117
+ images: OpenGraphMetadataImage[];
118
+ };
119
+ export declare type PostPreviewMetadata = {
120
+ post_id: string;
121
+ post?: Post;
122
+ channel_display_name: string;
123
+ team_name: string;
124
+ channel_type: ChannelType;
125
+ channel_id: string;
126
+ };
package/lib/posts.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 });
@@ -0,0 +1,9 @@
1
+ export declare type PreferenceType = {
2
+ category: string;
3
+ name: string;
4
+ user_id: string;
5
+ value?: string;
6
+ };
7
+ export declare type PreferencesType = {
8
+ [x: string]: PreferenceType;
9
+ };
@@ -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 });
@@ -0,0 +1,26 @@
1
+ export declare enum Action {
2
+ URL = "url"
3
+ }
4
+ export declare type ProductNotice = {
5
+ /** Unique identifier for this notice. Can be a running number. Used for storing 'viewed' state on the server. */
6
+ id: string;
7
+ /** Notice title. Use {{Mattermost}} instead of plain text to support white-labeling. Text supports Markdown. */
8
+ title: string;
9
+ /** Notice content. Use {{Mattermost}} instead of plain text to support white-labeling. Text supports Markdown. */
10
+ description: string;
11
+ image?: string;
12
+ /** Optional override for the action button text (defaults to OK) */
13
+ actionText?: string;
14
+ /** Optional action to perform on action button click. (defaults to closing the notice) */
15
+ action?: Action;
16
+ /** Optional action parameter.
17
+ * Example: {"action": "url", actionParam: "/console/some-page"}
18
+ */
19
+ actionParam?: string;
20
+ sysAdminOnly: boolean;
21
+ teamAdminOnly: boolean;
22
+ };
23
+ /** List of product notices. Order is important and is used to resolve priorities.
24
+ * Each notice will only be show if conditions are met.
25
+ */
26
+ export declare type ProductNotices = ProductNotice[];
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Action = void 0;
4
+ // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
5
+ // See LICENSE.txt for license information.
6
+ var Action;
7
+ (function (Action) {
8
+ Action["URL"] = "url";
9
+ })(Action = exports.Action || (exports.Action = {}));
@@ -0,0 +1,6 @@
1
+ export declare type Reaction = {
2
+ user_id: string;
3
+ post_id: string;
4
+ emoji_name: string;
5
+ create_at: number;
6
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,102 @@
1
+ export declare type RequestStatusOption = 'not_started' | 'started' | 'success' | 'failure' | 'cancelled';
2
+ export declare type RequestStatusType = {
3
+ status: RequestStatusOption;
4
+ error: null | Record<string, any>;
5
+ };
6
+ export declare type ChannelsRequestsStatuses = {
7
+ getChannels: RequestStatusType;
8
+ getAllChannels: RequestStatusType;
9
+ myChannels: RequestStatusType;
10
+ createChannel: RequestStatusType;
11
+ updateChannel: RequestStatusType;
12
+ };
13
+ export declare type GeneralRequestsStatuses = {
14
+ websocket: RequestStatusType;
15
+ };
16
+ export declare type PostsRequestsStatuses = {
17
+ createPost: RequestStatusType;
18
+ editPost: RequestStatusType;
19
+ getPostThread: RequestStatusType;
20
+ };
21
+ export declare type ThreadsRequestStatuses = {
22
+ getThreads: RequestStatusType;
23
+ };
24
+ export declare type TeamsRequestsStatuses = {
25
+ getMyTeams: RequestStatusType;
26
+ getTeams: RequestStatusType;
27
+ joinTeam: RequestStatusType;
28
+ };
29
+ export declare type UsersRequestsStatuses = {
30
+ checkMfa: RequestStatusType;
31
+ login: RequestStatusType;
32
+ logout: RequestStatusType;
33
+ autocompleteUsers: RequestStatusType;
34
+ updateMe: RequestStatusType;
35
+ };
36
+ export declare type AdminRequestsStatuses = {
37
+ getLogs: RequestStatusType;
38
+ getAudits: RequestStatusType;
39
+ getConfig: RequestStatusType;
40
+ updateConfig: RequestStatusType;
41
+ reloadConfig: RequestStatusType;
42
+ testEmail: RequestStatusType;
43
+ testSiteURL: RequestStatusType;
44
+ invalidateCaches: RequestStatusType;
45
+ recycleDatabase: RequestStatusType;
46
+ createCompliance: RequestStatusType;
47
+ getCompliance: RequestStatusType;
48
+ testS3Connection: RequestStatusType;
49
+ getLdapGroups: RequestStatusType;
50
+ linkLdapGroup: RequestStatusType;
51
+ unlinkLdapGroup: RequestStatusType;
52
+ deleteBrandImage: RequestStatusType;
53
+ disablePlugin: RequestStatusType;
54
+ enablePlugin: RequestStatusType;
55
+ getAnalytics: RequestStatusType;
56
+ getClusterStatus: RequestStatusType;
57
+ getEnvironmentConfig: RequestStatusType;
58
+ getPluginStatuses: RequestStatusType;
59
+ getPlugins: RequestStatusType;
60
+ getSamlCertificateStatus: RequestStatusType;
61
+ installPluginFromUrl: RequestStatusType;
62
+ purgeElasticsearchIndexes: RequestStatusType;
63
+ removeIdpSamlCertificate: RequestStatusType;
64
+ removeLicense: RequestStatusType;
65
+ removePlugin: RequestStatusType;
66
+ removePrivateSamlCertificate: RequestStatusType;
67
+ removePublicSamlCertificate: RequestStatusType;
68
+ syncLdap: RequestStatusType;
69
+ testElasticsearch: RequestStatusType;
70
+ testLdap: RequestStatusType;
71
+ uploadBrandImage: RequestStatusType;
72
+ uploadIdpSamlCertificate: RequestStatusType;
73
+ uploadLicense: RequestStatusType;
74
+ uploadPlugin: RequestStatusType;
75
+ uploadPrivateSamlCertificate: RequestStatusType;
76
+ uploadPublicSamlCertificate: RequestStatusType;
77
+ };
78
+ export declare type EmojisRequestsStatuses = {
79
+ createCustomEmoji: RequestStatusType;
80
+ getCustomEmojis: RequestStatusType;
81
+ deleteCustomEmoji: RequestStatusType;
82
+ getCustomEmoji: RequestStatusType;
83
+ };
84
+ export declare type FilesRequestsStatuses = {
85
+ uploadFiles: RequestStatusType;
86
+ };
87
+ export declare type RolesRequestsStatuses = {
88
+ getRolesByNames: RequestStatusType;
89
+ getRoleByName: RequestStatusType;
90
+ getRole: RequestStatusType;
91
+ editRole: RequestStatusType;
92
+ };
93
+ export declare type JobsRequestsStatuses = {
94
+ createJob: RequestStatusType;
95
+ getJob: RequestStatusType;
96
+ getJobs: RequestStatusType;
97
+ cancelJob: RequestStatusType;
98
+ };
99
+ export declare type SearchRequestsStatuses = {
100
+ flaggedPosts: RequestStatusType;
101
+ pinnedPosts: RequestStatusType;
102
+ };
@@ -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/roles.d.ts ADDED
@@ -0,0 +1,13 @@
1
+ export declare type ChannelModerationRoles = 'members' | 'guests';
2
+ export declare type Role = {
3
+ id: string;
4
+ name: string;
5
+ display_name: string;
6
+ description: string;
7
+ create_at: number;
8
+ update_at: number;
9
+ delete_at: number;
10
+ permissions: string[];
11
+ scheme_managed: boolean;
12
+ built_in: boolean;
13
+ };
package/lib/roles.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/lib/saml.d.ts ADDED
@@ -0,0 +1,10 @@
1
+ export declare type SamlCertificateStatus = {
2
+ idp_certificate_file: string;
3
+ private_key_file: string;
4
+ public_certificate_file: string;
5
+ };
6
+ export declare type SamlMetadataResponse = {
7
+ idp_descriptor_url: string;
8
+ idp_url: string;
9
+ idp_public_certificate: string;
10
+ };
package/lib/saml.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 });
@@ -0,0 +1,29 @@
1
+ export declare type SchemeScope = 'team' | 'channel';
2
+ export declare type Scheme = {
3
+ id: string;
4
+ name: string;
5
+ description: string;
6
+ display_name: string;
7
+ create_at: number;
8
+ update_at: number;
9
+ delete_at: number;
10
+ scope: SchemeScope;
11
+ default_team_admin_role: string;
12
+ default_team_user_role: string;
13
+ default_team_guest_role: string;
14
+ default_channel_admin_role: string;
15
+ default_channel_user_role: string;
16
+ default_channel_guest_role: string;
17
+ default_playbook_admin_role: string;
18
+ default_playbook_member_role: string;
19
+ default_run_member_role: string;
20
+ };
21
+ export declare type SchemesState = {
22
+ schemes: {
23
+ [x: string]: Scheme;
24
+ };
25
+ };
26
+ export declare type SchemePatch = {
27
+ name?: string;
28
+ description?: string;
29
+ };
package/lib/schemes.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,27 @@
1
+ export declare type Search = {
2
+ terms: string;
3
+ isOrSearch: boolean;
4
+ };
5
+ export declare type SearchState = {
6
+ current: any;
7
+ results: string[];
8
+ fileResults: string[];
9
+ flagged: string[];
10
+ pinned: Record<string, string[]>;
11
+ isSearchingTerm: boolean;
12
+ isSearchGettingMore: boolean;
13
+ recent: {
14
+ [x: string]: Search[];
15
+ };
16
+ matches: {
17
+ [x: string]: string[];
18
+ };
19
+ };
20
+ export declare type SearchParameter = {
21
+ terms: string;
22
+ is_or_search: boolean;
23
+ time_zone_offset?: number;
24
+ page: number;
25
+ per_page: number;
26
+ include_deleted_channels: boolean;
27
+ };
package/lib/search.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 });
@@ -0,0 +1,15 @@
1
+ import { TeamMembership } from './teams';
2
+ export declare type Session = {
3
+ id: string;
4
+ token: string;
5
+ create_at: number;
6
+ expires_at: number;
7
+ last_activity_at: number;
8
+ user_id: string;
9
+ device_id: string;
10
+ roles: string;
11
+ is_oauth: boolean;
12
+ props: Record<string, any>;
13
+ team_members: TeamMembership[];
14
+ local: boolean;
15
+ };
@@ -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/setup.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ export declare type CompleteOnboardingRequest = {
2
+ install_plugins: string[];
3
+ };
package/lib/setup.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/store.d.ts ADDED
@@ -0,0 +1,76 @@
1
+ import { AdminState } from './admin';
2
+ import { Bot } from './bots';
3
+ import { ChannelsState } from './channels';
4
+ import { ChannelCategoriesState } from './channel_categories';
5
+ import { CloudState } from './cloud';
6
+ import { EmojisState } from './emojis';
7
+ import { FilesState } from './files';
8
+ import { GeneralState } from './general';
9
+ import { GroupsState } from './groups';
10
+ import { IntegrationsState } from './integrations';
11
+ import { JobsState } from './jobs';
12
+ import { PostsState } from './posts';
13
+ import { PreferenceType } from './preferences';
14
+ import { AdminRequestsStatuses, ChannelsRequestsStatuses, FilesRequestsStatuses, GeneralRequestsStatuses, JobsRequestsStatuses, PostsRequestsStatuses, RolesRequestsStatuses, TeamsRequestsStatuses, UsersRequestsStatuses } from './requests';
15
+ import { Role } from './roles';
16
+ import { SchemesState } from './schemes';
17
+ import { SearchState } from './search';
18
+ import { TeamsState } from './teams';
19
+ import { ThreadsState } from './threads';
20
+ import { Typing } from './typing';
21
+ import { UsersState } from './users';
22
+ import { AppsState } from './apps';
23
+ export declare type GlobalState = {
24
+ entities: {
25
+ general: GeneralState;
26
+ users: UsersState;
27
+ teams: TeamsState;
28
+ channels: ChannelsState;
29
+ posts: PostsState;
30
+ threads: ThreadsState;
31
+ bots: {
32
+ accounts: Record<string, Bot>;
33
+ };
34
+ preferences: {
35
+ myPreferences: {
36
+ [x: string]: PreferenceType;
37
+ };
38
+ };
39
+ admin: AdminState;
40
+ jobs: JobsState;
41
+ search: SearchState;
42
+ integrations: IntegrationsState;
43
+ files: FilesState;
44
+ emojis: EmojisState;
45
+ typing: Typing;
46
+ roles: {
47
+ roles: {
48
+ [x: string]: Role;
49
+ };
50
+ pending: Set<string>;
51
+ };
52
+ schemes: SchemesState;
53
+ gifs: any;
54
+ groups: GroupsState;
55
+ channelCategories: ChannelCategoriesState;
56
+ apps: AppsState;
57
+ cloud: CloudState;
58
+ };
59
+ errors: any[];
60
+ requests: {
61
+ channels: ChannelsRequestsStatuses;
62
+ general: GeneralRequestsStatuses;
63
+ posts: PostsRequestsStatuses;
64
+ teams: TeamsRequestsStatuses;
65
+ users: UsersRequestsStatuses;
66
+ admin: AdminRequestsStatuses;
67
+ files: FilesRequestsStatuses;
68
+ roles: RolesRequestsStatuses;
69
+ jobs: JobsRequestsStatuses;
70
+ };
71
+ websocket: {
72
+ connected: boolean;
73
+ lastConnectAt: number;
74
+ lastDisconnectAt: number;
75
+ };
76
+ };
package/lib/store.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 });