diff --git a/packages/dynamite/dynamite/lib/src/builder/client.dart b/packages/dynamite/dynamite/lib/src/builder/client.dart index f99d7bed5e1..9c21ada5793 100644 --- a/packages/dynamite/dynamite/lib/src/builder/client.dart +++ b/packages/dynamite/dynamite/lib/src/builder/client.dart @@ -17,6 +17,10 @@ Iterable generateClients( final openapi.OpenAPI spec, final State state, ) sync* { + if (spec.paths == null || spec.paths!.isEmpty) { + return; + } + final tags = generateTags(spec); yield buildRootClient(spec, state, tags); @@ -191,6 +195,25 @@ Iterable buildTags( ]..sort(sortRequiredParameters); final name = toDartName(filterMethodName(operationName, tag ?? '')); + final hasAuthentication = needsAuthCheck(pathEntry, operation, spec, client); + var hasUriParameters = false; + var hasHeaderParameters = false; + for (final parameter in parameters) { + switch (parameter.$in) { + case openapi.ParameterType.path: + case openapi.ParameterType.query: + hasUriParameters = true; + case openapi.ParameterType.header: + hasHeaderParameters = true; + default: + } + + // No need to continue searching. + if (hasHeaderParameters && hasUriParameters) { + break; + } + } + var responses = >{}; if (operation.responses != null) { for (final responseEntry in operation.responses!.entries) { @@ -215,18 +238,32 @@ Iterable buildTags( .toSet() .join(','); - code.writeln(''' - final _parameters = {}; - final _headers = {${acceptHeader.isNotEmpty ? "'Accept': '$acceptHeader'," : ''}}; - Uint8List? _body; - '''); + if (hasUriParameters) { + code.writeln('final _parameters = {};'); + } + if (acceptHeader.isNotEmpty) { + if (hasHeaderParameters || hasAuthentication) { + code.writeln("final _headers = {'Accept': '$acceptHeader',};"); + } else { + code.writeln("const _headers = {'Accept': '$acceptHeader',};"); + } + } else if (acceptHeader.isEmpty) { + code.writeln('final _headers = {};'); + } + if (operation.requestBody != null) { + code.writeln('Uint8List? _body;'); + } + // Separate the declarations from the assignments + code.writeln(); - buildAuthCheck( - pathEntry, - operation, - spec, - client, - ).forEach(code.writeln); + if (hasAuthentication) { + buildAuthCheck( + pathEntry, + operation, + spec, + client, + ).forEach(code.writeln); + } final operationParameters = ListBuilder(); final annotations = operation.deprecated ? refer('Deprecated').call([refer("''")]) : null; @@ -315,36 +352,39 @@ Iterable buildTags( toDartName(identifierBuilder.toString(), uppercaseFirstCharacter: true), ); - final queryParams = []; - for (final parameter in parameters) { - if (parameter.$in != openapi.ParameterType.query) { - continue; - } + if (!hasUriParameters) { + code.writeln("const _path = '${pathEntry.key}';"); + } else { + final queryParams = []; + for (final parameter in parameters) { + if (parameter.$in != openapi.ParameterType.query) { + continue; + } - // Default to a plain parameter without exploding. - queryParams.add(parameter.uriTemplate(withPrefix: false) ?? parameter.pctEncodedName); - } + // Default to a plain parameter without exploding. + queryParams.add(parameter.uriTemplate(withPrefix: false) ?? parameter.pctEncodedName); + } - final pathBuilder = StringBuffer()..write(pathEntry.key); + final pathBuilder = StringBuffer()..write(pathEntry.key); - if (queryParams.isNotEmpty) { - pathBuilder - ..write('{?') - ..writeAll(queryParams, ',') - ..write('}'); - } + if (queryParams.isNotEmpty) { + pathBuilder + ..write('{?') + ..writeAll(queryParams, ',') + ..write('}'); + } - final path = pathBuilder.toString(); + final path = pathBuilder.toString(); + // Sanity check the uri at build time. + try { + UriTemplate(path); + } on ParseException catch (e) { + throw Exception('The resulting uri $path is not a valid uri template according to RFC 6570. $e'); + } - // Sanity check the uri at build time. - try { - UriTemplate(path); - } on ParseException catch (e) { - throw Exception('The resulting uri $path is not a valid uri template according to RFC 6570. $e'); + code.writeln("final _path = UriTemplate('$path').expand(_parameters);"); } - code.writeln("final _path = UriTemplate('$path').expand(_parameters);"); - if (dataType != null) { returnDataType = dataType.name; } @@ -358,7 +398,7 @@ Iterable buildTags( '$httpMethod', _path, _headers, - _body, + ${operation.requestBody != null ? '_body' : 'null'}, '''); if (responses.values.isNotEmpty) { @@ -466,6 +506,18 @@ String buildParameterSerialization( return buffer.toString(); } +bool needsAuthCheck( + final MapEntry pathEntry, + final openapi.Operation operation, + final openapi.OpenAPI spec, + final String client, +) { + final security = operation.security ?? spec.security ?? BuiltList(); + final securityRequirements = security.where((final requirement) => requirement.isNotEmpty); + + return securityRequirements.isNotEmpty; +} + Iterable buildAuthCheck( final MapEntry pathEntry, final openapi.Operation operation, diff --git a/packages/dynamite/dynamite_end_to_end_test/lib/all_of.openapi.dart b/packages/dynamite/dynamite_end_to_end_test/lib/all_of.openapi.dart index aebcaf1f86b..5aff31d8255 100644 --- a/packages/dynamite/dynamite_end_to_end_test/lib/all_of.openapi.dart +++ b/packages/dynamite/dynamite_end_to_end_test/lib/all_of.openapi.dart @@ -9,30 +9,10 @@ import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; import 'package:built_value/standard_json_plugin.dart'; import 'package:dynamite_runtime/built_value.dart'; -import 'package:dynamite_runtime/http_client.dart'; import 'package:meta/meta.dart'; part 'all_of.openapi.g.dart'; -class Client extends DynamiteClient { - Client( - super.baseURL, { - super.baseHeaders, - super.userAgent, - super.httpClient, - super.cookieJar, - }); - - Client.fromClient(DynamiteClient client) - : super( - client.baseURL, - baseHeaders: client.baseHeaders, - httpClient: client.httpClient, - cookieJar: client.cookieJar, - authentications: client.authentications, - ); -} - @BuiltValue(instantiable: false) abstract interface class $ObjectAllOf_0Interface { @BuiltValueField(wireName: 'attribute1-allOf') diff --git a/packages/dynamite/dynamite_end_to_end_test/lib/any_of.openapi.dart b/packages/dynamite/dynamite_end_to_end_test/lib/any_of.openapi.dart index b211056c7c5..4f0e27f3985 100644 --- a/packages/dynamite/dynamite_end_to_end_test/lib/any_of.openapi.dart +++ b/packages/dynamite/dynamite_end_to_end_test/lib/any_of.openapi.dart @@ -9,31 +9,11 @@ import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; import 'package:built_value/standard_json_plugin.dart'; import 'package:dynamite_runtime/built_value.dart'; -import 'package:dynamite_runtime/http_client.dart'; import 'package:dynamite_runtime/utils.dart' as dynamite_utils; import 'package:meta/meta.dart'; part 'any_of.openapi.g.dart'; -class Client extends DynamiteClient { - Client( - super.baseURL, { - super.baseHeaders, - super.userAgent, - super.httpClient, - super.cookieJar, - }); - - Client.fromClient(DynamiteClient client) - : super( - client.baseURL, - baseHeaders: client.baseHeaders, - httpClient: client.httpClient, - cookieJar: client.cookieJar, - authentications: client.authentications, - ); -} - typedef OneObjectAnyOf = OneObjectAnyOf0; typedef OneValueAnyOf = String; diff --git a/packages/dynamite/dynamite_end_to_end_test/lib/enum.openapi.dart b/packages/dynamite/dynamite_end_to_end_test/lib/enum.openapi.dart index 3cd2eb58610..61414f31665 100644 --- a/packages/dynamite/dynamite_end_to_end_test/lib/enum.openapi.dart +++ b/packages/dynamite/dynamite_end_to_end_test/lib/enum.openapi.dart @@ -10,30 +10,10 @@ import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; import 'package:built_value/standard_json_plugin.dart'; import 'package:dynamite_runtime/built_value.dart'; -import 'package:dynamite_runtime/http_client.dart'; import 'package:meta/meta.dart'; part 'enum.openapi.g.dart'; -class Client extends DynamiteClient { - Client( - super.baseURL, { - super.baseHeaders, - super.userAgent, - super.httpClient, - super.cookieJar, - }); - - Client.fromClient(DynamiteClient client) - : super( - client.baseURL, - baseHeaders: client.baseHeaders, - httpClient: client.httpClient, - cookieJar: client.cookieJar, - authentications: client.authentications, - ); -} - class EnumString extends EnumClass { const EnumString._(super.name); diff --git a/packages/dynamite/dynamite_end_to_end_test/lib/headers.openapi.dart b/packages/dynamite/dynamite_end_to_end_test/lib/headers.openapi.dart index fe8a00b839b..dc1085578de 100644 --- a/packages/dynamite/dynamite_end_to_end_test/lib/headers.openapi.dart +++ b/packages/dynamite/dynamite_end_to_end_test/lib/headers.openapi.dart @@ -13,7 +13,6 @@ import 'package:dynamite_runtime/built_value.dart'; import 'package:dynamite_runtime/http_client.dart'; import 'package:meta/meta.dart'; import 'package:universal_io/io.dart'; -import 'package:uri/uri.dart'; part 'headers.openapi.g.dart'; @@ -61,17 +60,15 @@ class Client extends DynamiteClient { /// * [$get] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse $getRaw() { - final _parameters = {}; final _headers = {}; - Uint8List? _body; - final _path = UriTemplate('/').expand(_parameters); + const _path = '/'; return DynamiteRawResponse( response: executeRequest( 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: null, @@ -106,17 +103,15 @@ class Client extends DynamiteClient { /// * [withContentOperationId] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse withContentOperationIdRaw() { - final _parameters = {}; final _headers = {}; - Uint8List? _body; - final _path = UriTemplate('/with_content/operation_id').expand(_parameters); + const _path = '/with_content/operation_id'; return DynamiteRawResponse( response: executeRequest( 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: null, @@ -151,19 +146,17 @@ class Client extends DynamiteClient { /// * [getWithContent] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse getWithContentRaw() { - final _parameters = {}; - final _headers = { + const _headers = { 'Accept': 'application/octet-stream', }; - Uint8List? _body; - final _path = UriTemplate('/with_content').expand(_parameters); + const _path = '/with_content'; return DynamiteRawResponse( response: executeRequest( 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(Uint8List), diff --git a/packages/dynamite/dynamite_end_to_end_test/lib/interfaces.openapi.dart b/packages/dynamite/dynamite_end_to_end_test/lib/interfaces.openapi.dart index cb054141d95..edc6d75cba4 100644 --- a/packages/dynamite/dynamite_end_to_end_test/lib/interfaces.openapi.dart +++ b/packages/dynamite/dynamite_end_to_end_test/lib/interfaces.openapi.dart @@ -9,30 +9,10 @@ import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; import 'package:built_value/standard_json_plugin.dart'; import 'package:dynamite_runtime/built_value.dart'; -import 'package:dynamite_runtime/http_client.dart'; import 'package:meta/meta.dart'; part 'interfaces.openapi.g.dart'; -class Client extends DynamiteClient { - Client( - super.baseURL, { - super.baseHeaders, - super.userAgent, - super.httpClient, - super.cookieJar, - }); - - Client.fromClient(DynamiteClient client) - : super( - client.baseURL, - baseHeaders: client.baseHeaders, - httpClient: client.httpClient, - cookieJar: client.cookieJar, - authentications: client.authentications, - ); -} - @BuiltValue(instantiable: false) abstract interface class $BaseInterface { String? get attribute; diff --git a/packages/dynamite/dynamite_end_to_end_test/lib/nested_ofs.openapi.dart b/packages/dynamite/dynamite_end_to_end_test/lib/nested_ofs.openapi.dart index 8c69f61b41e..45103884cb9 100644 --- a/packages/dynamite/dynamite_end_to_end_test/lib/nested_ofs.openapi.dart +++ b/packages/dynamite/dynamite_end_to_end_test/lib/nested_ofs.openapi.dart @@ -9,31 +9,11 @@ import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; import 'package:built_value/standard_json_plugin.dart'; import 'package:dynamite_runtime/built_value.dart'; -import 'package:dynamite_runtime/http_client.dart'; import 'package:dynamite_runtime/utils.dart' as dynamite_utils; import 'package:meta/meta.dart'; part 'nested_ofs.openapi.g.dart'; -class Client extends DynamiteClient { - Client( - super.baseURL, { - super.baseHeaders, - super.userAgent, - super.httpClient, - super.cookieJar, - }); - - Client.fromClient(DynamiteClient client) - : super( - client.baseURL, - baseHeaders: client.baseHeaders, - httpClient: client.httpClient, - cookieJar: client.cookieJar, - authentications: client.authentications, - ); -} - @BuiltValue(instantiable: false) abstract interface class $BaseAllOf_1Interface { @BuiltValueField(wireName: 'attribute-allOf') diff --git a/packages/dynamite/dynamite_end_to_end_test/lib/one_of.openapi.dart b/packages/dynamite/dynamite_end_to_end_test/lib/one_of.openapi.dart index cbfacafc8e2..ff2ccafdd9f 100644 --- a/packages/dynamite/dynamite_end_to_end_test/lib/one_of.openapi.dart +++ b/packages/dynamite/dynamite_end_to_end_test/lib/one_of.openapi.dart @@ -9,31 +9,11 @@ import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; import 'package:built_value/standard_json_plugin.dart'; import 'package:dynamite_runtime/built_value.dart'; -import 'package:dynamite_runtime/http_client.dart'; import 'package:dynamite_runtime/utils.dart' as dynamite_utils; import 'package:meta/meta.dart'; part 'one_of.openapi.g.dart'; -class Client extends DynamiteClient { - Client( - super.baseURL, { - super.baseHeaders, - super.userAgent, - super.httpClient, - super.cookieJar, - }); - - Client.fromClient(DynamiteClient client) - : super( - client.baseURL, - baseHeaders: client.baseHeaders, - httpClient: client.httpClient, - cookieJar: client.cookieJar, - authentications: client.authentications, - ); -} - typedef OneObjectOneOf = OneObjectOneOf0; typedef OneValueOneOf = String; diff --git a/packages/dynamite/dynamite_end_to_end_test/lib/parameters.openapi.dart b/packages/dynamite/dynamite_end_to_end_test/lib/parameters.openapi.dart index b18023120c9..6bffc5b46ef 100644 --- a/packages/dynamite/dynamite_end_to_end_test/lib/parameters.openapi.dart +++ b/packages/dynamite/dynamite_end_to_end_test/lib/parameters.openapi.dart @@ -138,10 +138,9 @@ class Client extends DynamiteClient { GetEnumPattern? enumPattern, }) { final _parameters = {}; - final _headers = { + const _headers = { 'Accept': 'application/json', }; - Uint8List? _body; final $contentString = jsonSerializers.serialize( contentString, @@ -201,7 +200,7 @@ class Client extends DynamiteClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(JsonObject), @@ -273,11 +272,9 @@ class Client extends DynamiteClient { double? $double, num? $num, }) { - final _parameters = {}; final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; final $array = jsonSerializers.serialize(array, specifiedType: const FullType(BuiltList, [FullType(String)])); if ($array != null) { @@ -309,13 +306,13 @@ class Client extends DynamiteClient { _headers['num'] = $$num.toString(); } - final _path = UriTemplate('/headers').expand(_parameters); + const _path = '/headers'; return DynamiteRawResponse( response: executeRequest( 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(JsonObject), @@ -353,10 +350,9 @@ class Client extends DynamiteClient { @experimental DynamiteRawResponse getPathParameterRaw({required String pathParameter}) { final _parameters = {}; - final _headers = { + const _headers = { 'Accept': 'application/json', }; - Uint8List? _body; final $pathParameter = jsonSerializers.serialize(pathParameter, specifiedType: const FullType(String)); _parameters['path_parameter'] = $pathParameter; @@ -367,7 +363,7 @@ class Client extends DynamiteClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(JsonObject), diff --git a/packages/dynamite/dynamite_end_to_end_test/lib/pattern_check.openapi.dart b/packages/dynamite/dynamite_end_to_end_test/lib/pattern_check.openapi.dart index aa0eff50875..e47476a1d32 100644 --- a/packages/dynamite/dynamite_end_to_end_test/lib/pattern_check.openapi.dart +++ b/packages/dynamite/dynamite_end_to_end_test/lib/pattern_check.openapi.dart @@ -9,31 +9,11 @@ import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; import 'package:built_value/standard_json_plugin.dart'; import 'package:dynamite_runtime/built_value.dart'; -import 'package:dynamite_runtime/http_client.dart'; import 'package:dynamite_runtime/utils.dart' as dynamite_utils; import 'package:meta/meta.dart'; part 'pattern_check.openapi.g.dart'; -class Client extends DynamiteClient { - Client( - super.baseURL, { - super.baseHeaders, - super.userAgent, - super.httpClient, - super.cookieJar, - }); - - Client.fromClient(DynamiteClient client) - : super( - client.baseURL, - baseHeaders: client.baseHeaders, - httpClient: client.httpClient, - cookieJar: client.cookieJar, - authentications: client.authentications, - ); -} - @BuiltValue(instantiable: false) abstract interface class $TestObjectInterface { @BuiltValueField(wireName: 'only-numbers') diff --git a/packages/dynamite/dynamite_end_to_end_test/lib/request_body.openapi.dart b/packages/dynamite/dynamite_end_to_end_test/lib/request_body.openapi.dart index 7736a45016c..0a311499405 100644 --- a/packages/dynamite/dynamite_end_to_end_test/lib/request_body.openapi.dart +++ b/packages/dynamite/dynamite_end_to_end_test/lib/request_body.openapi.dart @@ -13,7 +13,6 @@ import 'package:dynamite_runtime/built_value.dart'; import 'package:dynamite_runtime/http_client.dart'; import 'package:meta/meta.dart'; import 'package:universal_io/io.dart'; -import 'package:uri/uri.dart'; class Client extends DynamiteClient { Client( @@ -61,7 +60,6 @@ class Client extends DynamiteClient { /// * [$get] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse $getRaw({Uint8List? uint8List}) { - final _parameters = {}; final _headers = {}; Uint8List? _body; @@ -69,7 +67,7 @@ class Client extends DynamiteClient { if (uint8List != null) { _body = uint8List; } - final _path = UriTemplate('/').expand(_parameters); + const _path = '/'; return DynamiteRawResponse( response: executeRequest( 'get', @@ -112,7 +110,6 @@ class Client extends DynamiteClient { /// * [post] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse postRaw({String? string}) { - final _parameters = {}; final _headers = {}; Uint8List? _body; @@ -120,7 +117,7 @@ class Client extends DynamiteClient { if (string != null) { _body = utf8.encode(string); } - final _path = UriTemplate('/').expand(_parameters); + const _path = '/'; return DynamiteRawResponse( response: executeRequest( 'post', diff --git a/packages/dynamite/dynamite_end_to_end_test/lib/responses.openapi.dart b/packages/dynamite/dynamite_end_to_end_test/lib/responses.openapi.dart index 42180aad82b..2907fe79225 100644 --- a/packages/dynamite/dynamite_end_to_end_test/lib/responses.openapi.dart +++ b/packages/dynamite/dynamite_end_to_end_test/lib/responses.openapi.dart @@ -4,7 +4,6 @@ // ignore_for_file: unreachable_switch_case // ignore_for_file: unused_element // ignore_for_file: no_leading_underscores_for_local_identifiers -import 'dart:typed_data'; import 'package:built_value/serializer.dart'; import 'package:built_value/standard_json_plugin.dart'; @@ -12,7 +11,6 @@ import 'package:dynamite_runtime/built_value.dart'; import 'package:dynamite_runtime/http_client.dart'; import 'package:meta/meta.dart'; import 'package:universal_io/io.dart'; -import 'package:uri/uri.dart'; class Client extends DynamiteClient { Client( @@ -58,19 +56,17 @@ class Client extends DynamiteClient { /// * [$get] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse $getRaw() { - final _parameters = {}; - final _headers = { + const _headers = { 'Accept': 'application/json', }; - Uint8List? _body; - final _path = UriTemplate('/').expand(_parameters); + const _path = '/'; return DynamiteRawResponse( response: executeRequest( 'get', _path, _headers, - _body, + null, null, ), bodyType: const FullType(String), @@ -107,19 +103,17 @@ class Client extends DynamiteClient { /// * [put] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse putRaw() { - final _parameters = {}; - final _headers = { + const _headers = { 'Accept': 'application/json', }; - Uint8List? _body; - final _path = UriTemplate('/').expand(_parameters); + const _path = '/'; return DynamiteRawResponse( response: executeRequest( 'put', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(String), @@ -158,19 +152,17 @@ class Client extends DynamiteClient { /// * [post] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse postRaw() { - final _parameters = {}; - final _headers = { + const _headers = { 'Accept': 'application/json', }; - Uint8List? _body; - final _path = UriTemplate('/').expand(_parameters); + const _path = '/'; return DynamiteRawResponse( response: executeRequest( 'post', _path, _headers, - _body, + null, null, ), bodyType: const FullType(String), @@ -207,19 +199,17 @@ class Client extends DynamiteClient { /// * [patch] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse patchRaw() { - final _parameters = {}; - final _headers = { + const _headers = { 'Accept': 'application/json', }; - Uint8List? _body; - final _path = UriTemplate('/').expand(_parameters); + const _path = '/'; return DynamiteRawResponse( response: executeRequest( 'patch', _path, _headers, - _body, + null, const {200, 201}, ), bodyType: const FullType(String), diff --git a/packages/dynamite/dynamite_end_to_end_test/lib/some_of.openapi.dart b/packages/dynamite/dynamite_end_to_end_test/lib/some_of.openapi.dart index f82b2ac2819..c367d11673b 100644 --- a/packages/dynamite/dynamite_end_to_end_test/lib/some_of.openapi.dart +++ b/packages/dynamite/dynamite_end_to_end_test/lib/some_of.openapi.dart @@ -9,31 +9,11 @@ import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; import 'package:built_value/standard_json_plugin.dart'; import 'package:dynamite_runtime/built_value.dart'; -import 'package:dynamite_runtime/http_client.dart'; import 'package:dynamite_runtime/utils.dart' as dynamite_utils; import 'package:meta/meta.dart'; part 'some_of.openapi.g.dart'; -class Client extends DynamiteClient { - Client( - super.baseURL, { - super.baseHeaders, - super.userAgent, - super.httpClient, - super.cookieJar, - }); - - Client.fromClient(DynamiteClient client) - : super( - client.baseURL, - baseHeaders: client.baseHeaders, - httpClient: client.httpClient, - cookieJar: client.cookieJar, - authentications: client.authentications, - ); -} - @BuiltValue(instantiable: false) abstract interface class $OneValueSomeOfInObjectInterface { @BuiltValueField(wireName: 'OneValue') diff --git a/packages/dynamite/dynamite_end_to_end_test/lib/type_defs.openapi.dart b/packages/dynamite/dynamite_end_to_end_test/lib/type_defs.openapi.dart index 7ff13315481..a162ecef5d4 100644 --- a/packages/dynamite/dynamite_end_to_end_test/lib/type_defs.openapi.dart +++ b/packages/dynamite/dynamite_end_to_end_test/lib/type_defs.openapi.dart @@ -10,31 +10,11 @@ import 'package:built_value/json_object.dart'; import 'package:built_value/serializer.dart'; import 'package:built_value/standard_json_plugin.dart'; import 'package:dynamite_runtime/built_value.dart'; -import 'package:dynamite_runtime/http_client.dart'; import 'package:dynamite_runtime/utils.dart' as dynamite_utils; import 'package:meta/meta.dart'; part 'type_defs.openapi.g.dart'; -class Client extends DynamiteClient { - Client( - super.baseURL, { - super.baseHeaders, - super.userAgent, - super.httpClient, - super.cookieJar, - }); - - Client.fromClient(DynamiteClient client) - : super( - client.baseURL, - baseHeaders: client.baseHeaders, - httpClient: client.httpClient, - cookieJar: client.cookieJar, - authentications: client.authentications, - ); -} - typedef TypeResultBase = int; typedef EmptySchema = dynamic; diff --git a/packages/dynamite/dynamite_end_to_end_test/lib/types.openapi.dart b/packages/dynamite/dynamite_end_to_end_test/lib/types.openapi.dart index b1c2ccbe2e5..eb3886ff812 100644 --- a/packages/dynamite/dynamite_end_to_end_test/lib/types.openapi.dart +++ b/packages/dynamite/dynamite_end_to_end_test/lib/types.openapi.dart @@ -12,31 +12,11 @@ import 'package:built_value/json_object.dart'; import 'package:built_value/serializer.dart'; import 'package:built_value/standard_json_plugin.dart'; import 'package:dynamite_runtime/built_value.dart'; -import 'package:dynamite_runtime/http_client.dart'; import 'package:dynamite_runtime/models.dart'; import 'package:meta/meta.dart'; part 'types.openapi.g.dart'; -class Client extends DynamiteClient { - Client( - super.baseURL, { - super.baseHeaders, - super.userAgent, - super.httpClient, - super.cookieJar, - }); - - Client.fromClient(DynamiteClient client) - : super( - client.baseURL, - baseHeaders: client.baseHeaders, - httpClient: client.httpClient, - cookieJar: client.cookieJar, - authentications: client.authentications, - ); -} - typedef $Object = dynamic; typedef $String = dynamic; diff --git a/packages/dynamite/dynamite_petstore_example/lib/petstore.openapi.dart b/packages/dynamite/dynamite_petstore_example/lib/petstore.openapi.dart index 839772fcd6b..54b3f341565 100644 --- a/packages/dynamite/dynamite_petstore_example/lib/petstore.openapi.dart +++ b/packages/dynamite/dynamite_petstore_example/lib/petstore.openapi.dart @@ -94,10 +94,9 @@ class Client extends DynamiteClient { int? limit, }) { final _parameters = {}; - final _headers = { + const _headers = { 'Accept': 'application/json', }; - Uint8List? _body; var $tags = jsonSerializers.serialize(tags, specifiedType: const FullType(BuiltList, [FullType(String)])); _parameters['tags'] = $tags; @@ -111,7 +110,7 @@ class Client extends DynamiteClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: FullType(BuiltList, [FullType(Pet)]), @@ -154,15 +153,14 @@ class Client extends DynamiteClient { /// * [addPet] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse addPetRaw({required NewPet newPet}) { - final _parameters = {}; - final _headers = { + const _headers = { 'Accept': 'application/json', }; Uint8List? _body; _headers['Content-Type'] = 'application/json'; _body = utf8.encode(json.encode(jsonSerializers.serialize(newPet, specifiedType: const FullType(NewPet)))); - final _path = UriTemplate('/pets').expand(_parameters); + const _path = '/pets'; return DynamiteRawResponse( response: this.executeRequest( 'post', @@ -218,10 +216,9 @@ class Client extends DynamiteClient { @experimental DynamiteRawResponse findPetByIdRaw({required int id}) { final _parameters = {}; - final _headers = { + const _headers = { 'Accept': 'application/json', }; - Uint8List? _body; var $id = jsonSerializers.serialize(id, specifiedType: const FullType(int)); _parameters['id'] = $id; @@ -232,7 +229,7 @@ class Client extends DynamiteClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: FullType(Pet), @@ -283,7 +280,6 @@ class Client extends DynamiteClient { DynamiteRawResponse deletePetRaw({required int id}) { final _parameters = {}; final _headers = {}; - Uint8List? _body; var $id = jsonSerializers.serialize(id, specifiedType: const FullType(int)); _parameters['id'] = $id; @@ -294,7 +290,7 @@ class Client extends DynamiteClient { 'delete', _path, _headers, - _body, + null, const {204}, ), bodyType: null, diff --git a/packages/nextcloud/bin/generate_exports.dart b/packages/nextcloud/bin/generate_exports.dart index 5fc40a568ea..56554b1f151 100644 --- a/packages/nextcloud/bin/generate_exports.dart +++ b/packages/nextcloud/bin/generate_exports.dart @@ -29,6 +29,11 @@ void main() { exports.add("export 'src/helpers/$id.dart';"); } + if (!file.readAsStringSync().contains('class Client extends DynamiteClient {')) { + File('lib/$id.dart').writeAsStringSync(exports.join('\n')); + continue; + } + File('lib/$id.dart').writeAsStringSync(''' // coverage:ignore-file import 'package:nextcloud/src/api/$id.openapi.dart'; diff --git a/packages/nextcloud/lib/comments.dart b/packages/nextcloud/lib/comments.dart index 299a0716925..29764bcb2a1 100644 --- a/packages/nextcloud/lib/comments.dart +++ b/packages/nextcloud/lib/comments.dart @@ -1,13 +1 @@ -// coverage:ignore-file -import 'package:nextcloud/src/api/comments.openapi.dart'; -import 'package:nextcloud/src/client.dart'; - export 'src/api/comments.openapi.dart'; - -// ignore: public_member_api_docs -extension CommentsExtension on NextcloudClient { - static final _comments = Expando(); - - /// Client for the comments APIs - Client get comments => _comments[this] ??= Client.fromClient(this); -} diff --git a/packages/nextcloud/lib/sharebymail.dart b/packages/nextcloud/lib/sharebymail.dart index 27c5d257d94..4462636b912 100644 --- a/packages/nextcloud/lib/sharebymail.dart +++ b/packages/nextcloud/lib/sharebymail.dart @@ -1,13 +1 @@ -// coverage:ignore-file -import 'package:nextcloud/src/api/sharebymail.openapi.dart'; -import 'package:nextcloud/src/client.dart'; - export 'src/api/sharebymail.openapi.dart'; - -// ignore: public_member_api_docs -extension SharebymailExtension on NextcloudClient { - static final _sharebymail = Expando(); - - /// Client for the sharebymail APIs - Client get sharebymail => _sharebymail[this] ??= Client.fromClient(this); -} diff --git a/packages/nextcloud/lib/src/api/comments.openapi.dart b/packages/nextcloud/lib/src/api/comments.openapi.dart index 87a4445d670..62f33b83831 100644 --- a/packages/nextcloud/lib/src/api/comments.openapi.dart +++ b/packages/nextcloud/lib/src/api/comments.openapi.dart @@ -9,31 +9,10 @@ import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; import 'package:built_value/standard_json_plugin.dart'; import 'package:dynamite_runtime/built_value.dart'; -import 'package:dynamite_runtime/http_client.dart'; import 'package:meta/meta.dart'; part 'comments.openapi.g.dart'; -class Client extends DynamiteClient { - Client( - super.baseURL, { - super.baseHeaders, - super.userAgent, - super.httpClient, - super.cookieJar, - super.authentications, - }); - - Client.fromClient(DynamiteClient client) - : super( - client.baseURL, - baseHeaders: client.baseHeaders, - httpClient: client.httpClient, - cookieJar: client.cookieJar, - authentications: client.authentications, - ); -} - @BuiltValue(instantiable: false) abstract interface class $Capabilities_FilesInterface { bool get comments; diff --git a/packages/nextcloud/lib/src/api/core.openapi.dart b/packages/nextcloud/lib/src/api/core.openapi.dart index a31ad596927..3225a8c8bb7 100644 --- a/packages/nextcloud/lib/src/api/core.openapi.dart +++ b/packages/nextcloud/lib/src/api/core.openapi.dart @@ -107,19 +107,17 @@ class Client extends DynamiteClient { /// * [getStatus] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse getStatusRaw() { - final _parameters = {}; - final _headers = { + const _headers = { 'Accept': 'application/json', }; - Uint8List? _body; - final _path = UriTemplate('/status.php').expand(_parameters); + const _path = '/status.php'; return DynamiteRawResponse( response: executeRequest( 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(Status), @@ -176,11 +174,9 @@ class AppPasswordClient { /// * [getAppPassword] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse getAppPasswordRaw({bool? oCSAPIRequest}) { - final _parameters = {}; final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -203,13 +199,13 @@ class AppPasswordClient { $oCSAPIRequest ??= true; _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final _path = UriTemplate('/ocs/v2.php/core/getapppassword').expand(_parameters); + const _path = '/ocs/v2.php/core/getapppassword'; return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(AppPasswordGetAppPasswordResponseApplicationJson), @@ -262,11 +258,9 @@ class AppPasswordClient { DynamiteRawResponse rotateAppPasswordRaw({ bool? oCSAPIRequest, }) { - final _parameters = {}; final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -289,13 +283,13 @@ class AppPasswordClient { $oCSAPIRequest ??= true; _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final _path = UriTemplate('/ocs/v2.php/core/apppassword/rotate').expand(_parameters); + const _path = '/ocs/v2.php/core/apppassword/rotate'; return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(AppPasswordRotateAppPasswordResponseApplicationJson), @@ -348,11 +342,9 @@ class AppPasswordClient { DynamiteRawResponse deleteAppPasswordRaw({ bool? oCSAPIRequest, }) { - final _parameters = {}; final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -375,13 +367,13 @@ class AppPasswordClient { $oCSAPIRequest ??= true; _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final _path = UriTemplate('/ocs/v2.php/core/apppassword').expand(_parameters); + const _path = '/ocs/v2.php/core/apppassword'; return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(AppPasswordDeleteAppPasswordResponseApplicationJson), @@ -472,7 +464,6 @@ class AutoCompleteClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -523,7 +514,7 @@ class AutoCompleteClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(AutoCompleteGetResponseApplicationJson), @@ -592,7 +583,6 @@ class AvatarClient { final _headers = { 'Accept': '*/*', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -621,7 +611,7 @@ class AvatarClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(Uint8List), @@ -683,7 +673,6 @@ class AvatarClient { final _headers = { 'Accept': '*/*', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -712,7 +701,7 @@ class AvatarClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(Uint8List), @@ -771,7 +760,6 @@ class ClientFlowLoginV2Client { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -797,7 +785,7 @@ class ClientFlowLoginV2Client { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(LoginFlowV2Credentials), @@ -836,11 +824,9 @@ class ClientFlowLoginV2Client { /// * [init] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse initRaw() { - final _parameters = {}; final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -857,13 +843,13 @@ class ClientFlowLoginV2Client { } // coverage:ignore-end - final _path = UriTemplate('/index.php/login/v2').expand(_parameters); + const _path = '/index.php/login/v2'; return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(LoginFlowV2), @@ -931,7 +917,6 @@ class CollaborationResourcesClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -963,7 +948,7 @@ class CollaborationResourcesClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(CollaborationResourcesSearchCollectionsResponseApplicationJson), @@ -1027,7 +1012,6 @@ class CollaborationResourcesClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1059,7 +1043,7 @@ class CollaborationResourcesClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(CollaborationResourcesListCollectionResponseApplicationJson), @@ -1128,7 +1112,6 @@ class CollaborationResourcesClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1164,7 +1147,7 @@ class CollaborationResourcesClient { 'put', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(CollaborationResourcesRenameCollectionResponseApplicationJson), @@ -1238,7 +1221,6 @@ class CollaborationResourcesClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1278,7 +1260,7 @@ class CollaborationResourcesClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(CollaborationResourcesAddResourceResponseApplicationJson), @@ -1352,7 +1334,6 @@ class CollaborationResourcesClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1392,7 +1373,7 @@ class CollaborationResourcesClient { 'delete', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(CollaborationResourcesRemoveResourceResponseApplicationJson), @@ -1461,7 +1442,6 @@ class CollaborationResourcesClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1496,7 +1476,7 @@ class CollaborationResourcesClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(CollaborationResourcesGetCollectionsByResourceResponseApplicationJson), @@ -1574,7 +1554,6 @@ class CollaborationResourcesClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1613,7 +1592,7 @@ class CollaborationResourcesClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(CollaborationResourcesCreateCollectionOnResourceResponseApplicationJson), @@ -1684,7 +1663,6 @@ class GuestAvatarClient { final _headers = { 'Accept': '*/*', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1713,7 +1691,7 @@ class GuestAvatarClient { 'get', _path, _headers, - _body, + null, const {200, 201}, ), bodyType: const FullType(Uint8List), @@ -1782,7 +1760,6 @@ class GuestAvatarClient { final _headers = { 'Accept': '*/*', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1815,7 +1792,7 @@ class GuestAvatarClient { 'get', _path, _headers, - _body, + null, const {200, 201}, ), bodyType: const FullType(Uint8List), @@ -1883,7 +1860,6 @@ class HoverCardClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1915,7 +1891,7 @@ class HoverCardClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(HoverCardGetUserResponseApplicationJson), @@ -1983,7 +1959,6 @@ class NavigationClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2016,7 +1991,7 @@ class NavigationClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(NavigationGetAppsNavigationResponseApplicationJson), @@ -2078,7 +2053,6 @@ class NavigationClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2111,7 +2085,7 @@ class NavigationClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(NavigationGetSettingsNavigationResponseApplicationJson), @@ -2159,11 +2133,9 @@ class OcmClient { /// * [discovery] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse discoveryRaw() { - final _parameters = {}; final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2180,13 +2152,13 @@ class OcmClient { } // coverage:ignore-end - final _path = UriTemplate('/index.php/ocm-provider').expand(_parameters); + const _path = '/index.php/ocm-provider'; return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(OcmDiscoveryResponseApplicationJson), @@ -2241,11 +2213,9 @@ class OcsClient { /// * [getCapabilities] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse getCapabilitiesRaw({bool? oCSAPIRequest}) { - final _parameters = {}; final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2266,13 +2236,13 @@ class OcsClient { $oCSAPIRequest ??= true; _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final _path = UriTemplate('/ocs/v2.php/cloud/capabilities').expand(_parameters); + const _path = '/ocs/v2.php/cloud/capabilities'; return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(OcsGetCapabilitiesResponseApplicationJson), @@ -2371,7 +2341,6 @@ class PreviewClient { final _headers = { 'Accept': '*/*', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2425,7 +2394,7 @@ class PreviewClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(Uint8List), @@ -2518,7 +2487,6 @@ class PreviewClient { final _headers = { 'Accept': '*/*', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2572,7 +2540,7 @@ class PreviewClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(Uint8List), @@ -2654,7 +2622,6 @@ class ProfileApiClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2692,7 +2659,7 @@ class ProfileApiClient { 'put', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(ProfileApiSetVisibilityResponseApplicationJson), @@ -2751,7 +2718,6 @@ class ReferenceClient { final _headers = { 'Accept': '*/*', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2777,7 +2743,7 @@ class ReferenceClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(Uint8List), @@ -2843,7 +2809,6 @@ class ReferenceApiClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2875,7 +2840,7 @@ class ReferenceApiClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(ReferenceApiResolveOneResponseApplicationJson), @@ -2940,7 +2905,6 @@ class ReferenceApiClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2977,7 +2941,7 @@ class ReferenceApiClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(ReferenceApiResolveResponseApplicationJson), @@ -3047,7 +3011,6 @@ class ReferenceApiClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3087,7 +3050,7 @@ class ReferenceApiClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(ReferenceApiExtractResponseApplicationJson), @@ -3138,11 +3101,9 @@ class ReferenceApiClient { DynamiteRawResponse getProvidersInfoRaw({ bool? oCSAPIRequest, }) { - final _parameters = {}; final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3165,13 +3126,13 @@ class ReferenceApiClient { $oCSAPIRequest ??= true; _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final _path = UriTemplate('/ocs/v2.php/references/providers').expand(_parameters); + const _path = '/ocs/v2.php/references/providers'; return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(ReferenceApiGetProvidersInfoResponseApplicationJson), @@ -3236,7 +3197,6 @@ class ReferenceApiClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3271,7 +3231,7 @@ class ReferenceApiClient { 'put', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(ReferenceApiTouchProviderResponseApplicationJson), @@ -3326,11 +3286,9 @@ class TextProcessingApiClient { /// * [taskTypes] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse taskTypesRaw({bool? oCSAPIRequest}) { - final _parameters = {}; final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3351,13 +3309,13 @@ class TextProcessingApiClient { $oCSAPIRequest ??= true; _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final _path = UriTemplate('/ocs/v2.php/textprocessing/tasktypes').expand(_parameters); + const _path = '/ocs/v2.php/textprocessing/tasktypes'; return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(TextProcessingApiTaskTypesResponseApplicationJson), @@ -3436,7 +3394,6 @@ class TextProcessingApiClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3477,7 +3434,7 @@ class TextProcessingApiClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(TextProcessingApiScheduleResponseApplicationJson), @@ -3541,7 +3498,6 @@ class TextProcessingApiClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3571,7 +3527,7 @@ class TextProcessingApiClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(TextProcessingApiGetTaskResponseApplicationJson), @@ -3635,7 +3591,6 @@ class TextProcessingApiClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3667,7 +3622,7 @@ class TextProcessingApiClient { 'delete', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(TextProcessingApiDeleteTaskResponseApplicationJson), @@ -3734,7 +3689,6 @@ class TextProcessingApiClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3769,7 +3723,7 @@ class TextProcessingApiClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(TextProcessingApiListTasksByAppResponseApplicationJson), @@ -3824,11 +3778,9 @@ class TextToImageApiClient { /// * [isAvailable] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse isAvailableRaw({bool? oCSAPIRequest}) { - final _parameters = {}; final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3849,13 +3801,13 @@ class TextToImageApiClient { $oCSAPIRequest ??= true; _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final _path = UriTemplate('/ocs/v2.php/text2image/is_available').expand(_parameters); + const _path = '/ocs/v2.php/text2image/is_available'; return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(TextToImageApiIsAvailableResponseApplicationJson), @@ -3934,7 +3886,6 @@ class TextToImageApiClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3976,7 +3927,7 @@ class TextToImageApiClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(TextToImageApiScheduleResponseApplicationJson), @@ -4040,7 +3991,6 @@ class TextToImageApiClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -4070,7 +4020,7 @@ class TextToImageApiClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(TextToImageApiGetTaskResponseApplicationJson), @@ -4134,7 +4084,6 @@ class TextToImageApiClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -4166,7 +4115,7 @@ class TextToImageApiClient { 'delete', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(TextToImageApiDeleteTaskResponseApplicationJson), @@ -4235,7 +4184,6 @@ class TextToImageApiClient { final _headers = { 'Accept': '*/*', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -4268,7 +4216,7 @@ class TextToImageApiClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(Uint8List), @@ -4335,7 +4283,6 @@ class TextToImageApiClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -4370,7 +4317,7 @@ class TextToImageApiClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(TextToImageApiListTasksByAppResponseApplicationJson), @@ -4425,11 +4372,9 @@ class TranslationApiClient { /// * [languages] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse languagesRaw({bool? oCSAPIRequest}) { - final _parameters = {}; final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -4450,13 +4395,13 @@ class TranslationApiClient { $oCSAPIRequest ??= true; _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final _path = UriTemplate('/ocs/v2.php/translation/languages').expand(_parameters); + const _path = '/ocs/v2.php/translation/languages'; return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(TranslationApiLanguagesResponseApplicationJson), @@ -4532,7 +4477,6 @@ class TranslationApiClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -4569,7 +4513,7 @@ class TranslationApiClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(TranslationApiTranslateResponseApplicationJson), @@ -4635,7 +4579,6 @@ class UnifiedSearchClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -4668,7 +4611,7 @@ class UnifiedSearchClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(UnifiedSearchGetProvidersResponseApplicationJson), @@ -4755,7 +4698,6 @@ class UnifiedSearchClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -4809,7 +4751,7 @@ class UnifiedSearchClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(UnifiedSearchSearchResponseApplicationJson), @@ -4864,11 +4806,9 @@ class WhatsNewClient { /// * [$get] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse $getRaw({bool? oCSAPIRequest}) { - final _parameters = {}; final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -4891,13 +4831,13 @@ class WhatsNewClient { $oCSAPIRequest ??= true; _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final _path = UriTemplate('/ocs/v2.php/core/whatsnew').expand(_parameters); + const _path = '/ocs/v2.php/core/whatsnew'; return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(WhatsNewGetResponseApplicationJson), @@ -4959,7 +4899,6 @@ class WhatsNewClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -4991,7 +4930,7 @@ class WhatsNewClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(WhatsNewDismissResponseApplicationJson), @@ -5050,7 +4989,6 @@ class WipeClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -5076,7 +5014,7 @@ class WipeClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(WipeCheckWipeResponseApplicationJson), @@ -5129,7 +5067,6 @@ class WipeClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -5155,7 +5092,7 @@ class WipeClient { 'post', _path, _headers, - _body, + null, const {200, 404}, ), bodyType: const FullType(JsonObject), diff --git a/packages/nextcloud/lib/src/api/dashboard.openapi.dart b/packages/nextcloud/lib/src/api/dashboard.openapi.dart index 7f7852da5c6..53c0a431e1f 100644 --- a/packages/nextcloud/lib/src/api/dashboard.openapi.dart +++ b/packages/nextcloud/lib/src/api/dashboard.openapi.dart @@ -4,7 +4,6 @@ // ignore_for_file: unreachable_switch_case // ignore_for_file: camel_case_extensions // ignore_for_file: no_leading_underscores_for_local_identifiers -import 'dart:typed_data'; import 'package:built_collection/built_collection.dart'; import 'package:built_value/built_value.dart'; @@ -87,11 +86,9 @@ class DashboardApiClient { /// * [getWidgets] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse getWidgetsRaw({bool? oCSAPIRequest}) { - final _parameters = {}; final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -114,13 +111,13 @@ class DashboardApiClient { $oCSAPIRequest ??= true; _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final _path = UriTemplate('/ocs/v2.php/apps/dashboard/api/v1/widgets').expand(_parameters); + const _path = '/ocs/v2.php/apps/dashboard/api/v1/widgets'; return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(DashboardApiGetWidgetsResponseApplicationJson), @@ -190,7 +187,6 @@ class DashboardApiClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -236,7 +232,7 @@ class DashboardApiClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(DashboardApiGetWidgetItemsResponseApplicationJson), @@ -310,7 +306,6 @@ class DashboardApiClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -356,7 +351,7 @@ class DashboardApiClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(DashboardApiGetWidgetItemsV2ResponseApplicationJson), diff --git a/packages/nextcloud/lib/src/api/dav.openapi.dart b/packages/nextcloud/lib/src/api/dav.openapi.dart index 77a4d1da92e..091287bb998 100644 --- a/packages/nextcloud/lib/src/api/dav.openapi.dart +++ b/packages/nextcloud/lib/src/api/dav.openapi.dart @@ -4,7 +4,6 @@ // ignore_for_file: unreachable_switch_case // ignore_for_file: camel_case_extensions // ignore_for_file: no_leading_underscores_for_local_identifiers -import 'dart:typed_data'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -107,7 +106,6 @@ class DirectClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -142,7 +140,7 @@ class DirectClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(DirectGetUrlResponseApplicationJson), diff --git a/packages/nextcloud/lib/src/api/files.openapi.dart b/packages/nextcloud/lib/src/api/files.openapi.dart index c369efe1ede..b1e592c5810 100644 --- a/packages/nextcloud/lib/src/api/files.openapi.dart +++ b/packages/nextcloud/lib/src/api/files.openapi.dart @@ -116,7 +116,6 @@ class ApiClient { final _headers = { 'Accept': '*/*', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -151,7 +150,7 @@ class ApiClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(Uint8List), @@ -204,11 +203,9 @@ class DirectEditingClient { /// * [info] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse infoRaw({bool? oCSAPIRequest}) { - final _parameters = {}; final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -231,13 +228,13 @@ class DirectEditingClient { $oCSAPIRequest ??= true; _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final _path = UriTemplate('/ocs/v2.php/apps/files/api/v1/directEditing').expand(_parameters); + const _path = '/ocs/v2.php/apps/files/api/v1/directEditing'; return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(DirectEditingInfoResponseApplicationJson), @@ -304,7 +301,6 @@ class DirectEditingClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -340,7 +336,7 @@ class DirectEditingClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(DirectEditingTemplatesResponseApplicationJson), @@ -414,7 +410,6 @@ class DirectEditingClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -453,7 +448,7 @@ class DirectEditingClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(DirectEditingOpenResponseApplicationJson), @@ -532,7 +527,6 @@ class DirectEditingClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -575,7 +569,7 @@ class DirectEditingClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(DirectEditingCreateResponseApplicationJson), @@ -643,7 +637,6 @@ class OpenLocalEditorClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -675,7 +668,7 @@ class OpenLocalEditorClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(OpenLocalEditorCreateResponseApplicationJson), @@ -742,7 +735,6 @@ class OpenLocalEditorClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -777,7 +769,7 @@ class OpenLocalEditorClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(OpenLocalEditorValidateResponseApplicationJson), @@ -830,11 +822,9 @@ class TemplateClient { /// * [list] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse listRaw({bool? oCSAPIRequest}) { - final _parameters = {}; final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -857,13 +847,13 @@ class TemplateClient { $oCSAPIRequest ??= true; _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final _path = UriTemplate('/ocs/v2.php/apps/files/api/v1/templates').expand(_parameters); + const _path = '/ocs/v2.php/apps/files/api/v1/templates'; return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(TemplateListResponseApplicationJson), @@ -935,7 +925,6 @@ class TemplateClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -976,7 +965,7 @@ class TemplateClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(TemplateCreateResponseApplicationJson), @@ -1043,7 +1032,6 @@ class TemplateClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1081,7 +1069,7 @@ class TemplateClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(TemplatePathResponseApplicationJson), @@ -1156,7 +1144,6 @@ class TransferOwnershipClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1191,7 +1178,7 @@ class TransferOwnershipClient { 'post', _path, _headers, - _body, + null, const {200, 400, 403}, ), bodyType: const FullType(TransferOwnershipTransferResponseApplicationJson), @@ -1255,7 +1242,6 @@ class TransferOwnershipClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1287,7 +1273,7 @@ class TransferOwnershipClient { 'post', _path, _headers, - _body, + null, const {200, 403, 404}, ), bodyType: const FullType(TransferOwnershipAcceptResponseApplicationJson), @@ -1351,7 +1337,6 @@ class TransferOwnershipClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1383,7 +1368,7 @@ class TransferOwnershipClient { 'delete', _path, _headers, - _body, + null, const {200, 403, 404}, ), bodyType: const FullType(TransferOwnershipRejectResponseApplicationJson), diff --git a/packages/nextcloud/lib/src/api/files_external.openapi.dart b/packages/nextcloud/lib/src/api/files_external.openapi.dart index e4b7e5eed12..0bff4fd546c 100644 --- a/packages/nextcloud/lib/src/api/files_external.openapi.dart +++ b/packages/nextcloud/lib/src/api/files_external.openapi.dart @@ -4,7 +4,6 @@ // ignore_for_file: unreachable_switch_case // ignore_for_file: camel_case_extensions // ignore_for_file: no_leading_underscores_for_local_identifiers -import 'dart:typed_data'; import 'package:built_collection/built_collection.dart'; import 'package:built_value/built_value.dart'; @@ -16,7 +15,6 @@ import 'package:dynamite_runtime/built_value.dart'; import 'package:dynamite_runtime/http_client.dart'; import 'package:meta/meta.dart'; import 'package:universal_io/io.dart'; -import 'package:uri/uri.dart'; part 'files_external.openapi.g.dart'; @@ -85,11 +83,9 @@ class ApiClient { /// * [getUserMounts] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse getUserMountsRaw({bool? oCSAPIRequest}) { - final _parameters = {}; final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -112,13 +108,13 @@ class ApiClient { $oCSAPIRequest ??= true; _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final _path = UriTemplate('/ocs/v2.php/apps/files_external/api/v1/mounts').expand(_parameters); + const _path = '/ocs/v2.php/apps/files_external/api/v1/mounts'; return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(ApiGetUserMountsResponseApplicationJson), diff --git a/packages/nextcloud/lib/src/api/files_reminders.openapi.dart b/packages/nextcloud/lib/src/api/files_reminders.openapi.dart index de08a019164..4034c6a8911 100644 --- a/packages/nextcloud/lib/src/api/files_reminders.openapi.dart +++ b/packages/nextcloud/lib/src/api/files_reminders.openapi.dart @@ -4,7 +4,6 @@ // ignore_for_file: unreachable_switch_case // ignore_for_file: camel_case_extensions // ignore_for_file: no_leading_underscores_for_local_identifiers -import 'dart:typed_data'; import 'package:built_value/built_value.dart'; import 'package:built_value/json_object.dart'; @@ -105,7 +104,6 @@ class ApiClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -141,7 +139,7 @@ class ApiClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(ApiGetResponseApplicationJson), @@ -219,7 +217,6 @@ class ApiClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -259,7 +256,7 @@ class ApiClient { 'put', _path, _headers, - _body, + null, const {200, 201, 400, 401, 404}, ), bodyType: const FullType(ApiSetResponseApplicationJson), @@ -328,7 +325,6 @@ class ApiClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -364,7 +360,7 @@ class ApiClient { 'delete', _path, _headers, - _body, + null, const {200, 401, 404}, ), bodyType: const FullType(ApiRemoveResponseApplicationJson), diff --git a/packages/nextcloud/lib/src/api/files_sharing.openapi.dart b/packages/nextcloud/lib/src/api/files_sharing.openapi.dart index 63eb2f8829d..14667e27928 100644 --- a/packages/nextcloud/lib/src/api/files_sharing.openapi.dart +++ b/packages/nextcloud/lib/src/api/files_sharing.openapi.dart @@ -97,11 +97,9 @@ class DeletedShareapiClient { /// * [list] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse listRaw({bool? oCSAPIRequest}) { - final _parameters = {}; final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -124,13 +122,13 @@ class DeletedShareapiClient { $oCSAPIRequest ??= true; _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final _path = UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/deletedshares').expand(_parameters); + const _path = '/ocs/v2.php/apps/files_sharing/api/v1/deletedshares'; return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(DeletedShareapiListResponseApplicationJson), @@ -192,7 +190,6 @@ class DeletedShareapiClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -224,7 +221,7 @@ class DeletedShareapiClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(DeletedShareapiUndeleteResponseApplicationJson), @@ -296,7 +293,6 @@ class PublicPreviewClient { final _headers = { 'Accept': '*/*', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -326,7 +322,7 @@ class PublicPreviewClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(Uint8List), @@ -412,7 +408,6 @@ class PublicPreviewClient { final _headers = { 'Accept': '*/*', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -459,7 +454,7 @@ class PublicPreviewClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(Uint8List), @@ -512,11 +507,9 @@ class RemoteClient { /// * [getShares] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse getSharesRaw({bool? oCSAPIRequest}) { - final _parameters = {}; final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -539,13 +532,13 @@ class RemoteClient { $oCSAPIRequest ??= true; _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final _path = UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/remote_shares').expand(_parameters); + const _path = '/ocs/v2.php/apps/files_sharing/api/v1/remote_shares'; return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(RemoteGetSharesResponseApplicationJson), @@ -594,11 +587,9 @@ class RemoteClient { /// * [getOpenShares] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse getOpenSharesRaw({bool? oCSAPIRequest}) { - final _parameters = {}; final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -621,13 +612,13 @@ class RemoteClient { $oCSAPIRequest ??= true; _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final _path = UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/remote_shares/pending').expand(_parameters); + const _path = '/ocs/v2.php/apps/files_sharing/api/v1/remote_shares/pending'; return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(RemoteGetOpenSharesResponseApplicationJson), @@ -689,7 +680,6 @@ class RemoteClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -721,7 +711,7 @@ class RemoteClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(RemoteAcceptShareResponseApplicationJson), @@ -783,7 +773,6 @@ class RemoteClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -815,7 +804,7 @@ class RemoteClient { 'delete', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(RemoteDeclineShareResponseApplicationJson), @@ -877,7 +866,6 @@ class RemoteClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -909,7 +897,7 @@ class RemoteClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(RemoteGetShareResponseApplicationJson), @@ -973,7 +961,6 @@ class RemoteClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1005,7 +992,7 @@ class RemoteClient { 'delete', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(RemoteUnshareResponseApplicationJson), @@ -1085,7 +1072,6 @@ class ShareInfoClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1121,7 +1107,7 @@ class ShareInfoClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(ShareInfo), @@ -1209,7 +1195,6 @@ class ShareapiClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1260,7 +1245,7 @@ class ShareapiClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(ShareapiGetSharesResponseApplicationJson), @@ -1376,7 +1361,6 @@ class ShareapiClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1446,7 +1430,7 @@ class ShareapiClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(ShareapiCreateShareResponseApplicationJson), @@ -1510,7 +1494,6 @@ class ShareapiClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1542,7 +1525,7 @@ class ShareapiClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(ShareapiGetInheritedSharesResponseApplicationJson), @@ -1591,11 +1574,9 @@ class ShareapiClient { /// * [pendingShares] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse pendingSharesRaw({bool? oCSAPIRequest}) { - final _parameters = {}; final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1618,13 +1599,13 @@ class ShareapiClient { $oCSAPIRequest ??= true; _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final _path = UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/shares/pending').expand(_parameters); + const _path = '/ocs/v2.php/apps/files_sharing/api/v1/shares/pending'; return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(ShareapiPendingSharesResponseApplicationJson), @@ -1691,7 +1672,6 @@ class ShareapiClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1727,7 +1707,7 @@ class ShareapiClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(ShareapiGetShareResponseApplicationJson), @@ -1838,7 +1818,6 @@ class ShareapiClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1899,7 +1878,7 @@ class ShareapiClient { 'put', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(ShareapiUpdateShareResponseApplicationJson), @@ -1963,7 +1942,6 @@ class ShareapiClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1995,7 +1973,7 @@ class ShareapiClient { 'delete', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(ShareapiDeleteShareResponseApplicationJson), @@ -2059,7 +2037,6 @@ class ShareapiClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2091,7 +2068,7 @@ class ShareapiClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(ShareapiAcceptShareResponseApplicationJson), @@ -2184,7 +2161,6 @@ class ShareesapiClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2240,7 +2216,7 @@ class ShareesapiClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(ShareesapiSearchResponseApplicationJson), @@ -2305,7 +2281,6 @@ class ShareesapiClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2344,7 +2319,7 @@ class ShareesapiClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(ShareesapiFindRecommendedResponseApplicationJson), diff --git a/packages/nextcloud/lib/src/api/files_trashbin.openapi.dart b/packages/nextcloud/lib/src/api/files_trashbin.openapi.dart index 7acf7f93e56..b8574cf863d 100644 --- a/packages/nextcloud/lib/src/api/files_trashbin.openapi.dart +++ b/packages/nextcloud/lib/src/api/files_trashbin.openapi.dart @@ -110,7 +110,6 @@ class PreviewClient { final _headers = { 'Accept': '*/*', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -151,7 +150,7 @@ class PreviewClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(Uint8List), diff --git a/packages/nextcloud/lib/src/api/files_versions.openapi.dart b/packages/nextcloud/lib/src/api/files_versions.openapi.dart index fb4c560249c..16c76ad841e 100644 --- a/packages/nextcloud/lib/src/api/files_versions.openapi.dart +++ b/packages/nextcloud/lib/src/api/files_versions.openapi.dart @@ -110,7 +110,6 @@ class PreviewClient { final _headers = { 'Accept': '*/*', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -151,7 +150,7 @@ class PreviewClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(Uint8List), diff --git a/packages/nextcloud/lib/src/api/news.openapi.dart b/packages/nextcloud/lib/src/api/news.openapi.dart index 6499e446807..c5f3a0c96cb 100644 --- a/packages/nextcloud/lib/src/api/news.openapi.dart +++ b/packages/nextcloud/lib/src/api/news.openapi.dart @@ -4,7 +4,6 @@ // ignore_for_file: unreachable_switch_case // ignore_for_file: camel_case_extensions // ignore_for_file: no_leading_underscores_for_local_identifiers -import 'dart:typed_data'; import 'package:built_collection/built_collection.dart'; import 'package:built_value/built_value.dart'; @@ -65,11 +64,9 @@ class Client extends DynamiteClient { /// * [getSupportedApiVersions] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse getSupportedApiVersionsRaw() { - final _parameters = {}; final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -88,13 +85,13 @@ class Client extends DynamiteClient { } // coverage:ignore-end - final _path = UriTemplate('/index.php/apps/news/api').expand(_parameters); + const _path = '/index.php/apps/news/api'; return DynamiteRawResponse( response: executeRequest( 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(SupportedAPIVersions), @@ -129,11 +126,9 @@ class Client extends DynamiteClient { /// * [listFolders] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse listFoldersRaw() { - final _parameters = {}; final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -152,13 +147,13 @@ class Client extends DynamiteClient { } // coverage:ignore-end - final _path = UriTemplate('/index.php/apps/news/api/v1-3/folders').expand(_parameters); + const _path = '/index.php/apps/news/api/v1-3/folders'; return DynamiteRawResponse( response: executeRequest( 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(ListFolders), @@ -205,7 +200,6 @@ class Client extends DynamiteClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -233,7 +227,7 @@ class Client extends DynamiteClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(ListFolders), @@ -285,7 +279,6 @@ class Client extends DynamiteClient { }) { final _parameters = {}; final _headers = {}; - Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -316,7 +309,7 @@ class Client extends DynamiteClient { 'put', _path, _headers, - _body, + null, const {200}, ), bodyType: null, @@ -355,7 +348,6 @@ class Client extends DynamiteClient { DynamiteRawResponse deleteFolderRaw({required int folderId}) { final _parameters = {}; final _headers = {}; - Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -383,7 +375,7 @@ class Client extends DynamiteClient { 'delete', _path, _headers, - _body, + null, const {200}, ), bodyType: null, @@ -435,7 +427,6 @@ class Client extends DynamiteClient { }) { final _parameters = {}; final _headers = {}; - Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -467,7 +458,7 @@ class Client extends DynamiteClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: null, @@ -502,11 +493,9 @@ class Client extends DynamiteClient { /// * [listFeeds] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse listFeedsRaw() { - final _parameters = {}; final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -525,13 +514,13 @@ class Client extends DynamiteClient { } // coverage:ignore-end - final _path = UriTemplate('/index.php/apps/news/api/v1-3/feeds').expand(_parameters); + const _path = '/index.php/apps/news/api/v1-3/feeds'; return DynamiteRawResponse( response: executeRequest( 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(ListFeeds), @@ -587,7 +576,6 @@ class Client extends DynamiteClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -618,7 +606,7 @@ class Client extends DynamiteClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(ListFeeds), @@ -657,7 +645,6 @@ class Client extends DynamiteClient { DynamiteRawResponse deleteFeedRaw({required int feedId}) { final _parameters = {}; final _headers = {}; - Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -685,7 +672,7 @@ class Client extends DynamiteClient { 'delete', _path, _headers, - _body, + null, const {200}, ), bodyType: null, @@ -737,7 +724,6 @@ class Client extends DynamiteClient { }) { final _parameters = {}; final _headers = {}; - Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -768,7 +754,7 @@ class Client extends DynamiteClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: null, @@ -820,7 +806,6 @@ class Client extends DynamiteClient { }) { final _parameters = {}; final _headers = {}; - Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -851,7 +836,7 @@ class Client extends DynamiteClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: null, @@ -903,7 +888,6 @@ class Client extends DynamiteClient { }) { final _parameters = {}; final _headers = {}; - Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -934,7 +918,7 @@ class Client extends DynamiteClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: null, @@ -1010,7 +994,6 @@ class Client extends DynamiteClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -1061,7 +1044,7 @@ class Client extends DynamiteClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(ListArticles), @@ -1122,7 +1105,6 @@ class Client extends DynamiteClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -1160,7 +1142,7 @@ class Client extends DynamiteClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(ListArticles), @@ -1199,7 +1181,6 @@ class Client extends DynamiteClient { DynamiteRawResponse markArticleAsReadRaw({required int itemId}) { final _parameters = {}; final _headers = {}; - Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -1227,7 +1208,7 @@ class Client extends DynamiteClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: null, @@ -1266,7 +1247,6 @@ class Client extends DynamiteClient { DynamiteRawResponse markArticleAsUnreadRaw({required int itemId}) { final _parameters = {}; final _headers = {}; - Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -1294,7 +1274,7 @@ class Client extends DynamiteClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: null, @@ -1333,7 +1313,6 @@ class Client extends DynamiteClient { DynamiteRawResponse starArticleRaw({required int itemId}) { final _parameters = {}; final _headers = {}; - Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -1361,7 +1340,7 @@ class Client extends DynamiteClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: null, @@ -1400,7 +1379,6 @@ class Client extends DynamiteClient { DynamiteRawResponse unstarArticleRaw({required int itemId}) { final _parameters = {}; final _headers = {}; - Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -1428,7 +1406,7 @@ class Client extends DynamiteClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: null, diff --git a/packages/nextcloud/lib/src/api/notes.openapi.dart b/packages/nextcloud/lib/src/api/notes.openapi.dart index 63e0d16b82b..a19d74f4fc0 100644 --- a/packages/nextcloud/lib/src/api/notes.openapi.dart +++ b/packages/nextcloud/lib/src/api/notes.openapi.dart @@ -107,7 +107,6 @@ class Client extends DynamiteClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -157,7 +156,7 @@ class Client extends DynamiteClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(BuiltList, [FullType(Note)]), @@ -228,7 +227,6 @@ class Client extends DynamiteClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -274,7 +272,7 @@ class Client extends DynamiteClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(Note), @@ -333,7 +331,6 @@ class Client extends DynamiteClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -370,7 +367,7 @@ class Client extends DynamiteClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(Note), @@ -449,7 +446,6 @@ class Client extends DynamiteClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -498,7 +494,7 @@ class Client extends DynamiteClient { 'put', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(Note), @@ -539,7 +535,6 @@ class Client extends DynamiteClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -567,7 +562,7 @@ class Client extends DynamiteClient { 'delete', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(String), @@ -602,11 +597,9 @@ class Client extends DynamiteClient { /// * [getSettings] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse getSettingsRaw() { - final _parameters = {}; final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -625,13 +618,13 @@ class Client extends DynamiteClient { } // coverage:ignore-end - final _path = UriTemplate('/index.php/apps/notes/api/v1/settings').expand(_parameters); + const _path = '/index.php/apps/notes/api/v1/settings'; return DynamiteRawResponse( response: executeRequest( 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(Settings), @@ -668,7 +661,6 @@ class Client extends DynamiteClient { /// * [updateSettings] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse updateSettingsRaw({required Settings settings}) { - final _parameters = {}; final _headers = { 'Accept': 'application/json', }; @@ -693,7 +685,7 @@ class Client extends DynamiteClient { // coverage:ignore-end _headers['Content-Type'] = 'application/json'; _body = utf8.encode(json.encode(jsonSerializers.serialize(settings, specifiedType: const FullType(Settings)))); - final _path = UriTemplate('/index.php/apps/notes/api/v1/settings').expand(_parameters); + const _path = '/index.php/apps/notes/api/v1/settings'; return DynamiteRawResponse( response: executeRequest( 'put', diff --git a/packages/nextcloud/lib/src/api/notifications.openapi.dart b/packages/nextcloud/lib/src/api/notifications.openapi.dart index 80ac5b4ad09..3c0a16f67da 100644 --- a/packages/nextcloud/lib/src/api/notifications.openapi.dart +++ b/packages/nextcloud/lib/src/api/notifications.openapi.dart @@ -4,7 +4,6 @@ // ignore_for_file: unreachable_switch_case // ignore_for_file: camel_case_extensions // ignore_for_file: no_leading_underscores_for_local_identifiers -import 'dart:typed_data'; import 'package:built_collection/built_collection.dart'; import 'package:built_value/built_value.dart'; @@ -129,7 +128,6 @@ class ApiClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -175,7 +173,7 @@ class ApiClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(ApiGenerateNotificationResponseApplicationJson), @@ -245,7 +243,6 @@ class EndpointClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -280,7 +277,7 @@ class EndpointClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(EndpointListNotificationsResponseApplicationJson), @@ -342,7 +339,6 @@ class EndpointClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -376,7 +372,7 @@ class EndpointClient { 'delete', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(EndpointDeleteAllNotificationsResponseApplicationJson), @@ -443,7 +439,6 @@ class EndpointClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -480,7 +475,7 @@ class EndpointClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(EndpointGetNotificationResponseApplicationJson), @@ -549,7 +544,6 @@ class EndpointClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -586,7 +580,7 @@ class EndpointClient { 'delete', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(EndpointDeleteNotificationResponseApplicationJson), @@ -653,7 +647,6 @@ class EndpointClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -691,7 +684,7 @@ class EndpointClient { 'post', _path, _headers, - _body, + null, const {200, 400}, ), bodyType: const FullType(EndpointConfirmIdsForUserResponseApplicationJson), @@ -778,7 +771,6 @@ class PushClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -823,7 +815,7 @@ class PushClient { 'post', _path, _headers, - _body, + null, const {200, 201}, ), bodyType: const FullType(PushRegisterDeviceResponseApplicationJson), @@ -889,7 +881,6 @@ class PushClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -922,7 +913,7 @@ class PushClient { 'delete', _path, _headers, - _body, + null, const {200, 202, 401}, ), bodyType: const FullType(PushRemoveDeviceResponseApplicationJson), @@ -1003,7 +994,6 @@ class SettingsClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1047,7 +1037,7 @@ class SettingsClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(SettingsPersonalResponseApplicationJson), @@ -1126,7 +1116,6 @@ class SettingsClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1170,7 +1159,7 @@ class SettingsClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(SettingsAdminResponseApplicationJson), diff --git a/packages/nextcloud/lib/src/api/provisioning_api.openapi.dart b/packages/nextcloud/lib/src/api/provisioning_api.openapi.dart index 3ae7f95a92a..b2cc8a36e67 100644 --- a/packages/nextcloud/lib/src/api/provisioning_api.openapi.dart +++ b/packages/nextcloud/lib/src/api/provisioning_api.openapi.dart @@ -4,7 +4,6 @@ // ignore_for_file: unreachable_switch_case // ignore_for_file: camel_case_extensions // ignore_for_file: no_leading_underscores_for_local_identifiers -import 'dart:typed_data'; import 'package:built_collection/built_collection.dart'; import 'package:built_value/built_value.dart'; @@ -99,11 +98,9 @@ class AppConfigClient { /// * [getApps] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse getAppsRaw({bool? oCSAPIRequest}) { - final _parameters = {}; final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -126,13 +123,13 @@ class AppConfigClient { $oCSAPIRequest ??= true; _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final _path = UriTemplate('/ocs/v2.php/apps/provisioning_api/api/v1/config/apps').expand(_parameters); + const _path = '/ocs/v2.php/apps/provisioning_api/api/v1/config/apps'; return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(AppConfigGetAppsResponseApplicationJson), @@ -198,7 +195,6 @@ class AppConfigClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -230,7 +226,7 @@ class AppConfigClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(AppConfigGetKeysResponseApplicationJson), @@ -306,7 +302,6 @@ class AppConfigClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -346,7 +341,7 @@ class AppConfigClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(AppConfigGetValueResponseApplicationJson), @@ -418,7 +413,6 @@ class AppConfigClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -457,7 +451,7 @@ class AppConfigClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(AppConfigSetValueResponseApplicationJson), @@ -528,7 +522,6 @@ class AppConfigClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -563,7 +556,7 @@ class AppConfigClient { 'delete', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(AppConfigDeleteKeyResponseApplicationJson), @@ -633,7 +626,6 @@ class AppsClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -665,7 +657,7 @@ class AppsClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(AppsGetAppsResponseApplicationJson), @@ -729,7 +721,6 @@ class AppsClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -761,7 +752,7 @@ class AppsClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(AppsGetAppInfoResponseApplicationJson), @@ -825,7 +816,6 @@ class AppsClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -857,7 +847,7 @@ class AppsClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(AppsEnableResponseApplicationJson), @@ -921,7 +911,6 @@ class AppsClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -953,7 +942,7 @@ class AppsClient { 'delete', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(AppsDisableResponseApplicationJson), @@ -1029,7 +1018,6 @@ class GroupsClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1069,7 +1057,7 @@ class GroupsClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(GroupsGetGroupsResponseApplicationJson), @@ -1138,7 +1126,6 @@ class GroupsClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1174,7 +1161,7 @@ class GroupsClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(GroupsAddGroupResponseApplicationJson), @@ -1244,7 +1231,6 @@ class GroupsClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1284,7 +1270,7 @@ class GroupsClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(GroupsGetGroupsDetailsResponseApplicationJson), @@ -1348,7 +1334,6 @@ class GroupsClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1381,7 +1366,7 @@ class GroupsClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(GroupsGetGroupUsersResponseApplicationJson), @@ -1456,7 +1441,6 @@ class GroupsClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1501,7 +1485,7 @@ class GroupsClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(GroupsGetGroupUsersDetailsResponseApplicationJson), @@ -1565,7 +1549,6 @@ class GroupsClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1598,7 +1581,7 @@ class GroupsClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(GroupsGetSubAdminsOfGroupResponseApplicationJson), @@ -1660,7 +1643,6 @@ class GroupsClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1693,7 +1675,7 @@ class GroupsClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(GroupsGetGroupResponseApplicationJson), @@ -1767,7 +1749,6 @@ class GroupsClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1806,7 +1787,7 @@ class GroupsClient { 'put', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(GroupsUpdateGroupResponseApplicationJson), @@ -1870,7 +1851,6 @@ class GroupsClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1903,7 +1883,7 @@ class GroupsClient { 'delete', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(GroupsDeleteGroupResponseApplicationJson), @@ -1981,7 +1961,6 @@ class PreferencesClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2021,7 +2000,7 @@ class PreferencesClient { 'post', _path, _headers, - _body, + null, const {200, 400}, ), bodyType: const FullType(PreferencesSetPreferenceResponseApplicationJson), @@ -2088,7 +2067,6 @@ class PreferencesClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2124,7 +2102,7 @@ class PreferencesClient { 'delete', _path, _headers, - _body, + null, const {200, 400}, ), bodyType: const FullType(PreferencesDeletePreferenceResponseApplicationJson), @@ -2191,7 +2169,6 @@ class PreferencesClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2232,7 +2209,7 @@ class PreferencesClient { 'post', _path, _headers, - _body, + null, const {200, 400}, ), bodyType: const FullType(PreferencesSetMultiplePreferencesResponseApplicationJson), @@ -2299,7 +2276,6 @@ class PreferencesClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2336,7 +2312,7 @@ class PreferencesClient { 'delete', _path, _headers, - _body, + null, const {200, 400}, ), bodyType: const FullType(PreferencesDeleteMultiplePreferenceResponseApplicationJson), @@ -2412,7 +2388,6 @@ class UsersClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2452,7 +2427,7 @@ class UsersClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(UsersGetUsersResponseApplicationJson), @@ -2554,7 +2529,6 @@ class UsersClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2619,7 +2593,7 @@ class UsersClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(UsersAddUserResponseApplicationJson), @@ -2689,7 +2663,6 @@ class UsersClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2729,7 +2702,7 @@ class UsersClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(UsersGetUsersDetailsResponseApplicationJson), @@ -2794,7 +2767,6 @@ class UsersClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2830,7 +2802,7 @@ class UsersClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(UsersGetDisabledUsersDetailsResponseApplicationJson), @@ -2897,7 +2869,6 @@ class UsersClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2940,7 +2911,7 @@ class UsersClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(UsersSearchByPhoneNumbersResponseApplicationJson), @@ -3000,7 +2971,6 @@ class UsersClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3032,7 +3002,7 @@ class UsersClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(UsersGetUserResponseApplicationJson), @@ -3102,7 +3072,6 @@ class UsersClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3140,7 +3109,7 @@ class UsersClient { 'put', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(UsersEditUserResponseApplicationJson), @@ -3200,7 +3169,6 @@ class UsersClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3232,7 +3200,7 @@ class UsersClient { 'delete', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(UsersDeleteUserResponseApplicationJson), @@ -3281,11 +3249,9 @@ class UsersClient { /// * [getCurrentUser] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse getCurrentUserRaw({bool? oCSAPIRequest}) { - final _parameters = {}; final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3308,13 +3274,13 @@ class UsersClient { $oCSAPIRequest ??= true; _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final _path = UriTemplate('/ocs/v2.php/cloud/user').expand(_parameters); + const _path = '/ocs/v2.php/cloud/user'; return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(UsersGetCurrentUserResponseApplicationJson), @@ -3363,11 +3329,9 @@ class UsersClient { /// * [getEditableFields] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse getEditableFieldsRaw({bool? oCSAPIRequest}) { - final _parameters = {}; final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3390,13 +3354,13 @@ class UsersClient { $oCSAPIRequest ??= true; _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final _path = UriTemplate('/ocs/v2.php/cloud/user/fields').expand(_parameters); + const _path = '/ocs/v2.php/cloud/user/fields'; return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(UsersGetEditableFieldsResponseApplicationJson), @@ -3456,7 +3420,6 @@ class UsersClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3488,7 +3451,7 @@ class UsersClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(UsersGetEditableFieldsForUserResponseApplicationJson), @@ -3563,7 +3526,6 @@ class UsersClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3609,7 +3571,7 @@ class UsersClient { 'put', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(UsersEditUserMultiValueResponseApplicationJson), @@ -3669,7 +3631,6 @@ class UsersClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3701,7 +3662,7 @@ class UsersClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(UsersWipeUserDevicesResponseApplicationJson), @@ -3761,7 +3722,6 @@ class UsersClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3793,7 +3753,7 @@ class UsersClient { 'put', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(UsersEnableUserResponseApplicationJson), @@ -3853,7 +3813,6 @@ class UsersClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3885,7 +3844,7 @@ class UsersClient { 'put', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(UsersDisableUserResponseApplicationJson), @@ -3945,7 +3904,6 @@ class UsersClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3977,7 +3935,7 @@ class UsersClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(UsersGetUsersGroupsResponseApplicationJson), @@ -4042,7 +4000,6 @@ class UsersClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -4078,7 +4035,7 @@ class UsersClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(UsersAddToGroupResponseApplicationJson), @@ -4143,7 +4100,6 @@ class UsersClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -4178,7 +4134,7 @@ class UsersClient { 'delete', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(UsersRemoveFromGroupResponseApplicationJson), @@ -4242,7 +4198,6 @@ class UsersClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -4274,7 +4229,7 @@ class UsersClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(UsersGetUserSubAdminGroupsResponseApplicationJson), @@ -4343,7 +4298,6 @@ class UsersClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -4378,7 +4332,7 @@ class UsersClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(UsersAddSubAdminResponseApplicationJson), @@ -4447,7 +4401,6 @@ class UsersClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -4482,7 +4435,7 @@ class UsersClient { 'delete', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(UsersRemoveSubAdminResponseApplicationJson), @@ -4542,7 +4495,6 @@ class UsersClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -4574,7 +4526,7 @@ class UsersClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(UsersResendWelcomeMessageResponseApplicationJson), diff --git a/packages/nextcloud/lib/src/api/settings.openapi.dart b/packages/nextcloud/lib/src/api/settings.openapi.dart index eef35e07ffb..305685527f4 100644 --- a/packages/nextcloud/lib/src/api/settings.openapi.dart +++ b/packages/nextcloud/lib/src/api/settings.openapi.dart @@ -14,7 +14,6 @@ import 'package:dynamite_runtime/built_value.dart'; import 'package:dynamite_runtime/http_client.dart'; import 'package:meta/meta.dart'; import 'package:universal_io/io.dart'; -import 'package:uri/uri.dart'; part 'settings.openapi.g.dart'; @@ -79,11 +78,9 @@ class LogSettingsClient { /// * [download] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse downloadRaw() { - final _parameters = {}; final _headers = { 'Accept': 'application/octet-stream', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -102,13 +99,13 @@ class LogSettingsClient { } // coverage:ignore-end - final _path = UriTemplate('/index.php/settings/admin/log/download').expand(_parameters); + const _path = '/index.php/settings/admin/log/download'; return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(Uint8List), diff --git a/packages/nextcloud/lib/src/api/sharebymail.openapi.dart b/packages/nextcloud/lib/src/api/sharebymail.openapi.dart index a2ca886c5d6..4b6257f49b7 100644 --- a/packages/nextcloud/lib/src/api/sharebymail.openapi.dart +++ b/packages/nextcloud/lib/src/api/sharebymail.openapi.dart @@ -10,32 +10,11 @@ import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; import 'package:built_value/standard_json_plugin.dart'; import 'package:dynamite_runtime/built_value.dart'; -import 'package:dynamite_runtime/http_client.dart'; import 'package:dynamite_runtime/utils.dart' as dynamite_utils; import 'package:meta/meta.dart'; part 'sharebymail.openapi.g.dart'; -class Client extends DynamiteClient { - Client( - super.baseURL, { - super.baseHeaders, - super.userAgent, - super.httpClient, - super.cookieJar, - super.authentications, - }); - - Client.fromClient(DynamiteClient client) - : super( - client.baseURL, - baseHeaders: client.baseHeaders, - httpClient: client.httpClient, - cookieJar: client.cookieJar, - authentications: client.authentications, - ); -} - @BuiltValue(instantiable: false) abstract interface class $Capabilities0_FilesSharing_Sharebymail_UploadFilesDropInterface { bool get enabled; diff --git a/packages/nextcloud/lib/src/api/spreed.openapi.dart b/packages/nextcloud/lib/src/api/spreed.openapi.dart index 0f44cb7ed48..ccb2afd5ec5 100644 --- a/packages/nextcloud/lib/src/api/spreed.openapi.dart +++ b/packages/nextcloud/lib/src/api/spreed.openapi.dart @@ -148,7 +148,6 @@ class AvatarClient { final _headers = { 'Accept': '*/*', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -188,7 +187,7 @@ class AvatarClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(Uint8List), @@ -255,7 +254,6 @@ class AvatarClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -291,7 +289,7 @@ class AvatarClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(AvatarUploadAvatarResponseApplicationJson), @@ -356,7 +354,6 @@ class AvatarClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -392,7 +389,7 @@ class AvatarClient { 'delete', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(AvatarDeleteAvatarResponseApplicationJson), @@ -469,7 +466,6 @@ class AvatarClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -511,7 +507,7 @@ class AvatarClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(AvatarEmojiAvatarResponseApplicationJson), @@ -576,7 +572,6 @@ class AvatarClient { final _headers = { 'Accept': '*/*', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -612,7 +607,7 @@ class AvatarClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(Uint8List), @@ -713,7 +708,6 @@ class BotClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -765,7 +759,7 @@ class BotClient { 'post', _path, _headers, - _body, + null, const {201, 400, 401, 413}, ), bodyType: const FullType(BotSendMessageResponseApplicationJson), @@ -848,7 +842,6 @@ class BotClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -890,7 +883,7 @@ class BotClient { 'post', _path, _headers, - _body, + null, const {200, 201, 400, 401, 404}, ), bodyType: const FullType(BotReactResponseApplicationJson), @@ -971,7 +964,6 @@ class BotClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1013,7 +1005,7 @@ class BotClient { 'delete', _path, _headers, - _body, + null, const {200, 400, 404, 401}, ), bodyType: const FullType(BotDeleteReactionResponseApplicationJson), @@ -1077,7 +1069,6 @@ class BotClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1110,7 +1101,7 @@ class BotClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(BotAdminListBotsResponseApplicationJson), @@ -1175,7 +1166,6 @@ class BotClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1212,7 +1202,7 @@ class BotClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(BotListBotsResponseApplicationJson), @@ -1286,7 +1276,6 @@ class BotClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1326,7 +1315,7 @@ class BotClient { 'post', _path, _headers, - _body, + null, const {200, 201}, ), bodyType: const FullType(BotEnableBotResponseApplicationJson), @@ -1398,7 +1387,6 @@ class BotClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1438,7 +1426,7 @@ class BotClient { 'delete', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(BotDisableBotResponseApplicationJson), @@ -1526,7 +1514,6 @@ class BreakoutRoomClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1578,7 +1565,7 @@ class BreakoutRoomClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(BreakoutRoomConfigureBreakoutRoomsResponseApplicationJson), @@ -1643,7 +1630,6 @@ class BreakoutRoomClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1681,7 +1667,7 @@ class BreakoutRoomClient { 'delete', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(BreakoutRoomRemoveBreakoutRoomsResponseApplicationJson), @@ -1755,7 +1741,6 @@ class BreakoutRoomClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1799,7 +1784,7 @@ class BreakoutRoomClient { 'post', _path, _headers, - _body, + null, const {201}, ), bodyType: const FullType(BreakoutRoomBroadcastChatMessageResponseApplicationJson), @@ -1871,7 +1856,6 @@ class BreakoutRoomClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1914,7 +1898,7 @@ class BreakoutRoomClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(BreakoutRoomApplyAttendeeMapResponseApplicationJson), @@ -1981,7 +1965,6 @@ class BreakoutRoomClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2020,7 +2003,7 @@ class BreakoutRoomClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(BreakoutRoomRequestAssistanceResponseApplicationJson), @@ -2088,7 +2071,6 @@ class BreakoutRoomClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2129,7 +2111,7 @@ class BreakoutRoomClient { 'delete', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(BreakoutRoomResetRequestForAssistanceResponseApplicationJson), @@ -2196,7 +2178,6 @@ class BreakoutRoomClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2235,7 +2216,7 @@ class BreakoutRoomClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(BreakoutRoomStartBreakoutRoomsResponseApplicationJson), @@ -2302,7 +2283,6 @@ class BreakoutRoomClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2341,7 +2321,7 @@ class BreakoutRoomClient { 'delete', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(BreakoutRoomStopBreakoutRoomsResponseApplicationJson), @@ -2413,7 +2393,6 @@ class BreakoutRoomClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2455,7 +2434,7 @@ class BreakoutRoomClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(BreakoutRoomSwitchBreakoutRoomResponseApplicationJson), @@ -2526,7 +2505,6 @@ class CallClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2562,7 +2540,7 @@ class CallClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(CallGetPeersForCallResponseApplicationJson), @@ -2636,7 +2614,6 @@ class CallClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2675,7 +2652,7 @@ class CallClient { 'put', _path, _headers, - _body, + null, const {200, 400, 404}, ), bodyType: const FullType(CallUpdateCallFlagsResponseApplicationJson), @@ -2764,7 +2741,6 @@ class CallClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2815,7 +2791,7 @@ class CallClient { 'post', _path, _headers, - _body, + null, const {200, 404}, ), bodyType: const FullType(CallJoinCallResponseApplicationJson), @@ -2887,7 +2863,6 @@ class CallClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2926,7 +2901,7 @@ class CallClient { 'delete', _path, _headers, - _body, + null, const {200, 404}, ), bodyType: const FullType(CallLeaveCallResponseApplicationJson), @@ -2998,7 +2973,6 @@ class CallClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3037,7 +3011,7 @@ class CallClient { 'post', _path, _headers, - _body, + null, const {200, 400}, ), bodyType: const FullType(CallRingAttendeeResponseApplicationJson), @@ -3113,7 +3087,6 @@ class CallClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3152,7 +3125,7 @@ class CallClient { 'post', _path, _headers, - _body, + null, const {201, 400, 404, 501}, ), bodyType: const FullType(CallSipDialOutResponseApplicationJson), @@ -3229,7 +3202,6 @@ class CertificateClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3269,7 +3241,7 @@ class CertificateClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(CertificateGetCertificateExpirationResponseApplicationJson), @@ -3395,7 +3367,6 @@ class ChatClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3469,7 +3440,7 @@ class ChatClient { 'get', _path, _headers, - _body, + null, const {200, 304}, ), bodyType: const FullType(ChatReceiveMessagesResponseApplicationJson), @@ -3569,7 +3540,6 @@ class ChatClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3625,7 +3595,7 @@ class ChatClient { 'post', _path, _headers, - _body, + null, const {201}, ), bodyType: const FullType(ChatSendMessageResponseApplicationJson), @@ -3694,7 +3664,6 @@ class ChatClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3731,7 +3700,7 @@ class ChatClient { 'delete', _path, _headers, - _body, + null, const {200, 202}, ), bodyType: const FullType(ChatClearHistoryResponseApplicationJson), @@ -3811,7 +3780,6 @@ class ChatClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3851,7 +3819,7 @@ class ChatClient { 'delete', _path, _headers, - _body, + null, const {200, 202}, ), bodyType: const FullType(ChatDeleteMessageResponseApplicationJson), @@ -3930,7 +3898,6 @@ class ChatClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3974,7 +3941,7 @@ class ChatClient { 'get', _path, _headers, - _body, + null, const {200, 304}, ), bodyType: const FullType(ChatGetMessageContextResponseApplicationJson), @@ -4046,7 +4013,6 @@ class ChatClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -4087,7 +4053,7 @@ class ChatClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(ChatGetReminderResponseApplicationJson), @@ -4164,7 +4130,6 @@ class ChatClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -4208,7 +4173,7 @@ class ChatClient { 'post', _path, _headers, - _body, + null, const {201}, ), bodyType: const FullType(ChatSetReminderResponseApplicationJson), @@ -4280,7 +4245,6 @@ class ChatClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -4322,7 +4286,7 @@ class ChatClient { 'delete', _path, _headers, - _body, + null, const {200, 404}, ), bodyType: const FullType(ChatDeleteReminderResponseApplicationJson), @@ -4392,7 +4356,6 @@ class ChatClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -4433,7 +4396,7 @@ class ChatClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(ChatSetReadMarkerResponseApplicationJson), @@ -4498,7 +4461,6 @@ class ChatClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -4535,7 +4497,7 @@ class ChatClient { 'delete', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(ChatMarkUnreadResponseApplicationJson), @@ -4615,7 +4577,6 @@ class ChatClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -4663,7 +4624,7 @@ class ChatClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(ChatMentionsResponseApplicationJson), @@ -4745,7 +4706,6 @@ class ChatClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -4795,7 +4755,7 @@ class ChatClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(ChatGetObjectsSharedInRoomResponseApplicationJson), @@ -4897,7 +4857,6 @@ class ChatClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -4953,7 +4912,7 @@ class ChatClient { 'post', _path, _headers, - _body, + null, const {201}, ), bodyType: const FullType(ChatShareObjectToChatResponseApplicationJson), @@ -5025,7 +4984,6 @@ class ChatClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -5068,7 +5026,7 @@ class ChatClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(ChatGetObjectsSharedInRoomOverviewResponseApplicationJson), @@ -5141,7 +5099,6 @@ class FederationClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -5179,7 +5136,7 @@ class FederationClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(FederationAcceptShareResponseApplicationJson), @@ -5246,7 +5203,6 @@ class FederationClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -5284,7 +5240,7 @@ class FederationClient { 'delete', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(FederationRejectShareResponseApplicationJson), @@ -5344,7 +5300,6 @@ class FederationClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -5378,7 +5333,7 @@ class FederationClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(FederationGetSharesResponseApplicationJson), @@ -5461,7 +5416,6 @@ class FilesIntegrationClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -5499,7 +5453,7 @@ class FilesIntegrationClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(FilesIntegrationGetRoomByFileIdResponseApplicationJson), @@ -5578,7 +5532,6 @@ class FilesIntegrationClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -5616,7 +5569,7 @@ class FilesIntegrationClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(FilesIntegrationGetRoomByShareTokenResponseApplicationJson), @@ -5696,7 +5649,6 @@ class GuestClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -5736,7 +5688,7 @@ class GuestClient { 'post', _path, _headers, - _body, + null, const {200, 403, 404}, ), bodyType: const FullType(GuestSetDisplayNameResponseApplicationJson), @@ -5835,7 +5787,6 @@ class HostedSignalingServerClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -5888,7 +5839,7 @@ class HostedSignalingServerClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(HostedSignalingServerRequestTrialResponseApplicationJson), @@ -5956,7 +5907,6 @@ class HostedSignalingServerClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -5993,7 +5943,7 @@ class HostedSignalingServerClient { 'delete', _path, _headers, - _body, + null, const {204}, ), bodyType: const FullType(HostedSignalingServerDeleteAccountResponseApplicationJson), @@ -6064,7 +6014,6 @@ class MatterbridgeClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -6102,7 +6051,7 @@ class MatterbridgeClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(MatterbridgeGetBridgeOfRoomResponseApplicationJson), @@ -6179,7 +6128,6 @@ class MatterbridgeClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -6231,7 +6179,7 @@ class MatterbridgeClient { 'put', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(MatterbridgeEditBridgeOfRoomResponseApplicationJson), @@ -6298,7 +6246,6 @@ class MatterbridgeClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -6336,7 +6283,7 @@ class MatterbridgeClient { 'delete', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(MatterbridgeDeleteBridgeOfRoomResponseApplicationJson), @@ -6401,7 +6348,6 @@ class MatterbridgeClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -6441,7 +6387,7 @@ class MatterbridgeClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(MatterbridgeGetBridgeProcessStateResponseApplicationJson), @@ -6513,7 +6459,6 @@ class MatterbridgeSettingsClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -6549,7 +6494,7 @@ class MatterbridgeSettingsClient { 'delete', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(MatterbridgeSettingsStopAllBridgesResponseApplicationJson), @@ -6617,7 +6562,6 @@ class MatterbridgeSettingsClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -6653,7 +6597,7 @@ class MatterbridgeSettingsClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(MatterbridgeSettingsGetMatterbridgeVersionResponseApplicationJson), @@ -6746,7 +6690,6 @@ class PollClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -6795,7 +6738,7 @@ class PollClient { 'post', _path, _headers, - _body, + null, const {201}, ), bodyType: const FullType(PollCreatePollResponseApplicationJson), @@ -6867,7 +6810,6 @@ class PollClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -6905,7 +6847,7 @@ class PollClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(PollShowPollResponseApplicationJson), @@ -6984,7 +6926,6 @@ class PollClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -7027,7 +6968,7 @@ class PollClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(PollVotePollResponseApplicationJson), @@ -7105,7 +7046,6 @@ class PollClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -7143,7 +7083,7 @@ class PollClient { 'delete', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(PollClosePollResponseApplicationJson), @@ -7222,7 +7162,6 @@ class PublicShareAuthClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -7258,7 +7197,7 @@ class PublicShareAuthClient { 'post', _path, _headers, - _body, + null, const {201}, ), bodyType: const FullType(PublicShareAuthCreateRoomResponseApplicationJson), @@ -7341,7 +7280,6 @@ class ReactionClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -7384,7 +7322,7 @@ class ReactionClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(ReactionGetReactionsResponseApplicationJson), @@ -7465,7 +7403,6 @@ class ReactionClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -7507,7 +7444,7 @@ class ReactionClient { 'post', _path, _headers, - _body, + null, const {200, 201}, ), bodyType: const FullType(ReactionReactResponseApplicationJson), @@ -7586,7 +7523,6 @@ class ReactionClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -7628,7 +7564,7 @@ class ReactionClient { 'delete', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(ReactionDeleteResponseApplicationJson), @@ -7707,7 +7643,6 @@ class RecordingClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -7745,7 +7680,7 @@ class RecordingClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(RecordingGetWelcomeMessageResponseApplicationJson), @@ -7817,7 +7752,6 @@ class RecordingClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -7858,7 +7792,7 @@ class RecordingClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(RecordingStartResponseApplicationJson), @@ -7925,7 +7859,6 @@ class RecordingClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -7962,7 +7895,7 @@ class RecordingClient { 'delete', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(RecordingStopResponseApplicationJson), @@ -8036,7 +7969,6 @@ class RecordingClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -8075,7 +8007,7 @@ class RecordingClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(RecordingStoreResponseApplicationJson), @@ -8147,7 +8079,6 @@ class RecordingClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -8189,7 +8120,7 @@ class RecordingClient { 'delete', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(RecordingNotificationDismissResponseApplicationJson), @@ -8266,7 +8197,6 @@ class RecordingClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -8312,7 +8242,7 @@ class RecordingClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(RecordingShareToChatResponseApplicationJson), @@ -8393,7 +8323,6 @@ class RoomClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -8440,7 +8369,7 @@ class RoomClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(RoomGetRoomsResponseApplicationJson), @@ -8538,7 +8467,6 @@ class RoomClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -8596,7 +8524,7 @@ class RoomClient { 'post', _path, _headers, - _body, + null, const {200, 201}, ), bodyType: const FullType(RoomCreateRoomResponseApplicationJson), @@ -8661,7 +8589,6 @@ class RoomClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -8699,7 +8626,7 @@ class RoomClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(RoomGetListedRoomsResponseApplicationJson), @@ -8766,7 +8693,6 @@ class RoomClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -8801,7 +8727,7 @@ class RoomClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(RoomGetNoteToSelfConversationResponseApplicationJson), @@ -8870,7 +8796,6 @@ class RoomClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -8905,7 +8830,7 @@ class RoomClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(RoomGetSingleRoomResponseApplicationJson), @@ -8977,7 +8902,6 @@ class RoomClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -9015,7 +8939,7 @@ class RoomClient { 'put', _path, _headers, - _body, + null, const {200, 400}, ), bodyType: const FullType(RoomRenameRoomResponseApplicationJson), @@ -9082,7 +9006,6 @@ class RoomClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -9117,7 +9040,7 @@ class RoomClient { 'delete', _path, _headers, - _body, + null, const {200, 400}, ), bodyType: const FullType(RoomDeleteRoomResponseApplicationJson), @@ -9184,7 +9107,6 @@ class RoomClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -9223,7 +9145,7 @@ class RoomClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(RoomGetBreakoutRoomsResponseApplicationJson), @@ -9290,7 +9212,6 @@ class RoomClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -9327,7 +9248,7 @@ class RoomClient { 'post', _path, _headers, - _body, + null, const {200, 400}, ), bodyType: const FullType(RoomMakePublicResponseApplicationJson), @@ -9394,7 +9315,6 @@ class RoomClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -9431,7 +9351,7 @@ class RoomClient { 'delete', _path, _headers, - _body, + null, const {200, 400}, ), bodyType: const FullType(RoomMakePrivateResponseApplicationJson), @@ -9503,7 +9423,6 @@ class RoomClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -9543,7 +9462,7 @@ class RoomClient { 'put', _path, _headers, - _body, + null, const {200, 400}, ), bodyType: const FullType(RoomSetDescriptionResponseApplicationJson), @@ -9615,7 +9534,6 @@ class RoomClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -9656,7 +9574,7 @@ class RoomClient { 'put', _path, _headers, - _body, + null, const {200, 400}, ), bodyType: const FullType(RoomSetReadOnlyResponseApplicationJson), @@ -9728,7 +9646,6 @@ class RoomClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -9769,7 +9686,7 @@ class RoomClient { 'put', _path, _headers, - _body, + null, const {200, 400}, ), bodyType: const FullType(RoomSetListableResponseApplicationJson), @@ -9843,7 +9760,6 @@ class RoomClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -9882,7 +9798,7 @@ class RoomClient { 'put', _path, _headers, - _body, + null, const {200, 403}, ), bodyType: const FullType(RoomSetPasswordResponseApplicationJson), @@ -9959,7 +9875,6 @@ class RoomClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -10003,7 +9918,7 @@ class RoomClient { 'put', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(RoomSetPermissionsResponseApplicationJson), @@ -10075,7 +9990,6 @@ class RoomClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -10116,7 +10030,7 @@ class RoomClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(RoomGetParticipantsResponseApplicationJson), @@ -10197,7 +10111,6 @@ class RoomClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -10244,7 +10157,7 @@ class RoomClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(RoomAddParticipantToRoomResponseApplicationJson), @@ -10321,7 +10234,6 @@ class RoomClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -10364,7 +10276,7 @@ class RoomClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(RoomGetBreakoutRoomParticipantsResponseApplicationJson), @@ -10433,7 +10345,6 @@ class RoomClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -10472,7 +10383,7 @@ class RoomClient { 'delete', _path, _headers, - _body, + null, const {200, 400, 404}, ), bodyType: const FullType(RoomRemoveSelfFromRoomResponseApplicationJson), @@ -10548,7 +10459,6 @@ class RoomClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -10588,7 +10498,7 @@ class RoomClient { 'delete', _path, _headers, - _body, + null, const {200, 400, 403, 404}, ), bodyType: const FullType(RoomRemoveAttendeeFromRoomResponseApplicationJson), @@ -10674,7 +10584,6 @@ class RoomClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -10721,7 +10630,7 @@ class RoomClient { 'put', _path, _headers, - _body, + null, const {200, 400, 403, 404}, ), bodyType: const FullType(RoomSetAttendeePermissionsResponseApplicationJson), @@ -10798,7 +10707,6 @@ class RoomClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -10842,7 +10750,7 @@ class RoomClient { 'put', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(RoomSetAllAttendeesPermissionsResponseApplicationJson), @@ -10923,7 +10831,6 @@ class RoomClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -10968,7 +10875,7 @@ class RoomClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(RoomJoinRoomResponseApplicationJson), @@ -11033,7 +10940,6 @@ class RoomClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -11069,7 +10975,7 @@ class RoomClient { 'delete', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(RoomLeaveRoomResponseApplicationJson), @@ -11141,7 +11047,6 @@ class RoomClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -11184,7 +11089,7 @@ class RoomClient { 'post', _path, _headers, - _body, + null, const {200, 404}, ), bodyType: const FullType(RoomResendInvitationsResponseApplicationJson), @@ -11256,7 +11161,6 @@ class RoomClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -11296,7 +11200,7 @@ class RoomClient { 'put', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(RoomSetSessionStateResponseApplicationJson), @@ -11372,7 +11276,6 @@ class RoomClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -11412,7 +11315,7 @@ class RoomClient { 'post', _path, _headers, - _body, + null, const {200, 400, 403, 404}, ), bodyType: const FullType(RoomPromoteModeratorResponseApplicationJson), @@ -11488,7 +11391,6 @@ class RoomClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -11528,7 +11430,7 @@ class RoomClient { 'delete', _path, _headers, - _body, + null, const {200, 400, 403, 404}, ), bodyType: const FullType(RoomDemoteModeratorResponseApplicationJson), @@ -11593,7 +11495,6 @@ class RoomClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -11631,7 +11532,7 @@ class RoomClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(RoomAddToFavoritesResponseApplicationJson), @@ -11696,7 +11597,6 @@ class RoomClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -11734,7 +11634,7 @@ class RoomClient { 'delete', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(RoomRemoveFromFavoritesResponseApplicationJson), @@ -11806,7 +11706,6 @@ class RoomClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -11848,7 +11747,7 @@ class RoomClient { 'post', _path, _headers, - _body, + null, const {200, 400}, ), bodyType: const FullType(RoomSetNotificationLevelResponseApplicationJson), @@ -11920,7 +11819,6 @@ class RoomClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -11962,7 +11860,7 @@ class RoomClient { 'post', _path, _headers, - _body, + null, const {200, 400}, ), bodyType: const FullType(RoomSetNotificationCallsResponseApplicationJson), @@ -12039,7 +11937,6 @@ class RoomClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -12083,7 +11980,7 @@ class RoomClient { 'put', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(RoomSetLobbyResponseApplicationJson), @@ -12161,7 +12058,6 @@ class RoomClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -12202,7 +12098,7 @@ class RoomClient { 'put', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(RoomSetsipEnabledResponseApplicationJson), @@ -12276,7 +12172,6 @@ class RoomClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -12319,7 +12214,7 @@ class RoomClient { 'put', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(RoomSetRecordingConsentResponseApplicationJson), @@ -12391,7 +12286,6 @@ class RoomClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -12431,7 +12325,7 @@ class RoomClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(RoomSetMessageExpirationResponseApplicationJson), @@ -12516,7 +12410,6 @@ class SettingsClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -12564,7 +12457,7 @@ class SettingsClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(SettingsSetsipSettingsResponseApplicationJson), @@ -12636,7 +12529,6 @@ class SettingsClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -12680,7 +12572,7 @@ class SettingsClient { 'post', _path, _headers, - _body, + null, const {200, 400}, ), bodyType: const FullType(SettingsSetUserSettingResponseApplicationJson), @@ -12755,7 +12647,6 @@ class SignalingClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -12792,7 +12683,7 @@ class SignalingClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(SignalingGetSettingsResponseApplicationJson), @@ -12867,7 +12758,6 @@ class SignalingClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -12905,7 +12795,7 @@ class SignalingClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(SignalingGetWelcomeMessageResponseApplicationJson), @@ -12976,7 +12866,6 @@ class SignalingClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -13012,7 +12901,7 @@ class SignalingClient { 'get', _path, _headers, - _body, + null, const {200, 404, 409}, ), bodyType: const FullType(SignalingPullMessagesResponseApplicationJson), @@ -13084,7 +12973,6 @@ class SignalingClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -13124,7 +13012,7 @@ class SignalingClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(SignalingSendMessagesResponseApplicationJson), @@ -13179,11 +13067,9 @@ class TempAvatarClient { /// * [postAvatar] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse postAvatarRaw({bool? oCSAPIRequest}) { - final _parameters = {}; final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -13206,13 +13092,13 @@ class TempAvatarClient { $oCSAPIRequest ??= true; _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final _path = UriTemplate('/ocs/v2.php/apps/spreed/temp-user-avatar').expand(_parameters); + const _path = '/ocs/v2.php/apps/spreed/temp-user-avatar'; return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(TempAvatarPostAvatarResponseApplicationJson), @@ -13263,11 +13149,9 @@ class TempAvatarClient { /// * [deleteAvatar] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse deleteAvatarRaw({bool? oCSAPIRequest}) { - final _parameters = {}; final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -13290,13 +13174,13 @@ class TempAvatarClient { $oCSAPIRequest ??= true; _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final _path = UriTemplate('/ocs/v2.php/apps/spreed/temp-user-avatar').expand(_parameters); + const _path = '/ocs/v2.php/apps/spreed/temp-user-avatar'; return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', _path, _headers, - _body, + null, const {200, 400}, ), bodyType: const FullType(TempAvatarDeleteAvatarResponseApplicationJson), diff --git a/packages/nextcloud/lib/src/api/theming.openapi.dart b/packages/nextcloud/lib/src/api/theming.openapi.dart index c194779146e..67a6091507d 100644 --- a/packages/nextcloud/lib/src/api/theming.openapi.dart +++ b/packages/nextcloud/lib/src/api/theming.openapi.dart @@ -98,7 +98,6 @@ class IconClient { final _headers = { 'Accept': 'image/x-icon', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -125,7 +124,7 @@ class IconClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(Uint8List), @@ -180,7 +179,6 @@ class IconClient { final _headers = { 'Accept': 'image/png', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -207,7 +205,7 @@ class IconClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(Uint8List), @@ -271,7 +269,6 @@ class IconClient { final _headers = { 'Accept': 'image/svg+xml', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -301,7 +298,7 @@ class IconClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(Uint8List), @@ -376,7 +373,6 @@ class ThemingClient { final _headers = { 'Accept': 'text/css', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -411,7 +407,7 @@ class ThemingClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(String), @@ -475,7 +471,6 @@ class ThemingClient { final _headers = { 'Accept': '*/*', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -505,7 +500,7 @@ class ThemingClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(Uint8List), @@ -556,7 +551,6 @@ class ThemingClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -582,7 +576,7 @@ class ThemingClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(ThemingGetManifestResponseApplicationJson), @@ -637,11 +631,9 @@ class UserThemeClient { /// * [getBackground] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse getBackgroundRaw({bool? oCSAPIRequest}) { - final _parameters = {}; final _headers = { 'Accept': '*/*', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -664,13 +656,13 @@ class UserThemeClient { $oCSAPIRequest ??= true; _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final _path = UriTemplate('/index.php/apps/theming/background').expand(_parameters); + const _path = '/index.php/apps/theming/background'; return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(Uint8List), @@ -744,7 +736,6 @@ class UserThemeClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -783,7 +774,7 @@ class UserThemeClient { 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(Background), @@ -830,11 +821,9 @@ class UserThemeClient { /// * [deleteBackground] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse deleteBackgroundRaw({bool? oCSAPIRequest}) { - final _parameters = {}; final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -857,13 +846,13 @@ class UserThemeClient { $oCSAPIRequest ??= true; _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final _path = UriTemplate('/index.php/apps/theming/background/custom').expand(_parameters); + const _path = '/index.php/apps/theming/background/custom'; return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(Background), @@ -927,7 +916,6 @@ class UserThemeClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -959,7 +947,7 @@ class UserThemeClient { 'put', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(UserThemeEnableThemeResponseApplicationJson), @@ -1023,7 +1011,6 @@ class UserThemeClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1055,7 +1042,7 @@ class UserThemeClient { 'delete', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(UserThemeDisableThemeResponseApplicationJson), diff --git a/packages/nextcloud/lib/src/api/updatenotification.openapi.dart b/packages/nextcloud/lib/src/api/updatenotification.openapi.dart index 530796a8cf2..103c2d80581 100644 --- a/packages/nextcloud/lib/src/api/updatenotification.openapi.dart +++ b/packages/nextcloud/lib/src/api/updatenotification.openapi.dart @@ -4,7 +4,6 @@ // ignore_for_file: unreachable_switch_case // ignore_for_file: camel_case_extensions // ignore_for_file: no_leading_underscores_for_local_identifiers -import 'dart:typed_data'; import 'package:built_collection/built_collection.dart'; import 'package:built_value/built_value.dart'; @@ -108,7 +107,6 @@ class ApiClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -145,7 +143,7 @@ class ApiClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(ApiGetAppListResponseApplicationJson), diff --git a/packages/nextcloud/lib/src/api/uppush.openapi.dart b/packages/nextcloud/lib/src/api/uppush.openapi.dart index f6406741cf7..75c18f6a975 100644 --- a/packages/nextcloud/lib/src/api/uppush.openapi.dart +++ b/packages/nextcloud/lib/src/api/uppush.openapi.dart @@ -4,7 +4,6 @@ // ignore_for_file: unreachable_switch_case // ignore_for_file: camel_case_extensions // ignore_for_file: no_leading_underscores_for_local_identifiers -import 'dart:typed_data'; import 'package:built_collection/built_collection.dart'; import 'package:built_value/built_value.dart'; @@ -68,11 +67,9 @@ class Client extends DynamiteClient { /// * [check] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse checkRaw() { - final _parameters = {}; final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -91,13 +88,13 @@ class Client extends DynamiteClient { } // coverage:ignore-end - final _path = UriTemplate('/index.php/apps/uppush').expand(_parameters); + const _path = '/index.php/apps/uppush'; return DynamiteRawResponse( response: executeRequest( 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(CheckResponseApplicationJson), @@ -152,7 +149,6 @@ class Client extends DynamiteClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -180,7 +176,7 @@ class Client extends DynamiteClient { 'put', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(SetKeepaliveResponseApplicationJson), @@ -231,7 +227,6 @@ class Client extends DynamiteClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -259,7 +254,7 @@ class Client extends DynamiteClient { 'put', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(CreateDeviceResponseApplicationJson), @@ -308,7 +303,6 @@ class Client extends DynamiteClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -336,7 +330,7 @@ class Client extends DynamiteClient { 'get', _path, _headers, - _body, + null, const {401}, ), bodyType: const FullType(SyncDeviceResponseApplicationJson), @@ -381,7 +375,6 @@ class Client extends DynamiteClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -409,7 +402,7 @@ class Client extends DynamiteClient { 'delete', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(DeleteDeviceResponseApplicationJson), @@ -469,7 +462,6 @@ class Client extends DynamiteClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -500,7 +492,7 @@ class Client extends DynamiteClient { 'put', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(CreateAppResponseApplicationJson), @@ -545,7 +537,6 @@ class Client extends DynamiteClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -573,7 +564,7 @@ class Client extends DynamiteClient { 'delete', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(DeleteAppResponseApplicationJson), @@ -622,7 +613,6 @@ class Client extends DynamiteClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -650,7 +640,7 @@ class Client extends DynamiteClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(UnifiedpushDiscoveryResponseApplicationJson), @@ -695,7 +685,6 @@ class Client extends DynamiteClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -723,7 +712,7 @@ class Client extends DynamiteClient { 'post', _path, _headers, - _body, + null, const {201}, ), bodyType: const FullType(PushResponseApplicationJson), @@ -762,11 +751,9 @@ class Client extends DynamiteClient { /// * [gatewayMatrixDiscovery] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse gatewayMatrixDiscoveryRaw() { - final _parameters = {}; final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -785,13 +772,13 @@ class Client extends DynamiteClient { } // coverage:ignore-end - final _path = UriTemplate('/index.php/apps/uppush/gateway/matrix').expand(_parameters); + const _path = '/index.php/apps/uppush/gateway/matrix'; return DynamiteRawResponse( response: executeRequest( 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(GatewayMatrixDiscoveryResponseApplicationJson), @@ -830,11 +817,9 @@ class Client extends DynamiteClient { /// * [gatewayMatrix] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse gatewayMatrixRaw() { - final _parameters = {}; final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -853,13 +838,13 @@ class Client extends DynamiteClient { } // coverage:ignore-end - final _path = UriTemplate('/index.php/apps/uppush/gateway/matrix').expand(_parameters); + const _path = '/index.php/apps/uppush/gateway/matrix'; return DynamiteRawResponse( response: executeRequest( 'post', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(GatewayMatrixResponseApplicationJson), diff --git a/packages/nextcloud/lib/src/api/user_status.openapi.dart b/packages/nextcloud/lib/src/api/user_status.openapi.dart index 8ec7b910082..07b50668cb8 100644 --- a/packages/nextcloud/lib/src/api/user_status.openapi.dart +++ b/packages/nextcloud/lib/src/api/user_status.openapi.dart @@ -4,7 +4,6 @@ // ignore_for_file: unreachable_switch_case // ignore_for_file: camel_case_extensions // ignore_for_file: no_leading_underscores_for_local_identifiers -import 'dart:typed_data'; import 'package:built_collection/built_collection.dart'; import 'package:built_value/built_value.dart'; @@ -111,7 +110,6 @@ class HeartbeatClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -143,7 +141,7 @@ class HeartbeatClient { 'put', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(HeartbeatHeartbeatResponseApplicationJson), @@ -196,11 +194,9 @@ class PredefinedStatusClient { /// * [findAll] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse findAllRaw({bool? oCSAPIRequest}) { - final _parameters = {}; final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -223,13 +219,13 @@ class PredefinedStatusClient { $oCSAPIRequest ??= true; _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final _path = UriTemplate('/ocs/v2.php/apps/user_status/api/v1/predefined_statuses').expand(_parameters); + const _path = '/ocs/v2.php/apps/user_status/api/v1/predefined_statuses'; return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(PredefinedStatusFindAllResponseApplicationJson), @@ -300,7 +296,6 @@ class StatusesClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -335,7 +330,7 @@ class StatusesClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(StatusesFindAllResponseApplicationJson), @@ -397,7 +392,6 @@ class StatusesClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -429,7 +423,7 @@ class StatusesClient { 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(StatusesFindResponseApplicationJson), @@ -484,11 +478,9 @@ class UserStatusClient { /// * [getStatus] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse getStatusRaw({bool? oCSAPIRequest}) { - final _parameters = {}; final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -511,13 +503,13 @@ class UserStatusClient { $oCSAPIRequest ??= true; _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final _path = UriTemplate('/ocs/v2.php/apps/user_status/api/v1/user_status').expand(_parameters); + const _path = '/ocs/v2.php/apps/user_status/api/v1/user_status'; return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(UserStatusGetStatusResponseApplicationJson), @@ -579,7 +571,6 @@ class UserStatusClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -612,7 +603,7 @@ class UserStatusClient { 'put', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(UserStatusSetStatusResponseApplicationJson), @@ -679,7 +670,6 @@ class UserStatusClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -716,7 +706,7 @@ class UserStatusClient { 'put', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(UserStatusSetPredefinedMessageResponseApplicationJson), @@ -788,7 +778,6 @@ class UserStatusClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -828,7 +817,7 @@ class UserStatusClient { 'put', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(UserStatusSetCustomMessageResponseApplicationJson), @@ -877,11 +866,9 @@ class UserStatusClient { /// * [clearMessage] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse clearMessageRaw({bool? oCSAPIRequest}) { - final _parameters = {}; final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -904,13 +891,13 @@ class UserStatusClient { $oCSAPIRequest ??= true; _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final _path = UriTemplate('/ocs/v2.php/apps/user_status/api/v1/user_status/message').expand(_parameters); + const _path = '/ocs/v2.php/apps/user_status/api/v1/user_status/message'; return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(UserStatusClearMessageResponseApplicationJson), @@ -970,7 +957,6 @@ class UserStatusClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1002,7 +988,7 @@ class UserStatusClient { 'delete', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(UserStatusRevertStatusResponseApplicationJson), diff --git a/packages/nextcloud/lib/src/api/weather_status.openapi.dart b/packages/nextcloud/lib/src/api/weather_status.openapi.dart index 30783dd0ce6..93a931bb665 100644 --- a/packages/nextcloud/lib/src/api/weather_status.openapi.dart +++ b/packages/nextcloud/lib/src/api/weather_status.openapi.dart @@ -4,7 +4,6 @@ // ignore_for_file: unreachable_switch_case // ignore_for_file: camel_case_extensions // ignore_for_file: no_leading_underscores_for_local_identifiers -import 'dart:typed_data'; import 'package:built_collection/built_collection.dart'; import 'package:built_value/built_value.dart'; @@ -97,7 +96,6 @@ class WeatherStatusClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -129,7 +127,7 @@ class WeatherStatusClient { 'put', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(WeatherStatusSetModeResponseApplicationJson), @@ -180,11 +178,9 @@ class WeatherStatusClient { DynamiteRawResponse usePersonalAddressRaw({ bool? oCSAPIRequest, }) { - final _parameters = {}; final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -207,13 +203,13 @@ class WeatherStatusClient { $oCSAPIRequest ??= true; _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final _path = UriTemplate('/ocs/v2.php/apps/weather_status/api/v1/use-personal').expand(_parameters); + const _path = '/ocs/v2.php/apps/weather_status/api/v1/use-personal'; return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(WeatherStatusUsePersonalAddressResponseApplicationJson), @@ -262,11 +258,9 @@ class WeatherStatusClient { /// * [getLocation] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse getLocationRaw({bool? oCSAPIRequest}) { - final _parameters = {}; final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -289,13 +283,13 @@ class WeatherStatusClient { $oCSAPIRequest ??= true; _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final _path = UriTemplate('/ocs/v2.php/apps/weather_status/api/v1/location').expand(_parameters); + const _path = '/ocs/v2.php/apps/weather_status/api/v1/location'; return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(WeatherStatusGetLocationResponseApplicationJson), @@ -365,7 +359,6 @@ class WeatherStatusClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -404,7 +397,7 @@ class WeatherStatusClient { 'put', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(WeatherStatusSetLocationResponseApplicationJson), @@ -455,11 +448,9 @@ class WeatherStatusClient { /// * [getForecast] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse getForecastRaw({bool? oCSAPIRequest}) { - final _parameters = {}; final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -482,13 +473,13 @@ class WeatherStatusClient { $oCSAPIRequest ??= true; _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final _path = UriTemplate('/ocs/v2.php/apps/weather_status/api/v1/forecast').expand(_parameters); + const _path = '/ocs/v2.php/apps/weather_status/api/v1/forecast'; return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(WeatherStatusGetForecastResponseApplicationJson), @@ -537,11 +528,9 @@ class WeatherStatusClient { /// * [getFavorites] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse getFavoritesRaw({bool? oCSAPIRequest}) { - final _parameters = {}; final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -564,13 +553,13 @@ class WeatherStatusClient { $oCSAPIRequest ??= true; _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final _path = UriTemplate('/ocs/v2.php/apps/weather_status/api/v1/favorites').expand(_parameters); + const _path = '/ocs/v2.php/apps/weather_status/api/v1/favorites'; return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(WeatherStatusGetFavoritesResponseApplicationJson), @@ -630,7 +619,6 @@ class WeatherStatusClient { final _headers = { 'Accept': 'application/json', }; - Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -664,7 +652,7 @@ class WeatherStatusClient { 'put', _path, _headers, - _body, + null, const {200}, ), bodyType: const FullType(WeatherStatusSetFavoritesResponseApplicationJson),