@mattermost/types 9.3.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.
Files changed (47) 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 +4 -4
  10. package/lib/cloud.d.ts +28 -20
  11. package/lib/compliance.d.ts +1 -1
  12. package/lib/config.d.ts +65 -52
  13. package/lib/data_retention.d.ts +7 -7
  14. package/lib/drafts.d.ts +1 -1
  15. package/lib/emojis.d.ts +7 -7
  16. package/lib/errors.d.ts +1 -1
  17. package/lib/files.d.ts +5 -5
  18. package/lib/general.d.ts +2 -2
  19. package/lib/groups.d.ts +22 -22
  20. package/lib/hosted_customer.d.ts +5 -5
  21. package/lib/integration_actions.d.ts +4 -4
  22. package/lib/integrations.d.ts +12 -12
  23. package/lib/jobs.d.ts +6 -6
  24. package/lib/marketplace.d.ts +1 -1
  25. package/lib/message_attachments.d.ts +2 -2
  26. package/lib/mfa.d.ts +1 -1
  27. package/lib/plugins.d.ts +14 -14
  28. package/lib/posts.d.ts +18 -18
  29. package/lib/preferences.d.ts +2 -2
  30. package/lib/product_notices.d.ts +2 -2
  31. package/lib/products.d.ts +2 -2
  32. package/lib/reactions.d.ts +1 -1
  33. package/lib/requests.d.ts +13 -13
  34. package/lib/roles.d.ts +1 -1
  35. package/lib/saml.d.ts +2 -2
  36. package/lib/schemes.d.ts +4 -4
  37. package/lib/search.d.ts +3 -3
  38. package/lib/sessions.d.ts +1 -1
  39. package/lib/setup.d.ts +1 -1
  40. package/lib/store.d.ts +1 -1
  41. package/lib/teams.d.ts +11 -11
  42. package/lib/terms_of_service.d.ts +1 -1
  43. package/lib/threads.d.ts +6 -6
  44. package/lib/typing.d.ts +1 -1
  45. package/lib/users.d.ts +11 -11
  46. package/lib/utilities.d.ts +8 -8
  47. package/package.json +1 -1
@@ -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
  };
@@ -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' | '';
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;
package/lib/requests.d.ts CHANGED
@@ -1,56 +1,56 @@
1
- export declare type RequestStatusOption = 'not_started' | 'started' | 'success' | 'failure' | 'cancelled';
2
- export declare type RequestStatusType = {
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 declare type ChannelsRequestsStatuses = {
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 declare type GeneralRequestsStatuses = {
13
+ export type GeneralRequestsStatuses = {
14
14
  websocket: RequestStatusType;
15
15
  };
16
- export declare type PostsRequestsStatuses = {
16
+ export type PostsRequestsStatuses = {
17
17
  createPost: RequestStatusType;
18
18
  editPost: RequestStatusType;
19
19
  getPostThread: RequestStatusType;
20
20
  };
21
- export declare type ThreadsRequestStatuses = {
21
+ export type ThreadsRequestStatuses = {
22
22
  getThreads: RequestStatusType;
23
23
  };
24
- export declare type TeamsRequestsStatuses = {
24
+ export type TeamsRequestsStatuses = {
25
25
  getMyTeams: RequestStatusType;
26
26
  getTeams: RequestStatusType;
27
27
  joinTeam: RequestStatusType;
28
28
  };
29
- export declare type UsersRequestsStatuses = {
29
+ export type UsersRequestsStatuses = {
30
30
  login: RequestStatusType;
31
31
  logout: RequestStatusType;
32
32
  autocompleteUsers: RequestStatusType;
33
33
  updateMe: RequestStatusType;
34
34
  };
35
- export declare type AdminRequestsStatuses = {
35
+ export type AdminRequestsStatuses = {
36
36
  createCompliance: RequestStatusType;
37
37
  };
38
- export declare type EmojisRequestsStatuses = {
38
+ export type EmojisRequestsStatuses = {
39
39
  createCustomEmoji: RequestStatusType;
40
40
  getCustomEmojis: RequestStatusType;
41
41
  deleteCustomEmoji: RequestStatusType;
42
42
  getCustomEmoji: RequestStatusType;
43
43
  };
44
- export declare type FilesRequestsStatuses = {
44
+ export type FilesRequestsStatuses = {
45
45
  uploadFiles: RequestStatusType;
46
46
  };
47
- export declare type RolesRequestsStatuses = {
47
+ export type RolesRequestsStatuses = {
48
48
  getRolesByNames: RequestStatusType;
49
49
  getRoleByName: RequestStatusType;
50
50
  getRole: RequestStatusType;
51
51
  editRole: RequestStatusType;
52
52
  };
53
- export declare type SearchRequestsStatuses = {
53
+ export type SearchRequestsStatuses = {
54
54
  flaggedPosts: RequestStatusType;
55
55
  pinnedPosts: RequestStatusType;
56
56
  };
package/lib/roles.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare type Role = {
1
+ export type Role = {
2
2
  id: string;
3
3
  name: string;
4
4
  display_name: string;
package/lib/saml.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- export declare type SamlCertificateStatus = {
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 declare type SamlMetadataResponse = {
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 declare type SchemeScope = 'team' | 'channel';
2
- export declare type Scheme = {
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 declare type SchemesState = {
21
+ export type SchemesState = {
22
22
  schemes: {
23
23
  [x: string]: Scheme;
24
24
  };
25
25
  };
26
- export declare type SchemePatch = {
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 declare type Search = {
1
+ export type Search = {
2
2
  terms: string;
3
3
  isOrSearch: boolean;
4
4
  };
5
- export declare type SearchState = {
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 declare type SearchParameter = {
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
@@ -1,5 +1,5 @@
1
1
  import { TeamMembership } from './teams';
2
- export declare type Session = {
2
+ export type Session = {
3
3
  id: string;
4
4
  token: string;
5
5
  create_at: number;
package/lib/setup.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare type CompleteOnboardingRequest = {
1
+ export type CompleteOnboardingRequest = {
2
2
  organization: string;
3
3
  install_plugins: string[];
4
4
  };
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 declare type GlobalState = {
24
+ export type GlobalState = {
25
25
  entities: {
26
26
  general: GeneralState;
27
27
  users: UsersState;