@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
package/lib/config.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare type ClientConfig = {
1
+ export type ClientConfig = {
2
2
  AboutLink: string;
3
3
  AllowBannerDismissal: string;
4
4
  AllowCustomThemes: string;
@@ -197,7 +197,7 @@ export declare type ClientConfig = {
197
197
  ServiceEnvironment: string;
198
198
  UniqueEmojiReactionLimitPerPost: string;
199
199
  };
200
- export declare type License = {
200
+ export type License = {
201
201
  id: string;
202
202
  issued_at: number;
203
203
  starts_at: number;
@@ -207,13 +207,13 @@ export declare type License = {
207
207
  sku_name: string;
208
208
  short_sku_name: string;
209
209
  };
210
- export declare type LicenseCustomer = {
210
+ export type LicenseCustomer = {
211
211
  id: string;
212
212
  name: string;
213
213
  email: string;
214
214
  company: string;
215
215
  };
216
- export declare type LicenseFeatures = {
216
+ export type LicenseFeatures = {
217
217
  users?: number;
218
218
  ldap?: boolean;
219
219
  ldap_groups?: boolean;
@@ -240,8 +240,8 @@ export declare type LicenseFeatures = {
240
240
  cloud?: boolean;
241
241
  future_features?: boolean;
242
242
  };
243
- export declare type ClientLicense = Record<string, string>;
244
- export declare type RequestLicenseBody = {
243
+ export type ClientLicense = Record<string, string>;
244
+ export type RequestLicenseBody = {
245
245
  users: number;
246
246
  terms_accepted: boolean;
247
247
  receive_emails_accepted: boolean;
@@ -251,7 +251,7 @@ export declare type RequestLicenseBody = {
251
251
  company_size: string;
252
252
  company_country: string;
253
253
  };
254
- export declare type DataRetentionPolicy = {
254
+ export type DataRetentionPolicy = {
255
255
  message_deletion_enabled: boolean;
256
256
  file_deletion_enabled: boolean;
257
257
  message_retention_cutoff: number;
@@ -259,7 +259,7 @@ export declare type DataRetentionPolicy = {
259
259
  boards_retention_cutoff: number;
260
260
  boards_deletion_enabled: boolean;
261
261
  };
262
- export declare type ServiceSettings = {
262
+ export type ServiceSettings = {
263
263
  SiteURL: string;
264
264
  WebsocketURL: string;
265
265
  LicenseFileLocation: string;
@@ -368,8 +368,9 @@ export declare type ServiceSettings = {
368
368
  PersistentNotificationMaxCount: number;
369
369
  PersistentNotificationMaxRecipients: number;
370
370
  UniqueEmojiReactionLimitPerPost: number;
371
+ RefreshPostStatsRunTime: string;
371
372
  };
372
- export declare type TeamSettings = {
373
+ export type TeamSettings = {
373
374
  SiteName: string;
374
375
  MaxUsersPerTeam: number;
375
376
  EnableCustomUserStatuses: boolean;
@@ -394,13 +395,13 @@ export declare type TeamSettings = {
394
395
  EnableLastActiveTime: boolean;
395
396
  EnableJoinLeaveMessageByDefault: boolean;
396
397
  };
397
- export declare type ClientRequirements = {
398
+ export type ClientRequirements = {
398
399
  AndroidLatestVersion: string;
399
400
  AndroidMinVersion: string;
400
401
  IosLatestVersion: string;
401
402
  IosMinVersion: string;
402
403
  };
403
- export declare type SqlSettings = {
404
+ export type SqlSettings = {
404
405
  DriverName: string;
405
406
  DataSource: string;
406
407
  DataSourceReplicas: string[];
@@ -417,7 +418,7 @@ export declare type SqlSettings = {
417
418
  ReplicaLagSettings: ReplicaLagSetting[];
418
419
  ReplicaMonitorIntervalSeconds: number;
419
420
  };
420
- export declare type LogSettings = {
421
+ export type LogSettings = {
421
422
  EnableConsole: boolean;
422
423
  ConsoleLevel: string;
423
424
  ConsoleJson: boolean;
@@ -433,7 +434,7 @@ export declare type LogSettings = {
433
434
  AdvancedLoggingConfig: string;
434
435
  AdvancedLoggingJSON: Record<string, any>;
435
436
  };
436
- export declare type ExperimentalAuditSettings = {
437
+ export type ExperimentalAuditSettings = {
437
438
  FileEnabled: boolean;
438
439
  FileName: string;
439
440
  FileMaxSizeMB: number;
@@ -444,7 +445,7 @@ export declare type ExperimentalAuditSettings = {
444
445
  AdvancedLoggingConfig: string;
445
446
  AdvancedLoggingJSON: Record<string, any>;
446
447
  };
447
- export declare type NotificationLogSettings = {
448
+ export type NotificationLogSettings = {
448
449
  EnableConsole: boolean;
449
450
  ConsoleLevel: string;
450
451
  ConsoleJson: boolean;
@@ -456,7 +457,7 @@ export declare type NotificationLogSettings = {
456
457
  AdvancedLoggingConfig: string;
457
458
  AdvancedLoggingJSON: Record<string, any>;
458
459
  };
459
- export declare type PasswordSettings = {
460
+ export type PasswordSettings = {
460
461
  MinimumLength: number;
461
462
  Lowercase: boolean;
462
463
  Number: boolean;
@@ -464,7 +465,7 @@ export declare type PasswordSettings = {
464
465
  Symbol: boolean;
465
466
  EnableForgotLink: boolean;
466
467
  };
467
- export declare type FileSettings = {
468
+ export type FileSettings = {
468
469
  EnableFileAttachments: boolean;
469
470
  EnableMobileUpload: boolean;
470
471
  EnableMobileDownload: boolean;
@@ -505,7 +506,7 @@ export declare type FileSettings = {
505
506
  ExportAmazonS3RequestTimeoutMilliseconds: number;
506
507
  ExportAmazonS3PresignExpiresSeconds: number;
507
508
  };
508
- export declare type EmailSettings = {
509
+ export type EmailSettings = {
509
510
  EnableSignUpWithEmail: boolean;
510
511
  EnableSignInWithEmail: boolean;
511
512
  EnableSignInWithUsername: boolean;
@@ -539,7 +540,7 @@ export declare type EmailSettings = {
539
540
  LoginButtonBorderColor: string;
540
541
  LoginButtonTextColor: string;
541
542
  };
542
- export declare type RateLimitSettings = {
543
+ export type RateLimitSettings = {
543
544
  Enable: boolean;
544
545
  PerSec: number;
545
546
  MaxBurst: number;
@@ -548,11 +549,11 @@ export declare type RateLimitSettings = {
548
549
  VaryByUser: boolean;
549
550
  VaryByHeader: string;
550
551
  };
551
- export declare type PrivacySettings = {
552
+ export type PrivacySettings = {
552
553
  ShowEmailAddress: boolean;
553
554
  ShowFullName: boolean;
554
555
  };
555
- export declare type SupportSettings = {
556
+ export type SupportSettings = {
556
557
  TermsOfServiceLink: string;
557
558
  PrivacyPolicyLink: string;
558
559
  AboutLink: string;
@@ -564,7 +565,7 @@ export declare type SupportSettings = {
564
565
  CustomTermsOfServiceReAcceptancePeriod: number;
565
566
  EnableAskCommunityLink: boolean;
566
567
  };
567
- export declare type AnnouncementSettings = {
568
+ export type AnnouncementSettings = {
568
569
  EnableBanner: boolean;
569
570
  BannerText: string;
570
571
  BannerColor: string;
@@ -576,13 +577,13 @@ export declare type AnnouncementSettings = {
576
577
  NoticesFetchFrequency: number;
577
578
  NoticesSkipCache: boolean;
578
579
  };
579
- export declare type ThemeSettings = {
580
+ export type ThemeSettings = {
580
581
  EnableThemeSelection: boolean;
581
582
  DefaultTheme: string;
582
583
  AllowCustomThemes: boolean;
583
584
  AllowedThemes: string[];
584
585
  };
585
- export declare type SSOSettings = {
586
+ export type SSOSettings = {
586
587
  Enable: boolean;
587
588
  Secret: string;
588
589
  Id: string;
@@ -594,7 +595,7 @@ export declare type SSOSettings = {
594
595
  ButtonText: string;
595
596
  ButtonColor: string;
596
597
  };
597
- export declare type Office365Settings = {
598
+ export type Office365Settings = {
598
599
  Enable: boolean;
599
600
  Secret: string;
600
601
  Id: string;
@@ -605,7 +606,7 @@ export declare type Office365Settings = {
605
606
  DiscoveryEndpoint: string;
606
607
  DirectoryId: string;
607
608
  };
608
- export declare type LdapSettings = {
609
+ export type LdapSettings = {
609
610
  Enable: boolean;
610
611
  EnableSync: boolean;
611
612
  LdapServer: string;
@@ -642,18 +643,18 @@ export declare type LdapSettings = {
642
643
  LoginButtonTextColor: string;
643
644
  Trace: boolean;
644
645
  };
645
- export declare type ComplianceSettings = {
646
+ export type ComplianceSettings = {
646
647
  Enable: boolean;
647
648
  Directory: string;
648
649
  EnableDaily: boolean;
649
650
  BatchSize: number;
650
651
  };
651
- export declare type LocalizationSettings = {
652
+ export type LocalizationSettings = {
652
653
  DefaultServerLocale: string;
653
654
  DefaultClientLocale: string;
654
655
  AvailableLocales: string;
655
656
  };
656
- export declare type SamlSettings = {
657
+ export type SamlSettings = {
657
658
  Enable: boolean;
658
659
  EnableSyncWithLdap: boolean;
659
660
  EnableSyncWithLdapIncludeAuth: boolean;
@@ -689,13 +690,13 @@ export declare type SamlSettings = {
689
690
  LoginButtonBorderColor: string;
690
691
  LoginButtonTextColor: string;
691
692
  };
692
- export declare type NativeAppSettings = {
693
+ export type NativeAppSettings = {
693
694
  AppCustomURLSchemes: string[];
694
695
  AppDownloadLink: string;
695
696
  AndroidAppDownloadLink: string;
696
697
  IosAppDownloadLink: string;
697
698
  };
698
- export declare type ClusterSettings = {
699
+ export type ClusterSettings = {
699
700
  Enable: boolean;
700
701
  ClusterName: string;
701
702
  OverrideHostname: string;
@@ -712,12 +713,12 @@ export declare type ClusterSettings = {
712
713
  MaxIdleConnsPerHost: number;
713
714
  IdleConnTimeoutMilliseconds: number;
714
715
  };
715
- export declare type MetricsSettings = {
716
+ export type MetricsSettings = {
716
717
  Enable: boolean;
717
718
  BlockProfileRate: number;
718
719
  ListenAddress: string;
719
720
  };
720
- export declare type ExperimentalSettings = {
721
+ export type ExperimentalSettings = {
721
722
  ClientSideCertEnable: boolean;
722
723
  ClientSideCertCheck: string;
723
724
  LinkMetadataTimeoutMilliseconds: number;
@@ -729,10 +730,10 @@ export declare type ExperimentalSettings = {
729
730
  DisableRefetchingOnBrowserFocus: boolean;
730
731
  DelayChannelAutocomplete: boolean;
731
732
  };
732
- export declare type AnalyticsSettings = {
733
+ export type AnalyticsSettings = {
733
734
  MaxUsersForStatistics: number;
734
735
  };
735
- export declare type ElasticsearchSettings = {
736
+ export type ElasticsearchSettings = {
736
737
  ConnectionURL: string;
737
738
  Username: string;
738
739
  Password: string;
@@ -759,14 +760,14 @@ export declare type ElasticsearchSettings = {
759
760
  Trace: string;
760
761
  IgnoredPurgeIndexes: string;
761
762
  };
762
- export declare type BleveSettings = {
763
+ export type BleveSettings = {
763
764
  IndexDir: string;
764
765
  EnableIndexing: boolean;
765
766
  EnableSearching: boolean;
766
767
  EnableAutocomplete: boolean;
767
768
  BatchSize: number;
768
769
  };
769
- export declare type DataRetentionSettings = {
770
+ export type DataRetentionSettings = {
770
771
  EnableMessageDeletion: boolean;
771
772
  EnableFileDeletion: boolean;
772
773
  MessageRetentionDays: number;
@@ -778,7 +779,7 @@ export declare type DataRetentionSettings = {
778
779
  TimeBetweenBatchesMilliseconds: number;
779
780
  RetentionIdsBatchSize: number;
780
781
  };
781
- export declare type MessageExportSettings = {
782
+ export type MessageExportSettings = {
782
783
  EnableExport: boolean;
783
784
  DownloadExportResults: boolean;
784
785
  ExportFormat: string;
@@ -791,16 +792,18 @@ export declare type MessageExportSettings = {
791
792
  SMTPPassword: string;
792
793
  EmailAddress: string;
793
794
  SMTPServerTimeout: number;
795
+ CustomSMTPServerName: string;
796
+ CustomSMTPPort: string;
794
797
  };
795
798
  };
796
- export declare type JobSettings = {
799
+ export type JobSettings = {
797
800
  RunJobs: boolean;
798
801
  RunScheduler: boolean;
799
802
  CleanupJobsThresholdDays: number;
800
803
  CleanupConfigThresholdDays: number;
801
804
  };
802
- export declare type ProductSettings = {};
803
- export declare type PluginSettings = {
805
+ export type ProductSettings = {};
806
+ export type PluginSettings = {
804
807
  Enable: boolean;
805
808
  EnableUploads: boolean;
806
809
  AllowInsecureDownloadURL: boolean;
@@ -819,38 +822,38 @@ export declare type PluginSettings = {
819
822
  SignaturePublicKeyFiles: string[];
820
823
  ChimeraOAuthProxyURL: string;
821
824
  };
822
- export declare type DisplaySettings = {
825
+ export type DisplaySettings = {
823
826
  CustomURLSchemes: string[];
824
827
  MaxMarkdownNodes: number;
825
828
  };
826
- export declare type GuestAccountsSettings = {
829
+ export type GuestAccountsSettings = {
827
830
  Enable: boolean;
828
831
  HideTags: boolean;
829
832
  AllowEmailAccounts: boolean;
830
833
  EnforceMultifactorAuthentication: boolean;
831
834
  RestrictCreationToDomains: string;
832
835
  };
833
- export declare type ImageProxySettings = {
836
+ export type ImageProxySettings = {
834
837
  Enable: boolean;
835
838
  ImageProxyType: string;
836
839
  RemoteImageProxyURL: string;
837
840
  RemoteImageProxyOptions: string;
838
841
  };
839
- export declare type CloudSettings = {
842
+ export type CloudSettings = {
840
843
  CWSURL: string;
841
844
  CWSAPIURL: string;
842
845
  CWSMock: boolean;
843
846
  };
844
- export declare type FeatureFlags = Record<string, string | boolean>;
845
- export declare type ImportSettings = {
847
+ export type FeatureFlags = Record<string, string | boolean>;
848
+ export type ImportSettings = {
846
849
  Directory: string;
847
850
  RetentionDays: number;
848
851
  };
849
- export declare type ExportSettings = {
852
+ export type ExportSettings = {
850
853
  Directory: string;
851
854
  RetentionDays: number;
852
855
  };
853
- export declare type AdminConfig = {
856
+ export type AdminConfig = {
854
857
  ServiceSettings: ServiceSettings;
855
858
  TeamSettings: TeamSettings;
856
859
  ClientRequirements: ClientRequirements;
@@ -894,18 +897,18 @@ export declare type AdminConfig = {
894
897
  ImportSettings: ImportSettings;
895
898
  ExportSettings: ExportSettings;
896
899
  };
897
- export declare type ReplicaLagSetting = {
900
+ export type ReplicaLagSetting = {
898
901
  DataSource: string;
899
902
  QueryAbsoluteLag: string;
900
903
  QueryTimeLag: string;
901
904
  };
902
- export declare type EnvironmentConfigSettings<T> = {
905
+ export type EnvironmentConfigSettings<T> = {
903
906
  [P in keyof T]: boolean;
904
907
  };
905
- export declare type EnvironmentConfig = {
908
+ export type EnvironmentConfig = {
906
909
  [P in keyof AdminConfig]: EnvironmentConfigSettings<AdminConfig[P]>;
907
910
  };
908
- export declare type WarnMetricStatus = {
911
+ export type WarnMetricStatus = {
909
912
  id: string;
910
913
  limit: number;
911
914
  acked: boolean;
@@ -922,3 +925,13 @@ export declare enum ServiceEnvironment {
922
925
  TEST = "test",
923
926
  DEV = "dev"
924
927
  }
928
+ export type AllowedIPRange = {
929
+ cidr_block: string;
930
+ description: string;
931
+ enabled: boolean;
932
+ owner_id: string;
933
+ };
934
+ export type AllowedIPRanges = AllowedIPRange[];
935
+ export type FetchIPResponse = {
936
+ ip: string;
937
+ };
@@ -1,30 +1,30 @@
1
- export declare type DataRetentionCustomPolicy = {
1
+ export type DataRetentionCustomPolicy = {
2
2
  id: string;
3
3
  display_name: string;
4
4
  post_duration: number;
5
5
  team_count: number;
6
6
  channel_count: number;
7
7
  };
8
- export declare type CreateDataRetentionCustomPolicy = {
8
+ export type CreateDataRetentionCustomPolicy = {
9
9
  display_name: string;
10
10
  post_duration: number;
11
11
  channel_ids: string[];
12
12
  team_ids: string[];
13
13
  };
14
- export declare type PatchDataRetentionCustomPolicy = {
14
+ export type PatchDataRetentionCustomPolicy = {
15
15
  display_name: string;
16
16
  post_duration: number;
17
17
  };
18
- export declare type PatchDataRetentionCustomPolicyTeams = {
18
+ export type PatchDataRetentionCustomPolicyTeams = {
19
19
  team_ids: string[];
20
20
  };
21
- export declare type PatchDataRetentionCustomPolicyChannels = {
21
+ export type PatchDataRetentionCustomPolicyChannels = {
22
22
  channel_ids: string[];
23
23
  };
24
- export declare type DataRetentionCustomPolicies = {
24
+ export type DataRetentionCustomPolicies = {
25
25
  [x: string]: DataRetentionCustomPolicy;
26
26
  };
27
- export declare type GetDataRetentionCustomPoliciesRequest = {
27
+ export type GetDataRetentionCustomPoliciesRequest = {
28
28
  policies: DataRetentionCustomPolicy[];
29
29
  total_count: number;
30
30
  };
package/lib/drafts.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { PostMetadata, PostPriorityMetadata } from './posts';
2
- export declare type Draft = {
2
+ export type Draft = {
3
3
  create_at: number;
4
4
  update_at: number;
5
5
  delete_at: number;
package/lib/emojis.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export declare type EmojiCategory = 'recent' | 'searchResults' | 'smileys-emotion' | 'people-body' | 'animals-nature' | 'food-drink' | 'activities' | 'travel-places' | 'objects' | 'symbols' | 'flags' | 'custom';
2
- export declare type CustomEmoji = {
1
+ export type EmojiCategory = 'recent' | 'searchResults' | 'smileys-emotion' | 'people-body' | 'animals-nature' | 'food-drink' | 'activities' | 'travel-places' | 'objects' | 'symbols' | 'flags' | 'custom';
2
+ export type CustomEmoji = {
3
3
  id: string;
4
4
  name: string;
5
5
  category: 'custom';
@@ -8,7 +8,7 @@ export declare type CustomEmoji = {
8
8
  delete_at: number;
9
9
  creator_id: string;
10
10
  };
11
- export declare type SystemEmoji = {
11
+ export type SystemEmoji = {
12
12
  name: string;
13
13
  category: EmojiCategory;
14
14
  image: string;
@@ -19,7 +19,7 @@ export declare type SystemEmoji = {
19
19
  skin_variations?: Record<string, SystemEmojiVariation>;
20
20
  unified: string;
21
21
  };
22
- export declare type SystemEmojiVariation = {
22
+ export type SystemEmojiVariation = {
23
23
  unified: string;
24
24
  non_qualified: null;
25
25
  image: string;
@@ -31,14 +31,14 @@ export declare type SystemEmojiVariation = {
31
31
  has_img_twitter: boolean;
32
32
  has_img_facebook: boolean;
33
33
  };
34
- export declare type Emoji = SystemEmoji | CustomEmoji;
35
- export declare type EmojisState = {
34
+ export type Emoji = SystemEmoji | CustomEmoji;
35
+ export type EmojisState = {
36
36
  customEmoji: {
37
37
  [x: string]: CustomEmoji;
38
38
  };
39
39
  nonExistentEmoji: Set<string>;
40
40
  };
41
- export declare type RecentEmojiData = {
41
+ export type RecentEmojiData = {
42
42
  name: string;
43
43
  usageCount: number;
44
44
  };
package/lib/errors.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare type ServerError = {
1
+ export type ServerError = {
2
2
  type?: string;
3
3
  server_error_id?: string;
4
4
  stack?: string;
package/lib/files.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare type FileInfo = {
1
+ export type FileInfo = {
2
2
  id: string;
3
3
  user_id: string;
4
4
  create_at: number;
@@ -17,7 +17,7 @@ export declare type FileInfo = {
17
17
  archived: boolean;
18
18
  link?: string;
19
19
  };
20
- export declare type FilesState = {
20
+ export type FilesState = {
21
21
  files: Record<string, FileInfo>;
22
22
  filesFromSearch: Record<string, FileSearchResultItem>;
23
23
  fileIdsByPostId: Record<string, string[]>;
@@ -25,14 +25,14 @@ export declare type FilesState = {
25
25
  link: string;
26
26
  };
27
27
  };
28
- export declare type FileUploadResponse = {
28
+ export type FileUploadResponse = {
29
29
  file_infos: FileInfo[];
30
30
  client_ids: string[];
31
31
  };
32
- export declare type FileSearchResultItem = FileInfo & {
32
+ export type FileSearchResultItem = FileInfo & {
33
33
  channel_id: string;
34
34
  };
35
- export declare type FileSearchResults = {
35
+ export type FileSearchResults = {
36
36
  order: Array<FileSearchResultItem['id']>;
37
37
  file_infos: Map<string, FileSearchResultItem>;
38
38
  next_file_info_id: string;
package/lib/general.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { ClientConfig, ClientLicense, WarnMetricStatus } from './config';
2
- export declare type GeneralState = {
2
+ export type GeneralState = {
3
3
  config: Partial<ClientConfig>;
4
4
  dataRetentionPolicy: any;
5
5
  firstAdminVisitMarketplaceStatus: boolean;
@@ -8,7 +8,7 @@ export declare type GeneralState = {
8
8
  serverVersion: string;
9
9
  warnMetricsStatus: Record<string, WarnMetricStatus>;
10
10
  };
11
- export declare type SystemSetting = {
11
+ export type SystemSetting = {
12
12
  name: string;
13
13
  value: string;
14
14
  };
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;