refactor(web): migrate rbac access console contracts (#38256)

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
Stephen Zhou
2026-07-01 14:45:34 +00:00
committed by GitHub
co-authored by autofix-ci[bot]
parent f1f6ab0ac6
commit ee1d33eaa6
40 changed files with 452 additions and 289 deletions
+1 -1
View File
@@ -20213,7 +20213,7 @@ Whitelist scopes accepted by RBAC app and dataset access config APIs.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| data | [ [ResourceUserAccessPolicies](#resourceuseraccesspolicies) ] | | No |
| scope | string | | Yes |
| scope | [RBACResourceWhitelistScope](#rbacresourcewhitelistscope) | | Yes |
#### ResourceWhitelist
+1 -1
View File
@@ -249,7 +249,7 @@ class ResourceUserAccessPolicies(_RBACModel):
class ResourceUserAccessPoliciesResponse(_RBACModel):
scope: str
scope: RBACResourceWhitelistScope
data: list[ResourceUserAccessPolicies] = Field(default_factory=list)
@@ -299,7 +299,7 @@ class TestResourceAccess:
def test_app_user_access_policies(self, mock_send: MagicMock):
mock_send.return_value = {
"scope": "app",
"scope": "specific",
"data": [
{
"account": {"account_id": "acct-1", "account_name": "Alice"},