mattermost-mobile-upstream/types/api/config.d.ts
Pablo Vélez 4d842026f6
Some checks failed
ci / lint-typecheck (push) Has been cancelled
ci / detox-lint-typecheck (push) Has been cancelled
ci / test (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
Mm 70564 channel labels use in channel creation (#10146)
* MM-70516 - Add ability to edit channel attribute values from Channel Info

* Add API methods for patching property fields and setting channel attribute requirements

* Update channel attribute clearing behavior for required and non-required fields

* MM-70564 - use channel attributes on channel creation

* Fix undefined propertyValues and ternary formatting in channel attributes

* Fix spelling of "colour" to "color" in attribute chip tests and related comments

* Add visibility checks for channel attribute labels in tests

* Fix data-integrity, permission, and accessibility issues in channel attributes: scoped pruning, atomic writes, race serialization, required clear/stale-option guards

* Fix handling of null values in apiGetChannelAttributeValue and update test assertions for channel attributes

* Improve channel attribute editor sizing for long labels, keep Save visible, and prevent keyboard overlap on Android

* Address CodeRabbit feedback for nullable values, bottom-sheet state, async validation, and reliable E2E cleanup

* lock-safe field fetch, create-time gate recheck, scoped value pruning, and tappable header chips

* Address CodeRabbit feedback: drop queued attribute saves on channel switch and use page object selectors in E2E

* Respect the ChannelAttributesRequired flag on channel creation and enable it for channel attribute E2E

* Skip required channel attribute E2E tests and stop enabling ChannelAttributesRequired on the shared server until  they move to SITE_3

* Fix clearing channel attributes on iOS by sending an empty value instead of null, and stop E2E suites from turning  off the ChannelAttributes flag mid-run

* Refactor getEmptyPropertyValue to accept string type for fieldType parameter

* E2E: give channel attribute test fields a suite-unique suffix

Pool shards may only create optional property fields named <name>_<6 hex>; fixed names were blocked by the pool guard.

* E2E: restore channel attribute cleanup checks; name network error codes

Brings back the PR's afterEach/afterAll error handling that the main merge replaced, and makes a no-response error show its codes (an AggregateError has an empty message).

* E2E: run channel attribute creation and editing specs on server B

Their 11 required-attribute tests could not run on the shared servers. Both specs now run on the mutation server with ChannelAttributesRequired on for their run, and the tests are re-enabled. setChannelAttributesRequired moves to the shared helper.

* Check header chips instead of their wrapper and use toExist for the create screen in channel attribute E2E

---------

Co-authored-by: yasserfaraazkhan <attitude3cena.yf@gmail.com>
2026-10-30 15:03:55 +01:00

239 lines
8.4 KiB
TypeScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
interface ClientConfig {
AboutLink: string;
AllowBannerDismissal: string;
AllowCustomThemes: string;
AllowEditPost: string;
AllowedThemes: string;
AllowDownloadLogs: string;
AndroidAppDownloadLink: string;
AndroidLatestVersion: string;
AndroidMinVersion: string;
AppDownloadLink: string;
AsymmetricSigningPublicKey: string;
AvailableLocales: string;
BannerColor: string;
BannerText: string;
BannerTextColor: string;
BuildDate: string;
BuildEnterpriseReady: string;
BuildHash: string;
BuildHashEnterprise: string;
BuildNumber: string;
BurnOnReadMaximumTimeToLiveSeconds: string;
BurnOnReadDurationSeconds: string;
CloseUnusedDirectMessages: string;
CollapsedThreads: string;
CustomBrandText: string;
CustomDescriptionText: string;
CustomTermsOfServiceId: string;
CustomTermsOfServiceReAcceptancePeriod: string;
CustomUrlSchemes: string;
DataRetentionEnableFileDeletion: string;
DataRetentionEnableMessageDeletion: string;
DataRetentionFileRetentionDays: string;
DataRetentionMessageRetentionDays: string;
DefaultClientLocale: string;
DefaultTheme: string;
DelayChannelAutocomplete: 'true' | 'false';
DesktopLatestVersion: string;
DesktopMinVersion: string;
DiagnosticId: string;
DiagnosticsEnabled: string;
EmailLoginButtonBorderColor: string;
EmailLoginButtonColor: string;
EmailLoginButtonTextColor: string;
EmailNotificationContentsType: string;
EnableAttributeBasedAccessControl?: string;
EnableBanner: string;
EnableBotAccountCreation: string;
EnableBurnOnRead: string;
EnableChannelViewedMessages: string;
EnableClientMetrics?: string;
EnableCluster: string;
EnableCommands: string;
EnableCompliance: string;
EnableConfirmNotificationsToChannel: string;
EnableCrossTeamSearch: 'true' | 'false';
EnableCustomBrand: string;
EnableCustomEmoji: string;
EnableCustomTermsOfService: string;
EnableCustomUserStatuses: string;
EnableDeveloper: string;
EnableDiagnostics: string;
EnableEmailBatching: string;
EnableEmailInvitations: string;
EnableEmojiPicker: string;
EnableGuestMagicLink: string;
EnableFileAttachments: string;
EnableGifPicker: string;
EnableGuestAccounts: string;
EnableIncomingWebhooks: string;
EnableInlineLatex: string;
EnableLatex: string;
EnableLdap: string;
EnableLinkPreviews: string;
EnableManagedChannelCategories?: string;
EnablePermalinkPreviews: string;
EnableMarketplace: string;
EnableMetrics: string;
EnableMobileFileDownload: string;
EnableMobileFileUpload: string;
EnableMultifactorAuthentication: string;
EnableOAuthServiceProvider: string;
EnableOpenServer: string;
EnableOutgoingWebhooks: string;
EnablePostIconOverride: string;
EnablePostUsernameOverride: string;
EnablePreviewFeatures: string;
EnablePreviewModeBanner: string;
EnablePublicLink: string;
EnableReliableWebSockets: string;
EnableSVGs: string;
EnableSaml: string;
EnableSignInWithEmail: string;
EnableSignInWithUsername: string;
EnableSignUpWithEmail: string;
EnableSignUpWithGitLab: string;
EnableSignUpWithGoogle: string;
EnableSignUpWithOffice365: string;
EnableSignUpWithOpenId: string;
EnableTesting: string;
EnableThemeSelection: string;
EnableTutorial: string;
EnableUserAccessTokens: string;
EnableUserCreation: string;
EnableUserDeactivation: string;
EnableUserTypingMessages: string;
EnableXToLeaveChannelsFromLHS: string;
EnforceMultifactorAuthentication: string;
ExperimentalChannelOrganization: string;
ExperimentalChannelSidebarOrganization: string;
ExperimentalClientSideCertCheck: string;
ExperimentalClientSideCertEnable: string;
ExperimentalEnableAuthenticationTransfer: string;
ExperimentalEnableAutomaticReplies: string;
ExperimentalEnableClickToReply: string;
ExperimentalEnableDefaultChannelLeaveJoinMessages: string;
ExperimentalEnablePostMetadata: string;
ExperimentalEnableWatermark: string;
ExperimentalGroupUnreadChannels: string;
ExperimentalHideTownSquareinLHS: string;
ExperimentalNormalizeMarkdownLinks: string;
ExperimentalPrimaryTeam: string;
ExperimentalSharedChannels: string;
ExperimentalTownSquareIsReadOnly: string;
ExperimentalViewArchivedChannels: string;
ExtendSessionLengthWithActivity: string;
FeatureFlagAppsEnabled?: string;
FeatureFlagChannelAttributes?: string;
FeatureFlagChannelAttributesRequired?: string;
FeatureFlagClassificationMarkings?: string;
FeatureFlagCollapsedThreads?: string;
FeatureFlagPostPriority?: string;
FeatureFlagChannelBookmarks?: string;
FeatureFlagCustomProfileAttributes?: string;
FeatureFlagMmBlocksEnabled?: string;
FeatureFlagPermissionPolicies?: string;
FeatureFlagSessionAttributes?: string;
ForgotPasswordLink?: string;
GfycatApiKey: string;
GfycatApiSecret: string;
GoogleDeveloperKey: string;
GuestAccountsEnforceMultifactorAuthentication: string;
HasImageProxy: string;
HelpLink: string;
HideGuestTags: string;
IosAppDownloadLink: string;
IosLatestVersion: string;
IosMinVersion: string;
IntuneMAMEnabled?: string;
IntuneScope?: string;
IntuneAuthService?: string;
LdapFirstNameAttributeSet: string;
LdapLastNameAttributeSet: string;
LdapLoginButtonBorderColor: string;
LdapLoginButtonColor: string;
LdapLoginButtonTextColor: string;
LdapLoginFieldName: string;
LdapNicknameAttributeSet: string;
LdapPictureAttributeSet: string;
LdapPositionAttributeSet: string;
LockTeammateNameDisplay: string;
MaxFileSize: string;
MaxMarkdownNodes: string;
MaxNotificationsPerChannel: string;
MaxPostSize: string;
MinimumHashtagLength: string;
MobileAllowPdfLinkNavigation: string;
MobileEnableBiometrics: string;
MobileEnableSecureFilePreview: string;
MobileEphemeralModeEnabled?: string;
MobileEphemeralModeDisconnectionTimeoutSeconds?: string;
MobileEphemeralModeOfflinePersistenceTimerHours?: string;
MobileEphemeralModeAutoCacheCleanupDays?: string;
MobileJailbreakProtection: string;
MobilePreventScreenCapture: string;
MobileExternalBrowser: string;
OpenIdButtonColor: string;
OpenIdButtonText: string;
PasswordEnableForgotLink: string;
PasswordMinimumLength: string;
PasswordRequireLowercase: string;
PasswordRequireNumber: string;
PasswordRequireSymbol: string;
PasswordRequireUppercase: string;
PluginsEnabled: string;
PostEditTimeLimit: string;
PostPriority: string;
PostAcknowledgements: string;
AllowPersistentNotifications: string;
PersistentNotificationMaxRecipients: string;
PersistentNotificationInterval: string;
AllowPersistentNotificationsForGuests: string;
PersistentNotificationIntervalMinutes: string;
PrivacyPolicyLink: string;
ReportAProblemLink: string;
ReportAProblemMail: string;
ReportAProblemType: string;
RequireEmailVerification: string;
RestrictDirectMessage: string;
RunJobs: string;
SQLDriverName: string;
SamlFirstNameAttributeSet: string;
SamlLastNameAttributeSet: string;
SamlLoginButtonBorderColor: string;
SamlLoginButtonColor: string;
SamlLoginButtonText: string;
SamlLoginButtonTextColor: string;
SamlNicknameAttributeSet: string;
SamlPositionAttributeSet: string;
ScheduledPosts: string;
SchemaVersion: string;
SendEmailNotifications: string;
SendPushNotifications: string;
ShowEmailAddress: string;
ShowFullName: string;
SiteName: string;
SiteURL: string;
SupportEmail: string;
TeammateNameDisplay: string;
TelemetryId: string;
TermsOfServiceLink: string;
TimeBetweenUserTypingUpdatesMilliseconds: string;
Version: string;
WebsocketPort: string;
WebsocketSecurePort: string;
WebsocketURL: string;
BurnOnReadDurationSeconds: string;
// Autotranslations
AutoTranslationLanguages: string;
EnableAutoTranslation: string;
RestrictDMAndGMAutotranslation: string;
}
type SecurityClientConfig = Pick<ClientConfig, 'MobileEnableBiometrics' | 'MobileJailbreakProtection' | 'MobilePreventScreenCapture' | 'SiteName'>