@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/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;
@@ -28,8 +28,8 @@ export declare type ClientConfig = {
28
28
  CWSMock: string;
29
29
  DataRetentionEnableFileDeletion: string;
30
30
  DataRetentionEnableMessageDeletion: string;
31
- DataRetentionFileRetentionDays: string;
32
- DataRetentionMessageRetentionDays: string;
31
+ DataRetentionFileRetentionHours: string;
32
+ DataRetentionMessageRetentionHours: string;
33
33
  DefaultClientLocale: string;
34
34
  DefaultTheme: string;
35
35
  DiagnosticId: string;
@@ -194,10 +194,16 @@ export declare type ClientConfig = {
194
194
  PersistentNotificationIntervalMinutes: string;
195
195
  AllowPersistentNotificationsForGuests: string;
196
196
  DelayChannelAutocomplete: 'true' | 'false';
197
+ WranglerPermittedWranglerRoles: string;
198
+ WranglerAllowedEmailDomain: string;
199
+ WranglerMoveThreadMaxCount: string;
200
+ WranglerMoveThreadFromPrivateChannelEnable: string;
201
+ WranglerMoveThreadFromDirectMessageChannelEnable: string;
202
+ WranglerMoveThreadFromGroupMessageChannelEnable: string;
197
203
  ServiceEnvironment: string;
198
204
  UniqueEmojiReactionLimitPerPost: string;
199
205
  };
200
- export declare type License = {
206
+ export type License = {
201
207
  id: string;
202
208
  issued_at: number;
203
209
  starts_at: number;
@@ -207,13 +213,13 @@ export declare type License = {
207
213
  sku_name: string;
208
214
  short_sku_name: string;
209
215
  };
210
- export declare type LicenseCustomer = {
216
+ export type LicenseCustomer = {
211
217
  id: string;
212
218
  name: string;
213
219
  email: string;
214
220
  company: string;
215
221
  };
216
- export declare type LicenseFeatures = {
222
+ export type LicenseFeatures = {
217
223
  users?: number;
218
224
  ldap?: boolean;
219
225
  ldap_groups?: boolean;
@@ -240,8 +246,8 @@ export declare type LicenseFeatures = {
240
246
  cloud?: boolean;
241
247
  future_features?: boolean;
242
248
  };
243
- export declare type ClientLicense = Record<string, string>;
244
- export declare type RequestLicenseBody = {
249
+ export type ClientLicense = Record<string, string>;
250
+ export type RequestLicenseBody = {
245
251
  users: number;
246
252
  terms_accepted: boolean;
247
253
  receive_emails_accepted: boolean;
@@ -251,7 +257,7 @@ export declare type RequestLicenseBody = {
251
257
  company_size: string;
252
258
  company_country: string;
253
259
  };
254
- export declare type DataRetentionPolicy = {
260
+ export type DataRetentionPolicy = {
255
261
  message_deletion_enabled: boolean;
256
262
  file_deletion_enabled: boolean;
257
263
  message_retention_cutoff: number;
@@ -259,7 +265,7 @@ export declare type DataRetentionPolicy = {
259
265
  boards_retention_cutoff: number;
260
266
  boards_deletion_enabled: boolean;
261
267
  };
262
- export declare type ServiceSettings = {
268
+ export type ServiceSettings = {
263
269
  SiteURL: string;
264
270
  WebsocketURL: string;
265
271
  LicenseFileLocation: string;
@@ -285,6 +291,7 @@ export declare type ServiceSettings = {
285
291
  EnableIncomingWebhooks: boolean;
286
292
  EnableOutgoingWebhooks: boolean;
287
293
  EnableCommands: boolean;
294
+ OutgoingIntegrationRequestsTimeout: number;
288
295
  EnablePostUsernameOverride: boolean;
289
296
  EnablePostIconOverride: boolean;
290
297
  EnableLinkPreviews: boolean;
@@ -368,8 +375,9 @@ export declare type ServiceSettings = {
368
375
  PersistentNotificationMaxCount: number;
369
376
  PersistentNotificationMaxRecipients: number;
370
377
  UniqueEmojiReactionLimitPerPost: number;
378
+ RefreshPostStatsRunTime: string;
371
379
  };
372
- export declare type TeamSettings = {
380
+ export type TeamSettings = {
373
381
  SiteName: string;
374
382
  MaxUsersPerTeam: number;
375
383
  EnableCustomUserStatuses: boolean;
@@ -394,13 +402,13 @@ export declare type TeamSettings = {
394
402
  EnableLastActiveTime: boolean;
395
403
  EnableJoinLeaveMessageByDefault: boolean;
396
404
  };
397
- export declare type ClientRequirements = {
405
+ export type ClientRequirements = {
398
406
  AndroidLatestVersion: string;
399
407
  AndroidMinVersion: string;
400
408
  IosLatestVersion: string;
401
409
  IosMinVersion: string;
402
410
  };
403
- export declare type SqlSettings = {
411
+ export type SqlSettings = {
404
412
  DriverName: string;
405
413
  DataSource: string;
406
414
  DataSourceReplicas: string[];
@@ -417,7 +425,7 @@ export declare type SqlSettings = {
417
425
  ReplicaLagSettings: ReplicaLagSetting[];
418
426
  ReplicaMonitorIntervalSeconds: number;
419
427
  };
420
- export declare type LogSettings = {
428
+ export type LogSettings = {
421
429
  EnableConsole: boolean;
422
430
  ConsoleLevel: string;
423
431
  ConsoleJson: boolean;
@@ -433,7 +441,7 @@ export declare type LogSettings = {
433
441
  AdvancedLoggingConfig: string;
434
442
  AdvancedLoggingJSON: Record<string, any>;
435
443
  };
436
- export declare type ExperimentalAuditSettings = {
444
+ export type ExperimentalAuditSettings = {
437
445
  FileEnabled: boolean;
438
446
  FileName: string;
439
447
  FileMaxSizeMB: number;
@@ -444,7 +452,7 @@ export declare type ExperimentalAuditSettings = {
444
452
  AdvancedLoggingConfig: string;
445
453
  AdvancedLoggingJSON: Record<string, any>;
446
454
  };
447
- export declare type NotificationLogSettings = {
455
+ export type NotificationLogSettings = {
448
456
  EnableConsole: boolean;
449
457
  ConsoleLevel: string;
450
458
  ConsoleJson: boolean;
@@ -456,7 +464,7 @@ export declare type NotificationLogSettings = {
456
464
  AdvancedLoggingConfig: string;
457
465
  AdvancedLoggingJSON: Record<string, any>;
458
466
  };
459
- export declare type PasswordSettings = {
467
+ export type PasswordSettings = {
460
468
  MinimumLength: number;
461
469
  Lowercase: boolean;
462
470
  Number: boolean;
@@ -464,7 +472,16 @@ export declare type PasswordSettings = {
464
472
  Symbol: boolean;
465
473
  EnableForgotLink: boolean;
466
474
  };
467
- export declare type FileSettings = {
475
+ export type WranglerSettings = {
476
+ PermittedWranglerRoles: string[];
477
+ AllowedEmailDomain: string[];
478
+ MoveThreadMaxCount: number;
479
+ MoveThreadToAnotherTeamEnable: boolean;
480
+ MoveThreadFromPrivateChannelEnable: boolean;
481
+ MoveThreadFromDirectMessageChannelEnable: boolean;
482
+ MoveThreadFromGroupMessageChannelEnable: boolean;
483
+ };
484
+ export type FileSettings = {
468
485
  EnableFileAttachments: boolean;
469
486
  EnableMobileUpload: boolean;
470
487
  EnableMobileDownload: boolean;
@@ -505,7 +522,7 @@ export declare type FileSettings = {
505
522
  ExportAmazonS3RequestTimeoutMilliseconds: number;
506
523
  ExportAmazonS3PresignExpiresSeconds: number;
507
524
  };
508
- export declare type EmailSettings = {
525
+ export type EmailSettings = {
509
526
  EnableSignUpWithEmail: boolean;
510
527
  EnableSignInWithEmail: boolean;
511
528
  EnableSignInWithUsername: boolean;
@@ -539,7 +556,7 @@ export declare type EmailSettings = {
539
556
  LoginButtonBorderColor: string;
540
557
  LoginButtonTextColor: string;
541
558
  };
542
- export declare type RateLimitSettings = {
559
+ export type RateLimitSettings = {
543
560
  Enable: boolean;
544
561
  PerSec: number;
545
562
  MaxBurst: number;
@@ -548,11 +565,11 @@ export declare type RateLimitSettings = {
548
565
  VaryByUser: boolean;
549
566
  VaryByHeader: string;
550
567
  };
551
- export declare type PrivacySettings = {
568
+ export type PrivacySettings = {
552
569
  ShowEmailAddress: boolean;
553
570
  ShowFullName: boolean;
554
571
  };
555
- export declare type SupportSettings = {
572
+ export type SupportSettings = {
556
573
  TermsOfServiceLink: string;
557
574
  PrivacyPolicyLink: string;
558
575
  AboutLink: string;
@@ -564,7 +581,7 @@ export declare type SupportSettings = {
564
581
  CustomTermsOfServiceReAcceptancePeriod: number;
565
582
  EnableAskCommunityLink: boolean;
566
583
  };
567
- export declare type AnnouncementSettings = {
584
+ export type AnnouncementSettings = {
568
585
  EnableBanner: boolean;
569
586
  BannerText: string;
570
587
  BannerColor: string;
@@ -576,13 +593,13 @@ export declare type AnnouncementSettings = {
576
593
  NoticesFetchFrequency: number;
577
594
  NoticesSkipCache: boolean;
578
595
  };
579
- export declare type ThemeSettings = {
596
+ export type ThemeSettings = {
580
597
  EnableThemeSelection: boolean;
581
598
  DefaultTheme: string;
582
599
  AllowCustomThemes: boolean;
583
600
  AllowedThemes: string[];
584
601
  };
585
- export declare type SSOSettings = {
602
+ export type SSOSettings = {
586
603
  Enable: boolean;
587
604
  Secret: string;
588
605
  Id: string;
@@ -594,7 +611,7 @@ export declare type SSOSettings = {
594
611
  ButtonText: string;
595
612
  ButtonColor: string;
596
613
  };
597
- export declare type Office365Settings = {
614
+ export type Office365Settings = {
598
615
  Enable: boolean;
599
616
  Secret: string;
600
617
  Id: string;
@@ -605,7 +622,7 @@ export declare type Office365Settings = {
605
622
  DiscoveryEndpoint: string;
606
623
  DirectoryId: string;
607
624
  };
608
- export declare type LdapSettings = {
625
+ export type LdapSettings = {
609
626
  Enable: boolean;
610
627
  EnableSync: boolean;
611
628
  LdapServer: string;
@@ -642,18 +659,18 @@ export declare type LdapSettings = {
642
659
  LoginButtonTextColor: string;
643
660
  Trace: boolean;
644
661
  };
645
- export declare type ComplianceSettings = {
662
+ export type ComplianceSettings = {
646
663
  Enable: boolean;
647
664
  Directory: string;
648
665
  EnableDaily: boolean;
649
666
  BatchSize: number;
650
667
  };
651
- export declare type LocalizationSettings = {
668
+ export type LocalizationSettings = {
652
669
  DefaultServerLocale: string;
653
670
  DefaultClientLocale: string;
654
671
  AvailableLocales: string;
655
672
  };
656
- export declare type SamlSettings = {
673
+ export type SamlSettings = {
657
674
  Enable: boolean;
658
675
  EnableSyncWithLdap: boolean;
659
676
  EnableSyncWithLdapIncludeAuth: boolean;
@@ -689,13 +706,13 @@ export declare type SamlSettings = {
689
706
  LoginButtonBorderColor: string;
690
707
  LoginButtonTextColor: string;
691
708
  };
692
- export declare type NativeAppSettings = {
709
+ export type NativeAppSettings = {
693
710
  AppCustomURLSchemes: string[];
694
711
  AppDownloadLink: string;
695
712
  AndroidAppDownloadLink: string;
696
713
  IosAppDownloadLink: string;
697
714
  };
698
- export declare type ClusterSettings = {
715
+ export type ClusterSettings = {
699
716
  Enable: boolean;
700
717
  ClusterName: string;
701
718
  OverrideHostname: string;
@@ -712,12 +729,12 @@ export declare type ClusterSettings = {
712
729
  MaxIdleConnsPerHost: number;
713
730
  IdleConnTimeoutMilliseconds: number;
714
731
  };
715
- export declare type MetricsSettings = {
732
+ export type MetricsSettings = {
716
733
  Enable: boolean;
717
734
  BlockProfileRate: number;
718
735
  ListenAddress: string;
719
736
  };
720
- export declare type ExperimentalSettings = {
737
+ export type ExperimentalSettings = {
721
738
  ClientSideCertEnable: boolean;
722
739
  ClientSideCertCheck: string;
723
740
  LinkMetadataTimeoutMilliseconds: number;
@@ -729,10 +746,10 @@ export declare type ExperimentalSettings = {
729
746
  DisableRefetchingOnBrowserFocus: boolean;
730
747
  DelayChannelAutocomplete: boolean;
731
748
  };
732
- export declare type AnalyticsSettings = {
749
+ export type AnalyticsSettings = {
733
750
  MaxUsersForStatistics: number;
734
751
  };
735
- export declare type ElasticsearchSettings = {
752
+ export type ElasticsearchSettings = {
736
753
  ConnectionURL: string;
737
754
  Username: string;
738
755
  Password: string;
@@ -759,18 +776,20 @@ export declare type ElasticsearchSettings = {
759
776
  Trace: string;
760
777
  IgnoredPurgeIndexes: string;
761
778
  };
762
- export declare type BleveSettings = {
779
+ export type BleveSettings = {
763
780
  IndexDir: string;
764
781
  EnableIndexing: boolean;
765
782
  EnableSearching: boolean;
766
783
  EnableAutocomplete: boolean;
767
784
  BatchSize: number;
768
785
  };
769
- export declare type DataRetentionSettings = {
786
+ export type DataRetentionSettings = {
770
787
  EnableMessageDeletion: boolean;
771
788
  EnableFileDeletion: boolean;
772
789
  MessageRetentionDays: number;
790
+ MessageRetentionHours: number;
773
791
  FileRetentionDays: number;
792
+ FileRetentionHours: number;
774
793
  DeletionJobStartTime: string;
775
794
  BatchSize: number;
776
795
  EnableBoardsDeletion: boolean;
@@ -778,7 +797,7 @@ export declare type DataRetentionSettings = {
778
797
  TimeBetweenBatchesMilliseconds: number;
779
798
  RetentionIdsBatchSize: number;
780
799
  };
781
- export declare type MessageExportSettings = {
800
+ export type MessageExportSettings = {
782
801
  EnableExport: boolean;
783
802
  DownloadExportResults: boolean;
784
803
  ExportFormat: string;
@@ -791,16 +810,18 @@ export declare type MessageExportSettings = {
791
810
  SMTPPassword: string;
792
811
  EmailAddress: string;
793
812
  SMTPServerTimeout: number;
813
+ CustomSMTPServerName: string;
814
+ CustomSMTPPort: string;
794
815
  };
795
816
  };
796
- export declare type JobSettings = {
817
+ export type JobSettings = {
797
818
  RunJobs: boolean;
798
819
  RunScheduler: boolean;
799
820
  CleanupJobsThresholdDays: number;
800
821
  CleanupConfigThresholdDays: number;
801
822
  };
802
- export declare type ProductSettings = {};
803
- export declare type PluginSettings = {
823
+ export type ProductSettings = {};
824
+ export type PluginSettings = {
804
825
  Enable: boolean;
805
826
  EnableUploads: boolean;
806
827
  AllowInsecureDownloadURL: boolean;
@@ -819,38 +840,38 @@ export declare type PluginSettings = {
819
840
  SignaturePublicKeyFiles: string[];
820
841
  ChimeraOAuthProxyURL: string;
821
842
  };
822
- export declare type DisplaySettings = {
843
+ export type DisplaySettings = {
823
844
  CustomURLSchemes: string[];
824
845
  MaxMarkdownNodes: number;
825
846
  };
826
- export declare type GuestAccountsSettings = {
847
+ export type GuestAccountsSettings = {
827
848
  Enable: boolean;
828
849
  HideTags: boolean;
829
850
  AllowEmailAccounts: boolean;
830
851
  EnforceMultifactorAuthentication: boolean;
831
852
  RestrictCreationToDomains: string;
832
853
  };
833
- export declare type ImageProxySettings = {
854
+ export type ImageProxySettings = {
834
855
  Enable: boolean;
835
856
  ImageProxyType: string;
836
857
  RemoteImageProxyURL: string;
837
858
  RemoteImageProxyOptions: string;
838
859
  };
839
- export declare type CloudSettings = {
860
+ export type CloudSettings = {
840
861
  CWSURL: string;
841
862
  CWSAPIURL: string;
842
863
  CWSMock: boolean;
843
864
  };
844
- export declare type FeatureFlags = Record<string, string | boolean>;
845
- export declare type ImportSettings = {
865
+ export type FeatureFlags = Record<string, string | boolean>;
866
+ export type ImportSettings = {
846
867
  Directory: string;
847
868
  RetentionDays: number;
848
869
  };
849
- export declare type ExportSettings = {
870
+ export type ExportSettings = {
850
871
  Directory: string;
851
872
  RetentionDays: number;
852
873
  };
853
- export declare type AdminConfig = {
874
+ export type AdminConfig = {
854
875
  ServiceSettings: ServiceSettings;
855
876
  TeamSettings: TeamSettings;
856
877
  ClientRequirements: ClientRequirements;
@@ -893,19 +914,20 @@ export declare type AdminConfig = {
893
914
  FeatureFlags: FeatureFlags;
894
915
  ImportSettings: ImportSettings;
895
916
  ExportSettings: ExportSettings;
917
+ WranglerSettings: WranglerSettings;
896
918
  };
897
- export declare type ReplicaLagSetting = {
919
+ export type ReplicaLagSetting = {
898
920
  DataSource: string;
899
921
  QueryAbsoluteLag: string;
900
922
  QueryTimeLag: string;
901
923
  };
902
- export declare type EnvironmentConfigSettings<T> = {
924
+ export type EnvironmentConfigSettings<T> = {
903
925
  [P in keyof T]: boolean;
904
926
  };
905
- export declare type EnvironmentConfig = {
927
+ export type EnvironmentConfig = {
906
928
  [P in keyof AdminConfig]: EnvironmentConfigSettings<AdminConfig[P]>;
907
929
  };
908
- export declare type WarnMetricStatus = {
930
+ export type WarnMetricStatus = {
909
931
  id: string;
910
932
  limit: number;
911
933
  acked: boolean;
@@ -922,3 +944,13 @@ export declare enum ServiceEnvironment {
922
944
  TEST = "test",
923
945
  DEV = "dev"
924
946
  }
947
+ export type AllowedIPRange = {
948
+ cidr_block: string;
949
+ description: string;
950
+ enabled: boolean;
951
+ owner_id: string;
952
+ };
953
+ export type AllowedIPRanges = AllowedIPRange[];
954
+ export type FetchIPResponse = {
955
+ ip: string;
956
+ };
@@ -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
  };