@mattermost/types 9.3.0 → 9.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.
Files changed (50) hide show
  1. package/lib/admin.d.ts +12 -12
  2. package/lib/apps.d.ts +31 -31
  3. package/lib/audits.d.ts +1 -1
  4. package/lib/autocomplete.d.ts +2 -2
  5. package/lib/boards.d.ts +2 -2
  6. package/lib/bots.d.ts +2 -2
  7. package/lib/channel_categories.d.ts +4 -4
  8. package/lib/channels.d.ts +19 -17
  9. package/lib/client4.d.ts +26 -4
  10. package/lib/client4.js +7 -1
  11. package/lib/cloud.d.ts +31 -20
  12. package/lib/compliance.d.ts +1 -1
  13. package/lib/config.d.ts +86 -54
  14. package/lib/data_retention.d.ts +7 -7
  15. package/lib/drafts.d.ts +1 -1
  16. package/lib/emojis.d.ts +7 -7
  17. package/lib/errors.d.ts +1 -1
  18. package/lib/files.d.ts +5 -5
  19. package/lib/general.d.ts +2 -2
  20. package/lib/groups.d.ts +22 -22
  21. package/lib/hosted_customer.d.ts +5 -5
  22. package/lib/integration_actions.d.ts +4 -4
  23. package/lib/integrations.d.ts +12 -12
  24. package/lib/jobs.d.ts +6 -6
  25. package/lib/limits.d.ts +7 -0
  26. package/lib/limits.js +4 -0
  27. package/lib/marketplace.d.ts +1 -1
  28. package/lib/message_attachments.d.ts +2 -2
  29. package/lib/mfa.d.ts +1 -1
  30. package/lib/plugins.d.ts +14 -14
  31. package/lib/posts.d.ts +18 -18
  32. package/lib/preferences.d.ts +2 -2
  33. package/lib/product_notices.d.ts +2 -2
  34. package/lib/products.d.ts +2 -2
  35. package/lib/reactions.d.ts +1 -1
  36. package/lib/requests.d.ts +13 -13
  37. package/lib/roles.d.ts +1 -1
  38. package/lib/saml.d.ts +2 -2
  39. package/lib/schemes.d.ts +4 -4
  40. package/lib/search.d.ts +3 -3
  41. package/lib/sessions.d.ts +1 -1
  42. package/lib/setup.d.ts +1 -1
  43. package/lib/store.d.ts +3 -1
  44. package/lib/teams.d.ts +16 -13
  45. package/lib/terms_of_service.d.ts +1 -1
  46. package/lib/threads.d.ts +6 -6
  47. package/lib/typing.d.ts +1 -1
  48. package/lib/users.d.ts +18 -11
  49. package/lib/utilities.d.ts +8 -8
  50. package/package.json +1 -1
package/lib/groups.d.ts CHANGED
@@ -4,19 +4,19 @@ export declare enum SyncableType {
4
4
  Team = "team",
5
5
  Channel = "channel"
6
6
  }
