// ignore_for_file: camel_case_types // ignore_for_file: discarded_futures // ignore_for_file: public_member_api_docs // ignore_for_file: unreachable_switch_case import 'dart:typed_data'; import 'package:built_collection/built_collection.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/json_object.dart'; import 'package:built_value/serializer.dart'; import 'package:built_value/standard_json_plugin.dart'; import 'package:collection/collection.dart'; import 'package:dynamite_runtime/content_string.dart'; import 'package:dynamite_runtime/http_client.dart'; import 'package:dynamite_runtime/utils.dart'; import 'package:meta/meta.dart'; import 'package:universal_io/io.dart'; part 'files.openapi.g.dart'; class Client extends DynamiteClient { Client( super.baseURL, { super.baseHeaders, super.userAgent, super.httpClient, super.cookieJar, super.authentications, }); Client.fromClient(final DynamiteClient client) : super( client.baseURL, baseHeaders: client.baseHeaders, httpClient: client.httpClient, cookieJar: client.cookieJar, authentications: client.authentications, ); ApiClient get api => ApiClient(this); DirectEditingClient get directEditing => DirectEditingClient(this); OpenLocalEditorClient get openLocalEditor => OpenLocalEditorClient(this); TemplateClient get template => TemplateClient(this); TransferOwnershipClient get transferOwnership => TransferOwnershipClient(this); } class ApiClient { ApiClient(this._rootClient); final Client _rootClient; /// Gets a thumbnail of the specified file. /// /// 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: /// * [x] Width of the thumbnail /// * [y] Height of the thumbnail /// * [file] URL-encoded filename /// /// Status codes: /// * 200: Thumbnail returned /// * 400: Getting thumbnail is not possible /// * 404: File not found /// /// See: /// * [getThumbnailRaw] for an experimental operation that returns a [DynamiteRawResponse] that can be serialized. Future> getThumbnail({ required final int x, required final int y, required final String file, }) async { final rawResponse = getThumbnailRaw( x: x, y: y, file: file, ); return rawResponse.future; } /// Gets a thumbnail of the specified file. /// /// This method and the response it returns is experimental. The API might change without a major version bump. /// /// Returns a [Future] containing a [DynamiteRawResponse] with the raw [HttpClientResponse] and serialization helpers. /// Throws a [DynamiteApiException] if the API call does not return an expected status code. /// /// Parameters: /// * [x] Width of the thumbnail /// * [y] Height of the thumbnail /// * [file] URL-encoded filename /// /// Status codes: /// * 200: Thumbnail returned /// * 400: Getting thumbnail is not possible /// * 404: File not found /// /// See: /// * [getThumbnail] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse getThumbnailRaw({ required final int x, required final int y, required final String file, }) { var path = '/index.php/apps/files/api/v1/thumbnail/{x}/{y}/{file}'; final queryParameters = {}; final headers = { 'Accept': '*/*', }; Uint8List? body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( (final auth) => switch (auth) { DynamiteHttpBearerAuthentication() || DynamiteHttpBasicAuthentication() => true, _ => false, }, ); if (authentication != null) { headers.addAll( authentication.headers, ); } else { throw Exception('Missing authentication for bearer_auth or basic_auth'); } // coverage:ignore-end path = path.replaceAll('{x}', Uri.encodeQueryComponent(x.toString())); path = path.replaceAll('{y}', Uri.encodeQueryComponent(y.toString())); checkPattern(file, RegExp(r'^.+$'), 'file'); // coverage:ignore-line path = path.replaceAll('{file}', Uri.encodeQueryComponent(file)); final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null); return DynamiteRawResponse( response: _rootClient.doRequest( 'get', uri, headers, body, const {200}, ), bodyType: const FullType(Uint8List), headersType: null, serializers: _jsonSerializers, ); } } class DirectEditingClient { DirectEditingClient(this._rootClient); final Client _rootClient; /// Get the direct editing capabilities. /// /// 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: /// * [oCSAPIRequest] Required to be true for the API request to pass /// /// Status codes: /// * 200: Direct editing capabilities returned /// /// See: /// * [infoRaw] for an experimental operation that returns a [DynamiteRawResponse] that can be serialized. Future> info({ final bool oCSAPIRequest = true, }) async { final rawResponse = infoRaw( oCSAPIRequest: oCSAPIRequest, ); return rawResponse.future; } /// Get the direct editing capabilities. /// /// This method and the response it returns is experimental. The API might change without a major version bump. /// /// Returns a [Future] containing a [DynamiteRawResponse] with the raw [HttpClientResponse] and serialization helpers. /// Throws a [DynamiteApiException] if the API call does not return an expected status code. /// /// Parameters: /// * [oCSAPIRequest] Required to be true for the API request to pass /// /// Status codes: /// * 200: Direct editing capabilities returned /// /// See: /// * [info] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse infoRaw({final bool oCSAPIRequest = true}) { const path = '/ocs/v2.php/apps/files/api/v1/directEditing'; final queryParameters = {}; final headers = { 'Accept': 'application/json', }; Uint8List? body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( (final auth) => switch (auth) { DynamiteHttpBearerAuthentication() || DynamiteHttpBasicAuthentication() => true, _ => false, }, ); if (authentication != null) { headers.addAll( authentication.headers, ); } else { throw Exception('Missing authentication for bearer_auth or basic_auth'); } // coverage:ignore-end headers['OCS-APIRequest'] = oCSAPIRequest.toString(); final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null); return DynamiteRawResponse( response: _rootClient.doRequest( 'get', uri, headers, body, const {200}, ), bodyType: const FullType(DirectEditingInfoResponseApplicationJson), headersType: null, serializers: _jsonSerializers, ); } /// Get the templates for direct editing. /// /// 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: /// * [editorId] ID of the editor /// * [creatorId] ID of the creator /// * [oCSAPIRequest] Required to be true for the API request to pass /// /// Status codes: /// * 200: Templates returned /// * 500 /// /// See: /// * [templatesRaw] for an experimental operation that returns a [DynamiteRawResponse] that can be serialized. Future> templates({ required final String editorId, required final String creatorId, final bool oCSAPIRequest = true, }) async { final rawResponse = templatesRaw( editorId: editorId, creatorId: creatorId, oCSAPIRequest: oCSAPIRequest, ); return rawResponse.future; } /// Get the templates for direct editing. /// /// This method and the response it returns is experimental. The API might change without a major version bump. /// /// Returns a [Future] containing a [DynamiteRawResponse] with the raw [HttpClientResponse] and serialization helpers. /// Throws a [DynamiteApiException] if the API call does not return an expected status code. /// /// Parameters: /// * [editorId] ID of the editor /// * [creatorId] ID of the creator /// * [oCSAPIRequest] Required to be true for the API request to pass /// /// Status codes: /// * 200: Templates returned /// * 500 /// /// See: /// * [templates] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse templatesRaw({ required final String editorId, required final String creatorId, final bool oCSAPIRequest = true, }) { var path = '/ocs/v2.php/apps/files/api/v1/directEditing/templates/{editorId}/{creatorId}'; final queryParameters = {}; final headers = { 'Accept': 'application/json', }; Uint8List? body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( (final auth) => switch (auth) { DynamiteHttpBearerAuthentication() || DynamiteHttpBasicAuthentication() => true, _ => false, }, ); if (authentication != null) { headers.addAll( authentication.headers, ); } else { throw Exception('Missing authentication for bearer_auth or basic_auth'); } // coverage:ignore-end path = path.replaceAll('{editorId}', Uri.encodeQueryComponent(editorId)); path = path.replaceAll('{creatorId}', Uri.encodeQueryComponent(creatorId)); headers['OCS-APIRequest'] = oCSAPIRequest.toString(); final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null); return DynamiteRawResponse( response: _rootClient.doRequest( 'get', uri, headers, body, const {200}, ), bodyType: const FullType(DirectEditingTemplatesResponseApplicationJson), headersType: null, serializers: _jsonSerializers, ); } /// Open a file for direct editing. /// /// 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: /// * [path] Path of the file /// * [editorId] ID of the editor /// * [fileId] ID of the file /// * [oCSAPIRequest] Required to be true for the API request to pass /// /// Status codes: /// * 200: URL for direct editing returned /// * 403: Opening file is not allowed /// * 500 /// /// See: /// * [openRaw] for an experimental operation that returns a [DynamiteRawResponse] that can be serialized. Future> open({ required final String path, final String? editorId, final int? fileId, final bool oCSAPIRequest = true, }) async { final rawResponse = openRaw( path: path, editorId: editorId, fileId: fileId, oCSAPIRequest: oCSAPIRequest, ); return rawResponse.future; } /// Open a file for direct editing. /// /// This method and the response it returns is experimental. The API might change without a major version bump. /// /// Returns a [Future] containing a [DynamiteRawResponse] with the raw [HttpClientResponse] and serialization helpers. /// Throws a [DynamiteApiException] if the API call does not return an expected status code. /// /// Parameters: /// * [path] Path of the file /// * [editorId] ID of the editor /// * [fileId] ID of the file /// * [oCSAPIRequest] Required to be true for the API request to pass /// /// Status codes: /// * 200: URL for direct editing returned /// * 403: Opening file is not allowed /// * 500 /// /// See: /// * [open] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse openRaw({ required final String path, final String? editorId, final int? fileId, final bool oCSAPIRequest = true, }) { const path0 = '/ocs/v2.php/apps/files/api/v1/directEditing/open'; final queryParameters = {}; final headers = { 'Accept': 'application/json', }; Uint8List? body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( (final auth) => switch (auth) { DynamiteHttpBearerAuthentication() || DynamiteHttpBasicAuthentication() => true, _ => false, }, ); if (authentication != null) { headers.addAll( authentication.headers, ); } else { throw Exception('Missing authentication for bearer_auth or basic_auth'); } // coverage:ignore-end queryParameters['path'] = path; if (editorId != null) { queryParameters['editorId'] = editorId; } if (fileId != null) { queryParameters['fileId'] = fileId.toString(); } headers['OCS-APIRequest'] = oCSAPIRequest.toString(); final uri = Uri(path: path0, queryParameters: queryParameters.isNotEmpty ? queryParameters : null); return DynamiteRawResponse( response: _rootClient.doRequest( 'post', uri, headers, body, const {200}, ), bodyType: const FullType(DirectEditingOpenResponseApplicationJson), headersType: null, serializers: _jsonSerializers, ); } /// Create a file for direct editing. /// /// 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: /// * [path] Path of the file /// * [editorId] ID of the editor /// * [creatorId] ID of the creator /// * [templateId] ID of the template /// * [oCSAPIRequest] Required to be true for the API request to pass /// /// Status codes: /// * 200: URL for direct editing returned /// * 403: Opening file is not allowed /// * 500 /// /// See: /// * [createRaw] for an experimental operation that returns a [DynamiteRawResponse] that can be serialized. Future> create({ required final String path, required final String editorId, required final String creatorId, final String? templateId, final bool oCSAPIRequest = true, }) async { final rawResponse = createRaw( path: path, editorId: editorId, creatorId: creatorId, templateId: templateId, oCSAPIRequest: oCSAPIRequest, ); return rawResponse.future; } /// Create a file for direct editing. /// /// This method and the response it returns is experimental. The API might change without a major version bump. /// /// Returns a [Future] containing a [DynamiteRawResponse] with the raw [HttpClientResponse] and serialization helpers. /// Throws a [DynamiteApiException] if the API call does not return an expected status code. /// /// Parameters: /// * [path] Path of the file /// * [editorId] ID of the editor /// * [creatorId] ID of the creator /// * [templateId] ID of the template /// * [oCSAPIRequest] Required to be true for the API request to pass /// /// Status codes: /// * 200: URL for direct editing returned /// * 403: Opening file is not allowed /// * 500 /// /// See: /// * [create] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse createRaw({ required final String path, required final String editorId, required final String creatorId, final String? templateId, final bool oCSAPIRequest = true, }) { const path0 = '/ocs/v2.php/apps/files/api/v1/directEditing/create'; final queryParameters = {}; final headers = { 'Accept': 'application/json', }; Uint8List? body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( (final auth) => switch (auth) { DynamiteHttpBearerAuthentication() || DynamiteHttpBasicAuthentication() => true, _ => false, }, ); if (authentication != null) { headers.addAll( authentication.headers, ); } else { throw Exception('Missing authentication for bearer_auth or basic_auth'); } // coverage:ignore-end queryParameters['path'] = path; queryParameters['editorId'] = editorId; queryParameters['creatorId'] = creatorId; if (templateId != null) { queryParameters['templateId'] = templateId; } headers['OCS-APIRequest'] = oCSAPIRequest.toString(); final uri = Uri(path: path0, queryParameters: queryParameters.isNotEmpty ? queryParameters : null); return DynamiteRawResponse( response: _rootClient.doRequest( 'post', uri, headers, body, const {200}, ), bodyType: const FullType(DirectEditingCreateResponseApplicationJson), headersType: null, serializers: _jsonSerializers, ); } } class OpenLocalEditorClient { OpenLocalEditorClient(this._rootClient); final Client _rootClient; /// Create a local editor. /// /// 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: /// * [path] Path of the file /// * [oCSAPIRequest] Required to be true for the API request to pass /// /// Status codes: /// * 200: Local editor returned /// * 500 /// /// See: /// * [createRaw] for an experimental operation that returns a [DynamiteRawResponse] that can be serialized. Future> create({ required final String path, final bool oCSAPIRequest = true, }) async { final rawResponse = createRaw( path: path, oCSAPIRequest: oCSAPIRequest, ); return rawResponse.future; } /// Create a local editor. /// /// This method and the response it returns is experimental. The API might change without a major version bump. /// /// Returns a [Future] containing a [DynamiteRawResponse] with the raw [HttpClientResponse] and serialization helpers. /// Throws a [DynamiteApiException] if the API call does not return an expected status code. /// /// Parameters: /// * [path] Path of the file /// * [oCSAPIRequest] Required to be true for the API request to pass /// /// Status codes: /// * 200: Local editor returned /// * 500 /// /// See: /// * [create] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse createRaw({ required final String path, final bool oCSAPIRequest = true, }) { const path0 = '/ocs/v2.php/apps/files/api/v1/openlocaleditor'; final queryParameters = {}; final headers = { 'Accept': 'application/json', }; Uint8List? body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( (final auth) => switch (auth) { DynamiteHttpBearerAuthentication() || DynamiteHttpBasicAuthentication() => true, _ => false, }, ); if (authentication != null) { headers.addAll( authentication.headers, ); } else { throw Exception('Missing authentication for bearer_auth or basic_auth'); } // coverage:ignore-end queryParameters['path'] = path; headers['OCS-APIRequest'] = oCSAPIRequest.toString(); final uri = Uri(path: path0, queryParameters: queryParameters.isNotEmpty ? queryParameters : null); return DynamiteRawResponse( response: _rootClient.doRequest( 'post', uri, headers, body, const {200}, ), bodyType: const FullType(OpenLocalEditorCreateResponseApplicationJson), headersType: null, serializers: _jsonSerializers, ); } /// Validate a local editor. /// /// 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: /// * [path] Path of the file /// * [token] Token of the local editor /// * [oCSAPIRequest] Required to be true for the API request to pass /// /// Status codes: /// * 200: Local editor validated successfully /// * 404: Local editor not found /// /// See: /// * [validateRaw] for an experimental operation that returns a [DynamiteRawResponse] that can be serialized. Future> validate({ required final String path, required final String token, final bool oCSAPIRequest = true, }) async { final rawResponse = validateRaw( path: path, token: token, oCSAPIRequest: oCSAPIRequest, ); return rawResponse.future; } /// Validate a local editor. /// /// This method and the response it returns is experimental. The API might change without a major version bump. /// /// Returns a [Future] containing a [DynamiteRawResponse] with the raw [HttpClientResponse] and serialization helpers. /// Throws a [DynamiteApiException] if the API call does not return an expected status code. /// /// Parameters: /// * [path] Path of the file /// * [token] Token of the local editor /// * [oCSAPIRequest] Required to be true for the API request to pass /// /// Status codes: /// * 200: Local editor validated successfully /// * 404: Local editor not found /// /// See: /// * [validate] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse validateRaw({ required final String path, required final String token, final bool oCSAPIRequest = true, }) { var path0 = '/ocs/v2.php/apps/files/api/v1/openlocaleditor/{token}'; final queryParameters = {}; final headers = { 'Accept': 'application/json', }; Uint8List? body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( (final auth) => switch (auth) { DynamiteHttpBearerAuthentication() || DynamiteHttpBasicAuthentication() => true, _ => false, }, ); if (authentication != null) { headers.addAll( authentication.headers, ); } else { throw Exception('Missing authentication for bearer_auth or basic_auth'); } // coverage:ignore-end queryParameters['path'] = path; path0 = path0.replaceAll('{token}', Uri.encodeQueryComponent(token)); headers['OCS-APIRequest'] = oCSAPIRequest.toString(); final uri = Uri(path: path0, queryParameters: queryParameters.isNotEmpty ? queryParameters : null); return DynamiteRawResponse( response: _rootClient.doRequest( 'post', uri, headers, body, const {200}, ), bodyType: const FullType(OpenLocalEditorValidateResponseApplicationJson), headersType: null, serializers: _jsonSerializers, ); } } class TemplateClient { TemplateClient(this._rootClient); final Client _rootClient; /// List the available templates. /// /// 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: /// * [oCSAPIRequest] Required to be true for the API request to pass /// /// Status codes: /// * 200: Available templates returned /// /// See: /// * [listRaw] for an experimental operation that returns a [DynamiteRawResponse] that can be serialized. Future> list({final bool oCSAPIRequest = true}) async { final rawResponse = listRaw( oCSAPIRequest: oCSAPIRequest, ); return rawResponse.future; } /// List the available templates. /// /// This method and the response it returns is experimental. The API might change without a major version bump. /// /// Returns a [Future] containing a [DynamiteRawResponse] with the raw [HttpClientResponse] and serialization helpers. /// Throws a [DynamiteApiException] if the API call does not return an expected status code. /// /// Parameters: /// * [oCSAPIRequest] Required to be true for the API request to pass /// /// Status codes: /// * 200: Available templates returned /// /// See: /// * [list] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse listRaw({final bool oCSAPIRequest = true}) { const path = '/ocs/v2.php/apps/files/api/v1/templates'; final queryParameters = {}; final headers = { 'Accept': 'application/json', }; Uint8List? body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( (final auth) => switch (auth) { DynamiteHttpBearerAuthentication() || DynamiteHttpBasicAuthentication() => true, _ => false, }, ); if (authentication != null) { headers.addAll( authentication.headers, ); } else { throw Exception('Missing authentication for bearer_auth or basic_auth'); } // coverage:ignore-end headers['OCS-APIRequest'] = oCSAPIRequest.toString(); final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null); return DynamiteRawResponse( response: _rootClient.doRequest( 'get', uri, headers, body, const {200}, ), bodyType: const FullType(TemplateListResponseApplicationJson), headersType: null, serializers: _jsonSerializers, ); } /// Create a template. /// /// 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: /// * [filePath] Path of the file /// * [templatePath] Name of the template /// * [templateType] Type of the template /// * [oCSAPIRequest] Required to be true for the API request to pass /// /// Status codes: /// * 200: Template created successfully /// * 403: Creating template is not allowed /// /// See: /// * [createRaw] for an experimental operation that returns a [DynamiteRawResponse] that can be serialized. Future> create({ required final String filePath, final String templatePath = '', final String templateType = 'user', final bool oCSAPIRequest = true, }) async { final rawResponse = createRaw( filePath: filePath, templatePath: templatePath, templateType: templateType, oCSAPIRequest: oCSAPIRequest, ); return rawResponse.future; } /// Create a template. /// /// This method and the response it returns is experimental. The API might change without a major version bump. /// /// Returns a [Future] containing a [DynamiteRawResponse] with the raw [HttpClientResponse] and serialization helpers. /// Throws a [DynamiteApiException] if the API call does not return an expected status code. /// /// Parameters: /// * [filePath] Path of the file /// * [templatePath] Name of the template /// * [templateType] Type of the template /// * [oCSAPIRequest] Required to be true for the API request to pass /// /// Status codes: /// * 200: Template created successfully /// * 403: Creating template is not allowed /// /// See: /// * [create] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse createRaw({ required final String filePath, final String templatePath = '', final String templateType = 'user', final bool oCSAPIRequest = true, }) { const path = '/ocs/v2.php/apps/files/api/v1/templates/create'; final queryParameters = {}; final headers = { 'Accept': 'application/json', }; Uint8List? body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( (final auth) => switch (auth) { DynamiteHttpBearerAuthentication() || DynamiteHttpBasicAuthentication() => true, _ => false, }, ); if (authentication != null) { headers.addAll( authentication.headers, ); } else { throw Exception('Missing authentication for bearer_auth or basic_auth'); } // coverage:ignore-end queryParameters['filePath'] = filePath; if (templatePath != '') { queryParameters['templatePath'] = templatePath; } if (templateType != 'user') { queryParameters['templateType'] = templateType; } headers['OCS-APIRequest'] = oCSAPIRequest.toString(); final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null); return DynamiteRawResponse( response: _rootClient.doRequest( 'post', uri, headers, body, const {200}, ), bodyType: const FullType(TemplateCreateResponseApplicationJson), headersType: null, serializers: _jsonSerializers, ); } /// Initialize the template directory. /// /// 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: /// * [templatePath] Path of the template directory /// * [copySystemTemplates] Whether to copy the system templates to the template directory /// * [oCSAPIRequest] Required to be true for the API request to pass /// /// Status codes: /// * 200: Template directory initialized successfully /// * 403: Initializing the template directory is not allowed /// /// See: /// * [pathRaw] for an experimental operation that returns a [DynamiteRawResponse] that can be serialized. Future> path({ final String templatePath = '', final int copySystemTemplates = 0, final bool oCSAPIRequest = true, }) async { final rawResponse = pathRaw( templatePath: templatePath, copySystemTemplates: copySystemTemplates, oCSAPIRequest: oCSAPIRequest, ); return rawResponse.future; } /// Initialize the template directory. /// /// This method and the response it returns is experimental. The API might change without a major version bump. /// /// Returns a [Future] containing a [DynamiteRawResponse] with the raw [HttpClientResponse] and serialization helpers. /// Throws a [DynamiteApiException] if the API call does not return an expected status code. /// /// Parameters: /// * [templatePath] Path of the template directory /// * [copySystemTemplates] Whether to copy the system templates to the template directory /// * [oCSAPIRequest] Required to be true for the API request to pass /// /// Status codes: /// * 200: Template directory initialized successfully /// * 403: Initializing the template directory is not allowed /// /// See: /// * [path] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse pathRaw({ final String templatePath = '', final int copySystemTemplates = 0, final bool oCSAPIRequest = true, }) { const path = '/ocs/v2.php/apps/files/api/v1/templates/path'; final queryParameters = {}; final headers = { 'Accept': 'application/json', }; Uint8List? body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( (final auth) => switch (auth) { DynamiteHttpBearerAuthentication() || DynamiteHttpBasicAuthentication() => true, _ => false, }, ); if (authentication != null) { headers.addAll( authentication.headers, ); } else { throw Exception('Missing authentication for bearer_auth or basic_auth'); } // coverage:ignore-end if (templatePath != '') { queryParameters['templatePath'] = templatePath; } if (copySystemTemplates != 0) { queryParameters['copySystemTemplates'] = copySystemTemplates.toString(); } headers['OCS-APIRequest'] = oCSAPIRequest.toString(); final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null); return DynamiteRawResponse( response: _rootClient.doRequest( 'post', uri, headers, body, const {200}, ), bodyType: const FullType(TemplatePathResponseApplicationJson), headersType: null, serializers: _jsonSerializers, ); } } class TransferOwnershipClient { TransferOwnershipClient(this._rootClient); final Client _rootClient; /// Transfer the ownership to another user. /// /// 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: /// * [recipient] Username of the recipient /// * [path] Path of the file /// * [oCSAPIRequest] Required to be true for the API request to pass /// /// Status codes: /// * 200: Ownership transferred successfully /// * 400: Transferring ownership is not possible /// * 403: Transferring ownership is not allowed /// /// See: /// * [transferRaw] for an experimental operation that returns a [DynamiteRawResponse] that can be serialized. Future> transfer({ required final String recipient, required final String path, final bool oCSAPIRequest = true, }) async { final rawResponse = transferRaw( recipient: recipient, path: path, oCSAPIRequest: oCSAPIRequest, ); return rawResponse.future; } /// Transfer the ownership to another user. /// /// This method and the response it returns is experimental. The API might change without a major version bump. /// /// Returns a [Future] containing a [DynamiteRawResponse] with the raw [HttpClientResponse] and serialization helpers. /// Throws a [DynamiteApiException] if the API call does not return an expected status code. /// /// Parameters: /// * [recipient] Username of the recipient /// * [path] Path of the file /// * [oCSAPIRequest] Required to be true for the API request to pass /// /// Status codes: /// * 200: Ownership transferred successfully /// * 400: Transferring ownership is not possible /// * 403: Transferring ownership is not allowed /// /// See: /// * [transfer] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse transferRaw({ required final String recipient, required final String path, final bool oCSAPIRequest = true, }) { const path0 = '/ocs/v2.php/apps/files/api/v1/transferownership'; final queryParameters = {}; final headers = { 'Accept': 'application/json', }; Uint8List? body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( (final auth) => switch (auth) { DynamiteHttpBearerAuthentication() || DynamiteHttpBasicAuthentication() => true, _ => false, }, ); if (authentication != null) { headers.addAll( authentication.headers, ); } else { throw Exception('Missing authentication for bearer_auth or basic_auth'); } // coverage:ignore-end queryParameters['recipient'] = recipient; queryParameters['path'] = path; headers['OCS-APIRequest'] = oCSAPIRequest.toString(); final uri = Uri(path: path0, queryParameters: queryParameters.isNotEmpty ? queryParameters : null); return DynamiteRawResponse( response: _rootClient.doRequest( 'post', uri, headers, body, const {200, 400, 403}, ), bodyType: const FullType(TransferOwnershipTransferResponseApplicationJson), headersType: null, serializers: _jsonSerializers, ); } /// Accept an ownership transfer. /// /// 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: /// * [id] ID of the ownership transfer /// * [oCSAPIRequest] Required to be true for the API request to pass /// /// Status codes: /// * 200: Ownership transfer accepted successfully /// * 403: Accepting ownership transfer is not allowed /// * 404: Ownership transfer not found /// /// See: /// * [acceptRaw] for an experimental operation that returns a [DynamiteRawResponse] that can be serialized. Future> accept({ required final int id, final bool oCSAPIRequest = true, }) async { final rawResponse = acceptRaw( id: id, oCSAPIRequest: oCSAPIRequest, ); return rawResponse.future; } /// Accept an ownership transfer. /// /// This method and the response it returns is experimental. The API might change without a major version bump. /// /// Returns a [Future] containing a [DynamiteRawResponse] with the raw [HttpClientResponse] and serialization helpers. /// Throws a [DynamiteApiException] if the API call does not return an expected status code. /// /// Parameters: /// * [id] ID of the ownership transfer /// * [oCSAPIRequest] Required to be true for the API request to pass /// /// Status codes: /// * 200: Ownership transfer accepted successfully /// * 403: Accepting ownership transfer is not allowed /// * 404: Ownership transfer not found /// /// See: /// * [accept] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse acceptRaw({ required final int id, final bool oCSAPIRequest = true, }) { var path = '/ocs/v2.php/apps/files/api/v1/transferownership/{id}'; final queryParameters = {}; final headers = { 'Accept': 'application/json', }; Uint8List? body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( (final auth) => switch (auth) { DynamiteHttpBearerAuthentication() || DynamiteHttpBasicAuthentication() => true, _ => false, }, ); if (authentication != null) { headers.addAll( authentication.headers, ); } else { throw Exception('Missing authentication for bearer_auth or basic_auth'); } // coverage:ignore-end path = path.replaceAll('{id}', Uri.encodeQueryComponent(id.toString())); headers['OCS-APIRequest'] = oCSAPIRequest.toString(); final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null); return DynamiteRawResponse( response: _rootClient.doRequest( 'post', uri, headers, body, const {200, 403, 404}, ), bodyType: const FullType(TransferOwnershipAcceptResponseApplicationJson), headersType: null, serializers: _jsonSerializers, ); } /// Reject an ownership transfer. /// /// 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: /// * [id] ID of the ownership transfer /// * [oCSAPIRequest] Required to be true for the API request to pass /// /// Status codes: /// * 200: Ownership transfer rejected successfully /// * 403: Rejecting ownership transfer is not allowed /// * 404: Ownership transfer not found /// /// See: /// * [rejectRaw] for an experimental operation that returns a [DynamiteRawResponse] that can be serialized. Future> reject({ required final int id, final bool oCSAPIRequest = true, }) async { final rawResponse = rejectRaw( id: id, oCSAPIRequest: oCSAPIRequest, ); return rawResponse.future; } /// Reject an ownership transfer. /// /// This method and the response it returns is experimental. The API might change without a major version bump. /// /// Returns a [Future] containing a [DynamiteRawResponse] with the raw [HttpClientResponse] and serialization helpers. /// Throws a [DynamiteApiException] if the API call does not return an expected status code. /// /// Parameters: /// * [id] ID of the ownership transfer /// * [oCSAPIRequest] Required to be true for the API request to pass /// /// Status codes: /// * 200: Ownership transfer rejected successfully /// * 403: Rejecting ownership transfer is not allowed /// * 404: Ownership transfer not found /// /// See: /// * [reject] for an operation that returns a [DynamiteResponse] with a stable API. @experimental DynamiteRawResponse rejectRaw({ required final int id, final bool oCSAPIRequest = true, }) { var path = '/ocs/v2.php/apps/files/api/v1/transferownership/{id}'; final queryParameters = {}; final headers = { 'Accept': 'application/json', }; Uint8List? body; // coverage:ignore-start final authentication = _rootClient.authentications.firstWhereOrNull( (final auth) => switch (auth) { DynamiteHttpBearerAuthentication() || DynamiteHttpBasicAuthentication() => true, _ => false, }, ); if (authentication != null) { headers.addAll( authentication.headers, ); } else { throw Exception('Missing authentication for bearer_auth or basic_auth'); } // coverage:ignore-end path = path.replaceAll('{id}', Uri.encodeQueryComponent(id.toString())); headers['OCS-APIRequest'] = oCSAPIRequest.toString(); final uri = Uri(path: path, queryParameters: queryParameters.isNotEmpty ? queryParameters : null); return DynamiteRawResponse( response: _rootClient.doRequest( 'delete', uri, headers, body, const {200, 403, 404}, ), bodyType: const FullType(TransferOwnershipRejectResponseApplicationJson), headersType: null, serializers: _jsonSerializers, ); } } @BuiltValue(instantiable: false) abstract interface class OCSMetaInterface { String get status; int get statuscode; String? get message; String? get totalitems; String? get itemsperpage; } abstract class OCSMeta implements OCSMetaInterface, Built { factory OCSMeta([final void Function(OCSMetaBuilder)? b]) = _$OCSMeta; // coverage:ignore-start const OCSMeta._(); // coverage:ignore-end // coverage:ignore-start factory OCSMeta.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$oCSMetaSerializer; } @BuiltValue(instantiable: false) abstract interface class DirectEditingInfoResponseApplicationJson_Ocs_Data_EditorsInterface { String get id; String get name; BuiltList get mimetypes; BuiltList get optionalMimetypes; bool get secure; } abstract class DirectEditingInfoResponseApplicationJson_Ocs_Data_Editors implements DirectEditingInfoResponseApplicationJson_Ocs_Data_EditorsInterface, Built { factory DirectEditingInfoResponseApplicationJson_Ocs_Data_Editors([ final void Function(DirectEditingInfoResponseApplicationJson_Ocs_Data_EditorsBuilder)? b, ]) = _$DirectEditingInfoResponseApplicationJson_Ocs_Data_Editors; // coverage:ignore-start const DirectEditingInfoResponseApplicationJson_Ocs_Data_Editors._(); // coverage:ignore-end // coverage:ignore-start factory DirectEditingInfoResponseApplicationJson_Ocs_Data_Editors.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$directEditingInfoResponseApplicationJsonOcsDataEditorsSerializer; } @BuiltValue(instantiable: false) abstract interface class DirectEditingInfoResponseApplicationJson_Ocs_Data_CreatorsInterface { String get id; String get editor; String get name; @BuiltValueField(wireName: 'extension') String get $extension; bool get templates; BuiltList get mimetypes; } abstract class DirectEditingInfoResponseApplicationJson_Ocs_Data_Creators implements DirectEditingInfoResponseApplicationJson_Ocs_Data_CreatorsInterface, Built { factory DirectEditingInfoResponseApplicationJson_Ocs_Data_Creators([ final void Function(DirectEditingInfoResponseApplicationJson_Ocs_Data_CreatorsBuilder)? b, ]) = _$DirectEditingInfoResponseApplicationJson_Ocs_Data_Creators; // coverage:ignore-start const DirectEditingInfoResponseApplicationJson_Ocs_Data_Creators._(); // coverage:ignore-end // coverage:ignore-start factory DirectEditingInfoResponseApplicationJson_Ocs_Data_Creators.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$directEditingInfoResponseApplicationJsonOcsDataCreatorsSerializer; } @BuiltValue(instantiable: false) abstract interface class DirectEditingInfoResponseApplicationJson_Ocs_DataInterface { BuiltMap get editors; BuiltMap get creators; } abstract class DirectEditingInfoResponseApplicationJson_Ocs_Data implements DirectEditingInfoResponseApplicationJson_Ocs_DataInterface, Built { factory DirectEditingInfoResponseApplicationJson_Ocs_Data([ final void Function(DirectEditingInfoResponseApplicationJson_Ocs_DataBuilder)? b, ]) = _$DirectEditingInfoResponseApplicationJson_Ocs_Data; // coverage:ignore-start const DirectEditingInfoResponseApplicationJson_Ocs_Data._(); // coverage:ignore-end // coverage:ignore-start factory DirectEditingInfoResponseApplicationJson_Ocs_Data.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$directEditingInfoResponseApplicationJsonOcsDataSerializer; } @BuiltValue(instantiable: false) abstract interface class DirectEditingInfoResponseApplicationJson_OcsInterface { OCSMeta get meta; DirectEditingInfoResponseApplicationJson_Ocs_Data get data; } abstract class DirectEditingInfoResponseApplicationJson_Ocs implements DirectEditingInfoResponseApplicationJson_OcsInterface, Built { factory DirectEditingInfoResponseApplicationJson_Ocs([ final void Function(DirectEditingInfoResponseApplicationJson_OcsBuilder)? b, ]) = _$DirectEditingInfoResponseApplicationJson_Ocs; // coverage:ignore-start const DirectEditingInfoResponseApplicationJson_Ocs._(); // coverage:ignore-end // coverage:ignore-start factory DirectEditingInfoResponseApplicationJson_Ocs.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$directEditingInfoResponseApplicationJsonOcsSerializer; } @BuiltValue(instantiable: false) abstract interface class DirectEditingInfoResponseApplicationJsonInterface { DirectEditingInfoResponseApplicationJson_Ocs get ocs; } abstract class DirectEditingInfoResponseApplicationJson implements DirectEditingInfoResponseApplicationJsonInterface, Built { factory DirectEditingInfoResponseApplicationJson([ final void Function(DirectEditingInfoResponseApplicationJsonBuilder)? b, ]) = _$DirectEditingInfoResponseApplicationJson; // coverage:ignore-start const DirectEditingInfoResponseApplicationJson._(); // coverage:ignore-end // coverage:ignore-start factory DirectEditingInfoResponseApplicationJson.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$directEditingInfoResponseApplicationJsonSerializer; } @BuiltValue(instantiable: false) abstract interface class DirectEditingTemplatesResponseApplicationJson_Ocs_Data_TemplatesInterface { String get id; String get title; String? get preview; @BuiltValueField(wireName: 'extension') String get $extension; String get mimetype; } abstract class DirectEditingTemplatesResponseApplicationJson_Ocs_Data_Templates implements DirectEditingTemplatesResponseApplicationJson_Ocs_Data_TemplatesInterface, Built { factory DirectEditingTemplatesResponseApplicationJson_Ocs_Data_Templates([ final void Function(DirectEditingTemplatesResponseApplicationJson_Ocs_Data_TemplatesBuilder)? b, ]) = _$DirectEditingTemplatesResponseApplicationJson_Ocs_Data_Templates; // coverage:ignore-start const DirectEditingTemplatesResponseApplicationJson_Ocs_Data_Templates._(); // coverage:ignore-end // coverage:ignore-start factory DirectEditingTemplatesResponseApplicationJson_Ocs_Data_Templates.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$directEditingTemplatesResponseApplicationJsonOcsDataTemplatesSerializer; } @BuiltValue(instantiable: false) abstract interface class DirectEditingTemplatesResponseApplicationJson_Ocs_DataInterface { BuiltMap get templates; } abstract class DirectEditingTemplatesResponseApplicationJson_Ocs_Data implements DirectEditingTemplatesResponseApplicationJson_Ocs_DataInterface, Built { factory DirectEditingTemplatesResponseApplicationJson_Ocs_Data([ final void Function(DirectEditingTemplatesResponseApplicationJson_Ocs_DataBuilder)? b, ]) = _$DirectEditingTemplatesResponseApplicationJson_Ocs_Data; // coverage:ignore-start const DirectEditingTemplatesResponseApplicationJson_Ocs_Data._(); // coverage:ignore-end // coverage:ignore-start factory DirectEditingTemplatesResponseApplicationJson_Ocs_Data.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$directEditingTemplatesResponseApplicationJsonOcsDataSerializer; } @BuiltValue(instantiable: false) abstract interface class DirectEditingTemplatesResponseApplicationJson_OcsInterface { OCSMeta get meta; DirectEditingTemplatesResponseApplicationJson_Ocs_Data get data; } abstract class DirectEditingTemplatesResponseApplicationJson_Ocs implements DirectEditingTemplatesResponseApplicationJson_OcsInterface, Built { factory DirectEditingTemplatesResponseApplicationJson_Ocs([ final void Function(DirectEditingTemplatesResponseApplicationJson_OcsBuilder)? b, ]) = _$DirectEditingTemplatesResponseApplicationJson_Ocs; // coverage:ignore-start const DirectEditingTemplatesResponseApplicationJson_Ocs._(); // coverage:ignore-end // coverage:ignore-start factory DirectEditingTemplatesResponseApplicationJson_Ocs.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$directEditingTemplatesResponseApplicationJsonOcsSerializer; } @BuiltValue(instantiable: false) abstract interface class DirectEditingTemplatesResponseApplicationJsonInterface { DirectEditingTemplatesResponseApplicationJson_Ocs get ocs; } abstract class DirectEditingTemplatesResponseApplicationJson implements DirectEditingTemplatesResponseApplicationJsonInterface, Built { factory DirectEditingTemplatesResponseApplicationJson([ final void Function(DirectEditingTemplatesResponseApplicationJsonBuilder)? b, ]) = _$DirectEditingTemplatesResponseApplicationJson; // coverage:ignore-start const DirectEditingTemplatesResponseApplicationJson._(); // coverage:ignore-end // coverage:ignore-start factory DirectEditingTemplatesResponseApplicationJson.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$directEditingTemplatesResponseApplicationJsonSerializer; } @BuiltValue(instantiable: false) abstract interface class DirectEditingOpenResponseApplicationJson_Ocs_DataInterface { String get url; } abstract class DirectEditingOpenResponseApplicationJson_Ocs_Data implements DirectEditingOpenResponseApplicationJson_Ocs_DataInterface, Built { factory DirectEditingOpenResponseApplicationJson_Ocs_Data([ final void Function(DirectEditingOpenResponseApplicationJson_Ocs_DataBuilder)? b, ]) = _$DirectEditingOpenResponseApplicationJson_Ocs_Data; // coverage:ignore-start const DirectEditingOpenResponseApplicationJson_Ocs_Data._(); // coverage:ignore-end // coverage:ignore-start factory DirectEditingOpenResponseApplicationJson_Ocs_Data.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$directEditingOpenResponseApplicationJsonOcsDataSerializer; } @BuiltValue(instantiable: false) abstract interface class DirectEditingOpenResponseApplicationJson_OcsInterface { OCSMeta get meta; DirectEditingOpenResponseApplicationJson_Ocs_Data get data; } abstract class DirectEditingOpenResponseApplicationJson_Ocs implements DirectEditingOpenResponseApplicationJson_OcsInterface, Built { factory DirectEditingOpenResponseApplicationJson_Ocs([ final void Function(DirectEditingOpenResponseApplicationJson_OcsBuilder)? b, ]) = _$DirectEditingOpenResponseApplicationJson_Ocs; // coverage:ignore-start const DirectEditingOpenResponseApplicationJson_Ocs._(); // coverage:ignore-end // coverage:ignore-start factory DirectEditingOpenResponseApplicationJson_Ocs.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$directEditingOpenResponseApplicationJsonOcsSerializer; } @BuiltValue(instantiable: false) abstract interface class DirectEditingOpenResponseApplicationJsonInterface { DirectEditingOpenResponseApplicationJson_Ocs get ocs; } abstract class DirectEditingOpenResponseApplicationJson implements DirectEditingOpenResponseApplicationJsonInterface, Built { factory DirectEditingOpenResponseApplicationJson([ final void Function(DirectEditingOpenResponseApplicationJsonBuilder)? b, ]) = _$DirectEditingOpenResponseApplicationJson; // coverage:ignore-start const DirectEditingOpenResponseApplicationJson._(); // coverage:ignore-end // coverage:ignore-start factory DirectEditingOpenResponseApplicationJson.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$directEditingOpenResponseApplicationJsonSerializer; } @BuiltValue(instantiable: false) abstract interface class DirectEditingCreateResponseApplicationJson_Ocs_DataInterface { String get url; } abstract class DirectEditingCreateResponseApplicationJson_Ocs_Data implements DirectEditingCreateResponseApplicationJson_Ocs_DataInterface, Built { factory DirectEditingCreateResponseApplicationJson_Ocs_Data([ final void Function(DirectEditingCreateResponseApplicationJson_Ocs_DataBuilder)? b, ]) = _$DirectEditingCreateResponseApplicationJson_Ocs_Data; // coverage:ignore-start const DirectEditingCreateResponseApplicationJson_Ocs_Data._(); // coverage:ignore-end // coverage:ignore-start factory DirectEditingCreateResponseApplicationJson_Ocs_Data.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$directEditingCreateResponseApplicationJsonOcsDataSerializer; } @BuiltValue(instantiable: false) abstract interface class DirectEditingCreateResponseApplicationJson_OcsInterface { OCSMeta get meta; DirectEditingCreateResponseApplicationJson_Ocs_Data get data; } abstract class DirectEditingCreateResponseApplicationJson_Ocs implements DirectEditingCreateResponseApplicationJson_OcsInterface, Built { factory DirectEditingCreateResponseApplicationJson_Ocs([ final void Function(DirectEditingCreateResponseApplicationJson_OcsBuilder)? b, ]) = _$DirectEditingCreateResponseApplicationJson_Ocs; // coverage:ignore-start const DirectEditingCreateResponseApplicationJson_Ocs._(); // coverage:ignore-end // coverage:ignore-start factory DirectEditingCreateResponseApplicationJson_Ocs.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$directEditingCreateResponseApplicationJsonOcsSerializer; } @BuiltValue(instantiable: false) abstract interface class DirectEditingCreateResponseApplicationJsonInterface { DirectEditingCreateResponseApplicationJson_Ocs get ocs; } abstract class DirectEditingCreateResponseApplicationJson implements DirectEditingCreateResponseApplicationJsonInterface, Built { factory DirectEditingCreateResponseApplicationJson([ final void Function(DirectEditingCreateResponseApplicationJsonBuilder)? b, ]) = _$DirectEditingCreateResponseApplicationJson; // coverage:ignore-start const DirectEditingCreateResponseApplicationJson._(); // coverage:ignore-end // coverage:ignore-start factory DirectEditingCreateResponseApplicationJson.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$directEditingCreateResponseApplicationJsonSerializer; } @BuiltValue(instantiable: false) abstract interface class OpenLocalEditorCreateResponseApplicationJson_Ocs_DataInterface { String? get userId; String get pathHash; int get expirationTime; String get token; } abstract class OpenLocalEditorCreateResponseApplicationJson_Ocs_Data implements OpenLocalEditorCreateResponseApplicationJson_Ocs_DataInterface, Built { factory OpenLocalEditorCreateResponseApplicationJson_Ocs_Data([ final void Function(OpenLocalEditorCreateResponseApplicationJson_Ocs_DataBuilder)? b, ]) = _$OpenLocalEditorCreateResponseApplicationJson_Ocs_Data; // coverage:ignore-start const OpenLocalEditorCreateResponseApplicationJson_Ocs_Data._(); // coverage:ignore-end // coverage:ignore-start factory OpenLocalEditorCreateResponseApplicationJson_Ocs_Data.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$openLocalEditorCreateResponseApplicationJsonOcsDataSerializer; } @BuiltValue(instantiable: false) abstract interface class OpenLocalEditorCreateResponseApplicationJson_OcsInterface { OCSMeta get meta; OpenLocalEditorCreateResponseApplicationJson_Ocs_Data get data; } abstract class OpenLocalEditorCreateResponseApplicationJson_Ocs implements OpenLocalEditorCreateResponseApplicationJson_OcsInterface, Built { factory OpenLocalEditorCreateResponseApplicationJson_Ocs([ final void Function(OpenLocalEditorCreateResponseApplicationJson_OcsBuilder)? b, ]) = _$OpenLocalEditorCreateResponseApplicationJson_Ocs; // coverage:ignore-start const OpenLocalEditorCreateResponseApplicationJson_Ocs._(); // coverage:ignore-end // coverage:ignore-start factory OpenLocalEditorCreateResponseApplicationJson_Ocs.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$openLocalEditorCreateResponseApplicationJsonOcsSerializer; } @BuiltValue(instantiable: false) abstract interface class OpenLocalEditorCreateResponseApplicationJsonInterface { OpenLocalEditorCreateResponseApplicationJson_Ocs get ocs; } abstract class OpenLocalEditorCreateResponseApplicationJson implements OpenLocalEditorCreateResponseApplicationJsonInterface, Built { factory OpenLocalEditorCreateResponseApplicationJson([ final void Function(OpenLocalEditorCreateResponseApplicationJsonBuilder)? b, ]) = _$OpenLocalEditorCreateResponseApplicationJson; // coverage:ignore-start const OpenLocalEditorCreateResponseApplicationJson._(); // coverage:ignore-end // coverage:ignore-start factory OpenLocalEditorCreateResponseApplicationJson.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$openLocalEditorCreateResponseApplicationJsonSerializer; } @BuiltValue(instantiable: false) abstract interface class OpenLocalEditorValidateResponseApplicationJson_Ocs_DataInterface { String get userId; String get pathHash; int get expirationTime; String get token; } abstract class OpenLocalEditorValidateResponseApplicationJson_Ocs_Data implements OpenLocalEditorValidateResponseApplicationJson_Ocs_DataInterface, Built { factory OpenLocalEditorValidateResponseApplicationJson_Ocs_Data([ final void Function(OpenLocalEditorValidateResponseApplicationJson_Ocs_DataBuilder)? b, ]) = _$OpenLocalEditorValidateResponseApplicationJson_Ocs_Data; // coverage:ignore-start const OpenLocalEditorValidateResponseApplicationJson_Ocs_Data._(); // coverage:ignore-end // coverage:ignore-start factory OpenLocalEditorValidateResponseApplicationJson_Ocs_Data.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$openLocalEditorValidateResponseApplicationJsonOcsDataSerializer; } @BuiltValue(instantiable: false) abstract interface class OpenLocalEditorValidateResponseApplicationJson_OcsInterface { OCSMeta get meta; OpenLocalEditorValidateResponseApplicationJson_Ocs_Data get data; } abstract class OpenLocalEditorValidateResponseApplicationJson_Ocs implements OpenLocalEditorValidateResponseApplicationJson_OcsInterface, Built { factory OpenLocalEditorValidateResponseApplicationJson_Ocs([ final void Function(OpenLocalEditorValidateResponseApplicationJson_OcsBuilder)? b, ]) = _$OpenLocalEditorValidateResponseApplicationJson_Ocs; // coverage:ignore-start const OpenLocalEditorValidateResponseApplicationJson_Ocs._(); // coverage:ignore-end // coverage:ignore-start factory OpenLocalEditorValidateResponseApplicationJson_Ocs.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$openLocalEditorValidateResponseApplicationJsonOcsSerializer; } @BuiltValue(instantiable: false) abstract interface class OpenLocalEditorValidateResponseApplicationJsonInterface { OpenLocalEditorValidateResponseApplicationJson_Ocs get ocs; } abstract class OpenLocalEditorValidateResponseApplicationJson implements OpenLocalEditorValidateResponseApplicationJsonInterface, Built { factory OpenLocalEditorValidateResponseApplicationJson([ final void Function(OpenLocalEditorValidateResponseApplicationJsonBuilder)? b, ]) = _$OpenLocalEditorValidateResponseApplicationJson; // coverage:ignore-start const OpenLocalEditorValidateResponseApplicationJson._(); // coverage:ignore-end // coverage:ignore-start factory OpenLocalEditorValidateResponseApplicationJson.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$openLocalEditorValidateResponseApplicationJsonSerializer; } @BuiltValue(instantiable: false) abstract interface class TemplateFileCreatorInterface { String get app; String get label; @BuiltValueField(wireName: 'extension') String get $extension; String? get iconClass; BuiltList get mimetypes; num? get ratio; String get actionLabel; } abstract class TemplateFileCreator implements TemplateFileCreatorInterface, Built { factory TemplateFileCreator([final void Function(TemplateFileCreatorBuilder)? b]) = _$TemplateFileCreator; // coverage:ignore-start const TemplateFileCreator._(); // coverage:ignore-end // coverage:ignore-start factory TemplateFileCreator.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$templateFileCreatorSerializer; } @BuiltValue(instantiable: false) abstract interface class TemplateListResponseApplicationJson_OcsInterface { OCSMeta get meta; BuiltList get data; } abstract class TemplateListResponseApplicationJson_Ocs implements TemplateListResponseApplicationJson_OcsInterface, Built { factory TemplateListResponseApplicationJson_Ocs([ final void Function(TemplateListResponseApplicationJson_OcsBuilder)? b, ]) = _$TemplateListResponseApplicationJson_Ocs; // coverage:ignore-start const TemplateListResponseApplicationJson_Ocs._(); // coverage:ignore-end // coverage:ignore-start factory TemplateListResponseApplicationJson_Ocs.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$templateListResponseApplicationJsonOcsSerializer; } @BuiltValue(instantiable: false) abstract interface class TemplateListResponseApplicationJsonInterface { TemplateListResponseApplicationJson_Ocs get ocs; } abstract class TemplateListResponseApplicationJson implements TemplateListResponseApplicationJsonInterface, Built { factory TemplateListResponseApplicationJson([final void Function(TemplateListResponseApplicationJsonBuilder)? b]) = _$TemplateListResponseApplicationJson; // coverage:ignore-start const TemplateListResponseApplicationJson._(); // coverage:ignore-end // coverage:ignore-start factory TemplateListResponseApplicationJson.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$templateListResponseApplicationJsonSerializer; } @BuiltValue(instantiable: false) abstract interface class TemplateFileInterface { String get basename; String get etag; int get fileid; String? get filename; int get lastmod; String get mime; int get size; String get type; bool get hasPreview; } abstract class TemplateFile implements TemplateFileInterface, Built { factory TemplateFile([final void Function(TemplateFileBuilder)? b]) = _$TemplateFile; // coverage:ignore-start const TemplateFile._(); // coverage:ignore-end // coverage:ignore-start factory TemplateFile.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$templateFileSerializer; } @BuiltValue(instantiable: false) abstract interface class TemplateCreateResponseApplicationJson_OcsInterface { OCSMeta get meta; TemplateFile get data; } abstract class TemplateCreateResponseApplicationJson_Ocs implements TemplateCreateResponseApplicationJson_OcsInterface, Built { factory TemplateCreateResponseApplicationJson_Ocs([ final void Function(TemplateCreateResponseApplicationJson_OcsBuilder)? b, ]) = _$TemplateCreateResponseApplicationJson_Ocs; // coverage:ignore-start const TemplateCreateResponseApplicationJson_Ocs._(); // coverage:ignore-end // coverage:ignore-start factory TemplateCreateResponseApplicationJson_Ocs.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$templateCreateResponseApplicationJsonOcsSerializer; } @BuiltValue(instantiable: false) abstract interface class TemplateCreateResponseApplicationJsonInterface { TemplateCreateResponseApplicationJson_Ocs get ocs; } abstract class TemplateCreateResponseApplicationJson implements TemplateCreateResponseApplicationJsonInterface, Built { factory TemplateCreateResponseApplicationJson([ final void Function(TemplateCreateResponseApplicationJsonBuilder)? b, ]) = _$TemplateCreateResponseApplicationJson; // coverage:ignore-start const TemplateCreateResponseApplicationJson._(); // coverage:ignore-end // coverage:ignore-start factory TemplateCreateResponseApplicationJson.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$templateCreateResponseApplicationJsonSerializer; } @BuiltValue(instantiable: false) abstract interface class TemplatePathResponseApplicationJson_Ocs_DataInterface { @BuiltValueField(wireName: 'template_path') String get templatePath; BuiltList get templates; } abstract class TemplatePathResponseApplicationJson_Ocs_Data implements TemplatePathResponseApplicationJson_Ocs_DataInterface, Built { factory TemplatePathResponseApplicationJson_Ocs_Data([ final void Function(TemplatePathResponseApplicationJson_Ocs_DataBuilder)? b, ]) = _$TemplatePathResponseApplicationJson_Ocs_Data; // coverage:ignore-start const TemplatePathResponseApplicationJson_Ocs_Data._(); // coverage:ignore-end // coverage:ignore-start factory TemplatePathResponseApplicationJson_Ocs_Data.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$templatePathResponseApplicationJsonOcsDataSerializer; } @BuiltValue(instantiable: false) abstract interface class TemplatePathResponseApplicationJson_OcsInterface { OCSMeta get meta; TemplatePathResponseApplicationJson_Ocs_Data get data; } abstract class TemplatePathResponseApplicationJson_Ocs implements TemplatePathResponseApplicationJson_OcsInterface, Built { factory TemplatePathResponseApplicationJson_Ocs([ final void Function(TemplatePathResponseApplicationJson_OcsBuilder)? b, ]) = _$TemplatePathResponseApplicationJson_Ocs; // coverage:ignore-start const TemplatePathResponseApplicationJson_Ocs._(); // coverage:ignore-end // coverage:ignore-start factory TemplatePathResponseApplicationJson_Ocs.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$templatePathResponseApplicationJsonOcsSerializer; } @BuiltValue(instantiable: false) abstract interface class TemplatePathResponseApplicationJsonInterface { TemplatePathResponseApplicationJson_Ocs get ocs; } abstract class TemplatePathResponseApplicationJson implements TemplatePathResponseApplicationJsonInterface, Built { factory TemplatePathResponseApplicationJson([final void Function(TemplatePathResponseApplicationJsonBuilder)? b]) = _$TemplatePathResponseApplicationJson; // coverage:ignore-start const TemplatePathResponseApplicationJson._(); // coverage:ignore-end // coverage:ignore-start factory TemplatePathResponseApplicationJson.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$templatePathResponseApplicationJsonSerializer; } @BuiltValue(instantiable: false) abstract interface class TransferOwnershipTransferResponseApplicationJson_OcsInterface { OCSMeta get meta; JsonObject get data; } abstract class TransferOwnershipTransferResponseApplicationJson_Ocs implements TransferOwnershipTransferResponseApplicationJson_OcsInterface, Built { factory TransferOwnershipTransferResponseApplicationJson_Ocs([ final void Function(TransferOwnershipTransferResponseApplicationJson_OcsBuilder)? b, ]) = _$TransferOwnershipTransferResponseApplicationJson_Ocs; // coverage:ignore-start const TransferOwnershipTransferResponseApplicationJson_Ocs._(); // coverage:ignore-end // coverage:ignore-start factory TransferOwnershipTransferResponseApplicationJson_Ocs.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$transferOwnershipTransferResponseApplicationJsonOcsSerializer; } @BuiltValue(instantiable: false) abstract interface class TransferOwnershipTransferResponseApplicationJsonInterface { TransferOwnershipTransferResponseApplicationJson_Ocs get ocs; } abstract class TransferOwnershipTransferResponseApplicationJson implements TransferOwnershipTransferResponseApplicationJsonInterface, Built { factory TransferOwnershipTransferResponseApplicationJson([ final void Function(TransferOwnershipTransferResponseApplicationJsonBuilder)? b, ]) = _$TransferOwnershipTransferResponseApplicationJson; // coverage:ignore-start const TransferOwnershipTransferResponseApplicationJson._(); // coverage:ignore-end // coverage:ignore-start factory TransferOwnershipTransferResponseApplicationJson.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$transferOwnershipTransferResponseApplicationJsonSerializer; } @BuiltValue(instantiable: false) abstract interface class TransferOwnershipAcceptResponseApplicationJson_OcsInterface { OCSMeta get meta; JsonObject get data; } abstract class TransferOwnershipAcceptResponseApplicationJson_Ocs implements TransferOwnershipAcceptResponseApplicationJson_OcsInterface, Built { factory TransferOwnershipAcceptResponseApplicationJson_Ocs([ final void Function(TransferOwnershipAcceptResponseApplicationJson_OcsBuilder)? b, ]) = _$TransferOwnershipAcceptResponseApplicationJson_Ocs; // coverage:ignore-start const TransferOwnershipAcceptResponseApplicationJson_Ocs._(); // coverage:ignore-end // coverage:ignore-start factory TransferOwnershipAcceptResponseApplicationJson_Ocs.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$transferOwnershipAcceptResponseApplicationJsonOcsSerializer; } @BuiltValue(instantiable: false) abstract interface class TransferOwnershipAcceptResponseApplicationJsonInterface { TransferOwnershipAcceptResponseApplicationJson_Ocs get ocs; } abstract class TransferOwnershipAcceptResponseApplicationJson implements TransferOwnershipAcceptResponseApplicationJsonInterface, Built { factory TransferOwnershipAcceptResponseApplicationJson([ final void Function(TransferOwnershipAcceptResponseApplicationJsonBuilder)? b, ]) = _$TransferOwnershipAcceptResponseApplicationJson; // coverage:ignore-start const TransferOwnershipAcceptResponseApplicationJson._(); // coverage:ignore-end // coverage:ignore-start factory TransferOwnershipAcceptResponseApplicationJson.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$transferOwnershipAcceptResponseApplicationJsonSerializer; } @BuiltValue(instantiable: false) abstract interface class TransferOwnershipRejectResponseApplicationJson_OcsInterface { OCSMeta get meta; JsonObject get data; } abstract class TransferOwnershipRejectResponseApplicationJson_Ocs implements TransferOwnershipRejectResponseApplicationJson_OcsInterface, Built { factory TransferOwnershipRejectResponseApplicationJson_Ocs([ final void Function(TransferOwnershipRejectResponseApplicationJson_OcsBuilder)? b, ]) = _$TransferOwnershipRejectResponseApplicationJson_Ocs; // coverage:ignore-start const TransferOwnershipRejectResponseApplicationJson_Ocs._(); // coverage:ignore-end // coverage:ignore-start factory TransferOwnershipRejectResponseApplicationJson_Ocs.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$transferOwnershipRejectResponseApplicationJsonOcsSerializer; } @BuiltValue(instantiable: false) abstract interface class TransferOwnershipRejectResponseApplicationJsonInterface { TransferOwnershipRejectResponseApplicationJson_Ocs get ocs; } abstract class TransferOwnershipRejectResponseApplicationJson implements TransferOwnershipRejectResponseApplicationJsonInterface, Built { factory TransferOwnershipRejectResponseApplicationJson([ final void Function(TransferOwnershipRejectResponseApplicationJsonBuilder)? b, ]) = _$TransferOwnershipRejectResponseApplicationJson; // coverage:ignore-start const TransferOwnershipRejectResponseApplicationJson._(); // coverage:ignore-end // coverage:ignore-start factory TransferOwnershipRejectResponseApplicationJson.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$transferOwnershipRejectResponseApplicationJsonSerializer; } @BuiltValue(instantiable: false) abstract interface class Capabilities_Files_DirectEditingInterface { String get url; String get etag; bool get supportsFileId; } abstract class Capabilities_Files_DirectEditing implements Capabilities_Files_DirectEditingInterface, Built { factory Capabilities_Files_DirectEditing([final void Function(Capabilities_Files_DirectEditingBuilder)? b]) = _$Capabilities_Files_DirectEditing; // coverage:ignore-start const Capabilities_Files_DirectEditing._(); // coverage:ignore-end // coverage:ignore-start factory Capabilities_Files_DirectEditing.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$capabilitiesFilesDirectEditingSerializer; } @BuiltValue(instantiable: false) abstract interface class Capabilities_FilesInterface { bool get bigfilechunking; @BuiltValueField(wireName: 'blacklisted_files') BuiltList get blacklistedFiles; Capabilities_Files_DirectEditing get directEditing; } abstract class Capabilities_Files implements Capabilities_FilesInterface, Built { factory Capabilities_Files([final void Function(Capabilities_FilesBuilder)? b]) = _$Capabilities_Files; // coverage:ignore-start const Capabilities_Files._(); // coverage:ignore-end // coverage:ignore-start factory Capabilities_Files.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$capabilitiesFilesSerializer; } @BuiltValue(instantiable: false) abstract interface class CapabilitiesInterface { Capabilities_Files get files; } abstract class Capabilities implements CapabilitiesInterface, Built { factory Capabilities([final void Function(CapabilitiesBuilder)? b]) = _$Capabilities; // coverage:ignore-start const Capabilities._(); // coverage:ignore-end // coverage:ignore-start factory Capabilities.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer get serializer => _$capabilitiesSerializer; } @BuiltValue(instantiable: false) abstract interface class TemplateInterface { String get templateType; String get templateId; String get basename; String get etag; int get fileid; String get filename; int get lastmod; String get mime; int get size; String get type; bool get hasPreview; String? get previewUrl; } abstract class Template implements TemplateInterface, Built { factory Template([final void Function(TemplateBuilder)? b]) = _$Template; // coverage:ignore-start const Template._(); // coverage:ignore-end // coverage:ignore-start factory Template.fromJson(final Map json) => _jsonSerializers.deserializeWith(serializer, json)!; // coverage:ignore-end // coverage:ignore-start Map toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map; // coverage:ignore-end static Serializer