@@ -1561,7 +1561,11 @@ export type paths = {
15611561 path ?: never ;
15621562 cookie ?: never ;
15631563 } ;
1564- get ?: never ;
1564+ /**
1565+ * Read explicit system policy configuration
1566+ * @description This endpoint requires admin access
1567+ */
1568+ get : operations [ "policy-get-system" ] ;
15651569 put ?: never ;
15661570 /**
15671571 * Save a system-level policy value
@@ -1581,7 +1585,11 @@ export type paths = {
15811585 path ?: never ;
15821586 cookie ?: never ;
15831587 } ;
1584- get ?: never ;
1588+ /**
1589+ * Read a user-level policy preference for a target user (admin scope)
1590+ * @description This endpoint requires admin access
1591+ */
1592+ get : operations [ "policy-get-user-policy-for-user" ] ;
15851593 /**
15861594 * Save a user policy preference for a target user (admin scope)
15871595 * @description This endpoint requires admin access
@@ -2373,6 +2381,18 @@ export type components = {
23732381 /** @enum {string} */
23742382 status : "success" ;
23752383 } ;
2384+ SystemPolicyResponse : {
2385+ policy : components [ "schemas" ] [ "SystemPolicyState" ] ;
2386+ } ;
2387+ SystemPolicyState : {
2388+ policyKey : string ;
2389+ /** @enum {string} */
2390+ scope : "system" | "global" ;
2391+ value : components [ "schemas" ] [ "EffectivePolicyValue" ] ;
2392+ allowChildOverride : boolean ;
2393+ visibleToChild : boolean ;
2394+ allowedValues : components [ "schemas" ] [ "EffectivePolicyValue" ] [ ] ;
2395+ } ;
23762396 SystemPolicyWriteRequest : {
23772397 value : components [ "schemas" ] [ "EffectivePolicyValue" ] ;
23782398 } ;
@@ -2401,6 +2421,17 @@ export type components = {
24012421 UserElementsResponse : {
24022422 elements : components [ "schemas" ] [ "UserElement" ] [ ] ;
24032423 } ;
2424+ UserPolicyResponse : {
2425+ policy : components [ "schemas" ] [ "UserPolicyState" ] ;
2426+ } ;
2427+ UserPolicyState : {
2428+ policyKey : string ;
2429+ /** @enum {string} */
2430+ scope : "user" ;
2431+ targetId : string ;
2432+ value : components [ "schemas" ] [ "EffectivePolicyValue" ] ;
2433+ } ;
2434+ UserPolicyWriteResponse : components [ "schemas" ] [ "MessageResponse" ] & components [ "schemas" ] [ "UserPolicyResponse" ] ;
24042435 ValidateMetadata : {
24052436 extension : string ;
24062437 /** Format: int64 */
@@ -7328,6 +7359,38 @@ export interface operations {
73287359 } ;
73297360 } ;
73307361 } ;
7362+ "policy-get-system" : {
7363+ parameters : {
7364+ query ?: never ;
7365+ header : {
7366+ /** @description Required to be true for the API request to pass */
7367+ "OCS-APIRequest" : boolean ;
7368+ } ;
7369+ path : {
7370+ apiVersion : "v1" ;
7371+ /** @description Policy identifier to read from the system layer. */
7372+ policyKey : string ;
7373+ } ;
7374+ cookie ?: never ;
7375+ } ;
7376+ requestBody ?: never ;
7377+ responses : {
7378+ /** @description OK */
7379+ 200 : {
7380+ headers : {
7381+ [ name : string ] : unknown ;
7382+ } ;
7383+ content : {
7384+ "application/json" : {
7385+ ocs : {
7386+ meta : components [ "schemas" ] [ "OCSMeta" ] ;
7387+ data : components [ "schemas" ] [ "SystemPolicyResponse" ] ;
7388+ } ;
7389+ } ;
7390+ } ;
7391+ } ;
7392+ } ;
7393+ } ;
73317394 "policy-set-system" : {
73327395 parameters : {
73337396 query ?: never ;
@@ -7400,6 +7463,40 @@ export interface operations {
74007463 } ;
74017464 } ;
74027465 } ;
7466+ "policy-get-user-policy-for-user" : {
7467+ parameters : {
7468+ query ?: never ;
7469+ header : {
7470+ /** @description Required to be true for the API request to pass */
7471+ "OCS-APIRequest" : boolean ;
7472+ } ;
7473+ path : {
7474+ apiVersion : "v1" ;
7475+ /** @description Target user identifier that receives the policy preference. */
7476+ userId : string ;
7477+ /** @description Policy identifier to read for the selected user. */
7478+ policyKey : string ;
7479+ } ;
7480+ cookie ?: never ;
7481+ } ;
7482+ requestBody ?: never ;
7483+ responses : {
7484+ /** @description OK */
7485+ 200 : {
7486+ headers : {
7487+ [ name : string ] : unknown ;
7488+ } ;
7489+ content : {
7490+ "application/json" : {
7491+ ocs : {
7492+ meta : components [ "schemas" ] [ "OCSMeta" ] ;
7493+ data : components [ "schemas" ] [ "UserPolicyResponse" ] ;
7494+ } ;
7495+ } ;
7496+ } ;
7497+ } ;
7498+ } ;
7499+ } ;
74037500 "policy-set-user-policy-for-user" : {
74047501 parameters : {
74057502 query ?: never ;
@@ -7434,7 +7531,7 @@ export interface operations {
74347531 "application/json" : {
74357532 ocs : {
74367533 meta : components [ "schemas" ] [ "OCSMeta" ] ;
7437- data : components [ "schemas" ] [ "SystemPolicyWriteResponse " ] ;
7534+ data : components [ "schemas" ] [ "UserPolicyWriteResponse " ] ;
74387535 } ;
74397536 } ;
74407537 } ;
@@ -7496,7 +7593,7 @@ export interface operations {
74967593 "application/json" : {
74977594 ocs : {
74987595 meta : components [ "schemas" ] [ "OCSMeta" ] ;
7499- data : components [ "schemas" ] [ "SystemPolicyWriteResponse " ] ;
7596+ data : components [ "schemas" ] [ "UserPolicyWriteResponse " ] ;
75007597 } ;
75017598 } ;
75027599 } ;
0 commit comments