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

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

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

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

@ -9,7 +9,7 @@ ThemeData getThemeFromNextcloudTheme(
required final bool oledAsDark, required final bool oledAsDark,
required final bool keepOriginalAccentColor, 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; late final Brightness selectBrightness;
switch (themeMode) { 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'], allowedKeys: const ['major', 'minor', 'micro', 'string', 'edition', 'extendedSupport'],
); );
return CoreServerCapabilities_Ocs_Data_Version( return CoreServerCapabilities_Ocs_Data_Version(
major: json['major'] as int, major: json['major'] as int?,
minor: json['minor'] as int, minor: json['minor'] as int?,
micro: json['micro'] as int, micro: json['micro'] as int?,
string: json['string'] as String, string: json['string'] as String?,
edition: json['edition'] as String, edition: json['edition'] as String?,
extendedSupport: json['extendedSupport'] as bool, 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( CoreServerCapabilities_Ocs_Data_Capabilities_Core _$CoreServerCapabilities_Ocs_Data_Capabilities_CoreFromJson(
Map<String, dynamic> json) => Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Core( CoreServerCapabilities_Ocs_Data_Capabilities_Core(
pollinterval: json['pollinterval'] as int, pollinterval: json['pollinterval'] as int?,
webdavRoot: json['webdav-root'] as String, webdavRoot: json['webdav-root'] as String?,
referenceApi: json['reference-api'] as bool, referenceApi: json['reference-api'] as bool?,
referenceRegex: json['reference-regex'] as String, referenceRegex: json['reference-regex'] as String?,
); );
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_CoreToJson( 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_Bruteforce
_$CoreServerCapabilities_Ocs_Data_Capabilities_BruteforceFromJson(Map<String, dynamic> json) => _$CoreServerCapabilities_Ocs_Data_Capabilities_BruteforceFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce( CoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce(
delay: json['delay'] as int, delay: json['delay'] as int?,
); );
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_BruteforceToJson( 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_MetadataAvailable
_$CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailableFromJson(Map<String, dynamic> json) => _$CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailableFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable( CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable(
size: (json['size'] 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(), gps: (json['gps'] as List<dynamic>?)?.map((e) => e as String).toList(),
); );
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailableToJson( 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_DirectEditing
_$CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditingFromJson(Map<String, dynamic> json) => _$CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditingFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing( CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing(
url: json['url'] as String, url: json['url'] as String?,
etag: json['etag'] as String, etag: json['etag'] as String?,
); );
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditingToJson( 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( CoreServerCapabilities_Ocs_Data_Capabilities_Files _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesFromJson(
Map<String, dynamic> json) => Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Files( CoreServerCapabilities_Ocs_Data_Capabilities_Files(
bigfilechunking: json['bigfilechunking'] as bool, bigfilechunking: json['bigfilechunking'] as bool?,
blacklistedFiles: (json['blacklisted_files'] as List<dynamic>).map((e) => e as String).toList(), blacklistedFiles: (json['blacklisted_files'] as List<dynamic>?)?.map((e) => e as String).toList(),
directEditing: CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing.fromJson( directEditing: json['directEditing'] == null
json['directEditing'] as Map<String, dynamic>), ? null
comments: json['comments'] as bool, : CoreServerCapabilities_Ocs_Data_Capabilities_Files_DirectEditing.fromJson(
undelete: json['undelete'] as bool, json['directEditing'] as Map<String, dynamic>),
versioning: json['versioning'] as bool, comments: json['comments'] as bool?,
undelete: json['undelete'] as bool?,
versioning: json['versioning'] as bool?,
); );
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesToJson( Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesToJson(
@ -166,7 +168,7 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesToJson(
<String, dynamic>{ <String, dynamic>{
'bigfilechunking': instance.bigfilechunking, 'bigfilechunking': instance.bigfilechunking,
'blacklisted_files': instance.blacklistedFiles, 'blacklisted_files': instance.blacklistedFiles,
'directEditing': instance.directEditing.toJson(), 'directEditing': instance.directEditing?.toJson(),
'comments': instance.comments, 'comments': instance.comments,
'undelete': instance.undelete, 'undelete': instance.undelete,
'versioning': instance.versioning, '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( CoreServerCapabilities_Ocs_Data_Capabilities_Activity _$CoreServerCapabilities_Ocs_Data_Capabilities_ActivityFromJson(
Map<String, dynamic> json) => Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Activity( 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( 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_Status
_$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_StatusFromJson(Map<String, dynamic> json) => _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_StatusFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status( 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( 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_Settings
_$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_SettingsFromJson(Map<String, dynamic> json) => _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_SettingsFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings( CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings(
frontendEnabled: json['frontendEnabled'] as bool, frontendEnabled: json['frontendEnabled'] as bool?,
allowedCircles: json['allowedCircles'] as int, allowedCircles: json['allowedCircles'] as int?,
allowedUserTypes: json['allowedUserTypes'] as int, allowedUserTypes: json['allowedUserTypes'] as int?,
membersLimit: json['membersLimit'] as int, membersLimit: json['membersLimit'] as int?,
); );
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_SettingsToJson( 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_ConstantsFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants( CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants(
flags: json['flags'], flags: json['flags'],
source: CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants_Source.fromJson( source: json['source'] == null
json['source'] as Map<String, dynamic>), ? 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( Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConstantsToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants instance) => CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants instance) =>
<String, dynamic>{ <String, dynamic>{
'flags': instance.flags, 'flags': instance.flags,
'source': instance.source.toJson(), 'source': instance.source?.toJson(),
}; };
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config
_$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConfigFromJson(Map<String, dynamic> json) => _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConfigFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config( CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config(
coreFlags: (json['coreFlags'] 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(), systemFlags: (json['systemFlags'] as List<dynamic>?)?.map((e) => e as int).toList(),
); );
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_ConfigToJson( 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_Circle
_$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_CircleFromJson(Map<String, dynamic> json) => _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_CircleFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle( CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle(
constants: CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants.fromJson( constants: json['constants'] == null
json['constants'] as Map<String, dynamic>), ? null
config: CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Config.fromJson( : CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle_Constants.fromJson(
json['config'] as Map<String, dynamic>), 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( Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_CircleToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle instance) => CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle instance) =>
<String, dynamic>{ <String, dynamic>{
'constants': instance.constants.toJson(), 'constants': instance.constants?.toJson(),
'config': instance.config.toJson(), 'config': instance.config?.toJson(),
}; };
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants 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_Member
_$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_MemberFromJson(Map<String, dynamic> json) => _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_MemberFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member( CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member(
constants: CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants.fromJson( constants: json['constants'] == null
json['constants'] as Map<String, dynamic>), ? null
: CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member_Constants.fromJson(
json['constants'] as Map<String, dynamic>),
type: json['type'], type: json['type'],
); );
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_MemberToJson( Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Circles_MemberToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member instance) => CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member instance) =>
<String, dynamic>{ <String, dynamic>{
'constants': instance.constants.toJson(), 'constants': instance.constants?.toJson(),
'type': instance.type, 'type': instance.type,
}; };
CoreServerCapabilities_Ocs_Data_Capabilities_Circles _$CoreServerCapabilities_Ocs_Data_Capabilities_CirclesFromJson( CoreServerCapabilities_Ocs_Data_Capabilities_Circles _$CoreServerCapabilities_Ocs_Data_Capabilities_CirclesFromJson(
Map<String, dynamic> json) => Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Circles( CoreServerCapabilities_Ocs_Data_Capabilities_Circles(
version: json['version'] as String, version: json['version'] as String?,
status: status: json['status'] == null
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status.fromJson(json['status'] as Map<String, dynamic>), ? null
settings: CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings.fromJson( : CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Status.fromJson(
json['settings'] as Map<String, dynamic>), json['status'] as Map<String, dynamic>),
circle: settings: json['settings'] == null
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Circle.fromJson(json['circle'] as Map<String, dynamic>), ? null
member: : CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Settings.fromJson(
CoreServerCapabilities_Ocs_Data_Capabilities_Circles_Member.fromJson(json['member'] as Map<String, dynamic>), 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( Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_CirclesToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_Circles instance) => CoreServerCapabilities_Ocs_Data_Capabilities_Circles instance) =>
<String, dynamic>{ <String, dynamic>{
'version': instance.version, 'version': instance.version,
'status': instance.status.toJson(), 'status': instance.status?.toJson(),
'settings': instance.settings.toJson(), 'settings': instance.settings?.toJson(),
'circle': instance.circle.toJson(), 'circle': instance.circle?.toJson(),
'member': instance.member.toJson(), 'member': instance.member?.toJson(),
}; };
CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols
_$CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_ProtocolsFromJson(Map<String, dynamic> json) => _$CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_ProtocolsFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols( 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( 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_ResourceTypes
_$CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypesFromJson(Map<String, dynamic> json) => _$CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypesFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes( CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes(
name: json['name'] as String, name: json['name'] as String?,
shareTypes: (json['shareTypes'] as List<dynamic>).map((e) => e as String).toList(), shareTypes: (json['shareTypes'] as List<dynamic>?)?.map((e) => e as String).toList(),
protocols: CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols.fromJson( protocols: json['protocols'] == null
json['protocols'] as Map<String, dynamic>), ? null
: CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes_Protocols.fromJson(
json['protocols'] as Map<String, dynamic>),
); );
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypesToJson( Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypesToJson(
@ -350,17 +370,17 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_Resource
<String, dynamic>{ <String, dynamic>{
'name': instance.name, 'name': instance.name,
'shareTypes': instance.shareTypes, 'shareTypes': instance.shareTypes,
'protocols': instance.protocols.toJson(), 'protocols': instance.protocols?.toJson(),
}; };
CoreServerCapabilities_Ocs_Data_Capabilities_Ocm _$CoreServerCapabilities_Ocs_Data_Capabilities_OcmFromJson( CoreServerCapabilities_Ocs_Data_Capabilities_Ocm _$CoreServerCapabilities_Ocs_Data_Capabilities_OcmFromJson(
Map<String, dynamic> json) => Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Ocm( CoreServerCapabilities_Ocs_Data_Capabilities_Ocm(
enabled: json['enabled'] as bool, enabled: json['enabled'] as bool?,
apiVersion: json['apiVersion'] as String, apiVersion: json['apiVersion'] as String?,
endPoint: json['endPoint'] as String, endPoint: json['endPoint'] as String?,
resourceTypes: (json['resourceTypes'] as List<dynamic>) resourceTypes: (json['resourceTypes'] as List<dynamic>?)
.map( ?.map(
(e) => CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes.fromJson(e as Map<String, dynamic>)) (e) => CoreServerCapabilities_Ocs_Data_Capabilities_Ocm_ResourceTypes.fromJson(e as Map<String, dynamic>))
.toList(), .toList(),
); );
@ -371,14 +391,14 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_OcmToJson(
'enabled': instance.enabled, 'enabled': instance.enabled,
'apiVersion': instance.apiVersion, 'apiVersion': instance.apiVersion,
'endPoint': instance.endPoint, '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( CoreServerCapabilities_Ocs_Data_Capabilities_Dav _$CoreServerCapabilities_Ocs_Data_Capabilities_DavFromJson(
Map<String, dynamic> json) => Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Dav( CoreServerCapabilities_Ocs_Data_Capabilities_Dav(
bulkupload: json['bulkupload'] as String?, bulkupload: json['bulkupload'] as String?,
chunking: json['chunking'] as String, chunking: json['chunking'] as String?,
); );
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_DavToJson( 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_Password
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_PasswordFromJson(Map<String, dynamic> json) => _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_PasswordFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password( CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password(
enforced: json['enforced'] as bool, enforced: json['enforced'] as bool?,
askForOptionalPassword: json['askForOptionalPassword'] as bool, askForOptionalPassword: json['askForOptionalPassword'] as bool?,
); );
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_PasswordToJson( 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_ExpireDate
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateFromJson(Map<String, dynamic> json) => _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate( 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( 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( _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternalFromJson(
Map<String, dynamic> json) => Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal( 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( 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( _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemoteFromJson(
Map<String, dynamic> json) => Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote( 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( 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_Public
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_PublicFromJson(Map<String, dynamic> json) => _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_PublicFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public( CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public(
enabled: json['enabled'] as bool, enabled: json['enabled'] as bool?,
password: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password.fromJson( password: json['password'] == null
json['password'] as Map<String, dynamic>), ? null
expireDate: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDate.fromJson( : CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_Password.fromJson(
json['expire_date'] as Map<String, dynamic>), json['password'] as Map<String, dynamic>),
multipleLinks: json['multiple_links'] as bool, expireDate: json['expire_date'] == null
expireDateInternal: ? null
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateInternal.fromJson( : 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>), json['expire_date_internal'] as Map<String, dynamic>),
expireDateRemote: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote.fromJson( expireDateRemote: json['expire_date_remote'] == null
json['expire_date_remote'] as Map<String, dynamic>), ? null
sendMail: json['send_mail'] as bool, : CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public_ExpireDateRemote.fromJson(
upload: json['upload'] as bool, json['expire_date_remote'] as Map<String, dynamic>),
uploadFilesDrop: json['upload_files_drop'] as bool, 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( Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_PublicToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public instance) => CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public instance) =>
<String, dynamic>{ <String, dynamic>{
'enabled': instance.enabled, 'enabled': instance.enabled,
'password': instance.password.toJson(), 'password': instance.password?.toJson(),
'expire_date': instance.expireDate.toJson(), 'expire_date': instance.expireDate?.toJson(),
'multiple_links': instance.multipleLinks, 'multiple_links': instance.multipleLinks,
'expire_date_internal': instance.expireDateInternal.toJson(), 'expire_date_internal': instance.expireDateInternal?.toJson(),
'expire_date_remote': instance.expireDateRemote.toJson(), 'expire_date_remote': instance.expireDateRemote?.toJson(),
'send_mail': instance.sendMail, 'send_mail': instance.sendMail,
'upload': instance.upload, 'upload': instance.upload,
'upload_files_drop': instance.uploadFilesDrop, '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_ExpireDate
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDateFromJson(Map<String, dynamic> json) => _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDateFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate( 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( 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_User
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_UserFromJson(Map<String, dynamic> json) => _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_UserFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User( CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User(
sendMail: json['send_mail'] as bool, sendMail: json['send_mail'] as bool?,
expireDate: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User_ExpireDate.fromJson( expireDate: json['expire_date'] == null
json['expire_date'] as Map<String, dynamic>), ? 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( Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_UserToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User instance) => CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User instance) =>
<String, dynamic>{ <String, dynamic>{
'send_mail': instance.sendMail, '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_ExpireDate
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDateFromJson(Map<String, dynamic> json) => _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDateFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate( 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( 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_Group
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_GroupFromJson(Map<String, dynamic> json) => _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_GroupFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group( CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group(
enabled: json['enabled'] as bool, enabled: json['enabled'] as bool?,
expireDate: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group_ExpireDate.fromJson( expireDate: json['expire_date'] == null
json['expire_date'] as Map<String, dynamic>), ? 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( Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_GroupToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group instance) => CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group instance) =>
<String, dynamic>{ <String, dynamic>{
'enabled': instance.enabled, '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_ExpireDate
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateFromJson( _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateFromJson(
Map<String, dynamic> json) => Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate( 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( 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( _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupportedFromJson(
Map<String, dynamic> json) => Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported( 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( 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_Federation
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_FederationFromJson(Map<String, dynamic> json) => _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_FederationFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation( CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation(
outgoing: json['outgoing'] as bool, outgoing: json['outgoing'] as bool?,
incoming: json['incoming'] as bool, incoming: json['incoming'] as bool?,
expireDate: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate.fromJson( expireDate: json['expire_date'] == null
json['expire_date'] as Map<String, dynamic>), ? null
expireDateSupported: : CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDate.fromJson(
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation_ExpireDateSupported.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>), json['expire_date_supported'] as Map<String, dynamic>),
); );
@ -570,15 +604,15 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing
<String, dynamic>{ <String, dynamic>{
'outgoing': instance.outgoing, 'outgoing': instance.outgoing,
'incoming': instance.incoming, 'incoming': instance.incoming,
'expire_date': instance.expireDate.toJson(), 'expire_date': instance.expireDate?.toJson(),
'expire_date_supported': instance.expireDateSupported.toJson(), 'expire_date_supported': instance.expireDateSupported?.toJson(),
}; };
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_ShareeFromJson(Map<String, dynamic> json) => _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_ShareeFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee( CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee(
queryLookupDefault: json['query_lookup_default'] as bool, queryLookupDefault: json['query_lookup_default'] as bool?,
alwaysShowUnique: json['always_show_unique'] as bool, alwaysShowUnique: json['always_show_unique'] as bool?,
); );
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_ShareeToJson( 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( _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDropFromJson(
Map<String, dynamic> json) => Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop( 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( 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( _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_PasswordFromJson(
Map<String, dynamic> json) => Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password( CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password(
enabled: json['enabled'] as bool, enabled: json['enabled'] as bool?,
enforced: json['enforced'] as bool, enforced: json['enforced'] as bool?,
); );
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_PasswordToJson( 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( _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDateFromJson(
Map<String, dynamic> json) => Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate( CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate(
enabled: json['enabled'] as bool, enabled: json['enabled'] as bool?,
enforced: json['enforced'] as bool, enforced: json['enforced'] as bool?,
); );
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDateToJson( 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_Sharebymail
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_SharebymailFromJson(Map<String, dynamic> json) => _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_SharebymailFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail( CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail(
enabled: json['enabled'] as bool, enabled: json['enabled'] as bool?,
sendPasswordByMail: json['send_password_by_mail'] as bool, sendPasswordByMail: json['send_password_by_mail'] as bool?,
uploadFilesDrop: uploadFilesDrop: json['upload_files_drop'] == null
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop.fromJson( ? null
: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_UploadFilesDrop.fromJson(
json['upload_files_drop'] as Map<String, dynamic>), json['upload_files_drop'] as Map<String, dynamic>),
password: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password.fromJson( password: json['password'] == null
json['password'] as Map<String, dynamic>), ? null
expireDate: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_ExpireDate.fromJson( : CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail_Password.fromJson(
json['expire_date'] as Map<String, dynamic>), 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( Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_SharebymailToJson(
@ -650,52 +689,64 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing
<String, dynamic>{ <String, dynamic>{
'enabled': instance.enabled, 'enabled': instance.enabled,
'send_password_by_mail': instance.sendPasswordByMail, 'send_password_by_mail': instance.sendPasswordByMail,
'upload_files_drop': instance.uploadFilesDrop.toJson(), 'upload_files_drop': instance.uploadFilesDrop?.toJson(),
'password': instance.password.toJson(), 'password': instance.password?.toJson(),
'expire_date': instance.expireDate.toJson(), 'expire_date': instance.expireDate?.toJson(),
}; };
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing
_$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharingFromJson(Map<String, dynamic> json) => _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharingFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing( CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing(
apiEnabled: json['api_enabled'] as bool, apiEnabled: json['api_enabled'] as bool?,
public: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public.fromJson( public: json['public'] == null
json['public'] as Map<String, dynamic>), ? null
resharing: json['resharing'] as bool, : CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Public.fromJson(
user: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User.fromJson( json['public'] as Map<String, dynamic>),
json['user'] as Map<String, dynamic>), resharing: json['resharing'] as bool?,
groupSharing: json['group_sharing'] as bool, user: json['user'] == null
group: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group.fromJson( ? null
json['group'] as Map<String, dynamic>), : CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_User.fromJson(
defaultPermissions: json['default_permissions'] as int, json['user'] as Map<String, dynamic>),
federation: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Federation.fromJson( groupSharing: json['group_sharing'] as bool?,
json['federation'] as Map<String, dynamic>), group: json['group'] == null
sharee: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharee.fromJson( ? null
json['sharee'] as Map<String, dynamic>), : CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Group.fromJson(
sharebymail: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing_Sharebymail.fromJson( json['group'] as Map<String, dynamic>),
json['sharebymail'] 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( Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharingToJson(
CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing instance) => CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing instance) =>
<String, dynamic>{ <String, dynamic>{
'api_enabled': instance.apiEnabled, 'api_enabled': instance.apiEnabled,
'public': instance.public.toJson(), 'public': instance.public?.toJson(),
'resharing': instance.resharing, 'resharing': instance.resharing,
'user': instance.user.toJson(), 'user': instance.user?.toJson(),
'group_sharing': instance.groupSharing, 'group_sharing': instance.groupSharing,
'group': instance.group.toJson(), 'group': instance.group?.toJson(),
'default_permissions': instance.defaultPermissions, 'default_permissions': instance.defaultPermissions,
'federation': instance.federation.toJson(), 'federation': instance.federation?.toJson(),
'sharee': instance.sharee.toJson(), 'sharee': instance.sharee?.toJson(),
'sharebymail': instance.sharebymail.toJson(), 'sharebymail': instance.sharebymail?.toJson(),
}; };
CoreServerCapabilities_Ocs_Data_Capabilities_Notes _$CoreServerCapabilities_Ocs_Data_Capabilities_NotesFromJson( CoreServerCapabilities_Ocs_Data_Capabilities_Notes _$CoreServerCapabilities_Ocs_Data_Capabilities_NotesFromJson(
Map<String, dynamic> json) => Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Notes( CoreServerCapabilities_Ocs_Data_Capabilities_Notes(
apiVersion: (json['api_version'] as List<dynamic>).map((e) => e as String).toList(), apiVersion: (json['api_version'] as List<dynamic>?)?.map((e) => e as String).toList(),
version: json['version'] as String, version: json['version'] as String?,
); );
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_NotesToJson( 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_Notifications
_$CoreServerCapabilities_Ocs_Data_Capabilities_NotificationsFromJson(Map<String, dynamic> json) => _$CoreServerCapabilities_Ocs_Data_Capabilities_NotificationsFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Notifications( CoreServerCapabilities_Ocs_Data_Capabilities_Notifications(
ocsEndpoints: (json['ocs-endpoints'] 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(), 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(), adminNotifications: (json['admin-notifications'] as List<dynamic>?)?.map((e) => e as String).toList(),
); );
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_NotificationsToJson( 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_Api
_$CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_ApiFromJson(Map<String, dynamic> json) => _$CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_ApiFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api( CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api(
generate: json['generate'] as String, generate: json['generate'] as String?,
validate: json['validate'] as String, validate: json['validate'] as String?,
); );
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_ApiToJson( 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_PasswordPolicy
_$CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicyFromJson(Map<String, dynamic> json) => _$CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicyFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy( CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy(
minLength: json['minLength'] as int, minLength: json['minLength'] as int?,
enforceNonCommonPassword: json['enforceNonCommonPassword'] as bool, enforceNonCommonPassword: json['enforceNonCommonPassword'] as bool?,
enforceNumericCharacters: json['enforceNumericCharacters'] as bool, enforceNumericCharacters: json['enforceNumericCharacters'] as bool?,
enforceSpecialCharacters: json['enforceSpecialCharacters'] as bool, enforceSpecialCharacters: json['enforceSpecialCharacters'] as bool?,
enforceUpperLowerCase: json['enforceUpperLowerCase'] as bool, enforceUpperLowerCase: json['enforceUpperLowerCase'] as bool?,
api: CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api.fromJson( api: json['api'] == null
json['api'] as Map<String, dynamic>), ? null
: CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicy_Api.fromJson(
json['api'] as Map<String, dynamic>),
); );
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicyToJson( Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPolicyToJson(
@ -755,16 +808,16 @@ Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_PasswordPoli
'enforceNumericCharacters': instance.enforceNumericCharacters, 'enforceNumericCharacters': instance.enforceNumericCharacters,
'enforceSpecialCharacters': instance.enforceSpecialCharacters, 'enforceSpecialCharacters': instance.enforceSpecialCharacters,
'enforceUpperLowerCase': instance.enforceUpperLowerCase, 'enforceUpperLowerCase': instance.enforceUpperLowerCase,
'api': instance.api.toJson(), 'api': instance.api?.toJson(),
}; };
CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi
_$CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApiFromJson(Map<String, dynamic> json) => _$CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApiFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi( CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApi(
version: json['version'] as String, version: json['version'] as String?,
accountPropertyScopesVersion: json['AccountPropertyScopesVersion'] as int, accountPropertyScopesVersion: json['AccountPropertyScopesVersion'] as int?,
accountPropertyScopesFederatedEnabled: json['AccountPropertyScopesFederatedEnabled'] as bool, accountPropertyScopesFederatedEnabled: json['AccountPropertyScopesFederatedEnabled'] as bool?,
accountPropertyScopesPublishedEnabled: json['AccountPropertyScopesPublishedEnabled'] as bool, accountPropertyScopesPublishedEnabled: json['AccountPropertyScopesPublishedEnabled'] as bool?,
); );
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_ProvisioningApiToJson( 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( CoreServerCapabilities_Ocs_Data_Capabilities_Theming _$CoreServerCapabilities_Ocs_Data_Capabilities_ThemingFromJson(
Map<String, dynamic> json) => Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_Theming( CoreServerCapabilities_Ocs_Data_Capabilities_Theming(
name: json['name'] as String, name: json['name'] as String?,
url: json['url'] as String, url: json['url'] as String?,
slogan: json['slogan'] as String, slogan: json['slogan'] as String?,
color: json['color'] as String, color: json['color'] as String?,
colorText: json['color-text'] as String, colorText: json['color-text'] as String?,
colorElement: json['color-element'] as String, colorElement: json['color-element'] as String?,
colorElementBright: json['color-element-bright'] as String, colorElementBright: json['color-element-bright'] as String?,
colorElementDark: json['color-element-dark'] as String, colorElementDark: json['color-element-dark'] as String?,
logo: json['logo'] as String, logo: json['logo'] as String?,
background: json['background'] as String, background: json['background'] as String?,
backgroundPlain: json['background-plain'] as bool, backgroundPlain: json['background-plain'] as bool?,
backgroundDefault: json['background-default'] as bool, backgroundDefault: json['background-default'] as bool?,
logoheader: json['logoheader'] as String, logoheader: json['logoheader'] as String?,
favicon: json['favicon'] as String, favicon: json['favicon'] as String?,
); );
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_ThemingToJson( 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_UserStatus
_$CoreServerCapabilities_Ocs_Data_Capabilities_UserStatusFromJson(Map<String, dynamic> json) => _$CoreServerCapabilities_Ocs_Data_Capabilities_UserStatusFromJson(Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities_UserStatus( CoreServerCapabilities_Ocs_Data_Capabilities_UserStatus(
enabled: json['enabled'] as bool, enabled: json['enabled'] as bool?,
supportsEmoji: json['supports_emoji'] as bool, supportsEmoji: json['supports_emoji'] as bool?,
); );
Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_UserStatusToJson( Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_Capabilities_UserStatusToJson(
@ -835,7 +888,7 @@ CoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus
allowedKeys: const ['enabled'], allowedKeys: const ['enabled'],
); );
return CoreServerCapabilities_Ocs_Data_Capabilities_WeatherStatus( 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( CoreServerCapabilities_Ocs_Data_Capabilities _$CoreServerCapabilities_Ocs_Data_CapabilitiesFromJson(
Map<String, dynamic> json) => Map<String, dynamic> json) =>
CoreServerCapabilities_Ocs_Data_Capabilities( CoreServerCapabilities_Ocs_Data_Capabilities(
core: CoreServerCapabilities_Ocs_Data_Capabilities_Core.fromJson(json['core'] as Map<String, dynamic>), core: json['core'] == null
bruteforce: ? null
CoreServerCapabilities_Ocs_Data_Capabilities_Bruteforce.fromJson(json['bruteforce'] as Map<String, dynamic>), : CoreServerCapabilities_Ocs_Data_Capabilities_Core.fromJson(json['core'] as Map<String, dynamic>),
metadataAvailable: CoreServerCapabilities_Ocs_Data_Capabilities_MetadataAvailable.fromJson( bruteforce: json['bruteforce'] == null
json['metadataAvailable'] as Map<String, dynamic>), ? null
files: CoreServerCapabilities_Ocs_Data_Capabilities_Files.fromJson(json['files'] as Map<String, dynamic>), : 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 activity: json['activity'] == null
? null ? null
: CoreServerCapabilities_Ocs_Data_Capabilities_Activity.fromJson(json['activity'] as Map<String, dynamic>), : CoreServerCapabilities_Ocs_Data_Capabilities_Activity.fromJson(json['activity'] as Map<String, dynamic>),
circles: json['circles'] == null circles: json['circles'] == null
? null ? null
: CoreServerCapabilities_Ocs_Data_Capabilities_Circles.fromJson(json['circles'] as Map<String, dynamic>), : 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>), ocm: json['ocm'] == null
dav: CoreServerCapabilities_Ocs_Data_Capabilities_Dav.fromJson(json['dav'] as Map<String, dynamic>), ? 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 filesSharing: json['files_sharing'] == null
? null ? null
: CoreServerCapabilities_Ocs_Data_Capabilities_FilesSharing.fromJson( : 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( Map<String, dynamic> _$CoreServerCapabilities_Ocs_Data_CapabilitiesToJson(
CoreServerCapabilities_Ocs_Data_Capabilities instance) => CoreServerCapabilities_Ocs_Data_Capabilities instance) =>
<String, dynamic>{ <String, dynamic>{
'core': instance.core.toJson(), 'core': instance.core?.toJson(),
'bruteforce': instance.bruteforce.toJson(), 'bruteforce': instance.bruteforce?.toJson(),
'metadataAvailable': instance.metadataAvailable.toJson(), 'metadataAvailable': instance.metadataAvailable?.toJson(),
'files': instance.files.toJson(), 'files': instance.files?.toJson(),
'activity': instance.activity?.toJson(), 'activity': instance.activity?.toJson(),
'circles': instance.circles?.toJson(), 'circles': instance.circles?.toJson(),
'ocm': instance.ocm.toJson(), 'ocm': instance.ocm?.toJson(),
'dav': instance.dav.toJson(), 'dav': instance.dav?.toJson(),
'files_sharing': instance.filesSharing?.toJson(), 'files_sharing': instance.filesSharing?.toJson(),
'notes': instance.notes?.toJson(), 'notes': instance.notes?.toJson(),
'notifications': instance.notifications?.toJson(), 'notifications': instance.notifications?.toJson(),

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

@ -159,14 +159,6 @@
"properties": { "properties": {
"version": { "version": {
"type": "object", "type": "object",
"required": [
"major",
"minor",
"micro",
"string",
"edition",
"extendedSupport"
],
"properties": { "properties": {
"major": { "major": {
"type": "integer" "type": "integer"
@ -191,24 +183,10 @@
"capabilities": { "capabilities": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"core",
"bruteforce",
"metadataAvailable",
"files",
"ocm",
"dav"
],
"properties": { "properties": {
"core": { "core": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"pollinterval",
"webdav-root",
"reference-api",
"reference-regex"
],
"properties": { "properties": {
"pollinterval": { "pollinterval": {
"type": "integer" "type": "integer"
@ -227,9 +205,6 @@
"bruteforce": { "bruteforce": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"delay"
],
"properties": { "properties": {
"delay": { "delay": {
"type": "integer" "type": "integer"
@ -239,10 +214,6 @@
"metadataAvailable": { "metadataAvailable": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"size",
"gps"
],
"properties": { "properties": {
"size": { "size": {
"type": "array", "type": "array",
@ -261,14 +232,6 @@
"files": { "files": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"bigfilechunking",
"blacklisted_files",
"directEditing",
"comments",
"undelete",
"versioning"
],
"properties": { "properties": {
"bigfilechunking": { "bigfilechunking": {
"type": "boolean" "type": "boolean"
@ -282,10 +245,6 @@
"directEditing": { "directEditing": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"url",
"etag"
],
"properties": { "properties": {
"url": { "url": {
"type": "string" "type": "string"
@ -309,9 +268,6 @@
"activity": { "activity": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"apiv2"
],
"properties": { "properties": {
"apiv2": { "apiv2": {
"type": "array", "type": "array",
@ -324,13 +280,6 @@
"circles": { "circles": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"version",
"status",
"settings",
"circle",
"member"
],
"properties": { "properties": {
"version": { "version": {
"type": "string" "type": "string"
@ -338,9 +287,6 @@
"status": { "status": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"globalScale"
],
"properties": { "properties": {
"globalScale": { "globalScale": {
"type": "boolean" "type": "boolean"
@ -350,12 +296,6 @@
"settings": { "settings": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"frontendEnabled",
"allowedCircles",
"allowedUserTypes",
"membersLimit"
],
"properties": { "properties": {
"frontendEnabled": { "frontendEnabled": {
"type": "boolean" "type": "boolean"
@ -374,18 +314,10 @@
"circle": { "circle": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"constants",
"config"
],
"properties": { "properties": {
"constants": { "constants": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"flags",
"source"
],
"properties": { "properties": {
"flags": { "flags": {
"type": "object" "type": "object"
@ -393,10 +325,6 @@
"source": { "source": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"core",
"extra"
],
"properties": { "properties": {
"core": { "core": {
"type": "object" "type": "object"
@ -411,10 +339,6 @@
"config": { "config": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"coreFlags",
"systemFlags"
],
"properties": { "properties": {
"coreFlags": { "coreFlags": {
"type": "array", "type": "array",
@ -435,17 +359,10 @@
"member": { "member": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"constants",
"type"
],
"properties": { "properties": {
"constants": { "constants": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"level"
],
"properties": { "properties": {
"level": { "level": {
"type": "object" "type": "object"
@ -462,12 +379,6 @@
"ocm": { "ocm": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"enabled",
"apiVersion",
"endPoint",
"resourceTypes"
],
"properties": { "properties": {
"enabled": { "enabled": {
"type": "boolean" "type": "boolean"
@ -483,11 +394,6 @@
"items": { "items": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"name",
"shareTypes",
"protocols"
],
"properties": { "properties": {
"name": { "name": {
"type": "string" "type": "string"
@ -501,9 +407,6 @@
"protocols": { "protocols": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"webdav"
],
"properties": { "properties": {
"webdav": { "webdav": {
"type": "string" "type": "string"
@ -518,9 +421,6 @@
"dav": { "dav": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"chunking"
],
"properties": { "properties": {
"bulkupload": { "bulkupload": {
"type": "string" "type": "string"
@ -533,18 +433,6 @@
"files_sharing": { "files_sharing": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"api_enabled",
"public",
"resharing",
"user",
"group_sharing",
"group",
"default_permissions",
"federation",
"sharee",
"sharebymail"
],
"properties": { "properties": {
"api_enabled": { "api_enabled": {
"type": "boolean" "type": "boolean"
@ -552,17 +440,6 @@
"public": { "public": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"enabled",
"password",
"expire_date",
"multiple_links",
"expire_date_internal",
"expire_date_remote",
"send_mail",
"upload",
"upload_files_drop"
],
"properties": { "properties": {
"enabled": { "enabled": {
"type": "boolean" "type": "boolean"
@ -570,10 +447,6 @@
"password": { "password": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"enforced",
"askForOptionalPassword"
],
"properties": { "properties": {
"enforced": { "enforced": {
"type": "boolean" "type": "boolean"
@ -586,9 +459,6 @@
"expire_date": { "expire_date": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"enabled"
],
"properties": { "properties": {
"enabled": { "enabled": {
"type": "boolean" "type": "boolean"
@ -601,9 +471,6 @@
"expire_date_internal": { "expire_date_internal": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"enabled"
],
"properties": { "properties": {
"enabled": { "enabled": {
"type": "boolean" "type": "boolean"
@ -613,9 +480,6 @@
"expire_date_remote": { "expire_date_remote": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"enabled"
],
"properties": { "properties": {
"enabled": { "enabled": {
"type": "boolean" "type": "boolean"
@ -639,10 +503,6 @@
"user": { "user": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"send_mail",
"expire_date"
],
"properties": { "properties": {
"send_mail": { "send_mail": {
"type": "boolean" "type": "boolean"
@ -650,9 +510,6 @@
"expire_date": { "expire_date": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"enabled"
],
"properties": { "properties": {
"enabled": { "enabled": {
"type": "boolean" "type": "boolean"
@ -667,10 +524,6 @@
"group": { "group": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"enabled",
"expire_date"
],
"properties": { "properties": {
"enabled": { "enabled": {
"type": "boolean" "type": "boolean"
@ -678,9 +531,6 @@
"expire_date": { "expire_date": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"enabled"
],
"properties": { "properties": {
"enabled": { "enabled": {
"type": "boolean" "type": "boolean"
@ -695,12 +545,6 @@
"federation": { "federation": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"outgoing",
"incoming",
"expire_date",
"expire_date_supported"
],
"properties": { "properties": {
"outgoing": { "outgoing": {
"type": "boolean" "type": "boolean"
@ -711,9 +555,6 @@
"expire_date": { "expire_date": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"enabled"
],
"properties": { "properties": {
"enabled": { "enabled": {
"type": "boolean" "type": "boolean"
@ -723,9 +564,6 @@
"expire_date_supported": { "expire_date_supported": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"enabled"
],
"properties": { "properties": {
"enabled": { "enabled": {
"type": "boolean" "type": "boolean"
@ -737,10 +575,6 @@
"sharee": { "sharee": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"query_lookup_default",
"always_show_unique"
],
"properties": { "properties": {
"query_lookup_default": { "query_lookup_default": {
"type": "boolean" "type": "boolean"
@ -753,13 +587,6 @@
"sharebymail": { "sharebymail": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"enabled",
"send_password_by_mail",
"upload_files_drop",
"password",
"expire_date"
],
"properties": { "properties": {
"enabled": { "enabled": {
"type": "boolean" "type": "boolean"
@ -770,9 +597,6 @@
"upload_files_drop": { "upload_files_drop": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"enabled"
],
"properties": { "properties": {
"enabled": { "enabled": {
"type": "boolean" "type": "boolean"
@ -782,10 +606,6 @@
"password": { "password": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"enabled",
"enforced"
],
"properties": { "properties": {
"enabled": { "enabled": {
"type": "boolean" "type": "boolean"
@ -798,10 +618,6 @@
"expire_date": { "expire_date": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"enabled",
"enforced"
],
"properties": { "properties": {
"enabled": { "enabled": {
"type": "boolean" "type": "boolean"
@ -818,10 +634,6 @@
"notes": { "notes": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"api_version",
"version"
],
"properties": { "properties": {
"api_version": { "api_version": {
"type": "array", "type": "array",
@ -837,11 +649,6 @@
"notifications": { "notifications": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"ocs-endpoints",
"push",
"admin-notifications"
],
"properties": { "properties": {
"ocs-endpoints": { "ocs-endpoints": {
"type": "array", "type": "array",
@ -866,14 +673,6 @@
"password_policy": { "password_policy": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"minLength",
"enforceNonCommonPassword",
"enforceNumericCharacters",
"enforceSpecialCharacters",
"enforceUpperLowerCase",
"api"
],
"properties": { "properties": {
"minLength": { "minLength": {
"type": "integer" "type": "integer"
@ -893,10 +692,6 @@
"api": { "api": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"generate",
"validate"
],
"properties": { "properties": {
"generate": { "generate": {
"type": "string" "type": "string"
@ -911,12 +706,6 @@
"provisioning_api": { "provisioning_api": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"version",
"AccountPropertyScopesVersion",
"AccountPropertyScopesFederatedEnabled",
"AccountPropertyScopesPublishedEnabled"
],
"properties": { "properties": {
"version": { "version": {
"type": "string" "type": "string"
@ -935,22 +724,6 @@
"theming": { "theming": {
"type": "object", "type": "object",
"additionalProperties": true, "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": { "properties": {
"name": { "name": {
"type": "string" "type": "string"
@ -999,10 +772,6 @@
"user_status": { "user_status": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"enabled",
"supports_emoji"
],
"properties": { "properties": {
"enabled": { "enabled": {
"type": "boolean" "type": "boolean"
@ -1014,9 +783,6 @@
}, },
"weather_status": { "weather_status": {
"type": "object", "type": "object",
"required": [
"enabled"
],
"properties": { "properties": {
"enabled": { "enabled": {
"type": "boolean" "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 => Future<bool> isSupported([final CoreServerCapabilities_Ocs_Data? capabilities]) async =>
(capabilities ?? (await rootClient.core.getCapabilities()).ocs.data) (capabilities ?? (await rootClient.core.getCapabilities()).ocs.data)
.capabilities .capabilities
.notes! .notes
.apiVersion ?.apiVersion
.map(Version.parse) ?.map(Version.parse)
.where((final version) => version.major == 1) .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. // 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": { "properties": {
"version": { "version": {
"type": "object", "type": "object",
"required": [
"major",
"minor",
"micro",
"string",
"edition",
"extendedSupport"
],
"properties": { "properties": {
"major": { "major": {
"type": "integer" "type": "integer"
@ -177,24 +169,10 @@
"capabilities": { "capabilities": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"core",
"bruteforce",
"metadataAvailable",
"files",
"ocm",
"dav"
],
"properties": { "properties": {
"core": { "core": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"pollinterval",
"webdav-root",
"reference-api",
"reference-regex"
],
"properties": { "properties": {
"pollinterval": { "pollinterval": {
"type": "integer" "type": "integer"
@ -213,9 +191,6 @@
"bruteforce": { "bruteforce": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"delay"
],
"properties": { "properties": {
"delay": { "delay": {
"type": "integer" "type": "integer"
@ -225,10 +200,6 @@
"metadataAvailable": { "metadataAvailable": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"size",
"gps"
],
"properties": { "properties": {
"size": { "size": {
"type": "array", "type": "array",
@ -247,14 +218,6 @@
"files": { "files": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"bigfilechunking",
"blacklisted_files",
"directEditing",
"comments",
"undelete",
"versioning"
],
"properties": { "properties": {
"bigfilechunking": { "bigfilechunking": {
"type": "boolean" "type": "boolean"
@ -268,10 +231,6 @@
"directEditing": { "directEditing": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"url",
"etag"
],
"properties": { "properties": {
"url": { "url": {
"type": "string" "type": "string"
@ -295,9 +254,6 @@
"activity": { "activity": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"apiv2"
],
"properties": { "properties": {
"apiv2": { "apiv2": {
"type": "array", "type": "array",
@ -310,13 +266,6 @@
"circles": { "circles": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"version",
"status",
"settings",
"circle",
"member"
],
"properties": { "properties": {
"version": { "version": {
"type": "string" "type": "string"
@ -324,9 +273,6 @@
"status": { "status": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"globalScale"
],
"properties": { "properties": {
"globalScale": { "globalScale": {
"type": "boolean" "type": "boolean"
@ -336,12 +282,6 @@
"settings": { "settings": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"frontendEnabled",
"allowedCircles",
"allowedUserTypes",
"membersLimit"
],
"properties": { "properties": {
"frontendEnabled": { "frontendEnabled": {
"type": "boolean" "type": "boolean"
@ -360,18 +300,10 @@
"circle": { "circle": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"constants",
"config"
],
"properties": { "properties": {
"constants": { "constants": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"flags",
"source"
],
"properties": { "properties": {
"flags": { "flags": {
"type": "object" "type": "object"
@ -379,10 +311,6 @@
"source": { "source": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"core",
"extra"
],
"properties": { "properties": {
"core": { "core": {
"type": "object" "type": "object"
@ -397,10 +325,6 @@
"config": { "config": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"coreFlags",
"systemFlags"
],
"properties": { "properties": {
"coreFlags": { "coreFlags": {
"type": "array", "type": "array",
@ -421,17 +345,10 @@
"member": { "member": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"constants",
"type"
],
"properties": { "properties": {
"constants": { "constants": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"level"
],
"properties": { "properties": {
"level": { "level": {
"type": "object" "type": "object"
@ -448,12 +365,6 @@
"ocm": { "ocm": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"enabled",
"apiVersion",
"endPoint",
"resourceTypes"
],
"properties": { "properties": {
"enabled": { "enabled": {
"type": "boolean" "type": "boolean"
@ -469,11 +380,6 @@
"items": { "items": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"name",
"shareTypes",
"protocols"
],
"properties": { "properties": {
"name": { "name": {
"type": "string" "type": "string"
@ -487,9 +393,6 @@
"protocols": { "protocols": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"webdav"
],
"properties": { "properties": {
"webdav": { "webdav": {
"type": "string" "type": "string"
@ -504,9 +407,6 @@
"dav": { "dav": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"chunking"
],
"properties": { "properties": {
"bulkupload": { "bulkupload": {
"type": "string" "type": "string"
@ -519,18 +419,6 @@
"files_sharing": { "files_sharing": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"api_enabled",
"public",
"resharing",
"user",
"group_sharing",
"group",
"default_permissions",
"federation",
"sharee",
"sharebymail"
],
"properties": { "properties": {
"api_enabled": { "api_enabled": {
"type": "boolean" "type": "boolean"
@ -538,17 +426,6 @@
"public": { "public": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"enabled",
"password",
"expire_date",
"multiple_links",
"expire_date_internal",
"expire_date_remote",
"send_mail",
"upload",
"upload_files_drop"
],
"properties": { "properties": {
"enabled": { "enabled": {
"type": "boolean" "type": "boolean"
@ -556,10 +433,6 @@
"password": { "password": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"enforced",
"askForOptionalPassword"
],
"properties": { "properties": {
"enforced": { "enforced": {
"type": "boolean" "type": "boolean"
@ -572,9 +445,6 @@
"expire_date": { "expire_date": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"enabled"
],
"properties": { "properties": {
"enabled": { "enabled": {
"type": "boolean" "type": "boolean"
@ -587,9 +457,6 @@
"expire_date_internal": { "expire_date_internal": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"enabled"
],
"properties": { "properties": {
"enabled": { "enabled": {
"type": "boolean" "type": "boolean"
@ -599,9 +466,6 @@
"expire_date_remote": { "expire_date_remote": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"enabled"
],
"properties": { "properties": {
"enabled": { "enabled": {
"type": "boolean" "type": "boolean"
@ -625,10 +489,6 @@
"user": { "user": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"send_mail",
"expire_date"
],
"properties": { "properties": {
"send_mail": { "send_mail": {
"type": "boolean" "type": "boolean"
@ -636,9 +496,6 @@
"expire_date": { "expire_date": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"enabled"
],
"properties": { "properties": {
"enabled": { "enabled": {
"type": "boolean" "type": "boolean"
@ -653,10 +510,6 @@
"group": { "group": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"enabled",
"expire_date"
],
"properties": { "properties": {
"enabled": { "enabled": {
"type": "boolean" "type": "boolean"
@ -664,9 +517,6 @@
"expire_date": { "expire_date": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"enabled"
],
"properties": { "properties": {
"enabled": { "enabled": {
"type": "boolean" "type": "boolean"
@ -681,12 +531,6 @@
"federation": { "federation": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"outgoing",
"incoming",
"expire_date",
"expire_date_supported"
],
"properties": { "properties": {
"outgoing": { "outgoing": {
"type": "boolean" "type": "boolean"
@ -697,9 +541,6 @@
"expire_date": { "expire_date": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"enabled"
],
"properties": { "properties": {
"enabled": { "enabled": {
"type": "boolean" "type": "boolean"
@ -709,9 +550,6 @@
"expire_date_supported": { "expire_date_supported": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"enabled"
],
"properties": { "properties": {
"enabled": { "enabled": {
"type": "boolean" "type": "boolean"
@ -723,10 +561,6 @@
"sharee": { "sharee": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"query_lookup_default",
"always_show_unique"
],
"properties": { "properties": {
"query_lookup_default": { "query_lookup_default": {
"type": "boolean" "type": "boolean"
@ -739,13 +573,6 @@
"sharebymail": { "sharebymail": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"enabled",
"send_password_by_mail",
"upload_files_drop",
"password",
"expire_date"
],
"properties": { "properties": {
"enabled": { "enabled": {
"type": "boolean" "type": "boolean"
@ -756,9 +583,6 @@
"upload_files_drop": { "upload_files_drop": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"enabled"
],
"properties": { "properties": {
"enabled": { "enabled": {
"type": "boolean" "type": "boolean"
@ -768,10 +592,6 @@
"password": { "password": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"enabled",
"enforced"
],
"properties": { "properties": {
"enabled": { "enabled": {
"type": "boolean" "type": "boolean"
@ -784,10 +604,6 @@
"expire_date": { "expire_date": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"enabled",
"enforced"
],
"properties": { "properties": {
"enabled": { "enabled": {
"type": "boolean" "type": "boolean"
@ -804,10 +620,6 @@
"notes": { "notes": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"api_version",
"version"
],
"properties": { "properties": {
"api_version": { "api_version": {
"type": "array", "type": "array",
@ -823,11 +635,6 @@
"notifications": { "notifications": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"ocs-endpoints",
"push",
"admin-notifications"
],
"properties": { "properties": {
"ocs-endpoints": { "ocs-endpoints": {
"type": "array", "type": "array",
@ -852,14 +659,6 @@
"password_policy": { "password_policy": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"minLength",
"enforceNonCommonPassword",
"enforceNumericCharacters",
"enforceSpecialCharacters",
"enforceUpperLowerCase",
"api"
],
"properties": { "properties": {
"minLength": { "minLength": {
"type": "integer" "type": "integer"
@ -879,10 +678,6 @@
"api": { "api": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"generate",
"validate"
],
"properties": { "properties": {
"generate": { "generate": {
"type": "string" "type": "string"
@ -897,12 +692,6 @@
"provisioning_api": { "provisioning_api": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"version",
"AccountPropertyScopesVersion",
"AccountPropertyScopesFederatedEnabled",
"AccountPropertyScopesPublishedEnabled"
],
"properties": { "properties": {
"version": { "version": {
"type": "string" "type": "string"
@ -921,22 +710,6 @@
"theming": { "theming": {
"type": "object", "type": "object",
"additionalProperties": true, "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": { "properties": {
"name": { "name": {
"type": "string" "type": "string"
@ -985,10 +758,6 @@
"user_status": { "user_status": {
"type": "object", "type": "object",
"additionalProperties": true, "additionalProperties": true,
"required": [
"enabled",
"supports_emoji"
],
"properties": { "properties": {
"enabled": { "enabled": {
"type": "boolean" "type": "boolean"
@ -1000,9 +769,6 @@
}, },
"weather_status": { "weather_status": {
"type": "object", "type": "object",
"required": [
"enabled"
],
"properties": { "properties": {
"enabled": { "enabled": {
"type": "boolean" "type": "boolean"

Loading…
Cancel
Save