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: unreachable_switch_case
import 'package:built_collection/built_collection.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/standard_json_plugin.dart';
import 'package:collection/collection.dart';
import 'package:dynamite_runtime/built_value.dart';
import 'package:dynamite_runtime/http_client.dart';
@ -32,25 +35,25 @@ class Client extends DynamiteClient {
}
@BuiltValue(instantiable: false)
abstract interface class Capabilities_FilesSharing_Sharebymail_UploadFilesDropInterface {
abstract interface class Capabilities0_FilesSharing_Sharebymail_UploadFilesDropInterface {
bool get enabled;
}
abstract class Capabilities_FilesSharing_Sharebymail_UploadFilesDrop
abstract class Capabilities0_FilesSharing_Sharebymail_UploadFilesDrop
implements
Capabilities_FilesSharing_Sharebymail_UploadFilesDropInterface,
Built<Capabilities_FilesSharing_Sharebymail_UploadFilesDrop,
Capabilities_FilesSharing_Sharebymail_UploadFilesDropBuilder> {
factory Capabilities_FilesSharing_Sharebymail_UploadFilesDrop([
final void Function(Capabilities_FilesSharing_Sharebymail_UploadFilesDropBuilder)? b,
]) = _$Capabilities_FilesSharing_Sharebymail_UploadFilesDrop;
Capabilities0_FilesSharing_Sharebymail_UploadFilesDropInterface,
Built<Capabilities0_FilesSharing_Sharebymail_UploadFilesDrop,
Capabilities0_FilesSharing_Sharebymail_UploadFilesDropBuilder> {
factory Capabilities0_FilesSharing_Sharebymail_UploadFilesDrop([
final void Function(Capabilities0_FilesSharing_Sharebymail_UploadFilesDropBuilder)? b,
]) = _$Capabilities0_FilesSharing_Sharebymail_UploadFilesDrop;
// coverage:ignore-start
const Capabilities_FilesSharing_Sharebymail_UploadFilesDrop._();
const Capabilities0_FilesSharing_Sharebymail_UploadFilesDrop._();
// coverage:ignore-end
// 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)!;
// 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>;
// coverage:ignore-end
static Serializer<Capabilities_FilesSharing_Sharebymail_UploadFilesDrop> get serializer =>
_$capabilitiesFilesSharingSharebymailUploadFilesDropSerializer;
static Serializer<Capabilities0_FilesSharing_Sharebymail_UploadFilesDrop> get serializer =>
_$capabilities0FilesSharingSharebymailUploadFilesDropSerializer;
}
@BuiltValue(instantiable: false)
abstract interface class Capabilities_FilesSharing_Sharebymail_PasswordInterface {
abstract interface class Capabilities0_FilesSharing_Sharebymail_PasswordInterface {
bool get enabled;
bool get enforced;
}
abstract class Capabilities_FilesSharing_Sharebymail_Password
abstract class Capabilities0_FilesSharing_Sharebymail_Password
implements
Capabilities_FilesSharing_Sharebymail_PasswordInterface,
Built<Capabilities_FilesSharing_Sharebymail_Password, Capabilities_FilesSharing_Sharebymail_PasswordBuilder> {
factory Capabilities_FilesSharing_Sharebymail_Password([
final void Function(Capabilities_FilesSharing_Sharebymail_PasswordBuilder)? b,
]) = _$Capabilities_FilesSharing_Sharebymail_Password;
Capabilities0_FilesSharing_Sharebymail_PasswordInterface,
Built<Capabilities0_FilesSharing_Sharebymail_Password, Capabilities0_FilesSharing_Sharebymail_PasswordBuilder> {
factory Capabilities0_FilesSharing_Sharebymail_Password([
final void Function(Capabilities0_FilesSharing_Sharebymail_PasswordBuilder)? b,
]) = _$Capabilities0_FilesSharing_Sharebymail_Password;
// coverage:ignore-start
const Capabilities_FilesSharing_Sharebymail_Password._();
const Capabilities0_FilesSharing_Sharebymail_Password._();
// coverage:ignore-end
// 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)!;
// 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>;
// coverage:ignore-end
static Serializer<Capabilities_FilesSharing_Sharebymail_Password> get serializer =>
_$capabilitiesFilesSharingSharebymailPasswordSerializer;
static Serializer<Capabilities0_FilesSharing_Sharebymail_Password> get serializer =>
_$capabilities0FilesSharingSharebymailPasswordSerializer;
}
@BuiltValue(instantiable: false)
abstract interface class Capabilities_FilesSharing_Sharebymail_ExpireDateInterface {
abstract interface class Capabilities0_FilesSharing_Sharebymail_ExpireDateInterface {
bool get enabled;
bool get enforced;
}
abstract class Capabilities_FilesSharing_Sharebymail_ExpireDate
abstract class Capabilities0_FilesSharing_Sharebymail_ExpireDate
implements
Capabilities_FilesSharing_Sharebymail_ExpireDateInterface,
Built<Capabilities_FilesSharing_Sharebymail_ExpireDate,
Capabilities_FilesSharing_Sharebymail_ExpireDateBuilder> {
factory Capabilities_FilesSharing_Sharebymail_ExpireDate([
final void Function(Capabilities_FilesSharing_Sharebymail_ExpireDateBuilder)? b,
]) = _$Capabilities_FilesSharing_Sharebymail_ExpireDate;
Capabilities0_FilesSharing_Sharebymail_ExpireDateInterface,
Built<Capabilities0_FilesSharing_Sharebymail_ExpireDate,
Capabilities0_FilesSharing_Sharebymail_ExpireDateBuilder> {
factory Capabilities0_FilesSharing_Sharebymail_ExpireDate([
final void Function(Capabilities0_FilesSharing_Sharebymail_ExpireDateBuilder)? b,
]) = _$Capabilities0_FilesSharing_Sharebymail_ExpireDate;
// coverage:ignore-start
const Capabilities_FilesSharing_Sharebymail_ExpireDate._();
const Capabilities0_FilesSharing_Sharebymail_ExpireDate._();
// coverage:ignore-end
// 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)!;
// 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>;
// coverage:ignore-end
static Serializer<Capabilities_FilesSharing_Sharebymail_ExpireDate> get serializer =>
_$capabilitiesFilesSharingSharebymailExpireDateSerializer;
static Serializer<Capabilities0_FilesSharing_Sharebymail_ExpireDate> get serializer =>
_$capabilities0FilesSharingSharebymailExpireDateSerializer;
}
@BuiltValue(instantiable: false)
abstract interface class Capabilities_FilesSharing_SharebymailInterface {
abstract interface class Capabilities0_FilesSharing_SharebymailInterface {
bool get enabled;
@BuiltValueField(wireName: 'send_password_by_mail')
bool get sendPasswordByMail;
@BuiltValueField(wireName: 'upload_files_drop')
Capabilities_FilesSharing_Sharebymail_UploadFilesDrop get uploadFilesDrop;
Capabilities_FilesSharing_Sharebymail_Password get password;
Capabilities0_FilesSharing_Sharebymail_UploadFilesDrop get uploadFilesDrop;
Capabilities0_FilesSharing_Sharebymail_Password get password;
@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
Capabilities_FilesSharing_SharebymailInterface,
Built<Capabilities_FilesSharing_Sharebymail, Capabilities_FilesSharing_SharebymailBuilder> {
factory Capabilities_FilesSharing_Sharebymail([
final void Function(Capabilities_FilesSharing_SharebymailBuilder)? b,
]) = _$Capabilities_FilesSharing_Sharebymail;
Capabilities0_FilesSharing_SharebymailInterface,
Built<Capabilities0_FilesSharing_Sharebymail, Capabilities0_FilesSharing_SharebymailBuilder> {
factory Capabilities0_FilesSharing_Sharebymail([
final void Function(Capabilities0_FilesSharing_SharebymailBuilder)? b,
]) = _$Capabilities0_FilesSharing_Sharebymail;
// coverage:ignore-start
const Capabilities_FilesSharing_Sharebymail._();
const Capabilities0_FilesSharing_Sharebymail._();
// coverage:ignore-end
// 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)!;
// coverage:ignore-end
@ -158,26 +161,28 @@ abstract class Capabilities_FilesSharing_Sharebymail
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
static Serializer<Capabilities_FilesSharing_Sharebymail> get serializer =>
_$capabilitiesFilesSharingSharebymailSerializer;
static Serializer<Capabilities0_FilesSharing_Sharebymail> get serializer =>
_$capabilities0FilesSharingSharebymailSerializer;
}
@BuiltValue(instantiable: false)
abstract interface class Capabilities_FilesSharingInterface {
Capabilities_FilesSharing_Sharebymail get sharebymail;
abstract interface class Capabilities0_FilesSharingInterface {
Capabilities0_FilesSharing_Sharebymail get sharebymail;
}
abstract class Capabilities_FilesSharing
implements Capabilities_FilesSharingInterface, Built<Capabilities_FilesSharing, Capabilities_FilesSharingBuilder> {
factory Capabilities_FilesSharing([final void Function(Capabilities_FilesSharingBuilder)? b]) =
_$Capabilities_FilesSharing;
abstract class Capabilities0_FilesSharing
implements
Capabilities0_FilesSharingInterface,
Built<Capabilities0_FilesSharing, Capabilities0_FilesSharingBuilder> {
factory Capabilities0_FilesSharing([final void Function(Capabilities0_FilesSharingBuilder)? b]) =
_$Capabilities0_FilesSharing;
// coverage:ignore-start
const Capabilities_FilesSharing._();
const Capabilities0_FilesSharing._();
// coverage:ignore-end
// 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)!;
// coverage:ignore-end
@ -185,13 +190,38 @@ abstract class Capabilities_FilesSharing
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
static Serializer<Capabilities_FilesSharing> get serializer => _$capabilitiesFilesSharingSerializer;
static Serializer<Capabilities0_FilesSharing> get serializer => _$capabilities0FilesSharingSerializer;
}
@BuiltValue(instantiable: false)
abstract interface class CapabilitiesInterface {
abstract interface class Capabilities0Interface {
@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> {
@ -209,35 +239,90 @@ abstract class Capabilities implements CapabilitiesInterface, Built<Capabilities
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// 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
final Serializers _serializers = (Serializers().toBuilder()
..addBuilderFactory(const FullType(Capabilities), Capabilities.new)
..add(Capabilities.serializer)
..addBuilderFactory(const FullType(Capabilities_FilesSharing), Capabilities_FilesSharing.new)
..add(Capabilities_FilesSharing.serializer)
..addBuilderFactory(const FullType(Capabilities0), Capabilities0.new)
..add(Capabilities0.serializer)
..addBuilderFactory(const FullType(Capabilities0_FilesSharing), Capabilities0_FilesSharing.new)
..add(Capabilities0_FilesSharing.serializer)
..addBuilderFactory(
const FullType(Capabilities_FilesSharing_Sharebymail),
Capabilities_FilesSharing_Sharebymail.new,
const FullType(Capabilities0_FilesSharing_Sharebymail),
Capabilities0_FilesSharing_Sharebymail.new,
)
..add(Capabilities_FilesSharing_Sharebymail.serializer)
..add(Capabilities0_FilesSharing_Sharebymail.serializer)
..addBuilderFactory(
const FullType(Capabilities_FilesSharing_Sharebymail_UploadFilesDrop),
Capabilities_FilesSharing_Sharebymail_UploadFilesDrop.new,
const FullType(Capabilities0_FilesSharing_Sharebymail_UploadFilesDrop),
Capabilities0_FilesSharing_Sharebymail_UploadFilesDrop.new,
)
..add(Capabilities_FilesSharing_Sharebymail_UploadFilesDrop.serializer)
..add(Capabilities0_FilesSharing_Sharebymail_UploadFilesDrop.serializer)
..addBuilderFactory(
const FullType(Capabilities_FilesSharing_Sharebymail_Password),
Capabilities_FilesSharing_Sharebymail_Password.new,
const FullType(Capabilities0_FilesSharing_Sharebymail_Password),
Capabilities0_FilesSharing_Sharebymail_Password.new,
)
..add(Capabilities_FilesSharing_Sharebymail_Password.serializer)
..add(Capabilities0_FilesSharing_Sharebymail_Password.serializer)
..addBuilderFactory(
const FullType(Capabilities_FilesSharing_Sharebymail_ExpireDate),
Capabilities_FilesSharing_Sharebymail_ExpireDate.new,
const FullType(Capabilities0_FilesSharing_Sharebymail_ExpireDate),
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();
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": {
"Capabilities": {
"type": "object",
"required": [
"files_sharing"
],
"properties": {
"files_sharing": {
"anyOf": [
{
"type": "object",
"required": [
"sharebymail"
"files_sharing"
],
"properties": {
"sharebymail": {
"files_sharing": {
"type": "object",
"required": [
"enabled",
"send_password_by_mail",
"upload_files_drop",
"password",
"expire_date"
"sharebymail"
],
"properties": {
"enabled": {
"type": "boolean"
},
"send_password_by_mail": {
"type": "boolean"
},
"upload_files_drop": {
"type": "object",
"required": [
"enabled"
],
"properties": {
"enabled": {
"type": "boolean"
}
}
},
"password": {
"sharebymail": {
"type": "object",
"required": [
"enabled",
"enforced"
"send_password_by_mail",
"upload_files_drop",
"password",
"expire_date"
],
"properties": {
"enabled": {
"type": "boolean"
},
"enforced": {
"type": "boolean"
}
}
},
"expire_date": {
"type": "object",
"required": [
"enabled",
"enforced"
],
"properties": {
"enabled": {
"send_password_by_mail": {
"type": "boolean"
},
"enforced": {
"type": "boolean"
"upload_files_drop": {
"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": {},
"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]
.singleWhereOrNull((final x) => x != null);
.firstWhereOrNull((final x) => x != null);
if (match == null) {
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"
},
"data": {
"oneOf": [
"anyOf": [
{
"type": "object",
"required": [

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

@ -1790,7 +1790,7 @@ abstract class UserStatusClearMessageResponseApplicationJson
@BuiltValue(instantiable: false)
abstract interface class UserStatusRevertStatusResponseApplicationJson_Ocs_DataInterface {
Private? get private;
JsonObject? get jsonObject;
BuiltList<JsonObject>? get builtListJsonObject;
}
abstract class UserStatusRevertStatusResponseApplicationJson_Ocs_Data
@ -1827,9 +1827,9 @@ abstract class UserStatusRevertStatusResponseApplicationJson_Ocs_Data
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) {
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);
} catch (_) {}
try {
final value = _jsonSerializers.deserialize(data, specifiedType: const FullType(JsonObject))! as JsonObject;
result.jsonObject = value;
final value = _jsonSerializers.deserialize(
data,
specifiedType: const FullType(BuiltList, [FullType(JsonObject)]),
)! as BuiltList<JsonObject>;
result.builtListJsonObject.replace(value);
} catch (_) {}
return result.build();
}
@ -2106,6 +2109,7 @@ final Serializers _serializers = (Serializers().toBuilder()
UserStatusRevertStatusResponseApplicationJson_Ocs_Data.new,
)
..add(UserStatusRevertStatusResponseApplicationJson_Ocs_Data.serializer)
..addBuilderFactory(const FullType(BuiltList, [FullType(JsonObject)]), ListBuilder<JsonObject>.new)
..addBuilderFactory(const FullType(Capabilities), Capabilities.new)
..add(Capabilities.serializer)
..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;
set private(PrivateBuilder? private);
JsonObject? get jsonObject;
set jsonObject(JsonObject? jsonObject);
ListBuilder<JsonObject> get builtListJsonObject;
set builtListJsonObject(ListBuilder<JsonObject>? builtListJsonObject);
}
class _$UserStatusRevertStatusResponseApplicationJson_Ocs_Data
@ -4403,13 +4403,14 @@ class _$UserStatusRevertStatusResponseApplicationJson_Ocs_Data
@override
final Private? private;
@override
final JsonObject? jsonObject;
final BuiltList<JsonObject>? builtListJsonObject;
factory _$UserStatusRevertStatusResponseApplicationJson_Ocs_Data(
[void Function(UserStatusRevertStatusResponseApplicationJson_Ocs_DataBuilder)? updates]) =>
(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._() {
BuiltValueNullFieldError.checkNotNull(data, r'UserStatusRevertStatusResponseApplicationJson_Ocs_Data', 'data');
}
@ -4429,7 +4430,7 @@ class _$UserStatusRevertStatusResponseApplicationJson_Ocs_Data
return other is UserStatusRevertStatusResponseApplicationJson_Ocs_Data &&
data == other.data &&
private == other.private &&
jsonObject == other.jsonObject;
builtListJsonObject == other.builtListJsonObject;
}
@override
@ -4437,7 +4438,7 @@ class _$UserStatusRevertStatusResponseApplicationJson_Ocs_Data
var _$hash = 0;
_$hash = $jc(_$hash, data.hashCode);
_$hash = $jc(_$hash, private.hashCode);
_$hash = $jc(_$hash, jsonObject.hashCode);
_$hash = $jc(_$hash, builtListJsonObject.hashCode);
_$hash = $jf(_$hash);
return _$hash;
}
@ -4447,7 +4448,7 @@ class _$UserStatusRevertStatusResponseApplicationJson_Ocs_Data
return (newBuiltValueToStringHelper(r'UserStatusRevertStatusResponseApplicationJson_Ocs_Data')
..add('data', data)
..add('private', private)
..add('jsonObject', jsonObject))
..add('builtListJsonObject', builtListJsonObject))
.toString();
}
}
@ -4467,9 +4468,10 @@ class UserStatusRevertStatusResponseApplicationJson_Ocs_DataBuilder
PrivateBuilder get private => _$this._private ??= PrivateBuilder();
set private(covariant PrivateBuilder? private) => _$this._private = private;
JsonObject? _jsonObject;
JsonObject? get jsonObject => _$this._jsonObject;
set jsonObject(covariant JsonObject? jsonObject) => _$this._jsonObject = jsonObject;
ListBuilder<JsonObject>? _builtListJsonObject;
ListBuilder<JsonObject> get builtListJsonObject => _$this._builtListJsonObject ??= ListBuilder<JsonObject>();
set builtListJsonObject(covariant ListBuilder<JsonObject>? builtListJsonObject) =>
_$this._builtListJsonObject = builtListJsonObject;
UserStatusRevertStatusResponseApplicationJson_Ocs_DataBuilder();
@ -4478,7 +4480,7 @@ class UserStatusRevertStatusResponseApplicationJson_Ocs_DataBuilder
if ($v != null) {
_data = $v.data;
_private = $v.private?.toBuilder();
_jsonObject = $v.jsonObject;
_builtListJsonObject = $v.builtListJsonObject?.toBuilder();
_$v = null;
}
return this;
@ -4507,12 +4509,14 @@ class UserStatusRevertStatusResponseApplicationJson_Ocs_DataBuilder
data: BuiltValueNullFieldError.checkNotNull(
data, r'UserStatusRevertStatusResponseApplicationJson_Ocs_Data', 'data'),
private: _private?.build(),
jsonObject: jsonObject);
builtListJsonObject: _builtListJsonObject?.build());
} catch (_) {
late String _$failedField;
try {
_$failedField = 'private';
_private?.build();
_$failedField = 'builtListJsonObject';
_builtListJsonObject?.build();
} catch (e) {
throw BuiltValueNestedFieldError(
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"
},
"data": {
"oneOf": [
"anyOf": [
{
"$ref": "#/components/schemas/Private"
},
{}
{
"type": "array",
"maxLength": 0
}
]
}
}
@ -1054,4 +1057,4 @@
}
},
"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",
"from": "/components/schemas/Room/properties/lastMessage/oneOf",
"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