From 68b1eef8fc04a77390893f87a2cc5cbee6663467 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Mon, 18 Sep 2023 12:42:27 +0200 Subject: [PATCH] fix(nextcloud): Fix core and provisioning_api specs Signed-off-by: jld3103 --- external/nextcloud-server | 2 +- .../nextcloud/lib/src/api/core.openapi.dart | 231 +-------- .../nextcloud/lib/src/api/core.openapi.g.dart | 485 ++++-------------- .../nextcloud/lib/src/api/core.openapi.json | 107 ++-- .../lib/src/api/provisioning_api.openapi.dart | 9 +- .../src/api/provisioning_api.openapi.g.dart | 13 +- .../lib/src/api/provisioning_api.openapi.json | 4 + 7 files changed, 202 insertions(+), 649 deletions(-) diff --git a/external/nextcloud-server b/external/nextcloud-server index eb1b09da..5d20baec 160000 --- a/external/nextcloud-server +++ b/external/nextcloud-server @@ -1 +1 @@ -Subproject commit eb1b09da6728d300aecf65fb28d3d49e546a9bee +Subproject commit 5d20baec01daec7b7aefe7cb17f8db5611dcd176 diff --git a/packages/nextcloud/lib/src/api/core.openapi.dart b/packages/nextcloud/lib/src/api/core.openapi.dart index 3de233e4..cf3c6fbe 100644 --- a/packages/nextcloud/lib/src/api/core.openapi.dart +++ b/packages/nextcloud/lib/src/api/core.openapi.dart @@ -2716,75 +2716,67 @@ abstract class CoreLoginFlowV2 implements CoreLoginFlowV2Interface, Built { - factory CoreOpenGraphObject_OpenGraphObject([final void Function(CoreOpenGraphObject_OpenGraphObjectBuilder)? b]) = - _$CoreOpenGraphObject_OpenGraphObject; +abstract class CoreOpenGraphObject + implements CoreOpenGraphObjectInterface, Built { + factory CoreOpenGraphObject([final void Function(CoreOpenGraphObjectBuilder)? b]) = _$CoreOpenGraphObject; // coverage:ignore-start - const CoreOpenGraphObject_OpenGraphObject._(); + const CoreOpenGraphObject._(); // coverage:ignore-end // coverage:ignore-start - factory CoreOpenGraphObject_OpenGraphObject.fromJson(final Map json) => + factory CoreOpenGraphObject.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => - _$coreOpenGraphObjectOpenGraphObjectSerializer; + static Serializer get serializer => _$coreOpenGraphObjectSerializer; } @BuiltValue(instantiable: false) -abstract interface class CoreOpenGraphObjectInterface { +abstract interface class CoreResourceInterface { String get richObjectType; BuiltMap get richObject; - CoreOpenGraphObject_OpenGraphObject get openGraphObject; + CoreOpenGraphObject get openGraphObject; bool get accessible; - CoreOpenGraphObjectInterface rebuild(final void Function(CoreOpenGraphObjectInterfaceBuilder) updates); - CoreOpenGraphObjectInterfaceBuilder toBuilder(); + CoreResourceInterface rebuild(final void Function(CoreResourceInterfaceBuilder) updates); + CoreResourceInterfaceBuilder toBuilder(); } -abstract class CoreOpenGraphObject - implements CoreOpenGraphObjectInterface, Built { - factory CoreOpenGraphObject([final void Function(CoreOpenGraphObjectBuilder)? b]) = _$CoreOpenGraphObject; +abstract class CoreResource implements CoreResourceInterface, Built { + factory CoreResource([final void Function(CoreResourceBuilder)? b]) = _$CoreResource; // coverage:ignore-start - const CoreOpenGraphObject._(); + const CoreResource._(); // coverage:ignore-end // coverage:ignore-start - factory CoreOpenGraphObject.fromJson(final Map json) => - _jsonSerializers.deserializeWith(serializer, json)!; + factory CoreResource.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end - static Serializer get serializer => _$coreOpenGraphObjectSerializer; + static Serializer get serializer => _$coreResourceSerializer; } @BuiltValue(instantiable: false) abstract interface class CoreCollectionInterface { int get id; String get name; - BuiltList get resources; + BuiltList get resources; CoreCollectionInterface rebuild(final void Function(CoreCollectionInterfaceBuilder) updates); CoreCollectionInterfaceBuilder toBuilder(); } @@ -5708,81 +5700,9 @@ abstract class CoreReferenceApiResolveOneResponseApplicationJson _$coreReferenceApiResolveOneResponseApplicationJsonSerializer; } -abstract class CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References - implements - Built { - 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 json, - ) => - _jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end - - // coverage:ignore-start - Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end - JsonObject get data; - CoreReference? get reference; - JsonObject? get jsonObject; - @BuiltValueSerializer(custom: true) - static Serializer get serializer => - _$CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_ReferencesSerializer(); -} - -class _$CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_ReferencesSerializer - implements PrimitiveSerializer { - @override - final Iterable 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) abstract interface class CoreReferenceApiResolveResponseApplicationJson_Ocs_DataInterface { - BuiltMap get references; + BuiltMap get references; CoreReferenceApiResolveResponseApplicationJson_Ocs_DataInterface rebuild( final void Function(CoreReferenceApiResolveResponseApplicationJson_Ocs_DataInterfaceBuilder) updates, ); @@ -5882,81 +5802,9 @@ abstract class CoreReferenceApiResolveResponseApplicationJson _$coreReferenceApiResolveResponseApplicationJsonSerializer; } -abstract class CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References - implements - Built { - 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 json, - ) => - _jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end - - // coverage:ignore-start - Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end - JsonObject get data; - CoreReference? get reference; - JsonObject? get jsonObject; - @BuiltValueSerializer(custom: true) - static Serializer get serializer => - _$CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_ReferencesSerializer(); -} - -class _$CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_ReferencesSerializer - implements PrimitiveSerializer { - @override - final Iterable 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) abstract interface class CoreReferenceApiExtractResponseApplicationJson_Ocs_DataInterface { - BuiltMap get references; + BuiltMap get references; CoreReferenceApiExtractResponseApplicationJson_Ocs_DataInterface rebuild( final void Function(CoreReferenceApiExtractResponseApplicationJson_Ocs_DataInterfaceBuilder) updates, ); @@ -7767,18 +7615,15 @@ final Serializers _serializers = (Serializers().toBuilder() ..add(CoreCollaborationResourcesSearchCollectionsResponseApplicationJson_Ocs.serializer) ..addBuilderFactory(const FullType(CoreCollection), CoreCollection.new) ..add(CoreCollection.serializer) - ..addBuilderFactory(const FullType(CoreOpenGraphObject), CoreOpenGraphObject.new) - ..add(CoreOpenGraphObject.serializer) + ..addBuilderFactory(const FullType(CoreResource), CoreResource.new) + ..add(CoreResource.serializer) ..addBuilderFactory( const FullType(BuiltMap, [FullType(String), FullType(JsonObject)]), MapBuilder.new, ) - ..addBuilderFactory(const FullType(CoreOpenGraphObject_OpenGraphObject), CoreOpenGraphObject_OpenGraphObject.new) - ..add(CoreOpenGraphObject_OpenGraphObject.serializer) - ..addBuilderFactory( - const FullType(BuiltList, [FullType(CoreOpenGraphObject)]), - ListBuilder.new, - ) + ..addBuilderFactory(const FullType(CoreOpenGraphObject), CoreOpenGraphObject.new) + ..add(CoreOpenGraphObject.serializer) + ..addBuilderFactory(const FullType(BuiltList, [FullType(CoreResource)]), ListBuilder.new) ..addBuilderFactory(const FullType(BuiltList, [FullType(CoreCollection)]), ListBuilder.new) ..addBuilderFactory( const FullType(CoreCollaborationResourcesListCollectionResponseApplicationJson), @@ -8125,18 +7970,6 @@ final Serializers _serializers = (Serializers().toBuilder() CoreReferenceApiResolveResponseApplicationJson_Ocs_Data.new, ) ..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.new, - ) ..addBuilderFactory( const FullType(CoreReferenceApiExtractResponseApplicationJson), CoreReferenceApiExtractResponseApplicationJson.new, @@ -8152,18 +7985,6 @@ final Serializers _serializers = (Serializers().toBuilder() CoreReferenceApiExtractResponseApplicationJson_Ocs_Data.new, ) ..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.new, - ) ..addBuilderFactory( const FullType(CoreReferenceApiGetProvidersInfoResponseApplicationJson), CoreReferenceApiGetProvidersInfoResponseApplicationJson.new, diff --git a/packages/nextcloud/lib/src/api/core.openapi.g.dart b/packages/nextcloud/lib/src/api/core.openapi.g.dart index c9fcec3a..e4c01bd1 100644 --- a/packages/nextcloud/lib/src/api/core.openapi.g.dart +++ b/packages/nextcloud/lib/src/api/core.openapi.g.dart @@ -41,9 +41,8 @@ Serializer _$coreLoginFlowV2CredentialsSerializer = _$CoreLoginFlowV2CredentialsSerializer(); Serializer _$coreLoginFlowV2PollSerializer = _$CoreLoginFlowV2_PollSerializer(); Serializer _$coreLoginFlowV2Serializer = _$CoreLoginFlowV2Serializer(); -Serializer _$coreOpenGraphObjectOpenGraphObjectSerializer = - _$CoreOpenGraphObject_OpenGraphObjectSerializer(); Serializer _$coreOpenGraphObjectSerializer = _$CoreOpenGraphObjectSerializer(); +Serializer _$coreResourceSerializer = _$CoreResourceSerializer(); Serializer _$coreCollectionSerializer = _$CoreCollectionSerializer(); Serializer _$coreCollaborationResourcesSearchCollectionsResponseApplicationJsonOcsSerializer = @@ -1187,15 +1186,14 @@ class _$CoreLoginFlowV2Serializer implements StructuredSerializer { +class _$CoreOpenGraphObjectSerializer implements StructuredSerializer { @override - final Iterable types = const [CoreOpenGraphObject_OpenGraphObject, _$CoreOpenGraphObject_OpenGraphObject]; + final Iterable types = const [CoreOpenGraphObject, _$CoreOpenGraphObject]; @override - final String wireName = 'CoreOpenGraphObject_OpenGraphObject'; + final String wireName = 'CoreOpenGraphObject'; @override - Iterable serialize(Serializers serializers, CoreOpenGraphObject_OpenGraphObject object, + Iterable serialize(Serializers serializers, CoreOpenGraphObject object, {FullType specifiedType = FullType.unspecified}) { final result = [ 'id', @@ -1222,9 +1220,9 @@ class _$CoreOpenGraphObject_OpenGraphObjectSerializer } @override - CoreOpenGraphObject_OpenGraphObject deserialize(Serializers serializers, Iterable serialized, + CoreOpenGraphObject deserialize(Serializers serializers, Iterable serialized, {FullType specifiedType = FullType.unspecified}) { - final result = CoreOpenGraphObject_OpenGraphObjectBuilder(); + final result = CoreOpenGraphObjectBuilder(); final iterator = serialized.iterator; while (iterator.moveNext()) { @@ -1254,14 +1252,14 @@ class _$CoreOpenGraphObject_OpenGraphObjectSerializer } } -class _$CoreOpenGraphObjectSerializer implements StructuredSerializer { +class _$CoreResourceSerializer implements StructuredSerializer { @override - final Iterable types = const [CoreOpenGraphObject, _$CoreOpenGraphObject]; + final Iterable types = const [CoreResource, _$CoreResource]; @override - final String wireName = 'CoreOpenGraphObject'; + final String wireName = 'CoreResource'; @override - Iterable serialize(Serializers serializers, CoreOpenGraphObject object, + Iterable serialize(Serializers serializers, CoreResource object, {FullType specifiedType = FullType.unspecified}) { final result = [ 'richObjectType', @@ -1270,7 +1268,7 @@ class _$CoreOpenGraphObjectSerializer implements StructuredSerializer serialized, + CoreResource deserialize(Serializers serializers, Iterable serialized, {FullType specifiedType = FullType.unspecified}) { - final result = CoreOpenGraphObjectBuilder(); + final result = CoreResourceBuilder(); final iterator = serialized.iterator; while (iterator.moveNext()) { @@ -1297,9 +1295,8 @@ class _$CoreOpenGraphObjectSerializer implements StructuredSerializer 'name', serializers.serialize(object.name, specifiedType: const FullType(String)), 'resources', - serializers.serialize(object.resources, - specifiedType: const FullType(BuiltList, [FullType(CoreOpenGraphObject)])), + serializers.serialize(object.resources, specifiedType: const FullType(BuiltList, [FullType(CoreResource)])), ]; return result; @@ -1352,7 +1348,7 @@ class _$CoreCollectionSerializer implements StructuredSerializer break; case 'resources': result.resources.replace(serializers.deserialize(value, - specifiedType: const FullType(BuiltList, [FullType(CoreOpenGraphObject)]))! as BuiltList); + specifiedType: const FullType(BuiltList, [FullType(CoreResource)]))! as BuiltList); break; } } @@ -5336,8 +5332,7 @@ class _$CoreReferenceApiResolveResponseApplicationJson_Ocs_DataSerializer final result = [ 'references', serializers.serialize(object.references, - specifiedType: const FullType(BuiltMap, - [FullType(String), FullType(CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References)])), + specifiedType: const FullType(BuiltMap, [FullType(String), FullType(CoreReference)])), ]; return result; @@ -5357,8 +5352,7 @@ class _$CoreReferenceApiResolveResponseApplicationJson_Ocs_DataSerializer switch (key) { case 'references': result.references.replace(serializers.deserialize(value, - specifiedType: const FullType(BuiltMap, - [FullType(String), FullType(CoreReferenceApiResolveResponseApplicationJson_Ocs_Data_References)]))!); + specifiedType: const FullType(BuiltMap, [FullType(String), FullType(CoreReference)]))!); break; } } @@ -5479,8 +5473,7 @@ class _$CoreReferenceApiExtractResponseApplicationJson_Ocs_DataSerializer final result = [ 'references', serializers.serialize(object.references, - specifiedType: const FullType(BuiltMap, - [FullType(String), FullType(CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References)])), + specifiedType: const FullType(BuiltMap, [FullType(String), FullType(CoreReference)])), ]; return result; @@ -5500,8 +5493,7 @@ class _$CoreReferenceApiExtractResponseApplicationJson_Ocs_DataSerializer switch (key) { case 'references': result.references.replace(serializers.deserialize(value, - specifiedType: const FullType(BuiltMap, - [FullType(String), FullType(CoreReferenceApiExtractResponseApplicationJson_Ocs_Data_References)]))!); + specifiedType: const FullType(BuiltMap, [FullType(String), FullType(CoreReference)]))!); break; } } @@ -10013,9 +10005,9 @@ class CoreLoginFlowV2Builder } } -abstract mixin class CoreOpenGraphObject_OpenGraphObjectInterfaceBuilder { - void replace(CoreOpenGraphObject_OpenGraphObjectInterface other); - void update(void Function(CoreOpenGraphObject_OpenGraphObjectInterfaceBuilder) updates); +abstract mixin class CoreOpenGraphObjectInterfaceBuilder { + void replace(CoreOpenGraphObjectInterface other); + void update(void Function(CoreOpenGraphObjectInterfaceBuilder) updates); String? get id; set id(String? id); @@ -10032,7 +10024,7 @@ abstract mixin class CoreOpenGraphObject_OpenGraphObjectInterfaceBuilder { set link(String? link); } -class _$CoreOpenGraphObject_OpenGraphObject extends CoreOpenGraphObject_OpenGraphObject { +class _$CoreOpenGraphObject extends CoreOpenGraphObject { @override final String id; @override @@ -10044,28 +10036,27 @@ class _$CoreOpenGraphObject_OpenGraphObject extends CoreOpenGraphObject_OpenGrap @override final String link; - factory _$CoreOpenGraphObject_OpenGraphObject([void Function(CoreOpenGraphObject_OpenGraphObjectBuilder)? updates]) => - (CoreOpenGraphObject_OpenGraphObjectBuilder()..update(updates))._build(); + factory _$CoreOpenGraphObject([void Function(CoreOpenGraphObjectBuilder)? updates]) => + (CoreOpenGraphObjectBuilder()..update(updates))._build(); - _$CoreOpenGraphObject_OpenGraphObject._( - {required this.id, required this.name, this.description, this.thumb, required this.link}) + _$CoreOpenGraphObject._({required this.id, required this.name, this.description, this.thumb, required this.link}) : super._() { - BuiltValueNullFieldError.checkNotNull(id, r'CoreOpenGraphObject_OpenGraphObject', 'id'); - BuiltValueNullFieldError.checkNotNull(name, r'CoreOpenGraphObject_OpenGraphObject', 'name'); - BuiltValueNullFieldError.checkNotNull(link, r'CoreOpenGraphObject_OpenGraphObject', 'link'); + BuiltValueNullFieldError.checkNotNull(id, r'CoreOpenGraphObject', 'id'); + BuiltValueNullFieldError.checkNotNull(name, r'CoreOpenGraphObject', 'name'); + BuiltValueNullFieldError.checkNotNull(link, r'CoreOpenGraphObject', 'link'); } @override - CoreOpenGraphObject_OpenGraphObject rebuild(void Function(CoreOpenGraphObject_OpenGraphObjectBuilder) updates) => + CoreOpenGraphObject rebuild(void Function(CoreOpenGraphObjectBuilder) updates) => (toBuilder()..update(updates)).build(); @override - CoreOpenGraphObject_OpenGraphObjectBuilder toBuilder() => CoreOpenGraphObject_OpenGraphObjectBuilder()..replace(this); + CoreOpenGraphObjectBuilder toBuilder() => CoreOpenGraphObjectBuilder()..replace(this); @override bool operator ==(Object other) { if (identical(other, this)) return true; - return other is CoreOpenGraphObject_OpenGraphObject && + return other is CoreOpenGraphObject && id == other.id && name == other.name && description == other.description && @@ -10087,7 +10078,7 @@ class _$CoreOpenGraphObject_OpenGraphObject extends CoreOpenGraphObject_OpenGrap @override String toString() { - return (newBuiltValueToStringHelper(r'CoreOpenGraphObject_OpenGraphObject') + return (newBuiltValueToStringHelper(r'CoreOpenGraphObject') ..add('id', id) ..add('name', name) ..add('description', description) @@ -10097,11 +10088,9 @@ class _$CoreOpenGraphObject_OpenGraphObject extends CoreOpenGraphObject_OpenGrap } } -class CoreOpenGraphObject_OpenGraphObjectBuilder - implements - Builder, - CoreOpenGraphObject_OpenGraphObjectInterfaceBuilder { - _$CoreOpenGraphObject_OpenGraphObject? _$v; +class CoreOpenGraphObjectBuilder + implements Builder, CoreOpenGraphObjectInterfaceBuilder { + _$CoreOpenGraphObject? _$v; String? _id; String? get id => _$this._id; @@ -10123,9 +10112,9 @@ class CoreOpenGraphObject_OpenGraphObjectBuilder String? get link => _$this._link; set link(covariant String? link) => _$this._link = link; - CoreOpenGraphObject_OpenGraphObjectBuilder(); + CoreOpenGraphObjectBuilder(); - CoreOpenGraphObject_OpenGraphObjectBuilder get _$this { + CoreOpenGraphObjectBuilder get _$this { final $v = _$v; if ($v != null) { _id = $v.id; @@ -10139,81 +10128,80 @@ class CoreOpenGraphObject_OpenGraphObjectBuilder } @override - void replace(covariant CoreOpenGraphObject_OpenGraphObject other) { + void replace(covariant CoreOpenGraphObject other) { ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$CoreOpenGraphObject_OpenGraphObject; + _$v = other as _$CoreOpenGraphObject; } @override - void update(void Function(CoreOpenGraphObject_OpenGraphObjectBuilder)? updates) { + void update(void Function(CoreOpenGraphObjectBuilder)? updates) { if (updates != null) updates(this); } @override - CoreOpenGraphObject_OpenGraphObject build() => _build(); + CoreOpenGraphObject build() => _build(); - _$CoreOpenGraphObject_OpenGraphObject _build() { + _$CoreOpenGraphObject _build() { final _$result = _$v ?? - _$CoreOpenGraphObject_OpenGraphObject._( - id: BuiltValueNullFieldError.checkNotNull(id, r'CoreOpenGraphObject_OpenGraphObject', 'id'), - name: BuiltValueNullFieldError.checkNotNull(name, r'CoreOpenGraphObject_OpenGraphObject', 'name'), + _$CoreOpenGraphObject._( + id: BuiltValueNullFieldError.checkNotNull(id, r'CoreOpenGraphObject', 'id'), + name: BuiltValueNullFieldError.checkNotNull(name, r'CoreOpenGraphObject', 'name'), description: description, thumb: thumb, - link: BuiltValueNullFieldError.checkNotNull(link, r'CoreOpenGraphObject_OpenGraphObject', 'link')); + link: BuiltValueNullFieldError.checkNotNull(link, r'CoreOpenGraphObject', 'link')); replace(_$result); return _$result; } } -abstract mixin class CoreOpenGraphObjectInterfaceBuilder { - void replace(CoreOpenGraphObjectInterface other); - void update(void Function(CoreOpenGraphObjectInterfaceBuilder) updates); +abstract mixin class CoreResourceInterfaceBuilder { + void replace(CoreResourceInterface other); + void update(void Function(CoreResourceInterfaceBuilder) updates); String? get richObjectType; set richObjectType(String? richObjectType); MapBuilder get richObject; set richObject(MapBuilder? richObject); - CoreOpenGraphObject_OpenGraphObjectBuilder get openGraphObject; - set openGraphObject(CoreOpenGraphObject_OpenGraphObjectBuilder? openGraphObject); + CoreOpenGraphObjectBuilder get openGraphObject; + set openGraphObject(CoreOpenGraphObjectBuilder? openGraphObject); bool? get accessible; set accessible(bool? accessible); } -class _$CoreOpenGraphObject extends CoreOpenGraphObject { +class _$CoreResource extends CoreResource { @override final String richObjectType; @override final BuiltMap richObject; @override - final CoreOpenGraphObject_OpenGraphObject openGraphObject; + final CoreOpenGraphObject openGraphObject; @override final bool accessible; - factory _$CoreOpenGraphObject([void Function(CoreOpenGraphObjectBuilder)? updates]) => - (CoreOpenGraphObjectBuilder()..update(updates))._build(); + factory _$CoreResource([void Function(CoreResourceBuilder)? updates]) => + (CoreResourceBuilder()..update(updates))._build(); - _$CoreOpenGraphObject._( + _$CoreResource._( {required this.richObjectType, required this.richObject, required this.openGraphObject, required this.accessible}) : super._() { - BuiltValueNullFieldError.checkNotNull(richObjectType, r'CoreOpenGraphObject', 'richObjectType'); - BuiltValueNullFieldError.checkNotNull(richObject, r'CoreOpenGraphObject', 'richObject'); - BuiltValueNullFieldError.checkNotNull(openGraphObject, r'CoreOpenGraphObject', 'openGraphObject'); - BuiltValueNullFieldError.checkNotNull(accessible, r'CoreOpenGraphObject', 'accessible'); + BuiltValueNullFieldError.checkNotNull(richObjectType, r'CoreResource', 'richObjectType'); + BuiltValueNullFieldError.checkNotNull(richObject, r'CoreResource', 'richObject'); + BuiltValueNullFieldError.checkNotNull(openGraphObject, r'CoreResource', 'openGraphObject'); + BuiltValueNullFieldError.checkNotNull(accessible, r'CoreResource', 'accessible'); } @override - CoreOpenGraphObject rebuild(void Function(CoreOpenGraphObjectBuilder) updates) => - (toBuilder()..update(updates)).build(); + CoreResource rebuild(void Function(CoreResourceBuilder) updates) => (toBuilder()..update(updates)).build(); @override - CoreOpenGraphObjectBuilder toBuilder() => CoreOpenGraphObjectBuilder()..replace(this); + CoreResourceBuilder toBuilder() => CoreResourceBuilder()..replace(this); @override bool operator ==(Object other) { if (identical(other, this)) return true; - return other is CoreOpenGraphObject && + return other is CoreResource && richObjectType == other.richObjectType && richObject == other.richObject && openGraphObject == other.openGraphObject && @@ -10233,7 +10221,7 @@ class _$CoreOpenGraphObject extends CoreOpenGraphObject { @override String toString() { - return (newBuiltValueToStringHelper(r'CoreOpenGraphObject') + return (newBuiltValueToStringHelper(r'CoreResource') ..add('richObjectType', richObjectType) ..add('richObject', richObject) ..add('openGraphObject', openGraphObject) @@ -10242,9 +10230,8 @@ class _$CoreOpenGraphObject extends CoreOpenGraphObject { } } -class CoreOpenGraphObjectBuilder - implements Builder, CoreOpenGraphObjectInterfaceBuilder { - _$CoreOpenGraphObject? _$v; +class CoreResourceBuilder implements Builder, CoreResourceInterfaceBuilder { + _$CoreResource? _$v; String? _richObjectType; String? get richObjectType => _$this._richObjectType; @@ -10254,19 +10241,18 @@ class CoreOpenGraphObjectBuilder MapBuilder get richObject => _$this._richObject ??= MapBuilder(); set richObject(covariant MapBuilder? richObject) => _$this._richObject = richObject; - CoreOpenGraphObject_OpenGraphObjectBuilder? _openGraphObject; - CoreOpenGraphObject_OpenGraphObjectBuilder get openGraphObject => - _$this._openGraphObject ??= CoreOpenGraphObject_OpenGraphObjectBuilder(); - set openGraphObject(covariant CoreOpenGraphObject_OpenGraphObjectBuilder? openGraphObject) => + CoreOpenGraphObjectBuilder? _openGraphObject; + CoreOpenGraphObjectBuilder get openGraphObject => _$this._openGraphObject ??= CoreOpenGraphObjectBuilder(); + set openGraphObject(covariant CoreOpenGraphObjectBuilder? openGraphObject) => _$this._openGraphObject = openGraphObject; bool? _accessible; bool? get accessible => _$this._accessible; set accessible(covariant bool? accessible) => _$this._accessible = accessible; - CoreOpenGraphObjectBuilder(); + CoreResourceBuilder(); - CoreOpenGraphObjectBuilder get _$this { + CoreResourceBuilder get _$this { final $v = _$v; if ($v != null) { _richObjectType = $v.richObjectType; @@ -10279,29 +10265,28 @@ class CoreOpenGraphObjectBuilder } @override - void replace(covariant CoreOpenGraphObject other) { + void replace(covariant CoreResource other) { ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$CoreOpenGraphObject; + _$v = other as _$CoreResource; } @override - void update(void Function(CoreOpenGraphObjectBuilder)? updates) { + void update(void Function(CoreResourceBuilder)? updates) { if (updates != null) updates(this); } @override - CoreOpenGraphObject build() => _build(); + CoreResource build() => _build(); - _$CoreOpenGraphObject _build() { - _$CoreOpenGraphObject _$result; + _$CoreResource _build() { + _$CoreResource _$result; try { _$result = _$v ?? - _$CoreOpenGraphObject._( - richObjectType: - BuiltValueNullFieldError.checkNotNull(richObjectType, r'CoreOpenGraphObject', 'richObjectType'), + _$CoreResource._( + richObjectType: BuiltValueNullFieldError.checkNotNull(richObjectType, r'CoreResource', 'richObjectType'), richObject: richObject.build(), openGraphObject: openGraphObject.build(), - accessible: BuiltValueNullFieldError.checkNotNull(accessible, r'CoreOpenGraphObject', 'accessible')); + accessible: BuiltValueNullFieldError.checkNotNull(accessible, r'CoreResource', 'accessible')); } catch (_) { late String _$failedField; try { @@ -10310,7 +10295,7 @@ class CoreOpenGraphObjectBuilder _$failedField = 'openGraphObject'; openGraphObject.build(); } catch (e) { - throw BuiltValueNestedFieldError(r'CoreOpenGraphObject', _$failedField, e.toString()); + throw BuiltValueNestedFieldError(r'CoreResource', _$failedField, e.toString()); } rethrow; } @@ -10328,8 +10313,8 @@ abstract mixin class CoreCollectionInterfaceBuilder { String? get name; set name(String? name); - ListBuilder get resources; - set resources(ListBuilder? resources); + ListBuilder get resources; + set resources(ListBuilder? resources); } class _$CoreCollection extends CoreCollection { @@ -10338,7 +10323,7 @@ class _$CoreCollection extends CoreCollection { @override final String name; @override - final BuiltList resources; + final BuiltList resources; factory _$CoreCollection([void Function(CoreCollectionBuilder)? updates]) => (CoreCollectionBuilder()..update(updates))._build(); @@ -10392,9 +10377,9 @@ class CoreCollectionBuilder implements Builder _$this._name; set name(covariant String? name) => _$this._name = name; - ListBuilder? _resources; - ListBuilder get resources => _$this._resources ??= ListBuilder(); - set resources(covariant ListBuilder? resources) => _$this._resources = resources; + ListBuilder? _resources; + ListBuilder get resources => _$this._resources ??= ListBuilder(); + set resources(covariant ListBuilder? resources) => _$this._resources = resources; 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? _$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 { void replace(CoreReferenceApiResolveResponseApplicationJson_Ocs_DataInterface other); void update(void Function(CoreReferenceApiResolveResponseApplicationJson_Ocs_DataInterfaceBuilder) updates); - MapBuilder get references; - set references(MapBuilder? references); + MapBuilder get references; + set references(MapBuilder? references); } class _$CoreReferenceApiResolveResponseApplicationJson_Ocs_Data extends CoreReferenceApiResolveResponseApplicationJson_Ocs_Data { @override - final BuiltMap references; + final BuiltMap references; factory _$CoreReferenceApiResolveResponseApplicationJson_Ocs_Data( [void Function(CoreReferenceApiResolveResponseApplicationJson_Ocs_DataBuilder)? updates]) => @@ -20720,13 +20577,9 @@ class CoreReferenceApiResolveResponseApplicationJson_Ocs_DataBuilder CoreReferenceApiResolveResponseApplicationJson_Ocs_DataInterfaceBuilder { _$CoreReferenceApiResolveResponseApplicationJson_Ocs_Data? _$v; - MapBuilder? _references; - MapBuilder get references => - _$this._references ??= MapBuilder(); - set references( - covariant MapBuilder? - references) => - _$this._references = references; + MapBuilder? _references; + MapBuilder get references => _$this._references ??= MapBuilder(); + set references(covariant MapBuilder? references) => _$this._references = references; 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? _$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 { void replace(CoreReferenceApiExtractResponseApplicationJson_Ocs_DataInterface other); void update(void Function(CoreReferenceApiExtractResponseApplicationJson_Ocs_DataInterfaceBuilder) updates); - MapBuilder get references; - set references(MapBuilder? references); + MapBuilder get references; + set references(MapBuilder? references); } class _$CoreReferenceApiExtractResponseApplicationJson_Ocs_Data extends CoreReferenceApiExtractResponseApplicationJson_Ocs_Data { @override - final BuiltMap references; + final BuiltMap references; factory _$CoreReferenceApiExtractResponseApplicationJson_Ocs_Data( [void Function(CoreReferenceApiExtractResponseApplicationJson_Ocs_DataBuilder)? updates]) => @@ -21186,13 +20911,9 @@ class CoreReferenceApiExtractResponseApplicationJson_Ocs_DataBuilder CoreReferenceApiExtractResponseApplicationJson_Ocs_DataInterfaceBuilder { _$CoreReferenceApiExtractResponseApplicationJson_Ocs_Data? _$v; - MapBuilder? _references; - MapBuilder get references => - _$this._references ??= MapBuilder(); - set references( - covariant MapBuilder? - references) => - _$this._references = references; + MapBuilder? _references; + MapBuilder get references => _$this._references ??= MapBuilder(); + set references(covariant MapBuilder? references) => _$this._references = references; CoreReferenceApiExtractResponseApplicationJson_Ocs_DataBuilder(); diff --git a/packages/nextcloud/lib/src/api/core.openapi.json b/packages/nextcloud/lib/src/api/core.openapi.json index 8c3b534b..6063f54a 100644 --- a/packages/nextcloud/lib/src/api/core.openapi.json +++ b/packages/nextcloud/lib/src/api/core.openapi.json @@ -74,7 +74,7 @@ "resources": { "type": "array", "items": { - "$ref": "#/components/schemas/OpenGraphObject" + "$ref": "#/components/schemas/Resource" } } } @@ -227,52 +227,29 @@ "OpenGraphObject": { "type": "object", "required": [ - "richObjectType", - "richObject", - "openGraphObject", - "accessible" + "id", + "name", + "description", + "thumb", + "link" ], "properties": { - "richObjectType": { + "id": { "type": "string" }, - "richObject": { - "type": "object", - "additionalProperties": { - "type": "object" - } + "name": { + "type": "string" }, - "openGraphObject": { - "type": "object", - "required": [ - "id", - "name", - "description", - "thumb", - "link" - ], - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "description": { - "type": "string", - "nullable": true - }, - "thumb": { - "type": "string", - "nullable": true - }, - "link": { - "type": "string" - } - } + "description": { + "type": "string", + "nullable": true }, - "accessible": { - "type": "boolean" + "thumb": { + "type": "string", + "nullable": true + }, + "link": { + "type": "string" } } }, @@ -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": { "type": "object", "required": [ @@ -4015,15 +4018,8 @@ "references": { "type": "object", "additionalProperties": { - "nullable": true, - "oneOf": [ - { - "$ref": "#/components/schemas/Reference" - }, - { - "type": "object" - } - ] + "$ref": "#/components/schemas/Reference", + "nullable": true } } } @@ -4122,15 +4118,8 @@ "references": { "type": "object", "additionalProperties": { - "nullable": true, - "oneOf": [ - { - "$ref": "#/components/schemas/Reference" - }, - { - "type": "object" - } - ] + "$ref": "#/components/schemas/Reference", + "nullable": true } } } diff --git a/packages/nextcloud/lib/src/api/provisioning_api.openapi.dart b/packages/nextcloud/lib/src/api/provisioning_api.openapi.dart index d8a4b703..1c398d3b 100644 --- a/packages/nextcloud/lib/src/api/provisioning_api.openapi.dart +++ b/packages/nextcloud/lib/src/api/provisioning_api.openapi.dart @@ -3525,6 +3525,7 @@ abstract class ProvisioningApiUserDetailsQuota_Quota // coverage:ignore-end JsonObject get data; num? get $num; + int? get $int; String? get string; @BuiltValueSerializer(custom: true) static Serializer get serializer => @@ -3557,10 +3558,16 @@ class _$ProvisioningApiUserDetailsQuota_QuotaSerializer try { result._$num = data as num?; } catch (_) {} + try { + result._$int = data as int?; + } catch (_) {} try { result._string = data as String?; } 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(); } } diff --git a/packages/nextcloud/lib/src/api/provisioning_api.openapi.g.dart b/packages/nextcloud/lib/src/api/provisioning_api.openapi.g.dart index ad7d5f0c..164ed0e8 100644 --- a/packages/nextcloud/lib/src/api/provisioning_api.openapi.g.dart +++ b/packages/nextcloud/lib/src/api/provisioning_api.openapi.g.dart @@ -11361,13 +11361,15 @@ class _$ProvisioningApiUserDetailsQuota_Quota extends ProvisioningApiUserDetails @override final num? $num; @override + final int? $int; + @override final String? string; factory _$ProvisioningApiUserDetailsQuota_Quota( [void Function(ProvisioningApiUserDetailsQuota_QuotaBuilder)? updates]) => (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'); } @@ -11385,6 +11387,7 @@ class _$ProvisioningApiUserDetailsQuota_Quota extends ProvisioningApiUserDetails return other is ProvisioningApiUserDetailsQuota_Quota && data == other.data && $num == other.$num && + $int == other.$int && string == other.string; } @@ -11393,6 +11396,7 @@ class _$ProvisioningApiUserDetailsQuota_Quota extends ProvisioningApiUserDetails var _$hash = 0; _$hash = $jc(_$hash, data.hashCode); _$hash = $jc(_$hash, $num.hashCode); + _$hash = $jc(_$hash, $int.hashCode); _$hash = $jc(_$hash, string.hashCode); _$hash = $jf(_$hash); return _$hash; @@ -11403,6 +11407,7 @@ class _$ProvisioningApiUserDetailsQuota_Quota extends ProvisioningApiUserDetails return (newBuiltValueToStringHelper(r'ProvisioningApiUserDetailsQuota_Quota') ..add('data', data) ..add('\$num', $num) + ..add('\$int', $int) ..add('string', string)) .toString(); } @@ -11420,6 +11425,10 @@ class ProvisioningApiUserDetailsQuota_QuotaBuilder num? get $num => _$this._$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? get string => _$this._string; set string(String? string) => _$this._string = string; @@ -11431,6 +11440,7 @@ class ProvisioningApiUserDetailsQuota_QuotaBuilder if ($v != null) { _data = $v.data; _$num = $v.$num; + _$int = $v.$int; _string = $v.string; _$v = null; } @@ -11456,6 +11466,7 @@ class ProvisioningApiUserDetailsQuota_QuotaBuilder _$ProvisioningApiUserDetailsQuota_Quota._( data: BuiltValueNullFieldError.checkNotNull(data, r'ProvisioningApiUserDetailsQuota_Quota', 'data'), $num: $num, + $int: $int, string: string); replace(_$result); return _$result; diff --git a/packages/nextcloud/lib/src/api/provisioning_api.openapi.json b/packages/nextcloud/lib/src/api/provisioning_api.openapi.json index de9ea418..278d4dfe 100644 --- a/packages/nextcloud/lib/src/api/provisioning_api.openapi.json +++ b/packages/nextcloud/lib/src/api/provisioning_api.openapi.json @@ -517,6 +517,10 @@ "type": "number", "format": "float" }, + { + "type": "integer", + "format": "int64" + }, { "type": "string" }