{
  "consumes": [
    "application/json"
  ],
  "definitions": {
    "AccessControlServiceInvitationAcceptBody": {
      "properties": {
        "display_name": {
          "title": "显示名 | [EN] Display name",
          "type": "string"
        },
        "email_code": {
          "title": "邮箱验证码 | [EN] Email code",
          "type": "string"
        },
        "key_id": {
          "title": "临时公钥 ID | [EN] Temporary key id",
          "type": "string"
        },
        "password": {
          "title": "密码（满足组织域的密码策略）；带 key_id 时为 RSA-OAEP 密文的 Base64 | [EN] Password meeting the org domain's policy; the Base64 of RSA-OAEP ciphertext when key_id is set",
          "type": "string"
        }
      },
      "title": "新人接受邀请请求：用邮箱验证码证明邮箱是自己的，设显示名与密码\n[EN] A newcomer accepts: the email code proves the mailbox, and a display name and password are set",
      "type": "object"
    },
    "AccessControlServiceInvitationAcceptGoogleBody": {
      "properties": {
        "id_token": {
          "title": "Google ID 令牌 | [EN] Google ID token",
          "type": "string"
        }
      },
      "title": "凭 Google 接受邀请请求：Google 验证过的邮箱须就是被邀请的邮箱\n[EN] Accept with Google request; the Google-verified email must be the invited one",
      "type": "object"
    },
    "AccessControlServiceInvitationEmailCodeSendBody": {
      "title": "给被邀请的邮箱发验证码请求\n[EN] Send an email code to the invited email request",
      "type": "object"
    },
    "AccessControlServiceInvitationJoinBody": {
      "title": "已登录的本人加入请求（凭组织域令牌，令牌的人须就是被邀请的邮箱）\n[EN] The signed-in invitee joins, under an org-domain token whose person owns the invited email",
      "type": "object"
    },
    "AccessControlServiceMfaDeviceRemoveBody": {
      "properties": {
        "code": {
          "title": "动态口令或恢复码 | [EN] TOTP or backup code",
          "type": "string"
        },
        "code_type": {
          "$ref": "#/definitions/access_controlMfaCodeType",
          "title": "口令类型，不传为动态口令 | [EN] Code kind; TOTP when omitted"
        }
      },
      "title": "移除二次验证设备请求\n[EN] Remove MFA device request",
      "type": "object"
    },
    "AccessControlServiceMfaEnrollConfirmBody": {
      "properties": {
        "code": {
          "title": "动态口令 | [EN] TOTP code",
          "type": "string"
        }
      },
      "title": "确认绑定二次验证设备请求\n[EN] Confirm MFA device enrollment request",
      "type": "object"
    },
    "AccessControlServiceOpsAnnouncementUpdateBody": {
      "properties": {
        "author": {
          "title": "发布方 | [EN] Author",
          "type": "string"
        },
        "status": {
          "$ref": "#/definitions/access_controlAnnouncementStatus",
          "title": "状态 | [EN] Status"
        },
        "translations": {
          "items": {
            "$ref": "#/definitions/commonAnnouncementTranslation",
            "type": "object"
          },
          "title": "各语言版本，第一项为默认语言 | [EN] One entry per language, the first being the default",
          "type": "array"
        },
        "version": {
          "format": "int32",
          "title": "读到的行版本 | [EN] Row version as read",
          "type": "integer"
        }
      },
      "title": "更新公告请求；版本传 0 表示不做并发控制\n[EN] Update announcement request; a zero version opts out of concurrency control",
      "type": "object"
    },
    "AccessControlServiceOpsAuditLogRevealBody": {
      "title": "查看审计快照原文请求\n[EN] Reveal audit snapshot request",
      "type": "object"
    },
    "AccessControlServiceOpsFeedbackAssignBody": {
      "properties": {
        "assignee_id": {
          "title": "处理人的运维账号 ID | [EN] The handler's ops user ID",
          "type": "string"
        },
        "version": {
          "format": "int32",
          "title": "读到的行版本（FeedbackInfo.version），与库里的不一致回 feedback_stale；传 0 表示旧客户端不做并发控制 | [EN] Row version as read from FeedbackInfo.version; a mismatch answers feedback_stale; zero means a legacy client opts out",
          "type": "integer"
        }
      },
      "title": "指派处理人请求：待处理的随之转为处理中；已解决、已关闭的要先重新打开\n[EN] Assign request; a pending one moves to processing, and resolved or closed ones must be reopened first",
      "type": "object"
    },
    "AccessControlServiceOpsFeedbackNoteCreateBody": {
      "properties": {
        "content": {
          "title": "备注，1 到 500 字 | [EN] Note, 1 to 500 characters",
          "type": "string"
        },
        "version": {
          "format": "int32",
          "title": "读到的行版本（FeedbackInfo.version），与库里的不一致回 feedback_stale；传 0 表示旧客户端不做并发控制 | [EN] Row version as read from FeedbackInfo.version; a mismatch answers feedback_stale; zero means a legacy client opts out",
          "type": "integer"
        }
      },
      "title": "加备注请求：仅平台可见 | [EN] Add note request, visible to the platform only",
      "type": "object"
    },
    "AccessControlServiceOpsFeedbackUpdateStatusBody": {
      "properties": {
        "reason": {
          "title": "关闭原因，关闭时必填，最多 200 字 | [EN] Close reason, required to close, at most 200 characters",
          "type": "string"
        },
        "status": {
          "$ref": "#/definitions/access_controlFeedbackStatus",
          "title": "目标状态：处理中、已解决或已关闭 | [EN] Target status: processing, resolved or closed"
        },
        "version": {
          "format": "int32",
          "title": "读到的行版本（FeedbackInfo.version），与库里的不一致回 feedback_stale；传 0 表示旧客户端不做并发控制 | [EN] Row version as read from FeedbackInfo.version; a mismatch answers feedback_stale; zero means a legacy client opts out",
          "type": "integer"
        }
      },
      "title": "改状态请求：处理中（待处理时为开始处理，已解决 / 已关闭时为重新打开）、已解决、已关闭（必填原因）；没有处理人时由调用方认领\n[EN] Change status request: processing (start from pending, reopen from resolved or closed), resolved, or closed with\na required reason; an unassigned one is claimed by the caller",
      "type": "object"
    },
    "AccessControlServiceOpsOrgObserverTicketCreateBody": {
      "properties": {
        "workspace_id": {
          "title": "目标工作区；不传按最近使用、默认、最早可用解析 | [EN] Target workspace; resolved by last used, default, earliest when omitted",
          "type": "string"
        }
      },
      "title": "创建组织观察者登录票据请求：以组织所有者身份进入组织后台，但只读\n[EN] Create an organization observer ticket: enter the console as the owner, read-only",
      "type": "object"
    },
    "AccessControlServiceOpsOrgUpdateMfaBody": {
      "properties": {
        "mfa_enforced": {
          "title": "是否强制二次验证 | [EN] Whether MFA is enforced",
          "type": "boolean"
        }
      },
      "title": "修改组织的强制二次验证请求\n[EN] Update organization MFA enforcement request",
      "type": "object"
    },
    "AccessControlServiceOpsOrgUpdateStatusBody": {
      "properties": {
        "status": {
          "$ref": "#/definitions/enumsCommonStatus",
          "title": "状态 | [EN] Status"
        }
      },
      "title": "修改组织状态请求：停用后组织内全部会话撤销\n[EN] Update organization status request; disabling revokes every session in it",
      "type": "object"
    },
    "AccessControlServiceOpsPermissionUpdateBody": {
      "properties": {
        "active_menu": {
          "title": "高亮的菜单路径 | [EN] Menu path to highlight",
          "type": "string"
        },
        "code": {
          "title": "权限编码，域内唯一 | [EN] Permission code, unique within the domain",
          "type": "string"
        },
        "component": {
          "title": "菜单组件 | [EN] Menu component",
          "type": "string"
        },
        "data_scope_mode": {
          "$ref": "#/definitions/access_controlDataScopeMode",
          "title": "数据范围模式（组织域按钮） | [EN] Data scope mode, org actions"
        },
        "description": {
          "title": "描述 | [EN] Description",
          "type": "string"
        },
        "domain": {
          "$ref": "#/definitions/enumsDomainType",
          "title": "目标身份域 | [EN] Target domain"
        },
        "hidden": {
          "title": "是否在菜单里隐藏 | [EN] Hidden from the menu",
          "type": "boolean"
        },
        "i18n_key": {
          "title": "名称的多语言键 | [EN] i18n key of the name",
          "type": "string"
        },
        "icon": {
          "title": "图标 | [EN] Icon",
          "type": "string"
        },
        "keep_alive": {
          "title": "是否缓存页面 | [EN] Keep the page alive",
          "type": "boolean"
        },
        "layout": {
          "$ref": "#/definitions/access_controlMenuLayout",
          "title": "布局（菜单） | [EN] Layout, for menus"
        },
        "method": {
          "$ref": "#/definitions/access_controlHttpMethod",
          "title": "接口方法（接口节点） | [EN] API method, for API nodes"
        },
        "name": {
          "title": "名称 | [EN] Name",
          "type": "string"
        },
        "parent_id": {
          "title": "父节点 ID，根节点为空 | [EN] Parent ID, empty for roots",
          "type": "string"
        },
        "path": {
          "title": "菜单路由 | [EN] Menu route path",
          "type": "string"
        },
        "redirect": {
          "title": "重定向 | [EN] Redirect",
          "type": "string"
        },
        "sort": {
          "format": "int32",
          "title": "排序 | [EN] Sort order",
          "type": "integer"
        },
        "url_pattern": {
          "title": "接口路径（接口节点，keyMatch2） | [EN] API path pattern, keyMatch2",
          "type": "string"
        },
        "version": {
          "format": "int32",
          "title": "读到的行版本，0 表示不做并发控制 | [EN] Row version as read; 0 opts out of concurrency control",
          "type": "integer"
        }
      },
      "title": "更新权限节点请求（类型与位序号不可改）\n[EN] Update permission node request; type and bit are immutable",
      "type": "object"
    },
    "AccessControlServiceOpsPermissionUpdateStatusBody": {
      "properties": {
        "domain": {
          "$ref": "#/definitions/enumsDomainType",
          "title": "目标身份域 | [EN] Target domain"
        },
        "status": {
          "$ref": "#/definitions/enumsCommonStatus",
          "title": "状态 | [EN] Status"
        }
      },
      "title": "修改权限节点状态请求：停用的节点不再出现在菜单与令牌里\n[EN] Update permission node status request; a disabled node leaves menus and tokens",
      "type": "object"
    },
    "AccessControlServiceOpsRolePermissionsSetBody": {
      "properties": {
        "permission_ids": {
          "items": {
            "type": "string"
          },
          "title": "授予的权限节点 | [EN] Granted permission nodes",
          "type": "array"
        }
      },
      "title": "整组替换运维角色的授权请求\n[EN] Replace an ops role's grants request",
      "type": "object"
    },
    "AccessControlServiceOpsRoleTemplateGrantsSetBody": {
      "properties": {
        "grants": {
          "items": {
            "$ref": "#/definitions/access_controlRoleGrant",
            "type": "object"
          },
          "title": "授权 | [EN] Grants",
          "type": "array"
        }
      },
      "title": "整组替换角色模板的授权请求\n[EN] Replace a role template's grants request",
      "type": "object"
    },
    "AccessControlServiceOpsRoleTemplateOrgsSetBody": {
      "properties": {
        "apply_all_orgs": {
          "title": "适用全部组织；为真时 org_ids 被忽略 | [EN] Applies to every organization; org_ids is ignored when set",
          "type": "boolean"
        },
        "org_ids": {
          "items": {
            "type": "string"
          },
          "title": "适用的组织 | [EN] Organizations",
          "type": "array"
        }
      },
      "title": "设置角色模板适用的组织请求\n[EN] Set the organizations a role template applies to",
      "type": "object"
    },
    "AccessControlServiceOpsRoleTemplateUpdateBody": {
      "properties": {
        "assignable": {
          "title": "能否分配给成员 | [EN] Whether accounts can be given it",
          "type": "boolean"
        },
        "description": {
          "items": {
            "$ref": "#/definitions/commonLocalizedText",
            "type": "object"
          },
          "title": "描述（按语言）| [EN] Description per language",
          "type": "array"
        },
        "name": {
          "items": {
            "$ref": "#/definitions/commonLocalizedText",
            "type": "object"
          },
          "title": "名称（按语言）| [EN] Name per language",
          "type": "array"
        },
        "rank": {
          "format": "int32",
          "title": "等级 | [EN] Rank",
          "type": "integer"
        },
        "sort": {
          "format": "int32",
          "title": "排序 | [EN] Sort order",
          "type": "integer"
        },
        "version": {
          "format": "int32",
          "title": "读到的行版本，0 表示不做并发控制 | [EN] Row version as read; 0 opts out of concurrency control",
          "type": "integer"
        }
      },
      "title": "更新角色模板请求；编码创建后不可改：它是复制出的角色在工作区内的唯一键\n[EN] Update role template request. The code is fixed after creation: it is the copied roles' unique key in a workspace",
      "type": "object"
    },
    "AccessControlServiceOpsRoleTemplateUpdateStatusBody": {
      "properties": {
        "status": {
          "$ref": "#/definitions/enumsCommonStatus",
          "title": "状态 | [EN] Status"
        }
      },
      "title": "修改角色模板状态请求\n[EN] Update role template status request",
      "type": "object"
    },
    "AccessControlServiceOpsUserRolesSetBody": {
      "properties": {
        "role_ids": {
          "items": {
            "type": "string"
          },
          "title": "角色 ID | [EN] Role IDs",
          "type": "array"
        }
      },
      "title": "整组替换运维账号的角色请求\n[EN] Replace an ops user's roles request",
      "type": "object"
    },
    "AccessControlServiceOpsUserUpdateBody": {
      "properties": {
        "avatar_url": {
          "title": "头像 | [EN] Avatar URL",
          "type": "string"
        },
        "display_name": {
          "title": "显示名 | [EN] Display name",
          "type": "string"
        },
        "email": {
          "title": "邮箱 | [EN] Email",
          "type": "string"
        },
        "phone": {
          "title": "手机号（E.164） | [EN] Phone number (E.164)",
          "type": "string"
        },
        "remark": {
          "title": "备注 | [EN] Remark",
          "type": "string"
        },
        "timezone": {
          "title": "时区（IANA） | [EN] Time zone, IANA",
          "type": "string"
        }
      },
      "title": "修改运维账号资料请求\n[EN] Update ops user request",
      "type": "object"
    },
    "AccessControlServiceOpsUserUpdateStatusBody": {
      "properties": {
        "status": {
          "$ref": "#/definitions/enumsPrincipalStatus",
          "title": "新状态 | [EN] New status"
        }
      },
      "title": "修改运维账号状态请求：禁用后全部会话立即撤销\n[EN] Update ops user status request; disabling revokes every session at once",
      "type": "object"
    },
    "AccessControlServiceOpsWorkspaceUpdateStatusBody": {
      "properties": {
        "status": {
          "$ref": "#/definitions/enumsCommonStatus",
          "title": "状态 | [EN] Status"
        }
      },
      "title": "启用或停用工作区请求\n[EN] Enable or disable a workspace request",
      "type": "object"
    },
    "AccessControlServiceOrgAccountRestrictionsSetBody": {
      "properties": {
        "restrictions": {
          "items": {
            "$ref": "#/definitions/access_controlAccountRestriction",
            "type": "object"
          },
          "title": "限制，空即全部去掉 | [EN] Restrictions; empty clears them all",
          "type": "array"
        }
      },
      "title": "整组替换成员的高级限制请求\n[EN] Replace an account's restrictions request",
      "type": "object"
    },
    "AccessControlServiceOrgAccountUpdateBody": {
      "properties": {
        "display_name": {
          "title": "工作区内的成员显示名 | [EN] Member display name within the workspace",
          "type": "string"
        },
        "is_org_admin": {
          "title": "是否组织管理员：组织后台不能修改，须与当前值一致 | [EN] Whether an organization admin; the console cannot change it, so it must match the current value",
          "type": "boolean"
        },
        "key_id": {
          "title": "临时公钥 ID；不传按明文，仅兼容旧客户端 | [EN] Temporary key id; without it the password is plain text, for older clients only",
          "type": "string"
        },
        "login_account": {
          "title": "新登录账号，空为不改；只限自定义账号且身份主体只属于本组织 | [EN] New login account, empty keeps it; custom accounts whose principal belongs to this organization alone",
          "type": "string"
        },
        "new_password": {
          "title": "新密码，空为不改；只限自定义账号且身份主体只属于本组织，修改后该成员会话全部撤销；带 key_id 时为 RSA-OAEP 密文的 Base64 | [EN] New password, empty keeps it; custom accounts whose principal belongs to this organization alone, and the account's sessions are revoked; the Base64 of RSA-OAEP ciphertext when key_id is set",
          "type": "string"
        },
        "restrictions": {
          "items": {
            "$ref": "#/definitions/access_controlAccountRestriction",
            "type": "object"
          },
          "title": "成员权限调整，整组替换（空列表即清空） | [EN] Account restrictions, replaced as a whole; an empty list clears them",
          "type": "array"
        },
        "role_id": {
          "title": "角色 | [EN] Role",
          "type": "string"
        },
        "team_id": {
          "title": "团队 | [EN] Team",
          "type": "string"
        }
      },
      "title": "修改成员请求\n[EN] Update account request",
      "type": "object"
    },
    "AccessControlServiceOrgAccountUpdateStatusBody": {
      "properties": {
        "status": {
          "$ref": "#/definitions/enumsAccountStatus",
          "title": "新状态 | [EN] New status"
        }
      },
      "title": "修改成员状态请求：禁用后该成员身份的会话立即作废\n[EN] Update account status request; disabling ends the membership's sessions",
      "type": "object"
    },
    "AccessControlServiceOrgInvitationResendBody": {
      "title": "重发邀请请求\n[EN] Resend invitation request",
      "type": "object"
    },
    "AccessControlServiceOrgRoleGrantsSetBody": {
      "properties": {
        "grants": {
          "items": {
            "$ref": "#/definitions/access_controlRoleGrant",
            "type": "object"
          },
          "title": "授权 | [EN] Grants",
          "type": "array"
        }
      },
      "title": "整组替换角色授权请求\n[EN] Replace a role's grants request",
      "type": "object"
    },
    "AccessControlServiceOrgTeamUpdateBody": {
      "properties": {
        "account_ids": {
          "items": {
            "type": "string"
          },
          "title": "成员 | [EN] Accounts",
          "type": "array"
        },
        "description": {
          "title": "描述 | [EN] Description",
          "type": "string"
        },
        "name": {
          "title": "名称，工作区内唯一 | [EN] Name, unique in the workspace",
          "type": "string"
        }
      },
      "title": "改团队请求：成员整组替换，拿掉的回到默认团队；默认团队不能拿掉成员\n[EN] Update team request: accounts are replaced as a whole and those taken out return to the default team; the\ndefault team cannot lose accounts",
      "type": "object"
    },
    "AccessControlServiceOrgWorkspaceUpdateBody": {
      "properties": {
        "name": {
          "title": "名称，组织内唯一 | [EN] Name, unique in the organization",
          "type": "string"
        }
      },
      "title": "改工作区请求（只改名称）\n[EN] Update workspace request, name only",
      "type": "object"
    },
    "AccessControlServiceRoleUpdateBody": {
      "properties": {
        "description": {
          "items": {
            "$ref": "#/definitions/commonLocalizedText",
            "type": "object"
          },
          "title": "描述（按语言）| [EN] Description per language",
          "type": "array"
        },
        "name": {
          "items": {
            "$ref": "#/definitions/commonLocalizedText",
            "type": "object"
          },
          "title": "名称（按语言）| [EN] Name per language",
          "type": "array"
        },
        "sort": {
          "format": "int32",
          "title": "排序 | [EN] Sort order",
          "type": "integer"
        },
        "version": {
          "format": "int32",
          "title": "读到的行版本，0 表示不做并发控制 | [EN] Row version as read; 0 opts out of concurrency control",
          "type": "integer"
        }
      },
      "title": "更新角色请求：运维改运维角色，组织管理员改本组织的角色\n[EN] Update role request: ops roles for ops callers, the organization's roles for org admins",
      "type": "object"
    },
    "AccessControlServiceRoleUpdateStatusBody": {
      "properties": {
        "status": {
          "$ref": "#/definitions/enumsCommonStatus",
          "title": "状态 | [EN] Status"
        }
      },
      "title": "修改角色状态请求：停用的角色不再授予任何权限\n[EN] Update role status request; a disabled role grants nothing",
      "type": "object"
    },
    "AccessControlServiceUserMfaResetBody": {
      "title": "重置二次验证请求：移除全部设备与恢复码，会话全部撤销；id 同上\n[EN] Reset MFA request: removes devices and backup codes and revokes sessions; id as above",
      "type": "object"
    },
    "AccessControlServiceUserResetPasswordBody": {
      "description": "重置密码请求：运维调用时 id 是运维账号 ID，组织调用时是成员 ID（只允许该身份主体只属于本组织时）；全部会话撤销，下次登录须改密\n[EN] Reset password request; id is the ops user for ops callers and the account for org callers (allowed only when\nthe principal belongs to this organization alone). Sessions are revoked and the next login must change it.",
      "properties": {
        "key_id": {
          "title": "临时公钥 ID | [EN] Temporary key id",
          "type": "string"
        },
        "new_password": {
          "title": "新密码；带 key_id 时为 RSA-OAEP 密文的 Base64 | [EN] New password, the Base64 of RSA-OAEP ciphertext when key_id is set",
          "type": "string"
        }
      },
      "type": "object"
    },
    "AccessControlServiceUserUnlockBody": {
      "title": "解除登录锁定请求：id 同上 | [EN] Unlock login request; id as above",
      "type": "object"
    },
    "access_controlAccessLevel": {
      "properties": {
        "grants": {
          "items": {
            "$ref": "#/definitions/access_controlPermissionGrant",
            "type": "object"
          },
          "title": "授权：编码与数据范围 | [EN] Grants as codes and data scopes",
          "type": "array"
        },
        "role": {
          "$ref": "#/definitions/access_controlRoleInfo",
          "title": "角色（含等级与可分配），不带授权 ID | [EN] Role with rank and assignable flag, without grant IDs"
        }
      },
      "title": "一个访问级别：角色与它的授权\n[EN] One access level: a role and its grants",
      "type": "object"
    },
    "access_controlAccessRecordDetail": {
      "properties": {
        "body": {
          "title": "请求体（JSON）| [EN] Request body, JSON",
          "type": "string"
        },
        "error": {
          "title": "错误信息 | [EN] Error",
          "type": "string"
        },
        "headers": {
          "title": "请求头（JSON）| [EN] Request headers, JSON",
          "type": "string"
        },
        "info": {
          "$ref": "#/definitions/access_controlAccessRecordInfo",
          "title": "摘要 | [EN] Summary"
        },
        "query": {
          "title": "查询串 | [EN] Query string",
          "type": "string"
        },
        "response": {
          "title": "响应体（JSON）| [EN] Response body, JSON",
          "type": "string"
        },
        "response_time": {
          "format": "date-time",
          "title": "发出响应的时间 | [EN] When the response was sent",
          "type": "string"
        },
        "user_agent": {
          "title": "User-Agent | [EN] User-Agent",
          "type": "string"
        }
      },
      "title": "请求日志详情：摘要加上重字段；headers/body/response 为 JSON 字符串\n[EN] A request-log detail: the summary plus the heavy fields; headers/body/response are JSON strings",
      "type": "object"
    },
    "access_controlAccessRecordGetResponse": {
      "properties": {
        "record": {
          "$ref": "#/definitions/access_controlAccessRecordDetail",
          "title": "记录 | [EN] Record"
        }
      },
      "title": "请求日志详情响应\n[EN] Get request log response",
      "type": "object"
    },
    "access_controlAccessRecordInfo": {
      "properties": {
        "account": {
          "title": "操作人账号 | [EN] Operator account",
          "type": "string"
        },
        "bytes": {
          "format": "int64",
          "title": "响应字节数 | [EN] Response bytes",
          "type": "string"
        },
        "client_ip": {
          "title": "来源 IP | [EN] Client IP",
          "type": "string"
        },
        "duration_ms": {
          "format": "int64",
          "title": "处理耗时（毫秒）| [EN] Handling duration in milliseconds",
          "type": "string"
        },
        "id": {
          "title": "记录 ID | [EN] Record ID",
          "type": "string"
        },
        "kind": {
          "title": "类型（如 http、grpc）| [EN] Kind, such as http or grpc",
          "type": "string"
        },
        "method": {
          "title": "方法（HTTP 动词或 gRPC 方法）| [EN] Method, an HTTP verb or gRPC method",
          "type": "string"
        },
        "path": {
          "title": "路径 | [EN] Path",
          "type": "string"
        },
        "request_id": {
          "title": "请求 ID | [EN] Request ID",
          "type": "string"
        },
        "request_time": {
          "format": "date-time",
          "title": "收到请求的时间 | [EN] When the request arrived",
          "type": "string"
        },
        "service": {
          "title": "产生记录的服务 | [EN] Producing service",
          "type": "string"
        },
        "slow": {
          "title": "是否慢请求 | [EN] Whether it was slow",
          "type": "boolean"
        },
        "source": {
          "title": "来源 | [EN] Source",
          "type": "string"
        },
        "status": {
          "title": "状态文案 | [EN] Status text",
          "type": "string"
        },
        "status_code": {
          "format": "int32",
          "title": "状态码 | [EN] Status code",
          "type": "integer"
        },
        "success": {
          "title": "是否成功 | [EN] Whether it succeeded",
          "type": "boolean"
        },
        "trace_id": {
          "title": "链路 ID | [EN] Trace ID",
          "type": "string"
        },
        "user_id": {
          "title": "操作人 ID | [EN] Operator ID",
          "type": "string"
        }
      },
      "title": "请求日志摘要：本服务每次 HTTP/gRPC 调用的一行，列表只取轻字段，重字段（headers/body/response）在详情里\n[EN] A request-log summary: one line per HTTP/gRPC call this service served; the list carries light fields only and\nthe heavy ones (headers/body/response) live in the detail",
      "type": "object"
    },
    "access_controlAccessRecordListResponse": {
      "properties": {
        "list": {
          "items": {
            "$ref": "#/definitions/access_controlAccessRecordInfo",
            "type": "object"
          },
          "title": "记录，新的在前 | [EN] Records, newest first",
          "type": "array"
        },
        "page_response": {
          "$ref": "#/definitions/commonPaging",
          "title": "分页 | [EN] Paging"
        }
      },
      "title": "请求日志列表响应\n[EN] List request logs response",
      "type": "object"
    },
    "access_controlAccountDirectoryItem": {
      "properties": {
        "account_id": {
          "title": "成员 ID | [EN] Account ID",
          "type": "string"
        },
        "add_method": {
          "$ref": "#/definitions/access_controlAddMethod",
          "title": "加入方式 | [EN] How the account joined"
        },
        "avatar_url": {
          "title": "头像 | [EN] Avatar URL",
          "type": "string"
        },
        "created_at": {
          "format": "date-time",
          "title": "加入或邀请时间 | [EN] Joined or invited at",
          "type": "string"
        },
        "disabled_reason": {
          "$ref": "#/definitions/access_controlAccountDisabledReason",
          "title": "停用原因，在用或邀请为未指定 | [EN] Why disabled, unspecified while active and for invitations"
        },
        "display_name": {
          "title": "显示名 | [EN] Display name",
          "type": "string"
        },
        "email": {
          "title": "邮箱 | [EN] Email",
          "type": "string"
        },
        "expire_at": {
          "format": "date-time",
          "title": "邀请过期时间 | [EN] Invitation expiry",
          "type": "string"
        },
        "invitation_id": {
          "title": "邀请 ID | [EN] Invitation ID",
          "type": "string"
        },
        "invitation_status": {
          "$ref": "#/definitions/access_controlInvitationStatus",
          "title": "邀请状态 | [EN] Invitation status"
        },
        "invite_url": {
          "title": "邀请链接 | [EN] Invitation link",
          "type": "string"
        },
        "item_type": {
          "$ref": "#/definitions/access_controlDirectoryItemType",
          "title": "成员或邀请 | [EN] Account or invitation"
        },
        "last_login_at": {
          "format": "date-time",
          "title": "最近登录 | [EN] Last login",
          "type": "string"
        },
        "login_account": {
          "title": "登录账号 | [EN] Login account",
          "type": "string"
        },
        "mfa_bound": {
          "title": "是否已绑定二次验证 | [EN] Whether MFA is bound",
          "type": "boolean"
        },
        "principal_id": {
          "title": "身份主体 ID（成员才有；登录日志按它筛）| [EN] Principal ID, accounts only; login logs filter by it",
          "type": "string"
        },
        "resend_available_at": {
          "format": "date-time",
          "title": "何时可以再发 | [EN] When it can be resent",
          "type": "string"
        },
        "restrictions": {
          "items": {
            "$ref": "#/definitions/access_controlAccountRestriction",
            "type": "object"
          },
          "title": "高级限制 | [EN] Restrictions",
          "type": "array"
        },
        "role": {
          "$ref": "#/definitions/access_controlRoleRef",
          "title": "角色 | [EN] Role"
        },
        "status": {
          "$ref": "#/definitions/enumsAccountStatus",
          "title": "成员状态 | [EN] Account status"
        },
        "team": {
          "$ref": "#/definitions/access_controlTeamRef",
          "title": "团队 | [EN] Team"
        }
      },
      "title": "名录里的一项：成员，或待接受的邀请（邀请没有成员 ID、登录账号、状态与最近登录）\n[EN] One directory item: an account, or a pending invitation, which has no account ID, login, status or last login",
      "type": "object"
    },
    "access_controlAccountDisabledReason": {
      "default": "ACCOUNT_DISABLED_REASON_UNSPECIFIED",
      "description": "- ACCOUNT_DISABLED_REASON_UNSPECIFIED: 未停用（或旧数据）| [EN] Not disabled, or older rows\n - ACCOUNT_DISABLED_REASON_MANUAL: 管理员停用 | [EN] Disabled by an admin\n - ACCOUNT_DISABLED_REASON_SEAT_LIMIT: 超出套餐已停用：套餐收紧后按保留规则停用 | [EN] Disabled beyond the plan by the retention rules when seats shrank",
      "enum": [
        "ACCOUNT_DISABLED_REASON_UNSPECIFIED",
        "ACCOUNT_DISABLED_REASON_MANUAL",
        "ACCOUNT_DISABLED_REASON_SEAT_LIMIT"
      ],
      "title": "成员身份停用的原因：超出套餐的显示「超出套餐已停用」，名额内可重新启用，原有权限不变\n[EN] Why a membership is disabled; seat-limit ones show as disabled beyond the plan and may be re-enabled within the\nlimit with their grants intact",
      "type": "string"
    },
    "access_controlAccountInfo": {
      "properties": {
        "created_at": {
          "format": "date-time",
          "title": "加入时间 | [EN] Joined at",
          "type": "string"
        },
        "disabled_reason": {
          "$ref": "#/definitions/access_controlAccountDisabledReason",
          "title": "停用原因，在用为未指定 | [EN] Why disabled, unspecified while active"
        },
        "id": {
          "title": "成员 ID | [EN] Account ID",
          "type": "string"
        },
        "is_org_admin": {
          "title": "是否组织管理员 | [EN] Whether an organization admin",
          "type": "boolean"
        },
        "org_id": {
          "title": "组织 ID | [EN] Organization ID",
          "type": "string"
        },
        "principal": {
          "$ref": "#/definitions/access_controlPrincipalInfo",
          "title": "身份主体 | [EN] Principal"
        },
        "role_id": {
          "title": "角色 ID | [EN] Role ID",
          "type": "string"
        },
        "role_name": {
          "items": {
            "$ref": "#/definitions/commonLocalizedText",
            "type": "object"
          },
          "title": "角色名称（按语言）| [EN] Role name per language",
          "type": "array"
        },
        "status": {
          "$ref": "#/definitions/enumsAccountStatus",
          "title": "状态 | [EN] Status"
        },
        "team_id": {
          "title": "团队 ID | [EN] Team ID",
          "type": "string"
        },
        "team_name": {
          "title": "团队名称 | [EN] Team name",
          "type": "string"
        },
        "updated_at": {
          "format": "date-time",
          "title": "更新时间 | [EN] Updated at",
          "type": "string"
        },
        "workspace_id": {
          "title": "工作区 ID | [EN] Workspace ID",
          "type": "string"
        },
        "workspace_name": {
          "title": "工作区名称 | [EN] Workspace name",
          "type": "string"
        }
      },
      "title": "成员：身份主体在一个工作区里的身份\n[EN] An account: a principal's identity in one workspace",
      "type": "object"
    },
    "access_controlAccountRestriction": {
      "description": "开关类（PERMISSION_SWITCH）、脱敏、查看行为：enabled 即开关，scope 不填。范围类（PERMISSION_SCOPE）：enabled 须为真，\nscope 须是这个角色能选的；要去掉就把这一项从整组里拿掉\n\n[EN] One restriction chosen for an account; writes replace the whole set. Switches, redaction and client behaviour\nuse enabled with no scope. Scopes require enabled and a scope the account's role may take; to drop one, leave it\nout of the set.",
      "properties": {
        "enabled": {
          "title": "是否开启 | [EN] Whether on",
          "type": "boolean"
        },
        "restriction_code": {
          "$ref": "#/definitions/enumsRestrictionCode",
          "title": "限制编码 | [EN] Restriction code"
        },
        "scope": {
          "$ref": "#/definitions/enumsDataScope",
          "title": "范围（范围类）| [EN] Scope, for permission scopes"
        }
      },
      "required": [
        "restriction_code"
      ],
      "title": "成员选的一项高级限制；写入时整组替换",
      "type": "object"
    },
    "access_controlAddMethod": {
      "default": "ADD_METHOD_UNSPECIFIED",
      "description": "- ADD_METHOD_UNSPECIFIED: 未指定（注册、迁移来的数据）| [EN] Unspecified: sign-up and migrated rows\n - ADD_METHOD_CUSTOM: 组织后台建的自定义账号，登录账号与密码归组织管 | [EN] Custom account created in the console, whose login and password the organization manages\n - ADD_METHOD_EMAIL_INVITE: 邮件邀请加入，账号由本人管 | [EN] Joined by email invitation, managed by its owner",
      "enum": [
        "ADD_METHOD_UNSPECIFIED",
        "ADD_METHOD_CUSTOM",
        "ADD_METHOD_EMAIL_INVITE"
      ],
      "title": "成员的加入方式\n[EN] How an account joined",
      "type": "string"
    },
    "access_controlAnnouncementInfo": {
      "description": "公告按语言版本维护：每个版本自带标题、摘要、正文与附件，第一项为默认语言，顺序即展示优先级\n\n[EN] A platform-wide system announcement, not scoped to an organization; only published ones go out on\nstream.events.announcements. It is maintained per language version, each carrying its title, summary, body and\nattachments; the first entry is the default language and the order is the display priority.",
      "properties": {
        "author": {
          "title": "发布方 | [EN] Author",
          "type": "string"
        },
        "created_at": {
          "format": "date-time",
          "title": "创建时间 | [EN] Created at",
          "type": "string"
        },
        "id": {
          "title": "公告 ID | [EN] Announcement ID",
          "type": "string"
        },
        "published_at": {
          "format": "date-time",
          "title": "发布时间，草稿为空 | [EN] Published at, empty for drafts",
          "type": "string"
        },
        "status": {
          "$ref": "#/definitions/access_controlAnnouncementStatus",
          "title": "状态 | [EN] Status"
        },
        "translations": {
          "items": {
            "$ref": "#/definitions/commonAnnouncementTranslation",
            "type": "object"
          },
          "title": "各语言版本，第一项为默认语言 | [EN] One entry per language, the first being the default",
          "type": "array"
        },
        "updated_at": {
          "format": "date-time",
          "title": "更新时间 | [EN] Updated at",
          "type": "string"
        },
        "version": {
          "format": "int32",
          "title": "行版本（乐观锁）| [EN] Row version for optimistic locking",
          "type": "integer"
        }
      },
      "title": "系统公告：平台级，不按组织隔离；只有已发布的公告会经 stream.events.announcements 发给其他服务",
      "type": "object"
    },
    "access_controlAnnouncementStatus": {
      "default": "ANNOUNCEMENT_STATUS_UNSPECIFIED",
      "description": "- ANNOUNCEMENT_STATUS_UNSPECIFIED: 未指定 | [EN] Unspecified\n - ANNOUNCEMENT_STATUS_DRAFT: 草稿，仅运维后台可见 | [EN] Draft, visible in the ops console only\n - ANNOUNCEMENT_STATUS_PUBLISHED: 已发布，对组织用户可见 | [EN] Published, visible to organization users",
      "enum": [
        "ANNOUNCEMENT_STATUS_UNSPECIFIED",
        "ANNOUNCEMENT_STATUS_DRAFT",
        "ANNOUNCEMENT_STATUS_PUBLISHED"
      ],
      "title": "公告状态 | [EN] Announcement status",
      "type": "string"
    },
    "access_controlAuditLogListResponse": {
      "properties": {
        "list": {
          "items": {
            "$ref": "#/definitions/access_controlAuditRecord",
            "type": "object"
          },
          "title": "记录，新的在前 | [EN] Records, newest first",
          "type": "array"
        },
        "page_response": {
          "$ref": "#/definitions/commonPaging",
          "title": "分页 | [EN] Paging"
        }
      },
      "title": "审计日志列表响应\n[EN] List audit logs response",
      "type": "object"
    },
    "access_controlAuditRecord": {
      "description": "[EN] An audit record. AC's own audit and every business service's share one store (ClickHouse). The envelope (who,\nwhere, when) is fixed, the action is a value name of the producer's audit action enum and the content is the JSON of\na message the producer defines. Everything goes through event outboxes to Kafka (AuditEvent) and AC's worker stores it.",
      "properties": {
        "account": {
          "maxLength": 128,
          "title": "操作人账号：AC 记登录账号，业务服务记成员 ID | [EN] Operator account: the login account from AC, the account ID from services",
          "type": "string"
        },
        "action": {
          "maxLength": 128,
          "title": "动作：产生方审计动作枚举的值名，如 AUDIT_ACTION_ROLE_CREATE、WALLET_AUDIT_ACTION_CREDIT | [EN] A value name of the producer's audit action enum",
          "type": "string"
        },
        "caller_service": {
          "maxLength": 64,
          "title": "服务间调用时发起调用的服务，人操作时为空 | [EN] The calling service on service-to-service calls, empty for people",
          "type": "string"
        },
        "content": {
          "maxLength": 65536,
          "title": "内容：content_type 这个消息的 JSON（字段名同 proto、枚举为名字），AC 自己的是明细 JSON | [EN] The JSON of content_type, or AC's own detail JSON",
          "type": "string"
        },
        "content_type": {
          "maxLength": 255,
          "title": "内容的消息全名，如 linmi.api.wallet.WalletCreditRequest；AC 自己的为空 | [EN] Full name of the content message, empty for AC's own",
          "type": "string"
        },
        "domain": {
          "$ref": "#/definitions/enumsDomainType",
          "title": "操作人所在的域，服务发起的为未指定 | [EN] The operator's domain, unspecified for services"
        },
        "id": {
          "maxLength": 64,
          "title": "记录 ID，产生方生成；重复写入按它去重 | [EN] Record ID from the producer; repeats are deduplicated on it",
          "type": "string"
        },
        "ip": {
          "maxLength": 64,
          "title": "来源 IP | [EN] Client IP",
          "type": "string"
        },
        "occurred_at": {
          "format": "date-time",
          "title": "发生时间 | [EN] When it happened",
          "type": "string"
        },
        "org_id": {
          "maxLength": 64,
          "title": "组织 ID | [EN] Organization ID",
          "type": "string"
        },
        "principal_id": {
          "maxLength": 64,
          "title": "操作人身份主体 ID | [EN] Operator principal ID",
          "type": "string"
        },
        "request_id": {
          "maxLength": 64,
          "title": "请求 ID | [EN] Request ID",
          "type": "string"
        },
        "resource_id": {
          "maxLength": 128,
          "title": "作用对象 ID | [EN] ID of the resource acted on",
          "type": "string"
        },
        "result": {
          "$ref": "#/definitions/access_controlAuditResult",
          "title": "结果 | [EN] Outcome"
        },
        "service": {
          "maxLength": 64,
          "title": "产生记录的服务（pkg/audit 按服务名填）| [EN] The producing service, filled by pkg/audit from the service name",
          "type": "string"
        },
        "snapshot": {
          "maxLength": 524288,
          "title": "作用对象变更前后的快照（JSON 对象）：type 是消息全名，before、after 是这个消息的 JSON，零值字段也写出；AC 自己记的里联系方式是 enc:v1: 开头的密文，运维凭权限经 OpsAuditLogReveal 查看原文；新建没有 before，删除没有 after；超过 512KB 时 trimmed 为 true，两边只留改动的字段，还超就都不留；没给快照时为空 | [EN] The resource before and after the change as a JSON object: type is the full message name, before and after its JSON with zero values emitted; contacts in AC's own records are enc:v1: ciphertext that ops reveal through OpsAuditLogReveal with its permission; create has no before, delete no after; over 512KB trimmed is true and only changed fields remain, or neither side when still over; empty without snapshots",
          "type": "string"
        },
        "summary": {
          "maxLength": 500,
          "title": "一句话摘要 | [EN] One-line summary",
          "type": "string"
        },
        "summary_params": {
          "maxLength": 1024,
          "title": "摘要参数（JSON 对象，字符串值）；键用 action 的枚举值名，前端按 dict.auditSummary.\u003caction\u003e 取词条并代入 | [EN] Summary parameters as a JSON object of strings; the key is the action enum value name, and clients render dict.auditSummary.\u003caction\u003e with these parameters",
          "type": "string"
        },
        "trace_id": {
          "maxLength": 64,
          "title": "链路 ID | [EN] Trace ID",
          "type": "string"
        },
        "user_agent": {
          "maxLength": 512,
          "title": "客户端 | [EN] User agent",
          "type": "string"
        },
        "workspace_id": {
          "maxLength": 64,
          "title": "操作落在的工作区（组织级操作为空）| [EN] Workspace the action lands in, empty for organization-level actions",
          "type": "string"
        }
      },
      "required": [
        "id",
        "occurred_at",
        "service",
        "action"
      ],
      "title": "审计记录：AC 自己与各业务服务的操作审计存在一处（ClickHouse）。信封（谁、在哪、何时）固定，动作是产生方审计动作\n枚举的值名，内容是产生方自定义消息的 JSON。都经事件发件箱投到 Kafka（AuditEvent），由 AC 的 worker 写入",
      "type": "object"
    },
    "access_controlAuditResult": {
      "default": "AUDIT_RESULT_UNSPECIFIED",
      "description": "- AUDIT_RESULT_UNSPECIFIED: 未指定 | [EN] Unspecified\n - AUDIT_RESULT_SUCCESS: 成功 | [EN] Succeeded\n - AUDIT_RESULT_FAILURE: 失败（被拒绝或出错，越权尝试正是表现为一串失败）| [EN] Failed, refused or errored; probing shows up as a run of failures",
      "enum": [
        "AUDIT_RESULT_UNSPECIFIED",
        "AUDIT_RESULT_SUCCESS",
        "AUDIT_RESULT_FAILURE"
      ],
      "title": "审计结果 | [EN] Audit outcome",
      "type": "string"
    },
    "access_controlChangePasswordRequest": {
      "properties": {
        "key_id": {
          "maxLength": 64,
          "title": "临时公钥 ID | [EN] Temporary key id",
          "type": "string"
        },
        "new_password": {
          "maxLength": 1024,
          "title": "新密码；同一把密钥加密 | [EN] New password, encrypted with the same key",
          "type": "string"
        },
        "old_password": {
          "maxLength": 1024,
          "title": "原密码；带 key_id 时为 RSA-OAEP 密文的 Base64 | [EN] Current password, the Base64 of RSA-OAEP ciphertext when key_id is set",
          "type": "string"
        }
      },
      "required": [
        "old_password",
        "new_password"
      ],
      "title": "修改密码请求：成功后其余会话全部撤销\n[EN] Change password request; every other session is revoked on success",
      "type": "object"
    },
    "access_controlCompletePasswordChangeRequest": {
      "properties": {
        "key_id": {
          "maxLength": 64,
          "title": "临时公钥 ID | [EN] Temporary key id",
          "type": "string"
        },
        "new_password": {
          "maxLength": 1024,
          "title": "新密码；带 key_id 时为 RSA-OAEP 密文的 Base64 | [EN] New password, the Base64 of RSA-OAEP ciphertext when key_id is set",
          "type": "string"
        },
        "password_change_ticket": {
          "maxLength": 4096,
          "title": "登录返回的专用票据 | [EN] Password-change ticket from login",
          "type": "string"
        }
      },
      "required": [
        "password_change_ticket",
        "new_password"
      ],
      "title": "强制改密请求：仅接受登录阶段签发的短时票据；成功后完成登录\n[EN] Forced password change: accepts only the short-lived ticket from login, then completes sign-in",
      "type": "object"
    },
    "access_controlContactBindRequest": {
      "properties": {
        "channel": {
          "$ref": "#/definitions/access_controlContactChannel",
          "title": "邮箱或手机号 | [EN] Email or phone"
        },
        "code": {
          "maxLength": 16,
          "title": "验证码 | [EN] Verification code",
          "type": "string"
        },
        "target": {
          "maxLength": 255,
          "title": "邮箱或以 + 开头的 E.164 手机号 | [EN] Email or an E.164 phone starting with +",
          "type": "string"
        }
      },
      "required": [
        "channel",
        "target",
        "code"
      ],
      "title": "绑定联系方式请求：只绑定当前为空的邮箱或手机号，更换已有联系方式走后续的换绑流程\n[EN] Binds a contact that is currently empty; changing an existing one goes through a later change flow",
      "type": "object"
    },
    "access_controlContactChannel": {
      "default": "CONTACT_CHANNEL_UNSPECIFIED",
      "description": "- CONTACT_CHANNEL_UNSPECIFIED: 未指定 | [EN] Unspecified\n - CONTACT_CHANNEL_EMAIL: 邮箱 | [EN] Email\n - CONTACT_CHANNEL_PHONE: 手机号 | [EN] Phone",
      "enum": [
        "CONTACT_CHANNEL_UNSPECIFIED",
        "CONTACT_CHANNEL_EMAIL",
        "CONTACT_CHANNEL_PHONE"
      ],
      "title": "联系方式类型 | [EN] Contact channel",
      "type": "string"
    },
    "access_controlContactCodeSendRequest": {
      "properties": {
        "channel": {
          "$ref": "#/definitions/access_controlContactChannel",
          "title": "邮箱或手机号 | [EN] Email or phone"
        },
        "target": {
          "maxLength": 255,
          "title": "邮箱或以 + 开头的 E.164 手机号 | [EN] Email or an E.164 phone starting with +",
          "type": "string"
        }
      },
      "required": [
        "channel",
        "target"
      ],
      "title": "给要绑定的联系方式发验证码请求 | [EN] Send a code to a contact to bind it",
      "type": "object"
    },
    "access_controlContactCodeSendResponse": {
      "properties": {
        "expire_at": {
          "format": "date-time",
          "title": "验证码过期时间 | [EN] Code expiry",
          "type": "string"
        },
        "resend_available_at": {
          "format": "date-time",
          "title": "何时可以再发 | [EN] When another code can be sent",
          "type": "string"
        }
      },
      "title": "给要绑定的联系方式发验证码响应 | [EN] Send a bind code response",
      "type": "object"
    },
    "access_controlDataScopeMode": {
      "default": "DATA_SCOPE_MODE_UNSPECIFIED",
      "description": "- DATA_SCOPE_MODE_UNSPECIFIED: 未指定，按纯开关处理 | [EN] Unspecified, treated as a plain switch\n - DATA_SCOPE_MODE_NONE: 纯开关，不带范围 | [EN] A plain switch without scope\n - DATA_SCOPE_MODE_STANDARD: 本人 / 团队 / 全部三档 | [EN] Self, team or all",
      "enum": [
        "DATA_SCOPE_MODE_UNSPECIFIED",
        "DATA_SCOPE_MODE_NONE",
        "DATA_SCOPE_MODE_STANDARD"
      ],
      "title": "权限点的数据范围模式\n[EN] Data scope mode of a permission point",
      "type": "string"
    },
    "access_controlDestroyTempKeyRequest": {
      "properties": {
        "key_id": {
          "maxLength": 64,
          "title": "密钥 ID | [EN] Key id",
          "type": "string"
        },
        "scenario": {
          "$ref": "#/definitions/enumsKeyScenario",
          "title": "必须与签发时一致 | [EN] Must match the scenario used at issue"
        }
      },
      "required": [
        "key_id",
        "scenario"
      ],
      "title": "销毁临时密钥请求：登录或改密成功后提前失效，不等 TTL\n[EN] Destroy a temporary key request: invalidate it after a successful login or password change without waiting for the TTL",
      "type": "object"
    },
    "access_controlDestroyTempKeyResponse": {
      "properties": {
        "destroyed": {
          "title": "是否真的删掉了；本就不存在时为 false | [EN] Whether a key was actually removed; false when it was already gone",
          "type": "boolean"
        }
      },
      "title": "销毁临时密钥响应\n[EN] Destroy a temporary key response",
      "type": "object"
    },
    "access_controlDirectoryItemType": {
      "default": "DIRECTORY_ITEM_TYPE_UNSPECIFIED",
      "description": "- DIRECTORY_ITEM_TYPE_UNSPECIFIED: 未指定 | [EN] Unspecified\n - DIRECTORY_ITEM_TYPE_ACCOUNT: 成员 | [EN] Account\n - DIRECTORY_ITEM_TYPE_INVITATION: 邀请 | [EN] Invitation",
      "enum": [
        "DIRECTORY_ITEM_TYPE_UNSPECIFIED",
        "DIRECTORY_ITEM_TYPE_ACCOUNT",
        "DIRECTORY_ITEM_TYPE_INVITATION"
      ],
      "title": "名录里一项是成员还是邀请\n[EN] Whether a directory item is an account or an invitation",
      "type": "string"
    },
    "access_controlFeedbackAssignee": {
      "properties": {
        "id": {
          "title": "运维账号 ID | [EN] Ops user ID",
          "type": "string"
        },
        "name": {
          "title": "显示名，没有时为登录账号 | [EN] Display name, else the login account",
          "type": "string"
        }
      },
      "title": "反馈的处理人（运维账号）| [EN] The handler, an ops user",
      "type": "object"
    },
    "access_controlFeedbackAttachment": {
      "properties": {
        "mime_type": {
          "maxLength": 128,
          "title": "MIME 类型：image/gif、image/png 或 image/jpeg | [EN] MIME type, image/gif, image/png or image/jpeg",
          "type": "string"
        },
        "name": {
          "maxLength": 255,
          "title": "文件名 | [EN] File name",
          "type": "string"
        },
        "object_key": {
          "maxLength": 512,
          "title": "预上传返回的对象 Key | [EN] Object key from the pre-upload",
          "type": "string"
        },
        "size": {
          "format": "int64",
          "maxLength": 20971520,
          "minLength": 1,
          "title": "字节数，不超过 20 MB | [EN] Size in bytes, at most 20 MB",
          "type": "string"
        },
        "url": {
          "title": "访问地址（响应字段，提交时不认）| [EN] Address to view it, response only and ignored on submit",
          "type": "string"
        }
      },
      "required": [
        "object_key",
        "name",
        "mime_type",
        "size"
      ],
      "title": "反馈截图：先用 FILE_BIZ_TYPE_FEEDBACK_SCREENSHOT 预上传拿到 object_key，再随反馈提交\n[EN] A feedback screenshot: pre-upload with FILE_BIZ_TYPE_FEEDBACK_SCREENSHOT for the object_key, then submit it\nwith the feedback",
      "type": "object"
    },
    "access_controlFeedbackInfo": {
      "properties": {
        "assignee": {
          "$ref": "#/definitions/access_controlFeedbackAssignee",
          "title": "处理人，待处理且没人认领时为空 | [EN] Handler, empty while pending and unclaimed"
        },
        "attachment_count": {
          "format": "int32",
          "title": "截图张数 | [EN] Number of screenshots",
          "type": "integer"
        },
        "attachments": {
          "items": {
            "$ref": "#/definitions/access_controlFeedbackAttachment",
            "type": "object"
          },
          "title": "截图 | [EN] Screenshots",
          "type": "array"
        },
        "close_reason": {
          "title": "关闭原因（仅已关闭）| [EN] Close reason, closed only",
          "type": "string"
        },
        "content": {
          "title": "正文 | [EN] Body",
          "type": "string"
        },
        "created_at": {
          "format": "date-time",
          "title": "提交时间 | [EN] Submitted at",
          "type": "string"
        },
        "handled_at": {
          "format": "date-time",
          "title": "解决或关闭时间，未完结为空 | [EN] Resolved or closed at, empty while open",
          "type": "string"
        },
        "id": {
          "title": "反馈 ID | [EN] Feedback ID",
          "type": "string"
        },
        "org_id": {
          "title": "组织 ID | [EN] Organization ID",
          "type": "string"
        },
        "org_name": {
          "title": "提交时的组织名称 | [EN] Organization name at submission",
          "type": "string"
        },
        "status": {
          "$ref": "#/definitions/access_controlFeedbackStatus",
          "title": "状态 | [EN] Status"
        },
        "submitter": {
          "$ref": "#/definitions/access_controlFeedbackSubmitter",
          "title": "提交人 | [EN] Submitter"
        },
        "type": {
          "$ref": "#/definitions/access_controlFeedbackType",
          "title": "类型 | [EN] Type"
        },
        "updated_at": {
          "format": "date-time",
          "title": "最近一次处理时间，没处理过等于提交时间 | [EN] Last handled at, the submission time when untouched",
          "type": "string"
        },
        "version": {
          "format": "int32",
          "title": "行版本：指派、备注、改状态时原样带回，每次处理加一 | [EN] Row version, sent back with assign, note and status changes and bumped by each",
          "type": "integer"
        },
        "workspace_id": {
          "title": "工作区 ID | [EN] Workspace ID",
          "type": "string"
        },
        "workspace_name": {
          "title": "提交时的工作区名称 | [EN] Workspace name at submission",
          "type": "string"
        }
      },
      "title": "一条意见反馈 | [EN] One piece of feedback",
      "type": "object"
    },
    "access_controlFeedbackLog": {
      "properties": {
        "action": {
          "$ref": "#/definitions/access_controlFeedbackLogAction",
          "title": "动作 | [EN] Action"
        },
        "content": {
          "title": "内容：备注正文、关闭原因或被指派的处理人名称，其余为空 | [EN] Content: the note, the close reason or the new handler's name, else empty",
          "type": "string"
        },
        "created_at": {
          "format": "date-time",
          "title": "时间 | [EN] Time",
          "type": "string"
        },
        "id": {
          "title": "记录 ID | [EN] Entry ID",
          "type": "string"
        },
        "operator_id": {
          "title": "操作人：提交时为客户的账号 ID，其余为运维账号 ID | [EN] Operator: the customer's account ID on submit, otherwise the ops user ID",
          "type": "string"
        },
        "operator_name": {
          "title": "操作人名称（记录时的快照）| [EN] Operator name, snapshotted when logged",
          "type": "string"
        }
      },
      "title": "一条处理记录 | [EN] One handling log entry",
      "type": "object"
    },
    "access_controlFeedbackLogAction": {
      "default": "FEEDBACK_LOG_ACTION_UNSPECIFIED",
      "description": "- FEEDBACK_LOG_ACTION_UNSPECIFIED: 未指定 | [EN] Unspecified\n - FEEDBACK_LOG_ACTION_SUBMIT: 客户提交 | [EN] Submitted by the customer\n - FEEDBACK_LOG_ACTION_ASSIGN: 指派处理人（内容为处理人名称）| [EN] Assigned, the content naming the handler\n - FEEDBACK_LOG_ACTION_PROCESS: 开始处理（待处理 → 处理中）| [EN] Started, pending to processing\n - FEEDBACK_LOG_ACTION_NOTE: 备注，仅平台可见（内容为备注正文）| [EN] A note visible to the platform only, the content being its text\n - FEEDBACK_LOG_ACTION_RESOLVE: 标记已解决 | [EN] Resolved\n - FEEDBACK_LOG_ACTION_CLOSE: 关闭（内容为关闭原因）| [EN] Closed, the content being the reason\n - FEEDBACK_LOG_ACTION_REOPEN: 重新打开（回到处理中）| [EN] Reopened into processing",
      "enum": [
        "FEEDBACK_LOG_ACTION_UNSPECIFIED",
        "FEEDBACK_LOG_ACTION_SUBMIT",
        "FEEDBACK_LOG_ACTION_ASSIGN",
        "FEEDBACK_LOG_ACTION_PROCESS",
        "FEEDBACK_LOG_ACTION_NOTE",
        "FEEDBACK_LOG_ACTION_RESOLVE",
        "FEEDBACK_LOG_ACTION_CLOSE",
        "FEEDBACK_LOG_ACTION_REOPEN"
      ],
      "title": "反馈处理记录的动作 | [EN] Action of a feedback handling log entry",
      "type": "string"
    },
    "access_controlFeedbackStatus": {
      "default": "FEEDBACK_STATUS_UNSPECIFIED",
      "description": "- FEEDBACK_STATUS_UNSPECIFIED: 未指定 | [EN] Unspecified\n - FEEDBACK_STATUS_PENDING: 待处理 | [EN] Pending\n - FEEDBACK_STATUS_PROCESSING: 处理中 | [EN] Processing\n - FEEDBACK_STATUS_RESOLVED: 已解决 | [EN] Resolved\n - FEEDBACK_STATUS_CLOSED: 已关闭（带关闭原因）| [EN] Closed, with a reason",
      "enum": [
        "FEEDBACK_STATUS_UNSPECIFIED",
        "FEEDBACK_STATUS_PENDING",
        "FEEDBACK_STATUS_PROCESSING",
        "FEEDBACK_STATUS_RESOLVED",
        "FEEDBACK_STATUS_CLOSED"
      ],
      "title": "反馈状态：待处理 → 处理中 → 已解决 / 已关闭；已解决、已关闭可重新打开回到处理中\n[EN] Feedback status: pending, then processing, then resolved or closed; resolved and closed ones reopen into processing",
      "type": "string"
    },
    "access_controlFeedbackSubmitter": {
      "properties": {
        "account_id": {
          "title": "成员 ID | [EN] Account (membership) ID",
          "type": "string"
        },
        "email": {
          "title": "登录邮箱（手机号注册的为空）| [EN] Sign-in email, empty for phone sign-ups",
          "type": "string"
        },
        "name": {
          "title": "提交时在该工作区的显示名 | [EN] Display name in the workspace at submission",
          "type": "string"
        },
        "phone_masked": {
          "title": "脱敏手机号，未绑定为空 | [EN] Masked phone, empty when unbound",
          "type": "string"
        },
        "principal_id": {
          "title": "账号 ID（组织域身份主体 ID）| [EN] Account ID, the org-domain principal ID",
          "type": "string"
        },
        "role": {
          "$ref": "#/definitions/access_controlRoleRef",
          "title": "提交时的工作区角色 | [EN] Workspace role at submission"
        }
      },
      "title": "反馈的提交人（提交时的快照，手机号读取时脱敏）| [EN] The submitter, snapshotted at submission with the phone masked on read",
      "type": "object"
    },
    "access_controlFeedbackSummary": {
      "properties": {
        "closed": {
          "format": "int64",
          "title": "已关闭 | [EN] Closed",
          "type": "string"
        },
        "closed_recent": {
          "format": "int64",
          "title": "近 7 天（滚动）关闭 | [EN] Closed in the last seven rolling days",
          "type": "string"
        },
        "mine": {
          "format": "int64",
          "title": "指派给调用方且未完结 | [EN] Assigned to the caller and still open",
          "type": "string"
        },
        "oldest_pending_at": {
          "format": "date-time",
          "title": "最早一条待处理的提交时间，没有为空 | [EN] Submission time of the oldest pending one, empty when none",
          "type": "string"
        },
        "pending": {
          "format": "int64",
          "title": "待处理 | [EN] Pending",
          "type": "string"
        },
        "processing": {
          "format": "int64",
          "title": "处理中 | [EN] Processing",
          "type": "string"
        },
        "resolved": {
          "format": "int64",
          "title": "已解决 | [EN] Resolved",
          "type": "string"
        },
        "resolved_recent": {
          "format": "int64",
          "title": "近 7 天（滚动）解决 | [EN] Resolved in the last seven rolling days",
          "type": "string"
        },
        "stale_processing": {
          "format": "int64",
          "title": "处理中且超过 3 天没有处理 | [EN] Processing and untouched for over three days",
          "type": "string"
        },
        "today": {
          "format": "int64",
          "title": "今日新增（按请求的时区切自然日）| [EN] Submitted today, days cut in the requested time zone",
          "type": "string"
        },
        "yesterday": {
          "format": "int64",
          "title": "昨日新增 | [EN] Submitted yesterday",
          "type": "string"
        }
      },
      "title": "反馈汇总：全平台口径，不受列表筛选影响 | [EN] Feedback summary, platform-wide and independent of the list filters",
      "type": "object"
    },
    "access_controlFeedbackType": {
      "default": "FEEDBACK_TYPE_UNSPECIFIED",
      "description": "- FEEDBACK_TYPE_UNSPECIFIED: 未指定 | [EN] Unspecified\n - FEEDBACK_TYPE_BUG: 问题反馈 | [EN] Bug report\n - FEEDBACK_TYPE_FEATURE: 功能建议 | [EN] Feature request\n - FEEDBACK_TYPE_IMPROVEMENT: 体验优化 | [EN] Experience improvement\n - FEEDBACK_TYPE_OTHER: 其他 | [EN] Other",
      "enum": [
        "FEEDBACK_TYPE_UNSPECIFIED",
        "FEEDBACK_TYPE_BUG",
        "FEEDBACK_TYPE_FEATURE",
        "FEEDBACK_TYPE_IMPROVEMENT",
        "FEEDBACK_TYPE_OTHER"
      ],
      "title": "反馈类型 | [EN] Feedback type",
      "type": "string"
    },
    "access_controlFileBizType": {
      "default": "FILE_BIZ_TYPE_UNSPECIFIED",
      "description": "对象 Key 的随机段是 128 位密码学随机数，猜不到；意见反馈截图与订单付款凭证是私有文件：Key 不给公开地址，\n读走带签名的临时地址（反馈详情里直接给，凭证经 FileDownloadUrlGet 取）\n\n[EN] Business type of a pre-uploaded file: it decides the size limit, the object key category, the direct-upload\nheaders and the authorization routes. The key's random segment is 128 cryptographically random bits and cannot be\nguessed. Feedback screenshots and order payment vouchers are private: they get no public address and are read\nthrough short-lived signed URLs, given in the feedback details and through FileDownloadUrlGet for vouchers\n\n - FILE_BIZ_TYPE_UNSPECIFIED: 未指定，拒绝上传 | [EN] Unspecified, rejected\n - FILE_BIZ_TYPE_ANNOUNCEMENT_ATTACHMENT: 公告附件 | [EN] Announcement attachment\n - FILE_BIZ_TYPE_USER_AVATAR: 用户头像 | [EN] User avatar\n - FILE_BIZ_TYPE_CHANNEL_ICON: 渠道图标 | [EN] Channel icon\n - FILE_BIZ_TYPE_FEEDBACK_SCREENSHOT: 意见反馈截图（组织域成员，gif / png / jpg，单张 ≤ 20 MB，Key 按组织与工作区分目录，私有）| [EN] Feedback screenshot from org members: gif, png or jpg, at most 20 MB each, keyed under the organization and workspace, private\n - FILE_BIZ_TYPE_ORDER_VOUCHER: 订单付款凭证（运维补单，png / jpg / pdf，单个 ≤ 5 MB，私有；判权取两条补单路由任一）| [EN] Order payment voucher for ops reconciliation: png, jpg or pdf, at most 5 MB each, private; either reconcile route authorizes it",
      "enum": [
        "FILE_BIZ_TYPE_UNSPECIFIED",
        "FILE_BIZ_TYPE_ANNOUNCEMENT_ATTACHMENT",
        "FILE_BIZ_TYPE_USER_AVATAR",
        "FILE_BIZ_TYPE_CHANNEL_ICON",
        "FILE_BIZ_TYPE_FEEDBACK_SCREENSHOT",
        "FILE_BIZ_TYPE_ORDER_VOUCHER"
      ],
      "title": "预上传文件的业务类型：决定大小上限、对象 Key 目录、直传响应头与判权路由",
      "type": "string"
    },
    "access_controlFileDownloadUrlGetResponse": {
      "properties": {
        "expires_in": {
          "format": "int64",
          "title": "地址有效期（秒）| [EN] URL lifetime in seconds",
          "type": "string"
        },
        "url": {
          "title": "带签名的临时下载地址 | [EN] Signed, short-lived download URL",
          "type": "string"
        }
      },
      "title": "取私有文件临时地址响应 | [EN] Signed download URL response",
      "type": "object"
    },
    "access_controlFilePreUploadRequest": {
      "properties": {
        "biz_type": {
          "$ref": "#/definitions/access_controlFileBizType",
          "title": "业务类型，决定上传约束与判权路由 | [EN] Business type, deciding upload constraints and authorization routes"
        },
        "mime_type": {
          "maxLength": 128,
          "title": "MIME 类型 | [EN] MIME type",
          "type": "string"
        },
        "name": {
          "maxLength": 255,
          "title": "文件名 | [EN] File name",
          "type": "string"
        },
        "size": {
          "format": "int64",
          "maxLength": 104857600,
          "minLength": 1,
          "title": "字节数 | [EN] Size in bytes",
          "type": "string"
        }
      },
      "required": [
        "name",
        "size",
        "biz_type"
      ],
      "title": "预上传请求：只登记本次上传的文件信息，拿到直传地址后由客户端直接传对象存储\n[EN] Pre-upload request: register this upload's file information and get a direct object-storage address",
      "type": "object"
    },
    "access_controlFilePreUploadResponse": {
      "properties": {
        "expires_in": {
          "format": "int64",
          "title": "地址有效期（秒）| [EN] Upload URL lifetime in seconds",
          "type": "string"
        },
        "method": {
          "title": "HTTP 方法 | [EN] HTTP method",
          "type": "string"
        },
        "object_key": {
          "title": "对象 Key | [EN] Object key",
          "type": "string"
        },
        "public_url": {
          "title": "上传后的公开地址，私有类型为空 | [EN] Public address after upload, empty for private types",
          "type": "string"
        },
        "required_headers": {
          "additionalProperties": {
            "type": "string"
          },
          "title": "必须携带的头 | [EN] Required headers",
          "type": "object"
        },
        "upload_url": {
          "title": "直传地址 | [EN] Direct upload URL",
          "type": "string"
        }
      },
      "title": "预上传响应：客户端按 method 与 required_headers 直传 upload_url；public_url 是上传后的公开访问地址，私有类型为空\n[EN] Pre-upload response: the client PUTs to upload_url with method and required_headers; public_url is the public\naddress after the upload, empty for private types",
      "type": "object"
    },
    "access_controlGetMeResponse": {
      "properties": {
        "context": {
          "$ref": "#/definitions/access_controlSessionContext",
          "title": "组织域的会话上下文 | [EN] Org-domain session context"
        },
        "mfa_verified": {
          "title": "本会话是否已过二次验证 | [EN] Whether this session passed MFA",
          "type": "boolean"
        },
        "permissions": {
          "items": {
            "$ref": "#/definitions/access_controlPermissionGrant",
            "type": "object"
          },
          "title": "生效的权限编码与数据范围 | [EN] Effective permission codes and data scopes",
          "type": "array"
        },
        "principal": {
          "$ref": "#/definitions/access_controlPrincipalInfo",
          "title": "身份主体 | [EN] Principal"
        },
        "restriction_codes": {
          "items": {
            "$ref": "#/definitions/enumsRestrictionCode"
          },
          "title": "组织域：当前成员身份生效的字段脱敏与客户端行为限制，与令牌 rc 声明一致 | [EN] Org domain: active field-redaction and client-behavior restrictions of the current membership, same as the token's rc claim",
          "type": "array"
        },
        "role_codes": {
          "items": {
            "type": "string"
          },
          "title": "角色编码 | [EN] Role codes",
          "type": "array"
        }
      },
      "title": "当前身份响应\n[EN] Current identity response",
      "type": "object"
    },
    "access_controlGetMenusResponse": {
      "properties": {
        "menus": {
          "items": {
            "$ref": "#/definitions/access_controlPermissionNode",
            "type": "object"
          },
          "title": "菜单树 | [EN] Menu tree",
          "type": "array"
        },
        "permission_codes": {
          "items": {
            "type": "string"
          },
          "title": "全部已授予的权限编码（按钮级判断用） | [EN] Every granted permission code, for action-level checks",
          "type": "array"
        }
      },
      "title": "当前账号的菜单树响应：菜单与按钮节点，已按授权过滤\n[EN] Menu tree of the current account response: menu and action nodes filtered by grants",
      "type": "object"
    },
    "access_controlGetPasswordPolicyResponse": {
      "properties": {
        "policy": {
          "$ref": "#/definitions/access_controlPasswordPolicy",
          "title": "密码策略 | [EN] Password policy"
        }
      },
      "title": "密码策略响应\n[EN] Password policy response",
      "type": "object"
    },
    "access_controlGetTemporaryPublicKeyRequest": {
      "properties": {
        "key_size": {
          "$ref": "#/definitions/enumsRsaKeySize",
          "title": "密钥长度，不传按 2048 | [EN] Key size, 2048 when omitted"
        },
        "scenario": {
          "$ref": "#/definitions/enumsKeyScenario",
          "title": "使用场景，决定这把密钥能解开哪类请求 | [EN] Usage scenario; it fixes which requests the key can decrypt"
        }
      },
      "required": [
        "scenario"
      ],
      "title": "签发临时公钥请求：前端用返回的公钥加密密码，私钥只在服务端留存 5 分钟\n[EN] Temporary public key request: the browser encrypts passwords with the returned key while the\nprivate half stays server-side for five minutes",
      "type": "object"
    },
    "access_controlGetTemporaryPublicKeyResponse": {
      "properties": {
        "expires_at": {
          "format": "int64",
          "title": "过期时间（Unix 秒）| [EN] Expiry as a Unix timestamp in seconds",
          "type": "string"
        },
        "key_id": {
          "title": "密钥 ID，提交密文时一并回传 | [EN] Key id, sent back with the ciphertext",
          "type": "string"
        },
        "public_key_pem": {
          "title": "PEM 格式公钥 | [EN] Public key in PEM format",
          "type": "string"
        },
        "scenario": {
          "$ref": "#/definitions/enumsKeyScenario",
          "title": "回显场景 | [EN] Echoed scenario"
        }
      },
      "title": "签发临时公钥响应：只下发公钥与密钥 ID，私钥永不出现在响应里\n[EN] Temporary public key response: only the public key and key id; the private key never leaves the server",
      "type": "object"
    },
    "access_controlGoogleBindRequest": {
      "properties": {
        "id_token": {
          "maxLength": 8192,
          "title": "Google ID 令牌 | [EN] Google ID token",
          "type": "string"
        }
      },
      "required": [
        "id_token"
      ],
      "title": "绑定 Google 请求\n[EN] Bind Google request",
      "type": "object"
    },
    "access_controlGoogleBindResponse": {
      "properties": {
        "binding": {
          "$ref": "#/definitions/access_controlThirdPartyBinding",
          "title": "绑定 | [EN] Binding"
        }
      },
      "title": "绑定 Google 响应\n[EN] Bind Google response",
      "type": "object"
    },
    "access_controlGoogleLoginOutcome": {
      "default": "GOOGLE_LOGIN_OUTCOME_UNSPECIFIED",
      "description": "- GOOGLE_LOGIN_OUTCOME_UNSPECIFIED: 未指定 | [EN] Unspecified\n - GOOGLE_LOGIN_OUTCOME_LOGGED_IN: 已有账号（已绑定或按邮箱自动关联）| [EN] An existing account, bound or linked by email\n - GOOGLE_LOGIN_OUTCOME_SIGNED_UP: 新注册：建了组织，本人是所有者 | [EN] Signed up: an organization was created with this person as owner\n - GOOGLE_LOGIN_OUTCOME_INVITATION_PENDING: 没有账号但有待接受的邀请：去接受邀请，不建组织 | [EN] No account but pending invitations: accept one instead, no organization is created",
      "enum": [
        "GOOGLE_LOGIN_OUTCOME_UNSPECIFIED",
        "GOOGLE_LOGIN_OUTCOME_LOGGED_IN",
        "GOOGLE_LOGIN_OUTCOME_SIGNED_UP",
        "GOOGLE_LOGIN_OUTCOME_INVITATION_PENDING"
      ],
      "title": "Google 登录的结果\n[EN] Outcome of a Google login",
      "type": "string"
    },
    "access_controlGoogleLoginRequest": {
      "properties": {
        "country": {
          "maxLength": 2,
          "minLength": 2,
          "title": "注册新组织时的国家/地区（ISO 3166-1 两位大写），已有账号时不认 | [EN] Country or region for a new organization, two upper-case ISO 3166-1 letters, ignored for existing accounts",
          "type": "string"
        },
        "device_id": {
          "maxLength": 128,
          "title": "设备标识 | [EN] Device ID",
          "type": "string"
        },
        "id_token": {
          "maxLength": 8192,
          "title": "Google Identity Services 给的 ID 令牌 | [EN] ID token from Google Identity Services",
          "type": "string"
        },
        "partner_code": {
          "maxLength": 64,
          "title": "注册新组织时的合伙人编号，只在合伙人推荐时填；注册人自填，合伙人名册上线前不核对 | [EN] Partner code for a new organization, only for partner referrals; self-reported and unverified until a partner registry exists",
          "type": "string"
        },
        "source": {
          "$ref": "#/definitions/enumsOrgSource",
          "title": "注册新组织时的来源，不传按自然注册；销售开通由运维设置，传它回 org_source_not_allowed | [EN] Sign-up source for a new organization, organic when omitted; sales-opened is set by ops and refused here"
        },
        "workspace_id": {
          "maxLength": 64,
          "title": "想进的工作区，不传取上次或默认 | [EN] Workspace to enter; the last or default one when omitted",
          "type": "string"
        }
      },
      "required": [
        "id_token"
      ],
      "title": "Google 登录请求\n[EN] Google login request",
      "type": "object"
    },
    "access_controlGoogleLoginResponse": {
      "properties": {
        "invitations": {
          "items": {
            "$ref": "#/definitions/access_controlPendingInvitationRef",
            "type": "object"
          },
          "title": "待接受的邀请（INVITATION_PENDING 时）| [EN] Pending invitations, for INVITATION_PENDING",
          "type": "array"
        },
        "login": {
          "$ref": "#/definitions/access_controlLoginResponse",
          "title": "登录结果（已有账号与新注册时；二次验证阶段同密码登录）| [EN] Login result for existing accounts and sign-ups, with MFA stages as in password login"
        },
        "outcome": {
          "$ref": "#/definitions/access_controlGoogleLoginOutcome",
          "title": "结果 | [EN] Outcome"
        }
      },
      "title": "Google 登录响应\n[EN] Google login response",
      "type": "object"
    },
    "access_controlGoogleUnbindRequest": {
      "title": "解绑 Google 请求\n[EN] Unbind Google request",
      "type": "object"
    },
    "access_controlHttpMethod": {
      "default": "HTTP_METHOD_UNSPECIFIED",
      "description": "- HTTP_METHOD_UNSPECIFIED: 未指定（菜单与按钮节点）| [EN] Unspecified, for menus and actions\n - HTTP_METHOD_GET: GET\n - HTTP_METHOD_POST: POST\n - HTTP_METHOD_PUT: PUT\n - HTTP_METHOD_PATCH: PATCH\n - HTTP_METHOD_DELETE: DELETE\n - HTTP_METHOD_HEAD: HEAD\n - HTTP_METHOD_OPTIONS: OPTIONS\n - HTTP_METHOD_ANY: 全部方法 | [EN] Every method",
      "enum": [
        "HTTP_METHOD_UNSPECIFIED",
        "HTTP_METHOD_GET",
        "HTTP_METHOD_POST",
        "HTTP_METHOD_PUT",
        "HTTP_METHOD_PATCH",
        "HTTP_METHOD_DELETE",
        "HTTP_METHOD_HEAD",
        "HTTP_METHOD_OPTIONS",
        "HTTP_METHOD_ANY"
      ],
      "title": "接口节点的 HTTP 方法；编成 Casbin 策略时 ANY 写作 * | [EN] An API node's HTTP method; ANY compiles to * in Casbin policies",
      "type": "string"
    },
    "access_controlInvitationEmailCodeSendResponse": {
      "properties": {
        "expire_at": {
          "format": "date-time",
          "title": "验证码过期时间 | [EN] Code expiry",
          "type": "string"
        },
        "resend_available_at": {
          "format": "date-time",
          "title": "何时可以再发 | [EN] When another code can be sent",
          "type": "string"
        }
      },
      "title": "给被邀请的邮箱发验证码响应\n[EN] Send an email code response",
      "type": "object"
    },
    "access_controlInvitationGetResponse": {
      "properties": {
        "email": {
          "title": "被邀请的邮箱 | [EN] Invited email",
          "type": "string"
        },
        "expire_at": {
          "format": "date-time",
          "title": "过期时间 | [EN] Expiry",
          "type": "string"
        },
        "identity_status": {
          "$ref": "#/definitions/access_controlInvitationIdentityStatus",
          "title": "当前登录的人是否就是被邀请人 | [EN] Whether the signed-in person is the invitee"
        },
        "org_name": {
          "title": "组织名称 | [EN] Organization name",
          "type": "string"
        },
        "registration_required": {
          "title": "这个邮箱还没有账号，要先设密码 | [EN] No account has this email yet, so a password must be set",
          "type": "boolean"
        },
        "role_code": {
          "title": "角色编码 | [EN] Role code",
          "type": "string"
        },
        "role_name": {
          "items": {
            "$ref": "#/definitions/commonLocalizedText",
            "type": "object"
          },
          "title": "角色名称（按语言）| [EN] Role name per language",
          "type": "array"
        },
        "status": {
          "$ref": "#/definitions/access_controlInvitationStatus",
          "title": "邀请状态 | [EN] Invitation status"
        },
        "workspace_name": {
          "title": "工作区名称 | [EN] Workspace name",
          "type": "string"
        }
      },
      "title": "查看邀请响应\n[EN] View invitation response",
      "type": "object"
    },
    "access_controlInvitationIdentityStatus": {
      "default": "INVITATION_IDENTITY_STATUS_UNSPECIFIED",
      "description": "- INVITATION_IDENTITY_STATUS_UNSPECIFIED: 未指定 | [EN] Unspecified\n - INVITATION_IDENTITY_STATUS_UNAUTHENTICATED: 没有登录 | [EN] Not signed in\n - INVITATION_IDENTITY_STATUS_MATCHED: 登录的人就是被邀请的邮箱，可以直接加入 | [EN] Signed in as the invited email, may join directly\n - INVITATION_IDENTITY_STATUS_MISMATCHED: 登录的是别人 | [EN] Signed in as someone else",
      "enum": [
        "INVITATION_IDENTITY_STATUS_UNSPECIFIED",
        "INVITATION_IDENTITY_STATUS_UNAUTHENTICATED",
        "INVITATION_IDENTITY_STATUS_MATCHED",
        "INVITATION_IDENTITY_STATUS_MISMATCHED"
      ],
      "title": "当前登录的人与邀请的邮箱是否对得上\n[EN] Whether the signed-in person matches the invited email",
      "type": "string"
    },
    "access_controlInvitationResult": {
      "properties": {
        "email": {
          "title": "邮箱（规范化后）| [EN] Email, normalized",
          "type": "string"
        },
        "invitation_id": {
          "title": "邀请 ID | [EN] Invitation ID",
          "type": "string"
        },
        "invite_url": {
          "title": "邀请链接 | [EN] Invitation link",
          "type": "string"
        },
        "result": {
          "$ref": "#/definitions/access_controlInvitationSendResult",
          "title": "结果 | [EN] Outcome"
        }
      },
      "title": "一个邮箱的邀请结果；建了邀请的（发出或发送失败）带邀请 ID 与链接\n[EN] One email's outcome; created invitations, sent or failed, carry their ID and link",
      "type": "object"
    },
    "access_controlInvitationSendResult": {
      "default": "INVITATION_SEND_RESULT_UNSPECIFIED",
      "description": "- INVITATION_SEND_RESULT_UNSPECIFIED: 未指定 | [EN] Unspecified\n - INVITATION_SEND_RESULT_SENT: 已发出 | [EN] Sent\n - INVITATION_SEND_RESULT_SEND_FAILED: 邀请已建好但邮件没发出去：把链接复制给对方 | [EN] Created but the email failed; share the link instead\n - INVITATION_SEND_RESULT_ALREADY_JOINED: 已是这个工作区的成员 | [EN] Already joined the workspace\n - INVITATION_SEND_RESULT_ALREADY_INVITED: 已有待接受的邀请 | [EN] A pending invitation already exists\n - INVITATION_SEND_RESULT_INVALID_EMAIL: 邮箱格式不对 | [EN] Not a valid email",
      "enum": [
        "INVITATION_SEND_RESULT_UNSPECIFIED",
        "INVITATION_SEND_RESULT_SENT",
        "INVITATION_SEND_RESULT_SEND_FAILED",
        "INVITATION_SEND_RESULT_ALREADY_JOINED",
        "INVITATION_SEND_RESULT_ALREADY_INVITED",
        "INVITATION_SEND_RESULT_INVALID_EMAIL"
      ],
      "title": "一个邮箱的邀请结果\n[EN] The outcome of inviting one email",
      "type": "string"
    },
    "access_controlInvitationStatus": {
      "default": "INVITATION_STATUS_UNSPECIFIED",
      "description": "- INVITATION_STATUS_UNSPECIFIED: 未指定 | [EN] Unspecified\n - INVITATION_STATUS_PENDING: 待接受 | [EN] Pending\n - INVITATION_STATUS_EXPIRED: 已过期 | [EN] Expired\n - INVITATION_STATUS_ACCEPTED: 已接受 | [EN] Accepted\n - INVITATION_STATUS_REVOKED: 已撤销 | [EN] Revoked",
      "enum": [
        "INVITATION_STATUS_UNSPECIFIED",
        "INVITATION_STATUS_PENDING",
        "INVITATION_STATUS_EXPIRED",
        "INVITATION_STATUS_ACCEPTED",
        "INVITATION_STATUS_REVOKED"
      ],
      "title": "邀请状态\n[EN] Invitation status",
      "type": "string"
    },
    "access_controlJwk": {
      "properties": {
        "alg": {
          "title": "算法，固定 RS256 | [EN] Algorithm, always RS256",
          "type": "string"
        },
        "e": {
          "title": "指数（base64url）| [EN] Exponent, base64url",
          "type": "string"
        },
        "kid": {
          "title": "密钥 ID | [EN] Key ID",
          "type": "string"
        },
        "kty": {
          "title": "密钥类型，固定 RSA | [EN] Key type, always RSA",
          "type": "string"
        },
        "n": {
          "title": "模数（base64url）| [EN] Modulus, base64url",
          "type": "string"
        },
        "use": {
          "title": "用途，固定 sig | [EN] Use, always sig",
          "type": "string"
        }
      },
      "title": "JWKS 公钥（RFC 7517）\n[EN] A JSON Web Key (RFC 7517)",
      "type": "object"
    },
    "access_controlJwksResponse": {
      "properties": {
        "keys": {
          "items": {
            "$ref": "#/definitions/access_controlJwk",
            "type": "object"
          },
          "title": "公钥列表 | [EN] Public keys",
          "type": "array"
        }
      },
      "title": "JWKS 响应：签发中与只验签的公钥都在里面，轮换期间新旧 kid 的令牌都能验过\n[EN] JWKS response: both the signing key and verify-only keys are listed, so tokens under either kid validate during rotation",
      "type": "object"
    },
    "access_controlListContextsResponse": {
      "properties": {
        "contexts": {
          "items": {
            "$ref": "#/definitions/access_controlSessionContext",
            "type": "object"
          },
          "title": "可用的成员身份 | [EN] Usable memberships",
          "type": "array"
        }
      },
      "title": "可切换的工作区响应\n[EN] List switchable workspaces response",
      "type": "object"
    },
    "access_controlLoginLogInfo": {
      "properties": {
        "account": {
          "title": "提交的登录账号 | [EN] Submitted login account",
          "type": "string"
        },
        "created_at": {
          "format": "date-time",
          "title": "时间 | [EN] Time",
          "type": "string"
        },
        "domain": {
          "$ref": "#/definitions/enumsDomainType",
          "title": "身份域 | [EN] Domain"
        },
        "failure_code": {
          "title": "失败错误码 | [EN] Failure error code",
          "type": "string"
        },
        "id": {
          "title": "日志 ID | [EN] Log ID",
          "type": "string"
        },
        "ip": {
          "title": "来源 IP | [EN] Source IP",
          "type": "string"
        },
        "org_id": {
          "title": "登录进入的组织（组织域）| [EN] Organization entered, org domain",
          "type": "string"
        },
        "principal_id": {
          "title": "身份主体 ID，账号不存在时为空 | [EN] Principal ID, empty for unknown accounts",
          "type": "string"
        },
        "result": {
          "$ref": "#/definitions/access_controlLoginResult",
          "title": "结果 | [EN] Result"
        },
        "session_id": {
          "title": "会话 ID | [EN] Session ID",
          "type": "string"
        },
        "user_agent": {
          "title": "User-Agent | [EN] User-Agent",
          "type": "string"
        },
        "workspace_id": {
          "title": "登录进入的工作区（组织域）| [EN] Workspace entered, org domain",
          "type": "string"
        }
      },
      "title": "登录日志\n[EN] A login log entry",
      "type": "object"
    },
    "access_controlLoginLogListResponse": {
      "properties": {
        "list": {
          "items": {
            "$ref": "#/definitions/access_controlLoginLogInfo",
            "type": "object"
          },
          "title": "日志 | [EN] Entries",
          "type": "array"
        },
        "next_cursor": {
          "title": "下一页游标，空表示没有更多 | [EN] Cursor for the next page, empty when there is no more",
          "type": "string"
        },
        "page_response": {
          "$ref": "#/definitions/commonPaging",
          "title": "分页（游标模式 total 为 0）| [EN] Paging, total is zero in cursor mode"
        }
      },
      "title": "登录日志列表响应\n[EN] List login logs response",
      "type": "object"
    },
    "access_controlLoginRequest": {
      "properties": {
        "account": {
          "maxLength": 128,
          "title": "登录账号、邮箱或手机号 | [EN] Login account, email or phone",
          "type": "string"
        },
        "device_id": {
          "maxLength": 128,
          "title": "设备标识 | [EN] Device ID",
          "type": "string"
        },
        "domain": {
          "$ref": "#/definitions/enumsDomainType",
          "title": "登录到哪个身份域，只决定核对哪一组表 | [EN] The domain to sign in to, picking the tables to check"
        },
        "key_id": {
          "maxLength": 64,
          "title": "临时公钥 ID；不传按明文，仅兼容旧客户端 | [EN] Temporary key id; without it the password is plain text, for older clients only",
          "type": "string"
        },
        "password": {
          "maxLength": 1024,
          "title": "密码；带 key_id 时为 RSA-OAEP 密文的 Base64 | [EN] Password, the Base64 of RSA-OAEP ciphertext when key_id is set",
          "type": "string"
        },
        "workspace_id": {
          "maxLength": 64,
          "title": "组织域：希望进入的工作区，空则取上次所在或默认工作区 | [EN] Org domain: the workspace to enter; empty picks the last used or default one",
          "type": "string"
        }
      },
      "required": [
        "account",
        "password",
        "domain"
      ],
      "title": "登录请求\n[EN] Login request",
      "type": "object"
    },
    "access_controlLoginResponse": {
      "properties": {
        "backup_codes": {
          "items": {
            "type": "string"
          },
          "title": "恢复码：只在绑定第一台设备完成登录时出现一次 | [EN] Backup codes, shown once when binding the first device completes the login",
          "type": "array"
        },
        "context": {
          "$ref": "#/definitions/access_controlSessionContext",
          "title": "组织域的会话上下文 | [EN] Org-domain session context"
        },
        "mfa_ticket": {
          "title": "MFA 票据，有效期 5 分钟 | [EN] MFA ticket, valid for five minutes",
          "type": "string"
        },
        "password_change_ticket": {
          "title": "强制改密票据；只可用于 CompletePasswordChange | [EN] Forced-password-change ticket, accepted only by CompletePasswordChange",
          "type": "string"
        },
        "principal": {
          "$ref": "#/definitions/access_controlPrincipalInfo",
          "title": "身份主体 | [EN] Principal"
        },
        "stage": {
          "$ref": "#/definitions/access_controlLoginStage",
          "title": "登录阶段 | [EN] Login stage"
        },
        "tokens": {
          "$ref": "#/definitions/access_controlTokenPair",
          "title": "令牌对 | [EN] Token pair"
        }
      },
      "title": "登录响应：COMPLETED 带令牌；MFA 阶段带 MFA 票据；PASSWORD_CHANGE_REQUIRED 带专用改密票据且不带令牌\n[EN] Login response: tokens when COMPLETED, an MFA ticket during MFA, or a password-change ticket without access tokens",
      "type": "object"
    },
    "access_controlLoginResult": {
      "default": "LOGIN_RESULT_UNSPECIFIED",
      "description": "- LOGIN_RESULT_UNSPECIFIED: 未指定 | [EN] Unspecified\n - LOGIN_RESULT_SUCCESS: 成功 | [EN] Success\n - LOGIN_RESULT_FAILURE: 失败 | [EN] Failure",
      "enum": [
        "LOGIN_RESULT_UNSPECIFIED",
        "LOGIN_RESULT_SUCCESS",
        "LOGIN_RESULT_FAILURE"
      ],
      "title": "登录结果\n[EN] Login result",
      "type": "string"
    },
    "access_controlLoginStage": {
      "default": "LOGIN_STAGE_UNSPECIFIED",
      "description": "- LOGIN_STAGE_UNSPECIFIED: 未指定 | [EN] Unspecified\n - LOGIN_STAGE_COMPLETED: 已完成，响应带令牌 | [EN] Completed, the response carries tokens\n - LOGIN_STAGE_MFA_REQUIRED: 需要二次验证，响应带 MFA 票据 | [EN] MFA required, the response carries an MFA ticket\n - LOGIN_STAGE_MFA_SETUP_REQUIRED: 安全策略要求二次验证但还没绑定设备：先用票据绑定，绑定即完成登录 | [EN] Policy requires MFA but no device is bound: bind one with the ticket, which completes the login\n - LOGIN_STAGE_PASSWORD_CHANGE_REQUIRED: 密码过期或被要求修改：响应带专用改密票据，不带访问令牌 | [EN] Password expired or forced to change: carries a password-change ticket, no access token",
      "enum": [
        "LOGIN_STAGE_UNSPECIFIED",
        "LOGIN_STAGE_COMPLETED",
        "LOGIN_STAGE_MFA_REQUIRED",
        "LOGIN_STAGE_MFA_SETUP_REQUIRED",
        "LOGIN_STAGE_PASSWORD_CHANGE_REQUIRED"
      ],
      "title": "登录阶段\n[EN] Login stage",
      "type": "string"
    },
    "access_controlLogoutAllRequest": {
      "title": "退出全部会话请求\n[EN] Logout everywhere request",
      "type": "object"
    },
    "access_controlLogoutAllResponse": {
      "properties": {
        "revoked": {
          "format": "int32",
          "title": "撤销的会话数 | [EN] Sessions revoked",
          "type": "integer"
        }
      },
      "title": "退出全部会话响应\n[EN] Logout everywhere response",
      "type": "object"
    },
    "access_controlLogoutRequest": {
      "title": "退出当前会话请求\n[EN] Logout request",
      "type": "object"
    },
    "access_controlMembershipCounts": {
      "properties": {
        "all": {
          "format": "int64",
          "title": "全部 | [EN] All",
          "type": "string"
        },
        "joined": {
          "format": "int64",
          "title": "已加入 | [EN] Joined",
          "type": "string"
        },
        "pending": {
          "format": "int64",
          "title": "待接受 | [EN] Pending",
          "type": "string"
        }
      },
      "title": "各加入状态的数量（按当前的其余筛选条件）\n[EN] Counts per membership state, under the other current filters",
      "type": "object"
    },
    "access_controlMembershipStatus": {
      "default": "MEMBERSHIP_STATUS_UNSPECIFIED",
      "description": "- MEMBERSHIP_STATUS_UNSPECIFIED: 全部（成员与待接受的邀请）| [EN] All: accounts and pending invitations\n - MEMBERSHIP_STATUS_JOINED: 已加入的成员 | [EN] Joined accounts\n - MEMBERSHIP_STATUS_PENDING: 待接受的邀请 | [EN] Pending invitations",
      "enum": [
        "MEMBERSHIP_STATUS_UNSPECIFIED",
        "MEMBERSHIP_STATUS_JOINED",
        "MEMBERSHIP_STATUS_PENDING"
      ],
      "title": "名录按加入状态筛选\n[EN] Directory filter by membership state",
      "type": "string"
    },
    "access_controlMenuLayout": {
      "default": "MENU_LAYOUT_UNSPECIFIED",
      "description": "- MENU_LAYOUT_UNSPECIFIED: 未指定（按钮与接口节点）| [EN] Unspecified, for actions and API nodes\n - MENU_LAYOUT_DEFAULT: 默认：带侧栏与顶栏 | [EN] Default, with sidebar and header\n - MENU_LAYOUT_BLANK: 空白：整页 | [EN] Blank, full page",
      "enum": [
        "MENU_LAYOUT_UNSPECIFIED",
        "MENU_LAYOUT_DEFAULT",
        "MENU_LAYOUT_BLANK"
      ],
      "title": "菜单布局：前端按它选外框 | [EN] Menu layout, which frame the frontend renders a page in",
      "type": "string"
    },
    "access_controlMfaBackupCodesRegenerateRequest": {
      "properties": {
        "code": {
          "maxLength": 32,
          "title": "动态口令或恢复码 | [EN] TOTP or backup code",
          "type": "string"
        },
        "code_type": {
          "$ref": "#/definitions/access_controlMfaCodeType",
          "title": "口令类型，不传为动态口令 | [EN] Code kind; TOTP when omitted"
        }
      },
      "required": [
        "code"
      ],
      "title": "重新生成恢复码请求：旧的全部作废\n[EN] Regenerate backup codes request; the old ones stop working",
      "type": "object"
    },
    "access_controlMfaBackupCodesRegenerateResponse": {
      "properties": {
        "backup_codes": {
          "items": {
            "type": "string"
          },
          "title": "新的恢复码，只出现这一次 | [EN] New backup codes, shown only this once",
          "type": "array"
        }
      },
      "title": "重新生成恢复码响应\n[EN] Regenerate backup codes response",
      "type": "object"
    },
    "access_controlMfaCodeType": {
      "default": "MFA_CODE_TYPE_UNSPECIFIED",
      "description": "- MFA_CODE_TYPE_UNSPECIFIED: 未指定，按动态口令处理 | [EN] Unspecified, treated as TOTP\n - MFA_CODE_TYPE_TOTP: 动态口令 | [EN] TOTP code\n - MFA_CODE_TYPE_BACKUP: 恢复码（每个只能用一次）| [EN] Backup code, single use",
      "enum": [
        "MFA_CODE_TYPE_UNSPECIFIED",
        "MFA_CODE_TYPE_TOTP",
        "MFA_CODE_TYPE_BACKUP"
      ],
      "title": "二次验证口令类型\n[EN] Kind of MFA code",
      "type": "string"
    },
    "access_controlMfaDeviceInfo": {
      "properties": {
        "confirmed_at": {
          "format": "date-time",
          "title": "绑定时间 | [EN] Confirmed at",
          "type": "string"
        },
        "created_at": {
          "format": "date-time",
          "title": "创建时间 | [EN] Created at",
          "type": "string"
        },
        "id": {
          "title": "设备 ID | [EN] Device ID",
          "type": "string"
        },
        "ip": {
          "title": "绑定时的 IP | [EN] IP at enrollment",
          "type": "string"
        },
        "last_used_at": {
          "format": "date-time",
          "title": "最近使用时间 | [EN] Last used at",
          "type": "string"
        },
        "name": {
          "title": "设备名称 | [EN] Device name",
          "type": "string"
        },
        "status": {
          "$ref": "#/definitions/access_controlMfaDeviceStatus",
          "title": "状态 | [EN] Status"
        },
        "user_agent": {
          "title": "绑定时的 User-Agent | [EN] User-Agent at enrollment",
          "type": "string"
        }
      },
      "title": "二次验证设备：密钥只在绑定那一刻给一次，之后任何接口都不再返回\n[EN] An MFA device; its secret is shown once at enrollment and never returned again",
      "type": "object"
    },
    "access_controlMfaDeviceListResponse": {
      "properties": {
        "backup_codes_remaining": {
          "format": "int32",
          "title": "剩余可用的恢复码 | [EN] Unused backup codes left",
          "type": "integer"
        },
        "devices": {
          "items": {
            "$ref": "#/definitions/access_controlMfaDeviceInfo",
            "type": "object"
          },
          "title": "已启用的设备 | [EN] Active devices",
          "type": "array"
        },
        "mfa_required": {
          "title": "安全策略是否强制二次验证 | [EN] Whether policy mandates MFA",
          "type": "boolean"
        }
      },
      "title": "二次验证设备列表响应\n[EN] List MFA devices response",
      "type": "object"
    },
    "access_controlMfaDeviceStatus": {
      "default": "MFA_DEVICE_STATUS_UNSPECIFIED",
      "description": "- MFA_DEVICE_STATUS_UNSPECIFIED: 未指定 | [EN] Unspecified\n - MFA_DEVICE_STATUS_PENDING: 待确认：已生成密钥，还没用口令确认过 | [EN] Pending: a secret was issued but never confirmed with a code\n - MFA_DEVICE_STATUS_ACTIVE: 已启用 | [EN] Active",
      "enum": [
        "MFA_DEVICE_STATUS_UNSPECIFIED",
        "MFA_DEVICE_STATUS_PENDING",
        "MFA_DEVICE_STATUS_ACTIVE"
      ],
      "title": "二次验证设备状态\n[EN] MFA device status",
      "type": "string"
    },
    "access_controlMfaDisableRequest": {
      "properties": {
        "code": {
          "maxLength": 32,
          "title": "动态口令或恢复码 | [EN] TOTP or backup code",
          "type": "string"
        },
        "code_type": {
          "$ref": "#/definitions/access_controlMfaCodeType",
          "title": "口令类型，不传为动态口令 | [EN] Code kind; TOTP when omitted"
        }
      },
      "required": [
        "code"
      ],
      "title": "关闭二次验证请求：移除全部设备与恢复码\n[EN] Disable MFA request: removes every device and backup code",
      "type": "object"
    },
    "access_controlMfaEnrollBeginRequest": {
      "properties": {
        "device_name": {
          "maxLength": 64,
          "title": "设备名称 | [EN] Device name",
          "type": "string"
        }
      },
      "title": "绑定二次验证设备请求：第一步，拿密钥\n[EN] Enroll an MFA device, step one: get the secret",
      "type": "object"
    },
    "access_controlMfaEnrollBeginResponse": {
      "properties": {
        "enrollment": {
          "$ref": "#/definitions/access_controlMfaEnrollment",
          "title": "绑定材料 | [EN] Enrollment material"
        }
      },
      "title": "绑定二次验证设备响应\n[EN] Enroll an MFA device response",
      "type": "object"
    },
    "access_controlMfaEnrollConfirmResponse": {
      "properties": {
        "backup_codes": {
          "items": {
            "type": "string"
          },
          "title": "恢复码，只出现这一次 | [EN] Backup codes, shown only this once",
          "type": "array"
        },
        "device": {
          "$ref": "#/definitions/access_controlMfaDeviceInfo",
          "title": "设备 | [EN] Device"
        }
      },
      "title": "确认绑定响应：绑定第一台设备时带恢复码\n[EN] Confirm enrollment response; carries backup codes when this is the first device",
      "type": "object"
    },
    "access_controlMfaEnrollment": {
      "properties": {
        "device_id": {
          "title": "待确认的设备 ID | [EN] ID of the pending device",
          "type": "string"
        },
        "expires_at": {
          "format": "date-time",
          "title": "待确认的截止时间 | [EN] Confirmation deadline",
          "type": "string"
        },
        "otpauth_uri": {
          "title": "otpauth:// URI，前端据此出二维码 | [EN] otpauth:// URI for the QR code",
          "type": "string"
        },
        "secret": {
          "title": "TOTP 密钥（Base32），只在此处出现一次 | [EN] TOTP secret, Base32, shown only here",
          "type": "string"
        }
      },
      "title": "二次验证绑定材料：扫码或手输密钥后用一个口令确认\n[EN] Enrollment material: scan the URI or type the secret, then confirm with one code",
      "type": "object"
    },
    "access_controlMfaSetupBeginRequest": {
      "properties": {
        "device_name": {
          "maxLength": 64,
          "title": "设备名称 | [EN] Device name",
          "type": "string"
        },
        "mfa_ticket": {
          "maxLength": 4096,
          "title": "登录返回的 MFA 票据 | [EN] MFA ticket from login",
          "type": "string"
        }
      },
      "required": [
        "mfa_ticket"
      ],
      "title": "登录中绑定二次验证设备：第一步，拿密钥\n[EN] Bind an MFA device during login, step one: get the secret",
      "type": "object"
    },
    "access_controlMfaSetupBeginResponse": {
      "properties": {
        "enrollment": {
          "$ref": "#/definitions/access_controlMfaEnrollment",
          "title": "绑定材料 | [EN] Enrollment material"
        }
      },
      "title": "登录中绑定二次验证设备：第一步响应\n[EN] Bind an MFA device during login, step one response",
      "type": "object"
    },
    "access_controlMfaSetupConfirmRequest": {
      "properties": {
        "code": {
          "maxLength": 6,
          "minLength": 6,
          "pattern": "^[0-9]+$",
          "title": "动态口令 | [EN] TOTP code",
          "type": "string"
        },
        "device_id": {
          "maxLength": 64,
          "title": "第一步返回的设备 ID | [EN] Device ID from step one",
          "type": "string"
        },
        "mfa_ticket": {
          "maxLength": 4096,
          "title": "登录返回的 MFA 票据 | [EN] MFA ticket from login",
          "type": "string"
        }
      },
      "required": [
        "mfa_ticket",
        "device_id",
        "code"
      ],
      "title": "登录中绑定二次验证设备：第二步，用口令确认；随后可能完成登录或进入强制改密阶段\n[EN] Bind an MFA device during login, step two: confirm with a code; login may complete or continue to forced password change",
      "type": "object"
    },
    "access_controlMfaVerifyRequest": {
      "properties": {
        "code": {
          "maxLength": 32,
          "title": "动态口令或恢复码 | [EN] TOTP or backup code",
          "type": "string"
        },
        "code_type": {
          "$ref": "#/definitions/access_controlMfaCodeType",
          "title": "口令类型，不传为动态口令 | [EN] Code kind; TOTP when omitted"
        }
      },
      "required": [
        "code"
      ],
      "title": "二次验证请求（敏感操作前的再确认），通过后本会话标记为已验证\n[EN] Step-up MFA request before sensitive operations; marks the session verified",
      "type": "object"
    },
    "access_controlMfaVerifyResponse": {
      "properties": {
        "backup_codes_remaining": {
          "format": "int32",
          "title": "剩余可用的恢复码 | [EN] Unused backup codes left",
          "type": "integer"
        }
      },
      "title": "二次验证响应\n[EN] Step-up MFA response",
      "type": "object"
    },
    "access_controlObserverLoginRequest": {
      "properties": {
        "ticket": {
          "maxLength": 128,
          "title": "观察者登录票据 | [EN] Observer login ticket",
          "type": "string"
        }
      },
      "required": [
        "ticket"
      ],
      "title": "观察者登录请求：兑换运维签发的 60 秒一次性票据\n[EN] Observer login request: redeem a 60-second one-time ticket issued by ops",
      "type": "object"
    },
    "access_controlOpsAccountGetResponse": {
      "properties": {
        "account": {
          "$ref": "#/definitions/access_controlOpsAccountSummary",
          "title": "账号 | [EN] Account"
        },
        "login_records": {
          "items": {
            "$ref": "#/definitions/access_controlOpsAccountLoginRecord",
            "type": "object"
          },
          "title": "最近 10 次成功登录，新的在前；日志库不可用时为空 | [EN] The last ten successful sign-ins, newest first; empty when the log store is unavailable",
          "type": "array"
        },
        "memberships": {
          "items": {
            "$ref": "#/definitions/access_controlOpsAccountMembership",
            "type": "object"
          },
          "title": "成员身份：已加入的在前（同组织相邻，所有者的组织在前，组织内默认工作区在前），收到的邀请在最后 | [EN] Memberships: joined ones first, grouped by organization with owned ones and default workspaces leading; received invitations last",
          "type": "array"
        }
      },
      "title": "账号详情响应 | [EN] Get account response",
      "type": "object"
    },
    "access_controlOpsAccountLoginRecord": {
      "properties": {
        "at": {
          "format": "date-time",
          "title": "时间 | [EN] Time",
          "type": "string"
        },
        "device": {
          "title": "设备：由 User-Agent 识别出的「系统 · 浏览器」，识别不出为空 | [EN] Device as \"OS · browser\" recognized from the User-Agent, empty when unrecognized",
          "type": "string"
        },
        "ip_masked": {
          "title": "来源 IP，只留前两段 | [EN] Source IP with only the first two segments kept",
          "type": "string"
        },
        "org_id": {
          "title": "登录进入的组织 | [EN] Organization entered",
          "type": "string"
        },
        "workspace_id": {
          "title": "登录进入的工作区 | [EN] Workspace entered",
          "type": "string"
        }
      },
      "title": "账号的一次成功登录 | [EN] One successful sign-in of the account",
      "type": "object"
    },
    "access_controlOpsAccountMembership": {
      "properties": {
        "account_id": {
          "title": "成员 ID（邀请为空）| [EN] Account ID, empty for invitations",
          "type": "string"
        },
        "account_status": {
          "$ref": "#/definitions/enumsAccountStatus",
          "title": "成员状态（邀请为未指定）| [EN] Account status, unspecified for invitations"
        },
        "expire_at": {
          "format": "date-time",
          "title": "邀请过期时间（成员身份为空）| [EN] Invitation expiry, empty for memberships",
          "type": "string"
        },
        "invitation_id": {
          "title": "邀请 ID（成员身份为空）| [EN] Invitation ID, empty for memberships",
          "type": "string"
        },
        "invitation_status": {
          "$ref": "#/definitions/access_controlInvitationStatus",
          "title": "邀请状态：待接受或已过期 | [EN] Invitation status, pending or expired"
        },
        "is_default_workspace": {
          "title": "是否组织的默认工作区 | [EN] The organization's default workspace",
          "type": "boolean"
        },
        "is_org_owner": {
          "title": "是否该组织的所有者（同组织各行一致）| [EN] Whether the account owns the organization, the same on every row of it",
          "type": "boolean"
        },
        "item_type": {
          "$ref": "#/definitions/access_controlDirectoryItemType",
          "title": "成员身份或邀请 | [EN] Membership or invitation"
        },
        "joined_at": {
          "format": "date-time",
          "title": "加入时间，邀请为发出时间 | [EN] Joined at, or sent at for invitations",
          "type": "string"
        },
        "last_active_at": {
          "format": "date-time",
          "title": "在该工作区最近一次会话活动（登录或刷新令牌，只看未过期的会话）；邀请为空 | [EN] Last session activity in this workspace (sign-in or refresh, unexpired sessions only); empty for invitations",
          "type": "string"
        },
        "online_status": {
          "$ref": "#/definitions/enumsOnlineStatus",
          "title": "在线状态（邀请为未指定）| [EN] Online status, unspecified for invitations"
        },
        "org_id": {
          "title": "组织 ID | [EN] Organization ID",
          "type": "string"
        },
        "org_name": {
          "title": "组织名称 | [EN] Organization name",
          "type": "string"
        },
        "org_status": {
          "$ref": "#/definitions/enumsCommonStatus",
          "title": "组织状态（平台停用为已停用）| [EN] Organization status, disabled when the platform disabled it"
        },
        "role": {
          "$ref": "#/definitions/access_controlRoleRef",
          "title": "工作区角色（等级 100 所有者 / 80 管理员 / 50 团队主管 / 10 客服）| [EN] Workspace role, rank 100 owner, 80 admin, 50 supervisor, 10 agent"
        },
        "team": {
          "$ref": "#/definitions/access_controlTeamRef",
          "title": "所在团队，邀请为邀请指定的团队 | [EN] Team, or the invited team for invitations"
        },
        "workspace_id": {
          "title": "工作区 ID | [EN] Workspace ID",
          "type": "string"
        },
        "workspace_name": {
          "title": "工作区名称 | [EN] Workspace name",
          "type": "string"
        }
      },
      "title": "账号的一条成员身份或收到的邀请 | [EN] One membership of the account, or an invitation it received",
      "type": "object"
    },
    "access_controlOpsAccountSearchResponse": {
      "properties": {
        "list": {
          "items": {
            "$ref": "#/definitions/access_controlOpsAccountSummary",
            "type": "object"
          },
          "title": "账号 | [EN] Accounts",
          "type": "array"
        },
        "page_response": {
          "$ref": "#/definitions/commonPaging",
          "title": "分页 | [EN] Paging"
        }
      },
      "title": "账号搜索响应：完全匹配邮箱、登录账号、账号 ID、手机号或昵称的排在前，其余按最近登录倒序\n[EN] Account search response: exact matches on email, login, account ID, phone or nickname first, the rest by last\nsign-in descending",
      "type": "object"
    },
    "access_controlOpsAccountSummary": {
      "properties": {
        "email": {
          "title": "登录邮箱 | [EN] Sign-in email",
          "type": "string"
        },
        "id": {
          "title": "账号 ID（组织域身份主体 ID）| [EN] Account ID, the org-domain principal ID",
          "type": "string"
        },
        "last_login_at": {
          "format": "date-time",
          "title": "最近登录时间，从未登录为空 | [EN] Last sign-in, empty when never",
          "type": "string"
        },
        "last_login_ip_masked": {
          "title": "最近登录 IP，只留前两段 | [EN] Last sign-in IP with only the first two segments kept",
          "type": "string"
        },
        "login_account": {
          "title": "登录账号（组织建的自定义账号才有）| [EN] Login account, custom accounts only",
          "type": "string"
        },
        "mfa_enabled": {
          "title": "是否开启二次验证 | [EN] Whether MFA is on",
          "type": "boolean"
        },
        "nickname": {
          "title": "昵称：最早加入的成员身份里的显示名，没有时取登录标识 | [EN] Nickname from the earliest membership, else the sign-in identifier",
          "type": "string"
        },
        "org_count": {
          "format": "int32",
          "title": "加入的组织数（已加入的成员身份，含已停用）| [EN] Organizations joined, counting joined memberships including disabled ones",
          "type": "integer"
        },
        "org_names": {
          "items": {
            "type": "string"
          },
          "title": "组织名称：作为所有者的在前，其余按加入先后 | [EN] Organization names, owned ones first, then by join order",
          "type": "array"
        },
        "owned_org_count": {
          "format": "int32",
          "title": "作为所有者的组织数，0 表示不是组织所有者 | [EN] Organizations owned; 0 means not an owner",
          "type": "integer"
        },
        "pending_invitation_count": {
          "format": "int32",
          "title": "发给登录邮箱、未过期的待接受邀请数 | [EN] Unexpired pending invitations to the sign-in email",
          "type": "integer"
        },
        "phone_masked": {
          "title": "脱敏手机号（区号与前几位 + **** + 末 4 位），未绑定为空 | [EN] Masked phone: country code and leading digits, stars, last four; empty when unbound",
          "type": "string"
        },
        "registered_at": {
          "format": "date-time",
          "title": "注册时间 | [EN] Registered at",
          "type": "string"
        },
        "status": {
          "$ref": "#/definitions/enumsPrincipalStatus",
          "title": "账号状态（停用后不能登录任何组织）| [EN] Account status; a disabled one signs in nowhere"
        },
        "workspace_count": {
          "format": "int32",
          "title": "加入的工作区数 | [EN] Workspaces joined",
          "type": "integer"
        }
      },
      "title": "账号搜索结果的一行 | [EN] One account search result",
      "type": "object"
    },
    "access_controlOpsAnnouncementBatchDeleteRequest": {
      "properties": {
        "ids": {
          "items": {
            "maxLength": 64,
            "type": "string"
          },
          "maxItems": 100,
          "minItems": 1,
          "title": "公告 ID，最多 100 个 | [EN] Announcement IDs, at most 100",
          "type": "array"
        }
      },
      "required": [
        "ids"
      ],
      "title": "批量删除公告请求\n[EN] Batch delete announcements request",
      "type": "object"
    },
    "access_controlOpsAnnouncementCreateRequest": {
      "properties": {
        "author": {
          "maxLength": 128,
          "title": "发布方 | [EN] Author",
          "type": "string"
        },
        "status": {
          "$ref": "#/definitions/access_controlAnnouncementStatus",
          "title": "状态，不传为草稿 | [EN] Status; omitted means draft"
        },
        "translations": {
          "items": {
            "$ref": "#/definitions/commonAnnouncementTranslation",
            "type": "object"
          },
          "maxItems": 32,
          "minItems": 1,
          "title": "各语言版本，第一项为默认语言 | [EN] One entry per language, the first being the default",
          "type": "array"
        }
      },
      "required": [
        "translations",
        "author"
      ],
      "title": "新建公告请求；状态不传时为草稿，摘要不传时从正文截取\n[EN] Create announcement request; omitted status means draft and an omitted summary is derived from the body",
      "type": "object"
    },
    "access_controlOpsAnnouncementCreateResponse": {
      "properties": {
        "announcement": {
          "$ref": "#/definitions/access_controlAnnouncementInfo",
          "title": "公告 | [EN] Announcement"
        }
      },
      "title": "新建公告响应\n[EN] Create announcement response",
      "type": "object"
    },
    "access_controlOpsAnnouncementGetResponse": {
      "properties": {
        "announcement": {
          "$ref": "#/definitions/access_controlAnnouncementInfo",
          "title": "公告 | [EN] Announcement"
        }
      },
      "title": "公告详情响应\n[EN] Get announcement response",
      "type": "object"
    },
    "access_controlOpsAnnouncementListResponse": {
      "properties": {
        "list": {
          "items": {
            "$ref": "#/definitions/access_controlAnnouncementInfo",
            "type": "object"
          },
          "title": "公告，新的在前 | [EN] Announcements, newest first",
          "type": "array"
        },
        "page_response": {
          "$ref": "#/definitions/commonPaging",
          "title": "分页 | [EN] Paging"
        }
      },
      "title": "公告列表响应\n[EN] List announcements response",
      "type": "object"
    },
    "access_controlOpsAnnouncementUpdateResponse": {
      "properties": {
        "announcement": {
          "$ref": "#/definitions/access_controlAnnouncementInfo",
          "title": "公告 | [EN] Announcement"
        }
      },
      "title": "更新公告响应\n[EN] Update announcement response",
      "type": "object"
    },
    "access_controlOpsAuditLogGetResponse": {
      "properties": {
        "log": {
          "$ref": "#/definitions/access_controlAuditRecord",
          "title": "记录 | [EN] Record"
        }
      },
      "title": "审计日志详情响应\n[EN] Get audit log response",
      "type": "object"
    },
    "access_controlOpsAuditLogRevealResponse": {
      "properties": {
        "snapshot": {
          "title": "联系方式解开后的快照，形状同 AuditRecord.snapshot；记录没有快照时为空 | [EN] The snapshot with contacts decrypted, shaped like AuditRecord.snapshot; empty when the record has none",
          "type": "string"
        }
      },
      "title": "查看审计快照原文响应\n[EN] Reveal audit snapshot response",
      "type": "object"
    },
    "access_controlOpsFeedbackGetResponse": {
      "properties": {
        "feedback": {
          "$ref": "#/definitions/access_controlFeedbackInfo",
          "title": "反馈 | [EN] Feedback"
        },
        "logs": {
          "items": {
            "$ref": "#/definitions/access_controlFeedbackLog",
            "type": "object"
          },
          "title": "处理记录，新的在前 | [EN] Handling log, newest first",
          "type": "array"
        }
      },
      "title": "反馈详情：处理接口也回这个，带上最新的处理记录 | [EN] Feedback details, also returned by the handling endpoints with the latest log",
      "type": "object"
    },
    "access_controlOpsFeedbackListResponse": {
      "properties": {
        "list": {
          "items": {
            "$ref": "#/definitions/access_controlFeedbackInfo",
            "type": "object"
          },
          "title": "反馈（不带截图地址，只给张数）| [EN] Feedback, with screenshot counts but no screenshot list",
          "type": "array"
        },
        "page_response": {
          "$ref": "#/definitions/commonPaging",
          "title": "分页 | [EN] Paging"
        },
        "summary": {
          "$ref": "#/definitions/access_controlFeedbackSummary",
          "title": "全平台汇总 | [EN] Platform-wide summary"
        }
      },
      "title": "反馈列表响应：按提交时间倒序 | [EN] List feedback response, newest submission first",
      "type": "object"
    },
    "access_controlOpsOrgGetResponse": {
      "properties": {
        "org": {
          "$ref": "#/definitions/access_controlOrgInfo",
          "title": "组织 | [EN] Organization"
        },
        "teams": {
          "items": {
            "$ref": "#/definitions/access_controlTeamInfo",
            "type": "object"
          },
          "title": "团队 | [EN] Teams",
          "type": "array"
        },
        "workspaces": {
          "items": {
            "$ref": "#/definitions/access_controlWorkspaceInfo",
            "type": "object"
          },
          "title": "工作区 | [EN] Workspaces",
          "type": "array"
        }
      },
      "title": "组织详情响应\n[EN] Get organization response",
      "type": "object"
    },
    "access_controlOpsOrgListResponse": {
      "properties": {
        "list": {
          "items": {
            "$ref": "#/definitions/access_controlOrgInfo",
            "type": "object"
          },
          "title": "组织 | [EN] Organizations",
          "type": "array"
        },
        "page_response": {
          "$ref": "#/definitions/commonPaging",
          "title": "分页 | [EN] Paging"
        }
      },
      "title": "组织列表响应\n[EN] List organizations response",
      "type": "object"
    },
    "access_controlOpsOrgObserverTicketCreateResponse": {
      "properties": {
        "expires_at": {
          "format": "date-time",
          "title": "票据过期时间 | [EN] Ticket expiry",
          "type": "string"
        },
        "ticket": {
          "title": "60 秒内可使用一次的登录票据 | [EN] A one-time ticket valid for 60 seconds",
          "type": "string"
        },
        "workspace_id": {
          "title": "实际选中的工作区 | [EN] The workspace actually chosen",
          "type": "string"
        }
      },
      "title": "创建组织观察者登录票据响应\n[EN] Observer ticket response",
      "type": "object"
    },
    "access_controlOpsOrgProfileStatsResponse": {
      "description": "取值按组织上存的原样分组：字典里已停用、或已不在字典里的取值照样列出；只列至少一个组织选了的取值，按取值排序\n\n[EN] Organization profile statistics response, one count grouped by (industry, company size) split in two. Values\nare grouped as stored on the organizations, so values disabled in or missing from the dictionary are listed too;\nonly values chosen by at least one organization appear, sorted by value",
      "properties": {
        "industries": {
          "items": {
            "$ref": "#/definitions/access_controlOrgProfileValueCount",
            "type": "object"
          },
          "title": "各行业取值的组织数 | [EN] Organizations per industry value",
          "type": "array"
        },
        "industry_unset": {
          "format": "int64",
          "title": "没填行业的组织数 | [EN] Organizations without an industry",
          "type": "string"
        },
        "org_total": {
          "format": "int64",
          "title": "组织总数 | [EN] Total organizations",
          "type": "string"
        },
        "scale_unset": {
          "format": "int64",
          "title": "没填公司规模的组织数 | [EN] Organizations without a company size",
          "type": "string"
        },
        "scales": {
          "items": {
            "$ref": "#/definitions/access_controlOrgProfileValueCount",
            "type": "object"
          },
          "title": "各公司规模取值的组织数 | [EN] Organizations per company-size value",
          "type": "array"
        }
      },
      "title": "组织资料选用统计响应：一条按（行业, 公司规模）分组的计数拆成两份",
      "type": "object"
    },
    "access_controlOpsPermissionCreateRequest": {
      "properties": {
        "active_menu": {
          "maxLength": 255,
          "title": "高亮的菜单路径 | [EN] Menu path to highlight",
          "type": "string"
        },
        "code": {
          "maxLength": 128,
          "title": "权限编码，域内唯一 | [EN] Permission code, unique within the domain",
          "type": "string"
        },
        "component": {
          "maxLength": 255,
          "title": "菜单组件 | [EN] Menu component",
          "type": "string"
        },
        "data_scope_mode": {
          "$ref": "#/definitions/access_controlDataScopeMode",
          "title": "数据范围模式（组织域按钮） | [EN] Data scope mode, org actions"
        },
        "description": {
          "maxLength": 255,
          "title": "描述 | [EN] Description",
          "type": "string"
        },
        "domain": {
          "$ref": "#/definitions/enumsDomainType",
          "title": "目标身份域 | [EN] Target domain"
        },
        "hidden": {
          "title": "是否在菜单里隐藏 | [EN] Hidden from the menu",
          "type": "boolean"
        },
        "i18n_key": {
          "maxLength": 128,
          "title": "名称的多语言键 | [EN] i18n key of the name",
          "type": "string"
        },
        "icon": {
          "maxLength": 128,
          "title": "图标 | [EN] Icon",
          "type": "string"
        },
        "keep_alive": {
          "title": "是否缓存页面 | [EN] Keep the page alive",
          "type": "boolean"
        },
        "layout": {
          "$ref": "#/definitions/access_controlMenuLayout",
          "title": "布局（菜单） | [EN] Layout, for menus"
        },
        "method": {
          "$ref": "#/definitions/access_controlHttpMethod",
          "title": "接口方法（接口节点） | [EN] API method, for API nodes"
        },
        "name": {
          "maxLength": 128,
          "title": "名称 | [EN] Name",
          "type": "string"
        },
        "parent_id": {
          "maxLength": 64,
          "title": "父节点 ID，根节点为空 | [EN] Parent ID, empty for roots",
          "type": "string"
        },
        "path": {
          "maxLength": 255,
          "title": "菜单路由 | [EN] Menu route path",
          "type": "string"
        },
        "redirect": {
          "maxLength": 255,
          "title": "重定向 | [EN] Redirect",
          "type": "string"
        },
        "sort": {
          "format": "int32",
          "title": "排序 | [EN] Sort order",
          "type": "integer"
        },
        "type": {
          "$ref": "#/definitions/access_controlPermissionType",
          "title": "节点类型 | [EN] Node type"
        },
        "url_pattern": {
          "maxLength": 255,
          "title": "接口路径（接口节点，keyMatch2） | [EN] API path pattern, keyMatch2",
          "type": "string"
        }
      },
      "required": [
        "domain",
        "type",
        "code",
        "name"
      ],
      "title": "创建权限节点请求\n[EN] Create permission node request",
      "type": "object"
    },
    "access_controlOpsPermissionCreateResponse": {
      "properties": {
        "permission": {
          "$ref": "#/definitions/access_controlPermissionInfo",
          "title": "权限节点 | [EN] Permission node"
        }
      },
      "title": "创建权限节点响应\n[EN] Create permission node response",
      "type": "object"
    },
    "access_controlOpsPermissionUpdateResponse": {
      "properties": {
        "permission": {
          "$ref": "#/definitions/access_controlPermissionInfo",
          "title": "权限节点 | [EN] Permission node"
        }
      },
      "title": "更新权限节点响应\n[EN] Update permission node response",
      "type": "object"
    },
    "access_controlOpsRoleCreateRequest": {
      "properties": {
        "code": {
          "maxLength": 64,
          "minLength": 2,
          "title": "角色编码，小写字母、数字与下划线 | [EN] Role code: lower-case letters, digits and underscores",
          "type": "string"
        },
        "description": {
          "items": {
            "$ref": "#/definitions/commonLocalizedText",
            "type": "object"
          },
          "maxItems": 64,
          "title": "描述（按语言）| [EN] Description per language",
          "type": "array"
        },
        "name": {
          "items": {
            "$ref": "#/definitions/commonLocalizedText",
            "type": "object"
          },
          "maxItems": 64,
          "minItems": 1,
          "title": "名称（按语言）| [EN] Name per language",
          "type": "array"
        },
        "permission_ids": {
          "items": {
            "maxLength": 64,
            "type": "string"
          },
          "maxItems": 2000,
          "title": "授予的权限节点 | [EN] Granted permission nodes",
          "type": "array"
        },
        "sort": {
          "format": "int32",
          "title": "排序 | [EN] Sort order",
          "type": "integer"
        }
      },
      "required": [
        "code",
        "name"
      ],
      "title": "创建运维角色请求\n[EN] Create ops role request",
      "type": "object"
    },
    "access_controlOpsRoleCreateResponse": {
      "properties": {
        "role": {
          "$ref": "#/definitions/access_controlRoleInfo",
          "title": "角色 | [EN] Role"
        }
      },
      "title": "创建运维角色响应\n[EN] Create ops role response",
      "type": "object"
    },
    "access_controlOpsRoleGetResponse": {
      "properties": {
        "role": {
          "$ref": "#/definitions/access_controlRoleInfo",
          "title": "角色（含授权） | [EN] Role with grants"
        }
      },
      "title": "运维角色详情响应\n[EN] Get ops role response",
      "type": "object"
    },
    "access_controlOpsRoleListResponse": {
      "properties": {
        "list": {
          "items": {
            "$ref": "#/definitions/access_controlRoleInfo",
            "type": "object"
          },
          "title": "角色列表 | [EN] Roles",
          "type": "array"
        }
      },
      "title": "运维角色列表响应\n[EN] List ops roles response",
      "type": "object"
    },
    "access_controlOpsRoleTemplateCreateRequest": {
      "properties": {
        "apply_all_orgs": {
          "title": "适用全部组织 | [EN] Applies to every organization",
          "type": "boolean"
        },
        "assignable": {
          "title": "能否分配给成员 | [EN] Whether accounts can be given it",
          "type": "boolean"
        },
        "code": {
          "maxLength": 64,
          "minLength": 2,
          "title": "角色编码，小写字母开头，小写字母、数字与下划线 | [EN] Role code: a lower-case letter, then lower-case letters, digits and underscores",
          "type": "string"
        },
        "description": {
          "items": {
            "$ref": "#/definitions/commonLocalizedText",
            "type": "object"
          },
          "maxItems": 64,
          "title": "描述（按语言）| [EN] Description per language",
          "type": "array"
        },
        "grants": {
          "items": {
            "$ref": "#/definitions/access_controlRoleGrant",
            "type": "object"
          },
          "maxItems": 500,
          "title": "授权 | [EN] Grants",
          "type": "array"
        },
        "name": {
          "items": {
            "$ref": "#/definitions/commonLocalizedText",
            "type": "object"
          },
          "maxItems": 64,
          "minItems": 1,
          "title": "名称（按语言）| [EN] Name per language",
          "type": "array"
        },
        "org_ids": {
          "items": {
            "maxLength": 64,
            "type": "string"
          },
          "maxItems": 1000,
          "title": "适用的组织（apply_all_orgs 为假时）| [EN] Organizations, when not applying to all",
          "type": "array"
        },
        "rank": {
          "format": "int32",
          "maximum": 1000,
          "minimum": 1,
          "title": "等级 | [EN] Rank",
          "type": "integer"
        },
        "sort": {
          "format": "int32",
          "title": "排序 | [EN] Sort order",
          "type": "integer"
        }
      },
      "required": [
        "code",
        "name"
      ],
      "title": "创建角色模板请求\n[EN] Create role template request",
      "type": "object"
    },
    "access_controlOpsRoleTemplateCreateResponse": {
      "properties": {
        "template": {
          "$ref": "#/definitions/access_controlRoleTemplateInfo",
          "title": "模板 | [EN] Template"
        }
      },
      "title": "创建角色模板响应\n[EN] Create role template response",
      "type": "object"
    },
    "access_controlOpsRoleTemplateGetResponse": {
      "properties": {
        "template": {
          "$ref": "#/definitions/access_controlRoleTemplateInfo",
          "title": "模板（含授权与适用组织）| [EN] Template with grants and organizations"
        }
      },
      "title": "角色模板详情响应\n[EN] Get role template response",
      "type": "object"
    },
    "access_controlOpsRoleTemplateListResponse": {
      "properties": {
        "list": {
          "items": {
            "$ref": "#/definitions/access_controlRoleTemplateInfo",
            "type": "object"
          },
          "title": "模板列表 | [EN] Templates",
          "type": "array"
        }
      },
      "title": "角色模板列表响应\n[EN] List role templates response",
      "type": "object"
    },
    "access_controlOpsRoleTemplateUpdateResponse": {
      "properties": {
        "template": {
          "$ref": "#/definitions/access_controlRoleTemplateInfo",
          "title": "模板 | [EN] Template"
        }
      },
      "title": "更新角色模板响应\n[EN] Update role template response",
      "type": "object"
    },
    "access_controlOpsSecurityRulesGetResponse": {
      "properties": {
        "rules": {
          "$ref": "#/definitions/access_controlSecurityRules",
          "title": "安全规则 | [EN] Security rules"
        }
      },
      "title": "读取安全规则响应\n[EN] Get security rules response",
      "type": "object"
    },
    "access_controlOpsSecurityRulesSaveRequest": {
      "properties": {
        "rules": {
          "$ref": "#/definitions/access_controlSecurityRules",
          "title": "安全规则 | [EN] Security rules"
        }
      },
      "required": [
        "rules"
      ],
      "title": "保存安全规则请求：整份保存，带读到的版本\n[EN] Save security rules request, the whole set with the version as read",
      "type": "object"
    },
    "access_controlOpsSecurityRulesSaveResponse": {
      "properties": {
        "rules": {
          "$ref": "#/definitions/access_controlSecurityRules",
          "title": "安全规则 | [EN] Security rules"
        }
      },
      "title": "保存安全规则响应\n[EN] Save security rules response",
      "type": "object"
    },
    "access_controlOpsSecuritySettingsGetResponse": {
      "properties": {
        "settings": {
          "$ref": "#/definitions/access_controlSecuritySettings",
          "title": "安全策略 | [EN] Security settings"
        }
      },
      "title": "读取安全策略响应\n[EN] Get security settings response",
      "type": "object"
    },
    "access_controlOpsSecuritySettingsSaveRequest": {
      "properties": {
        "domain": {
          "$ref": "#/definitions/enumsDomainType",
          "title": "目标身份域 | [EN] Target domain"
        },
        "settings": {
          "$ref": "#/definitions/access_controlSecuritySettings",
          "title": "安全策略 | [EN] Security settings"
        }
      },
      "required": [
        "domain",
        "settings"
      ],
      "title": "保存安全策略请求\n[EN] Save security settings request",
      "type": "object"
    },
    "access_controlOpsSecuritySettingsSaveResponse": {
      "properties": {
        "settings": {
          "$ref": "#/definitions/access_controlSecuritySettings",
          "title": "安全策略 | [EN] Security settings"
        }
      },
      "title": "保存安全策略响应\n[EN] Save security settings response",
      "type": "object"
    },
    "access_controlOpsServiceConfigGetResponse": {
      "properties": {
        "config": {
          "$ref": "#/definitions/access_controlServiceConfig",
          "title": "全域配置 | [EN] All domains"
        }
      },
      "title": "读取响应：敏感值掩码回显，有值显 ****** 空显空 | [EN] Get response; secrets masked",
      "type": "object"
    },
    "access_controlOpsServiceConfigRevealRequest": {
      "properties": {
        "field": {
          "maxLength": 64,
          "title": "敏感字段名（proto 字段名）| [EN] Secret field name",
          "type": "string"
        },
        "key": {
          "$ref": "#/definitions/access_controlServiceConfigKey",
          "title": "域 | [EN] Domain"
        }
      },
      "required": [
        "key",
        "field"
      ],
      "title": "查看明文请求：单字段解密，需独立权限，每次查看记审计\n[EN] Reveal one field's plaintext; needs its own permission and every reveal is audited",
      "type": "object"
    },
    "access_controlOpsServiceConfigRevealResponse": {
      "properties": {
        "value": {
          "title": "该字段明文 | [EN] The field's plaintext",
          "type": "string"
        }
      },
      "title": "查看明文响应 | [EN] Reveal response",
      "type": "object"
    },
    "access_controlOpsServiceConfigSaveRequest": {
      "properties": {
        "config": {
          "$ref": "#/definitions/access_controlServiceConfig",
          "title": "对应域的子消息 | [EN] The matching sub-message"
        },
        "key": {
          "$ref": "#/definitions/access_controlServiceConfigKey",
          "title": "保存哪个域 | [EN] Which domain"
        }
      },
      "required": [
        "key",
        "config"
      ],
      "title": "保存单域请求：config 里只取 key 对应的子消息；敏感值留掩码表示不变、清空表示删除、改值则重设\n[EN] Save one domain; only config's sub-message matching key is used. A masked secret means unchanged, empty clears, a new value replaces",
      "type": "object"
    },
    "access_controlOpsServiceConfigSaveResponse": {
      "properties": {
        "config": {
          "$ref": "#/definitions/access_controlServiceConfig",
          "title": "保存后的全域配置 | [EN] All domains after save"
        }
      },
      "title": "保存响应：同读取，掩码回显 | [EN] Save response; masked like Get",
      "type": "object"
    },
    "access_controlOpsTeamInfo": {
      "properties": {
        "account_count": {
          "format": "int64",
          "title": "成员数 | [EN] Account count",
          "type": "string"
        },
        "created_at": {
          "format": "date-time",
          "title": "创建时间 | [EN] Created at",
          "type": "string"
        },
        "description": {
          "title": "描述 | [EN] Description",
          "type": "string"
        },
        "id": {
          "title": "团队 ID | [EN] Team ID",
          "type": "string"
        },
        "is_default": {
          "title": "是否工作区的默认团队 | [EN] The workspace's default team",
          "type": "boolean"
        },
        "name": {
          "title": "名称 | [EN] Name",
          "type": "string"
        },
        "org_id": {
          "title": "组织 ID | [EN] Organization ID",
          "type": "string"
        },
        "org_name": {
          "title": "组织名称 | [EN] Organization name",
          "type": "string"
        },
        "status": {
          "$ref": "#/definitions/enumsCommonStatus",
          "title": "状态 | [EN] Status"
        },
        "workspace_id": {
          "title": "工作区 ID | [EN] Workspace ID",
          "type": "string"
        },
        "workspace_name": {
          "title": "工作区名称 | [EN] Workspace name",
          "type": "string"
        }
      },
      "title": "运维看到的团队：带它所属的组织与工作区，便于跨组织浏览\n[EN] A team as ops sees it, with its organization and workspace for cross-organization browsing",
      "type": "object"
    },
    "access_controlOpsTeamListResponse": {
      "properties": {
        "list": {
          "items": {
            "$ref": "#/definitions/access_controlOpsTeamInfo",
            "type": "object"
          },
          "title": "团队，最新的在前 | [EN] Teams, newest first",
          "type": "array"
        },
        "page_response": {
          "$ref": "#/definitions/commonPaging",
          "title": "分页 | [EN] Paging"
        }
      },
      "title": "团队列表响应\n[EN] List teams response",
      "type": "object"
    },
    "access_controlOpsUserCreateRequest": {
      "properties": {
        "avatar_url": {
          "format": "uri",
          "maxLength": 512,
          "title": "头像地址 | [EN] Avatar URL",
          "type": "string"
        },
        "display_name": {
          "maxLength": 64,
          "title": "显示名 | [EN] Display name",
          "type": "string"
        },
        "email": {
          "format": "email",
          "maxLength": 128,
          "title": "邮箱 | [EN] Email",
          "type": "string"
        },
        "key_id": {
          "maxLength": 64,
          "title": "临时公钥 ID；不传按明文，仅兼容旧客户端 | [EN] Temporary key id; without it the password is plain text, for older clients only",
          "type": "string"
        },
        "login_account": {
          "maxLength": 64,
          "minLength": 3,
          "title": "登录账号 | [EN] Login account",
          "type": "string"
        },
        "password": {
          "maxLength": 1024,
          "title": "初始密码，首次登录后须修改；带 key_id 时为 RSA-OAEP 密文的 Base64 | [EN] Initial password, to be changed after the first login; the Base64 of RSA-OAEP ciphertext when key_id is set",
          "type": "string"
        },
        "phone": {
          "title": "手机号（E.164） | [EN] Phone number (E.164)",
          "type": "string"
        },
        "remark": {
          "maxLength": 255,
          "title": "备注 | [EN] Remark",
          "type": "string"
        },
        "role_ids": {
          "items": {
            "maxLength": 64,
            "type": "string"
          },
          "maxItems": 20,
          "title": "角色 ID | [EN] Role IDs",
          "type": "array"
        }
      },
      "required": [
        "login_account",
        "password"
      ],
      "title": "创建运维账号请求\n[EN] Create ops user request",
      "type": "object"
    },
    "access_controlOpsUserCreateResponse": {
      "properties": {
        "user": {
          "$ref": "#/definitions/access_controlOpsUserInfo",
          "title": "账号 | [EN] User"
        }
      },
      "title": "创建运维账号响应\n[EN] Create ops user response",
      "type": "object"
    },
    "access_controlOpsUserGetResponse": {
      "properties": {
        "user": {
          "$ref": "#/definitions/access_controlOpsUserInfo",
          "title": "账号 | [EN] User"
        }
      },
      "title": "运维账号详情响应\n[EN] Get ops user response",
      "type": "object"
    },
    "access_controlOpsUserInfo": {
      "properties": {
        "principal": {
          "$ref": "#/definitions/access_controlPrincipalInfo",
          "title": "身份主体 | [EN] Principal"
        },
        "roles": {
          "items": {
            "$ref": "#/definitions/access_controlRoleInfo",
            "type": "object"
          },
          "title": "绑定的角色 | [EN] Bound roles",
          "type": "array"
        }
      },
      "title": "运维账号：身份主体与绑定的角色\n[EN] Ops user: principal and bound roles",
      "type": "object"
    },
    "access_controlOpsUserListResponse": {
      "properties": {
        "list": {
          "items": {
            "$ref": "#/definitions/access_controlOpsUserInfo",
            "type": "object"
          },
          "title": "账号列表 | [EN] Users",
          "type": "array"
        },
        "page_response": {
          "$ref": "#/definitions/commonPaging",
          "title": "分页 | [EN] Paging"
        }
      },
      "title": "运维账号列表响应\n[EN] List ops users response",
      "type": "object"
    },
    "access_controlOpsUserUpdateResponse": {
      "properties": {
        "user": {
          "$ref": "#/definitions/access_controlOpsUserInfo",
          "title": "账号 | [EN] User"
        }
      },
      "title": "修改运维账号资料响应\n[EN] Update ops user response",
      "type": "object"
    },
    "access_controlOpsWorkspaceInfo": {
      "properties": {
        "account_count": {
          "format": "int64",
          "title": "成员数 | [EN] Account count",
          "type": "string"
        },
        "created_at": {
          "format": "date-time",
          "title": "创建时间 | [EN] Created at",
          "type": "string"
        },
        "id": {
          "title": "工作区 ID | [EN] Workspace ID",
          "type": "string"
        },
        "is_default": {
          "title": "是否组织的默认工作区 | [EN] The organization's default workspace",
          "type": "boolean"
        },
        "language": {
          "title": "语言 | [EN] Language",
          "type": "string"
        },
        "last_active_at": {
          "format": "date-time",
          "title": "成员在该工作区最近活跃（登录、刷新令牌、切换工作区，按 10 分钟粒度记）；从未活跃为空 | [EN] Members' last activity in this workspace (sign-in, token refresh, workspace switch) at ten-minute granularity; empty when never",
          "type": "string"
        },
        "name": {
          "title": "名称 | [EN] Name",
          "type": "string"
        },
        "org_id": {
          "title": "组织 ID | [EN] Organization ID",
          "type": "string"
        },
        "org_name": {
          "title": "组织名称 | [EN] Organization name",
          "type": "string"
        },
        "status": {
          "$ref": "#/definitions/enumsCommonStatus",
          "title": "状态 | [EN] Status"
        },
        "team_count": {
          "format": "int64",
          "title": "团队数 | [EN] Team count",
          "type": "string"
        },
        "timezone": {
          "title": "时区（IANA）| [EN] Time zone, IANA",
          "type": "string"
        }
      },
      "title": "运维看到的工作区\n[EN] A workspace as ops sees it",
      "type": "object"
    },
    "access_controlOpsWorkspaceListResponse": {
      "properties": {
        "list": {
          "items": {
            "$ref": "#/definitions/access_controlOpsWorkspaceInfo",
            "type": "object"
          },
          "title": "工作区，最新的在前 | [EN] Workspaces, newest first",
          "type": "array"
        },
        "page_response": {
          "$ref": "#/definitions/commonPaging",
          "title": "分页 | [EN] Paging"
        }
      },
      "title": "工作区列表响应\n[EN] List workspaces response",
      "type": "object"
    },
    "access_controlOpsWorkspaceMember": {
      "properties": {
        "account_display": {
          "title": "登录账号 / 邮箱 / 手机号 / 成员 ID 的展示值 | [EN] Display value: login account, email, phone or account ID",
          "type": "string"
        },
        "disabled_reason": {
          "$ref": "#/definitions/access_controlAccountDisabledReason",
          "title": "停用原因，在用为未指定 | [EN] Why disabled, unspecified while active"
        },
        "last_login_at": {
          "format": "date-time",
          "title": "最近成功登录时间，从未登录为空 | [EN] Last successful login; empty when never",
          "type": "string"
        },
        "nickname": {
          "title": "成员昵称 | [EN] Member nickname",
          "type": "string"
        },
        "role_name": {
          "items": {
            "$ref": "#/definitions/commonLocalizedText",
            "type": "object"
          },
          "title": "角色名称（按语言）| [EN] Role name per language",
          "type": "array"
        },
        "status": {
          "$ref": "#/definitions/enumsAccountStatus",
          "title": "成员状态 | [EN] Account status"
        },
        "team_id": {
          "title": "所在团队 ID | [EN] Team ID",
          "type": "string"
        },
        "team_name": {
          "title": "所在团队名称 | [EN] Team name",
          "type": "string"
        }
      },
      "title": "运维查看的工作区成员：昵称、账号展示值与角色来自 AC 自己的成员表\n[EN] A workspace member as the ops console sees it; nickname, account display and role come from AC's own account tables",
      "type": "object"
    },
    "access_controlOpsWorkspaceMemberListResponse": {
      "properties": {
        "list": {
          "items": {
            "$ref": "#/definitions/access_controlOpsWorkspaceMember",
            "type": "object"
          },
          "title": "成员 | [EN] Members",
          "type": "array"
        },
        "page_response": {
          "$ref": "#/definitions/commonPaging",
          "title": "分页 | [EN] Paging"
        }
      },
      "title": "工作区成员列表响应\n[EN] List workspace members response",
      "type": "object"
    },
    "access_controlOrgAccessLevelsResponse": {
      "properties": {
        "levels": {
          "items": {
            "$ref": "#/definitions/access_controlAccessLevel",
            "type": "object"
          },
          "title": "访问级别 | [EN] Access levels",
          "type": "array"
        },
        "restrictions": {
          "items": {
            "$ref": "#/definitions/access_controlRestrictionItem",
            "type": "object"
          },
          "title": "高级限制目录（不按调用方取交集）| [EN] Restriction catalog, not intersected with the caller",
          "type": "array"
        }
      },
      "title": "访问级别响应：工作区的全部内置角色（按排序），与完整的高级限制目录\n[EN] Access levels response: every built-in role of the workspace in sort order, with the full restriction catalog",
      "type": "object"
    },
    "access_controlOrgAccountCreateRequest": {
      "properties": {
        "display_name": {
          "maxLength": 64,
          "title": "显示名 | [EN] Display name",
          "type": "string"
        },
        "email": {
          "format": "email",
          "maxLength": 128,
          "title": "邮箱 | [EN] Email",
          "type": "string"
        },
        "is_org_admin": {
          "title": "是否组织管理员：组织后台不能授予，必须为 false | [EN] Whether an organization admin; the console cannot grant it, so it must be false",
          "type": "boolean"
        },
        "key_id": {
          "maxLength": 64,
          "title": "临时公钥 ID；不传按明文，仅兼容旧客户端 | [EN] Temporary key id; without it the password is plain text, for older clients only",
          "type": "string"
        },
        "login_account": {
          "maxLength": 64,
          "minLength": 3,
          "title": "登录账号 | [EN] Login account",
          "type": "string"
        },
        "password": {
          "maxLength": 1024,
          "title": "初始密码（新建身份主体时必填），首次登录后须修改；带 key_id 时为 RSA-OAEP 密文的 Base64 | [EN] Initial password, required for a new principal and changed at first login; the Base64 of RSA-OAEP ciphertext when key_id is set",
          "type": "string"
        },
        "phone": {
          "title": "手机号（E.164） | [EN] Phone number (E.164)",
          "type": "string"
        },
        "restrictions": {
          "items": {
            "$ref": "#/definitions/access_controlAccountRestriction",
            "type": "object"
          },
          "maxItems": 20,
          "title": "成员权限调整，整组替换（空列表即清空） | [EN] Account restrictions, replaced as a whole; an empty list clears them",
          "type": "array"
        },
        "role_id": {
          "maxLength": 64,
          "title": "角色 | [EN] Role",
          "type": "string"
        },
        "team_id": {
          "maxLength": 64,
          "title": "团队，不传为工作区默认团队 | [EN] Team; the workspace default when omitted",
          "type": "string"
        },
        "workspace_id": {
          "maxLength": 64,
          "title": "工作区 | [EN] Workspace",
          "type": "string"
        }
      },
      "required": [
        "workspace_id",
        "role_id",
        "login_account"
      ],
      "title": "添加成员请求：登录账号已存在则直接加入工作区，否则新建身份主体\n[EN] Add account request: an existing login account joins the workspace, otherwise a principal is created",
      "type": "object"
    },
    "access_controlOrgAccountCreateResponse": {
      "properties": {
        "account": {
          "$ref": "#/definitions/access_controlAccountInfo",
          "title": "成员 | [EN] Account"
        }
      },
      "title": "添加成员响应\n[EN] Add account response",
      "type": "object"
    },
    "access_controlOrgAccountDeleteResponse": {
      "properties": {
        "account_id": {
          "title": "被移除的成员 ID | [EN] Removed account ID",
          "type": "string"
        },
        "conversation_action": {
          "$ref": "#/definitions/eventsConversationAction",
          "title": "实际采用的会话处理方式 | [EN] Conversation handling applied"
        },
        "target_account_id": {
          "title": "接手会话的成员 ID（转交时） | [EN] Account that took over the conversations, on transfer",
          "type": "string"
        }
      },
      "title": "移除成员响应\n[EN] Remove account response",
      "type": "object"
    },
    "access_controlOrgAccountDirectoryListResponse": {
      "properties": {
        "counts": {
          "$ref": "#/definitions/access_controlMembershipCounts",
          "title": "各加入状态的数量 | [EN] Counts per membership state"
        },
        "items": {
          "items": {
            "$ref": "#/definitions/access_controlAccountDirectoryItem",
            "type": "object"
          },
          "title": "成员与邀请 | [EN] Accounts and invitations",
          "type": "array"
        },
        "page_response": {
          "$ref": "#/definitions/commonPaging",
          "title": "分页 | [EN] Paging"
        }
      },
      "title": "成员名录响应\n[EN] Account directory response",
      "type": "object"
    },
    "access_controlOrgAccountGetResponse": {
      "properties": {
        "account": {
          "$ref": "#/definitions/access_controlAccountInfo",
          "title": "成员 | [EN] Account"
        }
      },
      "title": "成员详情响应\n[EN] Get account response",
      "type": "object"
    },
    "access_controlOrgAccountListResponse": {
      "properties": {
        "list": {
          "items": {
            "$ref": "#/definitions/access_controlAccountInfo",
            "type": "object"
          },
          "title": "成员 | [EN] Accounts",
          "type": "array"
        },
        "page_response": {
          "$ref": "#/definitions/commonPaging",
          "title": "分页 | [EN] Paging"
        }
      },
      "title": "成员列表响应\n[EN] List accounts response",
      "type": "object"
    },
    "access_controlOrgAccountOptionsResponse": {
      "properties": {
        "data_scope_options": {
          "items": {
            "$ref": "#/definitions/enumsDataScope"
          },
          "title": "数据范围选项 | [EN] Data scope options",
          "type": "array"
        },
        "restriction_items": {
          "items": {
            "$ref": "#/definitions/access_controlRestrictionItem",
            "type": "object"
          },
          "title": "能用在这些角色上的限制 | [EN] Restrictions usable on these roles",
          "type": "array"
        },
        "roles": {
          "items": {
            "$ref": "#/definitions/access_controlRoleInfo",
            "type": "object"
          },
          "title": "能分配的角色（可分配且等级比调用方低），不带授权 | [EN] Assignable roles, ranked below the caller, without grants",
          "type": "array"
        }
      },
      "title": "成员表单选项响应：只含调用方能分配的角色，以及能用在这些角色上的限制\n[EN] Account form options response: only the roles the caller may assign and the restrictions usable on them",
      "type": "object"
    },
    "access_controlOrgAccountRestrictionsGetResponse": {
      "properties": {
        "restrictions": {
          "items": {
            "$ref": "#/definitions/access_controlAccountRestriction",
            "type": "object"
          },
          "title": "限制 | [EN] Restrictions",
          "type": "array"
        }
      },
      "title": "成员的高级限制响应\n[EN] Account restrictions response",
      "type": "object"
    },
    "access_controlOrgAccountUpdateResponse": {
      "properties": {
        "account": {
          "$ref": "#/definitions/access_controlAccountInfo",
          "title": "成员 | [EN] Account"
        }
      },
      "title": "修改成员响应\n[EN] Update account response",
      "type": "object"
    },
    "access_controlOrgContactInfo": {
      "properties": {
        "phone": {
          "maxLength": 32,
          "minLength": 6,
          "title": "电话，只含数字，至少 6 位 | [EN] Phone, digits only and at least six",
          "type": "string"
        },
        "phone_region_code": {
          "maxLength": 2,
          "minLength": 2,
          "title": "电话地区码（ISO 3166-1 两位大写，如 CN、US；可选的地区由配置中心对外提供），填了电话就必填 | [EN] Phone region code, two upper-case ISO 3166-1 letters such as CN or US from the config center's public list, required with a phone",
          "type": "string"
        },
        "website": {
          "maxLength": 512,
          "title": "网站 | [EN] Website",
          "type": "string"
        }
      },
      "title": "组织的联系方式\n[EN] Organization contact details",
      "type": "object"
    },
    "access_controlOrgFeedbackCreateRequest": {
      "properties": {
        "attachments": {
          "items": {
            "$ref": "#/definitions/access_controlFeedbackAttachment",
            "type": "object"
          },
          "maxItems": 5,
          "title": "截图，最多 5 张 | [EN] Screenshots, at most five",
          "type": "array"
        },
        "content": {
          "maxLength": 2000,
          "title": "正文，1 到 2000 字 | [EN] Body, 1 to 2000 characters",
          "type": "string"
        },
        "type": {
          "$ref": "#/definitions/access_controlFeedbackType",
          "title": "类型 | [EN] Type"
        }
      },
      "required": [
        "type",
        "content"
      ],
      "title": "提交反馈请求（组织域）：组织、工作区与提交人取自令牌所在的成员身份\n[EN] Submit feedback request, org domain; organization, workspace and submitter come from the token's membership",
      "type": "object"
    },
    "access_controlOrgFeedbackCreateResponse": {
      "properties": {
        "created_at": {
          "format": "date-time",
          "title": "提交时间 | [EN] Submitted at",
          "type": "string"
        },
        "id": {
          "title": "反馈 ID | [EN] Feedback ID",
          "type": "string"
        }
      },
      "title": "提交反馈响应 | [EN] Submit feedback response",
      "type": "object"
    },
    "access_controlOrgInfo": {
      "properties": {
        "account_count": {
          "format": "int64",
          "title": "有效成员数 | [EN] Number of active accounts",
          "type": "string"
        },
        "country": {
          "title": "国家/地区（ISO 3166-1 两位大写，如 CN、SG），注册时填写 | [EN] Country or region, two upper-case ISO 3166-1 letters such as CN or SG, given at sign-up",
          "type": "string"
        },
        "created_at": {
          "format": "date-time",
          "title": "创建时间 | [EN] Created at",
          "type": "string"
        },
        "id": {
          "title": "组织 ID | [EN] Organization ID",
          "type": "string"
        },
        "industry": {
          "title": "行业分类编码（配置中心公开字典 org.industry）| [EN] Industry code from the config center's public org.industry dictionary",
          "type": "string"
        },
        "last_active_at": {
          "format": "date-time",
          "title": "成员最近活跃（登录、刷新令牌、切换工作区，按 10 分钟粒度记）；从未活跃为空 | [EN] Members' last activity (sign-in, token refresh, workspace switch) at ten-minute granularity; empty when never",
          "type": "string"
        },
        "mfa_enforced": {
          "title": "是否强制二次验证 | [EN] Whether MFA is enforced",
          "type": "boolean"
        },
        "name": {
          "title": "名称 | [EN] Name",
          "type": "string"
        },
        "owner_email": {
          "title": "所有者的登录邮箱（手机号注册的为空）| [EN] The owner's sign-in email, empty for phone sign-ups",
          "type": "string"
        },
        "owner_nickname": {
          "title": "所有者在本组织的显示名（取最早加入的那条成员身份）| [EN] The owner's display name in this organization, from their earliest membership in it",
          "type": "string"
        },
        "owner_principal_id": {
          "title": "所有者身份主体 ID | [EN] Owner principal ID",
          "type": "string"
        },
        "partner_code": {
          "title": "合伙人编号（仅合伙人推荐，注册人自填，未核对）| [EN] Partner code, partner referrals only, self-reported and unverified",
          "type": "string"
        },
        "scale": {
          "title": "公司规模编码（配置中心公开字典 org.scale）| [EN] Company size code from the config center's public org.scale dictionary",
          "type": "string"
        },
        "source": {
          "$ref": "#/definitions/enumsOrgSource",
          "title": "注册来源 | [EN] How it signed up"
        },
        "status": {
          "$ref": "#/definitions/enumsCommonStatus",
          "title": "状态 | [EN] Status"
        },
        "updated_at": {
          "format": "date-time",
          "title": "更新时间 | [EN] Updated at",
          "type": "string"
        },
        "workspace_count": {
          "format": "int64",
          "title": "工作区数 | [EN] Number of workspaces",
          "type": "string"
        }
      },
      "title": "组织：组织域的最上层\n[EN] An organization, the top of the org domain",
      "type": "object"
    },
    "access_controlOrgInvitationCreateRequest": {
      "properties": {
        "emails": {
          "items": {
            "maxLength": 2048,
            "type": "string"
          },
          "maxItems": 50,
          "minItems": 1,
          "title": "邮箱列表，一项一个邮箱，不再拆分或去重 | [EN] Email list, one address per element, never split or de-duplicated",
          "type": "array"
        },
        "restrictions": {
          "items": {
            "$ref": "#/definitions/access_controlAccountRestriction",
            "type": "object"
          },
          "maxItems": 20,
          "title": "高级限制，接受时套到新成员上 | [EN] Restrictions applied to the new account on acceptance",
          "type": "array"
        },
        "role_id": {
          "maxLength": 64,
          "title": "角色：可分配且等级比调用方低 | [EN] Role, assignable and ranked below the caller",
          "type": "string"
        },
        "team_id": {
          "maxLength": 64,
          "title": "团队，不传为工作区默认团队 | [EN] Team; the workspace default when omitted",
          "type": "string"
        },
        "workspace_id": {
          "maxLength": 64,
          "title": "工作区，不传为当前工作区；非组织管理员只能是当前工作区 | [EN] Workspace, the current one when omitted; non-admins may only pass the current one",
          "type": "string"
        }
      },
      "required": [
        "emails",
        "role_id"
      ],
      "title": "发出邀请请求\n[EN] Create invitations request",
      "type": "object"
    },
    "access_controlOrgInvitationCreateResponse": {
      "properties": {
        "results": {
          "items": {
            "$ref": "#/definitions/access_controlInvitationResult",
            "type": "object"
          },
          "title": "每个邮箱的结果 | [EN] Per-email outcomes",
          "type": "array"
        }
      },
      "title": "发出邀请响应\n[EN] Create invitations response",
      "type": "object"
    },
    "access_controlOrgInvitationResendResponse": {
      "properties": {
        "expire_at": {
          "format": "date-time",
          "title": "新的过期时间 | [EN] New expiry",
          "type": "string"
        },
        "invite_url": {
          "title": "邀请链接 | [EN] Invitation link",
          "type": "string"
        },
        "resend_available_at": {
          "format": "date-time",
          "title": "何时可以再发 | [EN] When it can be resent again",
          "type": "string"
        },
        "result": {
          "$ref": "#/definitions/access_controlInvitationSendResult",
          "title": "SENT 或 SEND_FAILED | [EN] SENT or SEND_FAILED"
        }
      },
      "title": "重发邀请响应：链接不变，有效期从现在重算\n[EN] Resend invitation response; the link stays and the expiry restarts from now",
      "type": "object"
    },
    "access_controlOrgProfile": {
      "properties": {
        "contact_info": {
          "$ref": "#/definitions/access_controlOrgContactInfo",
          "title": "联系方式 | [EN] Contact details"
        },
        "created_at": {
          "format": "date-time",
          "title": "创建时间 | [EN] Created at",
          "type": "string"
        },
        "id": {
          "title": "组织 ID | [EN] Organization ID",
          "type": "string"
        },
        "industry": {
          "title": "行业分类编码（配置中心公开字典 org.industry）| [EN] Industry code from the config center's public org.industry dictionary",
          "type": "string"
        },
        "mfa_enforced": {
          "title": "是否强制二次验证 | [EN] Whether MFA is enforced",
          "type": "boolean"
        },
        "name": {
          "title": "名称 | [EN] Name",
          "type": "string"
        },
        "scale": {
          "title": "公司规模编码（配置中心公开字典 org.scale）| [EN] Company size code from the config center's public org.scale dictionary",
          "type": "string"
        }
      },
      "title": "组织信息\n[EN] Organization profile",
      "type": "object"
    },
    "access_controlOrgProfileGetResponse": {
      "properties": {
        "can_update": {
          "title": "调用方能不能改（持有 org:update）| [EN] Whether the caller may edit it, holding org:update",
          "type": "boolean"
        },
        "profile": {
          "$ref": "#/definitions/access_controlOrgProfile",
          "title": "组织信息 | [EN] Profile"
        }
      },
      "title": "组织信息响应\n[EN] Organization profile response",
      "type": "object"
    },
    "access_controlOrgProfileUpdateRequest": {
      "properties": {
        "contact_info": {
          "$ref": "#/definitions/access_controlOrgContactInfo",
          "title": "联系方式（整组替换）| [EN] Contact details, replaced as a whole"
        },
        "industry": {
          "maxLength": 64,
          "title": "行业分类编码（配置中心公开字典 org.industry）| [EN] Industry code from the config center's public org.industry dictionary",
          "type": "string"
        },
        "name": {
          "maxLength": 64,
          "title": "名称 | [EN] Name",
          "type": "string"
        },
        "scale": {
          "maxLength": 64,
          "title": "公司规模编码（配置中心公开字典 org.scale）| [EN] Company size code from the config center's public org.scale dictionary",
          "type": "string"
        }
      },
      "title": "修改组织信息请求：只改带了的项，名称为空不改\n[EN] Update organization profile request: only the fields present change, and an empty name keeps the old one",
      "type": "object"
    },
    "access_controlOrgProfileUpdateResponse": {
      "properties": {
        "profile": {
          "$ref": "#/definitions/access_controlOrgProfile",
          "title": "改后的组织信息 | [EN] Profile after the change"
        }
      },
      "title": "修改组织信息响应\n[EN] Update organization profile response",
      "type": "object"
    },
    "access_controlOrgProfileValueCount": {
      "properties": {
        "org_count": {
          "format": "int64",
          "title": "选了它的组织数 | [EN] Organizations that chose it",
          "type": "string"
        },
        "value": {
          "title": "取值（配置中心字典 org.industry / org.scale 的 value）| [EN] Value of the config center's org.industry or org.scale dictionary",
          "type": "string"
        }
      },
      "title": "一个组织资料取值与选了它的组织数\n[EN] One organization profile value and how many organizations chose it",
      "type": "object"
    },
    "access_controlOrgRoleCreateRequest": {
      "properties": {
        "code": {
          "maxLength": 64,
          "minLength": 2,
          "title": "角色编码，小写字母、数字与下划线 | [EN] Role code: lower-case letters, digits and underscores",
          "type": "string"
        },
        "description": {
          "maxLength": 255,
          "title": "描述 | [EN] Description",
          "type": "string"
        },
        "grants": {
          "items": {
            "$ref": "#/definitions/access_controlRoleGrant",
            "type": "object"
          },
          "maxItems": 500,
          "title": "授权 | [EN] Grants",
          "type": "array"
        },
        "name": {
          "maxLength": 64,
          "title": "名称 | [EN] Name",
          "type": "string"
        },
        "sort": {
          "format": "int32",
          "title": "排序 | [EN] Sort order",
          "type": "integer"
        },
        "workspace_id": {
          "maxLength": 64,
          "title": "工作区 | [EN] Workspace",
          "type": "string"
        }
      },
      "required": [
        "workspace_id",
        "code",
        "name"
      ],
      "title": "创建角色请求\n[EN] Create role request",
      "type": "object"
    },
    "access_controlOrgRoleCreateResponse": {
      "properties": {
        "role": {
          "$ref": "#/definitions/access_controlRoleInfo",
          "title": "角色 | [EN] Role"
        }
      },
      "title": "创建角色响应\n[EN] Create role response",
      "type": "object"
    },
    "access_controlOrgRoleGetResponse": {
      "properties": {
        "role": {
          "$ref": "#/definitions/access_controlRoleInfo",
          "title": "角色（含授权） | [EN] Role with grants"
        }
      },
      "title": "角色详情响应\n[EN] Get role response",
      "type": "object"
    },
    "access_controlOrgRoleListResponse": {
      "properties": {
        "list": {
          "items": {
            "$ref": "#/definitions/access_controlRoleInfo",
            "type": "object"
          },
          "title": "角色 | [EN] Roles",
          "type": "array"
        }
      },
      "title": "角色列表响应\n[EN] List roles response",
      "type": "object"
    },
    "access_controlOrgSecurityGetResponse": {
      "properties": {
        "mfa_enforced": {
          "title": "是否强制二次验证 | [EN] Whether MFA is enforced",
          "type": "boolean"
        },
        "self_mfa_bound": {
          "title": "调用方自己有没有绑二次验证（开启强制前须先绑）| [EN] Whether the caller has MFA bound, required before enforcing it",
          "type": "boolean"
        }
      },
      "title": "组织安全设置响应\n[EN] Organization security response",
      "type": "object"
    },
    "access_controlOrgSecurityUpdateRequest": {
      "properties": {
        "mfa_enforced": {
          "title": "是否强制二次验证 | [EN] Whether to enforce MFA",
          "type": "boolean"
        }
      },
      "title": "修改组织安全设置请求\n[EN] Update organization security request",
      "type": "object"
    },
    "access_controlOrgTeam": {
      "properties": {
        "account_count": {
          "format": "int64",
          "title": "成员数 | [EN] Account count",
          "type": "string"
        },
        "accounts": {
          "items": {
            "$ref": "#/definitions/access_controlOrgTeamAccount",
            "type": "object"
          },
          "title": "成员 | [EN] Accounts",
          "type": "array"
        },
        "created_at": {
          "format": "date-time",
          "title": "创建时间 | [EN] Created at",
          "type": "string"
        },
        "description": {
          "title": "描述 | [EN] Description",
          "type": "string"
        },
        "id": {
          "title": "团队 ID | [EN] Team ID",
          "type": "string"
        },
        "is_default": {
          "title": "是否工作区的默认团队 | [EN] The workspace's default team",
          "type": "boolean"
        },
        "name": {
          "title": "名称 | [EN] Name",
          "type": "string"
        }
      },
      "title": "团队\n[EN] A team",
      "type": "object"
    },
    "access_controlOrgTeamAccount": {
      "properties": {
        "account_id": {
          "title": "成员 ID | [EN] Account ID",
          "type": "string"
        },
        "display_name": {
          "title": "显示名 | [EN] Display name",
          "type": "string"
        },
        "principal_id": {
          "title": "身份主体 ID | [EN] Principal ID",
          "type": "string"
        },
        "role_code": {
          "title": "角色编码 | [EN] Role code",
          "type": "string"
        }
      },
      "title": "团队里的一名成员\n[EN] One account of a team",
      "type": "object"
    },
    "access_controlOrgTeamCreateRequest": {
      "properties": {
        "account_ids": {
          "items": {
            "maxLength": 64,
            "type": "string"
          },
          "maxItems": 1000,
          "title": "移进来的成员 | [EN] Accounts moved in",
          "type": "array"
        },
        "description": {
          "maxLength": 255,
          "title": "描述 | [EN] Description",
          "type": "string"
        },
        "name": {
          "maxLength": 64,
          "title": "名称，工作区内唯一 | [EN] Name, unique in the workspace",
          "type": "string"
        },
        "workspace_id": {
          "maxLength": 64,
          "title": "工作区，不传为当前工作区 | [EN] Workspace, the current one when omitted",
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "title": "建团队请求\n[EN] Create team request",
      "type": "object"
    },
    "access_controlOrgTeamCreateResponse": {
      "properties": {
        "team": {
          "$ref": "#/definitions/access_controlOrgTeam",
          "title": "团队 | [EN] Team"
        }
      },
      "title": "建团队响应\n[EN] Create team response",
      "type": "object"
    },
    "access_controlOrgTeamListResponse": {
      "properties": {
        "teams": {
          "items": {
            "$ref": "#/definitions/access_controlOrgTeam",
            "type": "object"
          },
          "title": "团队 | [EN] Teams",
          "type": "array"
        }
      },
      "title": "团队列表响应：默认团队在前\n[EN] List teams response, the default team first",
      "type": "object"
    },
    "access_controlOrgTeamUpdateResponse": {
      "properties": {
        "team": {
          "$ref": "#/definitions/access_controlOrgTeam",
          "title": "团队 | [EN] Team"
        }
      },
      "title": "改团队响应\n[EN] Update team response",
      "type": "object"
    },
    "access_controlOrgWorkspaceCreateRequest": {
      "properties": {
        "language": {
          "maxLength": 16,
          "title": "语言（如 zh-CN）| [EN] Language such as zh-CN",
          "type": "string"
        },
        "name": {
          "maxLength": 64,
          "title": "名称，组织内唯一 | [EN] Name, unique in the organization",
          "type": "string"
        },
        "timezone": {
          "maxLength": 64,
          "title": "时区（IANA，如 Asia/Shanghai）| [EN] Time zone, IANA such as Asia/Shanghai",
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "title": "建工作区请求\n[EN] Create workspace request",
      "type": "object"
    },
    "access_controlOrgWorkspaceCreateResponse": {
      "properties": {
        "workspace": {
          "$ref": "#/definitions/access_controlOrgWorkspaceSummary",
          "title": "工作区 | [EN] Workspace"
        }
      },
      "title": "建工作区响应\n[EN] Create workspace response",
      "type": "object"
    },
    "access_controlOrgWorkspaceListResponse": {
      "properties": {
        "teams": {
          "items": {
            "$ref": "#/definitions/access_controlTeamInfo",
            "type": "object"
          },
          "title": "团队 | [EN] Teams",
          "type": "array"
        },
        "workspaces": {
          "items": {
            "$ref": "#/definitions/access_controlWorkspaceInfo",
            "type": "object"
          },
          "title": "工作区 | [EN] Workspaces",
          "type": "array"
        }
      },
      "title": "本组织的工作区与团队响应\n[EN] Workspaces and teams of the caller's organization response",
      "type": "object"
    },
    "access_controlOrgWorkspaceSummary": {
      "properties": {
        "account_count": {
          "format": "int64",
          "title": "成员数 | [EN] Account count",
          "type": "string"
        },
        "channel_account_count": {
          "format": "int64",
          "title": "授权渠道账号数（工作台的数据，AC 不填）| [EN] Authorized channel accounts, workbench data AC leaves unset",
          "type": "string"
        },
        "created_at": {
          "format": "date-time",
          "title": "创建时间 | [EN] Created at",
          "type": "string"
        },
        "customer_count": {
          "format": "int64",
          "title": "客户数（工作台的数据，AC 不填）| [EN] Customer count, workbench data AC leaves unset",
          "type": "string"
        },
        "id": {
          "title": "工作区 ID | [EN] Workspace ID",
          "type": "string"
        },
        "is_default": {
          "title": "是否组织的默认工作区 | [EN] The organization's default workspace",
          "type": "boolean"
        },
        "language": {
          "title": "语言 | [EN] Language",
          "type": "string"
        },
        "name": {
          "title": "名称 | [EN] Name",
          "type": "string"
        },
        "status": {
          "$ref": "#/definitions/enumsCommonStatus",
          "title": "状态 | [EN] Status"
        },
        "timezone": {
          "title": "时区（IANA）| [EN] Time zone, IANA",
          "type": "string"
        }
      },
      "title": "组织后台看到的工作区\n[EN] A workspace as the org console sees it",
      "type": "object"
    },
    "access_controlOrgWorkspaceSummaryListResponse": {
      "properties": {
        "list": {
          "items": {
            "$ref": "#/definitions/access_controlOrgWorkspaceSummary",
            "type": "object"
          },
          "title": "工作区 | [EN] Workspaces",
          "type": "array"
        },
        "page_response": {
          "$ref": "#/definitions/commonPaging",
          "title": "分页 | [EN] Paging"
        }
      },
      "title": "工作区列表响应：默认工作区在前，其余最新的在前\n[EN] List workspaces response: the default workspace first, the rest newest first",
      "type": "object"
    },
    "access_controlOrgWorkspaceUpdateResponse": {
      "properties": {
        "workspace": {
          "$ref": "#/definitions/access_controlOrgWorkspaceSummary",
          "title": "工作区 | [EN] Workspace"
        }
      },
      "title": "改工作区响应\n[EN] Update workspace response",
      "type": "object"
    },
    "access_controlPasswordPolicy": {
      "properties": {
        "min_length": {
          "format": "int32",
          "title": "最短长度 | [EN] Minimum length",
          "type": "integer"
        },
        "require_digit": {
          "title": "须含数字 | [EN] Require a digit",
          "type": "boolean"
        },
        "require_lower": {
          "title": "须含小写字母 | [EN] Require a lower-case letter",
          "type": "boolean"
        },
        "require_special": {
          "title": "须含特殊字符 | [EN] Require a special character",
          "type": "boolean"
        },
        "require_upper": {
          "title": "须含大写字母 | [EN] Require an upper-case letter",
          "type": "boolean"
        }
      },
      "title": "密码策略：登录前后都能拿到，前端据此做即时校验\n[EN] Password policy, available before and after login for client-side checks",
      "type": "object"
    },
    "access_controlPasswordResetCodeSendRequest": {
      "properties": {
        "channel": {
          "$ref": "#/definitions/access_controlContactChannel",
          "title": "邮箱或手机号 | [EN] Email or phone"
        },
        "target": {
          "maxLength": 255,
          "title": "邮箱或以 + 开头的 E.164 手机号 | [EN] Email or an E.164 phone starting with +",
          "type": "string"
        }
      },
      "required": [
        "channel",
        "target"
      ],
      "title": "找回密码验证码请求：用已绑定的邮箱或手机号证明身份\n[EN] Send a password reset code to the bound email or phone",
      "type": "object"
    },
    "access_controlPasswordResetCodeSendResponse": {
      "properties": {
        "expire_at": {
          "format": "date-time",
          "title": "验证码过期时间 | [EN] Code expiry",
          "type": "string"
        },
        "resend_available_at": {
          "format": "date-time",
          "title": "何时可以再发 | [EN] When another code can be sent",
          "type": "string"
        }
      },
      "title": "找回密码验证码响应 | [EN] Send a password reset code response",
      "type": "object"
    },
    "access_controlPasswordResetRequest": {
      "properties": {
        "channel": {
          "$ref": "#/definitions/access_controlContactChannel",
          "title": "邮箱或手机号 | [EN] Email or phone"
        },
        "code": {
          "maxLength": 16,
          "title": "验证码 | [EN] Verification code",
          "type": "string"
        },
        "key_id": {
          "maxLength": 64,
          "title": "临时公钥 ID | [EN] Temporary key id",
          "type": "string"
        },
        "new_password": {
          "maxLength": 1024,
          "title": "新密码（满足组织域的密码策略）；带 key_id 时为 RSA-OAEP 密文的 Base64 | [EN] New password meeting the org domain's policy; the Base64 of RSA-OAEP ciphertext when key_id is set",
          "type": "string"
        },
        "target": {
          "maxLength": 255,
          "title": "邮箱或以 + 开头的 E.164 手机号 | [EN] Email or an E.164 phone starting with +",
          "type": "string"
        }
      },
      "required": [
        "channel",
        "target",
        "code",
        "new_password"
      ],
      "title": "找回密码请求：验证码 + 新密码；成功后该账号的全部会话撤销\n[EN] Reset a forgotten password with a code and a new password; every session of the account is revoked on success",
      "type": "object"
    },
    "access_controlPendingInvitationRef": {
      "properties": {
        "code": {
          "title": "邀请码 | [EN] Invitation code",
          "type": "string"
        },
        "expire_at": {
          "format": "date-time",
          "title": "过期时间 | [EN] Expiry",
          "type": "string"
        },
        "org_name": {
          "title": "组织名称 | [EN] Organization name",
          "type": "string"
        },
        "role_code": {
          "title": "角色编码 | [EN] Role code",
          "type": "string"
        },
        "role_name": {
          "items": {
            "$ref": "#/definitions/commonLocalizedText",
            "type": "object"
          },
          "title": "角色名称（按语言）| [EN] Role name per language",
          "type": "array"
        },
        "workspace_name": {
          "title": "工作区名称 | [EN] Workspace name",
          "type": "string"
        }
      },
      "title": "待接受的邀请（Google 验证过的邮箱收到的）：凭 code 去接受\n[EN] A pending invitation sent to the Google-verified email, accepted with its code",
      "type": "object"
    },
    "access_controlPermissionCatalogEntry": {
      "properties": {
        "active": {
          "title": "是否在用 | [EN] Whether in use",
          "type": "boolean"
        },
        "bit": {
          "format": "int32",
          "title": "位序号 | [EN] Bit",
          "type": "integer"
        },
        "code": {
          "title": "权限编码 | [EN] Permission code",
          "type": "string"
        },
        "data_scope_mode": {
          "$ref": "#/definitions/access_controlDataScopeMode",
          "title": "数据范围模式 | [EN] Data scope mode"
        }
      },
      "title": "权限目录的一项：组织域按钮的编码与位序号；停用的也列出（位序号不复用），由 status 区分\n[EN] One catalog entry: an org-domain action's code and bit; disabled ones are listed too, since bits are\nnever reused, and status tells them apart",
      "type": "object"
    },
    "access_controlPermissionCatalogResponse": {
      "properties": {
        "entries": {
          "items": {
            "$ref": "#/definitions/access_controlPermissionCatalogEntry",
            "type": "object"
          },
          "title": "条目，按位序号升序 | [EN] Entries in bit order",
          "type": "array"
        },
        "revision": {
          "title": "目录指纹，内容不变它就不变 | [EN] Catalog fingerprint, stable while the content is",
          "type": "string"
        },
        "routes": {
          "items": {
            "$ref": "#/definitions/access_controlPermissionRoute",
            "type": "object"
          },
          "title": "路由权限，按方法 + 路径 | [EN] Route permissions by method + path",
          "type": "array"
        }
      },
      "title": "权限目录响应：验签方按它把令牌里的 pm 位图解成权限编码\n[EN] Permission catalog response, which verifiers use to decode the token's pm bitmap into codes",
      "type": "object"
    },
    "access_controlPermissionGrant": {
      "properties": {
        "code": {
          "title": "权限编码 | [EN] Permission code",
          "type": "string"
        },
        "data_scope": {
          "$ref": "#/definitions/enumsDataScope",
          "title": "数据范围（纯开关类为 UNSPECIFIED）| [EN] Data scope, UNSPECIFIED for plain switches"
        }
      },
      "title": "权限点授权：权限编码与生效的数据范围\n[EN] Permission grant: code and effective data scope",
      "type": "object"
    },
    "access_controlPermissionInfo": {
      "description": "组织域的按钮带位序号：令牌里的 pm 位图按它编码，一经分配不改不复用；运维域的接口按 path + method 编成 Casbin 策略\n\n[EN] A permission node: menus, actions and APIs share one tree per domain, without versions. Org-domain actions\ncarry a bit that encodes the token's pm bitmap and is never changed or reused; ops-domain APIs compile into\nCasbin policies by path and method.",
      "properties": {
        "active_menu": {
          "title": "高亮的菜单路径 | [EN] Menu path to highlight",
          "type": "string"
        },
        "bit": {
          "format": "int32",
          "title": "位序号（组织域按钮），0 为不进位图 | [EN] Bitmap bit for org actions; 0 means not in the bitmap",
          "type": "integer"
        },
        "code": {
          "title": "权限编码，域内唯一 | [EN] Permission code, unique within the domain",
          "type": "string"
        },
        "component": {
          "title": "菜单组件 | [EN] Menu component",
          "type": "string"
        },
        "created_at": {
          "format": "date-time",
          "title": "创建时间 | [EN] Created at",
          "type": "string"
        },
        "data_scope_mode": {
          "$ref": "#/definitions/access_controlDataScopeMode",
          "title": "数据范围模式（组织域按钮）| [EN] Data scope mode, org actions"
        },
        "description": {
          "title": "描述 | [EN] Description",
          "type": "string"
        },
        "domain": {
          "$ref": "#/definitions/enumsDomainType",
          "title": "所属身份域 | [EN] Domain"
        },
        "hidden": {
          "title": "是否在菜单里隐藏 | [EN] Hidden from the menu",
          "type": "boolean"
        },
        "i18n_key": {
          "title": "名称的多语言键 | [EN] i18n key of the name",
          "type": "string"
        },
        "icon": {
          "title": "图标 | [EN] Icon",
          "type": "string"
        },
        "id": {
          "title": "节点 ID | [EN] Node ID",
          "type": "string"
        },
        "keep_alive": {
          "title": "是否缓存页面 | [EN] Keep the page alive",
          "type": "boolean"
        },
        "layout": {
          "$ref": "#/definitions/access_controlMenuLayout",
          "title": "布局（菜单）| [EN] Layout, for menus"
        },
        "method": {
          "$ref": "#/definitions/access_controlHttpMethod",
          "title": "接口方法（接口节点）| [EN] API method, for API nodes"
        },
        "name": {
          "title": "名称 | [EN] Name",
          "type": "string"
        },
        "parent_id": {
          "title": "父节点 ID，根节点为空 | [EN] Parent ID, empty for roots",
          "type": "string"
        },
        "path": {
          "title": "菜单路由 | [EN] Menu route path",
          "type": "string"
        },
        "redirect": {
          "title": "重定向 | [EN] Redirect",
          "type": "string"
        },
        "sort": {
          "format": "int32",
          "title": "排序，越小越靠前 | [EN] Sort order, ascending",
          "type": "integer"
        },
        "status": {
          "$ref": "#/definitions/enumsCommonStatus",
          "title": "状态 | [EN] Status"
        },
        "type": {
          "$ref": "#/definitions/access_controlPermissionType",
          "title": "节点类型 | [EN] Node type"
        },
        "updated_at": {
          "format": "date-time",
          "title": "更新时间 | [EN] Updated at",
          "type": "string"
        },
        "url_pattern": {
          "title": "接口路径（接口节点，keyMatch2）| [EN] API path pattern, keyMatch2",
          "type": "string"
        },
        "version": {
          "format": "int32",
          "title": "行版本（乐观锁）| [EN] Row version for optimistic locking",
          "type": "integer"
        }
      },
      "title": "权限节点：菜单、按钮与接口在同一棵树上，每个身份域各一棵，不分版本",
      "type": "object"
    },
    "access_controlPermissionNode": {
      "properties": {
        "children": {
          "items": {
            "$ref": "#/definitions/access_controlPermissionNode",
            "type": "object"
          },
          "title": "子节点 | [EN] Children",
          "type": "array"
        },
        "permission": {
          "$ref": "#/definitions/access_controlPermissionInfo",
          "title": "节点 | [EN] Node"
        }
      },
      "title": "权限树节点\n[EN] A node of the permission tree",
      "type": "object"
    },
    "access_controlPermissionRoute": {
      "properties": {
        "codes": {
          "items": {
            "type": "string"
          },
          "title": "需要的权限编码 | [EN] Required permission codes",
          "type": "array"
        },
        "match": {
          "$ref": "#/definitions/access_controlRouteMatch",
          "title": "全部或任意一个 | [EN] All or any"
        },
        "method": {
          "title": "HTTP 方法 | [EN] HTTP method",
          "type": "string"
        },
        "path": {
          "title": "keyMatch2 路径 | [EN] keyMatch2 path",
          "type": "string"
        }
      },
      "title": "路由权限：RPC 的 HTTP 方法 + keyMatch2 路径对应的权限编码，供业务服务本地按路由判权\n[EN] Route permissions: the HTTP method and keyMatch2 path of an RPC mapped to permission codes, for business\nservices to authorize locally by route",
      "type": "object"
    },
    "access_controlPermissionTreeResponse": {
      "properties": {
        "tree": {
          "items": {
            "$ref": "#/definitions/access_controlPermissionNode",
            "type": "object"
          },
          "title": "权限树 | [EN] Permission tree",
          "type": "array"
        }
      },
      "title": "权限树响应\n[EN] Permission tree response",
      "type": "object"
    },
    "access_controlPermissionType": {
      "default": "PERMISSION_TYPE_UNSPECIFIED",
      "description": "- PERMISSION_TYPE_UNSPECIFIED: 未指定 | [EN] Unspecified\n - PERMISSION_TYPE_MENU: 菜单 | [EN] Menu\n - PERMISSION_TYPE_ACTION: 按钮 / 权限点 | [EN] Action, a permission point\n - PERMISSION_TYPE_API: 接口（运维域）| [EN] API, ops domain",
      "enum": [
        "PERMISSION_TYPE_UNSPECIFIED",
        "PERMISSION_TYPE_MENU",
        "PERMISSION_TYPE_ACTION",
        "PERMISSION_TYPE_API"
      ],
      "title": "权限节点类型：菜单与按钮给前端渲染，接口给运维域编成 Casbin 策略\n[EN] Permission node type: menus and actions drive the frontend, APIs compile into ops-domain Casbin policies",
      "type": "string"
    },
    "access_controlPresenceChangeSource": {
      "default": "PRESENCE_CHANGE_SOURCE_UNSPECIFIED",
      "description": "- PRESENCE_CHANGE_SOURCE_UNSPECIFIED: 未指定 | [EN] Unspecified\n - PRESENCE_CHANGE_SOURCE_LOGIN_INIT: 登录初始化 | [EN] Login init\n - PRESENCE_CHANGE_SOURCE_ACTIVITY_RESUMED: 恢复操作 | [EN] Activity resumed\n - PRESENCE_CHANGE_SOURCE_LEASE_EXPIRED: 存活或无操作期限到期 | [EN] Lease or idle expired\n - PRESENCE_CHANGE_SOURCE_MANUAL: 手动切换 | [EN] Manual switch\n - PRESENCE_CHANGE_SOURCE_LOGOUT: 登出 | [EN] Logout",
      "enum": [
        "PRESENCE_CHANGE_SOURCE_UNSPECIFIED",
        "PRESENCE_CHANGE_SOURCE_LOGIN_INIT",
        "PRESENCE_CHANGE_SOURCE_ACTIVITY_RESUMED",
        "PRESENCE_CHANGE_SOURCE_LEASE_EXPIRED",
        "PRESENCE_CHANGE_SOURCE_MANUAL",
        "PRESENCE_CHANGE_SOURCE_LOGOUT"
      ],
      "title": "接待状态变更来源：为什么从一个状态切到另一个 | [EN] Why a reception status changed",
      "type": "string"
    },
    "access_controlPresenceLogInfo": {
      "properties": {
        "account": {
          "title": "成员显示名，读时回查 | [EN] Member display name, resolved on read",
          "type": "string"
        },
        "account_id": {
          "title": "成员 ID | [EN] Account ID",
          "type": "string"
        },
        "avatar": {
          "title": "成员头像，读时回查 | [EN] Member avatar, resolved on read",
          "type": "string"
        },
        "change_source": {
          "$ref": "#/definitions/access_controlPresenceChangeSource",
          "title": "变更来源 | [EN] Change source"
        },
        "duration_ms": {
          "format": "int64",
          "title": "上一状态持续时长（毫秒）| [EN] How long the previous status lasted, in milliseconds",
          "type": "string"
        },
        "from_status": {
          "$ref": "#/definitions/enumsOnlineStatus",
          "title": "变更前状态 | [EN] Status before the change"
        },
        "id": {
          "title": "日志 ID | [EN] Log ID",
          "type": "string"
        },
        "occurred_at": {
          "format": "date-time",
          "title": "发生时间 | [EN] When it happened",
          "type": "string"
        },
        "org_id": {
          "title": "组织 ID | [EN] Organization ID",
          "type": "string"
        },
        "to_status": {
          "$ref": "#/definitions/enumsOnlineStatus",
          "title": "变更后状态 | [EN] Status after the change"
        },
        "workspace_id": {
          "title": "工作区 ID | [EN] Workspace ID",
          "type": "string"
        }
      },
      "title": "在线日志：一次接待状态变更（上一状态持续多久、为什么切、切到哪）。account 与 avatar 读时按 account_id 回查成员资料补上，\n不入库；状态与来源存编号\n[EN] A presence log: one reception-status change, how long the previous status lasted, why it switched and to what.\naccount and avatar are resolved on read from the membership by account_id, not stored; status and source are numbers",
      "type": "object"
    },
    "access_controlPresenceLogListResponse": {
      "properties": {
        "list": {
          "items": {
            "$ref": "#/definitions/access_controlPresenceLogInfo",
            "type": "object"
          },
          "title": "日志，新的在前 | [EN] Entries, newest first",
          "type": "array"
        },
        "page_response": {
          "$ref": "#/definitions/commonPaging",
          "title": "分页 | [EN] Paging"
        }
      },
      "title": "在线日志列表响应\n[EN] List presence logs response",
      "type": "object"
    },
    "access_controlPrincipalInfo": {
      "properties": {
        "avatar_url": {
          "title": "头像 | [EN] Avatar URL",
          "type": "string"
        },
        "created_at": {
          "format": "date-time",
          "title": "创建时间 | [EN] Created at",
          "type": "string"
        },
        "display_name": {
          "title": "显示名 | [EN] Display name",
          "type": "string"
        },
        "domain": {
          "$ref": "#/definitions/enumsDomainType",
          "title": "身份域 | [EN] Identity domain"
        },
        "email": {
          "title": "邮箱 | [EN] Email",
          "type": "string"
        },
        "id": {
          "title": "身份主体 ID | [EN] Principal ID",
          "type": "string"
        },
        "last_login_at": {
          "format": "date-time",
          "title": "最近登录时间 | [EN] Last login time",
          "type": "string"
        },
        "locked_until": {
          "format": "date-time",
          "title": "登录锁定截止时间，未锁定为空 | [EN] Login lock expiry; empty when not locked",
          "type": "string"
        },
        "login_account": {
          "title": "登录账号 | [EN] Login account",
          "type": "string"
        },
        "mfa_enabled": {
          "title": "是否已启用二次验证 | [EN] Whether MFA is enabled",
          "type": "boolean"
        },
        "must_change_password": {
          "title": "下次登录须改密 | [EN] Must change password at next login",
          "type": "boolean"
        },
        "online_status": {
          "$ref": "#/definitions/enumsOnlineStatus",
          "title": "在线状态；组织域取当前工作区的成员记录 | [EN] Online status; the org domain reads the current workspace membership"
        },
        "phone": {
          "title": "手机号（E.164）| [EN] Phone number (E.164)",
          "type": "string"
        },
        "remark": {
          "title": "备注 | [EN] Remark",
          "type": "string"
        },
        "status": {
          "$ref": "#/definitions/enumsPrincipalStatus",
          "title": "状态 | [EN] Status"
        },
        "timezone": {
          "title": "时区（IANA）| [EN] Time zone, IANA",
          "type": "string"
        },
        "updated_at": {
          "format": "date-time",
          "title": "更新时间 | [EN] Updated at",
          "type": "string"
        }
      },
      "title": "身份主体：一个人在一个身份域里的身份，凭据、二次验证都挂在它上面\n[EN] Principal: one person's identity within one domain; credentials and MFA attach to it",
      "type": "object"
    },
    "access_controlRedactedField": {
      "default": "REDACTED_FIELD_UNSPECIFIED",
      "description": "- REDACTED_FIELD_UNSPECIFIED: 未指定 | [EN] Unspecified\n - REDACTED_FIELD_PHONE: 电话 | [EN] Phone number\n - REDACTED_FIELD_EMAIL: 邮箱 | [EN] Email",
      "enum": [
        "REDACTED_FIELD_UNSPECIFIED",
        "REDACTED_FIELD_PHONE",
        "REDACTED_FIELD_EMAIL"
      ],
      "title": "字段脱敏类限制遮住的字段 | [EN] Fields a field-redaction restriction masks",
      "type": "string"
    },
    "access_controlRefreshTokenRequest": {
      "properties": {
        "domain": {
          "$ref": "#/definitions/enumsDomainType",
          "title": "会话所在的身份域 | [EN] The session's domain"
        },
        "refresh_token": {
          "maxLength": 256,
          "title": "刷新令牌 | [EN] Refresh token",
          "type": "string"
        }
      },
      "required": [
        "refresh_token",
        "domain"
      ],
      "title": "刷新令牌请求\n[EN] Refresh token request",
      "type": "object"
    },
    "access_controlRefreshTokenResponse": {
      "properties": {
        "tokens": {
          "$ref": "#/definitions/access_controlTokenPair",
          "title": "新的令牌对 | [EN] New token pair"
        }
      },
      "title": "刷新令牌响应\n[EN] Refresh token response",
      "type": "object"
    },
    "access_controlRegisterEmailCodeSendRequest": {
      "properties": {
        "email": {
          "format": "email",
          "maxLength": 128,
          "title": "注册邮箱 | [EN] Sign-up email",
          "type": "string"
        }
      },
      "required": [
        "email"
      ],
      "title": "发注册验证码请求\n[EN] Send a sign-up code request",
      "type": "object"
    },
    "access_controlRegisterEmailCodeSendResponse": {
      "properties": {
        "expire_at": {
          "format": "date-time",
          "title": "验证码过期时间 | [EN] Code expiry",
          "type": "string"
        },
        "resend_available_at": {
          "format": "date-time",
          "title": "何时可以再发 | [EN] When another code can be sent",
          "type": "string"
        }
      },
      "title": "发注册验证码响应\n[EN] Send a sign-up code response",
      "type": "object"
    },
    "access_controlRegisterPhoneCodeSendRequest": {
      "properties": {
        "phone": {
          "title": "注册手机号（E.164）| [EN] Sign-up phone number in E.164",
          "type": "string"
        }
      },
      "required": [
        "phone"
      ],
      "title": "发手机注册验证码请求\n[EN] Send a phone sign-up code request",
      "type": "object"
    },
    "access_controlRegisterPhoneCodeSendResponse": {
      "properties": {
        "expire_at": {
          "format": "date-time",
          "title": "验证码过期时间 | [EN] Code expiry",
          "type": "string"
        },
        "resend_available_at": {
          "format": "date-time",
          "title": "何时可以再发 | [EN] When another code can be sent",
          "type": "string"
        }
      },
      "title": "发手机注册验证码响应\n[EN] Send a phone sign-up code response",
      "type": "object"
    },
    "access_controlRegisterRequest": {
      "properties": {
        "country": {
          "maxLength": 2,
          "minLength": 2,
          "title": "国家/地区（ISO 3166-1 两位大写，如 CN、SG）| [EN] Country or region, two upper-case ISO 3166-1 letters such as CN or SG",
          "type": "string"
        },
        "device_id": {
          "maxLength": 128,
          "title": "设备标识 | [EN] Device ID",
          "type": "string"
        },
        "display_name": {
          "maxLength": 64,
          "title": "显示名，不传取邮箱前缀或手机号 | [EN] Display name; the email local part or the phone number when omitted",
          "type": "string"
        },
        "email": {
          "format": "email",
          "maxLength": 128,
          "title": "注册邮箱（与手机号二选一）| [EN] Sign-up email, one of email or phone",
          "type": "string"
        },
        "email_code": {
          "maxLength": 16,
          "title": "邮箱验证码（与手机号二选一）| [EN] Email code, one of email or phone",
          "type": "string"
        },
        "industry": {
          "maxLength": 64,
          "title": "行业分类编码（配置中心公开字典 org.industry）| [EN] Industry code from the config center's public org.industry dictionary",
          "type": "string"
        },
        "key_id": {
          "maxLength": 64,
          "title": "临时公钥 ID；不传按明文，仅兼容旧客户端 | [EN] Temporary key id; without it the password is plain text, for older clients only",
          "type": "string"
        },
        "org_name": {
          "maxLength": 64,
          "title": "组织名称，注册人必须填写 | [EN] Organization name, required at sign-up",
          "type": "string"
        },
        "partner_code": {
          "maxLength": 64,
          "title": "合伙人编号，只在合伙人推荐时填；注册人自填，合伙人名册上线前不核对 | [EN] Partner code, only for partner referrals; self-reported and unverified until a partner registry exists",
          "type": "string"
        },
        "password": {
          "maxLength": 1024,
          "title": "密码（满足组织域的密码策略）；带 key_id 时为 RSA-OAEP 密文的 Base64 | [EN] Password meeting the org domain's policy; the Base64 of RSA-OAEP ciphertext when key_id is set",
          "type": "string"
        },
        "phone": {
          "title": "注册手机号（E.164，与邮箱二选一）| [EN] Sign-up phone number in E.164, one of email or phone",
          "type": "string"
        },
        "phone_code": {
          "maxLength": 16,
          "title": "手机验证码（与邮箱二选一）| [EN] Phone code, one of email or phone",
          "type": "string"
        },
        "scale": {
          "maxLength": 64,
          "title": "公司规模编码（配置中心公开字典 org.scale）| [EN] Company size code from the config center's public org.scale dictionary",
          "type": "string"
        },
        "source": {
          "$ref": "#/definitions/enumsOrgSource",
          "title": "注册来源，不传按自然注册；销售开通由运维设置，传它回 org_source_not_allowed | [EN] Sign-up source, organic when omitted; sales-opened is set by ops and refused here"
        }
      },
      "required": [
        "password",
        "org_name"
      ],
      "title": "注册入驻请求：邮箱或手机号二选一，用验证码证明联系方式是自己的，设置密码、显示名与组织名称\n[EN] Tenant sign-up request: either an email or a phone proves the contact, with a password, display name and\norganization name set",
      "type": "object"
    },
    "access_controlRestrictionItem": {
      "properties": {
        "applicable_role_ids": {
          "items": {
            "type": "string"
          },
          "title": "本工作区里适用的角色 ID；选项接口里再与调用方能分配的取交集 | [EN] IDs of the applicable roles in this workspace, intersected with the roles the caller may assign in the options call",
          "type": "array"
        },
        "code": {
          "$ref": "#/definitions/enumsRestrictionCode",
          "title": "编码 | [EN] Code"
        },
        "fields": {
          "items": {
            "$ref": "#/definitions/access_controlRedactedField"
          },
          "title": "脱敏的字段（字段脱敏类）| [EN] Redacted fields, for field redaction",
          "type": "array"
        },
        "permission_codes": {
          "items": {
            "type": "string"
          },
          "title": "关联的权限编码：开关撤掉它们，范围收窄它们 | [EN] Linked permission codes: switches revoke them, scopes narrow them",
          "type": "array"
        },
        "role_codes": {
          "items": {
            "type": "string"
          },
          "title": "适用的角色编码 | [EN] Codes of the roles it applies to",
          "type": "array"
        },
        "scope_options": {
          "items": {
            "$ref": "#/definitions/access_controlRestrictionScopeOption",
            "type": "object"
          },
          "title": "可选范围（权限范围类）| [EN] Selectable scopes, for permission scopes",
          "type": "array"
        },
        "sort": {
          "format": "int32",
          "title": "排序 | [EN] Sort order",
          "type": "integer"
        },
        "type": {
          "$ref": "#/definitions/access_controlRestrictionType",
          "title": "类型 | [EN] Type"
        }
      },
      "title": "高级限制目录里的一项；名称与说明由前端按编码（RESTRICTION_CODE_*）本地化\n[EN] One item of the restriction catalog; frontends localize the name and description by code (RESTRICTION_CODE_*)",
      "type": "object"
    },
    "access_controlRestrictionScopeOption": {
      "properties": {
        "role_codes": {
          "items": {
            "type": "string"
          },
          "title": "可选这个范围的角色编码 | [EN] Codes of the roles that may select it",
          "type": "array"
        },
        "scope": {
          "$ref": "#/definitions/enumsDataScope",
          "title": "范围 | [EN] Scope"
        }
      },
      "title": "权限范围类限制的一个可选范围，以及可以选它的角色\n[EN] One selectable scope of a permission-scope restriction and the roles that may select it",
      "type": "object"
    },
    "access_controlRestrictionType": {
      "default": "RESTRICTION_TYPE_UNSPECIFIED",
      "description": "- RESTRICTION_TYPE_UNSPECIFIED: 未指定 | [EN] Unspecified\n - RESTRICTION_TYPE_PERMISSION_SCOPE: 收窄关联权限点的数据范围 | [EN] Narrows the data scope of the linked permissions\n - RESTRICTION_TYPE_PERMISSION_SWITCH: 开启即撤掉关联权限点 | [EN] When on, revokes the linked permissions\n - RESTRICTION_TYPE_FIELD_REDACTION: 字段脱敏，业务服务按令牌的 rc 处理 | [EN] Field redaction, applied by business services from the token's rc\n - RESTRICTION_TYPE_CLIENT_BEHAVIOR: 客户端行为（如静默查看），不改授权 | [EN] Client behaviour such as silent viewing, leaving grants alone",
      "enum": [
        "RESTRICTION_TYPE_UNSPECIFIED",
        "RESTRICTION_TYPE_PERMISSION_SCOPE",
        "RESTRICTION_TYPE_PERMISSION_SWITCH",
        "RESTRICTION_TYPE_FIELD_REDACTION",
        "RESTRICTION_TYPE_CLIENT_BEHAVIOR"
      ],
      "title": "高级限制的类型 | [EN] Restriction type",
      "type": "string"
    },
    "access_controlRoleGrant": {
      "properties": {
        "data_scope": {
          "$ref": "#/definitions/enumsDataScope",
          "title": "数据范围 | [EN] Data scope"
        },
        "permission_id": {
          "maxLength": 64,
          "title": "权限节点 ID | [EN] Permission node ID",
          "type": "string"
        }
      },
      "required": [
        "permission_id"
      ],
      "title": "角色的一项授权：权限节点与数据范围（数据范围只对组织域带范围的按钮有意义）\n[EN] One grant of a role: a permission node and its data scope, meaningful only for scoped org actions",
      "type": "object"
    },
    "access_controlRoleInfo": {
      "properties": {
        "account_count": {
          "format": "int64",
          "title": "绑定的账号数 | [EN] Number of bound accounts",
          "type": "string"
        },
        "assignable": {
          "title": "组织域：能否分配给成员（所有者不能）；运维域为假 | [EN] Org domain: whether accounts can be given the role, never the owner; false in the ops domain",
          "type": "boolean"
        },
        "code": {
          "title": "角色编码；运维域即 Casbin 主体 | [EN] Role code; the Casbin subject in the ops domain",
          "type": "string"
        },
        "created_at": {
          "format": "date-time",
          "title": "创建时间 | [EN] Created at",
          "type": "string"
        },
        "description": {
          "items": {
            "$ref": "#/definitions/commonLocalizedText",
            "type": "object"
          },
          "title": "描述（按语言）| [EN] Description per language",
          "type": "array"
        },
        "domain": {
          "$ref": "#/definitions/enumsDomainType",
          "title": "所属身份域 | [EN] Domain"
        },
        "grants": {
          "items": {
            "$ref": "#/definitions/access_controlRoleGrant",
            "type": "object"
          },
          "title": "授权（只在详情里返回）| [EN] Grants, returned by detail queries only",
          "type": "array"
        },
        "id": {
          "title": "角色 ID | [EN] Role ID",
          "type": "string"
        },
        "is_builtin": {
          "title": "是否内置（内置角色不可删除）| [EN] Built in; built-in roles cannot be deleted",
          "type": "boolean"
        },
        "name": {
          "items": {
            "$ref": "#/definitions/commonLocalizedText",
            "type": "object"
          },
          "title": "名称（按语言）| [EN] Name per language",
          "type": "array"
        },
        "org_id": {
          "title": "组织 ID（组织域）| [EN] Organization ID, org domain",
          "type": "string"
        },
        "permission_count": {
          "format": "int32",
          "title": "授权节点数（列表也返回，详情里与 grants 等长）| [EN] Number of granted nodes, also in lists; equals len(grants) in details",
          "type": "integer"
        },
        "rank": {
          "format": "int32",
          "title": "组织域：角色等级 1..1000，只能操作等级更低的成员；运维域为 0 | [EN] Org domain: rank 1..1000, accounts act only on lower ranks; 0 in the ops domain",
          "type": "integer"
        },
        "sort": {
          "format": "int32",
          "title": "排序 | [EN] Sort order",
          "type": "integer"
        },
        "status": {
          "$ref": "#/definitions/enumsCommonStatus",
          "title": "状态 | [EN] Status"
        },
        "updated_at": {
          "format": "date-time",
          "title": "更新时间 | [EN] Updated at",
          "type": "string"
        },
        "version": {
          "format": "int32",
          "title": "行版本（乐观锁）| [EN] Row version for optimistic locking",
          "type": "integer"
        },
        "workspace_id": {
          "title": "工作区 ID（组织域）| [EN] Workspace ID, org domain",
          "type": "string"
        }
      },
      "title": "角色：运维域全局一套；组织域每个工作区一套\n[EN] A role: one global set in the ops domain, one set per workspace in the org domain",
      "type": "object"
    },
    "access_controlRoleRef": {
      "properties": {
        "code": {
          "title": "角色编码 | [EN] Role code",
          "type": "string"
        },
        "id": {
          "title": "角色 ID | [EN] Role ID",
          "type": "string"
        },
        "name": {
          "items": {
            "$ref": "#/definitions/commonLocalizedText",
            "type": "object"
          },
          "title": "名称（按语言）| [EN] Name per language",
          "type": "array"
        },
        "rank": {
          "format": "int32",
          "title": "等级 | [EN] Rank",
          "type": "integer"
        }
      },
      "title": "角色摘要\n[EN] Role summary",
      "type": "object"
    },
    "access_controlRoleTemplateInfo": {
      "description": "模板改了副本一起改：名称、描述、排序、等级、可分配随改随同步；授权整组替换时副本一起换，持有者的旧令牌随之落后；\n新建、启用或扩大适用组织时补齐缺的副本。授权只能是组织域权限树的菜单与按钮，数据范围只在带范围的按钮上有意义。\n等级决定能操作谁：成员只能分配等级比自己低的可分配角色、只能操作等级比自己低的成员\n\n[EN] A role template. Every workspace it applies to holds a built-in copy, and accounts' roles are those copies;\norganizations cannot create, edit or delete roles. Template edits reach the copies: name, description, sort,\nrank and assignable sync on save, replacing grants replaces the copies' grants and makes holders' old tokens\nstale, and creating, enabling or widening a template fills in missing copies. Grants are org-tree menus and\nactions only, and a data scope only matters on scoped actions. Rank decides who may act on whom: accounts give\nout only assignable roles ranked below their own and act only on accounts ranked below them.",
      "properties": {
        "apply_all_orgs": {
          "title": "适用全部组织；为假时只适用 org_ids | [EN] Applies to every organization; otherwise only to org_ids",
          "type": "boolean"
        },
        "assignable": {
          "title": "复制出的角色能否分配给成员（所有者不能）| [EN] Whether accounts can be given the copied roles; never the owner",
          "type": "boolean"
        },
        "code": {
          "title": "复制出的角色编码 | [EN] Code of the roles copied from it",
          "type": "string"
        },
        "created_at": {
          "format": "date-time",
          "title": "创建时间 | [EN] Created at",
          "type": "string"
        },
        "description": {
          "items": {
            "$ref": "#/definitions/commonLocalizedText",
            "type": "object"
          },
          "title": "描述（按语言）| [EN] Description per language",
          "type": "array"
        },
        "grants": {
          "items": {
            "$ref": "#/definitions/access_controlRoleGrant",
            "type": "object"
          },
          "title": "授权（只在详情里返回）| [EN] Grants, returned by detail queries only",
          "type": "array"
        },
        "id": {
          "title": "模板 ID | [EN] Template ID",
          "type": "string"
        },
        "is_builtin": {
          "title": "是否内置：owner/admin/supervisor/agent 每个组织必备，运维不能指定组织、停用或删除 | [EN] Built-in: owner/admin/supervisor/agent required by every org; ops cannot restrict, disable or delete",
          "type": "boolean"
        },
        "name": {
          "items": {
            "$ref": "#/definitions/commonLocalizedText",
            "type": "object"
          },
          "title": "名称（按语言）| [EN] Name per language",
          "type": "array"
        },
        "org_ids": {
          "items": {
            "type": "string"
          },
          "title": "适用的组织（只在详情里返回）| [EN] Organizations it applies to, returned by detail queries only",
          "type": "array"
        },
        "rank": {
          "format": "int32",
          "title": "等级 1..1000，复制出的角色带着它；只能操作等级更低的成员 | [EN] Rank 1..1000, carried by the copied roles; accounts act only on lower ranks",
          "type": "integer"
        },
        "sort": {
          "format": "int32",
          "title": "排序 | [EN] Sort order",
          "type": "integer"
        },
        "status": {
          "$ref": "#/definitions/enumsCommonStatus",
          "title": "状态；停用的模板不再复制 | [EN] Status; a disabled template is not copied"
        },
        "updated_at": {
          "format": "date-time",
          "title": "更新时间 | [EN] Updated at",
          "type": "string"
        },
        "version": {
          "format": "int32",
          "title": "行版本（乐观锁）| [EN] Row version for optimistic locking",
          "type": "integer"
        }
      },
      "title": "角色模板：每个适用的工作区里有它的一个内置副本（成员的角色就是这些副本），组织不能建、改、删角色",
      "type": "object"
    },
    "access_controlRoleUpdateResponse": {
      "properties": {
        "role": {
          "$ref": "#/definitions/access_controlRoleInfo",
          "title": "角色 | [EN] Role"
        }
      },
      "title": "更新角色响应\n[EN] Update role response",
      "type": "object"
    },
    "access_controlRouteMatch": {
      "default": "ROUTE_MATCH_ALL",
      "description": "- ROUTE_MATCH_ALL: 零值已发布为 ALL，改名会改变 JSON 里的枚举名 | [EN] The zero value is already published as ALL; renaming it would change the JSON enum name\nbuf:lint:ignore ENUM_ZERO_VALUE_SUFFIX\n\n全部满足 | [EN] All codes required\n - ROUTE_MATCH_ANY: 任意一个 | [EN] Any one code is enough",
      "enum": [
        "ROUTE_MATCH_ALL",
        "ROUTE_MATCH_ANY"
      ],
      "title": "路由权限匹配方式：一条路由对应多个权限点时，全部满足还是任意一个即可\n[EN] How a route's multiple permission codes combine: all of them or any one",
      "type": "string"
    },
    "access_controlSecurityRule": {
      "properties": {
        "action": {
          "$ref": "#/definitions/access_controlSecurityRuleAction",
          "title": "动作 | [EN] Action"
        },
        "enabled": {
          "title": "是否生效；关着的不计数也不拦 | [EN] Whether it applies; a disabled rule neither counts nor refuses",
          "type": "boolean"
        },
        "per_ip_daily": {
          "format": "int32",
          "maximum": 100000,
          "minimum": 1,
          "title": "同一来源 IP 每天最多几次 | [EN] Times per source IP per day",
          "type": "integer"
        }
      },
      "required": [
        "action"
      ],
      "title": "一条安全规则：同一来源 IP 每个自然日（UTC）最多做几次这个动作\n[EN] One security rule: how many times one source IP may take the action per calendar day in UTC",
      "type": "object"
    },
    "access_controlSecurityRuleAction": {
      "default": "SECURITY_RULE_ACTION_UNSPECIFIED",
      "description": "- SECURITY_RULE_ACTION_UNSPECIFIED: 未指定 | [EN] Unspecified\n - SECURITY_RULE_ACTION_ORG_CREATE: 建组织：邮箱、手机号注册与 Google 首次登录 | [EN] Organization created by email, phone or first Google sign-up\n - SECURITY_RULE_ACTION_WORKSPACE_CREATE: 组织后台新建工作区，注册自带的默认工作区不算 | [EN] Workspace created in the org console, not the default one a sign-up brings\n - SECURITY_RULE_ACTION_CODE_SEND: 发验证码：短信与邮件合计 | [EN] Verification code sent, SMS and email together",
      "enum": [
        "SECURITY_RULE_ACTION_UNSPECIFIED",
        "SECURITY_RULE_ACTION_ORG_CREATE",
        "SECURITY_RULE_ACTION_WORKSPACE_CREATE",
        "SECURITY_RULE_ACTION_CODE_SEND"
      ],
      "title": "安全规则管的动作：同一来源 IP 每个自然日（UTC）最多做几次\n[EN] Actions under security rules, capped per source IP and calendar day in UTC",
      "type": "string"
    },
    "access_controlSecurityRules": {
      "description": "IPv4 按地址计，IPv6 按 /64 计；没有来源 IP 的服务间调用不计\n\n[EN] Security rules, platform-wide and maintained by ops, not split by domain; a read carries one rule per action,\ndefaults for those never saved. IPv4 counts by address and IPv6 by /64; service calls without a source IP do not count.",
      "properties": {
        "exempt_cidrs": {
          "items": {
            "type": "string"
          },
          "maxItems": 100,
          "title": "不受规则约束的网段（CIDR，单个地址写 /32 或 /128），最多 100 个 | [EN] Exempt networks, CIDR with /32 or /128 for one address, at most 100",
          "type": "array"
        },
        "rules": {
          "items": {
            "$ref": "#/definitions/access_controlSecurityRule",
            "type": "object"
          },
          "maxItems": 16,
          "title": "规则，每个动作至多一条 | [EN] Rules, at most one per action",
          "type": "array"
        },
        "updated_at": {
          "format": "date-time",
          "title": "更新时间 | [EN] Updated at",
          "type": "string"
        },
        "version": {
          "format": "int32",
          "title": "行版本（乐观锁）| [EN] Row version for optimistic locking",
          "type": "integer"
        }
      },
      "title": "安全规则：平台级，由运维维护，不分身份域；读到的每个动作都有一条，没保存过的给默认值",
      "type": "object"
    },
    "access_controlSecuritySettings": {
      "properties": {
        "lock_duration_minutes": {
          "format": "int32",
          "maximum": 10080,
          "minimum": 1,
          "title": "锁定分钟数 | [EN] Lockout minutes",
          "type": "integer"
        },
        "max_active_sessions": {
          "format": "int32",
          "maximum": 100,
          "minimum": 1,
          "title": "每人同时有效的会话数 | [EN] Concurrent sessions per person",
          "type": "integer"
        },
        "max_login_attempts": {
          "format": "int32",
          "maximum": 100,
          "minimum": 3,
          "title": "连续失败多少次锁定 | [EN] Consecutive failures before lockout",
          "type": "integer"
        },
        "mfa_backup_code_count": {
          "format": "int32",
          "maximum": 20,
          "minimum": 4,
          "title": "恢复码个数 | [EN] Number of backup codes",
          "type": "integer"
        },
        "mfa_issuer": {
          "maxLength": 64,
          "title": "验证器里显示的签发方 | [EN] Issuer shown in authenticator apps",
          "type": "string"
        },
        "mfa_required": {
          "title": "是否强制二次验证 | [EN] Whether MFA is mandatory",
          "type": "boolean"
        },
        "password_expire_days": {
          "format": "int32",
          "maximum": 3650,
          "minimum": 0,
          "title": "密码有效天数，0 为不过期 | [EN] Password lifetime in days, 0 for never",
          "type": "integer"
        },
        "password_min_length": {
          "format": "int32",
          "maximum": 64,
          "minimum": 8,
          "title": "密码最短长度 | [EN] Minimum password length",
          "type": "integer"
        },
        "password_require_digit": {
          "title": "须含数字 | [EN] Require a digit",
          "type": "boolean"
        },
        "password_require_lower": {
          "title": "须含小写字母 | [EN] Require a lower-case letter",
          "type": "boolean"
        },
        "password_require_special": {
          "title": "须含特殊字符 | [EN] Require a special character",
          "type": "boolean"
        },
        "password_require_upper": {
          "title": "须含大写字母 | [EN] Require an upper-case letter",
          "type": "boolean"
        },
        "updated_at": {
          "format": "date-time",
          "title": "更新时间 | [EN] Updated at",
          "type": "string"
        },
        "version": {
          "format": "int32",
          "title": "行版本（乐观锁）| [EN] Row version for optimistic locking",
          "type": "integer"
        }
      },
      "required": [
        "mfa_issuer"
      ],
      "title": "一个身份域的安全策略，两个域各一份，互不影响\n[EN] Security settings of one domain; each domain has its own and they never affect each other",
      "type": "object"
    },
    "access_controlServiceConfig": {
      "properties": {
        "email": {
          "$ref": "#/definitions/access_controlServiceConfigEmail",
          "title": "邮件 | [EN] Email"
        },
        "google": {
          "$ref": "#/definitions/access_controlServiceConfigGoogle",
          "title": "Google | [EN] Google"
        },
        "invite": {
          "$ref": "#/definitions/access_controlServiceConfigInvite",
          "title": "邀请地址 | [EN] Invitation URL"
        },
        "oss": {
          "$ref": "#/definitions/access_controlServiceConfigOSS",
          "title": "对象存储 | [EN] Object storage"
        },
        "sms": {
          "$ref": "#/definitions/access_controlServiceConfigSMS",
          "title": "短信 | [EN] SMS"
        }
      },
      "title": "全域配置：按 key 只有对应子消息有意义 | [EN] All domains; only the sub-message matching a key is meaningful",
      "type": "object"
    },
    "access_controlServiceConfigEmail": {
      "properties": {
        "access_key_id": {
          "maxLength": 256,
          "title": "访问密钥 ID | [EN] Access key ID",
          "type": "string"
        },
        "access_key_secret": {
          "maxLength": 512,
          "title": "访问密钥（敏感）| [EN] Access key secret",
          "type": "string"
        },
        "account_name": {
          "maxLength": 256,
          "title": "发信地址 | [EN] From address",
          "type": "string"
        },
        "endpoint": {
          "maxLength": 256,
          "title": "端点 | [EN] Endpoint",
          "type": "string"
        },
        "from_alias": {
          "maxLength": 128,
          "title": "发信人显示名 | [EN] From alias",
          "type": "string"
        },
        "region_id": {
          "maxLength": 64,
          "title": "区域 | [EN] Region",
          "type": "string"
        }
      },
      "title": "邮件；access_key_secret 敏感 | [EN] Email; access_key_secret is masked on read",
      "type": "object"
    },
    "access_controlServiceConfigGoogle": {
      "properties": {
        "client_id": {
          "maxLength": 256,
          "title": "OAuth 客户端 ID | [EN] OAuth client ID",
          "type": "string"
        }
      },
      "title": "Google 登录；client_id 公开，不加密 | [EN] Google sign-in; client_id is public",
      "type": "object"
    },
    "access_controlServiceConfigInvite": {
      "properties": {
        "base_url": {
          "maxLength": 256,
          "title": "组织后台地址，邀请链接前缀 | [EN] Org console base URL",
          "type": "string"
        }
      },
      "title": "邀请地址；公开 | [EN] Invitation base URL; public",
      "type": "object"
    },
    "access_controlServiceConfigKey": {
      "default": "SERVICE_CONFIG_KEY_UNSPECIFIED",
      "description": "- SERVICE_CONFIG_KEY_OSS: 对象存储 | [EN] Object storage\n - SERVICE_CONFIG_KEY_SMS: 短信 | [EN] SMS\n - SERVICE_CONFIG_KEY_EMAIL: 邮件 | [EN] Email\n - SERVICE_CONFIG_KEY_GOOGLE: Google 登录 | [EN] Google sign-in\n - SERVICE_CONFIG_KEY_INVITE: 邀请地址 | [EN] Invitation base URL",
      "enum": [
        "SERVICE_CONFIG_KEY_UNSPECIFIED",
        "SERVICE_CONFIG_KEY_OSS",
        "SERVICE_CONFIG_KEY_SMS",
        "SERVICE_CONFIG_KEY_EMAIL",
        "SERVICE_CONFIG_KEY_GOOGLE",
        "SERVICE_CONFIG_KEY_INVITE"
      ],
      "title": "配置域 | [EN] Config domain",
      "type": "string"
    },
    "access_controlServiceConfigOSS": {
      "properties": {
        "access_key_id": {
          "maxLength": 256,
          "title": "访问密钥 ID | [EN] Access key ID",
          "type": "string"
        },
        "access_key_secret": {
          "maxLength": 512,
          "title": "访问密钥（敏感）| [EN] Access key secret",
          "type": "string"
        },
        "base_url": {
          "maxLength": 256,
          "title": "对象访问域名/CDN | [EN] Public base URL",
          "type": "string"
        },
        "bucket": {
          "maxLength": 128,
          "title": "桶 | [EN] Bucket",
          "type": "string"
        },
        "endpoint": {
          "maxLength": 256,
          "title": "服务端点 | [EN] Endpoint",
          "type": "string"
        },
        "path_prefix": {
          "maxLength": 128,
          "title": "Key 前缀 | [EN] Key prefix",
          "type": "string"
        },
        "provider": {
          "maxLength": 32,
          "title": "实现：s3/aliyun/minio/r2 | [EN] Provider",
          "type": "string"
        },
        "region": {
          "maxLength": 64,
          "title": "区域 | [EN] Region",
          "type": "string"
        }
      },
      "title": "对象存储；access_key_secret 敏感，读取时掩码 | [EN] Object storage; access_key_secret is masked on read",
      "type": "object"
    },
    "access_controlServiceConfigSMS": {
      "properties": {
        "access_key_id": {
          "maxLength": 256,
          "title": "访问密钥 ID | [EN] Access key ID",
          "type": "string"
        },
        "access_key_secret": {
          "maxLength": 512,
          "title": "访问密钥（敏感）| [EN] Access key secret",
          "type": "string"
        },
        "endpoint": {
          "maxLength": 256,
          "title": "端点 | [EN] Endpoint",
          "type": "string"
        },
        "provider": {
          "maxLength": 32,
          "title": "实现：aliyun | [EN] Provider",
          "type": "string"
        },
        "region_id": {
          "maxLength": 64,
          "title": "区域 | [EN] Region",
          "type": "string"
        },
        "sign_name": {
          "maxLength": 64,
          "title": "签名 | [EN] Sign name",
          "type": "string"
        },
        "template_code": {
          "maxLength": 64,
          "title": "默认模板 | [EN] Default template",
          "type": "string"
        },
        "templates": {
          "items": {
            "$ref": "#/definitions/access_controlServiceConfigSmsTemplate",
            "type": "object"
          },
          "maxItems": 16,
          "title": "按用途模板 | [EN] Per-purpose templates",
          "type": "array"
        }
      },
      "title": "短信；access_key_secret 敏感 | [EN] SMS; access_key_secret is masked on read",
      "type": "object"
    },
    "access_controlServiceConfigSmsTemplate": {
      "properties": {
        "en": {
          "maxLength": 64,
          "title": "国内英文 | [EN] Domestic en",
          "type": "string"
        },
        "international": {
          "maxLength": 64,
          "title": "国际 | [EN] International",
          "type": "string"
        },
        "purpose": {
          "maxLength": 32,
          "title": "register / bind-contact / reset-password | [EN] Purpose",
          "type": "string"
        },
        "zh": {
          "maxLength": 64,
          "title": "国内中文 | [EN] Domestic zh",
          "type": "string"
        }
      },
      "required": [
        "purpose"
      ],
      "title": "短信按用途的模板集：+86 用 zh/en，其他用 international | [EN] SMS templates per purpose",
      "type": "object"
    },
    "access_controlSessionContext": {
      "properties": {
        "account_id": {
          "title": "成员 ID（令牌里的 aid）| [EN] Account ID, the token's aid",
          "type": "string"
        },
        "is_current": {
          "title": "是否当前会话所在的上下文 | [EN] Whether this is the session's current context",
          "type": "boolean"
        },
        "is_org_admin": {
          "title": "是否组织管理员 | [EN] Whether an organization admin",
          "type": "boolean"
        },
        "org_id": {
          "title": "组织 ID | [EN] Organization ID",
          "type": "string"
        },
        "org_name": {
          "title": "组织名称 | [EN] Organization name",
          "type": "string"
        },
        "read_only": {
          "title": "观察者会话：只读，不能修改 | [EN] Observer session: read-only, no writes",
          "type": "boolean"
        },
        "role_code": {
          "title": "角色编码 | [EN] Role code",
          "type": "string"
        },
        "role_id": {
          "title": "角色 ID | [EN] Role ID",
          "type": "string"
        },
        "role_rank": {
          "format": "int32",
          "title": "当前角色在本工作区的等级；只能操作等级更低的成员 | [EN] Rank of the current role in this workspace; accounts act only on lower ranks",
          "type": "integer"
        },
        "team_id": {
          "title": "团队 ID | [EN] Team ID",
          "type": "string"
        },
        "team_name": {
          "title": "团队名称 | [EN] Team name",
          "type": "string"
        },
        "workspace_id": {
          "title": "工作区 ID | [EN] Workspace ID",
          "type": "string"
        },
        "workspace_name": {
          "title": "工作区名称 | [EN] Workspace name",
          "type": "string"
        }
      },
      "title": "会话上下文：组织域令牌所在的组织、工作区、团队与成员；运维域没有这一层\n[EN] Session context of an org-domain token: organization, workspace, team and account; the ops domain has none",
      "type": "object"
    },
    "access_controlSetOnlineStatusRequest": {
      "properties": {
        "online_status": {
          "$ref": "#/definitions/enumsOnlineStatus",
          "title": "目标接待状态，必填且不为未指定 | [EN] Target reception status, required and not unspecified"
        }
      },
      "required": [
        "online_status"
      ],
      "title": "设置本人接待状态请求：成员自助切换在线/忙碌/离线，不必整份资料回传\n[EN] Set own reception status request; a member toggles online/busy/offline without re-sending the whole profile",
      "type": "object"
    },
    "access_controlSetOnlineStatusResponse": {
      "properties": {
        "online_status": {
          "$ref": "#/definitions/enumsOnlineStatus",
          "title": "变更后的接待状态 | [EN] Reception status after the change"
        }
      },
      "title": "设置本人接待状态响应\n[EN] Set own reception status response",
      "type": "object"
    },
    "access_controlSwitchContextRequest": {
      "properties": {
        "new_session": {
          "title": "另开一个会话，而不是在当前会话里切换 | [EN] Fork a sibling session instead of switching the current one",
          "type": "boolean"
        },
        "workspace_id": {
          "maxLength": 64,
          "title": "目标工作区 | [EN] Target workspace",
          "type": "string"
        }
      },
      "required": [
        "workspace_id"
      ],
      "title": "切换工作区请求：默认在当前会话里切换；new_session 为真时另开一个会话（多标签页各管一个工作区），当前会话不受影响\n[EN] Switch workspace request: switches within the current session by default; new_session forks a sibling session, for one workspace per browser tab, leaving the current one untouched",
      "type": "object"
    },
    "access_controlSwitchContextResponse": {
      "properties": {
        "context": {
          "$ref": "#/definitions/access_controlSessionContext",
          "title": "新的会话上下文 | [EN] New session context"
        },
        "tokens": {
          "$ref": "#/definitions/access_controlTokenPair",
          "title": "新的令牌对 | [EN] New token pair"
        }
      },
      "title": "切换工作区响应\n[EN] Switch workspace response",
      "type": "object"
    },
    "access_controlTeamInfo": {
      "properties": {
        "id": {
          "title": "团队 ID | [EN] Team ID",
          "type": "string"
        },
        "is_default": {
          "title": "是否工作区的默认团队 | [EN] The workspace's default team",
          "type": "boolean"
        },
        "name": {
          "title": "名称 | [EN] Name",
          "type": "string"
        },
        "org_id": {
          "title": "组织 ID | [EN] Organization ID",
          "type": "string"
        },
        "status": {
          "$ref": "#/definitions/enumsCommonStatus",
          "title": "状态 | [EN] Status"
        },
        "workspace_id": {
          "title": "工作区 ID | [EN] Workspace ID",
          "type": "string"
        }
      },
      "title": "团队\n[EN] A team",
      "type": "object"
    },
    "access_controlTeamRef": {
      "properties": {
        "id": {
          "title": "团队 ID | [EN] Team ID",
          "type": "string"
        },
        "name": {
          "title": "名称 | [EN] Name",
          "type": "string"
        }
      },
      "title": "团队摘要\n[EN] Team summary",
      "type": "object"
    },
    "access_controlThirdPartyBinding": {
      "properties": {
        "bound_at": {
          "format": "date-time",
          "title": "绑定时间 | [EN] Bound at",
          "type": "string"
        },
        "email": {
          "title": "第三方账号的邮箱 | [EN] The third-party account's email",
          "type": "string"
        },
        "platform": {
          "$ref": "#/definitions/access_controlThirdPartyPlatform",
          "title": "平台 | [EN] Platform"
        }
      },
      "title": "账号上绑定的一个第三方身份\n[EN] One third-party identity bound to the account",
      "type": "object"
    },
    "access_controlThirdPartyBindingListResponse": {
      "properties": {
        "bindings": {
          "items": {
            "$ref": "#/definitions/access_controlThirdPartyBinding",
            "type": "object"
          },
          "title": "绑定 | [EN] Bindings",
          "type": "array"
        },
        "password_set": {
          "title": "是否设了密码；没有密码时最后一个第三方绑定不能解 | [EN] Whether a password is set; without one the last binding cannot be removed",
          "type": "boolean"
        }
      },
      "title": "第三方绑定列表响应\n[EN] Third-party bindings response",
      "type": "object"
    },
    "access_controlThirdPartyConfigResponse": {
      "properties": {
        "providers": {
          "items": {
            "$ref": "#/definitions/access_controlThirdPartyProvider",
            "type": "object"
          },
          "title": "可用的平台 | [EN] Available platforms",
          "type": "array"
        }
      },
      "title": "第三方登录配置响应：没配置的平台不出现\n[EN] Third-party configuration response; unconfigured platforms are absent",
      "type": "object"
    },
    "access_controlThirdPartyPlatform": {
      "default": "THIRD_PARTY_PLATFORM_UNSPECIFIED",
      "description": "- THIRD_PARTY_PLATFORM_UNSPECIFIED: 未指定 | [EN] Unspecified\n - THIRD_PARTY_PLATFORM_GOOGLE: Google | [EN] Google",
      "enum": [
        "THIRD_PARTY_PLATFORM_UNSPECIFIED",
        "THIRD_PARTY_PLATFORM_GOOGLE"
      ],
      "title": "第三方平台\n[EN] Third-party platform",
      "type": "string"
    },
    "access_controlThirdPartyProvider": {
      "properties": {
        "client_id": {
          "title": "前端拉起登录用的客户端 ID | [EN] Client ID the frontend signs in with",
          "type": "string"
        },
        "platform": {
          "$ref": "#/definitions/access_controlThirdPartyPlatform",
          "title": "平台 | [EN] Platform"
        }
      },
      "title": "第三方平台的前端配置\n[EN] Frontend settings of a third-party platform",
      "type": "object"
    },
    "access_controlTimeRange": {
      "properties": {
        "end": {
          "format": "date-time",
          "title": "止（不含）| [EN] End, exclusive",
          "type": "string"
        },
        "start": {
          "format": "date-time",
          "title": "起（含）| [EN] Start, inclusive",
          "type": "string"
        }
      },
      "title": "时间范围（左闭右开），两端都可省略\n[EN] A half-open time range; either end may be omitted",
      "type": "object"
    },
    "access_controlTokenPair": {
      "properties": {
        "access_expires_at": {
          "format": "date-time",
          "title": "访问令牌过期时间 | [EN] Access token expiry",
          "type": "string"
        },
        "access_token": {
          "title": "访问令牌 | [EN] Access token",
          "type": "string"
        },
        "refresh_expires_at": {
          "format": "date-time",
          "title": "刷新令牌过期时间（会话的绝对有效期）| [EN] Refresh token expiry, the session's absolute lifetime",
          "type": "string"
        },
        "refresh_token": {
          "title": "刷新令牌（每次刷新都换新）| [EN] Refresh token, rotated on every refresh",
          "type": "string"
        },
        "token_type": {
          "title": "令牌类型，固定为 Bearer | [EN] Token type, always Bearer",
          "type": "string"
        }
      },
      "title": "令牌对：访问令牌是 RS256 JWT，各服务用 JWKS 本地验签；刷新令牌是不透明串，只能拿回 AC 换新\n[EN] Token pair: the access token is an RS256 JWT verified locally against JWKS; the refresh token is opaque and only redeemable at AC",
      "type": "object"
    },
    "access_controlUpdateProfileRequest": {
      "properties": {
        "avatar_url": {
          "format": "uri",
          "maxLength": 512,
          "title": "头像 | [EN] Avatar URL",
          "type": "string"
        },
        "display_name": {
          "maxLength": 64,
          "title": "显示名 | [EN] Display name",
          "type": "string"
        },
        "timezone": {
          "title": "时区（IANA） | [EN] Time zone, IANA",
          "type": "string"
        }
      },
      "title": "修改个人资料请求\n[EN] Update profile request",
      "type": "object"
    },
    "access_controlUpdateProfileResponse": {
      "properties": {
        "principal": {
          "$ref": "#/definitions/access_controlPrincipalInfo",
          "title": "身份主体 | [EN] Principal"
        }
      },
      "title": "修改个人资料响应\n[EN] Update profile response",
      "type": "object"
    },
    "access_controlVerifyMfaRequest": {
      "properties": {
        "code": {
          "maxLength": 32,
          "title": "动态口令或恢复码 | [EN] TOTP or backup code",
          "type": "string"
        },
        "code_type": {
          "$ref": "#/definitions/access_controlMfaCodeType",
          "title": "口令类型，不传为动态口令 | [EN] Code kind; TOTP when omitted"
        },
        "mfa_ticket": {
          "maxLength": 4096,
          "title": "登录返回的 MFA 票据 | [EN] MFA ticket from login",
          "type": "string"
        }
      },
      "required": [
        "mfa_ticket",
        "code"
      ],
      "title": "二次验证请求\n[EN] MFA verification request",
      "type": "object"
    },
    "access_controlWorkspaceInfo": {
      "properties": {
        "created_at": {
          "format": "date-time",
          "title": "创建时间 | [EN] Created at",
          "type": "string"
        },
        "id": {
          "title": "工作区 ID | [EN] Workspace ID",
          "type": "string"
        },
        "is_default": {
          "title": "是否组织的默认工作区 | [EN] The organization's default workspace",
          "type": "boolean"
        },
        "name": {
          "title": "名称 | [EN] Name",
          "type": "string"
        },
        "org_id": {
          "title": "组织 ID | [EN] Organization ID",
          "type": "string"
        },
        "status": {
          "$ref": "#/definitions/enumsCommonStatus",
          "title": "状态 | [EN] Status"
        }
      },
      "title": "工作区\n[EN] A workspace",
      "type": "object"
    },
    "commonAnnouncementAttachment": {
      "properties": {
        "name": {
          "title": "文件名 | [EN] File name",
          "type": "string"
        },
        "url": {
          "title": "下载地址 | [EN] Download URL",
          "type": "string"
        }
      },
      "title": "公告附件 | [EN] An announcement attachment",
      "type": "object"
    },
    "commonAnnouncementTranslation": {
      "properties": {
        "attachments": {
          "items": {
            "$ref": "#/definitions/commonAnnouncementAttachment",
            "type": "object"
          },
          "title": "附件 | [EN] Attachments",
          "type": "array"
        },
        "content": {
          "title": "正文 | [EN] Body",
          "type": "string"
        },
        "language": {
          "title": "语言标签（BCP-47）| [EN] Language tag, BCP-47",
          "type": "string"
        },
        "summary": {
          "title": "摘要，不传时从正文截取 | [EN] Summary; derived from the body when omitted",
          "type": "string"
        },
        "title": {
          "title": "标题 | [EN] Title",
          "type": "string"
        }
      },
      "title": "公告的一种语言版本：标题、摘要、正文与附件放在一起；列表第一项为默认语言\n[EN] One language version of an announcement, grouping its title, summary, body and attachments; the first\nentry in a list is the default language",
      "type": "object"
    },
    "commonGeneralEmptyResponse": {
      "title": "通用空响应\n[EN] General empty response",
      "type": "object"
    },
    "commonLocalizedText": {
      "description": "用于「同一个字段要按语言给出不同取值」的场景，比如商品名、租户显示名\n存库侧把 repeated LocalizedText 整体序列化成一列（见 kronos「多语言文本字段」能力生成的\ninternal/server/model/localized_text.go 里的 LocalizedTextList，它实现了 GORM 的 Valuer/Scanner），\n而不是为每种语言各开一列——语言是会增加的，列不该跟着加\n\n[EN] For fields whose value differs per language, such as a product or tenant display\nname. The storage side serializes the whole repeated field into a single column (see\nLocalizedTextList in internal/server/model/localized_text.go, generated by kronos'\nlocalized-text capability, which implements GORM's Valuer/Scanner) rather than adding one\ncolumn per language: languages get added over time and the schema should not follow.\n\nkey 用 BCP 47 语言标签（zh / en / zh-TW），与 Accept-Language 对齐，\n这样网关拿到的请求语言可以直接用来挑选条目\n[EN] key is a BCP 47 language tag (zh / en / zh-TW), matching Accept-Language, so the\nrequest language the gateway resolves can select an entry directly.",
      "properties": {
        "key": {
          "title": "语言标签 | [EN] Language tag",
          "type": "string"
        },
        "value": {
          "title": "该语言下的文本 | [EN] Text in that language",
          "type": "string"
        }
      },
      "title": "多语言文本条目\n[EN] One localized text entry",
      "type": "object"
    },
    "commonPaging": {
      "properties": {
        "page": {
          "format": "int32",
          "title": "当前页码 | [EN] Current page number",
          "type": "integer"
        },
        "size": {
          "format": "int32",
          "title": "每页条数（上限保护，防止一次拉全表） | [EN] Page size, capped to protect the backend",
          "type": "integer"
        },
        "total": {
          "format": "int32",
          "title": "总条数（响应字段，请求 query 不继承必填） | [EN] Total count",
          "type": "integer"
        }
      },
      "title": "分页信息\n[EN] Paging information\n请求与响应共用一个消息：请求里填 page/size，响应里回填 total\n[EN] Shared by request and response: requests fill page/size, responses fill total",
      "type": "object"
    },
    "commonSorting": {
      "properties": {
        "ascending": {
          "title": "是否升序 | [EN] Whether ascending",
          "type": "boolean"
        },
        "field": {
          "title": "排序字段 | [EN] Sort field",
          "type": "string"
        }
      },
      "title": "排序信息\n[EN] Sorting information",
      "type": "object"
    },
    "enumsAccountStatus": {
      "default": "ACCOUNT_STATUS_UNSPECIFIED",
      "description": "- ACCOUNT_STATUS_UNSPECIFIED: 未指定 | [EN] Unspecified\n - ACCOUNT_STATUS_ACTIVE: 正常 | [EN] Active\n - ACCOUNT_STATUS_DISABLED: 禁用 | [EN] Disabled",
      "enum": [
        "ACCOUNT_STATUS_UNSPECIFIED",
        "ACCOUNT_STATUS_ACTIVE",
        "ACCOUNT_STATUS_DISABLED"
      ],
      "title": "成员状态：身份主体在某个工作区的成员记录\n[EN] Account status: a principal's membership in one workspace",
      "type": "string"
    },
    "enumsCommonStatus": {
      "default": "COMMON_STATUS_UNSPECIFIED",
      "description": "- COMMON_STATUS_UNSPECIFIED: 未指定 | [EN] Unspecified\n - COMMON_STATUS_NORMAL: 正常 | [EN] Normal\n - COMMON_STATUS_DISABLED: 禁用 | [EN] Disabled",
      "enum": [
        "COMMON_STATUS_UNSPECIFIED",
        "COMMON_STATUS_NORMAL",
        "COMMON_STATUS_DISABLED"
      ],
      "title": "通用状态\n[EN] Common status\n绝大多数业务实体的启用/禁用都复用这一个枚举，不要在各模块里重复定义\n[EN] Reuse this enum for enable/disable across entities instead of redefining it per module",
      "type": "string"
    },
    "enumsDataScope": {
      "default": "DATA_SCOPE_UNSPECIFIED",
      "description": "- DATA_SCOPE_UNSPECIFIED: 不带范围 | [EN] Not scoped\n - DATA_SCOPE_SELF: 本人 | [EN] Self\n - DATA_SCOPE_TEAM: 本团队 | [EN] Own team\n - DATA_SCOPE_ALL: 全部 | [EN] All",
      "enum": [
        "DATA_SCOPE_UNSPECIFIED",
        "DATA_SCOPE_SELF",
        "DATA_SCOPE_TEAM",
        "DATA_SCOPE_ALL"
      ],
      "title": "数据范围：带范围的权限点在令牌里的取值；值越大范围越大，合并多个来源时取最大\n[EN] Data scope of a scoped permission; larger values are wider, and merging sources keeps the widest",
      "type": "string"
    },
    "enumsDomainType": {
      "default": "DOMAIN_TYPE_UNSPECIFIED",
      "description": "两个域的数据物理隔离（org_* 与 ops_* 两组表），令牌受众不同、互相不能使用；组织就是最上层\n\n[EN] Identity domain: the workbench and organization console use the org domain, the super admin the ops domain.\nTheir data is physically separate (the org_* and ops_* tables) and their tokens carry different audiences;\nthe organization is the top.\n\n - DOMAIN_TYPE_UNSPECIFIED: 未指定 | [EN] Unspecified\n - DOMAIN_TYPE_ORG: 组织域（工作台、组织后台）| [EN] Org domain (workbench, organization console)\n - DOMAIN_TYPE_OPS: 运维域（超管）| [EN] Ops domain (super admin)",
      "enum": [
        "DOMAIN_TYPE_UNSPECIFIED",
        "DOMAIN_TYPE_ORG",
        "DOMAIN_TYPE_OPS"
      ],
      "title": "身份域：工作台与组织后台走组织域，超管走运维域",
      "type": "string"
    },
    "enumsKeyScenario": {
      "default": "KEY_SCENARIO_UNSPECIFIED",
      "description": "为什么密钥要绑场景：一对临时密钥如果不限用途，拿到登录场景公钥加密出来的密文\n就能送去支付场景解密绑定场景之后，密钥在创建时就确定了用途，\n换场景使用会被直接拒绝，跨场景重放在协议层面就不成立\n\n新增场景必须在这里加枚举值，不要在服务侧用字符串自行扩展——\n那样下游按名称解析会得到未知值，而且各服务的拼写迟早对不上\n\n[EN] An unscoped key pair lets ciphertext produced for the login flow be decrypted by the\npayment flow. Binding the scenario fixes the purpose at creation time and makes a\ncross-scenario replay impossible at the protocol level. A new scenario belongs here as an\nenum value, never as an ad-hoc string on the service side, which decodes as unknown\ndownstream and eventually diverges in spelling between services.\n\n - KEY_SCENARIO_UNSPECIFIED: 未指定（视为非法请求）| [EN] Unspecified, treated as invalid\n - KEY_SCENARIO_LOGIN: 登录凭据加密 | [EN] Login credentials\n - KEY_SCENARIO_PAYMENT: 支付要素加密 | [EN] Payment details\n - KEY_SCENARIO_PROFILE: 个人敏感资料加密 | [EN] Personal profile data\n - KEY_SCENARIO_REGISTER: 注册凭据加密 | [EN] Sign-up credentials\n - KEY_SCENARIO_PASSWORD_RESET: 找回或管理员重置密码 | [EN] Password reset, self-service or by an admin\n - KEY_SCENARIO_PASSWORD_CHANGE: 修改密码（原密码与新密码）| [EN] Password change, current and new password\n - KEY_SCENARIO_ACCOUNT_CREATE: 管理员创建账号时的初始密码 | [EN] Initial password when an admin creates an account",
      "enum": [
        "KEY_SCENARIO_UNSPECIFIED",
        "KEY_SCENARIO_LOGIN",
        "KEY_SCENARIO_PAYMENT",
        "KEY_SCENARIO_PROFILE",
        "KEY_SCENARIO_REGISTER",
        "KEY_SCENARIO_PASSWORD_RESET",
        "KEY_SCENARIO_PASSWORD_CHANGE",
        "KEY_SCENARIO_ACCOUNT_CREATE"
      ],
      "title": "临时密钥使用场景\n[EN] Temporary key usage scenario",
      "type": "string"
    },
    "enumsOnlineStatus": {
      "default": "ONLINE_STATUS_UNSPECIFIED",
      "description": "- ONLINE_STATUS_UNSPECIFIED: 未指定（更新时表示不改）| [EN] Unspecified, unchanged on update\n - ONLINE_STATUS_ONLINE: 在线 | [EN] Online\n - ONLINE_STATUS_BUSY: 忙碌 | [EN] Busy\n - ONLINE_STATUS_OFFLINE: 离线 | [EN] Offline",
      "enum": [
        "ONLINE_STATUS_UNSPECIFIED",
        "ONLINE_STATUS_ONLINE",
        "ONLINE_STATUS_BUSY",
        "ONLINE_STATUS_OFFLINE"
      ],
      "title": "成员在线状态：组织成员在工作区里的接待状态，不传表示不改\n[EN] Membership online status: the reception state of an organization member inside a workspace; an\nomitted value means unchanged on update",
      "type": "string"
    },
    "enumsOrgSource": {
      "default": "ORG_SOURCE_UNSPECIFIED",
      "description": "公开的注册入口只接受自然注册与合伙人推荐：销售开通由运维设置，注册时传它会被拒；合伙人编号是注册人自己填的，\n合伙人名册上线之前不核对真伪，结算前要人工确认\n\n[EN] How an organization signed up: sent by the sign-up page and stored on AC's organization, used by the ops\nconsole, reports and partner settlement to tell sign-ups apart. Public sign-up accepts organic and partner referrals\nonly: sales-opened organizations are set by ops and a sign-up claiming it is refused. The partner code is\nself-reported and unverified until a partner registry exists, so settlement confirms it by hand\n\n - ORG_SOURCE_UNSPECIFIED: 未指定：来源不明的存量组织（注册时不传按自然注册记）| [EN] Unspecified, for older organizations of unknown origin; omitted at sign-up it records organic\n - ORG_SOURCE_ORGANIC: 自然注册 | [EN] Organic sign-up\n - ORG_SOURCE_PARTNER: 合伙人推荐，带注册人自填的合伙人编号 | [EN] Referred by a partner, with the self-reported partner code\n - ORG_SOURCE_SALES: 销售开通：只由运维设置，公开注册不接受 | [EN] Opened by sales; set by ops only, refused at public sign-up",
      "enum": [
        "ORG_SOURCE_UNSPECIFIED",
        "ORG_SOURCE_ORGANIC",
        "ORG_SOURCE_PARTNER",
        "ORG_SOURCE_SALES"
      ],
      "title": "组织的注册来源：注册时由入驻页带上，存在 AC 的组织上，运维后台、报表与合伙人结算按它区分",
      "type": "string"
    },
    "enumsPrincipalStatus": {
      "default": "PRINCIPAL_STATUS_UNSPECIFIED",
      "description": "- PRINCIPAL_STATUS_UNSPECIFIED: 未指定 | [EN] Unspecified\n - PRINCIPAL_STATUS_ACTIVE: 正常 | [EN] Active\n - PRINCIPAL_STATUS_DISABLED: 禁用 | [EN] Disabled",
      "enum": [
        "PRINCIPAL_STATUS_UNSPECIFIED",
        "PRINCIPAL_STATUS_ACTIVE",
        "PRINCIPAL_STATUS_DISABLED"
      ],
      "title": "身份主体状态\n[EN] Principal status",
      "type": "string"
    },
    "enumsRestrictionCode": {
      "default": "RESTRICTION_CODE_UNSPECIFIED",
      "description": "- RESTRICTION_CODE_UNSPECIFIED: 未指定 | [EN] Unspecified\n - RESTRICTION_CODE_CONTACT_SCOPE_LIMIT: 客户范围：收窄会话与客户的查看范围（权限范围类）| [EN] Contact scope, narrowing conversation and customer visibility\n - RESTRICTION_CODE_UNASSIGNED_CONTACT_LIMIT: 不能认领未分配客户（权限开关类）| [EN] No claiming of unassigned customers\n - RESTRICTION_CODE_CONTACT_ASSIGN_LIMIT: 不能分配客户（权限开关类）| [EN] No assigning of customers\n - RESTRICTION_CODE_DATA_EXPORT_LIMIT: 不能导出数据（权限开关类）| [EN] No data export\n - RESTRICTION_CODE_CHANNEL_ACCESS_LIMIT: 不能访问渠道（权限开关类）| [EN] No channel access\n - RESTRICTION_CODE_CONTACT_MASKING_LIMIT: 电话与邮箱脱敏（字段脱敏类）| [EN] Masked phone numbers and emails\n - RESTRICTION_CODE_SILENT_CONVERSATION_VIEW: 查看会话不标已读（客户端行为类）| [EN] Viewing conversations does not mark them read\n - RESTRICTION_CODE_READ_ONLY: 观察者只读：业务服务拒绝一切写操作（客户端行为类）| [EN] Observer read-only: business services refuse every write",
      "enum": [
        "RESTRICTION_CODE_UNSPECIFIED",
        "RESTRICTION_CODE_CONTACT_SCOPE_LIMIT",
        "RESTRICTION_CODE_UNASSIGNED_CONTACT_LIMIT",
        "RESTRICTION_CODE_CONTACT_ASSIGN_LIMIT",
        "RESTRICTION_CODE_DATA_EXPORT_LIMIT",
        "RESTRICTION_CODE_CHANNEL_ACCESS_LIMIT",
        "RESTRICTION_CODE_CONTACT_MASKING_LIMIT",
        "RESTRICTION_CODE_SILENT_CONVERSATION_VIEW",
        "RESTRICTION_CODE_READ_ONLY"
      ],
      "title": "高级限制的编码 | [EN] Restriction codes",
      "type": "string"
    },
    "enumsRsaKeySize": {
      "default": "RSA_KEY_SIZE_UNSPECIFIED",
      "description": "用枚举而不是 int32：密钥长度不是任意数值，1000 位这种输入既不安全也生成不出来\n枚举把合法取值固定在协议层，服务侧不必再校验一遍数值范围\n\n选型权衡：2048 是当前通用基线；4096 更强但生成明显更慢（量级差异，不是百分比），\n适合低频、长期有效的密钥；1024 已不满足现代安全要求，仅为兼容存量调用方保留\n\n[EN] An enum rather than an int32, because a key size is not an arbitrary number: a value\nlike 1000 is neither secure nor constructible. The enum pins the legal values at the protocol\nlevel so the service need not re-validate a numeric range. On the trade-off: 2048 is today's\ngeneral baseline; 4096 is stronger but markedly slower to generate, an order of magnitude\nrather than a percentage, which suits infrequent long-lived keys; 1024 no longer meets modern\nrequirements and is kept only for existing callers.\n\n - RSA_KEY_SIZE_UNSPECIFIED: 未指定（服务侧取默认值）| [EN] Unspecified, the service picks a default\n - RSA_KEY_SIZE_1024: 1024 位（已不推荐，仅兼容存量）| [EN] 1024-bit, legacy only\n - RSA_KEY_SIZE_2048: 2048 位（推荐默认）| [EN] 2048-bit, recommended default\n - RSA_KEY_SIZE_4096: 4096 位（生成慢，低频场景用）| [EN] 4096-bit, slow to generate",
      "enum": [
        "RSA_KEY_SIZE_UNSPECIFIED",
        "RSA_KEY_SIZE_1024",
        "RSA_KEY_SIZE_2048",
        "RSA_KEY_SIZE_4096"
      ],
      "title": "RSA 密钥长度\n[EN] RSA key size",
      "type": "string"
    },
    "eventsConversationAction": {
      "default": "CONVERSATION_ACTION_UNSPECIFIED",
      "description": "- CONVERSATION_ACTION_UNSPECIFIED: 未指定，按取消分配处理 | [EN] Unspecified, treated as unassign\n - CONVERSATION_ACTION_UNASSIGN: 取消分配，回到待分配 | [EN] Unassign, back to the unassigned queue\n - CONVERSATION_ACTION_TRANSFER: 转交给同工作区的另一名在用成员 | [EN] Transfer to another active account of the same workspace",
      "enum": [
        "CONVERSATION_ACTION_UNSPECIFIED",
        "CONVERSATION_ACTION_UNASSIGN",
        "CONVERSATION_ACTION_TRANSFER"
      ],
      "title": "移除成员时他名下会话的处理方式（AC 不管会话：记进 account_removed，由会话服务执行）\n[EN] What happens to a removed account's conversations. AC does not own conversations: the choice goes into\naccount_removed for the conversation service to carry out",
      "type": "string"
    },
    "protobufAny": {
      "additionalProperties": {},
      "properties": {
        "@type": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "rpcStatus": {
      "properties": {
        "code": {
          "format": "int32",
          "type": "integer"
        },
        "details": {
          "items": {
            "$ref": "#/definitions/protobufAny",
            "type": "object"
          },
          "type": "array"
        },
        "message": {
          "type": "string"
        }
      },
      "type": "object"
    }
  },
  "info": {
    "description": "统一鉴权中心：组织域（工作台、组织后台）与运维域（超管）的认证、授权、账号、成员与组织，数据按域物理隔离 | The access-control center: authentication, authorization, accounts, accounts and organizations for the org and ops domains, physically separated per domain",
    "title": "LinMi Access Control",
    "version": "1.0.0"
  },
  "paths": {
    "/.well-known/jwks.json": {
      "get": {
        "operationId": "AccessControlService_Jwks",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlJwksResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "签名公钥集合 | [EN] Signing public key set",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/access-records": {
      "get": {
        "operationId": "AccessControlService_AccessRecordList",
        "parameters": [
          {
            "description": "当前页码 | [EN] Current page number",
            "format": "int32",
            "in": "query",
            "minimum": 1,
            "name": "page_request.page",
            "required": false,
            "type": "integer"
          },
          {
            "description": "每页条数（上限保护，防止一次拉全表） | [EN] Page size, capped to protect the backend",
            "format": "int32",
            "in": "query",
            "maximum": 200,
            "minimum": 1,
            "name": "page_request.size",
            "required": false,
            "type": "integer"
          },
          {
            "description": "总条数（响应字段，请求 query 不继承必填） | [EN] Total count",
            "format": "int32",
            "in": "query",
            "name": "page_request.total",
            "required": false,
            "type": "integer"
          },
          {
            "description": "起（含）| [EN] Start, inclusive",
            "format": "date-time",
            "in": "query",
            "name": "period.start",
            "required": false,
            "type": "string"
          },
          {
            "description": "止（不含）| [EN] End, exclusive",
            "format": "date-time",
            "in": "query",
            "name": "period.end",
            "required": false,
            "type": "string"
          },
          {
            "description": "方法，精确匹配 | [EN] Method, exact match",
            "in": "query",
            "maxLength": 16,
            "name": "method",
            "required": false,
            "type": "string"
          },
          {
            "description": "路径，模糊查询 | [EN] Path, fuzzy match",
            "in": "query",
            "maxLength": 255,
            "name": "path",
            "required": false,
            "type": "string"
          },
          {
            "description": "产生记录的服务，精确匹配 | [EN] Producing service, exact match",
            "in": "query",
            "maxLength": 64,
            "name": "service",
            "required": false,
            "type": "string"
          },
          {
            "description": "关键字：在账号、链路 ID、请求 ID 与路径里不分大小写查找 | [EN] Keyword searched case-insensitively in account, trace ID, request ID and path",
            "in": "query",
            "maxLength": 128,
            "name": "keyword",
            "required": false,
            "type": "string"
          },
          {
            "description": "成功过滤：true 只看成功、false 只看失败，不传为全部 | [EN] Success filter: true for successes, false for failures, omitted for all",
            "in": "query",
            "name": "success",
            "required": false,
            "type": "boolean"
          },
          {
            "collectionFormat": "multi",
            "description": "按操作人 ID（user_id）多选，命中任一 | [EN] Operator IDs (user_id), matching any",
            "in": "query",
            "items": {
              "maxLength": 64,
              "type": "string"
            },
            "maxItems": 500,
            "name": "principal_ids",
            "required": false,
            "type": "array"
          },
          {
            "description": "按组织过滤：运维调用有效，空为全部组织 | [EN] Filter by organization, for ops callers, empty means all",
            "in": "query",
            "maxLength": 64,
            "name": "org_id",
            "required": false,
            "type": "string"
          },
          {
            "default": "DOMAIN_TYPE_UNSPECIFIED",
            "description": "身份域：运维按运维域（无组织归属：运维后台与东西向内部调用）/组织域（有组织归属）切换查看，组织调用忽略 | [EN] Domain; ops toggles between the ops domain (org-less: ops console and east-west internal) and the org domain (org-scoped), ignored for org callers\n\n - DOMAIN_TYPE_UNSPECIFIED: 未指定 | [EN] Unspecified\n - DOMAIN_TYPE_ORG: 组织域（工作台、组织后台）| [EN] Org domain (workbench, organization console)\n - DOMAIN_TYPE_OPS: 运维域（超管）| [EN] Ops domain (super admin)",
            "enum": [
              "DOMAIN_TYPE_UNSPECIFIED",
              "DOMAIN_TYPE_ORG",
              "DOMAIN_TYPE_OPS"
            ],
            "in": "query",
            "name": "domain",
            "required": false,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlAccessRecordListResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "请求日志列表 | [EN] List request logs",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/access-records/{id}": {
      "get": {
        "operationId": "AccessControlService_AccessRecordGet",
        "parameters": [
          {
            "description": "记录 ID | [EN] Record ID",
            "in": "path",
            "maxLength": 64,
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlAccessRecordGetResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "请求日志详情 | [EN] Get request log",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/account/contact/bind": {
      "post": {
        "operationId": "AccessControlService_ContactBind",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/access_controlContactBindRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/commonGeneralEmptyResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "绑定邮箱或手机号（当前为空的那一种）| [EN] Bind the contact that is currently empty",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/account/contact/code": {
      "post": {
        "operationId": "AccessControlService_ContactCodeSend",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/access_controlContactCodeSendRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlContactCodeSendResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "给要绑定的邮箱或手机号发验证码 | [EN] Send a code to bind an email or phone",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/account/google/bind": {
      "post": {
        "operationId": "AccessControlService_GoogleBind",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/access_controlGoogleBindRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlGoogleBindResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "绑定 Google（自定义账号不能绑）| [EN] Bind Google; custom accounts cannot",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/account/google/unbind": {
      "post": {
        "operationId": "AccessControlService_GoogleUnbind",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/access_controlGoogleUnbindRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/commonGeneralEmptyResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "解绑 Google（没有密码时不能解最后一个登录方式）| [EN] Unbind Google; never the last login method when no password is set",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/account/menus": {
      "get": {
        "operationId": "AccessControlService_GetMenus",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlGetMenusResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "当前账号的菜单树 | [EN] Menu tree",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/account/mfa/backup-codes": {
      "post": {
        "operationId": "AccessControlService_MfaBackupCodesRegenerate",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/access_controlMfaBackupCodesRegenerateRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlMfaBackupCodesRegenerateResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "重新生成恢复码 | [EN] Regenerate backup codes",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/account/mfa/devices": {
      "get": {
        "operationId": "AccessControlService_MfaDeviceList",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlMfaDeviceListResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "二次验证设备列表 | [EN] List MFA devices",
        "tags": [
          "AccessControlService"
        ]
      },
      "post": {
        "operationId": "AccessControlService_MfaEnrollBegin",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/access_controlMfaEnrollBeginRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlMfaEnrollBeginResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "绑定二次验证设备 | [EN] Enroll MFA device",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/account/mfa/devices/{device_id}/confirm": {
      "post": {
        "operationId": "AccessControlService_MfaEnrollConfirm",
        "parameters": [
          {
            "description": "设备 ID | [EN] Device ID",
            "in": "path",
            "maxLength": 64,
            "name": "device_id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/AccessControlServiceMfaEnrollConfirmBody"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlMfaEnrollConfirmResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "确认绑定二次验证设备 | [EN] Confirm MFA device",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/account/mfa/devices/{device_id}/remove": {
      "post": {
        "operationId": "AccessControlService_MfaDeviceRemove",
        "parameters": [
          {
            "description": "设备 ID | [EN] Device ID",
            "in": "path",
            "maxLength": 64,
            "name": "device_id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/AccessControlServiceMfaDeviceRemoveBody"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/commonGeneralEmptyResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "移除二次验证设备 | [EN] Remove MFA device",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/account/mfa/disable": {
      "post": {
        "operationId": "AccessControlService_MfaDisable",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/access_controlMfaDisableRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/commonGeneralEmptyResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "关闭二次验证 | [EN] Disable MFA",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/account/mfa/verify": {
      "post": {
        "operationId": "AccessControlService_MfaVerify",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/access_controlMfaVerifyRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlMfaVerifyResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "二次验证 | [EN] Step-up MFA",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/account/online-status": {
      "put": {
        "operationId": "AccessControlService_SetOnlineStatus",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/access_controlSetOnlineStatusRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlSetOnlineStatusResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "设置本人接待状态：真正变更时记一条在线日志（来源手动）并发接待状态变更事件 | [EN] Set own reception status; a real change writes a presence log (manual source) and emits the reception-changed event",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/account/password": {
      "put": {
        "operationId": "AccessControlService_ChangePassword",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/access_controlChangePasswordRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/commonGeneralEmptyResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "修改密码 | [EN] Change password",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/account/profile": {
      "put": {
        "operationId": "AccessControlService_UpdateProfile",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/access_controlUpdateProfileRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlUpdateProfileResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "修改个人资料 | [EN] Update profile",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/account/third-party": {
      "get": {
        "operationId": "AccessControlService_ThirdPartyBindingList",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlThirdPartyBindingListResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "第三方绑定列表 | [EN] Third-party bindings",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/audit-logs": {
      "get": {
        "operationId": "AccessControlService_AuditLogList",
        "parameters": [
          {
            "default": "DOMAIN_TYPE_UNSPECIFIED",
            "description": "操作人所在的域：运维调用可选，不传为全部 | [EN] Operator's domain, optional for ops callers\n\n - DOMAIN_TYPE_UNSPECIFIED: 未指定 | [EN] Unspecified\n - DOMAIN_TYPE_ORG: 组织域（工作台、组织后台）| [EN] Org domain (workbench, organization console)\n - DOMAIN_TYPE_OPS: 运维域（超管）| [EN] Ops domain (super admin)",
            "enum": [
              "DOMAIN_TYPE_UNSPECIFIED",
              "DOMAIN_TYPE_ORG",
              "DOMAIN_TYPE_OPS"
            ],
            "in": "query",
            "name": "domain",
            "required": false,
            "type": "string"
          },
          {
            "description": "当前页码 | [EN] Current page number",
            "format": "int32",
            "in": "query",
            "minimum": 1,
            "name": "page_request.page",
            "required": false,
            "type": "integer"
          },
          {
            "description": "每页条数（上限保护，防止一次拉全表） | [EN] Page size, capped to protect the backend",
            "format": "int32",
            "in": "query",
            "maximum": 200,
            "minimum": 1,
            "name": "page_request.size",
            "required": false,
            "type": "integer"
          },
          {
            "description": "总条数（响应字段，请求 query 不继承必填） | [EN] Total count",
            "format": "int32",
            "in": "query",
            "name": "page_request.total",
            "required": false,
            "type": "integer"
          },
          {
            "description": "按操作人账号模糊查询 | [EN] Fuzzy match on the operator account",
            "in": "query",
            "maxLength": 128,
            "name": "account",
            "required": false,
            "type": "string"
          },
          {
            "description": "对象 ID | [EN] Resource ID",
            "in": "query",
            "maxLength": 128,
            "name": "resource_id",
            "required": false,
            "type": "string"
          },
          {
            "description": "起（含）| [EN] Start, inclusive",
            "format": "date-time",
            "in": "query",
            "name": "period.start",
            "required": false,
            "type": "string"
          },
          {
            "description": "止（不含）| [EN] End, exclusive",
            "format": "date-time",
            "in": "query",
            "name": "period.end",
            "required": false,
            "type": "string"
          },
          {
            "description": "组织：运维调用有效 | [EN] Organization, for ops callers",
            "in": "query",
            "maxLength": 64,
            "name": "org_id",
            "required": false,
            "type": "string"
          },
          {
            "description": "产生记录的服务，如 linmi-wallet-service | [EN] Producing service, such as linmi-wallet-service",
            "in": "query",
            "maxLength": 64,
            "name": "service",
            "required": false,
            "type": "string"
          },
          {
            "default": "AUDIT_RESULT_UNSPECIFIED",
            "description": "结果，不传为全部 | [EN] Outcome; omitted means all\n\n - AUDIT_RESULT_UNSPECIFIED: 未指定 | [EN] Unspecified\n - AUDIT_RESULT_SUCCESS: 成功 | [EN] Succeeded\n - AUDIT_RESULT_FAILURE: 失败（被拒绝或出错，越权尝试正是表现为一串失败）| [EN] Failed, refused or errored; probing shows up as a run of failures",
            "enum": [
              "AUDIT_RESULT_UNSPECIFIED",
              "AUDIT_RESULT_SUCCESS",
              "AUDIT_RESULT_FAILURE"
            ],
            "in": "query",
            "name": "result",
            "required": false,
            "type": "string"
          },
          {
            "description": "操作人身份主体 ID | [EN] Operator principal ID",
            "in": "query",
            "maxLength": 64,
            "name": "principal_id",
            "required": false,
            "type": "string"
          },
          {
            "description": "工作区：运维调用有效 | [EN] Workspace, for ops callers",
            "in": "query",
            "maxLength": 64,
            "name": "workspace_id",
            "required": false,
            "type": "string"
          },
          {
            "description": "链路 ID：运维调用有效 | [EN] Trace ID, for ops callers",
            "in": "query",
            "maxLength": 64,
            "name": "trace_id",
            "required": false,
            "type": "string"
          },
          {
            "description": "动作：审计动作枚举的值名，精确匹配，不传为全部 | [EN] Action enum value name, exact match; omitted means all",
            "in": "query",
            "maxLength": 128,
            "name": "action",
            "required": false,
            "type": "string"
          },
          {
            "collectionFormat": "multi",
            "description": "动作（多选）：审计动作枚举的值名，命中任一即可 | [EN] Action enum value names, matching any",
            "in": "query",
            "items": {
              "maxLength": 128,
              "type": "string"
            },
            "maxItems": 200,
            "name": "actions",
            "required": false,
            "type": "array"
          },
          {
            "collectionFormat": "multi",
            "description": "操作人身份主体 ID（多选），按团队筛时由客户端展开成成员 | [EN] Operator principal IDs, matching any; clients expand a team into its members",
            "in": "query",
            "items": {
              "maxLength": 64,
              "type": "string"
            },
            "maxItems": 500,
            "name": "principal_ids",
            "required": false,
            "type": "array"
          },
          {
            "description": "关键字：在摘要、摘要参数、内容与快照里不分大小写查找；加密的联系方式搜不到 | [EN] Keyword searched case-insensitively in the summary, its parameters, the content and the snapshot; encrypted contacts never match",
            "in": "query",
            "maxLength": 128,
            "name": "keyword",
            "required": false,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlAuditLogListResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "审计日志列表 | [EN] List audit logs",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/auth/context/switch": {
      "post": {
        "operationId": "AccessControlService_SwitchContext",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/access_controlSwitchContextRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlSwitchContextResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "切换工作区 | [EN] Switch workspace",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/auth/contexts": {
      "get": {
        "operationId": "AccessControlService_ListContexts",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlListContextsResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "可切换的工作区 | [EN] Switchable workspaces",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/auth/google/login": {
      "post": {
        "operationId": "AccessControlService_GoogleLogin",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/access_controlGoogleLoginRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlGoogleLoginResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "Google 登录：已绑定的登录；邮箱对得上唯一一个非自定义账号的自动关联；没有账号时有邀请就去接受邀请，否则注册新组织\n[EN] Google login: bound identities log in; an email matching exactly one non-custom account links automatically;\nwithout an account, pending invitations lead to accepting one, otherwise a new organization is signed up",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/auth/login": {
      "post": {
        "operationId": "AccessControlService_Login",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/access_controlLoginRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlLoginResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "密码登录 | [EN] Password login",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/auth/logout": {
      "post": {
        "operationId": "AccessControlService_Logout",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/access_controlLogoutRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/commonGeneralEmptyResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "退出当前会话 | [EN] Logout",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/auth/logout-all": {
      "post": {
        "operationId": "AccessControlService_LogoutAll",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/access_controlLogoutAllRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlLogoutAllResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "退出全部会话 | [EN] Logout everywhere",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/auth/me": {
      "get": {
        "operationId": "AccessControlService_GetMe",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlGetMeResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "当前身份 | [EN] Current identity",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/auth/mfa/setup": {
      "post": {
        "operationId": "AccessControlService_MfaSetupBegin",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/access_controlMfaSetupBeginRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlMfaSetupBeginResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "登录中绑定二次验证设备 | [EN] Begin MFA setup during login",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/auth/mfa/setup/confirm": {
      "post": {
        "operationId": "AccessControlService_MfaSetupConfirm",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/access_controlMfaSetupConfirmRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlLoginResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "确认绑定；若需要改密则返回强制改密阶段，否则完成登录 | [EN] Confirm setup; return a password-change stage if required, otherwise complete login",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/auth/mfa/verify": {
      "post": {
        "operationId": "AccessControlService_VerifyMfa",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/access_controlVerifyMfaRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlLoginResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "二次验证 | [EN] Verify MFA",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/auth/observer/login": {
      "post": {
        "operationId": "AccessControlService_ObserverLogin",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/access_controlObserverLoginRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlLoginResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "观察者登录：以目标组织所有者身份建立只读会话 | [EN] Observer login: a read-only session as the organization owner",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/auth/password-policy": {
      "get": {
        "operationId": "AccessControlService_GetPasswordPolicy",
        "parameters": [
          {
            "default": "DOMAIN_TYPE_UNSPECIFIED",
            "description": "哪个身份域的策略 | [EN] Whose domain's policy\n\n - DOMAIN_TYPE_UNSPECIFIED: 未指定 | [EN] Unspecified\n - DOMAIN_TYPE_ORG: 组织域（工作台、组织后台）| [EN] Org domain (workbench, organization console)\n - DOMAIN_TYPE_OPS: 运维域（超管）| [EN] Ops domain (super admin)",
            "enum": [
              "DOMAIN_TYPE_UNSPECIFIED",
              "DOMAIN_TYPE_ORG",
              "DOMAIN_TYPE_OPS"
            ],
            "in": "query",
            "name": "domain",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlGetPasswordPolicyResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "密码策略 | [EN] Password policy",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/auth/password-reset": {
      "post": {
        "operationId": "AccessControlService_PasswordReset",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/access_controlPasswordResetRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/commonGeneralEmptyResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "找回密码 | [EN] Reset a forgotten password",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/auth/password-reset/code": {
      "post": {
        "operationId": "AccessControlService_PasswordResetCodeSend",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/access_controlPasswordResetCodeSendRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlPasswordResetCodeSendResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "找回密码验证码 | [EN] Send a password reset code",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/auth/password/change-required": {
      "post": {
        "operationId": "AccessControlService_CompletePasswordChange",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/access_controlCompletePasswordChangeRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlLoginResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "完成强制改密并登录；只能用短时 password_change_ticket，不能用 MFA 或访问令牌替代\n[EN] Completes a forced password change and signs in; requires the short-lived password_change_ticket",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/auth/register": {
      "post": {
        "operationId": "AccessControlService_Register",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/access_controlRegisterRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlLoginResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "注册入驻并登录 | [EN] Sign up and log in",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/auth/register/email-code": {
      "post": {
        "operationId": "AccessControlService_RegisterEmailCodeSend",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/access_controlRegisterEmailCodeSendRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlRegisterEmailCodeSendResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "发注册验证码 | [EN] Send a sign-up code",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/auth/register/phone-code": {
      "post": {
        "operationId": "AccessControlService_RegisterPhoneCodeSend",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/access_controlRegisterPhoneCodeSendRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlRegisterPhoneCodeSendResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "发手机注册验证码 | [EN] Send a phone sign-up code",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/auth/temp-key": {
      "post": {
        "operationId": "AccessControlService_GetTemporaryPublicKey",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/access_controlGetTemporaryPublicKeyRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlGetTemporaryPublicKeyResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "签发临时公钥：前端用公钥加密密码，私钥只在服务端留存 5 分钟\n[EN] Issue a temporary public key; the browser encrypts passwords with it and the private half stays server-side for five minutes",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/auth/temp-key/destroy": {
      "post": {
        "operationId": "AccessControlService_DestroyTempKey",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/access_controlDestroyTempKeyRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlDestroyTempKeyResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "销毁临时密钥：登录或改密成功后提前失效 | [EN] Destroy a temporary key ahead of its TTL after a successful login or password change",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/auth/third-party/config": {
      "get": {
        "operationId": "AccessControlService_ThirdPartyConfig",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlThirdPartyConfigResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "第三方登录配置 | [EN] Third-party configuration",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/auth/token/refresh": {
      "post": {
        "operationId": "AccessControlService_RefreshToken",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/access_controlRefreshTokenRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlRefreshTokenResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "刷新令牌 | [EN] Refresh token",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/files/download-url": {
      "get": {
        "operationId": "AccessControlService_FileDownloadUrlGet",
        "parameters": [
          {
            "default": "FILE_BIZ_TYPE_UNSPECIFIED",
            "description": "业务类型，决定判权路由 | [EN] Business type, deciding the authorization routes\n\n - FILE_BIZ_TYPE_UNSPECIFIED: 未指定，拒绝上传 | [EN] Unspecified, rejected\n - FILE_BIZ_TYPE_ANNOUNCEMENT_ATTACHMENT: 公告附件 | [EN] Announcement attachment\n - FILE_BIZ_TYPE_USER_AVATAR: 用户头像 | [EN] User avatar\n - FILE_BIZ_TYPE_CHANNEL_ICON: 渠道图标 | [EN] Channel icon\n - FILE_BIZ_TYPE_FEEDBACK_SCREENSHOT: 意见反馈截图（组织域成员，gif / png / jpg，单张 ≤ 20 MB，Key 按组织与工作区分目录，私有）| [EN] Feedback screenshot from org members: gif, png or jpg, at most 20 MB each, keyed under the organization and workspace, private\n - FILE_BIZ_TYPE_ORDER_VOUCHER: 订单付款凭证（运维补单，png / jpg / pdf，单个 ≤ 5 MB，私有；判权取两条补单路由任一）| [EN] Order payment voucher for ops reconciliation: png, jpg or pdf, at most 5 MB each, private; either reconcile route authorizes it",
            "enum": [
              "FILE_BIZ_TYPE_UNSPECIFIED",
              "FILE_BIZ_TYPE_ANNOUNCEMENT_ATTACHMENT",
              "FILE_BIZ_TYPE_USER_AVATAR",
              "FILE_BIZ_TYPE_CHANNEL_ICON",
              "FILE_BIZ_TYPE_FEEDBACK_SCREENSHOT",
              "FILE_BIZ_TYPE_ORDER_VOUCHER"
            ],
            "in": "query",
            "name": "biz_type",
            "required": true,
            "type": "string"
          },
          {
            "description": "对象 Key | [EN] Object key",
            "in": "query",
            "maxLength": 512,
            "name": "object_key",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlFileDownloadUrlGetResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "取私有文件的临时下载地址：按业务类型判权（订单付款凭证要能看订单或能补单，意见反馈截图要能看反馈）\n[EN] Signed download URL of a private file, authorized per business type: order vouchers need order view or a\nreconcile route, feedback screenshots need feedback view",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/files/pre-upload": {
      "post": {
        "operationId": "AccessControlService_FilePreUpload",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/access_controlFilePreUploadRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlFilePreUploadResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "预上传 | [EN] Pre-upload a file",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/invitations/{code}": {
      "get": {
        "operationId": "AccessControlService_InvitationGet",
        "parameters": [
          {
            "description": "邀请码 | [EN] Invitation code",
            "in": "path",
            "maxLength": 64,
            "name": "code",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlInvitationGetResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "查看邀请 | [EN] View an invitation",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/invitations/{code}/accept": {
      "post": {
        "operationId": "AccessControlService_InvitationAccept",
        "parameters": [
          {
            "description": "邀请码 | [EN] Invitation code",
            "in": "path",
            "maxLength": 64,
            "name": "code",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/AccessControlServiceInvitationAcceptBody"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlLoginResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "新人接受邀请 | [EN] A newcomer accepts",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/invitations/{code}/accept-google": {
      "post": {
        "operationId": "AccessControlService_InvitationAcceptGoogle",
        "parameters": [
          {
            "description": "邀请码 | [EN] Invitation code",
            "in": "path",
            "maxLength": 64,
            "name": "code",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/AccessControlServiceInvitationAcceptGoogleBody"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlLoginResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "凭 Google 接受：已有账号的绑上 Google 并加入，没有账号的建账号（不设密码）、绑上并加入 | [EN] Accept with Google: an existing account is bound and joins, otherwise one is created without a password, bound and joins",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/invitations/{code}/email-code": {
      "post": {
        "operationId": "AccessControlService_InvitationEmailCodeSend",
        "parameters": [
          {
            "description": "邀请码 | [EN] Invitation code",
            "in": "path",
            "maxLength": 64,
            "name": "code",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/AccessControlServiceInvitationEmailCodeSendBody"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlInvitationEmailCodeSendResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "给被邀请的邮箱发验证码 | [EN] Send an email code to the invited email",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/invitations/{code}/join": {
      "post": {
        "operationId": "AccessControlService_InvitationJoin",
        "parameters": [
          {
            "description": "邀请码 | [EN] Invitation code",
            "in": "path",
            "maxLength": 64,
            "name": "code",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/AccessControlServiceInvitationJoinBody"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlLoginResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "已登录的本人加入 | [EN] The signed-in invitee joins",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/login-logs": {
      "get": {
        "operationId": "AccessControlService_LoginLogList",
        "parameters": [
          {
            "default": "DOMAIN_TYPE_UNSPECIFIED",
            "description": "目标身份域：运维调用必填 | [EN] Target domain, required for ops callers\n\n - DOMAIN_TYPE_UNSPECIFIED: 未指定 | [EN] Unspecified\n - DOMAIN_TYPE_ORG: 组织域（工作台、组织后台）| [EN] Org domain (workbench, organization console)\n - DOMAIN_TYPE_OPS: 运维域（超管）| [EN] Ops domain (super admin)",
            "enum": [
              "DOMAIN_TYPE_UNSPECIFIED",
              "DOMAIN_TYPE_ORG",
              "DOMAIN_TYPE_OPS"
            ],
            "in": "query",
            "name": "domain",
            "required": false,
            "type": "string"
          },
          {
            "description": "当前页码 | [EN] Current page number",
            "format": "int32",
            "in": "query",
            "minimum": 1,
            "name": "page_request.page",
            "required": false,
            "type": "integer"
          },
          {
            "description": "每页条数（上限保护，防止一次拉全表） | [EN] Page size, capped to protect the backend",
            "format": "int32",
            "in": "query",
            "maximum": 200,
            "minimum": 1,
            "name": "page_request.size",
            "required": false,
            "type": "integer"
          },
          {
            "description": "总条数（响应字段，请求 query 不继承必填） | [EN] Total count",
            "format": "int32",
            "in": "query",
            "name": "page_request.total",
            "required": false,
            "type": "integer"
          },
          {
            "description": "按登录账号模糊查询 | [EN] Fuzzy match on login account",
            "in": "query",
            "maxLength": 128,
            "name": "account",
            "required": false,
            "type": "string"
          },
          {
            "description": "身份主体 ID | [EN] Principal ID",
            "in": "query",
            "maxLength": 64,
            "name": "principal_id",
            "required": false,
            "type": "string"
          },
          {
            "default": "LOGIN_RESULT_UNSPECIFIED",
            "description": "结果，不传为全部 | [EN] Result; omitted means all\n\n - LOGIN_RESULT_UNSPECIFIED: 未指定 | [EN] Unspecified\n - LOGIN_RESULT_SUCCESS: 成功 | [EN] Success\n - LOGIN_RESULT_FAILURE: 失败 | [EN] Failure",
            "enum": [
              "LOGIN_RESULT_UNSPECIFIED",
              "LOGIN_RESULT_SUCCESS",
              "LOGIN_RESULT_FAILURE"
            ],
            "in": "query",
            "name": "result",
            "required": false,
            "type": "string"
          },
          {
            "description": "来源 IP | [EN] Source IP",
            "in": "query",
            "maxLength": 64,
            "name": "ip",
            "required": false,
            "type": "string"
          },
          {
            "description": "起（含）| [EN] Start, inclusive",
            "format": "date-time",
            "in": "query",
            "name": "period.start",
            "required": false,
            "type": "string"
          },
          {
            "description": "止（不含）| [EN] End, exclusive",
            "format": "date-time",
            "in": "query",
            "name": "period.end",
            "required": false,
            "type": "string"
          },
          {
            "description": "按组织过滤：运维调用、目标为组织域时有效 | [EN] Filter by organization, for ops callers targeting the org domain",
            "in": "query",
            "maxLength": 64,
            "name": "org_id",
            "required": false,
            "type": "string"
          },
          {
            "description": "keyset 游标；传了就不按页码翻页，深页不再扫前 N 行 | [EN] Keyset cursor; when set, paging no longer scans the first N rows",
            "in": "query",
            "name": "cursor",
            "required": false,
            "type": "string"
          },
          {
            "collectionFormat": "multi",
            "description": "身份主体 ID（多选），按团队筛时由客户端展开成成员 | [EN] Principal IDs, matching any; clients expand a team into its members",
            "in": "query",
            "items": {
              "maxLength": 64,
              "type": "string"
            },
            "maxItems": 500,
            "name": "principal_ids",
            "required": false,
            "type": "array"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlLoginLogListResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "登录日志列表 | [EN] List login logs",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/ops/accounts": {
      "get": {
        "operationId": "AccessControlService_OpsAccountSearch",
        "parameters": [
          {
            "description": "当前页码 | [EN] Current page number",
            "format": "int32",
            "in": "query",
            "minimum": 1,
            "name": "page_request.page",
            "required": false,
            "type": "integer"
          },
          {
            "description": "每页条数（上限保护，防止一次拉全表） | [EN] Page size, capped to protect the backend",
            "format": "int32",
            "in": "query",
            "maximum": 200,
            "minimum": 1,
            "name": "page_request.size",
            "required": false,
            "type": "integer"
          },
          {
            "description": "总条数（响应字段，请求 query 不继承必填） | [EN] Total count",
            "format": "int32",
            "in": "query",
            "name": "page_request.total",
            "required": false,
            "type": "integer"
          },
          {
            "description": "邮箱、登录账号、昵称、账号 ID 按包含匹配（不分大小写）；手机号按完整号码匹配，可不带国家区号，空格、短横线、括号忽略 | [EN] Email, login, nickname and account ID match by substring, case-insensitively; phone numbers match whole, with or without the country code, ignoring spaces, dashes and parentheses",
            "in": "query",
            "maxLength": 128,
            "minLength": 2,
            "name": "keyword",
            "required": true,
            "type": "string"
          },
          {
            "description": "二次验证：true 已开启、false 未开启，不传为全部 | [EN] MFA: true on, false off, omitted for all",
            "in": "query",
            "name": "mfa_enabled",
            "required": false,
            "type": "boolean"
          },
          {
            "description": "起（含）| [EN] Start, inclusive",
            "format": "date-time",
            "in": "query",
            "name": "last_login_period.start",
            "required": false,
            "type": "string"
          },
          {
            "description": "止（不含）| [EN] End, exclusive",
            "format": "date-time",
            "in": "query",
            "name": "last_login_period.end",
            "required": false,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOpsAccountSearchResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "搜索账号 | [EN] Search accounts",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/ops/accounts/{id}": {
      "get": {
        "operationId": "AccessControlService_OpsAccountGet",
        "parameters": [
          {
            "description": "账号 ID（组织域身份主体 ID）| [EN] Account ID, the org-domain principal ID",
            "in": "path",
            "maxLength": 64,
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOpsAccountGetResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "账号详情：全部成员身份与收到的邀请、最近 10 次成功登录 | [EN] Get an account: every membership and received invitation, and the last ten successful sign-ins",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/ops/announcements": {
      "get": {
        "operationId": "AccessControlService_OpsAnnouncementList",
        "parameters": [
          {
            "description": "当前页码 | [EN] Current page number",
            "format": "int32",
            "in": "query",
            "minimum": 1,
            "name": "page_request.page",
            "required": false,
            "type": "integer"
          },
          {
            "description": "每页条数（上限保护，防止一次拉全表） | [EN] Page size, capped to protect the backend",
            "format": "int32",
            "in": "query",
            "maximum": 200,
            "minimum": 1,
            "name": "page_request.size",
            "required": false,
            "type": "integer"
          },
          {
            "description": "总条数（响应字段，请求 query 不继承必填） | [EN] Total count",
            "format": "int32",
            "in": "query",
            "name": "page_request.total",
            "required": false,
            "type": "integer"
          },
          {
            "description": "按标题、摘要或发布方模糊查询 | [EN] Fuzzy match on title, summary or author",
            "in": "query",
            "maxLength": 128,
            "name": "keyword",
            "required": false,
            "type": "string"
          },
          {
            "default": "ANNOUNCEMENT_STATUS_UNSPECIFIED",
            "description": "状态，不传为全部 | [EN] Status; omitted means all\n\n - ANNOUNCEMENT_STATUS_UNSPECIFIED: 未指定 | [EN] Unspecified\n - ANNOUNCEMENT_STATUS_DRAFT: 草稿，仅运维后台可见 | [EN] Draft, visible in the ops console only\n - ANNOUNCEMENT_STATUS_PUBLISHED: 已发布，对组织用户可见 | [EN] Published, visible to organization users",
            "enum": [
              "ANNOUNCEMENT_STATUS_UNSPECIFIED",
              "ANNOUNCEMENT_STATUS_DRAFT",
              "ANNOUNCEMENT_STATUS_PUBLISHED"
            ],
            "in": "query",
            "name": "status",
            "required": false,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOpsAnnouncementListResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "公告列表 | [EN] List announcements",
        "tags": [
          "AccessControlService"
        ]
      },
      "post": {
        "operationId": "AccessControlService_OpsAnnouncementCreate",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/access_controlOpsAnnouncementCreateRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOpsAnnouncementCreateResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "新建公告 | [EN] Create an announcement",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/ops/announcements/batch-delete": {
      "post": {
        "operationId": "AccessControlService_OpsAnnouncementBatchDelete",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/access_controlOpsAnnouncementBatchDeleteRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/commonGeneralEmptyResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "批量删除公告 | [EN] Batch delete announcements",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/ops/announcements/{id}": {
      "delete": {
        "operationId": "AccessControlService_OpsAnnouncementDelete",
        "parameters": [
          {
            "description": "ID | [EN] ID",
            "in": "path",
            "maxLength": 64,
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/commonGeneralEmptyResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "删除公告 | [EN] Delete an announcement",
        "tags": [
          "AccessControlService"
        ]
      },
      "get": {
        "operationId": "AccessControlService_OpsAnnouncementGet",
        "parameters": [
          {
            "description": "ID | [EN] ID",
            "in": "path",
            "maxLength": 64,
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOpsAnnouncementGetResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "公告详情 | [EN] Get an announcement",
        "tags": [
          "AccessControlService"
        ]
      },
      "put": {
        "operationId": "AccessControlService_OpsAnnouncementUpdate",
        "parameters": [
          {
            "description": "ID | [EN] ID",
            "in": "path",
            "maxLength": 64,
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/AccessControlServiceOpsAnnouncementUpdateBody"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOpsAnnouncementUpdateResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "更新公告 | [EN] Update an announcement",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/ops/audit-logs/{id}": {
      "get": {
        "operationId": "AccessControlService_OpsAuditLogGet",
        "parameters": [
          {
            "description": "ID | [EN] ID",
            "in": "path",
            "maxLength": 64,
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOpsAuditLogGetResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "审计日志详情 | [EN] Get audit log",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/ops/audit-logs/{id}/reveal": {
      "post": {
        "operationId": "AccessControlService_OpsAuditLogReveal",
        "parameters": [
          {
            "description": "审计记录 ID | [EN] Audit record ID",
            "in": "path",
            "maxLength": 64,
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/AccessControlServiceOpsAuditLogRevealBody"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOpsAuditLogRevealResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "查看审计快照里加密的联系方式：要单独的权限，每次查看本身记一条审计 | [EN] Reveal the encrypted contacts in an audit snapshot; needs its own permission and every reveal is audited",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/ops/feedbacks": {
      "get": {
        "operationId": "AccessControlService_OpsFeedbackList",
        "parameters": [
          {
            "description": "当前页码 | [EN] Current page number",
            "format": "int32",
            "in": "query",
            "minimum": 1,
            "name": "page_request.page",
            "required": false,
            "type": "integer"
          },
          {
            "description": "每页条数（上限保护，防止一次拉全表） | [EN] Page size, capped to protect the backend",
            "format": "int32",
            "in": "query",
            "maximum": 200,
            "minimum": 1,
            "name": "page_request.size",
            "required": false,
            "type": "integer"
          },
          {
            "description": "总条数（响应字段，请求 query 不继承必填） | [EN] Total count",
            "format": "int32",
            "in": "query",
            "name": "page_request.total",
            "required": false,
            "type": "integer"
          },
          {
            "collectionFormat": "multi",
            "description": "状态，不传为全部；未完结传待处理与处理中 | [EN] Statuses, all when omitted; pending plus processing for unfinished\n\n - FEEDBACK_STATUS_UNSPECIFIED: 未指定 | [EN] Unspecified\n - FEEDBACK_STATUS_PENDING: 待处理 | [EN] Pending\n - FEEDBACK_STATUS_PROCESSING: 处理中 | [EN] Processing\n - FEEDBACK_STATUS_RESOLVED: 已解决 | [EN] Resolved\n - FEEDBACK_STATUS_CLOSED: 已关闭（带关闭原因）| [EN] Closed, with a reason",
            "in": "query",
            "items": {
              "enum": [
                "FEEDBACK_STATUS_UNSPECIFIED",
                "FEEDBACK_STATUS_PENDING",
                "FEEDBACK_STATUS_PROCESSING",
                "FEEDBACK_STATUS_RESOLVED",
                "FEEDBACK_STATUS_CLOSED"
              ],
              "type": "string"
            },
            "maxItems": 4,
            "name": "statuses",
            "required": false,
            "type": "array"
          },
          {
            "default": "FEEDBACK_TYPE_UNSPECIFIED",
            "description": "类型，不传为全部 | [EN] Type; omitted means all\n\n - FEEDBACK_TYPE_UNSPECIFIED: 未指定 | [EN] Unspecified\n - FEEDBACK_TYPE_BUG: 问题反馈 | [EN] Bug report\n - FEEDBACK_TYPE_FEATURE: 功能建议 | [EN] Feature request\n - FEEDBACK_TYPE_IMPROVEMENT: 体验优化 | [EN] Experience improvement\n - FEEDBACK_TYPE_OTHER: 其他 | [EN] Other",
            "enum": [
              "FEEDBACK_TYPE_UNSPECIFIED",
              "FEEDBACK_TYPE_BUG",
              "FEEDBACK_TYPE_FEATURE",
              "FEEDBACK_TYPE_IMPROVEMENT",
              "FEEDBACK_TYPE_OTHER"
            ],
            "in": "query",
            "name": "type",
            "required": false,
            "type": "string"
          },
          {
            "description": "起（含）| [EN] Start, inclusive",
            "format": "date-time",
            "in": "query",
            "name": "submitted_period.start",
            "required": false,
            "type": "string"
          },
          {
            "description": "止（不含）| [EN] End, exclusive",
            "format": "date-time",
            "in": "query",
            "name": "submitted_period.end",
            "required": false,
            "type": "string"
          },
          {
            "description": "按反馈 ID、正文、提交人名称或邮箱、组织名称或 ID、工作区名称模糊查询 | [EN] Fuzzy match on ID, body, submitter name or email, organization name or ID and workspace name",
            "in": "query",
            "maxLength": 128,
            "name": "keyword",
            "required": false,
            "type": "string"
          },
          {
            "description": "只看指派给调用方的 | [EN] Only those assigned to the caller",
            "in": "query",
            "name": "assigned_to_me",
            "required": false,
            "type": "boolean"
          },
          {
            "description": "汇总里切「今日 / 昨日」的时区（IANA），不传为 UTC | [EN] IANA time zone cutting today and yesterday in the summary, UTC when omitted",
            "in": "query",
            "name": "timezone",
            "required": false,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOpsFeedbackListResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "反馈列表，带全平台汇总 | [EN] List feedback with the platform-wide summary",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/ops/feedbacks/{id}": {
      "get": {
        "operationId": "AccessControlService_OpsFeedbackGet",
        "parameters": [
          {
            "description": "反馈 ID | [EN] Feedback ID",
            "in": "path",
            "maxLength": 64,
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOpsFeedbackGetResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "反馈详情，带处理记录 | [EN] Get feedback with its handling log",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/ops/feedbacks/{id}/assignee": {
      "put": {
        "operationId": "AccessControlService_OpsFeedbackAssign",
        "parameters": [
          {
            "description": "反馈 ID | [EN] Feedback ID",
            "in": "path",
            "maxLength": 64,
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/AccessControlServiceOpsFeedbackAssignBody"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOpsFeedbackGetResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "指派处理人 | [EN] Assign a handler",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/ops/feedbacks/{id}/notes": {
      "post": {
        "operationId": "AccessControlService_OpsFeedbackNoteCreate",
        "parameters": [
          {
            "description": "反馈 ID | [EN] Feedback ID",
            "in": "path",
            "maxLength": 64,
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/AccessControlServiceOpsFeedbackNoteCreateBody"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOpsFeedbackGetResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "加备注（仅平台可见）| [EN] Add a note, visible to the platform only",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/ops/feedbacks/{id}/status": {
      "put": {
        "operationId": "AccessControlService_OpsFeedbackUpdateStatus",
        "parameters": [
          {
            "description": "反馈 ID | [EN] Feedback ID",
            "in": "path",
            "maxLength": 64,
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/AccessControlServiceOpsFeedbackUpdateStatusBody"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOpsFeedbackGetResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "改状态：开始处理、解决、关闭（必填原因）、重新打开 | [EN] Change status: start, resolve, close with a reason, or reopen",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/ops/org-profile-stats": {
      "get": {
        "operationId": "AccessControlService_OpsOrgProfileStats",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOpsOrgProfileStatsResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "组织资料选用统计：每个行业、每档公司规模各有多少组织选了，以及没填的组织数（「行业与规模」页据此提示取值已被选用）\n路径不放在 /v1/ops/orgs/ 下：Casbin 按 keyMatch2 判，/v1/ops/orgs/:id 的授权会连带放行它\n[EN] Organization profile statistics: organizations per industry and company size, and those with neither, which the\nindustry and size page shows as values in use. Kept outside /v1/ops/orgs/, since Casbin's keyMatch2 would let the\n/v1/ops/orgs/:id grant cover it",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/ops/orgs": {
      "get": {
        "operationId": "AccessControlService_OpsOrgList",
        "parameters": [
          {
            "description": "当前页码 | [EN] Current page number",
            "format": "int32",
            "in": "query",
            "minimum": 1,
            "name": "page_request.page",
            "required": false,
            "type": "integer"
          },
          {
            "description": "每页条数（上限保护，防止一次拉全表） | [EN] Page size, capped to protect the backend",
            "format": "int32",
            "in": "query",
            "maximum": 200,
            "minimum": 1,
            "name": "page_request.size",
            "required": false,
            "type": "integer"
          },
          {
            "description": "总条数（响应字段，请求 query 不继承必填） | [EN] Total count",
            "format": "int32",
            "in": "query",
            "name": "page_request.total",
            "required": false,
            "type": "integer"
          },
          {
            "description": "按名称或 ID 模糊查询 | [EN] Fuzzy match on name or ID",
            "in": "query",
            "maxLength": 128,
            "name": "keyword",
            "required": false,
            "type": "string"
          },
          {
            "default": "COMMON_STATUS_UNSPECIFIED",
            "description": "状态，不传为全部 | [EN] Status; omitted means all\n\n - COMMON_STATUS_UNSPECIFIED: 未指定 | [EN] Unspecified\n - COMMON_STATUS_NORMAL: 正常 | [EN] Normal\n - COMMON_STATUS_DISABLED: 禁用 | [EN] Disabled",
            "enum": [
              "COMMON_STATUS_UNSPECIFIED",
              "COMMON_STATUS_NORMAL",
              "COMMON_STATUS_DISABLED"
            ],
            "in": "query",
            "name": "status",
            "required": false,
            "type": "string"
          },
          {
            "description": "行业分类编码，精确匹配 | [EN] Industry code, exact match",
            "in": "query",
            "maxLength": 64,
            "name": "industry",
            "required": false,
            "type": "string"
          },
          {
            "description": "公司规模编码，精确匹配 | [EN] Company size code, exact match",
            "in": "query",
            "maxLength": 64,
            "name": "scale",
            "required": false,
            "type": "string"
          },
          {
            "description": "国家/地区（ISO 3166-1 两位大写）| [EN] Country or region, two upper-case ISO 3166-1 letters",
            "in": "query",
            "maxLength": 2,
            "minLength": 2,
            "name": "country",
            "required": false,
            "type": "string"
          },
          {
            "default": "ORG_SOURCE_UNSPECIFIED",
            "description": "注册来源，不传为全部 | [EN] Sign-up source; omitted means all\n\n - ORG_SOURCE_UNSPECIFIED: 未指定：来源不明的存量组织（注册时不传按自然注册记）| [EN] Unspecified, for older organizations of unknown origin; omitted at sign-up it records organic\n - ORG_SOURCE_ORGANIC: 自然注册 | [EN] Organic sign-up\n - ORG_SOURCE_PARTNER: 合伙人推荐，带注册人自填的合伙人编号 | [EN] Referred by a partner, with the self-reported partner code\n - ORG_SOURCE_SALES: 销售开通：只由运维设置，公开注册不接受 | [EN] Opened by sales; set by ops only, refused at public sign-up",
            "enum": [
              "ORG_SOURCE_UNSPECIFIED",
              "ORG_SOURCE_ORGANIC",
              "ORG_SOURCE_PARTNER",
              "ORG_SOURCE_SALES"
            ],
            "in": "query",
            "name": "source",
            "required": false,
            "type": "string"
          },
          {
            "description": "起（含）| [EN] Start, inclusive",
            "format": "date-time",
            "in": "query",
            "name": "created_period.start",
            "required": false,
            "type": "string"
          },
          {
            "description": "止（不含）| [EN] End, exclusive",
            "format": "date-time",
            "in": "query",
            "name": "created_period.end",
            "required": false,
            "type": "string"
          },
          {
            "description": "排序字段 | [EN] Sort field",
            "in": "query",
            "name": "sorting.field",
            "required": false,
            "type": "string"
          },
          {
            "description": "是否升序 | [EN] Whether ascending",
            "in": "query",
            "name": "sorting.ascending",
            "required": false,
            "type": "boolean"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOpsOrgListResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "组织列表 | [EN] List organizations",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/ops/orgs/{id}": {
      "get": {
        "operationId": "AccessControlService_OpsOrgGet",
        "parameters": [
          {
            "description": "ID | [EN] ID",
            "in": "path",
            "maxLength": 64,
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOpsOrgGetResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "组织详情 | [EN] Get organization",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/ops/orgs/{id}/mfa": {
      "put": {
        "operationId": "AccessControlService_OpsOrgUpdateMfa",
        "parameters": [
          {
            "description": "ID | [EN] ID",
            "in": "path",
            "maxLength": 64,
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/AccessControlServiceOpsOrgUpdateMfaBody"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/commonGeneralEmptyResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "修改强制二次验证 | [EN] Update MFA enforcement",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/ops/orgs/{id}/observer-tickets": {
      "post": {
        "operationId": "AccessControlService_OpsOrgObserverTicketCreate",
        "parameters": [
          {
            "description": "组织 ID | [EN] Organization ID",
            "in": "path",
            "maxLength": 64,
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/AccessControlServiceOpsOrgObserverTicketCreateBody"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOpsOrgObserverTicketCreateResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "创建观察者登录票据：以组织所有者身份进入组织后台，只读\n[EN] Create an observer ticket: enter the organization console as the owner, read-only",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/ops/orgs/{id}/status": {
      "put": {
        "operationId": "AccessControlService_OpsOrgUpdateStatus",
        "parameters": [
          {
            "description": "ID | [EN] ID",
            "in": "path",
            "maxLength": 64,
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/AccessControlServiceOpsOrgUpdateStatusBody"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/commonGeneralEmptyResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "修改组织状态 | [EN] Update organization status",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/ops/permissions": {
      "post": {
        "operationId": "AccessControlService_OpsPermissionCreate",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/access_controlOpsPermissionCreateRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOpsPermissionCreateResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "创建权限节点 | [EN] Create permission node",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/ops/permissions/{id}": {
      "delete": {
        "operationId": "AccessControlService_OpsPermissionDelete",
        "parameters": [
          {
            "description": "ID | [EN] ID",
            "in": "path",
            "maxLength": 64,
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "default": "DOMAIN_TYPE_UNSPECIFIED",
            "description": "目标身份域 | [EN] Target domain\n\n - DOMAIN_TYPE_UNSPECIFIED: 未指定 | [EN] Unspecified\n - DOMAIN_TYPE_ORG: 组织域（工作台、组织后台）| [EN] Org domain (workbench, organization console)\n - DOMAIN_TYPE_OPS: 运维域（超管）| [EN] Ops domain (super admin)",
            "enum": [
              "DOMAIN_TYPE_UNSPECIFIED",
              "DOMAIN_TYPE_ORG",
              "DOMAIN_TYPE_OPS"
            ],
            "in": "query",
            "name": "domain",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/commonGeneralEmptyResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "删除权限节点 | [EN] Delete permission node",
        "tags": [
          "AccessControlService"
        ]
      },
      "put": {
        "operationId": "AccessControlService_OpsPermissionUpdate",
        "parameters": [
          {
            "description": "ID | [EN] ID",
            "in": "path",
            "maxLength": 64,
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/AccessControlServiceOpsPermissionUpdateBody"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOpsPermissionUpdateResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "更新权限节点 | [EN] Update permission node",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/ops/permissions/{id}/status": {
      "put": {
        "operationId": "AccessControlService_OpsPermissionUpdateStatus",
        "parameters": [
          {
            "description": "ID | [EN] ID",
            "in": "path",
            "maxLength": 64,
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/AccessControlServiceOpsPermissionUpdateStatusBody"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/commonGeneralEmptyResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "修改权限节点状态 | [EN] Update permission node status",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/ops/role-templates": {
      "get": {
        "operationId": "AccessControlService_OpsRoleTemplateList",
        "parameters": [
          {
            "description": "按编码或名称模糊查询 | [EN] Fuzzy match on code or name",
            "in": "query",
            "maxLength": 64,
            "name": "keyword",
            "required": false,
            "type": "string"
          },
          {
            "default": "COMMON_STATUS_UNSPECIFIED",
            "description": "状态，不传为全部 | [EN] Status; omitted means all\n\n - COMMON_STATUS_UNSPECIFIED: 未指定 | [EN] Unspecified\n - COMMON_STATUS_NORMAL: 正常 | [EN] Normal\n - COMMON_STATUS_DISABLED: 禁用 | [EN] Disabled",
            "enum": [
              "COMMON_STATUS_UNSPECIFIED",
              "COMMON_STATUS_NORMAL",
              "COMMON_STATUS_DISABLED"
            ],
            "in": "query",
            "name": "status",
            "required": false,
            "type": "string"
          },
          {
            "description": "只看适用于这个组织的模板 | [EN] Only templates applying to this organization",
            "in": "query",
            "maxLength": 64,
            "name": "org_id",
            "required": false,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOpsRoleTemplateListResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "角色模板列表 | [EN] List role templates",
        "tags": [
          "AccessControlService"
        ]
      },
      "post": {
        "operationId": "AccessControlService_OpsRoleTemplateCreate",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/access_controlOpsRoleTemplateCreateRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOpsRoleTemplateCreateResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "创建角色模板 | [EN] Create role template",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/ops/role-templates/{id}": {
      "delete": {
        "operationId": "AccessControlService_OpsRoleTemplateDelete",
        "parameters": [
          {
            "description": "ID | [EN] ID",
            "in": "path",
            "maxLength": 64,
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/commonGeneralEmptyResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "删除角色模板 | [EN] Delete role template",
        "tags": [
          "AccessControlService"
        ]
      },
      "get": {
        "operationId": "AccessControlService_OpsRoleTemplateGet",
        "parameters": [
          {
            "description": "ID | [EN] ID",
            "in": "path",
            "maxLength": 64,
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOpsRoleTemplateGetResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "角色模板详情 | [EN] Get role template",
        "tags": [
          "AccessControlService"
        ]
      },
      "put": {
        "operationId": "AccessControlService_OpsRoleTemplateUpdate",
        "parameters": [
          {
            "description": "ID | [EN] ID",
            "in": "path",
            "maxLength": 64,
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/AccessControlServiceOpsRoleTemplateUpdateBody"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOpsRoleTemplateUpdateResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "更新角色模板 | [EN] Update role template",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/ops/role-templates/{id}/grants": {
      "put": {
        "operationId": "AccessControlService_OpsRoleTemplateGrantsSet",
        "parameters": [
          {
            "description": "ID | [EN] ID",
            "in": "path",
            "maxLength": 64,
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/AccessControlServiceOpsRoleTemplateGrantsSetBody"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/commonGeneralEmptyResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "整组替换授权 | [EN] Replace grants",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/ops/role-templates/{id}/orgs": {
      "put": {
        "operationId": "AccessControlService_OpsRoleTemplateOrgsSet",
        "parameters": [
          {
            "description": "ID | [EN] ID",
            "in": "path",
            "maxLength": 64,
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/AccessControlServiceOpsRoleTemplateOrgsSetBody"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/commonGeneralEmptyResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "设置适用的组织 | [EN] Set the organizations it applies to",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/ops/role-templates/{id}/status": {
      "put": {
        "operationId": "AccessControlService_OpsRoleTemplateUpdateStatus",
        "parameters": [
          {
            "description": "ID | [EN] ID",
            "in": "path",
            "maxLength": 64,
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/AccessControlServiceOpsRoleTemplateUpdateStatusBody"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/commonGeneralEmptyResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "修改角色模板状态 | [EN] Update role template status",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/ops/roles": {
      "get": {
        "operationId": "AccessControlService_OpsRoleList",
        "parameters": [
          {
            "description": "按编码或名称模糊查询 | [EN] Fuzzy match on code or name",
            "in": "query",
            "maxLength": 64,
            "name": "keyword",
            "required": false,
            "type": "string"
          },
          {
            "default": "COMMON_STATUS_UNSPECIFIED",
            "description": "状态，不传为全部 | [EN] Status; omitted means all\n\n - COMMON_STATUS_UNSPECIFIED: 未指定 | [EN] Unspecified\n - COMMON_STATUS_NORMAL: 正常 | [EN] Normal\n - COMMON_STATUS_DISABLED: 禁用 | [EN] Disabled",
            "enum": [
              "COMMON_STATUS_UNSPECIFIED",
              "COMMON_STATUS_NORMAL",
              "COMMON_STATUS_DISABLED"
            ],
            "in": "query",
            "name": "status",
            "required": false,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOpsRoleListResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "运维角色列表 | [EN] List ops roles",
        "tags": [
          "AccessControlService"
        ]
      },
      "post": {
        "operationId": "AccessControlService_OpsRoleCreate",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/access_controlOpsRoleCreateRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOpsRoleCreateResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "创建运维角色 | [EN] Create ops role",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/ops/roles/{id}": {
      "get": {
        "operationId": "AccessControlService_OpsRoleGet",
        "parameters": [
          {
            "description": "ID | [EN] ID",
            "in": "path",
            "maxLength": 64,
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOpsRoleGetResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "运维角色详情 | [EN] Get ops role",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/ops/roles/{id}/permissions": {
      "put": {
        "operationId": "AccessControlService_OpsRolePermissionsSet",
        "parameters": [
          {
            "description": "ID | [EN] ID",
            "in": "path",
            "maxLength": 64,
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/AccessControlServiceOpsRolePermissionsSetBody"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/commonGeneralEmptyResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "整组替换授权 | [EN] Replace grants",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/ops/security-rules": {
      "get": {
        "operationId": "AccessControlService_OpsSecurityRulesGet",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOpsSecurityRulesGetResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "读取安全规则（按来源 IP 的每日上限）| [EN] Get security rules, the per-source-IP daily caps",
        "tags": [
          "AccessControlService"
        ]
      },
      "put": {
        "operationId": "AccessControlService_OpsSecurityRulesSave",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/access_controlOpsSecurityRulesSaveRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOpsSecurityRulesSaveResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "保存安全规则 | [EN] Save security rules",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/ops/security-settings": {
      "get": {
        "operationId": "AccessControlService_OpsSecuritySettingsGet",
        "parameters": [
          {
            "default": "DOMAIN_TYPE_UNSPECIFIED",
            "description": "目标身份域 | [EN] Target domain\n\n - DOMAIN_TYPE_UNSPECIFIED: 未指定 | [EN] Unspecified\n - DOMAIN_TYPE_ORG: 组织域（工作台、组织后台）| [EN] Org domain (workbench, organization console)\n - DOMAIN_TYPE_OPS: 运维域（超管）| [EN] Ops domain (super admin)",
            "enum": [
              "DOMAIN_TYPE_UNSPECIFIED",
              "DOMAIN_TYPE_ORG",
              "DOMAIN_TYPE_OPS"
            ],
            "in": "query",
            "name": "domain",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOpsSecuritySettingsGetResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "读取安全策略 | [EN] Get security settings",
        "tags": [
          "AccessControlService"
        ]
      },
      "put": {
        "operationId": "AccessControlService_OpsSecuritySettingsSave",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/access_controlOpsSecuritySettingsSaveRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOpsSecuritySettingsSaveResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "保存安全策略 | [EN] Save security settings",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/ops/service-config": {
      "get": {
        "operationId": "AccessControlService_OpsServiceConfigGet",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOpsServiceConfigGetResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "读取全部服务配置（敏感值掩码）| [EN] Get all service config, secrets masked",
        "tags": [
          "AccessControlService"
        ]
      },
      "post": {
        "operationId": "AccessControlService_OpsServiceConfigSave",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/access_controlOpsServiceConfigSaveRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOpsServiceConfigSaveResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "保存一个域的服务配置 | [EN] Save one domain's service config",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/ops/service-config/reveal": {
      "post": {
        "operationId": "AccessControlService_OpsServiceConfigReveal",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/access_controlOpsServiceConfigRevealRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOpsServiceConfigRevealResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "查看某个敏感字段的明文：单独权限，每次查看记审计 | [EN] Reveal one secret field's plaintext; own permission and audited",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/ops/teams": {
      "get": {
        "operationId": "AccessControlService_OpsTeamList",
        "parameters": [
          {
            "description": "当前页码 | [EN] Current page number",
            "format": "int32",
            "in": "query",
            "minimum": 1,
            "name": "page_request.page",
            "required": false,
            "type": "integer"
          },
          {
            "description": "每页条数（上限保护，防止一次拉全表） | [EN] Page size, capped to protect the backend",
            "format": "int32",
            "in": "query",
            "maximum": 200,
            "minimum": 1,
            "name": "page_request.size",
            "required": false,
            "type": "integer"
          },
          {
            "description": "总条数（响应字段，请求 query 不继承必填） | [EN] Total count",
            "format": "int32",
            "in": "query",
            "name": "page_request.total",
            "required": false,
            "type": "integer"
          },
          {
            "description": "组织 | [EN] Organization",
            "in": "query",
            "maxLength": 64,
            "name": "org_id",
            "required": false,
            "type": "string"
          },
          {
            "description": "工作区 | [EN] Workspace",
            "in": "query",
            "maxLength": 64,
            "name": "workspace_id",
            "required": false,
            "type": "string"
          },
          {
            "description": "按名称或 ID 模糊查询 | [EN] Fuzzy match on name or ID",
            "in": "query",
            "maxLength": 128,
            "name": "keyword",
            "required": false,
            "type": "string"
          },
          {
            "default": "COMMON_STATUS_UNSPECIFIED",
            "description": "状态，不传为全部 | [EN] Status; omitted means all\n\n - COMMON_STATUS_UNSPECIFIED: 未指定 | [EN] Unspecified\n - COMMON_STATUS_NORMAL: 正常 | [EN] Normal\n - COMMON_STATUS_DISABLED: 禁用 | [EN] Disabled",
            "enum": [
              "COMMON_STATUS_UNSPECIFIED",
              "COMMON_STATUS_NORMAL",
              "COMMON_STATUS_DISABLED"
            ],
            "in": "query",
            "name": "status",
            "required": false,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOpsTeamListResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "团队列表 | [EN] List teams",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/ops/users": {
      "get": {
        "operationId": "AccessControlService_OpsUserList",
        "parameters": [
          {
            "description": "当前页码 | [EN] Current page number",
            "format": "int32",
            "in": "query",
            "minimum": 1,
            "name": "page_request.page",
            "required": false,
            "type": "integer"
          },
          {
            "description": "每页条数（上限保护，防止一次拉全表） | [EN] Page size, capped to protect the backend",
            "format": "int32",
            "in": "query",
            "maximum": 200,
            "minimum": 1,
            "name": "page_request.size",
            "required": false,
            "type": "integer"
          },
          {
            "description": "总条数（响应字段，请求 query 不继承必填） | [EN] Total count",
            "format": "int32",
            "in": "query",
            "name": "page_request.total",
            "required": false,
            "type": "integer"
          },
          {
            "description": "按登录账号、邮箱、显示名模糊查询 | [EN] Fuzzy match on login account, email or display name",
            "in": "query",
            "maxLength": 64,
            "name": "keyword",
            "required": false,
            "type": "string"
          },
          {
            "default": "PRINCIPAL_STATUS_UNSPECIFIED",
            "description": "状态，不传为全部 | [EN] Status; omitted means all\n\n - PRINCIPAL_STATUS_UNSPECIFIED: 未指定 | [EN] Unspecified\n - PRINCIPAL_STATUS_ACTIVE: 正常 | [EN] Active\n - PRINCIPAL_STATUS_DISABLED: 禁用 | [EN] Disabled",
            "enum": [
              "PRINCIPAL_STATUS_UNSPECIFIED",
              "PRINCIPAL_STATUS_ACTIVE",
              "PRINCIPAL_STATUS_DISABLED"
            ],
            "in": "query",
            "name": "status",
            "required": false,
            "type": "string"
          },
          {
            "description": "按角色过滤 | [EN] Filter by role",
            "in": "query",
            "maxLength": 64,
            "name": "role_id",
            "required": false,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOpsUserListResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "运维账号列表 | [EN] List ops users",
        "tags": [
          "AccessControlService"
        ]
      },
      "post": {
        "operationId": "AccessControlService_OpsUserCreate",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/access_controlOpsUserCreateRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOpsUserCreateResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "创建运维账号 | [EN] Create ops user",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/ops/users/{id}": {
      "delete": {
        "operationId": "AccessControlService_OpsUserDelete",
        "parameters": [
          {
            "description": "ID | [EN] ID",
            "in": "path",
            "maxLength": 64,
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/commonGeneralEmptyResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "删除运维账号 | [EN] Delete ops user",
        "tags": [
          "AccessControlService"
        ]
      },
      "get": {
        "operationId": "AccessControlService_OpsUserGet",
        "parameters": [
          {
            "description": "ID | [EN] ID",
            "in": "path",
            "maxLength": 64,
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOpsUserGetResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "运维账号详情 | [EN] Get ops user",
        "tags": [
          "AccessControlService"
        ]
      },
      "put": {
        "operationId": "AccessControlService_OpsUserUpdate",
        "parameters": [
          {
            "description": "ID | [EN] ID",
            "in": "path",
            "maxLength": 64,
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/AccessControlServiceOpsUserUpdateBody"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOpsUserUpdateResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "修改运维账号资料 | [EN] Update ops user",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/ops/users/{id}/roles": {
      "put": {
        "operationId": "AccessControlService_OpsUserRolesSet",
        "parameters": [
          {
            "description": "ID | [EN] ID",
            "in": "path",
            "maxLength": 64,
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/AccessControlServiceOpsUserRolesSetBody"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/commonGeneralEmptyResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "整组替换角色 | [EN] Replace roles",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/ops/users/{id}/status": {
      "put": {
        "operationId": "AccessControlService_OpsUserUpdateStatus",
        "parameters": [
          {
            "description": "ID | [EN] ID",
            "in": "path",
            "maxLength": 64,
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/AccessControlServiceOpsUserUpdateStatusBody"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/commonGeneralEmptyResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "修改运维账号状态 | [EN] Update ops user status",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/ops/workspaces": {
      "get": {
        "operationId": "AccessControlService_OpsWorkspaceList",
        "parameters": [
          {
            "description": "当前页码 | [EN] Current page number",
            "format": "int32",
            "in": "query",
            "minimum": 1,
            "name": "page_request.page",
            "required": false,
            "type": "integer"
          },
          {
            "description": "每页条数（上限保护，防止一次拉全表） | [EN] Page size, capped to protect the backend",
            "format": "int32",
            "in": "query",
            "maximum": 200,
            "minimum": 1,
            "name": "page_request.size",
            "required": false,
            "type": "integer"
          },
          {
            "description": "总条数（响应字段，请求 query 不继承必填） | [EN] Total count",
            "format": "int32",
            "in": "query",
            "name": "page_request.total",
            "required": false,
            "type": "integer"
          },
          {
            "description": "组织；给了时默认工作区排最前 | [EN] Organization; when given its default workspace comes first",
            "in": "query",
            "maxLength": 64,
            "name": "org_id",
            "required": false,
            "type": "string"
          },
          {
            "description": "按名称或 ID 模糊查询 | [EN] Fuzzy match on name or ID",
            "in": "query",
            "maxLength": 128,
            "name": "keyword",
            "required": false,
            "type": "string"
          },
          {
            "default": "COMMON_STATUS_UNSPECIFIED",
            "description": "状态，不传为全部 | [EN] Status; omitted means all\n\n - COMMON_STATUS_UNSPECIFIED: 未指定 | [EN] Unspecified\n - COMMON_STATUS_NORMAL: 正常 | [EN] Normal\n - COMMON_STATUS_DISABLED: 禁用 | [EN] Disabled",
            "enum": [
              "COMMON_STATUS_UNSPECIFIED",
              "COMMON_STATUS_NORMAL",
              "COMMON_STATUS_DISABLED"
            ],
            "in": "query",
            "name": "status",
            "required": false,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOpsWorkspaceListResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "工作区列表 | [EN] List workspaces",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/ops/workspaces/{id}/status": {
      "put": {
        "operationId": "AccessControlService_OpsWorkspaceUpdateStatus",
        "parameters": [
          {
            "description": "ID | [EN] ID",
            "in": "path",
            "maxLength": 64,
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/AccessControlServiceOpsWorkspaceUpdateStatusBody"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/commonGeneralEmptyResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "启用或停用；停用时这个工作区的会话立即撤销，组织的默认工作区不能停用 | [EN] Enable or disable; disabling revokes the workspace's sessions at once, and an organization's default workspace cannot be disabled",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/ops/workspaces/{workspace_id}/members": {
      "get": {
        "operationId": "AccessControlService_OpsWorkspaceMembers",
        "parameters": [
          {
            "description": "工作区 ID | [EN] Workspace ID",
            "in": "path",
            "maxLength": 64,
            "name": "workspace_id",
            "required": true,
            "type": "string"
          },
          {
            "description": "当前页码 | [EN] Current page number",
            "format": "int32",
            "in": "query",
            "minimum": 1,
            "name": "page_request.page",
            "required": false,
            "type": "integer"
          },
          {
            "description": "每页条数（上限保护，防止一次拉全表） | [EN] Page size, capped to protect the backend",
            "format": "int32",
            "in": "query",
            "maximum": 200,
            "minimum": 1,
            "name": "page_request.size",
            "required": false,
            "type": "integer"
          },
          {
            "description": "总条数（响应字段，请求 query 不继承必填） | [EN] Total count",
            "format": "int32",
            "in": "query",
            "name": "page_request.total",
            "required": false,
            "type": "integer"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOpsWorkspaceMemberListResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "工作区成员：数据来自 AC 自己的成员与身份主体表 | [EN] Workspace members from AC's own account and principal tables\n请求类型沿用已发布的 List 命名，改名会改变生成客户端的方法签名 | [EN] The request keeps its published List name; renaming it would change generated client signatures\nbuf:lint:ignore RPC_REQUEST_STANDARD_NAME",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/org/account-settings/access-levels": {
      "get": {
        "operationId": "AccessControlService_OrgAccessLevels",
        "parameters": [
          {
            "description": "工作区，不传为当前工作区；非组织管理员只能是当前工作区 | [EN] Workspace, the current one when omitted; non-admins may only pass the current one",
            "in": "query",
            "maxLength": 64,
            "name": "workspace_id",
            "required": false,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOrgAccessLevelsResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "访问级别 | [EN] Access levels",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/org/account-settings/accounts": {
      "get": {
        "operationId": "AccessControlService_OrgAccountDirectoryList",
        "parameters": [
          {
            "description": "工作区，不传为当前工作区；非组织管理员只能是当前工作区 | [EN] Workspace, the current one when omitted; non-admins may only pass the current one",
            "in": "query",
            "maxLength": 64,
            "name": "workspace_id",
            "required": false,
            "type": "string"
          },
          {
            "description": "按登录账号、邮箱、手机号、显示名模糊查询 | [EN] Fuzzy match on login, email, phone or display name",
            "in": "query",
            "maxLength": 64,
            "name": "keyword",
            "required": false,
            "type": "string"
          },
          {
            "default": "MEMBERSHIP_STATUS_UNSPECIFIED",
            "description": "加入状态，不传为全部 | [EN] Membership state; omitted means all\n\n - MEMBERSHIP_STATUS_UNSPECIFIED: 全部（成员与待接受的邀请）| [EN] All: accounts and pending invitations\n - MEMBERSHIP_STATUS_JOINED: 已加入的成员 | [EN] Joined accounts\n - MEMBERSHIP_STATUS_PENDING: 待接受的邀请 | [EN] Pending invitations",
            "enum": [
              "MEMBERSHIP_STATUS_UNSPECIFIED",
              "MEMBERSHIP_STATUS_JOINED",
              "MEMBERSHIP_STATUS_PENDING"
            ],
            "in": "query",
            "name": "membership_status",
            "required": false,
            "type": "string"
          },
          {
            "description": "团队 | [EN] Team",
            "in": "query",
            "maxLength": 64,
            "name": "team_id",
            "required": false,
            "type": "string"
          },
          {
            "description": "角色 | [EN] Role",
            "in": "query",
            "maxLength": 64,
            "name": "role_id",
            "required": false,
            "type": "string"
          },
          {
            "default": "ACCOUNT_STATUS_UNSPECIFIED",
            "description": "成员状态 | [EN] Account status\n\n - ACCOUNT_STATUS_UNSPECIFIED: 未指定 | [EN] Unspecified\n - ACCOUNT_STATUS_ACTIVE: 正常 | [EN] Active\n - ACCOUNT_STATUS_DISABLED: 禁用 | [EN] Disabled",
            "enum": [
              "ACCOUNT_STATUS_UNSPECIFIED",
              "ACCOUNT_STATUS_ACTIVE",
              "ACCOUNT_STATUS_DISABLED"
            ],
            "in": "query",
            "name": "status",
            "required": false,
            "type": "string"
          },
          {
            "description": "当前页码 | [EN] Current page number",
            "format": "int32",
            "in": "query",
            "minimum": 1,
            "name": "page_request.page",
            "required": false,
            "type": "integer"
          },
          {
            "description": "每页条数（上限保护，防止一次拉全表） | [EN] Page size, capped to protect the backend",
            "format": "int32",
            "in": "query",
            "maximum": 200,
            "minimum": 1,
            "name": "page_request.size",
            "required": false,
            "type": "integer"
          },
          {
            "description": "总条数（响应字段，请求 query 不继承必填） | [EN] Total count",
            "format": "int32",
            "in": "query",
            "name": "page_request.total",
            "required": false,
            "type": "integer"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOrgAccountDirectoryListResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "成员名录：成员与待接受的邀请（account:view）| [EN] Account directory with accounts and pending invitations, under account:view",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/org/account-settings/options": {
      "get": {
        "operationId": "AccessControlService_OrgAccountOptions",
        "parameters": [
          {
            "description": "工作区，不传为当前工作区；非组织管理员只能是当前工作区 | [EN] Workspace, the current one when omitted; non-admins may only pass the current one",
            "in": "query",
            "maxLength": 64,
            "name": "workspace_id",
            "required": false,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOrgAccountOptionsResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "成员表单选项 | [EN] Account form options",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/org/accounts": {
      "get": {
        "operationId": "AccessControlService_OrgAccountList",
        "parameters": [
          {
            "description": "当前页码 | [EN] Current page number",
            "format": "int32",
            "in": "query",
            "minimum": 1,
            "name": "page_request.page",
            "required": false,
            "type": "integer"
          },
          {
            "description": "每页条数（上限保护，防止一次拉全表） | [EN] Page size, capped to protect the backend",
            "format": "int32",
            "in": "query",
            "maximum": 200,
            "minimum": 1,
            "name": "page_request.size",
            "required": false,
            "type": "integer"
          },
          {
            "description": "总条数（响应字段，请求 query 不继承必填） | [EN] Total count",
            "format": "int32",
            "in": "query",
            "name": "page_request.total",
            "required": false,
            "type": "integer"
          },
          {
            "description": "工作区，不传为全组织 | [EN] Workspace; omitted means the whole organization",
            "in": "query",
            "maxLength": 64,
            "name": "workspace_id",
            "required": false,
            "type": "string"
          },
          {
            "description": "团队 | [EN] Team",
            "in": "query",
            "maxLength": 64,
            "name": "team_id",
            "required": false,
            "type": "string"
          },
          {
            "description": "角色 | [EN] Role",
            "in": "query",
            "maxLength": 64,
            "name": "role_id",
            "required": false,
            "type": "string"
          },
          {
            "description": "按登录账号、邮箱、手机号、显示名模糊查询 | [EN] Fuzzy match on login account, email, phone or display name",
            "in": "query",
            "maxLength": 64,
            "name": "keyword",
            "required": false,
            "type": "string"
          },
          {
            "default": "ACCOUNT_STATUS_UNSPECIFIED",
            "description": "状态，不传为全部 | [EN] Status; omitted means all\n\n - ACCOUNT_STATUS_UNSPECIFIED: 未指定 | [EN] Unspecified\n - ACCOUNT_STATUS_ACTIVE: 正常 | [EN] Active\n - ACCOUNT_STATUS_DISABLED: 禁用 | [EN] Disabled",
            "enum": [
              "ACCOUNT_STATUS_UNSPECIFIED",
              "ACCOUNT_STATUS_ACTIVE",
              "ACCOUNT_STATUS_DISABLED"
            ],
            "in": "query",
            "name": "status",
            "required": false,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOrgAccountListResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "成员列表 | [EN] List accounts",
        "tags": [
          "AccessControlService"
        ]
      },
      "post": {
        "operationId": "AccessControlService_OrgAccountCreate",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/access_controlOrgAccountCreateRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOrgAccountCreateResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "添加成员 | [EN] Add account",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/org/accounts/{account_id}/restrictions": {
      "get": {
        "operationId": "AccessControlService_OrgAccountRestrictionsGet",
        "parameters": [
          {
            "description": "成员 ID | [EN] Account ID",
            "in": "path",
            "maxLength": 64,
            "name": "account_id",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOrgAccountRestrictionsGetResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "成员的高级限制（account:view）| [EN] An account's restrictions, under account:view",
        "tags": [
          "AccessControlService"
        ]
      },
      "put": {
        "operationId": "AccessControlService_OrgAccountRestrictionsSet",
        "parameters": [
          {
            "description": "成员 ID | [EN] Account ID",
            "in": "path",
            "maxLength": 64,
            "name": "account_id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/AccessControlServiceOrgAccountRestrictionsSetBody"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/commonGeneralEmptyResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "整组替换成员的高级限制（account:restriction，且只能改等级比自己低的成员）| [EN] Replaces an account's restrictions, under account:restriction and only for lower-ranked accounts",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/org/accounts/{id}": {
      "delete": {
        "operationId": "AccessControlService_OrgAccountDelete",
        "parameters": [
          {
            "description": "ID | [EN] ID",
            "in": "path",
            "maxLength": 64,
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "default": "CONVERSATION_ACTION_UNSPECIFIED",
            "description": "名下会话的处理方式，不传为取消分配 | [EN] What happens to the account's conversations; unassign when omitted\n\n - CONVERSATION_ACTION_UNSPECIFIED: 未指定，按取消分配处理 | [EN] Unspecified, treated as unassign\n - CONVERSATION_ACTION_UNASSIGN: 取消分配，回到待分配 | [EN] Unassign, back to the unassigned queue\n - CONVERSATION_ACTION_TRANSFER: 转交给同工作区的另一名在用成员 | [EN] Transfer to another active account of the same workspace",
            "enum": [
              "CONVERSATION_ACTION_UNSPECIFIED",
              "CONVERSATION_ACTION_UNASSIGN",
              "CONVERSATION_ACTION_TRANSFER"
            ],
            "in": "query",
            "name": "conversation_action",
            "required": false,
            "type": "string"
          },
          {
            "description": "转交时接手的成员：同工作区另一名在用成员 | [EN] Account taking over on transfer: another active account of the same workspace",
            "in": "query",
            "maxLength": 64,
            "name": "target_account_id",
            "required": false,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOrgAccountDeleteResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "移除成员 | [EN] Remove account",
        "tags": [
          "AccessControlService"
        ]
      },
      "get": {
        "operationId": "AccessControlService_OrgAccountGet",
        "parameters": [
          {
            "description": "ID | [EN] ID",
            "in": "path",
            "maxLength": 64,
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOrgAccountGetResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "成员详情 | [EN] Get account",
        "tags": [
          "AccessControlService"
        ]
      },
      "put": {
        "operationId": "AccessControlService_OrgAccountUpdate",
        "parameters": [
          {
            "description": "ID | [EN] ID",
            "in": "path",
            "maxLength": 64,
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/AccessControlServiceOrgAccountUpdateBody"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOrgAccountUpdateResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "修改成员 | [EN] Update account",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/org/accounts/{id}/status": {
      "put": {
        "operationId": "AccessControlService_OrgAccountUpdateStatus",
        "parameters": [
          {
            "description": "ID | [EN] ID",
            "in": "path",
            "maxLength": 64,
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/AccessControlServiceOrgAccountUpdateStatusBody"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/commonGeneralEmptyResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "修改成员状态 | [EN] Update account status",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/org/console/profile": {
      "get": {
        "operationId": "AccessControlService_OrgProfileGet",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOrgProfileGetResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "组织信息 | [EN] Organization profile",
        "tags": [
          "AccessControlService"
        ]
      },
      "put": {
        "operationId": "AccessControlService_OrgProfileUpdate",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/access_controlOrgProfileUpdateRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOrgProfileUpdateResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "修改组织信息（org:update）| [EN] Update the organization profile, under org:update",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/org/console/security": {
      "get": {
        "operationId": "AccessControlService_OrgSecurityGet",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOrgSecurityGetResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "组织安全设置 | [EN] Organization security",
        "tags": [
          "AccessControlService"
        ]
      },
      "put": {
        "operationId": "AccessControlService_OrgSecurityUpdate",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/access_controlOrgSecurityUpdateRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/commonGeneralEmptyResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "修改组织安全设置（org:update；开启强制二次验证前调用方自己须已绑定）| [EN] Update security, under org:update; enforcing MFA requires the caller's own MFA first",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/org/console/teams": {
      "get": {
        "operationId": "AccessControlService_OrgTeamList",
        "parameters": [
          {
            "description": "工作区，不传为当前工作区；非组织管理员只能是当前工作区 | [EN] Workspace, the current one when omitted; non-admins may only pass the current one",
            "in": "query",
            "maxLength": 64,
            "name": "workspace_id",
            "required": false,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOrgTeamListResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "团队列表 | [EN] List teams",
        "tags": [
          "AccessControlService"
        ]
      },
      "post": {
        "operationId": "AccessControlService_OrgTeamCreate",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/access_controlOrgTeamCreateRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOrgTeamCreateResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "建团队 | [EN] Create a team",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/org/console/teams/{id}": {
      "delete": {
        "operationId": "AccessControlService_OrgTeamDelete",
        "parameters": [
          {
            "description": "团队 ID | [EN] Team ID",
            "in": "path",
            "maxLength": 64,
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/commonGeneralEmptyResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "删团队 | [EN] Delete a team",
        "tags": [
          "AccessControlService"
        ]
      },
      "put": {
        "operationId": "AccessControlService_OrgTeamUpdate",
        "parameters": [
          {
            "description": "团队 ID | [EN] Team ID",
            "in": "path",
            "maxLength": 64,
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/AccessControlServiceOrgTeamUpdateBody"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOrgTeamUpdateResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "改团队 | [EN] Update a team",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/org/console/workspaces": {
      "get": {
        "operationId": "AccessControlService_OrgWorkspaceSummaryList",
        "parameters": [
          {
            "description": "当前页码 | [EN] Current page number",
            "format": "int32",
            "in": "query",
            "minimum": 1,
            "name": "page_request.page",
            "required": false,
            "type": "integer"
          },
          {
            "description": "每页条数（上限保护，防止一次拉全表） | [EN] Page size, capped to protect the backend",
            "format": "int32",
            "in": "query",
            "maximum": 200,
            "minimum": 1,
            "name": "page_request.size",
            "required": false,
            "type": "integer"
          },
          {
            "description": "总条数（响应字段，请求 query 不继承必填） | [EN] Total count",
            "format": "int32",
            "in": "query",
            "name": "page_request.total",
            "required": false,
            "type": "integer"
          },
          {
            "description": "按名称模糊查询 | [EN] Fuzzy match on name",
            "in": "query",
            "maxLength": 128,
            "name": "keyword",
            "required": false,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOrgWorkspaceSummaryListResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "工作区列表 | [EN] List workspaces",
        "tags": [
          "AccessControlService"
        ]
      },
      "post": {
        "operationId": "AccessControlService_OrgWorkspaceCreate",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/access_controlOrgWorkspaceCreateRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOrgWorkspaceCreateResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "建工作区：默认团队、四档角色，组织管理员都以所有者加入 | [EN] Create a workspace with a default team and the four tiers, every org admin joining as owner",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/org/console/workspaces/{id}": {
      "delete": {
        "operationId": "AccessControlService_OrgWorkspaceDelete",
        "parameters": [
          {
            "description": "工作区 ID | [EN] Workspace ID",
            "in": "path",
            "maxLength": 64,
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/commonGeneralEmptyResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "删工作区：会话撤销、成员身份与角色团队一并删除，发 ac.workspace.deleted 让工作台清业务数据；默认工作区不能删\n[EN] Delete a workspace: sessions are revoked, memberships, roles and teams removed, and ac.workspace.deleted is\nraised for the workbench to clean business data; the default workspace cannot be deleted",
        "tags": [
          "AccessControlService"
        ]
      },
      "put": {
        "operationId": "AccessControlService_OrgWorkspaceUpdate",
        "parameters": [
          {
            "description": "工作区 ID | [EN] Workspace ID",
            "in": "path",
            "maxLength": 64,
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/AccessControlServiceOrgWorkspaceUpdateBody"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOrgWorkspaceUpdateResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "改工作区名称 | [EN] Rename a workspace",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/org/feedbacks": {
      "post": {
        "operationId": "AccessControlService_OrgFeedbackCreate",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/access_controlOrgFeedbackCreateRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOrgFeedbackCreateResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "提交意见反馈 | [EN] Submit feedback",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/org/invitations": {
      "post": {
        "operationId": "AccessControlService_OrgInvitationCreate",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/access_controlOrgInvitationCreateRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOrgInvitationCreateResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "发出邀请 | [EN] Create invitations",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/org/invitations/{id}": {
      "delete": {
        "operationId": "AccessControlService_OrgInvitationRevoke",
        "parameters": [
          {
            "description": "邀请 ID | [EN] Invitation ID",
            "in": "path",
            "maxLength": 64,
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/commonGeneralEmptyResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "撤销邀请 | [EN] Revoke an invitation",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/org/invitations/{id}/resend": {
      "post": {
        "operationId": "AccessControlService_OrgInvitationResend",
        "parameters": [
          {
            "description": "邀请 ID | [EN] Invitation ID",
            "in": "path",
            "maxLength": 64,
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/AccessControlServiceOrgInvitationResendBody"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOrgInvitationResendResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "重发邀请（每分钟至多一次）| [EN] Resend an invitation, at most once a minute",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/org/roles": {
      "get": {
        "operationId": "AccessControlService_OrgRoleList",
        "parameters": [
          {
            "description": "工作区 | [EN] Workspace",
            "in": "query",
            "maxLength": 64,
            "name": "workspace_id",
            "required": true,
            "type": "string"
          },
          {
            "description": "按编码或名称模糊查询 | [EN] Fuzzy match on code or name",
            "in": "query",
            "maxLength": 64,
            "name": "keyword",
            "required": false,
            "type": "string"
          },
          {
            "default": "COMMON_STATUS_UNSPECIFIED",
            "description": "状态，不传为全部 | [EN] Status; omitted means all\n\n - COMMON_STATUS_UNSPECIFIED: 未指定 | [EN] Unspecified\n - COMMON_STATUS_NORMAL: 正常 | [EN] Normal\n - COMMON_STATUS_DISABLED: 禁用 | [EN] Disabled",
            "enum": [
              "COMMON_STATUS_UNSPECIFIED",
              "COMMON_STATUS_NORMAL",
              "COMMON_STATUS_DISABLED"
            ],
            "in": "query",
            "name": "status",
            "required": false,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOrgRoleListResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "角色列表 | [EN] List roles",
        "tags": [
          "AccessControlService"
        ]
      },
      "post": {
        "operationId": "AccessControlService_OrgRoleCreate",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/access_controlOrgRoleCreateRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOrgRoleCreateResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "创建角色 | [EN] Create role",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/org/roles/{id}": {
      "get": {
        "operationId": "AccessControlService_OrgRoleGet",
        "parameters": [
          {
            "description": "ID | [EN] ID",
            "in": "path",
            "maxLength": 64,
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOrgRoleGetResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "角色详情 | [EN] Get role",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/org/roles/{id}/grants": {
      "put": {
        "operationId": "AccessControlService_OrgRoleGrantsSet",
        "parameters": [
          {
            "description": "ID | [EN] ID",
            "in": "path",
            "maxLength": 64,
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/AccessControlServiceOrgRoleGrantsSetBody"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/commonGeneralEmptyResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "整组替换授权 | [EN] Replace grants",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/org/workspaces": {
      "get": {
        "operationId": "AccessControlService_OrgWorkspaceList",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlOrgWorkspaceListResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "本组织的工作区与团队 | [EN] Workspaces and teams",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/permission-catalog": {
      "get": {
        "operationId": "AccessControlService_PermissionCatalog",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlPermissionCatalogResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "组织域权限目录（验签方解 pm 位图用）| [EN] Org-domain permission catalog for decoding the pm bitmap",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/permissions": {
      "get": {
        "operationId": "AccessControlService_PermissionTree",
        "parameters": [
          {
            "default": "DOMAIN_TYPE_UNSPECIFIED",
            "description": "目标身份域：运维调用必填 | [EN] Target domain, required for ops callers\n\n - DOMAIN_TYPE_UNSPECIFIED: 未指定 | [EN] Unspecified\n - DOMAIN_TYPE_ORG: 组织域（工作台、组织后台）| [EN] Org domain (workbench, organization console)\n - DOMAIN_TYPE_OPS: 运维域（超管）| [EN] Ops domain (super admin)",
            "enum": [
              "DOMAIN_TYPE_UNSPECIFIED",
              "DOMAIN_TYPE_ORG",
              "DOMAIN_TYPE_OPS"
            ],
            "in": "query",
            "name": "domain",
            "required": false,
            "type": "string"
          },
          {
            "default": "PERMISSION_TYPE_UNSPECIFIED",
            "description": "只看某类节点，不传为全部 | [EN] Only one node type; omitted means all\n\n - PERMISSION_TYPE_UNSPECIFIED: 未指定 | [EN] Unspecified\n - PERMISSION_TYPE_MENU: 菜单 | [EN] Menu\n - PERMISSION_TYPE_ACTION: 按钮 / 权限点 | [EN] Action, a permission point\n - PERMISSION_TYPE_API: 接口（运维域）| [EN] API, ops domain",
            "enum": [
              "PERMISSION_TYPE_UNSPECIFIED",
              "PERMISSION_TYPE_MENU",
              "PERMISSION_TYPE_ACTION",
              "PERMISSION_TYPE_API"
            ],
            "in": "query",
            "name": "type",
            "required": false,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlPermissionTreeResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "权限树 | [EN] Permission tree",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/presence-logs": {
      "get": {
        "operationId": "AccessControlService_PresenceLogList",
        "parameters": [
          {
            "description": "当前页码 | [EN] Current page number",
            "format": "int32",
            "in": "query",
            "minimum": 1,
            "name": "page_request.page",
            "required": false,
            "type": "integer"
          },
          {
            "description": "每页条数（上限保护，防止一次拉全表） | [EN] Page size, capped to protect the backend",
            "format": "int32",
            "in": "query",
            "maximum": 200,
            "minimum": 1,
            "name": "page_request.size",
            "required": false,
            "type": "integer"
          },
          {
            "description": "总条数（响应字段，请求 query 不继承必填） | [EN] Total count",
            "format": "int32",
            "in": "query",
            "name": "page_request.total",
            "required": false,
            "type": "integer"
          },
          {
            "description": "按成员显示名模糊查询 | [EN] Fuzzy match on member display name",
            "in": "query",
            "maxLength": 128,
            "name": "account",
            "required": false,
            "type": "string"
          },
          {
            "description": "起（含）| [EN] Start, inclusive",
            "format": "date-time",
            "in": "query",
            "name": "period.start",
            "required": false,
            "type": "string"
          },
          {
            "description": "止（不含）| [EN] End, exclusive",
            "format": "date-time",
            "in": "query",
            "name": "period.end",
            "required": false,
            "type": "string"
          },
          {
            "description": "按组织过滤：运维调用有效 | [EN] Filter by organization, for ops callers",
            "in": "query",
            "maxLength": 64,
            "name": "org_id",
            "required": false,
            "type": "string"
          },
          {
            "collectionFormat": "multi",
            "description": "身份主体 ID（多选），按团队筛时由客户端展开成成员 | [EN] Principal IDs, matching any; clients expand a team into its members",
            "in": "query",
            "items": {
              "maxLength": 64,
              "type": "string"
            },
            "maxItems": 500,
            "name": "principal_ids",
            "required": false,
            "type": "array"
          },
          {
            "description": "按工作区过滤：运维调用有效 | [EN] Filter by workspace, for ops callers",
            "in": "query",
            "maxLength": 64,
            "name": "workspace_id",
            "required": false,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlPresenceLogListResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "在线日志列表 | [EN] List presence logs",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/roles/{id}": {
      "delete": {
        "operationId": "AccessControlService_RoleDelete",
        "parameters": [
          {
            "description": "ID | [EN] ID",
            "in": "path",
            "maxLength": 64,
            "name": "id",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/commonGeneralEmptyResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "删除角色 | [EN] Delete role",
        "tags": [
          "AccessControlService"
        ]
      },
      "put": {
        "operationId": "AccessControlService_RoleUpdate",
        "parameters": [
          {
            "description": "ID | [EN] ID",
            "in": "path",
            "maxLength": 64,
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/AccessControlServiceRoleUpdateBody"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/access_controlRoleUpdateResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "更新角色 | [EN] Update role",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/roles/{id}/status": {
      "put": {
        "operationId": "AccessControlService_RoleUpdateStatus",
        "parameters": [
          {
            "description": "ID | [EN] ID",
            "in": "path",
            "maxLength": 64,
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/AccessControlServiceRoleUpdateStatusBody"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/commonGeneralEmptyResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "修改角色状态 | [EN] Update role status",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/users/{id}/mfa/reset": {
      "post": {
        "operationId": "AccessControlService_UserMfaReset",
        "parameters": [
          {
            "description": "运维账号 ID 或成员 ID | [EN] Ops user or account ID",
            "in": "path",
            "maxLength": 64,
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/AccessControlServiceUserMfaResetBody"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/commonGeneralEmptyResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "重置二次验证 | [EN] Reset MFA",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/users/{id}/password/reset": {
      "post": {
        "operationId": "AccessControlService_UserResetPassword",
        "parameters": [
          {
            "description": "运维账号 ID 或成员 ID | [EN] Ops user or account ID",
            "in": "path",
            "maxLength": 64,
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/AccessControlServiceUserResetPasswordBody"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/commonGeneralEmptyResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "重置密码 | [EN] Reset password",
        "tags": [
          "AccessControlService"
        ]
      }
    },
    "/v1/users/{id}/unlock": {
      "post": {
        "operationId": "AccessControlService_UserUnlock",
        "parameters": [
          {
            "description": "运维账号 ID 或成员 ID | [EN] Ops user or account ID",
            "in": "path",
            "maxLength": 64,
            "name": "id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/AccessControlServiceUserUnlockBody"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/commonGeneralEmptyResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "解除登录锁定 | [EN] Unlock login",
        "tags": [
          "AccessControlService"
        ]
      }
    }
  },
  "produces": [
    "application/json"
  ],
  "swagger": "2.0",
  "tags": [
    {
      "description": "统一鉴权中心：登录与会话、账号、成员与角色、组织与工作区、日志 | Access control",
      "name": "AccessControlService"
    }
  ]
}