Skip to content

Commit

Permalink
Merge pull request #12 from frontegg/FR-18385-revert-deprecation
Browse files Browse the repository at this point in the history
revert changes
  • Loading branch information
yossi-frontegg authored Nov 12, 2024
2 parents bf80e83 + cd9d879 commit 54f44f6
Showing 1 changed file with 50 additions and 14 deletions.
64 changes: 50 additions & 14 deletions agent.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"paths": {
"/v1/data/e10s/features/is_entitled_to_input_feature": {
"post": {
"deprecated": true,
"operationId": "OpenApiPDPController_isEntitledToFeature",
"summary": "Is Entitled To Feature",
"description": "Check whether a given tenant or user is entitled to the requested feature",
Expand Down Expand Up @@ -41,7 +40,9 @@
}
}
},
"tags": ["Entitlements Check"]
"tags": [
"Entitlements Check"
]
}
},
"/v1/data/e10s/permissions/is_entitled_to_input_permission": {
Expand Down Expand Up @@ -83,7 +84,9 @@
}
}
},
"tags": ["Entitlements Check"]
"tags": [
"Entitlements Check"
]
}
},
"/v1/data/e10s/routes/is_entitled_to_input_route": {
Expand Down Expand Up @@ -125,7 +128,9 @@
}
}
},
"tags": ["Entitlements Check"]
"tags": [
"Entitlements Check"
]
}
}
},
Expand Down Expand Up @@ -158,7 +163,9 @@
"example": "example-feature-key"
}
},
"required": ["featureKey"]
"required": [
"featureKey"
]
},
"SubjectContext": {
"type": "object",
Expand All @@ -172,7 +179,10 @@
"example": "f21ca66c-d23b-496f-b805-121ed37eb46a"
},
"permissions": {
"example": ["example.permission.read", "example.permission.write"],
"example": [
"example.permission.read",
"example.permission.write"
],
"type": "array",
"items": {
"type": "string"
Expand All @@ -185,14 +195,22 @@
}
}
},
"required": ["tenantId"]
"required": [
"tenantId"
]
},
"EntitlementsResult": {
"type": "object",
"properties": {
"justification": {
"type": "string",
"enum": ["MISSING_FEATURE", "MISSING_PERMISSION", "PLAN_EXPIRED", "MISSING_ROUTE", "ROUTE_DENIED"],
"enum": [
"MISSING_FEATURE",
"MISSING_PERMISSION",
"PLAN_EXPIRED",
"MISSING_ROUTE",
"ROUTE_DENIED"
],
"example": "MISSING_FEATURE"
},
"monitoring": {
Expand All @@ -203,7 +221,9 @@
"example": false
}
},
"required": ["result"]
"required": [
"result"
]
},
"PDPResponse": {
"type": "object",
Expand All @@ -219,7 +239,11 @@
"$ref": "#/components/schemas/EntitlementsResult"
}
},
"required": ["decision_id", "metrics", "result"]
"required": [
"decision_id",
"metrics",
"result"
]
},
"IsEntitledToPermissionDto": {
"type": "object",
Expand All @@ -229,27 +253,39 @@
"example": "example.permission.read"
}
},
"required": ["permissionKey"]
"required": [
"permissionKey"
]
},
"IsEntitledToRouteDto": {
"type": "object",
"properties": {
"method": {
"type": "string",
"enum": ["GET", "POST", "PUT", "PATCH", "DELETE", "*"],
"enum": [
"GET",
"POST",
"PUT",
"PATCH",
"DELETE",
"*"
],
"example": "GET"
},
"path": {
"type": "string",
"example": "/example"
}
},
"required": ["method", "path"]
"required": [
"method",
"path"
]
}
}
},
"x-readme": {
"explorer-enabled": true,
"proxy-enabled": true
}
}
}

0 comments on commit 54f44f6

Please sign in to comment.