Browse Source

Merge pull request #1121 from nextcloud/chore/nextcloud/update-server-specs

pull/1127/head
Kate 1 year ago committed by GitHub
parent
commit
f33727aa81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      external/nextcloud-server
  2. 6421
      packages/nextcloud/lib/src/api/core.openapi.dart
  3. 22056
      packages/nextcloud/lib/src/api/core.openapi.g.dart
  4. 980
      packages/nextcloud/lib/src/api/core.openapi.json
  5. 235
      packages/nextcloud/lib/src/api/sharebymail.openapi.dart
  6. 662
      packages/nextcloud/lib/src/api/sharebymail.openapi.g.dart
  7. 106
      packages/nextcloud/lib/src/api/sharebymail.openapi.json
  8. 4
      packages/nextcloud/lib/src/api/spreed.openapi.dart
  9. 2
      packages/nextcloud/lib/src/api/spreed.openapi.json
  10. 14
      packages/nextcloud/lib/src/api/user_status.openapi.dart
  11. 28
      packages/nextcloud/lib/src/api/user_status.openapi.g.dart
  12. 9
      packages/nextcloud/lib/src/api/user_status.openapi.json
  13. 7
      packages/nextcloud/lib/src/patches/sharebymail/oneof-workaround.json
  14. 5
      packages/nextcloud/lib/src/patches/spreed/oneof-workaround.json
  15. 7
      packages/nextcloud/lib/src/patches/user_status/oneof-workaround.json

2
external/nextcloud-server vendored

@ -1 +1 @@
Subproject commit 06b35808a89bd844f8101527a1654f2d06cc6ae3 Subproject commit 4154ba343b9b188e40f327fb78d9eb5083e163a1

6421
packages/nextcloud/lib/src/api/core.openapi.dart

File diff suppressed because it is too large Load Diff

22056
packages/nextcloud/lib/src/api/core.openapi.g.dart

File diff suppressed because it is too large Load Diff

980
packages/nextcloud/lib/src/api/core.openapi.json

File diff suppressed because it is too large Load Diff

235
packages/nextcloud/lib/src/api/sharebymail.openapi.dart

