diff --git a/packages/dynamite/dynamite_end_to_end_test/build.yaml b/packages/dynamite/dynamite_end_to_end_test/build.yaml index 5f79050209b..261543553a4 100644 --- a/packages/dynamite/dynamite_end_to_end_test/build.yaml +++ b/packages/dynamite/dynamite_end_to_end_test/build.yaml @@ -12,3 +12,4 @@ targets: - public_member_api_docs - unreachable_switch_case - unused_element + - no_leading_underscores_for_local_identifiers 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 44666aae488..aebcaf1f86b 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 @@ -3,6 +3,7 @@ // ignore_for_file: public_member_api_docs // ignore_for_file: unreachable_switch_case // ignore_for_file: unused_element +// ignore_for_file: no_leading_underscores_for_local_identifiers import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; 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 8b4f319b7fb..b211056c7c5 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 @@ -3,6 +3,7 @@ // ignore_for_file: public_member_api_docs // ignore_for_file: unreachable_switch_case // ignore_for_file: unused_element +// ignore_for_file: no_leading_underscores_for_local_identifiers import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; 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 f8ebe5bea8a..3cd2eb58610 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 @@ -3,6 +3,7 @@ // ignore_for_file: public_member_api_docs // ignore_for_file: unreachable_switch_case // ignore_for_file: unused_element +// ignore_for_file: no_leading_underscores_for_local_identifiers import 'package:built_collection/built_collection.dart'; import 'package:built_value/built_value.dart'; 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 dc79eac9ce8..eece820f08b 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 @@ -3,6 +3,7 @@ // ignore_for_file: public_member_api_docs // 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/built_value.dart'; @@ -60,17 +61,17 @@ 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 _parameters = {}; + final _headers = {}; + Uint8List? _body; - final uri = Uri.parse(UriTemplate('/').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/').expand(_parameters)); return DynamiteRawResponse( response: executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: null, @@ -105,17 +106,17 @@ 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 _parameters = {}; + final _headers = {}; + Uint8List? _body; - final uri = Uri.parse(UriTemplate('/with_content/operation_id').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/with_content/operation_id').expand(_parameters)); return DynamiteRawResponse( response: executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: null, @@ -150,19 +151,19 @@ class Client extends DynamiteClient { /// * [getWithContent] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse getWithContentRaw() { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/octet-stream', }; - Uint8List? body; + Uint8List? _body; - final uri = Uri.parse(UriTemplate('/with_content').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/with_content').expand(_parameters)); return DynamiteRawResponse( response: executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, 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 a69ae6e97c1..cb054141d95 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 @@ -3,6 +3,7 @@ // ignore_for_file: public_member_api_docs // ignore_for_file: unreachable_switch_case // ignore_for_file: unused_element +// ignore_for_file: no_leading_underscores_for_local_identifiers import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; 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 aa94a9475fb..8c69f61b41e 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 @@ -3,6 +3,7 @@ // ignore_for_file: public_member_api_docs // ignore_for_file: unreachable_switch_case // ignore_for_file: unused_element +// ignore_for_file: no_leading_underscores_for_local_identifiers import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; 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 80b17d37150..cbfacafc8e2 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 @@ -3,6 +3,7 @@ // ignore_for_file: public_member_api_docs // ignore_for_file: unreachable_switch_case // ignore_for_file: unused_element +// ignore_for_file: no_leading_underscores_for_local_identifiers import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; 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 775b9b629f5..70b97840815 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 @@ -3,6 +3,7 @@ // ignore_for_file: public_member_api_docs // 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_collection/built_collection.dart'; @@ -136,11 +137,11 @@ class Client extends DynamiteClient { GetAnyOf? anyOf, GetEnumPattern? enumPattern, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; final $contentString = jsonSerializers.serialize( contentString, @@ -148,7 +149,7 @@ class Client extends DynamiteClient { FullType(BuiltMap, [FullType(String), FullType(JsonObject)]), ]), ); - parameters['content_string'] = $contentString; + _parameters['content_string'] = $contentString; final $contentParameter = jsonSerializers.serialize( contentParameter, @@ -156,53 +157,53 @@ class Client extends DynamiteClient { FullType(BuiltMap, [FullType(String), FullType(JsonObject)]), ]), ); - parameters['content_parameter'] = $contentParameter; + _parameters['content_parameter'] = $contentParameter; final $array = jsonSerializers.serialize(array, specifiedType: const FullType(BuiltList, [FullType(String)])); - parameters['array'] = $array; + _parameters['array'] = $array; final $$bool = jsonSerializers.serialize($bool, specifiedType: const FullType(bool)); - parameters['bool'] = $$bool; + _parameters['bool'] = $$bool; final $string = jsonSerializers.serialize(string, specifiedType: const FullType(String)); - parameters['string'] = $string; + _parameters['string'] = $string; final $stringBinary = jsonSerializers.serialize(stringBinary, specifiedType: const FullType(Uint8List)); - parameters['string_binary'] = $stringBinary; + _parameters['string_binary'] = $stringBinary; final $$int = jsonSerializers.serialize($int, specifiedType: const FullType(int)); - parameters['int'] = $$int; + _parameters['int'] = $$int; final $$double = jsonSerializers.serialize($double, specifiedType: const FullType(double)); - parameters['double'] = $$double; + _parameters['double'] = $$double; final $$num = jsonSerializers.serialize($num, specifiedType: const FullType(num)); - parameters['num'] = $$num; + _parameters['num'] = $$num; final $object = jsonSerializers.serialize(object, specifiedType: const FullType(JsonObject)); - parameters['object'] = $object; + _parameters['object'] = $object; final $oneOf = jsonSerializers.serialize(oneOf, specifiedType: const FullType(GetOneOf)); - parameters['oneOf'] = $oneOf; + _parameters['oneOf'] = $oneOf; final $anyOf = jsonSerializers.serialize(anyOf, specifiedType: const FullType(GetAnyOf)); - parameters['anyOf'] = $anyOf; + _parameters['anyOf'] = $anyOf; final $enumPattern = jsonSerializers.serialize(enumPattern, specifiedType: const FullType(GetEnumPattern)); dynamite_utils.checkPattern($enumPattern as String?, RegExp('[a-z]'), 'enumPattern'); - parameters['enum_pattern'] = $enumPattern; + _parameters['enum_pattern'] = $enumPattern; - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate( '/{?content_string*,content_parameter*,array*,bool*,string*,string_binary*,int*,double*,num*,object*,oneOf*,anyOf*,enum_pattern*}', - ).expand(parameters), + ).expand(_parameters), ); return DynamiteRawResponse( response: executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(JsonObject), @@ -274,49 +275,49 @@ class Client extends DynamiteClient { double? $double, num? $num, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; final $array = jsonSerializers.serialize(array, specifiedType: const FullType(BuiltList, [FullType(String)])); if ($array != null) { - headers['array'] = ($array as List).map((e) => e as String).join(); + _headers['array'] = ($array as List).map((e) => e as String).join(); } final $$bool = jsonSerializers.serialize($bool, specifiedType: const FullType(bool)); if ($$bool != null) { - headers['bool'] = $$bool.toString(); + _headers['bool'] = $$bool.toString(); } final $string = jsonSerializers.serialize(string, specifiedType: const FullType(String)); if ($string != null) { - headers['string'] = $string as String; + _headers['string'] = $string as String; } final $$int = jsonSerializers.serialize($int, specifiedType: const FullType(int)); if ($$int != null) { - headers['int'] = $$int.toString(); + _headers['int'] = $$int.toString(); } final $$double = jsonSerializers.serialize($double, specifiedType: const FullType(double)); if ($$double != null) { - headers['double'] = $$double.toString(); + _headers['double'] = $$double.toString(); } final $$num = jsonSerializers.serialize($num, specifiedType: const FullType(num)); if ($$num != null) { - headers['num'] = $$num.toString(); + _headers['num'] = $$num.toString(); } - final uri = Uri.parse(UriTemplate('/headers').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/headers').expand(_parameters)); return DynamiteRawResponse( response: executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(JsonObject), @@ -353,22 +354,22 @@ class Client extends DynamiteClient { /// * [getPathParameter] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse getPathParameterRaw({required String pathParameter}) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; final $pathParameter = jsonSerializers.serialize(pathParameter, specifiedType: const FullType(String)); - parameters['path_parameter'] = $pathParameter; + _parameters['path_parameter'] = $pathParameter; - final uri = Uri.parse(UriTemplate('/{path_parameter}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/{path_parameter}').expand(_parameters)); return DynamiteRawResponse( response: executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, 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 3ec62ea2506..aa0eff50875 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 @@ -3,6 +3,7 @@ // ignore_for_file: public_member_api_docs // ignore_for_file: unreachable_switch_case // ignore_for_file: unused_element +// ignore_for_file: no_leading_underscores_for_local_identifiers import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; 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 fb48c82dd4d..3d8ea5577bb 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 @@ -3,6 +3,7 @@ // ignore_for_file: public_member_api_docs // ignore_for_file: unreachable_switch_case // ignore_for_file: unused_element +// ignore_for_file: no_leading_underscores_for_local_identifiers import 'dart:convert'; import 'dart:typed_data'; @@ -60,21 +61,21 @@ 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; + final _parameters = {}; + final _headers = {}; + Uint8List? _body; - headers['Content-Type'] = 'application/octet-stream'; + _headers['Content-Type'] = 'application/octet-stream'; if (uint8List != null) { - body = uint8List; + _body = uint8List; } - final uri = Uri.parse(UriTemplate('/').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/').expand(_parameters)); return DynamiteRawResponse( response: executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, null, ), bodyType: null, @@ -111,21 +112,21 @@ 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; + final _parameters = {}; + final _headers = {}; + Uint8List? _body; - headers['Content-Type'] = 'application/octet-stream'; + _headers['Content-Type'] = 'application/octet-stream'; if (string != null) { - body = utf8.encode(string); + _body = utf8.encode(string); } - final uri = Uri.parse(UriTemplate('/').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/').expand(_parameters)); return DynamiteRawResponse( response: executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, null, ), bodyType: null, 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 fbcb5da93fa..d2f130b1ff6 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 @@ -3,6 +3,7 @@ // ignore_for_file: public_member_api_docs // 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'; @@ -57,19 +58,19 @@ class Client extends DynamiteClient { /// * [$get] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse $getRaw() { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; - final uri = Uri.parse(UriTemplate('/').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/').expand(_parameters)); return DynamiteRawResponse( response: executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, null, ), bodyType: const FullType(String), @@ -106,19 +107,19 @@ class Client extends DynamiteClient { /// * [put] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse putRaw() { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; - final uri = Uri.parse(UriTemplate('/').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/').expand(_parameters)); return DynamiteRawResponse( response: executeRequest( 'put', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(String), @@ -157,19 +158,19 @@ class Client extends DynamiteClient { /// * [post] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse postRaw() { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; - final uri = Uri.parse(UriTemplate('/').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/').expand(_parameters)); return DynamiteRawResponse( response: executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, null, ), bodyType: const FullType(String), @@ -206,19 +207,19 @@ class Client extends DynamiteClient { /// * [patch] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse patchRaw() { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; - final uri = Uri.parse(UriTemplate('/').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/').expand(_parameters)); return DynamiteRawResponse( response: executeRequest( 'patch', - uri, - headers, - body, + _uri, + _headers, + _body, 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 b631295118f..f82b2ac2819 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 @@ -3,6 +3,7 @@ // ignore_for_file: public_member_api_docs // ignore_for_file: unreachable_switch_case // ignore_for_file: unused_element +// ignore_for_file: no_leading_underscores_for_local_identifiers import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; 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 c36d62eb88a..7ff13315481 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 @@ -3,6 +3,7 @@ // ignore_for_file: public_member_api_docs // ignore_for_file: unreachable_switch_case // ignore_for_file: unused_element +// ignore_for_file: no_leading_underscores_for_local_identifiers import 'package:built_value/built_value.dart'; import 'package:built_value/json_object.dart'; 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 e24299a92e2..b1c2ccbe2e5 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 @@ -3,6 +3,7 @@ // ignore_for_file: public_member_api_docs // 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_collection/built_collection.dart'; diff --git a/packages/dynamite/dynamite_petstore_example/build.yaml b/packages/dynamite/dynamite_petstore_example/build.yaml index 314cdbae6c1..be7dcfc2a1e 100644 --- a/packages/dynamite/dynamite_petstore_example/build.yaml +++ b/packages/dynamite/dynamite_petstore_example/build.yaml @@ -11,6 +11,7 @@ targets: - discarded_futures - public_member_api_docs - unreachable_switch_case + - no_leading_underscores_for_local_identifiers coverage_ignores: - 'const .*\._\(\);' - 'factory .*\.fromJson\(Map json\) => jsonSerializers\.deserializeWith\(serializer, json\)!;' diff --git a/packages/dynamite/dynamite_petstore_example/lib/petstore.openapi.dart b/packages/dynamite/dynamite_petstore_example/lib/petstore.openapi.dart index 46268d4ad54..5e5d321da73 100644 --- a/packages/dynamite/dynamite_petstore_example/lib/petstore.openapi.dart +++ b/packages/dynamite/dynamite_petstore_example/lib/petstore.openapi.dart @@ -2,6 +2,7 @@ // ignore_for_file: discarded_futures // ignore_for_file: public_member_api_docs // ignore_for_file: unreachable_switch_case +// ignore_for_file: no_leading_underscores_for_local_identifiers import 'dart:convert'; import 'dart:typed_data'; diff --git a/packages/nextcloud/build.yaml b/packages/nextcloud/build.yaml index 53a645d4abf..3b4aa1efd69 100644 --- a/packages/nextcloud/build.yaml +++ b/packages/nextcloud/build.yaml @@ -12,6 +12,7 @@ targets: - public_member_api_docs - unreachable_switch_case - camel_case_extensions + - no_leading_underscores_for_local_identifiers coverage_ignores: - 'const .*\._\(\);' - 'factory .*\.fromJson\(Map json\) => jsonSerializers\.deserializeWith\(serializer, json\)!;' diff --git a/packages/nextcloud/lib/src/api/comments.openapi.dart b/packages/nextcloud/lib/src/api/comments.openapi.dart index d5e3b1c1417..87a4445d670 100644 --- a/packages/nextcloud/lib/src/api/comments.openapi.dart +++ b/packages/nextcloud/lib/src/api/comments.openapi.dart @@ -3,6 +3,7 @@ // ignore_for_file: public_member_api_docs // ignore_for_file: unreachable_switch_case // ignore_for_file: camel_case_extensions +// ignore_for_file: no_leading_underscores_for_local_identifiers import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; diff --git a/packages/nextcloud/lib/src/api/core.openapi.dart b/packages/nextcloud/lib/src/api/core.openapi.dart index 3df4f24b670..5e061be746a 100644 --- a/packages/nextcloud/lib/src/api/core.openapi.dart +++ b/packages/nextcloud/lib/src/api/core.openapi.dart @@ -3,6 +3,7 @@ // ignore_for_file: public_member_api_docs // 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'; @@ -106,19 +107,19 @@ class Client extends DynamiteClient { /// * [getStatus] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse getStatusRaw() { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; - final uri = Uri.parse(UriTemplate('/status.php').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/status.php').expand(_parameters)); return DynamiteRawResponse( response: executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(Status), @@ -175,11 +176,11 @@ class AppPasswordClient { /// * [getAppPassword] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse getAppPasswordRaw({bool? oCSAPIRequest}) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -190,7 +191,7 @@ class AppPasswordClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -200,15 +201,15 @@ class AppPasswordClient { // coverage:ignore-end var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/core/getapppassword').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/core/getapppassword').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(AppPasswordGetAppPasswordResponseApplicationJson), @@ -261,11 +262,11 @@ class AppPasswordClient { DynamiteRawResponse rotateAppPasswordRaw({ bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -276,7 +277,7 @@ class AppPasswordClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -286,15 +287,15 @@ class AppPasswordClient { // coverage:ignore-end var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/core/apppassword/rotate').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/core/apppassword/rotate').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(AppPasswordRotateAppPasswordResponseApplicationJson), @@ -347,11 +348,11 @@ class AppPasswordClient { DynamiteRawResponse deleteAppPasswordRaw({ bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -362,7 +363,7 @@ class AppPasswordClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -372,15 +373,15 @@ class AppPasswordClient { // coverage:ignore-end var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/core/apppassword').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/core/apppassword').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(AppPasswordDeleteAppPasswordResponseApplicationJson), @@ -467,11 +468,11 @@ class AutoCompleteClient { int? limit, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -482,7 +483,7 @@ class AutoCompleteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -491,39 +492,39 @@ class AutoCompleteClient { // coverage:ignore-end final $search = jsonSerializers.serialize(search, specifiedType: const FullType(String)); - parameters['search'] = $search; + _parameters['search'] = $search; final $itemType = jsonSerializers.serialize(itemType, specifiedType: const FullType(String)); - parameters['itemType'] = $itemType; + _parameters['itemType'] = $itemType; final $itemId = jsonSerializers.serialize(itemId, specifiedType: const FullType(String)); - parameters['itemId'] = $itemId; + _parameters['itemId'] = $itemId; final $sorter = jsonSerializers.serialize(sorter, specifiedType: const FullType(String)); - parameters['sorter'] = $sorter; + _parameters['sorter'] = $sorter; final $shareTypes = jsonSerializers.serialize(shareTypes, specifiedType: const FullType(BuiltList, [FullType(int)])); - parameters['shareTypes%5B%5D'] = $shareTypes; + _parameters['shareTypes%5B%5D'] = $shareTypes; var $limit = jsonSerializers.serialize(limit, specifiedType: const FullType(int)); $limit ??= 10; - parameters['limit'] = $limit; + _parameters['limit'] = $limit; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate('/ocs/v2.php/core/autocomplete/get{?search*,itemType*,itemId*,sorter*,shareTypes%5B%5D*,limit*}') - .expand(parameters), + .expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(AutoCompleteGetResponseApplicationJson), @@ -588,11 +589,11 @@ class AvatarClient { required String userId, required int size, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': '*/*', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -603,25 +604,25 @@ class AvatarClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } // coverage:ignore-end final $userId = jsonSerializers.serialize(userId, specifiedType: const FullType(String)); - parameters['userId'] = $userId; + _parameters['userId'] = $userId; final $size = jsonSerializers.serialize(size, specifiedType: const FullType(int)); - parameters['size'] = $size; + _parameters['size'] = $size; - final uri = Uri.parse(UriTemplate('/index.php/avatar/{userId}/{size}/dark').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/index.php/avatar/{userId}/{size}/dark').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(Uint8List), @@ -679,11 +680,11 @@ class AvatarClient { required String userId, required int size, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': '*/*', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -694,25 +695,25 @@ class AvatarClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } // coverage:ignore-end final $userId = jsonSerializers.serialize(userId, specifiedType: const FullType(String)); - parameters['userId'] = $userId; + _parameters['userId'] = $userId; final $size = jsonSerializers.serialize(size, specifiedType: const FullType(int)); - parameters['size'] = $size; + _parameters['size'] = $size; - final uri = Uri.parse(UriTemplate('/index.php/avatar/{userId}/{size}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/index.php/avatar/{userId}/{size}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(Uint8List), @@ -767,11 +768,11 @@ class ClientFlowLoginV2Client { /// * [poll] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse pollRaw({required String token}) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -782,22 +783,22 @@ class ClientFlowLoginV2Client { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); - parameters['token'] = $token; + _parameters['token'] = $token; - final uri = Uri.parse(UriTemplate('/index.php/login/v2/poll{?token*}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/index.php/login/v2/poll{?token*}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(LoginFlowV2Credentials), @@ -836,11 +837,11 @@ class ClientFlowLoginV2Client { /// * [init] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse initRaw() { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -851,19 +852,19 @@ class ClientFlowLoginV2Client { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } // coverage:ignore-end - final uri = Uri.parse(UriTemplate('/index.php/login/v2').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/index.php/login/v2').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(LoginFlowV2), @@ -927,11 +928,11 @@ class CollaborationResourcesClient { required String filter, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -942,7 +943,7 @@ class CollaborationResourcesClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -951,20 +952,20 @@ class CollaborationResourcesClient { // coverage:ignore-end final $filter = jsonSerializers.serialize(filter, specifiedType: const FullType(String)); - parameters['filter'] = $filter; + _parameters['filter'] = $filter; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = - Uri.parse(UriTemplate('/ocs/v2.php/collaboration/resources/collections/search/{filter}').expand(parameters)); + final _uri = + Uri.parse(UriTemplate('/ocs/v2.php/collaboration/resources/collections/search/{filter}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(CollaborationResourcesSearchCollectionsResponseApplicationJson), @@ -1024,11 +1025,11 @@ class CollaborationResourcesClient { required int collectionId, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1039,7 +1040,7 @@ class CollaborationResourcesClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1048,20 +1049,20 @@ class CollaborationResourcesClient { // coverage:ignore-end final $collectionId = jsonSerializers.serialize(collectionId, specifiedType: const FullType(int)); - parameters['collectionId'] = $collectionId; + _parameters['collectionId'] = $collectionId; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = - Uri.parse(UriTemplate('/ocs/v2.php/collaboration/resources/collections/{collectionId}').expand(parameters)); + final _uri = + Uri.parse(UriTemplate('/ocs/v2.php/collaboration/resources/collections/{collectionId}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(CollaborationResourcesListCollectionResponseApplicationJson), @@ -1126,11 +1127,11 @@ class CollaborationResourcesClient { required int collectionId, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1141,7 +1142,7 @@ class CollaborationResourcesClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1150,25 +1151,25 @@ class CollaborationResourcesClient { // coverage:ignore-end final $collectionName = jsonSerializers.serialize(collectionName, specifiedType: const FullType(String)); - parameters['collectionName'] = $collectionName; + _parameters['collectionName'] = $collectionName; final $collectionId = jsonSerializers.serialize(collectionId, specifiedType: const FullType(int)); - parameters['collectionId'] = $collectionId; + _parameters['collectionId'] = $collectionId; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate('/ocs/v2.php/collaboration/resources/collections/{collectionId}{?collectionName*}') - .expand(parameters), + .expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(CollaborationResourcesRenameCollectionResponseApplicationJson), @@ -1238,11 +1239,11 @@ class CollaborationResourcesClient { required int collectionId, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1253,7 +1254,7 @@ class CollaborationResourcesClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1262,28 +1263,28 @@ class CollaborationResourcesClient { // coverage:ignore-end final $resourceType = jsonSerializers.serialize(resourceType, specifiedType: const FullType(String)); - parameters['resourceType'] = $resourceType; + _parameters['resourceType'] = $resourceType; final $resourceId = jsonSerializers.serialize(resourceId, specifiedType: const FullType(String)); - parameters['resourceId'] = $resourceId; + _parameters['resourceId'] = $resourceId; final $collectionId = jsonSerializers.serialize(collectionId, specifiedType: const FullType(int)); - parameters['collectionId'] = $collectionId; + _parameters['collectionId'] = $collectionId; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate('/ocs/v2.php/collaboration/resources/collections/{collectionId}{?resourceType*,resourceId*}') - .expand(parameters), + .expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(CollaborationResourcesAddResourceResponseApplicationJson), @@ -1353,11 +1354,11 @@ class CollaborationResourcesClient { required int collectionId, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1368,7 +1369,7 @@ class CollaborationResourcesClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1377,28 +1378,28 @@ class CollaborationResourcesClient { // coverage:ignore-end final $resourceType = jsonSerializers.serialize(resourceType, specifiedType: const FullType(String)); - parameters['resourceType'] = $resourceType; + _parameters['resourceType'] = $resourceType; final $resourceId = jsonSerializers.serialize(resourceId, specifiedType: const FullType(String)); - parameters['resourceId'] = $resourceId; + _parameters['resourceId'] = $resourceId; final $collectionId = jsonSerializers.serialize(collectionId, specifiedType: const FullType(int)); - parameters['collectionId'] = $collectionId; + _parameters['collectionId'] = $collectionId; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate('/ocs/v2.php/collaboration/resources/collections/{collectionId}{?resourceType*,resourceId*}') - .expand(parameters), + .expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(CollaborationResourcesRemoveResourceResponseApplicationJson), @@ -1463,11 +1464,11 @@ class CollaborationResourcesClient { required String resourceId, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1478,7 +1479,7 @@ class CollaborationResourcesClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1487,23 +1488,23 @@ class CollaborationResourcesClient { // coverage:ignore-end final $resourceType = jsonSerializers.serialize(resourceType, specifiedType: const FullType(String)); - parameters['resourceType'] = $resourceType; + _parameters['resourceType'] = $resourceType; final $resourceId = jsonSerializers.serialize(resourceId, specifiedType: const FullType(String)); - parameters['resourceId'] = $resourceId; + _parameters['resourceId'] = $resourceId; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = - Uri.parse(UriTemplate('/ocs/v2.php/collaboration/resources/{resourceType}/{resourceId}').expand(parameters)); + final _uri = + Uri.parse(UriTemplate('/ocs/v2.php/collaboration/resources/{resourceType}/{resourceId}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(CollaborationResourcesGetCollectionsByResourceResponseApplicationJson), @@ -1577,11 +1578,11 @@ class CollaborationResourcesClient { required String baseResourceId, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1592,7 +1593,7 @@ class CollaborationResourcesClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1601,27 +1602,28 @@ class CollaborationResourcesClient { // coverage:ignore-end final $name = jsonSerializers.serialize(name, specifiedType: const FullType(String)); - parameters['name'] = $name; + _parameters['name'] = $name; final $baseResourceType = jsonSerializers.serialize(baseResourceType, specifiedType: const FullType(String)); - parameters['baseResourceType'] = $baseResourceType; + _parameters['baseResourceType'] = $baseResourceType; final $baseResourceId = jsonSerializers.serialize(baseResourceId, specifiedType: const FullType(String)); - parameters['baseResourceId'] = $baseResourceId; + _parameters['baseResourceId'] = $baseResourceId; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/collaboration/resources/{baseResourceType}/{baseResourceId}{?name*}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/collaboration/resources/{baseResourceType}/{baseResourceId}{?name*}') + .expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(CollaborationResourcesCreateCollectionOnResourceResponseApplicationJson), @@ -1688,11 +1690,11 @@ class GuestAvatarClient { required String guestName, required String size, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': '*/*', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1703,25 +1705,25 @@ class GuestAvatarClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } // coverage:ignore-end final $guestName = jsonSerializers.serialize(guestName, specifiedType: const FullType(String)); - parameters['guestName'] = $guestName; + _parameters['guestName'] = $guestName; final $size = jsonSerializers.serialize(size, specifiedType: const FullType(String)); - parameters['size'] = $size; + _parameters['size'] = $size; - final uri = Uri.parse(UriTemplate('/index.php/avatar/guest/{guestName}/{size}/dark').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/index.php/avatar/guest/{guestName}/{size}/dark').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200, 201}, ), bodyType: const FullType(Uint8List), @@ -1786,11 +1788,11 @@ class GuestAvatarClient { required String size, int? darkTheme, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': '*/*', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1801,29 +1803,29 @@ class GuestAvatarClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } // coverage:ignore-end final $guestName = jsonSerializers.serialize(guestName, specifiedType: const FullType(String)); - parameters['guestName'] = $guestName; + _parameters['guestName'] = $guestName; final $size = jsonSerializers.serialize(size, specifiedType: const FullType(String)); - parameters['size'] = $size; + _parameters['size'] = $size; var $darkTheme = jsonSerializers.serialize(darkTheme, specifiedType: const FullType(int)); $darkTheme ??= 0; - parameters['darkTheme'] = $darkTheme; + _parameters['darkTheme'] = $darkTheme; - final uri = Uri.parse(UriTemplate('/index.php/avatar/guest/{guestName}/{size}{?darkTheme*}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/index.php/avatar/guest/{guestName}/{size}{?darkTheme*}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200, 201}, ), bodyType: const FullType(Uint8List), @@ -1887,11 +1889,11 @@ class HoverCardClient { required String userId, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1902,7 +1904,7 @@ class HoverCardClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1911,19 +1913,19 @@ class HoverCardClient { // coverage:ignore-end final $userId = jsonSerializers.serialize(userId, specifiedType: const FullType(String)); - parameters['userId'] = $userId; + _parameters['userId'] = $userId; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/hovercard/v1/{userId}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/hovercard/v1/{userId}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(HoverCardGetUserResponseApplicationJson), @@ -1987,11 +1989,11 @@ class NavigationClient { int? absolute, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2002,7 +2004,7 @@ class NavigationClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -2012,19 +2014,19 @@ class NavigationClient { // coverage:ignore-end var $absolute = jsonSerializers.serialize(absolute, specifiedType: const FullType(int)); $absolute ??= 0; - parameters['absolute'] = $absolute; + _parameters['absolute'] = $absolute; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/core/navigation/apps{?absolute*}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/core/navigation/apps{?absolute*}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(NavigationGetAppsNavigationResponseApplicationJson), @@ -2082,11 +2084,11 @@ class NavigationClient { int? absolute, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2097,7 +2099,7 @@ class NavigationClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -2107,19 +2109,19 @@ class NavigationClient { // coverage:ignore-end var $absolute = jsonSerializers.serialize(absolute, specifiedType: const FullType(int)); $absolute ??= 0; - parameters['absolute'] = $absolute; + _parameters['absolute'] = $absolute; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/core/navigation/settings{?absolute*}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/core/navigation/settings{?absolute*}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(NavigationGetSettingsNavigationResponseApplicationJson), @@ -2167,11 +2169,11 @@ class OcmClient { /// * [discovery] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse discoveryRaw() { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2182,19 +2184,19 @@ class OcmClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } // coverage:ignore-end - final uri = Uri.parse(UriTemplate('/index.php/ocm-provider').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/index.php/ocm-provider').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(OcmDiscoveryResponseApplicationJson), @@ -2249,11 +2251,11 @@ class OcsClient { /// * [getCapabilities] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse getCapabilitiesRaw({bool? oCSAPIRequest}) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2264,7 +2266,7 @@ class OcsClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -2272,15 +2274,15 @@ class OcsClient { // coverage:ignore-end var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/capabilities').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/capabilities').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(OcsGetCapabilitiesResponseApplicationJson), @@ -2375,11 +2377,11 @@ class PreviewClient { String? mode, int? mimeFallback, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': '*/*', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2390,7 +2392,7 @@ class PreviewClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -2400,41 +2402,41 @@ class PreviewClient { // coverage:ignore-end var $fileId = jsonSerializers.serialize(fileId, specifiedType: const FullType(int)); $fileId ??= -1; - parameters['fileId'] = $fileId; + _parameters['fileId'] = $fileId; var $x = jsonSerializers.serialize(x, specifiedType: const FullType(int)); $x ??= 32; - parameters['x'] = $x; + _parameters['x'] = $x; var $y = jsonSerializers.serialize(y, specifiedType: const FullType(int)); $y ??= 32; - parameters['y'] = $y; + _parameters['y'] = $y; var $a = jsonSerializers.serialize(a, specifiedType: const FullType(int)); $a ??= 0; - parameters['a'] = $a; + _parameters['a'] = $a; var $forceIcon = jsonSerializers.serialize(forceIcon, specifiedType: const FullType(int)); $forceIcon ??= 1; - parameters['forceIcon'] = $forceIcon; + _parameters['forceIcon'] = $forceIcon; var $mode = jsonSerializers.serialize(mode, specifiedType: const FullType(String)); $mode ??= 'fill'; - parameters['mode'] = $mode; + _parameters['mode'] = $mode; var $mimeFallback = jsonSerializers.serialize(mimeFallback, specifiedType: const FullType(int)); $mimeFallback ??= 0; - parameters['mimeFallback'] = $mimeFallback; + _parameters['mimeFallback'] = $mimeFallback; - final uri = Uri.parse( - UriTemplate('/index.php/core/preview{?fileId*,x*,y*,a*,forceIcon*,mode*,mimeFallback*}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/index.php/core/preview{?fileId*,x*,y*,a*,forceIcon*,mode*,mimeFallback*}').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(Uint8List), @@ -2523,11 +2525,11 @@ class PreviewClient { String? mode, int? mimeFallback, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': '*/*', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2538,7 +2540,7 @@ class PreviewClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -2548,41 +2550,41 @@ class PreviewClient { // coverage:ignore-end var $file = jsonSerializers.serialize(file, specifiedType: const FullType(String)); $file ??= ''; - parameters['file'] = $file; + _parameters['file'] = $file; var $x = jsonSerializers.serialize(x, specifiedType: const FullType(int)); $x ??= 32; - parameters['x'] = $x; + _parameters['x'] = $x; var $y = jsonSerializers.serialize(y, specifiedType: const FullType(int)); $y ??= 32; - parameters['y'] = $y; + _parameters['y'] = $y; var $a = jsonSerializers.serialize(a, specifiedType: const FullType(int)); $a ??= 0; - parameters['a'] = $a; + _parameters['a'] = $a; var $forceIcon = jsonSerializers.serialize(forceIcon, specifiedType: const FullType(int)); $forceIcon ??= 1; - parameters['forceIcon'] = $forceIcon; + _parameters['forceIcon'] = $forceIcon; var $mode = jsonSerializers.serialize(mode, specifiedType: const FullType(String)); $mode ??= 'fill'; - parameters['mode'] = $mode; + _parameters['mode'] = $mode; var $mimeFallback = jsonSerializers.serialize(mimeFallback, specifiedType: const FullType(int)); $mimeFallback ??= 0; - parameters['mimeFallback'] = $mimeFallback; + _parameters['mimeFallback'] = $mimeFallback; - final uri = Uri.parse( - UriTemplate('/index.php/core/preview.png{?file*,x*,y*,a*,forceIcon*,mode*,mimeFallback*}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/index.php/core/preview.png{?file*,x*,y*,a*,forceIcon*,mode*,mimeFallback*}').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(Uint8List), @@ -2660,11 +2662,11 @@ class ProfileApiClient { required String targetUserId, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2675,7 +2677,7 @@ class ProfileApiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -2684,25 +2686,26 @@ class ProfileApiClient { // coverage:ignore-end final $paramId = jsonSerializers.serialize(paramId, specifiedType: const FullType(String)); - parameters['paramId'] = $paramId; + _parameters['paramId'] = $paramId; final $visibility = jsonSerializers.serialize(visibility, specifiedType: const FullType(String)); - parameters['visibility'] = $visibility; + _parameters['visibility'] = $visibility; final $targetUserId = jsonSerializers.serialize(targetUserId, specifiedType: const FullType(String)); - parameters['targetUserId'] = $targetUserId; + _parameters['targetUserId'] = $targetUserId; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/profile/{targetUserId}{?paramId*,visibility*}').expand(parameters)); + final _uri = + Uri.parse(UriTemplate('/ocs/v2.php/profile/{targetUserId}{?paramId*,visibility*}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(ProfileApiSetVisibilityResponseApplicationJson), @@ -2757,11 +2760,11 @@ class ReferenceClient { /// * [preview] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse previewRaw({required String referenceId}) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': '*/*', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2772,22 +2775,22 @@ class ReferenceClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } // coverage:ignore-end final $referenceId = jsonSerializers.serialize(referenceId, specifiedType: const FullType(String)); - parameters['referenceId'] = $referenceId; + _parameters['referenceId'] = $referenceId; - final uri = Uri.parse(UriTemplate('/index.php/core/references/preview/{referenceId}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/index.php/core/references/preview/{referenceId}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(Uint8List), @@ -2849,11 +2852,11 @@ class ReferenceApiClient { required String reference, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2864,7 +2867,7 @@ class ReferenceApiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -2873,19 +2876,19 @@ class ReferenceApiClient { // coverage:ignore-end final $reference = jsonSerializers.serialize(reference, specifiedType: const FullType(String)); - parameters['reference'] = $reference; + _parameters['reference'] = $reference; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/references/resolve{?reference*}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/references/resolve{?reference*}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(ReferenceApiResolveOneResponseApplicationJson), @@ -2946,11 +2949,11 @@ class ReferenceApiClient { int? limit, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2961,7 +2964,7 @@ class ReferenceApiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -2971,23 +2974,24 @@ class ReferenceApiClient { // coverage:ignore-end final $references = jsonSerializers.serialize(references, specifiedType: const FullType(BuiltList, [FullType(String)])); - parameters['references%5B%5D'] = $references; + _parameters['references%5B%5D'] = $references; var $limit = jsonSerializers.serialize(limit, specifiedType: const FullType(int)); $limit ??= 1; - parameters['limit'] = $limit; + _parameters['limit'] = $limit; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/references/resolve{?references%5B%5D*,limit*}').expand(parameters)); + final _uri = + Uri.parse(UriTemplate('/ocs/v2.php/references/resolve{?references%5B%5D*,limit*}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(ReferenceApiResolveResponseApplicationJson), @@ -3053,11 +3057,11 @@ class ReferenceApiClient { int? limit, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3068,7 +3072,7 @@ class ReferenceApiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -3077,27 +3081,27 @@ class ReferenceApiClient { // coverage:ignore-end final $text = jsonSerializers.serialize(text, specifiedType: const FullType(String)); - parameters['text'] = $text; + _parameters['text'] = $text; var $resolve = jsonSerializers.serialize(resolve, specifiedType: const FullType(int)); $resolve ??= 0; - parameters['resolve'] = $resolve; + _parameters['resolve'] = $resolve; var $limit = jsonSerializers.serialize(limit, specifiedType: const FullType(int)); $limit ??= 1; - parameters['limit'] = $limit; + _parameters['limit'] = $limit; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/references/extract{?text*,resolve*,limit*}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/references/extract{?text*,resolve*,limit*}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(ReferenceApiExtractResponseApplicationJson), @@ -3148,11 +3152,11 @@ class ReferenceApiClient { DynamiteRawResponse getProvidersInfoRaw({ bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3163,7 +3167,7 @@ class ReferenceApiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -3173,15 +3177,15 @@ class ReferenceApiClient { // coverage:ignore-end var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/references/providers').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/references/providers').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(ReferenceApiGetProvidersInfoResponseApplicationJson), @@ -3242,11 +3246,11 @@ class ReferenceApiClient { int? timestamp, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3257,7 +3261,7 @@ class ReferenceApiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -3266,22 +3270,23 @@ class ReferenceApiClient { // coverage:ignore-end final $providerId = jsonSerializers.serialize(providerId, specifiedType: const FullType(String)); - parameters['providerId'] = $providerId; + _parameters['providerId'] = $providerId; final $timestamp = jsonSerializers.serialize(timestamp, specifiedType: const FullType(int)); - parameters['timestamp'] = $timestamp; + _parameters['timestamp'] = $timestamp; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/references/provider/{providerId}{?timestamp*}').expand(parameters)); + final _uri = + Uri.parse(UriTemplate('/ocs/v2.php/references/provider/{providerId}{?timestamp*}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(ReferenceApiTouchProviderResponseApplicationJson), @@ -3336,11 +3341,11 @@ class TextProcessingApiClient { /// * [taskTypes] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse taskTypesRaw({bool? oCSAPIRequest}) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3351,7 +3356,7 @@ class TextProcessingApiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -3359,15 +3364,15 @@ class TextProcessingApiClient { // coverage:ignore-end var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/textprocessing/tasktypes').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/textprocessing/tasktypes').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(TextProcessingApiTaskTypesResponseApplicationJson), @@ -3442,11 +3447,11 @@ class TextProcessingApiClient { String? identifier, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3457,38 +3462,38 @@ class TextProcessingApiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } // coverage:ignore-end final $input = jsonSerializers.serialize(input, specifiedType: const FullType(String)); - parameters['input'] = $input; + _parameters['input'] = $input; final $type = jsonSerializers.serialize(type, specifiedType: const FullType(String)); - parameters['type'] = $type; + _parameters['type'] = $type; final $appId = jsonSerializers.serialize(appId, specifiedType: const FullType(String)); - parameters['appId'] = $appId; + _parameters['appId'] = $appId; var $identifier = jsonSerializers.serialize(identifier, specifiedType: const FullType(String)); $identifier ??= ''; - parameters['identifier'] = $identifier; + _parameters['identifier'] = $identifier; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/textprocessing/schedule{?input*,type*,appId*,identifier*}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/textprocessing/schedule{?input*,type*,appId*,identifier*}').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(TextProcessingApiScheduleResponseApplicationJson), @@ -3548,11 +3553,11 @@ class TextProcessingApiClient { required int id, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3563,26 +3568,26 @@ class TextProcessingApiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } // coverage:ignore-end final $id = jsonSerializers.serialize(id, specifiedType: const FullType(int)); - parameters['id'] = $id; + _parameters['id'] = $id; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/textprocessing/task/{id}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/textprocessing/task/{id}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(TextProcessingApiGetTaskResponseApplicationJson), @@ -3642,11 +3647,11 @@ class TextProcessingApiClient { required int id, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3657,7 +3662,7 @@ class TextProcessingApiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -3666,19 +3671,19 @@ class TextProcessingApiClient { // coverage:ignore-end final $id = jsonSerializers.serialize(id, specifiedType: const FullType(int)); - parameters['id'] = $id; + _parameters['id'] = $id; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/textprocessing/task/{id}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/textprocessing/task/{id}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(TextProcessingApiDeleteTaskResponseApplicationJson), @@ -3741,11 +3746,11 @@ class TextProcessingApiClient { String? identifier, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3756,7 +3761,7 @@ class TextProcessingApiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -3765,22 +3770,23 @@ class TextProcessingApiClient { // coverage:ignore-end final $appId = jsonSerializers.serialize(appId, specifiedType: const FullType(String)); - parameters['appId'] = $appId; + _parameters['appId'] = $appId; final $identifier = jsonSerializers.serialize(identifier, specifiedType: const FullType(String)); - parameters['identifier'] = $identifier; + _parameters['identifier'] = $identifier; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/textprocessing/tasks/app/{appId}{?identifier*}').expand(parameters)); + final _uri = + Uri.parse(UriTemplate('/ocs/v2.php/textprocessing/tasks/app/{appId}{?identifier*}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(TextProcessingApiListTasksByAppResponseApplicationJson), @@ -3835,11 +3841,11 @@ class TextToImageApiClient { /// * [isAvailable] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse isAvailableRaw({bool? oCSAPIRequest}) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3850,7 +3856,7 @@ class TextToImageApiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -3858,15 +3864,15 @@ class TextToImageApiClient { // coverage:ignore-end var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/text2image/is_available').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/text2image/is_available').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(TextToImageApiIsAvailableResponseApplicationJson), @@ -3941,11 +3947,11 @@ class TextToImageApiClient { int? numberOfImages, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3956,39 +3962,39 @@ class TextToImageApiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } // coverage:ignore-end final $input = jsonSerializers.serialize(input, specifiedType: const FullType(String)); - parameters['input'] = $input; + _parameters['input'] = $input; final $appId = jsonSerializers.serialize(appId, specifiedType: const FullType(String)); - parameters['appId'] = $appId; + _parameters['appId'] = $appId; var $identifier = jsonSerializers.serialize(identifier, specifiedType: const FullType(String)); $identifier ??= ''; - parameters['identifier'] = $identifier; + _parameters['identifier'] = $identifier; var $numberOfImages = jsonSerializers.serialize(numberOfImages, specifiedType: const FullType(int)); $numberOfImages ??= 8; - parameters['numberOfImages'] = $numberOfImages; + _parameters['numberOfImages'] = $numberOfImages; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/text2image/schedule{?input*,appId*,identifier*,numberOfImages*}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/text2image/schedule{?input*,appId*,identifier*,numberOfImages*}').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(TextToImageApiScheduleResponseApplicationJson), @@ -4048,11 +4054,11 @@ class TextToImageApiClient { required int id, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -4063,26 +4069,26 @@ class TextToImageApiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } // coverage:ignore-end final $id = jsonSerializers.serialize(id, specifiedType: const FullType(int)); - parameters['id'] = $id; + _parameters['id'] = $id; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/text2image/task/{id}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/text2image/task/{id}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(TextToImageApiGetTaskResponseApplicationJson), @@ -4142,11 +4148,11 @@ class TextToImageApiClient { required int id, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -4157,7 +4163,7 @@ class TextToImageApiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -4166,19 +4172,19 @@ class TextToImageApiClient { // coverage:ignore-end final $id = jsonSerializers.serialize(id, specifiedType: const FullType(int)); - parameters['id'] = $id; + _parameters['id'] = $id; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/text2image/task/{id}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/text2image/task/{id}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(TextToImageApiDeleteTaskResponseApplicationJson), @@ -4243,11 +4249,11 @@ class TextToImageApiClient { required int index, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': '*/*', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -4258,29 +4264,29 @@ class TextToImageApiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } // coverage:ignore-end final $id = jsonSerializers.serialize(id, specifiedType: const FullType(int)); - parameters['id'] = $id; + _parameters['id'] = $id; final $index = jsonSerializers.serialize(index, specifiedType: const FullType(int)); - parameters['index'] = $index; + _parameters['index'] = $index; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/text2image/task/{id}/image/{index}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/text2image/task/{id}/image/{index}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(Uint8List), @@ -4343,11 +4349,11 @@ class TextToImageApiClient { String? identifier, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -4358,7 +4364,7 @@ class TextToImageApiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -4367,22 +4373,22 @@ class TextToImageApiClient { // coverage:ignore-end final $appId = jsonSerializers.serialize(appId, specifiedType: const FullType(String)); - parameters['appId'] = $appId; + _parameters['appId'] = $appId; final $identifier = jsonSerializers.serialize(identifier, specifiedType: const FullType(String)); - parameters['identifier'] = $identifier; + _parameters['identifier'] = $identifier; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/text2image/tasks/app/{appId}{?identifier*}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/text2image/tasks/app/{appId}{?identifier*}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(TextToImageApiListTasksByAppResponseApplicationJson), @@ -4437,11 +4443,11 @@ class TranslationApiClient { /// * [languages] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse languagesRaw({bool? oCSAPIRequest}) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -4452,7 +4458,7 @@ class TranslationApiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -4460,15 +4466,15 @@ class TranslationApiClient { // coverage:ignore-end var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/translation/languages').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/translation/languages').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(TranslationApiLanguagesResponseApplicationJson), @@ -4540,11 +4546,11 @@ class TranslationApiClient { String? fromLanguage, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -4555,34 +4561,34 @@ class TranslationApiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } // coverage:ignore-end final $text = jsonSerializers.serialize(text, specifiedType: const FullType(String)); - parameters['text'] = $text; + _parameters['text'] = $text; final $toLanguage = jsonSerializers.serialize(toLanguage, specifiedType: const FullType(String)); - parameters['toLanguage'] = $toLanguage; + _parameters['toLanguage'] = $toLanguage; final $fromLanguage = jsonSerializers.serialize(fromLanguage, specifiedType: const FullType(String)); - parameters['fromLanguage'] = $fromLanguage; + _parameters['fromLanguage'] = $fromLanguage; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/translation/translate{?text*,toLanguage*,fromLanguage*}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/translation/translate{?text*,toLanguage*,fromLanguage*}').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(TranslationApiTranslateResponseApplicationJson), @@ -4644,11 +4650,11 @@ class UnifiedSearchClient { String? from, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -4659,7 +4665,7 @@ class UnifiedSearchClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -4669,19 +4675,19 @@ class UnifiedSearchClient { // coverage:ignore-end var $from = jsonSerializers.serialize(from, specifiedType: const FullType(String)); $from ??= ''; - parameters['from'] = $from; + _parameters['from'] = $from; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/search/providers{?from*}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/search/providers{?from*}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(UnifiedSearchGetProvidersResponseApplicationJson), @@ -4764,11 +4770,11 @@ class UnifiedSearchClient { String? from, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -4779,7 +4785,7 @@ class UnifiedSearchClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -4788,42 +4794,42 @@ class UnifiedSearchClient { // coverage:ignore-end final $providerId = jsonSerializers.serialize(providerId, specifiedType: const FullType(String)); - parameters['providerId'] = $providerId; + _parameters['providerId'] = $providerId; var $term = jsonSerializers.serialize(term, specifiedType: const FullType(String)); $term ??= ''; - parameters['term'] = $term; + _parameters['term'] = $term; final $sortOrder = jsonSerializers.serialize(sortOrder, specifiedType: const FullType(int)); - parameters['sortOrder'] = $sortOrder; + _parameters['sortOrder'] = $sortOrder; final $limit = jsonSerializers.serialize(limit, specifiedType: const FullType(int)); - parameters['limit'] = $limit; + _parameters['limit'] = $limit; final $cursor = jsonSerializers.serialize( cursor, specifiedType: const FullType(ContentString, [FullType(UnifiedSearchSearchCursor)]), ); - parameters['cursor'] = $cursor; + _parameters['cursor'] = $cursor; var $from = jsonSerializers.serialize(from, specifiedType: const FullType(String)); $from ??= ''; - parameters['from'] = $from; + _parameters['from'] = $from; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate('/ocs/v2.php/search/providers/{providerId}/search{?term*,sortOrder*,limit*,cursor*,from*}') - .expand(parameters), + .expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(UnifiedSearchSearchResponseApplicationJson), @@ -4878,11 +4884,11 @@ class WhatsNewClient { /// * [$get] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse $getRaw({bool? oCSAPIRequest}) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -4893,7 +4899,7 @@ class WhatsNewClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -4903,15 +4909,15 @@ class WhatsNewClient { // coverage:ignore-end var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/core/whatsnew').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/core/whatsnew').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(WhatsNewGetResponseApplicationJson), @@ -4969,11 +4975,11 @@ class WhatsNewClient { required String version, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -4984,7 +4990,7 @@ class WhatsNewClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -4993,19 +4999,19 @@ class WhatsNewClient { // coverage:ignore-end final $version = jsonSerializers.serialize(version, specifiedType: const FullType(String)); - parameters['version'] = $version; + _parameters['version'] = $version; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/core/whatsnew{?version*}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/core/whatsnew{?version*}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(WhatsNewDismissResponseApplicationJson), @@ -5060,11 +5066,11 @@ class WipeClient { /// * [checkWipe] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse checkWipeRaw({required String token}) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -5075,22 +5081,22 @@ class WipeClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); - parameters['token'] = $token; + _parameters['token'] = $token; - final uri = Uri.parse(UriTemplate('/index.php/core/wipe/check{?token*}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/index.php/core/wipe/check{?token*}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(WipeCheckWipeResponseApplicationJson), @@ -5139,11 +5145,11 @@ class WipeClient { /// * [wipeDone] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse wipeDoneRaw({required String token}) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -5154,22 +5160,22 @@ class WipeClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); - parameters['token'] = $token; + _parameters['token'] = $token; - final uri = Uri.parse(UriTemplate('/index.php/core/wipe/success{?token*}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/index.php/core/wipe/success{?token*}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, 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 55cf6e8f537..f922e78be2a 100644 --- a/packages/nextcloud/lib/src/api/dashboard.openapi.dart +++ b/packages/nextcloud/lib/src/api/dashboard.openapi.dart @@ -3,6 +3,7 @@ // ignore_for_file: public_member_api_docs // 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'; @@ -86,11 +87,11 @@ class DashboardApiClient { /// * [getWidgets] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse getWidgetsRaw({bool? oCSAPIRequest}) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -101,7 +102,7 @@ class DashboardApiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -111,15 +112,15 @@ class DashboardApiClient { // coverage:ignore-end var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/dashboard/api/v1/widgets').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/dashboard/api/v1/widgets').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(DashboardApiGetWidgetsResponseApplicationJson), @@ -185,11 +186,11 @@ class DashboardApiClient { BuiltList? widgets, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -200,7 +201,7 @@ class DashboardApiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -214,30 +215,30 @@ class DashboardApiClient { FullType(BuiltMap, [FullType(String), FullType(String)]), ]), ); - parameters['sinceIds'] = $sinceIds; + _parameters['sinceIds'] = $sinceIds; var $limit = jsonSerializers.serialize(limit, specifiedType: const FullType(int)); $limit ??= 7; - parameters['limit'] = $limit; + _parameters['limit'] = $limit; var $widgets = jsonSerializers.serialize(widgets, specifiedType: const FullType(BuiltList, [FullType(String)])); $widgets ??= []; - parameters['widgets%5B%5D'] = $widgets; + _parameters['widgets%5B%5D'] = $widgets; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate('/ocs/v2.php/apps/dashboard/api/v1/widget-items{?sinceIds*,limit*,widgets%5B%5D*}') - .expand(parameters), + .expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(DashboardApiGetWidgetItemsResponseApplicationJson), @@ -307,11 +308,11 @@ class DashboardApiClient { BuiltList? widgets, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -322,7 +323,7 @@ class DashboardApiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -336,30 +337,30 @@ class DashboardApiClient { FullType(BuiltMap, [FullType(String), FullType(String)]), ]), ); - parameters['sinceIds'] = $sinceIds; + _parameters['sinceIds'] = $sinceIds; var $limit = jsonSerializers.serialize(limit, specifiedType: const FullType(int)); $limit ??= 7; - parameters['limit'] = $limit; + _parameters['limit'] = $limit; var $widgets = jsonSerializers.serialize(widgets, specifiedType: const FullType(BuiltList, [FullType(String)])); $widgets ??= []; - parameters['widgets%5B%5D'] = $widgets; + _parameters['widgets%5B%5D'] = $widgets; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate('/ocs/v2.php/apps/dashboard/api/v2/widget-items{?sinceIds*,limit*,widgets%5B%5D*}') - .expand(parameters), + .expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, 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 d4a29f90c09..f3b70b983ef 100644 --- a/packages/nextcloud/lib/src/api/dav.openapi.dart +++ b/packages/nextcloud/lib/src/api/dav.openapi.dart @@ -3,6 +3,7 @@ // ignore_for_file: public_member_api_docs // 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'; @@ -102,11 +103,11 @@ class DirectClient { int? expirationTime, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -117,7 +118,7 @@ class DirectClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -126,23 +127,23 @@ class DirectClient { // coverage:ignore-end final $fileId = jsonSerializers.serialize(fileId, specifiedType: const FullType(int)); - parameters['fileId'] = $fileId; + _parameters['fileId'] = $fileId; final $expirationTime = jsonSerializers.serialize(expirationTime, specifiedType: const FullType(int)); - parameters['expirationTime'] = $expirationTime; + _parameters['expirationTime'] = $expirationTime; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = - Uri.parse(UriTemplate('/ocs/v2.php/apps/dav/api/v1/direct{?fileId*,expirationTime*}').expand(parameters)); + final _uri = + Uri.parse(UriTemplate('/ocs/v2.php/apps/dav/api/v1/direct{?fileId*,expirationTime*}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, 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 da5647ad729..36d88e84a27 100644 --- a/packages/nextcloud/lib/src/api/files.openapi.dart +++ b/packages/nextcloud/lib/src/api/files.openapi.dart @@ -3,6 +3,7 @@ // ignore_for_file: public_member_api_docs // 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'; @@ -111,11 +112,11 @@ class ApiClient { required int y, required String file, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': '*/*', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -126,7 +127,7 @@ class ApiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -135,22 +136,22 @@ class ApiClient { // coverage:ignore-end final $x = jsonSerializers.serialize(x, specifiedType: const FullType(int)); - parameters['x'] = $x; + _parameters['x'] = $x; final $y = jsonSerializers.serialize(y, specifiedType: const FullType(int)); - parameters['y'] = $y; + _parameters['y'] = $y; final $file = jsonSerializers.serialize(file, specifiedType: const FullType(String)); dynamite_utils.checkPattern($file as String?, RegExp(r'^.+$'), 'file'); - parameters['file'] = $file; + _parameters['file'] = $file; - final uri = Uri.parse(UriTemplate('/index.php/apps/files/api/v1/thumbnail/{x}/{y}/{file}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/index.php/apps/files/api/v1/thumbnail/{x}/{y}/{file}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(Uint8List), @@ -203,11 +204,11 @@ class DirectEditingClient { /// * [info] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse infoRaw({bool? oCSAPIRequest}) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -218,7 +219,7 @@ class DirectEditingClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -228,15 +229,15 @@ class DirectEditingClient { // coverage:ignore-end var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/files/api/v1/directEditing').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/files/api/v1/directEditing').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(DirectEditingInfoResponseApplicationJson), @@ -299,11 +300,11 @@ class DirectEditingClient { required String creatorId, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -314,7 +315,7 @@ class DirectEditingClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -323,24 +324,24 @@ class DirectEditingClient { // coverage:ignore-end final $editorId = jsonSerializers.serialize(editorId, specifiedType: const FullType(String)); - parameters['editorId'] = $editorId; + _parameters['editorId'] = $editorId; final $creatorId = jsonSerializers.serialize(creatorId, specifiedType: const FullType(String)); - parameters['creatorId'] = $creatorId; + _parameters['creatorId'] = $creatorId; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/apps/files/api/v1/directEditing/templates/{editorId}/{creatorId}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/apps/files/api/v1/directEditing/templates/{editorId}/{creatorId}').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(DirectEditingTemplatesResponseApplicationJson), @@ -410,11 +411,11 @@ class DirectEditingClient { int? fileId, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -425,7 +426,7 @@ class DirectEditingClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -434,27 +435,27 @@ class DirectEditingClient { // coverage:ignore-end final $path = jsonSerializers.serialize(path, specifiedType: const FullType(String)); - parameters['path'] = $path; + _parameters['path'] = $path; final $editorId = jsonSerializers.serialize(editorId, specifiedType: const FullType(String)); - parameters['editorId'] = $editorId; + _parameters['editorId'] = $editorId; final $fileId = jsonSerializers.serialize(fileId, specifiedType: const FullType(int)); - parameters['fileId'] = $fileId; + _parameters['fileId'] = $fileId; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/apps/files/api/v1/directEditing/open{?path*,editorId*,fileId*}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/apps/files/api/v1/directEditing/open{?path*,editorId*,fileId*}').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(DirectEditingOpenResponseApplicationJson), @@ -529,11 +530,11 @@ class DirectEditingClient { String? templateId, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -544,7 +545,7 @@ class DirectEditingClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -553,31 +554,31 @@ class DirectEditingClient { // coverage:ignore-end final $path = jsonSerializers.serialize(path, specifiedType: const FullType(String)); - parameters['path'] = $path; + _parameters['path'] = $path; final $editorId = jsonSerializers.serialize(editorId, specifiedType: const FullType(String)); - parameters['editorId'] = $editorId; + _parameters['editorId'] = $editorId; final $creatorId = jsonSerializers.serialize(creatorId, specifiedType: const FullType(String)); - parameters['creatorId'] = $creatorId; + _parameters['creatorId'] = $creatorId; final $templateId = jsonSerializers.serialize(templateId, specifiedType: const FullType(String)); - parameters['templateId'] = $templateId; + _parameters['templateId'] = $templateId; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate('/ocs/v2.php/apps/files/api/v1/directEditing/create{?path*,editorId*,creatorId*,templateId*}') - .expand(parameters), + .expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(DirectEditingCreateResponseApplicationJson), @@ -641,11 +642,11 @@ class OpenLocalEditorClient { required String path, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -656,7 +657,7 @@ class OpenLocalEditorClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -665,19 +666,19 @@ class OpenLocalEditorClient { // coverage:ignore-end final $path = jsonSerializers.serialize(path, specifiedType: const FullType(String)); - parameters['path'] = $path; + _parameters['path'] = $path; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/files/api/v1/openlocaleditor{?path*}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/files/api/v1/openlocaleditor{?path*}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(OpenLocalEditorCreateResponseApplicationJson), @@ -740,11 +741,11 @@ class OpenLocalEditorClient { required String token, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -755,7 +756,7 @@ class OpenLocalEditorClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -764,23 +765,23 @@ class OpenLocalEditorClient { // coverage:ignore-end final $path = jsonSerializers.serialize(path, specifiedType: const FullType(String)); - parameters['path'] = $path; + _parameters['path'] = $path; final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); - parameters['token'] = $token; + _parameters['token'] = $token; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = - Uri.parse(UriTemplate('/ocs/v2.php/apps/files/api/v1/openlocaleditor/{token}{?path*}').expand(parameters)); + final _uri = + Uri.parse(UriTemplate('/ocs/v2.php/apps/files/api/v1/openlocaleditor/{token}{?path*}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(OpenLocalEditorValidateResponseApplicationJson), @@ -833,11 +834,11 @@ class TemplateClient { /// * [list] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse listRaw({bool? oCSAPIRequest}) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -848,7 +849,7 @@ class TemplateClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -858,15 +859,15 @@ class TemplateClient { // coverage:ignore-end var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/files/api/v1/templates').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/files/api/v1/templates').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(TemplateListResponseApplicationJson), @@ -934,11 +935,11 @@ class TemplateClient { String? templateType, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -949,7 +950,7 @@ class TemplateClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -958,30 +959,30 @@ class TemplateClient { // coverage:ignore-end final $filePath = jsonSerializers.serialize(filePath, specifiedType: const FullType(String)); - parameters['filePath'] = $filePath; + _parameters['filePath'] = $filePath; var $templatePath = jsonSerializers.serialize(templatePath, specifiedType: const FullType(String)); $templatePath ??= ''; - parameters['templatePath'] = $templatePath; + _parameters['templatePath'] = $templatePath; var $templateType = jsonSerializers.serialize(templateType, specifiedType: const FullType(String)); $templateType ??= 'user'; - parameters['templateType'] = $templateType; + _parameters['templateType'] = $templateType; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate('/ocs/v2.php/apps/files/api/v1/templates/create{?filePath*,templatePath*,templateType*}') - .expand(parameters), + .expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(TemplateCreateResponseApplicationJson), @@ -1044,11 +1045,11 @@ class TemplateClient { int? copySystemTemplates, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1059,7 +1060,7 @@ class TemplateClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1069,26 +1070,26 @@ class TemplateClient { // coverage:ignore-end var $templatePath = jsonSerializers.serialize(templatePath, specifiedType: const FullType(String)); $templatePath ??= ''; - parameters['templatePath'] = $templatePath; + _parameters['templatePath'] = $templatePath; var $copySystemTemplates = jsonSerializers.serialize(copySystemTemplates, specifiedType: const FullType(int)); $copySystemTemplates ??= 0; - parameters['copySystemTemplates'] = $copySystemTemplates; + _parameters['copySystemTemplates'] = $copySystemTemplates; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate('/ocs/v2.php/apps/files/api/v1/templates/path{?templatePath*,copySystemTemplates*}') - .expand(parameters), + .expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(TemplatePathResponseApplicationJson), @@ -1159,11 +1160,11 @@ class TransferOwnershipClient { required String path, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1174,7 +1175,7 @@ class TransferOwnershipClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1183,24 +1184,24 @@ class TransferOwnershipClient { // coverage:ignore-end final $recipient = jsonSerializers.serialize(recipient, specifiedType: const FullType(String)); - parameters['recipient'] = $recipient; + _parameters['recipient'] = $recipient; final $path = jsonSerializers.serialize(path, specifiedType: const FullType(String)); - parameters['path'] = $path; + _parameters['path'] = $path; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/apps/files/api/v1/transferownership{?recipient*,path*}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/apps/files/api/v1/transferownership{?recipient*,path*}').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200, 400, 403}, ), bodyType: const FullType(TransferOwnershipTransferResponseApplicationJson), @@ -1260,11 +1261,11 @@ class TransferOwnershipClient { required int id, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1275,7 +1276,7 @@ class TransferOwnershipClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1284,19 +1285,19 @@ class TransferOwnershipClient { // coverage:ignore-end final $id = jsonSerializers.serialize(id, specifiedType: const FullType(int)); - parameters['id'] = $id; + _parameters['id'] = $id; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/files/api/v1/transferownership/{id}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/files/api/v1/transferownership/{id}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200, 403, 404}, ), bodyType: const FullType(TransferOwnershipAcceptResponseApplicationJson), @@ -1356,11 +1357,11 @@ class TransferOwnershipClient { required int id, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1371,7 +1372,7 @@ class TransferOwnershipClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1380,19 +1381,19 @@ class TransferOwnershipClient { // coverage:ignore-end final $id = jsonSerializers.serialize(id, specifiedType: const FullType(int)); - parameters['id'] = $id; + _parameters['id'] = $id; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/files/api/v1/transferownership/{id}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/files/api/v1/transferownership/{id}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, 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 54d1ecf35ef..1549a00367b 100644 --- a/packages/nextcloud/lib/src/api/files_external.openapi.dart +++ b/packages/nextcloud/lib/src/api/files_external.openapi.dart @@ -3,6 +3,7 @@ // ignore_for_file: public_member_api_docs // 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'; @@ -84,11 +85,11 @@ class ApiClient { /// * [getUserMounts] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse getUserMountsRaw({bool? oCSAPIRequest}) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -99,7 +100,7 @@ class ApiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -109,15 +110,15 @@ class ApiClient { // coverage:ignore-end var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/files_external/api/v1/mounts').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/files_external/api/v1/mounts').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, 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 553f5391d6e..ef4c3738678 100644 --- a/packages/nextcloud/lib/src/api/files_reminders.openapi.dart +++ b/packages/nextcloud/lib/src/api/files_reminders.openapi.dart @@ -3,6 +3,7 @@ // ignore_for_file: public_member_api_docs // 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'; @@ -100,11 +101,11 @@ class ApiClient { required int fileId, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -115,7 +116,7 @@ class ApiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -125,22 +126,22 @@ class ApiClient { // coverage:ignore-end final $version = jsonSerializers.serialize(version, specifiedType: const FullType(String)); dynamite_utils.checkPattern($version as String?, RegExp(r'^1$'), 'version'); - parameters['version'] = $version; + _parameters['version'] = $version; final $fileId = jsonSerializers.serialize(fileId, specifiedType: const FullType(int)); - parameters['fileId'] = $fileId; + _parameters['fileId'] = $fileId; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/files_reminders/api/v{version}/{fileId}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/files_reminders/api/v{version}/{fileId}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(ApiGetResponseApplicationJson), @@ -214,11 +215,11 @@ class ApiClient { required int fileId, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -229,7 +230,7 @@ class ApiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -238,28 +239,28 @@ class ApiClient { // coverage:ignore-end final $dueDate = jsonSerializers.serialize(dueDate, specifiedType: const FullType(String)); - parameters['dueDate'] = $dueDate; + _parameters['dueDate'] = $dueDate; final $version = jsonSerializers.serialize(version, specifiedType: const FullType(String)); dynamite_utils.checkPattern($version as String?, RegExp(r'^1$'), 'version'); - parameters['version'] = $version; + _parameters['version'] = $version; final $fileId = jsonSerializers.serialize(fileId, specifiedType: const FullType(int)); - parameters['fileId'] = $fileId; + _parameters['fileId'] = $fileId; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/apps/files_reminders/api/v{version}/{fileId}{?dueDate*}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/apps/files_reminders/api/v{version}/{fileId}{?dueDate*}').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - uri, - headers, - body, + _uri, + _headers, + _body, const {200, 201, 400, 401, 404}, ), bodyType: const FullType(ApiSetResponseApplicationJson), @@ -324,11 +325,11 @@ class ApiClient { required int fileId, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -339,7 +340,7 @@ class ApiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -349,22 +350,22 @@ class ApiClient { // coverage:ignore-end final $version = jsonSerializers.serialize(version, specifiedType: const FullType(String)); dynamite_utils.checkPattern($version as String?, RegExp(r'^1$'), 'version'); - parameters['version'] = $version; + _parameters['version'] = $version; final $fileId = jsonSerializers.serialize(fileId, specifiedType: const FullType(int)); - parameters['fileId'] = $fileId; + _parameters['fileId'] = $fileId; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/files_reminders/api/v{version}/{fileId}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/files_reminders/api/v{version}/{fileId}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, 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 047df5225c1..43a0f23af37 100644 --- a/packages/nextcloud/lib/src/api/files_sharing.openapi.dart +++ b/packages/nextcloud/lib/src/api/files_sharing.openapi.dart @@ -3,6 +3,7 @@ // ignore_for_file: public_member_api_docs // 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'; @@ -96,11 +97,11 @@ class DeletedShareapiClient { /// * [list] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse listRaw({bool? oCSAPIRequest}) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -111,7 +112,7 @@ class DeletedShareapiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -121,15 +122,15 @@ class DeletedShareapiClient { // coverage:ignore-end var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/deletedshares').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/deletedshares').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(DeletedShareapiListResponseApplicationJson), @@ -187,11 +188,11 @@ class DeletedShareapiClient { required String id, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -202,7 +203,7 @@ class DeletedShareapiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -211,19 +212,19 @@ class DeletedShareapiClient { // coverage:ignore-end final $id = jsonSerializers.serialize(id, specifiedType: const FullType(String)); - parameters['id'] = $id; + _parameters['id'] = $id; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/deletedshares/{id}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/deletedshares/{id}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(DeletedShareapiUndeleteResponseApplicationJson), @@ -291,11 +292,11 @@ class PublicPreviewClient { required String token, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': '*/*', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -306,26 +307,26 @@ class PublicPreviewClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); - parameters['token'] = $token; + _parameters['token'] = $token; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/index.php/s/{token}/preview').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/index.php/s/{token}/preview').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(Uint8List), @@ -407,11 +408,11 @@ class PublicPreviewClient { int? a, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': '*/*', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -422,44 +423,44 @@ class PublicPreviewClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); - parameters['token'] = $token; + _parameters['token'] = $token; var $file = jsonSerializers.serialize(file, specifiedType: const FullType(String)); $file ??= ''; - parameters['file'] = $file; + _parameters['file'] = $file; var $x = jsonSerializers.serialize(x, specifiedType: const FullType(int)); $x ??= 32; - parameters['x'] = $x; + _parameters['x'] = $x; var $y = jsonSerializers.serialize(y, specifiedType: const FullType(int)); $y ??= 32; - parameters['y'] = $y; + _parameters['y'] = $y; var $a = jsonSerializers.serialize(a, specifiedType: const FullType(int)); $a ??= 0; - parameters['a'] = $a; + _parameters['a'] = $a; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/index.php/apps/files_sharing/publicpreview/{token}{?file*,x*,y*,a*}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/index.php/apps/files_sharing/publicpreview/{token}{?file*,x*,y*,a*}').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(Uint8List), @@ -512,11 +513,11 @@ class RemoteClient { /// * [getShares] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse getSharesRaw({bool? oCSAPIRequest}) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -527,7 +528,7 @@ class RemoteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -537,15 +538,15 @@ class RemoteClient { // coverage:ignore-end var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/remote_shares').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/remote_shares').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(RemoteGetSharesResponseApplicationJson), @@ -594,11 +595,11 @@ class RemoteClient { /// * [getOpenShares] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse getOpenSharesRaw({bool? oCSAPIRequest}) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -609,7 +610,7 @@ class RemoteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -619,16 +620,16 @@ class RemoteClient { // coverage:ignore-end var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = - Uri.parse(UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/remote_shares/pending').expand(parameters)); + final _uri = + Uri.parse(UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/remote_shares/pending').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(RemoteGetOpenSharesResponseApplicationJson), @@ -686,11 +687,11 @@ class RemoteClient { required int id, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -701,7 +702,7 @@ class RemoteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -710,20 +711,20 @@ class RemoteClient { // coverage:ignore-end final $id = jsonSerializers.serialize(id, specifiedType: const FullType(int)); - parameters['id'] = $id; + _parameters['id'] = $id; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = - Uri.parse(UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/remote_shares/pending/{id}').expand(parameters)); + final _uri = + Uri.parse(UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/remote_shares/pending/{id}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(RemoteAcceptShareResponseApplicationJson), @@ -781,11 +782,11 @@ class RemoteClient { required int id, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -796,7 +797,7 @@ class RemoteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -805,20 +806,20 @@ class RemoteClient { // coverage:ignore-end final $id = jsonSerializers.serialize(id, specifiedType: const FullType(int)); - parameters['id'] = $id; + _parameters['id'] = $id; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = - Uri.parse(UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/remote_shares/pending/{id}').expand(parameters)); + final _uri = + Uri.parse(UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/remote_shares/pending/{id}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(RemoteDeclineShareResponseApplicationJson), @@ -876,11 +877,11 @@ class RemoteClient { required int id, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -891,7 +892,7 @@ class RemoteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -900,19 +901,19 @@ class RemoteClient { // coverage:ignore-end final $id = jsonSerializers.serialize(id, specifiedType: const FullType(int)); - parameters['id'] = $id; + _parameters['id'] = $id; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/remote_shares/{id}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/remote_shares/{id}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(RemoteGetShareResponseApplicationJson), @@ -972,11 +973,11 @@ class RemoteClient { required int id, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -987,7 +988,7 @@ class RemoteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -996,19 +997,19 @@ class RemoteClient { // coverage:ignore-end final $id = jsonSerializers.serialize(id, specifiedType: const FullType(int)); - parameters['id'] = $id; + _parameters['id'] = $id; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/remote_shares/{id}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/remote_shares/{id}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(RemoteUnshareResponseApplicationJson), @@ -1084,11 +1085,11 @@ class ShareInfoClient { String? dir, int? depth, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1099,34 +1100,34 @@ class ShareInfoClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } // coverage:ignore-end final $t = jsonSerializers.serialize(t, specifiedType: const FullType(String)); - parameters['t'] = $t; + _parameters['t'] = $t; final $password = jsonSerializers.serialize(password, specifiedType: const FullType(String)); - parameters['password'] = $password; + _parameters['password'] = $password; final $dir = jsonSerializers.serialize(dir, specifiedType: const FullType(String)); - parameters['dir'] = $dir; + _parameters['dir'] = $dir; var $depth = jsonSerializers.serialize(depth, specifiedType: const FullType(int)); $depth ??= -1; - parameters['depth'] = $depth; + _parameters['depth'] = $depth; - final uri = Uri.parse( - UriTemplate('/index.php/apps/files_sharing/shareinfo{?t*,password*,dir*,depth*}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/index.php/apps/files_sharing/shareinfo{?t*,password*,dir*,depth*}').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(ShareInfo), @@ -1210,11 +1211,11 @@ class ShareapiClient { String? includeTags, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1225,7 +1226,7 @@ class ShareapiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1235,39 +1236,39 @@ class ShareapiClient { // coverage:ignore-end var $sharedWithMe = jsonSerializers.serialize(sharedWithMe, specifiedType: const FullType(String)); $sharedWithMe ??= 'false'; - parameters['shared_with_me'] = $sharedWithMe; + _parameters['shared_with_me'] = $sharedWithMe; var $reshares = jsonSerializers.serialize(reshares, specifiedType: const FullType(String)); $reshares ??= 'false'; - parameters['reshares'] = $reshares; + _parameters['reshares'] = $reshares; var $subfiles = jsonSerializers.serialize(subfiles, specifiedType: const FullType(String)); $subfiles ??= 'false'; - parameters['subfiles'] = $subfiles; + _parameters['subfiles'] = $subfiles; var $path = jsonSerializers.serialize(path, specifiedType: const FullType(String)); $path ??= ''; - parameters['path'] = $path; + _parameters['path'] = $path; var $includeTags = jsonSerializers.serialize(includeTags, specifiedType: const FullType(String)); $includeTags ??= 'false'; - parameters['include_tags'] = $includeTags; + _parameters['include_tags'] = $includeTags; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate( '/ocs/v2.php/apps/files_sharing/api/v1/shares{?shared_with_me*,reshares*,subfiles*,path*,include_tags*}', - ).expand(parameters), + ).expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(ShareapiGetSharesResponseApplicationJson), @@ -1379,11 +1380,11 @@ class ShareapiClient { String? attributes, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1394,7 +1395,7 @@ class ShareapiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1403,59 +1404,59 @@ class ShareapiClient { // coverage:ignore-end final $path = jsonSerializers.serialize(path, specifiedType: const FullType(String)); - parameters['path'] = $path; + _parameters['path'] = $path; final $permissions = jsonSerializers.serialize(permissions, specifiedType: const FullType(int)); - parameters['permissions'] = $permissions; + _parameters['permissions'] = $permissions; var $shareType = jsonSerializers.serialize(shareType, specifiedType: const FullType(int)); $shareType ??= -1; - parameters['shareType'] = $shareType; + _parameters['shareType'] = $shareType; final $shareWith = jsonSerializers.serialize(shareWith, specifiedType: const FullType(String)); - parameters['shareWith'] = $shareWith; + _parameters['shareWith'] = $shareWith; var $publicUpload = jsonSerializers.serialize(publicUpload, specifiedType: const FullType(String)); $publicUpload ??= 'false'; - parameters['publicUpload'] = $publicUpload; + _parameters['publicUpload'] = $publicUpload; var $password = jsonSerializers.serialize(password, specifiedType: const FullType(String)); $password ??= ''; - parameters['password'] = $password; + _parameters['password'] = $password; final $sendPasswordByTalk = jsonSerializers.serialize(sendPasswordByTalk, specifiedType: const FullType(String)); - parameters['sendPasswordByTalk'] = $sendPasswordByTalk; + _parameters['sendPasswordByTalk'] = $sendPasswordByTalk; var $expireDate = jsonSerializers.serialize(expireDate, specifiedType: const FullType(String)); $expireDate ??= ''; - parameters['expireDate'] = $expireDate; + _parameters['expireDate'] = $expireDate; var $note = jsonSerializers.serialize(note, specifiedType: const FullType(String)); $note ??= ''; - parameters['note'] = $note; + _parameters['note'] = $note; var $label = jsonSerializers.serialize(label, specifiedType: const FullType(String)); $label ??= ''; - parameters['label'] = $label; + _parameters['label'] = $label; final $attributes = jsonSerializers.serialize(attributes, specifiedType: const FullType(String)); - parameters['attributes'] = $attributes; + _parameters['attributes'] = $attributes; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate( '/ocs/v2.php/apps/files_sharing/api/v1/shares{?path*,permissions*,shareType*,shareWith*,publicUpload*,password*,sendPasswordByTalk*,expireDate*,note*,label*,attributes*}', - ).expand(parameters), + ).expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(ShareapiCreateShareResponseApplicationJson), @@ -1515,11 +1516,11 @@ class ShareapiClient { required String path, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1530,7 +1531,7 @@ class ShareapiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1539,20 +1540,20 @@ class ShareapiClient { // coverage:ignore-end final $path = jsonSerializers.serialize(path, specifiedType: const FullType(String)); - parameters['path'] = $path; + _parameters['path'] = $path; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = - Uri.parse(UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/shares/inherited{?path*}').expand(parameters)); + final _uri = + Uri.parse(UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/shares/inherited{?path*}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(ShareapiGetInheritedSharesResponseApplicationJson), @@ -1601,11 +1602,11 @@ class ShareapiClient { /// * [pendingShares] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse pendingSharesRaw({bool? oCSAPIRequest}) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1616,7 +1617,7 @@ class ShareapiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1626,15 +1627,15 @@ class ShareapiClient { // coverage:ignore-end var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/shares/pending').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/shares/pending').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(ShareapiPendingSharesResponseApplicationJson), @@ -1697,11 +1698,11 @@ class ShareapiClient { int? includeTags, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1712,7 +1713,7 @@ class ShareapiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1721,24 +1722,24 @@ class ShareapiClient { // coverage:ignore-end final $id = jsonSerializers.serialize(id, specifiedType: const FullType(String)); - parameters['id'] = $id; + _parameters['id'] = $id; var $includeTags = jsonSerializers.serialize(includeTags, specifiedType: const FullType(int)); $includeTags ??= 0; - parameters['include_tags'] = $includeTags; + _parameters['include_tags'] = $includeTags; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = - Uri.parse(UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/shares/{id}{?include_tags*}').expand(parameters)); + final _uri = + Uri.parse(UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/shares/{id}{?include_tags*}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(ShareapiGetShareResponseApplicationJson), @@ -1845,11 +1846,11 @@ class ShareapiClient { String? attributes, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1860,7 +1861,7 @@ class ShareapiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1869,50 +1870,50 @@ class ShareapiClient { // coverage:ignore-end final $id = jsonSerializers.serialize(id, specifiedType: const FullType(String)); - parameters['id'] = $id; + _parameters['id'] = $id; final $permissions = jsonSerializers.serialize(permissions, specifiedType: const FullType(int)); - parameters['permissions'] = $permissions; + _parameters['permissions'] = $permissions; final $password = jsonSerializers.serialize(password, specifiedType: const FullType(String)); - parameters['password'] = $password; + _parameters['password'] = $password; final $sendPasswordByTalk = jsonSerializers.serialize(sendPasswordByTalk, specifiedType: const FullType(String)); - parameters['sendPasswordByTalk'] = $sendPasswordByTalk; + _parameters['sendPasswordByTalk'] = $sendPasswordByTalk; final $publicUpload = jsonSerializers.serialize(publicUpload, specifiedType: const FullType(String)); - parameters['publicUpload'] = $publicUpload; + _parameters['publicUpload'] = $publicUpload; final $expireDate = jsonSerializers.serialize(expireDate, specifiedType: const FullType(String)); - parameters['expireDate'] = $expireDate; + _parameters['expireDate'] = $expireDate; final $note = jsonSerializers.serialize(note, specifiedType: const FullType(String)); - parameters['note'] = $note; + _parameters['note'] = $note; final $label = jsonSerializers.serialize(label, specifiedType: const FullType(String)); - parameters['label'] = $label; + _parameters['label'] = $label; final $hideDownload = jsonSerializers.serialize(hideDownload, specifiedType: const FullType(String)); - parameters['hideDownload'] = $hideDownload; + _parameters['hideDownload'] = $hideDownload; final $attributes = jsonSerializers.serialize(attributes, specifiedType: const FullType(String)); - parameters['attributes'] = $attributes; + _parameters['attributes'] = $attributes; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate( '/ocs/v2.php/apps/files_sharing/api/v1/shares/{id}{?permissions*,password*,sendPasswordByTalk*,publicUpload*,expireDate*,note*,label*,hideDownload*,attributes*}', - ).expand(parameters), + ).expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(ShareapiUpdateShareResponseApplicationJson), @@ -1972,11 +1973,11 @@ class ShareapiClient { required String id, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1987,7 +1988,7 @@ class ShareapiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1996,19 +1997,19 @@ class ShareapiClient { // coverage:ignore-end final $id = jsonSerializers.serialize(id, specifiedType: const FullType(String)); - parameters['id'] = $id; + _parameters['id'] = $id; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/shares/{id}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/shares/{id}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(ShareapiDeleteShareResponseApplicationJson), @@ -2068,11 +2069,11 @@ class ShareapiClient { required String id, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2083,7 +2084,7 @@ class ShareapiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -2092,19 +2093,20 @@ class ShareapiClient { // coverage:ignore-end final $id = jsonSerializers.serialize(id, specifiedType: const FullType(String)); - parameters['id'] = $id; + _parameters['id'] = $id; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/shares/pending/{id}').expand(parameters)); + final _uri = + Uri.parse(UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/shares/pending/{id}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(ShareapiAcceptShareResponseApplicationJson), @@ -2193,11 +2195,11 @@ class ShareesapiClient { int? lookup, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2208,7 +2210,7 @@ class ShareesapiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -2218,44 +2220,44 @@ class ShareesapiClient { // coverage:ignore-end var $search = jsonSerializers.serialize(search, specifiedType: const FullType(String)); $search ??= ''; - parameters['search'] = $search; + _parameters['search'] = $search; final $itemType = jsonSerializers.serialize(itemType, specifiedType: const FullType(String)); - parameters['itemType'] = $itemType; + _parameters['itemType'] = $itemType; var $page = jsonSerializers.serialize(page, specifiedType: const FullType(int)); $page ??= 1; - parameters['page'] = $page; + _parameters['page'] = $page; var $perPage = jsonSerializers.serialize(perPage, specifiedType: const FullType(int)); $perPage ??= 200; - parameters['perPage'] = $perPage; + _parameters['perPage'] = $perPage; final $shareType = jsonSerializers.serialize( shareType, specifiedType: const FullType(ContentString, [FullType(ShareesapiSearchShareType)]), ); - parameters['shareType'] = $shareType; + _parameters['shareType'] = $shareType; var $lookup = jsonSerializers.serialize(lookup, specifiedType: const FullType(int)); $lookup ??= 0; - parameters['lookup'] = $lookup; + _parameters['lookup'] = $lookup; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate( '/ocs/v2.php/apps/files_sharing/api/v1/sharees{?search*,itemType*,page*,perPage*,shareType*,lookup*}', - ).expand(parameters), + ).expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(ShareesapiSearchResponseApplicationJson), @@ -2316,11 +2318,11 @@ class ShareesapiClient { ContentString? shareType, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2331,7 +2333,7 @@ class ShareesapiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -2340,28 +2342,28 @@ class ShareesapiClient { // coverage:ignore-end final $itemType = jsonSerializers.serialize(itemType, specifiedType: const FullType(String)); - parameters['itemType'] = $itemType; + _parameters['itemType'] = $itemType; final $shareType = jsonSerializers.serialize( shareType, specifiedType: const FullType(ContentString, [FullType(ShareesapiFindRecommendedShareType)]), ); - parameters['shareType'] = $shareType; + _parameters['shareType'] = $shareType; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/sharees_recommended{?itemType*,shareType*}') - .expand(parameters), + .expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, 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 32419877930..9862405a664 100644 --- a/packages/nextcloud/lib/src/api/files_trashbin.openapi.dart +++ b/packages/nextcloud/lib/src/api/files_trashbin.openapi.dart @@ -3,6 +3,7 @@ // ignore_for_file: public_member_api_docs // 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'; @@ -105,11 +106,11 @@ class PreviewClient { int? y, int? a, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': '*/*', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -120,7 +121,7 @@ class PreviewClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -130,27 +131,28 @@ class PreviewClient { // coverage:ignore-end var $fileId = jsonSerializers.serialize(fileId, specifiedType: const FullType(int)); $fileId ??= -1; - parameters['fileId'] = $fileId; + _parameters['fileId'] = $fileId; var $x = jsonSerializers.serialize(x, specifiedType: const FullType(int)); $x ??= 32; - parameters['x'] = $x; + _parameters['x'] = $x; var $y = jsonSerializers.serialize(y, specifiedType: const FullType(int)); $y ??= 32; - parameters['y'] = $y; + _parameters['y'] = $y; var $a = jsonSerializers.serialize(a, specifiedType: const FullType(int)); $a ??= 0; - parameters['a'] = $a; + _parameters['a'] = $a; - final uri = Uri.parse(UriTemplate('/index.php/apps/files_trashbin/preview{?fileId*,x*,y*,a*}').expand(parameters)); + final _uri = + Uri.parse(UriTemplate('/index.php/apps/files_trashbin/preview{?fileId*,x*,y*,a*}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, 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 22dfbbaa672..4596d6e3430 100644 --- a/packages/nextcloud/lib/src/api/files_versions.openapi.dart +++ b/packages/nextcloud/lib/src/api/files_versions.openapi.dart @@ -3,6 +3,7 @@ // ignore_for_file: public_member_api_docs // 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'; @@ -105,11 +106,11 @@ class PreviewClient { int? y, String? version, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': '*/*', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -120,7 +121,7 @@ class PreviewClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -130,28 +131,28 @@ class PreviewClient { // coverage:ignore-end var $file = jsonSerializers.serialize(file, specifiedType: const FullType(String)); $file ??= ''; - parameters['file'] = $file; + _parameters['file'] = $file; var $x = jsonSerializers.serialize(x, specifiedType: const FullType(int)); $x ??= 44; - parameters['x'] = $x; + _parameters['x'] = $x; var $y = jsonSerializers.serialize(y, specifiedType: const FullType(int)); $y ??= 44; - parameters['y'] = $y; + _parameters['y'] = $y; var $version = jsonSerializers.serialize(version, specifiedType: const FullType(String)); $version ??= ''; - parameters['version'] = $version; + _parameters['version'] = $version; - final uri = - Uri.parse(UriTemplate('/index.php/apps/files_versions/preview{?file*,x*,y*,version*}').expand(parameters)); + final _uri = + Uri.parse(UriTemplate('/index.php/apps/files_versions/preview{?file*,x*,y*,version*}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, 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 3f192b4efc3..5083612a7d7 100644 --- a/packages/nextcloud/lib/src/api/news.openapi.dart +++ b/packages/nextcloud/lib/src/api/news.openapi.dart @@ -3,6 +3,7 @@ // ignore_for_file: public_member_api_docs // 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'; @@ -64,11 +65,11 @@ class Client extends DynamiteClient { /// * [getSupportedApiVersions] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse getSupportedApiVersionsRaw() { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -79,7 +80,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -87,13 +88,13 @@ class Client extends DynamiteClient { } // coverage:ignore-end - final uri = Uri.parse(UriTemplate('/index.php/apps/news/api').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/index.php/apps/news/api').expand(_parameters)); return DynamiteRawResponse( response: executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(SupportedAPIVersions), @@ -128,11 +129,11 @@ class Client extends DynamiteClient { /// * [listFolders] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse listFoldersRaw() { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -143,7 +144,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -151,13 +152,13 @@ class Client extends DynamiteClient { } // coverage:ignore-end - final uri = Uri.parse(UriTemplate('/index.php/apps/news/api/v1-3/folders').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/index.php/apps/news/api/v1-3/folders').expand(_parameters)); return DynamiteRawResponse( response: executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(ListFolders), @@ -200,11 +201,11 @@ class Client extends DynamiteClient { /// * [createFolder] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse createFolderRaw({required String name}) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -215,7 +216,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -224,15 +225,15 @@ class Client extends DynamiteClient { // coverage:ignore-end final $name = jsonSerializers.serialize(name, specifiedType: const FullType(String)); - parameters['name'] = $name; + _parameters['name'] = $name; - final uri = Uri.parse(UriTemplate('/index.php/apps/news/api/v1-3/folders{?name*}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/index.php/apps/news/api/v1-3/folders{?name*}').expand(_parameters)); return DynamiteRawResponse( response: executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(ListFolders), @@ -282,9 +283,9 @@ class Client extends DynamiteClient { required int folderId, required String name, }) { - final parameters = {}; - final headers = {}; - Uint8List? body; + final _parameters = {}; + final _headers = {}; + Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -295,7 +296,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -304,18 +305,18 @@ class Client extends DynamiteClient { // coverage:ignore-end final $folderId = jsonSerializers.serialize(folderId, specifiedType: const FullType(int)); - parameters['folderId'] = $folderId; + _parameters['folderId'] = $folderId; final $name = jsonSerializers.serialize(name, specifiedType: const FullType(String)); - parameters['name'] = $name; + _parameters['name'] = $name; - final uri = Uri.parse(UriTemplate('/index.php/apps/news/api/v1-3/folders/{folderId}{?name*}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/index.php/apps/news/api/v1-3/folders/{folderId}{?name*}').expand(_parameters)); return DynamiteRawResponse( response: executeRequest( 'put', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: null, @@ -352,9 +353,9 @@ class Client extends DynamiteClient { /// * [deleteFolder] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse deleteFolderRaw({required int folderId}) { - final parameters = {}; - final headers = {}; - Uint8List? body; + final _parameters = {}; + final _headers = {}; + Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -365,7 +366,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -374,15 +375,15 @@ class Client extends DynamiteClient { // coverage:ignore-end final $folderId = jsonSerializers.serialize(folderId, specifiedType: const FullType(int)); - parameters['folderId'] = $folderId; + _parameters['folderId'] = $folderId; - final uri = Uri.parse(UriTemplate('/index.php/apps/news/api/v1-3/folders/{folderId}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/index.php/apps/news/api/v1-3/folders/{folderId}').expand(_parameters)); return DynamiteRawResponse( response: executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: null, @@ -432,9 +433,9 @@ class Client extends DynamiteClient { required int folderId, required int newestItemId, }) { - final parameters = {}; - final headers = {}; - Uint8List? body; + final _parameters = {}; + final _headers = {}; + Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -445,7 +446,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -454,20 +455,20 @@ class Client extends DynamiteClient { // coverage:ignore-end final $folderId = jsonSerializers.serialize(folderId, specifiedType: const FullType(int)); - parameters['folderId'] = $folderId; + _parameters['folderId'] = $folderId; final $newestItemId = jsonSerializers.serialize(newestItemId, specifiedType: const FullType(int)); - parameters['newestItemId'] = $newestItemId; + _parameters['newestItemId'] = $newestItemId; - final uri = Uri.parse( - UriTemplate('/index.php/apps/news/api/v1-3/folders/{folderId}/read{?newestItemId*}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/index.php/apps/news/api/v1-3/folders/{folderId}/read{?newestItemId*}').expand(_parameters), ); return DynamiteRawResponse( response: executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: null, @@ -502,11 +503,11 @@ class Client extends DynamiteClient { /// * [listFeeds] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse listFeedsRaw() { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -517,7 +518,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -525,13 +526,13 @@ class Client extends DynamiteClient { } // coverage:ignore-end - final uri = Uri.parse(UriTemplate('/index.php/apps/news/api/v1-3/feeds').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/index.php/apps/news/api/v1-3/feeds').expand(_parameters)); return DynamiteRawResponse( response: executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(ListFeeds), @@ -583,11 +584,11 @@ class Client extends DynamiteClient { required String url, int? folderId, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -598,7 +599,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -607,18 +608,18 @@ class Client extends DynamiteClient { // coverage:ignore-end final $url = jsonSerializers.serialize(url, specifiedType: const FullType(String)); - parameters['url'] = $url; + _parameters['url'] = $url; final $folderId = jsonSerializers.serialize(folderId, specifiedType: const FullType(int)); - parameters['folderId'] = $folderId; + _parameters['folderId'] = $folderId; - final uri = Uri.parse(UriTemplate('/index.php/apps/news/api/v1-3/feeds{?url*,folderId*}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/index.php/apps/news/api/v1-3/feeds{?url*,folderId*}').expand(_parameters)); return DynamiteRawResponse( response: executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(ListFeeds), @@ -655,9 +656,9 @@ class Client extends DynamiteClient { /// * [deleteFeed] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse deleteFeedRaw({required int feedId}) { - final parameters = {}; - final headers = {}; - Uint8List? body; + final _parameters = {}; + final _headers = {}; + Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -668,7 +669,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -677,15 +678,15 @@ class Client extends DynamiteClient { // coverage:ignore-end final $feedId = jsonSerializers.serialize(feedId, specifiedType: const FullType(int)); - parameters['feedId'] = $feedId; + _parameters['feedId'] = $feedId; - final uri = Uri.parse(UriTemplate('/index.php/apps/news/api/v1-3/feeds/{feedId}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/index.php/apps/news/api/v1-3/feeds/{feedId}').expand(_parameters)); return DynamiteRawResponse( response: executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: null, @@ -735,9 +736,9 @@ class Client extends DynamiteClient { required int feedId, int? folderId, }) { - final parameters = {}; - final headers = {}; - Uint8List? body; + final _parameters = {}; + final _headers = {}; + Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -748,7 +749,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -757,19 +758,19 @@ class Client extends DynamiteClient { // coverage:ignore-end final $feedId = jsonSerializers.serialize(feedId, specifiedType: const FullType(int)); - parameters['feedId'] = $feedId; + _parameters['feedId'] = $feedId; final $folderId = jsonSerializers.serialize(folderId, specifiedType: const FullType(int)); - parameters['folderId'] = $folderId; + _parameters['folderId'] = $folderId; - final uri = - Uri.parse(UriTemplate('/index.php/apps/news/api/v1-3/feeds/{feedId}/move{?folderId*}').expand(parameters)); + final _uri = + Uri.parse(UriTemplate('/index.php/apps/news/api/v1-3/feeds/{feedId}/move{?folderId*}').expand(_parameters)); return DynamiteRawResponse( response: executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: null, @@ -819,9 +820,9 @@ class Client extends DynamiteClient { required int feedId, required String feedTitle, }) { - final parameters = {}; - final headers = {}; - Uint8List? body; + final _parameters = {}; + final _headers = {}; + Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -832,7 +833,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -841,19 +842,19 @@ class Client extends DynamiteClient { // coverage:ignore-end final $feedId = jsonSerializers.serialize(feedId, specifiedType: const FullType(int)); - parameters['feedId'] = $feedId; + _parameters['feedId'] = $feedId; final $feedTitle = jsonSerializers.serialize(feedTitle, specifiedType: const FullType(String)); - parameters['feedTitle'] = $feedTitle; + _parameters['feedTitle'] = $feedTitle; - final uri = - Uri.parse(UriTemplate('/index.php/apps/news/api/v1-3/feeds/{feedId}/rename{?feedTitle*}').expand(parameters)); + final _uri = + Uri.parse(UriTemplate('/index.php/apps/news/api/v1-3/feeds/{feedId}/rename{?feedTitle*}').expand(_parameters)); return DynamiteRawResponse( response: executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: null, @@ -903,9 +904,9 @@ class Client extends DynamiteClient { required int feedId, required int newestItemId, }) { - final parameters = {}; - final headers = {}; - Uint8List? body; + final _parameters = {}; + final _headers = {}; + Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -916,7 +917,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -925,19 +926,19 @@ class Client extends DynamiteClient { // coverage:ignore-end final $feedId = jsonSerializers.serialize(feedId, specifiedType: const FullType(int)); - parameters['feedId'] = $feedId; + _parameters['feedId'] = $feedId; final $newestItemId = jsonSerializers.serialize(newestItemId, specifiedType: const FullType(int)); - parameters['newestItemId'] = $newestItemId; + _parameters['newestItemId'] = $newestItemId; - final uri = - Uri.parse(UriTemplate('/index.php/apps/news/api/v1-3/feeds/{feedId}/read{?newestItemId*}').expand(parameters)); + final _uri = + Uri.parse(UriTemplate('/index.php/apps/news/api/v1-3/feeds/{feedId}/read{?newestItemId*}').expand(_parameters)); return DynamiteRawResponse( response: executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: null, @@ -1009,11 +1010,11 @@ class Client extends DynamiteClient { int? offset, int? oldestFirst, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -1024,7 +1025,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1034,38 +1035,38 @@ class Client extends DynamiteClient { // coverage:ignore-end var $type = jsonSerializers.serialize(type, specifiedType: const FullType(int)); $type ??= 3; - parameters['type'] = $type; + _parameters['type'] = $type; var $id = jsonSerializers.serialize(id, specifiedType: const FullType(int)); $id ??= 0; - parameters['id'] = $id; + _parameters['id'] = $id; var $getRead = jsonSerializers.serialize(getRead, specifiedType: const FullType(int)); $getRead ??= 1; - parameters['getRead'] = $getRead; + _parameters['getRead'] = $getRead; var $batchSize = jsonSerializers.serialize(batchSize, specifiedType: const FullType(int)); $batchSize ??= -1; - parameters['batchSize'] = $batchSize; + _parameters['batchSize'] = $batchSize; var $offset = jsonSerializers.serialize(offset, specifiedType: const FullType(int)); $offset ??= 0; - parameters['offset'] = $offset; + _parameters['offset'] = $offset; var $oldestFirst = jsonSerializers.serialize(oldestFirst, specifiedType: const FullType(int)); $oldestFirst ??= 0; - parameters['oldestFirst'] = $oldestFirst; + _parameters['oldestFirst'] = $oldestFirst; - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate('/index.php/apps/news/api/v1-3/items{?type*,id*,getRead*,batchSize*,offset*,oldestFirst*}') - .expand(parameters), + .expand(_parameters), ); return DynamiteRawResponse( response: executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(ListArticles), @@ -1122,11 +1123,11 @@ class Client extends DynamiteClient { int? id, int? lastModified, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -1137,7 +1138,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1147,25 +1148,25 @@ class Client extends DynamiteClient { // coverage:ignore-end var $type = jsonSerializers.serialize(type, specifiedType: const FullType(int)); $type ??= 3; - parameters['type'] = $type; + _parameters['type'] = $type; var $id = jsonSerializers.serialize(id, specifiedType: const FullType(int)); $id ??= 0; - parameters['id'] = $id; + _parameters['id'] = $id; var $lastModified = jsonSerializers.serialize(lastModified, specifiedType: const FullType(int)); $lastModified ??= 0; - parameters['lastModified'] = $lastModified; + _parameters['lastModified'] = $lastModified; - final uri = Uri.parse( - UriTemplate('/index.php/apps/news/api/v1-3/items/updated{?type*,id*,lastModified*}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/index.php/apps/news/api/v1-3/items/updated{?type*,id*,lastModified*}').expand(_parameters), ); return DynamiteRawResponse( response: executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(ListArticles), @@ -1202,9 +1203,9 @@ class Client extends DynamiteClient { /// * [markArticleAsRead] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse markArticleAsReadRaw({required int itemId}) { - final parameters = {}; - final headers = {}; - Uint8List? body; + final _parameters = {}; + final _headers = {}; + Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -1215,7 +1216,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1224,15 +1225,15 @@ class Client extends DynamiteClient { // coverage:ignore-end final $itemId = jsonSerializers.serialize(itemId, specifiedType: const FullType(int)); - parameters['itemId'] = $itemId; + _parameters['itemId'] = $itemId; - final uri = Uri.parse(UriTemplate('/index.php/apps/news/api/v1-3/items/{itemId}/read').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/index.php/apps/news/api/v1-3/items/{itemId}/read').expand(_parameters)); return DynamiteRawResponse( response: executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: null, @@ -1269,9 +1270,9 @@ class Client extends DynamiteClient { /// * [markArticleAsUnread] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse markArticleAsUnreadRaw({required int itemId}) { - final parameters = {}; - final headers = {}; - Uint8List? body; + final _parameters = {}; + final _headers = {}; + Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -1282,7 +1283,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1291,15 +1292,15 @@ class Client extends DynamiteClient { // coverage:ignore-end final $itemId = jsonSerializers.serialize(itemId, specifiedType: const FullType(int)); - parameters['itemId'] = $itemId; + _parameters['itemId'] = $itemId; - final uri = Uri.parse(UriTemplate('/index.php/apps/news/api/v1-3/items/{itemId}/unread').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/index.php/apps/news/api/v1-3/items/{itemId}/unread').expand(_parameters)); return DynamiteRawResponse( response: executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: null, @@ -1336,9 +1337,9 @@ class Client extends DynamiteClient { /// * [starArticle] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse starArticleRaw({required int itemId}) { - final parameters = {}; - final headers = {}; - Uint8List? body; + final _parameters = {}; + final _headers = {}; + Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -1349,7 +1350,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1358,15 +1359,15 @@ class Client extends DynamiteClient { // coverage:ignore-end final $itemId = jsonSerializers.serialize(itemId, specifiedType: const FullType(int)); - parameters['itemId'] = $itemId; + _parameters['itemId'] = $itemId; - final uri = Uri.parse(UriTemplate('/index.php/apps/news/api/v1-3/items/{itemId}/star').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/index.php/apps/news/api/v1-3/items/{itemId}/star').expand(_parameters)); return DynamiteRawResponse( response: executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: null, @@ -1403,9 +1404,9 @@ class Client extends DynamiteClient { /// * [unstarArticle] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse unstarArticleRaw({required int itemId}) { - final parameters = {}; - final headers = {}; - Uint8List? body; + final _parameters = {}; + final _headers = {}; + Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -1416,7 +1417,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1425,15 +1426,15 @@ class Client extends DynamiteClient { // coverage:ignore-end final $itemId = jsonSerializers.serialize(itemId, specifiedType: const FullType(int)); - parameters['itemId'] = $itemId; + _parameters['itemId'] = $itemId; - final uri = Uri.parse(UriTemplate('/index.php/apps/news/api/v1-3/items/{itemId}/unstar').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/index.php/apps/news/api/v1-3/items/{itemId}/unstar').expand(_parameters)); return DynamiteRawResponse( response: executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, 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 50755bbaf76..475a696e04e 100644 --- a/packages/nextcloud/lib/src/api/notes.openapi.dart +++ b/packages/nextcloud/lib/src/api/notes.openapi.dart @@ -3,6 +3,7 @@ // ignore_for_file: public_member_api_docs // ignore_for_file: unreachable_switch_case // ignore_for_file: camel_case_extensions +// ignore_for_file: no_leading_underscores_for_local_identifiers import 'dart:convert'; import 'dart:typed_data'; @@ -102,11 +103,11 @@ class Client extends DynamiteClient { String? chunkCursor, String? ifNoneMatch, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -117,7 +118,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -126,38 +127,38 @@ class Client extends DynamiteClient { // coverage:ignore-end final $category = jsonSerializers.serialize(category, specifiedType: const FullType(String)); - parameters['category'] = $category; + _parameters['category'] = $category; var $exclude = jsonSerializers.serialize(exclude, specifiedType: const FullType(String)); $exclude ??= ''; - parameters['exclude'] = $exclude; + _parameters['exclude'] = $exclude; var $pruneBefore = jsonSerializers.serialize(pruneBefore, specifiedType: const FullType(int)); $pruneBefore ??= 0; - parameters['pruneBefore'] = $pruneBefore; + _parameters['pruneBefore'] = $pruneBefore; var $chunkSize = jsonSerializers.serialize(chunkSize, specifiedType: const FullType(int)); $chunkSize ??= 0; - parameters['chunkSize'] = $chunkSize; + _parameters['chunkSize'] = $chunkSize; final $chunkCursor = jsonSerializers.serialize(chunkCursor, specifiedType: const FullType(String)); - parameters['chunkCursor'] = $chunkCursor; + _parameters['chunkCursor'] = $chunkCursor; final $ifNoneMatch = jsonSerializers.serialize(ifNoneMatch, specifiedType: const FullType(String)); if ($ifNoneMatch != null) { - headers['If-None-Match'] = $ifNoneMatch as String; + _headers['If-None-Match'] = $ifNoneMatch as String; } - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate('/index.php/apps/notes/api/v1/notes{?category*,exclude*,pruneBefore*,chunkSize*,chunkCursor*}') - .expand(parameters), + .expand(_parameters), ); return DynamiteRawResponse, void>( response: executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(BuiltList, [FullType(Note)]), @@ -224,11 +225,11 @@ class Client extends DynamiteClient { int? modified, int? favorite, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -239,7 +240,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -249,34 +250,34 @@ class Client extends DynamiteClient { // coverage:ignore-end var $category = jsonSerializers.serialize(category, specifiedType: const FullType(String)); $category ??= ''; - parameters['category'] = $category; + _parameters['category'] = $category; var $title = jsonSerializers.serialize(title, specifiedType: const FullType(String)); $title ??= ''; - parameters['title'] = $title; + _parameters['title'] = $title; var $content = jsonSerializers.serialize(content, specifiedType: const FullType(String)); $content ??= ''; - parameters['content'] = $content; + _parameters['content'] = $content; var $modified = jsonSerializers.serialize(modified, specifiedType: const FullType(int)); $modified ??= 0; - parameters['modified'] = $modified; + _parameters['modified'] = $modified; var $favorite = jsonSerializers.serialize(favorite, specifiedType: const FullType(int)); $favorite ??= 0; - parameters['favorite'] = $favorite; + _parameters['favorite'] = $favorite; - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate('/index.php/apps/notes/api/v1/notes{?category*,title*,content*,modified*,favorite*}') - .expand(parameters), + .expand(_parameters), ); return DynamiteRawResponse( response: executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(Note), @@ -331,11 +332,11 @@ class Client extends DynamiteClient { String? exclude, String? ifNoneMatch, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -346,7 +347,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -355,24 +356,24 @@ class Client extends DynamiteClient { // coverage:ignore-end final $id = jsonSerializers.serialize(id, specifiedType: const FullType(int)); - parameters['id'] = $id; + _parameters['id'] = $id; var $exclude = jsonSerializers.serialize(exclude, specifiedType: const FullType(String)); $exclude ??= ''; - parameters['exclude'] = $exclude; + _parameters['exclude'] = $exclude; final $ifNoneMatch = jsonSerializers.serialize(ifNoneMatch, specifiedType: const FullType(String)); if ($ifNoneMatch != null) { - headers['If-None-Match'] = $ifNoneMatch as String; + _headers['If-None-Match'] = $ifNoneMatch as String; } - final uri = Uri.parse(UriTemplate('/index.php/apps/notes/api/v1/notes/{id}{?exclude*}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/index.php/apps/notes/api/v1/notes/{id}{?exclude*}').expand(_parameters)); return DynamiteRawResponse( response: executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(Note), @@ -447,11 +448,11 @@ class Client extends DynamiteClient { int? favorite, String? ifMatch, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -462,7 +463,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -471,38 +472,38 @@ class Client extends DynamiteClient { // coverage:ignore-end final $id = jsonSerializers.serialize(id, specifiedType: const FullType(int)); - parameters['id'] = $id; + _parameters['id'] = $id; final $content = jsonSerializers.serialize(content, specifiedType: const FullType(String)); - parameters['content'] = $content; + _parameters['content'] = $content; final $modified = jsonSerializers.serialize(modified, specifiedType: const FullType(int)); - parameters['modified'] = $modified; + _parameters['modified'] = $modified; final $title = jsonSerializers.serialize(title, specifiedType: const FullType(String)); - parameters['title'] = $title; + _parameters['title'] = $title; final $category = jsonSerializers.serialize(category, specifiedType: const FullType(String)); - parameters['category'] = $category; + _parameters['category'] = $category; final $favorite = jsonSerializers.serialize(favorite, specifiedType: const FullType(int)); - parameters['favorite'] = $favorite; + _parameters['favorite'] = $favorite; final $ifMatch = jsonSerializers.serialize(ifMatch, specifiedType: const FullType(String)); if ($ifMatch != null) { - headers['If-Match'] = $ifMatch as String; + _headers['If-Match'] = $ifMatch as String; } - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate('/index.php/apps/notes/api/v1/notes/{id}{?content*,modified*,title*,category*,favorite*}') - .expand(parameters), + .expand(_parameters), ); return DynamiteRawResponse( response: executeRequest( 'put', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(Note), @@ -539,11 +540,11 @@ class Client extends DynamiteClient { /// * [deleteNote] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse deleteNoteRaw({required int id}) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -554,7 +555,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -563,15 +564,15 @@ class Client extends DynamiteClient { // coverage:ignore-end final $id = jsonSerializers.serialize(id, specifiedType: const FullType(int)); - parameters['id'] = $id; + _parameters['id'] = $id; - final uri = Uri.parse(UriTemplate('/index.php/apps/notes/api/v1/notes/{id}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/index.php/apps/notes/api/v1/notes/{id}').expand(_parameters)); return DynamiteRawResponse( response: executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(String), @@ -606,11 +607,11 @@ class Client extends DynamiteClient { /// * [getSettings] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse getSettingsRaw() { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -621,7 +622,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -629,13 +630,13 @@ class Client extends DynamiteClient { } // coverage:ignore-end - final uri = Uri.parse(UriTemplate('/index.php/apps/notes/api/v1/settings').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/index.php/apps/notes/api/v1/settings').expand(_parameters)); return DynamiteRawResponse( response: executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(Settings), @@ -672,11 +673,11 @@ 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 = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -687,7 +688,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -695,15 +696,15 @@ 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 uri = Uri.parse(UriTemplate('/index.php/apps/notes/api/v1/settings').expand(parameters)); + _headers['Content-Type'] = 'application/json'; + _body = utf8.encode(json.encode(jsonSerializers.serialize(settings, specifiedType: const FullType(Settings)))); + final _uri = Uri.parse(UriTemplate('/index.php/apps/notes/api/v1/settings').expand(_parameters)); return DynamiteRawResponse( response: executeRequest( 'put', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(Settings), diff --git a/packages/nextcloud/lib/src/api/notifications.openapi.dart b/packages/nextcloud/lib/src/api/notifications.openapi.dart index c041a00f2db..23c3b6409c0 100644 --- a/packages/nextcloud/lib/src/api/notifications.openapi.dart +++ b/packages/nextcloud/lib/src/api/notifications.openapi.dart @@ -3,6 +3,7 @@ // ignore_for_file: public_member_api_docs // 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'; @@ -124,11 +125,11 @@ class ApiClient { ApiGenerateNotificationApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -139,7 +140,7 @@ class ApiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -148,35 +149,35 @@ class ApiClient { // coverage:ignore-end final $shortMessage = jsonSerializers.serialize(shortMessage, specifiedType: const FullType(String)); - parameters['shortMessage'] = $shortMessage; + _parameters['shortMessage'] = $shortMessage; final $userId = jsonSerializers.serialize(userId, specifiedType: const FullType(String)); - parameters['userId'] = $userId; + _parameters['userId'] = $userId; var $longMessage = jsonSerializers.serialize(longMessage, specifiedType: const FullType(String)); $longMessage ??= ''; - parameters['longMessage'] = $longMessage; + _parameters['longMessage'] = $longMessage; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(ApiGenerateNotificationApiVersion)); $apiVersion ??= 'v2'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate( '/ocs/v2.php/apps/notifications/api/{apiVersion}/admin_notifications/{userId}{?shortMessage*,longMessage*}', - ).expand(parameters), + ).expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(ApiGenerateNotificationResponseApplicationJson), @@ -242,11 +243,11 @@ class EndpointClient { EndpointListNotificationsApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -257,7 +258,7 @@ class EndpointClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -268,21 +269,21 @@ class EndpointClient { var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(EndpointListNotificationsApiVersion)); $apiVersion ??= 'v2'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = - Uri.parse(UriTemplate('/ocs/v2.php/apps/notifications/api/{apiVersion}/notifications').expand(parameters)); + final _uri = + Uri.parse(UriTemplate('/ocs/v2.php/apps/notifications/api/{apiVersion}/notifications').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(EndpointListNotificationsResponseApplicationJson), @@ -340,11 +341,11 @@ class EndpointClient { EndpointDeleteAllNotificationsApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -355,7 +356,7 @@ class EndpointClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -366,20 +367,20 @@ class EndpointClient { var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(EndpointDeleteAllNotificationsApiVersion)); $apiVersion ??= 'v2'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = - Uri.parse(UriTemplate('/ocs/v2.php/apps/notifications/api/{apiVersion}/notifications').expand(parameters)); + final _uri = + Uri.parse(UriTemplate('/ocs/v2.php/apps/notifications/api/{apiVersion}/notifications').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(EndpointDeleteAllNotificationsResponseApplicationJson), @@ -442,11 +443,11 @@ class EndpointClient { EndpointGetNotificationApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -457,7 +458,7 @@ class EndpointClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -466,26 +467,26 @@ class EndpointClient { // coverage:ignore-end final $id = jsonSerializers.serialize(id, specifiedType: const FullType(int)); - parameters['id'] = $id; + _parameters['id'] = $id; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(EndpointGetNotificationApiVersion)); $apiVersion ??= 'v2'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/apps/notifications/api/{apiVersion}/notifications/{id}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/apps/notifications/api/{apiVersion}/notifications/{id}').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(EndpointGetNotificationResponseApplicationJson), @@ -550,11 +551,11 @@ class EndpointClient { EndpointDeleteNotificationApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -565,7 +566,7 @@ class EndpointClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -574,26 +575,26 @@ class EndpointClient { // coverage:ignore-end final $id = jsonSerializers.serialize(id, specifiedType: const FullType(int)); - parameters['id'] = $id; + _parameters['id'] = $id; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(EndpointDeleteNotificationApiVersion)); $apiVersion ??= 'v2'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/apps/notifications/api/{apiVersion}/notifications/{id}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/apps/notifications/api/{apiVersion}/notifications/{id}').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(EndpointDeleteNotificationResponseApplicationJson), @@ -656,11 +657,11 @@ class EndpointClient { EndpointConfirmIdsForUserApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -671,7 +672,7 @@ class EndpointClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -680,27 +681,27 @@ class EndpointClient { // coverage:ignore-end final $ids = jsonSerializers.serialize(ids, specifiedType: const FullType(BuiltList, [FullType(int)])); - parameters['ids%5B%5D'] = $ids; + _parameters['ids%5B%5D'] = $ids; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(EndpointConfirmIdsForUserApiVersion)); $apiVersion ??= 'v2'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate('/ocs/v2.php/apps/notifications/api/{apiVersion}/notifications/exists{?ids%5B%5D*}') - .expand(parameters), + .expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200, 400}, ), bodyType: const FullType(EndpointConfirmIdsForUserResponseApplicationJson), @@ -783,11 +784,11 @@ class PushClient { PushRegisterDeviceApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -798,7 +799,7 @@ class PushClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -807,34 +808,34 @@ class PushClient { // coverage:ignore-end final $pushTokenHash = jsonSerializers.serialize(pushTokenHash, specifiedType: const FullType(String)); - parameters['pushTokenHash'] = $pushTokenHash; + _parameters['pushTokenHash'] = $pushTokenHash; final $devicePublicKey = jsonSerializers.serialize(devicePublicKey, specifiedType: const FullType(String)); - parameters['devicePublicKey'] = $devicePublicKey; + _parameters['devicePublicKey'] = $devicePublicKey; final $proxyServer = jsonSerializers.serialize(proxyServer, specifiedType: const FullType(String)); - parameters['proxyServer'] = $proxyServer; + _parameters['proxyServer'] = $proxyServer; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(PushRegisterDeviceApiVersion)); $apiVersion ??= 'v2'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate( '/ocs/v2.php/apps/notifications/api/{apiVersion}/push{?pushTokenHash*,devicePublicKey*,proxyServer*}', - ).expand(parameters), + ).expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200, 201}, ), bodyType: const FullType(PushRegisterDeviceResponseApplicationJson), @@ -896,11 +897,11 @@ class PushClient { PushRemoveDeviceApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -911,7 +912,7 @@ class PushClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -921,19 +922,19 @@ class PushClient { // coverage:ignore-end var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(PushRemoveDeviceApiVersion)); $apiVersion ??= 'v2'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/notifications/api/{apiVersion}/push').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/notifications/api/{apiVersion}/push').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, const {200, 202, 401}, ), bodyType: const FullType(PushRemoveDeviceResponseApplicationJson), @@ -1010,11 +1011,11 @@ class SettingsClient { SettingsPersonalApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1025,7 +1026,7 @@ class SettingsClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1034,33 +1035,33 @@ class SettingsClient { // coverage:ignore-end final $batchSetting = jsonSerializers.serialize(batchSetting, specifiedType: const FullType(int)); - parameters['batchSetting'] = $batchSetting; + _parameters['batchSetting'] = $batchSetting; final $soundNotification = jsonSerializers.serialize(soundNotification, specifiedType: const FullType(String)); - parameters['soundNotification'] = $soundNotification; + _parameters['soundNotification'] = $soundNotification; final $soundTalk = jsonSerializers.serialize(soundTalk, specifiedType: const FullType(String)); - parameters['soundTalk'] = $soundTalk; + _parameters['soundTalk'] = $soundTalk; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(SettingsPersonalApiVersion)); $apiVersion ??= 'v2'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate( '/ocs/v2.php/apps/notifications/api/{apiVersion}/settings{?batchSetting*,soundNotification*,soundTalk*}', - ).expand(parameters), + ).expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(SettingsPersonalResponseApplicationJson), @@ -1135,11 +1136,11 @@ class SettingsClient { SettingsAdminApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1150,7 +1151,7 @@ class SettingsClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1159,33 +1160,33 @@ class SettingsClient { // coverage:ignore-end final $batchSetting = jsonSerializers.serialize(batchSetting, specifiedType: const FullType(int)); - parameters['batchSetting'] = $batchSetting; + _parameters['batchSetting'] = $batchSetting; final $soundNotification = jsonSerializers.serialize(soundNotification, specifiedType: const FullType(String)); - parameters['soundNotification'] = $soundNotification; + _parameters['soundNotification'] = $soundNotification; final $soundTalk = jsonSerializers.serialize(soundTalk, specifiedType: const FullType(String)); - parameters['soundTalk'] = $soundTalk; + _parameters['soundTalk'] = $soundTalk; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(SettingsAdminApiVersion)); $apiVersion ??= 'v2'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate( '/ocs/v2.php/apps/notifications/api/{apiVersion}/settings/admin{?batchSetting*,soundNotification*,soundTalk*}', - ).expand(parameters), + ).expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, 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 9a48356a31d..8b1cffd096b 100644 --- a/packages/nextcloud/lib/src/api/provisioning_api.openapi.dart +++ b/packages/nextcloud/lib/src/api/provisioning_api.openapi.dart @@ -3,6 +3,7 @@ // ignore_for_file: public_member_api_docs // 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'; @@ -98,11 +99,11 @@ class AppConfigClient { /// * [getApps] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse getAppsRaw({bool? oCSAPIRequest}) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -113,7 +114,7 @@ class AppConfigClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -123,15 +124,15 @@ class AppConfigClient { // coverage:ignore-end var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/provisioning_api/api/v1/config/apps').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/provisioning_api/api/v1/config/apps').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(AppConfigGetAppsResponseApplicationJson), @@ -193,11 +194,11 @@ class AppConfigClient { required String app, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -208,7 +209,7 @@ class AppConfigClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -217,19 +218,20 @@ class AppConfigClient { // coverage:ignore-end final $app = jsonSerializers.serialize(app, specifiedType: const FullType(String)); - parameters['app'] = $app; + _parameters['app'] = $app; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/provisioning_api/api/v1/config/apps/{app}').expand(parameters)); + final _uri = + Uri.parse(UriTemplate('/ocs/v2.php/apps/provisioning_api/api/v1/config/apps/{app}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(AppConfigGetKeysResponseApplicationJson), @@ -301,11 +303,11 @@ class AppConfigClient { String? defaultValue, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -316,7 +318,7 @@ class AppConfigClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -325,29 +327,29 @@ class AppConfigClient { // coverage:ignore-end final $app = jsonSerializers.serialize(app, specifiedType: const FullType(String)); - parameters['app'] = $app; + _parameters['app'] = $app; final $key = jsonSerializers.serialize(key, specifiedType: const FullType(String)); - parameters['key'] = $key; + _parameters['key'] = $key; var $defaultValue = jsonSerializers.serialize(defaultValue, specifiedType: const FullType(String)); $defaultValue ??= ''; - parameters['defaultValue'] = $defaultValue; + _parameters['defaultValue'] = $defaultValue; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate('/ocs/v2.php/apps/provisioning_api/api/v1/config/apps/{app}/{key}{?defaultValue*}') - .expand(parameters), + .expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(AppConfigGetValueResponseApplicationJson), @@ -415,11 +417,11 @@ class AppConfigClient { required String key, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -430,7 +432,7 @@ class AppConfigClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -439,27 +441,27 @@ class AppConfigClient { // coverage:ignore-end final $value = jsonSerializers.serialize(value, specifiedType: const FullType(String)); - parameters['value'] = $value; + _parameters['value'] = $value; final $app = jsonSerializers.serialize(app, specifiedType: const FullType(String)); - parameters['app'] = $app; + _parameters['app'] = $app; final $key = jsonSerializers.serialize(key, specifiedType: const FullType(String)); - parameters['key'] = $key; + _parameters['key'] = $key; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/apps/provisioning_api/api/v1/config/apps/{app}/{key}{?value*}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/apps/provisioning_api/api/v1/config/apps/{app}/{key}{?value*}').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(AppConfigSetValueResponseApplicationJson), @@ -526,11 +528,11 @@ class AppConfigClient { required String key, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -541,7 +543,7 @@ class AppConfigClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -550,23 +552,23 @@ class AppConfigClient { // coverage:ignore-end final $app = jsonSerializers.serialize(app, specifiedType: const FullType(String)); - parameters['app'] = $app; + _parameters['app'] = $app; final $key = jsonSerializers.serialize(key, specifiedType: const FullType(String)); - parameters['key'] = $key; + _parameters['key'] = $key; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = - Uri.parse(UriTemplate('/ocs/v2.php/apps/provisioning_api/api/v1/config/apps/{app}/{key}').expand(parameters)); + final _uri = + Uri.parse(UriTemplate('/ocs/v2.php/apps/provisioning_api/api/v1/config/apps/{app}/{key}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(AppConfigDeleteKeyResponseApplicationJson), @@ -632,11 +634,11 @@ class AppsClient { String? filter, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -647,7 +649,7 @@ class AppsClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -656,19 +658,19 @@ class AppsClient { // coverage:ignore-end final $filter = jsonSerializers.serialize(filter, specifiedType: const FullType(String)); - parameters['filter'] = $filter; + _parameters['filter'] = $filter; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/apps{?filter*}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/apps{?filter*}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(AppsGetAppsResponseApplicationJson), @@ -728,11 +730,11 @@ class AppsClient { required String app, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -743,7 +745,7 @@ class AppsClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -752,19 +754,19 @@ class AppsClient { // coverage:ignore-end final $app = jsonSerializers.serialize(app, specifiedType: const FullType(String)); - parameters['app'] = $app; + _parameters['app'] = $app; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/apps/{app}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/apps/{app}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(AppsGetAppInfoResponseApplicationJson), @@ -824,11 +826,11 @@ class AppsClient { required String app, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -839,7 +841,7 @@ class AppsClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -848,19 +850,19 @@ class AppsClient { // coverage:ignore-end final $app = jsonSerializers.serialize(app, specifiedType: const FullType(String)); - parameters['app'] = $app; + _parameters['app'] = $app; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/apps/{app}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/apps/{app}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(AppsEnableResponseApplicationJson), @@ -920,11 +922,11 @@ class AppsClient { required String app, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -935,7 +937,7 @@ class AppsClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -944,19 +946,19 @@ class AppsClient { // coverage:ignore-end final $app = jsonSerializers.serialize(app, specifiedType: const FullType(String)); - parameters['app'] = $app; + _parameters['app'] = $app; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/apps/{app}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/apps/{app}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(AppsDisableResponseApplicationJson), @@ -1028,11 +1030,11 @@ class GroupsClient { int? offset, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1043,7 +1045,7 @@ class GroupsClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1053,26 +1055,26 @@ class GroupsClient { // coverage:ignore-end var $search = jsonSerializers.serialize(search, specifiedType: const FullType(String)); $search ??= ''; - parameters['search'] = $search; + _parameters['search'] = $search; final $limit = jsonSerializers.serialize(limit, specifiedType: const FullType(int)); - parameters['limit'] = $limit; + _parameters['limit'] = $limit; var $offset = jsonSerializers.serialize(offset, specifiedType: const FullType(int)); $offset ??= 0; - parameters['offset'] = $offset; + _parameters['offset'] = $offset; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/groups{?search*,limit*,offset*}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/groups{?search*,limit*,offset*}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(GroupsGetGroupsResponseApplicationJson), @@ -1137,11 +1139,11 @@ class GroupsClient { String? displayname, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1152,7 +1154,7 @@ class GroupsClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1161,23 +1163,23 @@ class GroupsClient { // coverage:ignore-end final $groupid = jsonSerializers.serialize(groupid, specifiedType: const FullType(String)); - parameters['groupid'] = $groupid; + _parameters['groupid'] = $groupid; var $displayname = jsonSerializers.serialize(displayname, specifiedType: const FullType(String)); $displayname ??= ''; - parameters['displayname'] = $displayname; + _parameters['displayname'] = $displayname; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/groups{?groupid*,displayname*}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/groups{?groupid*,displayname*}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(GroupsAddGroupResponseApplicationJson), @@ -1243,11 +1245,11 @@ class GroupsClient { int? offset, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1258,7 +1260,7 @@ class GroupsClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1268,26 +1270,27 @@ class GroupsClient { // coverage:ignore-end var $search = jsonSerializers.serialize(search, specifiedType: const FullType(String)); $search ??= ''; - parameters['search'] = $search; + _parameters['search'] = $search; final $limit = jsonSerializers.serialize(limit, specifiedType: const FullType(int)); - parameters['limit'] = $limit; + _parameters['limit'] = $limit; var $offset = jsonSerializers.serialize(offset, specifiedType: const FullType(int)); $offset ??= 0; - parameters['offset'] = $offset; + _parameters['offset'] = $offset; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/groups/details{?search*,limit*,offset*}').expand(parameters)); + final _uri = + Uri.parse(UriTemplate('/ocs/v2.php/cloud/groups/details{?search*,limit*,offset*}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(GroupsGetGroupsDetailsResponseApplicationJson), @@ -1347,11 +1350,11 @@ class GroupsClient { required String groupId, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1362,7 +1365,7 @@ class GroupsClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1372,19 +1375,19 @@ class GroupsClient { // coverage:ignore-end final $groupId = jsonSerializers.serialize(groupId, specifiedType: const FullType(String)); dynamite_utils.checkPattern($groupId as String?, RegExp(r'^.+$'), 'groupId'); - parameters['groupId'] = $groupId; + _parameters['groupId'] = $groupId; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/groups/{groupId}/users').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/groups/{groupId}/users').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(GroupsGetGroupUsersResponseApplicationJson), @@ -1455,11 +1458,11 @@ class GroupsClient { int? offset, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1470,7 +1473,7 @@ class GroupsClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1480,32 +1483,32 @@ class GroupsClient { // coverage:ignore-end final $groupId = jsonSerializers.serialize(groupId, specifiedType: const FullType(String)); dynamite_utils.checkPattern($groupId as String?, RegExp(r'^.+$'), 'groupId'); - parameters['groupId'] = $groupId; + _parameters['groupId'] = $groupId; var $search = jsonSerializers.serialize(search, specifiedType: const FullType(String)); $search ??= ''; - parameters['search'] = $search; + _parameters['search'] = $search; final $limit = jsonSerializers.serialize(limit, specifiedType: const FullType(int)); - parameters['limit'] = $limit; + _parameters['limit'] = $limit; var $offset = jsonSerializers.serialize(offset, specifiedType: const FullType(int)); $offset ??= 0; - parameters['offset'] = $offset; + _parameters['offset'] = $offset; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/cloud/groups/{groupId}/users/details{?search*,limit*,offset*}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/cloud/groups/{groupId}/users/details{?search*,limit*,offset*}').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(GroupsGetGroupUsersDetailsResponseApplicationJson), @@ -1565,11 +1568,11 @@ class GroupsClient { required String groupId, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1580,7 +1583,7 @@ class GroupsClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1590,19 +1593,19 @@ class GroupsClient { // coverage:ignore-end final $groupId = jsonSerializers.serialize(groupId, specifiedType: const FullType(String)); dynamite_utils.checkPattern($groupId as String?, RegExp(r'^.+$'), 'groupId'); - parameters['groupId'] = $groupId; + _parameters['groupId'] = $groupId; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/groups/{groupId}/subadmins').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/groups/{groupId}/subadmins').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(GroupsGetSubAdminsOfGroupResponseApplicationJson), @@ -1660,11 +1663,11 @@ class GroupsClient { required String groupId, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1675,7 +1678,7 @@ class GroupsClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1685,19 +1688,19 @@ class GroupsClient { // coverage:ignore-end final $groupId = jsonSerializers.serialize(groupId, specifiedType: const FullType(String)); dynamite_utils.checkPattern($groupId as String?, RegExp(r'^.+$'), 'groupId'); - parameters['groupId'] = $groupId; + _parameters['groupId'] = $groupId; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/groups/{groupId}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/groups/{groupId}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(GroupsGetGroupResponseApplicationJson), @@ -1767,11 +1770,11 @@ class GroupsClient { required String groupId, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1782,7 +1785,7 @@ class GroupsClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1791,26 +1794,26 @@ class GroupsClient { // coverage:ignore-end final $key = jsonSerializers.serialize(key, specifiedType: const FullType(String)); - parameters['key'] = $key; + _parameters['key'] = $key; final $value = jsonSerializers.serialize(value, specifiedType: const FullType(String)); - parameters['value'] = $value; + _parameters['value'] = $value; final $groupId = jsonSerializers.serialize(groupId, specifiedType: const FullType(String)); dynamite_utils.checkPattern($groupId as String?, RegExp(r'^.+$'), 'groupId'); - parameters['groupId'] = $groupId; + _parameters['groupId'] = $groupId; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/groups/{groupId}{?key*,value*}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/groups/{groupId}{?key*,value*}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(GroupsUpdateGroupResponseApplicationJson), @@ -1870,11 +1873,11 @@ class GroupsClient { required String groupId, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1885,7 +1888,7 @@ class GroupsClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1895,19 +1898,19 @@ class GroupsClient { // coverage:ignore-end final $groupId = jsonSerializers.serialize(groupId, specifiedType: const FullType(String)); dynamite_utils.checkPattern($groupId as String?, RegExp(r'^.+$'), 'groupId'); - parameters['groupId'] = $groupId; + _parameters['groupId'] = $groupId; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/groups/{groupId}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/groups/{groupId}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(GroupsDeleteGroupResponseApplicationJson), @@ -1981,11 +1984,11 @@ class PreferencesClient { required String configKey, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1996,7 +1999,7 @@ class PreferencesClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -2005,28 +2008,28 @@ class PreferencesClient { // coverage:ignore-end final $configValue = jsonSerializers.serialize(configValue, specifiedType: const FullType(String)); - parameters['configValue'] = $configValue; + _parameters['configValue'] = $configValue; final $appId = jsonSerializers.serialize(appId, specifiedType: const FullType(String)); - parameters['appId'] = $appId; + _parameters['appId'] = $appId; final $configKey = jsonSerializers.serialize(configKey, specifiedType: const FullType(String)); - parameters['configKey'] = $configKey; + _parameters['configKey'] = $configKey; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate('/ocs/v2.php/apps/provisioning_api/api/v1/config/users/{appId}/{configKey}{?configValue*}') - .expand(parameters), + .expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200, 400}, ), bodyType: const FullType(PreferencesSetPreferenceResponseApplicationJson), @@ -2089,11 +2092,11 @@ class PreferencesClient { required String configKey, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2104,7 +2107,7 @@ class PreferencesClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -2113,24 +2116,24 @@ class PreferencesClient { // coverage:ignore-end final $appId = jsonSerializers.serialize(appId, specifiedType: const FullType(String)); - parameters['appId'] = $appId; + _parameters['appId'] = $appId; final $configKey = jsonSerializers.serialize(configKey, specifiedType: const FullType(String)); - parameters['configKey'] = $configKey; + _parameters['configKey'] = $configKey; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/apps/provisioning_api/api/v1/config/users/{appId}/{configKey}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/apps/provisioning_api/api/v1/config/users/{appId}/{configKey}').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, const {200, 400}, ), bodyType: const FullType(PreferencesDeletePreferenceResponseApplicationJson), @@ -2193,11 +2196,11 @@ class PreferencesClient { required String appId, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2208,7 +2211,7 @@ class PreferencesClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -2222,24 +2225,24 @@ class PreferencesClient { FullType(BuiltMap, [FullType(String), FullType(String)]), ]), ); - parameters['configs'] = $configs; + _parameters['configs'] = $configs; final $appId = jsonSerializers.serialize(appId, specifiedType: const FullType(String)); - parameters['appId'] = $appId; + _parameters['appId'] = $appId; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/apps/provisioning_api/api/v1/config/users/{appId}{?configs*}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/apps/provisioning_api/api/v1/config/users/{appId}{?configs*}').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200, 400}, ), bodyType: const FullType(PreferencesSetMultiplePreferencesResponseApplicationJson), @@ -2302,11 +2305,11 @@ class PreferencesClient { required String appId, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2317,7 +2320,7 @@ class PreferencesClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -2327,25 +2330,25 @@ class PreferencesClient { // coverage:ignore-end final $configKeys = jsonSerializers.serialize(configKeys, specifiedType: const FullType(BuiltList, [FullType(String)])); - parameters['configKeys%5B%5D'] = $configKeys; + _parameters['configKeys%5B%5D'] = $configKeys; final $appId = jsonSerializers.serialize(appId, specifiedType: const FullType(String)); - parameters['appId'] = $appId; + _parameters['appId'] = $appId; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate('/ocs/v2.php/apps/provisioning_api/api/v1/config/users/{appId}{?configKeys%5B%5D*}') - .expand(parameters), + .expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, const {200, 400}, ), bodyType: const FullType(PreferencesDeleteMultiplePreferenceResponseApplicationJson), @@ -2417,11 +2420,11 @@ class UsersClient { int? offset, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2432,7 +2435,7 @@ class UsersClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -2442,26 +2445,26 @@ class UsersClient { // coverage:ignore-end var $search = jsonSerializers.serialize(search, specifiedType: const FullType(String)); $search ??= ''; - parameters['search'] = $search; + _parameters['search'] = $search; final $limit = jsonSerializers.serialize(limit, specifiedType: const FullType(int)); - parameters['limit'] = $limit; + _parameters['limit'] = $limit; var $offset = jsonSerializers.serialize(offset, specifiedType: const FullType(int)); $offset ??= 0; - parameters['offset'] = $offset; + _parameters['offset'] = $offset; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/users{?search*,limit*,offset*}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/users{?search*,limit*,offset*}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(UsersGetUsersResponseApplicationJson), @@ -2559,11 +2562,11 @@ class UsersClient { String? manager, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2574,7 +2577,7 @@ class UsersClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -2583,54 +2586,54 @@ class UsersClient { // coverage:ignore-end final $userid = jsonSerializers.serialize(userid, specifiedType: const FullType(String)); - parameters['userid'] = $userid; + _parameters['userid'] = $userid; var $password = jsonSerializers.serialize(password, specifiedType: const FullType(String)); $password ??= ''; - parameters['password'] = $password; + _parameters['password'] = $password; var $displayName = jsonSerializers.serialize(displayName, specifiedType: const FullType(String)); $displayName ??= ''; - parameters['displayName'] = $displayName; + _parameters['displayName'] = $displayName; var $email = jsonSerializers.serialize(email, specifiedType: const FullType(String)); $email ??= ''; - parameters['email'] = $email; + _parameters['email'] = $email; var $groups = jsonSerializers.serialize(groups, specifiedType: const FullType(BuiltList, [FullType(String)])); $groups ??= []; - parameters['groups%5B%5D'] = $groups; + _parameters['groups%5B%5D'] = $groups; var $subadmin = jsonSerializers.serialize(subadmin, specifiedType: const FullType(BuiltList, [FullType(String)])); $subadmin ??= []; - parameters['subadmin%5B%5D'] = $subadmin; + _parameters['subadmin%5B%5D'] = $subadmin; var $quota = jsonSerializers.serialize(quota, specifiedType: const FullType(String)); $quota ??= ''; - parameters['quota'] = $quota; + _parameters['quota'] = $quota; var $language = jsonSerializers.serialize(language, specifiedType: const FullType(String)); $language ??= ''; - parameters['language'] = $language; + _parameters['language'] = $language; final $manager = jsonSerializers.serialize(manager, specifiedType: const FullType(String)); - parameters['manager'] = $manager; + _parameters['manager'] = $manager; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate( '/ocs/v2.php/cloud/users{?userid*,password*,displayName*,email*,groups%5B%5D*,subadmin%5B%5D*,quota*,language*,manager*}', - ).expand(parameters), + ).expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(UsersAddUserResponseApplicationJson), @@ -2696,11 +2699,11 @@ class UsersClient { int? offset, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2711,7 +2714,7 @@ class UsersClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -2721,26 +2724,26 @@ class UsersClient { // coverage:ignore-end var $search = jsonSerializers.serialize(search, specifiedType: const FullType(String)); $search ??= ''; - parameters['search'] = $search; + _parameters['search'] = $search; final $limit = jsonSerializers.serialize(limit, specifiedType: const FullType(int)); - parameters['limit'] = $limit; + _parameters['limit'] = $limit; var $offset = jsonSerializers.serialize(offset, specifiedType: const FullType(int)); $offset ??= 0; - parameters['offset'] = $offset; + _parameters['offset'] = $offset; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/users/details{?search*,limit*,offset*}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/users/details{?search*,limit*,offset*}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(UsersGetUsersDetailsResponseApplicationJson), @@ -2801,11 +2804,11 @@ class UsersClient { int? offset, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2816,7 +2819,7 @@ class UsersClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -2825,23 +2828,23 @@ class UsersClient { // coverage:ignore-end final $limit = jsonSerializers.serialize(limit, specifiedType: const FullType(int)); - parameters['limit'] = $limit; + _parameters['limit'] = $limit; var $offset = jsonSerializers.serialize(offset, specifiedType: const FullType(int)); $offset ??= 0; - parameters['offset'] = $offset; + _parameters['offset'] = $offset; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/users/disabled{?limit*,offset*}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/users/disabled{?limit*,offset*}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(UsersGetDisabledUsersDetailsResponseApplicationJson), @@ -2904,11 +2907,11 @@ class UsersClient { required ContentString>> search, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2919,7 +2922,7 @@ class UsersClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -2928,7 +2931,7 @@ class UsersClient { // coverage:ignore-end final $location = jsonSerializers.serialize(location, specifiedType: const FullType(String)); - parameters['location'] = $location; + _parameters['location'] = $location; final $search = jsonSerializers.serialize( search, @@ -2939,20 +2942,20 @@ class UsersClient { ]), ]), ); - parameters['search'] = $search; + _parameters['search'] = $search; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = - Uri.parse(UriTemplate('/ocs/v2.php/cloud/users/search/by-phone{?location*,search*}').expand(parameters)); + final _uri = + Uri.parse(UriTemplate('/ocs/v2.php/cloud/users/search/by-phone{?location*,search*}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(UsersSearchByPhoneNumbersResponseApplicationJson), @@ -3008,11 +3011,11 @@ class UsersClient { required String userId, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3023,7 +3026,7 @@ class UsersClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -3032,19 +3035,19 @@ class UsersClient { // coverage:ignore-end final $userId = jsonSerializers.serialize(userId, specifiedType: const FullType(String)); - parameters['userId'] = $userId; + _parameters['userId'] = $userId; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/users/{userId}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/users/{userId}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(UsersGetUserResponseApplicationJson), @@ -3110,11 +3113,11 @@ class UsersClient { required String userId, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3125,7 +3128,7 @@ class UsersClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -3134,25 +3137,25 @@ class UsersClient { // coverage:ignore-end final $key = jsonSerializers.serialize(key, specifiedType: const FullType(String)); - parameters['key'] = $key; + _parameters['key'] = $key; final $value = jsonSerializers.serialize(value, specifiedType: const FullType(String)); - parameters['value'] = $value; + _parameters['value'] = $value; final $userId = jsonSerializers.serialize(userId, specifiedType: const FullType(String)); - parameters['userId'] = $userId; + _parameters['userId'] = $userId; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/users/{userId}{?key*,value*}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/users/{userId}{?key*,value*}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(UsersEditUserResponseApplicationJson), @@ -3208,11 +3211,11 @@ class UsersClient { required String userId, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3223,7 +3226,7 @@ class UsersClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -3232,19 +3235,19 @@ class UsersClient { // coverage:ignore-end final $userId = jsonSerializers.serialize(userId, specifiedType: const FullType(String)); - parameters['userId'] = $userId; + _parameters['userId'] = $userId; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/users/{userId}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/users/{userId}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(UsersDeleteUserResponseApplicationJson), @@ -3293,11 +3296,11 @@ class UsersClient { /// * [getCurrentUser] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse getCurrentUserRaw({bool? oCSAPIRequest}) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3308,7 +3311,7 @@ class UsersClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -3318,15 +3321,15 @@ class UsersClient { // coverage:ignore-end var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/user').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/user').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(UsersGetCurrentUserResponseApplicationJson), @@ -3375,11 +3378,11 @@ class UsersClient { /// * [getEditableFields] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse getEditableFieldsRaw({bool? oCSAPIRequest}) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3390,7 +3393,7 @@ class UsersClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -3400,15 +3403,15 @@ class UsersClient { // coverage:ignore-end var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/user/fields').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/user/fields').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(UsersGetEditableFieldsResponseApplicationJson), @@ -3464,11 +3467,11 @@ class UsersClient { required String userId, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3479,7 +3482,7 @@ class UsersClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -3488,19 +3491,19 @@ class UsersClient { // coverage:ignore-end final $userId = jsonSerializers.serialize(userId, specifiedType: const FullType(String)); - parameters['userId'] = $userId; + _parameters['userId'] = $userId; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/user/fields/{userId}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/user/fields/{userId}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(UsersGetEditableFieldsForUserResponseApplicationJson), @@ -3571,11 +3574,11 @@ class UsersClient { required String collectionName, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3586,7 +3589,7 @@ class UsersClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -3595,13 +3598,13 @@ class UsersClient { // coverage:ignore-end final $key = jsonSerializers.serialize(key, specifiedType: const FullType(String)); - parameters['key'] = $key; + _parameters['key'] = $key; final $value = jsonSerializers.serialize(value, specifiedType: const FullType(String)); - parameters['value'] = $value; + _parameters['value'] = $value; final $userId = jsonSerializers.serialize(userId, specifiedType: const FullType(String)); - parameters['userId'] = $userId; + _parameters['userId'] = $userId; final $collectionName = jsonSerializers.serialize(collectionName, specifiedType: const FullType(String)); dynamite_utils.checkPattern( @@ -3609,20 +3612,20 @@ class UsersClient { RegExp(r'^(?!enable$|disable$)[a-zA-Z0-9_]*$'), 'collectionName', ); - parameters['collectionName'] = $collectionName; + _parameters['collectionName'] = $collectionName; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = - Uri.parse(UriTemplate('/ocs/v2.php/cloud/users/{userId}/{collectionName}{?key*,value*}').expand(parameters)); + final _uri = + Uri.parse(UriTemplate('/ocs/v2.php/cloud/users/{userId}/{collectionName}{?key*,value*}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(UsersEditUserMultiValueResponseApplicationJson), @@ -3678,11 +3681,11 @@ class UsersClient { required String userId, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3693,7 +3696,7 @@ class UsersClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -3702,19 +3705,19 @@ class UsersClient { // coverage:ignore-end final $userId = jsonSerializers.serialize(userId, specifiedType: const FullType(String)); - parameters['userId'] = $userId; + _parameters['userId'] = $userId; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/users/{userId}/wipe').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/users/{userId}/wipe').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(UsersWipeUserDevicesResponseApplicationJson), @@ -3770,11 +3773,11 @@ class UsersClient { required String userId, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3785,7 +3788,7 @@ class UsersClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -3794,19 +3797,19 @@ class UsersClient { // coverage:ignore-end final $userId = jsonSerializers.serialize(userId, specifiedType: const FullType(String)); - parameters['userId'] = $userId; + _parameters['userId'] = $userId; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/users/{userId}/enable').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/users/{userId}/enable').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(UsersEnableUserResponseApplicationJson), @@ -3862,11 +3865,11 @@ class UsersClient { required String userId, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3877,7 +3880,7 @@ class UsersClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -3886,19 +3889,19 @@ class UsersClient { // coverage:ignore-end final $userId = jsonSerializers.serialize(userId, specifiedType: const FullType(String)); - parameters['userId'] = $userId; + _parameters['userId'] = $userId; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/users/{userId}/disable').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/users/{userId}/disable').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(UsersDisableUserResponseApplicationJson), @@ -3954,11 +3957,11 @@ class UsersClient { required String userId, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3969,7 +3972,7 @@ class UsersClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -3978,19 +3981,19 @@ class UsersClient { // coverage:ignore-end final $userId = jsonSerializers.serialize(userId, specifiedType: const FullType(String)); - parameters['userId'] = $userId; + _parameters['userId'] = $userId; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/users/{userId}/groups').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/users/{userId}/groups').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(UsersGetUsersGroupsResponseApplicationJson), @@ -4051,11 +4054,11 @@ class UsersClient { String? groupid, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -4066,7 +4069,7 @@ class UsersClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -4075,23 +4078,23 @@ class UsersClient { // coverage:ignore-end final $userId = jsonSerializers.serialize(userId, specifiedType: const FullType(String)); - parameters['userId'] = $userId; + _parameters['userId'] = $userId; var $groupid = jsonSerializers.serialize(groupid, specifiedType: const FullType(String)); $groupid ??= ''; - parameters['groupid'] = $groupid; + _parameters['groupid'] = $groupid; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/users/{userId}/groups{?groupid*}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/users/{userId}/groups{?groupid*}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(UsersAddToGroupResponseApplicationJson), @@ -4152,11 +4155,11 @@ class UsersClient { required String userId, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -4167,7 +4170,7 @@ class UsersClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -4176,22 +4179,22 @@ class UsersClient { // coverage:ignore-end final $groupid = jsonSerializers.serialize(groupid, specifiedType: const FullType(String)); - parameters['groupid'] = $groupid; + _parameters['groupid'] = $groupid; final $userId = jsonSerializers.serialize(userId, specifiedType: const FullType(String)); - parameters['userId'] = $userId; + _parameters['userId'] = $userId; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/users/{userId}/groups{?groupid*}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/users/{userId}/groups{?groupid*}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(UsersRemoveFromGroupResponseApplicationJson), @@ -4251,11 +4254,11 @@ class UsersClient { required String userId, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -4266,7 +4269,7 @@ class UsersClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -4275,19 +4278,19 @@ class UsersClient { // coverage:ignore-end final $userId = jsonSerializers.serialize(userId, specifiedType: const FullType(String)); - parameters['userId'] = $userId; + _parameters['userId'] = $userId; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/users/{userId}/subadmins').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/users/{userId}/subadmins').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(UsersGetUserSubAdminGroupsResponseApplicationJson), @@ -4352,11 +4355,11 @@ class UsersClient { required String userId, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -4367,7 +4370,7 @@ class UsersClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -4376,22 +4379,22 @@ class UsersClient { // coverage:ignore-end final $groupid = jsonSerializers.serialize(groupid, specifiedType: const FullType(String)); - parameters['groupid'] = $groupid; + _parameters['groupid'] = $groupid; final $userId = jsonSerializers.serialize(userId, specifiedType: const FullType(String)); - parameters['userId'] = $userId; + _parameters['userId'] = $userId; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/users/{userId}/subadmins{?groupid*}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/users/{userId}/subadmins{?groupid*}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(UsersAddSubAdminResponseApplicationJson), @@ -4456,11 +4459,11 @@ class UsersClient { required String userId, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -4471,7 +4474,7 @@ class UsersClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -4480,22 +4483,22 @@ class UsersClient { // coverage:ignore-end final $groupid = jsonSerializers.serialize(groupid, specifiedType: const FullType(String)); - parameters['groupid'] = $groupid; + _parameters['groupid'] = $groupid; final $userId = jsonSerializers.serialize(userId, specifiedType: const FullType(String)); - parameters['userId'] = $userId; + _parameters['userId'] = $userId; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/users/{userId}/subadmins{?groupid*}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/users/{userId}/subadmins{?groupid*}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(UsersRemoveSubAdminResponseApplicationJson), @@ -4551,11 +4554,11 @@ class UsersClient { required String userId, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -4566,7 +4569,7 @@ class UsersClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -4575,19 +4578,19 @@ class UsersClient { // coverage:ignore-end final $userId = jsonSerializers.serialize(userId, specifiedType: const FullType(String)); - parameters['userId'] = $userId; + _parameters['userId'] = $userId; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/users/{userId}/welcome').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/cloud/users/{userId}/welcome').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, 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 969eed469d3..b98fb56b506 100644 --- a/packages/nextcloud/lib/src/api/settings.openapi.dart +++ b/packages/nextcloud/lib/src/api/settings.openapi.dart @@ -3,6 +3,7 @@ // ignore_for_file: public_member_api_docs // 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'; @@ -78,11 +79,11 @@ class LogSettingsClient { /// * [download] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse downloadRaw() { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/octet-stream', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -93,7 +94,7 @@ class LogSettingsClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -101,13 +102,13 @@ class LogSettingsClient { } // coverage:ignore-end - final uri = Uri.parse(UriTemplate('/index.php/settings/admin/log/download').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/index.php/settings/admin/log/download').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, 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 d83926f4162..a2ca886c5d6 100644 --- a/packages/nextcloud/lib/src/api/sharebymail.openapi.dart +++ b/packages/nextcloud/lib/src/api/sharebymail.openapi.dart @@ -3,6 +3,7 @@ // ignore_for_file: public_member_api_docs // ignore_for_file: unreachable_switch_case // ignore_for_file: camel_case_extensions +// ignore_for_file: no_leading_underscores_for_local_identifiers import 'package:built_collection/built_collection.dart'; import 'package:built_value/built_value.dart'; diff --git a/packages/nextcloud/lib/src/api/spreed.openapi.dart b/packages/nextcloud/lib/src/api/spreed.openapi.dart index 4d8703c4c59..47038f38ffd 100644 --- a/packages/nextcloud/lib/src/api/spreed.openapi.dart +++ b/packages/nextcloud/lib/src/api/spreed.openapi.dart @@ -3,6 +3,7 @@ // ignore_for_file: public_member_api_docs // 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'; @@ -143,11 +144,11 @@ class AvatarClient { AvatarGetAvatarApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': '*/*', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -158,7 +159,7 @@ class AvatarClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -166,29 +167,29 @@ class AvatarClient { // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $darkTheme = jsonSerializers.serialize(darkTheme, specifiedType: const FullType(int)); $darkTheme ??= 0; - parameters['darkTheme'] = $darkTheme; + _parameters['darkTheme'] = $darkTheme; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(AvatarGetAvatarApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/avatar{?darkTheme*}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/avatar{?darkTheme*}').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(Uint8List), @@ -251,11 +252,11 @@ class AvatarClient { AvatarUploadAvatarApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -266,7 +267,7 @@ class AvatarClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -274,25 +275,25 @@ class AvatarClient { // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(AvatarUploadAvatarApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = - Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/avatar').expand(parameters)); + final _uri = + Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/avatar').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(AvatarUploadAvatarResponseApplicationJson), @@ -353,11 +354,11 @@ class AvatarClient { AvatarDeleteAvatarApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -368,7 +369,7 @@ class AvatarClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -376,25 +377,25 @@ class AvatarClient { // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(AvatarDeleteAvatarApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = - Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/avatar').expand(parameters)); + final _uri = + Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/avatar').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(AvatarDeleteAvatarResponseApplicationJson), @@ -467,11 +468,11 @@ class AvatarClient { AvatarEmojiAvatarApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -482,40 +483,40 @@ class AvatarClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } // coverage:ignore-end final $emoji = jsonSerializers.serialize(emoji, specifiedType: const FullType(String)); - parameters['emoji'] = $emoji; + _parameters['emoji'] = $emoji; final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; final $color = jsonSerializers.serialize(color, specifiedType: const FullType(String)); - parameters['color'] = $color; + _parameters['color'] = $color; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(AvatarEmojiAvatarApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/avatar/emoji{?emoji*,color*}') - .expand(parameters), + .expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(AvatarEmojiAvatarResponseApplicationJson), @@ -576,11 +577,11 @@ class AvatarClient { AvatarGetAvatarDarkApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': '*/*', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -591,7 +592,7 @@ class AvatarClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -599,25 +600,25 @@ class AvatarClient { // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(AvatarGetAvatarDarkApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = - Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/avatar/dark').expand(parameters)); + final _uri = + Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/avatar/dark').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(Uint8List), @@ -714,11 +715,11 @@ class BotClient { BotSendMessageApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -729,50 +730,50 @@ class BotClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } // coverage:ignore-end final $message = jsonSerializers.serialize(message, specifiedType: const FullType(String)); - parameters['message'] = $message; + _parameters['message'] = $message; final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $referenceId = jsonSerializers.serialize(referenceId, specifiedType: const FullType(String)); $referenceId ??= ''; - parameters['referenceId'] = $referenceId; + _parameters['referenceId'] = $referenceId; var $replyTo = jsonSerializers.serialize(replyTo, specifiedType: const FullType(int)); $replyTo ??= 0; - parameters['replyTo'] = $replyTo; + _parameters['replyTo'] = $replyTo; var $silent = jsonSerializers.serialize(silent, specifiedType: const FullType(int)); $silent ??= 0; - parameters['silent'] = $silent; + _parameters['silent'] = $silent; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(BotSendMessageApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate( '/ocs/v2.php/apps/spreed/api/{apiVersion}/bot/{token}/message{?message*,referenceId*,replyTo*,silent*}', - ).expand(parameters), + ).expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {201, 400, 401, 413}, ), bodyType: const FullType(BotSendMessageResponseApplicationJson), @@ -851,11 +852,11 @@ class BotClient { BotReactApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -866,40 +867,40 @@ class BotClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } // coverage:ignore-end final $reaction = jsonSerializers.serialize(reaction, specifiedType: const FullType(String)); - parameters['reaction'] = $reaction; + _parameters['reaction'] = $reaction; final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; final $messageId = jsonSerializers.serialize(messageId, specifiedType: const FullType(int)); - parameters['messageId'] = $messageId; + _parameters['messageId'] = $messageId; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(BotReactApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/bot/{token}/reaction/{messageId}{?reaction*}') - .expand(parameters), + .expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200, 201, 400, 401, 404}, ), bodyType: const FullType(BotReactResponseApplicationJson), @@ -976,11 +977,11 @@ class BotClient { BotDeleteReactionApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -991,40 +992,40 @@ class BotClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } // coverage:ignore-end final $reaction = jsonSerializers.serialize(reaction, specifiedType: const FullType(String)); - parameters['reaction'] = $reaction; + _parameters['reaction'] = $reaction; final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; final $messageId = jsonSerializers.serialize(messageId, specifiedType: const FullType(int)); - parameters['messageId'] = $messageId; + _parameters['messageId'] = $messageId; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(BotDeleteReactionApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/bot/{token}/reaction/{messageId}{?reaction*}') - .expand(parameters), + .expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, const {200, 400, 404, 401}, ), bodyType: const FullType(BotDeleteReactionResponseApplicationJson), @@ -1084,11 +1085,11 @@ class BotClient { BotAdminListBotsApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1099,7 +1100,7 @@ class BotClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1109,19 +1110,19 @@ class BotClient { // coverage:ignore-end var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(BotAdminListBotsApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/bot/admin').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/bot/admin').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(BotAdminListBotsResponseApplicationJson), @@ -1182,11 +1183,11 @@ class BotClient { BotListBotsApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1197,7 +1198,7 @@ class BotClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1207,23 +1208,23 @@ class BotClient { // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(BotListBotsApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/bot/{token}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/bot/{token}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(BotListBotsResponseApplicationJson), @@ -1293,11 +1294,11 @@ class BotClient { BotEnableBotApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1308,7 +1309,7 @@ class BotClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1318,27 +1319,27 @@ class BotClient { // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; final $botId = jsonSerializers.serialize(botId, specifiedType: const FullType(int)); - parameters['botId'] = $botId; + _parameters['botId'] = $botId; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(BotEnableBotApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = - Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/bot/{token}/{botId}').expand(parameters)); + final _uri = + Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/bot/{token}/{botId}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200, 201}, ), bodyType: const FullType(BotEnableBotResponseApplicationJson), @@ -1406,11 +1407,11 @@ class BotClient { BotDisableBotApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1421,7 +1422,7 @@ class BotClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1431,27 +1432,27 @@ class BotClient { // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; final $botId = jsonSerializers.serialize(botId, specifiedType: const FullType(int)); - parameters['botId'] = $botId; + _parameters['botId'] = $botId; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(BotDisableBotApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = - Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/bot/{token}/{botId}').expand(parameters)); + final _uri = + Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/bot/{token}/{botId}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(BotDisableBotResponseApplicationJson), @@ -1535,11 +1536,11 @@ class BreakoutRoomClient { BreakoutRoomConfigureBreakoutRoomsApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1550,7 +1551,7 @@ class BreakoutRoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1559,40 +1560,40 @@ class BreakoutRoomClient { // coverage:ignore-end final $mode = jsonSerializers.serialize(mode, specifiedType: const FullType(int)); - parameters['mode'] = $mode; + _parameters['mode'] = $mode; final $amount = jsonSerializers.serialize(amount, specifiedType: const FullType(int)); - parameters['amount'] = $amount; + _parameters['amount'] = $amount; final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $attendeeMap = jsonSerializers.serialize(attendeeMap, specifiedType: const FullType(String)); $attendeeMap ??= '[]'; - parameters['attendeeMap'] = $attendeeMap; + _parameters['attendeeMap'] = $attendeeMap; var $apiVersion = jsonSerializers.serialize( apiVersion, specifiedType: const FullType(BreakoutRoomConfigureBreakoutRoomsApiVersion), ); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/breakout-rooms/{token}{?mode*,amount*,attendeeMap*}') - .expand(parameters), + .expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(BreakoutRoomConfigureBreakoutRoomsResponseApplicationJson), @@ -1653,11 +1654,11 @@ class BreakoutRoomClient { BreakoutRoomRemoveBreakoutRoomsApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1668,7 +1669,7 @@ class BreakoutRoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1678,25 +1679,25 @@ class BreakoutRoomClient { // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(BreakoutRoomRemoveBreakoutRoomsApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = - Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/breakout-rooms/{token}').expand(parameters)); + final _uri = + Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/breakout-rooms/{token}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(BreakoutRoomRemoveBreakoutRoomsResponseApplicationJson), @@ -1766,11 +1767,11 @@ class BreakoutRoomClient { BreakoutRoomBroadcastChatMessageApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1781,7 +1782,7 @@ class BreakoutRoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1790,33 +1791,33 @@ class BreakoutRoomClient { // coverage:ignore-end final $message = jsonSerializers.serialize(message, specifiedType: const FullType(String)); - parameters['message'] = $message; + _parameters['message'] = $message; final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize( apiVersion, specifiedType: const FullType(BreakoutRoomBroadcastChatMessageApiVersion), ); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/breakout-rooms/{token}/broadcast{?message*}') - .expand(parameters), + .expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {201}, ), bodyType: const FullType(BreakoutRoomBroadcastChatMessageResponseApplicationJson), @@ -1884,11 +1885,11 @@ class BreakoutRoomClient { BreakoutRoomApplyAttendeeMapApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1899,7 +1900,7 @@ class BreakoutRoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1908,31 +1909,31 @@ class BreakoutRoomClient { // coverage:ignore-end final $attendeeMap = jsonSerializers.serialize(attendeeMap, specifiedType: const FullType(String)); - parameters['attendeeMap'] = $attendeeMap; + _parameters['attendeeMap'] = $attendeeMap; final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(BreakoutRoomApplyAttendeeMapApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/breakout-rooms/{token}/attendees{?attendeeMap*}') - .expand(parameters), + .expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(BreakoutRoomApplyAttendeeMapResponseApplicationJson), @@ -1995,11 +1996,11 @@ class BreakoutRoomClient { BreakoutRoomRequestAssistanceApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2010,7 +2011,7 @@ class BreakoutRoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -2020,27 +2021,27 @@ class BreakoutRoomClient { // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(BreakoutRoomRequestAssistanceApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/breakout-rooms/{token}/request-assistance') - .expand(parameters), + .expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(BreakoutRoomRequestAssistanceResponseApplicationJson), @@ -2104,11 +2105,11 @@ class BreakoutRoomClient { BreakoutRoomResetRequestForAssistanceApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2119,7 +2120,7 @@ class BreakoutRoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -2129,29 +2130,29 @@ class BreakoutRoomClient { // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize( apiVersion, specifiedType: const FullType(BreakoutRoomResetRequestForAssistanceApiVersion), ); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/breakout-rooms/{token}/request-assistance') - .expand(parameters), + .expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(BreakoutRoomResetRequestForAssistanceResponseApplicationJson), @@ -2214,11 +2215,11 @@ class BreakoutRoomClient { BreakoutRoomStartBreakoutRoomsApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2229,7 +2230,7 @@ class BreakoutRoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -2239,26 +2240,26 @@ class BreakoutRoomClient { // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(BreakoutRoomStartBreakoutRoomsApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/breakout-rooms/{token}/rooms').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/breakout-rooms/{token}/rooms').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(BreakoutRoomStartBreakoutRoomsResponseApplicationJson), @@ -2321,11 +2322,11 @@ class BreakoutRoomClient { BreakoutRoomStopBreakoutRoomsApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2336,7 +2337,7 @@ class BreakoutRoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -2346,26 +2347,26 @@ class BreakoutRoomClient { // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(BreakoutRoomStopBreakoutRoomsApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/breakout-rooms/{token}/rooms').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/breakout-rooms/{token}/rooms').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(BreakoutRoomStopBreakoutRoomsResponseApplicationJson), @@ -2433,11 +2434,11 @@ class BreakoutRoomClient { BreakoutRoomSwitchBreakoutRoomApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2448,7 +2449,7 @@ class BreakoutRoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -2457,31 +2458,31 @@ class BreakoutRoomClient { // coverage:ignore-end final $target = jsonSerializers.serialize(target, specifiedType: const FullType(String)); - parameters['target'] = $target; + _parameters['target'] = $target; final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(BreakoutRoomSwitchBreakoutRoomApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/breakout-rooms/{token}/switch{?target*}') - .expand(parameters), + .expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(BreakoutRoomSwitchBreakoutRoomResponseApplicationJson), @@ -2548,11 +2549,11 @@ class CallClient { CallGetPeersForCallApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2563,7 +2564,7 @@ class CallClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -2571,24 +2572,24 @@ class CallClient { // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(CallGetPeersForCallApiVersion)); $apiVersion ??= 'v4'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/call/{token}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/call/{token}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(CallGetPeersForCallResponseApplicationJson), @@ -2658,11 +2659,11 @@ class CallClient { CallUpdateCallFlagsApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2673,36 +2674,36 @@ class CallClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } // coverage:ignore-end final $flags = jsonSerializers.serialize(flags, specifiedType: const FullType(int)); - parameters['flags'] = $flags; + _parameters['flags'] = $flags; final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(CallUpdateCallFlagsApiVersion)); $apiVersion ??= 'v4'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = - Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/call/{token}{?flags*}').expand(parameters)); + final _uri = + Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/call/{token}{?flags*}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - uri, - headers, - body, + _uri, + _headers, + _body, const {200, 400, 404}, ), bodyType: const FullType(CallUpdateCallFlagsResponseApplicationJson), @@ -2787,11 +2788,11 @@ class CallClient { CallJoinCallApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2802,7 +2803,7 @@ class CallClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -2810,41 +2811,41 @@ class CallClient { // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; final $flags = jsonSerializers.serialize(flags, specifiedType: const FullType(int)); - parameters['flags'] = $flags; + _parameters['flags'] = $flags; final $forcePermissions = jsonSerializers.serialize(forcePermissions, specifiedType: const FullType(int)); - parameters['forcePermissions'] = $forcePermissions; + _parameters['forcePermissions'] = $forcePermissions; var $silent = jsonSerializers.serialize(silent, specifiedType: const FullType(int)); $silent ??= 0; - parameters['silent'] = $silent; + _parameters['silent'] = $silent; var $recordingConsent = jsonSerializers.serialize(recordingConsent, specifiedType: const FullType(int)); $recordingConsent ??= 0; - parameters['recordingConsent'] = $recordingConsent; + _parameters['recordingConsent'] = $recordingConsent; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(CallJoinCallApiVersion)); $apiVersion ??= 'v4'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate( '/ocs/v2.php/apps/spreed/api/{apiVersion}/call/{token}{?flags*,forcePermissions*,silent*,recordingConsent*}', - ).expand(parameters), + ).expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200, 404}, ), bodyType: const FullType(CallJoinCallResponseApplicationJson), @@ -2912,11 +2913,11 @@ class CallClient { CallLeaveCallApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -2927,7 +2928,7 @@ class CallClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -2935,28 +2936,28 @@ class CallClient { // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $all = jsonSerializers.serialize(all, specifiedType: const FullType(int)); $all ??= 0; - parameters['all'] = $all; + _parameters['all'] = $all; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(CallLeaveCallApiVersion)); $apiVersion ??= 'v4'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = - Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/call/{token}{?all*}').expand(parameters)); + final _uri = + Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/call/{token}{?all*}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, const {200, 404}, ), bodyType: const FullType(CallLeaveCallResponseApplicationJson), @@ -3024,11 +3025,11 @@ class CallClient { CallRingAttendeeApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3039,7 +3040,7 @@ class CallClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -3047,28 +3048,28 @@ class CallClient { // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; final $attendeeId = jsonSerializers.serialize(attendeeId, specifiedType: const FullType(int)); - parameters['attendeeId'] = $attendeeId; + _parameters['attendeeId'] = $attendeeId; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(CallRingAttendeeApiVersion)); $apiVersion ??= 'v4'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/call/{token}/ring/{attendeeId}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/call/{token}/ring/{attendeeId}').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200, 400}, ), bodyType: const FullType(CallRingAttendeeResponseApplicationJson), @@ -3140,11 +3141,11 @@ class CallClient { CallSipDialOutApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3155,7 +3156,7 @@ class CallClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -3163,28 +3164,28 @@ class CallClient { // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; final $attendeeId = jsonSerializers.serialize(attendeeId, specifiedType: const FullType(int)); - parameters['attendeeId'] = $attendeeId; + _parameters['attendeeId'] = $attendeeId; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(CallSipDialOutApiVersion)); $apiVersion ??= 'v4'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/call/{token}/dialout/{attendeeId}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/call/{token}/dialout/{attendeeId}').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {201, 400, 404, 501}, ), bodyType: const FullType(CallSipDialOutResponseApplicationJson), @@ -3257,11 +3258,11 @@ class CertificateClient { CertificateGetCertificateExpirationApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3272,7 +3273,7 @@ class CertificateClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -3281,28 +3282,28 @@ class CertificateClient { // coverage:ignore-end final $host = jsonSerializers.serialize(host, specifiedType: const FullType(String)); - parameters['host'] = $host; + _parameters['host'] = $host; var $apiVersion = jsonSerializers.serialize( apiVersion, specifiedType: const FullType(CertificateGetCertificateExpirationApiVersion), ); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/certificate/expiration{?host*}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/certificate/expiration{?host*}').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(CertificateGetCertificateExpirationResponseApplicationJson), @@ -3424,11 +3425,11 @@ class ChatClient { ChatReceiveMessagesApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3439,72 +3440,72 @@ class ChatClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } // coverage:ignore-end final $lookIntoFuture = jsonSerializers.serialize(lookIntoFuture, specifiedType: const FullType(int)); - parameters['lookIntoFuture'] = $lookIntoFuture; + _parameters['lookIntoFuture'] = $lookIntoFuture; final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $limit = jsonSerializers.serialize(limit, specifiedType: const FullType(int)); $limit ??= 100; - parameters['limit'] = $limit; + _parameters['limit'] = $limit; var $lastKnownMessageId = jsonSerializers.serialize(lastKnownMessageId, specifiedType: const FullType(int)); $lastKnownMessageId ??= 0; - parameters['lastKnownMessageId'] = $lastKnownMessageId; + _parameters['lastKnownMessageId'] = $lastKnownMessageId; var $lastCommonReadId = jsonSerializers.serialize(lastCommonReadId, specifiedType: const FullType(int)); $lastCommonReadId ??= 0; - parameters['lastCommonReadId'] = $lastCommonReadId; + _parameters['lastCommonReadId'] = $lastCommonReadId; var $timeout = jsonSerializers.serialize(timeout, specifiedType: const FullType(int)); $timeout ??= 30; - parameters['timeout'] = $timeout; + _parameters['timeout'] = $timeout; var $setReadMarker = jsonSerializers.serialize(setReadMarker, specifiedType: const FullType(int)); $setReadMarker ??= 1; - parameters['setReadMarker'] = $setReadMarker; + _parameters['setReadMarker'] = $setReadMarker; var $includeLastKnown = jsonSerializers.serialize(includeLastKnown, specifiedType: const FullType(int)); $includeLastKnown ??= 0; - parameters['includeLastKnown'] = $includeLastKnown; + _parameters['includeLastKnown'] = $includeLastKnown; var $noStatusUpdate = jsonSerializers.serialize(noStatusUpdate, specifiedType: const FullType(int)); $noStatusUpdate ??= 0; - parameters['noStatusUpdate'] = $noStatusUpdate; + _parameters['noStatusUpdate'] = $noStatusUpdate; var $markNotificationsAsRead = jsonSerializers.serialize(markNotificationsAsRead, specifiedType: const FullType(int)); $markNotificationsAsRead ??= 1; - parameters['markNotificationsAsRead'] = $markNotificationsAsRead; + _parameters['markNotificationsAsRead'] = $markNotificationsAsRead; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(ChatReceiveMessagesApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate( '/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}{?lookIntoFuture*,limit*,lastKnownMessageId*,lastCommonReadId*,timeout*,setReadMarker*,includeLastKnown*,noStatusUpdate*,markNotificationsAsRead*}', - ).expand(parameters), + ).expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200, 304}, ), bodyType: const FullType(ChatReceiveMessagesResponseApplicationJson), @@ -3600,11 +3601,11 @@ class ChatClient { ChatSendMessageApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3615,54 +3616,54 @@ class ChatClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } // coverage:ignore-end final $message = jsonSerializers.serialize(message, specifiedType: const FullType(String)); - parameters['message'] = $message; + _parameters['message'] = $message; final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $actorDisplayName = jsonSerializers.serialize(actorDisplayName, specifiedType: const FullType(String)); $actorDisplayName ??= ''; - parameters['actorDisplayName'] = $actorDisplayName; + _parameters['actorDisplayName'] = $actorDisplayName; var $referenceId = jsonSerializers.serialize(referenceId, specifiedType: const FullType(String)); $referenceId ??= ''; - parameters['referenceId'] = $referenceId; + _parameters['referenceId'] = $referenceId; var $replyTo = jsonSerializers.serialize(replyTo, specifiedType: const FullType(int)); $replyTo ??= 0; - parameters['replyTo'] = $replyTo; + _parameters['replyTo'] = $replyTo; var $silent = jsonSerializers.serialize(silent, specifiedType: const FullType(int)); $silent ??= 0; - parameters['silent'] = $silent; + _parameters['silent'] = $silent; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(ChatSendMessageApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate( '/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}{?message*,actorDisplayName*,referenceId*,replyTo*,silent*}', - ).expand(parameters), + ).expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {201}, ), bodyType: const FullType(ChatSendMessageResponseApplicationJson), @@ -3727,11 +3728,11 @@ class ChatClient { ChatClearHistoryApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3742,7 +3743,7 @@ class ChatClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -3752,23 +3753,23 @@ class ChatClient { // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(ChatClearHistoryApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, const {200, 202}, ), bodyType: const FullType(ChatClearHistoryResponseApplicationJson), @@ -3844,11 +3845,11 @@ class ChatClient { ChatDeleteMessageApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3859,7 +3860,7 @@ class ChatClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -3869,27 +3870,27 @@ class ChatClient { // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; final $messageId = jsonSerializers.serialize(messageId, specifiedType: const FullType(int)); - parameters['messageId'] = $messageId; + _parameters['messageId'] = $messageId; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(ChatDeleteMessageApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = - Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}/{messageId}').expand(parameters)); + final _uri = + Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}/{messageId}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, const {200, 202}, ), bodyType: const FullType(ChatDeleteMessageResponseApplicationJson), @@ -3964,11 +3965,11 @@ class ChatClient { ChatGetMessageContextApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -3979,7 +3980,7 @@ class ChatClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -3987,34 +3988,34 @@ class ChatClient { // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; final $messageId = jsonSerializers.serialize(messageId, specifiedType: const FullType(int)); - parameters['messageId'] = $messageId; + _parameters['messageId'] = $messageId; var $limit = jsonSerializers.serialize(limit, specifiedType: const FullType(int)); $limit ??= 50; - parameters['limit'] = $limit; + _parameters['limit'] = $limit; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(ChatGetMessageContextApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}/{messageId}/context{?limit*}') - .expand(parameters), + .expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200, 304}, ), bodyType: const FullType(ChatGetMessageContextResponseApplicationJson), @@ -4082,11 +4083,11 @@ class ChatClient { ChatGetReminderApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -4097,7 +4098,7 @@ class ChatClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -4107,28 +4108,28 @@ class ChatClient { // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; final $messageId = jsonSerializers.serialize(messageId, specifiedType: const FullType(int)); - parameters['messageId'] = $messageId; + _parameters['messageId'] = $messageId; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(ChatGetReminderApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}/{messageId}/reminder').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}/{messageId}/reminder').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(ChatGetReminderResponseApplicationJson), @@ -4201,11 +4202,11 @@ class ChatClient { ChatSetReminderApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -4216,7 +4217,7 @@ class ChatClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -4225,33 +4226,33 @@ class ChatClient { // coverage:ignore-end final $timestamp = jsonSerializers.serialize(timestamp, specifiedType: const FullType(int)); - parameters['timestamp'] = $timestamp; + _parameters['timestamp'] = $timestamp; final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; final $messageId = jsonSerializers.serialize(messageId, specifiedType: const FullType(int)); - parameters['messageId'] = $messageId; + _parameters['messageId'] = $messageId; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(ChatSetReminderApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}/{messageId}/reminder{?timestamp*}') - .expand(parameters), + .expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {201}, ), bodyType: const FullType(ChatSetReminderResponseApplicationJson), @@ -4319,11 +4320,11 @@ class ChatClient { ChatDeleteReminderApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -4334,7 +4335,7 @@ class ChatClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -4344,29 +4345,29 @@ class ChatClient { // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; final $messageId = jsonSerializers.serialize(messageId, specifiedType: const FullType(int)); - parameters['messageId'] = $messageId; + _parameters['messageId'] = $messageId; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(ChatDeleteReminderApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}/{messageId}/reminder').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}/{messageId}/reminder').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, const {200, 404}, ), bodyType: const FullType(ChatDeleteReminderResponseApplicationJson), @@ -4432,11 +4433,11 @@ class ChatClient { ChatSetReadMarkerApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -4447,7 +4448,7 @@ class ChatClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -4456,29 +4457,29 @@ class ChatClient { // coverage:ignore-end final $lastReadMessage = jsonSerializers.serialize(lastReadMessage, specifiedType: const FullType(int)); - parameters['lastReadMessage'] = $lastReadMessage; + _parameters['lastReadMessage'] = $lastReadMessage; final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(ChatSetReadMarkerApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}/read{?lastReadMessage*}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}/read{?lastReadMessage*}').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(ChatSetReadMarkerResponseApplicationJson), @@ -4539,11 +4540,11 @@ class ChatClient { ChatMarkUnreadApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -4554,7 +4555,7 @@ class ChatClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -4564,23 +4565,24 @@ class ChatClient { // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(ChatMarkUnreadApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}/read').expand(parameters)); + final _uri = + Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}/read').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(ChatMarkUnreadResponseApplicationJson), @@ -4656,11 +4658,11 @@ class ChatClient { ChatMentionsApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -4671,45 +4673,45 @@ class ChatClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } // coverage:ignore-end final $search = jsonSerializers.serialize(search, specifiedType: const FullType(String)); - parameters['search'] = $search; + _parameters['search'] = $search; final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $limit = jsonSerializers.serialize(limit, specifiedType: const FullType(int)); $limit ??= 20; - parameters['limit'] = $limit; + _parameters['limit'] = $limit; var $includeStatus = jsonSerializers.serialize(includeStatus, specifiedType: const FullType(int)); $includeStatus ??= 0; - parameters['includeStatus'] = $includeStatus; + _parameters['includeStatus'] = $includeStatus; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(ChatMentionsApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}/mentions{?search*,limit*,includeStatus*}') - .expand(parameters), + .expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(ChatMentionsResponseApplicationJson), @@ -4787,11 +4789,11 @@ class ChatClient { ChatGetObjectsSharedInRoomApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -4802,48 +4804,48 @@ class ChatClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } // coverage:ignore-end final $objectType = jsonSerializers.serialize(objectType, specifiedType: const FullType(String)); - parameters['objectType'] = $objectType; + _parameters['objectType'] = $objectType; final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $lastKnownMessageId = jsonSerializers.serialize(lastKnownMessageId, specifiedType: const FullType(int)); $lastKnownMessageId ??= 0; - parameters['lastKnownMessageId'] = $lastKnownMessageId; + _parameters['lastKnownMessageId'] = $lastKnownMessageId; var $limit = jsonSerializers.serialize(limit, specifiedType: const FullType(int)); $limit ??= 100; - parameters['limit'] = $limit; + _parameters['limit'] = $limit; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(ChatGetObjectsSharedInRoomApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate( '/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}/share{?objectType*,lastKnownMessageId*,limit*}', - ).expand(parameters), + ).expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(ChatGetObjectsSharedInRoomResponseApplicationJson), @@ -4941,11 +4943,11 @@ class ChatClient { ChatShareObjectToChatApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -4956,54 +4958,54 @@ class ChatClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } // coverage:ignore-end final $objectType = jsonSerializers.serialize(objectType, specifiedType: const FullType(String)); - parameters['objectType'] = $objectType; + _parameters['objectType'] = $objectType; final $objectId = jsonSerializers.serialize(objectId, specifiedType: const FullType(String)); - parameters['objectId'] = $objectId; + _parameters['objectId'] = $objectId; final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $metaData = jsonSerializers.serialize(metaData, specifiedType: const FullType(String)); $metaData ??= ''; - parameters['metaData'] = $metaData; + _parameters['metaData'] = $metaData; var $actorDisplayName = jsonSerializers.serialize(actorDisplayName, specifiedType: const FullType(String)); $actorDisplayName ??= ''; - parameters['actorDisplayName'] = $actorDisplayName; + _parameters['actorDisplayName'] = $actorDisplayName; var $referenceId = jsonSerializers.serialize(referenceId, specifiedType: const FullType(String)); $referenceId ??= ''; - parameters['referenceId'] = $referenceId; + _parameters['referenceId'] = $referenceId; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(ChatShareObjectToChatApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate( '/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}/share{?objectType*,objectId*,metaData*,actorDisplayName*,referenceId*}', - ).expand(parameters), + ).expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {201}, ), bodyType: const FullType(ChatShareObjectToChatResponseApplicationJson), @@ -5071,11 +5073,11 @@ class ChatClient { ChatGetObjectsSharedInRoomOverviewApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -5086,7 +5088,7 @@ class ChatClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -5094,32 +5096,32 @@ class ChatClient { // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $limit = jsonSerializers.serialize(limit, specifiedType: const FullType(int)); $limit ??= 7; - parameters['limit'] = $limit; + _parameters['limit'] = $limit; var $apiVersion = jsonSerializers.serialize( apiVersion, specifiedType: const FullType(ChatGetObjectsSharedInRoomOverviewApiVersion), ); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}/share/overview{?limit*}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}/share/overview{?limit*}').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(ChatGetObjectsSharedInRoomOverviewResponseApplicationJson), @@ -5188,11 +5190,11 @@ class FederationClient { FederationAcceptShareApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -5203,7 +5205,7 @@ class FederationClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -5212,26 +5214,26 @@ class FederationClient { // coverage:ignore-end final $id = jsonSerializers.serialize(id, specifiedType: const FullType(int)); - parameters['id'] = $id; + _parameters['id'] = $id; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(FederationAcceptShareApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/federation/invitation/{id}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/federation/invitation/{id}').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(FederationAcceptShareResponseApplicationJson), @@ -5294,11 +5296,11 @@ class FederationClient { FederationRejectShareApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -5309,7 +5311,7 @@ class FederationClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -5318,26 +5320,26 @@ class FederationClient { // coverage:ignore-end final $id = jsonSerializers.serialize(id, specifiedType: const FullType(int)); - parameters['id'] = $id; + _parameters['id'] = $id; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(FederationRejectShareApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/federation/invitation/{id}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/federation/invitation/{id}').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(FederationRejectShareResponseApplicationJson), @@ -5393,11 +5395,11 @@ class FederationClient { FederationGetSharesApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -5408,7 +5410,7 @@ class FederationClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -5419,20 +5421,20 @@ class FederationClient { var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(FederationGetSharesApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = - Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/federation/invitation').expand(parameters)); + final _uri = + Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/federation/invitation').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(FederationGetSharesResponseApplicationJson), @@ -5511,11 +5513,11 @@ class FilesIntegrationClient { FilesIntegrationGetRoomByFileIdApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -5526,7 +5528,7 @@ class FilesIntegrationClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -5536,24 +5538,24 @@ class FilesIntegrationClient { // coverage:ignore-end final $fileId = jsonSerializers.serialize(fileId, specifiedType: const FullType(String)); dynamite_utils.checkPattern($fileId as String?, RegExp(r'^.+$'), 'fileId'); - parameters['fileId'] = $fileId; + _parameters['fileId'] = $fileId; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(FilesIntegrationGetRoomByFileIdApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/file/{fileId}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/file/{fileId}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(FilesIntegrationGetRoomByFileIdResponseApplicationJson), @@ -5628,11 +5630,11 @@ class FilesIntegrationClient { FilesIntegrationGetRoomByShareTokenApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -5643,7 +5645,7 @@ class FilesIntegrationClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -5651,27 +5653,27 @@ class FilesIntegrationClient { // coverage:ignore-end final $shareToken = jsonSerializers.serialize(shareToken, specifiedType: const FullType(String)); dynamite_utils.checkPattern($shareToken as String?, RegExp(r'^.+$'), 'shareToken'); - parameters['shareToken'] = $shareToken; + _parameters['shareToken'] = $shareToken; var $apiVersion = jsonSerializers.serialize( apiVersion, specifiedType: const FullType(FilesIntegrationGetRoomByShareTokenApiVersion), ); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = - Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/publicshare/{shareToken}').expand(parameters)); + final _uri = + Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/publicshare/{shareToken}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(FilesIntegrationGetRoomByShareTokenResponseApplicationJson), @@ -5747,11 +5749,11 @@ class GuestClient { GuestSetDisplayNameApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -5762,37 +5764,37 @@ class GuestClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } // coverage:ignore-end final $displayName = jsonSerializers.serialize(displayName, specifiedType: const FullType(String)); - parameters['displayName'] = $displayName; + _parameters['displayName'] = $displayName; final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(GuestSetDisplayNameApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/guest/{token}/name{?displayName*}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/guest/{token}/name{?displayName*}').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200, 403, 404}, ), bodyType: const FullType(GuestSetDisplayNameResponseApplicationJson), @@ -5887,11 +5889,11 @@ class HostedSignalingServerClient { HostedSignalingServerRequestTrialApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -5902,7 +5904,7 @@ class HostedSignalingServerClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -5911,42 +5913,42 @@ class HostedSignalingServerClient { // coverage:ignore-end final $url = jsonSerializers.serialize(url, specifiedType: const FullType(String)); - parameters['url'] = $url; + _parameters['url'] = $url; final $name = jsonSerializers.serialize(name, specifiedType: const FullType(String)); - parameters['name'] = $name; + _parameters['name'] = $name; final $email = jsonSerializers.serialize(email, specifiedType: const FullType(String)); - parameters['email'] = $email; + _parameters['email'] = $email; final $language = jsonSerializers.serialize(language, specifiedType: const FullType(String)); - parameters['language'] = $language; + _parameters['language'] = $language; final $country = jsonSerializers.serialize(country, specifiedType: const FullType(String)); - parameters['country'] = $country; + _parameters['country'] = $country; var $apiVersion = jsonSerializers.serialize( apiVersion, specifiedType: const FullType(HostedSignalingServerRequestTrialApiVersion), ); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate( '/ocs/v2.php/apps/spreed/api/{apiVersion}/hostedsignalingserver/requesttrial{?url*,name*,email*,language*,country*}', - ).expand(parameters), + ).expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(HostedSignalingServerRequestTrialResponseApplicationJson), @@ -6010,11 +6012,11 @@ class HostedSignalingServerClient { HostedSignalingServerDeleteAccountApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -6025,7 +6027,7 @@ class HostedSignalingServerClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -6038,21 +6040,21 @@ class HostedSignalingServerClient { specifiedType: const FullType(HostedSignalingServerDeleteAccountApiVersion), ); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/hostedsignalingserver/delete').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/hostedsignalingserver/delete').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, const {204}, ), bodyType: const FullType(HostedSignalingServerDeleteAccountResponseApplicationJson), @@ -6119,11 +6121,11 @@ class MatterbridgeClient { MatterbridgeGetBridgeOfRoomApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -6134,7 +6136,7 @@ class MatterbridgeClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -6144,24 +6146,24 @@ class MatterbridgeClient { // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(MatterbridgeGetBridgeOfRoomApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/bridge/{token}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/bridge/{token}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(MatterbridgeGetBridgeOfRoomResponseApplicationJson), @@ -6234,11 +6236,11 @@ class MatterbridgeClient { MatterbridgeEditBridgeOfRoomApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -6249,7 +6251,7 @@ class MatterbridgeClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -6258,11 +6260,11 @@ class MatterbridgeClient { // coverage:ignore-end final $enabled = jsonSerializers.serialize(enabled, specifiedType: const FullType(int)); - parameters['enabled'] = $enabled; + _parameters['enabled'] = $enabled; final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; final $parts = jsonSerializers.serialize( parts, @@ -6272,26 +6274,26 @@ class MatterbridgeClient { ]), ]), ); - parameters['parts'] = $parts; + _parameters['parts'] = $parts; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(MatterbridgeEditBridgeOfRoomApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/bridge/{token}{?enabled*,parts*}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/bridge/{token}{?enabled*,parts*}').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(MatterbridgeEditBridgeOfRoomResponseApplicationJson), @@ -6354,11 +6356,11 @@ class MatterbridgeClient { MatterbridgeDeleteBridgeOfRoomApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -6369,7 +6371,7 @@ class MatterbridgeClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -6379,24 +6381,24 @@ class MatterbridgeClient { // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(MatterbridgeDeleteBridgeOfRoomApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/bridge/{token}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/bridge/{token}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(MatterbridgeDeleteBridgeOfRoomResponseApplicationJson), @@ -6457,11 +6459,11 @@ class MatterbridgeClient { MatterbridgeGetBridgeProcessStateApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -6472,7 +6474,7 @@ class MatterbridgeClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -6482,27 +6484,27 @@ class MatterbridgeClient { // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize( apiVersion, specifiedType: const FullType(MatterbridgeGetBridgeProcessStateApiVersion), ); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = - Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/bridge/{token}/process').expand(parameters)); + final _uri = + Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/bridge/{token}/process').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(MatterbridgeGetBridgeProcessStateResponseApplicationJson), @@ -6570,11 +6572,11 @@ class MatterbridgeSettingsClient { MatterbridgeSettingsStopAllBridgesApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -6585,7 +6587,7 @@ class MatterbridgeSettingsClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -6598,19 +6600,19 @@ class MatterbridgeSettingsClient { specifiedType: const FullType(MatterbridgeSettingsStopAllBridgesApiVersion), ); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/bridge').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/bridge').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(MatterbridgeSettingsStopAllBridgesResponseApplicationJson), @@ -6674,11 +6676,11 @@ class MatterbridgeSettingsClient { MatterbridgeSettingsGetMatterbridgeVersionApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -6689,7 +6691,7 @@ class MatterbridgeSettingsClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -6702,19 +6704,19 @@ class MatterbridgeSettingsClient { specifiedType: const FullType(MatterbridgeSettingsGetMatterbridgeVersionApiVersion), ); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/bridge/version').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/bridge/version').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(MatterbridgeSettingsGetMatterbridgeVersionResponseApplicationJson), @@ -6803,11 +6805,11 @@ class PollClient { PollCreatePollApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -6818,47 +6820,47 @@ class PollClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } // coverage:ignore-end final $question = jsonSerializers.serialize(question, specifiedType: const FullType(String)); - parameters['question'] = $question; + _parameters['question'] = $question; final $options = jsonSerializers.serialize(options, specifiedType: const FullType(BuiltList, [FullType(String)])); - parameters['options%5B%5D'] = $options; + _parameters['options%5B%5D'] = $options; final $resultMode = jsonSerializers.serialize(resultMode, specifiedType: const FullType(int)); - parameters['resultMode'] = $resultMode; + _parameters['resultMode'] = $resultMode; final $maxVotes = jsonSerializers.serialize(maxVotes, specifiedType: const FullType(int)); - parameters['maxVotes'] = $maxVotes; + _parameters['maxVotes'] = $maxVotes; final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(PollCreatePollApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate( '/ocs/v2.php/apps/spreed/api/{apiVersion}/poll/{token}{?question*,options%5B%5D*,resultMode*,maxVotes*}', - ).expand(parameters), + ).expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {201}, ), bodyType: const FullType(PollCreatePollResponseApplicationJson), @@ -6926,11 +6928,11 @@ class PollClient { PollShowPollApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -6941,7 +6943,7 @@ class PollClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -6949,27 +6951,27 @@ class PollClient { // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; final $pollId = jsonSerializers.serialize(pollId, specifiedType: const FullType(int)); - parameters['pollId'] = $pollId; + _parameters['pollId'] = $pollId; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(PollShowPollApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = - Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/poll/{token}/{pollId}').expand(parameters)); + final _uri = + Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/poll/{token}/{pollId}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(PollShowPollResponseApplicationJson), @@ -7044,11 +7046,11 @@ class PollClient { PollVotePollApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -7059,7 +7061,7 @@ class PollClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -7067,33 +7069,33 @@ class PollClient { // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; final $pollId = jsonSerializers.serialize(pollId, specifiedType: const FullType(int)); - parameters['pollId'] = $pollId; + _parameters['pollId'] = $pollId; var $optionIds = jsonSerializers.serialize(optionIds, specifiedType: const FullType(BuiltList, [FullType(int)])); $optionIds ??= []; - parameters['optionIds%5B%5D'] = $optionIds; + _parameters['optionIds%5B%5D'] = $optionIds; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(PollVotePollApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/poll/{token}/{pollId}{?optionIds%5B%5D*}') - .expand(parameters), + .expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(PollVotePollResponseApplicationJson), @@ -7167,11 +7169,11 @@ class PollClient { PollClosePollApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -7182,7 +7184,7 @@ class PollClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -7190,27 +7192,27 @@ class PollClient { // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; final $pollId = jsonSerializers.serialize(pollId, specifiedType: const FullType(int)); - parameters['pollId'] = $pollId; + _parameters['pollId'] = $pollId; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(PollClosePollApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = - Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/poll/{token}/{pollId}').expand(parameters)); + final _uri = + Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/poll/{token}/{pollId}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(PollClosePollResponseApplicationJson), @@ -7285,11 +7287,11 @@ class PublicShareAuthClient { PublicShareAuthCreateRoomApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -7300,33 +7302,33 @@ class PublicShareAuthClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } // coverage:ignore-end final $shareToken = jsonSerializers.serialize(shareToken, specifiedType: const FullType(String)); - parameters['shareToken'] = $shareToken; + _parameters['shareToken'] = $shareToken; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(PublicShareAuthCreateRoomApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/publicshareauth{?shareToken*}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/publicshareauth{?shareToken*}').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {201}, ), bodyType: const FullType(PublicShareAuthCreateRoomResponseApplicationJson), @@ -7405,11 +7407,11 @@ class ReactionClient { ReactionGetReactionsApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -7420,7 +7422,7 @@ class ReactionClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -7428,33 +7430,33 @@ class ReactionClient { // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; final $messageId = jsonSerializers.serialize(messageId, specifiedType: const FullType(int)); - parameters['messageId'] = $messageId; + _parameters['messageId'] = $messageId; final $reaction = jsonSerializers.serialize(reaction, specifiedType: const FullType(String)); - parameters['reaction'] = $reaction; + _parameters['reaction'] = $reaction; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(ReactionGetReactionsApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/reaction/{token}/{messageId}{?reaction*}') - .expand(parameters), + .expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(ReactionGetReactionsResponseApplicationJson), @@ -7531,11 +7533,11 @@ class ReactionClient { ReactionReactApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -7546,40 +7548,40 @@ class ReactionClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } // coverage:ignore-end final $reaction = jsonSerializers.serialize(reaction, specifiedType: const FullType(String)); - parameters['reaction'] = $reaction; + _parameters['reaction'] = $reaction; final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; final $messageId = jsonSerializers.serialize(messageId, specifiedType: const FullType(int)); - parameters['messageId'] = $messageId; + _parameters['messageId'] = $messageId; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(ReactionReactApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/reaction/{token}/{messageId}{?reaction*}') - .expand(parameters), + .expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200, 201}, ), bodyType: const FullType(ReactionReactResponseApplicationJson), @@ -7654,11 +7656,11 @@ class ReactionClient { ReactionDeleteApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -7669,40 +7671,40 @@ class ReactionClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } // coverage:ignore-end final $reaction = jsonSerializers.serialize(reaction, specifiedType: const FullType(String)); - parameters['reaction'] = $reaction; + _parameters['reaction'] = $reaction; final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; final $messageId = jsonSerializers.serialize(messageId, specifiedType: const FullType(int)); - parameters['messageId'] = $messageId; + _parameters['messageId'] = $messageId; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(ReactionDeleteApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/reaction/{token}/{messageId}{?reaction*}') - .expand(parameters), + .expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(ReactionDeleteResponseApplicationJson), @@ -7777,11 +7779,11 @@ class RecordingClient { RecordingGetWelcomeMessageApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -7792,7 +7794,7 @@ class RecordingClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -7801,26 +7803,26 @@ class RecordingClient { // coverage:ignore-end final $serverId = jsonSerializers.serialize(serverId, specifiedType: const FullType(int)); - parameters['serverId'] = $serverId; + _parameters['serverId'] = $serverId; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(RecordingGetWelcomeMessageApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/recording/welcome/{serverId}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/recording/welcome/{serverId}').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(RecordingGetWelcomeMessageResponseApplicationJson), @@ -7888,11 +7890,11 @@ class RecordingClient { RecordingStartApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -7903,7 +7905,7 @@ class RecordingClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -7912,29 +7914,29 @@ class RecordingClient { // coverage:ignore-end final $status = jsonSerializers.serialize(status, specifiedType: const FullType(int)); - parameters['status'] = $status; + _parameters['status'] = $status; final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(RecordingStartApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/recording/{token}{?status*}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/recording/{token}{?status*}').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(RecordingStartResponseApplicationJson), @@ -7997,11 +7999,11 @@ class RecordingClient { RecordingStopApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -8012,7 +8014,7 @@ class RecordingClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -8022,23 +8024,24 @@ class RecordingClient { // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(RecordingStopApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/recording/{token}').expand(parameters)); + final _uri = + Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/recording/{token}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(RecordingStopResponseApplicationJson), @@ -8108,11 +8111,11 @@ class RecordingClient { RecordingStoreApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -8123,36 +8126,36 @@ class RecordingClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } // coverage:ignore-end final $owner = jsonSerializers.serialize(owner, specifiedType: const FullType(String)); - parameters['owner'] = $owner; + _parameters['owner'] = $owner; final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(RecordingStoreApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/recording/{token}/store{?owner*}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/recording/{token}/store{?owner*}').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(RecordingStoreResponseApplicationJson), @@ -8220,11 +8223,11 @@ class RecordingClient { RecordingNotificationDismissApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -8235,7 +8238,7 @@ class RecordingClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -8244,31 +8247,31 @@ class RecordingClient { // coverage:ignore-end final $timestamp = jsonSerializers.serialize(timestamp, specifiedType: const FullType(int)); - parameters['timestamp'] = $timestamp; + _parameters['timestamp'] = $timestamp; final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(RecordingNotificationDismissApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/recording/{token}/notification{?timestamp*}') - .expand(parameters), + .expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(RecordingNotificationDismissResponseApplicationJson), @@ -8341,11 +8344,11 @@ class RecordingClient { RecordingShareToChatApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -8356,7 +8359,7 @@ class RecordingClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -8365,34 +8368,34 @@ class RecordingClient { // coverage:ignore-end final $fileId = jsonSerializers.serialize(fileId, specifiedType: const FullType(int)); - parameters['fileId'] = $fileId; + _parameters['fileId'] = $fileId; final $timestamp = jsonSerializers.serialize(timestamp, specifiedType: const FullType(int)); - parameters['timestamp'] = $timestamp; + _parameters['timestamp'] = $timestamp; final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(RecordingShareToChatApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/recording/{token}/share-chat{?fileId*,timestamp*}') - .expand(parameters), + .expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(RecordingShareToChatResponseApplicationJson), @@ -8469,11 +8472,11 @@ class RoomClient { RoomGetRoomsApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -8484,7 +8487,7 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -8494,34 +8497,34 @@ class RoomClient { // coverage:ignore-end var $noStatusUpdate = jsonSerializers.serialize(noStatusUpdate, specifiedType: const FullType(int)); $noStatusUpdate ??= 0; - parameters['noStatusUpdate'] = $noStatusUpdate; + _parameters['noStatusUpdate'] = $noStatusUpdate; var $includeStatus = jsonSerializers.serialize(includeStatus, specifiedType: const FullType(int)); $includeStatus ??= 0; - parameters['includeStatus'] = $includeStatus; + _parameters['includeStatus'] = $includeStatus; var $modifiedSince = jsonSerializers.serialize(modifiedSince, specifiedType: const FullType(int)); $modifiedSince ??= 0; - parameters['modifiedSince'] = $modifiedSince; + _parameters['modifiedSince'] = $modifiedSince; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(RoomGetRoomsApiVersion)); $apiVersion ??= 'v4'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room{?noStatusUpdate*,includeStatus*,modifiedSince*}') - .expand(parameters), + .expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(RoomGetRoomsResponseApplicationJson), @@ -8615,11 +8618,11 @@ class RoomClient { RoomCreateRoomApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -8630,7 +8633,7 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -8639,47 +8642,47 @@ class RoomClient { // coverage:ignore-end final $roomType = jsonSerializers.serialize(roomType, specifiedType: const FullType(int)); - parameters['roomType'] = $roomType; + _parameters['roomType'] = $roomType; var $invite = jsonSerializers.serialize(invite, specifiedType: const FullType(String)); $invite ??= ''; - parameters['invite'] = $invite; + _parameters['invite'] = $invite; var $roomName = jsonSerializers.serialize(roomName, specifiedType: const FullType(String)); $roomName ??= ''; - parameters['roomName'] = $roomName; + _parameters['roomName'] = $roomName; var $source = jsonSerializers.serialize(source, specifiedType: const FullType(String)); $source ??= ''; - parameters['source'] = $source; + _parameters['source'] = $source; var $objectType = jsonSerializers.serialize(objectType, specifiedType: const FullType(String)); $objectType ??= ''; - parameters['objectType'] = $objectType; + _parameters['objectType'] = $objectType; var $objectId = jsonSerializers.serialize(objectId, specifiedType: const FullType(String)); $objectId ??= ''; - parameters['objectId'] = $objectId; + _parameters['objectId'] = $objectId; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(RoomCreateRoomApiVersion)); $apiVersion ??= 'v4'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate( '/ocs/v2.php/apps/spreed/api/{apiVersion}/room{?roomType*,invite*,roomName*,source*,objectType*,objectId*}', - ).expand(parameters), + ).expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200, 201}, ), bodyType: const FullType(RoomCreateRoomResponseApplicationJson), @@ -8740,11 +8743,11 @@ class RoomClient { RoomGetListedRoomsApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -8755,7 +8758,7 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -8765,26 +8768,26 @@ class RoomClient { // coverage:ignore-end var $searchTerm = jsonSerializers.serialize(searchTerm, specifiedType: const FullType(String)); $searchTerm ??= ''; - parameters['searchTerm'] = $searchTerm; + _parameters['searchTerm'] = $searchTerm; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(RoomGetListedRoomsApiVersion)); $apiVersion ??= 'v4'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/listed-room{?searchTerm*}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/listed-room{?searchTerm*}').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(RoomGetListedRoomsResponseApplicationJson), @@ -8847,11 +8850,11 @@ class RoomClient { RoomGetNoteToSelfConversationApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -8862,7 +8865,7 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -8873,20 +8876,21 @@ class RoomClient { var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(RoomGetNoteToSelfConversationApiVersion)); $apiVersion ??= 'v4'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/note-to-self').expand(parameters)); + final _uri = + Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/note-to-self').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(RoomGetNoteToSelfConversationResponseApplicationJson), @@ -8951,11 +8955,11 @@ class RoomClient { RoomGetSingleRoomApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -8966,7 +8970,7 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -8974,23 +8978,23 @@ class RoomClient { // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(RoomGetSingleRoomApiVersion)); $apiVersion ??= 'v4'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(RoomGetSingleRoomResponseApplicationJson), @@ -9058,11 +9062,11 @@ class RoomClient { RoomRenameRoomApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -9073,35 +9077,35 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } // coverage:ignore-end final $roomName = jsonSerializers.serialize(roomName, specifiedType: const FullType(String)); - parameters['roomName'] = $roomName; + _parameters['roomName'] = $roomName; final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(RoomRenameRoomApiVersion)); $apiVersion ??= 'v4'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = - Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}{?roomName*}').expand(parameters)); + final _uri = + Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}{?roomName*}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - uri, - headers, - body, + _uri, + _headers, + _body, const {200, 400}, ), bodyType: const FullType(RoomRenameRoomResponseApplicationJson), @@ -9164,11 +9168,11 @@ class RoomClient { RoomDeleteRoomApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -9179,7 +9183,7 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -9187,23 +9191,23 @@ class RoomClient { // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(RoomDeleteRoomApiVersion)); $apiVersion ??= 'v4'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, const {200, 400}, ), bodyType: const FullType(RoomDeleteRoomResponseApplicationJson), @@ -9266,11 +9270,11 @@ class RoomClient { RoomGetBreakoutRoomsApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -9281,7 +9285,7 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -9291,26 +9295,26 @@ class RoomClient { // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(RoomGetBreakoutRoomsApiVersion)); $apiVersion ??= 'v4'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/breakout-rooms').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/breakout-rooms').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(RoomGetBreakoutRoomsResponseApplicationJson), @@ -9373,11 +9377,11 @@ class RoomClient { RoomMakePublicApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -9388,7 +9392,7 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -9398,24 +9402,24 @@ class RoomClient { // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(RoomMakePublicApiVersion)); $apiVersion ??= 'v4'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = - Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/public').expand(parameters)); + final _uri = + Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/public').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200, 400}, ), bodyType: const FullType(RoomMakePublicResponseApplicationJson), @@ -9478,11 +9482,11 @@ class RoomClient { RoomMakePrivateApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -9493,7 +9497,7 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -9503,24 +9507,24 @@ class RoomClient { // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(RoomMakePrivateApiVersion)); $apiVersion ??= 'v4'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = - Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/public').expand(parameters)); + final _uri = + Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/public').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, const {200, 400}, ), bodyType: const FullType(RoomMakePrivateResponseApplicationJson), @@ -9588,11 +9592,11 @@ class RoomClient { RoomSetDescriptionApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -9603,38 +9607,38 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } // coverage:ignore-end final $description = jsonSerializers.serialize(description, specifiedType: const FullType(String)); - parameters['description'] = $description; + _parameters['description'] = $description; final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(RoomSetDescriptionApiVersion)); $apiVersion ??= 'v4'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/description{?description*}') - .expand(parameters), + .expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - uri, - headers, - body, + _uri, + _headers, + _body, const {200, 400}, ), bodyType: const FullType(RoomSetDescriptionResponseApplicationJson), @@ -9702,11 +9706,11 @@ class RoomClient { RoomSetReadOnlyApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -9717,7 +9721,7 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -9726,29 +9730,29 @@ class RoomClient { // coverage:ignore-end final $state = jsonSerializers.serialize(state, specifiedType: const FullType(int)); - parameters['state'] = $state; + _parameters['state'] = $state; final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(RoomSetReadOnlyApiVersion)); $apiVersion ??= 'v4'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/read-only{?state*}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/read-only{?state*}').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - uri, - headers, - body, + _uri, + _headers, + _body, const {200, 400}, ), bodyType: const FullType(RoomSetReadOnlyResponseApplicationJson), @@ -9816,11 +9820,11 @@ class RoomClient { RoomSetListableApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -9831,7 +9835,7 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -9840,29 +9844,29 @@ class RoomClient { // coverage:ignore-end final $scope = jsonSerializers.serialize(scope, specifiedType: const FullType(int)); - parameters['scope'] = $scope; + _parameters['scope'] = $scope; final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(RoomSetListableApiVersion)); $apiVersion ??= 'v4'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/listable{?scope*}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/listable{?scope*}').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - uri, - headers, - body, + _uri, + _headers, + _body, const {200, 400}, ), bodyType: const FullType(RoomSetListableResponseApplicationJson), @@ -9932,11 +9936,11 @@ class RoomClient { RoomSetPasswordApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -9947,36 +9951,36 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } // coverage:ignore-end final $password = jsonSerializers.serialize(password, specifiedType: const FullType(String)); - parameters['password'] = $password; + _parameters['password'] = $password; final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(RoomSetPasswordApiVersion)); $apiVersion ??= 'v4'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/password{?password*}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/password{?password*}').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - uri, - headers, - body, + _uri, + _headers, + _body, const {200, 403}, ), bodyType: const FullType(RoomSetPasswordResponseApplicationJson), @@ -10049,11 +10053,11 @@ class RoomClient { RoomSetPermissionsApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -10064,42 +10068,42 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } // coverage:ignore-end final $permissions = jsonSerializers.serialize(permissions, specifiedType: const FullType(int)); - parameters['permissions'] = $permissions; + _parameters['permissions'] = $permissions; final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; final $mode = jsonSerializers.serialize(mode, specifiedType: const FullType(String)); dynamite_utils.checkPattern($mode as String?, RegExp(r'^(call|default)$'), 'mode'); - parameters['mode'] = $mode; + _parameters['mode'] = $mode; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(RoomSetPermissionsApiVersion)); $apiVersion ??= 'v4'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/permissions/{mode}{?permissions*}') - .expand(parameters), + .expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(RoomSetPermissionsResponseApplicationJson), @@ -10167,11 +10171,11 @@ class RoomClient { RoomGetParticipantsApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -10182,7 +10186,7 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -10190,31 +10194,31 @@ class RoomClient { // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $includeStatus = jsonSerializers.serialize(includeStatus, specifiedType: const FullType(int)); $includeStatus ??= 0; - parameters['includeStatus'] = $includeStatus; + _parameters['includeStatus'] = $includeStatus; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(RoomGetParticipantsApiVersion)); $apiVersion ??= 'v4'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/participants{?includeStatus*}') - .expand(parameters), + .expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(RoomGetParticipantsResponseApplicationJson), @@ -10291,11 +10295,11 @@ class RoomClient { RoomAddParticipantToRoomApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -10306,7 +10310,7 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -10315,35 +10319,35 @@ class RoomClient { // coverage:ignore-end final $newParticipant = jsonSerializers.serialize(newParticipant, specifiedType: const FullType(String)); - parameters['newParticipant'] = $newParticipant; + _parameters['newParticipant'] = $newParticipant; final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $source = jsonSerializers.serialize(source, specifiedType: const FullType(String)); $source ??= 'users'; - parameters['source'] = $source; + _parameters['source'] = $source; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(RoomAddParticipantToRoomApiVersion)); $apiVersion ??= 'v4'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/participants{?newParticipant*,source*}') - .expand(parameters), + .expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(RoomAddParticipantToRoomResponseApplicationJson), @@ -10416,11 +10420,11 @@ class RoomClient { RoomGetBreakoutRoomParticipantsApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -10431,7 +10435,7 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -10439,33 +10443,33 @@ class RoomClient { // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $includeStatus = jsonSerializers.serialize(includeStatus, specifiedType: const FullType(int)); $includeStatus ??= 0; - parameters['includeStatus'] = $includeStatus; + _parameters['includeStatus'] = $includeStatus; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(RoomGetBreakoutRoomParticipantsApiVersion)); $apiVersion ??= 'v4'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate( '/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/breakout-rooms/participants{?includeStatus*}', - ).expand(parameters), + ).expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(RoomGetBreakoutRoomParticipantsResponseApplicationJson), @@ -10530,11 +10534,11 @@ class RoomClient { RoomRemoveSelfFromRoomApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -10545,7 +10549,7 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -10555,26 +10559,26 @@ class RoomClient { // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(RoomRemoveSelfFromRoomApiVersion)); $apiVersion ??= 'v4'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/participants/self').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/participants/self').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, const {200, 400, 404}, ), bodyType: const FullType(RoomRemoveSelfFromRoomResponseApplicationJson), @@ -10646,11 +10650,11 @@ class RoomClient { RoomRemoveAttendeeFromRoomApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -10661,37 +10665,37 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } // coverage:ignore-end final $attendeeId = jsonSerializers.serialize(attendeeId, specifiedType: const FullType(int)); - parameters['attendeeId'] = $attendeeId; + _parameters['attendeeId'] = $attendeeId; final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(RoomRemoveAttendeeFromRoomApiVersion)); $apiVersion ??= 'v4'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/attendees{?attendeeId*}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/attendees{?attendeeId*}').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, const {200, 400, 403, 404}, ), bodyType: const FullType(RoomRemoveAttendeeFromRoomResponseApplicationJson), @@ -10773,11 +10777,11 @@ class RoomClient { RoomSetAttendeePermissionsApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -10788,45 +10792,45 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } // coverage:ignore-end final $attendeeId = jsonSerializers.serialize(attendeeId, specifiedType: const FullType(int)); - parameters['attendeeId'] = $attendeeId; + _parameters['attendeeId'] = $attendeeId; final $method = jsonSerializers.serialize(method, specifiedType: const FullType(String)); - parameters['method'] = $method; + _parameters['method'] = $method; final $permissions = jsonSerializers.serialize(permissions, specifiedType: const FullType(int)); - parameters['permissions'] = $permissions; + _parameters['permissions'] = $permissions; final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(RoomSetAttendeePermissionsApiVersion)); $apiVersion ??= 'v4'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate( '/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/attendees/permissions{?attendeeId*,method*,permissions*}', - ).expand(parameters), + ).expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - uri, - headers, - body, + _uri, + _headers, + _body, const {200, 400, 403, 404}, ), bodyType: const FullType(RoomSetAttendeePermissionsResponseApplicationJson), @@ -10899,11 +10903,11 @@ class RoomClient { RoomSetAllAttendeesPermissionsApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -10914,42 +10918,42 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } // coverage:ignore-end final $method = jsonSerializers.serialize(method, specifiedType: const FullType(String)); - parameters['method'] = $method; + _parameters['method'] = $method; final $permissions = jsonSerializers.serialize(permissions, specifiedType: const FullType(int)); - parameters['permissions'] = $permissions; + _parameters['permissions'] = $permissions; final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(RoomSetAllAttendeesPermissionsApiVersion)); $apiVersion ??= 'v4'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate( '/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/attendees/permissions/all{?method*,permissions*}', - ).expand(parameters), + ).expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(RoomSetAllAttendeesPermissionsResponseApplicationJson), @@ -11026,11 +11030,11 @@ class RoomClient { RoomJoinRoomApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -11041,7 +11045,7 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -11049,34 +11053,34 @@ class RoomClient { // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $password = jsonSerializers.serialize(password, specifiedType: const FullType(String)); $password ??= ''; - parameters['password'] = $password; + _parameters['password'] = $password; var $force = jsonSerializers.serialize(force, specifiedType: const FullType(int)); $force ??= 1; - parameters['force'] = $force; + _parameters['force'] = $force; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(RoomJoinRoomApiVersion)); $apiVersion ??= 'v4'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/participants/active{?password*,force*}') - .expand(parameters), + .expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(RoomJoinRoomResponseApplicationJson), @@ -11137,11 +11141,11 @@ class RoomClient { RoomLeaveRoomApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -11152,7 +11156,7 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -11160,25 +11164,25 @@ class RoomClient { // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(RoomLeaveRoomApiVersion)); $apiVersion ??= 'v4'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/participants/active').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/participants/active').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(RoomLeaveRoomResponseApplicationJson), @@ -11246,11 +11250,11 @@ class RoomClient { RoomResendInvitationsApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -11261,7 +11265,7 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -11271,31 +11275,31 @@ class RoomClient { // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; final $attendeeId = jsonSerializers.serialize(attendeeId, specifiedType: const FullType(int)); - parameters['attendeeId'] = $attendeeId; + _parameters['attendeeId'] = $attendeeId; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(RoomResendInvitationsApiVersion)); $apiVersion ??= 'v4'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate( '/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/participants/resend-invitations{?attendeeId*}', - ).expand(parameters), + ).expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200, 404}, ), bodyType: const FullType(RoomResendInvitationsResponseApplicationJson), @@ -11363,11 +11367,11 @@ class RoomClient { RoomSetSessionStateApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -11378,38 +11382,38 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } // coverage:ignore-end final $state = jsonSerializers.serialize(state, specifiedType: const FullType(int)); - parameters['state'] = $state; + _parameters['state'] = $state; final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(RoomSetSessionStateApiVersion)); $apiVersion ??= 'v4'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/participants/state{?state*}') - .expand(parameters), + .expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(RoomSetSessionStateResponseApplicationJson), @@ -11481,11 +11485,11 @@ class RoomClient { RoomPromoteModeratorApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -11496,37 +11500,37 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } // coverage:ignore-end final $attendeeId = jsonSerializers.serialize(attendeeId, specifiedType: const FullType(int)); - parameters['attendeeId'] = $attendeeId; + _parameters['attendeeId'] = $attendeeId; final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(RoomPromoteModeratorApiVersion)); $apiVersion ??= 'v4'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/moderators{?attendeeId*}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/moderators{?attendeeId*}').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200, 400, 403, 404}, ), bodyType: const FullType(RoomPromoteModeratorResponseApplicationJson), @@ -11598,11 +11602,11 @@ class RoomClient { RoomDemoteModeratorApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -11613,37 +11617,37 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } // coverage:ignore-end final $attendeeId = jsonSerializers.serialize(attendeeId, specifiedType: const FullType(int)); - parameters['attendeeId'] = $attendeeId; + _parameters['attendeeId'] = $attendeeId; final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(RoomDemoteModeratorApiVersion)); $apiVersion ??= 'v4'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/moderators{?attendeeId*}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/moderators{?attendeeId*}').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, const {200, 400, 403, 404}, ), bodyType: const FullType(RoomDemoteModeratorResponseApplicationJson), @@ -11704,11 +11708,11 @@ class RoomClient { RoomAddToFavoritesApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -11719,7 +11723,7 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -11729,25 +11733,25 @@ class RoomClient { // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(RoomAddToFavoritesApiVersion)); $apiVersion ??= 'v4'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = - Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/favorite').expand(parameters)); + final _uri = + Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/favorite').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(RoomAddToFavoritesResponseApplicationJson), @@ -11808,11 +11812,11 @@ class RoomClient { RoomRemoveFromFavoritesApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -11823,7 +11827,7 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -11833,25 +11837,25 @@ class RoomClient { // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(RoomRemoveFromFavoritesApiVersion)); $apiVersion ??= 'v4'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = - Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/favorite').expand(parameters)); + final _uri = + Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/favorite').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(RoomRemoveFromFavoritesResponseApplicationJson), @@ -11919,11 +11923,11 @@ class RoomClient { RoomSetNotificationLevelApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -11934,7 +11938,7 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -11943,30 +11947,30 @@ class RoomClient { // coverage:ignore-end final $level = jsonSerializers.serialize(level, specifiedType: const FullType(int)); - parameters['level'] = $level; + _parameters['level'] = $level; final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(RoomSetNotificationLevelApiVersion)); $apiVersion ??= 'v4'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/notify{?level*}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/notify{?level*}').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200, 400}, ), bodyType: const FullType(RoomSetNotificationLevelResponseApplicationJson), @@ -12034,11 +12038,11 @@ class RoomClient { RoomSetNotificationCallsApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -12049,7 +12053,7 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -12058,30 +12062,30 @@ class RoomClient { // coverage:ignore-end final $level = jsonSerializers.serialize(level, specifiedType: const FullType(int)); - parameters['level'] = $level; + _parameters['level'] = $level; final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(RoomSetNotificationCallsApiVersion)); $apiVersion ??= 'v4'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/notify-calls{?level*}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/notify-calls{?level*}').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200, 400}, ), bodyType: const FullType(RoomSetNotificationCallsResponseApplicationJson), @@ -12154,11 +12158,11 @@ class RoomClient { RoomSetLobbyApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -12169,7 +12173,7 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -12178,33 +12182,33 @@ class RoomClient { // coverage:ignore-end final $state = jsonSerializers.serialize(state, specifiedType: const FullType(int)); - parameters['state'] = $state; + _parameters['state'] = $state; final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; final $timer = jsonSerializers.serialize(timer, specifiedType: const FullType(int)); - parameters['timer'] = $timer; + _parameters['timer'] = $timer; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(RoomSetLobbyApiVersion)); $apiVersion ??= 'v4'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/webinar/lobby{?state*,timer*}') - .expand(parameters), + .expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(RoomSetLobbyResponseApplicationJson), @@ -12278,11 +12282,11 @@ class RoomClient { RoomSetsipEnabledApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -12293,7 +12297,7 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -12302,29 +12306,29 @@ class RoomClient { // coverage:ignore-end final $state = jsonSerializers.serialize(state, specifiedType: const FullType(int)); - parameters['state'] = $state; + _parameters['state'] = $state; final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(RoomSetsipEnabledApiVersion)); $apiVersion ??= 'v4'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/webinar/sip{?state*}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/webinar/sip{?state*}').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(RoomSetsipEnabledResponseApplicationJson), @@ -12394,11 +12398,11 @@ class RoomClient { RoomSetRecordingConsentApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -12409,7 +12413,7 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -12418,31 +12422,31 @@ class RoomClient { // coverage:ignore-end final $recordingConsent = jsonSerializers.serialize(recordingConsent, specifiedType: const FullType(int)); - parameters['recordingConsent'] = $recordingConsent; + _parameters['recordingConsent'] = $recordingConsent; final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(RoomSetRecordingConsentApiVersion)); $apiVersion ??= 'v4'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/recording-consent{?recordingConsent*}') - .expand(parameters), + .expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(RoomSetRecordingConsentResponseApplicationJson), @@ -12510,11 +12514,11 @@ class RoomClient { RoomSetMessageExpirationApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -12525,38 +12529,38 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } // coverage:ignore-end final $seconds = jsonSerializers.serialize(seconds, specifiedType: const FullType(int)); - parameters['seconds'] = $seconds; + _parameters['seconds'] = $seconds; final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(RoomSetMessageExpirationApiVersion)); $apiVersion ??= 'v4'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/message-expiration{?seconds*}') - .expand(parameters), + .expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(RoomSetMessageExpirationResponseApplicationJson), @@ -12637,11 +12641,11 @@ class SettingsClient { SettingsSetsipSettingsApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -12652,7 +12656,7 @@ class SettingsClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -12662,36 +12666,36 @@ class SettingsClient { // coverage:ignore-end var $sipGroups = jsonSerializers.serialize(sipGroups, specifiedType: const FullType(BuiltList, [FullType(String)])); $sipGroups ??= []; - parameters['sipGroups%5B%5D'] = $sipGroups; + _parameters['sipGroups%5B%5D'] = $sipGroups; var $dialInInfo = jsonSerializers.serialize(dialInInfo, specifiedType: const FullType(String)); $dialInInfo ??= ''; - parameters['dialInInfo'] = $dialInInfo; + _parameters['dialInInfo'] = $dialInInfo; var $sharedSecret = jsonSerializers.serialize(sharedSecret, specifiedType: const FullType(String)); $sharedSecret ??= ''; - parameters['sharedSecret'] = $sharedSecret; + _parameters['sharedSecret'] = $sharedSecret; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(SettingsSetsipSettingsApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate( '/ocs/v2.php/apps/spreed/api/{apiVersion}/settings/sip{?sipGroups%5B%5D*,dialInInfo*,sharedSecret*}', - ).expand(parameters), + ).expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(SettingsSetsipSettingsResponseApplicationJson), @@ -12759,11 +12763,11 @@ class SettingsClient { SettingsSetUserSettingApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -12774,7 +12778,7 @@ class SettingsClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -12783,32 +12787,32 @@ class SettingsClient { // coverage:ignore-end final $key = jsonSerializers.serialize(key, specifiedType: const FullType(String)); - parameters['key'] = $key; + _parameters['key'] = $key; final $value = jsonSerializers.serialize( value, specifiedType: const FullType(ContentString, [FullType(SettingsSetUserSettingValue)]), ); - parameters['value'] = $value; + _parameters['value'] = $value; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(SettingsSetUserSettingApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/settings/user{?key*,value*}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/settings/user{?key*,value*}').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200, 400}, ), bodyType: const FullType(SettingsSetUserSettingResponseApplicationJson), @@ -12879,11 +12883,11 @@ class SignalingClient { SignalingGetSettingsApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -12894,7 +12898,7 @@ class SignalingClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -12902,26 +12906,26 @@ class SignalingClient { // coverage:ignore-end var $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); $token ??= ''; - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(SignalingGetSettingsApiVersion)); $apiVersion ??= 'v3'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/signaling/settings{?token*}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/signaling/settings{?token*}').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(SignalingGetSettingsResponseApplicationJson), @@ -12992,11 +12996,11 @@ class SignalingClient { SignalingGetWelcomeMessageApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -13007,7 +13011,7 @@ class SignalingClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -13016,26 +13020,26 @@ class SignalingClient { // coverage:ignore-end final $serverId = jsonSerializers.serialize(serverId, specifiedType: const FullType(int)); - parameters['serverId'] = $serverId; + _parameters['serverId'] = $serverId; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(SignalingGetWelcomeMessageApiVersion)); $apiVersion ??= 'v3'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/signaling/welcome/{serverId}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/signaling/welcome/{serverId}').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(SignalingGetWelcomeMessageResponseApplicationJson), @@ -13102,11 +13106,11 @@ class SignalingClient { SignalingPullMessagesApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -13117,7 +13121,7 @@ class SignalingClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -13125,24 +13129,25 @@ class SignalingClient { // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(SignalingPullMessagesApiVersion)); $apiVersion ??= 'v3'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/signaling/{token}').expand(parameters)); + final _uri = + Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/signaling/{token}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200, 404, 409}, ), bodyType: const FullType(SignalingPullMessagesResponseApplicationJson), @@ -13210,11 +13215,11 @@ class SignalingClient { SignalingSendMessagesApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -13225,37 +13230,37 @@ class SignalingClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } // coverage:ignore-end final $messages = jsonSerializers.serialize(messages, specifiedType: const FullType(String)); - parameters['messages'] = $messages; + _parameters['messages'] = $messages; final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); dynamite_utils.checkPattern($token as String?, RegExp(r'^[a-z0-9]{4,30}$'), 'token'); - parameters['token'] = $token; + _parameters['token'] = $token; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(SignalingSendMessagesApiVersion)); $apiVersion ??= 'v3'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/signaling/{token}{?messages*}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/signaling/{token}{?messages*}').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(SignalingSendMessagesResponseApplicationJson), @@ -13310,11 +13315,11 @@ class TempAvatarClient { /// * [postAvatar] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse postAvatarRaw({bool? oCSAPIRequest}) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -13325,7 +13330,7 @@ class TempAvatarClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -13335,15 +13340,15 @@ class TempAvatarClient { // coverage:ignore-end var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/temp-user-avatar').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/temp-user-avatar').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(TempAvatarPostAvatarResponseApplicationJson), @@ -13394,11 +13399,11 @@ class TempAvatarClient { /// * [deleteAvatar] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse deleteAvatarRaw({bool? oCSAPIRequest}) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -13409,7 +13414,7 @@ class TempAvatarClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -13419,15 +13424,15 @@ class TempAvatarClient { // coverage:ignore-end var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/temp-user-avatar').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/spreed/temp-user-avatar').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, 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 6513c565fd3..906c37c406d 100644 --- a/packages/nextcloud/lib/src/api/theming.openapi.dart +++ b/packages/nextcloud/lib/src/api/theming.openapi.dart @@ -3,6 +3,7 @@ // ignore_for_file: public_member_api_docs // 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'; @@ -93,11 +94,11 @@ class IconClient { /// * [getFavicon] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse getFaviconRaw({String? app}) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'image/x-icon', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -108,7 +109,7 @@ class IconClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -116,15 +117,15 @@ class IconClient { // coverage:ignore-end var $app = jsonSerializers.serialize(app, specifiedType: const FullType(String)); $app ??= 'core'; - parameters['app'] = $app; + _parameters['app'] = $app; - final uri = Uri.parse(UriTemplate('/index.php/apps/theming/favicon/{app}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/index.php/apps/theming/favicon/{app}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(Uint8List), @@ -175,11 +176,11 @@ class IconClient { /// * [getTouchIcon] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse getTouchIconRaw({String? app}) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'image/png', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -190,7 +191,7 @@ class IconClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -198,15 +199,15 @@ class IconClient { // coverage:ignore-end var $app = jsonSerializers.serialize(app, specifiedType: const FullType(String)); $app ??= 'core'; - parameters['app'] = $app; + _parameters['app'] = $app; - final uri = Uri.parse(UriTemplate('/index.php/apps/theming/icon/{app}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/index.php/apps/theming/icon/{app}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(Uint8List), @@ -266,11 +267,11 @@ class IconClient { required String app, required String image, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'image/svg+xml', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -281,26 +282,26 @@ class IconClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } // coverage:ignore-end final $app = jsonSerializers.serialize(app, specifiedType: const FullType(String)); - parameters['app'] = $app; + _parameters['app'] = $app; final $image = jsonSerializers.serialize(image, specifiedType: const FullType(String)); dynamite_utils.checkPattern($image as String?, RegExp(r'^.+$'), 'image'); - parameters['image'] = $image; + _parameters['image'] = $image; - final uri = Uri.parse(UriTemplate('/index.php/apps/theming/img/{app}/{image}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/index.php/apps/theming/img/{app}/{image}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(Uint8List), @@ -371,11 +372,11 @@ class ThemingClient { int? plain, int? withCustomCss, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'text/css', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -386,32 +387,32 @@ class ThemingClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } // coverage:ignore-end final $themeId = jsonSerializers.serialize(themeId, specifiedType: const FullType(String)); - parameters['themeId'] = $themeId; + _parameters['themeId'] = $themeId; var $plain = jsonSerializers.serialize(plain, specifiedType: const FullType(int)); $plain ??= 0; - parameters['plain'] = $plain; + _parameters['plain'] = $plain; var $withCustomCss = jsonSerializers.serialize(withCustomCss, specifiedType: const FullType(int)); $withCustomCss ??= 0; - parameters['withCustomCss'] = $withCustomCss; + _parameters['withCustomCss'] = $withCustomCss; - final uri = Uri.parse( - UriTemplate('/index.php/apps/theming/theme/{themeId}.css{?plain*,withCustomCss*}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/index.php/apps/theming/theme/{themeId}.css{?plain*,withCustomCss*}').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(String), @@ -471,11 +472,11 @@ class ThemingClient { required String key, int? useSvg, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': '*/*', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -486,26 +487,26 @@ class ThemingClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } // coverage:ignore-end final $key = jsonSerializers.serialize(key, specifiedType: const FullType(String)); - parameters['key'] = $key; + _parameters['key'] = $key; var $useSvg = jsonSerializers.serialize(useSvg, specifiedType: const FullType(int)); $useSvg ??= 1; - parameters['useSvg'] = $useSvg; + _parameters['useSvg'] = $useSvg; - final uri = Uri.parse(UriTemplate('/index.php/apps/theming/image/{key}{?useSvg*}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/index.php/apps/theming/image/{key}{?useSvg*}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(Uint8List), @@ -552,11 +553,11 @@ class ThemingClient { /// * [getManifest] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse getManifestRaw({required String app}) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -567,22 +568,22 @@ class ThemingClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } // coverage:ignore-end final $app = jsonSerializers.serialize(app, specifiedType: const FullType(String)); - parameters['app'] = $app; + _parameters['app'] = $app; - final uri = Uri.parse(UriTemplate('/index.php/apps/theming/manifest/{app}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/index.php/apps/theming/manifest/{app}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(ThemingGetManifestResponseApplicationJson), @@ -637,11 +638,11 @@ class UserThemeClient { /// * [getBackground] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse getBackgroundRaw({bool? oCSAPIRequest}) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': '*/*', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -652,7 +653,7 @@ class UserThemeClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -662,15 +663,15 @@ class UserThemeClient { // coverage:ignore-end var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/index.php/apps/theming/background').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/index.php/apps/theming/background').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(Uint8List), @@ -740,11 +741,11 @@ class UserThemeClient { String? color, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -755,7 +756,7 @@ class UserThemeClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -764,26 +765,27 @@ class UserThemeClient { // coverage:ignore-end final $type = jsonSerializers.serialize(type, specifiedType: const FullType(String)); - parameters['type'] = $type; + _parameters['type'] = $type; var $value = jsonSerializers.serialize(value, specifiedType: const FullType(String)); $value ??= ''; - parameters['value'] = $value; + _parameters['value'] = $value; final $color = jsonSerializers.serialize(color, specifiedType: const FullType(String)); - parameters['color'] = $color; + _parameters['color'] = $color; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/index.php/apps/theming/background/{type}{?value*,color*}').expand(parameters)); + final _uri = + Uri.parse(UriTemplate('/index.php/apps/theming/background/{type}{?value*,color*}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(Background), @@ -830,11 +832,11 @@ class UserThemeClient { /// * [deleteBackground] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse deleteBackgroundRaw({bool? oCSAPIRequest}) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -845,7 +847,7 @@ class UserThemeClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -855,15 +857,15 @@ class UserThemeClient { // coverage:ignore-end var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/index.php/apps/theming/background/custom').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/index.php/apps/theming/background/custom').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(Background), @@ -923,11 +925,11 @@ class UserThemeClient { required String themeId, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -938,7 +940,7 @@ class UserThemeClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -947,19 +949,19 @@ class UserThemeClient { // coverage:ignore-end final $themeId = jsonSerializers.serialize(themeId, specifiedType: const FullType(String)); - parameters['themeId'] = $themeId; + _parameters['themeId'] = $themeId; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/theming/api/v1/theme/{themeId}/enable').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/theming/api/v1/theme/{themeId}/enable').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(UserThemeEnableThemeResponseApplicationJson), @@ -1019,11 +1021,11 @@ class UserThemeClient { required String themeId, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -1034,7 +1036,7 @@ class UserThemeClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1043,19 +1045,19 @@ class UserThemeClient { // coverage:ignore-end final $themeId = jsonSerializers.serialize(themeId, specifiedType: const FullType(String)); - parameters['themeId'] = $themeId; + _parameters['themeId'] = $themeId; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/theming/api/v1/theme/{themeId}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/theming/api/v1/theme/{themeId}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, 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 c281781cad7..905e0a4c299 100644 --- a/packages/nextcloud/lib/src/api/updatenotification.openapi.dart +++ b/packages/nextcloud/lib/src/api/updatenotification.openapi.dart @@ -3,6 +3,7 @@ // ignore_for_file: public_member_api_docs // 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'; @@ -103,11 +104,11 @@ class ApiClient { ApiGetAppListApiVersion? apiVersion, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -118,7 +119,7 @@ class ApiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -127,25 +128,25 @@ class ApiClient { // coverage:ignore-end final $newVersion = jsonSerializers.serialize(newVersion, specifiedType: const FullType(String)); - parameters['newVersion'] = $newVersion; + _parameters['newVersion'] = $newVersion; var $apiVersion = jsonSerializers.serialize(apiVersion, specifiedType: const FullType(ApiGetAppListApiVersion)); $apiVersion ??= 'v1'; - parameters['apiVersion'] = $apiVersion; + _parameters['apiVersion'] = $apiVersion; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/apps/updatenotification/api/{apiVersion}/applist/{newVersion}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/apps/updatenotification/api/{apiVersion}/applist/{newVersion}').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, 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 4a17555c6fc..0174193a0d5 100644 --- a/packages/nextcloud/lib/src/api/uppush.openapi.dart +++ b/packages/nextcloud/lib/src/api/uppush.openapi.dart @@ -3,6 +3,7 @@ // ignore_for_file: public_member_api_docs // 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'; @@ -67,11 +68,11 @@ class Client extends DynamiteClient { /// * [check] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse checkRaw() { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -82,7 +83,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -90,13 +91,13 @@ class Client extends DynamiteClient { } // coverage:ignore-end - final uri = Uri.parse(UriTemplate('/index.php/apps/uppush').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/index.php/apps/uppush').expand(_parameters)); return DynamiteRawResponse( response: executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(CheckResponseApplicationJson), @@ -147,11 +148,11 @@ class Client extends DynamiteClient { /// * [setKeepalive] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse setKeepaliveRaw({required int keepalive}) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -162,7 +163,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -171,15 +172,15 @@ class Client extends DynamiteClient { // coverage:ignore-end final $keepalive = jsonSerializers.serialize(keepalive, specifiedType: const FullType(int)); - parameters['keepalive'] = $keepalive; + _parameters['keepalive'] = $keepalive; - final uri = Uri.parse(UriTemplate('/index.php/apps/uppush/keepalive{?keepalive*}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/index.php/apps/uppush/keepalive{?keepalive*}').expand(_parameters)); return DynamiteRawResponse( response: executeRequest( 'put', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(SetKeepaliveResponseApplicationJson), @@ -226,11 +227,11 @@ class Client extends DynamiteClient { /// * [createDevice] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse createDeviceRaw({required String deviceName}) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -241,7 +242,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -250,15 +251,15 @@ class Client extends DynamiteClient { // coverage:ignore-end final $deviceName = jsonSerializers.serialize(deviceName, specifiedType: const FullType(String)); - parameters['deviceName'] = $deviceName; + _parameters['deviceName'] = $deviceName; - final uri = Uri.parse(UriTemplate('/index.php/apps/uppush/device{?deviceName*}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/index.php/apps/uppush/device{?deviceName*}').expand(_parameters)); return DynamiteRawResponse( response: executeRequest( 'put', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(CreateDeviceResponseApplicationJson), @@ -303,11 +304,11 @@ class Client extends DynamiteClient { /// * [syncDevice] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse syncDeviceRaw({required String deviceId}) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -318,7 +319,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -327,15 +328,15 @@ class Client extends DynamiteClient { // coverage:ignore-end final $deviceId = jsonSerializers.serialize(deviceId, specifiedType: const FullType(String)); - parameters['deviceId'] = $deviceId; + _parameters['deviceId'] = $deviceId; - final uri = Uri.parse(UriTemplate('/index.php/apps/uppush/device/{deviceId}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/index.php/apps/uppush/device/{deviceId}').expand(_parameters)); return DynamiteRawResponse( response: executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {401}, ), bodyType: const FullType(SyncDeviceResponseApplicationJson), @@ -376,11 +377,11 @@ class Client extends DynamiteClient { /// * [deleteDevice] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse deleteDeviceRaw({required String deviceId}) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -391,7 +392,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -400,15 +401,15 @@ class Client extends DynamiteClient { // coverage:ignore-end final $deviceId = jsonSerializers.serialize(deviceId, specifiedType: const FullType(String)); - parameters['deviceId'] = $deviceId; + _parameters['deviceId'] = $deviceId; - final uri = Uri.parse(UriTemplate('/index.php/apps/uppush/device/{deviceId}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/index.php/apps/uppush/device/{deviceId}').expand(_parameters)); return DynamiteRawResponse( response: executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(DeleteDeviceResponseApplicationJson), @@ -464,11 +465,11 @@ class Client extends DynamiteClient { required String deviceId, required String appName, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -479,7 +480,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -488,18 +489,18 @@ class Client extends DynamiteClient { // coverage:ignore-end final $deviceId = jsonSerializers.serialize(deviceId, specifiedType: const FullType(String)); - parameters['deviceId'] = $deviceId; + _parameters['deviceId'] = $deviceId; final $appName = jsonSerializers.serialize(appName, specifiedType: const FullType(String)); - parameters['appName'] = $appName; + _parameters['appName'] = $appName; - final uri = Uri.parse(UriTemplate('/index.php/apps/uppush/app{?deviceId*,appName*}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/index.php/apps/uppush/app{?deviceId*,appName*}').expand(_parameters)); return DynamiteRawResponse( response: executeRequest( 'put', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(CreateAppResponseApplicationJson), @@ -540,11 +541,11 @@ class Client extends DynamiteClient { /// * [deleteApp] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse deleteAppRaw({required String token}) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -555,7 +556,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -564,15 +565,15 @@ class Client extends DynamiteClient { // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); - parameters['token'] = $token; + _parameters['token'] = $token; - final uri = Uri.parse(UriTemplate('/index.php/apps/uppush/app/{token}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/index.php/apps/uppush/app/{token}').expand(_parameters)); return DynamiteRawResponse( response: executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(DeleteAppResponseApplicationJson), @@ -617,11 +618,11 @@ class Client extends DynamiteClient { DynamiteRawResponse unifiedpushDiscoveryRaw({ required String token, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -632,7 +633,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -641,15 +642,15 @@ class Client extends DynamiteClient { // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); - parameters['token'] = $token; + _parameters['token'] = $token; - final uri = Uri.parse(UriTemplate('/index.php/apps/uppush/push/{token}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/index.php/apps/uppush/push/{token}').expand(_parameters)); return DynamiteRawResponse( response: executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(UnifiedpushDiscoveryResponseApplicationJson), @@ -690,11 +691,11 @@ class Client extends DynamiteClient { /// * [push] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse pushRaw({required String token}) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -705,7 +706,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -714,15 +715,15 @@ class Client extends DynamiteClient { // coverage:ignore-end final $token = jsonSerializers.serialize(token, specifiedType: const FullType(String)); - parameters['token'] = $token; + _parameters['token'] = $token; - final uri = Uri.parse(UriTemplate('/index.php/apps/uppush/push/{token}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/index.php/apps/uppush/push/{token}').expand(_parameters)); return DynamiteRawResponse( response: executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, const {201}, ), bodyType: const FullType(PushResponseApplicationJson), @@ -761,11 +762,11 @@ class Client extends DynamiteClient { /// * [gatewayMatrixDiscovery] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse gatewayMatrixDiscoveryRaw() { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -776,7 +777,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -784,13 +785,13 @@ class Client extends DynamiteClient { } // coverage:ignore-end - final uri = Uri.parse(UriTemplate('/index.php/apps/uppush/gateway/matrix').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/index.php/apps/uppush/gateway/matrix').expand(_parameters)); return DynamiteRawResponse( response: executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(GatewayMatrixDiscoveryResponseApplicationJson), @@ -829,11 +830,11 @@ class Client extends DynamiteClient { /// * [gatewayMatrix] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse gatewayMatrixRaw() { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = authentications.firstWhereOrNull( @@ -844,7 +845,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -852,13 +853,13 @@ class Client extends DynamiteClient { } // coverage:ignore-end - final uri = Uri.parse(UriTemplate('/index.php/apps/uppush/gateway/matrix').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/index.php/apps/uppush/gateway/matrix').expand(_parameters)); return DynamiteRawResponse( response: executeRequest( 'post', - uri, - headers, - body, + _uri, + _headers, + _body, 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 5c84106c1af..fb933c63097 100644 --- a/packages/nextcloud/lib/src/api/user_status.openapi.dart +++ b/packages/nextcloud/lib/src/api/user_status.openapi.dart @@ -3,6 +3,7 @@ // ignore_for_file: public_member_api_docs // 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'; @@ -106,11 +107,11 @@ class HeartbeatClient { required String status, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -121,7 +122,7 @@ class HeartbeatClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -130,19 +131,19 @@ class HeartbeatClient { // coverage:ignore-end final $status = jsonSerializers.serialize(status, specifiedType: const FullType(String)); - parameters['status'] = $status; + _parameters['status'] = $status; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/user_status/api/v1/heartbeat{?status*}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/user_status/api/v1/heartbeat{?status*}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(HeartbeatHeartbeatResponseApplicationJson), @@ -195,11 +196,11 @@ class PredefinedStatusClient { /// * [findAll] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse findAllRaw({bool? oCSAPIRequest}) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -210,7 +211,7 @@ class PredefinedStatusClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -220,15 +221,15 @@ class PredefinedStatusClient { // coverage:ignore-end var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/user_status/api/v1/predefined_statuses').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/user_status/api/v1/predefined_statuses').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(PredefinedStatusFindAllResponseApplicationJson), @@ -295,11 +296,11 @@ class StatusesClient { int? offset, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -310,7 +311,7 @@ class StatusesClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -319,23 +320,23 @@ class StatusesClient { // coverage:ignore-end final $limit = jsonSerializers.serialize(limit, specifiedType: const FullType(int)); - parameters['limit'] = $limit; + _parameters['limit'] = $limit; final $offset = jsonSerializers.serialize(offset, specifiedType: const FullType(int)); - parameters['offset'] = $offset; + _parameters['offset'] = $offset; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = - Uri.parse(UriTemplate('/ocs/v2.php/apps/user_status/api/v1/statuses{?limit*,offset*}').expand(parameters)); + final _uri = + Uri.parse(UriTemplate('/ocs/v2.php/apps/user_status/api/v1/statuses{?limit*,offset*}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(StatusesFindAllResponseApplicationJson), @@ -393,11 +394,11 @@ class StatusesClient { required String userId, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -408,7 +409,7 @@ class StatusesClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -417,19 +418,19 @@ class StatusesClient { // coverage:ignore-end final $userId = jsonSerializers.serialize(userId, specifiedType: const FullType(String)); - parameters['userId'] = $userId; + _parameters['userId'] = $userId; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/user_status/api/v1/statuses/{userId}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/user_status/api/v1/statuses/{userId}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(StatusesFindResponseApplicationJson), @@ -484,11 +485,11 @@ class UserStatusClient { /// * [getStatus] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse getStatusRaw({bool? oCSAPIRequest}) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -499,7 +500,7 @@ class UserStatusClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -509,15 +510,15 @@ class UserStatusClient { // coverage:ignore-end var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/user_status/api/v1/user_status').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/user_status/api/v1/user_status').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(UserStatusGetStatusResponseApplicationJson), @@ -575,11 +576,11 @@ class UserStatusClient { required String statusType, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -590,7 +591,7 @@ class UserStatusClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -599,21 +600,21 @@ class UserStatusClient { // coverage:ignore-end final $statusType = jsonSerializers.serialize(statusType, specifiedType: const FullType(String)); - parameters['statusType'] = $statusType; + _parameters['statusType'] = $statusType; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/apps/user_status/api/v1/user_status/status{?statusType*}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/apps/user_status/api/v1/user_status/status{?statusType*}').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(UserStatusSetStatusResponseApplicationJson), @@ -676,11 +677,11 @@ class UserStatusClient { int? clearAt, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -691,7 +692,7 @@ class UserStatusClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -700,25 +701,25 @@ class UserStatusClient { // coverage:ignore-end final $messageId = jsonSerializers.serialize(messageId, specifiedType: const FullType(String)); - parameters['messageId'] = $messageId; + _parameters['messageId'] = $messageId; final $clearAt = jsonSerializers.serialize(clearAt, specifiedType: const FullType(int)); - parameters['clearAt'] = $clearAt; + _parameters['clearAt'] = $clearAt; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate('/ocs/v2.php/apps/user_status/api/v1/user_status/message/predefined{?messageId*,clearAt*}') - .expand(parameters), + .expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(UserStatusSetPredefinedMessageResponseApplicationJson), @@ -786,11 +787,11 @@ class UserStatusClient { int? clearAt, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -801,7 +802,7 @@ class UserStatusClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -810,28 +811,28 @@ class UserStatusClient { // coverage:ignore-end final $statusIcon = jsonSerializers.serialize(statusIcon, specifiedType: const FullType(String)); - parameters['statusIcon'] = $statusIcon; + _parameters['statusIcon'] = $statusIcon; final $message = jsonSerializers.serialize(message, specifiedType: const FullType(String)); - parameters['message'] = $message; + _parameters['message'] = $message; final $clearAt = jsonSerializers.serialize(clearAt, specifiedType: const FullType(int)); - parameters['clearAt'] = $clearAt; + _parameters['clearAt'] = $clearAt; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( + final _uri = Uri.parse( UriTemplate('/ocs/v2.php/apps/user_status/api/v1/user_status/message/custom{?statusIcon*,message*,clearAt*}') - .expand(parameters), + .expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(UserStatusSetCustomMessageResponseApplicationJson), @@ -880,11 +881,11 @@ class UserStatusClient { /// * [clearMessage] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse clearMessageRaw({bool? oCSAPIRequest}) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -895,7 +896,7 @@ class UserStatusClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -905,15 +906,15 @@ class UserStatusClient { // coverage:ignore-end var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/user_status/api/v1/user_status/message').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/user_status/api/v1/user_status/message').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(UserStatusClearMessageResponseApplicationJson), @@ -969,11 +970,11 @@ class UserStatusClient { required String messageId, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -984,7 +985,7 @@ class UserStatusClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -993,21 +994,21 @@ class UserStatusClient { // coverage:ignore-end final $messageId = jsonSerializers.serialize(messageId, specifiedType: const FullType(String)); - parameters['messageId'] = $messageId; + _parameters['messageId'] = $messageId; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/apps/user_status/api/v1/user_status/revert/{messageId}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/apps/user_status/api/v1/user_status/revert/{messageId}').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - uri, - headers, - body, + _uri, + _headers, + _body, 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 74af9024298..0372dff90c8 100644 --- a/packages/nextcloud/lib/src/api/weather_status.openapi.dart +++ b/packages/nextcloud/lib/src/api/weather_status.openapi.dart @@ -3,6 +3,7 @@ // ignore_for_file: public_member_api_docs // 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'; @@ -92,11 +93,11 @@ class WeatherStatusClient { required int mode, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -107,7 +108,7 @@ class WeatherStatusClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -116,19 +117,19 @@ class WeatherStatusClient { // coverage:ignore-end final $mode = jsonSerializers.serialize(mode, specifiedType: const FullType(int)); - parameters['mode'] = $mode; + _parameters['mode'] = $mode; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/weather_status/api/v1/mode{?mode*}').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/weather_status/api/v1/mode{?mode*}').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(WeatherStatusSetModeResponseApplicationJson), @@ -179,11 +180,11 @@ class WeatherStatusClient { DynamiteRawResponse usePersonalAddressRaw({ bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -194,7 +195,7 @@ class WeatherStatusClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -204,15 +205,15 @@ class WeatherStatusClient { // coverage:ignore-end var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/weather_status/api/v1/use-personal').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/weather_status/api/v1/use-personal').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(WeatherStatusUsePersonalAddressResponseApplicationJson), @@ -261,11 +262,11 @@ class WeatherStatusClient { /// * [getLocation] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse getLocationRaw({bool? oCSAPIRequest}) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -276,7 +277,7 @@ class WeatherStatusClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -286,15 +287,15 @@ class WeatherStatusClient { // coverage:ignore-end var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/weather_status/api/v1/location').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/weather_status/api/v1/location').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(WeatherStatusGetLocationResponseApplicationJson), @@ -360,11 +361,11 @@ class WeatherStatusClient { double? lon, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -375,7 +376,7 @@ class WeatherStatusClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -384,27 +385,27 @@ class WeatherStatusClient { // coverage:ignore-end final $address = jsonSerializers.serialize(address, specifiedType: const FullType(String)); - parameters['address'] = $address; + _parameters['address'] = $address; final $lat = jsonSerializers.serialize(lat, specifiedType: const FullType(double)); - parameters['lat'] = $lat; + _parameters['lat'] = $lat; final $lon = jsonSerializers.serialize(lon, specifiedType: const FullType(double)); - parameters['lon'] = $lon; + _parameters['lon'] = $lon; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/apps/weather_status/api/v1/location{?address*,lat*,lon*}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/apps/weather_status/api/v1/location{?address*,lat*,lon*}').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(WeatherStatusSetLocationResponseApplicationJson), @@ -455,11 +456,11 @@ class WeatherStatusClient { /// * [getForecast] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse getForecastRaw({bool? oCSAPIRequest}) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -470,7 +471,7 @@ class WeatherStatusClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -480,15 +481,15 @@ class WeatherStatusClient { // coverage:ignore-end var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/weather_status/api/v1/forecast').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/weather_status/api/v1/forecast').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(WeatherStatusGetForecastResponseApplicationJson), @@ -537,11 +538,11 @@ class WeatherStatusClient { /// * [getFavorites] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse getFavoritesRaw({bool? oCSAPIRequest}) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -552,7 +553,7 @@ class WeatherStatusClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -562,15 +563,15 @@ class WeatherStatusClient { // coverage:ignore-end var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/weather_status/api/v1/favorites').expand(parameters)); + final _uri = Uri.parse(UriTemplate('/ocs/v2.php/apps/weather_status/api/v1/favorites').expand(_parameters)); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(WeatherStatusGetFavoritesResponseApplicationJson), @@ -626,11 +627,11 @@ class WeatherStatusClient { required BuiltList favorites, bool? oCSAPIRequest, }) { - final parameters = {}; - final headers = { + final _parameters = {}; + final _headers = { 'Accept': 'application/json', }; - Uint8List? body; + Uint8List? _body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( @@ -641,7 +642,7 @@ class WeatherStatusClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -651,21 +652,21 @@ class WeatherStatusClient { // coverage:ignore-end final $favorites = jsonSerializers.serialize(favorites, specifiedType: const FullType(BuiltList, [FullType(String)])); - parameters['favorites%5B%5D'] = $favorites; + _parameters['favorites%5B%5D'] = $favorites; var $oCSAPIRequest = jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); $oCSAPIRequest ??= true; - headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); + _headers['OCS-APIRequest'] = $oCSAPIRequest.toString(); - final uri = Uri.parse( - UriTemplate('/ocs/v2.php/apps/weather_status/api/v1/favorites{?favorites%5B%5D*}').expand(parameters), + final _uri = Uri.parse( + UriTemplate('/ocs/v2.php/apps/weather_status/api/v1/favorites{?favorites%5B%5D*}').expand(_parameters), ); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - uri, - headers, - body, + _uri, + _headers, + _body, const {200}, ), bodyType: const FullType(WeatherStatusSetFavoritesResponseApplicationJson),