@mattermost/types 9.2.0 → 9.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 +5 -4
  10. package/lib/cloud.d.ts +28 -20
  11. package/lib/compliance.d.ts +1 -1
  12. package/lib/config.d.ts +67 -54
  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 +28 -17
  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 +12 -11
  46. package/lib/utilities.d.ts +9 -9
  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;
@@ -110,7 +110,6 @@ export declare type ClientConfig = {
110
110
  ExperimentalEnablePostMetadata: string;
111
111
  ExperimentalGroupUnreadChannels: string;
112
112
  ExperimentalPrimaryTeam: string;
113
- ExperimentalTimezone: string;
114
113
  ExperimentalViewArchivedChannels: string;
115
114
  FileLevel: string;
116
115
  FeatureFlagAppsEnabled: string;
@@ -196,8 +195,9 @@ export declare type ClientConfig = {
196
195
  AllowPersistentNotificationsForGuests: string;
197
196
  DelayChannelAutocomplete: 'true' | 'false';
198
197
  ServiceEnvironment: string;
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;
@@ -367,8 +367,10 @@ export declare type ServiceSettings = {
367
367
  PersistentNotificationIntervalMinutes: number;
368
368
  PersistentNotificationMaxCount: number;
369
369
  PersistentNotificationMaxRecipients: number;
370
+ UniqueEmojiReactionLimitPerPost: number;
371
+ RefreshPostStatsRunTime: string;
370
372
  };
371
- export declare type TeamSettings = {
373
+ export type TeamSettings = {
372
374
  SiteName: string;
373
375
  MaxUsersPerTeam: number;
374
376
  EnableCustomUserStatuses: boolean;
@@ -393,13 +395,13 @@ export declare type TeamSettings = {
393
395
  EnableLastActiveTime: boolean;
394
396
  EnableJoinLeaveMessageByDefault: boolean;
395
397
  };
396
- export declare type ClientRequirements = {
398
+ export type ClientRequirements = {
397
399
  AndroidLatestVersion: string;
398
400
  AndroidMinVersion: string;
399
401
  IosLatestVersion: string;
400
402
  IosMinVersion: string;
401
403
  };
402
- export declare type SqlSettings = {
404
+ export type SqlSettings = {
403
405
  DriverName: string;
404
406
  DataSource: string;
405
407
  DataSourceReplicas: string[];
@@ -416,7 +418,7 @@ export declare type SqlSettings = {
416
418
  ReplicaLagSettings: ReplicaLagSetting[];
417
419
  ReplicaMonitorIntervalSeconds: number;
418
420
  };
419
- export declare type LogSettings = {
421
+ export type LogSettings = {
420
422
  EnableConsole: boolean;
421
423
  ConsoleLevel: string;
422
424
  ConsoleJson: boolean;
@@ -432,7 +434,7 @@ export declare type LogSettings = {
432
434
  AdvancedLoggingConfig: string;
433
435
  AdvancedLoggingJSON: Record<string, any>;
434
436
  };
435
- export declare type ExperimentalAuditSettings = {
437
+ export type ExperimentalAuditSettings = {
436
438
  FileEnabled: boolean;
437
439
  FileName: string;
438
440
  FileMaxSizeMB: number;
@@ -443,7 +445,7 @@ export declare type ExperimentalAuditSettings = {
443
445
  AdvancedLoggingConfig: string;
444
446
  AdvancedLoggingJSON: Record<string, any>;
445
447
  };
446
- export declare type NotificationLogSettings = {
448
+ export type NotificationLogSettings = {
447
449
  EnableConsole: boolean;
448
450
  ConsoleLevel: string;
449
451
  ConsoleJson: boolean;
@@ -455,7 +457,7 @@ export declare type NotificationLogSettings = {
455
457
  AdvancedLoggingConfig: string;
456
458
  AdvancedLoggingJSON: Record<string, any>;
457
459
  };
458
- export declare type PasswordSettings = {
460
+ export type PasswordSettings = {
459
461
  MinimumLength: number;
460
462
  Lowercase: boolean;
461
463
  Number: boolean;
@@ -463,7 +465,7 @@ export declare type PasswordSettings = {
463
465
  Symbol: boolean;
464
466
  EnableForgotLink: boolean;
465
467
  };
466
- export declare type FileSettings = {
468
+ export type FileSettings = {
467
469
  EnableFileAttachments: boolean;
468
470
  EnableMobileUpload: boolean;
469
471
  EnableMobileDownload: boolean;
@@ -504,7 +506,7 @@ export declare type FileSettings = {
504
506
  ExportAmazonS3RequestTimeoutMilliseconds: number;
505
507
  ExportAmazonS3PresignExpiresSeconds: number;
506
508
  };
507
- export declare type EmailSettings = {
509
+ export type EmailSettings = {
508
510
  EnableSignUpWithEmail: boolean;
509
511
  EnableSignInWithEmail: boolean;
510
512
  EnableSignInWithUsername: boolean;
@@ -538,7 +540,7 @@ export declare type EmailSettings = {
538
540
  LoginButtonBorderColor: string;
539
541
  LoginButtonTextColor: string;
540
542
  };
541
- export declare type RateLimitSettings = {
543
+ export type RateLimitSettings = {
542
544
  Enable: boolean;
543
545
  PerSec: number;
544
546
  MaxBurst: number;
@@ -547,11 +549,11 @@ export declare type RateLimitSettings = {
547
549
  VaryByUser: boolean;
548
550
  VaryByHeader: string;
549
551
  };
550
- export declare type PrivacySettings = {
552
+ export type PrivacySettings = {
551
553
  ShowEmailAddress: boolean;
552
554
  ShowFullName: boolean;
553
555
  };
554
- export declare type SupportSettings = {
556
+ export type SupportSettings = {
555
557
  TermsOfServiceLink: string;
556
558
  PrivacyPolicyLink: string;
557
559
  AboutLink: string;
@@ -563,7 +565,7 @@ export declare type SupportSettings = {
563
565
  CustomTermsOfServiceReAcceptancePeriod: number;
564
566
  EnableAskCommunityLink: boolean;
565
567
  };
566
- export declare type AnnouncementSettings = {
568
+ export type AnnouncementSettings = {
567
569
  EnableBanner: boolean;
568
570
  BannerText: string;
569
571
  BannerColor: string;
@@ -575,13 +577,13 @@ export declare type AnnouncementSettings = {
575
577
  NoticesFetchFrequency: number;
576
578
  NoticesSkipCache: boolean;
577
579
  };
578
- export declare type ThemeSettings = {
580
+ export type ThemeSettings = {
579
581
  EnableThemeSelection: boolean;
580
582
  DefaultTheme: string;
581
583
  AllowCustomThemes: boolean;
582
584
  AllowedThemes: string[];
583
585
  };
584
- export declare type SSOSettings = {
586
+ export type SSOSettings = {
585
587
  Enable: boolean;
586
588
  Secret: string;
587
589
  Id: string;
@@ -593,7 +595,7 @@ export declare type SSOSettings = {
593
595
  ButtonText: string;
594
596
  ButtonColor: string;
595
597
  };
596
- export declare type Office365Settings = {
598
+ export type Office365Settings = {
597
599
  Enable: boolean;
598
600
  Secret: string;
599
601
  Id: string;
@@ -604,7 +606,7 @@ export declare type Office365Settings = {
604
606
  DiscoveryEndpoint: string;
605
607
  DirectoryId: string;
606
608
  };
607
- export declare type LdapSettings = {
609
+ export type LdapSettings = {
608
610
  Enable: boolean;
609
611
  EnableSync: boolean;
610
612
  LdapServer: string;
@@ -641,18 +643,18 @@ export declare type LdapSettings = {
641
643
  LoginButtonTextColor: string;
642
644
  Trace: boolean;
643
645
  };
644
- export declare type ComplianceSettings = {
646
+ export type ComplianceSettings = {
645
647
  Enable: boolean;
646
648
  Directory: string;
647
649
  EnableDaily: boolean;
648
650
  BatchSize: number;
649
651
  };
650
- export declare type LocalizationSettings = {
652
+ export type LocalizationSettings = {
651
653
  DefaultServerLocale: string;
652
654
  DefaultClientLocale: string;
653
655
  AvailableLocales: string;
654
656
  };
655
- export declare type SamlSettings = {
657
+ export type SamlSettings = {
656
658
  Enable: boolean;
657
659
  EnableSyncWithLdap: boolean;
658
660
  EnableSyncWithLdapIncludeAuth: boolean;
@@ -688,13 +690,13 @@ export declare type SamlSettings = {
688
690
  LoginButtonBorderColor: string;
689
691
  LoginButtonTextColor: string;
690
692
  };
691
- export declare type NativeAppSettings = {
693
+ export type NativeAppSettings = {
692
694
  AppCustomURLSchemes: string[];
693
695
  AppDownloadLink: string;
694
696
  AndroidAppDownloadLink: string;
695
697
  IosAppDownloadLink: string;
696
698
  };
697
- export declare type ClusterSettings = {
699
+ export type ClusterSettings = {
698
700
  Enable: boolean;
699
701
  ClusterName: string;
700
702
  OverrideHostname: string;
@@ -711,12 +713,12 @@ export declare type ClusterSettings = {
711
713
  MaxIdleConnsPerHost: number;
712
714
  IdleConnTimeoutMilliseconds: number;
713
715
  };
714
- export declare type MetricsSettings = {
716
+ export type MetricsSettings = {
715
717
  Enable: boolean;
716
718
  BlockProfileRate: number;
717
719
  ListenAddress: string;
718
720
  };
719
- export declare type ExperimentalSettings = {
721
+ export type ExperimentalSettings = {
720
722
  ClientSideCertEnable: boolean;
721
723
  ClientSideCertCheck: string;
722
724
  LinkMetadataTimeoutMilliseconds: number;
@@ -728,10 +730,10 @@ export declare type ExperimentalSettings = {
728
730
  DisableRefetchingOnBrowserFocus: boolean;
729
731
  DelayChannelAutocomplete: boolean;
730
732
  };
731
- export declare type AnalyticsSettings = {
733
+ export type AnalyticsSettings = {
732
734
  MaxUsersForStatistics: number;
733
735
  };
734
- export declare type ElasticsearchSettings = {
736
+ export type ElasticsearchSettings = {
735
737
  ConnectionURL: string;
736
738
  Username: string;
737
739
  Password: string;
@@ -758,14 +760,14 @@ export declare type ElasticsearchSettings = {
758
760
  Trace: string;
759
761
  IgnoredPurgeIndexes: string;
760
762
  };
761
- export declare type BleveSettings = {
763
+ export type BleveSettings = {
762
764
  IndexDir: string;
763
765
  EnableIndexing: boolean;
764
766
  EnableSearching: boolean;
765
767
  EnableAutocomplete: boolean;
766
768
  BatchSize: number;
767
769
  };
768
- export declare type DataRetentionSettings = {
770
+ export type DataRetentionSettings = {
769
771
  EnableMessageDeletion: boolean;
770
772
  EnableFileDeletion: boolean;
771
773
  MessageRetentionDays: number;
@@ -777,7 +779,7 @@ export declare type DataRetentionSettings = {
777
779
  TimeBetweenBatchesMilliseconds: number;
778
780
  RetentionIdsBatchSize: number;
779
781
  };
780
- export declare type MessageExportSettings = {
782
+ export type MessageExportSettings = {
781
783
  EnableExport: boolean;
782
784
  DownloadExportResults: boolean;
783
785
  ExportFormat: string;
@@ -790,16 +792,18 @@ export declare type MessageExportSettings = {
790
792
  SMTPPassword: string;
791
793
  EmailAddress: string;
792
794
  SMTPServerTimeout: number;
795
+ CustomSMTPServerName: string;
796
+ CustomSMTPPort: string;
793
797
  };
794
798
  };
795
- export declare type JobSettings = {
799
+ export type JobSettings = {
796
800
  RunJobs: boolean;
797
801
  RunScheduler: boolean;
798
802
  CleanupJobsThresholdDays: number;
799
803
  CleanupConfigThresholdDays: number;
800
804
  };
801
- export declare type ProductSettings = {};
802
- export declare type PluginSettings = {
805
+ export type ProductSettings = {};
806
+ export type PluginSettings = {
803
807
  Enable: boolean;
804
808
  EnableUploads: boolean;
805
809
  AllowInsecureDownloadURL: boolean;
@@ -818,39 +822,38 @@ export declare type PluginSettings = {
818
822
  SignaturePublicKeyFiles: string[];
819
823
  ChimeraOAuthProxyURL: string;
820
824
  };
821
- export declare type DisplaySettings = {
825
+ export type DisplaySettings = {
822
826
  CustomURLSchemes: string[];
823
- ExperimentalTimezone: boolean;
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;