@ -3,9 +3,12 @@
// ignore_for_file: public_member_api_docs // ignore_for_file: public_member_api_docs
// ignore_for_file: unreachable_switch_case // ignore_for_file: unreachable_switch_case
import 'package:built_collection/built_collection.dart';
import 'package:built_value/built_value.dart'; import 'package:built_value/built_value.dart';
import 'package:built_value/json_object.dart';
import 'package:built_value/serializer.dart'; import 'package:built_value/serializer.dart';
import 'package:built_value/standard_json_plugin.dart'; import 'package:built_value/standard_json_plugin.dart';
import 'package:collection/collection.dart';
import 'package:dynamite_runtime/built_value.dart'; import 'package:dynamite_runtime/built_value.dart';
import 'package:dynamite_runtime/http_client.dart'; import 'package:dynamite_runtime/http_client.dart';
@ -32,25 +35,25 @@ class Client extends DynamiteClient {
} }
@BuiltValue(instantiable: false) @BuiltValue(instantiable: false)
abstract interface class Capabilities_FilesSharing_Sharebymail_UploadFilesDropInterface { abstract interface class Capabilities0_FilesSharing_Sharebymail_UploadFilesDropInterface {
bool get enabled; bool get enabled;
} }
abstract class Capabilities_FilesSharing_Sharebymail_UploadFilesDrop abstract class Capabilities0_FilesSharing_Sharebymail_UploadFilesDrop
implements implements
Capabilities_FilesSharing_Sharebymail_UploadFilesDropInterface, Capabilities0_FilesSharing_Sharebymail_UploadFilesDropInterface,
Built<Capabilities_FilesSharing_Sharebymail_UploadFilesDrop, Built<Capabilities0_FilesSharing_Sharebymail_UploadFilesDrop,
Capabilities_FilesSharing_Sharebymail_UploadFilesDropBuilder> { Capabilities0_FilesSharing_Sharebymail_UploadFilesDropBuilder> {
factory Capabilities_FilesSharing_Sharebymail_UploadFilesDrop([ factory Capabilities0_FilesSharing_Sharebymail_UploadFilesDrop([
final void Function(Capabilities_FilesSharing_Sharebymail_UploadFilesDropBuilder)? b, final void Function(Capabilities0_FilesSharing_Sharebymail_UploadFilesDropBuilder)? b,
]) = _$Capabilities_FilesSharing_Sharebymail_UploadFilesDrop; ]) = _$Capabilities0_FilesSharing_Sharebymail_UploadFilesDrop;
// coverage:ignore-start // coverage:ignore-start
const Capabilities_FilesSharing_Sharebymail_UploadFilesDrop._(); const Capabilities0_FilesSharing_Sharebymail_UploadFilesDrop._();
// coverage:ignore-end // coverage:ignore-end
// coverage:ignore-start // coverage:ignore-start
factory Capabilities_FilesSharing_Sharebymail_UploadFilesDrop.fromJson(final Map<String, dynamic> json) => factory Capabilities0_FilesSharing_Sharebymail_UploadFilesDrop.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end // coverage:ignore-end
@ -58,30 +61,30 @@ abstract class Capabilities_FilesSharing_Sharebymail_UploadFilesDrop
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end // coverage:ignore-end
static Serializer<Capabilities_FilesSharing_Sharebymail_UploadFilesDrop> get serializer => static Serializer<Capabilities0_FilesSharing_Sharebymail_UploadFilesDrop> get serializer =>
_$capabilitiesFilesSharingSharebymailUploadFilesDropSerializer; _$capabilities0FilesSharingSharebymailUploadFilesDropSerializer;
} }
@BuiltValue(instantiable: false) @BuiltValue(instantiable: false)
abstract interface class Capabilities_FilesSharing_Sharebymail_PasswordInterface { abstract interface class Capabilities0_FilesSharing_Sharebymail_PasswordInterface {
bool get enabled; bool get enabled;
bool get enforced; bool get enforced;
} }
abstract class Capabilities_FilesSharing_Sharebymail_Password abstract class Capabilities0_FilesSharing_Sharebymail_Password
implements implements
Capabilities_FilesSharing_Sharebymail_PasswordInterface, Capabilities0_FilesSharing_Sharebymail_PasswordInterface,
Built<Capabilities_FilesSharing_Sharebymail_Password, Capabilities_FilesSharing_Sharebymail_PasswordBuilder> { Built<Capabilities0_FilesSharing_Sharebymail_Password, Capabilities0_FilesSharing_Sharebymail_PasswordBuilder> {
factory Capabilities_FilesSharing_Sharebymail_Password([ factory Capabilities0_FilesSharing_Sharebymail_Password([
final void Function(Capabilities_FilesSharing_Sharebymail_PasswordBuilder)? b, final void Function(Capabilities0_FilesSharing_Sharebymail_PasswordBuilder)? b,
]) = _$Capabilities_FilesSharing_Sharebymail_Password; ]) = _$Capabilities0_FilesSharing_Sharebymail_Password;
// coverage:ignore-start // coverage:ignore-start
const Capabilities_FilesSharing_Sharebymail_Password._(); const Capabilities0_FilesSharing_Sharebymail_Password._();
// coverage:ignore-end // coverage:ignore-end
// coverage:ignore-start // coverage:ignore-start
factory Capabilities_FilesSharing_Sharebymail_Password.fromJson(final Map<String, dynamic> json) => factory Capabilities0_FilesSharing_Sharebymail_Password.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end // coverage:ignore-end
@ -89,31 +92,31 @@ abstract class Capabilities_FilesSharing_Sharebymail_Password
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end // coverage:ignore-end
static Serializer<Capabilities_FilesSharing_Sharebymail_Password> get serializer => static Serializer<Capabilities0_FilesSharing_Sharebymail_Password> get serializer =>
_$capabilitiesFilesSharingSharebymailPasswordSerializer; _$capabilities0FilesSharingSharebymailPasswordSerializer;
} }
@BuiltValue(instantiable: false) @BuiltValue(instantiable: false)
abstract interface class Capabilities_FilesSharing_Sharebymail_ExpireDateInterface { abstract interface class Capabilities0_FilesSharing_Sharebymail_ExpireDateInterface {
bool get enabled; bool get enabled;
bool get enforced; bool get enforced;
} }
abstract class Capabilities_FilesSharing_Sharebymail_ExpireDate abstract class Capabilities0_FilesSharing_Sharebymail_ExpireDate
implements implements
Capabilities_FilesSharing_Sharebymail_ExpireDateInterface, Capabilities0_FilesSharing_Sharebymail_ExpireDateInterface,
Built<Capabilities_FilesSharing_Sharebymail_ExpireDate, Built<Capabilities0_FilesSharing_Sharebymail_ExpireDate,
Capabilities_FilesSharing_Sharebymail_ExpireDateBuilder> { Capabilities0_FilesSharing_Sharebymail_ExpireDateBuilder> {
factory Capabilities_FilesSharing_Sharebymail_ExpireDate([ factory Capabilities0_FilesSharing_Sharebymail_ExpireDate([
final void Function(Capabilities_FilesSharing_Sharebymail_ExpireDateBuilder)? b, final void Function(Capabilities0_FilesSharing_Sharebymail_ExpireDateBuilder)? b,
]) = _$Capabilities_FilesSharing_Sharebymail_ExpireDate; ]) = _$Capabilities0_FilesSharing_Sharebymail_ExpireDate;
// coverage:ignore-start // coverage:ignore-start
const Capabilities_FilesSharing_Sharebymail_ExpireDate._(); const Capabilities0_FilesSharing_Sharebymail_ExpireDate._();
// coverage:ignore-end // coverage:ignore-end
// coverage:ignore-start // coverage:ignore-start
factory Capabilities_FilesSharing_Sharebymail_ExpireDate.fromJson(final Map<String, dynamic> json) => factory Capabilities0_FilesSharing_Sharebymail_ExpireDate.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end // coverage:ignore-end
@ -121,36 +124,36 @@ abstract class Capabilities_FilesSharing_Sharebymail_ExpireDate
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end // coverage:ignore-end
static Serializer<Capabilities_FilesSharing_Sharebymail_ExpireDate> get serializer => static Serializer<Capabilities0_FilesSharing_Sharebymail_ExpireDate> get serializer =>
_$capabilitiesFilesSharingSharebymailExpireDateSerializer; _$capabilities0FilesSharingSharebymailExpireDateSerializer;
} }
@BuiltValue(instantiable: false) @BuiltValue(instantiable: false)
abstract interface class Capabilities_FilesSharing_SharebymailInterface { abstract interface class Capabilities0_FilesSharing_SharebymailInterface {
bool get enabled; bool get enabled;
@BuiltValueField(wireName: 'send_password_by_mail') @BuiltValueField(wireName: 'send_password_by_mail')
bool get sendPasswordByMail; bool get sendPasswordByMail;
@BuiltValueField(wireName: 'upload_files_drop') @BuiltValueField(wireName: 'upload_files_drop')
Capabilities_FilesSharing_Sharebymail_UploadFilesDrop get uploadFilesDrop; Capabilities0_FilesSharing_Sharebymail_UploadFilesDrop get uploadFilesDrop;
Capabilities_FilesSharing_Sharebymail_Password get password; Capabilities0_FilesSharing_Sharebymail_Password get password;
@BuiltValueField(wireName: 'expire_date') @BuiltValueField(wireName: 'expire_date')
Capabilities_FilesSharing_Sharebymail_ExpireDate get expireDate; Capabilities0_FilesSharing_Sharebymail_ExpireDate get expireDate;
} }
abstract class Capabilities_FilesSharing_Sharebymail abstract class Capabilities0_FilesSharing_Sharebymail
implements implements
Capabilities_FilesSharing_SharebymailInterface, Capabilities0_FilesSharing_SharebymailInterface,
Built<Capabilities_FilesSharing_Sharebymail, Capabilities_FilesSharing_SharebymailBuilder> { Built<Capabilities0_FilesSharing_Sharebymail, Capabilities0_FilesSharing_SharebymailBuilder> {
factory Capabilities_FilesSharing_Sharebymail([ factory Capabilities0_FilesSharing_Sharebymail([
final void Function(Capabilities_FilesSharing_SharebymailBuilder)? b, final void Function(Capabilities0_FilesSharing_SharebymailBuilder)? b,
]) = _$Capabilities_FilesSharing_Sharebymail; ]) = _$Capabilities0_FilesSharing_Sharebymail;
// coverage:ignore-start // coverage:ignore-start
const Capabilities_FilesSharing_Sharebymail._(); const Capabilities0_FilesSharing_Sharebymail._();
// coverage:ignore-end // coverage:ignore-end
// coverage:ignore-start // coverage:ignore-start
factory Capabilities_FilesSharing_Sharebymail.fromJson(final Map<String, dynamic> json) => factory Capabilities0_FilesSharing_Sharebymail.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end // coverage:ignore-end
@ -158,26 +161,28 @@ abstract class Capabilities_FilesSharing_Sharebymail
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end // coverage:ignore-end
static Serializer<Capabilities_FilesSharing_Sharebymail> get serializer => static Serializer<Capabilities0_FilesSharing_Sharebymail> get serializer =>
_$capabilitiesFilesSharingSharebymailSerializer; _$capabilities0FilesSharingSharebymailSerializer;
} }
@BuiltValue(instantiable: false) @BuiltValue(instantiable: false)
abstract interface class Capabilities_FilesSharingInterface { abstract interface class Capabilities0_FilesSharingInterface {
Capabilities_FilesSharing_Sharebymail get sharebymail; Capabilities0_FilesSharing_Sharebymail get sharebymail;
} }
abstract class Capabilities_FilesSharing abstract class Capabilities0_FilesSharing
implements Capabilities_FilesSharingInterface, Built<Capabilities_FilesSharing, Capabilities_FilesSharingBuilder> { implements
factory Capabilities_FilesSharing([final void Function(Capabilities_FilesSharingBuilder)? b]) = Capabilities0_FilesSharingInterface,
_$Capabilities_FilesSharing; Built<Capabilities0_FilesSharing, Capabilities0_FilesSharingBuilder> {
factory Capabilities0_FilesSharing([final void Function(Capabilities0_FilesSharingBuilder)? b]) =
_$Capabilities0_FilesSharing;
// coverage:ignore-start // coverage:ignore-start
const Capabilities_FilesSharing._(); const Capabilities0_FilesSharing._();
// coverage:ignore-end // coverage:ignore-end
// coverage:ignore-start // coverage:ignore-start
factory Capabilities_FilesSharing.fromJson(final Map<String, dynamic> json) => factory Capabilities0_FilesSharing.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end // coverage:ignore-end
@ -185,13 +190,38 @@ abstract class Capabilities_FilesSharing
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end // coverage:ignore-end
static Serializer<Capabilities_FilesSharing> get serializer => _$capabilitiesFilesSharingSerializer; static Serializer<Capabilities0_FilesSharing> get serializer => _$capabilities0FilesSharingSerializer;
} }
@BuiltValue(instantiable: false) @BuiltValue(instantiable: false)
abstract interface class CapabilitiesInterface { abstract interface class Capabilities0Interface {
@BuiltValueField(wireName: 'files_sharing') @BuiltValueField(wireName: 'files_sharing')
Capabilities_FilesSharing get filesSharing; Capabilities0_FilesSharing get filesSharing;
}
abstract class Capabilities0 implements Capabilities0Interface, Built<Capabilities0, Capabilities0Builder> {
factory Capabilities0([final void Function(Capabilities0Builder)? b]) = _$Capabilities0;
// coverage:ignore-start
const Capabilities0._();
// coverage:ignore-end
// coverage:ignore-start
factory Capabilities0.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
static Serializer<Capabilities0> get serializer => _$capabilities0Serializer;
}
@BuiltValue(instantiable: false)
abstract interface class CapabilitiesInterface {
Capabilities0? get capabilities0;
BuiltList<JsonObject>? get builtListJsonObject;
} }
abstract class Capabilities implements CapabilitiesInterface, Built<Capabilities, CapabilitiesBuilder> { abstract class Capabilities implements CapabilitiesInterface, Built<Capabilities, CapabilitiesBuilder> {
@ -209,35 +239,90 @@ abstract class Capabilities implements CapabilitiesInterface, Built<Capabilities
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>; Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end // coverage:ignore-end
static Serializer<Capabilities> get serializer => _$capabilitiesSerializer; @BuiltValueSerializer(custom: true)
static Serializer<Capabilities> get serializer => _$CapabilitiesSerializer();
JsonObject get data;
@BuiltValueHook(finalizeBuilder: true)
static void _validate(final CapabilitiesBuilder b) {
// When this is rebuild from another builder
if (b._data == null) {
return;
}
final match = [b._capabilities0, b._builtListJsonObject].firstWhereOrNull((final x) => x != null);
if (match == null) {
throw StateError("Need at least one of 'capabilities0', 'builtListJsonObject' for ${b._data}");
}
}
}
class _$CapabilitiesSerializer implements PrimitiveSerializer<Capabilities> {
@override
final Iterable<Type> types = const [Capabilities, _$Capabilities];
@override
final String wireName = 'Capabilities';
@override
Object serialize(
final Serializers serializers,
final Capabilities object, {
final FullType specifiedType = FullType.unspecified,
}) =>
object.data.value;
@override
Capabilities deserialize(
final Serializers serializers,
final Object data, {
final FullType specifiedType = FullType.unspecified,
}) {
final result = CapabilitiesBuilder()..data = JsonObject(data);
try {
final value = _jsonSerializers.deserialize(data, specifiedType: const FullType(Capabilities0))! as Capabilities0;
result.capabilities0.replace(value);
} catch (_) {}
try {
final value = _jsonSerializers.deserialize(
data,
specifiedType: const FullType(BuiltList, [FullType(JsonObject)]),
)! as BuiltList<JsonObject>;
result.builtListJsonObject.replace(value);
} catch (_) {}
return result.build();
}
} }
// coverage:ignore-start // coverage:ignore-start
final Serializers _serializers = (Serializers().toBuilder() final Serializers _serializers = (Serializers().toBuilder()
..addBuilderFactory(const FullType(Capabilities), Capabilities.new) ..addBuilderFactory(const FullType(Capabilities), Capabilities.new)
..add(Capabilities.serializer) ..add(Capabilities.serializer)
..addBuilderFactory(const FullType(Capabilities_FilesSharing), Capabilities_FilesSharing.new) ..addBuilderFactory(const FullType(Capabilities0), Capabilities0.new)
..add(Capabilities_FilesSharing.serializer) ..add(Capabilities0.serializer)
..addBuilderFactory(const FullType(Capabilities0_FilesSharing), Capabilities0_FilesSharing.new)
..add(Capabilities0_FilesSharing.serializer)
..addBuilderFactory( ..addBuilderFactory(
const FullType(Capabilities_FilesSharing_Sharebymail), const FullType(Capabilities0_FilesSharing_Sharebymail),
Capabilities_FilesSharing_Sharebymail.new, Capabilities0_FilesSharing_Sharebymail.new,
) )
..add(Capabilities_FilesSharing_Sharebymail.serializer) ..add(Capabilities0_FilesSharing_Sharebymail.serializer)
..addBuilderFactory( ..addBuilderFactory(
const FullType(Capabilities_FilesSharing_Sharebymail_UploadFilesDrop), const FullType(Capabilities0_FilesSharing_Sharebymail_UploadFilesDrop),
Capabilities_FilesSharing_Sharebymail_UploadFilesDrop.new, Capabilities0_FilesSharing_Sharebymail_UploadFilesDrop.new,
) )
..add(Capabilities_FilesSharing_Sharebymail_UploadFilesDrop.serializer) ..add(Capabilities0_FilesSharing_Sharebymail_UploadFilesDrop.serializer)
..addBuilderFactory( ..addBuilderFactory(
const FullType(Capabilities_FilesSharing_Sharebymail_Password), const FullType(Capabilities0_FilesSharing_Sharebymail_Password),
Capabilities_FilesSharing_Sharebymail_Password.new, Capabilities0_FilesSharing_Sharebymail_Password.new,
) )
..add(Capabilities_FilesSharing_Sharebymail_Password.serializer) ..add(Capabilities0_FilesSharing_Sharebymail_Password.serializer)
..addBuilderFactory( ..addBuilderFactory(
const FullType(Capabilities_FilesSharing_Sharebymail_ExpireDate), const FullType(Capabilities0_FilesSharing_Sharebymail_ExpireDate),
Capabilities_FilesSharing_Sharebymail_ExpireDate.new, Capabilities0_FilesSharing_Sharebymail_ExpireDate.new,
) )
..add(Capabilities_FilesSharing_Sharebymail_ExpireDate.serializer)) ..add(Capabilities0_FilesSharing_Sharebymail_ExpireDate.serializer)
..addBuilderFactory(const FullType(BuiltList, [FullType(JsonObject)]), ListBuilder<JsonObject>.new))
.build(); .build();
final Serializers _jsonSerializers = (_serializers.toBuilder() final Serializers _jsonSerializers = (_serializers.toBuilder()

662
packages/nextcloud/lib/src/api/sharebymail.openapi.g.dart

File diff suppressed because it is too large Load Diff

106
packages/nextcloud/lib/src/api/sharebymail.openapi.json

@ -22,82 +22,90 @@
}, },
"schemas": { "schemas": {
"Capabilities": { "Capabilities": {
"type": "object", "anyOf": [
"required": [ {
"files_sharing"
],
"properties": {
"files_sharing": {
"type": "object", "type": "object",
"required": [ "required": [
"sharebymail" "files_sharing"
], ],
"properties": { "properties": {
"sharebymail": { "files_sharing": {
"type": "object", "type": "object",
"required": [ "required": [
"enabled", "sharebymail"
"send_password_by_mail",
"upload_files_drop",
"password",
"expire_date"
], ],
"properties": { "properties": {
"enabled": { "sharebymail": {
"type": "boolean"
},
"send_password_by_mail": {
"type": "boolean"
},
"upload_files_drop": {
"type": "object",
"required": [
"enabled"
],
"properties": {
"enabled": {
"type": "boolean"
}
}
},
"password": {
"type": "object", "type": "object",
"required": [ "required": [
"enabled", "enabled",
"enforced" "send_password_by_mail",
"upload_files_drop",
"password",
"expire_date"
], ],
"properties": { "properties": {
"enabled": { "enabled": {
"type": "boolean" "type": "boolean"
}, },
"enforced": { "send_password_by_mail": {
"type": "boolean"
}
}
},
"expire_date": {
"type": "object",
"required": [
"enabled",
"enforced"
],
"properties": {
"enabled": {
"type": "boolean" "type": "boolean"
}, },
"enforced": { "upload_files_drop": {
"type": "boolean" "type": "object",
"required": [
"enabled"
],
"properties": {
"enabled": {
"type": "boolean"
}
}
},
"password": {
"type": "object",
"required": [
"enabled",
"enforced"
],
"properties": {
"enabled": {
"type": "boolean"
},
"enforced": {
"type": "boolean"
}
}
},
"expire_date": {
"type": "object",
"required": [
"enabled",
"enforced"
],
"properties": {
"enabled": {
"type": "boolean"
},
"enforced": {
"type": "boolean"
}
}
} }
} }
} }
} }
} }
} }
},
{
"type": "array",
"maxLength": 0
} }
} ]
} }
} }
}, },
"paths": {}, "paths": {},
"tags": [] "tags": []
} }

