Browse Source

Merge pull request #791 from nextcloud/fix/nextcloud/core-provisioning_api-specs

fix(nextcloud): Fix core and provisioning_api specs
pull/792/head
Kate 1 year ago committed by GitHub
parent
commit
a02e88dadb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      external/nextcloud-server
  2. 231
      packages/nextcloud/lib/src/api/core.openapi.dart
  3. 485
      packages/nextcloud/lib/src/api/core.openapi.g.dart
  4. 73
      packages/nextcloud/lib/src/api/core.openapi.json
  5. 9
      packages/nextcloud/lib/src/api/provisioning_api.openapi.dart
  6. 13
      packages/nextcloud/lib/src/api/provisioning_api.openapi.g.dart
  7. 4
      packages/nextcloud/lib/src/api/provisioning_api.openapi.json

2
external/nextcloud-server vendored

@ -1 +1 @@
Subproject commit eb1b09da6728d300aecf65fb28d3d49e546a9bee Subproject commit 5d20baec01daec7b7aefe7cb17f8db5611dcd176

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

@ -2716,75 +2716,67 @@ abstract class CoreLoginFlowV2 implements CoreLoginFlowV2Interface, Built<CoreLo
} }
@BuiltValue(instantiable: false) @BuiltValue(instantiable: false)
abstract interface class CoreOpenGraphObject_OpenGraphObjectInterface { abstract interface class CoreOpenGraphObjectInterface {
String get id; String get id;
String get name; String get name;
String? get description; String? get description;
String? get thumb; String? get thumb;
String get link; String get link;
CoreOpenGraphObject_OpenGraphObjectInterface rebuild( CoreOpenGraphObjectInterface rebuild(final void Function(CoreOpenGraphObjectInterfaceBuilder) updates);
final void Function(CoreOpenGraphObject_OpenGraphObjectInterfaceBuilder) updates, CoreOpenGraphObjectInterfaceBuilder toBuilder();
);
CoreOpenGraphObject_OpenGraphObjectInterfaceBuilder toBuilder();
} }
abstract class CoreOpenGraphObject_OpenGraphObject abstract class CoreOpenGraphObject
implements implements CoreOpenGraphObjectInterface, Built<CoreOpenGraphObject, CoreOpenGraphObjectBuilder> {
CoreOpenGraphObject_OpenGraphObjectInterface, factory CoreOpenGraphObject([final void Function(CoreOpenGraphObjectBuilder)? b]) = _$CoreOpenGraphObject;
Built<CoreOpenGraphObject_OpenGraphObject, CoreOpenGraphObject_OpenGraphObjectBuilder> {
factory CoreOpenGraphObject_OpenGraphObject([final void Function(CoreOpenGraphObject_OpenGraphObjectBuilder)? b]) =
_$CoreOpenGraphObject_OpenGraphObject;
// coverage:ignore-start // coverage:ignore-start
const CoreOpenGraphObject_OpenGraphObject._(); const CoreOpenGraphObject._();
// coverage:ignore-end // coverage:ignore-end
// coverage:ignore-start // coverage:ignore-start
factory CoreOpenGraphObject_OpenGraphObject.fromJson(final Map<String, dynamic> json) => factory CoreOpenGraphObject.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!; _jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end // coverage:ignore-end
// coverage:ignore-start // coverage:ignore-start
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<CoreOpenGraphObject_OpenGraphObject> get serializer => static Serializer<CoreOpenGraphObject> get serializer => _$coreOpenGraphObjectSerializer;
_$coreOpenGraphObjectOpenGraphObjectSerializer;
} }
@BuiltValue(instantiable: false) @BuiltValue(instantiable: false)
abstract interface class CoreOpenGraphObjectInterface { abstract interface class CoreResourceInterface {
String get richObjectType; String get richObjectType;
BuiltMap<String, JsonObject> get richObject; BuiltMap<String, JsonObject> get richObject;
CoreOpenGraphObject_OpenGraphObject get openGraphObject; CoreOpenGraphObject get openGraphObject;
bool get accessible; bool get accessible;
CoreOpenGraphObjectInterface rebuild(final void Function(CoreOpenGraphObjectInterfaceBuilder) updates); CoreResourceInterface rebuild(final void Function(CoreResourceInterfaceBuilder) updates);
CoreOpenGraphObjectInterfaceBuilder toBuilder(); CoreResourceInterfaceBuilder toBuilder();
} }
abstract class CoreOpenGraphObject abstract class CoreResource implements CoreResourceInterface, Built<CoreResource, CoreResourceBuilder> {
implements CoreOpenGraphObjectInterface, Built<CoreOpenGraphObject, CoreOpenGraphObjectBuilder> { factory CoreResource([final void Function(CoreResourceBuilder)? b]) = _$CoreResource;
factory CoreOpenGraphObject([final void Function(CoreOpenGraphObjectBuilder)? b]) = _$CoreOpenGraphObject;
// coverage:ignore-start // coverage:ignore-start
const CoreOpenGraphObject._(); const CoreResource._();
// coverage:ignore-end // coverage:ignore-end
// coverage:ignore-start // coverage:ignore-start
factory CoreOpenGraphObject.fromJson(final Map<String, dynamic> json) => factory CoreResource.fromJson(final Map<String, dynamic> json) => _jsonSerializers.deserializeWith(serializer, json)!;
_jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end // coverage:ignore-end
// coverage:ignore-start // coverage:ignore-start
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<CoreOpenGraphObject> get serializer => _$coreOpenGraphObjectSerializer; static Serializer<CoreResource> get serializer => _$coreResourceSerializer;
} }
@BuiltValue(instantiable: false) @BuiltValue(instantiable: false)
abstract interface class CoreCollectionInterface { abstract interface class CoreCollectionInterface {
int get id; int get id;
String get name; String get name;
BuiltList<CoreOpenGraphObject> get resources; BuiltList<CoreResource> get resources;
CoreCollectionInterface rebuild(final void Function(CoreCollectionInterfaceBuilder) updates); CoreCollectionInterface rebuild(final void Function(CoreCollectionInterfaceBuilder) updates);
CoreCollectionInterfaceBuilder toBuilder(); CoreCollectionInterfaceBuilder toBuilder();
} }
@ -5708,81 +5700,9 @@ abstract class CoreReferenceApiResolveOneResponseApplicationJson
_$coreReferenceApiResolveOneResponseApplicationJsonSerializer; _$coreReferenceApiResolveOneResponseApplicationJsonSerializer;
} }
abstract class CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References
implements
Built<CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References,
CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_ReferencesBuilder> {
factory CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References([
final void Function(CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_ReferencesBuilder)? b,
]) = _$CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References;
// coverage:ignore-start
const CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References._();
// coverage:ignore-end
// coverage:ignore-start
factory CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References.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
JsonObject get data;
CoreReference? get reference;
JsonObject? get jsonObject;
@BuiltValueSerializer(custom: true)
static Serializer<CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References> get serializer =>
_$CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_ReferencesSerializer();
}
class _$CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_ReferencesSerializer
implements PrimitiveSerializer<CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References> {
@override
final Iterable<Type> types = const [
CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References,
_$CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References,
];
@override
final String wireName = 'CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References';
@override
Object serialize(
final Serializers serializers,
final CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References object, {
final FullType specifiedType = FullType.unspecified,
}) =>
object.data.value;
@override
CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References deserialize(
final Serializers serializers,
final Object data, {
final FullType specifiedType = FullType.unspecified,
}) {
final result = CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_ReferencesBuilder()..data = JsonObject(data);
try {
result._reference =
(_jsonSerializers.deserialize(data, specifiedType: const FullType(CoreReference))! as CoreReference)
.toBuilder();
} catch (_) {}
try {
result._jsonObject = data as JsonObject?;
} catch (_) {}
assert(
[result._reference, result._jsonObject].where((final x) => x != null).isNotEmpty,
'Need oneOf for ${result._data}',
);
return result.build();
}
}
@BuiltValue(instantiable: false) @BuiltValue(instantiable: false)
abstract interface class CoreReferenceApiResolveResponseApplicationJson_Ocs_DataInterface { abstract interface class CoreReferenceApiResolveResponseApplicationJson_Ocs_DataInterface {
BuiltMap<String, CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References> get references; BuiltMap<String, CoreReference> get references;
CoreReferenceApiResolveResponseApplicationJson_Ocs_DataInterface rebuild( CoreReferenceApiResolveResponseApplicationJson_Ocs_DataInterface rebuild(
final void Function(CoreReferenceApiResolveResponseApplicationJson_Ocs_DataInterfaceBuilder) updates, final void Function(CoreReferenceApiResolveResponseApplicationJson_Ocs_DataInterfaceBuilder) updates,
); );
@ -5882,81 +5802,9 @@ abstract class CoreReferenceApiResolveResponseApplicationJson
_$coreReferenceApiResolveResponseApplicationJsonSerializer; _$coreReferenceApiResolveResponseApplicationJsonSerializer;
} }
abstract class CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References
implements
Built<CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References,
CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_ReferencesBuilder> {
factory CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References([
final void Function(CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_ReferencesBuilder)? b,
]) = _$CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References;
// coverage:ignore-start
const CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References._();
// coverage:ignore-end
// coverage:ignore-start
factory CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References.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
JsonObject get data;
CoreReference? get reference;
JsonObject? get jsonObject;
@BuiltValueSerializer(custom: true)
static Serializer<CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References> get serializer =>
_$CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_ReferencesSerializer();
}
class _$CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_ReferencesSerializer
implements PrimitiveSerializer<CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References> {
@override
final Iterable<Type> types = const [
CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References,
_$CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References,
];
@override
final String wireName = 'CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References';
@override
Object serialize(
final Serializers serializers,
final CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References object, {
final FullType specifiedType = FullType.unspecified,
}) =>
object.data.value;
@override
CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References deserialize(
final Serializers serializers,
final Object data, {
final FullType specifiedType = FullType.unspecified,
}) {
final result = CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_ReferencesBuilder()..data = JsonObject(data);
try {
result._reference =
(_jsonSerializers.deserialize(data, specifiedType: const FullType(CoreReference))! as CoreReference)
.toBuilder();
} catch (_) {}
try {
result._jsonObject = data as JsonObject?;
} catch (_) {}
assert(
[result._reference, result._jsonObject].where((final x) => x != null).isNotEmpty,
'Need oneOf for ${result._data}',
);
return result.build();
}
}
@BuiltValue(instantiable: false) @BuiltValue(instantiable: false)
abstract interface class CoreReferenceApiExtractResponseApplicationJson_Ocs_DataInterface { abstract interface class CoreReferenceApiExtractResponseApplicationJson_Ocs_DataInterface {
BuiltMap<String, CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References> get references; BuiltMap<String, CoreReference> get references;
CoreReferenceApiExtractResponseApplicationJson_Ocs_DataInterface rebuild( CoreReferenceApiExtractResponseApplicationJson_Ocs_DataInterface rebuild(
final void Function(CoreReferenceApiExtractResponseApplicationJson_Ocs_DataInterfaceBuilder) updates, final void Function(CoreReferenceApiExtractResponseApplicationJson_Ocs_DataInterfaceBuilder) updates,
); );
@ -7767,18 +7615,15 @@ final Serializers _serializers = (Serializers().toBuilder()
..add(CoreCollaborationResourcesSearchCollectionsResponseApplicationJson_Ocs.serializer) ..add(CoreCollaborationResourcesSearchCollectionsResponseApplicationJson_Ocs.serializer)
..addBuilderFactory(const FullType(CoreCollection), CoreCollection.new) ..addBuilderFactory(const FullType(CoreCollection), CoreCollection.new)
..add(CoreCollection.serializer) ..add(CoreCollection.serializer)
..addBuilderFactory(const FullType(CoreOpenGraphObject), CoreOpenGraphObject.new) ..addBuilderFactory(const FullType(CoreResource), CoreResource.new)
..add(CoreOpenGraphObject.serializer) ..add(CoreResource.serializer)
..addBuilderFactory( ..addBuilderFactory(
const FullType(BuiltMap, [FullType(String), FullType(JsonObject)]), const FullType(BuiltMap, [FullType(String), FullType(JsonObject)]),
MapBuilder<String, JsonObject>.new, MapBuilder<String, JsonObject>.new,
) )
..addBuilderFactory(const FullType(CoreOpenGraphObject_OpenGraphObject), CoreOpenGraphObject_OpenGraphObject.new) ..addBuilderFactory(const FullType(CoreOpenGraphObject), CoreOpenGraphObject.new)
..add(CoreOpenGraphObject_OpenGraphObject.serializer) ..add(CoreOpenGraphObject.serializer)
..addBuilderFactory( ..addBuilderFactory(const FullType(BuiltList, [FullType(CoreResource)]), ListBuilder<CoreResource>.new)
const FullType(BuiltList, [FullType(CoreOpenGraphObject)]),
ListBuilder<CoreOpenGraphObject>.new,
)
..addBuilderFactory(const FullType(BuiltList, [FullType(CoreCollection)]), ListBuilder<CoreCollection>.new) ..addBuilderFactory(const FullType(BuiltList, [FullType(CoreCollection)]), ListBuilder<CoreCollection>.new)
..addBuilderFactory( ..addBuilderFactory(
const FullType(CoreCollaborationResourcesListCollectionResponseApplicationJson), const FullType(CoreCollaborationResourcesListCollectionResponseApplicationJson),
@ -8125,18 +7970,6 @@ final Serializers _serializers = (Serializers().toBuilder()
CoreReferenceApiResolveResponseApplicationJson_Ocs_Data.new, CoreReferenceApiResolveResponseApplicationJson_Ocs_Data.new,
) )
..add(CoreReferenceApiResolveResponseApplicationJson_Ocs_Data.serializer) ..add(CoreReferenceApiResolveResponseApplicationJson_Ocs_Data.serializer)
..addBuilderFactory(
const FullType(CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References),
CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References.new,
)
..add(CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References.serializer)
..addBuilderFactory(
const FullType(
BuiltMap,
[FullType(String), FullType(CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References)],
),
MapBuilder<String, CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References>.new,
)
..addBuilderFactory( ..addBuilderFactory(
const FullType(CoreReferenceApiExtractResponseApplicationJson), const FullType(CoreReferenceApiExtractResponseApplicationJson),
CoreReferenceApiExtractResponseApplicationJson.new, CoreReferenceApiExtractResponseApplicationJson.new,
@ -8152,18 +7985,6 @@ final Serializers _serializers = (Serializers().toBuilder()
CoreReferenceApiExtractResponseApplicationJson_Ocs_Data.new, CoreReferenceApiExtractResponseApplicationJson_Ocs_Data.new,
) )
..add(CoreReferenceApiExtractResponseApplicationJson_Ocs_Data.serializer) ..add(CoreReferenceApiExtractResponseApplicationJson_Ocs_Data.serializer)
..addBuilderFactory(
const FullType(CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References),
CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References.new,
)
..add(CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References.serializer)
..addBuilderFactory(
const FullType(
BuiltMap,
[FullType(String), FullType(CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References)],
),
MapBuilder<String, CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References>.new,
)
..addBuilderFactory( ..addBuilderFactory(
const FullType(CoreReferenceApiGetProvidersInfoResponseApplicationJson), const FullType(CoreReferenceApiGetProvidersInfoResponseApplicationJson),
CoreReferenceApiGetProvidersInfoResponseApplicationJson.new, CoreReferenceApiGetProvidersInfoResponseApplicationJson.new,

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

@ -41,9 +41,8 @@ Serializer<CoreLoginFlowV2Credentials> _$coreLoginFlowV2CredentialsSerializer =
_$CoreLoginFlowV2CredentialsSerializer(); _$CoreLoginFlowV2CredentialsSerializer();
Serializer<CoreLoginFlowV2_Poll> _$coreLoginFlowV2PollSerializer = _$CoreLoginFlowV2_PollSerializer(); Serializer<CoreLoginFlowV2_Poll> _$coreLoginFlowV2PollSerializer = _$CoreLoginFlowV2_PollSerializer();
Serializer<CoreLoginFlowV2> _$coreLoginFlowV2Serializer = _$CoreLoginFlowV2Serializer(); Serializer<CoreLoginFlowV2> _$coreLoginFlowV2Serializer = _$CoreLoginFlowV2Serializer();
Serializer<CoreOpenGraphObject_OpenGraphObject> _$coreOpenGraphObjectOpenGraphObjectSerializer =
_$CoreOpenGraphObject_OpenGraphObjectSerializer();
Serializer<CoreOpenGraphObject> _$coreOpenGraphObjectSerializer = _$CoreOpenGraphObjectSerializer(); Serializer<CoreOpenGraphObject> _$coreOpenGraphObjectSerializer = _$CoreOpenGraphObjectSerializer();
Serializer<CoreResource> _$coreResourceSerializer = _$CoreResourceSerializer();
Serializer<CoreCollection> _$coreCollectionSerializer = _$CoreCollectionSerializer(); Serializer<CoreCollection> _$coreCollectionSerializer = _$CoreCollectionSerializer();
Serializer<CoreCollaborationResourcesSearchCollectionsResponseApplicationJson_Ocs> Serializer<CoreCollaborationResourcesSearchCollectionsResponseApplicationJson_Ocs>
_$coreCollaborationResourcesSearchCollectionsResponseApplicationJsonOcsSerializer = _$coreCollaborationResourcesSearchCollectionsResponseApplicationJsonOcsSerializer =
@ -1187,15 +1186,14 @@ class _$CoreLoginFlowV2Serializer implements StructuredSerializer<CoreLoginFlowV
} }
} }
class _$CoreOpenGraphObject_OpenGraphObjectSerializer class _$CoreOpenGraphObjectSerializer implements StructuredSerializer<CoreOpenGraphObject> {
implements StructuredSerializer<CoreOpenGraphObject_OpenGraphObject> {
@override @override
final Iterable<Type> types = const [CoreOpenGraphObject_OpenGraphObject, _$CoreOpenGraphObject_OpenGraphObject]; final Iterable<Type> types = const [CoreOpenGraphObject, _$CoreOpenGraphObject];
@override @override
final String wireName = 'CoreOpenGraphObject_OpenGraphObject'; final String wireName = 'CoreOpenGraphObject';
@override @override
Iterable<Object?> serialize(Serializers serializers, CoreOpenGraphObject_OpenGraphObject object, Iterable<Object?> serialize(Serializers serializers, CoreOpenGraphObject object,
{FullType specifiedType = FullType.unspecified}) { {FullType specifiedType = FullType.unspecified}) {
final result = <Object?>[ final result = <Object?>[
'id', 'id',
@ -1222,9 +1220,9 @@ class _$CoreOpenGraphObject_OpenGraphObjectSerializer
} }
@override @override
CoreOpenGraphObject_OpenGraphObject deserialize(Serializers serializers, Iterable<Object?> serialized, CoreOpenGraphObject deserialize(Serializers serializers, Iterable<Object?> serialized,
{FullType specifiedType = FullType.unspecified}) { {FullType specifiedType = FullType.unspecified}) {
final result = CoreOpenGraphObject_OpenGraphObjectBuilder(); final result = CoreOpenGraphObjectBuilder();
final iterator = serialized.iterator; final iterator = serialized.iterator;
while (iterator.moveNext()) { while (iterator.moveNext()) {
@ -1254,14 +1252,14 @@ class _$CoreOpenGraphObject_OpenGraphObjectSerializer
} }
} }
class _$CoreOpenGraphObjectSerializer implements StructuredSerializer<CoreOpenGraphObject> { class _$CoreResourceSerializer implements StructuredSerializer<CoreResource> {
@override @override
final Iterable<Type> types = const [CoreOpenGraphObject, _$CoreOpenGraphObject]; final Iterable<Type> types = const [CoreResource, _$CoreResource];
@override @override
final String wireName = 'CoreOpenGraphObject'; final String wireName = 'CoreResource';
@override @override
Iterable<Object?> serialize(Serializers serializers, CoreOpenGraphObject object, Iterable<Object?> serialize(Serializers serializers, CoreResource object,
{FullType specifiedType = FullType.unspecified}) { {FullType specifiedType = FullType.unspecified}) {
final result = <Object?>[ final result = <Object?>[
'richObjectType', 'richObjectType',
@ -1270,7 +1268,7 @@ class _$CoreOpenGraphObjectSerializer implements StructuredSerializer<CoreOpenGr
serializers.serialize(object.richObject, serializers.serialize(object.richObject,
specifiedType: const FullType(BuiltMap, [FullType(String), FullType(JsonObject)])), specifiedType: const FullType(BuiltMap, [FullType(String), FullType(JsonObject)])),
'openGraphObject', 'openGraphObject',
serializers.serialize(object.openGraphObject, specifiedType: const FullType(CoreOpenGraphObject_OpenGraphObject)), serializers.serialize(object.openGraphObject, specifiedType: const FullType(CoreOpenGraphObject)),
'accessible', 'accessible',
serializers.serialize(object.accessible, specifiedType: const FullType(bool)), serializers.serialize(object.accessible, specifiedType: const FullType(bool)),
]; ];
@ -1279,9 +1277,9 @@ class _$CoreOpenGraphObjectSerializer implements StructuredSerializer<CoreOpenGr
} }
@override @override
CoreOpenGraphObject deserialize(Serializers serializers, Iterable<Object?> serialized, CoreResource deserialize(Serializers serializers, Iterable<Object?> serialized,
{FullType specifiedType = FullType.unspecified}) { {FullType specifiedType = FullType.unspecified}) {
final result = CoreOpenGraphObjectBuilder(); final result = CoreResourceBuilder();
final iterator = serialized.iterator; final iterator = serialized.iterator;
while (iterator.moveNext()) { while (iterator.moveNext()) {
@ -1297,9 +1295,8 @@ class _$CoreOpenGraphObjectSerializer implements StructuredSerializer<CoreOpenGr
specifiedType: const FullType(BuiltMap, [FullType(String), FullType(JsonObject)]))!); specifiedType: const FullType(BuiltMap, [FullType(String), FullType(JsonObject)]))!);
break; break;
case 'openGraphObject': case 'openGraphObject':
result.openGraphObject.replace( result.openGraphObject.replace(serializers.deserialize(value,
serializers.deserialize(value, specifiedType: const FullType(CoreOpenGraphObject_OpenGraphObject))! specifiedType: const FullType(CoreOpenGraphObject))! as CoreOpenGraphObject);
as CoreOpenGraphObject_OpenGraphObject);
break; break;
case 'accessible': case 'accessible':
result.accessible = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; result.accessible = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool;
@ -1326,8 +1323,7 @@ class _$CoreCollectionSerializer implements StructuredSerializer<CoreCollection>
'name', 'name',
serializers.serialize(object.name, specifiedType: const FullType(String)), serializers.serialize(object.name, specifiedType: const FullType(String)),
'resources', 'resources',
serializers.serialize(object.resources, serializers.serialize(object.resources, specifiedType: const FullType(BuiltList, [FullType(CoreResource)])),
specifiedType: const FullType(BuiltList, [FullType(CoreOpenGraphObject)])),
]; ];
return result; return result;
@ -1352,7 +1348,7 @@ class _$CoreCollectionSerializer implements StructuredSerializer<CoreCollection>
break; break;
case 'resources': case 'resources':
result.resources.replace(serializers.deserialize(value, result.resources.replace(serializers.deserialize(value,
specifiedType: const FullType(BuiltList, [FullType(CoreOpenGraphObject)]))! as BuiltList<Object?>); specifiedType: const FullType(BuiltList, [FullType(CoreResource)]))! as BuiltList<Object?>);
break; break;
} }
} }
@ -5336,8 +5332,7 @@ class _$CoreReferenceApiResolveResponseApplicationJson_Ocs_DataSerializer
final result = <Object?>[ final result = <Object?>[
'references', 'references',
serializers.serialize(object.references, serializers.serialize(object.references,
specifiedType: const FullType(BuiltMap, specifiedType: const FullType(BuiltMap, [FullType(String), FullType(CoreReference)])),
[FullType(String), FullType(CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References)])),
]; ];
return result; return result;
@ -5357,8 +5352,7 @@ class _$CoreReferenceApiResolveResponseApplicationJson_Ocs_DataSerializer
switch (key) { switch (key) {
case 'references': case 'references':
result.references.replace(serializers.deserialize(value, result.references.replace(serializers.deserialize(value,
specifiedType: const FullType(BuiltMap, specifiedType: const FullType(BuiltMap, [FullType(String), FullType(CoreReference)]))!);
[FullType(String), FullType(CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References)]))!);
break; break;
} }
} }
@ -5479,8 +5473,7 @@ class _$CoreReferenceApiExtractResponseApplicationJson_Ocs_DataSerializer
final result = <Object?>[ final result = <Object?>[
'references', 'references',
serializers.serialize(object.references, serializers.serialize(object.references,
specifiedType: const FullType(BuiltMap, specifiedType: const FullType(BuiltMap, [FullType(String), FullType(CoreReference)])),
[FullType(String), FullType(CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References)])),
]; ];
return result; return result;
@ -5500,8 +5493,7 @@ class _$CoreReferenceApiExtractResponseApplicationJson_Ocs_DataSerializer
switch (key) { switch (key) {
case 'references': case 'references':
result.references.replace(serializers.deserialize(value, result.references.replace(serializers.deserialize(value,
specifiedType: const FullType(BuiltMap, specifiedType: const FullType(BuiltMap, [FullType(String), FullType(CoreReference)]))!);
[FullType(String), FullType(CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References)]))!);
break; break;
} }
} }
@ -10013,9 +10005,9 @@ class CoreLoginFlowV2Builder
} }
} }
abstract mixin class CoreOpenGraphObject_OpenGraphObjectInterfaceBuilder { abstract mixin class CoreOpenGraphObjectInterfaceBuilder {
void replace(CoreOpenGraphObject_OpenGraphObjectInterface other); void replace(CoreOpenGraphObjectInterface other);
void update(void Function(CoreOpenGraphObject_OpenGraphObjectInterfaceBuilder) updates); void update(void Function(CoreOpenGraphObjectInterfaceBuilder) updates);
String? get id; String? get id;
set id(String? id); set id(String? id);
@ -10032,7 +10024,7 @@ abstract mixin class CoreOpenGraphObject_OpenGraphObjectInterfaceBuilder {
set link(String? link); set link(String? link);
} }
class _$CoreOpenGraphObject_OpenGraphObject extends CoreOpenGraphObject_OpenGraphObject { class _$CoreOpenGraphObject extends CoreOpenGraphObject {
@override @override
final String id; final String id;
@override @override
@ -10044,28 +10036,27 @@ class _$CoreOpenGraphObject_OpenGraphObject extends CoreOpenGraphObject_OpenGrap
@override @override
final String link; final String link;
factory _$CoreOpenGraphObject_OpenGraphObject([void Function(CoreOpenGraphObject_OpenGraphObjectBuilder)? updates]) => factory _$CoreOpenGraphObject([void Function(CoreOpenGraphObjectBuilder)? updates]) =>
(CoreOpenGraphObject_OpenGraphObjectBuilder()..update(updates))._build(); (CoreOpenGraphObjectBuilder()..update(updates))._build();
_$CoreOpenGraphObject_OpenGraphObject._( _$CoreOpenGraphObject._({required this.id, required this.name, this.description, this.thumb, required this.link})
{required this.id, required this.name, this.description, this.thumb, required this.link})
: super._() { : super._() {
BuiltValueNullFieldError.checkNotNull(id, r'CoreOpenGraphObject_OpenGraphObject', 'id'); BuiltValueNullFieldError.checkNotNull(id, r'CoreOpenGraphObject', 'id');
BuiltValueNullFieldError.checkNotNull(name, r'CoreOpenGraphObject_OpenGraphObject', 'name'); BuiltValueNullFieldError.checkNotNull(name, r'CoreOpenGraphObject', 'name');
BuiltValueNullFieldError.checkNotNull(link, r'CoreOpenGraphObject_OpenGraphObject', 'link'); BuiltValueNullFieldError.checkNotNull(link, r'CoreOpenGraphObject', 'link');
} }
@override @override
CoreOpenGraphObject_OpenGraphObject rebuild(void Function(CoreOpenGraphObject_OpenGraphObjectBuilder) updates) => CoreOpenGraphObject rebuild(void Function(CoreOpenGraphObjectBuilder) updates) =>
(toBuilder()..update(updates)).build(); (toBuilder()..update(updates)).build();
@override @override
CoreOpenGraphObject_OpenGraphObjectBuilder toBuilder() => CoreOpenGraphObject_OpenGraphObjectBuilder()..replace(this); CoreOpenGraphObjectBuilder toBuilder() => CoreOpenGraphObjectBuilder()..replace(this);
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
if (identical(other, this)) return true; if (identical(other, this)) return true;
return other is CoreOpenGraphObject_OpenGraphObject && return other is CoreOpenGraphObject &&
id == other.id && id == other.id &&
name == other.name && name == other.name &&
description == other.description && description == other.description &&
@ -10087,7 +10078,7 @@ class _$CoreOpenGraphObject_OpenGraphObject extends CoreOpenGraphObject_OpenGrap
@override @override
String toString() { String toString() {
return (newBuiltValueToStringHelper(r'CoreOpenGraphObject_OpenGraphObject') return (newBuiltValueToStringHelper(r'CoreOpenGraphObject')
..add('id', id) ..add('id', id)
..add('name', name) ..add('name', name)
..add('description', description) ..add('description', description)
@ -10097,11 +10088,9 @@ class _$CoreOpenGraphObject_OpenGraphObject extends CoreOpenGraphObject_OpenGrap
} }
} }
class CoreOpenGraphObject_OpenGraphObjectBuilder class CoreOpenGraphObjectBuilder
implements implements Builder<CoreOpenGraphObject, CoreOpenGraphObjectBuilder>, CoreOpenGraphObjectInterfaceBuilder {
Builder<CoreOpenGraphObject_OpenGraphObject, CoreOpenGraphObject_OpenGraphObjectBuilder>, _$CoreOpenGraphObject? _$v;
CoreOpenGraphObject_OpenGraphObjectInterfaceBuilder {
_$CoreOpenGraphObject_OpenGraphObject? _$v;
String? _id; String? _id;
String? get id => _$this._id; String? get id => _$this._id;
@ -10123,9 +10112,9 @@ class CoreOpenGraphObject_OpenGraphObjectBuilder
String? get link => _$this._link; String? get link => _$this._link;
set link(covariant String? link) => _$this._link = link; set link(covariant String? link) => _$this._link = link;
CoreOpenGraphObject_OpenGraphObjectBuilder(); CoreOpenGraphObjectBuilder();
CoreOpenGraphObject_OpenGraphObjectBuilder get _$this { CoreOpenGraphObjectBuilder get _$this {
final $v = _$v; final $v = _$v;
if ($v != null) { if ($v != null) {
_id = $v.id; _id = $v.id;
@ -10139,81 +10128,80 @@ class CoreOpenGraphObject_OpenGraphObjectBuilder
} }
@override @override
void replace(covariant CoreOpenGraphObject_OpenGraphObject other) { void replace(covariant CoreOpenGraphObject other) {
ArgumentError.checkNotNull(other, 'other'); ArgumentError.checkNotNull(other, 'other');
_$v = other as _$CoreOpenGraphObject_OpenGraphObject; _$v = other as _$CoreOpenGraphObject;
} }
@override @override
void update(void Function(CoreOpenGraphObject_OpenGraphObjectBuilder)? updates) { void update(void Function(CoreOpenGraphObjectBuilder)? updates) {
if (updates != null) updates(this); if (updates != null) updates(this);
} }
@override @override
CoreOpenGraphObject_OpenGraphObject build() => _build(); CoreOpenGraphObject build() => _build();
_$CoreOpenGraphObject_OpenGraphObject _build() { _$CoreOpenGraphObject _build() {
final _$result = _$v ?? final _$result = _$v ??
_$CoreOpenGraphObject_OpenGraphObject._( _$CoreOpenGraphObject._(
id: BuiltValueNullFieldError.checkNotNull(id, r'CoreOpenGraphObject_OpenGraphObject', 'id'), id: BuiltValueNullFieldError.checkNotNull(id, r'CoreOpenGraphObject', 'id'),
name: BuiltValueNullFieldError.checkNotNull(name, r'CoreOpenGraphObject_OpenGraphObject', 'name'), name: BuiltValueNullFieldError.checkNotNull(name, r'CoreOpenGraphObject', 'name'),
description: description, description: description,
thumb: thumb, thumb: thumb,
link: BuiltValueNullFieldError.checkNotNull(link, r'CoreOpenGraphObject_OpenGraphObject', 'link')); link: BuiltValueNullFieldError.checkNotNull(link, r'CoreOpenGraphObject', 'link'));
replace(_$result); replace(_$result);
return _$result; return _$result;
} }
} }
abstract mixin class CoreOpenGraphObjectInterfaceBuilder { abstract mixin class CoreResourceInterfaceBuilder {
void replace(CoreOpenGraphObjectInterface other); void replace(CoreResourceInterface other);
void update(void Function(CoreOpenGraphObjectInterfaceBuilder) updates); void update(void Function(CoreResourceInterfaceBuilder) updates);
String? get richObjectType; String? get richObjectType;
set richObjectType(String? richObjectType); set richObjectType(String? richObjectType);
MapBuilder<String, JsonObject> get richObject; MapBuilder<String, JsonObject> get richObject;
set richObject(MapBuilder<String, JsonObject>? richObject); set richObject(MapBuilder<String, JsonObject>? richObject);
CoreOpenGraphObject_OpenGraphObjectBuilder get openGraphObject; CoreOpenGraphObjectBuilder get openGraphObject;
set openGraphObject(CoreOpenGraphObject_OpenGraphObjectBuilder? openGraphObject); set openGraphObject(CoreOpenGraphObjectBuilder? openGraphObject);
bool? get accessible; bool? get accessible;
set accessible(bool? accessible); set accessible(bool? accessible);
} }
class _$CoreOpenGraphObject extends CoreOpenGraphObject { class _$CoreResource extends CoreResource {
@override @override
final String richObjectType; final String richObjectType;
@override @override
final BuiltMap<String, JsonObject> richObject; final BuiltMap<String, JsonObject> richObject;
@override @override
final CoreOpenGraphObject_OpenGraphObject openGraphObject; final CoreOpenGraphObject openGraphObject;
@override @override
final bool accessible; final bool accessible;
factory _$CoreOpenGraphObject([void Function(CoreOpenGraphObjectBuilder)? updates]) => factory _$CoreResource([void Function(CoreResourceBuilder)? updates]) =>
(CoreOpenGraphObjectBuilder()..update(updates))._build(); (CoreResourceBuilder()..update(updates))._build();
_$CoreOpenGraphObject._( _$CoreResource._(
{required this.richObjectType, required this.richObject, required this.openGraphObject, required this.accessible}) {required this.richObjectType, required this.richObject, required this.openGraphObject, required this.accessible})
: super._() { : super._() {
BuiltValueNullFieldError.checkNotNull(richObjectType, r'CoreOpenGraphObject', 'richObjectType'); BuiltValueNullFieldError.checkNotNull(richObjectType, r'CoreResource', 'richObjectType');
BuiltValueNullFieldError.checkNotNull(richObject, r'CoreOpenGraphObject', 'richObject'); BuiltValueNullFieldError.checkNotNull(richObject, r'CoreResource', 'richObject');
BuiltValueNullFieldError.checkNotNull(openGraphObject, r'CoreOpenGraphObject', 'openGraphObject'); BuiltValueNullFieldError.checkNotNull(openGraphObject, r'CoreResource', 'openGraphObject');
BuiltValueNullFieldError.checkNotNull(accessible, r'CoreOpenGraphObject', 'accessible'); BuiltValueNullFieldError.checkNotNull(accessible, r'CoreResource', 'accessible');
} }
@override @override
CoreOpenGraphObject rebuild(void Function(CoreOpenGraphObjectBuilder) updates) => CoreResource rebuild(void Function(CoreResourceBuilder) updates) => (toBuilder()..update(updates)).build();
(toBuilder()..update(updates)).build();
@override @override
CoreOpenGraphObjectBuilder toBuilder() => CoreOpenGraphObjectBuilder()..replace(this); CoreResourceBuilder toBuilder() => CoreResourceBuilder()..replace(this);
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
if (identical(other, this)) return true; if (identical(other, this)) return true;
return other is CoreOpenGraphObject && return other is CoreResource &&
richObjectType == other.richObjectType && richObjectType == other.richObjectType &&
richObject == other.richObject && richObject == other.richObject &&
openGraphObject == other.openGraphObject && openGraphObject == other.openGraphObject &&
@ -10233,7 +10221,7 @@ class _$CoreOpenGraphObject extends CoreOpenGraphObject {
@override @override
String toString() { String toString() {
return (newBuiltValueToStringHelper(r'CoreOpenGraphObject') return (newBuiltValueToStringHelper(r'CoreResource')
..add('richObjectType', richObjectType) ..add('richObjectType', richObjectType)
..add('richObject', richObject) ..add('richObject', richObject)
..add('openGraphObject', openGraphObject) ..add('openGraphObject', openGraphObject)
@ -10242,9 +10230,8 @@ class _$CoreOpenGraphObject extends CoreOpenGraphObject {
} }
} }
class CoreOpenGraphObjectBuilder class CoreResourceBuilder implements Builder<CoreResource, CoreResourceBuilder>, CoreResourceInterfaceBuilder {
implements Builder<CoreOpenGraphObject, CoreOpenGraphObjectBuilder>, CoreOpenGraphObjectInterfaceBuilder { _$CoreResource? _$v;
_$CoreOpenGraphObject? _$v;
String? _richObjectType; String? _richObjectType;
String? get richObjectType => _$this._richObjectType; String? get richObjectType => _$this._richObjectType;
@ -10254,19 +10241,18 @@ class CoreOpenGraphObjectBuilder
MapBuilder<String, JsonObject> get richObject => _$this._richObject ??= MapBuilder<String, JsonObject>(); MapBuilder<String, JsonObject> get richObject => _$this._richObject ??= MapBuilder<String, JsonObject>();
set richObject(covariant MapBuilder<String, JsonObject>? richObject) => _$this._richObject = richObject; set richObject(covariant MapBuilder<String, JsonObject>? richObject) => _$this._richObject = richObject;
CoreOpenGraphObject_OpenGraphObjectBuilder? _openGraphObject; CoreOpenGraphObjectBuilder? _openGraphObject;
CoreOpenGraphObject_OpenGraphObjectBuilder get openGraphObject => CoreOpenGraphObjectBuilder get openGraphObject => _$this._openGraphObject ??= CoreOpenGraphObjectBuilder();
_$this._openGraphObject ??= CoreOpenGraphObject_OpenGraphObjectBuilder(); set openGraphObject(covariant CoreOpenGraphObjectBuilder? openGraphObject) =>
set openGraphObject(covariant CoreOpenGraphObject_OpenGraphObjectBuilder? openGraphObject) =>
_$this._openGraphObject = openGraphObject; _$this._openGraphObject = openGraphObject;
bool? _accessible; bool? _accessible;
bool? get accessible => _$this._accessible; bool? get accessible => _$this._accessible;
set accessible(covariant bool? accessible) => _$this._accessible = accessible; set accessible(covariant bool? accessible) => _$this._accessible = accessible;
CoreOpenGraphObjectBuilder(); CoreResourceBuilder();
CoreOpenGraphObjectBuilder get _$this { CoreResourceBuilder get _$this {
final $v = _$v; final $v = _$v;
if ($v != null) { if ($v != null) {
_richObjectType = $v.richObjectType; _richObjectType = $v.richObjectType;
@ -10279,29 +10265,28 @@ class CoreOpenGraphObjectBuilder
} }
@override @override
void replace(covariant CoreOpenGraphObject other) { void replace(covariant CoreResource other) {
ArgumentError.checkNotNull(other, 'other'); ArgumentError.checkNotNull(other, 'other');
_$v = other as _$CoreOpenGraphObject; _$v = other as _$CoreResource;
} }
@override @override
void update(void Function(CoreOpenGraphObjectBuilder)? updates) { void update(void Function(CoreResourceBuilder)? updates) {
if (updates != null) updates(this); if (updates != null) updates(this);
} }
@override @override
CoreOpenGraphObject build() => _build(); CoreResource build() => _build();
_$CoreOpenGraphObject _build() { _$CoreResource _build() {
_$CoreOpenGraphObject _$result; _$CoreResource _$result;
try { try {
_$result = _$v ?? _$result = _$v ??
_$CoreOpenGraphObject._( _$CoreResource._(
richObjectType: richObjectType: BuiltValueNullFieldError.checkNotNull(richObjectType, r'CoreResource', 'richObjectType'),
BuiltValueNullFieldError.checkNotNull(richObjectType, r'CoreOpenGraphObject', 'richObjectType'),
richObject: richObject.build(), richObject: richObject.build(),
openGraphObject: openGraphObject.build(), openGraphObject: openGraphObject.build(),
accessible: BuiltValueNullFieldError.checkNotNull(accessible, r'CoreOpenGraphObject', 'accessible')); accessible: BuiltValueNullFieldError.checkNotNull(accessible, r'CoreResource', 'accessible'));
} catch (_) { } catch (_) {
late String _$failedField; late String _$failedField;
try { try {
@ -10310,7 +10295,7 @@ class CoreOpenGraphObjectBuilder
_$failedField = 'openGraphObject'; _$failedField = 'openGraphObject';
openGraphObject.build(); openGraphObject.build();
} catch (e) { } catch (e) {
throw BuiltValueNestedFieldError(r'CoreOpenGraphObject', _$failedField, e.toString()); throw BuiltValueNestedFieldError(r'CoreResource', _$failedField, e.toString());
} }
rethrow; rethrow;
} }
@ -10328,8 +10313,8 @@ abstract mixin class CoreCollectionInterfaceBuilder {
String? get name; String? get name;
set name(String? name); set name(String? name);
ListBuilder<CoreOpenGraphObject> get resources; ListBuilder<CoreResource> get resources;
set resources(ListBuilder<CoreOpenGraphObject>? resources); set resources(ListBuilder<CoreResource>? resources);
} }
class _$CoreCollection extends CoreCollection { class _$CoreCollection extends CoreCollection {
@ -10338,7 +10323,7 @@ class _$CoreCollection extends CoreCollection {
@override @override
final String name; final String name;
@override @override
final BuiltList<CoreOpenGraphObject> resources; final BuiltList<CoreResource> resources;
factory _$CoreCollection([void Function(CoreCollectionBuilder)? updates]) => factory _$CoreCollection([void Function(CoreCollectionBuilder)? updates]) =>
(CoreCollectionBuilder()..update(updates))._build(); (CoreCollectionBuilder()..update(updates))._build();
@ -10392,9 +10377,9 @@ class CoreCollectionBuilder implements Builder<CoreCollection, CoreCollectionBui
String? get name => _$this._name; String? get name => _$this._name;
set name(covariant String? name) => _$this._name = name; set name(covariant String? name) => _$this._name = name;
ListBuilder<CoreOpenGraphObject>? _resources; ListBuilder<CoreResource>? _resources;
ListBuilder<CoreOpenGraphObject> get resources => _$this._resources ??= ListBuilder<CoreOpenGraphObject>(); ListBuilder<CoreResource> get resources => _$this._resources ??= ListBuilder<CoreResource>();
set resources(covariant ListBuilder<CoreOpenGraphObject>? resources) => _$this._resources = resources; set resources(covariant ListBuilder<CoreResource>? resources) => _$this._resources = resources;
CoreCollectionBuilder(); CoreCollectionBuilder();
@ -20533,145 +20518,17 @@ class CoreReferenceApiResolveOneResponseApplicationJsonBuilder
} }
} }
class _$CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References
extends CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References {
@override
final JsonObject data;
@override
final CoreReference? reference;
@override
final JsonObject? jsonObject;
factory _$CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References(
[void Function(CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_ReferencesBuilder)? updates]) =>
(CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_ReferencesBuilder()..update(updates))._build();
_$CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References._(
{required this.data, this.reference, this.jsonObject})
: super._() {
BuiltValueNullFieldError.checkNotNull(
data, r'CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References', 'data');
}
@override
CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References rebuild(
void Function(CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_ReferencesBuilder) updates) =>
(toBuilder()..update(updates)).build();
@override
CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_ReferencesBuilder toBuilder() =>
CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_ReferencesBuilder()..replace(this);
@override
bool operator ==(Object other) {
if (identical(other, this)) return true;
return other is CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References &&
data == other.data &&
reference == other.reference &&
jsonObject == other.jsonObject;
}
@override
int get hashCode {
var _$hash = 0;
_$hash = $jc(_$hash, data.hashCode);
_$hash = $jc(_$hash, reference.hashCode);
_$hash = $jc(_$hash, jsonObject.hashCode);
_$hash = $jf(_$hash);
return _$hash;
}
@override
String toString() {
return (newBuiltValueToStringHelper(r'CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References')
..add('data', data)
..add('reference', reference)
..add('jsonObject', jsonObject))
.toString();
}
}
class CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_ReferencesBuilder
implements
Builder<CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References,
CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_ReferencesBuilder> {
_$CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References? _$v;
JsonObject? _data;
JsonObject? get data => _$this._data;
set data(JsonObject? data) => _$this._data = data;
CoreReferenceBuilder? _reference;
CoreReferenceBuilder get reference => _$this._reference ??= CoreReferenceBuilder();
set reference(CoreReferenceBuilder? reference) => _$this._reference = reference;
JsonObject? _jsonObject;
JsonObject? get jsonObject => _$this._jsonObject;
set jsonObject(JsonObject? jsonObject) => _$this._jsonObject = jsonObject;
CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_ReferencesBuilder();
CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_ReferencesBuilder get _$this {
final $v = _$v;
if ($v != null) {
_data = $v.data;
_reference = $v.reference?.toBuilder();
_jsonObject = $v.jsonObject;
_$v = null;
}
return this;
}
@override
void replace(CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References other) {
ArgumentError.checkNotNull(other, 'other');
_$v = other as _$CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References;
}
@override
void update(void Function(CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_ReferencesBuilder)? updates) {
if (updates != null) updates(this);
}
@override
CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References build() => _build();
_$CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References _build() {
_$CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References _$result;
try {
_$result = _$v ??
_$CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References._(
data: BuiltValueNullFieldError.checkNotNull(
data, r'CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References', 'data'),
reference: _reference?.build(),
jsonObject: jsonObject);
} catch (_) {
late String _$failedField;
try {
_$failedField = 'reference';
_reference?.build();
} catch (e) {
throw BuiltValueNestedFieldError(
r'CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References', _$failedField, e.toString());
}
rethrow;
}
replace(_$result);
return _$result;
}
}
abstract mixin class CoreReferenceApiResolveResponseApplicationJson_Ocs_DataInterfaceBuilder { abstract mixin class CoreReferenceApiResolveResponseApplicationJson_Ocs_DataInterfaceBuilder {
void replace(CoreReferenceApiResolveResponseApplicationJson_Ocs_DataInterface other); void replace(CoreReferenceApiResolveResponseApplicationJson_Ocs_DataInterface other);
void update(void Function(CoreReferenceApiResolveResponseApplicationJson_Ocs_DataInterfaceBuilder) updates); void update(void Function(CoreReferenceApiResolveResponseApplicationJson_Ocs_DataInterfaceBuilder) updates);
MapBuilder<String, CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References> get references; MapBuilder<String, CoreReference> get references;
set references(MapBuilder<String, CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References>? references); set references(MapBuilder<String, CoreReference>? references);
} }
class _$CoreReferenceApiResolveResponseApplicationJson_Ocs_Data class _$CoreReferenceApiResolveResponseApplicationJson_Ocs_Data
extends CoreReferenceApiResolveResponseApplicationJson_Ocs_Data { extends CoreReferenceApiResolveResponseApplicationJson_Ocs_Data {
@override @override
final BuiltMap<String, CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References> references; final BuiltMap<String, CoreReference> references;
factory _$CoreReferenceApiResolveResponseApplicationJson_Ocs_Data( factory _$CoreReferenceApiResolveResponseApplicationJson_Ocs_Data(
[void Function(CoreReferenceApiResolveResponseApplicationJson_Ocs_DataBuilder)? updates]) => [void Function(CoreReferenceApiResolveResponseApplicationJson_Ocs_DataBuilder)? updates]) =>
@ -20720,13 +20577,9 @@ class CoreReferenceApiResolveResponseApplicationJson_Ocs_DataBuilder
CoreReferenceApiResolveResponseApplicationJson_Ocs_DataInterfaceBuilder { CoreReferenceApiResolveResponseApplicationJson_Ocs_DataInterfaceBuilder {
_$CoreReferenceApiResolveResponseApplicationJson_Ocs_Data? _$v; _$CoreReferenceApiResolveResponseApplicationJson_Ocs_Data? _$v;
MapBuilder<String, CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References>? _references; MapBuilder<String, CoreReference>? _references;
MapBuilder<String, CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References> get references => MapBuilder<String, CoreReference> get references => _$this._references ??= MapBuilder<String, CoreReference>();
_$this._references ??= MapBuilder<String, CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References>(); set references(covariant MapBuilder<String, CoreReference>? references) => _$this._references = references;
set references(
covariant MapBuilder<String, CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References>?
references) =>
_$this._references = references;
CoreReferenceApiResolveResponseApplicationJson_Ocs_DataBuilder(); CoreReferenceApiResolveResponseApplicationJson_Ocs_DataBuilder();
@ -20999,145 +20852,17 @@ class CoreReferenceApiResolveResponseApplicationJsonBuilder
} }
} }
class _$CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References
extends CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References {
@override
final JsonObject data;
@override
final CoreReference? reference;
@override
final JsonObject? jsonObject;
factory _$CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References(
[void Function(CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_ReferencesBuilder)? updates]) =>
(CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_ReferencesBuilder()..update(updates))._build();
_$CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References._(
{required this.data, this.reference, this.jsonObject})
: super._() {
BuiltValueNullFieldError.checkNotNull(
data, r'CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References', 'data');
}
@override
CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References rebuild(
void Function(CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_ReferencesBuilder) updates) =>
(toBuilder()..update(updates)).build();
@override
CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_ReferencesBuilder toBuilder() =>
CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_ReferencesBuilder()..replace(this);
@override
bool operator ==(Object other) {
if (identical(other, this)) return true;
return other is CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References &&
data == other.data &&
reference == other.reference &&
jsonObject == other.jsonObject;
}
@override
int get hashCode {
var _$hash = 0;
_$hash = $jc(_$hash, data.hashCode);
_$hash = $jc(_$hash, reference.hashCode);
_$hash = $jc(_$hash, jsonObject.hashCode);
_$hash = $jf(_$hash);
return _$hash;
}
@override
String toString() {
return (newBuiltValueToStringHelper(r'CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References')
..add('data', data)
..add('reference', reference)
..add('jsonObject', jsonObject))
.toString();
}
}
class CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_ReferencesBuilder
implements
Builder<CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References,
CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_ReferencesBuilder> {
_$CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References? _$v;
JsonObject? _data;
JsonObject? get data => _$this._data;
set data(JsonObject? data) => _$this._data = data;
CoreReferenceBuilder? _reference;
CoreReferenceBuilder get reference => _$this._reference ??= CoreReferenceBuilder();
set reference(CoreReferenceBuilder? reference) => _$this._reference = reference;
JsonObject? _jsonObject;
JsonObject? get jsonObject => _$this._jsonObject;
set jsonObject(JsonObject? jsonObject) => _$this._jsonObject = jsonObject;
CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_ReferencesBuilder();
CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_ReferencesBuilder get _$this {
final $v = _$v;
if ($v != null) {
_data = $v.data;
_reference = $v.reference?.toBuilder();
_jsonObject = $v.jsonObject;
_$v = null;
}
return this;
}
@override
void replace(CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References other) {
ArgumentError.checkNotNull(other, 'other');
_$v = other as _$CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References;
}
@override
void update(void Function(CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_ReferencesBuilder)? updates) {
if (updates != null) updates(this);
}
@override
CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References build() => _build();
_$CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References _build() {
_$CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References _$result;
try {
_$result = _$v ??
_$CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References._(
data: BuiltValueNullFieldError.checkNotNull(
data, r'CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References', 'data'),
reference: _reference?.build(),
jsonObject: jsonObject);
} catch (_) {
late String _$failedField;
try {
_$failedField = 'reference';
_reference?.build();
} catch (e) {
throw BuiltValueNestedFieldError(
r'CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References', _$failedField, e.toString());
}
rethrow;
}
replace(_$result);
return _$result;
}
}
abstract mixin class CoreReferenceApiExtractResponseApplicationJson_Ocs_DataInterfaceBuilder { abstract mixin class CoreReferenceApiExtractResponseApplicationJson_Ocs_DataInterfaceBuilder {
void replace(CoreReferenceApiExtractResponseApplicationJson_Ocs_DataInterface other); void replace(CoreReferenceApiExtractResponseApplicationJson_Ocs_DataInterface other);
void update(void Function(CoreReferenceApiExtractResponseApplicationJson_Ocs_DataInterfaceBuilder) updates); void update(void Function(CoreReferenceApiExtractResponseApplicationJson_Ocs_DataInterfaceBuilder) updates);
MapBuilder<String, CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References> get references; MapBuilder<String, CoreReference> get references;
set references(MapBuilder<String, CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References>? references); set references(MapBuilder<String, CoreReference>? references);
} }
class _$CoreReferenceApiExtractResponseApplicationJson_Ocs_Data class _$CoreReferenceApiExtractResponseApplicationJson_Ocs_Data
extends CoreReferenceApiExtractResponseApplicationJson_Ocs_Data { extends CoreReferenceApiExtractResponseApplicationJson_Ocs_Data {
@override @override
final BuiltMap<String, CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References> references; final BuiltMap<String, CoreReference> references;
factory _$CoreReferenceApiExtractResponseApplicationJson_Ocs_Data( factory _$CoreReferenceApiExtractResponseApplicationJson_Ocs_Data(
[void Function(CoreReferenceApiExtractResponseApplicationJson_Ocs_DataBuilder)? updates]) => [void Function(CoreReferenceApiExtractResponseApplicationJson_Ocs_DataBuilder)? updates]) =>
@ -21186,13 +20911,9 @@ class CoreReferenceApiExtractResponseApplicationJson_Ocs_DataBuilder
CoreReferenceApiExtractResponseApplicationJson_Ocs_DataInterfaceBuilder { CoreReferenceApiExtractResponseApplicationJson_Ocs_DataInterfaceBuilder {
_$CoreReferenceApiExtractResponseApplicationJson_Ocs_Data? _$v; _$CoreReferenceApiExtractResponseApplicationJson_Ocs_Data? _$v;
MapBuilder<String, CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References>? _references; MapBuilder<String, CoreReference>? _references;
MapBuilder<String, CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References> get references => MapBuilder<String, CoreReference> get references => _$this._references ??= MapBuilder<String, CoreReference>();
_$this._references ??= MapBuilder<String, CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References>(); set references(covariant MapBuilder<String, CoreReference>? references) => _$this._references = references;
set references(
covariant MapBuilder<String, CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References>?
references) =>
_$this._references = references;
CoreReferenceApiExtractResponseApplicationJson_Ocs_DataBuilder(); CoreReferenceApiExtractResponseApplicationJson_Ocs_DataBuilder();

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

@ -74,7 +74,7 @@
"resources": { "resources": {
"type": "array", "type": "array",
"items": { "items": {
"$ref": "#/components/schemas/OpenGraphObject" "$ref": "#/components/schemas/Resource"
} }
} }
} }
@ -225,24 +225,6 @@
} }
}, },
"OpenGraphObject": { "OpenGraphObject": {
"type": "object",
"required": [
"richObjectType",
"richObject",
"openGraphObject",
"accessible"
],
"properties": {
"richObjectType": {
"type": "string"
},
"richObject": {
"type": "object",
"additionalProperties": {
"type": "object"
}
},
"openGraphObject": {
"type": "object", "type": "object",
"required": [ "required": [
"id", "id",
@ -271,11 +253,6 @@
} }
} }
}, },
"accessible": {
"type": "boolean"
}
}
},
"Reference": { "Reference": {
"type": "object", "type": "object",
"required": [ "required": [
@ -334,6 +311,32 @@
} }
} }
}, },
"Resource": {
"type": "object",
"required": [
"richObjectType",
"richObject",
"openGraphObject",
"accessible"
],
"properties": {
"richObjectType": {
"type": "string"
},
"richObject": {
"type": "object",
"additionalProperties": {
"type": "object"
}
},
"openGraphObject": {
"$ref": "#/components/schemas/OpenGraphObject"
},
"accessible": {
"type": "boolean"
}
}
},
"Status": { "Status": {
"type": "object", "type": "object",
"required": [ "required": [
@ -4015,15 +4018,8 @@
"references": { "references": {
"type": "object", "type": "object",
"additionalProperties": { "additionalProperties": {
"nullable": true, "$ref": "#/components/schemas/Reference",
"oneOf": [ "nullable": true
{
"$ref": "#/components/schemas/Reference"
},
{
"type": "object"
}
]
} }
} }
} }
@ -4122,15 +4118,8 @@
"references": { "references": {
"type": "object", "type": "object",
"additionalProperties": { "additionalProperties": {
"nullable": true, "$ref": "#/components/schemas/Reference",
"oneOf": [ "nullable": true
{
"$ref": "#/components/schemas/Reference"
},
{
"type": "object"
}
]
} }
} }
} }

9
packages/nextcloud/lib/src/api/provisioning_api.openapi.dart

@ -3525,6 +3525,7 @@ abstract class ProvisioningApiUserDetailsQuota_Quota
// coverage:ignore-end // coverage:ignore-end
JsonObject get data; JsonObject get data;
num? get $num; num? get $num;
int? get $int;
String? get string; String? get string;
@BuiltValueSerializer(custom: true) @BuiltValueSerializer(custom: true)
static Serializer<ProvisioningApiUserDetailsQuota_Quota> get serializer => static Serializer<ProvisioningApiUserDetailsQuota_Quota> get serializer =>
@ -3557,10 +3558,16 @@ class _$ProvisioningApiUserDetailsQuota_QuotaSerializer
try { try {
result._$num = data as num?; result._$num = data as num?;
} catch (_) {} } catch (_) {}
try {
result._$int = data as int?;
} catch (_) {}
try { try {
result._string = data as String?; result._string = data as String?;
} catch (_) {} } catch (_) {}
assert([result._$num, result._string].where((final x) => x != null).isNotEmpty, 'Need oneOf for ${result._data}'); assert(
[result._$num, result._$int, result._string].where((final x) => x != null).isNotEmpty,
'Need oneOf for ${result._data}',
);
return result.build(); return result.build();
} }
} }

13
packages/nextcloud/lib/src/api/provisioning_api.openapi.g.dart

@ -11361,13 +11361,15 @@ class _$ProvisioningApiUserDetailsQuota_Quota extends ProvisioningApiUserDetails
@override @override
final num? $num; final num? $num;
@override @override
final int? $int;
@override
final String? string; final String? string;
factory _$ProvisioningApiUserDetailsQuota_Quota( factory _$ProvisioningApiUserDetailsQuota_Quota(
[void Function(ProvisioningApiUserDetailsQuota_QuotaBuilder)? updates]) => [void Function(ProvisioningApiUserDetailsQuota_QuotaBuilder)? updates]) =>
(ProvisioningApiUserDetailsQuota_QuotaBuilder()..update(updates))._build(); (ProvisioningApiUserDetailsQuota_QuotaBuilder()..update(updates))._build();
_$ProvisioningApiUserDetailsQuota_Quota._({required this.data, this.$num, this.string}) : super._() { _$ProvisioningApiUserDetailsQuota_Quota._({required this.data, this.$num, this.$int, this.string}) : super._() {
BuiltValueNullFieldError.checkNotNull(data, r'ProvisioningApiUserDetailsQuota_Quota', 'data'); BuiltValueNullFieldError.checkNotNull(data, r'ProvisioningApiUserDetailsQuota_Quota', 'data');
} }
@ -11385,6 +11387,7 @@ class _$ProvisioningApiUserDetailsQuota_Quota extends ProvisioningApiUserDetails
return other is ProvisioningApiUserDetailsQuota_Quota && return other is ProvisioningApiUserDetailsQuota_Quota &&
data == other.data && data == other.data &&
$num == other.$num && $num == other.$num &&
$int == other.$int &&
string == other.string; string == other.string;
} }
@ -11393,6 +11396,7 @@ class _$ProvisioningApiUserDetailsQuota_Quota extends ProvisioningApiUserDetails
var _$hash = 0; var _$hash = 0;
_$hash = $jc(_$hash, data.hashCode); _$hash = $jc(_$hash, data.hashCode);
_$hash = $jc(_$hash, $num.hashCode); _$hash = $jc(_$hash, $num.hashCode);
_$hash = $jc(_$hash, $int.hashCode);
_$hash = $jc(_$hash, string.hashCode); _$hash = $jc(_$hash, string.hashCode);
_$hash = $jf(_$hash); _$hash = $jf(_$hash);
return _$hash; return _$hash;
@ -11403,6 +11407,7 @@ class _$ProvisioningApiUserDetailsQuota_Quota extends ProvisioningApiUserDetails
return (newBuiltValueToStringHelper(r'ProvisioningApiUserDetailsQuota_Quota') return (newBuiltValueToStringHelper(r'ProvisioningApiUserDetailsQuota_Quota')
..add('data', data) ..add('data', data)
..add('\$num', $num) ..add('\$num', $num)
..add('\$int', $int)
..add('string', string)) ..add('string', string))
.toString(); .toString();
} }
@ -11420,6 +11425,10 @@ class ProvisioningApiUserDetailsQuota_QuotaBuilder
num? get $num => _$this._$num; num? get $num => _$this._$num;
set $num(num? $num) => _$this._$num = $num; set $num(num? $num) => _$this._$num = $num;
int? _$int;
int? get $int => _$this._$int;
set $int(int? $int) => _$this._$int = $int;
String? _string; String? _string;
String? get string => _$this._string; String? get string => _$this._string;
set string(String? string) => _$this._string = string; set string(String? string) => _$this._string = string;
@ -11431,6 +11440,7 @@ class ProvisioningApiUserDetailsQuota_QuotaBuilder
if ($v != null) { if ($v != null) {
_data = $v.data; _data = $v.data;
_$num = $v.$num; _$num = $v.$num;
_$int = $v.$int;
_string = $v.string; _string = $v.string;
_$v = null; _$v = null;
} }
@ -11456,6 +11466,7 @@ class ProvisioningApiUserDetailsQuota_QuotaBuilder
_$ProvisioningApiUserDetailsQuota_Quota._( _$ProvisioningApiUserDetailsQuota_Quota._(
data: BuiltValueNullFieldError.checkNotNull(data, r'ProvisioningApiUserDetailsQuota_Quota', 'data'), data: BuiltValueNullFieldError.checkNotNull(data, r'ProvisioningApiUserDetailsQuota_Quota', 'data'),
$num: $num, $num: $num,
$int: $int,
string: string); string: string);
replace(_$result); replace(_$result);
return _$result; return _$result;

4
packages/nextcloud/lib/src/api/provisioning_api.openapi.json

@ -517,6 +517,10 @@
"type": "number", "type": "number",
"format": "float" "format": "float"
}, },
{
"type": "integer",
"format": "int64"
},
{ {
"type": "string" "type": "string"
} }

Loading…
Cancel
Save