@@ -513,6 +513,30 @@ export type paths = {
513513 patch ?: never ;
514514 trace ?: never ;
515515 } ;
516+ "/ocs/v2.php/apps/libresign/api/{apiVersion}/policies/user/{userId}/{policyKey}" : {
517+ parameters : {
518+ query ?: never ;
519+ header ?: never ;
520+ path ?: never ;
521+ cookie ?: never ;
522+ } ;
523+ get ?: never ;
524+ /**
525+ * Save a user policy preference for a target user (admin scope)
526+ * @description This endpoint requires admin access
527+ */
528+ put : operations [ "policy-set-user-policy-for-user" ] ;
529+ post ?: never ;
530+ /**
531+ * Clear a user policy preference for a target user (admin scope)
532+ * @description This endpoint requires admin access
533+ */
534+ delete : operations [ "policy-clear-user-policy-for-user" ] ;
535+ options ?: never ;
536+ head ?: never ;
537+ patch ?: never ;
538+ trace ?: never ;
539+ } ;
516540 "/ocs/v2.php/apps/libresign/api/{apiVersion}/setting/has-root-cert" : {
517541 parameters : {
518542 query ?: never ;
@@ -2341,6 +2365,11 @@ export interface operations {
23412365 "application/json" : {
23422366 /** @description Policy value to persist. Null resets the policy to its default system value. */
23432367 value ?: ( boolean | number | string ) | null ;
2368+ /**
2369+ * @description Whether lower layers may override this system default.
2370+ * @default false
2371+ */
2372+ allowChildOverride ?: boolean ;
23442373 } ;
23452374 } ;
23462375 } ;
@@ -2389,6 +2418,123 @@ export interface operations {
23892418 } ;
23902419 } ;
23912420 } ;
2421+ "policy-set-user-policy-for-user" : {
2422+ parameters : {
2423+ query ?: never ;
2424+ header : {
2425+ /** @description Required to be true for the API request to pass */
2426+ "OCS-APIRequest" : boolean ;
2427+ } ;
2428+ path : {
2429+ apiVersion : "v1" ;
2430+ /** @description Target user identifier that receives the policy preference. */
2431+ userId : string ;
2432+ /** @description Policy identifier to persist for the target user. */
2433+ policyKey : string ;
2434+ } ;
2435+ cookie ?: never ;
2436+ } ;
2437+ requestBody ?: {
2438+ content : {
2439+ "application/json" : {
2440+ /** @description Policy value to persist as target user preference. */
2441+ value ?: ( boolean | number | string ) | null ;
2442+ } ;
2443+ } ;
2444+ } ;
2445+ responses : {
2446+ /** @description OK */
2447+ 200 : {
2448+ headers : {
2449+ [ name : string ] : unknown ;
2450+ } ;
2451+ content : {
2452+ "application/json" : {
2453+ ocs : {
2454+ meta : components [ "schemas" ] [ "OCSMeta" ] ;
2455+ data : components [ "schemas" ] [ "SystemPolicyWriteResponse" ] ;
2456+ } ;
2457+ } ;
2458+ } ;
2459+ } ;
2460+ /** @description Invalid policy value */
2461+ 400 : {
2462+ headers : {
2463+ [ name : string ] : unknown ;
2464+ } ;
2465+ content : {
2466+ "application/json" : {
2467+ ocs : {
2468+ meta : components [ "schemas" ] [ "OCSMeta" ] ;
2469+ data : components [ "schemas" ] [ "ErrorResponse" ] ;
2470+ } ;
2471+ } ;
2472+ } ;
2473+ } ;
2474+ /** @description Internal server error */
2475+ 500 : {
2476+ headers : {
2477+ [ name : string ] : unknown ;
2478+ } ;
2479+ content : {
2480+ "application/json" : {
2481+ ocs : {
2482+ meta : components [ "schemas" ] [ "OCSMeta" ] ;
2483+ data : components [ "schemas" ] [ "ErrorResponse" ] ;
2484+ } ;
2485+ } ;
2486+ } ;
2487+ } ;
2488+ } ;
2489+ } ;
2490+ "policy-clear-user-policy-for-user" : {
2491+ parameters : {
2492+ query ?: never ;
2493+ header : {
2494+ /** @description Required to be true for the API request to pass */
2495+ "OCS-APIRequest" : boolean ;
2496+ } ;
2497+ path : {
2498+ apiVersion : "v1" ;
2499+ /** @description Target user identifier that receives the policy preference removal. */
2500+ userId : string ;
2501+ /** @description Policy identifier to clear for the target user. */
2502+ policyKey : string ;
2503+ } ;
2504+ cookie ?: never ;
2505+ } ;
2506+ requestBody ?: never ;
2507+ responses : {
2508+ /** @description OK */
2509+ 200 : {
2510+ headers : {
2511+ [ name : string ] : unknown ;
2512+ } ;
2513+ content : {
2514+ "application/json" : {
2515+ ocs : {
2516+ meta : components [ "schemas" ] [ "OCSMeta" ] ;
2517+ data : components [ "schemas" ] [ "SystemPolicyWriteResponse" ] ;
2518+ } ;
2519+ } ;
2520+ } ;
2521+ } ;
2522+ /** @description Internal server error */
2523+ 500 : {
2524+ headers : {
2525+ [ name : string ] : unknown ;
2526+ } ;
2527+ content : {
2528+ "application/json" : {
2529+ ocs : {
2530+ meta : components [ "schemas" ] [ "OCSMeta" ] ;
2531+ data : components [ "schemas" ] [ "ErrorResponse" ] ;
2532+ } ;
2533+ } ;
2534+ } ;
2535+ } ;
2536+ } ;
2537+ } ;
23922538 "setting-has-root-cert" : {
23932539 parameters : {
23942540 query ?: never ;
0 commit comments