4
packages/nextcloud/lib/src/api/spreed.openapi.dart

@ -20582,10 +20582,10 @@ abstract class RoomAddParticipantToRoomResponseApplicationJson_Ocs_Data
} }
final match = [b._roomAddParticipantToRoomResponseApplicationJsonOcsData0, b._builtListJsonObject] final match = [b._roomAddParticipantToRoomResponseApplicationJsonOcsData0, b._builtListJsonObject]
.singleWhereOrNull((final x) => x != null); .firstWhereOrNull((final x) => x != null);
if (match == null) { if (match == null) {
throw StateError( throw StateError(
"Need exactly one of 'roomAddParticipantToRoomResponseApplicationJsonOcsData0', 'builtListJsonObject' for ${b._data}", "Need at least one of 'roomAddParticipantToRoomResponseApplicationJsonOcsData0', 'builtListJsonObject' for ${b._data}",
); );
} }
} }

2
packages/nextcloud/lib/src/api/spreed.openapi.json

@ -12896,7 +12896,7 @@
"$ref": "#/components/schemas/OCSMeta" "$ref": "#/components/schemas/OCSMeta"
}, },
"data": { "data": {
"oneOf": [ "anyOf": [
{ {
"type": "object", "type": "object",
"required": [ "required": [

14
packages/nextcloud/lib/src/api/user_status.openapi.dart

@ -1790,7 +1790,7 @@ abstract class UserStatusClearMessageResponseApplicationJson
@BuiltValue(instantiable: false) @BuiltValue(instantiable: false)
abstract interface class UserStatusRevertStatusResponseApplicationJson_Ocs_DataInterface { abstract interface class UserStatusRevertStatusResponseApplicationJson_Ocs_DataInterface {
Private? get private; Private? get private;
JsonObject? get jsonObject; BuiltList<JsonObject>? get builtListJsonObject;
} }
abstract class UserStatusRevertStatusResponseApplicationJson_Ocs_Data abstract class UserStatusRevertStatusResponseApplicationJson_Ocs_Data
@ -1827,9 +1827,9 @@ abstract class UserStatusRevertStatusResponseApplicationJson_Ocs_Data
return; return;
} }
final match = [b._private, b._jsonObject].singleWhereOrNull((final x) => x != null); final match = [b._private, b._builtListJsonObject].firstWhereOrNull((final x) => x != null);
if (match == null) { if (match == null) {
throw StateError("Need exactly one of 'private', 'jsonObject' for ${b._data}"); throw StateError("Need at least one of 'private', 'builtListJsonObject' for ${b._data}");
} }
} }
} }
@ -1865,8 +1865,11 @@ class _$UserStatusRevertStatusResponseApplicationJson_Ocs_DataSerializer
result.private.replace(value); result.private.replace(value);
} catch (_) {} } catch (_) {}
try { try {
final value = _jsonSerializers.deserialize(data, specifiedType: const FullType(JsonObject))! as JsonObject; final value = _jsonSerializers.deserialize(
result.jsonObject = value; data,
specifiedType: const FullType(BuiltList, [FullType(JsonObject)]),
)! as BuiltList<JsonObject>;
result.builtListJsonObject.replace(value);
} catch (_) {} } catch (_) {}
return result.build(); return result.build();
} }
@ -2106,6 +2109,7 @@ final Serializers _serializers = (Serializers().toBuilder()
UserStatusRevertStatusResponseApplicationJson_Ocs_Data.new, UserStatusRevertStatusResponseApplicationJson_Ocs_Data.new,
) )
..add(UserStatusRevertStatusResponseApplicationJson_Ocs_Data.serializer) ..add(UserStatusRevertStatusResponseApplicationJson_Ocs_Data.serializer)
..addBuilderFactory(const FullType(BuiltList, [FullType(JsonObject)]), ListBuilder<JsonObject>.new)
..addBuilderFactory(const FullType(Capabilities), Capabilities.new) ..addBuilderFactory(const FullType(Capabilities), Capabilities.new)
..add(Capabilities.serializer) ..add(Capabilities.serializer)
..addBuilderFactory(const FullType(Capabilities_UserStatus), Capabilities_UserStatus.new) ..addBuilderFactory(const FullType(Capabilities_UserStatus), Capabilities_UserStatus.new)

