Skip to content

Commit fa2e10b

Browse files
Merge pull request #18728 from nextcloud/automated/noid/main-update-nextcloud-openapi
[main] Update Nextcloud OpenAPI types
2 parents 801f046 + 9432499 commit fa2e10b

4 files changed

Lines changed: 136 additions & 8 deletions

File tree

src/types/openapi/core/openapi_core.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,7 @@ export type paths = {
8282
path?: never;
8383
cookie?: never;
8484
};
85-
/**
86-
* Get app password with one-time password
87-
* @description This endpoint requires password confirmation
88-
*/
85+
/** Get app password with one-time password */
8986
get: operations["app_password-get-app-password-with-one-time-password"];
9087
put?: never;
9188
post?: never;
@@ -1221,6 +1218,7 @@ export type components = {
12211218
allowCleanup: boolean;
12221219
includeWatermark: boolean;
12231220
userFacingErrorMessage: string | null;
1221+
preferStreaming: boolean;
12241222
};
12251223
TaskProcessingTaskType: {
12261224
name: string;
@@ -1668,7 +1666,7 @@ export interface operations {
16681666
itemType?: string | null;
16691667
/** @description ID of the items to search for */
16701668
itemId?: string | null;
1671-
/** @description can be piped, top prio first, e.g.: "commenters|share-recipients" */
1669+
/** @description can be piped, top priority first, e.g.: "commenters|share-recipients" */
16721670
sorter?: string | null;
16731671
/** @description Types of shares to search for */
16741672
"shareTypes[]"?: number[];
@@ -3112,6 +3110,11 @@ export interface operations {
31123110
* @default true
31133111
*/
31143112
includeWatermark?: boolean;
3113+
/**
3114+
* @description Whether to prefer getting a progressive output from the provider or not
3115+
* @default false
3116+
*/
3117+
preferStreaming?: boolean;
31153118
};
31163119
};
31173120
};

