@@ -1583,6 +1583,30 @@ export type paths = {
15831583 patch ?: never ;
15841584 trace ?: never ;
15851585 } ;
1586+ "/ocs/v2.php/apps/libresign/api/{apiVersion}/policies/user/{userId}/{policyKey}" : {
1587+ parameters : {
1588+ query ?: never ;
1589+ header ?: never ;
1590+ path ?: never ;
1591+ cookie ?: never ;
1592+ } ;
1593+ get ?: never ;
1594+ /**
1595+ * Save a user policy preference for a target user (admin scope)
1596+ * @description This endpoint requires admin access
1597+ */
1598+ put : operations [ "policy-set-user-policy-for-user" ] ;
1599+ post ?: never ;
1600+ /**
1601+ * Clear a user policy preference for a target user (admin scope)
1602+ * @description This endpoint requires admin access
1603+ */
1604+ delete : operations [ "policy-clear-user-policy-for-user" ] ;
1605+ options ?: never ;
1606+ head ?: never ;
1607+ patch ?: never ;
1608+ trace ?: never ;
1609+ } ;
15861610 "/ocs/v2.php/apps/libresign/api/{apiVersion}/setting/has-root-cert" : {
15871611 parameters : {
15881612 query ?: never ;
@@ -7290,6 +7314,11 @@ export interface operations {
72907314 "application/json" : {
72917315 /** @description Policy value to persist. Null resets the policy to its default system value. */
72927316 value ?: ( boolean | number | string ) | null ;
7317+ /**
7318+ * @description Whether lower layers may override this system default.
7319+ * @default false
7320+ */
7321+ allowChildOverride ?: boolean ;
72937322 } ;
72947323 } ;
72957324 } ;
@@ -7338,6 +7367,123 @@ export interface operations {
73387367 } ;
73397368 } ;
73407369 } ;
7370+ "policy-set-user-policy-for-user" : {
7371+ parameters : {
7372+ query ?: never ;
7373+ header : {
7374+ /** @description Required to be true for the API request to pass */
7375+ "OCS-APIRequest" : boolean ;
7376+ } ;
7377+ path : {
7378+ apiVersion : "v1" ;
7379+ /** @description Target user identifier that receives the policy preference. */
7380+ userId : string ;
7381+ /** @description Policy identifier to persist for the target user. */
7382+ policyKey : string ;
7383+ } ;
7384+ cookie ?: never ;
7385+ } ;
7386+ requestBody ?: {
7387+ content : {
7388+ "application/json" : {
7389+ /** @description Policy value to persist as target user preference. */
7390+ value ?: ( boolean | number | string ) | null ;
7391+ } ;
7392+ } ;
7393+ } ;
7394+ responses : {
7395+ /** @description OK */
7396+ 200 : {
7397+ headers : {
7398+ [ name : string ] : unknown ;
7399+ } ;
7400+ content : {
7401+ "application/json" : {
7402+ ocs : {
7403+ meta : components [ "schemas" ] [ "OCSMeta" ] ;
7404+ data : components [ "schemas" ] [ "SystemPolicyWriteResponse" ] ;
7405+ } ;
7406+ } ;
7407+ } ;
7408+ } ;
7409+ /** @description Invalid policy value */
7410+ 400 : {
7411+ headers : {
7412+ [ name : string ] : unknown ;
7413+ } ;
7414+ content : {
7415+ "application/json" : {
7416+ ocs : {
7417+ meta : components [ "schemas" ] [ "OCSMeta" ] ;
7418+ data : components [ "schemas" ] [ "ErrorResponse" ] ;
7419+ } ;
7420+ } ;
7421+ } ;
7422+ } ;
7423+ /** @description Internal server error */
7424+ 500 : {
7425+ headers : {
7426+ [ name : string ] : unknown ;
7427+ } ;
7428+ content : {
7429+ "application/json" : {
7430+ ocs : {
7431+ meta : components [ "schemas" ] [ "OCSMeta" ] ;
7432+ data : components [ "schemas" ] [ "ErrorResponse" ] ;
7433+ } ;
7434+ } ;
7435+ } ;
7436+ } ;
7437+ } ;
7438+ } ;
7439+ "policy-clear-user-policy-for-user" : {
7440+ parameters : {
7441+ query ?: never ;
7442+ header : {
7443+ /** @description Required to be true for the API request to pass */
7444+ "OCS-APIRequest" : boolean ;
7445+ } ;
7446+ path : {
7447+ apiVersion : "v1" ;
7448+ /** @description Target user identifier that receives the policy preference removal. */
7449+ userId : string ;
7450+ /** @description Policy identifier to clear for the target user. */
7451+ policyKey : string ;
7452+ } ;
7453+ cookie ?: never ;
7454+ } ;
7455+ requestBody ?: never ;
7456+ responses : {
7457+ /** @description OK */
7458+ 200 : {
7459+ headers : {
7460+ [ name : string ] : unknown ;
7461+ } ;
7462+ content : {
7463+ "application/json" : {
7464+ ocs : {
7465+ meta : components [ "schemas" ] [ "OCSMeta" ] ;
7466+ data : components [ "schemas" ] [ "SystemPolicyWriteResponse" ] ;
7467+ } ;
7468+ } ;
7469+ } ;
7470+ } ;
7471+ /** @description Internal server error */
7472+ 500 : {
7473+ headers : {
7474+ [ name : string ] : unknown ;
7475+ } ;
7476+ content : {
7477+ "application/json" : {
7478+ ocs : {
7479+ meta : components [ "schemas" ] [ "OCSMeta" ] ;
7480+ data : components [ "schemas" ] [ "ErrorResponse" ] ;
7481+ } ;
7482+ } ;
7483+ } ;
7484+ } ;
7485+ } ;
7486+ } ;
73417487 "setting-has-root-cert" : {
73427488 parameters : {
73437489 query ?: never ;
0 commit comments