Browse Source

Merge pull request #152 from provokateurin/fix/capabilities

Fix capabilities mess
pull/153/head
Kate 2 years ago committed by GitHub
parent
commit
fd9dfc211d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      packages/neon/integration_test/screenshot_test.dart
  2. 30
      packages/neon/lib/src/pages/home.dart
  3. 2
      packages/neon/lib/src/utils/theme.dart
  4. 550
      packages/nextcloud/lib/src/nextcloud.openapi.dart
  5. 467
      packages/nextcloud/lib/src/nextcloud.openapi.g.dart
  6. 234
      packages/nextcloud/lib/src/nextcloud.openapi.json
  7. 9
      packages/nextcloud/lib/src/version_supported.dart
  8. 234
      specs/core.json

6
packages/neon/integration_test/screenshot_test.dart

@ -98,7 +98,7 @@ Future pumpAppPage(
final WidgetTester tester,
final IntegrationTestWidgetsFlutterBinding binding,
final PackageInfo packageInfo, {
required final Widget Function(BuildContext, Function(NextcloudTheme)) builder,
required final Widget Function(BuildContext, Function(NextcloudTheme?)) builder,
final Account? account,
}) async {
final sharedPreferences = MemorySharedPreferences();
@ -134,7 +134,7 @@ Future pumpAppPage(
);
// ignore: close_sinks
final userThemeStream = BehaviorSubject<NextcloudTheme>();
final userThemeStream = BehaviorSubject<NextcloudTheme?>();
await tester.pumpWidget(
MultiProvider(
@ -167,7 +167,7 @@ Future pumpAppPage(
create: (final _) => packageInfo,
),
],
child: StreamBuilder<NextcloudTheme>(
child: StreamBuilder<NextcloudTheme?>(
stream: userThemeStream,
builder: (final context, final themeSnapshot) => OptionBuilder(
option: globalOptions.themeMode,

30
packages/neon/lib/src/pages/home.dart

@ -10,7 +10,7 @@ class HomePage extends StatefulWidget {
});
final Account account;
final Function(NextcloudTheme theme) onThemeChanged;
final Function(NextcloudTheme? theme) onThemeChanged;
@override
State<HomePage> createState() => _HomePageState();
@ -34,7 +34,7 @@ class _HomePageState extends State<HomePage> {
_capabilitiesBloc.capabilities.listen((final result) async {
if (result.data != null) {
widget.onThemeChanged(result.data!.capabilities.theming!);
widget.onThemeChanged(result.data!.capabilities.theming);
// ignore cached version and prevent duplicate dialogs
if (result.cached) {
@ -240,17 +240,21 @@ class _HomePageState extends State<HomePage> {
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
if (capabilities.data != null) ...[
Text(
capabilities.data!.capabilities.theming!.name,
style: DefaultTextStyle.of(context).style.copyWith(
color: Theme.of(context).appBarTheme.foregroundColor,
),
),
Flexible(
child: CachedURLImage(
url: capabilities.data!.capabilities.theming!.logo,
if (capabilities.data!.capabilities.theming?.name != null) ...[
Text(
capabilities.data!.capabilities.theming!.name!,
style: DefaultTextStyle.of(context).style.copyWith(
color: Theme.of(context).appBarTheme.foregroundColor,
),
),
),
],
if (capabilities.data!.capabilities.theming?.logo != null) ...[
Flexible(
child: CachedURLImage(
url: capabilities.data!.capabilities.theming!.logo!,
),
),
],
] else ...[
ExceptionWidget(
capabilities.error,
@ -412,7 +416,7 @@ class _HomePageState extends State<HomePage> {
padding: const EdgeInsets.all(5),
child: capabilities.data?.capabilities.theming?.logo != null
? CachedURLImage(
url: capabilities.data!.capabilities.theming!.logo,
url: capabilities.data!.capabilities.theming!.logo!,
)
: null,
)

2
packages/neon/lib/src/utils/theme.dart

@ -9,7 +9,7 @@ ThemeData getThemeFromNextcloudTheme(
required final bool oledAsDark,
required final bool keepOriginalAccentColor,
}) {
final primaryColor = nextcloudTheme != null ? HexColor(nextcloudTheme.color) : themePrimaryColor;
final primaryColor = nextcloudTheme?.color != null ? HexColor(nextcloudTheme!.color!) : themePrimaryColor;
late final Brightness selectBrightness;
switch (themeMode) {

550
packages/nextcloud/lib/src/nextcloud.openapi.dart

File diff suppressed because it is too large Load Diff

467
packages/nextcloud/lib/src/nextcloud.openapi.g.dart

@ -71,12 +71,12 @@ CoreServerCapabilities_Ocs_Data_Version _$CoreServerCapabilities_Ocs_Data_Versio
allowedKeys: const ['major', 'minor', 'micro', 'string', 'edition', 'extendedSupport'],
);
return CoreServerCapabilities_Ocs_Data_Version(
major: json['major'] as int,
minor: json['minor'] as int,
micro: json['micro'] as int,
string: json['string'] as String,
edition: json['edition'] as String,
extendedSupport: json['extendedSupport'] as bool,
major: json['major'] as int?,
minor: json['minor'] as int?,
micro: json['micro'] as int?,
string: json['string'] as String?,
edition: json['edition'] as String?,
extendedSupport: json['extendedSupport'] as bool?,
);
}
@ -94,10 +94,10 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_VersionToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_Core _$CoreServerCapabilities_Ocs_Data_Capabilities_CoreFromJson(
Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Core(
pollinterval: json['pollinterval'] as int,
webdavRoot: json['webdav-root'] as String,
referenceApi: json['reference-api'] as bool,
referenceRegex: json['reference-regex'] as String,
pollinterval: json['pollinterval'] as int?,
webdavRoot: json['webdav-root'] as String?,
referenceApi: json['reference-api'] as bool?,
referenceRegex: json['reference-regex'] as String?,
);
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_CoreToJson(
@ -112,7 +112,7 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_CoreToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce
_$CoreServerCapabilities_Ocs_Data_Capabilities_BruteforceFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce(
delay: json['delay'] as int,
delay: json['delay'] as int?,
);
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_BruteforceToJson(
@ -124,8 +124,8 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_BruteforceTo
CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable
_$CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailableFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable(
size: (json['size'] as List<dynamic>).map((e) => e as String).toList(),
gps: (json['gps'] as List<dynamic>).map((e) => e as String).toList(),
size: (json['size'] as List<dynamic>?)?.map((e) => e as String).toList(),
gps: (json['gps'] as List<dynamic>?)?.map((e) => e as String).toList(),
);
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailableToJson(
@ -138,8 +138,8 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvai
CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing
_$CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditingFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing(
url: json['url'] as String,
etag: json['etag'] as String,
url: json['url'] as String?,
etag: json['etag'] as String?,
);
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditingToJson(
@ -152,13 +152,15 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Files_Direct
CoreServerCapabilities_Ocs_Data_Capabilities_Files _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesFromJson(
Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Files(
bigfilechunking: json['bigfilechunking'] as bool,
blacklistedFiles: (json['blacklisted_files'] as List<dynamic>).map((e) => e as String).toList(),
directEditing: CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing.fromJson(
json['directEditing'] as Map<String, dynamic>),
comments: json['comments'] as bool,
undelete: json['undelete'] as bool,
versioning: json['versioning'] as bool,
bigfilechunking: json['bigfilechunking'] as bool?,
blacklistedFiles: (json['blacklisted_files'] as List<dynamic>?)?.map((e) => e as String).toList(),
directEditing: json['directEditing'] == null
? null
: CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing.fromJson(
json['directEditing'] as Map<String, dynamic>),
comments: json['comments'] as bool?,
undelete: json['undelete'] as bool?,
versioning: json['versioning'] as bool?,
);
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesToJson(
@ -166,7 +168,7 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesToJson(
<String, dynamic>{
'bigfilechunking': instance.bigfilechunking,
'blacklisted_files': instance.blacklistedFiles,
'directEditing': instance.directEditing.toJson(),
'directEditing': instance.directEditing?.toJson(),
'comments': instance.comments,
'undelete': instance.undelete,
'versioning': instance.versioning,
@ -175,7 +177,7 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_Activity _$CoreServerCapabilities_Ocs_Data_Capabilities_ActivityFromJson(
Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Activity(
apiv2: (json['apiv2'] as List<dynamic>).map((e) => e as String).toList(),
apiv2: (json['apiv2'] as List<dynamic>?)?.map((e) => e as String).toList(),
);
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_ActivityToJson(
@ -187,7 +189,7 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_ActivityToJs
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status
_$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_StatusFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status(
globalScale: json['globalScale'] as bool,
globalScale: json['globalScale'] as bool?,
);
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_StatusToJson(
@ -199,10 +201,10 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Stat
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings
_$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_SettingsFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings(
frontendEnabled: json['frontendEnabled'] as bool,
allowedCircles: json['allowedCircles'] as int,
allowedUserTypes: json['allowedUserTypes'] as int,
membersLimit: json['membersLimit'] as int,
frontendEnabled: json['frontendEnabled'] as bool?,
allowedCircles: json['allowedCircles'] as int?,
allowedUserTypes: json['allowedUserTypes'] as int?,
membersLimit: json['membersLimit'] as int?,
);
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_SettingsToJson(
@ -232,22 +234,24 @@ CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants
_$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConstantsFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants(
flags: json['flags'],
source: CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source.fromJson(
json['source'] as Map<String, dynamic>),
source: json['source'] == null
? null
: CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source.fromJson(
json['source'] as Map<String, dynamic>),
);
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConstantsToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants instance) =>
<String, dynamic>{
'flags': instance.flags,
'source': instance.source.toJson(),
'source': instance.source?.toJson(),
};
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config
_$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConfigFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config(
coreFlags: (json['coreFlags'] as List<dynamic>).map((e) => e as int).toList(),
systemFlags: (json['systemFlags'] as List<dynamic>).map((e) => e as int).toList(),
coreFlags: (json['coreFlags'] as List<dynamic>?)?.map((e) => e as int).toList(),
systemFlags: (json['systemFlags'] as List<dynamic>?)?.map((e) => e as int).toList(),
);
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConfigToJson(
@ -260,17 +264,21 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circ
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle
_$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_CircleFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle(
constants: CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants.fromJson(
json['constants'] as Map<String, dynamic>),
config: CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config.fromJson(
json['config'] as Map<String, dynamic>),
constants: json['constants'] == null
? null
: CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants.fromJson(
json['constants'] as Map<String, dynamic>),
config: json['config'] == null
? null
: CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config.fromJson(
json['config'] as Map<String, dynamic>),
);
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_CircleToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle instance) =>
<String, dynamic>{
'constants': instance.constants.toJson(),
'config': instance.config.toJson(),
'constants': instance.constants?.toJson(),
'config': instance.config?.toJson(),
};
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants
@ -288,46 +296,56 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Memb
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member
_$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_MemberFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member(
constants: CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants.fromJson(
json['constants'] as Map<String, dynamic>),
constants: json['constants'] == null
? null
: CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants.fromJson(
json['constants'] as Map<String, dynamic>),
type: json['type'],
);
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_MemberToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member instance) =>
<String, dynamic>{
'constants': instance.constants.toJson(),
'constants': instance.constants?.toJson(),
'type': instance.type,
};
CoreServerCapabilities_Ocs_Data_Capabilities_Circles _$CoreServerCapabilities_Ocs_Data_Capabilities_CirclesFromJson(
Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Circles(
version: json['version'] as String,
status:
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status.fromJson(json['status'] as Map<String, dynamic>),
settings: CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings.fromJson(
json['settings'] as Map<String, dynamic>),
circle:
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle.fromJson(json['circle'] as Map<String, dynamic>),
member:
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member.fromJson(json['member'] as Map<String, dynamic>),
version: json['version'] as String?,
status: json['status'] == null
? null
: CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status.fromJson(
json['status'] as Map<String, dynamic>),
settings: json['settings'] == null
? null
: CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings.fromJson(
json['settings'] as Map<String, dynamic>),
circle: json['circle'] == null
? null
: CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle.fromJson(
json['circle'] as Map<String, dynamic>),
member: json['member'] == null
? null
: CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member.fromJson(
json['member'] as Map<String, dynamic>),
);
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_CirclesToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_Circles instance) =>
<String, dynamic>{
'version': instance.version,
'status': instance.status.toJson(),
'settings': instance.settings.toJson(),
'circle': instance.circle.toJson(),
'member': instance.member.toJson(),
'status': instance.status?.toJson(),
'settings': instance.settings?.toJson(),
'circle': instance.circle?.toJson(),
'member': instance.member?.toJson(),
};
CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols
_$CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_ProtocolsFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols(
webdav: json['webdav'] as String,
webdav: json['webdav'] as String?,
);
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_ProtocolsToJson(
@ -339,10 +357,12 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_Resource
CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes
_$CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypesFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes(
name: json['name'] as String,
shareTypes: (json['shareTypes'] as List<dynamic>).map((e) => e as String).toList(),
protocols: CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols.fromJson(
json['protocols'] as Map<String, dynamic>),
name: json['name'] as String?,
shareTypes: (json['shareTypes'] as List<dynamic>?)?.map((e) => e as String).toList(),
protocols: json['protocols'] == null
? null
: CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols.fromJson(
json['protocols'] as Map<String, dynamic>),
);
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypesToJson(
@ -350,17 +370,17 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_Resource
<String, dynamic>{
'name': instance.name,
'shareTypes': instance.shareTypes,
'protocols': instance.protocols.toJson(),
'protocols': instance.protocols?.toJson(),
};
CoreServerCapabilities_Ocs_Data_Capabilities_Ocm _$CoreServerCapabilities_Ocs_Data_Capabilities_OcmFromJson(
Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Ocm(
enabled: json['enabled'] as bool,
apiVersion: json['apiVersion'] as String,
endPoint: json['endPoint'] as String,
resourceTypes: (json['resourceTypes'] as List<dynamic>)
.map(
enabled: json['enabled'] as bool?,
apiVersion: json['apiVersion'] as String?,
endPoint: json['endPoint'] as String?,
resourceTypes: (json['resourceTypes'] as List<dynamic>?)
?.map(
(e) => CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes.fromJson(e as Map<String, dynamic>))
.toList(),
);
@ -371,14 +391,14 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_OcmToJson(
'enabled': instance.enabled,
'apiVersion': instance.apiVersion,
'endPoint': instance.endPoint,
'resourceTypes': instance.resourceTypes.map((e) => e.toJson()).toList(),
'resourceTypes': instance.resourceTypes?.map((e) => e.toJson()).toList(),
};
CoreServerCapabilities_Ocs_Data_Capabilities_Dav _$CoreServerCapabilities_Ocs_Data_Capabilities_DavFromJson(
Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Dav(
bulkupload: json['bulkupload'] as String?,
chunking: json['chunking'] as String,
chunking: json['chunking'] as String?,
);
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_DavToJson(
@ -391,8 +411,8 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_DavToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_PasswordFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password(
enforced: json['enforced'] as bool,
askForOptionalPassword: json['askForOptionalPassword'] as bool,
enforced: json['enforced'] as bool?,
askForOptionalPassword: json['askForOptionalPassword'] as bool?,
);
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_PasswordToJson(
@ -405,7 +425,7 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate(
enabled: json['enabled'] as bool,
enabled: json['enabled'] as bool?,
);
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateToJson(
@ -418,7 +438,7 @@ CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInter
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternalFromJson(
Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal(
enabled: json['enabled'] as bool,
enabled: json['enabled'] as bool?,
);
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternalToJson(
@ -431,7 +451,7 @@ CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemot
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemoteFromJson(
Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote(
enabled: json['enabled'] as bool,
enabled: json['enabled'] as bool?,
);
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemoteToJson(
@ -443,31 +463,38 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_PublicFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public(
enabled: json['enabled'] as bool,
password: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password.fromJson(
json['password'] as Map<String, dynamic>),
expireDate: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate.fromJson(
json['expire_date'] as Map<String, dynamic>),
multipleLinks: json['multiple_links'] as bool,
expireDateInternal:
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal.fromJson(
enabled: json['enabled'] as bool?,
password: json['password'] == null
? null
: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password.fromJson(
json['password'] as Map<String, dynamic>),
expireDate: json['expire_date'] == null
? null
: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate.fromJson(
json['expire_date'] as Map<String, dynamic>),
multipleLinks: json['multiple_links'] as bool?,
expireDateInternal: json['expire_date_internal'] == null
? null
: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal.fromJson(
json['expire_date_internal'] as Map<String, dynamic>),
expireDateRemote: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote.fromJson(
json['expire_date_remote'] as Map<String, dynamic>),
sendMail: json['send_mail'] as bool,
upload: json['upload'] as bool,
uploadFilesDrop: json['upload_files_drop'] as bool,
expireDateRemote: json['expire_date_remote'] == null
? null
: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote.fromJson(
json['expire_date_remote'] as Map<String, dynamic>),
sendMail: json['send_mail'] as bool?,
upload: json['upload'] as bool?,
uploadFilesDrop: json['upload_files_drop'] as bool?,
);
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_PublicToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public instance) =>
<String, dynamic>{
'enabled': instance.enabled,
'password': instance.password.toJson(),
'expire_date': instance.expireDate.toJson(),
'password': instance.password?.toJson(),
'expire_date': instance.expireDate?.toJson(),
'multiple_links': instance.multipleLinks,
'expire_date_internal': instance.expireDateInternal.toJson(),
'expire_date_remote': instance.expireDateRemote.toJson(),
'expire_date_internal': instance.expireDateInternal?.toJson(),
'expire_date_remote': instance.expireDateRemote?.toJson(),
'send_mail': instance.sendMail,
'upload': instance.upload,
'upload_files_drop': instance.uploadFilesDrop,
@ -476,7 +503,7 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDateFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate(
enabled: json['enabled'] as bool,
enabled: json['enabled'] as bool?,
);
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDateToJson(
@ -488,22 +515,24 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_UserFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User(
sendMail: json['send_mail'] as bool,
expireDate: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate.fromJson(
json['expire_date'] as Map<String, dynamic>),
sendMail: json['send_mail'] as bool?,
expireDate: json['expire_date'] == null
? null
: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate.fromJson(
json['expire_date'] as Map<String, dynamic>),
);
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_UserToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User instance) =>
<String, dynamic>{
'send_mail': instance.sendMail,
'expire_date': instance.expireDate.toJson(),
'expire_date': instance.expireDate?.toJson(),
};
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDateFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate(
enabled: json['enabled'] as bool,
enabled: json['enabled'] as bool?,
);
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDateToJson(
@ -515,23 +544,25 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_GroupFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group(
enabled: json['enabled'] as bool,
expireDate: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate.fromJson(
json['expire_date'] as Map<String, dynamic>),
enabled: json['enabled'] as bool?,
expireDate: json['expire_date'] == null
? null
: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate.fromJson(
json['expire_date'] as Map<String, dynamic>),
);
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_GroupToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group instance) =>
<String, dynamic>{
'enabled': instance.enabled,
'expire_date': instance.expireDate.toJson(),
'expire_date': instance.expireDate?.toJson(),
};
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateFromJson(
Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate(
enabled: json['enabled'] as bool,
enabled: json['enabled'] as bool?,
);
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateToJson(
@ -544,7 +575,7 @@ CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateS
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupportedFromJson(
Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported(
enabled: json['enabled'] as bool,
enabled: json['enabled'] as bool?,
);
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupportedToJson(
@ -556,12 +587,15 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_FederationFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation(
outgoing: json['outgoing'] as bool,
incoming: json['incoming'] as bool,
expireDate: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate.fromJson(
json['expire_date'] as Map<String, dynamic>),
expireDateSupported:
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported.fromJson(
outgoing: json['outgoing'] as bool?,
incoming: json['incoming'] as bool?,
expireDate: json['expire_date'] == null
? null
: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate.fromJson(
json['expire_date'] as Map<String, dynamic>),
expireDateSupported: json['expire_date_supported'] == null
? null
: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported.fromJson(
json['expire_date_supported'] as Map<String, dynamic>),
);
@ -570,15 +604,15 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing
<String, dynamic>{
'outgoing': instance.outgoing,
'incoming': instance.incoming,
'expire_date': instance.expireDate.toJson(),
'expire_date_supported': instance.expireDateSupported.toJson(),
'expire_date': instance.expireDate?.toJson(),
'expire_date_supported': instance.expireDateSupported?.toJson(),
};
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_ShareeFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee(
queryLookupDefault: json['query_lookup_default'] as bool,
alwaysShowUnique: json['always_show_unique'] as bool,
queryLookupDefault: json['query_lookup_default'] as bool?,
alwaysShowUnique: json['always_show_unique'] as bool?,
);
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_ShareeToJson(
@ -592,7 +626,7 @@ CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFile
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDropFromJson(
Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop(
enabled: json['enabled'] as bool,
enabled: json['enabled'] as bool?,
);
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDropToJson(
@ -605,8 +639,8 @@ CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_PasswordFromJson(
Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password(
enabled: json['enabled'] as bool,
enforced: json['enforced'] as bool,
enabled: json['enabled'] as bool?,
enforced: json['enforced'] as bool?,
);
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_PasswordToJson(
@ -620,8 +654,8 @@ CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDateFromJson(
Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate(
enabled: json['enabled'] as bool,
enforced: json['enforced'] as bool,
enabled: json['enabled'] as bool?,
enforced: json['enforced'] as bool?,
);
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDateToJson(
@ -634,15 +668,20 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_SharebymailFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail(
enabled: json['enabled'] as bool,
sendPasswordByMail: json['send_password_by_mail'] as bool,
uploadFilesDrop:
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop.fromJson(
enabled: json['enabled'] as bool?,
sendPasswordByMail: json['send_password_by_mail'] as bool?,
uploadFilesDrop: json['upload_files_drop'] == null
? null
: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop.fromJson(
json['upload_files_drop'] as Map<String, dynamic>),
password: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password.fromJson(
json['password'] as Map<String, dynamic>),
expireDate: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate.fromJson(
json['expire_date'] as Map<String, dynamic>),
password: json['password'] == null
? null
: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password.fromJson(
json['password'] as Map<String, dynamic>),
expireDate: json['expire_date'] == null
? null
: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate.fromJson(
json['expire_date'] as Map<String, dynamic>),
);
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_SharebymailToJson(
@ -650,52 +689,64 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing
<String, dynamic>{
'enabled': instance.enabled,
'send_password_by_mail': instance.sendPasswordByMail,
'upload_files_drop': instance.uploadFilesDrop.toJson(),
'password': instance.password.toJson(),
'expire_date': instance.expireDate.toJson(),
'upload_files_drop': instance.uploadFilesDrop?.toJson(),
'password': instance.password?.toJson(),
'expire_date': instance.expireDate?.toJson(),
};
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharingFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing(
apiEnabled: json['api_enabled'] as bool,
public: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public.fromJson(
json['public'] as Map<String, dynamic>),
resharing: json['resharing'] as bool,
user: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User.fromJson(
json['user'] as Map<String, dynamic>),
groupSharing: json['group_sharing'] as bool,
group: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group.fromJson(
json['group'] as Map<String, dynamic>),
defaultPermissions: json['default_permissions'] as int,
federation: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation.fromJson(
json['federation'] as Map<String, dynamic>),
sharee: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee.fromJson(
json['sharee'] as Map<String, dynamic>),
sharebymail: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail.fromJson(
json['sharebymail'] as Map<String, dynamic>),
apiEnabled: json['api_enabled'] as bool?,
public: json['public'] == null
? null
: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public.fromJson(
json['public'] as Map<String, dynamic>),
resharing: json['resharing'] as bool?,
user: json['user'] == null
? null
: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User.fromJson(
json['user'] as Map<String, dynamic>),
groupSharing: json['group_sharing'] as bool?,
group: json['group'] == null
? null
: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group.fromJson(
json['group'] as Map<String, dynamic>),
defaultPermissions: json['default_permissions'] as int?,
federation: json['federation'] == null
? null
: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation.fromJson(
json['federation'] as Map<String, dynamic>),
sharee: json['sharee'] == null
? null
: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee.fromJson(
json['sharee'] as Map<String, dynamic>),
sharebymail: json['sharebymail'] == null
? null
: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail.fromJson(
json['sharebymail'] as Map<String, dynamic>),
);
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharingToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing instance) =>
<String, dynamic>{
'api_enabled': instance.apiEnabled,
'public': instance.public.toJson(),
'public': instance.public?.toJson(),
'resharing': instance.resharing,
'user': instance.user.toJson(),
'user': instance.user?.toJson(),
'group_sharing': instance.groupSharing,
'group': instance.group.toJson(),
'group': instance.group?.toJson(),
'default_permissions': instance.defaultPermissions,
'federation': instance.federation.toJson(),
'sharee': instance.sharee.toJson(),
'sharebymail': instance.sharebymail.toJson(),
'federation': instance.federation?.toJson(),
'sharee': instance.sharee?.toJson(),
'sharebymail': instance.sharebymail?.toJson(),
};
CoreServerCapabilities_Ocs_Data_Capabilities_Notes _$CoreServerCapabilities_Ocs_Data_Capabilities_NotesFromJson(
Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Notes(
apiVersion: (json['api_version'] as List<dynamic>).map((e) => e as String).toList(),
version: json['version'] as String,
apiVersion: (json['api_version'] as List<dynamic>?)?.map((e) => e as String).toList(),
version: json['version'] as String?,
);
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_NotesToJson(
@ -708,9 +759,9 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_NotesToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_Notifications
_$CoreServerCapabilities_Ocs_Data_Capabilities_NotificationsFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Notifications(
ocsEndpoints: (json['ocs-endpoints'] as List<dynamic>).map((e) => e as String).toList(),
push: (json['push'] as List<dynamic>).map((e) => e as String).toList(),
adminNotifications: (json['admin-notifications'] as List<dynamic>).map((e) => e as String).toList(),
ocsEndpoints: (json['ocs-endpoints'] as List<dynamic>?)?.map((e) => e as String).toList(),
push: (json['push'] as List<dynamic>?)?.map((e) => e as String).toList(),
adminNotifications: (json['admin-notifications'] as List<dynamic>?)?.map((e) => e as String).toList(),
);
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_NotificationsToJson(
@ -724,8 +775,8 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Notification
CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api
_$CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_ApiFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api(
generate: json['generate'] as String,
validate: json['validate'] as String,
generate: json['generate'] as String?,
validate: json['validate'] as String?,
);
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_ApiToJson(
@ -738,13 +789,15 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPoli
CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy
_$CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicyFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy(
minLength: json['minLength'] as int,
enforceNonCommonPassword: json['enforceNonCommonPassword'] as bool,
enforceNumericCharacters: json['enforceNumericCharacters'] as bool,
enforceSpecialCharacters: json['enforceSpecialCharacters'] as bool,
enforceUpperLowerCase: json['enforceUpperLowerCase'] as bool,
api: CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api.fromJson(
json['api'] as Map<String, dynamic>),
minLength: json['minLength'] as int?,
enforceNonCommonPassword: json['enforceNonCommonPassword'] as bool?,
enforceNumericCharacters: json['enforceNumericCharacters'] as bool?,
enforceSpecialCharacters: json['enforceSpecialCharacters'] as bool?,
enforceUpperLowerCase: json['enforceUpperLowerCase'] as bool?,
api: json['api'] == null
? null
: CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api.fromJson(
json['api'] as Map<String, dynamic>),
);
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicyToJson(
@ -755,16 +808,16 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPoli
'enforceNumericCharacters': instance.enforceNumericCharacters,
'enforceSpecialCharacters': instance.enforceSpecialCharacters,
'enforceUpperLowerCase': instance.enforceUpperLowerCase,
'api': instance.api.toJson(),
'api': instance.api?.toJson(),
};
CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi
_$CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApiFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi(
version: json['version'] as String,
accountPropertyScopesVersion: json['AccountPropertyScopesVersion'] as int,
accountPropertyScopesFederatedEnabled: json['AccountPropertyScopesFederatedEnabled'] as bool,
accountPropertyScopesPublishedEnabled: json['AccountPropertyScopesPublishedEnabled'] as bool,
version: json['version'] as String?,
accountPropertyScopesVersion: json['AccountPropertyScopesVersion'] as int?,
accountPropertyScopesFederatedEnabled: json['AccountPropertyScopesFederatedEnabled'] as bool?,
accountPropertyScopesPublishedEnabled: json['AccountPropertyScopesPublishedEnabled'] as bool?,
);
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApiToJson(
@ -779,20 +832,20 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Provisioning
CoreServerCapabilities_Ocs_Data_Capabilities_Theming _$CoreServerCapabilities_Ocs_Data_Capabilities_ThemingFromJson(
Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Theming(
name: json['name'] as String,
url: json['url'] as String,
slogan: json['slogan'] as String,
color: json['color'] as String,
colorText: json['color-text'] as String,
colorElement: json['color-element'] as String,
colorElementBright: json['color-element-bright'] as String,
colorElementDark: json['color-element-dark'] as String,
logo: json['logo'] as String,
background: json['background'] as String,
backgroundPlain: json['background-plain'] as bool,
backgroundDefault: json['background-default'] as bool,
logoheader: json['logoheader'] as String,
favicon: json['favicon'] as String,
name: json['name'] as String?,
url: json['url'] as String?,
slogan: json['slogan'] as String?,
color: json['color'] as String?,
colorText: json['color-text'] as String?,
colorElement: json['color-element'] as String?,
colorElementBright: json['color-element-bright'] as String?,
colorElementDark: json['color-element-dark'] as String?,
logo: json['logo'] as String?,
background: json['background'] as String?,
backgroundPlain: json['background-plain'] as bool?,
backgroundDefault: json['background-default'] as bool?,
logoheader: json['logoheader'] as String?,
favicon: json['favicon'] as String?,
);
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_ThemingToJson(
@ -817,8 +870,8 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_ThemingToJso
CoreServerCapabilities_Ocs_Data_Capabilities_UserStatus
_$CoreServerCapabilities_Ocs_Data_Capabilities_UserStatusFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_UserStatus(
enabled: json['enabled'] as bool,
supportsEmoji: json['supports_emoji'] as bool,
enabled: json['enabled'] as bool?,
supportsEmoji: json['supports_emoji'] as bool?,
);
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_UserStatusToJson(
@ -835,7 +888,7 @@ CoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus
allowedKeys: const ['enabled'],
);
return CoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus(
enabled: json['enabled'] as bool,
enabled: json['enabled'] as bool?,
);
}
@ -848,20 +901,32 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatu
CoreServerCapabilities_Ocs_Data_Capabilities _$CoreServerCapabilities_Ocs_Data_CapabilitiesFromJson(
Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities(
core: CoreServerCapabilities_Ocs_Data_Capabilities_Core.fromJson(json['core'] as Map<String, dynamic>),
bruteforce:
CoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce.fromJson(json['bruteforce'] as Map<String, dynamic>),
metadataAvailable: CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable.fromJson(
json['metadataAvailable'] as Map<String, dynamic>),
files: CoreServerCapabilities_Ocs_Data_Capabilities_Files.fromJson(json['files'] as Map<String, dynamic>),
core: json['core'] == null
? null
: CoreServerCapabilities_Ocs_Data_Capabilities_Core.fromJson(json['core'] as Map<String, dynamic>),
bruteforce: json['bruteforce'] == null
? null
: CoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce.fromJson(
json['bruteforce'] as Map<String, dynamic>),
metadataAvailable: json['metadataAvailable'] == null
? null
: CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable.fromJson(
json['metadataAvailable'] as Map<String, dynamic>),
files: json['files'] == null
? null
: CoreServerCapabilities_Ocs_Data_Capabilities_Files.fromJson(json['files'] as Map<String, dynamic>),
activity: json['activity'] == null
? null
: CoreServerCapabilities_Ocs_Data_Capabilities_Activity.fromJson(json['activity'] as Map<String, dynamic>),
circles: json['circles'] == null
? null
: CoreServerCapabilities_Ocs_Data_Capabilities_Circles.fromJson(json['circles'] as Map<String, dynamic>),
ocm: CoreServerCapabilities_Ocs_Data_Capabilities_Ocm.fromJson(json['ocm'] as Map<String, dynamic>),
dav: CoreServerCapabilities_Ocs_Data_Capabilities_Dav.fromJson(json['dav'] as Map<String, dynamic>),
ocm: json['ocm'] == null
? null
: CoreServerCapabilities_Ocs_Data_Capabilities_Ocm.fromJson(json['ocm'] as Map<String, dynamic>),
dav: json['dav'] == null
? null
: CoreServerCapabilities_Ocs_Data_Capabilities_Dav.fromJson(json['dav'] as Map<String, dynamic>),
filesSharing: json['files_sharing'] == null
? null
: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing.fromJson(
@ -897,14 +962,14 @@ CoreServerCapabilities_Ocs_Data_Capabilities _$CoreServerCapabilities_Ocs_Data_C
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_CapabilitiesToJson(
CoreServerCapabilities_Ocs_Data_Capabilities instance) =>
<String, dynamic>{
'core': instance.core.toJson(),
'bruteforce': instance.bruteforce.toJson(),
'metadataAvailable': instance.metadataAvailable.toJson(),
'files': instance.files.toJson(),
'core': instance.core?.toJson(),
'bruteforce': instance.bruteforce?.toJson(),
'metadataAvailable': instance.metadataAvailable?.toJson(),
'files': instance.files?.toJson(),
'activity': instance.activity?.toJson(),
'circles': instance.circles?.toJson(),
'ocm': instance.ocm.toJson(),
'dav': instance.dav.toJson(),
'ocm': instance.ocm?.toJson(),
'dav': instance.dav?.toJson(),
'files_sharing': instance.filesSharing?.toJson(),
'notes': instance.notes?.toJson(),
'notifications': instance.notifications?.toJson(),

234
packages/nextcloud/lib/src/nextcloud.openapi.json

@ -159,14 +159,6 @@
"properties": {
"version": {
"type": "object",
"required": [
"major",
"minor",
"micro",
"string",
"edition",
"extendedSupport"
],
"properties": {
"major": {
"type": "integer"
@ -191,24 +183,10 @@
"capabilities": {
"type": "object",
"additionalProperties": true,
"required": [
"core",
"bruteforce",
"metadataAvailable",
"files",
"ocm",
"dav"
],
"properties": {
"core": {
"type": "object",
"additionalProperties": true,
"required": [
"pollinterval",
"webdav-root",
"reference-api",
"reference-regex"
],
"properties": {
"pollinterval": {
"type": "integer"
@ -227,9 +205,6 @@
"bruteforce": {
"type": "object",
"additionalProperties": true,
"required": [
"delay"
],
"properties": {
"delay": {
"type": "integer"
@ -239,10 +214,6 @@
"metadataAvailable": {
"type": "object",
"additionalProperties": true,
"required": [
"size",
"gps"
],
"properties": {
"size": {
"type": "array",
@ -261,14 +232,6 @@
"files": {
"type": "object",
"additionalProperties": true,
"required": [
"bigfilechunking",
"blacklisted_files",
"directEditing",
"comments",
"undelete",
"versioning"
],
"properties": {
"bigfilechunking": {
"type": "boolean"
@ -282,10 +245,6 @@
"directEditing": {
"type": "object",
"additionalProperties": true,
"required": [
"url",
"etag"
],
"properties": {
"url": {
"type": "string"
@ -309,9 +268,6 @@
"activity": {
"type": "object",
"additionalProperties": true,
"required": [
"apiv2"
],
"properties": {
"apiv2": {
"type": "array",
@ -324,13 +280,6 @@
"circles": {
"type": "object",
"additionalProperties": true,
"required": [
"version",
"status",
"settings",
"circle",
"member"
],
"properties": {
"version": {
"type": "string"
@ -338,9 +287,6 @@
"status": {
"type": "object",
"additionalProperties": true,
"required": [
"globalScale"
],
"properties": {
"globalScale": {
"type": "boolean"
@ -350,12 +296,6 @@
"settings": {
"type": "object",
"additionalProperties": true,
"required": [
"frontendEnabled",
"allowedCircles",
"allowedUserTypes",
"membersLimit"
],
"properties": {
"frontendEnabled": {
"type": "boolean"
@ -374,18 +314,10 @@
"circle": {
"type": "object",
"additionalProperties": true,
"required": [
"constants",
"config"
],
"properties": {
"constants": {
"type": "object",
"additionalProperties": true,
"required": [
"flags",
"source"
],
"properties": {
"flags": {
"type": "object"
@ -393,10 +325,6 @@
"source": {
"type": "object",
"additionalProperties": true,
"required": [
"core",
"extra"
],
"properties": {
"core": {
"type": "object"
@ -411,10 +339,6 @@
"config": {
"type": "object",
"additionalProperties": true,
"required": [
"coreFlags",
"systemFlags"
],
"properties": {
"coreFlags": {
"type": "array",
@ -435,17 +359,10 @@
"member": {
"type": "object",
"additionalProperties": true,
"required": [
"constants",
"type"
],
"properties": {
"constants": {
"type": "object",
"additionalProperties": true,
"required": [
"level"
],
"properties": {
"level": {
"type": "object"
@ -462,12 +379,6 @@
"ocm": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled",
"apiVersion",
"endPoint",
"resourceTypes"
],
"properties": {
"enabled": {
"type": "boolean"
@ -483,11 +394,6 @@
"items": {
"type": "object",
"additionalProperties": true,
"required": [
"name",
"shareTypes",
"protocols"
],
"properties": {
"name": {
"type": "string"
@ -501,9 +407,6 @@
"protocols": {
"type": "object",
"additionalProperties": true,
"required": [
"webdav"
],
"properties": {
"webdav": {
"type": "string"
@ -518,9 +421,6 @@
"dav": {
"type": "object",
"additionalProperties": true,
"required": [
"chunking"
],
"properties": {
"bulkupload": {
"type": "string"
@ -533,18 +433,6 @@
"files_sharing": {
"type": "object",
"additionalProperties": true,
"required": [
"api_enabled",
"public",
"resharing",
"user",
"group_sharing",
"group",
"default_permissions",
"federation",
"sharee",
"sharebymail"
],
"properties": {
"api_enabled": {
"type": "boolean"
@ -552,17 +440,6 @@
"public": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled",
"password",
"expire_date",
"multiple_links",
"expire_date_internal",
"expire_date_remote",
"send_mail",
"upload",
"upload_files_drop"
],
"properties": {
"enabled": {
"type": "boolean"
@ -570,10 +447,6 @@
"password": {
"type": "object",
"additionalProperties": true,
"required": [
"enforced",
"askForOptionalPassword"
],
"properties": {
"enforced": {
"type": "boolean"
@ -586,9 +459,6 @@
"expire_date": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled"
],
"properties": {
"enabled": {
"type": "boolean"
@ -601,9 +471,6 @@
"expire_date_internal": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled"
],
"properties": {
"enabled": {
"type": "boolean"
@ -613,9 +480,6 @@
"expire_date_remote": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled"
],
"properties": {
"enabled": {
"type": "boolean"
@ -639,10 +503,6 @@
"user": {
"type": "object",
"additionalProperties": true,
"required": [
"send_mail",
"expire_date"
],
"properties": {
"send_mail": {
"type": "boolean"
@ -650,9 +510,6 @@
"expire_date": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled"
],
"properties": {
"enabled": {
"type": "boolean"
@ -667,10 +524,6 @@
"group": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled",
"expire_date"
],
"properties": {
"enabled": {
"type": "boolean"
@ -678,9 +531,6 @@
"expire_date": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled"
],
"properties": {
"enabled": {
"type": "boolean"
@ -695,12 +545,6 @@
"federation": {
"type": "object",
"additionalProperties": true,
"required": [
"outgoing",
"incoming",
"expire_date",
"expire_date_supported"
],
"properties": {
"outgoing": {
"type": "boolean"
@ -711,9 +555,6 @@
"expire_date": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled"
],
"properties": {
"enabled": {
"type": "boolean"
@ -723,9 +564,6 @@
"expire_date_supported": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled"
],
"properties": {
"enabled": {
"type": "boolean"
@ -737,10 +575,6 @@
"sharee": {
"type": "object",
"additionalProperties": true,
"required": [
"query_lookup_default",
"always_show_unique"
],
"properties": {
"query_lookup_default": {
"type": "boolean"
@ -753,13 +587,6 @@
"sharebymail": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled",
"send_password_by_mail",
"upload_files_drop",
"password",
"expire_date"
],
"properties": {
"enabled": {
"type": "boolean"
@ -770,9 +597,6 @@
"upload_files_drop": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled"
],
"properties": {
"enabled": {
"type": "boolean"
@ -782,10 +606,6 @@
"password": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled",
"enforced"
],
"properties": {
"enabled": {
"type": "boolean"
@ -798,10 +618,6 @@
"expire_date": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled",
"enforced"
],
"properties": {
"enabled": {
"type": "boolean"
@ -818,10 +634,6 @@
"notes": {
"type": "object",
"additionalProperties": true,
"required": [
"api_version",
"version"
],
"properties": {
"api_version": {
"type": "array",
@ -837,11 +649,6 @@
"notifications": {
"type": "object",
"additionalProperties": true,
"required": [
"ocs-endpoints",
"push",
"admin-notifications"
],
"properties": {
"ocs-endpoints": {
"type": "array",
@ -866,14 +673,6 @@
"password_policy": {
"type": "object",
"additionalProperties": true,
"required": [
"minLength",
"enforceNonCommonPassword",
"enforceNumericCharacters",
"enforceSpecialCharacters",
"enforceUpperLowerCase",
"api"
],
"properties": {
"minLength": {
"type": "integer"
@ -893,10 +692,6 @@
"api": {
"type": "object",
"additionalProperties": true,
"required": [
"generate",
"validate"
],
"properties": {
"generate": {
"type": "string"
@ -911,12 +706,6 @@
"provisioning_api": {
"type": "object",
"additionalProperties": true,
"required": [
"version",
"AccountPropertyScopesVersion",
"AccountPropertyScopesFederatedEnabled",
"AccountPropertyScopesPublishedEnabled"
],
"properties": {
"version": {
"type": "string"
@ -935,22 +724,6 @@
"theming": {
"type": "object",
"additionalProperties": true,
"required": [
"name",
"url",
"slogan",
"color",
"color-text",
"color-element",
"color-element-bright",
"color-element-dark",
"logo",
"background",
"background-plain",
"background-default",
"logoheader",
"favicon"
],
"properties": {
"name": {
"type": "string"
@ -999,10 +772,6 @@
"user_status": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled",
"supports_emoji"
],
"properties": {
"enabled": {
"type": "boolean"
@ -1014,9 +783,6 @@
},
"weather_status": {
"type": "object",
"required": [
"enabled"
],
"properties": {
"enabled": {
"type": "boolean"

9
packages/nextcloud/lib/src/version_supported.dart

@ -22,11 +22,12 @@ extension NotesVersionSupported on NotesClient {
Future<bool> isSupported([final CoreServerCapabilities_Ocs_Data? capabilities]) async =>
(capabilities ?? (await rootClient.core.getCapabilities()).ocs.data)
.capabilities
.notes!
.apiVersion
.map(Version.parse)
.notes
?.apiVersion
?.map(Version.parse)
.where((final version) => version.major == 1)
.isNotEmpty;
.isNotEmpty ??
false;
}
// Notifications, ProvisioningApi, UserStatus and Webdav are shipped with the Nextcloud server, so their supported versions depend on the major version of the Nextcloud instance.

234
specs/core.json

@ -145,14 +145,6 @@
"properties": {
"version": {
"type": "object",
"required": [
"major",
"minor",
"micro",
"string",
"edition",
"extendedSupport"
],
"properties": {
"major": {
"type": "integer"
@ -177,24 +169,10 @@
"capabilities": {
"type": "object",
"additionalProperties": true,
"required": [
"core",
"bruteforce",
"metadataAvailable",
"files",
"ocm",
"dav"
],
"properties": {
"core": {
"type": "object",
"additionalProperties": true,
"required": [
"pollinterval",
"webdav-root",
"reference-api",
"reference-regex"
],
"properties": {
"pollinterval": {
"type": "integer"
@ -213,9 +191,6 @@
"bruteforce": {
"type": "object",
"additionalProperties": true,
"required": [
"delay"
],
"properties": {
"delay": {
"type": "integer"
@ -225,10 +200,6 @@
"metadataAvailable": {
"type": "object",
"additionalProperties": true,
"required": [
"size",
"gps"
],
"properties": {
"size": {
"type": "array",
@ -247,14 +218,6 @@
"files": {
"type": "object",
"additionalProperties": true,
"required": [
"bigfilechunking",
"blacklisted_files",
"directEditing",
"comments",
"undelete",
"versioning"
],
"properties": {
"bigfilechunking": {
"type": "boolean"
@ -268,10 +231,6 @@
"directEditing": {
"type": "object",
"additionalProperties": true,
"required": [
"url",
"etag"
],
"properties": {
"url": {
"type": "string"
@ -295,9 +254,6 @@
"activity": {
"type": "object",
"additionalProperties": true,
"required": [
"apiv2"
],
"properties": {
"apiv2": {
"type": "array",
@ -310,13 +266,6 @@
"circles": {
"type": "object",
"additionalProperties": true,
"required": [
"version",
"status",
"settings",
"circle",
"member"
],
"properties": {
"version": {
"type": "string"
@ -324,9 +273,6 @@
"status": {
"type": "object",
"additionalProperties": true,
"required": [
"globalScale"
],
"properties": {
"globalScale": {
"type": "boolean"
@ -336,12 +282,6 @@
"settings": {
"type": "object",
"additionalProperties": true,
"required": [
"frontendEnabled",
"allowedCircles",
"allowedUserTypes",
"membersLimit"
],
"properties": {
"frontendEnabled": {
"type": "boolean"
@ -360,18 +300,10 @@
"circle": {
"type": "object",
"additionalProperties": true,
"required": [
"constants",
"config"
],
"properties": {
"constants": {
"type": "object",
"additionalProperties": true,
"required": [
"flags",
"source"
],
"properties": {
"flags": {
"type": "object"
@ -379,10 +311,6 @@
"source": {
"type": "object",
"additionalProperties": true,
"required": [
"core",
"extra"
],
"properties": {
"core": {
"type": "object"
@ -397,10 +325,6 @@
"config": {
"type": "object",
"additionalProperties": true,
"required": [
"coreFlags",
"systemFlags"
],
"properties": {
"coreFlags": {
"type": "array",
@ -421,17 +345,10 @@
"member": {
"type": "object",
"additionalProperties": true,
"required": [
"constants",
"type"
],
"properties": {
"constants": {
"type": "object",
"additionalProperties": true,
"required": [
"level"
],
"properties": {
"level": {
"type": "object"
@ -448,12 +365,6 @@
"ocm": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled",
"apiVersion",
"endPoint",
"resourceTypes"
],
"properties": {
"enabled": {
"type": "boolean"
@ -469,11 +380,6 @@
"items": {
"type": "object",
"additionalProperties": true,
"required": [
"name",
"shareTypes",
"protocols"
],
"properties": {
"name": {
"type": "string"
@ -487,9 +393,6 @@
"protocols": {
"type": "object",
"additionalProperties": true,
"required": [
"webdav"
],
"properties": {
"webdav": {
"type": "string"
@ -504,9 +407,6 @@
"dav": {
"type": "object",
"additionalProperties": true,
"required": [
"chunking"
],
"properties": {
"bulkupload": {
"type": "string"
@ -519,18 +419,6 @@
"files_sharing": {
"type": "object",
"additionalProperties": true,
"required": [
"api_enabled",
"public",
"resharing",
"user",
"group_sharing",
"group",
"default_permissions",
"federation",
"sharee",
"sharebymail"
],
"properties": {
"api_enabled": {
"type": "boolean"
@ -538,17 +426,6 @@
"public": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled",
"password",
"expire_date",
"multiple_links",
"expire_date_internal",
"expire_date_remote",
"send_mail",
"upload",
"upload_files_drop"
],
"properties": {
"enabled": {
"type": "boolean"
@ -556,10 +433,6 @@
"password": {
"type": "object",
"additionalProperties": true,
"required": [
"enforced",
"askForOptionalPassword"
],
"properties": {
"enforced": {
"type": "boolean"
@ -572,9 +445,6 @@
"expire_date": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled"
],
"properties": {
"enabled": {
"type": "boolean"
@ -587,9 +457,6 @@
"expire_date_internal": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled"
],
"properties": {
"enabled": {
"type": "boolean"
@ -599,9 +466,6 @@
"expire_date_remote": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled"
],
"properties": {
"enabled": {
"type": "boolean"
@ -625,10 +489,6 @@
"user": {
"type": "object",
"additionalProperties": true,
"required": [
"send_mail",
"expire_date"
],
"properties": {
"send_mail": {
"type": "boolean"
@ -636,9 +496,6 @@
"expire_date": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled"
],
"properties": {
"enabled": {
"type": "boolean"
@ -653,10 +510,6 @@
"group": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled",
"expire_date"
],
"properties": {
"enabled": {
"type": "boolean"
@ -664,9 +517,6 @@
"expire_date": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled"
],
"properties": {
"enabled": {
"type": "boolean"
@ -681,12 +531,6 @@
"federation": {
"type": "object",
"additionalProperties": true,
"required": [
"outgoing",
"incoming",
"expire_date",
"expire_date_supported"
],
"properties": {
"outgoing": {
"type": "boolean"
@ -697,9 +541,6 @@
"expire_date": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled"
],
"properties": {
"enabled": {
"type": "boolean"
@ -709,9 +550,6 @@
"expire_date_supported": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled"
],
"properties": {
"enabled": {
"type": "boolean"
@ -723,10 +561,6 @@
"sharee": {
"type": "object",
"additionalProperties": true,
"required": [
"query_lookup_default",
"always_show_unique"
],
"properties": {
"query_lookup_default": {
"type": "boolean"
@ -739,13 +573,6 @@
"sharebymail": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled",
"send_password_by_mail",
"upload_files_drop",
"password",
"expire_date"
],
"properties": {
"enabled": {
"type": "boolean"
@ -756,9 +583,6 @@
"upload_files_drop": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled"
],
"properties": {
"enabled": {
"type": "boolean"
@ -768,10 +592,6 @@
"password": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled",
"enforced"
],
"properties": {
"enabled": {
"type": "boolean"
@ -784,10 +604,6 @@
"expire_date": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled",
"enforced"
],
"properties": {
"enabled": {
"type": "boolean"
@ -804,10 +620,6 @@
"notes": {
"type": "object",
"additionalProperties": true,
"required": [
"api_version",
"version"
],
"properties": {
"api_version": {
"type": "array",
@ -823,11 +635,6 @@
"notifications": {
"type": "object",
"additionalProperties": true,
"required": [
"ocs-endpoints",
"push",
"admin-notifications"
],
"properties": {
"ocs-endpoints": {
"type": "array",
@ -852,14 +659,6 @@
"password_policy": {
"type": "object",
"additionalProperties": true,
"required": [
"minLength",
"enforceNonCommonPassword",
"enforceNumericCharacters",
"enforceSpecialCharacters",
"enforceUpperLowerCase",
"api"
],
"properties": {
"minLength": {
"type": "integer"
@ -879,10 +678,6 @@
"api": {
"type": "object",
"additionalProperties": true,
"required": [
"generate",
"validate"
],
"properties": {
"generate": {
"type": "string"
@ -897,12 +692,6 @@
"provisioning_api": {
"type": "object",
"additionalProperties": true,
"required": [
"version",
"AccountPropertyScopesVersion",
"AccountPropertyScopesFederatedEnabled",
"AccountPropertyScopesPublishedEnabled"
],
"properties": {
"version": {
"type": "string"
@ -921,22 +710,6 @@
"theming": {
"type": "object",
"additionalProperties": true,
"required": [
"name",
"url",
"slogan",
"color",
"color-text",
"color-element",
"color-element-bright",
"color-element-dark",
"logo",
"background",
"background-plain",
"background-default",
"logoheader",
"favicon"
],
"properties": {
"name": {
"type": "string"
@ -985,10 +758,6 @@
"user_status": {
"type": "object",
"additionalProperties": true,
"required": [
"enabled",
"supports_emoji"
],
"properties": {
"enabled": {
"type": "boolean"
@ -1000,9 +769,6 @@
},
"weather_status": {
"type": "object",
"required": [
"enabled"
],
"properties": {
"enabled": {
"type": "boolean"

Loading…
Cancel
Save