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 14c73fe5030..fe8a00b839b 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 path = UriTemplate('/').expand(parameters); + final _path = UriTemplate('/').expand(_parameters); return DynamiteRawResponse( response: executeRequest( 'get', - path, - headers, - body, + _path, + _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 path = UriTemplate('/with_content/operation_id').expand(parameters); + final _path = UriTemplate('/with_content/operation_id').expand(_parameters); return DynamiteRawResponse( response: executeRequest( 'get', - path, - headers, - body, + _path, + _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 path = UriTemplate('/with_content').expand(parameters); + final _path = UriTemplate('/with_content').expand(_parameters); return DynamiteRawResponse( response: executeRequest( 'get', - path, - headers, - body, + _path, + _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 7553854596f..b18023120c9 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,51 +157,51 @@ 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 path = UriTemplate( + final _path = 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', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(JsonObject), @@ -272,49 +273,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 path = UriTemplate('/headers').expand(parameters); + final _path = UriTemplate('/headers').expand(_parameters); return DynamiteRawResponse( response: executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(JsonObject), @@ -351,22 +352,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 path = UriTemplate('/{path_parameter}').expand(parameters); + final _path = UriTemplate('/{path_parameter}').expand(_parameters); return DynamiteRawResponse( response: executeRequest( 'get', - path, - headers, - body, + _path, + _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 9411ff30f02..7736a45016c 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 path = UriTemplate('/').expand(parameters); + final _path = UriTemplate('/').expand(_parameters); return DynamiteRawResponse( response: executeRequest( 'get', - path, - headers, - body, + _path, + _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 path = UriTemplate('/').expand(parameters); + final _path = UriTemplate('/').expand(_parameters); return DynamiteRawResponse( response: executeRequest( 'post', - path, - headers, - body, + _path, + _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 b425ce6439d..42180aad82b 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 path = UriTemplate('/').expand(parameters); + final _path = UriTemplate('/').expand(_parameters); return DynamiteRawResponse( response: executeRequest( 'get', - path, - headers, - body, + _path, + _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 path = UriTemplate('/').expand(parameters); + final _path = UriTemplate('/').expand(_parameters); return DynamiteRawResponse( response: executeRequest( 'put', - path, - headers, - body, + _path, + _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 path = UriTemplate('/').expand(parameters); + final _path = UriTemplate('/').expand(_parameters); return DynamiteRawResponse( response: executeRequest( 'post', - path, - headers, - body, + _path, + _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 path = UriTemplate('/').expand(parameters); + final _path = UriTemplate('/').expand(_parameters); return DynamiteRawResponse( response: executeRequest( 'patch', - path, - headers, - body, + _path, + _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 b20c2c16261..839772fcd6b 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 05197ae3621..a31ad596927 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 path = UriTemplate('/status.php').expand(parameters); + final _path = UriTemplate('/status.php').expand(_parameters); return DynamiteRawResponse( response: executeRequest( 'get', - path, - headers, - body, + _path, + _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 path = UriTemplate('/ocs/v2.php/core/getapppassword').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/core/getapppassword').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _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 path = UriTemplate('/ocs/v2.php/core/apppassword/rotate').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/core/apppassword/rotate').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _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 path = UriTemplate('/ocs/v2.php/core/apppassword').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/core/apppassword').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - path, - headers, - body, + _path, + _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,38 +492,38 @@ 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 path = + final _path = 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', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(AutoCompleteGetResponseApplicationJson), @@ -587,11 +588,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( @@ -602,25 +603,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 path = UriTemplate('/index.php/avatar/{userId}/{size}/dark').expand(parameters); + final _path = UriTemplate('/index.php/avatar/{userId}/{size}/dark').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(Uint8List), @@ -678,11 +679,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( @@ -693,25 +694,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 path = UriTemplate('/index.php/avatar/{userId}/{size}').expand(parameters); + final _path = UriTemplate('/index.php/avatar/{userId}/{size}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(Uint8List), @@ -766,11 +767,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( @@ -781,22 +782,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 path = UriTemplate('/index.php/login/v2/poll{?token*}').expand(parameters); + final _path = UriTemplate('/index.php/login/v2/poll{?token*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(LoginFlowV2Credentials), @@ -835,11 +836,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( @@ -850,19 +851,19 @@ class ClientFlowLoginV2Client { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } // coverage:ignore-end - final path = UriTemplate('/index.php/login/v2').expand(parameters); + final _path = UriTemplate('/index.php/login/v2').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(LoginFlowV2), @@ -926,11 +927,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( @@ -941,7 +942,7 @@ class CollaborationResourcesClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -950,19 +951,19 @@ 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 path = UriTemplate('/ocs/v2.php/collaboration/resources/collections/search/{filter}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/collaboration/resources/collections/search/{filter}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(CollaborationResourcesSearchCollectionsResponseApplicationJson), @@ -1022,11 +1023,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( @@ -1037,7 +1038,7 @@ class CollaborationResourcesClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1046,19 +1047,19 @@ 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 path = UriTemplate('/ocs/v2.php/collaboration/resources/collections/{collectionId}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/collaboration/resources/collections/{collectionId}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(CollaborationResourcesListCollectionResponseApplicationJson), @@ -1123,11 +1124,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( @@ -1138,7 +1139,7 @@ class CollaborationResourcesClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1147,23 +1148,23 @@ 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 path = UriTemplate('/ocs/v2.php/collaboration/resources/collections/{collectionId}{?collectionName*}') - .expand(parameters); + final _path = UriTemplate('/ocs/v2.php/collaboration/resources/collections/{collectionId}{?collectionName*}') + .expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(CollaborationResourcesRenameCollectionResponseApplicationJson), @@ -1233,11 +1234,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( @@ -1248,7 +1249,7 @@ class CollaborationResourcesClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1257,27 +1258,27 @@ 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 path = + final _path = UriTemplate('/ocs/v2.php/collaboration/resources/collections/{collectionId}{?resourceType*,resourceId*}') - .expand(parameters); + .expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(CollaborationResourcesAddResourceResponseApplicationJson), @@ -1347,11 +1348,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( @@ -1362,7 +1363,7 @@ class CollaborationResourcesClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1371,27 +1372,27 @@ 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 path = + final _path = UriTemplate('/ocs/v2.php/collaboration/resources/collections/{collectionId}{?resourceType*,resourceId*}') - .expand(parameters); + .expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(CollaborationResourcesRemoveResourceResponseApplicationJson), @@ -1456,11 +1457,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( @@ -1471,7 +1472,7 @@ class CollaborationResourcesClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1480,22 +1481,22 @@ 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 path = UriTemplate('/ocs/v2.php/collaboration/resources/{resourceType}/{resourceId}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/collaboration/resources/{resourceType}/{resourceId}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(CollaborationResourcesGetCollectionsByResourceResponseApplicationJson), @@ -1569,11 +1570,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( @@ -1584,7 +1585,7 @@ class CollaborationResourcesClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1593,26 +1594,26 @@ 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 path = UriTemplate('/ocs/v2.php/collaboration/resources/{baseResourceType}/{baseResourceId}{?name*}') - .expand(parameters); + final _path = UriTemplate('/ocs/v2.php/collaboration/resources/{baseResourceType}/{baseResourceId}{?name*}') + .expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(CollaborationResourcesCreateCollectionOnResourceResponseApplicationJson), @@ -1679,11 +1680,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( @@ -1694,25 +1695,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 path = UriTemplate('/index.php/avatar/guest/{guestName}/{size}/dark').expand(parameters); + final _path = UriTemplate('/index.php/avatar/guest/{guestName}/{size}/dark').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200, 201}, ), bodyType: const FullType(Uint8List), @@ -1777,11 +1778,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( @@ -1792,29 +1793,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 path = UriTemplate('/index.php/avatar/guest/{guestName}/{size}{?darkTheme*}').expand(parameters); + final _path = UriTemplate('/index.php/avatar/guest/{guestName}/{size}{?darkTheme*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200, 201}, ), bodyType: const FullType(Uint8List), @@ -1878,11 +1879,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( @@ -1893,7 +1894,7 @@ class HoverCardClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1902,19 +1903,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 path = UriTemplate('/ocs/v2.php/hovercard/v1/{userId}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/hovercard/v1/{userId}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(HoverCardGetUserResponseApplicationJson), @@ -1978,11 +1979,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( @@ -1993,7 +1994,7 @@ class NavigationClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -2003,19 +2004,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 path = UriTemplate('/ocs/v2.php/core/navigation/apps{?absolute*}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/core/navigation/apps{?absolute*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(NavigationGetAppsNavigationResponseApplicationJson), @@ -2073,11 +2074,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( @@ -2088,7 +2089,7 @@ class NavigationClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -2098,19 +2099,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 path = UriTemplate('/ocs/v2.php/core/navigation/settings{?absolute*}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/core/navigation/settings{?absolute*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(NavigationGetSettingsNavigationResponseApplicationJson), @@ -2158,11 +2159,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( @@ -2173,19 +2174,19 @@ class OcmClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } // coverage:ignore-end - final path = UriTemplate('/index.php/ocm-provider').expand(parameters); + final _path = UriTemplate('/index.php/ocm-provider').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(OcmDiscoveryResponseApplicationJson), @@ -2240,11 +2241,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( @@ -2255,7 +2256,7 @@ class OcsClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -2263,15 +2264,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 path = UriTemplate('/ocs/v2.php/cloud/capabilities').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/cloud/capabilities').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(OcsGetCapabilitiesResponseApplicationJson), @@ -2366,11 +2367,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( @@ -2381,7 +2382,7 @@ class PreviewClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -2391,40 +2392,40 @@ 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 path = - UriTemplate('/index.php/core/preview{?fileId*,x*,y*,a*,forceIcon*,mode*,mimeFallback*}').expand(parameters); + final _path = + UriTemplate('/index.php/core/preview{?fileId*,x*,y*,a*,forceIcon*,mode*,mimeFallback*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(Uint8List), @@ -2513,11 +2514,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( @@ -2528,7 +2529,7 @@ class PreviewClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -2538,40 +2539,40 @@ 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 path = - UriTemplate('/index.php/core/preview.png{?file*,x*,y*,a*,forceIcon*,mode*,mimeFallback*}').expand(parameters); + final _path = + UriTemplate('/index.php/core/preview.png{?file*,x*,y*,a*,forceIcon*,mode*,mimeFallback*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(Uint8List), @@ -2649,11 +2650,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( @@ -2664,7 +2665,7 @@ class ProfileApiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -2673,25 +2674,25 @@ 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 path = UriTemplate('/ocs/v2.php/profile/{targetUserId}{?paramId*,visibility*}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/profile/{targetUserId}{?paramId*,visibility*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(ProfileApiSetVisibilityResponseApplicationJson), @@ -2746,11 +2747,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( @@ -2761,22 +2762,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 path = UriTemplate('/index.php/core/references/preview/{referenceId}').expand(parameters); + final _path = UriTemplate('/index.php/core/references/preview/{referenceId}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(Uint8List), @@ -2838,11 +2839,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( @@ -2853,7 +2854,7 @@ class ReferenceApiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -2862,19 +2863,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 path = UriTemplate('/ocs/v2.php/references/resolve{?reference*}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/references/resolve{?reference*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(ReferenceApiResolveOneResponseApplicationJson), @@ -2935,11 +2936,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( @@ -2950,7 +2951,7 @@ class ReferenceApiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -2960,23 +2961,23 @@ 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 path = UriTemplate('/ocs/v2.php/references/resolve{?references%5B%5D*,limit*}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/references/resolve{?references%5B%5D*,limit*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(ReferenceApiResolveResponseApplicationJson), @@ -3042,11 +3043,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( @@ -3057,7 +3058,7 @@ class ReferenceApiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -3066,27 +3067,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 path = UriTemplate('/ocs/v2.php/references/extract{?text*,resolve*,limit*}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/references/extract{?text*,resolve*,limit*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(ReferenceApiExtractResponseApplicationJson), @@ -3137,11 +3138,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( @@ -3152,7 +3153,7 @@ class ReferenceApiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -3162,15 +3163,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 path = UriTemplate('/ocs/v2.php/references/providers').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/references/providers').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(ReferenceApiGetProvidersInfoResponseApplicationJson), @@ -3231,11 +3232,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( @@ -3246,7 +3247,7 @@ class ReferenceApiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -3255,22 +3256,22 @@ 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 path = UriTemplate('/ocs/v2.php/references/provider/{providerId}{?timestamp*}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/references/provider/{providerId}{?timestamp*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(ReferenceApiTouchProviderResponseApplicationJson), @@ -3325,11 +3326,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( @@ -3340,7 +3341,7 @@ class TextProcessingApiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -3348,15 +3349,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 path = UriTemplate('/ocs/v2.php/textprocessing/tasktypes').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/textprocessing/tasktypes').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(TextProcessingApiTaskTypesResponseApplicationJson), @@ -3431,11 +3432,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( @@ -3446,37 +3447,37 @@ 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 path = - UriTemplate('/ocs/v2.php/textprocessing/schedule{?input*,type*,appId*,identifier*}').expand(parameters); + final _path = + UriTemplate('/ocs/v2.php/textprocessing/schedule{?input*,type*,appId*,identifier*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(TextProcessingApiScheduleResponseApplicationJson), @@ -3536,11 +3537,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( @@ -3551,26 +3552,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 path = UriTemplate('/ocs/v2.php/textprocessing/task/{id}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/textprocessing/task/{id}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(TextProcessingApiGetTaskResponseApplicationJson), @@ -3630,11 +3631,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( @@ -3645,7 +3646,7 @@ class TextProcessingApiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -3654,19 +3655,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 path = UriTemplate('/ocs/v2.php/textprocessing/task/{id}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/textprocessing/task/{id}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(TextProcessingApiDeleteTaskResponseApplicationJson), @@ -3729,11 +3730,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( @@ -3744,7 +3745,7 @@ class TextProcessingApiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -3753,22 +3754,22 @@ 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 path = UriTemplate('/ocs/v2.php/textprocessing/tasks/app/{appId}{?identifier*}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/textprocessing/tasks/app/{appId}{?identifier*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(TextProcessingApiListTasksByAppResponseApplicationJson), @@ -3823,11 +3824,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( @@ -3838,7 +3839,7 @@ class TextToImageApiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -3846,15 +3847,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 path = UriTemplate('/ocs/v2.php/text2image/is_available').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/text2image/is_available').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(TextToImageApiIsAvailableResponseApplicationJson), @@ -3929,11 +3930,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( @@ -3944,38 +3945,38 @@ 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 path = - UriTemplate('/ocs/v2.php/text2image/schedule{?input*,appId*,identifier*,numberOfImages*}').expand(parameters); + final _path = + UriTemplate('/ocs/v2.php/text2image/schedule{?input*,appId*,identifier*,numberOfImages*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(TextToImageApiScheduleResponseApplicationJson), @@ -4035,11 +4036,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( @@ -4050,26 +4051,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 path = UriTemplate('/ocs/v2.php/text2image/task/{id}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/text2image/task/{id}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(TextToImageApiGetTaskResponseApplicationJson), @@ -4129,11 +4130,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( @@ -4144,7 +4145,7 @@ class TextToImageApiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -4153,19 +4154,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 path = UriTemplate('/ocs/v2.php/text2image/task/{id}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/text2image/task/{id}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(TextToImageApiDeleteTaskResponseApplicationJson), @@ -4230,11 +4231,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( @@ -4245,29 +4246,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 path = UriTemplate('/ocs/v2.php/text2image/task/{id}/image/{index}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/text2image/task/{id}/image/{index}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(Uint8List), @@ -4330,11 +4331,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( @@ -4345,7 +4346,7 @@ class TextToImageApiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -4354,22 +4355,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 path = UriTemplate('/ocs/v2.php/text2image/tasks/app/{appId}{?identifier*}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/text2image/tasks/app/{appId}{?identifier*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(TextToImageApiListTasksByAppResponseApplicationJson), @@ -4424,11 +4425,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( @@ -4439,7 +4440,7 @@ class TranslationApiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -4447,15 +4448,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 path = UriTemplate('/ocs/v2.php/translation/languages').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/translation/languages').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(TranslationApiLanguagesResponseApplicationJson), @@ -4527,11 +4528,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( @@ -4542,32 +4543,33 @@ 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 path = UriTemplate('/ocs/v2.php/translation/translate{?text*,toLanguage*,fromLanguage*}').expand(parameters); + final _path = + UriTemplate('/ocs/v2.php/translation/translate{?text*,toLanguage*,fromLanguage*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(TranslationApiTranslateResponseApplicationJson), @@ -4629,11 +4631,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( @@ -4644,7 +4646,7 @@ class UnifiedSearchClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -4654,19 +4656,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 path = UriTemplate('/ocs/v2.php/search/providers{?from*}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/search/providers{?from*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(UnifiedSearchGetProvidersResponseApplicationJson), @@ -4749,11 +4751,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( @@ -4764,7 +4766,7 @@ class UnifiedSearchClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -4773,40 +4775,41 @@ 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 path = UriTemplate('/ocs/v2.php/search/providers/{providerId}/search{?term*,sortOrder*,limit*,cursor*,from*}') - .expand(parameters); + final _path = + UriTemplate('/ocs/v2.php/search/providers/{providerId}/search{?term*,sortOrder*,limit*,cursor*,from*}') + .expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(UnifiedSearchSearchResponseApplicationJson), @@ -4861,11 +4864,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( @@ -4876,7 +4879,7 @@ class WhatsNewClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -4886,15 +4889,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 path = UriTemplate('/ocs/v2.php/core/whatsnew').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/core/whatsnew').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(WhatsNewGetResponseApplicationJson), @@ -4952,11 +4955,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( @@ -4967,7 +4970,7 @@ class WhatsNewClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -4976,19 +4979,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 path = UriTemplate('/ocs/v2.php/core/whatsnew{?version*}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/core/whatsnew{?version*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(WhatsNewDismissResponseApplicationJson), @@ -5043,11 +5046,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( @@ -5058,22 +5061,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 path = UriTemplate('/index.php/core/wipe/check{?token*}').expand(parameters); + final _path = UriTemplate('/index.php/core/wipe/check{?token*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(WipeCheckWipeResponseApplicationJson), @@ -5122,11 +5125,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( @@ -5137,22 +5140,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 path = UriTemplate('/index.php/core/wipe/success{?token*}').expand(parameters); + final _path = UriTemplate('/index.php/core/wipe/success{?token*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _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 08c337a32a9..7f7852da5c6 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 path = UriTemplate('/ocs/v2.php/apps/dashboard/api/v1/widgets').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/dashboard/api/v1/widgets').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _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,28 +215,28 @@ 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 path = UriTemplate('/ocs/v2.php/apps/dashboard/api/v1/widget-items{?sinceIds*,limit*,widgets%5B%5D*}') - .expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/dashboard/api/v1/widget-items{?sinceIds*,limit*,widgets%5B%5D*}') + .expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(DashboardApiGetWidgetItemsResponseApplicationJson), @@ -305,11 +306,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( @@ -320,7 +321,7 @@ class DashboardApiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -334,28 +335,28 @@ 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 path = UriTemplate('/ocs/v2.php/apps/dashboard/api/v2/widget-items{?sinceIds*,limit*,widgets%5B%5D*}') - .expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/dashboard/api/v2/widget-items{?sinceIds*,limit*,widgets%5B%5D*}') + .expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _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 b407538cec5..77a4d1da92e 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,22 +127,22 @@ 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 path = UriTemplate('/ocs/v2.php/apps/dav/api/v1/direct{?fileId*,expirationTime*}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/dav/api/v1/direct{?fileId*,expirationTime*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _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 67386381eb3..c369efe1ede 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 path = UriTemplate('/index.php/apps/files/api/v1/thumbnail/{x}/{y}/{file}').expand(parameters); + final _path = UriTemplate('/index.php/apps/files/api/v1/thumbnail/{x}/{y}/{file}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _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 path = UriTemplate('/ocs/v2.php/apps/files/api/v1/directEditing').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/files/api/v1/directEditing').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _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,23 +324,23 @@ 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 path = - UriTemplate('/ocs/v2.php/apps/files/api/v1/directEditing/templates/{editorId}/{creatorId}').expand(parameters); + final _path = + UriTemplate('/ocs/v2.php/apps/files/api/v1/directEditing/templates/{editorId}/{creatorId}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(DirectEditingTemplatesResponseApplicationJson), @@ -409,11 +410,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( @@ -424,7 +425,7 @@ class DirectEditingClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -433,26 +434,26 @@ 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 path0 = - UriTemplate('/ocs/v2.php/apps/files/api/v1/directEditing/open{?path*,editorId*,fileId*}').expand(parameters); + final _path = + UriTemplate('/ocs/v2.php/apps/files/api/v1/directEditing/open{?path*,editorId*,fileId*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path0, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(DirectEditingOpenResponseApplicationJson), @@ -527,11 +528,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( @@ -542,7 +543,7 @@ class DirectEditingClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -551,30 +552,30 @@ 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 path0 = + final _path = UriTemplate('/ocs/v2.php/apps/files/api/v1/directEditing/create{?path*,editorId*,creatorId*,templateId*}') - .expand(parameters); + .expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path0, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(DirectEditingCreateResponseApplicationJson), @@ -638,11 +639,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( @@ -653,7 +654,7 @@ class OpenLocalEditorClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -662,19 +663,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 path0 = UriTemplate('/ocs/v2.php/apps/files/api/v1/openlocaleditor{?path*}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/files/api/v1/openlocaleditor{?path*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path0, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(OpenLocalEditorCreateResponseApplicationJson), @@ -737,11 +738,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( @@ -752,7 +753,7 @@ class OpenLocalEditorClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -761,22 +762,22 @@ 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 path0 = UriTemplate('/ocs/v2.php/apps/files/api/v1/openlocaleditor/{token}{?path*}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/files/api/v1/openlocaleditor/{token}{?path*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path0, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(OpenLocalEditorValidateResponseApplicationJson), @@ -829,11 +830,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( @@ -844,7 +845,7 @@ class TemplateClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -854,15 +855,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 path = UriTemplate('/ocs/v2.php/apps/files/api/v1/templates').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/files/api/v1/templates').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(TemplateListResponseApplicationJson), @@ -930,11 +931,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( @@ -945,7 +946,7 @@ class TemplateClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -954,28 +955,28 @@ 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 path = UriTemplate('/ocs/v2.php/apps/files/api/v1/templates/create{?filePath*,templatePath*,templateType*}') - .expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/files/api/v1/templates/create{?filePath*,templatePath*,templateType*}') + .expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(TemplateCreateResponseApplicationJson), @@ -1038,11 +1039,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( @@ -1053,7 +1054,7 @@ class TemplateClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1063,24 +1064,24 @@ 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 path = UriTemplate('/ocs/v2.php/apps/files/api/v1/templates/path{?templatePath*,copySystemTemplates*}') - .expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/files/api/v1/templates/path{?templatePath*,copySystemTemplates*}') + .expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(TemplatePathResponseApplicationJson), @@ -1151,11 +1152,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( @@ -1166,7 +1167,7 @@ class TransferOwnershipClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1175,22 +1176,22 @@ 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 path0 = UriTemplate('/ocs/v2.php/apps/files/api/v1/transferownership{?recipient*,path*}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/files/api/v1/transferownership{?recipient*,path*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path0, - headers, - body, + _path, + _headers, + _body, const {200, 400, 403}, ), bodyType: const FullType(TransferOwnershipTransferResponseApplicationJson), @@ -1250,11 +1251,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( @@ -1265,7 +1266,7 @@ class TransferOwnershipClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1274,19 +1275,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 path = UriTemplate('/ocs/v2.php/apps/files/api/v1/transferownership/{id}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/files/api/v1/transferownership/{id}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200, 403, 404}, ), bodyType: const FullType(TransferOwnershipAcceptResponseApplicationJson), @@ -1346,11 +1347,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( @@ -1361,7 +1362,7 @@ class TransferOwnershipClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1370,19 +1371,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 path = UriTemplate('/ocs/v2.php/apps/files/api/v1/transferownership/{id}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/files/api/v1/transferownership/{id}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - path, - headers, - body, + _path, + _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 c397060421e..e4b7e5eed12 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 path = UriTemplate('/ocs/v2.php/apps/files_external/api/v1/mounts').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/files_external/api/v1/mounts').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _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 b4008815af5..de08a019164 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 path = UriTemplate('/ocs/v2.php/apps/files_reminders/api/v{version}/{fileId}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/files_reminders/api/v{version}/{fileId}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _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,26 +239,27 @@ 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 path = UriTemplate('/ocs/v2.php/apps/files_reminders/api/v{version}/{fileId}{?dueDate*}').expand(parameters); + final _path = + UriTemplate('/ocs/v2.php/apps/files_reminders/api/v{version}/{fileId}{?dueDate*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - path, - headers, - body, + _path, + _headers, + _body, const {200, 201, 400, 401, 404}, ), bodyType: const FullType(ApiSetResponseApplicationJson), @@ -322,11 +324,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( @@ -337,7 +339,7 @@ class ApiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -347,22 +349,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 path = UriTemplate('/ocs/v2.php/apps/files_reminders/api/v{version}/{fileId}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/files_reminders/api/v{version}/{fileId}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - path, - headers, - body, + _path, + _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 c6f66a1a078..63eb2f8829d 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 path = UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/deletedshares').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/deletedshares').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _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 path = UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/deletedshares/{id}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/deletedshares/{id}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _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 path = UriTemplate('/index.php/s/{token}/preview').expand(parameters); + final _path = UriTemplate('/index.php/s/{token}/preview').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _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,42 +423,43 @@ 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 path = UriTemplate('/index.php/apps/files_sharing/publicpreview/{token}{?file*,x*,y*,a*}').expand(parameters); + final _path = + UriTemplate('/index.php/apps/files_sharing/publicpreview/{token}{?file*,x*,y*,a*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(Uint8List), @@ -510,11 +512,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( @@ -525,7 +527,7 @@ class RemoteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -535,15 +537,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 path = UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/remote_shares').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/remote_shares').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(RemoteGetSharesResponseApplicationJson), @@ -592,11 +594,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( @@ -607,7 +609,7 @@ class RemoteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -617,15 +619,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 path = UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/remote_shares/pending').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/remote_shares/pending').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(RemoteGetOpenSharesResponseApplicationJson), @@ -683,11 +685,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( @@ -698,7 +700,7 @@ class RemoteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -707,19 +709,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 path = UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/remote_shares/pending/{id}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/remote_shares/pending/{id}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(RemoteAcceptShareResponseApplicationJson), @@ -777,11 +779,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( @@ -792,7 +794,7 @@ class RemoteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -801,19 +803,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 path = UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/remote_shares/pending/{id}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/remote_shares/pending/{id}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(RemoteDeclineShareResponseApplicationJson), @@ -871,11 +873,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( @@ -886,7 +888,7 @@ class RemoteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -895,19 +897,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 path = UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/remote_shares/{id}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/remote_shares/{id}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(RemoteGetShareResponseApplicationJson), @@ -967,11 +969,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( @@ -982,7 +984,7 @@ class RemoteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -991,19 +993,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 path = UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/remote_shares/{id}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/remote_shares/{id}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(RemoteUnshareResponseApplicationJson), @@ -1079,11 +1081,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( @@ -1094,32 +1096,32 @@ 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 path = UriTemplate('/index.php/apps/files_sharing/shareinfo{?t*,password*,dir*,depth*}').expand(parameters); + final _path = UriTemplate('/index.php/apps/files_sharing/shareinfo{?t*,password*,dir*,depth*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(ShareInfo), @@ -1203,11 +1205,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( @@ -1218,7 +1220,7 @@ class ShareapiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1228,37 +1230,37 @@ 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 path0 = UriTemplate( + final _path = 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', - path0, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(ShareapiGetSharesResponseApplicationJson), @@ -1370,11 +1372,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( @@ -1385,7 +1387,7 @@ class ShareapiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1394,57 +1396,57 @@ 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 path0 = UriTemplate( + final _path = 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', - path0, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(ShareapiCreateShareResponseApplicationJson), @@ -1504,11 +1506,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( @@ -1519,7 +1521,7 @@ class ShareapiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1528,19 +1530,19 @@ 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 path0 = UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/shares/inherited{?path*}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/shares/inherited{?path*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path0, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(ShareapiGetInheritedSharesResponseApplicationJson), @@ -1589,11 +1591,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( @@ -1604,7 +1606,7 @@ class ShareapiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1614,15 +1616,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 path = UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/shares/pending').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/shares/pending').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(ShareapiPendingSharesResponseApplicationJson), @@ -1685,11 +1687,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( @@ -1700,7 +1702,7 @@ class ShareapiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1709,23 +1711,23 @@ 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 path = UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/shares/{id}{?include_tags*}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/shares/{id}{?include_tags*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(ShareapiGetShareResponseApplicationJson), @@ -1832,11 +1834,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( @@ -1847,7 +1849,7 @@ class ShareapiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1856,48 +1858,48 @@ 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 path = UriTemplate( + final _path = 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', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(ShareapiUpdateShareResponseApplicationJson), @@ -1957,11 +1959,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( @@ -1972,7 +1974,7 @@ class ShareapiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1981,19 +1983,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 path = UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/shares/{id}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/shares/{id}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(ShareapiDeleteShareResponseApplicationJson), @@ -2053,11 +2055,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( @@ -2068,7 +2070,7 @@ class ShareapiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -2077,19 +2079,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 path = UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/shares/pending/{id}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/shares/pending/{id}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(ShareapiAcceptShareResponseApplicationJson), @@ -2178,11 +2180,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( @@ -2193,7 +2195,7 @@ class ShareesapiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -2203,42 +2205,42 @@ 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 path = UriTemplate( + final _path = 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', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(ShareesapiSearchResponseApplicationJson), @@ -2299,11 +2301,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( @@ -2314,7 +2316,7 @@ class ShareesapiClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -2323,26 +2325,26 @@ 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 path = UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/sharees_recommended{?itemType*,shareType*}') - .expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/sharees_recommended{?itemType*,shareType*}') + .expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _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 bfcb6f754fe..7acf7f93e56 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,27 @@ 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 path = UriTemplate('/index.php/apps/files_trashbin/preview{?fileId*,x*,y*,a*}').expand(parameters); + final _path = UriTemplate('/index.php/apps/files_trashbin/preview{?fileId*,x*,y*,a*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _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 b78218f5e41..fb4c560249c 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,27 +131,27 @@ 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 path = UriTemplate('/index.php/apps/files_versions/preview{?file*,x*,y*,version*}').expand(parameters); + final _path = UriTemplate('/index.php/apps/files_versions/preview{?file*,x*,y*,version*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _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 e57bb751322..6499e446807 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 path = UriTemplate('/index.php/apps/news/api').expand(parameters); + final _path = UriTemplate('/index.php/apps/news/api').expand(_parameters); return DynamiteRawResponse( response: executeRequest( 'get', - path, - headers, - body, + _path, + _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 path = UriTemplate('/index.php/apps/news/api/v1-3/folders').expand(parameters); + final _path = UriTemplate('/index.php/apps/news/api/v1-3/folders').expand(_parameters); return DynamiteRawResponse( response: executeRequest( 'get', - path, - headers, - body, + _path, + _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 path = UriTemplate('/index.php/apps/news/api/v1-3/folders{?name*}').expand(parameters); + final _path = UriTemplate('/index.php/apps/news/api/v1-3/folders{?name*}').expand(_parameters); return DynamiteRawResponse( response: executeRequest( 'post', - path, - headers, - body, + _path, + _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 path = UriTemplate('/index.php/apps/news/api/v1-3/folders/{folderId}{?name*}').expand(parameters); + final _path = UriTemplate('/index.php/apps/news/api/v1-3/folders/{folderId}{?name*}').expand(_parameters); return DynamiteRawResponse( response: executeRequest( 'put', - path, - headers, - body, + _path, + _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 path = UriTemplate('/index.php/apps/news/api/v1-3/folders/{folderId}').expand(parameters); + final _path = UriTemplate('/index.php/apps/news/api/v1-3/folders/{folderId}').expand(_parameters); return DynamiteRawResponse( response: executeRequest( 'delete', - path, - headers, - body, + _path, + _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,19 +455,19 @@ 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 path = - UriTemplate('/index.php/apps/news/api/v1-3/folders/{folderId}/read{?newestItemId*}').expand(parameters); + final _path = + UriTemplate('/index.php/apps/news/api/v1-3/folders/{folderId}/read{?newestItemId*}').expand(_parameters); return DynamiteRawResponse( response: executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: null, @@ -501,11 +502,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( @@ -516,7 +517,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -524,13 +525,13 @@ class Client extends DynamiteClient { } // coverage:ignore-end - final path = UriTemplate('/index.php/apps/news/api/v1-3/feeds').expand(parameters); + final _path = UriTemplate('/index.php/apps/news/api/v1-3/feeds').expand(_parameters); return DynamiteRawResponse( response: executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(ListFeeds), @@ -582,11 +583,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( @@ -597,7 +598,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -606,18 +607,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 path = UriTemplate('/index.php/apps/news/api/v1-3/feeds{?url*,folderId*}').expand(parameters); + final _path = UriTemplate('/index.php/apps/news/api/v1-3/feeds{?url*,folderId*}').expand(_parameters); return DynamiteRawResponse( response: executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(ListFeeds), @@ -654,9 +655,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( @@ -667,7 +668,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -676,15 +677,15 @@ class Client extends DynamiteClient { // coverage:ignore-end final $feedId = jsonSerializers.serialize(feedId, specifiedType: const FullType(int)); - parameters['feedId'] = $feedId; + _parameters['feedId'] = $feedId; - final path = UriTemplate('/index.php/apps/news/api/v1-3/feeds/{feedId}').expand(parameters); + final _path = UriTemplate('/index.php/apps/news/api/v1-3/feeds/{feedId}').expand(_parameters); return DynamiteRawResponse( response: executeRequest( 'delete', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: null, @@ -734,9 +735,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( @@ -747,7 +748,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -756,18 +757,18 @@ 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 path = UriTemplate('/index.php/apps/news/api/v1-3/feeds/{feedId}/move{?folderId*}').expand(parameters); + final _path = UriTemplate('/index.php/apps/news/api/v1-3/feeds/{feedId}/move{?folderId*}').expand(_parameters); return DynamiteRawResponse( response: executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: null, @@ -817,9 +818,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( @@ -830,7 +831,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -839,18 +840,18 @@ 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 path = UriTemplate('/index.php/apps/news/api/v1-3/feeds/{feedId}/rename{?feedTitle*}').expand(parameters); + final _path = UriTemplate('/index.php/apps/news/api/v1-3/feeds/{feedId}/rename{?feedTitle*}').expand(_parameters); return DynamiteRawResponse( response: executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: null, @@ -900,9 +901,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( @@ -913,7 +914,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -922,18 +923,18 @@ 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 path = UriTemplate('/index.php/apps/news/api/v1-3/feeds/{feedId}/read{?newestItemId*}').expand(parameters); + final _path = UriTemplate('/index.php/apps/news/api/v1-3/feeds/{feedId}/read{?newestItemId*}').expand(_parameters); return DynamiteRawResponse( response: executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: null, @@ -1005,11 +1006,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( @@ -1020,7 +1021,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1030,36 +1031,37 @@ 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 path = UriTemplate('/index.php/apps/news/api/v1-3/items{?type*,id*,getRead*,batchSize*,offset*,oldestFirst*}') - .expand(parameters); + final _path = + UriTemplate('/index.php/apps/news/api/v1-3/items{?type*,id*,getRead*,batchSize*,offset*,oldestFirst*}') + .expand(_parameters); return DynamiteRawResponse( response: executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(ListArticles), @@ -1116,11 +1118,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( @@ -1131,7 +1133,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1141,24 +1143,24 @@ 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 path = - UriTemplate('/index.php/apps/news/api/v1-3/items/updated{?type*,id*,lastModified*}').expand(parameters); + final _path = + UriTemplate('/index.php/apps/news/api/v1-3/items/updated{?type*,id*,lastModified*}').expand(_parameters); return DynamiteRawResponse( response: executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(ListArticles), @@ -1195,9 +1197,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( @@ -1208,7 +1210,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1217,15 +1219,15 @@ class Client extends DynamiteClient { // coverage:ignore-end final $itemId = jsonSerializers.serialize(itemId, specifiedType: const FullType(int)); - parameters['itemId'] = $itemId; + _parameters['itemId'] = $itemId; - final path = UriTemplate('/index.php/apps/news/api/v1-3/items/{itemId}/read').expand(parameters); + final _path = UriTemplate('/index.php/apps/news/api/v1-3/items/{itemId}/read').expand(_parameters); return DynamiteRawResponse( response: executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: null, @@ -1262,9 +1264,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( @@ -1275,7 +1277,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1284,15 +1286,15 @@ class Client extends DynamiteClient { // coverage:ignore-end final $itemId = jsonSerializers.serialize(itemId, specifiedType: const FullType(int)); - parameters['itemId'] = $itemId; + _parameters['itemId'] = $itemId; - final path = UriTemplate('/index.php/apps/news/api/v1-3/items/{itemId}/unread').expand(parameters); + final _path = UriTemplate('/index.php/apps/news/api/v1-3/items/{itemId}/unread').expand(_parameters); return DynamiteRawResponse( response: executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: null, @@ -1329,9 +1331,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( @@ -1342,7 +1344,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1351,15 +1353,15 @@ class Client extends DynamiteClient { // coverage:ignore-end final $itemId = jsonSerializers.serialize(itemId, specifiedType: const FullType(int)); - parameters['itemId'] = $itemId; + _parameters['itemId'] = $itemId; - final path = UriTemplate('/index.php/apps/news/api/v1-3/items/{itemId}/star').expand(parameters); + final _path = UriTemplate('/index.php/apps/news/api/v1-3/items/{itemId}/star').expand(_parameters); return DynamiteRawResponse( response: executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: null, @@ -1396,9 +1398,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( @@ -1409,7 +1411,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1418,15 +1420,15 @@ class Client extends DynamiteClient { // coverage:ignore-end final $itemId = jsonSerializers.serialize(itemId, specifiedType: const FullType(int)); - parameters['itemId'] = $itemId; + _parameters['itemId'] = $itemId; - final path = UriTemplate('/index.php/apps/news/api/v1-3/items/{itemId}/unstar').expand(parameters); + final _path = UriTemplate('/index.php/apps/news/api/v1-3/items/{itemId}/unstar').expand(_parameters); return DynamiteRawResponse( response: executeRequest( 'post', - path, - headers, - body, + _path, + _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 2b694cf5ed6..63e0d16b82b 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,37 +127,37 @@ 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 path = + final _path = UriTemplate('/index.php/apps/notes/api/v1/notes{?category*,exclude*,pruneBefore*,chunkSize*,chunkCursor*}') - .expand(parameters); + .expand(_parameters); return DynamiteRawResponse, void>( response: executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(BuiltList, [FullType(Note)]), @@ -223,11 +224,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( @@ -238,7 +239,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -248,32 +249,32 @@ 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 path = UriTemplate('/index.php/apps/notes/api/v1/notes{?category*,title*,content*,modified*,favorite*}') - .expand(parameters); + final _path = UriTemplate('/index.php/apps/notes/api/v1/notes{?category*,title*,content*,modified*,favorite*}') + .expand(_parameters); return DynamiteRawResponse( response: executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(Note), @@ -328,11 +329,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( @@ -343,7 +344,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -352,24 +353,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 path = UriTemplate('/index.php/apps/notes/api/v1/notes/{id}{?exclude*}').expand(parameters); + final _path = UriTemplate('/index.php/apps/notes/api/v1/notes/{id}{?exclude*}').expand(_parameters); return DynamiteRawResponse( response: executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(Note), @@ -444,11 +445,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( @@ -459,7 +460,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -468,36 +469,36 @@ 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 path = UriTemplate('/index.php/apps/notes/api/v1/notes/{id}{?content*,modified*,title*,category*,favorite*}') - .expand(parameters); + final _path = UriTemplate('/index.php/apps/notes/api/v1/notes/{id}{?content*,modified*,title*,category*,favorite*}') + .expand(_parameters); return DynamiteRawResponse( response: executeRequest( 'put', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(Note), @@ -534,11 +535,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( @@ -549,7 +550,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -558,15 +559,15 @@ class Client extends DynamiteClient { // coverage:ignore-end final $id = jsonSerializers.serialize(id, specifiedType: const FullType(int)); - parameters['id'] = $id; + _parameters['id'] = $id; - final path = UriTemplate('/index.php/apps/notes/api/v1/notes/{id}').expand(parameters); + final _path = UriTemplate('/index.php/apps/notes/api/v1/notes/{id}').expand(_parameters); return DynamiteRawResponse( response: executeRequest( 'delete', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(String), @@ -601,11 +602,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( @@ -616,7 +617,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -624,13 +625,13 @@ class Client extends DynamiteClient { } // coverage:ignore-end - final path = UriTemplate('/index.php/apps/notes/api/v1/settings').expand(parameters); + final _path = UriTemplate('/index.php/apps/notes/api/v1/settings').expand(_parameters); return DynamiteRawResponse( response: executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(Settings), @@ -667,11 +668,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( @@ -682,7 +683,7 @@ class Client extends DynamiteClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -690,15 +691,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 path = 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 _path = UriTemplate('/index.php/apps/notes/api/v1/settings').expand(_parameters); return DynamiteRawResponse( response: executeRequest( 'put', - path, - headers, - body, + _path, + _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 0f10a05e03f..80ac5b4ad09 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,33 +149,33 @@ 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 path = UriTemplate( + final _path = UriTemplate( '/ocs/v2.php/apps/notifications/api/{apiVersion}/admin_notifications/{userId}{?shortMessage*,longMessage*}', - ).expand(parameters); + ).expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(ApiGenerateNotificationResponseApplicationJson), @@ -240,11 +241,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( @@ -255,7 +256,7 @@ class EndpointClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -266,20 +267,20 @@ 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 path = UriTemplate('/ocs/v2.php/apps/notifications/api/{apiVersion}/notifications').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/notifications/api/{apiVersion}/notifications').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(EndpointListNotificationsResponseApplicationJson), @@ -337,11 +338,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( @@ -352,7 +353,7 @@ class EndpointClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -363,19 +364,19 @@ 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 path = UriTemplate('/ocs/v2.php/apps/notifications/api/{apiVersion}/notifications').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/notifications/api/{apiVersion}/notifications').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(EndpointDeleteAllNotificationsResponseApplicationJson), @@ -438,11 +439,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( @@ -453,7 +454,7 @@ class EndpointClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -462,24 +463,24 @@ 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 path = UriTemplate('/ocs/v2.php/apps/notifications/api/{apiVersion}/notifications/{id}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/notifications/api/{apiVersion}/notifications/{id}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(EndpointGetNotificationResponseApplicationJson), @@ -544,11 +545,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( @@ -559,7 +560,7 @@ class EndpointClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -568,24 +569,24 @@ 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 path = UriTemplate('/ocs/v2.php/apps/notifications/api/{apiVersion}/notifications/{id}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/notifications/api/{apiVersion}/notifications/{id}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(EndpointDeleteNotificationResponseApplicationJson), @@ -648,11 +649,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( @@ -663,7 +664,7 @@ class EndpointClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -672,25 +673,25 @@ 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 path = UriTemplate('/ocs/v2.php/apps/notifications/api/{apiVersion}/notifications/exists{?ids%5B%5D*}') - .expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/notifications/api/{apiVersion}/notifications/exists{?ids%5B%5D*}') + .expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200, 400}, ), bodyType: const FullType(EndpointConfirmIdsForUserResponseApplicationJson), @@ -773,11 +774,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( @@ -788,7 +789,7 @@ class PushClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -797,32 +798,32 @@ 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 path = UriTemplate( + final _path = UriTemplate( '/ocs/v2.php/apps/notifications/api/{apiVersion}/push{?pushTokenHash*,devicePublicKey*,proxyServer*}', - ).expand(parameters); + ).expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200, 201}, ), bodyType: const FullType(PushRegisterDeviceResponseApplicationJson), @@ -884,11 +885,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( @@ -899,7 +900,7 @@ class PushClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -909,19 +910,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 path = UriTemplate('/ocs/v2.php/apps/notifications/api/{apiVersion}/push').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/notifications/api/{apiVersion}/push').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - path, - headers, - body, + _path, + _headers, + _body, const {200, 202, 401}, ), bodyType: const FullType(PushRemoveDeviceResponseApplicationJson), @@ -998,11 +999,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( @@ -1013,7 +1014,7 @@ class SettingsClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1022,31 +1023,31 @@ 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 path = UriTemplate( + final _path = UriTemplate( '/ocs/v2.php/apps/notifications/api/{apiVersion}/settings{?batchSetting*,soundNotification*,soundTalk*}', - ).expand(parameters); + ).expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(SettingsPersonalResponseApplicationJson), @@ -1121,11 +1122,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( @@ -1136,7 +1137,7 @@ class SettingsClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1145,31 +1146,31 @@ 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 path = UriTemplate( + final _path = UriTemplate( '/ocs/v2.php/apps/notifications/api/{apiVersion}/settings/admin{?batchSetting*,soundNotification*,soundTalk*}', - ).expand(parameters); + ).expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _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 8ab500cc13d..3ae7f95a92a 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 path = UriTemplate('/ocs/v2.php/apps/provisioning_api/api/v1/config/apps').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/provisioning_api/api/v1/config/apps').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _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,19 @@ 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 path = UriTemplate('/ocs/v2.php/apps/provisioning_api/api/v1/config/apps/{app}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/provisioning_api/api/v1/config/apps/{app}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(AppConfigGetKeysResponseApplicationJson), @@ -301,11 +302,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 +317,7 @@ class AppConfigClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -325,27 +326,27 @@ 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 path = UriTemplate('/ocs/v2.php/apps/provisioning_api/api/v1/config/apps/{app}/{key}{?defaultValue*}') - .expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/provisioning_api/api/v1/config/apps/{app}/{key}{?defaultValue*}') + .expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(AppConfigGetValueResponseApplicationJson), @@ -413,11 +414,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( @@ -428,7 +429,7 @@ class AppConfigClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -437,26 +438,26 @@ 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 path = - UriTemplate('/ocs/v2.php/apps/provisioning_api/api/v1/config/apps/{app}/{key}{?value*}').expand(parameters); + final _path = + UriTemplate('/ocs/v2.php/apps/provisioning_api/api/v1/config/apps/{app}/{key}{?value*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(AppConfigSetValueResponseApplicationJson), @@ -523,11 +524,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( @@ -538,7 +539,7 @@ class AppConfigClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -547,22 +548,22 @@ 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 path = UriTemplate('/ocs/v2.php/apps/provisioning_api/api/v1/config/apps/{app}/{key}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/provisioning_api/api/v1/config/apps/{app}/{key}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(AppConfigDeleteKeyResponseApplicationJson), @@ -628,11 +629,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( @@ -643,7 +644,7 @@ class AppsClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -652,19 +653,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 path = UriTemplate('/ocs/v2.php/cloud/apps{?filter*}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/cloud/apps{?filter*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(AppsGetAppsResponseApplicationJson), @@ -724,11 +725,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( @@ -739,7 +740,7 @@ class AppsClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -748,19 +749,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 path = UriTemplate('/ocs/v2.php/cloud/apps/{app}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/cloud/apps/{app}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(AppsGetAppInfoResponseApplicationJson), @@ -820,11 +821,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( @@ -835,7 +836,7 @@ class AppsClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -844,19 +845,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 path = UriTemplate('/ocs/v2.php/cloud/apps/{app}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/cloud/apps/{app}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(AppsEnableResponseApplicationJson), @@ -916,11 +917,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( @@ -931,7 +932,7 @@ class AppsClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -940,19 +941,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 path = UriTemplate('/ocs/v2.php/cloud/apps/{app}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/cloud/apps/{app}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(AppsDisableResponseApplicationJson), @@ -1024,11 +1025,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( @@ -1039,7 +1040,7 @@ class GroupsClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1049,26 +1050,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 path = UriTemplate('/ocs/v2.php/cloud/groups{?search*,limit*,offset*}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/cloud/groups{?search*,limit*,offset*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(GroupsGetGroupsResponseApplicationJson), @@ -1133,11 +1134,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( @@ -1148,7 +1149,7 @@ class GroupsClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1157,23 +1158,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 path = UriTemplate('/ocs/v2.php/cloud/groups{?groupid*,displayname*}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/cloud/groups{?groupid*,displayname*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(GroupsAddGroupResponseApplicationJson), @@ -1239,11 +1240,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( @@ -1254,7 +1255,7 @@ class GroupsClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1264,26 +1265,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 path = UriTemplate('/ocs/v2.php/cloud/groups/details{?search*,limit*,offset*}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/cloud/groups/details{?search*,limit*,offset*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(GroupsGetGroupsDetailsResponseApplicationJson), @@ -1343,11 +1344,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( @@ -1358,7 +1359,7 @@ class GroupsClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1368,19 +1369,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 path = UriTemplate('/ocs/v2.php/cloud/groups/{groupId}/users').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/cloud/groups/{groupId}/users').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(GroupsGetGroupUsersResponseApplicationJson), @@ -1451,11 +1452,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( @@ -1466,7 +1467,7 @@ class GroupsClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1476,31 +1477,31 @@ 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 path = - UriTemplate('/ocs/v2.php/cloud/groups/{groupId}/users/details{?search*,limit*,offset*}').expand(parameters); + final _path = + UriTemplate('/ocs/v2.php/cloud/groups/{groupId}/users/details{?search*,limit*,offset*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(GroupsGetGroupUsersDetailsResponseApplicationJson), @@ -1560,11 +1561,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( @@ -1575,7 +1576,7 @@ class GroupsClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1585,19 +1586,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 path = UriTemplate('/ocs/v2.php/cloud/groups/{groupId}/subadmins').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/cloud/groups/{groupId}/subadmins').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(GroupsGetSubAdminsOfGroupResponseApplicationJson), @@ -1655,11 +1656,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( @@ -1670,7 +1671,7 @@ class GroupsClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1680,19 +1681,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 path = UriTemplate('/ocs/v2.php/cloud/groups/{groupId}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/cloud/groups/{groupId}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(GroupsGetGroupResponseApplicationJson), @@ -1762,11 +1763,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( @@ -1777,7 +1778,7 @@ class GroupsClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1786,26 +1787,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 path = UriTemplate('/ocs/v2.php/cloud/groups/{groupId}{?key*,value*}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/cloud/groups/{groupId}{?key*,value*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(GroupsUpdateGroupResponseApplicationJson), @@ -1865,11 +1866,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( @@ -1880,7 +1881,7 @@ class GroupsClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1890,19 +1891,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 path = UriTemplate('/ocs/v2.php/cloud/groups/{groupId}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/cloud/groups/{groupId}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(GroupsDeleteGroupResponseApplicationJson), @@ -1976,11 +1977,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( @@ -1991,7 +1992,7 @@ class PreferencesClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -2000,26 +2001,27 @@ 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 path = UriTemplate('/ocs/v2.php/apps/provisioning_api/api/v1/config/users/{appId}/{configKey}{?configValue*}') - .expand(parameters); + final _path = + UriTemplate('/ocs/v2.php/apps/provisioning_api/api/v1/config/users/{appId}/{configKey}{?configValue*}') + .expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200, 400}, ), bodyType: const FullType(PreferencesSetPreferenceResponseApplicationJson), @@ -2082,11 +2084,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( @@ -2097,7 +2099,7 @@ class PreferencesClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -2106,23 +2108,23 @@ 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 path = - UriTemplate('/ocs/v2.php/apps/provisioning_api/api/v1/config/users/{appId}/{configKey}').expand(parameters); + final _path = + UriTemplate('/ocs/v2.php/apps/provisioning_api/api/v1/config/users/{appId}/{configKey}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - path, - headers, - body, + _path, + _headers, + _body, const {200, 400}, ), bodyType: const FullType(PreferencesDeletePreferenceResponseApplicationJson), @@ -2185,11 +2187,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( @@ -2200,7 +2202,7 @@ class PreferencesClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -2214,23 +2216,23 @@ 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 path = - UriTemplate('/ocs/v2.php/apps/provisioning_api/api/v1/config/users/{appId}{?configs*}').expand(parameters); + final _path = + UriTemplate('/ocs/v2.php/apps/provisioning_api/api/v1/config/users/{appId}{?configs*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200, 400}, ), bodyType: const FullType(PreferencesSetMultiplePreferencesResponseApplicationJson), @@ -2293,11 +2295,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( @@ -2308,7 +2310,7 @@ class PreferencesClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -2318,23 +2320,23 @@ 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 path = UriTemplate('/ocs/v2.php/apps/provisioning_api/api/v1/config/users/{appId}{?configKeys%5B%5D*}') - .expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/provisioning_api/api/v1/config/users/{appId}{?configKeys%5B%5D*}') + .expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - path, - headers, - body, + _path, + _headers, + _body, const {200, 400}, ), bodyType: const FullType(PreferencesDeleteMultiplePreferenceResponseApplicationJson), @@ -2406,11 +2408,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( @@ -2421,7 +2423,7 @@ class UsersClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -2431,26 +2433,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 path = UriTemplate('/ocs/v2.php/cloud/users{?search*,limit*,offset*}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/cloud/users{?search*,limit*,offset*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(UsersGetUsersResponseApplicationJson), @@ -2548,11 +2550,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( @@ -2563,7 +2565,7 @@ class UsersClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -2572,52 +2574,52 @@ 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 path = UriTemplate( + final _path = 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', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(UsersAddUserResponseApplicationJson), @@ -2683,11 +2685,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( @@ -2698,7 +2700,7 @@ class UsersClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -2708,26 +2710,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 path = UriTemplate('/ocs/v2.php/cloud/users/details{?search*,limit*,offset*}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/cloud/users/details{?search*,limit*,offset*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(UsersGetUsersDetailsResponseApplicationJson), @@ -2788,11 +2790,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( @@ -2803,7 +2805,7 @@ class UsersClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -2812,23 +2814,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 path = UriTemplate('/ocs/v2.php/cloud/users/disabled{?limit*,offset*}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/cloud/users/disabled{?limit*,offset*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(UsersGetDisabledUsersDetailsResponseApplicationJson), @@ -2891,11 +2893,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( @@ -2906,7 +2908,7 @@ class UsersClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -2915,7 +2917,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, @@ -2926,19 +2928,19 @@ 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 path = UriTemplate('/ocs/v2.php/cloud/users/search/by-phone{?location*,search*}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/cloud/users/search/by-phone{?location*,search*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(UsersSearchByPhoneNumbersResponseApplicationJson), @@ -2994,11 +2996,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( @@ -3009,7 +3011,7 @@ class UsersClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -3018,19 +3020,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 path = UriTemplate('/ocs/v2.php/cloud/users/{userId}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/cloud/users/{userId}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(UsersGetUserResponseApplicationJson), @@ -3096,11 +3098,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( @@ -3111,7 +3113,7 @@ class UsersClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -3120,25 +3122,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 path = UriTemplate('/ocs/v2.php/cloud/users/{userId}{?key*,value*}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/cloud/users/{userId}{?key*,value*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(UsersEditUserResponseApplicationJson), @@ -3194,11 +3196,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( @@ -3209,7 +3211,7 @@ class UsersClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -3218,19 +3220,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 path = UriTemplate('/ocs/v2.php/cloud/users/{userId}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/cloud/users/{userId}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(UsersDeleteUserResponseApplicationJson), @@ -3279,11 +3281,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( @@ -3294,7 +3296,7 @@ class UsersClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -3304,15 +3306,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 path = UriTemplate('/ocs/v2.php/cloud/user').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/cloud/user').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(UsersGetCurrentUserResponseApplicationJson), @@ -3361,11 +3363,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( @@ -3376,7 +3378,7 @@ class UsersClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -3386,15 +3388,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 path = UriTemplate('/ocs/v2.php/cloud/user/fields').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/cloud/user/fields').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(UsersGetEditableFieldsResponseApplicationJson), @@ -3450,11 +3452,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( @@ -3465,7 +3467,7 @@ class UsersClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -3474,19 +3476,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 path = UriTemplate('/ocs/v2.php/cloud/user/fields/{userId}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/cloud/user/fields/{userId}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(UsersGetEditableFieldsForUserResponseApplicationJson), @@ -3557,11 +3559,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( @@ -3572,7 +3574,7 @@ class UsersClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -3581,13 +3583,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( @@ -3595,19 +3597,19 @@ 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 path = UriTemplate('/ocs/v2.php/cloud/users/{userId}/{collectionName}{?key*,value*}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/cloud/users/{userId}/{collectionName}{?key*,value*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(UsersEditUserMultiValueResponseApplicationJson), @@ -3663,11 +3665,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( @@ -3678,7 +3680,7 @@ class UsersClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -3687,19 +3689,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 path = UriTemplate('/ocs/v2.php/cloud/users/{userId}/wipe').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/cloud/users/{userId}/wipe').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(UsersWipeUserDevicesResponseApplicationJson), @@ -3755,11 +3757,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( @@ -3770,7 +3772,7 @@ class UsersClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -3779,19 +3781,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 path = UriTemplate('/ocs/v2.php/cloud/users/{userId}/enable').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/cloud/users/{userId}/enable').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(UsersEnableUserResponseApplicationJson), @@ -3847,11 +3849,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( @@ -3862,7 +3864,7 @@ class UsersClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -3871,19 +3873,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 path = UriTemplate('/ocs/v2.php/cloud/users/{userId}/disable').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/cloud/users/{userId}/disable').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(UsersDisableUserResponseApplicationJson), @@ -3939,11 +3941,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( @@ -3954,7 +3956,7 @@ class UsersClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -3963,19 +3965,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 path = UriTemplate('/ocs/v2.php/cloud/users/{userId}/groups').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/cloud/users/{userId}/groups').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(UsersGetUsersGroupsResponseApplicationJson), @@ -4036,11 +4038,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( @@ -4051,7 +4053,7 @@ class UsersClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -4060,23 +4062,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 path = UriTemplate('/ocs/v2.php/cloud/users/{userId}/groups{?groupid*}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/cloud/users/{userId}/groups{?groupid*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(UsersAddToGroupResponseApplicationJson), @@ -4137,11 +4139,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( @@ -4152,7 +4154,7 @@ class UsersClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -4161,22 +4163,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 path = UriTemplate('/ocs/v2.php/cloud/users/{userId}/groups{?groupid*}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/cloud/users/{userId}/groups{?groupid*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(UsersRemoveFromGroupResponseApplicationJson), @@ -4236,11 +4238,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( @@ -4251,7 +4253,7 @@ class UsersClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -4260,19 +4262,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 path = UriTemplate('/ocs/v2.php/cloud/users/{userId}/subadmins').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/cloud/users/{userId}/subadmins').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(UsersGetUserSubAdminGroupsResponseApplicationJson), @@ -4337,11 +4339,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( @@ -4352,7 +4354,7 @@ class UsersClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -4361,22 +4363,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 path = UriTemplate('/ocs/v2.php/cloud/users/{userId}/subadmins{?groupid*}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/cloud/users/{userId}/subadmins{?groupid*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(UsersAddSubAdminResponseApplicationJson), @@ -4441,11 +4443,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( @@ -4456,7 +4458,7 @@ class UsersClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -4465,22 +4467,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 path = UriTemplate('/ocs/v2.php/cloud/users/{userId}/subadmins{?groupid*}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/cloud/users/{userId}/subadmins{?groupid*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(UsersRemoveSubAdminResponseApplicationJson), @@ -4536,11 +4538,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( @@ -4551,7 +4553,7 @@ class UsersClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -4560,19 +4562,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 path = UriTemplate('/ocs/v2.php/cloud/users/{userId}/welcome').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/cloud/users/{userId}/welcome').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _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 4445203e586..eef35e07ffb 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 path = UriTemplate('/index.php/settings/admin/log/download').expand(parameters); + final _path = UriTemplate('/index.php/settings/admin/log/download').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _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 789a6b5ec6b..0f44cb7ed48 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,28 +167,28 @@ 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 path = - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/avatar{?darkTheme*}').expand(parameters); + final _path = + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/avatar{?darkTheme*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(Uint8List), @@ -250,11 +251,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( @@ -265,7 +266,7 @@ class AvatarClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -273,24 +274,24 @@ 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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/avatar').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/avatar').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(AvatarUploadAvatarResponseApplicationJson), @@ -351,11 +352,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( @@ -366,7 +367,7 @@ class AvatarClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -374,24 +375,24 @@ 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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/avatar').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/avatar').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(AvatarDeleteAvatarResponseApplicationJson), @@ -464,11 +465,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( @@ -479,38 +480,38 @@ 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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/avatar/emoji{?emoji*,color*}') - .expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/avatar/emoji{?emoji*,color*}') + .expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(AvatarEmojiAvatarResponseApplicationJson), @@ -571,11 +572,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( @@ -586,7 +587,7 @@ class AvatarClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -594,24 +595,24 @@ 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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/avatar/dark').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/avatar/dark').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(Uint8List), @@ -708,11 +709,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( @@ -723,48 +724,48 @@ 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 path = UriTemplate( + final _path = 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', - path, - headers, - body, + _path, + _headers, + _body, const {201, 400, 401, 413}, ), bodyType: const FullType(BotSendMessageResponseApplicationJson), @@ -843,11 +844,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( @@ -858,38 +859,38 @@ 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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/bot/{token}/reaction/{messageId}{?reaction*}') - .expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/bot/{token}/reaction/{messageId}{?reaction*}') + .expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200, 201, 400, 401, 404}, ), bodyType: const FullType(BotReactResponseApplicationJson), @@ -966,11 +967,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( @@ -981,38 +982,38 @@ 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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/bot/{token}/reaction/{messageId}{?reaction*}') - .expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/bot/{token}/reaction/{messageId}{?reaction*}') + .expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - path, - headers, - body, + _path, + _headers, + _body, const {200, 400, 404, 401}, ), bodyType: const FullType(BotDeleteReactionResponseApplicationJson), @@ -1072,11 +1073,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( @@ -1087,7 +1088,7 @@ class BotClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1097,19 +1098,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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/bot/admin').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/bot/admin').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(BotAdminListBotsResponseApplicationJson), @@ -1170,11 +1171,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( @@ -1185,7 +1186,7 @@ class BotClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1195,23 +1196,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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/bot/{token}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/bot/{token}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(BotListBotsResponseApplicationJson), @@ -1281,11 +1282,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( @@ -1296,7 +1297,7 @@ class BotClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1306,26 +1307,26 @@ 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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/bot/{token}/{botId}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/bot/{token}/{botId}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200, 201}, ), bodyType: const FullType(BotEnableBotResponseApplicationJson), @@ -1393,11 +1394,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( @@ -1408,7 +1409,7 @@ class BotClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1418,26 +1419,26 @@ 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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/bot/{token}/{botId}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/bot/{token}/{botId}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(BotDisableBotResponseApplicationJson), @@ -1521,11 +1522,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( @@ -1536,7 +1537,7 @@ class BreakoutRoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1545,39 +1546,39 @@ 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 path = + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/breakout-rooms/{token}{?mode*,amount*,attendeeMap*}') - .expand(parameters); + .expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(BreakoutRoomConfigureBreakoutRoomsResponseApplicationJson), @@ -1638,11 +1639,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( @@ -1653,7 +1654,7 @@ class BreakoutRoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1663,24 +1664,24 @@ 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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/breakout-rooms/{token}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/breakout-rooms/{token}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(BreakoutRoomRemoveBreakoutRoomsResponseApplicationJson), @@ -1750,11 +1751,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( @@ -1765,7 +1766,7 @@ class BreakoutRoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1774,31 +1775,31 @@ 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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/breakout-rooms/{token}/broadcast{?message*}') - .expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/breakout-rooms/{token}/broadcast{?message*}') + .expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {201}, ), bodyType: const FullType(BreakoutRoomBroadcastChatMessageResponseApplicationJson), @@ -1866,11 +1867,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( @@ -1881,7 +1882,7 @@ class BreakoutRoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1890,29 +1891,30 @@ 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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/breakout-rooms/{token}/attendees{?attendeeMap*}') - .expand(parameters); + final _path = + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/breakout-rooms/{token}/attendees{?attendeeMap*}') + .expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(BreakoutRoomApplyAttendeeMapResponseApplicationJson), @@ -1975,11 +1977,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( @@ -1990,7 +1992,7 @@ class BreakoutRoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -2000,25 +2002,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(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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/breakout-rooms/{token}/request-assistance') - .expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/breakout-rooms/{token}/request-assistance') + .expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(BreakoutRoomRequestAssistanceResponseApplicationJson), @@ -2082,11 +2084,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( @@ -2097,7 +2099,7 @@ class BreakoutRoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -2107,27 +2109,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(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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/breakout-rooms/{token}/request-assistance') - .expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/breakout-rooms/{token}/request-assistance') + .expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(BreakoutRoomResetRequestForAssistanceResponseApplicationJson), @@ -2190,11 +2192,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( @@ -2205,7 +2207,7 @@ class BreakoutRoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -2215,25 +2217,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(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 path = - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/breakout-rooms/{token}/rooms').expand(parameters); + final _path = + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/breakout-rooms/{token}/rooms').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(BreakoutRoomStartBreakoutRoomsResponseApplicationJson), @@ -2296,11 +2298,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( @@ -2311,7 +2313,7 @@ class BreakoutRoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -2321,25 +2323,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(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 path = - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/breakout-rooms/{token}/rooms').expand(parameters); + final _path = + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/breakout-rooms/{token}/rooms').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(BreakoutRoomStopBreakoutRoomsResponseApplicationJson), @@ -2407,11 +2409,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( @@ -2422,7 +2424,7 @@ class BreakoutRoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -2431,29 +2433,29 @@ 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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/breakout-rooms/{token}/switch{?target*}') - .expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/breakout-rooms/{token}/switch{?target*}') + .expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(BreakoutRoomSwitchBreakoutRoomResponseApplicationJson), @@ -2520,11 +2522,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( @@ -2535,7 +2537,7 @@ class CallClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -2543,24 +2545,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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/call/{token}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/call/{token}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(CallGetPeersForCallResponseApplicationJson), @@ -2630,11 +2632,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( @@ -2645,35 +2647,35 @@ 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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/call/{token}{?flags*}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/call/{token}{?flags*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - path, - headers, - body, + _path, + _headers, + _body, const {200, 400, 404}, ), bodyType: const FullType(CallUpdateCallFlagsResponseApplicationJson), @@ -2758,11 +2760,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( @@ -2773,7 +2775,7 @@ class CallClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -2781,39 +2783,39 @@ 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 path = UriTemplate( + final _path = UriTemplate( '/ocs/v2.php/apps/spreed/api/{apiVersion}/call/{token}{?flags*,forcePermissions*,silent*,recordingConsent*}', - ).expand(parameters); + ).expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200, 404}, ), bodyType: const FullType(CallJoinCallResponseApplicationJson), @@ -2881,11 +2883,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( @@ -2896,7 +2898,7 @@ class CallClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -2904,27 +2906,27 @@ 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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/call/{token}{?all*}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/call/{token}{?all*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - path, - headers, - body, + _path, + _headers, + _body, const {200, 404}, ), bodyType: const FullType(CallLeaveCallResponseApplicationJson), @@ -2992,11 +2994,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( @@ -3007,7 +3009,7 @@ class CallClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -3015,27 +3017,27 @@ 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 path = - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/call/{token}/ring/{attendeeId}').expand(parameters); + final _path = + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/call/{token}/ring/{attendeeId}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200, 400}, ), bodyType: const FullType(CallRingAttendeeResponseApplicationJson), @@ -3107,11 +3109,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( @@ -3122,7 +3124,7 @@ class CallClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -3130,27 +3132,27 @@ 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 path = - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/call/{token}/dialout/{attendeeId}').expand(parameters); + final _path = + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/call/{token}/dialout/{attendeeId}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {201, 400, 404, 501}, ), bodyType: const FullType(CallSipDialOutResponseApplicationJson), @@ -3223,11 +3225,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( @@ -3238,7 +3240,7 @@ class CertificateClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -3247,27 +3249,27 @@ 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 path = - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/certificate/expiration{?host*}').expand(parameters); + final _path = + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/certificate/expiration{?host*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(CertificateGetCertificateExpirationResponseApplicationJson), @@ -3389,11 +3391,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( @@ -3404,70 +3406,70 @@ 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 path = UriTemplate( + final _path = 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', - path, - headers, - body, + _path, + _headers, + _body, const {200, 304}, ), bodyType: const FullType(ChatReceiveMessagesResponseApplicationJson), @@ -3563,11 +3565,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( @@ -3578,52 +3580,52 @@ 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 path = UriTemplate( + final _path = 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', - path, - headers, - body, + _path, + _headers, + _body, const {201}, ), bodyType: const FullType(ChatSendMessageResponseApplicationJson), @@ -3688,11 +3690,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( @@ -3703,7 +3705,7 @@ class ChatClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -3713,23 +3715,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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - path, - headers, - body, + _path, + _headers, + _body, const {200, 202}, ), bodyType: const FullType(ChatClearHistoryResponseApplicationJson), @@ -3805,11 +3807,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( @@ -3820,7 +3822,7 @@ class ChatClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -3830,26 +3832,26 @@ 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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}/{messageId}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}/{messageId}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - path, - headers, - body, + _path, + _headers, + _body, const {200, 202}, ), bodyType: const FullType(ChatDeleteMessageResponseApplicationJson), @@ -3924,11 +3926,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( @@ -3939,7 +3941,7 @@ class ChatClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -3947,32 +3949,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; 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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}/{messageId}/context{?limit*}') - .expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}/{messageId}/context{?limit*}') + .expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200, 304}, ), bodyType: const FullType(ChatGetMessageContextResponseApplicationJson), @@ -4040,11 +4042,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( @@ -4055,7 +4057,7 @@ class ChatClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -4065,27 +4067,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(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 path = - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}/{messageId}/reminder').expand(parameters); + final _path = + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}/{messageId}/reminder').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(ChatGetReminderResponseApplicationJson), @@ -4158,11 +4160,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( @@ -4173,7 +4175,7 @@ class ChatClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -4182,31 +4184,31 @@ 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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}/{messageId}/reminder{?timestamp*}') - .expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}/{messageId}/reminder{?timestamp*}') + .expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {201}, ), bodyType: const FullType(ChatSetReminderResponseApplicationJson), @@ -4274,11 +4276,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( @@ -4289,7 +4291,7 @@ class ChatClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -4299,28 +4301,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(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 path = - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}/{messageId}/reminder').expand(parameters); + final _path = + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}/{messageId}/reminder').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - path, - headers, - body, + _path, + _headers, + _body, const {200, 404}, ), bodyType: const FullType(ChatDeleteReminderResponseApplicationJson), @@ -4386,11 +4388,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( @@ -4401,7 +4403,7 @@ class ChatClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -4410,28 +4412,28 @@ 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 path = - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}/read{?lastReadMessage*}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}/read{?lastReadMessage*}') + .expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(ChatSetReadMarkerResponseApplicationJson), @@ -4492,11 +4494,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( @@ -4507,7 +4509,7 @@ class ChatClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -4517,23 +4519,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(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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}/read').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}/read').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(ChatMarkUnreadResponseApplicationJson), @@ -4609,11 +4611,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( @@ -4624,44 +4626,44 @@ 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 path = + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}/mentions{?search*,limit*,includeStatus*}') - .expand(parameters); + .expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(ChatMentionsResponseApplicationJson), @@ -4739,11 +4741,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( @@ -4754,46 +4756,46 @@ 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 path = UriTemplate( + final _path = UriTemplate( '/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}/share{?objectType*,lastKnownMessageId*,limit*}', - ).expand(parameters); + ).expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(ChatGetObjectsSharedInRoomResponseApplicationJson), @@ -4891,11 +4893,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( @@ -4906,52 +4908,52 @@ 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 path = UriTemplate( + final _path = 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', - path, - headers, - body, + _path, + _headers, + _body, const {201}, ), bodyType: const FullType(ChatShareObjectToChatResponseApplicationJson), @@ -5019,11 +5021,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( @@ -5034,7 +5036,7 @@ class ChatClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -5042,31 +5044,31 @@ 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 path = - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}/share/overview{?limit*}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}/share/overview{?limit*}') + .expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(ChatGetObjectsSharedInRoomOverviewResponseApplicationJson), @@ -5135,11 +5137,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( @@ -5150,7 +5152,7 @@ class FederationClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -5159,24 +5161,25 @@ 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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/federation/invitation/{id}').expand(parameters); + final _path = + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/federation/invitation/{id}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(FederationAcceptShareResponseApplicationJson), @@ -5239,11 +5242,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( @@ -5254,7 +5257,7 @@ class FederationClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -5263,24 +5266,25 @@ 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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/federation/invitation/{id}').expand(parameters); + final _path = + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/federation/invitation/{id}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(FederationRejectShareResponseApplicationJson), @@ -5336,11 +5340,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( @@ -5351,7 +5355,7 @@ class FederationClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -5362,19 +5366,19 @@ 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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/federation/invitation').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/federation/invitation').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(FederationGetSharesResponseApplicationJson), @@ -5453,11 +5457,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( @@ -5468,7 +5472,7 @@ class FilesIntegrationClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -5478,24 +5482,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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/file/{fileId}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/file/{fileId}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(FilesIntegrationGetRoomByFileIdResponseApplicationJson), @@ -5570,11 +5574,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( @@ -5585,7 +5589,7 @@ class FilesIntegrationClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -5593,26 +5597,26 @@ 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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/publicshare/{shareToken}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/publicshare/{shareToken}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(FilesIntegrationGetRoomByShareTokenResponseApplicationJson), @@ -5688,11 +5692,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( @@ -5703,36 +5707,36 @@ 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 path = - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/guest/{token}/name{?displayName*}').expand(parameters); + final _path = + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/guest/{token}/name{?displayName*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200, 403, 404}, ), bodyType: const FullType(GuestSetDisplayNameResponseApplicationJson), @@ -5827,11 +5831,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( @@ -5842,7 +5846,7 @@ class HostedSignalingServerClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -5851,40 +5855,40 @@ 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 path = UriTemplate( + final _path = 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', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(HostedSignalingServerRequestTrialResponseApplicationJson), @@ -5948,11 +5952,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( @@ -5963,7 +5967,7 @@ class HostedSignalingServerClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -5976,20 +5980,20 @@ 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 path = - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/hostedsignalingserver/delete').expand(parameters); + final _path = + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/hostedsignalingserver/delete').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - path, - headers, - body, + _path, + _headers, + _body, const {204}, ), bodyType: const FullType(HostedSignalingServerDeleteAccountResponseApplicationJson), @@ -6056,11 +6060,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( @@ -6071,7 +6075,7 @@ class MatterbridgeClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -6081,24 +6085,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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/bridge/{token}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/bridge/{token}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(MatterbridgeGetBridgeOfRoomResponseApplicationJson), @@ -6171,11 +6175,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( @@ -6186,7 +6190,7 @@ class MatterbridgeClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -6195,11 +6199,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, @@ -6209,25 +6213,25 @@ 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 path = - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/bridge/{token}{?enabled*,parts*}').expand(parameters); + final _path = + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/bridge/{token}{?enabled*,parts*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(MatterbridgeEditBridgeOfRoomResponseApplicationJson), @@ -6290,11 +6294,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( @@ -6305,7 +6309,7 @@ class MatterbridgeClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -6315,24 +6319,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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/bridge/{token}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/bridge/{token}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(MatterbridgeDeleteBridgeOfRoomResponseApplicationJson), @@ -6393,11 +6397,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( @@ -6408,7 +6412,7 @@ class MatterbridgeClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -6418,26 +6422,26 @@ 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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/bridge/{token}/process').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/bridge/{token}/process').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(MatterbridgeGetBridgeProcessStateResponseApplicationJson), @@ -6505,11 +6509,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( @@ -6520,7 +6524,7 @@ class MatterbridgeSettingsClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -6533,19 +6537,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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/bridge').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/bridge').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(MatterbridgeSettingsStopAllBridgesResponseApplicationJson), @@ -6609,11 +6613,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( @@ -6624,7 +6628,7 @@ class MatterbridgeSettingsClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -6637,19 +6641,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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/bridge/version').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/bridge/version').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(MatterbridgeSettingsGetMatterbridgeVersionResponseApplicationJson), @@ -6738,11 +6742,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( @@ -6753,45 +6757,45 @@ 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 path = UriTemplate( + final _path = 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', - path, - headers, - body, + _path, + _headers, + _body, const {201}, ), bodyType: const FullType(PollCreatePollResponseApplicationJson), @@ -6859,11 +6863,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( @@ -6874,7 +6878,7 @@ class PollClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -6882,26 +6886,26 @@ 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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/poll/{token}/{pollId}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/poll/{token}/{pollId}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(PollShowPollResponseApplicationJson), @@ -6976,11 +6980,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( @@ -6991,7 +6995,7 @@ class PollClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -6999,31 +7003,31 @@ 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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/poll/{token}/{pollId}{?optionIds%5B%5D*}') - .expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/poll/{token}/{pollId}{?optionIds%5B%5D*}') + .expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(PollVotePollResponseApplicationJson), @@ -7097,11 +7101,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( @@ -7112,7 +7116,7 @@ class PollClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -7120,26 +7124,26 @@ 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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/poll/{token}/{pollId}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/poll/{token}/{pollId}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(PollClosePollResponseApplicationJson), @@ -7214,11 +7218,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( @@ -7229,32 +7233,32 @@ 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 path = - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/publicshareauth{?shareToken*}').expand(parameters); + final _path = + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/publicshareauth{?shareToken*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {201}, ), bodyType: const FullType(PublicShareAuthCreateRoomResponseApplicationJson), @@ -7333,11 +7337,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( @@ -7348,7 +7352,7 @@ class ReactionClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -7356,31 +7360,31 @@ 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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/reaction/{token}/{messageId}{?reaction*}') - .expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/reaction/{token}/{messageId}{?reaction*}') + .expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(ReactionGetReactionsResponseApplicationJson), @@ -7457,11 +7461,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( @@ -7472,38 +7476,38 @@ 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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/reaction/{token}/{messageId}{?reaction*}') - .expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/reaction/{token}/{messageId}{?reaction*}') + .expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200, 201}, ), bodyType: const FullType(ReactionReactResponseApplicationJson), @@ -7578,11 +7582,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( @@ -7593,38 +7597,38 @@ 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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/reaction/{token}/{messageId}{?reaction*}') - .expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/reaction/{token}/{messageId}{?reaction*}') + .expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(ReactionDeleteResponseApplicationJson), @@ -7699,11 +7703,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( @@ -7714,7 +7718,7 @@ class RecordingClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -7723,25 +7727,25 @@ 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 path = - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/recording/welcome/{serverId}').expand(parameters); + final _path = + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/recording/welcome/{serverId}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(RecordingGetWelcomeMessageResponseApplicationJson), @@ -7809,11 +7813,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( @@ -7824,7 +7828,7 @@ class RecordingClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -7833,27 +7837,28 @@ 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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/recording/{token}{?status*}').expand(parameters); + final _path = + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/recording/{token}{?status*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(RecordingStartResponseApplicationJson), @@ -7916,11 +7921,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( @@ -7931,7 +7936,7 @@ class RecordingClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -7941,23 +7946,23 @@ 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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/recording/{token}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/recording/{token}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(RecordingStopResponseApplicationJson), @@ -8027,11 +8032,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( @@ -8042,35 +8047,35 @@ 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 path = - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/recording/{token}/store{?owner*}').expand(parameters); + final _path = + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/recording/{token}/store{?owner*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(RecordingStoreResponseApplicationJson), @@ -8138,11 +8143,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( @@ -8153,7 +8158,7 @@ class RecordingClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -8162,29 +8167,29 @@ 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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/recording/{token}/notification{?timestamp*}') - .expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/recording/{token}/notification{?timestamp*}') + .expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(RecordingNotificationDismissResponseApplicationJson), @@ -8257,11 +8262,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( @@ -8272,7 +8277,7 @@ class RecordingClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -8281,33 +8286,33 @@ 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 path = + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/recording/{token}/share-chat{?fileId*,timestamp*}') - .expand(parameters); + .expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(RecordingShareToChatResponseApplicationJson), @@ -8384,11 +8389,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( @@ -8399,7 +8404,7 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -8409,33 +8414,33 @@ 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 path = + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room{?noStatusUpdate*,includeStatus*,modifiedSince*}') - .expand(parameters); + .expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(RoomGetRoomsResponseApplicationJson), @@ -8529,11 +8534,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( @@ -8544,7 +8549,7 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -8553,45 +8558,45 @@ 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 path = UriTemplate( + final _path = 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', - path, - headers, - body, + _path, + _headers, + _body, const {200, 201}, ), bodyType: const FullType(RoomCreateRoomResponseApplicationJson), @@ -8652,11 +8657,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( @@ -8667,7 +8672,7 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -8677,24 +8682,24 @@ 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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/listed-room{?searchTerm*}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/listed-room{?searchTerm*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(RoomGetListedRoomsResponseApplicationJson), @@ -8757,11 +8762,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( @@ -8772,7 +8777,7 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -8783,20 +8788,20 @@ 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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/note-to-self').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/note-to-self').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(RoomGetNoteToSelfConversationResponseApplicationJson), @@ -8861,11 +8866,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( @@ -8876,7 +8881,7 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -8884,23 +8889,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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(RoomGetSingleRoomResponseApplicationJson), @@ -8968,11 +8973,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( @@ -8983,34 +8988,34 @@ 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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}{?roomName*}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}{?roomName*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - path, - headers, - body, + _path, + _headers, + _body, const {200, 400}, ), bodyType: const FullType(RoomRenameRoomResponseApplicationJson), @@ -9073,11 +9078,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( @@ -9088,7 +9093,7 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -9096,23 +9101,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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - path, - headers, - body, + _path, + _headers, + _body, const {200, 400}, ), bodyType: const FullType(RoomDeleteRoomResponseApplicationJson), @@ -9175,11 +9180,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( @@ -9190,7 +9195,7 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -9200,24 +9205,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(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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/breakout-rooms').expand(parameters); + final _path = + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/breakout-rooms').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(RoomGetBreakoutRoomsResponseApplicationJson), @@ -9280,11 +9286,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( @@ -9295,7 +9301,7 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -9305,23 +9311,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(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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/public').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/public').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200, 400}, ), bodyType: const FullType(RoomMakePublicResponseApplicationJson), @@ -9384,11 +9390,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( @@ -9399,7 +9405,7 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -9409,23 +9415,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(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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/public').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/public').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - path, - headers, - body, + _path, + _headers, + _body, const {200, 400}, ), bodyType: const FullType(RoomMakePrivateResponseApplicationJson), @@ -9493,11 +9499,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( @@ -9508,36 +9514,36 @@ 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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/description{?description*}') - .expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/description{?description*}') + .expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - path, - headers, - body, + _path, + _headers, + _body, const {200, 400}, ), bodyType: const FullType(RoomSetDescriptionResponseApplicationJson), @@ -9605,11 +9611,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( @@ -9620,7 +9626,7 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -9629,28 +9635,28 @@ 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 path = - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/read-only{?state*}').expand(parameters); + final _path = + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/read-only{?state*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - path, - headers, - body, + _path, + _headers, + _body, const {200, 400}, ), bodyType: const FullType(RoomSetReadOnlyResponseApplicationJson), @@ -9718,11 +9724,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( @@ -9733,7 +9739,7 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -9742,28 +9748,28 @@ 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 path = - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/listable{?scope*}').expand(parameters); + final _path = + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/listable{?scope*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - path, - headers, - body, + _path, + _headers, + _body, const {200, 400}, ), bodyType: const FullType(RoomSetListableResponseApplicationJson), @@ -9833,11 +9839,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( @@ -9848,35 +9854,35 @@ 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 path = - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/password{?password*}').expand(parameters); + final _path = + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/password{?password*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - path, - headers, - body, + _path, + _headers, + _body, const {200, 403}, ), bodyType: const FullType(RoomSetPasswordResponseApplicationJson), @@ -9949,11 +9955,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( @@ -9964,40 +9970,40 @@ 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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/permissions/{mode}{?permissions*}') - .expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/permissions/{mode}{?permissions*}') + .expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(RoomSetPermissionsResponseApplicationJson), @@ -10065,11 +10071,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( @@ -10080,7 +10086,7 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -10088,29 +10094,29 @@ 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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/participants{?includeStatus*}') - .expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/participants{?includeStatus*}') + .expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(RoomGetParticipantsResponseApplicationJson), @@ -10187,11 +10193,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( @@ -10202,7 +10208,7 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -10211,34 +10217,34 @@ 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 path = + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/participants{?newParticipant*,source*}') - .expand(parameters); + .expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(RoomAddParticipantToRoomResponseApplicationJson), @@ -10311,11 +10317,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( @@ -10326,7 +10332,7 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -10334,31 +10340,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(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 path = UriTemplate( + final _path = UriTemplate( '/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/breakout-rooms/participants{?includeStatus*}', - ).expand(parameters); + ).expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(RoomGetBreakoutRoomParticipantsResponseApplicationJson), @@ -10423,11 +10429,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( @@ -10438,7 +10444,7 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -10448,25 +10454,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(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 path = - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/participants/self').expand(parameters); + final _path = + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/participants/self').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - path, - headers, - body, + _path, + _headers, + _body, const {200, 400, 404}, ), bodyType: const FullType(RoomRemoveSelfFromRoomResponseApplicationJson), @@ -10538,11 +10544,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( @@ -10553,36 +10559,36 @@ 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 path = - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/attendees{?attendeeId*}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/attendees{?attendeeId*}') + .expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - path, - headers, - body, + _path, + _headers, + _body, const {200, 400, 403, 404}, ), bodyType: const FullType(RoomRemoveAttendeeFromRoomResponseApplicationJson), @@ -10664,11 +10670,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( @@ -10679,43 +10685,43 @@ 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 path = UriTemplate( + final _path = 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', - path, - headers, - body, + _path, + _headers, + _body, const {200, 400, 403, 404}, ), bodyType: const FullType(RoomSetAttendeePermissionsResponseApplicationJson), @@ -10788,11 +10794,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( @@ -10803,40 +10809,40 @@ 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 path = UriTemplate( + final _path = 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', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(RoomSetAllAttendeesPermissionsResponseApplicationJson), @@ -10913,11 +10919,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( @@ -10928,7 +10934,7 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -10936,33 +10942,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 $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 path = + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/participants/active{?password*,force*}') - .expand(parameters); + .expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(RoomJoinRoomResponseApplicationJson), @@ -11023,11 +11029,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( @@ -11038,7 +11044,7 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -11046,24 +11052,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(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 path = - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/participants/active').expand(parameters); + final _path = + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/participants/active').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(RoomLeaveRoomResponseApplicationJson), @@ -11131,11 +11137,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( @@ -11146,7 +11152,7 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -11156,29 +11162,29 @@ 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 path = UriTemplate( + final _path = UriTemplate( '/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/participants/resend-invitations{?attendeeId*}', - ).expand(parameters); + ).expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200, 404}, ), bodyType: const FullType(RoomResendInvitationsResponseApplicationJson), @@ -11246,11 +11252,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( @@ -11261,36 +11267,36 @@ 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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/participants/state{?state*}') - .expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/participants/state{?state*}') + .expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(RoomSetSessionStateResponseApplicationJson), @@ -11362,11 +11368,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( @@ -11377,36 +11383,36 @@ 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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/moderators{?attendeeId*}') - .expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/moderators{?attendeeId*}') + .expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200, 400, 403, 404}, ), bodyType: const FullType(RoomPromoteModeratorResponseApplicationJson), @@ -11478,11 +11484,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( @@ -11493,36 +11499,36 @@ 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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/moderators{?attendeeId*}') - .expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/moderators{?attendeeId*}') + .expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - path, - headers, - body, + _path, + _headers, + _body, const {200, 400, 403, 404}, ), bodyType: const FullType(RoomDemoteModeratorResponseApplicationJson), @@ -11583,11 +11589,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( @@ -11598,7 +11604,7 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -11608,24 +11614,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(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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/favorite').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/favorite').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(RoomAddToFavoritesResponseApplicationJson), @@ -11686,11 +11692,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( @@ -11701,7 +11707,7 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -11711,24 +11717,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(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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/favorite').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/favorite').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(RoomRemoveFromFavoritesResponseApplicationJson), @@ -11796,11 +11802,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( @@ -11811,7 +11817,7 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -11820,29 +11826,29 @@ 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 path = - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/notify{?level*}').expand(parameters); + final _path = + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/notify{?level*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200, 400}, ), bodyType: const FullType(RoomSetNotificationLevelResponseApplicationJson), @@ -11910,11 +11916,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( @@ -11925,7 +11931,7 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -11934,29 +11940,29 @@ 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 path = - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/notify-calls{?level*}').expand(parameters); + final _path = + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/notify-calls{?level*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200, 400}, ), bodyType: const FullType(RoomSetNotificationCallsResponseApplicationJson), @@ -12029,11 +12035,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( @@ -12044,7 +12050,7 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -12053,31 +12059,31 @@ 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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/webinar/lobby{?state*,timer*}') - .expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/webinar/lobby{?state*,timer*}') + .expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(RoomSetLobbyResponseApplicationJson), @@ -12151,11 +12157,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( @@ -12166,7 +12172,7 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -12175,28 +12181,28 @@ 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 path = - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/webinar/sip{?state*}').expand(parameters); + final _path = + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/webinar/sip{?state*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(RoomSetsipEnabledResponseApplicationJson), @@ -12266,11 +12272,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( @@ -12281,7 +12287,7 @@ class RoomClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -12290,30 +12296,30 @@ 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 path = + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/recording-consent{?recordingConsent*}') - .expand(parameters); + .expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(RoomSetRecordingConsentResponseApplicationJson), @@ -12381,11 +12387,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( @@ -12396,36 +12402,36 @@ 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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/message-expiration{?seconds*}') - .expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/message-expiration{?seconds*}') + .expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(RoomSetMessageExpirationResponseApplicationJson), @@ -12506,11 +12512,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( @@ -12521,7 +12527,7 @@ class SettingsClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -12531,34 +12537,34 @@ 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 path = UriTemplate( + final _path = 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', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(SettingsSetsipSettingsResponseApplicationJson), @@ -12626,11 +12632,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( @@ -12641,7 +12647,7 @@ class SettingsClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -12650,30 +12656,31 @@ 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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/settings/user{?key*,value*}').expand(parameters); + final _path = + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/settings/user{?key*,value*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200, 400}, ), bodyType: const FullType(SettingsSetUserSettingResponseApplicationJson), @@ -12744,11 +12751,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( @@ -12759,7 +12766,7 @@ class SignalingClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -12767,24 +12774,25 @@ 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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/signaling/settings{?token*}').expand(parameters); + final _path = + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/signaling/settings{?token*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(SignalingGetSettingsResponseApplicationJson), @@ -12855,11 +12863,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( @@ -12870,7 +12878,7 @@ class SignalingClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -12879,25 +12887,25 @@ 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 path = - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/signaling/welcome/{serverId}').expand(parameters); + final _path = + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/signaling/welcome/{serverId}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(SignalingGetWelcomeMessageResponseApplicationJson), @@ -12964,11 +12972,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( @@ -12979,7 +12987,7 @@ class SignalingClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } @@ -12987,24 +12995,24 @@ 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 path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/signaling/{token}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/signaling/{token}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200, 404, 409}, ), bodyType: const FullType(SignalingPullMessagesResponseApplicationJson), @@ -13072,11 +13080,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( @@ -13087,36 +13095,36 @@ 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 path = - UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/signaling/{token}{?messages*}').expand(parameters); + final _path = + UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/signaling/{token}{?messages*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(SignalingSendMessagesResponseApplicationJson), @@ -13171,11 +13179,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( @@ -13186,7 +13194,7 @@ class TempAvatarClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -13196,15 +13204,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 path = UriTemplate('/ocs/v2.php/apps/spreed/temp-user-avatar').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/temp-user-avatar').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(TempAvatarPostAvatarResponseApplicationJson), @@ -13255,11 +13263,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( @@ -13270,7 +13278,7 @@ class TempAvatarClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -13280,15 +13288,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 path = UriTemplate('/ocs/v2.php/apps/spreed/temp-user-avatar').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/spreed/temp-user-avatar').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - path, - headers, - body, + _path, + _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 08e3885613f..c194779146e 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 path = UriTemplate('/index.php/apps/theming/favicon/{app}').expand(parameters); + final _path = UriTemplate('/index.php/apps/theming/favicon/{app}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _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 path = UriTemplate('/index.php/apps/theming/icon/{app}').expand(parameters); + final _path = UriTemplate('/index.php/apps/theming/icon/{app}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _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 path = UriTemplate('/index.php/apps/theming/img/{app}/{image}').expand(parameters); + final _path = UriTemplate('/index.php/apps/theming/img/{app}/{image}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _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,30 +387,31 @@ 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 path = UriTemplate('/index.php/apps/theming/theme/{themeId}.css{?plain*,withCustomCss*}').expand(parameters); + final _path = + UriTemplate('/index.php/apps/theming/theme/{themeId}.css{?plain*,withCustomCss*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(String), @@ -469,11 +471,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( @@ -484,26 +486,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 path = UriTemplate('/index.php/apps/theming/image/{key}{?useSvg*}').expand(parameters); + final _path = UriTemplate('/index.php/apps/theming/image/{key}{?useSvg*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(Uint8List), @@ -550,11 +552,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( @@ -565,22 +567,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 path = UriTemplate('/index.php/apps/theming/manifest/{app}').expand(parameters); + final _path = UriTemplate('/index.php/apps/theming/manifest/{app}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(ThemingGetManifestResponseApplicationJson), @@ -635,11 +637,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( @@ -650,7 +652,7 @@ class UserThemeClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -660,15 +662,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 path = UriTemplate('/index.php/apps/theming/background').expand(parameters); + final _path = UriTemplate('/index.php/apps/theming/background').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(Uint8List), @@ -738,11 +740,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( @@ -753,7 +755,7 @@ class UserThemeClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -762,26 +764,26 @@ 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 path = UriTemplate('/index.php/apps/theming/background/{type}{?value*,color*}').expand(parameters); + final _path = UriTemplate('/index.php/apps/theming/background/{type}{?value*,color*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'post', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(Background), @@ -828,11 +830,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( @@ -843,7 +845,7 @@ class UserThemeClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -853,15 +855,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 path = UriTemplate('/index.php/apps/theming/background/custom').expand(parameters); + final _path = UriTemplate('/index.php/apps/theming/background/custom').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(Background), @@ -921,11 +923,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( @@ -936,7 +938,7 @@ class UserThemeClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -945,19 +947,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 path = UriTemplate('/ocs/v2.php/apps/theming/api/v1/theme/{themeId}/enable').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/theming/api/v1/theme/{themeId}/enable').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(UserThemeEnableThemeResponseApplicationJson), @@ -1017,11 +1019,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( @@ -1032,7 +1034,7 @@ class UserThemeClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -1041,19 +1043,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 path = UriTemplate('/ocs/v2.php/apps/theming/api/v1/theme/{themeId}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/theming/api/v1/theme/{themeId}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - path, - headers, - body, + _path, + _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 1356a594098..530796a8cf2 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,24 +128,24 @@ 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 path = - UriTemplate('/ocs/v2.php/apps/updatenotification/api/{apiVersion}/applist/{newVersion}').expand(parameters); + final _path = + UriTemplate('/ocs/v2.php/apps/updatenotification/api/{apiVersion}/applist/{newVersion}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _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 181c6c00376..f6406741cf7 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 path = UriTemplate('/index.php/apps/uppush').expand(parameters); + final _path = UriTemplate('/index.php/apps/uppush').expand(_parameters); return DynamiteRawResponse( response: executeRequest( 'get', - path, - headers, - body, + _path, + _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 path = UriTemplate('/index.php/apps/uppush/keepalive{?keepalive*}').expand(parameters); + final _path = UriTemplate('/index.php/apps/uppush/keepalive{?keepalive*}').expand(_parameters); return DynamiteRawResponse( response: executeRequest( 'put', - path, - headers, - body, + _path, + _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 path = UriTemplate('/index.php/apps/uppush/device{?deviceName*}').expand(parameters); + final _path = UriTemplate('/index.php/apps/uppush/device{?deviceName*}').expand(_parameters); return DynamiteRawResponse( response: executeRequest( 'put', - path, - headers, - body, + _path, + _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 path = UriTemplate('/index.php/apps/uppush/device/{deviceId}').expand(parameters); + final _path = UriTemplate('/index.php/apps/uppush/device/{deviceId}').expand(_parameters); return DynamiteRawResponse( response: executeRequest( 'get', - path, - headers, - body, + _path, + _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 path = UriTemplate('/index.php/apps/uppush/device/{deviceId}').expand(parameters); + final _path = UriTemplate('/index.php/apps/uppush/device/{deviceId}').expand(_parameters); return DynamiteRawResponse( response: executeRequest( 'delete', - path, - headers, - body, + _path, + _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 path = UriTemplate('/index.php/apps/uppush/app{?deviceId*,appName*}').expand(parameters); + final _path = UriTemplate('/index.php/apps/uppush/app{?deviceId*,appName*}').expand(_parameters); return DynamiteRawResponse( response: executeRequest( 'put', - path, - headers, - body, + _path, + _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 path = UriTemplate('/index.php/apps/uppush/app/{token}').expand(parameters); + final _path = UriTemplate('/index.php/apps/uppush/app/{token}').expand(_parameters); return DynamiteRawResponse( response: executeRequest( 'delete', - path, - headers, - body, + _path, + _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 path = UriTemplate('/index.php/apps/uppush/push/{token}').expand(parameters); + final _path = UriTemplate('/index.php/apps/uppush/push/{token}').expand(_parameters); return DynamiteRawResponse( response: executeRequest( 'get', - path, - headers, - body, + _path, + _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 path = UriTemplate('/index.php/apps/uppush/push/{token}').expand(parameters); + final _path = UriTemplate('/index.php/apps/uppush/push/{token}').expand(_parameters); return DynamiteRawResponse( response: executeRequest( 'post', - path, - headers, - body, + _path, + _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 path = UriTemplate('/index.php/apps/uppush/gateway/matrix').expand(parameters); + final _path = UriTemplate('/index.php/apps/uppush/gateway/matrix').expand(_parameters); return DynamiteRawResponse( response: executeRequest( 'get', - path, - headers, - body, + _path, + _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 path = UriTemplate('/index.php/apps/uppush/gateway/matrix').expand(parameters); + final _path = UriTemplate('/index.php/apps/uppush/gateway/matrix').expand(_parameters); return DynamiteRawResponse( response: executeRequest( 'post', - path, - headers, - body, + _path, + _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 9aec5003c94..8ec7b910082 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 path = UriTemplate('/ocs/v2.php/apps/user_status/api/v1/heartbeat{?status*}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/user_status/api/v1/heartbeat{?status*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - path, - headers, - body, + _path, + _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 path = UriTemplate('/ocs/v2.php/apps/user_status/api/v1/predefined_statuses').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/user_status/api/v1/predefined_statuses').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _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,22 +320,22 @@ 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 path = UriTemplate('/ocs/v2.php/apps/user_status/api/v1/statuses{?limit*,offset*}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/user_status/api/v1/statuses{?limit*,offset*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(StatusesFindAllResponseApplicationJson), @@ -392,11 +393,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( @@ -407,7 +408,7 @@ class StatusesClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -416,19 +417,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 path = UriTemplate('/ocs/v2.php/apps/user_status/api/v1/statuses/{userId}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/user_status/api/v1/statuses/{userId}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(StatusesFindResponseApplicationJson), @@ -483,11 +484,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( @@ -498,7 +499,7 @@ class UserStatusClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -508,15 +509,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 path = UriTemplate('/ocs/v2.php/apps/user_status/api/v1/user_status').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/user_status/api/v1/user_status').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(UserStatusGetStatusResponseApplicationJson), @@ -574,11 +575,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( @@ -589,7 +590,7 @@ class UserStatusClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -598,19 +599,20 @@ 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 path = UriTemplate('/ocs/v2.php/apps/user_status/api/v1/user_status/status{?statusType*}').expand(parameters); + final _path = + UriTemplate('/ocs/v2.php/apps/user_status/api/v1/user_status/status{?statusType*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(UserStatusSetStatusResponseApplicationJson), @@ -673,11 +675,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( @@ -688,7 +690,7 @@ class UserStatusClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -697,23 +699,24 @@ 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 path = UriTemplate('/ocs/v2.php/apps/user_status/api/v1/user_status/message/predefined{?messageId*,clearAt*}') - .expand(parameters); + final _path = + UriTemplate('/ocs/v2.php/apps/user_status/api/v1/user_status/message/predefined{?messageId*,clearAt*}') + .expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(UserStatusSetPredefinedMessageResponseApplicationJson), @@ -781,11 +784,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( @@ -796,7 +799,7 @@ class UserStatusClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -805,27 +808,27 @@ 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 path = + final _path = 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', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(UserStatusSetCustomMessageResponseApplicationJson), @@ -874,11 +877,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( @@ -889,7 +892,7 @@ class UserStatusClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -899,15 +902,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 path = UriTemplate('/ocs/v2.php/apps/user_status/api/v1/user_status/message').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/user_status/api/v1/user_status/message').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(UserStatusClearMessageResponseApplicationJson), @@ -963,11 +966,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( @@ -978,7 +981,7 @@ class UserStatusClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -987,19 +990,19 @@ 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 path = UriTemplate('/ocs/v2.php/apps/user_status/api/v1/user_status/revert/{messageId}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/user_status/api/v1/user_status/revert/{messageId}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'delete', - path, - headers, - body, + _path, + _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 2b2d88b353e..30783dd0ce6 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 path = UriTemplate('/ocs/v2.php/apps/weather_status/api/v1/mode{?mode*}').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/weather_status/api/v1/mode{?mode*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - path, - headers, - body, + _path, + _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 path = UriTemplate('/ocs/v2.php/apps/weather_status/api/v1/use-personal').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/weather_status/api/v1/use-personal').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - path, - headers, - body, + _path, + _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 path = UriTemplate('/ocs/v2.php/apps/weather_status/api/v1/location').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/weather_status/api/v1/location').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _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,25 +385,26 @@ 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 path = UriTemplate('/ocs/v2.php/apps/weather_status/api/v1/location{?address*,lat*,lon*}').expand(parameters); + final _path = + UriTemplate('/ocs/v2.php/apps/weather_status/api/v1/location{?address*,lat*,lon*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(WeatherStatusSetLocationResponseApplicationJson), @@ -453,11 +455,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( @@ -468,7 +470,7 @@ class WeatherStatusClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -478,15 +480,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 path = UriTemplate('/ocs/v2.php/apps/weather_status/api/v1/forecast').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/weather_status/api/v1/forecast').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(WeatherStatusGetForecastResponseApplicationJson), @@ -535,11 +537,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( @@ -550,7 +552,7 @@ class WeatherStatusClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -560,15 +562,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 path = UriTemplate('/ocs/v2.php/apps/weather_status/api/v1/favorites').expand(parameters); + final _path = UriTemplate('/ocs/v2.php/apps/weather_status/api/v1/favorites').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'get', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(WeatherStatusGetFavoritesResponseApplicationJson), @@ -624,11 +626,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( @@ -639,7 +641,7 @@ class WeatherStatusClient { ); if (authentication != null) { - headers.addAll( + _headers.addAll( authentication.headers, ); } else { @@ -649,19 +651,20 @@ 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 path = UriTemplate('/ocs/v2.php/apps/weather_status/api/v1/favorites{?favorites%5B%5D*}').expand(parameters); + final _path = + UriTemplate('/ocs/v2.php/apps/weather_status/api/v1/favorites{?favorites%5B%5D*}').expand(_parameters); return DynamiteRawResponse( response: _rootClient.executeRequest( 'put', - path, - headers, - body, + _path, + _headers, + _body, const {200}, ), bodyType: const FullType(WeatherStatusSetFavoritesResponseApplicationJson),