28
packages/nextcloud/lib/src/api/user_status.openapi.g.dart

@ -4392,8 +4392,8 @@ abstract mixin class UserStatusRevertStatusResponseApplicationJson_Ocs_DataInter
PrivateBuilder get private; PrivateBuilder get private;
set private(PrivateBuilder? private); set private(PrivateBuilder? private);
JsonObject? get jsonObject; ListBuilder<JsonObject> get builtListJsonObject;
set jsonObject(JsonObject? jsonObject); set builtListJsonObject(ListBuilder<JsonObject>? builtListJsonObject);
} }
class _$UserStatusRevertStatusResponseApplicationJson_Ocs_Data class _$UserStatusRevertStatusResponseApplicationJson_Ocs_Data
@ -4403,13 +4403,14 @@ class _$UserStatusRevertStatusResponseApplicationJson_Ocs_Data
@override @override
final Private? private; final Private? private;
@override @override
final JsonObject? jsonObject; final BuiltList<JsonObject>? builtListJsonObject;
factory _$UserStatusRevertStatusResponseApplicationJson_Ocs_Data( factory _$UserStatusRevertStatusResponseApplicationJson_Ocs_Data(
[void Function(UserStatusRevertStatusResponseApplicationJson_Ocs_DataBuilder)? updates]) => [void Function(UserStatusRevertStatusResponseApplicationJson_Ocs_DataBuilder)? updates]) =>
(UserStatusRevertStatusResponseApplicationJson_Ocs_DataBuilder()..update(updates))._build(); (UserStatusRevertStatusResponseApplicationJson_Ocs_DataBuilder()..update(updates))._build();
_$UserStatusRevertStatusResponseApplicationJson_Ocs_Data._({required this.data, this.private, this.jsonObject}) _$UserStatusRevertStatusResponseApplicationJson_Ocs_Data._(
{required this.data, this.private, this.builtListJsonObject})
: super._() { : super._() {
BuiltValueNullFieldError.checkNotNull(data, r'UserStatusRevertStatusResponseApplicationJson_Ocs_Data', 'data'); BuiltValueNullFieldError.checkNotNull(data, r'UserStatusRevertStatusResponseApplicationJson_Ocs_Data', 'data');
} }
@ -4429,7 +4430,7 @@ class _$UserStatusRevertStatusResponseApplicationJson_Ocs_Data
return other is UserStatusRevertStatusResponseApplicationJson_Ocs_Data && return other is UserStatusRevertStatusResponseApplicationJson_Ocs_Data &&
data == other.data && data == other.data &&
private == other.private && private == other.private &&
jsonObject == other.jsonObject; builtListJsonObject == other.builtListJsonObject;
} }
@override @override
@ -4437,7 +4438,7 @@ class _$UserStatusRevertStatusResponseApplicationJson_Ocs_Data
var _$hash = 0; var _$hash = 0;
_$hash = $jc(_$hash, data.hashCode); _$hash = $jc(_$hash, data.hashCode);
_$hash = $jc(_$hash, private.hashCode); _$hash = $jc(_$hash, private.hashCode);
_$hash = $jc(_$hash, jsonObject.hashCode); _$hash = $jc(_$hash, builtListJsonObject.hashCode);
_$hash = $jf(_$hash); _$hash = $jf(_$hash);
return _$hash; return _$hash;
} }
@ -4447,7 +4448,7 @@ class _$UserStatusRevertStatusResponseApplicationJson_Ocs_Data
return (newBuiltValueToStringHelper(r'UserStatusRevertStatusResponseApplicationJson_Ocs_Data') return (newBuiltValueToStringHelper(r'UserStatusRevertStatusResponseApplicationJson_Ocs_Data')
..add('data', data) ..add('data', data)
..add('private', private) ..add('private', private)
..add('jsonObject', jsonObject)) ..add('builtListJsonObject', builtListJsonObject))
.toString(); .toString();
} }
} }
@ -4467,9 +4468,10 @@ class UserStatusRevertStatusResponseApplicationJson_Ocs_DataBuilder
PrivateBuilder get private => _$this._private ??= PrivateBuilder(); PrivateBuilder get private => _$this._private ??= PrivateBuilder();
set private(covariant PrivateBuilder? private) => _$this._private = private; set private(covariant PrivateBuilder? private) => _$this._private = private;
JsonObject? _jsonObject; ListBuilder<JsonObject>? _builtListJsonObject;
JsonObject? get jsonObject => _$this._jsonObject; ListBuilder<JsonObject> get builtListJsonObject => _$this._builtListJsonObject ??= ListBuilder<JsonObject>();
set jsonObject(covariant JsonObject? jsonObject) => _$this._jsonObject = jsonObject; set builtListJsonObject(covariant ListBuilder<JsonObject>? builtListJsonObject) =>
_$this._builtListJsonObject = builtListJsonObject;
UserStatusRevertStatusResponseApplicationJson_Ocs_DataBuilder(); UserStatusRevertStatusResponseApplicationJson_Ocs_DataBuilder();
@ -4478,7 +4480,7 @@ class UserStatusRevertStatusResponseApplicationJson_Ocs_DataBuilder
if ($v != null) { if ($v != null) {
_data = $v.data; _data = $v.data;
_private = $v.private?.toBuilder(); _private = $v.private?.toBuilder();
_jsonObject = $v.jsonObject; _builtListJsonObject = $v.builtListJsonObject?.toBuilder();
_$v = null; _$v = null;
} }
return this; return this;
@ -4507,12 +4509,14 @@ class UserStatusRevertStatusResponseApplicationJson_Ocs_DataBuilder
data: BuiltValueNullFieldError.checkNotNull( data: BuiltValueNullFieldError.checkNotNull(
data, r'UserStatusRevertStatusResponseApplicationJson_Ocs_Data', 'data'), data, r'UserStatusRevertStatusResponseApplicationJson_Ocs_Data', 'data'),
private: _private?.build(), private: _private?.build(),
jsonObject: jsonObject); builtListJsonObject: _builtListJsonObject?.build());
} catch (_) { } catch (_) {
late String _$failedField; late String _$failedField;
try { try {
_$failedField = 'private'; _$failedField = 'private';
_private?.build(); _private?.build();
_$failedField = 'builtListJsonObject';
_builtListJsonObject?.build();
} catch (e) { } catch (e) {
throw BuiltValueNestedFieldError( throw BuiltValueNestedFieldError(
r'UserStatusRevertStatusResponseApplicationJson_Ocs_Data', _$failedField, e.toString()); r'UserStatusRevertStatusResponseApplicationJson_Ocs_Data', _$failedField, e.toString());

9
packages/nextcloud/lib/src/api/user_status.openapi.json

@ -817,11 +817,14 @@
"$ref": "#/components/schemas/OCSMeta" "$ref": "#/components/schemas/OCSMeta"
}, },
"data": { "data": {
"oneOf": [ "anyOf": [
{ {
"$ref": "#/components/schemas/Private" "$ref": "#/components/schemas/Private"
}, },
{} {
"type": "array",
"maxLength": 0
}
] ]
} }
} }
@ -1054,4 +1057,4 @@
} }
}, },
"tags": [] "tags": []
} }