src/types/openapi/core/openapi_dav.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ export type components = {
8282
dav: {
8383
chunking: string;
8484
public_shares_chunking: boolean;
85+
search_supports_creation_time: boolean;
86+
search_supports_upload_time: boolean;
87+
search_supports_last_activity: boolean;
8588
bulkupload?: string;
8689
"absence-supported"?: boolean;
8790
"absence-replacement"?: boolean;

src/types/openapi/core/openapi_files_sharing.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,8 @@ export type components = {
380380
};
381381
};
382382
sharee: {
383+
/** Format: int64 */
384+
minSearchStringLength: number;
383385
query_lookup_default: boolean;
384386
always_show_unique: boolean;
385387
};
@@ -444,11 +446,12 @@ export type components = {
444446
permissions: number | null;
445447
remote: string;
446448
remote_id: string;
447-
share_token: string;
449+
refresh_token: string;
448450
/** Format: int64 */
449451
share_type: number;
450452
type: string | null;
451453
user: string;
454+
item_size: (number) | null;
452455
};
453456
Share: {
454457
attributes: string | null;
@@ -518,7 +521,7 @@ export type components = {
518521
token: string | null;
519522
uid_file_owner: string;
520523
uid_owner: string;
521-
url?: string;
524+
url?: string | null;
522525
};
523526
ShareInfo: {
524527
/** Format: int64 */

src/types/openapi/core/openapi_provisioning_api.ts

Lines changed: 120 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,12 @@ export type paths = {
186186
delete: operations["users-delete-user"];
187187
options?: never;
188188
head?: never;
189-
patch?: never;
189+
/**
190+
* Update multiple user account fields atomically. All submitted fields are validated first; if any fail, no changes are applied.
191+
* @description Unlike editUser (which updates one field at a time via key/value), this method accepts named fields and applies them all in a single request.
192+
* This endpoint requires password confirmation
193+
*/
194+
patch: operations["users-edit-user-multi-field"];
190195
trace?: never;
191196
};
192197
"/ocs/v2.php/cloud/user": {
@@ -556,6 +561,10 @@ export type components = {
556561
website: string;
557562
websiteScope?: components["schemas"]["UserDetailsScope"];
558563
};
564+
UserDetailsGroupDisplayname: {
565+
id: string;
566+
displayname: string;
567+
};
559568
UserDetailsQuota: {
560569
free?: number;
561570
quota?: number | string;
@@ -788,6 +797,7 @@ export interface operations {
788797
id: string;
789798
};
790799
};
800+
groups: components["schemas"]["UserDetailsGroupDisplayname"][];
791801
};
792802
};
793803
};
@@ -1046,6 +1056,7 @@ export interface operations {
10461056
id: string;
10471057
};
10481058
};
1059+
groups: components["schemas"]["UserDetailsGroupDisplayname"][];
10491060
};
10501061
};
10511062
};
@@ -1335,6 +1346,114 @@ export interface operations {
13351346
};
13361347
};
13371348
};
1349+
"users-edit-user-multi-field": {
1350+
parameters: {
1351+
query?: never;
1352+
header: {
1353+
/** @description Required to be true for the API request to pass */
1354+
"OCS-APIRequest": boolean;
1355+
};
1356+
path: {
1357+
/** @description The user to update */
1358+
userId: string;
1359+
};
1360+
cookie?: never;
1361+
};
1362+
requestBody?: {
1363+
content: {
1364+
"application/json": {
1365+
/**
1366+
* @description New display name (null = no change)
1367+
* @default null
1368+
*/
1369+
displayName?: string | null;
1370+
/**
1371+
* @description New password (null = no change)
1372+
* @default null
1373+
*/
1374+
password?: string | null;
1375+
/**
1376+
* @description New primary email (null = no change, '' = clear)
1377+
* @default null
1378+
*/
1379+
email?: string | null;
1380+
/**
1381+
* @description New quota e.g. "5 GB" (null = no change)
1382+
* @default null
1383+
*/
1384+
quota?: string | null;
1385+
/**
1386+
* @description Language code e.g. "de" (null = no change)
1387+
* @default null
1388+
*/
1389+
language?: string | null;
1390+
/**
1391+
* @description Manager user ID (null = no change, '' = clear)
1392+
* @default null
1393+
*/
1394+
manager?: string | null;
1395+
/**
1396+
* @description Group IDs to assign (null = no change, [] = remove all)
1397+
* @default null
1398+
*/
1399+
groups?: string[] | null;
1400+
/**
1401+
* @description Subadmin group IDs (null = no change, [] = remove all)
1402+
* @default null
1403+
*/
1404+
subadminGroups?: string[] | null;
1405+
};
1406+
};
1407+
};
1408+
responses: {
1409+
/** @description User updated successfully */
1410+
200: {
1411+
headers: {
1412+
[name: string]: unknown;
1413+
};
1414+
content: {
1415+
"application/json": {
1416+
ocs: {
1417+
meta: components["schemas"]["OCSMeta"];
1418+
data: components["schemas"]["UserDetails"];
1419+
};
1420+
};
1421+
};
1422+
};
1423+
/** @description Current user is not logged in */
1424+
401: {
1425+
headers: {
1426+
[name: string]: unknown;
1427+
};
1428+
content: {
1429+
"application/json": {
1430+
ocs: {
1431+
meta: components["schemas"]["OCSMeta"];
1432+
data: unknown;
1433+
};
1434+
};
1435+
};
1436+
};
1437+
/** @description One or more submitted fields failed validation */
1438+
422: {
1439+
headers: {
1440+
[name: string]: unknown;
1441+
};
1442+
content: {
1443+
"application/json": {
1444+
ocs: {
1445+
meta: components["schemas"]["OCSMeta"];
1446+
data: {
1447+
errors: {
1448+
[key: string]: string;
1449+
};
1450+
};
1451+
};
1452+
};
1453+
};
1454+
};
1455+
};
1456+
};
13381457
"users-get-current-user": {
13391458
parameters: {
13401459
query?: never;

0 commit comments

Comments
 (0)