7
- export declare type SyncablePatch = {
7
+ export type SyncablePatch = {
8
8
  scheme_admin: boolean;
9
9
  auto_add: boolean;
10
10
  };
11
- export declare type GroupPatch = {
11
+ export type GroupPatch = {
12
12
  allow_reference: boolean;
13
13
  name?: string;
14
14
  };
15
- export declare type CustomGroupPatch = {
15
+ export type CustomGroupPatch = {
16
16
  name: string;
17
17
  display_name: string;
18
18
  };
19
- export declare type Group = {
19
+ export type Group = {
20
20
  id: string;
21
21
  name: string;
22
22
  display_name: string;
@@ -38,7 +38,7 @@ export declare enum GroupSource {
38
38
  Ldap = "ldap",
39
39
  Custom = "custom"
40
40
  }
41
- export declare type GroupTeam = {
41
+ export type GroupTeam = {
42
42
  team_id: string;
43
43
  team_display_name: string;
44
44
  team_type?: string;
@@ -49,7 +49,7 @@ export declare type GroupTeam = {
49
49
  delete_at?: number;
50
50
  update_at?: number;
51
51
  };
52
- export declare type GroupChannel = {
52
+ export type GroupChannel = {
53
53
  channel_id: string;
54
54
  channel_display_name: string;
55
55
  channel_type?: string;
@@ -63,7 +63,7 @@ export declare type GroupChannel = {
63
63
  delete_at?: number;
64
64
  update_at?: number;
65
65
  };
66
- export declare type GroupSyncable = {
66
+ export type GroupSyncable = {
67
67
  group_id: string;
68
68
  auto_add: boolean;
69
69
  scheme_admin: boolean;
@@ -72,51 +72,51 @@ export declare type GroupSyncable = {
72
72
  update_at: number;
73
73
  type: 'Team' | 'Channel';
74
74
  };
75
- export declare type GroupSyncablesState = {
75
+ export type GroupSyncablesState = {
76
76
  teams: GroupTeam[];
77
77
  channels: GroupChannel[];
78
78
  };
79
- export declare type GroupsState = {
79
+ export type GroupsState = {
80
80
  syncables: Record<string, GroupSyncablesState>;
81
81
  stats: RelationOneToOne<Group, GroupStats>;
82
82
  groups: Record<string, Group>;
83
83
  myGroups: string[];
84
84
  };
85
- export declare type GroupStats = {
85
+ export type GroupStats = {
86
86
  group_id: string;
87
87
  total_member_count: number;
88
88
  };
89
- export declare type GroupSearchOpts = {
89
+ export type GroupSearchOpts = {
90
90
  q: string;
91
91
  is_linked?: boolean;
92
92
  is_configured?: boolean;
93
93
  };
94
- export declare type MixedUnlinkedGroup = {
94
+ export type MixedUnlinkedGroup = {
95
95
  mattermost_group_id?: string;
96
96
  name: string;
97
97
  primary_key: string;
98
98
  has_syncables?: boolean;
99
99
  };
100
- export declare type MixedUnlinkedGroupRedux = MixedUnlinkedGroup & {
100
+ export type MixedUnlinkedGroupRedux = MixedUnlinkedGroup & {
101
101
  failed?: boolean;
102
102
  };
103
- export declare type UserWithGroup = UserProfile & {
103
+ export type UserWithGroup = UserProfile & {
104
104
  groups: Group[];
105
105
  scheme_guest: boolean;
106
106
  scheme_user: boolean;
107
107
  scheme_admin: boolean;
108
108
  };
109
- export declare type GroupsWithCount = {
109
+ export type GroupsWithCount = {
110
110
  groups: Group[];
111
111
  total_group_count: number;
112
112
  channelID?: string;
113
113
  teamID?: string;
114
114
  };
115
- export declare type UsersWithGroupsAndCount = {
115
+ export type UsersWithGroupsAndCount = {
116
116
  users: UserWithGroup[];
117
117
  total_count: number;
118
118
  };
119
- export declare type GroupCreateWithUserIds = {
119
+ export type GroupCreateWithUserIds = {
120
120
  name: string;
121
121
  allow_reference: boolean;
122
122
  display_name: string;
@@ -124,7 +124,7 @@ export declare type GroupCreateWithUserIds = {
124
124
  user_ids: string[];
125
125
  description?: string;
126
126
  };
127
- export declare type GetGroupsParams = {
127
+ export type GetGroupsParams = {
128
128
  filter_allow_reference?: boolean;
129
129
  page?: number;
130
130
  per_page?: number;
@@ -133,20 +133,20 @@ export declare type GetGroupsParams = {
133
133
  filter_archived?: boolean;
134
134
  include_member_ids?: boolean;
135
135
  };
136
- export declare type GetGroupsForUserParams = GetGroupsParams & {
136
+ export type GetGroupsForUserParams = GetGroupsParams & {
137
137
  filter_has_member: string;
138
138
  };
139
- export declare type GroupSearchParams = GetGroupsParams & {
139
+ export type GroupSearchParams = GetGroupsParams & {
140
140
  q: string;
141
141
  filter_has_member?: string;
142
142
  include_timezones?: string;
143
143
  include_channel_member_count?: string;
144
144
  };
145
- export declare type GroupMembership = {
145
+ export type GroupMembership = {
146
146
  user_id: string;
147
147
  roles: string;
148
148
  };
149
- export declare type GroupPermissions = {
149
+ export type GroupPermissions = {
150
150
  can_delete: boolean;
151
151
  can_manage_members: boolean;
152
152
  can_restore: boolean;
@@ -30,7 +30,7 @@ export interface SelfHostedSignupSuccessResponse {
30
30
  progress: ValueOf<typeof SelfHostedSignupProgress>;
31
31
  license: Record<string, string>;
32
32
  }
33
- export declare type HostedCustomerState = {
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 declare type TrueUpReviewProfile = {
51
+ export type TrueUpReviewProfile = {
52
52
  content: string;
53
53
  };
54
- export declare type TrueUpReviewStatus = {
54
+ export type TrueUpReviewStatus = {
55
55
  due_date: number;
56
56
  complete: boolean;
57
57
  };
58
- declare type RequestState = 'IDLE' | 'LOADING' | 'OK';
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 declare type SelfHostedExpansionRequest = {
65
+ export type SelfHostedExpansionRequest = {
66
66
  seats: number;
67
67
  license_id: string;
68
68
  };
@@ -1,4 +1,4 @@
1
- export declare type PostAction = {
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 declare type PostActionOption = {
13
+ export type PostActionOption = {
14
14
  text: string;
15
15
  value: string;
16
16
  };
17
- export declare type PostActionIntegration = {
17
+ export type PostActionIntegration = {
18
18
  url?: string;
19
19
  context?: Record<string, any>;
20
20
  };
21
- export declare type PostActionResponse = {
21
+ export type PostActionResponse = {
22
22
  status: string;
23
23
  trigger_id: string;
24
24
  };
@@ -1,6 +1,6 @@
1
1
  import { MessageAttachment } from './message_attachments';
2
2
  import { IDMappedObjects } from './utilities';
3
- export declare type IncomingWebhook = {
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 declare type OutgoingWebhook = {
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 declare type Command = {
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 declare type CommandArgs = {
54
+ export type CommandArgs = {
55
55
  channel_id: string;
56
56
  team_id?: string;
57
57
  root_id?: string;
58
58
  };
59
- export declare type CommandResponse = {
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 declare type AutocompleteSuggestion = {
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 declare type CommandAutocompleteSuggestion = AutocompleteSuggestion;
82
- export declare type OAuthApp = {
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 declare type IntegrationsState = {
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 declare type DialogSubmission = {
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 declare type DialogElement = {
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 declare type SubmitDialogResponse = {
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 declare type JobType = 'data_retention' | 'elasticsearch_post_indexing' | 'bleve_post_indexing' | 'ldap_sync' | 'message_export';
3
- export declare type JobStatus = 'pending' | 'in_progress' | 'success' | 'error' | 'cancel_requested' | 'canceled' | 'warning';
4
- export declare type Job = JobTypeBase & {
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 declare type JobsByType = {
14
+ export type JobsByType = {
15
15
  [x in JobType]?: Job[];
16
16
  };
17
- export declare type JobsState = {
17
+ export type JobsState = {
18
18
  jobs: IDMappedObjects<Job>;
19
19
  jobsByTypeList: JobsByType;
20
20
  };
21
- export declare type JobTypeBase = {
21
+ export type JobTypeBase = {
22
22
  type: JobType;
23
23
  };
@@ -0,0 +1,7 @@
1
+ export type LimitsState = {
2
+ usersLimits: UsersLimits;
3
+ };
4
+ export type UsersLimits = {
5
+ activeUserCount: number;
6
+ maxUsersLimit: number;
7
+ };
package/lib/limits.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 });
@@ -1,6 +1,6 @@
1
1
  import { PluginManifest } from './plugins';
2
2
  import { AppManifest } from './apps';
3
- export declare type MarketplaceLabel = {
3
+ export type MarketplaceLabel = {
4
4
  name: string;
5
5
  description?: string;
6
6
  url?: string;
@@ -1,5 +1,5 @@
1
1
  import { PostAction } from './integration_actions';
2
- export declare type MessageAttachment = {
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 declare type MessageAttachmentField = {
21
+ export type MessageAttachmentField = {
22
22
  title: string;
23
23
  value: any;
24
24
  short: boolean;
package/lib/mfa.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare type MfaSecret = {
1
+ export type MfaSecret = {
2
2
  secret: string;
3
3
  qr_code: string;
4
4
  };
package/lib/plugins.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare type PluginManifest = {
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 declare type PluginRedux = PluginManifest & {
18
+ export type PluginRedux = PluginManifest & {
19
19
  active: boolean;
20
20
  };
21
- export declare type PluginManifestServer = {
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 declare type PluginManifestWebapp = {
29
+ export type PluginManifestWebapp = {
30
30
  bundle_path: string;
31
31
  };
32
- export declare type PluginSettingsSchema = {
32
+ export type PluginSettingsSchema = {
33
33
  header: string;
34
34
  footer: string;
35
35
  settings: PluginSetting[];
36
36
  };
37
- export declare type PluginSetting = {
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 declare type PluginSettingOption = {
48
+ export type PluginSettingOption = {
49
49
  display_name: string;
50
50
  value: string;
51
51
  };
52
- export declare type PluginsResponse = {
52
+ export type PluginsResponse = {
53
53
  active: PluginManifest[];
54
54
  inactive: PluginManifest[];
55
55
  };
56
- export declare type PluginStatus = {
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
- declare type PluginInstance = {
65
+ type PluginInstance = {
66
66
  cluster_id: string;
67
67
  version: string;
68
68
  state: number;
69
69
  };
70
- export declare type PluginStatusRedux = {
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 declare type ClientPluginManifest = {
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 declare type MarketplaceLabel = {
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 declare type MarketplacePlugin = {
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
@@ -5,30 +5,30 @@ import { Reaction } from './reactions';
5
5
  import { TeamType } from './teams';
6
6
  import { UserProfile } from './users';
7
7
  import { RelationOneToOne, RelationOneToMany, IDMappedObjects } from './utilities';
8
- 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' | 'system_fake_parent_deleted' | 'system_generic' | 'reminder' | '';
9
- export declare type PostEmbedType = 'image' | 'link' | 'message_attachment' | 'opengraph' | 'permalink';
10
- export declare type PostEmbed = {
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' | '';
9
+ export type PostEmbedType = 'image' | 'link' | 'message_attachment' | 'opengraph' | 'permalink';
10
+ export type PostEmbed = {
11
11
  type: PostEmbedType;
12
12
  url: string;
13
13
  data?: OpenGraphMetadata | PostPreviewMetadata;
14
14
  };
15
- export declare type PostImage = {
15
+ export type PostImage = {
16
16
  format: string;
17
17
  frameCount: number;
18
18
  height: number;
19
19
  width: number;
20
20
  };
21
- export declare type PostAcknowledgement = {
21
+ export type PostAcknowledgement = {
22
22
  post_id: Post['id'];
23
23
  user_id: UserProfile['id'];
24
24
  acknowledged_at: number;
25
25
  };
26
- export declare type PostPriorityMetadata = {
26
+ export type PostPriorityMetadata = {
27
27
  priority: PostPriority | '';
28
28
  requested_ack?: boolean;
29
29
  persistent_notifications?: boolean;
30
30
  };
31
- export declare type PostMetadata = {
31
+ export type PostMetadata = {
32
32
  embeds: PostEmbed[];
33
33
  emojis: CustomEmoji[];
34
34
  files: FileInfo[];
@@ -37,7 +37,7 @@ export declare type PostMetadata = {
37
37
  priority?: PostPriorityMetadata;
38
38
  acknowledgements?: PostAcknowledgement[];
39
39
  };
40
- export declare type Post = {
40
+ export type Post = {
41
41
  id: string;
42
42
  create_at: number;
43
43
  update_at: number;
@@ -66,37 +66,37 @@ export declare type Post = {
66
66
  is_following?: boolean;
67
67
  exists?: boolean;
68
68
  };
69
- export declare type PostState = 'DELETED';
69
+ export type PostState = 'DELETED';
70
70
  export declare enum PostPriority {
71
71
  URGENT = "urgent",
72
72
  IMPORTANT = "important"
73
73
  }
74
- export declare type PostList = {
74
+ export type PostList = {
75
75
  order: Array<Post['id']>;
76
76
  posts: Record<string, Post>;
77
77
  next_post_id: string;
78
78
  prev_post_id: string;
79
79
  first_inaccessible_post_time: number;
80
80
  };
81
- export declare type PaginatedPostList = PostList & {
81
+ export type PaginatedPostList = PostList & {
82
82
  has_next: boolean;
83
83
  };
84
- export declare type PostSearchResults = PostList & {
84
+ export type PostSearchResults = PostList & {
85
85
  matches: RelationOneToOne<Post, string[]>;
86
86
  };
87
- export declare type PostOrderBlock = {
87
+ export type PostOrderBlock = {
88
88
  order: string[];
89
89
  recent?: boolean;
90
90
  oldest?: boolean;
91
91
  };
92
- export declare type MessageHistory = {
92
+ export type MessageHistory = {
93
93
  messages: string[];
94
94
  index: {
95
95
  post: number;
96
96
  comment: number;
97
97
  };
98
98
  };
99
- export declare type PostsState = {
99
+ export type PostsState = {
100
100
  posts: IDMappedObjects<Post>;
101
101
  postsReplies: {
102
102
  [x in Post['id']]: number;
@@ -149,7 +149,7 @@ export declare type TeamsUsageResponse = {
149
149
  active: number;
150
150
  cloud_archived: number;
151
151
  };
152
- export declare type PostAnalytics = {
152
+ export type PostAnalytics = {
153
153
  channel_id: string;
154
154
  post_id: string;
155
155
  user_actual_id: string;
@@ -158,13 +158,13 @@ export declare type PostAnalytics = {
158
158
  requested_ack?: boolean;
159
159
  persistent_notifications?: boolean;
160
160
  };
161
- export declare type ActivityEntry = {
161
+ export type ActivityEntry = {
162
162
  postType: Post['type'];
163
163
  actorId: string[];
164
164
  userIds: string[];
165
165
  usernames: string[];
166
166
  };
167
- export declare type PostInfo = {
167
+ export type PostInfo = {
168
168
  channel_id: string;
169
169
  channel_type: ChannelType;
170
170
  channel_display_name: string;
@@ -1,9 +1,9 @@
1
- export declare type PreferenceType = {
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 declare type PreferencesType = {
7
+ export type PreferencesType = {
8
8
  [x: string]: PreferenceType;
9
9
  };
@@ -1,7 +1,7 @@
1
1
  export declare enum Action {
2
2
  URL = "url"
3
3
  }
4
- export declare type ProductNotice = {
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 declare type ProductNotices = ProductNotice[];
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 declare type ProductIdentifier = null | string;
5
+ export type ProductIdentifier = null | string;
6
6
  /** @see {@link ProductIdentifier} */
7
- export declare type ProductScope = ProductIdentifier | ProductIdentifier[];
7
+ export type ProductScope = ProductIdentifier | ProductIdentifier[];
@@ -1,4 +1,4 @@
1
- export declare type Reaction = {
1
+ export type Reaction = {
2
2
  user_id: string;
3
3
  post_id: string;
4
4
  emoji_name: string;