Browse Source

chore(nextcloud): Update server specs

Signed-off-by: jld3103 <jld3103yt@gmail.com>
pull/1121/head
jld3103 1 year ago
parent
commit
db4a0450e4
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 2
      external/nextcloud-server
  2. 6455
      packages/nextcloud/lib/src/api/core.openapi.dart
  3. 22056
      packages/nextcloud/lib/src/api/core.openapi.g.dart
  4. 884
      packages/nextcloud/lib/src/api/core.openapi.json
  5. 235
      packages/nextcloud/lib/src/api/sharebymail.openapi.dart
  6. 662
      packages/nextcloud/lib/src/api/sharebymail.openapi.g.dart
  7. 8
      packages/nextcloud/lib/src/api/sharebymail.openapi.json
  8. 14
      packages/nextcloud/lib/src/api/user_status.openapi.dart
  9. 28
      packages/nextcloud/lib/src/api/user_status.openapi.g.dart
  10. 5
      packages/nextcloud/lib/src/api/user_status.openapi.json

2
external/nextcloud-server vendored

@ -1 +1 @@
Subproject commit 06b35808a89bd844f8101527a1654f2d06cc6ae3
Subproject commit 4154ba343b9b188e40f327fb78d9eb5083e163a1

6455
packages/nextcloud/lib/src/api/core.openapi.dart

File diff suppressed because it is too large Load Diff

22056
packages/nextcloud/lib/src/api/core.openapi.g.dart

File diff suppressed because it is too large Load Diff

884
packages/nextcloud/lib/src/api/core.openapi.json

