{
  "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"
    },
    "BillingServiceOrderVoucherReconcileBody": {
      "properties": {
        "note": {
          "title": "补单说明 | [EN] Note",
          "type": "string"
        },
        "vouchers": {
          "items": {
            "$ref": "#/definitions/billingOrderVoucher",
            "type": "object"
          },
          "title": "付款凭证，1 到 3 个，要能看到金额、时间与流水号或交易哈希 | [EN] Payment vouchers, one to three, showing the amount, time and transaction ID or hash",
          "type": "array"
        }
      },
      "title": "补确认付款请求（渠道核对与凭证补单共用）\n[EN] Confirm payment request, shared by the channel-verified and voucher-only routes",
      "type": "object"
    },
    "BillingServiceOrgOrderCancelBody": {
      "title": "取消订单请求\n[EN] Cancel order request",
      "type": "object"
    },
    "BillingServiceSubscriptionChangeApplyBody": {
      "description": "只接受合计为 0 的变更（纯降级、纯减资源位、纯改续费周期）。\n要收费的变更必须走订单与支付，不能从这里绕过去——否则就是不付钱直接升级。\n\n[EN] Accepts only changes that total zero: a downgrade, a reduction or a cycle change. Any\nchargeable change must go through an order and payment rather than bypassing it here, which\nwould amount to upgrading without paying.",
      "properties": {
        "meta": {
          "$ref": "#/definitions/billingAdminSaveMeta",
          "title": "操作元信息 | [EN] Operation metadata"
        },
        "renew_cycle_months": {
          "format": "int32",
          "title": "目标续费周期（0 表示不改）| [EN] Target renewal cycle; zero keeps it",
          "type": "integer"
        },
        "seats": {
          "items": {
            "$ref": "#/definitions/billingSeatTarget",
            "type": "object"
          },
          "title": "各类资源位目标总数 | [EN] Desired totals per resource",
          "type": "array"
        },
        "target_plan_code": {
          "title": "目标套餐编码 | [EN] Target plan code",
          "type": "string"
        },
        "version": {
          "format": "int32",
          "title": "订阅行版本 | [EN] Subscription row version",
          "type": "integer"
        }
      },
      "title": "应用零元变更请求\n[EN] Apply a zero-cost change request",
      "type": "object"
    },
    "BillingServiceSubscriptionChangeQuoteBody": {
      "description": "三个维度都可选，一次提交可以同时动套餐、资源位与周期——界面上就是一个页面三块表单。\n不传的维度表示不变，而不是清零。\n\n[EN] All three dimensions are optional and one submission may change the plan, the resources\nand the cycle together, as the page presents them on one screen. An omitted dimension means\nunchanged rather than cleared.",
      "properties": {
        "cycle_months": {
          "format": "int32",
          "title": "本次购买时长（0 表示不购买时长，只调配置）| [EN] Months to purchase; zero changes configuration only",
          "type": "integer"
        },
        "seats": {
          "items": {
            "$ref": "#/definitions/billingSeatTarget",
            "type": "object"
          },
          "title": "各类资源位目标总数 | [EN] Desired totals per resource",
          "type": "array"
        },
        "target_plan_code": {
          "title": "目标套餐编码（不传表示不换套餐）| [EN] Target plan code; omit to keep the current one",
          "type": "string"
        }
      },
      "title": "变更报价请求\n[EN] Change quote request",
      "type": "object"
    },
    "BillingServiceTrialExtendBody": {
      "properties": {
        "days": {
          "format": "int32",
          "title": "延长天数 | [EN] Days to add",
          "type": "integer"
        },
        "reason": {
          "title": "延长原因，进审计与订阅变更记录 | [EN] Why, recorded in the audit and the change record",
          "type": "string"
        }
      },
      "title": "延长试用请求：只在试用中可用，订阅仍是免费版，试用额度不加\n[EN] Extend trial request: only while on trial; the subscription stays free and the trial quota is not topped up",
      "type": "object"
    },
    "ConfigCenterServiceOpsDocumentRestoreBody": {
      "properties": {
        "change_note": {
          "title": "变更说明 | [EN] Change note",
          "type": "string"
        },
        "expected_revision": {
          "format": "int64",
          "title": "读到的当前 revision | [EN] The current revision as read",
          "type": "string"
        }
      },
      "title": "回滚请求：把旧 revision 的内容发布成新 revision（重新校验）\n[EN] Rollback request: republish an old revision as a new one, validated again",
      "type": "object"
    },
    "ConfigCenterServiceOpsDocumentSaveBody": {
      "properties": {
        "change_note": {
          "title": "变更说明 | [EN] Change note",
          "type": "string"
        },
        "document": {
          "$ref": "#/definitions/configConfigDocument",
          "title": "新内容 | [EN] New content"
        },
        "expected_revision": {
          "format": "int64",
          "title": "读到的 revision | [EN] The revision as read",
          "type": "string"
        }
      },
      "title": "整份保存请求 | [EN] Whole-document save request",
      "type": "object"
    },
    "ConfigCenterServiceOpsSensitiveDocumentRestoreBody": {
      "properties": {
        "change_note": {
          "title": "变更说明 | [EN] Change note",
          "type": "string"
        },
        "expected_revision": {
          "format": "int64",
          "title": "读到的当前 revision | [EN] The current revision as read",
          "type": "string"
        }
      },
      "title": "回滚请求：把旧 revision 的内容发布成新 revision（重新校验）\n[EN] Rollback request: republish an old revision as a new one, validated again",
      "type": "object"
    },
    "ConfigCenterServiceOpsSensitiveDocumentSaveBody": {
      "properties": {
        "change_note": {
          "title": "变更说明 | [EN] Change note",
          "type": "string"
        },
        "document": {
          "$ref": "#/definitions/configConfigDocument",
          "title": "新内容 | [EN] New content"
        },
        "expected_revision": {
          "format": "int64",
          "title": "读到的 revision | [EN] The revision as read",
          "type": "string"
        }
      },
      "title": "整份保存请求 | [EN] Whole-document save request",
      "type": "object"
    },
    "WalletServiceWalletCreditBody": {
      "description": "biz_type + biz_id 是幂等键：同一笔充值回调重放多次只入账一次。\n没有它的话，支付渠道的重试会让客户的余额翻倍——而渠道重试是常态不是异常。\n\n[EN] The business type and id form the idempotency key so a replayed top-up callback credits\nonce: without it a channel retry doubles the customer's balance, and channels retry as a\nmatter of course rather than exceptionally.",
      "properties": {
        "amount_micro": {
          "format": "int64",
          "title": "金额（单笔不超过 100 万 USD）| [EN] Amount, at most one million USD",
          "type": "string"
        },
        "biz_id": {
          "title": "业务ID（幂等键的另一半）| [EN] Business id, the other half",
          "type": "string"
        },
        "biz_type": {
          "$ref": "#/definitions/enumsWalletBizType",
          "title": "业务类型（幂等键的一半）：手工入账只收 MANUAL，系统入账只收 RECHARGE、PAYMENT_LATE、PAYMENT_DUPLICATE、SIGNUP_GIFT，其余 InvalidArgument | [EN] Business type, half of the idempotency key: MANUAL for manual credits; RECHARGE, PAYMENT_LATE, PAYMENT_DUPLICATE or SIGNUP_GIFT for system credits; anything else is InvalidArgument"
        },
        "org_id": {
          "title": "组织ID | [EN] Organization ID",
          "type": "string"
        },
        "pay_method": {
          "$ref": "#/definitions/configPaymentMethod",
          "title": "支付方式（不能是对公转账）| [EN] Payment method, never bank transfer"
        },
        "summary": {
          "title": "摘要 | [EN] Summary",
          "type": "string"
        },
        "txn_type": {
          "$ref": "#/definitions/walletWalletTxnType",
          "title": "流水类型：充值、退款、赠金，其余 InvalidArgument | [EN] Top-up, refund or gift; anything else is InvalidArgument"
        }
      },
      "title": "入账请求（充值、赠金、退款、运营调整）\n[EN] Credit request: top-up, gift, refund or an operator adjustment",
      "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"
    },
    "apiBillingOrderReconcile": {
      "properties": {
        "channel_paid_at": {
          "format": "date-time",
          "title": "渠道实际付款时间（经渠道核对时，供对账）| [EN] When the channel was paid, when verified, for reconciliation",
          "type": "string"
        },
        "channel_txn_id": {
          "title": "渠道流水号（经渠道核对时）| [EN] Channel transaction, when verified",
          "type": "string"
        },
        "confirmed_at": {
          "format": "date-time",
          "title": "补确认时间（即订单的支付时间）| [EN] When it was confirmed, which is the order's paid time",
          "type": "string"
        },
        "note": {
          "title": "补单说明 | [EN] Note",
          "type": "string"
        },
        "operator_id": {
          "title": "操作人（AC 运维身份主体 ID）| [EN] Operator, the AC ops principal ID",
          "type": "string"
        },
        "previous_status": {
          "$ref": "#/definitions/billingOrderStatus",
          "title": "补单前的状态：待支付或已过期 | [EN] Status before: pending or expired"
        },
        "verified": {
          "title": "是否经渠道核对（虚拟币只能凭凭证，为 false）| [EN] Whether the channel confirmed it; false for crypto, confirmed from vouchers",
          "type": "boolean"
        },
        "vouchers": {
          "items": {
            "$ref": "#/definitions/billingOrderVoucher",
            "type": "object"
          },
          "title": "付款凭证 | [EN] Payment vouchers",
          "type": "array"
        }
      },
      "title": "一笔订单的补单记录\n[EN] An order's manual payment confirmation",
      "type": "object"
    },
    "billingAdminSaveMeta": {
      "properties": {
        "changes": {
          "items": {
            "$ref": "#/definitions/billingConfigChange",
            "type": "object"
          },
          "maxItems": 200,
          "title": "修改前后对比明细 | [EN] Before/after detail rows",
          "type": "array"
        },
        "remark": {
          "maxLength": 200,
          "minLength": 2,
          "title": "变更说明（必填）| [EN] Change note, mandatory",
          "type": "string"
        },
        "section_label": {
          "maxLength": 32,
          "title": "分区名（进审计标题）| [EN] Section name, used as the audit title",
          "type": "string"
        }
      },
      "required": [
        "section_label",
        "remark"
      ],
      "title": "保存元信息\n[EN] Save metadata\n每个写接口都要带：section_label 进审计标题，所以审计里看到的是「改了额度包阶梯」\n而不是「改了套餐与定价」；remark 是必填的变更说明，配置写错的代价是真金白银，\n事后要能查到是谁、为什么改的。\n[EN] Carried by every write endpoint. section_label becomes the audit entry's title, so the\nlog reads \"changed the quota package tiers\" rather than \"changed plans and pricing\"; remark\nis the mandatory change note, because a mispriced configuration costs real money and someone\nhas to be able to find out who changed it and why",
      "type": "object"
    },
    "billingBillingCatalog": {
      "properties": {
        "addon_prices": {
          "items": {
            "$ref": "#/definitions/configAddonPrice",
            "type": "object"
          },
          "title": "资源位加购单价 | [EN] Seat addon unit prices",
          "type": "array"
        },
        "cycle_discounts": {
          "items": {
            "$ref": "#/definitions/configCycleDiscount",
            "type": "object"
          },
          "title": "付费周期折扣 | [EN] Billing cycle discounts",
          "type": "array"
        },
        "entitlements": {
          "items": {
            "$ref": "#/definitions/billingCatalogEntitlement",
            "type": "object"
          },
          "title": "权益对比（只含在售套餐与已上线权益） | [EN] Entitlement comparison over plans on sale and released entitlements",
          "type": "array"
        },
        "plans": {
          "items": {
            "$ref": "#/definitions/billingCatalogPlan",
            "type": "object"
          },
          "title": "在售套餐（按 sort_no） | [EN] Plans on sale, by sort_no",
          "type": "array"
        },
        "quota_packages": {
          "items": {
            "$ref": "#/definitions/configQuotaPackageConfig",
            "type": "object"
          },
          "title": "额度包配置 | [EN] Quota package configurations",
          "type": "array"
        },
        "revision": {
          "title": "目录版本（配置中心 BILLING 分区的 revision） | [EN] Revision of the config center BILLING namespace",
          "type": "string"
        },
        "settings": {
          "$ref": "#/definitions/billingPublicBillingSettings",
          "title": "公开的计费设置 | [EN] Public billing settings"
        }
      },
      "title": "计费目录\n[EN] Billing catalog",
      "type": "object"
    },
    "billingBillingServiceOrderReconcileBody": {
      "properties": {
        "note": {
          "title": "补单说明 | [EN] Note",
          "type": "string"
        },
        "vouchers": {
          "items": {
            "$ref": "#/definitions/billingOrderVoucher",
            "type": "object"
          },
          "title": "付款凭证，1 到 3 个，要能看到金额、时间与流水号或交易哈希 | [EN] Payment vouchers, one to three, showing the amount, time and transaction ID or hash",
          "type": "array"
        }
      },
      "title": "补确认付款请求（渠道核对与凭证补单共用）\n[EN] Confirm payment request, shared by the channel-verified and voucher-only routes",
      "type": "object"
    },
    "billingCatalogEntitlement": {
      "properties": {
        "desc": {
          "items": {
            "$ref": "#/definitions/commonLocalizedText",
            "type": "object"
          },
          "title": "说明（按语言） | [EN] Description per language",
          "type": "array"
        },
        "entitlement_key": {
          "title": "权益标识 | [EN] Entitlement key",
          "type": "string"
        },
        "group": {
          "$ref": "#/definitions/configEntitlementGroup",
          "title": "分组 | [EN] Group"
        },
        "name": {
          "items": {
            "$ref": "#/definitions/commonLocalizedText",
            "type": "object"
          },
          "title": "名称（按语言） | [EN] Name per language",
          "type": "array"
        },
        "sort_no": {
          "format": "int32",
          "title": "组内排序 | [EN] Order within the group",
          "type": "integer"
        },
        "unit": {
          "title": "数量单位 | [EN] Unit for numeric values",
          "type": "string"
        },
        "value_type": {
          "$ref": "#/definitions/configEntitlementValueType",
          "title": "取值类型 | [EN] Value type"
        },
        "values": {
          "items": {
            "$ref": "#/definitions/billingCatalogEntitlementValue",
            "type": "object"
          },
          "title": "各在售套餐的取值（每个套餐一条） | [EN] Value per plan on sale, one each",
          "type": "array"
        }
      },
      "title": "权益对比的一行\n[EN] One row of the entitlement comparison",
      "type": "object"
    },
    "billingCatalogEntitlementValue": {
      "properties": {
        "plan_code": {
          "title": "套餐编码 | [EN] Plan code",
          "type": "string"
        },
        "value_bool": {
          "title": "开关取值（BOOLEAN） | [EN] Switch value, for BOOLEAN",
          "type": "boolean"
        },
        "value_num": {
          "format": "int64",
          "title": "数量取值（NUMBER，0 表示不提供） | [EN] Numeric value for NUMBER; 0 means not provided",
          "type": "string"
        }
      },
      "title": "某套餐在某权益上的取值\n[EN] A plan's value for one entitlement",
      "type": "object"
    },
    "billingCatalogPlan": {
      "description": "只带客户需要看的字段：不含审计字段、在用统计与草稿 / 下架套餐\n[EN] Customer-facing fields only: no audit fields, usage statistics, drafts or off-sale plans",
      "properties": {
        "audience": {
          "items": {
            "$ref": "#/definitions/commonLocalizedText",
            "type": "object"
          },
          "title": "适用人群（按语言） | [EN] Target audience per language",
          "type": "array"
        },
        "code": {
          "title": "套餐编码（套餐的唯一标识） | [EN] Plan code, the plan identity",
          "type": "string"
        },
        "color": {
          "$ref": "#/definitions/configPlanColor",
          "title": "标识色 | [EN] Accent color"
        },
        "features": {
          "items": {
            "$ref": "#/definitions/configPlanFeature",
            "type": "object"
          },
          "title": "卖点 | [EN] Selling points",
          "type": "array"
        },
        "is_free": {
          "title": "是否免费版 | [EN] Whether it is the free plan",
          "type": "boolean"
        },
        "is_recommended": {
          "title": "是否推荐 | [EN] Whether it is recommended",
          "type": "boolean"
        },
        "name": {
          "items": {
            "$ref": "#/definitions/commonLocalizedText",
            "type": "object"
          },
          "title": "名称（按语言） | [EN] Name per language",
          "type": "array"
        },
        "price_per_month_micro": {
          "format": "int64",
          "title": "月费 | [EN] Monthly price",
          "type": "string"
        },
        "quotas": {
          "items": {
            "$ref": "#/definitions/configPlanQuota",
            "type": "object"
          },
          "title": "内含资源位与额度 | [EN] Included seats and quotas",
          "type": "array"
        },
        "sort_no": {
          "format": "int32",
          "title": "展示顺序 | [EN] Display order",
          "type": "integer"
        }
      },
      "title": "在售套餐\n[EN] A plan on sale",
      "type": "object"
    },
    "billingChangeOperatorType": {
      "default": "CHANGE_OPERATOR_TYPE_UNSPECIFIED",
      "description": "- CHANGE_OPERATOR_TYPE_UNSPECIFIED: 未指定 | [EN] Unspecified\n - CHANGE_OPERATOR_TYPE_MEMBER: 客户成员（组织控制台或下单）| [EN] A customer member, from the org console or an order\n - CHANGE_OPERATOR_TYPE_OPS: 运维人员 | [EN] An ops operator\n - CHANGE_OPERATOR_TYPE_SYSTEM: 系统任务（到期、续费、试用）| [EN] A system job: expiry, renewal, trial",
      "enum": [
        "CHANGE_OPERATOR_TYPE_UNSPECIFIED",
        "CHANGE_OPERATOR_TYPE_MEMBER",
        "CHANGE_OPERATOR_TYPE_OPS",
        "CHANGE_OPERATOR_TYPE_SYSTEM"
      ],
      "title": "变更由谁发起\n[EN] Who initiated a change",
      "type": "string"
    },
    "billingCheckoutType": {
      "default": "CHECKOUT_TYPE_UNSPECIFIED",
      "description": "- CHECKOUT_TYPE_UNSPECIFIED: 未指定 | [EN] Unspecified\n - CHECKOUT_TYPE_NEW: 新购 | [EN] New purchase\n - CHECKOUT_TYPE_UPGRADE: 升级（立即生效，按天补差价）| [EN] Upgrade, immediate and prorated\n - CHECKOUT_TYPE_ADDON: 加购资源位（立即生效，按天补差价）| [EN] Seat addon, immediate and prorated\n - CHECKOUT_TYPE_RENEW: 续费（顺延到期日）| [EN] Renewal, extends the end date\n - CHECKOUT_TYPE_DOWNGRADE: 降级（期末生效，今天不收钱）| [EN] Downgrade at period end, nothing charged today\n - CHECKOUT_TYPE_ADJUST: 调整（减资源位或改周期，期末生效）| [EN] Reduction or cycle change at period end",
      "enum": [
        "CHECKOUT_TYPE_UNSPECIFIED",
        "CHECKOUT_TYPE_NEW",
        "CHECKOUT_TYPE_UPGRADE",
        "CHECKOUT_TYPE_ADDON",
        "CHECKOUT_TYPE_RENEW",
        "CHECKOUT_TYPE_DOWNGRADE",
        "CHECKOUT_TYPE_ADJUST"
      ],
      "title": "订阅变更的类型\n[EN] Kind of subscription change",
      "type": "string"
    },
    "billingChurnReason": {
      "default": "CHURN_REASON_UNSPECIFIED",
      "description": "- CHURN_REASON_UNSPECIFIED: 未指定 | [EN] Unspecified\n - CHURN_REASON_NOT_RENEWED: 关闭自动续费且未续费 | [EN] Auto-renewal off and not renewed\n - CHURN_REASON_RENEW_FAILED: 到期续费扣款失败 | [EN] The renewal charge failed at expiry",
      "enum": [
        "CHURN_REASON_UNSPECIFIED",
        "CHURN_REASON_NOT_RENEWED",
        "CHURN_REASON_RENEW_FAILED"
      ],
      "title": "流失原因\n[EN] Why a paid workspace churned",
      "type": "string"
    },
    "billingConfigChange": {
      "properties": {
        "after": {
          "title": "修改后（已格式化为展示值）| [EN] Value after, formatted for display",
          "type": "string"
        },
        "before": {
          "title": "修改前（已格式化为展示值）| [EN] Value before, formatted for display",
          "type": "string"
        },
        "field": {
          "title": "字段路径（如 quotaTiers.translation_chars[2].minAmount）| [EN] Field path",
          "type": "string"
        }
      },
      "title": "单条配置改动\n[EN] A single configuration change\n保存前要在界面上展示修改前后对比，这组字段就是那张对比表，同时原样写进操作审计。\n[EN] The console shows a before/after table before saving; these are its rows, and they go\ninto the operation audit log verbatim",
      "type": "object"
    },
    "billingEventPlan": {
      "properties": {
        "code": {
          "title": "套餐编码 | [EN] Plan code",
          "type": "string"
        },
        "color": {
          "$ref": "#/definitions/configPlanColor",
          "title": "标识色 | [EN] Accent color"
        },
        "is_free": {
          "title": "是否免费版 | [EN] Whether it is the free plan",
          "type": "boolean"
        },
        "name": {
          "items": {
            "$ref": "#/definitions/commonLocalizedText",
            "type": "object"
          },
          "title": "名称（按语言）| [EN] Name per language",
          "type": "array"
        },
        "storage_quota_gb": {
          "format": "int64",
          "title": "存储空间（GB）| [EN] Storage in GB",
          "type": "string"
        },
        "storage_retention_days": {
          "format": "int32",
          "title": "会话附件保存天数 | [EN] Attachment retention in days",
          "type": "integer"
        }
      },
      "title": "变更记录里的套餐：名称与标识色取当前配置，存储空间与附件保存天数是事件时点的快照\n[EN] A plan on a change record: name and color from the current configuration, storage and retention as of the event",
      "type": "object"
    },
    "billingLastDowngrade": {
      "properties": {
        "churn_reason": {
          "$ref": "#/definitions/billingChurnReason",
          "title": "到期降为免费版的原因（未续费、续费失败） | [EN] Why it expired to free: not renewed or the renewal failed"
        },
        "event_type": {
          "$ref": "#/definitions/billingSubscriptionEventType",
          "title": "DOWNGRADE_EFFECTIVE 或 EXPIRED_FREE | [EN] DOWNGRADE_EFFECTIVE or EXPIRED_FREE"
        },
        "from_plan_code": {
          "title": "降级前套餐 | [EN] Plan before",
          "type": "string"
        },
        "occurred_at": {
          "format": "date-time",
          "title": "降级时间 | [EN] When it happened",
          "type": "string"
        },
        "to_plan_code": {
          "title": "降级后套餐 | [EN] Plan after",
          "type": "string"
        }
      },
      "title": "最近一次降级：已排的降级生效，或到期降为免费版\n[EN] The latest downgrade: a scheduled downgrade taking effect, or expiry to the free plan",
      "type": "object"
    },
    "billingMemberUsage": {
      "properties": {
        "member_id": {
          "title": "AC 成员ID（名字由前端用 AC 成员目录映射） | [EN] AC member ID; names come from the AC member directory",
          "type": "string"
        },
        "qty": {
          "format": "int64",
          "title": "用量 | [EN] Usage",
          "type": "string"
        },
        "share_bp": {
          "format": "int32",
          "title": "占比（基点，10000 = 100%） | [EN] Share in basis points, 10000 is 100%",
          "type": "integer"
        }
      },
      "title": "一名成员的用量\n[EN] One member's usage",
      "type": "object"
    },
    "billingNextRenewal": {
      "properties": {
        "amount_micro": {
          "format": "int64",
          "title": "预计金额（按现价） | [EN] Estimated amount at current prices",
          "type": "string"
        },
        "auto_renew": {
          "title": "是否自动续费 | [EN] Whether it renews automatically",
          "type": "boolean"
        },
        "cycle_months": {
          "format": "int32",
          "title": "续费周期 | [EN] Months it renews for",
          "type": "integer"
        },
        "renew_at": {
          "format": "date-time",
          "title": "续费时间 | [EN] When it renews",
          "type": "string"
        }
      },
      "title": "下次续费\n[EN] Next renewal",
      "type": "object"
    },
    "billingOpsBillingStatsGetRequest": {
      "description": "运维计费统计请求：订单、订阅变更、用量三块各自带筛选，日期口径由调用方对齐\n[EN] Ops billing stats request: orders, subscription changes and usage each carry their own filter; the caller\naligns the date ranges.",
      "properties": {
        "order_compare_from": {
          "format": "date-time",
          "title": "订单对比窗口起（含）| [EN] Order comparison window start, inclusive",
          "type": "string"
        },
        "order_compare_to": {
          "format": "date-time",
          "title": "订单对比窗口止（不含）| [EN] Order comparison window end, exclusive",
          "type": "string"
        },
        "order_filter": {
          "$ref": "#/definitions/billingOrderFilter",
          "title": "订单筛选，日期为下单日期 | [EN] Order filter; dates are creation dates"
        },
        "subscription_filter": {
          "$ref": "#/definitions/billingSubscriptionEventFilter",
          "title": "订阅变更筛选，日期为发生日期 | [EN] Subscription change filter; dates are occurrence dates"
        },
        "usage_filter": {
          "$ref": "#/definitions/billingUsageRecordFilter",
          "title": "用量筛选，日期为统计日 | [EN] Usage filter; dates are statistics days"
        }
      },
      "required": [
        "order_filter",
        "subscription_filter",
        "usage_filter"
      ],
      "type": "object"
    },
    "billingOpsBillingStatsGetResponse": {
      "properties": {
        "anomalies": {
          "items": {
            "$ref": "#/definitions/configPaymentMethod"
          },
          "title": "支付方式异常 | [EN] Anomalous payment methods",
          "type": "array"
        },
        "as_of": {
          "format": "date-time",
          "title": "数据时点 | [EN] Data time",
          "type": "string"
        },
        "orders": {
          "$ref": "#/definitions/billingOrderStats",
          "title": "订单汇总 | [EN] Order summary"
        },
        "orders_compare": {
          "$ref": "#/definitions/billingOrderStats",
          "title": "订单对比窗口汇总，没给窗口时为空 | [EN] Comparison order summary, empty without a window"
        },
        "subscriptions": {
          "$ref": "#/definitions/billingSubscriptionEventSummaryGetResponse",
          "title": "订阅变更汇总 | [EN] Subscription change summary"
        },
        "time_zone": {
          "title": "统计时区 | [EN] Statistics time zone",
          "type": "string"
        },
        "usage": {
          "$ref": "#/definitions/billingUsageRecordSummaryGetResponse",
          "title": "用量汇总 | [EN] Usage summary"
        }
      },
      "title": "运维计费统计响应：三块汇总加统计时区与数据时点\n[EN] Ops billing stats response: the three summaries plus the statistics time zone and data time",
      "type": "object"
    },
    "billingOrderCancelReason": {
      "default": "ORDER_CANCEL_REASON_UNSPECIFIED",
      "description": "- ORDER_CANCEL_REASON_UNSPECIFIED: 未指定 | [EN] Unspecified\n - ORDER_CANCEL_REASON_CUSTOMER: 客户取消 | [EN] Cancelled by the customer\n - ORDER_CANCEL_REASON_CHANNEL_UNSUPPORTED: 下单时支付方式不可用 | [EN] The payment method was unavailable at checkout\n - ORDER_CANCEL_REASON_LATE_PAYMENT: 过期后才到账，钱转入钱包 | [EN] Paid after expiry; the money went to the wallet\n - ORDER_CANCEL_REASON_WALLET_SHORT: 钱包锁定已解除且余额不够补扣，第三方实付转入钱包 | [EN] The wallet hold was gone and the balance short; the channel payment went to the wallet\n - ORDER_CANCEL_REASON_RENEWAL_FAILED: 自动续费时钱包余额不足 | [EN] Automatic renewal found the wallet short\n - ORDER_CANCEL_REASON_BELOW_MINIMUM: 第三方支付部分低于渠道最低金额 | [EN] The third-party part was below the channel minimum\n - ORDER_CANCEL_REASON_UNDERPAID: 渠道确认少付，实到金额转入钱包 | [EN] The channel confirmed an underpayment; what arrived went to the wallet",
      "enum": [
        "ORDER_CANCEL_REASON_UNSPECIFIED",
        "ORDER_CANCEL_REASON_CUSTOMER",
        "ORDER_CANCEL_REASON_CHANNEL_UNSUPPORTED",
        "ORDER_CANCEL_REASON_LATE_PAYMENT",
        "ORDER_CANCEL_REASON_WALLET_SHORT",
        "ORDER_CANCEL_REASON_RENEWAL_FAILED",
        "ORDER_CANCEL_REASON_BELOW_MINIMUM",
        "ORDER_CANCEL_REASON_UNDERPAID"
      ],
      "title": "订单取消原因\n[EN] Why an order was cancelled",
      "type": "string"
    },
    "billingOrderCountResponse": {
      "properties": {
        "count": {
          "format": "int32",
          "title": "笔数 | [EN] Count",
          "type": "integer"
        },
        "latest_created_at": {
          "format": "date-time",
          "title": "全平台最新一笔支付订单的下单时间 | [EN] Creation time of the newest payment order platform-wide",
          "type": "string"
        }
      },
      "title": "新订单计数响应\n[EN] New order count response",
      "type": "object"
    },
    "billingOrderFilter": {
      "description": "下单日期含首尾、最多 90 天；结束日期晚于今天时按今天\n[EN] Created dates are inclusive, at most 90 days; an end date after today counts as today",
      "properties": {
        "checkout_type": {
          "$ref": "#/definitions/billingCheckoutType",
          "title": "订阅变更类型（新购、升级、加购、续费）| [EN] Kind of subscription change: new, upgrade, add-on or renewal"
        },
        "end_date": {
          "title": "下单日期止（YYYY-MM-DD，含当天）| [EN] Last created date, inclusive",
          "type": "string"
        },
        "first_purchase_only": {
          "title": "只看首购 | [EN] First purchases only",
          "type": "boolean"
        },
        "keyword": {
          "maxLength": 64,
          "title": "订单号前缀，或完整的组织 ID / 工作区 ID | [EN] An order number prefix, or a full organization or workspace ID",
          "type": "string"
        },
        "org_ids": {
          "items": {
            "maxLength": 64,
            "type": "string"
          },
          "maxItems": 100,
          "title": "组织（按名称在 AC 搜到的 ID）| [EN] Organizations, IDs found by name in AC",
          "type": "array"
        },
        "pay_method": {
          "$ref": "#/definitions/configPaymentMethod",
          "title": "支付方式 | [EN] Payment method"
        },
        "plan_code": {
          "maxLength": 32,
          "title": "套餐编码，只匹配订阅变更订单（含已下架套餐）| [EN] Plan code, matching subscription orders only, off-sale plans included",
          "type": "string"
        },
        "purpose": {
          "$ref": "#/definitions/billingOrderPurpose",
          "title": "用途：钱包充值、订阅变更或额度包 | [EN] Purpose: top-up, subscription change or quota package"
        },
        "start_date": {
          "title": "下单日期起（YYYY-MM-DD）| [EN] First created date, YYYY-MM-DD",
          "type": "string"
        },
        "status": {
          "$ref": "#/definitions/billingOrderStatus",
          "title": "订单状态（汇总接口忽略）| [EN] Status; ignored by the summary"
        },
        "workspace_ids": {
          "items": {
            "maxLength": 64,
            "type": "string"
          },
          "maxItems": 100,
          "title": "工作区（按名称在 AC 搜到的 ID）| [EN] Workspaces, IDs found by name in AC",
          "type": "array"
        }
      },
      "required": [
        "start_date",
        "end_date"
      ],
      "title": "全站订单的筛选条件\n[EN] Filters of the platform-wide order list",
      "type": "object"
    },
    "billingOrderGetResponse": {
      "properties": {
        "detail": {
          "$ref": "#/definitions/billingPlatformOrderDetail",
          "title": "订单详情 | [EN] Order detail"
        }
      },
      "title": "订单详情响应\n[EN] Get order response",
      "type": "object"
    },
    "billingOrderInfo": {
      "properties": {
        "checkout_type": {
          "$ref": "#/definitions/billingCheckoutType",
          "title": "变更类型（订阅变更时有效） | [EN] Kind of change, for subscription changes"
        },
        "created_at": {
          "format": "date-time",
          "title": "下单时间 | [EN] Created at",
          "type": "string"
        },
        "expires_at": {
          "format": "date-time",
          "title": "未支付的失效时间 | [EN] When it expires if unpaid",
          "type": "string"
        },
        "external_micro": {
          "format": "int64",
          "title": "第三方支付部分 | [EN] Paid through a third party",
          "type": "string"
        },
        "gift_micro": {
          "format": "int64",
          "title": "赠金抵扣部分 | [EN] Paid from the gift balance",
          "type": "string"
        },
        "lines": {
          "items": {
            "$ref": "#/definitions/billingQuoteLine",
            "type": "object"
          },
          "title": "订单行 | [EN] Order lines",
          "type": "array"
        },
        "order_no": {
          "title": "订单号（对外） | [EN] Order number shown to customers",
          "type": "string"
        },
        "paid_at": {
          "format": "date-time",
          "title": "支付时间 | [EN] Paid at",
          "type": "string"
        },
        "pay_method": {
          "$ref": "#/definitions/configPaymentMethod",
          "title": "第三方渠道（钱包付清时为 UNSPECIFIED） | [EN] Third-party channel; UNSPECIFIED when paid in full from the wallet"
        },
        "purpose": {
          "$ref": "#/definitions/billingOrderPurpose",
          "title": "用途 | [EN] Purpose"
        },
        "status": {
          "$ref": "#/definitions/billingOrderStatus",
          "title": "状态 | [EN] Status"
        },
        "title": {
          "title": "标题 | [EN] Title",
          "type": "string"
        },
        "total_micro": {
          "format": "int64",
          "title": "订单总额 | [EN] Order total",
          "type": "string"
        },
        "wallet_micro": {
          "format": "int64",
          "title": "钱包支付部分（不含赠金） | [EN] Paid from the top-up balance",
          "type": "string"
        }
      },
      "title": "订单\n[EN] Order",
      "type": "object"
    },
    "billingOrderListResponse": {
      "properties": {
        "latest_created_at": {
          "format": "date-time",
          "title": "全平台最新一笔支付订单的下单时间（不受筛选影响），「有 N 笔新订单」从它数起 | [EN] Creation time of the newest payment order platform-wide, ignoring filters; the new-order count starts from it",
          "type": "string"
        },
        "list": {
          "items": {
            "$ref": "#/definitions/billingPlatformOrder",
            "type": "object"
          },
          "title": "订单 | [EN] Orders",
          "type": "array"
        },
        "page_response": {
          "$ref": "#/definitions/commonPaging",
          "title": "分页 | [EN] Paging"
        },
        "time_zone": {
          "title": "日期所用时区 | [EN] Time zone of the dates",
          "type": "string"
        }
      },
      "title": "全站订单列表响应\n[EN] List platform orders response",
      "type": "object"
    },
    "billingOrderLookupResponse": {
      "properties": {
        "detail": {
          "$ref": "#/definitions/billingPlatformOrderDetail",
          "title": "订单详情 | [EN] Order detail"
        }
      },
      "title": "按订单号查订单响应\n[EN] Look up an order response",
      "type": "object"
    },
    "billingOrderMethodStat": {
      "properties": {
        "cancelled_count": {
          "format": "int32",
          "title": "已取消 | [EN] Cancelled",
          "type": "integer"
        },
        "ended_count": {
          "format": "int32",
          "title": "已结束（已支付 + 已过期 + 已取消）| [EN] Ended: paid, expired or cancelled",
          "type": "integer"
        },
        "expired_count": {
          "format": "int32",
          "title": "已过期 | [EN] Expired",
          "type": "integer"
        },
        "order_count": {
          "format": "int32",
          "title": "拉单 | [EN] Orders created",
          "type": "integer"
        },
        "paid_count": {
          "format": "int32",
          "title": "已支付 | [EN] Paid",
          "type": "integer"
        },
        "paid_micro": {
          "format": "int64",
          "title": "第三方实付 | [EN] Third-party paid",
          "type": "string"
        },
        "pay_method": {
          "$ref": "#/definitions/configPaymentMethod",
          "title": "支付方式 | [EN] Payment method"
        },
        "pending_count": {
          "format": "int32",
          "title": "待支付 | [EN] Pending",
          "type": "integer"
        },
        "success_rate_bp": {
          "format": "int32",
          "title": "付款成功率（基点，已支付 ÷ 已结束）；没有已结束订单时为空 | [EN] Success rate in basis points, paid over ended; empty without ended orders",
          "type": "integer"
        }
      },
      "title": "一种支付方式的笔数与成功率\n[EN] Counts and success rate of one payment method",
      "type": "object"
    },
    "billingOrderPurpose": {
      "default": "ORDER_PURPOSE_UNSPECIFIED",
      "description": "- ORDER_PURPOSE_UNSPECIFIED: 未指定 | [EN] Unspecified\n - ORDER_PURPOSE_CHECKOUT: 订阅变更（新购、升级、加购、续费、降级、调整）| [EN] Subscription change\n - ORDER_PURPOSE_QUOTA: 额度包 | [EN] Quota package\n - ORDER_PURPOSE_RECHARGE: 钱包充值 | [EN] Wallet top-up",
      "enum": [
        "ORDER_PURPOSE_UNSPECIFIED",
        "ORDER_PURPOSE_CHECKOUT",
        "ORDER_PURPOSE_QUOTA",
        "ORDER_PURPOSE_RECHARGE"
      ],
      "title": "订单用途\n[EN] Order purpose",
      "type": "string"
    },
    "billingOrderReconcileResponse": {
      "properties": {
        "detail": {
          "$ref": "#/definitions/billingPlatformOrderDetail",
          "title": "补单后的订单 | [EN] The order after reconciling"
        }
      },
      "title": "补确认付款响应\n[EN] Confirm payment response",
      "type": "object"
    },
    "billingOrderStats": {
      "properties": {
        "by_method": {
          "items": {
            "$ref": "#/definitions/billingOrderMethodStat",
            "type": "object"
          },
          "title": "按支付方式（不受支付方式筛选影响），只含有订单的方式，按拉单数倒序 | [EN] Per method, ignoring the method filter, methods with orders only, by orders descending",
          "type": "array"
        },
        "by_status": {
          "items": {
            "$ref": "#/definitions/billingOrderStatusStat",
            "type": "object"
          },
          "title": "按状态：待支付、已支付、已过期、已取消各一条，没有订单的也给 0 | [EN] Per status, one each for pending, paid, expired and cancelled, zeros included",
          "type": "array"
        },
        "ended_count": {
          "format": "int32",
          "title": "已结束（已支付 + 已过期 + 已取消）| [EN] Ended: paid, expired or cancelled",
          "type": "integer"
        },
        "external_micro": {
          "format": "int64",
          "title": "第三方应付合计 | [EN] Third-party payable",
          "type": "string"
        },
        "order_count": {
          "format": "int32",
          "title": "拉单（全部状态，受支付方式筛选）| [EN] Orders created, every status, honoring the payment method filter",
          "type": "integer"
        },
        "success_rate_bp": {
          "format": "int32",
          "title": "付款成功率（基点，已支付 ÷ 已结束）；没有已结束订单时为空 | [EN] Success rate in basis points, paid over ended; empty without ended orders",
          "type": "integer"
        }
      },
      "title": "一组订单的统计\n[EN] Statistics of a set of orders",
      "type": "object"
    },
    "billingOrderStatus": {
      "default": "ORDER_STATUS_UNSPECIFIED",
      "description": "- ORDER_STATUS_UNSPECIFIED: 未指定 | [EN] Unspecified\n - ORDER_STATUS_PENDING: 待支付 | [EN] Awaiting payment\n - ORDER_STATUS_PAID: 已支付 | [EN] Paid\n - ORDER_STATUS_EXPIRED: 已过期（30 分钟未支付）| [EN] Expired unpaid after 30 minutes\n - ORDER_STATUS_CANCELLED: 已取消 | [EN] Cancelled\n - ORDER_STATUS_REFUNDED: 已退款 | [EN] Refunded",
      "enum": [
        "ORDER_STATUS_UNSPECIFIED",
        "ORDER_STATUS_PENDING",
        "ORDER_STATUS_PAID",
        "ORDER_STATUS_EXPIRED",
        "ORDER_STATUS_CANCELLED",
        "ORDER_STATUS_REFUNDED"
      ],
      "title": "订单状态（对外）\n[EN] Order status as shown to customers",
      "type": "string"
    },
    "billingOrderStatusStat": {
      "properties": {
        "count": {
          "format": "int32",
          "title": "笔数 | [EN] Count",
          "type": "integer"
        },
        "external_micro": {
          "format": "int64",
          "title": "第三方应付合计 | [EN] Third-party payable",
          "type": "string"
        },
        "paid_micro": {
          "format": "int64",
          "title": "第三方实付合计 | [EN] Third-party paid",
          "type": "string"
        },
        "status": {
          "$ref": "#/definitions/billingOrderStatus",
          "title": "状态 | [EN] Status"
        }
      },
      "title": "一种状态的笔数与金额\n[EN] Count and amounts of one status",
      "type": "object"
    },
    "billingOrderSummaryGetResponse": {
      "properties": {
        "anomalies": {
          "items": {
            "$ref": "#/definitions/configPaymentMethod"
          },
          "title": "异常的支付方式：成功率比对比窗口低 15 个点以上，且本期已结束不少于 3 笔 | [EN] Anomalous methods: a success rate at least 15 points below the comparison window with at least 3 ended orders",
          "type": "array"
        },
        "as_of": {
          "format": "date-time",
          "title": "数据时点 | [EN] Point in time of the data",
          "type": "string"
        },
        "compare": {
          "$ref": "#/definitions/billingOrderStats",
          "title": "对比窗口（没给窗口时为空）| [EN] The comparison window, empty when none was given"
        },
        "current": {
          "$ref": "#/definitions/billingOrderStats",
          "title": "本期 | [EN] This range"
        },
        "time_zone": {
          "title": "日期所用时区 | [EN] Time zone of the dates",
          "type": "string"
        }
      },
      "title": "全站订单汇总响应\n[EN] Platform order summary response",
      "type": "object"
    },
    "billingOrderTimelineEvent": {
      "properties": {
        "at": {
          "format": "date-time",
          "title": "时间 | [EN] When",
          "type": "string"
        },
        "status": {
          "$ref": "#/definitions/billingOrderTimelineStatus",
          "title": "节点 | [EN] Node"
        }
      },
      "title": "订单状态记录的一个节点\n[EN] One node of an order's status record",
      "type": "object"
    },
    "billingOrderTimelineStatus": {
      "default": "ORDER_TIMELINE_STATUS_UNSPECIFIED",
      "description": "- ORDER_TIMELINE_STATUS_UNSPECIFIED: 未指定 | [EN] Unspecified\n - ORDER_TIMELINE_STATUS_CREATED: 下单（有钱包抵扣时同时锁定）| [EN] Created, holding the wallet share if any\n - ORDER_TIMELINE_STATUS_PAYING: 创建渠道收银台（与下单同一请求）| [EN] Channel cashier created, in the same request as the order\n - ORDER_TIMELINE_STATUS_EXPIRED: 超时未支付（钱包抵扣解除）| [EN] Expired unpaid, wallet hold released\n - ORDER_TIMELINE_STATUS_CANCELLED: 已取消（钱包抵扣解除）| [EN] Cancelled, wallet hold released\n - ORDER_TIMELINE_STATUS_CHANNEL_PAID: 渠道实际付款（补单经渠道核对时）| [EN] Paid at the channel, from a verified reconcile\n - ORDER_TIMELINE_STATUS_PAID: 回调确认付款（钱包抵扣扣除）| [EN] Payment confirmed by callback, wallet share settled\n - ORDER_TIMELINE_STATUS_RECONCILED: 人工补确认付款 | [EN] Payment confirmed manually\n - ORDER_TIMELINE_STATUS_FULFILLED: 开通完成（充值到账、额度到账或订阅已更新）| [EN] Fulfilled: top-up credited, quota granted or subscription updated",
      "enum": [
        "ORDER_TIMELINE_STATUS_UNSPECIFIED",
        "ORDER_TIMELINE_STATUS_CREATED",
        "ORDER_TIMELINE_STATUS_PAYING",
        "ORDER_TIMELINE_STATUS_EXPIRED",
        "ORDER_TIMELINE_STATUS_CANCELLED",
        "ORDER_TIMELINE_STATUS_CHANNEL_PAID",
        "ORDER_TIMELINE_STATUS_PAID",
        "ORDER_TIMELINE_STATUS_RECONCILED",
        "ORDER_TIMELINE_STATUS_FULFILLED"
      ],
      "title": "订单状态记录的节点：只说发生了什么、什么时候，说明文案由运维后台按订单字段拼（钱包锁定与解除、渠道流水号、补单记录）\n[EN] A node of an order's status record: what happened and when; the console builds the wording from the order's\nfields (wallet hold and release, channel transaction, reconcile record)",
      "type": "string"
    },
    "billingOrderVoucher": {
      "properties": {
        "mime_type": {
          "maxLength": 128,
          "title": "image/png、image/jpeg 或 application/pdf | [EN] image/png, image/jpeg or application/pdf",
          "type": "string"
        },
        "name": {
          "maxLength": 255,
          "title": "文件名 | [EN] File name",
          "type": "string"
        },
        "object_key": {
          "maxLength": 512,
          "title": "对象 Key | [EN] Object key",
          "type": "string"
        },
        "size": {
          "format": "int64",
          "maxLength": 5242880,
          "minLength": 1,
          "title": "字节数，不超过 5 MB | [EN] Size in bytes, at most 5 MB",
          "type": "string"
        }
      },
      "required": [
        "object_key",
        "name",
        "mime_type",
        "size"
      ],
      "title": "订单的付款凭证：先经 AC 的文件预上传拿到 object_key，再随补单提交；文件本身不经过计费\n[EN] A payment voucher, pre-uploaded through AC's file service for its object_key and submitted with the reconcile;\nthe file never passes through billing",
      "type": "object"
    },
    "billingOrgCatalogGetResponse": {
      "properties": {
        "catalog": {
          "$ref": "#/definitions/billingBillingCatalog",
          "title": "计费目录 | [EN] Billing catalog"
        },
        "not_modified": {
          "title": "目录未变（catalog 为空） | [EN] Unchanged since known_revision, catalog left empty",
          "type": "boolean"
        }
      },
      "title": "读取计费目录响应\n[EN] Get billing catalog response",
      "type": "object"
    },
    "billingOrgConsumptionOverviewGetResponse": {
      "properties": {
        "as_of": {
          "format": "date-time",
          "title": "数据时点 | [EN] Point in time of the data",
          "type": "string"
        },
        "low_balance_count": {
          "format": "int32",
          "title": "低余额工作区数 | [EN] Workspaces below their low-balance threshold",
          "type": "integer"
        },
        "month_recharge_micro": {
          "format": "int64",
          "title": "全组织本月充值 | [EN] Org-wide top-ups this month",
          "type": "string"
        },
        "month_spend_micro": {
          "format": "int64",
          "title": "全组织本月支出 | [EN] Org-wide spend this month",
          "type": "string"
        },
        "time_zone": {
          "title": "「本月」所用时区 | [EN] Time zone of 'this month'",
          "type": "string"
        },
        "workspaces": {
          "items": {
            "$ref": "#/definitions/billingWorkspaceConsumption",
            "type": "object"
          },
          "title": "各工作区 | [EN] One per workspace",
          "type": "array"
        }
      },
      "title": "读取消费总览响应\n[EN] Get consumption overview response",
      "type": "object"
    },
    "billingOrgOrderCancelResponse": {
      "properties": {
        "order": {
          "$ref": "#/definitions/billingOrderInfo",
          "title": "订单 | [EN] Order"
        }
      },
      "title": "取消订单响应\n[EN] Cancel order response",
      "type": "object"
    },
    "billingOrgOrderCreateRequest": {
      "properties": {
        "idempotency_key": {
          "maxLength": 512,
          "title": "幂等键（同一个键重复提交返回同一笔订单） | [EN] Idempotency key; a repeat returns the same order",
          "type": "string"
        },
        "pay_method": {
          "$ref": "#/definitions/configPaymentMethod",
          "title": "第三方渠道（钱包不够付时用） | [EN] Third-party channel for what the wallet does not cover"
        },
        "quote_token": {
          "title": "报价凭证 | [EN] Quote token from OrgSubscriptionQuote",
          "type": "string"
        },
        "use_wallet": {
          "title": "先用钱包余额 | [EN] Use the wallet balance first",
          "type": "boolean"
        }
      },
      "required": [
        "quote_token",
        "idempotency_key"
      ],
      "title": "下单请求\n[EN] Create order request",
      "type": "object"
    },
    "billingOrgOrderCreateResponse": {
      "properties": {
        "action": {
          "$ref": "#/definitions/billingPaymentAction",
          "title": "收银台动作（钱包付清时为空） | [EN] Cashier action; empty when paid in full from the wallet"
        },
        "order": {
          "$ref": "#/definitions/billingOrderInfo",
          "title": "订单 | [EN] Order"
        }
      },
      "title": "下单响应\n[EN] Create order response",
      "type": "object"
    },
    "billingOrgOrderGetResponse": {
      "properties": {
        "order": {
          "$ref": "#/definitions/billingOrderInfo",
          "title": "订单 | [EN] Order"
        }
      },
      "title": "订单详情响应\n[EN] Get order response",
      "type": "object"
    },
    "billingOrgOrderListResponse": {
      "properties": {
        "orders": {
          "items": {
            "$ref": "#/definitions/billingOrderInfo",
            "type": "object"
          },
          "title": "订单 | [EN] Orders",
          "type": "array"
        },
        "page_response": {
          "$ref": "#/definitions/commonPaging",
          "title": "分页响应 | [EN] Page response"
        }
      },
      "title": "订单列表响应\n[EN] List orders response",
      "type": "object"
    },
    "billingOrgOrderPaymentGetResponse": {
      "properties": {
        "action": {
          "$ref": "#/definitions/billingPaymentAction",
          "title": "收银台动作（待支付时复用未过期的支付会话） | [EN] Cashier action, reusing the live payment session while pending"
        },
        "exchange_rate": {
          "title": "渠道汇率，十进制串 | [EN] Channel exchange rate, decimal string",
          "type": "string"
        },
        "payer_amount_micro": {
          "format": "int64",
          "title": "渠道要求付款人实付的数量（micro）| [EN] Payer amount quoted by the channel, micro-units",
          "type": "string"
        },
        "payer_currency": {
          "title": "付款币种，如 USDT | [EN] Payer currency, e.g. USDT",
          "type": "string"
        },
        "status": {
          "$ref": "#/definitions/billingOrderStatus",
          "title": "订单状态 | [EN] Order status"
        }
      },
      "title": "支付状态响应\n[EN] Get payment status response",
      "type": "object"
    },
    "billingOrgPendingChangeCancelResponse": {
      "properties": {
        "subscription": {
          "$ref": "#/definitions/billingSubscriptionInfo",
          "title": "更新后的订阅 | [EN] Updated subscription"
        }
      },
      "title": "撤销待生效变更响应\n[EN] Cancel pending change response",
      "type": "object"
    },
    "billingOrgQuotaLedgerListResponse": {
      "properties": {
        "entries": {
          "items": {
            "$ref": "#/definitions/billingQuotaLedgerEntry",
            "type": "object"
          },
          "title": "流水（最近的在前） | [EN] Entries, most recent first",
          "type": "array"
        },
        "next_cursor": {
          "title": "下一页游标（为空即没有下一页） | [EN] Cursor of the next page; empty when there is none",
          "type": "string"
        },
        "total": {
          "format": "int64",
          "title": "符合条件的总条数（只在首页给） | [EN] Matching entries in total, first page only",
          "type": "string"
        }
      },
      "title": "额度流水响应\n[EN] List quota ledger response",
      "type": "object"
    },
    "billingOrgQuotaOverviewGetResponse": {
      "properties": {
        "as_of": {
          "format": "date-time",
          "title": "数据时点 | [EN] Point in time of the data",
          "type": "string"
        },
        "quotas": {
          "items": {
            "$ref": "#/definitions/billingQuotaOverview",
            "type": "object"
          },
          "title": "各额度类资源 | [EN] One per quota resource",
          "type": "array"
        }
      },
      "title": "读取额度概览响应\n[EN] Get quota overview response",
      "type": "object"
    },
    "billingOrgRechargeOrderCreateRequest": {
      "properties": {
        "amount_micro": {
          "format": "int64",
          "minLength": 0,
          "title": "充值金额，上下限取配置中心计费设置 | [EN] Amount to top up, bounded by the billing settings",
          "type": "string"
        },
        "idempotency_key": {
          "maxLength": 512,
          "title": "幂等键 | [EN] Idempotency key",
          "type": "string"
        },
        "pay_method": {
          "$ref": "#/definitions/configPaymentMethod",
          "title": "支付渠道 | [EN] Payment channel"
        }
      },
      "required": [
        "pay_method",
        "idempotency_key"
      ],
      "title": "充值下单请求\n[EN] Create top-up order request",
      "type": "object"
    },
    "billingOrgRechargeOrderCreateResponse": {
      "properties": {
        "action": {
          "$ref": "#/definitions/billingPaymentAction",
          "title": "收银台动作 | [EN] Cashier action"
        },
        "order": {
          "$ref": "#/definitions/billingOrderInfo",
          "title": "订单 | [EN] Order"
        }
      },
      "title": "充值下单响应\n[EN] Create top-up order response",
      "type": "object"
    },
    "billingOrgRenewalSetRequest": {
      "description": "已排降级时不能关自动续费（降级要靠续费落地），会返回 FailedPrecondition\n[EN] Auto-renewal cannot be turned off while a downgrade is scheduled, since the downgrade lands through\nthe renewal; that returns FailedPrecondition",
      "properties": {
        "auto_renew": {
          "title": "自动续费开关（不传不改） | [EN] Auto-renewal switch, unchanged when absent",
          "type": "boolean"
        },
        "renew_cycle_months": {
          "format": "int32",
          "title": "续费周期（不传不改，下次续费生效） | [EN] Renewal cycle, unchanged when absent, applies at the next renewal",
          "type": "integer"
        },
        "version": {
          "exclusiveMinimum": true,
          "format": "int32",
          "minimum": 0,
          "title": "订阅行版本 | [EN] Subscription row version",
          "type": "integer"
        }
      },
      "required": [
        "version"
      ],
      "title": "续费设置请求\n[EN] Renewal settings request",
      "type": "object"
    },
    "billingOrgRenewalSetResponse": {
      "properties": {
        "subscription": {
          "$ref": "#/definitions/billingSubscriptionInfo",
          "title": "更新后的订阅 | [EN] Updated subscription"
        }
      },
      "title": "续费设置响应\n[EN] Renewal settings response",
      "type": "object"
    },
    "billingOrgSubscriptionOverviewGetResponse": {
      "properties": {
        "overview": {
          "$ref": "#/definitions/billingSubscriptionOverview",
          "title": "订阅总览 | [EN] Subscription overview"
        }
      },
      "title": "读取订阅总览响应\n[EN] Get subscription overview response",
      "type": "object"
    },
    "billingOrgSubscriptionQuoteRequest": {
      "properties": {
        "addons": {
          "items": {
            "$ref": "#/definitions/billingResourceTarget",
            "type": "object"
          },
          "maxItems": 10,
          "title": "资源位目标总量（CHECKOUT） | [EN] Seat targets, for CHECKOUT",
          "type": "array"
        },
        "enable_auto_renew": {
          "title": "同时开启自动续费 | [EN] Turn on auto-renewal with this purchase",
          "type": "boolean"
        },
        "months": {
          "format": "int32",
          "maximum": 36,
          "minimum": 0,
          "title": "购买或续费月数（CHECKOUT） | [EN] Months to buy or renew, for CHECKOUT",
          "type": "integer"
        },
        "plan_code": {
          "title": "目标套餐编码（CHECKOUT，留空为当前套餐） | [EN] Target plan code for CHECKOUT, empty keeps the current one",
          "type": "string"
        },
        "purpose": {
          "$ref": "#/definitions/billingOrderPurpose",
          "title": "用途：CHECKOUT 或 QUOTA | [EN] Purpose: CHECKOUT or QUOTA"
        },
        "quota": {
          "$ref": "#/definitions/billingQuotaPurchase",
          "title": "额度包（QUOTA） | [EN] Quota package, for QUOTA"
        }
      },
      "required": [
        "purpose"
      ],
      "title": "报价请求\n[EN] Quote request",
      "type": "object"
    },
    "billingOrgSubscriptionQuoteResponse": {
      "properties": {
        "checkout_type": {
          "$ref": "#/definitions/billingCheckoutType",
          "title": "变更类型 | [EN] Kind of change"
        },
        "conflicts": {
          "items": {
            "$ref": "#/definitions/billingQuoteConflict",
            "type": "object"
          },
          "title": "目标低于当前占用的资源（有则不能下单） | [EN] Resources whose target is below usage; ordering is refused while any remain",
          "type": "array"
        },
        "pricing_revision": {
          "title": "计价所用的目录版本 | [EN] Catalog revision the quote was priced with",
          "type": "string"
        },
        "quote": {
          "$ref": "#/definitions/billingQuoteResult",
          "title": "报价 | [EN] Quote"
        },
        "quote_expires_at": {
          "format": "date-time",
          "title": "报价失效时间 | [EN] When the quote expires",
          "type": "string"
        },
        "quote_token": {
          "title": "报价凭证（下单时原样回传，15 分钟有效） | [EN] Quote token to pass back when ordering, valid 15 minutes",
          "type": "string"
        }
      },
      "title": "报价响应\n[EN] Quote response",
      "type": "object"
    },
    "billingOrgUsageDailyListResponse": {
      "properties": {
        "daily_avg": {
          "format": "int64",
          "title": "日均（合计 ÷ 区间天数） | [EN] Daily average: total divided by days in range",
          "type": "string"
        },
        "data_as_of": {
          "format": "date-time",
          "title": "数据截至 | [EN] Data as of",
          "type": "string"
        },
        "days": {
          "items": {
            "$ref": "#/definitions/billingUsageDay",
            "type": "object"
          },
          "title": "每天一条（无用量的日子为 0） | [EN] One per day, zero for days without usage",
          "type": "array"
        },
        "peak_date": {
          "title": "峰值日（并列取最早） | [EN] Peak day, earliest on ties",
          "type": "string"
        },
        "peak_qty": {
          "format": "int64",
          "title": "峰值用量 | [EN] Usage on the peak day",
          "type": "string"
        },
        "time_zone": {
          "title": "日界所用时区 | [EN] Time zone of the day boundaries",
          "type": "string"
        },
        "total": {
          "format": "int64",
          "title": "区间合计 | [EN] Total over the range",
          "type": "string"
        }
      },
      "title": "每日用量响应\n[EN] List daily usage response",
      "type": "object"
    },
    "billingOrgUsageMemberBreakdownResponse": {
      "properties": {
        "items": {
          "items": {
            "$ref": "#/definitions/billingMemberUsage",
            "type": "object"
          },
          "title": "按用量降序 | [EN] By usage, descending",
          "type": "array"
        },
        "time_zone": {
          "title": "日界所用时区 | [EN] Time zone of the day boundaries",
          "type": "string"
        },
        "total": {
          "format": "int64",
          "title": "合计 | [EN] Total",
          "type": "string"
        }
      },
      "title": "成员用量分布响应\n[EN] Member usage breakdown response",
      "type": "object"
    },
    "billingPaymentAction": {
      "properties": {
        "expires_at": {
          "format": "date-time",
          "title": "本次支付会话失效时间 | [EN] When this payment session expires",
          "type": "string"
        },
        "qrcode_url": {
          "title": "二维码内容（扫码） | [EN] QR code content, for QRCODE",
          "type": "string"
        },
        "redirect_url": {
          "title": "支付页地址（跳转） | [EN] Payment page URL, for REDIRECT",
          "type": "string"
        },
        "type": {
          "$ref": "#/definitions/billingPaymentActionType",
          "title": "动作类型 | [EN] Action type"
        }
      },
      "title": "收银台动作\n[EN] Cashier action",
      "type": "object"
    },
    "billingPaymentActionType": {
      "default": "PAYMENT_ACTION_TYPE_UNSPECIFIED",
      "description": "- PAYMENT_ACTION_TYPE_UNSPECIFIED: 未指定（钱包付清时无需动作）| [EN] None, e.g. paid in full from the wallet\n - PAYMENT_ACTION_TYPE_QRCODE: 扫码支付 | [EN] Scan a QR code\n - PAYMENT_ACTION_TYPE_REDIRECT: 跳转支付页 | [EN] Redirect to a payment page",
      "enum": [
        "PAYMENT_ACTION_TYPE_UNSPECIFIED",
        "PAYMENT_ACTION_TYPE_QRCODE",
        "PAYMENT_ACTION_TYPE_REDIRECT"
      ],
      "title": "收银台要客户做的动作\n[EN] What the cashier asks the customer to do",
      "type": "string"
    },
    "billingPendingChange": {
      "properties": {
        "change_type": {
          "$ref": "#/definitions/billingSubscriptionChangeType",
          "title": "变更类型 | [EN] Change type"
        },
        "created_at": {
          "format": "date-time",
          "title": "创建时间 | [EN] Created at",
          "type": "string"
        },
        "effective_at": {
          "format": "date-time",
          "title": "生效时间（= 本期结束）| [EN] When it applies, the period end",
          "type": "string"
        },
        "id": {
          "title": "变更ID | [EN] Change ID",
          "type": "string"
        },
        "resource_code": {
          "$ref": "#/definitions/configResourceCode",
          "title": "资源编码（减资源位时有效）| [EN] Resource, for a seat reduction"
        },
        "status": {
          "$ref": "#/definitions/billingPendingChangeStatus",
          "title": "状态 | [EN] Status"
        },
        "target_cycle_months": {
          "format": "int32",
          "title": "目标周期（改周期时有效）| [EN] Target cycle, for a cycle change",
          "type": "integer"
        },
        "target_plan": {
          "$ref": "#/definitions/billingPlanRef",
          "title": "目标套餐的展示信息（降级时有效，下架的也给）| [EN] Target plan for display on a downgrade, even when off sale"
        },
        "target_plan_code": {
          "title": "目标套餐编码（降级时有效）| [EN] Target plan code, for a downgrade",
          "type": "string"
        },
        "target_total_qty": {
          "format": "int64",
          "title": "目标总量（减资源位时有效）| [EN] Target total, for a seat reduction",
          "type": "string"
        }
      },
      "title": "待生效的变更\n[EN] A change waiting to take effect",
      "type": "object"
    },
    "billingPendingChangeCancelResponse": {
      "properties": {
        "subscription": {
          "$ref": "#/definitions/billingSubscriptionInfo",
          "title": "撤销后的订阅 | [EN] Subscription after the cancellation"
        }
      },
      "title": "撤销待生效变更响应\n[EN] Cancel a scheduled change response",
      "type": "object"
    },
    "billingPendingChangeStatus": {
      "default": "PENDING_CHANGE_STATUS_UNSPECIFIED",
      "description": "- PENDING_CHANGE_STATUS_UNSPECIFIED: 未指定 | [EN] Unspecified\n - PENDING_CHANGE_STATUS_PENDING: 待生效 | [EN] Waiting to take effect\n - PENDING_CHANGE_STATUS_SUPERSEDED: 被后续变更取代 | [EN] Replaced by a later change\n - PENDING_CHANGE_STATUS_APPLIED: 已生效 | [EN] Applied\n - PENDING_CHANGE_STATUS_CANCELLED: 已撤销 | [EN] Cancelled by the customer",
      "enum": [
        "PENDING_CHANGE_STATUS_UNSPECIFIED",
        "PENDING_CHANGE_STATUS_PENDING",
        "PENDING_CHANGE_STATUS_SUPERSEDED",
        "PENDING_CHANGE_STATUS_APPLIED",
        "PENDING_CHANGE_STATUS_CANCELLED"
      ],
      "title": "待生效变更的状态\n[EN] Pending change status",
      "type": "string"
    },
    "billingPlanInfo": {
      "properties": {
        "audience": {
          "items": {
            "$ref": "#/definitions/commonLocalizedText",
            "type": "object"
          },
          "title": "适用人群（按语言）| [EN] Target audience per language",
          "type": "array"
        },
        "code": {
          "title": "套餐编码（全局唯一，创建后不可改）| [EN] Plan code, globally unique and immutable",
          "type": "string"
        },
        "color": {
          "$ref": "#/definitions/configPlanColor",
          "title": "标识色 | [EN] Accent color"
        },
        "created_at": {
          "format": "date-time",
          "title": "创建时间 | [EN] Created at",
          "type": "string"
        },
        "created_by": {
          "title": "创建人 | [EN] Created by",
          "type": "string"
        },
        "features": {
          "items": {
            "$ref": "#/definitions/configPlanFeature",
            "type": "object"
          },
          "title": "卖点（有序，每条自带各语言文本）| [EN] Selling points, ordered, each carrying its own languages",
          "type": "array"
        },
        "id": {
          "title": "套餐ID | [EN] Plan ID",
          "type": "string"
        },
        "is_free": {
          "title": "是否兜底套餐（免费版，唯一且不可下架删除）| [EN] Whether this is the fallback free plan, unique and undeletable",
          "type": "boolean"
        },
        "is_recommended": {
          "title": "是否推荐套餐（全局唯一）| [EN] Whether this is the recommended plan, globally unique",
          "type": "boolean"
        },
        "is_trial": {
          "title": "是否正被用作试用套餐（启用中不可下架删除）| [EN] Whether it is the active trial plan, undeletable while in use",
          "type": "boolean"
        },
        "name": {
          "items": {
            "$ref": "#/definitions/commonLocalizedText",
            "type": "object"
          },
          "title": "名称（按语言）| [EN] Name per language",
          "type": "array"
        },
        "price_per_month_micro": {
          "format": "int64",
          "title": "月费 | [EN] Monthly price",
          "type": "string"
        },
        "quotas": {
          "items": {
            "$ref": "#/definitions/configPlanQuota",
            "type": "object"
          },
          "title": "内含资源位与额度 | [EN] Included seats and quotas",
          "type": "array"
        },
        "sort_no": {
          "format": "int32",
          "title": "展示顺序 | [EN] Display order",
          "type": "integer"
        },
        "status": {
          "$ref": "#/definitions/configPlanStatus",
          "title": "售卖状态 | [EN] Sale status"
        },
        "updated_at": {
          "format": "date-time",
          "title": "更新时间 | [EN] Updated at",
          "type": "string"
        },
        "updated_by": {
          "title": "最后修改人 | [EN] Last operator",
          "type": "string"
        },
        "usage": {
          "$ref": "#/definitions/billingPlanWorkspaceUsage",
          "title": "在用工作区统计 | [EN] In-use workspace statistics"
        },
        "version": {
          "format": "int32",
          "title": "行版本（保存时原样回传，用于乐观锁）| [EN] Row version, echoed back on save for optimistic locking",
          "type": "integer"
        }
      },
      "title": "套餐信息\n[EN] Plan information\n作为详情、列表、创建响应的统一出参，避免三个接口三套字段。\n[EN] One shape for get/list/create responses instead of three divergent ones",
      "type": "object"
    },
    "billingPlanRef": {
      "description": "只带展示需要的字段：待生效降级要显示目标套餐名，而目标可能已经下架、不在控制台目录里\n[EN] Display fields only: a scheduled downgrade must name its target, which may already be off sale and\nmissing from the console catalog",
      "properties": {
        "code": {
          "title": "套餐编码 | [EN] Plan code",
          "type": "string"
        },
        "color": {
          "$ref": "#/definitions/configPlanColor",
          "title": "标识色 | [EN] Accent color"
        },
        "name": {
          "items": {
            "$ref": "#/definitions/commonLocalizedText",
            "type": "object"
          },
          "title": "名称（按语言）| [EN] Name per language",
          "type": "array"
        }
      },
      "title": "套餐的展示引用\n[EN] A plan reference for display",
      "type": "object"
    },
    "billingPlanWorkspaceUsage": {
      "properties": {
        "active_workspaces": {
          "format": "int32",
          "title": "在用工作区数 | [EN] Active workspace count",
          "type": "integer"
        },
        "trial_workspaces": {
          "format": "int32",
          "title": "试用中工作区数（仅免费版有值）| [EN] Trialing workspace count, free plan only",
          "type": "integer"
        }
      },
      "title": "套餐在用工作区统计\n[EN] Plan in-use workspace statistics\n不落配置表，由 billing 按 subscriptions 实时聚合：它是「这个套餐现在有多少人在用」，\n删除或下架前要看的就是它，存一份快照只会越存越旧。\n[EN] Not stored in any config table but aggregated live from subscriptions: it answers how\nmany workspaces are on this plan right now, which is exactly what one checks before taking a\nplan off sale, and a stored snapshot would only ever go stale",
      "type": "object"
    },
    "billingPlatformOrder": {
      "description": "金额都是下单时冻结的值；第三方应付是 external_micro，已支付时第三方实付 paid_micro 与它相等\n[EN] Amounts are frozen at order time; the third-party payable is external_micro and, once paid, paid_micro equals it",
      "properties": {
        "cancelled_at": {
          "format": "date-time",
          "title": "取消时间 | [EN] Cancelled at",
          "type": "string"
        },
        "checkout_type": {
          "$ref": "#/definitions/billingCheckoutType",
          "title": "订阅变更类型 | [EN] Kind of subscription change"
        },
        "created_at": {
          "format": "date-time",
          "title": "下单时间 | [EN] Created at",
          "type": "string"
        },
        "created_by": {
          "title": "下单成员（AC 身份主体 ID）| [EN] The member who ordered, an AC principal ID",
          "type": "string"
        },
        "currency": {
          "title": "币种 | [EN] Currency",
          "type": "string"
        },
        "expired_at": {
          "format": "date-time",
          "title": "过期时间 | [EN] Expired at",
          "type": "string"
        },
        "expires_at": {
          "format": "date-time",
          "title": "支付截止 | [EN] Payment deadline",
          "type": "string"
        },
        "external_micro": {
          "format": "int64",
          "title": "第三方应付 | [EN] Third-party payable",
          "type": "string"
        },
        "first_purchase": {
          "title": "首购：本单之前该组织没有付过款 | [EN] First purchase: the organization had paid nothing before this order",
          "type": "boolean"
        },
        "from_plan_code": {
          "title": "下单时的套餐（升级时看从哪升）| [EN] Plan at order time, showing what an upgrade came from",
          "type": "string"
        },
        "gift_micro": {
          "format": "int64",
          "title": "赠金抵扣 | [EN] Gift share",
          "type": "string"
        },
        "months": {
          "format": "int32",
          "title": "购买月数 | [EN] Months purchased",
          "type": "integer"
        },
        "order_no": {
          "title": "订单号 | [EN] Order number",
          "type": "string"
        },
        "org_id": {
          "title": "组织 ID | [EN] Organization ID",
          "type": "string"
        },
        "paid_at": {
          "format": "date-time",
          "title": "确认付款时间（补单为补确认时间）| [EN] When payment was confirmed; the confirmation time for a reconcile",
          "type": "string"
        },
        "paid_micro": {
          "format": "int64",
          "title": "第三方实付（未支付为 0）| [EN] Third-party paid, zero while unpaid",
          "type": "string"
        },
        "pay_method": {
          "$ref": "#/definitions/configPaymentMethod",
          "title": "支付方式 | [EN] Payment method"
        },
        "plan_code": {
          "title": "目标套餐 | [EN] Target plan",
          "type": "string"
        },
        "purpose": {
          "$ref": "#/definitions/billingOrderPurpose",
          "title": "用途 | [EN] Purpose"
        },
        "quota_amount": {
          "format": "int64",
          "title": "额度包购买量 | [EN] Quota package amount",
          "type": "string"
        },
        "quota_resource": {
          "$ref": "#/definitions/configResourceCode",
          "title": "额度包资源 | [EN] Quota package resource"
        },
        "reconcile": {
          "$ref": "#/definitions/apiBillingOrderReconcile",
          "title": "补单记录（没补过为空）| [EN] Reconcile record, empty when never reconciled"
        },
        "seat_targets": {
          "items": {
            "$ref": "#/definitions/billingSeatTarget",
            "type": "object"
          },
          "title": "资源位目标总数 | [EN] Seat target totals",
          "type": "array"
        },
        "status": {
          "$ref": "#/definitions/billingOrderStatus",
          "title": "状态 | [EN] Status"
        },
        "title": {
          "title": "下单时冻结的标题（兜底文案）| [EN] Title frozen at order time, the fallback text",
          "type": "string"
        },
        "total_micro": {
          "format": "int64",
          "title": "订单总额 | [EN] Order total",
          "type": "string"
        },
        "wallet_micro": {
          "format": "int64",
          "title": "钱包抵扣 | [EN] Wallet share",
          "type": "string"
        },
        "workspace_id": {
          "title": "工作区 ID | [EN] Workspace ID",
          "type": "string"
        }
      },
      "title": "一笔支付订单（运维视图）\n[EN] A payment order as the ops console sees it",
      "type": "object"
    },
    "billingPlatformOrderDetail": {
      "properties": {
        "cancel_reason": {
          "$ref": "#/definitions/billingOrderCancelReason",
          "title": "取消原因 | [EN] Why it was cancelled"
        },
        "channel_txn_id": {
          "title": "落账的渠道流水号 | [EN] Channel transaction applied to the order",
          "type": "string"
        },
        "later_paid_order_no": {
          "title": "同工作区此后已支付的同内容订单号（仅待支付或已过期），补单前提示可能重复开通 | [EN] A later paid order of the same workspace with the same content, pending or expired orders only, warning of a duplicate before reconciling",
          "type": "string"
        },
        "lines": {
          "items": {
            "$ref": "#/definitions/billingQuoteLine",
            "type": "object"
          },
          "title": "订单行 | [EN] Order lines",
          "type": "array"
        },
        "order": {
          "$ref": "#/definitions/billingPlatformOrder",
          "title": "订单 | [EN] Order"
        },
        "payment_id": {
          "title": "支付网关单号 | [EN] Gateway payment ID",
          "type": "string"
        },
        "timeline": {
          "items": {
            "$ref": "#/definitions/billingOrderTimelineEvent",
            "type": "object"
          },
          "title": "状态记录（时间倒序）| [EN] Status record, newest first",
          "type": "array"
        }
      },
      "title": "订单详情（运维视图）\n[EN] Order detail as the ops console sees it",
      "type": "object"
    },
    "billingPublicBillingSettings": {
      "description": "计费设置里客户可以看的那一部分：收款银行账户、加密货币地址等不在此列\n[EN] The part of the billing settings customers may see; receiving bank accounts and crypto addresses are not",
      "properties": {
        "default_cycle_months": {
          "format": "int32",
          "title": "默认付费周期 | [EN] Default billing cycle in months",
          "type": "integer"
        },
        "enabled_pay_methods": {
          "items": {
            "$ref": "#/definitions/configPaymentMethod"
          },
          "title": "已开放的支付方式 | [EN] Payment methods currently offered",
          "type": "array"
        },
        "min_payment_micro": {
          "format": "int64",
          "title": "第三方支付最低金额 | [EN] Minimum third-party payment",
          "type": "string"
        },
        "recharge_max_micro": {
          "format": "int64",
          "title": "单次充值上限 | [EN] Maximum single top-up",
          "type": "string"
        },
        "recharge_presets_micro": {
          "items": {
            "format": "int64",
            "type": "string"
          },
          "title": "充值快捷金额 | [EN] Top-up quick-pick amounts",
          "type": "array"
        },
        "signup_gift_micro": {
          "format": "int64",
          "title": "注册赠金 | [EN] Sign-up gift",
          "type": "string"
        },
        "translation_metering": {
          "$ref": "#/definitions/configTranslationMetering",
          "title": "翻译计量规则（语音、图片折算字符） | [EN] Translation metering rules for voice and images"
        },
        "trial": {
          "$ref": "#/definitions/configBillingTrial",
          "title": "试用设置 | [EN] Trial settings"
        }
      },
      "title": "公开的计费设置\n[EN] Public billing settings",
      "type": "object"
    },
    "billingQuotaCap": {
      "properties": {
        "qty": {
          "format": "int64",
          "title": "额度 | [EN] Quota",
          "type": "string"
        },
        "resource_code": {
          "$ref": "#/definitions/configResourceCode",
          "title": "资源编码 | [EN] Resource code"
        }
      },
      "title": "一种资源的额度 | [EN] One resource's quota",
      "type": "object"
    },
    "billingQuotaEventType": {
      "default": "QUOTA_EVENT_TYPE_UNSPECIFIED",
      "description": "日常消耗**不入**账本：账本只记这七类增减事件，`balance_after` 是事件时刻的快照，\n相邻两条之间不衔接——这是设计意图不是 bug。\n\n为什么消耗不记账本：消耗是 3,000 万行/天的量级（10 万工作区时），\n把它写进账本会让一张「本该行数极少、可以和扣减同库对账」的表变成最大的表。\n消耗的事实源是 usage_events，账本只回答「额度是怎么来的、怎么被调整的」。\n\n[EN] Day-to-day consumption is deliberately absent: the ledger records only these seven\nadjustment events, and balance_after is a snapshot at the event rather than a running total\nthat reconciles between adjacent rows. Consumption runs at tens of millions of rows a day at\n100k workspaces, and writing it here would turn a table meant to stay tiny — small enough to\nreconcile in the same database as the deduction — into the largest one. Consumption's fact\nsource is usage_events; the ledger answers only where quota came from and how it was adjusted.\n\n - QUOTA_EVENT_TYPE_UNSPECIFIED: 未指定 | [EN] Unspecified\n - QUOTA_EVENT_TYPE_PLAN_GRANT: 套餐发放（开通或月度重置）| [EN] Plan grant, on activation or monthly reset\n - QUOTA_EVENT_TYPE_PLAN_UPGRADE: 升级补发差额 | [EN] Upgrade top-up of the difference\n - QUOTA_EVENT_TYPE_PURCHASE: 额度包加购 | [EN] Quota package purchase\n - QUOTA_EVENT_TYPE_REFUND: 退款冲销 | [EN] Refund reversal\n - QUOTA_EVENT_TYPE_GIFT: 赠送 | [EN] Gift\n - QUOTA_EVENT_TYPE_DEDUCTION: 运营扣回 | [EN] Operator deduction\n - QUOTA_EVENT_TYPE_PLAN_EXPIRE: 到期清零 | [EN] Expiry zeroing",
      "enum": [
        "QUOTA_EVENT_TYPE_UNSPECIFIED",
        "QUOTA_EVENT_TYPE_PLAN_GRANT",
        "QUOTA_EVENT_TYPE_PLAN_UPGRADE",
        "QUOTA_EVENT_TYPE_PURCHASE",
        "QUOTA_EVENT_TYPE_REFUND",
        "QUOTA_EVENT_TYPE_GIFT",
        "QUOTA_EVENT_TYPE_DEDUCTION",
        "QUOTA_EVENT_TYPE_PLAN_EXPIRE"
      ],
      "title": "额度账本事件类型（七类，方案 00 §4.1）\n[EN] Quota ledger event type; seven kinds",
      "type": "string"
    },
    "billingQuotaLedgerEntry": {
      "properties": {
        "available_after": {
          "format": "int64",
          "title": "变动后可用 | [EN] Available afterwards",
          "type": "string"
        },
        "delta": {
          "format": "int64",
          "title": "变动量（正为增加） | [EN] Change, positive for an increase",
          "type": "string"
        },
        "event_type": {
          "$ref": "#/definitions/billingQuotaEventType",
          "title": "事件类型 | [EN] Event type"
        },
        "id": {
          "title": "流水ID | [EN] Entry ID",
          "type": "string"
        },
        "occurred_at": {
          "format": "date-time",
          "title": "发生时间 | [EN] Occurred at",
          "type": "string"
        },
        "summary": {
          "title": "说明 | [EN] Description",
          "type": "string"
        }
      },
      "title": "一条额度流水\n[EN] One quota ledger entry",
      "type": "object"
    },
    "billingQuotaOverview": {
      "properties": {
        "addon_remaining": {
          "format": "int64",
          "title": "额度包剩余（永久有效） | [EN] Quota package balance, never expires",
          "type": "string"
        },
        "package_remaining": {
          "format": "int64",
          "title": "本期剩余 | [EN] Left this period",
          "type": "string"
        },
        "package_total": {
          "format": "int64",
          "title": "本期额度总量 | [EN] Quota for this period",
          "type": "string"
        },
        "package_used": {
          "format": "int64",
          "title": "本期内含已用 = 总量 − 剩余，不低于 0 | [EN] Included quota used this period, total minus remaining and never below zero",
          "type": "string"
        },
        "paused_at": {
          "format": "date-time",
          "title": "这一轮超额暂停的开始（未暂停为空） | [EN] When the current overage pause began; empty when not paused",
          "type": "string"
        },
        "paused_reason": {
          "$ref": "#/definitions/billingQuotaPausedReason",
          "title": "超额暂停原因（未暂停为 UNSPECIFIED） | [EN] Why overage is paused, UNSPECIFIED when not"
        },
        "reset_at": {
          "format": "date-time",
          "title": "下次重置时间 | [EN] Next reset",
          "type": "string"
        },
        "resource_code": {
          "$ref": "#/definitions/configResourceCode",
          "title": "资源编码 | [EN] Resource code"
        }
      },
      "title": "一种额度的概览\n[EN] Overview of one quota",
      "type": "object"
    },
    "billingQuotaPausedReason": {
      "default": "QUOTA_PAUSED_REASON_UNSPECIFIED",
      "description": "两种必须在 Consume 的返回里区分开，因为前端文案完全不同：\n\n\tZERO_BALANCE      余额真的没了 → 提示充值\n\tRENEWAL_RESERVED  余额还在，但被留给了 N 天后的续费 → 提示「余额需优先保证 {date} 到期续费」\n\n合成一个「已暂停」的话，第二种会被渲染成「你没钱了」，而客户账上明明有钱——\n这是会直接变成客诉的那种错。\n\n暂停只拦**超额**：内含额度与加购额度还有余量时照常扣减，不受影响。\n\n[EN] The two must be distinguishable in the response because the copy differs entirely: one\nsays the balance is gone and asks for a top-up, the other says the balance is being held for a\nrenewal on a given date. Collapsed into a single \"paused\" state, the second renders as \"you\nare out of money\" while the customer can see funds in the account — the kind of error that\nbecomes a support ticket directly. Pausing blocks overage only; included and add-on quota keep\nbeing spent normally while they last.\n\n - QUOTA_PAUSED_REASON_UNSPECIFIED: 未暂停 | [EN] Not paused\n - QUOTA_PAUSED_REASON_ZERO_BALANCE: 钱包可用余额为 0 | [EN] Wallet available balance is zero\n - QUOTA_PAUSED_REASON_RENEWAL_RESERVED: 余额留给临近的续费 | [EN] Balance reserved for an imminent renewal",
      "enum": [
        "QUOTA_PAUSED_REASON_UNSPECIFIED",
        "QUOTA_PAUSED_REASON_ZERO_BALANCE",
        "QUOTA_PAUSED_REASON_RENEWAL_RESERVED"
      ],
      "title": "超额暂停的原因（方案 11 §2.2）\n[EN] Why overage is paused",
      "type": "string"
    },
    "billingQuotaPurchase": {
      "properties": {
        "amount": {
          "format": "int64",
          "maxLength": 1000000000000,
          "minLength": 0,
          "title": "购买量 | [EN] Amount to buy",
          "type": "string"
        },
        "resource_code": {
          "$ref": "#/definitions/configResourceCode",
          "title": "资源编码 | [EN] Resource code"
        }
      },
      "required": [
        "resource_code"
      ],
      "title": "额度包购买量\n[EN] Quota package purchase",
      "type": "object"
    },
    "billingQuoteConflict": {
      "properties": {
        "limit": {
          "format": "int64",
          "title": "目标上限 | [EN] Target limit",
          "type": "string"
        },
        "resource_code": {
          "$ref": "#/definitions/configResourceCode",
          "title": "资源编码 | [EN] Resource code"
        },
        "used": {
          "format": "int64",
          "title": "当前占用 | [EN] In use now",
          "type": "string"
        }
      },
      "title": "与当前占用冲突的资源\n[EN] A resource whose target is below current usage",
      "type": "object"
    },
    "billingQuoteLine": {
      "description": "同时带 months 与 days 的行不存在：days\u003e0 归「本期补差价」组，months\u003e0 归「购买 N 个月」组。\namount 是折前、net_amount 是折后，两个都给——界面每行展示\n「单价 × 数量 × 天数 × (1 − 折扣%)」，缺一个就对不上。\n\n[EN] No row carries both months and days: days put it in the proration group and months in\nthe purchase group. Both the pre- and post-discount amounts are returned because the UI\nprints the multiplication and the percentage separately, and one without the other does not\nadd up on screen.",
      "properties": {
        "amount_micro": {
          "format": "int64",
          "title": "折前金额 | [EN] Amount before discount",
          "type": "string"
        },
        "discount_bp": {
          "format": "int32",
          "title": "折扣基点 | [EN] Discount in basis points",
          "type": "integer"
        },
        "explain": {
          "title": "算式说明（逐行可复算）| [EN] The arithmetic, so each row can be rechecked",
          "type": "string"
        },
        "kind": {
          "$ref": "#/definitions/billingQuoteLineKind",
          "title": "行类型 | [EN] Line kind"
        },
        "label": {
          "title": "展示文案 | [EN] Display label",
          "type": "string"
        },
        "month_days_x1000": {
          "format": "int32",
          "title": "每月天数×1000（补差价行，展示用）| [EN] Month-days times 1000, for display",
          "type": "integer"
        },
        "months": {
          "format": "int32",
          "title": "月数（整月行）| [EN] Months, for whole-month lines",
          "type": "integer"
        },
        "net_amount_micro": {
          "format": "int64",
          "title": "折后金额 | [EN] Amount after discount",
          "type": "string"
        },
        "proration_days": {
          "format": "int32",
          "title": "计费天数（补差价行）| [EN] Days, for prorated lines",
          "type": "integer"
        },
        "qty": {
          "format": "int64",
          "title": "数量 | [EN] Quantity",
          "type": "string"
        },
        "resource_code": {
          "$ref": "#/definitions/configResourceCode",
          "title": "资源编码（资源位行有效）| [EN] Resource, for seat lines"
        },
        "unit_price_micro": {
          "format": "int64",
          "title": "单价 | [EN] Unit price",
          "type": "string"
        }
      },
      "title": "报价行\n[EN] One line of a quote",
      "type": "object"
    },
    "billingQuoteLineKind": {
      "default": "QUOTE_LINE_KIND_UNSPECIFIED",
      "description": "与订单行一一对应。days\u003e0 的行归「本期补差价」组，months\u003e0 的行归「购买 N 个月」组，\n前端就是按这个二分法分组展示的，所以同时带 months 与 days 的行不存在。\n\n[EN] Mirrors the order items. A row with days belongs to the proration group and a row with\nmonths to the purchase group, which is how the UI groups them, so no row carries both.\n\n - QUOTE_LINE_KIND_UNSPECIFIED: 未指定 | [EN] Unspecified\n - QUOTE_LINE_KIND_PLAN: 套餐费 | [EN] Plan fee\n - QUOTE_LINE_KIND_ADDON: 资源位加购 | [EN] Seat addon\n - QUOTE_LINE_KIND_ADDON_CREDIT: 抵扣（降级或减资源位）| [EN] Credit from a reduction",
      "enum": [
        "QUOTE_LINE_KIND_UNSPECIFIED",
        "QUOTE_LINE_KIND_PLAN",
        "QUOTE_LINE_KIND_ADDON",
        "QUOTE_LINE_KIND_ADDON_CREDIT"
      ],
      "title": "报价行的类型\n[EN] Quote line kind",
      "type": "string"
    },
    "billingQuoteResult": {
      "properties": {
        "discount_bp": {
          "format": "int32",
          "title": "本次适用折扣 | [EN] Discount applied",
          "type": "integer"
        },
        "effective_immediately": {
          "title": "是否立即生效（false = 期末生效）| [EN] Immediate, or at period end",
          "type": "boolean"
        },
        "lines": {
          "items": {
            "$ref": "#/definitions/billingQuoteLine",
            "type": "object"
          },
          "title": "报价行 | [EN] Lines",
          "type": "array"
        },
        "month_days_x1000": {
          "format": "int32",
          "title": "本期每月天数×1000 | [EN] This period's month-days times 1000",
          "type": "integer"
        },
        "monthly_subtotal_micro": {
          "format": "int64",
          "title": "整月组小计 | [EN] Whole-month subtotal",
          "type": "string"
        },
        "period_end_at": {
          "format": "date-time",
          "title": "变更后本期结束 | [EN] Period end after the change",
          "type": "string"
        },
        "period_start_at": {
          "format": "date-time",
          "title": "变更后本期开始 | [EN] Period start after the change",
          "type": "string"
        },
        "proration_subtotal_micro": {
          "format": "int64",
          "title": "补差价组小计（已钳到 ≥0）| [EN] Proration subtotal, clamped at zero",
          "type": "string"
        },
        "remaining_days": {
          "format": "int32",
          "title": "本期剩余天数 | [EN] Days left in the period",
          "type": "integer"
        },
        "summary": {
          "title": "中文摘要（订单标题与钱包流水用）| [EN] Summary used as the order title",
          "type": "string"
        },
        "total_amount_micro": {
          "format": "int64",
          "title": "合计 | [EN] Total",
          "type": "string"
        }
      },
      "title": "报价结果\n[EN] Quote result",
      "type": "object"
    },
    "billingRenewMode": {
      "default": "RENEW_MODE_UNSPECIFIED",
      "description": "- RENEW_MODE_UNSPECIFIED: 未指定 | [EN] Unspecified\n - RENEW_MODE_AUTO: 到期自动从钱包续费 | [EN] Automatically from the wallet at expiry\n - RENEW_MODE_MANUAL: 客户手动续费 | [EN] Renewed by the customer",
      "enum": [
        "RENEW_MODE_UNSPECIFIED",
        "RENEW_MODE_AUTO",
        "RENEW_MODE_MANUAL"
      ],
      "title": "续费方式\n[EN] How a renewal happened",
      "type": "string"
    },
    "billingResourceTarget": {
      "properties": {
        "resource_code": {
          "$ref": "#/definitions/configResourceCode",
          "title": "资源编码 | [EN] Resource code"
        },
        "target_qty": {
          "format": "int64",
          "maxLength": 100000,
          "minLength": 0,
          "title": "目标总量（内含 + 加购） | [EN] Target total, included plus addon",
          "type": "string"
        }
      },
      "required": [
        "resource_code"
      ],
      "title": "资源位的目标总量\n[EN] Target total for a seat resource",
      "type": "object"
    },
    "billingResourceUsage": {
      "description": "资源位（坐席、托管、官方账号）用 included / addon / used；额度（翻译字符、AI token）用 quota_* 与 overage_*\n[EN] Seats use included, addon and used; quotas (translation characters, AI tokens) use quota_* and overage_*",
      "properties": {
        "addon": {
          "format": "int64",
          "title": "已加购（资源位） | [EN] Purchased on top, for seats",
          "type": "string"
        },
        "addon_remaining": {
          "format": "int64",
          "title": "额度包剩余（额度类，永久有效） | [EN] Quota package balance, never expires",
          "type": "string"
        },
        "included": {
          "format": "int64",
          "title": "套餐内含（资源位） | [EN] Included by the plan, for seats",
          "type": "string"
        },
        "overage_fee_micro": {
          "format": "int64",
          "title": "本期超额费用 | [EN] Overage fee this period",
          "type": "string"
        },
        "overage_paused": {
          "title": "超额是否已暂停 | [EN] Whether overage is paused",
          "type": "boolean"
        },
        "overage_unit_price_micro": {
          "format": "int64",
          "title": "超额单价（每万单位） | [EN] Overage unit price per 10k units",
          "type": "string"
        },
        "paused_reason": {
          "$ref": "#/definitions/billingQuotaPausedReason",
          "title": "暂停原因 | [EN] Why it is paused"
        },
        "quota_remaining": {
          "format": "int64",
          "title": "本期剩余额度（额度类） | [EN] Quota left this period, for quotas",
          "type": "string"
        },
        "quota_total": {
          "format": "int64",
          "title": "本期额度总量（额度类） | [EN] Quota for this period, for quotas",
          "type": "string"
        },
        "resource_code": {
          "$ref": "#/definitions/configResourceCode",
          "title": "资源编码 | [EN] Resource code"
        },
        "scheduled_addon": {
          "format": "int64",
          "title": "期末生效后的加购量（资源位） | [EN] Addon after scheduled changes apply, for seats",
          "type": "string"
        },
        "scheduled_effective_at": {
          "format": "date-time",
          "title": "待生效变更的生效时间 | [EN] When the scheduled change applies",
          "type": "string"
        },
        "unit_price_micro": {
          "format": "int64",
          "title": "加购单价（资源位） | [EN] Addon unit price, for seats",
          "type": "string"
        },
        "used": {
          "format": "int64",
          "title": "已占用（拿不到时为空，界面显示 --） | [EN] In use; empty when unknown, shown as --",
          "type": "string"
        },
        "used_as_of": {
          "format": "date-time",
          "title": "占用数的时点 | [EN] Point in time of the usage count",
          "type": "string"
        }
      },
      "title": "一种资源的上限、占用与额度\n[EN] Limit, usage and quota of one resource",
      "type": "object"
    },
    "billingSeatTarget": {
      "description": "某类资源位的目标总数\n[EN] Target total for one resource\n填的是「变更后需要的总数」，不是增减量：界面上就是一个数字输入框，\n用增减量的话，同一个请求重试两次会加两次。\n[EN] The desired total rather than a delta, as the form is a single number field; a delta\nwould apply twice if the same request were retried.",
      "properties": {
        "resource_code": {
          "$ref": "#/definitions/configResourceCode",
          "title": "资源编码 | [EN] Resource code"
        },
        "target_total_qty": {
          "format": "int64",
          "maxLength": 100000,
          "minLength": 0,
          "title": "目标总数 | [EN] Desired total",
          "type": "string"
        }
      },
      "required": [
        "resource_code"
      ],
      "type": "object"
    },
    "billingStorageAllowance": {
      "properties": {
        "quota_gb": {
          "format": "int64",
          "title": "存储空间（GB） | [EN] Storage in GB",
          "type": "string"
        },
        "retention_days": {
          "format": "int32",
          "title": "会话附件保存天数 | [EN] Attachment retention in days",
          "type": "integer"
        }
      },
      "title": "存储空间：随套餐，试用期按试用设置（为 0 的项按免费版）\n[EN] Storage with the plan; during a trial the trial settings, a zero item falling back to the free plan",
      "type": "object"
    },
    "billingSubscriptionChangeApplyResponse": {
      "properties": {
        "subscription": {
          "$ref": "#/definitions/billingSubscriptionInfo",
          "title": "变更后的订阅 | [EN] Subscription after the change"
        }
      },
      "title": "应用零元变更响应\n[EN] Apply a zero-cost change response",
      "type": "object"
    },
    "billingSubscriptionChangeQuoteResponse": {
      "properties": {
        "quote": {
          "$ref": "#/definitions/billingQuoteResult",
          "title": "报价 | [EN] Quote"
        }
      },
      "title": "变更报价响应\n[EN] Change quote response",
      "type": "object"
    },
    "billingSubscriptionChangeType": {
      "default": "SUBSCRIPTION_CHANGE_TYPE_UNSPECIFIED",
      "description": "只有「对客户不利」的变更才延后到期末生效：降级、减资源位、改周期。\n升级与加资源位立即生效并按天补差价——让客户马上用上他刚付钱买的东西。\n\n[EN] Only changes that reduce what the customer has are deferred to the period end: a\ndowngrade, fewer seats, a different cycle. Upgrades and added seats take effect at once with\na prorated charge, so the customer gets what they just paid for immediately.\n\n - SUBSCRIPTION_CHANGE_TYPE_UNSPECIFIED: 未指定 | [EN] Unspecified\n - SUBSCRIPTION_CHANGE_TYPE_PLAN_UPGRADE: 升级套餐（立即）| [EN] Upgrade, immediate\n - SUBSCRIPTION_CHANGE_TYPE_PLAN_DOWNGRADE: 降级套餐（期末）| [EN] Downgrade, at period end\n - SUBSCRIPTION_CHANGE_TYPE_SEAT_INCREASE: 加资源位（立即）| [EN] More seats, immediate\n - SUBSCRIPTION_CHANGE_TYPE_SEAT_REDUCE: 减资源位（期末）| [EN] Fewer seats, at period end\n - SUBSCRIPTION_CHANGE_TYPE_CYCLE_CHANGE: 改付费周期（期末）| [EN] Change cycle, at period end\n - SUBSCRIPTION_CHANGE_TYPE_RENEW: 续费 | [EN] Renewal\n - SUBSCRIPTION_CHANGE_TYPE_NEW: 新购 | [EN] New purchase",
      "enum": [
        "SUBSCRIPTION_CHANGE_TYPE_UNSPECIFIED",
        "SUBSCRIPTION_CHANGE_TYPE_PLAN_UPGRADE",
        "SUBSCRIPTION_CHANGE_TYPE_PLAN_DOWNGRADE",
        "SUBSCRIPTION_CHANGE_TYPE_SEAT_INCREASE",
        "SUBSCRIPTION_CHANGE_TYPE_SEAT_REDUCE",
        "SUBSCRIPTION_CHANGE_TYPE_CYCLE_CHANGE",
        "SUBSCRIPTION_CHANGE_TYPE_RENEW",
        "SUBSCRIPTION_CHANGE_TYPE_NEW"
      ],
      "title": "待生效变更的类型\n[EN] Pending change type",
      "type": "string"
    },
    "billingSubscriptionEvent": {
      "properties": {
        "amount_micro": {
          "format": "int64",
          "title": "实付合计 | [EN] Paid in total",
          "type": "string"
        },
        "cancelled_plan": {
          "$ref": "#/definitions/billingEventPlan",
          "title": "原本要降到的套餐（撤销降级）| [EN] The target a cancelled downgrade would have reached"
        },
        "capacity_shrinks": {
          "title": "降级或到期降为免费后，附件保存天数或存储空间变小 | [EN] A downgrade or expiry leaves shorter retention or less storage",
          "type": "boolean"
        },
        "churn_reason": {
          "$ref": "#/definitions/billingChurnReason",
          "title": "流失原因（到期降为免费）| [EN] Churn reason, for expiry to free"
        },
        "cycle_months": {
          "format": "int32",
          "title": "周期月数；修改续费周期时为新周期 | [EN] Cycle in months; the new cycle for a cycle change",
          "type": "integer"
        },
        "due_micro": {
          "format": "int64",
          "title": "应扣金额（续费扣款失败）| [EN] Amount due, for a failed renewal",
          "type": "string"
        },
        "during_trial": {
          "title": "试用期内新购（试用随即结束）| [EN] Bought during the trial, which ends at once",
          "type": "boolean"
        },
        "effective_at": {
          "format": "date-time",
          "title": "生效时间（降级、减少资源位、撤销时为原定生效时间、修改续费周期；试用事件为试用结束，延长试用为新的结束）| [EN] When it applies: downgrades, reductions, the original date when cancelled, cycle changes; the trial end for trial events, the new end for an extension",
          "type": "string"
        },
        "event_type": {
          "$ref": "#/definitions/billingSubscriptionEventType",
          "title": "事件 | [EN] Event"
        },
        "expires_at": {
          "format": "date-time",
          "title": "关闭自动续费后到期降为免费的时间 | [EN] When auto-renewal off lets it expire to free",
          "type": "string"
        },
        "external_micro": {
          "format": "int64",
          "title": "第三方支付部分 | [EN] Paid through a third party",
          "type": "string"
        },
        "from_cycle_months": {
          "format": "int32",
          "title": "原续费周期（修改续费周期）| [EN] Previous renewal cycle, for a cycle change",
          "type": "integer"
        },
        "from_plan": {
          "$ref": "#/definitions/billingEventPlan",
          "title": "变更前套餐 | [EN] Plan before"
        },
        "had_trial": {
          "title": "新购前有过试用 | [EN] Had a trial before buying",
          "type": "boolean"
        },
        "id": {
          "title": "记录 ID | [EN] Record ID",
          "type": "string"
        },
        "occurred_at": {
          "format": "date-time",
          "title": "发生时间（降级与减少资源位为客户提交时间）| [EN] When it happened; submission time for downgrades and reductions",
          "type": "string"
        },
        "operator_id": {
          "title": "操作人（AC 身份主体 ID，系统任务为空）| [EN] Operator, an AC principal ID, empty for system jobs",
          "type": "string"
        },
        "operator_type": {
          "$ref": "#/definitions/billingChangeOperatorType",
          "title": "操作人类型 | [EN] Operator type"
        },
        "order_no": {
          "title": "支付订单号（含第三方支付才有）| [EN] Payment order number, only with a third-party part",
          "type": "string"
        },
        "org_id": {
          "title": "组织 ID | [EN] Organization ID",
          "type": "string"
        },
        "pay_method": {
          "$ref": "#/definitions/configPaymentMethod",
          "title": "第三方支付方式 | [EN] Third-party payment method"
        },
        "period_end_after": {
          "format": "date-time",
          "title": "本次之后的到期时间（新购、续费、开始试用）| [EN] Period end after this, for purchases, renewals and trial starts",
          "type": "string"
        },
        "prorate_days": {
          "format": "int32",
          "title": "按剩余几天补差价（升级、加购）| [EN] Days prorated, for upgrades and additions",
          "type": "integer"
        },
        "remark": {
          "title": "变更说明（运维操作，延长试用为延长原因）| [EN] Note, for ops changes; the reason for a trial extension",
          "type": "string"
        },
        "renew_mode": {
          "$ref": "#/definitions/billingRenewMode",
          "title": "续费方式 | [EN] Renewal mode"
        },
        "resource_code": {
          "$ref": "#/definitions/configResourceCode",
          "title": "资源位（加购、减少）| [EN] Seat resource, for additions and reductions"
        },
        "resource_qty": {
          "format": "int64",
          "title": "资源位增减数量 | [EN] Seats added or removed",
          "type": "string"
        },
        "to_plan": {
          "$ref": "#/definitions/billingEventPlan",
          "title": "变更后套餐 | [EN] Plan after"
        },
        "trial_plan": {
          "$ref": "#/definitions/billingEventPlan",
          "title": "试用权益套餐（试用事件）| [EN] Trial entitlement plan, for trial events"
        },
        "wallet_micro": {
          "format": "int64",
          "title": "钱包支付部分 | [EN] Paid from the wallet",
          "type": "string"
        },
        "workspace_id": {
          "title": "工作区 ID | [EN] Workspace ID",
          "type": "string"
        }
      },
      "title": "一条订阅变更\n[EN] One subscription change",
      "type": "object"
    },
    "billingSubscriptionEventCount": {
      "properties": {
        "count": {
          "format": "int32",
          "title": "条数 | [EN] Count",
          "type": "integer"
        },
        "event_type": {
          "$ref": "#/definitions/billingSubscriptionEventType",
          "title": "事件 | [EN] Event"
        }
      },
      "title": "一种事件的条数\n[EN] Count of one event type",
      "type": "object"
    },
    "billingSubscriptionEventFilter": {
      "description": "发生日期含首尾、最多 90 天\n[EN] Dates are inclusive, at most 90 days",
      "properties": {
        "end_date": {
          "title": "日期止（YYYY-MM-DD，含当天）| [EN] Last date, inclusive",
          "type": "string"
        },
        "event_type": {
          "$ref": "#/definitions/billingSubscriptionEventType",
          "title": "事件（汇总接口忽略）| [EN] Event; ignored by the summary"
        },
        "keyword": {
          "maxLength": 64,
          "title": "完整的组织 ID、工作区 ID 或订单号 | [EN] A full organization ID, workspace ID or order number",
          "type": "string"
        },
        "org_ids": {
          "items": {
            "maxLength": 64,
            "type": "string"
          },
          "maxItems": 100,
          "title": "组织（按名称在 AC 搜到的 ID）| [EN] Organizations, IDs found by name in AC",
          "type": "array"
        },
        "plan_code": {
          "maxLength": 32,
          "title": "套餐，匹配变更前或变更后 | [EN] Plan, matching before or after",
          "type": "string"
        },
        "start_date": {
          "title": "日期起（YYYY-MM-DD）| [EN] First date, YYYY-MM-DD",
          "type": "string"
        },
        "workspace_ids": {
          "items": {
            "maxLength": 64,
            "type": "string"
          },
          "maxItems": 100,
          "title": "工作区（按名称在 AC 搜到的 ID）| [EN] Workspaces, IDs found by name in AC",
          "type": "array"
        }
      },
      "required": [
        "start_date",
        "end_date"
      ],
      "title": "订阅变更的筛选条件\n[EN] Filters of subscription changes",
      "type": "object"
    },
    "billingSubscriptionEventListResponse": {
      "properties": {
        "list": {
          "items": {
            "$ref": "#/definitions/billingSubscriptionEvent",
            "type": "object"
          },
          "title": "变更 | [EN] Changes",
          "type": "array"
        },
        "page_response": {
          "$ref": "#/definitions/commonPaging",
          "title": "分页 | [EN] Paging"
        },
        "time_zone": {
          "title": "日期所用时区 | [EN] Time zone of the dates",
          "type": "string"
        }
      },
      "title": "订阅变更列表响应\n[EN] List subscription changes response",
      "type": "object"
    },
    "billingSubscriptionEventSummaryGetResponse": {
      "properties": {
        "amount_micro": {
          "format": "int64",
          "title": "实付合计 | [EN] Paid in total",
          "type": "string"
        },
        "churn_not_renewed": {
          "format": "int32",
          "title": "流失：未续费 | [EN] Churn, not renewed",
          "type": "integer"
        },
        "churn_renew_failed": {
          "format": "int32",
          "title": "流失：续费扣款失败 | [EN] Churn, renewal charge failed",
          "type": "integer"
        },
        "counts": {
          "items": {
            "$ref": "#/definitions/billingSubscriptionEventCount",
            "type": "object"
          },
          "title": "每种事件的条数（每种都给，没有的为 0）| [EN] Count of every event type, zeros included",
          "type": "array"
        },
        "external_micro": {
          "format": "int64",
          "title": "其中第三方 | [EN] Through third parties",
          "type": "string"
        },
        "new_during_trial": {
          "format": "int32",
          "title": "其中试用期内新购 | [EN] New purchases made during a trial",
          "type": "integer"
        },
        "renew_auto": {
          "format": "int32",
          "title": "其中自动续费 | [EN] Automatic renewals",
          "type": "integer"
        },
        "renew_manual": {
          "format": "int32",
          "title": "其中手动续费 | [EN] Manual renewals",
          "type": "integer"
        },
        "time_zone": {
          "title": "日期所用时区 | [EN] Time zone of the dates",
          "type": "string"
        },
        "total": {
          "format": "int32",
          "title": "记录数 | [EN] Records",
          "type": "integer"
        },
        "wallet_micro": {
          "format": "int64",
          "title": "其中钱包 | [EN] From the wallet",
          "type": "string"
        },
        "workspaces": {
          "format": "int32",
          "title": "涉及工作区数 | [EN] Workspaces involved",
          "type": "integer"
        }
      },
      "title": "订阅变更汇总响应\n[EN] Subscription change summary response",
      "type": "object"
    },
    "billingSubscriptionEventType": {
      "default": "SUBSCRIPTION_EVENT_TYPE_UNSPECIFIED",
      "description": "计费主体是工作区；降级与减少资源位按客户提交时间记、本期结束时生效；修改续费周期从下次续费起生效；\n流失 = 付费工作区到期降为免费（关闭自动续费未续费，或到期续费扣款失败）\n[EN] The billed entity is the workspace. Downgrades and seat reductions are recorded when submitted and apply at the\nperiod end; a renewal-cycle change applies from the next renewal; churn is a paid workspace dropping to free at\nexpiry, either not renewed or failing the renewal charge.\n\n - SUBSCRIPTION_EVENT_TYPE_UNSPECIFIED: 未指定 | [EN] Unspecified\n - SUBSCRIPTION_EVENT_TYPE_TRIAL_START: 开始试用 | [EN] Trial started\n - SUBSCRIPTION_EVENT_TYPE_TRIAL_END: 试用结束未付费 | [EN] Trial ended unpaid\n - SUBSCRIPTION_EVENT_TYPE_NEW: 新购 | [EN] New purchase\n - SUBSCRIPTION_EVENT_TYPE_RENEW: 续费（自动或手动）| [EN] Renewal, automatic or manual\n - SUBSCRIPTION_EVENT_TYPE_RENEW_FAILED: 续费扣款失败 | [EN] Renewal charge failed\n - SUBSCRIPTION_EVENT_TYPE_UPGRADE: 升级 | [EN] Upgrade\n - SUBSCRIPTION_EVENT_TYPE_DOWNGRADE_SCHEDULED: 降级（已安排）| [EN] Downgrade scheduled\n - SUBSCRIPTION_EVENT_TYPE_DOWNGRADE_EFFECTIVE: 降级（已生效）| [EN] Downgrade took effect\n - SUBSCRIPTION_EVENT_TYPE_DOWNGRADE_CANCELLED: 撤销降级 | [EN] Downgrade cancelled\n - SUBSCRIPTION_EVENT_TYPE_EXPIRED_FREE: 到期降为免费 | [EN] Expired to the free plan\n - SUBSCRIPTION_EVENT_TYPE_AUTO_RENEW_ON: 开启自动续费 | [EN] Auto-renewal on\n - SUBSCRIPTION_EVENT_TYPE_AUTO_RENEW_OFF: 关闭自动续费 | [EN] Auto-renewal off\n - SUBSCRIPTION_EVENT_TYPE_RENEW_CYCLE_CHANGED: 修改续费周期 | [EN] Renewal cycle changed\n - SUBSCRIPTION_EVENT_TYPE_ADDON_ADD: 加购资源位 | [EN] Seats added\n - SUBSCRIPTION_EVENT_TYPE_ADDON_REDUCE: 减少资源位 | [EN] Seats reduced\n - SUBSCRIPTION_EVENT_TYPE_ADDON_REDUCE_CANCELLED: 撤销减少资源位 | [EN] Seat reduction cancelled\n - SUBSCRIPTION_EVENT_TYPE_TRIAL_EXTEND: 运维延长试用 | [EN] Trial extended by an operator",
      "enum": [
        "SUBSCRIPTION_EVENT_TYPE_UNSPECIFIED",
        "SUBSCRIPTION_EVENT_TYPE_TRIAL_START",
        "SUBSCRIPTION_EVENT_TYPE_TRIAL_END",
        "SUBSCRIPTION_EVENT_TYPE_NEW",
        "SUBSCRIPTION_EVENT_TYPE_RENEW",
        "SUBSCRIPTION_EVENT_TYPE_RENEW_FAILED",
        "SUBSCRIPTION_EVENT_TYPE_UPGRADE",
        "SUBSCRIPTION_EVENT_TYPE_DOWNGRADE_SCHEDULED",
        "SUBSCRIPTION_EVENT_TYPE_DOWNGRADE_EFFECTIVE",
        "SUBSCRIPTION_EVENT_TYPE_DOWNGRADE_CANCELLED",
        "SUBSCRIPTION_EVENT_TYPE_EXPIRED_FREE",
        "SUBSCRIPTION_EVENT_TYPE_AUTO_RENEW_ON",
        "SUBSCRIPTION_EVENT_TYPE_AUTO_RENEW_OFF",
        "SUBSCRIPTION_EVENT_TYPE_RENEW_CYCLE_CHANGED",
        "SUBSCRIPTION_EVENT_TYPE_ADDON_ADD",
        "SUBSCRIPTION_EVENT_TYPE_ADDON_REDUCE",
        "SUBSCRIPTION_EVENT_TYPE_ADDON_REDUCE_CANCELLED",
        "SUBSCRIPTION_EVENT_TYPE_TRIAL_EXTEND"
      ],
      "title": "订阅变更事件（对齐控制台订阅页与购买页）\n[EN] Subscription change events, matching the console's subscription and purchase pages",
      "type": "string"
    },
    "billingSubscriptionGetResponse": {
      "properties": {
        "detail": {
          "$ref": "#/definitions/billingSubscriptionOpsDetail",
          "title": "运维工作区抽屉要的计费现状 | [EN] Billing state for the ops workspace drawer"
        },
        "subscription": {
          "$ref": "#/definitions/billingSubscriptionInfo",
          "title": "订阅信息 | [EN] Subscription"
        }
      },
      "title": "读取订阅响应\n[EN] Get subscription response",
      "type": "object"
    },
    "billingSubscriptionInfo": {
      "properties": {
        "auto_renew": {
          "title": "是否自动续费 | [EN] Whether it renews automatically",
          "type": "boolean"
        },
        "id": {
          "title": "订阅ID | [EN] Subscription ID",
          "type": "string"
        },
        "org_id": {
          "title": "组织ID | [EN] Organization ID",
          "type": "string"
        },
        "pending_changes": {
          "items": {
            "$ref": "#/definitions/billingPendingChange",
            "type": "object"
          },
          "title": "待生效变更 | [EN] Pending changes",
          "type": "array"
        },
        "period_end_at": {
          "format": "date-time",
          "title": "本期结束 | [EN] Period end",
          "type": "string"
        },
        "period_start_at": {
          "format": "date-time",
          "title": "本期开始 | [EN] Period start",
          "type": "string"
        },
        "plan": {
          "$ref": "#/definitions/billingPlanInfo",
          "title": "套餐详情（读接口填充）| [EN] Plan details, filled by reads"
        },
        "plan_code": {
          "title": "当前套餐编码 | [EN] Current plan code",
          "type": "string"
        },
        "purchase_cycle_months": {
          "format": "int32",
          "title": "本次购买周期 | [EN] Months purchased this time",
          "type": "integer"
        },
        "renew_cycle_months": {
          "format": "int32",
          "title": "续费周期 | [EN] Months to renew with",
          "type": "integer"
        },
        "seats": {
          "items": {
            "$ref": "#/definitions/billingSubscriptionSeat",
            "type": "object"
          },
          "title": "资源位 | [EN] Seats",
          "type": "array"
        },
        "status": {
          "$ref": "#/definitions/billingSubscriptionStatus",
          "title": "状态 | [EN] Status"
        },
        "trial_ends_at": {
          "format": "date-time",
          "title": "试用结束 | [EN] Trial end",
          "type": "string"
        },
        "trial_plan_code": {
          "description": "试用套餐编码（权益按它给）| [EN] Trial plan code providing entitlements",
          "title": "试用：订阅仍是免费版，只挂这三个字段\n[EN] A trial leaves the subscription on the free plan and only sets these",
          "type": "string"
        },
        "trial_started_at": {
          "format": "date-time",
          "title": "试用开始 | [EN] Trial start",
          "type": "string"
        },
        "version": {
          "format": "int32",
          "title": "行版本（变更时回传）| [EN] Row version, echoed on change",
          "type": "integer"
        },
        "workspace_id": {
          "title": "工作区ID | [EN] Workspace ID",
          "type": "string"
        }
      },
      "title": "订阅信息\n[EN] Subscription",
      "type": "object"
    },
    "billingSubscriptionOpsDetail": {
      "description": "都是本库现成的数据：续费金额随周期排期算好存着，月订阅收入按配置中心现价折算，用量取额度账户，降级取订阅变更记录；\n存储只给上限，已用量归存储服务\n[EN] All from data this service already keeps: the renewal amount is stored with the cycle schedule, the monthly\nrevenue is derived from current config-center prices, usage comes from the quota accounts and the downgrade from the\nchange records. Storage carries only the allowance; the amount used belongs to the storage service.",
      "properties": {
        "last_downgrade": {
          "$ref": "#/definitions/billingLastDowngrade",
          "title": "最近一次降级，没有为空 | [EN] The latest downgrade; empty when none"
        },
        "mrr_micro": {
          "format": "int64",
          "title": "月订阅收入 =（套餐月费 + 加购月费）×（1 − 本期购买周期的折扣），按现价；没有服务期为 0 | [EN] Monthly revenue, plan plus add-on monthly prices less the current purchase cycle's discount at current prices; zero without a period",
          "type": "string"
        },
        "quotas": {
          "items": {
            "$ref": "#/definitions/billingQuotaOverview",
            "type": "object"
          },
          "title": "额度类资源本期的用量、余量与超额暂停 | [EN] This period's usage, remainders and overage pause per quota resource",
          "type": "array"
        },
        "renewal_amount_micro": {
          "format": "int64",
          "title": "下期续费金额：按续费周期、期末生效后的套餐与资源位，没有可续的为 0 | [EN] Next renewal amount on the renewal cycle with scheduled changes applied; zero when nothing renews",
          "type": "string"
        },
        "storage": {
          "$ref": "#/definitions/billingStorageAllowance",
          "title": "存储空间与会话附件保存天数 | [EN] Storage allowance and attachment retention"
        },
        "trial_quota_caps": {
          "items": {
            "$ref": "#/definitions/billingQuotaCap",
            "type": "object"
          },
          "title": "试用期的额度（整段试用合计），不在试用为空 | [EN] Trial quota for the whole trial; empty when not on trial",
          "type": "array"
        }
      },
      "title": "运维读订阅时附带的计费现状\n[EN] Billing state returned with the ops subscription read",
      "type": "object"
    },
    "billingSubscriptionOverview": {
      "description": "降级返回而不是整体失败：钱包或用量暂时取不到时，其余部分照常给，degraded 标出缺了哪块\n[EN] Degrades instead of failing as a whole: when the wallet or usage is briefly unavailable the rest is still\nreturned and degraded names the missing parts",
      "properties": {
        "as_of": {
          "format": "date-time",
          "title": "数据时点 | [EN] Point in time of the data",
          "type": "string"
        },
        "degraded": {
          "items": {
            "type": "string"
          },
          "title": "本次没取到的部分：wallet / usage / seats | [EN] Parts that could not be loaded this time: wallet, usage or seats",
          "type": "array"
        },
        "next_renewal": {
          "$ref": "#/definitions/billingNextRenewal",
          "title": "下次续费 | [EN] Next renewal"
        },
        "resources": {
          "items": {
            "$ref": "#/definitions/billingResourceUsage",
            "type": "object"
          },
          "title": "各资源的上限、占用与额度 | [EN] Limits, usage and quota per resource",
          "type": "array"
        },
        "subscription": {
          "$ref": "#/definitions/billingSubscriptionInfo",
          "title": "当前订阅（含套餐详情与试用） | [EN] Current subscription with plan details and trial"
        },
        "wallet": {
          "$ref": "#/definitions/billingWalletSummary",
          "title": "钱包摘要 | [EN] Wallet summary"
        }
      },
      "title": "订阅总览\n[EN] Subscription overview",
      "type": "object"
    },
    "billingSubscriptionSeat": {
      "description": "total = included + addon，是「上限」而不是「占用数」：占用数（实际建了几个席位）\n归账号域管，本域只管客户买到了多少。两者混用会让「减资源位」把别人正在用的席位减掉。\n\n[EN] The total is a ceiling rather than a count in use: how many seats actually exist belongs\nto the account domain while this one only tracks what was bought. Confusing the two would let\na seat reduction remove seats somebody is working in.",
      "properties": {
        "addon_qty": {
          "format": "int64",
          "title": "加购 | [EN] Purchased on top",
          "type": "string"
        },
        "included_qty": {
          "format": "int64",
          "title": "套餐内含 | [EN] Included by the plan",
          "type": "string"
        },
        "resource_code": {
          "$ref": "#/definitions/configResourceCode",
          "title": "资源编码 | [EN] Resource code"
        },
        "total_qty": {
          "format": "int64",
          "title": "总量（内含 + 加购）| [EN] Total, included plus addon",
          "type": "string"
        }
      },
      "title": "订阅内含/加购的资源位\n[EN] A subscription's seats for one resource",
      "type": "object"
    },
    "billingSubscriptionStatus": {
      "default": "SUBSCRIPTION_STATUS_UNSPECIFIED",
      "description": "free 与 active 的区别不是「有没有付钱」，而是「有没有计费周期」：\n免费版加购了资源位也会有服务期和续费单，那时它仍是 free 但有 period_end_at。\n没有宽限期：到期没续上当场降为免费版，past_due 保留编号不再写入\n\n[EN] The difference between free and active is not whether money was paid but whether a\nbilling period exists: a free plan with purchased seats has a period and a renewal order\nwhile staying free. There is no grace: an unrenewed subscription drops to free at expiry, and\npast_due keeps its number but is never written.\n\n - SUBSCRIPTION_STATUS_UNSPECIFIED: 未指定 | [EN] Unspecified\n - SUBSCRIPTION_STATUS_FREE: 免费版（含试用中）| [EN] On the free plan, trials included\n - SUBSCRIPTION_STATUS_ACTIVE: 付费生效中 | [EN] Active paid subscription\n - SUBSCRIPTION_STATUS_PAST_DUE: 不再使用：没有宽限期 | [EN] Unused; there is no grace period",
      "enum": [
        "SUBSCRIPTION_STATUS_UNSPECIFIED",
        "SUBSCRIPTION_STATUS_FREE",
        "SUBSCRIPTION_STATUS_ACTIVE",
        "SUBSCRIPTION_STATUS_PAST_DUE"
      ],
      "title": "订阅状态\n[EN] Subscription status",
      "type": "string"
    },
    "billingTrialExtendResponse": {
      "properties": {
        "ends_at": {
          "format": "date-time",
          "title": "新的试用结束时间 | [EN] The new trial end",
          "type": "string"
        },
        "subscription": {
          "$ref": "#/definitions/billingSubscriptionInfo",
          "title": "延长后的订阅 | [EN] Subscription after the extension"
        }
      },
      "title": "延长试用响应\n[EN] Extend trial response",
      "type": "object"
    },
    "billingUsageDay": {
      "properties": {
        "active_members": {
          "format": "int32",
          "title": "当天有用量的成员数 | [EN] Members with usage that day",
          "type": "integer"
        },
        "date": {
          "title": "日期（YYYY-MM-DD，time_zone 下） | [EN] Date as YYYY-MM-DD in time_zone",
          "type": "string"
        },
        "qty": {
          "format": "int64",
          "title": "用量 | [EN] Usage",
          "type": "string"
        }
      },
      "title": "一天的用量\n[EN] Usage of one day",
      "type": "object"
    },
    "billingUsageRecord": {
      "description": "扣减顺序：套餐额度（按月重置）→ 加购额度（永久有效）→ 超额（从钱包扣费）；超额被暂停拦下的那部分不计入用量\n[EN] Deducted from the plan quota (monthly), then add-on quota (never expires), then overage charged to the wallet;\noverage refused while paused is not counted as usage",
      "properties": {
        "date": {
          "title": "日期（YYYY-MM-DD，time_zone 下）| [EN] Date as YYYY-MM-DD in time_zone",
          "type": "string"
        },
        "from_addon": {
          "format": "int64",
          "title": "加购额度 | [EN] From add-on quota",
          "type": "string"
        },
        "from_package": {
          "format": "int64",
          "title": "套餐额度 | [EN] From the plan quota",
          "type": "string"
        },
        "member_count": {
          "format": "int32",
          "title": "当天有用量的成员数 | [EN] Members with usage that day",
          "type": "integer"
        },
        "on_trial": {
          "title": "工作区当前在试用中 | [EN] Whether the workspace is on a trial now",
          "type": "boolean"
        },
        "org_id": {
          "title": "组织 ID | [EN] Organization ID",
          "type": "string"
        },
        "overage_fee_micro": {
          "format": "int64",
          "title": "超额扣费（钱包实扣）| [EN] Overage charged to the wallet",
          "type": "string"
        },
        "overage_qty": {
          "format": "int64",
          "title": "超额 | [EN] Overage",
          "type": "string"
        },
        "paused_reason": {
          "$ref": "#/definitions/billingQuotaPausedReason",
          "title": "当天有超额被暂停拦下时的原因 | [EN] Why overage was refused that day, when it was"
        },
        "plan_code": {
          "title": "工作区当前套餐 | [EN] The workspace's current plan",
          "type": "string"
        },
        "qty": {
          "format": "int64",
          "title": "用量（套餐 + 加购 + 超额）| [EN] Usage: plan plus add-on plus overage",
          "type": "string"
        },
        "wallet_available_micro": {
          "format": "int64",
          "title": "工作区现在的钱包可用余额（只给暂停的行，钱包取不到时为空）| [EN] The workspace's available wallet balance now, on paused rows only, empty when the wallet is unreachable",
          "type": "string"
        },
        "workspace_id": {
          "title": "工作区 ID | [EN] Workspace ID",
          "type": "string"
        }
      },
      "title": "一天一个工作区的用量\n[EN] One workspace's usage on one day",
      "type": "object"
    },
    "billingUsageRecordFilter": {
      "description": "日期含首尾、最多 31 天\n[EN] Dates are inclusive, at most 31 days",
      "properties": {
        "end_date": {
          "title": "日期止（YYYY-MM-DD，含当天）| [EN] Last date, inclusive",
          "type": "string"
        },
        "keyword": {
          "maxLength": 64,
          "title": "完整的组织 ID 或工作区 ID | [EN] A full organization or workspace ID",
          "type": "string"
        },
        "only": {
          "$ref": "#/definitions/billingUsageRecordOnly",
          "title": "只看超额或只看暂停（汇总接口忽略）| [EN] Overage-only or paused-only; ignored by the summary"
        },
        "org_ids": {
          "items": {
            "maxLength": 64,
            "type": "string"
          },
          "maxItems": 100,
          "title": "组织（按名称在 AC 搜到的 ID）| [EN] Organizations, IDs found by name in AC",
          "type": "array"
        },
        "resource_code": {
          "$ref": "#/definitions/configResourceCode",
          "title": "用量类型：翻译字符或 AI token | [EN] Usage kind: translation characters or AI tokens"
        },
        "start_date": {
          "title": "日期起（YYYY-MM-DD）| [EN] First date, YYYY-MM-DD",
          "type": "string"
        },
        "workspace_ids": {
          "items": {
            "maxLength": 64,
            "type": "string"
          },
          "maxItems": 100,
          "title": "工作区（按名称在 AC 搜到的 ID）| [EN] Workspaces, IDs found by name in AC",
          "type": "array"
        }
      },
      "required": [
        "resource_code",
        "start_date",
        "end_date"
      ],
      "title": "用量记录的筛选条件\n[EN] Filters of usage records",
      "type": "object"
    },
    "billingUsageRecordListResponse": {
      "properties": {
        "list": {
          "items": {
            "$ref": "#/definitions/billingUsageRecord",
            "type": "object"
          },
          "title": "用量 | [EN] Usage rows",
          "type": "array"
        },
        "overage_unit_price_micro": {
          "format": "int64",
          "title": "当前超额单价（每万单位）| [EN] Current overage unit price per 10k units",
          "type": "string"
        },
        "page_response": {
          "$ref": "#/definitions/commonPaging",
          "title": "分页 | [EN] Paging"
        },
        "time_zone": {
          "title": "日期所用时区 | [EN] Time zone of the dates",
          "type": "string"
        }
      },
      "title": "用量记录列表响应\n[EN] List usage records response",
      "type": "object"
    },
    "billingUsageRecordOnly": {
      "default": "USAGE_RECORD_ONLY_UNSPECIFIED",
      "description": "- USAGE_RECORD_ONLY_UNSPECIFIED: 全部 | [EN] All rows\n - USAGE_RECORD_ONLY_OVERAGE: 只看有超额的 | [EN] Rows with overage\n - USAGE_RECORD_ONLY_PAUSED: 只看超额被暂停拦下的 | [EN] Rows where overage was refused while paused",
      "enum": [
        "USAGE_RECORD_ONLY_UNSPECIFIED",
        "USAGE_RECORD_ONLY_OVERAGE",
        "USAGE_RECORD_ONLY_PAUSED"
      ],
      "title": "用量记录只看某一类行\n[EN] Restricting usage records to one kind of row",
      "type": "string"
    },
    "billingUsageRecordSummaryGetResponse": {
      "properties": {
        "from_addon": {
          "format": "int64",
          "title": "其中加购额度 | [EN] From add-on quota",
          "type": "string"
        },
        "from_package": {
          "format": "int64",
          "title": "其中套餐额度 | [EN] From plan quota",
          "type": "string"
        },
        "overage_fee_micro": {
          "format": "int64",
          "title": "超额扣费合计 | [EN] Overage charged",
          "type": "string"
        },
        "overage_qty": {
          "format": "int64",
          "title": "其中超额 | [EN] Overage",
          "type": "string"
        },
        "overage_rows": {
          "format": "int32",
          "title": "有超额的行数 | [EN] Rows with overage",
          "type": "integer"
        },
        "paused_rows": {
          "format": "int32",
          "title": "超额被暂停拦下的行数 | [EN] Rows with overage refused while paused",
          "type": "integer"
        },
        "paused_workspaces": {
          "format": "int32",
          "title": "超额被暂停拦下的工作区数 | [EN] Workspaces with overage refused while paused",
          "type": "integer"
        },
        "qty": {
          "format": "int64",
          "title": "用量合计 | [EN] Usage in total",
          "type": "string"
        },
        "time_zone": {
          "title": "日期所用时区 | [EN] Time zone of the dates",
          "type": "string"
        },
        "workspaces": {
          "format": "int32",
          "title": "有用量的工作区数 | [EN] Workspaces with usage",
          "type": "integer"
        }
      },
      "title": "用量记录汇总响应\n[EN] Usage record summary response",
      "type": "object"
    },
    "billingWalletSummary": {
      "properties": {
        "available_micro": {
          "format": "int64",
          "title": "可用 | [EN] Available",
          "type": "string"
        },
        "balance_micro": {
          "format": "int64",
          "title": "充值余额 | [EN] Top-up balance",
          "type": "string"
        },
        "gift_balance_micro": {
          "format": "int64",
          "title": "赠金余额 | [EN] Gift balance",
          "type": "string"
        },
        "locked_micro": {
          "format": "int64",
          "title": "锁定中 | [EN] Held for pending orders",
          "type": "string"
        },
        "low_balance_alert_enabled": {
          "title": "是否开启低余额提醒 | [EN] Whether the low-balance alert is on",
          "type": "boolean"
        },
        "low_balance_threshold_micro": {
          "format": "int64",
          "title": "低余额提醒阈值 | [EN] Low-balance alert threshold",
          "type": "string"
        },
        "month_recharge_micro": {
          "format": "int64",
          "title": "本月充值 | [EN] Topped up this month",
          "type": "string"
        },
        "month_spend_micro": {
          "format": "int64",
          "title": "本月支出（已付订单含第三方部分 + 超额扣费） | [EN] Spent this month: paid orders including third-party parts, plus overage",
          "type": "string"
        }
      },
      "title": "钱包摘要\n[EN] Wallet summary",
      "type": "object"
    },
    "billingWorkspaceConsumption": {
      "properties": {
        "balance_micro": {
          "format": "int64",
          "title": "充值余额 | [EN] Top-up balance",
          "type": "string"
        },
        "gift_balance_micro": {
          "format": "int64",
          "title": "赠金余额 | [EN] Gift balance",
          "type": "string"
        },
        "locked_micro": {
          "format": "int64",
          "title": "锁定中 | [EN] Held for pending orders",
          "type": "string"
        },
        "low_balance": {
          "title": "是否低于提醒阈值（余额 + 赠金 − 锁定 \u003c 阈值） | [EN] Whether balance plus gift minus held is below the threshold",
          "type": "boolean"
        },
        "month_spend_micro": {
          "format": "int64",
          "title": "本月支出 | [EN] Spent this month",
          "type": "string"
        },
        "period_end_at": {
          "format": "date-time",
          "title": "本期结束 | [EN] Period end",
          "type": "string"
        },
        "plan": {
          "$ref": "#/definitions/billingPlanRef",
          "title": "当前套餐 | [EN] Current plan"
        },
        "status": {
          "$ref": "#/definitions/billingSubscriptionStatus",
          "title": "订阅状态 | [EN] Subscription status"
        },
        "workspace_id": {
          "title": "工作区ID（名字由前端用 AC 工作区列表映射） | [EN] Workspace ID; names come from the AC workspace list",
          "type": "string"
        }
      },
      "title": "一个工作区的消费\n[EN] One workspace's consumption",
      "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"
    },
    "configAddonPrice": {
      "properties": {
        "resource_code": {
          "$ref": "#/definitions/configResourceCode",
          "title": "资源编码 | [EN] Resource code"
        },
        "unit_price_micro": {
          "format": "int64",
          "title": "单价（每个 / 月）| [EN] Unit price per unit per month",
          "type": "string"
        }
      },
      "title": "资源位加购单价\n[EN] Addon unit price of a seat resource\n固定单价、不分阶梯：长期优惠只通过付费周期折扣体现，两处都打折会让\n「年付 + 大量加购」的实付价算出两个口径。\n[EN] A flat unit price with no tiers: long-term discounting happens only through the billing\ncycle, because discounting in both places gives \"annual plus many seats\" two different totals",
      "type": "object"
    },
    "configBillingTrial": {
      "properties": {
        "agent_seat_limit": {
          "format": "int64",
          "title": "试用期内含成员席位 | [EN] Agent seats during the trial",
          "type": "string"
        },
        "ai_token_cap": {
          "format": "int64",
          "title": "试用期 AI token 上限（合计）| [EN] Total AI tokens for the trial",
          "type": "string"
        },
        "days": {
          "format": "int32",
          "title": "试用天数 | [EN] Trial length in days",
          "type": "integer"
        },
        "enabled": {
          "title": "是否启用 | [EN] Whether offered",
          "type": "boolean"
        },
        "hosted_account_limit": {
          "format": "int64",
          "title": "试用期内含云托管账号 | [EN] Hosted accounts during the trial",
          "type": "string"
        },
        "official_account_limit": {
          "format": "int64",
          "title": "试用期内含官方渠道账号 | [EN] Official accounts during the trial",
          "type": "string"
        },
        "plan_code": {
          "title": "试用套餐（只提供功能权益）| [EN] Trial plan, providing entitlements only",
          "type": "string"
        },
        "storage_quota_gb": {
          "format": "int64",
          "title": "试用期存储空间（GB），0 表示沿用免费版 | [EN] Trial storage in GB, 0 falls back to the free plan",
          "type": "string"
        },
        "storage_retention_days": {
          "format": "int32",
          "title": "试用期存储周期（天），0 表示沿用免费版 | [EN] Trial retention in days, 0 falls back to the free plan",
          "type": "integer"
        },
        "translation_char_cap": {
          "format": "int64",
          "title": "试用期翻译字符上限（合计）| [EN] Total translation characters for the trial",
          "type": "string"
        }
      },
      "title": "免费试用；启用时试用套餐必须在售、是付费套餐，内含资源位不少于免费版\n[EN] The free trial; when enabled its plan must be on sale and paid, with no fewer seats than the free plan",
      "type": "object"
    },
    "configConfigChangeType": {
      "default": "CONFIG_CHANGE_TYPE_UNSPECIFIED",
      "description": "- CONFIG_CHANGE_TYPE_UNSPECIFIED: 未指定 | [EN] Unspecified\n - CONFIG_CHANGE_TYPE_SEED: 首次初始化 | [EN] Initial seed\n - CONFIG_CHANGE_TYPE_SAVE: 整份保存 | [EN] Whole-document save\n - CONFIG_CHANGE_TYPE_PATCH: 按条目增删改 | [EN] Per-entry patch\n - CONFIG_CHANGE_TYPE_RESTORE: 回滚：旧 revision 的内容发布成新 revision | [EN] Rollback\n - CONFIG_CHANGE_TYPE_IMPORT: 从旧系统导入 | [EN] Imported from the legacy system",
      "enum": [
        "CONFIG_CHANGE_TYPE_UNSPECIFIED",
        "CONFIG_CHANGE_TYPE_SEED",
        "CONFIG_CHANGE_TYPE_SAVE",
        "CONFIG_CHANGE_TYPE_PATCH",
        "CONFIG_CHANGE_TYPE_RESTORE",
        "CONFIG_CHANGE_TYPE_IMPORT"
      ],
      "title": "变更类型 | [EN] Change type",
      "type": "string"
    },
    "configConfigDocument": {
      "description": "文档由 key 寻址，key 是层级路径，例如 platform/channels、platform/translation、\nplatform/translation/credentials、platform/phone-regions、platform/dictionaries、billing/config。\n任何服务都可以用新 key 保存自己的配置，不需要改本协议；服务端按 key 或前缀挂 schema、公开投影与敏感策略。\n字段名按 proto 的 snake_case 写；内置 key 的 payload 会先解成强类型消息校验，未注册的 key 按 JSON 原样保存。\n\n[EN] One configuration document: payload is the document's own JSON object and schema optionally identifies its\nvalidation rules. Documents are addressed by key, a hierarchical path such as platform/channels,\nplatform/translation, platform/translation/credentials, platform/phone-regions, platform/dictionaries or\nbilling/config. Any service may save configuration under a new key without changing this contract; the server\nattaches schemas, public projections and sensitive policies by key or prefix. Keys use proto snake_case; built-in\nkeys are decoded into typed messages for validation, while unregistered keys are stored as JSON as-is.",
      "properties": {
        "payload": {
          "title": "这份配置的 JSON 对象 | [EN] The document's JSON object",
          "type": "object"
        },
        "schema": {
          "title": "校验规则标识，可空 | [EN] Optional validation schema identifier",
          "type": "string"
        }
      },
      "title": "一份配置文档：payload 是这份配置自己的 JSON 对象，schema 可选标识校验规则。",
      "type": "object"
    },
    "configCycleDiscount": {
      "properties": {
        "cycle_months": {
          "format": "int32",
          "title": "周期月数 | [EN] Cycle length in months",
          "type": "integer"
        },
        "discount_bp": {
          "format": "int32",
          "title": "折扣（基点，2000 = 省 20%）| [EN] Discount in basis points, 2000 means 20% off",
          "type": "integer"
        },
        "enabled": {
          "title": "是否开放（月付恒开放）| [EN] Whether offered; monthly is always on",
          "type": "boolean"
        }
      },
      "title": "付费周期折扣\n[EN] Billing cycle discount\n折扣作用于套餐费与资源位加购，不作用于额度包：额度包是一次性买断、永久有效，\n它没有「付得久」这件事，再打折等于白送。\n[EN] The discount applies to the plan fee and seat addons but never to quota packages: a\npackage is a one-off purchase that never expires, so there is no \"paying for longer\" to\nreward and a discount there is simply a giveaway",
      "type": "object"
    },
    "configEntitlementGroup": {
      "default": "ENTITLEMENT_GROUP_UNSPECIFIED",
      "description": "- ENTITLEMENT_GROUP_UNSPECIFIED: 未指定 | [EN] Unspecified\n - ENTITLEMENT_GROUP_TRANSLATION: 翻译 | [EN] Translation\n - ENTITLEMENT_GROUP_EFFICIENCY: 效率 | [EN] Efficiency\n - ENTITLEMENT_GROUP_DATA: 数据 | [EN] Data\n - ENTITLEMENT_GROUP_GOVERNANCE: 管控 | [EN] Governance\n - ENTITLEMENT_GROUP_OPEN: 开放 | [EN] Open platform\n - ENTITLEMENT_GROUP_SERVICE: 服务 | [EN] Service",
      "enum": [
        "ENTITLEMENT_GROUP_UNSPECIFIED",
        "ENTITLEMENT_GROUP_TRANSLATION",
        "ENTITLEMENT_GROUP_EFFICIENCY",
        "ENTITLEMENT_GROUP_DATA",
        "ENTITLEMENT_GROUP_GOVERNANCE",
        "ENTITLEMENT_GROUP_OPEN",
        "ENTITLEMENT_GROUP_SERVICE"
      ],
      "title": "功能权益分组\n[EN] Entitlement group\n展示顺序 = 本枚举的固定顺序 + 组内 sort_no 升序，超管只能改组内排序，不能改组的先后。\n[EN] Display order is this enum's fixed order plus sort_no within the group; the console can\nreorder inside a group but not the groups themselves",
      "type": "string"
    },
    "configEntitlementValueType": {
      "default": "ENTITLEMENT_VALUE_TYPE_UNSPECIFIED",
      "description": "- ENTITLEMENT_VALUE_TYPE_UNSPECIFIED: 未指定 | [EN] Unspecified\n - ENTITLEMENT_VALUE_TYPE_BOOLEAN: 开关 | [EN] Boolean switch\n - ENTITLEMENT_VALUE_TYPE_NUMBER: 数量 | [EN] Numeric amount",
      "enum": [
        "ENTITLEMENT_VALUE_TYPE_UNSPECIFIED",
        "ENTITLEMENT_VALUE_TYPE_BOOLEAN",
        "ENTITLEMENT_VALUE_TYPE_NUMBER"
      ],
      "title": "功能权益取值类型\n[EN] Entitlement value type\n决定矩阵里这一行渲染成开关还是数字输入框，也决定 plan_entitlements 用哪一列存值。\n[EN] Decides whether the matrix row renders as a switch or a number input, and which column\nof plan_entitlements holds the value",
      "type": "string"
    },
    "configPaymentMethod": {
      "default": "PAYMENT_METHOD_UNSPECIFIED",
      "description": "支付方式\n[EN] Payment method\n对公转账是线下到账，只能用于充值，不能用于下单支付——\n订单要即时确认才能开通服务，而转账到账要人工核对。\n[EN] A bank transfer settles offline and is for top-ups only, never order payment: an order\nmust confirm immediately to provision the service, while a transfer needs manual checking.\n\n - PAYMENT_METHOD_UNSPECIFIED: 未指定 | [EN] Unspecified\n - PAYMENT_METHOD_CARD: 银行卡 | [EN] Card\n - PAYMENT_METHOD_WECHAT: 微信支付 | [EN] WeChat Pay\n - PAYMENT_METHOD_ALIPAY: 支付宝 | [EN] Alipay\n - PAYMENT_METHOD_PAYPAL: PayPal | [EN] PayPal\n - PAYMENT_METHOD_CRYPTO: 虚拟币 | [EN] Crypto\n - PAYMENT_METHOD_TRANSFER: 对公转账（仅充值）| [EN] Bank transfer, top-up only",
      "enum": [
        "PAYMENT_METHOD_UNSPECIFIED",
        "PAYMENT_METHOD_CARD",
        "PAYMENT_METHOD_WECHAT",
        "PAYMENT_METHOD_ALIPAY",
        "PAYMENT_METHOD_PAYPAL",
        "PAYMENT_METHOD_CRYPTO",
        "PAYMENT_METHOD_TRANSFER"
      ],
      "type": "string"
    },
    "configPlanColor": {
      "default": "PLAN_COLOR_UNSPECIFIED",
      "description": "- PLAN_COLOR_UNSPECIFIED: 未指定 | [EN] Unspecified\n - PLAN_COLOR_GRAY: 灰 | [EN] Gray\n - PLAN_COLOR_BLUE: 蓝 | [EN] Blue\n - PLAN_COLOR_GREEN: 绿 | [EN] Green\n - PLAN_COLOR_PURPLE: 紫 | [EN] Purple\n - PLAN_COLOR_ORANGE: 橙 | [EN] Orange",
      "enum": [
        "PLAN_COLOR_UNSPECIFIED",
        "PLAN_COLOR_GRAY",
        "PLAN_COLOR_BLUE",
        "PLAN_COLOR_GREEN",
        "PLAN_COLOR_PURPLE",
        "PLAN_COLOR_ORANGE"
      ],
      "title": "套餐标识色\n[EN] Plan accent color\n五选一的枚举而不是自由色值：客户端按它渲染套餐卡顶部与套餐胶囊，\n颜色类名在前端，后端只存 key存自由色值的话，前端要么做映射要么内联样式，\n换主题时后端数据就成了硬编码的一部分。\n[EN] A five-way enum rather than a free-form color: the client renders the plan card header\nand the plan pill from it, the class names live in the frontend and the backend stores only\nthe key. A free-form value would force the frontend into either a mapping or inline styles,\nand a theme change would then have to reach into backend data",
      "type": "string"
    },
    "configPlanFeature": {
      "description": "按「条」分组而不是按语言分组：编辑抽屉里一次编辑的单元是「第 N 条卖点」，\n中英文在同一行填写。若改成 features_zh / features_en 两个平行数组，\n两边长度与顺序就得靠调用方自己对齐——少一条、错一位都不会报错，\n只会让某个语言的第 3 条卖点变成另一句话。\n\n[EN] Grouped per point rather than per language, because the unit edited in the drawer is\n\"selling point N\", with every language filled on one row. Two parallel arrays would leave\ntheir length and order for the caller to keep in sync, and a missing or shifted entry would\nnot raise anything — it would just make the third point read differently in one language.",
      "properties": {
        "text": {
          "items": {
            "$ref": "#/definitions/commonLocalizedText",
            "type": "object"
          },
          "title": "该条卖点的各语言文本 | [EN] This point's text per language",
          "type": "array"
        }
      },
      "title": "一条卖点的多语言文本\n[EN] One selling point across languages",
      "type": "object"
    },
    "configPlanQuota": {
      "properties": {
        "included_qty": {
          "format": "int64",
          "title": "内含数量 | [EN] Included quantity",
          "type": "string"
        },
        "resource_code": {
          "$ref": "#/definitions/configResourceCode",
          "title": "资源编码 | [EN] Resource code"
        }
      },
      "title": "套餐内含资源位或额度\n[EN] Plan included seat or quota\n资源位与额度同表存储，靠 resource_code 区分：前者按「个」，后者按单位量。\n[EN] Seats and quotas share one table and are told apart by resource_code: the former counts\nunits, the latter counts amounts",
      "type": "object"
    },
    "configPlanStatus": {
      "default": "PLAN_STATUS_UNSPECIFIED",
      "description": "- PLAN_STATUS_UNSPECIFIED: 未指定 | [EN] Unspecified\n - PLAN_STATUS_ON_SALE: 在售 | [EN] On sale\n - PLAN_STATUS_OFF_SALE: 已下架 | [EN] Off sale",
      "enum": [
        "PLAN_STATUS_UNSPECIFIED",
        "PLAN_STATUS_ON_SALE",
        "PLAN_STATUS_OFF_SALE"
      ],
      "title": "套餐售卖状态\n[EN] Plan sale status\n新建套餐一律落 OFF_SALE，不接受「创建即上架」：套餐一旦上架客户就能下单，\n而价格、内含额度、权益三块要分几次才填得完，中间任何一刻被下单都是真金白银的错价。\n[EN] A new plan is always created OFF_SALE; \"create and list in one go\" is not accepted.\nOnce on sale a customer can order, yet price, included quota and entitlements take several\npasses to fill in, and an order landing mid-way is a real mispricing",
      "type": "string"
    },
    "configQuotaPackageConfig": {
      "properties": {
        "min_amount": {
          "format": "int64",
          "title": "起购量 | [EN] Minimum purchase amount",
          "type": "string"
        },
        "overage_unit_price_micro": {
          "format": "int64",
          "title": "超额单价（每万单位）| [EN] Overage unit price per 10k units",
          "type": "string"
        },
        "preset_amounts": {
          "items": {
            "format": "int64",
            "type": "string"
          },
          "title": "快捷购买量（客户加购页的快捷选项）| [EN] Quick-pick amounts shown on the purchase page",
          "type": "array"
        },
        "price_unit": {
          "format": "int64",
          "title": "计价单位（如每 100 万字符）| [EN] Pricing unit, e.g. per 1,000,000 characters",
          "type": "string"
        },
        "resource_code": {
          "$ref": "#/definitions/configResourceCode",
          "title": "资源编码 | [EN] Resource code"
        },
        "step_amount": {
          "format": "int64",
          "title": "购买步长 | [EN] Purchase step",
          "type": "string"
        },
        "tiers": {
          "items": {
            "$ref": "#/definitions/configQuotaPackageTier",
            "type": "object"
          },
          "title": "阶梯价（按起始量升序）| [EN] Pricing tiers, ascending by floor",
          "type": "array"
        }
      },
      "title": "额度包配置\n[EN] Quota package configuration",
      "type": "object"
    },
    "configQuotaPackageTier": {
      "properties": {
        "min_amount": {
          "format": "int64",
          "title": "起始购买量 | [EN] Minimum purchase amount of this tier",
          "type": "string"
        },
        "unit_price_micro": {
          "format": "int64",
          "title": "单价（每计价单位）| [EN] Unit price per pricing unit",
          "type": "string"
        }
      },
      "title": "额度包阶梯档位\n[EN] Quota package pricing tier\nmin_amount 是绝对起始量，不是区间：整单按「起始量不超过购买量」的最高档计价，\n不是分段累加。档数不固定，超管可增删，所以不要把档数写进代码常量。\n[EN] min_amount is an absolute floor, not a bracket: the whole order is priced at the highest\ntier whose floor does not exceed the purchased amount, rather than summing per bracket. The\nnumber of tiers is not fixed and the console may add or remove them, so never hard-code it",
      "type": "object"
    },
    "configResourceCode": {
      "default": "RESOURCE_CODE_UNSPECIFIED",
      "description": "- RESOURCE_CODE_UNSPECIFIED: 未指定 | [EN] Unspecified\n - RESOURCE_CODE_AGENT_SEAT: 成员席位 | [EN] Agent seat\n - RESOURCE_CODE_HOSTED_ACCOUNT: 云托管账号 | [EN] Hosted account\n - RESOURCE_CODE_OFFICIAL_ACCOUNT: 官方渠道账号 | [EN] Official channel account\n - RESOURCE_CODE_TRANSLATION_CHARS: 翻译字符 | [EN] Translation characters\n - RESOURCE_CODE_AI_TOKENS: AI token | [EN] AI tokens",
      "enum": [
        "RESOURCE_CODE_UNSPECIFIED",
        "RESOURCE_CODE_AGENT_SEAT",
        "RESOURCE_CODE_HOSTED_ACCOUNT",
        "RESOURCE_CODE_OFFICIAL_ACCOUNT",
        "RESOURCE_CODE_TRANSLATION_CHARS",
        "RESOURCE_CODE_AI_TOKENS"
      ],
      "title": "计费资源编码\n[EN] Billable resource code\n前三项按「个」计的资源位（可加购、按月续费），后两项按量计的额度（可买额度包、可超额）。\n两类放在一个枚举里是因为它们在 plan_quotas 同表存储，靠本字段区分。\n[EN] The first three are per-seat resources billed monthly and the last two are metered\nquotas sold in packages with overage. Both live in one enum because plan_quotas stores them\nin a single table keyed by this field",
      "type": "string"
    },
    "configTranslationMetering": {
      "description": "语音与图片没有「字符数」这个天然单位，但扣费要和文本统一口径，\n所以折算成字符：语音按秒、图片按张。折算比例由平台定，客户侧只看到最终字符数。\n改这两个值只对之后产生的用量生效，已计量的历史用量不重算——\n重算会让客户已经看到的账单数字变化。\n\n[EN] Voice and images have no natural character count, yet billing must share one unit with\ntext, so they are converted: voice per second and images per image. A change applies only to\nusage recorded afterwards, since recomputing would alter bill figures customers have seen.",
      "properties": {
        "image_chars_per_image": {
          "format": "int32",
          "title": "图片每张折算字符数 | [EN] Characters per image",
          "type": "integer"
        },
        "voice_chars_per_second": {
          "format": "int32",
          "title": "语音每秒折算字符数 | [EN] Characters per second of voice",
          "type": "integer"
        }
      },
      "title": "翻译计量规则\n[EN] Translation metering rules",
      "type": "object"
    },
    "config_centerDocumentInfo": {
      "properties": {
        "content_hash": {
          "title": "内容哈希 | [EN] Content hash",
          "type": "string"
        },
        "key": {
          "title": "文档键 | [EN] Document key",
          "type": "string"
        },
        "public": {
          "title": "有公开投影：浏览器可读 | [EN] Has a public projection readable by browsers",
          "type": "boolean"
        },
        "restricted": {
          "title": "敏感文档：只能走 sensitive 路由 | [EN] Sensitive document, reachable only through sensitive routes",
          "type": "boolean"
        },
        "revision": {
          "format": "int64",
          "title": "当前 revision，0 表示还没有内容 | [EN] Current revision, 0 when empty",
          "type": "string"
        },
        "schema": {
          "title": "校验规则标识 | [EN] Validation schema identifier",
          "type": "string"
        },
        "updated_at": {
          "format": "date-time",
          "title": "最后修改时间 | [EN] Last modified at",
          "type": "string"
        },
        "updated_by": {
          "title": "最后修改人 | [EN] Last modified by",
          "type": "string"
        },
        "writable": {
          "title": "能否整份保存 | [EN] Whether whole-document saves are allowed",
          "type": "boolean"
        }
      },
      "title": "一份文档的概况 | [EN] A document's overview",
      "type": "object"
    },
    "config_centerOpsDocumentGetResponse": {
      "properties": {
        "document": {
          "$ref": "#/definitions/configConfigDocument",
          "title": "内容；敏感字段只有指纹 | [EN] Content, secrets as fingerprints only"
        },
        "info": {
          "$ref": "#/definitions/config_centerDocumentInfo",
          "title": "概况（revision 即保存时要回传的 expected_revision）| [EN] Overview"
        }
      },
      "title": "读文档响应 | [EN] Get document response",
      "type": "object"
    },
    "config_centerOpsDocumentHistoryResponse": {
      "properties": {
        "items": {
          "items": {
            "$ref": "#/definitions/config_centerRevisionInfo",
            "type": "object"
          },
          "title": "新的在前 | [EN] Newest first",
          "type": "array"
        },
        "paging": {
          "$ref": "#/definitions/commonPaging",
          "title": "分页 | [EN] Paging"
        }
      },
      "title": "revision 历史响应 | [EN] Revision history response",
      "type": "object"
    },
    "config_centerOpsDocumentListResponse": {
      "properties": {
        "items": {
          "items": {
            "$ref": "#/definitions/config_centerDocumentInfo",
            "type": "object"
          },
          "title": "文档 | [EN] Documents",
          "type": "array"
        }
      },
      "title": "文档列表响应 | [EN] List documents response",
      "type": "object"
    },
    "config_centerOpsDocumentRevisionGetResponse": {
      "properties": {
        "document": {
          "$ref": "#/definitions/configConfigDocument",
          "title": "内容；敏感字段只有指纹 | [EN] Content, secrets as fingerprints only"
        },
        "info": {
          "$ref": "#/definitions/config_centerRevisionInfo",
          "title": "记录 | [EN] Record"
        }
      },
      "title": "读某个 revision 响应 | [EN] Get one revision response",
      "type": "object"
    },
    "config_centerOpsDocumentSaveResponse": {
      "properties": {
        "changes": {
          "items": {
            "type": "string"
          },
          "title": "改动摘要；内容没变时为空且不产生新 revision | [EN] Change summary",
          "type": "array"
        },
        "info": {
          "$ref": "#/definitions/config_centerDocumentInfo",
          "title": "保存后的概况 | [EN] Overview after the save"
        }
      },
      "title": "保存响应 | [EN] Save response",
      "type": "object"
    },
    "config_centerPublicDocumentGetResponse": {
      "properties": {
        "document": {
          "$ref": "#/definitions/configConfigDocument",
          "title": "投影后的内容 | [EN] Projected content"
        },
        "revision": {
          "format": "int64",
          "title": "文档 revision，前端可当缓存版本 | [EN] Document revision, usable as a cache version",
          "type": "string"
        }
      },
      "title": "公开读取响应 | [EN] Public read response",
      "type": "object"
    },
    "config_centerRevisionInfo": {
      "properties": {
        "change_note": {
          "title": "变更说明 | [EN] Change note",
          "type": "string"
        },
        "change_type": {
          "$ref": "#/definitions/configConfigChangeType",
          "title": "变更类型 | [EN] Change type"
        },
        "content_hash": {
          "title": "内容哈希 | [EN] Content hash",
          "type": "string"
        },
        "created_at": {
          "format": "date-time",
          "title": "发布时间 | [EN] Published at",
          "type": "string"
        },
        "key": {
          "title": "文档键 | [EN] Document key",
          "type": "string"
        },
        "operator": {
          "title": "操作人 | [EN] Operator",
          "type": "string"
        },
        "restored_from": {
          "format": "int64",
          "title": "回滚来源 revision | [EN] Source revision of a rollback",
          "type": "string"
        },
        "revision": {
          "format": "int64",
          "title": "revision | [EN] Revision",
          "type": "string"
        },
        "size": {
          "format": "int32",
          "title": "内容字节数 | [EN] Content size in bytes",
          "type": "integer"
        }
      },
      "title": "一个 revision 的记录 | [EN] One revision's record",
      "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"
    },
    "enumsWalletBizType": {
      "default": "WALLET_BIZ_TYPE_UNSPECIFIED",
      "description": "- WALLET_BIZ_TYPE_UNSPECIFIED: 未指定 | [EN] Unspecified\n - WALLET_BIZ_TYPE_ORDER: 订单结算或第三方直接支付记账，biz_id 是计费订单号 | [EN] Order settlement or off-wallet record; biz_id is the billing order number\n - WALLET_BIZ_TYPE_RECHARGE: 充值单到账，biz_id 是计费订单号 | [EN] A settled top-up order; biz_id is the billing order number\n - WALLET_BIZ_TYPE_ORDER_RECONCILE: 锁定已解除时按订单号补扣钱包抵扣，biz_id 是计费订单号 | [EN] Re-debit of an order's wallet share once its hold is gone; biz_id is the order number\n - WALLET_BIZ_TYPE_PAYMENT_LATE: 到账但订单不能开通（迟到、少付、钱包部分没扣到），转入钱包 | [EN] Money for an order that cannot be fulfilled (late, underpaid, wallet share uncollected)\n - WALLET_BIZ_TYPE_PAYMENT_DUPLICATE: 已支付订单又收到一笔（含多付的差额），转入钱包 | [EN] Another payment for a paid order, an overpayment's extra included\n - WALLET_BIZ_TYPE_SIGNUP_GIFT: 开户赠金，biz_id 是工作区 ID | [EN] Signup gift; biz_id is the workspace ID\n - WALLET_BIZ_TYPE_USAGE: 超额用量扣费，biz_id 是用量事实 ID | [EN] Overage charge; biz_id is the usage fact ID\n - WALLET_BIZ_TYPE_BANK_TRANSFER: 对公转账入账，biz_id 是规范化的银行流水号 | [EN] Bank transfer credit; biz_id is the normalized bank trade number\n - WALLET_BIZ_TYPE_MANUAL: 运营手工入账或扣回，biz_id 由调用方生成 | [EN] Operator credit or clawback; biz_id chosen by the caller",
      "enum": [
        "WALLET_BIZ_TYPE_UNSPECIFIED",
        "WALLET_BIZ_TYPE_ORDER",
        "WALLET_BIZ_TYPE_RECHARGE",
        "WALLET_BIZ_TYPE_ORDER_RECONCILE",
        "WALLET_BIZ_TYPE_PAYMENT_LATE",
        "WALLET_BIZ_TYPE_PAYMENT_DUPLICATE",
        "WALLET_BIZ_TYPE_SIGNUP_GIFT",
        "WALLET_BIZ_TYPE_USAGE",
        "WALLET_BIZ_TYPE_BANK_TRANSFER",
        "WALLET_BIZ_TYPE_MANUAL"
      ],
      "title": "钱包流水的业务类型：与 biz_id、流水类型一起是钱包入账与扣款的幂等键；钱包库里存枚举名去前缀的小写（order、recharge…）\n[EN] The wallet entry's business type, which with biz_id and the transaction type is the idempotency key of credits\nand debits; the wallet stores the lower-case name without the prefix (order, recharge…)",
      "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"
    },
    "protobufNullValue": {
      "default": "NULL_VALUE",
      "description": "Represents a JSON `null`.\n\n`NullValue` is a sentinel, using an enum with only one value to represent\nthe null value for the `Value` type union.\n\nA field of type `NullValue` with any value other than `0` is considered\ninvalid. Most ProtoJSON serializers will emit a `Value` with a `null_value`\nset as a JSON `null` regardless of the integer value, and so will round trip\nto a `0` value.\n\n - NULL_VALUE: Null value.",
      "enum": [
        "NULL_VALUE"
      ],
      "type": "string"
    },
    "rpcStatus": {
      "properties": {
        "code": {
          "format": "int32",
          "type": "integer"
        },
        "details": {
          "items": {
            "$ref": "#/definitions/protobufAny",
            "type": "object"
          },
          "type": "array"
        },
        "message": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "walletOrgWalletAlertSetRequest": {
      "properties": {
        "enabled": {
          "title": "是否开启 | [EN] Whether it is on",
          "type": "boolean"
        },
        "threshold_micro": {
          "format": "int64",
          "maxLength": 10000000000,
          "minLength": 1000000,
          "title": "提醒阈值：整数美元，1 到 10,000 USD（不是整数美元回 error.wallet_alert_threshold_invalid）| [EN] Alert threshold in whole US dollars, 1 to 10,000 (error.wallet_alert_threshold_invalid otherwise)",
          "type": "string"
        }
      },
      "title": "低余额提醒设置请求\n[EN] Low-balance alert request",
      "type": "object"
    },
    "walletOrgWalletAlertSetResponse": {
      "properties": {
        "account": {
          "$ref": "#/definitions/walletWalletAccount",
          "title": "更新后的钱包 | [EN] Updated wallet"
        }
      },
      "title": "低余额提醒设置响应\n[EN] Low-balance alert response",
      "type": "object"
    },
    "walletOrgWalletGetResponse": {
      "properties": {
        "account": {
          "$ref": "#/definitions/walletWalletAccount",
          "title": "钱包 | [EN] Wallet"
        }
      },
      "title": "读取钱包响应\n[EN] Get wallet response",
      "type": "object"
    },
    "walletOrgWalletLedgerListResponse": {
      "properties": {
        "next_cursor": {
          "title": "下一页游标（为空即没有下一页） | [EN] Cursor of the next page; empty when there is none",
          "type": "string"
        },
        "totals": {
          "$ref": "#/definitions/walletTxnTotals",
          "title": "合计（只在首页） | [EN] Totals, first page only"
        },
        "txns": {
          "items": {
            "$ref": "#/definitions/walletOrgWalletTxn",
            "type": "object"
          },
          "title": "流水（最近的在前） | [EN] Transactions, most recent first",
          "type": "array"
        }
      },
      "title": "组织账本响应\n[EN] List org ledger response",
      "type": "object"
    },
    "walletOrgWalletTxn": {
      "properties": {
        "txn": {
          "$ref": "#/definitions/walletWalletTxn",
          "title": "流水 | [EN] Transaction"
        },
        "workspace_id": {
          "title": "工作区ID | [EN] Workspace ID",
          "type": "string"
        },
        "workspace_name": {
          "title": "工作区名称（AC 取不到时为空）| [EN] Workspace name, empty when AC cannot tell",
          "type": "string"
        }
      },
      "title": "带工作区的流水\n[EN] A transaction with its workspace",
      "type": "object"
    },
    "walletOrgWalletTxnListResponse": {
      "properties": {
        "next_cursor": {
          "title": "下一页游标（为空即没有下一页） | [EN] Cursor of the next page; empty when there is none",
          "type": "string"
        },
        "totals": {
          "$ref": "#/definitions/walletTxnTotals",
          "title": "合计（只在首页） | [EN] Totals, first page only"
        },
        "txns": {
          "items": {
            "$ref": "#/definitions/walletWalletTxn",
            "type": "object"
          },
          "title": "流水（最近的在前） | [EN] Transactions, most recent first",
          "type": "array"
        }
      },
      "title": "钱包流水响应\n[EN] List wallet transactions response",
      "type": "object"
    },
    "walletTxnTotals": {
      "description": "只在首页返回（cursor 为空），按同一组过滤条件统计全部命中的流水，不只是这一页\n[EN] Returned on the first page only (empty cursor), over every row matching the same filters, not just the page",
      "properties": {
        "count": {
          "format": "int64",
          "title": "条数 | [EN] Number of transactions",
          "type": "string"
        },
        "expense_micro": {
          "format": "int64",
          "title": "支出合计（只含经钱包的部分） | [EN] Money out, wallet portions only",
          "type": "string"
        },
        "income_micro": {
          "format": "int64",
          "title": "收入合计 | [EN] Money in",
          "type": "string"
        }
      },
      "title": "流水合计\n[EN] Transaction totals",
      "type": "object"
    },
    "walletWalletAccount": {
      "description": "可用余额 = balance + gift − locked，三个数都给出来而不是只给可用额：\n界面要分别展示「充值余额」「赠金」「锁定中」，而赠金不可退不可提现，\n合成一个数之后客户会以为那笔赠金能提走。\n\n[EN] All three figures are returned rather than only the available amount, because the page\nshows the top-up balance, the gift and the held amount separately: a gift is neither\nrefundable nor withdrawable, and a single combined number reads as if it could be cashed out.",
      "properties": {
        "available_micro": {
          "format": "int64",
          "title": "可用 = balance + gift − locked | [EN] Available",
          "type": "string"
        },
        "balance_micro": {
          "format": "int64",
          "title": "充值余额 | [EN] Top-up balance",
          "type": "string"
        },
        "currency": {
          "title": "币种 | [EN] Currency",
          "type": "string"
        },
        "gift_balance_micro": {
          "format": "int64",
          "title": "赠金余额（不可退不可提现）| [EN] Gift balance, not refundable or withdrawable",
          "type": "string"
        },
        "locked_micro": {
          "format": "int64",
          "title": "锁定中 | [EN] Held for pending orders",
          "type": "string"
        },
        "low_balance_alert_enabled": {
          "title": "是否开启低余额提醒 | [EN] Whether the low-balance alert is on",
          "type": "boolean"
        },
        "low_balance_threshold_micro": {
          "format": "int64",
          "title": "低余额提醒阈值 | [EN] Low-balance alert threshold",
          "type": "string"
        },
        "org_id": {
          "title": "组织ID | [EN] Organization ID",
          "type": "string"
        },
        "transfer_reference": {
          "title": "对公转账识别码（LM 开头，客户汇款时填在转账备注里，全局唯一）| [EN] Bank transfer reference, LM-prefixed and globally unique, written in the transfer memo",
          "type": "string"
        },
        "version": {
          "format": "int32",
          "title": "行版本 | [EN] Row version",
          "type": "integer"
        },
        "workspace_id": {
          "title": "工作区ID | [EN] Workspace ID",
          "type": "string"
        }
      },
      "title": "钱包账户\n[EN] Wallet account",
      "type": "object"
    },
    "walletWalletAccountTotals": {
      "description": "本月是 UTC+8 自然月（与组织控制台、计费消费总览同一个月界）；充值是充值类型，含对公转账，不含赠金与退款\n[EN] This month is the UTC+8 calendar month, as on the org console and billing's overview; top-ups are the recharge\ntype, bank transfers included, gifts and refunds not",
      "properties": {
        "month_from": {
          "format": "date-time",
          "title": "本月起点（UTC+8 月初）| [EN] Start of this month, UTC+8",
          "type": "string"
        },
        "month_recharge_micro": {
          "format": "int64",
          "title": "本月充值 | [EN] Topped up this month",
          "type": "string"
        },
        "month_spend_micro": {
          "format": "int64",
          "title": "本月钱包扣费：订阅费、资源加购、翻译与 AI 超额里经钱包的部分 | [EN] Spent from the wallet this month: the wallet part of subscriptions, addons and translation and AI overage",
          "type": "string"
        },
        "total_recharge_micro": {
          "format": "int64",
          "title": "累计充值 | [EN] Topped up all time",
          "type": "string"
        }
      },
      "title": "工作区钱包合计\n[EN] Workspace wallet totals",
      "type": "object"
    },
    "walletWalletBankTransfer": {
      "properties": {
        "arrival_date": {
          "title": "到账日期 YYYY-MM-DD | [EN] Arrival date, YYYY-MM-DD",
          "type": "string"
        },
        "bank_trade_no": {
          "title": "银行流水号（原样）| [EN] Bank trade number as entered",
          "type": "string"
        },
        "note": {
          "title": "备注 | [EN] Note",
          "type": "string"
        },
        "payer_name": {
          "title": "付款户名 | [EN] Payer name",
          "type": "string"
        }
      },
      "title": "对公转账明细\n[EN] Bank transfer details",
      "type": "object"
    },
    "walletWalletBankTransferCreditRequest": {
      "description": "一笔银行流水只能入账一次：银行流水号全局唯一（不分大小写），重复时拒绝并给出已入账的工作区\n记一笔「充值」流水，支付方式对公转账，摘要是银行流水号，操作人取令牌\n\n[EN] One bank trade credits once: the trade number is globally unique, case-insensitively, and a repeat is refused\nnaming the workspace it went to. Books a top-up paid by bank transfer whose summary is the trade number, with the\noperator taken from the token.",
      "properties": {
        "amount_micro": {
          "format": "int64",
          "maxLength": 1000000000000,
          "minLength": 0,
          "title": "到账金额（USD，\u003e 0，最多两位小数，即 10000 的整数倍，单笔不超过 100 万）| [EN] Amount received in USD, positive, at most two decimals (a multiple of 10000), at most one million",
          "type": "string"
        },
        "arrival_date": {
          "title": "到账日期 YYYY-MM-DD，不晚于今天 | [EN] Arrival date, YYYY-MM-DD, not after today",
          "type": "string"
        },
        "bank_trade_no": {
          "maxLength": 64,
          "title": "银行流水号 | [EN] Bank trade number",
          "type": "string"
        },
        "note": {
          "maxLength": 200,
          "title": "备注 | [EN] Note",
          "type": "string"
        },
        "payer_name": {
          "maxLength": 100,
          "title": "付款户名 | [EN] Payer name",
          "type": "string"
        },
        "workspace_id": {
          "maxLength": 64,
          "title": "工作区ID | [EN] Workspace ID",
          "type": "string"
        }
      },
      "required": [
        "workspace_id",
        "amount_micro",
        "arrival_date",
        "bank_trade_no"
      ],
      "title": "对公转账入账请求\n[EN] Bank transfer credit request",
      "type": "object"
    },
    "walletWalletBankTransferCreditResponse": {
      "properties": {
        "account": {
          "$ref": "#/definitions/walletWalletAccount",
          "title": "入账后的钱包 | [EN] Wallet after the credit"
        },
        "balance_before_micro": {
          "format": "int64",
          "title": "入账前的充值余额 | [EN] Top-up balance before",
          "type": "string"
        },
        "entry": {
          "$ref": "#/definitions/walletWalletLedgerEntry",
          "title": "这笔流水 | [EN] The entry booked"
        }
      },
      "title": "对公转账入账响应\n[EN] Bank transfer credit response",
      "type": "object"
    },
    "walletWalletCreditResponse": {
      "properties": {
        "account": {
          "$ref": "#/definitions/walletWalletAccount",
          "title": "入账后的钱包 | [EN] Wallet after the credit"
        },
        "replayed": {
          "title": "是否命中幂等（true 表示本次未再入账）| [EN] Whether this was a replay and nothing was credited",
          "type": "boolean"
        },
        "txn": {
          "$ref": "#/definitions/walletWalletTxn",
          "title": "本次流水（重放时返回首次那条）| [EN] The transaction; a replay returns the original"
        }
      },
      "title": "入账响应\n[EN] Credit response",
      "type": "object"
    },
    "walletWalletDirection": {
      "default": "WALLET_DIRECTION_UNSPECIFIED",
      "description": "- WALLET_DIRECTION_UNSPECIFIED: 未指定 | [EN] Unspecified\n - WALLET_DIRECTION_IN: 入账 | [EN] Credit\n - WALLET_DIRECTION_OUT: 出账 | [EN] Debit",
      "enum": [
        "WALLET_DIRECTION_UNSPECIFIED",
        "WALLET_DIRECTION_IN",
        "WALLET_DIRECTION_OUT"
      ],
      "title": "资金方向\n[EN] Direction of funds",
      "type": "string"
    },
    "walletWalletGetResponse": {
      "properties": {
        "account": {
          "$ref": "#/definitions/walletWalletAccount",
          "title": "钱包账户 | [EN] Wallet account"
        },
        "totals": {
          "$ref": "#/definitions/walletWalletAccountTotals",
          "title": "合计，只在 with_totals 为 true 时有 | [EN] Totals, only with with_totals"
        }
      },
      "title": "读取钱包响应\n[EN] Get wallet response",
      "type": "object"
    },
    "walletWalletLedgerEntry": {
      "description": "金额不带符号，方向看 direction；组合支付的 amount 是订单总额，wallet 是钱包抵扣、external 是第三方部分，余额只减 wallet\n第三方直接支付 wallet 为 0、余额不变，没有事后余额（has_balance_after = false）\n支付方式用 commonapis 的 PaymentMethod：第三方方式与对公转账；那份枚举没有钱包余额，钱包支付（含组合支付的钱包抵扣）看 wallet_paid\n钱包全额支付与超额扣费是 payment_method 未指定、wallet_paid 为 true；赠送与运营扣回两者都没有\n\n[EN] Amounts are unsigned with direction telling which way. For a mixed payment amount is the order total, wallet the\nwallet deduction and external the third-party part, and the balance only drops by the wallet part. A payment made\nentirely off-wallet has a zero wallet part, leaves the balance unchanged and carries no after-balance. The payment\nmethod is commonapis PaymentMethod, the third-party methods and bank transfer; it has no wallet balance, so wallet\npayments, a mixed payment's wallet part included, show in wallet_paid. A wallet-only payment or overage charge has an\nunspecified payment_method and wallet_paid true; gifts and operator deductions have neither.",
      "properties": {
        "amount_micro": {
          "format": "int64",
          "title": "金额（组合支付为订单总额）| [EN] Amount; the order total for a mixed payment",
          "type": "string"
        },
        "balance_after_micro": {
          "format": "int64",
          "title": "事后充值余额 | [EN] Top-up balance after",
          "type": "string"
        },
        "bank_transfer": {
          "$ref": "#/definitions/walletWalletBankTransfer",
          "title": "对公转账明细（对公转账入账才有）| [EN] Bank transfer details, bank transfer credits only"
        },
        "direction": {
          "$ref": "#/definitions/walletWalletDirection",
          "title": "方向 | [EN] Direction"
        },
        "external_micro": {
          "format": "int64",
          "title": "第三方支付的部分 | [EN] The third-party part",
          "type": "string"
        },
        "gift_after_micro": {
          "format": "int64",
          "title": "事后赠金余额 | [EN] Gift balance after",
          "type": "string"
        },
        "has_balance_after": {
          "title": "事后余额是否有值 | [EN] Whether the after-balances are present",
          "type": "boolean"
        },
        "id": {
          "title": "流水ID | [EN] Transaction ID",
          "type": "string"
        },
        "occurred_at": {
          "format": "date-time",
          "title": "发生时间 | [EN] Occurred at",
          "type": "string"
        },
        "operator_id": {
          "title": "操作人的身份主体ID（服务发起为空）| [EN] Operator principal ID, empty when a service booked it",
          "type": "string"
        },
        "operator_type": {
          "$ref": "#/definitions/walletWalletOperatorType",
          "title": "操作人类型 | [EN] Operator type"
        },
        "order_no": {
          "title": "计费订单号（订单结算与充值才有）| [EN] Billing order number, for order settlements and top-ups only",
          "type": "string"
        },
        "org_id": {
          "title": "组织ID | [EN] Organization ID",
          "type": "string"
        },
        "org_name": {
          "title": "组织名称（AC 取不到时为空）| [EN] Organization name, empty when AC cannot tell",
          "type": "string"
        },
        "payment_method": {
          "$ref": "#/definitions/configPaymentMethod",
          "title": "第三方方式或对公转账（组合支付为第三方那一方）| [EN] Third-party method or bank transfer; the third party's for a mixed payment"
        },
        "summary": {
          "title": "摘要（写入时定：订单标题，对公转账为银行流水号）| [EN] Summary fixed when booked: the order title, or the bank trade number",
          "type": "string"
        },
        "txn_type": {
          "$ref": "#/definitions/walletWalletTxnType",
          "title": "类型 | [EN] Type"
        },
        "wallet_micro": {
          "format": "int64",
          "title": "经钱包余额的部分 | [EN] The part through the wallet balance",
          "type": "string"
        },
        "wallet_paid": {
          "title": "是否用钱包余额支付（钱包支付、超额扣费、组合支付的钱包抵扣）| [EN] Paid from the wallet balance: wallet payments, overage, a mixed payment's wallet part",
          "type": "boolean"
        },
        "workspace_id": {
          "title": "工作区ID | [EN] Workspace ID",
          "type": "string"
        },
        "workspace_name": {
          "title": "工作区名称（AC 取不到时为空）| [EN] Workspace name, empty when AC cannot tell",
          "type": "string"
        }
      },
      "title": "一条全平台流水\n[EN] One ledger entry across the platform",
      "type": "object"
    },
    "walletWalletLedgerFigure": {
      "properties": {
        "amount_micro": {
          "format": "int64",
          "title": "金额 | [EN] Amount",
          "type": "string"
        },
        "count": {
          "format": "int64",
          "title": "笔数 | [EN] Number of entries",
          "type": "string"
        }
      },
      "title": "一项合计\n[EN] One total",
      "type": "object"
    },
    "walletWalletLedgerListResponse": {
      "properties": {
        "from": {
          "format": "date-time",
          "title": "实际查询的时间起 | [EN] The effective start",
          "type": "string"
        },
        "list": {
          "items": {
            "$ref": "#/definitions/walletWalletLedgerEntry",
            "type": "object"
          },
          "title": "流水 | [EN] Entries",
          "type": "array"
        },
        "page_response": {
          "$ref": "#/definitions/commonPaging",
          "title": "分页；总数只数到 10000，超过时为 10001 | [EN] Paging; the total stops at 10000 and reads 10001 beyond"
        },
        "to": {
          "format": "date-time",
          "title": "实际查询的时间止 | [EN] The effective end",
          "type": "string"
        }
      },
      "title": "全平台流水响应\n[EN] List ledger entries response",
      "type": "object"
    },
    "walletWalletLedgerSummaryResponse": {
      "description": "钱包扣费只算实际从钱包扣掉的部分（组合支付只算钱包抵扣，第三方直接支付不算）；第三方直接支付只算第三方部分，余额不动\n[EN] Wallet spend counts only what left the wallet (the wallet part of a mixed payment, nothing of an off-wallet\none); third-party payments count only the third-party part, which never touches the balance.",
      "properties": {
        "count": {
          "format": "int64",
          "title": "流水笔数 | [EN] Number of entries",
          "type": "string"
        },
        "deduction": {
          "$ref": "#/definitions/walletWalletLedgerFigure",
          "title": "平台扣回 | [EN] Operator deductions"
        },
        "from": {
          "format": "date-time",
          "title": "实际统计的时间起 | [EN] The effective start",
          "type": "string"
        },
        "gift": {
          "$ref": "#/definitions/walletWalletLedgerFigure",
          "title": "赠送 | [EN] Gifts"
        },
        "recharge": {
          "$ref": "#/definitions/walletWalletLedgerFigure",
          "title": "充值（含对公转账）| [EN] Top-ups, bank transfers included"
        },
        "recharge_transfer_micro": {
          "format": "int64",
          "title": "其中对公转账 | [EN] Of which bank transfers",
          "type": "string"
        },
        "third_party": {
          "$ref": "#/definitions/walletWalletLedgerFigure",
          "title": "第三方直接支付 | [EN] Paid off-wallet"
        },
        "to": {
          "format": "date-time",
          "title": "实际统计的时间止 | [EN] The effective end",
          "type": "string"
        },
        "wallet_spend": {
          "$ref": "#/definitions/walletWalletLedgerFigure",
          "title": "钱包扣费 | [EN] Spent from the wallet"
        },
        "wallet_spend_overage_micro": {
          "format": "int64",
          "title": "其中超额扣费（翻译与 AI）| [EN] Of which overage, translation and AI",
          "type": "string"
        },
        "workspaces": {
          "format": "int64",
          "title": "涉及的工作区数 | [EN] Workspaces involved",
          "type": "string"
        }
      },
      "title": "全平台流水汇总响应\n[EN] Ledger summary response",
      "type": "object"
    },
    "walletWalletOperatorType": {
      "default": "WALLET_OPERATOR_TYPE_UNSPECIFIED",
      "description": "- WALLET_OPERATOR_TYPE_UNSPECIFIED: 认不出 | [EN] Unrecognized\n - WALLET_OPERATOR_TYPE_SYSTEM: 系统（开户赠金、超额扣费、自动续费、充值到账）| [EN] The system: signup gifts, overage, auto-renewal, settled top-ups\n - WALLET_OPERATOR_TYPE_MEMBER: 组织成员 | [EN] An org member\n - WALLET_OPERATOR_TYPE_OPS: 运维（手工入账、对公转账入账、扣回）| [EN] An ops user: manual credits, bank transfers, deductions",
      "enum": [
        "WALLET_OPERATOR_TYPE_UNSPECIFIED",
        "WALLET_OPERATOR_TYPE_SYSTEM",
        "WALLET_OPERATOR_TYPE_MEMBER",
        "WALLET_OPERATOR_TYPE_OPS"
      ],
      "title": "流水的操作人类型，按操作人 ID 的前缀判断（AC 的身份主体：运维 op_、组织 as_），服务发起的流水没有操作人\n[EN] Who booked a transaction, told by the operator ID prefix (AC principals: op_ for ops, as_ for org members);\nservice-initiated entries have no operator",
      "type": "string"
    },
    "walletWalletTransferTarget": {
      "properties": {
        "account": {
          "$ref": "#/definitions/walletWalletAccount",
          "title": "当前钱包（含识别码与余额；还没有钱包时全零、识别码为空）| [EN] The wallet now, with reference and balances; all zero with no reference before the first one"
        },
        "org_id": {
          "title": "组织ID | [EN] Organization ID",
          "type": "string"
        },
        "org_name": {
          "title": "组织名称 | [EN] Organization name",
          "type": "string"
        },
        "reference_matched": {
          "title": "是否按转账识别码完全匹配 | [EN] Whether the transfer reference matched exactly",
          "type": "boolean"
        },
        "workspace_id": {
          "title": "工作区ID | [EN] Workspace ID",
          "type": "string"
        },
        "workspace_name": {
          "title": "工作区名称 | [EN] Workspace name",
          "type": "string"
        }
      },
      "title": "对公转账入账的候选工作区\n[EN] A workspace candidate for a bank transfer credit",
      "type": "object"
    },
    "walletWalletTransferTargetListResponse": {
      "properties": {
        "list": {
          "items": {
            "$ref": "#/definitions/walletWalletTransferTarget",
            "type": "object"
          },
          "title": "候选工作区 | [EN] Candidates",
          "type": "array"
        },
        "total": {
          "format": "int64",
          "title": "匹配到的个数（截断前）| [EN] Matches found before truncation",
          "type": "string"
        }
      },
      "title": "找入账工作区响应：识别码完全匹配的排最前，最多 20 个\n[EN] Bank transfer targets, an exact reference match first, at most 20",
      "type": "object"
    },
    "walletWalletTxn": {
      "description": "支付方式与全平台流水条目同一种说法：钱包全额支付与超额扣费是 payment_method 未指定、wallet_paid 为 true；\n组合支付是第三方方式加 wallet_paid 为 true；第三方直接支付是第三方方式加 false；入账是请求里的方式，赠送与运营扣回两者都没有\n8 曾是字符串 pay_method，换成枚举不能沿用同一个编号（线上类型不同），保留不再用\n[EN] Payment is expressed as on the ops ledger entry: a wallet-only payment or overage has an unspecified\npayment_method and wallet_paid true; a mixed payment the third-party method and true; an off-wallet payment the\nmethod and false; a credit the request's method; gifts and deductions neither. Field 8 was the string pay_method; an\nenum cannot reuse that number since the wire type differs, so it stays reserved",
      "properties": {
        "amount_micro": {
          "format": "int64",
          "title": "金额 | [EN] Amount",
          "type": "string"
        },
        "balance_after_micro": {
          "format": "int64",
          "title": "事后充值余额（第三方全额支付时为空）| [EN] Balance after; absent when paid entirely off-wallet",
          "type": "string"
        },
        "biz_id": {
          "title": "业务ID | [EN] Business ID",
          "type": "string"
        },
        "biz_type": {
          "$ref": "#/definitions/enumsWalletBizType",
          "title": "业务类型 | [EN] Business type"
        },
        "direction": {
          "$ref": "#/definitions/walletWalletDirection",
          "title": "方向 | [EN] Direction"
        },
        "external_micro": {
          "format": "int64",
          "title": "其中第三方支付的部分（组合支付与第三方直接支付才有，余额只减 amount − external）| [EN] The third-party part of a mixed or off-wallet payment; the balance only drops by amount − external",
          "type": "string"
        },
        "gift_after_micro": {
          "format": "int64",
          "title": "事后赠金余额 | [EN] Gift balance after",
          "type": "string"
        },
        "has_balance_after": {
          "title": "事后余额是否有值 | [EN] Whether the balance after is present",
          "type": "boolean"
        },
        "id": {
          "title": "流水ID | [EN] Transaction ID",
          "type": "string"
        },
        "occurred_at": {
          "format": "date-time",
          "title": "发生时间 | [EN] Occurred at",
          "type": "string"
        },
        "payment_method": {
          "$ref": "#/definitions/configPaymentMethod",
          "title": "第三方方式或对公转账（组合支付为第三方那一方）| [EN] Third-party method or bank transfer; the third party's for a mixed payment"
        },
        "summary": {
          "title": "摘要 | [EN] Summary",
          "type": "string"
        },
        "txn_type": {
          "$ref": "#/definitions/walletWalletTxnType",
          "title": "类型 | [EN] Type"
        },
        "wallet_paid": {
          "title": "是否用钱包余额支付（钱包支付、超额扣费、组合支付的钱包抵扣）| [EN] Paid from the wallet balance: wallet payments, overage, a mixed payment's wallet part",
          "type": "boolean"
        }
      },
      "title": "钱包流水\n[EN] Wallet transaction",
      "type": "object"
    },
    "walletWalletTxnListResponse": {
      "properties": {
        "next_cursor": {
          "title": "下一页游标，为空表示已经到底 | [EN] Cursor for the next page; empty when there are no more",
          "type": "string"
        },
        "txns": {
          "items": {
            "$ref": "#/definitions/walletWalletTxn",
            "type": "object"
          },
          "title": "流水（最近的在前）| [EN] Transactions, newest first",
          "type": "array"
        }
      },
      "title": "流水查询响应\n[EN] List transactions response",
      "type": "object"
    },
    "walletWalletTxnType": {
      "default": "WALLET_TXN_TYPE_UNSPECIFIED",
      "description": "钱包流水类型\n[EN] Wallet transaction type\n直接用界面的筛选值，不另设内部枚举再映射：多一层映射就多一处会写反的地方，\n而写反的后果是客户在「充值」筛选里看到一笔扣款。\n[EN] The UI's filter values are used directly rather than an internal set plus a mapping,\nwhich would be one more place to get backwards — and backwards here means a charge showing\nup under the customer's \"top-ups\" filter.\n\n - WALLET_TXN_TYPE_UNSPECIFIED: 未指定 | [EN] Unspecified\n - WALLET_TXN_TYPE_RECHARGE: 充值 | [EN] Top-up\n - WALLET_TXN_TYPE_SUBSCRIPTION: 订阅费 | [EN] Subscription\n - WALLET_TXN_TYPE_RESOURCE: 资源加购 | [EN] Resource purchase\n - WALLET_TXN_TYPE_TRANSLATION: 翻译超额扣费 | [EN] Translation overage\n - WALLET_TXN_TYPE_AI: AI 超额扣费 | [EN] AI overage\n - WALLET_TXN_TYPE_REFUND: 退款 | [EN] Refund\n - WALLET_TXN_TYPE_GIFT: 赠金 | [EN] Gift\n - WALLET_TXN_TYPE_DEDUCTION: 运营扣回 | [EN] Operator deduction",
      "enum": [
        "WALLET_TXN_TYPE_UNSPECIFIED",
        "WALLET_TXN_TYPE_RECHARGE",
        "WALLET_TXN_TYPE_SUBSCRIPTION",
        "WALLET_TXN_TYPE_RESOURCE",
        "WALLET_TXN_TYPE_TRANSLATION",
        "WALLET_TXN_TYPE_AI",
        "WALLET_TXN_TYPE_REFUND",
        "WALLET_TXN_TYPE_GIFT",
        "WALLET_TXN_TYPE_DEDUCTION"
      ],
      "type": "string"
    }
  },
  "info": {
    "contact": {
      "email": "support@example.com",
      "name": "API Support",
      "url": "https://example.com/support"
    },
    "description": "linmi-share-proto 聚合 API 文档 | aggregated API documentation",
    "license": {
      "name": "MIT",
      "url": "https://opensource.org/licenses/MIT"
    },
    "title": "LinMi API Documentation",
    "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/billing/ops/stats": {
      "post": {
        "description": "只做已有汇总的组合，不跨域取组织、账号或留存数据；那些由 AC / 报表服务提供\n\n[EN] Billing stats: order, subscription change and usage summaries in one response. It only composes the\nexisting summaries and never reaches across domains for organizations, accounts or retention; AC and the\nreport service own those.",
        "operationId": "BillingService_OpsBillingStatsGet",
        "parameters": [
          {
            "description": "运维计费统计请求：订单、订阅变更、用量三块各自带筛选，日期口径由调用方对齐\n[EN] Ops billing stats request: orders, subscription changes and usage each carry their own filter; the caller\naligns the date ranges.",
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/billingOpsBillingStatsGetRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/billingOpsBillingStatsGetResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "计费统计 | Billing stats",
        "tags": [
          "BillingService"
        ]
      }
    },
    "/v1/billing/ops/workspaces/{workspace_id}/trial/extend": {
      "post": {
        "operationId": "BillingService_TrialExtend",
        "parameters": [
          {
            "description": "工作区ID | [EN] Workspace ID",
            "in": "path",
            "maxLength": 64,
            "name": "workspace_id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/BillingServiceTrialExtendBody"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/billingTrialExtendResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "延长试用 | Extend a trial",
        "tags": [
          "BillingService"
        ]
      }
    },
    "/v1/billing/order-count": {
      "get": {
        "operationId": "BillingService_OrderCount",
        "parameters": [
          {
            "description": "下单日期起（YYYY-MM-DD）| [EN] First created date, YYYY-MM-DD",
            "in": "query",
            "name": "filter.start_date",
            "required": true,
            "type": "string"
          },
          {
            "description": "下单日期止（YYYY-MM-DD，含当天）| [EN] Last created date, inclusive",
            "in": "query",
            "name": "filter.end_date",
            "required": true,
            "type": "string"
          },
          {
            "default": "ORDER_STATUS_UNSPECIFIED",
            "description": "订单状态（汇总接口忽略）| [EN] Status; ignored by the summary\n\n - ORDER_STATUS_UNSPECIFIED: 未指定 | [EN] Unspecified\n - ORDER_STATUS_PENDING: 待支付 | [EN] Awaiting payment\n - ORDER_STATUS_PAID: 已支付 | [EN] Paid\n - ORDER_STATUS_EXPIRED: 已过期（30 分钟未支付）| [EN] Expired unpaid after 30 minutes\n - ORDER_STATUS_CANCELLED: 已取消 | [EN] Cancelled\n - ORDER_STATUS_REFUNDED: 已退款 | [EN] Refunded",
            "enum": [
              "ORDER_STATUS_UNSPECIFIED",
              "ORDER_STATUS_PENDING",
              "ORDER_STATUS_PAID",
              "ORDER_STATUS_EXPIRED",
              "ORDER_STATUS_CANCELLED",
              "ORDER_STATUS_REFUNDED"
            ],
            "in": "query",
            "name": "filter.status",
            "required": false,
            "type": "string"
          },
          {
            "default": "PAYMENT_METHOD_UNSPECIFIED",
            "description": "支付方式 | [EN] Payment method\n\n - PAYMENT_METHOD_UNSPECIFIED: 未指定 | [EN] Unspecified\n - PAYMENT_METHOD_CARD: 银行卡 | [EN] Card\n - PAYMENT_METHOD_WECHAT: 微信支付 | [EN] WeChat Pay\n - PAYMENT_METHOD_ALIPAY: 支付宝 | [EN] Alipay\n - PAYMENT_METHOD_PAYPAL: PayPal | [EN] PayPal\n - PAYMENT_METHOD_CRYPTO: 虚拟币 | [EN] Crypto\n - PAYMENT_METHOD_TRANSFER: 对公转账（仅充值）| [EN] Bank transfer, top-up only",
            "enum": [
              "PAYMENT_METHOD_UNSPECIFIED",
              "PAYMENT_METHOD_CARD",
              "PAYMENT_METHOD_WECHAT",
              "PAYMENT_METHOD_ALIPAY",
              "PAYMENT_METHOD_PAYPAL",
              "PAYMENT_METHOD_CRYPTO",
              "PAYMENT_METHOD_TRANSFER"
            ],
            "in": "query",
            "name": "filter.pay_method",
            "required": false,
            "type": "string"
          },
          {
            "default": "ORDER_PURPOSE_UNSPECIFIED",
            "description": "用途：钱包充值、订阅变更或额度包 | [EN] Purpose: top-up, subscription change or quota package\n\n - ORDER_PURPOSE_UNSPECIFIED: 未指定 | [EN] Unspecified\n - ORDER_PURPOSE_CHECKOUT: 订阅变更（新购、升级、加购、续费、降级、调整）| [EN] Subscription change\n - ORDER_PURPOSE_QUOTA: 额度包 | [EN] Quota package\n - ORDER_PURPOSE_RECHARGE: 钱包充值 | [EN] Wallet top-up",
            "enum": [
              "ORDER_PURPOSE_UNSPECIFIED",
              "ORDER_PURPOSE_CHECKOUT",
              "ORDER_PURPOSE_QUOTA",
              "ORDER_PURPOSE_RECHARGE"
            ],
            "in": "query",
            "name": "filter.purpose",
            "required": false,
            "type": "string"
          },
          {
            "default": "CHECKOUT_TYPE_UNSPECIFIED",
            "description": "订阅变更类型（新购、升级、加购、续费）| [EN] Kind of subscription change: new, upgrade, add-on or renewal\n\n - CHECKOUT_TYPE_UNSPECIFIED: 未指定 | [EN] Unspecified\n - CHECKOUT_TYPE_NEW: 新购 | [EN] New purchase\n - CHECKOUT_TYPE_UPGRADE: 升级（立即生效，按天补差价）| [EN] Upgrade, immediate and prorated\n - CHECKOUT_TYPE_ADDON: 加购资源位（立即生效，按天补差价）| [EN] Seat addon, immediate and prorated\n - CHECKOUT_TYPE_RENEW: 续费（顺延到期日）| [EN] Renewal, extends the end date\n - CHECKOUT_TYPE_DOWNGRADE: 降级（期末生效，今天不收钱）| [EN] Downgrade at period end, nothing charged today\n - CHECKOUT_TYPE_ADJUST: 调整（减资源位或改周期，期末生效）| [EN] Reduction or cycle change at period end",
            "enum": [
              "CHECKOUT_TYPE_UNSPECIFIED",
              "CHECKOUT_TYPE_NEW",
              "CHECKOUT_TYPE_UPGRADE",
              "CHECKOUT_TYPE_ADDON",
              "CHECKOUT_TYPE_RENEW",
              "CHECKOUT_TYPE_DOWNGRADE",
              "CHECKOUT_TYPE_ADJUST"
            ],
            "in": "query",
            "name": "filter.checkout_type",
            "required": false,
            "type": "string"
          },
          {
            "description": "套餐编码，只匹配订阅变更订单（含已下架套餐）| [EN] Plan code, matching subscription orders only, off-sale plans included",
            "in": "query",
            "maxLength": 32,
            "name": "filter.plan_code",
            "required": false,
            "type": "string"
          },
          {
            "description": "只看首购 | [EN] First purchases only",
            "in": "query",
            "name": "filter.first_purchase_only",
            "required": true,
            "type": "boolean"
          },
          {
            "description": "订单号前缀，或完整的组织 ID / 工作区 ID | [EN] An order number prefix, or a full organization or workspace ID",
            "in": "query",
            "maxLength": 64,
            "name": "filter.keyword",
            "required": false,
            "type": "string"
          },
          {
            "collectionFormat": "multi",
            "description": "组织（按名称在 AC 搜到的 ID）| [EN] Organizations, IDs found by name in AC",
            "in": "query",
            "items": {
              "maxLength": 64,
              "type": "string"
            },
            "maxItems": 100,
            "name": "filter.org_ids",
            "required": false,
            "type": "array"
          },
          {
            "collectionFormat": "multi",
            "description": "工作区（按名称在 AC 搜到的 ID）| [EN] Workspaces, IDs found by name in AC",
            "in": "query",
            "items": {
              "maxLength": 64,
              "type": "string"
            },
            "maxItems": 100,
            "name": "filter.workspace_ids",
            "required": false,
            "type": "array"
          },
          {
            "description": "下单时间晚于（不含）| [EN] Created strictly after",
            "format": "date-time",
            "in": "query",
            "name": "created_after",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/billingOrderCountResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "新订单计数 | Count new orders",
        "tags": [
          "BillingService"
        ]
      }
    },
    "/v1/billing/order-lookup/{order_no}": {
      "get": {
        "operationId": "BillingService_OrderLookup",
        "parameters": [
          {
            "description": "订单号 | [EN] Order number",
            "in": "path",
            "maxLength": 32,
            "name": "order_no",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/billingOrderLookupResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "按订单号查订单 | Look up order by number",
        "tags": [
          "BillingService"
        ]
      }
    },
    "/v1/billing/order-summary": {
      "get": {
        "operationId": "BillingService_OrderSummaryGet",
        "parameters": [
          {
            "description": "下单日期起（YYYY-MM-DD）| [EN] First created date, YYYY-MM-DD",
            "in": "query",
            "name": "filter.start_date",
            "required": true,
            "type": "string"
          },
          {
            "description": "下单日期止（YYYY-MM-DD，含当天）| [EN] Last created date, inclusive",
            "in": "query",
            "name": "filter.end_date",
            "required": true,
            "type": "string"
          },
          {
            "default": "ORDER_STATUS_UNSPECIFIED",
            "description": "订单状态（汇总接口忽略）| [EN] Status; ignored by the summary\n\n - ORDER_STATUS_UNSPECIFIED: 未指定 | [EN] Unspecified\n - ORDER_STATUS_PENDING: 待支付 | [EN] Awaiting payment\n - ORDER_STATUS_PAID: 已支付 | [EN] Paid\n - ORDER_STATUS_EXPIRED: 已过期（30 分钟未支付）| [EN] Expired unpaid after 30 minutes\n - ORDER_STATUS_CANCELLED: 已取消 | [EN] Cancelled\n - ORDER_STATUS_REFUNDED: 已退款 | [EN] Refunded",
            "enum": [
              "ORDER_STATUS_UNSPECIFIED",
              "ORDER_STATUS_PENDING",
              "ORDER_STATUS_PAID",
              "ORDER_STATUS_EXPIRED",
              "ORDER_STATUS_CANCELLED",
              "ORDER_STATUS_REFUNDED"
            ],
            "in": "query",
            "name": "filter.status",
            "required": false,
            "type": "string"
          },
          {
            "default": "PAYMENT_METHOD_UNSPECIFIED",
            "description": "支付方式 | [EN] Payment method\n\n - PAYMENT_METHOD_UNSPECIFIED: 未指定 | [EN] Unspecified\n - PAYMENT_METHOD_CARD: 银行卡 | [EN] Card\n - PAYMENT_METHOD_WECHAT: 微信支付 | [EN] WeChat Pay\n - PAYMENT_METHOD_ALIPAY: 支付宝 | [EN] Alipay\n - PAYMENT_METHOD_PAYPAL: PayPal | [EN] PayPal\n - PAYMENT_METHOD_CRYPTO: 虚拟币 | [EN] Crypto\n - PAYMENT_METHOD_TRANSFER: 对公转账（仅充值）| [EN] Bank transfer, top-up only",
            "enum": [
              "PAYMENT_METHOD_UNSPECIFIED",
              "PAYMENT_METHOD_CARD",
              "PAYMENT_METHOD_WECHAT",
              "PAYMENT_METHOD_ALIPAY",
              "PAYMENT_METHOD_PAYPAL",
              "PAYMENT_METHOD_CRYPTO",
              "PAYMENT_METHOD_TRANSFER"
            ],
            "in": "query",
            "name": "filter.pay_method",
            "required": false,
            "type": "string"
          },
          {
            "default": "ORDER_PURPOSE_UNSPECIFIED",
            "description": "用途：钱包充值、订阅变更或额度包 | [EN] Purpose: top-up, subscription change or quota package\n\n - ORDER_PURPOSE_UNSPECIFIED: 未指定 | [EN] Unspecified\n - ORDER_PURPOSE_CHECKOUT: 订阅变更（新购、升级、加购、续费、降级、调整）| [EN] Subscription change\n - ORDER_PURPOSE_QUOTA: 额度包 | [EN] Quota package\n - ORDER_PURPOSE_RECHARGE: 钱包充值 | [EN] Wallet top-up",
            "enum": [
              "ORDER_PURPOSE_UNSPECIFIED",
              "ORDER_PURPOSE_CHECKOUT",
              "ORDER_PURPOSE_QUOTA",
              "ORDER_PURPOSE_RECHARGE"
            ],
            "in": "query",
            "name": "filter.purpose",
            "required": false,
            "type": "string"
          },
          {
            "default": "CHECKOUT_TYPE_UNSPECIFIED",
            "description": "订阅变更类型（新购、升级、加购、续费）| [EN] Kind of subscription change: new, upgrade, add-on or renewal\n\n - CHECKOUT_TYPE_UNSPECIFIED: 未指定 | [EN] Unspecified\n - CHECKOUT_TYPE_NEW: 新购 | [EN] New purchase\n - CHECKOUT_TYPE_UPGRADE: 升级（立即生效，按天补差价）| [EN] Upgrade, immediate and prorated\n - CHECKOUT_TYPE_ADDON: 加购资源位（立即生效，按天补差价）| [EN] Seat addon, immediate and prorated\n - CHECKOUT_TYPE_RENEW: 续费（顺延到期日）| [EN] Renewal, extends the end date\n - CHECKOUT_TYPE_DOWNGRADE: 降级（期末生效，今天不收钱）| [EN] Downgrade at period end, nothing charged today\n - CHECKOUT_TYPE_ADJUST: 调整（减资源位或改周期，期末生效）| [EN] Reduction or cycle change at period end",
            "enum": [
              "CHECKOUT_TYPE_UNSPECIFIED",
              "CHECKOUT_TYPE_NEW",
              "CHECKOUT_TYPE_UPGRADE",
              "CHECKOUT_TYPE_ADDON",
              "CHECKOUT_TYPE_RENEW",
              "CHECKOUT_TYPE_DOWNGRADE",
              "CHECKOUT_TYPE_ADJUST"
            ],
            "in": "query",
            "name": "filter.checkout_type",
            "required": false,
            "type": "string"
          },
          {
            "description": "套餐编码，只匹配订阅变更订单（含已下架套餐）| [EN] Plan code, matching subscription orders only, off-sale plans included",
            "in": "query",
            "maxLength": 32,
            "name": "filter.plan_code",
            "required": false,
            "type": "string"
          },
          {
            "description": "只看首购 | [EN] First purchases only",
            "in": "query",
            "name": "filter.first_purchase_only",
            "required": true,
            "type": "boolean"
          },
          {
            "description": "订单号前缀，或完整的组织 ID / 工作区 ID | [EN] An order number prefix, or a full organization or workspace ID",
            "in": "query",
            "maxLength": 64,
            "name": "filter.keyword",
            "required": false,
            "type": "string"
          },
          {
            "collectionFormat": "multi",
            "description": "组织（按名称在 AC 搜到的 ID）| [EN] Organizations, IDs found by name in AC",
            "in": "query",
            "items": {
              "maxLength": 64,
              "type": "string"
            },
            "maxItems": 100,
            "name": "filter.org_ids",
            "required": false,
            "type": "array"
          },
          {
            "collectionFormat": "multi",
            "description": "工作区（按名称在 AC 搜到的 ID）| [EN] Workspaces, IDs found by name in AC",
            "in": "query",
            "items": {
              "maxLength": 64,
              "type": "string"
            },
            "maxItems": 100,
            "name": "filter.workspace_ids",
            "required": false,
            "type": "array"
          },
          {
            "description": "对比窗口起（含）| [EN] Comparison window start, inclusive",
            "format": "date-time",
            "in": "query",
            "name": "compare_from",
            "required": false,
            "type": "string"
          },
          {
            "description": "对比窗口止（不含），与 compare_from 一起给 | [EN] Comparison window end, exclusive, given with compare_from",
            "format": "date-time",
            "in": "query",
            "name": "compare_to",
            "required": false,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/billingOrderSummaryGetResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "全站订单汇总 | Platform order summary",
        "tags": [
          "BillingService"
        ]
      }
    },
    "/v1/billing/orders": {
      "get": {
        "operationId": "BillingService_OrderList",
        "parameters": [
          {
            "description": "下单日期起（YYYY-MM-DD）| [EN] First created date, YYYY-MM-DD",
            "in": "query",
            "name": "filter.start_date",
            "required": true,
            "type": "string"
          },
          {
            "description": "下单日期止（YYYY-MM-DD，含当天）| [EN] Last created date, inclusive",
            "in": "query",
            "name": "filter.end_date",
            "required": true,
            "type": "string"
          },
          {
            "default": "ORDER_STATUS_UNSPECIFIED",
            "description": "订单状态（汇总接口忽略）| [EN] Status; ignored by the summary\n\n - ORDER_STATUS_UNSPECIFIED: 未指定 | [EN] Unspecified\n - ORDER_STATUS_PENDING: 待支付 | [EN] Awaiting payment\n - ORDER_STATUS_PAID: 已支付 | [EN] Paid\n - ORDER_STATUS_EXPIRED: 已过期（30 分钟未支付）| [EN] Expired unpaid after 30 minutes\n - ORDER_STATUS_CANCELLED: 已取消 | [EN] Cancelled\n - ORDER_STATUS_REFUNDED: 已退款 | [EN] Refunded",
            "enum": [
              "ORDER_STATUS_UNSPECIFIED",
              "ORDER_STATUS_PENDING",
              "ORDER_STATUS_PAID",
              "ORDER_STATUS_EXPIRED",
              "ORDER_STATUS_CANCELLED",
              "ORDER_STATUS_REFUNDED"
            ],
            "in": "query",
            "name": "filter.status",
            "required": false,
            "type": "string"
          },
          {
            "default": "PAYMENT_METHOD_UNSPECIFIED",
            "description": "支付方式 | [EN] Payment method\n\n - PAYMENT_METHOD_UNSPECIFIED: 未指定 | [EN] Unspecified\n - PAYMENT_METHOD_CARD: 银行卡 | [EN] Card\n - PAYMENT_METHOD_WECHAT: 微信支付 | [EN] WeChat Pay\n - PAYMENT_METHOD_ALIPAY: 支付宝 | [EN] Alipay\n - PAYMENT_METHOD_PAYPAL: PayPal | [EN] PayPal\n - PAYMENT_METHOD_CRYPTO: 虚拟币 | [EN] Crypto\n - PAYMENT_METHOD_TRANSFER: 对公转账（仅充值）| [EN] Bank transfer, top-up only",
            "enum": [
              "PAYMENT_METHOD_UNSPECIFIED",
              "PAYMENT_METHOD_CARD",
              "PAYMENT_METHOD_WECHAT",
              "PAYMENT_METHOD_ALIPAY",
              "PAYMENT_METHOD_PAYPAL",
              "PAYMENT_METHOD_CRYPTO",
              "PAYMENT_METHOD_TRANSFER"
            ],
            "in": "query",
            "name": "filter.pay_method",
            "required": false,
            "type": "string"
          },
          {
            "default": "ORDER_PURPOSE_UNSPECIFIED",
            "description": "用途：钱包充值、订阅变更或额度包 | [EN] Purpose: top-up, subscription change or quota package\n\n - ORDER_PURPOSE_UNSPECIFIED: 未指定 | [EN] Unspecified\n - ORDER_PURPOSE_CHECKOUT: 订阅变更（新购、升级、加购、续费、降级、调整）| [EN] Subscription change\n - ORDER_PURPOSE_QUOTA: 额度包 | [EN] Quota package\n - ORDER_PURPOSE_RECHARGE: 钱包充值 | [EN] Wallet top-up",
            "enum": [
              "ORDER_PURPOSE_UNSPECIFIED",
              "ORDER_PURPOSE_CHECKOUT",
              "ORDER_PURPOSE_QUOTA",
              "ORDER_PURPOSE_RECHARGE"
            ],
            "in": "query",
            "name": "filter.purpose",
            "required": false,
            "type": "string"
          },
          {
            "default": "CHECKOUT_TYPE_UNSPECIFIED",
            "description": "订阅变更类型（新购、升级、加购、续费）| [EN] Kind of subscription change: new, upgrade, add-on or renewal\n\n - CHECKOUT_TYPE_UNSPECIFIED: 未指定 | [EN] Unspecified\n - CHECKOUT_TYPE_NEW: 新购 | [EN] New purchase\n - CHECKOUT_TYPE_UPGRADE: 升级（立即生效，按天补差价）| [EN] Upgrade, immediate and prorated\n - CHECKOUT_TYPE_ADDON: 加购资源位（立即生效，按天补差价）| [EN] Seat addon, immediate and prorated\n - CHECKOUT_TYPE_RENEW: 续费（顺延到期日）| [EN] Renewal, extends the end date\n - CHECKOUT_TYPE_DOWNGRADE: 降级（期末生效，今天不收钱）| [EN] Downgrade at period end, nothing charged today\n - CHECKOUT_TYPE_ADJUST: 调整（减资源位或改周期，期末生效）| [EN] Reduction or cycle change at period end",
            "enum": [
              "CHECKOUT_TYPE_UNSPECIFIED",
              "CHECKOUT_TYPE_NEW",
              "CHECKOUT_TYPE_UPGRADE",
              "CHECKOUT_TYPE_ADDON",
              "CHECKOUT_TYPE_RENEW",
              "CHECKOUT_TYPE_DOWNGRADE",
              "CHECKOUT_TYPE_ADJUST"
            ],
            "in": "query",
            "name": "filter.checkout_type",
            "required": false,
            "type": "string"
          },
          {
            "description": "套餐编码，只匹配订阅变更订单（含已下架套餐）| [EN] Plan code, matching subscription orders only, off-sale plans included",
            "in": "query",
            "maxLength": 32,
            "name": "filter.plan_code",
            "required": false,
            "type": "string"
          },
          {
            "description": "只看首购 | [EN] First purchases only",
            "in": "query",
            "name": "filter.first_purchase_only",
            "required": true,
            "type": "boolean"
          },
          {
            "description": "订单号前缀，或完整的组织 ID / 工作区 ID | [EN] An order number prefix, or a full organization or workspace ID",
            "in": "query",
            "maxLength": 64,
            "name": "filter.keyword",
            "required": false,
            "type": "string"
          },
          {
            "collectionFormat": "multi",
            "description": "组织（按名称在 AC 搜到的 ID）| [EN] Organizations, IDs found by name in AC",
            "in": "query",
            "items": {
              "maxLength": 64,
              "type": "string"
            },
            "maxItems": 100,
            "name": "filter.org_ids",
            "required": false,
            "type": "array"
          },
          {
            "collectionFormat": "multi",
            "description": "工作区（按名称在 AC 搜到的 ID）| [EN] Workspaces, IDs found by name in AC",
            "in": "query",
            "items": {
              "maxLength": 64,
              "type": "string"
            },
            "maxItems": 100,
            "name": "filter.workspace_ids",
            "required": false,
            "type": "array"
          },
          {
            "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": true,
            "type": "integer"
          },
          {
            "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/billingOrderListResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "全站订单 | List platform orders",
        "tags": [
          "BillingService"
        ]
      }
    },
    "/v1/billing/orders/{order_no}": {
      "get": {
        "operationId": "BillingService_OrderGet",
        "parameters": [
          {
            "description": "订单号 | [EN] Order number",
            "in": "path",
            "maxLength": 32,
            "name": "order_no",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/billingOrderGetResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "订单详情 | Get platform order",
        "tags": [
          "BillingService"
        ]
      }
    },
    "/v1/billing/orders/{order_no}/reconcile": {
      "post": {
        "operationId": "BillingService_OrderReconcile",
        "parameters": [
          {
            "description": "订单号 | [EN] Order number",
            "in": "path",
            "maxLength": 32,
            "name": "order_no",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/billingBillingServiceOrderReconcileBody"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/billingOrderReconcileResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "补确认付款 | Reconcile order",
        "tags": [
          "BillingService"
        ]
      }
    },
    "/v1/billing/orders/{order_no}/voucher-reconcile": {
      "post": {
        "operationId": "BillingService_OrderVoucherReconcile",
        "parameters": [
          {
            "description": "订单号 | [EN] Order number",
            "in": "path",
            "maxLength": 32,
            "name": "order_no",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/BillingServiceOrderVoucherReconcileBody"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/billingOrderReconcileResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "凭证补单 | Reconcile order from vouchers",
        "tags": [
          "BillingService"
        ]
      }
    },
    "/v1/billing/org/catalog": {
      "get": {
        "operationId": "BillingService_OrgCatalogGet",
        "parameters": [
          {
            "description": "已持有的目录版本，与当前相同时只回 not_modified | [EN] Revision already held; when current only not_modified is returned",
            "in": "query",
            "maxLength": 64,
            "name": "known_revision",
            "required": false,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/billingOrgCatalogGetResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "读取计费目录 | Get billing catalog",
        "tags": [
          "BillingService"
        ]
      }
    },
    "/v1/billing/org/consumption": {
      "get": {
        "operationId": "BillingService_OrgConsumptionOverviewGet",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/billingOrgConsumptionOverviewGetResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "消费总览 | Consumption overview",
        "tags": [
          "BillingService"
        ]
      }
    },
    "/v1/billing/org/orders": {
      "get": {
        "operationId": "BillingService_OrgOrderList",
        "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": true,
            "type": "integer"
          },
          {
            "default": "ORDER_PURPOSE_UNSPECIFIED",
            "description": "按用途过滤 | [EN] Filter by purpose\n\n - ORDER_PURPOSE_UNSPECIFIED: 未指定 | [EN] Unspecified\n - ORDER_PURPOSE_CHECKOUT: 订阅变更（新购、升级、加购、续费、降级、调整）| [EN] Subscription change\n - ORDER_PURPOSE_QUOTA: 额度包 | [EN] Quota package\n - ORDER_PURPOSE_RECHARGE: 钱包充值 | [EN] Wallet top-up",
            "enum": [
              "ORDER_PURPOSE_UNSPECIFIED",
              "ORDER_PURPOSE_CHECKOUT",
              "ORDER_PURPOSE_QUOTA",
              "ORDER_PURPOSE_RECHARGE"
            ],
            "in": "query",
            "name": "purpose",
            "required": false,
            "type": "string"
          },
          {
            "default": "ORDER_STATUS_UNSPECIFIED",
            "description": "按状态过滤 | [EN] Filter by status\n\n - ORDER_STATUS_UNSPECIFIED: 未指定 | [EN] Unspecified\n - ORDER_STATUS_PENDING: 待支付 | [EN] Awaiting payment\n - ORDER_STATUS_PAID: 已支付 | [EN] Paid\n - ORDER_STATUS_EXPIRED: 已过期（30 分钟未支付）| [EN] Expired unpaid after 30 minutes\n - ORDER_STATUS_CANCELLED: 已取消 | [EN] Cancelled\n - ORDER_STATUS_REFUNDED: 已退款 | [EN] Refunded",
            "enum": [
              "ORDER_STATUS_UNSPECIFIED",
              "ORDER_STATUS_PENDING",
              "ORDER_STATUS_PAID",
              "ORDER_STATUS_EXPIRED",
              "ORDER_STATUS_CANCELLED",
              "ORDER_STATUS_REFUNDED"
            ],
            "in": "query",
            "name": "status",
            "required": false,
            "type": "string"
          },
          {
            "description": "下单时间起 | [EN] Created from",
            "format": "date-time",
            "in": "query",
            "name": "created_from",
            "required": false,
            "type": "string"
          },
          {
            "description": "下单时间止 | [EN] Created to",
            "format": "date-time",
            "in": "query",
            "name": "created_to",
            "required": false,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/billingOrgOrderListResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "订单记录 | List orders",
        "tags": [
          "BillingService"
        ]
      },
      "post": {
        "operationId": "BillingService_OrgOrderCreate",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/billingOrgOrderCreateRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/billingOrgOrderCreateResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "下单 | Create order",
        "tags": [
          "BillingService"
        ]
      }
    },
    "/v1/billing/org/orders/{order_no}": {
      "get": {
        "operationId": "BillingService_OrgOrderGet",
        "parameters": [
          {
            "description": "订单号 | [EN] Order number",
            "in": "path",
            "name": "order_no",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/billingOrgOrderGetResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "订单详情 | Get order",
        "tags": [
          "BillingService"
        ]
      }
    },
    "/v1/billing/org/orders/{order_no}/cancel": {
      "post": {
        "operationId": "BillingService_OrgOrderCancel",
        "parameters": [
          {
            "description": "订单号 | [EN] Order number",
            "in": "path",
            "name": "order_no",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/BillingServiceOrgOrderCancelBody"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/billingOrgOrderCancelResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "取消订单 | Cancel order",
        "tags": [
          "BillingService"
        ]
      }
    },
    "/v1/billing/org/orders/{order_no}/payment": {
      "get": {
        "operationId": "BillingService_OrgOrderPaymentGet",
        "parameters": [
          {
            "description": "订单号 | [EN] Order number",
            "in": "path",
            "name": "order_no",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/billingOrgOrderPaymentGetResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "支付状态 | Payment status",
        "tags": [
          "BillingService"
        ]
      }
    },
    "/v1/billing/org/recharge-orders": {
      "post": {
        "operationId": "BillingService_OrgRechargeOrderCreate",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/billingOrgRechargeOrderCreateRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/billingOrgRechargeOrderCreateResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "充值下单 | Create top-up order",
        "tags": [
          "BillingService"
        ]
      }
    },
    "/v1/billing/org/subscription": {
      "get": {
        "operationId": "BillingService_OrgSubscriptionOverviewGet",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/billingOrgSubscriptionOverviewGetResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "订阅总览 | Subscription overview",
        "tags": [
          "BillingService"
        ]
      }
    },
    "/v1/billing/org/subscription/pending-changes/{change_id}": {
      "delete": {
        "operationId": "BillingService_OrgPendingChangeCancel",
        "parameters": [
          {
            "description": "变更ID | [EN] Change ID",
            "in": "path",
            "name": "change_id",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/billingOrgPendingChangeCancelResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "撤销待生效变更 | Cancel pending change",
        "tags": [
          "BillingService"
        ]
      }
    },
    "/v1/billing/org/subscription/quote": {
      "post": {
        "operationId": "BillingService_OrgSubscriptionQuote",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/billingOrgSubscriptionQuoteRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/billingOrgSubscriptionQuoteResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "报价 | Quote",
        "tags": [
          "BillingService"
        ]
      }
    },
    "/v1/billing/org/subscription/renewal": {
      "put": {
        "operationId": "BillingService_OrgRenewalSet",
        "parameters": [
          {
            "description": "已排降级时不能关自动续费（降级要靠续费落地），会返回 FailedPrecondition\n[EN] Auto-renewal cannot be turned off while a downgrade is scheduled, since the downgrade lands through\nthe renewal; that returns FailedPrecondition",
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/billingOrgRenewalSetRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/billingOrgRenewalSetResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "续费设置 | Renewal settings",
        "tags": [
          "BillingService"
        ]
      }
    },
    "/v1/billing/org/usage/daily": {
      "get": {
        "operationId": "BillingService_OrgUsageDailyList",
        "parameters": [
          {
            "default": "RESOURCE_CODE_UNSPECIFIED",
            "description": "资源编码 | [EN] Resource code\n\n - RESOURCE_CODE_UNSPECIFIED: 未指定 | [EN] Unspecified\n - RESOURCE_CODE_AGENT_SEAT: 成员席位 | [EN] Agent seat\n - RESOURCE_CODE_HOSTED_ACCOUNT: 云托管账号 | [EN] Hosted account\n - RESOURCE_CODE_OFFICIAL_ACCOUNT: 官方渠道账号 | [EN] Official channel account\n - RESOURCE_CODE_TRANSLATION_CHARS: 翻译字符 | [EN] Translation characters\n - RESOURCE_CODE_AI_TOKENS: AI token | [EN] AI tokens",
            "enum": [
              "RESOURCE_CODE_UNSPECIFIED",
              "RESOURCE_CODE_AGENT_SEAT",
              "RESOURCE_CODE_HOSTED_ACCOUNT",
              "RESOURCE_CODE_OFFICIAL_ACCOUNT",
              "RESOURCE_CODE_TRANSLATION_CHARS",
              "RESOURCE_CODE_AI_TOKENS"
            ],
            "in": "query",
            "name": "resource_code",
            "required": true,
            "type": "string"
          },
          {
            "description": "最近天数：7 / 30 / 90 | [EN] Most recent days: 7, 30 or 90",
            "format": "int32",
            "in": "query",
            "maximum": 90,
            "minimum": 1,
            "name": "range_days",
            "required": true,
            "type": "integer"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/billingOrgUsageDailyListResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "每日用量 | Daily usage",
        "tags": [
          "BillingService"
        ]
      }
    },
    "/v1/billing/org/usage/members": {
      "get": {
        "operationId": "BillingService_OrgUsageMemberBreakdown",
        "parameters": [
          {
            "default": "RESOURCE_CODE_UNSPECIFIED",
            "description": "资源编码 | [EN] Resource code\n\n - RESOURCE_CODE_UNSPECIFIED: 未指定 | [EN] Unspecified\n - RESOURCE_CODE_AGENT_SEAT: 成员席位 | [EN] Agent seat\n - RESOURCE_CODE_HOSTED_ACCOUNT: 云托管账号 | [EN] Hosted account\n - RESOURCE_CODE_OFFICIAL_ACCOUNT: 官方渠道账号 | [EN] Official channel account\n - RESOURCE_CODE_TRANSLATION_CHARS: 翻译字符 | [EN] Translation characters\n - RESOURCE_CODE_AI_TOKENS: AI token | [EN] AI tokens",
            "enum": [
              "RESOURCE_CODE_UNSPECIFIED",
              "RESOURCE_CODE_AGENT_SEAT",
              "RESOURCE_CODE_HOSTED_ACCOUNT",
              "RESOURCE_CODE_OFFICIAL_ACCOUNT",
              "RESOURCE_CODE_TRANSLATION_CHARS",
              "RESOURCE_CODE_AI_TOKENS"
            ],
            "in": "query",
            "name": "resource_code",
            "required": true,
            "type": "string"
          },
          {
            "description": "某一天（YYYY-MM-DD；与 range_days 二选一） | [EN] One day as YYYY-MM-DD, or use range_days",
            "in": "query",
            "name": "date",
            "required": false,
            "type": "string"
          },
          {
            "description": "最近天数（date 为空时用） | [EN] Most recent days, when date is empty",
            "format": "int32",
            "in": "query",
            "maximum": 90,
            "minimum": 0,
            "name": "range_days",
            "required": false,
            "type": "integer"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/billingOrgUsageMemberBreakdownResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "成员用量分布 | Usage by member",
        "tags": [
          "BillingService"
        ]
      }
    },
    "/v1/billing/org/usage/quota-ledger": {
      "get": {
        "operationId": "BillingService_OrgQuotaLedgerList",
        "parameters": [
          {
            "default": "RESOURCE_CODE_UNSPECIFIED",
            "description": "资源编码 | [EN] Resource code\n\n - RESOURCE_CODE_UNSPECIFIED: 未指定 | [EN] Unspecified\n - RESOURCE_CODE_AGENT_SEAT: 成员席位 | [EN] Agent seat\n - RESOURCE_CODE_HOSTED_ACCOUNT: 云托管账号 | [EN] Hosted account\n - RESOURCE_CODE_OFFICIAL_ACCOUNT: 官方渠道账号 | [EN] Official channel account\n - RESOURCE_CODE_TRANSLATION_CHARS: 翻译字符 | [EN] Translation characters\n - RESOURCE_CODE_AI_TOKENS: AI token | [EN] AI tokens",
            "enum": [
              "RESOURCE_CODE_UNSPECIFIED",
              "RESOURCE_CODE_AGENT_SEAT",
              "RESOURCE_CODE_HOSTED_ACCOUNT",
              "RESOURCE_CODE_OFFICIAL_ACCOUNT",
              "RESOURCE_CODE_TRANSLATION_CHARS",
              "RESOURCE_CODE_AI_TOKENS"
            ],
            "in": "query",
            "name": "resource_code",
            "required": true,
            "type": "string"
          },
          {
            "description": "时间起 | [EN] From",
            "format": "date-time",
            "in": "query",
            "name": "from",
            "required": false,
            "type": "string"
          },
          {
            "description": "时间止 | [EN] To",
            "format": "date-time",
            "in": "query",
            "name": "to",
            "required": false,
            "type": "string"
          },
          {
            "collectionFormat": "multi",
            "description": "按事件类型过滤 | [EN] Filter by event type\n\n - QUOTA_EVENT_TYPE_UNSPECIFIED: 未指定 | [EN] Unspecified\n - QUOTA_EVENT_TYPE_PLAN_GRANT: 套餐发放（开通或月度重置）| [EN] Plan grant, on activation or monthly reset\n - QUOTA_EVENT_TYPE_PLAN_UPGRADE: 升级补发差额 | [EN] Upgrade top-up of the difference\n - QUOTA_EVENT_TYPE_PURCHASE: 额度包加购 | [EN] Quota package purchase\n - QUOTA_EVENT_TYPE_REFUND: 退款冲销 | [EN] Refund reversal\n - QUOTA_EVENT_TYPE_GIFT: 赠送 | [EN] Gift\n - QUOTA_EVENT_TYPE_DEDUCTION: 运营扣回 | [EN] Operator deduction\n - QUOTA_EVENT_TYPE_PLAN_EXPIRE: 到期清零 | [EN] Expiry zeroing",
            "in": "query",
            "items": {
              "enum": [
                "QUOTA_EVENT_TYPE_UNSPECIFIED",
                "QUOTA_EVENT_TYPE_PLAN_GRANT",
                "QUOTA_EVENT_TYPE_PLAN_UPGRADE",
                "QUOTA_EVENT_TYPE_PURCHASE",
                "QUOTA_EVENT_TYPE_REFUND",
                "QUOTA_EVENT_TYPE_GIFT",
                "QUOTA_EVENT_TYPE_DEDUCTION",
                "QUOTA_EVENT_TYPE_PLAN_EXPIRE"
              ],
              "type": "string"
            },
            "maxItems": 10,
            "name": "event_types",
            "required": false,
            "type": "array"
          },
          {
            "description": "翻页游标（首页留空） | [EN] Paging cursor, empty for the first page",
            "in": "query",
            "maxLength": 256,
            "name": "cursor",
            "required": false,
            "type": "string"
          },
          {
            "description": "每页条数（默认 50，最多 200） | [EN] Page size, 50 by default, at most 200",
            "format": "int32",
            "in": "query",
            "maximum": 200,
            "minimum": 0,
            "name": "limit",
            "required": false,
            "type": "integer"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/billingOrgQuotaLedgerListResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "额度流水 | Quota ledger",
        "tags": [
          "BillingService"
        ]
      }
    },
    "/v1/billing/org/usage/quotas": {
      "get": {
        "operationId": "BillingService_OrgQuotaOverviewGet",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/billingOrgQuotaOverviewGetResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "额度概览 | Quota overview",
        "tags": [
          "BillingService"
        ]
      }
    },
    "/v1/billing/subscription-event-summary": {
      "get": {
        "operationId": "BillingService_SubscriptionEventSummaryGet",
        "parameters": [
          {
            "description": "日期起（YYYY-MM-DD）| [EN] First date, YYYY-MM-DD",
            "in": "query",
            "name": "filter.start_date",
            "required": true,
            "type": "string"
          },
          {
            "description": "日期止（YYYY-MM-DD，含当天）| [EN] Last date, inclusive",
            "in": "query",
            "name": "filter.end_date",
            "required": true,
            "type": "string"
          },
          {
            "default": "SUBSCRIPTION_EVENT_TYPE_UNSPECIFIED",
            "description": "事件（汇总接口忽略）| [EN] Event; ignored by the summary\n\n - SUBSCRIPTION_EVENT_TYPE_UNSPECIFIED: 未指定 | [EN] Unspecified\n - SUBSCRIPTION_EVENT_TYPE_TRIAL_START: 开始试用 | [EN] Trial started\n - SUBSCRIPTION_EVENT_TYPE_TRIAL_END: 试用结束未付费 | [EN] Trial ended unpaid\n - SUBSCRIPTION_EVENT_TYPE_NEW: 新购 | [EN] New purchase\n - SUBSCRIPTION_EVENT_TYPE_RENEW: 续费（自动或手动）| [EN] Renewal, automatic or manual\n - SUBSCRIPTION_EVENT_TYPE_RENEW_FAILED: 续费扣款失败 | [EN] Renewal charge failed\n - SUBSCRIPTION_EVENT_TYPE_UPGRADE: 升级 | [EN] Upgrade\n - SUBSCRIPTION_EVENT_TYPE_DOWNGRADE_SCHEDULED: 降级（已安排）| [EN] Downgrade scheduled\n - SUBSCRIPTION_EVENT_TYPE_DOWNGRADE_EFFECTIVE: 降级（已生效）| [EN] Downgrade took effect\n - SUBSCRIPTION_EVENT_TYPE_DOWNGRADE_CANCELLED: 撤销降级 | [EN] Downgrade cancelled\n - SUBSCRIPTION_EVENT_TYPE_EXPIRED_FREE: 到期降为免费 | [EN] Expired to the free plan\n - SUBSCRIPTION_EVENT_TYPE_AUTO_RENEW_ON: 开启自动续费 | [EN] Auto-renewal on\n - SUBSCRIPTION_EVENT_TYPE_AUTO_RENEW_OFF: 关闭自动续费 | [EN] Auto-renewal off\n - SUBSCRIPTION_EVENT_TYPE_RENEW_CYCLE_CHANGED: 修改续费周期 | [EN] Renewal cycle changed\n - SUBSCRIPTION_EVENT_TYPE_ADDON_ADD: 加购资源位 | [EN] Seats added\n - SUBSCRIPTION_EVENT_TYPE_ADDON_REDUCE: 减少资源位 | [EN] Seats reduced\n - SUBSCRIPTION_EVENT_TYPE_ADDON_REDUCE_CANCELLED: 撤销减少资源位 | [EN] Seat reduction cancelled\n - SUBSCRIPTION_EVENT_TYPE_TRIAL_EXTEND: 运维延长试用 | [EN] Trial extended by an operator",
            "enum": [
              "SUBSCRIPTION_EVENT_TYPE_UNSPECIFIED",
              "SUBSCRIPTION_EVENT_TYPE_TRIAL_START",
              "SUBSCRIPTION_EVENT_TYPE_TRIAL_END",
              "SUBSCRIPTION_EVENT_TYPE_NEW",
              "SUBSCRIPTION_EVENT_TYPE_RENEW",
              "SUBSCRIPTION_EVENT_TYPE_RENEW_FAILED",
              "SUBSCRIPTION_EVENT_TYPE_UPGRADE",
              "SUBSCRIPTION_EVENT_TYPE_DOWNGRADE_SCHEDULED",
              "SUBSCRIPTION_EVENT_TYPE_DOWNGRADE_EFFECTIVE",
              "SUBSCRIPTION_EVENT_TYPE_DOWNGRADE_CANCELLED",
              "SUBSCRIPTION_EVENT_TYPE_EXPIRED_FREE",
              "SUBSCRIPTION_EVENT_TYPE_AUTO_RENEW_ON",
              "SUBSCRIPTION_EVENT_TYPE_AUTO_RENEW_OFF",
              "SUBSCRIPTION_EVENT_TYPE_RENEW_CYCLE_CHANGED",
              "SUBSCRIPTION_EVENT_TYPE_ADDON_ADD",
              "SUBSCRIPTION_EVENT_TYPE_ADDON_REDUCE",
              "SUBSCRIPTION_EVENT_TYPE_ADDON_REDUCE_CANCELLED",
              "SUBSCRIPTION_EVENT_TYPE_TRIAL_EXTEND"
            ],
            "in": "query",
            "name": "filter.event_type",
            "required": false,
            "type": "string"
          },
          {
            "description": "套餐，匹配变更前或变更后 | [EN] Plan, matching before or after",
            "in": "query",
            "maxLength": 32,
            "name": "filter.plan_code",
            "required": false,
            "type": "string"
          },
          {
            "description": "完整的组织 ID、工作区 ID 或订单号 | [EN] A full organization ID, workspace ID or order number",
            "in": "query",
            "maxLength": 64,
            "name": "filter.keyword",
            "required": false,
            "type": "string"
          },
          {
            "collectionFormat": "multi",
            "description": "组织（按名称在 AC 搜到的 ID）| [EN] Organizations, IDs found by name in AC",
            "in": "query",
            "items": {
              "maxLength": 64,
              "type": "string"
            },
            "maxItems": 100,
            "name": "filter.org_ids",
            "required": false,
            "type": "array"
          },
          {
            "collectionFormat": "multi",
            "description": "工作区（按名称在 AC 搜到的 ID）| [EN] Workspaces, IDs found by name in AC",
            "in": "query",
            "items": {
              "maxLength": 64,
              "type": "string"
            },
            "maxItems": 100,
            "name": "filter.workspace_ids",
            "required": false,
            "type": "array"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/billingSubscriptionEventSummaryGetResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "订阅变更汇总 | Subscription change summary",
        "tags": [
          "BillingService"
        ]
      }
    },
    "/v1/billing/subscription-events": {
      "get": {
        "operationId": "BillingService_SubscriptionEventList",
        "parameters": [
          {
            "description": "日期起（YYYY-MM-DD）| [EN] First date, YYYY-MM-DD",
            "in": "query",
            "name": "filter.start_date",
            "required": true,
            "type": "string"
          },
          {
            "description": "日期止（YYYY-MM-DD，含当天）| [EN] Last date, inclusive",
            "in": "query",
            "name": "filter.end_date",
            "required": true,
            "type": "string"
          },
          {
            "default": "SUBSCRIPTION_EVENT_TYPE_UNSPECIFIED",
            "description": "事件（汇总接口忽略）| [EN] Event; ignored by the summary\n\n - SUBSCRIPTION_EVENT_TYPE_UNSPECIFIED: 未指定 | [EN] Unspecified\n - SUBSCRIPTION_EVENT_TYPE_TRIAL_START: 开始试用 | [EN] Trial started\n - SUBSCRIPTION_EVENT_TYPE_TRIAL_END: 试用结束未付费 | [EN] Trial ended unpaid\n - SUBSCRIPTION_EVENT_TYPE_NEW: 新购 | [EN] New purchase\n - SUBSCRIPTION_EVENT_TYPE_RENEW: 续费（自动或手动）| [EN] Renewal, automatic or manual\n - SUBSCRIPTION_EVENT_TYPE_RENEW_FAILED: 续费扣款失败 | [EN] Renewal charge failed\n - SUBSCRIPTION_EVENT_TYPE_UPGRADE: 升级 | [EN] Upgrade\n - SUBSCRIPTION_EVENT_TYPE_DOWNGRADE_SCHEDULED: 降级（已安排）| [EN] Downgrade scheduled\n - SUBSCRIPTION_EVENT_TYPE_DOWNGRADE_EFFECTIVE: 降级（已生效）| [EN] Downgrade took effect\n - SUBSCRIPTION_EVENT_TYPE_DOWNGRADE_CANCELLED: 撤销降级 | [EN] Downgrade cancelled\n - SUBSCRIPTION_EVENT_TYPE_EXPIRED_FREE: 到期降为免费 | [EN] Expired to the free plan\n - SUBSCRIPTION_EVENT_TYPE_AUTO_RENEW_ON: 开启自动续费 | [EN] Auto-renewal on\n - SUBSCRIPTION_EVENT_TYPE_AUTO_RENEW_OFF: 关闭自动续费 | [EN] Auto-renewal off\n - SUBSCRIPTION_EVENT_TYPE_RENEW_CYCLE_CHANGED: 修改续费周期 | [EN] Renewal cycle changed\n - SUBSCRIPTION_EVENT_TYPE_ADDON_ADD: 加购资源位 | [EN] Seats added\n - SUBSCRIPTION_EVENT_TYPE_ADDON_REDUCE: 减少资源位 | [EN] Seats reduced\n - SUBSCRIPTION_EVENT_TYPE_ADDON_REDUCE_CANCELLED: 撤销减少资源位 | [EN] Seat reduction cancelled\n - SUBSCRIPTION_EVENT_TYPE_TRIAL_EXTEND: 运维延长试用 | [EN] Trial extended by an operator",
            "enum": [
              "SUBSCRIPTION_EVENT_TYPE_UNSPECIFIED",
              "SUBSCRIPTION_EVENT_TYPE_TRIAL_START",
              "SUBSCRIPTION_EVENT_TYPE_TRIAL_END",
              "SUBSCRIPTION_EVENT_TYPE_NEW",
              "SUBSCRIPTION_EVENT_TYPE_RENEW",
              "SUBSCRIPTION_EVENT_TYPE_RENEW_FAILED",
              "SUBSCRIPTION_EVENT_TYPE_UPGRADE",
              "SUBSCRIPTION_EVENT_TYPE_DOWNGRADE_SCHEDULED",
              "SUBSCRIPTION_EVENT_TYPE_DOWNGRADE_EFFECTIVE",
              "SUBSCRIPTION_EVENT_TYPE_DOWNGRADE_CANCELLED",
              "SUBSCRIPTION_EVENT_TYPE_EXPIRED_FREE",
              "SUBSCRIPTION_EVENT_TYPE_AUTO_RENEW_ON",
              "SUBSCRIPTION_EVENT_TYPE_AUTO_RENEW_OFF",
              "SUBSCRIPTION_EVENT_TYPE_RENEW_CYCLE_CHANGED",
              "SUBSCRIPTION_EVENT_TYPE_ADDON_ADD",
              "SUBSCRIPTION_EVENT_TYPE_ADDON_REDUCE",
              "SUBSCRIPTION_EVENT_TYPE_ADDON_REDUCE_CANCELLED",
              "SUBSCRIPTION_EVENT_TYPE_TRIAL_EXTEND"
            ],
            "in": "query",
            "name": "filter.event_type",
            "required": false,
            "type": "string"
          },
          {
            "description": "套餐，匹配变更前或变更后 | [EN] Plan, matching before or after",
            "in": "query",
            "maxLength": 32,
            "name": "filter.plan_code",
            "required": false,
            "type": "string"
          },
          {
            "description": "完整的组织 ID、工作区 ID 或订单号 | [EN] A full organization ID, workspace ID or order number",
            "in": "query",
            "maxLength": 64,
            "name": "filter.keyword",
            "required": false,
            "type": "string"
          },
          {
            "collectionFormat": "multi",
            "description": "组织（按名称在 AC 搜到的 ID）| [EN] Organizations, IDs found by name in AC",
            "in": "query",
            "items": {
              "maxLength": 64,
              "type": "string"
            },
            "maxItems": 100,
            "name": "filter.org_ids",
            "required": false,
            "type": "array"
          },
          {
            "collectionFormat": "multi",
            "description": "工作区（按名称在 AC 搜到的 ID）| [EN] Workspaces, IDs found by name in AC",
            "in": "query",
            "items": {
              "maxLength": 64,
              "type": "string"
            },
            "maxItems": 100,
            "name": "filter.workspace_ids",
            "required": false,
            "type": "array"
          },
          {
            "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": true,
            "type": "integer"
          },
          {
            "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/billingSubscriptionEventListResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "订阅变更 | List subscription changes",
        "tags": [
          "BillingService"
        ]
      }
    },
    "/v1/billing/subscriptions/{workspace_id}": {
      "get": {
        "operationId": "BillingService_SubscriptionGet",
        "parameters": [
          {
            "description": "工作区ID | [EN] Workspace ID",
            "in": "path",
            "name": "workspace_id",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/billingSubscriptionGetResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "读取订阅 | Get subscription",
        "tags": [
          "BillingService"
        ]
      }
    },
    "/v1/billing/subscriptions/{workspace_id}/changes": {
      "post": {
        "operationId": "BillingService_SubscriptionChangeApply",
        "parameters": [
          {
            "description": "工作区ID | [EN] Workspace ID",
            "in": "path",
            "name": "workspace_id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/BillingServiceSubscriptionChangeApplyBody"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/billingSubscriptionChangeApplyResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "应用零元变更 | Apply a zero-cost change",
        "tags": [
          "BillingService"
        ]
      }
    },
    "/v1/billing/subscriptions/{workspace_id}/pending-changes/{change_id}": {
      "delete": {
        "operationId": "BillingService_PendingChangeCancel",
        "parameters": [
          {
            "description": "工作区ID | [EN] Workspace ID",
            "in": "path",
            "name": "workspace_id",
            "required": true,
            "type": "string"
          },
          {
            "description": "单据ID | [EN] Record ID",
            "in": "path",
            "name": "change_id",
            "required": true,
            "type": "string"
          },
          {
            "description": "分区名（进审计标题）| [EN] Section name, used as the audit title",
            "in": "query",
            "maxLength": 32,
            "name": "meta.section_label",
            "required": true,
            "type": "string"
          },
          {
            "description": "变更说明（必填）| [EN] Change note, mandatory",
            "in": "query",
            "maxLength": 200,
            "minLength": 2,
            "name": "meta.remark",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/billingPendingChangeCancelResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "撤销待生效变更 | Cancel a scheduled change",
        "tags": [
          "BillingService"
        ]
      }
    },
    "/v1/billing/subscriptions/{workspace_id}/quote": {
      "post": {
        "operationId": "BillingService_SubscriptionChangeQuote",
        "parameters": [
          {
            "description": "工作区ID | [EN] Workspace ID",
            "in": "path",
            "name": "workspace_id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/BillingServiceSubscriptionChangeQuoteBody"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/billingSubscriptionChangeQuoteResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "变更报价 | Quote a change",
        "tags": [
          "BillingService"
        ]
      }
    },
    "/v1/billing/usage-record-summary": {
      "get": {
        "operationId": "BillingService_UsageRecordSummaryGet",
        "parameters": [
          {
            "default": "RESOURCE_CODE_UNSPECIFIED",
            "description": "用量类型：翻译字符或 AI token | [EN] Usage kind: translation characters or AI tokens\n\n - RESOURCE_CODE_UNSPECIFIED: 未指定 | [EN] Unspecified\n - RESOURCE_CODE_AGENT_SEAT: 成员席位 | [EN] Agent seat\n - RESOURCE_CODE_HOSTED_ACCOUNT: 云托管账号 | [EN] Hosted account\n - RESOURCE_CODE_OFFICIAL_ACCOUNT: 官方渠道账号 | [EN] Official channel account\n - RESOURCE_CODE_TRANSLATION_CHARS: 翻译字符 | [EN] Translation characters\n - RESOURCE_CODE_AI_TOKENS: AI token | [EN] AI tokens",
            "enum": [
              "RESOURCE_CODE_UNSPECIFIED",
              "RESOURCE_CODE_AGENT_SEAT",
              "RESOURCE_CODE_HOSTED_ACCOUNT",
              "RESOURCE_CODE_OFFICIAL_ACCOUNT",
              "RESOURCE_CODE_TRANSLATION_CHARS",
              "RESOURCE_CODE_AI_TOKENS"
            ],
            "in": "query",
            "name": "filter.resource_code",
            "required": true,
            "type": "string"
          },
          {
            "description": "日期起（YYYY-MM-DD）| [EN] First date, YYYY-MM-DD",
            "in": "query",
            "name": "filter.start_date",
            "required": true,
            "type": "string"
          },
          {
            "description": "日期止（YYYY-MM-DD，含当天）| [EN] Last date, inclusive",
            "in": "query",
            "name": "filter.end_date",
            "required": true,
            "type": "string"
          },
          {
            "description": "完整的组织 ID 或工作区 ID | [EN] A full organization or workspace ID",
            "in": "query",
            "maxLength": 64,
            "name": "filter.keyword",
            "required": false,
            "type": "string"
          },
          {
            "collectionFormat": "multi",
            "description": "组织（按名称在 AC 搜到的 ID）| [EN] Organizations, IDs found by name in AC",
            "in": "query",
            "items": {
              "maxLength": 64,
              "type": "string"
            },
            "maxItems": 100,
            "name": "filter.org_ids",
            "required": false,
            "type": "array"
          },
          {
            "collectionFormat": "multi",
            "description": "工作区（按名称在 AC 搜到的 ID）| [EN] Workspaces, IDs found by name in AC",
            "in": "query",
            "items": {
              "maxLength": 64,
              "type": "string"
            },
            "maxItems": 100,
            "name": "filter.workspace_ids",
            "required": false,
            "type": "array"
          },
          {
            "default": "USAGE_RECORD_ONLY_UNSPECIFIED",
            "description": "只看超额或只看暂停（汇总接口忽略）| [EN] Overage-only or paused-only; ignored by the summary\n\n - USAGE_RECORD_ONLY_UNSPECIFIED: 全部 | [EN] All rows\n - USAGE_RECORD_ONLY_OVERAGE: 只看有超额的 | [EN] Rows with overage\n - USAGE_RECORD_ONLY_PAUSED: 只看超额被暂停拦下的 | [EN] Rows where overage was refused while paused",
            "enum": [
              "USAGE_RECORD_ONLY_UNSPECIFIED",
              "USAGE_RECORD_ONLY_OVERAGE",
              "USAGE_RECORD_ONLY_PAUSED"
            ],
            "in": "query",
            "name": "filter.only",
            "required": false,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/billingUsageRecordSummaryGetResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "用量记录汇总 | Usage record summary",
        "tags": [
          "BillingService"
        ]
      }
    },
    "/v1/billing/usage-records": {
      "get": {
        "operationId": "BillingService_UsageRecordList",
        "parameters": [
          {
            "default": "RESOURCE_CODE_UNSPECIFIED",
            "description": "用量类型：翻译字符或 AI token | [EN] Usage kind: translation characters or AI tokens\n\n - RESOURCE_CODE_UNSPECIFIED: 未指定 | [EN] Unspecified\n - RESOURCE_CODE_AGENT_SEAT: 成员席位 | [EN] Agent seat\n - RESOURCE_CODE_HOSTED_ACCOUNT: 云托管账号 | [EN] Hosted account\n - RESOURCE_CODE_OFFICIAL_ACCOUNT: 官方渠道账号 | [EN] Official channel account\n - RESOURCE_CODE_TRANSLATION_CHARS: 翻译字符 | [EN] Translation characters\n - RESOURCE_CODE_AI_TOKENS: AI token | [EN] AI tokens",
            "enum": [
              "RESOURCE_CODE_UNSPECIFIED",
              "RESOURCE_CODE_AGENT_SEAT",
              "RESOURCE_CODE_HOSTED_ACCOUNT",
              "RESOURCE_CODE_OFFICIAL_ACCOUNT",
              "RESOURCE_CODE_TRANSLATION_CHARS",
              "RESOURCE_CODE_AI_TOKENS"
            ],
            "in": "query",
            "name": "filter.resource_code",
            "required": true,
            "type": "string"
          },
          {
            "description": "日期起（YYYY-MM-DD）| [EN] First date, YYYY-MM-DD",
            "in": "query",
            "name": "filter.start_date",
            "required": true,
            "type": "string"
          },
          {
            "description": "日期止（YYYY-MM-DD，含当天）| [EN] Last date, inclusive",
            "in": "query",
            "name": "filter.end_date",
            "required": true,
            "type": "string"
          },
          {
            "description": "完整的组织 ID 或工作区 ID | [EN] A full organization or workspace ID",
            "in": "query",
            "maxLength": 64,
            "name": "filter.keyword",
            "required": false,
            "type": "string"
          },
          {
            "collectionFormat": "multi",
            "description": "组织（按名称在 AC 搜到的 ID）| [EN] Organizations, IDs found by name in AC",
            "in": "query",
            "items": {
              "maxLength": 64,
              "type": "string"
            },
            "maxItems": 100,
            "name": "filter.org_ids",
            "required": false,
            "type": "array"
          },
          {
            "collectionFormat": "multi",
            "description": "工作区（按名称在 AC 搜到的 ID）| [EN] Workspaces, IDs found by name in AC",
            "in": "query",
            "items": {
              "maxLength": 64,
              "type": "string"
            },
            "maxItems": 100,
            "name": "filter.workspace_ids",
            "required": false,
            "type": "array"
          },
          {
            "default": "USAGE_RECORD_ONLY_UNSPECIFIED",
            "description": "只看超额或只看暂停（汇总接口忽略）| [EN] Overage-only or paused-only; ignored by the summary\n\n - USAGE_RECORD_ONLY_UNSPECIFIED: 全部 | [EN] All rows\n - USAGE_RECORD_ONLY_OVERAGE: 只看有超额的 | [EN] Rows with overage\n - USAGE_RECORD_ONLY_PAUSED: 只看超额被暂停拦下的 | [EN] Rows where overage was refused while paused",
            "enum": [
              "USAGE_RECORD_ONLY_UNSPECIFIED",
              "USAGE_RECORD_ONLY_OVERAGE",
              "USAGE_RECORD_ONLY_PAUSED"
            ],
            "in": "query",
            "name": "filter.only",
            "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": true,
            "type": "integer"
          },
          {
            "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/billingUsageRecordListResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "用量记录 | List usage records",
        "tags": [
          "BillingService"
        ]
      }
    },
    "/v1/config/{key}": {
      "get": {
        "operationId": "ConfigCenterService_PublicDocumentGet",
        "parameters": [
          {
            "description": "文档键 | [EN] Document key",
            "in": "path",
            "maxLength": 255,
            "name": "key",
            "pattern": ".+",
            "required": true,
            "type": "string"
          },
          {
            "description": "二级选择器，例如字典编码 | [EN] Secondary selector such as a dictionary code",
            "in": "query",
            "maxLength": 64,
            "name": "selector",
            "required": false,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/config_centerPublicDocumentGetResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "读公开投影 | [EN] Get a public projection",
        "tags": [
          "ConfigCenterService"
        ]
      }
    },
    "/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/config/documents": {
      "get": {
        "operationId": "ConfigCenterService_OpsDocumentList",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/config_centerOpsDocumentListResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "文档列表 | [EN] List documents",
        "tags": [
          "ConfigCenterService"
        ]
      }
    },
    "/v1/ops/config/documents/{key}": {
      "get": {
        "description": "注意注册顺序：grpc-gateway 的 mux 后注册的处理器排在前面，{key=**} 又能匹配空路径；\n文档列表必须排在读文档之后声明，否则 /v1/ops/config/documents 会被读文档抢走并当成空 key\n[EN] Registration order matters: grpc-gateway prepends the latest handler and {key=**} matches an empty\npath, so the document list must be declared after the get route; otherwise /v1/ops/config/documents is\ncaptured by the get route with an empty key.",
        "operationId": "ConfigCenterService_OpsDocumentGet",
        "parameters": [
          {
            "description": "文档键 | [EN] Document key",
            "in": "path",
            "maxLength": 255,
            "name": "key",
            "pattern": ".+",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/config_centerOpsDocumentGetResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "读文档 | [EN] Get a document",
        "tags": [
          "ConfigCenterService"
        ]
      },
      "put": {
        "operationId": "ConfigCenterService_OpsDocumentSave",
        "parameters": [
          {
            "description": "文档键 | [EN] Document key",
            "in": "path",
            "maxLength": 255,
            "name": "key",
            "pattern": ".+",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ConfigCenterServiceOpsDocumentSaveBody"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/config_centerOpsDocumentSaveResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "整份保存 | [EN] Save a document whole",
        "tags": [
          "ConfigCenterService"
        ]
      }
    },
    "/v1/ops/config/documents/{key}/revisions": {
      "get": {
        "operationId": "ConfigCenterService_OpsDocumentHistory",
        "parameters": [
          {
            "description": "文档键 | [EN] Document key",
            "in": "path",
            "maxLength": 255,
            "name": "key",
            "pattern": ".+",
            "required": true,
            "type": "string"
          },
          {
            "description": "当前页码 | [EN] Current page number",
            "format": "int32",
            "in": "query",
            "minimum": 1,
            "name": "paging.page",
            "required": false,
            "type": "integer"
          },
          {
            "description": "每页条数（上限保护，防止一次拉全表） | [EN] Page size, capped to protect the backend",
            "format": "int32",
            "in": "query",
            "maximum": 200,
            "minimum": 1,
            "name": "paging.size",
            "required": false,
            "type": "integer"
          },
          {
            "description": "总条数（响应字段，请求 query 不继承必填） | [EN] Total count",
            "format": "int32",
            "in": "query",
            "name": "paging.total",
            "required": false,
            "type": "integer"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/config_centerOpsDocumentHistoryResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "revision 历史 | [EN] Revision history",
        "tags": [
          "ConfigCenterService"
        ]
      }
    },
    "/v1/ops/config/documents/{key}/revisions/{revision}": {
      "get": {
        "operationId": "ConfigCenterService_OpsDocumentRevisionGet",
        "parameters": [
          {
            "description": "文档键 | [EN] Document key",
            "in": "path",
            "maxLength": 255,
            "name": "key",
            "pattern": ".+",
            "required": true,
            "type": "string"
          },
          {
            "description": "revision | [EN] Revision",
            "format": "int64",
            "in": "path",
            "minLength": 1,
            "name": "revision",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/config_centerOpsDocumentRevisionGetResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "读某个 revision | [EN] Get one revision",
        "tags": [
          "ConfigCenterService"
        ]
      }
    },
    "/v1/ops/config/documents/{key}/revisions/{revision}/restore": {
      "post": {
        "operationId": "ConfigCenterService_OpsDocumentRestore",
        "parameters": [
          {
            "description": "文档键 | [EN] Document key",
            "in": "path",
            "maxLength": 255,
            "name": "key",
            "pattern": ".+",
            "required": true,
            "type": "string"
          },
          {
            "description": "要恢复的 revision | [EN] Revision to restore",
            "format": "int64",
            "in": "path",
            "minLength": 1,
            "name": "revision",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ConfigCenterServiceOpsDocumentRestoreBody"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/config_centerOpsDocumentSaveResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "回滚到某个 revision | [EN] Roll back to a revision",
        "tags": [
          "ConfigCenterService"
        ]
      }
    },
    "/v1/ops/config/sensitive/{key}": {
      "get": {
        "description": "只接受运维域令牌；billing/** 与 platform/translation/credentials 只能走这条路由，普通文档读接口会拒绝\n[EN] Ops tokens only; billing/** and platform/translation/credentials are reachable only here, and the ordinary\ndocument read route rejects them",
        "operationId": "ConfigCenterService_OpsSensitiveDocumentGet",
        "parameters": [
          {
            "description": "文档键 | [EN] Document key",
            "in": "path",
            "maxLength": 255,
            "name": "key",
            "pattern": ".+",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/config_centerOpsDocumentGetResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "读敏感文档 | [EN] Get a sensitive document",
        "tags": [
          "ConfigCenterService"
        ]
      },
      "put": {
        "operationId": "ConfigCenterService_OpsSensitiveDocumentSave",
        "parameters": [
          {
            "description": "文档键 | [EN] Document key",
            "in": "path",
            "maxLength": 255,
            "name": "key",
            "pattern": ".+",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ConfigCenterServiceOpsSensitiveDocumentSaveBody"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/config_centerOpsDocumentSaveResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "整份保存敏感文档 | [EN] Save a sensitive document whole",
        "tags": [
          "ConfigCenterService"
        ]
      }
    },
    "/v1/ops/config/sensitive/{key}/revisions": {
      "get": {
        "operationId": "ConfigCenterService_OpsSensitiveDocumentHistory",
        "parameters": [
          {
            "description": "文档键 | [EN] Document key",
            "in": "path",
            "maxLength": 255,
            "name": "key",
            "pattern": ".+",
            "required": true,
            "type": "string"
          },
          {
            "description": "当前页码 | [EN] Current page number",
            "format": "int32",
            "in": "query",
            "minimum": 1,
            "name": "paging.page",
            "required": false,
            "type": "integer"
          },
          {
            "description": "每页条数（上限保护，防止一次拉全表） | [EN] Page size, capped to protect the backend",
            "format": "int32",
            "in": "query",
            "maximum": 200,
            "minimum": 1,
            "name": "paging.size",
            "required": false,
            "type": "integer"
          },
          {
            "description": "总条数（响应字段，请求 query 不继承必填） | [EN] Total count",
            "format": "int32",
            "in": "query",
            "name": "paging.total",
            "required": false,
            "type": "integer"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/config_centerOpsDocumentHistoryResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "敏感文档 revision 历史 | [EN] Revision history of a sensitive document",
        "tags": [
          "ConfigCenterService"
        ]
      }
    },
    "/v1/ops/config/sensitive/{key}/revisions/{revision}": {
      "get": {
        "operationId": "ConfigCenterService_OpsSensitiveDocumentRevisionGet",
        "parameters": [
          {
            "description": "文档键 | [EN] Document key",
            "in": "path",
            "maxLength": 255,
            "name": "key",
            "pattern": ".+",
            "required": true,
            "type": "string"
          },
          {
            "description": "revision | [EN] Revision",
            "format": "int64",
            "in": "path",
            "minLength": 1,
            "name": "revision",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/config_centerOpsDocumentRevisionGetResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "读敏感文档的某个 revision | [EN] Get one revision of a sensitive document",
        "tags": [
          "ConfigCenterService"
        ]
      }
    },
    "/v1/ops/config/sensitive/{key}/revisions/{revision}/restore": {
      "post": {
        "operationId": "ConfigCenterService_OpsSensitiveDocumentRestore",
        "parameters": [
          {
            "description": "文档键 | [EN] Document key",
            "in": "path",
            "maxLength": 255,
            "name": "key",
            "pattern": ".+",
            "required": true,
            "type": "string"
          },
          {
            "description": "要恢复的 revision | [EN] Revision to restore",
            "format": "int64",
            "in": "path",
            "minLength": 1,
            "name": "revision",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ConfigCenterServiceOpsSensitiveDocumentRestoreBody"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/config_centerOpsDocumentSaveResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "回滚敏感文档到某个 revision | [EN] Roll back a sensitive document to a revision",
        "tags": [
          "ConfigCenterService"
        ]
      }
    },
    "/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"
        ]
      }
    },
    "/v1/wallet/accounts/{workspace_id}": {
      "get": {
        "operationId": "WalletService_WalletGet",
        "parameters": [
          {
            "description": "工作区ID | [EN] Workspace ID",
            "in": "path",
            "name": "workspace_id",
            "required": true,
            "type": "string"
          },
          {
            "description": "带上合计（运维工作区抽屉用，多两条只扫索引的 SUM；计费读余额不传）| [EN] Also return totals, for the ops workspace drawer at two index-only SUMs; billing's balance reads leave it off",
            "in": "query",
            "name": "with_totals",
            "required": false,
            "type": "boolean"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/walletWalletGetResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "读取钱包 | Get wallet",
        "tags": [
          "WalletService"
        ]
      }
    },
    "/v1/wallet/accounts/{workspace_id}/credits": {
      "post": {
        "operationId": "WalletService_WalletCredit",
        "parameters": [
          {
            "description": "工作区ID | [EN] Workspace ID",
            "in": "path",
            "name": "workspace_id",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/WalletServiceWalletCreditBody"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/walletWalletCreditResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "钱包入账 | Credit the wallet",
        "tags": [
          "WalletService"
        ]
      }
    },
    "/v1/wallet/accounts/{workspace_id}/txns": {
      "get": {
        "operationId": "WalletService_WalletTxnList",
        "parameters": [
          {
            "description": "工作区ID | [EN] Workspace ID",
            "in": "path",
            "name": "workspace_id",
            "required": true,
            "type": "string"
          },
          {
            "default": "WALLET_TXN_TYPE_UNSPECIFIED",
            "description": "按类型过滤（不传则全部）| [EN] Filter by type; all when unset\n\n - WALLET_TXN_TYPE_UNSPECIFIED: 未指定 | [EN] Unspecified\n - WALLET_TXN_TYPE_RECHARGE: 充值 | [EN] Top-up\n - WALLET_TXN_TYPE_SUBSCRIPTION: 订阅费 | [EN] Subscription\n - WALLET_TXN_TYPE_RESOURCE: 资源加购 | [EN] Resource purchase\n - WALLET_TXN_TYPE_TRANSLATION: 翻译超额扣费 | [EN] Translation overage\n - WALLET_TXN_TYPE_AI: AI 超额扣费 | [EN] AI overage\n - WALLET_TXN_TYPE_REFUND: 退款 | [EN] Refund\n - WALLET_TXN_TYPE_GIFT: 赠金 | [EN] Gift\n - WALLET_TXN_TYPE_DEDUCTION: 运营扣回 | [EN] Operator deduction",
            "enum": [
              "WALLET_TXN_TYPE_UNSPECIFIED",
              "WALLET_TXN_TYPE_RECHARGE",
              "WALLET_TXN_TYPE_SUBSCRIPTION",
              "WALLET_TXN_TYPE_RESOURCE",
              "WALLET_TXN_TYPE_TRANSLATION",
              "WALLET_TXN_TYPE_AI",
              "WALLET_TXN_TYPE_REFUND",
              "WALLET_TXN_TYPE_GIFT",
              "WALLET_TXN_TYPE_DEDUCTION"
            ],
            "in": "query",
            "name": "txn_type",
            "required": false,
            "type": "string"
          },
          {
            "description": "每页条数（不传取 50）| [EN] Page size, 50 when unset",
            "format": "int32",
            "in": "query",
            "maximum": 200,
            "minimum": 0,
            "name": "limit",
            "required": false,
            "type": "integer"
          },
          {
            "description": "翻页游标：上一页响应的 next_cursor，首页不传 | [EN] Page cursor: the previous response's next_cursor; omit for the first page",
            "in": "query",
            "maxLength": 128,
            "name": "cursor",
            "required": false,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/walletWalletTxnListResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "钱包流水 | List transactions",
        "tags": [
          "WalletService"
        ]
      }
    },
    "/v1/wallet/ops/bank-transfers": {
      "post": {
        "operationId": "WalletService_WalletBankTransferCredit",
        "parameters": [
          {
            "description": "一笔银行流水只能入账一次：银行流水号全局唯一（不分大小写），重复时拒绝并给出已入账的工作区\n记一笔「充值」流水，支付方式对公转账，摘要是银行流水号，操作人取令牌\n\n[EN] One bank trade credits once: the trade number is globally unique, case-insensitively, and a repeat is refused\nnaming the workspace it went to. Books a top-up paid by bank transfer whose summary is the trade number, with the\noperator taken from the token.",
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/walletWalletBankTransferCreditRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/walletWalletBankTransferCreditResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "对公转账入账 | Credit a bank transfer",
        "tags": [
          "WalletService"
        ]
      }
    },
    "/v1/wallet/ops/bank-transfers/targets": {
      "get": {
        "operationId": "WalletService_WalletTransferTargetList",
        "parameters": [
          {
            "description": "转账识别码（LM 开头），或组织 / 工作区的名称、ID | [EN] Transfer reference (LM…), or an organization or workspace name or ID",
            "in": "query",
            "maxLength": 128,
            "name": "keyword",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/walletWalletTransferTargetListResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "找入账工作区 | Find bank transfer targets",
        "tags": [
          "WalletService"
        ]
      }
    },
    "/v1/wallet/ops/ledger": {
      "get": {
        "operationId": "WalletService_WalletLedgerList",
        "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] From, inclusive",
            "format": "date-time",
            "in": "query",
            "name": "from",
            "required": false,
            "type": "string"
          },
          {
            "description": "时间止（不含）| [EN] To, exclusive",
            "format": "date-time",
            "in": "query",
            "name": "to",
            "required": false,
            "type": "string"
          },
          {
            "description": "关键词 | [EN] Keyword",
            "in": "query",
            "maxLength": 128,
            "name": "keyword",
            "required": false,
            "type": "string"
          },
          {
            "default": "WALLET_TXN_TYPE_UNSPECIFIED",
            "description": "按类型过滤（不传则全部）| [EN] Filter by type; all when unset\n\n - WALLET_TXN_TYPE_UNSPECIFIED: 未指定 | [EN] Unspecified\n - WALLET_TXN_TYPE_RECHARGE: 充值 | [EN] Top-up\n - WALLET_TXN_TYPE_SUBSCRIPTION: 订阅费 | [EN] Subscription\n - WALLET_TXN_TYPE_RESOURCE: 资源加购 | [EN] Resource purchase\n - WALLET_TXN_TYPE_TRANSLATION: 翻译超额扣费 | [EN] Translation overage\n - WALLET_TXN_TYPE_AI: AI 超额扣费 | [EN] AI overage\n - WALLET_TXN_TYPE_REFUND: 退款 | [EN] Refund\n - WALLET_TXN_TYPE_GIFT: 赠金 | [EN] Gift\n - WALLET_TXN_TYPE_DEDUCTION: 运营扣回 | [EN] Operator deduction",
            "enum": [
              "WALLET_TXN_TYPE_UNSPECIFIED",
              "WALLET_TXN_TYPE_RECHARGE",
              "WALLET_TXN_TYPE_SUBSCRIPTION",
              "WALLET_TXN_TYPE_RESOURCE",
              "WALLET_TXN_TYPE_TRANSLATION",
              "WALLET_TXN_TYPE_AI",
              "WALLET_TXN_TYPE_REFUND",
              "WALLET_TXN_TYPE_GIFT",
              "WALLET_TXN_TYPE_DEDUCTION"
            ],
            "in": "query",
            "name": "txn_type",
            "required": false,
            "type": "string"
          },
          {
            "default": "PAYMENT_METHOD_UNSPECIFIED",
            "description": "按第三方方式或对公转账过滤（不传则全部）| [EN] Filter by third-party method or bank transfer; all when unset\n\n - PAYMENT_METHOD_UNSPECIFIED: 未指定 | [EN] Unspecified\n - PAYMENT_METHOD_CARD: 银行卡 | [EN] Card\n - PAYMENT_METHOD_WECHAT: 微信支付 | [EN] WeChat Pay\n - PAYMENT_METHOD_ALIPAY: 支付宝 | [EN] Alipay\n - PAYMENT_METHOD_PAYPAL: PayPal | [EN] PayPal\n - PAYMENT_METHOD_CRYPTO: 虚拟币 | [EN] Crypto\n - PAYMENT_METHOD_TRANSFER: 对公转账（仅充值）| [EN] Bank transfer, top-up only",
            "enum": [
              "PAYMENT_METHOD_UNSPECIFIED",
              "PAYMENT_METHOD_CARD",
              "PAYMENT_METHOD_WECHAT",
              "PAYMENT_METHOD_ALIPAY",
              "PAYMENT_METHOD_PAYPAL",
              "PAYMENT_METHOD_CRYPTO",
              "PAYMENT_METHOD_TRANSFER"
            ],
            "in": "query",
            "name": "payment_method",
            "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"
          },
          {
            "description": "只看用钱包余额支付的（含组合支付）| [EN] Only entries paid from the wallet balance, mixed payments included",
            "in": "query",
            "name": "wallet_paid",
            "required": false,
            "type": "boolean"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/walletWalletLedgerListResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "全平台钱包流水 | Wallet ledger",
        "tags": [
          "WalletService"
        ]
      }
    },
    "/v1/wallet/ops/ledger/summary": {
      "get": {
        "operationId": "WalletService_WalletLedgerSummary",
        "parameters": [
          {
            "description": "时间起（含）| [EN] From, inclusive",
            "format": "date-time",
            "in": "query",
            "name": "from",
            "required": false,
            "type": "string"
          },
          {
            "description": "时间止（不含）| [EN] To, exclusive",
            "format": "date-time",
            "in": "query",
            "name": "to",
            "required": false,
            "type": "string"
          },
          {
            "description": "关键词 | [EN] Keyword",
            "in": "query",
            "maxLength": 128,
            "name": "keyword",
            "required": false,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/walletWalletLedgerSummaryResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "钱包流水汇总 | Wallet ledger summary",
        "tags": [
          "WalletService"
        ]
      }
    },
    "/v1/wallet/org/account": {
      "get": {
        "operationId": "WalletService_OrgWalletGet",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/walletOrgWalletGetResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "读取钱包 | Get wallet",
        "tags": [
          "WalletService"
        ]
      }
    },
    "/v1/wallet/org/account/alert": {
      "put": {
        "operationId": "WalletService_OrgWalletAlertSet",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/walletOrgWalletAlertSetRequest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/walletOrgWalletAlertSetResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "低余额提醒 | Low-balance alert",
        "tags": [
          "WalletService"
        ]
      }
    },
    "/v1/wallet/org/ledger": {
      "get": {
        "operationId": "WalletService_OrgWalletLedgerList",
        "parameters": [
          {
            "description": "时间起（含）| [EN] From, inclusive",
            "format": "date-time",
            "in": "query",
            "name": "from",
            "required": false,
            "type": "string"
          },
          {
            "description": "时间止（不含）| [EN] To, exclusive",
            "format": "date-time",
            "in": "query",
            "name": "to",
            "required": false,
            "type": "string"
          },
          {
            "collectionFormat": "multi",
            "description": "按工作区过滤（任一，须属于本组织） | [EN] Filter by workspace, any of them; each must belong to this org",
            "in": "query",
            "items": {
              "type": "string"
            },
            "maxItems": 100,
            "name": "workspace_ids",
            "required": false,
            "type": "array"
          },
          {
            "collectionFormat": "multi",
            "description": "按类型过滤（任一） | [EN] Filter by type, any of them\n\n - WALLET_TXN_TYPE_UNSPECIFIED: 未指定 | [EN] Unspecified\n - WALLET_TXN_TYPE_RECHARGE: 充值 | [EN] Top-up\n - WALLET_TXN_TYPE_SUBSCRIPTION: 订阅费 | [EN] Subscription\n - WALLET_TXN_TYPE_RESOURCE: 资源加购 | [EN] Resource purchase\n - WALLET_TXN_TYPE_TRANSLATION: 翻译超额扣费 | [EN] Translation overage\n - WALLET_TXN_TYPE_AI: AI 超额扣费 | [EN] AI overage\n - WALLET_TXN_TYPE_REFUND: 退款 | [EN] Refund\n - WALLET_TXN_TYPE_GIFT: 赠金 | [EN] Gift\n - WALLET_TXN_TYPE_DEDUCTION: 运营扣回 | [EN] Operator deduction",
            "in": "query",
            "items": {
              "enum": [
                "WALLET_TXN_TYPE_UNSPECIFIED",
                "WALLET_TXN_TYPE_RECHARGE",
                "WALLET_TXN_TYPE_SUBSCRIPTION",
                "WALLET_TXN_TYPE_RESOURCE",
                "WALLET_TXN_TYPE_TRANSLATION",
                "WALLET_TXN_TYPE_AI",
                "WALLET_TXN_TYPE_REFUND",
                "WALLET_TXN_TYPE_GIFT",
                "WALLET_TXN_TYPE_DEDUCTION"
              ],
              "type": "string"
            },
            "maxItems": 10,
            "name": "txn_types",
            "required": false,
            "type": "array"
          },
          {
            "collectionFormat": "multi",
            "description": "按第三方方式或对公转账过滤（任一；与 wallet_paid 命中任一即可）| [EN] Filter by third-party method or bank transfer, any of them; this or wallet_paid matching is enough\n\n - PAYMENT_METHOD_UNSPECIFIED: 未指定 | [EN] Unspecified\n - PAYMENT_METHOD_CARD: 银行卡 | [EN] Card\n - PAYMENT_METHOD_WECHAT: 微信支付 | [EN] WeChat Pay\n - PAYMENT_METHOD_ALIPAY: 支付宝 | [EN] Alipay\n - PAYMENT_METHOD_PAYPAL: PayPal | [EN] PayPal\n - PAYMENT_METHOD_CRYPTO: 虚拟币 | [EN] Crypto\n - PAYMENT_METHOD_TRANSFER: 对公转账（仅充值）| [EN] Bank transfer, top-up only",
            "in": "query",
            "items": {
              "enum": [
                "PAYMENT_METHOD_UNSPECIFIED",
                "PAYMENT_METHOD_CARD",
                "PAYMENT_METHOD_WECHAT",
                "PAYMENT_METHOD_ALIPAY",
                "PAYMENT_METHOD_PAYPAL",
                "PAYMENT_METHOD_CRYPTO",
                "PAYMENT_METHOD_TRANSFER"
              ],
              "type": "string"
            },
            "maxItems": 10,
            "name": "pay_methods",
            "required": false,
            "type": "array"
          },
          {
            "description": "翻页游标（首页留空） | [EN] Paging cursor, empty for the first page",
            "in": "query",
            "maxLength": 256,
            "name": "cursor",
            "required": false,
            "type": "string"
          },
          {
            "description": "每页条数（默认 50，最多 200） | [EN] Page size, 50 by default, at most 200",
            "format": "int32",
            "in": "query",
            "maximum": 200,
            "minimum": 0,
            "name": "limit",
            "required": false,
            "type": "integer"
          },
          {
            "description": "全部时间：不限开始，忽略 from | [EN] All time: no start, from ignored",
            "in": "query",
            "name": "all_time",
            "required": false,
            "type": "boolean"
          },
          {
            "description": "用钱包余额支付的（含有钱包抵扣的组合支付）| [EN] Paid from the wallet balance, mixed payments with a wallet part included",
            "in": "query",
            "name": "wallet_paid",
            "required": false,
            "type": "boolean"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/walletOrgWalletLedgerListResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "组织账本 | Org ledger",
        "tags": [
          "WalletService"
        ]
      }
    },
    "/v1/wallet/org/txns": {
      "get": {
        "operationId": "WalletService_OrgWalletTxnList",
        "parameters": [
          {
            "description": "时间起（含）| [EN] From, inclusive",
            "format": "date-time",
            "in": "query",
            "name": "from",
            "required": false,
            "type": "string"
          },
          {
            "description": "时间止（不含）| [EN] To, exclusive",
            "format": "date-time",
            "in": "query",
            "name": "to",
            "required": false,
            "type": "string"
          },
          {
            "description": "关键字（摘要、业务ID） | [EN] Keyword over summary and business ID",
            "in": "query",
            "maxLength": 64,
            "name": "keyword",
            "required": false,
            "type": "string"
          },
          {
            "collectionFormat": "multi",
            "description": "按类型过滤 | [EN] Filter by type\n\n - WALLET_TXN_TYPE_UNSPECIFIED: 未指定 | [EN] Unspecified\n - WALLET_TXN_TYPE_RECHARGE: 充值 | [EN] Top-up\n - WALLET_TXN_TYPE_SUBSCRIPTION: 订阅费 | [EN] Subscription\n - WALLET_TXN_TYPE_RESOURCE: 资源加购 | [EN] Resource purchase\n - WALLET_TXN_TYPE_TRANSLATION: 翻译超额扣费 | [EN] Translation overage\n - WALLET_TXN_TYPE_AI: AI 超额扣费 | [EN] AI overage\n - WALLET_TXN_TYPE_REFUND: 退款 | [EN] Refund\n - WALLET_TXN_TYPE_GIFT: 赠金 | [EN] Gift\n - WALLET_TXN_TYPE_DEDUCTION: 运营扣回 | [EN] Operator deduction",
            "in": "query",
            "items": {
              "enum": [
                "WALLET_TXN_TYPE_UNSPECIFIED",
                "WALLET_TXN_TYPE_RECHARGE",
                "WALLET_TXN_TYPE_SUBSCRIPTION",
                "WALLET_TXN_TYPE_RESOURCE",
                "WALLET_TXN_TYPE_TRANSLATION",
                "WALLET_TXN_TYPE_AI",
                "WALLET_TXN_TYPE_REFUND",
                "WALLET_TXN_TYPE_GIFT",
                "WALLET_TXN_TYPE_DEDUCTION"
              ],
              "type": "string"
            },
            "maxItems": 10,
            "name": "txn_types",
            "required": false,
            "type": "array"
          },
          {
            "default": "PAYMENT_METHOD_UNSPECIFIED",
            "description": "按第三方方式或对公转账过滤（与 wallet_paid 命中任一即可）| [EN] Filter by third-party method or bank transfer; either this or wallet_paid matching is enough\n\n - PAYMENT_METHOD_UNSPECIFIED: 未指定 | [EN] Unspecified\n - PAYMENT_METHOD_CARD: 银行卡 | [EN] Card\n - PAYMENT_METHOD_WECHAT: 微信支付 | [EN] WeChat Pay\n - PAYMENT_METHOD_ALIPAY: 支付宝 | [EN] Alipay\n - PAYMENT_METHOD_PAYPAL: PayPal | [EN] PayPal\n - PAYMENT_METHOD_CRYPTO: 虚拟币 | [EN] Crypto\n - PAYMENT_METHOD_TRANSFER: 对公转账（仅充值）| [EN] Bank transfer, top-up only",
            "enum": [
              "PAYMENT_METHOD_UNSPECIFIED",
              "PAYMENT_METHOD_CARD",
              "PAYMENT_METHOD_WECHAT",
              "PAYMENT_METHOD_ALIPAY",
              "PAYMENT_METHOD_PAYPAL",
              "PAYMENT_METHOD_CRYPTO",
              "PAYMENT_METHOD_TRANSFER"
            ],
            "in": "query",
            "name": "pay_method",
            "required": false,
            "type": "string"
          },
          {
            "description": "翻页游标（首页留空） | [EN] Paging cursor, empty for the first page",
            "in": "query",
            "maxLength": 256,
            "name": "cursor",
            "required": false,
            "type": "string"
          },
          {
            "description": "每页条数（默认 50，最多 200） | [EN] Page size, 50 by default, at most 200",
            "format": "int32",
            "in": "query",
            "maximum": 200,
            "minimum": 0,
            "name": "limit",
            "required": false,
            "type": "integer"
          },
          {
            "description": "全部时间：不限开始，忽略 from | [EN] All time: no start, from ignored",
            "in": "query",
            "name": "all_time",
            "required": false,
            "type": "boolean"
          },
          {
            "description": "用钱包余额支付的（含有钱包抵扣的组合支付）| [EN] Paid from the wallet balance, mixed payments with a wallet part included",
            "in": "query",
            "name": "wallet_paid",
            "required": false,
            "type": "boolean"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/walletOrgWalletTxnListResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "summary": "钱包流水 | Wallet transactions",
        "tags": [
          "WalletService"
        ]
      }
    }
  },
  "produces": [
    "application/json"
  ],
  "swagger": "2.0",
  "tags": [
    {
      "description": "统一鉴权中心：登录与会话、账号、成员与角色、组织与工作区、日志 | Access control",
      "name": "AccessControlService"
    },
    {
      "description": "计费：组织控制台的计费目录、订阅、订单、用量与消费，运维后台的订阅管理；计量只走 gRPC | Billing",
      "name": "BillingService"
    },
    {
      "description": "配置中心：版本化文档、历史、回滚、审计与公开投影 | Config center",
      "name": "ConfigCenterService"
    },
    {
      "description": "钱包：组织控制台的钱包与运维后台的工作区钱包；锁定、结算等资金接口只走 gRPC | Wallet",
      "name": "WalletService"
    }
  ],
  "x-aggregate-info": {
    "count": 4,
    "mode": "merge",
    "services": [
      {
        "description": "统一鉴权中心：登录与会话、账号、成员与角色、组织与工作区、日志 | Access control: sign-in, accounts, members and roles, organizations, workspaces and logs",
        "enabled": true,
        "name": "AccessControl",
        "tags": null,
        "version": "1.0.0"
      },
      {
        "description": "配置中心：运维后台的配置文档、计费配置与审计，浏览器读的公开配置 | Config center: ops namespaces, billing config and audit, public configuration",
        "enabled": true,
        "name": "ConfigCenter",
        "tags": null,
        "version": "1.0.0"
      },
      {
        "description": "计费：组织控制台的计费目录、订阅、订单、用量与消费总览，运维后台的订阅管理 | Billing: org console catalog, subscriptions, orders, usage and consumption; ops subscriptions",
        "enabled": true,
        "name": "Billing",
        "tags": null,
        "version": "1.0.0"
      },
      {
        "description": "钱包：组织控制台的钱包与运维后台的工作区钱包 | Wallet: the org console wallet and ops workspace wallets",
        "enabled": true,
        "name": "Wallet",
        "tags": null,
        "version": "1.0.0"
      }
    ],
    "updated": "2026-11-23T05:48:22Z"
  }
}