From d547b1a07f552ba6a4fb1168f58c3f665388e032 Mon Sep 17 00:00:00 2001 From: provokateurin Date: Tue, 6 Aug 2024 08:39:05 +0200 Subject: [PATCH 1/2] refactor(neon_framework): Pass full request in mockServer Signed-off-by: provokateurin --- .../neon/neon_dashboard/test/bloc_test.dart | 10 +++---- .../neon_notifications/test/bloc_test.dart | 6 ++-- packages/neon/neon_talk/test/bloc_test.dart | 4 +-- .../test/create_room_dialog_test.dart | 6 ++-- .../neon_talk/test/message_input_test.dart | 4 +-- .../neon/neon_talk/test/room_bloc_test.dart | 28 +++++++++---------- .../lib/src/testing/mock_server.dart | 5 ++-- .../neon_framework/test/apps_bloc_test.dart | 2 +- .../test/autocomplete_test.dart | 2 +- .../test/maintenance_mode_bloc_test.dart | 2 +- .../test/references_bloc_test.dart | 4 +-- .../test/unified_search_bloc_test.dart | 6 ++-- .../test/user_details_bloc_test.dart | 2 +- .../test/user_status_bloc_test.dart | 22 +++++++-------- .../test/weather_status_bloc_test.dart | 8 +++--- 15 files changed, 55 insertions(+), 56 deletions(-) diff --git a/packages/neon/neon_dashboard/test/bloc_test.dart b/packages/neon/neon_dashboard/test/bloc_test.dart index 8d418aba1b6..c59f65ff244 100644 --- a/packages/neon/neon_dashboard/test/bloc_test.dart +++ b/packages/neon/neon_dashboard/test/bloc_test.dart @@ -10,7 +10,7 @@ import 'package:neon_framework/testing.dart'; Account mockDashboardAccount() => mockServer({ RegExp(r'/ocs/v2\.php/apps/dashboard/api/v1/widgets'): { - 'get': (match, bodyBytes) => Response( + 'get': (match, request) => Response( json.encode({ 'ocs': { 'meta': {'status': '', 'statuscode': 0}, @@ -39,8 +39,8 @@ Account mockDashboardAccount() => mockServer({ ), }, RegExp(r'/ocs/v2\.php/apps/dashboard/api/v1/widget-items'): { - 'get': (match, bodyBytes) { - final data = json.decode(utf8.decode(bodyBytes)) as Map; + 'get': (match, request) { + final data = json.decode(request.body) as Map; return Response( json.encode({ @@ -78,8 +78,8 @@ Account mockDashboardAccount() => mockServer({ }, }, RegExp(r'/ocs/v2\.php/apps/dashboard/api/v2/widget-items'): { - 'get': (match, bodyBytes) { - final data = json.decode(utf8.decode(bodyBytes)) as Map; + 'get': (match, request) { + final data = json.decode(request.body) as Map; return Response( json.encode({ diff --git a/packages/neon/neon_notifications/test/bloc_test.dart b/packages/neon/neon_notifications/test/bloc_test.dart index 2ab0f401ab8..40fff7a08d9 100644 --- a/packages/neon/neon_notifications/test/bloc_test.dart +++ b/packages/neon/neon_notifications/test/bloc_test.dart @@ -26,7 +26,7 @@ Account mockNotificationsAccount() { return mockServer({ RegExp(r'/ocs/v2\.php/apps/notifications/api/v2/notifications/([0-9]+)'): { - 'delete': (match, bodyBytes) { + 'delete': (match, request) { final id = int.parse(match.group(1)!); notifications.removeWhere((n) => n['notification_id'] == id); @@ -43,7 +43,7 @@ Account mockNotificationsAccount() { }, }, RegExp(r'/ocs/v2\.php/apps/notifications/api/v2/notifications'): { - 'get': (match, bodyBytes) => Response( + 'get': (match, request) => Response( json.encode({ 'ocs': { 'meta': {'status': '', 'statuscode': 0}, @@ -53,7 +53,7 @@ Account mockNotificationsAccount() { 200, headers: {'content-type': 'application/json'}, ), - 'delete': (match, bodyBytes) { + 'delete': (match, request) { notifications.clear(); return Response( diff --git a/packages/neon/neon_talk/test/bloc_test.dart b/packages/neon/neon_talk/test/bloc_test.dart index 669c89ad4fc..d1fdf5ccb28 100644 --- a/packages/neon/neon_talk/test/bloc_test.dart +++ b/packages/neon/neon_talk/test/bloc_test.dart @@ -18,7 +18,7 @@ Account mockTalkAccount() { return mockServer({ RegExp(r'/ocs/v2\.php/apps/spreed/api/v4/room'): { - 'get': (match, bodyBytes) => Response( + 'get': (match, request) => Response( json.encode({ 'ocs': { 'meta': {'status': '', 'statuscode': 0}, @@ -34,7 +34,7 @@ Account mockTalkAccount() { 200, headers: {'content-type': 'application/json'}, ), - 'post': (match, bodyBytes) { + 'post': (match, request) { roomCount++; return Response( diff --git a/packages/neon/neon_talk/test/create_room_dialog_test.dart b/packages/neon/neon_talk/test/create_room_dialog_test.dart index f8d484e8e76..d3f640f0d89 100644 --- a/packages/neon/neon_talk/test/create_room_dialog_test.dart +++ b/packages/neon/neon_talk/test/create_room_dialog_test.dart @@ -23,8 +23,8 @@ import 'package:rxdart/subjects.dart'; Account mockAutocompleteAccount() { return mockServer({ RegExp(r'/ocs/v2\.php/core/autocomplete/get'): { - 'get': (match, bodyBytes) { - final data = json.decode(utf8.decode(bodyBytes)) as Map; + 'get': (match, request) { + final data = json.decode(request.body) as Map; final source = ((data['shareTypes'] as List)[0] as int) == 0 ? 'users' : 'groups'; return Response( @@ -52,7 +52,7 @@ Account mockAutocompleteAccount() { }, }, RegExp(r'/index\.php/avatar/.*'): { - 'get': (match, bodyBytes) => Response('', 404), + 'get': (match, request) => Response('', 404), }, }); } diff --git a/packages/neon/neon_talk/test/message_input_test.dart b/packages/neon/neon_talk/test/message_input_test.dart index 7af40433b44..47b1596aedf 100644 --- a/packages/neon/neon_talk/test/message_input_test.dart +++ b/packages/neon/neon_talk/test/message_input_test.dart @@ -31,7 +31,7 @@ import 'testing.dart'; Account mockTalkAccount() { return mockServer({ RegExp(r'/ocs/v2\.php/apps/spreed/api/v1/chat/.*/mentions'): { - 'get': (match, queryParameters) async { + 'get': (match, request) async { await Future.delayed(const Duration(seconds: 1)); return Response( @@ -58,7 +58,7 @@ Account mockTalkAccount() { }, }, RegExp(r'/index\.php/avatar/.*'): { - 'get': (match, bodyBytes) => Response('', 404), + 'get': (match, request) => Response('', 404), }, }); } diff --git a/packages/neon/neon_talk/test/room_bloc_test.dart b/packages/neon/neon_talk/test/room_bloc_test.dart index 100ae132809..1f9b110b73e 100644 --- a/packages/neon/neon_talk/test/room_bloc_test.dart +++ b/packages/neon/neon_talk/test/room_bloc_test.dart @@ -18,7 +18,7 @@ Account mockTalkAccount() { return mockServer({ RegExp(r'/ocs/v2\.php/apps/spreed/api/v4/room/abcd/participants/active'): { - 'post': (match, bodyBytes) => Response( + 'post': (match, request) => Response( json.encode({ 'ocs': { 'meta': {'status': '', 'statuscode': 0}, @@ -30,7 +30,7 @@ Account mockTalkAccount() { 200, headers: {'content-type': 'application/json'}, ), - 'delete': (match, bodyBytes) => Response( + 'delete': (match, request) => Response( json.encode({ 'ocs': { 'meta': {'status': '', 'statuscode': 0}, @@ -42,7 +42,7 @@ Account mockTalkAccount() { ), }, RegExp(r'/ocs/v2\.php/apps/spreed/api/v1/chat/abcd/([0-9]+)'): { - 'delete': (match, bodyBytes) { + 'delete': (match, request) { final id = int.parse(match.group(1)!); return Response( @@ -66,9 +66,9 @@ Account mockTalkAccount() { }, ); }, - 'put': (match, bodyBytes) { + 'put': (match, request) { final id = int.parse(match.group(1)!); - final data = json.decode(utf8.decode(bodyBytes)) as Map; + final data = json.decode(request.body) as Map; final message = data['message'] as String; return Response( @@ -94,8 +94,8 @@ Account mockTalkAccount() { }, }, RegExp(r'/ocs/v2\.php/apps/spreed/api/v1/chat/abcd'): { - 'get': (match, bodyBytes) async { - final data = json.decode(utf8.decode(bodyBytes)) as Map; + 'get': (match, request) async { + final data = json.decode(request.body) as Map; final lookIntoFuture = (data['lookIntoFuture'] as int) == 1; if (lookIntoFuture) { @@ -165,8 +165,8 @@ Account mockTalkAccount() { ); } }, - 'post': (match, bodyBytes) { - final data = json.decode(utf8.decode(bodyBytes)) as Map; + 'post': (match, request) { + final data = json.decode(request.body) as Map; final replyTo = data['replyTo'] as int?; return Response( @@ -192,8 +192,8 @@ Account mockTalkAccount() { }, }, RegExp(r'/ocs/v2\.php/apps/spreed/api/v1/reaction/abcd/[0-9]+'): { - 'post': (match, bodyBytes) { - final data = json.decode(utf8.decode(bodyBytes)) as Map; + 'post': (match, request) { + final data = json.decode(request.body) as Map; final reaction = data['reaction'] as String; @@ -225,8 +225,8 @@ Account mockTalkAccount() { }, ); }, - 'delete': (match, bodyBytes) { - final data = json.decode(utf8.decode(bodyBytes)) as Map; + 'delete': (match, request) { + final data = json.decode(request.body) as Map; final reaction = data['reaction'] as String; @@ -258,7 +258,7 @@ Account mockTalkAccount() { }, ); }, - 'get': (match, bodyBytes) => Response( + 'get': (match, request) => Response( json.encode({ 'ocs': { 'meta': {'status': '', 'statuscode': 0}, diff --git a/packages/neon_framework/lib/src/testing/mock_server.dart b/packages/neon_framework/lib/src/testing/mock_server.dart index 39b3165ebd7..a76d36ad948 100644 --- a/packages/neon_framework/lib/src/testing/mock_server.dart +++ b/packages/neon_framework/lib/src/testing/mock_server.dart @@ -1,5 +1,4 @@ import 'dart:async'; -import 'dart:typed_data'; import 'package:http/http.dart'; import 'package:http/testing.dart'; @@ -9,7 +8,7 @@ import 'package:neon_framework/src/models/account.dart'; /// /// To be used for end-to-end testing `Bloc`s. Account mockServer( - Map Function(RegExpMatch match, Uint8List bodyBytes)>> requests, + Map Function(RegExpMatch match, Request)>> requests, ) => Account( (b) => b @@ -22,7 +21,7 @@ Account mockServer( if (match != null) { final call = entry.value[request.method]; if (call != null) { - return call(match, request.bodyBytes); + return call(match, request); } } } diff --git a/packages/neon_framework/test/apps_bloc_test.dart b/packages/neon_framework/test/apps_bloc_test.dart index 4b22f86f750..b8749efeb34 100644 --- a/packages/neon_framework/test/apps_bloc_test.dart +++ b/packages/neon_framework/test/apps_bloc_test.dart @@ -19,7 +19,7 @@ import 'package:version/version.dart'; Account mockAppsAccount() { return mockServer({ RegExp(r'/ocs/v2\.php/core/navigation/apps'): { - 'get': (match, bodyBytes) { + 'get': (match, request) { return Response( json.encode( { diff --git a/packages/neon_framework/test/autocomplete_test.dart b/packages/neon_framework/test/autocomplete_test.dart index 8061d097f1e..d6cacf2a8d2 100644 --- a/packages/neon_framework/test/autocomplete_test.dart +++ b/packages/neon_framework/test/autocomplete_test.dart @@ -17,7 +17,7 @@ import 'package:provider/provider.dart'; Account mockAutocompleteAccount() { return mockServer({ RegExp(r'/ocs/v2\.php/core/autocomplete/get'): { - 'get': (match, bodyBytes) { + 'get': (match, request) { return Response( json.encode( { diff --git a/packages/neon_framework/test/maintenance_mode_bloc_test.dart b/packages/neon_framework/test/maintenance_mode_bloc_test.dart index f7734bc3f86..21694e65a8c 100644 --- a/packages/neon_framework/test/maintenance_mode_bloc_test.dart +++ b/packages/neon_framework/test/maintenance_mode_bloc_test.dart @@ -9,7 +9,7 @@ import 'package:neon_framework/testing.dart'; Account mockMaintenanceModeAccount() { return mockServer({ RegExp(r'/status\.php'): { - 'get': (match, bodyBytes) { + 'get': (match, request) { return Response( json.encode({ 'installed': false, diff --git a/packages/neon_framework/test/references_bloc_test.dart b/packages/neon_framework/test/references_bloc_test.dart index 7f55b56bc56..b7785156c6d 100644 --- a/packages/neon_framework/test/references_bloc_test.dart +++ b/packages/neon_framework/test/references_bloc_test.dart @@ -12,8 +12,8 @@ import 'package:rxdart/rxdart.dart'; Account mockReferencesAccount() => mockServer({ RegExp(r'/ocs/v2\.php/references/resolve'): { - 'post': (match, bodyBytes) { - final data = json.decode(utf8.decode(bodyBytes)) as Map; + 'post': (match, request) { + final data = json.decode(request.body) as Map; final references = data['references']! as List; if (references.contains('error')) { return Response('', 400); diff --git a/packages/neon_framework/test/unified_search_bloc_test.dart b/packages/neon_framework/test/unified_search_bloc_test.dart index d8c924aa32e..a49d86be3dc 100644 --- a/packages/neon_framework/test/unified_search_bloc_test.dart +++ b/packages/neon_framework/test/unified_search_bloc_test.dart @@ -17,8 +17,8 @@ import 'package:rxdart/rxdart.dart'; Account mockUnifiedSearchAccount() => mockServer({ RegExp(r'/ocs/v2\.php/search/providers/(.*)/search'): { - 'get': (match, bodyBytes) { - final data = json.decode(utf8.decode(bodyBytes)) as Map; + 'get': (match, request) { + final data = json.decode(request.body) as Map; final term = data['term'] as String; if (term == 'error') { @@ -55,7 +55,7 @@ Account mockUnifiedSearchAccount() => mockServer({ }, }, RegExp(r'/ocs/v2\.php/search/providers'): { - 'get': (match, bodyBytes) => Response( + 'get': (match, request) => Response( json.encode( { 'ocs': { diff --git a/packages/neon_framework/test/user_details_bloc_test.dart b/packages/neon_framework/test/user_details_bloc_test.dart index 2649140616d..da2b2c98f57 100644 --- a/packages/neon_framework/test/user_details_bloc_test.dart +++ b/packages/neon_framework/test/user_details_bloc_test.dart @@ -8,7 +8,7 @@ import 'package:neon_framework/testing.dart'; Account mockUserDetailsAccount() => mockServer({ RegExp(r'/ocs/v2\.php/cloud/user'): { - 'get': (match, bodyBytes) => Response( + 'get': (match, request) => Response( json.encode( { 'ocs': { diff --git a/packages/neon_framework/test/user_status_bloc_test.dart b/packages/neon_framework/test/user_status_bloc_test.dart index b3c6f7cbb68..117cca6efd3 100644 --- a/packages/neon_framework/test/user_status_bloc_test.dart +++ b/packages/neon_framework/test/user_status_bloc_test.dart @@ -76,11 +76,11 @@ Account mockUserStatusAccount() { return mockServer({ RegExp(r'/ocs/v2\.php/apps/user_status/api/v1/predefined_statuses'): { - 'get': (match, bodyBytes) => predefinedStatusesResponse(), + 'get': (match, request) => predefinedStatusesResponse(), }, RegExp(r'/ocs/v2\.php/apps/user_status/api/v1/user_status/message/predefined'): { - 'put': (match, bodyBytes) { - final data = json.decode(utf8.decode(bodyBytes)) as Map; + 'put': (match, request) { + final data = json.decode(request.body) as Map; messageId = data['messageId'] as String; messageIsPredefined = true; @@ -89,8 +89,8 @@ Account mockUserStatusAccount() { }, }, RegExp(r'/ocs/v2\.php/apps/user_status/api/v1/user_status/message/custom'): { - 'put': (match, bodyBytes) { - final data = json.decode(utf8.decode(bodyBytes)) as Map; + 'put': (match, request) { + final data = json.decode(request.body) as Map; messageId = null; message = data['message'] as String; @@ -101,8 +101,8 @@ Account mockUserStatusAccount() { }, }, RegExp(r'/ocs/v2\.php/apps/user_status/api/v1/user_status/status'): { - 'put': (match, bodyBytes) { - final data = json.decode(utf8.decode(bodyBytes)) as Map; + 'put': (match, request) { + final data = json.decode(request.body) as Map; status = data['statusType'] as String; statusIsUserDefined = true; @@ -110,7 +110,7 @@ Account mockUserStatusAccount() { }, }, RegExp(r'/ocs/v2\.php/apps/user_status/api/v1/user_status/message'): { - 'delete': (match, bodyBytes) { + 'delete': (match, request) { messageId = null; messageIsPredefined = false; message = null; @@ -120,11 +120,11 @@ Account mockUserStatusAccount() { }, }, RegExp(r'/ocs/v2\.php/apps/user_status/api/v1/statuses/(.*)'): { - 'get': (match, bodyBytes) => statusResponse(), + 'get': (match, request) => statusResponse(), }, RegExp(r'/ocs/v2\.php/apps/user_status/api/v1/heartbeat'): { - 'put': (match, bodyBytes) { - final data = json.decode(utf8.decode(bodyBytes)) as Map; + 'put': (match, request) { + final data = json.decode(request.body) as Map; // Hardcoded behavior for testing if (status == 'offline') { diff --git a/packages/neon_framework/test/weather_status_bloc_test.dart b/packages/neon_framework/test/weather_status_bloc_test.dart index 03cb083ed4a..f556ec466a7 100644 --- a/packages/neon_framework/test/weather_status_bloc_test.dart +++ b/packages/neon_framework/test/weather_status_bloc_test.dart @@ -32,9 +32,9 @@ Account mockWeatherStatusAccount() { return mockServer({ RegExp(r'/ocs/v2\.php/apps/weather_status/api/v1/location'): { - 'get': (match, bodyBytes) => locationResponse(), - 'put': (match, bodyBytes) { - final data = json.decode(utf8.decode(bodyBytes)) as Map; + 'get': (match, request) => locationResponse(), + 'put': (match, request) { + final data = json.decode(request.body) as Map; lat = data['lat'] as String?; lon = data['lon'] as String?; @@ -43,7 +43,7 @@ Account mockWeatherStatusAccount() { }, }, RegExp(r'/ocs/v2\.php/apps/weather_status/api/v1/forecast'): { - 'get': (match, bodyBytes) => Response( + 'get': (match, request) => Response( json.encode({ 'ocs': { 'meta': {'status': '', 'statuscode': 0}, From 52f868d473a4a9ff5ce8b2b1eacf468f33ebd686 Mon Sep 17 00:00:00 2001 From: provokateurin Date: Fri, 2 Aug 2024 23:30:38 +0200 Subject: [PATCH 2/2] fix(nextcloud)!: Revert request body usage for non-PUT/POST/PATCH requests Signed-off-by: provokateurin --- external/nextcloud-openapi-extractor | 2 +- .../lib/src/blocs/dashboard.dart | 14 +- .../neon/neon_dashboard/test/bloc_test.dart | 8 +- .../lib/src/widgets/file_preview.dart | 9 +- .../neon/neon_talk/lib/src/blocs/room.dart | 24 +- .../lib/src/widgets/message_input.dart | 7 +- .../src/widgets/rich_object/file_preview.dart | 13 +- .../test/create_room_dialog_test.dart | 4 +- .../neon/neon_talk/test/room_bloc_test.dart | 8 +- .../lib/src/blocs/unified_search.dart | 4 +- .../lib/src/widgets/autocomplete.dart | 18 +- .../test/unified_search_bloc_test.dart | 4 +- .../lib/src/api/core/core.openapi.dart | 2008 ++++---- .../lib/src/api/core/core.openapi.g.dart | 2593 ++-------- .../lib/src/api/core/core.openapi.json | 698 +-- .../src/api/dashboard/dashboard.openapi.dart | 331 +- .../api/dashboard/dashboard.openapi.g.dart | 412 -- .../src/api/dashboard/dashboard.openapi.json | 132 +- .../files_sharing/files_sharing.openapi.dart | 951 ++-- .../files_sharing.openapi.g.dart | 1221 +---- .../files_sharing/files_sharing.openapi.json | 400 +- .../files_trashbin.openapi.dart | 225 +- .../files_trashbin.openapi.g.dart | 220 +- .../files_trashbin.openapi.json | 76 +- .../files_versions.openapi.dart | 182 +- .../files_versions.openapi.g.dart | 205 - .../files_versions.openapi.json | 70 +- .../provisioning_api.openapi.dart | 1142 +---- .../provisioning_api.openapi.g.dart | 1796 +------ .../provisioning_api.openapi.json | 450 +- .../lib/src/api/spreed/patches/0-enums.json | 7 - .../lib/src/api/spreed/spreed.openapi.dart | 3999 +++++---------- .../lib/src/api/spreed/spreed.openapi.g.dart | 4357 +---------------- .../lib/src/api/spreed/spreed.openapi.json | 1051 ++-- .../lib/src/api/tables/tables.openapi.dart | 414 +- .../lib/src/api/tables/tables.openapi.g.dart | 622 --- .../lib/src/api/tables/tables.openapi.json | 160 +- .../lib/src/api/theming/theming.openapi.dart | 367 +- .../src/api/theming/theming.openapi.g.dart | 364 +- .../lib/src/api/theming/theming.openapi.json | 78 +- .../updatenotification.openapi.dart | 100 +- .../updatenotification.openapi.g.dart | 139 - .../updatenotification.openapi.json | 26 +- .../src/api/user_ldap/user_ldap.openapi.dart | 145 +- .../api/user_ldap/user_ldap.openapi.g.dart | 155 +- .../src/api/user_ldap/user_ldap.openapi.json | 30 +- .../api/user_status/user_status.openapi.dart | 104 +- .../user_status/user_status.openapi.g.dart | 157 - .../api/user_status/user_status.openapi.json | 44 +- .../nextcloud/test/api/core/core_test.dart | 24 +- .../test/api/spreed/spreed_test.dart | 37 +- .../fixtures/core/autocomplete/get.regexp | 6 +- .../navigation/get_apps_navigation.regexp | 6 +- .../test/fixtures/core/preview/get.regexp | 6 +- .../core/references/resolveone.regexp | 6 +- .../core/unified_search/get_providers.regexp | 6 +- .../core/unified_search/search.regexp | 6 +- .../dashboard/get_widget_items/v1.regexp | 6 +- .../dashboard/get_widget_items/v2.regexp | 6 +- .../fixtures/provisioning_api/apps/get.regexp | 2 - .../fixtures/spreed/avatar/get_avatar.regexp | 6 +- .../spreed/call/start_and_end_call.regexp | 4 +- .../spreed/chat/get_messages/directly.regexp | 6 +- .../spreed/chat/get_messages/polling.regexp | 4 +- .../spreed/chat/mention_suggestions.regexp | 6 +- .../spreed/reaction/add_and_remove.regexp | 18 +- .../test/fixtures/spreed/reaction/get.regexp | 4 +- .../fixtures/spreed/room/get_rooms.regexp | 6 +- .../spreed/signaling/get_settings.regexp | 6 +- .../user_status/statuses/find_all.regexp | 4 +- 70 files changed, 5657 insertions(+), 20064 deletions(-) diff --git a/external/nextcloud-openapi-extractor b/external/nextcloud-openapi-extractor index 82473016d48..cdfedf4382b 160000 --- a/external/nextcloud-openapi-extractor +++ b/external/nextcloud-openapi-extractor @@ -1 +1 @@ -Subproject commit 82473016d48704ed21e75ea2afa9b0262b9b9a6d +Subproject commit cdfedf4382b4f9d2a90f6bb1578f6a590017944b diff --git a/packages/neon/neon_dashboard/lib/src/blocs/dashboard.dart b/packages/neon/neon_dashboard/lib/src/blocs/dashboard.dart index 68a71498505..6c81b5185cf 100644 --- a/packages/neon/neon_dashboard/lib/src/blocs/dashboard.dart +++ b/packages/neon/neon_dashboard/lib/src/blocs/dashboard.dart @@ -101,11 +101,8 @@ class _DashboardBloc extends InteractiveBloc implements DashboardBloc { account: account, subject: itemsV1, getRequest: () => account.client.dashboard.dashboardApi.$getWidgetItems_Request( - $body: dashboard.DashboardApiGetWidgetItemsRequestApplicationJson( - (b) => b - ..widgets.replace(v1WidgetIDs.build()) - ..limit = maxItems, - ), + widgets: BuiltList(v1WidgetIDs.build()), + limit: maxItems, ), converter: ResponseConverter(account.client.dashboard.dashboardApi.$getWidgetItems_Serializer()), unwrap: (response) => response.body.ocs.data, @@ -115,11 +112,8 @@ class _DashboardBloc extends InteractiveBloc implements DashboardBloc { account: account, subject: itemsV2, getRequest: () => account.client.dashboard.dashboardApi.$getWidgetItemsV2_Request( - $body: dashboard.DashboardApiGetWidgetItemsV2RequestApplicationJson( - (b) => b - ..widgets.replace(v2WidgetIDs.build()) - ..limit = maxItems, - ), + widgets: BuiltList(v2WidgetIDs.build()), + limit: maxItems, ), converter: ResponseConverter(account.client.dashboard.dashboardApi.$getWidgetItemsV2_Serializer()), unwrap: (response) => response.body.ocs.data, diff --git a/packages/neon/neon_dashboard/test/bloc_test.dart b/packages/neon/neon_dashboard/test/bloc_test.dart index c59f65ff244..b1e589d9204 100644 --- a/packages/neon/neon_dashboard/test/bloc_test.dart +++ b/packages/neon/neon_dashboard/test/bloc_test.dart @@ -40,14 +40,12 @@ Account mockDashboardAccount() => mockServer({ }, RegExp(r'/ocs/v2\.php/apps/dashboard/api/v1/widget-items'): { 'get': (match, request) { - final data = json.decode(request.body) as Map; - return Response( json.encode({ 'ocs': { 'meta': {'status': '', 'statuscode': 0}, 'data': { - for (final key in (data['widgets'] as List).cast()) + for (final key in request.url.queryParametersAll['widgets[]']!) key: [ { 'subtitle': '', @@ -79,14 +77,12 @@ Account mockDashboardAccount() => mockServer({ }, RegExp(r'/ocs/v2\.php/apps/dashboard/api/v2/widget-items'): { 'get': (match, request) { - final data = json.decode(request.body) as Map; - return Response( json.encode({ 'ocs': { 'meta': {'status': '', 'statuscode': 0}, 'data': { - for (final key in (data['widgets'] as List).cast()) + for (final key in request.url.queryParametersAll['widgets[]']!) key: { 'items': [ { diff --git a/packages/neon/neon_files/lib/src/widgets/file_preview.dart b/packages/neon/neon_files/lib/src/widgets/file_preview.dart index cb1c7b91f19..26cd4038ceb 100644 --- a/packages/neon/neon_files/lib/src/widgets/file_preview.dart +++ b/packages/neon/neon_files/lib/src/widgets/file_preview.dart @@ -105,12 +105,9 @@ class FilePreviewImage extends NeonApiImage { required super.account, }) : super( getRequest: (client) => client.core.preview.$getPreview_Request( - $body: PreviewGetPreviewRequestApplicationJson( - (b) => b - ..file = file.uri.path - ..x = width - ..y = height, - ), + file: file.uri.path, + x: width, + y: height, ), etag: file.etag, expires: null, diff --git a/packages/neon/neon_talk/lib/src/blocs/room.dart b/packages/neon/neon_talk/lib/src/blocs/room.dart index c623d99152b..5eac66fee2d 100644 --- a/packages/neon/neon_talk/lib/src/blocs/room.dart +++ b/packages/neon/neon_talk/lib/src/blocs/room.dart @@ -136,13 +136,10 @@ class _TalkRoomBloc extends InteractiveBloc implements TalkRoomBloc { try { final response = await account.client.spreed.chat.receiveMessages( token: token, - $body: spreed.ChatReceiveMessagesRequestApplicationJson( - (b) => b - ..lookIntoFuture = spreed.ChatReceiveMessagesRequestApplicationJson_LookIntoFuture.$1 - ..includeLastKnown = spreed.ChatReceiveMessagesRequestApplicationJson_IncludeLastKnown.$0 - ..lastKnownMessageId = lastKnownMessageId - ..limit = 100, - ), + lookIntoFuture: spreed.ChatReceiveMessagesLookIntoFuture.$1, + includeLastKnown: spreed.ChatReceiveMessagesIncludeLastKnown.$0, + lastKnownMessageId: lastKnownMessageId, + limit: 100, ); updateLastCommonRead(response.headers.xChatLastCommonRead); @@ -225,12 +222,9 @@ class _TalkRoomBloc extends InteractiveBloc implements TalkRoomBloc { subject: messages, getRequest: () => account.client.spreed.chat.$receiveMessages_Request( token: token, - $body: spreed.ChatReceiveMessagesRequestApplicationJson( - (b) => b - ..lookIntoFuture = spreed.ChatReceiveMessagesRequestApplicationJson_LookIntoFuture.$0 - ..includeLastKnown = spreed.ChatReceiveMessagesRequestApplicationJson_IncludeLastKnown.$0 - ..limit = 100, - ), + lookIntoFuture: spreed.ChatReceiveMessagesLookIntoFuture.$0, + includeLastKnown: spreed.ChatReceiveMessagesIncludeLastKnown.$0, + limit: 100, ), converter: ResponseConverter(account.client.spreed.chat.$receiveMessages_Serializer()), unwrap: (response) { @@ -324,9 +318,7 @@ class _TalkRoomBloc extends InteractiveBloc implements TalkRoomBloc { final response = await account.client.spreed.reaction.delete( token: token, messageId: message.id, - $body: spreed.ReactionDeleteRequestApplicationJson( - (b) => b..reaction = reaction, - ), + reaction: reaction, ); updateReactions( diff --git a/packages/neon/neon_talk/lib/src/widgets/message_input.dart b/packages/neon/neon_talk/lib/src/widgets/message_input.dart index 1fcc7c2468c..7a14fe94abb 100644 --- a/packages/neon/neon_talk/lib/src/widgets/message_input.dart +++ b/packages/neon/neon_talk/lib/src/widgets/message_input.dart @@ -185,11 +185,8 @@ class _TalkMessageInputState extends State { final account = NeonProvider.of(context); final response = await account.client.spreed.chat.mentions( token: bloc.room.value.requireData.token, - $body: spreed.ChatMentionsRequestApplicationJson( - (b) => b - ..search = matchingPart.substring(1) - ..limit = 5, - ), + search: matchingPart.substring(1), + limit: 5, ); return response.body.ocs.data diff --git a/packages/neon/neon_talk/lib/src/widgets/rich_object/file_preview.dart b/packages/neon/neon_talk/lib/src/widgets/rich_object/file_preview.dart index fb41d83412b..868ed46ba99 100644 --- a/packages/neon/neon_talk/lib/src/widgets/rich_object/file_preview.dart +++ b/packages/neon/neon_talk/lib/src/widgets/rich_object/file_preview.dart @@ -2,7 +2,7 @@ import 'package:flutter/material.dart'; import 'package:neon_framework/models.dart'; import 'package:neon_framework/utils.dart'; import 'package:neon_framework/widgets.dart'; -import 'package:nextcloud/core.dart'; +import 'package:nextcloud/core.dart' as core; import 'package:nextcloud/spreed.dart' as spreed; /// Displays a file preview from a rich object. @@ -62,13 +62,10 @@ class TalkRichObjectFilePreview extends StatelessWidget { etag: parameter.etag, expires: null, getRequest: (client) => client.core.preview.$getPreviewByFileId_Request( - $body: PreviewGetPreviewByFileIdRequestApplicationJson( - (b) => b - ..fileId = int.parse(parameter.id) - ..x = deviceSize.width.toInt() - ..y = deviceSize.height.toInt() - ..a = true, - ), + fileId: int.parse(parameter.id), + x: deviceSize.width.toInt(), + y: deviceSize.height.toInt(), + a: core.PreviewGetPreviewByFileIdA.$1, ), ); } diff --git a/packages/neon/neon_talk/test/create_room_dialog_test.dart b/packages/neon/neon_talk/test/create_room_dialog_test.dart index d3f640f0d89..fe66a1568a6 100644 --- a/packages/neon/neon_talk/test/create_room_dialog_test.dart +++ b/packages/neon/neon_talk/test/create_room_dialog_test.dart @@ -24,9 +24,7 @@ Account mockAutocompleteAccount() { return mockServer({ RegExp(r'/ocs/v2\.php/core/autocomplete/get'): { 'get': (match, request) { - final data = json.decode(request.body) as Map; - - final source = ((data['shareTypes'] as List)[0] as int) == 0 ? 'users' : 'groups'; + final source = request.url.queryParametersAll['shareTypes[]']!.single == '0' ? 'users' : 'groups'; return Response( json.encode( { diff --git a/packages/neon/neon_talk/test/room_bloc_test.dart b/packages/neon/neon_talk/test/room_bloc_test.dart index 1f9b110b73e..98ffde94bc8 100644 --- a/packages/neon/neon_talk/test/room_bloc_test.dart +++ b/packages/neon/neon_talk/test/room_bloc_test.dart @@ -95,9 +95,7 @@ Account mockTalkAccount() { }, RegExp(r'/ocs/v2\.php/apps/spreed/api/v1/chat/abcd'): { 'get': (match, request) async { - final data = json.decode(request.body) as Map; - - final lookIntoFuture = (data['lookIntoFuture'] as int) == 1; + final lookIntoFuture = request.url.queryParameters['lookIntoFuture'] == '1'; if (lookIntoFuture) { // Simulate a new message received after some time await Future.delayed(const Duration(milliseconds: 1)); @@ -226,9 +224,7 @@ Account mockTalkAccount() { ); }, 'delete': (match, request) { - final data = json.decode(request.body) as Map; - - final reaction = data['reaction'] as String; + final reaction = request.url.queryParameters['reaction']!; return Response( json.encode({ diff --git a/packages/neon_framework/lib/src/blocs/unified_search.dart b/packages/neon_framework/lib/src/blocs/unified_search.dart index ae22ecd9060..592c3cae8d5 100644 --- a/packages/neon_framework/lib/src/blocs/unified_search.dart +++ b/packages/neon_framework/lib/src/blocs/unified_search.dart @@ -143,9 +143,7 @@ class _UnifiedSearchBloc extends InteractiveBloc implements UnifiedSearchBloc { try { final response = await account.client.core.unifiedSearch.search( providerId: providerID, - $body: core.UnifiedSearchSearchRequestApplicationJson( - (b) => b..term = term, - ), + term: term, ); updateResults(providerID, Result.success(response.body.ocs.data)); } on http.ClientException catch (error, stackTrace) { diff --git a/packages/neon_framework/lib/src/widgets/autocomplete.dart b/packages/neon_framework/lib/src/widgets/autocomplete.dart index 83813c637c5..e7107b515d7 100644 --- a/packages/neon_framework/lib/src/widgets/autocomplete.dart +++ b/packages/neon_framework/lib/src/widgets/autocomplete.dart @@ -1,3 +1,4 @@ +import 'package:built_collection/built_collection.dart'; import 'package:flutter/material.dart'; import 'package:flutter/scheduler.dart'; import 'package:neon_framework/models.dart'; @@ -88,18 +89,11 @@ class _NeonAutocompleteState extends State { } final response = await account.client.core.autoComplete.$get( - $body: core.AutoCompleteGetRequestApplicationJson( - (b) { - b - ..search = text.text - ..itemType = widget.itemType - ..itemId = widget.itemId - ..shareTypes.replace(widget.shareTypes.map((s) => s.index)); - if (widget.limit != null) { - b.limit = widget.limit; - } - }, - ), + search: text.text, + itemType: widget.itemType, + itemId: widget.itemId, + shareTypes: BuiltList(widget.shareTypes.map((s) => s.index)), + limit: widget.limit, ); return response.body.ocs.data; }, diff --git a/packages/neon_framework/test/unified_search_bloc_test.dart b/packages/neon_framework/test/unified_search_bloc_test.dart index a49d86be3dc..fa9c6e6c51a 100644 --- a/packages/neon_framework/test/unified_search_bloc_test.dart +++ b/packages/neon_framework/test/unified_search_bloc_test.dart @@ -18,9 +18,7 @@ import 'package:rxdart/rxdart.dart'; Account mockUnifiedSearchAccount() => mockServer({ RegExp(r'/ocs/v2\.php/search/providers/(.*)/search'): { 'get': (match, request) { - final data = json.decode(request.body) as Map; - - final term = data['term'] as String; + final term = request.url.queryParameters['term']!; if (term == 'error') { return Response('', 400); } diff --git a/packages/nextcloud/lib/src/api/core/core.openapi.dart b/packages/nextcloud/lib/src/api/core/core.openapi.dart index 7979f205de6..d204d81c73f 100644 --- a/packages/nextcloud/lib/src/api/core/core.openapi.dart +++ b/packages/nextcloud/lib/src/api/core/core.openapi.dart @@ -524,6 +524,12 @@ class $AutoCompleteClient { /// Throws a `DynamiteApiException` if the API call does not return an expected status code. /// /// Parameters: + /// * [search] Text to search for. + /// * [itemType] Type of the items to search for. + /// * [itemId] ID of the items to search for. + /// * [sorter] can be piped, top prio first, e.g.: "commenters|share-recipients". + /// * [shareTypes] Types of shares to search for. Defaults to `[]`. + /// * [limit] Maximum number of results to return. Defaults to `10`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -534,10 +540,39 @@ class $AutoCompleteClient { /// * [$$get_Serializer] for a converter to parse the `Response` from an executed this request. @_i2.experimental _i3.Request $$get_Request({ - required AutoCompleteGetRequestApplicationJson $body, + required String search, + String? itemType, + String? itemId, + String? sorter, + BuiltList? shareTypes, + int? limit, bool? oCSAPIRequest, }) { - const _path = '/ocs/v2.php/core/autocomplete/get'; + final _parameters = {}; + final __search = _$jsonSerializers.serialize(search, specifiedType: const FullType(String)); + _parameters['search'] = __search; + + final __itemType = _$jsonSerializers.serialize(itemType, specifiedType: const FullType(String)); + _parameters['itemType'] = __itemType; + + final __itemId = _$jsonSerializers.serialize(itemId, specifiedType: const FullType(String)); + _parameters['itemId'] = __itemId; + + final __sorter = _$jsonSerializers.serialize(sorter, specifiedType: const FullType(String)); + _parameters['sorter'] = __sorter; + + var __shareTypes = + _$jsonSerializers.serialize(shareTypes, specifiedType: const FullType(BuiltList, [FullType(int)])); + __shareTypes ??= const []; + _parameters['shareTypes%5B%5D'] = __shareTypes; + + var __limit = _$jsonSerializers.serialize(limit, specifiedType: const FullType(int)); + __limit ??= 10; + _parameters['limit'] = __limit; + + final _path = _i6.UriTemplate( + '/ocs/v2.php/core/autocomplete/get{?search*,itemType*,itemId*,sorter*,shareTypes%5B%5D*,limit*}', + ).expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); _request.headers['Accept'] = 'application/json'; @@ -562,10 +597,6 @@ class $AutoCompleteClient { __oCSAPIRequest ??= true; _request.headers['OCS-APIRequest'] = const _i5.HeaderEncoder().convert(__oCSAPIRequest); - _request.headers['Content-Type'] = 'application/json'; - _request.body = json.encode( - _$jsonSerializers.serialize($body, specifiedType: const FullType(AutoCompleteGetRequestApplicationJson)), - ); return _request; } @@ -575,6 +606,12 @@ class $AutoCompleteClient { /// Throws a `DynamiteApiException` if the API call does not return an expected status code. /// /// Parameters: + /// * [search] Text to search for. + /// * [itemType] Type of the items to search for. + /// * [itemId] ID of the items to search for. + /// * [sorter] can be piped, top prio first, e.g.: "commenters|share-recipients". + /// * [shareTypes] Types of shares to search for. Defaults to `[]`. + /// * [limit] Maximum number of results to return. Defaults to `10`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -584,12 +621,22 @@ class $AutoCompleteClient { /// * [$$get_Request] for the request send by this method. /// * [$$get_Serializer] for a converter to parse the `Response` from an executed request. Future<_i1.DynamiteResponse> $get({ - required AutoCompleteGetRequestApplicationJson $body, + required String search, + String? itemType, + String? itemId, + String? sorter, + BuiltList? shareTypes, + int? limit, bool? oCSAPIRequest, }) async { final _request = $$get_Request( + search: search, + itemType: itemType, + itemId: itemId, + sorter: sorter, + shareTypes: shareTypes, + limit: limit, oCSAPIRequest: oCSAPIRequest, - $body: $body, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -1267,6 +1314,8 @@ class $CollaborationResourcesClient { /// /// Parameters: /// * [collectionId] ID of the collection. + /// * [resourceType] Name of the resource. + /// * [resourceId] ID of the resource. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -1280,14 +1329,23 @@ class $CollaborationResourcesClient { @_i2.experimental _i3.Request $removeResource_Request({ required int collectionId, - required CollaborationResourcesRemoveResourceRequestApplicationJson $body, + required String resourceType, + required String resourceId, bool? oCSAPIRequest, }) { final _parameters = {}; final __collectionId = _$jsonSerializers.serialize(collectionId, specifiedType: const FullType(int)); _parameters['collectionId'] = __collectionId; - final _path = _i6.UriTemplate('/ocs/v2.php/collaboration/resources/collections/{collectionId}').expand(_parameters); + final __resourceType = _$jsonSerializers.serialize(resourceType, specifiedType: const FullType(String)); + _parameters['resourceType'] = __resourceType; + + final __resourceId = _$jsonSerializers.serialize(resourceId, specifiedType: const FullType(String)); + _parameters['resourceId'] = __resourceId; + + final _path = + _i6.UriTemplate('/ocs/v2.php/collaboration/resources/collections/{collectionId}{?resourceType*,resourceId*}') + .expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('delete', _uri); _request.headers['Accept'] = 'application/json'; @@ -1312,13 +1370,6 @@ class $CollaborationResourcesClient { __oCSAPIRequest ??= true; _request.headers['OCS-APIRequest'] = const _i5.HeaderEncoder().convert(__oCSAPIRequest); - _request.headers['Content-Type'] = 'application/json'; - _request.body = json.encode( - _$jsonSerializers.serialize( - $body, - specifiedType: const FullType(CollaborationResourcesRemoveResourceRequestApplicationJson), - ), - ); return _request; } @@ -1329,6 +1380,8 @@ class $CollaborationResourcesClient { /// /// Parameters: /// * [collectionId] ID of the collection. + /// * [resourceType] Name of the resource. + /// * [resourceId] ID of the resource. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -1341,13 +1394,15 @@ class $CollaborationResourcesClient { /// * [$removeResource_Serializer] for a converter to parse the `Response` from an executed request. Future<_i1.DynamiteResponse> removeResource({ required int collectionId, - required CollaborationResourcesRemoveResourceRequestApplicationJson $body, + required String resourceType, + required String resourceId, bool? oCSAPIRequest, }) async { final _request = $removeResource_Request( collectionId: collectionId, + resourceType: resourceType, + resourceId: resourceId, oCSAPIRequest: oCSAPIRequest, - $body: $body, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -1704,6 +1759,7 @@ class $GuestAvatarClient { /// Parameters: /// * [guestName] The guest name, e.g. "Albert". /// * [size] The desired avatar size, e.g. 64 for 64x64px. + /// * [darkTheme] Return dark avatar. Defaults to `0`. /// /// Status codes: /// * 200: Custom avatar returned @@ -1717,7 +1773,7 @@ class $GuestAvatarClient { _i3.Request $getAvatar_Request({ required String guestName, required String size, - GuestAvatarGetAvatarRequestApplicationJson? $body, + GuestAvatarGetAvatarDarkTheme? darkTheme, }) { final _parameters = {}; final __guestName = _$jsonSerializers.serialize(guestName, specifiedType: const FullType(String)); @@ -1726,7 +1782,12 @@ class $GuestAvatarClient { final __size = _$jsonSerializers.serialize(size, specifiedType: const FullType(String)); _parameters['size'] = __size; - final _path = _i6.UriTemplate('/index.php/avatar/guest/{guestName}/{size}').expand(_parameters); + var __darkTheme = + _$jsonSerializers.serialize(darkTheme, specifiedType: const FullType(GuestAvatarGetAvatarDarkTheme)); + __darkTheme ??= 0; + _parameters['darkTheme'] = __darkTheme; + + final _path = _i6.UriTemplate('/index.php/avatar/guest/{guestName}/{size}{?darkTheme*}').expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); _request.headers['Accept'] = '*/*'; @@ -1745,20 +1806,6 @@ class $GuestAvatarClient { } // coverage:ignore-end - _request.headers['Content-Type'] = 'application/json'; - _request.body = $body != null - ? json.encode( - _$jsonSerializers.serialize( - $body, - specifiedType: const FullType(GuestAvatarGetAvatarRequestApplicationJson), - ), - ) - : json.encode( - _$jsonSerializers.serialize( - GuestAvatarGetAvatarRequestApplicationJson(), - specifiedType: const FullType(GuestAvatarGetAvatarRequestApplicationJson), - ), - ); return _request; } @@ -1770,6 +1817,7 @@ class $GuestAvatarClient { /// Parameters: /// * [guestName] The guest name, e.g. "Albert". /// * [size] The desired avatar size, e.g. 64 for 64x64px. + /// * [darkTheme] Return dark avatar. Defaults to `0`. /// /// Status codes: /// * 200: Custom avatar returned @@ -1782,12 +1830,12 @@ class $GuestAvatarClient { Future<_i1.DynamiteResponse> getAvatar({ required String guestName, required String size, - GuestAvatarGetAvatarRequestApplicationJson? $body, + GuestAvatarGetAvatarDarkTheme? darkTheme, }) async { final _request = $getAvatar_Request( guestName: guestName, size: size, - $body: $body, + darkTheme: darkTheme, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -2095,6 +2143,7 @@ class $NavigationClient { /// Throws a `DynamiteApiException` if the API call does not return an expected status code. /// /// Parameters: + /// * [absolute] Rewrite URLs to absolute ones. Defaults to `0`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -2106,10 +2155,16 @@ class $NavigationClient { /// * [$getAppsNavigation_Serializer] for a converter to parse the `Response` from an executed this request. @_i2.experimental _i3.Request $getAppsNavigation_Request({ + NavigationGetAppsNavigationAbsolute? absolute, bool? oCSAPIRequest, - NavigationGetAppsNavigationRequestApplicationJson? $body, }) { - const _path = '/ocs/v2.php/core/navigation/apps'; + final _parameters = {}; + var __absolute = + _$jsonSerializers.serialize(absolute, specifiedType: const FullType(NavigationGetAppsNavigationAbsolute)); + __absolute ??= 0; + _parameters['absolute'] = __absolute; + + final _path = _i6.UriTemplate('/ocs/v2.php/core/navigation/apps{?absolute*}').expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); _request.headers['Accept'] = 'application/json'; @@ -2134,20 +2189,6 @@ class $NavigationClient { __oCSAPIRequest ??= true; _request.headers['OCS-APIRequest'] = const _i5.HeaderEncoder().convert(__oCSAPIRequest); - _request.headers['Content-Type'] = 'application/json'; - _request.body = $body != null - ? json.encode( - _$jsonSerializers.serialize( - $body, - specifiedType: const FullType(NavigationGetAppsNavigationRequestApplicationJson), - ), - ) - : json.encode( - _$jsonSerializers.serialize( - NavigationGetAppsNavigationRequestApplicationJson(), - specifiedType: const FullType(NavigationGetAppsNavigationRequestApplicationJson), - ), - ); return _request; } @@ -2157,6 +2198,7 @@ class $NavigationClient { /// Throws a `DynamiteApiException` if the API call does not return an expected status code. /// /// Parameters: + /// * [absolute] Rewrite URLs to absolute ones. Defaults to `0`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -2167,12 +2209,12 @@ class $NavigationClient { /// * [$getAppsNavigation_Request] for the request send by this method. /// * [$getAppsNavigation_Serializer] for a converter to parse the `Response` from an executed request. Future<_i1.DynamiteResponse> getAppsNavigation({ + NavigationGetAppsNavigationAbsolute? absolute, bool? oCSAPIRequest, - NavigationGetAppsNavigationRequestApplicationJson? $body, }) async { final _request = $getAppsNavigation_Request( + absolute: absolute, oCSAPIRequest: oCSAPIRequest, - $body: $body, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -2198,6 +2240,7 @@ class $NavigationClient { /// Throws a `DynamiteApiException` if the API call does not return an expected status code. /// /// Parameters: + /// * [absolute] Rewrite URLs to absolute ones. Defaults to `0`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -2209,10 +2252,16 @@ class $NavigationClient { /// * [$getSettingsNavigation_Serializer] for a converter to parse the `Response` from an executed this request. @_i2.experimental _i3.Request $getSettingsNavigation_Request({ + NavigationGetSettingsNavigationAbsolute? absolute, bool? oCSAPIRequest, - NavigationGetSettingsNavigationRequestApplicationJson? $body, }) { - const _path = '/ocs/v2.php/core/navigation/settings'; + final _parameters = {}; + var __absolute = + _$jsonSerializers.serialize(absolute, specifiedType: const FullType(NavigationGetSettingsNavigationAbsolute)); + __absolute ??= 0; + _parameters['absolute'] = __absolute; + + final _path = _i6.UriTemplate('/ocs/v2.php/core/navigation/settings{?absolute*}').expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); _request.headers['Accept'] = 'application/json'; @@ -2237,20 +2286,6 @@ class $NavigationClient { __oCSAPIRequest ??= true; _request.headers['OCS-APIRequest'] = const _i5.HeaderEncoder().convert(__oCSAPIRequest); - _request.headers['Content-Type'] = 'application/json'; - _request.body = $body != null - ? json.encode( - _$jsonSerializers.serialize( - $body, - specifiedType: const FullType(NavigationGetSettingsNavigationRequestApplicationJson), - ), - ) - : json.encode( - _$jsonSerializers.serialize( - NavigationGetSettingsNavigationRequestApplicationJson(), - specifiedType: const FullType(NavigationGetSettingsNavigationRequestApplicationJson), - ), - ); return _request; } @@ -2260,6 +2295,7 @@ class $NavigationClient { /// Throws a `DynamiteApiException` if the API call does not return an expected status code. /// /// Parameters: + /// * [absolute] Rewrite URLs to absolute ones. Defaults to `0`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -2270,12 +2306,12 @@ class $NavigationClient { /// * [$getSettingsNavigation_Request] for the request send by this method. /// * [$getSettingsNavigation_Serializer] for a converter to parse the `Response` from an executed request. Future<_i1.DynamiteResponse> getSettingsNavigation({ + NavigationGetSettingsNavigationAbsolute? absolute, bool? oCSAPIRequest, - NavigationGetSettingsNavigationRequestApplicationJson? $body, }) async { final _request = $getSettingsNavigation_Request( + absolute: absolute, oCSAPIRequest: oCSAPIRequest, - $body: $body, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -2468,6 +2504,15 @@ class $PreviewClient { /// Returns a `DynamiteRequest` backing the [getPreview] operation. /// Throws a `DynamiteApiException` if the API call does not return an expected status code. /// + /// Parameters: + /// * [file] Path of the file. Defaults to `""`. + /// * [x] Width of the preview. Defaults to `32`. + /// * [y] Height of the preview. Defaults to `32`. + /// * [a] Whether to not crop the preview. Defaults to `0`. + /// * [forceIcon] Force returning an icon. Defaults to `1`. + /// * [mode] How to crop the image. Defaults to `"fill"`. + /// * [mimeFallback] Whether to fallback to the mime icon if no preview is available. Defaults to `0`. + /// /// Status codes: /// * 200: Preview returned /// * 400: Getting preview is not possible @@ -2479,8 +2524,47 @@ class $PreviewClient { /// * [getPreview] for a method executing this request and parsing the response. /// * [$getPreview_Serializer] for a converter to parse the `Response` from an executed this request. @_i2.experimental - _i3.Request $getPreview_Request({PreviewGetPreviewRequestApplicationJson? $body}) { - const _path = '/index.php/core/preview.png'; + _i3.Request $getPreview_Request({ + String? file, + int? x, + int? y, + PreviewGetPreviewA? a, + PreviewGetPreviewForceIcon? forceIcon, + String? mode, + PreviewGetPreviewMimeFallback? mimeFallback, + }) { + final _parameters = {}; + var __file = _$jsonSerializers.serialize(file, specifiedType: const FullType(String)); + __file ??= ''; + _parameters['file'] = __file; + + var __x = _$jsonSerializers.serialize(x, specifiedType: const FullType(int)); + __x ??= 32; + _parameters['x'] = __x; + + var __y = _$jsonSerializers.serialize(y, specifiedType: const FullType(int)); + __y ??= 32; + _parameters['y'] = __y; + + var __a = _$jsonSerializers.serialize(a, specifiedType: const FullType(PreviewGetPreviewA)); + __a ??= 0; + _parameters['a'] = __a; + + var __forceIcon = _$jsonSerializers.serialize(forceIcon, specifiedType: const FullType(PreviewGetPreviewForceIcon)); + __forceIcon ??= 1; + _parameters['forceIcon'] = __forceIcon; + + var __mode = _$jsonSerializers.serialize(mode, specifiedType: const FullType(String)); + __mode ??= 'fill'; + _parameters['mode'] = __mode; + + var __mimeFallback = + _$jsonSerializers.serialize(mimeFallback, specifiedType: const FullType(PreviewGetPreviewMimeFallback)); + __mimeFallback ??= 0; + _parameters['mimeFallback'] = __mimeFallback; + + final _path = _i6.UriTemplate('/index.php/core/preview.png{?file*,x*,y*,a*,forceIcon*,mode*,mimeFallback*}') + .expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); _request.headers['Accept'] = '*/*'; @@ -2501,17 +2585,6 @@ class $PreviewClient { } // coverage:ignore-end - _request.headers['Content-Type'] = 'application/json'; - _request.body = $body != null - ? json.encode( - _$jsonSerializers.serialize($body, specifiedType: const FullType(PreviewGetPreviewRequestApplicationJson)), - ) - : json.encode( - _$jsonSerializers.serialize( - PreviewGetPreviewRequestApplicationJson(), - specifiedType: const FullType(PreviewGetPreviewRequestApplicationJson), - ), - ); return _request; } @@ -2520,6 +2593,15 @@ class $PreviewClient { /// Returns a [Future] containing a `DynamiteResponse` with the status code, deserialized body and headers. /// Throws a `DynamiteApiException` if the API call does not return an expected status code. /// + /// Parameters: + /// * [file] Path of the file. Defaults to `""`. + /// * [x] Width of the preview. Defaults to `32`. + /// * [y] Height of the preview. Defaults to `32`. + /// * [a] Whether to not crop the preview. Defaults to `0`. + /// * [forceIcon] Force returning an icon. Defaults to `1`. + /// * [mode] How to crop the image. Defaults to `"fill"`. + /// * [mimeFallback] Whether to fallback to the mime icon if no preview is available. Defaults to `0`. + /// /// Status codes: /// * 200: Preview returned /// * 400: Getting preview is not possible @@ -2530,9 +2612,23 @@ class $PreviewClient { /// See: /// * [$getPreview_Request] for the request send by this method. /// * [$getPreview_Serializer] for a converter to parse the `Response` from an executed request. - Future<_i1.DynamiteResponse> getPreview({PreviewGetPreviewRequestApplicationJson? $body}) async { + Future<_i1.DynamiteResponse> getPreview({ + String? file, + int? x, + int? y, + PreviewGetPreviewA? a, + PreviewGetPreviewForceIcon? forceIcon, + String? mode, + PreviewGetPreviewMimeFallback? mimeFallback, + }) async { final _request = $getPreview_Request( - $body: $body, + file: file, + x: x, + y: y, + a: a, + forceIcon: forceIcon, + mode: mode, + mimeFallback: mimeFallback, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -2555,6 +2651,15 @@ class $PreviewClient { /// Returns a `DynamiteRequest` backing the [getPreviewByFileId] operation. /// Throws a `DynamiteApiException` if the API call does not return an expected status code. /// + /// Parameters: + /// * [fileId] ID of the file. Defaults to `-1`. + /// * [x] Width of the preview. Defaults to `32`. + /// * [y] Height of the preview. Defaults to `32`. + /// * [a] Whether to not crop the preview. Defaults to `0`. + /// * [forceIcon] Force returning an icon. Defaults to `1`. + /// * [mode] How to crop the image. Defaults to `"fill"`. + /// * [mimeFallback] Whether to fallback to the mime icon if no preview is available. Defaults to `0`. + /// /// Status codes: /// * 200: Preview returned /// * 400: Getting preview is not possible @@ -2566,8 +2671,48 @@ class $PreviewClient { /// * [getPreviewByFileId] for a method executing this request and parsing the response. /// * [$getPreviewByFileId_Serializer] for a converter to parse the `Response` from an executed this request. @_i2.experimental - _i3.Request $getPreviewByFileId_Request({PreviewGetPreviewByFileIdRequestApplicationJson? $body}) { - const _path = '/index.php/core/preview'; + _i3.Request $getPreviewByFileId_Request({ + int? fileId, + int? x, + int? y, + PreviewGetPreviewByFileIdA? a, + PreviewGetPreviewByFileIdForceIcon? forceIcon, + String? mode, + PreviewGetPreviewByFileIdMimeFallback? mimeFallback, + }) { + final _parameters = {}; + var __fileId = _$jsonSerializers.serialize(fileId, specifiedType: const FullType(int)); + __fileId ??= -1; + _parameters['fileId'] = __fileId; + + var __x = _$jsonSerializers.serialize(x, specifiedType: const FullType(int)); + __x ??= 32; + _parameters['x'] = __x; + + var __y = _$jsonSerializers.serialize(y, specifiedType: const FullType(int)); + __y ??= 32; + _parameters['y'] = __y; + + var __a = _$jsonSerializers.serialize(a, specifiedType: const FullType(PreviewGetPreviewByFileIdA)); + __a ??= 0; + _parameters['a'] = __a; + + var __forceIcon = + _$jsonSerializers.serialize(forceIcon, specifiedType: const FullType(PreviewGetPreviewByFileIdForceIcon)); + __forceIcon ??= 1; + _parameters['forceIcon'] = __forceIcon; + + var __mode = _$jsonSerializers.serialize(mode, specifiedType: const FullType(String)); + __mode ??= 'fill'; + _parameters['mode'] = __mode; + + var __mimeFallback = + _$jsonSerializers.serialize(mimeFallback, specifiedType: const FullType(PreviewGetPreviewByFileIdMimeFallback)); + __mimeFallback ??= 0; + _parameters['mimeFallback'] = __mimeFallback; + + final _path = _i6.UriTemplate('/index.php/core/preview{?fileId*,x*,y*,a*,forceIcon*,mode*,mimeFallback*}') + .expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); _request.headers['Accept'] = '*/*'; @@ -2588,20 +2733,6 @@ class $PreviewClient { } // coverage:ignore-end - _request.headers['Content-Type'] = 'application/json'; - _request.body = $body != null - ? json.encode( - _$jsonSerializers.serialize( - $body, - specifiedType: const FullType(PreviewGetPreviewByFileIdRequestApplicationJson), - ), - ) - : json.encode( - _$jsonSerializers.serialize( - PreviewGetPreviewByFileIdRequestApplicationJson(), - specifiedType: const FullType(PreviewGetPreviewByFileIdRequestApplicationJson), - ), - ); return _request; } @@ -2610,6 +2741,15 @@ class $PreviewClient { /// Returns a [Future] containing a `DynamiteResponse` with the status code, deserialized body and headers. /// Throws a `DynamiteApiException` if the API call does not return an expected status code. /// + /// Parameters: + /// * [fileId] ID of the file. Defaults to `-1`. + /// * [x] Width of the preview. Defaults to `32`. + /// * [y] Height of the preview. Defaults to `32`. + /// * [a] Whether to not crop the preview. Defaults to `0`. + /// * [forceIcon] Force returning an icon. Defaults to `1`. + /// * [mode] How to crop the image. Defaults to `"fill"`. + /// * [mimeFallback] Whether to fallback to the mime icon if no preview is available. Defaults to `0`. + /// /// Status codes: /// * 200: Preview returned /// * 400: Getting preview is not possible @@ -2621,10 +2761,22 @@ class $PreviewClient { /// * [$getPreviewByFileId_Request] for the request send by this method. /// * [$getPreviewByFileId_Serializer] for a converter to parse the `Response` from an executed request. Future<_i1.DynamiteResponse> getPreviewByFileId({ - PreviewGetPreviewByFileIdRequestApplicationJson? $body, + int? fileId, + int? x, + int? y, + PreviewGetPreviewByFileIdA? a, + PreviewGetPreviewByFileIdForceIcon? forceIcon, + String? mode, + PreviewGetPreviewByFileIdMimeFallback? mimeFallback, }) async { final _request = $getPreviewByFileId_Request( - $body: $body, + fileId: fileId, + x: x, + y: y, + a: a, + forceIcon: forceIcon, + mode: mode, + mimeFallback: mimeFallback, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -2950,6 +3102,7 @@ class $ReferenceApiClient { /// Throws a `DynamiteApiException` if the API call does not return an expected status code. /// /// Parameters: + /// * [reference] Reference to resolve. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -2960,10 +3113,14 @@ class $ReferenceApiClient { /// * [$resolveOne_Serializer] for a converter to parse the `Response` from an executed this request. @_i2.experimental _i3.Request $resolveOne_Request({ - required ReferenceApiResolveOneRequestApplicationJson $body, + required String reference, bool? oCSAPIRequest, }) { - const _path = '/ocs/v2.php/references/resolve'; + final _parameters = {}; + final __reference = _$jsonSerializers.serialize(reference, specifiedType: const FullType(String)); + _parameters['reference'] = __reference; + + final _path = _i6.UriTemplate('/ocs/v2.php/references/resolve{?reference*}').expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); _request.headers['Accept'] = 'application/json'; @@ -2988,13 +3145,6 @@ class $ReferenceApiClient { __oCSAPIRequest ??= true; _request.headers['OCS-APIRequest'] = const _i5.HeaderEncoder().convert(__oCSAPIRequest); - _request.headers['Content-Type'] = 'application/json'; - _request.body = json.encode( - _$jsonSerializers.serialize( - $body, - specifiedType: const FullType(ReferenceApiResolveOneRequestApplicationJson), - ), - ); return _request; } @@ -3004,6 +3154,7 @@ class $ReferenceApiClient { /// Throws a `DynamiteApiException` if the API call does not return an expected status code. /// /// Parameters: + /// * [reference] Reference to resolve. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -3013,12 +3164,12 @@ class $ReferenceApiClient { /// * [$resolveOne_Request] for the request send by this method. /// * [$resolveOne_Serializer] for a converter to parse the `Response` from an executed request. Future<_i1.DynamiteResponse> resolveOne({ - required ReferenceApiResolveOneRequestApplicationJson $body, + required String reference, bool? oCSAPIRequest, }) async { final _request = $resolveOne_Request( + reference: reference, oCSAPIRequest: oCSAPIRequest, - $body: $body, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -3901,6 +4052,7 @@ class $TextProcessingApiClient { /// /// Parameters: /// * [appId] ID of the app. + /// * [identifier] An arbitrary identifier for the task. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -3913,14 +4065,17 @@ class $TextProcessingApiClient { @_i2.experimental _i3.Request $listTasksByApp_Request({ required String appId, + String? identifier, bool? oCSAPIRequest, - TextProcessingApiListTasksByAppRequestApplicationJson? $body, }) { final _parameters = {}; final __appId = _$jsonSerializers.serialize(appId, specifiedType: const FullType(String)); _parameters['appId'] = __appId; - final _path = _i6.UriTemplate('/ocs/v2.php/textprocessing/tasks/app/{appId}').expand(_parameters); + final __identifier = _$jsonSerializers.serialize(identifier, specifiedType: const FullType(String)); + _parameters['identifier'] = __identifier; + + final _path = _i6.UriTemplate('/ocs/v2.php/textprocessing/tasks/app/{appId}{?identifier*}').expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); _request.headers['Accept'] = 'application/json'; @@ -3945,20 +4100,6 @@ class $TextProcessingApiClient { __oCSAPIRequest ??= true; _request.headers['OCS-APIRequest'] = const _i5.HeaderEncoder().convert(__oCSAPIRequest); - _request.headers['Content-Type'] = 'application/json'; - _request.body = $body != null - ? json.encode( - _$jsonSerializers.serialize( - $body, - specifiedType: const FullType(TextProcessingApiListTasksByAppRequestApplicationJson), - ), - ) - : json.encode( - _$jsonSerializers.serialize( - TextProcessingApiListTasksByAppRequestApplicationJson(), - specifiedType: const FullType(TextProcessingApiListTasksByAppRequestApplicationJson), - ), - ); return _request; } @@ -3969,6 +4110,7 @@ class $TextProcessingApiClient { /// /// Parameters: /// * [appId] ID of the app. + /// * [identifier] An arbitrary identifier for the task. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -3980,13 +4122,13 @@ class $TextProcessingApiClient { /// * [$listTasksByApp_Serializer] for a converter to parse the `Response` from an executed request. Future<_i1.DynamiteResponse> listTasksByApp({ required String appId, + String? identifier, bool? oCSAPIRequest, - TextProcessingApiListTasksByAppRequestApplicationJson? $body, }) async { final _request = $listTasksByApp_Request( appId: appId, + identifier: identifier, oCSAPIRequest: oCSAPIRequest, - $body: $body, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -4486,6 +4628,7 @@ class $TextToImageApiClient { /// /// Parameters: /// * [appId] ID of the app. + /// * [identifier] An arbitrary identifier for the task. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -4498,14 +4641,17 @@ class $TextToImageApiClient { @_i2.experimental _i3.Request $listTasksByApp_Request({ required String appId, + String? identifier, bool? oCSAPIRequest, - TextToImageApiListTasksByAppRequestApplicationJson? $body, }) { final _parameters = {}; final __appId = _$jsonSerializers.serialize(appId, specifiedType: const FullType(String)); _parameters['appId'] = __appId; - final _path = _i6.UriTemplate('/ocs/v2.php/text2image/tasks/app/{appId}').expand(_parameters); + final __identifier = _$jsonSerializers.serialize(identifier, specifiedType: const FullType(String)); + _parameters['identifier'] = __identifier; + + final _path = _i6.UriTemplate('/ocs/v2.php/text2image/tasks/app/{appId}{?identifier*}').expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); _request.headers['Accept'] = 'application/json'; @@ -4530,20 +4676,6 @@ class $TextToImageApiClient { __oCSAPIRequest ??= true; _request.headers['OCS-APIRequest'] = const _i5.HeaderEncoder().convert(__oCSAPIRequest); - _request.headers['Content-Type'] = 'application/json'; - _request.body = $body != null - ? json.encode( - _$jsonSerializers.serialize( - $body, - specifiedType: const FullType(TextToImageApiListTasksByAppRequestApplicationJson), - ), - ) - : json.encode( - _$jsonSerializers.serialize( - TextToImageApiListTasksByAppRequestApplicationJson(), - specifiedType: const FullType(TextToImageApiListTasksByAppRequestApplicationJson), - ), - ); return _request; } @@ -4554,6 +4686,7 @@ class $TextToImageApiClient { /// /// Parameters: /// * [appId] ID of the app. + /// * [identifier] An arbitrary identifier for the task. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -4565,13 +4698,13 @@ class $TextToImageApiClient { /// * [$listTasksByApp_Serializer] for a converter to parse the `Response` from an executed request. Future<_i1.DynamiteResponse> listTasksByApp({ required String appId, + String? identifier, bool? oCSAPIRequest, - TextToImageApiListTasksByAppRequestApplicationJson? $body, }) async { final _request = $listTasksByApp_Request( appId: appId, + identifier: identifier, oCSAPIRequest: oCSAPIRequest, - $body: $body, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -4787,6 +4920,7 @@ class $UnifiedSearchClient { /// Throws a `DynamiteApiException` if the API call does not return an expected status code. /// /// Parameters: + /// * [from] the url the user is currently at. Defaults to `""`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -4797,10 +4931,15 @@ class $UnifiedSearchClient { /// * [$getProviders_Serializer] for a converter to parse the `Response` from an executed this request. @_i2.experimental _i3.Request $getProviders_Request({ + String? from, bool? oCSAPIRequest, - UnifiedSearchGetProvidersRequestApplicationJson? $body, }) { - const _path = '/ocs/v2.php/search/providers'; + final _parameters = {}; + var __from = _$jsonSerializers.serialize(from, specifiedType: const FullType(String)); + __from ??= ''; + _parameters['from'] = __from; + + final _path = _i6.UriTemplate('/ocs/v2.php/search/providers{?from*}').expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); _request.headers['Accept'] = 'application/json'; @@ -4825,20 +4964,6 @@ class $UnifiedSearchClient { __oCSAPIRequest ??= true; _request.headers['OCS-APIRequest'] = const _i5.HeaderEncoder().convert(__oCSAPIRequest); - _request.headers['Content-Type'] = 'application/json'; - _request.body = $body != null - ? json.encode( - _$jsonSerializers.serialize( - $body, - specifiedType: const FullType(UnifiedSearchGetProvidersRequestApplicationJson), - ), - ) - : json.encode( - _$jsonSerializers.serialize( - UnifiedSearchGetProvidersRequestApplicationJson(), - specifiedType: const FullType(UnifiedSearchGetProvidersRequestApplicationJson), - ), - ); return _request; } @@ -4848,6 +4973,7 @@ class $UnifiedSearchClient { /// Throws a `DynamiteApiException` if the API call does not return an expected status code. /// /// Parameters: + /// * [from] the url the user is currently at. Defaults to `""`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -4857,12 +4983,12 @@ class $UnifiedSearchClient { /// * [$getProviders_Request] for the request send by this method. /// * [$getProviders_Serializer] for a converter to parse the `Response` from an executed request. Future<_i1.DynamiteResponse> getProviders({ + String? from, bool? oCSAPIRequest, - UnifiedSearchGetProvidersRequestApplicationJson? $body, }) async { final _request = $getProviders_Request( + from: from, oCSAPIRequest: oCSAPIRequest, - $body: $body, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -4891,6 +5017,11 @@ class $UnifiedSearchClient { /// /// Parameters: /// * [providerId] ID of the provider. + /// * [term] Term to search. Defaults to `""`. + /// * [sortOrder] Order of entries. + /// * [limit] Maximum amount of entries. + /// * [cursor] Offset for searching. + /// * [from] The current user URL. Defaults to `""`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -4903,14 +5034,37 @@ class $UnifiedSearchClient { @_i2.experimental _i3.Request $search_Request({ required String providerId, + String? term, + int? sortOrder, + int? limit, + UnifiedSearchSearchCursor? cursor, + String? from, bool? oCSAPIRequest, - UnifiedSearchSearchRequestApplicationJson? $body, }) { final _parameters = {}; final __providerId = _$jsonSerializers.serialize(providerId, specifiedType: const FullType(String)); _parameters['providerId'] = __providerId; - final _path = _i6.UriTemplate('/ocs/v2.php/search/providers/{providerId}/search').expand(_parameters); + var __term = _$jsonSerializers.serialize(term, specifiedType: const FullType(String)); + __term ??= ''; + _parameters['term'] = __term; + + final __sortOrder = _$jsonSerializers.serialize(sortOrder, specifiedType: const FullType(int)); + _parameters['sortOrder'] = __sortOrder; + + final __limit = _$jsonSerializers.serialize(limit, specifiedType: const FullType(int)); + _parameters['limit'] = __limit; + + final __cursor = _$jsonSerializers.serialize(cursor, specifiedType: const FullType(UnifiedSearchSearchCursor)); + _parameters['cursor'] = __cursor; + + var __from = _$jsonSerializers.serialize(from, specifiedType: const FullType(String)); + __from ??= ''; + _parameters['from'] = __from; + + final _path = + _i6.UriTemplate('/ocs/v2.php/search/providers/{providerId}/search{?term*,sortOrder*,limit*,cursor*,from*}') + .expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); _request.headers['Accept'] = 'application/json'; @@ -4935,20 +5089,6 @@ class $UnifiedSearchClient { __oCSAPIRequest ??= true; _request.headers['OCS-APIRequest'] = const _i5.HeaderEncoder().convert(__oCSAPIRequest); - _request.headers['Content-Type'] = 'application/json'; - _request.body = $body != null - ? json.encode( - _$jsonSerializers.serialize( - $body, - specifiedType: const FullType(UnifiedSearchSearchRequestApplicationJson), - ), - ) - : json.encode( - _$jsonSerializers.serialize( - UnifiedSearchSearchRequestApplicationJson(), - specifiedType: const FullType(UnifiedSearchSearchRequestApplicationJson), - ), - ); return _request; } @@ -4961,6 +5101,11 @@ class $UnifiedSearchClient { /// /// Parameters: /// * [providerId] ID of the provider. + /// * [term] Term to search. Defaults to `""`. + /// * [sortOrder] Order of entries. + /// * [limit] Maximum amount of entries. + /// * [cursor] Offset for searching. + /// * [from] The current user URL. Defaults to `""`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -4972,13 +5117,21 @@ class $UnifiedSearchClient { /// * [$search_Serializer] for a converter to parse the `Response` from an executed request. Future<_i1.DynamiteResponse> search({ required String providerId, + String? term, + int? sortOrder, + int? limit, + UnifiedSearchSearchCursor? cursor, + String? from, bool? oCSAPIRequest, - UnifiedSearchSearchRequestApplicationJson? $body, }) async { final _request = $search_Request( providerId: providerId, + term: term, + sortOrder: sortOrder, + limit: limit, + cursor: cursor, + from: from, oCSAPIRequest: oCSAPIRequest, - $body: $body, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -6209,98 +6362,6 @@ abstract class AppPasswordConfirmUserPasswordResponseApplicationJson } } -@BuiltValue(instantiable: false) -sealed class $AutoCompleteGetRequestApplicationJsonInterface { - static final _$shareTypes = _$jsonSerializers.deserialize( - const [], - specifiedType: const FullType(BuiltList, [FullType(int)]), - )! as BuiltList; - - static final _$limit = _$jsonSerializers.deserialize( - 10, - specifiedType: const FullType(int), - )! as int; - - /// Text to search for. - String get search; - - /// Type of the items to search for. - String? get itemType; - - /// ID of the items to search for. - String? get itemId; - - /// can be piped, top prio first, e.g.: "commenters|share-recipients". - String? get sorter; - - /// Types of shares to search for. - BuiltList get shareTypes; - - /// Maximum number of results to return. - int get limit; - - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$AutoCompleteGetRequestApplicationJsonInterfaceBuilder]. - $AutoCompleteGetRequestApplicationJsonInterface rebuild( - void Function($AutoCompleteGetRequestApplicationJsonInterfaceBuilder) updates, - ); - - /// Converts the instance to a builder [$AutoCompleteGetRequestApplicationJsonInterfaceBuilder]. - $AutoCompleteGetRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($AutoCompleteGetRequestApplicationJsonInterfaceBuilder b) { - b.shareTypes.replace(_$shareTypes); - b.limit = _$limit; - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate($AutoCompleteGetRequestApplicationJsonInterfaceBuilder b) {} -} - -abstract class AutoCompleteGetRequestApplicationJson - implements - $AutoCompleteGetRequestApplicationJsonInterface, - Built { - /// Creates a new AutoCompleteGetRequestApplicationJson object using the builder pattern. - factory AutoCompleteGetRequestApplicationJson([void Function(AutoCompleteGetRequestApplicationJsonBuilder)? b]) = - _$AutoCompleteGetRequestApplicationJson; - - // coverage:ignore-start - const AutoCompleteGetRequestApplicationJson._(); - // coverage:ignore-end - - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory AutoCompleteGetRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end - - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end - - /// Serializer for AutoCompleteGetRequestApplicationJson. - static Serializer get serializer => - _$autoCompleteGetRequestApplicationJsonSerializer; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults(AutoCompleteGetRequestApplicationJsonBuilder b) { - $AutoCompleteGetRequestApplicationJsonInterface._defaults(b); - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate(AutoCompleteGetRequestApplicationJsonBuilder b) { - $AutoCompleteGetRequestApplicationJsonInterface._validate(b); - } -} - @BuiltValue(instantiable: false) sealed class $AutocompleteResult_Status0Interface { String get status; @@ -7602,95 +7663,27 @@ abstract class CollaborationResourcesAddResourceResponseApplicationJson } @BuiltValue(instantiable: false) -sealed class $CollaborationResourcesRemoveResourceRequestApplicationJsonInterface { - /// Name of the resource. - String get resourceType; - - /// ID of the resource. - String get resourceId; +sealed class $CollaborationResourcesRemoveResourceResponseApplicationJson_OcsInterface { + OCSMeta get meta; + Collection get data; /// Rebuilds the instance. /// /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$CollaborationResourcesRemoveResourceRequestApplicationJsonInterfaceBuilder]. - $CollaborationResourcesRemoveResourceRequestApplicationJsonInterface rebuild( - void Function($CollaborationResourcesRemoveResourceRequestApplicationJsonInterfaceBuilder) updates, + /// [updates] is a function that takes a builder [$CollaborationResourcesRemoveResourceResponseApplicationJson_OcsInterfaceBuilder]. + $CollaborationResourcesRemoveResourceResponseApplicationJson_OcsInterface rebuild( + void Function($CollaborationResourcesRemoveResourceResponseApplicationJson_OcsInterfaceBuilder) updates, ); - /// Converts the instance to a builder [$CollaborationResourcesRemoveResourceRequestApplicationJsonInterfaceBuilder]. - $CollaborationResourcesRemoveResourceRequestApplicationJsonInterfaceBuilder toBuilder(); + /// Converts the instance to a builder [$CollaborationResourcesRemoveResourceResponseApplicationJson_OcsInterfaceBuilder]. + $CollaborationResourcesRemoveResourceResponseApplicationJson_OcsInterfaceBuilder toBuilder(); @BuiltValueHook(initializeBuilder: true) - static void _defaults($CollaborationResourcesRemoveResourceRequestApplicationJsonInterfaceBuilder b) {} + static void _defaults($CollaborationResourcesRemoveResourceResponseApplicationJson_OcsInterfaceBuilder b) {} @BuiltValueHook(finalizeBuilder: true) - static void _validate($CollaborationResourcesRemoveResourceRequestApplicationJsonInterfaceBuilder b) {} + static void _validate($CollaborationResourcesRemoveResourceResponseApplicationJson_OcsInterfaceBuilder b) {} } -abstract class CollaborationResourcesRemoveResourceRequestApplicationJson - implements - $CollaborationResourcesRemoveResourceRequestApplicationJsonInterface, - Built { - /// Creates a new CollaborationResourcesRemoveResourceRequestApplicationJson object using the builder pattern. - factory CollaborationResourcesRemoveResourceRequestApplicationJson([ - void Function(CollaborationResourcesRemoveResourceRequestApplicationJsonBuilder)? b, - ]) = _$CollaborationResourcesRemoveResourceRequestApplicationJson; - - // coverage:ignore-start - const CollaborationResourcesRemoveResourceRequestApplicationJson._(); - // coverage:ignore-end - - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory CollaborationResourcesRemoveResourceRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end - - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end - - /// Serializer for CollaborationResourcesRemoveResourceRequestApplicationJson. - static Serializer get serializer => - _$collaborationResourcesRemoveResourceRequestApplicationJsonSerializer; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults(CollaborationResourcesRemoveResourceRequestApplicationJsonBuilder b) { - $CollaborationResourcesRemoveResourceRequestApplicationJsonInterface._defaults(b); - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate(CollaborationResourcesRemoveResourceRequestApplicationJsonBuilder b) { - $CollaborationResourcesRemoveResourceRequestApplicationJsonInterface._validate(b); - } -} - -@BuiltValue(instantiable: false) -sealed class $CollaborationResourcesRemoveResourceResponseApplicationJson_OcsInterface { - OCSMeta get meta; - Collection get data; - - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$CollaborationResourcesRemoveResourceResponseApplicationJson_OcsInterfaceBuilder]. - $CollaborationResourcesRemoveResourceResponseApplicationJson_OcsInterface rebuild( - void Function($CollaborationResourcesRemoveResourceResponseApplicationJson_OcsInterfaceBuilder) updates, - ); - - /// Converts the instance to a builder [$CollaborationResourcesRemoveResourceResponseApplicationJson_OcsInterfaceBuilder]. - $CollaborationResourcesRemoveResourceResponseApplicationJson_OcsInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($CollaborationResourcesRemoveResourceResponseApplicationJson_OcsInterfaceBuilder b) {} - @BuiltValueHook(finalizeBuilder: true) - static void _validate($CollaborationResourcesRemoveResourceResponseApplicationJson_OcsInterfaceBuilder b) {} -} - -abstract class CollaborationResourcesRemoveResourceResponseApplicationJson_Ocs +abstract class CollaborationResourcesRemoveResourceResponseApplicationJson_Ocs implements $CollaborationResourcesRemoveResourceResponseApplicationJson_OcsInterface, Built get values => _$guestAvatarGetAvatarDarkThemeValues; + // coverage:ignore-end - @BuiltValueHook(finalizeBuilder: true) - static void _validate($GuestAvatarGetAvatarRequestApplicationJsonInterfaceBuilder b) {} + /// Returns the enum value associated to the [name]. + static GuestAvatarGetAvatarDarkTheme valueOf(String name) => _$valueOfGuestAvatarGetAvatarDarkTheme(name); + + /// Returns the serialized value of this enum value. + int get value => _$jsonSerializers.serializeWith(serializer, this)! as int; + + /// Serializer for GuestAvatarGetAvatarDarkTheme. + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$GuestAvatarGetAvatarDarkThemeSerializer(); } -abstract class GuestAvatarGetAvatarRequestApplicationJson - implements - $GuestAvatarGetAvatarRequestApplicationJsonInterface, - Built { - /// Creates a new GuestAvatarGetAvatarRequestApplicationJson object using the builder pattern. - factory GuestAvatarGetAvatarRequestApplicationJson([ - void Function(GuestAvatarGetAvatarRequestApplicationJsonBuilder)? b, - ]) = _$GuestAvatarGetAvatarRequestApplicationJson; +class _$GuestAvatarGetAvatarDarkThemeSerializer implements PrimitiveSerializer { + const _$GuestAvatarGetAvatarDarkThemeSerializer(); - // coverage:ignore-start - const GuestAvatarGetAvatarRequestApplicationJson._(); - // coverage:ignore-end + static const Map _toWire = { + GuestAvatarGetAvatarDarkTheme.$0: 0, + GuestAvatarGetAvatarDarkTheme.$1: 1, + }; - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory GuestAvatarGetAvatarRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end + static const Map _fromWire = { + 0: GuestAvatarGetAvatarDarkTheme.$0, + 1: GuestAvatarGetAvatarDarkTheme.$1, + }; - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end + @override + Iterable get types => const [GuestAvatarGetAvatarDarkTheme]; - /// Serializer for GuestAvatarGetAvatarRequestApplicationJson. - static Serializer get serializer => - _$guestAvatarGetAvatarRequestApplicationJsonSerializer; + @override + String get wireName => 'GuestAvatarGetAvatarDarkTheme'; - @BuiltValueHook(initializeBuilder: true) - static void _defaults(GuestAvatarGetAvatarRequestApplicationJsonBuilder b) { - $GuestAvatarGetAvatarRequestApplicationJsonInterface._defaults(b); - } + @override + Object serialize( + Serializers serializers, + GuestAvatarGetAvatarDarkTheme object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; - @BuiltValueHook(finalizeBuilder: true) - static void _validate(GuestAvatarGetAvatarRequestApplicationJsonBuilder b) { - $GuestAvatarGetAvatarRequestApplicationJsonInterface._validate(b); - } + @override + GuestAvatarGetAvatarDarkTheme deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -8706,77 +8690,70 @@ abstract class LoginConfirmPasswordResponseApplicationJson } } -@BuiltValue(instantiable: false) -sealed class $NavigationGetAppsNavigationRequestApplicationJsonInterface { - static final _$absolute = _$jsonSerializers.deserialize( - false, - specifiedType: const FullType(bool), - )! as bool; +class NavigationGetAppsNavigationAbsolute extends EnumClass { + const NavigationGetAppsNavigationAbsolute._(super.name); - /// Rewrite URLs to absolute ones. - bool get absolute; + /// `0` + @BuiltValueEnumConst(wireName: '0') + static const NavigationGetAppsNavigationAbsolute $0 = _$navigationGetAppsNavigationAbsolute$0; - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$NavigationGetAppsNavigationRequestApplicationJsonInterfaceBuilder]. - $NavigationGetAppsNavigationRequestApplicationJsonInterface rebuild( - void Function($NavigationGetAppsNavigationRequestApplicationJsonInterfaceBuilder) updates, - ); + /// `1` + @BuiltValueEnumConst(wireName: '1') + static const NavigationGetAppsNavigationAbsolute $1 = _$navigationGetAppsNavigationAbsolute$1; - /// Converts the instance to a builder [$NavigationGetAppsNavigationRequestApplicationJsonInterfaceBuilder]. - $NavigationGetAppsNavigationRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($NavigationGetAppsNavigationRequestApplicationJsonInterfaceBuilder b) { - b.absolute = _$absolute; - } + /// Returns a set with all values this enum contains. + // coverage:ignore-start + static BuiltSet get values => _$navigationGetAppsNavigationAbsoluteValues; + // coverage:ignore-end - @BuiltValueHook(finalizeBuilder: true) - static void _validate($NavigationGetAppsNavigationRequestApplicationJsonInterfaceBuilder b) {} + /// Returns the enum value associated to the [name]. + static NavigationGetAppsNavigationAbsolute valueOf(String name) => _$valueOfNavigationGetAppsNavigationAbsolute(name); + + /// Returns the serialized value of this enum value. + int get value => _$jsonSerializers.serializeWith(serializer, this)! as int; + + /// Serializer for NavigationGetAppsNavigationAbsolute. + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + const _$NavigationGetAppsNavigationAbsoluteSerializer(); } -abstract class NavigationGetAppsNavigationRequestApplicationJson - implements - $NavigationGetAppsNavigationRequestApplicationJsonInterface, - Built { - /// Creates a new NavigationGetAppsNavigationRequestApplicationJson object using the builder pattern. - factory NavigationGetAppsNavigationRequestApplicationJson([ - void Function(NavigationGetAppsNavigationRequestApplicationJsonBuilder)? b, - ]) = _$NavigationGetAppsNavigationRequestApplicationJson; +class _$NavigationGetAppsNavigationAbsoluteSerializer + implements PrimitiveSerializer { + const _$NavigationGetAppsNavigationAbsoluteSerializer(); - // coverage:ignore-start - const NavigationGetAppsNavigationRequestApplicationJson._(); - // coverage:ignore-end + static const Map _toWire = { + NavigationGetAppsNavigationAbsolute.$0: 0, + NavigationGetAppsNavigationAbsolute.$1: 1, + }; - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory NavigationGetAppsNavigationRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end + static const Map _fromWire = + { + 0: NavigationGetAppsNavigationAbsolute.$0, + 1: NavigationGetAppsNavigationAbsolute.$1, + }; - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end + @override + Iterable get types => const [NavigationGetAppsNavigationAbsolute]; - /// Serializer for NavigationGetAppsNavigationRequestApplicationJson. - static Serializer get serializer => - _$navigationGetAppsNavigationRequestApplicationJsonSerializer; + @override + String get wireName => 'NavigationGetAppsNavigationAbsolute'; - @BuiltValueHook(initializeBuilder: true) - static void _defaults(NavigationGetAppsNavigationRequestApplicationJsonBuilder b) { - $NavigationGetAppsNavigationRequestApplicationJsonInterface._defaults(b); - } + @override + Object serialize( + Serializers serializers, + NavigationGetAppsNavigationAbsolute object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; - @BuiltValueHook(finalizeBuilder: true) - static void _validate(NavigationGetAppsNavigationRequestApplicationJsonBuilder b) { - $NavigationGetAppsNavigationRequestApplicationJsonInterface._validate(b); - } + @override + NavigationGetAppsNavigationAbsolute deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } typedef NavigationEntry_Order = ({int? $int, String? string}); @@ -8974,77 +8951,73 @@ abstract class NavigationGetAppsNavigationResponseApplicationJson } } -@BuiltValue(instantiable: false) -sealed class $NavigationGetSettingsNavigationRequestApplicationJsonInterface { - static final _$absolute = _$jsonSerializers.deserialize( - false, - specifiedType: const FullType(bool), - )! as bool; +class NavigationGetSettingsNavigationAbsolute extends EnumClass { + const NavigationGetSettingsNavigationAbsolute._(super.name); - /// Rewrite URLs to absolute ones. - bool get absolute; + /// `0` + @BuiltValueEnumConst(wireName: '0') + static const NavigationGetSettingsNavigationAbsolute $0 = _$navigationGetSettingsNavigationAbsolute$0; - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$NavigationGetSettingsNavigationRequestApplicationJsonInterfaceBuilder]. - $NavigationGetSettingsNavigationRequestApplicationJsonInterface rebuild( - void Function($NavigationGetSettingsNavigationRequestApplicationJsonInterfaceBuilder) updates, - ); + /// `1` + @BuiltValueEnumConst(wireName: '1') + static const NavigationGetSettingsNavigationAbsolute $1 = _$navigationGetSettingsNavigationAbsolute$1; - /// Converts the instance to a builder [$NavigationGetSettingsNavigationRequestApplicationJsonInterfaceBuilder]. - $NavigationGetSettingsNavigationRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($NavigationGetSettingsNavigationRequestApplicationJsonInterfaceBuilder b) { - b.absolute = _$absolute; - } + /// Returns a set with all values this enum contains. + // coverage:ignore-start + static BuiltSet get values => + _$navigationGetSettingsNavigationAbsoluteValues; + // coverage:ignore-end - @BuiltValueHook(finalizeBuilder: true) - static void _validate($NavigationGetSettingsNavigationRequestApplicationJsonInterfaceBuilder b) {} + /// Returns the enum value associated to the [name]. + static NavigationGetSettingsNavigationAbsolute valueOf(String name) => + _$valueOfNavigationGetSettingsNavigationAbsolute(name); + + /// Returns the serialized value of this enum value. + int get value => _$jsonSerializers.serializeWith(serializer, this)! as int; + + /// Serializer for NavigationGetSettingsNavigationAbsolute. + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + const _$NavigationGetSettingsNavigationAbsoluteSerializer(); } -abstract class NavigationGetSettingsNavigationRequestApplicationJson - implements - $NavigationGetSettingsNavigationRequestApplicationJsonInterface, - Built { - /// Creates a new NavigationGetSettingsNavigationRequestApplicationJson object using the builder pattern. - factory NavigationGetSettingsNavigationRequestApplicationJson([ - void Function(NavigationGetSettingsNavigationRequestApplicationJsonBuilder)? b, - ]) = _$NavigationGetSettingsNavigationRequestApplicationJson; +class _$NavigationGetSettingsNavigationAbsoluteSerializer + implements PrimitiveSerializer { + const _$NavigationGetSettingsNavigationAbsoluteSerializer(); - // coverage:ignore-start - const NavigationGetSettingsNavigationRequestApplicationJson._(); - // coverage:ignore-end + static const Map _toWire = + { + NavigationGetSettingsNavigationAbsolute.$0: 0, + NavigationGetSettingsNavigationAbsolute.$1: 1, + }; - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory NavigationGetSettingsNavigationRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end + static const Map _fromWire = + { + 0: NavigationGetSettingsNavigationAbsolute.$0, + 1: NavigationGetSettingsNavigationAbsolute.$1, + }; - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end + @override + Iterable get types => const [NavigationGetSettingsNavigationAbsolute]; - /// Serializer for NavigationGetSettingsNavigationRequestApplicationJson. - static Serializer get serializer => - _$navigationGetSettingsNavigationRequestApplicationJsonSerializer; + @override + String get wireName => 'NavigationGetSettingsNavigationAbsolute'; - @BuiltValueHook(initializeBuilder: true) - static void _defaults(NavigationGetSettingsNavigationRequestApplicationJsonBuilder b) { - $NavigationGetSettingsNavigationRequestApplicationJsonInterface._defaults(b); - } + @override + Object serialize( + Serializers serializers, + NavigationGetSettingsNavigationAbsolute object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; - @BuiltValueHook(finalizeBuilder: true) - static void _validate(NavigationGetSettingsNavigationRequestApplicationJsonBuilder b) { - $NavigationGetSettingsNavigationRequestApplicationJsonInterface._validate(b); - } + @override + NavigationGetSettingsNavigationAbsolute deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -13913,255 +13886,389 @@ abstract class OcsGetCapabilitiesResponseApplicationJson } } -@BuiltValue(instantiable: false) -sealed class $PreviewGetPreviewRequestApplicationJsonInterface { - static final _$file = _$jsonSerializers.deserialize( - '', - specifiedType: const FullType(String), - )! as String; +class PreviewGetPreviewA extends EnumClass { + const PreviewGetPreviewA._(super.name); - static final _$x = _$jsonSerializers.deserialize( - 32, - specifiedType: const FullType(int), - )! as int; - - static final _$y = _$jsonSerializers.deserialize( - 32, - specifiedType: const FullType(int), - )! as int; + /// `0` + @BuiltValueEnumConst(wireName: '0') + static const PreviewGetPreviewA $0 = _$previewGetPreviewA$0; - static final _$a = _$jsonSerializers.deserialize( - false, - specifiedType: const FullType(bool), - )! as bool; + /// `1` + @BuiltValueEnumConst(wireName: '1') + static const PreviewGetPreviewA $1 = _$previewGetPreviewA$1; - static final _$forceIcon = _$jsonSerializers.deserialize( - true, - specifiedType: const FullType(bool), - )! as bool; + /// Returns a set with all values this enum contains. + // coverage:ignore-start + static BuiltSet get values => _$previewGetPreviewAValues; + // coverage:ignore-end - static final _$mode = _$jsonSerializers.deserialize( - 'fill', - specifiedType: const FullType(String), - )! as String; + /// Returns the enum value associated to the [name]. + static PreviewGetPreviewA valueOf(String name) => _$valueOfPreviewGetPreviewA(name); - static final _$mimeFallback = _$jsonSerializers.deserialize( - false, - specifiedType: const FullType(bool), - )! as bool; + /// Returns the serialized value of this enum value. + int get value => _$jsonSerializers.serializeWith(serializer, this)! as int; - /// Path of the file. - String get file; + /// Serializer for PreviewGetPreviewA. + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$PreviewGetPreviewASerializer(); +} - /// Width of the preview. - int get x; +class _$PreviewGetPreviewASerializer implements PrimitiveSerializer { + const _$PreviewGetPreviewASerializer(); - /// Height of the preview. - int get y; + static const Map _toWire = { + PreviewGetPreviewA.$0: 0, + PreviewGetPreviewA.$1: 1, + }; - /// Whether to not crop the preview. - bool get a; + static const Map _fromWire = { + 0: PreviewGetPreviewA.$0, + 1: PreviewGetPreviewA.$1, + }; - /// Force returning an icon. - bool get forceIcon; + @override + Iterable get types => const [PreviewGetPreviewA]; - /// How to crop the image. - String get mode; + @override + String get wireName => 'PreviewGetPreviewA'; - /// Whether to fallback to the mime icon if no preview is available. - bool get mimeFallback; + @override + Object serialize( + Serializers serializers, + PreviewGetPreviewA object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$PreviewGetPreviewRequestApplicationJsonInterfaceBuilder]. - $PreviewGetPreviewRequestApplicationJsonInterface rebuild( - void Function($PreviewGetPreviewRequestApplicationJsonInterfaceBuilder) updates, - ); + @override + PreviewGetPreviewA deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; +} - /// Converts the instance to a builder [$PreviewGetPreviewRequestApplicationJsonInterfaceBuilder]. - $PreviewGetPreviewRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($PreviewGetPreviewRequestApplicationJsonInterfaceBuilder b) { - b.file = _$file; - b.x = _$x; - b.y = _$y; - b.a = _$a; - b.forceIcon = _$forceIcon; - b.mode = _$mode; - b.mimeFallback = _$mimeFallback; - } +class PreviewGetPreviewForceIcon extends EnumClass { + const PreviewGetPreviewForceIcon._(super.name); - @BuiltValueHook(finalizeBuilder: true) - static void _validate($PreviewGetPreviewRequestApplicationJsonInterfaceBuilder b) {} -} + /// `0` + @BuiltValueEnumConst(wireName: '0') + static const PreviewGetPreviewForceIcon $0 = _$previewGetPreviewForceIcon$0; -abstract class PreviewGetPreviewRequestApplicationJson - implements - $PreviewGetPreviewRequestApplicationJsonInterface, - Built { - /// Creates a new PreviewGetPreviewRequestApplicationJson object using the builder pattern. - factory PreviewGetPreviewRequestApplicationJson([void Function(PreviewGetPreviewRequestApplicationJsonBuilder)? b]) = - _$PreviewGetPreviewRequestApplicationJson; + /// `1` + @BuiltValueEnumConst(wireName: '1') + static const PreviewGetPreviewForceIcon $1 = _$previewGetPreviewForceIcon$1; + /// Returns a set with all values this enum contains. // coverage:ignore-start - const PreviewGetPreviewRequestApplicationJson._(); + static BuiltSet get values => _$previewGetPreviewForceIconValues; // coverage:ignore-end - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory PreviewGetPreviewRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end + /// Returns the enum value associated to the [name]. + static PreviewGetPreviewForceIcon valueOf(String name) => _$valueOfPreviewGetPreviewForceIcon(name); - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. + /// Returns the serialized value of this enum value. + int get value => _$jsonSerializers.serializeWith(serializer, this)! as int; + + /// Serializer for PreviewGetPreviewForceIcon. + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$PreviewGetPreviewForceIconSerializer(); +} + +class _$PreviewGetPreviewForceIconSerializer implements PrimitiveSerializer { + const _$PreviewGetPreviewForceIconSerializer(); + + static const Map _toWire = { + PreviewGetPreviewForceIcon.$0: 0, + PreviewGetPreviewForceIcon.$1: 1, + }; + + static const Map _fromWire = { + 0: PreviewGetPreviewForceIcon.$0, + 1: PreviewGetPreviewForceIcon.$1, + }; + + @override + Iterable get types => const [PreviewGetPreviewForceIcon]; + + @override + String get wireName => 'PreviewGetPreviewForceIcon'; + + @override + Object serialize( + Serializers serializers, + PreviewGetPreviewForceIcon object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + PreviewGetPreviewForceIcon deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; +} + +class PreviewGetPreviewMimeFallback extends EnumClass { + const PreviewGetPreviewMimeFallback._(super.name); + + /// `0` + @BuiltValueEnumConst(wireName: '0') + static const PreviewGetPreviewMimeFallback $0 = _$previewGetPreviewMimeFallback$0; + + /// `1` + @BuiltValueEnumConst(wireName: '1') + static const PreviewGetPreviewMimeFallback $1 = _$previewGetPreviewMimeFallback$1; + + /// Returns a set with all values this enum contains. // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; + static BuiltSet get values => _$previewGetPreviewMimeFallbackValues; // coverage:ignore-end - /// Serializer for PreviewGetPreviewRequestApplicationJson. - static Serializer get serializer => - _$previewGetPreviewRequestApplicationJsonSerializer; + /// Returns the enum value associated to the [name]. + static PreviewGetPreviewMimeFallback valueOf(String name) => _$valueOfPreviewGetPreviewMimeFallback(name); - @BuiltValueHook(initializeBuilder: true) - static void _defaults(PreviewGetPreviewRequestApplicationJsonBuilder b) { - $PreviewGetPreviewRequestApplicationJsonInterface._defaults(b); - } + /// Returns the serialized value of this enum value. + int get value => _$jsonSerializers.serializeWith(serializer, this)! as int; - @BuiltValueHook(finalizeBuilder: true) - static void _validate(PreviewGetPreviewRequestApplicationJsonBuilder b) { - $PreviewGetPreviewRequestApplicationJsonInterface._validate(b); - } + /// Serializer for PreviewGetPreviewMimeFallback. + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$PreviewGetPreviewMimeFallbackSerializer(); } -@BuiltValue(instantiable: false) -sealed class $PreviewGetPreviewByFileIdRequestApplicationJsonInterface { - static final _$fileId = _$jsonSerializers.deserialize( - -1, - specifiedType: const FullType(int), - )! as int; +class _$PreviewGetPreviewMimeFallbackSerializer implements PrimitiveSerializer { + const _$PreviewGetPreviewMimeFallbackSerializer(); - static final _$x = _$jsonSerializers.deserialize( - 32, - specifiedType: const FullType(int), - )! as int; + static const Map _toWire = { + PreviewGetPreviewMimeFallback.$0: 0, + PreviewGetPreviewMimeFallback.$1: 1, + }; - static final _$y = _$jsonSerializers.deserialize( - 32, - specifiedType: const FullType(int), - )! as int; + static const Map _fromWire = { + 0: PreviewGetPreviewMimeFallback.$0, + 1: PreviewGetPreviewMimeFallback.$1, + }; - static final _$a = _$jsonSerializers.deserialize( - false, - specifiedType: const FullType(bool), - )! as bool; + @override + Iterable get types => const [PreviewGetPreviewMimeFallback]; - static final _$forceIcon = _$jsonSerializers.deserialize( - true, - specifiedType: const FullType(bool), - )! as bool; + @override + String get wireName => 'PreviewGetPreviewMimeFallback'; - static final _$mode = _$jsonSerializers.deserialize( - 'fill', - specifiedType: const FullType(String), - )! as String; + @override + Object serialize( + Serializers serializers, + PreviewGetPreviewMimeFallback object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; - static final _$mimeFallback = _$jsonSerializers.deserialize( - false, - specifiedType: const FullType(bool), - )! as bool; + @override + PreviewGetPreviewMimeFallback deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; +} - /// ID of the file. - int get fileId; +class PreviewGetPreviewByFileIdA extends EnumClass { + const PreviewGetPreviewByFileIdA._(super.name); - /// Width of the preview. - int get x; + /// `0` + @BuiltValueEnumConst(wireName: '0') + static const PreviewGetPreviewByFileIdA $0 = _$previewGetPreviewByFileIdA$0; - /// Height of the preview. - int get y; + /// `1` + @BuiltValueEnumConst(wireName: '1') + static const PreviewGetPreviewByFileIdA $1 = _$previewGetPreviewByFileIdA$1; - /// Whether to not crop the preview. - bool get a; + /// Returns a set with all values this enum contains. + // coverage:ignore-start + static BuiltSet get values => _$previewGetPreviewByFileIdAValues; + // coverage:ignore-end - /// Force returning an icon. - bool get forceIcon; + /// Returns the enum value associated to the [name]. + static PreviewGetPreviewByFileIdA valueOf(String name) => _$valueOfPreviewGetPreviewByFileIdA(name); - /// How to crop the image. - String get mode; + /// Returns the serialized value of this enum value. + int get value => _$jsonSerializers.serializeWith(serializer, this)! as int; - /// Whether to fallback to the mime icon if no preview is available. - bool get mimeFallback; + /// Serializer for PreviewGetPreviewByFileIdA. + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$PreviewGetPreviewByFileIdASerializer(); +} - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$PreviewGetPreviewByFileIdRequestApplicationJsonInterfaceBuilder]. - $PreviewGetPreviewByFileIdRequestApplicationJsonInterface rebuild( - void Function($PreviewGetPreviewByFileIdRequestApplicationJsonInterfaceBuilder) updates, - ); +class _$PreviewGetPreviewByFileIdASerializer implements PrimitiveSerializer { + const _$PreviewGetPreviewByFileIdASerializer(); - /// Converts the instance to a builder [$PreviewGetPreviewByFileIdRequestApplicationJsonInterfaceBuilder]. - $PreviewGetPreviewByFileIdRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($PreviewGetPreviewByFileIdRequestApplicationJsonInterfaceBuilder b) { - b.fileId = _$fileId; - b.x = _$x; - b.y = _$y; - b.a = _$a; - b.forceIcon = _$forceIcon; - b.mode = _$mode; - b.mimeFallback = _$mimeFallback; - } + static const Map _toWire = { + PreviewGetPreviewByFileIdA.$0: 0, + PreviewGetPreviewByFileIdA.$1: 1, + }; - @BuiltValueHook(finalizeBuilder: true) - static void _validate($PreviewGetPreviewByFileIdRequestApplicationJsonInterfaceBuilder b) {} + static const Map _fromWire = { + 0: PreviewGetPreviewByFileIdA.$0, + 1: PreviewGetPreviewByFileIdA.$1, + }; + + @override + Iterable get types => const [PreviewGetPreviewByFileIdA]; + + @override + String get wireName => 'PreviewGetPreviewByFileIdA'; + + @override + Object serialize( + Serializers serializers, + PreviewGetPreviewByFileIdA object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + PreviewGetPreviewByFileIdA deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } -abstract class PreviewGetPreviewByFileIdRequestApplicationJson - implements - $PreviewGetPreviewByFileIdRequestApplicationJsonInterface, - Built { - /// Creates a new PreviewGetPreviewByFileIdRequestApplicationJson object using the builder pattern. - factory PreviewGetPreviewByFileIdRequestApplicationJson([ - void Function(PreviewGetPreviewByFileIdRequestApplicationJsonBuilder)? b, - ]) = _$PreviewGetPreviewByFileIdRequestApplicationJson; +class PreviewGetPreviewByFileIdForceIcon extends EnumClass { + const PreviewGetPreviewByFileIdForceIcon._(super.name); - // coverage:ignore-start - const PreviewGetPreviewByFileIdRequestApplicationJson._(); - // coverage:ignore-end + /// `0` + @BuiltValueEnumConst(wireName: '0') + static const PreviewGetPreviewByFileIdForceIcon $0 = _$previewGetPreviewByFileIdForceIcon$0; - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. + /// `1` + @BuiltValueEnumConst(wireName: '1') + static const PreviewGetPreviewByFileIdForceIcon $1 = _$previewGetPreviewByFileIdForceIcon$1; + + /// Returns a set with all values this enum contains. // coverage:ignore-start - factory PreviewGetPreviewByFileIdRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; + static BuiltSet get values => _$previewGetPreviewByFileIdForceIconValues; // coverage:ignore-end - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. + /// Returns the enum value associated to the [name]. + static PreviewGetPreviewByFileIdForceIcon valueOf(String name) => _$valueOfPreviewGetPreviewByFileIdForceIcon(name); + + /// Returns the serialized value of this enum value. + int get value => _$jsonSerializers.serializeWith(serializer, this)! as int; + + /// Serializer for PreviewGetPreviewByFileIdForceIcon. + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + const _$PreviewGetPreviewByFileIdForceIconSerializer(); +} + +class _$PreviewGetPreviewByFileIdForceIconSerializer + implements PrimitiveSerializer { + const _$PreviewGetPreviewByFileIdForceIconSerializer(); + + static const Map _toWire = { + PreviewGetPreviewByFileIdForceIcon.$0: 0, + PreviewGetPreviewByFileIdForceIcon.$1: 1, + }; + + static const Map _fromWire = { + 0: PreviewGetPreviewByFileIdForceIcon.$0, + 1: PreviewGetPreviewByFileIdForceIcon.$1, + }; + + @override + Iterable get types => const [PreviewGetPreviewByFileIdForceIcon]; + + @override + String get wireName => 'PreviewGetPreviewByFileIdForceIcon'; + + @override + Object serialize( + Serializers serializers, + PreviewGetPreviewByFileIdForceIcon object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + PreviewGetPreviewByFileIdForceIcon deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; +} + +class PreviewGetPreviewByFileIdMimeFallback extends EnumClass { + const PreviewGetPreviewByFileIdMimeFallback._(super.name); + + /// `0` + @BuiltValueEnumConst(wireName: '0') + static const PreviewGetPreviewByFileIdMimeFallback $0 = _$previewGetPreviewByFileIdMimeFallback$0; + + /// `1` + @BuiltValueEnumConst(wireName: '1') + static const PreviewGetPreviewByFileIdMimeFallback $1 = _$previewGetPreviewByFileIdMimeFallback$1; + + /// Returns a set with all values this enum contains. // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; + static BuiltSet get values => _$previewGetPreviewByFileIdMimeFallbackValues; // coverage:ignore-end - /// Serializer for PreviewGetPreviewByFileIdRequestApplicationJson. - static Serializer get serializer => - _$previewGetPreviewByFileIdRequestApplicationJsonSerializer; + /// Returns the enum value associated to the [name]. + static PreviewGetPreviewByFileIdMimeFallback valueOf(String name) => + _$valueOfPreviewGetPreviewByFileIdMimeFallback(name); - @BuiltValueHook(initializeBuilder: true) - static void _defaults(PreviewGetPreviewByFileIdRequestApplicationJsonBuilder b) { - $PreviewGetPreviewByFileIdRequestApplicationJsonInterface._defaults(b); - } + /// Returns the serialized value of this enum value. + int get value => _$jsonSerializers.serializeWith(serializer, this)! as int; + + /// Serializer for PreviewGetPreviewByFileIdMimeFallback. + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + const _$PreviewGetPreviewByFileIdMimeFallbackSerializer(); +} + +class _$PreviewGetPreviewByFileIdMimeFallbackSerializer + implements PrimitiveSerializer { + const _$PreviewGetPreviewByFileIdMimeFallbackSerializer(); + + static const Map _toWire = + { + PreviewGetPreviewByFileIdMimeFallback.$0: 0, + PreviewGetPreviewByFileIdMimeFallback.$1: 1, + }; + + static const Map _fromWire = + { + 0: PreviewGetPreviewByFileIdMimeFallback.$0, + 1: PreviewGetPreviewByFileIdMimeFallback.$1, + }; + + @override + Iterable get types => const [PreviewGetPreviewByFileIdMimeFallback]; + + @override + String get wireName => 'PreviewGetPreviewByFileIdMimeFallback'; + + @override + Object serialize( + Serializers serializers, + PreviewGetPreviewByFileIdMimeFallback object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; - @BuiltValueHook(finalizeBuilder: true) - static void _validate(PreviewGetPreviewByFileIdRequestApplicationJsonBuilder b) { - $PreviewGetPreviewByFileIdRequestApplicationJsonInterface._validate(b); - } + @override + PreviewGetPreviewByFileIdMimeFallback deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -14691,70 +14798,6 @@ abstract class ReferenceApiExtractResponseApplicationJson } } -@BuiltValue(instantiable: false) -sealed class $ReferenceApiResolveOneRequestApplicationJsonInterface { - /// Reference to resolve. - String get reference; - - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$ReferenceApiResolveOneRequestApplicationJsonInterfaceBuilder]. - $ReferenceApiResolveOneRequestApplicationJsonInterface rebuild( - void Function($ReferenceApiResolveOneRequestApplicationJsonInterfaceBuilder) updates, - ); - - /// Converts the instance to a builder [$ReferenceApiResolveOneRequestApplicationJsonInterfaceBuilder]. - $ReferenceApiResolveOneRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($ReferenceApiResolveOneRequestApplicationJsonInterfaceBuilder b) {} - @BuiltValueHook(finalizeBuilder: true) - static void _validate($ReferenceApiResolveOneRequestApplicationJsonInterfaceBuilder b) {} -} - -abstract class ReferenceApiResolveOneRequestApplicationJson - implements - $ReferenceApiResolveOneRequestApplicationJsonInterface, - Built { - /// Creates a new ReferenceApiResolveOneRequestApplicationJson object using the builder pattern. - factory ReferenceApiResolveOneRequestApplicationJson([ - void Function(ReferenceApiResolveOneRequestApplicationJsonBuilder)? b, - ]) = _$ReferenceApiResolveOneRequestApplicationJson; - - // coverage:ignore-start - const ReferenceApiResolveOneRequestApplicationJson._(); - // coverage:ignore-end - - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory ReferenceApiResolveOneRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end - - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end - - /// Serializer for ReferenceApiResolveOneRequestApplicationJson. - static Serializer get serializer => - _$referenceApiResolveOneRequestApplicationJsonSerializer; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults(ReferenceApiResolveOneRequestApplicationJsonBuilder b) { - $ReferenceApiResolveOneRequestApplicationJsonInterface._defaults(b); - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate(ReferenceApiResolveOneRequestApplicationJsonBuilder b) { - $ReferenceApiResolveOneRequestApplicationJsonInterface._validate(b); - } -} - @BuiltValue(instantiable: false) sealed class $ReferenceApiResolveOneResponseApplicationJson_Ocs_DataInterface { BuiltMap get references; @@ -17220,71 +17263,6 @@ abstract class TextProcessingApiDeleteTaskResponseApplicationJson } } -@BuiltValue(instantiable: false) -sealed class $TextProcessingApiListTasksByAppRequestApplicationJsonInterface { - /// An arbitrary identifier for the task. - String? get identifier; - - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$TextProcessingApiListTasksByAppRequestApplicationJsonInterfaceBuilder]. - $TextProcessingApiListTasksByAppRequestApplicationJsonInterface rebuild( - void Function($TextProcessingApiListTasksByAppRequestApplicationJsonInterfaceBuilder) updates, - ); - - /// Converts the instance to a builder [$TextProcessingApiListTasksByAppRequestApplicationJsonInterfaceBuilder]. - $TextProcessingApiListTasksByAppRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($TextProcessingApiListTasksByAppRequestApplicationJsonInterfaceBuilder b) {} - @BuiltValueHook(finalizeBuilder: true) - static void _validate($TextProcessingApiListTasksByAppRequestApplicationJsonInterfaceBuilder b) {} -} - -abstract class TextProcessingApiListTasksByAppRequestApplicationJson - implements - $TextProcessingApiListTasksByAppRequestApplicationJsonInterface, - Built { - /// Creates a new TextProcessingApiListTasksByAppRequestApplicationJson object using the builder pattern. - factory TextProcessingApiListTasksByAppRequestApplicationJson([ - void Function(TextProcessingApiListTasksByAppRequestApplicationJsonBuilder)? b, - ]) = _$TextProcessingApiListTasksByAppRequestApplicationJson; - - // coverage:ignore-start - const TextProcessingApiListTasksByAppRequestApplicationJson._(); - // coverage:ignore-end - - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory TextProcessingApiListTasksByAppRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end - - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end - - /// Serializer for TextProcessingApiListTasksByAppRequestApplicationJson. - static Serializer get serializer => - _$textProcessingApiListTasksByAppRequestApplicationJsonSerializer; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults(TextProcessingApiListTasksByAppRequestApplicationJsonBuilder b) { - $TextProcessingApiListTasksByAppRequestApplicationJsonInterface._defaults(b); - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate(TextProcessingApiListTasksByAppRequestApplicationJsonBuilder b) { - $TextProcessingApiListTasksByAppRequestApplicationJsonInterface._validate(b); - } -} - @BuiltValue(instantiable: false) sealed class $TextProcessingApiListTasksByAppResponseApplicationJson_Ocs_DataInterface { BuiltList get tasks; @@ -18476,71 +18454,6 @@ abstract class TextToImageApiDeleteTaskResponseApplicationJson } } -@BuiltValue(instantiable: false) -sealed class $TextToImageApiListTasksByAppRequestApplicationJsonInterface { - /// An arbitrary identifier for the task. - String? get identifier; - - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$TextToImageApiListTasksByAppRequestApplicationJsonInterfaceBuilder]. - $TextToImageApiListTasksByAppRequestApplicationJsonInterface rebuild( - void Function($TextToImageApiListTasksByAppRequestApplicationJsonInterfaceBuilder) updates, - ); - - /// Converts the instance to a builder [$TextToImageApiListTasksByAppRequestApplicationJsonInterfaceBuilder]. - $TextToImageApiListTasksByAppRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($TextToImageApiListTasksByAppRequestApplicationJsonInterfaceBuilder b) {} - @BuiltValueHook(finalizeBuilder: true) - static void _validate($TextToImageApiListTasksByAppRequestApplicationJsonInterfaceBuilder b) {} -} - -abstract class TextToImageApiListTasksByAppRequestApplicationJson - implements - $TextToImageApiListTasksByAppRequestApplicationJsonInterface, - Built { - /// Creates a new TextToImageApiListTasksByAppRequestApplicationJson object using the builder pattern. - factory TextToImageApiListTasksByAppRequestApplicationJson([ - void Function(TextToImageApiListTasksByAppRequestApplicationJsonBuilder)? b, - ]) = _$TextToImageApiListTasksByAppRequestApplicationJson; - - // coverage:ignore-start - const TextToImageApiListTasksByAppRequestApplicationJson._(); - // coverage:ignore-end - - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory TextToImageApiListTasksByAppRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end - - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end - - /// Serializer for TextToImageApiListTasksByAppRequestApplicationJson. - static Serializer get serializer => - _$textToImageApiListTasksByAppRequestApplicationJsonSerializer; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults(TextToImageApiListTasksByAppRequestApplicationJsonBuilder b) { - $TextToImageApiListTasksByAppRequestApplicationJsonInterface._defaults(b); - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate(TextToImageApiListTasksByAppRequestApplicationJsonBuilder b) { - $TextToImageApiListTasksByAppRequestApplicationJsonInterface._validate(b); - } -} - @BuiltValue(instantiable: false) sealed class $TextToImageApiListTasksByAppResponseApplicationJson_Ocs_DataInterface { BuiltList get tasks; @@ -19257,78 +19170,6 @@ abstract class TranslationApiTranslateResponseApplicationJson } } -@BuiltValue(instantiable: false) -sealed class $UnifiedSearchGetProvidersRequestApplicationJsonInterface { - static final _$from = _$jsonSerializers.deserialize( - '', - specifiedType: const FullType(String), - )! as String; - - /// the url the user is currently at. - String get from; - - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$UnifiedSearchGetProvidersRequestApplicationJsonInterfaceBuilder]. - $UnifiedSearchGetProvidersRequestApplicationJsonInterface rebuild( - void Function($UnifiedSearchGetProvidersRequestApplicationJsonInterfaceBuilder) updates, - ); - - /// Converts the instance to a builder [$UnifiedSearchGetProvidersRequestApplicationJsonInterfaceBuilder]. - $UnifiedSearchGetProvidersRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($UnifiedSearchGetProvidersRequestApplicationJsonInterfaceBuilder b) { - b.from = _$from; - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate($UnifiedSearchGetProvidersRequestApplicationJsonInterfaceBuilder b) {} -} - -abstract class UnifiedSearchGetProvidersRequestApplicationJson - implements - $UnifiedSearchGetProvidersRequestApplicationJsonInterface, - Built { - /// Creates a new UnifiedSearchGetProvidersRequestApplicationJson object using the builder pattern. - factory UnifiedSearchGetProvidersRequestApplicationJson([ - void Function(UnifiedSearchGetProvidersRequestApplicationJsonBuilder)? b, - ]) = _$UnifiedSearchGetProvidersRequestApplicationJson; - - // coverage:ignore-start - const UnifiedSearchGetProvidersRequestApplicationJson._(); - // coverage:ignore-end - - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory UnifiedSearchGetProvidersRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end - - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end - - /// Serializer for UnifiedSearchGetProvidersRequestApplicationJson. - static Serializer get serializer => - _$unifiedSearchGetProvidersRequestApplicationJsonSerializer; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults(UnifiedSearchGetProvidersRequestApplicationJsonBuilder b) { - $UnifiedSearchGetProvidersRequestApplicationJsonInterface._defaults(b); - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate(UnifiedSearchGetProvidersRequestApplicationJsonBuilder b) { - $UnifiedSearchGetProvidersRequestApplicationJsonInterface._validate(b); - } -} - @BuiltValue(instantiable: false) sealed class $UnifiedSearchProviderInterface { String get id; @@ -19521,100 +19362,7 @@ abstract class UnifiedSearchGetProvidersResponseApplicationJson } } -/// Offset for searching. -typedef UnifiedSearchSearchRequestApplicationJson_Cursor = ({int? $int, String? string}); - -@BuiltValue(instantiable: false) -sealed class $UnifiedSearchSearchRequestApplicationJsonInterface { - static final _$term = _$jsonSerializers.deserialize( - '', - specifiedType: const FullType(String), - )! as String; - - static final _$from = _$jsonSerializers.deserialize( - '', - specifiedType: const FullType(String), - )! as String; - - /// Term to search. - String get term; - - /// Order of entries. - int? get sortOrder; - - /// Maximum amount of entries. - int? get limit; - - /// Offset for searching. - UnifiedSearchSearchRequestApplicationJson_Cursor? get cursor; - - /// The current user URL. - String get from; - - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$UnifiedSearchSearchRequestApplicationJsonInterfaceBuilder]. - $UnifiedSearchSearchRequestApplicationJsonInterface rebuild( - void Function($UnifiedSearchSearchRequestApplicationJsonInterfaceBuilder) updates, - ); - - /// Converts the instance to a builder [$UnifiedSearchSearchRequestApplicationJsonInterfaceBuilder]. - $UnifiedSearchSearchRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($UnifiedSearchSearchRequestApplicationJsonInterfaceBuilder b) { - b.term = _$term; - b.from = _$from; - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate($UnifiedSearchSearchRequestApplicationJsonInterfaceBuilder b) { - b.cursor?.validateOneOf(); - } -} - -abstract class UnifiedSearchSearchRequestApplicationJson - implements - $UnifiedSearchSearchRequestApplicationJsonInterface, - Built { - /// Creates a new UnifiedSearchSearchRequestApplicationJson object using the builder pattern. - factory UnifiedSearchSearchRequestApplicationJson([ - void Function(UnifiedSearchSearchRequestApplicationJsonBuilder)? b, - ]) = _$UnifiedSearchSearchRequestApplicationJson; - - // coverage:ignore-start - const UnifiedSearchSearchRequestApplicationJson._(); - // coverage:ignore-end - - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory UnifiedSearchSearchRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end - - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end - - /// Serializer for UnifiedSearchSearchRequestApplicationJson. - static Serializer get serializer => - _$unifiedSearchSearchRequestApplicationJsonSerializer; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults(UnifiedSearchSearchRequestApplicationJsonBuilder b) { - $UnifiedSearchSearchRequestApplicationJsonInterface._defaults(b); - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate(UnifiedSearchSearchRequestApplicationJsonBuilder b) { - $UnifiedSearchSearchRequestApplicationJsonInterface._validate(b); - } -} +typedef UnifiedSearchSearchCursor = ({int? $int, String? string}); @BuiltValue(instantiable: false) sealed class $UnifiedSearchResultEntryInterface { @@ -20800,19 +20548,16 @@ extension $OcsGetCapabilitiesResponseApplicationJson_Ocs_Data_CapabilitiesExtens $ff3cbb941adc0f0f38f18ba5aabd7f48Extension._fromJson(json); } -/// Serialization extension for `UnifiedSearchSearchRequestApplicationJson_Cursor`. -extension $UnifiedSearchSearchRequestApplicationJson_CursorExtension - on UnifiedSearchSearchRequestApplicationJson_Cursor { - /// Serializer for UnifiedSearchSearchRequestApplicationJson_Cursor. +/// Serialization extension for `UnifiedSearchSearchCursor`. +extension $UnifiedSearchSearchCursorExtension on UnifiedSearchSearchCursor { + /// Serializer for UnifiedSearchSearchCursor. @BuiltValueSerializer(custom: true) - static Serializer get serializer => - $b2c4857c0136baea42828d89c87c757dExtension._serializer; + static Serializer get serializer => $b2c4857c0136baea42828d89c87c757dExtension._serializer; /// Creates a new object from the given [json] data. /// /// Use `toJson` to serialize it back into json. - static UnifiedSearchSearchRequestApplicationJson_Cursor fromJson(Object? json) => - $b2c4857c0136baea42828d89c87c757dExtension._fromJson(json); + static UnifiedSearchSearchCursor fromJson(Object? json) => $b2c4857c0136baea42828d89c87c757dExtension._fromJson(json); } /// Serialization extension for `UnifiedSearchResult_Cursor`. @@ -21601,11 +21346,6 @@ final Serializers _$serializers = (Serializers().toBuilder() AppPasswordConfirmUserPasswordResponseApplicationJson_Ocs_DataBuilder.new, ) ..add(AppPasswordConfirmUserPasswordResponseApplicationJson_Ocs_Data.serializer) - ..addBuilderFactory( - const FullType(AutoCompleteGetRequestApplicationJson), - AutoCompleteGetRequestApplicationJsonBuilder.new, - ) - ..add(AutoCompleteGetRequestApplicationJson.serializer) ..addBuilderFactory(const FullType(BuiltList, [FullType(int)]), ListBuilder.new) ..addBuilderFactory( const FullType(AutoCompleteGetResponseApplicationJson), @@ -21694,11 +21434,6 @@ final Serializers _$serializers = (Serializers().toBuilder() CollaborationResourcesAddResourceResponseApplicationJson_OcsBuilder.new, ) ..add(CollaborationResourcesAddResourceResponseApplicationJson_Ocs.serializer) - ..addBuilderFactory( - const FullType(CollaborationResourcesRemoveResourceRequestApplicationJson), - CollaborationResourcesRemoveResourceRequestApplicationJsonBuilder.new, - ) - ..add(CollaborationResourcesRemoveResourceRequestApplicationJson.serializer) ..addBuilderFactory( const FullType(CollaborationResourcesRemoveResourceResponseApplicationJson), CollaborationResourcesRemoveResourceResponseApplicationJsonBuilder.new, @@ -21745,11 +21480,7 @@ final Serializers _$serializers = (Serializers().toBuilder() CollaborationResourcesCreateCollectionOnResourceResponseApplicationJson_OcsBuilder.new, ) ..add(CollaborationResourcesCreateCollectionOnResourceResponseApplicationJson_Ocs.serializer) - ..addBuilderFactory( - const FullType(GuestAvatarGetAvatarRequestApplicationJson), - GuestAvatarGetAvatarRequestApplicationJsonBuilder.new, - ) - ..add(GuestAvatarGetAvatarRequestApplicationJson.serializer) + ..add(GuestAvatarGetAvatarDarkTheme.serializer) ..addBuilderFactory( const FullType(HoverCardGetUserResponseApplicationJson), HoverCardGetUserResponseApplicationJsonBuilder.new, @@ -21778,11 +21509,7 @@ final Serializers _$serializers = (Serializers().toBuilder() LoginConfirmPasswordResponseApplicationJsonBuilder.new, ) ..add(LoginConfirmPasswordResponseApplicationJson.serializer) - ..addBuilderFactory( - const FullType(NavigationGetAppsNavigationRequestApplicationJson), - NavigationGetAppsNavigationRequestApplicationJsonBuilder.new, - ) - ..add(NavigationGetAppsNavigationRequestApplicationJson.serializer) + ..add(NavigationGetAppsNavigationAbsolute.serializer) ..addBuilderFactory( const FullType(NavigationGetAppsNavigationResponseApplicationJson), NavigationGetAppsNavigationResponseApplicationJsonBuilder.new, @@ -21797,11 +21524,7 @@ final Serializers _$serializers = (Serializers().toBuilder() ..add(NavigationEntry.serializer) ..add($b2c4857c0136baea42828d89c87c757dExtension._serializer) ..addBuilderFactory(const FullType(BuiltList, [FullType(NavigationEntry)]), ListBuilder.new) - ..addBuilderFactory( - const FullType(NavigationGetSettingsNavigationRequestApplicationJson), - NavigationGetSettingsNavigationRequestApplicationJsonBuilder.new, - ) - ..add(NavigationGetSettingsNavigationRequestApplicationJson.serializer) + ..add(NavigationGetSettingsNavigationAbsolute.serializer) ..addBuilderFactory( const FullType(NavigationGetSettingsNavigationResponseApplicationJson), NavigationGetSettingsNavigationResponseApplicationJsonBuilder.new, @@ -22097,16 +21820,12 @@ final Serializers _$serializers = (Serializers().toBuilder() ..addBuilderFactory(const FullType(NotesCapabilities_Notes), NotesCapabilities_NotesBuilder.new) ..add(NotesCapabilities_Notes.serializer) ..add($ff3cbb941adc0f0f38f18ba5aabd7f48Extension._serializer) - ..addBuilderFactory( - const FullType(PreviewGetPreviewRequestApplicationJson), - PreviewGetPreviewRequestApplicationJsonBuilder.new, - ) - ..add(PreviewGetPreviewRequestApplicationJson.serializer) - ..addBuilderFactory( - const FullType(PreviewGetPreviewByFileIdRequestApplicationJson), - PreviewGetPreviewByFileIdRequestApplicationJsonBuilder.new, - ) - ..add(PreviewGetPreviewByFileIdRequestApplicationJson.serializer) + ..add(PreviewGetPreviewA.serializer) + ..add(PreviewGetPreviewForceIcon.serializer) + ..add(PreviewGetPreviewMimeFallback.serializer) + ..add(PreviewGetPreviewByFileIdA.serializer) + ..add(PreviewGetPreviewByFileIdForceIcon.serializer) + ..add(PreviewGetPreviewByFileIdMimeFallback.serializer) ..addBuilderFactory( const FullType(ProfileApiSetVisibilityRequestApplicationJson), ProfileApiSetVisibilityRequestApplicationJsonBuilder.new, @@ -22148,11 +21867,6 @@ final Serializers _$serializers = (Serializers().toBuilder() const FullType(BuiltMap, [FullType(String), FullType.nullable(Reference)]), MapBuilder.new, ) - ..addBuilderFactory( - const FullType(ReferenceApiResolveOneRequestApplicationJson), - ReferenceApiResolveOneRequestApplicationJsonBuilder.new, - ) - ..add(ReferenceApiResolveOneRequestApplicationJson.serializer) ..addBuilderFactory( const FullType(ReferenceApiResolveOneResponseApplicationJson), ReferenceApiResolveOneResponseApplicationJsonBuilder.new, @@ -22334,11 +22048,6 @@ final Serializers _$serializers = (Serializers().toBuilder() TextProcessingApiDeleteTaskResponseApplicationJson_Ocs_DataBuilder.new, ) ..add(TextProcessingApiDeleteTaskResponseApplicationJson_Ocs_Data.serializer) - ..addBuilderFactory( - const FullType(TextProcessingApiListTasksByAppRequestApplicationJson), - TextProcessingApiListTasksByAppRequestApplicationJsonBuilder.new, - ) - ..add(TextProcessingApiListTasksByAppRequestApplicationJson.serializer) ..addBuilderFactory( const FullType(TextProcessingApiListTasksByAppResponseApplicationJson), TextProcessingApiListTasksByAppResponseApplicationJsonBuilder.new, @@ -22426,11 +22135,6 @@ final Serializers _$serializers = (Serializers().toBuilder() TextToImageApiDeleteTaskResponseApplicationJson_Ocs_DataBuilder.new, ) ..add(TextToImageApiDeleteTaskResponseApplicationJson_Ocs_Data.serializer) - ..addBuilderFactory( - const FullType(TextToImageApiListTasksByAppRequestApplicationJson), - TextToImageApiListTasksByAppRequestApplicationJsonBuilder.new, - ) - ..add(TextToImageApiListTasksByAppRequestApplicationJson.serializer) ..addBuilderFactory( const FullType(TextToImageApiListTasksByAppResponseApplicationJson), TextToImageApiListTasksByAppResponseApplicationJsonBuilder.new, @@ -22491,11 +22195,6 @@ final Serializers _$serializers = (Serializers().toBuilder() TranslationApiTranslateResponseApplicationJson_Ocs_DataBuilder.new, ) ..add(TranslationApiTranslateResponseApplicationJson_Ocs_Data.serializer) - ..addBuilderFactory( - const FullType(UnifiedSearchGetProvidersRequestApplicationJson), - UnifiedSearchGetProvidersRequestApplicationJsonBuilder.new, - ) - ..add(UnifiedSearchGetProvidersRequestApplicationJson.serializer) ..addBuilderFactory( const FullType(UnifiedSearchGetProvidersResponseApplicationJson), UnifiedSearchGetProvidersResponseApplicationJsonBuilder.new, @@ -22516,11 +22215,6 @@ final Serializers _$serializers = (Serializers().toBuilder() const FullType(BuiltList, [FullType(UnifiedSearchProvider)]), ListBuilder.new, ) - ..addBuilderFactory( - const FullType(UnifiedSearchSearchRequestApplicationJson), - UnifiedSearchSearchRequestApplicationJsonBuilder.new, - ) - ..add(UnifiedSearchSearchRequestApplicationJson.serializer) ..addBuilderFactory( const FullType(UnifiedSearchSearchResponseApplicationJson), UnifiedSearchSearchResponseApplicationJsonBuilder.new, diff --git a/packages/nextcloud/lib/src/api/core/core.openapi.g.dart b/packages/nextcloud/lib/src/api/core/core.openapi.g.dart index 8f518a35e50..8cb3de43723 100644 --- a/packages/nextcloud/lib/src/api/core/core.openapi.g.dart +++ b/packages/nextcloud/lib/src/api/core/core.openapi.g.dart @@ -6,6 +6,70 @@ part of 'core.openapi.dart'; // BuiltValueGenerator // ************************************************************************** +const GuestAvatarGetAvatarDarkTheme _$guestAvatarGetAvatarDarkTheme$0 = GuestAvatarGetAvatarDarkTheme._('\$0'); +const GuestAvatarGetAvatarDarkTheme _$guestAvatarGetAvatarDarkTheme$1 = GuestAvatarGetAvatarDarkTheme._('\$1'); + +GuestAvatarGetAvatarDarkTheme _$valueOfGuestAvatarGetAvatarDarkTheme(String name) { + switch (name) { + case '\$0': + return _$guestAvatarGetAvatarDarkTheme$0; + case '\$1': + return _$guestAvatarGetAvatarDarkTheme$1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$guestAvatarGetAvatarDarkThemeValues = + BuiltSet(const [ + _$guestAvatarGetAvatarDarkTheme$0, + _$guestAvatarGetAvatarDarkTheme$1, +]); + +const NavigationGetAppsNavigationAbsolute _$navigationGetAppsNavigationAbsolute$0 = + NavigationGetAppsNavigationAbsolute._('\$0'); +const NavigationGetAppsNavigationAbsolute _$navigationGetAppsNavigationAbsolute$1 = + NavigationGetAppsNavigationAbsolute._('\$1'); + +NavigationGetAppsNavigationAbsolute _$valueOfNavigationGetAppsNavigationAbsolute(String name) { + switch (name) { + case '\$0': + return _$navigationGetAppsNavigationAbsolute$0; + case '\$1': + return _$navigationGetAppsNavigationAbsolute$1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$navigationGetAppsNavigationAbsoluteValues = + BuiltSet(const [ + _$navigationGetAppsNavigationAbsolute$0, + _$navigationGetAppsNavigationAbsolute$1, +]); + +const NavigationGetSettingsNavigationAbsolute _$navigationGetSettingsNavigationAbsolute$0 = + NavigationGetSettingsNavigationAbsolute._('\$0'); +const NavigationGetSettingsNavigationAbsolute _$navigationGetSettingsNavigationAbsolute$1 = + NavigationGetSettingsNavigationAbsolute._('\$1'); + +NavigationGetSettingsNavigationAbsolute _$valueOfNavigationGetSettingsNavigationAbsolute(String name) { + switch (name) { + case '\$0': + return _$navigationGetSettingsNavigationAbsolute$0; + case '\$1': + return _$navigationGetSettingsNavigationAbsolute$1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$navigationGetSettingsNavigationAbsoluteValues = + BuiltSet(const [ + _$navigationGetSettingsNavigationAbsolute$0, + _$navigationGetSettingsNavigationAbsolute$1, +]); + const OcmOcmDiscoveryHeaders_XNextcloudOcmProviders _$ocmOcmDiscoveryHeadersXNextcloudOcmProviders$true = OcmOcmDiscoveryHeaders_XNextcloudOcmProviders._('\$true'); @@ -40,6 +104,129 @@ final BuiltSet _$systemtagsCapabiliti _$systemtagsCapabilitiesSystemtagsEnabled$true, ]); +const PreviewGetPreviewA _$previewGetPreviewA$0 = PreviewGetPreviewA._('\$0'); +const PreviewGetPreviewA _$previewGetPreviewA$1 = PreviewGetPreviewA._('\$1'); + +PreviewGetPreviewA _$valueOfPreviewGetPreviewA(String name) { + switch (name) { + case '\$0': + return _$previewGetPreviewA$0; + case '\$1': + return _$previewGetPreviewA$1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$previewGetPreviewAValues = BuiltSet(const [ + _$previewGetPreviewA$0, + _$previewGetPreviewA$1, +]); + +const PreviewGetPreviewForceIcon _$previewGetPreviewForceIcon$0 = PreviewGetPreviewForceIcon._('\$0'); +const PreviewGetPreviewForceIcon _$previewGetPreviewForceIcon$1 = PreviewGetPreviewForceIcon._('\$1'); + +PreviewGetPreviewForceIcon _$valueOfPreviewGetPreviewForceIcon(String name) { + switch (name) { + case '\$0': + return _$previewGetPreviewForceIcon$0; + case '\$1': + return _$previewGetPreviewForceIcon$1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$previewGetPreviewForceIconValues = + BuiltSet(const [ + _$previewGetPreviewForceIcon$0, + _$previewGetPreviewForceIcon$1, +]); + +const PreviewGetPreviewMimeFallback _$previewGetPreviewMimeFallback$0 = PreviewGetPreviewMimeFallback._('\$0'); +const PreviewGetPreviewMimeFallback _$previewGetPreviewMimeFallback$1 = PreviewGetPreviewMimeFallback._('\$1'); + +PreviewGetPreviewMimeFallback _$valueOfPreviewGetPreviewMimeFallback(String name) { + switch (name) { + case '\$0': + return _$previewGetPreviewMimeFallback$0; + case '\$1': + return _$previewGetPreviewMimeFallback$1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$previewGetPreviewMimeFallbackValues = + BuiltSet(const [ + _$previewGetPreviewMimeFallback$0, + _$previewGetPreviewMimeFallback$1, +]); + +const PreviewGetPreviewByFileIdA _$previewGetPreviewByFileIdA$0 = PreviewGetPreviewByFileIdA._('\$0'); +const PreviewGetPreviewByFileIdA _$previewGetPreviewByFileIdA$1 = PreviewGetPreviewByFileIdA._('\$1'); + +PreviewGetPreviewByFileIdA _$valueOfPreviewGetPreviewByFileIdA(String name) { + switch (name) { + case '\$0': + return _$previewGetPreviewByFileIdA$0; + case '\$1': + return _$previewGetPreviewByFileIdA$1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$previewGetPreviewByFileIdAValues = + BuiltSet(const [ + _$previewGetPreviewByFileIdA$0, + _$previewGetPreviewByFileIdA$1, +]); + +const PreviewGetPreviewByFileIdForceIcon _$previewGetPreviewByFileIdForceIcon$0 = + PreviewGetPreviewByFileIdForceIcon._('\$0'); +const PreviewGetPreviewByFileIdForceIcon _$previewGetPreviewByFileIdForceIcon$1 = + PreviewGetPreviewByFileIdForceIcon._('\$1'); + +PreviewGetPreviewByFileIdForceIcon _$valueOfPreviewGetPreviewByFileIdForceIcon(String name) { + switch (name) { + case '\$0': + return _$previewGetPreviewByFileIdForceIcon$0; + case '\$1': + return _$previewGetPreviewByFileIdForceIcon$1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$previewGetPreviewByFileIdForceIconValues = + BuiltSet(const [ + _$previewGetPreviewByFileIdForceIcon$0, + _$previewGetPreviewByFileIdForceIcon$1, +]); + +const PreviewGetPreviewByFileIdMimeFallback _$previewGetPreviewByFileIdMimeFallback$0 = + PreviewGetPreviewByFileIdMimeFallback._('\$0'); +const PreviewGetPreviewByFileIdMimeFallback _$previewGetPreviewByFileIdMimeFallback$1 = + PreviewGetPreviewByFileIdMimeFallback._('\$1'); + +PreviewGetPreviewByFileIdMimeFallback _$valueOfPreviewGetPreviewByFileIdMimeFallback(String name) { + switch (name) { + case '\$0': + return _$previewGetPreviewByFileIdMimeFallback$0; + case '\$1': + return _$previewGetPreviewByFileIdMimeFallback$1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$previewGetPreviewByFileIdMimeFallbackValues = + BuiltSet(const [ + _$previewGetPreviewByFileIdMimeFallback$0, + _$previewGetPreviewByFileIdMimeFallback$1, +]); + const TextProcessingTask_Status _$textProcessingTaskStatus$0 = TextProcessingTask_Status._('\$0'); const TextProcessingTask_Status _$textProcessingTaskStatus$1 = TextProcessingTask_Status._('\$1'); const TextProcessingTask_Status _$textProcessingTaskStatus$2 = TextProcessingTask_Status._('\$2'); @@ -142,8 +329,6 @@ Serializer Serializer _$appPasswordConfirmUserPasswordResponseApplicationJsonSerializer = _$AppPasswordConfirmUserPasswordResponseApplicationJsonSerializer(); -Serializer _$autoCompleteGetRequestApplicationJsonSerializer = - _$AutoCompleteGetRequestApplicationJsonSerializer(); Serializer _$autocompleteResultStatus0Serializer = _$AutocompleteResult_Status0Serializer(); Serializer _$autocompleteResultSerializer = _$AutocompleteResultSerializer(); Serializer _$autoCompleteGetResponseApplicationJsonOcsSerializer = @@ -186,9 +371,6 @@ Serializer Serializer _$collaborationResourcesAddResourceResponseApplicationJsonSerializer = _$CollaborationResourcesAddResourceResponseApplicationJsonSerializer(); -Serializer - _$collaborationResourcesRemoveResourceRequestApplicationJsonSerializer = - _$CollaborationResourcesRemoveResourceRequestApplicationJsonSerializer(); Serializer _$collaborationResourcesRemoveResourceResponseApplicationJsonOcsSerializer = _$CollaborationResourcesRemoveResourceResponseApplicationJson_OcsSerializer(); @@ -216,8 +398,6 @@ Serializer _$collaborationResourcesCreateCollectionOnResourceResponseApplicationJsonSerializer = _$CollaborationResourcesCreateCollectionOnResourceResponseApplicationJsonSerializer(); -Serializer _$guestAvatarGetAvatarRequestApplicationJsonSerializer = - _$GuestAvatarGetAvatarRequestApplicationJsonSerializer(); Serializer _$contactsActionSerializer = _$ContactsActionSerializer(); Serializer _$hoverCardGetUserResponseApplicationJsonOcsDataSerializer = @@ -230,9 +410,6 @@ Serializer _$loginConfirmPasswordReq _$LoginConfirmPasswordRequestApplicationJsonSerializer(); Serializer _$loginConfirmPasswordResponseApplicationJsonSerializer = _$LoginConfirmPasswordResponseApplicationJsonSerializer(); -Serializer - _$navigationGetAppsNavigationRequestApplicationJsonSerializer = - _$NavigationGetAppsNavigationRequestApplicationJsonSerializer(); Serializer _$navigationEntrySerializer = _$NavigationEntrySerializer(); Serializer _$navigationGetAppsNavigationResponseApplicationJsonOcsSerializer = @@ -240,9 +417,6 @@ Serializer Serializer _$navigationGetAppsNavigationResponseApplicationJsonSerializer = _$NavigationGetAppsNavigationResponseApplicationJsonSerializer(); -Serializer - _$navigationGetSettingsNavigationRequestApplicationJsonSerializer = - _$NavigationGetSettingsNavigationRequestApplicationJsonSerializer(); Serializer _$navigationGetSettingsNavigationResponseApplicationJsonOcsSerializer = _$NavigationGetSettingsNavigationResponseApplicationJson_OcsSerializer(); @@ -385,11 +559,6 @@ Serializer _$ocsGetCapabilitiesRe _$OcsGetCapabilitiesResponseApplicationJson_OcsSerializer(); Serializer _$ocsGetCapabilitiesResponseApplicationJsonSerializer = _$OcsGetCapabilitiesResponseApplicationJsonSerializer(); -Serializer _$previewGetPreviewRequestApplicationJsonSerializer = - _$PreviewGetPreviewRequestApplicationJsonSerializer(); -Serializer - _$previewGetPreviewByFileIdRequestApplicationJsonSerializer = - _$PreviewGetPreviewByFileIdRequestApplicationJsonSerializer(); Serializer _$profileApiSetVisibilityRequestApplicationJsonSerializer = _$ProfileApiSetVisibilityRequestApplicationJsonSerializer(); Serializer @@ -407,8 +576,6 @@ Serializer _$referenceApiExtract _$ReferenceApiExtractResponseApplicationJson_OcsSerializer(); Serializer _$referenceApiExtractResponseApplicationJsonSerializer = _$ReferenceApiExtractResponseApplicationJsonSerializer(); -Serializer _$referenceApiResolveOneRequestApplicationJsonSerializer = - _$ReferenceApiResolveOneRequestApplicationJsonSerializer(); Serializer _$referenceApiResolveOneResponseApplicationJsonOcsDataSerializer = _$ReferenceApiResolveOneResponseApplicationJson_Ocs_DataSerializer(); @@ -504,9 +671,6 @@ Serializer Serializer _$textProcessingApiDeleteTaskResponseApplicationJsonSerializer = _$TextProcessingApiDeleteTaskResponseApplicationJsonSerializer(); -Serializer - _$textProcessingApiListTasksByAppRequestApplicationJsonSerializer = - _$TextProcessingApiListTasksByAppRequestApplicationJsonSerializer(); Serializer _$textProcessingApiListTasksByAppResponseApplicationJsonOcsDataSerializer = _$TextProcessingApiListTasksByAppResponseApplicationJson_Ocs_DataSerializer(); @@ -553,9 +717,6 @@ Serializer Serializer _$textToImageApiDeleteTaskResponseApplicationJsonSerializer = _$TextToImageApiDeleteTaskResponseApplicationJsonSerializer(); -Serializer - _$textToImageApiListTasksByAppRequestApplicationJsonSerializer = - _$TextToImageApiListTasksByAppRequestApplicationJsonSerializer(); Serializer _$textToImageApiListTasksByAppResponseApplicationJsonOcsDataSerializer = _$TextToImageApiListTasksByAppResponseApplicationJson_Ocs_DataSerializer(); @@ -586,9 +747,6 @@ Serializer _$TranslationApiTranslateResponseApplicationJson_OcsSerializer(); Serializer _$translationApiTranslateResponseApplicationJsonSerializer = _$TranslationApiTranslateResponseApplicationJsonSerializer(); -Serializer - _$unifiedSearchGetProvidersRequestApplicationJsonSerializer = - _$UnifiedSearchGetProvidersRequestApplicationJsonSerializer(); Serializer _$unifiedSearchProviderSerializer = _$UnifiedSearchProviderSerializer(); Serializer _$unifiedSearchGetProvidersResponseApplicationJsonOcsSerializer = @@ -596,8 +754,6 @@ Serializer Serializer _$unifiedSearchGetProvidersResponseApplicationJsonSerializer = _$UnifiedSearchGetProvidersResponseApplicationJsonSerializer(); -Serializer _$unifiedSearchSearchRequestApplicationJsonSerializer = - _$UnifiedSearchSearchRequestApplicationJsonSerializer(); Serializer _$unifiedSearchResultEntrySerializer = _$UnifiedSearchResultEntrySerializer(); Serializer _$unifiedSearchResultSerializer = _$UnifiedSearchResultSerializer(); Serializer _$unifiedSearchSearchResponseApplicationJsonOcsSerializer = @@ -1329,83 +1485,6 @@ class _$AppPasswordConfirmUserPasswordResponseApplicationJsonSerializer } } -class _$AutoCompleteGetRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [AutoCompleteGetRequestApplicationJson, _$AutoCompleteGetRequestApplicationJson]; - @override - final String wireName = 'AutoCompleteGetRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, AutoCompleteGetRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'search', - serializers.serialize(object.search, specifiedType: const FullType(String)), - 'shareTypes', - serializers.serialize(object.shareTypes, specifiedType: const FullType(BuiltList, [FullType(int)])), - 'limit', - serializers.serialize(object.limit, specifiedType: const FullType(int)), - ]; - Object? value; - value = object.itemType; - if (value != null) { - result - ..add('itemType') - ..add(serializers.serialize(value, specifiedType: const FullType(String))); - } - value = object.itemId; - if (value != null) { - result - ..add('itemId') - ..add(serializers.serialize(value, specifiedType: const FullType(String))); - } - value = object.sorter; - if (value != null) { - result - ..add('sorter') - ..add(serializers.serialize(value, specifiedType: const FullType(String))); - } - return result; - } - - @override - AutoCompleteGetRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = AutoCompleteGetRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'search': - result.search = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'itemType': - result.itemType = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; - break; - case 'itemId': - result.itemId = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; - break; - case 'sorter': - result.sorter = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; - break; - case 'shareTypes': - result.shareTypes.replace(serializers.deserialize(value, - specifiedType: const FullType(BuiltList, [FullType(int)]))! as BuiltList); - break; - case 'limit': - result.limit = serializers.deserialize(value, specifiedType: const FullType(int))! as int; - break; - } - } - - return result.build(); - } -} - class _$AutocompleteResult_Status0Serializer implements StructuredSerializer { @override final Iterable types = const [AutocompleteResult_Status0, _$AutocompleteResult_Status0]; @@ -2441,35 +2520,35 @@ class _$CollaborationResourcesAddResourceResponseApplicationJsonSerializer } } -class _$CollaborationResourcesRemoveResourceRequestApplicationJsonSerializer - implements StructuredSerializer { +class _$CollaborationResourcesRemoveResourceResponseApplicationJson_OcsSerializer + implements StructuredSerializer { @override final Iterable types = const [ - CollaborationResourcesRemoveResourceRequestApplicationJson, - _$CollaborationResourcesRemoveResourceRequestApplicationJson + CollaborationResourcesRemoveResourceResponseApplicationJson_Ocs, + _$CollaborationResourcesRemoveResourceResponseApplicationJson_Ocs ]; @override - final String wireName = 'CollaborationResourcesRemoveResourceRequestApplicationJson'; + final String wireName = 'CollaborationResourcesRemoveResourceResponseApplicationJson_Ocs'; @override Iterable serialize( - Serializers serializers, CollaborationResourcesRemoveResourceRequestApplicationJson object, + Serializers serializers, CollaborationResourcesRemoveResourceResponseApplicationJson_Ocs object, {FullType specifiedType = FullType.unspecified}) { final result = [ - 'resourceType', - serializers.serialize(object.resourceType, specifiedType: const FullType(String)), - 'resourceId', - serializers.serialize(object.resourceId, specifiedType: const FullType(String)), + 'meta', + serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), + 'data', + serializers.serialize(object.data, specifiedType: const FullType(Collection)), ]; return result; } @override - CollaborationResourcesRemoveResourceRequestApplicationJson deserialize( + CollaborationResourcesRemoveResourceResponseApplicationJson_Ocs deserialize( Serializers serializers, Iterable serialized, {FullType specifiedType = FullType.unspecified}) { - final result = CollaborationResourcesRemoveResourceRequestApplicationJsonBuilder(); + final result = CollaborationResourcesRemoveResourceResponseApplicationJson_OcsBuilder(); final iterator = serialized.iterator; while (iterator.moveNext()) { @@ -2477,11 +2556,11 @@ class _$CollaborationResourcesRemoveResourceRequestApplicationJsonSerializer iterator.moveNext(); final Object? value = iterator.current; switch (key) { - case 'resourceType': - result.resourceType = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'meta': + result.meta.replace(serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta); break; - case 'resourceId': - result.resourceId = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'data': + result.data.replace(serializers.deserialize(value, specifiedType: const FullType(Collection))! as Collection); break; } } @@ -2490,35 +2569,82 @@ class _$CollaborationResourcesRemoveResourceRequestApplicationJsonSerializer } } -class _$CollaborationResourcesRemoveResourceResponseApplicationJson_OcsSerializer - implements StructuredSerializer { +class _$CollaborationResourcesRemoveResourceResponseApplicationJsonSerializer + implements StructuredSerializer { @override final Iterable types = const [ - CollaborationResourcesRemoveResourceResponseApplicationJson_Ocs, - _$CollaborationResourcesRemoveResourceResponseApplicationJson_Ocs + CollaborationResourcesRemoveResourceResponseApplicationJson, + _$CollaborationResourcesRemoveResourceResponseApplicationJson ]; @override - final String wireName = 'CollaborationResourcesRemoveResourceResponseApplicationJson_Ocs'; + final String wireName = 'CollaborationResourcesRemoveResourceResponseApplicationJson'; @override Iterable serialize( - Serializers serializers, CollaborationResourcesRemoveResourceResponseApplicationJson_Ocs object, + Serializers serializers, CollaborationResourcesRemoveResourceResponseApplicationJson object, + {FullType specifiedType = FullType.unspecified}) { + final result = [ + 'ocs', + serializers.serialize(object.ocs, + specifiedType: const FullType(CollaborationResourcesRemoveResourceResponseApplicationJson_Ocs)), + ]; + + return result; + } + + @override + CollaborationResourcesRemoveResourceResponseApplicationJson deserialize( + Serializers serializers, Iterable serialized, + {FullType specifiedType = FullType.unspecified}) { + final result = CollaborationResourcesRemoveResourceResponseApplicationJsonBuilder(); + + final iterator = serialized.iterator; + while (iterator.moveNext()) { + final key = iterator.current! as String; + iterator.moveNext(); + final Object? value = iterator.current; + switch (key) { + case 'ocs': + result.ocs.replace(serializers.deserialize(value, + specifiedType: const FullType(CollaborationResourcesRemoveResourceResponseApplicationJson_Ocs))! + as CollaborationResourcesRemoveResourceResponseApplicationJson_Ocs); + break; + } + } + + return result.build(); + } +} + +class _$CollaborationResourcesSearchCollectionsResponseApplicationJson_OcsSerializer + implements StructuredSerializer { + @override + final Iterable types = const [ + CollaborationResourcesSearchCollectionsResponseApplicationJson_Ocs, + _$CollaborationResourcesSearchCollectionsResponseApplicationJson_Ocs + ]; + @override + final String wireName = 'CollaborationResourcesSearchCollectionsResponseApplicationJson_Ocs'; + + @override + Iterable serialize( + Serializers serializers, CollaborationResourcesSearchCollectionsResponseApplicationJson_Ocs object, {FullType specifiedType = FullType.unspecified}) { final result = [ 'meta', serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), 'data', - serializers.serialize(object.data, specifiedType: const FullType(Collection)), + serializers.serialize(object.data, specifiedType: const FullType(BuiltList, [FullType(Collection)])), ]; return result; } @override - CollaborationResourcesRemoveResourceResponseApplicationJson_Ocs deserialize( + CollaborationResourcesSearchCollectionsResponseApplicationJson_Ocs deserialize( Serializers serializers, Iterable serialized, {FullType specifiedType = FullType.unspecified}) { - final result = CollaborationResourcesRemoveResourceResponseApplicationJson_OcsBuilder(); + final result = CollaborationResourcesSearchCollectionsResponseApplicationJson_OcsBuilder(); final iterator = serialized.iterator; while (iterator.moveNext()) { @@ -2530,7 +2656,8 @@ class _$CollaborationResourcesRemoveResourceResponseApplicationJson_OcsSerialize result.meta.replace(serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta); break; case 'data': - result.data.replace(serializers.deserialize(value, specifiedType: const FullType(Collection))! as Collection); + result.data.replace(serializers.deserialize(value, + specifiedType: const FullType(BuiltList, [FullType(Collection)]))! as BuiltList); break; } } @@ -2539,34 +2666,34 @@ class _$CollaborationResourcesRemoveResourceResponseApplicationJson_OcsSerialize } } -class _$CollaborationResourcesRemoveResourceResponseApplicationJsonSerializer - implements StructuredSerializer { +class _$CollaborationResourcesSearchCollectionsResponseApplicationJsonSerializer + implements StructuredSerializer { @override final Iterable types = const [ - CollaborationResourcesRemoveResourceResponseApplicationJson, - _$CollaborationResourcesRemoveResourceResponseApplicationJson + CollaborationResourcesSearchCollectionsResponseApplicationJson, + _$CollaborationResourcesSearchCollectionsResponseApplicationJson ]; @override - final String wireName = 'CollaborationResourcesRemoveResourceResponseApplicationJson'; + final String wireName = 'CollaborationResourcesSearchCollectionsResponseApplicationJson'; @override Iterable serialize( - Serializers serializers, CollaborationResourcesRemoveResourceResponseApplicationJson object, + Serializers serializers, CollaborationResourcesSearchCollectionsResponseApplicationJson object, {FullType specifiedType = FullType.unspecified}) { final result = [ 'ocs', serializers.serialize(object.ocs, - specifiedType: const FullType(CollaborationResourcesRemoveResourceResponseApplicationJson_Ocs)), + specifiedType: const FullType(CollaborationResourcesSearchCollectionsResponseApplicationJson_Ocs)), ]; return result; } @override - CollaborationResourcesRemoveResourceResponseApplicationJson deserialize( + CollaborationResourcesSearchCollectionsResponseApplicationJson deserialize( Serializers serializers, Iterable serialized, {FullType specifiedType = FullType.unspecified}) { - final result = CollaborationResourcesRemoveResourceResponseApplicationJsonBuilder(); + final result = CollaborationResourcesSearchCollectionsResponseApplicationJsonBuilder(); final iterator = serialized.iterator; while (iterator.moveNext()) { @@ -2576,8 +2703,8 @@ class _$CollaborationResourcesRemoveResourceResponseApplicationJsonSerializer switch (key) { case 'ocs': result.ocs.replace(serializers.deserialize(value, - specifiedType: const FullType(CollaborationResourcesRemoveResourceResponseApplicationJson_Ocs))! - as CollaborationResourcesRemoveResourceResponseApplicationJson_Ocs); + specifiedType: const FullType(CollaborationResourcesSearchCollectionsResponseApplicationJson_Ocs))! + as CollaborationResourcesSearchCollectionsResponseApplicationJson_Ocs); break; } } @@ -2586,19 +2713,19 @@ class _$CollaborationResourcesRemoveResourceResponseApplicationJsonSerializer } } -class _$CollaborationResourcesSearchCollectionsResponseApplicationJson_OcsSerializer - implements StructuredSerializer { +class _$CollaborationResourcesGetCollectionsByResourceResponseApplicationJson_OcsSerializer + implements StructuredSerializer { @override final Iterable types = const [ - CollaborationResourcesSearchCollectionsResponseApplicationJson_Ocs, - _$CollaborationResourcesSearchCollectionsResponseApplicationJson_Ocs + CollaborationResourcesGetCollectionsByResourceResponseApplicationJson_Ocs, + _$CollaborationResourcesGetCollectionsByResourceResponseApplicationJson_Ocs ]; @override - final String wireName = 'CollaborationResourcesSearchCollectionsResponseApplicationJson_Ocs'; + final String wireName = 'CollaborationResourcesGetCollectionsByResourceResponseApplicationJson_Ocs'; @override Iterable serialize( - Serializers serializers, CollaborationResourcesSearchCollectionsResponseApplicationJson_Ocs object, + Serializers serializers, CollaborationResourcesGetCollectionsByResourceResponseApplicationJson_Ocs object, {FullType specifiedType = FullType.unspecified}) { final result = [ 'meta', @@ -2611,107 +2738,10 @@ class _$CollaborationResourcesSearchCollectionsResponseApplicationJson_OcsSerial } @override - CollaborationResourcesSearchCollectionsResponseApplicationJson_Ocs deserialize( + CollaborationResourcesGetCollectionsByResourceResponseApplicationJson_Ocs deserialize( Serializers serializers, Iterable serialized, {FullType specifiedType = FullType.unspecified}) { - final result = CollaborationResourcesSearchCollectionsResponseApplicationJson_OcsBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'meta': - result.meta.replace(serializers.deserialize(value, specifiedType: const FullType(OCSMeta))! as OCSMeta); - break; - case 'data': - result.data.replace(serializers.deserialize(value, - specifiedType: const FullType(BuiltList, [FullType(Collection)]))! as BuiltList); - break; - } - } - - return result.build(); - } -} - -class _$CollaborationResourcesSearchCollectionsResponseApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - CollaborationResourcesSearchCollectionsResponseApplicationJson, - _$CollaborationResourcesSearchCollectionsResponseApplicationJson - ]; - @override - final String wireName = 'CollaborationResourcesSearchCollectionsResponseApplicationJson'; - - @override - Iterable serialize( - Serializers serializers, CollaborationResourcesSearchCollectionsResponseApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'ocs', - serializers.serialize(object.ocs, - specifiedType: const FullType(CollaborationResourcesSearchCollectionsResponseApplicationJson_Ocs)), - ]; - - return result; - } - - @override - CollaborationResourcesSearchCollectionsResponseApplicationJson deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = CollaborationResourcesSearchCollectionsResponseApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'ocs': - result.ocs.replace(serializers.deserialize(value, - specifiedType: const FullType(CollaborationResourcesSearchCollectionsResponseApplicationJson_Ocs))! - as CollaborationResourcesSearchCollectionsResponseApplicationJson_Ocs); - break; - } - } - - return result.build(); - } -} - -class _$CollaborationResourcesGetCollectionsByResourceResponseApplicationJson_OcsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - CollaborationResourcesGetCollectionsByResourceResponseApplicationJson_Ocs, - _$CollaborationResourcesGetCollectionsByResourceResponseApplicationJson_Ocs - ]; - @override - final String wireName = 'CollaborationResourcesGetCollectionsByResourceResponseApplicationJson_Ocs'; - - @override - Iterable serialize( - Serializers serializers, CollaborationResourcesGetCollectionsByResourceResponseApplicationJson_Ocs object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'meta', - serializers.serialize(object.meta, specifiedType: const FullType(OCSMeta)), - 'data', - serializers.serialize(object.data, specifiedType: const FullType(BuiltList, [FullType(Collection)])), - ]; - - return result; - } - - @override - CollaborationResourcesGetCollectionsByResourceResponseApplicationJson_Ocs deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = CollaborationResourcesGetCollectionsByResourceResponseApplicationJson_OcsBuilder(); + final result = CollaborationResourcesGetCollectionsByResourceResponseApplicationJson_OcsBuilder(); final iterator = serialized.iterator; while (iterator.moveNext()) { @@ -2922,51 +2952,6 @@ class _$CollaborationResourcesCreateCollectionOnResourceResponseApplicationJsonS } } -class _$GuestAvatarGetAvatarRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - GuestAvatarGetAvatarRequestApplicationJson, - _$GuestAvatarGetAvatarRequestApplicationJson - ]; - @override - final String wireName = 'GuestAvatarGetAvatarRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, GuestAvatarGetAvatarRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = []; - Object? value; - value = object.darkTheme; - if (value != null) { - result - ..add('darkTheme') - ..add(serializers.serialize(value, specifiedType: const FullType(bool))); - } - return result; - } - - @override - GuestAvatarGetAvatarRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = GuestAvatarGetAvatarRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'darkTheme': - result.darkTheme = serializers.deserialize(value, specifiedType: const FullType(bool)) as bool?; - break; - } - } - - return result.build(); - } -} - class _$ContactsActionSerializer implements StructuredSerializer { @override final Iterable types = const [ContactsAction, _$ContactsAction]; @@ -3251,48 +3236,6 @@ class _$LoginConfirmPasswordResponseApplicationJsonSerializer } } -class _$NavigationGetAppsNavigationRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - NavigationGetAppsNavigationRequestApplicationJson, - _$NavigationGetAppsNavigationRequestApplicationJson - ]; - @override - final String wireName = 'NavigationGetAppsNavigationRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, NavigationGetAppsNavigationRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'absolute', - serializers.serialize(object.absolute, specifiedType: const FullType(bool)), - ]; - - return result; - } - - @override - NavigationGetAppsNavigationRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = NavigationGetAppsNavigationRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'absolute': - result.absolute = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; - break; - } - } - - return result.build(); - } -} - class _$NavigationEntrySerializer implements StructuredSerializer { @override final Iterable types = const [NavigationEntry, _$NavigationEntry]; @@ -3466,49 +3409,6 @@ class _$NavigationGetAppsNavigationResponseApplicationJsonSerializer } } -class _$NavigationGetSettingsNavigationRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - NavigationGetSettingsNavigationRequestApplicationJson, - _$NavigationGetSettingsNavigationRequestApplicationJson - ]; - @override - final String wireName = 'NavigationGetSettingsNavigationRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, NavigationGetSettingsNavigationRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'absolute', - serializers.serialize(object.absolute, specifiedType: const FullType(bool)), - ]; - - return result; - } - - @override - NavigationGetSettingsNavigationRequestApplicationJson deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = NavigationGetSettingsNavigationRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'absolute': - result.absolute = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; - break; - } - } - - return result.build(); - } -} - class _$NavigationGetSettingsNavigationResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -7336,150 +7236,6 @@ class _$OcsGetCapabilitiesResponseApplicationJsonSerializer } } -class _$PreviewGetPreviewRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - PreviewGetPreviewRequestApplicationJson, - _$PreviewGetPreviewRequestApplicationJson - ]; - @override - final String wireName = 'PreviewGetPreviewRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, PreviewGetPreviewRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'file', - serializers.serialize(object.file, specifiedType: const FullType(String)), - 'x', - serializers.serialize(object.x, specifiedType: const FullType(int)), - 'y', - serializers.serialize(object.y, specifiedType: const FullType(int)), - 'a', - serializers.serialize(object.a, specifiedType: const FullType(bool)), - 'forceIcon', - serializers.serialize(object.forceIcon, specifiedType: const FullType(bool)), - 'mode', - serializers.serialize(object.mode, specifiedType: const FullType(String)), - 'mimeFallback', - serializers.serialize(object.mimeFallback, specifiedType: const FullType(bool)), - ]; - - return result; - } - - @override - PreviewGetPreviewRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = PreviewGetPreviewRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'file': - result.file = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'x': - result.x = serializers.deserialize(value, specifiedType: const FullType(int))! as int; - break; - case 'y': - result.y = serializers.deserialize(value, specifiedType: const FullType(int))! as int; - break; - case 'a': - result.a = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; - break; - case 'forceIcon': - result.forceIcon = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; - break; - case 'mode': - result.mode = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'mimeFallback': - result.mimeFallback = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; - break; - } - } - - return result.build(); - } -} - -class _$PreviewGetPreviewByFileIdRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - PreviewGetPreviewByFileIdRequestApplicationJson, - _$PreviewGetPreviewByFileIdRequestApplicationJson - ]; - @override - final String wireName = 'PreviewGetPreviewByFileIdRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, PreviewGetPreviewByFileIdRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'fileId', - serializers.serialize(object.fileId, specifiedType: const FullType(int)), - 'x', - serializers.serialize(object.x, specifiedType: const FullType(int)), - 'y', - serializers.serialize(object.y, specifiedType: const FullType(int)), - 'a', - serializers.serialize(object.a, specifiedType: const FullType(bool)), - 'forceIcon', - serializers.serialize(object.forceIcon, specifiedType: const FullType(bool)), - 'mode', - serializers.serialize(object.mode, specifiedType: const FullType(String)), - 'mimeFallback', - serializers.serialize(object.mimeFallback, specifiedType: const FullType(bool)), - ]; - - return result; - } - - @override - PreviewGetPreviewByFileIdRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = PreviewGetPreviewByFileIdRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'fileId': - result.fileId = serializers.deserialize(value, specifiedType: const FullType(int))! as int; - break; - case 'x': - result.x = serializers.deserialize(value, specifiedType: const FullType(int))! as int; - break; - case 'y': - result.y = serializers.deserialize(value, specifiedType: const FullType(int))! as int; - break; - case 'a': - result.a = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; - break; - case 'forceIcon': - result.forceIcon = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; - break; - case 'mode': - result.mode = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'mimeFallback': - result.mimeFallback = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; - break; - } - } - - return result.build(); - } -} - class _$ProfileApiSetVisibilityRequestApplicationJsonSerializer implements StructuredSerializer { @override @@ -7865,48 +7621,6 @@ class _$ReferenceApiExtractResponseApplicationJsonSerializer } } -class _$ReferenceApiResolveOneRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - ReferenceApiResolveOneRequestApplicationJson, - _$ReferenceApiResolveOneRequestApplicationJson - ]; - @override - final String wireName = 'ReferenceApiResolveOneRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, ReferenceApiResolveOneRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'reference', - serializers.serialize(object.reference, specifiedType: const FullType(String)), - ]; - - return result; - } - - @override - ReferenceApiResolveOneRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = ReferenceApiResolveOneRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'reference': - result.reference = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - } - } - - return result.build(); - } -} - class _$ReferenceApiResolveOneResponseApplicationJson_Ocs_DataSerializer implements StructuredSerializer { @override @@ -9741,52 +9455,6 @@ class _$TextProcessingApiDeleteTaskResponseApplicationJsonSerializer } } -class _$TextProcessingApiListTasksByAppRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - TextProcessingApiListTasksByAppRequestApplicationJson, - _$TextProcessingApiListTasksByAppRequestApplicationJson - ]; - @override - final String wireName = 'TextProcessingApiListTasksByAppRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, TextProcessingApiListTasksByAppRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = []; - Object? value; - value = object.identifier; - if (value != null) { - result - ..add('identifier') - ..add(serializers.serialize(value, specifiedType: const FullType(String))); - } - return result; - } - - @override - TextProcessingApiListTasksByAppRequestApplicationJson deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = TextProcessingApiListTasksByAppRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'identifier': - result.identifier = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; - break; - } - } - - return result.build(); - } -} - class _$TextProcessingApiListTasksByAppResponseApplicationJson_Ocs_DataSerializer implements StructuredSerializer { @override @@ -10633,51 +10301,6 @@ class _$TextToImageApiDeleteTaskResponseApplicationJsonSerializer } } -class _$TextToImageApiListTasksByAppRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - TextToImageApiListTasksByAppRequestApplicationJson, - _$TextToImageApiListTasksByAppRequestApplicationJson - ]; - @override - final String wireName = 'TextToImageApiListTasksByAppRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, TextToImageApiListTasksByAppRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = []; - Object? value; - value = object.identifier; - if (value != null) { - result - ..add('identifier') - ..add(serializers.serialize(value, specifiedType: const FullType(String))); - } - return result; - } - - @override - TextToImageApiListTasksByAppRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = TextToImageApiListTasksByAppRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'identifier': - result.identifier = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; - break; - } - } - - return result.build(); - } -} - class _$TextToImageApiListTasksByAppResponseApplicationJson_Ocs_DataSerializer implements StructuredSerializer { @override @@ -11229,48 +10852,6 @@ class _$TranslationApiTranslateResponseApplicationJsonSerializer } } -class _$UnifiedSearchGetProvidersRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - UnifiedSearchGetProvidersRequestApplicationJson, - _$UnifiedSearchGetProvidersRequestApplicationJson - ]; - @override - final String wireName = 'UnifiedSearchGetProvidersRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, UnifiedSearchGetProvidersRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'from', - serializers.serialize(object.from, specifiedType: const FullType(String)), - ]; - - return result; - } - - @override - UnifiedSearchGetProvidersRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = UnifiedSearchGetProvidersRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'from': - result.from = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - } - } - - return result.build(); - } -} - class _$UnifiedSearchProviderSerializer implements StructuredSerializer { @override final Iterable types = const [UnifiedSearchProvider, _$UnifiedSearchProvider]; @@ -11441,83 +11022,6 @@ class _$UnifiedSearchGetProvidersResponseApplicationJsonSerializer } } -class _$UnifiedSearchSearchRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - UnifiedSearchSearchRequestApplicationJson, - _$UnifiedSearchSearchRequestApplicationJson - ]; - @override - final String wireName = 'UnifiedSearchSearchRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, UnifiedSearchSearchRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'term', - serializers.serialize(object.term, specifiedType: const FullType(String)), - 'from', - serializers.serialize(object.from, specifiedType: const FullType(String)), - ]; - Object? value; - value = object.sortOrder; - if (value != null) { - result - ..add('sortOrder') - ..add(serializers.serialize(value, specifiedType: const FullType(int))); - } - value = object.limit; - if (value != null) { - result - ..add('limit') - ..add(serializers.serialize(value, specifiedType: const FullType(int))); - } - value = object.cursor; - if (value != null) { - result - ..add('cursor') - ..add(serializers.serialize(value, - specifiedType: const FullType(UnifiedSearchSearchRequestApplicationJson_Cursor))); - } - return result; - } - - @override - UnifiedSearchSearchRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = UnifiedSearchSearchRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'term': - result.term = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'sortOrder': - result.sortOrder = serializers.deserialize(value, specifiedType: const FullType(int)) as int?; - break; - case 'limit': - result.limit = serializers.deserialize(value, specifiedType: const FullType(int)) as int?; - break; - case 'cursor': - result.cursor = serializers.deserialize(value, - specifiedType: const FullType(UnifiedSearchSearchRequestApplicationJson_Cursor)) - as UnifiedSearchSearchRequestApplicationJson_Cursor?; - break; - case 'from': - result.from = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - } - } - - return result.build(); - } -} - class _$UnifiedSearchResultEntrySerializer implements StructuredSerializer { @override final Iterable types = const [UnifiedSearchResultEntry, _$UnifiedSearchResultEntry]; @@ -14069,189 +13573,6 @@ class AppPasswordConfirmUserPasswordResponseApplicationJsonBuilder } } -abstract mixin class $AutoCompleteGetRequestApplicationJsonInterfaceBuilder { - void replace($AutoCompleteGetRequestApplicationJsonInterface other); - void update(void Function($AutoCompleteGetRequestApplicationJsonInterfaceBuilder) updates); - String? get search; - set search(String? search); - - String? get itemType; - set itemType(String? itemType); - - String? get itemId; - set itemId(String? itemId); - - String? get sorter; - set sorter(String? sorter); - - ListBuilder get shareTypes; - set shareTypes(ListBuilder? shareTypes); - - int? get limit; - set limit(int? limit); -} - -class _$AutoCompleteGetRequestApplicationJson extends AutoCompleteGetRequestApplicationJson { - @override - final String search; - @override - final String? itemType; - @override - final String? itemId; - @override - final String? sorter; - @override - final BuiltList shareTypes; - @override - final int limit; - - factory _$AutoCompleteGetRequestApplicationJson( - [void Function(AutoCompleteGetRequestApplicationJsonBuilder)? updates]) => - (AutoCompleteGetRequestApplicationJsonBuilder()..update(updates))._build(); - - _$AutoCompleteGetRequestApplicationJson._( - {required this.search, this.itemType, this.itemId, this.sorter, required this.shareTypes, required this.limit}) - : super._() { - BuiltValueNullFieldError.checkNotNull(search, r'AutoCompleteGetRequestApplicationJson', 'search'); - BuiltValueNullFieldError.checkNotNull(shareTypes, r'AutoCompleteGetRequestApplicationJson', 'shareTypes'); - BuiltValueNullFieldError.checkNotNull(limit, r'AutoCompleteGetRequestApplicationJson', 'limit'); - } - - @override - AutoCompleteGetRequestApplicationJson rebuild(void Function(AutoCompleteGetRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - AutoCompleteGetRequestApplicationJsonBuilder toBuilder() => - AutoCompleteGetRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is AutoCompleteGetRequestApplicationJson && - search == other.search && - itemType == other.itemType && - itemId == other.itemId && - sorter == other.sorter && - shareTypes == other.shareTypes && - limit == other.limit; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, search.hashCode); - _$hash = $jc(_$hash, itemType.hashCode); - _$hash = $jc(_$hash, itemId.hashCode); - _$hash = $jc(_$hash, sorter.hashCode); - _$hash = $jc(_$hash, shareTypes.hashCode); - _$hash = $jc(_$hash, limit.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'AutoCompleteGetRequestApplicationJson') - ..add('search', search) - ..add('itemType', itemType) - ..add('itemId', itemId) - ..add('sorter', sorter) - ..add('shareTypes', shareTypes) - ..add('limit', limit)) - .toString(); - } -} - -class AutoCompleteGetRequestApplicationJsonBuilder - implements - Builder, - $AutoCompleteGetRequestApplicationJsonInterfaceBuilder { - _$AutoCompleteGetRequestApplicationJson? _$v; - - String? _search; - String? get search => _$this._search; - set search(covariant String? search) => _$this._search = search; - - String? _itemType; - String? get itemType => _$this._itemType; - set itemType(covariant String? itemType) => _$this._itemType = itemType; - - String? _itemId; - String? get itemId => _$this._itemId; - set itemId(covariant String? itemId) => _$this._itemId = itemId; - - String? _sorter; - String? get sorter => _$this._sorter; - set sorter(covariant String? sorter) => _$this._sorter = sorter; - - ListBuilder? _shareTypes; - ListBuilder get shareTypes => _$this._shareTypes ??= ListBuilder(); - set shareTypes(covariant ListBuilder? shareTypes) => _$this._shareTypes = shareTypes; - - int? _limit; - int? get limit => _$this._limit; - set limit(covariant int? limit) => _$this._limit = limit; - - AutoCompleteGetRequestApplicationJsonBuilder() { - AutoCompleteGetRequestApplicationJson._defaults(this); - } - - AutoCompleteGetRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _search = $v.search; - _itemType = $v.itemType; - _itemId = $v.itemId; - _sorter = $v.sorter; - _shareTypes = $v.shareTypes.toBuilder(); - _limit = $v.limit; - _$v = null; - } - return this; - } - - @override - void replace(covariant AutoCompleteGetRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$AutoCompleteGetRequestApplicationJson; - } - - @override - void update(void Function(AutoCompleteGetRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - AutoCompleteGetRequestApplicationJson build() => _build(); - - _$AutoCompleteGetRequestApplicationJson _build() { - AutoCompleteGetRequestApplicationJson._validate(this); - _$AutoCompleteGetRequestApplicationJson _$result; - try { - _$result = _$v ?? - _$AutoCompleteGetRequestApplicationJson._( - search: BuiltValueNullFieldError.checkNotNull(search, r'AutoCompleteGetRequestApplicationJson', 'search'), - itemType: itemType, - itemId: itemId, - sorter: sorter, - shareTypes: shareTypes.build(), - limit: BuiltValueNullFieldError.checkNotNull(limit, r'AutoCompleteGetRequestApplicationJson', 'limit')); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'shareTypes'; - shareTypes.build(); - } catch (e) { - throw BuiltValueNestedFieldError(r'AutoCompleteGetRequestApplicationJson', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - abstract mixin class $AutocompleteResult_Status0InterfaceBuilder { void replace($AutocompleteResult_Status0Interface other); void update(void Function($AutocompleteResult_Status0InterfaceBuilder) updates); @@ -16836,126 +16157,6 @@ class CollaborationResourcesAddResourceResponseApplicationJsonBuilder } } -abstract mixin class $CollaborationResourcesRemoveResourceRequestApplicationJsonInterfaceBuilder { - void replace($CollaborationResourcesRemoveResourceRequestApplicationJsonInterface other); - void update(void Function($CollaborationResourcesRemoveResourceRequestApplicationJsonInterfaceBuilder) updates); - String? get resourceType; - set resourceType(String? resourceType); - - String? get resourceId; - set resourceId(String? resourceId); -} - -class _$CollaborationResourcesRemoveResourceRequestApplicationJson - extends CollaborationResourcesRemoveResourceRequestApplicationJson { - @override - final String resourceType; - @override - final String resourceId; - - factory _$CollaborationResourcesRemoveResourceRequestApplicationJson( - [void Function(CollaborationResourcesRemoveResourceRequestApplicationJsonBuilder)? updates]) => - (CollaborationResourcesRemoveResourceRequestApplicationJsonBuilder()..update(updates))._build(); - - _$CollaborationResourcesRemoveResourceRequestApplicationJson._({required this.resourceType, required this.resourceId}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - resourceType, r'CollaborationResourcesRemoveResourceRequestApplicationJson', 'resourceType'); - BuiltValueNullFieldError.checkNotNull( - resourceId, r'CollaborationResourcesRemoveResourceRequestApplicationJson', 'resourceId'); - } - - @override - CollaborationResourcesRemoveResourceRequestApplicationJson rebuild( - void Function(CollaborationResourcesRemoveResourceRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - CollaborationResourcesRemoveResourceRequestApplicationJsonBuilder toBuilder() => - CollaborationResourcesRemoveResourceRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is CollaborationResourcesRemoveResourceRequestApplicationJson && - resourceType == other.resourceType && - resourceId == other.resourceId; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, resourceType.hashCode); - _$hash = $jc(_$hash, resourceId.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'CollaborationResourcesRemoveResourceRequestApplicationJson') - ..add('resourceType', resourceType) - ..add('resourceId', resourceId)) - .toString(); - } -} - -class CollaborationResourcesRemoveResourceRequestApplicationJsonBuilder - implements - Builder, - $CollaborationResourcesRemoveResourceRequestApplicationJsonInterfaceBuilder { - _$CollaborationResourcesRemoveResourceRequestApplicationJson? _$v; - - String? _resourceType; - String? get resourceType => _$this._resourceType; - set resourceType(covariant String? resourceType) => _$this._resourceType = resourceType; - - String? _resourceId; - String? get resourceId => _$this._resourceId; - set resourceId(covariant String? resourceId) => _$this._resourceId = resourceId; - - CollaborationResourcesRemoveResourceRequestApplicationJsonBuilder() { - CollaborationResourcesRemoveResourceRequestApplicationJson._defaults(this); - } - - CollaborationResourcesRemoveResourceRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _resourceType = $v.resourceType; - _resourceId = $v.resourceId; - _$v = null; - } - return this; - } - - @override - void replace(covariant CollaborationResourcesRemoveResourceRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$CollaborationResourcesRemoveResourceRequestApplicationJson; - } - - @override - void update(void Function(CollaborationResourcesRemoveResourceRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - CollaborationResourcesRemoveResourceRequestApplicationJson build() => _build(); - - _$CollaborationResourcesRemoveResourceRequestApplicationJson _build() { - CollaborationResourcesRemoveResourceRequestApplicationJson._validate(this); - final _$result = _$v ?? - _$CollaborationResourcesRemoveResourceRequestApplicationJson._( - resourceType: BuiltValueNullFieldError.checkNotNull( - resourceType, r'CollaborationResourcesRemoveResourceRequestApplicationJson', 'resourceType'), - resourceId: BuiltValueNullFieldError.checkNotNull( - resourceId, r'CollaborationResourcesRemoveResourceRequestApplicationJson', 'resourceId')); - replace(_$result); - return _$result; - } -} - abstract mixin class $CollaborationResourcesRemoveResourceResponseApplicationJson_OcsInterfaceBuilder { void replace($CollaborationResourcesRemoveResourceResponseApplicationJson_OcsInterface other); void update(void Function($CollaborationResourcesRemoveResourceResponseApplicationJson_OcsInterfaceBuilder) updates); @@ -18047,98 +17248,6 @@ class CollaborationResourcesCreateCollectionOnResourceResponseApplicationJsonBui } } -abstract mixin class $GuestAvatarGetAvatarRequestApplicationJsonInterfaceBuilder { - void replace($GuestAvatarGetAvatarRequestApplicationJsonInterface other); - void update(void Function($GuestAvatarGetAvatarRequestApplicationJsonInterfaceBuilder) updates); - bool? get darkTheme; - set darkTheme(bool? darkTheme); -} - -class _$GuestAvatarGetAvatarRequestApplicationJson extends GuestAvatarGetAvatarRequestApplicationJson { - @override - final bool? darkTheme; - - factory _$GuestAvatarGetAvatarRequestApplicationJson( - [void Function(GuestAvatarGetAvatarRequestApplicationJsonBuilder)? updates]) => - (GuestAvatarGetAvatarRequestApplicationJsonBuilder()..update(updates))._build(); - - _$GuestAvatarGetAvatarRequestApplicationJson._({this.darkTheme}) : super._(); - - @override - GuestAvatarGetAvatarRequestApplicationJson rebuild( - void Function(GuestAvatarGetAvatarRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - GuestAvatarGetAvatarRequestApplicationJsonBuilder toBuilder() => - GuestAvatarGetAvatarRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is GuestAvatarGetAvatarRequestApplicationJson && darkTheme == other.darkTheme; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, darkTheme.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'GuestAvatarGetAvatarRequestApplicationJson')..add('darkTheme', darkTheme)) - .toString(); - } -} - -class GuestAvatarGetAvatarRequestApplicationJsonBuilder - implements - Builder, - $GuestAvatarGetAvatarRequestApplicationJsonInterfaceBuilder { - _$GuestAvatarGetAvatarRequestApplicationJson? _$v; - - bool? _darkTheme; - bool? get darkTheme => _$this._darkTheme; - set darkTheme(covariant bool? darkTheme) => _$this._darkTheme = darkTheme; - - GuestAvatarGetAvatarRequestApplicationJsonBuilder() { - GuestAvatarGetAvatarRequestApplicationJson._defaults(this); - } - - GuestAvatarGetAvatarRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _darkTheme = $v.darkTheme; - _$v = null; - } - return this; - } - - @override - void replace(covariant GuestAvatarGetAvatarRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GuestAvatarGetAvatarRequestApplicationJson; - } - - @override - void update(void Function(GuestAvatarGetAvatarRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - GuestAvatarGetAvatarRequestApplicationJson build() => _build(); - - _$GuestAvatarGetAvatarRequestApplicationJson _build() { - GuestAvatarGetAvatarRequestApplicationJson._validate(this); - final _$result = _$v ?? _$GuestAvatarGetAvatarRequestApplicationJson._(darkTheme: darkTheme); - replace(_$result); - return _$result; - } -} - abstract mixin class $ContactsActionInterfaceBuilder { void replace($ContactsActionInterface other); void update(void Function($ContactsActionInterfaceBuilder) updates); @@ -18846,105 +17955,6 @@ class LoginConfirmPasswordResponseApplicationJsonBuilder } } -abstract mixin class $NavigationGetAppsNavigationRequestApplicationJsonInterfaceBuilder { - void replace($NavigationGetAppsNavigationRequestApplicationJsonInterface other); - void update(void Function($NavigationGetAppsNavigationRequestApplicationJsonInterfaceBuilder) updates); - bool? get absolute; - set absolute(bool? absolute); -} - -class _$NavigationGetAppsNavigationRequestApplicationJson extends NavigationGetAppsNavigationRequestApplicationJson { - @override - final bool absolute; - - factory _$NavigationGetAppsNavigationRequestApplicationJson( - [void Function(NavigationGetAppsNavigationRequestApplicationJsonBuilder)? updates]) => - (NavigationGetAppsNavigationRequestApplicationJsonBuilder()..update(updates))._build(); - - _$NavigationGetAppsNavigationRequestApplicationJson._({required this.absolute}) : super._() { - BuiltValueNullFieldError.checkNotNull(absolute, r'NavigationGetAppsNavigationRequestApplicationJson', 'absolute'); - } - - @override - NavigationGetAppsNavigationRequestApplicationJson rebuild( - void Function(NavigationGetAppsNavigationRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - NavigationGetAppsNavigationRequestApplicationJsonBuilder toBuilder() => - NavigationGetAppsNavigationRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is NavigationGetAppsNavigationRequestApplicationJson && absolute == other.absolute; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, absolute.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'NavigationGetAppsNavigationRequestApplicationJson') - ..add('absolute', absolute)) - .toString(); - } -} - -class NavigationGetAppsNavigationRequestApplicationJsonBuilder - implements - Builder, - $NavigationGetAppsNavigationRequestApplicationJsonInterfaceBuilder { - _$NavigationGetAppsNavigationRequestApplicationJson? _$v; - - bool? _absolute; - bool? get absolute => _$this._absolute; - set absolute(covariant bool? absolute) => _$this._absolute = absolute; - - NavigationGetAppsNavigationRequestApplicationJsonBuilder() { - NavigationGetAppsNavigationRequestApplicationJson._defaults(this); - } - - NavigationGetAppsNavigationRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _absolute = $v.absolute; - _$v = null; - } - return this; - } - - @override - void replace(covariant NavigationGetAppsNavigationRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$NavigationGetAppsNavigationRequestApplicationJson; - } - - @override - void update(void Function(NavigationGetAppsNavigationRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - NavigationGetAppsNavigationRequestApplicationJson build() => _build(); - - _$NavigationGetAppsNavigationRequestApplicationJson _build() { - NavigationGetAppsNavigationRequestApplicationJson._validate(this); - final _$result = _$v ?? - _$NavigationGetAppsNavigationRequestApplicationJson._( - absolute: BuiltValueNullFieldError.checkNotNull( - absolute, r'NavigationGetAppsNavigationRequestApplicationJson', 'absolute')); - replace(_$result); - return _$result; - } -} - abstract mixin class $NavigationEntryInterfaceBuilder { void replace($NavigationEntryInterface other); void update(void Function($NavigationEntryInterfaceBuilder) updates); @@ -19403,107 +18413,6 @@ class NavigationGetAppsNavigationResponseApplicationJsonBuilder } } -abstract mixin class $NavigationGetSettingsNavigationRequestApplicationJsonInterfaceBuilder { - void replace($NavigationGetSettingsNavigationRequestApplicationJsonInterface other); - void update(void Function($NavigationGetSettingsNavigationRequestApplicationJsonInterfaceBuilder) updates); - bool? get absolute; - set absolute(bool? absolute); -} - -class _$NavigationGetSettingsNavigationRequestApplicationJson - extends NavigationGetSettingsNavigationRequestApplicationJson { - @override - final bool absolute; - - factory _$NavigationGetSettingsNavigationRequestApplicationJson( - [void Function(NavigationGetSettingsNavigationRequestApplicationJsonBuilder)? updates]) => - (NavigationGetSettingsNavigationRequestApplicationJsonBuilder()..update(updates))._build(); - - _$NavigationGetSettingsNavigationRequestApplicationJson._({required this.absolute}) : super._() { - BuiltValueNullFieldError.checkNotNull( - absolute, r'NavigationGetSettingsNavigationRequestApplicationJson', 'absolute'); - } - - @override - NavigationGetSettingsNavigationRequestApplicationJson rebuild( - void Function(NavigationGetSettingsNavigationRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - NavigationGetSettingsNavigationRequestApplicationJsonBuilder toBuilder() => - NavigationGetSettingsNavigationRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is NavigationGetSettingsNavigationRequestApplicationJson && absolute == other.absolute; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, absolute.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'NavigationGetSettingsNavigationRequestApplicationJson') - ..add('absolute', absolute)) - .toString(); - } -} - -class NavigationGetSettingsNavigationRequestApplicationJsonBuilder - implements - Builder, - $NavigationGetSettingsNavigationRequestApplicationJsonInterfaceBuilder { - _$NavigationGetSettingsNavigationRequestApplicationJson? _$v; - - bool? _absolute; - bool? get absolute => _$this._absolute; - set absolute(covariant bool? absolute) => _$this._absolute = absolute; - - NavigationGetSettingsNavigationRequestApplicationJsonBuilder() { - NavigationGetSettingsNavigationRequestApplicationJson._defaults(this); - } - - NavigationGetSettingsNavigationRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _absolute = $v.absolute; - _$v = null; - } - return this; - } - - @override - void replace(covariant NavigationGetSettingsNavigationRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$NavigationGetSettingsNavigationRequestApplicationJson; - } - - @override - void update(void Function(NavigationGetSettingsNavigationRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - NavigationGetSettingsNavigationRequestApplicationJson build() => _build(); - - _$NavigationGetSettingsNavigationRequestApplicationJson _build() { - NavigationGetSettingsNavigationRequestApplicationJson._validate(this); - final _$result = _$v ?? - _$NavigationGetSettingsNavigationRequestApplicationJson._( - absolute: BuiltValueNullFieldError.checkNotNull( - absolute, r'NavigationGetSettingsNavigationRequestApplicationJson', 'absolute')); - replace(_$result); - return _$result; - } -} - abstract mixin class $NavigationGetSettingsNavigationResponseApplicationJson_OcsInterfaceBuilder { void replace($NavigationGetSettingsNavigationResponseApplicationJson_OcsInterface other); void update(void Function($NavigationGetSettingsNavigationResponseApplicationJson_OcsInterfaceBuilder) updates); @@ -29172,406 +28081,6 @@ class OcsGetCapabilitiesResponseApplicationJsonBuilder } } -abstract mixin class $PreviewGetPreviewRequestApplicationJsonInterfaceBuilder { - void replace($PreviewGetPreviewRequestApplicationJsonInterface other); - void update(void Function($PreviewGetPreviewRequestApplicationJsonInterfaceBuilder) updates); - String? get file; - set file(String? file); - - int? get x; - set x(int? x); - - int? get y; - set y(int? y); - - bool? get a; - set a(bool? a); - - bool? get forceIcon; - set forceIcon(bool? forceIcon); - - String? get mode; - set mode(String? mode); - - bool? get mimeFallback; - set mimeFallback(bool? mimeFallback); -} - -class _$PreviewGetPreviewRequestApplicationJson extends PreviewGetPreviewRequestApplicationJson { - @override - final String file; - @override - final int x; - @override - final int y; - @override - final bool a; - @override - final bool forceIcon; - @override - final String mode; - @override - final bool mimeFallback; - - factory _$PreviewGetPreviewRequestApplicationJson( - [void Function(PreviewGetPreviewRequestApplicationJsonBuilder)? updates]) => - (PreviewGetPreviewRequestApplicationJsonBuilder()..update(updates))._build(); - - _$PreviewGetPreviewRequestApplicationJson._( - {required this.file, - required this.x, - required this.y, - required this.a, - required this.forceIcon, - required this.mode, - required this.mimeFallback}) - : super._() { - BuiltValueNullFieldError.checkNotNull(file, r'PreviewGetPreviewRequestApplicationJson', 'file'); - BuiltValueNullFieldError.checkNotNull(x, r'PreviewGetPreviewRequestApplicationJson', 'x'); - BuiltValueNullFieldError.checkNotNull(y, r'PreviewGetPreviewRequestApplicationJson', 'y'); - BuiltValueNullFieldError.checkNotNull(a, r'PreviewGetPreviewRequestApplicationJson', 'a'); - BuiltValueNullFieldError.checkNotNull(forceIcon, r'PreviewGetPreviewRequestApplicationJson', 'forceIcon'); - BuiltValueNullFieldError.checkNotNull(mode, r'PreviewGetPreviewRequestApplicationJson', 'mode'); - BuiltValueNullFieldError.checkNotNull(mimeFallback, r'PreviewGetPreviewRequestApplicationJson', 'mimeFallback'); - } - - @override - PreviewGetPreviewRequestApplicationJson rebuild( - void Function(PreviewGetPreviewRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - PreviewGetPreviewRequestApplicationJsonBuilder toBuilder() => - PreviewGetPreviewRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is PreviewGetPreviewRequestApplicationJson && - file == other.file && - x == other.x && - y == other.y && - a == other.a && - forceIcon == other.forceIcon && - mode == other.mode && - mimeFallback == other.mimeFallback; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, file.hashCode); - _$hash = $jc(_$hash, x.hashCode); - _$hash = $jc(_$hash, y.hashCode); - _$hash = $jc(_$hash, a.hashCode); - _$hash = $jc(_$hash, forceIcon.hashCode); - _$hash = $jc(_$hash, mode.hashCode); - _$hash = $jc(_$hash, mimeFallback.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'PreviewGetPreviewRequestApplicationJson') - ..add('file', file) - ..add('x', x) - ..add('y', y) - ..add('a', a) - ..add('forceIcon', forceIcon) - ..add('mode', mode) - ..add('mimeFallback', mimeFallback)) - .toString(); - } -} - -class PreviewGetPreviewRequestApplicationJsonBuilder - implements - Builder, - $PreviewGetPreviewRequestApplicationJsonInterfaceBuilder { - _$PreviewGetPreviewRequestApplicationJson? _$v; - - String? _file; - String? get file => _$this._file; - set file(covariant String? file) => _$this._file = file; - - int? _x; - int? get x => _$this._x; - set x(covariant int? x) => _$this._x = x; - - int? _y; - int? get y => _$this._y; - set y(covariant int? y) => _$this._y = y; - - bool? _a; - bool? get a => _$this._a; - set a(covariant bool? a) => _$this._a = a; - - bool? _forceIcon; - bool? get forceIcon => _$this._forceIcon; - set forceIcon(covariant bool? forceIcon) => _$this._forceIcon = forceIcon; - - String? _mode; - String? get mode => _$this._mode; - set mode(covariant String? mode) => _$this._mode = mode; - - bool? _mimeFallback; - bool? get mimeFallback => _$this._mimeFallback; - set mimeFallback(covariant bool? mimeFallback) => _$this._mimeFallback = mimeFallback; - - PreviewGetPreviewRequestApplicationJsonBuilder() { - PreviewGetPreviewRequestApplicationJson._defaults(this); - } - - PreviewGetPreviewRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _file = $v.file; - _x = $v.x; - _y = $v.y; - _a = $v.a; - _forceIcon = $v.forceIcon; - _mode = $v.mode; - _mimeFallback = $v.mimeFallback; - _$v = null; - } - return this; - } - - @override - void replace(covariant PreviewGetPreviewRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$PreviewGetPreviewRequestApplicationJson; - } - - @override - void update(void Function(PreviewGetPreviewRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - PreviewGetPreviewRequestApplicationJson build() => _build(); - - _$PreviewGetPreviewRequestApplicationJson _build() { - PreviewGetPreviewRequestApplicationJson._validate(this); - final _$result = _$v ?? - _$PreviewGetPreviewRequestApplicationJson._( - file: BuiltValueNullFieldError.checkNotNull(file, r'PreviewGetPreviewRequestApplicationJson', 'file'), - x: BuiltValueNullFieldError.checkNotNull(x, r'PreviewGetPreviewRequestApplicationJson', 'x'), - y: BuiltValueNullFieldError.checkNotNull(y, r'PreviewGetPreviewRequestApplicationJson', 'y'), - a: BuiltValueNullFieldError.checkNotNull(a, r'PreviewGetPreviewRequestApplicationJson', 'a'), - forceIcon: BuiltValueNullFieldError.checkNotNull( - forceIcon, r'PreviewGetPreviewRequestApplicationJson', 'forceIcon'), - mode: BuiltValueNullFieldError.checkNotNull(mode, r'PreviewGetPreviewRequestApplicationJson', 'mode'), - mimeFallback: BuiltValueNullFieldError.checkNotNull( - mimeFallback, r'PreviewGetPreviewRequestApplicationJson', 'mimeFallback')); - replace(_$result); - return _$result; - } -} - -abstract mixin class $PreviewGetPreviewByFileIdRequestApplicationJsonInterfaceBuilder { - void replace($PreviewGetPreviewByFileIdRequestApplicationJsonInterface other); - void update(void Function($PreviewGetPreviewByFileIdRequestApplicationJsonInterfaceBuilder) updates); - int? get fileId; - set fileId(int? fileId); - - int? get x; - set x(int? x); - - int? get y; - set y(int? y); - - bool? get a; - set a(bool? a); - - bool? get forceIcon; - set forceIcon(bool? forceIcon); - - String? get mode; - set mode(String? mode); - - bool? get mimeFallback; - set mimeFallback(bool? mimeFallback); -} - -class _$PreviewGetPreviewByFileIdRequestApplicationJson extends PreviewGetPreviewByFileIdRequestApplicationJson { - @override - final int fileId; - @override - final int x; - @override - final int y; - @override - final bool a; - @override - final bool forceIcon; - @override - final String mode; - @override - final bool mimeFallback; - - factory _$PreviewGetPreviewByFileIdRequestApplicationJson( - [void Function(PreviewGetPreviewByFileIdRequestApplicationJsonBuilder)? updates]) => - (PreviewGetPreviewByFileIdRequestApplicationJsonBuilder()..update(updates))._build(); - - _$PreviewGetPreviewByFileIdRequestApplicationJson._( - {required this.fileId, - required this.x, - required this.y, - required this.a, - required this.forceIcon, - required this.mode, - required this.mimeFallback}) - : super._() { - BuiltValueNullFieldError.checkNotNull(fileId, r'PreviewGetPreviewByFileIdRequestApplicationJson', 'fileId'); - BuiltValueNullFieldError.checkNotNull(x, r'PreviewGetPreviewByFileIdRequestApplicationJson', 'x'); - BuiltValueNullFieldError.checkNotNull(y, r'PreviewGetPreviewByFileIdRequestApplicationJson', 'y'); - BuiltValueNullFieldError.checkNotNull(a, r'PreviewGetPreviewByFileIdRequestApplicationJson', 'a'); - BuiltValueNullFieldError.checkNotNull(forceIcon, r'PreviewGetPreviewByFileIdRequestApplicationJson', 'forceIcon'); - BuiltValueNullFieldError.checkNotNull(mode, r'PreviewGetPreviewByFileIdRequestApplicationJson', 'mode'); - BuiltValueNullFieldError.checkNotNull( - mimeFallback, r'PreviewGetPreviewByFileIdRequestApplicationJson', 'mimeFallback'); - } - - @override - PreviewGetPreviewByFileIdRequestApplicationJson rebuild( - void Function(PreviewGetPreviewByFileIdRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - PreviewGetPreviewByFileIdRequestApplicationJsonBuilder toBuilder() => - PreviewGetPreviewByFileIdRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is PreviewGetPreviewByFileIdRequestApplicationJson && - fileId == other.fileId && - x == other.x && - y == other.y && - a == other.a && - forceIcon == other.forceIcon && - mode == other.mode && - mimeFallback == other.mimeFallback; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, fileId.hashCode); - _$hash = $jc(_$hash, x.hashCode); - _$hash = $jc(_$hash, y.hashCode); - _$hash = $jc(_$hash, a.hashCode); - _$hash = $jc(_$hash, forceIcon.hashCode); - _$hash = $jc(_$hash, mode.hashCode); - _$hash = $jc(_$hash, mimeFallback.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'PreviewGetPreviewByFileIdRequestApplicationJson') - ..add('fileId', fileId) - ..add('x', x) - ..add('y', y) - ..add('a', a) - ..add('forceIcon', forceIcon) - ..add('mode', mode) - ..add('mimeFallback', mimeFallback)) - .toString(); - } -} - -class PreviewGetPreviewByFileIdRequestApplicationJsonBuilder - implements - Builder, - $PreviewGetPreviewByFileIdRequestApplicationJsonInterfaceBuilder { - _$PreviewGetPreviewByFileIdRequestApplicationJson? _$v; - - int? _fileId; - int? get fileId => _$this._fileId; - set fileId(covariant int? fileId) => _$this._fileId = fileId; - - int? _x; - int? get x => _$this._x; - set x(covariant int? x) => _$this._x = x; - - int? _y; - int? get y => _$this._y; - set y(covariant int? y) => _$this._y = y; - - bool? _a; - bool? get a => _$this._a; - set a(covariant bool? a) => _$this._a = a; - - bool? _forceIcon; - bool? get forceIcon => _$this._forceIcon; - set forceIcon(covariant bool? forceIcon) => _$this._forceIcon = forceIcon; - - String? _mode; - String? get mode => _$this._mode; - set mode(covariant String? mode) => _$this._mode = mode; - - bool? _mimeFallback; - bool? get mimeFallback => _$this._mimeFallback; - set mimeFallback(covariant bool? mimeFallback) => _$this._mimeFallback = mimeFallback; - - PreviewGetPreviewByFileIdRequestApplicationJsonBuilder() { - PreviewGetPreviewByFileIdRequestApplicationJson._defaults(this); - } - - PreviewGetPreviewByFileIdRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _fileId = $v.fileId; - _x = $v.x; - _y = $v.y; - _a = $v.a; - _forceIcon = $v.forceIcon; - _mode = $v.mode; - _mimeFallback = $v.mimeFallback; - _$v = null; - } - return this; - } - - @override - void replace(covariant PreviewGetPreviewByFileIdRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$PreviewGetPreviewByFileIdRequestApplicationJson; - } - - @override - void update(void Function(PreviewGetPreviewByFileIdRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - PreviewGetPreviewByFileIdRequestApplicationJson build() => _build(); - - _$PreviewGetPreviewByFileIdRequestApplicationJson _build() { - PreviewGetPreviewByFileIdRequestApplicationJson._validate(this); - final _$result = _$v ?? - _$PreviewGetPreviewByFileIdRequestApplicationJson._( - fileId: BuiltValueNullFieldError.checkNotNull( - fileId, r'PreviewGetPreviewByFileIdRequestApplicationJson', 'fileId'), - x: BuiltValueNullFieldError.checkNotNull(x, r'PreviewGetPreviewByFileIdRequestApplicationJson', 'x'), - y: BuiltValueNullFieldError.checkNotNull(y, r'PreviewGetPreviewByFileIdRequestApplicationJson', 'y'), - a: BuiltValueNullFieldError.checkNotNull(a, r'PreviewGetPreviewByFileIdRequestApplicationJson', 'a'), - forceIcon: BuiltValueNullFieldError.checkNotNull( - forceIcon, r'PreviewGetPreviewByFileIdRequestApplicationJson', 'forceIcon'), - mode: - BuiltValueNullFieldError.checkNotNull(mode, r'PreviewGetPreviewByFileIdRequestApplicationJson', 'mode'), - mimeFallback: BuiltValueNullFieldError.checkNotNull( - mimeFallback, r'PreviewGetPreviewByFileIdRequestApplicationJson', 'mimeFallback')); - replace(_$result); - return _$result; - } -} - abstract mixin class $ProfileApiSetVisibilityRequestApplicationJsonInterfaceBuilder { void replace($ProfileApiSetVisibilityRequestApplicationJsonInterface other); void update(void Function($ProfileApiSetVisibilityRequestApplicationJsonInterfaceBuilder) updates); @@ -30542,103 +29051,6 @@ class ReferenceApiExtractResponseApplicationJsonBuilder } } -abstract mixin class $ReferenceApiResolveOneRequestApplicationJsonInterfaceBuilder { - void replace($ReferenceApiResolveOneRequestApplicationJsonInterface other); - void update(void Function($ReferenceApiResolveOneRequestApplicationJsonInterfaceBuilder) updates); - String? get reference; - set reference(String? reference); -} - -class _$ReferenceApiResolveOneRequestApplicationJson extends ReferenceApiResolveOneRequestApplicationJson { - @override - final String reference; - - factory _$ReferenceApiResolveOneRequestApplicationJson( - [void Function(ReferenceApiResolveOneRequestApplicationJsonBuilder)? updates]) => - (ReferenceApiResolveOneRequestApplicationJsonBuilder()..update(updates))._build(); - - _$ReferenceApiResolveOneRequestApplicationJson._({required this.reference}) : super._() { - BuiltValueNullFieldError.checkNotNull(reference, r'ReferenceApiResolveOneRequestApplicationJson', 'reference'); - } - - @override - ReferenceApiResolveOneRequestApplicationJson rebuild( - void Function(ReferenceApiResolveOneRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - ReferenceApiResolveOneRequestApplicationJsonBuilder toBuilder() => - ReferenceApiResolveOneRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is ReferenceApiResolveOneRequestApplicationJson && reference == other.reference; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, reference.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'ReferenceApiResolveOneRequestApplicationJson')..add('reference', reference)) - .toString(); - } -} - -class ReferenceApiResolveOneRequestApplicationJsonBuilder - implements - Builder, - $ReferenceApiResolveOneRequestApplicationJsonInterfaceBuilder { - _$ReferenceApiResolveOneRequestApplicationJson? _$v; - - String? _reference; - String? get reference => _$this._reference; - set reference(covariant String? reference) => _$this._reference = reference; - - ReferenceApiResolveOneRequestApplicationJsonBuilder() { - ReferenceApiResolveOneRequestApplicationJson._defaults(this); - } - - ReferenceApiResolveOneRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _reference = $v.reference; - _$v = null; - } - return this; - } - - @override - void replace(covariant ReferenceApiResolveOneRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$ReferenceApiResolveOneRequestApplicationJson; - } - - @override - void update(void Function(ReferenceApiResolveOneRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - ReferenceApiResolveOneRequestApplicationJson build() => _build(); - - _$ReferenceApiResolveOneRequestApplicationJson _build() { - ReferenceApiResolveOneRequestApplicationJson._validate(this); - final _$result = _$v ?? - _$ReferenceApiResolveOneRequestApplicationJson._( - reference: BuiltValueNullFieldError.checkNotNull( - reference, r'ReferenceApiResolveOneRequestApplicationJson', 'reference')); - replace(_$result); - return _$result; - } -} - abstract mixin class $ReferenceApiResolveOneResponseApplicationJson_Ocs_DataInterfaceBuilder { void replace($ReferenceApiResolveOneResponseApplicationJson_Ocs_DataInterface other); void update(void Function($ReferenceApiResolveOneResponseApplicationJson_Ocs_DataInterfaceBuilder) updates); @@ -35129,101 +33541,6 @@ class TextProcessingApiDeleteTaskResponseApplicationJsonBuilder } } -abstract mixin class $TextProcessingApiListTasksByAppRequestApplicationJsonInterfaceBuilder { - void replace($TextProcessingApiListTasksByAppRequestApplicationJsonInterface other); - void update(void Function($TextProcessingApiListTasksByAppRequestApplicationJsonInterfaceBuilder) updates); - String? get identifier; - set identifier(String? identifier); -} - -class _$TextProcessingApiListTasksByAppRequestApplicationJson - extends TextProcessingApiListTasksByAppRequestApplicationJson { - @override - final String? identifier; - - factory _$TextProcessingApiListTasksByAppRequestApplicationJson( - [void Function(TextProcessingApiListTasksByAppRequestApplicationJsonBuilder)? updates]) => - (TextProcessingApiListTasksByAppRequestApplicationJsonBuilder()..update(updates))._build(); - - _$TextProcessingApiListTasksByAppRequestApplicationJson._({this.identifier}) : super._(); - - @override - TextProcessingApiListTasksByAppRequestApplicationJson rebuild( - void Function(TextProcessingApiListTasksByAppRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - TextProcessingApiListTasksByAppRequestApplicationJsonBuilder toBuilder() => - TextProcessingApiListTasksByAppRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is TextProcessingApiListTasksByAppRequestApplicationJson && identifier == other.identifier; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, identifier.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'TextProcessingApiListTasksByAppRequestApplicationJson') - ..add('identifier', identifier)) - .toString(); - } -} - -class TextProcessingApiListTasksByAppRequestApplicationJsonBuilder - implements - Builder, - $TextProcessingApiListTasksByAppRequestApplicationJsonInterfaceBuilder { - _$TextProcessingApiListTasksByAppRequestApplicationJson? _$v; - - String? _identifier; - String? get identifier => _$this._identifier; - set identifier(covariant String? identifier) => _$this._identifier = identifier; - - TextProcessingApiListTasksByAppRequestApplicationJsonBuilder() { - TextProcessingApiListTasksByAppRequestApplicationJson._defaults(this); - } - - TextProcessingApiListTasksByAppRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _identifier = $v.identifier; - _$v = null; - } - return this; - } - - @override - void replace(covariant TextProcessingApiListTasksByAppRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$TextProcessingApiListTasksByAppRequestApplicationJson; - } - - @override - void update(void Function(TextProcessingApiListTasksByAppRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - TextProcessingApiListTasksByAppRequestApplicationJson build() => _build(); - - _$TextProcessingApiListTasksByAppRequestApplicationJson _build() { - TextProcessingApiListTasksByAppRequestApplicationJson._validate(this); - final _$result = _$v ?? _$TextProcessingApiListTasksByAppRequestApplicationJson._(identifier: identifier); - replace(_$result); - return _$result; - } -} - abstract mixin class $TextProcessingApiListTasksByAppResponseApplicationJson_Ocs_DataInterfaceBuilder { void replace($TextProcessingApiListTasksByAppResponseApplicationJson_Ocs_DataInterface other); void update(void Function($TextProcessingApiListTasksByAppResponseApplicationJson_Ocs_DataInterfaceBuilder) updates); @@ -37288,100 +35605,6 @@ class TextToImageApiDeleteTaskResponseApplicationJsonBuilder } } -abstract mixin class $TextToImageApiListTasksByAppRequestApplicationJsonInterfaceBuilder { - void replace($TextToImageApiListTasksByAppRequestApplicationJsonInterface other); - void update(void Function($TextToImageApiListTasksByAppRequestApplicationJsonInterfaceBuilder) updates); - String? get identifier; - set identifier(String? identifier); -} - -class _$TextToImageApiListTasksByAppRequestApplicationJson extends TextToImageApiListTasksByAppRequestApplicationJson { - @override - final String? identifier; - - factory _$TextToImageApiListTasksByAppRequestApplicationJson( - [void Function(TextToImageApiListTasksByAppRequestApplicationJsonBuilder)? updates]) => - (TextToImageApiListTasksByAppRequestApplicationJsonBuilder()..update(updates))._build(); - - _$TextToImageApiListTasksByAppRequestApplicationJson._({this.identifier}) : super._(); - - @override - TextToImageApiListTasksByAppRequestApplicationJson rebuild( - void Function(TextToImageApiListTasksByAppRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - TextToImageApiListTasksByAppRequestApplicationJsonBuilder toBuilder() => - TextToImageApiListTasksByAppRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is TextToImageApiListTasksByAppRequestApplicationJson && identifier == other.identifier; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, identifier.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'TextToImageApiListTasksByAppRequestApplicationJson') - ..add('identifier', identifier)) - .toString(); - } -} - -class TextToImageApiListTasksByAppRequestApplicationJsonBuilder - implements - Builder, - $TextToImageApiListTasksByAppRequestApplicationJsonInterfaceBuilder { - _$TextToImageApiListTasksByAppRequestApplicationJson? _$v; - - String? _identifier; - String? get identifier => _$this._identifier; - set identifier(covariant String? identifier) => _$this._identifier = identifier; - - TextToImageApiListTasksByAppRequestApplicationJsonBuilder() { - TextToImageApiListTasksByAppRequestApplicationJson._defaults(this); - } - - TextToImageApiListTasksByAppRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _identifier = $v.identifier; - _$v = null; - } - return this; - } - - @override - void replace(covariant TextToImageApiListTasksByAppRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$TextToImageApiListTasksByAppRequestApplicationJson; - } - - @override - void update(void Function(TextToImageApiListTasksByAppRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - TextToImageApiListTasksByAppRequestApplicationJson build() => _build(); - - _$TextToImageApiListTasksByAppRequestApplicationJson _build() { - TextToImageApiListTasksByAppRequestApplicationJson._validate(this); - final _$result = _$v ?? _$TextToImageApiListTasksByAppRequestApplicationJson._(identifier: identifier); - replace(_$result); - return _$result; - } -} - abstract mixin class $TextToImageApiListTasksByAppResponseApplicationJson_Ocs_DataInterfaceBuilder { void replace($TextToImageApiListTasksByAppResponseApplicationJson_Ocs_DataInterface other); void update(void Function($TextToImageApiListTasksByAppResponseApplicationJson_Ocs_DataInterfaceBuilder) updates); @@ -38727,104 +36950,6 @@ class TranslationApiTranslateResponseApplicationJsonBuilder } } -abstract mixin class $UnifiedSearchGetProvidersRequestApplicationJsonInterfaceBuilder { - void replace($UnifiedSearchGetProvidersRequestApplicationJsonInterface other); - void update(void Function($UnifiedSearchGetProvidersRequestApplicationJsonInterfaceBuilder) updates); - String? get from; - set from(String? from); -} - -class _$UnifiedSearchGetProvidersRequestApplicationJson extends UnifiedSearchGetProvidersRequestApplicationJson { - @override - final String from; - - factory _$UnifiedSearchGetProvidersRequestApplicationJson( - [void Function(UnifiedSearchGetProvidersRequestApplicationJsonBuilder)? updates]) => - (UnifiedSearchGetProvidersRequestApplicationJsonBuilder()..update(updates))._build(); - - _$UnifiedSearchGetProvidersRequestApplicationJson._({required this.from}) : super._() { - BuiltValueNullFieldError.checkNotNull(from, r'UnifiedSearchGetProvidersRequestApplicationJson', 'from'); - } - - @override - UnifiedSearchGetProvidersRequestApplicationJson rebuild( - void Function(UnifiedSearchGetProvidersRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - UnifiedSearchGetProvidersRequestApplicationJsonBuilder toBuilder() => - UnifiedSearchGetProvidersRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is UnifiedSearchGetProvidersRequestApplicationJson && from == other.from; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, from.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'UnifiedSearchGetProvidersRequestApplicationJson')..add('from', from)) - .toString(); - } -} - -class UnifiedSearchGetProvidersRequestApplicationJsonBuilder - implements - Builder, - $UnifiedSearchGetProvidersRequestApplicationJsonInterfaceBuilder { - _$UnifiedSearchGetProvidersRequestApplicationJson? _$v; - - String? _from; - String? get from => _$this._from; - set from(covariant String? from) => _$this._from = from; - - UnifiedSearchGetProvidersRequestApplicationJsonBuilder() { - UnifiedSearchGetProvidersRequestApplicationJson._defaults(this); - } - - UnifiedSearchGetProvidersRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _from = $v.from; - _$v = null; - } - return this; - } - - @override - void replace(covariant UnifiedSearchGetProvidersRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$UnifiedSearchGetProvidersRequestApplicationJson; - } - - @override - void update(void Function(UnifiedSearchGetProvidersRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - UnifiedSearchGetProvidersRequestApplicationJson build() => _build(); - - _$UnifiedSearchGetProvidersRequestApplicationJson _build() { - UnifiedSearchGetProvidersRequestApplicationJson._validate(this); - final _$result = _$v ?? - _$UnifiedSearchGetProvidersRequestApplicationJson._( - from: BuiltValueNullFieldError.checkNotNull( - from, r'UnifiedSearchGetProvidersRequestApplicationJson', 'from')); - replace(_$result); - return _$result; - } -} - abstract mixin class $UnifiedSearchProviderInterfaceBuilder { void replace($UnifiedSearchProviderInterface other); void update(void Function($UnifiedSearchProviderInterfaceBuilder) updates); @@ -39281,164 +37406,6 @@ class UnifiedSearchGetProvidersResponseApplicationJsonBuilder } } -abstract mixin class $UnifiedSearchSearchRequestApplicationJsonInterfaceBuilder { - void replace($UnifiedSearchSearchRequestApplicationJsonInterface other); - void update(void Function($UnifiedSearchSearchRequestApplicationJsonInterfaceBuilder) updates); - String? get term; - set term(String? term); - - int? get sortOrder; - set sortOrder(int? sortOrder); - - int? get limit; - set limit(int? limit); - - UnifiedSearchSearchRequestApplicationJson_Cursor? get cursor; - set cursor(UnifiedSearchSearchRequestApplicationJson_Cursor? cursor); - - String? get from; - set from(String? from); -} - -class _$UnifiedSearchSearchRequestApplicationJson extends UnifiedSearchSearchRequestApplicationJson { - @override - final String term; - @override - final int? sortOrder; - @override - final int? limit; - @override - final UnifiedSearchSearchRequestApplicationJson_Cursor? cursor; - @override - final String from; - - factory _$UnifiedSearchSearchRequestApplicationJson( - [void Function(UnifiedSearchSearchRequestApplicationJsonBuilder)? updates]) => - (UnifiedSearchSearchRequestApplicationJsonBuilder()..update(updates))._build(); - - _$UnifiedSearchSearchRequestApplicationJson._( - {required this.term, this.sortOrder, this.limit, this.cursor, required this.from}) - : super._() { - BuiltValueNullFieldError.checkNotNull(term, r'UnifiedSearchSearchRequestApplicationJson', 'term'); - BuiltValueNullFieldError.checkNotNull(from, r'UnifiedSearchSearchRequestApplicationJson', 'from'); - } - - @override - UnifiedSearchSearchRequestApplicationJson rebuild( - void Function(UnifiedSearchSearchRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - UnifiedSearchSearchRequestApplicationJsonBuilder toBuilder() => - UnifiedSearchSearchRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - final dynamic _$dynamicOther = other; - return other is UnifiedSearchSearchRequestApplicationJson && - term == other.term && - sortOrder == other.sortOrder && - limit == other.limit && - cursor == _$dynamicOther.cursor && - from == other.from; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, term.hashCode); - _$hash = $jc(_$hash, sortOrder.hashCode); - _$hash = $jc(_$hash, limit.hashCode); - _$hash = $jc(_$hash, cursor.hashCode); - _$hash = $jc(_$hash, from.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'UnifiedSearchSearchRequestApplicationJson') - ..add('term', term) - ..add('sortOrder', sortOrder) - ..add('limit', limit) - ..add('cursor', cursor) - ..add('from', from)) - .toString(); - } -} - -class UnifiedSearchSearchRequestApplicationJsonBuilder - implements - Builder, - $UnifiedSearchSearchRequestApplicationJsonInterfaceBuilder { - _$UnifiedSearchSearchRequestApplicationJson? _$v; - - String? _term; - String? get term => _$this._term; - set term(covariant String? term) => _$this._term = term; - - int? _sortOrder; - int? get sortOrder => _$this._sortOrder; - set sortOrder(covariant int? sortOrder) => _$this._sortOrder = sortOrder; - - int? _limit; - int? get limit => _$this._limit; - set limit(covariant int? limit) => _$this._limit = limit; - - UnifiedSearchSearchRequestApplicationJson_Cursor? _cursor; - UnifiedSearchSearchRequestApplicationJson_Cursor? get cursor => _$this._cursor; - set cursor(covariant UnifiedSearchSearchRequestApplicationJson_Cursor? cursor) => _$this._cursor = cursor; - - String? _from; - String? get from => _$this._from; - set from(covariant String? from) => _$this._from = from; - - UnifiedSearchSearchRequestApplicationJsonBuilder() { - UnifiedSearchSearchRequestApplicationJson._defaults(this); - } - - UnifiedSearchSearchRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _term = $v.term; - _sortOrder = $v.sortOrder; - _limit = $v.limit; - _cursor = $v.cursor; - _from = $v.from; - _$v = null; - } - return this; - } - - @override - void replace(covariant UnifiedSearchSearchRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$UnifiedSearchSearchRequestApplicationJson; - } - - @override - void update(void Function(UnifiedSearchSearchRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - UnifiedSearchSearchRequestApplicationJson build() => _build(); - - _$UnifiedSearchSearchRequestApplicationJson _build() { - UnifiedSearchSearchRequestApplicationJson._validate(this); - final _$result = _$v ?? - _$UnifiedSearchSearchRequestApplicationJson._( - term: BuiltValueNullFieldError.checkNotNull(term, r'UnifiedSearchSearchRequestApplicationJson', 'term'), - sortOrder: sortOrder, - limit: limit, - cursor: cursor, - from: BuiltValueNullFieldError.checkNotNull(from, r'UnifiedSearchSearchRequestApplicationJson', 'from')); - replace(_$result); - return _$result; - } -} - abstract mixin class $UnifiedSearchResultEntryInterfaceBuilder { void replace($UnifiedSearchResultEntryInterface other); void update(void Function($UnifiedSearchResultEntryInterfaceBuilder) updates); diff --git a/packages/nextcloud/lib/src/api/core/core.openapi.json b/packages/nextcloud/lib/src/api/core/core.openapi.json index 02bc6158d22..9a83300ce80 100644 --- a/packages/nextcloud/lib/src/api/core/core.openapi.json +++ b/packages/nextcloud/lib/src/api/core/core.openapi.json @@ -2200,56 +2200,66 @@ "basic_auth": [] } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "search" - ], - "properties": { - "search": { - "type": "string", - "description": "Text to search for" - }, - "itemType": { - "type": "string", - "nullable": true, - "description": "Type of the items to search for" - }, - "itemId": { - "type": "string", - "nullable": true, - "description": "ID of the items to search for" - }, - "sorter": { - "type": "string", - "nullable": true, - "description": "can be piped, top prio first, e.g.: \"commenters|share-recipients\"" - }, - "shareTypes": { - "type": "array", - "default": [], - "description": "Types of shares to search for", - "items": { - "type": "integer", - "format": "int64" - } - }, - "limit": { - "type": "integer", - "format": "int64", - "default": 10, - "description": "Maximum number of results to return" - } - } + "parameters": [ + { + "name": "search", + "in": "query", + "description": "Text to search for", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "itemType", + "in": "query", + "description": "Type of the items to search for", + "schema": { + "type": "string", + "nullable": true + } + }, + { + "name": "itemId", + "in": "query", + "description": "ID of the items to search for", + "schema": { + "type": "string", + "nullable": true + } + }, + { + "name": "sorter", + "in": "query", + "description": "can be piped, top prio first, e.g.: \"commenters|share-recipients\"", + "schema": { + "type": "string", + "nullable": true + } + }, + { + "name": "shareTypes[]", + "in": "query", + "description": "Types of shares to search for", + "schema": { + "type": "array", + "default": [], + "items": { + "type": "integer", + "format": "int64" } } - } - }, - "parameters": [ + }, + { + "name": "limit", + "in": "query", + "description": "Maximum number of results to return", + "schema": { + "type": "integer", + "format": "int64", + "default": 10 + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -2587,30 +2597,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "resourceType", - "resourceId" - ], - "properties": { - "resourceType": { - "type": "string", - "description": "Name of the resource" - }, - "resourceId": { - "type": "string", - "description": "ID of the resource" - } - } - } - } - } - }, "parameters": [ { "name": "collectionId", @@ -2622,6 +2608,24 @@ "format": "int64" } }, + { + "name": "resourceType", + "in": "query", + "description": "Name of the resource", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "resourceId", + "in": "query", + "description": "ID of the resource", + "required": true, + "schema": { + "type": "string" + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -3392,24 +3396,20 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "absolute": { - "type": "boolean", - "default": false, - "description": "Rewrite URLs to absolute ones" - } - } - } - } - } - }, "parameters": [ + { + "name": "absolute", + "in": "query", + "description": "Rewrite URLs to absolute ones", + "schema": { + "type": "integer", + "default": 0, + "enum": [ + 0, + 1 + ] + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -3476,24 +3476,20 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "absolute": { - "type": "boolean", - "default": false, - "description": "Rewrite URLs to absolute ones" - } - } - } - } - } - }, "parameters": [ + { + "name": "absolute", + "in": "query", + "description": "Rewrite URLs to absolute ones", + "schema": { + "type": "integer", + "default": 0, + "enum": [ + 0, + 1 + ] + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -4010,26 +4006,16 @@ "basic_auth": [] } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "reference" - ], - "properties": { - "reference": { - "type": "string", - "description": "Reference to resolve" - } - } - } - } - } - }, "parameters": [ + { + "name": "reference", + "in": "query", + "description": "Reference to resolve", + "required": true, + "schema": { + "type": "string" + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -5148,23 +5134,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "identifier": { - "type": "string", - "nullable": true, - "description": "An arbitrary identifier for the task" - } - } - } - } - } - }, "parameters": [ { "name": "appId", @@ -5175,6 +5144,15 @@ "type": "string" } }, + { + "name": "identifier", + "in": "query", + "description": "An arbitrary identifier for the task", + "schema": { + "type": "string", + "nullable": true + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -5983,23 +5961,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "identifier": { - "type": "string", - "nullable": true, - "description": "An arbitrary identifier for the task" - } - } - } - } - } - }, "parameters": [ { "name": "appId", @@ -6010,6 +5971,15 @@ "type": "string" } }, + { + "name": "identifier", + "in": "query", + "description": "An arbitrary identifier for the task", + "schema": { + "type": "string", + "nullable": true + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -6446,24 +6416,16 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "from": { - "type": "string", - "default": "", - "description": "the url the user is currently at" - } - } - } - } - } - }, "parameters": [ + { + "name": "from", + "in": "query", + "description": "the url the user is currently at", + "schema": { + "type": "string", + "default": "" + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -6528,53 +6490,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "term": { - "type": "string", - "default": "", - "description": "Term to search" - }, - "sortOrder": { - "type": "integer", - "format": "int64", - "nullable": true, - "description": "Order of entries" - }, - "limit": { - "type": "integer", - "format": "int64", - "nullable": true, - "description": "Maximum amount of entries" - }, - "cursor": { - "nullable": true, - "description": "Offset for searching", - "oneOf": [ - { - "type": "integer", - "format": "int64" - }, - { - "type": "string" - } - ] - }, - "from": { - "type": "string", - "default": "", - "description": "The current user URL" - } - } - } - } - } - }, "parameters": [ { "name": "providerId", @@ -6585,6 +6500,61 @@ "type": "string" } }, + { + "name": "term", + "in": "query", + "description": "Term to search", + "schema": { + "type": "string", + "default": "" + } + }, + { + "name": "sortOrder", + "in": "query", + "description": "Order of entries", + "schema": { + "type": "integer", + "format": "int64", + "nullable": true + } + }, + { + "name": "limit", + "in": "query", + "description": "Maximum amount of entries", + "schema": { + "type": "integer", + "format": "int64", + "nullable": true + } + }, + { + "name": "cursor", + "in": "query", + "description": "Offset for searching", + "schema": { + "nullable": true, + "oneOf": [ + { + "type": "integer", + "format": "int64" + }, + { + "type": "string" + } + ] + } + }, + { + "name": "from", + "in": "query", + "description": "The current user URL", + "schema": { + "type": "string", + "default": "" + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -7086,24 +7056,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "darkTheme": { - "type": "boolean", - "nullable": true, - "default": false, - "description": "Return dark avatar" - } - } - } - } - } - }, "parameters": [ { "name": "guestName", @@ -7122,6 +7074,20 @@ "schema": { "type": "string" } + }, + { + "name": "darkTheme", + "in": "query", + "description": "Return dark avatar", + "schema": { + "type": "integer", + "nullable": true, + "default": 0, + "enum": [ + 0, + 1 + ] + } } ], "responses": { @@ -7406,55 +7372,85 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "file": { - "type": "string", - "default": "", - "description": "Path of the file" - }, - "x": { - "type": "integer", - "format": "int64", - "default": 32, - "description": "Width of the preview" - }, - "y": { - "type": "integer", - "format": "int64", - "default": 32, - "description": "Height of the preview" - }, - "a": { - "type": "boolean", - "default": false, - "description": "Whether to not crop the preview" - }, - "forceIcon": { - "type": "boolean", - "default": true, - "description": "Force returning an icon" - }, - "mode": { - "type": "string", - "default": "fill", - "description": "How to crop the image" - }, - "mimeFallback": { - "type": "boolean", - "default": false, - "description": "Whether to fallback to the mime icon if no preview is available" - } - } - } + "parameters": [ + { + "name": "file", + "in": "query", + "description": "Path of the file", + "schema": { + "type": "string", + "default": "" + } + }, + { + "name": "x", + "in": "query", + "description": "Width of the preview", + "schema": { + "type": "integer", + "format": "int64", + "default": 32 + } + }, + { + "name": "y", + "in": "query", + "description": "Height of the preview", + "schema": { + "type": "integer", + "format": "int64", + "default": 32 + } + }, + { + "name": "a", + "in": "query", + "description": "Whether to not crop the preview", + "schema": { + "type": "integer", + "default": 0, + "enum": [ + 0, + 1 + ] + } + }, + { + "name": "forceIcon", + "in": "query", + "description": "Force returning an icon", + "schema": { + "type": "integer", + "default": 1, + "enum": [ + 0, + 1 + ] + } + }, + { + "name": "mode", + "in": "query", + "description": "How to crop the image", + "schema": { + "type": "string", + "default": "fill" + } + }, + { + "name": "mimeFallback", + "in": "query", + "description": "Whether to fallback to the mime icon if no preview is available", + "schema": { + "type": "integer", + "default": 0, + "enum": [ + 0, + 1 + ] } } - }, + ], "responses": { "200": { "description": "Preview returned", @@ -7519,56 +7515,86 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "fileId": { - "type": "integer", - "format": "int64", - "default": -1, - "description": "ID of the file" - }, - "x": { - "type": "integer", - "format": "int64", - "default": 32, - "description": "Width of the preview" - }, - "y": { - "type": "integer", - "format": "int64", - "default": 32, - "description": "Height of the preview" - }, - "a": { - "type": "boolean", - "default": false, - "description": "Whether to not crop the preview" - }, - "forceIcon": { - "type": "boolean", - "default": true, - "description": "Force returning an icon" - }, - "mode": { - "type": "string", - "default": "fill", - "description": "How to crop the image" - }, - "mimeFallback": { - "type": "boolean", - "default": false, - "description": "Whether to fallback to the mime icon if no preview is available" - } - } - } + "parameters": [ + { + "name": "fileId", + "in": "query", + "description": "ID of the file", + "schema": { + "type": "integer", + "format": "int64", + "default": -1 + } + }, + { + "name": "x", + "in": "query", + "description": "Width of the preview", + "schema": { + "type": "integer", + "format": "int64", + "default": 32 + } + }, + { + "name": "y", + "in": "query", + "description": "Height of the preview", + "schema": { + "type": "integer", + "format": "int64", + "default": 32 + } + }, + { + "name": "a", + "in": "query", + "description": "Whether to not crop the preview", + "schema": { + "type": "integer", + "default": 0, + "enum": [ + 0, + 1 + ] + } + }, + { + "name": "forceIcon", + "in": "query", + "description": "Force returning an icon", + "schema": { + "type": "integer", + "default": 1, + "enum": [ + 0, + 1 + ] + } + }, + { + "name": "mode", + "in": "query", + "description": "How to crop the image", + "schema": { + "type": "string", + "default": "fill" + } + }, + { + "name": "mimeFallback", + "in": "query", + "description": "Whether to fallback to the mime icon if no preview is available", + "schema": { + "type": "integer", + "default": 0, + "enum": [ + 0, + 1 + ] } } - }, + ], "responses": { "200": { "description": "Preview returned", diff --git a/packages/nextcloud/lib/src/api/dashboard/dashboard.openapi.dart b/packages/nextcloud/lib/src/api/dashboard/dashboard.openapi.dart index c323e1b69c6..57f417680b2 100644 --- a/packages/nextcloud/lib/src/api/dashboard/dashboard.openapi.dart +++ b/packages/nextcloud/lib/src/api/dashboard/dashboard.openapi.dart @@ -16,18 +16,17 @@ /// It can be obtained at `https://spdx.org/licenses/AGPL-3.0-only.html`. library; // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:convert'; - import 'package:built_collection/built_collection.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; -import 'package:built_value/standard_json_plugin.dart' as _i7; +import 'package:built_value/standard_json_plugin.dart' as _i8; import 'package:collection/collection.dart' as _i4; -import 'package:dynamite_runtime/built_value.dart' as _i6; +import 'package:dynamite_runtime/built_value.dart' as _i7; import 'package:dynamite_runtime/http_client.dart' as _i1; import 'package:dynamite_runtime/utils.dart' as _i5; import 'package:http/http.dart' as _i3; import 'package:meta/meta.dart' as _i2; +import 'package:uri/uri.dart' as _i6; part 'dashboard.openapi.g.dart'; @@ -153,6 +152,9 @@ class $DashboardApiClient { /// Throws a `DynamiteApiException` if the API call does not return an expected status code. /// /// Parameters: + /// * [sinceIds] Array indexed by widget Ids, contains date/id from which we want the new items. + /// * [limit] Limit number of result items per widget. Defaults to `7`. + /// * [widgets] Limit results to specific widgets. Defaults to `[]`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -163,10 +165,31 @@ class $DashboardApiClient { /// * [$getWidgetItems_Serializer] for a converter to parse the `Response` from an executed this request. @_i2.experimental _i3.Request $getWidgetItems_Request({ + String? sinceIds, + int? limit, + BuiltList? widgets, bool? oCSAPIRequest, - DashboardApiGetWidgetItemsRequestApplicationJson? $body, }) { - const _path = '/ocs/v2.php/apps/dashboard/api/v1/widget-items'; + final _parameters = {}; + final __sinceIds = _$jsonSerializers.serialize(sinceIds, specifiedType: const FullType(String)); + _parameters['sinceIds'] = __sinceIds; + + var __limit = _$jsonSerializers.serialize(limit, specifiedType: const FullType(int)); + __limit ??= 7; + _i5.checkNumber( + __limit, + 'limit', + maximum: 30, + minimum: 1, + ); + _parameters['limit'] = __limit; + + var __widgets = _$jsonSerializers.serialize(widgets, specifiedType: const FullType(BuiltList, [FullType(String)])); + __widgets ??= const []; + _parameters['widgets%5B%5D'] = __widgets; + + final _path = _i6.UriTemplate('/ocs/v2.php/apps/dashboard/api/v1/widget-items{?sinceIds*,limit*,widgets%5B%5D*}') + .expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); _request.headers['Accept'] = 'application/json'; @@ -191,20 +214,6 @@ class $DashboardApiClient { __oCSAPIRequest ??= true; _request.headers['OCS-APIRequest'] = const _i5.HeaderEncoder().convert(__oCSAPIRequest); - _request.headers['Content-Type'] = 'application/json'; - _request.body = $body != null - ? json.encode( - _$jsonSerializers.serialize( - $body, - specifiedType: const FullType(DashboardApiGetWidgetItemsRequestApplicationJson), - ), - ) - : json.encode( - _$jsonSerializers.serialize( - DashboardApiGetWidgetItemsRequestApplicationJson(), - specifiedType: const FullType(DashboardApiGetWidgetItemsRequestApplicationJson), - ), - ); return _request; } @@ -214,6 +223,9 @@ class $DashboardApiClient { /// Throws a `DynamiteApiException` if the API call does not return an expected status code. /// /// Parameters: + /// * [sinceIds] Array indexed by widget Ids, contains date/id from which we want the new items. + /// * [limit] Limit number of result items per widget. Defaults to `7`. + /// * [widgets] Limit results to specific widgets. Defaults to `[]`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -223,12 +235,16 @@ class $DashboardApiClient { /// * [$getWidgetItems_Request] for the request send by this method. /// * [$getWidgetItems_Serializer] for a converter to parse the `Response` from an executed request. Future<_i1.DynamiteResponse> getWidgetItems({ + String? sinceIds, + int? limit, + BuiltList? widgets, bool? oCSAPIRequest, - DashboardApiGetWidgetItemsRequestApplicationJson? $body, }) async { final _request = $getWidgetItems_Request( + sinceIds: sinceIds, + limit: limit, + widgets: widgets, oCSAPIRequest: oCSAPIRequest, - $body: $body, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -254,6 +270,9 @@ class $DashboardApiClient { /// Throws a `DynamiteApiException` if the API call does not return an expected status code. /// /// Parameters: + /// * [sinceIds] Array indexed by widget Ids, contains date/id from which we want the new items. + /// * [limit] Limit number of result items per widget, not more than 30 are allowed. Defaults to `7`. + /// * [widgets] Limit results to specific widgets. Defaults to `[]`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -264,10 +283,31 @@ class $DashboardApiClient { /// * [$getWidgetItemsV2_Serializer] for a converter to parse the `Response` from an executed this request. @_i2.experimental _i3.Request $getWidgetItemsV2_Request({ + String? sinceIds, + int? limit, + BuiltList? widgets, bool? oCSAPIRequest, - DashboardApiGetWidgetItemsV2RequestApplicationJson? $body, }) { - const _path = '/ocs/v2.php/apps/dashboard/api/v2/widget-items'; + final _parameters = {}; + final __sinceIds = _$jsonSerializers.serialize(sinceIds, specifiedType: const FullType(String)); + _parameters['sinceIds'] = __sinceIds; + + var __limit = _$jsonSerializers.serialize(limit, specifiedType: const FullType(int)); + __limit ??= 7; + _i5.checkNumber( + __limit, + 'limit', + maximum: 30, + minimum: 1, + ); + _parameters['limit'] = __limit; + + var __widgets = _$jsonSerializers.serialize(widgets, specifiedType: const FullType(BuiltList, [FullType(String)])); + __widgets ??= const []; + _parameters['widgets%5B%5D'] = __widgets; + + final _path = _i6.UriTemplate('/ocs/v2.php/apps/dashboard/api/v2/widget-items{?sinceIds*,limit*,widgets%5B%5D*}') + .expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); _request.headers['Accept'] = 'application/json'; @@ -292,20 +332,6 @@ class $DashboardApiClient { __oCSAPIRequest ??= true; _request.headers['OCS-APIRequest'] = const _i5.HeaderEncoder().convert(__oCSAPIRequest); - _request.headers['Content-Type'] = 'application/json'; - _request.body = $body != null - ? json.encode( - _$jsonSerializers.serialize( - $body, - specifiedType: const FullType(DashboardApiGetWidgetItemsV2RequestApplicationJson), - ), - ) - : json.encode( - _$jsonSerializers.serialize( - DashboardApiGetWidgetItemsV2RequestApplicationJson(), - specifiedType: const FullType(DashboardApiGetWidgetItemsV2RequestApplicationJson), - ), - ); return _request; } @@ -315,6 +341,9 @@ class $DashboardApiClient { /// Throws a `DynamiteApiException` if the API call does not return an expected status code. /// /// Parameters: + /// * [sinceIds] Array indexed by widget Ids, contains date/id from which we want the new items. + /// * [limit] Limit number of result items per widget, not more than 30 are allowed. Defaults to `7`. + /// * [widgets] Limit results to specific widgets. Defaults to `[]`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -324,12 +353,16 @@ class $DashboardApiClient { /// * [$getWidgetItemsV2_Request] for the request send by this method. /// * [$getWidgetItemsV2_Serializer] for a converter to parse the `Response` from an executed request. Future<_i1.DynamiteResponse> getWidgetItemsV2({ + String? sinceIds, + int? limit, + BuiltList? widgets, bool? oCSAPIRequest, - DashboardApiGetWidgetItemsV2RequestApplicationJson? $body, }) async { final _request = $getWidgetItemsV2_Request( + sinceIds: sinceIds, + limit: limit, + widgets: widgets, oCSAPIRequest: oCSAPIRequest, - $body: $body, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -651,104 +684,6 @@ abstract class DashboardApiGetWidgetsResponseApplicationJson } } -@BuiltValue(instantiable: false) -sealed class $DashboardApiGetWidgetItemsRequestApplicationJsonInterface { - static final _$sinceIds = _$jsonSerializers.deserialize( - const [], - specifiedType: const FullType(BuiltMap, [FullType(String), FullType(String)]), - )! as BuiltMap; - - static final _$limit = _$jsonSerializers.deserialize( - 7, - specifiedType: const FullType(int), - )! as int; - - static final _$widgets = _$jsonSerializers.deserialize( - const [], - specifiedType: const FullType(BuiltList, [FullType(String)]), - )! as BuiltList; - - /// Array indexed by widget Ids, contains date/id from which we want the new items. - BuiltMap get sinceIds; - - /// Limit number of result items per widget. - int get limit; - - /// Limit results to specific widgets. - BuiltList get widgets; - - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$DashboardApiGetWidgetItemsRequestApplicationJsonInterfaceBuilder]. - $DashboardApiGetWidgetItemsRequestApplicationJsonInterface rebuild( - void Function($DashboardApiGetWidgetItemsRequestApplicationJsonInterfaceBuilder) updates, - ); - - /// Converts the instance to a builder [$DashboardApiGetWidgetItemsRequestApplicationJsonInterfaceBuilder]. - $DashboardApiGetWidgetItemsRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($DashboardApiGetWidgetItemsRequestApplicationJsonInterfaceBuilder b) { - b.sinceIds.replace(_$sinceIds); - b.limit = _$limit; - b.widgets.replace(_$widgets); - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate($DashboardApiGetWidgetItemsRequestApplicationJsonInterfaceBuilder b) { - _i5.checkNumber( - b.limit, - 'limit', - maximum: 30, - minimum: 1, - ); - } -} - -abstract class DashboardApiGetWidgetItemsRequestApplicationJson - implements - $DashboardApiGetWidgetItemsRequestApplicationJsonInterface, - Built { - /// Creates a new DashboardApiGetWidgetItemsRequestApplicationJson object using the builder pattern. - factory DashboardApiGetWidgetItemsRequestApplicationJson([ - void Function(DashboardApiGetWidgetItemsRequestApplicationJsonBuilder)? b, - ]) = _$DashboardApiGetWidgetItemsRequestApplicationJson; - - // coverage:ignore-start - const DashboardApiGetWidgetItemsRequestApplicationJson._(); - // coverage:ignore-end - - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory DashboardApiGetWidgetItemsRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end - - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end - - /// Serializer for DashboardApiGetWidgetItemsRequestApplicationJson. - static Serializer get serializer => - _$dashboardApiGetWidgetItemsRequestApplicationJsonSerializer; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults(DashboardApiGetWidgetItemsRequestApplicationJsonBuilder b) { - $DashboardApiGetWidgetItemsRequestApplicationJsonInterface._defaults(b); - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate(DashboardApiGetWidgetItemsRequestApplicationJsonBuilder b) { - $DashboardApiGetWidgetItemsRequestApplicationJsonInterface._validate(b); - } -} - @BuiltValue(instantiable: false) sealed class $WidgetItemInterface { String get subtitle; @@ -937,104 +872,6 @@ abstract class DashboardApiGetWidgetItemsResponseApplicationJson } } -@BuiltValue(instantiable: false) -sealed class $DashboardApiGetWidgetItemsV2RequestApplicationJsonInterface { - static final _$sinceIds = _$jsonSerializers.deserialize( - const [], - specifiedType: const FullType(BuiltMap, [FullType(String), FullType(String)]), - )! as BuiltMap; - - static final _$limit = _$jsonSerializers.deserialize( - 7, - specifiedType: const FullType(int), - )! as int; - - static final _$widgets = _$jsonSerializers.deserialize( - const [], - specifiedType: const FullType(BuiltList, [FullType(String)]), - )! as BuiltList; - - /// Array indexed by widget Ids, contains date/id from which we want the new items. - BuiltMap get sinceIds; - - /// Limit number of result items per widget, not more than 30 are allowed. - int get limit; - - /// Limit results to specific widgets. - BuiltList get widgets; - - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$DashboardApiGetWidgetItemsV2RequestApplicationJsonInterfaceBuilder]. - $DashboardApiGetWidgetItemsV2RequestApplicationJsonInterface rebuild( - void Function($DashboardApiGetWidgetItemsV2RequestApplicationJsonInterfaceBuilder) updates, - ); - - /// Converts the instance to a builder [$DashboardApiGetWidgetItemsV2RequestApplicationJsonInterfaceBuilder]. - $DashboardApiGetWidgetItemsV2RequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($DashboardApiGetWidgetItemsV2RequestApplicationJsonInterfaceBuilder b) { - b.sinceIds.replace(_$sinceIds); - b.limit = _$limit; - b.widgets.replace(_$widgets); - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate($DashboardApiGetWidgetItemsV2RequestApplicationJsonInterfaceBuilder b) { - _i5.checkNumber( - b.limit, - 'limit', - maximum: 30, - minimum: 1, - ); - } -} - -abstract class DashboardApiGetWidgetItemsV2RequestApplicationJson - implements - $DashboardApiGetWidgetItemsV2RequestApplicationJsonInterface, - Built { - /// Creates a new DashboardApiGetWidgetItemsV2RequestApplicationJson object using the builder pattern. - factory DashboardApiGetWidgetItemsV2RequestApplicationJson([ - void Function(DashboardApiGetWidgetItemsV2RequestApplicationJsonBuilder)? b, - ]) = _$DashboardApiGetWidgetItemsV2RequestApplicationJson; - - // coverage:ignore-start - const DashboardApiGetWidgetItemsV2RequestApplicationJson._(); - // coverage:ignore-end - - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory DashboardApiGetWidgetItemsV2RequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end - - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end - - /// Serializer for DashboardApiGetWidgetItemsV2RequestApplicationJson. - static Serializer get serializer => - _$dashboardApiGetWidgetItemsV2RequestApplicationJsonSerializer; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults(DashboardApiGetWidgetItemsV2RequestApplicationJsonBuilder b) { - $DashboardApiGetWidgetItemsV2RequestApplicationJsonInterface._defaults(b); - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate(DashboardApiGetWidgetItemsV2RequestApplicationJsonBuilder b) { - $DashboardApiGetWidgetItemsV2RequestApplicationJsonInterface._validate(b); - } -} - @BuiltValue(instantiable: false) sealed class $WidgetItemsInterface { BuiltList get items; @@ -1250,15 +1087,6 @@ final Serializers _$serializers = (Serializers().toBuilder() const FullType(BuiltMap, [FullType(String), FullType(Widget)]), MapBuilder.new, ) - ..addBuilderFactory( - const FullType(DashboardApiGetWidgetItemsRequestApplicationJson), - DashboardApiGetWidgetItemsRequestApplicationJsonBuilder.new, - ) - ..add(DashboardApiGetWidgetItemsRequestApplicationJson.serializer) - ..addBuilderFactory( - const FullType(BuiltMap, [FullType(String), FullType(String)]), - MapBuilder.new, - ) ..addBuilderFactory(const FullType(BuiltList, [FullType(String)]), ListBuilder.new) ..addBuilderFactory( const FullType(DashboardApiGetWidgetItemsResponseApplicationJson), @@ -1280,11 +1108,6 @@ final Serializers _$serializers = (Serializers().toBuilder() ]), MapBuilder>.new, ) - ..addBuilderFactory( - const FullType(DashboardApiGetWidgetItemsV2RequestApplicationJson), - DashboardApiGetWidgetItemsV2RequestApplicationJsonBuilder.new, - ) - ..add(DashboardApiGetWidgetItemsV2RequestApplicationJson.serializer) ..addBuilderFactory( const FullType(DashboardApiGetWidgetItemsV2ResponseApplicationJson), DashboardApiGetWidgetItemsV2ResponseApplicationJsonBuilder.new, @@ -1310,9 +1133,9 @@ final Serializers _$serializers = (Serializers().toBuilder() @_i2.visibleForTesting final Serializers $jsonSerializers = _$jsonSerializers; final Serializers _$jsonSerializers = (_$serializers.toBuilder() - ..add(_i6.DynamiteDoubleSerializer()) - ..addPlugin(_i7.StandardJsonPlugin()) - ..addPlugin(const _i6.HeaderPlugin()) - ..addPlugin(const _i6.ContentStringPlugin())) + ..add(_i7.DynamiteDoubleSerializer()) + ..addPlugin(_i8.StandardJsonPlugin()) + ..addPlugin(const _i7.HeaderPlugin()) + ..addPlugin(const _i7.ContentStringPlugin())) .build(); // coverage:ignore-end diff --git a/packages/nextcloud/lib/src/api/dashboard/dashboard.openapi.g.dart b/packages/nextcloud/lib/src/api/dashboard/dashboard.openapi.g.dart index b5285fc9e0b..49ce068f25b 100644 --- a/packages/nextcloud/lib/src/api/dashboard/dashboard.openapi.g.dart +++ b/packages/nextcloud/lib/src/api/dashboard/dashboard.openapi.g.dart @@ -14,9 +14,6 @@ Serializer _$DashboardApiGetWidgetsResponseApplicationJson_OcsSerializer(); Serializer _$dashboardApiGetWidgetsResponseApplicationJsonSerializer = _$DashboardApiGetWidgetsResponseApplicationJsonSerializer(); -Serializer - _$dashboardApiGetWidgetItemsRequestApplicationJsonSerializer = - _$DashboardApiGetWidgetItemsRequestApplicationJsonSerializer(); Serializer _$widgetItemSerializer = _$WidgetItemSerializer(); Serializer _$dashboardApiGetWidgetItemsResponseApplicationJsonOcsSerializer = @@ -24,9 +21,6 @@ Serializer Serializer _$dashboardApiGetWidgetItemsResponseApplicationJsonSerializer = _$DashboardApiGetWidgetItemsResponseApplicationJsonSerializer(); -Serializer - _$dashboardApiGetWidgetItemsV2RequestApplicationJsonSerializer = - _$DashboardApiGetWidgetItemsV2RequestApplicationJsonSerializer(); Serializer _$widgetItemsSerializer = _$WidgetItemsSerializer(); Serializer _$dashboardApiGetWidgetItemsV2ResponseApplicationJsonOcsSerializer = @@ -338,61 +332,6 @@ class _$DashboardApiGetWidgetsResponseApplicationJsonSerializer } } -class _$DashboardApiGetWidgetItemsRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - DashboardApiGetWidgetItemsRequestApplicationJson, - _$DashboardApiGetWidgetItemsRequestApplicationJson - ]; - @override - final String wireName = 'DashboardApiGetWidgetItemsRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, DashboardApiGetWidgetItemsRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'sinceIds', - serializers.serialize(object.sinceIds, - specifiedType: const FullType(BuiltMap, [FullType(String), FullType(String)])), - 'limit', - serializers.serialize(object.limit, specifiedType: const FullType(int)), - 'widgets', - serializers.serialize(object.widgets, specifiedType: const FullType(BuiltList, [FullType(String)])), - ]; - - return result; - } - - @override - DashboardApiGetWidgetItemsRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = DashboardApiGetWidgetItemsRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'sinceIds': - result.sinceIds.replace(serializers.deserialize(value, - specifiedType: const FullType(BuiltMap, [FullType(String), FullType(String)]))!); - break; - case 'limit': - result.limit = serializers.deserialize(value, specifiedType: const FullType(int))! as int; - break; - case 'widgets': - result.widgets.replace(serializers.deserialize(value, - specifiedType: const FullType(BuiltList, [FullType(String)]))! as BuiltList); - break; - } - } - - return result.build(); - } -} - class _$WidgetItemSerializer implements StructuredSerializer { @override final Iterable types = const [WidgetItem, _$WidgetItem]; @@ -557,61 +496,6 @@ class _$DashboardApiGetWidgetItemsResponseApplicationJsonSerializer } } -class _$DashboardApiGetWidgetItemsV2RequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - DashboardApiGetWidgetItemsV2RequestApplicationJson, - _$DashboardApiGetWidgetItemsV2RequestApplicationJson - ]; - @override - final String wireName = 'DashboardApiGetWidgetItemsV2RequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, DashboardApiGetWidgetItemsV2RequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'sinceIds', - serializers.serialize(object.sinceIds, - specifiedType: const FullType(BuiltMap, [FullType(String), FullType(String)])), - 'limit', - serializers.serialize(object.limit, specifiedType: const FullType(int)), - 'widgets', - serializers.serialize(object.widgets, specifiedType: const FullType(BuiltList, [FullType(String)])), - ]; - - return result; - } - - @override - DashboardApiGetWidgetItemsV2RequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = DashboardApiGetWidgetItemsV2RequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'sinceIds': - result.sinceIds.replace(serializers.deserialize(value, - specifiedType: const FullType(BuiltMap, [FullType(String), FullType(String)]))!); - break; - case 'limit': - result.limit = serializers.deserialize(value, specifiedType: const FullType(int))! as int; - break; - case 'widgets': - result.widgets.replace(serializers.deserialize(value, - specifiedType: const FullType(BuiltList, [FullType(String)]))! as BuiltList); - break; - } - } - - return result.build(); - } -} - class _$WidgetItemsSerializer implements StructuredSerializer { @override final Iterable types = const [WidgetItems, _$WidgetItems]; @@ -1502,154 +1386,6 @@ class DashboardApiGetWidgetsResponseApplicationJsonBuilder } } -abstract mixin class $DashboardApiGetWidgetItemsRequestApplicationJsonInterfaceBuilder { - void replace($DashboardApiGetWidgetItemsRequestApplicationJsonInterface other); - void update(void Function($DashboardApiGetWidgetItemsRequestApplicationJsonInterfaceBuilder) updates); - MapBuilder get sinceIds; - set sinceIds(MapBuilder? sinceIds); - - int? get limit; - set limit(int? limit); - - ListBuilder get widgets; - set widgets(ListBuilder? widgets); -} - -class _$DashboardApiGetWidgetItemsRequestApplicationJson extends DashboardApiGetWidgetItemsRequestApplicationJson { - @override - final BuiltMap sinceIds; - @override - final int limit; - @override - final BuiltList widgets; - - factory _$DashboardApiGetWidgetItemsRequestApplicationJson( - [void Function(DashboardApiGetWidgetItemsRequestApplicationJsonBuilder)? updates]) => - (DashboardApiGetWidgetItemsRequestApplicationJsonBuilder()..update(updates))._build(); - - _$DashboardApiGetWidgetItemsRequestApplicationJson._( - {required this.sinceIds, required this.limit, required this.widgets}) - : super._() { - BuiltValueNullFieldError.checkNotNull(sinceIds, r'DashboardApiGetWidgetItemsRequestApplicationJson', 'sinceIds'); - BuiltValueNullFieldError.checkNotNull(limit, r'DashboardApiGetWidgetItemsRequestApplicationJson', 'limit'); - BuiltValueNullFieldError.checkNotNull(widgets, r'DashboardApiGetWidgetItemsRequestApplicationJson', 'widgets'); - } - - @override - DashboardApiGetWidgetItemsRequestApplicationJson rebuild( - void Function(DashboardApiGetWidgetItemsRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - DashboardApiGetWidgetItemsRequestApplicationJsonBuilder toBuilder() => - DashboardApiGetWidgetItemsRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is DashboardApiGetWidgetItemsRequestApplicationJson && - sinceIds == other.sinceIds && - limit == other.limit && - widgets == other.widgets; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, sinceIds.hashCode); - _$hash = $jc(_$hash, limit.hashCode); - _$hash = $jc(_$hash, widgets.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'DashboardApiGetWidgetItemsRequestApplicationJson') - ..add('sinceIds', sinceIds) - ..add('limit', limit) - ..add('widgets', widgets)) - .toString(); - } -} - -class DashboardApiGetWidgetItemsRequestApplicationJsonBuilder - implements - Builder, - $DashboardApiGetWidgetItemsRequestApplicationJsonInterfaceBuilder { - _$DashboardApiGetWidgetItemsRequestApplicationJson? _$v; - - MapBuilder? _sinceIds; - MapBuilder get sinceIds => _$this._sinceIds ??= MapBuilder(); - set sinceIds(covariant MapBuilder? sinceIds) => _$this._sinceIds = sinceIds; - - int? _limit; - int? get limit => _$this._limit; - set limit(covariant int? limit) => _$this._limit = limit; - - ListBuilder? _widgets; - ListBuilder get widgets => _$this._widgets ??= ListBuilder(); - set widgets(covariant ListBuilder? widgets) => _$this._widgets = widgets; - - DashboardApiGetWidgetItemsRequestApplicationJsonBuilder() { - DashboardApiGetWidgetItemsRequestApplicationJson._defaults(this); - } - - DashboardApiGetWidgetItemsRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _sinceIds = $v.sinceIds.toBuilder(); - _limit = $v.limit; - _widgets = $v.widgets.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(covariant DashboardApiGetWidgetItemsRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$DashboardApiGetWidgetItemsRequestApplicationJson; - } - - @override - void update(void Function(DashboardApiGetWidgetItemsRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - DashboardApiGetWidgetItemsRequestApplicationJson build() => _build(); - - _$DashboardApiGetWidgetItemsRequestApplicationJson _build() { - DashboardApiGetWidgetItemsRequestApplicationJson._validate(this); - _$DashboardApiGetWidgetItemsRequestApplicationJson _$result; - try { - _$result = _$v ?? - _$DashboardApiGetWidgetItemsRequestApplicationJson._( - sinceIds: sinceIds.build(), - limit: BuiltValueNullFieldError.checkNotNull( - limit, r'DashboardApiGetWidgetItemsRequestApplicationJson', 'limit'), - widgets: widgets.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'sinceIds'; - sinceIds.build(); - - _$failedField = 'widgets'; - widgets.build(); - } catch (e) { - throw BuiltValueNestedFieldError( - r'DashboardApiGetWidgetItemsRequestApplicationJson', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - abstract mixin class $WidgetItemInterfaceBuilder { void replace($WidgetItemInterface other); void update(void Function($WidgetItemInterfaceBuilder) updates); @@ -2057,154 +1793,6 @@ class DashboardApiGetWidgetItemsResponseApplicationJsonBuilder } } -abstract mixin class $DashboardApiGetWidgetItemsV2RequestApplicationJsonInterfaceBuilder { - void replace($DashboardApiGetWidgetItemsV2RequestApplicationJsonInterface other); - void update(void Function($DashboardApiGetWidgetItemsV2RequestApplicationJsonInterfaceBuilder) updates); - MapBuilder get sinceIds; - set sinceIds(MapBuilder? sinceIds); - - int? get limit; - set limit(int? limit); - - ListBuilder get widgets; - set widgets(ListBuilder? widgets); -} - -class _$DashboardApiGetWidgetItemsV2RequestApplicationJson extends DashboardApiGetWidgetItemsV2RequestApplicationJson { - @override - final BuiltMap sinceIds; - @override - final int limit; - @override - final BuiltList widgets; - - factory _$DashboardApiGetWidgetItemsV2RequestApplicationJson( - [void Function(DashboardApiGetWidgetItemsV2RequestApplicationJsonBuilder)? updates]) => - (DashboardApiGetWidgetItemsV2RequestApplicationJsonBuilder()..update(updates))._build(); - - _$DashboardApiGetWidgetItemsV2RequestApplicationJson._( - {required this.sinceIds, required this.limit, required this.widgets}) - : super._() { - BuiltValueNullFieldError.checkNotNull(sinceIds, r'DashboardApiGetWidgetItemsV2RequestApplicationJson', 'sinceIds'); - BuiltValueNullFieldError.checkNotNull(limit, r'DashboardApiGetWidgetItemsV2RequestApplicationJson', 'limit'); - BuiltValueNullFieldError.checkNotNull(widgets, r'DashboardApiGetWidgetItemsV2RequestApplicationJson', 'widgets'); - } - - @override - DashboardApiGetWidgetItemsV2RequestApplicationJson rebuild( - void Function(DashboardApiGetWidgetItemsV2RequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - DashboardApiGetWidgetItemsV2RequestApplicationJsonBuilder toBuilder() => - DashboardApiGetWidgetItemsV2RequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is DashboardApiGetWidgetItemsV2RequestApplicationJson && - sinceIds == other.sinceIds && - limit == other.limit && - widgets == other.widgets; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, sinceIds.hashCode); - _$hash = $jc(_$hash, limit.hashCode); - _$hash = $jc(_$hash, widgets.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'DashboardApiGetWidgetItemsV2RequestApplicationJson') - ..add('sinceIds', sinceIds) - ..add('limit', limit) - ..add('widgets', widgets)) - .toString(); - } -} - -class DashboardApiGetWidgetItemsV2RequestApplicationJsonBuilder - implements - Builder, - $DashboardApiGetWidgetItemsV2RequestApplicationJsonInterfaceBuilder { - _$DashboardApiGetWidgetItemsV2RequestApplicationJson? _$v; - - MapBuilder? _sinceIds; - MapBuilder get sinceIds => _$this._sinceIds ??= MapBuilder(); - set sinceIds(covariant MapBuilder? sinceIds) => _$this._sinceIds = sinceIds; - - int? _limit; - int? get limit => _$this._limit; - set limit(covariant int? limit) => _$this._limit = limit; - - ListBuilder? _widgets; - ListBuilder get widgets => _$this._widgets ??= ListBuilder(); - set widgets(covariant ListBuilder? widgets) => _$this._widgets = widgets; - - DashboardApiGetWidgetItemsV2RequestApplicationJsonBuilder() { - DashboardApiGetWidgetItemsV2RequestApplicationJson._defaults(this); - } - - DashboardApiGetWidgetItemsV2RequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _sinceIds = $v.sinceIds.toBuilder(); - _limit = $v.limit; - _widgets = $v.widgets.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(covariant DashboardApiGetWidgetItemsV2RequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$DashboardApiGetWidgetItemsV2RequestApplicationJson; - } - - @override - void update(void Function(DashboardApiGetWidgetItemsV2RequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - DashboardApiGetWidgetItemsV2RequestApplicationJson build() => _build(); - - _$DashboardApiGetWidgetItemsV2RequestApplicationJson _build() { - DashboardApiGetWidgetItemsV2RequestApplicationJson._validate(this); - _$DashboardApiGetWidgetItemsV2RequestApplicationJson _$result; - try { - _$result = _$v ?? - _$DashboardApiGetWidgetItemsV2RequestApplicationJson._( - sinceIds: sinceIds.build(), - limit: BuiltValueNullFieldError.checkNotNull( - limit, r'DashboardApiGetWidgetItemsV2RequestApplicationJson', 'limit'), - widgets: widgets.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'sinceIds'; - sinceIds.build(); - - _$failedField = 'widgets'; - widgets.build(); - } catch (e) { - throw BuiltValueNestedFieldError( - r'DashboardApiGetWidgetItemsV2RequestApplicationJson', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - abstract mixin class $WidgetItemsInterfaceBuilder { void replace($WidgetItemsInterface other); void update(void Function($WidgetItemsInterfaceBuilder) updates); diff --git a/packages/nextcloud/lib/src/api/dashboard/dashboard.openapi.json b/packages/nextcloud/lib/src/api/dashboard/dashboard.openapi.json index ea8792bfec8..4b788a16854 100644 --- a/packages/nextcloud/lib/src/api/dashboard/dashboard.openapi.json +++ b/packages/nextcloud/lib/src/api/dashboard/dashboard.openapi.json @@ -252,43 +252,39 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "sinceIds": { - "type": "object", - "default": [], - "description": "Array indexed by widget Ids, contains date/id from which we want the new items", - "additionalProperties": { - "type": "string" - } - }, - "limit": { - "type": "integer", - "format": "int64", - "default": 7, - "description": "Limit number of result items per widget", - "minimum": 1, - "maximum": 30 - }, - "widgets": { - "type": "array", - "default": [], - "description": "Limit results to specific widgets", - "items": { - "type": "string" - } - } - } + "parameters": [ + { + "name": "sinceIds", + "in": "query", + "description": "Array indexed by widget Ids, contains date/id from which we want the new items", + "schema": { + "type": "string" + } + }, + { + "name": "limit", + "in": "query", + "description": "Limit number of result items per widget", + "schema": { + "type": "integer", + "format": "int64", + "default": 7, + "minimum": 1, + "maximum": 30 + } + }, + { + "name": "widgets[]", + "in": "query", + "description": "Limit results to specific widgets", + "schema": { + "type": "array", + "default": [], + "items": { + "type": "string" } } - } - }, - "parameters": [ + }, { "name": "OCS-APIRequest", "in": "header", @@ -355,43 +351,39 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "sinceIds": { - "type": "object", - "default": [], - "description": "Array indexed by widget Ids, contains date/id from which we want the new items", - "additionalProperties": { - "type": "string" - } - }, - "limit": { - "type": "integer", - "format": "int64", - "default": 7, - "description": "Limit number of result items per widget, not more than 30 are allowed", - "minimum": 1, - "maximum": 30 - }, - "widgets": { - "type": "array", - "default": [], - "description": "Limit results to specific widgets", - "items": { - "type": "string" - } - } - } + "parameters": [ + { + "name": "sinceIds", + "in": "query", + "description": "Array indexed by widget Ids, contains date/id from which we want the new items", + "schema": { + "type": "string" + } + }, + { + "name": "limit", + "in": "query", + "description": "Limit number of result items per widget, not more than 30 are allowed", + "schema": { + "type": "integer", + "format": "int64", + "default": 7, + "minimum": 1, + "maximum": 30 + } + }, + { + "name": "widgets[]", + "in": "query", + "description": "Limit results to specific widgets", + "schema": { + "type": "array", + "default": [], + "items": { + "type": "string" } } - } - }, - "parameters": [ + }, { "name": "OCS-APIRequest", "in": "header", diff --git a/packages/nextcloud/lib/src/api/files_sharing/files_sharing.openapi.dart b/packages/nextcloud/lib/src/api/files_sharing/files_sharing.openapi.dart index 5215714860e..e0ad1645e0b 100644 --- a/packages/nextcloud/lib/src/api/files_sharing/files_sharing.openapi.dart +++ b/packages/nextcloud/lib/src/api/files_sharing/files_sharing.openapi.dart @@ -347,6 +347,10 @@ class $PublicPreviewClient { /// /// Parameters: /// * [token] Token of the share. + /// * [file] File in the share. Defaults to `""`. + /// * [x] Width of the preview. Defaults to `32`. + /// * [y] Height of the preview. Defaults to `32`. + /// * [a] Whether to not crop the preview. Defaults to `0`. /// /// Status codes: /// * 200: Preview returned @@ -360,13 +364,33 @@ class $PublicPreviewClient { @_i2.experimental _i3.Request $getPreview_Request({ required String token, - PublicPreviewGetPreviewRequestApplicationJson? $body, + String? file, + int? x, + int? y, + PublicPreviewGetPreviewA? a, }) { final _parameters = {}; final __token = _$jsonSerializers.serialize(token, specifiedType: const FullType(String)); _parameters['token'] = __token; - final _path = _i6.UriTemplate('/index.php/apps/files_sharing/publicpreview/{token}').expand(_parameters); + var __file = _$jsonSerializers.serialize(file, specifiedType: const FullType(String)); + __file ??= ''; + _parameters['file'] = __file; + + var __x = _$jsonSerializers.serialize(x, specifiedType: const FullType(int)); + __x ??= 32; + _parameters['x'] = __x; + + var __y = _$jsonSerializers.serialize(y, specifiedType: const FullType(int)); + __y ??= 32; + _parameters['y'] = __y; + + var __a = _$jsonSerializers.serialize(a, specifiedType: const FullType(PublicPreviewGetPreviewA)); + __a ??= 0; + _parameters['a'] = __a; + + final _path = + _i6.UriTemplate('/index.php/apps/files_sharing/publicpreview/{token}{?file*,x*,y*,a*}').expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); _request.headers['Accept'] = '*/*'; @@ -385,20 +409,6 @@ class $PublicPreviewClient { } // coverage:ignore-end - _request.headers['Content-Type'] = 'application/json'; - _request.body = $body != null - ? json.encode( - _$jsonSerializers.serialize( - $body, - specifiedType: const FullType(PublicPreviewGetPreviewRequestApplicationJson), - ), - ) - : json.encode( - _$jsonSerializers.serialize( - PublicPreviewGetPreviewRequestApplicationJson(), - specifiedType: const FullType(PublicPreviewGetPreviewRequestApplicationJson), - ), - ); return _request; } @@ -409,6 +419,10 @@ class $PublicPreviewClient { /// /// Parameters: /// * [token] Token of the share. + /// * [file] File in the share. Defaults to `""`. + /// * [x] Width of the preview. Defaults to `32`. + /// * [y] Height of the preview. Defaults to `32`. + /// * [a] Whether to not crop the preview. Defaults to `0`. /// /// Status codes: /// * 200: Preview returned @@ -421,11 +435,17 @@ class $PublicPreviewClient { /// * [$getPreview_Serializer] for a converter to parse the `Response` from an executed request. Future<_i1.DynamiteResponse> getPreview({ required String token, - PublicPreviewGetPreviewRequestApplicationJson? $body, + String? file, + int? x, + int? y, + PublicPreviewGetPreviewA? a, }) async { final _request = $getPreview_Request( token: token, - $body: $body, + file: file, + x: x, + y: y, + a: a, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -1082,6 +1102,11 @@ class $ShareapiClient { /// Throws a `DynamiteApiException` if the API call does not return an expected status code. /// /// Parameters: + /// * [sharedWithMe] Only get shares with the current user. Defaults to `"false"`. + /// * [reshares] Only get shares by the current user and reshares. Defaults to `"false"`. + /// * [subfiles] Only get all shares in a folder. Defaults to `"false"`. + /// * [path] Get shares for a specific path. Defaults to `""`. + /// * [includeTags] Include tags in the share. Defaults to `"false"`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -1093,10 +1118,37 @@ class $ShareapiClient { /// * [$getShares_Serializer] for a converter to parse the `Response` from an executed this request. @_i2.experimental _i3.Request $getShares_Request({ + String? sharedWithMe, + String? reshares, + String? subfiles, + String? path, + String? includeTags, bool? oCSAPIRequest, - ShareapiGetSharesRequestApplicationJson? $body, }) { - const _path = '/ocs/v2.php/apps/files_sharing/api/v1/shares'; + final _parameters = {}; + var __sharedWithMe = _$jsonSerializers.serialize(sharedWithMe, specifiedType: const FullType(String)); + __sharedWithMe ??= 'false'; + _parameters['shared_with_me'] = __sharedWithMe; + + var __reshares = _$jsonSerializers.serialize(reshares, specifiedType: const FullType(String)); + __reshares ??= 'false'; + _parameters['reshares'] = __reshares; + + var __subfiles = _$jsonSerializers.serialize(subfiles, specifiedType: const FullType(String)); + __subfiles ??= 'false'; + _parameters['subfiles'] = __subfiles; + + var __path = _$jsonSerializers.serialize(path, specifiedType: const FullType(String)); + __path ??= ''; + _parameters['path'] = __path; + + var __includeTags = _$jsonSerializers.serialize(includeTags, specifiedType: const FullType(String)); + __includeTags ??= 'false'; + _parameters['include_tags'] = __includeTags; + + final _path = _i6.UriTemplate( + '/ocs/v2.php/apps/files_sharing/api/v1/shares{?shared_with_me*,reshares*,subfiles*,path*,include_tags*}', + ).expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); _request.headers['Accept'] = 'application/json'; @@ -1121,17 +1173,6 @@ class $ShareapiClient { __oCSAPIRequest ??= true; _request.headers['OCS-APIRequest'] = const _i5.HeaderEncoder().convert(__oCSAPIRequest); - _request.headers['Content-Type'] = 'application/json'; - _request.body = $body != null - ? json.encode( - _$jsonSerializers.serialize($body, specifiedType: const FullType(ShareapiGetSharesRequestApplicationJson)), - ) - : json.encode( - _$jsonSerializers.serialize( - ShareapiGetSharesRequestApplicationJson(), - specifiedType: const FullType(ShareapiGetSharesRequestApplicationJson), - ), - ); return _request; } @@ -1141,6 +1182,11 @@ class $ShareapiClient { /// Throws a `DynamiteApiException` if the API call does not return an expected status code. /// /// Parameters: + /// * [sharedWithMe] Only get shares with the current user. Defaults to `"false"`. + /// * [reshares] Only get shares by the current user and reshares. Defaults to `"false"`. + /// * [subfiles] Only get all shares in a folder. Defaults to `"false"`. + /// * [path] Get shares for a specific path. Defaults to `""`. + /// * [includeTags] Include tags in the share. Defaults to `"false"`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -1151,12 +1197,20 @@ class $ShareapiClient { /// * [$getShares_Request] for the request send by this method. /// * [$getShares_Serializer] for a converter to parse the `Response` from an executed request. Future<_i1.DynamiteResponse> getShares({ + String? sharedWithMe, + String? reshares, + String? subfiles, + String? path, + String? includeTags, bool? oCSAPIRequest, - ShareapiGetSharesRequestApplicationJson? $body, }) async { final _request = $getShares_Request( + sharedWithMe: sharedWithMe, + reshares: reshares, + subfiles: subfiles, + path: path, + includeTags: includeTags, oCSAPIRequest: oCSAPIRequest, - $body: $body, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -1287,6 +1341,7 @@ class $ShareapiClient { /// Throws a `DynamiteApiException` if the API call does not return an expected status code. /// /// Parameters: + /// * [path] Path all shares will be relative to. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -1299,10 +1354,14 @@ class $ShareapiClient { /// * [$getInheritedShares_Serializer] for a converter to parse the `Response` from an executed this request. @_i2.experimental _i3.Request $getInheritedShares_Request({ - required ShareapiGetInheritedSharesRequestApplicationJson $body, + required String path, bool? oCSAPIRequest, }) { - const _path = '/ocs/v2.php/apps/files_sharing/api/v1/shares/inherited'; + final _parameters = {}; + final __path = _$jsonSerializers.serialize(path, specifiedType: const FullType(String)); + _parameters['path'] = __path; + + final _path = _i6.UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/shares/inherited{?path*}').expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); _request.headers['Accept'] = 'application/json'; @@ -1327,13 +1386,6 @@ class $ShareapiClient { __oCSAPIRequest ??= true; _request.headers['OCS-APIRequest'] = const _i5.HeaderEncoder().convert(__oCSAPIRequest); - _request.headers['Content-Type'] = 'application/json'; - _request.body = json.encode( - _$jsonSerializers.serialize( - $body, - specifiedType: const FullType(ShareapiGetInheritedSharesRequestApplicationJson), - ), - ); return _request; } @@ -1343,6 +1395,7 @@ class $ShareapiClient { /// Throws a `DynamiteApiException` if the API call does not return an expected status code. /// /// Parameters: + /// * [path] Path all shares will be relative to. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -1354,12 +1407,12 @@ class $ShareapiClient { /// * [$getInheritedShares_Request] for the request send by this method. /// * [$getInheritedShares_Serializer] for a converter to parse the `Response` from an executed request. Future<_i1.DynamiteResponse> getInheritedShares({ - required ShareapiGetInheritedSharesRequestApplicationJson $body, + required String path, bool? oCSAPIRequest, }) async { final _request = $getInheritedShares_Request( + path: path, oCSAPIRequest: oCSAPIRequest, - $body: $body, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -1467,6 +1520,7 @@ class $ShareapiClient { /// /// Parameters: /// * [id] ID of the share. + /// * [includeTags] Include tags in the share. Defaults to `0`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -1479,14 +1533,20 @@ class $ShareapiClient { @_i2.experimental _i3.Request $getShare_Request({ required String id, + ShareapiGetShareIncludeTags? includeTags, bool? oCSAPIRequest, - ShareapiGetShareRequestApplicationJson? $body, }) { final _parameters = {}; final __id = _$jsonSerializers.serialize(id, specifiedType: const FullType(String)); _parameters['id'] = __id; - final _path = _i6.UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/shares/{id}').expand(_parameters); + var __includeTags = + _$jsonSerializers.serialize(includeTags, specifiedType: const FullType(ShareapiGetShareIncludeTags)); + __includeTags ??= 0; + _parameters['include_tags'] = __includeTags; + + final _path = + _i6.UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/shares/{id}{?include_tags*}').expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); _request.headers['Accept'] = 'application/json'; @@ -1511,17 +1571,6 @@ class $ShareapiClient { __oCSAPIRequest ??= true; _request.headers['OCS-APIRequest'] = const _i5.HeaderEncoder().convert(__oCSAPIRequest); - _request.headers['Content-Type'] = 'application/json'; - _request.body = $body != null - ? json.encode( - _$jsonSerializers.serialize($body, specifiedType: const FullType(ShareapiGetShareRequestApplicationJson)), - ) - : json.encode( - _$jsonSerializers.serialize( - ShareapiGetShareRequestApplicationJson(), - specifiedType: const FullType(ShareapiGetShareRequestApplicationJson), - ), - ); return _request; } @@ -1532,6 +1581,7 @@ class $ShareapiClient { /// /// Parameters: /// * [id] ID of the share. + /// * [includeTags] Include tags in the share. Defaults to `0`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -1543,13 +1593,13 @@ class $ShareapiClient { /// * [$getShare_Serializer] for a converter to parse the `Response` from an executed request. Future<_i1.DynamiteResponse> getShare({ required String id, + ShareapiGetShareIncludeTags? includeTags, bool? oCSAPIRequest, - ShareapiGetShareRequestApplicationJson? $body, }) async { final _request = $getShare_Request( id: id, + includeTags: includeTags, oCSAPIRequest: oCSAPIRequest, - $body: $body, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -1888,6 +1938,12 @@ class $ShareesapiClient { /// Throws a `DynamiteApiException` if the API call does not return an expected status code. /// /// Parameters: + /// * [search] Text to search for. Defaults to `""`. + /// * [itemType] Limit to specific item types. + /// * [page] Page offset for searching. Defaults to `1`. + /// * [perPage] Limit amount of search results per page. Defaults to `200`. + /// * [shareType] Limit to specific share types. + /// * [lookup] If a global lookup should be performed too. Defaults to `0`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -1899,10 +1955,41 @@ class $ShareesapiClient { /// * [$search_Serializer] for a converter to parse the `Response` from an executed this request. @_i2.experimental _i3.Request $search_Request({ + String? search, + String? itemType, + int? page, + int? perPage, + ShareesapiSearchShareType? shareType, + ShareesapiSearchLookup? lookup, bool? oCSAPIRequest, - ShareesapiSearchRequestApplicationJson? $body, }) { - const _path = '/ocs/v2.php/apps/files_sharing/api/v1/sharees'; + final _parameters = {}; + var __search = _$jsonSerializers.serialize(search, specifiedType: const FullType(String)); + __search ??= ''; + _parameters['search'] = __search; + + final __itemType = _$jsonSerializers.serialize(itemType, specifiedType: const FullType(String)); + _parameters['itemType'] = __itemType; + + var __page = _$jsonSerializers.serialize(page, specifiedType: const FullType(int)); + __page ??= 1; + _parameters['page'] = __page; + + var __perPage = _$jsonSerializers.serialize(perPage, specifiedType: const FullType(int)); + __perPage ??= 200; + _parameters['perPage'] = __perPage; + + final __shareType = + _$jsonSerializers.serialize(shareType, specifiedType: const FullType(ShareesapiSearchShareType)); + _parameters['shareType'] = __shareType; + + var __lookup = _$jsonSerializers.serialize(lookup, specifiedType: const FullType(ShareesapiSearchLookup)); + __lookup ??= 0; + _parameters['lookup'] = __lookup; + + final _path = _i6.UriTemplate( + '/ocs/v2.php/apps/files_sharing/api/v1/sharees{?search*,itemType*,page*,perPage*,shareType*,lookup*}', + ).expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); _request.headers['Accept'] = 'application/json'; @@ -1927,17 +2014,6 @@ class $ShareesapiClient { __oCSAPIRequest ??= true; _request.headers['OCS-APIRequest'] = const _i5.HeaderEncoder().convert(__oCSAPIRequest); - _request.headers['Content-Type'] = 'application/json'; - _request.body = $body != null - ? json.encode( - _$jsonSerializers.serialize($body, specifiedType: const FullType(ShareesapiSearchRequestApplicationJson)), - ) - : json.encode( - _$jsonSerializers.serialize( - ShareesapiSearchRequestApplicationJson(), - specifiedType: const FullType(ShareesapiSearchRequestApplicationJson), - ), - ); return _request; } @@ -1947,6 +2023,12 @@ class $ShareesapiClient { /// Throws a `DynamiteApiException` if the API call does not return an expected status code. /// /// Parameters: + /// * [search] Text to search for. Defaults to `""`. + /// * [itemType] Limit to specific item types. + /// * [page] Page offset for searching. Defaults to `1`. + /// * [perPage] Limit amount of search results per page. Defaults to `200`. + /// * [shareType] Limit to specific share types. + /// * [lookup] If a global lookup should be performed too. Defaults to `0`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -1957,12 +2039,22 @@ class $ShareesapiClient { /// * [$search_Request] for the request send by this method. /// * [$search_Serializer] for a converter to parse the `Response` from an executed request. Future<_i1.DynamiteResponse> search({ + String? search, + String? itemType, + int? page, + int? perPage, + ShareesapiSearchShareType? shareType, + ShareesapiSearchLookup? lookup, bool? oCSAPIRequest, - ShareesapiSearchRequestApplicationJson? $body, }) async { final _request = $search_Request( + search: search, + itemType: itemType, + page: page, + perPage: perPage, + shareType: shareType, + lookup: lookup, oCSAPIRequest: oCSAPIRequest, - $body: $body, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -1989,6 +2081,8 @@ class $ShareesapiClient { /// Throws a `DynamiteApiException` if the API call does not return an expected status code. /// /// Parameters: + /// * [itemType] Limit to specific item types. + /// * [shareType] Limit to specific share types. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -1999,10 +2093,20 @@ class $ShareesapiClient { /// * [$findRecommended_Serializer] for a converter to parse the `Response` from an executed this request. @_i2.experimental _i3.Request $findRecommended_Request({ - required ShareesapiFindRecommendedRequestApplicationJson $body, + required String itemType, + ShareesapiFindRecommendedShareType? shareType, bool? oCSAPIRequest, }) { - const _path = '/ocs/v2.php/apps/files_sharing/api/v1/sharees_recommended'; + final _parameters = {}; + final __itemType = _$jsonSerializers.serialize(itemType, specifiedType: const FullType(String)); + _parameters['itemType'] = __itemType; + + final __shareType = + _$jsonSerializers.serialize(shareType, specifiedType: const FullType(ShareesapiFindRecommendedShareType)); + _parameters['shareType'] = __shareType; + + final _path = _i6.UriTemplate('/ocs/v2.php/apps/files_sharing/api/v1/sharees_recommended{?itemType*,shareType*}') + .expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); _request.headers['Accept'] = 'application/json'; @@ -2027,13 +2131,6 @@ class $ShareesapiClient { __oCSAPIRequest ??= true; _request.headers['OCS-APIRequest'] = const _i5.HeaderEncoder().convert(__oCSAPIRequest); - _request.headers['Content-Type'] = 'application/json'; - _request.body = json.encode( - _$jsonSerializers.serialize( - $body, - specifiedType: const FullType(ShareesapiFindRecommendedRequestApplicationJson), - ), - ); return _request; } @@ -2043,6 +2140,8 @@ class $ShareesapiClient { /// Throws a `DynamiteApiException` if the API call does not return an expected status code. /// /// Parameters: + /// * [itemType] Limit to specific item types. + /// * [shareType] Limit to specific share types. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -2052,12 +2151,14 @@ class $ShareesapiClient { /// * [$findRecommended_Request] for the request send by this method. /// * [$findRecommended_Serializer] for a converter to parse the `Response` from an executed request. Future<_i1.DynamiteResponse> findRecommended({ - required ShareesapiFindRecommendedRequestApplicationJson $body, + required String itemType, + ShareesapiFindRecommendedShareType? shareType, bool? oCSAPIRequest, }) async { final _request = $findRecommended_Request( + itemType: itemType, + shareType: shareType, oCSAPIRequest: oCSAPIRequest, - $body: $body, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -2467,103 +2568,67 @@ abstract class DeletedShareapiUndeleteResponseApplicationJson } } -@BuiltValue(instantiable: false) -sealed class $PublicPreviewGetPreviewRequestApplicationJsonInterface { - static final _$file = _$jsonSerializers.deserialize( - '', - specifiedType: const FullType(String), - )! as String; - - static final _$x = _$jsonSerializers.deserialize( - 32, - specifiedType: const FullType(int), - )! as int; - - static final _$y = _$jsonSerializers.deserialize( - 32, - specifiedType: const FullType(int), - )! as int; - - static final _$a = _$jsonSerializers.deserialize( - false, - specifiedType: const FullType(bool), - )! as bool; +class PublicPreviewGetPreviewA extends EnumClass { + const PublicPreviewGetPreviewA._(super.name); - /// File in the share. - String get file; - - /// Width of the preview. - int get x; + /// `0` + @BuiltValueEnumConst(wireName: '0') + static const PublicPreviewGetPreviewA $0 = _$publicPreviewGetPreviewA$0; - /// Height of the preview. - int get y; + /// `1` + @BuiltValueEnumConst(wireName: '1') + static const PublicPreviewGetPreviewA $1 = _$publicPreviewGetPreviewA$1; - /// Whether to not crop the preview. - bool get a; + /// Returns a set with all values this enum contains. + // coverage:ignore-start + static BuiltSet get values => _$publicPreviewGetPreviewAValues; + // coverage:ignore-end - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$PublicPreviewGetPreviewRequestApplicationJsonInterfaceBuilder]. - $PublicPreviewGetPreviewRequestApplicationJsonInterface rebuild( - void Function($PublicPreviewGetPreviewRequestApplicationJsonInterfaceBuilder) updates, - ); + /// Returns the enum value associated to the [name]. + static PublicPreviewGetPreviewA valueOf(String name) => _$valueOfPublicPreviewGetPreviewA(name); - /// Converts the instance to a builder [$PublicPreviewGetPreviewRequestApplicationJsonInterfaceBuilder]. - $PublicPreviewGetPreviewRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($PublicPreviewGetPreviewRequestApplicationJsonInterfaceBuilder b) { - b.file = _$file; - b.x = _$x; - b.y = _$y; - b.a = _$a; - } + /// Returns the serialized value of this enum value. + int get value => _$jsonSerializers.serializeWith(serializer, this)! as int; - @BuiltValueHook(finalizeBuilder: true) - static void _validate($PublicPreviewGetPreviewRequestApplicationJsonInterfaceBuilder b) {} + /// Serializer for PublicPreviewGetPreviewA. + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$PublicPreviewGetPreviewASerializer(); } -abstract class PublicPreviewGetPreviewRequestApplicationJson - implements - $PublicPreviewGetPreviewRequestApplicationJsonInterface, - Built { - /// Creates a new PublicPreviewGetPreviewRequestApplicationJson object using the builder pattern. - factory PublicPreviewGetPreviewRequestApplicationJson([ - void Function(PublicPreviewGetPreviewRequestApplicationJsonBuilder)? b, - ]) = _$PublicPreviewGetPreviewRequestApplicationJson; +class _$PublicPreviewGetPreviewASerializer implements PrimitiveSerializer { + const _$PublicPreviewGetPreviewASerializer(); - // coverage:ignore-start - const PublicPreviewGetPreviewRequestApplicationJson._(); - // coverage:ignore-end + static const Map _toWire = { + PublicPreviewGetPreviewA.$0: 0, + PublicPreviewGetPreviewA.$1: 1, + }; - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory PublicPreviewGetPreviewRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end + static const Map _fromWire = { + 0: PublicPreviewGetPreviewA.$0, + 1: PublicPreviewGetPreviewA.$1, + }; - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end + @override + Iterable get types => const [PublicPreviewGetPreviewA]; - /// Serializer for PublicPreviewGetPreviewRequestApplicationJson. - static Serializer get serializer => - _$publicPreviewGetPreviewRequestApplicationJsonSerializer; + @override + String get wireName => 'PublicPreviewGetPreviewA'; - @BuiltValueHook(initializeBuilder: true) - static void _defaults(PublicPreviewGetPreviewRequestApplicationJsonBuilder b) { - $PublicPreviewGetPreviewRequestApplicationJsonInterface._defaults(b); - } + @override + Object serialize( + Serializers serializers, + PublicPreviewGetPreviewA object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; - @BuiltValueHook(finalizeBuilder: true) - static void _validate(PublicPreviewGetPreviewRequestApplicationJsonBuilder b) { - $PublicPreviewGetPreviewRequestApplicationJsonInterface._validate(b); - } + @override + PublicPreviewGetPreviewA deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -3541,115 +3606,6 @@ abstract class ShareInfo implements $ShareInfoInterface, Built { - /// Creates a new ShareapiGetSharesRequestApplicationJson object using the builder pattern. - factory ShareapiGetSharesRequestApplicationJson([void Function(ShareapiGetSharesRequestApplicationJsonBuilder)? b]) = - _$ShareapiGetSharesRequestApplicationJson; - - // coverage:ignore-start - const ShareapiGetSharesRequestApplicationJson._(); - // coverage:ignore-end - - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory ShareapiGetSharesRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end - - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end - - /// Serializer for ShareapiGetSharesRequestApplicationJson. - static Serializer get serializer => - _$shareapiGetSharesRequestApplicationJsonSerializer; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults(ShareapiGetSharesRequestApplicationJsonBuilder b) { - $ShareapiGetSharesRequestApplicationJsonInterface._defaults(b); - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate(ShareapiGetSharesRequestApplicationJsonBuilder b) { - $ShareapiGetSharesRequestApplicationJsonInterface._validate(b); - } -} - class Share_HideDownload extends EnumClass { const Share_HideDownload._(super.name); @@ -4400,71 +4356,6 @@ abstract class ShareapiCreateShareResponseApplicationJson } } -@BuiltValue(instantiable: false) -sealed class $ShareapiGetInheritedSharesRequestApplicationJsonInterface { - /// Path all shares will be relative to. - String get path; - - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$ShareapiGetInheritedSharesRequestApplicationJsonInterfaceBuilder]. - $ShareapiGetInheritedSharesRequestApplicationJsonInterface rebuild( - void Function($ShareapiGetInheritedSharesRequestApplicationJsonInterfaceBuilder) updates, - ); - - /// Converts the instance to a builder [$ShareapiGetInheritedSharesRequestApplicationJsonInterfaceBuilder]. - $ShareapiGetInheritedSharesRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($ShareapiGetInheritedSharesRequestApplicationJsonInterfaceBuilder b) {} - @BuiltValueHook(finalizeBuilder: true) - static void _validate($ShareapiGetInheritedSharesRequestApplicationJsonInterfaceBuilder b) {} -} - -abstract class ShareapiGetInheritedSharesRequestApplicationJson - implements - $ShareapiGetInheritedSharesRequestApplicationJsonInterface, - Built { - /// Creates a new ShareapiGetInheritedSharesRequestApplicationJson object using the builder pattern. - factory ShareapiGetInheritedSharesRequestApplicationJson([ - void Function(ShareapiGetInheritedSharesRequestApplicationJsonBuilder)? b, - ]) = _$ShareapiGetInheritedSharesRequestApplicationJson; - - // coverage:ignore-start - const ShareapiGetInheritedSharesRequestApplicationJson._(); - // coverage:ignore-end - - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory ShareapiGetInheritedSharesRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end - - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end - - /// Serializer for ShareapiGetInheritedSharesRequestApplicationJson. - static Serializer get serializer => - _$shareapiGetInheritedSharesRequestApplicationJsonSerializer; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults(ShareapiGetInheritedSharesRequestApplicationJsonBuilder b) { - $ShareapiGetInheritedSharesRequestApplicationJsonInterface._defaults(b); - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate(ShareapiGetInheritedSharesRequestApplicationJsonBuilder b) { - $ShareapiGetInheritedSharesRequestApplicationJsonInterface._validate(b); - } -} - @BuiltValue(instantiable: false) sealed class $ShareapiGetInheritedSharesResponseApplicationJson_OcsInterface { OCSMeta get meta; @@ -4722,76 +4613,67 @@ abstract class ShareapiPendingSharesResponseApplicationJson } } -@BuiltValue(instantiable: false) -sealed class $ShareapiGetShareRequestApplicationJsonInterface { - static final _$includeTags = _$jsonSerializers.deserialize( - false, - specifiedType: const FullType(bool), - )! as bool; +class ShareapiGetShareIncludeTags extends EnumClass { + const ShareapiGetShareIncludeTags._(super.name); - /// Include tags in the share. - @BuiltValueField(wireName: 'include_tags') - bool get includeTags; + /// `0` + @BuiltValueEnumConst(wireName: '0') + static const ShareapiGetShareIncludeTags $0 = _$shareapiGetShareIncludeTags$0; - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$ShareapiGetShareRequestApplicationJsonInterfaceBuilder]. - $ShareapiGetShareRequestApplicationJsonInterface rebuild( - void Function($ShareapiGetShareRequestApplicationJsonInterfaceBuilder) updates, - ); + /// `1` + @BuiltValueEnumConst(wireName: '1') + static const ShareapiGetShareIncludeTags $1 = _$shareapiGetShareIncludeTags$1; - /// Converts the instance to a builder [$ShareapiGetShareRequestApplicationJsonInterfaceBuilder]. - $ShareapiGetShareRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($ShareapiGetShareRequestApplicationJsonInterfaceBuilder b) { - b.includeTags = _$includeTags; - } + /// Returns a set with all values this enum contains. + // coverage:ignore-start + static BuiltSet get values => _$shareapiGetShareIncludeTagsValues; + // coverage:ignore-end - @BuiltValueHook(finalizeBuilder: true) - static void _validate($ShareapiGetShareRequestApplicationJsonInterfaceBuilder b) {} + /// Returns the enum value associated to the [name]. + static ShareapiGetShareIncludeTags valueOf(String name) => _$valueOfShareapiGetShareIncludeTags(name); + + /// Returns the serialized value of this enum value. + int get value => _$jsonSerializers.serializeWith(serializer, this)! as int; + + /// Serializer for ShareapiGetShareIncludeTags. + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$ShareapiGetShareIncludeTagsSerializer(); } -abstract class ShareapiGetShareRequestApplicationJson - implements - $ShareapiGetShareRequestApplicationJsonInterface, - Built { - /// Creates a new ShareapiGetShareRequestApplicationJson object using the builder pattern. - factory ShareapiGetShareRequestApplicationJson([void Function(ShareapiGetShareRequestApplicationJsonBuilder)? b]) = - _$ShareapiGetShareRequestApplicationJson; +class _$ShareapiGetShareIncludeTagsSerializer implements PrimitiveSerializer { + const _$ShareapiGetShareIncludeTagsSerializer(); - // coverage:ignore-start - const ShareapiGetShareRequestApplicationJson._(); - // coverage:ignore-end + static const Map _toWire = { + ShareapiGetShareIncludeTags.$0: 0, + ShareapiGetShareIncludeTags.$1: 1, + }; - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory ShareapiGetShareRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end + static const Map _fromWire = { + 0: ShareapiGetShareIncludeTags.$0, + 1: ShareapiGetShareIncludeTags.$1, + }; - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end + @override + Iterable get types => const [ShareapiGetShareIncludeTags]; - /// Serializer for ShareapiGetShareRequestApplicationJson. - static Serializer get serializer => - _$shareapiGetShareRequestApplicationJsonSerializer; + @override + String get wireName => 'ShareapiGetShareIncludeTags'; - @BuiltValueHook(initializeBuilder: true) - static void _defaults(ShareapiGetShareRequestApplicationJsonBuilder b) { - $ShareapiGetShareRequestApplicationJsonInterface._defaults(b); - } + @override + Object serialize( + Serializers serializers, + ShareapiGetShareIncludeTags object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; - @BuiltValueHook(finalizeBuilder: true) - static void _validate(ShareapiGetShareRequestApplicationJsonBuilder b) { - $ShareapiGetShareRequestApplicationJsonInterface._validate(b); - } + @override + ShareapiGetShareIncludeTags deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -5389,113 +5271,69 @@ abstract class ShareapiAcceptShareResponseApplicationJson } } -/// Limit to specific share types. -typedef ShareesapiSearchRequestApplicationJson_ShareType = ({BuiltList? builtListInt, int? $int}); - -@BuiltValue(instantiable: false) -sealed class $ShareesapiSearchRequestApplicationJsonInterface { - static final _$search = _$jsonSerializers.deserialize( - '', - specifiedType: const FullType(String), - )! as String; - - static final _$page = _$jsonSerializers.deserialize( - 1, - specifiedType: const FullType(int), - )! as int; - - static final _$perPage = _$jsonSerializers.deserialize( - 200, - specifiedType: const FullType(int), - )! as int; - - static final _$lookup = _$jsonSerializers.deserialize( - false, - specifiedType: const FullType(bool), - )! as bool; +typedef ShareesapiSearchShareType = ({BuiltList? builtListInt, int? $int}); - /// Text to search for. - String get search; +class ShareesapiSearchLookup extends EnumClass { + const ShareesapiSearchLookup._(super.name); - /// Limit to specific item types. - String? get itemType; - - /// Page offset for searching. - int get page; - - /// Limit amount of search results per page. - int get perPage; + /// `0` + @BuiltValueEnumConst(wireName: '0') + static const ShareesapiSearchLookup $0 = _$shareesapiSearchLookup$0; - /// Limit to specific share types. - ShareesapiSearchRequestApplicationJson_ShareType? get shareType; + /// `1` + @BuiltValueEnumConst(wireName: '1') + static const ShareesapiSearchLookup $1 = _$shareesapiSearchLookup$1; - /// If a global lookup should be performed too. - bool get lookup; + /// Returns a set with all values this enum contains. + // coverage:ignore-start + static BuiltSet get values => _$shareesapiSearchLookupValues; + // coverage:ignore-end - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$ShareesapiSearchRequestApplicationJsonInterfaceBuilder]. - $ShareesapiSearchRequestApplicationJsonInterface rebuild( - void Function($ShareesapiSearchRequestApplicationJsonInterfaceBuilder) updates, - ); + /// Returns the enum value associated to the [name]. + static ShareesapiSearchLookup valueOf(String name) => _$valueOfShareesapiSearchLookup(name); - /// Converts the instance to a builder [$ShareesapiSearchRequestApplicationJsonInterfaceBuilder]. - $ShareesapiSearchRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($ShareesapiSearchRequestApplicationJsonInterfaceBuilder b) { - b.search = _$search; - b.page = _$page; - b.perPage = _$perPage; - b.lookup = _$lookup; - } + /// Returns the serialized value of this enum value. + int get value => _$jsonSerializers.serializeWith(serializer, this)! as int; - @BuiltValueHook(finalizeBuilder: true) - static void _validate($ShareesapiSearchRequestApplicationJsonInterfaceBuilder b) { - b.shareType?.validateOneOf(); - } + /// Serializer for ShareesapiSearchLookup. + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$ShareesapiSearchLookupSerializer(); } -abstract class ShareesapiSearchRequestApplicationJson - implements - $ShareesapiSearchRequestApplicationJsonInterface, - Built { - /// Creates a new ShareesapiSearchRequestApplicationJson object using the builder pattern. - factory ShareesapiSearchRequestApplicationJson([void Function(ShareesapiSearchRequestApplicationJsonBuilder)? b]) = - _$ShareesapiSearchRequestApplicationJson; +class _$ShareesapiSearchLookupSerializer implements PrimitiveSerializer { + const _$ShareesapiSearchLookupSerializer(); - // coverage:ignore-start - const ShareesapiSearchRequestApplicationJson._(); - // coverage:ignore-end + static const Map _toWire = { + ShareesapiSearchLookup.$0: 0, + ShareesapiSearchLookup.$1: 1, + }; - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory ShareesapiSearchRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end + static const Map _fromWire = { + 0: ShareesapiSearchLookup.$0, + 1: ShareesapiSearchLookup.$1, + }; - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end + @override + Iterable get types => const [ShareesapiSearchLookup]; - /// Serializer for ShareesapiSearchRequestApplicationJson. - static Serializer get serializer => - _$shareesapiSearchRequestApplicationJsonSerializer; + @override + String get wireName => 'ShareesapiSearchLookup'; - @BuiltValueHook(initializeBuilder: true) - static void _defaults(ShareesapiSearchRequestApplicationJsonBuilder b) { - $ShareesapiSearchRequestApplicationJsonInterface._defaults(b); - } + @override + Object serialize( + Serializers serializers, + ShareesapiSearchLookup object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; - @BuiltValueHook(finalizeBuilder: true) - static void _validate(ShareesapiSearchRequestApplicationJsonBuilder b) { - $ShareesapiSearchRequestApplicationJsonInterface._validate(b); - } + @override + ShareesapiSearchLookup deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -6738,77 +6576,7 @@ abstract class ShareesapiShareesapiSearchHeaders } } -/// Limit to specific share types. -typedef ShareesapiFindRecommendedRequestApplicationJson_ShareType = ({BuiltList? builtListInt, int? $int}); - -@BuiltValue(instantiable: false) -sealed class $ShareesapiFindRecommendedRequestApplicationJsonInterface { - /// Limit to specific item types. - String get itemType; - - /// Limit to specific share types. - ShareesapiFindRecommendedRequestApplicationJson_ShareType? get shareType; - - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$ShareesapiFindRecommendedRequestApplicationJsonInterfaceBuilder]. - $ShareesapiFindRecommendedRequestApplicationJsonInterface rebuild( - void Function($ShareesapiFindRecommendedRequestApplicationJsonInterfaceBuilder) updates, - ); - - /// Converts the instance to a builder [$ShareesapiFindRecommendedRequestApplicationJsonInterfaceBuilder]. - $ShareesapiFindRecommendedRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($ShareesapiFindRecommendedRequestApplicationJsonInterfaceBuilder b) {} - @BuiltValueHook(finalizeBuilder: true) - static void _validate($ShareesapiFindRecommendedRequestApplicationJsonInterfaceBuilder b) { - b.shareType?.validateOneOf(); - } -} - -abstract class ShareesapiFindRecommendedRequestApplicationJson - implements - $ShareesapiFindRecommendedRequestApplicationJsonInterface, - Built { - /// Creates a new ShareesapiFindRecommendedRequestApplicationJson object using the builder pattern. - factory ShareesapiFindRecommendedRequestApplicationJson([ - void Function(ShareesapiFindRecommendedRequestApplicationJsonBuilder)? b, - ]) = _$ShareesapiFindRecommendedRequestApplicationJson; - - // coverage:ignore-start - const ShareesapiFindRecommendedRequestApplicationJson._(); - // coverage:ignore-end - - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory ShareesapiFindRecommendedRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end - - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end - - /// Serializer for ShareesapiFindRecommendedRequestApplicationJson. - static Serializer get serializer => - _$shareesapiFindRecommendedRequestApplicationJsonSerializer; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults(ShareesapiFindRecommendedRequestApplicationJsonBuilder b) { - $ShareesapiFindRecommendedRequestApplicationJsonInterface._defaults(b); - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate(ShareesapiFindRecommendedRequestApplicationJsonBuilder b) { - $ShareesapiFindRecommendedRequestApplicationJsonInterface._validate(b); - } -} +typedef ShareesapiFindRecommendedShareType = ({BuiltList? builtListInt, int? $int}); @BuiltValue(instantiable: false) sealed class $ShareesRecommendedResult_ExactInterface { @@ -8036,33 +7804,29 @@ abstract class Capabilities implements $CapabilitiesInterface, Built get serializer => - $07eaa0304017ba8abe7f9f20d6a736f3Extension._serializer; + static Serializer get serializer => $07eaa0304017ba8abe7f9f20d6a736f3Extension._serializer; /// Creates a new object from the given [json] data. /// /// Use `toJson` to serialize it back into json. - static ShareesapiSearchRequestApplicationJson_ShareType fromJson(Object? json) => - $07eaa0304017ba8abe7f9f20d6a736f3Extension._fromJson(json); + static ShareesapiSearchShareType fromJson(Object? json) => $07eaa0304017ba8abe7f9f20d6a736f3Extension._fromJson(json); } -/// Serialization extension for `ShareesapiFindRecommendedRequestApplicationJson_ShareType`. -extension $ShareesapiFindRecommendedRequestApplicationJson_ShareTypeExtension - on ShareesapiFindRecommendedRequestApplicationJson_ShareType { - /// Serializer for ShareesapiFindRecommendedRequestApplicationJson_ShareType. +/// Serialization extension for `ShareesapiFindRecommendedShareType`. +extension $ShareesapiFindRecommendedShareTypeExtension on ShareesapiFindRecommendedShareType { + /// Serializer for ShareesapiFindRecommendedShareType. @BuiltValueSerializer(custom: true) - static Serializer get serializer => + static Serializer get serializer => $07eaa0304017ba8abe7f9f20d6a736f3Extension._serializer; /// Creates a new object from the given [json] data. /// /// Use `toJson` to serialize it back into json. - static ShareesapiFindRecommendedRequestApplicationJson_ShareType fromJson(Object? json) => + static ShareesapiFindRecommendedShareType fromJson(Object? json) => $07eaa0304017ba8abe7f9f20d6a736f3Extension._fromJson(json); } @@ -8181,11 +7945,7 @@ final Serializers _$serializers = (Serializers().toBuilder() DeletedShareapiUndeleteResponseApplicationJson_OcsBuilder.new, ) ..add(DeletedShareapiUndeleteResponseApplicationJson_Ocs.serializer) - ..addBuilderFactory( - const FullType(PublicPreviewGetPreviewRequestApplicationJson), - PublicPreviewGetPreviewRequestApplicationJsonBuilder.new, - ) - ..add(PublicPreviewGetPreviewRequestApplicationJson.serializer) + ..add(PublicPreviewGetPreviewA.serializer) ..addBuilderFactory( const FullType(RemoteGetSharesResponseApplicationJson), RemoteGetSharesResponseApplicationJsonBuilder.new, @@ -8266,11 +8026,6 @@ final Serializers _$serializers = (Serializers().toBuilder() ]), ListBuilder>.new, ) - ..addBuilderFactory( - const FullType(ShareapiGetSharesRequestApplicationJson), - ShareapiGetSharesRequestApplicationJsonBuilder.new, - ) - ..add(ShareapiGetSharesRequestApplicationJson.serializer) ..addBuilderFactory( const FullType(ShareapiGetSharesResponseApplicationJson), ShareapiGetSharesResponseApplicationJsonBuilder.new, @@ -8304,11 +8059,6 @@ final Serializers _$serializers = (Serializers().toBuilder() ShareapiCreateShareResponseApplicationJson_OcsBuilder.new, ) ..add(ShareapiCreateShareResponseApplicationJson_Ocs.serializer) - ..addBuilderFactory( - const FullType(ShareapiGetInheritedSharesRequestApplicationJson), - ShareapiGetInheritedSharesRequestApplicationJsonBuilder.new, - ) - ..add(ShareapiGetInheritedSharesRequestApplicationJson.serializer) ..addBuilderFactory( const FullType(ShareapiGetInheritedSharesResponseApplicationJson), ShareapiGetInheritedSharesResponseApplicationJsonBuilder.new, @@ -8329,11 +8079,7 @@ final Serializers _$serializers = (Serializers().toBuilder() ShareapiPendingSharesResponseApplicationJson_OcsBuilder.new, ) ..add(ShareapiPendingSharesResponseApplicationJson_Ocs.serializer) - ..addBuilderFactory( - const FullType(ShareapiGetShareRequestApplicationJson), - ShareapiGetShareRequestApplicationJsonBuilder.new, - ) - ..add(ShareapiGetShareRequestApplicationJson.serializer) + ..add(ShareapiGetShareIncludeTags.serializer) ..addBuilderFactory( const FullType(ShareapiGetShareResponseApplicationJson), ShareapiGetShareResponseApplicationJsonBuilder.new, @@ -8379,13 +8125,9 @@ final Serializers _$serializers = (Serializers().toBuilder() ShareapiAcceptShareResponseApplicationJson_OcsBuilder.new, ) ..add(ShareapiAcceptShareResponseApplicationJson_Ocs.serializer) - ..addBuilderFactory( - const FullType(ShareesapiSearchRequestApplicationJson), - ShareesapiSearchRequestApplicationJsonBuilder.new, - ) - ..add(ShareesapiSearchRequestApplicationJson.serializer) ..addBuilderFactory(const FullType(BuiltList, [FullType(int)]), ListBuilder.new) ..add($07eaa0304017ba8abe7f9f20d6a736f3Extension._serializer) + ..add(ShareesapiSearchLookup.serializer) ..addBuilderFactory( const FullType(ShareesapiSearchResponseApplicationJson), ShareesapiSearchResponseApplicationJsonBuilder.new, @@ -8442,11 +8184,6 @@ final Serializers _$serializers = (Serializers().toBuilder() ShareesapiShareesapiSearchHeadersBuilder.new, ) ..add(ShareesapiShareesapiSearchHeaders.serializer) - ..addBuilderFactory( - const FullType(ShareesapiFindRecommendedRequestApplicationJson), - ShareesapiFindRecommendedRequestApplicationJsonBuilder.new, - ) - ..add(ShareesapiFindRecommendedRequestApplicationJson.serializer) ..addBuilderFactory( const FullType(ShareesapiFindRecommendedResponseApplicationJson), ShareesapiFindRecommendedResponseApplicationJsonBuilder.new, diff --git a/packages/nextcloud/lib/src/api/files_sharing/files_sharing.openapi.g.dart b/packages/nextcloud/lib/src/api/files_sharing/files_sharing.openapi.g.dart index f1eb3d5aacb..57b15a3f554 100644 --- a/packages/nextcloud/lib/src/api/files_sharing/files_sharing.openapi.g.dart +++ b/packages/nextcloud/lib/src/api/files_sharing/files_sharing.openapi.g.dart @@ -6,6 +6,26 @@ part of 'files_sharing.openapi.dart'; // BuiltValueGenerator // ************************************************************************** +const PublicPreviewGetPreviewA _$publicPreviewGetPreviewA$0 = PublicPreviewGetPreviewA._('\$0'); +const PublicPreviewGetPreviewA _$publicPreviewGetPreviewA$1 = PublicPreviewGetPreviewA._('\$1'); + +PublicPreviewGetPreviewA _$valueOfPublicPreviewGetPreviewA(String name) { + switch (name) { + case '\$0': + return _$publicPreviewGetPreviewA$0; + case '\$1': + return _$publicPreviewGetPreviewA$1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$publicPreviewGetPreviewAValues = + BuiltSet(const [ + _$publicPreviewGetPreviewA$0, + _$publicPreviewGetPreviewA$1, +]); + const Share_HideDownload _$shareHideDownload$0 = Share_HideDownload._('\$0'); const Share_HideDownload _$shareHideDownload$1 = Share_HideDownload._('\$1'); @@ -63,6 +83,46 @@ final BuiltSet _$shareMailSendValues = BuiltSet( _$shareMailSend$1, ]); +const ShareapiGetShareIncludeTags _$shareapiGetShareIncludeTags$0 = ShareapiGetShareIncludeTags._('\$0'); +const ShareapiGetShareIncludeTags _$shareapiGetShareIncludeTags$1 = ShareapiGetShareIncludeTags._('\$1'); + +ShareapiGetShareIncludeTags _$valueOfShareapiGetShareIncludeTags(String name) { + switch (name) { + case '\$0': + return _$shareapiGetShareIncludeTags$0; + case '\$1': + return _$shareapiGetShareIncludeTags$1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$shareapiGetShareIncludeTagsValues = + BuiltSet(const [ + _$shareapiGetShareIncludeTags$0, + _$shareapiGetShareIncludeTags$1, +]); + +const ShareesapiSearchLookup _$shareesapiSearchLookup$0 = ShareesapiSearchLookup._('\$0'); +const ShareesapiSearchLookup _$shareesapiSearchLookup$1 = ShareesapiSearchLookup._('\$1'); + +ShareesapiSearchLookup _$valueOfShareesapiSearchLookup(String name) { + switch (name) { + case '\$0': + return _$shareesapiSearchLookup$0; + case '\$1': + return _$shareesapiSearchLookup$1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$shareesapiSearchLookupValues = + BuiltSet(const [ + _$shareesapiSearchLookup$0, + _$shareesapiSearchLookup$1, +]); + Serializer _$oCSMetaSerializer = _$OCSMetaSerializer(); Serializer _$deletedShareSerializer = _$DeletedShareSerializer(); Serializer _$deletedShareapiIndexResponseApplicationJsonOcsSerializer = @@ -74,8 +134,6 @@ Serializer _$DeletedShareapiUndeleteResponseApplicationJson_OcsSerializer(); Serializer _$deletedShareapiUndeleteResponseApplicationJsonSerializer = _$DeletedShareapiUndeleteResponseApplicationJsonSerializer(); -Serializer _$publicPreviewGetPreviewRequestApplicationJsonSerializer = - _$PublicPreviewGetPreviewRequestApplicationJsonSerializer(); Serializer _$remoteShareSerializer = _$RemoteShareSerializer(); Serializer _$remoteGetSharesResponseApplicationJsonOcsSerializer = _$RemoteGetSharesResponseApplicationJson_OcsSerializer(); @@ -104,8 +162,6 @@ Serializer _$remoteUnshareResponseApplicat Serializer _$shareInfoInfoRequestApplicationJsonSerializer = _$ShareInfoInfoRequestApplicationJsonSerializer(); Serializer _$shareInfoSerializer = _$ShareInfoSerializer(); -Serializer _$shareapiGetSharesRequestApplicationJsonSerializer = - _$ShareapiGetSharesRequestApplicationJsonSerializer(); Serializer _$shareStatusSerializer = _$Share_StatusSerializer(); Serializer _$shareSerializer = _$ShareSerializer(); Serializer _$shareapiGetSharesResponseApplicationJsonOcsSerializer = @@ -118,9 +174,6 @@ Serializer _$shareapiCreateShare _$ShareapiCreateShareResponseApplicationJson_OcsSerializer(); Serializer _$shareapiCreateShareResponseApplicationJsonSerializer = _$ShareapiCreateShareResponseApplicationJsonSerializer(); -Serializer - _$shareapiGetInheritedSharesRequestApplicationJsonSerializer = - _$ShareapiGetInheritedSharesRequestApplicationJsonSerializer(); Serializer _$shareapiGetInheritedSharesResponseApplicationJsonOcsSerializer = _$ShareapiGetInheritedSharesResponseApplicationJson_OcsSerializer(); @@ -132,8 +185,6 @@ Serializer _$ShareapiPendingSharesResponseApplicationJson_OcsSerializer(); Serializer _$shareapiPendingSharesResponseApplicationJsonSerializer = _$ShareapiPendingSharesResponseApplicationJsonSerializer(); -Serializer _$shareapiGetShareRequestApplicationJsonSerializer = - _$ShareapiGetShareRequestApplicationJsonSerializer(); Serializer _$shareapiGetShareResponseApplicationJsonOcsSerializer = _$ShareapiGetShareResponseApplicationJson_OcsSerializer(); Serializer _$shareapiGetShareResponseApplicationJsonSerializer = @@ -152,8 +203,6 @@ Serializer _$shareapiAcceptShare _$ShareapiAcceptShareResponseApplicationJson_OcsSerializer(); Serializer _$shareapiAcceptShareResponseApplicationJsonSerializer = _$ShareapiAcceptShareResponseApplicationJsonSerializer(); -Serializer _$shareesapiSearchRequestApplicationJsonSerializer = - _$ShareesapiSearchRequestApplicationJsonSerializer(); Serializer _$shareeSerializer = _$ShareeSerializer(); Serializer _$shareeValueSerializer = _$ShareeValueSerializer(); Serializer _$shareeCircleValueSerializer = _$ShareeCircle_ValueSerializer(); @@ -177,9 +226,6 @@ Serializer _$shareesapiSearchResponseAp _$ShareesapiSearchResponseApplicationJsonSerializer(); Serializer _$shareesapiShareesapiSearchHeadersSerializer = _$ShareesapiShareesapiSearchHeadersSerializer(); -Serializer - _$shareesapiFindRecommendedRequestApplicationJsonSerializer = - _$ShareesapiFindRecommendedRequestApplicationJsonSerializer(); Serializer _$shareesRecommendedResultExactSerializer = _$ShareesRecommendedResult_ExactSerializer(); Serializer _$shareesRecommendedResultSerializer = _$ShareesRecommendedResultSerializer(); @@ -626,63 +672,6 @@ class _$DeletedShareapiUndeleteResponseApplicationJsonSerializer } } -class _$PublicPreviewGetPreviewRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - PublicPreviewGetPreviewRequestApplicationJson, - _$PublicPreviewGetPreviewRequestApplicationJson - ]; - @override - final String wireName = 'PublicPreviewGetPreviewRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, PublicPreviewGetPreviewRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'file', - serializers.serialize(object.file, specifiedType: const FullType(String)), - 'x', - serializers.serialize(object.x, specifiedType: const FullType(int)), - 'y', - serializers.serialize(object.y, specifiedType: const FullType(int)), - 'a', - serializers.serialize(object.a, specifiedType: const FullType(bool)), - ]; - - return result; - } - - @override - PublicPreviewGetPreviewRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = PublicPreviewGetPreviewRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'file': - result.file = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'x': - result.x = serializers.deserialize(value, specifiedType: const FullType(int))! as int; - break; - case 'y': - result.y = serializers.deserialize(value, specifiedType: const FullType(int))! as int; - break; - case 'a': - result.a = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; - break; - } - } - - return result.build(); - } -} - class _$RemoteShareSerializer implements StructuredSerializer { @override final Iterable types = const [RemoteShare, _$RemoteShare]; @@ -1515,68 +1504,6 @@ class _$ShareInfoSerializer implements StructuredSerializer { } } -class _$ShareapiGetSharesRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - ShareapiGetSharesRequestApplicationJson, - _$ShareapiGetSharesRequestApplicationJson - ]; - @override - final String wireName = 'ShareapiGetSharesRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, ShareapiGetSharesRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'shared_with_me', - serializers.serialize(object.sharedWithMe, specifiedType: const FullType(String)), - 'reshares', - serializers.serialize(object.reshares, specifiedType: const FullType(String)), - 'subfiles', - serializers.serialize(object.subfiles, specifiedType: const FullType(String)), - 'path', - serializers.serialize(object.path, specifiedType: const FullType(String)), - 'include_tags', - serializers.serialize(object.includeTags, specifiedType: const FullType(String)), - ]; - - return result; - } - - @override - ShareapiGetSharesRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = ShareapiGetSharesRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'shared_with_me': - result.sharedWithMe = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'reshares': - result.reshares = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'subfiles': - result.subfiles = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'path': - result.path = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'include_tags': - result.includeTags = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - } - } - - return result.build(); - } -} - class _$Share_StatusSerializer implements StructuredSerializer { @override final Iterable types = const [Share_Status, _$Share_Status]; @@ -2246,48 +2173,6 @@ class _$ShareapiCreateShareResponseApplicationJsonSerializer } } -class _$ShareapiGetInheritedSharesRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - ShareapiGetInheritedSharesRequestApplicationJson, - _$ShareapiGetInheritedSharesRequestApplicationJson - ]; - @override - final String wireName = 'ShareapiGetInheritedSharesRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, ShareapiGetInheritedSharesRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'path', - serializers.serialize(object.path, specifiedType: const FullType(String)), - ]; - - return result; - } - - @override - ShareapiGetInheritedSharesRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = ShareapiGetInheritedSharesRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'path': - result.path = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - } - } - - return result.build(); - } -} - class _$ShareapiGetInheritedSharesResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -2475,45 +2360,6 @@ class _$ShareapiPendingSharesResponseApplicationJsonSerializer } } -class _$ShareapiGetShareRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ShareapiGetShareRequestApplicationJson, _$ShareapiGetShareRequestApplicationJson]; - @override - final String wireName = 'ShareapiGetShareRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, ShareapiGetShareRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'include_tags', - serializers.serialize(object.includeTags, specifiedType: const FullType(bool)), - ]; - - return result; - } - - @override - ShareapiGetShareRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = ShareapiGetShareRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'include_tags': - result.includeTags = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; - break; - } - } - - return result.build(); - } -} - class _$ShareapiGetShareResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -2995,81 +2841,6 @@ class _$ShareapiAcceptShareResponseApplicationJsonSerializer } } -class _$ShareesapiSearchRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ShareesapiSearchRequestApplicationJson, _$ShareesapiSearchRequestApplicationJson]; - @override - final String wireName = 'ShareesapiSearchRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, ShareesapiSearchRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'search', - serializers.serialize(object.search, specifiedType: const FullType(String)), - 'page', - serializers.serialize(object.page, specifiedType: const FullType(int)), - 'perPage', - serializers.serialize(object.perPage, specifiedType: const FullType(int)), - 'lookup', - serializers.serialize(object.lookup, specifiedType: const FullType(bool)), - ]; - Object? value; - value = object.itemType; - if (value != null) { - result - ..add('itemType') - ..add(serializers.serialize(value, specifiedType: const FullType(String))); - } - value = object.shareType; - if (value != null) { - result - ..add('shareType') - ..add(serializers.serialize(value, - specifiedType: const FullType(ShareesapiSearchRequestApplicationJson_ShareType))); - } - return result; - } - - @override - ShareesapiSearchRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = ShareesapiSearchRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'search': - result.search = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'itemType': - result.itemType = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; - break; - case 'page': - result.page = serializers.deserialize(value, specifiedType: const FullType(int))! as int; - break; - case 'perPage': - result.perPage = serializers.deserialize(value, specifiedType: const FullType(int))! as int; - break; - case 'shareType': - result.shareType = serializers.deserialize(value, - specifiedType: const FullType(ShareesapiSearchRequestApplicationJson_ShareType)) - as ShareesapiSearchRequestApplicationJson_ShareType?; - break; - case 'lookup': - result.lookup = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; - break; - } - } - - return result.build(); - } -} - class _$ShareeSerializer implements StructuredSerializer { @override final Iterable types = const [Sharee, _$Sharee]; @@ -4271,60 +4042,6 @@ class _$ShareesapiShareesapiSearchHeadersSerializer implements StructuredSeriali } } -class _$ShareesapiFindRecommendedRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - ShareesapiFindRecommendedRequestApplicationJson, - _$ShareesapiFindRecommendedRequestApplicationJson - ]; - @override - final String wireName = 'ShareesapiFindRecommendedRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, ShareesapiFindRecommendedRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'itemType', - serializers.serialize(object.itemType, specifiedType: const FullType(String)), - ]; - Object? value; - value = object.shareType; - if (value != null) { - result - ..add('shareType') - ..add(serializers.serialize(value, - specifiedType: const FullType(ShareesapiFindRecommendedRequestApplicationJson_ShareType))); - } - return result; - } - - @override - ShareesapiFindRecommendedRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = ShareesapiFindRecommendedRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'itemType': - result.itemType = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'shareType': - result.shareType = serializers.deserialize(value, - specifiedType: const FullType(ShareesapiFindRecommendedRequestApplicationJson_ShareType)) - as ShareesapiFindRecommendedRequestApplicationJson_ShareType?; - break; - } - } - - return result.build(); - } -} - class _$ShareesRecommendedResult_ExactSerializer implements StructuredSerializer { @override final Iterable types = const [ShareesRecommendedResult_Exact, _$ShareesRecommendedResult_Exact]; @@ -6413,159 +6130,14 @@ class DeletedShareapiUndeleteResponseApplicationJsonBuilder } } -abstract mixin class $PublicPreviewGetPreviewRequestApplicationJsonInterfaceBuilder { - void replace($PublicPreviewGetPreviewRequestApplicationJsonInterface other); - void update(void Function($PublicPreviewGetPreviewRequestApplicationJsonInterfaceBuilder) updates); - String? get file; - set file(String? file); - - int? get x; - set x(int? x); +abstract mixin class $RemoteShareInterfaceBuilder { + void replace($RemoteShareInterface other); + void update(void Function($RemoteShareInterfaceBuilder) updates); + bool? get accepted; + set accepted(bool? accepted); - int? get y; - set y(int? y); - - bool? get a; - set a(bool? a); -} - -class _$PublicPreviewGetPreviewRequestApplicationJson extends PublicPreviewGetPreviewRequestApplicationJson { - @override - final String file; - @override - final int x; - @override - final int y; - @override - final bool a; - - factory _$PublicPreviewGetPreviewRequestApplicationJson( - [void Function(PublicPreviewGetPreviewRequestApplicationJsonBuilder)? updates]) => - (PublicPreviewGetPreviewRequestApplicationJsonBuilder()..update(updates))._build(); - - _$PublicPreviewGetPreviewRequestApplicationJson._( - {required this.file, required this.x, required this.y, required this.a}) - : super._() { - BuiltValueNullFieldError.checkNotNull(file, r'PublicPreviewGetPreviewRequestApplicationJson', 'file'); - BuiltValueNullFieldError.checkNotNull(x, r'PublicPreviewGetPreviewRequestApplicationJson', 'x'); - BuiltValueNullFieldError.checkNotNull(y, r'PublicPreviewGetPreviewRequestApplicationJson', 'y'); - BuiltValueNullFieldError.checkNotNull(a, r'PublicPreviewGetPreviewRequestApplicationJson', 'a'); - } - - @override - PublicPreviewGetPreviewRequestApplicationJson rebuild( - void Function(PublicPreviewGetPreviewRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - PublicPreviewGetPreviewRequestApplicationJsonBuilder toBuilder() => - PublicPreviewGetPreviewRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is PublicPreviewGetPreviewRequestApplicationJson && - file == other.file && - x == other.x && - y == other.y && - a == other.a; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, file.hashCode); - _$hash = $jc(_$hash, x.hashCode); - _$hash = $jc(_$hash, y.hashCode); - _$hash = $jc(_$hash, a.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'PublicPreviewGetPreviewRequestApplicationJson') - ..add('file', file) - ..add('x', x) - ..add('y', y) - ..add('a', a)) - .toString(); - } -} - -class PublicPreviewGetPreviewRequestApplicationJsonBuilder - implements - Builder, - $PublicPreviewGetPreviewRequestApplicationJsonInterfaceBuilder { - _$PublicPreviewGetPreviewRequestApplicationJson? _$v; - - String? _file; - String? get file => _$this._file; - set file(covariant String? file) => _$this._file = file; - - int? _x; - int? get x => _$this._x; - set x(covariant int? x) => _$this._x = x; - - int? _y; - int? get y => _$this._y; - set y(covariant int? y) => _$this._y = y; - - bool? _a; - bool? get a => _$this._a; - set a(covariant bool? a) => _$this._a = a; - - PublicPreviewGetPreviewRequestApplicationJsonBuilder() { - PublicPreviewGetPreviewRequestApplicationJson._defaults(this); - } - - PublicPreviewGetPreviewRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _file = $v.file; - _x = $v.x; - _y = $v.y; - _a = $v.a; - _$v = null; - } - return this; - } - - @override - void replace(covariant PublicPreviewGetPreviewRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$PublicPreviewGetPreviewRequestApplicationJson; - } - - @override - void update(void Function(PublicPreviewGetPreviewRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - PublicPreviewGetPreviewRequestApplicationJson build() => _build(); - - _$PublicPreviewGetPreviewRequestApplicationJson _build() { - PublicPreviewGetPreviewRequestApplicationJson._validate(this); - final _$result = _$v ?? - _$PublicPreviewGetPreviewRequestApplicationJson._( - file: BuiltValueNullFieldError.checkNotNull(file, r'PublicPreviewGetPreviewRequestApplicationJson', 'file'), - x: BuiltValueNullFieldError.checkNotNull(x, r'PublicPreviewGetPreviewRequestApplicationJson', 'x'), - y: BuiltValueNullFieldError.checkNotNull(y, r'PublicPreviewGetPreviewRequestApplicationJson', 'y'), - a: BuiltValueNullFieldError.checkNotNull(a, r'PublicPreviewGetPreviewRequestApplicationJson', 'a')); - replace(_$result); - return _$result; - } -} - -abstract mixin class $RemoteShareInterfaceBuilder { - void replace($RemoteShareInterface other); - void update(void Function($RemoteShareInterfaceBuilder) updates); - bool? get accepted; - set accepted(bool? accepted); - - int? get fileId; - set fileId(int? fileId); + int? get fileId; + set fileId(int? fileId); int? get id; set id(int? id); @@ -8643,174 +8215,6 @@ class ShareInfoBuilder implements Builder, $ShareIn } } -abstract mixin class $ShareapiGetSharesRequestApplicationJsonInterfaceBuilder { - void replace($ShareapiGetSharesRequestApplicationJsonInterface other); - void update(void Function($ShareapiGetSharesRequestApplicationJsonInterfaceBuilder) updates); - String? get sharedWithMe; - set sharedWithMe(String? sharedWithMe); - - String? get reshares; - set reshares(String? reshares); - - String? get subfiles; - set subfiles(String? subfiles); - - String? get path; - set path(String? path); - - String? get includeTags; - set includeTags(String? includeTags); -} - -class _$ShareapiGetSharesRequestApplicationJson extends ShareapiGetSharesRequestApplicationJson { - @override - final String sharedWithMe; - @override - final String reshares; - @override - final String subfiles; - @override - final String path; - @override - final String includeTags; - - factory _$ShareapiGetSharesRequestApplicationJson( - [void Function(ShareapiGetSharesRequestApplicationJsonBuilder)? updates]) => - (ShareapiGetSharesRequestApplicationJsonBuilder()..update(updates))._build(); - - _$ShareapiGetSharesRequestApplicationJson._( - {required this.sharedWithMe, - required this.reshares, - required this.subfiles, - required this.path, - required this.includeTags}) - : super._() { - BuiltValueNullFieldError.checkNotNull(sharedWithMe, r'ShareapiGetSharesRequestApplicationJson', 'sharedWithMe'); - BuiltValueNullFieldError.checkNotNull(reshares, r'ShareapiGetSharesRequestApplicationJson', 'reshares'); - BuiltValueNullFieldError.checkNotNull(subfiles, r'ShareapiGetSharesRequestApplicationJson', 'subfiles'); - BuiltValueNullFieldError.checkNotNull(path, r'ShareapiGetSharesRequestApplicationJson', 'path'); - BuiltValueNullFieldError.checkNotNull(includeTags, r'ShareapiGetSharesRequestApplicationJson', 'includeTags'); - } - - @override - ShareapiGetSharesRequestApplicationJson rebuild( - void Function(ShareapiGetSharesRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - ShareapiGetSharesRequestApplicationJsonBuilder toBuilder() => - ShareapiGetSharesRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is ShareapiGetSharesRequestApplicationJson && - sharedWithMe == other.sharedWithMe && - reshares == other.reshares && - subfiles == other.subfiles && - path == other.path && - includeTags == other.includeTags; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, sharedWithMe.hashCode); - _$hash = $jc(_$hash, reshares.hashCode); - _$hash = $jc(_$hash, subfiles.hashCode); - _$hash = $jc(_$hash, path.hashCode); - _$hash = $jc(_$hash, includeTags.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'ShareapiGetSharesRequestApplicationJson') - ..add('sharedWithMe', sharedWithMe) - ..add('reshares', reshares) - ..add('subfiles', subfiles) - ..add('path', path) - ..add('includeTags', includeTags)) - .toString(); - } -} - -class ShareapiGetSharesRequestApplicationJsonBuilder - implements - Builder, - $ShareapiGetSharesRequestApplicationJsonInterfaceBuilder { - _$ShareapiGetSharesRequestApplicationJson? _$v; - - String? _sharedWithMe; - String? get sharedWithMe => _$this._sharedWithMe; - set sharedWithMe(covariant String? sharedWithMe) => _$this._sharedWithMe = sharedWithMe; - - String? _reshares; - String? get reshares => _$this._reshares; - set reshares(covariant String? reshares) => _$this._reshares = reshares; - - String? _subfiles; - String? get subfiles => _$this._subfiles; - set subfiles(covariant String? subfiles) => _$this._subfiles = subfiles; - - String? _path; - String? get path => _$this._path; - set path(covariant String? path) => _$this._path = path; - - String? _includeTags; - String? get includeTags => _$this._includeTags; - set includeTags(covariant String? includeTags) => _$this._includeTags = includeTags; - - ShareapiGetSharesRequestApplicationJsonBuilder() { - ShareapiGetSharesRequestApplicationJson._defaults(this); - } - - ShareapiGetSharesRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _sharedWithMe = $v.sharedWithMe; - _reshares = $v.reshares; - _subfiles = $v.subfiles; - _path = $v.path; - _includeTags = $v.includeTags; - _$v = null; - } - return this; - } - - @override - void replace(covariant ShareapiGetSharesRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$ShareapiGetSharesRequestApplicationJson; - } - - @override - void update(void Function(ShareapiGetSharesRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - ShareapiGetSharesRequestApplicationJson build() => _build(); - - _$ShareapiGetSharesRequestApplicationJson _build() { - ShareapiGetSharesRequestApplicationJson._validate(this); - final _$result = _$v ?? - _$ShareapiGetSharesRequestApplicationJson._( - sharedWithMe: BuiltValueNullFieldError.checkNotNull( - sharedWithMe, r'ShareapiGetSharesRequestApplicationJson', 'sharedWithMe'), - reshares: - BuiltValueNullFieldError.checkNotNull(reshares, r'ShareapiGetSharesRequestApplicationJson', 'reshares'), - subfiles: - BuiltValueNullFieldError.checkNotNull(subfiles, r'ShareapiGetSharesRequestApplicationJson', 'subfiles'), - path: BuiltValueNullFieldError.checkNotNull(path, r'ShareapiGetSharesRequestApplicationJson', 'path'), - includeTags: BuiltValueNullFieldError.checkNotNull( - includeTags, r'ShareapiGetSharesRequestApplicationJson', 'includeTags')); - replace(_$result); - return _$result; - } -} - abstract mixin class $Share_StatusInterfaceBuilder { void replace($Share_StatusInterface other); void update(void Function($Share_StatusInterfaceBuilder) updates); @@ -10393,104 +9797,6 @@ class ShareapiCreateShareResponseApplicationJsonBuilder } } -abstract mixin class $ShareapiGetInheritedSharesRequestApplicationJsonInterfaceBuilder { - void replace($ShareapiGetInheritedSharesRequestApplicationJsonInterface other); - void update(void Function($ShareapiGetInheritedSharesRequestApplicationJsonInterfaceBuilder) updates); - String? get path; - set path(String? path); -} - -class _$ShareapiGetInheritedSharesRequestApplicationJson extends ShareapiGetInheritedSharesRequestApplicationJson { - @override - final String path; - - factory _$ShareapiGetInheritedSharesRequestApplicationJson( - [void Function(ShareapiGetInheritedSharesRequestApplicationJsonBuilder)? updates]) => - (ShareapiGetInheritedSharesRequestApplicationJsonBuilder()..update(updates))._build(); - - _$ShareapiGetInheritedSharesRequestApplicationJson._({required this.path}) : super._() { - BuiltValueNullFieldError.checkNotNull(path, r'ShareapiGetInheritedSharesRequestApplicationJson', 'path'); - } - - @override - ShareapiGetInheritedSharesRequestApplicationJson rebuild( - void Function(ShareapiGetInheritedSharesRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - ShareapiGetInheritedSharesRequestApplicationJsonBuilder toBuilder() => - ShareapiGetInheritedSharesRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is ShareapiGetInheritedSharesRequestApplicationJson && path == other.path; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, path.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'ShareapiGetInheritedSharesRequestApplicationJson')..add('path', path)) - .toString(); - } -} - -class ShareapiGetInheritedSharesRequestApplicationJsonBuilder - implements - Builder, - $ShareapiGetInheritedSharesRequestApplicationJsonInterfaceBuilder { - _$ShareapiGetInheritedSharesRequestApplicationJson? _$v; - - String? _path; - String? get path => _$this._path; - set path(covariant String? path) => _$this._path = path; - - ShareapiGetInheritedSharesRequestApplicationJsonBuilder() { - ShareapiGetInheritedSharesRequestApplicationJson._defaults(this); - } - - ShareapiGetInheritedSharesRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _path = $v.path; - _$v = null; - } - return this; - } - - @override - void replace(covariant ShareapiGetInheritedSharesRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$ShareapiGetInheritedSharesRequestApplicationJson; - } - - @override - void update(void Function(ShareapiGetInheritedSharesRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - ShareapiGetInheritedSharesRequestApplicationJson build() => _build(); - - _$ShareapiGetInheritedSharesRequestApplicationJson _build() { - ShareapiGetInheritedSharesRequestApplicationJson._validate(this); - final _$result = _$v ?? - _$ShareapiGetInheritedSharesRequestApplicationJson._( - path: BuiltValueNullFieldError.checkNotNull( - path, r'ShareapiGetInheritedSharesRequestApplicationJson', 'path')); - replace(_$result); - return _$result; - } -} - abstract mixin class $ShareapiGetInheritedSharesResponseApplicationJson_OcsInterfaceBuilder { void replace($ShareapiGetInheritedSharesResponseApplicationJson_OcsInterface other); void update(void Function($ShareapiGetInheritedSharesResponseApplicationJson_OcsInterfaceBuilder) updates); @@ -10956,103 +10262,6 @@ class ShareapiPendingSharesResponseApplicationJsonBuilder } } -abstract mixin class $ShareapiGetShareRequestApplicationJsonInterfaceBuilder { - void replace($ShareapiGetShareRequestApplicationJsonInterface other); - void update(void Function($ShareapiGetShareRequestApplicationJsonInterfaceBuilder) updates); - bool? get includeTags; - set includeTags(bool? includeTags); -} - -class _$ShareapiGetShareRequestApplicationJson extends ShareapiGetShareRequestApplicationJson { - @override - final bool includeTags; - - factory _$ShareapiGetShareRequestApplicationJson( - [void Function(ShareapiGetShareRequestApplicationJsonBuilder)? updates]) => - (ShareapiGetShareRequestApplicationJsonBuilder()..update(updates))._build(); - - _$ShareapiGetShareRequestApplicationJson._({required this.includeTags}) : super._() { - BuiltValueNullFieldError.checkNotNull(includeTags, r'ShareapiGetShareRequestApplicationJson', 'includeTags'); - } - - @override - ShareapiGetShareRequestApplicationJson rebuild( - void Function(ShareapiGetShareRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - ShareapiGetShareRequestApplicationJsonBuilder toBuilder() => - ShareapiGetShareRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is ShareapiGetShareRequestApplicationJson && includeTags == other.includeTags; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, includeTags.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'ShareapiGetShareRequestApplicationJson')..add('includeTags', includeTags)) - .toString(); - } -} - -class ShareapiGetShareRequestApplicationJsonBuilder - implements - Builder, - $ShareapiGetShareRequestApplicationJsonInterfaceBuilder { - _$ShareapiGetShareRequestApplicationJson? _$v; - - bool? _includeTags; - bool? get includeTags => _$this._includeTags; - set includeTags(covariant bool? includeTags) => _$this._includeTags = includeTags; - - ShareapiGetShareRequestApplicationJsonBuilder() { - ShareapiGetShareRequestApplicationJson._defaults(this); - } - - ShareapiGetShareRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _includeTags = $v.includeTags; - _$v = null; - } - return this; - } - - @override - void replace(covariant ShareapiGetShareRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$ShareapiGetShareRequestApplicationJson; - } - - @override - void update(void Function(ShareapiGetShareRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - ShareapiGetShareRequestApplicationJson build() => _build(); - - _$ShareapiGetShareRequestApplicationJson _build() { - ShareapiGetShareRequestApplicationJson._validate(this); - final _$result = _$v ?? - _$ShareapiGetShareRequestApplicationJson._( - includeTags: BuiltValueNullFieldError.checkNotNull( - includeTags, r'ShareapiGetShareRequestApplicationJson', 'includeTags')); - replace(_$result); - return _$result; - } -} - abstract mixin class $ShareapiGetShareResponseApplicationJson_OcsInterfaceBuilder { void replace($ShareapiGetShareResponseApplicationJson_OcsInterface other); void update(void Function($ShareapiGetShareResponseApplicationJson_OcsInterfaceBuilder) updates); @@ -12190,186 +11399,6 @@ class ShareapiAcceptShareResponseApplicationJsonBuilder } } -abstract mixin class $ShareesapiSearchRequestApplicationJsonInterfaceBuilder { - void replace($ShareesapiSearchRequestApplicationJsonInterface other); - void update(void Function($ShareesapiSearchRequestApplicationJsonInterfaceBuilder) updates); - String? get search; - set search(String? search); - - String? get itemType; - set itemType(String? itemType); - - int? get page; - set page(int? page); - - int? get perPage; - set perPage(int? perPage); - - ShareesapiSearchRequestApplicationJson_ShareType? get shareType; - set shareType(ShareesapiSearchRequestApplicationJson_ShareType? shareType); - - bool? get lookup; - set lookup(bool? lookup); -} - -class _$ShareesapiSearchRequestApplicationJson extends ShareesapiSearchRequestApplicationJson { - @override - final String search; - @override - final String? itemType; - @override - final int page; - @override - final int perPage; - @override - final ShareesapiSearchRequestApplicationJson_ShareType? shareType; - @override - final bool lookup; - - factory _$ShareesapiSearchRequestApplicationJson( - [void Function(ShareesapiSearchRequestApplicationJsonBuilder)? updates]) => - (ShareesapiSearchRequestApplicationJsonBuilder()..update(updates))._build(); - - _$ShareesapiSearchRequestApplicationJson._( - {required this.search, - this.itemType, - required this.page, - required this.perPage, - this.shareType, - required this.lookup}) - : super._() { - BuiltValueNullFieldError.checkNotNull(search, r'ShareesapiSearchRequestApplicationJson', 'search'); - BuiltValueNullFieldError.checkNotNull(page, r'ShareesapiSearchRequestApplicationJson', 'page'); - BuiltValueNullFieldError.checkNotNull(perPage, r'ShareesapiSearchRequestApplicationJson', 'perPage'); - BuiltValueNullFieldError.checkNotNull(lookup, r'ShareesapiSearchRequestApplicationJson', 'lookup'); - } - - @override - ShareesapiSearchRequestApplicationJson rebuild( - void Function(ShareesapiSearchRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - ShareesapiSearchRequestApplicationJsonBuilder toBuilder() => - ShareesapiSearchRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - final dynamic _$dynamicOther = other; - return other is ShareesapiSearchRequestApplicationJson && - search == other.search && - itemType == other.itemType && - page == other.page && - perPage == other.perPage && - shareType == _$dynamicOther.shareType && - lookup == other.lookup; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, search.hashCode); - _$hash = $jc(_$hash, itemType.hashCode); - _$hash = $jc(_$hash, page.hashCode); - _$hash = $jc(_$hash, perPage.hashCode); - _$hash = $jc(_$hash, shareType.hashCode); - _$hash = $jc(_$hash, lookup.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'ShareesapiSearchRequestApplicationJson') - ..add('search', search) - ..add('itemType', itemType) - ..add('page', page) - ..add('perPage', perPage) - ..add('shareType', shareType) - ..add('lookup', lookup)) - .toString(); - } -} - -class ShareesapiSearchRequestApplicationJsonBuilder - implements - Builder, - $ShareesapiSearchRequestApplicationJsonInterfaceBuilder { - _$ShareesapiSearchRequestApplicationJson? _$v; - - String? _search; - String? get search => _$this._search; - set search(covariant String? search) => _$this._search = search; - - String? _itemType; - String? get itemType => _$this._itemType; - set itemType(covariant String? itemType) => _$this._itemType = itemType; - - int? _page; - int? get page => _$this._page; - set page(covariant int? page) => _$this._page = page; - - int? _perPage; - int? get perPage => _$this._perPage; - set perPage(covariant int? perPage) => _$this._perPage = perPage; - - ShareesapiSearchRequestApplicationJson_ShareType? _shareType; - ShareesapiSearchRequestApplicationJson_ShareType? get shareType => _$this._shareType; - set shareType(covariant ShareesapiSearchRequestApplicationJson_ShareType? shareType) => _$this._shareType = shareType; - - bool? _lookup; - bool? get lookup => _$this._lookup; - set lookup(covariant bool? lookup) => _$this._lookup = lookup; - - ShareesapiSearchRequestApplicationJsonBuilder() { - ShareesapiSearchRequestApplicationJson._defaults(this); - } - - ShareesapiSearchRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _search = $v.search; - _itemType = $v.itemType; - _page = $v.page; - _perPage = $v.perPage; - _shareType = $v.shareType; - _lookup = $v.lookup; - _$v = null; - } - return this; - } - - @override - void replace(covariant ShareesapiSearchRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$ShareesapiSearchRequestApplicationJson; - } - - @override - void update(void Function(ShareesapiSearchRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - ShareesapiSearchRequestApplicationJson build() => _build(); - - _$ShareesapiSearchRequestApplicationJson _build() { - ShareesapiSearchRequestApplicationJson._validate(this); - final _$result = _$v ?? - _$ShareesapiSearchRequestApplicationJson._( - search: BuiltValueNullFieldError.checkNotNull(search, r'ShareesapiSearchRequestApplicationJson', 'search'), - itemType: itemType, - page: BuiltValueNullFieldError.checkNotNull(page, r'ShareesapiSearchRequestApplicationJson', 'page'), - perPage: - BuiltValueNullFieldError.checkNotNull(perPage, r'ShareesapiSearchRequestApplicationJson', 'perPage'), - shareType: shareType, - lookup: BuiltValueNullFieldError.checkNotNull(lookup, r'ShareesapiSearchRequestApplicationJson', 'lookup')); - replace(_$result); - return _$result; - } -} - abstract mixin class $ShareeInterfaceBuilder { void replace($ShareeInterface other); void update(void Function($ShareeInterfaceBuilder) updates); @@ -15418,122 +14447,6 @@ class ShareesapiShareesapiSearchHeadersBuilder } } -abstract mixin class $ShareesapiFindRecommendedRequestApplicationJsonInterfaceBuilder { - void replace($ShareesapiFindRecommendedRequestApplicationJsonInterface other); - void update(void Function($ShareesapiFindRecommendedRequestApplicationJsonInterfaceBuilder) updates); - String? get itemType; - set itemType(String? itemType); - - ShareesapiFindRecommendedRequestApplicationJson_ShareType? get shareType; - set shareType(ShareesapiFindRecommendedRequestApplicationJson_ShareType? shareType); -} - -class _$ShareesapiFindRecommendedRequestApplicationJson extends ShareesapiFindRecommendedRequestApplicationJson { - @override - final String itemType; - @override - final ShareesapiFindRecommendedRequestApplicationJson_ShareType? shareType; - - factory _$ShareesapiFindRecommendedRequestApplicationJson( - [void Function(ShareesapiFindRecommendedRequestApplicationJsonBuilder)? updates]) => - (ShareesapiFindRecommendedRequestApplicationJsonBuilder()..update(updates))._build(); - - _$ShareesapiFindRecommendedRequestApplicationJson._({required this.itemType, this.shareType}) : super._() { - BuiltValueNullFieldError.checkNotNull(itemType, r'ShareesapiFindRecommendedRequestApplicationJson', 'itemType'); - } - - @override - ShareesapiFindRecommendedRequestApplicationJson rebuild( - void Function(ShareesapiFindRecommendedRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - ShareesapiFindRecommendedRequestApplicationJsonBuilder toBuilder() => - ShareesapiFindRecommendedRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - final dynamic _$dynamicOther = other; - return other is ShareesapiFindRecommendedRequestApplicationJson && - itemType == other.itemType && - shareType == _$dynamicOther.shareType; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, itemType.hashCode); - _$hash = $jc(_$hash, shareType.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'ShareesapiFindRecommendedRequestApplicationJson') - ..add('itemType', itemType) - ..add('shareType', shareType)) - .toString(); - } -} - -class ShareesapiFindRecommendedRequestApplicationJsonBuilder - implements - Builder, - $ShareesapiFindRecommendedRequestApplicationJsonInterfaceBuilder { - _$ShareesapiFindRecommendedRequestApplicationJson? _$v; - - String? _itemType; - String? get itemType => _$this._itemType; - set itemType(covariant String? itemType) => _$this._itemType = itemType; - - ShareesapiFindRecommendedRequestApplicationJson_ShareType? _shareType; - ShareesapiFindRecommendedRequestApplicationJson_ShareType? get shareType => _$this._shareType; - set shareType(covariant ShareesapiFindRecommendedRequestApplicationJson_ShareType? shareType) => - _$this._shareType = shareType; - - ShareesapiFindRecommendedRequestApplicationJsonBuilder() { - ShareesapiFindRecommendedRequestApplicationJson._defaults(this); - } - - ShareesapiFindRecommendedRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _itemType = $v.itemType; - _shareType = $v.shareType; - _$v = null; - } - return this; - } - - @override - void replace(covariant ShareesapiFindRecommendedRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$ShareesapiFindRecommendedRequestApplicationJson; - } - - @override - void update(void Function(ShareesapiFindRecommendedRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - ShareesapiFindRecommendedRequestApplicationJson build() => _build(); - - _$ShareesapiFindRecommendedRequestApplicationJson _build() { - ShareesapiFindRecommendedRequestApplicationJson._validate(this); - final _$result = _$v ?? - _$ShareesapiFindRecommendedRequestApplicationJson._( - itemType: BuiltValueNullFieldError.checkNotNull( - itemType, r'ShareesapiFindRecommendedRequestApplicationJson', 'itemType'), - shareType: shareType); - replace(_$result); - return _$result; - } -} - abstract mixin class $ShareesRecommendedResult_ExactInterfaceBuilder { void replace($ShareesRecommendedResult_ExactInterface other); void update(void Function($ShareesRecommendedResult_ExactInterfaceBuilder) updates); diff --git a/packages/nextcloud/lib/src/api/files_sharing/files_sharing.openapi.json b/packages/nextcloud/lib/src/api/files_sharing/files_sharing.openapi.json index 7f1bf1bf0ed..950d1d3251d 100644 --- a/packages/nextcloud/lib/src/api/files_sharing/files_sharing.openapi.json +++ b/packages/nextcloud/lib/src/api/files_sharing/files_sharing.openapi.json @@ -1386,40 +1386,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "file": { - "type": "string", - "default": "", - "description": "File in the share" - }, - "x": { - "type": "integer", - "format": "int64", - "default": 32, - "description": "Width of the preview" - }, - "y": { - "type": "integer", - "format": "int64", - "default": 32, - "description": "Height of the preview" - }, - "a": { - "type": "boolean", - "default": false, - "description": "Whether to not crop the preview" - } - } - } - } - } - }, "parameters": [ { "name": "token", @@ -1429,6 +1395,48 @@ "schema": { "type": "string" } + }, + { + "name": "file", + "in": "query", + "description": "File in the share", + "schema": { + "type": "string", + "default": "" + } + }, + { + "name": "x", + "in": "query", + "description": "Width of the preview", + "schema": { + "type": "integer", + "format": "int64", + "default": 32 + } + }, + { + "name": "y", + "in": "query", + "description": "Height of the preview", + "schema": { + "type": "integer", + "format": "int64", + "default": 32 + } + }, + { + "name": "a", + "in": "query", + "description": "Whether to not crop the preview", + "schema": { + "type": "integer", + "default": 0, + "enum": [ + 0, + 1 + ] + } } ], "responses": { @@ -1566,44 +1574,52 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "shared_with_me": { - "type": "string", - "default": "false", - "description": "Only get shares with the current user" - }, - "reshares": { - "type": "string", - "default": "false", - "description": "Only get shares by the current user and reshares" - }, - "subfiles": { - "type": "string", - "default": "false", - "description": "Only get all shares in a folder" - }, - "path": { - "type": "string", - "default": "", - "description": "Get shares for a specific path" - }, - "include_tags": { - "type": "string", - "default": "false", - "description": "Include tags in the share" - } - } - } - } - } - }, "parameters": [ + { + "name": "shared_with_me", + "in": "query", + "description": "Only get shares with the current user", + "schema": { + "type": "string", + "default": "false" + } + }, + { + "name": "reshares", + "in": "query", + "description": "Only get shares by the current user and reshares", + "schema": { + "type": "string", + "default": "false" + } + }, + { + "name": "subfiles", + "in": "query", + "description": "Only get all shares in a folder", + "schema": { + "type": "string", + "default": "false" + } + }, + { + "name": "path", + "in": "query", + "description": "Get shares for a specific path", + "schema": { + "type": "string", + "default": "" + } + }, + { + "name": "include_tags", + "in": "query", + "description": "Include tags in the share", + "schema": { + "type": "string", + "default": "false" + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -1907,26 +1923,16 @@ "basic_auth": [] } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "path" - ], - "properties": { - "path": { - "type": "string", - "description": "Path all shares will be relative to" - } - } - } - } - } - }, "parameters": [ + { + "name": "path", + "in": "query", + "description": "Path all shares will be relative to", + "required": true, + "schema": { + "type": "string" + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -2092,23 +2098,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "include_tags": { - "type": "boolean", - "default": false, - "description": "Include tags in the share" - } - } - } - } - } - }, "parameters": [ { "name": "id", @@ -2119,6 +2108,19 @@ "type": "string" } }, + { + "name": "include_tags", + "in": "query", + "description": "Include tags in the share", + "schema": { + "type": "integer", + "default": 0, + "enum": [ + 0, + 1 + ] + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -2823,63 +2825,79 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "search": { - "type": "string", - "default": "", - "description": "Text to search for" - }, - "itemType": { - "type": "string", - "nullable": true, - "description": "Limit to specific item types" - }, - "page": { - "type": "integer", - "format": "int64", - "default": 1, - "description": "Page offset for searching" - }, - "perPage": { + "parameters": [ + { + "name": "search", + "in": "query", + "description": "Text to search for", + "schema": { + "type": "string", + "default": "" + } + }, + { + "name": "itemType", + "in": "query", + "description": "Limit to specific item types", + "schema": { + "type": "string", + "nullable": true + } + }, + { + "name": "page", + "in": "query", + "description": "Page offset for searching", + "schema": { + "type": "integer", + "format": "int64", + "default": 1 + } + }, + { + "name": "perPage", + "in": "query", + "description": "Limit amount of search results per page", + "schema": { + "type": "integer", + "format": "int64", + "default": 200 + } + }, + { + "name": "shareType", + "in": "query", + "description": "Limit to specific share types", + "schema": { + "nullable": true, + "oneOf": [ + { + "type": "integer", + "format": "int64" + }, + { + "type": "array", + "items": { "type": "integer", - "format": "int64", - "default": 200, - "description": "Limit amount of search results per page" - }, - "shareType": { - "nullable": true, - "description": "Limit to specific share types", - "oneOf": [ - { - "type": "integer", - "format": "int64" - }, - { - "type": "array", - "items": { - "type": "integer", - "format": "int64" - } - } - ] - }, - "lookup": { - "type": "boolean", - "default": false, - "description": "If a global lookup should be performed too" + "format": "int64" } } - } + ] } - } - }, - "parameters": [ + }, + { + "name": "lookup", + "in": "query", + "description": "If a global lookup should be performed too", + "schema": { + "type": "integer", + "default": 0, + "enum": [ + 0, + 1 + ] + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -2975,43 +2993,37 @@ "basic_auth": [] } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "itemType" - ], - "properties": { - "itemType": { - "type": "string", - "description": "Limit to specific item types" - }, - "shareType": { - "nullable": true, - "description": "Limit to specific share types", - "oneOf": [ - { - "type": "integer", - "format": "int64" - }, - { - "type": "array", - "items": { - "type": "integer", - "format": "int64" - } - } - ] + "parameters": [ + { + "name": "itemType", + "in": "query", + "description": "Limit to specific item types", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "shareType", + "in": "query", + "description": "Limit to specific share types", + "schema": { + "nullable": true, + "oneOf": [ + { + "type": "integer", + "format": "int64" + }, + { + "type": "array", + "items": { + "type": "integer", + "format": "int64" } } - } + ] } - } - }, - "parameters": [ + }, { "name": "OCS-APIRequest", "in": "header", diff --git a/packages/nextcloud/lib/src/api/files_trashbin/files_trashbin.openapi.dart b/packages/nextcloud/lib/src/api/files_trashbin/files_trashbin.openapi.dart index 1275fb17fc3..b9a1856e5e6 100644 --- a/packages/nextcloud/lib/src/api/files_trashbin/files_trashbin.openapi.dart +++ b/packages/nextcloud/lib/src/api/files_trashbin/files_trashbin.openapi.dart @@ -16,17 +16,18 @@ /// It can be obtained at `https://spdx.org/licenses/AGPL-3.0-only.html`. library; // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:convert'; import 'dart:typed_data'; +import 'package:built_collection/built_collection.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; -import 'package:built_value/standard_json_plugin.dart' as _i6; -import 'package:collection/collection.dart' as _i4; -import 'package:dynamite_runtime/built_value.dart' as _i5; +import 'package:built_value/standard_json_plugin.dart' as _i7; +import 'package:collection/collection.dart' as _i5; +import 'package:dynamite_runtime/built_value.dart' as _i6; import 'package:dynamite_runtime/http_client.dart' as _i1; import 'package:http/http.dart' as _i3; import 'package:meta/meta.dart' as _i2; +import 'package:uri/uri.dart' as _i4; part 'files_trashbin.openapi.g.dart'; @@ -69,6 +70,12 @@ class $PreviewClient { /// Returns a `DynamiteRequest` backing the [getPreview] operation. /// Throws a `DynamiteApiException` if the API call does not return an expected status code. /// + /// Parameters: + /// * [fileId] ID of the file. Defaults to `-1`. + /// * [x] Width of the preview. Defaults to `32`. + /// * [y] Height of the preview. Defaults to `32`. + /// * [a] Whether to not crop the preview. Defaults to `0`. + /// /// Status codes: /// * 200: Preview returned /// * 400: Getting preview is not possible @@ -78,13 +85,35 @@ class $PreviewClient { /// * [getPreview] for a method executing this request and parsing the response. /// * [$getPreview_Serializer] for a converter to parse the `Response` from an executed this request. @_i2.experimental - _i3.Request $getPreview_Request({PreviewGetPreviewRequestApplicationJson? $body}) { - const _path = '/index.php/apps/files_trashbin/preview'; + _i3.Request $getPreview_Request({ + int? fileId, + int? x, + int? y, + PreviewGetPreviewA? a, + }) { + final _parameters = {}; + var __fileId = _$jsonSerializers.serialize(fileId, specifiedType: const FullType(int)); + __fileId ??= -1; + _parameters['fileId'] = __fileId; + + var __x = _$jsonSerializers.serialize(x, specifiedType: const FullType(int)); + __x ??= 32; + _parameters['x'] = __x; + + var __y = _$jsonSerializers.serialize(y, specifiedType: const FullType(int)); + __y ??= 32; + _parameters['y'] = __y; + + var __a = _$jsonSerializers.serialize(a, specifiedType: const FullType(PreviewGetPreviewA)); + __a ??= 0; + _parameters['a'] = __a; + + final _path = _i4.UriTemplate('/index.php/apps/files_trashbin/preview{?fileId*,x*,y*,a*}').expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); _request.headers['Accept'] = '*/*'; // coverage:ignore-start - final authentication = _i4.IterableExtension(_rootClient.authentications)?.firstWhereOrNull( + final authentication = _i5.IterableExtension(_rootClient.authentications)?.firstWhereOrNull( (auth) => switch (auth) { _i1.DynamiteHttpBearerAuthentication() || _i1.DynamiteHttpBasicAuthentication() => true, _ => false, @@ -100,17 +129,6 @@ class $PreviewClient { } // coverage:ignore-end - _request.headers['Content-Type'] = 'application/json'; - _request.body = $body != null - ? json.encode( - _$jsonSerializers.serialize($body, specifiedType: const FullType(PreviewGetPreviewRequestApplicationJson)), - ) - : json.encode( - _$jsonSerializers.serialize( - PreviewGetPreviewRequestApplicationJson(), - specifiedType: const FullType(PreviewGetPreviewRequestApplicationJson), - ), - ); return _request; } @@ -119,6 +137,12 @@ class $PreviewClient { /// Returns a [Future] containing a `DynamiteResponse` with the status code, deserialized body and headers. /// Throws a `DynamiteApiException` if the API call does not return an expected status code. /// + /// Parameters: + /// * [fileId] ID of the file. Defaults to `-1`. + /// * [x] Width of the preview. Defaults to `32`. + /// * [y] Height of the preview. Defaults to `32`. + /// * [a] Whether to not crop the preview. Defaults to `0`. + /// /// Status codes: /// * 200: Preview returned /// * 400: Getting preview is not possible @@ -127,9 +151,17 @@ class $PreviewClient { /// See: /// * [$getPreview_Request] for the request send by this method. /// * [$getPreview_Serializer] for a converter to parse the `Response` from an executed request. - Future<_i1.DynamiteResponse> getPreview({PreviewGetPreviewRequestApplicationJson? $body}) async { + Future<_i1.DynamiteResponse> getPreview({ + int? fileId, + int? x, + int? y, + PreviewGetPreviewA? a, + }) async { final _request = $getPreview_Request( - $body: $body, + fileId: fileId, + x: x, + y: y, + a: a, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -139,102 +171,67 @@ class $PreviewClient { } } -@BuiltValue(instantiable: false) -sealed class $PreviewGetPreviewRequestApplicationJsonInterface { - static final _$fileId = _$jsonSerializers.deserialize( - -1, - specifiedType: const FullType(int), - )! as int; - - static final _$x = _$jsonSerializers.deserialize( - 32, - specifiedType: const FullType(int), - )! as int; - - static final _$y = _$jsonSerializers.deserialize( - 32, - specifiedType: const FullType(int), - )! as int; - - static final _$a = _$jsonSerializers.deserialize( - false, - specifiedType: const FullType(bool), - )! as bool; - - /// ID of the file. - int get fileId; - - /// Width of the preview. - int get x; - - /// Height of the preview. - int get y; - - /// Whether to not crop the preview. - bool get a; +class PreviewGetPreviewA extends EnumClass { + const PreviewGetPreviewA._(super.name); - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$PreviewGetPreviewRequestApplicationJsonInterfaceBuilder]. - $PreviewGetPreviewRequestApplicationJsonInterface rebuild( - void Function($PreviewGetPreviewRequestApplicationJsonInterfaceBuilder) updates, - ); - - /// Converts the instance to a builder [$PreviewGetPreviewRequestApplicationJsonInterfaceBuilder]. - $PreviewGetPreviewRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($PreviewGetPreviewRequestApplicationJsonInterfaceBuilder b) { - b.fileId = _$fileId; - b.x = _$x; - b.y = _$y; - b.a = _$a; - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate($PreviewGetPreviewRequestApplicationJsonInterfaceBuilder b) {} -} + /// `0` + @BuiltValueEnumConst(wireName: '0') + static const PreviewGetPreviewA $0 = _$previewGetPreviewA$0; -abstract class PreviewGetPreviewRequestApplicationJson - implements - $PreviewGetPreviewRequestApplicationJsonInterface, - Built { - /// Creates a new PreviewGetPreviewRequestApplicationJson object using the builder pattern. - factory PreviewGetPreviewRequestApplicationJson([void Function(PreviewGetPreviewRequestApplicationJsonBuilder)? b]) = - _$PreviewGetPreviewRequestApplicationJson; + /// `1` + @BuiltValueEnumConst(wireName: '1') + static const PreviewGetPreviewA $1 = _$previewGetPreviewA$1; + /// Returns a set with all values this enum contains. // coverage:ignore-start - const PreviewGetPreviewRequestApplicationJson._(); + static BuiltSet get values => _$previewGetPreviewAValues; // coverage:ignore-end - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory PreviewGetPreviewRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end - - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end + /// Returns the enum value associated to the [name]. + static PreviewGetPreviewA valueOf(String name) => _$valueOfPreviewGetPreviewA(name); - /// Serializer for PreviewGetPreviewRequestApplicationJson. - static Serializer get serializer => - _$previewGetPreviewRequestApplicationJsonSerializer; + /// Returns the serialized value of this enum value. + int get value => _$jsonSerializers.serializeWith(serializer, this)! as int; - @BuiltValueHook(initializeBuilder: true) - static void _defaults(PreviewGetPreviewRequestApplicationJsonBuilder b) { - $PreviewGetPreviewRequestApplicationJsonInterface._defaults(b); - } + /// Serializer for PreviewGetPreviewA. + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$PreviewGetPreviewASerializer(); +} - @BuiltValueHook(finalizeBuilder: true) - static void _validate(PreviewGetPreviewRequestApplicationJsonBuilder b) { - $PreviewGetPreviewRequestApplicationJsonInterface._validate(b); - } +class _$PreviewGetPreviewASerializer implements PrimitiveSerializer { + const _$PreviewGetPreviewASerializer(); + + static const Map _toWire = { + PreviewGetPreviewA.$0: 0, + PreviewGetPreviewA.$1: 1, + }; + + static const Map _fromWire = { + 0: PreviewGetPreviewA.$0, + 1: PreviewGetPreviewA.$1, + }; + + @override + Iterable get types => const [PreviewGetPreviewA]; + + @override + String get wireName => 'PreviewGetPreviewA'; + + @override + Object serialize( + Serializers serializers, + PreviewGetPreviewA object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + PreviewGetPreviewA deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -355,11 +352,7 @@ abstract class Capabilities implements $CapabilitiesInterface, Built _$previewGetPreviewRequestApplicationJsonSerializer = - _$PreviewGetPreviewRequestApplicationJsonSerializer(); -Serializer _$capabilitiesFilesSerializer = _$Capabilities_FilesSerializer(); -Serializer _$capabilitiesSerializer = _$CapabilitiesSerializer(); - -class _$PreviewGetPreviewRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - PreviewGetPreviewRequestApplicationJson, - _$PreviewGetPreviewRequestApplicationJson - ]; - @override - final String wireName = 'PreviewGetPreviewRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, PreviewGetPreviewRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'fileId', - serializers.serialize(object.fileId, specifiedType: const FullType(int)), - 'x', - serializers.serialize(object.x, specifiedType: const FullType(int)), - 'y', - serializers.serialize(object.y, specifiedType: const FullType(int)), - 'a', - serializers.serialize(object.a, specifiedType: const FullType(bool)), - ]; - - return result; +const PreviewGetPreviewA _$previewGetPreviewA$0 = PreviewGetPreviewA._('\$0'); +const PreviewGetPreviewA _$previewGetPreviewA$1 = PreviewGetPreviewA._('\$1'); + +PreviewGetPreviewA _$valueOfPreviewGetPreviewA(String name) { + switch (name) { + case '\$0': + return _$previewGetPreviewA$0; + case '\$1': + return _$previewGetPreviewA$1; + default: + throw ArgumentError(name); } +} - @override - PreviewGetPreviewRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = PreviewGetPreviewRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'fileId': - result.fileId = serializers.deserialize(value, specifiedType: const FullType(int))! as int; - break; - case 'x': - result.x = serializers.deserialize(value, specifiedType: const FullType(int))! as int; - break; - case 'y': - result.y = serializers.deserialize(value, specifiedType: const FullType(int))! as int; - break; - case 'a': - result.a = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; - break; - } - } +final BuiltSet _$previewGetPreviewAValues = BuiltSet(const [ + _$previewGetPreviewA$0, + _$previewGetPreviewA$1, +]); - return result.build(); - } -} +Serializer _$capabilitiesFilesSerializer = _$Capabilities_FilesSerializer(); +Serializer _$capabilitiesSerializer = _$CapabilitiesSerializer(); class _$Capabilities_FilesSerializer implements StructuredSerializer { @override @@ -145,150 +105,6 @@ class _$CapabilitiesSerializer implements StructuredSerializer { } } -abstract mixin class $PreviewGetPreviewRequestApplicationJsonInterfaceBuilder { - void replace($PreviewGetPreviewRequestApplicationJsonInterface other); - void update(void Function($PreviewGetPreviewRequestApplicationJsonInterfaceBuilder) updates); - int? get fileId; - set fileId(int? fileId); - - int? get x; - set x(int? x); - - int? get y; - set y(int? y); - - bool? get a; - set a(bool? a); -} - -class _$PreviewGetPreviewRequestApplicationJson extends PreviewGetPreviewRequestApplicationJson { - @override - final int fileId; - @override - final int x; - @override - final int y; - @override - final bool a; - - factory _$PreviewGetPreviewRequestApplicationJson( - [void Function(PreviewGetPreviewRequestApplicationJsonBuilder)? updates]) => - (PreviewGetPreviewRequestApplicationJsonBuilder()..update(updates))._build(); - - _$PreviewGetPreviewRequestApplicationJson._({required this.fileId, required this.x, required this.y, required this.a}) - : super._() { - BuiltValueNullFieldError.checkNotNull(fileId, r'PreviewGetPreviewRequestApplicationJson', 'fileId'); - BuiltValueNullFieldError.checkNotNull(x, r'PreviewGetPreviewRequestApplicationJson', 'x'); - BuiltValueNullFieldError.checkNotNull(y, r'PreviewGetPreviewRequestApplicationJson', 'y'); - BuiltValueNullFieldError.checkNotNull(a, r'PreviewGetPreviewRequestApplicationJson', 'a'); - } - - @override - PreviewGetPreviewRequestApplicationJson rebuild( - void Function(PreviewGetPreviewRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - PreviewGetPreviewRequestApplicationJsonBuilder toBuilder() => - PreviewGetPreviewRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is PreviewGetPreviewRequestApplicationJson && - fileId == other.fileId && - x == other.x && - y == other.y && - a == other.a; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, fileId.hashCode); - _$hash = $jc(_$hash, x.hashCode); - _$hash = $jc(_$hash, y.hashCode); - _$hash = $jc(_$hash, a.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'PreviewGetPreviewRequestApplicationJson') - ..add('fileId', fileId) - ..add('x', x) - ..add('y', y) - ..add('a', a)) - .toString(); - } -} - -class PreviewGetPreviewRequestApplicationJsonBuilder - implements - Builder, - $PreviewGetPreviewRequestApplicationJsonInterfaceBuilder { - _$PreviewGetPreviewRequestApplicationJson? _$v; - - int? _fileId; - int? get fileId => _$this._fileId; - set fileId(covariant int? fileId) => _$this._fileId = fileId; - - int? _x; - int? get x => _$this._x; - set x(covariant int? x) => _$this._x = x; - - int? _y; - int? get y => _$this._y; - set y(covariant int? y) => _$this._y = y; - - bool? _a; - bool? get a => _$this._a; - set a(covariant bool? a) => _$this._a = a; - - PreviewGetPreviewRequestApplicationJsonBuilder() { - PreviewGetPreviewRequestApplicationJson._defaults(this); - } - - PreviewGetPreviewRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _fileId = $v.fileId; - _x = $v.x; - _y = $v.y; - _a = $v.a; - _$v = null; - } - return this; - } - - @override - void replace(covariant PreviewGetPreviewRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$PreviewGetPreviewRequestApplicationJson; - } - - @override - void update(void Function(PreviewGetPreviewRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - PreviewGetPreviewRequestApplicationJson build() => _build(); - - _$PreviewGetPreviewRequestApplicationJson _build() { - PreviewGetPreviewRequestApplicationJson._validate(this); - final _$result = _$v ?? - _$PreviewGetPreviewRequestApplicationJson._( - fileId: BuiltValueNullFieldError.checkNotNull(fileId, r'PreviewGetPreviewRequestApplicationJson', 'fileId'), - x: BuiltValueNullFieldError.checkNotNull(x, r'PreviewGetPreviewRequestApplicationJson', 'x'), - y: BuiltValueNullFieldError.checkNotNull(y, r'PreviewGetPreviewRequestApplicationJson', 'y'), - a: BuiltValueNullFieldError.checkNotNull(a, r'PreviewGetPreviewRequestApplicationJson', 'a')); - replace(_$result); - return _$result; - } -} - abstract mixin class $Capabilities_FilesInterfaceBuilder { void replace($Capabilities_FilesInterface other); void update(void Function($Capabilities_FilesInterfaceBuilder) updates); diff --git a/packages/nextcloud/lib/src/api/files_trashbin/files_trashbin.openapi.json b/packages/nextcloud/lib/src/api/files_trashbin/files_trashbin.openapi.json index 9dbaa340ba7..bb489ef27c7 100644 --- a/packages/nextcloud/lib/src/api/files_trashbin/files_trashbin.openapi.json +++ b/packages/nextcloud/lib/src/api/files_trashbin/files_trashbin.openapi.json @@ -58,41 +58,51 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "fileId": { - "type": "integer", - "format": "int64", - "default": -1, - "description": "ID of the file" - }, - "x": { - "type": "integer", - "format": "int64", - "default": 32, - "description": "Width of the preview" - }, - "y": { - "type": "integer", - "format": "int64", - "default": 32, - "description": "Height of the preview" - }, - "a": { - "type": "boolean", - "default": false, - "description": "Whether to not crop the preview" - } - } - } + "parameters": [ + { + "name": "fileId", + "in": "query", + "description": "ID of the file", + "schema": { + "type": "integer", + "format": "int64", + "default": -1 + } + }, + { + "name": "x", + "in": "query", + "description": "Width of the preview", + "schema": { + "type": "integer", + "format": "int64", + "default": 32 + } + }, + { + "name": "y", + "in": "query", + "description": "Height of the preview", + "schema": { + "type": "integer", + "format": "int64", + "default": 32 + } + }, + { + "name": "a", + "in": "query", + "description": "Whether to not crop the preview", + "schema": { + "type": "integer", + "default": 0, + "enum": [ + 0, + 1 + ] } } - }, + ], "responses": { "200": { "description": "Preview returned", diff --git a/packages/nextcloud/lib/src/api/files_versions/files_versions.openapi.dart b/packages/nextcloud/lib/src/api/files_versions/files_versions.openapi.dart index 69919888090..b35a8ab1901 100644 --- a/packages/nextcloud/lib/src/api/files_versions/files_versions.openapi.dart +++ b/packages/nextcloud/lib/src/api/files_versions/files_versions.openapi.dart @@ -16,17 +16,17 @@ /// It can be obtained at `https://spdx.org/licenses/AGPL-3.0-only.html`. library; // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:convert'; import 'dart:typed_data'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; -import 'package:built_value/standard_json_plugin.dart' as _i6; -import 'package:collection/collection.dart' as _i4; -import 'package:dynamite_runtime/built_value.dart' as _i5; +import 'package:built_value/standard_json_plugin.dart' as _i7; +import 'package:collection/collection.dart' as _i5; +import 'package:dynamite_runtime/built_value.dart' as _i6; import 'package:dynamite_runtime/http_client.dart' as _i1; import 'package:http/http.dart' as _i3; import 'package:meta/meta.dart' as _i2; +import 'package:uri/uri.dart' as _i4; part 'files_versions.openapi.g.dart'; @@ -69,6 +69,12 @@ class $PreviewClient { /// Returns a `DynamiteRequest` backing the [getPreview] operation. /// Throws a `DynamiteApiException` if the API call does not return an expected status code. /// + /// Parameters: + /// * [file] Path of the file. Defaults to `""`. + /// * [x] Width of the preview. Defaults to `44`. + /// * [y] Height of the preview. Defaults to `44`. + /// * [version] Version of the file to get the preview for. Defaults to `""`. + /// /// Status codes: /// * 200: Preview returned /// * 400: Getting preview is not possible @@ -78,13 +84,35 @@ class $PreviewClient { /// * [getPreview] for a method executing this request and parsing the response. /// * [$getPreview_Serializer] for a converter to parse the `Response` from an executed this request. @_i2.experimental - _i3.Request $getPreview_Request({PreviewGetPreviewRequestApplicationJson? $body}) { - const _path = '/index.php/apps/files_versions/preview'; + _i3.Request $getPreview_Request({ + String? file, + int? x, + int? y, + String? version, + }) { + final _parameters = {}; + var __file = _$jsonSerializers.serialize(file, specifiedType: const FullType(String)); + __file ??= ''; + _parameters['file'] = __file; + + var __x = _$jsonSerializers.serialize(x, specifiedType: const FullType(int)); + __x ??= 44; + _parameters['x'] = __x; + + var __y = _$jsonSerializers.serialize(y, specifiedType: const FullType(int)); + __y ??= 44; + _parameters['y'] = __y; + + var __version = _$jsonSerializers.serialize(version, specifiedType: const FullType(String)); + __version ??= ''; + _parameters['version'] = __version; + + final _path = _i4.UriTemplate('/index.php/apps/files_versions/preview{?file*,x*,y*,version*}').expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); _request.headers['Accept'] = '*/*'; // coverage:ignore-start - final authentication = _i4.IterableExtension(_rootClient.authentications)?.firstWhereOrNull( + final authentication = _i5.IterableExtension(_rootClient.authentications)?.firstWhereOrNull( (auth) => switch (auth) { _i1.DynamiteHttpBearerAuthentication() || _i1.DynamiteHttpBasicAuthentication() => true, _ => false, @@ -100,17 +128,6 @@ class $PreviewClient { } // coverage:ignore-end - _request.headers['Content-Type'] = 'application/json'; - _request.body = $body != null - ? json.encode( - _$jsonSerializers.serialize($body, specifiedType: const FullType(PreviewGetPreviewRequestApplicationJson)), - ) - : json.encode( - _$jsonSerializers.serialize( - PreviewGetPreviewRequestApplicationJson(), - specifiedType: const FullType(PreviewGetPreviewRequestApplicationJson), - ), - ); return _request; } @@ -119,6 +136,12 @@ class $PreviewClient { /// Returns a [Future] containing a `DynamiteResponse` with the status code, deserialized body and headers. /// Throws a `DynamiteApiException` if the API call does not return an expected status code. /// + /// Parameters: + /// * [file] Path of the file. Defaults to `""`. + /// * [x] Width of the preview. Defaults to `44`. + /// * [y] Height of the preview. Defaults to `44`. + /// * [version] Version of the file to get the preview for. Defaults to `""`. + /// /// Status codes: /// * 200: Preview returned /// * 400: Getting preview is not possible @@ -127,9 +150,17 @@ class $PreviewClient { /// See: /// * [$getPreview_Request] for the request send by this method. /// * [$getPreview_Serializer] for a converter to parse the `Response` from an executed request. - Future<_i1.DynamiteResponse> getPreview({PreviewGetPreviewRequestApplicationJson? $body}) async { + Future<_i1.DynamiteResponse> getPreview({ + String? file, + int? x, + int? y, + String? version, + }) async { final _request = $getPreview_Request( - $body: $body, + file: file, + x: x, + y: y, + version: version, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -139,104 +170,6 @@ class $PreviewClient { } } -@BuiltValue(instantiable: false) -sealed class $PreviewGetPreviewRequestApplicationJsonInterface { - static final _$file = _$jsonSerializers.deserialize( - '', - specifiedType: const FullType(String), - )! as String; - - static final _$x = _$jsonSerializers.deserialize( - 44, - specifiedType: const FullType(int), - )! as int; - - static final _$y = _$jsonSerializers.deserialize( - 44, - specifiedType: const FullType(int), - )! as int; - - static final _$version = _$jsonSerializers.deserialize( - '', - specifiedType: const FullType(String), - )! as String; - - /// Path of the file. - String get file; - - /// Width of the preview. - int get x; - - /// Height of the preview. - int get y; - - /// Version of the file to get the preview for. - String get version; - - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$PreviewGetPreviewRequestApplicationJsonInterfaceBuilder]. - $PreviewGetPreviewRequestApplicationJsonInterface rebuild( - void Function($PreviewGetPreviewRequestApplicationJsonInterfaceBuilder) updates, - ); - - /// Converts the instance to a builder [$PreviewGetPreviewRequestApplicationJsonInterfaceBuilder]. - $PreviewGetPreviewRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($PreviewGetPreviewRequestApplicationJsonInterfaceBuilder b) { - b.file = _$file; - b.x = _$x; - b.y = _$y; - b.version = _$version; - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate($PreviewGetPreviewRequestApplicationJsonInterfaceBuilder b) {} -} - -abstract class PreviewGetPreviewRequestApplicationJson - implements - $PreviewGetPreviewRequestApplicationJsonInterface, - Built { - /// Creates a new PreviewGetPreviewRequestApplicationJson object using the builder pattern. - factory PreviewGetPreviewRequestApplicationJson([void Function(PreviewGetPreviewRequestApplicationJsonBuilder)? b]) = - _$PreviewGetPreviewRequestApplicationJson; - - // coverage:ignore-start - const PreviewGetPreviewRequestApplicationJson._(); - // coverage:ignore-end - - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory PreviewGetPreviewRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end - - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end - - /// Serializer for PreviewGetPreviewRequestApplicationJson. - static Serializer get serializer => - _$previewGetPreviewRequestApplicationJsonSerializer; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults(PreviewGetPreviewRequestApplicationJsonBuilder b) { - $PreviewGetPreviewRequestApplicationJsonInterface._defaults(b); - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate(PreviewGetPreviewRequestApplicationJsonBuilder b) { - $PreviewGetPreviewRequestApplicationJsonInterface._validate(b); - } -} - @BuiltValue(instantiable: false) sealed class $Capabilities_FilesInterface { bool get versioning; @@ -359,11 +292,6 @@ abstract class Capabilities implements $CapabilitiesInterface, Built _$previewGetPreviewRequestApplicationJsonSerializer = - _$PreviewGetPreviewRequestApplicationJsonSerializer(); Serializer _$capabilitiesFilesSerializer = _$Capabilities_FilesSerializer(); Serializer _$capabilitiesSerializer = _$CapabilitiesSerializer(); -class _$PreviewGetPreviewRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - PreviewGetPreviewRequestApplicationJson, - _$PreviewGetPreviewRequestApplicationJson - ]; - @override - final String wireName = 'PreviewGetPreviewRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, PreviewGetPreviewRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'file', - serializers.serialize(object.file, specifiedType: const FullType(String)), - 'x', - serializers.serialize(object.x, specifiedType: const FullType(int)), - 'y', - serializers.serialize(object.y, specifiedType: const FullType(int)), - 'version', - serializers.serialize(object.version, specifiedType: const FullType(String)), - ]; - - return result; - } - - @override - PreviewGetPreviewRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = PreviewGetPreviewRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'file': - result.file = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'x': - result.x = serializers.deserialize(value, specifiedType: const FullType(int))! as int; - break; - case 'y': - result.y = serializers.deserialize(value, specifiedType: const FullType(int))! as int; - break; - case 'version': - result.version = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - } - } - - return result.build(); - } -} - class _$Capabilities_FilesSerializer implements StructuredSerializer { @override final Iterable types = const [Capabilities_Files, _$Capabilities_Files]; @@ -155,152 +96,6 @@ class _$CapabilitiesSerializer implements StructuredSerializer { } } -abstract mixin class $PreviewGetPreviewRequestApplicationJsonInterfaceBuilder { - void replace($PreviewGetPreviewRequestApplicationJsonInterface other); - void update(void Function($PreviewGetPreviewRequestApplicationJsonInterfaceBuilder) updates); - String? get file; - set file(String? file); - - int? get x; - set x(int? x); - - int? get y; - set y(int? y); - - String? get version; - set version(String? version); -} - -class _$PreviewGetPreviewRequestApplicationJson extends PreviewGetPreviewRequestApplicationJson { - @override - final String file; - @override - final int x; - @override - final int y; - @override - final String version; - - factory _$PreviewGetPreviewRequestApplicationJson( - [void Function(PreviewGetPreviewRequestApplicationJsonBuilder)? updates]) => - (PreviewGetPreviewRequestApplicationJsonBuilder()..update(updates))._build(); - - _$PreviewGetPreviewRequestApplicationJson._( - {required this.file, required this.x, required this.y, required this.version}) - : super._() { - BuiltValueNullFieldError.checkNotNull(file, r'PreviewGetPreviewRequestApplicationJson', 'file'); - BuiltValueNullFieldError.checkNotNull(x, r'PreviewGetPreviewRequestApplicationJson', 'x'); - BuiltValueNullFieldError.checkNotNull(y, r'PreviewGetPreviewRequestApplicationJson', 'y'); - BuiltValueNullFieldError.checkNotNull(version, r'PreviewGetPreviewRequestApplicationJson', 'version'); - } - - @override - PreviewGetPreviewRequestApplicationJson rebuild( - void Function(PreviewGetPreviewRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - PreviewGetPreviewRequestApplicationJsonBuilder toBuilder() => - PreviewGetPreviewRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is PreviewGetPreviewRequestApplicationJson && - file == other.file && - x == other.x && - y == other.y && - version == other.version; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, file.hashCode); - _$hash = $jc(_$hash, x.hashCode); - _$hash = $jc(_$hash, y.hashCode); - _$hash = $jc(_$hash, version.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'PreviewGetPreviewRequestApplicationJson') - ..add('file', file) - ..add('x', x) - ..add('y', y) - ..add('version', version)) - .toString(); - } -} - -class PreviewGetPreviewRequestApplicationJsonBuilder - implements - Builder, - $PreviewGetPreviewRequestApplicationJsonInterfaceBuilder { - _$PreviewGetPreviewRequestApplicationJson? _$v; - - String? _file; - String? get file => _$this._file; - set file(covariant String? file) => _$this._file = file; - - int? _x; - int? get x => _$this._x; - set x(covariant int? x) => _$this._x = x; - - int? _y; - int? get y => _$this._y; - set y(covariant int? y) => _$this._y = y; - - String? _version; - String? get version => _$this._version; - set version(covariant String? version) => _$this._version = version; - - PreviewGetPreviewRequestApplicationJsonBuilder() { - PreviewGetPreviewRequestApplicationJson._defaults(this); - } - - PreviewGetPreviewRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _file = $v.file; - _x = $v.x; - _y = $v.y; - _version = $v.version; - _$v = null; - } - return this; - } - - @override - void replace(covariant PreviewGetPreviewRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$PreviewGetPreviewRequestApplicationJson; - } - - @override - void update(void Function(PreviewGetPreviewRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - PreviewGetPreviewRequestApplicationJson build() => _build(); - - _$PreviewGetPreviewRequestApplicationJson _build() { - PreviewGetPreviewRequestApplicationJson._validate(this); - final _$result = _$v ?? - _$PreviewGetPreviewRequestApplicationJson._( - file: BuiltValueNullFieldError.checkNotNull(file, r'PreviewGetPreviewRequestApplicationJson', 'file'), - x: BuiltValueNullFieldError.checkNotNull(x, r'PreviewGetPreviewRequestApplicationJson', 'x'), - y: BuiltValueNullFieldError.checkNotNull(y, r'PreviewGetPreviewRequestApplicationJson', 'y'), - version: - BuiltValueNullFieldError.checkNotNull(version, r'PreviewGetPreviewRequestApplicationJson', 'version')); - replace(_$result); - return _$result; - } -} - abstract mixin class $Capabilities_FilesInterfaceBuilder { void replace($Capabilities_FilesInterface other); void update(void Function($Capabilities_FilesInterfaceBuilder) updates); diff --git a/packages/nextcloud/lib/src/api/files_versions/files_versions.openapi.json b/packages/nextcloud/lib/src/api/files_versions/files_versions.openapi.json index c110f3c356c..f2e0faccaa2 100644 --- a/packages/nextcloud/lib/src/api/files_versions/files_versions.openapi.json +++ b/packages/nextcloud/lib/src/api/files_versions/files_versions.openapi.json @@ -66,40 +66,46 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "file": { - "type": "string", - "default": "", - "description": "Path of the file" - }, - "x": { - "type": "integer", - "format": "int64", - "default": 44, - "description": "Width of the preview" - }, - "y": { - "type": "integer", - "format": "int64", - "default": 44, - "description": "Height of the preview" - }, - "version": { - "type": "string", - "default": "", - "description": "Version of the file to get the preview for" - } - } - } + "parameters": [ + { + "name": "file", + "in": "query", + "description": "Path of the file", + "schema": { + "type": "string", + "default": "" + } + }, + { + "name": "x", + "in": "query", + "description": "Width of the preview", + "schema": { + "type": "integer", + "format": "int64", + "default": 44 + } + }, + { + "name": "y", + "in": "query", + "description": "Height of the preview", + "schema": { + "type": "integer", + "format": "int64", + "default": 44 + } + }, + { + "name": "version", + "in": "query", + "description": "Version of the file to get the preview for", + "schema": { + "type": "string", + "default": "" } } - }, + ], "responses": { "200": { "description": "Preview returned", diff --git a/packages/nextcloud/lib/src/api/provisioning_api/provisioning_api.openapi.dart b/packages/nextcloud/lib/src/api/provisioning_api/provisioning_api.openapi.dart index c879dd93a16..432fa7a90dd 100644 --- a/packages/nextcloud/lib/src/api/provisioning_api/provisioning_api.openapi.dart +++ b/packages/nextcloud/lib/src/api/provisioning_api/provisioning_api.openapi.dart @@ -383,6 +383,7 @@ class $AppsClient { /// Throws a `DynamiteApiException` if the API call does not return an expected status code. /// /// Parameters: + /// * [filter] Filter for enabled or disabled apps. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -393,10 +394,14 @@ class $AppsClient { /// * [$getApps_Serializer] for a converter to parse the `Response` from an executed this request. @_i2.experimental _i3.Request $getApps_Request({ + String? filter, bool? oCSAPIRequest, - AppsGetAppsRequestApplicationJson? $body, }) { - const _path = '/ocs/v2.php/cloud/apps'; + final _parameters = {}; + final __filter = _$jsonSerializers.serialize(filter, specifiedType: const FullType(String)); + _parameters['filter'] = __filter; + + final _path = _i6.UriTemplate('/ocs/v2.php/cloud/apps{?filter*}').expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); _request.headers['Accept'] = 'application/json'; @@ -421,17 +426,6 @@ class $AppsClient { __oCSAPIRequest ??= true; _request.headers['OCS-APIRequest'] = const _i5.HeaderEncoder().convert(__oCSAPIRequest); - _request.headers['Content-Type'] = 'application/json'; - _request.body = $body != null - ? json.encode( - _$jsonSerializers.serialize($body, specifiedType: const FullType(AppsGetAppsRequestApplicationJson)), - ) - : json.encode( - _$jsonSerializers.serialize( - AppsGetAppsRequestApplicationJson(), - specifiedType: const FullType(AppsGetAppsRequestApplicationJson), - ), - ); return _request; } @@ -443,6 +437,7 @@ class $AppsClient { /// Throws a `DynamiteApiException` if the API call does not return an expected status code. /// /// Parameters: + /// * [filter] Filter for enabled or disabled apps. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -452,12 +447,12 @@ class $AppsClient { /// * [$getApps_Request] for the request send by this method. /// * [$getApps_Serializer] for a converter to parse the `Response` from an executed request. Future<_i1.DynamiteResponse> getApps({ + String? filter, bool? oCSAPIRequest, - AppsGetAppsRequestApplicationJson? $body, }) async { final _request = $getApps_Request( + filter: filter, oCSAPIRequest: oCSAPIRequest, - $body: $body, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -881,6 +876,9 @@ class $GroupsClient { /// Throws a `DynamiteApiException` if the API call does not return an expected status code. /// /// Parameters: + /// * [search] Text to search for. Defaults to `""`. + /// * [limit] Limit the amount of groups returned. + /// * [offset] Offset for searching for groups. Defaults to `0`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -891,10 +889,24 @@ class $GroupsClient { /// * [$getGroups_Serializer] for a converter to parse the `Response` from an executed this request. @_i2.experimental _i3.Request $getGroups_Request({ + String? search, + int? limit, + int? offset, bool? oCSAPIRequest, - GroupsGetGroupsRequestApplicationJson? $body, }) { - const _path = '/ocs/v2.php/cloud/groups'; + final _parameters = {}; + var __search = _$jsonSerializers.serialize(search, specifiedType: const FullType(String)); + __search ??= ''; + _parameters['search'] = __search; + + final __limit = _$jsonSerializers.serialize(limit, specifiedType: const FullType(int)); + _parameters['limit'] = __limit; + + var __offset = _$jsonSerializers.serialize(offset, specifiedType: const FullType(int)); + __offset ??= 0; + _parameters['offset'] = __offset; + + final _path = _i6.UriTemplate('/ocs/v2.php/cloud/groups{?search*,limit*,offset*}').expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); _request.headers['Accept'] = 'application/json'; @@ -919,17 +931,6 @@ class $GroupsClient { __oCSAPIRequest ??= true; _request.headers['OCS-APIRequest'] = const _i5.HeaderEncoder().convert(__oCSAPIRequest); - _request.headers['Content-Type'] = 'application/json'; - _request.body = $body != null - ? json.encode( - _$jsonSerializers.serialize($body, specifiedType: const FullType(GroupsGetGroupsRequestApplicationJson)), - ) - : json.encode( - _$jsonSerializers.serialize( - GroupsGetGroupsRequestApplicationJson(), - specifiedType: const FullType(GroupsGetGroupsRequestApplicationJson), - ), - ); return _request; } @@ -939,6 +940,9 @@ class $GroupsClient { /// Throws a `DynamiteApiException` if the API call does not return an expected status code. /// /// Parameters: + /// * [search] Text to search for. Defaults to `""`. + /// * [limit] Limit the amount of groups returned. + /// * [offset] Offset for searching for groups. Defaults to `0`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -948,12 +952,16 @@ class $GroupsClient { /// * [$getGroups_Request] for the request send by this method. /// * [$getGroups_Serializer] for a converter to parse the `Response` from an executed request. Future<_i1.DynamiteResponse> getGroups({ + String? search, + int? limit, + int? offset, bool? oCSAPIRequest, - GroupsGetGroupsRequestApplicationJson? $body, }) async { final _request = $getGroups_Request( + search: search, + limit: limit, + offset: offset, oCSAPIRequest: oCSAPIRequest, - $body: $body, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -1077,6 +1085,9 @@ class $GroupsClient { /// Throws a `DynamiteApiException` if the API call does not return an expected status code. /// /// Parameters: + /// * [search] Text to search for. Defaults to `""`. + /// * [limit] Limit the amount of groups returned. + /// * [offset] Offset for searching for groups. Defaults to `0`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -1087,10 +1098,24 @@ class $GroupsClient { /// * [$getGroupsDetails_Serializer] for a converter to parse the `Response` from an executed this request. @_i2.experimental _i3.Request $getGroupsDetails_Request({ + String? search, + int? limit, + int? offset, bool? oCSAPIRequest, - GroupsGetGroupsDetailsRequestApplicationJson? $body, }) { - const _path = '/ocs/v2.php/cloud/groups/details'; + final _parameters = {}; + var __search = _$jsonSerializers.serialize(search, specifiedType: const FullType(String)); + __search ??= ''; + _parameters['search'] = __search; + + final __limit = _$jsonSerializers.serialize(limit, specifiedType: const FullType(int)); + _parameters['limit'] = __limit; + + var __offset = _$jsonSerializers.serialize(offset, specifiedType: const FullType(int)); + __offset ??= 0; + _parameters['offset'] = __offset; + + final _path = _i6.UriTemplate('/ocs/v2.php/cloud/groups/details{?search*,limit*,offset*}').expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); _request.headers['Accept'] = 'application/json'; @@ -1115,20 +1140,6 @@ class $GroupsClient { __oCSAPIRequest ??= true; _request.headers['OCS-APIRequest'] = const _i5.HeaderEncoder().convert(__oCSAPIRequest); - _request.headers['Content-Type'] = 'application/json'; - _request.body = $body != null - ? json.encode( - _$jsonSerializers.serialize( - $body, - specifiedType: const FullType(GroupsGetGroupsDetailsRequestApplicationJson), - ), - ) - : json.encode( - _$jsonSerializers.serialize( - GroupsGetGroupsDetailsRequestApplicationJson(), - specifiedType: const FullType(GroupsGetGroupsDetailsRequestApplicationJson), - ), - ); return _request; } @@ -1138,6 +1149,9 @@ class $GroupsClient { /// Throws a `DynamiteApiException` if the API call does not return an expected status code. /// /// Parameters: + /// * [search] Text to search for. Defaults to `""`. + /// * [limit] Limit the amount of groups returned. + /// * [offset] Offset for searching for groups. Defaults to `0`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -1147,12 +1161,16 @@ class $GroupsClient { /// * [$getGroupsDetails_Request] for the request send by this method. /// * [$getGroupsDetails_Serializer] for a converter to parse the `Response` from an executed request. Future<_i1.DynamiteResponse> getGroupsDetails({ + String? search, + int? limit, + int? offset, bool? oCSAPIRequest, - GroupsGetGroupsDetailsRequestApplicationJson? $body, }) async { final _request = $getGroupsDetails_Request( + search: search, + limit: limit, + offset: offset, oCSAPIRequest: oCSAPIRequest, - $body: $body, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -1279,6 +1297,9 @@ class $GroupsClient { /// /// Parameters: /// * [groupId] ID of the group. + /// * [search] Text to search for. Defaults to `""`. + /// * [limit] Limit the amount of groups returned. + /// * [offset] Offset for searching for groups. Defaults to `0`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -1290,8 +1311,10 @@ class $GroupsClient { @_i2.experimental _i3.Request $getGroupUsersDetails_Request({ required String groupId, + String? search, + int? limit, + int? offset, bool? oCSAPIRequest, - GroupsGetGroupUsersDetailsRequestApplicationJson? $body, }) { final _parameters = {}; final __groupId = _$jsonSerializers.serialize(groupId, specifiedType: const FullType(String)); @@ -1302,7 +1325,19 @@ class $GroupsClient { ); _parameters['groupId'] = __groupId; - final _path = _i6.UriTemplate('/ocs/v2.php/cloud/groups/{groupId}/users/details').expand(_parameters); + var __search = _$jsonSerializers.serialize(search, specifiedType: const FullType(String)); + __search ??= ''; + _parameters['search'] = __search; + + final __limit = _$jsonSerializers.serialize(limit, specifiedType: const FullType(int)); + _parameters['limit'] = __limit; + + var __offset = _$jsonSerializers.serialize(offset, specifiedType: const FullType(int)); + __offset ??= 0; + _parameters['offset'] = __offset; + + final _path = _i6.UriTemplate('/ocs/v2.php/cloud/groups/{groupId}/users/details{?search*,limit*,offset*}') + .expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); _request.headers['Accept'] = 'application/json'; @@ -1327,20 +1362,6 @@ class $GroupsClient { __oCSAPIRequest ??= true; _request.headers['OCS-APIRequest'] = const _i5.HeaderEncoder().convert(__oCSAPIRequest); - _request.headers['Content-Type'] = 'application/json'; - _request.body = $body != null - ? json.encode( - _$jsonSerializers.serialize( - $body, - specifiedType: const FullType(GroupsGetGroupUsersDetailsRequestApplicationJson), - ), - ) - : json.encode( - _$jsonSerializers.serialize( - GroupsGetGroupUsersDetailsRequestApplicationJson(), - specifiedType: const FullType(GroupsGetGroupUsersDetailsRequestApplicationJson), - ), - ); return _request; } @@ -1351,6 +1372,9 @@ class $GroupsClient { /// /// Parameters: /// * [groupId] ID of the group. + /// * [search] Text to search for. Defaults to `""`. + /// * [limit] Limit the amount of groups returned. + /// * [offset] Offset for searching for groups. Defaults to `0`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -1361,13 +1385,17 @@ class $GroupsClient { /// * [$getGroupUsersDetails_Serializer] for a converter to parse the `Response` from an executed request. Future<_i1.DynamiteResponse> getGroupUsersDetails({ required String groupId, + String? search, + int? limit, + int? offset, bool? oCSAPIRequest, - GroupsGetGroupUsersDetailsRequestApplicationJson? $body, }) async { final _request = $getGroupUsersDetails_Request( groupId: groupId, + search: search, + limit: limit, + offset: offset, oCSAPIRequest: oCSAPIRequest, - $body: $body, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -1723,6 +1751,7 @@ class $PreferencesClient { /// /// Parameters: /// * [appId] ID of the app. + /// * [configKeys] Keys to delete. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -1735,14 +1764,19 @@ class $PreferencesClient { @_i2.experimental _i3.Request $deleteMultiplePreference_Request({ required String appId, - required PreferencesDeleteMultiplePreferenceRequestApplicationJson $body, + required BuiltList configKeys, bool? oCSAPIRequest, }) { final _parameters = {}; final __appId = _$jsonSerializers.serialize(appId, specifiedType: const FullType(String)); _parameters['appId'] = __appId; - final _path = _i6.UriTemplate('/ocs/v2.php/apps/provisioning_api/api/v1/config/users/{appId}').expand(_parameters); + final __configKeys = + _$jsonSerializers.serialize(configKeys, specifiedType: const FullType(BuiltList, [FullType(String)])); + _parameters['configKeys%5B%5D'] = __configKeys; + + final _path = _i6.UriTemplate('/ocs/v2.php/apps/provisioning_api/api/v1/config/users/{appId}{?configKeys%5B%5D*}') + .expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('delete', _uri); _request.headers['Accept'] = 'application/json'; @@ -1767,13 +1801,6 @@ class $PreferencesClient { __oCSAPIRequest ??= true; _request.headers['OCS-APIRequest'] = const _i5.HeaderEncoder().convert(__oCSAPIRequest); - _request.headers['Content-Type'] = 'application/json'; - _request.body = json.encode( - _$jsonSerializers.serialize( - $body, - specifiedType: const FullType(PreferencesDeleteMultiplePreferenceRequestApplicationJson), - ), - ); return _request; } @@ -1784,6 +1811,7 @@ class $PreferencesClient { /// /// Parameters: /// * [appId] ID of the app. + /// * [configKeys] Keys to delete. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -1796,13 +1824,13 @@ class $PreferencesClient { Future<_i1.DynamiteResponse> deleteMultiplePreference({ required String appId, - required PreferencesDeleteMultiplePreferenceRequestApplicationJson $body, + required BuiltList configKeys, bool? oCSAPIRequest, }) async { final _request = $deleteMultiplePreference_Request( appId: appId, + configKeys: configKeys, oCSAPIRequest: oCSAPIRequest, - $body: $body, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -2041,6 +2069,7 @@ class $UsersClient { /// /// Parameters: /// * [userId] ID of the user. + /// * [groupid] ID of the group. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -2052,14 +2081,17 @@ class $UsersClient { @_i2.experimental _i3.Request $removeSubAdmin_Request({ required String userId, - required UsersRemoveSubAdminRequestApplicationJson $body, + required String groupid, bool? oCSAPIRequest, }) { final _parameters = {}; final __userId = _$jsonSerializers.serialize(userId, specifiedType: const FullType(String)); _parameters['userId'] = __userId; - final _path = _i6.UriTemplate('/ocs/v2.php/cloud/users/{userId}/subadmins').expand(_parameters); + final __groupid = _$jsonSerializers.serialize(groupid, specifiedType: const FullType(String)); + _parameters['groupid'] = __groupid; + + final _path = _i6.UriTemplate('/ocs/v2.php/cloud/users/{userId}/subadmins{?groupid*}').expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('delete', _uri); _request.headers['Accept'] = 'application/json'; @@ -2084,10 +2116,6 @@ class $UsersClient { __oCSAPIRequest ??= true; _request.headers['OCS-APIRequest'] = const _i5.HeaderEncoder().convert(__oCSAPIRequest); - _request.headers['Content-Type'] = 'application/json'; - _request.body = json.encode( - _$jsonSerializers.serialize($body, specifiedType: const FullType(UsersRemoveSubAdminRequestApplicationJson)), - ); return _request; } @@ -2101,6 +2129,7 @@ class $UsersClient { /// /// Parameters: /// * [userId] ID of the user. + /// * [groupid] ID of the group. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -2111,13 +2140,13 @@ class $UsersClient { /// * [$removeSubAdmin_Serializer] for a converter to parse the `Response` from an executed request. Future<_i1.DynamiteResponse> removeSubAdmin({ required String userId, - required UsersRemoveSubAdminRequestApplicationJson $body, + required String groupid, bool? oCSAPIRequest, }) async { final _request = $removeSubAdmin_Request( userId: userId, + groupid: groupid, oCSAPIRequest: oCSAPIRequest, - $body: $body, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -2141,6 +2170,9 @@ class $UsersClient { /// Throws a `DynamiteApiException` if the API call does not return an expected status code. /// /// Parameters: + /// * [search] Text to search for. Defaults to `""`. + /// * [limit] Limit the amount of groups returned. + /// * [offset] Offset for searching for groups. Defaults to `0`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -2151,10 +2183,24 @@ class $UsersClient { /// * [$getUsers_Serializer] for a converter to parse the `Response` from an executed this request. @_i2.experimental _i3.Request $getUsers_Request({ + String? search, + int? limit, + int? offset, bool? oCSAPIRequest, - UsersGetUsersRequestApplicationJson? $body, }) { - const _path = '/ocs/v2.php/cloud/users'; + final _parameters = {}; + var __search = _$jsonSerializers.serialize(search, specifiedType: const FullType(String)); + __search ??= ''; + _parameters['search'] = __search; + + final __limit = _$jsonSerializers.serialize(limit, specifiedType: const FullType(int)); + _parameters['limit'] = __limit; + + var __offset = _$jsonSerializers.serialize(offset, specifiedType: const FullType(int)); + __offset ??= 0; + _parameters['offset'] = __offset; + + final _path = _i6.UriTemplate('/ocs/v2.php/cloud/users{?search*,limit*,offset*}').expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); _request.headers['Accept'] = 'application/json'; @@ -2179,17 +2225,6 @@ class $UsersClient { __oCSAPIRequest ??= true; _request.headers['OCS-APIRequest'] = const _i5.HeaderEncoder().convert(__oCSAPIRequest); - _request.headers['Content-Type'] = 'application/json'; - _request.body = $body != null - ? json.encode( - _$jsonSerializers.serialize($body, specifiedType: const FullType(UsersGetUsersRequestApplicationJson)), - ) - : json.encode( - _$jsonSerializers.serialize( - UsersGetUsersRequestApplicationJson(), - specifiedType: const FullType(UsersGetUsersRequestApplicationJson), - ), - ); return _request; } @@ -2199,6 +2234,9 @@ class $UsersClient { /// Throws a `DynamiteApiException` if the API call does not return an expected status code. /// /// Parameters: + /// * [search] Text to search for. Defaults to `""`. + /// * [limit] Limit the amount of groups returned. + /// * [offset] Offset for searching for groups. Defaults to `0`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -2208,12 +2246,16 @@ class $UsersClient { /// * [$getUsers_Request] for the request send by this method. /// * [$getUsers_Serializer] for a converter to parse the `Response` from an executed request. Future<_i1.DynamiteResponse> getUsers({ + String? search, + int? limit, + int? offset, bool? oCSAPIRequest, - UsersGetUsersRequestApplicationJson? $body, }) async { final _request = $getUsers_Request( + search: search, + limit: limit, + offset: offset, oCSAPIRequest: oCSAPIRequest, - $body: $body, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -2332,6 +2374,9 @@ class $UsersClient { /// Throws a `DynamiteApiException` if the API call does not return an expected status code. /// /// Parameters: + /// * [search] Text to search for. Defaults to `""`. + /// * [limit] Limit the amount of groups returned. + /// * [offset] Offset for searching for groups. Defaults to `0`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -2342,10 +2387,24 @@ class $UsersClient { /// * [$getUsersDetails_Serializer] for a converter to parse the `Response` from an executed this request. @_i2.experimental _i3.Request $getUsersDetails_Request({ + String? search, + int? limit, + int? offset, bool? oCSAPIRequest, - UsersGetUsersDetailsRequestApplicationJson? $body, }) { - const _path = '/ocs/v2.php/cloud/users/details'; + final _parameters = {}; + var __search = _$jsonSerializers.serialize(search, specifiedType: const FullType(String)); + __search ??= ''; + _parameters['search'] = __search; + + final __limit = _$jsonSerializers.serialize(limit, specifiedType: const FullType(int)); + _parameters['limit'] = __limit; + + var __offset = _$jsonSerializers.serialize(offset, specifiedType: const FullType(int)); + __offset ??= 0; + _parameters['offset'] = __offset; + + final _path = _i6.UriTemplate('/ocs/v2.php/cloud/users/details{?search*,limit*,offset*}').expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); _request.headers['Accept'] = 'application/json'; @@ -2370,20 +2429,6 @@ class $UsersClient { __oCSAPIRequest ??= true; _request.headers['OCS-APIRequest'] = const _i5.HeaderEncoder().convert(__oCSAPIRequest); - _request.headers['Content-Type'] = 'application/json'; - _request.body = $body != null - ? json.encode( - _$jsonSerializers.serialize( - $body, - specifiedType: const FullType(UsersGetUsersDetailsRequestApplicationJson), - ), - ) - : json.encode( - _$jsonSerializers.serialize( - UsersGetUsersDetailsRequestApplicationJson(), - specifiedType: const FullType(UsersGetUsersDetailsRequestApplicationJson), - ), - ); return _request; } @@ -2393,6 +2438,9 @@ class $UsersClient { /// Throws a `DynamiteApiException` if the API call does not return an expected status code. /// /// Parameters: + /// * [search] Text to search for. Defaults to `""`. + /// * [limit] Limit the amount of groups returned. + /// * [offset] Offset for searching for groups. Defaults to `0`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -2402,12 +2450,16 @@ class $UsersClient { /// * [$getUsersDetails_Request] for the request send by this method. /// * [$getUsersDetails_Serializer] for a converter to parse the `Response` from an executed request. Future<_i1.DynamiteResponse> getUsersDetails({ + String? search, + int? limit, + int? offset, bool? oCSAPIRequest, - UsersGetUsersDetailsRequestApplicationJson? $body, }) async { final _request = $getUsersDetails_Request( + search: search, + limit: limit, + offset: offset, oCSAPIRequest: oCSAPIRequest, - $body: $body, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -2432,6 +2484,8 @@ class $UsersClient { /// Throws a `DynamiteApiException` if the API call does not return an expected status code. /// /// Parameters: + /// * [limit] Limit the amount of users returned. + /// * [offset] Offset. Defaults to `0`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -2442,10 +2496,19 @@ class $UsersClient { /// * [$getDisabledUsersDetails_Serializer] for a converter to parse the `Response` from an executed this request. @_i2.experimental _i3.Request $getDisabledUsersDetails_Request({ + int? limit, + int? offset, bool? oCSAPIRequest, - UsersGetDisabledUsersDetailsRequestApplicationJson? $body, }) { - const _path = '/ocs/v2.php/cloud/users/disabled'; + final _parameters = {}; + final __limit = _$jsonSerializers.serialize(limit, specifiedType: const FullType(int)); + _parameters['limit'] = __limit; + + var __offset = _$jsonSerializers.serialize(offset, specifiedType: const FullType(int)); + __offset ??= 0; + _parameters['offset'] = __offset; + + final _path = _i6.UriTemplate('/ocs/v2.php/cloud/users/disabled{?limit*,offset*}').expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); _request.headers['Accept'] = 'application/json'; @@ -2470,20 +2533,6 @@ class $UsersClient { __oCSAPIRequest ??= true; _request.headers['OCS-APIRequest'] = const _i5.HeaderEncoder().convert(__oCSAPIRequest); - _request.headers['Content-Type'] = 'application/json'; - _request.body = $body != null - ? json.encode( - _$jsonSerializers.serialize( - $body, - specifiedType: const FullType(UsersGetDisabledUsersDetailsRequestApplicationJson), - ), - ) - : json.encode( - _$jsonSerializers.serialize( - UsersGetDisabledUsersDetailsRequestApplicationJson(), - specifiedType: const FullType(UsersGetDisabledUsersDetailsRequestApplicationJson), - ), - ); return _request; } @@ -2493,6 +2542,8 @@ class $UsersClient { /// Throws a `DynamiteApiException` if the API call does not return an expected status code. /// /// Parameters: + /// * [limit] Limit the amount of users returned. + /// * [offset] Offset. Defaults to `0`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -2502,12 +2553,14 @@ class $UsersClient { /// * [$getDisabledUsersDetails_Request] for the request send by this method. /// * [$getDisabledUsersDetails_Serializer] for a converter to parse the `Response` from an executed request. Future<_i1.DynamiteResponse> getDisabledUsersDetails({ + int? limit, + int? offset, bool? oCSAPIRequest, - UsersGetDisabledUsersDetailsRequestApplicationJson? $body, }) async { final _request = $getDisabledUsersDetails_Request( + limit: limit, + offset: offset, oCSAPIRequest: oCSAPIRequest, - $body: $body, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -3784,6 +3837,7 @@ class $UsersClient { /// /// Parameters: /// * [userId] ID of the user. + /// * [groupid] ID of the group. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -3795,14 +3849,17 @@ class $UsersClient { @_i2.experimental _i3.Request $removeFromGroup_Request({ required String userId, - required UsersRemoveFromGroupRequestApplicationJson $body, + required String groupid, bool? oCSAPIRequest, }) { final _parameters = {}; final __userId = _$jsonSerializers.serialize(userId, specifiedType: const FullType(String)); _parameters['userId'] = __userId; - final _path = _i6.UriTemplate('/ocs/v2.php/cloud/users/{userId}/groups').expand(_parameters); + final __groupid = _$jsonSerializers.serialize(groupid, specifiedType: const FullType(String)); + _parameters['groupid'] = __groupid; + + final _path = _i6.UriTemplate('/ocs/v2.php/cloud/users/{userId}/groups{?groupid*}').expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('delete', _uri); _request.headers['Accept'] = 'application/json'; @@ -3827,10 +3884,6 @@ class $UsersClient { __oCSAPIRequest ??= true; _request.headers['OCS-APIRequest'] = const _i5.HeaderEncoder().convert(__oCSAPIRequest); - _request.headers['Content-Type'] = 'application/json'; - _request.body = json.encode( - _$jsonSerializers.serialize($body, specifiedType: const FullType(UsersRemoveFromGroupRequestApplicationJson)), - ); return _request; } @@ -3843,6 +3896,7 @@ class $UsersClient { /// /// Parameters: /// * [userId] ID of the user. + /// * [groupid] ID of the group. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -3853,13 +3907,13 @@ class $UsersClient { /// * [$removeFromGroup_Serializer] for a converter to parse the `Response` from an executed request. Future<_i1.DynamiteResponse> removeFromGroup({ required String userId, - required UsersRemoveFromGroupRequestApplicationJson $body, + required String groupid, bool? oCSAPIRequest, }) async { final _request = $removeFromGroup_Request( userId: userId, + groupid: groupid, oCSAPIRequest: oCSAPIRequest, - $body: $body, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -4594,68 +4648,6 @@ abstract class AppConfigSetValueResponseApplicationJson } } -@BuiltValue(instantiable: false) -sealed class $AppsGetAppsRequestApplicationJsonInterface { - /// Filter for enabled or disabled apps. - String? get filter; - - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$AppsGetAppsRequestApplicationJsonInterfaceBuilder]. - $AppsGetAppsRequestApplicationJsonInterface rebuild( - void Function($AppsGetAppsRequestApplicationJsonInterfaceBuilder) updates, - ); - - /// Converts the instance to a builder [$AppsGetAppsRequestApplicationJsonInterfaceBuilder]. - $AppsGetAppsRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($AppsGetAppsRequestApplicationJsonInterfaceBuilder b) {} - @BuiltValueHook(finalizeBuilder: true) - static void _validate($AppsGetAppsRequestApplicationJsonInterfaceBuilder b) {} -} - -abstract class AppsGetAppsRequestApplicationJson - implements - $AppsGetAppsRequestApplicationJsonInterface, - Built { - /// Creates a new AppsGetAppsRequestApplicationJson object using the builder pattern. - factory AppsGetAppsRequestApplicationJson([void Function(AppsGetAppsRequestApplicationJsonBuilder)? b]) = - _$AppsGetAppsRequestApplicationJson; - - // coverage:ignore-start - const AppsGetAppsRequestApplicationJson._(); - // coverage:ignore-end - - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory AppsGetAppsRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end - - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end - - /// Serializer for AppsGetAppsRequestApplicationJson. - static Serializer get serializer => _$appsGetAppsRequestApplicationJsonSerializer; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults(AppsGetAppsRequestApplicationJsonBuilder b) { - $AppsGetAppsRequestApplicationJsonInterface._defaults(b); - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate(AppsGetAppsRequestApplicationJsonBuilder b) { - $AppsGetAppsRequestApplicationJsonInterface._validate(b); - } -} - @BuiltValue(instantiable: false) sealed class $AppsGetAppsResponseApplicationJson_Ocs_DataInterface { BuiltList get apps; @@ -5348,89 +5340,6 @@ abstract class GroupsGetSubAdminsOfGroupResponseApplicationJson } } -@BuiltValue(instantiable: false) -sealed class $GroupsGetGroupsRequestApplicationJsonInterface { - static final _$search = _$jsonSerializers.deserialize( - '', - specifiedType: const FullType(String), - )! as String; - - static final _$offset = _$jsonSerializers.deserialize( - 0, - specifiedType: const FullType(int), - )! as int; - - /// Text to search for. - String get search; - - /// Limit the amount of groups returned. - int? get limit; - - /// Offset for searching for groups. - int get offset; - - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$GroupsGetGroupsRequestApplicationJsonInterfaceBuilder]. - $GroupsGetGroupsRequestApplicationJsonInterface rebuild( - void Function($GroupsGetGroupsRequestApplicationJsonInterfaceBuilder) updates, - ); - - /// Converts the instance to a builder [$GroupsGetGroupsRequestApplicationJsonInterfaceBuilder]. - $GroupsGetGroupsRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($GroupsGetGroupsRequestApplicationJsonInterfaceBuilder b) { - b.search = _$search; - b.offset = _$offset; - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate($GroupsGetGroupsRequestApplicationJsonInterfaceBuilder b) {} -} - -abstract class GroupsGetGroupsRequestApplicationJson - implements - $GroupsGetGroupsRequestApplicationJsonInterface, - Built { - /// Creates a new GroupsGetGroupsRequestApplicationJson object using the builder pattern. - factory GroupsGetGroupsRequestApplicationJson([void Function(GroupsGetGroupsRequestApplicationJsonBuilder)? b]) = - _$GroupsGetGroupsRequestApplicationJson; - - // coverage:ignore-start - const GroupsGetGroupsRequestApplicationJson._(); - // coverage:ignore-end - - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory GroupsGetGroupsRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end - - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end - - /// Serializer for GroupsGetGroupsRequestApplicationJson. - static Serializer get serializer => - _$groupsGetGroupsRequestApplicationJsonSerializer; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults(GroupsGetGroupsRequestApplicationJsonBuilder b) { - $GroupsGetGroupsRequestApplicationJsonInterface._defaults(b); - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate(GroupsGetGroupsRequestApplicationJsonBuilder b) { - $GroupsGetGroupsRequestApplicationJsonInterface._validate(b); - } -} - @BuiltValue(instantiable: false) sealed class $GroupsGetGroupsResponseApplicationJson_Ocs_DataInterface { BuiltList get groups; @@ -5809,90 +5718,6 @@ abstract class GroupsGetGroupResponseApplicationJson } } -@BuiltValue(instantiable: false) -sealed class $GroupsGetGroupsDetailsRequestApplicationJsonInterface { - static final _$search = _$jsonSerializers.deserialize( - '', - specifiedType: const FullType(String), - )! as String; - - static final _$offset = _$jsonSerializers.deserialize( - 0, - specifiedType: const FullType(int), - )! as int; - - /// Text to search for. - String get search; - - /// Limit the amount of groups returned. - int? get limit; - - /// Offset for searching for groups. - int get offset; - - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$GroupsGetGroupsDetailsRequestApplicationJsonInterfaceBuilder]. - $GroupsGetGroupsDetailsRequestApplicationJsonInterface rebuild( - void Function($GroupsGetGroupsDetailsRequestApplicationJsonInterfaceBuilder) updates, - ); - - /// Converts the instance to a builder [$GroupsGetGroupsDetailsRequestApplicationJsonInterfaceBuilder]. - $GroupsGetGroupsDetailsRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($GroupsGetGroupsDetailsRequestApplicationJsonInterfaceBuilder b) { - b.search = _$search; - b.offset = _$offset; - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate($GroupsGetGroupsDetailsRequestApplicationJsonInterfaceBuilder b) {} -} - -abstract class GroupsGetGroupsDetailsRequestApplicationJson - implements - $GroupsGetGroupsDetailsRequestApplicationJsonInterface, - Built { - /// Creates a new GroupsGetGroupsDetailsRequestApplicationJson object using the builder pattern. - factory GroupsGetGroupsDetailsRequestApplicationJson([ - void Function(GroupsGetGroupsDetailsRequestApplicationJsonBuilder)? b, - ]) = _$GroupsGetGroupsDetailsRequestApplicationJson; - - // coverage:ignore-start - const GroupsGetGroupsDetailsRequestApplicationJson._(); - // coverage:ignore-end - - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory GroupsGetGroupsDetailsRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end - - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end - - /// Serializer for GroupsGetGroupsDetailsRequestApplicationJson. - static Serializer get serializer => - _$groupsGetGroupsDetailsRequestApplicationJsonSerializer; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults(GroupsGetGroupsDetailsRequestApplicationJsonBuilder b) { - $GroupsGetGroupsDetailsRequestApplicationJsonInterface._defaults(b); - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate(GroupsGetGroupsDetailsRequestApplicationJsonBuilder b) { - $GroupsGetGroupsDetailsRequestApplicationJsonInterface._validate(b); - } -} - typedef GroupDetails_Usercount = ({bool? $bool, int? $int}); typedef GroupDetails_Disabled = ({bool? $bool, int? $int}); @@ -6341,91 +6166,6 @@ abstract class GroupsGetGroupUsersResponseApplicationJson } } -@BuiltValue(instantiable: false) -sealed class $GroupsGetGroupUsersDetailsRequestApplicationJsonInterface { - static final _$search = _$jsonSerializers.deserialize( - '', - specifiedType: const FullType(String), - )! as String; - - static final _$offset = _$jsonSerializers.deserialize( - 0, - specifiedType: const FullType(int), - )! as int; - - /// Text to search for. - String get search; - - /// Limit the amount of groups returned. - int? get limit; - - /// Offset for searching for groups. - int get offset; - - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$GroupsGetGroupUsersDetailsRequestApplicationJsonInterfaceBuilder]. - $GroupsGetGroupUsersDetailsRequestApplicationJsonInterface rebuild( - void Function($GroupsGetGroupUsersDetailsRequestApplicationJsonInterfaceBuilder) updates, - ); - - /// Converts the instance to a builder [$GroupsGetGroupUsersDetailsRequestApplicationJsonInterfaceBuilder]. - $GroupsGetGroupUsersDetailsRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($GroupsGetGroupUsersDetailsRequestApplicationJsonInterfaceBuilder b) { - b.search = _$search; - b.offset = _$offset; - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate($GroupsGetGroupUsersDetailsRequestApplicationJsonInterfaceBuilder b) {} -} - -abstract class GroupsGetGroupUsersDetailsRequestApplicationJson - implements - $GroupsGetGroupUsersDetailsRequestApplicationJsonInterface, - Built { - /// Creates a new GroupsGetGroupUsersDetailsRequestApplicationJson object using the builder pattern. - factory GroupsGetGroupUsersDetailsRequestApplicationJson([ - void Function(GroupsGetGroupUsersDetailsRequestApplicationJsonBuilder)? b, - ]) = _$GroupsGetGroupUsersDetailsRequestApplicationJson; - - // coverage:ignore-start - const GroupsGetGroupUsersDetailsRequestApplicationJson._(); - // coverage:ignore-end - - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory GroupsGetGroupUsersDetailsRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end - - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end - - /// Serializer for GroupsGetGroupUsersDetailsRequestApplicationJson. - static Serializer get serializer => - _$groupsGetGroupUsersDetailsRequestApplicationJsonSerializer; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults(GroupsGetGroupUsersDetailsRequestApplicationJsonBuilder b) { - $GroupsGetGroupUsersDetailsRequestApplicationJsonInterface._defaults(b); - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate(GroupsGetGroupUsersDetailsRequestApplicationJsonBuilder b) { - $GroupsGetGroupUsersDetailsRequestApplicationJsonInterface._validate(b); - } -} - @BuiltValue(instantiable: false) sealed class $UserDetails_BackendCapabilitiesInterface { bool get setDisplayName; @@ -7428,71 +7168,6 @@ abstract class PreferencesSetMultiplePreferencesResponseApplicationJson } } -@BuiltValue(instantiable: false) -sealed class $PreferencesDeleteMultiplePreferenceRequestApplicationJsonInterface { - /// Keys to delete. - BuiltList get configKeys; - - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$PreferencesDeleteMultiplePreferenceRequestApplicationJsonInterfaceBuilder]. - $PreferencesDeleteMultiplePreferenceRequestApplicationJsonInterface rebuild( - void Function($PreferencesDeleteMultiplePreferenceRequestApplicationJsonInterfaceBuilder) updates, - ); - - /// Converts the instance to a builder [$PreferencesDeleteMultiplePreferenceRequestApplicationJsonInterfaceBuilder]. - $PreferencesDeleteMultiplePreferenceRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($PreferencesDeleteMultiplePreferenceRequestApplicationJsonInterfaceBuilder b) {} - @BuiltValueHook(finalizeBuilder: true) - static void _validate($PreferencesDeleteMultiplePreferenceRequestApplicationJsonInterfaceBuilder b) {} -} - -abstract class PreferencesDeleteMultiplePreferenceRequestApplicationJson - implements - $PreferencesDeleteMultiplePreferenceRequestApplicationJsonInterface, - Built { - /// Creates a new PreferencesDeleteMultiplePreferenceRequestApplicationJson object using the builder pattern. - factory PreferencesDeleteMultiplePreferenceRequestApplicationJson([ - void Function(PreferencesDeleteMultiplePreferenceRequestApplicationJsonBuilder)? b, - ]) = _$PreferencesDeleteMultiplePreferenceRequestApplicationJson; - - // coverage:ignore-start - const PreferencesDeleteMultiplePreferenceRequestApplicationJson._(); - // coverage:ignore-end - - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory PreferencesDeleteMultiplePreferenceRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end - - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end - - /// Serializer for PreferencesDeleteMultiplePreferenceRequestApplicationJson. - static Serializer get serializer => - _$preferencesDeleteMultiplePreferenceRequestApplicationJsonSerializer; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults(PreferencesDeleteMultiplePreferenceRequestApplicationJsonBuilder b) { - $PreferencesDeleteMultiplePreferenceRequestApplicationJsonInterface._defaults(b); - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate(PreferencesDeleteMultiplePreferenceRequestApplicationJsonBuilder b) { - $PreferencesDeleteMultiplePreferenceRequestApplicationJsonInterface._validate(b); - } -} - @BuiltValue(instantiable: false) sealed class $PreferencesDeleteMultiplePreferenceResponseApplicationJson_OcsInterface { OCSMeta get meta; @@ -7940,70 +7615,6 @@ abstract class UsersAddSubAdminResponseApplicationJson } } -@BuiltValue(instantiable: false) -sealed class $UsersRemoveSubAdminRequestApplicationJsonInterface { - /// ID of the group. - String get groupid; - - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$UsersRemoveSubAdminRequestApplicationJsonInterfaceBuilder]. - $UsersRemoveSubAdminRequestApplicationJsonInterface rebuild( - void Function($UsersRemoveSubAdminRequestApplicationJsonInterfaceBuilder) updates, - ); - - /// Converts the instance to a builder [$UsersRemoveSubAdminRequestApplicationJsonInterfaceBuilder]. - $UsersRemoveSubAdminRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($UsersRemoveSubAdminRequestApplicationJsonInterfaceBuilder b) {} - @BuiltValueHook(finalizeBuilder: true) - static void _validate($UsersRemoveSubAdminRequestApplicationJsonInterfaceBuilder b) {} -} - -abstract class UsersRemoveSubAdminRequestApplicationJson - implements - $UsersRemoveSubAdminRequestApplicationJsonInterface, - Built { - /// Creates a new UsersRemoveSubAdminRequestApplicationJson object using the builder pattern. - factory UsersRemoveSubAdminRequestApplicationJson([ - void Function(UsersRemoveSubAdminRequestApplicationJsonBuilder)? b, - ]) = _$UsersRemoveSubAdminRequestApplicationJson; - - // coverage:ignore-start - const UsersRemoveSubAdminRequestApplicationJson._(); - // coverage:ignore-end - - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory UsersRemoveSubAdminRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end - - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end - - /// Serializer for UsersRemoveSubAdminRequestApplicationJson. - static Serializer get serializer => - _$usersRemoveSubAdminRequestApplicationJsonSerializer; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults(UsersRemoveSubAdminRequestApplicationJsonBuilder b) { - $UsersRemoveSubAdminRequestApplicationJsonInterface._defaults(b); - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate(UsersRemoveSubAdminRequestApplicationJsonBuilder b) { - $UsersRemoveSubAdminRequestApplicationJsonInterface._validate(b); - } -} - @BuiltValue(instantiable: false) sealed class $UsersRemoveSubAdminResponseApplicationJson_OcsInterface { OCSMeta get meta; @@ -8131,89 +7742,6 @@ abstract class UsersRemoveSubAdminResponseApplicationJson } } -@BuiltValue(instantiable: false) -sealed class $UsersGetUsersRequestApplicationJsonInterface { - static final _$search = _$jsonSerializers.deserialize( - '', - specifiedType: const FullType(String), - )! as String; - - static final _$offset = _$jsonSerializers.deserialize( - 0, - specifiedType: const FullType(int), - )! as int; - - /// Text to search for. - String get search; - - /// Limit the amount of groups returned. - int? get limit; - - /// Offset for searching for groups. - int get offset; - - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$UsersGetUsersRequestApplicationJsonInterfaceBuilder]. - $UsersGetUsersRequestApplicationJsonInterface rebuild( - void Function($UsersGetUsersRequestApplicationJsonInterfaceBuilder) updates, - ); - - /// Converts the instance to a builder [$UsersGetUsersRequestApplicationJsonInterfaceBuilder]. - $UsersGetUsersRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($UsersGetUsersRequestApplicationJsonInterfaceBuilder b) { - b.search = _$search; - b.offset = _$offset; - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate($UsersGetUsersRequestApplicationJsonInterfaceBuilder b) {} -} - -abstract class UsersGetUsersRequestApplicationJson - implements - $UsersGetUsersRequestApplicationJsonInterface, - Built { - /// Creates a new UsersGetUsersRequestApplicationJson object using the builder pattern. - factory UsersGetUsersRequestApplicationJson([void Function(UsersGetUsersRequestApplicationJsonBuilder)? b]) = - _$UsersGetUsersRequestApplicationJson; - - // coverage:ignore-start - const UsersGetUsersRequestApplicationJson._(); - // coverage:ignore-end - - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory UsersGetUsersRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end - - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end - - /// Serializer for UsersGetUsersRequestApplicationJson. - static Serializer get serializer => - _$usersGetUsersRequestApplicationJsonSerializer; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults(UsersGetUsersRequestApplicationJsonBuilder b) { - $UsersGetUsersRequestApplicationJsonInterface._defaults(b); - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate(UsersGetUsersRequestApplicationJsonBuilder b) { - $UsersGetUsersRequestApplicationJsonInterface._validate(b); - } -} - @BuiltValue(instantiable: false) sealed class $UsersGetUsersResponseApplicationJson_Ocs_DataInterface { BuiltList get users; @@ -8722,90 +8250,6 @@ abstract class UsersAddUserResponseApplicationJson } } -@BuiltValue(instantiable: false) -sealed class $UsersGetUsersDetailsRequestApplicationJsonInterface { - static final _$search = _$jsonSerializers.deserialize( - '', - specifiedType: const FullType(String), - )! as String; - - static final _$offset = _$jsonSerializers.deserialize( - 0, - specifiedType: const FullType(int), - )! as int; - - /// Text to search for. - String get search; - - /// Limit the amount of groups returned. - int? get limit; - - /// Offset for searching for groups. - int get offset; - - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$UsersGetUsersDetailsRequestApplicationJsonInterfaceBuilder]. - $UsersGetUsersDetailsRequestApplicationJsonInterface rebuild( - void Function($UsersGetUsersDetailsRequestApplicationJsonInterfaceBuilder) updates, - ); - - /// Converts the instance to a builder [$UsersGetUsersDetailsRequestApplicationJsonInterfaceBuilder]. - $UsersGetUsersDetailsRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($UsersGetUsersDetailsRequestApplicationJsonInterfaceBuilder b) { - b.search = _$search; - b.offset = _$offset; - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate($UsersGetUsersDetailsRequestApplicationJsonInterfaceBuilder b) {} -} - -abstract class UsersGetUsersDetailsRequestApplicationJson - implements - $UsersGetUsersDetailsRequestApplicationJsonInterface, - Built { - /// Creates a new UsersGetUsersDetailsRequestApplicationJson object using the builder pattern. - factory UsersGetUsersDetailsRequestApplicationJson([ - void Function(UsersGetUsersDetailsRequestApplicationJsonBuilder)? b, - ]) = _$UsersGetUsersDetailsRequestApplicationJson; - - // coverage:ignore-start - const UsersGetUsersDetailsRequestApplicationJson._(); - // coverage:ignore-end - - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory UsersGetUsersDetailsRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end - - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end - - /// Serializer for UsersGetUsersDetailsRequestApplicationJson. - static Serializer get serializer => - _$usersGetUsersDetailsRequestApplicationJsonSerializer; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults(UsersGetUsersDetailsRequestApplicationJsonBuilder b) { - $UsersGetUsersDetailsRequestApplicationJsonInterface._defaults(b); - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate(UsersGetUsersDetailsRequestApplicationJsonBuilder b) { - $UsersGetUsersDetailsRequestApplicationJsonInterface._validate(b); - } -} - @BuiltValue(instantiable: false) sealed class $UsersGetUsersDetailsResponseApplicationJson_Ocs_Data_Users1Interface { String get id; @@ -9066,82 +8510,6 @@ abstract class UsersGetUsersDetailsResponseApplicationJson } } -@BuiltValue(instantiable: false) -sealed class $UsersGetDisabledUsersDetailsRequestApplicationJsonInterface { - static final _$offset = _$jsonSerializers.deserialize( - 0, - specifiedType: const FullType(int), - )! as int; - - /// Limit the amount of users returned. - int? get limit; - - /// Offset. - int get offset; - - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$UsersGetDisabledUsersDetailsRequestApplicationJsonInterfaceBuilder]. - $UsersGetDisabledUsersDetailsRequestApplicationJsonInterface rebuild( - void Function($UsersGetDisabledUsersDetailsRequestApplicationJsonInterfaceBuilder) updates, - ); - - /// Converts the instance to a builder [$UsersGetDisabledUsersDetailsRequestApplicationJsonInterfaceBuilder]. - $UsersGetDisabledUsersDetailsRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($UsersGetDisabledUsersDetailsRequestApplicationJsonInterfaceBuilder b) { - b.offset = _$offset; - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate($UsersGetDisabledUsersDetailsRequestApplicationJsonInterfaceBuilder b) {} -} - -abstract class UsersGetDisabledUsersDetailsRequestApplicationJson - implements - $UsersGetDisabledUsersDetailsRequestApplicationJsonInterface, - Built { - /// Creates a new UsersGetDisabledUsersDetailsRequestApplicationJson object using the builder pattern. - factory UsersGetDisabledUsersDetailsRequestApplicationJson([ - void Function(UsersGetDisabledUsersDetailsRequestApplicationJsonBuilder)? b, - ]) = _$UsersGetDisabledUsersDetailsRequestApplicationJson; - - // coverage:ignore-start - const UsersGetDisabledUsersDetailsRequestApplicationJson._(); - // coverage:ignore-end - - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory UsersGetDisabledUsersDetailsRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end - - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end - - /// Serializer for UsersGetDisabledUsersDetailsRequestApplicationJson. - static Serializer get serializer => - _$usersGetDisabledUsersDetailsRequestApplicationJsonSerializer; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults(UsersGetDisabledUsersDetailsRequestApplicationJsonBuilder b) { - $UsersGetDisabledUsersDetailsRequestApplicationJsonInterface._defaults(b); - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate(UsersGetDisabledUsersDetailsRequestApplicationJsonBuilder b) { - $UsersGetDisabledUsersDetailsRequestApplicationJsonInterface._validate(b); - } -} - @BuiltValue(instantiable: false) sealed class $UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1Interface { String get id; @@ -11389,70 +10757,6 @@ abstract class UsersAddToGroupResponseApplicationJson } } -@BuiltValue(instantiable: false) -sealed class $UsersRemoveFromGroupRequestApplicationJsonInterface { - /// ID of the group. - String get groupid; - - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$UsersRemoveFromGroupRequestApplicationJsonInterfaceBuilder]. - $UsersRemoveFromGroupRequestApplicationJsonInterface rebuild( - void Function($UsersRemoveFromGroupRequestApplicationJsonInterfaceBuilder) updates, - ); - - /// Converts the instance to a builder [$UsersRemoveFromGroupRequestApplicationJsonInterfaceBuilder]. - $UsersRemoveFromGroupRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($UsersRemoveFromGroupRequestApplicationJsonInterfaceBuilder b) {} - @BuiltValueHook(finalizeBuilder: true) - static void _validate($UsersRemoveFromGroupRequestApplicationJsonInterfaceBuilder b) {} -} - -abstract class UsersRemoveFromGroupRequestApplicationJson - implements - $UsersRemoveFromGroupRequestApplicationJsonInterface, - Built { - /// Creates a new UsersRemoveFromGroupRequestApplicationJson object using the builder pattern. - factory UsersRemoveFromGroupRequestApplicationJson([ - void Function(UsersRemoveFromGroupRequestApplicationJsonBuilder)? b, - ]) = _$UsersRemoveFromGroupRequestApplicationJson; - - // coverage:ignore-start - const UsersRemoveFromGroupRequestApplicationJson._(); - // coverage:ignore-end - - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory UsersRemoveFromGroupRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end - - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end - - /// Serializer for UsersRemoveFromGroupRequestApplicationJson. - static Serializer get serializer => - _$usersRemoveFromGroupRequestApplicationJsonSerializer; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults(UsersRemoveFromGroupRequestApplicationJsonBuilder b) { - $UsersRemoveFromGroupRequestApplicationJsonInterface._defaults(b); - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate(UsersRemoveFromGroupRequestApplicationJsonBuilder b) { - $UsersRemoveFromGroupRequestApplicationJsonInterface._validate(b); - } -} - @BuiltValue(instantiable: false) sealed class $UsersRemoveFromGroupResponseApplicationJson_OcsInterface { OCSMeta get meta; @@ -12408,11 +11712,6 @@ final Serializers _$serializers = (Serializers().toBuilder() AppConfigSetValueResponseApplicationJson_OcsBuilder.new, ) ..add(AppConfigSetValueResponseApplicationJson_Ocs.serializer) - ..addBuilderFactory( - const FullType(AppsGetAppsRequestApplicationJson), - AppsGetAppsRequestApplicationJsonBuilder.new, - ) - ..add(AppsGetAppsRequestApplicationJson.serializer) ..addBuilderFactory( const FullType(AppsGetAppsResponseApplicationJson), AppsGetAppsResponseApplicationJsonBuilder.new, @@ -12472,11 +11771,6 @@ final Serializers _$serializers = (Serializers().toBuilder() GroupsGetSubAdminsOfGroupResponseApplicationJson_OcsBuilder.new, ) ..add(GroupsGetSubAdminsOfGroupResponseApplicationJson_Ocs.serializer) - ..addBuilderFactory( - const FullType(GroupsGetGroupsRequestApplicationJson), - GroupsGetGroupsRequestApplicationJsonBuilder.new, - ) - ..add(GroupsGetGroupsRequestApplicationJson.serializer) ..addBuilderFactory( const FullType(GroupsGetGroupsResponseApplicationJson), GroupsGetGroupsResponseApplicationJsonBuilder.new, @@ -12507,11 +11801,6 @@ final Serializers _$serializers = (Serializers().toBuilder() GroupsGetGroupResponseApplicationJson_Ocs_DataBuilder.new, ) ..add(GroupsGetGroupResponseApplicationJson_Ocs_Data.serializer) - ..addBuilderFactory( - const FullType(GroupsGetGroupsDetailsRequestApplicationJson), - GroupsGetGroupsDetailsRequestApplicationJsonBuilder.new, - ) - ..add(GroupsGetGroupsDetailsRequestApplicationJson.serializer) ..addBuilderFactory( const FullType(GroupsGetGroupsDetailsResponseApplicationJson), GroupsGetGroupsDetailsResponseApplicationJsonBuilder.new, @@ -12546,11 +11835,6 @@ final Serializers _$serializers = (Serializers().toBuilder() GroupsGetGroupUsersResponseApplicationJson_Ocs_DataBuilder.new, ) ..add(GroupsGetGroupUsersResponseApplicationJson_Ocs_Data.serializer) - ..addBuilderFactory( - const FullType(GroupsGetGroupUsersDetailsRequestApplicationJson), - GroupsGetGroupUsersDetailsRequestApplicationJsonBuilder.new, - ) - ..add(GroupsGetGroupUsersDetailsRequestApplicationJson.serializer) ..addBuilderFactory( const FullType(GroupsGetGroupUsersDetailsResponseApplicationJson), GroupsGetGroupUsersDetailsResponseApplicationJsonBuilder.new, @@ -12630,11 +11914,6 @@ final Serializers _$serializers = (Serializers().toBuilder() PreferencesSetMultiplePreferencesResponseApplicationJson_OcsBuilder.new, ) ..add(PreferencesSetMultiplePreferencesResponseApplicationJson_Ocs.serializer) - ..addBuilderFactory( - const FullType(PreferencesDeleteMultiplePreferenceRequestApplicationJson), - PreferencesDeleteMultiplePreferenceRequestApplicationJsonBuilder.new, - ) - ..add(PreferencesDeleteMultiplePreferenceRequestApplicationJson.serializer) ..addBuilderFactory( const FullType(PreferencesDeleteMultiplePreferenceResponseApplicationJson), PreferencesDeleteMultiplePreferenceResponseApplicationJsonBuilder.new, @@ -12670,11 +11949,6 @@ final Serializers _$serializers = (Serializers().toBuilder() UsersAddSubAdminResponseApplicationJson_OcsBuilder.new, ) ..add(UsersAddSubAdminResponseApplicationJson_Ocs.serializer) - ..addBuilderFactory( - const FullType(UsersRemoveSubAdminRequestApplicationJson), - UsersRemoveSubAdminRequestApplicationJsonBuilder.new, - ) - ..add(UsersRemoveSubAdminRequestApplicationJson.serializer) ..addBuilderFactory( const FullType(UsersRemoveSubAdminResponseApplicationJson), UsersRemoveSubAdminResponseApplicationJsonBuilder.new, @@ -12685,11 +11959,6 @@ final Serializers _$serializers = (Serializers().toBuilder() UsersRemoveSubAdminResponseApplicationJson_OcsBuilder.new, ) ..add(UsersRemoveSubAdminResponseApplicationJson_Ocs.serializer) - ..addBuilderFactory( - const FullType(UsersGetUsersRequestApplicationJson), - UsersGetUsersRequestApplicationJsonBuilder.new, - ) - ..add(UsersGetUsersRequestApplicationJson.serializer) ..addBuilderFactory( const FullType(UsersGetUsersResponseApplicationJson), UsersGetUsersResponseApplicationJsonBuilder.new, @@ -12725,11 +11994,6 @@ final Serializers _$serializers = (Serializers().toBuilder() UsersAddUserResponseApplicationJson_Ocs_DataBuilder.new, ) ..add(UsersAddUserResponseApplicationJson_Ocs_Data.serializer) - ..addBuilderFactory( - const FullType(UsersGetUsersDetailsRequestApplicationJson), - UsersGetUsersDetailsRequestApplicationJsonBuilder.new, - ) - ..add(UsersGetUsersDetailsRequestApplicationJson.serializer) ..addBuilderFactory( const FullType(UsersGetUsersDetailsResponseApplicationJson), UsersGetUsersDetailsResponseApplicationJsonBuilder.new, @@ -12758,11 +12022,6 @@ final Serializers _$serializers = (Serializers().toBuilder() ), MapBuilder.new, ) - ..addBuilderFactory( - const FullType(UsersGetDisabledUsersDetailsRequestApplicationJson), - UsersGetDisabledUsersDetailsRequestApplicationJsonBuilder.new, - ) - ..add(UsersGetDisabledUsersDetailsRequestApplicationJson.serializer) ..addBuilderFactory( const FullType(UsersGetDisabledUsersDetailsResponseApplicationJson), UsersGetDisabledUsersDetailsResponseApplicationJsonBuilder.new, @@ -12953,11 +12212,6 @@ final Serializers _$serializers = (Serializers().toBuilder() UsersAddToGroupResponseApplicationJson_OcsBuilder.new, ) ..add(UsersAddToGroupResponseApplicationJson_Ocs.serializer) - ..addBuilderFactory( - const FullType(UsersRemoveFromGroupRequestApplicationJson), - UsersRemoveFromGroupRequestApplicationJsonBuilder.new, - ) - ..add(UsersRemoveFromGroupRequestApplicationJson.serializer) ..addBuilderFactory( const FullType(UsersRemoveFromGroupResponseApplicationJson), UsersRemoveFromGroupResponseApplicationJsonBuilder.new, diff --git a/packages/nextcloud/lib/src/api/provisioning_api/provisioning_api.openapi.g.dart b/packages/nextcloud/lib/src/api/provisioning_api/provisioning_api.openapi.g.dart index 2b948d99119..91b8dc0c95b 100644 --- a/packages/nextcloud/lib/src/api/provisioning_api/provisioning_api.openapi.g.dart +++ b/packages/nextcloud/lib/src/api/provisioning_api/provisioning_api.openapi.g.dart @@ -27,8 +27,6 @@ Serializer _$appConfigSetValueResp _$AppConfigSetValueResponseApplicationJson_OcsSerializer(); Serializer _$appConfigSetValueResponseApplicationJsonSerializer = _$AppConfigSetValueResponseApplicationJsonSerializer(); -Serializer _$appsGetAppsRequestApplicationJsonSerializer = - _$AppsGetAppsRequestApplicationJsonSerializer(); Serializer _$appsGetAppsResponseApplicationJsonOcsDataSerializer = _$AppsGetAppsResponseApplicationJson_Ocs_DataSerializer(); Serializer _$appsGetAppsResponseApplicationJsonOcsSerializer = @@ -53,8 +51,6 @@ Serializer Serializer _$groupsGetSubAdminsOfGroupResponseApplicationJsonSerializer = _$GroupsGetSubAdminsOfGroupResponseApplicationJsonSerializer(); -Serializer _$groupsGetGroupsRequestApplicationJsonSerializer = - _$GroupsGetGroupsRequestApplicationJsonSerializer(); Serializer _$groupsGetGroupsResponseApplicationJsonOcsDataSerializer = _$GroupsGetGroupsResponseApplicationJson_Ocs_DataSerializer(); Serializer _$groupsGetGroupsResponseApplicationJsonOcsSerializer = @@ -67,8 +63,6 @@ Serializer _$groupsGetGroupResponseAp _$GroupsGetGroupResponseApplicationJson_OcsSerializer(); Serializer _$groupsGetGroupResponseApplicationJsonSerializer = _$GroupsGetGroupResponseApplicationJsonSerializer(); -Serializer _$groupsGetGroupsDetailsRequestApplicationJsonSerializer = - _$GroupsGetGroupsDetailsRequestApplicationJsonSerializer(); Serializer _$groupDetailsSerializer = _$GroupDetailsSerializer(); Serializer _$groupsGetGroupsDetailsResponseApplicationJsonOcsDataSerializer = @@ -85,9 +79,6 @@ Serializer _$groupsGetGroupUsers _$GroupsGetGroupUsersResponseApplicationJson_OcsSerializer(); Serializer _$groupsGetGroupUsersResponseApplicationJsonSerializer = _$GroupsGetGroupUsersResponseApplicationJsonSerializer(); -Serializer - _$groupsGetGroupUsersDetailsRequestApplicationJsonSerializer = - _$GroupsGetGroupUsersDetailsRequestApplicationJsonSerializer(); Serializer _$userDetailsBackendCapabilitiesSerializer = _$UserDetails_BackendCapabilitiesSerializer(); Serializer _$userDetailsQuotaSerializer = _$UserDetailsQuotaSerializer(); @@ -127,9 +118,6 @@ Serializer Serializer _$preferencesSetMultiplePreferencesResponseApplicationJsonSerializer = _$PreferencesSetMultiplePreferencesResponseApplicationJsonSerializer(); -Serializer - _$preferencesDeleteMultiplePreferenceRequestApplicationJsonSerializer = - _$PreferencesDeleteMultiplePreferenceRequestApplicationJsonSerializer(); Serializer _$preferencesDeleteMultiplePreferenceResponseApplicationJsonOcsSerializer = _$PreferencesDeleteMultiplePreferenceResponseApplicationJson_OcsSerializer(); @@ -148,14 +136,10 @@ Serializer _$usersAddSubAdminRespon _$UsersAddSubAdminResponseApplicationJson_OcsSerializer(); Serializer _$usersAddSubAdminResponseApplicationJsonSerializer = _$UsersAddSubAdminResponseApplicationJsonSerializer(); -Serializer _$usersRemoveSubAdminRequestApplicationJsonSerializer = - _$UsersRemoveSubAdminRequestApplicationJsonSerializer(); Serializer _$usersRemoveSubAdminResponseApplicationJsonOcsSerializer = _$UsersRemoveSubAdminResponseApplicationJson_OcsSerializer(); Serializer _$usersRemoveSubAdminResponseApplicationJsonSerializer = _$UsersRemoveSubAdminResponseApplicationJsonSerializer(); -Serializer _$usersGetUsersRequestApplicationJsonSerializer = - _$UsersGetUsersRequestApplicationJsonSerializer(); Serializer _$usersGetUsersResponseApplicationJsonOcsDataSerializer = _$UsersGetUsersResponseApplicationJson_Ocs_DataSerializer(); Serializer _$usersGetUsersResponseApplicationJsonOcsSerializer = @@ -170,8 +154,6 @@ Serializer _$usersAddUserResponseApplic _$UsersAddUserResponseApplicationJson_OcsSerializer(); Serializer _$usersAddUserResponseApplicationJsonSerializer = _$UsersAddUserResponseApplicationJsonSerializer(); -Serializer _$usersGetUsersDetailsRequestApplicationJsonSerializer = - _$UsersGetUsersDetailsRequestApplicationJsonSerializer(); Serializer _$usersGetUsersDetailsResponseApplicationJsonOcsDataUsers1Serializer = _$UsersGetUsersDetailsResponseApplicationJson_Ocs_Data_Users1Serializer(); @@ -182,9 +164,6 @@ Serializer _$usersGetUsersDetai _$UsersGetUsersDetailsResponseApplicationJson_OcsSerializer(); Serializer _$usersGetUsersDetailsResponseApplicationJsonSerializer = _$UsersGetUsersDetailsResponseApplicationJsonSerializer(); -Serializer - _$usersGetDisabledUsersDetailsRequestApplicationJsonSerializer = - _$UsersGetDisabledUsersDetailsRequestApplicationJsonSerializer(); Serializer _$usersGetDisabledUsersDetailsResponseApplicationJsonOcsDataUsers1Serializer = _$UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1Serializer(); @@ -267,8 +246,6 @@ Serializer _$usersAddToGroupResponse _$UsersAddToGroupResponseApplicationJson_OcsSerializer(); Serializer _$usersAddToGroupResponseApplicationJsonSerializer = _$UsersAddToGroupResponseApplicationJsonSerializer(); -Serializer _$usersRemoveFromGroupRequestApplicationJsonSerializer = - _$UsersRemoveFromGroupRequestApplicationJsonSerializer(); Serializer _$usersRemoveFromGroupResponseApplicationJsonOcsSerializer = _$UsersRemoveFromGroupResponseApplicationJson_OcsSerializer(); Serializer _$usersRemoveFromGroupResponseApplicationJsonSerializer = @@ -760,47 +737,6 @@ class _$AppConfigSetValueResponseApplicationJsonSerializer } } -class _$AppsGetAppsRequestApplicationJsonSerializer implements StructuredSerializer { - @override - final Iterable types = const [AppsGetAppsRequestApplicationJson, _$AppsGetAppsRequestApplicationJson]; - @override - final String wireName = 'AppsGetAppsRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, AppsGetAppsRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = []; - Object? value; - value = object.filter; - if (value != null) { - result - ..add('filter') - ..add(serializers.serialize(value, specifiedType: const FullType(String))); - } - return result; - } - - @override - AppsGetAppsRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = AppsGetAppsRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'filter': - result.filter = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; - break; - } - } - - return result.build(); - } -} - class _$AppsGetAppsResponseApplicationJson_Ocs_DataSerializer implements StructuredSerializer { @override @@ -1284,59 +1220,6 @@ class _$GroupsGetSubAdminsOfGroupResponseApplicationJsonSerializer } } -class _$GroupsGetGroupsRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [GroupsGetGroupsRequestApplicationJson, _$GroupsGetGroupsRequestApplicationJson]; - @override - final String wireName = 'GroupsGetGroupsRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, GroupsGetGroupsRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'search', - serializers.serialize(object.search, specifiedType: const FullType(String)), - 'offset', - serializers.serialize(object.offset, specifiedType: const FullType(int)), - ]; - Object? value; - value = object.limit; - if (value != null) { - result - ..add('limit') - ..add(serializers.serialize(value, specifiedType: const FullType(int))); - } - return result; - } - - @override - GroupsGetGroupsRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = GroupsGetGroupsRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'search': - result.search = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'limit': - result.limit = serializers.deserialize(value, specifiedType: const FullType(int)) as int?; - break; - case 'offset': - result.offset = serializers.deserialize(value, specifiedType: const FullType(int))! as int; - break; - } - } - - return result.build(); - } -} - class _$GroupsGetGroupsResponseApplicationJson_Ocs_DataSerializer implements StructuredSerializer { @override @@ -1604,62 +1487,6 @@ class _$GroupsGetGroupResponseApplicationJsonSerializer } } -class _$GroupsGetGroupsDetailsRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - GroupsGetGroupsDetailsRequestApplicationJson, - _$GroupsGetGroupsDetailsRequestApplicationJson - ]; - @override - final String wireName = 'GroupsGetGroupsDetailsRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, GroupsGetGroupsDetailsRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'search', - serializers.serialize(object.search, specifiedType: const FullType(String)), - 'offset', - serializers.serialize(object.offset, specifiedType: const FullType(int)), - ]; - Object? value; - value = object.limit; - if (value != null) { - result - ..add('limit') - ..add(serializers.serialize(value, specifiedType: const FullType(int))); - } - return result; - } - - @override - GroupsGetGroupsDetailsRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = GroupsGetGroupsDetailsRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'search': - result.search = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'limit': - result.limit = serializers.deserialize(value, specifiedType: const FullType(int)) as int?; - break; - case 'offset': - result.offset = serializers.deserialize(value, specifiedType: const FullType(int))! as int; - break; - } - } - - return result.build(); - } -} - class _$GroupDetailsSerializer implements StructuredSerializer { @override final Iterable types = const [GroupDetails, _$GroupDetails]; @@ -2001,62 +1828,6 @@ class _$GroupsGetGroupUsersResponseApplicationJsonSerializer } } -class _$GroupsGetGroupUsersDetailsRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - GroupsGetGroupUsersDetailsRequestApplicationJson, - _$GroupsGetGroupUsersDetailsRequestApplicationJson - ]; - @override - final String wireName = 'GroupsGetGroupUsersDetailsRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, GroupsGetGroupUsersDetailsRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'search', - serializers.serialize(object.search, specifiedType: const FullType(String)), - 'offset', - serializers.serialize(object.offset, specifiedType: const FullType(int)), - ]; - Object? value; - value = object.limit; - if (value != null) { - result - ..add('limit') - ..add(serializers.serialize(value, specifiedType: const FullType(int))); - } - return result; - } - - @override - GroupsGetGroupUsersDetailsRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = GroupsGetGroupUsersDetailsRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'search': - result.search = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'limit': - result.limit = serializers.deserialize(value, specifiedType: const FullType(int)) as int?; - break; - case 'offset': - result.offset = serializers.deserialize(value, specifiedType: const FullType(int))! as int; - break; - } - } - - return result.build(); - } -} - class _$UserDetails_BackendCapabilitiesSerializer implements StructuredSerializer { @override final Iterable types = const [UserDetails_BackendCapabilities, _$UserDetails_BackendCapabilities]; @@ -3034,50 +2805,6 @@ class _$PreferencesSetMultiplePreferencesResponseApplicationJsonSerializer } } -class _$PreferencesDeleteMultiplePreferenceRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - PreferencesDeleteMultiplePreferenceRequestApplicationJson, - _$PreferencesDeleteMultiplePreferenceRequestApplicationJson - ]; - @override - final String wireName = 'PreferencesDeleteMultiplePreferenceRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, PreferencesDeleteMultiplePreferenceRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'configKeys', - serializers.serialize(object.configKeys, specifiedType: const FullType(BuiltList, [FullType(String)])), - ]; - - return result; - } - - @override - PreferencesDeleteMultiplePreferenceRequestApplicationJson deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = PreferencesDeleteMultiplePreferenceRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'configKeys': - result.configKeys.replace(serializers.deserialize(value, - specifiedType: const FullType(BuiltList, [FullType(String)]))! as BuiltList); - break; - } - } - - return result.build(); - } -} - class _$PreferencesDeleteMultiplePreferenceResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -3398,48 +3125,6 @@ class _$UsersAddSubAdminResponseApplicationJsonSerializer } } -class _$UsersRemoveSubAdminRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - UsersRemoveSubAdminRequestApplicationJson, - _$UsersRemoveSubAdminRequestApplicationJson - ]; - @override - final String wireName = 'UsersRemoveSubAdminRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, UsersRemoveSubAdminRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'groupid', - serializers.serialize(object.groupid, specifiedType: const FullType(String)), - ]; - - return result; - } - - @override - UsersRemoveSubAdminRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = UsersRemoveSubAdminRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'groupid': - result.groupid = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - } - } - - return result.build(); - } -} - class _$UsersRemoveSubAdminResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -3531,59 +3216,6 @@ class _$UsersRemoveSubAdminResponseApplicationJsonSerializer } } -class _$UsersGetUsersRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [UsersGetUsersRequestApplicationJson, _$UsersGetUsersRequestApplicationJson]; - @override - final String wireName = 'UsersGetUsersRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, UsersGetUsersRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'search', - serializers.serialize(object.search, specifiedType: const FullType(String)), - 'offset', - serializers.serialize(object.offset, specifiedType: const FullType(int)), - ]; - Object? value; - value = object.limit; - if (value != null) { - result - ..add('limit') - ..add(serializers.serialize(value, specifiedType: const FullType(int))); - } - return result; - } - - @override - UsersGetUsersRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = UsersGetUsersRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'search': - result.search = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'limit': - result.limit = serializers.deserialize(value, specifiedType: const FullType(int)) as int?; - break; - case 'offset': - result.offset = serializers.deserialize(value, specifiedType: const FullType(int))! as int; - break; - } - } - - return result.build(); - } -} - class _$UsersGetUsersResponseApplicationJson_Ocs_DataSerializer implements StructuredSerializer { @override @@ -3934,62 +3566,6 @@ class _$UsersAddUserResponseApplicationJsonSerializer } } -class _$UsersGetUsersDetailsRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - UsersGetUsersDetailsRequestApplicationJson, - _$UsersGetUsersDetailsRequestApplicationJson - ]; - @override - final String wireName = 'UsersGetUsersDetailsRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, UsersGetUsersDetailsRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'search', - serializers.serialize(object.search, specifiedType: const FullType(String)), - 'offset', - serializers.serialize(object.offset, specifiedType: const FullType(int)), - ]; - Object? value; - value = object.limit; - if (value != null) { - result - ..add('limit') - ..add(serializers.serialize(value, specifiedType: const FullType(int))); - } - return result; - } - - @override - UsersGetUsersDetailsRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = UsersGetUsersDetailsRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'search': - result.search = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'limit': - result.limit = serializers.deserialize(value, specifiedType: const FullType(int)) as int?; - break; - case 'offset': - result.offset = serializers.deserialize(value, specifiedType: const FullType(int))! as int; - break; - } - } - - return result.build(); - } -} - class _$UsersGetUsersDetailsResponseApplicationJson_Ocs_Data_Users1Serializer implements StructuredSerializer { @override @@ -4175,57 +3751,6 @@ class _$UsersGetUsersDetailsResponseApplicationJsonSerializer } } -class _$UsersGetDisabledUsersDetailsRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - UsersGetDisabledUsersDetailsRequestApplicationJson, - _$UsersGetDisabledUsersDetailsRequestApplicationJson - ]; - @override - final String wireName = 'UsersGetDisabledUsersDetailsRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, UsersGetDisabledUsersDetailsRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'offset', - serializers.serialize(object.offset, specifiedType: const FullType(int)), - ]; - Object? value; - value = object.limit; - if (value != null) { - result - ..add('limit') - ..add(serializers.serialize(value, specifiedType: const FullType(int))); - } - return result; - } - - @override - UsersGetDisabledUsersDetailsRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = UsersGetDisabledUsersDetailsRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'limit': - result.limit = serializers.deserialize(value, specifiedType: const FullType(int)) as int?; - break; - case 'offset': - result.offset = serializers.deserialize(value, specifiedType: const FullType(int))! as int; - break; - } - } - - return result.build(); - } -} - class _$UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1Serializer implements StructuredSerializer { @override @@ -5785,71 +5310,27 @@ class _$UsersAddToGroupResponseApplicationJson_OcsSerializer } class _$UsersAddToGroupResponseApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [UsersAddToGroupResponseApplicationJson, _$UsersAddToGroupResponseApplicationJson]; - @override - final String wireName = 'UsersAddToGroupResponseApplicationJson'; - - @override - Iterable serialize(Serializers serializers, UsersAddToGroupResponseApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'ocs', - serializers.serialize(object.ocs, specifiedType: const FullType(UsersAddToGroupResponseApplicationJson_Ocs)), - ]; - - return result; - } - - @override - UsersAddToGroupResponseApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = UsersAddToGroupResponseApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'ocs': - result.ocs.replace( - serializers.deserialize(value, specifiedType: const FullType(UsersAddToGroupResponseApplicationJson_Ocs))! - as UsersAddToGroupResponseApplicationJson_Ocs); - break; - } - } - - return result.build(); - } -} - -class _$UsersRemoveFromGroupRequestApplicationJsonSerializer - implements StructuredSerializer { + implements StructuredSerializer { @override - final Iterable types = const [ - UsersRemoveFromGroupRequestApplicationJson, - _$UsersRemoveFromGroupRequestApplicationJson - ]; + final Iterable types = const [UsersAddToGroupResponseApplicationJson, _$UsersAddToGroupResponseApplicationJson]; @override - final String wireName = 'UsersRemoveFromGroupRequestApplicationJson'; + final String wireName = 'UsersAddToGroupResponseApplicationJson'; @override - Iterable serialize(Serializers serializers, UsersRemoveFromGroupRequestApplicationJson object, + Iterable serialize(Serializers serializers, UsersAddToGroupResponseApplicationJson object, {FullType specifiedType = FullType.unspecified}) { final result = [ - 'groupid', - serializers.serialize(object.groupid, specifiedType: const FullType(String)), + 'ocs', + serializers.serialize(object.ocs, specifiedType: const FullType(UsersAddToGroupResponseApplicationJson_Ocs)), ]; return result; } @override - UsersRemoveFromGroupRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, + UsersAddToGroupResponseApplicationJson deserialize(Serializers serializers, Iterable serialized, {FullType specifiedType = FullType.unspecified}) { - final result = UsersRemoveFromGroupRequestApplicationJsonBuilder(); + final result = UsersAddToGroupResponseApplicationJsonBuilder(); final iterator = serialized.iterator; while (iterator.moveNext()) { @@ -5857,8 +5338,10 @@ class _$UsersRemoveFromGroupRequestApplicationJsonSerializer iterator.moveNext(); final Object? value = iterator.current; switch (key) { - case 'groupid': - result.groupid = serializers.deserialize(value, specifiedType: const FullType(String))! as String; + case 'ocs': + result.ocs.replace( + serializers.deserialize(value, specifiedType: const FullType(UsersAddToGroupResponseApplicationJson_Ocs))! + as UsersAddToGroupResponseApplicationJson_Ocs); break; } } @@ -7293,94 +6776,6 @@ class AppConfigSetValueResponseApplicationJsonBuilder } } -abstract mixin class $AppsGetAppsRequestApplicationJsonInterfaceBuilder { - void replace($AppsGetAppsRequestApplicationJsonInterface other); - void update(void Function($AppsGetAppsRequestApplicationJsonInterfaceBuilder) updates); - String? get filter; - set filter(String? filter); -} - -class _$AppsGetAppsRequestApplicationJson extends AppsGetAppsRequestApplicationJson { - @override - final String? filter; - - factory _$AppsGetAppsRequestApplicationJson([void Function(AppsGetAppsRequestApplicationJsonBuilder)? updates]) => - (AppsGetAppsRequestApplicationJsonBuilder()..update(updates))._build(); - - _$AppsGetAppsRequestApplicationJson._({this.filter}) : super._(); - - @override - AppsGetAppsRequestApplicationJson rebuild(void Function(AppsGetAppsRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - AppsGetAppsRequestApplicationJsonBuilder toBuilder() => AppsGetAppsRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is AppsGetAppsRequestApplicationJson && filter == other.filter; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, filter.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'AppsGetAppsRequestApplicationJson')..add('filter', filter)).toString(); - } -} - -class AppsGetAppsRequestApplicationJsonBuilder - implements - Builder, - $AppsGetAppsRequestApplicationJsonInterfaceBuilder { - _$AppsGetAppsRequestApplicationJson? _$v; - - String? _filter; - String? get filter => _$this._filter; - set filter(covariant String? filter) => _$this._filter = filter; - - AppsGetAppsRequestApplicationJsonBuilder() { - AppsGetAppsRequestApplicationJson._defaults(this); - } - - AppsGetAppsRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _filter = $v.filter; - _$v = null; - } - return this; - } - - @override - void replace(covariant AppsGetAppsRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$AppsGetAppsRequestApplicationJson; - } - - @override - void update(void Function(AppsGetAppsRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - AppsGetAppsRequestApplicationJson build() => _build(); - - _$AppsGetAppsRequestApplicationJson _build() { - AppsGetAppsRequestApplicationJson._validate(this); - final _$result = _$v ?? _$AppsGetAppsRequestApplicationJson._(filter: filter); - replace(_$result); - return _$result; - } -} - abstract mixin class $AppsGetAppsResponseApplicationJson_Ocs_DataInterfaceBuilder { void replace($AppsGetAppsResponseApplicationJson_Ocs_DataInterface other); void update(void Function($AppsGetAppsResponseApplicationJson_Ocs_DataInterfaceBuilder) updates); @@ -8625,132 +8020,6 @@ class GroupsGetSubAdminsOfGroupResponseApplicationJsonBuilder } } -abstract mixin class $GroupsGetGroupsRequestApplicationJsonInterfaceBuilder { - void replace($GroupsGetGroupsRequestApplicationJsonInterface other); - void update(void Function($GroupsGetGroupsRequestApplicationJsonInterfaceBuilder) updates); - String? get search; - set search(String? search); - - int? get limit; - set limit(int? limit); - - int? get offset; - set offset(int? offset); -} - -class _$GroupsGetGroupsRequestApplicationJson extends GroupsGetGroupsRequestApplicationJson { - @override - final String search; - @override - final int? limit; - @override - final int offset; - - factory _$GroupsGetGroupsRequestApplicationJson( - [void Function(GroupsGetGroupsRequestApplicationJsonBuilder)? updates]) => - (GroupsGetGroupsRequestApplicationJsonBuilder()..update(updates))._build(); - - _$GroupsGetGroupsRequestApplicationJson._({required this.search, this.limit, required this.offset}) : super._() { - BuiltValueNullFieldError.checkNotNull(search, r'GroupsGetGroupsRequestApplicationJson', 'search'); - BuiltValueNullFieldError.checkNotNull(offset, r'GroupsGetGroupsRequestApplicationJson', 'offset'); - } - - @override - GroupsGetGroupsRequestApplicationJson rebuild(void Function(GroupsGetGroupsRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - GroupsGetGroupsRequestApplicationJsonBuilder toBuilder() => - GroupsGetGroupsRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is GroupsGetGroupsRequestApplicationJson && - search == other.search && - limit == other.limit && - offset == other.offset; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, search.hashCode); - _$hash = $jc(_$hash, limit.hashCode); - _$hash = $jc(_$hash, offset.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'GroupsGetGroupsRequestApplicationJson') - ..add('search', search) - ..add('limit', limit) - ..add('offset', offset)) - .toString(); - } -} - -class GroupsGetGroupsRequestApplicationJsonBuilder - implements - Builder, - $GroupsGetGroupsRequestApplicationJsonInterfaceBuilder { - _$GroupsGetGroupsRequestApplicationJson? _$v; - - String? _search; - String? get search => _$this._search; - set search(covariant String? search) => _$this._search = search; - - int? _limit; - int? get limit => _$this._limit; - set limit(covariant int? limit) => _$this._limit = limit; - - int? _offset; - int? get offset => _$this._offset; - set offset(covariant int? offset) => _$this._offset = offset; - - GroupsGetGroupsRequestApplicationJsonBuilder() { - GroupsGetGroupsRequestApplicationJson._defaults(this); - } - - GroupsGetGroupsRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _search = $v.search; - _limit = $v.limit; - _offset = $v.offset; - _$v = null; - } - return this; - } - - @override - void replace(covariant GroupsGetGroupsRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GroupsGetGroupsRequestApplicationJson; - } - - @override - void update(void Function(GroupsGetGroupsRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - GroupsGetGroupsRequestApplicationJson build() => _build(); - - _$GroupsGetGroupsRequestApplicationJson _build() { - GroupsGetGroupsRequestApplicationJson._validate(this); - final _$result = _$v ?? - _$GroupsGetGroupsRequestApplicationJson._( - search: BuiltValueNullFieldError.checkNotNull(search, r'GroupsGetGroupsRequestApplicationJson', 'search'), - limit: limit, - offset: BuiltValueNullFieldError.checkNotNull(offset, r'GroupsGetGroupsRequestApplicationJson', 'offset')); - replace(_$result); - return _$result; - } -} - abstract mixin class $GroupsGetGroupsResponseApplicationJson_Ocs_DataInterfaceBuilder { void replace($GroupsGetGroupsResponseApplicationJson_Ocs_DataInterface other); void update(void Function($GroupsGetGroupsResponseApplicationJson_Ocs_DataInterfaceBuilder) updates); @@ -9423,136 +8692,6 @@ class GroupsGetGroupResponseApplicationJsonBuilder } } -abstract mixin class $GroupsGetGroupsDetailsRequestApplicationJsonInterfaceBuilder { - void replace($GroupsGetGroupsDetailsRequestApplicationJsonInterface other); - void update(void Function($GroupsGetGroupsDetailsRequestApplicationJsonInterfaceBuilder) updates); - String? get search; - set search(String? search); - - int? get limit; - set limit(int? limit); - - int? get offset; - set offset(int? offset); -} - -class _$GroupsGetGroupsDetailsRequestApplicationJson extends GroupsGetGroupsDetailsRequestApplicationJson { - @override - final String search; - @override - final int? limit; - @override - final int offset; - - factory _$GroupsGetGroupsDetailsRequestApplicationJson( - [void Function(GroupsGetGroupsDetailsRequestApplicationJsonBuilder)? updates]) => - (GroupsGetGroupsDetailsRequestApplicationJsonBuilder()..update(updates))._build(); - - _$GroupsGetGroupsDetailsRequestApplicationJson._({required this.search, this.limit, required this.offset}) - : super._() { - BuiltValueNullFieldError.checkNotNull(search, r'GroupsGetGroupsDetailsRequestApplicationJson', 'search'); - BuiltValueNullFieldError.checkNotNull(offset, r'GroupsGetGroupsDetailsRequestApplicationJson', 'offset'); - } - - @override - GroupsGetGroupsDetailsRequestApplicationJson rebuild( - void Function(GroupsGetGroupsDetailsRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - GroupsGetGroupsDetailsRequestApplicationJsonBuilder toBuilder() => - GroupsGetGroupsDetailsRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is GroupsGetGroupsDetailsRequestApplicationJson && - search == other.search && - limit == other.limit && - offset == other.offset; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, search.hashCode); - _$hash = $jc(_$hash, limit.hashCode); - _$hash = $jc(_$hash, offset.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'GroupsGetGroupsDetailsRequestApplicationJson') - ..add('search', search) - ..add('limit', limit) - ..add('offset', offset)) - .toString(); - } -} - -class GroupsGetGroupsDetailsRequestApplicationJsonBuilder - implements - Builder, - $GroupsGetGroupsDetailsRequestApplicationJsonInterfaceBuilder { - _$GroupsGetGroupsDetailsRequestApplicationJson? _$v; - - String? _search; - String? get search => _$this._search; - set search(covariant String? search) => _$this._search = search; - - int? _limit; - int? get limit => _$this._limit; - set limit(covariant int? limit) => _$this._limit = limit; - - int? _offset; - int? get offset => _$this._offset; - set offset(covariant int? offset) => _$this._offset = offset; - - GroupsGetGroupsDetailsRequestApplicationJsonBuilder() { - GroupsGetGroupsDetailsRequestApplicationJson._defaults(this); - } - - GroupsGetGroupsDetailsRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _search = $v.search; - _limit = $v.limit; - _offset = $v.offset; - _$v = null; - } - return this; - } - - @override - void replace(covariant GroupsGetGroupsDetailsRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GroupsGetGroupsDetailsRequestApplicationJson; - } - - @override - void update(void Function(GroupsGetGroupsDetailsRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - GroupsGetGroupsDetailsRequestApplicationJson build() => _build(); - - _$GroupsGetGroupsDetailsRequestApplicationJson _build() { - GroupsGetGroupsDetailsRequestApplicationJson._validate(this); - final _$result = _$v ?? - _$GroupsGetGroupsDetailsRequestApplicationJson._( - search: BuiltValueNullFieldError.checkNotNull( - search, r'GroupsGetGroupsDetailsRequestApplicationJson', 'search'), - limit: limit, - offset: BuiltValueNullFieldError.checkNotNull( - offset, r'GroupsGetGroupsDetailsRequestApplicationJson', 'offset')); - replace(_$result); - return _$result; - } -} - abstract mixin class $GroupDetailsInterfaceBuilder { void replace($GroupDetailsInterface other); void update(void Function($GroupDetailsInterfaceBuilder) updates); @@ -10407,137 +9546,6 @@ class GroupsGetGroupUsersResponseApplicationJsonBuilder } } -abstract mixin class $GroupsGetGroupUsersDetailsRequestApplicationJsonInterfaceBuilder { - void replace($GroupsGetGroupUsersDetailsRequestApplicationJsonInterface other); - void update(void Function($GroupsGetGroupUsersDetailsRequestApplicationJsonInterfaceBuilder) updates); - String? get search; - set search(String? search); - - int? get limit; - set limit(int? limit); - - int? get offset; - set offset(int? offset); -} - -class _$GroupsGetGroupUsersDetailsRequestApplicationJson extends GroupsGetGroupUsersDetailsRequestApplicationJson { - @override - final String search; - @override - final int? limit; - @override - final int offset; - - factory _$GroupsGetGroupUsersDetailsRequestApplicationJson( - [void Function(GroupsGetGroupUsersDetailsRequestApplicationJsonBuilder)? updates]) => - (GroupsGetGroupUsersDetailsRequestApplicationJsonBuilder()..update(updates))._build(); - - _$GroupsGetGroupUsersDetailsRequestApplicationJson._({required this.search, this.limit, required this.offset}) - : super._() { - BuiltValueNullFieldError.checkNotNull(search, r'GroupsGetGroupUsersDetailsRequestApplicationJson', 'search'); - BuiltValueNullFieldError.checkNotNull(offset, r'GroupsGetGroupUsersDetailsRequestApplicationJson', 'offset'); - } - - @override - GroupsGetGroupUsersDetailsRequestApplicationJson rebuild( - void Function(GroupsGetGroupUsersDetailsRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - GroupsGetGroupUsersDetailsRequestApplicationJsonBuilder toBuilder() => - GroupsGetGroupUsersDetailsRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is GroupsGetGroupUsersDetailsRequestApplicationJson && - search == other.search && - limit == other.limit && - offset == other.offset; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, search.hashCode); - _$hash = $jc(_$hash, limit.hashCode); - _$hash = $jc(_$hash, offset.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'GroupsGetGroupUsersDetailsRequestApplicationJson') - ..add('search', search) - ..add('limit', limit) - ..add('offset', offset)) - .toString(); - } -} - -class GroupsGetGroupUsersDetailsRequestApplicationJsonBuilder - implements - Builder, - $GroupsGetGroupUsersDetailsRequestApplicationJsonInterfaceBuilder { - _$GroupsGetGroupUsersDetailsRequestApplicationJson? _$v; - - String? _search; - String? get search => _$this._search; - set search(covariant String? search) => _$this._search = search; - - int? _limit; - int? get limit => _$this._limit; - set limit(covariant int? limit) => _$this._limit = limit; - - int? _offset; - int? get offset => _$this._offset; - set offset(covariant int? offset) => _$this._offset = offset; - - GroupsGetGroupUsersDetailsRequestApplicationJsonBuilder() { - GroupsGetGroupUsersDetailsRequestApplicationJson._defaults(this); - } - - GroupsGetGroupUsersDetailsRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _search = $v.search; - _limit = $v.limit; - _offset = $v.offset; - _$v = null; - } - return this; - } - - @override - void replace(covariant GroupsGetGroupUsersDetailsRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$GroupsGetGroupUsersDetailsRequestApplicationJson; - } - - @override - void update(void Function(GroupsGetGroupUsersDetailsRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - GroupsGetGroupUsersDetailsRequestApplicationJson build() => _build(); - - _$GroupsGetGroupUsersDetailsRequestApplicationJson _build() { - GroupsGetGroupUsersDetailsRequestApplicationJson._validate(this); - final _$result = _$v ?? - _$GroupsGetGroupUsersDetailsRequestApplicationJson._( - search: BuiltValueNullFieldError.checkNotNull( - search, r'GroupsGetGroupUsersDetailsRequestApplicationJson', 'search'), - limit: limit, - offset: BuiltValueNullFieldError.checkNotNull( - offset, r'GroupsGetGroupUsersDetailsRequestApplicationJson', 'offset')); - replace(_$result); - return _$result; - } -} - abstract mixin class $UserDetails_BackendCapabilitiesInterfaceBuilder { void replace($UserDetails_BackendCapabilitiesInterface other); void update(void Function($UserDetails_BackendCapabilitiesInterfaceBuilder) updates); @@ -12924,117 +11932,6 @@ class PreferencesSetMultiplePreferencesResponseApplicationJsonBuilder } } -abstract mixin class $PreferencesDeleteMultiplePreferenceRequestApplicationJsonInterfaceBuilder { - void replace($PreferencesDeleteMultiplePreferenceRequestApplicationJsonInterface other); - void update(void Function($PreferencesDeleteMultiplePreferenceRequestApplicationJsonInterfaceBuilder) updates); - ListBuilder get configKeys; - set configKeys(ListBuilder? configKeys); -} - -class _$PreferencesDeleteMultiplePreferenceRequestApplicationJson - extends PreferencesDeleteMultiplePreferenceRequestApplicationJson { - @override - final BuiltList configKeys; - - factory _$PreferencesDeleteMultiplePreferenceRequestApplicationJson( - [void Function(PreferencesDeleteMultiplePreferenceRequestApplicationJsonBuilder)? updates]) => - (PreferencesDeleteMultiplePreferenceRequestApplicationJsonBuilder()..update(updates))._build(); - - _$PreferencesDeleteMultiplePreferenceRequestApplicationJson._({required this.configKeys}) : super._() { - BuiltValueNullFieldError.checkNotNull( - configKeys, r'PreferencesDeleteMultiplePreferenceRequestApplicationJson', 'configKeys'); - } - - @override - PreferencesDeleteMultiplePreferenceRequestApplicationJson rebuild( - void Function(PreferencesDeleteMultiplePreferenceRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - PreferencesDeleteMultiplePreferenceRequestApplicationJsonBuilder toBuilder() => - PreferencesDeleteMultiplePreferenceRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is PreferencesDeleteMultiplePreferenceRequestApplicationJson && configKeys == other.configKeys; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, configKeys.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'PreferencesDeleteMultiplePreferenceRequestApplicationJson') - ..add('configKeys', configKeys)) - .toString(); - } -} - -class PreferencesDeleteMultiplePreferenceRequestApplicationJsonBuilder - implements - Builder, - $PreferencesDeleteMultiplePreferenceRequestApplicationJsonInterfaceBuilder { - _$PreferencesDeleteMultiplePreferenceRequestApplicationJson? _$v; - - ListBuilder? _configKeys; - ListBuilder get configKeys => _$this._configKeys ??= ListBuilder(); - set configKeys(covariant ListBuilder? configKeys) => _$this._configKeys = configKeys; - - PreferencesDeleteMultiplePreferenceRequestApplicationJsonBuilder() { - PreferencesDeleteMultiplePreferenceRequestApplicationJson._defaults(this); - } - - PreferencesDeleteMultiplePreferenceRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _configKeys = $v.configKeys.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(covariant PreferencesDeleteMultiplePreferenceRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$PreferencesDeleteMultiplePreferenceRequestApplicationJson; - } - - @override - void update(void Function(PreferencesDeleteMultiplePreferenceRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - PreferencesDeleteMultiplePreferenceRequestApplicationJson build() => _build(); - - _$PreferencesDeleteMultiplePreferenceRequestApplicationJson _build() { - PreferencesDeleteMultiplePreferenceRequestApplicationJson._validate(this); - _$PreferencesDeleteMultiplePreferenceRequestApplicationJson _$result; - try { - _$result = _$v ?? _$PreferencesDeleteMultiplePreferenceRequestApplicationJson._(configKeys: configKeys.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'configKeys'; - configKeys.build(); - } catch (e) { - throw BuiltValueNestedFieldError( - r'PreferencesDeleteMultiplePreferenceRequestApplicationJson', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - abstract mixin class $PreferencesDeleteMultiplePreferenceResponseApplicationJson_OcsInterfaceBuilder { void replace($PreferencesDeleteMultiplePreferenceResponseApplicationJson_OcsInterface other); void update(void Function($PreferencesDeleteMultiplePreferenceResponseApplicationJson_OcsInterfaceBuilder) updates); @@ -13838,103 +12735,6 @@ class UsersAddSubAdminResponseApplicationJsonBuilder } } -abstract mixin class $UsersRemoveSubAdminRequestApplicationJsonInterfaceBuilder { - void replace($UsersRemoveSubAdminRequestApplicationJsonInterface other); - void update(void Function($UsersRemoveSubAdminRequestApplicationJsonInterfaceBuilder) updates); - String? get groupid; - set groupid(String? groupid); -} - -class _$UsersRemoveSubAdminRequestApplicationJson extends UsersRemoveSubAdminRequestApplicationJson { - @override - final String groupid; - - factory _$UsersRemoveSubAdminRequestApplicationJson( - [void Function(UsersRemoveSubAdminRequestApplicationJsonBuilder)? updates]) => - (UsersRemoveSubAdminRequestApplicationJsonBuilder()..update(updates))._build(); - - _$UsersRemoveSubAdminRequestApplicationJson._({required this.groupid}) : super._() { - BuiltValueNullFieldError.checkNotNull(groupid, r'UsersRemoveSubAdminRequestApplicationJson', 'groupid'); - } - - @override - UsersRemoveSubAdminRequestApplicationJson rebuild( - void Function(UsersRemoveSubAdminRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - UsersRemoveSubAdminRequestApplicationJsonBuilder toBuilder() => - UsersRemoveSubAdminRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is UsersRemoveSubAdminRequestApplicationJson && groupid == other.groupid; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, groupid.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'UsersRemoveSubAdminRequestApplicationJson')..add('groupid', groupid)) - .toString(); - } -} - -class UsersRemoveSubAdminRequestApplicationJsonBuilder - implements - Builder, - $UsersRemoveSubAdminRequestApplicationJsonInterfaceBuilder { - _$UsersRemoveSubAdminRequestApplicationJson? _$v; - - String? _groupid; - String? get groupid => _$this._groupid; - set groupid(covariant String? groupid) => _$this._groupid = groupid; - - UsersRemoveSubAdminRequestApplicationJsonBuilder() { - UsersRemoveSubAdminRequestApplicationJson._defaults(this); - } - - UsersRemoveSubAdminRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _groupid = $v.groupid; - _$v = null; - } - return this; - } - - @override - void replace(covariant UsersRemoveSubAdminRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$UsersRemoveSubAdminRequestApplicationJson; - } - - @override - void update(void Function(UsersRemoveSubAdminRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - UsersRemoveSubAdminRequestApplicationJson build() => _build(); - - _$UsersRemoveSubAdminRequestApplicationJson _build() { - UsersRemoveSubAdminRequestApplicationJson._validate(this); - final _$result = _$v ?? - _$UsersRemoveSubAdminRequestApplicationJson._( - groupid: BuiltValueNullFieldError.checkNotNull( - groupid, r'UsersRemoveSubAdminRequestApplicationJson', 'groupid')); - replace(_$result); - return _$result; - } -} - abstract mixin class $UsersRemoveSubAdminResponseApplicationJson_OcsInterfaceBuilder { void replace($UsersRemoveSubAdminResponseApplicationJson_OcsInterface other); void update(void Function($UsersRemoveSubAdminResponseApplicationJson_OcsInterfaceBuilder) updates); @@ -14047,117 +12847,11 @@ class UsersRemoveSubAdminResponseApplicationJson_OcsBuilder } catch (_) { late String _$failedField; try { - _$failedField = 'meta'; - meta.build(); - } catch (e) { - throw BuiltValueNestedFieldError( - r'UsersRemoveSubAdminResponseApplicationJson_Ocs', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - -abstract mixin class $UsersRemoveSubAdminResponseApplicationJsonInterfaceBuilder { - void replace($UsersRemoveSubAdminResponseApplicationJsonInterface other); - void update(void Function($UsersRemoveSubAdminResponseApplicationJsonInterfaceBuilder) updates); - UsersRemoveSubAdminResponseApplicationJson_OcsBuilder get ocs; - set ocs(UsersRemoveSubAdminResponseApplicationJson_OcsBuilder? ocs); -} - -class _$UsersRemoveSubAdminResponseApplicationJson extends UsersRemoveSubAdminResponseApplicationJson { - @override - final UsersRemoveSubAdminResponseApplicationJson_Ocs ocs; - - factory _$UsersRemoveSubAdminResponseApplicationJson( - [void Function(UsersRemoveSubAdminResponseApplicationJsonBuilder)? updates]) => - (UsersRemoveSubAdminResponseApplicationJsonBuilder()..update(updates))._build(); - - _$UsersRemoveSubAdminResponseApplicationJson._({required this.ocs}) : super._() { - BuiltValueNullFieldError.checkNotNull(ocs, r'UsersRemoveSubAdminResponseApplicationJson', 'ocs'); - } - - @override - UsersRemoveSubAdminResponseApplicationJson rebuild( - void Function(UsersRemoveSubAdminResponseApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - UsersRemoveSubAdminResponseApplicationJsonBuilder toBuilder() => - UsersRemoveSubAdminResponseApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is UsersRemoveSubAdminResponseApplicationJson && ocs == other.ocs; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, ocs.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'UsersRemoveSubAdminResponseApplicationJson')..add('ocs', ocs)).toString(); - } -} - -class UsersRemoveSubAdminResponseApplicationJsonBuilder - implements - Builder, - $UsersRemoveSubAdminResponseApplicationJsonInterfaceBuilder { - _$UsersRemoveSubAdminResponseApplicationJson? _$v; - - UsersRemoveSubAdminResponseApplicationJson_OcsBuilder? _ocs; - UsersRemoveSubAdminResponseApplicationJson_OcsBuilder get ocs => - _$this._ocs ??= UsersRemoveSubAdminResponseApplicationJson_OcsBuilder(); - set ocs(covariant UsersRemoveSubAdminResponseApplicationJson_OcsBuilder? ocs) => _$this._ocs = ocs; - - UsersRemoveSubAdminResponseApplicationJsonBuilder() { - UsersRemoveSubAdminResponseApplicationJson._defaults(this); - } - - UsersRemoveSubAdminResponseApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _ocs = $v.ocs.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(covariant UsersRemoveSubAdminResponseApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$UsersRemoveSubAdminResponseApplicationJson; - } - - @override - void update(void Function(UsersRemoveSubAdminResponseApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - UsersRemoveSubAdminResponseApplicationJson build() => _build(); - - _$UsersRemoveSubAdminResponseApplicationJson _build() { - UsersRemoveSubAdminResponseApplicationJson._validate(this); - _$UsersRemoveSubAdminResponseApplicationJson _$result; - try { - _$result = _$v ?? _$UsersRemoveSubAdminResponseApplicationJson._(ocs: ocs.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'ocs'; - ocs.build(); + _$failedField = 'meta'; + meta.build(); } catch (e) { - throw BuiltValueNestedFieldError(r'UsersRemoveSubAdminResponseApplicationJson', _$failedField, e.toString()); + throw BuiltValueNestedFieldError( + r'UsersRemoveSubAdminResponseApplicationJson_Ocs', _$failedField, e.toString()); } rethrow; } @@ -14166,125 +12860,107 @@ class UsersRemoveSubAdminResponseApplicationJsonBuilder } } -abstract mixin class $UsersGetUsersRequestApplicationJsonInterfaceBuilder { - void replace($UsersGetUsersRequestApplicationJsonInterface other); - void update(void Function($UsersGetUsersRequestApplicationJsonInterfaceBuilder) updates); - String? get search; - set search(String? search); - - int? get limit; - set limit(int? limit); - - int? get offset; - set offset(int? offset); +abstract mixin class $UsersRemoveSubAdminResponseApplicationJsonInterfaceBuilder { + void replace($UsersRemoveSubAdminResponseApplicationJsonInterface other); + void update(void Function($UsersRemoveSubAdminResponseApplicationJsonInterfaceBuilder) updates); + UsersRemoveSubAdminResponseApplicationJson_OcsBuilder get ocs; + set ocs(UsersRemoveSubAdminResponseApplicationJson_OcsBuilder? ocs); } -class _$UsersGetUsersRequestApplicationJson extends UsersGetUsersRequestApplicationJson { - @override - final String search; - @override - final int? limit; +class _$UsersRemoveSubAdminResponseApplicationJson extends UsersRemoveSubAdminResponseApplicationJson { @override - final int offset; + final UsersRemoveSubAdminResponseApplicationJson_Ocs ocs; - factory _$UsersGetUsersRequestApplicationJson([void Function(UsersGetUsersRequestApplicationJsonBuilder)? updates]) => - (UsersGetUsersRequestApplicationJsonBuilder()..update(updates))._build(); + factory _$UsersRemoveSubAdminResponseApplicationJson( + [void Function(UsersRemoveSubAdminResponseApplicationJsonBuilder)? updates]) => + (UsersRemoveSubAdminResponseApplicationJsonBuilder()..update(updates))._build(); - _$UsersGetUsersRequestApplicationJson._({required this.search, this.limit, required this.offset}) : super._() { - BuiltValueNullFieldError.checkNotNull(search, r'UsersGetUsersRequestApplicationJson', 'search'); - BuiltValueNullFieldError.checkNotNull(offset, r'UsersGetUsersRequestApplicationJson', 'offset'); + _$UsersRemoveSubAdminResponseApplicationJson._({required this.ocs}) : super._() { + BuiltValueNullFieldError.checkNotNull(ocs, r'UsersRemoveSubAdminResponseApplicationJson', 'ocs'); } @override - UsersGetUsersRequestApplicationJson rebuild(void Function(UsersGetUsersRequestApplicationJsonBuilder) updates) => + UsersRemoveSubAdminResponseApplicationJson rebuild( + void Function(UsersRemoveSubAdminResponseApplicationJsonBuilder) updates) => (toBuilder()..update(updates)).build(); @override - UsersGetUsersRequestApplicationJsonBuilder toBuilder() => UsersGetUsersRequestApplicationJsonBuilder()..replace(this); + UsersRemoveSubAdminResponseApplicationJsonBuilder toBuilder() => + UsersRemoveSubAdminResponseApplicationJsonBuilder()..replace(this); @override bool operator ==(Object other) { if (identical(other, this)) return true; - return other is UsersGetUsersRequestApplicationJson && - search == other.search && - limit == other.limit && - offset == other.offset; + return other is UsersRemoveSubAdminResponseApplicationJson && ocs == other.ocs; } @override int get hashCode { var _$hash = 0; - _$hash = $jc(_$hash, search.hashCode); - _$hash = $jc(_$hash, limit.hashCode); - _$hash = $jc(_$hash, offset.hashCode); + _$hash = $jc(_$hash, ocs.hashCode); _$hash = $jf(_$hash); return _$hash; } @override String toString() { - return (newBuiltValueToStringHelper(r'UsersGetUsersRequestApplicationJson') - ..add('search', search) - ..add('limit', limit) - ..add('offset', offset)) - .toString(); + return (newBuiltValueToStringHelper(r'UsersRemoveSubAdminResponseApplicationJson')..add('ocs', ocs)).toString(); } } -class UsersGetUsersRequestApplicationJsonBuilder +class UsersRemoveSubAdminResponseApplicationJsonBuilder implements - Builder, - $UsersGetUsersRequestApplicationJsonInterfaceBuilder { - _$UsersGetUsersRequestApplicationJson? _$v; - - String? _search; - String? get search => _$this._search; - set search(covariant String? search) => _$this._search = search; - - int? _limit; - int? get limit => _$this._limit; - set limit(covariant int? limit) => _$this._limit = limit; + Builder, + $UsersRemoveSubAdminResponseApplicationJsonInterfaceBuilder { + _$UsersRemoveSubAdminResponseApplicationJson? _$v; - int? _offset; - int? get offset => _$this._offset; - set offset(covariant int? offset) => _$this._offset = offset; + UsersRemoveSubAdminResponseApplicationJson_OcsBuilder? _ocs; + UsersRemoveSubAdminResponseApplicationJson_OcsBuilder get ocs => + _$this._ocs ??= UsersRemoveSubAdminResponseApplicationJson_OcsBuilder(); + set ocs(covariant UsersRemoveSubAdminResponseApplicationJson_OcsBuilder? ocs) => _$this._ocs = ocs; - UsersGetUsersRequestApplicationJsonBuilder() { - UsersGetUsersRequestApplicationJson._defaults(this); + UsersRemoveSubAdminResponseApplicationJsonBuilder() { + UsersRemoveSubAdminResponseApplicationJson._defaults(this); } - UsersGetUsersRequestApplicationJsonBuilder get _$this { + UsersRemoveSubAdminResponseApplicationJsonBuilder get _$this { final $v = _$v; if ($v != null) { - _search = $v.search; - _limit = $v.limit; - _offset = $v.offset; + _ocs = $v.ocs.toBuilder(); _$v = null; } return this; } @override - void replace(covariant UsersGetUsersRequestApplicationJson other) { + void replace(covariant UsersRemoveSubAdminResponseApplicationJson other) { ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$UsersGetUsersRequestApplicationJson; + _$v = other as _$UsersRemoveSubAdminResponseApplicationJson; } @override - void update(void Function(UsersGetUsersRequestApplicationJsonBuilder)? updates) { + void update(void Function(UsersRemoveSubAdminResponseApplicationJsonBuilder)? updates) { if (updates != null) updates(this); } @override - UsersGetUsersRequestApplicationJson build() => _build(); + UsersRemoveSubAdminResponseApplicationJson build() => _build(); - _$UsersGetUsersRequestApplicationJson _build() { - UsersGetUsersRequestApplicationJson._validate(this); - final _$result = _$v ?? - _$UsersGetUsersRequestApplicationJson._( - search: BuiltValueNullFieldError.checkNotNull(search, r'UsersGetUsersRequestApplicationJson', 'search'), - limit: limit, - offset: BuiltValueNullFieldError.checkNotNull(offset, r'UsersGetUsersRequestApplicationJson', 'offset')); + _$UsersRemoveSubAdminResponseApplicationJson _build() { + UsersRemoveSubAdminResponseApplicationJson._validate(this); + _$UsersRemoveSubAdminResponseApplicationJson _$result; + try { + _$result = _$v ?? _$UsersRemoveSubAdminResponseApplicationJson._(ocs: ocs.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'ocs'; + ocs.build(); + } catch (e) { + throw BuiltValueNestedFieldError(r'UsersRemoveSubAdminResponseApplicationJson', _$failedField, e.toString()); + } + rethrow; + } replace(_$result); return _$result; } @@ -15186,135 +13862,6 @@ class UsersAddUserResponseApplicationJsonBuilder } } -abstract mixin class $UsersGetUsersDetailsRequestApplicationJsonInterfaceBuilder { - void replace($UsersGetUsersDetailsRequestApplicationJsonInterface other); - void update(void Function($UsersGetUsersDetailsRequestApplicationJsonInterfaceBuilder) updates); - String? get search; - set search(String? search); - - int? get limit; - set limit(int? limit); - - int? get offset; - set offset(int? offset); -} - -class _$UsersGetUsersDetailsRequestApplicationJson extends UsersGetUsersDetailsRequestApplicationJson { - @override - final String search; - @override - final int? limit; - @override - final int offset; - - factory _$UsersGetUsersDetailsRequestApplicationJson( - [void Function(UsersGetUsersDetailsRequestApplicationJsonBuilder)? updates]) => - (UsersGetUsersDetailsRequestApplicationJsonBuilder()..update(updates))._build(); - - _$UsersGetUsersDetailsRequestApplicationJson._({required this.search, this.limit, required this.offset}) : super._() { - BuiltValueNullFieldError.checkNotNull(search, r'UsersGetUsersDetailsRequestApplicationJson', 'search'); - BuiltValueNullFieldError.checkNotNull(offset, r'UsersGetUsersDetailsRequestApplicationJson', 'offset'); - } - - @override - UsersGetUsersDetailsRequestApplicationJson rebuild( - void Function(UsersGetUsersDetailsRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - UsersGetUsersDetailsRequestApplicationJsonBuilder toBuilder() => - UsersGetUsersDetailsRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is UsersGetUsersDetailsRequestApplicationJson && - search == other.search && - limit == other.limit && - offset == other.offset; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, search.hashCode); - _$hash = $jc(_$hash, limit.hashCode); - _$hash = $jc(_$hash, offset.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'UsersGetUsersDetailsRequestApplicationJson') - ..add('search', search) - ..add('limit', limit) - ..add('offset', offset)) - .toString(); - } -} - -class UsersGetUsersDetailsRequestApplicationJsonBuilder - implements - Builder, - $UsersGetUsersDetailsRequestApplicationJsonInterfaceBuilder { - _$UsersGetUsersDetailsRequestApplicationJson? _$v; - - String? _search; - String? get search => _$this._search; - set search(covariant String? search) => _$this._search = search; - - int? _limit; - int? get limit => _$this._limit; - set limit(covariant int? limit) => _$this._limit = limit; - - int? _offset; - int? get offset => _$this._offset; - set offset(covariant int? offset) => _$this._offset = offset; - - UsersGetUsersDetailsRequestApplicationJsonBuilder() { - UsersGetUsersDetailsRequestApplicationJson._defaults(this); - } - - UsersGetUsersDetailsRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _search = $v.search; - _limit = $v.limit; - _offset = $v.offset; - _$v = null; - } - return this; - } - - @override - void replace(covariant UsersGetUsersDetailsRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$UsersGetUsersDetailsRequestApplicationJson; - } - - @override - void update(void Function(UsersGetUsersDetailsRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - UsersGetUsersDetailsRequestApplicationJson build() => _build(); - - _$UsersGetUsersDetailsRequestApplicationJson _build() { - UsersGetUsersDetailsRequestApplicationJson._validate(this); - final _$result = _$v ?? - _$UsersGetUsersDetailsRequestApplicationJson._( - search: - BuiltValueNullFieldError.checkNotNull(search, r'UsersGetUsersDetailsRequestApplicationJson', 'search'), - limit: limit, - offset: - BuiltValueNullFieldError.checkNotNull(offset, r'UsersGetUsersDetailsRequestApplicationJson', 'offset')); - replace(_$result); - return _$result; - } -} - abstract mixin class $UsersGetUsersDetailsResponseApplicationJson_Ocs_Data_Users1InterfaceBuilder { void replace($UsersGetUsersDetailsResponseApplicationJson_Ocs_Data_Users1Interface other); void update(void Function($UsersGetUsersDetailsResponseApplicationJson_Ocs_Data_Users1InterfaceBuilder) updates); @@ -15757,120 +14304,6 @@ class UsersGetUsersDetailsResponseApplicationJsonBuilder } } -abstract mixin class $UsersGetDisabledUsersDetailsRequestApplicationJsonInterfaceBuilder { - void replace($UsersGetDisabledUsersDetailsRequestApplicationJsonInterface other); - void update(void Function($UsersGetDisabledUsersDetailsRequestApplicationJsonInterfaceBuilder) updates); - int? get limit; - set limit(int? limit); - - int? get offset; - set offset(int? offset); -} - -class _$UsersGetDisabledUsersDetailsRequestApplicationJson extends UsersGetDisabledUsersDetailsRequestApplicationJson { - @override - final int? limit; - @override - final int offset; - - factory _$UsersGetDisabledUsersDetailsRequestApplicationJson( - [void Function(UsersGetDisabledUsersDetailsRequestApplicationJsonBuilder)? updates]) => - (UsersGetDisabledUsersDetailsRequestApplicationJsonBuilder()..update(updates))._build(); - - _$UsersGetDisabledUsersDetailsRequestApplicationJson._({this.limit, required this.offset}) : super._() { - BuiltValueNullFieldError.checkNotNull(offset, r'UsersGetDisabledUsersDetailsRequestApplicationJson', 'offset'); - } - - @override - UsersGetDisabledUsersDetailsRequestApplicationJson rebuild( - void Function(UsersGetDisabledUsersDetailsRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - UsersGetDisabledUsersDetailsRequestApplicationJsonBuilder toBuilder() => - UsersGetDisabledUsersDetailsRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is UsersGetDisabledUsersDetailsRequestApplicationJson && - limit == other.limit && - offset == other.offset; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, limit.hashCode); - _$hash = $jc(_$hash, offset.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'UsersGetDisabledUsersDetailsRequestApplicationJson') - ..add('limit', limit) - ..add('offset', offset)) - .toString(); - } -} - -class UsersGetDisabledUsersDetailsRequestApplicationJsonBuilder - implements - Builder, - $UsersGetDisabledUsersDetailsRequestApplicationJsonInterfaceBuilder { - _$UsersGetDisabledUsersDetailsRequestApplicationJson? _$v; - - int? _limit; - int? get limit => _$this._limit; - set limit(covariant int? limit) => _$this._limit = limit; - - int? _offset; - int? get offset => _$this._offset; - set offset(covariant int? offset) => _$this._offset = offset; - - UsersGetDisabledUsersDetailsRequestApplicationJsonBuilder() { - UsersGetDisabledUsersDetailsRequestApplicationJson._defaults(this); - } - - UsersGetDisabledUsersDetailsRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _limit = $v.limit; - _offset = $v.offset; - _$v = null; - } - return this; - } - - @override - void replace(covariant UsersGetDisabledUsersDetailsRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$UsersGetDisabledUsersDetailsRequestApplicationJson; - } - - @override - void update(void Function(UsersGetDisabledUsersDetailsRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - UsersGetDisabledUsersDetailsRequestApplicationJson build() => _build(); - - _$UsersGetDisabledUsersDetailsRequestApplicationJson _build() { - UsersGetDisabledUsersDetailsRequestApplicationJson._validate(this); - final _$result = _$v ?? - _$UsersGetDisabledUsersDetailsRequestApplicationJson._( - limit: limit, - offset: BuiltValueNullFieldError.checkNotNull( - offset, r'UsersGetDisabledUsersDetailsRequestApplicationJson', 'offset')); - replace(_$result); - return _$result; - } -} - abstract mixin class $UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1InterfaceBuilder { void replace($UsersGetDisabledUsersDetailsResponseApplicationJson_Ocs_Data_Users1Interface other); void update( @@ -19873,103 +18306,6 @@ class UsersAddToGroupResponseApplicationJsonBuilder } } -abstract mixin class $UsersRemoveFromGroupRequestApplicationJsonInterfaceBuilder { - void replace($UsersRemoveFromGroupRequestApplicationJsonInterface other); - void update(void Function($UsersRemoveFromGroupRequestApplicationJsonInterfaceBuilder) updates); - String? get groupid; - set groupid(String? groupid); -} - -class _$UsersRemoveFromGroupRequestApplicationJson extends UsersRemoveFromGroupRequestApplicationJson { - @override - final String groupid; - - factory _$UsersRemoveFromGroupRequestApplicationJson( - [void Function(UsersRemoveFromGroupRequestApplicationJsonBuilder)? updates]) => - (UsersRemoveFromGroupRequestApplicationJsonBuilder()..update(updates))._build(); - - _$UsersRemoveFromGroupRequestApplicationJson._({required this.groupid}) : super._() { - BuiltValueNullFieldError.checkNotNull(groupid, r'UsersRemoveFromGroupRequestApplicationJson', 'groupid'); - } - - @override - UsersRemoveFromGroupRequestApplicationJson rebuild( - void Function(UsersRemoveFromGroupRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - UsersRemoveFromGroupRequestApplicationJsonBuilder toBuilder() => - UsersRemoveFromGroupRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is UsersRemoveFromGroupRequestApplicationJson && groupid == other.groupid; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, groupid.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'UsersRemoveFromGroupRequestApplicationJson')..add('groupid', groupid)) - .toString(); - } -} - -class UsersRemoveFromGroupRequestApplicationJsonBuilder - implements - Builder, - $UsersRemoveFromGroupRequestApplicationJsonInterfaceBuilder { - _$UsersRemoveFromGroupRequestApplicationJson? _$v; - - String? _groupid; - String? get groupid => _$this._groupid; - set groupid(covariant String? groupid) => _$this._groupid = groupid; - - UsersRemoveFromGroupRequestApplicationJsonBuilder() { - UsersRemoveFromGroupRequestApplicationJson._defaults(this); - } - - UsersRemoveFromGroupRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _groupid = $v.groupid; - _$v = null; - } - return this; - } - - @override - void replace(covariant UsersRemoveFromGroupRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$UsersRemoveFromGroupRequestApplicationJson; - } - - @override - void update(void Function(UsersRemoveFromGroupRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - UsersRemoveFromGroupRequestApplicationJson build() => _build(); - - _$UsersRemoveFromGroupRequestApplicationJson _build() { - UsersRemoveFromGroupRequestApplicationJson._validate(this); - final _$result = _$v ?? - _$UsersRemoveFromGroupRequestApplicationJson._( - groupid: BuiltValueNullFieldError.checkNotNull( - groupid, r'UsersRemoveFromGroupRequestApplicationJson', 'groupid')); - replace(_$result); - return _$result; - } -} - abstract mixin class $UsersRemoveFromGroupResponseApplicationJson_OcsInterfaceBuilder { void replace($UsersRemoveFromGroupResponseApplicationJson_OcsInterface other); void update(void Function($UsersRemoveFromGroupResponseApplicationJson_OcsInterfaceBuilder) updates); diff --git a/packages/nextcloud/lib/src/api/provisioning_api/provisioning_api.openapi.json b/packages/nextcloud/lib/src/api/provisioning_api/provisioning_api.openapi.json index 0dc80a1eb77..916bd0a59a2 100644 --- a/packages/nextcloud/lib/src/api/provisioning_api/provisioning_api.openapi.json +++ b/packages/nextcloud/lib/src/api/provisioning_api/provisioning_api.openapi.json @@ -393,24 +393,16 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "filter": { - "type": "string", - "nullable": true, - "description": "Filter for enabled or disabled apps" - } - } - } - } - } - }, "parameters": [ + { + "name": "filter", + "in": "query", + "description": "Filter for enabled or disabled apps", + "schema": { + "type": "string", + "nullable": true + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -766,36 +758,36 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "search": { - "type": "string", - "default": "", - "description": "Text to search for" - }, - "limit": { - "type": "integer", - "format": "int64", - "nullable": true, - "description": "Limit the amount of groups returned" - }, - "offset": { - "type": "integer", - "format": "int64", - "default": 0, - "description": "Offset for searching for groups" - } - } - } - } - } - }, "parameters": [ + { + "name": "search", + "in": "query", + "description": "Text to search for", + "schema": { + "type": "string", + "default": "" + } + }, + { + "name": "limit", + "in": "query", + "description": "Limit the amount of groups returned", + "schema": { + "type": "integer", + "format": "int64", + "nullable": true + } + }, + { + "name": "offset", + "in": "query", + "description": "Offset for searching for groups", + "schema": { + "type": "integer", + "format": "int64", + "default": 0 + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -1109,25 +1101,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "groupid" - ], - "properties": { - "groupid": { - "type": "string", - "description": "ID of the group" - } - } - } - } - } - }, "parameters": [ { "name": "userId", @@ -1138,6 +1111,15 @@ "type": "string" } }, + { + "name": "groupid", + "in": "query", + "description": "ID of the group", + "required": true, + "schema": { + "type": "string" + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -1540,36 +1522,36 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "search": { - "type": "string", - "default": "", - "description": "Text to search for" - }, - "limit": { - "type": "integer", - "format": "int64", - "nullable": true, - "description": "Limit the amount of groups returned" - }, - "offset": { - "type": "integer", - "format": "int64", - "default": 0, - "description": "Offset for searching for groups" - } - } - } - } - } - }, "parameters": [ + { + "name": "search", + "in": "query", + "description": "Text to search for", + "schema": { + "type": "string", + "default": "" + } + }, + { + "name": "limit", + "in": "query", + "description": "Limit the amount of groups returned", + "schema": { + "type": "integer", + "format": "int64", + "nullable": true + } + }, + { + "name": "offset", + "in": "query", + "description": "Offset for searching for groups", + "schema": { + "type": "integer", + "format": "int64", + "default": 0 + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -1779,35 +1761,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "search": { - "type": "string", - "default": "", - "description": "Text to search for" - }, - "limit": { - "type": "integer", - "format": "int64", - "nullable": true, - "description": "Limit the amount of groups returned" - }, - "offset": { - "type": "integer", - "format": "int64", - "default": 0, - "description": "Offset for searching for groups" - } - } - } - } - } - }, "parameters": [ { "name": "groupId", @@ -1819,6 +1772,35 @@ "pattern": "^.+$" } }, + { + "name": "search", + "in": "query", + "description": "Text to search for", + "schema": { + "type": "string", + "default": "" + } + }, + { + "name": "limit", + "in": "query", + "description": "Limit the amount of groups returned", + "schema": { + "type": "integer", + "format": "int64", + "nullable": true + } + }, + { + "name": "offset", + "in": "query", + "description": "Offset for searching for groups", + "schema": { + "type": "integer", + "format": "int64", + "default": 0 + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -1905,36 +1887,36 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "search": { - "type": "string", - "default": "", - "description": "Text to search for" - }, - "limit": { - "type": "integer", - "format": "int64", - "nullable": true, - "description": "Limit the amount of groups returned" - }, - "offset": { - "type": "integer", - "format": "int64", - "default": 0, - "description": "Offset for searching for groups" - } - } - } - } - } - }, "parameters": [ + { + "name": "search", + "in": "query", + "description": "Text to search for", + "schema": { + "type": "string", + "default": "" + } + }, + { + "name": "limit", + "in": "query", + "description": "Limit the amount of groups returned", + "schema": { + "type": "integer", + "format": "int64", + "nullable": true + } + }, + { + "name": "offset", + "in": "query", + "description": "Offset for searching for groups", + "schema": { + "type": "integer", + "format": "int64", + "default": 0 + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -2167,36 +2149,36 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "search": { - "type": "string", - "default": "", - "description": "Text to search for" - }, - "limit": { - "type": "integer", - "format": "int64", - "nullable": true, - "description": "Limit the amount of groups returned" - }, - "offset": { - "type": "integer", - "format": "int64", - "default": 0, - "description": "Offset for searching for groups" - } - } - } - } - } - }, "parameters": [ + { + "name": "search", + "in": "query", + "description": "Text to search for", + "schema": { + "type": "string", + "default": "" + } + }, + { + "name": "limit", + "in": "query", + "description": "Limit the amount of groups returned", + "schema": { + "type": "integer", + "format": "int64", + "nullable": true + } + }, + { + "name": "offset", + "in": "query", + "description": "Offset for searching for groups", + "schema": { + "type": "integer", + "format": "int64", + "default": 0 + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -2283,31 +2265,27 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "limit": { - "type": "integer", - "format": "int64", - "nullable": true, - "description": "Limit the amount of users returned" - }, - "offset": { - "type": "integer", - "format": "int64", - "default": 0, - "description": "Offset" - } - } - } - } - } - }, "parameters": [ + { + "name": "limit", + "in": "query", + "description": "Limit the amount of users returned", + "schema": { + "type": "integer", + "format": "int64", + "nullable": true + } + }, + { + "name": "offset", + "in": "query", + "description": "Offset", + "schema": { + "type": "integer", + "format": "int64", + "default": 0 + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -3416,25 +3394,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "groupid" - ], - "properties": { - "groupid": { - "type": "string", - "description": "ID of the group" - } - } - } - } - } - }, "parameters": [ { "name": "userId", @@ -3445,6 +3404,15 @@ "type": "string" } }, + { + "name": "groupid", + "in": "query", + "description": "ID of the group", + "required": true, + "schema": { + "type": "string" + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -3915,28 +3883,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "configKeys" - ], - "properties": { - "configKeys": { - "type": "array", - "description": "Keys to delete", - "items": { - "type": "string" - } - } - } - } - } - } - }, "parameters": [ { "name": "appId", @@ -3947,6 +3893,18 @@ "type": "string" } }, + { + "name": "configKeys[]", + "in": "query", + "description": "Keys to delete", + "required": true, + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, { "name": "OCS-APIRequest", "in": "header", diff --git a/packages/nextcloud/lib/src/api/spreed/patches/0-enums.json b/packages/nextcloud/lib/src/api/spreed/patches/0-enums.json index 1505abacaad..c46af3f56a6 100644 --- a/packages/nextcloud/lib/src/api/spreed/patches/0-enums.json +++ b/packages/nextcloud/lib/src/api/spreed/patches/0-enums.json @@ -99,13 +99,6 @@ "$ref": "#/components/schemas/ActorType" } }, - { - "op": "replace", - "path": "/paths/~1ocs~1v2.php~1apps~1spreed~1api~1{apiVersion}~1room~1{token}~1rejected-dialout/delete/requestBody/content/application~1json/schema/properties/options/properties/actorType", - "value": { - "$ref": "#/components/schemas/ActorType" - } - }, { "op": "replace", "path": "/components/schemas/ChatMessage/allOf/1/properties/lastEditActorType", diff --git a/packages/nextcloud/lib/src/api/spreed/spreed.openapi.dart b/packages/nextcloud/lib/src/api/spreed/spreed.openapi.dart index 481c74bc5dd..80cf99af7db 100644 --- a/packages/nextcloud/lib/src/api/spreed/spreed.openapi.dart +++ b/packages/nextcloud/lib/src/api/spreed/spreed.openapi.dart @@ -113,6 +113,7 @@ class $AvatarClient { /// Parameters: /// * [apiVersion] Defaults to `"v1"`. /// * [token] + /// * [darkTheme] Theme used for background. Defaults to `0`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -125,8 +126,8 @@ class $AvatarClient { _i3.Request $getAvatar_Request({ required String token, AvatarGetAvatarApiVersion? apiVersion, + AvatarGetAvatarDarkTheme? darkTheme, bool? oCSAPIRequest, - AvatarGetAvatarRequestApplicationJson? $body, }) { final _parameters = {}; final __token = _$jsonSerializers.serialize(token, specifiedType: const FullType(String)); @@ -142,7 +143,12 @@ class $AvatarClient { __apiVersion ??= 'v1'; _parameters['apiVersion'] = __apiVersion; - final _path = _i5.UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/avatar').expand(_parameters); + var __darkTheme = _$jsonSerializers.serialize(darkTheme, specifiedType: const FullType(AvatarGetAvatarDarkTheme)); + __darkTheme ??= 0; + _parameters['darkTheme'] = __darkTheme; + + final _path = _i5.UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/avatar{?darkTheme*}') + .expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); _request.headers['Accept'] = '*/*'; @@ -165,17 +171,6 @@ class $AvatarClient { __oCSAPIRequest ??= true; _request.headers['OCS-APIRequest'] = const _i4.HeaderEncoder().convert(__oCSAPIRequest); - _request.headers['Content-Type'] = 'application/json'; - _request.body = $body != null - ? json.encode( - _$jsonSerializers.serialize($body, specifiedType: const FullType(AvatarGetAvatarRequestApplicationJson)), - ) - : json.encode( - _$jsonSerializers.serialize( - AvatarGetAvatarRequestApplicationJson(), - specifiedType: const FullType(AvatarGetAvatarRequestApplicationJson), - ), - ); return _request; } @@ -187,6 +182,7 @@ class $AvatarClient { /// Parameters: /// * [apiVersion] Defaults to `"v1"`. /// * [token] + /// * [darkTheme] Theme used for background. Defaults to `0`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -198,14 +194,14 @@ class $AvatarClient { Future<_i1.DynamiteResponse> getAvatar({ required String token, AvatarGetAvatarApiVersion? apiVersion, + AvatarGetAvatarDarkTheme? darkTheme, bool? oCSAPIRequest, - AvatarGetAvatarRequestApplicationJson? $body, }) async { final _request = $getAvatar_Request( token: token, apiVersion: apiVersion, + darkTheme: darkTheme, oCSAPIRequest: oCSAPIRequest, - $body: $body, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -663,6 +659,8 @@ class $AvatarClient { /// Parameters: /// * [apiVersion] Defaults to `"v1"`. /// * [size] Avatar size. + /// * [cloudId] Federation CloudID to get the avatar for. + /// * [darkTheme] Theme used for background. Defaults to `0`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -674,8 +672,9 @@ class $AvatarClient { @_i2.experimental _i3.Request $getUserProxyAvatarWithoutRoom_Request({ required AvatarGetUserProxyAvatarWithoutRoomSize size, - required AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJson $body, + required String cloudId, AvatarGetUserProxyAvatarWithoutRoomApiVersion? apiVersion, + AvatarGetUserProxyAvatarWithoutRoomDarkTheme? darkTheme, bool? oCSAPIRequest, }) { final _parameters = {}; @@ -683,6 +682,9 @@ class $AvatarClient { _$jsonSerializers.serialize(size, specifiedType: const FullType(AvatarGetUserProxyAvatarWithoutRoomSize)); _parameters['size'] = __size; + final __cloudId = _$jsonSerializers.serialize(cloudId, specifiedType: const FullType(String)); + _parameters['cloudId'] = __cloudId; + var __apiVersion = _$jsonSerializers.serialize( apiVersion, specifiedType: const FullType(AvatarGetUserProxyAvatarWithoutRoomApiVersion), @@ -690,8 +692,16 @@ class $AvatarClient { __apiVersion ??= 'v1'; _parameters['apiVersion'] = __apiVersion; + var __darkTheme = _$jsonSerializers.serialize( + darkTheme, + specifiedType: const FullType(AvatarGetUserProxyAvatarWithoutRoomDarkTheme), + ); + __darkTheme ??= 0; + _parameters['darkTheme'] = __darkTheme; + final _path = - _i5.UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/proxy/new/user-avatar/{size}').expand(_parameters); + _i5.UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/proxy/new/user-avatar/{size}{?cloudId*,darkTheme*}') + .expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); _request.headers['Accept'] = '*/*'; @@ -716,13 +726,6 @@ class $AvatarClient { __oCSAPIRequest ??= true; _request.headers['OCS-APIRequest'] = const _i4.HeaderEncoder().convert(__oCSAPIRequest); - _request.headers['Content-Type'] = 'application/json'; - _request.body = json.encode( - _$jsonSerializers.serialize( - $body, - specifiedType: const FullType(AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJson), - ), - ); return _request; } @@ -734,6 +737,8 @@ class $AvatarClient { /// Parameters: /// * [apiVersion] Defaults to `"v1"`. /// * [size] Avatar size. + /// * [cloudId] Federation CloudID to get the avatar for. + /// * [darkTheme] Theme used for background. Defaults to `0`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -744,15 +749,17 @@ class $AvatarClient { /// * [$getUserProxyAvatarWithoutRoom_Serializer] for a converter to parse the `Response` from an executed request. Future<_i1.DynamiteResponse> getUserProxyAvatarWithoutRoom({ required AvatarGetUserProxyAvatarWithoutRoomSize size, - required AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJson $body, + required String cloudId, AvatarGetUserProxyAvatarWithoutRoomApiVersion? apiVersion, + AvatarGetUserProxyAvatarWithoutRoomDarkTheme? darkTheme, bool? oCSAPIRequest, }) async { final _request = $getUserProxyAvatarWithoutRoom_Request( size: size, + cloudId: cloudId, apiVersion: apiVersion, + darkTheme: darkTheme, oCSAPIRequest: oCSAPIRequest, - $body: $body, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -778,6 +785,7 @@ class $AvatarClient { /// Parameters: /// * [apiVersion] Defaults to `"v1"`. /// * [size] Avatar size. + /// * [cloudId] Federation CloudID to get the avatar for. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -789,7 +797,7 @@ class $AvatarClient { @_i2.experimental _i3.Request $getUserProxyAvatarDarkWithoutRoom_Request({ required AvatarGetUserProxyAvatarDarkWithoutRoomSize size, - required AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJson $body, + required String cloudId, AvatarGetUserProxyAvatarDarkWithoutRoomApiVersion? apiVersion, bool? oCSAPIRequest, }) { @@ -798,6 +806,9 @@ class $AvatarClient { _$jsonSerializers.serialize(size, specifiedType: const FullType(AvatarGetUserProxyAvatarDarkWithoutRoomSize)); _parameters['size'] = __size; + final __cloudId = _$jsonSerializers.serialize(cloudId, specifiedType: const FullType(String)); + _parameters['cloudId'] = __cloudId; + var __apiVersion = _$jsonSerializers.serialize( apiVersion, specifiedType: const FullType(AvatarGetUserProxyAvatarDarkWithoutRoomApiVersion), @@ -805,8 +816,9 @@ class $AvatarClient { __apiVersion ??= 'v1'; _parameters['apiVersion'] = __apiVersion; - final _path = _i5.UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/proxy/new/user-avatar/{size}/dark') - .expand(_parameters); + final _path = + _i5.UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/proxy/new/user-avatar/{size}/dark{?cloudId*}') + .expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); _request.headers['Accept'] = '*/*'; @@ -831,13 +843,6 @@ class $AvatarClient { __oCSAPIRequest ??= true; _request.headers['OCS-APIRequest'] = const _i4.HeaderEncoder().convert(__oCSAPIRequest); - _request.headers['Content-Type'] = 'application/json'; - _request.body = json.encode( - _$jsonSerializers.serialize( - $body, - specifiedType: const FullType(AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJson), - ), - ); return _request; } @@ -849,6 +854,7 @@ class $AvatarClient { /// Parameters: /// * [apiVersion] Defaults to `"v1"`. /// * [size] Avatar size. + /// * [cloudId] Federation CloudID to get the avatar for. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -859,15 +865,15 @@ class $AvatarClient { /// * [$getUserProxyAvatarDarkWithoutRoom_Serializer] for a converter to parse the `Response` from an executed request. Future<_i1.DynamiteResponse> getUserProxyAvatarDarkWithoutRoom({ required AvatarGetUserProxyAvatarDarkWithoutRoomSize size, - required AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJson $body, + required String cloudId, AvatarGetUserProxyAvatarDarkWithoutRoomApiVersion? apiVersion, bool? oCSAPIRequest, }) async { final _request = $getUserProxyAvatarDarkWithoutRoom_Request( size: size, + cloudId: cloudId, apiVersion: apiVersion, oCSAPIRequest: oCSAPIRequest, - $body: $body, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -894,6 +900,8 @@ class $AvatarClient { /// * [apiVersion] Defaults to `"v1"`. /// * [token] /// * [size] Avatar size. + /// * [cloudId] Federation CloudID to get the avatar for. + /// * [darkTheme] Theme used for background. Defaults to `0`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -906,8 +914,9 @@ class $AvatarClient { _i3.Request $getUserProxyAvatar_Request({ required String token, required AvatarGetUserProxyAvatarSize size, - required AvatarGetUserProxyAvatarRequestApplicationJson $body, + required String cloudId, AvatarGetUserProxyAvatarApiVersion? apiVersion, + AvatarGetUserProxyAvatarDarkTheme? darkTheme, bool? oCSAPIRequest, }) { final _parameters = {}; @@ -922,13 +931,22 @@ class $AvatarClient { final __size = _$jsonSerializers.serialize(size, specifiedType: const FullType(AvatarGetUserProxyAvatarSize)); _parameters['size'] = __size; + final __cloudId = _$jsonSerializers.serialize(cloudId, specifiedType: const FullType(String)); + _parameters['cloudId'] = __cloudId; + var __apiVersion = _$jsonSerializers.serialize(apiVersion, specifiedType: const FullType(AvatarGetUserProxyAvatarApiVersion)); __apiVersion ??= 'v1'; _parameters['apiVersion'] = __apiVersion; - final _path = _i5.UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/proxy/{token}/user-avatar/{size}') - .expand(_parameters); + var __darkTheme = + _$jsonSerializers.serialize(darkTheme, specifiedType: const FullType(AvatarGetUserProxyAvatarDarkTheme)); + __darkTheme ??= 0; + _parameters['darkTheme'] = __darkTheme; + + final _path = _i5.UriTemplate( + '/ocs/v2.php/apps/spreed/api/{apiVersion}/proxy/{token}/user-avatar/{size}{?cloudId*,darkTheme*}', + ).expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); _request.headers['Accept'] = '*/*'; @@ -951,13 +969,6 @@ class $AvatarClient { __oCSAPIRequest ??= true; _request.headers['OCS-APIRequest'] = const _i4.HeaderEncoder().convert(__oCSAPIRequest); - _request.headers['Content-Type'] = 'application/json'; - _request.body = json.encode( - _$jsonSerializers.serialize( - $body, - specifiedType: const FullType(AvatarGetUserProxyAvatarRequestApplicationJson), - ), - ); return _request; } @@ -970,6 +981,8 @@ class $AvatarClient { /// * [apiVersion] Defaults to `"v1"`. /// * [token] /// * [size] Avatar size. + /// * [cloudId] Federation CloudID to get the avatar for. + /// * [darkTheme] Theme used for background. Defaults to `0`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -981,16 +994,18 @@ class $AvatarClient { Future<_i1.DynamiteResponse> getUserProxyAvatar({ required String token, required AvatarGetUserProxyAvatarSize size, - required AvatarGetUserProxyAvatarRequestApplicationJson $body, + required String cloudId, AvatarGetUserProxyAvatarApiVersion? apiVersion, + AvatarGetUserProxyAvatarDarkTheme? darkTheme, bool? oCSAPIRequest, }) async { final _request = $getUserProxyAvatar_Request( token: token, size: size, + cloudId: cloudId, apiVersion: apiVersion, + darkTheme: darkTheme, oCSAPIRequest: oCSAPIRequest, - $body: $body, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -1017,6 +1032,7 @@ class $AvatarClient { /// * [apiVersion] Defaults to `"v1"`. /// * [token] /// * [size] Avatar size. + /// * [cloudId] Federation CloudID to get the avatar for. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -1029,7 +1045,7 @@ class $AvatarClient { _i3.Request $getUserProxyAvatarDark_Request({ required String token, required AvatarGetUserProxyAvatarDarkSize size, - required AvatarGetUserProxyAvatarDarkRequestApplicationJson $body, + required String cloudId, AvatarGetUserProxyAvatarDarkApiVersion? apiVersion, bool? oCSAPIRequest, }) { @@ -1045,13 +1061,17 @@ class $AvatarClient { final __size = _$jsonSerializers.serialize(size, specifiedType: const FullType(AvatarGetUserProxyAvatarDarkSize)); _parameters['size'] = __size; + final __cloudId = _$jsonSerializers.serialize(cloudId, specifiedType: const FullType(String)); + _parameters['cloudId'] = __cloudId; + var __apiVersion = _$jsonSerializers.serialize(apiVersion, specifiedType: const FullType(AvatarGetUserProxyAvatarDarkApiVersion)); __apiVersion ??= 'v1'; _parameters['apiVersion'] = __apiVersion; - final _path = _i5.UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/proxy/{token}/user-avatar/{size}/dark') - .expand(_parameters); + final _path = + _i5.UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/proxy/{token}/user-avatar/{size}/dark{?cloudId*}') + .expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); _request.headers['Accept'] = '*/*'; @@ -1074,13 +1094,6 @@ class $AvatarClient { __oCSAPIRequest ??= true; _request.headers['OCS-APIRequest'] = const _i4.HeaderEncoder().convert(__oCSAPIRequest); - _request.headers['Content-Type'] = 'application/json'; - _request.body = json.encode( - _$jsonSerializers.serialize( - $body, - specifiedType: const FullType(AvatarGetUserProxyAvatarDarkRequestApplicationJson), - ), - ); return _request; } @@ -1093,6 +1106,7 @@ class $AvatarClient { /// * [apiVersion] Defaults to `"v1"`. /// * [token] /// * [size] Avatar size. + /// * [cloudId] Federation CloudID to get the avatar for. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -1104,16 +1118,16 @@ class $AvatarClient { Future<_i1.DynamiteResponse> getUserProxyAvatarDark({ required String token, required AvatarGetUserProxyAvatarDarkSize size, - required AvatarGetUserProxyAvatarDarkRequestApplicationJson $body, + required String cloudId, AvatarGetUserProxyAvatarDarkApiVersion? apiVersion, bool? oCSAPIRequest, }) async { final _request = $getUserProxyAvatarDark_Request( token: token, size: size, + cloudId: cloudId, apiVersion: apiVersion, oCSAPIRequest: oCSAPIRequest, - $body: $body, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -1732,6 +1746,7 @@ class $BotClient { /// * [apiVersion] Defaults to `"v1"`. /// * [token] Conversation token. /// * [messageId] ID of the message. + /// * [reaction] Reaction to delete. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -1747,7 +1762,7 @@ class $BotClient { _i3.Request $deleteReaction_Request({ required String token, required int messageId, - required BotDeleteReactionRequestApplicationJson $body, + required String reaction, BotDeleteReactionApiVersion? apiVersion, bool? oCSAPIRequest, }) { @@ -1763,13 +1778,17 @@ class $BotClient { final __messageId = _$jsonSerializers.serialize(messageId, specifiedType: const FullType(int)); _parameters['messageId'] = __messageId; + final __reaction = _$jsonSerializers.serialize(reaction, specifiedType: const FullType(String)); + _parameters['reaction'] = __reaction; + var __apiVersion = _$jsonSerializers.serialize(apiVersion, specifiedType: const FullType(BotDeleteReactionApiVersion)); __apiVersion ??= 'v1'; _parameters['apiVersion'] = __apiVersion; - final _path = _i5.UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/bot/{token}/reaction/{messageId}') - .expand(_parameters); + final _path = + _i5.UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/bot/{token}/reaction/{messageId}{?reaction*}') + .expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('delete', _uri); _request.headers['Accept'] = 'application/json'; @@ -1792,10 +1811,6 @@ class $BotClient { __oCSAPIRequest ??= true; _request.headers['OCS-APIRequest'] = const _i4.HeaderEncoder().convert(__oCSAPIRequest); - _request.headers['Content-Type'] = 'application/json'; - _request.body = json.encode( - _$jsonSerializers.serialize($body, specifiedType: const FullType(BotDeleteReactionRequestApplicationJson)), - ); return _request; } @@ -1808,6 +1823,7 @@ class $BotClient { /// * [apiVersion] Defaults to `"v1"`. /// * [token] Conversation token. /// * [messageId] ID of the message. + /// * [reaction] Reaction to delete. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -1822,16 +1838,16 @@ class $BotClient { Future<_i1.DynamiteResponse> deleteReaction({ required String token, required int messageId, - required BotDeleteReactionRequestApplicationJson $body, + required String reaction, BotDeleteReactionApiVersion? apiVersion, bool? oCSAPIRequest, }) async { final _request = $deleteReaction_Request( token: token, messageId: messageId, + reaction: reaction, apiVersion: apiVersion, oCSAPIRequest: oCSAPIRequest, - $body: $body, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -3265,6 +3281,7 @@ class $CallClient { /// Parameters: /// * [apiVersion] Defaults to `"v4"`. /// * [token] + /// * [all] whether to also terminate the call for all participants. Defaults to `0`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -3278,8 +3295,8 @@ class $CallClient { _i3.Request $leaveCall_Request({ required String token, CallLeaveCallApiVersion? apiVersion, + CallLeaveCallAll? all, bool? oCSAPIRequest, - CallLeaveCallRequestApplicationJson? $body, }) { final _parameters = {}; final __token = _$jsonSerializers.serialize(token, specifiedType: const FullType(String)); @@ -3294,7 +3311,11 @@ class $CallClient { __apiVersion ??= 'v4'; _parameters['apiVersion'] = __apiVersion; - final _path = _i5.UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/call/{token}').expand(_parameters); + var __all = _$jsonSerializers.serialize(all, specifiedType: const FullType(CallLeaveCallAll)); + __all ??= 0; + _parameters['all'] = __all; + + final _path = _i5.UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/call/{token}{?all*}').expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('delete', _uri); _request.headers['Accept'] = 'application/json'; @@ -3317,17 +3338,6 @@ class $CallClient { __oCSAPIRequest ??= true; _request.headers['OCS-APIRequest'] = const _i4.HeaderEncoder().convert(__oCSAPIRequest); - _request.headers['Content-Type'] = 'application/json'; - _request.body = $body != null - ? json.encode( - _$jsonSerializers.serialize($body, specifiedType: const FullType(CallLeaveCallRequestApplicationJson)), - ) - : json.encode( - _$jsonSerializers.serialize( - CallLeaveCallRequestApplicationJson(), - specifiedType: const FullType(CallLeaveCallRequestApplicationJson), - ), - ); return _request; } @@ -3339,6 +3349,7 @@ class $CallClient { /// Parameters: /// * [apiVersion] Defaults to `"v4"`. /// * [token] + /// * [all] whether to also terminate the call for all participants. Defaults to `0`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -3351,14 +3362,14 @@ class $CallClient { Future<_i1.DynamiteResponse> leaveCall({ required String token, CallLeaveCallApiVersion? apiVersion, + CallLeaveCallAll? all, bool? oCSAPIRequest, - CallLeaveCallRequestApplicationJson? $body, }) async { final _request = $leaveCall_Request( token: token, apiVersion: apiVersion, + all: all, oCSAPIRequest: oCSAPIRequest, - $body: $body, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -3633,6 +3644,15 @@ class $ChatClient { /// Parameters: /// * [apiVersion] Defaults to `"v1"`. /// * [token] + /// * [lookIntoFuture] Polling for new messages (1) or getting the history of the chat (0). + /// * [limit] Number of chat messages to receive (100 by default, 200 at most). Defaults to `100`. + /// * [lastKnownMessageId] The last known message (serves as offset). Defaults to `0`. + /// * [lastCommonReadId] The last known common read message (so the response is 200 instead of 304 when it changes even when there are no messages). Defaults to `0`. + /// * [timeout] Number of seconds to wait for new messages (30 by default, 30 at most). Defaults to `30`. + /// * [setReadMarker] Automatically set the last read marker when 1, if your client does this itself via chat/{token}/read set to 0. Defaults to `1`. + /// * [includeLastKnown] Include the $lastKnownMessageId in the messages when 1 (default 0). Defaults to `0`. + /// * [noStatusUpdate] When the user status should not be automatically set to online set to 1 (default 0). Defaults to `0`. + /// * [markNotificationsAsRead] Set to 0 when notifications should not be marked as read (default 1). Defaults to `1`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -3645,8 +3665,16 @@ class $ChatClient { @_i2.experimental _i3.Request $receiveMessages_Request({ required String token, - required ChatReceiveMessagesRequestApplicationJson $body, + required ChatReceiveMessagesLookIntoFuture lookIntoFuture, ChatReceiveMessagesApiVersion? apiVersion, + int? limit, + int? lastKnownMessageId, + int? lastCommonReadId, + int? timeout, + ChatReceiveMessagesSetReadMarker? setReadMarker, + ChatReceiveMessagesIncludeLastKnown? includeLastKnown, + ChatReceiveMessagesNoStatusUpdate? noStatusUpdate, + ChatReceiveMessagesMarkNotificationsAsRead? markNotificationsAsRead, bool? oCSAPIRequest, }) { final _parameters = {}; @@ -3658,12 +3686,74 @@ class $ChatClient { ); _parameters['token'] = __token; + final __lookIntoFuture = + _$jsonSerializers.serialize(lookIntoFuture, specifiedType: const FullType(ChatReceiveMessagesLookIntoFuture)); + _parameters['lookIntoFuture'] = __lookIntoFuture; + var __apiVersion = _$jsonSerializers.serialize(apiVersion, specifiedType: const FullType(ChatReceiveMessagesApiVersion)); __apiVersion ??= 'v1'; _parameters['apiVersion'] = __apiVersion; - final _path = _i5.UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}').expand(_parameters); + var __limit = _$jsonSerializers.serialize(limit, specifiedType: const FullType(int)); + __limit ??= 100; + _parameters['limit'] = __limit; + + var __lastKnownMessageId = _$jsonSerializers.serialize(lastKnownMessageId, specifiedType: const FullType(int)); + __lastKnownMessageId ??= 0; + _i4.checkNumber( + __lastKnownMessageId, + 'lastKnownMessageId', + minimum: 0, + ); + _parameters['lastKnownMessageId'] = __lastKnownMessageId; + + var __lastCommonReadId = _$jsonSerializers.serialize(lastCommonReadId, specifiedType: const FullType(int)); + __lastCommonReadId ??= 0; + _i4.checkNumber( + __lastCommonReadId, + 'lastCommonReadId', + minimum: 0, + ); + _parameters['lastCommonReadId'] = __lastCommonReadId; + + var __timeout = _$jsonSerializers.serialize(timeout, specifiedType: const FullType(int)); + __timeout ??= 30; + _i4.checkNumber( + __timeout, + 'timeout', + maximum: 30, + minimum: 0, + ); + _parameters['timeout'] = __timeout; + + var __setReadMarker = + _$jsonSerializers.serialize(setReadMarker, specifiedType: const FullType(ChatReceiveMessagesSetReadMarker)); + __setReadMarker ??= 1; + _parameters['setReadMarker'] = __setReadMarker; + + var __includeLastKnown = _$jsonSerializers.serialize( + includeLastKnown, + specifiedType: const FullType(ChatReceiveMessagesIncludeLastKnown), + ); + __includeLastKnown ??= 0; + _parameters['includeLastKnown'] = __includeLastKnown; + + var __noStatusUpdate = + _$jsonSerializers.serialize(noStatusUpdate, specifiedType: const FullType(ChatReceiveMessagesNoStatusUpdate)); + __noStatusUpdate ??= 0; + _parameters['noStatusUpdate'] = __noStatusUpdate; + + var __markNotificationsAsRead = _$jsonSerializers.serialize( + markNotificationsAsRead, + specifiedType: const FullType(ChatReceiveMessagesMarkNotificationsAsRead), + ); + __markNotificationsAsRead ??= 1; + _parameters['markNotificationsAsRead'] = __markNotificationsAsRead; + + final _path = _i5.UriTemplate( + '/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}{?lookIntoFuture*,limit*,lastKnownMessageId*,lastCommonReadId*,timeout*,setReadMarker*,includeLastKnown*,noStatusUpdate*,markNotificationsAsRead*}', + ).expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); _request.headers['Accept'] = 'application/json'; @@ -3686,10 +3776,6 @@ class $ChatClient { __oCSAPIRequest ??= true; _request.headers['OCS-APIRequest'] = const _i4.HeaderEncoder().convert(__oCSAPIRequest); - _request.headers['Content-Type'] = 'application/json'; - _request.body = json.encode( - _$jsonSerializers.serialize($body, specifiedType: const FullType(ChatReceiveMessagesRequestApplicationJson)), - ); return _request; } @@ -3705,6 +3791,15 @@ class $ChatClient { /// Parameters: /// * [apiVersion] Defaults to `"v1"`. /// * [token] + /// * [lookIntoFuture] Polling for new messages (1) or getting the history of the chat (0). + /// * [limit] Number of chat messages to receive (100 by default, 200 at most). Defaults to `100`. + /// * [lastKnownMessageId] The last known message (serves as offset). Defaults to `0`. + /// * [lastCommonReadId] The last known common read message (so the response is 200 instead of 304 when it changes even when there are no messages). Defaults to `0`. + /// * [timeout] Number of seconds to wait for new messages (30 by default, 30 at most). Defaults to `30`. + /// * [setReadMarker] Automatically set the last read marker when 1, if your client does this itself via chat/{token}/read set to 0. Defaults to `1`. + /// * [includeLastKnown] Include the $lastKnownMessageId in the messages when 1 (default 0). Defaults to `0`. + /// * [noStatusUpdate] When the user status should not be automatically set to online set to 1 (default 0). Defaults to `0`. + /// * [markNotificationsAsRead] Set to 0 when notifications should not be marked as read (default 1). Defaults to `1`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -3717,15 +3812,31 @@ class $ChatClient { Future<_i1.DynamiteResponse> receiveMessages({ required String token, - required ChatReceiveMessagesRequestApplicationJson $body, + required ChatReceiveMessagesLookIntoFuture lookIntoFuture, ChatReceiveMessagesApiVersion? apiVersion, + int? limit, + int? lastKnownMessageId, + int? lastCommonReadId, + int? timeout, + ChatReceiveMessagesSetReadMarker? setReadMarker, + ChatReceiveMessagesIncludeLastKnown? includeLastKnown, + ChatReceiveMessagesNoStatusUpdate? noStatusUpdate, + ChatReceiveMessagesMarkNotificationsAsRead? markNotificationsAsRead, bool? oCSAPIRequest, }) async { final _request = $receiveMessages_Request( token: token, + lookIntoFuture: lookIntoFuture, apiVersion: apiVersion, + limit: limit, + lastKnownMessageId: lastKnownMessageId, + lastCommonReadId: lastCommonReadId, + timeout: timeout, + setReadMarker: setReadMarker, + includeLastKnown: includeLastKnown, + noStatusUpdate: noStatusUpdate, + markNotificationsAsRead: markNotificationsAsRead, oCSAPIRequest: oCSAPIRequest, - $body: $body, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -4261,6 +4372,7 @@ class $ChatClient { /// * [apiVersion] Defaults to `"v1"`. /// * [token] /// * [messageId] The focused message which should be in the "middle" of the returned context. + /// * [limit] Number of chat messages to receive in both directions (50 by default, 100 at most, might return 201 messages). Defaults to `50`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -4275,8 +4387,8 @@ class $ChatClient { required String token, required int messageId, ChatGetMessageContextApiVersion? apiVersion, + int? limit, bool? oCSAPIRequest, - ChatGetMessageContextRequestApplicationJson? $body, }) { final _parameters = {}; final __token = _$jsonSerializers.serialize(token, specifiedType: const FullType(String)); @@ -4300,7 +4412,17 @@ class $ChatClient { __apiVersion ??= 'v1'; _parameters['apiVersion'] = __apiVersion; - final _path = _i5.UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}/{messageId}/context') + var __limit = _$jsonSerializers.serialize(limit, specifiedType: const FullType(int)); + __limit ??= 50; + _i4.checkNumber( + __limit, + 'limit', + maximum: 100, + minimum: 1, + ); + _parameters['limit'] = __limit; + + final _path = _i5.UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}/{messageId}/context{?limit*}') .expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); @@ -4324,20 +4446,6 @@ class $ChatClient { __oCSAPIRequest ??= true; _request.headers['OCS-APIRequest'] = const _i4.HeaderEncoder().convert(__oCSAPIRequest); - _request.headers['Content-Type'] = 'application/json'; - _request.body = $body != null - ? json.encode( - _$jsonSerializers.serialize( - $body, - specifiedType: const FullType(ChatGetMessageContextRequestApplicationJson), - ), - ) - : json.encode( - _$jsonSerializers.serialize( - ChatGetMessageContextRequestApplicationJson(), - specifiedType: const FullType(ChatGetMessageContextRequestApplicationJson), - ), - ); return _request; } @@ -4350,6 +4458,7 @@ class $ChatClient { /// * [apiVersion] Defaults to `"v1"`. /// * [token] /// * [messageId] The focused message which should be in the "middle" of the returned context. + /// * [limit] Number of chat messages to receive in both directions (50 by default, 100 at most, might return 201 messages). Defaults to `50`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -4364,15 +4473,15 @@ class $ChatClient { required String token, required int messageId, ChatGetMessageContextApiVersion? apiVersion, + int? limit, bool? oCSAPIRequest, - ChatGetMessageContextRequestApplicationJson? $body, }) async { final _request = $getMessageContext_Request( token: token, messageId: messageId, apiVersion: apiVersion, + limit: limit, oCSAPIRequest: oCSAPIRequest, - $body: $body, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -5001,6 +5110,9 @@ class $ChatClient { /// Parameters: /// * [apiVersion] Defaults to `"v1"`. /// * [token] + /// * [search] Text to search for. + /// * [limit] Maximum number of results. Defaults to `20`. + /// * [includeStatus] Include the user statuses. Defaults to `0`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -5012,8 +5124,10 @@ class $ChatClient { @_i2.experimental _i3.Request $mentions_Request({ required String token, - required ChatMentionsRequestApplicationJson $body, + required String search, ChatMentionsApiVersion? apiVersion, + int? limit, + ChatMentionsIncludeStatus? includeStatus, bool? oCSAPIRequest, }) { final _parameters = {}; @@ -5025,11 +5139,25 @@ class $ChatClient { ); _parameters['token'] = __token; + final __search = _$jsonSerializers.serialize(search, specifiedType: const FullType(String)); + _parameters['search'] = __search; + var __apiVersion = _$jsonSerializers.serialize(apiVersion, specifiedType: const FullType(ChatMentionsApiVersion)); __apiVersion ??= 'v1'; _parameters['apiVersion'] = __apiVersion; - final _path = _i5.UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}/mentions').expand(_parameters); + var __limit = _$jsonSerializers.serialize(limit, specifiedType: const FullType(int)); + __limit ??= 20; + _parameters['limit'] = __limit; + + var __includeStatus = + _$jsonSerializers.serialize(includeStatus, specifiedType: const FullType(ChatMentionsIncludeStatus)); + __includeStatus ??= 0; + _parameters['includeStatus'] = __includeStatus; + + final _path = _i5.UriTemplate( + '/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}/mentions{?search*,limit*,includeStatus*}', + ).expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); _request.headers['Accept'] = 'application/json'; @@ -5052,9 +5180,6 @@ class $ChatClient { __oCSAPIRequest ??= true; _request.headers['OCS-APIRequest'] = const _i4.HeaderEncoder().convert(__oCSAPIRequest); - _request.headers['Content-Type'] = 'application/json'; - _request.body = json - .encode(_$jsonSerializers.serialize($body, specifiedType: const FullType(ChatMentionsRequestApplicationJson))); return _request; } @@ -5066,6 +5191,9 @@ class $ChatClient { /// Parameters: /// * [apiVersion] Defaults to `"v1"`. /// * [token] + /// * [search] Text to search for. + /// * [limit] Maximum number of results. Defaults to `20`. + /// * [includeStatus] Include the user statuses. Defaults to `0`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -5076,15 +5204,19 @@ class $ChatClient { /// * [$mentions_Serializer] for a converter to parse the `Response` from an executed request. Future<_i1.DynamiteResponse> mentions({ required String token, - required ChatMentionsRequestApplicationJson $body, + required String search, ChatMentionsApiVersion? apiVersion, + int? limit, + ChatMentionsIncludeStatus? includeStatus, bool? oCSAPIRequest, }) async { final _request = $mentions_Request( token: token, + search: search, apiVersion: apiVersion, + limit: limit, + includeStatus: includeStatus, oCSAPIRequest: oCSAPIRequest, - $body: $body, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -5111,6 +5243,9 @@ class $ChatClient { /// Parameters: /// * [apiVersion] Defaults to `"v1"`. /// * [token] + /// * [objectType] Type of the objects. + /// * [lastKnownMessageId] ID of the last known message. Defaults to `0`. + /// * [limit] Maximum number of objects. Defaults to `100`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -5122,8 +5257,10 @@ class $ChatClient { @_i2.experimental _i3.Request $getObjectsSharedInRoom_Request({ required String token, - required ChatGetObjectsSharedInRoomRequestApplicationJson $body, + required String objectType, ChatGetObjectsSharedInRoomApiVersion? apiVersion, + int? lastKnownMessageId, + int? limit, bool? oCSAPIRequest, }) { final _parameters = {}; @@ -5135,12 +5272,36 @@ class $ChatClient { ); _parameters['token'] = __token; + final __objectType = _$jsonSerializers.serialize(objectType, specifiedType: const FullType(String)); + _parameters['objectType'] = __objectType; + var __apiVersion = _$jsonSerializers.serialize(apiVersion, specifiedType: const FullType(ChatGetObjectsSharedInRoomApiVersion)); __apiVersion ??= 'v1'; _parameters['apiVersion'] = __apiVersion; - final _path = _i5.UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}/share').expand(_parameters); + var __lastKnownMessageId = _$jsonSerializers.serialize(lastKnownMessageId, specifiedType: const FullType(int)); + __lastKnownMessageId ??= 0; + _i4.checkNumber( + __lastKnownMessageId, + 'lastKnownMessageId', + minimum: 0, + ); + _parameters['lastKnownMessageId'] = __lastKnownMessageId; + + var __limit = _$jsonSerializers.serialize(limit, specifiedType: const FullType(int)); + __limit ??= 100; + _i4.checkNumber( + __limit, + 'limit', + maximum: 200, + minimum: 1, + ); + _parameters['limit'] = __limit; + + final _path = _i5.UriTemplate( + '/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}/share{?objectType*,lastKnownMessageId*,limit*}', + ).expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); _request.headers['Accept'] = 'application/json'; @@ -5163,13 +5324,6 @@ class $ChatClient { __oCSAPIRequest ??= true; _request.headers['OCS-APIRequest'] = const _i4.HeaderEncoder().convert(__oCSAPIRequest); - _request.headers['Content-Type'] = 'application/json'; - _request.body = json.encode( - _$jsonSerializers.serialize( - $body, - specifiedType: const FullType(ChatGetObjectsSharedInRoomRequestApplicationJson), - ), - ); return _request; } @@ -5181,6 +5335,9 @@ class $ChatClient { /// Parameters: /// * [apiVersion] Defaults to `"v1"`. /// * [token] + /// * [objectType] Type of the objects. + /// * [lastKnownMessageId] ID of the last known message. Defaults to `0`. + /// * [limit] Maximum number of objects. Defaults to `100`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -5192,15 +5349,19 @@ class $ChatClient { Future<_i1.DynamiteResponse> getObjectsSharedInRoom({ required String token, - required ChatGetObjectsSharedInRoomRequestApplicationJson $body, + required String objectType, ChatGetObjectsSharedInRoomApiVersion? apiVersion, + int? lastKnownMessageId, + int? limit, bool? oCSAPIRequest, }) async { final _request = $getObjectsSharedInRoom_Request( token: token, + objectType: objectType, apiVersion: apiVersion, + lastKnownMessageId: lastKnownMessageId, + limit: limit, oCSAPIRequest: oCSAPIRequest, - $body: $body, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -5354,6 +5515,7 @@ class $ChatClient { /// Parameters: /// * [apiVersion] Defaults to `"v1"`. /// * [token] + /// * [limit] Maximum number of objects. Defaults to `7`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -5366,8 +5528,8 @@ class $ChatClient { _i3.Request $getObjectsSharedInRoomOverview_Request({ required String token, ChatGetObjectsSharedInRoomOverviewApiVersion? apiVersion, + int? limit, bool? oCSAPIRequest, - ChatGetObjectsSharedInRoomOverviewRequestApplicationJson? $body, }) { final _parameters = {}; final __token = _$jsonSerializers.serialize(token, specifiedType: const FullType(String)); @@ -5385,8 +5547,18 @@ class $ChatClient { __apiVersion ??= 'v1'; _parameters['apiVersion'] = __apiVersion; - final _path = - _i5.UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}/share/overview').expand(_parameters); + var __limit = _$jsonSerializers.serialize(limit, specifiedType: const FullType(int)); + __limit ??= 7; + _i4.checkNumber( + __limit, + 'limit', + maximum: 20, + minimum: 1, + ); + _parameters['limit'] = __limit; + + final _path = _i5.UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}/share/overview{?limit*}') + .expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); _request.headers['Accept'] = 'application/json'; @@ -5409,20 +5581,6 @@ class $ChatClient { __oCSAPIRequest ??= true; _request.headers['OCS-APIRequest'] = const _i4.HeaderEncoder().convert(__oCSAPIRequest); - _request.headers['Content-Type'] = 'application/json'; - _request.body = $body != null - ? json.encode( - _$jsonSerializers.serialize( - $body, - specifiedType: const FullType(ChatGetObjectsSharedInRoomOverviewRequestApplicationJson), - ), - ) - : json.encode( - _$jsonSerializers.serialize( - ChatGetObjectsSharedInRoomOverviewRequestApplicationJson(), - specifiedType: const FullType(ChatGetObjectsSharedInRoomOverviewRequestApplicationJson), - ), - ); return _request; } @@ -5434,6 +5592,7 @@ class $ChatClient { /// Parameters: /// * [apiVersion] Defaults to `"v1"`. /// * [token] + /// * [limit] Maximum number of objects. Defaults to `7`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -5446,14 +5605,14 @@ class $ChatClient { getObjectsSharedInRoomOverview({ required String token, ChatGetObjectsSharedInRoomOverviewApiVersion? apiVersion, + int? limit, bool? oCSAPIRequest, - ChatGetObjectsSharedInRoomOverviewRequestApplicationJson? $body, }) async { final _request = $getObjectsSharedInRoomOverview_Request( token: token, apiVersion: apiVersion, + limit: limit, oCSAPIRequest: oCSAPIRequest, - $body: $body, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -5487,6 +5646,7 @@ class $ExternalSignalingClient { /// /// Parameters: /// * [apiVersion] Defaults to `"v3"`. + /// * [token] Token of the room. Defaults to `""`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -5500,8 +5660,8 @@ class $ExternalSignalingClient { @_i2.experimental _i3.Request $signalingGetSettings_Request({ SignalingGetSettingsApiVersion? apiVersion, + String? token, bool? oCSAPIRequest, - SignalingGetSettingsRequestApplicationJson? $body, }) { final _parameters = {}; var __apiVersion = @@ -5509,7 +5669,12 @@ class $ExternalSignalingClient { __apiVersion ??= 'v3'; _parameters['apiVersion'] = __apiVersion; - final _path = _i5.UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/signaling/settings').expand(_parameters); + var __token = _$jsonSerializers.serialize(token, specifiedType: const FullType(String)); + __token ??= ''; + _parameters['token'] = __token; + + final _path = + _i5.UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/signaling/settings{?token*}').expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); _request.headers['Accept'] = 'application/json'; @@ -5532,20 +5697,6 @@ class $ExternalSignalingClient { __oCSAPIRequest ??= true; _request.headers['OCS-APIRequest'] = const _i4.HeaderEncoder().convert(__oCSAPIRequest); - _request.headers['Content-Type'] = 'application/json'; - _request.body = $body != null - ? json.encode( - _$jsonSerializers.serialize( - $body, - specifiedType: const FullType(SignalingGetSettingsRequestApplicationJson), - ), - ) - : json.encode( - _$jsonSerializers.serialize( - SignalingGetSettingsRequestApplicationJson(), - specifiedType: const FullType(SignalingGetSettingsRequestApplicationJson), - ), - ); return _request; } @@ -5556,6 +5707,7 @@ class $ExternalSignalingClient { /// /// Parameters: /// * [apiVersion] Defaults to `"v3"`. + /// * [token] Token of the room. Defaults to `""`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -5568,13 +5720,13 @@ class $ExternalSignalingClient { /// * [$signalingGetSettings_Serializer] for a converter to parse the `Response` from an executed request. Future<_i1.DynamiteResponse> signalingGetSettings({ SignalingGetSettingsApiVersion? apiVersion, + String? token, bool? oCSAPIRequest, - SignalingGetSettingsRequestApplicationJson? $body, }) async { final _request = $signalingGetSettings_Request( apiVersion: apiVersion, + token: token, oCSAPIRequest: oCSAPIRequest, - $body: $body, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -6658,6 +6810,7 @@ class $InternalSignalingClient { /// /// Parameters: /// * [apiVersion] Defaults to `"v3"`. + /// * [token] Token of the room. Defaults to `""`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -6671,8 +6824,8 @@ class $InternalSignalingClient { @_i2.experimental _i3.Request $signalingGetSettings_Request({ SignalingGetSettingsApiVersion? apiVersion, + String? token, bool? oCSAPIRequest, - SignalingGetSettingsRequestApplicationJson? $body, }) { final _parameters = {}; var __apiVersion = @@ -6680,7 +6833,12 @@ class $InternalSignalingClient { __apiVersion ??= 'v3'; _parameters['apiVersion'] = __apiVersion; - final _path = _i5.UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/signaling/settings').expand(_parameters); + var __token = _$jsonSerializers.serialize(token, specifiedType: const FullType(String)); + __token ??= ''; + _parameters['token'] = __token; + + final _path = + _i5.UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/signaling/settings{?token*}').expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); _request.headers['Accept'] = 'application/json'; @@ -6703,20 +6861,6 @@ class $InternalSignalingClient { __oCSAPIRequest ??= true; _request.headers['OCS-APIRequest'] = const _i4.HeaderEncoder().convert(__oCSAPIRequest); - _request.headers['Content-Type'] = 'application/json'; - _request.body = $body != null - ? json.encode( - _$jsonSerializers.serialize( - $body, - specifiedType: const FullType(SignalingGetSettingsRequestApplicationJson), - ), - ) - : json.encode( - _$jsonSerializers.serialize( - SignalingGetSettingsRequestApplicationJson(), - specifiedType: const FullType(SignalingGetSettingsRequestApplicationJson), - ), - ); return _request; } @@ -6727,6 +6871,7 @@ class $InternalSignalingClient { /// /// Parameters: /// * [apiVersion] Defaults to `"v3"`. + /// * [token] Token of the room. Defaults to `""`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -6739,13 +6884,13 @@ class $InternalSignalingClient { /// * [$signalingGetSettings_Serializer] for a converter to parse the `Response` from an executed request. Future<_i1.DynamiteResponse> signalingGetSettings({ SignalingGetSettingsApiVersion? apiVersion, + String? token, bool? oCSAPIRequest, - SignalingGetSettingsRequestApplicationJson? $body, }) async { final _request = $signalingGetSettings_Request( apiVersion: apiVersion, + token: token, oCSAPIRequest: oCSAPIRequest, - $body: $body, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -8167,6 +8312,7 @@ class $ReactionClient { /// * [apiVersion] Defaults to `"v1"`. /// * [token] /// * [messageId] ID of the message. + /// * [reaction] Emoji to filter. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -8181,8 +8327,8 @@ class $ReactionClient { required String token, required int messageId, ReactionGetReactionsApiVersion? apiVersion, + String? reaction, bool? oCSAPIRequest, - ReactionGetReactionsRequestApplicationJson? $body, }) { final _parameters = {}; final __token = _$jsonSerializers.serialize(token, specifiedType: const FullType(String)); @@ -8206,8 +8352,11 @@ class $ReactionClient { __apiVersion ??= 'v1'; _parameters['apiVersion'] = __apiVersion; - final _path = - _i5.UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/reaction/{token}/{messageId}').expand(_parameters); + final __reaction = _$jsonSerializers.serialize(reaction, specifiedType: const FullType(String)); + _parameters['reaction'] = __reaction; + + final _path = _i5.UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/reaction/{token}/{messageId}{?reaction*}') + .expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); _request.headers['Accept'] = 'application/json'; @@ -8230,20 +8379,6 @@ class $ReactionClient { __oCSAPIRequest ??= true; _request.headers['OCS-APIRequest'] = const _i4.HeaderEncoder().convert(__oCSAPIRequest); - _request.headers['Content-Type'] = 'application/json'; - _request.body = $body != null - ? json.encode( - _$jsonSerializers.serialize( - $body, - specifiedType: const FullType(ReactionGetReactionsRequestApplicationJson), - ), - ) - : json.encode( - _$jsonSerializers.serialize( - ReactionGetReactionsRequestApplicationJson(), - specifiedType: const FullType(ReactionGetReactionsRequestApplicationJson), - ), - ); return _request; } @@ -8256,6 +8391,7 @@ class $ReactionClient { /// * [apiVersion] Defaults to `"v1"`. /// * [token] /// * [messageId] ID of the message. + /// * [reaction] Emoji to filter. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -8269,15 +8405,15 @@ class $ReactionClient { required String token, required int messageId, ReactionGetReactionsApiVersion? apiVersion, + String? reaction, bool? oCSAPIRequest, - ReactionGetReactionsRequestApplicationJson? $body, }) async { final _request = $getReactions_Request( token: token, messageId: messageId, apiVersion: apiVersion, + reaction: reaction, oCSAPIRequest: oCSAPIRequest, - $body: $body, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -8433,6 +8569,7 @@ class $ReactionClient { /// * [apiVersion] Defaults to `"v1"`. /// * [token] /// * [messageId] ID of the message. + /// * [reaction] Emoji to remove. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -8447,7 +8584,7 @@ class $ReactionClient { _i3.Request $delete_Request({ required String token, required int messageId, - required ReactionDeleteRequestApplicationJson $body, + required String reaction, ReactionDeleteApiVersion? apiVersion, bool? oCSAPIRequest, }) { @@ -8468,12 +8605,15 @@ class $ReactionClient { ); _parameters['messageId'] = __messageId; + final __reaction = _$jsonSerializers.serialize(reaction, specifiedType: const FullType(String)); + _parameters['reaction'] = __reaction; + var __apiVersion = _$jsonSerializers.serialize(apiVersion, specifiedType: const FullType(ReactionDeleteApiVersion)); __apiVersion ??= 'v1'; _parameters['apiVersion'] = __apiVersion; - final _path = - _i5.UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/reaction/{token}/{messageId}').expand(_parameters); + final _path = _i5.UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/reaction/{token}/{messageId}{?reaction*}') + .expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('delete', _uri); _request.headers['Accept'] = 'application/json'; @@ -8496,10 +8636,6 @@ class $ReactionClient { __oCSAPIRequest ??= true; _request.headers['OCS-APIRequest'] = const _i4.HeaderEncoder().convert(__oCSAPIRequest); - _request.headers['Content-Type'] = 'application/json'; - _request.body = json.encode( - _$jsonSerializers.serialize($body, specifiedType: const FullType(ReactionDeleteRequestApplicationJson)), - ); return _request; } @@ -8512,6 +8648,7 @@ class $ReactionClient { /// * [apiVersion] Defaults to `"v1"`. /// * [token] /// * [messageId] ID of the message. + /// * [reaction] Emoji to remove. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -8525,16 +8662,16 @@ class $ReactionClient { Future<_i1.DynamiteResponse> delete({ required String token, required int messageId, - required ReactionDeleteRequestApplicationJson $body, + required String reaction, ReactionDeleteApiVersion? apiVersion, bool? oCSAPIRequest, }) async { final _request = $delete_Request( token: token, messageId: messageId, + reaction: reaction, apiVersion: apiVersion, oCSAPIRequest: oCSAPIRequest, - $body: $body, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -8789,6 +8926,7 @@ class $RecordingClient { /// Parameters: /// * [apiVersion] Defaults to `"v1"`. /// * [token] + /// * [timestamp] Timestamp of the notification to be dismissed. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -8801,7 +8939,7 @@ class $RecordingClient { @_i2.experimental _i3.Request $notificationDismiss_Request({ required String token, - required RecordingNotificationDismissRequestApplicationJson $body, + required int timestamp, RecordingNotificationDismissApiVersion? apiVersion, bool? oCSAPIRequest, }) { @@ -8814,13 +8952,22 @@ class $RecordingClient { ); _parameters['token'] = __token; + final __timestamp = _$jsonSerializers.serialize(timestamp, specifiedType: const FullType(int)); + _i4.checkNumber( + __timestamp, + 'timestamp', + minimum: 0, + ); + _parameters['timestamp'] = __timestamp; + var __apiVersion = _$jsonSerializers.serialize(apiVersion, specifiedType: const FullType(RecordingNotificationDismissApiVersion)); __apiVersion ??= 'v1'; _parameters['apiVersion'] = __apiVersion; final _path = - _i5.UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/recording/{token}/notification').expand(_parameters); + _i5.UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/recording/{token}/notification{?timestamp*}') + .expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('delete', _uri); _request.headers['Accept'] = 'application/json'; @@ -8845,13 +8992,6 @@ class $RecordingClient { __oCSAPIRequest ??= true; _request.headers['OCS-APIRequest'] = const _i4.HeaderEncoder().convert(__oCSAPIRequest); - _request.headers['Content-Type'] = 'application/json'; - _request.body = json.encode( - _$jsonSerializers.serialize( - $body, - specifiedType: const FullType(RecordingNotificationDismissRequestApplicationJson), - ), - ); return _request; } @@ -8863,6 +9003,7 @@ class $RecordingClient { /// Parameters: /// * [apiVersion] Defaults to `"v1"`. /// * [token] + /// * [timestamp] Timestamp of the notification to be dismissed. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -8874,15 +9015,15 @@ class $RecordingClient { /// * [$notificationDismiss_Serializer] for a converter to parse the `Response` from an executed request. Future<_i1.DynamiteResponse> notificationDismiss({ required String token, - required RecordingNotificationDismissRequestApplicationJson $body, + required int timestamp, RecordingNotificationDismissApiVersion? apiVersion, bool? oCSAPIRequest, }) async { final _request = $notificationDismiss_Request( token: token, + timestamp: timestamp, apiVersion: apiVersion, oCSAPIRequest: oCSAPIRequest, - $body: $body, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -9245,6 +9386,9 @@ class $RoomClient { /// /// Parameters: /// * [apiVersion] Defaults to `"v4"`. + /// * [noStatusUpdate] When the user status should not be automatically set to online set to 1 (default 0). Defaults to `0`. + /// * [includeStatus] Include the user status. Defaults to `0`. + /// * [modifiedSince] Filter rooms modified after a timestamp. Defaults to `0`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -9256,15 +9400,38 @@ class $RoomClient { @_i2.experimental _i3.Request $getRooms_Request({ RoomGetRoomsApiVersion? apiVersion, + RoomGetRoomsNoStatusUpdate? noStatusUpdate, + RoomGetRoomsIncludeStatus? includeStatus, + int? modifiedSince, bool? oCSAPIRequest, - RoomGetRoomsRequestApplicationJson? $body, }) { final _parameters = {}; var __apiVersion = _$jsonSerializers.serialize(apiVersion, specifiedType: const FullType(RoomGetRoomsApiVersion)); __apiVersion ??= 'v4'; _parameters['apiVersion'] = __apiVersion; - final _path = _i5.UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room').expand(_parameters); + var __noStatusUpdate = + _$jsonSerializers.serialize(noStatusUpdate, specifiedType: const FullType(RoomGetRoomsNoStatusUpdate)); + __noStatusUpdate ??= 0; + _parameters['noStatusUpdate'] = __noStatusUpdate; + + var __includeStatus = + _$jsonSerializers.serialize(includeStatus, specifiedType: const FullType(RoomGetRoomsIncludeStatus)); + __includeStatus ??= 0; + _parameters['includeStatus'] = __includeStatus; + + var __modifiedSince = _$jsonSerializers.serialize(modifiedSince, specifiedType: const FullType(int)); + __modifiedSince ??= 0; + _i4.checkNumber( + __modifiedSince, + 'modifiedSince', + minimum: 0, + ); + _parameters['modifiedSince'] = __modifiedSince; + + final _path = + _i5.UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room{?noStatusUpdate*,includeStatus*,modifiedSince*}') + .expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); _request.headers['Accept'] = 'application/json'; @@ -9289,17 +9456,6 @@ class $RoomClient { __oCSAPIRequest ??= true; _request.headers['OCS-APIRequest'] = const _i4.HeaderEncoder().convert(__oCSAPIRequest); - _request.headers['Content-Type'] = 'application/json'; - _request.body = $body != null - ? json.encode( - _$jsonSerializers.serialize($body, specifiedType: const FullType(RoomGetRoomsRequestApplicationJson)), - ) - : json.encode( - _$jsonSerializers.serialize( - RoomGetRoomsRequestApplicationJson(), - specifiedType: const FullType(RoomGetRoomsRequestApplicationJson), - ), - ); return _request; } @@ -9310,6 +9466,9 @@ class $RoomClient { /// /// Parameters: /// * [apiVersion] Defaults to `"v4"`. + /// * [noStatusUpdate] When the user status should not be automatically set to online set to 1 (default 0). Defaults to `0`. + /// * [includeStatus] Include the user status. Defaults to `0`. + /// * [modifiedSince] Filter rooms modified after a timestamp. Defaults to `0`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -9320,13 +9479,17 @@ class $RoomClient { /// * [$getRooms_Serializer] for a converter to parse the `Response` from an executed request. Future<_i1.DynamiteResponse> getRooms({ RoomGetRoomsApiVersion? apiVersion, + RoomGetRoomsNoStatusUpdate? noStatusUpdate, + RoomGetRoomsIncludeStatus? includeStatus, + int? modifiedSince, bool? oCSAPIRequest, - RoomGetRoomsRequestApplicationJson? $body, }) async { final _request = $getRooms_Request( apiVersion: apiVersion, + noStatusUpdate: noStatusUpdate, + includeStatus: includeStatus, + modifiedSince: modifiedSince, oCSAPIRequest: oCSAPIRequest, - $body: $body, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -9461,6 +9624,7 @@ class $RoomClient { /// /// Parameters: /// * [apiVersion] Defaults to `"v4"`. + /// * [searchTerm] search term. Defaults to `""`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -9472,8 +9636,8 @@ class $RoomClient { @_i2.experimental _i3.Request $getListedRooms_Request({ RoomGetListedRoomsApiVersion? apiVersion, + String? searchTerm, bool? oCSAPIRequest, - RoomGetListedRoomsRequestApplicationJson? $body, }) { final _parameters = {}; var __apiVersion = @@ -9481,7 +9645,12 @@ class $RoomClient { __apiVersion ??= 'v4'; _parameters['apiVersion'] = __apiVersion; - final _path = _i5.UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/listed-room').expand(_parameters); + var __searchTerm = _$jsonSerializers.serialize(searchTerm, specifiedType: const FullType(String)); + __searchTerm ??= ''; + _parameters['searchTerm'] = __searchTerm; + + final _path = + _i5.UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/listed-room{?searchTerm*}').expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); _request.headers['Accept'] = 'application/json'; @@ -9506,17 +9675,6 @@ class $RoomClient { __oCSAPIRequest ??= true; _request.headers['OCS-APIRequest'] = const _i4.HeaderEncoder().convert(__oCSAPIRequest); - _request.headers['Content-Type'] = 'application/json'; - _request.body = $body != null - ? json.encode( - _$jsonSerializers.serialize($body, specifiedType: const FullType(RoomGetListedRoomsRequestApplicationJson)), - ) - : json.encode( - _$jsonSerializers.serialize( - RoomGetListedRoomsRequestApplicationJson(), - specifiedType: const FullType(RoomGetListedRoomsRequestApplicationJson), - ), - ); return _request; } @@ -9527,6 +9685,7 @@ class $RoomClient { /// /// Parameters: /// * [apiVersion] Defaults to `"v4"`. + /// * [searchTerm] search term. Defaults to `""`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -9537,13 +9696,13 @@ class $RoomClient { /// * [$getListedRooms_Serializer] for a converter to parse the `Response` from an executed request. Future<_i1.DynamiteResponse> getListedRooms({ RoomGetListedRoomsApiVersion? apiVersion, + String? searchTerm, bool? oCSAPIRequest, - RoomGetListedRoomsRequestApplicationJson? $body, }) async { final _request = $getListedRooms_Request( apiVersion: apiVersion, + searchTerm: searchTerm, oCSAPIRequest: oCSAPIRequest, - $body: $body, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -10705,6 +10864,7 @@ class $RoomClient { /// Parameters: /// * [apiVersion] Defaults to `"v4"`. /// * [token] + /// * [includeStatus] Include the user statuses. Defaults to `0`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -10718,8 +10878,8 @@ class $RoomClient { _i3.Request $getParticipants_Request({ required String token, RoomGetParticipantsApiVersion? apiVersion, + RoomGetParticipantsIncludeStatus? includeStatus, bool? oCSAPIRequest, - RoomGetParticipantsRequestApplicationJson? $body, }) { final _parameters = {}; final __token = _$jsonSerializers.serialize(token, specifiedType: const FullType(String)); @@ -10735,263 +10895,12 @@ class $RoomClient { __apiVersion ??= 'v4'; _parameters['apiVersion'] = __apiVersion; - final _path = - _i5.UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/participants').expand(_parameters); - final _uri = Uri.parse('${_rootClient.baseURL}$_path'); - final _request = _i3.Request('get', _uri); - _request.headers['Accept'] = 'application/json'; -// coverage:ignore-start - final authentication = _i6.IterableExtension(_rootClient.authentications)?.firstWhereOrNull( - (auth) => switch (auth) { - _i1.DynamiteHttpBearerAuthentication() || _i1.DynamiteHttpBasicAuthentication() => true, - _ => false, - }, - ); - - if (authentication != null) { - _request.headers.addAll( - authentication.headers, - ); - } - -// coverage:ignore-end - var __oCSAPIRequest = _$jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); - __oCSAPIRequest ??= true; - _request.headers['OCS-APIRequest'] = const _i4.HeaderEncoder().convert(__oCSAPIRequest); - - _request.headers['Content-Type'] = 'application/json'; - _request.body = $body != null - ? json.encode( - _$jsonSerializers.serialize( - $body, - specifiedType: const FullType(RoomGetParticipantsRequestApplicationJson), - ), - ) - : json.encode( - _$jsonSerializers.serialize( - RoomGetParticipantsRequestApplicationJson(), - specifiedType: const FullType(RoomGetParticipantsRequestApplicationJson), - ), - ); - return _request; - } - - /// Get a list of participants for a room. - /// - /// Returns a [Future] containing a `DynamiteResponse` with the status code, deserialized body and headers. - /// Throws a `DynamiteApiException` if the API call does not return an expected status code. - /// - /// Parameters: - /// * [apiVersion] Defaults to `"v4"`. - /// * [token] - /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. - /// - /// Status codes: - /// * 200: Participants returned - /// * 403: Missing permissions for getting participants - /// - /// See: - /// * [$getParticipants_Request] for the request send by this method. - /// * [$getParticipants_Serializer] for a converter to parse the `Response` from an executed request. - Future<_i1.DynamiteResponse> - getParticipants({ - required String token, - RoomGetParticipantsApiVersion? apiVersion, - bool? oCSAPIRequest, - RoomGetParticipantsRequestApplicationJson? $body, - }) async { - final _request = $getParticipants_Request( - token: token, - apiVersion: apiVersion, - oCSAPIRequest: oCSAPIRequest, - $body: $body, - ); - final _streamedResponse = await _rootClient.httpClient.send(_request); - final _response = await _i3.Response.fromStream(_streamedResponse); - - final _serializer = $getParticipants_Serializer(); - return _i1.ResponseConverter( - _serializer, - ).convert(_response); - } - - /// Builds a serializer to parse the response of [$addParticipantToRoom_Request]. - @_i2.experimental - _i1.DynamiteSerializer $addParticipantToRoom_Serializer() => - _i1.DynamiteSerializer( - bodyType: const FullType(RoomAddParticipantToRoomResponseApplicationJson), - headersType: null, - serializers: _$jsonSerializers, - validStatuses: const {200}, - ); - - /// Add a participant to a room. - /// - /// Returns a `DynamiteRequest` backing the [addParticipantToRoom] operation. - /// Throws a `DynamiteApiException` if the API call does not return an expected status code. - /// - /// Parameters: - /// * [apiVersion] Defaults to `"v4"`. - /// * [token] - /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. - /// - /// Status codes: - /// * 200: Participant successfully added - /// * 404: User, group or other target to invite was not found - /// * 501: SIP dial-out is not configured - /// * 400: Adding participant is not possible - /// - /// See: - /// * [addParticipantToRoom] for a method executing this request and parsing the response. - /// * [$addParticipantToRoom_Serializer] for a converter to parse the `Response` from an executed this request. - @_i2.experimental - _i3.Request $addParticipantToRoom_Request({ - required String token, - required RoomAddParticipantToRoomRequestApplicationJson $body, - RoomAddParticipantToRoomApiVersion? apiVersion, - bool? oCSAPIRequest, - }) { - final _parameters = {}; - final __token = _$jsonSerializers.serialize(token, specifiedType: const FullType(String)); - _i4.checkString( - __token, - 'token', - pattern: RegExp(r'^[a-z0-9]{4,30}$'), - ); - _parameters['token'] = __token; - - var __apiVersion = - _$jsonSerializers.serialize(apiVersion, specifiedType: const FullType(RoomAddParticipantToRoomApiVersion)); - __apiVersion ??= 'v4'; - _parameters['apiVersion'] = __apiVersion; - - final _path = - _i5.UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/participants').expand(_parameters); - final _uri = Uri.parse('${_rootClient.baseURL}$_path'); - final _request = _i3.Request('post', _uri); - _request.headers['Accept'] = 'application/json'; -// coverage:ignore-start - final authentication = _i6.IterableExtension(_rootClient.authentications)?.firstWhereOrNull( - (auth) => switch (auth) { - _i1.DynamiteHttpBearerAuthentication() || _i1.DynamiteHttpBasicAuthentication() => true, - _ => false, - }, - ); - - if (authentication != null) { - _request.headers.addAll( - authentication.headers, - ); - } else { - throw Exception('Missing authentication for bearer_auth or basic_auth'); - } - -// coverage:ignore-end - var __oCSAPIRequest = _$jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); - __oCSAPIRequest ??= true; - _request.headers['OCS-APIRequest'] = const _i4.HeaderEncoder().convert(__oCSAPIRequest); - - _request.headers['Content-Type'] = 'application/json'; - _request.body = json.encode( - _$jsonSerializers.serialize( - $body, - specifiedType: const FullType(RoomAddParticipantToRoomRequestApplicationJson), - ), - ); - return _request; - } - - /// Add a participant to a room. - /// - /// Returns a [Future] containing a `DynamiteResponse` with the status code, deserialized body and headers. - /// Throws a `DynamiteApiException` if the API call does not return an expected status code. - /// - /// Parameters: - /// * [apiVersion] Defaults to `"v4"`. - /// * [token] - /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. - /// - /// Status codes: - /// * 200: Participant successfully added - /// * 404: User, group or other target to invite was not found - /// * 501: SIP dial-out is not configured - /// * 400: Adding participant is not possible - /// - /// See: - /// * [$addParticipantToRoom_Request] for the request send by this method. - /// * [$addParticipantToRoom_Serializer] for a converter to parse the `Response` from an executed request. - Future<_i1.DynamiteResponse> addParticipantToRoom({ - required String token, - required RoomAddParticipantToRoomRequestApplicationJson $body, - RoomAddParticipantToRoomApiVersion? apiVersion, - bool? oCSAPIRequest, - }) async { - final _request = $addParticipantToRoom_Request( - token: token, - apiVersion: apiVersion, - oCSAPIRequest: oCSAPIRequest, - $body: $body, - ); - final _streamedResponse = await _rootClient.httpClient.send(_request); - final _response = await _i3.Response.fromStream(_streamedResponse); - - final _serializer = $addParticipantToRoom_Serializer(); - return _i1.ResponseConverter(_serializer).convert(_response); - } - - /// Builds a serializer to parse the response of [$getBreakoutRoomParticipants_Request]. - @_i2.experimental - _i1.DynamiteSerializer< - RoomGetBreakoutRoomParticipantsResponseApplicationJson, RoomRoomGetBreakoutRoomParticipantsHeaders> - $getBreakoutRoomParticipants_Serializer() => _i1.DynamiteSerializer( - bodyType: const FullType(RoomGetBreakoutRoomParticipantsResponseApplicationJson), - headersType: const FullType(RoomRoomGetBreakoutRoomParticipantsHeaders), - serializers: _$jsonSerializers, - validStatuses: const {200}, - ); - - /// Get the breakout room participants for a room. - /// - /// Returns a `DynamiteRequest` backing the [getBreakoutRoomParticipants] operation. - /// Throws a `DynamiteApiException` if the API call does not return an expected status code. - /// - /// Parameters: - /// * [apiVersion] Defaults to `"v4"`. - /// * [token] - /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. - /// - /// Status codes: - /// * 200: Breakout room participants returned - /// * 400: Getting breakout room participants is not possible - /// * 403: Missing permissions to get breakout room participants - /// - /// See: - /// * [getBreakoutRoomParticipants] for a method executing this request and parsing the response. - /// * [$getBreakoutRoomParticipants_Serializer] for a converter to parse the `Response` from an executed this request. - @_i2.experimental - _i3.Request $getBreakoutRoomParticipants_Request({ - required String token, - RoomGetBreakoutRoomParticipantsApiVersion? apiVersion, - bool? oCSAPIRequest, - RoomGetBreakoutRoomParticipantsRequestApplicationJson? $body, - }) { - final _parameters = {}; - final __token = _$jsonSerializers.serialize(token, specifiedType: const FullType(String)); - _i4.checkString( - __token, - 'token', - pattern: RegExp(r'^[a-z0-9]{4,30}$'), - ); - _parameters['token'] = __token; - - var __apiVersion = _$jsonSerializers.serialize( - apiVersion, - specifiedType: const FullType(RoomGetBreakoutRoomParticipantsApiVersion), - ); - __apiVersion ??= 'v4'; - _parameters['apiVersion'] = __apiVersion; + var __includeStatus = + _$jsonSerializers.serialize(includeStatus, specifiedType: const FullType(RoomGetParticipantsIncludeStatus)); + __includeStatus ??= 0; + _parameters['includeStatus'] = __includeStatus; - final _path = _i5.UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/breakout-rooms/participants') + final _path = _i5.UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/participants{?includeStatus*}') .expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); @@ -11010,25 +10919,263 @@ class $RoomClient { ); } +// coverage:ignore-end + var __oCSAPIRequest = _$jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); + __oCSAPIRequest ??= true; + _request.headers['OCS-APIRequest'] = const _i4.HeaderEncoder().convert(__oCSAPIRequest); + + return _request; + } + + /// Get a list of participants for a room. + /// + /// Returns a [Future] containing a `DynamiteResponse` with the status code, deserialized body and headers. + /// Throws a `DynamiteApiException` if the API call does not return an expected status code. + /// + /// Parameters: + /// * [apiVersion] Defaults to `"v4"`. + /// * [token] + /// * [includeStatus] Include the user statuses. Defaults to `0`. + /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. + /// + /// Status codes: + /// * 200: Participants returned + /// * 403: Missing permissions for getting participants + /// + /// See: + /// * [$getParticipants_Request] for the request send by this method. + /// * [$getParticipants_Serializer] for a converter to parse the `Response` from an executed request. + Future<_i1.DynamiteResponse> + getParticipants({ + required String token, + RoomGetParticipantsApiVersion? apiVersion, + RoomGetParticipantsIncludeStatus? includeStatus, + bool? oCSAPIRequest, + }) async { + final _request = $getParticipants_Request( + token: token, + apiVersion: apiVersion, + includeStatus: includeStatus, + oCSAPIRequest: oCSAPIRequest, + ); + final _streamedResponse = await _rootClient.httpClient.send(_request); + final _response = await _i3.Response.fromStream(_streamedResponse); + + final _serializer = $getParticipants_Serializer(); + return _i1.ResponseConverter( + _serializer, + ).convert(_response); + } + + /// Builds a serializer to parse the response of [$addParticipantToRoom_Request]. + @_i2.experimental + _i1.DynamiteSerializer $addParticipantToRoom_Serializer() => + _i1.DynamiteSerializer( + bodyType: const FullType(RoomAddParticipantToRoomResponseApplicationJson), + headersType: null, + serializers: _$jsonSerializers, + validStatuses: const {200}, + ); + + /// Add a participant to a room. + /// + /// Returns a `DynamiteRequest` backing the [addParticipantToRoom] operation. + /// Throws a `DynamiteApiException` if the API call does not return an expected status code. + /// + /// Parameters: + /// * [apiVersion] Defaults to `"v4"`. + /// * [token] + /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. + /// + /// Status codes: + /// * 200: Participant successfully added + /// * 404: User, group or other target to invite was not found + /// * 501: SIP dial-out is not configured + /// * 400: Adding participant is not possible + /// + /// See: + /// * [addParticipantToRoom] for a method executing this request and parsing the response. + /// * [$addParticipantToRoom_Serializer] for a converter to parse the `Response` from an executed this request. + @_i2.experimental + _i3.Request $addParticipantToRoom_Request({ + required String token, + required RoomAddParticipantToRoomRequestApplicationJson $body, + RoomAddParticipantToRoomApiVersion? apiVersion, + bool? oCSAPIRequest, + }) { + final _parameters = {}; + final __token = _$jsonSerializers.serialize(token, specifiedType: const FullType(String)); + _i4.checkString( + __token, + 'token', + pattern: RegExp(r'^[a-z0-9]{4,30}$'), + ); + _parameters['token'] = __token; + + var __apiVersion = + _$jsonSerializers.serialize(apiVersion, specifiedType: const FullType(RoomAddParticipantToRoomApiVersion)); + __apiVersion ??= 'v4'; + _parameters['apiVersion'] = __apiVersion; + + final _path = + _i5.UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/participants').expand(_parameters); + final _uri = Uri.parse('${_rootClient.baseURL}$_path'); + final _request = _i3.Request('post', _uri); + _request.headers['Accept'] = 'application/json'; +// coverage:ignore-start + final authentication = _i6.IterableExtension(_rootClient.authentications)?.firstWhereOrNull( + (auth) => switch (auth) { + _i1.DynamiteHttpBearerAuthentication() || _i1.DynamiteHttpBasicAuthentication() => true, + _ => false, + }, + ); + + if (authentication != null) { + _request.headers.addAll( + authentication.headers, + ); + } else { + throw Exception('Missing authentication for bearer_auth or basic_auth'); + } + // coverage:ignore-end var __oCSAPIRequest = _$jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); __oCSAPIRequest ??= true; _request.headers['OCS-APIRequest'] = const _i4.HeaderEncoder().convert(__oCSAPIRequest); _request.headers['Content-Type'] = 'application/json'; - _request.body = $body != null - ? json.encode( - _$jsonSerializers.serialize( - $body, - specifiedType: const FullType(RoomGetBreakoutRoomParticipantsRequestApplicationJson), - ), - ) - : json.encode( - _$jsonSerializers.serialize( - RoomGetBreakoutRoomParticipantsRequestApplicationJson(), - specifiedType: const FullType(RoomGetBreakoutRoomParticipantsRequestApplicationJson), - ), + _request.body = json.encode( + _$jsonSerializers.serialize( + $body, + specifiedType: const FullType(RoomAddParticipantToRoomRequestApplicationJson), + ), + ); + return _request; + } + + /// Add a participant to a room. + /// + /// Returns a [Future] containing a `DynamiteResponse` with the status code, deserialized body and headers. + /// Throws a `DynamiteApiException` if the API call does not return an expected status code. + /// + /// Parameters: + /// * [apiVersion] Defaults to `"v4"`. + /// * [token] + /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. + /// + /// Status codes: + /// * 200: Participant successfully added + /// * 404: User, group or other target to invite was not found + /// * 501: SIP dial-out is not configured + /// * 400: Adding participant is not possible + /// + /// See: + /// * [$addParticipantToRoom_Request] for the request send by this method. + /// * [$addParticipantToRoom_Serializer] for a converter to parse the `Response` from an executed request. + Future<_i1.DynamiteResponse> addParticipantToRoom({ + required String token, + required RoomAddParticipantToRoomRequestApplicationJson $body, + RoomAddParticipantToRoomApiVersion? apiVersion, + bool? oCSAPIRequest, + }) async { + final _request = $addParticipantToRoom_Request( + token: token, + apiVersion: apiVersion, + oCSAPIRequest: oCSAPIRequest, + $body: $body, + ); + final _streamedResponse = await _rootClient.httpClient.send(_request); + final _response = await _i3.Response.fromStream(_streamedResponse); + + final _serializer = $addParticipantToRoom_Serializer(); + return _i1.ResponseConverter(_serializer).convert(_response); + } + + /// Builds a serializer to parse the response of [$getBreakoutRoomParticipants_Request]. + @_i2.experimental + _i1.DynamiteSerializer< + RoomGetBreakoutRoomParticipantsResponseApplicationJson, RoomRoomGetBreakoutRoomParticipantsHeaders> + $getBreakoutRoomParticipants_Serializer() => _i1.DynamiteSerializer( + bodyType: const FullType(RoomGetBreakoutRoomParticipantsResponseApplicationJson), + headersType: const FullType(RoomRoomGetBreakoutRoomParticipantsHeaders), + serializers: _$jsonSerializers, + validStatuses: const {200}, ); + + /// Get the breakout room participants for a room. + /// + /// Returns a `DynamiteRequest` backing the [getBreakoutRoomParticipants] operation. + /// Throws a `DynamiteApiException` if the API call does not return an expected status code. + /// + /// Parameters: + /// * [apiVersion] Defaults to `"v4"`. + /// * [token] + /// * [includeStatus] Include the user statuses. Defaults to `0`. + /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. + /// + /// Status codes: + /// * 200: Breakout room participants returned + /// * 400: Getting breakout room participants is not possible + /// * 403: Missing permissions to get breakout room participants + /// + /// See: + /// * [getBreakoutRoomParticipants] for a method executing this request and parsing the response. + /// * [$getBreakoutRoomParticipants_Serializer] for a converter to parse the `Response` from an executed this request. + @_i2.experimental + _i3.Request $getBreakoutRoomParticipants_Request({ + required String token, + RoomGetBreakoutRoomParticipantsApiVersion? apiVersion, + RoomGetBreakoutRoomParticipantsIncludeStatus? includeStatus, + bool? oCSAPIRequest, + }) { + final _parameters = {}; + final __token = _$jsonSerializers.serialize(token, specifiedType: const FullType(String)); + _i4.checkString( + __token, + 'token', + pattern: RegExp(r'^[a-z0-9]{4,30}$'), + ); + _parameters['token'] = __token; + + var __apiVersion = _$jsonSerializers.serialize( + apiVersion, + specifiedType: const FullType(RoomGetBreakoutRoomParticipantsApiVersion), + ); + __apiVersion ??= 'v4'; + _parameters['apiVersion'] = __apiVersion; + + var __includeStatus = _$jsonSerializers.serialize( + includeStatus, + specifiedType: const FullType(RoomGetBreakoutRoomParticipantsIncludeStatus), + ); + __includeStatus ??= 0; + _parameters['includeStatus'] = __includeStatus; + + final _path = _i5.UriTemplate( + '/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/breakout-rooms/participants{?includeStatus*}', + ).expand(_parameters); + final _uri = Uri.parse('${_rootClient.baseURL}$_path'); + final _request = _i3.Request('get', _uri); + _request.headers['Accept'] = 'application/json'; +// coverage:ignore-start + final authentication = _i6.IterableExtension(_rootClient.authentications)?.firstWhereOrNull( + (auth) => switch (auth) { + _i1.DynamiteHttpBearerAuthentication() || _i1.DynamiteHttpBasicAuthentication() => true, + _ => false, + }, + ); + + if (authentication != null) { + _request.headers.addAll( + authentication.headers, + ); + } + +// coverage:ignore-end + var __oCSAPIRequest = _$jsonSerializers.serialize(oCSAPIRequest, specifiedType: const FullType(bool)); + __oCSAPIRequest ??= true; + _request.headers['OCS-APIRequest'] = const _i4.HeaderEncoder().convert(__oCSAPIRequest); + return _request; } @@ -11040,6 +11187,7 @@ class $RoomClient { /// Parameters: /// * [apiVersion] Defaults to `"v4"`. /// * [token] + /// * [includeStatus] Include the user statuses. Defaults to `0`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -11055,14 +11203,14 @@ class $RoomClient { RoomRoomGetBreakoutRoomParticipantsHeaders>> getBreakoutRoomParticipants({ required String token, RoomGetBreakoutRoomParticipantsApiVersion? apiVersion, + RoomGetBreakoutRoomParticipantsIncludeStatus? includeStatus, bool? oCSAPIRequest, - RoomGetBreakoutRoomParticipantsRequestApplicationJson? $body, }) async { final _request = $getBreakoutRoomParticipants_Request( token: token, apiVersion: apiVersion, + includeStatus: includeStatus, oCSAPIRequest: oCSAPIRequest, - $body: $body, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -11203,6 +11351,7 @@ class $RoomClient { /// Parameters: /// * [apiVersion] Defaults to `"v4"`. /// * [token] + /// * [attendeeId] ID of the attendee. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -11217,7 +11366,7 @@ class $RoomClient { @_i2.experimental _i3.Request $removeAttendeeFromRoom_Request({ required String token, - required RoomRemoveAttendeeFromRoomRequestApplicationJson $body, + required int attendeeId, RoomRemoveAttendeeFromRoomApiVersion? apiVersion, bool? oCSAPIRequest, }) { @@ -11230,13 +11379,21 @@ class $RoomClient { ); _parameters['token'] = __token; + final __attendeeId = _$jsonSerializers.serialize(attendeeId, specifiedType: const FullType(int)); + _i4.checkNumber( + __attendeeId, + 'attendeeId', + minimum: 0, + ); + _parameters['attendeeId'] = __attendeeId; + var __apiVersion = _$jsonSerializers.serialize(apiVersion, specifiedType: const FullType(RoomRemoveAttendeeFromRoomApiVersion)); __apiVersion ??= 'v4'; _parameters['apiVersion'] = __apiVersion; - final _path = - _i5.UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/attendees').expand(_parameters); + final _path = _i5.UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/attendees{?attendeeId*}') + .expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('delete', _uri); _request.headers['Accept'] = 'application/json'; @@ -11259,13 +11416,6 @@ class $RoomClient { __oCSAPIRequest ??= true; _request.headers['OCS-APIRequest'] = const _i4.HeaderEncoder().convert(__oCSAPIRequest); - _request.headers['Content-Type'] = 'application/json'; - _request.body = json.encode( - _$jsonSerializers.serialize( - $body, - specifiedType: const FullType(RoomRemoveAttendeeFromRoomRequestApplicationJson), - ), - ); return _request; } @@ -11277,6 +11427,7 @@ class $RoomClient { /// Parameters: /// * [apiVersion] Defaults to `"v4"`. /// * [token] + /// * [attendeeId] ID of the attendee. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -11290,15 +11441,15 @@ class $RoomClient { /// * [$removeAttendeeFromRoom_Serializer] for a converter to parse the `Response` from an executed request. Future<_i1.DynamiteResponse> removeAttendeeFromRoom({ required String token, - required RoomRemoveAttendeeFromRoomRequestApplicationJson $body, + required int attendeeId, RoomRemoveAttendeeFromRoomApiVersion? apiVersion, bool? oCSAPIRequest, }) async { final _request = $removeAttendeeFromRoom_Request( token: token, + attendeeId: attendeeId, apiVersion: apiVersion, oCSAPIRequest: oCSAPIRequest, - $body: $body, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -12164,6 +12315,7 @@ class $RoomClient { /// Parameters: /// * [apiVersion] Defaults to `"v4"`. /// * [token] + /// * [attendeeId] ID of the attendee. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -12178,7 +12330,7 @@ class $RoomClient { @_i2.experimental _i3.Request $demoteModerator_Request({ required String token, - required RoomDemoteModeratorRequestApplicationJson $body, + required int attendeeId, RoomDemoteModeratorApiVersion? apiVersion, bool? oCSAPIRequest, }) { @@ -12191,13 +12343,21 @@ class $RoomClient { ); _parameters['token'] = __token; + final __attendeeId = _$jsonSerializers.serialize(attendeeId, specifiedType: const FullType(int)); + _i4.checkNumber( + __attendeeId, + 'attendeeId', + minimum: 0, + ); + _parameters['attendeeId'] = __attendeeId; + var __apiVersion = _$jsonSerializers.serialize(apiVersion, specifiedType: const FullType(RoomDemoteModeratorApiVersion)); __apiVersion ??= 'v4'; _parameters['apiVersion'] = __apiVersion; - final _path = - _i5.UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/moderators').expand(_parameters); + final _path = _i5.UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/moderators{?attendeeId*}') + .expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('delete', _uri); _request.headers['Accept'] = 'application/json'; @@ -12220,10 +12380,6 @@ class $RoomClient { __oCSAPIRequest ??= true; _request.headers['OCS-APIRequest'] = const _i4.HeaderEncoder().convert(__oCSAPIRequest); - _request.headers['Content-Type'] = 'application/json'; - _request.body = json.encode( - _$jsonSerializers.serialize($body, specifiedType: const FullType(RoomDemoteModeratorRequestApplicationJson)), - ); return _request; } @@ -12235,6 +12391,7 @@ class $RoomClient { /// Parameters: /// * [apiVersion] Defaults to `"v4"`. /// * [token] + /// * [attendeeId] ID of the attendee. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -12248,15 +12405,15 @@ class $RoomClient { /// * [$demoteModerator_Serializer] for a converter to parse the `Response` from an executed request. Future<_i1.DynamiteResponse> demoteModerator({ required String token, - required RoomDemoteModeratorRequestApplicationJson $body, + required int attendeeId, RoomDemoteModeratorApiVersion? apiVersion, bool? oCSAPIRequest, }) async { final _request = $demoteModerator_Request( token: token, + attendeeId: attendeeId, apiVersion: apiVersion, oCSAPIRequest: oCSAPIRequest, - $body: $body, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -13916,6 +14073,8 @@ class $RoomClient { /// Parameters: /// * [apiVersion] Defaults to `"v4"`. /// * [token] + /// * [callId] The call ID provided by the SIP bridge earlier to uniquely identify the call to terminate. + /// * [options] Additional details to verify the validity of the request. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -13931,8 +14090,9 @@ class $RoomClient { @_i2.experimental _i3.Request $rejectedDialOutRequest_Request({ required String token, - required RoomRejectedDialOutRequestRequestApplicationJson $body, + required String callId, RoomRejectedDialOutRequestApiVersion? apiVersion, + String? options, bool? oCSAPIRequest, }) { final _parameters = {}; @@ -13944,13 +14104,20 @@ class $RoomClient { ); _parameters['token'] = __token; + final __callId = _$jsonSerializers.serialize(callId, specifiedType: const FullType(String)); + _parameters['callId'] = __callId; + var __apiVersion = _$jsonSerializers.serialize(apiVersion, specifiedType: const FullType(RoomRejectedDialOutRequestApiVersion)); __apiVersion ??= 'v4'; _parameters['apiVersion'] = __apiVersion; + final __options = _$jsonSerializers.serialize(options, specifiedType: const FullType(String)); + _parameters['options'] = __options; + final _path = - _i5.UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/rejected-dialout').expand(_parameters); + _i5.UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/rejected-dialout{?callId*,options*}') + .expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('delete', _uri); _request.headers['Accept'] = 'application/json'; @@ -13973,13 +14140,6 @@ class $RoomClient { __oCSAPIRequest ??= true; _request.headers['OCS-APIRequest'] = const _i4.HeaderEncoder().convert(__oCSAPIRequest); - _request.headers['Content-Type'] = 'application/json'; - _request.body = json.encode( - _$jsonSerializers.serialize( - $body, - specifiedType: const FullType(RoomRejectedDialOutRequestRequestApplicationJson), - ), - ); return _request; } @@ -13991,6 +14151,8 @@ class $RoomClient { /// Parameters: /// * [apiVersion] Defaults to `"v4"`. /// * [token] + /// * [callId] The call ID provided by the SIP bridge earlier to uniquely identify the call to terminate. + /// * [options] Additional details to verify the validity of the request. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -14005,15 +14167,17 @@ class $RoomClient { /// * [$rejectedDialOutRequest_Serializer] for a converter to parse the `Response` from an executed request. Future<_i1.DynamiteResponse> rejectedDialOutRequest({ required String token, - required RoomRejectedDialOutRequestRequestApplicationJson $body, + required String callId, RoomRejectedDialOutRequestApiVersion? apiVersion, + String? options, bool? oCSAPIRequest, }) async { final _request = $rejectedDialOutRequest_Request( token: token, + callId: callId, apiVersion: apiVersion, + options: options, oCSAPIRequest: oCSAPIRequest, - $body: $body, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -14253,6 +14417,7 @@ class $SettingsClient { /// /// Parameters: /// * [apiVersion] Defaults to `"v1"`. + /// * [host] Host to check. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -14264,11 +14429,14 @@ class $SettingsClient { /// * [$certificateGetCertificateExpiration_Serializer] for a converter to parse the `Response` from an executed this request. @_i2.experimental _i3.Request $certificateGetCertificateExpiration_Request({ - required CertificateGetCertificateExpirationRequestApplicationJson $body, + required String host, CertificateGetCertificateExpirationApiVersion? apiVersion, bool? oCSAPIRequest, }) { final _parameters = {}; + final __host = _$jsonSerializers.serialize(host, specifiedType: const FullType(String)); + _parameters['host'] = __host; + var __apiVersion = _$jsonSerializers.serialize( apiVersion, specifiedType: const FullType(CertificateGetCertificateExpirationApiVersion), @@ -14277,7 +14445,7 @@ class $SettingsClient { _parameters['apiVersion'] = __apiVersion; final _path = - _i5.UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/certificate/expiration').expand(_parameters); + _i5.UriTemplate('/ocs/v2.php/apps/spreed/api/{apiVersion}/certificate/expiration{?host*}').expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); _request.headers['Accept'] = 'application/json'; @@ -14302,13 +14470,6 @@ class $SettingsClient { __oCSAPIRequest ??= true; _request.headers['OCS-APIRequest'] = const _i4.HeaderEncoder().convert(__oCSAPIRequest); - _request.headers['Content-Type'] = 'application/json'; - _request.body = json.encode( - _$jsonSerializers.serialize( - $body, - specifiedType: const FullType(CertificateGetCertificateExpirationRequestApplicationJson), - ), - ); return _request; } @@ -14321,6 +14482,7 @@ class $SettingsClient { /// /// Parameters: /// * [apiVersion] Defaults to `"v1"`. + /// * [host] Host to check. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -14332,14 +14494,14 @@ class $SettingsClient { /// * [$certificateGetCertificateExpiration_Serializer] for a converter to parse the `Response` from an executed request. Future<_i1.DynamiteResponse> certificateGetCertificateExpiration({ - required CertificateGetCertificateExpirationRequestApplicationJson $body, + required String host, CertificateGetCertificateExpirationApiVersion? apiVersion, bool? oCSAPIRequest, }) async { final _request = $certificateGetCertificateExpiration_Request( + host: host, apiVersion: apiVersion, oCSAPIRequest: oCSAPIRequest, - $body: $body, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -15034,75 +15196,67 @@ class _$AvatarGetAvatarApiVersionSerializer implements PrimitiveSerializer get values => _$avatarGetAvatarDarkThemeValues; + // coverage:ignore-end - @BuiltValueHook(finalizeBuilder: true) - static void _validate($AvatarGetAvatarRequestApplicationJsonInterfaceBuilder b) {} + /// Returns the enum value associated to the [name]. + static AvatarGetAvatarDarkTheme valueOf(String name) => _$valueOfAvatarGetAvatarDarkTheme(name); + + /// Returns the serialized value of this enum value. + int get value => _$jsonSerializers.serializeWith(serializer, this)! as int; + + /// Serializer for AvatarGetAvatarDarkTheme. + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$AvatarGetAvatarDarkThemeSerializer(); } -abstract class AvatarGetAvatarRequestApplicationJson - implements - $AvatarGetAvatarRequestApplicationJsonInterface, - Built { - /// Creates a new AvatarGetAvatarRequestApplicationJson object using the builder pattern. - factory AvatarGetAvatarRequestApplicationJson([void Function(AvatarGetAvatarRequestApplicationJsonBuilder)? b]) = - _$AvatarGetAvatarRequestApplicationJson; +class _$AvatarGetAvatarDarkThemeSerializer implements PrimitiveSerializer { + const _$AvatarGetAvatarDarkThemeSerializer(); - // coverage:ignore-start - const AvatarGetAvatarRequestApplicationJson._(); - // coverage:ignore-end + static const Map _toWire = { + AvatarGetAvatarDarkTheme.$0: 0, + AvatarGetAvatarDarkTheme.$1: 1, + }; - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory AvatarGetAvatarRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end + static const Map _fromWire = { + 0: AvatarGetAvatarDarkTheme.$0, + 1: AvatarGetAvatarDarkTheme.$1, + }; - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end + @override + Iterable get types => const [AvatarGetAvatarDarkTheme]; - /// Serializer for AvatarGetAvatarRequestApplicationJson. - static Serializer get serializer => - _$avatarGetAvatarRequestApplicationJsonSerializer; + @override + String get wireName => 'AvatarGetAvatarDarkTheme'; - @BuiltValueHook(initializeBuilder: true) - static void _defaults(AvatarGetAvatarRequestApplicationJsonBuilder b) { - $AvatarGetAvatarRequestApplicationJsonInterface._defaults(b); - } + @override + Object serialize( + Serializers serializers, + AvatarGetAvatarDarkTheme object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; - @BuiltValueHook(finalizeBuilder: true) - static void _validate(AvatarGetAvatarRequestApplicationJsonBuilder b) { - $AvatarGetAvatarRequestApplicationJsonInterface._validate(b); - } + @override + AvatarGetAvatarDarkTheme deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } class AvatarUploadAvatarApiVersion extends EnumClass { @@ -16786,80 +16940,73 @@ class _$AvatarGetUserProxyAvatarWithoutRoomApiVersionSerializer _fromWire[serialized]!; } -@BuiltValue(instantiable: false) -sealed class $AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJsonInterface { - static final _$darkTheme = _$jsonSerializers.deserialize( - false, - specifiedType: const FullType(bool), - )! as bool; +class AvatarGetUserProxyAvatarWithoutRoomDarkTheme extends EnumClass { + const AvatarGetUserProxyAvatarWithoutRoomDarkTheme._(super.name); - /// Federation CloudID to get the avatar for. - String get cloudId; + /// `0` + @BuiltValueEnumConst(wireName: '0') + static const AvatarGetUserProxyAvatarWithoutRoomDarkTheme $0 = _$avatarGetUserProxyAvatarWithoutRoomDarkTheme$0; - /// Theme used for background. - bool get darkTheme; + /// `1` + @BuiltValueEnumConst(wireName: '1') + static const AvatarGetUserProxyAvatarWithoutRoomDarkTheme $1 = _$avatarGetUserProxyAvatarWithoutRoomDarkTheme$1; - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJsonInterfaceBuilder]. - $AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJsonInterface rebuild( - void Function($AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJsonInterfaceBuilder) updates, - ); + /// Returns a set with all values this enum contains. + // coverage:ignore-start + static BuiltSet get values => + _$avatarGetUserProxyAvatarWithoutRoomDarkThemeValues; + // coverage:ignore-end - /// Converts the instance to a builder [$AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJsonInterfaceBuilder]. - $AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJsonInterfaceBuilder b) { - b.darkTheme = _$darkTheme; - } + /// Returns the enum value associated to the [name]. + static AvatarGetUserProxyAvatarWithoutRoomDarkTheme valueOf(String name) => + _$valueOfAvatarGetUserProxyAvatarWithoutRoomDarkTheme(name); - @BuiltValueHook(finalizeBuilder: true) - static void _validate($AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJsonInterfaceBuilder b) {} + /// Returns the serialized value of this enum value. + int get value => _$jsonSerializers.serializeWith(serializer, this)! as int; + + /// Serializer for AvatarGetUserProxyAvatarWithoutRoomDarkTheme. + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + const _$AvatarGetUserProxyAvatarWithoutRoomDarkThemeSerializer(); } -abstract class AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJson - implements - $AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJsonInterface, - Built { - /// Creates a new AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJson object using the builder pattern. - factory AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJson([ - void Function(AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJsonBuilder)? b, - ]) = _$AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJson; +class _$AvatarGetUserProxyAvatarWithoutRoomDarkThemeSerializer + implements PrimitiveSerializer { + const _$AvatarGetUserProxyAvatarWithoutRoomDarkThemeSerializer(); - // coverage:ignore-start - const AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJson._(); - // coverage:ignore-end + static const Map _toWire = + { + AvatarGetUserProxyAvatarWithoutRoomDarkTheme.$0: 0, + AvatarGetUserProxyAvatarWithoutRoomDarkTheme.$1: 1, + }; - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end + static const Map _fromWire = + { + 0: AvatarGetUserProxyAvatarWithoutRoomDarkTheme.$0, + 1: AvatarGetUserProxyAvatarWithoutRoomDarkTheme.$1, + }; - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end + @override + Iterable get types => const [AvatarGetUserProxyAvatarWithoutRoomDarkTheme]; - /// Serializer for AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJson. - static Serializer get serializer => - _$avatarGetUserProxyAvatarWithoutRoomRequestApplicationJsonSerializer; + @override + String get wireName => 'AvatarGetUserProxyAvatarWithoutRoomDarkTheme'; - @BuiltValueHook(initializeBuilder: true) - static void _defaults(AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJsonBuilder b) { - $AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJsonInterface._defaults(b); - } + @override + Object serialize( + Serializers serializers, + AvatarGetUserProxyAvatarWithoutRoomDarkTheme object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; - @BuiltValueHook(finalizeBuilder: true) - static void _validate(AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJsonBuilder b) { - $AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJsonInterface._validate(b); - } + @override + AvatarGetUserProxyAvatarWithoutRoomDarkTheme deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } class AvatarGetUserProxyAvatarDarkWithoutRoomSize extends EnumClass { @@ -16994,71 +17141,6 @@ class _$AvatarGetUserProxyAvatarDarkWithoutRoomApiVersionSerializer _fromWire[serialized]!; } -@BuiltValue(instantiable: false) -sealed class $AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJsonInterface { - /// Federation CloudID to get the avatar for. - String get cloudId; - - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJsonInterfaceBuilder]. - $AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJsonInterface rebuild( - void Function($AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJsonInterfaceBuilder) updates, - ); - - /// Converts the instance to a builder [$AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJsonInterfaceBuilder]. - $AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJsonInterfaceBuilder b) {} - @BuiltValueHook(finalizeBuilder: true) - static void _validate($AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJsonInterfaceBuilder b) {} -} - -abstract class AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJson - implements - $AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJsonInterface, - Built { - /// Creates a new AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJson object using the builder pattern. - factory AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJson([ - void Function(AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJsonBuilder)? b, - ]) = _$AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJson; - - // coverage:ignore-start - const AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJson._(); - // coverage:ignore-end - - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end - - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end - - /// Serializer for AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJson. - static Serializer get serializer => - _$avatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJsonSerializer; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults(AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJsonBuilder b) { - $AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJsonInterface._defaults(b); - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate(AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJsonBuilder b) { - $AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJsonInterface._validate(b); - } -} - class AvatarGetUserProxyAvatarSize extends EnumClass { const AvatarGetUserProxyAvatarSize._(super.name); @@ -17180,79 +17262,68 @@ class _$AvatarGetUserProxyAvatarApiVersionSerializer _fromWire[serialized]!; } -@BuiltValue(instantiable: false) -sealed class $AvatarGetUserProxyAvatarRequestApplicationJsonInterface { - static final _$darkTheme = _$jsonSerializers.deserialize( - false, - specifiedType: const FullType(bool), - )! as bool; +class AvatarGetUserProxyAvatarDarkTheme extends EnumClass { + const AvatarGetUserProxyAvatarDarkTheme._(super.name); + + /// `0` + @BuiltValueEnumConst(wireName: '0') + static const AvatarGetUserProxyAvatarDarkTheme $0 = _$avatarGetUserProxyAvatarDarkTheme$0; - /// Federation CloudID to get the avatar for. - String get cloudId; + /// `1` + @BuiltValueEnumConst(wireName: '1') + static const AvatarGetUserProxyAvatarDarkTheme $1 = _$avatarGetUserProxyAvatarDarkTheme$1; - /// Theme used for background. - bool get darkTheme; + /// Returns a set with all values this enum contains. + // coverage:ignore-start + static BuiltSet get values => _$avatarGetUserProxyAvatarDarkThemeValues; + // coverage:ignore-end - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$AvatarGetUserProxyAvatarRequestApplicationJsonInterfaceBuilder]. - $AvatarGetUserProxyAvatarRequestApplicationJsonInterface rebuild( - void Function($AvatarGetUserProxyAvatarRequestApplicationJsonInterfaceBuilder) updates, - ); + /// Returns the enum value associated to the [name]. + static AvatarGetUserProxyAvatarDarkTheme valueOf(String name) => _$valueOfAvatarGetUserProxyAvatarDarkTheme(name); - /// Converts the instance to a builder [$AvatarGetUserProxyAvatarRequestApplicationJsonInterfaceBuilder]. - $AvatarGetUserProxyAvatarRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($AvatarGetUserProxyAvatarRequestApplicationJsonInterfaceBuilder b) { - b.darkTheme = _$darkTheme; - } + /// Returns the serialized value of this enum value. + int get value => _$jsonSerializers.serializeWith(serializer, this)! as int; - @BuiltValueHook(finalizeBuilder: true) - static void _validate($AvatarGetUserProxyAvatarRequestApplicationJsonInterfaceBuilder b) {} + /// Serializer for AvatarGetUserProxyAvatarDarkTheme. + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + const _$AvatarGetUserProxyAvatarDarkThemeSerializer(); } -abstract class AvatarGetUserProxyAvatarRequestApplicationJson - implements - $AvatarGetUserProxyAvatarRequestApplicationJsonInterface, - Built { - /// Creates a new AvatarGetUserProxyAvatarRequestApplicationJson object using the builder pattern. - factory AvatarGetUserProxyAvatarRequestApplicationJson([ - void Function(AvatarGetUserProxyAvatarRequestApplicationJsonBuilder)? b, - ]) = _$AvatarGetUserProxyAvatarRequestApplicationJson; +class _$AvatarGetUserProxyAvatarDarkThemeSerializer implements PrimitiveSerializer { + const _$AvatarGetUserProxyAvatarDarkThemeSerializer(); - // coverage:ignore-start - const AvatarGetUserProxyAvatarRequestApplicationJson._(); - // coverage:ignore-end + static const Map _toWire = { + AvatarGetUserProxyAvatarDarkTheme.$0: 0, + AvatarGetUserProxyAvatarDarkTheme.$1: 1, + }; - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory AvatarGetUserProxyAvatarRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end + static const Map _fromWire = { + 0: AvatarGetUserProxyAvatarDarkTheme.$0, + 1: AvatarGetUserProxyAvatarDarkTheme.$1, + }; - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end + @override + Iterable get types => const [AvatarGetUserProxyAvatarDarkTheme]; - /// Serializer for AvatarGetUserProxyAvatarRequestApplicationJson. - static Serializer get serializer => - _$avatarGetUserProxyAvatarRequestApplicationJsonSerializer; + @override + String get wireName => 'AvatarGetUserProxyAvatarDarkTheme'; - @BuiltValueHook(initializeBuilder: true) - static void _defaults(AvatarGetUserProxyAvatarRequestApplicationJsonBuilder b) { - $AvatarGetUserProxyAvatarRequestApplicationJsonInterface._defaults(b); - } + @override + Object serialize( + Serializers serializers, + AvatarGetUserProxyAvatarDarkTheme object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; - @BuiltValueHook(finalizeBuilder: true) - static void _validate(AvatarGetUserProxyAvatarRequestApplicationJsonBuilder b) { - $AvatarGetUserProxyAvatarRequestApplicationJsonInterface._validate(b); - } + @override + AvatarGetUserProxyAvatarDarkTheme deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } class AvatarGetUserProxyAvatarDarkSize extends EnumClass { @@ -17380,71 +17451,6 @@ class _$AvatarGetUserProxyAvatarDarkApiVersionSerializer _fromWire[serialized]!; } -@BuiltValue(instantiable: false) -sealed class $AvatarGetUserProxyAvatarDarkRequestApplicationJsonInterface { - /// Federation CloudID to get the avatar for. - String get cloudId; - - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$AvatarGetUserProxyAvatarDarkRequestApplicationJsonInterfaceBuilder]. - $AvatarGetUserProxyAvatarDarkRequestApplicationJsonInterface rebuild( - void Function($AvatarGetUserProxyAvatarDarkRequestApplicationJsonInterfaceBuilder) updates, - ); - - /// Converts the instance to a builder [$AvatarGetUserProxyAvatarDarkRequestApplicationJsonInterfaceBuilder]. - $AvatarGetUserProxyAvatarDarkRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($AvatarGetUserProxyAvatarDarkRequestApplicationJsonInterfaceBuilder b) {} - @BuiltValueHook(finalizeBuilder: true) - static void _validate($AvatarGetUserProxyAvatarDarkRequestApplicationJsonInterfaceBuilder b) {} -} - -abstract class AvatarGetUserProxyAvatarDarkRequestApplicationJson - implements - $AvatarGetUserProxyAvatarDarkRequestApplicationJsonInterface, - Built { - /// Creates a new AvatarGetUserProxyAvatarDarkRequestApplicationJson object using the builder pattern. - factory AvatarGetUserProxyAvatarDarkRequestApplicationJson([ - void Function(AvatarGetUserProxyAvatarDarkRequestApplicationJsonBuilder)? b, - ]) = _$AvatarGetUserProxyAvatarDarkRequestApplicationJson; - - // coverage:ignore-start - const AvatarGetUserProxyAvatarDarkRequestApplicationJson._(); - // coverage:ignore-end - - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory AvatarGetUserProxyAvatarDarkRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end - - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end - - /// Serializer for AvatarGetUserProxyAvatarDarkRequestApplicationJson. - static Serializer get serializer => - _$avatarGetUserProxyAvatarDarkRequestApplicationJsonSerializer; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults(AvatarGetUserProxyAvatarDarkRequestApplicationJsonBuilder b) { - $AvatarGetUserProxyAvatarDarkRequestApplicationJsonInterface._defaults(b); - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate(AvatarGetUserProxyAvatarDarkRequestApplicationJsonBuilder b) { - $AvatarGetUserProxyAvatarDarkRequestApplicationJsonInterface._validate(b); - } -} - class BotListBotsApiVersion extends EnumClass { const BotListBotsApiVersion._(super.name); @@ -18618,69 +18624,6 @@ class _$BotDeleteReactionApiVersionSerializer implements PrimitiveSerializer { - /// Creates a new BotDeleteReactionRequestApplicationJson object using the builder pattern. - factory BotDeleteReactionRequestApplicationJson([void Function(BotDeleteReactionRequestApplicationJsonBuilder)? b]) = - _$BotDeleteReactionRequestApplicationJson; - - // coverage:ignore-start - const BotDeleteReactionRequestApplicationJson._(); - // coverage:ignore-end - - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory BotDeleteReactionRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end - - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end - - /// Serializer for BotDeleteReactionRequestApplicationJson. - static Serializer get serializer => - _$botDeleteReactionRequestApplicationJsonSerializer; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults(BotDeleteReactionRequestApplicationJsonBuilder b) { - $BotDeleteReactionRequestApplicationJsonInterface._defaults(b); - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate(BotDeleteReactionRequestApplicationJsonBuilder b) { - $BotDeleteReactionRequestApplicationJsonInterface._validate(b); - } -} - @BuiltValue(instantiable: false) sealed class $BotDeleteReactionResponseApplicationJson_OcsInterface { OCSMeta get meta; @@ -21728,75 +21671,67 @@ class _$CallLeaveCallApiVersionSerializer implements PrimitiveSerializer get values => _$callLeaveCallAllValues; + // coverage:ignore-end - @BuiltValueHook(finalizeBuilder: true) - static void _validate($CallLeaveCallRequestApplicationJsonInterfaceBuilder b) {} + /// Returns the enum value associated to the [name]. + static CallLeaveCallAll valueOf(String name) => _$valueOfCallLeaveCallAll(name); + + /// Returns the serialized value of this enum value. + int get value => _$jsonSerializers.serializeWith(serializer, this)! as int; + + /// Serializer for CallLeaveCallAll. + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$CallLeaveCallAllSerializer(); } -abstract class CallLeaveCallRequestApplicationJson - implements - $CallLeaveCallRequestApplicationJsonInterface, - Built { - /// Creates a new CallLeaveCallRequestApplicationJson object using the builder pattern. - factory CallLeaveCallRequestApplicationJson([void Function(CallLeaveCallRequestApplicationJsonBuilder)? b]) = - _$CallLeaveCallRequestApplicationJson; +class _$CallLeaveCallAllSerializer implements PrimitiveSerializer { + const _$CallLeaveCallAllSerializer(); - // coverage:ignore-start - const CallLeaveCallRequestApplicationJson._(); - // coverage:ignore-end + static const Map _toWire = { + CallLeaveCallAll.$0: 0, + CallLeaveCallAll.$1: 1, + }; - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory CallLeaveCallRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end + static const Map _fromWire = { + 0: CallLeaveCallAll.$0, + 1: CallLeaveCallAll.$1, + }; - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end + @override + Iterable get types => const [CallLeaveCallAll]; - /// Serializer for CallLeaveCallRequestApplicationJson. - static Serializer get serializer => - _$callLeaveCallRequestApplicationJsonSerializer; + @override + String get wireName => 'CallLeaveCallAll'; - @BuiltValueHook(initializeBuilder: true) - static void _defaults(CallLeaveCallRequestApplicationJsonBuilder b) { - $CallLeaveCallRequestApplicationJsonInterface._defaults(b); - } + @override + Object serialize( + Serializers serializers, + CallLeaveCallAll object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; - @BuiltValueHook(finalizeBuilder: true) - static void _validate(CallLeaveCallRequestApplicationJsonBuilder b) { - $CallLeaveCallRequestApplicationJsonInterface._validate(b); - } + @override + CallLeaveCallAll deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -22353,55 +22288,63 @@ abstract class CallSipDialOutResponseApplicationJson } } -class ChatReceiveMessagesApiVersion extends EnumClass { - const ChatReceiveMessagesApiVersion._(super.name); +class ChatReceiveMessagesLookIntoFuture extends EnumClass { + const ChatReceiveMessagesLookIntoFuture._(super.name); - /// `v1` - static const ChatReceiveMessagesApiVersion v1 = _$chatReceiveMessagesApiVersionV1; + /// `0` + @BuiltValueEnumConst(wireName: '0') + static const ChatReceiveMessagesLookIntoFuture $0 = _$chatReceiveMessagesLookIntoFuture$0; + + /// `1` + @BuiltValueEnumConst(wireName: '1') + static const ChatReceiveMessagesLookIntoFuture $1 = _$chatReceiveMessagesLookIntoFuture$1; /// Returns a set with all values this enum contains. // coverage:ignore-start - static BuiltSet get values => _$chatReceiveMessagesApiVersionValues; + static BuiltSet get values => _$chatReceiveMessagesLookIntoFutureValues; // coverage:ignore-end /// Returns the enum value associated to the [name]. - static ChatReceiveMessagesApiVersion valueOf(String name) => _$valueOfChatReceiveMessagesApiVersion(name); + static ChatReceiveMessagesLookIntoFuture valueOf(String name) => _$valueOfChatReceiveMessagesLookIntoFuture(name); /// Returns the serialized value of this enum value. - String get value => _$jsonSerializers.serializeWith(serializer, this)! as String; + int get value => _$jsonSerializers.serializeWith(serializer, this)! as int; - /// Serializer for ChatReceiveMessagesApiVersion. + /// Serializer for ChatReceiveMessagesLookIntoFuture. @BuiltValueSerializer(custom: true) - static Serializer get serializer => const _$ChatReceiveMessagesApiVersionSerializer(); + static Serializer get serializer => + const _$ChatReceiveMessagesLookIntoFutureSerializer(); } -class _$ChatReceiveMessagesApiVersionSerializer implements PrimitiveSerializer { - const _$ChatReceiveMessagesApiVersionSerializer(); +class _$ChatReceiveMessagesLookIntoFutureSerializer implements PrimitiveSerializer { + const _$ChatReceiveMessagesLookIntoFutureSerializer(); - static const Map _toWire = { - ChatReceiveMessagesApiVersion.v1: 'v1', + static const Map _toWire = { + ChatReceiveMessagesLookIntoFuture.$0: 0, + ChatReceiveMessagesLookIntoFuture.$1: 1, }; - static const Map _fromWire = { - 'v1': ChatReceiveMessagesApiVersion.v1, + static const Map _fromWire = { + 0: ChatReceiveMessagesLookIntoFuture.$0, + 1: ChatReceiveMessagesLookIntoFuture.$1, }; @override - Iterable get types => const [ChatReceiveMessagesApiVersion]; + Iterable get types => const [ChatReceiveMessagesLookIntoFuture]; @override - String get wireName => 'ChatReceiveMessagesApiVersion'; + String get wireName => 'ChatReceiveMessagesLookIntoFuture'; @override Object serialize( Serializers serializers, - ChatReceiveMessagesApiVersion object, { + ChatReceiveMessagesLookIntoFuture object, { FullType specifiedType = FullType.unspecified, }) => _toWire[object]!; @override - ChatReceiveMessagesApiVersion deserialize( + ChatReceiveMessagesLookIntoFuture deserialize( Serializers serializers, Object serialized, { FullType specifiedType = FullType.unspecified, @@ -22409,71 +22352,55 @@ class _$ChatReceiveMessagesApiVersionSerializer implements PrimitiveSerializer get values => - _$chatReceiveMessagesRequestApplicationJsonLookIntoFutureValues; + static BuiltSet get values => _$chatReceiveMessagesApiVersionValues; // coverage:ignore-end /// Returns the enum value associated to the [name]. - static ChatReceiveMessagesRequestApplicationJson_LookIntoFuture valueOf(String name) => - _$valueOfChatReceiveMessagesRequestApplicationJson_LookIntoFuture(name); + static ChatReceiveMessagesApiVersion valueOf(String name) => _$valueOfChatReceiveMessagesApiVersion(name); /// Returns the serialized value of this enum value. - int get value => _$jsonSerializers.serializeWith(serializer, this)! as int; + String get value => _$jsonSerializers.serializeWith(serializer, this)! as String; - /// Serializer for ChatReceiveMessagesRequestApplicationJson_LookIntoFuture. + /// Serializer for ChatReceiveMessagesApiVersion. @BuiltValueSerializer(custom: true) - static Serializer get serializer => - const _$ChatReceiveMessagesRequestApplicationJson_LookIntoFutureSerializer(); + static Serializer get serializer => const _$ChatReceiveMessagesApiVersionSerializer(); } -class _$ChatReceiveMessagesRequestApplicationJson_LookIntoFutureSerializer - implements PrimitiveSerializer { - const _$ChatReceiveMessagesRequestApplicationJson_LookIntoFutureSerializer(); +class _$ChatReceiveMessagesApiVersionSerializer implements PrimitiveSerializer { + const _$ChatReceiveMessagesApiVersionSerializer(); - static const Map _toWire = - { - ChatReceiveMessagesRequestApplicationJson_LookIntoFuture.$0: 0, - ChatReceiveMessagesRequestApplicationJson_LookIntoFuture.$1: 1, + static const Map _toWire = { + ChatReceiveMessagesApiVersion.v1: 'v1', }; - static const Map _fromWire = - { - 0: ChatReceiveMessagesRequestApplicationJson_LookIntoFuture.$0, - 1: ChatReceiveMessagesRequestApplicationJson_LookIntoFuture.$1, + static const Map _fromWire = { + 'v1': ChatReceiveMessagesApiVersion.v1, }; @override - Iterable get types => const [ChatReceiveMessagesRequestApplicationJson_LookIntoFuture]; + Iterable get types => const [ChatReceiveMessagesApiVersion]; @override - String get wireName => 'ChatReceiveMessagesRequestApplicationJson_LookIntoFuture'; + String get wireName => 'ChatReceiveMessagesApiVersion'; @override Object serialize( Serializers serializers, - ChatReceiveMessagesRequestApplicationJson_LookIntoFuture object, { + ChatReceiveMessagesApiVersion object, { FullType specifiedType = FullType.unspecified, }) => _toWire[object]!; @override - ChatReceiveMessagesRequestApplicationJson_LookIntoFuture deserialize( + ChatReceiveMessagesApiVersion deserialize( Serializers serializers, Object serialized, { FullType specifiedType = FullType.unspecified, @@ -22481,72 +22408,63 @@ class _$ChatReceiveMessagesRequestApplicationJson_LookIntoFutureSerializer _fromWire[serialized]!; } -/// Automatically set the last read marker when 1,. -/// if your client does this itself via chat/{token}/read set to 0. -class ChatReceiveMessagesRequestApplicationJson_SetReadMarker extends EnumClass { - const ChatReceiveMessagesRequestApplicationJson_SetReadMarker._(super.name); +class ChatReceiveMessagesSetReadMarker extends EnumClass { + const ChatReceiveMessagesSetReadMarker._(super.name); /// `0` @BuiltValueEnumConst(wireName: '0') - static const ChatReceiveMessagesRequestApplicationJson_SetReadMarker $0 = - _$chatReceiveMessagesRequestApplicationJsonSetReadMarker$0; + static const ChatReceiveMessagesSetReadMarker $0 = _$chatReceiveMessagesSetReadMarker$0; /// `1` @BuiltValueEnumConst(wireName: '1') - static const ChatReceiveMessagesRequestApplicationJson_SetReadMarker $1 = - _$chatReceiveMessagesRequestApplicationJsonSetReadMarker$1; + static const ChatReceiveMessagesSetReadMarker $1 = _$chatReceiveMessagesSetReadMarker$1; /// Returns a set with all values this enum contains. // coverage:ignore-start - static BuiltSet get values => - _$chatReceiveMessagesRequestApplicationJsonSetReadMarkerValues; + static BuiltSet get values => _$chatReceiveMessagesSetReadMarkerValues; // coverage:ignore-end /// Returns the enum value associated to the [name]. - static ChatReceiveMessagesRequestApplicationJson_SetReadMarker valueOf(String name) => - _$valueOfChatReceiveMessagesRequestApplicationJson_SetReadMarker(name); + static ChatReceiveMessagesSetReadMarker valueOf(String name) => _$valueOfChatReceiveMessagesSetReadMarker(name); /// Returns the serialized value of this enum value. int get value => _$jsonSerializers.serializeWith(serializer, this)! as int; - /// Serializer for ChatReceiveMessagesRequestApplicationJson_SetReadMarker. + /// Serializer for ChatReceiveMessagesSetReadMarker. @BuiltValueSerializer(custom: true) - static Serializer get serializer => - const _$ChatReceiveMessagesRequestApplicationJson_SetReadMarkerSerializer(); + static Serializer get serializer => + const _$ChatReceiveMessagesSetReadMarkerSerializer(); } -class _$ChatReceiveMessagesRequestApplicationJson_SetReadMarkerSerializer - implements PrimitiveSerializer { - const _$ChatReceiveMessagesRequestApplicationJson_SetReadMarkerSerializer(); +class _$ChatReceiveMessagesSetReadMarkerSerializer implements PrimitiveSerializer { + const _$ChatReceiveMessagesSetReadMarkerSerializer(); - static const Map _toWire = - { - ChatReceiveMessagesRequestApplicationJson_SetReadMarker.$0: 0, - ChatReceiveMessagesRequestApplicationJson_SetReadMarker.$1: 1, + static const Map _toWire = { + ChatReceiveMessagesSetReadMarker.$0: 0, + ChatReceiveMessagesSetReadMarker.$1: 1, }; - static const Map _fromWire = - { - 0: ChatReceiveMessagesRequestApplicationJson_SetReadMarker.$0, - 1: ChatReceiveMessagesRequestApplicationJson_SetReadMarker.$1, + static const Map _fromWire = { + 0: ChatReceiveMessagesSetReadMarker.$0, + 1: ChatReceiveMessagesSetReadMarker.$1, }; @override - Iterable get types => const [ChatReceiveMessagesRequestApplicationJson_SetReadMarker]; + Iterable get types => const [ChatReceiveMessagesSetReadMarker]; @override - String get wireName => 'ChatReceiveMessagesRequestApplicationJson_SetReadMarker'; + String get wireName => 'ChatReceiveMessagesSetReadMarker'; @override Object serialize( Serializers serializers, - ChatReceiveMessagesRequestApplicationJson_SetReadMarker object, { + ChatReceiveMessagesSetReadMarker object, { FullType specifiedType = FullType.unspecified, }) => _toWire[object]!; @override - ChatReceiveMessagesRequestApplicationJson_SetReadMarker deserialize( + ChatReceiveMessagesSetReadMarker deserialize( Serializers serializers, Object serialized, { FullType specifiedType = FullType.unspecified, @@ -22554,71 +22472,65 @@ class _$ChatReceiveMessagesRequestApplicationJson_SetReadMarkerSerializer _fromWire[serialized]!; } -/// Include the $lastKnownMessageId in the messages when 1 (default 0). -class ChatReceiveMessagesRequestApplicationJson_IncludeLastKnown extends EnumClass { - const ChatReceiveMessagesRequestApplicationJson_IncludeLastKnown._(super.name); +class ChatReceiveMessagesIncludeLastKnown extends EnumClass { + const ChatReceiveMessagesIncludeLastKnown._(super.name); /// `0` @BuiltValueEnumConst(wireName: '0') - static const ChatReceiveMessagesRequestApplicationJson_IncludeLastKnown $0 = - _$chatReceiveMessagesRequestApplicationJsonIncludeLastKnown$0; + static const ChatReceiveMessagesIncludeLastKnown $0 = _$chatReceiveMessagesIncludeLastKnown$0; /// `1` @BuiltValueEnumConst(wireName: '1') - static const ChatReceiveMessagesRequestApplicationJson_IncludeLastKnown $1 = - _$chatReceiveMessagesRequestApplicationJsonIncludeLastKnown$1; + static const ChatReceiveMessagesIncludeLastKnown $1 = _$chatReceiveMessagesIncludeLastKnown$1; /// Returns a set with all values this enum contains. // coverage:ignore-start - static BuiltSet get values => - _$chatReceiveMessagesRequestApplicationJsonIncludeLastKnownValues; + static BuiltSet get values => _$chatReceiveMessagesIncludeLastKnownValues; // coverage:ignore-end /// Returns the enum value associated to the [name]. - static ChatReceiveMessagesRequestApplicationJson_IncludeLastKnown valueOf(String name) => - _$valueOfChatReceiveMessagesRequestApplicationJson_IncludeLastKnown(name); + static ChatReceiveMessagesIncludeLastKnown valueOf(String name) => _$valueOfChatReceiveMessagesIncludeLastKnown(name); /// Returns the serialized value of this enum value. int get value => _$jsonSerializers.serializeWith(serializer, this)! as int; - /// Serializer for ChatReceiveMessagesRequestApplicationJson_IncludeLastKnown. + /// Serializer for ChatReceiveMessagesIncludeLastKnown. @BuiltValueSerializer(custom: true) - static Serializer get serializer => - const _$ChatReceiveMessagesRequestApplicationJson_IncludeLastKnownSerializer(); + static Serializer get serializer => + const _$ChatReceiveMessagesIncludeLastKnownSerializer(); } -class _$ChatReceiveMessagesRequestApplicationJson_IncludeLastKnownSerializer - implements PrimitiveSerializer { - const _$ChatReceiveMessagesRequestApplicationJson_IncludeLastKnownSerializer(); +class _$ChatReceiveMessagesIncludeLastKnownSerializer + implements PrimitiveSerializer { + const _$ChatReceiveMessagesIncludeLastKnownSerializer(); - static const Map _toWire = - { - ChatReceiveMessagesRequestApplicationJson_IncludeLastKnown.$0: 0, - ChatReceiveMessagesRequestApplicationJson_IncludeLastKnown.$1: 1, + static const Map _toWire = { + ChatReceiveMessagesIncludeLastKnown.$0: 0, + ChatReceiveMessagesIncludeLastKnown.$1: 1, }; - static const Map _fromWire = - { - 0: ChatReceiveMessagesRequestApplicationJson_IncludeLastKnown.$0, - 1: ChatReceiveMessagesRequestApplicationJson_IncludeLastKnown.$1, + static const Map _fromWire = + { + 0: ChatReceiveMessagesIncludeLastKnown.$0, + 1: ChatReceiveMessagesIncludeLastKnown.$1, }; @override - Iterable get types => const [ChatReceiveMessagesRequestApplicationJson_IncludeLastKnown]; + Iterable get types => const [ChatReceiveMessagesIncludeLastKnown]; @override - String get wireName => 'ChatReceiveMessagesRequestApplicationJson_IncludeLastKnown'; + String get wireName => 'ChatReceiveMessagesIncludeLastKnown'; @override Object serialize( Serializers serializers, - ChatReceiveMessagesRequestApplicationJson_IncludeLastKnown object, { + ChatReceiveMessagesIncludeLastKnown object, { FullType specifiedType = FullType.unspecified, }) => _toWire[object]!; @override - ChatReceiveMessagesRequestApplicationJson_IncludeLastKnown deserialize( + ChatReceiveMessagesIncludeLastKnown deserialize( Serializers serializers, Object serialized, { FullType specifiedType = FullType.unspecified, @@ -22626,71 +22538,63 @@ class _$ChatReceiveMessagesRequestApplicationJson_IncludeLastKnownSerializer _fromWire[serialized]!; } -/// When the user status should not be automatically set to online set to 1 (default 0). -class ChatReceiveMessagesRequestApplicationJson_NoStatusUpdate extends EnumClass { - const ChatReceiveMessagesRequestApplicationJson_NoStatusUpdate._(super.name); +class ChatReceiveMessagesNoStatusUpdate extends EnumClass { + const ChatReceiveMessagesNoStatusUpdate._(super.name); /// `0` @BuiltValueEnumConst(wireName: '0') - static const ChatReceiveMessagesRequestApplicationJson_NoStatusUpdate $0 = - _$chatReceiveMessagesRequestApplicationJsonNoStatusUpdate$0; + static const ChatReceiveMessagesNoStatusUpdate $0 = _$chatReceiveMessagesNoStatusUpdate$0; /// `1` @BuiltValueEnumConst(wireName: '1') - static const ChatReceiveMessagesRequestApplicationJson_NoStatusUpdate $1 = - _$chatReceiveMessagesRequestApplicationJsonNoStatusUpdate$1; + static const ChatReceiveMessagesNoStatusUpdate $1 = _$chatReceiveMessagesNoStatusUpdate$1; /// Returns a set with all values this enum contains. // coverage:ignore-start - static BuiltSet get values => - _$chatReceiveMessagesRequestApplicationJsonNoStatusUpdateValues; + static BuiltSet get values => _$chatReceiveMessagesNoStatusUpdateValues; // coverage:ignore-end /// Returns the enum value associated to the [name]. - static ChatReceiveMessagesRequestApplicationJson_NoStatusUpdate valueOf(String name) => - _$valueOfChatReceiveMessagesRequestApplicationJson_NoStatusUpdate(name); + static ChatReceiveMessagesNoStatusUpdate valueOf(String name) => _$valueOfChatReceiveMessagesNoStatusUpdate(name); /// Returns the serialized value of this enum value. int get value => _$jsonSerializers.serializeWith(serializer, this)! as int; - /// Serializer for ChatReceiveMessagesRequestApplicationJson_NoStatusUpdate. + /// Serializer for ChatReceiveMessagesNoStatusUpdate. @BuiltValueSerializer(custom: true) - static Serializer get serializer => - const _$ChatReceiveMessagesRequestApplicationJson_NoStatusUpdateSerializer(); + static Serializer get serializer => + const _$ChatReceiveMessagesNoStatusUpdateSerializer(); } -class _$ChatReceiveMessagesRequestApplicationJson_NoStatusUpdateSerializer - implements PrimitiveSerializer { - const _$ChatReceiveMessagesRequestApplicationJson_NoStatusUpdateSerializer(); +class _$ChatReceiveMessagesNoStatusUpdateSerializer implements PrimitiveSerializer { + const _$ChatReceiveMessagesNoStatusUpdateSerializer(); - static const Map _toWire = - { - ChatReceiveMessagesRequestApplicationJson_NoStatusUpdate.$0: 0, - ChatReceiveMessagesRequestApplicationJson_NoStatusUpdate.$1: 1, + static const Map _toWire = { + ChatReceiveMessagesNoStatusUpdate.$0: 0, + ChatReceiveMessagesNoStatusUpdate.$1: 1, }; - static const Map _fromWire = - { - 0: ChatReceiveMessagesRequestApplicationJson_NoStatusUpdate.$0, - 1: ChatReceiveMessagesRequestApplicationJson_NoStatusUpdate.$1, + static const Map _fromWire = { + 0: ChatReceiveMessagesNoStatusUpdate.$0, + 1: ChatReceiveMessagesNoStatusUpdate.$1, }; @override - Iterable get types => const [ChatReceiveMessagesRequestApplicationJson_NoStatusUpdate]; + Iterable get types => const [ChatReceiveMessagesNoStatusUpdate]; @override - String get wireName => 'ChatReceiveMessagesRequestApplicationJson_NoStatusUpdate'; + String get wireName => 'ChatReceiveMessagesNoStatusUpdate'; @override Object serialize( Serializers serializers, - ChatReceiveMessagesRequestApplicationJson_NoStatusUpdate object, { + ChatReceiveMessagesNoStatusUpdate object, { FullType specifiedType = FullType.unspecified, }) => _toWire[object]!; @override - ChatReceiveMessagesRequestApplicationJson_NoStatusUpdate deserialize( + ChatReceiveMessagesNoStatusUpdate deserialize( Serializers serializers, Object serialized, { FullType specifiedType = FullType.unspecified, @@ -22698,71 +22602,68 @@ class _$ChatReceiveMessagesRequestApplicationJson_NoStatusUpdateSerializer _fromWire[serialized]!; } -/// Set to 0 when notifications should not be marked as read (default 1). -class ChatReceiveMessagesRequestApplicationJson_MarkNotificationsAsRead extends EnumClass { - const ChatReceiveMessagesRequestApplicationJson_MarkNotificationsAsRead._(super.name); +class ChatReceiveMessagesMarkNotificationsAsRead extends EnumClass { + const ChatReceiveMessagesMarkNotificationsAsRead._(super.name); /// `0` @BuiltValueEnumConst(wireName: '0') - static const ChatReceiveMessagesRequestApplicationJson_MarkNotificationsAsRead $0 = - _$chatReceiveMessagesRequestApplicationJsonMarkNotificationsAsRead$0; + static const ChatReceiveMessagesMarkNotificationsAsRead $0 = _$chatReceiveMessagesMarkNotificationsAsRead$0; /// `1` @BuiltValueEnumConst(wireName: '1') - static const ChatReceiveMessagesRequestApplicationJson_MarkNotificationsAsRead $1 = - _$chatReceiveMessagesRequestApplicationJsonMarkNotificationsAsRead$1; + static const ChatReceiveMessagesMarkNotificationsAsRead $1 = _$chatReceiveMessagesMarkNotificationsAsRead$1; /// Returns a set with all values this enum contains. // coverage:ignore-start - static BuiltSet get values => - _$chatReceiveMessagesRequestApplicationJsonMarkNotificationsAsReadValues; + static BuiltSet get values => + _$chatReceiveMessagesMarkNotificationsAsReadValues; // coverage:ignore-end /// Returns the enum value associated to the [name]. - static ChatReceiveMessagesRequestApplicationJson_MarkNotificationsAsRead valueOf(String name) => - _$valueOfChatReceiveMessagesRequestApplicationJson_MarkNotificationsAsRead(name); + static ChatReceiveMessagesMarkNotificationsAsRead valueOf(String name) => + _$valueOfChatReceiveMessagesMarkNotificationsAsRead(name); /// Returns the serialized value of this enum value. int get value => _$jsonSerializers.serializeWith(serializer, this)! as int; - /// Serializer for ChatReceiveMessagesRequestApplicationJson_MarkNotificationsAsRead. + /// Serializer for ChatReceiveMessagesMarkNotificationsAsRead. @BuiltValueSerializer(custom: true) - static Serializer get serializer => - const _$ChatReceiveMessagesRequestApplicationJson_MarkNotificationsAsReadSerializer(); + static Serializer get serializer => + const _$ChatReceiveMessagesMarkNotificationsAsReadSerializer(); } -class _$ChatReceiveMessagesRequestApplicationJson_MarkNotificationsAsReadSerializer - implements PrimitiveSerializer { - const _$ChatReceiveMessagesRequestApplicationJson_MarkNotificationsAsReadSerializer(); +class _$ChatReceiveMessagesMarkNotificationsAsReadSerializer + implements PrimitiveSerializer { + const _$ChatReceiveMessagesMarkNotificationsAsReadSerializer(); - static const Map _toWire = - { - ChatReceiveMessagesRequestApplicationJson_MarkNotificationsAsRead.$0: 0, - ChatReceiveMessagesRequestApplicationJson_MarkNotificationsAsRead.$1: 1, + static const Map _toWire = + { + ChatReceiveMessagesMarkNotificationsAsRead.$0: 0, + ChatReceiveMessagesMarkNotificationsAsRead.$1: 1, }; - static const Map _fromWire = - { - 0: ChatReceiveMessagesRequestApplicationJson_MarkNotificationsAsRead.$0, - 1: ChatReceiveMessagesRequestApplicationJson_MarkNotificationsAsRead.$1, + static const Map _fromWire = + { + 0: ChatReceiveMessagesMarkNotificationsAsRead.$0, + 1: ChatReceiveMessagesMarkNotificationsAsRead.$1, }; @override - Iterable get types => const [ChatReceiveMessagesRequestApplicationJson_MarkNotificationsAsRead]; + Iterable get types => const [ChatReceiveMessagesMarkNotificationsAsRead]; @override - String get wireName => 'ChatReceiveMessagesRequestApplicationJson_MarkNotificationsAsRead'; + String get wireName => 'ChatReceiveMessagesMarkNotificationsAsRead'; @override Object serialize( Serializers serializers, - ChatReceiveMessagesRequestApplicationJson_MarkNotificationsAsRead object, { + ChatReceiveMessagesMarkNotificationsAsRead object, { FullType specifiedType = FullType.unspecified, }) => _toWire[object]!; @override - ChatReceiveMessagesRequestApplicationJson_MarkNotificationsAsRead deserialize( + ChatReceiveMessagesMarkNotificationsAsRead deserialize( Serializers serializers, Object serialized, { FullType specifiedType = FullType.unspecified, @@ -22770,164 +22671,6 @@ class _$ChatReceiveMessagesRequestApplicationJson_MarkNotificationsAsReadSeriali _fromWire[serialized]!; } -@BuiltValue(instantiable: false) -sealed class $ChatReceiveMessagesRequestApplicationJsonInterface { - static final _$limit = _$jsonSerializers.deserialize( - 100, - specifiedType: const FullType(int), - )! as int; - - static final _$lastKnownMessageId = _$jsonSerializers.deserialize( - 0, - specifiedType: const FullType(int), - )! as int; - - static final _$lastCommonReadId = _$jsonSerializers.deserialize( - 0, - specifiedType: const FullType(int), - )! as int; - - static final _$timeout = _$jsonSerializers.deserialize( - 30, - specifiedType: const FullType(int), - )! as int; - - static final _$setReadMarker = _$jsonSerializers.deserialize( - 1, - specifiedType: const FullType(ChatReceiveMessagesRequestApplicationJson_SetReadMarker), - )! as ChatReceiveMessagesRequestApplicationJson_SetReadMarker; - - static final _$includeLastKnown = _$jsonSerializers.deserialize( - 0, - specifiedType: const FullType(ChatReceiveMessagesRequestApplicationJson_IncludeLastKnown), - )! as ChatReceiveMessagesRequestApplicationJson_IncludeLastKnown; - - static final _$noStatusUpdate = _$jsonSerializers.deserialize( - 0, - specifiedType: const FullType(ChatReceiveMessagesRequestApplicationJson_NoStatusUpdate), - )! as ChatReceiveMessagesRequestApplicationJson_NoStatusUpdate; - - static final _$markNotificationsAsRead = _$jsonSerializers.deserialize( - 1, - specifiedType: const FullType(ChatReceiveMessagesRequestApplicationJson_MarkNotificationsAsRead), - )! as ChatReceiveMessagesRequestApplicationJson_MarkNotificationsAsRead; - - /// Polling for new messages (1) or getting the history of the chat (0). - ChatReceiveMessagesRequestApplicationJson_LookIntoFuture get lookIntoFuture; - - /// Number of chat messages to receive (100 by default, 200 at most). - int get limit; - - /// The last known message (serves as offset). - int get lastKnownMessageId; - - /// The last known common read message. - /// (so the response is 200 instead of 304 when. - /// it changes even when there are no messages). - int get lastCommonReadId; - - /// Number of seconds to wait for new messages (30 by default, 30 at most). - int get timeout; - - /// Automatically set the last read marker when 1,. - /// if your client does this itself via chat/{token}/read set to 0. - ChatReceiveMessagesRequestApplicationJson_SetReadMarker get setReadMarker; - - /// Include the $lastKnownMessageId in the messages when 1 (default 0). - ChatReceiveMessagesRequestApplicationJson_IncludeLastKnown get includeLastKnown; - - /// When the user status should not be automatically set to online set to 1 (default 0). - ChatReceiveMessagesRequestApplicationJson_NoStatusUpdate get noStatusUpdate; - - /// Set to 0 when notifications should not be marked as read (default 1). - ChatReceiveMessagesRequestApplicationJson_MarkNotificationsAsRead get markNotificationsAsRead; - - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$ChatReceiveMessagesRequestApplicationJsonInterfaceBuilder]. - $ChatReceiveMessagesRequestApplicationJsonInterface rebuild( - void Function($ChatReceiveMessagesRequestApplicationJsonInterfaceBuilder) updates, - ); - - /// Converts the instance to a builder [$ChatReceiveMessagesRequestApplicationJsonInterfaceBuilder]. - $ChatReceiveMessagesRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($ChatReceiveMessagesRequestApplicationJsonInterfaceBuilder b) { - b.limit = _$limit; - b.lastKnownMessageId = _$lastKnownMessageId; - b.lastCommonReadId = _$lastCommonReadId; - b.timeout = _$timeout; - b.setReadMarker = _$setReadMarker; - b.includeLastKnown = _$includeLastKnown; - b.noStatusUpdate = _$noStatusUpdate; - b.markNotificationsAsRead = _$markNotificationsAsRead; - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate($ChatReceiveMessagesRequestApplicationJsonInterfaceBuilder b) { - _i4.checkNumber( - b.lastKnownMessageId, - 'lastKnownMessageId', - minimum: 0, - ); - _i4.checkNumber( - b.lastCommonReadId, - 'lastCommonReadId', - minimum: 0, - ); - _i4.checkNumber( - b.timeout, - 'timeout', - maximum: 30, - minimum: 0, - ); - } -} - -abstract class ChatReceiveMessagesRequestApplicationJson - implements - $ChatReceiveMessagesRequestApplicationJsonInterface, - Built { - /// Creates a new ChatReceiveMessagesRequestApplicationJson object using the builder pattern. - factory ChatReceiveMessagesRequestApplicationJson([ - void Function(ChatReceiveMessagesRequestApplicationJsonBuilder)? b, - ]) = _$ChatReceiveMessagesRequestApplicationJson; - - // coverage:ignore-start - const ChatReceiveMessagesRequestApplicationJson._(); - // coverage:ignore-end - - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory ChatReceiveMessagesRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end - - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end - - /// Serializer for ChatReceiveMessagesRequestApplicationJson. - static Serializer get serializer => - _$chatReceiveMessagesRequestApplicationJsonSerializer; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults(ChatReceiveMessagesRequestApplicationJsonBuilder b) { - $ChatReceiveMessagesRequestApplicationJsonInterface._defaults(b); - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate(ChatReceiveMessagesRequestApplicationJsonBuilder b) { - $ChatReceiveMessagesRequestApplicationJsonInterface._validate(b); - } -} - @BuiltValue(instantiable: false) sealed class $ChatMessageWithParentInterface implements $ChatMessageInterface { ChatMessage? get parent; @@ -24378,85 +24121,6 @@ class _$ChatGetMessageContextApiVersionSerializer implements PrimitiveSerializer _fromWire[serialized]!; } -@BuiltValue(instantiable: false) -sealed class $ChatGetMessageContextRequestApplicationJsonInterface { - static final _$limit = _$jsonSerializers.deserialize( - 50, - specifiedType: const FullType(int), - )! as int; - - /// Number of chat messages to receive in both directions (50 by default, 100 at most, might return 201 messages). - int get limit; - - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$ChatGetMessageContextRequestApplicationJsonInterfaceBuilder]. - $ChatGetMessageContextRequestApplicationJsonInterface rebuild( - void Function($ChatGetMessageContextRequestApplicationJsonInterfaceBuilder) updates, - ); - - /// Converts the instance to a builder [$ChatGetMessageContextRequestApplicationJsonInterfaceBuilder]. - $ChatGetMessageContextRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($ChatGetMessageContextRequestApplicationJsonInterfaceBuilder b) { - b.limit = _$limit; - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate($ChatGetMessageContextRequestApplicationJsonInterfaceBuilder b) { - _i4.checkNumber( - b.limit, - 'limit', - maximum: 100, - minimum: 1, - ); - } -} - -abstract class ChatGetMessageContextRequestApplicationJson - implements - $ChatGetMessageContextRequestApplicationJsonInterface, - Built { - /// Creates a new ChatGetMessageContextRequestApplicationJson object using the builder pattern. - factory ChatGetMessageContextRequestApplicationJson([ - void Function(ChatGetMessageContextRequestApplicationJsonBuilder)? b, - ]) = _$ChatGetMessageContextRequestApplicationJson; - - // coverage:ignore-start - const ChatGetMessageContextRequestApplicationJson._(); - // coverage:ignore-end - - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory ChatGetMessageContextRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end - - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end - - /// Serializer for ChatGetMessageContextRequestApplicationJson. - static Serializer get serializer => - _$chatGetMessageContextRequestApplicationJsonSerializer; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults(ChatGetMessageContextRequestApplicationJsonBuilder b) { - $ChatGetMessageContextRequestApplicationJsonInterface._defaults(b); - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate(ChatGetMessageContextRequestApplicationJsonBuilder b) { - $ChatGetMessageContextRequestApplicationJsonInterface._validate(b); - } -} - @BuiltValue(instantiable: false) sealed class $ChatGetMessageContextResponseApplicationJson_OcsInterface { OCSMeta get meta; @@ -25993,87 +25657,67 @@ class _$ChatMentionsApiVersionSerializer implements PrimitiveSerializer get values => _$chatMentionsIncludeStatusValues; + // coverage:ignore-end - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$ChatMentionsRequestApplicationJsonInterfaceBuilder]. - $ChatMentionsRequestApplicationJsonInterface rebuild( - void Function($ChatMentionsRequestApplicationJsonInterfaceBuilder) updates, - ); + /// Returns the enum value associated to the [name]. + static ChatMentionsIncludeStatus valueOf(String name) => _$valueOfChatMentionsIncludeStatus(name); - /// Converts the instance to a builder [$ChatMentionsRequestApplicationJsonInterfaceBuilder]. - $ChatMentionsRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($ChatMentionsRequestApplicationJsonInterfaceBuilder b) { - b.limit = _$limit; - b.includeStatus = _$includeStatus; - } + /// Returns the serialized value of this enum value. + int get value => _$jsonSerializers.serializeWith(serializer, this)! as int; - @BuiltValueHook(finalizeBuilder: true) - static void _validate($ChatMentionsRequestApplicationJsonInterfaceBuilder b) {} + /// Serializer for ChatMentionsIncludeStatus. + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$ChatMentionsIncludeStatusSerializer(); } -abstract class ChatMentionsRequestApplicationJson - implements - $ChatMentionsRequestApplicationJsonInterface, - Built { - /// Creates a new ChatMentionsRequestApplicationJson object using the builder pattern. - factory ChatMentionsRequestApplicationJson([void Function(ChatMentionsRequestApplicationJsonBuilder)? b]) = - _$ChatMentionsRequestApplicationJson; +class _$ChatMentionsIncludeStatusSerializer implements PrimitiveSerializer { + const _$ChatMentionsIncludeStatusSerializer(); - // coverage:ignore-start - const ChatMentionsRequestApplicationJson._(); - // coverage:ignore-end + static const Map _toWire = { + ChatMentionsIncludeStatus.$0: 0, + ChatMentionsIncludeStatus.$1: 1, + }; - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory ChatMentionsRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end + static const Map _fromWire = { + 0: ChatMentionsIncludeStatus.$0, + 1: ChatMentionsIncludeStatus.$1, + }; - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end + @override + Iterable get types => const [ChatMentionsIncludeStatus]; - /// Serializer for ChatMentionsRequestApplicationJson. - static Serializer get serializer => - _$chatMentionsRequestApplicationJsonSerializer; + @override + String get wireName => 'ChatMentionsIncludeStatus'; - @BuiltValueHook(initializeBuilder: true) - static void _defaults(ChatMentionsRequestApplicationJsonBuilder b) { - $ChatMentionsRequestApplicationJsonInterface._defaults(b); - } + @override + Object serialize( + Serializers serializers, + ChatMentionsIncludeStatus object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; - @BuiltValueHook(finalizeBuilder: true) - static void _validate(ChatMentionsRequestApplicationJsonBuilder b) { - $ChatMentionsRequestApplicationJsonInterface._validate(b); - } + @override + ChatMentionsIncludeStatus deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -26325,103 +25969,6 @@ class _$ChatGetObjectsSharedInRoomApiVersionSerializer _fromWire[serialized]!; } -@BuiltValue(instantiable: false) -sealed class $ChatGetObjectsSharedInRoomRequestApplicationJsonInterface { - static final _$lastKnownMessageId = _$jsonSerializers.deserialize( - 0, - specifiedType: const FullType(int), - )! as int; - - static final _$limit = _$jsonSerializers.deserialize( - 100, - specifiedType: const FullType(int), - )! as int; - - /// Type of the objects. - String get objectType; - - /// ID of the last known message. - int get lastKnownMessageId; - - /// Maximum number of objects. - int get limit; - - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$ChatGetObjectsSharedInRoomRequestApplicationJsonInterfaceBuilder]. - $ChatGetObjectsSharedInRoomRequestApplicationJsonInterface rebuild( - void Function($ChatGetObjectsSharedInRoomRequestApplicationJsonInterfaceBuilder) updates, - ); - - /// Converts the instance to a builder [$ChatGetObjectsSharedInRoomRequestApplicationJsonInterfaceBuilder]. - $ChatGetObjectsSharedInRoomRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($ChatGetObjectsSharedInRoomRequestApplicationJsonInterfaceBuilder b) { - b.lastKnownMessageId = _$lastKnownMessageId; - b.limit = _$limit; - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate($ChatGetObjectsSharedInRoomRequestApplicationJsonInterfaceBuilder b) { - _i4.checkNumber( - b.lastKnownMessageId, - 'lastKnownMessageId', - minimum: 0, - ); - _i4.checkNumber( - b.limit, - 'limit', - maximum: 200, - minimum: 1, - ); - } -} - -abstract class ChatGetObjectsSharedInRoomRequestApplicationJson - implements - $ChatGetObjectsSharedInRoomRequestApplicationJsonInterface, - Built { - /// Creates a new ChatGetObjectsSharedInRoomRequestApplicationJson object using the builder pattern. - factory ChatGetObjectsSharedInRoomRequestApplicationJson([ - void Function(ChatGetObjectsSharedInRoomRequestApplicationJsonBuilder)? b, - ]) = _$ChatGetObjectsSharedInRoomRequestApplicationJson; - - // coverage:ignore-start - const ChatGetObjectsSharedInRoomRequestApplicationJson._(); - // coverage:ignore-end - - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory ChatGetObjectsSharedInRoomRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end - - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end - - /// Serializer for ChatGetObjectsSharedInRoomRequestApplicationJson. - static Serializer get serializer => - _$chatGetObjectsSharedInRoomRequestApplicationJsonSerializer; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults(ChatGetObjectsSharedInRoomRequestApplicationJsonBuilder b) { - $ChatGetObjectsSharedInRoomRequestApplicationJsonInterface._defaults(b); - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate(ChatGetObjectsSharedInRoomRequestApplicationJsonBuilder b) { - $ChatGetObjectsSharedInRoomRequestApplicationJsonInterface._validate(b); - } -} - @BuiltValue(instantiable: false) sealed class $ChatGetObjectsSharedInRoomResponseApplicationJson_OcsInterface { OCSMeta get meta; @@ -27019,86 +26566,6 @@ class _$ChatGetObjectsSharedInRoomOverviewApiVersionSerializer _fromWire[serialized]!; } -@BuiltValue(instantiable: false) -sealed class $ChatGetObjectsSharedInRoomOverviewRequestApplicationJsonInterface { - static final _$limit = _$jsonSerializers.deserialize( - 7, - specifiedType: const FullType(int), - )! as int; - - /// Maximum number of objects. - int get limit; - - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$ChatGetObjectsSharedInRoomOverviewRequestApplicationJsonInterfaceBuilder]. - $ChatGetObjectsSharedInRoomOverviewRequestApplicationJsonInterface rebuild( - void Function($ChatGetObjectsSharedInRoomOverviewRequestApplicationJsonInterfaceBuilder) updates, - ); - - /// Converts the instance to a builder [$ChatGetObjectsSharedInRoomOverviewRequestApplicationJsonInterfaceBuilder]. - $ChatGetObjectsSharedInRoomOverviewRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($ChatGetObjectsSharedInRoomOverviewRequestApplicationJsonInterfaceBuilder b) { - b.limit = _$limit; - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate($ChatGetObjectsSharedInRoomOverviewRequestApplicationJsonInterfaceBuilder b) { - _i4.checkNumber( - b.limit, - 'limit', - maximum: 20, - minimum: 1, - ); - } -} - -abstract class ChatGetObjectsSharedInRoomOverviewRequestApplicationJson - implements - $ChatGetObjectsSharedInRoomOverviewRequestApplicationJsonInterface, - Built { - /// Creates a new ChatGetObjectsSharedInRoomOverviewRequestApplicationJson object using the builder pattern. - factory ChatGetObjectsSharedInRoomOverviewRequestApplicationJson([ - void Function(ChatGetObjectsSharedInRoomOverviewRequestApplicationJsonBuilder)? b, - ]) = _$ChatGetObjectsSharedInRoomOverviewRequestApplicationJson; - - // coverage:ignore-start - const ChatGetObjectsSharedInRoomOverviewRequestApplicationJson._(); - // coverage:ignore-end - - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory ChatGetObjectsSharedInRoomOverviewRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end - - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end - - /// Serializer for ChatGetObjectsSharedInRoomOverviewRequestApplicationJson. - static Serializer get serializer => - _$chatGetObjectsSharedInRoomOverviewRequestApplicationJsonSerializer; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults(ChatGetObjectsSharedInRoomOverviewRequestApplicationJsonBuilder b) { - $ChatGetObjectsSharedInRoomOverviewRequestApplicationJsonInterface._defaults(b); - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate(ChatGetObjectsSharedInRoomOverviewRequestApplicationJsonBuilder b) { - $ChatGetObjectsSharedInRoomOverviewRequestApplicationJsonInterface._validate(b); - } -} - @BuiltValue(instantiable: false) sealed class $ChatGetObjectsSharedInRoomOverviewResponseApplicationJson_OcsInterface { OCSMeta get meta; @@ -27285,78 +26752,6 @@ class _$SignalingGetSettingsApiVersionSerializer implements PrimitiveSerializer< _fromWire[serialized]!; } -@BuiltValue(instantiable: false) -sealed class $SignalingGetSettingsRequestApplicationJsonInterface { - static final _$token = _$jsonSerializers.deserialize( - '', - specifiedType: const FullType(String), - )! as String; - - /// Token of the room. - String get token; - - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$SignalingGetSettingsRequestApplicationJsonInterfaceBuilder]. - $SignalingGetSettingsRequestApplicationJsonInterface rebuild( - void Function($SignalingGetSettingsRequestApplicationJsonInterfaceBuilder) updates, - ); - - /// Converts the instance to a builder [$SignalingGetSettingsRequestApplicationJsonInterfaceBuilder]. - $SignalingGetSettingsRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($SignalingGetSettingsRequestApplicationJsonInterfaceBuilder b) { - b.token = _$token; - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate($SignalingGetSettingsRequestApplicationJsonInterfaceBuilder b) {} -} - -abstract class SignalingGetSettingsRequestApplicationJson - implements - $SignalingGetSettingsRequestApplicationJsonInterface, - Built { - /// Creates a new SignalingGetSettingsRequestApplicationJson object using the builder pattern. - factory SignalingGetSettingsRequestApplicationJson([ - void Function(SignalingGetSettingsRequestApplicationJsonBuilder)? b, - ]) = _$SignalingGetSettingsRequestApplicationJson; - - // coverage:ignore-start - const SignalingGetSettingsRequestApplicationJson._(); - // coverage:ignore-end - - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory SignalingGetSettingsRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end - - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end - - /// Serializer for SignalingGetSettingsRequestApplicationJson. - static Serializer get serializer => - _$signalingGetSettingsRequestApplicationJsonSerializer; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults(SignalingGetSettingsRequestApplicationJsonBuilder b) { - $SignalingGetSettingsRequestApplicationJsonInterface._defaults(b); - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate(SignalingGetSettingsRequestApplicationJsonBuilder b) { - $SignalingGetSettingsRequestApplicationJsonInterface._validate(b); - } -} - @BuiltValue(instantiable: false) sealed class $SignalingSettings_HelloAuthParams_10Interface { String? get userid; @@ -33041,70 +32436,6 @@ class _$ReactionGetReactionsApiVersionSerializer implements PrimitiveSerializer< _fromWire[serialized]!; } -@BuiltValue(instantiable: false) -sealed class $ReactionGetReactionsRequestApplicationJsonInterface { - /// Emoji to filter. - String? get reaction; - - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$ReactionGetReactionsRequestApplicationJsonInterfaceBuilder]. - $ReactionGetReactionsRequestApplicationJsonInterface rebuild( - void Function($ReactionGetReactionsRequestApplicationJsonInterfaceBuilder) updates, - ); - - /// Converts the instance to a builder [$ReactionGetReactionsRequestApplicationJsonInterfaceBuilder]. - $ReactionGetReactionsRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($ReactionGetReactionsRequestApplicationJsonInterfaceBuilder b) {} - @BuiltValueHook(finalizeBuilder: true) - static void _validate($ReactionGetReactionsRequestApplicationJsonInterfaceBuilder b) {} -} - -abstract class ReactionGetReactionsRequestApplicationJson - implements - $ReactionGetReactionsRequestApplicationJsonInterface, - Built { - /// Creates a new ReactionGetReactionsRequestApplicationJson object using the builder pattern. - factory ReactionGetReactionsRequestApplicationJson([ - void Function(ReactionGetReactionsRequestApplicationJsonBuilder)? b, - ]) = _$ReactionGetReactionsRequestApplicationJson; - - // coverage:ignore-start - const ReactionGetReactionsRequestApplicationJson._(); - // coverage:ignore-end - - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory ReactionGetReactionsRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end - - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end - - /// Serializer for ReactionGetReactionsRequestApplicationJson. - static Serializer get serializer => - _$reactionGetReactionsRequestApplicationJsonSerializer; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults(ReactionGetReactionsRequestApplicationJsonBuilder b) { - $ReactionGetReactionsRequestApplicationJsonInterface._defaults(b); - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate(ReactionGetReactionsRequestApplicationJsonBuilder b) { - $ReactionGetReactionsRequestApplicationJsonInterface._validate(b); - } -} - @BuiltValue(instantiable: false) sealed class $ReactionInterface { String get actorDisplayName; @@ -33590,69 +32921,6 @@ class _$ReactionDeleteApiVersionSerializer implements PrimitiveSerializer { - /// Creates a new ReactionDeleteRequestApplicationJson object using the builder pattern. - factory ReactionDeleteRequestApplicationJson([void Function(ReactionDeleteRequestApplicationJsonBuilder)? b]) = - _$ReactionDeleteRequestApplicationJson; - - // coverage:ignore-start - const ReactionDeleteRequestApplicationJson._(); - // coverage:ignore-end - - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory ReactionDeleteRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end - - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end - - /// Serializer for ReactionDeleteRequestApplicationJson. - static Serializer get serializer => - _$reactionDeleteRequestApplicationJsonSerializer; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults(ReactionDeleteRequestApplicationJsonBuilder b) { - $ReactionDeleteRequestApplicationJsonInterface._defaults(b); - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate(ReactionDeleteRequestApplicationJsonBuilder b) { - $ReactionDeleteRequestApplicationJsonInterface._validate(b); - } -} - @BuiltValue(instantiable: false) sealed class $ReactionDeleteResponseApplicationJson_OcsInterface { OCSMeta get meta; @@ -34267,77 +33535,6 @@ class _$RecordingNotificationDismissApiVersionSerializer _fromWire[serialized]!; } -@BuiltValue(instantiable: false) -sealed class $RecordingNotificationDismissRequestApplicationJsonInterface { - /// Timestamp of the notification to be dismissed. - int get timestamp; - - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$RecordingNotificationDismissRequestApplicationJsonInterfaceBuilder]. - $RecordingNotificationDismissRequestApplicationJsonInterface rebuild( - void Function($RecordingNotificationDismissRequestApplicationJsonInterfaceBuilder) updates, - ); - - /// Converts the instance to a builder [$RecordingNotificationDismissRequestApplicationJsonInterfaceBuilder]. - $RecordingNotificationDismissRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($RecordingNotificationDismissRequestApplicationJsonInterfaceBuilder b) {} - @BuiltValueHook(finalizeBuilder: true) - static void _validate($RecordingNotificationDismissRequestApplicationJsonInterfaceBuilder b) { - _i4.checkNumber( - b.timestamp, - 'timestamp', - minimum: 0, - ); - } -} - -abstract class RecordingNotificationDismissRequestApplicationJson - implements - $RecordingNotificationDismissRequestApplicationJsonInterface, - Built { - /// Creates a new RecordingNotificationDismissRequestApplicationJson object using the builder pattern. - factory RecordingNotificationDismissRequestApplicationJson([ - void Function(RecordingNotificationDismissRequestApplicationJsonBuilder)? b, - ]) = _$RecordingNotificationDismissRequestApplicationJson; - - // coverage:ignore-start - const RecordingNotificationDismissRequestApplicationJson._(); - // coverage:ignore-end - - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory RecordingNotificationDismissRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end - - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end - - /// Serializer for RecordingNotificationDismissRequestApplicationJson. - static Serializer get serializer => - _$recordingNotificationDismissRequestApplicationJsonSerializer; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults(RecordingNotificationDismissRequestApplicationJsonBuilder b) { - $RecordingNotificationDismissRequestApplicationJsonInterface._defaults(b); - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate(RecordingNotificationDismissRequestApplicationJsonBuilder b) { - $RecordingNotificationDismissRequestApplicationJsonInterface._validate(b); - } -} - @BuiltValue(instantiable: false) sealed class $RecordingNotificationDismissResponseApplicationJson_OcsInterface { OCSMeta get meta; @@ -35212,71 +34409,62 @@ class _$RoomGetRoomsApiVersionSerializer implements PrimitiveSerializer get values => - _$roomGetRoomsRequestApplicationJsonNoStatusUpdateValues; + static BuiltSet get values => _$roomGetRoomsNoStatusUpdateValues; // coverage:ignore-end /// Returns the enum value associated to the [name]. - static RoomGetRoomsRequestApplicationJson_NoStatusUpdate valueOf(String name) => - _$valueOfRoomGetRoomsRequestApplicationJson_NoStatusUpdate(name); + static RoomGetRoomsNoStatusUpdate valueOf(String name) => _$valueOfRoomGetRoomsNoStatusUpdate(name); /// Returns the serialized value of this enum value. int get value => _$jsonSerializers.serializeWith(serializer, this)! as int; - /// Serializer for RoomGetRoomsRequestApplicationJson_NoStatusUpdate. + /// Serializer for RoomGetRoomsNoStatusUpdate. @BuiltValueSerializer(custom: true) - static Serializer get serializer => - const _$RoomGetRoomsRequestApplicationJson_NoStatusUpdateSerializer(); + static Serializer get serializer => const _$RoomGetRoomsNoStatusUpdateSerializer(); } -class _$RoomGetRoomsRequestApplicationJson_NoStatusUpdateSerializer - implements PrimitiveSerializer { - const _$RoomGetRoomsRequestApplicationJson_NoStatusUpdateSerializer(); +class _$RoomGetRoomsNoStatusUpdateSerializer implements PrimitiveSerializer { + const _$RoomGetRoomsNoStatusUpdateSerializer(); - static const Map _toWire = - { - RoomGetRoomsRequestApplicationJson_NoStatusUpdate.$0: 0, - RoomGetRoomsRequestApplicationJson_NoStatusUpdate.$1: 1, + static const Map _toWire = { + RoomGetRoomsNoStatusUpdate.$0: 0, + RoomGetRoomsNoStatusUpdate.$1: 1, }; - static const Map _fromWire = - { - 0: RoomGetRoomsRequestApplicationJson_NoStatusUpdate.$0, - 1: RoomGetRoomsRequestApplicationJson_NoStatusUpdate.$1, + static const Map _fromWire = { + 0: RoomGetRoomsNoStatusUpdate.$0, + 1: RoomGetRoomsNoStatusUpdate.$1, }; @override - Iterable get types => const [RoomGetRoomsRequestApplicationJson_NoStatusUpdate]; + Iterable get types => const [RoomGetRoomsNoStatusUpdate]; @override - String get wireName => 'RoomGetRoomsRequestApplicationJson_NoStatusUpdate'; + String get wireName => 'RoomGetRoomsNoStatusUpdate'; @override Object serialize( Serializers serializers, - RoomGetRoomsRequestApplicationJson_NoStatusUpdate object, { + RoomGetRoomsNoStatusUpdate object, { FullType specifiedType = FullType.unspecified, }) => _toWire[object]!; @override - RoomGetRoomsRequestApplicationJson_NoStatusUpdate deserialize( + RoomGetRoomsNoStatusUpdate deserialize( Serializers serializers, Object serialized, { FullType specifiedType = FullType.unspecified, @@ -35284,99 +34472,67 @@ class _$RoomGetRoomsRequestApplicationJson_NoStatusUpdateSerializer _fromWire[serialized]!; } -@BuiltValue(instantiable: false) -sealed class $RoomGetRoomsRequestApplicationJsonInterface { - static final _$noStatusUpdate = _$jsonSerializers.deserialize( - 0, - specifiedType: const FullType(RoomGetRoomsRequestApplicationJson_NoStatusUpdate), - )! as RoomGetRoomsRequestApplicationJson_NoStatusUpdate; - - static final _$includeStatus = _$jsonSerializers.deserialize( - false, - specifiedType: const FullType(bool), - )! as bool; - - static final _$modifiedSince = _$jsonSerializers.deserialize( - 0, - specifiedType: const FullType(int), - )! as int; +class RoomGetRoomsIncludeStatus extends EnumClass { + const RoomGetRoomsIncludeStatus._(super.name); - /// When the user status should not be automatically set to online set to 1 (default 0). - RoomGetRoomsRequestApplicationJson_NoStatusUpdate get noStatusUpdate; + /// `0` + @BuiltValueEnumConst(wireName: '0') + static const RoomGetRoomsIncludeStatus $0 = _$roomGetRoomsIncludeStatus$0; - /// Include the user status. - bool get includeStatus; + /// `1` + @BuiltValueEnumConst(wireName: '1') + static const RoomGetRoomsIncludeStatus $1 = _$roomGetRoomsIncludeStatus$1; - /// Filter rooms modified after a timestamp. - int get modifiedSince; + /// Returns a set with all values this enum contains. + // coverage:ignore-start + static BuiltSet get values => _$roomGetRoomsIncludeStatusValues; + // coverage:ignore-end - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$RoomGetRoomsRequestApplicationJsonInterfaceBuilder]. - $RoomGetRoomsRequestApplicationJsonInterface rebuild( - void Function($RoomGetRoomsRequestApplicationJsonInterfaceBuilder) updates, - ); + /// Returns the enum value associated to the [name]. + static RoomGetRoomsIncludeStatus valueOf(String name) => _$valueOfRoomGetRoomsIncludeStatus(name); - /// Converts the instance to a builder [$RoomGetRoomsRequestApplicationJsonInterfaceBuilder]. - $RoomGetRoomsRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($RoomGetRoomsRequestApplicationJsonInterfaceBuilder b) { - b.noStatusUpdate = _$noStatusUpdate; - b.includeStatus = _$includeStatus; - b.modifiedSince = _$modifiedSince; - } + /// Returns the serialized value of this enum value. + int get value => _$jsonSerializers.serializeWith(serializer, this)! as int; - @BuiltValueHook(finalizeBuilder: true) - static void _validate($RoomGetRoomsRequestApplicationJsonInterfaceBuilder b) { - _i4.checkNumber( - b.modifiedSince, - 'modifiedSince', - minimum: 0, - ); - } + /// Serializer for RoomGetRoomsIncludeStatus. + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$RoomGetRoomsIncludeStatusSerializer(); } -abstract class RoomGetRoomsRequestApplicationJson - implements - $RoomGetRoomsRequestApplicationJsonInterface, - Built { - /// Creates a new RoomGetRoomsRequestApplicationJson object using the builder pattern. - factory RoomGetRoomsRequestApplicationJson([void Function(RoomGetRoomsRequestApplicationJsonBuilder)? b]) = - _$RoomGetRoomsRequestApplicationJson; +class _$RoomGetRoomsIncludeStatusSerializer implements PrimitiveSerializer { + const _$RoomGetRoomsIncludeStatusSerializer(); - // coverage:ignore-start - const RoomGetRoomsRequestApplicationJson._(); - // coverage:ignore-end + static const Map _toWire = { + RoomGetRoomsIncludeStatus.$0: 0, + RoomGetRoomsIncludeStatus.$1: 1, + }; - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory RoomGetRoomsRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end + static const Map _fromWire = { + 0: RoomGetRoomsIncludeStatus.$0, + 1: RoomGetRoomsIncludeStatus.$1, + }; - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end + @override + Iterable get types => const [RoomGetRoomsIncludeStatus]; - /// Serializer for RoomGetRoomsRequestApplicationJson. - static Serializer get serializer => - _$roomGetRoomsRequestApplicationJsonSerializer; + @override + String get wireName => 'RoomGetRoomsIncludeStatus'; - @BuiltValueHook(initializeBuilder: true) - static void _defaults(RoomGetRoomsRequestApplicationJsonBuilder b) { - $RoomGetRoomsRequestApplicationJsonInterface._defaults(b); - } + @override + Object serialize( + Serializers serializers, + RoomGetRoomsIncludeStatus object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; - @BuiltValueHook(finalizeBuilder: true) - static void _validate(RoomGetRoomsRequestApplicationJsonBuilder b) { - $RoomGetRoomsRequestApplicationJsonInterface._validate(b); - } + @override + RoomGetRoomsIncludeStatus deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -35913,78 +35069,6 @@ class _$RoomGetListedRoomsApiVersionSerializer implements PrimitiveSerializer { - /// Creates a new RoomGetListedRoomsRequestApplicationJson object using the builder pattern. - factory RoomGetListedRoomsRequestApplicationJson([ - void Function(RoomGetListedRoomsRequestApplicationJsonBuilder)? b, - ]) = _$RoomGetListedRoomsRequestApplicationJson; - - // coverage:ignore-start - const RoomGetListedRoomsRequestApplicationJson._(); - // coverage:ignore-end - - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory RoomGetListedRoomsRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end - - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end - - /// Serializer for RoomGetListedRoomsRequestApplicationJson. - static Serializer get serializer => - _$roomGetListedRoomsRequestApplicationJsonSerializer; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults(RoomGetListedRoomsRequestApplicationJsonBuilder b) { - $RoomGetListedRoomsRequestApplicationJsonInterface._defaults(b); - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate(RoomGetListedRoomsRequestApplicationJsonBuilder b) { - $RoomGetListedRoomsRequestApplicationJsonInterface._validate(b); - } -} - @BuiltValue(instantiable: false) sealed class $RoomGetListedRoomsResponseApplicationJson_OcsInterface { OCSMeta get meta; @@ -38658,76 +37742,68 @@ class _$RoomGetParticipantsApiVersionSerializer implements PrimitiveSerializer get values => _$roomGetParticipantsIncludeStatusValues; + // coverage:ignore-end - @BuiltValueHook(finalizeBuilder: true) - static void _validate($RoomGetParticipantsRequestApplicationJsonInterfaceBuilder b) {} + /// Returns the enum value associated to the [name]. + static RoomGetParticipantsIncludeStatus valueOf(String name) => _$valueOfRoomGetParticipantsIncludeStatus(name); + + /// Returns the serialized value of this enum value. + int get value => _$jsonSerializers.serializeWith(serializer, this)! as int; + + /// Serializer for RoomGetParticipantsIncludeStatus. + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + const _$RoomGetParticipantsIncludeStatusSerializer(); } -abstract class RoomGetParticipantsRequestApplicationJson - implements - $RoomGetParticipantsRequestApplicationJsonInterface, - Built { - /// Creates a new RoomGetParticipantsRequestApplicationJson object using the builder pattern. - factory RoomGetParticipantsRequestApplicationJson([ - void Function(RoomGetParticipantsRequestApplicationJsonBuilder)? b, - ]) = _$RoomGetParticipantsRequestApplicationJson; +class _$RoomGetParticipantsIncludeStatusSerializer implements PrimitiveSerializer { + const _$RoomGetParticipantsIncludeStatusSerializer(); - // coverage:ignore-start - const RoomGetParticipantsRequestApplicationJson._(); - // coverage:ignore-end + static const Map _toWire = { + RoomGetParticipantsIncludeStatus.$0: 0, + RoomGetParticipantsIncludeStatus.$1: 1, + }; - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory RoomGetParticipantsRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end + static const Map _fromWire = { + 0: RoomGetParticipantsIncludeStatus.$0, + 1: RoomGetParticipantsIncludeStatus.$1, + }; - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end + @override + Iterable get types => const [RoomGetParticipantsIncludeStatus]; - /// Serializer for RoomGetParticipantsRequestApplicationJson. - static Serializer get serializer => - _$roomGetParticipantsRequestApplicationJsonSerializer; + @override + String get wireName => 'RoomGetParticipantsIncludeStatus'; - @BuiltValueHook(initializeBuilder: true) - static void _defaults(RoomGetParticipantsRequestApplicationJsonBuilder b) { - $RoomGetParticipantsRequestApplicationJsonInterface._defaults(b); - } + @override + Object serialize( + Serializers serializers, + RoomGetParticipantsIncludeStatus object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; - @BuiltValueHook(finalizeBuilder: true) - static void _validate(RoomGetParticipantsRequestApplicationJsonBuilder b) { - $RoomGetParticipantsRequestApplicationJsonInterface._validate(b); - } + @override + RoomGetParticipantsIncludeStatus deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -39479,77 +38555,73 @@ class _$RoomGetBreakoutRoomParticipantsApiVersionSerializer _fromWire[serialized]!; } -@BuiltValue(instantiable: false) -sealed class $RoomGetBreakoutRoomParticipantsRequestApplicationJsonInterface { - static final _$includeStatus = _$jsonSerializers.deserialize( - false, - specifiedType: const FullType(bool), - )! as bool; +class RoomGetBreakoutRoomParticipantsIncludeStatus extends EnumClass { + const RoomGetBreakoutRoomParticipantsIncludeStatus._(super.name); - /// Include the user statuses. - bool get includeStatus; + /// `0` + @BuiltValueEnumConst(wireName: '0') + static const RoomGetBreakoutRoomParticipantsIncludeStatus $0 = _$roomGetBreakoutRoomParticipantsIncludeStatus$0; - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$RoomGetBreakoutRoomParticipantsRequestApplicationJsonInterfaceBuilder]. - $RoomGetBreakoutRoomParticipantsRequestApplicationJsonInterface rebuild( - void Function($RoomGetBreakoutRoomParticipantsRequestApplicationJsonInterfaceBuilder) updates, - ); + /// `1` + @BuiltValueEnumConst(wireName: '1') + static const RoomGetBreakoutRoomParticipantsIncludeStatus $1 = _$roomGetBreakoutRoomParticipantsIncludeStatus$1; - /// Converts the instance to a builder [$RoomGetBreakoutRoomParticipantsRequestApplicationJsonInterfaceBuilder]. - $RoomGetBreakoutRoomParticipantsRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($RoomGetBreakoutRoomParticipantsRequestApplicationJsonInterfaceBuilder b) { - b.includeStatus = _$includeStatus; - } + /// Returns a set with all values this enum contains. + // coverage:ignore-start + static BuiltSet get values => + _$roomGetBreakoutRoomParticipantsIncludeStatusValues; + // coverage:ignore-end - @BuiltValueHook(finalizeBuilder: true) - static void _validate($RoomGetBreakoutRoomParticipantsRequestApplicationJsonInterfaceBuilder b) {} + /// Returns the enum value associated to the [name]. + static RoomGetBreakoutRoomParticipantsIncludeStatus valueOf(String name) => + _$valueOfRoomGetBreakoutRoomParticipantsIncludeStatus(name); + + /// Returns the serialized value of this enum value. + int get value => _$jsonSerializers.serializeWith(serializer, this)! as int; + + /// Serializer for RoomGetBreakoutRoomParticipantsIncludeStatus. + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + const _$RoomGetBreakoutRoomParticipantsIncludeStatusSerializer(); } -abstract class RoomGetBreakoutRoomParticipantsRequestApplicationJson - implements - $RoomGetBreakoutRoomParticipantsRequestApplicationJsonInterface, - Built { - /// Creates a new RoomGetBreakoutRoomParticipantsRequestApplicationJson object using the builder pattern. - factory RoomGetBreakoutRoomParticipantsRequestApplicationJson([ - void Function(RoomGetBreakoutRoomParticipantsRequestApplicationJsonBuilder)? b, - ]) = _$RoomGetBreakoutRoomParticipantsRequestApplicationJson; +class _$RoomGetBreakoutRoomParticipantsIncludeStatusSerializer + implements PrimitiveSerializer { + const _$RoomGetBreakoutRoomParticipantsIncludeStatusSerializer(); - // coverage:ignore-start - const RoomGetBreakoutRoomParticipantsRequestApplicationJson._(); - // coverage:ignore-end + static const Map _toWire = + { + RoomGetBreakoutRoomParticipantsIncludeStatus.$0: 0, + RoomGetBreakoutRoomParticipantsIncludeStatus.$1: 1, + }; - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory RoomGetBreakoutRoomParticipantsRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end + static const Map _fromWire = + { + 0: RoomGetBreakoutRoomParticipantsIncludeStatus.$0, + 1: RoomGetBreakoutRoomParticipantsIncludeStatus.$1, + }; - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end + @override + Iterable get types => const [RoomGetBreakoutRoomParticipantsIncludeStatus]; - /// Serializer for RoomGetBreakoutRoomParticipantsRequestApplicationJson. - static Serializer get serializer => - _$roomGetBreakoutRoomParticipantsRequestApplicationJsonSerializer; + @override + String get wireName => 'RoomGetBreakoutRoomParticipantsIncludeStatus'; - @BuiltValueHook(initializeBuilder: true) - static void _defaults(RoomGetBreakoutRoomParticipantsRequestApplicationJsonBuilder b) { - $RoomGetBreakoutRoomParticipantsRequestApplicationJsonInterface._defaults(b); - } + @override + Object serialize( + Serializers serializers, + RoomGetBreakoutRoomParticipantsIncludeStatus object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; - @BuiltValueHook(finalizeBuilder: true) - static void _validate(RoomGetBreakoutRoomParticipantsRequestApplicationJsonBuilder b) { - $RoomGetBreakoutRoomParticipantsRequestApplicationJsonInterface._validate(b); - } + @override + RoomGetBreakoutRoomParticipantsIncludeStatus deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -39991,77 +39063,6 @@ class _$RoomRemoveAttendeeFromRoomApiVersionSerializer _fromWire[serialized]!; } -@BuiltValue(instantiable: false) -sealed class $RoomRemoveAttendeeFromRoomRequestApplicationJsonInterface { - /// ID of the attendee. - int get attendeeId; - - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$RoomRemoveAttendeeFromRoomRequestApplicationJsonInterfaceBuilder]. - $RoomRemoveAttendeeFromRoomRequestApplicationJsonInterface rebuild( - void Function($RoomRemoveAttendeeFromRoomRequestApplicationJsonInterfaceBuilder) updates, - ); - - /// Converts the instance to a builder [$RoomRemoveAttendeeFromRoomRequestApplicationJsonInterfaceBuilder]. - $RoomRemoveAttendeeFromRoomRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($RoomRemoveAttendeeFromRoomRequestApplicationJsonInterfaceBuilder b) {} - @BuiltValueHook(finalizeBuilder: true) - static void _validate($RoomRemoveAttendeeFromRoomRequestApplicationJsonInterfaceBuilder b) { - _i4.checkNumber( - b.attendeeId, - 'attendeeId', - minimum: 0, - ); - } -} - -abstract class RoomRemoveAttendeeFromRoomRequestApplicationJson - implements - $RoomRemoveAttendeeFromRoomRequestApplicationJsonInterface, - Built { - /// Creates a new RoomRemoveAttendeeFromRoomRequestApplicationJson object using the builder pattern. - factory RoomRemoveAttendeeFromRoomRequestApplicationJson([ - void Function(RoomRemoveAttendeeFromRoomRequestApplicationJsonBuilder)? b, - ]) = _$RoomRemoveAttendeeFromRoomRequestApplicationJson; - - // coverage:ignore-start - const RoomRemoveAttendeeFromRoomRequestApplicationJson._(); - // coverage:ignore-end - - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory RoomRemoveAttendeeFromRoomRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end - - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end - - /// Serializer for RoomRemoveAttendeeFromRoomRequestApplicationJson. - static Serializer get serializer => - _$roomRemoveAttendeeFromRoomRequestApplicationJsonSerializer; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults(RoomRemoveAttendeeFromRoomRequestApplicationJsonBuilder b) { - $RoomRemoveAttendeeFromRoomRequestApplicationJsonInterface._defaults(b); - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate(RoomRemoveAttendeeFromRoomRequestApplicationJsonBuilder b) { - $RoomRemoveAttendeeFromRoomRequestApplicationJsonInterface._validate(b); - } -} - @BuiltValue(instantiable: false) sealed class $RoomRemoveAttendeeFromRoomResponseApplicationJson_OcsInterface { OCSMeta get meta; @@ -42266,76 +41267,6 @@ class _$RoomDemoteModeratorApiVersionSerializer implements PrimitiveSerializer { - /// Creates a new RoomDemoteModeratorRequestApplicationJson object using the builder pattern. - factory RoomDemoteModeratorRequestApplicationJson([ - void Function(RoomDemoteModeratorRequestApplicationJsonBuilder)? b, - ]) = _$RoomDemoteModeratorRequestApplicationJson; - - // coverage:ignore-start - const RoomDemoteModeratorRequestApplicationJson._(); - // coverage:ignore-end - - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory RoomDemoteModeratorRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end - - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end - - /// Serializer for RoomDemoteModeratorRequestApplicationJson. - static Serializer get serializer => - _$roomDemoteModeratorRequestApplicationJsonSerializer; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults(RoomDemoteModeratorRequestApplicationJsonBuilder b) { - $RoomDemoteModeratorRequestApplicationJsonInterface._defaults(b); - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate(RoomDemoteModeratorRequestApplicationJsonBuilder b) { - $RoomDemoteModeratorRequestApplicationJsonInterface._validate(b); - } -} - @BuiltValue(instantiable: false) sealed class $RoomDemoteModeratorResponseApplicationJson_OcsInterface { OCSMeta get meta; @@ -46048,7 +44979,7 @@ abstract class RoomVerifyDialOutNumberRequestApplicationJson_Options @BuiltValue(instantiable: false) sealed class $RoomVerifyDialOutNumberRequestApplicationJsonInterface { static final _$options = _$jsonSerializers.deserialize( - const [], + const {}, specifiedType: const FullType(RoomVerifyDialOutNumberRequestApplicationJson_Options), )! as RoomVerifyDialOutNumberRequestApplicationJson_Options; @@ -46494,150 +45425,6 @@ class _$RoomRejectedDialOutRequestApiVersionSerializer _fromWire[serialized]!; } -/// Additional details to verify the validity of the request. -@BuiltValue(instantiable: false) -sealed class $RoomRejectedDialOutRequestRequestApplicationJson_OptionsInterface { - String? get actorId; - ActorType? get actorType; - int? get attendeeId; - - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$RoomRejectedDialOutRequestRequestApplicationJson_OptionsInterfaceBuilder]. - $RoomRejectedDialOutRequestRequestApplicationJson_OptionsInterface rebuild( - void Function($RoomRejectedDialOutRequestRequestApplicationJson_OptionsInterfaceBuilder) updates, - ); - - /// Converts the instance to a builder [$RoomRejectedDialOutRequestRequestApplicationJson_OptionsInterfaceBuilder]. - $RoomRejectedDialOutRequestRequestApplicationJson_OptionsInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($RoomRejectedDialOutRequestRequestApplicationJson_OptionsInterfaceBuilder b) {} - @BuiltValueHook(finalizeBuilder: true) - static void _validate($RoomRejectedDialOutRequestRequestApplicationJson_OptionsInterfaceBuilder b) {} -} - -/// Additional details to verify the validity of the request. -abstract class RoomRejectedDialOutRequestRequestApplicationJson_Options - implements - $RoomRejectedDialOutRequestRequestApplicationJson_OptionsInterface, - Built { - /// Creates a new RoomRejectedDialOutRequestRequestApplicationJson_Options object using the builder pattern. - factory RoomRejectedDialOutRequestRequestApplicationJson_Options([ - void Function(RoomRejectedDialOutRequestRequestApplicationJson_OptionsBuilder)? b, - ]) = _$RoomRejectedDialOutRequestRequestApplicationJson_Options; - - // coverage:ignore-start - const RoomRejectedDialOutRequestRequestApplicationJson_Options._(); - // coverage:ignore-end - - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory RoomRejectedDialOutRequestRequestApplicationJson_Options.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end - - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end - - /// Serializer for RoomRejectedDialOutRequestRequestApplicationJson_Options. - static Serializer get serializer => - _$roomRejectedDialOutRequestRequestApplicationJsonOptionsSerializer; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults(RoomRejectedDialOutRequestRequestApplicationJson_OptionsBuilder b) { - $RoomRejectedDialOutRequestRequestApplicationJson_OptionsInterface._defaults(b); - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate(RoomRejectedDialOutRequestRequestApplicationJson_OptionsBuilder b) { - $RoomRejectedDialOutRequestRequestApplicationJson_OptionsInterface._validate(b); - } -} - -@BuiltValue(instantiable: false) -sealed class $RoomRejectedDialOutRequestRequestApplicationJsonInterface { - static final _$options = _$jsonSerializers.deserialize( - const [], - specifiedType: const FullType(RoomRejectedDialOutRequestRequestApplicationJson_Options), - )! as RoomRejectedDialOutRequestRequestApplicationJson_Options; - - /// The call ID provided by the SIP bridge earlier to uniquely identify the call to terminate. - String get callId; - - /// Additional details to verify the validity of the request. - RoomRejectedDialOutRequestRequestApplicationJson_Options get options; - - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$RoomRejectedDialOutRequestRequestApplicationJsonInterfaceBuilder]. - $RoomRejectedDialOutRequestRequestApplicationJsonInterface rebuild( - void Function($RoomRejectedDialOutRequestRequestApplicationJsonInterfaceBuilder) updates, - ); - - /// Converts the instance to a builder [$RoomRejectedDialOutRequestRequestApplicationJsonInterfaceBuilder]. - $RoomRejectedDialOutRequestRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($RoomRejectedDialOutRequestRequestApplicationJsonInterfaceBuilder b) { - b.options.replace(_$options); - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate($RoomRejectedDialOutRequestRequestApplicationJsonInterfaceBuilder b) {} -} - -abstract class RoomRejectedDialOutRequestRequestApplicationJson - implements - $RoomRejectedDialOutRequestRequestApplicationJsonInterface, - Built { - /// Creates a new RoomRejectedDialOutRequestRequestApplicationJson object using the builder pattern. - factory RoomRejectedDialOutRequestRequestApplicationJson([ - void Function(RoomRejectedDialOutRequestRequestApplicationJsonBuilder)? b, - ]) = _$RoomRejectedDialOutRequestRequestApplicationJson; - - // coverage:ignore-start - const RoomRejectedDialOutRequestRequestApplicationJson._(); - // coverage:ignore-end - - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory RoomRejectedDialOutRequestRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end - - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end - - /// Serializer for RoomRejectedDialOutRequestRequestApplicationJson. - static Serializer get serializer => - _$roomRejectedDialOutRequestRequestApplicationJsonSerializer; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults(RoomRejectedDialOutRequestRequestApplicationJsonBuilder b) { - $RoomRejectedDialOutRequestRequestApplicationJsonInterface._defaults(b); - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate(RoomRejectedDialOutRequestRequestApplicationJsonBuilder b) { - $RoomRejectedDialOutRequestRequestApplicationJsonInterface._validate(b); - } -} - @BuiltValue(instantiable: false) sealed class $RoomRejectedDialOutRequestResponseApplicationJson_OcsInterface { OCSMeta get meta; @@ -47424,71 +46211,6 @@ class _$CertificateGetCertificateExpirationApiVersionSerializer _fromWire[serialized]!; } -@BuiltValue(instantiable: false) -sealed class $CertificateGetCertificateExpirationRequestApplicationJsonInterface { - /// Host to check. - String get host; - - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$CertificateGetCertificateExpirationRequestApplicationJsonInterfaceBuilder]. - $CertificateGetCertificateExpirationRequestApplicationJsonInterface rebuild( - void Function($CertificateGetCertificateExpirationRequestApplicationJsonInterfaceBuilder) updates, - ); - - /// Converts the instance to a builder [$CertificateGetCertificateExpirationRequestApplicationJsonInterfaceBuilder]. - $CertificateGetCertificateExpirationRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($CertificateGetCertificateExpirationRequestApplicationJsonInterfaceBuilder b) {} - @BuiltValueHook(finalizeBuilder: true) - static void _validate($CertificateGetCertificateExpirationRequestApplicationJsonInterfaceBuilder b) {} -} - -abstract class CertificateGetCertificateExpirationRequestApplicationJson - implements - $CertificateGetCertificateExpirationRequestApplicationJsonInterface, - Built { - /// Creates a new CertificateGetCertificateExpirationRequestApplicationJson object using the builder pattern. - factory CertificateGetCertificateExpirationRequestApplicationJson([ - void Function(CertificateGetCertificateExpirationRequestApplicationJsonBuilder)? b, - ]) = _$CertificateGetCertificateExpirationRequestApplicationJson; - - // coverage:ignore-start - const CertificateGetCertificateExpirationRequestApplicationJson._(); - // coverage:ignore-end - - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory CertificateGetCertificateExpirationRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end - - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end - - /// Serializer for CertificateGetCertificateExpirationRequestApplicationJson. - static Serializer get serializer => - _$certificateGetCertificateExpirationRequestApplicationJsonSerializer; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults(CertificateGetCertificateExpirationRequestApplicationJsonBuilder b) { - $CertificateGetCertificateExpirationRequestApplicationJsonInterface._defaults(b); - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate(CertificateGetCertificateExpirationRequestApplicationJsonBuilder b) { - $CertificateGetCertificateExpirationRequestApplicationJsonInterface._validate(b); - } -} - @BuiltValue(instantiable: false) sealed class $CertificateGetCertificateExpirationResponseApplicationJson_Ocs_DataInterface { @BuiltValueField(wireName: 'expiration_in_days') @@ -49970,11 +48692,7 @@ class _$bc4aac45771b11649d372f39a92b1cf3Serializer implements PrimitiveSerialize final Serializers $serializers = _$serializers; final Serializers _$serializers = (Serializers().toBuilder() ..add(AvatarGetAvatarApiVersion.serializer) - ..addBuilderFactory( - const FullType(AvatarGetAvatarRequestApplicationJson), - AvatarGetAvatarRequestApplicationJsonBuilder.new, - ) - ..add(AvatarGetAvatarRequestApplicationJson.serializer) + ..add(AvatarGetAvatarDarkTheme.serializer) ..add(AvatarUploadAvatarApiVersion.serializer) ..addBuilderFactory( const FullType(AvatarUploadAvatarResponseApplicationJson), @@ -50040,32 +48758,14 @@ final Serializers _$serializers = (Serializers().toBuilder() ..add(AvatarGetAvatarDarkApiVersion.serializer) ..add(AvatarGetUserProxyAvatarWithoutRoomSize.serializer) ..add(AvatarGetUserProxyAvatarWithoutRoomApiVersion.serializer) - ..addBuilderFactory( - const FullType(AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJson), - AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJsonBuilder.new, - ) - ..add(AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJson.serializer) + ..add(AvatarGetUserProxyAvatarWithoutRoomDarkTheme.serializer) ..add(AvatarGetUserProxyAvatarDarkWithoutRoomSize.serializer) ..add(AvatarGetUserProxyAvatarDarkWithoutRoomApiVersion.serializer) - ..addBuilderFactory( - const FullType(AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJson), - AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJsonBuilder.new, - ) - ..add(AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJson.serializer) ..add(AvatarGetUserProxyAvatarSize.serializer) ..add(AvatarGetUserProxyAvatarApiVersion.serializer) - ..addBuilderFactory( - const FullType(AvatarGetUserProxyAvatarRequestApplicationJson), - AvatarGetUserProxyAvatarRequestApplicationJsonBuilder.new, - ) - ..add(AvatarGetUserProxyAvatarRequestApplicationJson.serializer) + ..add(AvatarGetUserProxyAvatarDarkTheme.serializer) ..add(AvatarGetUserProxyAvatarDarkSize.serializer) ..add(AvatarGetUserProxyAvatarDarkApiVersion.serializer) - ..addBuilderFactory( - const FullType(AvatarGetUserProxyAvatarDarkRequestApplicationJson), - AvatarGetUserProxyAvatarDarkRequestApplicationJsonBuilder.new, - ) - ..add(AvatarGetUserProxyAvatarDarkRequestApplicationJson.serializer) ..add(BotListBotsApiVersion.serializer) ..addBuilderFactory( const FullType(BotListBotsResponseApplicationJson), @@ -50129,11 +48829,6 @@ final Serializers _$serializers = (Serializers().toBuilder() ) ..add(BotReactResponseApplicationJson_Ocs.serializer) ..add(BotDeleteReactionApiVersion.serializer) - ..addBuilderFactory( - const FullType(BotDeleteReactionRequestApplicationJson), - BotDeleteReactionRequestApplicationJsonBuilder.new, - ) - ..add(BotDeleteReactionRequestApplicationJson.serializer) ..addBuilderFactory( const FullType(BotDeleteReactionResponseApplicationJson), BotDeleteReactionResponseApplicationJsonBuilder.new, @@ -50312,11 +49007,7 @@ final Serializers _$serializers = (Serializers().toBuilder() ) ..add(CallJoinCallResponseApplicationJson_Ocs.serializer) ..add(CallLeaveCallApiVersion.serializer) - ..addBuilderFactory( - const FullType(CallLeaveCallRequestApplicationJson), - CallLeaveCallRequestApplicationJsonBuilder.new, - ) - ..add(CallLeaveCallRequestApplicationJson.serializer) + ..add(CallLeaveCallAll.serializer) ..addBuilderFactory( const FullType(CallLeaveCallResponseApplicationJson), CallLeaveCallResponseApplicationJsonBuilder.new, @@ -50354,17 +49045,12 @@ final Serializers _$serializers = (Serializers().toBuilder() CallSipDialOutResponseApplicationJson_Ocs_DataBuilder.new, ) ..add(CallSipDialOutResponseApplicationJson_Ocs_Data.serializer) + ..add(ChatReceiveMessagesLookIntoFuture.serializer) ..add(ChatReceiveMessagesApiVersion.serializer) - ..addBuilderFactory( - const FullType(ChatReceiveMessagesRequestApplicationJson), - ChatReceiveMessagesRequestApplicationJsonBuilder.new, - ) - ..add(ChatReceiveMessagesRequestApplicationJson.serializer) - ..add(ChatReceiveMessagesRequestApplicationJson_LookIntoFuture.serializer) - ..add(ChatReceiveMessagesRequestApplicationJson_SetReadMarker.serializer) - ..add(ChatReceiveMessagesRequestApplicationJson_IncludeLastKnown.serializer) - ..add(ChatReceiveMessagesRequestApplicationJson_NoStatusUpdate.serializer) - ..add(ChatReceiveMessagesRequestApplicationJson_MarkNotificationsAsRead.serializer) + ..add(ChatReceiveMessagesSetReadMarker.serializer) + ..add(ChatReceiveMessagesIncludeLastKnown.serializer) + ..add(ChatReceiveMessagesNoStatusUpdate.serializer) + ..add(ChatReceiveMessagesMarkNotificationsAsRead.serializer) ..addBuilderFactory( const FullType(ChatReceiveMessagesResponseApplicationJson), ChatReceiveMessagesResponseApplicationJsonBuilder.new, @@ -50446,11 +49132,6 @@ final Serializers _$serializers = (Serializers().toBuilder() ..addBuilderFactory(const FullType(ChatChatDeleteMessageHeaders), ChatChatDeleteMessageHeadersBuilder.new) ..add(ChatChatDeleteMessageHeaders.serializer) ..add(ChatGetMessageContextApiVersion.serializer) - ..addBuilderFactory( - const FullType(ChatGetMessageContextRequestApplicationJson), - ChatGetMessageContextRequestApplicationJsonBuilder.new, - ) - ..add(ChatGetMessageContextRequestApplicationJson.serializer) ..addBuilderFactory( const FullType(ChatGetMessageContextResponseApplicationJson), ChatGetMessageContextResponseApplicationJsonBuilder.new, @@ -50540,11 +49221,7 @@ final Serializers _$serializers = (Serializers().toBuilder() ..addBuilderFactory(const FullType(ChatChatMarkUnreadHeaders), ChatChatMarkUnreadHeadersBuilder.new) ..add(ChatChatMarkUnreadHeaders.serializer) ..add(ChatMentionsApiVersion.serializer) - ..addBuilderFactory( - const FullType(ChatMentionsRequestApplicationJson), - ChatMentionsRequestApplicationJsonBuilder.new, - ) - ..add(ChatMentionsRequestApplicationJson.serializer) + ..add(ChatMentionsIncludeStatus.serializer) ..addBuilderFactory( const FullType(ChatMentionsResponseApplicationJson), ChatMentionsResponseApplicationJsonBuilder.new, @@ -50562,11 +49239,6 @@ final Serializers _$serializers = (Serializers().toBuilder() ListBuilder.new, ) ..add(ChatGetObjectsSharedInRoomApiVersion.serializer) - ..addBuilderFactory( - const FullType(ChatGetObjectsSharedInRoomRequestApplicationJson), - ChatGetObjectsSharedInRoomRequestApplicationJsonBuilder.new, - ) - ..add(ChatGetObjectsSharedInRoomRequestApplicationJson.serializer) ..addBuilderFactory( const FullType(ChatGetObjectsSharedInRoomResponseApplicationJson), ChatGetObjectsSharedInRoomResponseApplicationJsonBuilder.new, @@ -50602,11 +49274,6 @@ final Serializers _$serializers = (Serializers().toBuilder() ..addBuilderFactory(const FullType(ChatChatShareObjectToChatHeaders), ChatChatShareObjectToChatHeadersBuilder.new) ..add(ChatChatShareObjectToChatHeaders.serializer) ..add(ChatGetObjectsSharedInRoomOverviewApiVersion.serializer) - ..addBuilderFactory( - const FullType(ChatGetObjectsSharedInRoomOverviewRequestApplicationJson), - ChatGetObjectsSharedInRoomOverviewRequestApplicationJsonBuilder.new, - ) - ..add(ChatGetObjectsSharedInRoomOverviewRequestApplicationJson.serializer) ..addBuilderFactory( const FullType(ChatGetObjectsSharedInRoomOverviewResponseApplicationJson), ChatGetObjectsSharedInRoomOverviewResponseApplicationJsonBuilder.new, @@ -50625,11 +49292,6 @@ final Serializers _$serializers = (Serializers().toBuilder() MapBuilder>.new, ) ..add(SignalingGetSettingsApiVersion.serializer) - ..addBuilderFactory( - const FullType(SignalingGetSettingsRequestApplicationJson), - SignalingGetSettingsRequestApplicationJsonBuilder.new, - ) - ..add(SignalingGetSettingsRequestApplicationJson.serializer) ..addBuilderFactory( const FullType(SignalingGetSettingsResponseApplicationJson), SignalingGetSettingsResponseApplicationJsonBuilder.new, @@ -50985,11 +49647,6 @@ final Serializers _$serializers = (Serializers().toBuilder() ) ..add(PollClosePollResponseApplicationJson_Ocs.serializer) ..add(ReactionGetReactionsApiVersion.serializer) - ..addBuilderFactory( - const FullType(ReactionGetReactionsRequestApplicationJson), - ReactionGetReactionsRequestApplicationJsonBuilder.new, - ) - ..add(ReactionGetReactionsRequestApplicationJson.serializer) ..addBuilderFactory( const FullType(ReactionGetReactionsResponseApplicationJson), ReactionGetReactionsResponseApplicationJsonBuilder.new, @@ -51027,11 +49684,6 @@ final Serializers _$serializers = (Serializers().toBuilder() ) ..add(ReactionReactResponseApplicationJson_Ocs.serializer) ..add(ReactionDeleteApiVersion.serializer) - ..addBuilderFactory( - const FullType(ReactionDeleteRequestApplicationJson), - ReactionDeleteRequestApplicationJsonBuilder.new, - ) - ..add(ReactionDeleteRequestApplicationJson.serializer) ..addBuilderFactory( const FullType(ReactionDeleteResponseApplicationJson), ReactionDeleteResponseApplicationJsonBuilder.new, @@ -51070,11 +49722,6 @@ final Serializers _$serializers = (Serializers().toBuilder() ) ..add(RecordingStopResponseApplicationJson_Ocs.serializer) ..add(RecordingNotificationDismissApiVersion.serializer) - ..addBuilderFactory( - const FullType(RecordingNotificationDismissRequestApplicationJson), - RecordingNotificationDismissRequestApplicationJsonBuilder.new, - ) - ..add(RecordingNotificationDismissRequestApplicationJson.serializer) ..addBuilderFactory( const FullType(RecordingNotificationDismissResponseApplicationJson), RecordingNotificationDismissResponseApplicationJsonBuilder.new, @@ -51129,12 +49776,8 @@ final Serializers _$serializers = (Serializers().toBuilder() ) ..add(RecordingStoreResponseApplicationJson_Ocs.serializer) ..add(RoomGetRoomsApiVersion.serializer) - ..addBuilderFactory( - const FullType(RoomGetRoomsRequestApplicationJson), - RoomGetRoomsRequestApplicationJsonBuilder.new, - ) - ..add(RoomGetRoomsRequestApplicationJson.serializer) - ..add(RoomGetRoomsRequestApplicationJson_NoStatusUpdate.serializer) + ..add(RoomGetRoomsNoStatusUpdate.serializer) + ..add(RoomGetRoomsIncludeStatus.serializer) ..addBuilderFactory( const FullType(RoomGetRoomsResponseApplicationJson), RoomGetRoomsResponseApplicationJsonBuilder.new, @@ -51164,11 +49807,6 @@ final Serializers _$serializers = (Serializers().toBuilder() ) ..add(RoomCreateRoomResponseApplicationJson_Ocs.serializer) ..add(RoomGetListedRoomsApiVersion.serializer) - ..addBuilderFactory( - const FullType(RoomGetListedRoomsRequestApplicationJson), - RoomGetListedRoomsRequestApplicationJsonBuilder.new, - ) - ..add(RoomGetListedRoomsRequestApplicationJson.serializer) ..addBuilderFactory( const FullType(RoomGetListedRoomsResponseApplicationJson), RoomGetListedRoomsResponseApplicationJsonBuilder.new, @@ -51325,11 +49963,7 @@ final Serializers _$serializers = (Serializers().toBuilder() ) ..add(RoomSetPermissionsResponseApplicationJson_Ocs.serializer) ..add(RoomGetParticipantsApiVersion.serializer) - ..addBuilderFactory( - const FullType(RoomGetParticipantsRequestApplicationJson), - RoomGetParticipantsRequestApplicationJsonBuilder.new, - ) - ..add(RoomGetParticipantsRequestApplicationJson.serializer) + ..add(RoomGetParticipantsIncludeStatus.serializer) ..addBuilderFactory( const FullType(RoomGetParticipantsResponseApplicationJson), RoomGetParticipantsResponseApplicationJsonBuilder.new, @@ -51371,11 +50005,7 @@ final Serializers _$serializers = (Serializers().toBuilder() ..add(RoomAddParticipantToRoomResponseApplicationJson_Ocs_Data0.serializer) ..add($bd993fb3f40af33e8594d0d698208560Extension._serializer) ..add(RoomGetBreakoutRoomParticipantsApiVersion.serializer) - ..addBuilderFactory( - const FullType(RoomGetBreakoutRoomParticipantsRequestApplicationJson), - RoomGetBreakoutRoomParticipantsRequestApplicationJsonBuilder.new, - ) - ..add(RoomGetBreakoutRoomParticipantsRequestApplicationJson.serializer) + ..add(RoomGetBreakoutRoomParticipantsIncludeStatus.serializer) ..addBuilderFactory( const FullType(RoomGetBreakoutRoomParticipantsResponseApplicationJson), RoomGetBreakoutRoomParticipantsResponseApplicationJsonBuilder.new, @@ -51403,11 +50033,6 @@ final Serializers _$serializers = (Serializers().toBuilder() ) ..add(RoomRemoveSelfFromRoomResponseApplicationJson_Ocs.serializer) ..add(RoomRemoveAttendeeFromRoomApiVersion.serializer) - ..addBuilderFactory( - const FullType(RoomRemoveAttendeeFromRoomRequestApplicationJson), - RoomRemoveAttendeeFromRoomRequestApplicationJsonBuilder.new, - ) - ..add(RoomRemoveAttendeeFromRoomRequestApplicationJson.serializer) ..addBuilderFactory( const FullType(RoomRemoveAttendeeFromRoomResponseApplicationJson), RoomRemoveAttendeeFromRoomResponseApplicationJsonBuilder.new, @@ -51531,11 +50156,6 @@ final Serializers _$serializers = (Serializers().toBuilder() ) ..add(RoomPromoteModeratorResponseApplicationJson_Ocs.serializer) ..add(RoomDemoteModeratorApiVersion.serializer) - ..addBuilderFactory( - const FullType(RoomDemoteModeratorRequestApplicationJson), - RoomDemoteModeratorRequestApplicationJsonBuilder.new, - ) - ..add(RoomDemoteModeratorRequestApplicationJson.serializer) ..addBuilderFactory( const FullType(RoomDemoteModeratorResponseApplicationJson), RoomDemoteModeratorResponseApplicationJsonBuilder.new, @@ -51773,16 +50393,6 @@ final Serializers _$serializers = (Serializers().toBuilder() ) ..add(RoomCreateGuestByDialInResponseApplicationJson_Ocs.serializer) ..add(RoomRejectedDialOutRequestApiVersion.serializer) - ..addBuilderFactory( - const FullType(RoomRejectedDialOutRequestRequestApplicationJson), - RoomRejectedDialOutRequestRequestApplicationJsonBuilder.new, - ) - ..add(RoomRejectedDialOutRequestRequestApplicationJson.serializer) - ..addBuilderFactory( - const FullType(RoomRejectedDialOutRequestRequestApplicationJson_Options), - RoomRejectedDialOutRequestRequestApplicationJson_OptionsBuilder.new, - ) - ..add(RoomRejectedDialOutRequestRequestApplicationJson_Options.serializer) ..addBuilderFactory( const FullType(RoomRejectedDialOutRequestResponseApplicationJson), RoomRejectedDialOutRequestResponseApplicationJsonBuilder.new, @@ -51825,11 +50435,6 @@ final Serializers _$serializers = (Serializers().toBuilder() ..add(BotWithDetails.serializer) ..addBuilderFactory(const FullType(BuiltList, [FullType(BotWithDetails)]), ListBuilder.new) ..add(CertificateGetCertificateExpirationApiVersion.serializer) - ..addBuilderFactory( - const FullType(CertificateGetCertificateExpirationRequestApplicationJson), - CertificateGetCertificateExpirationRequestApplicationJsonBuilder.new, - ) - ..add(CertificateGetCertificateExpirationRequestApplicationJson.serializer) ..addBuilderFactory( const FullType(CertificateGetCertificateExpirationResponseApplicationJson), CertificateGetCertificateExpirationResponseApplicationJsonBuilder.new, diff --git a/packages/nextcloud/lib/src/api/spreed/spreed.openapi.g.dart b/packages/nextcloud/lib/src/api/spreed/spreed.openapi.g.dart index 413087f02d6..69bb9b9a004 100644 --- a/packages/nextcloud/lib/src/api/spreed/spreed.openapi.g.dart +++ b/packages/nextcloud/lib/src/api/spreed/spreed.openapi.g.dart @@ -22,6 +22,26 @@ final BuiltSet _$avatarGetAvatarApiVersionValues = _$avatarGetAvatarApiVersionV1, ]); +const AvatarGetAvatarDarkTheme _$avatarGetAvatarDarkTheme$0 = AvatarGetAvatarDarkTheme._('\$0'); +const AvatarGetAvatarDarkTheme _$avatarGetAvatarDarkTheme$1 = AvatarGetAvatarDarkTheme._('\$1'); + +AvatarGetAvatarDarkTheme _$valueOfAvatarGetAvatarDarkTheme(String name) { + switch (name) { + case '\$0': + return _$avatarGetAvatarDarkTheme$0; + case '\$1': + return _$avatarGetAvatarDarkTheme$1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$avatarGetAvatarDarkThemeValues = + BuiltSet(const [ + _$avatarGetAvatarDarkTheme$0, + _$avatarGetAvatarDarkTheme$1, +]); + const AvatarUploadAvatarApiVersion _$avatarUploadAvatarApiVersionV1 = AvatarUploadAvatarApiVersion._('v1'); AvatarUploadAvatarApiVersion _$valueOfAvatarUploadAvatarApiVersion(String name) { @@ -349,6 +369,28 @@ final BuiltSet _$avatarGetUserPro _$avatarGetUserProxyAvatarWithoutRoomApiVersionV1, ]); +const AvatarGetUserProxyAvatarWithoutRoomDarkTheme _$avatarGetUserProxyAvatarWithoutRoomDarkTheme$0 = + AvatarGetUserProxyAvatarWithoutRoomDarkTheme._('\$0'); +const AvatarGetUserProxyAvatarWithoutRoomDarkTheme _$avatarGetUserProxyAvatarWithoutRoomDarkTheme$1 = + AvatarGetUserProxyAvatarWithoutRoomDarkTheme._('\$1'); + +AvatarGetUserProxyAvatarWithoutRoomDarkTheme _$valueOfAvatarGetUserProxyAvatarWithoutRoomDarkTheme(String name) { + switch (name) { + case '\$0': + return _$avatarGetUserProxyAvatarWithoutRoomDarkTheme$0; + case '\$1': + return _$avatarGetUserProxyAvatarWithoutRoomDarkTheme$1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$avatarGetUserProxyAvatarWithoutRoomDarkThemeValues = + BuiltSet(const [ + _$avatarGetUserProxyAvatarWithoutRoomDarkTheme$0, + _$avatarGetUserProxyAvatarWithoutRoomDarkTheme$1, +]); + const AvatarGetUserProxyAvatarDarkWithoutRoomSize _$avatarGetUserProxyAvatarDarkWithoutRoomSize$64 = AvatarGetUserProxyAvatarDarkWithoutRoomSize._('\$64'); const AvatarGetUserProxyAvatarDarkWithoutRoomSize _$avatarGetUserProxyAvatarDarkWithoutRoomSize$512 = @@ -427,6 +469,28 @@ final BuiltSet _$avatarGetUserProxyAvatarApi _$avatarGetUserProxyAvatarApiVersionV1, ]); +const AvatarGetUserProxyAvatarDarkTheme _$avatarGetUserProxyAvatarDarkTheme$0 = + AvatarGetUserProxyAvatarDarkTheme._('\$0'); +const AvatarGetUserProxyAvatarDarkTheme _$avatarGetUserProxyAvatarDarkTheme$1 = + AvatarGetUserProxyAvatarDarkTheme._('\$1'); + +AvatarGetUserProxyAvatarDarkTheme _$valueOfAvatarGetUserProxyAvatarDarkTheme(String name) { + switch (name) { + case '\$0': + return _$avatarGetUserProxyAvatarDarkTheme$0; + case '\$1': + return _$avatarGetUserProxyAvatarDarkTheme$1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$avatarGetUserProxyAvatarDarkThemeValues = + BuiltSet(const [ + _$avatarGetUserProxyAvatarDarkTheme$0, + _$avatarGetUserProxyAvatarDarkTheme$1, +]); + const AvatarGetUserProxyAvatarDarkSize _$avatarGetUserProxyAvatarDarkSize$64 = AvatarGetUserProxyAvatarDarkSize._('\$64'); const AvatarGetUserProxyAvatarDarkSize _$avatarGetUserProxyAvatarDarkSize$512 = @@ -817,6 +881,25 @@ final BuiltSet _$callLeaveCallApiVersionValues = _$callLeaveCallApiVersionV4, ]); +const CallLeaveCallAll _$callLeaveCallAll$0 = CallLeaveCallAll._('\$0'); +const CallLeaveCallAll _$callLeaveCallAll$1 = CallLeaveCallAll._('\$1'); + +CallLeaveCallAll _$valueOfCallLeaveCallAll(String name) { + switch (name) { + case '\$0': + return _$callLeaveCallAll$0; + case '\$1': + return _$callLeaveCallAll$1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$callLeaveCallAllValues = BuiltSet(const [ + _$callLeaveCallAll$0, + _$callLeaveCallAll$1, +]); + const CallRingAttendeeApiVersion _$callRingAttendeeApiVersionV4 = CallRingAttendeeApiVersion._('v4'); CallRingAttendeeApiVersion _$valueOfCallRingAttendeeApiVersion(String name) { @@ -849,150 +932,128 @@ final BuiltSet _$callSipDialOutApiVersionValues = _$callSipDialOutApiVersionV4, ]); -const ChatReceiveMessagesApiVersion _$chatReceiveMessagesApiVersionV1 = ChatReceiveMessagesApiVersion._('v1'); +const ChatReceiveMessagesLookIntoFuture _$chatReceiveMessagesLookIntoFuture$0 = + ChatReceiveMessagesLookIntoFuture._('\$0'); +const ChatReceiveMessagesLookIntoFuture _$chatReceiveMessagesLookIntoFuture$1 = + ChatReceiveMessagesLookIntoFuture._('\$1'); -ChatReceiveMessagesApiVersion _$valueOfChatReceiveMessagesApiVersion(String name) { +ChatReceiveMessagesLookIntoFuture _$valueOfChatReceiveMessagesLookIntoFuture(String name) { switch (name) { - case 'v1': - return _$chatReceiveMessagesApiVersionV1; + case '\$0': + return _$chatReceiveMessagesLookIntoFuture$0; + case '\$1': + return _$chatReceiveMessagesLookIntoFuture$1; default: throw ArgumentError(name); } } -final BuiltSet _$chatReceiveMessagesApiVersionValues = - BuiltSet(const [ - _$chatReceiveMessagesApiVersionV1, +final BuiltSet _$chatReceiveMessagesLookIntoFutureValues = + BuiltSet(const [ + _$chatReceiveMessagesLookIntoFuture$0, + _$chatReceiveMessagesLookIntoFuture$1, ]); -const ChatReceiveMessagesRequestApplicationJson_LookIntoFuture - _$chatReceiveMessagesRequestApplicationJsonLookIntoFuture$0 = - ChatReceiveMessagesRequestApplicationJson_LookIntoFuture._('\$0'); -const ChatReceiveMessagesRequestApplicationJson_LookIntoFuture - _$chatReceiveMessagesRequestApplicationJsonLookIntoFuture$1 = - ChatReceiveMessagesRequestApplicationJson_LookIntoFuture._('\$1'); +const ChatReceiveMessagesApiVersion _$chatReceiveMessagesApiVersionV1 = ChatReceiveMessagesApiVersion._('v1'); -ChatReceiveMessagesRequestApplicationJson_LookIntoFuture - _$valueOfChatReceiveMessagesRequestApplicationJson_LookIntoFuture(String name) { +ChatReceiveMessagesApiVersion _$valueOfChatReceiveMessagesApiVersion(String name) { switch (name) { - case '\$0': - return _$chatReceiveMessagesRequestApplicationJsonLookIntoFuture$0; - case '\$1': - return _$chatReceiveMessagesRequestApplicationJsonLookIntoFuture$1; + case 'v1': + return _$chatReceiveMessagesApiVersionV1; default: throw ArgumentError(name); } } -final BuiltSet - _$chatReceiveMessagesRequestApplicationJsonLookIntoFutureValues = BuiltSet< - ChatReceiveMessagesRequestApplicationJson_LookIntoFuture>(const [ - _$chatReceiveMessagesRequestApplicationJsonLookIntoFuture$0, - _$chatReceiveMessagesRequestApplicationJsonLookIntoFuture$1, +final BuiltSet _$chatReceiveMessagesApiVersionValues = + BuiltSet(const [ + _$chatReceiveMessagesApiVersionV1, ]); -const ChatReceiveMessagesRequestApplicationJson_SetReadMarker - _$chatReceiveMessagesRequestApplicationJsonSetReadMarker$0 = - ChatReceiveMessagesRequestApplicationJson_SetReadMarker._('\$0'); -const ChatReceiveMessagesRequestApplicationJson_SetReadMarker - _$chatReceiveMessagesRequestApplicationJsonSetReadMarker$1 = - ChatReceiveMessagesRequestApplicationJson_SetReadMarker._('\$1'); +const ChatReceiveMessagesSetReadMarker _$chatReceiveMessagesSetReadMarker$0 = ChatReceiveMessagesSetReadMarker._('\$0'); +const ChatReceiveMessagesSetReadMarker _$chatReceiveMessagesSetReadMarker$1 = ChatReceiveMessagesSetReadMarker._('\$1'); -ChatReceiveMessagesRequestApplicationJson_SetReadMarker - _$valueOfChatReceiveMessagesRequestApplicationJson_SetReadMarker(String name) { +ChatReceiveMessagesSetReadMarker _$valueOfChatReceiveMessagesSetReadMarker(String name) { switch (name) { case '\$0': - return _$chatReceiveMessagesRequestApplicationJsonSetReadMarker$0; + return _$chatReceiveMessagesSetReadMarker$0; case '\$1': - return _$chatReceiveMessagesRequestApplicationJsonSetReadMarker$1; + return _$chatReceiveMessagesSetReadMarker$1; default: throw ArgumentError(name); } } -final BuiltSet - _$chatReceiveMessagesRequestApplicationJsonSetReadMarkerValues = BuiltSet< - ChatReceiveMessagesRequestApplicationJson_SetReadMarker>(const [ - _$chatReceiveMessagesRequestApplicationJsonSetReadMarker$0, - _$chatReceiveMessagesRequestApplicationJsonSetReadMarker$1, +final BuiltSet _$chatReceiveMessagesSetReadMarkerValues = + BuiltSet(const [ + _$chatReceiveMessagesSetReadMarker$0, + _$chatReceiveMessagesSetReadMarker$1, ]); -const ChatReceiveMessagesRequestApplicationJson_IncludeLastKnown - _$chatReceiveMessagesRequestApplicationJsonIncludeLastKnown$0 = - ChatReceiveMessagesRequestApplicationJson_IncludeLastKnown._('\$0'); -const ChatReceiveMessagesRequestApplicationJson_IncludeLastKnown - _$chatReceiveMessagesRequestApplicationJsonIncludeLastKnown$1 = - ChatReceiveMessagesRequestApplicationJson_IncludeLastKnown._('\$1'); +const ChatReceiveMessagesIncludeLastKnown _$chatReceiveMessagesIncludeLastKnown$0 = + ChatReceiveMessagesIncludeLastKnown._('\$0'); +const ChatReceiveMessagesIncludeLastKnown _$chatReceiveMessagesIncludeLastKnown$1 = + ChatReceiveMessagesIncludeLastKnown._('\$1'); -ChatReceiveMessagesRequestApplicationJson_IncludeLastKnown - _$valueOfChatReceiveMessagesRequestApplicationJson_IncludeLastKnown(String name) { +ChatReceiveMessagesIncludeLastKnown _$valueOfChatReceiveMessagesIncludeLastKnown(String name) { switch (name) { case '\$0': - return _$chatReceiveMessagesRequestApplicationJsonIncludeLastKnown$0; + return _$chatReceiveMessagesIncludeLastKnown$0; case '\$1': - return _$chatReceiveMessagesRequestApplicationJsonIncludeLastKnown$1; + return _$chatReceiveMessagesIncludeLastKnown$1; default: throw ArgumentError(name); } } -final BuiltSet - _$chatReceiveMessagesRequestApplicationJsonIncludeLastKnownValues = BuiltSet< - ChatReceiveMessagesRequestApplicationJson_IncludeLastKnown>(const [ - _$chatReceiveMessagesRequestApplicationJsonIncludeLastKnown$0, - _$chatReceiveMessagesRequestApplicationJsonIncludeLastKnown$1, +final BuiltSet _$chatReceiveMessagesIncludeLastKnownValues = + BuiltSet(const [ + _$chatReceiveMessagesIncludeLastKnown$0, + _$chatReceiveMessagesIncludeLastKnown$1, ]); -const ChatReceiveMessagesRequestApplicationJson_NoStatusUpdate - _$chatReceiveMessagesRequestApplicationJsonNoStatusUpdate$0 = - ChatReceiveMessagesRequestApplicationJson_NoStatusUpdate._('\$0'); -const ChatReceiveMessagesRequestApplicationJson_NoStatusUpdate - _$chatReceiveMessagesRequestApplicationJsonNoStatusUpdate$1 = - ChatReceiveMessagesRequestApplicationJson_NoStatusUpdate._('\$1'); +const ChatReceiveMessagesNoStatusUpdate _$chatReceiveMessagesNoStatusUpdate$0 = + ChatReceiveMessagesNoStatusUpdate._('\$0'); +const ChatReceiveMessagesNoStatusUpdate _$chatReceiveMessagesNoStatusUpdate$1 = + ChatReceiveMessagesNoStatusUpdate._('\$1'); -ChatReceiveMessagesRequestApplicationJson_NoStatusUpdate - _$valueOfChatReceiveMessagesRequestApplicationJson_NoStatusUpdate(String name) { +ChatReceiveMessagesNoStatusUpdate _$valueOfChatReceiveMessagesNoStatusUpdate(String name) { switch (name) { case '\$0': - return _$chatReceiveMessagesRequestApplicationJsonNoStatusUpdate$0; + return _$chatReceiveMessagesNoStatusUpdate$0; case '\$1': - return _$chatReceiveMessagesRequestApplicationJsonNoStatusUpdate$1; + return _$chatReceiveMessagesNoStatusUpdate$1; default: throw ArgumentError(name); } } -final BuiltSet - _$chatReceiveMessagesRequestApplicationJsonNoStatusUpdateValues = BuiltSet< - ChatReceiveMessagesRequestApplicationJson_NoStatusUpdate>(const [ - _$chatReceiveMessagesRequestApplicationJsonNoStatusUpdate$0, - _$chatReceiveMessagesRequestApplicationJsonNoStatusUpdate$1, +final BuiltSet _$chatReceiveMessagesNoStatusUpdateValues = + BuiltSet(const [ + _$chatReceiveMessagesNoStatusUpdate$0, + _$chatReceiveMessagesNoStatusUpdate$1, ]); -const ChatReceiveMessagesRequestApplicationJson_MarkNotificationsAsRead - _$chatReceiveMessagesRequestApplicationJsonMarkNotificationsAsRead$0 = - ChatReceiveMessagesRequestApplicationJson_MarkNotificationsAsRead._('\$0'); -const ChatReceiveMessagesRequestApplicationJson_MarkNotificationsAsRead - _$chatReceiveMessagesRequestApplicationJsonMarkNotificationsAsRead$1 = - ChatReceiveMessagesRequestApplicationJson_MarkNotificationsAsRead._('\$1'); +const ChatReceiveMessagesMarkNotificationsAsRead _$chatReceiveMessagesMarkNotificationsAsRead$0 = + ChatReceiveMessagesMarkNotificationsAsRead._('\$0'); +const ChatReceiveMessagesMarkNotificationsAsRead _$chatReceiveMessagesMarkNotificationsAsRead$1 = + ChatReceiveMessagesMarkNotificationsAsRead._('\$1'); -ChatReceiveMessagesRequestApplicationJson_MarkNotificationsAsRead - _$valueOfChatReceiveMessagesRequestApplicationJson_MarkNotificationsAsRead(String name) { +ChatReceiveMessagesMarkNotificationsAsRead _$valueOfChatReceiveMessagesMarkNotificationsAsRead(String name) { switch (name) { case '\$0': - return _$chatReceiveMessagesRequestApplicationJsonMarkNotificationsAsRead$0; + return _$chatReceiveMessagesMarkNotificationsAsRead$0; case '\$1': - return _$chatReceiveMessagesRequestApplicationJsonMarkNotificationsAsRead$1; + return _$chatReceiveMessagesMarkNotificationsAsRead$1; default: throw ArgumentError(name); } } -final BuiltSet - _$chatReceiveMessagesRequestApplicationJsonMarkNotificationsAsReadValues = BuiltSet< - ChatReceiveMessagesRequestApplicationJson_MarkNotificationsAsRead>(const [ - _$chatReceiveMessagesRequestApplicationJsonMarkNotificationsAsRead$0, - _$chatReceiveMessagesRequestApplicationJsonMarkNotificationsAsRead$1, +final BuiltSet _$chatReceiveMessagesMarkNotificationsAsReadValues = + BuiltSet(const [ + _$chatReceiveMessagesMarkNotificationsAsRead$0, + _$chatReceiveMessagesMarkNotificationsAsRead$1, ]); const ChatSendMessageApiVersion _$chatSendMessageApiVersionV1 = ChatSendMessageApiVersion._('v1'); @@ -1171,6 +1232,26 @@ final BuiltSet _$chatMentionsApiVersionValues = _$chatMentionsApiVersionV1, ]); +const ChatMentionsIncludeStatus _$chatMentionsIncludeStatus$0 = ChatMentionsIncludeStatus._('\$0'); +const ChatMentionsIncludeStatus _$chatMentionsIncludeStatus$1 = ChatMentionsIncludeStatus._('\$1'); + +ChatMentionsIncludeStatus _$valueOfChatMentionsIncludeStatus(String name) { + switch (name) { + case '\$0': + return _$chatMentionsIncludeStatus$0; + case '\$1': + return _$chatMentionsIncludeStatus$1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$chatMentionsIncludeStatusValues = + BuiltSet(const [ + _$chatMentionsIncludeStatus$0, + _$chatMentionsIncludeStatus$1, +]); + const ChatGetObjectsSharedInRoomApiVersion _$chatGetObjectsSharedInRoomApiVersionV1 = ChatGetObjectsSharedInRoomApiVersion._('v1'); @@ -1769,28 +1850,44 @@ final BuiltSet _$roomGetRoomsApiVersionValues = _$roomGetRoomsApiVersionV4, ]); -const RoomGetRoomsRequestApplicationJson_NoStatusUpdate _$roomGetRoomsRequestApplicationJsonNoStatusUpdate$0 = - RoomGetRoomsRequestApplicationJson_NoStatusUpdate._('\$0'); -const RoomGetRoomsRequestApplicationJson_NoStatusUpdate _$roomGetRoomsRequestApplicationJsonNoStatusUpdate$1 = - RoomGetRoomsRequestApplicationJson_NoStatusUpdate._('\$1'); +const RoomGetRoomsNoStatusUpdate _$roomGetRoomsNoStatusUpdate$0 = RoomGetRoomsNoStatusUpdate._('\$0'); +const RoomGetRoomsNoStatusUpdate _$roomGetRoomsNoStatusUpdate$1 = RoomGetRoomsNoStatusUpdate._('\$1'); -RoomGetRoomsRequestApplicationJson_NoStatusUpdate _$valueOfRoomGetRoomsRequestApplicationJson_NoStatusUpdate( - String name) { +RoomGetRoomsNoStatusUpdate _$valueOfRoomGetRoomsNoStatusUpdate(String name) { switch (name) { case '\$0': - return _$roomGetRoomsRequestApplicationJsonNoStatusUpdate$0; + return _$roomGetRoomsNoStatusUpdate$0; case '\$1': - return _$roomGetRoomsRequestApplicationJsonNoStatusUpdate$1; + return _$roomGetRoomsNoStatusUpdate$1; default: throw ArgumentError(name); } } -final BuiltSet - _$roomGetRoomsRequestApplicationJsonNoStatusUpdateValues = BuiltSet< - RoomGetRoomsRequestApplicationJson_NoStatusUpdate>(const [ - _$roomGetRoomsRequestApplicationJsonNoStatusUpdate$0, - _$roomGetRoomsRequestApplicationJsonNoStatusUpdate$1, +final BuiltSet _$roomGetRoomsNoStatusUpdateValues = + BuiltSet(const [ + _$roomGetRoomsNoStatusUpdate$0, + _$roomGetRoomsNoStatusUpdate$1, +]); + +const RoomGetRoomsIncludeStatus _$roomGetRoomsIncludeStatus$0 = RoomGetRoomsIncludeStatus._('\$0'); +const RoomGetRoomsIncludeStatus _$roomGetRoomsIncludeStatus$1 = RoomGetRoomsIncludeStatus._('\$1'); + +RoomGetRoomsIncludeStatus _$valueOfRoomGetRoomsIncludeStatus(String name) { + switch (name) { + case '\$0': + return _$roomGetRoomsIncludeStatus$0; + case '\$1': + return _$roomGetRoomsIncludeStatus$1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$roomGetRoomsIncludeStatusValues = + BuiltSet(const [ + _$roomGetRoomsIncludeStatus$0, + _$roomGetRoomsIncludeStatus$1, ]); const RoomCreateRoomApiVersion _$roomCreateRoomApiVersionV4 = RoomCreateRoomApiVersion._('v4'); @@ -2071,6 +2168,26 @@ final BuiltSet _$roomGetParticipantsApiVersionVal _$roomGetParticipantsApiVersionV4, ]); +const RoomGetParticipantsIncludeStatus _$roomGetParticipantsIncludeStatus$0 = RoomGetParticipantsIncludeStatus._('\$0'); +const RoomGetParticipantsIncludeStatus _$roomGetParticipantsIncludeStatus$1 = RoomGetParticipantsIncludeStatus._('\$1'); + +RoomGetParticipantsIncludeStatus _$valueOfRoomGetParticipantsIncludeStatus(String name) { + switch (name) { + case '\$0': + return _$roomGetParticipantsIncludeStatus$0; + case '\$1': + return _$roomGetParticipantsIncludeStatus$1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$roomGetParticipantsIncludeStatusValues = + BuiltSet(const [ + _$roomGetParticipantsIncludeStatus$0, + _$roomGetParticipantsIncludeStatus$1, +]); + const RoomAddParticipantToRoomApiVersion _$roomAddParticipantToRoomApiVersionV4 = RoomAddParticipantToRoomApiVersion._('v4'); @@ -2155,6 +2272,28 @@ final BuiltSet _$roomGetBreakoutRoomP _$roomGetBreakoutRoomParticipantsApiVersionV4, ]); +const RoomGetBreakoutRoomParticipantsIncludeStatus _$roomGetBreakoutRoomParticipantsIncludeStatus$0 = + RoomGetBreakoutRoomParticipantsIncludeStatus._('\$0'); +const RoomGetBreakoutRoomParticipantsIncludeStatus _$roomGetBreakoutRoomParticipantsIncludeStatus$1 = + RoomGetBreakoutRoomParticipantsIncludeStatus._('\$1'); + +RoomGetBreakoutRoomParticipantsIncludeStatus _$valueOfRoomGetBreakoutRoomParticipantsIncludeStatus(String name) { + switch (name) { + case '\$0': + return _$roomGetBreakoutRoomParticipantsIncludeStatus$0; + case '\$1': + return _$roomGetBreakoutRoomParticipantsIncludeStatus$1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$roomGetBreakoutRoomParticipantsIncludeStatusValues = + BuiltSet(const [ + _$roomGetBreakoutRoomParticipantsIncludeStatus$0, + _$roomGetBreakoutRoomParticipantsIncludeStatus$1, +]); + const RoomRemoveSelfFromRoomApiVersion _$roomRemoveSelfFromRoomApiVersionV4 = RoomRemoveSelfFromRoomApiVersion._('v4'); RoomRemoveSelfFromRoomApiVersion _$valueOfRoomRemoveSelfFromRoomApiVersion(String name) { @@ -2831,8 +2970,6 @@ final BuiltSet _$signalingBackendApiVersionValues = _$signalingBackendApiVersionV3, ]); -Serializer _$avatarGetAvatarRequestApplicationJsonSerializer = - _$AvatarGetAvatarRequestApplicationJsonSerializer(); Serializer _$oCSMetaSerializer = _$OCSMetaSerializer(); Serializer _$richObjectParameterSerializer = _$RichObjectParameterSerializer(); Serializer _$baseMessageSerializer = _$BaseMessageSerializer(); @@ -2852,17 +2989,6 @@ Serializer _$avatarEmojiAvatarResp _$AvatarEmojiAvatarResponseApplicationJson_OcsSerializer(); Serializer _$avatarEmojiAvatarResponseApplicationJsonSerializer = _$AvatarEmojiAvatarResponseApplicationJsonSerializer(); -Serializer - _$avatarGetUserProxyAvatarWithoutRoomRequestApplicationJsonSerializer = - _$AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJsonSerializer(); -Serializer - _$avatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJsonSerializer = - _$AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJsonSerializer(); -Serializer _$avatarGetUserProxyAvatarRequestApplicationJsonSerializer = - _$AvatarGetUserProxyAvatarRequestApplicationJsonSerializer(); -Serializer - _$avatarGetUserProxyAvatarDarkRequestApplicationJsonSerializer = - _$AvatarGetUserProxyAvatarDarkRequestApplicationJsonSerializer(); Serializer _$botSerializer = _$BotSerializer(); Serializer _$botListBotsResponseApplicationJsonOcsSerializer = _$BotListBotsResponseApplicationJson_OcsSerializer(); @@ -2888,8 +3014,6 @@ Serializer _$botReactResponseApplicationJso _$BotReactResponseApplicationJson_OcsSerializer(); Serializer _$botReactResponseApplicationJsonSerializer = _$BotReactResponseApplicationJsonSerializer(); -Serializer _$botDeleteReactionRequestApplicationJsonSerializer = - _$BotDeleteReactionRequestApplicationJsonSerializer(); Serializer _$botDeleteReactionResponseApplicationJsonOcsSerializer = _$BotDeleteReactionResponseApplicationJson_OcsSerializer(); Serializer _$botDeleteReactionResponseApplicationJsonSerializer = @@ -2977,8 +3101,6 @@ Serializer _$callJoinCallResponseApplic _$CallJoinCallResponseApplicationJson_OcsSerializer(); Serializer _$callJoinCallResponseApplicationJsonSerializer = _$CallJoinCallResponseApplicationJsonSerializer(); -Serializer _$callLeaveCallRequestApplicationJsonSerializer = - _$CallLeaveCallRequestApplicationJsonSerializer(); Serializer _$callLeaveCallResponseApplicationJsonOcsSerializer = _$CallLeaveCallResponseApplicationJson_OcsSerializer(); Serializer _$callLeaveCallResponseApplicationJsonSerializer = @@ -2993,8 +3115,6 @@ Serializer _$callSipDialOutResponseAp _$CallSipDialOutResponseApplicationJson_OcsSerializer(); Serializer _$callSipDialOutResponseApplicationJsonSerializer = _$CallSipDialOutResponseApplicationJsonSerializer(); -Serializer _$chatReceiveMessagesRequestApplicationJsonSerializer = - _$ChatReceiveMessagesRequestApplicationJsonSerializer(); Serializer _$chatMessageWithParentSerializer = _$ChatMessageWithParentSerializer(); Serializer _$chatReceiveMessagesResponseApplicationJsonOcsSerializer = _$ChatReceiveMessagesResponseApplicationJson_OcsSerializer(); @@ -3030,8 +3150,6 @@ Serializer _$chatDeleteMessageResponse _$ChatDeleteMessageResponseApplicationJsonSerializer(); Serializer _$chatChatDeleteMessageHeadersSerializer = _$ChatChatDeleteMessageHeadersSerializer(); -Serializer _$chatGetMessageContextRequestApplicationJsonSerializer = - _$ChatGetMessageContextRequestApplicationJsonSerializer(); Serializer _$chatGetMessageContextResponseApplicationJsonOcsSerializer = _$ChatGetMessageContextResponseApplicationJson_OcsSerializer(); @@ -3070,16 +3188,11 @@ Serializer _$chatMarkUnreadResponseAp Serializer _$chatMarkUnreadResponseApplicationJsonSerializer = _$ChatMarkUnreadResponseApplicationJsonSerializer(); Serializer _$chatChatMarkUnreadHeadersSerializer = _$ChatChatMarkUnreadHeadersSerializer(); -Serializer _$chatMentionsRequestApplicationJsonSerializer = - _$ChatMentionsRequestApplicationJsonSerializer(); Serializer _$chatMentionSuggestionSerializer = _$ChatMentionSuggestionSerializer(); Serializer _$chatMentionsResponseApplicationJsonOcsSerializer = _$ChatMentionsResponseApplicationJson_OcsSerializer(); Serializer _$chatMentionsResponseApplicationJsonSerializer = _$ChatMentionsResponseApplicationJsonSerializer(); -Serializer - _$chatGetObjectsSharedInRoomRequestApplicationJsonSerializer = - _$ChatGetObjectsSharedInRoomRequestApplicationJsonSerializer(); Serializer _$chatGetObjectsSharedInRoomResponseApplicationJsonOcsSerializer = _$ChatGetObjectsSharedInRoomResponseApplicationJson_OcsSerializer(); @@ -3097,17 +3210,12 @@ Serializer _$chatShareObjectToChat _$ChatShareObjectToChatResponseApplicationJsonSerializer(); Serializer _$chatChatShareObjectToChatHeadersSerializer = _$ChatChatShareObjectToChatHeadersSerializer(); -Serializer - _$chatGetObjectsSharedInRoomOverviewRequestApplicationJsonSerializer = - _$ChatGetObjectsSharedInRoomOverviewRequestApplicationJsonSerializer(); Serializer _$chatGetObjectsSharedInRoomOverviewResponseApplicationJsonOcsSerializer = _$ChatGetObjectsSharedInRoomOverviewResponseApplicationJson_OcsSerializer(); Serializer _$chatGetObjectsSharedInRoomOverviewResponseApplicationJsonSerializer = _$ChatGetObjectsSharedInRoomOverviewResponseApplicationJsonSerializer(); -Serializer _$signalingGetSettingsRequestApplicationJsonSerializer = - _$SignalingGetSettingsRequestApplicationJsonSerializer(); Serializer _$signalingSettingsHelloAuthParams10Serializer = _$SignalingSettings_HelloAuthParams_10Serializer(); Serializer _$signalingSettingsHelloAuthParams20Serializer = @@ -3267,8 +3375,6 @@ Serializer _$pollClosePollResponseAppl _$PollClosePollResponseApplicationJson_OcsSerializer(); Serializer _$pollClosePollResponseApplicationJsonSerializer = _$PollClosePollResponseApplicationJsonSerializer(); -Serializer _$reactionGetReactionsRequestApplicationJsonSerializer = - _$ReactionGetReactionsRequestApplicationJsonSerializer(); Serializer _$reactionSerializer = _$ReactionSerializer(); Serializer _$reactionGetReactionsResponseApplicationJsonOcsSerializer = _$ReactionGetReactionsResponseApplicationJson_OcsSerializer(); @@ -3280,8 +3386,6 @@ Serializer _$reactionReactResponseAppl _$ReactionReactResponseApplicationJson_OcsSerializer(); Serializer _$reactionReactResponseApplicationJsonSerializer = _$ReactionReactResponseApplicationJsonSerializer(); -Serializer _$reactionDeleteRequestApplicationJsonSerializer = - _$ReactionDeleteRequestApplicationJsonSerializer(); Serializer _$reactionDeleteResponseApplicationJsonOcsSerializer = _$ReactionDeleteResponseApplicationJson_OcsSerializer(); Serializer _$reactionDeleteResponseApplicationJsonSerializer = @@ -3296,9 +3400,6 @@ Serializer _$recordingStopResponseAppl _$RecordingStopResponseApplicationJson_OcsSerializer(); Serializer _$recordingStopResponseApplicationJsonSerializer = _$RecordingStopResponseApplicationJsonSerializer(); -Serializer - _$recordingNotificationDismissRequestApplicationJsonSerializer = - _$RecordingNotificationDismissRequestApplicationJsonSerializer(); Serializer _$recordingNotificationDismissResponseApplicationJsonOcsSerializer = _$RecordingNotificationDismissResponseApplicationJson_OcsSerializer(); @@ -3321,8 +3422,6 @@ Serializer _$recordingStoreResponseAp _$RecordingStoreResponseApplicationJson_OcsSerializer(); Serializer _$recordingStoreResponseApplicationJsonSerializer = _$RecordingStoreResponseApplicationJsonSerializer(); -Serializer _$roomGetRoomsRequestApplicationJsonSerializer = - _$RoomGetRoomsRequestApplicationJsonSerializer(); Serializer _$roomGetRoomsResponseApplicationJsonOcsSerializer = _$RoomGetRoomsResponseApplicationJson_OcsSerializer(); Serializer _$roomGetRoomsResponseApplicationJsonSerializer = @@ -3334,8 +3433,6 @@ Serializer _$roomCreateRoomResponseAp _$RoomCreateRoomResponseApplicationJson_OcsSerializer(); Serializer _$roomCreateRoomResponseApplicationJsonSerializer = _$RoomCreateRoomResponseApplicationJsonSerializer(); -Serializer _$roomGetListedRoomsRequestApplicationJsonSerializer = - _$RoomGetListedRoomsRequestApplicationJsonSerializer(); Serializer _$roomGetListedRoomsResponseApplicationJsonOcsSerializer = _$RoomGetListedRoomsResponseApplicationJson_OcsSerializer(); Serializer _$roomGetListedRoomsResponseApplicationJsonSerializer = @@ -3396,8 +3493,6 @@ Serializer _$roomSetPermissionsRe _$RoomSetPermissionsResponseApplicationJson_OcsSerializer(); Serializer _$roomSetPermissionsResponseApplicationJsonSerializer = _$RoomSetPermissionsResponseApplicationJsonSerializer(); -Serializer _$roomGetParticipantsRequestApplicationJsonSerializer = - _$RoomGetParticipantsRequestApplicationJsonSerializer(); Serializer _$participantSerializer = _$ParticipantSerializer(); Serializer _$roomGetParticipantsResponseApplicationJsonOcsSerializer = _$RoomGetParticipantsResponseApplicationJson_OcsSerializer(); @@ -3416,9 +3511,6 @@ Serializer Serializer _$roomAddParticipantToRoomResponseApplicationJsonSerializer = _$RoomAddParticipantToRoomResponseApplicationJsonSerializer(); -Serializer - _$roomGetBreakoutRoomParticipantsRequestApplicationJsonSerializer = - _$RoomGetBreakoutRoomParticipantsRequestApplicationJsonSerializer(); Serializer _$roomGetBreakoutRoomParticipantsResponseApplicationJsonOcsSerializer = _$RoomGetBreakoutRoomParticipantsResponseApplicationJson_OcsSerializer(); @@ -3432,9 +3524,6 @@ Serializer _$RoomRemoveSelfFromRoomResponseApplicationJson_OcsSerializer(); Serializer _$roomRemoveSelfFromRoomResponseApplicationJsonSerializer = _$RoomRemoveSelfFromRoomResponseApplicationJsonSerializer(); -Serializer - _$roomRemoveAttendeeFromRoomRequestApplicationJsonSerializer = - _$RoomRemoveAttendeeFromRoomRequestApplicationJsonSerializer(); Serializer _$roomRemoveAttendeeFromRoomResponseApplicationJsonOcsSerializer = _$RoomRemoveAttendeeFromRoomResponseApplicationJson_OcsSerializer(); @@ -3489,8 +3578,6 @@ Serializer _$roomPromoteModerat _$RoomPromoteModeratorResponseApplicationJson_OcsSerializer(); Serializer _$roomPromoteModeratorResponseApplicationJsonSerializer = _$RoomPromoteModeratorResponseApplicationJsonSerializer(); -Serializer _$roomDemoteModeratorRequestApplicationJsonSerializer = - _$RoomDemoteModeratorRequestApplicationJsonSerializer(); Serializer _$roomDemoteModeratorResponseApplicationJsonOcsSerializer = _$RoomDemoteModeratorResponseApplicationJson_OcsSerializer(); Serializer _$roomDemoteModeratorResponseApplicationJsonSerializer = @@ -3601,12 +3688,6 @@ Serializer _$RoomCreateGuestByDialInResponseApplicationJson_OcsSerializer(); Serializer _$roomCreateGuestByDialInResponseApplicationJsonSerializer = _$RoomCreateGuestByDialInResponseApplicationJsonSerializer(); -Serializer - _$roomRejectedDialOutRequestRequestApplicationJsonOptionsSerializer = - _$RoomRejectedDialOutRequestRequestApplicationJson_OptionsSerializer(); -Serializer - _$roomRejectedDialOutRequestRequestApplicationJsonSerializer = - _$RoomRejectedDialOutRequestRequestApplicationJsonSerializer(); Serializer _$roomRejectedDialOutRequestResponseApplicationJsonOcsSerializer = _$RoomRejectedDialOutRequestResponseApplicationJson_OcsSerializer(); @@ -3625,9 +3706,6 @@ Serializer _$botAdminListBotsRespon _$BotAdminListBotsResponseApplicationJson_OcsSerializer(); Serializer _$botAdminListBotsResponseApplicationJsonSerializer = _$BotAdminListBotsResponseApplicationJsonSerializer(); -Serializer - _$certificateGetCertificateExpirationRequestApplicationJsonSerializer = - _$CertificateGetCertificateExpirationRequestApplicationJsonSerializer(); Serializer _$certificateGetCertificateExpirationResponseApplicationJsonOcsDataSerializer = _$CertificateGetCertificateExpirationResponseApplicationJson_Ocs_DataSerializer(); @@ -3687,45 +3765,6 @@ Serializer _$tempAvatarDeleteAvat Serializer _$botWithDetailsAndSecretSerializer = _$BotWithDetailsAndSecretSerializer(); Serializer _$publicCapabilities0Serializer = _$PublicCapabilities0Serializer(); -class _$AvatarGetAvatarRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [AvatarGetAvatarRequestApplicationJson, _$AvatarGetAvatarRequestApplicationJson]; - @override - final String wireName = 'AvatarGetAvatarRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, AvatarGetAvatarRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'darkTheme', - serializers.serialize(object.darkTheme, specifiedType: const FullType(bool)), - ]; - - return result; - } - - @override - AvatarGetAvatarRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = AvatarGetAvatarRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'darkTheme': - result.darkTheme = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; - break; - } - } - - return result.build(); - } -} - class _$OCSMetaSerializer implements StructuredSerializer { @override final Iterable types = const [OCSMeta, _$OCSMeta]; @@ -4958,187 +4997,6 @@ class _$AvatarEmojiAvatarResponseApplicationJsonSerializer } } -class _$AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJson, - _$AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJson - ]; - @override - final String wireName = 'AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'cloudId', - serializers.serialize(object.cloudId, specifiedType: const FullType(String)), - 'darkTheme', - serializers.serialize(object.darkTheme, specifiedType: const FullType(bool)), - ]; - - return result; - } - - @override - AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJson deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'cloudId': - result.cloudId = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'darkTheme': - result.darkTheme = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; - break; - } - } - - return result.build(); - } -} - -class _$AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJson, - _$AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJson - ]; - @override - final String wireName = 'AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJson'; - - @override - Iterable serialize( - Serializers serializers, AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'cloudId', - serializers.serialize(object.cloudId, specifiedType: const FullType(String)), - ]; - - return result; - } - - @override - AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJson deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'cloudId': - result.cloudId = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - } - } - - return result.build(); - } -} - -class _$AvatarGetUserProxyAvatarRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - AvatarGetUserProxyAvatarRequestApplicationJson, - _$AvatarGetUserProxyAvatarRequestApplicationJson - ]; - @override - final String wireName = 'AvatarGetUserProxyAvatarRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, AvatarGetUserProxyAvatarRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'cloudId', - serializers.serialize(object.cloudId, specifiedType: const FullType(String)), - 'darkTheme', - serializers.serialize(object.darkTheme, specifiedType: const FullType(bool)), - ]; - - return result; - } - - @override - AvatarGetUserProxyAvatarRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = AvatarGetUserProxyAvatarRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'cloudId': - result.cloudId = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'darkTheme': - result.darkTheme = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; - break; - } - } - - return result.build(); - } -} - -class _$AvatarGetUserProxyAvatarDarkRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - AvatarGetUserProxyAvatarDarkRequestApplicationJson, - _$AvatarGetUserProxyAvatarDarkRequestApplicationJson - ]; - @override - final String wireName = 'AvatarGetUserProxyAvatarDarkRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, AvatarGetUserProxyAvatarDarkRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'cloudId', - serializers.serialize(object.cloudId, specifiedType: const FullType(String)), - ]; - - return result; - } - - @override - AvatarGetUserProxyAvatarDarkRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = AvatarGetUserProxyAvatarDarkRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'cloudId': - result.cloudId = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - } - } - - return result.build(); - } -} - class _$BotSerializer implements StructuredSerializer { @override final Iterable types = const [Bot, _$Bot]; @@ -5729,48 +5587,6 @@ class _$BotReactResponseApplicationJsonSerializer implements StructuredSerialize } } -class _$BotDeleteReactionRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - BotDeleteReactionRequestApplicationJson, - _$BotDeleteReactionRequestApplicationJson - ]; - @override - final String wireName = 'BotDeleteReactionRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, BotDeleteReactionRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'reaction', - serializers.serialize(object.reaction, specifiedType: const FullType(String)), - ]; - - return result; - } - - @override - BotDeleteReactionRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = BotDeleteReactionRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'reaction': - result.reaction = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - } - } - - return result.build(); - } -} - class _$BotDeleteReactionResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -7339,45 +7155,6 @@ class _$CallJoinCallResponseApplicationJsonSerializer } } -class _$CallLeaveCallRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [CallLeaveCallRequestApplicationJson, _$CallLeaveCallRequestApplicationJson]; - @override - final String wireName = 'CallLeaveCallRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, CallLeaveCallRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'all', - serializers.serialize(object.all, specifiedType: const FullType(bool)), - ]; - - return result; - } - - @override - CallLeaveCallRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = CallLeaveCallRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'all': - result.all = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; - break; - } - } - - return result.build(); - } -} - class _$CallLeaveCallResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -7701,103 +7478,6 @@ class _$CallSipDialOutResponseApplicationJsonSerializer } } -class _$ChatReceiveMessagesRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - ChatReceiveMessagesRequestApplicationJson, - _$ChatReceiveMessagesRequestApplicationJson - ]; - @override - final String wireName = 'ChatReceiveMessagesRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, ChatReceiveMessagesRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'lookIntoFuture', - serializers.serialize(object.lookIntoFuture, - specifiedType: const FullType(ChatReceiveMessagesRequestApplicationJson_LookIntoFuture)), - 'limit', - serializers.serialize(object.limit, specifiedType: const FullType(int)), - 'lastKnownMessageId', - serializers.serialize(object.lastKnownMessageId, specifiedType: const FullType(int)), - 'lastCommonReadId', - serializers.serialize(object.lastCommonReadId, specifiedType: const FullType(int)), - 'timeout', - serializers.serialize(object.timeout, specifiedType: const FullType(int)), - 'setReadMarker', - serializers.serialize(object.setReadMarker, - specifiedType: const FullType(ChatReceiveMessagesRequestApplicationJson_SetReadMarker)), - 'includeLastKnown', - serializers.serialize(object.includeLastKnown, - specifiedType: const FullType(ChatReceiveMessagesRequestApplicationJson_IncludeLastKnown)), - 'noStatusUpdate', - serializers.serialize(object.noStatusUpdate, - specifiedType: const FullType(ChatReceiveMessagesRequestApplicationJson_NoStatusUpdate)), - 'markNotificationsAsRead', - serializers.serialize(object.markNotificationsAsRead, - specifiedType: const FullType(ChatReceiveMessagesRequestApplicationJson_MarkNotificationsAsRead)), - ]; - - return result; - } - - @override - ChatReceiveMessagesRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = ChatReceiveMessagesRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'lookIntoFuture': - result.lookIntoFuture = serializers.deserialize(value, - specifiedType: const FullType(ChatReceiveMessagesRequestApplicationJson_LookIntoFuture))! - as ChatReceiveMessagesRequestApplicationJson_LookIntoFuture; - break; - case 'limit': - result.limit = serializers.deserialize(value, specifiedType: const FullType(int))! as int; - break; - case 'lastKnownMessageId': - result.lastKnownMessageId = serializers.deserialize(value, specifiedType: const FullType(int))! as int; - break; - case 'lastCommonReadId': - result.lastCommonReadId = serializers.deserialize(value, specifiedType: const FullType(int))! as int; - break; - case 'timeout': - result.timeout = serializers.deserialize(value, specifiedType: const FullType(int))! as int; - break; - case 'setReadMarker': - result.setReadMarker = serializers.deserialize(value, - specifiedType: const FullType(ChatReceiveMessagesRequestApplicationJson_SetReadMarker))! - as ChatReceiveMessagesRequestApplicationJson_SetReadMarker; - break; - case 'includeLastKnown': - result.includeLastKnown = serializers.deserialize(value, - specifiedType: const FullType(ChatReceiveMessagesRequestApplicationJson_IncludeLastKnown))! - as ChatReceiveMessagesRequestApplicationJson_IncludeLastKnown; - break; - case 'noStatusUpdate': - result.noStatusUpdate = serializers.deserialize(value, - specifiedType: const FullType(ChatReceiveMessagesRequestApplicationJson_NoStatusUpdate))! - as ChatReceiveMessagesRequestApplicationJson_NoStatusUpdate; - break; - case 'markNotificationsAsRead': - result.markNotificationsAsRead = serializers.deserialize(value, - specifiedType: const FullType(ChatReceiveMessagesRequestApplicationJson_MarkNotificationsAsRead))! - as ChatReceiveMessagesRequestApplicationJson_MarkNotificationsAsRead; - break; - } - } - - return result.build(); - } -} - class _$ChatMessageWithParentSerializer implements StructuredSerializer { @override final Iterable types = const [ChatMessageWithParent, _$ChatMessageWithParent]; @@ -8758,48 +8438,6 @@ class _$ChatChatDeleteMessageHeadersSerializer implements StructuredSerializer { - @override - final Iterable types = const [ - ChatGetMessageContextRequestApplicationJson, - _$ChatGetMessageContextRequestApplicationJson - ]; - @override - final String wireName = 'ChatGetMessageContextRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, ChatGetMessageContextRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'limit', - serializers.serialize(object.limit, specifiedType: const FullType(int)), - ]; - - return result; - } - - @override - ChatGetMessageContextRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = ChatGetMessageContextRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'limit': - result.limit = serializers.deserialize(value, specifiedType: const FullType(int))! as int; - break; - } - } - - return result.build(); - } -} - class _$ChatGetMessageContextResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -9658,55 +9296,6 @@ class _$ChatChatMarkUnreadHeadersSerializer implements StructuredSerializer { - @override - final Iterable types = const [ChatMentionsRequestApplicationJson, _$ChatMentionsRequestApplicationJson]; - @override - final String wireName = 'ChatMentionsRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, ChatMentionsRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'search', - serializers.serialize(object.search, specifiedType: const FullType(String)), - 'limit', - serializers.serialize(object.limit, specifiedType: const FullType(int)), - 'includeStatus', - serializers.serialize(object.includeStatus, specifiedType: const FullType(bool)), - ]; - - return result; - } - - @override - ChatMentionsRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = ChatMentionsRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'search': - result.search = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'limit': - result.limit = serializers.deserialize(value, specifiedType: const FullType(int))! as int; - break; - case 'includeStatus': - result.includeStatus = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; - break; - } - } - - return result.build(); - } -} - class _$ChatMentionSuggestionSerializer implements StructuredSerializer { @override final Iterable types = const [ChatMentionSuggestion, _$ChatMentionSuggestion]; @@ -9889,58 +9478,6 @@ class _$ChatMentionsResponseApplicationJsonSerializer } } -class _$ChatGetObjectsSharedInRoomRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - ChatGetObjectsSharedInRoomRequestApplicationJson, - _$ChatGetObjectsSharedInRoomRequestApplicationJson - ]; - @override - final String wireName = 'ChatGetObjectsSharedInRoomRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, ChatGetObjectsSharedInRoomRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'objectType', - serializers.serialize(object.objectType, specifiedType: const FullType(String)), - 'lastKnownMessageId', - serializers.serialize(object.lastKnownMessageId, specifiedType: const FullType(int)), - 'limit', - serializers.serialize(object.limit, specifiedType: const FullType(int)), - ]; - - return result; - } - - @override - ChatGetObjectsSharedInRoomRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = ChatGetObjectsSharedInRoomRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'objectType': - result.objectType = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'lastKnownMessageId': - result.lastKnownMessageId = serializers.deserialize(value, specifiedType: const FullType(int))! as int; - break; - case 'limit': - result.limit = serializers.deserialize(value, specifiedType: const FullType(int))! as int; - break; - } - } - - return result.build(); - } -} - class _$ChatGetObjectsSharedInRoomResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -10277,49 +9814,6 @@ class _$ChatChatShareObjectToChatHeadersSerializer implements StructuredSerializ } } -class _$ChatGetObjectsSharedInRoomOverviewRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - ChatGetObjectsSharedInRoomOverviewRequestApplicationJson, - _$ChatGetObjectsSharedInRoomOverviewRequestApplicationJson - ]; - @override - final String wireName = 'ChatGetObjectsSharedInRoomOverviewRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, ChatGetObjectsSharedInRoomOverviewRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'limit', - serializers.serialize(object.limit, specifiedType: const FullType(int)), - ]; - - return result; - } - - @override - ChatGetObjectsSharedInRoomOverviewRequestApplicationJson deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = ChatGetObjectsSharedInRoomOverviewRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'limit': - result.limit = serializers.deserialize(value, specifiedType: const FullType(int))! as int; - break; - } - } - - return result.build(); - } -} - class _$ChatGetObjectsSharedInRoomOverviewResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -10423,48 +9917,6 @@ class _$ChatGetObjectsSharedInRoomOverviewResponseApplicationJsonSerializer } } -class _$SignalingGetSettingsRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - SignalingGetSettingsRequestApplicationJson, - _$SignalingGetSettingsRequestApplicationJson - ]; - @override - final String wireName = 'SignalingGetSettingsRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, SignalingGetSettingsRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'token', - serializers.serialize(object.token, specifiedType: const FullType(String)), - ]; - - return result; - } - - @override - SignalingGetSettingsRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = SignalingGetSettingsRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'token': - result.token = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - } - } - - return result.build(); - } -} - class _$SignalingSettings_HelloAuthParams_10Serializer implements StructuredSerializer { @override @@ -13806,51 +13258,6 @@ class _$PollClosePollResponseApplicationJsonSerializer } } -class _$ReactionGetReactionsRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - ReactionGetReactionsRequestApplicationJson, - _$ReactionGetReactionsRequestApplicationJson - ]; - @override - final String wireName = 'ReactionGetReactionsRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, ReactionGetReactionsRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = []; - Object? value; - value = object.reaction; - if (value != null) { - result - ..add('reaction') - ..add(serializers.serialize(value, specifiedType: const FullType(String))); - } - return result; - } - - @override - ReactionGetReactionsRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = ReactionGetReactionsRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'reaction': - result.reaction = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; - break; - } - } - - return result.build(); - } -} - class _$ReactionSerializer implements StructuredSerializer { @override final Iterable types = const [Reaction, _$Reaction]; @@ -14138,45 +13545,6 @@ class _$ReactionReactResponseApplicationJsonSerializer } } -class _$ReactionDeleteRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ReactionDeleteRequestApplicationJson, _$ReactionDeleteRequestApplicationJson]; - @override - final String wireName = 'ReactionDeleteRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, ReactionDeleteRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'reaction', - serializers.serialize(object.reaction, specifiedType: const FullType(String)), - ]; - - return result; - } - - @override - ReactionDeleteRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = ReactionDeleteRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'reaction': - result.reaction = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - } - } - - return result.build(); - } -} - class _$ReactionDeleteResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -14488,48 +13856,6 @@ class _$RecordingStopResponseApplicationJsonSerializer } } -class _$RecordingNotificationDismissRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - RecordingNotificationDismissRequestApplicationJson, - _$RecordingNotificationDismissRequestApplicationJson - ]; - @override - final String wireName = 'RecordingNotificationDismissRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, RecordingNotificationDismissRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'timestamp', - serializers.serialize(object.timestamp, specifiedType: const FullType(int)), - ]; - - return result; - } - - @override - RecordingNotificationDismissRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = RecordingNotificationDismissRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'timestamp': - result.timestamp = serializers.deserialize(value, specifiedType: const FullType(int))! as int; - break; - } - } - - return result.build(); - } -} - class _$RecordingNotificationDismissResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -14979,58 +14305,6 @@ class _$RecordingStoreResponseApplicationJsonSerializer } } -class _$RoomGetRoomsRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [RoomGetRoomsRequestApplicationJson, _$RoomGetRoomsRequestApplicationJson]; - @override - final String wireName = 'RoomGetRoomsRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, RoomGetRoomsRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'noStatusUpdate', - serializers.serialize(object.noStatusUpdate, - specifiedType: const FullType(RoomGetRoomsRequestApplicationJson_NoStatusUpdate)), - 'includeStatus', - serializers.serialize(object.includeStatus, specifiedType: const FullType(bool)), - 'modifiedSince', - serializers.serialize(object.modifiedSince, specifiedType: const FullType(int)), - ]; - - return result; - } - - @override - RoomGetRoomsRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = RoomGetRoomsRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'noStatusUpdate': - result.noStatusUpdate = serializers.deserialize(value, - specifiedType: const FullType(RoomGetRoomsRequestApplicationJson_NoStatusUpdate))! - as RoomGetRoomsRequestApplicationJson_NoStatusUpdate; - break; - case 'includeStatus': - result.includeStatus = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; - break; - case 'modifiedSince': - result.modifiedSince = serializers.deserialize(value, specifiedType: const FullType(int))! as int; - break; - } - } - - return result.build(); - } -} - class _$RoomGetRoomsResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -15333,48 +14607,6 @@ class _$RoomCreateRoomResponseApplicationJsonSerializer } } -class _$RoomGetListedRoomsRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - RoomGetListedRoomsRequestApplicationJson, - _$RoomGetListedRoomsRequestApplicationJson - ]; - @override - final String wireName = 'RoomGetListedRoomsRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, RoomGetListedRoomsRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'searchTerm', - serializers.serialize(object.searchTerm, specifiedType: const FullType(String)), - ]; - - return result; - } - - @override - RoomGetListedRoomsRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = RoomGetListedRoomsRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'searchTerm': - result.searchTerm = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - } - } - - return result.build(); - } -} - class _$RoomGetListedRoomsResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -16657,48 +15889,6 @@ class _$RoomSetPermissionsResponseApplicationJsonSerializer } } -class _$RoomGetParticipantsRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - RoomGetParticipantsRequestApplicationJson, - _$RoomGetParticipantsRequestApplicationJson - ]; - @override - final String wireName = 'RoomGetParticipantsRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, RoomGetParticipantsRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'includeStatus', - serializers.serialize(object.includeStatus, specifiedType: const FullType(bool)), - ]; - - return result; - } - - @override - RoomGetParticipantsRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = RoomGetParticipantsRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'includeStatus': - result.includeStatus = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; - break; - } - } - - return result.build(); - } -} - class _$ParticipantSerializer implements StructuredSerializer { @override final Iterable types = const [Participant, _$Participant]; @@ -17169,49 +16359,6 @@ class _$RoomAddParticipantToRoomResponseApplicationJsonSerializer } } -class _$RoomGetBreakoutRoomParticipantsRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - RoomGetBreakoutRoomParticipantsRequestApplicationJson, - _$RoomGetBreakoutRoomParticipantsRequestApplicationJson - ]; - @override - final String wireName = 'RoomGetBreakoutRoomParticipantsRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, RoomGetBreakoutRoomParticipantsRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'includeStatus', - serializers.serialize(object.includeStatus, specifiedType: const FullType(bool)), - ]; - - return result; - } - - @override - RoomGetBreakoutRoomParticipantsRequestApplicationJson deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = RoomGetBreakoutRoomParticipantsRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'includeStatus': - result.includeStatus = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; - break; - } - } - - return result.build(); - } -} - class _$RoomGetBreakoutRoomParticipantsResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -17446,48 +16593,6 @@ class _$RoomRemoveSelfFromRoomResponseApplicationJsonSerializer } } -class _$RoomRemoveAttendeeFromRoomRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - RoomRemoveAttendeeFromRoomRequestApplicationJson, - _$RoomRemoveAttendeeFromRoomRequestApplicationJson - ]; - @override - final String wireName = 'RoomRemoveAttendeeFromRoomRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, RoomRemoveAttendeeFromRoomRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'attendeeId', - serializers.serialize(object.attendeeId, specifiedType: const FullType(int)), - ]; - - return result; - } - - @override - RoomRemoveAttendeeFromRoomRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = RoomRemoveAttendeeFromRoomRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'attendeeId': - result.attendeeId = serializers.deserialize(value, specifiedType: const FullType(int))! as int; - break; - } - } - - return result.build(); - } -} - class _$RoomRemoveAttendeeFromRoomResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -18542,48 +17647,6 @@ class _$RoomPromoteModeratorResponseApplicationJsonSerializer } } -class _$RoomDemoteModeratorRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - RoomDemoteModeratorRequestApplicationJson, - _$RoomDemoteModeratorRequestApplicationJson - ]; - @override - final String wireName = 'RoomDemoteModeratorRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, RoomDemoteModeratorRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'attendeeId', - serializers.serialize(object.attendeeId, specifiedType: const FullType(int)), - ]; - - return result; - } - - @override - RoomDemoteModeratorRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = RoomDemoteModeratorRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'attendeeId': - result.attendeeId = serializers.deserialize(value, specifiedType: const FullType(int))! as int; - break; - } - } - - return result.build(); - } -} - class _$RoomDemoteModeratorResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -20958,120 +20021,6 @@ class _$RoomCreateGuestByDialInResponseApplicationJsonSerializer } } -class _$RoomRejectedDialOutRequestRequestApplicationJson_OptionsSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - RoomRejectedDialOutRequestRequestApplicationJson_Options, - _$RoomRejectedDialOutRequestRequestApplicationJson_Options - ]; - @override - final String wireName = 'RoomRejectedDialOutRequestRequestApplicationJson_Options'; - - @override - Iterable serialize(Serializers serializers, RoomRejectedDialOutRequestRequestApplicationJson_Options object, - {FullType specifiedType = FullType.unspecified}) { - final result = []; - Object? value; - value = object.actorId; - if (value != null) { - result - ..add('actorId') - ..add(serializers.serialize(value, specifiedType: const FullType(String))); - } - value = object.actorType; - if (value != null) { - result - ..add('actorType') - ..add(serializers.serialize(value, specifiedType: const FullType(ActorType))); - } - value = object.attendeeId; - if (value != null) { - result - ..add('attendeeId') - ..add(serializers.serialize(value, specifiedType: const FullType(int))); - } - return result; - } - - @override - RoomRejectedDialOutRequestRequestApplicationJson_Options deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = RoomRejectedDialOutRequestRequestApplicationJson_OptionsBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'actorId': - result.actorId = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; - break; - case 'actorType': - result.actorType = serializers.deserialize(value, specifiedType: const FullType(ActorType)) as ActorType?; - break; - case 'attendeeId': - result.attendeeId = serializers.deserialize(value, specifiedType: const FullType(int)) as int?; - break; - } - } - - return result.build(); - } -} - -class _$RoomRejectedDialOutRequestRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - RoomRejectedDialOutRequestRequestApplicationJson, - _$RoomRejectedDialOutRequestRequestApplicationJson - ]; - @override - final String wireName = 'RoomRejectedDialOutRequestRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, RoomRejectedDialOutRequestRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'callId', - serializers.serialize(object.callId, specifiedType: const FullType(String)), - 'options', - serializers.serialize(object.options, - specifiedType: const FullType(RoomRejectedDialOutRequestRequestApplicationJson_Options)), - ]; - - return result; - } - - @override - RoomRejectedDialOutRequestRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = RoomRejectedDialOutRequestRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'callId': - result.callId = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - case 'options': - result.options.replace(serializers.deserialize(value, - specifiedType: const FullType(RoomRejectedDialOutRequestRequestApplicationJson_Options))! - as RoomRejectedDialOutRequestRequestApplicationJson_Options); - break; - } - } - - return result.build(); - } -} - class _$RoomRejectedDialOutRequestResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -21493,49 +20442,6 @@ class _$BotAdminListBotsResponseApplicationJsonSerializer } } -class _$CertificateGetCertificateExpirationRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - CertificateGetCertificateExpirationRequestApplicationJson, - _$CertificateGetCertificateExpirationRequestApplicationJson - ]; - @override - final String wireName = 'CertificateGetCertificateExpirationRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, CertificateGetCertificateExpirationRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'host', - serializers.serialize(object.host, specifiedType: const FullType(String)), - ]; - - return result; - } - - @override - CertificateGetCertificateExpirationRequestApplicationJson deserialize( - Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = CertificateGetCertificateExpirationRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'host': - result.host = serializers.deserialize(value, specifiedType: const FullType(String))! as String; - break; - } - } - - return result.build(); - } -} - class _$CertificateGetCertificateExpirationResponseApplicationJson_Ocs_DataSerializer implements StructuredSerializer { @override @@ -22743,102 +21649,6 @@ class _$PublicCapabilities0Serializer implements StructuredSerializer - (AvatarGetAvatarRequestApplicationJsonBuilder()..update(updates))._build(); - - _$AvatarGetAvatarRequestApplicationJson._({required this.darkTheme}) : super._() { - BuiltValueNullFieldError.checkNotNull(darkTheme, r'AvatarGetAvatarRequestApplicationJson', 'darkTheme'); - } - - @override - AvatarGetAvatarRequestApplicationJson rebuild(void Function(AvatarGetAvatarRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - AvatarGetAvatarRequestApplicationJsonBuilder toBuilder() => - AvatarGetAvatarRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is AvatarGetAvatarRequestApplicationJson && darkTheme == other.darkTheme; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, darkTheme.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'AvatarGetAvatarRequestApplicationJson')..add('darkTheme', darkTheme)) - .toString(); - } -} - -class AvatarGetAvatarRequestApplicationJsonBuilder - implements - Builder, - $AvatarGetAvatarRequestApplicationJsonInterfaceBuilder { - _$AvatarGetAvatarRequestApplicationJson? _$v; - - bool? _darkTheme; - bool? get darkTheme => _$this._darkTheme; - set darkTheme(covariant bool? darkTheme) => _$this._darkTheme = darkTheme; - - AvatarGetAvatarRequestApplicationJsonBuilder() { - AvatarGetAvatarRequestApplicationJson._defaults(this); - } - - AvatarGetAvatarRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _darkTheme = $v.darkTheme; - _$v = null; - } - return this; - } - - @override - void replace(covariant AvatarGetAvatarRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$AvatarGetAvatarRequestApplicationJson; - } - - @override - void update(void Function(AvatarGetAvatarRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - AvatarGetAvatarRequestApplicationJson build() => _build(); - - _$AvatarGetAvatarRequestApplicationJson _build() { - AvatarGetAvatarRequestApplicationJson._validate(this); - final _$result = _$v ?? - _$AvatarGetAvatarRequestApplicationJson._( - darkTheme: BuiltValueNullFieldError.checkNotNull( - darkTheme, r'AvatarGetAvatarRequestApplicationJson', 'darkTheme')); - replace(_$result); - return _$result; - } -} - abstract mixin class $OCSMetaInterfaceBuilder { void replace($OCSMetaInterface other); void update(void Function($OCSMetaInterfaceBuilder) updates); @@ -25865,440 +24675,6 @@ class AvatarEmojiAvatarResponseApplicationJsonBuilder } } -abstract mixin class $AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJsonInterfaceBuilder { - void replace($AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJsonInterface other); - void update(void Function($AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJsonInterfaceBuilder) updates); - String? get cloudId; - set cloudId(String? cloudId); - - bool? get darkTheme; - set darkTheme(bool? darkTheme); -} - -class _$AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJson - extends AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJson { - @override - final String cloudId; - @override - final bool darkTheme; - - factory _$AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJson( - [void Function(AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJsonBuilder)? updates]) => - (AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJsonBuilder()..update(updates))._build(); - - _$AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJson._({required this.cloudId, required this.darkTheme}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - cloudId, r'AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJson', 'cloudId'); - BuiltValueNullFieldError.checkNotNull( - darkTheme, r'AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJson', 'darkTheme'); - } - - @override - AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJson rebuild( - void Function(AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJsonBuilder toBuilder() => - AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJson && - cloudId == other.cloudId && - darkTheme == other.darkTheme; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, cloudId.hashCode); - _$hash = $jc(_$hash, darkTheme.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJson') - ..add('cloudId', cloudId) - ..add('darkTheme', darkTheme)) - .toString(); - } -} - -class AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJsonBuilder - implements - Builder, - $AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJsonInterfaceBuilder { - _$AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJson? _$v; - - String? _cloudId; - String? get cloudId => _$this._cloudId; - set cloudId(covariant String? cloudId) => _$this._cloudId = cloudId; - - bool? _darkTheme; - bool? get darkTheme => _$this._darkTheme; - set darkTheme(covariant bool? darkTheme) => _$this._darkTheme = darkTheme; - - AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJsonBuilder() { - AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJson._defaults(this); - } - - AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _cloudId = $v.cloudId; - _darkTheme = $v.darkTheme; - _$v = null; - } - return this; - } - - @override - void replace(covariant AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJson; - } - - @override - void update(void Function(AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJson build() => _build(); - - _$AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJson _build() { - AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJson._validate(this); - final _$result = _$v ?? - _$AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJson._( - cloudId: BuiltValueNullFieldError.checkNotNull( - cloudId, r'AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJson', 'cloudId'), - darkTheme: BuiltValueNullFieldError.checkNotNull( - darkTheme, r'AvatarGetUserProxyAvatarWithoutRoomRequestApplicationJson', 'darkTheme')); - replace(_$result); - return _$result; - } -} - -abstract mixin class $AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJsonInterfaceBuilder { - void replace($AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJsonInterface other); - void update(void Function($AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJsonInterfaceBuilder) updates); - String? get cloudId; - set cloudId(String? cloudId); -} - -class _$AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJson - extends AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJson { - @override - final String cloudId; - - factory _$AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJson( - [void Function(AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJsonBuilder)? updates]) => - (AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJsonBuilder()..update(updates))._build(); - - _$AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJson._({required this.cloudId}) : super._() { - BuiltValueNullFieldError.checkNotNull( - cloudId, r'AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJson', 'cloudId'); - } - - @override - AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJson rebuild( - void Function(AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJsonBuilder toBuilder() => - AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJson && cloudId == other.cloudId; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, cloudId.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJson') - ..add('cloudId', cloudId)) - .toString(); - } -} - -class AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJsonBuilder - implements - Builder, - $AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJsonInterfaceBuilder { - _$AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJson? _$v; - - String? _cloudId; - String? get cloudId => _$this._cloudId; - set cloudId(covariant String? cloudId) => _$this._cloudId = cloudId; - - AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJsonBuilder() { - AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJson._defaults(this); - } - - AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _cloudId = $v.cloudId; - _$v = null; - } - return this; - } - - @override - void replace(covariant AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJson; - } - - @override - void update(void Function(AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJson build() => _build(); - - _$AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJson _build() { - AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJson._validate(this); - final _$result = _$v ?? - _$AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJson._( - cloudId: BuiltValueNullFieldError.checkNotNull( - cloudId, r'AvatarGetUserProxyAvatarDarkWithoutRoomRequestApplicationJson', 'cloudId')); - replace(_$result); - return _$result; - } -} - -abstract mixin class $AvatarGetUserProxyAvatarRequestApplicationJsonInterfaceBuilder { - void replace($AvatarGetUserProxyAvatarRequestApplicationJsonInterface other); - void update(void Function($AvatarGetUserProxyAvatarRequestApplicationJsonInterfaceBuilder) updates); - String? get cloudId; - set cloudId(String? cloudId); - - bool? get darkTheme; - set darkTheme(bool? darkTheme); -} - -class _$AvatarGetUserProxyAvatarRequestApplicationJson extends AvatarGetUserProxyAvatarRequestApplicationJson { - @override - final String cloudId; - @override - final bool darkTheme; - - factory _$AvatarGetUserProxyAvatarRequestApplicationJson( - [void Function(AvatarGetUserProxyAvatarRequestApplicationJsonBuilder)? updates]) => - (AvatarGetUserProxyAvatarRequestApplicationJsonBuilder()..update(updates))._build(); - - _$AvatarGetUserProxyAvatarRequestApplicationJson._({required this.cloudId, required this.darkTheme}) : super._() { - BuiltValueNullFieldError.checkNotNull(cloudId, r'AvatarGetUserProxyAvatarRequestApplicationJson', 'cloudId'); - BuiltValueNullFieldError.checkNotNull(darkTheme, r'AvatarGetUserProxyAvatarRequestApplicationJson', 'darkTheme'); - } - - @override - AvatarGetUserProxyAvatarRequestApplicationJson rebuild( - void Function(AvatarGetUserProxyAvatarRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - AvatarGetUserProxyAvatarRequestApplicationJsonBuilder toBuilder() => - AvatarGetUserProxyAvatarRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is AvatarGetUserProxyAvatarRequestApplicationJson && - cloudId == other.cloudId && - darkTheme == other.darkTheme; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, cloudId.hashCode); - _$hash = $jc(_$hash, darkTheme.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'AvatarGetUserProxyAvatarRequestApplicationJson') - ..add('cloudId', cloudId) - ..add('darkTheme', darkTheme)) - .toString(); - } -} - -class AvatarGetUserProxyAvatarRequestApplicationJsonBuilder - implements - Builder, - $AvatarGetUserProxyAvatarRequestApplicationJsonInterfaceBuilder { - _$AvatarGetUserProxyAvatarRequestApplicationJson? _$v; - - String? _cloudId; - String? get cloudId => _$this._cloudId; - set cloudId(covariant String? cloudId) => _$this._cloudId = cloudId; - - bool? _darkTheme; - bool? get darkTheme => _$this._darkTheme; - set darkTheme(covariant bool? darkTheme) => _$this._darkTheme = darkTheme; - - AvatarGetUserProxyAvatarRequestApplicationJsonBuilder() { - AvatarGetUserProxyAvatarRequestApplicationJson._defaults(this); - } - - AvatarGetUserProxyAvatarRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _cloudId = $v.cloudId; - _darkTheme = $v.darkTheme; - _$v = null; - } - return this; - } - - @override - void replace(covariant AvatarGetUserProxyAvatarRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$AvatarGetUserProxyAvatarRequestApplicationJson; - } - - @override - void update(void Function(AvatarGetUserProxyAvatarRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - AvatarGetUserProxyAvatarRequestApplicationJson build() => _build(); - - _$AvatarGetUserProxyAvatarRequestApplicationJson _build() { - AvatarGetUserProxyAvatarRequestApplicationJson._validate(this); - final _$result = _$v ?? - _$AvatarGetUserProxyAvatarRequestApplicationJson._( - cloudId: BuiltValueNullFieldError.checkNotNull( - cloudId, r'AvatarGetUserProxyAvatarRequestApplicationJson', 'cloudId'), - darkTheme: BuiltValueNullFieldError.checkNotNull( - darkTheme, r'AvatarGetUserProxyAvatarRequestApplicationJson', 'darkTheme')); - replace(_$result); - return _$result; - } -} - -abstract mixin class $AvatarGetUserProxyAvatarDarkRequestApplicationJsonInterfaceBuilder { - void replace($AvatarGetUserProxyAvatarDarkRequestApplicationJsonInterface other); - void update(void Function($AvatarGetUserProxyAvatarDarkRequestApplicationJsonInterfaceBuilder) updates); - String? get cloudId; - set cloudId(String? cloudId); -} - -class _$AvatarGetUserProxyAvatarDarkRequestApplicationJson extends AvatarGetUserProxyAvatarDarkRequestApplicationJson { - @override - final String cloudId; - - factory _$AvatarGetUserProxyAvatarDarkRequestApplicationJson( - [void Function(AvatarGetUserProxyAvatarDarkRequestApplicationJsonBuilder)? updates]) => - (AvatarGetUserProxyAvatarDarkRequestApplicationJsonBuilder()..update(updates))._build(); - - _$AvatarGetUserProxyAvatarDarkRequestApplicationJson._({required this.cloudId}) : super._() { - BuiltValueNullFieldError.checkNotNull(cloudId, r'AvatarGetUserProxyAvatarDarkRequestApplicationJson', 'cloudId'); - } - - @override - AvatarGetUserProxyAvatarDarkRequestApplicationJson rebuild( - void Function(AvatarGetUserProxyAvatarDarkRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - AvatarGetUserProxyAvatarDarkRequestApplicationJsonBuilder toBuilder() => - AvatarGetUserProxyAvatarDarkRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is AvatarGetUserProxyAvatarDarkRequestApplicationJson && cloudId == other.cloudId; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, cloudId.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'AvatarGetUserProxyAvatarDarkRequestApplicationJson')..add('cloudId', cloudId)) - .toString(); - } -} - -class AvatarGetUserProxyAvatarDarkRequestApplicationJsonBuilder - implements - Builder, - $AvatarGetUserProxyAvatarDarkRequestApplicationJsonInterfaceBuilder { - _$AvatarGetUserProxyAvatarDarkRequestApplicationJson? _$v; - - String? _cloudId; - String? get cloudId => _$this._cloudId; - set cloudId(covariant String? cloudId) => _$this._cloudId = cloudId; - - AvatarGetUserProxyAvatarDarkRequestApplicationJsonBuilder() { - AvatarGetUserProxyAvatarDarkRequestApplicationJson._defaults(this); - } - - AvatarGetUserProxyAvatarDarkRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _cloudId = $v.cloudId; - _$v = null; - } - return this; - } - - @override - void replace(covariant AvatarGetUserProxyAvatarDarkRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$AvatarGetUserProxyAvatarDarkRequestApplicationJson; - } - - @override - void update(void Function(AvatarGetUserProxyAvatarDarkRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - AvatarGetUserProxyAvatarDarkRequestApplicationJson build() => _build(); - - _$AvatarGetUserProxyAvatarDarkRequestApplicationJson _build() { - AvatarGetUserProxyAvatarDarkRequestApplicationJson._validate(this); - final _$result = _$v ?? - _$AvatarGetUserProxyAvatarDarkRequestApplicationJson._( - cloudId: BuiltValueNullFieldError.checkNotNull( - cloudId, r'AvatarGetUserProxyAvatarDarkRequestApplicationJson', 'cloudId')); - replace(_$result); - return _$result; - } -} - abstract mixin class $BotInterfaceBuilder { void replace($BotInterface other); void update(void Function($BotInterfaceBuilder) updates); @@ -27795,103 +26171,6 @@ class BotReactResponseApplicationJsonBuilder } } -abstract mixin class $BotDeleteReactionRequestApplicationJsonInterfaceBuilder { - void replace($BotDeleteReactionRequestApplicationJsonInterface other); - void update(void Function($BotDeleteReactionRequestApplicationJsonInterfaceBuilder) updates); - String? get reaction; - set reaction(String? reaction); -} - -class _$BotDeleteReactionRequestApplicationJson extends BotDeleteReactionRequestApplicationJson { - @override - final String reaction; - - factory _$BotDeleteReactionRequestApplicationJson( - [void Function(BotDeleteReactionRequestApplicationJsonBuilder)? updates]) => - (BotDeleteReactionRequestApplicationJsonBuilder()..update(updates))._build(); - - _$BotDeleteReactionRequestApplicationJson._({required this.reaction}) : super._() { - BuiltValueNullFieldError.checkNotNull(reaction, r'BotDeleteReactionRequestApplicationJson', 'reaction'); - } - - @override - BotDeleteReactionRequestApplicationJson rebuild( - void Function(BotDeleteReactionRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - BotDeleteReactionRequestApplicationJsonBuilder toBuilder() => - BotDeleteReactionRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is BotDeleteReactionRequestApplicationJson && reaction == other.reaction; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, reaction.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'BotDeleteReactionRequestApplicationJson')..add('reaction', reaction)) - .toString(); - } -} - -class BotDeleteReactionRequestApplicationJsonBuilder - implements - Builder, - $BotDeleteReactionRequestApplicationJsonInterfaceBuilder { - _$BotDeleteReactionRequestApplicationJson? _$v; - - String? _reaction; - String? get reaction => _$this._reaction; - set reaction(covariant String? reaction) => _$this._reaction = reaction; - - BotDeleteReactionRequestApplicationJsonBuilder() { - BotDeleteReactionRequestApplicationJson._defaults(this); - } - - BotDeleteReactionRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _reaction = $v.reaction; - _$v = null; - } - return this; - } - - @override - void replace(covariant BotDeleteReactionRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$BotDeleteReactionRequestApplicationJson; - } - - @override - void update(void Function(BotDeleteReactionRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - BotDeleteReactionRequestApplicationJson build() => _build(); - - _$BotDeleteReactionRequestApplicationJson _build() { - BotDeleteReactionRequestApplicationJson._validate(this); - final _$result = _$v ?? - _$BotDeleteReactionRequestApplicationJson._( - reaction: BuiltValueNullFieldError.checkNotNull( - reaction, r'BotDeleteReactionRequestApplicationJson', 'reaction')); - replace(_$result); - return _$result; - } -} - abstract mixin class $BotDeleteReactionResponseApplicationJson_OcsInterfaceBuilder { void replace($BotDeleteReactionResponseApplicationJson_OcsInterface other); void update(void Function($BotDeleteReactionResponseApplicationJson_OcsInterfaceBuilder) updates); @@ -31801,98 +30080,6 @@ class CallJoinCallResponseApplicationJsonBuilder } } -abstract mixin class $CallLeaveCallRequestApplicationJsonInterfaceBuilder { - void replace($CallLeaveCallRequestApplicationJsonInterface other); - void update(void Function($CallLeaveCallRequestApplicationJsonInterfaceBuilder) updates); - bool? get all; - set all(bool? all); -} - -class _$CallLeaveCallRequestApplicationJson extends CallLeaveCallRequestApplicationJson { - @override - final bool all; - - factory _$CallLeaveCallRequestApplicationJson([void Function(CallLeaveCallRequestApplicationJsonBuilder)? updates]) => - (CallLeaveCallRequestApplicationJsonBuilder()..update(updates))._build(); - - _$CallLeaveCallRequestApplicationJson._({required this.all}) : super._() { - BuiltValueNullFieldError.checkNotNull(all, r'CallLeaveCallRequestApplicationJson', 'all'); - } - - @override - CallLeaveCallRequestApplicationJson rebuild(void Function(CallLeaveCallRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - CallLeaveCallRequestApplicationJsonBuilder toBuilder() => CallLeaveCallRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is CallLeaveCallRequestApplicationJson && all == other.all; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, all.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'CallLeaveCallRequestApplicationJson')..add('all', all)).toString(); - } -} - -class CallLeaveCallRequestApplicationJsonBuilder - implements - Builder, - $CallLeaveCallRequestApplicationJsonInterfaceBuilder { - _$CallLeaveCallRequestApplicationJson? _$v; - - bool? _all; - bool? get all => _$this._all; - set all(covariant bool? all) => _$this._all = all; - - CallLeaveCallRequestApplicationJsonBuilder() { - CallLeaveCallRequestApplicationJson._defaults(this); - } - - CallLeaveCallRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _all = $v.all; - _$v = null; - } - return this; - } - - @override - void replace(covariant CallLeaveCallRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$CallLeaveCallRequestApplicationJson; - } - - @override - void update(void Function(CallLeaveCallRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - CallLeaveCallRequestApplicationJson build() => _build(); - - _$CallLeaveCallRequestApplicationJson _build() { - CallLeaveCallRequestApplicationJson._validate(this); - final _$result = _$v ?? - _$CallLeaveCallRequestApplicationJson._( - all: BuiltValueNullFieldError.checkNotNull(all, r'CallLeaveCallRequestApplicationJson', 'all')); - replace(_$result); - return _$result; - } -} - abstract mixin class $CallLeaveCallResponseApplicationJson_OcsInterfaceBuilder { void replace($CallLeaveCallResponseApplicationJson_OcsInterface other); void update(void Function($CallLeaveCallResponseApplicationJson_OcsInterfaceBuilder) updates); @@ -32684,256 +30871,6 @@ class CallSipDialOutResponseApplicationJsonBuilder } } -abstract mixin class $ChatReceiveMessagesRequestApplicationJsonInterfaceBuilder { - void replace($ChatReceiveMessagesRequestApplicationJsonInterface other); - void update(void Function($ChatReceiveMessagesRequestApplicationJsonInterfaceBuilder) updates); - ChatReceiveMessagesRequestApplicationJson_LookIntoFuture? get lookIntoFuture; - set lookIntoFuture(ChatReceiveMessagesRequestApplicationJson_LookIntoFuture? lookIntoFuture); - - int? get limit; - set limit(int? limit); - - int? get lastKnownMessageId; - set lastKnownMessageId(int? lastKnownMessageId); - - int? get lastCommonReadId; - set lastCommonReadId(int? lastCommonReadId); - - int? get timeout; - set timeout(int? timeout); - - ChatReceiveMessagesRequestApplicationJson_SetReadMarker? get setReadMarker; - set setReadMarker(ChatReceiveMessagesRequestApplicationJson_SetReadMarker? setReadMarker); - - ChatReceiveMessagesRequestApplicationJson_IncludeLastKnown? get includeLastKnown; - set includeLastKnown(ChatReceiveMessagesRequestApplicationJson_IncludeLastKnown? includeLastKnown); - - ChatReceiveMessagesRequestApplicationJson_NoStatusUpdate? get noStatusUpdate; - set noStatusUpdate(ChatReceiveMessagesRequestApplicationJson_NoStatusUpdate? noStatusUpdate); - - ChatReceiveMessagesRequestApplicationJson_MarkNotificationsAsRead? get markNotificationsAsRead; - set markNotificationsAsRead( - ChatReceiveMessagesRequestApplicationJson_MarkNotificationsAsRead? markNotificationsAsRead); -} - -class _$ChatReceiveMessagesRequestApplicationJson extends ChatReceiveMessagesRequestApplicationJson { - @override - final ChatReceiveMessagesRequestApplicationJson_LookIntoFuture lookIntoFuture; - @override - final int limit; - @override - final int lastKnownMessageId; - @override - final int lastCommonReadId; - @override - final int timeout; - @override - final ChatReceiveMessagesRequestApplicationJson_SetReadMarker setReadMarker; - @override - final ChatReceiveMessagesRequestApplicationJson_IncludeLastKnown includeLastKnown; - @override - final ChatReceiveMessagesRequestApplicationJson_NoStatusUpdate noStatusUpdate; - @override - final ChatReceiveMessagesRequestApplicationJson_MarkNotificationsAsRead markNotificationsAsRead; - - factory _$ChatReceiveMessagesRequestApplicationJson( - [void Function(ChatReceiveMessagesRequestApplicationJsonBuilder)? updates]) => - (ChatReceiveMessagesRequestApplicationJsonBuilder()..update(updates))._build(); - - _$ChatReceiveMessagesRequestApplicationJson._( - {required this.lookIntoFuture, - required this.limit, - required this.lastKnownMessageId, - required this.lastCommonReadId, - required this.timeout, - required this.setReadMarker, - required this.includeLastKnown, - required this.noStatusUpdate, - required this.markNotificationsAsRead}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - lookIntoFuture, r'ChatReceiveMessagesRequestApplicationJson', 'lookIntoFuture'); - BuiltValueNullFieldError.checkNotNull(limit, r'ChatReceiveMessagesRequestApplicationJson', 'limit'); - BuiltValueNullFieldError.checkNotNull( - lastKnownMessageId, r'ChatReceiveMessagesRequestApplicationJson', 'lastKnownMessageId'); - BuiltValueNullFieldError.checkNotNull( - lastCommonReadId, r'ChatReceiveMessagesRequestApplicationJson', 'lastCommonReadId'); - BuiltValueNullFieldError.checkNotNull(timeout, r'ChatReceiveMessagesRequestApplicationJson', 'timeout'); - BuiltValueNullFieldError.checkNotNull(setReadMarker, r'ChatReceiveMessagesRequestApplicationJson', 'setReadMarker'); - BuiltValueNullFieldError.checkNotNull( - includeLastKnown, r'ChatReceiveMessagesRequestApplicationJson', 'includeLastKnown'); - BuiltValueNullFieldError.checkNotNull( - noStatusUpdate, r'ChatReceiveMessagesRequestApplicationJson', 'noStatusUpdate'); - BuiltValueNullFieldError.checkNotNull( - markNotificationsAsRead, r'ChatReceiveMessagesRequestApplicationJson', 'markNotificationsAsRead'); - } - - @override - ChatReceiveMessagesRequestApplicationJson rebuild( - void Function(ChatReceiveMessagesRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - ChatReceiveMessagesRequestApplicationJsonBuilder toBuilder() => - ChatReceiveMessagesRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is ChatReceiveMessagesRequestApplicationJson && - lookIntoFuture == other.lookIntoFuture && - limit == other.limit && - lastKnownMessageId == other.lastKnownMessageId && - lastCommonReadId == other.lastCommonReadId && - timeout == other.timeout && - setReadMarker == other.setReadMarker && - includeLastKnown == other.includeLastKnown && - noStatusUpdate == other.noStatusUpdate && - markNotificationsAsRead == other.markNotificationsAsRead; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, lookIntoFuture.hashCode); - _$hash = $jc(_$hash, limit.hashCode); - _$hash = $jc(_$hash, lastKnownMessageId.hashCode); - _$hash = $jc(_$hash, lastCommonReadId.hashCode); - _$hash = $jc(_$hash, timeout.hashCode); - _$hash = $jc(_$hash, setReadMarker.hashCode); - _$hash = $jc(_$hash, includeLastKnown.hashCode); - _$hash = $jc(_$hash, noStatusUpdate.hashCode); - _$hash = $jc(_$hash, markNotificationsAsRead.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'ChatReceiveMessagesRequestApplicationJson') - ..add('lookIntoFuture', lookIntoFuture) - ..add('limit', limit) - ..add('lastKnownMessageId', lastKnownMessageId) - ..add('lastCommonReadId', lastCommonReadId) - ..add('timeout', timeout) - ..add('setReadMarker', setReadMarker) - ..add('includeLastKnown', includeLastKnown) - ..add('noStatusUpdate', noStatusUpdate) - ..add('markNotificationsAsRead', markNotificationsAsRead)) - .toString(); - } -} - -class ChatReceiveMessagesRequestApplicationJsonBuilder - implements - Builder, - $ChatReceiveMessagesRequestApplicationJsonInterfaceBuilder { - _$ChatReceiveMessagesRequestApplicationJson? _$v; - - ChatReceiveMessagesRequestApplicationJson_LookIntoFuture? _lookIntoFuture; - ChatReceiveMessagesRequestApplicationJson_LookIntoFuture? get lookIntoFuture => _$this._lookIntoFuture; - set lookIntoFuture(covariant ChatReceiveMessagesRequestApplicationJson_LookIntoFuture? lookIntoFuture) => - _$this._lookIntoFuture = lookIntoFuture; - - int? _limit; - int? get limit => _$this._limit; - set limit(covariant int? limit) => _$this._limit = limit; - - int? _lastKnownMessageId; - int? get lastKnownMessageId => _$this._lastKnownMessageId; - set lastKnownMessageId(covariant int? lastKnownMessageId) => _$this._lastKnownMessageId = lastKnownMessageId; - - int? _lastCommonReadId; - int? get lastCommonReadId => _$this._lastCommonReadId; - set lastCommonReadId(covariant int? lastCommonReadId) => _$this._lastCommonReadId = lastCommonReadId; - - int? _timeout; - int? get timeout => _$this._timeout; - set timeout(covariant int? timeout) => _$this._timeout = timeout; - - ChatReceiveMessagesRequestApplicationJson_SetReadMarker? _setReadMarker; - ChatReceiveMessagesRequestApplicationJson_SetReadMarker? get setReadMarker => _$this._setReadMarker; - set setReadMarker(covariant ChatReceiveMessagesRequestApplicationJson_SetReadMarker? setReadMarker) => - _$this._setReadMarker = setReadMarker; - - ChatReceiveMessagesRequestApplicationJson_IncludeLastKnown? _includeLastKnown; - ChatReceiveMessagesRequestApplicationJson_IncludeLastKnown? get includeLastKnown => _$this._includeLastKnown; - set includeLastKnown(covariant ChatReceiveMessagesRequestApplicationJson_IncludeLastKnown? includeLastKnown) => - _$this._includeLastKnown = includeLastKnown; - - ChatReceiveMessagesRequestApplicationJson_NoStatusUpdate? _noStatusUpdate; - ChatReceiveMessagesRequestApplicationJson_NoStatusUpdate? get noStatusUpdate => _$this._noStatusUpdate; - set noStatusUpdate(covariant ChatReceiveMessagesRequestApplicationJson_NoStatusUpdate? noStatusUpdate) => - _$this._noStatusUpdate = noStatusUpdate; - - ChatReceiveMessagesRequestApplicationJson_MarkNotificationsAsRead? _markNotificationsAsRead; - ChatReceiveMessagesRequestApplicationJson_MarkNotificationsAsRead? get markNotificationsAsRead => - _$this._markNotificationsAsRead; - set markNotificationsAsRead( - covariant ChatReceiveMessagesRequestApplicationJson_MarkNotificationsAsRead? markNotificationsAsRead) => - _$this._markNotificationsAsRead = markNotificationsAsRead; - - ChatReceiveMessagesRequestApplicationJsonBuilder() { - ChatReceiveMessagesRequestApplicationJson._defaults(this); - } - - ChatReceiveMessagesRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _lookIntoFuture = $v.lookIntoFuture; - _limit = $v.limit; - _lastKnownMessageId = $v.lastKnownMessageId; - _lastCommonReadId = $v.lastCommonReadId; - _timeout = $v.timeout; - _setReadMarker = $v.setReadMarker; - _includeLastKnown = $v.includeLastKnown; - _noStatusUpdate = $v.noStatusUpdate; - _markNotificationsAsRead = $v.markNotificationsAsRead; - _$v = null; - } - return this; - } - - @override - void replace(covariant ChatReceiveMessagesRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$ChatReceiveMessagesRequestApplicationJson; - } - - @override - void update(void Function(ChatReceiveMessagesRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - ChatReceiveMessagesRequestApplicationJson build() => _build(); - - _$ChatReceiveMessagesRequestApplicationJson _build() { - ChatReceiveMessagesRequestApplicationJson._validate(this); - final _$result = _$v ?? - _$ChatReceiveMessagesRequestApplicationJson._( - lookIntoFuture: BuiltValueNullFieldError.checkNotNull( - lookIntoFuture, r'ChatReceiveMessagesRequestApplicationJson', 'lookIntoFuture'), - limit: BuiltValueNullFieldError.checkNotNull(limit, r'ChatReceiveMessagesRequestApplicationJson', 'limit'), - lastKnownMessageId: BuiltValueNullFieldError.checkNotNull( - lastKnownMessageId, r'ChatReceiveMessagesRequestApplicationJson', 'lastKnownMessageId'), - lastCommonReadId: BuiltValueNullFieldError.checkNotNull( - lastCommonReadId, r'ChatReceiveMessagesRequestApplicationJson', 'lastCommonReadId'), - timeout: - BuiltValueNullFieldError.checkNotNull(timeout, r'ChatReceiveMessagesRequestApplicationJson', 'timeout'), - setReadMarker: BuiltValueNullFieldError.checkNotNull( - setReadMarker, r'ChatReceiveMessagesRequestApplicationJson', 'setReadMarker'), - includeLastKnown: BuiltValueNullFieldError.checkNotNull( - includeLastKnown, r'ChatReceiveMessagesRequestApplicationJson', 'includeLastKnown'), - noStatusUpdate: BuiltValueNullFieldError.checkNotNull( - noStatusUpdate, r'ChatReceiveMessagesRequestApplicationJson', 'noStatusUpdate'), - markNotificationsAsRead: BuiltValueNullFieldError.checkNotNull( - markNotificationsAsRead, r'ChatReceiveMessagesRequestApplicationJson', 'markNotificationsAsRead')); - replace(_$result); - return _$result; - } -} - abstract mixin class $ChatMessageWithParentInterfaceBuilder implements $ChatMessageInterfaceBuilder { void replace(covariant $ChatMessageWithParentInterface other); void update(void Function($ChatMessageWithParentInterfaceBuilder) updates); @@ -35266,103 +33203,6 @@ class ChatChatDeleteMessageHeadersBuilder } } -abstract mixin class $ChatGetMessageContextRequestApplicationJsonInterfaceBuilder { - void replace($ChatGetMessageContextRequestApplicationJsonInterface other); - void update(void Function($ChatGetMessageContextRequestApplicationJsonInterfaceBuilder) updates); - int? get limit; - set limit(int? limit); -} - -class _$ChatGetMessageContextRequestApplicationJson extends ChatGetMessageContextRequestApplicationJson { - @override - final int limit; - - factory _$ChatGetMessageContextRequestApplicationJson( - [void Function(ChatGetMessageContextRequestApplicationJsonBuilder)? updates]) => - (ChatGetMessageContextRequestApplicationJsonBuilder()..update(updates))._build(); - - _$ChatGetMessageContextRequestApplicationJson._({required this.limit}) : super._() { - BuiltValueNullFieldError.checkNotNull(limit, r'ChatGetMessageContextRequestApplicationJson', 'limit'); - } - - @override - ChatGetMessageContextRequestApplicationJson rebuild( - void Function(ChatGetMessageContextRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - ChatGetMessageContextRequestApplicationJsonBuilder toBuilder() => - ChatGetMessageContextRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is ChatGetMessageContextRequestApplicationJson && limit == other.limit; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, limit.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'ChatGetMessageContextRequestApplicationJson')..add('limit', limit)) - .toString(); - } -} - -class ChatGetMessageContextRequestApplicationJsonBuilder - implements - Builder, - $ChatGetMessageContextRequestApplicationJsonInterfaceBuilder { - _$ChatGetMessageContextRequestApplicationJson? _$v; - - int? _limit; - int? get limit => _$this._limit; - set limit(covariant int? limit) => _$this._limit = limit; - - ChatGetMessageContextRequestApplicationJsonBuilder() { - ChatGetMessageContextRequestApplicationJson._defaults(this); - } - - ChatGetMessageContextRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _limit = $v.limit; - _$v = null; - } - return this; - } - - @override - void replace(covariant ChatGetMessageContextRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$ChatGetMessageContextRequestApplicationJson; - } - - @override - void update(void Function(ChatGetMessageContextRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - ChatGetMessageContextRequestApplicationJson build() => _build(); - - _$ChatGetMessageContextRequestApplicationJson _build() { - ChatGetMessageContextRequestApplicationJson._validate(this); - final _$result = _$v ?? - _$ChatGetMessageContextRequestApplicationJson._( - limit: - BuiltValueNullFieldError.checkNotNull(limit, r'ChatGetMessageContextRequestApplicationJson', 'limit')); - replace(_$result); - return _$result; - } -} - abstract mixin class $ChatGetMessageContextResponseApplicationJson_OcsInterfaceBuilder { void replace($ChatGetMessageContextResponseApplicationJson_OcsInterface other); void update(void Function($ChatGetMessageContextResponseApplicationJson_OcsInterfaceBuilder) updates); @@ -37436,133 +35276,6 @@ class ChatChatMarkUnreadHeadersBuilder } } -abstract mixin class $ChatMentionsRequestApplicationJsonInterfaceBuilder { - void replace($ChatMentionsRequestApplicationJsonInterface other); - void update(void Function($ChatMentionsRequestApplicationJsonInterfaceBuilder) updates); - String? get search; - set search(String? search); - - int? get limit; - set limit(int? limit); - - bool? get includeStatus; - set includeStatus(bool? includeStatus); -} - -class _$ChatMentionsRequestApplicationJson extends ChatMentionsRequestApplicationJson { - @override - final String search; - @override - final int limit; - @override - final bool includeStatus; - - factory _$ChatMentionsRequestApplicationJson([void Function(ChatMentionsRequestApplicationJsonBuilder)? updates]) => - (ChatMentionsRequestApplicationJsonBuilder()..update(updates))._build(); - - _$ChatMentionsRequestApplicationJson._({required this.search, required this.limit, required this.includeStatus}) - : super._() { - BuiltValueNullFieldError.checkNotNull(search, r'ChatMentionsRequestApplicationJson', 'search'); - BuiltValueNullFieldError.checkNotNull(limit, r'ChatMentionsRequestApplicationJson', 'limit'); - BuiltValueNullFieldError.checkNotNull(includeStatus, r'ChatMentionsRequestApplicationJson', 'includeStatus'); - } - - @override - ChatMentionsRequestApplicationJson rebuild(void Function(ChatMentionsRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - ChatMentionsRequestApplicationJsonBuilder toBuilder() => ChatMentionsRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is ChatMentionsRequestApplicationJson && - search == other.search && - limit == other.limit && - includeStatus == other.includeStatus; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, search.hashCode); - _$hash = $jc(_$hash, limit.hashCode); - _$hash = $jc(_$hash, includeStatus.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'ChatMentionsRequestApplicationJson') - ..add('search', search) - ..add('limit', limit) - ..add('includeStatus', includeStatus)) - .toString(); - } -} - -class ChatMentionsRequestApplicationJsonBuilder - implements - Builder, - $ChatMentionsRequestApplicationJsonInterfaceBuilder { - _$ChatMentionsRequestApplicationJson? _$v; - - String? _search; - String? get search => _$this._search; - set search(covariant String? search) => _$this._search = search; - - int? _limit; - int? get limit => _$this._limit; - set limit(covariant int? limit) => _$this._limit = limit; - - bool? _includeStatus; - bool? get includeStatus => _$this._includeStatus; - set includeStatus(covariant bool? includeStatus) => _$this._includeStatus = includeStatus; - - ChatMentionsRequestApplicationJsonBuilder() { - ChatMentionsRequestApplicationJson._defaults(this); - } - - ChatMentionsRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _search = $v.search; - _limit = $v.limit; - _includeStatus = $v.includeStatus; - _$v = null; - } - return this; - } - - @override - void replace(covariant ChatMentionsRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$ChatMentionsRequestApplicationJson; - } - - @override - void update(void Function(ChatMentionsRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - ChatMentionsRequestApplicationJson build() => _build(); - - _$ChatMentionsRequestApplicationJson _build() { - ChatMentionsRequestApplicationJson._validate(this); - final _$result = _$v ?? - _$ChatMentionsRequestApplicationJson._( - search: BuiltValueNullFieldError.checkNotNull(search, r'ChatMentionsRequestApplicationJson', 'search'), - limit: BuiltValueNullFieldError.checkNotNull(limit, r'ChatMentionsRequestApplicationJson', 'limit'), - includeStatus: BuiltValueNullFieldError.checkNotNull( - includeStatus, r'ChatMentionsRequestApplicationJson', 'includeStatus')); - replace(_$result); - return _$result; - } -} - abstract mixin class $ChatMentionSuggestionInterfaceBuilder { void replace($ChatMentionSuggestionInterface other); void update(void Function($ChatMentionSuggestionInterfaceBuilder) updates); @@ -37990,142 +35703,6 @@ class ChatMentionsResponseApplicationJsonBuilder } } -abstract mixin class $ChatGetObjectsSharedInRoomRequestApplicationJsonInterfaceBuilder { - void replace($ChatGetObjectsSharedInRoomRequestApplicationJsonInterface other); - void update(void Function($ChatGetObjectsSharedInRoomRequestApplicationJsonInterfaceBuilder) updates); - String? get objectType; - set objectType(String? objectType); - - int? get lastKnownMessageId; - set lastKnownMessageId(int? lastKnownMessageId); - - int? get limit; - set limit(int? limit); -} - -class _$ChatGetObjectsSharedInRoomRequestApplicationJson extends ChatGetObjectsSharedInRoomRequestApplicationJson { - @override - final String objectType; - @override - final int lastKnownMessageId; - @override - final int limit; - - factory _$ChatGetObjectsSharedInRoomRequestApplicationJson( - [void Function(ChatGetObjectsSharedInRoomRequestApplicationJsonBuilder)? updates]) => - (ChatGetObjectsSharedInRoomRequestApplicationJsonBuilder()..update(updates))._build(); - - _$ChatGetObjectsSharedInRoomRequestApplicationJson._( - {required this.objectType, required this.lastKnownMessageId, required this.limit}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - objectType, r'ChatGetObjectsSharedInRoomRequestApplicationJson', 'objectType'); - BuiltValueNullFieldError.checkNotNull( - lastKnownMessageId, r'ChatGetObjectsSharedInRoomRequestApplicationJson', 'lastKnownMessageId'); - BuiltValueNullFieldError.checkNotNull(limit, r'ChatGetObjectsSharedInRoomRequestApplicationJson', 'limit'); - } - - @override - ChatGetObjectsSharedInRoomRequestApplicationJson rebuild( - void Function(ChatGetObjectsSharedInRoomRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - ChatGetObjectsSharedInRoomRequestApplicationJsonBuilder toBuilder() => - ChatGetObjectsSharedInRoomRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is ChatGetObjectsSharedInRoomRequestApplicationJson && - objectType == other.objectType && - lastKnownMessageId == other.lastKnownMessageId && - limit == other.limit; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, objectType.hashCode); - _$hash = $jc(_$hash, lastKnownMessageId.hashCode); - _$hash = $jc(_$hash, limit.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'ChatGetObjectsSharedInRoomRequestApplicationJson') - ..add('objectType', objectType) - ..add('lastKnownMessageId', lastKnownMessageId) - ..add('limit', limit)) - .toString(); - } -} - -class ChatGetObjectsSharedInRoomRequestApplicationJsonBuilder - implements - Builder, - $ChatGetObjectsSharedInRoomRequestApplicationJsonInterfaceBuilder { - _$ChatGetObjectsSharedInRoomRequestApplicationJson? _$v; - - String? _objectType; - String? get objectType => _$this._objectType; - set objectType(covariant String? objectType) => _$this._objectType = objectType; - - int? _lastKnownMessageId; - int? get lastKnownMessageId => _$this._lastKnownMessageId; - set lastKnownMessageId(covariant int? lastKnownMessageId) => _$this._lastKnownMessageId = lastKnownMessageId; - - int? _limit; - int? get limit => _$this._limit; - set limit(covariant int? limit) => _$this._limit = limit; - - ChatGetObjectsSharedInRoomRequestApplicationJsonBuilder() { - ChatGetObjectsSharedInRoomRequestApplicationJson._defaults(this); - } - - ChatGetObjectsSharedInRoomRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _objectType = $v.objectType; - _lastKnownMessageId = $v.lastKnownMessageId; - _limit = $v.limit; - _$v = null; - } - return this; - } - - @override - void replace(covariant ChatGetObjectsSharedInRoomRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$ChatGetObjectsSharedInRoomRequestApplicationJson; - } - - @override - void update(void Function(ChatGetObjectsSharedInRoomRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - ChatGetObjectsSharedInRoomRequestApplicationJson build() => _build(); - - _$ChatGetObjectsSharedInRoomRequestApplicationJson _build() { - ChatGetObjectsSharedInRoomRequestApplicationJson._validate(this); - final _$result = _$v ?? - _$ChatGetObjectsSharedInRoomRequestApplicationJson._( - objectType: BuiltValueNullFieldError.checkNotNull( - objectType, r'ChatGetObjectsSharedInRoomRequestApplicationJson', 'objectType'), - lastKnownMessageId: BuiltValueNullFieldError.checkNotNull( - lastKnownMessageId, r'ChatGetObjectsSharedInRoomRequestApplicationJson', 'lastKnownMessageId'), - limit: BuiltValueNullFieldError.checkNotNull( - limit, r'ChatGetObjectsSharedInRoomRequestApplicationJson', 'limit')); - replace(_$result); - return _$result; - } -} - abstract mixin class $ChatGetObjectsSharedInRoomResponseApplicationJson_OcsInterfaceBuilder { void replace($ChatGetObjectsSharedInRoomResponseApplicationJson_OcsInterface other); void update(void Function($ChatGetObjectsSharedInRoomResponseApplicationJson_OcsInterfaceBuilder) updates); @@ -38942,106 +36519,6 @@ class ChatChatShareObjectToChatHeadersBuilder } } -abstract mixin class $ChatGetObjectsSharedInRoomOverviewRequestApplicationJsonInterfaceBuilder { - void replace($ChatGetObjectsSharedInRoomOverviewRequestApplicationJsonInterface other); - void update(void Function($ChatGetObjectsSharedInRoomOverviewRequestApplicationJsonInterfaceBuilder) updates); - int? get limit; - set limit(int? limit); -} - -class _$ChatGetObjectsSharedInRoomOverviewRequestApplicationJson - extends ChatGetObjectsSharedInRoomOverviewRequestApplicationJson { - @override - final int limit; - - factory _$ChatGetObjectsSharedInRoomOverviewRequestApplicationJson( - [void Function(ChatGetObjectsSharedInRoomOverviewRequestApplicationJsonBuilder)? updates]) => - (ChatGetObjectsSharedInRoomOverviewRequestApplicationJsonBuilder()..update(updates))._build(); - - _$ChatGetObjectsSharedInRoomOverviewRequestApplicationJson._({required this.limit}) : super._() { - BuiltValueNullFieldError.checkNotNull(limit, r'ChatGetObjectsSharedInRoomOverviewRequestApplicationJson', 'limit'); - } - - @override - ChatGetObjectsSharedInRoomOverviewRequestApplicationJson rebuild( - void Function(ChatGetObjectsSharedInRoomOverviewRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - ChatGetObjectsSharedInRoomOverviewRequestApplicationJsonBuilder toBuilder() => - ChatGetObjectsSharedInRoomOverviewRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is ChatGetObjectsSharedInRoomOverviewRequestApplicationJson && limit == other.limit; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, limit.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'ChatGetObjectsSharedInRoomOverviewRequestApplicationJson') - ..add('limit', limit)) - .toString(); - } -} - -class ChatGetObjectsSharedInRoomOverviewRequestApplicationJsonBuilder - implements - Builder, - $ChatGetObjectsSharedInRoomOverviewRequestApplicationJsonInterfaceBuilder { - _$ChatGetObjectsSharedInRoomOverviewRequestApplicationJson? _$v; - - int? _limit; - int? get limit => _$this._limit; - set limit(covariant int? limit) => _$this._limit = limit; - - ChatGetObjectsSharedInRoomOverviewRequestApplicationJsonBuilder() { - ChatGetObjectsSharedInRoomOverviewRequestApplicationJson._defaults(this); - } - - ChatGetObjectsSharedInRoomOverviewRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _limit = $v.limit; - _$v = null; - } - return this; - } - - @override - void replace(covariant ChatGetObjectsSharedInRoomOverviewRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$ChatGetObjectsSharedInRoomOverviewRequestApplicationJson; - } - - @override - void update(void Function(ChatGetObjectsSharedInRoomOverviewRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - ChatGetObjectsSharedInRoomOverviewRequestApplicationJson build() => _build(); - - _$ChatGetObjectsSharedInRoomOverviewRequestApplicationJson _build() { - ChatGetObjectsSharedInRoomOverviewRequestApplicationJson._validate(this); - final _$result = _$v ?? - _$ChatGetObjectsSharedInRoomOverviewRequestApplicationJson._( - limit: BuiltValueNullFieldError.checkNotNull( - limit, r'ChatGetObjectsSharedInRoomOverviewRequestApplicationJson', 'limit')); - replace(_$result); - return _$result; - } -} - abstract mixin class $ChatGetObjectsSharedInRoomOverviewResponseApplicationJson_OcsInterfaceBuilder { void replace($ChatGetObjectsSharedInRoomOverviewResponseApplicationJson_OcsInterface other); void update(void Function($ChatGetObjectsSharedInRoomOverviewResponseApplicationJson_OcsInterfaceBuilder) updates); @@ -39283,102 +36760,6 @@ class ChatGetObjectsSharedInRoomOverviewResponseApplicationJsonBuilder } } -abstract mixin class $SignalingGetSettingsRequestApplicationJsonInterfaceBuilder { - void replace($SignalingGetSettingsRequestApplicationJsonInterface other); - void update(void Function($SignalingGetSettingsRequestApplicationJsonInterfaceBuilder) updates); - String? get token; - set token(String? token); -} - -class _$SignalingGetSettingsRequestApplicationJson extends SignalingGetSettingsRequestApplicationJson { - @override - final String token; - - factory _$SignalingGetSettingsRequestApplicationJson( - [void Function(SignalingGetSettingsRequestApplicationJsonBuilder)? updates]) => - (SignalingGetSettingsRequestApplicationJsonBuilder()..update(updates))._build(); - - _$SignalingGetSettingsRequestApplicationJson._({required this.token}) : super._() { - BuiltValueNullFieldError.checkNotNull(token, r'SignalingGetSettingsRequestApplicationJson', 'token'); - } - - @override - SignalingGetSettingsRequestApplicationJson rebuild( - void Function(SignalingGetSettingsRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - SignalingGetSettingsRequestApplicationJsonBuilder toBuilder() => - SignalingGetSettingsRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is SignalingGetSettingsRequestApplicationJson && token == other.token; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, token.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'SignalingGetSettingsRequestApplicationJson')..add('token', token)).toString(); - } -} - -class SignalingGetSettingsRequestApplicationJsonBuilder - implements - Builder, - $SignalingGetSettingsRequestApplicationJsonInterfaceBuilder { - _$SignalingGetSettingsRequestApplicationJson? _$v; - - String? _token; - String? get token => _$this._token; - set token(covariant String? token) => _$this._token = token; - - SignalingGetSettingsRequestApplicationJsonBuilder() { - SignalingGetSettingsRequestApplicationJson._defaults(this); - } - - SignalingGetSettingsRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _token = $v.token; - _$v = null; - } - return this; - } - - @override - void replace(covariant SignalingGetSettingsRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$SignalingGetSettingsRequestApplicationJson; - } - - @override - void update(void Function(SignalingGetSettingsRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - SignalingGetSettingsRequestApplicationJson build() => _build(); - - _$SignalingGetSettingsRequestApplicationJson _build() { - SignalingGetSettingsRequestApplicationJson._validate(this); - final _$result = _$v ?? - _$SignalingGetSettingsRequestApplicationJson._( - token: - BuiltValueNullFieldError.checkNotNull(token, r'SignalingGetSettingsRequestApplicationJson', 'token')); - replace(_$result); - return _$result; - } -} - abstract mixin class $SignalingSettings_HelloAuthParams_10InterfaceBuilder { void replace($SignalingSettings_HelloAuthParams_10Interface other); void update(void Function($SignalingSettings_HelloAuthParams_10InterfaceBuilder) updates); @@ -47840,98 +45221,6 @@ class PollClosePollResponseApplicationJsonBuilder } } -abstract mixin class $ReactionGetReactionsRequestApplicationJsonInterfaceBuilder { - void replace($ReactionGetReactionsRequestApplicationJsonInterface other); - void update(void Function($ReactionGetReactionsRequestApplicationJsonInterfaceBuilder) updates); - String? get reaction; - set reaction(String? reaction); -} - -class _$ReactionGetReactionsRequestApplicationJson extends ReactionGetReactionsRequestApplicationJson { - @override - final String? reaction; - - factory _$ReactionGetReactionsRequestApplicationJson( - [void Function(ReactionGetReactionsRequestApplicationJsonBuilder)? updates]) => - (ReactionGetReactionsRequestApplicationJsonBuilder()..update(updates))._build(); - - _$ReactionGetReactionsRequestApplicationJson._({this.reaction}) : super._(); - - @override - ReactionGetReactionsRequestApplicationJson rebuild( - void Function(ReactionGetReactionsRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - ReactionGetReactionsRequestApplicationJsonBuilder toBuilder() => - ReactionGetReactionsRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is ReactionGetReactionsRequestApplicationJson && reaction == other.reaction; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, reaction.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'ReactionGetReactionsRequestApplicationJson')..add('reaction', reaction)) - .toString(); - } -} - -class ReactionGetReactionsRequestApplicationJsonBuilder - implements - Builder, - $ReactionGetReactionsRequestApplicationJsonInterfaceBuilder { - _$ReactionGetReactionsRequestApplicationJson? _$v; - - String? _reaction; - String? get reaction => _$this._reaction; - set reaction(covariant String? reaction) => _$this._reaction = reaction; - - ReactionGetReactionsRequestApplicationJsonBuilder() { - ReactionGetReactionsRequestApplicationJson._defaults(this); - } - - ReactionGetReactionsRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _reaction = $v.reaction; - _$v = null; - } - return this; - } - - @override - void replace(covariant ReactionGetReactionsRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$ReactionGetReactionsRequestApplicationJson; - } - - @override - void update(void Function(ReactionGetReactionsRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - ReactionGetReactionsRequestApplicationJson build() => _build(); - - _$ReactionGetReactionsRequestApplicationJson _build() { - ReactionGetReactionsRequestApplicationJson._validate(this); - final _$result = _$v ?? _$ReactionGetReactionsRequestApplicationJson._(reaction: reaction); - replace(_$result); - return _$result; - } -} - abstract mixin class $ReactionInterfaceBuilder { void replace($ReactionInterface other); void update(void Function($ReactionInterfaceBuilder) updates); @@ -48619,101 +45908,6 @@ class ReactionReactResponseApplicationJsonBuilder } } -abstract mixin class $ReactionDeleteRequestApplicationJsonInterfaceBuilder { - void replace($ReactionDeleteRequestApplicationJsonInterface other); - void update(void Function($ReactionDeleteRequestApplicationJsonInterfaceBuilder) updates); - String? get reaction; - set reaction(String? reaction); -} - -class _$ReactionDeleteRequestApplicationJson extends ReactionDeleteRequestApplicationJson { - @override - final String reaction; - - factory _$ReactionDeleteRequestApplicationJson( - [void Function(ReactionDeleteRequestApplicationJsonBuilder)? updates]) => - (ReactionDeleteRequestApplicationJsonBuilder()..update(updates))._build(); - - _$ReactionDeleteRequestApplicationJson._({required this.reaction}) : super._() { - BuiltValueNullFieldError.checkNotNull(reaction, r'ReactionDeleteRequestApplicationJson', 'reaction'); - } - - @override - ReactionDeleteRequestApplicationJson rebuild(void Function(ReactionDeleteRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - ReactionDeleteRequestApplicationJsonBuilder toBuilder() => - ReactionDeleteRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is ReactionDeleteRequestApplicationJson && reaction == other.reaction; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, reaction.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'ReactionDeleteRequestApplicationJson')..add('reaction', reaction)).toString(); - } -} - -class ReactionDeleteRequestApplicationJsonBuilder - implements - Builder, - $ReactionDeleteRequestApplicationJsonInterfaceBuilder { - _$ReactionDeleteRequestApplicationJson? _$v; - - String? _reaction; - String? get reaction => _$this._reaction; - set reaction(covariant String? reaction) => _$this._reaction = reaction; - - ReactionDeleteRequestApplicationJsonBuilder() { - ReactionDeleteRequestApplicationJson._defaults(this); - } - - ReactionDeleteRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _reaction = $v.reaction; - _$v = null; - } - return this; - } - - @override - void replace(covariant ReactionDeleteRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$ReactionDeleteRequestApplicationJson; - } - - @override - void update(void Function(ReactionDeleteRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - ReactionDeleteRequestApplicationJson build() => _build(); - - _$ReactionDeleteRequestApplicationJson _build() { - ReactionDeleteRequestApplicationJson._validate(this); - final _$result = _$v ?? - _$ReactionDeleteRequestApplicationJson._( - reaction: - BuiltValueNullFieldError.checkNotNull(reaction, r'ReactionDeleteRequestApplicationJson', 'reaction')); - replace(_$result); - return _$result; - } -} - abstract mixin class $ReactionDeleteResponseApplicationJson_OcsInterfaceBuilder { void replace($ReactionDeleteResponseApplicationJson_OcsInterface other); void update(void Function($ReactionDeleteResponseApplicationJson_OcsInterfaceBuilder) updates); @@ -49491,106 +46685,6 @@ class RecordingStopResponseApplicationJsonBuilder } } -abstract mixin class $RecordingNotificationDismissRequestApplicationJsonInterfaceBuilder { - void replace($RecordingNotificationDismissRequestApplicationJsonInterface other); - void update(void Function($RecordingNotificationDismissRequestApplicationJsonInterfaceBuilder) updates); - int? get timestamp; - set timestamp(int? timestamp); -} - -class _$RecordingNotificationDismissRequestApplicationJson extends RecordingNotificationDismissRequestApplicationJson { - @override - final int timestamp; - - factory _$RecordingNotificationDismissRequestApplicationJson( - [void Function(RecordingNotificationDismissRequestApplicationJsonBuilder)? updates]) => - (RecordingNotificationDismissRequestApplicationJsonBuilder()..update(updates))._build(); - - _$RecordingNotificationDismissRequestApplicationJson._({required this.timestamp}) : super._() { - BuiltValueNullFieldError.checkNotNull( - timestamp, r'RecordingNotificationDismissRequestApplicationJson', 'timestamp'); - } - - @override - RecordingNotificationDismissRequestApplicationJson rebuild( - void Function(RecordingNotificationDismissRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - RecordingNotificationDismissRequestApplicationJsonBuilder toBuilder() => - RecordingNotificationDismissRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is RecordingNotificationDismissRequestApplicationJson && timestamp == other.timestamp; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, timestamp.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'RecordingNotificationDismissRequestApplicationJson') - ..add('timestamp', timestamp)) - .toString(); - } -} - -class RecordingNotificationDismissRequestApplicationJsonBuilder - implements - Builder, - $RecordingNotificationDismissRequestApplicationJsonInterfaceBuilder { - _$RecordingNotificationDismissRequestApplicationJson? _$v; - - int? _timestamp; - int? get timestamp => _$this._timestamp; - set timestamp(covariant int? timestamp) => _$this._timestamp = timestamp; - - RecordingNotificationDismissRequestApplicationJsonBuilder() { - RecordingNotificationDismissRequestApplicationJson._defaults(this); - } - - RecordingNotificationDismissRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _timestamp = $v.timestamp; - _$v = null; - } - return this; - } - - @override - void replace(covariant RecordingNotificationDismissRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$RecordingNotificationDismissRequestApplicationJson; - } - - @override - void update(void Function(RecordingNotificationDismissRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - RecordingNotificationDismissRequestApplicationJson build() => _build(); - - _$RecordingNotificationDismissRequestApplicationJson _build() { - RecordingNotificationDismissRequestApplicationJson._validate(this); - final _$result = _$v ?? - _$RecordingNotificationDismissRequestApplicationJson._( - timestamp: BuiltValueNullFieldError.checkNotNull( - timestamp, r'RecordingNotificationDismissRequestApplicationJson', 'timestamp')); - replace(_$result); - return _$result; - } -} - abstract mixin class $RecordingNotificationDismissResponseApplicationJson_OcsInterfaceBuilder { void replace($RecordingNotificationDismissResponseApplicationJson_OcsInterface other); void update(void Function($RecordingNotificationDismissResponseApplicationJson_OcsInterfaceBuilder) updates); @@ -50727,137 +47821,6 @@ class RecordingStoreResponseApplicationJsonBuilder } } -abstract mixin class $RoomGetRoomsRequestApplicationJsonInterfaceBuilder { - void replace($RoomGetRoomsRequestApplicationJsonInterface other); - void update(void Function($RoomGetRoomsRequestApplicationJsonInterfaceBuilder) updates); - RoomGetRoomsRequestApplicationJson_NoStatusUpdate? get noStatusUpdate; - set noStatusUpdate(RoomGetRoomsRequestApplicationJson_NoStatusUpdate? noStatusUpdate); - - bool? get includeStatus; - set includeStatus(bool? includeStatus); - - int? get modifiedSince; - set modifiedSince(int? modifiedSince); -} - -class _$RoomGetRoomsRequestApplicationJson extends RoomGetRoomsRequestApplicationJson { - @override - final RoomGetRoomsRequestApplicationJson_NoStatusUpdate noStatusUpdate; - @override - final bool includeStatus; - @override - final int modifiedSince; - - factory _$RoomGetRoomsRequestApplicationJson([void Function(RoomGetRoomsRequestApplicationJsonBuilder)? updates]) => - (RoomGetRoomsRequestApplicationJsonBuilder()..update(updates))._build(); - - _$RoomGetRoomsRequestApplicationJson._( - {required this.noStatusUpdate, required this.includeStatus, required this.modifiedSince}) - : super._() { - BuiltValueNullFieldError.checkNotNull(noStatusUpdate, r'RoomGetRoomsRequestApplicationJson', 'noStatusUpdate'); - BuiltValueNullFieldError.checkNotNull(includeStatus, r'RoomGetRoomsRequestApplicationJson', 'includeStatus'); - BuiltValueNullFieldError.checkNotNull(modifiedSince, r'RoomGetRoomsRequestApplicationJson', 'modifiedSince'); - } - - @override - RoomGetRoomsRequestApplicationJson rebuild(void Function(RoomGetRoomsRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - RoomGetRoomsRequestApplicationJsonBuilder toBuilder() => RoomGetRoomsRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is RoomGetRoomsRequestApplicationJson && - noStatusUpdate == other.noStatusUpdate && - includeStatus == other.includeStatus && - modifiedSince == other.modifiedSince; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, noStatusUpdate.hashCode); - _$hash = $jc(_$hash, includeStatus.hashCode); - _$hash = $jc(_$hash, modifiedSince.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'RoomGetRoomsRequestApplicationJson') - ..add('noStatusUpdate', noStatusUpdate) - ..add('includeStatus', includeStatus) - ..add('modifiedSince', modifiedSince)) - .toString(); - } -} - -class RoomGetRoomsRequestApplicationJsonBuilder - implements - Builder, - $RoomGetRoomsRequestApplicationJsonInterfaceBuilder { - _$RoomGetRoomsRequestApplicationJson? _$v; - - RoomGetRoomsRequestApplicationJson_NoStatusUpdate? _noStatusUpdate; - RoomGetRoomsRequestApplicationJson_NoStatusUpdate? get noStatusUpdate => _$this._noStatusUpdate; - set noStatusUpdate(covariant RoomGetRoomsRequestApplicationJson_NoStatusUpdate? noStatusUpdate) => - _$this._noStatusUpdate = noStatusUpdate; - - bool? _includeStatus; - bool? get includeStatus => _$this._includeStatus; - set includeStatus(covariant bool? includeStatus) => _$this._includeStatus = includeStatus; - - int? _modifiedSince; - int? get modifiedSince => _$this._modifiedSince; - set modifiedSince(covariant int? modifiedSince) => _$this._modifiedSince = modifiedSince; - - RoomGetRoomsRequestApplicationJsonBuilder() { - RoomGetRoomsRequestApplicationJson._defaults(this); - } - - RoomGetRoomsRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _noStatusUpdate = $v.noStatusUpdate; - _includeStatus = $v.includeStatus; - _modifiedSince = $v.modifiedSince; - _$v = null; - } - return this; - } - - @override - void replace(covariant RoomGetRoomsRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$RoomGetRoomsRequestApplicationJson; - } - - @override - void update(void Function(RoomGetRoomsRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - RoomGetRoomsRequestApplicationJson build() => _build(); - - _$RoomGetRoomsRequestApplicationJson _build() { - RoomGetRoomsRequestApplicationJson._validate(this); - final _$result = _$v ?? - _$RoomGetRoomsRequestApplicationJson._( - noStatusUpdate: BuiltValueNullFieldError.checkNotNull( - noStatusUpdate, r'RoomGetRoomsRequestApplicationJson', 'noStatusUpdate'), - includeStatus: BuiltValueNullFieldError.checkNotNull( - includeStatus, r'RoomGetRoomsRequestApplicationJson', 'includeStatus'), - modifiedSince: BuiltValueNullFieldError.checkNotNull( - modifiedSince, r'RoomGetRoomsRequestApplicationJson', 'modifiedSince')); - replace(_$result); - return _$result; - } -} - abstract mixin class $RoomGetRoomsResponseApplicationJson_OcsInterfaceBuilder { void replace($RoomGetRoomsResponseApplicationJson_OcsInterface other); void update(void Function($RoomGetRoomsResponseApplicationJson_OcsInterfaceBuilder) updates); @@ -51618,103 +48581,6 @@ class RoomCreateRoomResponseApplicationJsonBuilder } } -abstract mixin class $RoomGetListedRoomsRequestApplicationJsonInterfaceBuilder { - void replace($RoomGetListedRoomsRequestApplicationJsonInterface other); - void update(void Function($RoomGetListedRoomsRequestApplicationJsonInterfaceBuilder) updates); - String? get searchTerm; - set searchTerm(String? searchTerm); -} - -class _$RoomGetListedRoomsRequestApplicationJson extends RoomGetListedRoomsRequestApplicationJson { - @override - final String searchTerm; - - factory _$RoomGetListedRoomsRequestApplicationJson( - [void Function(RoomGetListedRoomsRequestApplicationJsonBuilder)? updates]) => - (RoomGetListedRoomsRequestApplicationJsonBuilder()..update(updates))._build(); - - _$RoomGetListedRoomsRequestApplicationJson._({required this.searchTerm}) : super._() { - BuiltValueNullFieldError.checkNotNull(searchTerm, r'RoomGetListedRoomsRequestApplicationJson', 'searchTerm'); - } - - @override - RoomGetListedRoomsRequestApplicationJson rebuild( - void Function(RoomGetListedRoomsRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - RoomGetListedRoomsRequestApplicationJsonBuilder toBuilder() => - RoomGetListedRoomsRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is RoomGetListedRoomsRequestApplicationJson && searchTerm == other.searchTerm; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, searchTerm.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'RoomGetListedRoomsRequestApplicationJson')..add('searchTerm', searchTerm)) - .toString(); - } -} - -class RoomGetListedRoomsRequestApplicationJsonBuilder - implements - Builder, - $RoomGetListedRoomsRequestApplicationJsonInterfaceBuilder { - _$RoomGetListedRoomsRequestApplicationJson? _$v; - - String? _searchTerm; - String? get searchTerm => _$this._searchTerm; - set searchTerm(covariant String? searchTerm) => _$this._searchTerm = searchTerm; - - RoomGetListedRoomsRequestApplicationJsonBuilder() { - RoomGetListedRoomsRequestApplicationJson._defaults(this); - } - - RoomGetListedRoomsRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _searchTerm = $v.searchTerm; - _$v = null; - } - return this; - } - - @override - void replace(covariant RoomGetListedRoomsRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$RoomGetListedRoomsRequestApplicationJson; - } - - @override - void update(void Function(RoomGetListedRoomsRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - RoomGetListedRoomsRequestApplicationJson build() => _build(); - - _$RoomGetListedRoomsRequestApplicationJson _build() { - RoomGetListedRoomsRequestApplicationJson._validate(this); - final _$result = _$v ?? - _$RoomGetListedRoomsRequestApplicationJson._( - searchTerm: BuiltValueNullFieldError.checkNotNull( - searchTerm, r'RoomGetListedRoomsRequestApplicationJson', 'searchTerm')); - replace(_$result); - return _$result; - } -} - abstract mixin class $RoomGetListedRoomsResponseApplicationJson_OcsInterfaceBuilder { void replace($RoomGetListedRoomsResponseApplicationJson_OcsInterface other); void update(void Function($RoomGetListedRoomsResponseApplicationJson_OcsInterfaceBuilder) updates); @@ -54901,104 +51767,6 @@ class RoomSetPermissionsResponseApplicationJsonBuilder } } -abstract mixin class $RoomGetParticipantsRequestApplicationJsonInterfaceBuilder { - void replace($RoomGetParticipantsRequestApplicationJsonInterface other); - void update(void Function($RoomGetParticipantsRequestApplicationJsonInterfaceBuilder) updates); - bool? get includeStatus; - set includeStatus(bool? includeStatus); -} - -class _$RoomGetParticipantsRequestApplicationJson extends RoomGetParticipantsRequestApplicationJson { - @override - final bool includeStatus; - - factory _$RoomGetParticipantsRequestApplicationJson( - [void Function(RoomGetParticipantsRequestApplicationJsonBuilder)? updates]) => - (RoomGetParticipantsRequestApplicationJsonBuilder()..update(updates))._build(); - - _$RoomGetParticipantsRequestApplicationJson._({required this.includeStatus}) : super._() { - BuiltValueNullFieldError.checkNotNull(includeStatus, r'RoomGetParticipantsRequestApplicationJson', 'includeStatus'); - } - - @override - RoomGetParticipantsRequestApplicationJson rebuild( - void Function(RoomGetParticipantsRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - RoomGetParticipantsRequestApplicationJsonBuilder toBuilder() => - RoomGetParticipantsRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is RoomGetParticipantsRequestApplicationJson && includeStatus == other.includeStatus; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, includeStatus.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'RoomGetParticipantsRequestApplicationJson') - ..add('includeStatus', includeStatus)) - .toString(); - } -} - -class RoomGetParticipantsRequestApplicationJsonBuilder - implements - Builder, - $RoomGetParticipantsRequestApplicationJsonInterfaceBuilder { - _$RoomGetParticipantsRequestApplicationJson? _$v; - - bool? _includeStatus; - bool? get includeStatus => _$this._includeStatus; - set includeStatus(covariant bool? includeStatus) => _$this._includeStatus = includeStatus; - - RoomGetParticipantsRequestApplicationJsonBuilder() { - RoomGetParticipantsRequestApplicationJson._defaults(this); - } - - RoomGetParticipantsRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _includeStatus = $v.includeStatus; - _$v = null; - } - return this; - } - - @override - void replace(covariant RoomGetParticipantsRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$RoomGetParticipantsRequestApplicationJson; - } - - @override - void update(void Function(RoomGetParticipantsRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - RoomGetParticipantsRequestApplicationJson build() => _build(); - - _$RoomGetParticipantsRequestApplicationJson _build() { - RoomGetParticipantsRequestApplicationJson._validate(this); - final _$result = _$v ?? - _$RoomGetParticipantsRequestApplicationJson._( - includeStatus: BuiltValueNullFieldError.checkNotNull( - includeStatus, r'RoomGetParticipantsRequestApplicationJson', 'includeStatus')); - replace(_$result); - return _$result; - } -} - abstract mixin class $ParticipantInterfaceBuilder { void replace($ParticipantInterface other); void update(void Function($ParticipantInterfaceBuilder) updates); @@ -56160,107 +52928,6 @@ class RoomAddParticipantToRoomResponseApplicationJsonBuilder } } -abstract mixin class $RoomGetBreakoutRoomParticipantsRequestApplicationJsonInterfaceBuilder { - void replace($RoomGetBreakoutRoomParticipantsRequestApplicationJsonInterface other); - void update(void Function($RoomGetBreakoutRoomParticipantsRequestApplicationJsonInterfaceBuilder) updates); - bool? get includeStatus; - set includeStatus(bool? includeStatus); -} - -class _$RoomGetBreakoutRoomParticipantsRequestApplicationJson - extends RoomGetBreakoutRoomParticipantsRequestApplicationJson { - @override - final bool includeStatus; - - factory _$RoomGetBreakoutRoomParticipantsRequestApplicationJson( - [void Function(RoomGetBreakoutRoomParticipantsRequestApplicationJsonBuilder)? updates]) => - (RoomGetBreakoutRoomParticipantsRequestApplicationJsonBuilder()..update(updates))._build(); - - _$RoomGetBreakoutRoomParticipantsRequestApplicationJson._({required this.includeStatus}) : super._() { - BuiltValueNullFieldError.checkNotNull( - includeStatus, r'RoomGetBreakoutRoomParticipantsRequestApplicationJson', 'includeStatus'); - } - - @override - RoomGetBreakoutRoomParticipantsRequestApplicationJson rebuild( - void Function(RoomGetBreakoutRoomParticipantsRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - RoomGetBreakoutRoomParticipantsRequestApplicationJsonBuilder toBuilder() => - RoomGetBreakoutRoomParticipantsRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is RoomGetBreakoutRoomParticipantsRequestApplicationJson && includeStatus == other.includeStatus; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, includeStatus.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'RoomGetBreakoutRoomParticipantsRequestApplicationJson') - ..add('includeStatus', includeStatus)) - .toString(); - } -} - -class RoomGetBreakoutRoomParticipantsRequestApplicationJsonBuilder - implements - Builder, - $RoomGetBreakoutRoomParticipantsRequestApplicationJsonInterfaceBuilder { - _$RoomGetBreakoutRoomParticipantsRequestApplicationJson? _$v; - - bool? _includeStatus; - bool? get includeStatus => _$this._includeStatus; - set includeStatus(covariant bool? includeStatus) => _$this._includeStatus = includeStatus; - - RoomGetBreakoutRoomParticipantsRequestApplicationJsonBuilder() { - RoomGetBreakoutRoomParticipantsRequestApplicationJson._defaults(this); - } - - RoomGetBreakoutRoomParticipantsRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _includeStatus = $v.includeStatus; - _$v = null; - } - return this; - } - - @override - void replace(covariant RoomGetBreakoutRoomParticipantsRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$RoomGetBreakoutRoomParticipantsRequestApplicationJson; - } - - @override - void update(void Function(RoomGetBreakoutRoomParticipantsRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - RoomGetBreakoutRoomParticipantsRequestApplicationJson build() => _build(); - - _$RoomGetBreakoutRoomParticipantsRequestApplicationJson _build() { - RoomGetBreakoutRoomParticipantsRequestApplicationJson._validate(this); - final _$result = _$v ?? - _$RoomGetBreakoutRoomParticipantsRequestApplicationJson._( - includeStatus: BuiltValueNullFieldError.checkNotNull( - includeStatus, r'RoomGetBreakoutRoomParticipantsRequestApplicationJson', 'includeStatus')); - replace(_$result); - return _$result; - } -} - abstract mixin class $RoomGetBreakoutRoomParticipantsResponseApplicationJson_OcsInterfaceBuilder { void replace($RoomGetBreakoutRoomParticipantsResponseApplicationJson_OcsInterface other); void update(void Function($RoomGetBreakoutRoomParticipantsResponseApplicationJson_OcsInterfaceBuilder) updates); @@ -56840,106 +53507,6 @@ class RoomRemoveSelfFromRoomResponseApplicationJsonBuilder } } -abstract mixin class $RoomRemoveAttendeeFromRoomRequestApplicationJsonInterfaceBuilder { - void replace($RoomRemoveAttendeeFromRoomRequestApplicationJsonInterface other); - void update(void Function($RoomRemoveAttendeeFromRoomRequestApplicationJsonInterfaceBuilder) updates); - int? get attendeeId; - set attendeeId(int? attendeeId); -} - -class _$RoomRemoveAttendeeFromRoomRequestApplicationJson extends RoomRemoveAttendeeFromRoomRequestApplicationJson { - @override - final int attendeeId; - - factory _$RoomRemoveAttendeeFromRoomRequestApplicationJson( - [void Function(RoomRemoveAttendeeFromRoomRequestApplicationJsonBuilder)? updates]) => - (RoomRemoveAttendeeFromRoomRequestApplicationJsonBuilder()..update(updates))._build(); - - _$RoomRemoveAttendeeFromRoomRequestApplicationJson._({required this.attendeeId}) : super._() { - BuiltValueNullFieldError.checkNotNull( - attendeeId, r'RoomRemoveAttendeeFromRoomRequestApplicationJson', 'attendeeId'); - } - - @override - RoomRemoveAttendeeFromRoomRequestApplicationJson rebuild( - void Function(RoomRemoveAttendeeFromRoomRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - RoomRemoveAttendeeFromRoomRequestApplicationJsonBuilder toBuilder() => - RoomRemoveAttendeeFromRoomRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is RoomRemoveAttendeeFromRoomRequestApplicationJson && attendeeId == other.attendeeId; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, attendeeId.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'RoomRemoveAttendeeFromRoomRequestApplicationJson') - ..add('attendeeId', attendeeId)) - .toString(); - } -} - -class RoomRemoveAttendeeFromRoomRequestApplicationJsonBuilder - implements - Builder, - $RoomRemoveAttendeeFromRoomRequestApplicationJsonInterfaceBuilder { - _$RoomRemoveAttendeeFromRoomRequestApplicationJson? _$v; - - int? _attendeeId; - int? get attendeeId => _$this._attendeeId; - set attendeeId(covariant int? attendeeId) => _$this._attendeeId = attendeeId; - - RoomRemoveAttendeeFromRoomRequestApplicationJsonBuilder() { - RoomRemoveAttendeeFromRoomRequestApplicationJson._defaults(this); - } - - RoomRemoveAttendeeFromRoomRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _attendeeId = $v.attendeeId; - _$v = null; - } - return this; - } - - @override - void replace(covariant RoomRemoveAttendeeFromRoomRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$RoomRemoveAttendeeFromRoomRequestApplicationJson; - } - - @override - void update(void Function(RoomRemoveAttendeeFromRoomRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - RoomRemoveAttendeeFromRoomRequestApplicationJson build() => _build(); - - _$RoomRemoveAttendeeFromRoomRequestApplicationJson _build() { - RoomRemoveAttendeeFromRoomRequestApplicationJson._validate(this); - final _$result = _$v ?? - _$RoomRemoveAttendeeFromRoomRequestApplicationJson._( - attendeeId: BuiltValueNullFieldError.checkNotNull( - attendeeId, r'RoomRemoveAttendeeFromRoomRequestApplicationJson', 'attendeeId')); - replace(_$result); - return _$result; - } -} - abstract mixin class $RoomRemoveAttendeeFromRoomResponseApplicationJson_OcsInterfaceBuilder { void replace($RoomRemoveAttendeeFromRoomResponseApplicationJson_OcsInterface other); void update(void Function($RoomRemoveAttendeeFromRoomResponseApplicationJson_OcsInterfaceBuilder) updates); @@ -59535,103 +56102,6 @@ class RoomPromoteModeratorResponseApplicationJsonBuilder } } -abstract mixin class $RoomDemoteModeratorRequestApplicationJsonInterfaceBuilder { - void replace($RoomDemoteModeratorRequestApplicationJsonInterface other); - void update(void Function($RoomDemoteModeratorRequestApplicationJsonInterfaceBuilder) updates); - int? get attendeeId; - set attendeeId(int? attendeeId); -} - -class _$RoomDemoteModeratorRequestApplicationJson extends RoomDemoteModeratorRequestApplicationJson { - @override - final int attendeeId; - - factory _$RoomDemoteModeratorRequestApplicationJson( - [void Function(RoomDemoteModeratorRequestApplicationJsonBuilder)? updates]) => - (RoomDemoteModeratorRequestApplicationJsonBuilder()..update(updates))._build(); - - _$RoomDemoteModeratorRequestApplicationJson._({required this.attendeeId}) : super._() { - BuiltValueNullFieldError.checkNotNull(attendeeId, r'RoomDemoteModeratorRequestApplicationJson', 'attendeeId'); - } - - @override - RoomDemoteModeratorRequestApplicationJson rebuild( - void Function(RoomDemoteModeratorRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - RoomDemoteModeratorRequestApplicationJsonBuilder toBuilder() => - RoomDemoteModeratorRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is RoomDemoteModeratorRequestApplicationJson && attendeeId == other.attendeeId; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, attendeeId.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'RoomDemoteModeratorRequestApplicationJson')..add('attendeeId', attendeeId)) - .toString(); - } -} - -class RoomDemoteModeratorRequestApplicationJsonBuilder - implements - Builder, - $RoomDemoteModeratorRequestApplicationJsonInterfaceBuilder { - _$RoomDemoteModeratorRequestApplicationJson? _$v; - - int? _attendeeId; - int? get attendeeId => _$this._attendeeId; - set attendeeId(covariant int? attendeeId) => _$this._attendeeId = attendeeId; - - RoomDemoteModeratorRequestApplicationJsonBuilder() { - RoomDemoteModeratorRequestApplicationJson._defaults(this); - } - - RoomDemoteModeratorRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _attendeeId = $v.attendeeId; - _$v = null; - } - return this; - } - - @override - void replace(covariant RoomDemoteModeratorRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$RoomDemoteModeratorRequestApplicationJson; - } - - @override - void update(void Function(RoomDemoteModeratorRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - RoomDemoteModeratorRequestApplicationJson build() => _build(); - - _$RoomDemoteModeratorRequestApplicationJson _build() { - RoomDemoteModeratorRequestApplicationJson._validate(this); - final _$result = _$v ?? - _$RoomDemoteModeratorRequestApplicationJson._( - attendeeId: BuiltValueNullFieldError.checkNotNull( - attendeeId, r'RoomDemoteModeratorRequestApplicationJson', 'attendeeId')); - replace(_$result); - return _$result; - } -} - abstract mixin class $RoomDemoteModeratorResponseApplicationJson_OcsInterfaceBuilder { void replace($RoomDemoteModeratorResponseApplicationJson_OcsInterface other); void update(void Function($RoomDemoteModeratorResponseApplicationJson_OcsInterfaceBuilder) updates); @@ -65558,261 +62028,6 @@ class RoomCreateGuestByDialInResponseApplicationJsonBuilder } } -abstract mixin class $RoomRejectedDialOutRequestRequestApplicationJson_OptionsInterfaceBuilder { - void replace($RoomRejectedDialOutRequestRequestApplicationJson_OptionsInterface other); - void update(void Function($RoomRejectedDialOutRequestRequestApplicationJson_OptionsInterfaceBuilder) updates); - String? get actorId; - set actorId(String? actorId); - - ActorType? get actorType; - set actorType(ActorType? actorType); - - int? get attendeeId; - set attendeeId(int? attendeeId); -} - -class _$RoomRejectedDialOutRequestRequestApplicationJson_Options - extends RoomRejectedDialOutRequestRequestApplicationJson_Options { - @override - final String? actorId; - @override - final ActorType? actorType; - @override - final int? attendeeId; - - factory _$RoomRejectedDialOutRequestRequestApplicationJson_Options( - [void Function(RoomRejectedDialOutRequestRequestApplicationJson_OptionsBuilder)? updates]) => - (RoomRejectedDialOutRequestRequestApplicationJson_OptionsBuilder()..update(updates))._build(); - - _$RoomRejectedDialOutRequestRequestApplicationJson_Options._({this.actorId, this.actorType, this.attendeeId}) - : super._(); - - @override - RoomRejectedDialOutRequestRequestApplicationJson_Options rebuild( - void Function(RoomRejectedDialOutRequestRequestApplicationJson_OptionsBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - RoomRejectedDialOutRequestRequestApplicationJson_OptionsBuilder toBuilder() => - RoomRejectedDialOutRequestRequestApplicationJson_OptionsBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is RoomRejectedDialOutRequestRequestApplicationJson_Options && - actorId == other.actorId && - actorType == other.actorType && - attendeeId == other.attendeeId; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, actorId.hashCode); - _$hash = $jc(_$hash, actorType.hashCode); - _$hash = $jc(_$hash, attendeeId.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'RoomRejectedDialOutRequestRequestApplicationJson_Options') - ..add('actorId', actorId) - ..add('actorType', actorType) - ..add('attendeeId', attendeeId)) - .toString(); - } -} - -class RoomRejectedDialOutRequestRequestApplicationJson_OptionsBuilder - implements - Builder, - $RoomRejectedDialOutRequestRequestApplicationJson_OptionsInterfaceBuilder { - _$RoomRejectedDialOutRequestRequestApplicationJson_Options? _$v; - - String? _actorId; - String? get actorId => _$this._actorId; - set actorId(covariant String? actorId) => _$this._actorId = actorId; - - ActorType? _actorType; - ActorType? get actorType => _$this._actorType; - set actorType(covariant ActorType? actorType) => _$this._actorType = actorType; - - int? _attendeeId; - int? get attendeeId => _$this._attendeeId; - set attendeeId(covariant int? attendeeId) => _$this._attendeeId = attendeeId; - - RoomRejectedDialOutRequestRequestApplicationJson_OptionsBuilder() { - RoomRejectedDialOutRequestRequestApplicationJson_Options._defaults(this); - } - - RoomRejectedDialOutRequestRequestApplicationJson_OptionsBuilder get _$this { - final $v = _$v; - if ($v != null) { - _actorId = $v.actorId; - _actorType = $v.actorType; - _attendeeId = $v.attendeeId; - _$v = null; - } - return this; - } - - @override - void replace(covariant RoomRejectedDialOutRequestRequestApplicationJson_Options other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$RoomRejectedDialOutRequestRequestApplicationJson_Options; - } - - @override - void update(void Function(RoomRejectedDialOutRequestRequestApplicationJson_OptionsBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - RoomRejectedDialOutRequestRequestApplicationJson_Options build() => _build(); - - _$RoomRejectedDialOutRequestRequestApplicationJson_Options _build() { - RoomRejectedDialOutRequestRequestApplicationJson_Options._validate(this); - final _$result = _$v ?? - _$RoomRejectedDialOutRequestRequestApplicationJson_Options._( - actorId: actorId, actorType: actorType, attendeeId: attendeeId); - replace(_$result); - return _$result; - } -} - -abstract mixin class $RoomRejectedDialOutRequestRequestApplicationJsonInterfaceBuilder { - void replace($RoomRejectedDialOutRequestRequestApplicationJsonInterface other); - void update(void Function($RoomRejectedDialOutRequestRequestApplicationJsonInterfaceBuilder) updates); - String? get callId; - set callId(String? callId); - - RoomRejectedDialOutRequestRequestApplicationJson_OptionsBuilder get options; - set options(RoomRejectedDialOutRequestRequestApplicationJson_OptionsBuilder? options); -} - -class _$RoomRejectedDialOutRequestRequestApplicationJson extends RoomRejectedDialOutRequestRequestApplicationJson { - @override - final String callId; - @override - final RoomRejectedDialOutRequestRequestApplicationJson_Options options; - - factory _$RoomRejectedDialOutRequestRequestApplicationJson( - [void Function(RoomRejectedDialOutRequestRequestApplicationJsonBuilder)? updates]) => - (RoomRejectedDialOutRequestRequestApplicationJsonBuilder()..update(updates))._build(); - - _$RoomRejectedDialOutRequestRequestApplicationJson._({required this.callId, required this.options}) : super._() { - BuiltValueNullFieldError.checkNotNull(callId, r'RoomRejectedDialOutRequestRequestApplicationJson', 'callId'); - BuiltValueNullFieldError.checkNotNull(options, r'RoomRejectedDialOutRequestRequestApplicationJson', 'options'); - } - - @override - RoomRejectedDialOutRequestRequestApplicationJson rebuild( - void Function(RoomRejectedDialOutRequestRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - RoomRejectedDialOutRequestRequestApplicationJsonBuilder toBuilder() => - RoomRejectedDialOutRequestRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is RoomRejectedDialOutRequestRequestApplicationJson && - callId == other.callId && - options == other.options; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, callId.hashCode); - _$hash = $jc(_$hash, options.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'RoomRejectedDialOutRequestRequestApplicationJson') - ..add('callId', callId) - ..add('options', options)) - .toString(); - } -} - -class RoomRejectedDialOutRequestRequestApplicationJsonBuilder - implements - Builder, - $RoomRejectedDialOutRequestRequestApplicationJsonInterfaceBuilder { - _$RoomRejectedDialOutRequestRequestApplicationJson? _$v; - - String? _callId; - String? get callId => _$this._callId; - set callId(covariant String? callId) => _$this._callId = callId; - - RoomRejectedDialOutRequestRequestApplicationJson_OptionsBuilder? _options; - RoomRejectedDialOutRequestRequestApplicationJson_OptionsBuilder get options => - _$this._options ??= RoomRejectedDialOutRequestRequestApplicationJson_OptionsBuilder(); - set options(covariant RoomRejectedDialOutRequestRequestApplicationJson_OptionsBuilder? options) => - _$this._options = options; - - RoomRejectedDialOutRequestRequestApplicationJsonBuilder() { - RoomRejectedDialOutRequestRequestApplicationJson._defaults(this); - } - - RoomRejectedDialOutRequestRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _callId = $v.callId; - _options = $v.options.toBuilder(); - _$v = null; - } - return this; - } - - @override - void replace(covariant RoomRejectedDialOutRequestRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$RoomRejectedDialOutRequestRequestApplicationJson; - } - - @override - void update(void Function(RoomRejectedDialOutRequestRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - RoomRejectedDialOutRequestRequestApplicationJson build() => _build(); - - _$RoomRejectedDialOutRequestRequestApplicationJson _build() { - RoomRejectedDialOutRequestRequestApplicationJson._validate(this); - _$RoomRejectedDialOutRequestRequestApplicationJson _$result; - try { - _$result = _$v ?? - _$RoomRejectedDialOutRequestRequestApplicationJson._( - callId: BuiltValueNullFieldError.checkNotNull( - callId, r'RoomRejectedDialOutRequestRequestApplicationJson', 'callId'), - options: options.build()); - } catch (_) { - late String _$failedField; - try { - _$failedField = 'options'; - options.build(); - } catch (e) { - throw BuiltValueNestedFieldError( - r'RoomRejectedDialOutRequestRequestApplicationJson', _$failedField, e.toString()); - } - rethrow; - } - replace(_$result); - return _$result; - } -} - abstract mixin class $RoomRejectedDialOutRequestResponseApplicationJson_OcsInterfaceBuilder { void replace($RoomRejectedDialOutRequestResponseApplicationJson_OcsInterface other); void update(void Function($RoomRejectedDialOutRequestResponseApplicationJson_OcsInterfaceBuilder) updates); @@ -66857,106 +63072,6 @@ class BotAdminListBotsResponseApplicationJsonBuilder } } -abstract mixin class $CertificateGetCertificateExpirationRequestApplicationJsonInterfaceBuilder { - void replace($CertificateGetCertificateExpirationRequestApplicationJsonInterface other); - void update(void Function($CertificateGetCertificateExpirationRequestApplicationJsonInterfaceBuilder) updates); - String? get host; - set host(String? host); -} - -class _$CertificateGetCertificateExpirationRequestApplicationJson - extends CertificateGetCertificateExpirationRequestApplicationJson { - @override - final String host; - - factory _$CertificateGetCertificateExpirationRequestApplicationJson( - [void Function(CertificateGetCertificateExpirationRequestApplicationJsonBuilder)? updates]) => - (CertificateGetCertificateExpirationRequestApplicationJsonBuilder()..update(updates))._build(); - - _$CertificateGetCertificateExpirationRequestApplicationJson._({required this.host}) : super._() { - BuiltValueNullFieldError.checkNotNull(host, r'CertificateGetCertificateExpirationRequestApplicationJson', 'host'); - } - - @override - CertificateGetCertificateExpirationRequestApplicationJson rebuild( - void Function(CertificateGetCertificateExpirationRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - CertificateGetCertificateExpirationRequestApplicationJsonBuilder toBuilder() => - CertificateGetCertificateExpirationRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is CertificateGetCertificateExpirationRequestApplicationJson && host == other.host; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, host.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'CertificateGetCertificateExpirationRequestApplicationJson') - ..add('host', host)) - .toString(); - } -} - -class CertificateGetCertificateExpirationRequestApplicationJsonBuilder - implements - Builder, - $CertificateGetCertificateExpirationRequestApplicationJsonInterfaceBuilder { - _$CertificateGetCertificateExpirationRequestApplicationJson? _$v; - - String? _host; - String? get host => _$this._host; - set host(covariant String? host) => _$this._host = host; - - CertificateGetCertificateExpirationRequestApplicationJsonBuilder() { - CertificateGetCertificateExpirationRequestApplicationJson._defaults(this); - } - - CertificateGetCertificateExpirationRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _host = $v.host; - _$v = null; - } - return this; - } - - @override - void replace(covariant CertificateGetCertificateExpirationRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$CertificateGetCertificateExpirationRequestApplicationJson; - } - - @override - void update(void Function(CertificateGetCertificateExpirationRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - CertificateGetCertificateExpirationRequestApplicationJson build() => _build(); - - _$CertificateGetCertificateExpirationRequestApplicationJson _build() { - CertificateGetCertificateExpirationRequestApplicationJson._validate(this); - final _$result = _$v ?? - _$CertificateGetCertificateExpirationRequestApplicationJson._( - host: BuiltValueNullFieldError.checkNotNull( - host, r'CertificateGetCertificateExpirationRequestApplicationJson', 'host')); - replace(_$result); - return _$result; - } -} - abstract mixin class $CertificateGetCertificateExpirationResponseApplicationJson_Ocs_DataInterfaceBuilder { void replace($CertificateGetCertificateExpirationResponseApplicationJson_Ocs_DataInterface other); void update( diff --git a/packages/nextcloud/lib/src/api/spreed/spreed.openapi.json b/packages/nextcloud/lib/src/api/spreed/spreed.openapi.json index 4941382ded8..d104c44022e 100644 --- a/packages/nextcloud/lib/src/api/spreed/spreed.openapi.json +++ b/packages/nextcloud/lib/src/api/spreed/spreed.openapi.json @@ -1649,23 +1649,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "darkTheme": { - "type": "boolean", - "default": false, - "description": "Theme used for background" - } - } - } - } - } - }, "parameters": [ { "name": "apiVersion", @@ -1688,6 +1671,19 @@ "pattern": "^[a-z0-9]{4,30}$" } }, + { + "name": "darkTheme", + "in": "query", + "description": "Theme used for background", + "schema": { + "type": "integer", + "default": 0, + "enum": [ + 0, + 1 + ] + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -4002,23 +3998,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "all": { - "type": "boolean", - "default": false, - "description": "whether to also terminate the call for all participants" - } - } - } - } - } - }, "parameters": [ { "name": "apiVersion", @@ -4041,6 +4020,19 @@ "pattern": "^[a-z0-9]{4,30}$" } }, + { + "name": "all", + "in": "query", + "description": "whether to also terminate the call for all participants", + "schema": { + "type": "integer", + "default": 0, + "enum": [ + 0, + 1 + ] + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -4491,98 +4483,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "lookIntoFuture" - ], - "properties": { - "lookIntoFuture": { - "type": "integer", - "format": "int64", - "enum": [ - 0, - 1 - ], - "description": "Polling for new messages (1) or getting the history of the chat (0)" - }, - "limit": { - "type": "integer", - "format": "int64", - "default": 100, - "description": "Number of chat messages to receive (100 by default, 200 at most)" - }, - "lastKnownMessageId": { - "type": "integer", - "format": "int64", - "default": 0, - "description": "The last known message (serves as offset)", - "minimum": 0 - }, - "lastCommonReadId": { - "type": "integer", - "format": "int64", - "default": 0, - "description": "The last known common read message\n (so the response is 200 instead of 304 when\n it changes even when there are no messages)", - "minimum": 0 - }, - "timeout": { - "type": "integer", - "format": "int64", - "default": 30, - "description": "Number of seconds to wait for new messages (30 by default, 30 at most)", - "minimum": 0, - "maximum": 30 - }, - "setReadMarker": { - "type": "integer", - "format": "int64", - "default": 1, - "enum": [ - 0, - 1 - ], - "description": "Automatically set the last read marker when 1,\n if your client does this itself via chat/{token}/read set to 0" - }, - "includeLastKnown": { - "type": "integer", - "format": "int64", - "default": 0, - "enum": [ - 0, - 1 - ], - "description": "Include the $lastKnownMessageId in the messages when 1 (default 0)" - }, - "noStatusUpdate": { - "type": "integer", - "format": "int64", - "default": 0, - "enum": [ - 0, - 1 - ], - "description": "When the user status should not be automatically set to online set to 1 (default 0)" - }, - "markNotificationsAsRead": { - "type": "integer", - "format": "int64", - "default": 1, - "enum": [ - 0, - 1 - ], - "description": "Set to 0 when notifications should not be marked as read (default 1)" - } - } - } - } - } - }, "parameters": [ { "name": "apiVersion", @@ -4605,6 +4505,120 @@ "pattern": "^[a-z0-9]{4,30}$" } }, + { + "name": "lookIntoFuture", + "in": "query", + "description": "Polling for new messages (1) or getting the history of the chat (0)", + "required": true, + "schema": { + "type": "integer", + "format": "int64", + "enum": [ + 0, + 1 + ] + } + }, + { + "name": "limit", + "in": "query", + "description": "Number of chat messages to receive (100 by default, 200 at most)", + "schema": { + "type": "integer", + "format": "int64", + "default": 100 + } + }, + { + "name": "lastKnownMessageId", + "in": "query", + "description": "The last known message (serves as offset)", + "schema": { + "type": "integer", + "format": "int64", + "default": 0, + "minimum": 0 + } + }, + { + "name": "lastCommonReadId", + "in": "query", + "description": "The last known common read message (so the response is 200 instead of 304 when it changes even when there are no messages)", + "schema": { + "type": "integer", + "format": "int64", + "default": 0, + "minimum": 0 + } + }, + { + "name": "timeout", + "in": "query", + "description": "Number of seconds to wait for new messages (30 by default, 30 at most)", + "schema": { + "type": "integer", + "format": "int64", + "default": 30, + "minimum": 0, + "maximum": 30 + } + }, + { + "name": "setReadMarker", + "in": "query", + "description": "Automatically set the last read marker when 1, if your client does this itself via chat/{token}/read set to 0", + "schema": { + "type": "integer", + "format": "int64", + "default": 1, + "enum": [ + 0, + 1 + ] + } + }, + { + "name": "includeLastKnown", + "in": "query", + "description": "Include the $lastKnownMessageId in the messages when 1 (default 0)", + "schema": { + "type": "integer", + "format": "int64", + "default": 0, + "enum": [ + 0, + 1 + ] + } + }, + { + "name": "noStatusUpdate", + "in": "query", + "description": "When the user status should not be automatically set to online set to 1 (default 0)", + "schema": { + "type": "integer", + "format": "int64", + "default": 0, + "enum": [ + 0, + 1 + ] + } + }, + { + "name": "markNotificationsAsRead", + "in": "query", + "description": "Set to 0 when notifications should not be marked as read (default 1)", + "schema": { + "type": "integer", + "format": "int64", + "default": 1, + "enum": [ + 0, + 1 + ] + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -5634,26 +5648,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "limit": { - "type": "integer", - "format": "int64", - "default": 50, - "description": "Number of chat messages to receive in both directions (50 by default, 100 at most, might return 201 messages)", - "minimum": 1, - "maximum": 100 - } - } - } - } - } - }, "parameters": [ { "name": "apiVersion", @@ -5687,6 +5681,18 @@ "minimum": 0 } }, + { + "name": "limit", + "in": "query", + "description": "Number of chat messages to receive in both directions (50 by default, 100 at most, might return 201 messages)", + "schema": { + "type": "integer", + "format": "int64", + "default": 50, + "minimum": 1, + "maximum": 100 + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -6369,36 +6375,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "search" - ], - "properties": { - "search": { - "type": "string", - "description": "Text to search for" - }, - "limit": { - "type": "integer", - "format": "int64", - "default": 20, - "description": "Maximum number of results" - }, - "includeStatus": { - "type": "boolean", - "default": false, - "description": "Include the user statuses" - } - } - } - } - } - }, "parameters": [ { "name": "apiVersion", @@ -6421,6 +6397,38 @@ "pattern": "^[a-z0-9]{4,30}$" } }, + { + "name": "search", + "in": "query", + "description": "Text to search for", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "limit", + "in": "query", + "description": "Maximum number of results", + "schema": { + "type": "integer", + "format": "int64", + "default": 20 + } + }, + { + "name": "includeStatus", + "in": "query", + "description": "Include the user statuses", + "schema": { + "type": "integer", + "default": 0, + "enum": [ + 0, + 1 + ] + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -6698,40 +6706,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "objectType" - ], - "properties": { - "objectType": { - "type": "string", - "description": "Type of the objects" - }, - "lastKnownMessageId": { - "type": "integer", - "format": "int64", - "default": 0, - "description": "ID of the last known message", - "minimum": 0 - }, - "limit": { - "type": "integer", - "format": "int64", - "default": 100, - "description": "Maximum number of objects", - "minimum": 1, - "maximum": 200 - } - } - } - } - } - }, "parameters": [ { "name": "apiVersion", @@ -6754,6 +6728,38 @@ "pattern": "^[a-z0-9]{4,30}$" } }, + { + "name": "objectType", + "in": "query", + "description": "Type of the objects", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "lastKnownMessageId", + "in": "query", + "description": "ID of the last known message", + "schema": { + "type": "integer", + "format": "int64", + "default": 0, + "minimum": 0 + } + }, + { + "name": "limit", + "in": "query", + "description": "Maximum number of objects", + "schema": { + "type": "integer", + "format": "int64", + "default": 100, + "minimum": 1, + "maximum": 200 + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -6825,26 +6831,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "limit": { - "type": "integer", - "format": "int64", - "default": 7, - "description": "Maximum number of objects", - "minimum": 1, - "maximum": 20 - } - } - } - } - } - }, "parameters": [ { "name": "apiVersion", @@ -6867,6 +6853,18 @@ "pattern": "^[a-z0-9]{4,30}$" } }, + { + "name": "limit", + "in": "query", + "description": "Maximum number of objects", + "schema": { + "type": "integer", + "format": "int64", + "default": 7, + "minimum": 1, + "maximum": 20 + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -8815,25 +8813,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "reaction" - ], - "properties": { - "reaction": { - "type": "string", - "description": "Emoji to remove" - } - } - } - } - } - }, "parameters": [ { "name": "apiVersion", @@ -8867,6 +8846,15 @@ "minimum": 0 } }, + { + "name": "reaction", + "in": "query", + "description": "Emoji to remove", + "required": true, + "schema": { + "type": "string" + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -8988,23 +8976,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "reaction": { - "type": "string", - "nullable": true, - "description": "Emoji to filter" - } - } - } - } - } - }, "parameters": [ { "name": "apiVersion", @@ -9038,6 +9009,15 @@ "minimum": 0 } }, + { + "name": "reaction", + "in": "query", + "description": "Emoji to filter", + "schema": { + "type": "string", + "nullable": true + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -9386,27 +9366,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "timestamp" - ], - "properties": { - "timestamp": { - "type": "integer", - "format": "int64", - "description": "Timestamp of the notification to be dismissed", - "minimum": 0 - } - } - } - } - } - }, "parameters": [ { "name": "apiVersion", @@ -9429,6 +9388,17 @@ "pattern": "^[a-z0-9]{4,30}$" } }, + { + "name": "timestamp", + "in": "query", + "description": "Timestamp of the notification to be dismissed", + "required": true, + "schema": { + "type": "integer", + "format": "int64", + "minimum": 0 + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -9671,40 +9641,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "noStatusUpdate": { - "type": "integer", - "format": "int64", - "default": 0, - "enum": [ - 0, - 1 - ], - "description": "When the user status should not be automatically set to online set to 1 (default 0)" - }, - "includeStatus": { - "type": "boolean", - "default": false, - "description": "Include the user status" - }, - "modifiedSince": { - "type": "integer", - "format": "int64", - "default": 0, - "description": "Filter rooms modified after a timestamp", - "minimum": 0 - } - } - } - } - } - }, "parameters": [ { "name": "apiVersion", @@ -9718,6 +9654,44 @@ "default": "v4" } }, + { + "name": "noStatusUpdate", + "in": "query", + "description": "When the user status should not be automatically set to online set to 1 (default 0)", + "schema": { + "type": "integer", + "format": "int64", + "default": 0, + "enum": [ + 0, + 1 + ] + } + }, + { + "name": "includeStatus", + "in": "query", + "description": "Include the user status", + "schema": { + "type": "integer", + "default": 0, + "enum": [ + 0, + 1 + ] + } + }, + { + "name": "modifiedSince", + "in": "query", + "description": "Filter rooms modified after a timestamp", + "schema": { + "type": "integer", + "format": "int64", + "default": 0, + "minimum": 0 + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -10035,23 +10009,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "searchTerm": { - "type": "string", - "default": "", - "description": "search term" - } - } - } - } - } - }, "parameters": [ { "name": "apiVersion", @@ -10065,6 +10022,15 @@ "default": "v4" } }, + { + "name": "searchTerm", + "in": "query", + "description": "search term", + "schema": { + "type": "string", + "default": "" + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -11402,23 +11368,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "includeStatus": { - "type": "boolean", - "default": false, - "description": "Include the user statuses" - } - } - } - } - } - }, "parameters": [ { "name": "apiVersion", @@ -11441,6 +11390,19 @@ "pattern": "^[a-z0-9]{4,30}$" } }, + { + "name": "includeStatus", + "in": "query", + "description": "Include the user statuses", + "schema": { + "type": "integer", + "default": 0, + "enum": [ + 0, + 1 + ] + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -11760,23 +11722,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "includeStatus": { - "type": "boolean", - "default": false, - "description": "Include the user statuses" - } - } - } - } - } - }, "parameters": [ { "name": "apiVersion", @@ -11799,6 +11744,19 @@ "pattern": "^[a-z0-9]{4,30}$" } }, + { + "name": "includeStatus", + "in": "query", + "description": "Include the user statuses", + "schema": { + "type": "integer", + "default": 0, + "enum": [ + 0, + 1 + ] + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -12072,27 +12030,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "attendeeId" - ], - "properties": { - "attendeeId": { - "type": "integer", - "format": "int64", - "description": "ID of the attendee", - "minimum": 0 - } - } - } - } - } - }, "parameters": [ { "name": "apiVersion", @@ -12115,6 +12052,17 @@ "pattern": "^[a-z0-9]{4,30}$" } }, + { + "name": "attendeeId", + "in": "query", + "description": "ID of the attendee", + "required": true, + "schema": { + "type": "integer", + "format": "int64", + "minimum": 0 + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -13376,27 +13324,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "attendeeId" - ], - "properties": { - "attendeeId": { - "type": "integer", - "format": "int64", - "description": "ID of the attendee", - "minimum": 0 - } - } - } - } - } - }, "parameters": [ { "name": "apiVersion", @@ -13419,6 +13346,17 @@ "pattern": "^[a-z0-9]{4,30}$" } }, + { + "name": "attendeeId", + "in": "query", + "description": "ID of the attendee", + "required": true, + "schema": { + "type": "integer", + "format": "int64", + "minimum": 0 + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -14879,23 +14817,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "token": { - "type": "string", - "default": "", - "description": "Token of the room" - } - } - } - } - } - }, "parameters": [ { "name": "apiVersion", @@ -14909,6 +14830,15 @@ "default": "v3" } }, + { + "name": "token", + "in": "query", + "description": "Token of the room", + "schema": { + "type": "string", + "default": "" + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -15585,30 +15515,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "cloudId" - ], - "properties": { - "cloudId": { - "type": "string", - "description": "Federation CloudID to get the avatar for" - }, - "darkTheme": { - "type": "boolean", - "default": false, - "description": "Theme used for background" - } - } - } - } - } - }, "parameters": [ { "name": "apiVersion", @@ -15636,6 +15542,28 @@ ] } }, + { + "name": "cloudId", + "in": "query", + "description": "Federation CloudID to get the avatar for", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "darkTheme", + "in": "query", + "description": "Theme used for background", + "schema": { + "type": "integer", + "default": 0, + "enum": [ + 0, + 1 + ] + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -15677,25 +15605,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "cloudId" - ], - "properties": { - "cloudId": { - "type": "string", - "description": "Federation CloudID to get the avatar for" - } - } - } - } - } - }, "parameters": [ { "name": "apiVersion", @@ -15723,6 +15632,15 @@ ] } }, + { + "name": "cloudId", + "in": "query", + "description": "Federation CloudID to get the avatar for", + "required": true, + "schema": { + "type": "string" + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -15765,30 +15683,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "cloudId" - ], - "properties": { - "cloudId": { - "type": "string", - "description": "Federation CloudID to get the avatar for" - }, - "darkTheme": { - "type": "boolean", - "default": false, - "description": "Theme used for background" - } - } - } - } - } - }, "parameters": [ { "name": "apiVersion", @@ -15825,6 +15719,28 @@ ] } }, + { + "name": "cloudId", + "in": "query", + "description": "Federation CloudID to get the avatar for", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "darkTheme", + "in": "query", + "description": "Theme used for background", + "schema": { + "type": "integer", + "default": 0, + "enum": [ + 0, + 1 + ] + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -15867,25 +15783,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "cloudId" - ], - "properties": { - "cloudId": { - "type": "string", - "description": "Federation CloudID to get the avatar for" - } - } - } - } - } - }, "parameters": [ { "name": "apiVersion", @@ -15922,6 +15819,15 @@ ] } }, + { + "name": "cloudId", + "in": "query", + "description": "Federation CloudID to get the avatar for", + "required": true, + "schema": { + "type": "string" + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -16930,25 +16836,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "reaction" - ], - "properties": { - "reaction": { - "type": "string", - "description": "Reaction to delete" - } - } - } - } - } - }, "parameters": [ { "name": "apiVersion", @@ -16982,6 +16869,15 @@ "format": "int64" } }, + { + "name": "reaction", + "in": "query", + "description": "Reaction to delete", + "required": true, + "schema": { + "type": "string" + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -17202,25 +17098,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "host" - ], - "properties": { - "host": { - "type": "string", - "description": "Host to check" - } - } - } - } - } - }, "parameters": [ { "name": "apiVersion", @@ -17234,6 +17111,15 @@ "default": "v1" } }, + { + "name": "host", + "in": "query", + "description": "Host to check", + "required": true, + "schema": { + "type": "string" + } + }, { "name": "OCS-APIRequest", "in": "header", @@ -19114,7 +19000,7 @@ }, "options": { "type": "object", - "default": [], + "default": {}, "description": "Additional details to verify the validity of the request", "properties": { "actorId": { @@ -19468,42 +19354,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "callId" - ], - "properties": { - "callId": { - "type": "string", - "description": "The call ID provided by the SIP bridge earlier to uniquely identify the call to terminate" - }, - "options": { - "type": "object", - "default": [], - "description": "Additional details to verify the validity of the request", - "properties": { - "actorId": { - "type": "string" - }, - "actorType": { - "$ref": "#/components/schemas/ActorType" - }, - "attendeeId": { - "type": "integer", - "format": "int64" - } - } - } - } - } - } - } - }, "parameters": [ { "name": "apiVersion", @@ -19526,6 +19376,23 @@ "pattern": "^[a-z0-9]{4,30}$" } }, + { + "name": "callId", + "in": "query", + "description": "The call ID provided by the SIP bridge earlier to uniquely identify the call to terminate", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "options", + "in": "query", + "description": "Additional details to verify the validity of the request", + "schema": { + "type": "string" + } + }, { "name": "OCS-APIRequest", "in": "header", diff --git a/packages/nextcloud/lib/src/api/tables/tables.openapi.dart b/packages/nextcloud/lib/src/api/tables/tables.openapi.dart index df7df2b12af..72f543a8471 100644 --- a/packages/nextcloud/lib/src/api/tables/tables.openapi.dart +++ b/packages/nextcloud/lib/src/api/tables/tables.openapi.dart @@ -1635,6 +1635,7 @@ class $Api1Client { /// /// Parameters: /// * [tableId] Table ID. + /// * [viewId] View ID. /// /// Status codes: /// * 200: View deleted @@ -1648,13 +1649,17 @@ class $Api1Client { @_i2.experimental _i3.Request $indexTableColumns_Request({ required int tableId, - Api1IndexTableColumnsRequestApplicationJson? $body, + int? viewId, }) { final _parameters = {}; final __tableId = _$jsonSerializers.serialize(tableId, specifiedType: const FullType(int)); _parameters['tableId'] = __tableId; - final _path = _i5.UriTemplate('/index.php/apps/tables/api/1/tables/{tableId}/columns').expand(_parameters); + final __viewId = _$jsonSerializers.serialize(viewId, specifiedType: const FullType(int)); + _parameters['viewId'] = __viewId; + + final _path = + _i5.UriTemplate('/index.php/apps/tables/api/1/tables/{tableId}/columns{?viewId*}').expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); _request.headers['Accept'] = 'application/json'; @@ -1675,20 +1680,6 @@ class $Api1Client { } // coverage:ignore-end - _request.headers['Content-Type'] = 'application/json'; - _request.body = $body != null - ? json.encode( - _$jsonSerializers.serialize( - $body, - specifiedType: const FullType(Api1IndexTableColumnsRequestApplicationJson), - ), - ) - : json.encode( - _$jsonSerializers.serialize( - Api1IndexTableColumnsRequestApplicationJson(), - specifiedType: const FullType(Api1IndexTableColumnsRequestApplicationJson), - ), - ); return _request; } @@ -1699,6 +1690,7 @@ class $Api1Client { /// /// Parameters: /// * [tableId] Table ID. + /// * [viewId] View ID. /// /// Status codes: /// * 200: View deleted @@ -1711,11 +1703,11 @@ class $Api1Client { /// * [$indexTableColumns_Serializer] for a converter to parse the `Response` from an executed request. Future<_i1.DynamiteResponse, void>> indexTableColumns({ required int tableId, - Api1IndexTableColumnsRequestApplicationJson? $body, + int? viewId, }) async { final _request = $indexTableColumns_Request( tableId: tableId, - $body: $body, + viewId: viewId, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -2258,6 +2250,8 @@ class $Api1Client { /// /// Parameters: /// * [tableId] Table ID. + /// * [limit] Limit. + /// * [offset] Offset. /// /// Status codes: /// * 200: Row values returned @@ -2271,13 +2265,21 @@ class $Api1Client { @_i2.experimental _i3.Request $indexTableRowsSimple_Request({ required int tableId, - Api1IndexTableRowsSimpleRequestApplicationJson? $body, + int? limit, + int? offset, }) { final _parameters = {}; final __tableId = _$jsonSerializers.serialize(tableId, specifiedType: const FullType(int)); _parameters['tableId'] = __tableId; - final _path = _i5.UriTemplate('/index.php/apps/tables/api/1/tables/{tableId}/rows/simple').expand(_parameters); + final __limit = _$jsonSerializers.serialize(limit, specifiedType: const FullType(int)); + _parameters['limit'] = __limit; + + final __offset = _$jsonSerializers.serialize(offset, specifiedType: const FullType(int)); + _parameters['offset'] = __offset; + + final _path = _i5.UriTemplate('/index.php/apps/tables/api/1/tables/{tableId}/rows/simple{?limit*,offset*}') + .expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); _request.headers['Accept'] = 'application/json'; @@ -2298,20 +2300,6 @@ class $Api1Client { } // coverage:ignore-end - _request.headers['Content-Type'] = 'application/json'; - _request.body = $body != null - ? json.encode( - _$jsonSerializers.serialize( - $body, - specifiedType: const FullType(Api1IndexTableRowsSimpleRequestApplicationJson), - ), - ) - : json.encode( - _$jsonSerializers.serialize( - Api1IndexTableRowsSimpleRequestApplicationJson(), - specifiedType: const FullType(Api1IndexTableRowsSimpleRequestApplicationJson), - ), - ); return _request; } @@ -2322,6 +2310,8 @@ class $Api1Client { /// /// Parameters: /// * [tableId] Table ID. + /// * [limit] Limit. + /// * [offset] Offset. /// /// Status codes: /// * 200: Row values returned @@ -2334,11 +2324,13 @@ class $Api1Client { /// * [$indexTableRowsSimple_Serializer] for a converter to parse the `Response` from an executed request. Future<_i1.DynamiteResponse, void>> indexTableRowsSimple({ required int tableId, - Api1IndexTableRowsSimpleRequestApplicationJson? $body, + int? limit, + int? offset, }) async { final _request = $indexTableRowsSimple_Request( tableId: tableId, - $body: $body, + limit: limit, + offset: offset, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -2363,6 +2355,8 @@ class $Api1Client { /// /// Parameters: /// * [tableId] Table ID. + /// * [limit] Limit. + /// * [offset] Offset. /// /// Status codes: /// * 200: Rows returned @@ -2376,13 +2370,21 @@ class $Api1Client { @_i2.experimental _i3.Request $indexTableRows_Request({ required int tableId, - Api1IndexTableRowsRequestApplicationJson? $body, + int? limit, + int? offset, }) { final _parameters = {}; final __tableId = _$jsonSerializers.serialize(tableId, specifiedType: const FullType(int)); _parameters['tableId'] = __tableId; - final _path = _i5.UriTemplate('/index.php/apps/tables/api/1/tables/{tableId}/rows').expand(_parameters); + final __limit = _$jsonSerializers.serialize(limit, specifiedType: const FullType(int)); + _parameters['limit'] = __limit; + + final __offset = _$jsonSerializers.serialize(offset, specifiedType: const FullType(int)); + _parameters['offset'] = __offset; + + final _path = + _i5.UriTemplate('/index.php/apps/tables/api/1/tables/{tableId}/rows{?limit*,offset*}').expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); _request.headers['Accept'] = 'application/json'; @@ -2403,17 +2405,6 @@ class $Api1Client { } // coverage:ignore-end - _request.headers['Content-Type'] = 'application/json'; - _request.body = $body != null - ? json.encode( - _$jsonSerializers.serialize($body, specifiedType: const FullType(Api1IndexTableRowsRequestApplicationJson)), - ) - : json.encode( - _$jsonSerializers.serialize( - Api1IndexTableRowsRequestApplicationJson(), - specifiedType: const FullType(Api1IndexTableRowsRequestApplicationJson), - ), - ); return _request; } @@ -2424,6 +2415,8 @@ class $Api1Client { /// /// Parameters: /// * [tableId] Table ID. + /// * [limit] Limit. + /// * [offset] Offset. /// /// Status codes: /// * 200: Rows returned @@ -2436,11 +2429,13 @@ class $Api1Client { /// * [$indexTableRows_Serializer] for a converter to parse the `Response` from an executed request. Future<_i1.DynamiteResponse, void>> indexTableRows({ required int tableId, - Api1IndexTableRowsRequestApplicationJson? $body, + int? limit, + int? offset, }) async { final _request = $indexTableRows_Request( tableId: tableId, - $body: $body, + limit: limit, + offset: offset, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -2558,6 +2553,8 @@ class $Api1Client { /// /// Parameters: /// * [viewId] View ID. + /// * [limit] Limit. + /// * [offset] Offset. /// /// Status codes: /// * 200: Rows returned @@ -2571,13 +2568,21 @@ class $Api1Client { @_i2.experimental _i3.Request $indexViewRows_Request({ required int viewId, - Api1IndexViewRowsRequestApplicationJson? $body, + int? limit, + int? offset, }) { final _parameters = {}; final __viewId = _$jsonSerializers.serialize(viewId, specifiedType: const FullType(int)); _parameters['viewId'] = __viewId; - final _path = _i5.UriTemplate('/index.php/apps/tables/api/1/views/{viewId}/rows').expand(_parameters); + final __limit = _$jsonSerializers.serialize(limit, specifiedType: const FullType(int)); + _parameters['limit'] = __limit; + + final __offset = _$jsonSerializers.serialize(offset, specifiedType: const FullType(int)); + _parameters['offset'] = __offset; + + final _path = + _i5.UriTemplate('/index.php/apps/tables/api/1/views/{viewId}/rows{?limit*,offset*}').expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); _request.headers['Accept'] = 'application/json'; @@ -2598,17 +2603,6 @@ class $Api1Client { } // coverage:ignore-end - _request.headers['Content-Type'] = 'application/json'; - _request.body = $body != null - ? json.encode( - _$jsonSerializers.serialize($body, specifiedType: const FullType(Api1IndexViewRowsRequestApplicationJson)), - ) - : json.encode( - _$jsonSerializers.serialize( - Api1IndexViewRowsRequestApplicationJson(), - specifiedType: const FullType(Api1IndexViewRowsRequestApplicationJson), - ), - ); return _request; } @@ -2619,6 +2613,8 @@ class $Api1Client { /// /// Parameters: /// * [viewId] View ID. + /// * [limit] Limit. + /// * [offset] Offset. /// /// Status codes: /// * 200: Rows returned @@ -2631,11 +2627,13 @@ class $Api1Client { /// * [$indexViewRows_Serializer] for a converter to parse the `Response` from an executed request. Future<_i1.DynamiteResponse, void>> indexViewRows({ required int viewId, - Api1IndexViewRowsRequestApplicationJson? $body, + int? limit, + int? offset, }) async { final _request = $indexViewRows_Request( viewId: viewId, - $body: $body, + limit: limit, + offset: offset, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -7987,70 +7985,6 @@ abstract class ContextNavigation } } -@BuiltValue(instantiable: false) -sealed class $Api1IndexTableColumnsRequestApplicationJsonInterface { - /// View ID. - int? get viewId; - - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$Api1IndexTableColumnsRequestApplicationJsonInterfaceBuilder]. - $Api1IndexTableColumnsRequestApplicationJsonInterface rebuild( - void Function($Api1IndexTableColumnsRequestApplicationJsonInterfaceBuilder) updates, - ); - - /// Converts the instance to a builder [$Api1IndexTableColumnsRequestApplicationJsonInterfaceBuilder]. - $Api1IndexTableColumnsRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($Api1IndexTableColumnsRequestApplicationJsonInterfaceBuilder b) {} - @BuiltValueHook(finalizeBuilder: true) - static void _validate($Api1IndexTableColumnsRequestApplicationJsonInterfaceBuilder b) {} -} - -abstract class Api1IndexTableColumnsRequestApplicationJson - implements - $Api1IndexTableColumnsRequestApplicationJsonInterface, - Built { - /// Creates a new Api1IndexTableColumnsRequestApplicationJson object using the builder pattern. - factory Api1IndexTableColumnsRequestApplicationJson([ - void Function(Api1IndexTableColumnsRequestApplicationJsonBuilder)? b, - ]) = _$Api1IndexTableColumnsRequestApplicationJson; - - // coverage:ignore-start - const Api1IndexTableColumnsRequestApplicationJson._(); - // coverage:ignore-end - - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory Api1IndexTableColumnsRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end - - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end - - /// Serializer for Api1IndexTableColumnsRequestApplicationJson. - static Serializer get serializer => - _$api1IndexTableColumnsRequestApplicationJsonSerializer; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults(Api1IndexTableColumnsRequestApplicationJsonBuilder b) { - $Api1IndexTableColumnsRequestApplicationJsonInterface._defaults(b); - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate(Api1IndexTableColumnsRequestApplicationJsonBuilder b) { - $Api1IndexTableColumnsRequestApplicationJsonInterface._validate(b); - } -} - @BuiltValue(instantiable: false) sealed class $ColumnInterface { int get id; @@ -8684,140 +8618,6 @@ abstract class Api1UpdateColumnRequestApplicationJson } } -@BuiltValue(instantiable: false) -sealed class $Api1IndexTableRowsSimpleRequestApplicationJsonInterface { - /// Limit. - int? get limit; - - /// Offset. - int? get offset; - - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$Api1IndexTableRowsSimpleRequestApplicationJsonInterfaceBuilder]. - $Api1IndexTableRowsSimpleRequestApplicationJsonInterface rebuild( - void Function($Api1IndexTableRowsSimpleRequestApplicationJsonInterfaceBuilder) updates, - ); - - /// Converts the instance to a builder [$Api1IndexTableRowsSimpleRequestApplicationJsonInterfaceBuilder]. - $Api1IndexTableRowsSimpleRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($Api1IndexTableRowsSimpleRequestApplicationJsonInterfaceBuilder b) {} - @BuiltValueHook(finalizeBuilder: true) - static void _validate($Api1IndexTableRowsSimpleRequestApplicationJsonInterfaceBuilder b) {} -} - -abstract class Api1IndexTableRowsSimpleRequestApplicationJson - implements - $Api1IndexTableRowsSimpleRequestApplicationJsonInterface, - Built { - /// Creates a new Api1IndexTableRowsSimpleRequestApplicationJson object using the builder pattern. - factory Api1IndexTableRowsSimpleRequestApplicationJson([ - void Function(Api1IndexTableRowsSimpleRequestApplicationJsonBuilder)? b, - ]) = _$Api1IndexTableRowsSimpleRequestApplicationJson; - - // coverage:ignore-start - const Api1IndexTableRowsSimpleRequestApplicationJson._(); - // coverage:ignore-end - - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory Api1IndexTableRowsSimpleRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end - - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end - - /// Serializer for Api1IndexTableRowsSimpleRequestApplicationJson. - static Serializer get serializer => - _$api1IndexTableRowsSimpleRequestApplicationJsonSerializer; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults(Api1IndexTableRowsSimpleRequestApplicationJsonBuilder b) { - $Api1IndexTableRowsSimpleRequestApplicationJsonInterface._defaults(b); - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate(Api1IndexTableRowsSimpleRequestApplicationJsonBuilder b) { - $Api1IndexTableRowsSimpleRequestApplicationJsonInterface._validate(b); - } -} - -@BuiltValue(instantiable: false) -sealed class $Api1IndexTableRowsRequestApplicationJsonInterface { - /// Limit. - int? get limit; - - /// Offset. - int? get offset; - - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$Api1IndexTableRowsRequestApplicationJsonInterfaceBuilder]. - $Api1IndexTableRowsRequestApplicationJsonInterface rebuild( - void Function($Api1IndexTableRowsRequestApplicationJsonInterfaceBuilder) updates, - ); - - /// Converts the instance to a builder [$Api1IndexTableRowsRequestApplicationJsonInterfaceBuilder]. - $Api1IndexTableRowsRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($Api1IndexTableRowsRequestApplicationJsonInterfaceBuilder b) {} - @BuiltValueHook(finalizeBuilder: true) - static void _validate($Api1IndexTableRowsRequestApplicationJsonInterfaceBuilder b) {} -} - -abstract class Api1IndexTableRowsRequestApplicationJson - implements - $Api1IndexTableRowsRequestApplicationJsonInterface, - Built { - /// Creates a new Api1IndexTableRowsRequestApplicationJson object using the builder pattern. - factory Api1IndexTableRowsRequestApplicationJson([ - void Function(Api1IndexTableRowsRequestApplicationJsonBuilder)? b, - ]) = _$Api1IndexTableRowsRequestApplicationJson; - - // coverage:ignore-start - const Api1IndexTableRowsRequestApplicationJson._(); - // coverage:ignore-end - - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory Api1IndexTableRowsRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end - - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end - - /// Serializer for Api1IndexTableRowsRequestApplicationJson. - static Serializer get serializer => - _$api1IndexTableRowsRequestApplicationJsonSerializer; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults(Api1IndexTableRowsRequestApplicationJsonBuilder b) { - $Api1IndexTableRowsRequestApplicationJsonInterface._defaults(b); - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate(Api1IndexTableRowsRequestApplicationJsonBuilder b) { - $Api1IndexTableRowsRequestApplicationJsonInterface._validate(b); - } -} - @BuiltValue(instantiable: false) sealed class $Row_DataInterface { int get columnId; @@ -9005,72 +8805,6 @@ abstract class Api1CreateRowInTableRequestApplicationJson } } -@BuiltValue(instantiable: false) -sealed class $Api1IndexViewRowsRequestApplicationJsonInterface { - /// Limit. - int? get limit; - - /// Offset. - int? get offset; - - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$Api1IndexViewRowsRequestApplicationJsonInterfaceBuilder]. - $Api1IndexViewRowsRequestApplicationJsonInterface rebuild( - void Function($Api1IndexViewRowsRequestApplicationJsonInterfaceBuilder) updates, - ); - - /// Converts the instance to a builder [$Api1IndexViewRowsRequestApplicationJsonInterfaceBuilder]. - $Api1IndexViewRowsRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($Api1IndexViewRowsRequestApplicationJsonInterfaceBuilder b) {} - @BuiltValueHook(finalizeBuilder: true) - static void _validate($Api1IndexViewRowsRequestApplicationJsonInterfaceBuilder b) {} -} - -abstract class Api1IndexViewRowsRequestApplicationJson - implements - $Api1IndexViewRowsRequestApplicationJsonInterface, - Built { - /// Creates a new Api1IndexViewRowsRequestApplicationJson object using the builder pattern. - factory Api1IndexViewRowsRequestApplicationJson([void Function(Api1IndexViewRowsRequestApplicationJsonBuilder)? b]) = - _$Api1IndexViewRowsRequestApplicationJson; - - // coverage:ignore-start - const Api1IndexViewRowsRequestApplicationJson._(); - // coverage:ignore-end - - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory Api1IndexViewRowsRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end - - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end - - /// Serializer for Api1IndexViewRowsRequestApplicationJson. - static Serializer get serializer => - _$api1IndexViewRowsRequestApplicationJsonSerializer; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults(Api1IndexViewRowsRequestApplicationJsonBuilder b) { - $Api1IndexViewRowsRequestApplicationJsonInterface._defaults(b); - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate(Api1IndexViewRowsRequestApplicationJsonBuilder b) { - $Api1IndexViewRowsRequestApplicationJsonInterface._validate(b); - } -} - /// Data as key - value store. typedef Api1CreateRowInViewRequestApplicationJson_Data = ({ BuiltMap? builtMapStringJsonObject, @@ -14856,11 +14590,6 @@ final Serializers _$serializers = (Serializers().toBuilder() ..add(Api1UpdateShareDisplayModeRequestApplicationJson_Target.serializer) ..addBuilderFactory(const FullType(ContextNavigation), ContextNavigationBuilder.new) ..add(ContextNavigation.serializer) - ..addBuilderFactory( - const FullType(Api1IndexTableColumnsRequestApplicationJson), - Api1IndexTableColumnsRequestApplicationJsonBuilder.new, - ) - ..add(Api1IndexTableColumnsRequestApplicationJson.serializer) ..addBuilderFactory(const FullType(Column), ColumnBuilder.new) ..add(Column.serializer) ..addBuilderFactory(const FullType(BuiltList, [FullType(Column)]), ListBuilder.new) @@ -14881,17 +14610,7 @@ final Serializers _$serializers = (Serializers().toBuilder() Api1UpdateColumnRequestApplicationJsonBuilder.new, ) ..add(Api1UpdateColumnRequestApplicationJson.serializer) - ..addBuilderFactory( - const FullType(Api1IndexTableRowsSimpleRequestApplicationJson), - Api1IndexTableRowsSimpleRequestApplicationJsonBuilder.new, - ) - ..add(Api1IndexTableRowsSimpleRequestApplicationJson.serializer) ..addBuilderFactory(const FullType(BuiltList, [FullType(String)]), ListBuilder.new) - ..addBuilderFactory( - const FullType(Api1IndexTableRowsRequestApplicationJson), - Api1IndexTableRowsRequestApplicationJsonBuilder.new, - ) - ..add(Api1IndexTableRowsRequestApplicationJson.serializer) ..addBuilderFactory(const FullType(Row), RowBuilder.new) ..add(Row.serializer) ..addBuilderFactory(const FullType(Row_Data), Row_DataBuilder.new) @@ -14907,11 +14626,6 @@ final Serializers _$serializers = (Serializers().toBuilder() MapBuilder.new, ) ..add($3f5057013fe375112018fdacdf7c966aExtension._serializer) - ..addBuilderFactory( - const FullType(Api1IndexViewRowsRequestApplicationJson), - Api1IndexViewRowsRequestApplicationJsonBuilder.new, - ) - ..add(Api1IndexViewRowsRequestApplicationJson.serializer) ..addBuilderFactory( const FullType(Api1CreateRowInViewRequestApplicationJson), Api1CreateRowInViewRequestApplicationJsonBuilder.new, diff --git a/packages/nextcloud/lib/src/api/tables/tables.openapi.g.dart b/packages/nextcloud/lib/src/api/tables/tables.openapi.g.dart index e6f970ebb7e..fcaf27ea773 100644 --- a/packages/nextcloud/lib/src/api/tables/tables.openapi.g.dart +++ b/packages/nextcloud/lib/src/api/tables/tables.openapi.g.dart @@ -706,8 +706,6 @@ Serializer _$api1UpdateShareDisplayModeRequestApplicationJsonSerializer = _$Api1UpdateShareDisplayModeRequestApplicationJsonSerializer(); Serializer _$contextNavigationSerializer = _$ContextNavigationSerializer(); -Serializer _$api1IndexTableColumnsRequestApplicationJsonSerializer = - _$Api1IndexTableColumnsRequestApplicationJsonSerializer(); Serializer _$columnSerializer = _$ColumnSerializer(); Serializer _$api1CreateTableColumnRequestApplicationJsonSerializer = _$Api1CreateTableColumnRequestApplicationJsonSerializer(); @@ -715,16 +713,10 @@ Serializer _$api1CreateColumnRequestAppl _$Api1CreateColumnRequestApplicationJsonSerializer(); Serializer _$api1UpdateColumnRequestApplicationJsonSerializer = _$Api1UpdateColumnRequestApplicationJsonSerializer(); -Serializer _$api1IndexTableRowsSimpleRequestApplicationJsonSerializer = - _$Api1IndexTableRowsSimpleRequestApplicationJsonSerializer(); -Serializer _$api1IndexTableRowsRequestApplicationJsonSerializer = - _$Api1IndexTableRowsRequestApplicationJsonSerializer(); Serializer _$rowDataSerializer = _$Row_DataSerializer(); Serializer _$rowSerializer = _$RowSerializer(); Serializer _$api1CreateRowInTableRequestApplicationJsonSerializer = _$Api1CreateRowInTableRequestApplicationJsonSerializer(); -Serializer _$api1IndexViewRowsRequestApplicationJsonSerializer = - _$Api1IndexViewRowsRequestApplicationJsonSerializer(); Serializer _$api1CreateRowInViewRequestApplicationJsonSerializer = _$Api1CreateRowInViewRequestApplicationJsonSerializer(); Serializer _$api1UpdateRowRequestApplicationJsonSerializer = @@ -2300,51 +2292,6 @@ class _$ContextNavigationSerializer implements StructuredSerializer { - @override - final Iterable types = const [ - Api1IndexTableColumnsRequestApplicationJson, - _$Api1IndexTableColumnsRequestApplicationJson - ]; - @override - final String wireName = 'Api1IndexTableColumnsRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, Api1IndexTableColumnsRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = []; - Object? value; - value = object.viewId; - if (value != null) { - result - ..add('viewId') - ..add(serializers.serialize(value, specifiedType: const FullType(int))); - } - return result; - } - - @override - Api1IndexTableColumnsRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = Api1IndexTableColumnsRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'viewId': - result.viewId = serializers.deserialize(value, specifiedType: const FullType(int)) as int?; - break; - } - } - - return result.build(); - } -} - class _$ColumnSerializer implements StructuredSerializer { @override final Iterable types = const [Column, _$Column]; @@ -3067,114 +3014,6 @@ class _$Api1UpdateColumnRequestApplicationJsonSerializer } } -class _$Api1IndexTableRowsSimpleRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - Api1IndexTableRowsSimpleRequestApplicationJson, - _$Api1IndexTableRowsSimpleRequestApplicationJson - ]; - @override - final String wireName = 'Api1IndexTableRowsSimpleRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, Api1IndexTableRowsSimpleRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = []; - Object? value; - value = object.limit; - if (value != null) { - result - ..add('limit') - ..add(serializers.serialize(value, specifiedType: const FullType(int))); - } - value = object.offset; - if (value != null) { - result - ..add('offset') - ..add(serializers.serialize(value, specifiedType: const FullType(int))); - } - return result; - } - - @override - Api1IndexTableRowsSimpleRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = Api1IndexTableRowsSimpleRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'limit': - result.limit = serializers.deserialize(value, specifiedType: const FullType(int)) as int?; - break; - case 'offset': - result.offset = serializers.deserialize(value, specifiedType: const FullType(int)) as int?; - break; - } - } - - return result.build(); - } -} - -class _$Api1IndexTableRowsRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - Api1IndexTableRowsRequestApplicationJson, - _$Api1IndexTableRowsRequestApplicationJson - ]; - @override - final String wireName = 'Api1IndexTableRowsRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, Api1IndexTableRowsRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = []; - Object? value; - value = object.limit; - if (value != null) { - result - ..add('limit') - ..add(serializers.serialize(value, specifiedType: const FullType(int))); - } - value = object.offset; - if (value != null) { - result - ..add('offset') - ..add(serializers.serialize(value, specifiedType: const FullType(int))); - } - return result; - } - - @override - Api1IndexTableRowsRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = Api1IndexTableRowsRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'limit': - result.limit = serializers.deserialize(value, specifiedType: const FullType(int)) as int?; - break; - case 'offset': - result.offset = serializers.deserialize(value, specifiedType: const FullType(int)) as int?; - break; - } - } - - return result.build(); - } -} - class _$Row_DataSerializer implements StructuredSerializer { @override final Iterable types = const [Row_Data, _$Row_Data]; @@ -3334,60 +3173,6 @@ class _$Api1CreateRowInTableRequestApplicationJsonSerializer } } -class _$Api1IndexViewRowsRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - Api1IndexViewRowsRequestApplicationJson, - _$Api1IndexViewRowsRequestApplicationJson - ]; - @override - final String wireName = 'Api1IndexViewRowsRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, Api1IndexViewRowsRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = []; - Object? value; - value = object.limit; - if (value != null) { - result - ..add('limit') - ..add(serializers.serialize(value, specifiedType: const FullType(int))); - } - value = object.offset; - if (value != null) { - result - ..add('offset') - ..add(serializers.serialize(value, specifiedType: const FullType(int))); - } - return result; - } - - @override - Api1IndexViewRowsRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = Api1IndexViewRowsRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'limit': - result.limit = serializers.deserialize(value, specifiedType: const FullType(int)) as int?; - break; - case 'offset': - result.offset = serializers.deserialize(value, specifiedType: const FullType(int)) as int?; - break; - } - } - - return result.build(); - } -} - class _$Api1CreateRowInViewRequestApplicationJsonSerializer implements StructuredSerializer { @override @@ -10542,98 +10327,6 @@ class ContextNavigationBuilder } } -abstract mixin class $Api1IndexTableColumnsRequestApplicationJsonInterfaceBuilder { - void replace($Api1IndexTableColumnsRequestApplicationJsonInterface other); - void update(void Function($Api1IndexTableColumnsRequestApplicationJsonInterfaceBuilder) updates); - int? get viewId; - set viewId(int? viewId); -} - -class _$Api1IndexTableColumnsRequestApplicationJson extends Api1IndexTableColumnsRequestApplicationJson { - @override - final int? viewId; - - factory _$Api1IndexTableColumnsRequestApplicationJson( - [void Function(Api1IndexTableColumnsRequestApplicationJsonBuilder)? updates]) => - (Api1IndexTableColumnsRequestApplicationJsonBuilder()..update(updates))._build(); - - _$Api1IndexTableColumnsRequestApplicationJson._({this.viewId}) : super._(); - - @override - Api1IndexTableColumnsRequestApplicationJson rebuild( - void Function(Api1IndexTableColumnsRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - Api1IndexTableColumnsRequestApplicationJsonBuilder toBuilder() => - Api1IndexTableColumnsRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is Api1IndexTableColumnsRequestApplicationJson && viewId == other.viewId; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, viewId.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'Api1IndexTableColumnsRequestApplicationJson')..add('viewId', viewId)) - .toString(); - } -} - -class Api1IndexTableColumnsRequestApplicationJsonBuilder - implements - Builder, - $Api1IndexTableColumnsRequestApplicationJsonInterfaceBuilder { - _$Api1IndexTableColumnsRequestApplicationJson? _$v; - - int? _viewId; - int? get viewId => _$this._viewId; - set viewId(covariant int? viewId) => _$this._viewId = viewId; - - Api1IndexTableColumnsRequestApplicationJsonBuilder() { - Api1IndexTableColumnsRequestApplicationJson._defaults(this); - } - - Api1IndexTableColumnsRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _viewId = $v.viewId; - _$v = null; - } - return this; - } - - @override - void replace(covariant Api1IndexTableColumnsRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$Api1IndexTableColumnsRequestApplicationJson; - } - - @override - void update(void Function(Api1IndexTableColumnsRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - Api1IndexTableColumnsRequestApplicationJson build() => _build(); - - _$Api1IndexTableColumnsRequestApplicationJson _build() { - Api1IndexTableColumnsRequestApplicationJson._validate(this); - final _$result = _$v ?? _$Api1IndexTableColumnsRequestApplicationJson._(viewId: viewId); - replace(_$result); - return _$result; - } -} - abstract mixin class $ColumnInterfaceBuilder { void replace($ColumnInterface other); void update(void Function($ColumnInterfaceBuilder) updates); @@ -12192,216 +11885,6 @@ class Api1UpdateColumnRequestApplicationJsonBuilder } } -abstract mixin class $Api1IndexTableRowsSimpleRequestApplicationJsonInterfaceBuilder { - void replace($Api1IndexTableRowsSimpleRequestApplicationJsonInterface other); - void update(void Function($Api1IndexTableRowsSimpleRequestApplicationJsonInterfaceBuilder) updates); - int? get limit; - set limit(int? limit); - - int? get offset; - set offset(int? offset); -} - -class _$Api1IndexTableRowsSimpleRequestApplicationJson extends Api1IndexTableRowsSimpleRequestApplicationJson { - @override - final int? limit; - @override - final int? offset; - - factory _$Api1IndexTableRowsSimpleRequestApplicationJson( - [void Function(Api1IndexTableRowsSimpleRequestApplicationJsonBuilder)? updates]) => - (Api1IndexTableRowsSimpleRequestApplicationJsonBuilder()..update(updates))._build(); - - _$Api1IndexTableRowsSimpleRequestApplicationJson._({this.limit, this.offset}) : super._(); - - @override - Api1IndexTableRowsSimpleRequestApplicationJson rebuild( - void Function(Api1IndexTableRowsSimpleRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - Api1IndexTableRowsSimpleRequestApplicationJsonBuilder toBuilder() => - Api1IndexTableRowsSimpleRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is Api1IndexTableRowsSimpleRequestApplicationJson && limit == other.limit && offset == other.offset; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, limit.hashCode); - _$hash = $jc(_$hash, offset.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'Api1IndexTableRowsSimpleRequestApplicationJson') - ..add('limit', limit) - ..add('offset', offset)) - .toString(); - } -} - -class Api1IndexTableRowsSimpleRequestApplicationJsonBuilder - implements - Builder, - $Api1IndexTableRowsSimpleRequestApplicationJsonInterfaceBuilder { - _$Api1IndexTableRowsSimpleRequestApplicationJson? _$v; - - int? _limit; - int? get limit => _$this._limit; - set limit(covariant int? limit) => _$this._limit = limit; - - int? _offset; - int? get offset => _$this._offset; - set offset(covariant int? offset) => _$this._offset = offset; - - Api1IndexTableRowsSimpleRequestApplicationJsonBuilder() { - Api1IndexTableRowsSimpleRequestApplicationJson._defaults(this); - } - - Api1IndexTableRowsSimpleRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _limit = $v.limit; - _offset = $v.offset; - _$v = null; - } - return this; - } - - @override - void replace(covariant Api1IndexTableRowsSimpleRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$Api1IndexTableRowsSimpleRequestApplicationJson; - } - - @override - void update(void Function(Api1IndexTableRowsSimpleRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - Api1IndexTableRowsSimpleRequestApplicationJson build() => _build(); - - _$Api1IndexTableRowsSimpleRequestApplicationJson _build() { - Api1IndexTableRowsSimpleRequestApplicationJson._validate(this); - final _$result = _$v ?? _$Api1IndexTableRowsSimpleRequestApplicationJson._(limit: limit, offset: offset); - replace(_$result); - return _$result; - } -} - -abstract mixin class $Api1IndexTableRowsRequestApplicationJsonInterfaceBuilder { - void replace($Api1IndexTableRowsRequestApplicationJsonInterface other); - void update(void Function($Api1IndexTableRowsRequestApplicationJsonInterfaceBuilder) updates); - int? get limit; - set limit(int? limit); - - int? get offset; - set offset(int? offset); -} - -class _$Api1IndexTableRowsRequestApplicationJson extends Api1IndexTableRowsRequestApplicationJson { - @override - final int? limit; - @override - final int? offset; - - factory _$Api1IndexTableRowsRequestApplicationJson( - [void Function(Api1IndexTableRowsRequestApplicationJsonBuilder)? updates]) => - (Api1IndexTableRowsRequestApplicationJsonBuilder()..update(updates))._build(); - - _$Api1IndexTableRowsRequestApplicationJson._({this.limit, this.offset}) : super._(); - - @override - Api1IndexTableRowsRequestApplicationJson rebuild( - void Function(Api1IndexTableRowsRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - Api1IndexTableRowsRequestApplicationJsonBuilder toBuilder() => - Api1IndexTableRowsRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is Api1IndexTableRowsRequestApplicationJson && limit == other.limit && offset == other.offset; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, limit.hashCode); - _$hash = $jc(_$hash, offset.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'Api1IndexTableRowsRequestApplicationJson') - ..add('limit', limit) - ..add('offset', offset)) - .toString(); - } -} - -class Api1IndexTableRowsRequestApplicationJsonBuilder - implements - Builder, - $Api1IndexTableRowsRequestApplicationJsonInterfaceBuilder { - _$Api1IndexTableRowsRequestApplicationJson? _$v; - - int? _limit; - int? get limit => _$this._limit; - set limit(covariant int? limit) => _$this._limit = limit; - - int? _offset; - int? get offset => _$this._offset; - set offset(covariant int? offset) => _$this._offset = offset; - - Api1IndexTableRowsRequestApplicationJsonBuilder() { - Api1IndexTableRowsRequestApplicationJson._defaults(this); - } - - Api1IndexTableRowsRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _limit = $v.limit; - _offset = $v.offset; - _$v = null; - } - return this; - } - - @override - void replace(covariant Api1IndexTableRowsRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$Api1IndexTableRowsRequestApplicationJson; - } - - @override - void update(void Function(Api1IndexTableRowsRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - Api1IndexTableRowsRequestApplicationJson build() => _build(); - - _$Api1IndexTableRowsRequestApplicationJson _build() { - Api1IndexTableRowsRequestApplicationJson._validate(this); - final _$result = _$v ?? _$Api1IndexTableRowsRequestApplicationJson._(limit: limit, offset: offset); - replace(_$result); - return _$result; - } -} - abstract mixin class $Row_DataInterfaceBuilder { void replace($Row_DataInterface other); void update(void Function($Row_DataInterfaceBuilder) updates); @@ -12800,111 +12283,6 @@ class Api1CreateRowInTableRequestApplicationJsonBuilder } } -abstract mixin class $Api1IndexViewRowsRequestApplicationJsonInterfaceBuilder { - void replace($Api1IndexViewRowsRequestApplicationJsonInterface other); - void update(void Function($Api1IndexViewRowsRequestApplicationJsonInterfaceBuilder) updates); - int? get limit; - set limit(int? limit); - - int? get offset; - set offset(int? offset); -} - -class _$Api1IndexViewRowsRequestApplicationJson extends Api1IndexViewRowsRequestApplicationJson { - @override - final int? limit; - @override - final int? offset; - - factory _$Api1IndexViewRowsRequestApplicationJson( - [void Function(Api1IndexViewRowsRequestApplicationJsonBuilder)? updates]) => - (Api1IndexViewRowsRequestApplicationJsonBuilder()..update(updates))._build(); - - _$Api1IndexViewRowsRequestApplicationJson._({this.limit, this.offset}) : super._(); - - @override - Api1IndexViewRowsRequestApplicationJson rebuild( - void Function(Api1IndexViewRowsRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - Api1IndexViewRowsRequestApplicationJsonBuilder toBuilder() => - Api1IndexViewRowsRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is Api1IndexViewRowsRequestApplicationJson && limit == other.limit && offset == other.offset; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, limit.hashCode); - _$hash = $jc(_$hash, offset.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'Api1IndexViewRowsRequestApplicationJson') - ..add('limit', limit) - ..add('offset', offset)) - .toString(); - } -} - -class Api1IndexViewRowsRequestApplicationJsonBuilder - implements - Builder, - $Api1IndexViewRowsRequestApplicationJsonInterfaceBuilder { - _$Api1IndexViewRowsRequestApplicationJson? _$v; - - int? _limit; - int? get limit => _$this._limit; - set limit(covariant int? limit) => _$this._limit = limit; - - int? _offset; - int? get offset => _$this._offset; - set offset(covariant int? offset) => _$this._offset = offset; - - Api1IndexViewRowsRequestApplicationJsonBuilder() { - Api1IndexViewRowsRequestApplicationJson._defaults(this); - } - - Api1IndexViewRowsRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _limit = $v.limit; - _offset = $v.offset; - _$v = null; - } - return this; - } - - @override - void replace(covariant Api1IndexViewRowsRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$Api1IndexViewRowsRequestApplicationJson; - } - - @override - void update(void Function(Api1IndexViewRowsRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - Api1IndexViewRowsRequestApplicationJson build() => _build(); - - _$Api1IndexViewRowsRequestApplicationJson _build() { - Api1IndexViewRowsRequestApplicationJson._validate(this); - final _$result = _$v ?? _$Api1IndexViewRowsRequestApplicationJson._(limit: limit, offset: offset); - replace(_$result); - return _$result; - } -} - abstract mixin class $Api1CreateRowInViewRequestApplicationJsonInterfaceBuilder { void replace($Api1CreateRowInViewRequestApplicationJsonInterface other); void update(void Function($Api1CreateRowInViewRequestApplicationJsonInterfaceBuilder) updates); diff --git a/packages/nextcloud/lib/src/api/tables/tables.openapi.json b/packages/nextcloud/lib/src/api/tables/tables.openapi.json index 3ddc072b17f..5ba8e169139 100644 --- a/packages/nextcloud/lib/src/api/tables/tables.openapi.json +++ b/packages/nextcloud/lib/src/api/tables/tables.openapi.json @@ -2624,24 +2624,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "viewId": { - "type": "integer", - "format": "int64", - "nullable": true, - "description": "View ID" - } - } - } - } - } - }, "parameters": [ { "name": "tableId", @@ -2652,6 +2634,16 @@ "type": "integer", "format": "int64" } + }, + { + "name": "viewId", + "in": "query", + "description": "View ID", + "schema": { + "type": "integer", + "format": "int64", + "nullable": true + } } ], "responses": { @@ -3595,30 +3587,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "limit": { - "type": "integer", - "format": "int64", - "nullable": true, - "description": "Limit" - }, - "offset": { - "type": "integer", - "format": "int64", - "nullable": true, - "description": "Offset" - } - } - } - } - } - }, "parameters": [ { "name": "tableId", @@ -3629,6 +3597,26 @@ "type": "integer", "format": "int64" } + }, + { + "name": "limit", + "in": "query", + "description": "Limit", + "schema": { + "type": "integer", + "format": "int64", + "nullable": true + } + }, + { + "name": "offset", + "in": "query", + "description": "Offset", + "schema": { + "type": "integer", + "format": "int64", + "nullable": true + } } ], "responses": { @@ -3714,30 +3702,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "limit": { - "type": "integer", - "format": "int64", - "nullable": true, - "description": "Limit" - }, - "offset": { - "type": "integer", - "format": "int64", - "nullable": true, - "description": "Offset" - } - } - } - } - } - }, "parameters": [ { "name": "tableId", @@ -3748,6 +3712,26 @@ "type": "integer", "format": "int64" } + }, + { + "name": "limit", + "in": "query", + "description": "Limit", + "schema": { + "type": "integer", + "format": "int64", + "nullable": true + } + }, + { + "name": "offset", + "in": "query", + "description": "Offset", + "schema": { + "type": "integer", + "format": "int64", + "nullable": true + } } ], "responses": { @@ -3934,30 +3918,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "limit": { - "type": "integer", - "format": "int64", - "nullable": true, - "description": "Limit" - }, - "offset": { - "type": "integer", - "format": "int64", - "nullable": true, - "description": "Offset" - } - } - } - } - } - }, "parameters": [ { "name": "viewId", @@ -3968,6 +3928,26 @@ "type": "integer", "format": "int64" } + }, + { + "name": "limit", + "in": "query", + "description": "Limit", + "schema": { + "type": "integer", + "format": "int64", + "nullable": true + } + }, + { + "name": "offset", + "in": "query", + "description": "Offset", + "schema": { + "type": "integer", + "format": "int64", + "nullable": true + } } ], "responses": { diff --git a/packages/nextcloud/lib/src/api/theming/theming.openapi.dart b/packages/nextcloud/lib/src/api/theming/theming.openapi.dart index 5e9ca5eb560..318f33d8e4c 100644 --- a/packages/nextcloud/lib/src/api/theming/theming.openapi.dart +++ b/packages/nextcloud/lib/src/api/theming/theming.openapi.dart @@ -16,7 +16,6 @@ /// It can be obtained at `https://spdx.org/licenses/AGPL-3.0-only.html`. library; // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:convert'; import 'dart:typed_data'; import 'package:built_collection/built_collection.dart'; @@ -349,6 +348,8 @@ class $ThemingClient { /// /// Parameters: /// * [themeId] ID of the theme. + /// * [plain] Let the browser decide the CSS priority. Defaults to `0`. + /// * [withCustomCss] Include custom CSS. Defaults to `0`. /// /// Status codes: /// * 200: Stylesheet returned @@ -360,13 +361,26 @@ class $ThemingClient { @_i2.experimental _i3.Request $getThemeStylesheet_Request({ required String themeId, - ThemingGetThemeStylesheetRequestApplicationJson? $body, + ThemingGetThemeStylesheetPlain? plain, + ThemingGetThemeStylesheetWithCustomCss? withCustomCss, }) { final _parameters = {}; final __themeId = _$jsonSerializers.serialize(themeId, specifiedType: const FullType(String)); _parameters['themeId'] = __themeId; - final _path = _i4.UriTemplate('/index.php/apps/theming/theme/{themeId}.css').expand(_parameters); + var __plain = _$jsonSerializers.serialize(plain, specifiedType: const FullType(ThemingGetThemeStylesheetPlain)); + __plain ??= 0; + _parameters['plain'] = __plain; + + var __withCustomCss = _$jsonSerializers.serialize( + withCustomCss, + specifiedType: const FullType(ThemingGetThemeStylesheetWithCustomCss), + ); + __withCustomCss ??= 0; + _parameters['withCustomCss'] = __withCustomCss; + + final _path = + _i4.UriTemplate('/index.php/apps/theming/theme/{themeId}.css{?plain*,withCustomCss*}').expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); _request.headers['Accept'] = 'text/css'; @@ -385,20 +399,6 @@ class $ThemingClient { } // coverage:ignore-end - _request.headers['Content-Type'] = 'application/json'; - _request.body = $body != null - ? json.encode( - _$jsonSerializers.serialize( - $body, - specifiedType: const FullType(ThemingGetThemeStylesheetRequestApplicationJson), - ), - ) - : json.encode( - _$jsonSerializers.serialize( - ThemingGetThemeStylesheetRequestApplicationJson(), - specifiedType: const FullType(ThemingGetThemeStylesheetRequestApplicationJson), - ), - ); return _request; } @@ -409,6 +409,8 @@ class $ThemingClient { /// /// Parameters: /// * [themeId] ID of the theme. + /// * [plain] Let the browser decide the CSS priority. Defaults to `0`. + /// * [withCustomCss] Include custom CSS. Defaults to `0`. /// /// Status codes: /// * 200: Stylesheet returned @@ -419,11 +421,13 @@ class $ThemingClient { /// * [$getThemeStylesheet_Serializer] for a converter to parse the `Response` from an executed request. Future<_i1.DynamiteResponse> getThemeStylesheet({ required String themeId, - ThemingGetThemeStylesheetRequestApplicationJson? $body, + ThemingGetThemeStylesheetPlain? plain, + ThemingGetThemeStylesheetWithCustomCss? withCustomCss, }) async { final _request = $getThemeStylesheet_Request( themeId: themeId, - $body: $body, + plain: plain, + withCustomCss: withCustomCss, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -448,6 +452,7 @@ class $ThemingClient { /// /// Parameters: /// * [key] Key of the image. + /// * [useSvg] Return image as SVG. Defaults to `1`. /// /// Status codes: /// * 200: Image returned @@ -460,13 +465,17 @@ class $ThemingClient { @_i2.experimental _i3.Request $getImage_Request({ required String key, - ThemingGetImageRequestApplicationJson? $body, + ThemingGetImageUseSvg? useSvg, }) { final _parameters = {}; final __key = _$jsonSerializers.serialize(key, specifiedType: const FullType(String)); _parameters['key'] = __key; - final _path = _i4.UriTemplate('/index.php/apps/theming/image/{key}').expand(_parameters); + var __useSvg = _$jsonSerializers.serialize(useSvg, specifiedType: const FullType(ThemingGetImageUseSvg)); + __useSvg ??= 1; + _parameters['useSvg'] = __useSvg; + + final _path = _i4.UriTemplate('/index.php/apps/theming/image/{key}{?useSvg*}').expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); _request.headers['Accept'] = '*/*'; @@ -485,17 +494,6 @@ class $ThemingClient { } // coverage:ignore-end - _request.headers['Content-Type'] = 'application/json'; - _request.body = $body != null - ? json.encode( - _$jsonSerializers.serialize($body, specifiedType: const FullType(ThemingGetImageRequestApplicationJson)), - ) - : json.encode( - _$jsonSerializers.serialize( - ThemingGetImageRequestApplicationJson(), - specifiedType: const FullType(ThemingGetImageRequestApplicationJson), - ), - ); return _request; } @@ -506,6 +504,7 @@ class $ThemingClient { /// /// Parameters: /// * [key] Key of the image. + /// * [useSvg] Return image as SVG. Defaults to `1`. /// /// Status codes: /// * 200: Image returned @@ -517,11 +516,11 @@ class $ThemingClient { /// * [$getImage_Serializer] for a converter to parse the `Response` from an executed request. Future<_i1.DynamiteResponse> getImage({ required String key, - ThemingGetImageRequestApplicationJson? $body, + ThemingGetImageUseSvg? useSvg, }) async { final _request = $getImage_Request( key: key, - $body: $body, + useSvg: useSvg, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -878,156 +877,199 @@ class $UserThemeClient { } } -@BuiltValue(instantiable: false) -sealed class $ThemingGetThemeStylesheetRequestApplicationJsonInterface { - static final _$plain = _$jsonSerializers.deserialize( - false, - specifiedType: const FullType(bool), - )! as bool; +class ThemingGetThemeStylesheetPlain extends EnumClass { + const ThemingGetThemeStylesheetPlain._(super.name); - static final _$withCustomCss = _$jsonSerializers.deserialize( - false, - specifiedType: const FullType(bool), - )! as bool; + /// `0` + @BuiltValueEnumConst(wireName: '0') + static const ThemingGetThemeStylesheetPlain $0 = _$themingGetThemeStylesheetPlain$0; - /// Let the browser decide the CSS priority. - bool get plain; + /// `1` + @BuiltValueEnumConst(wireName: '1') + static const ThemingGetThemeStylesheetPlain $1 = _$themingGetThemeStylesheetPlain$1; - /// Include custom CSS. - bool get withCustomCss; + /// Returns a set with all values this enum contains. + // coverage:ignore-start + static BuiltSet get values => _$themingGetThemeStylesheetPlainValues; + // coverage:ignore-end - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$ThemingGetThemeStylesheetRequestApplicationJsonInterfaceBuilder]. - $ThemingGetThemeStylesheetRequestApplicationJsonInterface rebuild( - void Function($ThemingGetThemeStylesheetRequestApplicationJsonInterfaceBuilder) updates, - ); + /// Returns the enum value associated to the [name]. + static ThemingGetThemeStylesheetPlain valueOf(String name) => _$valueOfThemingGetThemeStylesheetPlain(name); - /// Converts the instance to a builder [$ThemingGetThemeStylesheetRequestApplicationJsonInterfaceBuilder]. - $ThemingGetThemeStylesheetRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($ThemingGetThemeStylesheetRequestApplicationJsonInterfaceBuilder b) { - b.plain = _$plain; - b.withCustomCss = _$withCustomCss; - } + /// Returns the serialized value of this enum value. + int get value => _$jsonSerializers.serializeWith(serializer, this)! as int; - @BuiltValueHook(finalizeBuilder: true) - static void _validate($ThemingGetThemeStylesheetRequestApplicationJsonInterfaceBuilder b) {} + /// Serializer for ThemingGetThemeStylesheetPlain. + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + const _$ThemingGetThemeStylesheetPlainSerializer(); } -abstract class ThemingGetThemeStylesheetRequestApplicationJson - implements - $ThemingGetThemeStylesheetRequestApplicationJsonInterface, - Built { - /// Creates a new ThemingGetThemeStylesheetRequestApplicationJson object using the builder pattern. - factory ThemingGetThemeStylesheetRequestApplicationJson([ - void Function(ThemingGetThemeStylesheetRequestApplicationJsonBuilder)? b, - ]) = _$ThemingGetThemeStylesheetRequestApplicationJson; +class _$ThemingGetThemeStylesheetPlainSerializer implements PrimitiveSerializer { + const _$ThemingGetThemeStylesheetPlainSerializer(); + + static const Map _toWire = { + ThemingGetThemeStylesheetPlain.$0: 0, + ThemingGetThemeStylesheetPlain.$1: 1, + }; + + static const Map _fromWire = { + 0: ThemingGetThemeStylesheetPlain.$0, + 1: ThemingGetThemeStylesheetPlain.$1, + }; + + @override + Iterable get types => const [ThemingGetThemeStylesheetPlain]; + + @override + String get wireName => 'ThemingGetThemeStylesheetPlain'; + + @override + Object serialize( + Serializers serializers, + ThemingGetThemeStylesheetPlain object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + ThemingGetThemeStylesheetPlain deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; +} - // coverage:ignore-start - const ThemingGetThemeStylesheetRequestApplicationJson._(); - // coverage:ignore-end +class ThemingGetThemeStylesheetWithCustomCss extends EnumClass { + const ThemingGetThemeStylesheetWithCustomCss._(super.name); - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory ThemingGetThemeStylesheetRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end + /// `0` + @BuiltValueEnumConst(wireName: '0') + static const ThemingGetThemeStylesheetWithCustomCss $0 = _$themingGetThemeStylesheetWithCustomCss$0; - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. + /// `1` + @BuiltValueEnumConst(wireName: '1') + static const ThemingGetThemeStylesheetWithCustomCss $1 = _$themingGetThemeStylesheetWithCustomCss$1; + + /// Returns a set with all values this enum contains. // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; + static BuiltSet get values => _$themingGetThemeStylesheetWithCustomCssValues; // coverage:ignore-end - /// Serializer for ThemingGetThemeStylesheetRequestApplicationJson. - static Serializer get serializer => - _$themingGetThemeStylesheetRequestApplicationJsonSerializer; + /// Returns the enum value associated to the [name]. + static ThemingGetThemeStylesheetWithCustomCss valueOf(String name) => + _$valueOfThemingGetThemeStylesheetWithCustomCss(name); - @BuiltValueHook(initializeBuilder: true) - static void _defaults(ThemingGetThemeStylesheetRequestApplicationJsonBuilder b) { - $ThemingGetThemeStylesheetRequestApplicationJsonInterface._defaults(b); - } + /// Returns the serialized value of this enum value. + int get value => _$jsonSerializers.serializeWith(serializer, this)! as int; - @BuiltValueHook(finalizeBuilder: true) - static void _validate(ThemingGetThemeStylesheetRequestApplicationJsonBuilder b) { - $ThemingGetThemeStylesheetRequestApplicationJsonInterface._validate(b); - } + /// Serializer for ThemingGetThemeStylesheetWithCustomCss. + @BuiltValueSerializer(custom: true) + static Serializer get serializer => + const _$ThemingGetThemeStylesheetWithCustomCssSerializer(); } -@BuiltValue(instantiable: false) -sealed class $ThemingGetImageRequestApplicationJsonInterface { - static final _$useSvg = _$jsonSerializers.deserialize( - true, - specifiedType: const FullType(bool), - )! as bool; - - /// Return image as SVG. - bool get useSvg; - - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$ThemingGetImageRequestApplicationJsonInterfaceBuilder]. - $ThemingGetImageRequestApplicationJsonInterface rebuild( - void Function($ThemingGetImageRequestApplicationJsonInterfaceBuilder) updates, - ); - - /// Converts the instance to a builder [$ThemingGetImageRequestApplicationJsonInterfaceBuilder]. - $ThemingGetImageRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($ThemingGetImageRequestApplicationJsonInterfaceBuilder b) { - b.useSvg = _$useSvg; - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate($ThemingGetImageRequestApplicationJsonInterfaceBuilder b) {} +class _$ThemingGetThemeStylesheetWithCustomCssSerializer + implements PrimitiveSerializer { + const _$ThemingGetThemeStylesheetWithCustomCssSerializer(); + + static const Map _toWire = + { + ThemingGetThemeStylesheetWithCustomCss.$0: 0, + ThemingGetThemeStylesheetWithCustomCss.$1: 1, + }; + + static const Map _fromWire = + { + 0: ThemingGetThemeStylesheetWithCustomCss.$0, + 1: ThemingGetThemeStylesheetWithCustomCss.$1, + }; + + @override + Iterable get types => const [ThemingGetThemeStylesheetWithCustomCss]; + + @override + String get wireName => 'ThemingGetThemeStylesheetWithCustomCss'; + + @override + Object serialize( + Serializers serializers, + ThemingGetThemeStylesheetWithCustomCss object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + ThemingGetThemeStylesheetWithCustomCss deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } -abstract class ThemingGetImageRequestApplicationJson - implements - $ThemingGetImageRequestApplicationJsonInterface, - Built { - /// Creates a new ThemingGetImageRequestApplicationJson object using the builder pattern. - factory ThemingGetImageRequestApplicationJson([void Function(ThemingGetImageRequestApplicationJsonBuilder)? b]) = - _$ThemingGetImageRequestApplicationJson; +class ThemingGetImageUseSvg extends EnumClass { + const ThemingGetImageUseSvg._(super.name); - // coverage:ignore-start - const ThemingGetImageRequestApplicationJson._(); - // coverage:ignore-end + /// `0` + @BuiltValueEnumConst(wireName: '0') + static const ThemingGetImageUseSvg $0 = _$themingGetImageUseSvg$0; - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory ThemingGetImageRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end + /// `1` + @BuiltValueEnumConst(wireName: '1') + static const ThemingGetImageUseSvg $1 = _$themingGetImageUseSvg$1; - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. + /// Returns a set with all values this enum contains. // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; + static BuiltSet get values => _$themingGetImageUseSvgValues; // coverage:ignore-end - /// Serializer for ThemingGetImageRequestApplicationJson. - static Serializer get serializer => - _$themingGetImageRequestApplicationJsonSerializer; + /// Returns the enum value associated to the [name]. + static ThemingGetImageUseSvg valueOf(String name) => _$valueOfThemingGetImageUseSvg(name); - @BuiltValueHook(initializeBuilder: true) - static void _defaults(ThemingGetImageRequestApplicationJsonBuilder b) { - $ThemingGetImageRequestApplicationJsonInterface._defaults(b); - } + /// Returns the serialized value of this enum value. + int get value => _$jsonSerializers.serializeWith(serializer, this)! as int; - @BuiltValueHook(finalizeBuilder: true) - static void _validate(ThemingGetImageRequestApplicationJsonBuilder b) { - $ThemingGetImageRequestApplicationJsonInterface._validate(b); - } + /// Serializer for ThemingGetImageUseSvg. + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$ThemingGetImageUseSvgSerializer(); +} + +class _$ThemingGetImageUseSvgSerializer implements PrimitiveSerializer { + const _$ThemingGetImageUseSvgSerializer(); + + static const Map _toWire = { + ThemingGetImageUseSvg.$0: 0, + ThemingGetImageUseSvg.$1: 1, + }; + + static const Map _fromWire = { + 0: ThemingGetImageUseSvg.$0, + 1: ThemingGetImageUseSvg.$1, + }; + + @override + Iterable get types => const [ThemingGetImageUseSvg]; + + @override + String get wireName => 'ThemingGetImageUseSvg'; + + @override + Object serialize( + Serializers serializers, + ThemingGetImageUseSvg object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + ThemingGetImageUseSvg deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -1630,16 +1672,9 @@ abstract class PublicCapabilities @_i2.visibleForTesting final Serializers $serializers = _$serializers; final Serializers _$serializers = (Serializers().toBuilder() - ..addBuilderFactory( - const FullType(ThemingGetThemeStylesheetRequestApplicationJson), - ThemingGetThemeStylesheetRequestApplicationJsonBuilder.new, - ) - ..add(ThemingGetThemeStylesheetRequestApplicationJson.serializer) - ..addBuilderFactory( - const FullType(ThemingGetImageRequestApplicationJson), - ThemingGetImageRequestApplicationJsonBuilder.new, - ) - ..add(ThemingGetImageRequestApplicationJson.serializer) + ..add(ThemingGetThemeStylesheetPlain.serializer) + ..add(ThemingGetThemeStylesheetWithCustomCss.serializer) + ..add(ThemingGetImageUseSvg.serializer) ..addBuilderFactory( const FullType(ThemingGetManifestResponseApplicationJson), ThemingGetManifestResponseApplicationJsonBuilder.new, diff --git a/packages/nextcloud/lib/src/api/theming/theming.openapi.g.dart b/packages/nextcloud/lib/src/api/theming/theming.openapi.g.dart index 4337dee477c..41dd30841eb 100644 --- a/packages/nextcloud/lib/src/api/theming/theming.openapi.g.dart +++ b/packages/nextcloud/lib/src/api/theming/theming.openapi.g.dart @@ -6,11 +6,68 @@ part of 'theming.openapi.dart'; // BuiltValueGenerator // ************************************************************************** -Serializer - _$themingGetThemeStylesheetRequestApplicationJsonSerializer = - _$ThemingGetThemeStylesheetRequestApplicationJsonSerializer(); -Serializer _$themingGetImageRequestApplicationJsonSerializer = - _$ThemingGetImageRequestApplicationJsonSerializer(); +const ThemingGetThemeStylesheetPlain _$themingGetThemeStylesheetPlain$0 = ThemingGetThemeStylesheetPlain._('\$0'); +const ThemingGetThemeStylesheetPlain _$themingGetThemeStylesheetPlain$1 = ThemingGetThemeStylesheetPlain._('\$1'); + +ThemingGetThemeStylesheetPlain _$valueOfThemingGetThemeStylesheetPlain(String name) { + switch (name) { + case '\$0': + return _$themingGetThemeStylesheetPlain$0; + case '\$1': + return _$themingGetThemeStylesheetPlain$1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$themingGetThemeStylesheetPlainValues = + BuiltSet(const [ + _$themingGetThemeStylesheetPlain$0, + _$themingGetThemeStylesheetPlain$1, +]); + +const ThemingGetThemeStylesheetWithCustomCss _$themingGetThemeStylesheetWithCustomCss$0 = + ThemingGetThemeStylesheetWithCustomCss._('\$0'); +const ThemingGetThemeStylesheetWithCustomCss _$themingGetThemeStylesheetWithCustomCss$1 = + ThemingGetThemeStylesheetWithCustomCss._('\$1'); + +ThemingGetThemeStylesheetWithCustomCss _$valueOfThemingGetThemeStylesheetWithCustomCss(String name) { + switch (name) { + case '\$0': + return _$themingGetThemeStylesheetWithCustomCss$0; + case '\$1': + return _$themingGetThemeStylesheetWithCustomCss$1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$themingGetThemeStylesheetWithCustomCssValues = + BuiltSet(const [ + _$themingGetThemeStylesheetWithCustomCss$0, + _$themingGetThemeStylesheetWithCustomCss$1, +]); + +const ThemingGetImageUseSvg _$themingGetImageUseSvg$0 = ThemingGetImageUseSvg._('\$0'); +const ThemingGetImageUseSvg _$themingGetImageUseSvg$1 = ThemingGetImageUseSvg._('\$1'); + +ThemingGetImageUseSvg _$valueOfThemingGetImageUseSvg(String name) { + switch (name) { + case '\$0': + return _$themingGetImageUseSvg$0; + case '\$1': + return _$themingGetImageUseSvg$1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$themingGetImageUseSvgValues = + BuiltSet(const [ + _$themingGetImageUseSvg$0, + _$themingGetImageUseSvg$1, +]); + Serializer _$themingGetManifestResponseApplicationJsonIconsSerializer = _$ThemingGetManifestResponseApplicationJson_IconsSerializer(); Serializer _$themingGetManifestResponseApplicationJsonSerializer = @@ -28,92 +85,6 @@ Serializer _$userThemeDisableTheme Serializer _$publicCapabilitiesThemingSerializer = _$PublicCapabilities_ThemingSerializer(); Serializer _$publicCapabilitiesSerializer = _$PublicCapabilitiesSerializer(); -class _$ThemingGetThemeStylesheetRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - ThemingGetThemeStylesheetRequestApplicationJson, - _$ThemingGetThemeStylesheetRequestApplicationJson - ]; - @override - final String wireName = 'ThemingGetThemeStylesheetRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, ThemingGetThemeStylesheetRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'plain', - serializers.serialize(object.plain, specifiedType: const FullType(bool)), - 'withCustomCss', - serializers.serialize(object.withCustomCss, specifiedType: const FullType(bool)), - ]; - - return result; - } - - @override - ThemingGetThemeStylesheetRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = ThemingGetThemeStylesheetRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'plain': - result.plain = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; - break; - case 'withCustomCss': - result.withCustomCss = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; - break; - } - } - - return result.build(); - } -} - -class _$ThemingGetImageRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ThemingGetImageRequestApplicationJson, _$ThemingGetImageRequestApplicationJson]; - @override - final String wireName = 'ThemingGetImageRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, ThemingGetImageRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'useSvg', - serializers.serialize(object.useSvg, specifiedType: const FullType(bool)), - ]; - - return result; - } - - @override - ThemingGetImageRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = ThemingGetImageRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'useSvg': - result.useSvg = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; - break; - } - } - - return result.build(); - } -} - class _$ThemingGetManifestResponseApplicationJson_IconsSerializer implements StructuredSerializer { @override @@ -642,217 +613,6 @@ class _$PublicCapabilitiesSerializer implements StructuredSerializer - (ThemingGetThemeStylesheetRequestApplicationJsonBuilder()..update(updates))._build(); - - _$ThemingGetThemeStylesheetRequestApplicationJson._({required this.plain, required this.withCustomCss}) : super._() { - BuiltValueNullFieldError.checkNotNull(plain, r'ThemingGetThemeStylesheetRequestApplicationJson', 'plain'); - BuiltValueNullFieldError.checkNotNull( - withCustomCss, r'ThemingGetThemeStylesheetRequestApplicationJson', 'withCustomCss'); - } - - @override - ThemingGetThemeStylesheetRequestApplicationJson rebuild( - void Function(ThemingGetThemeStylesheetRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - ThemingGetThemeStylesheetRequestApplicationJsonBuilder toBuilder() => - ThemingGetThemeStylesheetRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is ThemingGetThemeStylesheetRequestApplicationJson && - plain == other.plain && - withCustomCss == other.withCustomCss; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, plain.hashCode); - _$hash = $jc(_$hash, withCustomCss.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'ThemingGetThemeStylesheetRequestApplicationJson') - ..add('plain', plain) - ..add('withCustomCss', withCustomCss)) - .toString(); - } -} - -class ThemingGetThemeStylesheetRequestApplicationJsonBuilder - implements - Builder, - $ThemingGetThemeStylesheetRequestApplicationJsonInterfaceBuilder { - _$ThemingGetThemeStylesheetRequestApplicationJson? _$v; - - bool? _plain; - bool? get plain => _$this._plain; - set plain(covariant bool? plain) => _$this._plain = plain; - - bool? _withCustomCss; - bool? get withCustomCss => _$this._withCustomCss; - set withCustomCss(covariant bool? withCustomCss) => _$this._withCustomCss = withCustomCss; - - ThemingGetThemeStylesheetRequestApplicationJsonBuilder() { - ThemingGetThemeStylesheetRequestApplicationJson._defaults(this); - } - - ThemingGetThemeStylesheetRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _plain = $v.plain; - _withCustomCss = $v.withCustomCss; - _$v = null; - } - return this; - } - - @override - void replace(covariant ThemingGetThemeStylesheetRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$ThemingGetThemeStylesheetRequestApplicationJson; - } - - @override - void update(void Function(ThemingGetThemeStylesheetRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - ThemingGetThemeStylesheetRequestApplicationJson build() => _build(); - - _$ThemingGetThemeStylesheetRequestApplicationJson _build() { - ThemingGetThemeStylesheetRequestApplicationJson._validate(this); - final _$result = _$v ?? - _$ThemingGetThemeStylesheetRequestApplicationJson._( - plain: BuiltValueNullFieldError.checkNotNull( - plain, r'ThemingGetThemeStylesheetRequestApplicationJson', 'plain'), - withCustomCss: BuiltValueNullFieldError.checkNotNull( - withCustomCss, r'ThemingGetThemeStylesheetRequestApplicationJson', 'withCustomCss')); - replace(_$result); - return _$result; - } -} - -abstract mixin class $ThemingGetImageRequestApplicationJsonInterfaceBuilder { - void replace($ThemingGetImageRequestApplicationJsonInterface other); - void update(void Function($ThemingGetImageRequestApplicationJsonInterfaceBuilder) updates); - bool? get useSvg; - set useSvg(bool? useSvg); -} - -class _$ThemingGetImageRequestApplicationJson extends ThemingGetImageRequestApplicationJson { - @override - final bool useSvg; - - factory _$ThemingGetImageRequestApplicationJson( - [void Function(ThemingGetImageRequestApplicationJsonBuilder)? updates]) => - (ThemingGetImageRequestApplicationJsonBuilder()..update(updates))._build(); - - _$ThemingGetImageRequestApplicationJson._({required this.useSvg}) : super._() { - BuiltValueNullFieldError.checkNotNull(useSvg, r'ThemingGetImageRequestApplicationJson', 'useSvg'); - } - - @override - ThemingGetImageRequestApplicationJson rebuild(void Function(ThemingGetImageRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - ThemingGetImageRequestApplicationJsonBuilder toBuilder() => - ThemingGetImageRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is ThemingGetImageRequestApplicationJson && useSvg == other.useSvg; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, useSvg.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'ThemingGetImageRequestApplicationJson')..add('useSvg', useSvg)).toString(); - } -} - -class ThemingGetImageRequestApplicationJsonBuilder - implements - Builder, - $ThemingGetImageRequestApplicationJsonInterfaceBuilder { - _$ThemingGetImageRequestApplicationJson? _$v; - - bool? _useSvg; - bool? get useSvg => _$this._useSvg; - set useSvg(covariant bool? useSvg) => _$this._useSvg = useSvg; - - ThemingGetImageRequestApplicationJsonBuilder() { - ThemingGetImageRequestApplicationJson._defaults(this); - } - - ThemingGetImageRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _useSvg = $v.useSvg; - _$v = null; - } - return this; - } - - @override - void replace(covariant ThemingGetImageRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$ThemingGetImageRequestApplicationJson; - } - - @override - void update(void Function(ThemingGetImageRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - ThemingGetImageRequestApplicationJson build() => _build(); - - _$ThemingGetImageRequestApplicationJson _build() { - ThemingGetImageRequestApplicationJson._validate(this); - final _$result = _$v ?? - _$ThemingGetImageRequestApplicationJson._( - useSvg: BuiltValueNullFieldError.checkNotNull(useSvg, r'ThemingGetImageRequestApplicationJson', 'useSvg')); - replace(_$result); - return _$result; - } -} - abstract mixin class $ThemingGetManifestResponseApplicationJson_IconsInterfaceBuilder { void replace($ThemingGetManifestResponseApplicationJson_IconsInterface other); void update(void Function($ThemingGetManifestResponseApplicationJson_IconsInterfaceBuilder) updates); diff --git a/packages/nextcloud/lib/src/api/theming/theming.openapi.json b/packages/nextcloud/lib/src/api/theming/theming.openapi.json index 935e7eea3e7..1021661070a 100644 --- a/packages/nextcloud/lib/src/api/theming/theming.openapi.json +++ b/packages/nextcloud/lib/src/api/theming/theming.openapi.json @@ -135,28 +135,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "plain": { - "type": "boolean", - "default": false, - "description": "Let the browser decide the CSS priority" - }, - "withCustomCss": { - "type": "boolean", - "default": false, - "description": "Include custom CSS" - } - } - } - } - } - }, "parameters": [ { "name": "themeId", @@ -166,6 +144,32 @@ "schema": { "type": "string" } + }, + { + "name": "plain", + "in": "query", + "description": "Let the browser decide the CSS priority", + "schema": { + "type": "integer", + "default": 0, + "enum": [ + 0, + 1 + ] + } + }, + { + "name": "withCustomCss", + "in": "query", + "description": "Include custom CSS", + "schema": { + "type": "integer", + "default": 0, + "enum": [ + 0, + 1 + ] + } } ], "responses": { @@ -209,23 +213,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "useSvg": { - "type": "boolean", - "default": true, - "description": "Return image as SVG" - } - } - } - } - } - }, "parameters": [ { "name": "key", @@ -235,6 +222,19 @@ "schema": { "type": "string" } + }, + { + "name": "useSvg", + "in": "query", + "description": "Return image as SVG", + "schema": { + "type": "integer", + "default": 1, + "enum": [ + 0, + 1 + ] + } } ], "responses": { diff --git a/packages/nextcloud/lib/src/api/updatenotification/updatenotification.openapi.dart b/packages/nextcloud/lib/src/api/updatenotification/updatenotification.openapi.dart index 3791e2b6e84..75d710db1c3 100644 --- a/packages/nextcloud/lib/src/api/updatenotification/updatenotification.openapi.dart +++ b/packages/nextcloud/lib/src/api/updatenotification/updatenotification.openapi.dart @@ -16,8 +16,6 @@ /// It can be obtained at `https://spdx.org/licenses/AGPL-3.0-only.html`. library; // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:convert'; - import 'package:built_collection/built_collection.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -184,6 +182,7 @@ class $ApiClient { /// Parameters: /// * [apiVersion] Defaults to `"v1"`. /// * [appId] App to search changelog entry for. + /// * [version] The version to search the changelog entry for (defaults to the latest installed). /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -197,8 +196,8 @@ class $ApiClient { _i3.Request $getAppChangelogEntry_Request({ required String appId, ApiGetAppChangelogEntryApiVersion? apiVersion, + String? version, bool? oCSAPIRequest, - ApiGetAppChangelogEntryRequestApplicationJson? $body, }) { final _parameters = {}; final __appId = _$jsonSerializers.serialize(appId, specifiedType: const FullType(String)); @@ -209,8 +208,11 @@ class $ApiClient { __apiVersion ??= 'v1'; _parameters['apiVersion'] = __apiVersion; - final _path = - _i4.UriTemplate('/ocs/v2.php/apps/updatenotification/api/{apiVersion}/changelog/{appId}').expand(_parameters); + final __version = _$jsonSerializers.serialize(version, specifiedType: const FullType(String)); + _parameters['version'] = __version; + + final _path = _i4.UriTemplate('/ocs/v2.php/apps/updatenotification/api/{apiVersion}/changelog/{appId}{?version*}') + .expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); _request.headers['Accept'] = 'application/json'; @@ -235,20 +237,6 @@ class $ApiClient { __oCSAPIRequest ??= true; _request.headers['OCS-APIRequest'] = const _i6.HeaderEncoder().convert(__oCSAPIRequest); - _request.headers['Content-Type'] = 'application/json'; - _request.body = $body != null - ? json.encode( - _$jsonSerializers.serialize( - $body, - specifiedType: const FullType(ApiGetAppChangelogEntryRequestApplicationJson), - ), - ) - : json.encode( - _$jsonSerializers.serialize( - ApiGetAppChangelogEntryRequestApplicationJson(), - specifiedType: const FullType(ApiGetAppChangelogEntryRequestApplicationJson), - ), - ); return _request; } @@ -262,6 +250,7 @@ class $ApiClient { /// Parameters: /// * [apiVersion] Defaults to `"v1"`. /// * [appId] App to search changelog entry for. + /// * [version] The version to search the changelog entry for (defaults to the latest installed). /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -274,14 +263,14 @@ class $ApiClient { Future<_i1.DynamiteResponse> getAppChangelogEntry({ required String appId, ApiGetAppChangelogEntryApiVersion? apiVersion, + String? version, bool? oCSAPIRequest, - ApiGetAppChangelogEntryRequestApplicationJson? $body, }) async { final _request = $getAppChangelogEntry_Request( appId: appId, apiVersion: apiVersion, + version: version, oCSAPIRequest: oCSAPIRequest, - $body: $body, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -707,70 +696,6 @@ class _$ApiGetAppChangelogEntryApiVersionSerializer implements PrimitiveSerializ _fromWire[serialized]!; } -@BuiltValue(instantiable: false) -sealed class $ApiGetAppChangelogEntryRequestApplicationJsonInterface { - /// The version to search the changelog entry for (defaults to the latest installed). - String? get version; - - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$ApiGetAppChangelogEntryRequestApplicationJsonInterfaceBuilder]. - $ApiGetAppChangelogEntryRequestApplicationJsonInterface rebuild( - void Function($ApiGetAppChangelogEntryRequestApplicationJsonInterfaceBuilder) updates, - ); - - /// Converts the instance to a builder [$ApiGetAppChangelogEntryRequestApplicationJsonInterfaceBuilder]. - $ApiGetAppChangelogEntryRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($ApiGetAppChangelogEntryRequestApplicationJsonInterfaceBuilder b) {} - @BuiltValueHook(finalizeBuilder: true) - static void _validate($ApiGetAppChangelogEntryRequestApplicationJsonInterfaceBuilder b) {} -} - -abstract class ApiGetAppChangelogEntryRequestApplicationJson - implements - $ApiGetAppChangelogEntryRequestApplicationJsonInterface, - Built { - /// Creates a new ApiGetAppChangelogEntryRequestApplicationJson object using the builder pattern. - factory ApiGetAppChangelogEntryRequestApplicationJson([ - void Function(ApiGetAppChangelogEntryRequestApplicationJsonBuilder)? b, - ]) = _$ApiGetAppChangelogEntryRequestApplicationJson; - - // coverage:ignore-start - const ApiGetAppChangelogEntryRequestApplicationJson._(); - // coverage:ignore-end - - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory ApiGetAppChangelogEntryRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end - - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end - - /// Serializer for ApiGetAppChangelogEntryRequestApplicationJson. - static Serializer get serializer => - _$apiGetAppChangelogEntryRequestApplicationJsonSerializer; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults(ApiGetAppChangelogEntryRequestApplicationJsonBuilder b) { - $ApiGetAppChangelogEntryRequestApplicationJsonInterface._defaults(b); - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate(ApiGetAppChangelogEntryRequestApplicationJsonBuilder b) { - $ApiGetAppChangelogEntryRequestApplicationJsonInterface._validate(b); - } -} - @BuiltValue(instantiable: false) sealed class $ApiGetAppChangelogEntryResponseApplicationJson_Ocs_DataInterface { String get appName; @@ -995,11 +920,6 @@ final Serializers _$serializers = (Serializers().toBuilder() ..add(App.serializer) ..addBuilderFactory(const FullType(BuiltList, [FullType(App)]), ListBuilder.new) ..add(ApiGetAppChangelogEntryApiVersion.serializer) - ..addBuilderFactory( - const FullType(ApiGetAppChangelogEntryRequestApplicationJson), - ApiGetAppChangelogEntryRequestApplicationJsonBuilder.new, - ) - ..add(ApiGetAppChangelogEntryRequestApplicationJson.serializer) ..addBuilderFactory( const FullType(ApiGetAppChangelogEntryResponseApplicationJson), ApiGetAppChangelogEntryResponseApplicationJsonBuilder.new, diff --git a/packages/nextcloud/lib/src/api/updatenotification/updatenotification.openapi.g.dart b/packages/nextcloud/lib/src/api/updatenotification/updatenotification.openapi.g.dart index fff87631d31..6091cb81ad3 100644 --- a/packages/nextcloud/lib/src/api/updatenotification/updatenotification.openapi.g.dart +++ b/packages/nextcloud/lib/src/api/updatenotification/updatenotification.openapi.g.dart @@ -47,8 +47,6 @@ Serializer _$apiGetAppListResponseAppl _$ApiGetAppListResponseApplicationJson_OcsSerializer(); Serializer _$apiGetAppListResponseApplicationJsonSerializer = _$ApiGetAppListResponseApplicationJsonSerializer(); -Serializer _$apiGetAppChangelogEntryRequestApplicationJsonSerializer = - _$ApiGetAppChangelogEntryRequestApplicationJsonSerializer(); Serializer _$apiGetAppChangelogEntryResponseApplicationJsonOcsDataSerializer = _$ApiGetAppChangelogEntryResponseApplicationJson_Ocs_DataSerializer(); @@ -309,51 +307,6 @@ class _$ApiGetAppListResponseApplicationJsonSerializer } } -class _$ApiGetAppChangelogEntryRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ - ApiGetAppChangelogEntryRequestApplicationJson, - _$ApiGetAppChangelogEntryRequestApplicationJson - ]; - @override - final String wireName = 'ApiGetAppChangelogEntryRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, ApiGetAppChangelogEntryRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = []; - Object? value; - value = object.version; - if (value != null) { - result - ..add('version') - ..add(serializers.serialize(value, specifiedType: const FullType(String))); - } - return result; - } - - @override - ApiGetAppChangelogEntryRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = ApiGetAppChangelogEntryRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'version': - result.version = serializers.deserialize(value, specifiedType: const FullType(String)) as String?; - break; - } - } - - return result.build(); - } -} - class _$ApiGetAppChangelogEntryResponseApplicationJson_Ocs_DataSerializer implements StructuredSerializer { @override @@ -1106,98 +1059,6 @@ class ApiGetAppListResponseApplicationJsonBuilder } } -abstract mixin class $ApiGetAppChangelogEntryRequestApplicationJsonInterfaceBuilder { - void replace($ApiGetAppChangelogEntryRequestApplicationJsonInterface other); - void update(void Function($ApiGetAppChangelogEntryRequestApplicationJsonInterfaceBuilder) updates); - String? get version; - set version(String? version); -} - -class _$ApiGetAppChangelogEntryRequestApplicationJson extends ApiGetAppChangelogEntryRequestApplicationJson { - @override - final String? version; - - factory _$ApiGetAppChangelogEntryRequestApplicationJson( - [void Function(ApiGetAppChangelogEntryRequestApplicationJsonBuilder)? updates]) => - (ApiGetAppChangelogEntryRequestApplicationJsonBuilder()..update(updates))._build(); - - _$ApiGetAppChangelogEntryRequestApplicationJson._({this.version}) : super._(); - - @override - ApiGetAppChangelogEntryRequestApplicationJson rebuild( - void Function(ApiGetAppChangelogEntryRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - ApiGetAppChangelogEntryRequestApplicationJsonBuilder toBuilder() => - ApiGetAppChangelogEntryRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is ApiGetAppChangelogEntryRequestApplicationJson && version == other.version; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, version.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'ApiGetAppChangelogEntryRequestApplicationJson')..add('version', version)) - .toString(); - } -} - -class ApiGetAppChangelogEntryRequestApplicationJsonBuilder - implements - Builder, - $ApiGetAppChangelogEntryRequestApplicationJsonInterfaceBuilder { - _$ApiGetAppChangelogEntryRequestApplicationJson? _$v; - - String? _version; - String? get version => _$this._version; - set version(covariant String? version) => _$this._version = version; - - ApiGetAppChangelogEntryRequestApplicationJsonBuilder() { - ApiGetAppChangelogEntryRequestApplicationJson._defaults(this); - } - - ApiGetAppChangelogEntryRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _version = $v.version; - _$v = null; - } - return this; - } - - @override - void replace(covariant ApiGetAppChangelogEntryRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$ApiGetAppChangelogEntryRequestApplicationJson; - } - - @override - void update(void Function(ApiGetAppChangelogEntryRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - ApiGetAppChangelogEntryRequestApplicationJson build() => _build(); - - _$ApiGetAppChangelogEntryRequestApplicationJson _build() { - ApiGetAppChangelogEntryRequestApplicationJson._validate(this); - final _$result = _$v ?? _$ApiGetAppChangelogEntryRequestApplicationJson._(version: version); - replace(_$result); - return _$result; - } -} - abstract mixin class $ApiGetAppChangelogEntryResponseApplicationJson_Ocs_DataInterfaceBuilder { void replace($ApiGetAppChangelogEntryResponseApplicationJson_Ocs_DataInterface other); void update(void Function($ApiGetAppChangelogEntryResponseApplicationJson_Ocs_DataInterfaceBuilder) updates); diff --git a/packages/nextcloud/lib/src/api/updatenotification/updatenotification.openapi.json b/packages/nextcloud/lib/src/api/updatenotification/updatenotification.openapi.json index 10e676a5e0f..9fd4b78a0b2 100644 --- a/packages/nextcloud/lib/src/api/updatenotification/updatenotification.openapi.json +++ b/packages/nextcloud/lib/src/api/updatenotification/updatenotification.openapi.json @@ -221,23 +221,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "version": { - "type": "string", - "nullable": true, - "description": "The version to search the changelog entry for (defaults to the latest installed)" - } - } - } - } - } - }, "parameters": [ { "name": "apiVersion", @@ -260,6 +243,15 @@ "type": "string" } }, + { + "name": "version", + "in": "query", + "description": "The version to search the changelog entry for (defaults to the latest installed)", + "schema": { + "type": "string", + "nullable": true + } + }, { "name": "OCS-APIRequest", "in": "header", diff --git a/packages/nextcloud/lib/src/api/user_ldap/user_ldap.openapi.dart b/packages/nextcloud/lib/src/api/user_ldap/user_ldap.openapi.dart index 18406ef2961..88e087fe70a 100644 --- a/packages/nextcloud/lib/src/api/user_ldap/user_ldap.openapi.dart +++ b/packages/nextcloud/lib/src/api/user_ldap/user_ldap.openapi.dart @@ -159,6 +159,7 @@ class $ConfigapiClient { /// /// Parameters: /// * [configID] ID of the config. + /// * [showPassword] Whether to show the password. Defaults to `0`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -171,14 +172,20 @@ class $ConfigapiClient { @_i2.experimental _i3.Request $$show_Request({ required String configID, + ConfigapiShowShowPassword? showPassword, bool? oCSAPIRequest, - ConfigapiShowRequestApplicationJson? $body, }) { final _parameters = {}; final __configID = _$jsonSerializers.serialize(configID, specifiedType: const FullType(String)); _parameters['configID'] = __configID; - final _path = _i6.UriTemplate('/ocs/v2.php/apps/user_ldap/api/v1/config/{configID}').expand(_parameters); + var __showPassword = + _$jsonSerializers.serialize(showPassword, specifiedType: const FullType(ConfigapiShowShowPassword)); + __showPassword ??= 0; + _parameters['showPassword'] = __showPassword; + + final _path = + _i6.UriTemplate('/ocs/v2.php/apps/user_ldap/api/v1/config/{configID}{?showPassword*}').expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); _request.headers['Accept'] = 'application/json'; @@ -203,17 +210,6 @@ class $ConfigapiClient { __oCSAPIRequest ??= true; _request.headers['OCS-APIRequest'] = const _i5.HeaderEncoder().convert(__oCSAPIRequest); - _request.headers['Content-Type'] = 'application/json'; - _request.body = $body != null - ? json.encode( - _$jsonSerializers.serialize($body, specifiedType: const FullType(ConfigapiShowRequestApplicationJson)), - ) - : json.encode( - _$jsonSerializers.serialize( - ConfigapiShowRequestApplicationJson(), - specifiedType: const FullType(ConfigapiShowRequestApplicationJson), - ), - ); return _request; } @@ -227,6 +223,7 @@ class $ConfigapiClient { /// /// Parameters: /// * [configID] ID of the config. + /// * [showPassword] Whether to show the password. Defaults to `0`. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -238,13 +235,13 @@ class $ConfigapiClient { /// * [$$show_Serializer] for a converter to parse the `Response` from an executed request. Future<_i1.DynamiteResponse> $show({ required String configID, + ConfigapiShowShowPassword? showPassword, bool? oCSAPIRequest, - ConfigapiShowRequestApplicationJson? $body, }) async { final _request = $$show_Request( configID: configID, + showPassword: showPassword, oCSAPIRequest: oCSAPIRequest, - $body: $body, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -704,75 +701,67 @@ abstract class ConfigapiCreateResponseApplicationJson } } -@BuiltValue(instantiable: false) -sealed class $ConfigapiShowRequestApplicationJsonInterface { - static final _$showPassword = _$jsonSerializers.deserialize( - false, - specifiedType: const FullType(bool), - )! as bool; +class ConfigapiShowShowPassword extends EnumClass { + const ConfigapiShowShowPassword._(super.name); - /// Whether to show the password. - bool get showPassword; + /// `0` + @BuiltValueEnumConst(wireName: '0') + static const ConfigapiShowShowPassword $0 = _$configapiShowShowPassword$0; - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$ConfigapiShowRequestApplicationJsonInterfaceBuilder]. - $ConfigapiShowRequestApplicationJsonInterface rebuild( - void Function($ConfigapiShowRequestApplicationJsonInterfaceBuilder) updates, - ); - - /// Converts the instance to a builder [$ConfigapiShowRequestApplicationJsonInterfaceBuilder]. - $ConfigapiShowRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($ConfigapiShowRequestApplicationJsonInterfaceBuilder b) { - b.showPassword = _$showPassword; - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate($ConfigapiShowRequestApplicationJsonInterfaceBuilder b) {} -} - -abstract class ConfigapiShowRequestApplicationJson - implements - $ConfigapiShowRequestApplicationJsonInterface, - Built { - /// Creates a new ConfigapiShowRequestApplicationJson object using the builder pattern. - factory ConfigapiShowRequestApplicationJson([void Function(ConfigapiShowRequestApplicationJsonBuilder)? b]) = - _$ConfigapiShowRequestApplicationJson; + /// `1` + @BuiltValueEnumConst(wireName: '1') + static const ConfigapiShowShowPassword $1 = _$configapiShowShowPassword$1; + /// Returns a set with all values this enum contains. // coverage:ignore-start - const ConfigapiShowRequestApplicationJson._(); + static BuiltSet get values => _$configapiShowShowPasswordValues; // coverage:ignore-end - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory ConfigapiShowRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end - - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end + /// Returns the enum value associated to the [name]. + static ConfigapiShowShowPassword valueOf(String name) => _$valueOfConfigapiShowShowPassword(name); - /// Serializer for ConfigapiShowRequestApplicationJson. - static Serializer get serializer => - _$configapiShowRequestApplicationJsonSerializer; + /// Returns the serialized value of this enum value. + int get value => _$jsonSerializers.serializeWith(serializer, this)! as int; - @BuiltValueHook(initializeBuilder: true) - static void _defaults(ConfigapiShowRequestApplicationJsonBuilder b) { - $ConfigapiShowRequestApplicationJsonInterface._defaults(b); - } + /// Serializer for ConfigapiShowShowPassword. + @BuiltValueSerializer(custom: true) + static Serializer get serializer => const _$ConfigapiShowShowPasswordSerializer(); +} - @BuiltValueHook(finalizeBuilder: true) - static void _validate(ConfigapiShowRequestApplicationJsonBuilder b) { - $ConfigapiShowRequestApplicationJsonInterface._validate(b); - } +class _$ConfigapiShowShowPasswordSerializer implements PrimitiveSerializer { + const _$ConfigapiShowShowPasswordSerializer(); + + static const Map _toWire = { + ConfigapiShowShowPassword.$0: 0, + ConfigapiShowShowPassword.$1: 1, + }; + + static const Map _fromWire = { + 0: ConfigapiShowShowPassword.$0, + 1: ConfigapiShowShowPassword.$1, + }; + + @override + Iterable get types => const [ConfigapiShowShowPassword]; + + @override + String get wireName => 'ConfigapiShowShowPassword'; + + @override + Object serialize( + Serializers serializers, + ConfigapiShowShowPassword object, { + FullType specifiedType = FullType.unspecified, + }) => + _toWire[object]!; + + @override + ConfigapiShowShowPassword deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) => + _fromWire[serialized]!; } @BuiltValue(instantiable: false) @@ -1241,11 +1230,7 @@ final Serializers _$serializers = (Serializers().toBuilder() ConfigapiCreateResponseApplicationJson_Ocs_DataBuilder.new, ) ..add(ConfigapiCreateResponseApplicationJson_Ocs_Data.serializer) - ..addBuilderFactory( - const FullType(ConfigapiShowRequestApplicationJson), - ConfigapiShowRequestApplicationJsonBuilder.new, - ) - ..add(ConfigapiShowRequestApplicationJson.serializer) + ..add(ConfigapiShowShowPassword.serializer) ..addBuilderFactory( const FullType(ConfigapiShowResponseApplicationJson), ConfigapiShowResponseApplicationJsonBuilder.new, diff --git a/packages/nextcloud/lib/src/api/user_ldap/user_ldap.openapi.g.dart b/packages/nextcloud/lib/src/api/user_ldap/user_ldap.openapi.g.dart index 0a39411a0e2..aeed3fb14c1 100644 --- a/packages/nextcloud/lib/src/api/user_ldap/user_ldap.openapi.g.dart +++ b/packages/nextcloud/lib/src/api/user_ldap/user_ldap.openapi.g.dart @@ -6,6 +6,26 @@ part of 'user_ldap.openapi.dart'; // BuiltValueGenerator // ************************************************************************** +const ConfigapiShowShowPassword _$configapiShowShowPassword$0 = ConfigapiShowShowPassword._('\$0'); +const ConfigapiShowShowPassword _$configapiShowShowPassword$1 = ConfigapiShowShowPassword._('\$1'); + +ConfigapiShowShowPassword _$valueOfConfigapiShowShowPassword(String name) { + switch (name) { + case '\$0': + return _$configapiShowShowPassword$0; + case '\$1': + return _$configapiShowShowPassword$1; + default: + throw ArgumentError(name); + } +} + +final BuiltSet _$configapiShowShowPasswordValues = + BuiltSet(const [ + _$configapiShowShowPassword$0, + _$configapiShowShowPassword$1, +]); + Serializer _$oCSMetaSerializer = _$OCSMetaSerializer(); Serializer _$configapiCreateResponseApplicationJsonOcsDataSerializer = _$ConfigapiCreateResponseApplicationJson_Ocs_DataSerializer(); @@ -13,8 +33,6 @@ Serializer _$configapiCreateResponse _$ConfigapiCreateResponseApplicationJson_OcsSerializer(); Serializer _$configapiCreateResponseApplicationJsonSerializer = _$ConfigapiCreateResponseApplicationJsonSerializer(); -Serializer _$configapiShowRequestApplicationJsonSerializer = - _$ConfigapiShowRequestApplicationJsonSerializer(); Serializer _$configapiShowResponseApplicationJsonOcsSerializer = _$ConfigapiShowResponseApplicationJson_OcsSerializer(); Serializer _$configapiShowResponseApplicationJsonSerializer = @@ -233,45 +251,6 @@ class _$ConfigapiCreateResponseApplicationJsonSerializer } } -class _$ConfigapiShowRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [ConfigapiShowRequestApplicationJson, _$ConfigapiShowRequestApplicationJson]; - @override - final String wireName = 'ConfigapiShowRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, ConfigapiShowRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = [ - 'showPassword', - serializers.serialize(object.showPassword, specifiedType: const FullType(bool)), - ]; - - return result; - } - - @override - ConfigapiShowRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = ConfigapiShowRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'showPassword': - result.showPassword = serializers.deserialize(value, specifiedType: const FullType(bool))! as bool; - break; - } - } - - return result.build(); - } -} - class _$ConfigapiShowResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -1054,100 +1033,6 @@ class ConfigapiCreateResponseApplicationJsonBuilder } } -abstract mixin class $ConfigapiShowRequestApplicationJsonInterfaceBuilder { - void replace($ConfigapiShowRequestApplicationJsonInterface other); - void update(void Function($ConfigapiShowRequestApplicationJsonInterfaceBuilder) updates); - bool? get showPassword; - set showPassword(bool? showPassword); -} - -class _$ConfigapiShowRequestApplicationJson extends ConfigapiShowRequestApplicationJson { - @override - final bool showPassword; - - factory _$ConfigapiShowRequestApplicationJson([void Function(ConfigapiShowRequestApplicationJsonBuilder)? updates]) => - (ConfigapiShowRequestApplicationJsonBuilder()..update(updates))._build(); - - _$ConfigapiShowRequestApplicationJson._({required this.showPassword}) : super._() { - BuiltValueNullFieldError.checkNotNull(showPassword, r'ConfigapiShowRequestApplicationJson', 'showPassword'); - } - - @override - ConfigapiShowRequestApplicationJson rebuild(void Function(ConfigapiShowRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - ConfigapiShowRequestApplicationJsonBuilder toBuilder() => ConfigapiShowRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is ConfigapiShowRequestApplicationJson && showPassword == other.showPassword; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, showPassword.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'ConfigapiShowRequestApplicationJson')..add('showPassword', showPassword)) - .toString(); - } -} - -class ConfigapiShowRequestApplicationJsonBuilder - implements - Builder, - $ConfigapiShowRequestApplicationJsonInterfaceBuilder { - _$ConfigapiShowRequestApplicationJson? _$v; - - bool? _showPassword; - bool? get showPassword => _$this._showPassword; - set showPassword(covariant bool? showPassword) => _$this._showPassword = showPassword; - - ConfigapiShowRequestApplicationJsonBuilder() { - ConfigapiShowRequestApplicationJson._defaults(this); - } - - ConfigapiShowRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _showPassword = $v.showPassword; - _$v = null; - } - return this; - } - - @override - void replace(covariant ConfigapiShowRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$ConfigapiShowRequestApplicationJson; - } - - @override - void update(void Function(ConfigapiShowRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - ConfigapiShowRequestApplicationJson build() => _build(); - - _$ConfigapiShowRequestApplicationJson _build() { - ConfigapiShowRequestApplicationJson._validate(this); - final _$result = _$v ?? - _$ConfigapiShowRequestApplicationJson._( - showPassword: BuiltValueNullFieldError.checkNotNull( - showPassword, r'ConfigapiShowRequestApplicationJson', 'showPassword')); - replace(_$result); - return _$result; - } -} - abstract mixin class $ConfigapiShowResponseApplicationJson_OcsInterfaceBuilder { void replace($ConfigapiShowResponseApplicationJson_OcsInterface other); void update(void Function($ConfigapiShowResponseApplicationJson_OcsInterfaceBuilder) updates); diff --git a/packages/nextcloud/lib/src/api/user_ldap/user_ldap.openapi.json b/packages/nextcloud/lib/src/api/user_ldap/user_ldap.openapi.json index e8f01c3a336..31d5b28afd8 100644 --- a/packages/nextcloud/lib/src/api/user_ldap/user_ldap.openapi.json +++ b/packages/nextcloud/lib/src/api/user_ldap/user_ldap.openapi.json @@ -134,23 +134,6 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "showPassword": { - "type": "boolean", - "default": false, - "description": "Whether to show the password" - } - } - } - } - } - }, "parameters": [ { "name": "configID", @@ -161,6 +144,19 @@ "type": "string" } }, + { + "name": "showPassword", + "in": "query", + "description": "Whether to show the password", + "schema": { + "type": "integer", + "default": 0, + "enum": [ + 0, + 1 + ] + } + }, { "name": "OCS-APIRequest", "in": "header", diff --git a/packages/nextcloud/lib/src/api/user_status/user_status.openapi.dart b/packages/nextcloud/lib/src/api/user_status/user_status.openapi.dart index 9604851d5cd..84e247d60e4 100644 --- a/packages/nextcloud/lib/src/api/user_status/user_status.openapi.dart +++ b/packages/nextcloud/lib/src/api/user_status/user_status.openapi.dart @@ -270,6 +270,8 @@ class $StatusesClient { /// Throws a `DynamiteApiException` if the API call does not return an expected status code. /// /// Parameters: + /// * [limit] Maximum number of statuses to find. + /// * [offset] Offset for finding statuses. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -280,10 +282,18 @@ class $StatusesClient { /// * [$findAll_Serializer] for a converter to parse the `Response` from an executed this request. @_i2.experimental _i3.Request $findAll_Request({ + int? limit, + int? offset, bool? oCSAPIRequest, - StatusesFindAllRequestApplicationJson? $body, }) { - const _path = '/ocs/v2.php/apps/user_status/api/v1/statuses'; + final _parameters = {}; + final __limit = _$jsonSerializers.serialize(limit, specifiedType: const FullType(int)); + _parameters['limit'] = __limit; + + final __offset = _$jsonSerializers.serialize(offset, specifiedType: const FullType(int)); + _parameters['offset'] = __offset; + + final _path = _i6.UriTemplate('/ocs/v2.php/apps/user_status/api/v1/statuses{?limit*,offset*}').expand(_parameters); final _uri = Uri.parse('${_rootClient.baseURL}$_path'); final _request = _i3.Request('get', _uri); _request.headers['Accept'] = 'application/json'; @@ -308,17 +318,6 @@ class $StatusesClient { __oCSAPIRequest ??= true; _request.headers['OCS-APIRequest'] = const _i5.HeaderEncoder().convert(__oCSAPIRequest); - _request.headers['Content-Type'] = 'application/json'; - _request.body = $body != null - ? json.encode( - _$jsonSerializers.serialize($body, specifiedType: const FullType(StatusesFindAllRequestApplicationJson)), - ) - : json.encode( - _$jsonSerializers.serialize( - StatusesFindAllRequestApplicationJson(), - specifiedType: const FullType(StatusesFindAllRequestApplicationJson), - ), - ); return _request; } @@ -328,6 +327,8 @@ class $StatusesClient { /// Throws a `DynamiteApiException` if the API call does not return an expected status code. /// /// Parameters: + /// * [limit] Maximum number of statuses to find. + /// * [offset] Offset for finding statuses. /// * [oCSAPIRequest] Required to be true for the API request to pass. Defaults to `true`. /// /// Status codes: @@ -337,12 +338,14 @@ class $StatusesClient { /// * [$findAll_Request] for the request send by this method. /// * [$findAll_Serializer] for a converter to parse the `Response` from an executed request. Future<_i1.DynamiteResponse> findAll({ + int? limit, + int? offset, bool? oCSAPIRequest, - StatusesFindAllRequestApplicationJson? $body, }) async { final _request = $findAll_Request( + limit: limit, + offset: offset, oCSAPIRequest: oCSAPIRequest, - $body: $body, ); final _streamedResponse = await _rootClient.httpClient.send(_request); final _response = await _i3.Response.fromStream(_streamedResponse); @@ -1819,72 +1822,6 @@ abstract class PredefinedStatusFindAllResponseApplicationJson } } -@BuiltValue(instantiable: false) -sealed class $StatusesFindAllRequestApplicationJsonInterface { - /// Maximum number of statuses to find. - int? get limit; - - /// Offset for finding statuses. - int? get offset; - - /// Rebuilds the instance. - /// - /// The result is the same as this instance but with [updates] applied. - /// [updates] is a function that takes a builder [$StatusesFindAllRequestApplicationJsonInterfaceBuilder]. - $StatusesFindAllRequestApplicationJsonInterface rebuild( - void Function($StatusesFindAllRequestApplicationJsonInterfaceBuilder) updates, - ); - - /// Converts the instance to a builder [$StatusesFindAllRequestApplicationJsonInterfaceBuilder]. - $StatusesFindAllRequestApplicationJsonInterfaceBuilder toBuilder(); - @BuiltValueHook(initializeBuilder: true) - static void _defaults($StatusesFindAllRequestApplicationJsonInterfaceBuilder b) {} - @BuiltValueHook(finalizeBuilder: true) - static void _validate($StatusesFindAllRequestApplicationJsonInterfaceBuilder b) {} -} - -abstract class StatusesFindAllRequestApplicationJson - implements - $StatusesFindAllRequestApplicationJsonInterface, - Built { - /// Creates a new StatusesFindAllRequestApplicationJson object using the builder pattern. - factory StatusesFindAllRequestApplicationJson([void Function(StatusesFindAllRequestApplicationJsonBuilder)? b]) = - _$StatusesFindAllRequestApplicationJson; - - // coverage:ignore-start - const StatusesFindAllRequestApplicationJson._(); - // coverage:ignore-end - - /// Creates a new object from the given [json] data. - /// - /// Use [toJson] to serialize it back into json. - // coverage:ignore-start - factory StatusesFindAllRequestApplicationJson.fromJson(Map json) => - _$jsonSerializers.deserializeWith(serializer, json)!; - // coverage:ignore-end - - /// Parses this object into a json like map. - /// - /// Use the fromJson factory to revive it again. - // coverage:ignore-start - Map toJson() => _$jsonSerializers.serializeWith(serializer, this)! as Map; - // coverage:ignore-end - - /// Serializer for StatusesFindAllRequestApplicationJson. - static Serializer get serializer => - _$statusesFindAllRequestApplicationJsonSerializer; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults(StatusesFindAllRequestApplicationJsonBuilder b) { - $StatusesFindAllRequestApplicationJsonInterface._defaults(b); - } - - @BuiltValueHook(finalizeBuilder: true) - static void _validate(StatusesFindAllRequestApplicationJsonBuilder b) { - $StatusesFindAllRequestApplicationJsonInterface._validate(b); - } -} - @BuiltValue(instantiable: false) sealed class $StatusesFindAllResponseApplicationJson_OcsInterface { OCSMeta get meta; @@ -3464,11 +3401,6 @@ final Serializers _$serializers = (Serializers().toBuilder() ..add(ClearAtTimeType.serializer) ..add($557344b3ba734aacc7109e5420fcb6c5Extension._serializer) ..addBuilderFactory(const FullType(BuiltList, [FullType(Predefined)]), ListBuilder.new) - ..addBuilderFactory( - const FullType(StatusesFindAllRequestApplicationJson), - StatusesFindAllRequestApplicationJsonBuilder.new, - ) - ..add(StatusesFindAllRequestApplicationJson.serializer) ..addBuilderFactory( const FullType(StatusesFindAllResponseApplicationJson), StatusesFindAllResponseApplicationJsonBuilder.new, diff --git a/packages/nextcloud/lib/src/api/user_status/user_status.openapi.g.dart b/packages/nextcloud/lib/src/api/user_status/user_status.openapi.g.dart index e5c7e61f3ba..5ed97964cde 100644 --- a/packages/nextcloud/lib/src/api/user_status/user_status.openapi.g.dart +++ b/packages/nextcloud/lib/src/api/user_status/user_status.openapi.g.dart @@ -95,8 +95,6 @@ Serializer _$PredefinedStatusFindAllResponseApplicationJson_OcsSerializer(); Serializer _$predefinedStatusFindAllResponseApplicationJsonSerializer = _$PredefinedStatusFindAllResponseApplicationJsonSerializer(); -Serializer _$statusesFindAllRequestApplicationJsonSerializer = - _$StatusesFindAllRequestApplicationJsonSerializer(); Serializer _$statusesFindAllResponseApplicationJsonOcsSerializer = _$StatusesFindAllResponseApplicationJson_OcsSerializer(); Serializer _$statusesFindAllResponseApplicationJsonSerializer = @@ -709,57 +707,6 @@ class _$PredefinedStatusFindAllResponseApplicationJsonSerializer } } -class _$StatusesFindAllRequestApplicationJsonSerializer - implements StructuredSerializer { - @override - final Iterable types = const [StatusesFindAllRequestApplicationJson, _$StatusesFindAllRequestApplicationJson]; - @override - final String wireName = 'StatusesFindAllRequestApplicationJson'; - - @override - Iterable serialize(Serializers serializers, StatusesFindAllRequestApplicationJson object, - {FullType specifiedType = FullType.unspecified}) { - final result = []; - Object? value; - value = object.limit; - if (value != null) { - result - ..add('limit') - ..add(serializers.serialize(value, specifiedType: const FullType(int))); - } - value = object.offset; - if (value != null) { - result - ..add('offset') - ..add(serializers.serialize(value, specifiedType: const FullType(int))); - } - return result; - } - - @override - StatusesFindAllRequestApplicationJson deserialize(Serializers serializers, Iterable serialized, - {FullType specifiedType = FullType.unspecified}) { - final result = StatusesFindAllRequestApplicationJsonBuilder(); - - final iterator = serialized.iterator; - while (iterator.moveNext()) { - final key = iterator.current! as String; - iterator.moveNext(); - final Object? value = iterator.current; - switch (key) { - case 'limit': - result.limit = serializers.deserialize(value, specifiedType: const FullType(int)) as int?; - break; - case 'offset': - result.offset = serializers.deserialize(value, specifiedType: const FullType(int)) as int?; - break; - } - } - - return result.build(); - } -} - class _$StatusesFindAllResponseApplicationJson_OcsSerializer implements StructuredSerializer { @override @@ -3054,110 +3001,6 @@ class PredefinedStatusFindAllResponseApplicationJsonBuilder } } -abstract mixin class $StatusesFindAllRequestApplicationJsonInterfaceBuilder { - void replace($StatusesFindAllRequestApplicationJsonInterface other); - void update(void Function($StatusesFindAllRequestApplicationJsonInterfaceBuilder) updates); - int? get limit; - set limit(int? limit); - - int? get offset; - set offset(int? offset); -} - -class _$StatusesFindAllRequestApplicationJson extends StatusesFindAllRequestApplicationJson { - @override - final int? limit; - @override - final int? offset; - - factory _$StatusesFindAllRequestApplicationJson( - [void Function(StatusesFindAllRequestApplicationJsonBuilder)? updates]) => - (StatusesFindAllRequestApplicationJsonBuilder()..update(updates))._build(); - - _$StatusesFindAllRequestApplicationJson._({this.limit, this.offset}) : super._(); - - @override - StatusesFindAllRequestApplicationJson rebuild(void Function(StatusesFindAllRequestApplicationJsonBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - StatusesFindAllRequestApplicationJsonBuilder toBuilder() => - StatusesFindAllRequestApplicationJsonBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is StatusesFindAllRequestApplicationJson && limit == other.limit && offset == other.offset; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, limit.hashCode); - _$hash = $jc(_$hash, offset.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'StatusesFindAllRequestApplicationJson') - ..add('limit', limit) - ..add('offset', offset)) - .toString(); - } -} - -class StatusesFindAllRequestApplicationJsonBuilder - implements - Builder, - $StatusesFindAllRequestApplicationJsonInterfaceBuilder { - _$StatusesFindAllRequestApplicationJson? _$v; - - int? _limit; - int? get limit => _$this._limit; - set limit(covariant int? limit) => _$this._limit = limit; - - int? _offset; - int? get offset => _$this._offset; - set offset(covariant int? offset) => _$this._offset = offset; - - StatusesFindAllRequestApplicationJsonBuilder() { - StatusesFindAllRequestApplicationJson._defaults(this); - } - - StatusesFindAllRequestApplicationJsonBuilder get _$this { - final $v = _$v; - if ($v != null) { - _limit = $v.limit; - _offset = $v.offset; - _$v = null; - } - return this; - } - - @override - void replace(covariant StatusesFindAllRequestApplicationJson other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$StatusesFindAllRequestApplicationJson; - } - - @override - void update(void Function(StatusesFindAllRequestApplicationJsonBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - StatusesFindAllRequestApplicationJson build() => _build(); - - _$StatusesFindAllRequestApplicationJson _build() { - StatusesFindAllRequestApplicationJson._validate(this); - final _$result = _$v ?? _$StatusesFindAllRequestApplicationJson._(limit: limit, offset: offset); - replace(_$result); - return _$result; - } -} - abstract mixin class $StatusesFindAllResponseApplicationJson_OcsInterfaceBuilder { void replace($StatusesFindAllResponseApplicationJson_OcsInterface other); void update(void Function($StatusesFindAllResponseApplicationJson_OcsInterfaceBuilder) updates); diff --git a/packages/nextcloud/lib/src/api/user_status/user_status.openapi.json b/packages/nextcloud/lib/src/api/user_status/user_status.openapi.json index ac92364d2ff..f4bd73154e4 100644 --- a/packages/nextcloud/lib/src/api/user_status/user_status.openapi.json +++ b/packages/nextcloud/lib/src/api/user_status/user_status.openapi.json @@ -425,31 +425,27 @@ "basic_auth": [] } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "limit": { - "type": "integer", - "format": "int64", - "nullable": true, - "description": "Maximum number of statuses to find" - }, - "offset": { - "type": "integer", - "format": "int64", - "nullable": true, - "description": "Offset for finding statuses" - } - } - } - } - } - }, "parameters": [ + { + "name": "limit", + "in": "query", + "description": "Maximum number of statuses to find", + "schema": { + "type": "integer", + "format": "int64", + "nullable": true + } + }, + { + "name": "offset", + "in": "query", + "description": "Offset for finding statuses", + "schema": { + "type": "integer", + "format": "int64", + "nullable": true + } + }, { "name": "OCS-APIRequest", "in": "header", diff --git a/packages/nextcloud/test/api/core/core_test.dart b/packages/nextcloud/test/api/core/core_test.dart index e19dc31ba20..34b71ddcac4 100644 --- a/packages/nextcloud/test/api/core/core_test.dart +++ b/packages/nextcloud/test/api/core/core_test.dart @@ -1,5 +1,6 @@ import 'dart:io'; +import 'package:built_collection/built_collection.dart'; import 'package:nextcloud/core.dart' as core; import 'package:nextcloud/nextcloud.dart'; import 'package:nextcloud/webdav.dart'; @@ -94,13 +95,10 @@ void main() { group('Autocomplete', () { test('Get', () async { final response = await tester.client.core.autoComplete.$get( - $body: core.AutoCompleteGetRequestApplicationJson( - (b) => b - ..search = '' - ..itemType = 'call' - ..itemId = 'new' - ..shareTypes.replace([core.ShareType.group.index]), - ), + search: '', + itemType: 'call', + itemId: 'new', + shareTypes: BuiltList([core.ShareType.group.index]), ); expect(response.body.ocs.data, hasLength(1)); @@ -125,9 +123,7 @@ void main() { }); final response = await tester.client.core.preview.getPreview( - $body: core.PreviewGetPreviewRequestApplicationJson( - (b) => b..file = 'preview.png', - ), + file: 'preview.png', ); expect(response.statusCode, 200); expect(() => response.headers, isA()); @@ -175,9 +171,7 @@ void main() { test('Search', () async { final response = await tester.client.core.unifiedSearch.search( providerId: 'settings', - $body: core.UnifiedSearchSearchRequestApplicationJson( - (b) => b..term = 'Personal info', - ), + term: 'Personal info', ); expect(response.statusCode, 200); @@ -220,9 +214,7 @@ void main() { group('References', () { test('resolveOne', () async { final response = await tester.client.core.referenceApi.resolveOne( - $body: core.ReferenceApiResolveOneRequestApplicationJson( - (b) => b..reference = 'https://example.com', - ), + reference: 'https://example.com', ); expect(response.statusCode, 200); expect(() => response.headers, isA()); diff --git a/packages/nextcloud/test/api/spreed/spreed_test.dart b/packages/nextcloud/test/api/spreed/spreed_test.dart index 2a43c9b04db..ef57f708f71 100644 --- a/packages/nextcloud/test/api/spreed/spreed_test.dart +++ b/packages/nextcloud/test/api/spreed/spreed_test.dart @@ -321,9 +321,7 @@ void main() { final response = await tester.client.spreed.chat.receiveMessages( token: room.token, - $body: spreed.ChatReceiveMessagesRequestApplicationJson( - (b) => b..lookIntoFuture = spreed.ChatReceiveMessagesRequestApplicationJson_LookIntoFuture.$0, - ), + lookIntoFuture: spreed.ChatReceiveMessagesLookIntoFuture.$0, ); expect(response.headers.xChatLastGiven, isNotEmpty); expect(response.headers.xChatLastCommonRead, isNotEmpty); @@ -393,12 +391,9 @@ void main() { final response = await tester.client.spreed.chat.receiveMessages( token: room.token, - $body: spreed.ChatReceiveMessagesRequestApplicationJson( - (b) => b - ..lookIntoFuture = spreed.ChatReceiveMessagesRequestApplicationJson_LookIntoFuture.$1 - ..timeout = 3 - ..lastKnownMessageId = message.id, - ), + lookIntoFuture: spreed.ChatReceiveMessagesLookIntoFuture.$1, + timeout: 3, + lastKnownMessageId: message.id, ); expect(response.body.ocs.data, hasLength(1)); expect(response.body.ocs.data[0].id, isPositive); @@ -423,9 +418,7 @@ void main() { final response = await tester.client.spreed.chat.mentions( token: room.token, - $body: spreed.ChatMentionsRequestApplicationJson( - (b) => b..search = 'user', - ), + search: 'user', ); expect(response.body.ocs.data, hasLength(1)); expect(response.body.ocs.data[0].id, 'user2'); @@ -490,9 +483,7 @@ void main() { final room = await createTestRoom(); final response = await tester.client.spreed.internalSignaling.signalingGetSettings( - $body: spreed.SignalingGetSettingsRequestApplicationJson( - (b) => b..token = room.token, - ), + token: room.token, ); expect(response.body.ocs.data.signalingMode, 'internal'); expect(response.body.ocs.data.userId, 'user1'); @@ -589,9 +580,7 @@ void main() { var receiveMessagesResponse = await tester.client.spreed.chat.receiveMessages( token: room.token, - $body: spreed.ChatReceiveMessagesRequestApplicationJson( - (b) => b..lookIntoFuture = spreed.ChatReceiveMessagesRequestApplicationJson_LookIntoFuture.$0, - ), + lookIntoFuture: spreed.ChatReceiveMessagesLookIntoFuture.$0, ); var message = receiveMessagesResponse.body.ocs.data[0]; expect(message.message, 'bla'); @@ -610,9 +599,7 @@ void main() { receiveMessagesResponse = await tester.client.spreed.chat.receiveMessages( token: room.token, - $body: spreed.ChatReceiveMessagesRequestApplicationJson( - (b) => b..lookIntoFuture = spreed.ChatReceiveMessagesRequestApplicationJson_LookIntoFuture.$0, - ), + lookIntoFuture: spreed.ChatReceiveMessagesLookIntoFuture.$0, ); message = receiveMessagesResponse.body.ocs.data[1]; expect(message.message, 'bla'); @@ -624,17 +611,13 @@ void main() { final removeResponse = await tester.client.spreed.reaction.delete( token: room.token, messageId: message.id, - $body: spreed.ReactionDeleteRequestApplicationJson( - (b) => b..reaction = '😀', - ), + reaction: '😀', ); expect(removeResponse.body.ocs.data, isEmpty); receiveMessagesResponse = await tester.client.spreed.chat.receiveMessages( token: room.token, - $body: spreed.ChatReceiveMessagesRequestApplicationJson( - (b) => b..lookIntoFuture = spreed.ChatReceiveMessagesRequestApplicationJson_LookIntoFuture.$0, - ), + lookIntoFuture: spreed.ChatReceiveMessagesLookIntoFuture.$0, ); message = receiveMessagesResponse.body.ocs.data[2]; expect(message.message, 'bla'); diff --git a/packages/nextcloud/test/fixtures/core/autocomplete/get.regexp b/packages/nextcloud/test/fixtures/core/autocomplete/get.regexp index b7938982621..247118cfaf4 100644 --- a/packages/nextcloud/test/fixtures/core/autocomplete/get.regexp +++ b/packages/nextcloud/test/fixtures/core/autocomplete/get.regexp @@ -1,6 +1,4 @@ -GET http://localhost/ocs/v2\.php/core/autocomplete/get +GET http://localhost/ocs/v2\.php/core/autocomplete/get\?search=&itemType=call&itemId=new&shareTypes%5B%5D=1&limit=10 accept: application/json authorization: Bearer mock -content-type: application/json; charset=utf-8 -ocs-apirequest: true -\{"search":"","shareTypes":\[1\],"limit":10,"itemType":"call","itemId":"new"\} \ No newline at end of file +ocs-apirequest: true \ No newline at end of file diff --git a/packages/nextcloud/test/fixtures/core/navigation/get_apps_navigation.regexp b/packages/nextcloud/test/fixtures/core/navigation/get_apps_navigation.regexp index 47ae4041707..bc7704b161a 100644 --- a/packages/nextcloud/test/fixtures/core/navigation/get_apps_navigation.regexp +++ b/packages/nextcloud/test/fixtures/core/navigation/get_apps_navigation.regexp @@ -1,6 +1,4 @@ -GET http://localhost/ocs/v2\.php/core/navigation/apps +GET http://localhost/ocs/v2\.php/core/navigation/apps\?absolute=0 accept: application/json authorization: Bearer mock -content-type: application/json; charset=utf-8 -ocs-apirequest: true -\{"absolute":false\} \ No newline at end of file +ocs-apirequest: true \ No newline at end of file diff --git a/packages/nextcloud/test/fixtures/core/preview/get.regexp b/packages/nextcloud/test/fixtures/core/preview/get.regexp index a2c867cdbb6..d30b6801ecd 100644 --- a/packages/nextcloud/test/fixtures/core/preview/get.regexp +++ b/packages/nextcloud/test/fixtures/core/preview/get.regexp @@ -5,8 +5,6 @@ content-type: application/xml ocs-apirequest: true requesttoken: token .+ -GET http://localhost/index\.php/core/preview\.png +GET http://localhost/index\.php/core/preview\.png\?file=preview\.png&x=32&y=32&a=0&forceIcon=1&mode=fill&mimeFallback=0 accept: \*/\* -authorization: Bearer mock -content-type: application/json; charset=utf-8 -\{"file":"preview\.png","x":32,"y":32,"a":false,"forceIcon":true,"mode":"fill","mimeFallback":false\} \ No newline at end of file +authorization: Bearer mock \ No newline at end of file diff --git a/packages/nextcloud/test/fixtures/core/references/resolveone.regexp b/packages/nextcloud/test/fixtures/core/references/resolveone.regexp index 5af4bc01bfb..87eec774a77 100644 --- a/packages/nextcloud/test/fixtures/core/references/resolveone.regexp +++ b/packages/nextcloud/test/fixtures/core/references/resolveone.regexp @@ -1,6 +1,4 @@ -GET http://localhost/ocs/v2\.php/references/resolve +GET http://localhost/ocs/v2\.php/references/resolve\?reference=https%3A%2F%2Fexample\.com accept: application/json authorization: Bearer mock -content-type: application/json; charset=utf-8 -ocs-apirequest: true -\{"reference":"https://example\.com"\} \ No newline at end of file +ocs-apirequest: true \ No newline at end of file diff --git a/packages/nextcloud/test/fixtures/core/unified_search/get_providers.regexp b/packages/nextcloud/test/fixtures/core/unified_search/get_providers.regexp index 26717be6756..77c1f6c52cc 100644 --- a/packages/nextcloud/test/fixtures/core/unified_search/get_providers.regexp +++ b/packages/nextcloud/test/fixtures/core/unified_search/get_providers.regexp @@ -1,6 +1,4 @@ -GET http://localhost/ocs/v2\.php/search/providers +GET http://localhost/ocs/v2\.php/search/providers\?from= accept: application/json authorization: Bearer mock -content-type: application/json; charset=utf-8 -ocs-apirequest: true -\{"from":""\} \ No newline at end of file +ocs-apirequest: true \ No newline at end of file diff --git a/packages/nextcloud/test/fixtures/core/unified_search/search.regexp b/packages/nextcloud/test/fixtures/core/unified_search/search.regexp index b210be293ad..89573dac820 100644 --- a/packages/nextcloud/test/fixtures/core/unified_search/search.regexp +++ b/packages/nextcloud/test/fixtures/core/unified_search/search.regexp @@ -1,6 +1,4 @@ -GET http://localhost/ocs/v2\.php/search/providers/settings/search +GET http://localhost/ocs/v2\.php/search/providers/settings/search\?term=Personal%20info&from= accept: application/json authorization: Bearer mock -content-type: application/json; charset=utf-8 -ocs-apirequest: true -\{"term":"Personal info","from":""\} \ No newline at end of file +ocs-apirequest: true \ No newline at end of file diff --git a/packages/nextcloud/test/fixtures/dashboard/get_widget_items/v1.regexp b/packages/nextcloud/test/fixtures/dashboard/get_widget_items/v1.regexp index 43f12161b59..0274ad6056a 100644 --- a/packages/nextcloud/test/fixtures/dashboard/get_widget_items/v1.regexp +++ b/packages/nextcloud/test/fixtures/dashboard/get_widget_items/v1.regexp @@ -1,6 +1,4 @@ -GET http://localhost/ocs/v2\.php/apps/dashboard/api/v1/widget-items +GET http://localhost/ocs/v2\.php/apps/dashboard/api/v1/widget-items\?limit=7 accept: application/json authorization: Bearer mock -content-type: application/json; charset=utf-8 -ocs-apirequest: true -\{"sinceIds":\{\},"limit":7,"widgets":\[\]\} \ No newline at end of file +ocs-apirequest: true \ No newline at end of file diff --git a/packages/nextcloud/test/fixtures/dashboard/get_widget_items/v2.regexp b/packages/nextcloud/test/fixtures/dashboard/get_widget_items/v2.regexp index dab6d0cab64..3e934fb47f1 100644 --- a/packages/nextcloud/test/fixtures/dashboard/get_widget_items/v2.regexp +++ b/packages/nextcloud/test/fixtures/dashboard/get_widget_items/v2.regexp @@ -1,6 +1,4 @@ -GET http://localhost/ocs/v2\.php/apps/dashboard/api/v2/widget-items +GET http://localhost/ocs/v2\.php/apps/dashboard/api/v2/widget-items\?limit=7 accept: application/json authorization: Bearer mock -content-type: application/json; charset=utf-8 -ocs-apirequest: true -\{"sinceIds":\{\},"limit":7,"widgets":\[\]\} \ No newline at end of file +ocs-apirequest: true \ No newline at end of file diff --git a/packages/nextcloud/test/fixtures/provisioning_api/apps/get.regexp b/packages/nextcloud/test/fixtures/provisioning_api/apps/get.regexp index d699e4d195d..3078aa2da01 100644 --- a/packages/nextcloud/test/fixtures/provisioning_api/apps/get.regexp +++ b/packages/nextcloud/test/fixtures/provisioning_api/apps/get.regexp @@ -1,9 +1,7 @@ GET http://localhost/ocs/v2\.php/cloud/apps accept: application/json authorization: Bearer mock -content-type: application/json; charset=utf-8 ocs-apirequest: true -\{\} (GET http://localhost/ocs/v2\.php/cloud/apps/[a-z_]+ accept: application/json authorization: Bearer mock diff --git a/packages/nextcloud/test/fixtures/spreed/avatar/get_avatar.regexp b/packages/nextcloud/test/fixtures/spreed/avatar/get_avatar.regexp index 6754d3a1971..714ccd2bb2e 100644 --- a/packages/nextcloud/test/fixtures/spreed/avatar/get_avatar.regexp +++ b/packages/nextcloud/test/fixtures/spreed/avatar/get_avatar.regexp @@ -10,9 +10,7 @@ authorization: Bearer mock content-type: application/json; charset=utf-8 ocs-apirequest: true \{"emoji":"😀"\} -GET http://localhost/ocs/v2\.php/apps/spreed/api/v1/room/[a-z0-9]{8}/avatar +GET http://localhost/ocs/v2\.php/apps/spreed/api/v1/room/[a-z0-9]{8}/avatar\?darkTheme=0 accept: \*/\* authorization: Bearer mock -content-type: application/json; charset=utf-8 -ocs-apirequest: true -\{"darkTheme":false\} \ No newline at end of file +ocs-apirequest: true \ No newline at end of file diff --git a/packages/nextcloud/test/fixtures/spreed/call/start_and_end_call.regexp b/packages/nextcloud/test/fixtures/spreed/call/start_and_end_call.regexp index 0516859cc51..2e151bd560a 100644 --- a/packages/nextcloud/test/fixtures/spreed/call/start_and_end_call.regexp +++ b/packages/nextcloud/test/fixtures/spreed/call/start_and_end_call.regexp @@ -20,12 +20,10 @@ GET http://localhost/ocs/v2\.php/apps/spreed/api/v4/room/[a-z0-9]{8} accept: application/json authorization: Bearer mock ocs-apirequest: true -DELETE http://localhost/ocs/v2\.php/apps/spreed/api/v4/call/[a-z0-9]{8} +DELETE http://localhost/ocs/v2\.php/apps/spreed/api/v4/call/[a-z0-9]{8}\?all=0 accept: application/json authorization: Bearer mock -content-type: application/json; charset=utf-8 ocs-apirequest: true -\{"all":false\} GET http://localhost/ocs/v2\.php/apps/spreed/api/v4/room/[a-z0-9]{8} accept: application/json authorization: Bearer mock diff --git a/packages/nextcloud/test/fixtures/spreed/chat/get_messages/directly.regexp b/packages/nextcloud/test/fixtures/spreed/chat/get_messages/directly.regexp index cbfb1f8d892..ed20782f537 100644 --- a/packages/nextcloud/test/fixtures/spreed/chat/get_messages/directly.regexp +++ b/packages/nextcloud/test/fixtures/spreed/chat/get_messages/directly.regexp @@ -16,9 +16,7 @@ authorization: Bearer mock content-type: application/json; charset=utf-8 ocs-apirequest: true \{"message":"123","actorDisplayName":"","referenceId":"","replyTo":[0-9]+,"silent":false\} -GET http://localhost/ocs/v2\.php/apps/spreed/api/v1/chat/[a-z0-9]{8} +GET http://localhost/ocs/v2\.php/apps/spreed/api/v1/chat/[a-z0-9]{8}\?lookIntoFuture=0&limit=100&lastKnownMessageId=0&lastCommonReadId=0&timeout=30&setReadMarker=1&includeLastKnown=0&noStatusUpdate=0&markNotificationsAsRead=1 accept: application/json authorization: Bearer mock -content-type: application/json; charset=utf-8 -ocs-apirequest: true -\{"lookIntoFuture":0,"limit":100,"lastKnownMessageId":0,"lastCommonReadId":0,"timeout":30,"setReadMarker":1,"includeLastKnown":0,"noStatusUpdate":0,"markNotificationsAsRead":1\} \ No newline at end of file +ocs-apirequest: true \ No newline at end of file diff --git a/packages/nextcloud/test/fixtures/spreed/chat/get_messages/polling.regexp b/packages/nextcloud/test/fixtures/spreed/chat/get_messages/polling.regexp index 465a3db638e..a9cb37f98ef 100644 --- a/packages/nextcloud/test/fixtures/spreed/chat/get_messages/polling.regexp +++ b/packages/nextcloud/test/fixtures/spreed/chat/get_messages/polling.regexp @@ -10,12 +10,10 @@ authorization: Bearer mock content-type: application/json; charset=utf-8 ocs-apirequest: true \{"message":"bla","actorDisplayName":"","referenceId":"","replyTo":0,"silent":false\} -GET http://localhost/ocs/v2\.php/apps/spreed/api/v1/chat/[a-z0-9]{8} +GET http://localhost/ocs/v2\.php/apps/spreed/api/v1/chat/[a-z0-9]{8}\?lookIntoFuture=1&limit=100&lastKnownMessageId=[0-9]+&lastCommonReadId=0&timeout=3&setReadMarker=1&includeLastKnown=0&noStatusUpdate=0&markNotificationsAsRead=1 accept: application/json authorization: Bearer mock -content-type: application/json; charset=utf-8 ocs-apirequest: true -\{"lookIntoFuture":1,"limit":100,"lastKnownMessageId":[0-9]+,"lastCommonReadId":0,"timeout":3,"setReadMarker":1,"includeLastKnown":0,"noStatusUpdate":0,"markNotificationsAsRead":1\} POST http://localhost/ocs/v2\.php/apps/spreed/api/v1/chat/[a-z0-9]{8} accept: application/json authorization: Bearer mock diff --git a/packages/nextcloud/test/fixtures/spreed/chat/mention_suggestions.regexp b/packages/nextcloud/test/fixtures/spreed/chat/mention_suggestions.regexp index 48a8f59b49a..b6556003765 100644 --- a/packages/nextcloud/test/fixtures/spreed/chat/mention_suggestions.regexp +++ b/packages/nextcloud/test/fixtures/spreed/chat/mention_suggestions.regexp @@ -10,9 +10,7 @@ authorization: Bearer mock content-type: application/json; charset=utf-8 ocs-apirequest: true \{"newParticipant":"user2","source":"users"\} -GET http://localhost/ocs/v2\.php/apps/spreed/api/v1/chat/[a-z0-9]{8}/mentions +GET http://localhost/ocs/v2\.php/apps/spreed/api/v1/chat/[a-z0-9]{8}/mentions\?search=user&limit=20&includeStatus=0 accept: application/json authorization: Bearer mock -content-type: application/json; charset=utf-8 -ocs-apirequest: true -\{"search":"user","limit":20,"includeStatus":false\} \ No newline at end of file +ocs-apirequest: true \ No newline at end of file diff --git a/packages/nextcloud/test/fixtures/spreed/reaction/add_and_remove.regexp b/packages/nextcloud/test/fixtures/spreed/reaction/add_and_remove.regexp index 8266c5f756c..1986cd5132e 100644 --- a/packages/nextcloud/test/fixtures/spreed/reaction/add_and_remove.regexp +++ b/packages/nextcloud/test/fixtures/spreed/reaction/add_and_remove.regexp @@ -10,33 +10,25 @@ authorization: Bearer mock content-type: application/json; charset=utf-8 ocs-apirequest: true \{"message":"bla","actorDisplayName":"","referenceId":"","replyTo":0,"silent":false\} -GET http://localhost/ocs/v2\.php/apps/spreed/api/v1/chat/[a-z0-9]{8} +GET http://localhost/ocs/v2\.php/apps/spreed/api/v1/chat/[a-z0-9]{8}\?lookIntoFuture=0&limit=100&lastKnownMessageId=0&lastCommonReadId=0&timeout=30&setReadMarker=1&includeLastKnown=0&noStatusUpdate=0&markNotificationsAsRead=1 accept: application/json authorization: Bearer mock -content-type: application/json; charset=utf-8 ocs-apirequest: true -\{"lookIntoFuture":0,"limit":100,"lastKnownMessageId":0,"lastCommonReadId":0,"timeout":30,"setReadMarker":1,"includeLastKnown":0,"noStatusUpdate":0,"markNotificationsAsRead":1\} POST http://localhost/ocs/v2\.php/apps/spreed/api/v1/reaction/[a-z0-9]{8}/[0-9]+ accept: application/json authorization: Bearer mock content-type: application/json; charset=utf-8 ocs-apirequest: true \{"reaction":"😀"\} -GET http://localhost/ocs/v2\.php/apps/spreed/api/v1/chat/[a-z0-9]{8} +GET http://localhost/ocs/v2\.php/apps/spreed/api/v1/chat/[a-z0-9]{8}\?lookIntoFuture=0&limit=100&lastKnownMessageId=0&lastCommonReadId=0&timeout=30&setReadMarker=1&includeLastKnown=0&noStatusUpdate=0&markNotificationsAsRead=1 accept: application/json authorization: Bearer mock -content-type: application/json; charset=utf-8 ocs-apirequest: true -\{"lookIntoFuture":0,"limit":100,"lastKnownMessageId":0,"lastCommonReadId":0,"timeout":30,"setReadMarker":1,"includeLastKnown":0,"noStatusUpdate":0,"markNotificationsAsRead":1\} -DELETE http://localhost/ocs/v2\.php/apps/spreed/api/v1/reaction/[a-z0-9]{8}/[0-9]+ +DELETE http://localhost/ocs/v2\.php/apps/spreed/api/v1/reaction/[a-z0-9]{8}/[0-9]+\?reaction=%F0%9F%98%80 accept: application/json authorization: Bearer mock -content-type: application/json; charset=utf-8 ocs-apirequest: true -\{"reaction":"😀"\} -GET http://localhost/ocs/v2\.php/apps/spreed/api/v1/chat/[a-z0-9]{8} +GET http://localhost/ocs/v2\.php/apps/spreed/api/v1/chat/[a-z0-9]{8}\?lookIntoFuture=0&limit=100&lastKnownMessageId=0&lastCommonReadId=0&timeout=30&setReadMarker=1&includeLastKnown=0&noStatusUpdate=0&markNotificationsAsRead=1 accept: application/json authorization: Bearer mock -content-type: application/json; charset=utf-8 -ocs-apirequest: true -\{"lookIntoFuture":0,"limit":100,"lastKnownMessageId":0,"lastCommonReadId":0,"timeout":30,"setReadMarker":1,"includeLastKnown":0,"noStatusUpdate":0,"markNotificationsAsRead":1\} \ No newline at end of file +ocs-apirequest: true \ No newline at end of file diff --git a/packages/nextcloud/test/fixtures/spreed/reaction/get.regexp b/packages/nextcloud/test/fixtures/spreed/reaction/get.regexp index 31f67d2d759..ab6f8c3c7c7 100644 --- a/packages/nextcloud/test/fixtures/spreed/reaction/get.regexp +++ b/packages/nextcloud/test/fixtures/spreed/reaction/get.regexp @@ -19,6 +19,4 @@ ocs-apirequest: true GET http://localhost/ocs/v2\.php/apps/spreed/api/v1/reaction/[a-z0-9]{8}/[0-9]+ accept: application/json authorization: Bearer mock -content-type: application/json; charset=utf-8 -ocs-apirequest: true -\{\} \ No newline at end of file +ocs-apirequest: true \ No newline at end of file diff --git a/packages/nextcloud/test/fixtures/spreed/room/get_rooms.regexp b/packages/nextcloud/test/fixtures/spreed/room/get_rooms.regexp index b94a8975336..807b9c326b0 100644 --- a/packages/nextcloud/test/fixtures/spreed/room/get_rooms.regexp +++ b/packages/nextcloud/test/fixtures/spreed/room/get_rooms.regexp @@ -1,6 +1,4 @@ -GET http://localhost/ocs/v2\.php/apps/spreed/api/v4/room +GET http://localhost/ocs/v2\.php/apps/spreed/api/v4/room\?noStatusUpdate=0&includeStatus=0&modifiedSince=0 accept: application/json authorization: Bearer mock -content-type: application/json; charset=utf-8 -ocs-apirequest: true -\{"noStatusUpdate":0,"includeStatus":false,"modifiedSince":0\} \ No newline at end of file +ocs-apirequest: true \ No newline at end of file diff --git a/packages/nextcloud/test/fixtures/spreed/signaling/get_settings.regexp b/packages/nextcloud/test/fixtures/spreed/signaling/get_settings.regexp index 7daa85a15c7..53309b40c9f 100644 --- a/packages/nextcloud/test/fixtures/spreed/signaling/get_settings.regexp +++ b/packages/nextcloud/test/fixtures/spreed/signaling/get_settings.regexp @@ -4,9 +4,7 @@ authorization: Bearer mock content-type: application/json; charset=utf-8 ocs-apirequest: true \{"roomType":3,"invite":"","roomName":"Test","source":"","objectType":"","objectId":""\} -GET http://localhost/ocs/v2\.php/apps/spreed/api/v3/signaling/settings +GET http://localhost/ocs/v2\.php/apps/spreed/api/v3/signaling/settings\?token=[a-z0-9]{8} accept: application/json authorization: Bearer mock -content-type: application/json; charset=utf-8 -ocs-apirequest: true -\{"token":"[a-z0-9]{8}"\} \ No newline at end of file +ocs-apirequest: true \ No newline at end of file diff --git a/packages/nextcloud/test/fixtures/user_status/statuses/find_all.regexp b/packages/nextcloud/test/fixtures/user_status/statuses/find_all.regexp index 461c5033876..ecaabd55953 100644 --- a/packages/nextcloud/test/fixtures/user_status/statuses/find_all.regexp +++ b/packages/nextcloud/test/fixtures/user_status/statuses/find_all.regexp @@ -1,6 +1,4 @@ GET http://localhost/ocs/v2\.php/apps/user_status/api/v1/statuses accept: application/json authorization: Bearer mock -content-type: application/json; charset=utf-8 -ocs-apirequest: true -\{\} \ No newline at end of file +ocs-apirequest: true \ No newline at end of file