7
packages/nextcloud/lib/src/patches/sharebymail/oneof-workaround.json

@ -0,0 +1,7 @@
[
{
"op": "move",
"from": "/components/schemas/Capabilities/oneOf",
"path": "/components/schemas/Capabilities/anyOf"
}
]

5
packages/nextcloud/lib/src/patches/spreed/oneof-workaround.json

@ -8,5 +8,10 @@
"op": "move", "op": "move",
"from": "/components/schemas/Room/properties/lastMessage/oneOf", "from": "/components/schemas/Room/properties/lastMessage/oneOf",
"path": "/components/schemas/Room/properties/lastMessage/anyOf" "path": "/components/schemas/Room/properties/lastMessage/anyOf"
},
{
"op": "move",
"from": "/paths/~1ocs~1v2.php~1apps~1spreed~1api~1{apiVersion}~1room~1{token}~1participants/post/responses/200/content/application~1json/schema/properties/ocs/properties/data/oneOf",
"path": "/paths/~1ocs~1v2.php~1apps~1spreed~1api~1{apiVersion}~1room~1{token}~1participants/post/responses/200/content/application~1json/schema/properties/ocs/properties/data/anyOf"
} }
] ]

7
packages/nextcloud/lib/src/patches/user_status/oneof-workaround.json

@ -0,0 +1,7 @@
[
{
"op": "move",
"from": "/paths/~1ocs~1v2.php~1apps~1user_status~1api~1v1~1user_status~1revert~1{messageId}/delete/responses/200/content/application~1json/schema/properties/ocs/properties/data/oneOf",
"path": "/paths/~1ocs~1v2.php~1apps~1user_status~1api~1v1~1user_status~1revert~1{messageId}/delete/responses/200/content/application~1json/schema/properties/ocs/properties/data/anyOf"
}
]
Loading…
Cancel
Save