@ -451,6 +451,53 @@
}
}
},
"TextToImageTask": {
"type": "object",
"required": [
"id",
"status",
"userId",
"appId",
"input",
"identifier",
"numberOfImages",
"completionExpectedAt"
],
"properties": {
"id": {
"type": "integer",
"format": "int64",
"nullable": true
},
"status": {
"type": "integer",
"format": "int64"
},
"userId": {
"type": "string",
"nullable": true
},
"appId": {
"type": "string"
},
"input": {
"type": "string"
},
"identifier": {
"type": "string",
"nullable": true
},
"numberOfImages": {
"type": "integer",
"format": "int64"
},
"completionExpectedAt": {
"type": "integer",
"format": "int64",
"nullable": true
}
}
},
"UnifiedSearchProvider": {
"type": "object",
"required": [
@ -992,6 +1039,8 @@
}
},
"SharebymailCapabilities": {
"oneOf": [
{
"type": "object",
"required": [
"files_sharing"
@ -1066,6 +1115,12 @@
}
}
},
{
"type": "array",
"maxLength": 0
}
]
},
"SpreedPublicCapabilities": {
"anyOf": [
{
@ -6009,6 +6064,835 @@
}
}
},
"/ocs/v2.php/text2image/is_available": {
"get": {
"operationId": "text_to_image_api-is-available",
"summary": "Check whether this feature is available",
"tags": [
"text_to_image_api"
],
"security": [
{},
{
"bearer_auth": []
},
{
"basic_auth": []
}
],
"parameters": [
{
"name": "OCS-APIRequest",
"in": "header",
"description": "Required to be true for the API request to pass",
"required": true,
"schema": {
"type": "boolean",
"default": true
}
}
],
"responses": {
"200": {
"description": "Returns availability status",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {
"type": "object",
"required": [
"isAvailable"
],
"properties": {
"isAvailable": {
"type": "boolean"
}
}
}
}
}
}
}
}
}
}
}
}
},
"/ocs/v2.php/text2image/schedule": {
"post": {
"operationId": "text_to_image_api-schedule",
"summary": "This endpoint allows scheduling a text to image task",
"tags": [
"text_to_image_api"
],
"security": [
{},
{
"bearer_auth": []
},
{
"basic_auth": []
}
],
"parameters": [
{
"name": "input",
"in": "query",
"description": "Input text",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "appId",
"in": "query",
"description": "ID of the app that will execute the task",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "identifier",
"in": "query",
"description": "An arbitrary identifier for the task",
"schema": {
"type": "string",
"default": ""
}
},
{
"name": "numberOfImages",
"in": "query",
"description": "The number of images to generate",
"schema": {
"type": "integer",
"format": "int64",
"default": 8
}
},
{
"name": "OCS-APIRequest",
"in": "header",
"description": "Required to be true for the API request to pass",
"required": true,
"schema": {
"type": "boolean",
"default": true
}
}
],
"responses": {
"200": {
"description": "Task scheduled successfully",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {
"type": "object",
"required": [
"task"
],
"properties": {
"task": {
"$ref": "#/components/schemas/TextToImageTask"
}
}
}
}
}
}
}
}
}
},
"412": {
"description": "Scheduling task is not possible",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {
"type": "object",
"required": [
"message"
],
"properties": {
"message": {
"type": "string"
}
}
}
}
}
}
}
}
}
},
"500": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {
"type": "object",
"required": [
"message"
],
"properties": {
"message": {
"type": "string"
}
}
}
}
}
}
}
}
}
}
}
}
},
"/ocs/v2.php/text2image/task/{id}": {
"get": {
"operationId": "text_to_image_api-get-task",
"summary": "This endpoint allows checking the status and results of a task. Tasks are removed 1 week after receiving their last update.",
"tags": [
"text_to_image_api"
],
"security": [
{},
{
"bearer_auth": []
},
{
"basic_auth": []
}
],
"parameters": [
{
"name": "id",
"in": "path",
"description": "The id of the task",
"required": true,
"schema": {
"type": "integer",
"format": "int64"
}
},
{
"name": "OCS-APIRequest",
"in": "header",
"description": "Required to be true for the API request to pass",
"required": true,
"schema": {
"type": "boolean",
"default": true
}
}
],
"responses": {
"200": {
"description": "Task returned",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {
"type": "object",
"required": [
"task"
],
"properties": {
"task": {
"$ref": "#/components/schemas/TextToImageTask"
}
}
}
}
}
}
}
}
}
},
"404": {
"description": "Task not found",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {
"type": "object",
"required": [
"message"
],
"properties": {
"message": {
"type": "string"
}
}
}
}
}
}
}
}
}
},
"500": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {
"type": "object",
"required": [
"message"
],
"properties": {
"message": {
"type": "string"
}
}
}
}
}
}
}
}
}
}
}
},
"delete": {
"operationId": "text_to_image_api-delete-task",
"summary": "This endpoint allows to delete a scheduled task for a user",
"tags": [
"text_to_image_api"
],
"security": [
{
"bearer_auth": []
},
{
"basic_auth": []
}
],
"parameters": [
{
"name": "id",
"in": "path",
"description": "The id of the task",
"required": true,
"schema": {
"type": "integer",
"format": "int64"
}
},
{
"name": "OCS-APIRequest",
"in": "header",
"description": "Required to be true for the API request to pass",
"required": true,
"schema": {
"type": "boolean",
"default": true
}
}
],
"responses": {
"200": {
"description": "Task returned",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {
"type": "object",
"required": [
"task"
],
"properties": {
"task": {
"$ref": "#/components/schemas/TextToImageTask"
}
}
}
}
}
}
}
}
}
},
"404": {
"description": "Task not found",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {
"type": "object",
"required": [
"message"
],
"properties": {
"message": {
"type": "string"
}
}
}
}
}
}
}
}
}
},
"500": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {
"type": "object",
"required": [
"message"
],
"properties": {
"message": {
"type": "string"
}
}
}
}
}
}
}
}
}
}
}
}
},
"/ocs/v2.php/text2image/task/{id}/image/{index}": {
"get": {
"operationId": "text_to_image_api-get-image",
"summary": "This endpoint allows downloading the resulting image of a task",
"tags": [
"text_to_image_api"
],
"security": [
{},
{
"bearer_auth": []
},
{
"basic_auth": []
}
],
"parameters": [
{
"name": "id",
"in": "path",
"description": "The id of the task",
"required": true,
"schema": {
"type": "integer",
"format": "int64"
}
},
{
"name": "index",
"in": "path",
"description": "The index of the image to retrieve",
"required": true,
"schema": {
"type": "integer",
"format": "int64"
}
},
{
"name": "OCS-APIRequest",
"in": "header",
"description": "Required to be true for the API request to pass",
"required": true,
"schema": {
"type": "boolean",
"default": true
}
}
],
"responses": {
"200": {
"description": "Image returned",
"content": {
"*/*": {
"schema": {
"type": "string",
"format": "binary"
}
}
}
},
"404": {
"description": "Task or image not found",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {
"type": "object",
"required": [
"message"
],
"properties": {
"message": {
"type": "string"
}
}
}
}
}
}
}
}
}
},
"500": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {
"type": "object",
"required": [
"message"
],
"properties": {
"message": {
"type": "string"
}
}
}
}
}
}
}
}
}
}
}
}
},
"/ocs/v2.php/text2image/tasks/app/{appId}": {
"get": {
"operationId": "text_to_image_api-list-tasks-by-app",
"summary": "This endpoint returns a list of tasks of a user that are related with a specific appId and optionally with an identifier",
"tags": [
"text_to_image_api"
],
"security": [
{
"bearer_auth": []
},
{
"basic_auth": []
}
],
"parameters": [
{
"name": "identifier",
"in": "query",
"description": "An arbitrary identifier for the task",
"schema": {
"type": "string",
"nullable": true
}
},
{
"name": "appId",
"in": "path",
"description": "ID of the app",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "OCS-APIRequest",
"in": "header",
"description": "Required to be true for the API request to pass",
"required": true,
"schema": {
"type": "boolean",
"default": true
}
}
],
"responses": {
"200": {
"description": "Task list returned",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {
"type": "object",
"required": [
"tasks"
],
"properties": {
"tasks": {
"type": "array",
"items": {
"$ref": "#/components/schemas/TextToImageTask"
}
}
}
}
}
}
}
}
}
}
},
"500": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {
"type": "object",
"required": [
"message"
],
"properties": {
"message": {
"type": "string"
}
}
}
}
}
}
}
}
}
}
}
}
},
"/status.php": {
"get": {
"operationId": "get-status",

235
packages/nextcloud/lib/src/api/sharebymail.openapi.dart

@ -3,9 +3,12 @@
// ignore_for_file: public_member_api_docs
// ignore_for_file: unreachable_switch_case
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/built_value.dart';
import 'package:dynamite_runtime/http_client.dart';
@ -32,25 +35,25 @@ class Client extends DynamiteClient {
}
@BuiltValue(instantiable: false)
abstract interface class Capabilities_FilesSharing_Sharebymail_UploadFilesDropInterface {
abstract interface class Capabilities0_FilesSharing_Sharebymail_UploadFilesDropInterface {
bool get enabled;
}
abstract class Capabilities_FilesSharing_Sharebymail_UploadFilesDrop
abstract class Capabilities0_FilesSharing_Sharebymail_UploadFilesDrop
implements
Capabilities_FilesSharing_Sharebymail_UploadFilesDropInterface,
Built<Capabilities_FilesSharing_Sharebymail_UploadFilesDrop,
Capabilities_FilesSharing_Sharebymail_UploadFilesDropBuilder> {
factory Capabilities_FilesSharing_Sharebymail_UploadFilesDrop([
final void Function(Capabilities_FilesSharing_Sharebymail_UploadFilesDropBuilder)? b,
]) = _$Capabilities_FilesSharing_Sharebymail_UploadFilesDrop;
Capabilities0_FilesSharing_Sharebymail_UploadFilesDropInterface,
Built<Capabilities0_FilesSharing_Sharebymail_UploadFilesDrop,
Capabilities0_FilesSharing_Sharebymail_UploadFilesDropBuilder> {
factory Capabilities0_FilesSharing_Sharebymail_UploadFilesDrop([
final void Function(Capabilities0_FilesSharing_Sharebymail_UploadFilesDropBuilder)? b,
]) = _$Capabilities0_FilesSharing_Sharebymail_UploadFilesDrop;
// coverage:ignore-start
const Capabilities_FilesSharing_Sharebymail_UploadFilesDrop._();
const Capabilities0_FilesSharing_Sharebymail_UploadFilesDrop._();
// coverage:ignore-end
// coverage:ignore-start
factory Capabilities_FilesSharing_Sharebymail_UploadFilesDrop.fromJson(final Map<String, dynamic> json) =>
factory Capabilities0_FilesSharing_Sharebymail_UploadFilesDrop.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
@ -58,30 +61,30 @@ abstract class Capabilities_FilesSharing_Sharebymail_UploadFilesDrop
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
static Serializer<Capabilities_FilesSharing_Sharebymail_UploadFilesDrop> get serializer =>
_$capabilitiesFilesSharingSharebymailUploadFilesDropSerializer;
static Serializer<Capabilities0_FilesSharing_Sharebymail_UploadFilesDrop> get serializer =>
_$capabilities0FilesSharingSharebymailUploadFilesDropSerializer;
}
@BuiltValue(instantiable: false)
abstract interface class Capabilities_FilesSharing_Sharebymail_PasswordInterface {
abstract interface class Capabilities0_FilesSharing_Sharebymail_PasswordInterface {
bool get enabled;
bool get enforced;
}
abstract class Capabilities_FilesSharing_Sharebymail_Password
abstract class Capabilities0_FilesSharing_Sharebymail_Password
implements
Capabilities_FilesSharing_Sharebymail_PasswordInterface,
Built<Capabilities_FilesSharing_Sharebymail_Password, Capabilities_FilesSharing_Sharebymail_PasswordBuilder> {
factory Capabilities_FilesSharing_Sharebymail_Password([
final void Function(Capabilities_FilesSharing_Sharebymail_PasswordBuilder)? b,
]) = _$Capabilities_FilesSharing_Sharebymail_Password;
Capabilities0_FilesSharing_Sharebymail_PasswordInterface,
Built<Capabilities0_FilesSharing_Sharebymail_Password, Capabilities0_FilesSharing_Sharebymail_PasswordBuilder> {
factory Capabilities0_FilesSharing_Sharebymail_Password([
final void Function(Capabilities0_FilesSharing_Sharebymail_PasswordBuilder)? b,
]) = _$Capabilities0_FilesSharing_Sharebymail_Password;
// coverage:ignore-start
const Capabilities_FilesSharing_Sharebymail_Password._();
const Capabilities0_FilesSharing_Sharebymail_Password._();
// coverage:ignore-end
// coverage:ignore-start
factory Capabilities_FilesSharing_Sharebymail_Password.fromJson(final Map<String, dynamic> json) =>
factory Capabilities0_FilesSharing_Sharebymail_Password.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
@ -89,31 +92,31 @@ abstract class Capabilities_FilesSharing_Sharebymail_Password
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
static Serializer<Capabilities_FilesSharing_Sharebymail_Password> get serializer =>
_$capabilitiesFilesSharingSharebymailPasswordSerializer;
static Serializer<Capabilities0_FilesSharing_Sharebymail_Password> get serializer =>
_$capabilities0FilesSharingSharebymailPasswordSerializer;
}
@BuiltValue(instantiable: false)
abstract interface class Capabilities_FilesSharing_Sharebymail_ExpireDateInterface {
abstract interface class Capabilities0_FilesSharing_Sharebymail_ExpireDateInterface {
bool get enabled;
bool get enforced;
}
abstract class Capabilities_FilesSharing_Sharebymail_ExpireDate
abstract class Capabilities0_FilesSharing_Sharebymail_ExpireDate
implements
Capabilities_FilesSharing_Sharebymail_ExpireDateInterface,
Built<Capabilities_FilesSharing_Sharebymail_ExpireDate,
Capabilities_FilesSharing_Sharebymail_ExpireDateBuilder> {
factory Capabilities_FilesSharing_Sharebymail_ExpireDate([
final void Function(Capabilities_FilesSharing_Sharebymail_ExpireDateBuilder)? b,
]) = _$Capabilities_FilesSharing_Sharebymail_ExpireDate;
Capabilities0_FilesSharing_Sharebymail_ExpireDateInterface,
Built<Capabilities0_FilesSharing_Sharebymail_ExpireDate,
Capabilities0_FilesSharing_Sharebymail_ExpireDateBuilder> {
factory Capabilities0_FilesSharing_Sharebymail_ExpireDate([
final void Function(Capabilities0_FilesSharing_Sharebymail_ExpireDateBuilder)? b,
]) = _$Capabilities0_FilesSharing_Sharebymail_ExpireDate;
// coverage:ignore-start
const Capabilities_FilesSharing_Sharebymail_ExpireDate._();
const Capabilities0_FilesSharing_Sharebymail_ExpireDate._();
// coverage:ignore-end
// coverage:ignore-start
factory Capabilities_FilesSharing_Sharebymail_ExpireDate.fromJson(final Map<String, dynamic> json) =>
factory Capabilities0_FilesSharing_Sharebymail_ExpireDate.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
@ -121,36 +124,36 @@ abstract class Capabilities_FilesSharing_Sharebymail_ExpireDate
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
static Serializer<Capabilities_FilesSharing_Sharebymail_ExpireDate> get serializer =>
_$capabilitiesFilesSharingSharebymailExpireDateSerializer;
static Serializer<Capabilities0_FilesSharing_Sharebymail_ExpireDate> get serializer =>
_$capabilities0FilesSharingSharebymailExpireDateSerializer;
}
@BuiltValue(instantiable: false)
abstract interface class Capabilities_FilesSharing_SharebymailInterface {
abstract interface class Capabilities0_FilesSharing_SharebymailInterface {
bool get enabled;
@BuiltValueField(wireName: 'send_password_by_mail')
bool get sendPasswordByMail;
@BuiltValueField(wireName: 'upload_files_drop')
Capabilities_FilesSharing_Sharebymail_UploadFilesDrop get uploadFilesDrop;
Capabilities_FilesSharing_Sharebymail_Password get password;
Capabilities0_FilesSharing_Sharebymail_UploadFilesDrop get uploadFilesDrop;
Capabilities0_FilesSharing_Sharebymail_Password get password;
@BuiltValueField(wireName: 'expire_date')
Capabilities_FilesSharing_Sharebymail_ExpireDate get expireDate;
Capabilities0_FilesSharing_Sharebymail_ExpireDate get expireDate;
}
abstract class Capabilities_FilesSharing_Sharebymail
abstract class Capabilities0_FilesSharing_Sharebymail
implements
Capabilities_FilesSharing_SharebymailInterface,
Built<Capabilities_FilesSharing_Sharebymail, Capabilities_FilesSharing_SharebymailBuilder> {
factory Capabilities_FilesSharing_Sharebymail([
final void Function(Capabilities_FilesSharing_SharebymailBuilder)? b,
]) = _$Capabilities_FilesSharing_Sharebymail;
Capabilities0_FilesSharing_SharebymailInterface,
Built<Capabilities0_FilesSharing_Sharebymail, Capabilities0_FilesSharing_SharebymailBuilder> {
factory Capabilities0_FilesSharing_Sharebymail([
final void Function(Capabilities0_FilesSharing_SharebymailBuilder)? b,
]) = _$Capabilities0_FilesSharing_Sharebymail;
// coverage:ignore-start
const Capabilities_FilesSharing_Sharebymail._();
const Capabilities0_FilesSharing_Sharebymail._();
// coverage:ignore-end
// coverage:ignore-start
factory Capabilities_FilesSharing_Sharebymail.fromJson(final Map<String, dynamic> json) =>
factory Capabilities0_FilesSharing_Sharebymail.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
@ -158,26 +161,28 @@ abstract class Capabilities_FilesSharing_Sharebymail
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
static Serializer<Capabilities_FilesSharing_Sharebymail> get serializer =>
_$capabilitiesFilesSharingSharebymailSerializer;
static Serializer<Capabilities0_FilesSharing_Sharebymail> get serializer =>
_$capabilities0FilesSharingSharebymailSerializer;
}
@BuiltValue(instantiable: false)
abstract interface class Capabilities_FilesSharingInterface {
Capabilities_FilesSharing_Sharebymail get sharebymail;
abstract interface class Capabilities0_FilesSharingInterface {
Capabilities0_FilesSharing_Sharebymail get sharebymail;
}
abstract class Capabilities_FilesSharing
implements Capabilities_FilesSharingInterface, Built<Capabilities_FilesSharing, Capabilities_FilesSharingBuilder> {
factory Capabilities_FilesSharing([final void Function(Capabilities_FilesSharingBuilder)? b]) =
_$Capabilities_FilesSharing;
abstract class Capabilities0_FilesSharing
implements
Capabilities0_FilesSharingInterface,
Built<Capabilities0_FilesSharing, Capabilities0_FilesSharingBuilder> {
factory Capabilities0_FilesSharing([final void Function(Capabilities0_FilesSharingBuilder)? b]) =
_$Capabilities0_FilesSharing;
// coverage:ignore-start
const Capabilities_FilesSharing._();
const Capabilities0_FilesSharing._();
// coverage:ignore-end
// coverage:ignore-start
factory Capabilities_FilesSharing.fromJson(final Map<String, dynamic> json) =>
factory Capabilities0_FilesSharing.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
@ -185,13 +190,38 @@ abstract class Capabilities_FilesSharing
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
static Serializer<Capabilities_FilesSharing> get serializer => _$capabilitiesFilesSharingSerializer;
static Serializer<Capabilities0_FilesSharing> get serializer => _$capabilities0FilesSharingSerializer;
}
@BuiltValue(instantiable: false)
abstract interface class CapabilitiesInterface {
abstract interface class Capabilities0Interface {
@BuiltValueField(wireName: 'files_sharing')
Capabilities_FilesSharing get filesSharing;
Capabilities0_FilesSharing get filesSharing;
}
abstract class Capabilities0 implements Capabilities0Interface, Built<Capabilities0, Capabilities0Builder> {
factory Capabilities0([final void Function(Capabilities0Builder)? b]) = _$Capabilities0;
// coverage:ignore-start
const Capabilities0._();
// coverage:ignore-end
// coverage:ignore-start
factory Capabilities0.fromJson(final Map<String, dynamic> json) =>
_jsonSerializers.deserializeWith(serializer, json)!;
// coverage:ignore-end
// coverage:ignore-start
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
static Serializer<Capabilities0> get serializer => _$capabilities0Serializer;
}
@BuiltValue(instantiable: false)
abstract interface class CapabilitiesInterface {
Capabilities0? get capabilities0;
BuiltList<JsonObject>? get builtListJsonObject;
}
abstract class Capabilities implements CapabilitiesInterface, Built<Capabilities, CapabilitiesBuilder> {
@ -209,35 +239,90 @@ abstract class Capabilities implements CapabilitiesInterface, Built<Capabilities
Map<String, dynamic> toJson() => _jsonSerializers.serializeWith(serializer, this)! as Map<String, dynamic>;
// coverage:ignore-end
static Serializer<Capabilities> get serializer => _$capabilitiesSerializer;
@BuiltValueSerializer(custom: true)
static Serializer<Capabilities> get serializer => _$CapabilitiesSerializer();
JsonObject get data;
@BuiltValueHook(finalizeBuilder: true)
static void _validate(final CapabilitiesBuilder b) {
// When this is rebuild from another builder
if (b._data == null) {
return;
}
final match = [b._capabilities0, b._builtListJsonObject].singleWhereOrNull((final x) => x != null);
if (match == null) {
throw StateError("Need exactly one of 'capabilities0', 'builtListJsonObject' for ${b._data}");
}
}
}
class _$CapabilitiesSerializer implements PrimitiveSerializer<Capabilities> {
@override
final Iterable<Type> types = const [Capabilities, _$Capabilities];
@override
final String wireName = 'Capabilities';
@override
Object serialize(
final Serializers serializers,
final Capabilities object, {
final FullType specifiedType = FullType.unspecified,
}) =>
object.data.value;
@override
Capabilities deserialize(
final Serializers serializers,
final Object data, {
final FullType specifiedType = FullType.unspecified,
}) {
final result = CapabilitiesBuilder()..data = JsonObject(data);
try {
final value = _jsonSerializers.deserialize(data, specifiedType: const FullType(Capabilities0))! as Capabilities0;
result.capabilities0.replace(value);
} catch (_) {}
try {
final value = _jsonSerializers.deserialize(
data,
specifiedType: const FullType(BuiltList, [FullType(JsonObject)]),
)! as BuiltList<JsonObject>;
result.builtListJsonObject.replace(value);
} catch (_) {}
return result.build();
}
}
// coverage:ignore-start
final Serializers _serializers = (Serializers().toBuilder()
..addBuilderFactory(const FullType(Capabilities), Capabilities.new)
..add(Capabilities.serializer)
..addBuilderFactory(const FullType(Capabilities_FilesSharing), Capabilities_FilesSharing.new)
..add(Capabilities_FilesSharing.serializer)
..addBuilderFactory(const FullType(Capabilities0), Capabilities0.new)
..add(Capabilities0.serializer)
..addBuilderFactory(const FullType(Capabilities0_FilesSharing), Capabilities0_FilesSharing.new)
..add(Capabilities0_FilesSharing.serializer)
..addBuilderFactory(
const FullType(Capabilities_FilesSharing_Sharebymail),
Capabilities_FilesSharing_Sharebymail.new,
const FullType(Capabilities0_FilesSharing_Sharebymail),
Capabilities0_FilesSharing_Sharebymail.new,
)
..add(Capabilities_FilesSharing_Sharebymail.serializer)
..add(Capabilities0_FilesSharing_Sharebymail.serializer)
..addBuilderFactory(
const FullType(Capabilities_FilesSharing_Sharebymail_UploadFilesDrop),
Capabilities_FilesSharing_Sharebymail_UploadFilesDrop.new,
const FullType(Capabilities0_FilesSharing_Sharebymail_UploadFilesDrop),
Capabilities0_FilesSharing_Sharebymail_UploadFilesDrop.new,
)
..add(Capabilities_FilesSharing_Sharebymail_UploadFilesDrop.serializer)
..add(Capabilities0_FilesSharing_Sharebymail_UploadFilesDrop.serializer)
..addBuilderFactory(
const FullType(Capabilities_FilesSharing_Sharebymail_Password),
Capabilities_FilesSharing_Sharebymail_Password.new,
const FullType(Capabilities0_FilesSharing_Sharebymail_Password),
Capabilities0_FilesSharing_Sharebymail_Password.new,
)
..add(Capabilities_FilesSharing_Sharebymail_Password.serializer)
..add(Capabilities0_FilesSharing_Sharebymail_Password.serializer)
..addBuilderFactory(
const FullType(Capabilities_FilesSharing_Sharebymail_ExpireDate),
Capabilities_FilesSharing_Sharebymail_ExpireDate.new,
const FullType(Capabilities0_FilesSharing_Sharebymail_ExpireDate),
Capabilities0_FilesSharing_Sharebymail_ExpireDate.new,
)
..add(Capabilities_FilesSharing_Sharebymail_ExpireDate.serializer))
..add(Capabilities0_FilesSharing_Sharebymail_ExpireDate.serializer)
..addBuilderFactory(const FullType(BuiltList, [FullType(JsonObject)]), ListBuilder<JsonObject>.new))
.build();
final Serializers _jsonSerializers = (_serializers.toBuilder()

662
packages/nextcloud/lib/src/api/sharebymail.openapi.g.dart

File diff suppressed because it is too large Load Diff

8
packages/nextcloud/lib/src/api/sharebymail.openapi.json

@ -22,6 +22,8 @@
},
"schemas": {
"Capabilities": {
"oneOf": [
{
"type": "object",
"required": [
"files_sharing"
@ -95,6 +97,12 @@
}
}
}
},
{
"type": "array",
"maxLength": 0
}
]
}
}
},

14
packages/nextcloud/lib/src/api/user_status.openapi.dart

@ -1790,7 +1790,7 @@ abstract class UserStatusClearMessageResponseApplicationJson
@BuiltValue(instantiable: false)
abstract interface class UserStatusRevertStatusResponseApplicationJson_Ocs_DataInterface {
Private? get private;
JsonObject? get jsonObject;
BuiltList<JsonObject>? get builtListJsonObject;
}
abstract class UserStatusRevertStatusResponseApplicationJson_Ocs_Data
@ -1827,9 +1827,9 @@ abstract class UserStatusRevertStatusResponseApplicationJson_Ocs_Data
return;
}
final match = [b._private, b._jsonObject].singleWhereOrNull((final x) => x != null);
final match = [b._private, b._builtListJsonObject].singleWhereOrNull((final x) => x != null);
if (match == null) {
throw StateError("Need exactly one of 'private', 'jsonObject' for ${b._data}");
throw StateError("Need exactly one of 'private', 'builtListJsonObject' for ${b._data}");
}
}
}
@ -1865,8 +1865,11 @@ class _$UserStatusRevertStatusResponseApplicationJson_Ocs_DataSerializer
result.private.replace(value);
} catch (_) {}
try {
final value = _jsonSerializers.deserialize(data, specifiedType: const FullType(JsonObject))! as JsonObject;
result.jsonObject = value;
final value = _jsonSerializers.deserialize(
data,
specifiedType: const FullType(BuiltList, [FullType(JsonObject)]),
)! as BuiltList<JsonObject>;
result.builtListJsonObject.replace(value);
} catch (_) {}
return result.build();
}
@ -2106,6 +2109,7 @@ final Serializers _serializers = (Serializers().toBuilder()
UserStatusRevertStatusResponseApplicationJson_Ocs_Data.new,
)
..add(UserStatusRevertStatusResponseApplicationJson_Ocs_Data.serializer)
..addBuilderFactory(const FullType(BuiltList, [FullType(JsonObject)]), ListBuilder<JsonObject>.new)
..addBuilderFactory(const FullType(Capabilities), Capabilities.new)
..add(Capabilities.serializer)
..addBuilderFactory(const FullType(Capabilities_UserStatus), Capabilities_UserStatus.new)

28
packages/nextcloud/lib/src/api/user_status.openapi.g.dart

@ -4392,8 +4392,8 @@ abstract mixin class UserStatusRevertStatusResponseApplicationJson_Ocs_DataInter
PrivateBuilder get private;
set private(PrivateBuilder? private);
JsonObject? get jsonObject;
set jsonObject(JsonObject? jsonObject);
ListBuilder<JsonObject> get builtListJsonObject;
set builtListJsonObject(ListBuilder<JsonObject>? builtListJsonObject);
}
class _$UserStatusRevertStatusResponseApplicationJson_Ocs_Data
@ -4403,13 +4403,14 @@ class _$UserStatusRevertStatusResponseApplicationJson_Ocs_Data
@override
final Private? private;
@override
final JsonObject? jsonObject;
final BuiltList<JsonObject>? builtListJsonObject;
factory _$UserStatusRevertStatusResponseApplicationJson_Ocs_Data(
[void Function(UserStatusRevertStatusResponseApplicationJson_Ocs_DataBuilder)? updates]) =>
(UserStatusRevertStatusResponseApplicationJson_Ocs_DataBuilder()..update(updates))._build();
_$UserStatusRevertStatusResponseApplicationJson_Ocs_Data._({required this.data, this.private, this.jsonObject})
_$UserStatusRevertStatusResponseApplicationJson_Ocs_Data._(
{required this.data, this.private, this.builtListJsonObject})
: super._() {
BuiltValueNullFieldError.checkNotNull(data, r'UserStatusRevertStatusResponseApplicationJson_Ocs_Data', 'data');
}
@ -4429,7 +4430,7 @@ class _$UserStatusRevertStatusResponseApplicationJson_Ocs_Data
return other is UserStatusRevertStatusResponseApplicationJson_Ocs_Data &&
data == other.data &&
private == other.private &&
jsonObject == other.jsonObject;
builtListJsonObject == other.builtListJsonObject;
}
@override
@ -4437,7 +4438,7 @@ class _$UserStatusRevertStatusResponseApplicationJson_Ocs_Data
var _$hash = 0;
_$hash = $jc(_$hash, data.hashCode);
_$hash = $jc(_$hash, private.hashCode);
_$hash = $jc(_$hash, jsonObject.hashCode);
_$hash = $jc(_$hash, builtListJsonObject.hashCode);
_$hash = $jf(_$hash);
return _$hash;
}
@ -4447,7 +4448,7 @@ class _$UserStatusRevertStatusResponseApplicationJson_Ocs_Data
return (newBuiltValueToStringHelper(r'UserStatusRevertStatusResponseApplicationJson_Ocs_Data')
..add('data', data)
..add('private', private)
..add('jsonObject', jsonObject))
..add('builtListJsonObject', builtListJsonObject))
.toString();
}
}
@ -4467,9 +4468,10 @@ class UserStatusRevertStatusResponseApplicationJson_Ocs_DataBuilder
PrivateBuilder get private => _$this._private ??= PrivateBuilder();
set private(covariant PrivateBuilder? private) => _$this._private = private;
JsonObject? _jsonObject;
JsonObject? get jsonObject => _$this._jsonObject;
set jsonObject(covariant JsonObject? jsonObject) => _$this._jsonObject = jsonObject;
ListBuilder<JsonObject>? _builtListJsonObject;
ListBuilder<JsonObject> get builtListJsonObject => _$this._builtListJsonObject ??= ListBuilder<JsonObject>();
set builtListJsonObject(covariant ListBuilder<JsonObject>? builtListJsonObject) =>
_$this._builtListJsonObject = builtListJsonObject;
UserStatusRevertStatusResponseApplicationJson_Ocs_DataBuilder();
@ -4478,7 +4480,7 @@ class UserStatusRevertStatusResponseApplicationJson_Ocs_DataBuilder
if ($v != null) {
_data = $v.data;
_private = $v.private?.toBuilder();
_jsonObject = $v.jsonObject;
_builtListJsonObject = $v.builtListJsonObject?.toBuilder();
_$v = null;
}
return this;
@ -4507,12 +4509,14 @@ class UserStatusRevertStatusResponseApplicationJson_Ocs_DataBuilder
data: BuiltValueNullFieldError.checkNotNull(
data, r'UserStatusRevertStatusResponseApplicationJson_Ocs_Data', 'data'),
private: _private?.build(),
jsonObject: jsonObject);
builtListJsonObject: _builtListJsonObject?.build());
} catch (_) {
late String _$failedField;
try {
_$failedField = 'private';
_private?.build();
_$failedField = 'builtListJsonObject';
_builtListJsonObject?.build();
} catch (e) {
throw BuiltValueNestedFieldError(
r'UserStatusRevertStatusResponseApplicationJson_Ocs_Data', _$failedField, e.toString());

5
packages/nextcloud/lib/src/api/user_status.openapi.json

@ -821,7 +821,10 @@
{
"$ref": "#/components/schemas/Private"
},
{}
{
"type": "array",
"maxLength": 0
}
]
}
}

Loading…
Cancel
Save