From 17c0cb5b5bcbc1d5e0ea90ab657ba57a83894840 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=AA=E6=B3=BD=E9=91=AB?= Date: Sat, 24 Oct 2026 23:30:14 +0800 Subject: [PATCH 1/4] docs: move agent setup to Python CLI and stop retired polling --- DEPRECATION.md | 22 +++ README.en.md | 6 + README.md | 58 ++----- dist/service.js | 6 + dist/service.test.js | 21 +++ docs/device-code-auth.md | 2 + docs/troubleshooting.md | 2 + .../cli_anything/frontend_app/frontend_cli.py | 2 +- skills/chek-setup/SKILL.md | 160 ++++-------------- src/service.test.ts | 21 +++ src/service.ts | 6 + 11 files changed, 135 insertions(+), 171 deletions(-) create mode 100644 DEPRECATION.md diff --git a/DEPRECATION.md b/DEPRECATION.md new file mode 100644 index 0000000..8c2855a --- /dev/null +++ b/DEPRECATION.md @@ -0,0 +1,22 @@ +# MeControl / hosted Agent retirement — DEV first + +状态:实现完成,DEV 发布验证中(2026-10-24)。 + +新用户使用 Python CLI 和普通 CHEK 登录;不再推荐旧 OpenClaw 专用插件。旧插件收到 410 后停止轮询。 + +## 范围 + +整体退役目标:backend-micontrol-agent、backend-micontrol-runtime、backend-open-claw-adapter,以及站内自动 Agent 执行链。本次发布只进入 DEV。staging/prod 保持现有部署,不归档仓库,不删除数据库、对象存储或历史记录。 + +保留 CHEK CLI 业务能力、普通账号认证与权限、房间消息、人工 @ 提醒、未读、评测证据、评分、分享与 EGO 上传。外部 Agent 使用自己的执行环境调用普通业务接口。普通聊天工具先整理草稿,不宣称具备 CLI 执行能力。 + +## 发布顺序与回滚 + +1. 发布前端统一接入页,确认黑猫及 EGO 提示仍工作。 +2. 发布 backend-app,验证旧接口 410、普通业务接口及房间通知。 +3. GitOps 退役 DEV 三个独立工作负载及其 HPA/PDB/专用监控;保留退役标记防止自动重建。 +4. 记录远端提交、运行镜像和实际资源状态。 + +需要回滚时先恢复 ops-bootstrap 退役前 DEV 配置并等三个服务就绪,再恢复 backend-app 和前端原镜像。新参与者默认提醒模式的迁移无历史数据删除。不要执行 cleanup_micontrol_data 等历史清理命令。 + +DEV 验证完成后才讨论其他环境迁移与仓库归档。 diff --git a/README.en.md b/README.en.md index 46122e8..3226a3f 100644 --- a/README.en.md +++ b/README.en.md @@ -21,6 +21,12 @@ Rather than asking only "what is trending?", CHEK asks: `chek-cli` is the tool that lets agents participate in that community. +## Bring your own Agent + +Use the Python CLI in `packages/chek-cli` from an agent that can run local commands (for example Cursor, Codex or Claude Code). Chat-only tools can prepare drafts; they cannot install or execute a CLI merely by receiving a prompt. Follow [chek-setup](skills/chek-setup/SKILL.md), confirm the environment and account, and use ordinary CHEK sign-in. + +The hosted MiControl stack, dedicated OpenClaw authorization/device binding, shared tool/skill dispatch and automatic mention replies are retiring in DEV. Existing business APIs, human room notifications, evidence, reviews, scoring, sharing and EGO remain. Stop retrying legacy endpoints on HTTP 410. The TypeScript plugin is migration compatibility only; use the Python CLI for new setup. See [retirement scope](DEPRECATION.md). No staging/production deployment is included. + ## Send This To Your Agent ```text diff --git a/README.md b/README.md index 8767c58..5e1fb41 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,14 @@ Agent 时代,参与社区的方式也应该升级。 `chek-cli` 做的就是这件事:让 Agent 不只是“帮你聊天”,而是能真正参与 CHEK 社区建设。 +## 接入方式与 DEV 退役说明 + +带上你自己的 Agent 使用 **Python CHEK CLI**。Cursor、Codex、Claude Code,以及能运行本地命令的其他工具,可按 [chek-setup](skills/chek-setup/SKILL.md) 安装、登录并调用社区业务接口。普通 ChatGPT、豆包等聊天模式先整理草稿,再由用户在 CHEK 页面提交,或交给具有 CLI 执行能力的工具。 + +不需要新建外部 Agent 授权、设备绑定或安装 OpenClaw 专用插件。普通 CHEK 账号登录和业务权限仍然必须保留。OpenClaw 也可以直接使用 Python CLI。 + +DEV 正在退役站内咪控、托管 Agent/runtime、OpenClaw adapter、共享 tools/skills 转发和 mention 自动回复。房间消息、人工 @ 通知、评审、证据、评分、分享和 EGO 业务保留。旧接口返回 `410 AGENT_FEATURE_RETIRED` 后应停止重试。**本次没有部署 staging/prod,也没有删除历史数据。** 进度与边界见 [退役说明](DEPRECATION.md)。 + ## 把这段话发给你的 Agent ```text @@ -145,9 +153,8 @@ CHEK 的气质会更偏专业、更偏工程、更偏证据。 - 查询车型、硬件配置、软件版本和原始参数 - 搜索和对比人形机器人产品 - 读取发现流 -- 创建 MiControl run - 生成、解析、撤销分享链接 -- 把 CHEK 房间 `@` mention 接入本地 OpenClaw Agent +- 读取房间消息,并在用户确认后发布内容 它不是替代 CHEK App,而是让 Agent 也能成为社区参与者。 @@ -192,9 +199,6 @@ Python CLI 默认输出 JSON,`--json` 作为 `--format json` 的兼容别名 # pip / pipx:从发布 tag 安装 Python CLI python -m pip install "git+https://github.com/chekdata/chek-cli.git@v0.5.0#subdirectory=packages/chek-cli" -# npm / pnpm:从 release 上传的 npm tarball 安装 OpenClaw 插件包 -npm install -g "https://github.com/chekdata/chek-cli/releases/download/v0.5.0/chek-chek-cli-0.5.0.tgz" - # Homebrew 或内部包源:使用 v0.5.0 release tarball/wheel,并在公式或内网索引中记录 checksum ``` @@ -237,7 +241,6 @@ chek vehicle +buying-plan \ chek vehicle +rankings --scene urban --window latest --dry-run chek humanoid +search --query "Unitree" --page-size 10 --dry-run chek discovery +feed --q "AI 产品" --dry-run -chek micontrol create --task "帮我分析这次智驾报告" --dry-run ``` ## 产品能力地图 @@ -251,7 +254,6 @@ chek micontrol create --task "帮我分析这次智驾报告" --dry-run | 机器人榜和数据库 | 搜索、对比、跟踪人形机器人产品和配置版本,看到热度与实力。 | `humanoid +search`, `humanoid +compare`, `humanoid +config` | `backend-app.humanoid.leaderboards`, `humanoid.robots.detail`, `humanoid.robots.configVersions`, `humanoid.edits.*` | | 发现广场 | 车辆、机器人、AI 产品、证据帖和评测房间进入公共发现流。 | `discovery +feed` | `backend-app.discovery.feed`, `feedFilters`, `swipeSessions`, `swipeSessionsActions` | | 咪控助手 | 带着当前页面、行程、车型或房间上下文提问,让助手把模糊需求转成结构化任务。 | `micontrol create`, `micontrol runs`, `micontrol detail` | `backend-app.micontrol.runs*`, `backend-app.agent.toolsExecute`, `backend-app.agent.toolSessions` | -| 房间 @ 到本地 Agent | CHEK 房间 mention 变成本地 OpenClaw 上下文,生成回复并同步回房间。 | `/chek-setup`, `openclaw chek setup` | `backend-app.buddy.mentionTasks`, `openclawAuthSessions`, `posts/{id}/messages` | | 可分享证据 | 创建、解析、撤销分享 token,支持匿名或 scoped 访问。 | `share +create`, `share +resolve`, `share +revoke` | `auth.share.token`, `auth.share.resolve`, `auth.share.revoke` | | Agent 身份 | 用正确的 user/service 身份、token、profile 和 scope 执行任务。 | `config`, `auth`, `auth profile`, `auth credential`, 全局 `--as` | `auth.accounts.*`, `auth.sms.*`, `auth.userInfo`, `auth.validToken`, 本地 profile store | @@ -421,7 +423,7 @@ chek backend-app humanoid leaderboards --dry-run | 服务 | 支撑的产品能力 | 资源数 | Operation 数 | | --- | --- | ---: | ---: | | `auth` | 登录、短信/密码/token、用户信息、scope 检查、角色/资源、分享 token | 25 | 86 | -| `backend-app` | 房间、mention、发现流、媒体、资产、MiControl、人形机器人 App 视图、观测数据 | 27 | 135 | +| `backend-app` | 房间、发现流、媒体、资产、人形机器人 App 视图、观测数据(生成快照含已退役接口) | 27 | 135 | | `backend-saas` | 车型指标、报告、NOA 行程、榜单、报告订阅、特殊点 | 14 | 85 | | `crowd` | 采集就绪、session catalog、benchmark release、审核队列、公开订单 | 7 | 127 | | `humanoid` | 机器人记录、配置版本、治理、编辑、审计历史 | 6 | 21 | @@ -452,47 +454,15 @@ page, registry, repo, routes, schema, serve, share, smoke, vehicle CLI 分三层: -- **Shortcut**:高频产品动作,比如 AI 产品提报、车型决策、榜单、人形机器人对比、发现流、分享 token、MiControl run。 +- **Shortcut**:高频产品动作,比如 AI 产品提报、车型决策、榜单、人形机器人对比、发现流、分享 token。 - **OpenAPI 自动命令树**:覆盖 `auth`、`backend-app`、`backend-saas`、`crowd`、`humanoid`、`vehicle` 的后端能力。 - **兜底原语**:`schema`、`call service.resource.method`、原始 `api METHOD PATH`,让 Agent 在 shortcut 不够用时仍能精确调用。 -## OpenClaw 插件 - -安装插件: - -```bash -openclaw plugins install 'https://github.com/chekdata/chek-cli/archive/refs/heads/main.tar.gz?download=1' -``` - -OpenClaw 对话命令: - -```text -/chek-setup -/chek-status -/chek-bootstrap -``` - -CLI 等价命令: - -```bash -openclaw chek setup -openclaw chek status -openclaw chek bootstrap -``` - -默认 setup 走浏览器授权。浏览器授权失败时,token 兜底仍然可用: - -```text -/chek-setup token= -``` - -```bash -openclaw chek setup --token -``` +## 旧 OpenClaw 插件 -完成 setup 后,插件会创建浏览器授权会话、保存稳定的 install/device 标识、轮询 CHEK 房间 `@` mention task、读取近期房间上下文、注入本地 OpenClaw 会话、生成回复、把回复发回 CHEK 房间,并把 mention task 标记为完成或失败。 +旧的浏览器授权、设备绑定、插件 token、房间 mention 轮询和自动回复正在整体退役,DEV 不再提供这些接口。仓库根目录的 TypeScript 插件保留作迁移兼容,其轮询在收到 410 后停止;它不是新的安装入口。 -当前 intent 识别覆盖 setup/bootstrap、发布文案、上架判断、价值判断、吸引力判断、清晰度判断、下载排障、共享/出售选择和通用房间回复。 +新的接入请安装 `packages/chek-cli` 中的 Python CLI,按 [统一指南](skills/chek-setup/SKILL.md) 使用普通 CHEK 登录。普通房间协作仍走业务接口,发布前由用户确认。历史插件文档仅供迁移排查。 ## 认证和 Profile diff --git a/dist/service.js b/dist/service.js index 0550c6b..4ab8608 100644 --- a/dist/service.js +++ b/dist/service.js @@ -231,6 +231,9 @@ export class ChekCliController { } catch (error) { this.snapshot.lastError = summarizeError(error); + if (error instanceof ChekApiError && error.status === 410) { + await this.stop(); + } } } else { @@ -255,6 +258,9 @@ export class ChekCliController { } catch (error) { this.snapshot.lastError = summarizeError(error); + if (error instanceof ChekApiError && error.status === 410) { + await this.stop(); + } this.logger.error(`[chek-cli] poll failed: ${this.snapshot.lastError}`); await this.persistSnapshot(); } diff --git a/dist/service.test.js b/dist/service.test.js index 5db295b..0bf5cd6 100644 --- a/dist/service.test.js +++ b/dist/service.test.js @@ -171,3 +171,24 @@ describe("ChekCliController", () => { })); }); }); +it.each([ + { accessToken: "ckmu_test_token" }, + { authSessionId: "old-session", deviceCode: "old-code" }, +])("stops legacy polling permanently on HTTP 410 (%j)", async (credentials) => { + const config = { backendAppBaseUrl: "https://api-dev.chekkk.com/api/backend-app", ...credentials }; + const controller = new ChekCliController({ config: parseConfig(config), logger: createLogger(), runtimeConfig: createRuntimeConfig(config) }); + const fetchMock = vi.fn().mockResolvedValue(new Response(JSON.stringify({ code: "AGENT_FEATURE_RETIRED", detail: "Use Python CHEK CLI" }), { status: 410 })); + vi.stubGlobal("fetch", fetchMock); + try { + await controller.start(); + await controller["pollOnce"](); + await controller["pollLoop"](); + expect(controller.getSnapshot().running).toBe(false); + expect(controller.getSnapshot().lastError).toContain("Use Python CHEK CLI"); + expect(fetchMock).toHaveBeenCalledTimes(1); + } + finally { + await controller.stop(); + vi.unstubAllGlobals(); + } +}); diff --git a/docs/device-code-auth.md b/docs/device-code-auth.md index e80b4b2..f99139b 100644 --- a/docs/device-code-auth.md +++ b/docs/device-code-auth.md @@ -1,3 +1,5 @@ +> 历史插件文档:DEV 专用授权和自动回复已进入退役流程。新接入请使用 [Python CLI 统一指南](../skills/chek-setup/SKILL.md)。 + # CHEK CLI Browser Auth ## Current Reality diff --git a/docs/troubleshooting.md b/docs/troubleshooting.md index e155ad0..d0461b0 100644 --- a/docs/troubleshooting.md +++ b/docs/troubleshooting.md @@ -1,3 +1,5 @@ +> 历史插件文档:DEV 专用授权和自动回复已进入退役流程。新接入请使用 [Python CLI 统一指南](../skills/chek-setup/SKILL.md)。 + # CHEK CLI Troubleshooting ## 插件装不上 diff --git a/packages/chek-cli/cli_anything/frontend_app/frontend_cli.py b/packages/chek-cli/cli_anything/frontend_app/frontend_cli.py index f640419..dcd5507 100644 --- a/packages/chek-cli/cli_anything/frontend_app/frontend_cli.py +++ b/packages/chek-cli/cli_anything/frontend_app/frontend_cli.py @@ -2673,7 +2673,7 @@ def share_revoke(ctx: click.Context, share_id: str, dry_run: bool) -> None: @main.group() def micontrol() -> None: - """MiControl run orchestration shortcuts.""" + """Legacy MiControl commands (retired in DEV; use business CLI instead).""" @micontrol.command("runs") diff --git a/skills/chek-setup/SKILL.md b/skills/chek-setup/SKILL.md index 7a7186a..c0e66bb 100644 --- a/skills/chek-setup/SKILL.md +++ b/skills/chek-setup/SKILL.md @@ -1,157 +1,65 @@ --- name: chek-setup -description: Set up CHEK CLI and OpenClaw browser/token auth, then guide users and their personal agents into CHEK community co-building workflows for vehicle/robot database enrichment, AI product review recording, evidence posting, public ranking support, and room conversations. Use when the user asks to install CHEK CLI, bind a token/device, run /chek-setup, bootstrap CHEK agent participation, or understand how an agent can help co-build the CHEK community. +description: Install the Python CHEK CLI in any agent with local command execution, verify ordinary CHEK sign-in and the requested environment, then guide community contributions. Chat-only tools prepare drafts without claiming execution. No OpenClaw-specific authorization or plugin setup. --- # CHEK Setup -This skill teaches OpenClaw how to finish CHEK CLI setup for CHEK review-room mentions, agent workflows, and community co-building. +CHEK 是一个为 Agent 时代生长出来的 AI-native 开放社区。CHEK CLI 把产品资料、版本化评测、证据、评分、发现流、智驾报告、机器人榜、分享和房间协作变成可调用的业务操作。 -## What CHEK CLI Does +## 先确认工具能力 -After setup, the plugin can: +- Cursor、Codex、Claude Code 和其他可运行本地命令的 Agent:检查 Python、CLI、配置和登录状态,缺失时再安装。 +- 普通 ChatGPT、豆包等聊天模式:先整理草稿,明确说明无法在当前会话安装或运行 CLI。用户可以手动提交,或把草稿交给可执行 CLI 的工具。不要虚构安装、授权或发布结果。 +- OpenClaw 也直接使用 Python CLI,不需要安装专用插件、重启 Gateway、创建设备授权或启用自动回复。 -- poll CHEK room `@` mention tasks -- inject each task into a stable local OpenClaw session -- generate a short reply locally -- send that reply back to the CHEK room -- let agents use `chek ai-product ...` for AI product submission, duplicate checks, and reviews -- let agents maintain vehicle and robot database facts with source-backed edit drafts -- help users turn recordings, transcripts, screenshots, and notes into readable AI product reviews -- support public rankings with version-specific evidence instead of vague brand claims +## 安装与核对 -## Community Co-Building Message - -Use this complete message when inviting a user to give their personal Agent a clear CHEK participation prompt: - -```text -请成为我的 CHEK 共建助手。先在 GitHub 搜索 `chekdata/chek-cli`,阅读 `skills/chek-setup` 并完成安装。 - -CHEK 是一个为 Agent 时代生长出来的 AI-native 开放社区。 - -它想做的不是让你帮平台填表,而是让你用过的每一款 AI 产品,都不只是一次很快消失的体验。 - -每一次试驾、上手、踩坑、惊喜和吐槽,都可以变成属于你的 AI 产品档案,也变成能帮助别人选择、复评和避坑的公共知识。 - -好产品不该只靠营销被看见,真实体验也应该有自己的分量。 - -你的 Agent 可以帮你记录具体硬件型号和软件版本,整理评测,沉淀证据和评分,补全智能汽车 / 机器人资料库,发现值得提报的新产品,也把你的脑洞变成社区能力。 - -让体验有版本,让判断有证据,让榜单有来处。 - -执行规则:先查重,再提交;先草稿,等我确认;所有评测都要对应真实硬件型号和软件版本;不要泄露 token、验证码、cookie 或 Authorization 信息。 - -现在开始,先检查安装和登录状态,再问我想从哪一项共建开始。 -``` - -## After Setup: Guide The User Into One Of Three Paths - -1. **补智能汽车 / 机器人资料库** - - Ask what material the user has: official pages, screenshots, spec sheets, OTA notes, photos, spreadsheets, links, or test logs. - - Route production writes through `$chek-prod-ai-product-ops`. - - Extract source-backed fields first; submit prod edits only after prod auth and explicit user confirmation. - - For recurring work, help the user schedule a daily or weekly Agent task that searches, dedupes, drafts edits, and reports evidence gaps. - -2. **记录并发布 AI 产品评测** - - Encourage the user to record the testing process or export a transcript/速记. - - Accept audio, transcript, screenshots, videos, route/test summaries, app logs, and links. - - Route product sourcing, duplicate checks, and review-material drafting through `$chek-ai-product-sourcing`. - - Publish to a CHEK review room only after the target product version and room/post id are confirmed. - -3. **进入房间交流** - - Explain that room `@` mentions can be delivered to the user's local Agent after setup. - - Encourage natural discussion: version questions, evidence requests, comparison notes, test ideas, and product-room follow-ups. - - Keep replies concise, helpful, and community-facing. - -## Default Setup Path - -Today the default setup path is browser auth. - -Use: - -```text -/chek-setup -``` - -Or in the CLI: +先阅读完整 [README](../../README.md),复用已有安装,不覆盖用户配置。新安装优先使用已发布的 Python CLI: ```bash -openclaw chek setup +python -m pip install "git+https://github.com/chekdata/chek-cli.git@v0.5.0#subdirectory=packages/chek-cli" +chek --help +chek auth status ``` -The plugin will: - -1. persist stable install / device identifiers -2. create a CHEK auth session -3. open the browser authorization page -4. wait for the browser page to show `已授权,可返回 OpenClaw` -5. persist the returned plugin token locally - -## Fallback Path +`v0.5.0` 是现有发布版;仓库 main 包含新的退役指引。需要最新开发版时,由用户明确选择 main 后再安装该分支。不要把仓库根目录的 npm/OpenClaw 插件当作 Python CLI。 -If browser auth fails, token setup still works: - -```text -/chek-setup token= -``` +操作前核对目标环境、账号和身份。用户从 DEV 页面进入时只使用 DEV: ```bash -openclaw chek setup --token +chek config set-env dev +chek config default-as user +chek auth status +chek auth profile list ``` -## Useful Follow-ups +已有可用登录就直接复用。需要登录时,使用普通 CHEK 的短信、密码或用户已有凭据方式;让用户在本地安全输入,不让他们把验证码、密码或 token 粘到聊天。具体参数以 `chek auth login --help` 为准,不创建新的外部 Agent 授权。 -```text -/chek-status -/chek-bootstrap -``` +环境明确之后再做只读验证: ```bash -openclaw chek status -openclaw chek bootstrap +chek discovery +feed --q "AI 产品" --dry-run +chek discovery +feed --q "AI 产品" ``` -## Canonical Bootstrap Message +报告实际环境、身份和验证结果,不能只依据命令退出码声称登录成功。 -```text -请在这台机器上安装并配置 CHEK CLI,并尽量自动完成初始化。 +## 选择一项共建 -目标: -1. 安装 OpenClaw 插件 CHEK CLI -2. 安装后重启 Gateway -3. 自动拉起浏览器完成 CHEK 授权与设备绑定 -4. 做一次连通性测试 -5. 最后告诉我当前状态是否 ready +1. 整理评测:从用户的体验、速记、录音转写、截图或视频中提取产品版本、场景、优点、问题和证据。 +2. 沉淀证据和评分:标明具体硬件型号、软件版本、测试条件、来源和利益关系。 +3. 补全资料库:整理智能汽车、机器人与 AI 产品的官方资料、参数和版本变化,保留来源。 +4. 发现与提报:先查重,再出草稿;用户确认目标和内容后提交。 +5. 房间协作:读取消息、整理观点、在用户明确要求后发布;人工 @ 通知保留,不自动轮询 mention 任务或代用户回复。 +6. 社区能力:完善开放工作流、分享证据、榜单和版本追踪。 -安装命令: -openclaw plugins install https://github.com/chekdata/chek-cli/archive/refs/heads/main.tar.gz?download=1 +业务操作直接使用 `chek ai-product`、`vehicle`、`humanoid`、`discovery`、`share` 或对应业务 OpenAPI。不使用 `/agent/v1/tools:execute`、`skills:run` 或 `/micontrol/v2/runs`。 -如果插件安装成功但不能自动继续,请立即执行 `/chek-setup`。插件会自动打开浏览器到 CHEK 授权页;浏览器显示“已授权,可返回 OpenClaw”后,回到本地继续等待健康检查完成。 -如果浏览器授权失败,再退回 `/chek-setup token=` 或 `openclaw chek setup --token `。 +遵守真实版本、来源、查重、草稿和确认边界;按用户已有授权执行,不重复索要同一操作的许可。生产写操作遵循相应业务技能和实际权限;DEV 任务不得自动切换生产。 -参考链接: -- 插件说明:https://github.com/chekdata/chek-cli#readme -- setup skill:https://github.com/chekdata/chek-cli/blob/main/skills/chek-setup/SKILL.md -- 浏览器授权说明:https://github.com/chekdata/chek-cli/blob/main/docs/device-code-auth.md -- 排障说明:https://github.com/chekdata/chek-cli/blob/main/docs/troubleshooting.md -``` +## 退役与故障处理 -## Agent Task Prompts After Installation +收到 `410 AGENT_FEATURE_RETIRED` 表示旧托管能力已经退役,停止重试并改用业务 CLI。普通登录失败应按账号认证处理,不能通过旧插件 token、匿名调用或共享 tools 绕过权限。 -Vehicle and robot database enrichment: - -```text -请使用 CHEK CLI 在生产环境帮我共建资料库:先搜索并整理最近值得补充的智能汽车/机器人资料,提取车型/机器人、硬件版本、软件版本、能力边界和来源证据;先给我编辑草稿和证据清单,我确认后再提交 prod 写操作。 -``` - -Review recording to room contribution: - -```text -我会把这次 AI 产品评测的录音、转写、截图或速记给你。请先提取测试版本、场景、优点、问题、证据和建议评分,整理成适合发到 CHEK 评审房间的用户友好内容;发布前先帮我确认对应房间,避免重复提报。 -``` - -Recurring co-building task: - -```text -请帮我设置每周一次 CHEK 共建任务:搜索智能汽车/机器人和消费级 AI 产品的新版本、新资料和公开评测;输出可审核的资料库编辑草稿、候选评审对象、证据缺口和需要我确认的提交项。 -``` +开始时先问用户想从哪一项共建开始;任务已明确时直接执行已授权的部分。 diff --git a/src/service.test.ts b/src/service.test.ts index 6d1bbc2..7d14e13 100644 --- a/src/service.test.ts +++ b/src/service.test.ts @@ -216,3 +216,24 @@ describe("ChekCliController", () => { ); }); }); + +it.each([ + { accessToken: "ckmu_test_token" }, + { authSessionId: "old-session", deviceCode: "old-code" }, +])("stops legacy polling permanently on HTTP 410 (%j)", async (credentials) => { + const config = { backendAppBaseUrl: "https://api-dev.chekkk.com/api/backend-app", ...credentials }; + const controller = new ChekCliController({ config: parseConfig(config), logger: createLogger(), runtimeConfig: createRuntimeConfig(config) }); + const fetchMock = vi.fn().mockResolvedValue(new Response(JSON.stringify({ code: "AGENT_FEATURE_RETIRED", detail: "Use Python CHEK CLI" }), { status: 410 })); + vi.stubGlobal("fetch", fetchMock); + try { + await controller.start(); + await controller["pollOnce"](); + await controller["pollLoop"](); + expect(controller.getSnapshot().running).toBe(false); + expect(controller.getSnapshot().lastError).toContain("Use Python CHEK CLI"); + expect(fetchMock).toHaveBeenCalledTimes(1); + } finally { + await controller.stop(); + vi.unstubAllGlobals(); + } +}); diff --git a/src/service.ts b/src/service.ts index c3cefc0..ab74ad5 100644 --- a/src/service.ts +++ b/src/service.ts @@ -300,6 +300,9 @@ export class ChekCliController { } } catch (error) { this.snapshot.lastError = summarizeError(error); + if (error instanceof ChekApiError && error.status === 410) { + await this.stop(); + } } } else { this.snapshot.lastError = "CHEK access token is not configured."; @@ -324,6 +327,9 @@ export class ChekCliController { } } catch (error) { this.snapshot.lastError = summarizeError(error); + if (error instanceof ChekApiError && error.status === 410) { + await this.stop(); + } this.logger.error(`[chek-cli] poll failed: ${this.snapshot.lastError}`); await this.persistSnapshot(); } From af1f7c529e0f3ce625daabfe797780f53340fd04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=AA=E6=B3=BD=E9=91=AB?= Date: Sun, 25 Oct 2026 01:36:35 +0800 Subject: [PATCH 2/4] retire hosted agent bridge and guide own cli --- README.en.md | 41 +- README.md | 22 +- dist/args.d.ts | 8 - dist/args.js | 92 - dist/args.test.d.ts | 1 - dist/args.test.js | 19 - dist/chek-api.d.ts | 29 - dist/chek-api.js | 111 - dist/commands.js | 219 +- dist/config.d.ts | 38 +- dist/config.js | 20 +- dist/gateway-cli.d.ts | 36 - dist/gateway-cli.js | 292 - dist/index.d.ts | 38 +- dist/index.js | 2 +- dist/render.d.ts | 1 + dist/render.js | 41 +- dist/render.test.js | 15 +- dist/service.d.ts | 11 - dist/service.js | 266 +- dist/service.test.js | 137 +- docs/bootstrap-message.md | 63 +- docs/device-code-auth.md | 57 +- docs/troubleshooting.md | 77 +- openclaw.plugin.json | 40 +- package.json | 2 +- packages/chek-cli/HARNESS.md | 4 +- packages/chek-cli/README.md | 4 +- packages/chek-cli/README.zh-CN.md | 4 +- .../cli_anything/frontend_app/frontend_cli.py | 37 +- .../frontend_app/generated/registry.json | 34610 ++++++++++++---- src/args.test.ts | 26 - src/args.ts | 101 - src/chek-api.ts | 147 - src/commands.ts | 236 +- src/config.ts | 20 +- src/gateway-cli.test.ts | 161 - src/gateway-cli.ts | 366 - src/index.ts | 2 +- src/render.test.ts | 17 +- src/render.ts | 41 +- src/service.test.ts | 172 +- src/service.ts | 328 +- 43 files changed, 27015 insertions(+), 10939 deletions(-) delete mode 100644 dist/args.d.ts delete mode 100644 dist/args.js delete mode 100644 dist/args.test.d.ts delete mode 100644 dist/args.test.js delete mode 100644 dist/chek-api.d.ts delete mode 100644 dist/chek-api.js delete mode 100644 dist/gateway-cli.d.ts delete mode 100644 dist/gateway-cli.js delete mode 100644 src/args.test.ts delete mode 100644 src/args.ts delete mode 100644 src/chek-api.ts delete mode 100644 src/gateway-cli.test.ts delete mode 100644 src/gateway-cli.ts diff --git a/README.en.md b/README.en.md index 3226a3f..a7f28ff 100644 --- a/README.en.md +++ b/README.en.md @@ -111,10 +111,7 @@ For user-facing distribution, prefer GitHub Release assets or package registries # pip / pipx: install the Python CLI from the release tag python -m pip install "git+https://github.com/chekdata/chek-cli.git@v0.5.0#subdirectory=packages/chek-cli" -# npm / pnpm: install the OpenClaw plugin package from the release tarball -npm install -g "https://github.com/chekdata/chek-cli/releases/download/v0.5.0/chek-chek-cli-0.5.0.tgz" - -# Homebrew or internal package sources should point to the v0.5.0 release assets and checksums. +# Homebrew or internal package sources should point to the v0.5.0 Python release assets and checksums. ``` After installation, verify that the AI product commands are present: @@ -156,7 +153,7 @@ chek vehicle +buying-plan \ chek vehicle +rankings --scene urban --window latest --dry-run chek humanoid +search --query "Unitree" --page-size 10 --dry-run chek discovery +feed --q "AI 产品" --dry-run -chek micontrol create --task "帮我分析这次智驾报告" --dry-run +chek ai-product +research-plan --category 生产力工具 --product-name Kimi --software-version "2026 年 7 月网页版" ``` ## Product Surface @@ -169,8 +166,8 @@ chek micontrol create --task "帮我分析这次智驾报告" --dry-run | Vehicle leaderboards | City/highway/scene-aware rankings that answer who is strong and why. | `vehicle +rankings` | `backend-saas.appVehicleMetrics.*`, `backend-saas.noaJour.highwayNoaRankTop3`, `backend-saas.options.scene` | | Robot database | Search, compare, and track humanoid robot products and configuration versions. | `humanoid +search`, `humanoid +compare`, `humanoid +config` | `backend-app.humanoid.leaderboards`, `humanoid.robots.detail`, `humanoid.robots.configVersions`, `humanoid.edits.*` | | Discovery plaza | Public feed cards for vehicles, robots, AI products, evidence posts, and review rooms. | `discovery +feed` | `backend-app.discovery.feed`, `feedFilters`, `swipeSessions`, `swipeSessionsActions` | -| MiControl assistant | Turn page, trip, vehicle, or room context into structured tasks. | `micontrol create`, `micontrol runs`, `micontrol detail` | `backend-app.micontrol.runs*`, `backend-app.agent.toolsExecute`, `backend-app.agent.toolSessions` | -| Room mentions to local agent | CHEK room `@` mentions become local OpenClaw context, generated replies, and room messages. | `/chek-setup`, `openclaw chek setup` | `backend-app.buddy.mentionTasks`, `openclawAuthSessions`, `posts/{id}/messages` | +| CHEK CLI co-building | Let your own Agent search, draft, submit, review, rate, and preserve evidence through normal CHEK business APIs. | `ai-product +research-plan`, `+publish`, `vehicle +rankings`, `discovery +feed` | business OpenAPI operations | +| Room collaboration | Keep messages, human @ notifications, unread state, evidence, ratings, sharing, and EGO upload flows. | CHEK web UI or Python CLI | ordinary room and EGO APIs | ## OpenAPI Coverage @@ -179,12 +176,12 @@ The bundled registry is generated from CHEK backend OpenAPI specs. | Service | What it powers | Resources | Operations | | --- | --- | ---: | ---: | | `auth` | login, SMS/password/token auth, user info, scope checks, role/resource APIs, share tokens | 25 | 86 | -| `backend-app` | rooms, mentions, discovery, media, assets, MiControl, humanoid app views, observability | 27 | 135 | +| `backend-app` | rooms, mentions, discovery, media, assets, humanoid app views, observability | generated | generated | | `backend-saas` | vehicle metrics, reports, NOA journeys, rankings, report subscriptions, special points | 14 | 85 | | `crowd` | capture readiness, session catalog, benchmark releases, review queues, public orders | 7 | 127 | | `humanoid` | robot records, config versions, governance, edits, audit history | 6 | 21 | | `vehicle` | vehicle search, detail, diff, raw params, software versions, upload/sign flows | 6 | 39 | -| **Total** | Agent-operable CHEK backend surface | **85** | **493** | +| **Total** | Agent-operable CHEK backend surface | **101** | **621** | ## Useful Commands @@ -256,29 +253,19 @@ message is written for community readers, not as a raw evidence dump. Vehicle and robot review rooms should also submit the matching library version edit so leaderboards and future re-reviews can trace the exact hardware/software tuple. -## OpenClaw Plugin - -```bash -openclaw plugins install 'https://github.com/chekdata/chek-cli/archive/refs/heads/main.tar.gz?download=1' -``` +## Migration compatibility -OpenClaw-facing commands: - -```text -/chek-setup -/chek-status -/chek-bootstrap -``` - -CLI equivalents: +Use the Python CLI from your own Agent environment: ```bash -openclaw chek setup -openclaw chek status -openclaw chek bootstrap +git clone https://github.com/chekdata/chek-cli.git +cd chek-cli/packages/chek-cli +python -m pip install -e ".[dev]" +chek config set-env dev +chek registry status ``` -After setup, the plugin can create browser-auth sessions, persist stable install/device IDs, poll CHEK room `@` mention tasks, load recent room context, inject that context into a local OpenClaw session, generate a reply, send the reply back to the CHEK room, and complete or fail the mention task. +The old TypeScript/OpenClaw package is migration compatibility only. It prints the Python CLI guide and never creates browser-auth sessions, polls mention tasks, or sends automatic room replies. ## Release diff --git a/README.md b/README.md index 5e1fb41..4794ecc 100644 --- a/README.md +++ b/README.md @@ -253,7 +253,7 @@ chek discovery +feed --q "AI 产品" --dry-run | 智能汽车榜 | 城市、高速、场景化榜单回答“谁强、强在哪、证据是什么”。 | `vehicle +rankings` | `backend-saas.appVehicleMetrics.*`, `backend-saas.noaJour.highwayNoaRankTop3`, `backend-saas.options.scene` | | 机器人榜和数据库 | 搜索、对比、跟踪人形机器人产品和配置版本,看到热度与实力。 | `humanoid +search`, `humanoid +compare`, `humanoid +config` | `backend-app.humanoid.leaderboards`, `humanoid.robots.detail`, `humanoid.robots.configVersions`, `humanoid.edits.*` | | 发现广场 | 车辆、机器人、AI 产品、证据帖和评测房间进入公共发现流。 | `discovery +feed` | `backend-app.discovery.feed`, `feedFilters`, `swipeSessions`, `swipeSessionsActions` | -| 咪控助手 | 带着当前页面、行程、车型或房间上下文提问,让助手把模糊需求转成结构化任务。 | `micontrol create`, `micontrol runs`, `micontrol detail` | `backend-app.micontrol.runs*`, `backend-app.agent.toolsExecute`, `backend-app.agent.toolSessions` | +| CHEK CLI 共建 | 让自己的 Agent 搜索、整理、提报、评测、评分和沉淀证据。 | `ai-product +research-plan`, `+publish`, `vehicle +rankings`, `discovery +feed` | ordinary CHEK business APIs and OpenAPI operations | | 可分享证据 | 创建、解析、撤销分享 token,支持匿名或 scoped 访问。 | `share +create`, `share +resolve`, `share +revoke` | `auth.share.token`, `auth.share.resolve`, `auth.share.revoke` | | Agent 身份 | 用正确的 user/service 身份、token、profile 和 scope 执行任务。 | `config`, `auth`, `auth profile`, `auth credential`, 全局 `--as` | `auth.accounts.*`, `auth.sms.*`, `auth.userInfo`, `auth.validToken`, 本地 profile store | @@ -428,7 +428,7 @@ chek backend-app humanoid leaderboards --dry-run | `crowd` | 采集就绪、session catalog、benchmark release、审核队列、公开订单 | 7 | 127 | | `humanoid` | 机器人记录、配置版本、治理、编辑、审计历史 | 6 | 21 | | `vehicle` | 车型搜索、详情、diff、原始参数、软件版本、上传/签名链路 | 6 | 39 | -| **合计** | Agent 可操作的 CHEK 后端面 | **85** | **493** | +| **合计** | Agent 可操作的 CHEK 后端面 | **101** | **621** | 常用 registry 和原始调用命令: @@ -448,7 +448,7 @@ chek api GET /api/backend-app/login/checkToken --dry-run ```text ai-product, api, auth, backend-app, backend-saas, build, call, config, -crowd, discovery, doctor, examples, flow, humanoid, manifest, media, micontrol, +crowd, discovery, doctor, examples, flow, humanoid, manifest, media, page, registry, repo, routes, schema, serve, share, smoke, vehicle ``` @@ -460,7 +460,7 @@ CLI 分三层: ## 旧 OpenClaw 插件 -旧的浏览器授权、设备绑定、插件 token、房间 mention 轮询和自动回复正在整体退役,DEV 不再提供这些接口。仓库根目录的 TypeScript 插件保留作迁移兼容,其轮询在收到 410 后停止;它不是新的安装入口。 +旧的浏览器授权、设备绑定、插件 token、房间 mention 轮询和自动回复已整体退役,DEV 不再提供这些接口。仓库根目录的 TypeScript 插件只保留迁移提示,不会创建授权会话、轮询旧接口或自动回复;新的安装入口是 Python CLI。 新的接入请安装 `packages/chek-cli` 中的 Python CLI,按 [统一指南](skills/chek-setup/SKILL.md) 使用普通 CHEK 登录。普通房间协作仍走业务接口,发布前由用户确认。历史插件文档仅供迁移排查。 @@ -500,7 +500,7 @@ chek auth profile import dev-agent --file ./dev-agent.profile.json --activate ## 内置 Skills -- [`skills/chek-setup/SKILL.md`](./skills/chek-setup/SKILL.md):帮助 OpenClaw 完成 CHEK CLI setup、浏览器授权、token 兜底和健康检查。 +- [`skills/chek-setup/SKILL.md`](./skills/chek-setup/SKILL.md):帮助 Cursor、Codex、Claude Code 等 Agent 安装 Python CLI、检查普通 CHEK 登录并开始社区共建。 - [`skills/chek-ai-product-sourcing/SKILL.md`](./skills/chek-ai-product-sourcing/SKILL.md):帮助 Agent 搜索、验证、分类、去重和整理 CHEK AI 产品候选,也能把用户录音、速记、截图和体验材料整理成评审房间内容。它只写本地文件或用户本轮指定的飞书/Lark 候选库,不硬编码默认候选库。 - [`skills/chek-prod-ai-product-ops/SKILL.md`](./skills/chek-prod-ai-product-ops/SKILL.md):帮助 Agent 在生产环境执行正式 AI 产品评审房间提报、封面溯源、车型/机器人绑定、版本编辑提交、评测证据发布,以及长期智能汽车/机器人数据库维护;这个 skill 明确禁止 DEV/staging 操作。 @@ -548,11 +548,7 @@ python -m pip install -e ".[browser,dev]" python -m playwright install chromium ``` -本地 OpenClaw 插件联调: - -```bash -openclaw plugins install --link /absolute/path/to/chek-cli -``` +根目录 TypeScript 包只做迁移兼容提示;它不再启动托管 Agent、创建专用授权、轮询 mention 或自动回复房间消息。 ## 重新生成 OpenAPI Registry @@ -577,14 +573,14 @@ CI 也会运行 `scripts/check_registry_drift.py --allow-missing-optional`。如 - `packages/chek-cli/README.md`:package 级 CLI 说明。 - `README.en.md`:英文附加说明。 - `src/index.ts`:OpenClaw 插件入口。 -- `src/commands.ts`:`/chek-setup`、`/chek-status`、`/chek-bootstrap` 和 OpenClaw CLI 命令。 -- `src/service.ts`:后台轮询、浏览器授权同步、mention task 处理、房间回复编排。 +- `src/commands.ts`:迁移提示、状态和 Python CLI 指南。 +- `src/service.ts`:迁移兼容状态,不再启动后台轮询、浏览器授权或房间自动回复。 - `src/render.ts`:房间上下文压缩、intent 识别、直接回复和本地 prompt 构造。 - `skills/chek-setup/SKILL.md`:随仓库发布的 setup 和社区共建入口 skill。 - `skills/chek-ai-product-sourcing/SKILL.md`:随仓库发布的 AI 产品候选 sourcing 和评测素材整理 skill。 - `skills/chek-prod-ai-product-ops/SKILL.md`:随仓库发布的 prod-only AI 产品提报、评测证据发布和车型/机器人库维护 skill。 - `docs/bootstrap-message.md`:面向用户的一段式引导文案。 -- `docs/device-code-auth.md`:浏览器授权链路和 fallback 规则。 +- `docs/device-code-auth.md`:旧授权流程退役后的迁移提示。 - `docs/troubleshooting.md`:常见排障路径。 ## 开发 diff --git a/dist/args.d.ts b/dist/args.d.ts deleted file mode 100644 index 0071bad..0000000 --- a/dist/args.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export type SetupArgs = { - token?: string; - backend?: string; - session?: string; - interval?: number; - enable?: boolean; -}; -export declare function parseSetupArgs(raw: string): SetupArgs; diff --git a/dist/args.js b/dist/args.js deleted file mode 100644 index 8a1b8cc..0000000 --- a/dist/args.js +++ /dev/null @@ -1,92 +0,0 @@ -function tokenize(input) { - const tokens = []; - let current = ""; - let quote = null; - for (let index = 0; index < input.length; index += 1) { - const char = input[index]; - if (quote) { - if (char === quote) { - quote = null; - } - else { - current += char; - } - continue; - } - if (char === '"' || char === "'") { - quote = char; - continue; - } - if (/\s/.test(char)) { - if (current) { - tokens.push(current); - current = ""; - } - continue; - } - current += char; - } - if (current) { - tokens.push(current); - } - return tokens; -} -export function parseSetupArgs(raw) { - const tokens = tokenize(raw.trim()); - const result = {}; - for (let index = 0; index < tokens.length; index += 1) { - const token = tokens[index]; - const next = tokens[index + 1]; - const assign = token.includes("=") ? token.split(/=(.*)/s) : null; - const key = assign ? assign[0] : token; - const value = assign ? assign[1] : next; - switch (key) { - case "token": - case "--token": - if (value) { - result.token = value; - if (!assign) - index += 1; - } - break; - case "backend": - case "--backend": - if (value) { - result.backend = value; - if (!assign) - index += 1; - } - break; - case "session": - case "--session": - if (value) { - result.session = value; - if (!assign) - index += 1; - } - break; - case "interval": - case "--interval": - if (value) { - const parsed = Number(value); - if (Number.isFinite(parsed)) { - result.interval = Math.round(parsed); - } - if (!assign) - index += 1; - } - break; - case "enable": - case "--enable": - result.enable = true; - break; - case "disable": - case "--disable": - result.enable = false; - break; - default: - break; - } - } - return result; -} diff --git a/dist/args.test.d.ts b/dist/args.test.d.ts deleted file mode 100644 index cb0ff5c..0000000 --- a/dist/args.test.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/dist/args.test.js b/dist/args.test.js deleted file mode 100644 index f36314b..0000000 --- a/dist/args.test.js +++ /dev/null @@ -1,19 +0,0 @@ -import { describe, expect, it } from "vitest"; -import { parseSetupArgs } from "./args.js"; -describe("parseSetupArgs", () => { - it("parses key=value syntax", () => { - expect(parseSetupArgs("token=abc backend=https://api-dev.chekkk.com session=agent:main:chek:mentions interval=6000")).toEqual({ - token: "abc", - backend: "https://api-dev.chekkk.com", - session: "agent:main:chek:mentions", - interval: 6000, - }); - }); - it("parses flag syntax", () => { - expect(parseSetupArgs("--token abc --backend https://api-dev.chekkk.com --disable")).toEqual({ - token: "abc", - backend: "https://api-dev.chekkk.com", - enable: false, - }); - }); -}); diff --git a/dist/chek-api.d.ts b/dist/chek-api.d.ts deleted file mode 100644 index 7c6f931..0000000 --- a/dist/chek-api.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -import type { BrowserAuthSession, BuddyRoomMessage, JsonObject, MentionTask } from "./types.js"; -export declare class ChekApiError extends Error { - status: number; - body: unknown; - constructor(message: string, status: number, body: unknown); -} -export declare class ChekApiClient { - private readonly baseUrl; - private readonly accessToken; - constructor(params: { - baseUrl: string; - accessToken?: string; - }); - private requestJson; - probe(): Promise; - createBrowserAuthSession(input: { - installId: string; - deviceId: string; - sessionKey: string; - metadata?: JsonObject; - }): Promise; - pollBrowserAuthSession(sessionId: string, deviceCode: string): Promise; - listPendingMentionTasks(pageSize?: number): Promise; - listRoomMessages(postId: string, pageSize?: number): Promise; - claimMentionTask(taskId: string): Promise; - completeMentionTask(taskId: string, result: JsonObject): Promise; - failMentionTask(taskId: string, result: JsonObject): Promise; - sendRoomMessage(postId: string, content: string): Promise; -} diff --git a/dist/chek-api.js b/dist/chek-api.js deleted file mode 100644 index 326e786..0000000 --- a/dist/chek-api.js +++ /dev/null @@ -1,111 +0,0 @@ -export class ChekApiError extends Error { - status; - body; - constructor(message, status, body) { - super(message); - this.name = "ChekApiError"; - this.status = status; - this.body = body; - } -} -export class ChekApiClient { - baseUrl; - accessToken; - constructor(params) { - this.baseUrl = params.baseUrl.replace(/\/+$/, ""); - this.accessToken = String(params.accessToken || "").trim(); - } - async requestJson(path, options = {}) { - const headers = {}; - if (this.accessToken) { - headers.Authorization = this.accessToken.startsWith("Bearer ") - ? this.accessToken - : `Bearer ${this.accessToken}`; - } - if (options.body !== undefined) { - headers["Content-Type"] = "application/json"; - } - const response = await fetch(`${this.baseUrl}${path}`, { - method: options.method ?? "GET", - headers, - body: options.body === undefined ? undefined : JSON.stringify(options.body), - }); - const rawText = await response.text(); - let payload = null; - if (rawText.trim()) { - try { - payload = JSON.parse(rawText); - } - catch { - payload = rawText; - } - } - if (!response.ok) { - const message = (payload && typeof payload === "object" && "detail" in payload - ? String(payload.detail || "") - : "") || `${response.status} ${response.statusText}`; - throw new ChekApiError(message, response.status, payload); - } - return payload; - } - async probe() { - await this.listPendingMentionTasks(1); - } - async createBrowserAuthSession(input) { - return await this.requestJson("/buddy/v1/openclaw/auth-sessions", { - method: "POST", - body: { - installId: input.installId, - deviceId: input.deviceId, - sessionKey: input.sessionKey, - metadata: input.metadata || {}, - }, - }); - } - async pollBrowserAuthSession(sessionId, deviceCode) { - const query = new URLSearchParams({ deviceCode }); - return await this.requestJson(`/buddy/v1/openclaw/auth-sessions/${sessionId}?${query.toString()}`); - } - async listPendingMentionTasks(pageSize = 20) { - const query = new URLSearchParams({ - status: "pending", - pageSize: String(pageSize), - }); - const payload = await this.requestJson(`/buddy/v1/mention-tasks?${query.toString()}`); - return Array.isArray(payload?.items) ? payload.items : []; - } - async listRoomMessages(postId, pageSize = 100) { - const query = new URLSearchParams({ - pageSize: String(Math.max(1, Math.min(pageSize, 100))), - }); - const payload = await this.requestJson(`/buddy/v1/posts/${postId}/messages?${query.toString()}`); - return Array.isArray(payload?.items) ? payload.items : []; - } - async claimMentionTask(taskId) { - return await this.requestJson(`/buddy/v1/mention-tasks/${taskId}`, { - method: "POST", - body: { action: "claim" }, - }); - } - async completeMentionTask(taskId, result) { - return await this.requestJson(`/buddy/v1/mention-tasks/${taskId}`, { - method: "POST", - body: { action: "complete", result }, - }); - } - async failMentionTask(taskId, result) { - return await this.requestJson(`/buddy/v1/mention-tasks/${taskId}`, { - method: "POST", - body: { action: "fail", result }, - }); - } - async sendRoomMessage(postId, content) { - return await this.requestJson(`/buddy/v1/posts/${postId}/messages`, { - method: "POST", - body: { - content, - mentions: [], - }, - }); - } -} diff --git a/dist/commands.js b/dist/commands.js index 697209e..7ec3499 100644 --- a/dist/commands.js +++ b/dist/commands.js @@ -1,16 +1,10 @@ -import { randomUUID } from "node:crypto"; -import { execFile } from "node:child_process"; -import os from "node:os"; -import { parseSetupArgs } from "./args.js"; -import { ChekApiClient } from "./chek-api.js"; import { maskToken, resolveAccessToken } from "./config.js"; import { buildBootstrapMessage } from "./render.js"; -const AUTHORIZATION_WAIT_TIMEOUT_MS = 180_000; function formatStatus(controller) { const snapshot = controller.getSnapshot(); return [ "CHEK CLI 状态", - `- running: ${snapshot.running ? "yes" : "no"}`, + `- running: ${snapshot.running ? "yes" : "no (migration shim)"}`, `- configured: ${snapshot.configured ? "yes" : "no"}`, `- backend: ${snapshot.backendAppBaseUrl}`, `- session: ${snapshot.sessionKey}`, @@ -33,14 +27,16 @@ function formatStatus(controller) { function formatSetupUsage() { return [ "用法:", - "/chek-setup [backend=https://api-dev.chekkk.com/api/backend-app] [session=agent:main:chek:mentions] [interval=5000]", + "/chek-setup", "", - "默认会自动拉起浏览器做 CHEK 授权;如果浏览器授权失败,再退回:", - "/chek-setup token=", + "站内 Agent 执行、专用授权和房间自动回复已退役。这个兼容命令不会创建授权会话或轮询旧接口。", "", - "也可以在 CLI 里执行:", - "openclaw chek setup", - "openclaw chek setup --token ", + "请在自己的 Agent 工具里使用 Python CHEK CLI:", + "git clone https://github.com/chekdata/chek-cli.git", + "cd chek-cli/packages/chek-cli && python -m pip install -e \".[dev]\"", + "chek config set-env dev && chek registry status", + "", + "Cursor、Codex、Claude Code 等可执行本地命令的工具可以直接运行;聊天模式工具先生成草稿。", ].join("\n"); } function summarizeSavedConfig(config) { @@ -55,155 +51,33 @@ function summarizeSavedConfig(config) { `- auth: ${config.authorizationStatus || "-"}`, ].join("\n"); } -function sleep(ms) { - return new Promise((resolve) => { - setTimeout(resolve, ms); - }); -} -function sanitizeToken(value) { - return value - .trim() - .toLowerCase() - .replace(/[^a-z0-9]+/g, "-") - .replace(/^-+|-+$/g, ""); -} -function withStableIdentity(config) { - const installId = config.installId.trim() || randomUUID(); - const hostname = sanitizeToken(os.hostname()) || "openclaw-device"; - const deviceId = config.deviceId.trim() || `${hostname}-${randomUUID().slice(0, 8)}`; - return { installId, deviceId }; -} -function openViaCommand(command, args) { - return new Promise((resolve, reject) => { - execFile(command, args, (error) => { - if (error) { - reject(error); - return; - } - resolve(); - }); - }); -} -async function openBrowser(url) { - const target = String(url || "").trim(); - if (!target) { - throw new Error("Browser authorization URL is empty."); - } - if (process.platform === "darwin") { - await openViaCommand("open", [target]); - return; - } - if (process.platform === "win32") { - await openViaCommand("cmd", ["/c", "start", "", target]); - return; - } - await openViaCommand("xdg-open", [target]); -} async function ensureBaseSetup(controller, patch) { const baseConfig = controller.getConfig(); return await controller.persistConfigPatch({ - ...withStableIdentity(baseConfig), ...patch, }); } -async function waitForBrowserAuthorization(controller, timeoutMs = AUTHORIZATION_WAIT_TIMEOUT_MS) { - const startedAt = Date.now(); - while (Date.now() - startedAt <= timeoutMs) { - const session = await controller.syncAuthorizationSession(); - const sessionStatus = String(session?.authorizationStatus || session?.status || "").trim(); - if (String(session?.pluginAccessToken || "").trim()) { - return session; - } - if (sessionStatus === "expired" || sessionStatus === "cancelled") { - return session; - } - const delayMs = Math.max(1_500, Number(session?.pollIntervalMs || controller.getConfig().pollIntervalMs || 5_000)); - await sleep(delayMs); - } - return null; -} -async function beginBrowserSetup(controller) { - const currentConfig = controller.getConfig(); - const api = new ChekApiClient({ - baseUrl: currentConfig.backendAppBaseUrl, - }); - const session = await api.createBrowserAuthSession({ - installId: currentConfig.installId, - deviceId: currentConfig.deviceId, - sessionKey: currentConfig.sessionKey, - metadata: { - source: "chek-cli", - setupMode: "browser_auth", - }, - }); - const authorizationUrl = String(session.authorizationUrl || "").trim(); - const savedConfig = await controller.persistConfigPatch({ - authSessionId: session.id, - deviceCode: String(session.deviceCode || "").trim(), - authorizationStatus: String(session.authorizationStatus || session.status || "pending").trim(), - authorizationUrl, +async function runSetup(controller, patch) { + // Keep a disabled entry for older hosts, but never save or use an old + // browser-auth token/session. Authentication belongs to the Python CLI. + const savedConfig = await ensureBaseSetup(controller, { + ...patch, + enabled: false, + accessToken: "", + authSessionId: "", + deviceCode: "", + authorizationStatus: "retired", + authorizationUrl: "", authorizedUserOneId: "", authorizedDisplayName: "", lastAuthorizedAt: "", - accessToken: "", }); - let browserMessage = `- browser: ${authorizationUrl || "authorization URL missing"}`; - if (authorizationUrl) { - try { - await openBrowser(authorizationUrl); - browserMessage = `- browser: opened ${authorizationUrl}`; - } - catch (error) { - browserMessage = `- browser: failed to auto-open (${error instanceof Error ? error.message : String(error)})\n- open this URL manually: ${authorizationUrl}`; - } - } - const authorizedSession = await waitForBrowserAuthorization(controller); - const authStatus = String(authorizedSession?.authorizationStatus || authorizedSession?.status || savedConfig.authorizationStatus || "").trim(); - if (String(authorizedSession?.pluginAccessToken || "").trim()) { - const health = await controller.runHealthCheck(); - return [ - summarizeSavedConfig(controller.getConfig()), - browserMessage, - `- authorization: ok (${authorizedSession?.authorizedDisplayName || authorizedSession?.authorizedUserOneId || "authorized"})`, - `- health: backend ${health.backend}, gateway ${health.gateway}`, - ].join("\n"); - } - return [ - summarizeSavedConfig(controller.getConfig()), - browserMessage, - `- authorization: ${authStatus || "pending"}`, - "- next: keep the browser page open until it shows “已授权,可返回 OpenClaw”,然后再执行 /chek-status 查看是否 ready", - ].join("\n"); -} -async function runSetup(controller, patch, opts) { - const savedConfig = await ensureBaseSetup(controller, patch); - if (!savedConfig.enabled) { - return `${summarizeSavedConfig(savedConfig)}\n- health: disabled`; - } - if (!opts.browserAuth) { - try { - const health = await controller.runHealthCheck(); - return `${summarizeSavedConfig(savedConfig)}\n- health: backend ${health.backend}, gateway ${health.gateway}`; - } - catch (error) { - return `${summarizeSavedConfig(savedConfig)}\n- health: ${error instanceof Error ? error.message : String(error)}`; - } - } - if (resolveAccessToken(savedConfig)) { - try { - const health = await controller.runHealthCheck(); - return `${summarizeSavedConfig(savedConfig)}\n- health: backend ${health.backend}, gateway ${health.gateway}`; - } - catch (error) { - return `${summarizeSavedConfig(savedConfig)}\n- health: ${error instanceof Error ? error.message : String(error)}`; - } - } - return await beginBrowserSetup(controller); + return `${summarizeSavedConfig(savedConfig)}\n- bridge: retired (no browser authorization, polling, or automatic room replies)\n\n${formatSetupUsage()}`; } export function registerChekCliCommands(api, controller) { api.registerCommand({ name: "chek-setup", - description: "Configure CHEK CLI for CHEK mention-task polling.", + description: "Show the migration path to the Python CHEK CLI.", acceptsArgs: true, handler: async (ctx) => { const rawArgs = ctx.args?.trim() ?? ""; @@ -212,25 +86,7 @@ export function registerChekCliCommands(api, controller) { text: `${formatSetupUsage()}\n\n${formatStatus(controller)}`, }; } - const parsed = parseSetupArgs(rawArgs); - const patch = {}; - if (parsed.token !== undefined) - patch.accessToken = parsed.token; - if (parsed.backend !== undefined) - patch.backendAppBaseUrl = parsed.backend; - if (parsed.session !== undefined) - patch.sessionKey = parsed.session; - if (parsed.interval !== undefined) - patch.pollIntervalMs = parsed.interval; - if (parsed.enable !== undefined) - patch.enabled = parsed.enable; - if (parsed.token !== undefined) { - patch.authorizationStatus = "token_fallback"; - } - const shouldStartBrowserAuth = parsed.token === undefined && (rawArgs.length === 0 || Object.keys(patch).length > 0); - const text = await runSetup(controller, patch, { - browserAuth: shouldStartBrowserAuth, - }); + const text = await runSetup(controller, {}); return { text, }; @@ -238,14 +94,14 @@ export function registerChekCliCommands(api, controller) { }); api.registerCommand({ name: "chek-status", - description: "Show CHEK CLI runtime status.", + description: "Show migration-shim status.", handler: async () => ({ text: formatStatus(controller), }), }); api.registerCommand({ name: "chek-bootstrap", - description: "Print the one-shot bootstrap text for CHEK CLI.", + description: "Print the Python CHEK CLI migration guide.", handler: async () => ({ text: buildBootstrapMessage(), }), @@ -256,29 +112,10 @@ export function registerChekCliProgram(program, api, controller) { const chek = program.command("chek").description("CHEK CLI helpers for CHEK"); chek .command("setup") - .description("Persist CHEK CLI config into OpenClaw") - .option("--token ", "CHEK access token fallback") - .option("--backend ", "CHEK backend-app base URL") - .option("--session ", "Stable local OpenClaw session key") - .option("--interval ", "Poll interval in milliseconds") - .option("--disable", "Disable the bridge after saving", false) + .description("Print the Python CHEK CLI migration guide") .action(async (options) => { - const patch = {}; - if (options.token) { - patch.accessToken = String(options.token).trim(); - patch.authorizationStatus = "token_fallback"; - } - if (options.backend) - patch.backendAppBaseUrl = String(options.backend).trim(); - if (options.session) - patch.sessionKey = String(options.session).trim(); - if (options.interval !== undefined) - patch.pollIntervalMs = Number(options.interval); - if (options.disable) - patch.enabled = false; - const output = await runSetup(controller, patch, { - browserAuth: !options.token, - }); + void options; + const output = await runSetup(controller, {}); console.log(output); }); chek diff --git a/dist/config.d.ts b/dist/config.d.ts index 75b6042..54e15d5 100644 --- a/dist/config.d.ts +++ b/dist/config.d.ts @@ -63,44 +63,8 @@ export declare const CONFIG_UI_HINTS: { readonly label: "CHEK Backend URL"; readonly placeholder: "https://api-dev.chekkk.com/api/backend-app"; }; - readonly accessToken: { - readonly label: "CHEK Access Token"; - readonly sensitive: true; - readonly help: "If left empty, the plugin falls back to CHEK_ACCESS_TOKEN from the environment."; - }; - readonly pollIntervalMs: { - readonly label: "Poll Interval (ms)"; - }; readonly sessionKey: { - readonly label: "OpenClaw Session Key"; - readonly placeholder: "agent:main:chek:mentions"; - }; - readonly installId: { - readonly label: "Install ID"; - }; - readonly deviceId: { - readonly label: "Device ID"; - }; - readonly authSessionId: { - readonly label: "Auth Session ID"; - }; - readonly deviceCode: { - readonly label: "Device Code"; - }; - readonly authorizationStatus: { - readonly label: "Authorization Status"; - }; - readonly authorizationUrl: { - readonly label: "Authorization URL"; - }; - readonly authorizedUserOneId: { - readonly label: "Authorized User One ID"; - }; - readonly authorizedDisplayName: { - readonly label: "Authorized User"; - }; - readonly lastAuthorizedAt: { - readonly label: "Last Authorized At"; + readonly label: "Legacy Session Key (unused)"; }; }; export declare function normalizeBackendAppBaseUrl(value: string): string; diff --git a/dist/config.js b/dist/config.js index a81806f..940eb77 100644 --- a/dist/config.js +++ b/dist/config.js @@ -32,25 +32,7 @@ export const CONFIG_UI_HINTS = { label: "CHEK Backend URL", placeholder: "https://api-dev.chekkk.com/api/backend-app", }, - accessToken: { - label: "CHEK Access Token", - sensitive: true, - help: "If left empty, the plugin falls back to CHEK_ACCESS_TOKEN from the environment.", - }, - pollIntervalMs: { label: "Poll Interval (ms)" }, - sessionKey: { - label: "OpenClaw Session Key", - placeholder: DEFAULT_SESSION_KEY, - }, - installId: { label: "Install ID" }, - deviceId: { label: "Device ID" }, - authSessionId: { label: "Auth Session ID" }, - deviceCode: { label: "Device Code" }, - authorizationStatus: { label: "Authorization Status" }, - authorizationUrl: { label: "Authorization URL" }, - authorizedUserOneId: { label: "Authorized User One ID" }, - authorizedDisplayName: { label: "Authorized User" }, - lastAuthorizedAt: { label: "Last Authorized At" }, + sessionKey: { label: "Legacy Session Key (unused)" }, }; function asRecord(value) { if (!value || typeof value !== "object" || Array.isArray(value)) { diff --git a/dist/gateway-cli.d.ts b/dist/gateway-cli.d.ts deleted file mode 100644 index 49896b7..0000000 --- a/dist/gateway-cli.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -import type { ChatFinalPayload, SessionPatchResult } from "./types.js"; -type GatewayInvocation = { - command: string; - argsPrefix: string[]; -}; -export declare function resolveGatewayInvocation(options?: { - cliEntryEnv?: string; - argv?: string[]; - resolveModule?: (() => string) | null; - openclawBin?: string; -}): GatewayInvocation; -export declare function extractGatewayJsonPayload(stdout: string): string; -export declare function gatewayCall(method: string, params: Record, options?: { - expectFinal?: boolean; -}): Promise; -export declare function resolveTranscriptFile(result: SessionPatchResult): string; -type TranscriptEntry = { - type?: string; - id?: string; - parentId?: string; - message?: { - role?: string; - stopReason?: string; - content?: Array<{ - type?: string; - text?: string; - }>; - }; -}; -export declare function extractReplyFromTranscriptEntries(entries: TranscriptEntry[], messageId: string): string; -export declare function ensureSession(sessionKey: string, label: string): Promise; -export declare function injectSessionNote(sessionKey: string, message: string, label: string): Promise; -export declare function sendChatPrompt(sessionKey: string, message: string, options?: { - sessionLabel?: string; -}): Promise; -export {}; diff --git a/dist/gateway-cli.js b/dist/gateway-cli.js deleted file mode 100644 index d74031d..0000000 --- a/dist/gateway-cli.js +++ /dev/null @@ -1,292 +0,0 @@ -import { execFile } from "node:child_process"; -import { randomUUID } from "node:crypto"; -import { existsSync, promises as fs } from "node:fs"; -import { createRequire } from "node:module"; -import path from "node:path"; -import { promisify } from "node:util"; -import { sanitizeModelReplyText } from "./render.js"; -const require = createRequire(import.meta.url); -const execFileAsync = promisify(execFile); -const gatewayTimeoutMs = 45_000; -const DEFAULT_CHAT_SESSION_LABEL = "CHEK Mentions"; -let cachedInvocation = null; -function isUsableCliPath(candidate) { - return Boolean(candidate && existsSync(candidate)); -} -export function resolveGatewayInvocation(options = {}) { - const cliEntryEnv = String(options.cliEntryEnv ?? process.env.OPENCLAW_CLI_ENTRY ?? "").trim(); - if (isUsableCliPath(cliEntryEnv)) { - return { - command: process.execPath, - argsPrefix: [cliEntryEnv], - }; - } - const resolveModule = options.resolveModule === undefined - ? () => require.resolve("openclaw/cli-entry") - : options.resolveModule; - if (resolveModule) { - try { - const resolved = String(resolveModule() || "").trim(); - if (isUsableCliPath(resolved)) { - return { - command: process.execPath, - argsPrefix: [resolved], - }; - } - } - catch { - // Fall through to argv/PATH-based resolution for archive installs. - } - } - const argv = options.argv ?? process.argv; - const argvEntry = String(argv[1] || "").trim(); - if (isUsableCliPath(argvEntry)) { - return { - command: process.execPath, - argsPrefix: [argvEntry], - }; - } - return { - command: String(options.openclawBin || process.env.OPENCLAW_BIN || "openclaw").trim() - || "openclaw", - argsPrefix: [], - }; -} -function getGatewayInvocation() { - if (!cachedInvocation) { - cachedInvocation = resolveGatewayInvocation(); - } - return cachedInvocation; -} -export function extractGatewayJsonPayload(stdout) { - const trimmed = stdout.trim(); - if (!trimmed) { - return ""; - } - if (trimmed.startsWith("{") || trimmed.startsWith("[")) { - try { - JSON.parse(trimmed); - return trimmed; - } - catch { - // Keep scanning for a valid JSON suffix when stdout starts with log lines like "[plugins] ...". - } - } - const lines = trimmed.split(/\r?\n/); - for (let index = 0; index < lines.length; index += 1) { - const candidate = lines.slice(index).join("\n").trim(); - if (!candidate || (!candidate.startsWith("{") && !candidate.startsWith("["))) { - continue; - } - try { - JSON.parse(candidate); - return candidate; - } - catch { - // Keep looking for a valid JSON suffix. - } - } - return trimmed; -} -async function parseJsonOutput(stdout, stderr) { - const payloadText = extractGatewayJsonPayload(stdout); - if (!payloadText) { - throw new Error(`Gateway call returned empty stdout.\nstderr: ${stderr.trim()}`); - } - try { - return JSON.parse(payloadText); - } - catch (error) { - throw new Error(`Failed to parse gateway JSON response: ${String(error)}\nstdout: ${stdout.trim()}\nstderr: ${stderr.trim()}`); - } -} -export async function gatewayCall(method, params, options = {}) { - const invocation = getGatewayInvocation(); - const args = [ - ...invocation.argsPrefix, - "gateway", - "call", - method, - "--json", - "--timeout", - String(gatewayTimeoutMs), - ]; - if (options.expectFinal) { - args.push("--expect-final"); - } - args.push("--params", JSON.stringify(params)); - const result = await execFileAsync(invocation.command, args, { - maxBuffer: 8 * 1024 * 1024, - }); - return (await parseJsonOutput(result.stdout, result.stderr)); -} -async function ensureTranscriptFile(result) { - const sessionId = result.entry?.sessionId?.trim(); - const sessionFile = resolveTranscriptFile(result); - if (!sessionFile) { - return; - } - try { - await fs.access(sessionFile); - } - catch { - await fs.mkdir(path.dirname(sessionFile), { recursive: true }); - const header = { - type: "session", - version: 3, - id: sessionId || path.basename(sessionFile, ".jsonl"), - timestamp: new Date().toISOString(), - cwd: process.cwd(), - }; - await fs.writeFile(sessionFile, `${JSON.stringify(header)}\n`, "utf-8"); - } -} -export function resolveTranscriptFile(result) { - const sessionId = result.entry?.sessionId?.trim(); - return (result.entry?.sessionFile?.trim() - || (sessionId && result.path?.trim() - ? path.join(path.dirname(result.path.trim()), `${sessionId}.jsonl`) - : "")).trim(); -} -function extractTranscriptText(entry) { - const parts = Array.isArray(entry?.message?.content) ? entry.message.content : []; - return sanitizeModelReplyText(parts - .map((item) => (item && typeof item.text === "string" ? item.text : "")) - .filter(Boolean) - .join("\n")); -} -export function extractReplyFromTranscriptEntries(entries, messageId) { - const marker = `[message_id: ${messageId}]`; - let promptIndex = -1; - for (let index = entries.length - 1; index >= 0; index -= 1) { - const entry = entries[index]; - if (entry?.type === "message" - && entry.message?.role === "user" - && extractTranscriptText(entry).includes(marker) - && typeof entry.id === "string" - && entry.id.trim().length > 0) { - promptIndex = index; - break; - } - } - if (promptIndex < 0) { - return ""; - } - const promptId = String(entries[promptIndex]?.id || "").trim(); - if (!promptId) { - return ""; - } - const parentMap = new Map(); - for (const entry of entries) { - const id = String(entry?.id || "").trim(); - const parentId = String(entry?.parentId || "").trim(); - if (id && parentId) { - parentMap.set(id, parentId); - } - } - const isDescendantOfPrompt = (entry) => { - let cursor = String(entry.parentId || "").trim(); - let depth = 0; - while (cursor && depth < 32) { - if (cursor === promptId) { - return true; - } - cursor = parentMap.get(cursor) || ""; - depth += 1; - } - return false; - }; - for (let index = entries.length - 1; index > promptIndex; index -= 1) { - const entry = entries[index]; - if (entry?.type !== "message") { - continue; - } - if (entry.message?.role !== "assistant") { - continue; - } - if (entry.message?.stopReason === "injected") { - continue; - } - if (!isDescendantOfPrompt(entry)) { - continue; - } - const text = extractTranscriptText(entry); - if (text) { - return text; - } - } - return ""; -} -async function waitForTranscriptReply(session, messageId, timeoutMs = gatewayTimeoutMs) { - const sessionFile = resolveTranscriptFile(session); - if (!sessionFile) { - throw new Error("Session transcript file could not be resolved."); - } - const startedAt = Date.now(); - while (Date.now() - startedAt <= timeoutMs) { - try { - const raw = await fs.readFile(sessionFile, "utf-8"); - const entries = raw - .split(/\r?\n/) - .map((line) => line.trim()) - .filter(Boolean) - .map((line) => { - try { - return JSON.parse(line); - } - catch { - return null; - } - }) - .filter((entry) => Boolean(entry)); - const reply = extractReplyFromTranscriptEntries(entries, messageId); - if (reply) { - return reply; - } - } - catch (error) { - if (!(error instanceof Error) || !/ENOENT/i.test(error.message)) { - throw error; - } - } - await new Promise((resolve) => { - setTimeout(resolve, 400); - }); - } - throw new Error("OpenClaw reply did not appear in the session transcript before timeout."); -} -export async function ensureSession(sessionKey, label) { - const result = await gatewayCall("sessions.patch", { - key: sessionKey, - label, - }); - await ensureTranscriptFile(result); - return result; -} -export async function injectSessionNote(sessionKey, message, label) { - await gatewayCall("chat.inject", { - sessionKey, - message, - label, - }); -} -export async function sendChatPrompt(sessionKey, message, options = {}) { - const idempotencyKey = `chek-cli-${randomUUID()}`; - const sessionLabel = String(options.sessionLabel || "").trim() || DEFAULT_CHAT_SESSION_LABEL; - const session = await ensureSession(sessionKey, sessionLabel); - const started = await gatewayCall("chat.send", { - sessionKey, - message, - deliver: false, - timeoutMs: gatewayTimeoutMs, - idempotencyKey, - }); - const reply = await waitForTranscriptReply(session, idempotencyKey, gatewayTimeoutMs); - return { - runId: started.runId, - status: "ok", - result: { - payloads: [{ text: reply }], - }, - }; -} diff --git a/dist/index.d.ts b/dist/index.d.ts index fa52a5a..c009448 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -66,44 +66,8 @@ declare const chekCliPlugin: { readonly label: "CHEK Backend URL"; readonly placeholder: "https://api-dev.chekkk.com/api/backend-app"; }; - readonly accessToken: { - readonly label: "CHEK Access Token"; - readonly sensitive: true; - readonly help: "If left empty, the plugin falls back to CHEK_ACCESS_TOKEN from the environment."; - }; - readonly pollIntervalMs: { - readonly label: "Poll Interval (ms)"; - }; readonly sessionKey: { - readonly label: "OpenClaw Session Key"; - readonly placeholder: "agent:main:chek:mentions"; - }; - readonly installId: { - readonly label: "Install ID"; - }; - readonly deviceId: { - readonly label: "Device ID"; - }; - readonly authSessionId: { - readonly label: "Auth Session ID"; - }; - readonly deviceCode: { - readonly label: "Device Code"; - }; - readonly authorizationStatus: { - readonly label: "Authorization Status"; - }; - readonly authorizationUrl: { - readonly label: "Authorization URL"; - }; - readonly authorizedUserOneId: { - readonly label: "Authorized User One ID"; - }; - readonly authorizedDisplayName: { - readonly label: "Authorized User"; - }; - readonly lastAuthorizedAt: { - readonly label: "Last Authorized At"; + readonly label: "Legacy Session Key (unused)"; }; }; }; diff --git a/dist/index.js b/dist/index.js index 0e744d0..c36733f 100644 --- a/dist/index.js +++ b/dist/index.js @@ -4,7 +4,7 @@ import { ChekCliController } from "./service.js"; const chekCliPlugin = { id: "chek-cli", name: "CHEK CLI", - description: "Agent-native CHEK CLI and OpenClaw helpers for review rooms, AI product publication, and mention handling.", + description: "CHEK CLI migration guide for using the Python CLI from your own Agent environment.", configSchema: { parse: parseConfig, jsonSchema: CONFIG_JSON_SCHEMA, diff --git a/dist/render.d.ts b/dist/render.d.ts index b72f29f..f76d5f0 100644 --- a/dist/render.d.ts +++ b/dist/render.d.ts @@ -1,5 +1,6 @@ import type { BuddyRoomMessage, ChatFinalPayload, MentionTask, ReplyIntent } from "./types.js"; export declare const CURRENT_INSTALL_SPEC = "https://github.com/chekdata/chek-cli/archive/refs/heads/main.tar.gz?download=1"; +export declare const CHEK_CLI_REPOSITORY = "https://github.com/chekdata/chek-cli"; type ReplyStrategy = { intent: ReplyIntent; directReply: string | null; diff --git a/dist/render.js b/dist/render.js index 9c685ec..28c9b72 100644 --- a/dist/render.js +++ b/dist/render.js @@ -1,4 +1,5 @@ export const CURRENT_INSTALL_SPEC = "https://github.com/chekdata/chek-cli/archive/refs/heads/main.tar.gz?download=1"; +export const CHEK_CLI_REPOSITORY = "https://github.com/chekdata/chek-cli"; const MAX_CONTEXT_MESSAGES = 6; function compact(value, maxLength) { const normalized = value.replace(/\s+/g, " ").trim(); @@ -156,7 +157,7 @@ function buildDirectStrategyReply(intent, subject, task) { const content = String(task.payload.messageContent || ""); switch (intent) { case "openclaw_bootstrap": - return `第一步先安装 CHEK CLI:openclaw plugins install ${CURRENT_INSTALL_SPEC}。装完如果没自动继续,再执行 /chek-setup。`; + return "站内 Agent 执行和专用授权已退役。请在自己的 Agent 工具里安装 Python CHEK CLI;Cursor、Codex、Claude Code 可直接运行,聊天模式工具先生成草稿。"; case "posting_copy": if (/怎么介绍|如何介绍|怎么讲|怎么描述/.test(content)) { return `可以直接发:这是${subject},已附演示视频、适配机型和安装说明,拿来就能跑,感兴趣的来聊。`; @@ -194,8 +195,8 @@ function buildStrategyGuidance(intent, subject) { switch (intent) { case "openclaw_bootstrap": return { - guidance: "对方在问 OpenClaw / CHEK CLI 的安装、授权或绑定。请直接回答下一步操作,优先给安装命令和 /chek-setup,不要岔到房间内容优化。", - summary: "直接给 OpenClaw 安装与授权下一步", + guidance: "对方在问 CHEK CLI 接入。请说明站内 Agent 执行和专用授权已退役,并给出自己的 Agent 工具安装 Python CLI 的下一步。", + summary: "给出自己的 Agent 使用 CHEK CLI 的下一步", }; case "posting_copy": return { @@ -265,7 +266,7 @@ export function buildTaskInjectionText(task, roomMessages = []) { `回复目标:${strategy.summary}`, "最近房间上下文:", formatRoomMessagesContext(recentMessages), - "插件会自动生成一条简短回复并回房间;如果失败,会把失败原因留在这里。", + "这是给你自己的 Agent 的草稿上下文;旧插件不会自动生成或发送房间回复。", ].join("\n"); } export function buildAutoReplyPrompt(task, roomMessages = []) { @@ -311,30 +312,24 @@ export function extractChatReplyText(payload) { } export function buildBootstrapMessage() { return [ - "请在这台机器上安装并配置 CHEK 房间助手插件,并尽量自动完成初始化。", + "CHEK 的站内 Agent 执行、专用授权和房间自动回复已退役。请在你自己的 Agent 工具里使用 Python CHEK CLI。", "", - "目标:", - "1. 安装 OpenClaw 插件 CHEK CLI", - "2. 安装后重启 Gateway", - "3. 自动拉起浏览器完成 CHEK 授权与设备绑定", - "4. 做一次连通性测试", - "5. 最后告诉我当前状态是否 ready", + "安装:", + "git clone https://github.com/chekdata/chek-cli.git", + "cd chek-cli/packages/chek-cli && python -m pip install -e \".[dev]\"", + "chek config set-env dev", + "chek registry status", "", - "安装命令:", - `openclaw plugins install ${CURRENT_INSTALL_SPEC}`, - "", - "如果插件安装成功但不能自动继续,请立即执行 `/chek-setup`。插件会自动打开浏览器到 CHEK 授权页;浏览器显示“已授权,可返回 OpenClaw”后,回到本地继续等待健康检查完成。", - "如果浏览器授权失败,再退回 `/chek-setup token=` 或 `openclaw chek setup --token `。", + "使用边界:", + "- Cursor、Codex、Claude Code 等能执行本地命令的 Agent 可以直接运行 CHEK CLI。", + "- 普通 ChatGPT、豆包等聊天模式工具先生成草稿和命令,由用户确认或交给可执行 CLI 的 Agent。", + "- 普通 CHEK 登录、房间消息、人工 @、评测、证据、评分、分享和 EGO 上传继续保留。", "", "参考链接:", - "- 插件说明:https://github.com/chekdata/chek-cli#readme", + `- GitHub:${CHEK_CLI_REPOSITORY}`, "- setup skill:https://github.com/chekdata/chek-cli/blob/main/skills/chek-setup/SKILL.md", - "- 浏览器授权说明:https://github.com/chekdata/chek-cli/blob/main/docs/device-code-auth.md", - "- 排障说明:https://github.com/chekdata/chek-cli/blob/main/docs/troubleshooting.md", + "- DEV 接入页:https://app-dev.chekkk.com/#/pages/agentConnect/index", "", - "执行要求:", - "- 如果可以直接执行宿主机命令,就直接完成", - "- 如果某一步需要我人工确认,只在那一步向我索取最小必要信息", - "- 如果无法执行,不要假装成功;请明确说明失败原因、卡住步骤,以及下一条我应该发你的消息", + "执行要求:先读 GitHub 文档和 setup skill,再检查环境与普通 CHEK 登录;不要索取或回传无关 token、验证码、Cookie 或 Authorization header。", ].join("\n"); } diff --git a/dist/render.test.js b/dist/render.test.js index 0297743..749c8a1 100644 --- a/dist/render.test.js +++ b/dist/render.test.js @@ -83,8 +83,8 @@ describe("render helpers", () => { expect(buildReplyStrategy(saleTask).directReply).toContain("支持开源共享,也接受商业授权/成品出售"); expect(buildReplyStrategy(introTask).directReply).toContain("这是G1 动作模型"); expect(buildReplyStrategy(openclawTask).intent).toBe("openclaw_bootstrap"); - expect(buildReplyStrategy(openclawTask).directReply).toContain("openclaw plugins install"); - expect(buildReplyStrategy(openclawTask).directReply).toContain("/chek-setup"); + expect(buildReplyStrategy(openclawTask).directReply).toContain("Python CHEK CLI"); + expect(buildReplyStrategy(openclawTask).directReply).toContain("自己的 Agent"); }); it("injects recent room context and honesty rules into the prompt", () => { const task = { @@ -157,11 +157,10 @@ describe("render helpers", () => { }); it("builds bootstrap text", () => { const message = buildBootstrapMessage(); - expect(message).toContain("openclaw plugins install https://github.com/chekdata/chek-cli/archive/refs/heads/main.tar.gz?download=1"); - expect(message).toContain("目标:"); - expect(message).toContain("执行要求:"); - expect(message).toContain("/chek-setup"); - expect(message).toContain("已授权,可返回 OpenClaw"); - expect(message).toContain("CHEK_ACCESS_TOKEN"); + expect(message).toContain("Python CHEK CLI"); + expect(message).toContain("自己的 Agent 工具"); + expect(message).toContain("Cursor、Codex、Claude Code"); + expect(message).toContain("普通 ChatGPT、豆包"); + expect(message).toContain("app-dev.chekkk.com/#/pages/agentConnect/index"); }); }); diff --git a/dist/service.d.ts b/dist/service.d.ts index ccadb6f..4601997 100644 --- a/dist/service.d.ts +++ b/dist/service.d.ts @@ -8,13 +8,9 @@ type Logger = { }; export declare class ChekCliController { private config; - private readonly logger; private readonly runtimeConfig; private readonly snapshot; - private timer; - private polling; private stateDir; - private started; constructor(params: { config: ChekCliConfig; logger: Logger; @@ -32,13 +28,6 @@ export declare class ChekCliController { backend: string; gateway: string; }>; - private injectSessionNoteForKeyBestEffort; - private scheduleNext; - private pollLoop; - private pollOnce; - private processTask; - private loadRoomMessages; - private generateReply; private persistSnapshot; } export {}; diff --git a/dist/service.js b/dist/service.js index 4ab8608..49f7263 100644 --- a/dist/service.js +++ b/dist/service.js @@ -1,14 +1,10 @@ import { promises as fs } from "node:fs"; import path from "node:path"; -import { ChekApiClient, ChekApiError } from "./chek-api.js"; import { isConfigured, parseConfig, resolveAccessToken, withConfigPatch, } from "./config.js"; -import { ensureSession, injectSessionNote, sendChatPrompt, } from "./gateway-cli.js"; -import { buildAutoReplyPrompt, buildFallbackReply, buildReplyStrategy, buildRoomSessionKey, buildRoomSessionLabel, buildTaskInjectionText, extractChatReplyText, selectRoomMessagesForContext, } from "./render.js"; -const SESSION_LABEL = "CHEK Mentions"; const PLUGIN_CONFIG_KEY = "chek-cli"; const LEGACY_PLUGIN_CONFIG_KEY = "memor-upload"; const STATUS_FILE_NAME = "chek-cli-status.json"; -const ROOM_CONTEXT_PAGE_SIZE = 100; +const RETIRED_BRIDGE_MESSAGE = "站内 Agent 执行、专用授权和房间自动回复已退役;请使用 Python CHEK CLI 连接自己的 Agent 工具。"; function nowIso() { return new Date().toISOString(); } @@ -20,16 +16,11 @@ function summarizeError(error) { } export class ChekCliController { config; - logger; runtimeConfig; snapshot; - timer = null; - polling = false; stateDir = null; - started = false; constructor(params) { this.config = params.config; - this.logger = params.logger; this.runtimeConfig = params.runtimeConfig; this.snapshot = { running: false, @@ -63,18 +54,14 @@ export class ChekCliController { return { ...this.config }; } async start() { - this.started = true; - this.snapshot.running = true; + // The root TypeScript package remains as a migration shim. It must never + // poll the retired hosted Agent endpoints or create a browser-auth session. + this.snapshot.running = false; + this.snapshot.lastError = RETIRED_BRIDGE_MESSAGE; await this.persistSnapshot(); - this.scheduleNext(250); } async stop() { - this.started = false; this.snapshot.running = false; - if (this.timer) { - clearTimeout(this.timer); - this.timer = null; - } await this.persistSnapshot(); } async updateConfig(config) { @@ -94,9 +81,6 @@ export class ChekCliController { this.snapshot.lastAuthorizedAt = config.lastAuthorizedAt || null; this.snapshot.lastError = null; await this.persistSnapshot(); - if (this.started) { - this.scheduleNext(250); - } } async persistConfigPatch(patch) { const currentConfig = this.runtimeConfig.loadConfig(); @@ -127,246 +111,16 @@ export class ChekCliController { return nextPluginConfig; } async syncAuthorizationSession() { - const authSessionId = this.config.authSessionId.trim(); - const deviceCode = this.config.deviceCode.trim(); - if (!authSessionId || !deviceCode) { - return null; - } - const api = new ChekApiClient({ - baseUrl: this.config.backendAppBaseUrl, - }); - const session = await api.pollBrowserAuthSession(authSessionId, deviceCode); - const patch = { - authorizationStatus: String(session.authorizationStatus || session.status || this.config.authorizationStatus).trim(), - authorizationUrl: String(session.authorizationUrl || this.config.authorizationUrl || "").trim(), - authorizedUserOneId: String(session.authorizedUserOneId || this.config.authorizedUserOneId || "").trim(), - authorizedDisplayName: String(session.authorizedDisplayName || this.config.authorizedDisplayName || "").trim(), - lastAuthorizedAt: String(session.authorizedAt || this.config.lastAuthorizedAt || "").trim(), - }; - const pluginAccessToken = String(session.pluginAccessToken || "").trim(); - if (pluginAccessToken) { - patch.accessToken = pluginAccessToken; - } - await this.persistConfigPatch(patch); - return session; + this.snapshot.lastError = RETIRED_BRIDGE_MESSAGE; + await this.persistSnapshot(); + return null; } async runHealthCheck() { - let accessToken = resolveAccessToken(this.config); - if (!accessToken && this.config.authSessionId.trim() && this.config.deviceCode.trim()) { - await this.syncAuthorizationSession(); - accessToken = resolveAccessToken(this.config); - } - if (!accessToken) { - throw new Error("CHEK access token is not configured."); - } - const api = new ChekApiClient({ - baseUrl: this.config.backendAppBaseUrl, - accessToken, - }); - await api.probe(); - await ensureSession(this.config.sessionKey, SESSION_LABEL); return { - backend: "ok", - gateway: "ok", + backend: "retired", + gateway: "use-python-cli", }; } - injectSessionNoteForKeyBestEffort(sessionKey, message, label) { - void injectSessionNote(sessionKey, message, label).catch((error) => { - this.logger.warn(`[chek-cli] failed to inject ${label} note: ${summarizeError(error)}`); - }); - } - scheduleNext(delayMs) { - if (!this.started) { - return; - } - if (this.timer) { - clearTimeout(this.timer); - } - this.timer = setTimeout(() => { - void this.pollLoop(); - }, delayMs); - } - async pollLoop() { - if (!this.started || this.polling) { - return; - } - this.polling = true; - try { - await this.pollOnce(); - } - finally { - this.polling = false; - this.scheduleNext(this.config.pollIntervalMs); - } - } - async pollOnce() { - this.snapshot.lastPollAt = nowIso(); - this.snapshot.lastError = null; - this.snapshot.configured = isConfigured(this.config); - this.snapshot.accessTokenConfigured = Boolean(resolveAccessToken(this.config)); - await this.persistSnapshot(); - if (!this.config.enabled) { - return; - } - let accessToken = resolveAccessToken(this.config); - if (!accessToken) { - if (this.config.authSessionId.trim() && this.config.deviceCode.trim()) { - try { - const session = await this.syncAuthorizationSession(); - const sessionStatus = String(session?.authorizationStatus || session?.status || "").trim(); - if (String(session?.pluginAccessToken || "").trim()) { - this.snapshot.lastSuccessAt = nowIso(); - this.snapshot.lastError = null; - accessToken = resolveAccessToken(this.config); - } - else if (sessionStatus === "pending") { - this.snapshot.lastError = "Waiting for browser authorization."; - } - else if (sessionStatus) { - this.snapshot.lastError = `Browser authorization status: ${sessionStatus}`; - } - else { - this.snapshot.lastError = "CHEK browser authorization has not completed yet."; - } - } - catch (error) { - this.snapshot.lastError = summarizeError(error); - if (error instanceof ChekApiError && error.status === 410) { - await this.stop(); - } - } - } - else { - this.snapshot.lastError = "CHEK access token is not configured."; - } - if (!accessToken) { - await this.persistSnapshot(); - return; - } - } - const api = new ChekApiClient({ - baseUrl: this.config.backendAppBaseUrl, - accessToken, - }); - try { - const tasks = await api.listPendingMentionTasks(20); - this.snapshot.lastSuccessAt = nowIso(); - await this.persistSnapshot(); - for (const task of [...tasks].reverse()) { - await this.processTask(api, task); - } - } - catch (error) { - this.snapshot.lastError = summarizeError(error); - if (error instanceof ChekApiError && error.status === 410) { - await this.stop(); - } - this.logger.error(`[chek-cli] poll failed: ${this.snapshot.lastError}`); - await this.persistSnapshot(); - } - } - async processTask(api, task) { - let claimedTask = null; - const postId = String(task.payload.postId || task.postId || "").trim(); - const taskSessionKey = postId - ? buildRoomSessionKey(this.config.sessionKey, postId) - : this.config.sessionKey; - const taskSessionLabel = postId ? buildRoomSessionLabel(task) : SESSION_LABEL; - try { - claimedTask = await api.claimMentionTask(task.id); - } - catch (error) { - if (error instanceof ChekApiError && error.status === 409) { - return; - } - throw error; - } - try { - if (!postId) { - throw new Error(`Task ${task.id} is missing postId.`); - } - const roomMessages = await this.loadRoomMessages(api, task, postId); - await ensureSession(taskSessionKey, taskSessionLabel); - this.injectSessionNoteForKeyBestEffort(taskSessionKey, buildTaskInjectionText(task, roomMessages), "CHEK @"); - const processed = await this.generateReply(task, roomMessages, taskSessionKey, taskSessionLabel); - await api.sendRoomMessage(postId, processed.reply); - await api.completeMentionTask(task.id, { - reply: processed.reply, - mode: processed.mode, - sessionKey: processed.sessionKey, - intent: processed.intent, - }); - this.snapshot.lastTaskAt = nowIso(); - this.snapshot.lastTaskId = task.id; - this.snapshot.lastSuccessAt = nowIso(); - this.injectSessionNoteForKeyBestEffort(taskSessionKey, `已自动回复到《${task.payload.postTitle || postId}》:${processed.reply}`, "CHEK 已发送"); - await this.persistSnapshot(); - } - catch (error) { - const reason = summarizeError(error); - this.snapshot.lastError = reason; - await this.persistSnapshot(); - this.injectSessionNoteForKeyBestEffort(taskSessionKey, `自动回复失败:${reason}`, "CHEK 失败"); - if (claimedTask) { - try { - await api.failMentionTask(task.id, { - error: reason, - sessionKey: taskSessionKey, - }); - } - catch (failError) { - this.logger.error(`[chek-cli] failed to mark task ${task.id} as failed: ${summarizeError(failError)}`); - } - } - } - } - async loadRoomMessages(api, task, postId) { - try { - const messages = await api.listRoomMessages(postId, ROOM_CONTEXT_PAGE_SIZE); - return selectRoomMessagesForContext(task, messages); - } - catch (error) { - this.logger.warn(`[chek-cli] failed to load room context for ${postId}: ${summarizeError(error)}`); - return selectRoomMessagesForContext(task, []); - } - } - async generateReply(task, roomMessages, sessionKey, sessionLabel) { - const strategy = buildReplyStrategy(task, roomMessages); - if (strategy.directReply) { - return { - reply: strategy.directReply, - mode: "strategy", - sessionKey, - intent: strategy.intent, - }; - } - const prompt = buildAutoReplyPrompt(task, roomMessages); - try { - const result = await sendChatPrompt(sessionKey, prompt, { - sessionLabel, - }); - const reply = extractChatReplyText(result); - if (!reply) { - throw new Error("OpenClaw returned an empty reply."); - } - return { - reply, - mode: "model", - sessionKey, - intent: strategy.intent, - }; - } - catch (error) { - const fallbackReply = buildFallbackReply(task, roomMessages); - this.injectSessionNoteForKeyBestEffort(sessionKey, `本地模型生成失败,已使用兜底回复:${summarizeError(error)}`, "CHEK 兜底"); - return { - reply: fallbackReply, - mode: "fallback", - sessionKey, - intent: strategy.intent, - }; - } - } async persistSnapshot() { if (!this.stateDir) { return; diff --git a/dist/service.test.js b/dist/service.test.js index 0bf5cd6..dafb713 100644 --- a/dist/service.test.js +++ b/dist/service.test.js @@ -1,10 +1,4 @@ import { afterEach, describe, expect, it, vi } from "vitest"; -const gatewayCliMocks = vi.hoisted(() => ({ - ensureSession: vi.fn(), - injectSessionNote: vi.fn(), - sendChatPrompt: vi.fn(), -})); -vi.mock("./gateway-cli.js", () => gatewayCliMocks); import { parseConfig } from "./config.js"; import { ChekCliController } from "./service.js"; function createRuntimeConfig(initialConfig) { @@ -38,26 +32,13 @@ describe("ChekCliController", () => { vi.unstubAllGlobals(); vi.clearAllMocks(); }); - it("persists browser authorization results into plugin config", async () => { + it("does not contact retired browser authorization endpoints", async () => { const runtimeConfig = createRuntimeConfig({ backendAppBaseUrl: "https://api-dev.chekkk.com/api/backend-app", authSessionId: "auth-session-1", deviceCode: "ck-12345678", }); - const fetchMock = vi.fn().mockResolvedValue(new Response(JSON.stringify({ - id: "auth-session-1", - status: "authorized", - authorizationStatus: "authorized", - authorizedUserOneId: "u-browser", - authorizedDisplayName: "浏览器用户", - authorizedAt: "2026-04-14T20:18:00.000Z", - pluginAccessToken: "ckmu_browser_token", - }), { - status: 200, - headers: { - "Content-Type": "application/json", - }, - })); + const fetchMock = vi.fn(); vi.stubGlobal("fetch", fetchMock); const controller = new ChekCliController({ config: parseConfig({ @@ -69,123 +50,25 @@ describe("ChekCliController", () => { runtimeConfig, }); const session = await controller.syncAuthorizationSession(); - expect(session?.pluginAccessToken).toBe("ckmu_browser_token"); - expect(controller.getConfig().accessToken).toBe("ckmu_browser_token"); - expect(controller.getConfig().authorizationStatus).toBe("authorized"); - expect(controller.getConfig().authorizedDisplayName).toBe("浏览器用户"); - expect(controller.getSnapshot().authorizedUserOneId).toBe("u-browser"); - expect(fetchMock).toHaveBeenCalledTimes(1); - }); - it("does not block task completion when note injection fails", async () => { - gatewayCliMocks.ensureSession.mockResolvedValue({}); - gatewayCliMocks.injectSessionNote.mockRejectedValue(new Error("gateway closed")); - gatewayCliMocks.sendChatPrompt.mockRejectedValue(new Error("model unavailable")); - const logger = createLogger(); - const controller = new ChekCliController({ - config: parseConfig({ - backendAppBaseUrl: "https://api-dev.chekkk.com/api/backend-app", - accessToken: "ckmu_test_token", - sessionKey: "agent:main:chek:mentions", - }), - logger, - runtimeConfig: createRuntimeConfig({ - backendAppBaseUrl: "https://api-dev.chekkk.com/api/backend-app", - accessToken: "ckmu_test_token", - sessionKey: "agent:main:chek:mentions", - }), - }); - const task = { - id: "task-1", - postId: "post-1", - payload: { - postId: "post-1", - postTitle: "Smoke Room", - messageContent: "@CHEK 用户 你先简单介绍一下你会做什么", - mentionedByDisplayName: "Smoke Sender", - }, - }; - const api = { - claimMentionTask: vi.fn().mockResolvedValue(task), - listRoomMessages: vi.fn().mockResolvedValue([]), - sendRoomMessage: vi.fn().mockResolvedValue({}), - completeMentionTask: vi.fn().mockResolvedValue({ status: "completed" }), - failMentionTask: vi.fn().mockResolvedValue({ status: "failed" }), - }; - await controller["processTask"](api, task); - await Promise.resolve(); - await Promise.resolve(); - expect(api.completeMentionTask).toHaveBeenCalledWith("task-1", expect.objectContaining({ - mode: "fallback", - sessionKey: "agent:main:chek:mentions:room:post-1", - intent: "generic", - })); - expect(api.failMentionTask).not.toHaveBeenCalled(); - expect(api.sendRoomMessage).toHaveBeenCalledWith("post-1", "看到了。你可以直接补一句最想让我判断的点,我就按这条继续给你建议。"); - expect(controller.getSnapshot().lastTaskId).toBe("task-1"); - expect(gatewayCliMocks.ensureSession).toHaveBeenCalledWith("agent:main:chek:mentions:room:post-1", "CHEK 房间 · Smoke Room · post-1"); - expect(gatewayCliMocks.sendChatPrompt).toHaveBeenCalledWith("agent:main:chek:mentions:room:post-1", expect.any(String), { - sessionLabel: "CHEK 房间 · Smoke Room · post-1", - }); - expect(logger.warn).toHaveBeenCalled(); - }); - it("uses direct strategy replies for common publishing asks", async () => { - gatewayCliMocks.ensureSession.mockResolvedValue({}); - gatewayCliMocks.injectSessionNote.mockResolvedValue(undefined); - const controller = new ChekCliController({ - config: parseConfig({ - backendAppBaseUrl: "https://api-dev.chekkk.com/api/backend-app", - accessToken: "ckmu_test_token", - sessionKey: "agent:main:chek:mentions", - }), - logger: createLogger(), - runtimeConfig: createRuntimeConfig({ - backendAppBaseUrl: "https://api-dev.chekkk.com/api/backend-app", - accessToken: "ckmu_test_token", - sessionKey: "agent:main:chek:mentions", - }), - }); - const task = { - id: "task-2", - postId: "post-2", - payload: { - postId: "post-2", - postTitle: "动作模型交易", - messageContent: "@CHEK 用户 如果我想求购类似模型,房间里该怎么发更好?", - mentionedByDisplayName: "Buyer", - }, - }; - const api = { - claimMentionTask: vi.fn().mockResolvedValue(task), - listRoomMessages: vi.fn().mockResolvedValue([]), - sendRoomMessage: vi.fn().mockResolvedValue({}), - completeMentionTask: vi.fn().mockResolvedValue({ status: "completed" }), - failMentionTask: vi.fn().mockResolvedValue({ status: "failed" }), - }; - await controller["processTask"](api, task); - expect(gatewayCliMocks.sendChatPrompt).not.toHaveBeenCalled(); - expect(api.sendRoomMessage).toHaveBeenCalledWith("post-2", expect.stringContaining("可以直接发:求购类似动作模型")); - expect(api.completeMentionTask).toHaveBeenCalledWith("task-2", expect.objectContaining({ - mode: "strategy", - intent: "posting_copy", - sessionKey: "agent:main:chek:mentions:room:post-2", - })); + expect(session).toBeNull(); + expect(controller.getConfig().accessToken).toBe(""); + expect(controller.getSnapshot().lastError).toContain("已退役"); + expect(fetchMock).not.toHaveBeenCalled(); }); }); it.each([ { accessToken: "ckmu_test_token" }, { authSessionId: "old-session", deviceCode: "old-code" }, -])("stops legacy polling permanently on HTTP 410 (%j)", async (credentials) => { +])("does not start legacy polling (%j)", async (credentials) => { const config = { backendAppBaseUrl: "https://api-dev.chekkk.com/api/backend-app", ...credentials }; const controller = new ChekCliController({ config: parseConfig(config), logger: createLogger(), runtimeConfig: createRuntimeConfig(config) }); - const fetchMock = vi.fn().mockResolvedValue(new Response(JSON.stringify({ code: "AGENT_FEATURE_RETIRED", detail: "Use Python CHEK CLI" }), { status: 410 })); + const fetchMock = vi.fn(); vi.stubGlobal("fetch", fetchMock); try { await controller.start(); - await controller["pollOnce"](); - await controller["pollLoop"](); expect(controller.getSnapshot().running).toBe(false); - expect(controller.getSnapshot().lastError).toContain("Use Python CHEK CLI"); - expect(fetchMock).toHaveBeenCalledTimes(1); + expect(controller.getSnapshot().lastError).toContain("已退役"); + expect(fetchMock).not.toHaveBeenCalled(); } finally { await controller.stop(); diff --git a/docs/bootstrap-message.md b/docs/bootstrap-message.md index e22a3d9..6a5bf17 100644 --- a/docs/bootstrap-message.md +++ b/docs/bootstrap-message.md @@ -1,57 +1,26 @@ # CHEK CLI Bootstrap Message -当前可直接发给 OpenClaw 的一段式引导文案如下: +这段文案用于全局黑猫入口和 CHEK 社区引导。它把用户带到自己的 Agent 工具里使用 Python CHEK CLI;聊天模式工具只整理草稿,不声称已经安装或执行。 ```text -请在这台机器上安装并配置 CHEK CLI,并尽量自动完成初始化。 - -目标: -1. 安装 OpenClaw 插件 CHEK CLI -2. 安装后重启 Gateway -3. 自动拉起浏览器完成 CHEK 授权与设备绑定 -4. 做一次连通性测试 -5. 最后告诉我当前状态是否 ready - -安装命令: -openclaw plugins install https://github.com/chekdata/chek-cli/archive/refs/heads/main.tar.gz?download=1 - -如果插件安装成功但不能自动继续,请立即执行 `/chek-setup`。插件会自动打开浏览器到 CHEK 授权页;浏览器显示“已授权,可返回 OpenClaw”后,回到本地继续等待健康检查完成。 -如果浏览器授权失败,再退回 `/chek-setup token=` 或 `openclaw chek setup --token `。 - -参考链接: -- 插件说明:https://github.com/chekdata/chek-cli#readme -- setup skill:https://github.com/chekdata/chek-cli/blob/main/skills/chek-setup/SKILL.md -- 浏览器授权说明:https://github.com/chekdata/chek-cli/blob/main/docs/device-code-auth.md -- 排障说明:https://github.com/chekdata/chek-cli/blob/main/docs/troubleshooting.md -``` - -## 当前主路径 - -这条 bootstrap message 对应真实产品能力: - -1. 安装插件 -2. 执行 `/chek-setup` -3. 自动打开浏览器授权页 -4. 浏览器显示“已授权,可返回 OpenClaw” -5. 插件轮询授权状态并落盘 -6. 后台 mention-task bridge 继续工作 - -token setup 保留为明确的 fallback。 +请成为我的 CHEK 共建助手。先在 GitHub 搜索并阅读 https://github.com/chekdata/chek-cli ,再按 skills/chek-setup/SKILL.md 安装 Python CHEK CLI。 -## 社区共建短提示 +CHEK 是一个为 Agent 时代生长出来的 AI-native 开放社区。请用我的真实体验、产品版本和证据,整理评测、沉淀评分、补全产品资料、发现值得提报的新产品,并在房间里协作。 -适合发给个人 Agent 的短提示: +可执行本地命令的 Agent(Cursor、Codex、Claude Code 等)可以运行: +git clone https://github.com/chekdata/chek-cli.git +cd chek-cli/packages/chek-cli && python -m pip install -e ".[dev]" +chek config set-env dev +chek auth status -```text -请成为我的 CHEK 共建助手。先在 GitHub 搜索 `chekdata/chek-cli`,阅读 `skills/chek-setup` 并完成安装。 - -CHEK 是一个为 Agent 时代生长出来的 AI-native 开放社区。它想把每一次试驾、上手、踩坑、惊喜和吐槽,变成属于我的 AI 产品档案,也变成能帮助别人选择、复评和避坑的公共知识。 - -好产品不该只靠营销被看见,真实体验也应该有自己的分量。 +ChatGPT、豆包等聊天模式工具请先生成草稿,再交给可执行 CLI 的 Agent。普通 CHEK 登录、房间协作和 EGO 上传提示继续保留;不创建外部 Agent 授权,不安装专用插件,不使用旧的站内托管执行或自动回复。 +``` -请帮我记录具体硬件型号和软件版本,整理评测,沉淀证据和评分,补全智能汽车 / 机器人资料库,发现值得提报的新产品,也把我的脑洞变成社区能力。 +## 当前主路径 -规则:先查重,再提交;先草稿,等我确认;所有评测都要对应真实硬件型号和软件版本;不要泄露 token、验证码、cookie 或 Authorization 信息。 +1. 打开 GitHub 仓库并阅读完整说明与 setup skill。 +2. 在能运行本地命令的 Agent 中安装 Python CLI。 +3. 选择 `dev` 环境并检查普通 CHEK 登录。 +4. 先查重和生成草稿,再按现有业务权限提交或在房间协作。 -现在开始,先检查安装和登录状态,再问我想从哪一项共建开始。 -``` +旧的站内 Agent 执行、专用授权、共享 tools/skills 转发和 mention 自动回复已在 DEV 退役。房间消息、人工 @ 通知、评审、证据、评分、分享和 EGO 业务仍然可用。 diff --git a/docs/device-code-auth.md b/docs/device-code-auth.md index f99139b..0b8f315 100644 --- a/docs/device-code-auth.md +++ b/docs/device-code-auth.md @@ -1,56 +1,5 @@ -> 历史插件文档:DEV 专用授权和自动回复已进入退役流程。新接入请使用 [Python CLI 统一指南](../skills/chek-setup/SKILL.md)。 +# 旧授权流程已退役 -# CHEK CLI Browser Auth +DEV 已退役专用 Agent 授权、设备绑定和授权会话轮询。本文件只作为旧链接的迁移提示,不再提供浏览器授权、token 兜底或自动回复步骤。 -## Current Reality - -This flow is now implemented. - -`CHEK CLI` does not depend on token-only setup as the primary path. The default setup path is: - -1. install the plugin -2. run `/chek-setup` or `openclaw chek setup` -3. let the plugin open the CHEK authorization page in the browser -4. authorize with the current CHEK login state -5. let the plugin poll the auth session and persist a plugin-scoped access token - -## What the Browser Page Does - -The authorization page is served from the CHEK app origin and: - -- reads the current browser login token -- posts it back to `backend-app` -- marks the auth session as `authorized` -- issues a plugin-scoped access token for this install and device -- shows `已授权,可返回 OpenClaw` - -## What the Plugin Persists - -After a successful browser authorization, the plugin stores: - -- `installId` -- `deviceId` -- `authSessionId` -- `deviceCode` -- `authorizationStatus` -- `authorizationUrl` -- `authorizedUserOneId` -- `authorizedDisplayName` -- `lastAuthorizedAt` -- `accessToken` - -The stored `accessToken` is the plugin-scoped token returned by `backend-app`, not the raw frontend browser token. - -## Fallback Path - -If browser auth cannot complete, token setup still works: - -```text -/chek-setup token= -``` - -```bash -openclaw chek setup --token -``` - -This fallback exists so setup can continue even when browser auto-open, browser login state, or auth-session polling is unavailable. +新接入请阅读 [`skills/chek-setup/SKILL.md`](../skills/chek-setup/SKILL.md),在自己的 Agent 工具中安装 Python CHEK CLI,并使用普通 CHEK 登录和业务权限。不要创建外部 Agent 授权,也不要重试旧授权接口;收到 `410 AGENT_FEATURE_RETIRED` 后应停止重试。 diff --git a/docs/troubleshooting.md b/docs/troubleshooting.md index d0461b0..f7020f4 100644 --- a/docs/troubleshooting.md +++ b/docs/troubleshooting.md @@ -1,76 +1,27 @@ -> 历史插件文档:DEV 专用授权和自动回复已进入退役流程。新接入请使用 [Python CLI 统一指南](../skills/chek-setup/SKILL.md)。 - # CHEK CLI Troubleshooting -## 插件装不上 - -先确认: - -```bash -openclaw --version -openclaw plugins list -``` - -然后重试: +## 新接入 -```bash -openclaw plugins install https://github.com/chekdata/chek-cli/archive/refs/heads/main.tar.gz?download=1 -``` - -本地联调可以直接改用: +在 Cursor、Codex、Claude Code 等可运行本地命令的 Agent 中执行: ```bash -openclaw plugins install --link /absolute/path/to/chek-cli +git clone https://github.com/chekdata/chek-cli.git +cd chek-cli/packages/chek-cli +python -m pip install -e ".[dev]" +chek config set-env dev +chek auth status ``` -## 装上了,但还没开始收任务 - -先执行: - -```text -/chek-status -``` - -如果 `configured: no`,继续执行: - -```text -/chek-setup token= -``` - -## 配置完了,但还是收不到房间里的 @ - -优先检查: - -- 当前 token 对应的 CHEK 用户是否就是被 `@` 的那个用户 -- 该用户是否已经加入对应评测房间 -- `backend` 配置是否指向正确的 `backend-app` 网关地址 -- `sessionKey` 是否被错误改掉 - -再执行: - -```text -/chek-status -``` - -看这些字段: - -- `lastPollAt` -- `lastSuccessAt` -- `lastTaskAt` -- `lastTaskId` -- `lastError` +普通 ChatGPT、豆包等聊天模式工具不能在当前会话安装或运行 CLI 时,应先输出草稿,并交给可执行 CLI 的 Agent。 -## 本地会话里看到了任务,但房间里没回出去 +## 旧插件仍显示状态 -通常说明链路卡在这几步之一: +根目录 TypeScript 包只保留迁移兼容命令。`chek setup`、`chek-status` 和 `chek-bootstrap` 会指向 Python CLI,不创建授权会话、不轮询旧接口、不自动回复房间消息。旧配置中的授权字段会被忽略并清空,普通 CHEK 登录不受影响。 -1. OpenClaw 本地生成回复失败 -2. CHEK 房间发消息失败 -3. task 回写 `complete` 失败 +## 旧接口返回 410 -当前插件策略是: +这是预期退役信号。停止重试,改用 Python CLI 的业务命令,例如 `chek ai-product`、`chek vehicle`、`chek humanoid`、`chek discovery`、`chek share`,以及房间协作对应的业务 API。不要使用 `/agent/v1/tools:execute`、`skills:run` 或 `/micontrol/v2/runs`。 -- 模型生成失败会自动退回到兜底回复 -- 真正失败时会把原因写回本地会话,并把 task 标记成 `failed` +## 房间协作 -如果本地会话里也没有失败提示,优先看 `/chek-status` 里的 `lastError`。 +房间消息、人工 @ 通知、评审、证据、评分和分享继续保留。mention 自动轮询和自动回复已移除;需要回复时由用户明确要求,并在自己的 Agent 中整理草稿后发布。 diff --git a/openclaw.plugin.json b/openclaw.plugin.json index 2b2b807..2235e23 100644 --- a/openclaw.plugin.json +++ b/openclaw.plugin.json @@ -1,7 +1,7 @@ { "id": "chek-cli", "name": "CHEK CLI", - "description": "Agent-native CHEK CLI and OpenClaw helpers for review rooms, AI product publication, and mention handling.", + "description": "Migration compatibility shim for using the Python CHEK CLI from your own Agent. Hosted execution, dedicated authorization, and automatic mention replies are retired.", "version": "0.5.0", "skills": [ "./skills" @@ -66,44 +66,8 @@ "label": "CHEK Backend URL", "placeholder": "https://api-dev.chekkk.com/api/backend-app" }, - "accessToken": { - "label": "CHEK Access Token", - "sensitive": true, - "help": "If left empty, the plugin falls back to CHEK_ACCESS_TOKEN from the environment." - }, - "pollIntervalMs": { - "label": "Poll Interval (ms)" - }, "sessionKey": { - "label": "OpenClaw Session Key", - "placeholder": "agent:main:chek:mentions" - }, - "installId": { - "label": "Install ID" - }, - "deviceId": { - "label": "Device ID" - }, - "authSessionId": { - "label": "Auth Session ID" - }, - "deviceCode": { - "label": "Device Code" - }, - "authorizationStatus": { - "label": "Authorization Status" - }, - "authorizationUrl": { - "label": "Authorization URL" - }, - "authorizedUserOneId": { - "label": "Authorized User One ID" - }, - "authorizedDisplayName": { - "label": "Authorized User" - }, - "lastAuthorizedAt": { - "label": "Last Authorized At" + "label": "Legacy Session Key (unused)" } } } diff --git a/package.json b/package.json index e522701..bba4ff5 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@chek/chek-cli", "version": "0.5.0", - "description": "CHEK CLI for agent-native product publication, review rooms, backend API access, and OpenClaw helpers.", + "description": "CHEK Python CLI and migration guide for using your own Agent environment.", "type": "module", "license": "MIT", "repository": { diff --git a/packages/chek-cli/HARNESS.md b/packages/chek-cli/HARNESS.md index 3718f51..4391f85 100644 --- a/packages/chek-cli/HARNESS.md +++ b/packages/chek-cli/HARNESS.md @@ -56,10 +56,10 @@ On failure, `ok` is false and the process exits non-zero. | `vehicle` | `+search`, `detail`, `raw-params` | Vehicle metadata workflows | | `discovery` | `+feed` | Public discovery feed workflow | | `share` | `+create`, `+resolve`, `+revoke` | Share token workflows | -| `micontrol` | `runs`, `detail`, `create` | MiControl run workflows | +| `micontrol` | retired | Returns `AGENT_FEATURE_RETIRED` without a network request | | `doctor/repo/routes/serve/build/page/flow` | assorted | Optional frontend repo and browser helpers | -Current bundled registry: 6 backend OpenAPI services and 493 operations: +Current bundled registry: 6 backend OpenAPI services and 621 operations: `auth`, `backend-app`, `backend-saas`, `crowd`, `humanoid`, and `vehicle`. ## Agent Rules diff --git a/packages/chek-cli/README.md b/packages/chek-cli/README.md index 3f06f84..6d39145 100644 --- a/packages/chek-cli/README.md +++ b/packages/chek-cli/README.md @@ -204,14 +204,14 @@ chek api GET /api/backend-app/login/checkToken --dry-run | Layer | Commands | Purpose | | --- | --- | --- | | Shortcuts | `ai-product +publish`, `ai-product +review`, `media +upload-cover`, `vehicle +buying-plan`, `vehicle +compare`, `vehicle +rankings`, `humanoid +compare`, `discovery +feed`, `share +resolve` | Stable high-level workflows for agents | -| OpenAPI tree | `vehicle vehicles batch-search`, `backend-app agent skills-run`, `humanoid robots detail` | Generated service/resource/method commands | +| OpenAPI tree | `vehicle vehicles batch-search`, `backend-app entities suggestions`, `humanoid robots detail` | Generated service/resource/method commands | | API commands | `schema`, `call`, `api` | Discovery, registry-backed calls, and raw backend fallback | | Session | `--as auto/user/service/none`, `config default-as`, `auth`, `auth profile`, `auth credential` | Lark-style identity switching, API origin, token, profile, and credential management | | Discovery and checks | `examples`, `smoke api`, `registry status` | Generated examples, read-only backend smoke checks, and registry coverage | | Dev helpers | `doctor`, `repo`, `routes`, `serve`, `build`, `page`, `flow` | Optional frontend repo/build/browser diagnostics | The bundled registry is generated from backend OpenAPI specs and currently -covers 6 services and 493 operations: `auth`, `backend-app`, `backend-saas`, +covers 6 services and 621 operations: `auth`, `backend-app`, `backend-saas`, `crowd`, `humanoid`, and `vehicle`. ```bash diff --git a/packages/chek-cli/README.zh-CN.md b/packages/chek-cli/README.zh-CN.md index 289ef12..6d7d224 100644 --- a/packages/chek-cli/README.zh-CN.md +++ b/packages/chek-cli/README.zh-CN.md @@ -197,13 +197,13 @@ chek api GET /api/backend-app/login/checkToken --dry-run | 层级 | 命令 | 用途 | | --- | --- | --- | | Shortcut | `ai-product +publish`, `ai-product +review`, `media +upload-cover`, `vehicle +buying-plan`, `vehicle +compare`, `vehicle +rankings`, `humanoid +compare`, `discovery +feed`, `share +resolve` | 给 Agent 的稳定高频工作流 | -| OpenAPI 命令树 | `vehicle vehicles batch-search`, `backend-app agent skills-run`, `humanoid robots detail` | 自动生成的服务/资源/方法命令 | +| OpenAPI 命令树 | `vehicle vehicles batch-search`, `backend-app entities suggestions`, `humanoid robots detail` | 自动生成的服务/资源/方法命令 | | API 命令 | `schema`, `call`, `api` | 参数发现、registry 调用、原始路径兜底 | | 会话 | `--as auto/user/service/none`, `config default-as`, `auth`, `auth profile`, `auth credential` | 类 Lark 的身份切换、环境、token、profile 与凭证管理 | | 发现与检查 | `examples`, `smoke api`, `registry status` | 自动例子、只读后端 smoke、registry 覆盖检查 | | 调试辅助 | `doctor`, `repo`, `routes`, `serve`, `build`, `page`, `flow` | 前端仓库、构建、页面证据诊断 | -当前内置 registry 来自后端 OpenAPI,覆盖 6 个服务、493 个 operation:`auth`、`backend-app`、`backend-saas`、`crowd`、`humanoid`、`vehicle`。 +当前内置 registry 来自后端 OpenAPI,覆盖 6 个服务、621 个 operation:`auth`、`backend-app`、`backend-saas`、`crowd`、`humanoid`、`vehicle`。 ```bash chek registry status diff --git a/packages/chek-cli/cli_anything/frontend_app/frontend_cli.py b/packages/chek-cli/cli_anything/frontend_app/frontend_cli.py index dcd5507..66f9cc4 100644 --- a/packages/chek-cli/cli_anything/frontend_app/frontend_cli.py +++ b/packages/chek-cli/cli_anything/frontend_app/frontend_cli.py @@ -2673,7 +2673,7 @@ def share_revoke(ctx: click.Context, share_id: str, dry_run: bool) -> None: @main.group() def micontrol() -> None: - """Legacy MiControl commands (retired in DEV; use business CLI instead).""" + """Legacy MiControl namespace; all hosted execution commands are retired.""" @micontrol.command("runs") @@ -2682,13 +2682,9 @@ def micontrol() -> None: @click.option("--dry-run", is_flag=True) @click.pass_context def micontrol_runs(ctx: click.Context, status: str | None, limit: int, dry_run: bool) -> None: - """List MiControl runs.""" - try: - emit_api(ctx, "micontrol runs", request_api("GET", "/api/backend-app/micontrol/v2/runs", params={"status": status, "limit": limit}, identity=request_identity(ctx), dry_run=dry_run)) - except Exception as exc: - if isinstance(exc, SystemExit): - raise - fail("micontrol runs", exc, ctx.obj["json"]) + """Explain the retired hosted run namespace without making a request.""" + del status, limit, dry_run + fail("micontrol runs", RuntimeError("AGENT_FEATURE_RETIRED: use your own Agent with the Python CHEK CLI."), ctx.obj["json"]) @micontrol.command("detail") @@ -2696,13 +2692,9 @@ def micontrol_runs(ctx: click.Context, status: str | None, limit: int, dry_run: @click.option("--dry-run", is_flag=True) @click.pass_context def micontrol_detail(ctx: click.Context, run_id: str, dry_run: bool) -> None: - """Get MiControl run detail.""" - try: - emit_api(ctx, "micontrol detail", request_api("GET", f"/api/backend-app/micontrol/v2/runs/{quote_path_value(run_id)}", identity=request_identity(ctx), dry_run=dry_run)) - except Exception as exc: - if isinstance(exc, SystemExit): - raise - fail("micontrol detail", exc, ctx.obj["json"]) + """Explain the retired hosted run namespace without making a request.""" + del run_id, dry_run + fail("micontrol detail", RuntimeError("AGENT_FEATURE_RETIRED: use your own Agent with the Python CHEK CLI."), ctx.obj["json"]) @micontrol.command("create") @@ -2712,18 +2704,9 @@ def micontrol_detail(ctx: click.Context, run_id: str, dry_run: bool) -> None: @click.option("--dry-run", is_flag=True) @click.pass_context def micontrol_create(ctx: click.Context, task: str, context: str | None, input_payload: str | None, dry_run: bool) -> None: - """Create a MiControl run.""" - try: - body = { - "task": task, - "context": parse_json_arg(context, stdin=sys.stdin, flag_name="--context") or {}, - "inputPayload": parse_json_arg(input_payload, stdin=sys.stdin, flag_name="--input-payload") or {}, - } - emit_api(ctx, "micontrol create", request_api("POST", "/api/backend-app/micontrol/v2/runs", data=body, identity=request_identity(ctx), dry_run=dry_run)) - except Exception as exc: - if isinstance(exc, SystemExit): - raise - fail("micontrol create", exc, ctx.obj["json"]) + """Explain the retired hosted run namespace without making a request.""" + del task, context, input_payload, dry_run + fail("micontrol create", RuntimeError("AGENT_FEATURE_RETIRED: use your own Agent with the Python CHEK CLI."), ctx.obj["json"]) @main.command() diff --git a/packages/chek-cli/cli_anything/frontend_app/generated/registry.json b/packages/chek-cli/cli_anything/frontend_app/generated/registry.json index 6f66124..0394eaf 100644 --- a/packages/chek-cli/cli_anything/frontend_app/generated/registry.json +++ b/packages/chek-cli/cli_anything/frontend_app/generated/registry.json @@ -1,18 +1,18 @@ { "_meta": { "failedSources": [], - "generatedAt": "2026-04-24T18:19:14.024765+00:00", + "generatedAt": "2026-10-24T17:10:55.794461+00:00", "generator": "scripts/generate_openapi_registry.py", - "operationCount": 493, + "operationCount": 621, "serviceCount": 6, "sources": { "auth": { "deduplicatedOperations": 0, "location": "https://api-dev.chekkk.com/api/auth/openapi.json", "ok": true, - "openapi": "3.0.1", - "rawOperations": 86, - "registeredOperations": 86, + "openapi": "3.1.0", + "rawOperations": 94, + "registeredOperations": 94, "title": "backend-auth-saas API" }, "backend-app": { @@ -20,17 +20,17 @@ "location": "https://api-dev.chekkk.com/api/backend-app/openapi.json", "ok": true, "openapi": "3.0.3", - "rawOperations": 135, - "registeredOperations": 135, + "rawOperations": 104, + "registeredOperations": 104, "title": "API接口文档" }, "backend-saas": { "deduplicatedOperations": 0, - "location": "file:backend-saas-openapi.json", + "location": "https://api-dev.chekkk.com/api/backend-saas/openapi.json", "ok": true, "openapi": "3.1.0", - "rawOperations": 85, - "registeredOperations": 85, + "rawOperations": 91, + "registeredOperations": 91, "title": "OpenAPI definition" }, "crowd": { @@ -38,8 +38,8 @@ "location": "https://api-dev.chekkk.com/api/crowd-control/openapi.json", "ok": true, "openapi": "3.1.0", - "rawOperations": 127, - "registeredOperations": 127, + "rawOperations": 267, + "registeredOperations": 267, "title": "backend-crowd-data-saas" }, "humanoid": { @@ -47,8 +47,8 @@ "location": "https://api-dev.chekkk.com/api/humanoid-chain/openapi.json", "ok": true, "openapi": "3.1.0", - "rawOperations": 22, - "registeredOperations": 21, + "rawOperations": 26, + "registeredOperations": 25, "title": "backend-humanoid-chain" }, "vehicle": { @@ -56,8 +56,8 @@ "location": "https://api-dev.chekkk.com/api/vms/openapi.json", "ok": true, "openapi": "3.1.0", - "rawOperations": 46, - "registeredOperations": 39, + "rawOperations": 47, + "registeredOperations": 40, "title": "Vehicle Model Service" } } @@ -207,16 +207,7 @@ "type": "string" }, "metadata": { - "description": "边缘机补充元数据,例如 runtimeProfile / os / hardwareTier", - "properties": { - "empty": { - "type": "boolean" - }, - "innerMap": { - "type": "object" - } - }, - "type": "object" + "$ref": "#/components/schemas/JSONObject" } }, "required": [ @@ -277,16 +268,7 @@ "type": "string" }, "metadata": { - "description": "边缘机补充信息", - "properties": { - "empty": { - "type": "boolean" - }, - "innerMap": { - "type": "object" - } - }, - "type": "object" + "$ref": "#/components/schemas/JSONObject" }, "uploadPrefix": { "description": "当前账号在该设备下的上传前缀", @@ -319,7 +301,6 @@ "bucketPrefixes": { "description": "允许写入的 bucket 前缀列表", "items": { - "description": "允许写入的 bucket 前缀列表", "type": "string" }, "type": "array" @@ -404,6 +385,197 @@ }, "type": "object" }, + "DesktopQrChallengeReq": { + "description": "桌面端扫码登录创建请求", + "properties": { + "client": { + "description": "桌面客户端标识", + "type": "string" + }, + "client_id": { + "description": "OAuth client_id", + "type": "string" + } + }, + "required": [ + "client_id" + ], + "type": "object" + }, + "DesktopQrChallengeRespDTO": { + "description": "桌面端扫码登录创建返回", + "properties": { + "challenge_id": { + "description": "扫码登录 challenge ID", + "type": "string" + }, + "expires_in_seconds": { + "description": "challenge 剩余有效期秒数", + "format": "int64", + "type": "integer" + }, + "qr_payload": { + "description": "手机 App 扫码打开的 deeplink,不包含 token 或密钥", + "type": "string" + } + }, + "type": "object" + }, + "DesktopQrConfirmReq": { + "description": "手机端确认桌面扫码登录请求", + "properties": { + "challenge_id": { + "description": "扫码登录 challenge ID", + "type": "string" + }, + "client_id": { + "description": "OAuth client_id;为空时使用 challenge 中的 client_id", + "type": "string" + } + }, + "required": [ + "challenge_id" + ], + "type": "object" + }, + "DesktopQrConfirmRespDTO": { + "description": "手机端扫码确认返回", + "properties": { + "expires_in_seconds": { + "description": "challenge 剩余有效期秒数", + "format": "int64", + "type": "integer" + }, + "status": { + "description": "状态:scanned 或 confirmed", + "type": "string" + } + }, + "type": "object" + }, + "DesktopQrPollReq": { + "description": "桌面端扫码登录轮询请求", + "properties": { + "challenge_id": { + "description": "扫码登录 challenge ID", + "type": "string" + }, + "client": { + "description": "桌面客户端标识", + "type": "string" + }, + "client_id": { + "description": "OAuth client_id", + "type": "string" + } + }, + "required": [ + "challenge_id", + "client_id" + ], + "type": "object" + }, + "DesktopQrPollRespDTO": { + "description": "桌面端扫码登录轮询返回", + "properties": { + "expires_in_seconds": { + "description": "challenge 剩余有效期秒数", + "format": "int64", + "type": "integer" + }, + "login_code": { + "description": "confirmed 后返回的一次性登录码", + "type": "string" + }, + "status": { + "description": "状态:pending/scanned/confirmed/exchanged/expired/rejected", + "type": "string" + } + }, + "type": "object" + }, + "DesktopQrScanReq": { + "description": "手机端扫码已读请求", + "properties": { + "challenge_id": { + "description": "扫码登录 challenge ID", + "type": "string" + }, + "client_id": { + "description": "OAuth client_id;为空时使用 challenge 中的 client_id", + "type": "string" + } + }, + "required": [ + "challenge_id" + ], + "type": "object" + }, + "DesktopTokenReq": { + "description": "桌面端扫码登录 token 请求", + "properties": { + "challenge_id": { + "description": "authorization_code 场景必填", + "type": "string" + }, + "client_id": { + "description": "OAuth client_id", + "type": "string" + }, + "grant_type": { + "description": "授权类型:authorization_code 或 refresh_token", + "type": "string" + }, + "login_code": { + "description": "authorization_code 场景必填,由 poll 返回的一次性登录码", + "type": "string" + }, + "refresh_token": { + "description": "refresh_token 场景必填", + "type": "string" + } + }, + "required": [ + "client_id", + "grant_type" + ], + "type": "object" + }, + "DesktopTokenRespDTO": { + "description": "桌面端扫码登录 token 返回", + "properties": { + "access_token": { + "description": "访问令牌", + "type": "string" + }, + "expires_in": { + "description": "access_token 剩余秒数", + "format": "int32", + "type": "integer" + }, + "refresh_expires_in": { + "description": "refresh_token 剩余秒数;无法确认时为空", + "format": "int64", + "type": "integer" + }, + "refresh_token": { + "description": "刷新令牌", + "type": "string" + }, + "scope": { + "description": "授权范围", + "items": { + "type": "string" + }, + "type": "array" + }, + "token_type": { + "description": "token 类型", + "type": "string" + } + }, + "type": "object" + }, "FunctionAuthority": { "properties": { "aliasCode": { @@ -447,6 +619,17 @@ ], "type": "object" }, + "JSONObject": { + "properties": { + "empty": { + "type": "boolean" + }, + "innerMap": { + "type": "object" + } + }, + "type": "object" + }, "MenuExcelReq": { "properties": { "menuIds": { @@ -911,9 +1094,7 @@ "code": { "type": "string" }, - "data": { - "type": "object" - }, + "data": {}, "message": { "type": "string" }, @@ -1143,9 +1324,7 @@ "code": { "type": "string" }, - "data": { - "type": "object" - }, + "data": {}, "message": { "type": "string" }, @@ -1612,7 +1791,6 @@ "scopes": { "description": "权限范围(默认 [\"read\"])", "items": { - "description": "权限范围(默认 [\"read\"])", "type": "string" }, "type": "array" @@ -1716,6 +1894,58 @@ ], "type": "object" }, + "SunChaserCertificationReq": { + "description": "追日靴认证申请请求", + "properties": { + "certification_type": { + "description": "认证类型:professional_qualification / phd_or_above / competition_or_innovation / open_source_project", + "type": "string" + }, + "proof_image_url": { + "description": "证明材料图片 URL", + "type": "string" + }, + "proof_note": { + "description": "一句话说明或补充材料", + "type": "string" + }, + "proof_url": { + "description": "证明材料链接", + "type": "string" + } + }, + "required": [ + "certification_type" + ], + "type": "object" + }, + "SunChaserCertificationReviewReq": { + "description": "追日靴认证审核请求", + "properties": { + "application_id": { + "description": "目标应用 ID;为空时取当前登录态应用", + "format": "int64", + "type": "integer" + }, + "review_note": { + "description": "审核备注", + "type": "string" + }, + "status": { + "description": "审核结果:approved / rejected / pending", + "type": "string" + }, + "user_id": { + "description": "目标用户 ID", + "format": "int64", + "type": "integer" + } + }, + "required": [ + "status" + ], + "type": "object" + }, "TokenValidInfoDTO": { "properties": { "applicationId": { @@ -1795,7 +2025,6 @@ "buckets": { "description": "bucket/path 列表(预留字段,当前默认空集)", "items": { - "description": "bucket/path 列表(预留字段,当前默认空集)", "type": "string" }, "type": "array" @@ -1803,7 +2032,6 @@ "rights": { "description": "权限集合(预留字段,当前默认空集)", "items": { - "description": "权限集合(预留字段,当前默认空集)", "type": "string" }, "type": "array" @@ -1864,12 +2092,24 @@ }, "TreeMenuDTO": { "properties": { + "children": { + "items": { + "$ref": "#/components/schemas/TreeMenuDTO" + }, + "type": "array" + }, "code": { "type": "string" }, "component": { "type": "string" }, + "functionChildren": { + "items": { + "$ref": "#/components/schemas/TreeMenuDTO" + }, + "type": "array" + }, "icon": { "type": "string" }, @@ -2071,6 +2311,9 @@ "description": "是否为当前应用管理员(application_user.bool_admin)。注意:这不是平台级权限;平台权限请看 permissionCodeList 是否包含 platform_user_admin。", "type": "boolean" }, + "certifications": { + "$ref": "#/components/schemas/JSONObject" + }, "companyId": { "type": "string" }, @@ -2080,6 +2323,9 @@ "deleted": { "type": "boolean" }, + "equipment": { + "$ref": "#/components/schemas/JSONObject" + }, "expireEndTime": { "format": "date-time", "type": "string" @@ -2125,7 +2371,6 @@ "permissionCodeList": { "description": "当前 token 对应的权限点编码集合(permission.code / permission_code)。前端做路由/按钮权限对账请优先使用该字段。注意:权限变更后如未重新登录,可能需要调用 /v1/refreshTokenAuthorities 刷新 token 权限缓存再获取最新列表。", "items": { - "description": "当前 token 对应的权限点编码集合(permission.code / permission_code)。前端做路由/按钮权限对账请优先使用该字段。注意:权限变更后如未重新登录,可能需要调用 /v1/refreshTokenAuthorities 刷新 token 权限缓存再获取最新列表。", "type": "string" }, "type": "array" @@ -2140,7 +2385,6 @@ "roleCodeList": { "description": "当前应用下的角色编码集合(role.role_code)。用于前端展示/对账角色。", "items": { - "description": "当前应用下的角色编码集合(role.role_code)。用于前端展示/对账角色。", "type": "string" }, "type": "array" @@ -2162,6 +2406,9 @@ "format": "int32", "type": "integer" }, + "sunChaserCertification": { + "$ref": "#/components/schemas/JSONObject" + }, "timeless": { "format": "int32", "type": "integer" @@ -2328,15 +2575,7 @@ "type": "string" }, "extendJson": { - "properties": { - "empty": { - "type": "boolean" - }, - "innerMap": { - "type": "object" - } - }, - "type": "object" + "$ref": "#/components/schemas/JSONObject" }, "mobilePhone": { "type": "string" @@ -2518,7 +2757,7 @@ } }, "description": "Chek Auth Service API Docs. 注意线上对外通常通过网关前缀 `/api/auth` 访问;内部直连为 `/`。", - "openapi": "3.0.1", + "openapi": "3.1.0", "resources": { "accounts": { "methods": { @@ -2836,7 +3075,7 @@ ] }, "detail": { - "description": "application-controller - findById_1", + "description": "application-controller - findById", "httpMethod": "GET", "operationId": "findById_1", "parameters": [ @@ -2887,7 +3126,7 @@ "service": "auth", "servicePath": "/api/auth" }, - "summary": "application-controller - findById_1", + "summary": "application-controller - findById", "tags": [ "application-controller" ] @@ -3488,6 +3727,280 @@ } } }, + "desktop": { + "methods": { + "qrChallenges": { + "description": "创建桌面端扫码登录 challenge", + "httpMethod": "POST", + "operationId": "createChallenge", + "parameters": [], + "path": "/api/auth/v1/desktop/qr/challenges", + "pathParameters": [], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/DesktopQrChallengeReq" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "*/*" + ], + "description": "OK", + "schema": { + "*/*": { + "$ref": "#/components/schemas/DesktopQrChallengeRespDTO" + } + } + }, + "500": { + "contentTypes": [ + "*/*" + ], + "description": "Internal Server Error", + "schema": { + "*/*": { + "$ref": "#/components/schemas/ResponseDataObject" + } + } + } + }, + "security": [], + "source": { + "rawPath": "/v1/desktop/qr/challenges", + "service": "auth", + "servicePath": "/api/auth" + }, + "summary": "创建桌面端扫码登录 challenge", + "tags": [ + "Desktop QR Auth" + ] + }, + "qrConfirm": { + "description": "手机端确认桌面扫码登录", + "httpMethod": "POST", + "operationId": "confirm", + "parameters": [], + "path": "/api/auth/v1/desktop/qr/confirm", + "pathParameters": [], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/DesktopQrConfirmReq" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "*/*" + ], + "description": "OK", + "schema": { + "*/*": { + "$ref": "#/components/schemas/DesktopQrConfirmRespDTO" + } + } + }, + "500": { + "contentTypes": [ + "*/*" + ], + "description": "Internal Server Error", + "schema": { + "*/*": { + "$ref": "#/components/schemas/ResponseDataObject" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/desktop/qr/confirm", + "service": "auth", + "servicePath": "/api/auth" + }, + "summary": "手机端确认桌面扫码登录", + "tags": [ + "Desktop QR Auth" + ] + }, + "qrPoll": { + "description": "桌面端轮询扫码登录状态", + "httpMethod": "POST", + "operationId": "poll", + "parameters": [], + "path": "/api/auth/v1/desktop/qr/poll", + "pathParameters": [], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/DesktopQrPollReq" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "*/*" + ], + "description": "OK", + "schema": { + "*/*": { + "$ref": "#/components/schemas/DesktopQrPollRespDTO" + } + } + }, + "500": { + "contentTypes": [ + "*/*" + ], + "description": "Internal Server Error", + "schema": { + "*/*": { + "$ref": "#/components/schemas/ResponseDataObject" + } + } + } + }, + "security": [], + "source": { + "rawPath": "/v1/desktop/qr/poll", + "service": "auth", + "servicePath": "/api/auth" + }, + "summary": "桌面端轮询扫码登录状态", + "tags": [ + "Desktop QR Auth" + ] + }, + "qrScan": { + "description": "手机端标记已扫码", + "httpMethod": "POST", + "operationId": "scan", + "parameters": [], + "path": "/api/auth/v1/desktop/qr/scan", + "pathParameters": [], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/DesktopQrScanReq" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "*/*" + ], + "description": "OK", + "schema": { + "*/*": { + "$ref": "#/components/schemas/DesktopQrConfirmRespDTO" + } + } + }, + "500": { + "contentTypes": [ + "*/*" + ], + "description": "Internal Server Error", + "schema": { + "*/*": { + "$ref": "#/components/schemas/ResponseDataObject" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/desktop/qr/scan", + "service": "auth", + "servicePath": "/api/auth" + }, + "summary": "手机端标记已扫码", + "tags": [ + "Desktop QR Auth" + ] + }, + "token": { + "description": "桌面端使用扫码登录码或 refresh_token 换取 token", + "httpMethod": "POST", + "operationId": "token", + "parameters": [], + "path": "/api/auth/v1/desktop/token", + "pathParameters": [], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/DesktopTokenReq" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "*/*" + ], + "description": "OK", + "schema": { + "*/*": { + "$ref": "#/components/schemas/DesktopTokenRespDTO" + } + } + }, + "500": { + "contentTypes": [ + "*/*" + ], + "description": "Internal Server Error", + "schema": { + "*/*": { + "$ref": "#/components/schemas/ResponseDataObject" + } + } + } + }, + "security": [], + "source": { + "rawPath": "/v1/desktop/token", + "service": "auth", + "servicePath": "/api/auth" + }, + "summary": "桌面端使用扫码登录码或 refresh_token 换取 token", + "tags": [ + "Desktop QR Auth" + ] + } + } + }, "feilian": { "methods": { "callback": { @@ -6262,6 +6775,122 @@ }, "user": { "methods": { + "certificationsSunChaser": { + "description": "提交追日靴认证申请", + "httpMethod": "POST", + "operationId": "submitSunChaserCertification", + "parameters": [], + "path": "/api/auth/v1/user/certifications/sunChaser", + "pathParameters": [], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/SunChaserCertificationReq" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "*/*" + ], + "description": "OK", + "schema": { + "*/*": { + "$ref": "#/components/schemas/ResponseDataObject" + } + } + }, + "500": { + "contentTypes": [ + "*/*" + ], + "description": "Internal Server Error", + "schema": { + "*/*": { + "$ref": "#/components/schemas/ResponseDataObject" + } + } + } + }, + "security": [ + { + "bearerAuth": [] + } + ], + "source": { + "rawPath": "/v1/user/certifications/sunChaser", + "service": "auth", + "servicePath": "/api/auth" + }, + "summary": "提交追日靴认证申请", + "tags": [ + "用户管理" + ] + }, + "certificationsSunChaserReview": { + "description": "审核追日靴认证申请", + "httpMethod": "POST", + "operationId": "reviewSunChaserCertification", + "parameters": [], + "path": "/api/auth/v1/user/certifications/sunChaser/review", + "pathParameters": [], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/SunChaserCertificationReviewReq" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "*/*" + ], + "description": "OK", + "schema": { + "*/*": { + "$ref": "#/components/schemas/ResponseDataObject" + } + } + }, + "500": { + "contentTypes": [ + "*/*" + ], + "description": "Internal Server Error", + "schema": { + "*/*": { + "$ref": "#/components/schemas/ResponseDataObject" + } + } + } + }, + "security": [ + { + "bearerAuth": [] + } + ], + "source": { + "rawPath": "/v1/user/certifications/sunChaser/review", + "service": "auth", + "servicePath": "/api/auth" + }, + "summary": "审核追日靴认证申请", + "tags": [ + "用户管理" + ] + }, "checkPhone": { "description": "用户管理 - checkPhone", "httpMethod": "POST", @@ -6436,6 +7065,65 @@ "用户管理" ] }, + "deleteCurrent": { + "description": "注销当前登录用户", + "httpMethod": "POST", + "operationId": "deleteCurrentUser", + "parameters": [], + "path": "/api/auth/v1/user/deleteCurrent", + "pathParameters": [], + "queryParameters": [], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "*/*" + ], + "description": "注销成功", + "schema": { + "*/*": { + "$ref": "#/components/schemas/ResponseDataObject" + } + } + }, + "401": { + "contentTypes": [ + "*/*" + ], + "description": "未登录或 token 无效", + "schema": { + "*/*": { + "$ref": "#/components/schemas/ResponseDataObject" + } + } + }, + "500": { + "contentTypes": [ + "*/*" + ], + "description": "Internal Server Error", + "schema": { + "*/*": { + "$ref": "#/components/schemas/ResponseDataObject" + } + } + } + }, + "security": [ + { + "bearerAuth": [] + } + ], + "source": { + "rawPath": "/v1/user/deleteCurrent", + "service": "auth", + "servicePath": "/api/auth" + }, + "summary": "注销当前登录用户", + "tags": [ + "用户管理" + ] + }, "detail": { "description": "用户管理 - getByUserId", "httpMethod": "GET", @@ -9289,261 +9977,6 @@ "description": "项目详情介绍(auth-saas Opaque Bearer token + userOneId;可选网关 header 模式)", "openapi": "3.0.3", "resources": { - "agent": { - "methods": { - "auditLogs": { - "description": "", - "httpMethod": "GET", - "operationId": "agent_v1_audit_logs_retrieve", - "parameters": [], - "path": "/api/backend-app/agent/v1/audit-logs", - "pathParameters": [], - "queryParameters": [], - "requestBody": null, - "responses": { - "200": { - "contentTypes": [], - "description": "No response body", - "schema": {} - } - }, - "security": [ - { - "bearerAuth": [] - } - ], - "source": { - "rawPath": "/agent/v1/audit-logs", - "service": "backend-app", - "servicePath": "/api/backend-app" - }, - "summary": null, - "tags": [ - "agent" - ] - }, - "skills": { - "description": "", - "httpMethod": "GET", - "operationId": "agent_v1_skills_retrieve", - "parameters": [], - "path": "/api/backend-app/agent/v1/skills", - "pathParameters": [], - "queryParameters": [], - "requestBody": null, - "responses": { - "200": { - "contentTypes": [], - "description": "No response body", - "schema": {} - } - }, - "security": [ - { - "bearerAuth": [] - }, - {} - ], - "source": { - "rawPath": "/agent/v1/skills", - "service": "backend-app", - "servicePath": "/api/backend-app" - }, - "summary": null, - "tags": [ - "agent" - ] - }, - "skillsMetrics": { - "description": "", - "httpMethod": "GET", - "operationId": "agent_v1_skills_metrics_retrieve", - "parameters": [], - "path": "/api/backend-app/agent/v1/skills/metrics", - "pathParameters": [], - "queryParameters": [], - "requestBody": null, - "responses": { - "200": { - "contentTypes": [], - "description": "No response body", - "schema": {} - } - }, - "security": [ - { - "bearerAuth": [] - } - ], - "source": { - "rawPath": "/agent/v1/skills/metrics", - "service": "backend-app", - "servicePath": "/api/backend-app" - }, - "summary": null, - "tags": [ - "agent" - ] - }, - "skillsRun": { - "description": "", - "httpMethod": "POST", - "operationId": "agent_v1_skills:run_create", - "parameters": [], - "path": "/api/backend-app/agent/v1/skills:run", - "pathParameters": [], - "queryParameters": [], - "requestBody": null, - "responses": { - "200": { - "contentTypes": [], - "description": "No response body", - "schema": {} - } - }, - "security": [ - { - "bearerAuth": [] - } - ], - "source": { - "rawPath": "/agent/v1/skills:run", - "service": "backend-app", - "servicePath": "/api/backend-app" - }, - "summary": null, - "tags": [ - "agent" - ] - }, - "toolIntents": { - "description": "", - "httpMethod": "POST", - "operationId": "agent_v1_tool_intents_create", - "parameters": [], - "path": "/api/backend-app/agent/v1/tool-intents", - "pathParameters": [], - "queryParameters": [], - "requestBody": null, - "responses": { - "200": { - "contentTypes": [], - "description": "No response body", - "schema": {} - } - }, - "security": [ - { - "bearerAuth": [] - } - ], - "source": { - "rawPath": "/agent/v1/tool-intents", - "service": "backend-app", - "servicePath": "/api/backend-app" - }, - "summary": null, - "tags": [ - "agent" - ] - }, - "toolSessions": { - "description": "", - "httpMethod": "GET", - "operationId": "agent_v1_tool_sessions_retrieve", - "parameters": [], - "path": "/api/backend-app/agent/v1/tool-sessions", - "pathParameters": [], - "queryParameters": [], - "requestBody": null, - "responses": { - "200": { - "contentTypes": [], - "description": "No response body", - "schema": {} - } - }, - "security": [ - { - "bearerAuth": [] - } - ], - "source": { - "rawPath": "/agent/v1/tool-sessions", - "service": "backend-app", - "servicePath": "/api/backend-app" - }, - "summary": null, - "tags": [ - "agent" - ] - }, - "tools": { - "description": "", - "httpMethod": "GET", - "operationId": "agent_v1_tools_retrieve", - "parameters": [], - "path": "/api/backend-app/agent/v1/tools", - "pathParameters": [], - "queryParameters": [], - "requestBody": null, - "responses": { - "200": { - "contentTypes": [], - "description": "No response body", - "schema": {} - } - }, - "security": [ - { - "bearerAuth": [] - }, - {} - ], - "source": { - "rawPath": "/agent/v1/tools", - "service": "backend-app", - "servicePath": "/api/backend-app" - }, - "summary": null, - "tags": [ - "agent" - ] - }, - "toolsExecute": { - "description": "", - "httpMethod": "POST", - "operationId": "agent_v1_tools:execute_create", - "parameters": [], - "path": "/api/backend-app/agent/v1/tools:execute", - "pathParameters": [], - "queryParameters": [], - "requestBody": null, - "responses": { - "200": { - "contentTypes": [], - "description": "No response body", - "schema": {} - } - }, - "security": [ - { - "bearerAuth": [] - }, - {} - ], - "source": { - "rawPath": "/agent/v1/tools:execute", - "service": "backend-app", - "servicePath": "/api/backend-app" - }, - "summary": null, - "tags": [ - "agent" - ] - } - } - }, "appShell": { "methods": { "layoutEvents": { @@ -10049,14 +10482,14 @@ } } }, - "buddy": { + "audit": { "methods": { - "mentionTasks": { + "logs": { "description": "", "httpMethod": "GET", - "operationId": "buddy_v1_mention_tasks_retrieve", + "operationId": "audit_v1_logs_retrieve", "parameters": [], - "path": "/api/backend-app/buddy/v1/mention-tasks", + "path": "/api/backend-app/audit/v1/logs", "pathParameters": [], "queryParameters": [], "requestBody": null, @@ -10073,35 +10506,26 @@ } ], "source": { - "rawPath": "/buddy/v1/mention-tasks", + "rawPath": "/audit/v1/logs", "service": "backend-app", "servicePath": "/api/backend-app" }, "summary": null, "tags": [ - "buddy" + "audit" ] - }, - "mentionTasksPost": { + } + } + }, + "buddy": { + "methods": { + "notifications": { "description": "", - "httpMethod": "POST", - "operationId": "buddy_v1_mention_tasks_create", - "parameters": [ - { - "description": null, - "location": "path", - "name": "task_id", - "required": true, - "schema": { - "format": "uuid", - "type": "string" - } - } - ], - "path": "/api/backend-app/buddy/v1/mention-tasks/{task_id}", - "pathParameters": [ - "task_id" - ], + "httpMethod": "GET", + "operationId": "buddy_v1_notifications_retrieve", + "parameters": [], + "path": "/api/backend-app/buddy/v1/notifications", + "pathParameters": [], "queryParameters": [], "requestBody": null, "responses": { @@ -10117,7 +10541,7 @@ } ], "source": { - "rawPath": "/buddy/v1/mention-tasks/{task_id}", + "rawPath": "/buddy/v1/notifications", "service": "backend-app", "servicePath": "/api/backend-app" }, @@ -10126,12 +10550,12 @@ "buddy" ] }, - "notifications": { + "posts": { "description": "", "httpMethod": "GET", - "operationId": "buddy_v1_notifications_retrieve", + "operationId": "buddy_v1_posts_retrieve", "parameters": [], - "path": "/api/backend-app/buddy/v1/notifications", + "path": "/api/backend-app/buddy/v1/posts", "pathParameters": [], "queryParameters": [], "requestBody": null, @@ -10145,10 +10569,11 @@ "security": [ { "bearerAuth": [] - } + }, + {} ], "source": { - "rawPath": "/buddy/v1/notifications", + "rawPath": "/buddy/v1/posts", "service": "backend-app", "servicePath": "/api/backend-app" }, @@ -10157,12 +10582,12 @@ "buddy" ] }, - "openclawAuthSessions": { + "postsDuplicateCheck": { "description": "", "httpMethod": "POST", - "operationId": "buddy_v1_openclaw_auth_sessions_create", + "operationId": "buddy_v1_posts_duplicate_check_create", "parameters": [], - "path": "/api/backend-app/buddy/v1/openclaw/auth-sessions", + "path": "/api/backend-app/buddy/v1/posts/duplicate-check", "pathParameters": [], "queryParameters": [], "requestBody": null, @@ -10176,11 +10601,10 @@ "security": [ { "bearerAuth": [] - }, - {} + } ], "source": { - "rawPath": "/buddy/v1/openclaw/auth-sessions", + "rawPath": "/buddy/v1/posts/duplicate-check", "service": "backend-app", "servicePath": "/api/backend-app" }, @@ -10189,15 +10613,15 @@ "buddy" ] }, - "openclawAuthSessionsAuthorize": { + "postsFavorite": { "description": "", - "httpMethod": "GET", - "operationId": "buddy_v1_openclaw_auth_sessions_authorize_retrieve", + "httpMethod": "POST", + "operationId": "buddy_v1_posts_favorite_create", "parameters": [ { "description": null, "location": "path", - "name": "session_id", + "name": "post_id", "required": true, "schema": { "format": "uuid", @@ -10205,9 +10629,9 @@ } } ], - "path": "/api/backend-app/buddy/v1/openclaw/auth-sessions/{session_id}/authorize", + "path": "/api/backend-app/buddy/v1/posts/{post_id}/favorite", "pathParameters": [ - "session_id" + "post_id" ], "queryParameters": [], "requestBody": null, @@ -10221,11 +10645,10 @@ "security": [ { "bearerAuth": [] - }, - {} + } ], "source": { - "rawPath": "/buddy/v1/openclaw/auth-sessions/{session_id}/authorize", + "rawPath": "/buddy/v1/posts/{post_id}/favorite", "service": "backend-app", "servicePath": "/api/backend-app" }, @@ -10234,15 +10657,15 @@ "buddy" ] }, - "openclawAuthSessionsAuthorizePost": { + "postsGet": { "description": "", - "httpMethod": "POST", - "operationId": "buddy_v1_openclaw_auth_sessions_authorize_create", + "httpMethod": "GET", + "operationId": "buddy_v1_posts_retrieve_2", "parameters": [ { "description": null, "location": "path", - "name": "session_id", + "name": "post_id", "required": true, "schema": { "format": "uuid", @@ -10250,9 +10673,9 @@ } } ], - "path": "/api/backend-app/buddy/v1/openclaw/auth-sessions/{session_id}/authorize", + "path": "/api/backend-app/buddy/v1/posts/{post_id}", "pathParameters": [ - "session_id" + "post_id" ], "queryParameters": [], "requestBody": null, @@ -10269,7 +10692,7 @@ } ], "source": { - "rawPath": "/buddy/v1/openclaw/auth-sessions/{session_id}/authorize", + "rawPath": "/buddy/v1/posts/{post_id}", "service": "backend-app", "servicePath": "/api/backend-app" }, @@ -10278,15 +10701,15 @@ "buddy" ] }, - "openclawAuthSessionsGet": { + "postsJoin": { "description": "", - "httpMethod": "GET", - "operationId": "buddy_v1_openclaw_auth_sessions_retrieve", + "httpMethod": "POST", + "operationId": "buddy_v1_posts_join_create", "parameters": [ { "description": null, "location": "path", - "name": "session_id", + "name": "post_id", "required": true, "schema": { "format": "uuid", @@ -10294,9 +10717,9 @@ } } ], - "path": "/api/backend-app/buddy/v1/openclaw/auth-sessions/{session_id}", + "path": "/api/backend-app/buddy/v1/posts/{post_id}/join", "pathParameters": [ - "session_id" + "post_id" ], "queryParameters": [], "requestBody": null, @@ -10310,43 +10733,10 @@ "security": [ { "bearerAuth": [] - }, - {} - ], - "source": { - "rawPath": "/buddy/v1/openclaw/auth-sessions/{session_id}", - "service": "backend-app", - "servicePath": "/api/backend-app" - }, - "summary": null, - "tags": [ - "buddy" - ] - }, - "posts": { - "description": "", - "httpMethod": "GET", - "operationId": "buddy_v1_posts_retrieve", - "parameters": [], - "path": "/api/backend-app/buddy/v1/posts", - "pathParameters": [], - "queryParameters": [], - "requestBody": null, - "responses": { - "200": { - "contentTypes": [], - "description": "No response body", - "schema": {} } - }, - "security": [ - { - "bearerAuth": [] - }, - {} ], "source": { - "rawPath": "/buddy/v1/posts", + "rawPath": "/buddy/v1/posts/{post_id}/join", "service": "backend-app", "servicePath": "/api/backend-app" }, @@ -10355,10 +10745,10 @@ "buddy" ] }, - "postsFavorite": { + "postsManage": { "description": "", "httpMethod": "POST", - "operationId": "buddy_v1_posts_favorite_create", + "operationId": "buddy_v1_posts_manage_create", "parameters": [ { "description": null, @@ -10371,7 +10761,7 @@ } } ], - "path": "/api/backend-app/buddy/v1/posts/{post_id}/favorite", + "path": "/api/backend-app/buddy/v1/posts/{post_id}/manage", "pathParameters": [ "post_id" ], @@ -10390,7 +10780,7 @@ } ], "source": { - "rawPath": "/buddy/v1/posts/{post_id}/favorite", + "rawPath": "/buddy/v1/posts/{post_id}/manage", "service": "backend-app", "servicePath": "/api/backend-app" }, @@ -10399,10 +10789,10 @@ "buddy" ] }, - "postsGet": { + "postsMessages": { "description": "", "httpMethod": "GET", - "operationId": "buddy_v1_posts_retrieve_2", + "operationId": "buddy_v1_posts_messages_retrieve", "parameters": [ { "description": null, @@ -10415,7 +10805,7 @@ } } ], - "path": "/api/backend-app/buddy/v1/posts/{post_id}", + "path": "/api/backend-app/buddy/v1/posts/{post_id}/messages", "pathParameters": [ "post_id" ], @@ -10431,10 +10821,11 @@ "security": [ { "bearerAuth": [] - } + }, + {} ], "source": { - "rawPath": "/buddy/v1/posts/{post_id}", + "rawPath": "/buddy/v1/posts/{post_id}/messages", "service": "backend-app", "servicePath": "/api/backend-app" }, @@ -10443,10 +10834,10 @@ "buddy" ] }, - "postsJoin": { + "postsMessagesPost": { "description": "", "httpMethod": "POST", - "operationId": "buddy_v1_posts_join_create", + "operationId": "buddy_v1_posts_messages_create", "parameters": [ { "description": null, @@ -10459,7 +10850,7 @@ } } ], - "path": "/api/backend-app/buddy/v1/posts/{post_id}/join", + "path": "/api/backend-app/buddy/v1/posts/{post_id}/messages", "pathParameters": [ "post_id" ], @@ -10478,7 +10869,7 @@ } ], "source": { - "rawPath": "/buddy/v1/posts/{post_id}/join", + "rawPath": "/buddy/v1/posts/{post_id}/messages", "service": "backend-app", "servicePath": "/api/backend-app" }, @@ -10487,10 +10878,10 @@ "buddy" ] }, - "postsManage": { + "postsNotificationMode": { "description": "", - "httpMethod": "POST", - "operationId": "buddy_v1_posts_manage_create", + "httpMethod": "GET", + "operationId": "buddy_v1_posts_notification_mode_retrieve", "parameters": [ { "description": null, @@ -10503,7 +10894,7 @@ } } ], - "path": "/api/backend-app/buddy/v1/posts/{post_id}/manage", + "path": "/api/backend-app/buddy/v1/posts/{post_id}/notification-mode", "pathParameters": [ "post_id" ], @@ -10522,7 +10913,7 @@ } ], "source": { - "rawPath": "/buddy/v1/posts/{post_id}/manage", + "rawPath": "/buddy/v1/posts/{post_id}/notification-mode", "service": "backend-app", "servicePath": "/api/backend-app" }, @@ -10531,10 +10922,10 @@ "buddy" ] }, - "postsMessages": { + "postsNotificationModePost": { "description": "", - "httpMethod": "GET", - "operationId": "buddy_v1_posts_messages_retrieve", + "httpMethod": "POST", + "operationId": "buddy_v1_posts_notification_mode_create", "parameters": [ { "description": null, @@ -10547,7 +10938,7 @@ } } ], - "path": "/api/backend-app/buddy/v1/posts/{post_id}/messages", + "path": "/api/backend-app/buddy/v1/posts/{post_id}/notification-mode", "pathParameters": [ "post_id" ], @@ -10563,11 +10954,10 @@ "security": [ { "bearerAuth": [] - }, - {} + } ], "source": { - "rawPath": "/buddy/v1/posts/{post_id}/messages", + "rawPath": "/buddy/v1/posts/{post_id}/notification-mode", "service": "backend-app", "servicePath": "/api/backend-app" }, @@ -10576,26 +10966,13 @@ "buddy" ] }, - "postsMessagesPost": { + "postsPost": { "description": "", "httpMethod": "POST", - "operationId": "buddy_v1_posts_messages_create", - "parameters": [ - { - "description": null, - "location": "path", - "name": "post_id", - "required": true, - "schema": { - "format": "uuid", - "type": "string" - } - } - ], - "path": "/api/backend-app/buddy/v1/posts/{post_id}/messages", - "pathParameters": [ - "post_id" - ], + "operationId": "buddy_v1_posts_create", + "parameters": [], + "path": "/api/backend-app/buddy/v1/posts", + "pathParameters": [], "queryParameters": [], "requestBody": null, "responses": { @@ -10611,7 +10988,7 @@ } ], "source": { - "rawPath": "/buddy/v1/posts/{post_id}/messages", + "rawPath": "/buddy/v1/posts", "service": "backend-app", "servicePath": "/api/backend-app" }, @@ -10620,10 +10997,10 @@ "buddy" ] }, - "postsNotificationMode": { + "postsReviews": { "description": "", - "httpMethod": "GET", - "operationId": "buddy_v1_posts_notification_mode_retrieve", + "httpMethod": "POST", + "operationId": "buddy_v1_posts_reviews_create", "parameters": [ { "description": null, @@ -10636,7 +11013,7 @@ } } ], - "path": "/api/backend-app/buddy/v1/posts/{post_id}/notification-mode", + "path": "/api/backend-app/buddy/v1/posts/{post_id}/reviews", "pathParameters": [ "post_id" ], @@ -10655,7 +11032,7 @@ } ], "source": { - "rawPath": "/buddy/v1/posts/{post_id}/notification-mode", + "rawPath": "/buddy/v1/posts/{post_id}/reviews", "service": "backend-app", "servicePath": "/api/backend-app" }, @@ -10664,10 +11041,10 @@ "buddy" ] }, - "postsNotificationModePost": { + "postsUpdate": { "description": "", - "httpMethod": "POST", - "operationId": "buddy_v1_posts_notification_mode_create", + "httpMethod": "PATCH", + "operationId": "buddy_v1_posts_partial_update", "parameters": [ { "description": null, @@ -10680,7 +11057,7 @@ } } ], - "path": "/api/backend-app/buddy/v1/posts/{post_id}/notification-mode", + "path": "/api/backend-app/buddy/v1/posts/{post_id}", "pathParameters": [ "post_id" ], @@ -10699,38 +11076,7 @@ } ], "source": { - "rawPath": "/buddy/v1/posts/{post_id}/notification-mode", - "service": "backend-app", - "servicePath": "/api/backend-app" - }, - "summary": null, - "tags": [ - "buddy" - ] - }, - "postsPost": { - "description": "", - "httpMethod": "POST", - "operationId": "buddy_v1_posts_create", - "parameters": [], - "path": "/api/backend-app/buddy/v1/posts", - "pathParameters": [], - "queryParameters": [], - "requestBody": null, - "responses": { - "200": { - "contentTypes": [], - "description": "No response body", - "schema": {} - } - }, - "security": [ - { - "bearerAuth": [] - } - ], - "source": { - "rawPath": "/buddy/v1/posts", + "rawPath": "/buddy/v1/posts/{post_id}", "service": "backend-app", "servicePath": "/api/backend-app" }, @@ -13181,6 +13527,102 @@ "humanoid" ] }, + "benchmarkDefinitions": { + "description": "", + "httpMethod": "GET", + "operationId": "humanoid_v1_benchmark_definitions_retrieve", + "parameters": [], + "path": "/api/backend-app/humanoid/v1/benchmark-definitions", + "pathParameters": [], + "queryParameters": [], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [], + "description": "No response body", + "schema": {} + } + }, + "security": [ + { + "bearerAuth": [] + }, + {} + ], + "source": { + "rawPath": "/humanoid/v1/benchmark-definitions", + "service": "backend-app", + "servicePath": "/api/backend-app" + }, + "summary": null, + "tags": [ + "humanoid" + ] + }, + "benchmarkLeaderboards": { + "description": "", + "httpMethod": "GET", + "operationId": "humanoid_v1_benchmark_leaderboards_retrieve", + "parameters": [], + "path": "/api/backend-app/humanoid/v1/benchmark-leaderboards", + "pathParameters": [], + "queryParameters": [], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [], + "description": "No response body", + "schema": {} + } + }, + "security": [ + { + "bearerAuth": [] + }, + {} + ], + "source": { + "rawPath": "/humanoid/v1/benchmark-leaderboards", + "service": "backend-app", + "servicePath": "/api/backend-app" + }, + "summary": null, + "tags": [ + "humanoid" + ] + }, + "internalBenchmarkCacheInvalidate": { + "description": "", + "httpMethod": "POST", + "operationId": "humanoid_v1_internal_benchmark_cache_invalidate_create", + "parameters": [], + "path": "/api/backend-app/humanoid/v1/internal/benchmark-cache/invalidate", + "pathParameters": [], + "queryParameters": [], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [], + "description": "No response body", + "schema": {} + } + }, + "security": [ + { + "bearerAuth": [] + }, + {} + ], + "source": { + "rawPath": "/humanoid/v1/internal/benchmark-cache/invalidate", + "service": "backend-app", + "servicePath": "/api/backend-app" + }, + "summary": null, + "tags": [ + "humanoid" + ] + }, "leaderboards": { "description": "", "httpMethod": "GET", @@ -13277,10 +13719,10 @@ "humanoid" ] }, - "robotsConfigVersions": { + "robotsBenchmarkPlacements": { "description": "", "httpMethod": "GET", - "operationId": "humanoid_v1_robots_config_versions_retrieve", + "operationId": "humanoid_v1_robots_benchmark_placements_retrieve", "parameters": [ { "description": null, @@ -13292,7 +13734,7 @@ } } ], - "path": "/api/backend-app/humanoid/v1/robots/{robot_id}/config-versions", + "path": "/api/backend-app/humanoid/v1/robots/{robot_id}/benchmark-placements", "pathParameters": [ "robot_id" ], @@ -13312,7 +13754,7 @@ {} ], "source": { - "rawPath": "/humanoid/v1/robots/{robot_id}/config-versions", + "rawPath": "/humanoid/v1/robots/{robot_id}/benchmark-placements", "service": "backend-app", "servicePath": "/api/backend-app" }, @@ -13321,10 +13763,10 @@ "humanoid" ] }, - "robotsConfigVersionsGet": { + "robotsConfigVersions": { "description": "", "httpMethod": "GET", - "operationId": "humanoid_v1_robots_config_versions_retrieve_2", + "operationId": "humanoid_v1_robots_config_versions_retrieve", "parameters": [ { "description": null, @@ -13334,21 +13776,11 @@ "schema": { "type": "string" } - }, - { - "description": null, - "location": "path", - "name": "version_id", - "required": true, - "schema": { - "type": "string" - } } ], - "path": "/api/backend-app/humanoid/v1/robots/{robot_id}/config-versions/{version_id}", + "path": "/api/backend-app/humanoid/v1/robots/{robot_id}/config-versions", "pathParameters": [ - "robot_id", - "version_id" + "robot_id" ], "queryParameters": [], "requestBody": null, @@ -13366,7 +13798,7 @@ {} ], "source": { - "rawPath": "/humanoid/v1/robots/{robot_id}/config-versions/{version_id}", + "rawPath": "/humanoid/v1/robots/{robot_id}/config-versions", "service": "backend-app", "servicePath": "/api/backend-app" }, @@ -13375,10 +13807,10 @@ "humanoid" ] }, - "robotsGet": { + "robotsConfigVersionsGet": { "description": "", "httpMethod": "GET", - "operationId": "humanoid_v1_robots_retrieve_2", + "operationId": "humanoid_v1_robots_config_versions_retrieve_2", "parameters": [ { "description": null, @@ -13388,11 +13820,21 @@ "schema": { "type": "string" } + }, + { + "description": null, + "location": "path", + "name": "version_id", + "required": true, + "schema": { + "type": "string" + } } ], - "path": "/api/backend-app/humanoid/v1/robots/{robot_id}", + "path": "/api/backend-app/humanoid/v1/robots/{robot_id}/config-versions/{version_id}", "pathParameters": [ - "robot_id" + "robot_id", + "version_id" ], "queryParameters": [], "requestBody": null, @@ -13410,7 +13852,7 @@ {} ], "source": { - "rawPath": "/humanoid/v1/robots/{robot_id}", + "rawPath": "/humanoid/v1/robots/{robot_id}/config-versions/{version_id}", "service": "backend-app", "servicePath": "/api/backend-app" }, @@ -13418,237 +13860,26 @@ "tags": [ "humanoid" ] - } - } - }, - "internalAgent": { - "methods": { - "auditLogs": { - "description": "", - "httpMethod": "GET", - "operationId": "internal_agent_v1_audit_logs_retrieve", - "parameters": [], - "path": "/api/backend-app/internal-agent/v1/audit-logs", - "pathParameters": [], - "queryParameters": [], - "requestBody": null, - "responses": { - "200": { - "contentTypes": [], - "description": "No response body", - "schema": {} - } - }, - "security": [ - { - "bearerAuth": [] - } - ], - "source": { - "rawPath": "/internal-agent/v1/audit-logs", - "service": "backend-app", - "servicePath": "/api/backend-app" - }, - "summary": null, - "tags": [ - "internal-agent" - ] - }, - "skills": { - "description": "", - "httpMethod": "GET", - "operationId": "internal_agent_v1_skills_retrieve", - "parameters": [], - "path": "/api/backend-app/internal-agent/v1/skills", - "pathParameters": [], - "queryParameters": [], - "requestBody": null, - "responses": { - "200": { - "contentTypes": [], - "description": "No response body", - "schema": {} - } - }, - "security": [ - { - "bearerAuth": [] - }, - {} - ], - "source": { - "rawPath": "/internal-agent/v1/skills", - "service": "backend-app", - "servicePath": "/api/backend-app" - }, - "summary": null, - "tags": [ - "internal-agent" - ] - }, - "skillsMetrics": { - "description": "", - "httpMethod": "GET", - "operationId": "internal_agent_v1_skills_metrics_retrieve", - "parameters": [], - "path": "/api/backend-app/internal-agent/v1/skills/metrics", - "pathParameters": [], - "queryParameters": [], - "requestBody": null, - "responses": { - "200": { - "contentTypes": [], - "description": "No response body", - "schema": {} - } - }, - "security": [ - { - "bearerAuth": [] - } - ], - "source": { - "rawPath": "/internal-agent/v1/skills/metrics", - "service": "backend-app", - "servicePath": "/api/backend-app" - }, - "summary": null, - "tags": [ - "internal-agent" - ] - }, - "skillsRun": { - "description": "", - "httpMethod": "POST", - "operationId": "internal_agent_v1_skills:run_create", - "parameters": [], - "path": "/api/backend-app/internal-agent/v1/skills:run", - "pathParameters": [], - "queryParameters": [], - "requestBody": null, - "responses": { - "200": { - "contentTypes": [], - "description": "No response body", - "schema": {} - } - }, - "security": [ - { - "bearerAuth": [] - } - ], - "source": { - "rawPath": "/internal-agent/v1/skills:run", - "service": "backend-app", - "servicePath": "/api/backend-app" - }, - "summary": null, - "tags": [ - "internal-agent" - ] - }, - "toolIntents": { - "description": "", - "httpMethod": "POST", - "operationId": "internal_agent_v1_tool_intents_create", - "parameters": [], - "path": "/api/backend-app/internal-agent/v1/tool-intents", - "pathParameters": [], - "queryParameters": [], - "requestBody": null, - "responses": { - "200": { - "contentTypes": [], - "description": "No response body", - "schema": {} - } - }, - "security": [ - { - "bearerAuth": [] - } - ], - "source": { - "rawPath": "/internal-agent/v1/tool-intents", - "service": "backend-app", - "servicePath": "/api/backend-app" - }, - "summary": null, - "tags": [ - "internal-agent" - ] }, - "toolSessions": { + "robotsGet": { "description": "", "httpMethod": "GET", - "operationId": "internal_agent_v1_tool_sessions_retrieve", - "parameters": [], - "path": "/api/backend-app/internal-agent/v1/tool-sessions", - "pathParameters": [], - "queryParameters": [], - "requestBody": null, - "responses": { - "200": { - "contentTypes": [], - "description": "No response body", - "schema": {} - } - }, - "security": [ + "operationId": "humanoid_v1_robots_retrieve_2", + "parameters": [ { - "bearerAuth": [] + "description": null, + "location": "path", + "name": "robot_id", + "required": true, + "schema": { + "type": "string" + } } ], - "source": { - "rawPath": "/internal-agent/v1/tool-sessions", - "service": "backend-app", - "servicePath": "/api/backend-app" - }, - "summary": null, - "tags": [ - "internal-agent" - ] - }, - "tools": { - "description": "", - "httpMethod": "GET", - "operationId": "internal_agent_v1_tools_retrieve", - "parameters": [], - "path": "/api/backend-app/internal-agent/v1/tools", - "pathParameters": [], - "queryParameters": [], - "requestBody": null, - "responses": { - "200": { - "contentTypes": [], - "description": "No response body", - "schema": {} - } - }, - "security": [ - { - "bearerAuth": [] - }, - {} + "path": "/api/backend-app/humanoid/v1/robots/{robot_id}", + "pathParameters": [ + "robot_id" ], - "source": { - "rawPath": "/internal-agent/v1/tools", - "service": "backend-app", - "servicePath": "/api/backend-app" - }, - "summary": null, - "tags": [ - "internal-agent" - ] - }, - "toolsExecute": { - "description": "", - "httpMethod": "POST", - "operationId": "internal_agent_v1_tools:execute_create", - "parameters": [], - "path": "/api/backend-app/internal-agent/v1/tools:execute", - "pathParameters": [], "queryParameters": [], "requestBody": null, "responses": { @@ -13665,13 +13896,13 @@ {} ], "source": { - "rawPath": "/internal-agent/v1/tools:execute", + "rawPath": "/humanoid/v1/robots/{robot_id}", "service": "backend-app", "servicePath": "/api/backend-app" }, "summary": null, "tags": [ - "internal-agent" + "humanoid" ] } } @@ -13906,147 +14137,127 @@ } } }, - "micontrol": { + "mobile": { "methods": { - "runs": { - "description": "", - "httpMethod": "GET", - "operationId": "micontrol_v2_runs_retrieve", - "parameters": [], - "path": "/api/backend-app/micontrol/v2/runs", - "pathParameters": [], - "queryParameters": [], - "requestBody": null, - "responses": { - "200": { - "contentTypes": [], - "description": "No response body", - "schema": {} - } - }, - "security": [ - { - "bearerAuth": [] - } - ], - "source": { - "rawPath": "/micontrol/v2/runs", - "service": "backend-app", - "servicePath": "/api/backend-app" - }, - "summary": null, - "tags": [ - "micontrol" - ] - }, - "runsAcceptance": { - "description": "", + "apkLatest": { + "description": "Download latest Android APK (public)", "httpMethod": "GET", - "operationId": "micontrol_v2_runs_acceptance_retrieve", + "operationId": "api_mobile_apk_latest_retrieve", "parameters": [ { - "description": null, - "location": "path", - "name": "run_id", + "description": "APK brand: chek / autohomechek", + "location": "query", + "name": "brand", "required": true, "schema": { - "format": "uuid", "type": "string" } - } - ], - "path": "/api/backend-app/micontrol/v2/runs/{run_id}/acceptance", - "pathParameters": [ - "run_id" - ], - "queryParameters": [], - "requestBody": null, - "responses": { - "200": { - "contentTypes": [], - "description": "No response body", - "schema": {} - } - }, - "security": [ - { - "bearerAuth": [] - } - ], - "source": { - "rawPath": "/micontrol/v2/runs/{run_id}/acceptance", - "service": "backend-app", - "servicePath": "/api/backend-app" - }, - "summary": null, - "tags": [ - "micontrol" - ] - }, - "runsArtifacts": { - "description": "", - "httpMethod": "GET", - "operationId": "micontrol_v2_runs_artifacts_retrieve", - "parameters": [ + }, { - "description": null, - "location": "path", - "name": "run_id", + "description": "Target environment: dev/staging/prod", + "location": "query", + "name": "env", "required": true, "schema": { - "format": "uuid", "type": "string" } + }, + { + "description": "redirect=1 (default): 302 to latest_download_url; redirect=0: return JSON manifest", + "location": "query", + "name": "redirect", + "required": false, + "schema": { + "type": "integer" + } } ], - "path": "/api/backend-app/micontrol/v2/runs/{run_id}/artifacts", - "pathParameters": [ - "run_id" + "path": "/api/backend-app/api/mobile/apk/latest", + "pathParameters": [], + "queryParameters": [ + "brand", + "env", + "redirect" ], - "queryParameters": [], "requestBody": null, "responses": { "200": { + "contentTypes": [ + "application/json" + ], + "description": "Latest manifest (JSON)", + "schema": { + "application/json": { + "$ref": "#/components/schemas/MobileApkLatestResponse" + } + } + }, + "302": { "contentTypes": [], - "description": "No response body", + "description": "Redirect to latest APK download URL", "schema": {} + }, + "400": { + "contentTypes": [ + "application/json" + ], + "description": "Bad request", + "schema": { + "application/json": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + }, + "404": { + "contentTypes": [ + "application/json" + ], + "description": "Manifest not found", + "schema": { + "application/json": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + }, + "500": { + "contentTypes": [ + "application/json" + ], + "description": "Internal error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/ErrorResponse" + } + } } }, "security": [ { "bearerAuth": [] - } + }, + {} ], "source": { - "rawPath": "/micontrol/v2/runs/{run_id}/artifacts", + "rawPath": "/api/mobile/apk/latest", "service": "backend-app", "servicePath": "/api/backend-app" }, - "summary": null, + "summary": "Download latest Android APK (public)", "tags": [ - "micontrol" + "Mobile" ] - }, - "runsArtifactsPost": { + } + } + }, + "observability": { + "methods": { + "batches": { "description": "", - "httpMethod": "POST", - "operationId": "micontrol_v2_runs_artifacts_create", - "parameters": [ - { - "description": null, - "location": "path", - "name": "run_id", - "required": true, - "schema": { - "format": "uuid", - "type": "string" - } - } - ], - "path": "/api/backend-app/micontrol/v2/runs/{run_id}/artifacts", - "pathParameters": [ - "run_id" - ], + "httpMethod": "GET", + "operationId": "api_observability_v1_batches_retrieve", + "parameters": [], + "path": "/api/backend-app/api/observability/v1/batches", + "pathParameters": [], "queryParameters": [], "requestBody": null, "responses": { @@ -14062,24 +14273,24 @@ } ], "source": { - "rawPath": "/micontrol/v2/runs/{run_id}/artifacts", + "rawPath": "/api/observability/v1/batches", "service": "backend-app", "servicePath": "/api/backend-app" }, "summary": null, "tags": [ - "micontrol" + "api" ] }, - "runsBridge": { + "batchesGet": { "description": "", "httpMethod": "GET", - "operationId": "micontrol_v2_runs_bridge_retrieve", + "operationId": "api_observability_v1_batches_retrieve_2", "parameters": [ { "description": null, "location": "path", - "name": "run_id", + "name": "batch_id", "required": true, "schema": { "format": "uuid", @@ -14087,9 +14298,9 @@ } } ], - "path": "/api/backend-app/micontrol/v2/runs/{run_id}/bridge", + "path": "/api/backend-app/api/observability/v1/batches/{batch_id}", "pathParameters": [ - "run_id" + "batch_id" ], "queryParameters": [], "requestBody": null, @@ -14106,35 +14317,22 @@ } ], "source": { - "rawPath": "/micontrol/v2/runs/{run_id}/bridge", + "rawPath": "/api/observability/v1/batches/{batch_id}", "service": "backend-app", "servicePath": "/api/backend-app" }, "summary": null, "tags": [ - "micontrol" + "api" ] }, - "runsBridgePost": { + "batchesPost": { "description": "", "httpMethod": "POST", - "operationId": "micontrol_v2_runs_bridge_create", - "parameters": [ - { - "description": null, - "location": "path", - "name": "run_id", - "required": true, - "schema": { - "format": "uuid", - "type": "string" - } - } - ], - "path": "/api/backend-app/micontrol/v2/runs/{run_id}/bridge", - "pathParameters": [ - "run_id" - ], + "operationId": "api_observability_v1_batches_create", + "parameters": [], + "path": "/api/backend-app/api/observability/v1/batches", + "pathParameters": [], "queryParameters": [], "requestBody": null, "responses": { @@ -14147,27 +14345,28 @@ "security": [ { "bearerAuth": [] - } + }, + {} ], "source": { - "rawPath": "/micontrol/v2/runs/{run_id}/bridge", + "rawPath": "/api/observability/v1/batches", "service": "backend-app", "servicePath": "/api/backend-app" }, "summary": null, "tags": [ - "micontrol" + "api" ] }, - "runsBundle": { + "batchesRaw": { "description": "", "httpMethod": "GET", - "operationId": "micontrol_v2_runs_bundle_retrieve", + "operationId": "api_observability_v1_batches_raw_retrieve", "parameters": [ { "description": null, "location": "path", - "name": "run_id", + "name": "batch_id", "required": true, "schema": { "format": "uuid", @@ -14175,9 +14374,9 @@ } } ], - "path": "/api/backend-app/micontrol/v2/runs/{run_id}/bundle", + "path": "/api/backend-app/api/observability/v1/batches/{batch_id}/raw", "pathParameters": [ - "run_id" + "batch_id" ], "queryParameters": [], "requestBody": null, @@ -14194,35 +14393,22 @@ } ], "source": { - "rawPath": "/micontrol/v2/runs/{run_id}/bundle", + "rawPath": "/api/observability/v1/batches/{batch_id}/raw", "service": "backend-app", "servicePath": "/api/backend-app" }, "summary": null, "tags": [ - "micontrol" + "api" ] }, - "runsFollowups": { + "events": { "description": "", - "httpMethod": "POST", - "operationId": "micontrol_v2_runs_followups_create", - "parameters": [ - { - "description": null, - "location": "path", - "name": "run_id", - "required": true, - "schema": { - "format": "uuid", - "type": "string" - } - } - ], - "path": "/api/backend-app/micontrol/v2/runs/{run_id}/followups", - "pathParameters": [ - "run_id" - ], + "httpMethod": "GET", + "operationId": "api_observability_v1_events_retrieve", + "parameters": [], + "path": "/api/backend-app/api/observability/v1/events", + "pathParameters": [], "queryParameters": [], "requestBody": null, "responses": { @@ -14238,218 +14424,533 @@ } ], "source": { - "rawPath": "/micontrol/v2/runs/{run_id}/followups", + "rawPath": "/api/observability/v1/events", "service": "backend-app", "servicePath": "/api/backend-app" }, "summary": null, "tags": [ - "micontrol" + "api" ] - }, - "runsFollowupsStream": { - "description": "", - "httpMethod": "POST", - "operationId": "micontrol_v2_runs_followups:stream_create", + } + } + }, + "openapiJson": { + "methods": { + "list": { + "description": "OpenApi3 schema for this API. Format can be selected via content negotiation.\n\n- YAML: application/vnd.oai.openapi\n- JSON: application/vnd.oai.openapi+json", + "httpMethod": "GET", + "operationId": "openapi.json_retrieve", "parameters": [ { "description": null, - "location": "path", - "name": "run_id", - "required": true, + "location": "query", + "name": "format", + "required": false, "schema": { - "format": "uuid", + "enum": [ + "json", + "yaml" + ], "type": "string" } - } - ], - "path": "/api/backend-app/micontrol/v2/runs/{run_id}/followups:stream", - "pathParameters": [ - "run_id" - ], - "queryParameters": [], - "requestBody": null, - "responses": { - "200": { - "contentTypes": [], - "description": "No response body", - "schema": {} - } - }, - "security": [ - { - "bearerAuth": [] - } - ], - "source": { - "rawPath": "/micontrol/v2/runs/{run_id}/followups:stream", - "service": "backend-app", - "servicePath": "/api/backend-app" - }, - "summary": null, - "tags": [ - "micontrol" - ] - }, - "runsGet": { - "description": "", - "httpMethod": "GET", - "operationId": "micontrol_v2_runs_retrieve_2", - "parameters": [ + }, { "description": null, - "location": "path", - "name": "run_id", - "required": true, + "location": "query", + "name": "lang", + "required": false, "schema": { - "format": "uuid", + "enum": [ + "af", + "ar", + "ar-dz", + "ast", + "az", + "be", + "bg", + "bn", + "br", + "bs", + "ca", + "ckb", + "cs", + "cy", + "da", + "de", + "dsb", + "el", + "en", + "en-au", + "en-gb", + "eo", + "es", + "es-ar", + "es-co", + "es-mx", + "es-ni", + "es-ve", + "et", + "eu", + "fa", + "fi", + "fr", + "fy", + "ga", + "gd", + "gl", + "he", + "hi", + "hr", + "hsb", + "hu", + "hy", + "ia", + "id", + "ig", + "io", + "is", + "it", + "ja", + "ka", + "kab", + "kk", + "km", + "kn", + "ko", + "ky", + "lb", + "lt", + "lv", + "mk", + "ml", + "mn", + "mr", + "ms", + "my", + "nb", + "ne", + "nl", + "nn", + "os", + "pa", + "pl", + "pt", + "pt-br", + "ro", + "ru", + "sk", + "sl", + "sq", + "sr", + "sr-latn", + "sv", + "sw", + "ta", + "te", + "tg", + "th", + "tk", + "tr", + "tt", + "udm", + "ug", + "uk", + "ur", + "uz", + "vi", + "zh-hans", + "zh-hant" + ], "type": "string" } } ], - "path": "/api/backend-app/micontrol/v2/runs/{run_id}", - "pathParameters": [ - "run_id" + "path": "/api/backend-app/openapi.json", + "pathParameters": [], + "queryParameters": [ + "format", + "lang" ], - "queryParameters": [], "requestBody": null, "responses": { "200": { - "contentTypes": [], - "description": "No response body", - "schema": {} + "contentTypes": [ + "application/json", + "application/vnd.oai.openapi", + "application/vnd.oai.openapi+json", + "application/yaml" + ], + "description": "", + "schema": { + "application/json": { + "type": "object" + }, + "application/vnd.oai.openapi": { + "type": "object" + }, + "application/vnd.oai.openapi+json": { + "type": "object" + }, + "application/yaml": { + "type": "object" + } + } } }, "security": [ { "bearerAuth": [] - } + }, + {} ], "source": { - "rawPath": "/micontrol/v2/runs/{run_id}", + "rawPath": "/openapi.json", "service": "backend-app", "servicePath": "/api/backend-app" }, "summary": null, "tags": [ - "micontrol" + "openapi.json" ] - }, - "runsHooks": { - "description": "", + } + } + }, + "schema": { + "methods": { + "list": { + "description": "OpenApi3 schema for this API. Format can be selected via content negotiation.\n\n- YAML: application/vnd.oai.openapi\n- JSON: application/vnd.oai.openapi+json", "httpMethod": "GET", - "operationId": "micontrol_v2_runs_hooks_retrieve", + "operationId": "schema_retrieve", "parameters": [ { "description": null, - "location": "path", - "name": "run_id", - "required": true, + "location": "query", + "name": "format", + "required": false, "schema": { - "format": "uuid", + "enum": [ + "json", + "yaml" + ], + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "lang", + "required": false, + "schema": { + "enum": [ + "af", + "ar", + "ar-dz", + "ast", + "az", + "be", + "bg", + "bn", + "br", + "bs", + "ca", + "ckb", + "cs", + "cy", + "da", + "de", + "dsb", + "el", + "en", + "en-au", + "en-gb", + "eo", + "es", + "es-ar", + "es-co", + "es-mx", + "es-ni", + "es-ve", + "et", + "eu", + "fa", + "fi", + "fr", + "fy", + "ga", + "gd", + "gl", + "he", + "hi", + "hr", + "hsb", + "hu", + "hy", + "ia", + "id", + "ig", + "io", + "is", + "it", + "ja", + "ka", + "kab", + "kk", + "km", + "kn", + "ko", + "ky", + "lb", + "lt", + "lv", + "mk", + "ml", + "mn", + "mr", + "ms", + "my", + "nb", + "ne", + "nl", + "nn", + "os", + "pa", + "pl", + "pt", + "pt-br", + "ro", + "ru", + "sk", + "sl", + "sq", + "sr", + "sr-latn", + "sv", + "sw", + "ta", + "te", + "tg", + "th", + "tk", + "tr", + "tt", + "udm", + "ug", + "uk", + "ur", + "uz", + "vi", + "zh-hans", + "zh-hant" + ], "type": "string" } } ], - "path": "/api/backend-app/micontrol/v2/runs/{run_id}/hooks", - "pathParameters": [ - "run_id" + "path": "/api/backend-app/schema/", + "pathParameters": [], + "queryParameters": [ + "format", + "lang" ], - "queryParameters": [], "requestBody": null, "responses": { "200": { - "contentTypes": [], - "description": "No response body", - "schema": {} + "contentTypes": [ + "application/json", + "application/vnd.oai.openapi", + "application/vnd.oai.openapi+json", + "application/yaml" + ], + "description": "", + "schema": { + "application/json": { + "type": "object" + }, + "application/vnd.oai.openapi": { + "type": "object" + }, + "application/vnd.oai.openapi+json": { + "type": "object" + }, + "application/yaml": { + "type": "object" + } + } } }, "security": [ { "bearerAuth": [] - } + }, + {} ], "source": { - "rawPath": "/micontrol/v2/runs/{run_id}/hooks", + "rawPath": "/schema/", "service": "backend-app", "servicePath": "/api/backend-app" }, "summary": null, "tags": [ - "micontrol" + "schema" ] - }, - "runsHydrate": { - "description": "", + } + } + }, + "searchModelInfo": { + "methods": { + "create": { + "description": "获取车型版本", "httpMethod": "POST", - "operationId": "micontrol_v2_runs_hydrate_create", - "parameters": [ - { - "description": null, - "location": "path", - "name": "run_id", - "required": true, - "schema": { - "format": "uuid", - "type": "string" + "operationId": "api_search_model_info_create", + "parameters": [], + "path": "/api/backend-app/api/search_model_info", + "pathParameters": [], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json", + "application/x-www-form-urlencoded", + "multipart/form-data" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/ModelConfigSearchModelTosRequest" + }, + "application/x-www-form-urlencoded": { + "$ref": "#/components/schemas/ModelConfigSearchModelTosRequest" + }, + "multipart/form-data": { + "$ref": "#/components/schemas/ModelConfigSearchModelTosRequest" } } - ], - "path": "/api/backend-app/micontrol/v2/runs/{run_id}/hydrate", - "pathParameters": [ - "run_id" - ], - "queryParameters": [], - "requestBody": null, + }, "responses": { "200": { - "contentTypes": [], - "description": "No response body", - "schema": {} + "contentTypes": [ + "application/json" + ], + "description": "成功", + "schema": { + "application/json": { + "$ref": "#/components/schemas/SuccessfulResponse" + } + } + }, + "400": { + "contentTypes": [ + "application/json" + ], + "description": "车型缺失", + "schema": { + "application/json": { + "$ref": "#/components/schemas/SuccessfulResponse" + } + } + }, + "500": { + "contentTypes": [ + "application/json" + ], + "description": "内部服务错误", + "schema": { + "application/json": { + "$ref": "#/components/schemas/ErrorResponse" + } + } } }, "security": [ { "bearerAuth": [] - } + }, + {} ], "source": { - "rawPath": "/micontrol/v2/runs/{run_id}/hydrate", + "rawPath": "/api/search_model_info", "service": "backend-app", "servicePath": "/api/backend-app" }, - "summary": null, + "summary": "获取车型版本", "tags": [ - "micontrol" + "车型" ] - }, - "runsMemory": { - "description": "", - "httpMethod": "GET", - "operationId": "micontrol_v2_runs_memory_retrieve", + } + } + }, + "searchModelTos": { + "methods": { + "create": { + "description": "查询模型tos路径", + "httpMethod": "POST", + "operationId": "api_search_model_tos_create", "parameters": [ { - "description": null, - "location": "path", - "name": "run_id", + "description": "认证令牌,格式为:Bearer ", + "location": "header", + "name": "Authorization", "required": true, "schema": { - "format": "uuid", "type": "string" } } ], - "path": "/api/backend-app/micontrol/v2/runs/{run_id}/memory", - "pathParameters": [ - "run_id" - ], + "path": "/api/backend-app/api/search_model_tos", + "pathParameters": [], "queryParameters": [], - "requestBody": null, + "requestBody": { + "contentTypes": [ + "application/json", + "application/x-www-form-urlencoded", + "multipart/form-data" + ], + "required": false, + "schema": { + "application/json": { + "$ref": "#/components/schemas/ModelConfigUpdateRequestRequest" + }, + "application/x-www-form-urlencoded": { + "$ref": "#/components/schemas/ModelConfigUpdateRequestRequest" + }, + "multipart/form-data": { + "$ref": "#/components/schemas/ModelConfigUpdateRequestRequest" + } + } + }, "responses": { "200": { - "contentTypes": [], - "description": "No response body", - "schema": {} + "contentTypes": [ + "application/json" + ], + "description": "成功", + "schema": { + "application/json": { + "$ref": "#/components/schemas/searchModelTosResponse" + } + } + }, + "400": { + "contentTypes": [ + "application/json" + ], + "description": "未查询到该数据", + "schema": { + "application/json": { + "$ref": "#/components/schemas/SuccessfulResponse" + } + } + }, + "500": { + "contentTypes": [ + "application/json" + ], + "description": "内部服务错误", + "schema": { + "application/json": { + "$ref": "#/components/schemas/ErrorResponse" + } + } } }, "security": [ @@ -14458,73 +14959,57 @@ } ], "source": { - "rawPath": "/micontrol/v2/runs/{run_id}/memory", + "rawPath": "/api/search_model_tos", "service": "backend-app", "servicePath": "/api/backend-app" }, - "summary": null, + "summary": "查询模型tos路径", "tags": [ - "micontrol" + "模型" ] - }, - "runsPost": { - "description": "", + } + } + }, + "share": { + "methods": { + "urlLink": { + "description": "生成微信 URLLink(wxaurl.cn/...)用于分享", "httpMethod": "POST", - "operationId": "micontrol_v2_runs_create", + "operationId": "share_urlLink_create", "parameters": [], - "path": "/api/backend-app/micontrol/v2/runs", + "path": "/api/backend-app/share/urlLink", "pathParameters": [], "queryParameters": [], - "requestBody": null, - "responses": { - "200": { - "contentTypes": [], - "description": "No response body", - "schema": {} - } - }, - "security": [ - { - "bearerAuth": [] - } - ], - "source": { - "rawPath": "/micontrol/v2/runs", - "service": "backend-app", - "servicePath": "/api/backend-app" - }, - "summary": null, - "tags": [ - "micontrol" - ] - }, - "runsRecover": { - "description": "", - "httpMethod": "POST", - "operationId": "micontrol_v2_runs_recover_create", - "parameters": [ - { - "description": null, - "location": "path", - "name": "run_id", - "required": true, - "schema": { - "format": "uuid", - "type": "string" + "requestBody": { + "contentTypes": [ + "application/json", + "application/x-www-form-urlencoded", + "multipart/form-data" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/UrlLinkRequestRequest" + }, + "application/x-www-form-urlencoded": { + "$ref": "#/components/schemas/UrlLinkRequestRequest" + }, + "multipart/form-data": { + "$ref": "#/components/schemas/UrlLinkRequestRequest" } } - ], - "path": "/api/backend-app/micontrol/v2/runs/{run_id}/recover", - "pathParameters": [ - "run_id" - ], - "queryParameters": [], - "requestBody": null, + }, "responses": { "200": { - "contentTypes": [], - "description": "No response body", - "schema": {} + "contentTypes": [ + "application/json" + ], + "description": "", + "schema": { + "application/json": { + "$ref": "#/components/schemas/UrlLinkResponse" + } + } } }, "security": [ @@ -14533,179 +15018,219 @@ } ], "source": { - "rawPath": "/micontrol/v2/runs/{run_id}/recover", + "rawPath": "/share/urlLink", "service": "backend-app", "servicePath": "/api/backend-app" }, - "summary": null, + "summary": "生成微信 URLLink(wxaurl.cn/...)用于分享", "tags": [ - "micontrol" + "share" ] - }, - "runsStream": { - "description": "", - "httpMethod": "POST", - "operationId": "micontrol_v2_runs:stream_create", - "parameters": [], - "path": "/api/backend-app/micontrol/v2/runs:stream", + } + } + }, + "specialTask": { + "methods": { + "byTag": { + "description": "Get task by tag", + "httpMethod": "GET", + "operationId": "special_task_by_tag_retrieve", + "parameters": [ + { + "description": null, + "location": "query", + "name": "task_tag", + "required": true, + "schema": { + "type": "string" + } + } + ], + "path": "/api/backend-app/special_task/by_tag", "pathParameters": [], - "queryParameters": [], + "queryParameters": [ + "task_tag" + ], "requestBody": null, "responses": { "200": { - "contentTypes": [], - "description": "No response body", - "schema": {} + "contentTypes": [ + "application/json" + ], + "description": "", + "schema": { + "application/json": { + "$ref": "#/components/schemas/TaskDefResponse" + } + } + }, + "404": { + "contentTypes": [ + "application/json" + ], + "description": "", + "schema": { + "application/json": { + "$ref": "#/components/schemas/ErrorResponse" + } + } } }, "security": [ { "bearerAuth": [] - } + }, + {} ], "source": { - "rawPath": "/micontrol/v2/runs:stream", + "rawPath": "/special_task/by_tag", "service": "backend-app", "servicePath": "/api/backend-app" }, - "summary": null, + "summary": "Get task by tag", "tags": [ - "micontrol" + "SpecialTask" ] }, - "runsTasks": { - "description": "", + "detail": { + "description": "Get task detail", "httpMethod": "GET", - "operationId": "micontrol_v2_runs_tasks_retrieve", + "operationId": "special_task_retrieve", "parameters": [ { "description": null, "location": "path", - "name": "run_id", + "name": "task_id", "required": true, "schema": { - "format": "uuid", "type": "string" } } ], - "path": "/api/backend-app/micontrol/v2/runs/{run_id}/tasks", + "path": "/api/backend-app/special_task/{task_id}", "pathParameters": [ - "run_id" + "task_id" ], "queryParameters": [], "requestBody": null, "responses": { "200": { - "contentTypes": [], - "description": "No response body", - "schema": {} + "contentTypes": [ + "application/json" + ], + "description": "", + "schema": { + "application/json": { + "$ref": "#/components/schemas/TaskDefResponse" + } + } + }, + "404": { + "contentTypes": [ + "application/json" + ], + "description": "", + "schema": { + "application/json": { + "$ref": "#/components/schemas/ErrorResponse" + } + } } }, "security": [ { "bearerAuth": [] - } + }, + {} ], "source": { - "rawPath": "/micontrol/v2/runs/{run_id}/tasks", + "rawPath": "/special_task/{task_id}", "service": "backend-app", "servicePath": "/api/backend-app" }, - "summary": null, + "summary": "Get task detail", "tags": [ - "micontrol" + "SpecialTask" ] - } - } - }, - "mobile": { - "methods": { - "apkLatest": { - "description": "Download latest Android APK (public)", - "httpMethod": "GET", - "operationId": "api_mobile_apk_latest_retrieve", + }, + "enroll": { + "description": "Enroll task (idempotent)", + "httpMethod": "POST", + "operationId": "special_task_enroll_create", "parameters": [ { - "description": "APK brand: chek / autohomechek", - "location": "query", - "name": "brand", - "required": true, - "schema": { - "type": "string" - } - }, - { - "description": "Target environment: dev/staging/prod", - "location": "query", - "name": "env", + "description": null, + "location": "path", + "name": "task_id", "required": true, "schema": { "type": "string" } - }, - { - "description": "redirect=1 (default): 302 to latest_download_url; redirect=0: return JSON manifest", - "location": "query", - "name": "redirect", - "required": false, - "schema": { - "type": "integer" - } } ], - "path": "/api/backend-app/api/mobile/apk/latest", - "pathParameters": [], - "queryParameters": [ - "brand", - "env", - "redirect" + "path": "/api/backend-app/special_task/{task_id}/enroll", + "pathParameters": [ + "task_id" ], - "requestBody": null, + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json", + "application/x-www-form-urlencoded", + "multipart/form-data" + ], + "required": false, + "schema": { + "application/json": { + "$ref": "#/components/schemas/EnrollRequestRequest" + }, + "application/x-www-form-urlencoded": { + "$ref": "#/components/schemas/EnrollRequestRequest" + }, + "multipart/form-data": { + "$ref": "#/components/schemas/EnrollRequestRequest" + } + } + }, "responses": { "200": { "contentTypes": [ "application/json" ], - "description": "Latest manifest (JSON)", + "description": "", "schema": { "application/json": { - "$ref": "#/components/schemas/MobileApkLatestResponse" + "$ref": "#/components/schemas/EnrollResponse" } } }, - "302": { - "contentTypes": [], - "description": "Redirect to latest APK download URL", - "schema": {} - }, "400": { "contentTypes": [ "application/json" ], - "description": "Bad request", + "description": "", "schema": { "application/json": { "$ref": "#/components/schemas/ErrorResponse" } } }, - "404": { + "401": { "contentTypes": [ "application/json" ], - "description": "Manifest not found", + "description": "", "schema": { "application/json": { "$ref": "#/components/schemas/ErrorResponse" } } }, - "500": { + "404": { "contentTypes": [ "application/json" ], - "description": "Internal error", + "description": "", "schema": { "application/json": { "$ref": "#/components/schemas/ErrorResponse" @@ -14716,81 +15241,164 @@ "security": [ { "bearerAuth": [] - }, - {} + } ], "source": { - "rawPath": "/api/mobile/apk/latest", + "rawPath": "/special_task/{task_id}/enroll", "service": "backend-app", "servicePath": "/api/backend-app" }, - "summary": "Download latest Android APK (public)", + "summary": "Enroll task (idempotent)", "tags": [ - "Mobile" + "SpecialTask" ] - } - } - }, - "observability": { - "methods": { - "batches": { - "description": "", + }, + "leaderboard": { + "description": "Leaderboard", "httpMethod": "GET", - "operationId": "api_observability_v1_batches_retrieve", - "parameters": [], - "path": "/api/backend-app/api/observability/v1/batches", - "pathParameters": [], - "queryParameters": [], + "operationId": "special_task_leaderboard_retrieve", + "parameters": [ + { + "description": null, + "location": "query", + "name": "cursor", + "required": false, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "limit", + "required": false, + "schema": { + "type": "integer" + } + }, + { + "description": null, + "location": "query", + "name": "metric", + "required": false, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "path", + "name": "task_id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "path": "/api/backend-app/special_task/{task_id}/leaderboard", + "pathParameters": [ + "task_id" + ], + "queryParameters": [ + "cursor", + "limit", + "metric" + ], "requestBody": null, "responses": { "200": { - "contentTypes": [], - "description": "No response body", - "schema": {} + "contentTypes": [ + "application/json" + ], + "description": "", + "schema": { + "application/json": { + "$ref": "#/components/schemas/LeaderboardResponse" + } + } + }, + "404": { + "contentTypes": [ + "application/json" + ], + "description": "", + "schema": { + "application/json": { + "$ref": "#/components/schemas/ErrorResponse" + } + } } }, "security": [ { "bearerAuth": [] - } + }, + {} ], "source": { - "rawPath": "/api/observability/v1/batches", + "rawPath": "/special_task/{task_id}/leaderboard", "service": "backend-app", "servicePath": "/api/backend-app" }, - "summary": null, + "summary": "Leaderboard", "tags": [ - "api" + "SpecialTask" ] }, - "batchesGet": { - "description": "", + "me": { + "description": "Get my enrollment and progress", "httpMethod": "GET", - "operationId": "api_observability_v1_batches_retrieve_2", + "operationId": "special_task_me_retrieve", "parameters": [ { "description": null, "location": "path", - "name": "batch_id", + "name": "task_id", "required": true, "schema": { - "format": "uuid", "type": "string" } } ], - "path": "/api/backend-app/api/observability/v1/batches/{batch_id}", + "path": "/api/backend-app/special_task/{task_id}/me", "pathParameters": [ - "batch_id" + "task_id" ], "queryParameters": [], "requestBody": null, "responses": { "200": { - "contentTypes": [], - "description": "No response body", - "schema": {} + "contentTypes": [ + "application/json" + ], + "description": "", + "schema": { + "application/json": { + "$ref": "#/components/schemas/MeResponse" + } + } + }, + "401": { + "contentTypes": [ + "application/json" + ], + "description": "", + "schema": { + "application/json": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + }, + "404": { + "contentTypes": [ + "application/json" + ], + "description": "", + "schema": { + "application/json": { + "$ref": "#/components/schemas/ErrorResponse" + } + } } }, "security": [ @@ -14799,283 +15407,156 @@ } ], "source": { - "rawPath": "/api/observability/v1/batches/{batch_id}", + "rawPath": "/special_task/{task_id}/me", "service": "backend-app", "servicePath": "/api/backend-app" }, - "summary": null, + "summary": "Get my enrollment and progress", "tags": [ - "api" + "SpecialTask" ] }, - "batchesPost": { - "description": "", - "httpMethod": "POST", - "operationId": "api_observability_v1_batches_create", - "parameters": [], - "path": "/api/backend-app/api/observability/v1/batches", + "meEnrollments": { + "description": "List my task enrollments", + "httpMethod": "GET", + "operationId": "special_task_me_enrollments_retrieve", + "parameters": [ + { + "description": "active=1: only tasks with status=active AND now in [start_at,end_at]", + "location": "query", + "name": "active", + "required": false, + "schema": { + "type": "integer" + } + }, + { + "description": "include_expired=1: include tasks whose end_at < now (ignored when active=1)", + "location": "query", + "name": "include_expired", + "required": false, + "schema": { + "type": "integer" + } + }, + { + "description": null, + "location": "query", + "name": "limit", + "required": false, + "schema": { + "type": "integer" + } + }, + { + "description": null, + "location": "query", + "name": "offset", + "required": false, + "schema": { + "type": "integer" + } + }, + { + "description": "Filter by task status enum (0=draft,1=active,2=ended,3=disabled)", + "location": "query", + "name": "status", + "required": false, + "schema": { + "type": "integer" + } + } + ], + "path": "/api/backend-app/special_task/me/enrollments", "pathParameters": [], - "queryParameters": [], + "queryParameters": [ + "active", + "include_expired", + "limit", + "offset", + "status" + ], "requestBody": null, "responses": { "200": { - "contentTypes": [], - "description": "No response body", - "schema": {} + "contentTypes": [ + "application/json" + ], + "description": "", + "schema": { + "application/json": { + "$ref": "#/components/schemas/MeEnrollmentsResponse" + } + } + }, + "401": { + "contentTypes": [ + "application/json" + ], + "description": "", + "schema": { + "application/json": { + "$ref": "#/components/schemas/ErrorResponse" + } + } } }, "security": [ { "bearerAuth": [] - }, - {} + } ], "source": { - "rawPath": "/api/observability/v1/batches", + "rawPath": "/special_task/me/enrollments", "service": "backend-app", "servicePath": "/api/backend-app" }, - "summary": null, + "summary": "List my task enrollments", "tags": [ - "api" + "SpecialTask" ] }, - "batchesRaw": { - "description": "", + "stats": { + "description": "Task stats", "httpMethod": "GET", - "operationId": "api_observability_v1_batches_raw_retrieve", + "operationId": "special_task_stats_retrieve", "parameters": [ { "description": null, "location": "path", - "name": "batch_id", + "name": "task_id", "required": true, "schema": { - "format": "uuid", "type": "string" } } ], - "path": "/api/backend-app/api/observability/v1/batches/{batch_id}/raw", + "path": "/api/backend-app/special_task/{task_id}/stats", "pathParameters": [ - "batch_id" + "task_id" ], "queryParameters": [], "requestBody": null, "responses": { "200": { - "contentTypes": [], - "description": "No response body", - "schema": {} - } - }, - "security": [ - { - "bearerAuth": [] - } - ], - "source": { - "rawPath": "/api/observability/v1/batches/{batch_id}/raw", - "service": "backend-app", - "servicePath": "/api/backend-app" - }, - "summary": null, - "tags": [ - "api" - ] - }, - "events": { - "description": "", - "httpMethod": "GET", - "operationId": "api_observability_v1_events_retrieve", - "parameters": [], - "path": "/api/backend-app/api/observability/v1/events", - "pathParameters": [], - "queryParameters": [], - "requestBody": null, - "responses": { - "200": { - "contentTypes": [], - "description": "No response body", - "schema": {} - } - }, - "security": [ - { - "bearerAuth": [] - } - ], - "source": { - "rawPath": "/api/observability/v1/events", - "service": "backend-app", - "servicePath": "/api/backend-app" - }, - "summary": null, - "tags": [ - "api" - ] - } - } - }, - "openapiJson": { - "methods": { - "list": { - "description": "OpenApi3 schema for this API. Format can be selected via content negotiation.\n\n- YAML: application/vnd.oai.openapi\n- JSON: application/vnd.oai.openapi+json", - "httpMethod": "GET", - "operationId": "openapi.json_retrieve", - "parameters": [ - { - "description": null, - "location": "query", - "name": "format", - "required": false, + "contentTypes": [ + "application/json" + ], + "description": "", "schema": { - "enum": [ - "json", - "yaml" - ], - "type": "string" + "application/json": { + "$ref": "#/components/schemas/StatsResponse" + } } }, - { - "description": null, - "location": "query", - "name": "lang", - "required": false, - "schema": { - "enum": [ - "af", - "ar", - "ar-dz", - "ast", - "az", - "be", - "bg", - "bn", - "br", - "bs", - "ca", - "ckb", - "cs", - "cy", - "da", - "de", - "dsb", - "el", - "en", - "en-au", - "en-gb", - "eo", - "es", - "es-ar", - "es-co", - "es-mx", - "es-ni", - "es-ve", - "et", - "eu", - "fa", - "fi", - "fr", - "fy", - "ga", - "gd", - "gl", - "he", - "hi", - "hr", - "hsb", - "hu", - "hy", - "ia", - "id", - "ig", - "io", - "is", - "it", - "ja", - "ka", - "kab", - "kk", - "km", - "kn", - "ko", - "ky", - "lb", - "lt", - "lv", - "mk", - "ml", - "mn", - "mr", - "ms", - "my", - "nb", - "ne", - "nl", - "nn", - "os", - "pa", - "pl", - "pt", - "pt-br", - "ro", - "ru", - "sk", - "sl", - "sq", - "sr", - "sr-latn", - "sv", - "sw", - "ta", - "te", - "tg", - "th", - "tk", - "tr", - "tt", - "udm", - "ug", - "uk", - "ur", - "uz", - "vi", - "zh-hans", - "zh-hant" - ], - "type": "string" - } - } - ], - "path": "/api/backend-app/openapi.json", - "pathParameters": [], - "queryParameters": [ - "format", - "lang" - ], - "requestBody": null, - "responses": { - "200": { + "404": { "contentTypes": [ - "application/json", - "application/vnd.oai.openapi", - "application/vnd.oai.openapi+json", - "application/yaml" + "application/json" ], "description": "", "schema": { "application/json": { - "type": "object" - }, - "application/vnd.oai.openapi": { - "type": "object" - }, - "application/vnd.oai.openapi+json": { - "type": "object" - }, - "application/yaml": { - "type": "object" + "$ref": "#/components/schemas/ErrorResponse" } } } @@ -15087,176 +15568,76 @@ {} ], "source": { - "rawPath": "/openapi.json", + "rawPath": "/special_task/{task_id}/stats", "service": "backend-app", "servicePath": "/api/backend-app" }, - "summary": null, + "summary": "Task stats", "tags": [ - "openapi.json" + "SpecialTask" ] } } }, - "schema": { + "updateModelConfigApp": { "methods": { - "list": { - "description": "OpenApi3 schema for this API. Format can be selected via content negotiation.\n\n- YAML: application/vnd.oai.openapi\n- JSON: application/vnd.oai.openapi+json", - "httpMethod": "GET", - "operationId": "schema_retrieve", + "create": { + "description": "更新设备配置数据", + "httpMethod": "POST", + "operationId": "api_update_model_config_app_create", "parameters": [ { - "description": null, - "location": "query", - "name": "format", - "required": false, - "schema": { - "enum": [ - "json", - "yaml" - ], - "type": "string" - } - }, - { - "description": null, - "location": "query", - "name": "lang", - "required": false, + "description": "认证令牌,格式为:Bearer ", + "location": "header", + "name": "Authorization", + "required": true, "schema": { - "enum": [ - "af", - "ar", - "ar-dz", - "ast", - "az", - "be", - "bg", - "bn", - "br", - "bs", - "ca", - "ckb", - "cs", - "cy", - "da", - "de", - "dsb", - "el", - "en", - "en-au", - "en-gb", - "eo", - "es", - "es-ar", - "es-co", - "es-mx", - "es-ni", - "es-ve", - "et", - "eu", - "fa", - "fi", - "fr", - "fy", - "ga", - "gd", - "gl", - "he", - "hi", - "hr", - "hsb", - "hu", - "hy", - "ia", - "id", - "ig", - "io", - "is", - "it", - "ja", - "ka", - "kab", - "kk", - "km", - "kn", - "ko", - "ky", - "lb", - "lt", - "lv", - "mk", - "ml", - "mn", - "mr", - "ms", - "my", - "nb", - "ne", - "nl", - "nn", - "os", - "pa", - "pl", - "pt", - "pt-br", - "ro", - "ru", - "sk", - "sl", - "sq", - "sr", - "sr-latn", - "sv", - "sw", - "ta", - "te", - "tg", - "th", - "tk", - "tr", - "tt", - "udm", - "ug", - "uk", - "ur", - "uz", - "vi", - "zh-hans", - "zh-hant" - ], "type": "string" } } ], - "path": "/api/backend-app/schema/", + "path": "/api/backend-app/api/update_model_config_app", "pathParameters": [], - "queryParameters": [ - "format", - "lang" - ], - "requestBody": null, + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json", + "application/x-www-form-urlencoded", + "multipart/form-data" + ], + "required": false, + "schema": { + "application/json": { + "$ref": "#/components/schemas/ModelConfigUpdateRequestRequest" + }, + "application/x-www-form-urlencoded": { + "$ref": "#/components/schemas/ModelConfigUpdateRequestRequest" + }, + "multipart/form-data": { + "$ref": "#/components/schemas/ModelConfigUpdateRequestRequest" + } + } + }, "responses": { "200": { "contentTypes": [ - "application/json", - "application/vnd.oai.openapi", - "application/vnd.oai.openapi+json", - "application/yaml" + "application/json" ], - "description": "", + "description": "处理成功", "schema": { "application/json": { - "type": "object" - }, - "application/vnd.oai.openapi": { - "type": "object" - }, - "application/vnd.oai.openapi+json": { - "type": "object" - }, - "application/yaml": { - "type": "object" + "$ref": "#/components/schemas/SuccessfulResponse" + } + } + }, + "500": { + "contentTypes": [ + "application/json" + ], + "description": "内部服务错误", + "schema": { + "application/json": { + "$ref": "#/components/schemas/ErrorResponse" } } } @@ -15264,29 +15645,28 @@ "security": [ { "bearerAuth": [] - }, - {} + } ], "source": { - "rawPath": "/schema/", + "rawPath": "/api/update_model_config_app", "service": "backend-app", "servicePath": "/api/backend-app" }, - "summary": null, + "summary": "更新设备配置数据", "tags": [ - "schema" + "车型" ] } } }, - "searchModelInfo": { + "updateModelTos": { "methods": { "create": { - "description": "获取车型版本", + "description": "上传模型", "httpMethod": "POST", - "operationId": "api_search_model_info_create", + "operationId": "api_update_model_tos_create", "parameters": [], - "path": "/api/backend-app/api/search_model_info", + "path": "/api/backend-app/api/update_model_tos", "pathParameters": [], "queryParameters": [], "requestBody": { @@ -15298,13 +15678,13 @@ "required": true, "schema": { "application/json": { - "$ref": "#/components/schemas/ModelConfigSearchModelTosRequest" + "$ref": "#/components/schemas/ModelConfigUpdateModelTosRequest" }, "application/x-www-form-urlencoded": { - "$ref": "#/components/schemas/ModelConfigSearchModelTosRequest" + "$ref": "#/components/schemas/ModelConfigUpdateModelTosRequest" }, "multipart/form-data": { - "$ref": "#/components/schemas/ModelConfigSearchModelTosRequest" + "$ref": "#/components/schemas/ModelConfigUpdateModelTosRequest" } } }, @@ -15313,7 +15693,7 @@ "contentTypes": [ "application/json" ], - "description": "成功", + "description": "模型上传成功", "schema": { "application/json": { "$ref": "#/components/schemas/SuccessfulResponse" @@ -15324,7 +15704,7 @@ "contentTypes": [ "application/json" ], - "description": "车型缺失", + "description": "参数错误/数据缺失", "schema": { "application/json": { "$ref": "#/components/schemas/SuccessfulResponse" @@ -15346,39 +15726,28 @@ "security": [ { "bearerAuth": [] - }, - {} + } ], "source": { - "rawPath": "/api/search_model_info", + "rawPath": "/api/update_model_tos", "service": "backend-app", "servicePath": "/api/backend-app" }, - "summary": "获取车型版本", + "summary": "上传模型", "tags": [ - "车型" + "模型" ] } } }, - "searchModelTos": { + "updateVersionVault": { "methods": { "create": { - "description": "查询模型tos路径", + "description": "上传版本信息", "httpMethod": "POST", - "operationId": "api_search_model_tos_create", - "parameters": [ - { - "description": "认证令牌,格式为:Bearer ", - "location": "header", - "name": "Authorization", - "required": true, - "schema": { - "type": "string" - } - } - ], - "path": "/api/backend-app/api/search_model_tos", + "operationId": "api_update_version_vault_create", + "parameters": [], + "path": "/api/backend-app/api/update_version_vault", "pathParameters": [], "queryParameters": [], "requestBody": { @@ -15387,16 +15756,16 @@ "application/x-www-form-urlencoded", "multipart/form-data" ], - "required": false, + "required": true, "schema": { "application/json": { - "$ref": "#/components/schemas/ModelConfigUpdateRequestRequest" + "$ref": "#/components/schemas/ModelConfigUpdateModelTosRequest" }, "application/x-www-form-urlencoded": { - "$ref": "#/components/schemas/ModelConfigUpdateRequestRequest" + "$ref": "#/components/schemas/ModelConfigUpdateModelTosRequest" }, "multipart/form-data": { - "$ref": "#/components/schemas/ModelConfigUpdateRequestRequest" + "$ref": "#/components/schemas/ModelConfigUpdateModelTosRequest" } } }, @@ -15405,10 +15774,10 @@ "contentTypes": [ "application/json" ], - "description": "成功", + "description": "版本号上传成功", "schema": { "application/json": { - "$ref": "#/components/schemas/searchModelTosResponse" + "$ref": "#/components/schemas/SuccessfulResponse" } } }, @@ -15416,7 +15785,7 @@ "contentTypes": [ "application/json" ], - "description": "未查询到该数据", + "description": "数据缺失", "schema": { "application/json": { "$ref": "#/components/schemas/SuccessfulResponse" @@ -15441,57 +15810,33 @@ } ], "source": { - "rawPath": "/api/search_model_tos", + "rawPath": "/api/update_version_vault", "service": "backend-app", "servicePath": "/api/backend-app" }, - "summary": "查询模型tos路径", + "summary": "上传版本信息", "tags": [ - "模型" + "版本包" ] } } }, - "share": { + "watch": { "methods": { - "urlLink": { - "description": "生成微信 URLLink(wxaurl.cn/...)用于分享", - "httpMethod": "POST", - "operationId": "share_urlLink_create", + "list": { + "description": "", + "httpMethod": "GET", + "operationId": "watch_v1_list_retrieve", "parameters": [], - "path": "/api/backend-app/share/urlLink", + "path": "/api/backend-app/watch/v1/list", "pathParameters": [], "queryParameters": [], - "requestBody": { - "contentTypes": [ - "application/json", - "application/x-www-form-urlencoded", - "multipart/form-data" - ], - "required": true, - "schema": { - "application/json": { - "$ref": "#/components/schemas/UrlLinkRequestRequest" - }, - "application/x-www-form-urlencoded": { - "$ref": "#/components/schemas/UrlLinkRequestRequest" - }, - "multipart/form-data": { - "$ref": "#/components/schemas/UrlLinkRequestRequest" - } - } - }, + "requestBody": null, "responses": { "200": { - "contentTypes": [ - "application/json" - ], - "description": "", - "schema": { - "application/json": { - "$ref": "#/components/schemas/UrlLinkResponse" - } - } + "contentTypes": [], + "description": "No response body", + "schema": {} } }, "security": [ @@ -15500,882 +15845,250 @@ } ], "source": { - "rawPath": "/share/urlLink", + "rawPath": "/watch/v1/list", "service": "backend-app", "servicePath": "/api/backend-app" }, - "summary": "生成微信 URLLink(wxaurl.cn/...)用于分享", + "summary": null, "tags": [ - "share" + "watch" ] - } - } - }, - "specialTask": { - "methods": { - "byTag": { - "description": "Get task by tag", - "httpMethod": "GET", - "operationId": "special_task_by_tag_retrieve", - "parameters": [ - { - "description": null, - "location": "query", - "name": "task_tag", - "required": true, - "schema": { - "type": "string" - } - } - ], - "path": "/api/backend-app/special_task/by_tag", + }, + "toggle": { + "description": "", + "httpMethod": "POST", + "operationId": "watch_v1_toggle_create", + "parameters": [], + "path": "/api/backend-app/watch/v1/toggle", "pathParameters": [], - "queryParameters": [ - "task_tag" - ], + "queryParameters": [], "requestBody": null, "responses": { "200": { - "contentTypes": [ - "application/json" - ], - "description": "", - "schema": { - "application/json": { - "$ref": "#/components/schemas/TaskDefResponse" - } - } - }, - "404": { - "contentTypes": [ - "application/json" - ], - "description": "", - "schema": { - "application/json": { - "$ref": "#/components/schemas/ErrorResponse" - } - } + "contentTypes": [], + "description": "No response body", + "schema": {} } }, "security": [ { "bearerAuth": [] - }, - {} + } ], "source": { - "rawPath": "/special_task/by_tag", + "rawPath": "/watch/v1/toggle", "service": "backend-app", "servicePath": "/api/backend-app" }, - "summary": "Get task by tag", + "summary": null, "tags": [ - "SpecialTask" + "watch" ] + } + } + } + }, + "servicePath": "/api/backend-app", + "title": "backend-app" + }, + "backend-saas": { + "components": { + "schemas": { + "AppJourneyMetricDebugDTO": { + "properties": { + "eligibleRawSample": { + "format": "int64", + "type": "integer" + }, + "eligibleWeightedSample": { + "type": "number" + }, + "journeyId": { + "type": "string" + }, + "latestIndexUpdatedAt": { + "type": "string" + }, + "metricCode": { + "type": "string" + }, + "metricName": { + "type": "string" + }, + "metricValue": { + "type": "number" + }, + "scene": { + "type": "string" + }, + "sortDirection": { + "type": "string" + }, + "sourceType": { + "type": "string" + }, + "sourceWeight": { + "type": "number" + }, + "status": { + "type": "string" + }, + "surpassPercent": { + "type": "number" + }, + "tieWeightedSample": { + "type": "number" + }, + "worseWeightedSample": { + "type": "number" + } }, - "detail": { - "description": "Get task detail", - "httpMethod": "GET", - "operationId": "special_task_retrieve", - "parameters": [ - { - "description": null, - "location": "path", - "name": "task_id", - "required": true, - "schema": { - "type": "string" - } - } - ], - "path": "/api/backend-app/special_task/{task_id}", - "pathParameters": [ - "task_id" - ], - "queryParameters": [], - "requestBody": null, - "responses": { - "200": { - "contentTypes": [ - "application/json" - ], - "description": "", - "schema": { - "application/json": { - "$ref": "#/components/schemas/TaskDefResponse" - } - } - }, - "404": { - "contentTypes": [ - "application/json" - ], - "description": "", - "schema": { - "application/json": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } + "type": "object" + }, + "AppJourneyMetricRankDetailDTO": { + "properties": { + "brand": { + "type": "string" }, - "security": [ - { - "bearerAuth": [] + "generatedAt": { + "type": "string" + }, + "hardwareConfig": { + "type": "string" + }, + "journeyEndTime": { + "type": "string" + }, + "journeyId": { + "type": "string" + }, + "journeyStartTime": { + "type": "string" + }, + "model": { + "type": "string" + }, + "refreshState": { + "type": "string" + }, + "sceneRanks": { + "items": { + "$ref": "#/components/schemas/AppJourneyMetricSceneRankDTO" }, - {} - ], - "source": { - "rawPath": "/special_task/{task_id}", - "service": "backend-app", - "servicePath": "/api/backend-app" + "type": "array" }, - "summary": "Get task detail", - "tags": [ - "SpecialTask" - ] + "softwareConfig": { + "type": "string" + }, + "sourceType": { + "type": "string" + }, + "sourceWeight": { + "type": "number" + }, + "specialPointMode": { + "format": "int32", + "type": "integer" + }, + "vehicleId": { + "type": "string" + } }, - "enroll": { - "description": "Enroll task (idempotent)", - "httpMethod": "POST", - "operationId": "special_task_enroll_create", - "parameters": [ - { - "description": null, - "location": "path", - "name": "task_id", - "required": true, - "schema": { - "type": "string" - } - } - ], - "path": "/api/backend-app/special_task/{task_id}/enroll", - "pathParameters": [ - "task_id" - ], - "queryParameters": [], - "requestBody": { - "contentTypes": [ - "application/json", - "application/x-www-form-urlencoded", - "multipart/form-data" - ], - "required": false, - "schema": { - "application/json": { - "$ref": "#/components/schemas/EnrollRequestRequest" - }, - "application/x-www-form-urlencoded": { - "$ref": "#/components/schemas/EnrollRequestRequest" - }, - "multipart/form-data": { - "$ref": "#/components/schemas/EnrollRequestRequest" - } - } + "type": "object" + }, + "AppJourneyMetricRankItemDTO": { + "properties": { + "debugInfo": { + "type": "object" }, - "responses": { - "200": { - "contentTypes": [ - "application/json" - ], - "description": "", - "schema": { - "application/json": { - "$ref": "#/components/schemas/EnrollResponse" - } - } - }, - "400": { - "contentTypes": [ - "application/json" - ], - "description": "", - "schema": { - "application/json": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - }, - "401": { - "contentTypes": [ - "application/json" - ], - "description": "", - "schema": { - "application/json": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - }, - "404": { - "contentTypes": [ - "application/json" - ], - "description": "", - "schema": { - "application/json": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } + "eligibleRawSample": { + "format": "int64", + "type": "integer" }, - "security": [ - { - "bearerAuth": [] - } - ], - "source": { - "rawPath": "/special_task/{task_id}/enroll", - "service": "backend-app", - "servicePath": "/api/backend-app" + "eligibleWeightedSample": { + "type": "number" }, - "summary": "Enroll task (idempotent)", - "tags": [ - "SpecialTask" - ] + "metricCode": { + "type": "string" + }, + "metricName": { + "type": "string" + }, + "metricValue": { + "type": "number" + }, + "sortDirection": { + "type": "string" + }, + "status": { + "type": "string" + }, + "surpassPercent": { + "type": "number" + } }, - "leaderboard": { - "description": "Leaderboard", - "httpMethod": "GET", - "operationId": "special_task_leaderboard_retrieve", - "parameters": [ - { - "description": null, - "location": "query", - "name": "cursor", - "required": false, - "schema": { - "type": "string" - } - }, - { - "description": null, - "location": "query", - "name": "limit", - "required": false, - "schema": { - "type": "integer" - } - }, - { - "description": null, - "location": "query", - "name": "metric", - "required": false, - "schema": { - "type": "string" - } - }, - { - "description": null, - "location": "path", - "name": "task_id", - "required": true, - "schema": { - "type": "string" - } - } - ], - "path": "/api/backend-app/special_task/{task_id}/leaderboard", - "pathParameters": [ - "task_id" - ], - "queryParameters": [ - "cursor", - "limit", - "metric" - ], - "requestBody": null, - "responses": { - "200": { - "contentTypes": [ - "application/json" - ], - "description": "", - "schema": { - "application/json": { - "$ref": "#/components/schemas/LeaderboardResponse" - } - } - }, - "404": { - "contentTypes": [ - "application/json" - ], - "description": "", - "schema": { - "application/json": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } + "type": "object" + }, + "AppJourneyMetricRebuildRequest": { + "properties": { + "force": { + "type": "boolean" }, - "security": [ - { - "bearerAuth": [] + "journeyIds": { + "items": { + "type": "string" }, - {} - ], - "source": { - "rawPath": "/special_task/{task_id}/leaderboard", - "service": "backend-app", - "servicePath": "/api/backend-app" + "type": "array" }, - "summary": "Leaderboard", - "tags": [ - "SpecialTask" - ] + "scope": { + "type": "string" + } }, - "me": { - "description": "Get my enrollment and progress", - "httpMethod": "GET", - "operationId": "special_task_me_retrieve", - "parameters": [ - { - "description": null, - "location": "path", - "name": "task_id", - "required": true, - "schema": { - "type": "string" - } - } - ], - "path": "/api/backend-app/special_task/{task_id}/me", - "pathParameters": [ - "task_id" - ], - "queryParameters": [], - "requestBody": null, - "responses": { - "200": { - "contentTypes": [ - "application/json" - ], - "description": "", - "schema": { - "application/json": { - "$ref": "#/components/schemas/MeResponse" - } - } - }, - "401": { - "contentTypes": [ - "application/json" - ], - "description": "", - "schema": { - "application/json": { - "$ref": "#/components/schemas/ErrorResponse" - } - } + "type": "object" + }, + "AppJourneyMetricRebuildResultDTO": { + "properties": { + "failedCount": { + "format": "int32", + "type": "integer" + }, + "failedJourneyIds": { + "items": { + "type": "string" }, - "404": { - "contentTypes": [ - "application/json" - ], - "description": "", - "schema": { - "application/json": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } + "type": "array" }, - "security": [ - { - "bearerAuth": [] - } - ], - "source": { - "rawPath": "/special_task/{task_id}/me", - "service": "backend-app", - "servicePath": "/api/backend-app" - }, - "summary": "Get my enrollment and progress", - "tags": [ - "SpecialTask" - ] - }, - "meEnrollments": { - "description": "List my task enrollments", - "httpMethod": "GET", - "operationId": "special_task_me_enrollments_retrieve", - "parameters": [ - { - "description": "active=1: only tasks with status=active AND now in [start_at,end_at]", - "location": "query", - "name": "active", - "required": false, - "schema": { - "type": "integer" - } - }, - { - "description": "include_expired=1: include tasks whose end_at < now (ignored when active=1)", - "location": "query", - "name": "include_expired", - "required": false, - "schema": { - "type": "integer" - } - }, - { - "description": null, - "location": "query", - "name": "limit", - "required": false, - "schema": { - "type": "integer" - } - }, - { - "description": null, - "location": "query", - "name": "offset", - "required": false, - "schema": { - "type": "integer" - } - }, - { - "description": "Filter by task status enum (0=draft,1=active,2=ended,3=disabled)", - "location": "query", - "name": "status", - "required": false, - "schema": { - "type": "integer" - } - } - ], - "path": "/api/backend-app/special_task/me/enrollments", - "pathParameters": [], - "queryParameters": [ - "active", - "include_expired", - "limit", - "offset", - "status" - ], - "requestBody": null, - "responses": { - "200": { - "contentTypes": [ - "application/json" - ], - "description": "", - "schema": { - "application/json": { - "$ref": "#/components/schemas/MeEnrollmentsResponse" - } - } - }, - "401": { - "contentTypes": [ - "application/json" - ], - "description": "", - "schema": { - "application/json": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } + "inputCount": { + "format": "int32", + "type": "integer" }, - "security": [ - { - "bearerAuth": [] - } - ], - "source": { - "rawPath": "/special_task/me/enrollments", - "service": "backend-app", - "servicePath": "/api/backend-app" + "scope": { + "type": "string" }, - "summary": "List my task enrollments", - "tags": [ - "SpecialTask" - ] + "successCount": { + "format": "int32", + "type": "integer" + } }, - "stats": { - "description": "Task stats", - "httpMethod": "GET", - "operationId": "special_task_stats_retrieve", - "parameters": [ - { - "description": null, - "location": "path", - "name": "task_id", - "required": true, - "schema": { - "type": "string" - } - } - ], - "path": "/api/backend-app/special_task/{task_id}/stats", - "pathParameters": [ - "task_id" - ], - "queryParameters": [], - "requestBody": null, - "responses": { - "200": { - "contentTypes": [ - "application/json" - ], - "description": "", - "schema": { - "application/json": { - "$ref": "#/components/schemas/StatsResponse" - } - } - }, - "404": { - "contentTypes": [ - "application/json" - ], - "description": "", - "schema": { - "application/json": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "security": [ - { - "bearerAuth": [] - }, - {} - ], - "source": { - "rawPath": "/special_task/{task_id}/stats", - "service": "backend-app", - "servicePath": "/api/backend-app" - }, - "summary": "Task stats", - "tags": [ - "SpecialTask" - ] - } - } - }, - "updateModelConfigApp": { - "methods": { - "create": { - "description": "更新设备配置数据", - "httpMethod": "POST", - "operationId": "api_update_model_config_app_create", - "parameters": [ - { - "description": "认证令牌,格式为:Bearer ", - "location": "header", - "name": "Authorization", - "required": true, - "schema": { - "type": "string" - } - } - ], - "path": "/api/backend-app/api/update_model_config_app", - "pathParameters": [], - "queryParameters": [], - "requestBody": { - "contentTypes": [ - "application/json", - "application/x-www-form-urlencoded", - "multipart/form-data" - ], - "required": false, - "schema": { - "application/json": { - "$ref": "#/components/schemas/ModelConfigUpdateRequestRequest" - }, - "application/x-www-form-urlencoded": { - "$ref": "#/components/schemas/ModelConfigUpdateRequestRequest" - }, - "multipart/form-data": { - "$ref": "#/components/schemas/ModelConfigUpdateRequestRequest" - } - } - }, - "responses": { - "200": { - "contentTypes": [ - "application/json" - ], - "description": "处理成功", - "schema": { - "application/json": { - "$ref": "#/components/schemas/SuccessfulResponse" - } - } - }, - "500": { - "contentTypes": [ - "application/json" - ], - "description": "内部服务错误", - "schema": { - "application/json": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "security": [ - { - "bearerAuth": [] - } - ], - "source": { - "rawPath": "/api/update_model_config_app", - "service": "backend-app", - "servicePath": "/api/backend-app" - }, - "summary": "更新设备配置数据", - "tags": [ - "车型" - ] - } - } - }, - "updateModelTos": { - "methods": { - "create": { - "description": "上传模型", - "httpMethod": "POST", - "operationId": "api_update_model_tos_create", - "parameters": [], - "path": "/api/backend-app/api/update_model_tos", - "pathParameters": [], - "queryParameters": [], - "requestBody": { - "contentTypes": [ - "application/json", - "application/x-www-form-urlencoded", - "multipart/form-data" - ], - "required": true, - "schema": { - "application/json": { - "$ref": "#/components/schemas/ModelConfigUpdateModelTosRequest" - }, - "application/x-www-form-urlencoded": { - "$ref": "#/components/schemas/ModelConfigUpdateModelTosRequest" - }, - "multipart/form-data": { - "$ref": "#/components/schemas/ModelConfigUpdateModelTosRequest" - } - } - }, - "responses": { - "200": { - "contentTypes": [ - "application/json" - ], - "description": "模型上传成功", - "schema": { - "application/json": { - "$ref": "#/components/schemas/SuccessfulResponse" - } - } - }, - "400": { - "contentTypes": [ - "application/json" - ], - "description": "参数错误/数据缺失", - "schema": { - "application/json": { - "$ref": "#/components/schemas/SuccessfulResponse" - } - } - }, - "500": { - "contentTypes": [ - "application/json" - ], - "description": "内部服务错误", - "schema": { - "application/json": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "security": [ - { - "bearerAuth": [] - } - ], - "source": { - "rawPath": "/api/update_model_tos", - "service": "backend-app", - "servicePath": "/api/backend-app" - }, - "summary": "上传模型", - "tags": [ - "模型" - ] - } - } - }, - "updateVersionVault": { - "methods": { - "create": { - "description": "上传版本信息", - "httpMethod": "POST", - "operationId": "api_update_version_vault_create", - "parameters": [], - "path": "/api/backend-app/api/update_version_vault", - "pathParameters": [], - "queryParameters": [], - "requestBody": { - "contentTypes": [ - "application/json", - "application/x-www-form-urlencoded", - "multipart/form-data" - ], - "required": true, - "schema": { - "application/json": { - "$ref": "#/components/schemas/ModelConfigUpdateModelTosRequest" - }, - "application/x-www-form-urlencoded": { - "$ref": "#/components/schemas/ModelConfigUpdateModelTosRequest" - }, - "multipart/form-data": { - "$ref": "#/components/schemas/ModelConfigUpdateModelTosRequest" - } - } + "type": "object" + }, + "AppJourneyMetricSceneRankDTO": { + "properties": { + "latestIndexUpdatedAt": { + "type": "string" }, - "responses": { - "200": { - "contentTypes": [ - "application/json" - ], - "description": "版本号上传成功", - "schema": { - "application/json": { - "$ref": "#/components/schemas/SuccessfulResponse" - } - } - }, - "400": { - "contentTypes": [ - "application/json" - ], - "description": "数据缺失", - "schema": { - "application/json": { - "$ref": "#/components/schemas/SuccessfulResponse" - } - } + "metrics": { + "items": { + "$ref": "#/components/schemas/AppJourneyMetricRankItemDTO" }, - "500": { - "contentTypes": [ - "application/json" - ], - "description": "内部服务错误", - "schema": { - "application/json": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "security": [ - { - "bearerAuth": [] - } - ], - "source": { - "rawPath": "/api/update_version_vault", - "service": "backend-app", - "servicePath": "/api/backend-app" - }, - "summary": "上传版本信息", - "tags": [ - "版本包" - ] - } - } - }, - "watch": { - "methods": { - "list": { - "description": "", - "httpMethod": "GET", - "operationId": "watch_v1_list_retrieve", - "parameters": [], - "path": "/api/backend-app/watch/v1/list", - "pathParameters": [], - "queryParameters": [], - "requestBody": null, - "responses": { - "200": { - "contentTypes": [], - "description": "No response body", - "schema": {} - } - }, - "security": [ - { - "bearerAuth": [] - } - ], - "source": { - "rawPath": "/watch/v1/list", - "service": "backend-app", - "servicePath": "/api/backend-app" + "type": "array" }, - "summary": null, - "tags": [ - "watch" - ] + "scene": { + "type": "string" + } }, - "toggle": { - "description": "", - "httpMethod": "POST", - "operationId": "watch_v1_toggle_create", - "parameters": [], - "path": "/api/backend-app/watch/v1/toggle", - "pathParameters": [], - "queryParameters": [], - "requestBody": null, - "responses": { - "200": { - "contentTypes": [], - "description": "No response body", - "schema": {} - } - }, - "security": [ - { - "bearerAuth": [] - } - ], - "source": { - "rawPath": "/watch/v1/toggle", - "service": "backend-app", - "servicePath": "/api/backend-app" - }, - "summary": null, - "tags": [ - "watch" - ] - } - } - } - }, - "servicePath": "/api/backend-app", - "title": "backend-app" - }, - "backend-saas": { - "components": { - "schemas": { + "type": "object" + }, "AppUserInfo": { "properties": { "id": { @@ -16513,6 +16226,9 @@ "scene": { "type": "string" }, + "sourceScope": { + "type": "string" + }, "specialPointMode": { "format": "int32", "type": "integer" @@ -16525,19 +16241,82 @@ }, "AppVehicleMetricRankItemDTO": { "properties": { - "brand": { - "type": "string" - }, - "dataConfidence": { + "autoAccAverage": { "type": "number" }, - "eligibleSourceCount": { + "autoAccAverageRank": { "format": "int32", "type": "integer" }, - "hardwareConfig": { + "autoAccAverageRankProportion": { + "type": "number" + }, + "autoDccAverage": { + "type": "number" + }, + "autoDccAverageRank": { + "format": "int32", + "type": "integer" + }, + "autoDccAverageRankProportion": { + "type": "number" + }, + "autoMileages": { + "type": "number" + }, + "autoMileagesRank": { + "format": "int32", + "type": "integer" + }, + "autoMileagesRankProportion": { + "type": "number" + }, + "autoSafeDuration": { + "type": "number" + }, + "autoSafeDurationRank": { + "format": "int32", + "type": "integer" + }, + "autoSafeDurationRankProportion": { + "type": "number" + }, + "autoSpeedAverage": { + "type": "number" + }, + "autoSpeedAverageRank": { + "format": "int32", + "type": "integer" + }, + "autoSpeedAverageRankProportion": { + "type": "number" + }, + "brand": { + "type": "string" + }, + "dataConfidence": { + "type": "number" + }, + "eligibleSourceCount": { + "format": "int32", + "type": "integer" + }, + "groupType": { "type": "string" }, + "hardwareConfig": { + "type": "string" + }, + "inverventionRiskMpi": { + "type": "number" + }, + "inverventionRiskMpiRank": { + "format": "int32", + "type": "integer" + }, + "inverventionRiskMpiRankProportion": { + "type": "number" + }, "metricField": { "type": "string" }, @@ -16561,6 +16340,19 @@ "softwareConfig": { "type": "string" }, + "supplierName": { + "type": "string" + }, + "totalMileages": { + "type": "number" + }, + "totalMileagesRank": { + "format": "int32", + "type": "integer" + }, + "totalMileagesRankProportion": { + "type": "number" + }, "vehicleId": { "type": "string" } @@ -16584,22 +16376,37 @@ }, "AppVehicleMetricRankRequest": { "properties": { + "hardwareConfig": { + "type": "string" + }, "keyword": { "type": "string" }, + "model": { + "type": "string" + }, "scene": { "type": "string" }, + "softwareConfig": { + "type": "string" + }, "sortField": { "type": "string" }, "sortOrder": { "type": "string" }, + "sourceScope": { + "type": "string" + }, "specialPointMode": { "format": "int32", "type": "integer" }, + "vehicleId": { + "type": "string" + }, "window": { "type": "string" } @@ -17885,36 +17692,6 @@ }, "type": "object" }, - "HotBrandVehicleRankDTO": { - "properties": { - "brand": { - "type": "string" - }, - "hardwareConfig": { - "type": "string" - }, - "model": { - "type": "string" - }, - "pic": { - "type": "string" - }, - "rank": { - "format": "int32", - "type": "integer" - }, - "softwareConfig": { - "type": "string" - }, - "totalMileages": { - "type": "number" - }, - "vehicleId": { - "type": "string" - } - }, - "type": "object" - }, "InterventionReasonsDTO": { "properties": { "interventionReasons": { @@ -18971,6 +18748,12 @@ "softwareConfig": { "type": "string" }, + "totalMileagesMax": { + "type": "number" + }, + "totalMileagesMin": { + "type": "number" + }, "userId": { "format": "int64", "type": "integer" @@ -19093,53 +18876,6 @@ }, "type": "object" }, - "NoaRankDTO": { - "properties": { - "autoAccAverageRankList": { - "items": { - "$ref": "#/components/schemas/HotBrandVehicleRankDTO" - }, - "type": "array" - }, - "autoDccAverageRankList": { - "items": { - "$ref": "#/components/schemas/HotBrandVehicleRankDTO" - }, - "type": "array" - }, - "autoMileagesRankList": { - "items": { - "$ref": "#/components/schemas/HotBrandVehicleRankDTO" - }, - "type": "array" - }, - "autoSafeDurationRankList": { - "items": { - "$ref": "#/components/schemas/HotBrandVehicleRankDTO" - }, - "type": "array" - }, - "autoSpeedAverageRankList": { - "items": { - "$ref": "#/components/schemas/HotBrandVehicleRankDTO" - }, - "type": "array" - }, - "inverventionRiskMpiRankList": { - "items": { - "$ref": "#/components/schemas/HotBrandVehicleRankDTO" - }, - "type": "array" - }, - "totalMileagesRankList": { - "items": { - "$ref": "#/components/schemas/HotBrandVehicleRankDTO" - }, - "type": "array" - } - }, - "type": "object" - }, "NoaReportHardConfigDetailDTO": { "properties": { "autoMileages": { @@ -19579,20 +19315,6 @@ }, "type": "object" }, - "PageRespDTORoadSceneJourneyRankDTO": { - "properties": { - "list": { - "items": { - "$ref": "#/components/schemas/RoadSceneJourneyRankDTO" - }, - "type": "array" - }, - "pagination": { - "$ref": "#/components/schemas/Pagination" - } - }, - "type": "object" - }, "PageRespDTOSubscriptionPageResponse": { "properties": { "list": { @@ -19750,6 +19472,41 @@ }, "type": "object" }, + "ReportCacheInvalidationRequest": { + "properties": { + "journeyCodes": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "journeyCodes" + ], + "type": "object" + }, + "ReportCacheInvalidationResultDTO": { + "properties": { + "deletedPointerCount": { + "format": "int32", + "type": "integer" + }, + "journeyCodeCount": { + "format": "int32", + "type": "integer" + }, + "refreshedContractCount": { + "format": "int32", + "type": "integer" + }, + "splitJourneyCount": { + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "ReportDataDTO": { "properties": { "autoAccAverage": { @@ -20256,6 +20013,66 @@ }, "type": "object" }, + "ResponseDataAppJourneyMetricDebugDTO": { + "properties": { + "code": { + "type": "string" + }, + "data": { + "$ref": "#/components/schemas/AppJourneyMetricDebugDTO" + }, + "message": { + "type": "string" + }, + "success": { + "type": "boolean" + }, + "traceId": { + "type": "string" + } + }, + "type": "object" + }, + "ResponseDataAppJourneyMetricRankDetailDTO": { + "properties": { + "code": { + "type": "string" + }, + "data": { + "$ref": "#/components/schemas/AppJourneyMetricRankDetailDTO" + }, + "message": { + "type": "string" + }, + "success": { + "type": "boolean" + }, + "traceId": { + "type": "string" + } + }, + "type": "object" + }, + "ResponseDataAppJourneyMetricRebuildResultDTO": { + "properties": { + "code": { + "type": "string" + }, + "data": { + "$ref": "#/components/schemas/AppJourneyMetricRebuildResultDTO" + }, + "message": { + "type": "string" + }, + "success": { + "type": "boolean" + }, + "traceId": { + "type": "string" + } + }, + "type": "object" + }, "ResponseDataAppVehicleMetricDetailDTO": { "properties": { "code": { @@ -21028,26 +20845,6 @@ }, "type": "object" }, - "ResponseDataNoaRankDTO": { - "properties": { - "code": { - "type": "string" - }, - "data": { - "$ref": "#/components/schemas/NoaRankDTO" - }, - "message": { - "type": "string" - }, - "success": { - "type": "boolean" - }, - "traceId": { - "type": "string" - } - }, - "type": "object" - }, "ResponseDataNoaReportModelDetailDTO": { "properties": { "code": { @@ -21226,13 +21023,13 @@ }, "type": "object" }, - "ResponseDataPageRespDTORoadSceneJourneyRankDTO": { + "ResponseDataPageRespDTOSubscriptionPageResponse": { "properties": { "code": { "type": "string" }, "data": { - "$ref": "#/components/schemas/PageRespDTORoadSceneJourneyRankDTO" + "$ref": "#/components/schemas/PageRespDTOSubscriptionPageResponse" }, "message": { "type": "string" @@ -21246,13 +21043,13 @@ }, "type": "object" }, - "ResponseDataPageRespDTOSubscriptionPageResponse": { + "ResponseDataPageRespDTOUserSearchResponse": { "properties": { "code": { "type": "string" }, "data": { - "$ref": "#/components/schemas/PageRespDTOSubscriptionPageResponse" + "$ref": "#/components/schemas/PageRespDTOUserSearchResponse" }, "message": { "type": "string" @@ -21266,13 +21063,13 @@ }, "type": "object" }, - "ResponseDataPageRespDTOUserSearchResponse": { + "ResponseDataPolarStarDTO": { "properties": { "code": { "type": "string" }, "data": { - "$ref": "#/components/schemas/PageRespDTOUserSearchResponse" + "$ref": "#/components/schemas/PolarStarDTO" }, "message": { "type": "string" @@ -21286,13 +21083,13 @@ }, "type": "object" }, - "ResponseDataPolarStarDTO": { + "ResponseDataPushSubscriptionResponse": { "properties": { "code": { "type": "string" }, "data": { - "$ref": "#/components/schemas/PolarStarDTO" + "$ref": "#/components/schemas/PushSubscriptionResponse" }, "message": { "type": "string" @@ -21306,13 +21103,13 @@ }, "type": "object" }, - "ResponseDataPushSubscriptionResponse": { + "ResponseDataReportCacheInvalidationResultDTO": { "properties": { "code": { "type": "string" }, "data": { - "$ref": "#/components/schemas/PushSubscriptionResponse" + "$ref": "#/components/schemas/ReportCacheInvalidationResultDTO" }, "message": { "type": "string" @@ -21580,156 +21377,6 @@ }, "type": "object" }, - "RoadSceneJourneyRankDTO": { - "properties": { - "autoAccAverage": { - "type": "number" - }, - "autoAccAverageRank": { - "format": "int32", - "type": "integer" - }, - "autoAccAverageRankProportion": { - "type": "number" - }, - "autoDccAverage": { - "type": "number" - }, - "autoDccAverageRank": { - "format": "int32", - "type": "integer" - }, - "autoDccAverageRankProportion": { - "type": "number" - }, - "autoMileages": { - "type": "number" - }, - "autoMileagesRank": { - "format": "int32", - "type": "integer" - }, - "autoMileagesRankProportion": { - "type": "number" - }, - "autoSafeDuration": { - "type": "number" - }, - "autoSafeDurationRank": { - "format": "int32", - "type": "integer" - }, - "autoSafeDurationRankProportion": { - "type": "number" - }, - "autoSpeedAverage": { - "type": "number" - }, - "autoSpeedAverageRank": { - "format": "int32", - "type": "integer" - }, - "autoSpeedAverageRankProportion": { - "type": "number" - }, - "cityName": { - "type": "string" - }, - "hardwareConfig": { - "type": "string" - }, - "inverventionRiskMpi": { - "type": "number" - }, - "inverventionRiskMpiRank": { - "format": "int32", - "type": "integer" - }, - "inverventionRiskMpiRankProportion": { - "type": "number" - }, - "model": { - "type": "string" - }, - "noaAccAverage": { - "type": "number" - }, - "noaAccAverageRank": { - "format": "int32", - "type": "integer" - }, - "noaAccAverageRankProportion": { - "type": "number" - }, - "noaAutoMileages": { - "type": "number" - }, - "noaAutoMileagesRank": { - "format": "int32", - "type": "integer" - }, - "noaAutoMileagesRankProportion": { - "type": "number" - }, - "noaDccAverage": { - "type": "number" - }, - "noaDccAverageRank": { - "format": "int32", - "type": "integer" - }, - "noaDccAverageRankProportion": { - "type": "number" - }, - "noaInverventionRiskMpi": { - "type": "number" - }, - "noaInverventionRiskMpiRank": { - "format": "int32", - "type": "integer" - }, - "noaInverventionRiskMpiRankProportion": { - "type": "number" - }, - "noaSafeDuration": { - "type": "number" - }, - "noaSafeDurationRank": { - "format": "int32", - "type": "integer" - }, - "noaSafeDurationRankProportion": { - "type": "number" - }, - "noaSpeedAverage": { - "type": "number" - }, - "noaSpeedAverageRank": { - "format": "int32", - "type": "integer" - }, - "noaSpeedAverageRankProportion": { - "type": "number" - }, - "softwareConfig": { - "type": "string" - }, - "totalMileages": { - "type": "number" - }, - "totalMileagesRank": { - "format": "int32", - "type": "integer" - }, - "totalMileagesRankProportion": { - "type": "number" - }, - "vehicleId": { - "type": "string" - } - }, - "type": "object" - }, "RoadSceneJourneyRankRequest": { "properties": { "cityId": { @@ -22724,28 +22371,16 @@ "description": null, "openapi": "3.1.0", "resources": { - "appVehicleMetrics": { + "appJourneyMetrics": { "methods": { "adminRebuild": { "description": "", "httpMethod": "POST", - "operationId": "rebuild", - "parameters": [ - { - "description": null, - "location": "query", - "name": "operator", - "required": false, - "schema": { - "type": "string" - } - } - ], - "path": "/api/backend-saas/v1/app-vehicle-metrics/admin/rebuild", + "operationId": "rebuild_1", + "parameters": [], + "path": "/api/backend-saas/v1/app-journey-metrics/admin/rebuild", "pathParameters": [], - "queryParameters": [ - "operator" - ], + "queryParameters": [], "requestBody": { "contentTypes": [ "application/json" @@ -22753,7 +22388,7 @@ "required": false, "schema": { "application/json": { - "$ref": "#/components/schemas/AppVehicleMetricRebuildRequest" + "$ref": "#/components/schemas/AppJourneyMetricRebuildRequest" } } }, @@ -22765,7 +22400,7 @@ "description": "OK", "schema": { "*/*": { - "$ref": "#/components/schemas/ResponseDataAppVehicleMetricRebuildResultDTO" + "$ref": "#/components/schemas/ResponseDataAppJourneyMetricRebuildResultDTO" } } }, @@ -22783,24 +22418,24 @@ }, "security": null, "source": { - "rawPath": "/v1/app-vehicle-metrics/admin/rebuild", + "rawPath": "/v1/app-journey-metrics/admin/rebuild", "service": "backend-saas", "servicePath": "/api/backend-saas" }, "summary": null, "tags": [ - "app-vehicle-metrics-controller" + "app-journey-metrics-controller" ] }, - "debugSourceBreakdown": { + "debugMetricPercentile": { "description": "", "httpMethod": "GET", - "operationId": "querySourceBreakdown", + "operationId": "queryMetricPercentile", "parameters": [ { "description": null, "location": "query", - "name": "vehicleId", + "name": "journeyId", "required": false, "schema": { "type": "string" @@ -22809,16 +22444,17 @@ { "description": null, "location": "query", - "name": "model", + "name": "scene", "required": false, "schema": { + "default": "total", "type": "string" } }, { "description": null, "location": "query", - "name": "hardwareConfig", + "name": "metricCode", "required": false, "schema": { "type": "string" @@ -22827,25 +22463,79 @@ { "description": null, "location": "query", - "name": "softwareConfig", + "name": "specialPointMode", "required": false, "schema": { - "type": "string" + "default": 0, + "format": "int32", + "type": "integer" } }, { "description": null, "location": "query", - "name": "scene", + "name": "refreshMode", "required": false, "schema": { + "default": "auto", "type": "string" } + } + ], + "path": "/api/backend-saas/v1/app-journey-metrics/debug/metric-percentile", + "pathParameters": [], + "queryParameters": [ + "journeyId", + "scene", + "metricCode", + "specialPointMode", + "refreshMode" + ], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "*/*" + ], + "description": "OK", + "schema": { + "*/*": { + "$ref": "#/components/schemas/ResponseDataAppJourneyMetricDebugDTO" + } + } }, + "500": { + "contentTypes": [ + "*/*" + ], + "description": "Internal Server Error", + "schema": { + "*/*": { + "$ref": "#/components/schemas/ResponseDataObject" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/app-journey-metrics/debug/metric-percentile", + "service": "backend-saas", + "servicePath": "/api/backend-saas" + }, + "summary": null, + "tags": [ + "app-journey-metrics-controller" + ] + }, + "rankDetail": { + "description": "", + "httpMethod": "GET", + "operationId": "queryJourneyRankDetail", + "parameters": [ { "description": null, "location": "query", - "name": "window", + "name": "journeyId", "required": false, "schema": { "type": "string" @@ -22861,18 +22551,36 @@ "format": "int32", "type": "integer" } + }, + { + "description": null, + "location": "query", + "name": "refreshMode", + "required": false, + "schema": { + "default": "auto", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "debug", + "required": false, + "schema": { + "default": 0, + "format": "int32", + "type": "integer" + } } ], - "path": "/api/backend-saas/v1/app-vehicle-metrics/debug/source-breakdown", + "path": "/api/backend-saas/v1/app-journey-metrics/rank/detail", "pathParameters": [], "queryParameters": [ - "vehicleId", - "model", - "hardwareConfig", - "softwareConfig", - "scene", - "window", - "specialPointMode" + "journeyId", + "specialPointMode", + "refreshMode", + "debug" ], "requestBody": null, "responses": { @@ -22883,7 +22591,7 @@ "description": "OK", "schema": { "*/*": { - "$ref": "#/components/schemas/ResponseDataAppVehicleMetricSourceBreakdownDTO" + "$ref": "#/components/schemas/ResponseDataAppJourneyMetricRankDetailDTO" } } }, @@ -22901,7 +22609,77 @@ }, "security": null, "source": { - "rawPath": "/v1/app-vehicle-metrics/debug/source-breakdown", + "rawPath": "/v1/app-journey-metrics/rank/detail", + "service": "backend-saas", + "servicePath": "/api/backend-saas" + }, + "summary": null, + "tags": [ + "app-journey-metrics-controller" + ] + } + } + }, + "appVehicleMetrics": { + "methods": { + "adminRebuild": { + "description": "", + "httpMethod": "POST", + "operationId": "rebuild", + "parameters": [ + { + "description": null, + "location": "query", + "name": "operator", + "required": false, + "schema": { + "type": "string" + } + } + ], + "path": "/api/backend-saas/v1/app-vehicle-metrics/admin/rebuild", + "pathParameters": [], + "queryParameters": [ + "operator" + ], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": false, + "schema": { + "application/json": { + "$ref": "#/components/schemas/AppVehicleMetricRebuildRequest" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "*/*" + ], + "description": "OK", + "schema": { + "*/*": { + "$ref": "#/components/schemas/ResponseDataAppVehicleMetricRebuildResultDTO" + } + } + }, + "500": { + "contentTypes": [ + "*/*" + ], + "description": "Internal Server Error", + "schema": { + "*/*": { + "$ref": "#/components/schemas/ResponseDataObject" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/app-vehicle-metrics/admin/rebuild", "service": "backend-saas", "servicePath": "/api/backend-saas" }, @@ -22910,10 +22688,128 @@ "app-vehicle-metrics-controller" ] }, - "modelDetail": { + "debugSourceBreakdown": { "description": "", "httpMethod": "GET", - "operationId": "queryModelDetail", + "operationId": "querySourceBreakdown", + "parameters": [ + { + "description": null, + "location": "query", + "name": "vehicleId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "model", + "required": false, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "hardwareConfig", + "required": false, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "softwareConfig", + "required": false, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "scene", + "required": false, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "window", + "required": false, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "specialPointMode", + "required": false, + "schema": { + "default": 0, + "format": "int32", + "type": "integer" + } + } + ], + "path": "/api/backend-saas/v1/app-vehicle-metrics/debug/source-breakdown", + "pathParameters": [], + "queryParameters": [ + "vehicleId", + "model", + "hardwareConfig", + "softwareConfig", + "scene", + "window", + "specialPointMode" + ], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "*/*" + ], + "description": "OK", + "schema": { + "*/*": { + "$ref": "#/components/schemas/ResponseDataAppVehicleMetricSourceBreakdownDTO" + } + } + }, + "500": { + "contentTypes": [ + "*/*" + ], + "description": "Internal Server Error", + "schema": { + "*/*": { + "$ref": "#/components/schemas/ResponseDataObject" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/app-vehicle-metrics/debug/source-breakdown", + "service": "backend-saas", + "servicePath": "/api/backend-saas" + }, + "summary": null, + "tags": [ + "app-vehicle-metrics-controller" + ] + }, + "modelDetail": { + "description": "", + "httpMethod": "GET", + "operationId": "queryModelDetail", "parameters": [ { "description": null, @@ -23127,6 +23023,15 @@ "format": "int32", "type": "integer" } + }, + { + "description": null, + "location": "query", + "name": "sourceScope", + "required": false, + "schema": { + "type": "string" + } } ], "path": "/api/backend-saas/v1/app-vehicle-metrics/rank/top3", @@ -23134,7 +23039,8 @@ "queryParameters": [ "scene", "window", - "specialPointMode" + "specialPointMode", + "sourceScope" ], "requestBody": null, "responses": { @@ -23171,6 +23077,138 @@ "tags": [ "app-vehicle-metrics-controller" ] + }, + "technologyRankPage": { + "description": "", + "httpMethod": "POST", + "operationId": "queryTechnologyRankPage", + "parameters": [], + "path": "/api/backend-saas/v1/app-vehicle-metrics/technology/rank/page", + "pathParameters": [], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": false, + "schema": { + "application/json": { + "$ref": "#/components/schemas/PageRequestDataAppVehicleMetricRankRequest" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "*/*" + ], + "description": "OK", + "schema": { + "*/*": { + "$ref": "#/components/schemas/ResponseDataAppVehicleMetricRankPageDTO" + } + } + }, + "500": { + "contentTypes": [ + "*/*" + ], + "description": "Internal Server Error", + "schema": { + "*/*": { + "$ref": "#/components/schemas/ResponseDataObject" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/app-vehicle-metrics/technology/rank/page", + "service": "backend-saas", + "servicePath": "/api/backend-saas" + }, + "summary": null, + "tags": [ + "app-vehicle-metrics-controller" + ] + }, + "technologyRankTop3": { + "description": "", + "httpMethod": "GET", + "operationId": "queryTechnologyRankTop3", + "parameters": [ + { + "description": null, + "location": "query", + "name": "scene", + "required": false, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "window", + "required": false, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "specialPointMode", + "required": false, + "schema": { + "default": 0, + "format": "int32", + "type": "integer" + } + } + ], + "path": "/api/backend-saas/v1/app-vehicle-metrics/technology/rank/top3", + "pathParameters": [], + "queryParameters": [ + "scene", + "window", + "specialPointMode" + ], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "*/*" + ], + "description": "OK", + "schema": { + "*/*": { + "$ref": "#/components/schemas/ResponseDataAppVehicleMetricTop3DTO" + } + } + }, + "500": { + "contentTypes": [ + "*/*" + ], + "description": "Internal Server Error", + "schema": { + "*/*": { + "$ref": "#/components/schemas/ResponseDataObject" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/app-vehicle-metrics/technology/rank/top3", + "service": "backend-saas", + "servicePath": "/api/backend-saas" + }, + "summary": null, + "tags": [ + "app-vehicle-metrics-controller" + ] } } }, @@ -24465,6 +24503,64 @@ } } }, + "internal": { + "methods": { + "reportCacheInvalidate": { + "description": "", + "httpMethod": "POST", + "operationId": "invalidate", + "parameters": [], + "path": "/api/backend-saas/internal/report-cache/invalidate", + "pathParameters": [], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/ReportCacheInvalidationRequest" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "*/*" + ], + "description": "OK", + "schema": { + "*/*": { + "$ref": "#/components/schemas/ResponseDataReportCacheInvalidationResultDTO" + } + } + }, + "500": { + "contentTypes": [ + "*/*" + ], + "description": "Internal Server Error", + "schema": { + "*/*": { + "$ref": "#/components/schemas/ResponseDataObject" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/internal/report-cache/invalidate", + "service": "backend-saas", + "servicePath": "/api/backend-saas" + }, + "summary": null, + "tags": [ + "internal-report-cache-controller" + ] + } + } + }, "journeys": { "methods": { "artifacts": { @@ -25379,7 +25475,7 @@ "description": "OK", "schema": { "*/*": { - "$ref": "#/components/schemas/ResponseDataNoaRankDTO" + "$ref": "#/components/schemas/ResponseDataAppVehicleMetricTop3DTO" } } }, @@ -25472,7 +25568,7 @@ "contentTypes": [ "application/json" ], - "required": true, + "required": false, "schema": { "application/json": { "$ref": "#/components/schemas/PageRequestDataRoadSceneJourneyRankRequest" @@ -25487,7 +25583,7 @@ "description": "OK", "schema": { "*/*": { - "$ref": "#/components/schemas/ResponseDataPageRespDTORoadSceneJourneyRankDTO" + "$ref": "#/components/schemas/ResponseDataAppVehicleMetricRankPageDTO" } } }, @@ -25795,7 +25891,7 @@ "description": "OK", "schema": { "*/*": { - "$ref": "#/components/schemas/ResponseDataNoaRankDTO" + "$ref": "#/components/schemas/ResponseDataAppVehicleMetricTop3DTO" } } }, @@ -27988,6 +28084,58 @@ "crowd": { "components": { "schemas": { + "AssetAckV1": { + "properties": { + "acknowledged_at_ms": { + "type": "string" + }, + "binding_id": { + "type": "string" + }, + "idempotency_key": { + "type": "string" + }, + "media_asset_id": { + "type": "string" + }, + "schema": { + "type": "string" + }, + "schema_version": { + "type": "integer" + }, + "server_state": { + "enum": [ + "ACCEPTED", + "DUPLICATE", + "REJECTED" + ], + "type": "string" + }, + "sha256": { + "type": "string" + }, + "size_bytes": { + "type": "string" + }, + "task_execution_id": { + "type": "string" + } + }, + "required": [ + "schema", + "schema_version", + "media_asset_id", + "binding_id", + "task_execution_id", + "size_bytes", + "sha256", + "server_state", + "idempotency_key", + "acknowledged_at_ms" + ], + "type": "object" + }, "BatchReviewDecisionRequest": { "properties": { "decision_source": { @@ -28148,6 +28296,221 @@ }, "type": "object" }, + "CaptureAssetV1": { + "properties": { + "asset_kind": { + "enum": [ + "VIDEO", + "SEGMENT", + "IMU", + "AUDIO", + "PROCESSED" + ], + "type": "string" + }, + "binding_id": { + "type": "string" + }, + "first_sequence": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "last_sequence": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "manifest_sha256": { + "type": "string" + }, + "media_asset_id": { + "type": "string" + }, + "payload_present": { + "type": "boolean" + }, + "relative_path": { + "type": "string" + }, + "schema": { + "type": "string" + }, + "schema_version": { + "type": "integer" + }, + "sha256": { + "type": "string" + }, + "size_bytes": { + "type": "string" + }, + "stream_role": { + "type": "string" + } + }, + "required": [ + "schema", + "schema_version", + "binding_id", + "media_asset_id", + "asset_kind", + "stream_role", + "relative_path", + "size_bytes", + "sha256", + "manifest_sha256", + "payload_present" + ], + "type": "object" + }, + "CaptureBindingV1": { + "properties": { + "binding_id": { + "type": "string" + }, + "capture_manifest_sha256": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "capture_session_id": { + "type": "string" + }, + "contract_hash": { + "type": "string" + }, + "contract_id": { + "type": "string" + }, + "contract_revision": { + "type": "string" + }, + "device_id": { + "type": "string" + }, + "device_instance_id": { + "type": "string" + }, + "device_type": { + "enum": [ + "CHEK_MIKER", + "GO_PRO", + "EGO1GS", + "ORIN" + ], + "type": "string" + }, + "firmware_version": { + "type": "string" + }, + "generation": { + "type": "string" + }, + "idempotency_key": { + "type": "string" + }, + "lease_id": { + "type": "string" + }, + "lease_state": { + "enum": [ + "PENDING", + "ACTIVE", + "EXPIRED", + "REVOKED" + ], + "type": "string" + }, + "media_asset_id": { + "type": "string" + }, + "nonce": { + "type": "string" + }, + "physical_serial": { + "type": "string" + }, + "processed_manifest_sha256": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "recording_attempt_id": { + "type": "string" + }, + "schema": { + "type": "string" + }, + "schema_version": { + "type": "integer" + }, + "signature": { + "type": "string" + }, + "source_manifest_sha256": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "task_execution_id": { + "type": "string" + }, + "task_id": { + "type": "string" + } + }, + "required": [ + "schema", + "schema_version", + "binding_id", + "task_id", + "task_execution_id", + "recording_attempt_id", + "capture_session_id", + "media_asset_id", + "device_id", + "device_instance_id", + "device_type", + "physical_serial", + "firmware_version", + "lease_id", + "lease_state", + "contract_id", + "contract_revision", + "contract_hash", + "generation", + "nonce", + "signature", + "idempotency_key" + ], + "type": "object" + }, "DatasetMembershipCreate": { "properties": { "dataset_name": { @@ -28194,6 +28557,97 @@ ], "type": "object" }, + "DesktopTaskCreate": { + "properties": { + "address": { + "default": "", + "type": "string" + }, + "client": { + "default": "", + "type": "string" + }, + "client_request_id": { + "default": "", + "type": "string" + }, + "credit_points_per_hour": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "credit_rate_profile": { + "default": "", + "type": "string" + }, + "data_contract_profile": { + "default": "", + "type": "string" + }, + "description": { + "default": "" + }, + "description_i18n": { + "type": "object" + }, + "idempotency_key": { + "default": "", + "type": "string" + }, + "metadata": { + "type": "object" + }, + "occupations": { + "items": { + "type": "object" + }, + "type": "array" + }, + "org_id": { + "default": "default", + "type": "string" + }, + "site_contract": { + "type": "object" + }, + "site_environment_video_asset_id": { + "default": "", + "type": "string" + }, + "site_environment_video_ref": { + "default": "", + "type": "string" + }, + "storefront_photo_asset_id": { + "default": "", + "type": "string" + }, + "storefront_photo_ref": { + "default": "", + "type": "string" + }, + "task_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "title": { + "default": "", + "type": "string" + } + }, + "type": "object" + }, "DeviceBindingBindRequest": { "properties": { "claimCode": { @@ -28220,6 +28674,22 @@ ], "type": "object" }, + "DeviceBindingUnbindRequest": { + "properties": { + "deviceId": { + "default": "", + "type": "string" + }, + "metadata": { + "type": "object" + }, + "reason": { + "default": "", + "type": "string" + } + }, + "type": "object" + }, "DeviceRuntimeStatusReportRequest": { "properties": { "availableBandwidthTier": { @@ -28419,6 +28889,18 @@ ], "type": "object" }, + "EdgeDeviceFactoryResetRequest": { + "properties": { + "metadata": { + "type": "object" + }, + "reason": { + "default": "", + "type": "string" + } + }, + "type": "object" + }, "EdgeRawReconciliationRequest": { "properties": { "actor_user_one_id": { @@ -28454,249 +28936,521 @@ }, "type": "object" }, - "EpisodeExportCreate": { + "EgoBuyerQuoteCreate": { "properties": { - "dataset_name": { - "default": "", + "dataset_package_hash": { "type": "string" }, - "dataset_version": { - "default": "", + "dataset_package_id": { "type": "string" }, - "episode_id": { + "dataset_package_revision": { "type": "string" + } + }, + "required": [ + "dataset_package_id", + "dataset_package_revision", + "dataset_package_hash" + ], + "type": "object" + }, + "EgoCompleteUploadRequest": { + "properties": { + "checksums": { + "type": "object" }, - "export_format": { - "default": "zarr", - "type": "string" + "frame_index": {}, + "labels": {}, + "local_quality_report": { + "type": "object" }, "metadata": { "type": "object" }, - "privacy_level": { - "default": "restricted", - "type": "string" - }, - "quality_score": { - "default": 0.0, - "type": "number" - }, - "session_id": { - "type": "string" - }, - "split": { - "default": "train", - "type": "string" + "processed_manifest": { + "anyOf": [ + { + "type": "object" + }, + { + "type": "null" + } + ] }, - "status": { - "default": "completed", + "replacement_reason": { + "default": "", "type": "string" }, - "storage_bucket": { + "replaces_asset_id": { "default": "", "type": "string" }, - "storage_key": { + "stored_checksum": { "default": "", "type": "string" }, - "storage_tier": { - "default": "curated", - "type": "string" + "stored_size_bytes": { + "type": "integer" + }, + "video_metadata": { + "type": "object" } }, "required": [ - "session_id", - "episode_id" + "stored_size_bytes" ], "type": "object" }, - "GovernanceManualTakeoverRequest": { + "EgoDataContractProfileUpdate": { "properties": { - "actor_user_one_id": { + "creditPointsPerHour": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "credit_points_per_hour": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "disabledReason": { "default": "", "type": "string" }, - "assignee": { + "disabled_reason": { + "default": "", + "type": "string" + }, + "enabled": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "label": { "default": "", "type": "string" }, "metadata": { "type": "object" }, - "notes": { + "profileLabel": { "default": "", "type": "string" }, - "reason": { + "profile_label": { + "default": "", + "type": "string" + }, + "status": { "default": "", "type": "string" + }, + "uploadEnabled": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "upload_enabled": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] } }, "type": "object" }, - "HTTPValidationError": { + "EgoDatasetPackageCreate": { "properties": { - "detail": { + "dataset_package_id": { + "default": "", + "type": "string" + }, + "metadata": { + "type": "object" + }, + "package_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "selection_token": { + "default": "", + "type": "string" + }, + "selection_token_id": { + "default": "", + "type": "string" + }, + "task_ids": { "items": { - "$ref": "#/components/schemas/ValidationError" + "type": "string" }, "type": "array" } }, "type": "object" }, - "NotificationCreateRequest": { + "EgoDeviceCapabilityReportCreate": { "properties": { - "body": { + "audio_capture_enabled": { + "default": false, + "type": "boolean" + }, + "camera_intrinsics": { + "type": "object" + }, + "camera_profile": { "default": "", "type": "string" }, - "category": { - "default": "system", + "electronic_stabilization_enabled": { + "default": false, + "type": "boolean" + }, + "fov_degrees": { + "default": 0.0, + "type": "number" + }, + "fps": { + "default": 30, + "type": "integer" + }, + "imu_present": { + "default": true, + "type": "boolean" + }, + "imu_required": { + "default": true, + "type": "boolean" + }, + "meets_minimum": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "metadata": { + "type": "object" + }, + "orientation": { + "default": "landscape", + "type": "string" + }, + "report_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "source": { + "default": "ios_app", "type": "string" + } + }, + "type": "object" + }, + "EgoExecutionCreate": { + "properties": { + "execution_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "idempotency_key": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "metadata": { "type": "object" }, - "reward_id": { - "default": "", + "mode": { + "default": "existing_or_create", + "enum": [ + "existing_or_create", + "new_attempt" + ], "type": "string" }, - "session_id": { - "default": "", + "source": { + "default": "ios_app", "type": "string" + } + }, + "type": "object" + }, + "EgoFullExecutionCreate": { + "properties": { + "execution_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, - "title": { + "expected_revision": { + "type": "integer" + }, + "idempotency_key": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "metadata": { + "type": "object" + }, + "mode": { + "default": "existing_or_create", + "enum": [ + "existing_or_create", + "new_attempt" + ], "type": "string" }, - "user_one_id": { + "source": { + "default": "ios_app", "type": "string" } }, "required": [ - "user_one_id", - "title" + "expected_revision" ], "type": "object" }, - "NotificationDeliveryDispatchRequest": { + "EgoHistoricalFingerprintReconcileRequest": { "properties": { - "metadata": { - "type": "object" + "dry_run": { + "default": true, + "type": "boolean" + }, + "environment": { + "default": "dev", + "type": "string" } }, "type": "object" }, - "NotificationDeliveryStatusUpdateRequest": { + "EgoInviteAcceptRequest": { "properties": { - "error_message": { - "default": "", + "invite_code": { "type": "string" }, "metadata": { "type": "object" + } + }, + "required": [ + "invite_code" + ], + "type": "object" + }, + "EgoInviteLinkCreate": { + "properties": { + "invite_code": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, - "status": { - "default": "sent", - "type": "string" + "metadata": { + "type": "object" } }, "type": "object" }, - "NotificationStatusUpdateRequest": { + "EgoLocalProcessingResultCreate": { "properties": { + "accepted_segments": { + "items": { + "type": "object" + }, + "type": "array" + }, + "actual_processed_duration_seconds": { + "default": 0, + "type": "integer" + }, + "bad_segments": { + "items": { + "type": "object" + }, + "type": "array" + }, + "local_quality_report": { + "type": "object" + }, "metadata": { "type": "object" }, - "status": { - "default": "read", + "privacy_report": { + "type": "object" + }, + "processing_manifest": { + "type": "object" + }, + "result_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema_version": { + "default": "processed_v1", "type": "string" } }, "type": "object" }, - "PublicEgoDatasetCheckoutIntentRead": { + "EgoMikerActionRequest": { "properties": { - "checkout_intent_id": { + "decision": { + "default": "", "type": "string" }, - "company": { + "item_id": { "default": "", "type": "string" }, - "contact": { + "metadata": { + "type": "object" + }, + "notes": { "default": "", "type": "string" }, - "created_at": { + "reason": { "default": "", "type": "string" }, - "delivery_jobs": { + "reviewer_id": { + "default": "", + "type": "string" + } + }, + "type": "object" + }, + "EgoMikerListingPricingRequest": { + "properties": { + "category_pricing": { "items": { - "$ref": "#/components/schemas/PublicEgoDatasetDeliveryJobRead" + "type": "object" }, "type": "array" }, - "next_action": { - "default": "", + "decision": { + "default": "update-pricing", "type": "string" }, - "order_id": { - "default": "", - "type": "string" + "expected_pricing_revision": { + "type": "integer" }, - "payment_amount": { - "default": 0.0, - "type": "number" + "expected_revision": { + "type": "integer" }, - "payment_currency": { - "default": "CNY", + "item_id": { "type": "string" }, - "payment_required": { - "default": true, - "type": "boolean" - }, - "payment_session": { - "$ref": "#/components/schemas/PublicEgoDatasetPaymentSessionRead" + "metadata": { + "type": "object" }, - "payment_status": { + "notes": { "default": "", "type": "string" }, - "quote": { - "$ref": "#/components/schemas/PublicEgoDatasetQuoteRead" - }, - "session_count": { - "default": 0, - "type": "integer" + "primary_pricing_category": { + "type": "string" }, - "status": { - "default": "", + "reason": { "type": "string" } }, "required": [ - "checkout_intent_id", - "quote" + "item_id", + "expected_revision", + "expected_pricing_revision", + "primary_pricing_category", + "category_pricing", + "reason" ], "type": "object" }, - "PublicEgoDatasetCheckoutIntentRequest": { + "EgoMikerListingPublishRequest": { "properties": { - "company": { - "default": "", + "decision": { + "default": "publish-listing", "type": "string" }, - "contact": { - "default": "", - "type": "string" + "expected_pricing_revision": { + "type": "integer" }, - "locale": { - "default": "", + "expected_revision": { + "type": "integer" + }, + "item_id": { "type": "string" }, "metadata": { @@ -28706,1445 +29460,1676 @@ "default": "", "type": "string" }, - "session_ids": { - "items": { - "type": "string" - }, - "type": "array" + "reason": { + "type": "string" } }, + "required": [ + "item_id", + "expected_revision", + "expected_pricing_revision", + "reason" + ], "type": "object" }, - "PublicEgoDatasetCustomRequestCreate": { + "EgoMikerSettlementFinalizeRequest": { "properties": { - "contact": { - "default": "", - "type": "string" - }, - "data_scale": { + "cycle_id": { "default": "", "type": "string" }, - "deadline": { - "default": "", + "decision": { + "default": "finalize-settlement", "type": "string" }, - "device_requirement": { - "default": "", - "type": "string" + "expected_revision": { + "type": "integer" }, - "locale": { - "default": "", + "item_id": { "type": "string" }, "metadata": { "type": "object" }, - "notes": { + "reason": { + "type": "string" + } + }, + "required": [ + "item_id", + "expected_revision", + "reason" + ], + "type": "object" + }, + "EgoOccupationCatalogRequest": { + "properties": { + "code": { "default": "", "type": "string" }, - "scene": { - "default": "", + "default_skill_level": { + "enum": [ + "hard", + "medium", + "standard" + ], "type": "string" }, - "session_id": { + "group": { "default": "", "type": "string" }, - "task_description": { + "label": { + "type": "string" + }, + "metadata": { + "type": "object" + }, + "reason": { "default": "", "type": "string" } }, + "required": [ + "label", + "default_skill_level" + ], "type": "object" }, - "PublicEgoDatasetCustomRequestRead": { + "EgoOccupationCatalogReviewRequest": { "properties": { - "created_at": { - "default": "", + "decision": { + "enum": [ + "approve", + "reject", + "return" + ], "type": "string" }, - "intake_channel": { - "default": "ops_sales_queue", - "type": "string" + "metadata": { + "type": "object" }, - "next_action": { + "reason": { "default": "", "type": "string" - }, - "request_id": { - "type": "string" - }, - "session_id": { - "default": "", + } + }, + "required": [ + "decision" + ], + "type": "object" + }, + "EgoOccupationSelection": { + "properties": { + "code": { "type": "string" }, - "status": { - "default": "submitted", + "skill_level": { + "enum": [ + "hard", + "medium", + "standard" + ], "type": "string" } }, "required": [ - "request_id" + "code", + "skill_level" ], "type": "object" }, - "PublicEgoDatasetDeliveryJobRead": { + "EgoOrderCreate": { "properties": { - "delivery_eta": { + "company": { "default": "", "type": "string" }, - "delivery_mode": { + "contact": { "default": "", "type": "string" }, - "download_url": { + "dataset_package_hash": { "default": "", "type": "string" }, - "edge_liveness_status": { + "dataset_package_id": { "default": "", "type": "string" }, - "failure_reason": { + "dataset_package_revision": { "default": "", "type": "string" }, - "job_id": { - "type": "string" + "metadata": { + "type": "object" }, - "planned_status": { + "notes": { "default": "", "type": "string" }, - "raw_reachability_status": { - "default": "", - "type": "string" + "order_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, - "session_id": { + "quote_hash": { + "default": "", "type": "string" }, - "status": { + "quote_id": { "default": "", "type": "string" }, - "title": { + "quote_revision": { "default": "", "type": "string" } }, - "required": [ - "job_id", - "session_id" - ], "type": "object" }, - "PublicEgoDatasetEdgeNodeRead": { + "EgoProcessedDerivativeRegisterRequest": { "properties": { - "data_volume_label": { - "default": "", - "description": "面向展示的供给体量说明,通常包含在线 session 数和估算容量。", - "type": "string" - }, - "data_volume_score": { - "default": 0.0, - "description": "用于前端节点大小映射的供给体量分数,分值越大,节点点位越大。", - "type": "number" - }, - "node_id": { - "description": "边缘节点唯一标识。", - "type": "string" - }, - "node_name": { - "description": "边缘节点显示名称。", - "type": "string" - }, - "online": { - "default": false, - "description": "用于前端节点颜色映射的在线状态;true 表示在线或可直接调度,false 表示离线/不可达。", - "type": "boolean" - }, - "tier_label": { - "default": "", - "description": "该节点当前最高的数据层级标签。", - "type": "string" - }, - "x": { - "description": "星图中的 X 轴布局坐标。", - "type": "number" - }, - "y": { - "description": "星图中的 Y 轴布局坐标。", - "type": "number" - } - }, - "required": [ - "node_id", - "node_name", - "x", - "y" - ], - "type": "object" - }, - "PublicEgoDatasetFoundryApplicationAdminRead": { - "properties": { - "address": { - "default": "", - "type": "string" - }, - "application_id": { - "type": "string" - }, - "contact_name": { - "default": "", - "type": "string" - }, - "contact_phone": { - "default": "", - "type": "string" - }, - "created_at": { - "default": "", + "content_type": { + "default": "application/octet-stream", "type": "string" }, - "intake_channel": { - "default": "ego_foundry_queue", + "kind": { "type": "string" }, - "is_real_center": { - "default": false, - "type": "boolean" - }, "metadata": { "type": "object" }, - "next_action": { - "default": "", - "type": "string" - }, - "review_note": { - "default": "", + "path": { "type": "string" }, - "scene_tags": { - "items": { - "type": "string" - }, - "type": "array" - }, - "source_page": { + "stored_checksum": { "default": "", "type": "string" }, - "status": { - "default": "queued", - "type": "string" - }, - "team_size": { + "stored_size_bytes": { "default": 0, "type": "integer" - }, - "updated_at": { - "default": "", - "type": "string" } }, "required": [ - "application_id" + "kind", + "path" ], "type": "object" }, - "PublicEgoDatasetFoundryApplicationCreate": { + "EgoProcessedDerivativeUploadIntentRequest": { "properties": { - "address": { - "default": "", - "type": "string" - }, - "contact_name": { - "default": "", + "content_type": { + "default": "application/octet-stream", "type": "string" }, - "contact_phone": { + "expected_checksum": { "default": "", "type": "string" }, - "is_real_center": { - "default": false, - "type": "boolean" + "expected_size_bytes": { + "default": 0, + "type": "integer" }, - "locale": { - "default": "", + "kind": { "type": "string" }, "metadata": { "type": "object" }, - "scene_tags": { - "items": { - "type": "string" - }, - "type": "array" - }, - "source_page": { - "default": "HumanoidCHEK", + "path": { "type": "string" }, - "team_size": { - "default": 0, - "type": "integer" + "ttl_seconds": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] } }, + "required": [ + "kind", + "path" + ], "type": "object" }, - "PublicEgoDatasetFoundryApplicationListRead": { + "EgoQualityReviewRequest": { "properties": { - "count": { - "default": 0, + "expected_revision": { "type": "integer" }, - "results": { - "items": { - "$ref": "#/components/schemas/PublicEgoDatasetFoundryApplicationAdminRead" - }, - "type": "array" - }, - "total": { - "default": 0, - "type": "integer" - } - }, - "type": "object" - }, - "PublicEgoDatasetFoundryApplicationRead": { - "properties": { - "application_id": { - "type": "string" + "metadata": { + "type": "object" }, - "created_at": { + "notes": { "default": "", "type": "string" }, - "intake_channel": { - "default": "ego_foundry_queue", - "type": "string" - }, - "next_action": { + "reason": { "default": "", "type": "string" - }, - "status": { - "default": "queued", - "type": "string" } }, "required": [ - "application_id" + "expected_revision" ], "type": "object" }, - "PublicEgoDatasetFoundryApplicationStatusUpdate": { + "EgoReferralCreate": { "properties": { - "review_note": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "status": { - "default": "reviewing", + "inviter_user_one_id": { "type": "string" - } - }, - "type": "object" - }, - "PublicEgoDatasetFoundrySceneStatRead": { - "properties": { - "count": { - "default": 0, - "type": "integer" }, - "scene": { + "metadata": { + "type": "object" + }, + "user_one_id": { "type": "string" } }, "required": [ - "scene" + "user_one_id", + "inviter_user_one_id" ], "type": "object" }, - "PublicEgoDatasetFoundryStatsRead": { + "EgoReviewActionRequest": { "properties": { - "application_count": { - "default": 0, - "type": "integer" - }, - "base_count": { - "default": 0, - "type": "integer" - }, - "real_center_count": { - "default": 0, - "type": "integer" + "metadata": { + "type": "object" }, - "scene_counts": { - "items": { - "$ref": "#/components/schemas/PublicEgoDatasetFoundrySceneStatRead" - }, - "type": "array" + "notes": { + "default": "", + "type": "string" }, - "scene_type_count": { - "default": 0, - "type": "integer" + "reason": { + "default": "", + "type": "string" }, - "updated_at": { + "reviewer_id": { "default": "", "type": "string" } }, "type": "object" }, - "PublicEgoDatasetFragmentRead": { + "EgoReviewPlaybackTokenRequest": { "properties": { - "action_guess": { - "default": "", - "description": "动作语义归因。", - "type": "string" - }, - "caption": { - "default": "", - "description": "VLM/语义目录生成的片段摘要。", - "type": "string" - }, - "duration_ms": { - "default": 0, - "description": "片段时长,单位毫秒。", - "type": "integer" - }, - "fragment_id": { - "description": "语义片段唯一标识。", - "type": "string" - }, - "match_score": { - "default": 0.0, - "description": "当前查询下的语义匹配分数。", - "type": "number" + "metadata": { + "type": "object" }, - "node_status": { + "notes": { "default": "", - "description": "所属边缘节点在公开目录中的在线状态。", "type": "string" }, - "objects": { - "description": "片段内识别出的核心对象。", - "items": { - "type": "string" - }, - "type": "array" - }, - "preview_gif": { + "reason": { "default": "", - "description": "片段轻量动态预览 URL。", "type": "string" }, - "preview_images": { - "description": "片段关键帧或缩略图 URL。", - "items": { - "type": "string" - }, - "type": "array" - }, - "raw_caption": { + "reviewer_id": { "default": "", - "description": "片段关联的原始关键帧/事件级 VLM 描述。", "type": "string" }, - "raw_caption_count": { - "default": 0, - "description": "当前片段可回溯的原始 VLM 描述条数。", + "ttl_seconds": { + "default": 900, "type": "integer" - }, - "retention_policy": { - "default": "", - "description": "片段继承的保留策略名称。", - "type": "string" - }, - "tags": { - "description": "语义标签。", - "items": { - "type": "string" - }, - "type": "array" - }, - "validated_at": { - "default": "", - "description": "最近一次验证或刷新该片段的时间。", - "type": "string" } }, - "required": [ - "fragment_id" - ], "type": "object" }, - "PublicEgoDatasetListRead": { + "EgoReworkReviewRequest": { "properties": { - "dataTiers": { + "expected_revision": { + "type": "integer" + }, + "full_rerecord_required": { + "default": false, + "type": "boolean" + }, + "metadata": { + "type": "object" + }, + "missing_annotations": { "items": { "type": "string" }, "type": "array" }, - "deviceGrades": { + "missing_artifacts": { "items": { "type": "string" }, "type": "array" }, - "edgeLivenessStatuses": { + "missing_duration_seconds": { + "default": 0, + "type": "integer" + }, + "missing_or_invalid_segment_ids": { "items": { "type": "string" }, "type": "array" }, - "edgeNodes": { - "description": "供 hero 星图使用的边缘节点摘要。节点图只表达供给网络规模与在线状态,不是搜索结果单位。", + "privacy_issues": { "items": { - "$ref": "#/components/schemas/PublicEgoDatasetEdgeNodeRead" + "type": "string" }, "type": "array" }, - "featuredQueries": { + "quality_issues": { "items": { "type": "string" }, "type": "array" }, - "hasMore": { + "reason": { + "type": "string" + }, + "supplement_upload_allowed": { "default": false, "type": "boolean" - }, - "items": { + } + }, + "required": [ + "expected_revision", + "reason" + ], + "type": "object" + }, + "EgoSelectionTokenCreate": { + "properties": { + "excluded_task_ids": { "items": { - "$ref": "#/components/schemas/PublicEgoDatasetSessionRead" + "type": "string" }, "type": "array" }, - "page": { - "default": 1, - "type": "integer" - }, - "pageSize": { - "default": 6, - "type": "integer" + "metadata": { + "type": "object" }, - "qualityStatuses": { - "items": { - "type": "string" - }, - "type": "array" + "mode": { + "default": "explicit", + "type": "string" }, - "scenes": { - "items": { - "type": "string" - }, - "type": "array" + "query": { + "type": "object" }, - "sortOptions": { - "items": { - "type": "string" - }, - "type": "array" + "search_filter": { + "type": "object" }, - "tags": { + "task_ids": { "items": { "type": "string" }, "type": "array" }, - "total": { - "default": 0, + "ttl_seconds": { + "default": 1800, "type": "integer" } }, "type": "object" }, - "PublicEgoDatasetOrderRead": { + "EgoSettlementCloseRequest": { "properties": { - "checkout_intent_id": { - "default": "", - "type": "string" + "cycle_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, - "company": { - "default": "", - "type": "string" + "metadata": { + "type": "object" }, - "contact": { + "window_ended_at": { "default": "", "type": "string" }, - "created_at": { + "window_started_at": { "default": "", "type": "string" + } + }, + "type": "object" + }, + "EgoTaskAuthorizationCreate": { + "properties": { + "metadata": { + "type": "object" }, - "delivery_jobs": { - "items": { - "$ref": "#/components/schemas/PublicEgoDatasetDeliveryJobRead" - }, - "type": "array" + "portrait_authorized": { + "default": false, + "type": "boolean" }, - "next_action": { - "default": "", - "type": "string" + "portrait_consent": { + "default": false, + "type": "boolean" }, - "order_id": { - "type": "string" + "privacy_mask_confirmed": { + "default": false, + "type": "boolean" }, - "payment_amount": { - "default": 0.0, - "type": "number" + "scene_authorized": { + "default": false, + "type": "boolean" }, - "payment_currency": { - "default": "CNY", - "type": "string" + "scene_consent": { + "default": false, + "type": "boolean" }, - "payment_required": { - "default": true, + "venue_authorized": { + "default": false, "type": "boolean" }, - "payment_session": { - "$ref": "#/components/schemas/PublicEgoDatasetPaymentSessionRead" + "venue_consent": { + "default": false, + "type": "boolean" + } + }, + "type": "object" + }, + "EgoTaskContractApprovalRequest": { + "properties": { + "billable_duration_cap_seconds": { + "type": "integer" }, - "payment_status": { + "capture_notes": { "default": "", "type": "string" }, - "session_count": { - "default": 0, + "data_contract_profile": { + "type": "string" + }, + "expected_revision": { "type": "integer" }, - "status": { - "default": "", - "type": "string" + "hourly_price_points": { + "type": "integer" }, - "timeline": { - "items": { - "$ref": "#/components/schemas/PublicEgoDatasetOrderTimelineEventRead" - }, - "type": "array" + "metadata": { + "type": "object" }, - "updated_at": { + "partial_upload_allowed": { + "default": false, + "type": "boolean" + }, + "reason": { "default": "", "type": "string" + }, + "sample_decision": { + "default": "approve", + "type": "string" + }, + "tier3_annotation_required_for_billing": { + "default": true, + "type": "boolean" } }, "required": [ - "order_id" + "expected_revision", + "data_contract_profile", + "billable_duration_cap_seconds", + "hourly_price_points" ], "type": "object" }, - "PublicEgoDatasetOrderTimelineEventRead": { + "EgoTaskCreate": { "properties": { - "detail": { + "address": { "default": "", "type": "string" }, - "event_id": { - "type": "string" - }, - "occurred_at": { + "client_request_id": { "default": "", "type": "string" }, - "status": { - "type": "string" + "creditPointsPerHour": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] }, - "title": { - "type": "string" - } - }, - "required": [ - "event_id", - "status", - "title" - ], - "type": "object" - }, - "PublicEgoDatasetPaymentCallbackRequest": { - "properties": { - "amount": { + "credit_points_per_hour": { "anyOf": [ { - "type": "number" + "type": "integer" }, { "type": "null" } ] }, - "currency": { + "dataContractProfile": { "default": "", "type": "string" }, - "metadata": { - "type": "object" - }, - "paid_at": { + "data_contract_profile": { "default": "", "type": "string" }, - "payment_reference": { + "description": { "default": "", "type": "string" }, - "provider_transaction_id": { + "description_i18n": { + "type": "object" + }, + "idempotency_key": { "default": "", "type": "string" }, - "status": { - "type": "string" - } - }, - "required": [ - "status" - ], - "type": "object" - }, - "PublicEgoDatasetPaymentSessionRead": { - "properties": { - "callback_received_at": { - "default": "", + "metadata": { + "type": "object" + }, + "occupations": { + "items": { + "$ref": "#/components/schemas/EgoOccupationSelection" + }, + "type": "array" + }, + "org_id": { + "default": "default", "type": "string" }, - "checkout_url": { - "default": "", - "type": "string" + "siteContract": { + "type": "object" }, - "expires_at": { + "siteEnvironmentVideoRef": { "default": "", "type": "string" }, - "mini_program_path": { - "default": "", - "type": "string" + "site_contract": { + "type": "object" }, - "mini_program_query": { + "site_environment_video_ref": { "default": "", "type": "string" }, - "mini_program_url_link": { + "storefrontPhotoRef": { "default": "", "type": "string" }, - "mode": { + "storefront_photo_ref": { "default": "", "type": "string" }, - "payment_reference": { - "default": "", - "type": "string" + "task_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, - "provider": { + "title": { + "type": "string" + } + }, + "required": [ + "title" + ], + "type": "object" + }, + "EgoTaskDescriptionUpdate": { + "properties": { + "description": { "default": "", "type": "string" }, - "provider_transaction_id": { + "description_i18n": { + "type": "object" + }, + "expected_revision": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "metadata": { + "type": "object" + }, + "occupations": { + "items": { + "$ref": "#/components/schemas/EgoOccupationSelection" + }, + "type": "array" + }, + "reason": { "default": "", "type": "string" }, - "status": { + "task_approval_contract": { + "anyOf": [ + { + "type": "object" + }, + { + "type": "null" + } + ] + }, + "title": { "default": "", "type": "string" } }, "type": "object" }, - "PublicEgoDatasetPreviewArtifactRead": { + "EgoTaskMediaRead": { "properties": { - "asset_id": { + "content_type": { "type": "string" }, - "preview_status": { - "default": "", + "created_at": { + "format": "date-time", "type": "string" }, - "public_url": { - "default": "", + "media_id": { "type": "string" }, - "relpath": { - "default": "", + "media_kind": { + "enum": [ + "video", + "image" + ], "type": "string" }, - "storage_key": { - "default": "", + "media_ref": { + "type": "string" + }, + "original_filename": { "type": "string" + }, + "preview_url": { + "type": "string" + }, + "purpose": { + "enum": [ + "ego-site-video", + "ego-storefront-photo" + ], + "type": "string" + }, + "size_bytes": { + "type": "integer" + }, + "status": { + "enum": [ + "pending", + "verified", + "blocked" + ], + "type": "string" + }, + "updated_at": { + "format": "date-time", + "type": "string" + }, + "verification_error": { + "type": "string" + }, + "verified_at": { + "anyOf": [ + { + "format": "date-time", + "type": "string" + }, + { + "type": "null" + } + ] } }, "required": [ - "asset_id" + "media_id", + "media_ref", + "purpose", + "media_kind", + "original_filename", + "content_type", + "size_bytes", + "status", + "verification_error", + "preview_url", + "verified_at", + "created_at", + "updated_at" ], "type": "object" }, - "PublicEgoDatasetPreviewRead": { + "EgoTaskMediaUploadIntentCreate": { "properties": { - "audit": { - "type": "object" - }, - "deep_preview_available": { - "default": false, - "type": "boolean" - }, - "deep_preview_granted": { - "default": false, - "type": "boolean" - }, - "login_required_for_deep_preview": { - "default": true, - "type": "boolean" - }, - "login_required_for_raw": { - "default": false, - "type": "boolean" - }, - "preview_access_mode": { - "default": "", + "content_type": { "type": "string" }, - "preview_artifacts": { - "items": { - "$ref": "#/components/schemas/PublicEgoDatasetPreviewArtifactRead" - }, - "type": "array" - }, - "preview_free": { - "default": true, - "type": "boolean" + "filename": { + "type": "string" }, - "semantic_entries": { - "items": { - "type": "object" - }, - "type": "array" + "purpose": { + "enum": [ + "ego-site-video", + "ego-storefront-photo" + ], + "type": "string" }, - "session": { - "$ref": "#/components/schemas/PublicEgoDatasetSessionRead" + "size_bytes": { + "type": "integer" } }, "required": [ - "session" + "filename", + "content_type", + "size_bytes", + "purpose" ], "type": "object" }, - "PublicEgoDatasetQuoteLineRead": { + "EgoTaskMediaUploadIntentRead": { "properties": { - "currency": { - "default": "CNY", + "content_type": { "type": "string" }, - "data_tier": { - "default": "", + "created_at": { + "format": "date-time", "type": "string" }, - "delivery_block_reason": { - "default": "", + "media_id": { "type": "string" }, - "delivery_eta": { - "default": "", + "media_kind": { + "enum": [ + "video", + "image" + ], "type": "string" }, - "edge_liveness_status": { - "default": "", + "media_ref": { "type": "string" }, - "estimated_price": { - "default": 0.0, - "type": "number" + "original_filename": { + "type": "string" }, - "pricing_policy_version": { - "default": "", + "preview_url": { "type": "string" }, - "raw_reachability_status": { - "default": "", + "purpose": { + "enum": [ + "ego-site-video", + "ego-storefront-photo" + ], "type": "string" }, - "session_id": { + "size_bytes": { + "type": "integer" + }, + "status": { + "enum": [ + "pending", + "verified", + "blocked" + ], "type": "string" }, - "title": { + "updated_at": { + "format": "date-time", + "type": "string" + }, + "upload": { + "type": "object" + }, + "verification_error": { "type": "string" + }, + "verified_at": { + "anyOf": [ + { + "format": "date-time", + "type": "string" + }, + { + "type": "null" + } + ] } }, "required": [ - "session_id", - "title" + "media_id", + "media_ref", + "purpose", + "media_kind", + "original_filename", + "content_type", + "size_bytes", + "status", + "verification_error", + "preview_url", + "verified_at", + "created_at", + "updated_at", + "upload" ], "type": "object" }, - "PublicEgoDatasetQuoteRead": { + "EgoTaskReadbackResponse": { + "description": "Versioned owner task readback envelope.\n\nThe envelope schema versions the complete nested projection returned under\n``task``, including the approval contract, execution summaries, recording\nauthority policy, and eligible execution lease metadata.", "properties": { - "created_at": { - "default": "", + "schema": { + "description": "Canonical version for this envelope and its nested task, task_approval_contract, and execution projections.", "type": "string" }, - "currency": { - "default": "CNY", + "task": { + "description": "Owner-authorized task projection governed by the envelope schema.", + "type": "object" + } + }, + "required": [ + "schema", + "task" + ], + "type": "object" + }, + "EgoTaskSampleDecisionRequest": { + "properties": { + "decision": { "type": "string" }, - "delayed_delivery_count": { - "default": 0, - "type": "integer" - }, - "immediate_delivery_count": { - "default": 0, + "expected_revision": { "type": "integer" }, - "items": { - "items": { - "$ref": "#/components/schemas/PublicEgoDatasetQuoteLineRead" - }, - "type": "array" - }, - "login_required": { - "default": false, - "type": "boolean" - }, - "next_action": { - "default": "", - "type": "string" - }, - "preview_only_count": { - "default": 0, - "type": "integer" + "metadata": { + "type": "object" }, - "pricing_policy_version": { + "notes": { "default": "", "type": "string" }, - "quote_id": { + "reason": { "type": "string" - }, - "session_count": { - "default": 0, - "type": "integer" - }, - "total_estimated_price": { - "default": 0.0, - "type": "number" } }, "required": [ - "quote_id" + "expected_revision", + "decision", + "reason" ], "type": "object" }, - "PublicEgoDatasetQuoteRequest": { + "EgoUploadCandidateAcceptanceRequest": { "properties": { - "currency": { - "default": "CNY", - "type": "string" + "backend_acceptance": { + "anyOf": [ + { + "$ref": "#/components/schemas/EgoUploadCandidateBackendAcceptancePayload" + }, + { + "type": "null" + } + ] }, - "locale": { + "expected_asset_revision": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "expected_task_execution_revision": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "expected_upload_revision": { "default": "", "type": "string" }, "metadata": { "type": "object" }, - "notes": { - "default": "", - "type": "string" + "upload_candidate_manifest": { + "type": "object" }, - "session_ids": { + "upload_readbacks": { "items": { - "type": "string" + "$ref": "#/components/schemas/EgoUploadCandidateReadbackPayload" }, "type": "array" } }, "type": "object" }, - "PublicEgoDatasetSessionRead": { + "EgoUploadCandidateBackendAcceptancePayload": { "properties": { - "action_labels": { - "description": "从语义目录聚合得到的动作标签。", + "accepted_asset_count": { + "default": 0, + "type": "integer" + }, + "backend_acceptance_passed": { + "default": false, + "type": "boolean" + }, + "backend_receipt_id": { + "default": "", + "type": "string" + }, + "blocked_reasons": { "items": { "type": "string" }, "type": "array" + } + }, + "type": "object" + }, + "EgoUploadCandidateDryRunRequest": { + "properties": { + "metadata": { + "type": "object" }, - "best_match_score": { - "default": 0.0, - "description": "当前查询下该 session 的最佳语义匹配分数。", - "type": "number" - }, - "capture_device_id": { + "upload_candidate_manifest": { + "type": "object" + } + }, + "type": "object" + }, + "EgoUploadCandidateReadbackPayload": { + "properties": { + "backend_asset_id": { "default": "", "type": "string" }, - "captured_at": { + "readback_hash": { "default": "", "type": "string" }, - "completeness_score": { - "default": 0.0, - "type": "number" - }, - "currency": { - "default": "CNY", - "type": "string" - }, - "data_tier": { + "segment_id": { "default": "", "type": "string" }, - "delivery_block_reason": { + "source_package_id": { "default": "", "type": "string" }, - "delivery_eta": { + "upload_revision": { "default": "", "type": "string" - }, - "device_grade": { + } + }, + "type": "object" + }, + "EgoUploadIntentRequest": { + "properties": { + "expected_checksum": { "default": "", "type": "string" }, - "device_status": { + "expected_size_bytes": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "replaces_asset_id": { "default": "", "type": "string" }, - "download_heat": { - "default": 0.0, - "type": "number" + "storage_revision": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] }, - "edge_liveness_status": { - "default": "", - "type": "string" + "ttl_seconds": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + } + }, + "type": "object" + }, + "EgoVideoAssetCreate": { + "properties": { + "asset_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, - "estimated_price": { - "default": 0.0, - "type": "number" + "content_type": { + "default": "application/octet-stream", + "type": "string" }, - "last_verified_at": { + "expected_checksum": { "default": "", "type": "string" }, - "objects": { - "description": "从语义目录聚合得到的对象集合。", - "items": { - "type": "string" - }, - "type": "array" - }, - "preview_count": { + "expected_size_bytes": { "default": 0, "type": "integer" }, - "preview_residency": { - "default": "", + "filename": { + "default": "asset.bin", "type": "string" }, - "pricing_policy_version": { - "default": "", + "kind": { "type": "string" }, - "quality_status": { + "metadata": { + "type": "object" + } + }, + "required": [ + "kind" + ], + "type": "object" + }, + "EgoWithdrawalCreate": { + "properties": { + "metadata": { + "type": "object" + }, + "points": { + "type": "integer" + } + }, + "required": [ + "points" + ], + "type": "object" + }, + "EgoWithdrawalReviewRequest": { + "properties": { + "expected_revision": { + "type": "integer" + }, + "metadata": { + "type": "object" + }, + "notes": { "default": "", "type": "string" }, - "raw_availability": { + "reviewer_id": { "default": "", "type": "string" }, - "raw_checkout_allowed": { - "default": false, - "description": "当前 session 是否允许进入 raw 下载报价与采购流程。", - "type": "boolean" - }, - "raw_reachability_status": { + "status": { + "type": "string" + } + }, + "required": [ + "status", + "expected_revision" + ], + "type": "object" + }, + "EpisodeExportCreate": { + "properties": { + "dataset_name": { "default": "", "type": "string" }, - "raw_residency": { + "dataset_version": { "default": "", "type": "string" }, - "retention_policy_summary": { - "type": "object" + "episode_id": { + "type": "string" }, - "runtime_profile": { - "default": "", + "export_format": { + "default": "zarr", "type": "string" }, - "sample_captions": { - "description": "供列表卡片快速展示的代表性 VLM 语义摘要。", - "items": { - "type": "string" - }, - "type": "array" + "metadata": { + "type": "object" }, - "scene": { - "default": "", + "privacy_level": { + "default": "restricted", "type": "string" }, - "semantic_entry_count": { - "default": 0, - "type": "integer" + "quality_score": { + "default": 0.0, + "type": "number" }, "session_id": { - "description": "公开 catalog 中的 session 主键。", "type": "string" }, - "tags": { - "description": "从语义目录聚合得到的标签。", - "items": { - "type": "string" - }, - "type": "array" + "split": { + "default": "train", + "type": "string" }, - "task_id": { - "default": "", + "status": { + "default": "completed", "type": "string" }, - "task_title": { + "storage_bucket": { "default": "", "type": "string" }, - "title": { - "description": "公开结果标题,通常由任务标题和场景拼接而成。", + "storage_key": { + "default": "", "type": "string" }, - "top_fragments": { - "description": "当前查询命中的语义片段摘要;真正的搜索命中依据是这些 VLM/语义目录片段,而不是边缘节点本身。", - "items": { - "$ref": "#/components/schemas/PublicEgoDatasetFragmentRead" - }, - "type": "array" - }, - "usage_feedback_score": { - "default": 0.0, - "type": "number" - }, - "verified_by": { - "default": "", + "storage_tier": { + "default": "curated", "type": "string" } }, "required": [ "session_id", - "title" + "episode_id" ], "type": "object" }, - "PublicEgoDatasetWechatMiniPaymentLinkRead": { + "GovernanceManualTakeoverRequest": { "properties": { - "expires_at": { + "actor_user_one_id": { "default": "", "type": "string" }, - "mini_program_path": { + "assignee": { "default": "", "type": "string" }, - "mini_program_query": { + "metadata": { + "type": "object" + }, + "notes": { "default": "", "type": "string" }, - "order_id": { + "reason": { + "default": "", "type": "string" + } + }, + "type": "object" + }, + "HTTPValidationError": { + "properties": { + "detail": { + "items": { + "$ref": "#/components/schemas/ValidationError" + }, + "type": "array" + } + }, + "type": "object" + }, + "MikerDeviceIdentityReenrollment": { + "properties": { + "bootstrap": { + "$ref": "#/components/schemas/MikerPairingBootstrap" }, - "payment_reference": { - "default": "", + "previous_device_id": { "type": "string" }, - "url_link": { - "default": "", + "previous_identity_fingerprint": { + "type": "string" + }, + "schema": { "type": "string" } }, "required": [ - "order_id" + "schema", + "previous_device_id", + "previous_identity_fingerprint", + "bootstrap" ], "type": "object" }, - "PublicEgoDatasetWechatMiniPaymentPrepareRead": { + "MikerDeviceIdentityRegistration": { "properties": { - "expires_at": { - "default": "", + "build_sha": { "type": "string" }, - "order_id": { + "device_id": { "type": "string" }, - "payment_reference": { - "default": "", + "device_identity_fingerprint": { "type": "string" }, - "payment_status": { - "default": "", + "device_identity_public_key": { "type": "string" }, - "prepay_id": { - "default": "", + "device_name": { "type": "string" }, - "request_payment": { - "$ref": "#/components/schemas/PublicEgoDatasetWechatRequestPaymentRead" + "identity_signature": { + "type": "string" + }, + "registration_nonce": { + "type": "string" + }, + "schema": { + "type": "string" } }, "required": [ - "order_id", - "request_payment" + "schema", + "device_id", + "device_name", + "device_identity_public_key", + "device_identity_fingerprint", + "registration_nonce", + "build_sha", + "identity_signature" ], "type": "object" }, - "PublicEgoDatasetWechatMiniPaymentPrepareRequest": { + "MikerDeviceIdentityRevocation": { "properties": { - "wechat_login_code": { + "reason": { + "type": "string" + }, + "schema": { "type": "string" } }, "required": [ - "wechat_login_code" + "schema", + "reason" ], "type": "object" }, - "PublicEgoDatasetWechatRequestPaymentRead": { + "MikerDeviceIdentityRotation": { "properties": { - "app_id": { + "expected_identity_fingerprint": { "type": "string" }, - "nonce_str": { + "reason": { "type": "string" }, - "package": { + "registration": { + "$ref": "#/components/schemas/MikerDeviceIdentityRegistration" + }, + "schema": { + "type": "string" + } + }, + "required": [ + "schema", + "expected_identity_fingerprint", + "reason", + "registration" + ], + "type": "object" + }, + "MikerPairingBootstrap": { + "properties": { + "ble_key_agreement_public_key": { "type": "string" }, - "pay_sign": { + "build_sha": { "type": "string" }, - "sign_type": { - "default": "RSA", + "device_id": { "type": "string" }, - "time_stamp": { + "device_identity_fingerprint": { + "type": "string" + }, + "device_identity_public_key": { + "type": "string" + }, + "device_name": { + "type": "string" + }, + "discovery_nonce": { + "type": "string" + }, + "discovery_nonce_expires_at_unix_ms": { + "type": "integer" + }, + "discovery_nonce_fingerprint": { + "type": "string" + }, + "identity_signature": { + "type": "string" + }, + "issued_at_unix_ms": { + "type": "integer" + }, + "lan_origin": { + "type": "string" + }, + "product": { + "type": "string" + }, + "protocol_version": { + "type": "integer" + }, + "recording_state": { + "type": "string" + }, + "schema": { "type": "string" } }, "required": [ - "app_id", - "time_stamp", - "nonce_str", - "package", - "pay_sign" + "schema", + "protocol_version", + "product", + "device_id", + "device_name", + "device_identity_public_key", + "device_identity_fingerprint", + "discovery_nonce", + "discovery_nonce_fingerprint", + "discovery_nonce_expires_at_unix_ms", + "ble_key_agreement_public_key", + "lan_origin", + "issued_at_unix_ms", + "build_sha", + "recording_state", + "identity_signature" ], "type": "object" }, - "PushDeviceRegistrationRequest": { + "MikerPairingGrantRequest": { "properties": { - "app_version": { - "default": "", + "confirmation_receipt_fingerprint": { "type": "string" }, "device_id": { - "default": "", "type": "string" }, - "device_name": { + "device_identity_fingerprint": { + "type": "string" + }, + "discovery_nonce_fingerprint": { + "type": "string" + }, + "iphone_pairing_public_key": { + "type": "string" + }, + "iphone_pairing_public_key_fingerprint": { + "type": "string" + }, + "schema": { + "type": "string" + } + }, + "required": [ + "schema", + "device_id", + "device_identity_fingerprint", + "discovery_nonce_fingerprint", + "iphone_pairing_public_key", + "iphone_pairing_public_key_fingerprint", + "confirmation_receipt_fingerprint" + ], + "type": "object" + }, + "NotificationCreateRequest": { + "properties": { + "body": { "default": "", "type": "string" }, + "category": { + "default": "system", + "type": "string" + }, "metadata": { "type": "object" }, - "notification_authorized": { - "default": true, - "type": "boolean" + "reward_id": { + "default": "", + "type": "string" }, - "platform": { - "default": "ios", + "session_id": { + "default": "", "type": "string" }, - "push_environment": { - "default": "production", + "title": { "type": "string" }, - "push_token": { + "user_one_id": { "type": "string" } }, "required": [ - "push_token" + "user_one_id", + "title" ], "type": "object" }, - "PushDeviceStatusUpdateRequest": { + "NotificationDeliveryDispatchRequest": { + "properties": { + "metadata": { + "type": "object" + } + }, + "type": "object" + }, + "NotificationDeliveryStatusUpdateRequest": { "properties": { + "error_message": { + "default": "", + "type": "string" + }, "metadata": { "type": "object" }, - "notification_authorized": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] + "status": { + "default": "sent", + "type": "string" + } + }, + "type": "object" + }, + "NotificationStatusUpdateRequest": { + "properties": { + "metadata": { + "type": "object" }, "status": { - "default": "inactive", + "default": "read", "type": "string" } }, "type": "object" }, - "ReviewDecisionRequest": { + "ProcessingLineageV1": { "properties": { - "decision_source": { - "default": "manual", + "binding_id": { "type": "string" }, - "failure_codes": { + "capture_manifest_sha256": { + "type": "string" + }, + "independent_reader_id": { + "type": "string" + }, + "independent_verifier_id": { + "type": "string" + }, + "input_media_asset_ids": { "items": { "type": "string" }, "type": "array" }, - "metadata": { - "type": "object" + "lineage_sha256": { + "type": "string" }, - "review_notes": { - "default": "", + "output_media_asset_ids": { + "items": { + "type": "string" + }, + "type": "array" + }, + "processed_manifest_sha256": { "type": "string" }, - "review_status": { + "processing_revision": { "type": "string" }, - "reviewer_id": { - "default": "", + "schema": { "type": "string" }, - "reward_amount_cents": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ] + "schema_version": { + "type": "integer" }, - "reward_points": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ] + "source_manifest_sha256": { + "type": "string" }, - "reward_status": { - "default": "pending", + "task_execution_id": { "type": "string" } }, "required": [ - "review_status" + "schema", + "schema_version", + "binding_id", + "task_execution_id", + "source_manifest_sha256", + "capture_manifest_sha256", + "processed_manifest_sha256", + "input_media_asset_ids", + "output_media_asset_ids", + "processing_revision", + "independent_reader_id", + "independent_verifier_id", + "lineage_sha256" ], "type": "object" }, - "RewardBatchDisputeRequest": { + "PublicEgoDatasetCheckoutIntentRead": { "properties": { - "adjust_reward_amount_cents": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ] + "checkout_intent_id": { + "type": "string" }, - "adjust_reward_points": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ] + "company": { + "default": "", + "type": "string" }, - "adjust_reward_status": { + "contact": { "default": "", "type": "string" }, - "dispute_status": { - "default": "open", + "created_at": { + "default": "", "type": "string" }, - "evidence_items": { + "delivery_jobs": { "items": { - "type": "object" + "$ref": "#/components/schemas/PublicEgoDatasetDeliveryJobRead" }, "type": "array" }, - "metadata": { - "type": "object" - }, - "notes": { - "default": "", - "type": "string" - }, - "reason": { + "next_action": { "default": "", "type": "string" }, - "requested_resolution": { + "order_id": { "default": "", "type": "string" }, - "resolution_outcome": { - "default": "", - "type": "string" + "payment_amount": { + "default": 0.0, + "type": "number" }, - "resolved_by": { - "default": "", + "payment_currency": { + "default": "CNY", "type": "string" }, - "reward_ids": { - "items": { - "type": "string" - }, - "type": "array" + "payment_required": { + "default": true, + "type": "boolean" }, - "settlement_metadata": { - "type": "object" + "payment_session": { + "$ref": "#/components/schemas/PublicEgoDatasetPaymentSessionRead" }, - "settlement_notes": { + "payment_status": { "default": "", "type": "string" }, - "settlement_status": { + "quote": { + "$ref": "#/components/schemas/PublicEgoDatasetQuoteRead" + }, + "session_count": { + "default": 0, + "type": "integer" + }, + "status": { "default": "", "type": "string" } }, + "required": [ + "checkout_intent_id", + "quote" + ], "type": "object" }, - "RewardBatchSettlementRequest": { + "PublicEgoDatasetCheckoutIntentRequest": { "properties": { + "company": { + "default": "", + "type": "string" + }, + "contact": { + "default": "", + "type": "string" + }, + "locale": { + "default": "", + "type": "string" + }, "metadata": { "type": "object" }, @@ -30152,58 +31137,36 @@ "default": "", "type": "string" }, - "reward_ids": { + "session_ids": { "items": { "type": "string" }, "type": "array" - }, - "settled_by": { - "default": "", - "type": "string" - }, - "status": { - "default": "paid", - "type": "string" } }, "type": "object" }, - "RewardDisputeRequest": { + "PublicEgoDatasetCustomRequestCreate": { "properties": { - "adjust_reward_amount_cents": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ] + "contact": { + "default": "", + "type": "string" }, - "adjust_reward_points": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ] + "data_scale": { + "default": "", + "type": "string" }, - "adjust_reward_status": { + "deadline": { "default": "", "type": "string" }, - "dispute_status": { - "default": "open", + "device_requirement": { + "default": "", "type": "string" }, - "evidence_items": { - "items": { - "type": "object" - }, - "type": "array" + "locale": { + "default": "", + "type": "string" }, "metadata": { "type": "object" @@ -30212,384 +31175,309 @@ "default": "", "type": "string" }, - "reason": { + "scene": { "default": "", "type": "string" }, - "requested_resolution": { + "session_id": { "default": "", "type": "string" }, - "resolution_outcome": { + "task_description": { "default": "", "type": "string" - }, - "resolved_by": { + } + }, + "type": "object" + }, + "PublicEgoDatasetCustomRequestRead": { + "properties": { + "created_at": { "default": "", "type": "string" }, - "settlement_metadata": { - "type": "object" + "intake_channel": { + "default": "ops_sales_queue", + "type": "string" }, - "settlement_notes": { + "next_action": { "default": "", "type": "string" }, - "settlement_status": { + "request_id": { + "type": "string" + }, + "session_id": { "default": "", "type": "string" + }, + "status": { + "default": "submitted", + "type": "string" } }, + "required": [ + "request_id" + ], "type": "object" }, - "RewardEvidenceRequest": { + "PublicEgoDatasetDeliveryJobRead": { "properties": { - "attachments": { - "items": { - "type": "string" - }, - "type": "array" + "delivery_eta": { + "default": "", + "type": "string" }, - "description": { + "delivery_mode": { "default": "", "type": "string" }, - "metadata": { - "type": "object" + "download_url": { + "default": "", + "type": "string" + }, + "edge_liveness_status": { + "default": "", + "type": "string" + }, + "failure_reason": { + "default": "", + "type": "string" + }, + "job_id": { + "type": "string" + }, + "planned_status": { + "default": "", + "type": "string" + }, + "raw_reachability_status": { + "default": "", + "type": "string" + }, + "session_id": { + "type": "string" + }, + "status": { + "default": "", + "type": "string" }, "title": { "default": "", "type": "string" } }, + "required": [ + "job_id", + "session_id" + ], "type": "object" }, - "RewardLedgerUpsertRequest": { + "PublicEgoDatasetEdgeNodeRead": { "properties": { - "approved_at": { - "anyOf": [ - { - "format": "date-time", - "type": "string" - }, - { - "type": "null" - } - ] - }, - "base_reward_amount_cents": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ] - }, - "base_reward_points": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ] - }, - "difficulty_bonus_cents": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ] - }, - "final_reward_amount_cents": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ] - }, - "final_reward_points": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ] - }, - "metadata": { - "type": "object" - }, - "notes": { + "data_volume_label": { "default": "", + "description": "面向展示的供给体量说明,通常包含在线 session 数和估算容量。", "type": "string" }, - "novelty_bonus_cents": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ] + "data_volume_score": { + "default": 0.0, + "description": "用于前端节点大小映射的供给体量分数,分值越大,节点点位越大。", + "type": "number" }, - "penalty_cents": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ] + "node_id": { + "description": "边缘节点唯一标识。", + "type": "string" }, - "quality_bonus_cents": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ] + "node_name": { + "description": "边缘节点显示名称。", + "type": "string" }, - "rarity_bonus_cents": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ] + "online": { + "default": false, + "description": "用于前端节点颜色映射的在线状态;true 表示在线或可直接调度,false 表示离线/不可达。", + "type": "boolean" }, - "reviewer_id": { + "tier_label": { "default": "", + "description": "该节点当前最高的数据层级标签。", "type": "string" }, - "session_id": { - "type": "string" + "x": { + "description": "星图中的 X 轴布局坐标。", + "type": "number" }, - "status": { - "default": "pending", - "type": "string" + "y": { + "description": "星图中的 Y 轴布局坐标。", + "type": "number" } }, "required": [ - "session_id" + "node_id", + "node_name", + "x", + "y" ], "type": "object" }, - "RewardSettlementRequest": { + "PublicEgoDatasetFoundryApplicationAdminRead": { "properties": { - "metadata": { - "type": "object" - }, - "notes": { + "address": { "default": "", "type": "string" }, - "settled_by": { - "default": "", + "application_id": { "type": "string" }, - "status": { - "default": "paid", - "type": "string" - } - }, - "type": "object" - }, - "SemanticCatalogEntryUpsert": { - "properties": { - "action_guess": { + "contact_name": { "default": "", "type": "string" }, - "caption": { + "contact_phone": { "default": "", "type": "string" }, - "edge_time_ns": { - "default": 0, - "type": "integer" - }, - "embedding_key": { + "created_at": { "default": "", "type": "string" }, - "embedding_vector": { - "items": { - "type": "number" - }, - "type": "array" - }, - "entry_id": { + "intake_channel": { + "default": "ego_foundry_queue", "type": "string" }, - "entry_type": { - "default": "event", - "type": "string" + "is_real_center": { + "default": false, + "type": "boolean" }, "metadata": { "type": "object" }, - "objects": { + "next_action": { + "default": "", + "type": "string" + }, + "review_note": { + "default": "", + "type": "string" + }, + "scene_tags": { "items": { "type": "string" }, "type": "array" }, - "preview_relpath": { + "source_page": { "default": "", "type": "string" }, - "source_time_ns": { + "status": { + "default": "queued", + "type": "string" + }, + "team_size": { "default": 0, "type": "integer" }, - "tags": { - "items": { - "type": "string" - }, - "type": "array" + "updated_at": { + "default": "", + "type": "string" } }, "required": [ - "entry_id" + "application_id" ], "type": "object" }, - "SemanticCatalogUpsertRequest": { - "properties": { - "entries": { - "items": { - "$ref": "#/components/schemas/SemanticCatalogEntryUpsert" - }, - "type": "array" - } - }, - "type": "object" - }, - "SessionArtifactUpsertRequest": { + "PublicEgoDatasetFoundryApplicationCreate": { "properties": { - "asset_id": { - "type": "string" - }, - "category": { + "address": { "default": "", "type": "string" }, - "declared_size_bytes": { - "default": 0, - "type": "integer" - }, - "delivery_status": { - "default": "not_requested", - "type": "string" - }, - "kind": { + "contact_name": { "default": "", "type": "string" }, - "metadata": { - "type": "object" - }, - "preview_status": { - "default": "not_ready", - "type": "string" - }, - "relpath": { + "contact_phone": { + "default": "", "type": "string" }, - "required": { - "default": true, + "is_real_center": { + "default": false, "type": "boolean" }, - "residency_status": { - "default": "cloud_mirrored", - "type": "string" - }, - "sha256": { + "locale": { "default": "", "type": "string" }, - "status": { - "default": "declared", - "type": "string" + "metadata": { + "type": "object" }, - "storage_key": { - "default": "", + "scene_tags": { + "items": { + "type": "string" + }, + "type": "array" + }, + "source_page": { + "default": "HumanoidCHEK", "type": "string" }, - "stored_size_bytes": { + "team_size": { "default": 0, "type": "integer" } }, - "required": [ - "asset_id", - "relpath" - ], "type": "object" }, - "SessionDeleteRequest": { + "PublicEgoDatasetFoundryApplicationListRead": { "properties": { - "actor_user_one_id": { - "default": "", - "type": "string" - }, - "metadata": { - "type": "object" + "count": { + "default": 0, + "type": "integer" }, - "notes": { - "default": "", - "type": "string" + "results": { + "items": { + "$ref": "#/components/schemas/PublicEgoDatasetFoundryApplicationAdminRead" + }, + "type": "array" }, - "reason": { - "default": "", - "type": "string" + "total": { + "default": 0, + "type": "integer" } }, "type": "object" }, - "SessionEntitlementRequest": { + "PublicEgoDatasetFoundryApplicationRead": { "properties": { - "metadata": { - "type": "object" + "application_id": { + "type": "string" }, - "notes": { + "created_at": { "default": "", "type": "string" }, - "purchase_reference": { + "intake_channel": { + "default": "ego_foundry_queue", + "type": "string" + }, + "next_action": { "default": "", "type": "string" + }, + "status": { + "default": "queued", + "type": "string" } }, + "required": [ + "application_id" + ], "type": "object" }, - "SessionQualityUpdateRequest": { + "PublicEgoDatasetFoundryApplicationStatusUpdate": { "properties": { - "auto_quality_score": { - "default": 0.0, - "type": "number" - }, - "metadata": { - "type": "object" - }, - "privacy_level": { + "review_note": { "anyOf": [ { "type": "string" @@ -30599,167 +31487,231 @@ } ] }, - "quality_status": { - "default": "", + "status": { + "default": "reviewing", "type": "string" - }, - "review_risk_score": { - "default": 0.0, - "type": "number" } }, "type": "object" }, - "SessionRetentionUpdateRequest": { + "PublicEgoDatasetFoundrySceneStatRead": { "properties": { - "actor_user_one_id": { - "default": "", - "type": "string" - }, - "metadata": { - "type": "object" + "count": { + "default": 0, + "type": "integer" }, - "notes": { - "default": "", + "scene": { "type": "string" - }, - "preview_retention_days": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ] - }, - "raw_retention_days": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ] } }, + "required": [ + "scene" + ], "type": "object" }, - "SessionUpsertRequest": { + "PublicEgoDatasetFoundryStatsRead": { "properties": { - "artifact_count": { + "application_count": { "default": 0, "type": "integer" }, - "auto_quality_score": { - "default": 0.0, - "type": "number" + "base_count": { + "default": 0, + "type": "integer" }, - "capture_device_id": { - "default": "", - "type": "string" + "real_center_count": { + "default": 0, + "type": "integer" }, - "metadata": { - "type": "object" + "scene_counts": { + "items": { + "$ref": "#/components/schemas/PublicEgoDatasetFoundrySceneStatRead" + }, + "type": "array" }, - "operator_id": { - "default": "", - "type": "string" + "scene_type_count": { + "default": 0, + "type": "integer" }, - "preview_residency": { + "updated_at": { "default": "", "type": "string" - }, - "privacy_level": { - "default": "restricted", - "type": "string" - }, - "quality_status": { + } + }, + "type": "object" + }, + "PublicEgoDatasetFragmentRead": { + "properties": { + "action_guess": { "default": "", + "description": "动作语义归因。", "type": "string" }, - "raw_residency": { + "caption": { "default": "", + "description": "VLM/语义目录生成的片段摘要。", "type": "string" }, - "ready_for_review": { - "default": false, - "type": "boolean" + "duration_ms": { + "default": 0, + "description": "片段时长,单位毫秒。", + "type": "integer" }, - "review_risk_score": { + "fragment_id": { + "description": "语义片段唯一标识。", + "type": "string" + }, + "match_score": { "default": 0.0, + "description": "当前查询下的语义匹配分数。", "type": "number" }, - "runtime_profile": { + "node_status": { "default": "", + "description": "所属边缘节点在公开目录中的在线状态。", "type": "string" }, - "session_id": { - "type": "string" - }, - "status": { - "default": "recording", - "type": "string" + "objects": { + "description": "片段内识别出的核心对象。", + "items": { + "type": "string" + }, + "type": "array" }, - "storage_namespace": { + "preview_gif": { "default": "", + "description": "片段轻量动态预览 URL。", "type": "string" }, - "task_id": { + "preview_images": { + "description": "片段关键帧或缩略图 URL。", + "items": { + "type": "string" + }, + "type": "array" + }, + "raw_caption": { "default": "", + "description": "片段关联的原始关键帧/事件级 VLM 描述。", "type": "string" }, - "total_size_bytes": { + "raw_caption_count": { "default": 0, + "description": "当前片段可回溯的原始 VLM 描述条数。", "type": "integer" }, - "trip_id": { + "retention_policy": { "default": "", + "description": "片段继承的保留策略名称。", "type": "string" }, - "upload_policy": { - "default": "metadata_only", + "tags": { + "description": "语义标签。", + "items": { + "type": "string" + }, + "type": "array" + }, + "validated_at": { + "default": "", + "description": "最近一次验证或刷新该片段的时间。", "type": "string" } }, "required": [ - "session_id" + "fragment_id" ], "type": "object" }, - "SessionWorkerStatusUpdateRequest": { + "PublicEgoDatasetListRead": { "properties": { - "metadata": { - "type": "object" + "dataTiers": { + "items": { + "type": "string" + }, + "type": "array" }, - "run_id": { - "default": "", - "type": "string" + "deviceGrades": { + "items": { + "type": "string" + }, + "type": "array" }, - "stage": { - "default": "", - "type": "string" + "edgeLivenessStatuses": { + "items": { + "type": "string" + }, + "type": "array" }, - "status": { - "type": "string" + "edgeNodes": { + "description": "供 hero 星图使用的边缘节点摘要。节点图只表达供给网络规模与在线状态,不是搜索结果单位。", + "items": { + "$ref": "#/components/schemas/PublicEgoDatasetEdgeNodeRead" + }, + "type": "array" }, - "summary": { - "type": "object" + "featuredQueries": { + "items": { + "type": "string" + }, + "type": "array" }, - "worker_name": { - "default": "crowd-data-worker", - "type": "string" + "hasMore": { + "default": false, + "type": "boolean" + }, + "items": { + "items": { + "$ref": "#/components/schemas/PublicEgoDatasetSessionRead" + }, + "type": "array" + }, + "page": { + "default": 1, + "type": "integer" + }, + "pageSize": { + "default": 6, + "type": "integer" + }, + "qualityStatuses": { + "items": { + "type": "string" + }, + "type": "array" + }, + "scenes": { + "items": { + "type": "string" + }, + "type": "array" + }, + "sortOptions": { + "items": { + "type": "string" + }, + "type": "array" + }, + "tags": { + "items": { + "type": "string" + }, + "type": "array" + }, + "total": { + "default": 0, + "type": "integer" } }, - "required": [ - "status" - ], "type": "object" }, - "StorageLifecycleExecutionApplyRequest": { + "PublicEgoDatasetOrderManualResolutionRequest": { "properties": { - "executed_by": { + "actor_user_one_id": { + "default": "", + "type": "string" + }, + "download_url": { "default": "", "type": "string" }, @@ -30769,302 +31721,336 @@ "notes": { "default": "", "type": "string" + }, + "reason": { + "default": "", + "type": "string" + }, + "resolution_status": { + "default": "manual_resolution_required", + "type": "string" + }, + "storage_bucket": { + "default": "", + "type": "string" + }, + "storage_key": { + "default": "", + "type": "string" } }, "type": "object" }, - "StorageLifecycleExecutionCreate": { + "PublicEgoDatasetOrderRead": { "properties": { - "executed_by": { + "checkout_intent_id": { "default": "", "type": "string" }, - "metadata": { - "type": "object" + "company": { + "default": "", + "type": "string" }, - "notes": { + "contact": { "default": "", "type": "string" }, - "policy_version": { - "default": "crowd-v1", + "created_at": { + "default": "", + "type": "string" + }, + "delivery_jobs": { + "items": { + "$ref": "#/components/schemas/PublicEgoDatasetDeliveryJobRead" + }, + "type": "array" + }, + "next_action": { + "default": "", + "type": "string" + }, + "order_id": { + "type": "string" + }, + "payment_amount": { + "default": 0.0, + "type": "number" + }, + "payment_currency": { + "default": "CNY", + "type": "string" + }, + "payment_required": { + "default": true, + "type": "boolean" + }, + "payment_session": { + "$ref": "#/components/schemas/PublicEgoDatasetPaymentSessionRead" + }, + "payment_status": { + "default": "", "type": "string" }, + "session_count": { + "default": 0, + "type": "integer" + }, "status": { - "default": "planned", + "default": "", "type": "string" }, - "storage_scope": { - "default": "raw", + "timeline": { + "items": { + "$ref": "#/components/schemas/PublicEgoDatasetOrderTimelineEventRead" + }, + "type": "array" + }, + "updated_at": { + "default": "", "type": "string" } }, + "required": [ + "order_id" + ], "type": "object" }, - "StorageLifecycleExecutionStatusUpdate": { + "PublicEgoDatasetOrderTimelineEventRead": { "properties": { - "executed_by": { + "detail": { "default": "", "type": "string" }, - "metadata": { - "type": "object" + "event_id": { + "type": "string" }, - "notes": { + "occurred_at": { "default": "", "type": "string" }, "status": { - "default": "applied", + "type": "string" + }, + "title": { "type": "string" } }, + "required": [ + "event_id", + "status", + "title" + ], "type": "object" }, - "TaskAssignmentCreate": { + "PublicEgoDatasetPaymentCallbackRequest": { "properties": { - "capture_device_id": { - "default": "", - "type": "string" - }, - "deadline_at": { + "amount": { "anyOf": [ { - "format": "date-time", - "type": "string" + "type": "number" }, { "type": "null" } ] }, - "difficulty_weight": { - "default": 1.0, - "type": "number" - }, - "expected_sessions": { - "default": 1, - "type": "integer" + "currency": { + "default": "", + "type": "string" }, "metadata": { "type": "object" }, - "notes": { + "paid_at": { "default": "", "type": "string" }, - "novelty_weight": { - "default": 1.0, - "type": "number" - }, - "operator_id": { + "payment_reference": { "default": "", "type": "string" }, - "rarity_weight": { - "default": 1.0, - "type": "number" - }, - "status": { - "default": "open", - "type": "string" - }, - "task_id": { + "provider_transaction_id": { + "default": "", "type": "string" }, - "template_id": { + "status": { "type": "string" } }, "required": [ - "task_id", - "template_id" + "status" ], "type": "object" }, - "TaskAssignmentUpdate": { + "PublicEgoDatasetPaymentSessionRead": { "properties": { - "capture_device_id": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] + "callback_received_at": { + "default": "", + "type": "string" }, - "deadline_at": { - "anyOf": [ - { - "format": "date-time", - "type": "string" - }, - { - "type": "null" - } - ] + "checkout_url": { + "default": "", + "type": "string" }, - "difficulty_weight": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ] + "expires_at": { + "default": "", + "type": "string" }, - "expected_sessions": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ] + "mini_program_path": { + "default": "", + "type": "string" }, - "metadata": { - "type": "object" + "mini_program_query": { + "default": "", + "type": "string" }, - "notes": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] + "mini_program_url_link": { + "default": "", + "type": "string" }, - "novelty_weight": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ] + "mode": { + "default": "", + "type": "string" }, - "operator_id": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] + "payment_reference": { + "default": "", + "type": "string" }, - "rarity_weight": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ] + "provider": { + "default": "", + "type": "string" + }, + "provider_transaction_id": { + "default": "", + "type": "string" }, "status": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] + "default": "", + "type": "string" } }, "type": "object" }, - "TaskClaimRequest": { + "PublicEgoDatasetPreviewArtifactRead": { "properties": { - "consent_version": { - "default": "crowd-v1", + "asset_id": { "type": "string" }, - "metadata": { - "type": "object" + "preview_status": { + "default": "", + "type": "string" }, - "notes": { + "public_url": { "default": "", "type": "string" }, - "privacy_acknowledged": { - "default": false, - "type": "boolean" + "relpath": { + "default": "", + "type": "string" }, - "upload_scope_acknowledged": { - "default": false, - "type": "boolean" + "storage_key": { + "default": "", + "type": "string" } }, + "required": [ + "asset_id" + ], "type": "object" }, - "TaskLifecycleActionRequest": { + "PublicEgoDatasetPreviewRead": { "properties": { - "metadata": { + "audit": { "type": "object" }, - "notes": { + "deep_preview_available": { + "default": false, + "type": "boolean" + }, + "deep_preview_granted": { + "default": false, + "type": "boolean" + }, + "login_required_for_checkout": { + "default": true, + "type": "boolean" + }, + "login_required_for_deep_preview": { + "default": true, + "type": "boolean" + }, + "login_required_for_raw": { + "default": true, + "type": "boolean" + }, + "preview_access_mode": { "default": "", "type": "string" + }, + "preview_artifacts": { + "items": { + "$ref": "#/components/schemas/PublicEgoDatasetPreviewArtifactRead" + }, + "type": "array" + }, + "preview_free": { + "default": true, + "type": "boolean" + }, + "semantic_entries": { + "items": { + "type": "object" + }, + "type": "array" + }, + "session": { + "$ref": "#/components/schemas/PublicEgoDatasetSessionRead" } }, + "required": [ + "session" + ], "type": "object" }, - "TaskTemplateCreate": { + "PublicEgoDatasetQuoteLineRead": { "properties": { - "default_reward_amount_cents": { - "default": 0, - "type": "integer" - }, - "default_reward_points": { - "default": 0, - "type": "integer" - }, - "description": { - "default": "", + "currency": { + "default": "CNY", "type": "string" }, - "device_requirements": { - "type": "object" - }, - "domain": { + "data_tier": { "default": "", "type": "string" }, - "instructions": { + "delivery_block_reason": { "default": "", "type": "string" }, - "metadata": { - "type": "object" - }, - "privacy_notice": { + "delivery_eta": { "default": "", "type": "string" }, - "scenario": { + "edge_liveness_status": { "default": "", "type": "string" }, - "sensor_requirements": { - "type": "object" + "estimated_price": { + "default": 0.0, + "type": "number" }, - "skill": { + "pricing_policy_version": { "default": "", "type": "string" }, - "status": { - "default": "draft", + "raw_checkout_allowed": { + "default": false, + "type": "boolean" + }, + "raw_reachability_status": { + "default": "", "type": "string" }, - "template_id": { + "session_id": { "type": "string" }, "title": { @@ -31072,128 +32058,16158 @@ } }, "required": [ - "template_id", + "session_id", "title" ], "type": "object" }, - "UploadReceiptRequest": { + "PublicEgoDatasetQuoteRead": { "properties": { - "asset_id": { + "created_at": { + "default": "", "type": "string" }, - "metadata": { - "type": "object" - }, - "status": { + "currency": { + "default": "CNY", "type": "string" }, - "storage_key": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] + "delayed_delivery_count": { + "default": 0, + "type": "integer" }, - "stored_size_bytes": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ] - } - }, - "required": [ - "asset_id", - "status" - ], - "type": "object" - }, - "ValidationError": { - "properties": { - "ctx": { - "type": "object" + "immediate_delivery_count": { + "default": 0, + "type": "integer" }, - "input": {}, - "loc": { + "items": { "items": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "integer" - } - ] + "$ref": "#/components/schemas/PublicEgoDatasetQuoteLineRead" }, "type": "array" }, - "msg": { - "type": "string" + "login_required": { + "default": false, + "type": "boolean" }, - "type": { + "next_action": { + "default": "", + "type": "string" + }, + "preview_only_count": { + "default": 0, + "type": "integer" + }, + "pricing_policy_version": { + "default": "", + "type": "string" + }, + "quote_id": { + "type": "string" + }, + "session_count": { + "default": 0, + "type": "integer" + }, + "total_estimated_price": { + "default": 0.0, + "type": "number" + } + }, + "required": [ + "quote_id" + ], + "type": "object" + }, + "PublicEgoDatasetQuoteRequest": { + "properties": { + "currency": { + "default": "CNY", + "type": "string" + }, + "locale": { + "default": "", + "type": "string" + }, + "metadata": { + "type": "object" + }, + "notes": { + "default": "", + "type": "string" + }, + "session_ids": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "PublicEgoDatasetSessionRead": { + "properties": { + "action_labels": { + "description": "从语义目录聚合得到的动作标签。", + "items": { + "type": "string" + }, + "type": "array" + }, + "best_match_score": { + "default": 0.0, + "description": "当前查询下该 session 的最佳语义匹配分数。", + "type": "number" + }, + "caption": { + "default": "", + "description": "列表卡片展示的代表性 VLM/语义摘要。", + "type": "string" + }, + "capture_device_id": { + "default": "", + "type": "string" + }, + "captured_at": { + "default": "", + "type": "string" + }, + "completeness_score": { + "default": 0.0, + "type": "number" + }, + "currency": { + "default": "CNY", + "type": "string" + }, + "data_tier": { + "default": "", + "type": "string" + }, + "delivery_block_reason": { + "default": "", + "type": "string" + }, + "delivery_eta": { + "default": "", + "type": "string" + }, + "device_grade": { + "default": "", + "type": "string" + }, + "device_status": { + "default": "", + "type": "string" + }, + "download_heat": { + "default": 0.0, + "type": "number" + }, + "edge_liveness_status": { + "default": "", + "type": "string" + }, + "estimated_price": { + "default": 0.0, + "type": "number" + }, + "last_verified_at": { + "default": "", + "type": "string" + }, + "objects": { + "description": "从语义目录聚合得到的对象集合。", + "items": { + "type": "string" + }, + "type": "array" + }, + "preview_count": { + "default": 0, + "type": "integer" + }, + "preview_residency": { + "default": "", + "type": "string" + }, + "pricing_policy_version": { + "default": "", + "type": "string" + }, + "quality_status": { + "default": "", + "type": "string" + }, + "raw_availability": { + "default": "", + "type": "string" + }, + "raw_checkout_allowed": { + "default": false, + "description": "当前 session 是否允许进入 raw 下载报价与采购流程。", + "type": "boolean" + }, + "raw_reachability_status": { + "default": "", + "type": "string" + }, + "raw_residency": { + "default": "", + "type": "string" + }, + "retention_policy_summary": { + "type": "object" + }, + "runtime_profile": { + "default": "", + "type": "string" + }, + "sample_captions": { + "description": "供列表卡片快速展示的代表性 VLM 语义摘要。", + "items": { + "type": "string" + }, + "type": "array" + }, + "scene": { + "default": "", + "type": "string" + }, + "semantic_entry_count": { + "default": 0, + "type": "integer" + }, + "session_id": { + "description": "公开 catalog 中的 session 主键。", + "type": "string" + }, + "tags": { + "description": "从语义目录聚合得到的标签。", + "items": { + "type": "string" + }, + "type": "array" + }, + "task_id": { + "default": "", + "type": "string" + }, + "task_title": { + "default": "", + "type": "string" + }, + "title": { + "description": "公开结果标题,通常由任务标题和场景拼接而成。", + "type": "string" + }, + "top_fragments": { + "description": "当前查询命中的语义片段摘要;真正的搜索命中依据是这些 VLM/语义目录片段,而不是边缘节点本身。", + "items": { + "$ref": "#/components/schemas/PublicEgoDatasetFragmentRead" + }, + "type": "array" + }, + "usage_feedback_score": { + "default": 0.0, + "type": "number" + }, + "verified_by": { + "default": "", + "type": "string" + } + }, + "required": [ + "session_id", + "title" + ], + "type": "object" + }, + "PublicEgoDatasetWechatMiniPaymentLinkRead": { + "properties": { + "expires_at": { + "default": "", + "type": "string" + }, + "mini_program_path": { + "default": "", + "type": "string" + }, + "mini_program_query": { + "default": "", + "type": "string" + }, + "order_id": { + "type": "string" + }, + "payment_reference": { + "default": "", + "type": "string" + }, + "url_link": { + "default": "", + "type": "string" + } + }, + "required": [ + "order_id" + ], + "type": "object" + }, + "PublicEgoDatasetWechatMiniPaymentPrepareRead": { + "properties": { + "expires_at": { + "default": "", + "type": "string" + }, + "order_id": { + "type": "string" + }, + "payment_reference": { + "default": "", + "type": "string" + }, + "payment_status": { + "default": "", + "type": "string" + }, + "prepay_id": { + "default": "", + "type": "string" + }, + "request_payment": { + "$ref": "#/components/schemas/PublicEgoDatasetWechatRequestPaymentRead" + } + }, + "required": [ + "order_id", + "request_payment" + ], + "type": "object" + }, + "PublicEgoDatasetWechatMiniPaymentPrepareRequest": { + "properties": { + "wechat_login_code": { + "type": "string" + } + }, + "required": [ + "wechat_login_code" + ], + "type": "object" + }, + "PublicEgoDatasetWechatRequestPaymentRead": { + "properties": { + "app_id": { + "type": "string" + }, + "nonce_str": { + "type": "string" + }, + "package": { + "type": "string" + }, + "pay_sign": { + "type": "string" + }, + "sign_type": { + "default": "RSA", + "type": "string" + }, + "time_stamp": { + "type": "string" + } + }, + "required": [ + "app_id", + "time_stamp", + "nonce_str", + "package", + "pay_sign" + ], + "type": "object" + }, + "PushDeviceRegistrationRequest": { + "properties": { + "app_version": { + "default": "", + "type": "string" + }, + "device_id": { + "default": "", + "type": "string" + }, + "device_name": { + "default": "", + "type": "string" + }, + "metadata": { + "type": "object" + }, + "notification_authorized": { + "default": true, + "type": "boolean" + }, + "platform": { + "default": "ios", + "type": "string" + }, + "push_environment": { + "default": "production", + "type": "string" + }, + "push_token": { + "type": "string" + } + }, + "required": [ + "push_token" + ], + "type": "object" + }, + "PushDeviceStatusUpdateRequest": { + "properties": { + "metadata": { + "type": "object" + }, + "notification_authorized": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "status": { + "default": "inactive", + "type": "string" + } + }, + "type": "object" + }, + "ReviewDecisionRequest": { + "properties": { + "decision_source": { + "default": "manual", + "type": "string" + }, + "failure_codes": { + "items": { + "type": "string" + }, + "type": "array" + }, + "metadata": { + "type": "object" + }, + "review_notes": { + "default": "", + "type": "string" + }, + "review_status": { + "type": "string" + }, + "reviewer_id": { + "default": "", + "type": "string" + }, + "reward_amount_cents": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "reward_points": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "reward_status": { + "default": "pending", "type": "string" } }, - "required": [ - "loc", - "msg", - "type" - ], - "type": "object" - } - } - }, - "description": "Formal control-plane service for CHEK crowdsourced ego-humanoid data", - "openapi": "3.1.0", - "resources": { - "admin": { - "methods": { - "accessAudit": { - "description": "List Access Audit Admin", + "required": [ + "review_status" + ], + "type": "object" + }, + "RewardBatchDisputeRequest": { + "properties": { + "adjust_reward_amount_cents": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "adjust_reward_points": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "adjust_reward_status": { + "default": "", + "type": "string" + }, + "dispute_status": { + "default": "open", + "type": "string" + }, + "evidence_items": { + "items": { + "type": "object" + }, + "type": "array" + }, + "metadata": { + "type": "object" + }, + "notes": { + "default": "", + "type": "string" + }, + "reason": { + "default": "", + "type": "string" + }, + "requested_resolution": { + "default": "", + "type": "string" + }, + "resolution_outcome": { + "default": "", + "type": "string" + }, + "resolved_by": { + "default": "", + "type": "string" + }, + "reward_ids": { + "items": { + "type": "string" + }, + "type": "array" + }, + "settlement_metadata": { + "type": "object" + }, + "settlement_notes": { + "default": "", + "type": "string" + }, + "settlement_status": { + "default": "", + "type": "string" + } + }, + "type": "object" + }, + "RewardBatchSettlementRequest": { + "properties": { + "metadata": { + "type": "object" + }, + "notes": { + "default": "", + "type": "string" + }, + "reward_ids": { + "items": { + "type": "string" + }, + "type": "array" + }, + "settled_by": { + "default": "", + "type": "string" + }, + "status": { + "default": "paid", + "type": "string" + } + }, + "type": "object" + }, + "RewardDisputeRequest": { + "properties": { + "adjust_reward_amount_cents": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "adjust_reward_points": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "adjust_reward_status": { + "default": "", + "type": "string" + }, + "dispute_status": { + "default": "open", + "type": "string" + }, + "evidence_items": { + "items": { + "type": "object" + }, + "type": "array" + }, + "metadata": { + "type": "object" + }, + "notes": { + "default": "", + "type": "string" + }, + "reason": { + "default": "", + "type": "string" + }, + "requested_resolution": { + "default": "", + "type": "string" + }, + "resolution_outcome": { + "default": "", + "type": "string" + }, + "resolved_by": { + "default": "", + "type": "string" + }, + "settlement_metadata": { + "type": "object" + }, + "settlement_notes": { + "default": "", + "type": "string" + }, + "settlement_status": { + "default": "", + "type": "string" + } + }, + "type": "object" + }, + "RewardEvidenceRequest": { + "properties": { + "attachments": { + "items": { + "type": "string" + }, + "type": "array" + }, + "description": { + "default": "", + "type": "string" + }, + "metadata": { + "type": "object" + }, + "title": { + "default": "", + "type": "string" + } + }, + "type": "object" + }, + "RewardLedgerUpsertRequest": { + "properties": { + "approved_at": { + "anyOf": [ + { + "format": "date-time", + "type": "string" + }, + { + "type": "null" + } + ] + }, + "base_reward_amount_cents": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "base_reward_points": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "difficulty_bonus_cents": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "final_reward_amount_cents": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "final_reward_points": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "metadata": { + "type": "object" + }, + "notes": { + "default": "", + "type": "string" + }, + "novelty_bonus_cents": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "penalty_cents": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "quality_bonus_cents": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "rarity_bonus_cents": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "reviewer_id": { + "default": "", + "type": "string" + }, + "session_id": { + "type": "string" + }, + "status": { + "default": "pending", + "type": "string" + } + }, + "required": [ + "session_id" + ], + "type": "object" + }, + "RewardSettlementRequest": { + "properties": { + "metadata": { + "type": "object" + }, + "notes": { + "default": "", + "type": "string" + }, + "settled_by": { + "default": "", + "type": "string" + }, + "status": { + "default": "paid", + "type": "string" + } + }, + "type": "object" + }, + "SemanticCatalogEntryUpsert": { + "properties": { + "action_guess": { + "default": "", + "type": "string" + }, + "caption": { + "default": "", + "type": "string" + }, + "edge_time_ns": { + "default": 0, + "type": "integer" + }, + "embedding_key": { + "default": "", + "type": "string" + }, + "embedding_vector": { + "items": { + "type": "number" + }, + "type": "array" + }, + "entry_id": { + "type": "string" + }, + "entry_type": { + "default": "event", + "type": "string" + }, + "metadata": { + "type": "object" + }, + "objects": { + "items": { + "type": "string" + }, + "type": "array" + }, + "preview_relpath": { + "default": "", + "type": "string" + }, + "source_time_ns": { + "default": 0, + "type": "integer" + }, + "tags": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "entry_id" + ], + "type": "object" + }, + "SemanticCatalogUpsertRequest": { + "properties": { + "entries": { + "items": { + "$ref": "#/components/schemas/SemanticCatalogEntryUpsert" + }, + "type": "array" + } + }, + "type": "object" + }, + "SessionArtifactUpsertRequest": { + "properties": { + "asset_id": { + "type": "string" + }, + "category": { + "default": "", + "type": "string" + }, + "declared_size_bytes": { + "default": 0, + "type": "integer" + }, + "delivery_status": { + "default": "not_requested", + "type": "string" + }, + "kind": { + "default": "", + "type": "string" + }, + "metadata": { + "type": "object" + }, + "preview_status": { + "default": "not_ready", + "type": "string" + }, + "relpath": { + "type": "string" + }, + "required": { + "default": true, + "type": "boolean" + }, + "residency_status": { + "default": "cloud_mirrored", + "type": "string" + }, + "sha256": { + "default": "", + "type": "string" + }, + "status": { + "default": "declared", + "type": "string" + }, + "storage_key": { + "default": "", + "type": "string" + }, + "stored_size_bytes": { + "default": 0, + "type": "integer" + } + }, + "required": [ + "asset_id", + "relpath" + ], + "type": "object" + }, + "SessionDeleteRequest": { + "properties": { + "actor_user_one_id": { + "default": "", + "type": "string" + }, + "metadata": { + "type": "object" + }, + "notes": { + "default": "", + "type": "string" + }, + "reason": { + "default": "", + "type": "string" + } + }, + "type": "object" + }, + "SessionEntitlementRequest": { + "properties": { + "metadata": { + "type": "object" + }, + "notes": { + "default": "", + "type": "string" + }, + "purchase_reference": { + "default": "", + "type": "string" + } + }, + "type": "object" + }, + "SessionQualityUpdateRequest": { + "properties": { + "auto_quality_score": { + "default": 0.0, + "type": "number" + }, + "metadata": { + "type": "object" + }, + "privacy_level": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "quality_status": { + "default": "", + "type": "string" + }, + "review_risk_score": { + "default": 0.0, + "type": "number" + } + }, + "type": "object" + }, + "SessionRetentionUpdateRequest": { + "properties": { + "actor_user_one_id": { + "default": "", + "type": "string" + }, + "metadata": { + "type": "object" + }, + "notes": { + "default": "", + "type": "string" + }, + "preview_retention_days": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "raw_retention_days": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + } + }, + "type": "object" + }, + "SessionUpsertRequest": { + "properties": { + "artifact_count": { + "default": 0, + "type": "integer" + }, + "auto_quality_score": { + "default": 0.0, + "type": "number" + }, + "capture_device_id": { + "default": "", + "type": "string" + }, + "metadata": { + "type": "object" + }, + "operator_id": { + "default": "", + "type": "string" + }, + "preview_residency": { + "default": "", + "type": "string" + }, + "privacy_level": { + "default": "restricted", + "type": "string" + }, + "quality_status": { + "default": "", + "type": "string" + }, + "raw_residency": { + "default": "", + "type": "string" + }, + "ready_for_review": { + "default": false, + "type": "boolean" + }, + "review_risk_score": { + "default": 0.0, + "type": "number" + }, + "runtime_profile": { + "default": "", + "type": "string" + }, + "session_id": { + "type": "string" + }, + "status": { + "default": "recording", + "type": "string" + }, + "storage_namespace": { + "default": "", + "type": "string" + }, + "task_id": { + "default": "", + "type": "string" + }, + "total_size_bytes": { + "default": 0, + "type": "integer" + }, + "trip_id": { + "default": "", + "type": "string" + }, + "upload_policy": { + "default": "metadata_only", + "type": "string" + } + }, + "required": [ + "session_id" + ], + "type": "object" + }, + "SessionWorkerStatusUpdateRequest": { + "properties": { + "metadata": { + "type": "object" + }, + "run_id": { + "default": "", + "type": "string" + }, + "stage": { + "default": "", + "type": "string" + }, + "status": { + "type": "string" + }, + "summary": { + "type": "object" + }, + "worker_name": { + "default": "crowd-data-worker", + "type": "string" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "SiteAssetArchiveRead": { + "properties": { + "asset_id": { + "type": "string" + }, + "revision": { + "type": "integer" + }, + "status": { + "type": "string" + }, + "updated_at": { + "format": "date-time", + "type": "string" + } + }, + "required": [ + "asset_id", + "status", + "revision", + "updated_at" + ], + "type": "object" + }, + "SiteAssetCompleteRequest": { + "properties": { + "expected_revision": { + "type": "integer" + } + }, + "required": [ + "expected_revision" + ], + "type": "object" + }, + "SiteAssetListRead": { + "properties": { + "count": { + "default": 0, + "type": "integer" + }, + "results": { + "items": { + "$ref": "#/components/schemas/SiteAssetRead" + }, + "type": "array" + }, + "total": { + "default": 0, + "type": "integer" + } + }, + "type": "object" + }, + "SiteAssetRead": { + "properties": { + "asset_id": { + "type": "string" + }, + "asset_ref": { + "type": "string" + }, + "content_type": { + "type": "string" + }, + "created_at": { + "format": "date-time", + "type": "string" + }, + "etag": { + "type": "string" + }, + "media_kind": { + "enum": [ + "image", + "video" + ], + "type": "string" + }, + "metadata": { + "type": "object" + }, + "original_filename": { + "type": "string" + }, + "public_url": { + "type": "string" + }, + "revision": { + "type": "integer" + }, + "sha256": { + "type": "string" + }, + "size_bytes": { + "type": "integer" + }, + "status": { + "enum": [ + "pending", + "verified", + "blocked", + "archived" + ], + "type": "string" + }, + "updated_at": { + "format": "date-time", + "type": "string" + }, + "verification_error": { + "type": "string" + }, + "verified_at": { + "anyOf": [ + { + "format": "date-time", + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "asset_id", + "asset_ref", + "media_kind", + "original_filename", + "content_type", + "size_bytes", + "sha256", + "etag", + "status", + "verification_error", + "public_url", + "revision", + "verified_at", + "created_at", + "updated_at" + ], + "type": "object" + }, + "SiteAssetUploadIntentCreate": { + "properties": { + "content_type": { + "type": "string" + }, + "filename": { + "type": "string" + }, + "metadata": { + "type": "object" + }, + "sha256": { + "default": "", + "type": "string" + }, + "size_bytes": { + "type": "integer" + } + }, + "required": [ + "filename", + "content_type", + "size_bytes" + ], + "type": "object" + }, + "SiteAssetUploadIntentRead": { + "properties": { + "asset_id": { + "type": "string" + }, + "asset_ref": { + "type": "string" + }, + "content_type": { + "type": "string" + }, + "created_at": { + "format": "date-time", + "type": "string" + }, + "etag": { + "type": "string" + }, + "media_kind": { + "enum": [ + "image", + "video" + ], + "type": "string" + }, + "metadata": { + "type": "object" + }, + "original_filename": { + "type": "string" + }, + "public_url": { + "type": "string" + }, + "revision": { + "type": "integer" + }, + "sha256": { + "type": "string" + }, + "size_bytes": { + "type": "integer" + }, + "status": { + "enum": [ + "pending", + "verified", + "blocked", + "archived" + ], + "type": "string" + }, + "updated_at": { + "format": "date-time", + "type": "string" + }, + "upload": { + "type": "object" + }, + "verification_error": { + "type": "string" + }, + "verified_at": { + "anyOf": [ + { + "format": "date-time", + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "asset_id", + "asset_ref", + "media_kind", + "original_filename", + "content_type", + "size_bytes", + "sha256", + "etag", + "status", + "verification_error", + "public_url", + "revision", + "verified_at", + "created_at", + "updated_at", + "upload" + ], + "type": "object" + }, + "SiteContentArchiveRead": { + "properties": { + "content_id": { + "type": "string" + }, + "revision": { + "type": "integer" + }, + "status": { + "type": "string" + }, + "updated_at": { + "format": "date-time", + "type": "string" + } + }, + "required": [ + "content_id", + "status", + "revision", + "updated_at" + ], + "type": "object" + }, + "SiteContentCreate": { + "properties": { + "asset_ref": { + "default": "", + "type": "string" + }, + "asset_url": { + "default": "", + "type": "string" + }, + "content_type": { + "enum": [ + "milestone_news", + "partner", + "case_study" + ], + "type": "string" + }, + "href": { + "default": "", + "type": "string" + }, + "locale": { + "default": "zh", + "enum": [ + "zh", + "en", + "ja" + ], + "type": "string" + }, + "metadata": { + "type": "object" + }, + "page_scope": { + "enum": [ + "global", + "about", + "humanoid", + "drive" + ], + "type": "string" + }, + "published_at": { + "anyOf": [ + { + "format": "date-time", + "type": "string" + }, + { + "type": "null" + } + ] + }, + "slug": { + "type": "string" + }, + "sort_order": { + "default": 0, + "type": "integer" + }, + "status": { + "default": "draft", + "enum": [ + "draft", + "published", + "archived" + ], + "type": "string" + }, + "summary": { + "default": "", + "type": "string" + }, + "title": { + "default": "", + "type": "string" + }, + "video_ref": { + "default": "", + "type": "string" + }, + "video_url": { + "default": "", + "type": "string" + } + }, + "required": [ + "content_type", + "page_scope", + "slug" + ], + "type": "object" + }, + "SiteContentListRead": { + "properties": { + "count": { + "default": 0, + "type": "integer" + }, + "managed_content_types": { + "items": { + "enum": [ + "milestone_news", + "partner", + "case_study" + ], + "type": "string" + }, + "type": "array" + }, + "results": { + "items": { + "$ref": "#/components/schemas/SiteContentRead" + }, + "type": "array" + }, + "total": { + "default": 0, + "type": "integer" + } + }, + "type": "object" + }, + "SiteContentRead": { + "properties": { + "asset_ref": { + "default": "", + "type": "string" + }, + "asset_url": { + "type": "string" + }, + "content_id": { + "type": "string" + }, + "content_type": { + "enum": [ + "milestone_news", + "partner", + "case_study" + ], + "type": "string" + }, + "created_at": { + "format": "date-time", + "type": "string" + }, + "href": { + "type": "string" + }, + "locale": { + "enum": [ + "zh", + "en", + "ja" + ], + "type": "string" + }, + "metadata": { + "type": "object" + }, + "page_scope": { + "enum": [ + "global", + "about", + "humanoid", + "drive" + ], + "type": "string" + }, + "published_at": { + "anyOf": [ + { + "format": "date-time", + "type": "string" + }, + { + "type": "null" + } + ] + }, + "revision": { + "type": "integer" + }, + "slug": { + "type": "string" + }, + "sort_order": { + "type": "integer" + }, + "status": { + "enum": [ + "draft", + "published", + "archived" + ], + "type": "string" + }, + "summary": { + "type": "string" + }, + "title": { + "type": "string" + }, + "updated_at": { + "format": "date-time", + "type": "string" + }, + "video_ref": { + "default": "", + "type": "string" + }, + "video_url": { + "type": "string" + } + }, + "required": [ + "content_id", + "content_type", + "page_scope", + "slug", + "locale", + "title", + "summary", + "asset_url", + "href", + "video_url", + "status", + "sort_order", + "published_at", + "revision", + "created_at", + "updated_at" + ], + "type": "object" + }, + "SiteContentUpdate": { + "properties": { + "asset_ref": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "asset_url": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "expected_revision": { + "type": "integer" + }, + "href": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "metadata": { + "anyOf": [ + { + "type": "object" + }, + { + "type": "null" + } + ] + }, + "published_at": { + "anyOf": [ + { + "format": "date-time", + "type": "string" + }, + { + "type": "null" + } + ] + }, + "sort_order": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "status": { + "anyOf": [ + { + "enum": [ + "draft", + "published", + "archived" + ], + "type": "string" + }, + { + "type": "null" + } + ] + }, + "summary": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "title": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "video_ref": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "video_url": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "expected_revision" + ], + "type": "object" + }, + "StorageLifecycleExecutionApplyRequest": { + "properties": { + "executed_by": { + "default": "", + "type": "string" + }, + "metadata": { + "type": "object" + }, + "notes": { + "default": "", + "type": "string" + } + }, + "type": "object" + }, + "StorageLifecycleExecutionCreate": { + "properties": { + "executed_by": { + "default": "", + "type": "string" + }, + "metadata": { + "type": "object" + }, + "notes": { + "default": "", + "type": "string" + }, + "policy_version": { + "default": "crowd-v1", + "type": "string" + }, + "status": { + "default": "planned", + "type": "string" + }, + "storage_scope": { + "default": "raw", + "type": "string" + } + }, + "type": "object" + }, + "StorageLifecycleExecutionStatusUpdate": { + "properties": { + "executed_by": { + "default": "", + "type": "string" + }, + "metadata": { + "type": "object" + }, + "notes": { + "default": "", + "type": "string" + }, + "status": { + "default": "applied", + "type": "string" + } + }, + "type": "object" + }, + "TaskAssignmentCreate": { + "properties": { + "capture_device_id": { + "default": "", + "type": "string" + }, + "deadline_at": { + "anyOf": [ + { + "format": "date-time", + "type": "string" + }, + { + "type": "null" + } + ] + }, + "difficulty_weight": { + "default": 1.0, + "type": "number" + }, + "expected_sessions": { + "default": 1, + "type": "integer" + }, + "metadata": { + "type": "object" + }, + "notes": { + "default": "", + "type": "string" + }, + "novelty_weight": { + "default": 1.0, + "type": "number" + }, + "operator_id": { + "default": "", + "type": "string" + }, + "rarity_weight": { + "default": 1.0, + "type": "number" + }, + "status": { + "default": "open", + "type": "string" + }, + "task_id": { + "type": "string" + }, + "template_id": { + "type": "string" + } + }, + "required": [ + "task_id", + "template_id" + ], + "type": "object" + }, + "TaskAssignmentUpdate": { + "properties": { + "capture_device_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deadline_at": { + "anyOf": [ + { + "format": "date-time", + "type": "string" + }, + { + "type": "null" + } + ] + }, + "difficulty_weight": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ] + }, + "expected_sessions": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "metadata": { + "type": "object" + }, + "notes": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "novelty_weight": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ] + }, + "operator_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "rarity_weight": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ] + }, + "status": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "type": "object" + }, + "TaskClaimRequest": { + "properties": { + "consent_version": { + "default": "crowd-v1", + "type": "string" + }, + "metadata": { + "type": "object" + }, + "notes": { + "default": "", + "type": "string" + }, + "privacy_acknowledged": { + "default": false, + "type": "boolean" + }, + "upload_scope_acknowledged": { + "default": false, + "type": "boolean" + } + }, + "type": "object" + }, + "TaskLifecycleActionRequest": { + "properties": { + "metadata": { + "type": "object" + }, + "notes": { + "default": "", + "type": "string" + } + }, + "type": "object" + }, + "TaskTemplateCreate": { + "properties": { + "default_reward_amount_cents": { + "default": 0, + "type": "integer" + }, + "default_reward_points": { + "default": 0, + "type": "integer" + }, + "description": { + "default": "", + "type": "string" + }, + "device_requirements": { + "type": "object" + }, + "domain": { + "default": "", + "type": "string" + }, + "instructions": { + "default": "", + "type": "string" + }, + "metadata": { + "type": "object" + }, + "privacy_notice": { + "default": "", + "type": "string" + }, + "scenario": { + "default": "", + "type": "string" + }, + "sensor_requirements": { + "type": "object" + }, + "skill": { + "default": "", + "type": "string" + }, + "status": { + "default": "draft", + "type": "string" + }, + "template_id": { + "type": "string" + }, + "title": { + "type": "string" + } + }, + "required": [ + "template_id", + "title" + ], + "type": "object" + }, + "TaskTemplateUpdate": { + "properties": { + "capture_profile": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "config": { + "anyOf": [ + { + "type": "object" + }, + { + "type": "null" + } + ] + }, + "default_reward_amount_cents": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "default_reward_points": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "description": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "device_requirements": { + "anyOf": [ + { + "type": "object" + }, + { + "type": "null" + } + ] + }, + "domain": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "expected_sessions": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "instructions": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "is_active": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "metadata": { + "anyOf": [ + { + "type": "object" + }, + { + "type": "null" + } + ] + }, + "privacy_notice": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "required_modalities": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "object" + }, + { + "type": "null" + } + ] + }, + "reward_amount": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "number" + }, + { + "type": "null" + } + ] + }, + "scenario": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "sensor_requirements": { + "anyOf": [ + { + "type": "object" + }, + { + "type": "null" + } + ] + }, + "skill": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "status": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "task_tag": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "title": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "type": "object" + }, + "UploadReceiptRequest": { + "properties": { + "asset_id": { + "type": "string" + }, + "metadata": { + "type": "object" + }, + "status": { + "type": "string" + }, + "storage_key": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "stored_size_bytes": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "asset_id", + "status" + ], + "type": "object" + }, + "ValidationError": { + "properties": { + "ctx": { + "type": "object" + }, + "input": {}, + "loc": { + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "integer" + } + ] + }, + "type": "array" + }, + "msg": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "required": [ + "loc", + "msg", + "type" + ], + "type": "object" + } + } + }, + "description": "Formal control-plane service for CHEK crowdsourced ego-humanoid data", + "openapi": "3.1.0", + "resources": { + "admin": { + "methods": { + "accessAudit": { + "description": "List Access Audit Admin", + "httpMethod": "GET", + "operationId": "list_access_audit_admin_v1_admin_access_audit_get", + "parameters": [ + { + "description": null, + "location": "query", + "name": "action", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "session_id", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "actor_user_one_id", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/access-audit", + "pathParameters": [], + "queryParameters": [ + "action", + "session_id", + "actor_user_one_id" + ], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/access-audit", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "List Access Audit Admin", + "tags": [ + "catalog" + ] + }, + "benchmarkCandidates": { + "description": "Benchmark Candidates", + "httpMethod": "GET", + "operationId": "benchmark_candidates_v1_admin_benchmark_candidates_get", + "parameters": [ + { + "description": null, + "location": "query", + "name": "min_quality_score", + "required": false, + "schema": { + "default": 90.0, + "type": "number" + } + }, + { + "description": null, + "location": "query", + "name": "min_novelty_score", + "required": false, + "schema": { + "default": 0.2, + "type": "number" + } + }, + { + "description": null, + "location": "query", + "name": "max_duplication_risk", + "required": false, + "schema": { + "default": 0.35, + "type": "number" + } + }, + { + "description": null, + "location": "query", + "name": "require_fisheye", + "required": false, + "schema": { + "default": false, + "type": "boolean" + } + }, + { + "description": null, + "location": "query", + "name": "decision", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "limit", + "required": false, + "schema": { + "default": 100, + "type": "integer" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/benchmark/candidates", + "pathParameters": [], + "queryParameters": [ + "min_quality_score", + "min_novelty_score", + "max_duplication_risk", + "require_fisheye", + "decision", + "limit" + ], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/benchmark/candidates", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Benchmark Candidates", + "tags": [ + "ops" + ] + }, + "benchmarkCandidatesDecision": { + "description": "Benchmark Candidate Decision", + "httpMethod": "POST", + "operationId": "benchmark_candidate_decision_v1_admin_benchmark_candidates__session_id__decision_post", + "parameters": [ + { + "description": null, + "location": "path", + "name": "session_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/benchmark/candidates/{session_id}/decision", + "pathParameters": [ + "session_id" + ], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/BenchmarkCandidateDecisionRequest" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/benchmark/candidates/{session_id}/decision", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Benchmark Candidate Decision", + "tags": [ + "ops" + ] + }, + "benchmarkReleases": { + "description": "List Benchmark Releases", + "httpMethod": "GET", + "operationId": "list_benchmark_releases_v1_admin_benchmark_releases_get", + "parameters": [ + { + "description": null, + "location": "query", + "name": "dataset_version", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "status", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/benchmark/releases", + "pathParameters": [], + "queryParameters": [ + "dataset_version", + "status" + ], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/benchmark/releases", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "List Benchmark Releases", + "tags": [ + "ops" + ] + }, + "benchmarkReleasesGet": { + "description": "Get Benchmark Release Detail", + "httpMethod": "GET", + "operationId": "get_benchmark_release_detail_v1_admin_benchmark_releases__release_id__get", + "parameters": [ + { + "description": null, + "location": "path", + "name": "release_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/benchmark/releases/{release_id}", + "pathParameters": [ + "release_id" + ], + "queryParameters": [], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/benchmark/releases/{release_id}", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Get Benchmark Release Detail", + "tags": [ + "ops" + ] + }, + "benchmarkReleasesManifest": { + "description": "Get Benchmark Release Manifest", + "httpMethod": "GET", + "operationId": "get_benchmark_release_manifest_v1_admin_benchmark_releases__release_id__manifest_get", + "parameters": [ + { + "description": null, + "location": "path", + "name": "release_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/benchmark/releases/{release_id}/manifest", + "pathParameters": [ + "release_id" + ], + "queryParameters": [], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/benchmark/releases/{release_id}/manifest", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Get Benchmark Release Manifest", + "tags": [ + "ops" + ] + }, + "benchmarkReleasesPost": { + "description": "Create Benchmark Release", + "httpMethod": "POST", + "operationId": "create_benchmark_release_v1_admin_benchmark_releases_post", + "parameters": [ + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/benchmark/releases", + "pathParameters": [], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/BenchmarkReleaseCreate" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/benchmark/releases", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Create Benchmark Release", + "tags": [ + "ops" + ] + }, + "benchmarkReleasesStatus": { + "description": "Update Benchmark Release Status", + "httpMethod": "POST", + "operationId": "update_benchmark_release_status_v1_admin_benchmark_releases__release_id__status_post", + "parameters": [ + { + "description": null, + "location": "path", + "name": "release_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/benchmark/releases/{release_id}/status", + "pathParameters": [ + "release_id" + ], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/BenchmarkReleaseStatusUpdate" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/benchmark/releases/{release_id}/status", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Update Benchmark Release Status", + "tags": [ + "ops" + ] + }, + "benchmarkSummary": { + "description": "Benchmark Summary", + "httpMethod": "GET", + "operationId": "benchmark_summary_v1_admin_benchmark_summary_get", + "parameters": [ + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/benchmark/summary", + "pathParameters": [], + "queryParameters": [], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/benchmark/summary", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Benchmark Summary", + "tags": [ + "ops" + ] + }, + "benchmarkTrends": { + "description": "Benchmark Trends", + "httpMethod": "GET", + "operationId": "benchmark_trends_v1_admin_benchmark_trends_get", + "parameters": [ + { + "description": null, + "location": "query", + "name": "limit", + "required": false, + "schema": { + "default": 14, + "type": "integer" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/benchmark/trends", + "pathParameters": [], + "queryParameters": [ + "limit" + ], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/benchmark/trends", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Benchmark Trends", + "tags": [ + "ops" + ] + }, + "catalogReconcileEdgeRaw": { + "description": "Reconcile Edge Only Raw Catalog", + "httpMethod": "POST", + "operationId": "reconcile_edge_only_raw_catalog_v1_admin_catalog_reconcile_edge_raw_post", + "parameters": [ + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/catalog/reconcile-edge-raw", + "pathParameters": [], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/EdgeRawReconciliationRequest" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/catalog/reconcile-edge-raw", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Reconcile Edge Only Raw Catalog", + "tags": [ + "catalog" + ] + }, + "catalogSessionsDelete": { + "description": "Delete Catalog Session", + "httpMethod": "POST", + "operationId": "delete_catalog_session_v1_admin_catalog_sessions__session_id__delete_post", + "parameters": [ + { + "description": null, + "location": "path", + "name": "session_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/catalog/sessions/{session_id}/delete", + "pathParameters": [ + "session_id" + ], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/SessionDeleteRequest" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/catalog/sessions/{session_id}/delete", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Delete Catalog Session", + "tags": [ + "catalog" + ] + }, + "catalogSessionsRetention": { + "description": "Update Catalog Session Retention", + "httpMethod": "POST", + "operationId": "update_catalog_session_retention_v1_admin_catalog_sessions__session_id__retention_post", + "parameters": [ + { + "description": null, + "location": "path", + "name": "session_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/catalog/sessions/{session_id}/retention", + "pathParameters": [ + "session_id" + ], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/SessionRetentionUpdateRequest" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/catalog/sessions/{session_id}/retention", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Update Catalog Session Retention", + "tags": [ + "catalog" + ] + }, + "datasetMemberships": { + "description": "List Dataset Memberships", + "httpMethod": "GET", + "operationId": "list_dataset_memberships_v1_admin_dataset_memberships_get", + "parameters": [ + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/dataset-memberships", + "pathParameters": [], + "queryParameters": [], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/dataset-memberships", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "List Dataset Memberships", + "tags": [ + "exports" + ] + }, + "datasetMembershipsPost": { + "description": "Create Dataset Membership", + "httpMethod": "POST", + "operationId": "create_dataset_membership_v1_admin_dataset_memberships_post", + "parameters": [ + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/dataset-memberships", + "pathParameters": [], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/DatasetMembershipCreate" + } + } + }, + "responses": { + "201": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/dataset-memberships", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Create Dataset Membership", + "tags": [ + "exports" + ] + }, + "edgeDevices": { + "description": "List Edge Devices", + "httpMethod": "GET", + "operationId": "list_edge_devices_v1_admin_edge_devices_get", + "parameters": [ + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/edge-devices", + "pathParameters": [], + "queryParameters": [], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/edge-devices", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "List Edge Devices", + "tags": [ + "devices" + ] + }, + "edgeDevicesActivate": { + "description": "Activate Edge Device", + "httpMethod": "POST", + "operationId": "activate_edge_device_v1_admin_edge_devices__device_id__activate_post", + "parameters": [ + { + "description": null, + "location": "path", + "name": "device_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/edge-devices/{device_id}/activate", + "pathParameters": [ + "device_id" + ], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/EdgeDeviceActivateRequest" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/edge-devices/{device_id}/activate", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Activate Edge Device", + "tags": [ + "devices" + ] + }, + "edgeDevicesFactoryReset": { + "description": "Factory Reset Edge Device", + "httpMethod": "POST", + "operationId": "factory_reset_edge_device_v1_admin_edge_devices__device_id__factory_reset_post", + "parameters": [ + { + "description": null, + "location": "path", + "name": "device_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/edge-devices/{device_id}/factory-reset", + "pathParameters": [ + "device_id" + ], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": false, + "schema": { + "application/json": { + "anyOf": [ + { + "$ref": "#/components/schemas/EdgeDeviceFactoryResetRequest" + }, + { + "type": "null" + } + ] + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/edge-devices/{device_id}/factory-reset", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Factory Reset Edge Device", + "tags": [ + "devices" + ] + }, + "edgeDevicesPost": { + "description": "Create Edge Device", + "httpMethod": "POST", + "operationId": "create_edge_device_v1_admin_edge_devices_post", + "parameters": [ + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/edge-devices", + "pathParameters": [], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/EdgeDeviceCreate" + } + } + }, + "responses": { + "201": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/edge-devices", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Create Edge Device", + "tags": [ + "devices" + ] + }, + "episodeExports": { + "description": "List Episode Exports", + "httpMethod": "GET", + "operationId": "list_episode_exports_v1_admin_episode_exports_get", + "parameters": [ + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/episode-exports", + "pathParameters": [], + "queryParameters": [], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/episode-exports", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "List Episode Exports", + "tags": [ + "exports" + ] + }, + "episodeExportsPost": { + "description": "Create Episode Export", + "httpMethod": "POST", + "operationId": "create_episode_export_v1_admin_episode_exports_post", + "parameters": [ + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/episode-exports", + "pathParameters": [], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/EpisodeExportCreate" + } + } + }, + "responses": { + "201": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/episode-exports", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Create Episode Export", + "tags": [ + "exports" + ] + }, + "governanceOverview": { + "description": "Governance Overview", + "httpMethod": "GET", + "operationId": "governance_overview_v1_admin_governance_overview_get", + "parameters": [ + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/governance/overview", + "pathParameters": [], + "queryParameters": [], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/governance/overview", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Governance Overview", + "tags": [ + "ops" + ] + }, + "notificationDeliveries": { + "description": "List Notification Deliveries", + "httpMethod": "GET", + "operationId": "list_notification_deliveries_v1_admin_notification_deliveries_get", + "parameters": [ + { + "description": null, + "location": "query", + "name": "user_one_id", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "status", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "channel", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "limit", + "required": false, + "schema": { + "default": 200, + "type": "integer" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/notification-deliveries", + "pathParameters": [], + "queryParameters": [ + "user_one_id", + "status", + "channel", + "limit" + ], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/notification-deliveries", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "List Notification Deliveries", + "tags": [ + "notifications" + ] + }, + "notificationDeliveriesDispatch": { + "description": "Dispatch Notification Delivery", + "httpMethod": "POST", + "operationId": "dispatch_notification_delivery_v1_admin_notification_deliveries__delivery_id__dispatch_post", + "parameters": [ + { + "description": null, + "location": "path", + "name": "delivery_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/notification-deliveries/{delivery_id}/dispatch", + "pathParameters": [ + "delivery_id" + ], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/NotificationDeliveryDispatchRequest" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/notification-deliveries/{delivery_id}/dispatch", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Dispatch Notification Delivery", + "tags": [ + "notifications" + ] + }, + "notificationDeliveriesDispatchPending": { + "description": "Dispatch Pending Notification Deliveries", + "httpMethod": "POST", + "operationId": "dispatch_pending_notification_deliveries_v1_admin_notification_deliveries_dispatch_pending_post", + "parameters": [ + { + "description": null, + "location": "query", + "name": "status_filter", + "required": false, + "schema": { + "default": "queued", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "limit", + "required": false, + "schema": { + "default": 50, + "type": "integer" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/notification-deliveries/dispatch-pending", + "pathParameters": [], + "queryParameters": [ + "status_filter", + "limit" + ], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/notification-deliveries/dispatch-pending", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Dispatch Pending Notification Deliveries", + "tags": [ + "notifications" + ] + }, + "notificationDeliveriesRetryFailed": { + "description": "Retry Failed Notification Deliveries", + "httpMethod": "POST", + "operationId": "retry_failed_notification_deliveries_v1_admin_notification_deliveries_retry_failed_post", + "parameters": [ + { + "description": null, + "location": "query", + "name": "limit", + "required": false, + "schema": { + "default": 50, + "type": "integer" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/notification-deliveries/retry-failed", + "pathParameters": [], + "queryParameters": [ + "limit" + ], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/notification-deliveries/retry-failed", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Retry Failed Notification Deliveries", + "tags": [ + "notifications" + ] + }, + "notificationDeliveriesStatus": { + "description": "Update Notification Delivery Status", + "httpMethod": "POST", + "operationId": "update_notification_delivery_status_v1_admin_notification_deliveries__delivery_id__status_post", + "parameters": [ + { + "description": null, + "location": "path", + "name": "delivery_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/notification-deliveries/{delivery_id}/status", + "pathParameters": [ + "delivery_id" + ], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/NotificationDeliveryStatusUpdateRequest" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/notification-deliveries/{delivery_id}/status", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Update Notification Delivery Status", + "tags": [ + "notifications" + ] + }, + "notifications": { + "description": "List Notifications", + "httpMethod": "GET", + "operationId": "list_notifications_v1_admin_notifications_get", + "parameters": [ + { + "description": null, + "location": "query", + "name": "user_one_id", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "category", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "status", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "limit", + "required": false, + "schema": { + "default": 200, + "type": "integer" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/notifications", + "pathParameters": [], + "queryParameters": [ + "user_one_id", + "category", + "status", + "limit" + ], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/notifications", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "List Notifications", + "tags": [ + "notifications" + ] + }, + "notificationsPost": { + "description": "Create Notification", + "httpMethod": "POST", + "operationId": "create_notification_v1_admin_notifications_post", + "parameters": [ + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/notifications", + "pathParameters": [], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/NotificationCreateRequest" + } + } + }, + "responses": { + "201": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/notifications", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Create Notification", + "tags": [ + "notifications" + ] + }, + "opsGovernanceAlerts": { + "description": "List Governance Alerts", + "httpMethod": "GET", + "operationId": "list_governance_alerts_v1_admin_ops_governance_alerts_get", + "parameters": [ + { + "description": null, + "location": "query", + "name": "limit", + "required": false, + "schema": { + "default": 50, + "type": "integer" + } + }, + { + "description": null, + "location": "query", + "name": "severity", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "reason", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/ops/governance-alerts", + "pathParameters": [], + "queryParameters": [ + "limit", + "severity", + "reason" + ], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/ops/governance-alerts", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "List Governance Alerts", + "tags": [ + "ops" + ] + }, + "opsGovernanceAlertsManualTakeover": { + "description": "Register Governance Manual Takeover", + "httpMethod": "POST", + "operationId": "register_governance_manual_takeover_v1_admin_ops_governance_alerts__session_id__manual_takeover_post", + "parameters": [ + { + "description": null, + "location": "path", + "name": "session_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/ops/governance-alerts/{session_id}/manual-takeover", + "pathParameters": [ + "session_id" + ], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/GovernanceManualTakeoverRequest" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/ops/governance-alerts/{session_id}/manual-takeover", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Register Governance Manual Takeover", + "tags": [ + "ops" + ] + }, + "opsSummary": { + "description": "Ops Summary", + "httpMethod": "GET", + "operationId": "ops_summary_v1_admin_ops_summary_get", + "parameters": [ + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/ops/summary", + "pathParameters": [], + "queryParameters": [], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/ops/summary", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Ops Summary", + "tags": [ + "ops" + ] + }, + "publicEgoDatasetFoundryApplications": { + "description": "List EGO foundry applications", + "httpMethod": "GET", + "operationId": "list_public_ego_dataset_foundry_applications_admin_v1_admin_public_ego_dataset_foundry_applications_get", + "parameters": [ + { + "description": null, + "location": "query", + "name": "status", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "q", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "limit", + "required": false, + "schema": { + "default": 100, + "type": "integer" + } + }, + { + "description": null, + "location": "query", + "name": "offset", + "required": false, + "schema": { + "default": 0, + "type": "integer" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/public-ego-dataset/foundry-applications", + "pathParameters": [], + "queryParameters": [ + "status", + "q", + "limit", + "offset" + ], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "$ref": "#/components/schemas/PublicEgoDatasetFoundryApplicationListRead" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/public-ego-dataset/foundry-applications", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "List EGO foundry applications", + "tags": [ + "catalog" + ] + }, + "publicEgoDatasetFoundryApplicationsStatus": { + "description": "Update EGO foundry application status", + "httpMethod": "POST", + "operationId": "update_public_ego_dataset_foundry_application_status_admin_v1_admin_public_ego_dataset_foundry_applications__application_id__status_post", + "parameters": [ + { + "description": null, + "location": "path", + "name": "application_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/public-ego-dataset/foundry-applications/{application_id}/status", + "pathParameters": [ + "application_id" + ], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/PublicEgoDatasetFoundryApplicationStatusUpdate" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "$ref": "#/components/schemas/PublicEgoDatasetFoundryApplicationAdminRead" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/public-ego-dataset/foundry-applications/{application_id}/status", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Update EGO foundry application status", + "tags": [ + "catalog" + ] + }, + "publicEgoDatasetOrdersManualResolution": { + "description": "Register manual resolution for a paid public EGO dataset order", + "httpMethod": "POST", + "operationId": "register_public_ego_dataset_order_manual_resolution_admin_v1_admin_public_ego_dataset_orders__order_id__manual_resolution_post", + "parameters": [ + { + "description": null, + "location": "path", + "name": "order_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/public-ego-dataset/orders/{order_id}/manual-resolution", + "pathParameters": [ + "order_id" + ], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/PublicEgoDatasetOrderManualResolutionRequest" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "$ref": "#/components/schemas/PublicEgoDatasetOrderRead" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/public-ego-dataset/orders/{order_id}/manual-resolution", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Register manual resolution for a paid public EGO dataset order", + "tags": [ + "catalog" + ] + }, + "publicEgoDatasetRevenueLedger": { + "description": "List public EGO dataset revenue ledger accruals", + "httpMethod": "GET", + "operationId": "list_public_ego_dataset_revenue_ledger_admin_v1_admin_public_ego_dataset_revenue_ledger_get", + "parameters": [ + { + "description": null, + "location": "query", + "name": "order_id", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "status", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "contributorUserOneId", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "limit", + "required": false, + "schema": { + "default": 100, + "type": "integer" + } + }, + { + "description": null, + "location": "query", + "name": "offset", + "required": false, + "schema": { + "default": 0, + "type": "integer" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/public-ego-dataset/revenue-ledger", + "pathParameters": [], + "queryParameters": [ + "order_id", + "status", + "contributorUserOneId", + "limit", + "offset" + ], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/public-ego-dataset/revenue-ledger", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "List public EGO dataset revenue ledger accruals", + "tags": [ + "catalog" + ] + }, + "publicEgoDatasetRuntime": { + "description": "Get Public Ego Dataset Runtime Summary", + "httpMethod": "GET", + "operationId": "get_public_ego_dataset_runtime_summary_v1_admin_public_ego_dataset_runtime_get", + "parameters": [ + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/public-ego-dataset/runtime", + "pathParameters": [], + "queryParameters": [], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/public-ego-dataset/runtime", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Get Public Ego Dataset Runtime Summary", + "tags": [ + "catalog" + ] + }, + "publicEgoDatasetSessionsDeliveryBundle": { + "description": "Materialize a public EGO delivery bundle", + "httpMethod": "POST", + "operationId": "materialize_public_ego_dataset_delivery_bundle_admin_v1_admin_public_ego_dataset_sessions__session_id__delivery_bundle_post", + "parameters": [ + { + "description": null, + "location": "path", + "name": "session_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "actorUserOneId", + "required": false, + "schema": { + "default": "admin", + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/public-ego-dataset/sessions/{session_id}/delivery-bundle", + "pathParameters": [ + "session_id" + ], + "queryParameters": [ + "actorUserOneId" + ], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/public-ego-dataset/sessions/{session_id}/delivery-bundle", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Materialize a public EGO delivery bundle", + "tags": [ + "catalog" + ] + }, + "publicPaymentProviderConfig": { + "description": "Public Payment Provider Config", + "httpMethod": "GET", + "operationId": "public_payment_provider_config_v1_admin_public_payment_provider_config_get", + "parameters": [ + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/public-payment-provider-config", + "pathParameters": [], + "queryParameters": [], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/public-payment-provider-config", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Public Payment Provider Config", + "tags": [ + "ops" + ] + }, + "pushProviderConfig": { + "description": "Get Push Provider Config", + "httpMethod": "GET", + "operationId": "get_push_provider_config_v1_admin_push_provider_config_get", + "parameters": [ + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/push-provider-config", + "pathParameters": [], + "queryParameters": [], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/push-provider-config", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Get Push Provider Config", + "tags": [ + "notifications" + ] + }, + "reviewsUpsert": { + "description": "Upsert Auto Review", + "httpMethod": "POST", + "operationId": "upsert_auto_review_v1_admin_reviews_upsert_post", + "parameters": [ + { + "description": null, + "location": "query", + "name": "session_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/reviews/upsert", + "pathParameters": [], + "queryParameters": [ + "session_id" + ], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/ReviewDecisionRequest" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/reviews/upsert", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Upsert Auto Review", + "tags": [ + "review" + ] + }, + "rewardLedger": { + "description": "List Reward Ledger", + "httpMethod": "GET", + "operationId": "list_reward_ledger_v1_admin_reward_ledger_get", + "parameters": [ + { + "description": null, + "location": "query", + "name": "status", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "dispute_status", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "task_id", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "operator_id", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "limit", + "required": false, + "schema": { + "default": 200, + "type": "integer" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/reward-ledger", + "pathParameters": [], + "queryParameters": [ + "status", + "dispute_status", + "task_id", + "operator_id", + "limit" + ], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/reward-ledger", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "List Reward Ledger", + "tags": [ + "rewards" + ] + }, + "rewardLedgerBatchDispute": { + "description": "Batch Update Reward Dispute", + "httpMethod": "POST", + "operationId": "batch_update_reward_dispute_v1_admin_reward_ledger_batch_dispute_post", + "parameters": [ + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/reward-ledger/batch/dispute", + "pathParameters": [], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/RewardBatchDisputeRequest" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/reward-ledger/batch/dispute", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Batch Update Reward Dispute", + "tags": [ + "rewards" + ] + }, + "rewardLedgerBatchSettle": { + "description": "Batch Settle Reward Ledger", + "httpMethod": "POST", + "operationId": "batch_settle_reward_ledger_v1_admin_reward_ledger_batch_settle_post", + "parameters": [ + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/reward-ledger/batch/settle", + "pathParameters": [], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/RewardBatchSettlementRequest" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/reward-ledger/batch/settle", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Batch Settle Reward Ledger", + "tags": [ + "rewards" + ] + }, + "rewardLedgerDispute": { + "description": "Admin Update Reward Dispute", + "httpMethod": "POST", + "operationId": "admin_update_reward_dispute_v1_admin_reward_ledger__reward_id__dispute_post", + "parameters": [ + { + "description": null, + "location": "path", + "name": "reward_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/reward-ledger/{reward_id}/dispute", + "pathParameters": [ + "reward_id" + ], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/RewardDisputeRequest" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/reward-ledger/{reward_id}/dispute", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Admin Update Reward Dispute", + "tags": [ + "rewards" + ] + }, + "rewardLedgerGet": { + "description": "Reward Ledger Detail", + "httpMethod": "GET", + "operationId": "reward_ledger_detail_v1_admin_reward_ledger__reward_id__get", + "parameters": [ + { + "description": null, + "location": "path", + "name": "reward_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/reward-ledger/{reward_id}", + "pathParameters": [ + "reward_id" + ], + "queryParameters": [], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/reward-ledger/{reward_id}", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Reward Ledger Detail", + "tags": [ + "rewards" + ] + }, + "rewardLedgerSettle": { + "description": "Settle Reward Ledger", + "httpMethod": "POST", + "operationId": "settle_reward_ledger_v1_admin_reward_ledger__reward_id__settle_post", + "parameters": [ + { + "description": null, + "location": "path", + "name": "reward_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/reward-ledger/{reward_id}/settle", + "pathParameters": [ + "reward_id" + ], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/RewardSettlementRequest" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/reward-ledger/{reward_id}/settle", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Settle Reward Ledger", + "tags": [ + "rewards" + ] + }, + "rewardLedgerSummary": { + "description": "Reward Ledger Summary", + "httpMethod": "GET", + "operationId": "reward_ledger_summary_v1_admin_reward_ledger_summary_get", + "parameters": [ + { + "description": null, + "location": "query", + "name": "task_id", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "operator_id", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "dispute_status", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/reward-ledger/summary", + "pathParameters": [], + "queryParameters": [ + "task_id", + "operator_id", + "dispute_status" + ], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/reward-ledger/summary", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Reward Ledger Summary", + "tags": [ + "rewards" + ] + }, + "rewardLedgerUpsert": { + "description": "Reward Ledger Upsert", + "httpMethod": "POST", + "operationId": "reward_ledger_upsert_v1_admin_reward_ledger_upsert_post", + "parameters": [ + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/reward-ledger/upsert", + "pathParameters": [], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/RewardLedgerUpsertRequest" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/reward-ledger/upsert", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Reward Ledger Upsert", + "tags": [ + "rewards" + ] + }, + "sessions": { + "description": "List Sessions", + "httpMethod": "GET", + "operationId": "list_sessions_v1_admin_sessions_get", + "parameters": [ + { + "description": null, + "location": "query", + "name": "task_id", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "operator_id", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "review_status", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "quality_status", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "reward_status", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "ready_for_review", + "required": false, + "schema": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "query", + "name": "limit", + "required": false, + "schema": { + "default": 100, + "type": "integer" + } + }, + { + "description": null, + "location": "query", + "name": "include_artifacts", + "required": false, + "schema": { + "default": false, + "type": "boolean" + } + }, + { + "description": null, + "location": "query", + "name": "include_full_metadata", + "required": false, + "schema": { + "default": false, + "type": "boolean" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/sessions", + "pathParameters": [], + "queryParameters": [ + "task_id", + "operator_id", + "review_status", + "quality_status", + "reward_status", + "ready_for_review", + "limit", + "include_artifacts", + "include_full_metadata" + ], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/sessions", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "List Sessions", + "tags": [ + "sessions" + ] + }, + "sessionsQuality": { + "description": "Update Session Quality", + "httpMethod": "POST", + "operationId": "update_session_quality_v1_admin_sessions__session_id__quality_post", + "parameters": [ + { + "description": null, + "location": "path", + "name": "session_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/sessions/{session_id}/quality", + "pathParameters": [ + "session_id" + ], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/SessionQualityUpdateRequest" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/sessions/{session_id}/quality", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Update Session Quality", + "tags": [ + "sessions" + ] + }, + "sessionsWorkerStatus": { + "description": "Update Session Worker Status", + "httpMethod": "POST", + "operationId": "update_session_worker_status_v1_admin_sessions__session_id__worker_status_post", + "parameters": [ + { + "description": null, + "location": "path", + "name": "session_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/sessions/{session_id}/worker-status", + "pathParameters": [ + "session_id" + ], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/SessionWorkerStatusUpdateRequest" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/sessions/{session_id}/worker-status", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Update Session Worker Status", + "tags": [ + "sessions" + ] + }, + "siteAssets": { + "description": "List Admin Site Assets", + "httpMethod": "GET", + "operationId": "list_admin_site_assets_v1_admin_site_assets_get", + "parameters": [ + { + "description": null, + "location": "query", + "name": "media_kind", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "query", + "name": "status", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "query", + "name": "q", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "offset", + "required": false, + "schema": { + "default": 0, + "type": "integer" + } + }, + { + "description": null, + "location": "query", + "name": "limit", + "required": false, + "schema": { + "default": 100, + "type": "integer" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/site-assets", + "pathParameters": [], + "queryParameters": [ + "media_kind", + "status", + "q", + "offset", + "limit" + ], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "$ref": "#/components/schemas/SiteAssetListRead" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/site-assets", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "List Admin Site Assets", + "tags": [ + "public-site-content" + ] + }, + "siteAssetsComplete": { + "description": "Complete Admin Site Asset Upload", + "httpMethod": "POST", + "operationId": "complete_admin_site_asset_upload_v1_admin_site_assets__asset_id__complete_post", + "parameters": [ + { + "description": null, + "location": "path", + "name": "asset_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/site-assets/{asset_id}/complete", + "pathParameters": [ + "asset_id" + ], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/SiteAssetCompleteRequest" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "$ref": "#/components/schemas/SiteAssetRead" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/site-assets/{asset_id}/complete", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Complete Admin Site Asset Upload", + "tags": [ + "public-site-content" + ] + }, + "siteAssetsDelete": { + "description": "Archive Admin Site Asset", + "httpMethod": "DELETE", + "operationId": "archive_admin_site_asset_v1_admin_site_assets__asset_id__delete", + "parameters": [ + { + "description": null, + "location": "path", + "name": "asset_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "expected_revision", + "required": true, + "schema": { + "type": "integer" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/site-assets/{asset_id}", + "pathParameters": [ + "asset_id" + ], + "queryParameters": [ + "expected_revision" + ], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "$ref": "#/components/schemas/SiteAssetArchiveRead" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/site-assets/{asset_id}", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Archive Admin Site Asset", + "tags": [ + "public-site-content" + ] + }, + "siteAssetsUploadIntent": { + "description": "Create Admin Site Asset Upload Intent", + "httpMethod": "POST", + "operationId": "create_admin_site_asset_upload_intent_v1_admin_site_assets_upload_intent_post", + "parameters": [ + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/site-assets/upload-intent", + "pathParameters": [], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/SiteAssetUploadIntentCreate" + } + } + }, + "responses": { + "201": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "$ref": "#/components/schemas/SiteAssetUploadIntentRead" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/site-assets/upload-intent", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Create Admin Site Asset Upload Intent", + "tags": [ + "public-site-content" + ] + }, + "siteContent": { + "description": "List Admin Site Content", + "httpMethod": "GET", + "operationId": "list_admin_site_content_v1_admin_site_content_get", + "parameters": [ + { + "description": null, + "location": "query", + "name": "content_type", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "query", + "name": "page_scope", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "query", + "name": "locale", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "query", + "name": "status", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "query", + "name": "q", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "offset", + "required": false, + "schema": { + "default": 0, + "type": "integer" + } + }, + { + "description": null, + "location": "query", + "name": "limit", + "required": false, + "schema": { + "default": 100, + "type": "integer" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/site-content", + "pathParameters": [], + "queryParameters": [ + "content_type", + "page_scope", + "locale", + "status", + "q", + "offset", + "limit" + ], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "$ref": "#/components/schemas/SiteContentListRead" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/site-content", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "List Admin Site Content", + "tags": [ + "public-site-content" + ] + }, + "siteContentDelete": { + "description": "Archive Admin Site Content", + "httpMethod": "DELETE", + "operationId": "archive_admin_site_content_v1_admin_site_content__content_id__delete", + "parameters": [ + { + "description": null, + "location": "path", + "name": "content_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "expected_revision", + "required": true, + "schema": { + "type": "integer" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/site-content/{content_id}", + "pathParameters": [ + "content_id" + ], + "queryParameters": [ + "expected_revision" + ], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "$ref": "#/components/schemas/SiteContentArchiveRead" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/site-content/{content_id}", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Archive Admin Site Content", + "tags": [ + "public-site-content" + ] + }, + "siteContentPost": { + "description": "Create Admin Site Content", + "httpMethod": "POST", + "operationId": "create_admin_site_content_v1_admin_site_content_post", + "parameters": [ + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/site-content", + "pathParameters": [], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/SiteContentCreate" + } + } + }, + "responses": { + "201": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "$ref": "#/components/schemas/SiteContentRead" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/site-content", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Create Admin Site Content", + "tags": [ + "public-site-content" + ] + }, + "siteContentUpdate": { + "description": "Update Admin Site Content", + "httpMethod": "PATCH", + "operationId": "update_admin_site_content_v1_admin_site_content__content_id__patch", + "parameters": [ + { + "description": null, + "location": "path", + "name": "content_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/site-content/{content_id}", + "pathParameters": [ + "content_id" + ], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/SiteContentUpdate" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "$ref": "#/components/schemas/SiteContentRead" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/site-content/{content_id}", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Update Admin Site Content", + "tags": [ + "public-site-content" + ] + }, + "storageAccessPolicy": { + "description": "Storage Access Policy", + "httpMethod": "GET", + "operationId": "storage_access_policy_v1_admin_storage_access_policy_get", + "parameters": [ + { + "description": null, + "location": "query", + "name": "storage_scope", + "required": false, + "schema": { + "default": "raw", + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/storage-access-policy", + "pathParameters": [], + "queryParameters": [ + "storage_scope" + ], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/storage-access-policy", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Storage Access Policy", + "tags": [ + "ops" + ] + }, + "storageGovernanceBundle": { + "description": "Storage Governance Bundle", + "httpMethod": "GET", + "operationId": "storage_governance_bundle_v1_admin_storage_governance_bundle_get", + "parameters": [ + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/storage-governance-bundle", + "pathParameters": [], + "queryParameters": [], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/storage-governance-bundle", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Storage Governance Bundle", + "tags": [ + "ops" + ] + }, + "storageLifecycleExecutions": { + "description": "List Storage Lifecycle Executions", + "httpMethod": "GET", + "operationId": "list_storage_lifecycle_executions_v1_admin_storage_lifecycle_executions_get", + "parameters": [ + { + "description": null, + "location": "query", + "name": "storage_scope", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "status", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/storage-lifecycle-executions", + "pathParameters": [], + "queryParameters": [ + "storage_scope", + "status" + ], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/storage-lifecycle-executions", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "List Storage Lifecycle Executions", + "tags": [ + "ops" + ] + }, + "storageLifecycleExecutionsApply": { + "description": "Apply Storage Lifecycle Execution", + "httpMethod": "POST", + "operationId": "apply_storage_lifecycle_execution_v1_admin_storage_lifecycle_executions__execution_id__apply_post", + "parameters": [ + { + "description": null, + "location": "path", + "name": "execution_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/storage-lifecycle-executions/{execution_id}/apply", + "pathParameters": [ + "execution_id" + ], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/StorageLifecycleExecutionApplyRequest" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/storage-lifecycle-executions/{execution_id}/apply", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Apply Storage Lifecycle Execution", + "tags": [ + "ops" + ] + }, + "storageLifecycleExecutionsApplyPending": { + "description": "Apply Pending Storage Lifecycle Executions", + "httpMethod": "POST", + "operationId": "apply_pending_storage_lifecycle_executions_v1_admin_storage_lifecycle_executions_apply_pending_post", + "parameters": [ + { + "description": null, + "location": "query", + "name": "status_filter", + "required": false, + "schema": { + "default": "planned,verified", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "limit", + "required": false, + "schema": { + "default": 20, + "type": "integer" + } + }, + { + "description": null, + "location": "query", + "name": "executed_by", + "required": false, + "schema": { + "default": "storage-ops-batch", + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/storage-lifecycle-executions/apply-pending", + "pathParameters": [], + "queryParameters": [ + "status_filter", + "limit", + "executed_by" + ], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/storage-lifecycle-executions/apply-pending", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Apply Pending Storage Lifecycle Executions", + "tags": [ + "ops" + ] + }, + "storageLifecycleExecutionsPost": { + "description": "Create Storage Lifecycle Execution", + "httpMethod": "POST", + "operationId": "create_storage_lifecycle_execution_v1_admin_storage_lifecycle_executions_post", + "parameters": [ + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/storage-lifecycle-executions", + "pathParameters": [], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/StorageLifecycleExecutionCreate" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/storage-lifecycle-executions", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Create Storage Lifecycle Execution", + "tags": [ + "ops" + ] + }, + "storageLifecycleExecutionsStatus": { + "description": "Update Storage Lifecycle Execution", + "httpMethod": "POST", + "operationId": "update_storage_lifecycle_execution_v1_admin_storage_lifecycle_executions__execution_id__status_post", + "parameters": [ + { + "description": null, + "location": "path", + "name": "execution_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/storage-lifecycle-executions/{execution_id}/status", + "pathParameters": [ + "execution_id" + ], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/StorageLifecycleExecutionStatusUpdate" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/storage-lifecycle-executions/{execution_id}/status", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Update Storage Lifecycle Execution", + "tags": [ + "ops" + ] + }, + "storageLifecyclePayload": { + "description": "Storage Lifecycle Payload", + "httpMethod": "GET", + "operationId": "storage_lifecycle_payload_v1_admin_storage_lifecycle_payload_get", + "parameters": [ + { + "description": null, + "location": "query", + "name": "storage_scope", + "required": false, + "schema": { + "default": "raw", + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/storage-lifecycle-payload", + "pathParameters": [], + "queryParameters": [ + "storage_scope" + ], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/storage-lifecycle-payload", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Storage Lifecycle Payload", + "tags": [ + "ops" + ] + }, + "storageLifecyclePreview": { + "description": "Storage Lifecycle Preview", + "httpMethod": "GET", + "operationId": "storage_lifecycle_preview_v1_admin_storage_lifecycle_preview_get", + "parameters": [ + { + "description": null, + "location": "query", + "name": "storage_scope", + "required": false, + "schema": { + "default": "raw", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "age_days", + "required": false, + "schema": { + "default": 0, + "type": "integer" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/storage-lifecycle-preview", + "pathParameters": [], + "queryParameters": [ + "storage_scope", + "age_days" + ], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/storage-lifecycle-preview", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Storage Lifecycle Preview", + "tags": [ + "ops" + ] + }, + "storagePolicy": { + "description": "Storage Policy", + "httpMethod": "GET", + "operationId": "storage_policy_v1_admin_storage_policy_get", + "parameters": [ + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/storage-policy", + "pathParameters": [], + "queryParameters": [], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/storage-policy", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Storage Policy", + "tags": [ + "ops" + ] + }, + "storageProviderConfig": { + "description": "Storage Provider Config", + "httpMethod": "GET", + "operationId": "storage_provider_config_v1_admin_storage_provider_config_get", + "parameters": [ + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/storage-provider-config", + "pathParameters": [], + "queryParameters": [], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/storage-provider-config", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Storage Provider Config", + "tags": [ + "ops" + ] + }, + "taskAssignments": { + "description": "List Task Assignments", + "httpMethod": "GET", + "operationId": "list_task_assignments_v1_admin_task_assignments_get", + "parameters": [ + { + "description": null, + "location": "query", + "name": "task_id", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "status", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "operator_id", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/task-assignments", + "pathParameters": [], + "queryParameters": [ + "task_id", + "status", + "operator_id" + ], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/task-assignments", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "List Task Assignments", + "tags": [ + "tasks" + ] + }, + "taskAssignmentsPost": { + "description": "Create Task Assignment", + "httpMethod": "POST", + "operationId": "create_task_assignment_v1_admin_task_assignments_post", + "parameters": [ + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/task-assignments", + "pathParameters": [], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/TaskAssignmentCreate" + } + } + }, + "responses": { + "201": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/task-assignments", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Create Task Assignment", + "tags": [ + "tasks" + ] + }, + "taskAssignmentsUpdate": { + "description": "Update Task Assignment", + "httpMethod": "PATCH", + "operationId": "update_task_assignment_v1_admin_task_assignments__task_id__patch", + "parameters": [ + { + "description": null, + "location": "path", + "name": "task_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/task-assignments/{task_id}", + "pathParameters": [ + "task_id" + ], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/TaskAssignmentUpdate" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/task-assignments/{task_id}", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Update Task Assignment", + "tags": [ + "tasks" + ] + }, + "taskTemplates": { + "description": "List Task Templates", + "httpMethod": "GET", + "operationId": "list_task_templates_v1_admin_task_templates_get", + "parameters": [ + { + "description": null, + "location": "query", + "name": "status", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/task-templates", + "pathParameters": [], + "queryParameters": [ + "status" + ], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/task-templates", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "List Task Templates", + "tags": [ + "tasks" + ] + }, + "taskTemplatesPost": { + "description": "Create Task Template", + "httpMethod": "POST", + "operationId": "create_task_template_v1_admin_task_templates_post", + "parameters": [ + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/task-templates", + "pathParameters": [], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/TaskTemplateCreate" + } + } + }, + "responses": { + "201": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/task-templates", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Create Task Template", + "tags": [ + "tasks" + ] + }, + "taskTemplatesUpdate": { + "description": "Update Task Template", + "httpMethod": "PATCH", + "operationId": "update_task_template_v1_admin_task_templates__template_id__patch", + "parameters": [ + { + "description": null, + "location": "path", + "name": "template_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/admin/task-templates/{template_id}", + "pathParameters": [ + "template_id" + ], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/TaskTemplateUpdate" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/admin/task-templates/{template_id}", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Update Task Template", + "tags": [ + "tasks" + ] + } + } + }, + "captureAssets": { + "methods": { + "ack": { + "description": "Acknowledge Capture Asset", + "httpMethod": "POST", + "operationId": "acknowledge_capture_asset_v2_capture_assets__media_asset_id__ack_post", + "parameters": [ + { + "description": null, + "location": "path", + "name": "media_asset_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v2/capture-assets/{media_asset_id}/ack", + "pathParameters": [ + "media_asset_id" + ], + "queryParameters": [], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "$ref": "#/components/schemas/AssetAckV1" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v2/capture-assets/{media_asset_id}/ack", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Acknowledge Capture Asset", + "tags": [ + "capture-lineage-v1" + ] + }, + "task": { + "description": "Capture Asset To Task", + "httpMethod": "GET", + "operationId": "capture_asset_to_task_v2_capture_assets__media_asset_id__task_get", + "parameters": [ + { + "description": null, + "location": "path", + "name": "media_asset_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v2/capture-assets/{media_asset_id}/task", + "pathParameters": [ + "media_asset_id" + ], + "queryParameters": [], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v2/capture-assets/{media_asset_id}/task", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Capture Asset To Task", + "tags": [ + "capture-lineage-v1" + ] + } + } + }, + "captureBindings": { + "methods": { + "assets": { + "description": "List Capture Assets", + "httpMethod": "GET", + "operationId": "list_capture_assets_v2_capture_bindings__binding_id__assets_get", + "parameters": [ + { + "description": null, + "location": "path", + "name": "binding_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v2/capture-bindings/{binding_id}/assets", + "pathParameters": [ + "binding_id" + ], + "queryParameters": [], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v2/capture-bindings/{binding_id}/assets", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "List Capture Assets", + "tags": [ + "capture-lineage-v1" + ] + }, + "assetsPost": { + "description": "Create Capture Asset", + "httpMethod": "POST", + "operationId": "create_capture_asset_v2_capture_bindings__binding_id__assets_post", + "parameters": [ + { + "description": null, + "location": "path", + "name": "binding_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v2/capture-bindings/{binding_id}/assets", + "pathParameters": [ + "binding_id" + ], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/CaptureAssetV1" + } + } + }, + "responses": { + "201": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v2/capture-bindings/{binding_id}/assets", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Create Capture Asset", + "tags": [ + "capture-lineage-v1" + ] + }, + "create": { + "description": "Create Capture Binding", + "httpMethod": "POST", + "operationId": "create_capture_binding_v2_capture_bindings_post", + "parameters": [ + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v2/capture-bindings", + "pathParameters": [], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/CaptureBindingV1" + } + } + }, + "responses": { + "201": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v2/capture-bindings", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Create Capture Binding", + "tags": [ + "capture-lineage-v1" + ] + }, + "detail": { + "description": "Get Capture Binding", + "httpMethod": "GET", + "operationId": "get_capture_binding_v2_capture_bindings__binding_id__get", + "parameters": [ + { + "description": null, + "location": "path", + "name": "binding_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v2/capture-bindings/{binding_id}", + "pathParameters": [ + "binding_id" + ], + "queryParameters": [], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v2/capture-bindings/{binding_id}", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Get Capture Binding", + "tags": [ + "capture-lineage-v1" + ] + }, + "processingLineage": { + "description": "Create Processing Lineage", + "httpMethod": "POST", + "operationId": "create_processing_lineage_v2_capture_bindings__binding_id__processing_lineage_post", + "parameters": [ + { + "description": null, + "location": "path", + "name": "binding_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v2/capture-bindings/{binding_id}/processing-lineage", + "pathParameters": [ + "binding_id" + ], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/ProcessingLineageV1" + } + } + }, + "responses": { + "201": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v2/capture-bindings/{binding_id}/processing-lineage", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Create Processing Lineage", + "tags": [ + "capture-lineage-v1" + ] + } + } + }, + "datasetPackages": { + "methods": { + "create": { + "description": "Create Dataset Package", + "httpMethod": "POST", + "operationId": "create_dataset_package_v2_dataset_packages_post", + "parameters": [ + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v2/dataset-packages", + "pathParameters": [], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/EgoDatasetPackageCreate" + } + } + }, + "responses": { + "201": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v2/dataset-packages", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Create Dataset Package", + "tags": [ + "ego-v2" + ] + }, + "delivery": { + "description": "Get Dataset Package Delivery", + "httpMethod": "GET", + "operationId": "get_dataset_package_delivery_v2_dataset_packages__package_id__delivery_get", + "parameters": [ + { + "description": null, + "location": "path", + "name": "package_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v2/dataset-packages/{package_id}/delivery", + "pathParameters": [ + "package_id" + ], + "queryParameters": [], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v2/dataset-packages/{package_id}/delivery", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Get Dataset Package Delivery", + "tags": [ + "ego-v2" + ] + }, + "orders": { + "description": "Create Dataset Package Order", + "httpMethod": "POST", + "operationId": "create_dataset_package_order_v2_dataset_packages__package_id__orders_post", + "parameters": [ + { + "description": null, + "location": "path", + "name": "package_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v2/dataset-packages/{package_id}/orders", + "pathParameters": [ + "package_id" + ], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": false, + "schema": { + "application/json": { + "anyOf": [ + { + "$ref": "#/components/schemas/EgoOrderCreate" + }, + { + "type": "null" + } + ] + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v2/dataset-packages/{package_id}/orders", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Create Dataset Package Order", + "tags": [ + "ego-v2" + ] + }, + "quote": { + "description": "Quote Dataset Package", + "httpMethod": "POST", + "operationId": "quote_dataset_package_v2_dataset_packages__package_id__quote_post", + "parameters": [ + { + "description": null, + "location": "path", + "name": "package_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v2/dataset-packages/{package_id}/quote", + "pathParameters": [ + "package_id" + ], + "queryParameters": [], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v2/dataset-packages/{package_id}/quote", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Quote Dataset Package", + "tags": [ + "ego-v2" + ] + } + } + }, + "desktop": { + "methods": { + "tasks": { + "description": "List Desktop Tasks", + "httpMethod": "GET", + "operationId": "list_desktop_tasks_v1_desktop_tasks_get", + "parameters": [ + { + "description": null, + "location": "query", + "name": "status", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "limit", + "required": false, + "schema": { + "default": 20, + "type": "integer" + } + }, + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/desktop/tasks", + "pathParameters": [], + "queryParameters": [ + "status", + "limit" + ], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/desktop/tasks", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "List Desktop Tasks", + "tags": [ + "desktop-tasks" + ] + }, + "tasksPost": { + "description": "Create Desktop Task", + "httpMethod": "POST", + "operationId": "create_desktop_task_v1_desktop_tasks_post", + "parameters": [ + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/desktop/tasks", + "pathParameters": [], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/DesktopTaskCreate" + } + } + }, + "responses": { + "201": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/desktop/tasks", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Create Desktop Task", + "tags": [ + "desktop-tasks" + ] + }, + "tasksSampleSync": { + "description": "Sync Desktop Task Sample", + "httpMethod": "POST", + "operationId": "sync_desktop_task_sample_v1_desktop_tasks__task_id__sample_sync_post", + "parameters": [ + { + "description": null, + "location": "path", + "name": "task_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/desktop/tasks/{task_id}/sample-sync", + "pathParameters": [ + "task_id" + ], + "queryParameters": [], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/desktop/tasks/{task_id}/sample-sync", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Sync Desktop Task Sample", + "tags": [ + "desktop-tasks" + ] + } + } + }, + "edge": { + "methods": { + "sessionsArtifacts": { + "description": "Upsert Session Artifact", + "httpMethod": "POST", + "operationId": "upsert_session_artifact_v1_edge_sessions__session_id__artifacts_post", + "parameters": [ + { + "description": null, + "location": "path", + "name": "session_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/edge/sessions/{session_id}/artifacts", + "pathParameters": [ + "session_id" + ], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/SessionArtifactUpsertRequest" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/edge/sessions/{session_id}/artifacts", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Upsert Session Artifact", + "tags": [ + "sessions" + ] + }, + "sessionsReceipts": { + "description": "Record Upload Receipt", + "httpMethod": "POST", + "operationId": "record_upload_receipt_v1_edge_sessions__session_id__receipts_post", + "parameters": [ + { + "description": null, + "location": "path", + "name": "session_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/edge/sessions/{session_id}/receipts", + "pathParameters": [ + "session_id" + ], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/UploadReceiptRequest" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/edge/sessions/{session_id}/receipts", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Record Upload Receipt", + "tags": [ + "sessions" + ] + }, + "sessionsSemanticCatalog": { + "description": "Upsert Session Semantic Catalog", + "httpMethod": "POST", + "operationId": "upsert_session_semantic_catalog_v1_edge_sessions__session_id__semantic_catalog_post", + "parameters": [ + { + "description": null, + "location": "path", + "name": "session_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/edge/sessions/{session_id}/semantic-catalog", + "pathParameters": [ + "session_id" + ], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/SemanticCatalogUpsertRequest" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/edge/sessions/{session_id}/semantic-catalog", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Upsert Session Semantic Catalog", + "tags": [ + "catalog" + ] + }, + "sessionsUpsert": { + "description": "Upsert Session", + "httpMethod": "POST", + "operationId": "upsert_session_v1_edge_sessions_upsert_post", + "parameters": [ + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/edge/sessions/upsert", + "pathParameters": [], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/SessionUpsertRequest" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/edge/sessions/upsert", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Upsert Session", + "tags": [ + "sessions" + ] + } + } + }, + "ego": { + "methods": { + "diversityIndex": { + "description": "Get Ego Diversity Index", + "httpMethod": "GET", + "operationId": "get_ego_diversity_index_v2_ego_diversity_index_get", + "parameters": [ + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v2/ego/diversity-index", + "pathParameters": [], + "queryParameters": [], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v2/ego/diversity-index", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Get Ego Diversity Index", + "tags": [ + "ego-v2" + ] + }, + "duplicateCheck": { + "description": "Check Ego Duplicate", + "httpMethod": "GET", + "operationId": "check_ego_duplicate_v2_ego_duplicate_check_get", + "parameters": [ + { + "description": null, + "location": "query", + "name": "asset_id", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "exact_hash", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "preview_signature", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "frame_signature", + "required": false, + "schema": { + "anyOf": [ + { + "items": { + "type": "string" + }, + "type": "array" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v2/ego/duplicate-check", + "pathParameters": [], + "queryParameters": [ + "asset_id", + "exact_hash", + "preview_signature", + "frame_signature" + ], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v2/ego/duplicate-check", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Check Ego Duplicate", + "tags": [ + "ego-v2" + ] + }, + "fingerprintIndexAssets": { + "description": "Get Ego Fingerprint Index", + "httpMethod": "GET", + "operationId": "get_ego_fingerprint_index_v2_ego_fingerprint_index_assets__asset_id__get", + "parameters": [ + { + "description": null, + "location": "path", + "name": "asset_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v2/ego/fingerprint-index/assets/{asset_id}", + "pathParameters": [ + "asset_id" + ], + "queryParameters": [], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v2/ego/fingerprint-index/assets/{asset_id}", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Get Ego Fingerprint Index", + "tags": [ + "ego-v2" + ] + }, + "fingerprintIndexHistoricalCoverage": { + "description": "Get Ego Historical Fingerprint Coverage", + "httpMethod": "GET", + "operationId": "get_ego_historical_fingerprint_coverage_v2_ego_fingerprint_index_historical_coverage_get", + "parameters": [ + { + "description": null, + "location": "query", + "name": "environment", + "required": false, + "schema": { + "default": "dev", + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v2/ego/fingerprint-index/historical-coverage", + "pathParameters": [], + "queryParameters": [ + "environment" + ], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v2/ego/fingerprint-index/historical-coverage", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Get Ego Historical Fingerprint Coverage", + "tags": [ + "ego-v2" + ] + }, + "fingerprintIndexHistoricalReconcile": { + "description": "Reconcile Ego Historical Fingerprint Index", + "httpMethod": "POST", + "operationId": "reconcile_ego_historical_fingerprint_index_v2_ego_fingerprint_index_historical_reconcile_post", + "parameters": [ + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v2/ego/fingerprint-index/historical-reconcile", + "pathParameters": [], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": false, + "schema": { + "application/json": { + "anyOf": [ + { + "$ref": "#/components/schemas/EgoHistoricalFingerprintReconcileRequest" + }, + { + "type": "null" + } + ] + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v2/ego/fingerprint-index/historical-reconcile", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Reconcile Ego Historical Fingerprint Index", + "tags": [ + "ego-v2" + ] + }, + "mikerDeviceIdentities": { + "description": "Register Miker Device Identity", + "httpMethod": "POST", + "operationId": "register_miker_device_identity_v2_ego_miker_device_identities_post", + "parameters": [ + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v2/ego/miker/device-identities", + "pathParameters": [], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/MikerDeviceIdentityRegistration" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v2/ego/miker/device-identities", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Register Miker Device Identity", + "tags": [ + "ego-miker-pairing" + ] + }, + "mikerDeviceIdentitiesReEnroll": { + "description": "Reenroll Miker Device Identity", + "httpMethod": "POST", + "operationId": "reenroll_miker_device_identity_v2_ego_miker_device_identities_re_enroll_post", + "parameters": [ + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v2/ego/miker/device-identities/re-enroll", + "pathParameters": [], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/MikerDeviceIdentityReenrollment" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v2/ego/miker/device-identities/re-enroll", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Reenroll Miker Device Identity", + "tags": [ + "ego-miker-pairing" + ] + }, + "mikerDeviceIdentitiesRevoke": { + "description": "Revoke Miker Device Identity", + "httpMethod": "POST", + "operationId": "revoke_miker_device_identity_v2_ego_miker_device_identities__device_id__revoke_post", + "parameters": [ + { + "description": null, + "location": "path", + "name": "device_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v2/ego/miker/device-identities/{device_id}/revoke", + "pathParameters": [ + "device_id" + ], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/MikerDeviceIdentityRevocation" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v2/ego/miker/device-identities/{device_id}/revoke", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Revoke Miker Device Identity", + "tags": [ + "ego-miker-pairing" + ] + }, + "mikerDeviceIdentitiesRotate": { + "description": "Rotate Miker Device Identity", + "httpMethod": "POST", + "operationId": "rotate_miker_device_identity_v2_ego_miker_device_identities__device_id__rotate_post", + "parameters": [ + { + "description": null, + "location": "path", + "name": "device_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-Admin-Token", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v2/ego/miker/device-identities/{device_id}/rotate", + "pathParameters": [ + "device_id" + ], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/MikerDeviceIdentityRotation" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v2/ego/miker/device-identities/{device_id}/rotate", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Rotate Miker Device Identity", + "tags": [ + "ego-miker-pairing" + ] + }, + "mikerPairingGrants": { + "description": "Issue Miker Pairing Grant", + "httpMethod": "POST", + "operationId": "issue_miker_pairing_grant_v2_ego_miker_pairing_grants_post", + "parameters": [ + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v2/ego/miker/pairing-grants", + "pathParameters": [], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/MikerPairingGrantRequest" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v2/ego/miker/pairing-grants", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Issue Miker Pairing Grant", + "tags": [ + "ego-miker-pairing" + ] + }, + "mikerPairingKeyset": { + "description": "Get Miker Pairing Keyset", + "httpMethod": "GET", + "operationId": "get_miker_pairing_keyset_v2_ego_miker_pairing_keyset_get", + "parameters": [], + "path": "/api/crowd-control/v2/ego/miker/pairing-keyset", + "pathParameters": [], + "queryParameters": [], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v2/ego/miker/pairing-keyset", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Get Miker Pairing Keyset", + "tags": [ + "ego-miker-pairing" + ] + }, + "tasksPreview": { + "description": "Preview Ego Task", + "httpMethod": "GET", + "operationId": "preview_ego_task_v2_ego_tasks__task_id__preview_get", + "parameters": [ + { + "description": null, + "location": "path", + "name": "task_id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "path": "/api/crowd-control/v2/ego/tasks/{task_id}/preview", + "pathParameters": [ + "task_id" + ], + "queryParameters": [], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v2/ego/tasks/{task_id}/preview", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Preview Ego Task", + "tags": [ + "ego-v2" + ] + }, + "tasksSearch": { + "description": "Search Ego Tasks", + "httpMethod": "GET", + "operationId": "search_ego_tasks_v2_ego_tasks_search_get", + "parameters": [ + { + "description": null, + "location": "query", + "name": "status", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "q", + "required": false, + "schema": { + "default": "", + "type": "string" + } + } + ], + "path": "/api/crowd-control/v2/ego/tasks/search", + "pathParameters": [], + "queryParameters": [ + "status", + "q" + ], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v2/ego/tasks/search", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Search Ego Tasks", + "tags": [ + "ego-v2" + ] + }, + "tasksSelectionToken": { + "description": "Create Selection Token", + "httpMethod": "POST", + "operationId": "create_selection_token_v2_ego_tasks_selection_token_post", + "parameters": [ + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v2/ego/tasks/selection-token", + "pathParameters": [], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/EgoSelectionTokenCreate" + } + } + }, + "responses": { + "201": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v2/ego/tasks/selection-token", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Create Selection Token", + "tags": [ + "ego-v2" + ] + } + } + }, + "healthz": { + "methods": { + "list": { + "description": "Healthz", + "httpMethod": "GET", + "operationId": "healthz_healthz_get", + "parameters": [], + "path": "/api/crowd-control/healthz", + "pathParameters": [], + "queryParameters": [], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/healthz", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Healthz", + "tags": [ + "health" + ] + } + } + }, + "me": { + "methods": { + "accessAudit": { + "description": "List My Access Audit", + "httpMethod": "GET", + "operationId": "list_my_access_audit_v1_me_access_audit_get", + "parameters": [ + { + "description": null, + "location": "query", + "name": "action", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/me/access-audit", + "pathParameters": [], + "queryParameters": [ + "action" + ], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/me/access-audit", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "List My Access Audit", + "tags": [ + "catalog" + ] + }, + "captureReadiness": { + "description": "Get Capture Readiness", + "httpMethod": "GET", + "operationId": "get_capture_readiness_v1_me_capture_readiness_get", + "parameters": [ + { + "description": null, + "location": "query", + "name": "deviceId", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "taskId", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/me/capture-readiness", + "pathParameters": [], + "queryParameters": [ + "deviceId", + "taskId" + ], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/me/capture-readiness", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Get Capture Readiness", + "tags": [ + "devices" + ] + }, + "catalogSessions": { + "description": "List Catalog Sessions", + "httpMethod": "GET", + "operationId": "list_catalog_sessions_v1_me_catalog_sessions_get", + "parameters": [ + { + "description": null, + "location": "query", + "name": "q", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "task_id", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "device_id", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "tag", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "object", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "runtime_profile", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "start_edge_time_ns", + "required": false, + "schema": { + "default": 0, + "type": "integer" + } + }, + { + "description": null, + "location": "query", + "name": "end_edge_time_ns", + "required": false, + "schema": { + "default": 0, + "type": "integer" + } + }, + { + "description": null, + "location": "query", + "name": "embedding_key", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "embedding", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "embedding_min_similarity", + "required": false, + "schema": { + "default": 0.75, + "type": "number" + } + }, + { + "description": null, + "location": "query", + "name": "limit", + "required": false, + "schema": { + "default": 100, + "type": "integer" + } + }, + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/me/catalog/sessions", + "pathParameters": [], + "queryParameters": [ + "q", + "task_id", + "device_id", + "tag", + "object", + "runtime_profile", + "start_edge_time_ns", + "end_edge_time_ns", + "embedding_key", + "embedding", + "embedding_min_similarity", + "limit" + ], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/me/catalog/sessions", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "List Catalog Sessions", + "tags": [ + "catalog" + ] + }, + "catalogSessionsDownload": { + "description": "Request Raw Download", + "httpMethod": "POST", + "operationId": "request_raw_download_v1_me_catalog_sessions__session_id__download_post", + "parameters": [ + { + "description": null, + "location": "path", + "name": "session_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/me/catalog/sessions/{session_id}/download", + "pathParameters": [ + "session_id" + ], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": false, + "schema": { + "application/json": { + "anyOf": [ + { + "$ref": "#/components/schemas/SessionEntitlementRequest" + }, + { + "type": "null" + } + ] + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/me/catalog/sessions/{session_id}/download", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Request Raw Download", + "tags": [ + "catalog" + ] + }, + "catalogSessionsPreview": { + "description": "Get Session Preview", + "httpMethod": "GET", + "operationId": "get_session_preview_v1_me_catalog_sessions__session_id__preview_get", + "parameters": [ + { + "description": null, + "location": "path", + "name": "session_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/me/catalog/sessions/{session_id}/preview", + "pathParameters": [ + "session_id" + ], + "queryParameters": [], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/me/catalog/sessions/{session_id}/preview", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Get Session Preview", + "tags": [ + "catalog" + ] + }, + "catalogSessionsPreviewAccess": { + "description": "Grant Preview Access", + "httpMethod": "POST", + "operationId": "grant_preview_access_v1_me_catalog_sessions__session_id__preview_access_post", + "parameters": [ + { + "description": null, + "location": "path", + "name": "session_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/me/catalog/sessions/{session_id}/preview-access", + "pathParameters": [ + "session_id" + ], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": false, + "schema": { + "application/json": { + "anyOf": [ + { + "$ref": "#/components/schemas/SessionEntitlementRequest" + }, + { + "type": "null" + } + ] + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/me/catalog/sessions/{session_id}/preview-access", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Grant Preview Access", + "tags": [ + "catalog" + ] + }, + "deliveryJobs": { + "description": "List My Delivery Jobs", + "httpMethod": "GET", + "operationId": "list_my_delivery_jobs_v1_me_delivery_jobs_get", + "parameters": [ + { + "description": null, + "location": "query", + "name": "status", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/me/delivery-jobs", + "pathParameters": [], + "queryParameters": [ + "status" + ], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/me/delivery-jobs", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "List My Delivery Jobs", + "tags": [ + "catalog" + ] + }, + "deviceBindingBind": { + "description": "Bind Current Device", + "httpMethod": "POST", + "operationId": "bind_current_device_v1_me_deviceBinding_bind_post", + "parameters": [ + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/me/deviceBinding/bind", + "pathParameters": [], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/DeviceBindingBindRequest" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/me/deviceBinding/bind", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Bind Current Device", + "tags": [ + "devices" + ] + }, + "deviceBindingCurrent": { + "description": "Get Current Device Binding", + "httpMethod": "GET", + "operationId": "get_current_device_binding_v1_me_deviceBinding_current_get", + "parameters": [ + { + "description": null, + "location": "query", + "name": "deviceId", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/me/deviceBinding/current", + "pathParameters": [], + "queryParameters": [ + "deviceId" + ], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/me/deviceBinding/current", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Get Current Device Binding", + "tags": [ + "devices" + ] + }, + "deviceBindingUnbind": { + "description": "Unbind Current Device", + "httpMethod": "POST", + "operationId": "unbind_current_device_v1_me_deviceBinding_unbind_post", + "parameters": [ + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/me/deviceBinding/unbind", + "pathParameters": [], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/DeviceBindingUnbindRequest" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/me/deviceBinding/unbind", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Unbind Current Device", + "tags": [ + "devices" + ] + }, + "deviceStatusCurrent": { + "description": "Get Current Device Runtime Status", + "httpMethod": "GET", + "operationId": "get_current_device_runtime_status_v1_me_deviceStatus_current_get", + "parameters": [ + { + "description": null, + "location": "query", + "name": "deviceId", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/me/deviceStatus/current", + "pathParameters": [], + "queryParameters": [ + "deviceId" + ], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/me/deviceStatus/current", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Get Current Device Runtime Status", + "tags": [ + "devices" + ] + }, + "deviceStatusReport": { + "description": "Report Device Runtime Status", + "httpMethod": "POST", + "operationId": "report_device_runtime_status_v1_me_deviceStatus_report_post", + "parameters": [ + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/me/deviceStatus/report", + "pathParameters": [], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/DeviceRuntimeStatusReportRequest" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/me/deviceStatus/report", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Report Device Runtime Status", + "tags": [ + "devices" + ] + }, + "edgeDevices": { + "description": "List My Edge Devices", + "httpMethod": "GET", + "operationId": "list_my_edge_devices_v1_me_edge_devices_get", + "parameters": [ + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/me/edge-devices", + "pathParameters": [], + "queryParameters": [], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/me/edge-devices", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "List My Edge Devices", + "tags": [ + "devices" + ] + }, + "edgeDevicesClaim": { + "description": "Claim Edge Device", + "httpMethod": "POST", + "operationId": "claim_edge_device_v1_me_edge_devices_claim_post", + "parameters": [ + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/me/edge-devices/claim", + "pathParameters": [], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/EdgeDeviceClaimRequest" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/me/edge-devices/claim", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Claim Edge Device", + "tags": [ + "devices" + ] + }, + "notificationCenter": { + "description": "My Notification Center", + "httpMethod": "GET", + "operationId": "my_notification_center_v1_me_notification_center_get", + "parameters": [ + { + "description": null, + "location": "query", + "name": "limit", + "required": false, + "schema": { + "default": 20, + "type": "integer" + } + }, + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/me/notification-center", + "pathParameters": [], + "queryParameters": [ + "limit" + ], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/me/notification-center", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "My Notification Center", + "tags": [ + "notifications" + ] + }, + "notifications": { + "description": "List My Notifications", + "httpMethod": "GET", + "operationId": "list_my_notifications_v1_me_notifications_get", + "parameters": [ + { + "description": null, + "location": "query", + "name": "category", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "status", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "limit", + "required": false, + "schema": { + "default": 100, + "type": "integer" + } + }, + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/me/notifications", + "pathParameters": [], + "queryParameters": [ + "category", + "status", + "limit" + ], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/me/notifications", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "List My Notifications", + "tags": [ + "notifications" + ] + }, + "notificationsMarkAllRead": { + "description": "Mark All My Notifications Read", + "httpMethod": "POST", + "operationId": "mark_all_my_notifications_read_v1_me_notifications_mark_all_read_post", + "parameters": [ + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/me/notifications/mark-all-read", + "pathParameters": [], + "queryParameters": [], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/me/notifications/mark-all-read", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Mark All My Notifications Read", + "tags": [ + "notifications" + ] + }, + "notificationsStatus": { + "description": "Update My Notification Status", + "httpMethod": "POST", + "operationId": "update_my_notification_status_v1_me_notifications__notification_id__status_post", + "parameters": [ + { + "description": null, + "location": "path", + "name": "notification_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/me/notifications/{notification_id}/status", + "pathParameters": [ + "notification_id" + ], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/NotificationStatusUpdateRequest" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/me/notifications/{notification_id}/status", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Update My Notification Status", + "tags": [ + "notifications" + ] + }, + "notificationsSummary": { + "description": "My Notification Summary", + "httpMethod": "GET", + "operationId": "my_notification_summary_v1_me_notifications_summary_get", + "parameters": [ + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/me/notifications/summary", + "pathParameters": [], + "queryParameters": [], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/me/notifications/summary", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "My Notification Summary", + "tags": [ + "notifications" + ] + }, + "privacyStoragePolicy": { + "description": "My Privacy Storage Policy", + "httpMethod": "GET", + "operationId": "my_privacy_storage_policy_v1_me_privacy_storage_policy_get", + "parameters": [ + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/me/privacy-storage-policy", + "pathParameters": [], + "queryParameters": [], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/me/privacy-storage-policy", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "My Privacy Storage Policy", + "tags": [ + "ops" + ] + }, + "pushDevices": { + "description": "List My Push Devices", + "httpMethod": "GET", + "operationId": "list_my_push_devices_v1_me_push_devices_get", + "parameters": [ + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/me/push-devices", + "pathParameters": [], + "queryParameters": [], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/me/push-devices", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "List My Push Devices", + "tags": [ + "notifications" + ] + }, + "pushDevicesRegister": { + "description": "Register My Push Device", + "httpMethod": "POST", + "operationId": "register_my_push_device_v1_me_push_devices_register_post", + "parameters": [ + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/me/push-devices/register", + "pathParameters": [], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/PushDeviceRegistrationRequest" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/me/push-devices/register", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Register My Push Device", + "tags": [ + "notifications" + ] + }, + "pushDevicesStatus": { + "description": "Update My Push Device Status", + "httpMethod": "POST", + "operationId": "update_my_push_device_status_v1_me_push_devices__registration_id__status_post", + "parameters": [ + { + "description": null, + "location": "path", + "name": "registration_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/me/push-devices/{registration_id}/status", + "pathParameters": [ + "registration_id" + ], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/PushDeviceStatusUpdateRequest" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/me/push-devices/{registration_id}/status", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Update My Push Device Status", + "tags": [ + "notifications" + ] + }, + "rewards": { + "description": "List My Rewards", "httpMethod": "GET", - "operationId": "list_access_audit_admin_v1_admin_access_audit_get", + "operationId": "list_my_rewards_v1_me_rewards_get", "parameters": [ { "description": null, "location": "query", - "name": "action", + "name": "status", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "task_id", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "limit", + "required": false, + "schema": { + "default": 100, + "type": "integer" + } + }, + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/me/rewards", + "pathParameters": [], + "queryParameters": [ + "status", + "task_id", + "limit" + ], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/me/rewards", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "List My Rewards", + "tags": [ + "rewards" + ] + }, + "rewardsDispute": { + "description": "Open My Reward Dispute", + "httpMethod": "POST", + "operationId": "open_my_reward_dispute_v1_me_rewards__reward_id__dispute_post", + "parameters": [ + { + "description": null, + "location": "path", + "name": "reward_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", "required": false, "schema": { - "default": "", - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v1/me/rewards/{reward_id}/dispute", + "pathParameters": [ + "reward_id" + ], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/RewardDisputeRequest" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } } }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/me/rewards/{reward_id}/dispute", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Open My Reward Dispute", + "tags": [ + "rewards" + ] + }, + "rewardsEvidence": { + "description": "Submit My Reward Evidence", + "httpMethod": "POST", + "operationId": "submit_my_reward_evidence_v1_me_rewards__reward_id__evidence_post", + "parameters": [ { "description": null, - "location": "query", - "name": "session_id", - "required": false, + "location": "path", + "name": "reward_id", + "required": true, "schema": { - "default": "", "type": "string" } }, { "description": null, - "location": "query", - "name": "actor_user_one_id", + "location": "header", + "name": "X-User-One-Id", "required": false, "schema": { - "default": "", - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, { "description": null, "location": "header", - "name": "X-Admin-Token", + "name": "X-User-Id", "required": false, "schema": { "anyOf": [ @@ -31223,14 +48239,22 @@ } } ], - "path": "/api/crowd-control/v1/admin/access-audit", - "pathParameters": [], - "queryParameters": [ - "action", - "session_id", - "actor_user_one_id" + "path": "/api/crowd-control/v1/me/rewards/{reward_id}/evidence", + "pathParameters": [ + "reward_id" ], - "requestBody": null, + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/RewardEvidenceRequest" + } + } + }, "responses": { "200": { "contentTypes": [ @@ -31257,84 +48281,49 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/access-audit", + "rawPath": "/v1/me/rewards/{reward_id}/evidence", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "List Access Audit Admin", + "summary": "Submit My Reward Evidence", "tags": [ - "catalog" + "rewards" ] }, - "benchmarkCandidates": { - "description": "Benchmark Candidates", + "rewardsGet": { + "description": "My Reward Detail", "httpMethod": "GET", - "operationId": "benchmark_candidates_v1_admin_benchmark_candidates_get", + "operationId": "my_reward_detail_v1_me_rewards__reward_id__get", "parameters": [ { "description": null, - "location": "query", - "name": "min_quality_score", - "required": false, - "schema": { - "default": 90.0, - "type": "number" - } - }, - { - "description": null, - "location": "query", - "name": "min_novelty_score", - "required": false, - "schema": { - "default": 0.2, - "type": "number" - } - }, - { - "description": null, - "location": "query", - "name": "max_duplication_risk", - "required": false, - "schema": { - "default": 0.35, - "type": "number" - } - }, - { - "description": null, - "location": "query", - "name": "require_fisheye", - "required": false, - "schema": { - "default": false, - "type": "boolean" - } - }, - { - "description": null, - "location": "query", - "name": "decision", - "required": false, + "location": "path", + "name": "reward_id", + "required": true, "schema": { - "default": "", "type": "string" } }, { "description": null, - "location": "query", - "name": "limit", + "location": "header", + "name": "X-User-One-Id", "required": false, "schema": { - "default": 100, - "type": "integer" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, { "description": null, "location": "header", - "name": "X-Admin-Token", + "name": "X-User-Id", "required": false, "schema": { "anyOf": [ @@ -31364,16 +48353,11 @@ } } ], - "path": "/api/crowd-control/v1/admin/benchmark/candidates", - "pathParameters": [], - "queryParameters": [ - "min_quality_score", - "min_novelty_score", - "max_duplication_risk", - "require_fisheye", - "decision", - "limit" + "path": "/api/crowd-control/v1/me/rewards/{reward_id}", + "pathParameters": [ + "reward_id" ], + "queryParameters": [], "requestBody": null, "responses": { "200": { @@ -31401,33 +48385,50 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/benchmark/candidates", + "rawPath": "/v1/me/rewards/{reward_id}", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Benchmark Candidates", + "summary": "My Reward Detail", "tags": [ - "ops" + "rewards" ] }, - "benchmarkCandidatesDecision": { - "description": "Benchmark Candidate Decision", - "httpMethod": "POST", - "operationId": "benchmark_candidate_decision_v1_admin_benchmark_candidates__session_id__decision_post", + "rewardsSummary": { + "description": "My Rewards Summary", + "httpMethod": "GET", + "operationId": "my_rewards_summary_v1_me_rewards_summary_get", "parameters": [ { "description": null, - "location": "path", - "name": "session_id", - "required": true, + "location": "query", + "name": "task_id", + "required": false, "schema": { + "default": "", "type": "string" } }, { "description": null, "location": "header", - "name": "X-Admin-Token", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", "required": false, "schema": { "anyOf": [ @@ -31457,22 +48458,12 @@ } } ], - "path": "/api/crowd-control/v1/admin/benchmark/candidates/{session_id}/decision", - "pathParameters": [ - "session_id" + "path": "/api/crowd-control/v1/me/rewards/summary", + "pathParameters": [], + "queryParameters": [ + "task_id" ], - "queryParameters": [], - "requestBody": { - "contentTypes": [ - "application/json" - ], - "required": true, - "schema": { - "application/json": { - "$ref": "#/components/schemas/BenchmarkCandidateDecisionRequest" - } - } - }, + "requestBody": null, "responses": { "200": { "contentTypes": [ @@ -31499,24 +48490,24 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/benchmark/candidates/{session_id}/decision", + "rawPath": "/v1/me/rewards/summary", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Benchmark Candidate Decision", + "summary": "My Rewards Summary", "tags": [ - "ops" + "rewards" ] }, - "benchmarkReleases": { - "description": "List Benchmark Releases", + "sessions": { + "description": "List My Sessions", "httpMethod": "GET", - "operationId": "list_benchmark_releases_v1_admin_benchmark_releases_get", + "operationId": "list_my_sessions_v1_me_sessions_get", "parameters": [ { "description": null, "location": "query", - "name": "dataset_version", + "name": "task_id", "required": false, "schema": { "default": "", @@ -31526,17 +48517,99 @@ { "description": null, "location": "query", - "name": "status", + "name": "quality_status", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "review_status", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "reward_status", "required": false, "schema": { "default": "", "type": "string" } }, + { + "description": null, + "location": "query", + "name": "ready_for_review", + "required": false, + "schema": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "query", + "name": "limit", + "required": false, + "schema": { + "default": 20, + "type": "integer" + } + }, + { + "description": null, + "location": "query", + "name": "include_artifacts", + "required": false, + "schema": { + "default": false, + "type": "boolean" + } + }, + { + "description": null, + "location": "query", + "name": "include_full_metadata", + "required": false, + "schema": { + "default": false, + "type": "boolean" + } + }, { "description": null, "location": "header", - "name": "X-Admin-Token", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", "required": false, "schema": { "anyOf": [ @@ -31566,11 +48639,17 @@ } } ], - "path": "/api/crowd-control/v1/admin/benchmark/releases", + "path": "/api/crowd-control/v1/me/sessions", "pathParameters": [], "queryParameters": [ - "dataset_version", - "status" + "task_id", + "quality_status", + "review_status", + "reward_status", + "ready_for_review", + "limit", + "include_artifacts", + "include_full_metadata" ], "requestBody": null, "responses": { @@ -31599,33 +48678,50 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/benchmark/releases", + "rawPath": "/v1/me/sessions", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "List Benchmark Releases", + "summary": "List My Sessions", "tags": [ - "ops" + "sessions" ] }, - "benchmarkReleasesGet": { - "description": "Get Benchmark Release Detail", + "summary": { + "description": "Get My Session Summary", "httpMethod": "GET", - "operationId": "get_benchmark_release_detail_v1_admin_benchmark_releases__release_id__get", + "operationId": "get_my_session_summary_v1_me_summary_get", "parameters": [ { "description": null, - "location": "path", - "name": "release_id", - "required": true, + "location": "query", + "name": "task_id", + "required": false, "schema": { + "default": "", "type": "string" } }, { "description": null, "location": "header", - "name": "X-Admin-Token", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", "required": false, "schema": { "anyOf": [ @@ -31655,11 +48751,11 @@ } } ], - "path": "/api/crowd-control/v1/admin/benchmark/releases/{release_id}", - "pathParameters": [ - "release_id" + "path": "/api/crowd-control/v1/me/summary", + "pathParameters": [], + "queryParameters": [ + "task_id" ], - "queryParameters": [], "requestBody": null, "responses": { "200": { @@ -31687,33 +48783,80 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/benchmark/releases/{release_id}", + "rawPath": "/v1/me/summary", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Get Benchmark Release Detail", + "summary": "Get My Session Summary", "tags": [ - "ops" + "sessions" ] }, - "benchmarkReleasesManifest": { - "description": "Get Benchmark Release Manifest", + "tasks": { + "description": "List My Tasks", "httpMethod": "GET", - "operationId": "get_benchmark_release_manifest_v1_admin_benchmark_releases__release_id__manifest_get", + "operationId": "list_my_tasks_v1_me_tasks_get", "parameters": [ { "description": null, - "location": "path", - "name": "release_id", - "required": true, + "location": "query", + "name": "status", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "task_id", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "template_id", + "required": false, "schema": { + "default": "", "type": "string" } }, + { + "description": null, + "location": "query", + "name": "limit", + "required": false, + "schema": { + "default": 100, + "type": "integer" + } + }, { "description": null, "location": "header", - "name": "X-Admin-Token", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", "required": false, "schema": { "anyOf": [ @@ -31743,11 +48886,14 @@ } } ], - "path": "/api/crowd-control/v1/admin/benchmark/releases/{release_id}/manifest", - "pathParameters": [ - "release_id" + "path": "/api/crowd-control/v1/me/tasks", + "pathParameters": [], + "queryParameters": [ + "status", + "task_id", + "template_id", + "limit" ], - "queryParameters": [], "requestBody": null, "responses": { "200": { @@ -31775,24 +48921,49 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/benchmark/releases/{release_id}/manifest", + "rawPath": "/v1/me/tasks", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Get Benchmark Release Manifest", + "summary": "List My Tasks", "tags": [ - "ops" + "tasks" ] }, - "benchmarkReleasesPost": { - "description": "Create Benchmark Release", + "tasksAbandon": { + "description": "Abandon My Task", "httpMethod": "POST", - "operationId": "create_benchmark_release_v1_admin_benchmark_releases_post", + "operationId": "abandon_my_task_v1_me_tasks__task_id__abandon_post", "parameters": [ + { + "description": null, + "location": "path", + "name": "task_id", + "required": true, + "schema": { + "type": "string" + } + }, { "description": null, "location": "header", - "name": "X-Admin-Token", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", "required": false, "schema": { "anyOf": [ @@ -31822,17 +48993,26 @@ } } ], - "path": "/api/crowd-control/v1/admin/benchmark/releases", - "pathParameters": [], + "path": "/api/crowd-control/v1/me/tasks/{task_id}/abandon", + "pathParameters": [ + "task_id" + ], "queryParameters": [], "requestBody": { "contentTypes": [ "application/json" ], - "required": true, + "required": false, "schema": { "application/json": { - "$ref": "#/components/schemas/BenchmarkReleaseCreate" + "anyOf": [ + { + "$ref": "#/components/schemas/TaskLifecycleActionRequest" + }, + { + "type": "null" + } + ] } } }, @@ -31862,24 +49042,24 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/benchmark/releases", + "rawPath": "/v1/me/tasks/{task_id}/abandon", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Create Benchmark Release", + "summary": "Abandon My Task", "tags": [ - "ops" + "tasks" ] }, - "benchmarkReleasesStatus": { - "description": "Update Benchmark Release Status", + "tasksClaim": { + "description": "Claim My Task", "httpMethod": "POST", - "operationId": "update_benchmark_release_status_v1_admin_benchmark_releases__release_id__status_post", + "operationId": "claim_my_task_v1_me_tasks__task_id__claim_post", "parameters": [ { "description": null, "location": "path", - "name": "release_id", + "name": "task_id", "required": true, "schema": { "type": "string" @@ -31888,7 +49068,23 @@ { "description": null, "location": "header", - "name": "X-Admin-Token", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", "required": false, "schema": { "anyOf": [ @@ -31918,19 +49114,26 @@ } } ], - "path": "/api/crowd-control/v1/admin/benchmark/releases/{release_id}/status", + "path": "/api/crowd-control/v1/me/tasks/{task_id}/claim", "pathParameters": [ - "release_id" + "task_id" ], "queryParameters": [], "requestBody": { "contentTypes": [ "application/json" ], - "required": true, + "required": false, "schema": { "application/json": { - "$ref": "#/components/schemas/BenchmarkReleaseStatusUpdate" + "anyOf": [ + { + "$ref": "#/components/schemas/TaskClaimRequest" + }, + { + "type": "null" + } + ] } } }, @@ -31960,24 +49163,49 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/benchmark/releases/{release_id}/status", + "rawPath": "/v1/me/tasks/{task_id}/claim", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Update Benchmark Release Status", + "summary": "Claim My Task", "tags": [ - "ops" + "tasks" ] }, - "benchmarkSummary": { - "description": "Benchmark Summary", - "httpMethod": "GET", - "operationId": "benchmark_summary_v1_admin_benchmark_summary_get", + "tasksComplete": { + "description": "Complete My Task", + "httpMethod": "POST", + "operationId": "complete_my_task_v1_me_tasks__task_id__complete_post", "parameters": [ + { + "description": null, + "location": "path", + "name": "task_id", + "required": true, + "schema": { + "type": "string" + } + }, { "description": null, "location": "header", - "name": "X-Admin-Token", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", "required": false, "schema": { "anyOf": [ @@ -32007,10 +49235,29 @@ } } ], - "path": "/api/crowd-control/v1/admin/benchmark/summary", - "pathParameters": [], + "path": "/api/crowd-control/v1/me/tasks/{task_id}/complete", + "pathParameters": [ + "task_id" + ], "queryParameters": [], - "requestBody": null, + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": false, + "schema": { + "application/json": { + "anyOf": [ + { + "$ref": "#/components/schemas/TaskLifecycleActionRequest" + }, + { + "type": "null" + } + ] + } + } + }, "responses": { "200": { "contentTypes": [ @@ -32037,34 +49284,49 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/benchmark/summary", + "rawPath": "/v1/me/tasks/{task_id}/complete", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Benchmark Summary", + "summary": "Complete My Task", "tags": [ - "ops" + "tasks" ] }, - "benchmarkTrends": { - "description": "Benchmark Trends", + "tasksGet": { + "description": "Get My Task", "httpMethod": "GET", - "operationId": "benchmark_trends_v1_admin_benchmark_trends_get", + "operationId": "get_my_task_v1_me_tasks__task_id__get", "parameters": [ { "description": null, - "location": "query", - "name": "limit", + "location": "path", + "name": "task_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-User-One-Id", "required": false, "schema": { - "default": 14, - "type": "integer" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, { "description": null, "location": "header", - "name": "X-Admin-Token", + "name": "X-User-Id", "required": false, "schema": { "anyOf": [ @@ -32094,11 +49356,11 @@ } } ], - "path": "/api/crowd-control/v1/admin/benchmark/trends", - "pathParameters": [], - "queryParameters": [ - "limit" + "path": "/api/crowd-control/v1/me/tasks/{task_id}", + "pathParameters": [ + "task_id" ], + "queryParameters": [], "requestBody": null, "responses": { "200": { @@ -32126,24 +49388,49 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/benchmark/trends", + "rawPath": "/v1/me/tasks/{task_id}", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Benchmark Trends", + "summary": "Get My Task", "tags": [ - "ops" + "tasks" ] }, - "catalogReconcileEdgeRaw": { - "description": "Reconcile Edge Only Raw Catalog", + "tasksStart": { + "description": "Start My Task", "httpMethod": "POST", - "operationId": "reconcile_edge_only_raw_catalog_v1_admin_catalog_reconcile_edge_raw_post", + "operationId": "start_my_task_v1_me_tasks__task_id__start_post", "parameters": [ + { + "description": null, + "location": "path", + "name": "task_id", + "required": true, + "schema": { + "type": "string" + } + }, { "description": null, "location": "header", - "name": "X-Admin-Token", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", "required": false, "schema": { "anyOf": [ @@ -32173,17 +49460,26 @@ } } ], - "path": "/api/crowd-control/v1/admin/catalog/reconcile-edge-raw", - "pathParameters": [], + "path": "/api/crowd-control/v1/me/tasks/{task_id}/start", + "pathParameters": [ + "task_id" + ], "queryParameters": [], "requestBody": { "contentTypes": [ "application/json" ], - "required": true, + "required": false, "schema": { "application/json": { - "$ref": "#/components/schemas/EdgeRawReconciliationRequest" + "anyOf": [ + { + "$ref": "#/components/schemas/TaskLifecycleActionRequest" + }, + { + "type": "null" + } + ] } } }, @@ -32213,33 +49509,40 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/catalog/reconcile-edge-raw", + "rawPath": "/v1/me/tasks/{task_id}/start", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Reconcile Edge Only Raw Catalog", + "summary": "Start My Task", "tags": [ - "catalog" + "tasks" ] }, - "catalogSessionsDelete": { - "description": "Delete Catalog Session", - "httpMethod": "POST", - "operationId": "delete_catalog_session_v1_admin_catalog_sessions__session_id__delete_post", + "tasksSummary": { + "description": "Get My Task Summary", + "httpMethod": "GET", + "operationId": "get_my_task_summary_v1_me_tasks_summary_get", "parameters": [ { "description": null, - "location": "path", - "name": "session_id", - "required": true, + "location": "header", + "name": "X-User-One-Id", + "required": false, "schema": { - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, { "description": null, "location": "header", - "name": "X-Admin-Token", + "name": "X-User-Id", "required": false, "schema": { "anyOf": [ @@ -32269,22 +49572,10 @@ } } ], - "path": "/api/crowd-control/v1/admin/catalog/sessions/{session_id}/delete", - "pathParameters": [ - "session_id" - ], + "path": "/api/crowd-control/v1/me/tasks/summary", + "pathParameters": [], "queryParameters": [], - "requestBody": { - "contentTypes": [ - "application/json" - ], - "required": true, - "schema": { - "application/json": { - "$ref": "#/components/schemas/SessionDeleteRequest" - } - } - }, + "requestBody": null, "responses": { "200": { "contentTypes": [ @@ -32311,33 +49602,50 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/catalog/sessions/{session_id}/delete", + "rawPath": "/v1/me/tasks/summary", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Delete Catalog Session", + "summary": "Get My Task Summary", "tags": [ - "catalog" + "tasks" ] }, - "catalogSessionsRetention": { - "description": "Update Catalog Session Retention", - "httpMethod": "POST", - "operationId": "update_catalog_session_retention_v1_admin_catalog_sessions__session_id__retention_post", + "uploadScope": { + "description": "Get Current Upload Scope", + "httpMethod": "GET", + "operationId": "get_current_upload_scope_v1_me_uploadScope_get", "parameters": [ { "description": null, - "location": "path", - "name": "session_id", - "required": true, + "location": "query", + "name": "deviceId", + "required": false, "schema": { + "default": "", "type": "string" } }, { "description": null, "location": "header", - "name": "X-Admin-Token", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", "required": false, "schema": { "anyOf": [ @@ -32367,22 +49675,12 @@ } } ], - "path": "/api/crowd-control/v1/admin/catalog/sessions/{session_id}/retention", - "pathParameters": [ - "session_id" + "path": "/api/crowd-control/v1/me/uploadScope", + "pathParameters": [], + "queryParameters": [ + "deviceId" ], - "queryParameters": [], - "requestBody": { - "contentTypes": [ - "application/json" - ], - "required": true, - "schema": { - "application/json": { - "$ref": "#/components/schemas/SessionRetentionUpdateRequest" - } - } - }, + "requestBody": null, "responses": { "200": { "contentTypes": [ @@ -32409,24 +49707,60 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/catalog/sessions/{session_id}/retention", + "rawPath": "/v1/me/uploadScope", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Update Catalog Session Retention", + "summary": "Get Current Upload Scope", "tags": [ - "catalog" + "devices" ] }, - "datasetMemberships": { - "description": "List Dataset Memberships", + "uploadStatus": { + "description": "List My Upload Status", "httpMethod": "GET", - "operationId": "list_dataset_memberships_v1_admin_dataset_memberships_get", + "operationId": "list_my_upload_status_v1_me_upload_status_get", "parameters": [ + { + "description": null, + "location": "query", + "name": "task_id", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "limit", + "required": false, + "schema": { + "default": 100, + "type": "integer" + } + }, { "description": null, "location": "header", - "name": "X-Admin-Token", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", "required": false, "schema": { "anyOf": [ @@ -32456,9 +49790,12 @@ } } ], - "path": "/api/crowd-control/v1/admin/dataset-memberships", + "path": "/api/crowd-control/v1/me/upload-status", "pathParameters": [], - "queryParameters": [], + "queryParameters": [ + "task_id", + "limit" + ], "requestBody": null, "responses": { "200": { @@ -32486,19 +49823,23 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/dataset-memberships", + "rawPath": "/v1/me/upload-status", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "List Dataset Memberships", + "summary": "List My Upload Status", "tags": [ - "exports" + "sessions" ] - }, - "datasetMembershipsPost": { - "description": "Create Dataset Membership", + } + } + }, + "miker": { + "methods": { + "egoActionsFinalizeSettlement": { + "description": "Finalize Miker Ego Settlement", "httpMethod": "POST", - "operationId": "create_dataset_membership_v1_admin_dataset_memberships_post", + "operationId": "finalize_miker_ego_settlement_v2_miker_ego_actions_finalize_settlement_post", "parameters": [ { "description": null, @@ -32531,9 +49872,41 @@ } ] } + }, + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } } ], - "path": "/api/crowd-control/v1/admin/dataset-memberships", + "path": "/api/crowd-control/v2/miker/ego/actions/finalize-settlement", "pathParameters": [], "queryParameters": [], "requestBody": { @@ -32543,12 +49916,12 @@ "required": true, "schema": { "application/json": { - "$ref": "#/components/schemas/DatasetMembershipCreate" + "$ref": "#/components/schemas/EgoMikerSettlementFinalizeRequest" } } }, "responses": { - "201": { + "200": { "contentTypes": [ "application/json" ], @@ -32573,19 +49946,19 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/dataset-memberships", + "rawPath": "/v2/miker/ego/actions/finalize-settlement", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Create Dataset Membership", + "summary": "Finalize Miker Ego Settlement", "tags": [ - "exports" + "ego-v2" ] }, - "edgeDevices": { - "description": "List Edge Devices", - "httpMethod": "GET", - "operationId": "list_edge_devices_v1_admin_edge_devices_get", + "egoActionsHoldSettlement": { + "description": "Hold Miker Ego Settlement", + "httpMethod": "POST", + "operationId": "hold_miker_ego_settlement_v2_miker_ego_actions_hold_settlement_post", "parameters": [ { "description": null, @@ -32618,65 +49991,11 @@ } ] } - } - ], - "path": "/api/crowd-control/v1/admin/edge-devices", - "pathParameters": [], - "queryParameters": [], - "requestBody": null, - "responses": { - "200": { - "contentTypes": [ - "application/json" - ], - "description": "Successful Response", - "schema": { - "application/json": { - "type": "object" - } - } - }, - "422": { - "contentTypes": [ - "application/json" - ], - "description": "Validation Error", - "schema": { - "application/json": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - }, - "security": null, - "source": { - "rawPath": "/v1/admin/edge-devices", - "service": "crowd", - "servicePath": "/api/crowd-control" - }, - "summary": "List Edge Devices", - "tags": [ - "devices" - ] - }, - "edgeDevicesActivate": { - "description": "Activate Edge Device", - "httpMethod": "POST", - "operationId": "activate_edge_device_v1_admin_edge_devices__device_id__activate_post", - "parameters": [ - { - "description": null, - "location": "path", - "name": "device_id", - "required": true, - "schema": { - "type": "string" - } }, { "description": null, "location": "header", - "name": "X-Admin-Token", + "name": "X-User-One-Id", "required": false, "schema": { "anyOf": [ @@ -32692,7 +50011,7 @@ { "description": null, "location": "header", - "name": "Authorization", + "name": "X-User-Id", "required": false, "schema": { "anyOf": [ @@ -32706,10 +50025,8 @@ } } ], - "path": "/api/crowd-control/v1/admin/edge-devices/{device_id}/activate", - "pathParameters": [ - "device_id" - ], + "path": "/api/crowd-control/v2/miker/ego/actions/hold-settlement", + "pathParameters": [], "queryParameters": [], "requestBody": { "contentTypes": [ @@ -32718,7 +50035,7 @@ "required": true, "schema": { "application/json": { - "$ref": "#/components/schemas/EdgeDeviceActivateRequest" + "$ref": "#/components/schemas/EgoMikerActionRequest" } } }, @@ -32748,19 +50065,19 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/edge-devices/{device_id}/activate", + "rawPath": "/v2/miker/ego/actions/hold-settlement", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Activate Edge Device", + "summary": "Hold Miker Ego Settlement", "tags": [ - "devices" + "ego-v2" ] }, - "edgeDevicesPost": { - "description": "Create Edge Device", + "egoActionsPublishListing": { + "description": "Publish Miker Ego Listing", "httpMethod": "POST", - "operationId": "create_edge_device_v1_admin_edge_devices_post", + "operationId": "publish_miker_ego_listing_v2_miker_ego_actions_publish_listing_post", "parameters": [ { "description": null, @@ -32793,9 +50110,41 @@ } ] } + }, + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } } ], - "path": "/api/crowd-control/v1/admin/edge-devices", + "path": "/api/crowd-control/v2/miker/ego/actions/publish-listing", "pathParameters": [], "queryParameters": [], "requestBody": { @@ -32805,12 +50154,12 @@ "required": true, "schema": { "application/json": { - "$ref": "#/components/schemas/EdgeDeviceCreate" + "$ref": "#/components/schemas/EgoMikerListingPublishRequest" } } }, "responses": { - "201": { + "200": { "contentTypes": [ "application/json" ], @@ -32835,19 +50184,19 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/edge-devices", + "rawPath": "/v2/miker/ego/actions/publish-listing", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Create Edge Device", + "summary": "Publish Miker Ego Listing", "tags": [ - "devices" + "ego-v2" ] }, - "episodeExports": { - "description": "List Episode Exports", - "httpMethod": "GET", - "operationId": "list_episode_exports_v1_admin_episode_exports_get", + "egoActionsUpdatePricing": { + "description": "Update Miker Ego Listing Pricing", + "httpMethod": "POST", + "operationId": "update_miker_ego_listing_pricing_v2_miker_ego_actions_update_pricing_post", "parameters": [ { "description": null, @@ -32880,56 +50229,11 @@ } ] } - } - ], - "path": "/api/crowd-control/v1/admin/episode-exports", - "pathParameters": [], - "queryParameters": [], - "requestBody": null, - "responses": { - "200": { - "contentTypes": [ - "application/json" - ], - "description": "Successful Response", - "schema": { - "application/json": { - "type": "object" - } - } }, - "422": { - "contentTypes": [ - "application/json" - ], - "description": "Validation Error", - "schema": { - "application/json": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - }, - "security": null, - "source": { - "rawPath": "/v1/admin/episode-exports", - "service": "crowd", - "servicePath": "/api/crowd-control" - }, - "summary": "List Episode Exports", - "tags": [ - "exports" - ] - }, - "episodeExportsPost": { - "description": "Create Episode Export", - "httpMethod": "POST", - "operationId": "create_episode_export_v1_admin_episode_exports_post", - "parameters": [ { "description": null, "location": "header", - "name": "X-Admin-Token", + "name": "X-User-One-Id", "required": false, "schema": { "anyOf": [ @@ -32945,7 +50249,7 @@ { "description": null, "location": "header", - "name": "Authorization", + "name": "X-User-Id", "required": false, "schema": { "anyOf": [ @@ -32959,7 +50263,7 @@ } } ], - "path": "/api/crowd-control/v1/admin/episode-exports", + "path": "/api/crowd-control/v2/miker/ego/actions/update-pricing", "pathParameters": [], "queryParameters": [], "requestBody": { @@ -32969,12 +50273,12 @@ "required": true, "schema": { "application/json": { - "$ref": "#/components/schemas/EpisodeExportCreate" + "$ref": "#/components/schemas/EgoMikerListingPricingRequest" } } }, "responses": { - "201": { + "200": { "contentTypes": [ "application/json" ], @@ -32999,20 +50303,29 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/episode-exports", + "rawPath": "/v2/miker/ego/actions/update-pricing", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Create Episode Export", + "summary": "Update Miker Ego Listing Pricing", "tags": [ - "exports" + "ego-v2" ] }, - "governanceOverview": { - "description": "Governance Overview", - "httpMethod": "GET", - "operationId": "governance_overview_v1_admin_governance_overview_get", + "egoDataContractProfiles": { + "description": "Update Miker Ego Data Contract Profile", + "httpMethod": "POST", + "operationId": "update_miker_ego_data_contract_profile_v2_miker_ego_data_contract_profiles__profile_id__post", "parameters": [ + { + "description": null, + "location": "path", + "name": "profile_id", + "required": true, + "schema": { + "type": "string" + } + }, { "description": null, "location": "header", @@ -33044,12 +50357,56 @@ } ] } + }, + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } } ], - "path": "/api/crowd-control/v1/admin/governance/overview", - "pathParameters": [], + "path": "/api/crowd-control/v2/miker/ego/data-contract-profiles/{profile_id}", + "pathParameters": [ + "profile_id" + ], "queryParameters": [], - "requestBody": null, + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/EgoDataContractProfileUpdate" + } + } + }, "responses": { "200": { "contentTypes": [ @@ -33076,60 +50433,29 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/governance/overview", + "rawPath": "/v2/miker/ego/data-contract-profiles/{profile_id}", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Governance Overview", + "summary": "Update Miker Ego Data Contract Profile", "tags": [ - "ops" + "ego-v2" ] }, - "notificationDeliveries": { - "description": "List Notification Deliveries", + "egoDatasetPackages": { + "description": "Get Miker Dataset Package Detail", "httpMethod": "GET", - "operationId": "list_notification_deliveries_v1_admin_notification_deliveries_get", + "operationId": "get_miker_dataset_package_detail_v2_miker_ego_dataset_packages__package_id__get", "parameters": [ { "description": null, - "location": "query", - "name": "user_one_id", - "required": false, - "schema": { - "default": "", - "type": "string" - } - }, - { - "description": null, - "location": "query", - "name": "status", - "required": false, - "schema": { - "default": "", - "type": "string" - } - }, - { - "description": null, - "location": "query", - "name": "channel", - "required": false, + "location": "path", + "name": "package_id", + "required": true, "schema": { - "default": "", "type": "string" } }, - { - "description": null, - "location": "query", - "name": "limit", - "required": false, - "schema": { - "default": 200, - "type": "integer" - } - }, { "description": null, "location": "header", @@ -33163,14 +50489,11 @@ } } ], - "path": "/api/crowd-control/v1/admin/notification-deliveries", - "pathParameters": [], - "queryParameters": [ - "user_one_id", - "status", - "channel", - "limit" + "path": "/api/crowd-control/v2/miker/ego/dataset-packages/{package_id}", + "pathParameters": [ + "package_id" ], + "queryParameters": [], "requestBody": null, "responses": { "200": { @@ -33198,24 +50521,24 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/notification-deliveries", + "rawPath": "/v2/miker/ego/dataset-packages/{package_id}", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "List Notification Deliveries", + "summary": "Get Miker Dataset Package Detail", "tags": [ - "notifications" + "ego-v2" ] }, - "notificationDeliveriesDispatch": { - "description": "Dispatch Notification Delivery", - "httpMethod": "POST", - "operationId": "dispatch_notification_delivery_v1_admin_notification_deliveries__delivery_id__dispatch_post", + "egoDatasetPackagesHistory": { + "description": "Get Miker Dataset Package History", + "httpMethod": "GET", + "operationId": "get_miker_dataset_package_history_v2_miker_ego_dataset_packages__package_id__history_get", "parameters": [ { "description": null, "location": "path", - "name": "delivery_id", + "name": "package_id", "required": true, "schema": { "type": "string" @@ -33254,22 +50577,12 @@ } } ], - "path": "/api/crowd-control/v1/admin/notification-deliveries/{delivery_id}/dispatch", + "path": "/api/crowd-control/v2/miker/ego/dataset-packages/{package_id}/history", "pathParameters": [ - "delivery_id" + "package_id" ], "queryParameters": [], - "requestBody": { - "contentTypes": [ - "application/json" - ], - "required": true, - "schema": { - "application/json": { - "$ref": "#/components/schemas/NotificationDeliveryDispatchRequest" - } - } - }, + "requestBody": null, "responses": { "200": { "contentTypes": [ @@ -33296,44 +50609,49 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/notification-deliveries/{delivery_id}/dispatch", + "rawPath": "/v2/miker/ego/dataset-packages/{package_id}/history", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Dispatch Notification Delivery", + "summary": "Get Miker Dataset Package History", "tags": [ - "notifications" + "ego-v2" ] }, - "notificationDeliveriesDispatchPending": { - "description": "Dispatch Pending Notification Deliveries", + "egoOccupationCatalogReview": { + "description": "Review Occupation Catalog Entry", "httpMethod": "POST", - "operationId": "dispatch_pending_notification_deliveries_v1_admin_notification_deliveries_dispatch_pending_post", + "operationId": "review_occupation_catalog_entry_v2_miker_ego_occupation_catalog__code__review_post", "parameters": [ { "description": null, - "location": "query", - "name": "status_filter", - "required": false, + "location": "path", + "name": "code", + "required": true, "schema": { - "default": "queued", "type": "string" } }, { "description": null, - "location": "query", - "name": "limit", + "location": "header", + "name": "X-Admin-Token", "required": false, "schema": { - "default": 50, - "type": "integer" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, { "description": null, "location": "header", - "name": "X-Admin-Token", + "name": "Authorization", "required": false, "schema": { "anyOf": [ @@ -33349,7 +50667,23 @@ { "description": null, "location": "header", - "name": "Authorization", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", "required": false, "schema": { "anyOf": [ @@ -33363,13 +50697,22 @@ } } ], - "path": "/api/crowd-control/v1/admin/notification-deliveries/dispatch-pending", - "pathParameters": [], - "queryParameters": [ - "status_filter", - "limit" + "path": "/api/crowd-control/v2/miker/ego/occupation-catalog/{code}/review", + "pathParameters": [ + "code" ], - "requestBody": null, + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/EgoOccupationCatalogReviewRequest" + } + } + }, "responses": { "200": { "contentTypes": [ @@ -33396,30 +50739,79 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/notification-deliveries/dispatch-pending", + "rawPath": "/v2/miker/ego/occupation-catalog/{code}/review", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Dispatch Pending Notification Deliveries", + "summary": "Review Occupation Catalog Entry", "tags": [ - "notifications" + "ego-v2" ] }, - "notificationDeliveriesRetryFailed": { - "description": "Retry Failed Notification Deliveries", - "httpMethod": "POST", - "operationId": "retry_failed_notification_deliveries_v1_admin_notification_deliveries_retry_failed_post", + "egoQueues": { + "description": "Get Miker Ego Queue", + "httpMethod": "GET", + "operationId": "get_miker_ego_queue_v2_miker_ego_queues__queue_key__get", "parameters": [ + { + "description": null, + "location": "path", + "name": "queue_key", + "required": true, + "schema": { + "type": "string" + } + }, { "description": null, "location": "query", "name": "limit", "required": false, "schema": { - "default": 50, + "default": 100, "type": "integer" } }, + { + "description": null, + "location": "query", + "name": "offset", + "required": false, + "schema": { + "default": 0, + "type": "integer" + } + }, + { + "description": null, + "location": "query", + "name": "cursor", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "q", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "status", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, { "description": null, "location": "header", @@ -33453,10 +50845,16 @@ } } ], - "path": "/api/crowd-control/v1/admin/notification-deliveries/retry-failed", - "pathParameters": [], + "path": "/api/crowd-control/v2/miker/ego/queues/{queue_key}", + "pathParameters": [ + "queue_key" + ], "queryParameters": [ - "limit" + "limit", + "offset", + "cursor", + "q", + "status" ], "requestBody": null, "responses": { @@ -33485,29 +50883,20 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/notification-deliveries/retry-failed", + "rawPath": "/v2/miker/ego/queues/{queue_key}", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Retry Failed Notification Deliveries", + "summary": "Get Miker Ego Queue", "tags": [ - "notifications" + "ego-v2" ] }, - "notificationDeliveriesStatus": { - "description": "Update Notification Delivery Status", - "httpMethod": "POST", - "operationId": "update_notification_delivery_status_v1_admin_notification_deliveries__delivery_id__status_post", + "egoQueuesOccupationCatalogReview": { + "description": "Occupation Catalog Review Queue", + "httpMethod": "GET", + "operationId": "occupation_catalog_review_queue_v2_miker_ego_queues_occupation_catalog_review_get", "parameters": [ - { - "description": null, - "location": "path", - "name": "delivery_id", - "required": true, - "schema": { - "type": "string" - } - }, { "description": null, "location": "header", @@ -33541,22 +50930,10 @@ } } ], - "path": "/api/crowd-control/v1/admin/notification-deliveries/{delivery_id}/status", - "pathParameters": [ - "delivery_id" - ], + "path": "/api/crowd-control/v2/miker/ego/queues/occupation-catalog-review", + "pathParameters": [], "queryParameters": [], - "requestBody": { - "contentTypes": [ - "application/json" - ], - "required": true, - "schema": { - "application/json": { - "$ref": "#/components/schemas/NotificationDeliveryStatusUpdateRequest" - } - } - }, + "requestBody": null, "responses": { "200": { "contentTypes": [ @@ -33583,60 +50960,29 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/notification-deliveries/{delivery_id}/status", + "rawPath": "/v2/miker/ego/queues/occupation-catalog-review", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Update Notification Delivery Status", + "summary": "Occupation Catalog Review Queue", "tags": [ - "notifications" + "ego-v2" ] }, - "notifications": { - "description": "List Notifications", + "egoSettlements": { + "description": "Get Miker Settlement Detail", "httpMethod": "GET", - "operationId": "list_notifications_v1_admin_notifications_get", + "operationId": "get_miker_settlement_detail_v2_miker_ego_settlements__settlement_id__get", "parameters": [ { "description": null, - "location": "query", - "name": "user_one_id", - "required": false, - "schema": { - "default": "", - "type": "string" - } - }, - { - "description": null, - "location": "query", - "name": "category", - "required": false, - "schema": { - "default": "", - "type": "string" - } - }, - { - "description": null, - "location": "query", - "name": "status", - "required": false, + "location": "path", + "name": "settlement_id", + "required": true, "schema": { - "default": "", "type": "string" } }, - { - "description": null, - "location": "query", - "name": "limit", - "required": false, - "schema": { - "default": 200, - "type": "integer" - } - }, { "description": null, "location": "header", @@ -33670,14 +51016,11 @@ } } ], - "path": "/api/crowd-control/v1/admin/notifications", - "pathParameters": [], - "queryParameters": [ - "user_one_id", - "category", - "status", - "limit" + "path": "/api/crowd-control/v2/miker/ego/settlements/{settlement_id}", + "pathParameters": [ + "settlement_id" ], + "queryParameters": [], "requestBody": null, "responses": { "200": { @@ -33705,20 +51048,29 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/notifications", + "rawPath": "/v2/miker/ego/settlements/{settlement_id}", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "List Notifications", + "summary": "Get Miker Settlement Detail", "tags": [ - "notifications" + "ego-v2" ] }, - "notificationsPost": { - "description": "Create Notification", - "httpMethod": "POST", - "operationId": "create_notification_v1_admin_notifications_post", + "egoSettlementsHistory": { + "description": "Get Miker Settlement History", + "httpMethod": "GET", + "operationId": "get_miker_settlement_history_v2_miker_ego_settlements__settlement_id__history_get", "parameters": [ + { + "description": null, + "location": "path", + "name": "settlement_id", + "required": true, + "schema": { + "type": "string" + } + }, { "description": null, "location": "header", @@ -33752,22 +51104,14 @@ } } ], - "path": "/api/crowd-control/v1/admin/notifications", - "pathParameters": [], + "path": "/api/crowd-control/v2/miker/ego/settlements/{settlement_id}/history", + "pathParameters": [ + "settlement_id" + ], "queryParameters": [], - "requestBody": { - "contentTypes": [ - "application/json" - ], - "required": true, - "schema": { - "application/json": { - "$ref": "#/components/schemas/NotificationCreateRequest" - } - } - }, + "requestBody": null, "responses": { - "201": { + "200": { "contentTypes": [ "application/json" ], @@ -33792,47 +51136,26 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/notifications", + "rawPath": "/v2/miker/ego/settlements/{settlement_id}/history", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Create Notification", + "summary": "Get Miker Settlement History", "tags": [ - "notifications" + "ego-v2" ] }, - "opsGovernanceAlerts": { - "description": "List Governance Alerts", + "egoTaskExecutions": { + "description": "Get Miker Task Execution Detail", "httpMethod": "GET", - "operationId": "list_governance_alerts_v1_admin_ops_governance_alerts_get", + "operationId": "get_miker_task_execution_detail_v2_miker_ego_task_executions__execution_id__get", "parameters": [ { "description": null, - "location": "query", - "name": "limit", - "required": false, - "schema": { - "default": 50, - "type": "integer" - } - }, - { - "description": null, - "location": "query", - "name": "severity", - "required": false, - "schema": { - "default": "", - "type": "string" - } - }, - { - "description": null, - "location": "query", - "name": "reason", - "required": false, + "location": "path", + "name": "execution_id", + "required": true, "schema": { - "default": "", "type": "string" } }, @@ -33869,13 +51192,11 @@ } } ], - "path": "/api/crowd-control/v1/admin/ops/governance-alerts", - "pathParameters": [], - "queryParameters": [ - "limit", - "severity", - "reason" + "path": "/api/crowd-control/v2/miker/ego/task-executions/{execution_id}", + "pathParameters": [ + "execution_id" ], + "queryParameters": [], "requestBody": null, "responses": { "200": { @@ -33903,24 +51224,24 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/ops/governance-alerts", + "rawPath": "/v2/miker/ego/task-executions/{execution_id}", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "List Governance Alerts", + "summary": "Get Miker Task Execution Detail", "tags": [ - "ops" + "ego-v2" ] }, - "opsGovernanceAlertsManualTakeover": { - "description": "Register Governance Manual Takeover", + "egoTaskExecutionsAccept": { + "description": "Accept Full Execution", "httpMethod": "POST", - "operationId": "register_governance_manual_takeover_v1_admin_ops_governance_alerts__session_id__manual_takeover_post", + "operationId": "accept_full_execution_v2_miker_ego_task_executions__execution_id__accept_post", "parameters": [ { "description": null, "location": "path", - "name": "session_id", + "name": "execution_id", "required": true, "schema": { "type": "string" @@ -33957,11 +51278,43 @@ } ] } + }, + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } } ], - "path": "/api/crowd-control/v1/admin/ops/governance-alerts/{session_id}/manual-takeover", + "path": "/api/crowd-control/v2/miker/ego/task-executions/{execution_id}/accept", "pathParameters": [ - "session_id" + "execution_id" ], "queryParameters": [], "requestBody": { @@ -33971,7 +51324,7 @@ "required": true, "schema": { "application/json": { - "$ref": "#/components/schemas/GovernanceManualTakeoverRequest" + "$ref": "#/components/schemas/EgoQualityReviewRequest" } } }, @@ -34001,20 +51354,29 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/ops/governance-alerts/{session_id}/manual-takeover", + "rawPath": "/v2/miker/ego/task-executions/{execution_id}/accept", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Register Governance Manual Takeover", + "summary": "Accept Full Execution", "tags": [ - "ops" + "ego-v2" ] }, - "opsSummary": { - "description": "Ops Summary", + "egoTaskExecutionsHistory": { + "description": "Get Miker Execution History", "httpMethod": "GET", - "operationId": "ops_summary_v1_admin_ops_summary_get", + "operationId": "get_miker_execution_history_v2_miker_ego_task_executions__execution_id__history_get", "parameters": [ + { + "description": null, + "location": "path", + "name": "execution_id", + "required": true, + "schema": { + "type": "string" + } + }, { "description": null, "location": "header", @@ -34048,8 +51410,10 @@ } } ], - "path": "/api/crowd-control/v1/admin/ops/summary", - "pathParameters": [], + "path": "/api/crowd-control/v2/miker/ego/task-executions/{execution_id}/history", + "pathParameters": [ + "execution_id" + ], "queryParameters": [], "requestBody": null, "responses": { @@ -34078,64 +51442,65 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/ops/summary", + "rawPath": "/v2/miker/ego/task-executions/{execution_id}/history", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Ops Summary", + "summary": "Get Miker Execution History", "tags": [ - "ops" + "ego-v2" ] }, - "publicEgoDatasetFoundryApplications": { - "description": "List EGO foundry applications", - "httpMethod": "GET", - "operationId": "list_public_ego_dataset_foundry_applications_admin_v1_admin_public_ego_dataset_foundry_applications_get", + "egoTaskExecutionsNeedsRetry": { + "description": "Mark Full Execution Needs Retry", + "httpMethod": "POST", + "operationId": "mark_full_execution_needs_retry_v2_miker_ego_task_executions__execution_id__needs_retry_post", "parameters": [ { "description": null, - "location": "query", - "name": "status", - "required": false, - "schema": { - "default": "", - "type": "string" - } - }, - { - "description": null, - "location": "query", - "name": "q", - "required": false, + "location": "path", + "name": "execution_id", + "required": true, "schema": { - "default": "", "type": "string" } }, { "description": null, - "location": "query", - "name": "limit", + "location": "header", + "name": "X-Admin-Token", "required": false, "schema": { - "default": 100, - "type": "integer" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, { "description": null, - "location": "query", - "name": "offset", + "location": "header", + "name": "Authorization", "required": false, "schema": { - "default": 0, - "type": "integer" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, { "description": null, "location": "header", - "name": "X-Admin-Token", + "name": "X-User-One-Id", "required": false, "schema": { "anyOf": [ @@ -34151,7 +51516,7 @@ { "description": null, "location": "header", - "name": "Authorization", + "name": "X-User-Id", "required": false, "schema": { "anyOf": [ @@ -34165,15 +51530,22 @@ } } ], - "path": "/api/crowd-control/v1/admin/public-ego-dataset/foundry-applications", - "pathParameters": [], - "queryParameters": [ - "status", - "q", - "limit", - "offset" + "path": "/api/crowd-control/v2/miker/ego/task-executions/{execution_id}/needs-retry", + "pathParameters": [ + "execution_id" ], - "requestBody": null, + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/EgoReworkReviewRequest" + } + } + }, "responses": { "200": { "contentTypes": [ @@ -34182,7 +51554,7 @@ "description": "Successful Response", "schema": { "application/json": { - "$ref": "#/components/schemas/PublicEgoDatasetFoundryApplicationListRead" + "type": "object" } } }, @@ -34200,24 +51572,24 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/public-ego-dataset/foundry-applications", + "rawPath": "/v2/miker/ego/task-executions/{execution_id}/needs-retry", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "List EGO foundry applications", + "summary": "Mark Full Execution Needs Retry", "tags": [ - "catalog" + "ego-v2" ] }, - "publicEgoDatasetFoundryApplicationsStatus": { - "description": "Update EGO foundry application status", + "egoTaskExecutionsReject": { + "description": "Reject Full Execution", "httpMethod": "POST", - "operationId": "update_public_ego_dataset_foundry_application_status_admin_v1_admin_public_ego_dataset_foundry_applications__application_id__status_post", + "operationId": "reject_full_execution_v2_miker_ego_task_executions__execution_id__reject_post", "parameters": [ { "description": null, "location": "path", - "name": "application_id", + "name": "execution_id", "required": true, "schema": { "type": "string" @@ -34254,11 +51626,43 @@ } ] } + }, + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } } ], - "path": "/api/crowd-control/v1/admin/public-ego-dataset/foundry-applications/{application_id}/status", + "path": "/api/crowd-control/v2/miker/ego/task-executions/{execution_id}/reject", "pathParameters": [ - "application_id" + "execution_id" ], "queryParameters": [], "requestBody": { @@ -34268,7 +51672,7 @@ "required": true, "schema": { "application/json": { - "$ref": "#/components/schemas/PublicEgoDatasetFoundryApplicationStatusUpdate" + "$ref": "#/components/schemas/EgoQualityReviewRequest" } } }, @@ -34280,7 +51684,7 @@ "description": "Successful Response", "schema": { "application/json": { - "$ref": "#/components/schemas/PublicEgoDatasetFoundryApplicationAdminRead" + "type": "object" } } }, @@ -34298,20 +51702,29 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/public-ego-dataset/foundry-applications/{application_id}/status", + "rawPath": "/v2/miker/ego/task-executions/{execution_id}/reject", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Update EGO foundry application status", + "summary": "Reject Full Execution", "tags": [ - "catalog" + "ego-v2" ] }, - "publicEgoDatasetRuntime": { - "description": "Get Public Ego Dataset Runtime Summary", + "egoTasks": { + "description": "Get Miker Task Detail", "httpMethod": "GET", - "operationId": "get_public_ego_dataset_runtime_summary_v1_admin_public_ego_dataset_runtime_get", + "operationId": "get_miker_task_detail_v2_miker_ego_tasks__task_id__get", "parameters": [ + { + "description": null, + "location": "path", + "name": "task_id", + "required": true, + "schema": { + "type": "string" + } + }, { "description": null, "location": "header", @@ -34345,8 +51758,10 @@ } } ], - "path": "/api/crowd-control/v1/admin/public-ego-dataset/runtime", - "pathParameters": [], + "path": "/api/crowd-control/v2/miker/ego/tasks/{task_id}", + "pathParameters": [ + "task_id" + ], "queryParameters": [], "requestBody": null, "responses": { @@ -34375,20 +51790,29 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/public-ego-dataset/runtime", + "rawPath": "/v2/miker/ego/tasks/{task_id}", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Get Public Ego Dataset Runtime Summary", + "summary": "Get Miker Task Detail", "tags": [ - "catalog" + "ego-v2" ] }, - "publicPaymentProviderConfig": { - "description": "Public Payment Provider Config", - "httpMethod": "GET", - "operationId": "public_payment_provider_config_v1_admin_public_payment_provider_config_get", + "egoTasksApproveSample": { + "description": "Approve Sample", + "httpMethod": "POST", + "operationId": "approve_sample_v2_miker_ego_tasks__task_id__approve_sample_post", "parameters": [ + { + "description": null, + "location": "path", + "name": "task_id", + "required": true, + "schema": { + "type": "string" + } + }, { "description": null, "location": "header", @@ -34422,10 +51846,29 @@ } } ], - "path": "/api/crowd-control/v1/admin/public-payment-provider-config", - "pathParameters": [], + "path": "/api/crowd-control/v2/miker/ego/tasks/{task_id}/approve-sample", + "pathParameters": [ + "task_id" + ], "queryParameters": [], - "requestBody": null, + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": false, + "schema": { + "application/json": { + "anyOf": [ + { + "$ref": "#/components/schemas/EgoReviewActionRequest" + }, + { + "type": "null" + } + ] + } + } + }, "responses": { "200": { "contentTypes": [ @@ -34452,20 +51895,29 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/public-payment-provider-config", + "rawPath": "/v2/miker/ego/tasks/{task_id}/approve-sample", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Public Payment Provider Config", + "summary": "Approve Sample", "tags": [ - "ops" + "ego-v2" ] }, - "pushProviderConfig": { - "description": "Get Push Provider Config", - "httpMethod": "GET", - "operationId": "get_push_provider_config_v1_admin_push_provider_config_get", + "egoTasksContractApproval": { + "description": "Approve Task Contract And Sample", + "httpMethod": "POST", + "operationId": "approve_task_contract_and_sample_v2_miker_ego_tasks__task_id__contract_approval_post", "parameters": [ + { + "description": null, + "location": "path", + "name": "task_id", + "required": true, + "schema": { + "type": "string" + } + }, { "description": null, "location": "header", @@ -34497,65 +51949,11 @@ } ] } - } - ], - "path": "/api/crowd-control/v1/admin/push-provider-config", - "pathParameters": [], - "queryParameters": [], - "requestBody": null, - "responses": { - "200": { - "contentTypes": [ - "application/json" - ], - "description": "Successful Response", - "schema": { - "application/json": { - "type": "object" - } - } - }, - "422": { - "contentTypes": [ - "application/json" - ], - "description": "Validation Error", - "schema": { - "application/json": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - }, - "security": null, - "source": { - "rawPath": "/v1/admin/push-provider-config", - "service": "crowd", - "servicePath": "/api/crowd-control" - }, - "summary": "Get Push Provider Config", - "tags": [ - "notifications" - ] - }, - "reviewsUpsert": { - "description": "Upsert Auto Review", - "httpMethod": "POST", - "operationId": "upsert_auto_review_v1_admin_reviews_upsert_post", - "parameters": [ - { - "description": null, - "location": "query", - "name": "session_id", - "required": true, - "schema": { - "type": "string" - } }, { "description": null, "location": "header", - "name": "X-Admin-Token", + "name": "X-User-One-Id", "required": false, "schema": { "anyOf": [ @@ -34571,7 +51969,7 @@ { "description": null, "location": "header", - "name": "Authorization", + "name": "X-User-Id", "required": false, "schema": { "anyOf": [ @@ -34585,11 +51983,11 @@ } } ], - "path": "/api/crowd-control/v1/admin/reviews/upsert", - "pathParameters": [], - "queryParameters": [ - "session_id" + "path": "/api/crowd-control/v2/miker/ego/tasks/{task_id}/contract-approval", + "pathParameters": [ + "task_id" ], + "queryParameters": [], "requestBody": { "contentTypes": [ "application/json" @@ -34597,7 +51995,7 @@ "required": true, "schema": { "application/json": { - "$ref": "#/components/schemas/ReviewDecisionRequest" + "$ref": "#/components/schemas/EgoTaskContractApprovalRequest" } } }, @@ -34627,74 +52025,65 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/reviews/upsert", + "rawPath": "/v2/miker/ego/tasks/{task_id}/contract-approval", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Upsert Auto Review", + "summary": "Approve Task Contract And Sample", "tags": [ - "review" + "ego-v2" ] }, - "rewardLedger": { - "description": "List Reward Ledger", - "httpMethod": "GET", - "operationId": "list_reward_ledger_v1_admin_reward_ledger_get", + "egoTasksDescriptionUpdate": { + "description": "Update Miker Task Description", + "httpMethod": "PATCH", + "operationId": "update_miker_task_description_v2_miker_ego_tasks__task_id__description_patch", "parameters": [ { "description": null, - "location": "query", - "name": "status", - "required": false, - "schema": { - "default": "", - "type": "string" - } - }, - { - "description": null, - "location": "query", - "name": "dispute_status", - "required": false, - "schema": { - "default": "", - "type": "string" - } - }, - { - "description": null, - "location": "query", + "location": "path", "name": "task_id", - "required": false, + "required": true, "schema": { - "default": "", "type": "string" } }, { "description": null, - "location": "query", - "name": "operator_id", + "location": "header", + "name": "X-Admin-Token", "required": false, "schema": { - "default": "", - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, { "description": null, - "location": "query", - "name": "limit", + "location": "header", + "name": "Authorization", "required": false, "schema": { - "default": 200, - "type": "integer" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, { "description": null, "location": "header", - "name": "X-Admin-Token", + "name": "X-User-One-Id", "required": false, "schema": { "anyOf": [ @@ -34710,7 +52099,7 @@ { "description": null, "location": "header", - "name": "Authorization", + "name": "X-User-Id", "required": false, "schema": { "anyOf": [ @@ -34724,16 +52113,22 @@ } } ], - "path": "/api/crowd-control/v1/admin/reward-ledger", - "pathParameters": [], - "queryParameters": [ - "status", - "dispute_status", - "task_id", - "operator_id", - "limit" + "path": "/api/crowd-control/v2/miker/ego/tasks/{task_id}/description", + "pathParameters": [ + "task_id" ], - "requestBody": null, + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/EgoTaskDescriptionUpdate" + } + } + }, "responses": { "200": { "contentTypes": [ @@ -34760,20 +52155,29 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/reward-ledger", + "rawPath": "/v2/miker/ego/tasks/{task_id}/description", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "List Reward Ledger", + "summary": "Update Miker Task Description", "tags": [ - "rewards" + "ego-v2" ] }, - "rewardLedgerBatchDispute": { - "description": "Batch Update Reward Dispute", - "httpMethod": "POST", - "operationId": "batch_update_reward_dispute_v1_admin_reward_ledger_batch_dispute_post", + "egoTasksHistory": { + "description": "Get Miker Task History", + "httpMethod": "GET", + "operationId": "get_miker_task_history_v2_miker_ego_tasks__task_id__history_get", "parameters": [ + { + "description": null, + "location": "path", + "name": "task_id", + "required": true, + "schema": { + "type": "string" + } + }, { "description": null, "location": "header", @@ -34807,20 +52211,12 @@ } } ], - "path": "/api/crowd-control/v1/admin/reward-ledger/batch/dispute", - "pathParameters": [], + "path": "/api/crowd-control/v2/miker/ego/tasks/{task_id}/history", + "pathParameters": [ + "task_id" + ], "queryParameters": [], - "requestBody": { - "contentTypes": [ - "application/json" - ], - "required": true, - "schema": { - "application/json": { - "$ref": "#/components/schemas/RewardBatchDisputeRequest" - } - } - }, + "requestBody": null, "responses": { "200": { "contentTypes": [ @@ -34847,20 +52243,29 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/reward-ledger/batch/dispute", + "rawPath": "/v2/miker/ego/tasks/{task_id}/history", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Batch Update Reward Dispute", + "summary": "Get Miker Task History", "tags": [ - "rewards" + "ego-v2" ] }, - "rewardLedgerBatchSettle": { - "description": "Batch Settle Reward Ledger", + "egoTasksRejectSample": { + "description": "Reject Sample", "httpMethod": "POST", - "operationId": "batch_settle_reward_ledger_v1_admin_reward_ledger_batch_settle_post", + "operationId": "reject_sample_v2_miker_ego_tasks__task_id__reject_sample_post", "parameters": [ + { + "description": null, + "location": "path", + "name": "task_id", + "required": true, + "schema": { + "type": "string" + } + }, { "description": null, "location": "header", @@ -34892,10 +52297,44 @@ } ] } + }, + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } } ], - "path": "/api/crowd-control/v1/admin/reward-ledger/batch/settle", - "pathParameters": [], + "path": "/api/crowd-control/v2/miker/ego/tasks/{task_id}/reject-sample", + "pathParameters": [ + "task_id" + ], "queryParameters": [], "requestBody": { "contentTypes": [ @@ -34904,7 +52343,7 @@ "required": true, "schema": { "application/json": { - "$ref": "#/components/schemas/RewardBatchSettlementRequest" + "$ref": "#/components/schemas/EgoTaskSampleDecisionRequest" } } }, @@ -34934,24 +52373,24 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/reward-ledger/batch/settle", + "rawPath": "/v2/miker/ego/tasks/{task_id}/reject-sample", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Batch Settle Reward Ledger", + "summary": "Reject Sample", "tags": [ - "rewards" + "ego-v2" ] }, - "rewardLedgerDispute": { - "description": "Admin Update Reward Dispute", + "egoTasksReturnForEdit": { + "description": "Return Sample For Edit", "httpMethod": "POST", - "operationId": "admin_update_reward_dispute_v1_admin_reward_ledger__reward_id__dispute_post", + "operationId": "return_sample_for_edit_v2_miker_ego_tasks__task_id__return_for_edit_post", "parameters": [ { "description": null, "location": "path", - "name": "reward_id", + "name": "task_id", "required": true, "schema": { "type": "string" @@ -34988,11 +52427,43 @@ } ] } + }, + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } } ], - "path": "/api/crowd-control/v1/admin/reward-ledger/{reward_id}/dispute", + "path": "/api/crowd-control/v2/miker/ego/tasks/{task_id}/return-for-edit", "pathParameters": [ - "reward_id" + "task_id" ], "queryParameters": [], "requestBody": { @@ -35002,7 +52473,7 @@ "required": true, "schema": { "application/json": { - "$ref": "#/components/schemas/RewardDisputeRequest" + "$ref": "#/components/schemas/EgoTaskSampleDecisionRequest" } } }, @@ -35032,24 +52503,24 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/reward-ledger/{reward_id}/dispute", + "rawPath": "/v2/miker/ego/tasks/{task_id}/return-for-edit", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Admin Update Reward Dispute", + "summary": "Return Sample For Edit", "tags": [ - "rewards" + "ego-v2" ] }, - "rewardLedgerGet": { - "description": "Reward Ledger Detail", - "httpMethod": "GET", - "operationId": "reward_ledger_detail_v1_admin_reward_ledger__reward_id__get", + "egoVideoAssetsCompleteUpload": { + "description": "Complete Miker Upload", + "httpMethod": "POST", + "operationId": "complete_miker_upload_v2_miker_ego_video_assets__asset_id__complete_upload_post", "parameters": [ { "description": null, "location": "path", - "name": "reward_id", + "name": "asset_id", "required": true, "schema": { "type": "string" @@ -35086,14 +52557,56 @@ } ] } + }, + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } } ], - "path": "/api/crowd-control/v1/admin/reward-ledger/{reward_id}", + "path": "/api/crowd-control/v2/miker/ego/video-assets/{asset_id}/complete-upload", "pathParameters": [ - "reward_id" + "asset_id" ], "queryParameters": [], - "requestBody": null, + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/EgoCompleteUploadRequest" + } + } + }, "responses": { "200": { "contentTypes": [ @@ -35120,24 +52633,24 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/reward-ledger/{reward_id}", + "rawPath": "/v2/miker/ego/video-assets/{asset_id}/complete-upload", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Reward Ledger Detail", + "summary": "Complete Miker Upload", "tags": [ - "rewards" + "ego-v2" ] }, - "rewardLedgerSettle": { - "description": "Settle Reward Ledger", - "httpMethod": "POST", - "operationId": "settle_reward_ledger_v1_admin_reward_ledger__reward_id__settle_post", + "egoVideoAssetsHistory": { + "description": "Get Miker Asset History", + "httpMethod": "GET", + "operationId": "get_miker_asset_history_v2_miker_ego_video_assets__asset_id__history_get", "parameters": [ { "description": null, "location": "path", - "name": "reward_id", + "name": "asset_id", "required": true, "schema": { "type": "string" @@ -35176,22 +52689,12 @@ } } ], - "path": "/api/crowd-control/v1/admin/reward-ledger/{reward_id}/settle", + "path": "/api/crowd-control/v2/miker/ego/video-assets/{asset_id}/history", "pathParameters": [ - "reward_id" + "asset_id" ], "queryParameters": [], - "requestBody": { - "contentTypes": [ - "application/json" - ], - "required": true, - "schema": { - "application/json": { - "$ref": "#/components/schemas/RewardSettlementRequest" - } - } - }, + "requestBody": null, "responses": { "200": { "contentTypes": [ @@ -35218,47 +52721,35 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/reward-ledger/{reward_id}/settle", + "rawPath": "/v2/miker/ego/video-assets/{asset_id}/history", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Settle Reward Ledger", + "summary": "Get Miker Asset History", "tags": [ - "rewards" + "ego-v2" ] }, - "rewardLedgerSummary": { - "description": "Reward Ledger Summary", + "egoVideoAssetsProcessedDerivativesView": { + "description": "Get Miker Processed Derivative View", "httpMethod": "GET", - "operationId": "reward_ledger_summary_v1_admin_reward_ledger_summary_get", + "operationId": "get_miker_processed_derivative_view_v2_miker_ego_video_assets__asset_id__processed_derivatives_view_get", "parameters": [ { "description": null, - "location": "query", - "name": "task_id", - "required": false, - "schema": { - "default": "", - "type": "string" - } - }, - { - "description": null, - "location": "query", - "name": "operator_id", - "required": false, + "location": "path", + "name": "asset_id", + "required": true, "schema": { - "default": "", "type": "string" } }, { "description": null, "location": "query", - "name": "dispute_status", - "required": false, + "name": "path", + "required": true, "schema": { - "default": "", "type": "string" } }, @@ -35295,24 +52786,26 @@ } } ], - "path": "/api/crowd-control/v1/admin/reward-ledger/summary", - "pathParameters": [], + "path": "/api/crowd-control/v2/miker/ego/video-assets/{asset_id}/processed-derivatives/view", + "pathParameters": [ + "asset_id" + ], "queryParameters": [ - "task_id", - "operator_id", - "dispute_status" + "path" ], "requestBody": null, "responses": { "200": { "contentTypes": [ - "application/json" + "image/jpeg", + "image/png", + "image/webp" ], - "description": "Successful Response", + "description": "Processed still-image derivative bytes for Miker review.", "schema": { - "application/json": { - "type": "object" - } + "image/jpeg": null, + "image/png": null, + "image/webp": null } }, "422": { @@ -35329,20 +52822,29 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/reward-ledger/summary", + "rawPath": "/v2/miker/ego/video-assets/{asset_id}/processed-derivatives/view", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Reward Ledger Summary", + "summary": "Get Miker Processed Derivative View", "tags": [ - "rewards" + "ego-v2" ] }, - "rewardLedgerUpsert": { - "description": "Reward Ledger Upsert", + "egoVideoAssetsRequestReupload": { + "description": "Request Miker Video Reupload", "httpMethod": "POST", - "operationId": "reward_ledger_upsert_v1_admin_reward_ledger_upsert_post", + "operationId": "request_miker_video_reupload_v2_miker_ego_video_assets__asset_id__request_reupload_post", "parameters": [ + { + "description": null, + "location": "path", + "name": "asset_id", + "required": true, + "schema": { + "type": "string" + } + }, { "description": null, "location": "header", @@ -35374,19 +52876,60 @@ } ] } + }, + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } } ], - "path": "/api/crowd-control/v1/admin/reward-ledger/upsert", - "pathParameters": [], + "path": "/api/crowd-control/v2/miker/ego/video-assets/{asset_id}/request-reupload", + "pathParameters": [ + "asset_id" + ], "queryParameters": [], "requestBody": { "contentTypes": [ "application/json" ], - "required": true, + "required": false, "schema": { "application/json": { - "$ref": "#/components/schemas/RewardLedgerUpsertRequest" + "anyOf": [ + { + "$ref": "#/components/schemas/EgoMikerActionRequest" + }, + { + "type": "null" + } + ] } } }, @@ -35416,116 +52959,39 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/reward-ledger/upsert", + "rawPath": "/v2/miker/ego/video-assets/{asset_id}/request-reupload", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Reward Ledger Upsert", + "summary": "Request Miker Video Reupload", "tags": [ - "rewards" + "ego-v2" ] }, - "sessions": { - "description": "List Sessions", + "egoVideoAssetsReviewPlayback": { + "description": "Redirect Miker Review Playback", "httpMethod": "GET", - "operationId": "list_sessions_v1_admin_sessions_get", + "operationId": "redirect_miker_review_playback_v2_miker_ego_video_assets__asset_id__review_playback_get", "parameters": [ { "description": null, - "location": "query", - "name": "task_id", - "required": false, - "schema": { - "default": "", - "type": "string" - } - }, - { - "description": null, - "location": "query", - "name": "operator_id", - "required": false, - "schema": { - "default": "", - "type": "string" - } - }, - { - "description": null, - "location": "query", - "name": "review_status", - "required": false, - "schema": { - "default": "", - "type": "string" - } - }, - { - "description": null, - "location": "query", - "name": "quality_status", - "required": false, + "location": "path", + "name": "asset_id", + "required": true, "schema": { - "default": "", "type": "string" } }, { "description": null, "location": "query", - "name": "reward_status", + "name": "token_id", "required": false, "schema": { "default": "", "type": "string" } }, - { - "description": null, - "location": "query", - "name": "ready_for_review", - "required": false, - "schema": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - } - }, - { - "description": null, - "location": "query", - "name": "limit", - "required": false, - "schema": { - "default": 100, - "type": "integer" - } - }, - { - "description": null, - "location": "query", - "name": "include_artifacts", - "required": false, - "schema": { - "default": false, - "type": "boolean" - } - }, - { - "description": null, - "location": "query", - "name": "include_full_metadata", - "required": false, - "schema": { - "default": false, - "type": "boolean" - } - }, { "description": null, "location": "header", @@ -35559,18 +53025,12 @@ } } ], - "path": "/api/crowd-control/v1/admin/sessions", - "pathParameters": [], + "path": "/api/crowd-control/v2/miker/ego/video-assets/{asset_id}/review-playback", + "pathParameters": [ + "asset_id" + ], "queryParameters": [ - "task_id", - "operator_id", - "review_status", - "quality_status", - "reward_status", - "ready_for_review", - "limit", - "include_artifacts", - "include_full_metadata" + "token_id" ], "requestBody": null, "responses": { @@ -35580,9 +53040,7 @@ ], "description": "Successful Response", "schema": { - "application/json": { - "type": "object" - } + "application/json": {} } }, "422": { @@ -35599,24 +53057,24 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/sessions", + "rawPath": "/v2/miker/ego/video-assets/{asset_id}/review-playback", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "List Sessions", + "summary": "Redirect Miker Review Playback", "tags": [ - "sessions" + "ego-v2" ] }, - "sessionsQuality": { - "description": "Update Session Quality", + "egoVideoAssetsReviewPlaybackToken": { + "description": "Create Miker Review Playback Token", "httpMethod": "POST", - "operationId": "update_session_quality_v1_admin_sessions__session_id__quality_post", + "operationId": "create_miker_review_playback_token_v2_miker_ego_video_assets__asset_id__review_playback_token_post", "parameters": [ { "description": null, "location": "path", - "name": "session_id", + "name": "asset_id", "required": true, "schema": { "type": "string" @@ -35653,21 +53111,60 @@ } ] } + }, + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } } ], - "path": "/api/crowd-control/v1/admin/sessions/{session_id}/quality", + "path": "/api/crowd-control/v2/miker/ego/video-assets/{asset_id}/review-playback-token", "pathParameters": [ - "session_id" + "asset_id" ], "queryParameters": [], "requestBody": { "contentTypes": [ "application/json" ], - "required": true, + "required": false, "schema": { "application/json": { - "$ref": "#/components/schemas/SessionQualityUpdateRequest" + "anyOf": [ + { + "$ref": "#/components/schemas/EgoReviewPlaybackTokenRequest" + }, + { + "type": "null" + } + ] } } }, @@ -35697,24 +53194,24 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/sessions/{session_id}/quality", + "rawPath": "/v2/miker/ego/video-assets/{asset_id}/review-playback-token", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Update Session Quality", + "summary": "Create Miker Review Playback Token", "tags": [ - "sessions" + "ego-v2" ] }, - "sessionsWorkerStatus": { - "description": "Update Session Worker Status", + "egoVideoAssetsUploadCandidateAcceptance": { + "description": "Accept Miker Upload Candidate", "httpMethod": "POST", - "operationId": "update_session_worker_status_v1_admin_sessions__session_id__worker_status_post", + "operationId": "accept_miker_upload_candidate_v2_miker_ego_video_assets__asset_id__upload_candidate_acceptance_post", "parameters": [ { "description": null, "location": "path", - "name": "session_id", + "name": "asset_id", "required": true, "schema": { "type": "string" @@ -35739,7 +53236,39 @@ { "description": null, "location": "header", - "name": "Authorization", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", "required": false, "schema": { "anyOf": [ @@ -35753,9 +53282,9 @@ } } ], - "path": "/api/crowd-control/v1/admin/sessions/{session_id}/worker-status", + "path": "/api/crowd-control/v2/miker/ego/video-assets/{asset_id}/upload-candidate/acceptance", "pathParameters": [ - "session_id" + "asset_id" ], "queryParameters": [], "requestBody": { @@ -35765,7 +53294,7 @@ "required": true, "schema": { "application/json": { - "$ref": "#/components/schemas/SessionWorkerStatusUpdateRequest" + "$ref": "#/components/schemas/EgoUploadCandidateAcceptanceRequest" } } }, @@ -35795,27 +53324,26 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/sessions/{session_id}/worker-status", + "rawPath": "/v2/miker/ego/video-assets/{asset_id}/upload-candidate/acceptance", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Update Session Worker Status", + "summary": "Accept Miker Upload Candidate", "tags": [ - "sessions" + "ego-v2" ] }, - "storageAccessPolicy": { - "description": "Storage Access Policy", - "httpMethod": "GET", - "operationId": "storage_access_policy_v1_admin_storage_access_policy_get", + "egoVideoAssetsUploadCandidateDryRun": { + "description": "Dry Run Miker Upload Candidate", + "httpMethod": "POST", + "operationId": "dry_run_miker_upload_candidate_v2_miker_ego_video_assets__asset_id__upload_candidate_dry_run_post", "parameters": [ { "description": null, - "location": "query", - "name": "storage_scope", - "required": false, + "location": "path", + "name": "asset_id", + "required": true, "schema": { - "default": "raw", "type": "string" } }, @@ -35850,14 +53378,56 @@ } ] } + }, + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } } ], - "path": "/api/crowd-control/v1/admin/storage-access-policy", - "pathParameters": [], - "queryParameters": [ - "storage_scope" + "path": "/api/crowd-control/v2/miker/ego/video-assets/{asset_id}/upload-candidate/dry-run", + "pathParameters": [ + "asset_id" ], - "requestBody": null, + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/EgoUploadCandidateDryRunRequest" + } + } + }, "responses": { "200": { "contentTypes": [ @@ -35884,20 +53454,29 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/storage-access-policy", + "rawPath": "/v2/miker/ego/video-assets/{asset_id}/upload-candidate/dry-run", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Storage Access Policy", + "summary": "Dry Run Miker Upload Candidate", "tags": [ - "ops" + "ego-v2" ] }, - "storageGovernanceBundle": { - "description": "Storage Governance Bundle", + "egoVideoAssetsUploadCandidateLedger": { + "description": "Get Miker Upload Candidate Ledger", "httpMethod": "GET", - "operationId": "storage_governance_bundle_v1_admin_storage_governance_bundle_get", + "operationId": "get_miker_upload_candidate_ledger_v2_miker_ego_video_assets__asset_id__upload_candidate_ledger_get", "parameters": [ + { + "description": null, + "location": "path", + "name": "asset_id", + "required": true, + "schema": { + "type": "string" + } + }, { "description": null, "location": "header", @@ -35931,8 +53510,10 @@ } } ], - "path": "/api/crowd-control/v1/admin/storage-governance-bundle", - "pathParameters": [], + "path": "/api/crowd-control/v2/miker/ego/video-assets/{asset_id}/upload-candidate/ledger", + "pathParameters": [ + "asset_id" + ], "queryParameters": [], "requestBody": null, "responses": { @@ -35961,37 +53542,26 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/storage-governance-bundle", + "rawPath": "/v2/miker/ego/video-assets/{asset_id}/upload-candidate/ledger", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Storage Governance Bundle", + "summary": "Get Miker Upload Candidate Ledger", "tags": [ - "ops" + "ego-v2" ] }, - "storageLifecycleExecutions": { - "description": "List Storage Lifecycle Executions", - "httpMethod": "GET", - "operationId": "list_storage_lifecycle_executions_v1_admin_storage_lifecycle_executions_get", + "egoVideoAssetsUploadIntent": { + "description": "Create Miker Upload Intent", + "httpMethod": "POST", + "operationId": "create_miker_upload_intent_v2_miker_ego_video_assets__asset_id__upload_intent_post", "parameters": [ { "description": null, - "location": "query", - "name": "storage_scope", - "required": false, - "schema": { - "default": "", - "type": "string" - } - }, - { - "description": null, - "location": "query", - "name": "status", - "required": false, + "location": "path", + "name": "asset_id", + "required": true, "schema": { - "default": "", "type": "string" } }, @@ -36028,13 +53598,29 @@ } } ], - "path": "/api/crowd-control/v1/admin/storage-lifecycle-executions", - "pathParameters": [], - "queryParameters": [ - "storage_scope", - "status" + "path": "/api/crowd-control/v2/miker/ego/video-assets/{asset_id}/upload-intent", + "pathParameters": [ + "asset_id" ], - "requestBody": null, + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": false, + "schema": { + "application/json": { + "anyOf": [ + { + "$ref": "#/components/schemas/EgoUploadIntentRequest" + }, + { + "type": "null" + } + ] + } + } + }, "responses": { "200": { "contentTypes": [ @@ -36061,24 +53647,24 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/storage-lifecycle-executions", + "rawPath": "/v2/miker/ego/video-assets/{asset_id}/upload-intent", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "List Storage Lifecycle Executions", + "summary": "Create Miker Upload Intent", "tags": [ - "ops" + "ego-v2" ] }, - "storageLifecycleExecutionsApply": { - "description": "Apply Storage Lifecycle Execution", + "egoWithdrawalRequestsReview": { + "description": "Review Withdrawal Request", "httpMethod": "POST", - "operationId": "apply_storage_lifecycle_execution_v1_admin_storage_lifecycle_executions__execution_id__apply_post", + "operationId": "review_withdrawal_request_v2_miker_ego_withdrawal_requests__request_id__review_post", "parameters": [ { "description": null, "location": "path", - "name": "execution_id", + "name": "request_id", "required": true, "schema": { "type": "string" @@ -36115,11 +53701,43 @@ } ] } + }, + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } } ], - "path": "/api/crowd-control/v1/admin/storage-lifecycle-executions/{execution_id}/apply", + "path": "/api/crowd-control/v2/miker/ego/withdrawal-requests/{request_id}/review", "pathParameters": [ - "execution_id" + "request_id" ], "queryParameters": [], "requestBody": { @@ -36129,7 +53747,7 @@ "required": true, "schema": { "application/json": { - "$ref": "#/components/schemas/StorageLifecycleExecutionApplyRequest" + "$ref": "#/components/schemas/EgoWithdrawalReviewRequest" } } }, @@ -36159,54 +53777,77 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/storage-lifecycle-executions/{execution_id}/apply", + "rawPath": "/v2/miker/ego/withdrawal-requests/{request_id}/review", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Apply Storage Lifecycle Execution", + "summary": "Review Withdrawal Request", "tags": [ - "ops" + "ego-v2" + ] + } + } + }, + "occupationCatalog": { + "methods": { + "list": { + "description": "List Occupation Catalog", + "httpMethod": "GET", + "operationId": "list_occupation_catalog_v2_occupation_catalog_get", + "parameters": [], + "path": "/api/crowd-control/v2/occupation-catalog", + "pathParameters": [], + "queryParameters": [], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v2/occupation-catalog", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "List Occupation Catalog", + "tags": [ + "ego-v2" ] }, - "storageLifecycleExecutionsApplyPending": { - "description": "Apply Pending Storage Lifecycle Executions", + "requests": { + "description": "Request Occupation Catalog Entry", "httpMethod": "POST", - "operationId": "apply_pending_storage_lifecycle_executions_v1_admin_storage_lifecycle_executions_apply_pending_post", + "operationId": "request_occupation_catalog_entry_v2_occupation_catalog_requests_post", "parameters": [ { "description": null, - "location": "query", - "name": "status_filter", - "required": false, - "schema": { - "default": "planned,verified", - "type": "string" - } - }, - { - "description": null, - "location": "query", - "name": "limit", - "required": false, - "schema": { - "default": 20, - "type": "integer" - } - }, - { - "description": null, - "location": "query", - "name": "executed_by", + "location": "header", + "name": "X-User-One-Id", "required": false, "schema": { - "default": "storage-ops-batch", - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, { "description": null, "location": "header", - "name": "X-Admin-Token", + "name": "X-User-Id", "required": false, "schema": { "anyOf": [ @@ -36236,16 +53877,22 @@ } } ], - "path": "/api/crowd-control/v1/admin/storage-lifecycle-executions/apply-pending", + "path": "/api/crowd-control/v2/occupation-catalog/requests", "pathParameters": [], - "queryParameters": [ - "status_filter", - "limit", - "executed_by" - ], - "requestBody": null, + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/EgoOccupationCatalogRequest" + } + } + }, "responses": { - "200": { + "201": { "contentTypes": [ "application/json" ], @@ -36270,24 +53917,44 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/storage-lifecycle-executions/apply-pending", + "rawPath": "/v2/occupation-catalog/requests", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Apply Pending Storage Lifecycle Executions", + "summary": "Request Occupation Catalog Entry", "tags": [ - "ops" + "ego-v2" ] - }, - "storageLifecycleExecutionsPost": { - "description": "Create Storage Lifecycle Execution", + } + } + }, + "public": { + "methods": { + "egoDatasetCheckoutIntents": { + "description": "Create public EGO dataset checkout intent", "httpMethod": "POST", - "operationId": "create_storage_lifecycle_execution_v1_admin_storage_lifecycle_executions_post", + "operationId": "create_public_ego_dataset_checkout_intent_v1_public_ego_dataset_checkout_intents_post", "parameters": [ { "description": null, "location": "header", - "name": "X-Admin-Token", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", "required": false, "schema": { "anyOf": [ @@ -36317,7 +53984,7 @@ } } ], - "path": "/api/crowd-control/v1/admin/storage-lifecycle-executions", + "path": "/api/crowd-control/v1/public/ego-dataset/checkout-intents", "pathParameters": [], "queryParameters": [], "requestBody": { @@ -36327,7 +53994,7 @@ "required": true, "schema": { "application/json": { - "$ref": "#/components/schemas/StorageLifecycleExecutionCreate" + "$ref": "#/components/schemas/PublicEgoDatasetCheckoutIntentRequest" } } }, @@ -36339,7 +54006,7 @@ "description": "Successful Response", "schema": { "application/json": { - "type": "object" + "$ref": "#/components/schemas/PublicEgoDatasetCheckoutIntentRead" } } }, @@ -36357,33 +54024,40 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/storage-lifecycle-executions", + "rawPath": "/v1/public/ego-dataset/checkout-intents", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Create Storage Lifecycle Execution", + "summary": "Create public EGO dataset checkout intent", "tags": [ - "ops" + "catalog" ] }, - "storageLifecycleExecutionsStatus": { - "description": "Update Storage Lifecycle Execution", + "egoDatasetCustomRequests": { + "description": "Create public EGO dataset custom request", "httpMethod": "POST", - "operationId": "update_storage_lifecycle_execution_v1_admin_storage_lifecycle_executions__execution_id__status_post", + "operationId": "create_public_ego_dataset_custom_request_v1_public_ego_dataset_custom_requests_post", "parameters": [ { "description": null, - "location": "path", - "name": "execution_id", - "required": true, + "location": "header", + "name": "X-User-One-Id", + "required": false, "schema": { - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, { "description": null, "location": "header", - "name": "X-Admin-Token", + "name": "X-User-Id", "required": false, "schema": { "anyOf": [ @@ -36413,10 +54087,8 @@ } } ], - "path": "/api/crowd-control/v1/admin/storage-lifecycle-executions/{execution_id}/status", - "pathParameters": [ - "execution_id" - ], + "path": "/api/crowd-control/v1/public/ego-dataset/custom-requests", + "pathParameters": [], "queryParameters": [], "requestBody": { "contentTypes": [ @@ -36425,7 +54097,7 @@ "required": true, "schema": { "application/json": { - "$ref": "#/components/schemas/StorageLifecycleExecutionStatusUpdate" + "$ref": "#/components/schemas/PublicEgoDatasetCustomRequestCreate" } } }, @@ -36437,7 +54109,7 @@ "description": "Successful Response", "schema": { "application/json": { - "type": "object" + "$ref": "#/components/schemas/PublicEgoDatasetCustomRequestRead" } } }, @@ -36455,34 +54127,55 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/storage-lifecycle-executions/{execution_id}/status", + "rawPath": "/v1/public/ego-dataset/custom-requests", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Update Storage Lifecycle Execution", + "summary": "Create public EGO dataset custom request", "tags": [ - "ops" + "catalog" ] }, - "storageLifecyclePayload": { - "description": "Storage Lifecycle Payload", + "egoDatasetDownloadsDesktopLatest": { + "description": "Desktop Installer Latest", "httpMethod": "GET", - "operationId": "storage_lifecycle_payload_v1_admin_storage_lifecycle_payload_get", + "operationId": "desktop_installer_latest_v1_public_ego_dataset_downloads_desktop_latest_get", "parameters": [ { - "description": null, + "description": "Exact deployed environment.", "location": "query", - "name": "storage_scope", + "name": "env", + "required": true, + "schema": { + "description": "Exact deployed environment.", + "type": "string" + } + }, + { + "description": "macos, windows, or linux.", + "location": "query", + "name": "platform", + "required": true, + "schema": { + "description": "macos, windows, or linux.", + "type": "string" + } + }, + { + "description": "Must be release.", + "location": "query", + "name": "channel", "required": false, "schema": { - "default": "raw", + "default": "release", + "description": "Must be release.", "type": "string" } }, { - "description": null, - "location": "header", - "name": "X-Admin-Token", + "description": "Exact installer architecture.", + "location": "query", + "name": "arch", "required": false, "schema": { "anyOf": [ @@ -36492,13 +54185,14 @@ { "type": "null" } - ] + ], + "description": "Exact installer architecture." } }, { - "description": null, - "location": "header", - "name": "Authorization", + "description": "Optional exact kind.", + "location": "query", + "name": "artifact_kind", "required": false, "schema": { "anyOf": [ @@ -36508,14 +54202,30 @@ { "type": "null" } - ] + ], + "description": "Optional exact kind." + } + }, + { + "description": null, + "location": "query", + "name": "redirect", + "required": false, + "schema": { + "default": 1, + "type": "integer" } } ], - "path": "/api/crowd-control/v1/admin/storage-lifecycle-payload", + "path": "/api/crowd-control/v1/public/ego-dataset/downloads/desktop/latest", "pathParameters": [], "queryParameters": [ - "storage_scope" + "env", + "platform", + "channel", + "arch", + "artifact_kind", + "redirect" ], "requestBody": null, "responses": { @@ -36525,9 +54235,7 @@ ], "description": "Successful Response", "schema": { - "application/json": { - "type": "object" - } + "application/json": {} } }, "422": { @@ -36544,44 +54252,55 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/storage-lifecycle-payload", + "rawPath": "/v1/public/ego-dataset/downloads/desktop/latest", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Storage Lifecycle Payload", + "summary": "Desktop Installer Latest", "tags": [ - "ops" + "public-downloads" ] }, - "storageLifecyclePreview": { - "description": "Storage Lifecycle Preview", + "egoDatasetDownloadsRecorderLatest": { + "description": "Recorder Installer Latest", "httpMethod": "GET", - "operationId": "storage_lifecycle_preview_v1_admin_storage_lifecycle_preview_get", + "operationId": "recorder_installer_latest_v1_public_ego_dataset_downloads_recorder_latest_get", "parameters": [ + { + "description": "Exact deployed environment.", + "location": "query", + "name": "env", + "required": true, + "schema": { + "description": "Exact deployed environment.", + "type": "string" + } + }, { "description": null, "location": "query", - "name": "storage_scope", + "name": "target_profile", "required": false, "schema": { - "default": "raw", + "default": "jetson_orin", "type": "string" } }, { - "description": null, + "description": "Must be release.", "location": "query", - "name": "age_days", + "name": "channel", "required": false, "schema": { - "default": 0, - "type": "integer" + "default": "release", + "description": "Must be release.", + "type": "string" } }, { "description": null, - "location": "header", - "name": "X-Admin-Token", + "location": "query", + "name": "arch", "required": false, "schema": { "anyOf": [ @@ -36596,8 +54315,67 @@ }, { "description": null, - "location": "header", - "name": "Authorization", + "location": "query", + "name": "redirect", + "required": false, + "schema": { + "default": 1, + "type": "integer" + } + } + ], + "path": "/api/crowd-control/v1/public/ego-dataset/downloads/recorder/latest", + "pathParameters": [], + "queryParameters": [ + "env", + "target_profile", + "channel", + "arch", + "redirect" + ], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": {} + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/public/ego-dataset/downloads/recorder/latest", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Recorder Installer Latest", + "tags": [ + "public-downloads" + ] + }, + "egoDatasetDownloadsReleaseSetLatest": { + "description": "Qingkong Miker Release Set Latest", + "httpMethod": "GET", + "operationId": "qingkong_miker_release_set_latest_v1_public_ego_dataset_downloads_release_set_latest_get", + "parameters": [ + { + "description": "Optional exact four-target identity for a verified redirect.", + "location": "query", + "name": "target", "required": false, "schema": { "anyOf": [ @@ -36607,15 +54385,15 @@ { "type": "null" } - ] + ], + "description": "Optional exact four-target identity for a verified redirect." } } ], - "path": "/api/crowd-control/v1/admin/storage-lifecycle-preview", + "path": "/api/crowd-control/v1/public/ego-dataset/downloads/release-set/latest", "pathParameters": [], "queryParameters": [ - "storage_scope", - "age_days" + "target" ], "requestBody": null, "responses": { @@ -36625,9 +54403,7 @@ ], "description": "Successful Response", "schema": { - "application/json": { - "type": "object" - } + "application/json": {} } }, "422": { @@ -36644,40 +54420,34 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/storage-lifecycle-preview", + "rawPath": "/v1/public/ego-dataset/downloads/release-set/latest", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Storage Lifecycle Preview", + "summary": "Qingkong Miker Release Set Latest", "tags": [ - "ops" + "public-downloads" ] }, - "storagePolicy": { - "description": "Storage Policy", + "egoDatasetDownloadsReleaseSetPreview": { + "description": "Qingkong Miker Release Set Preview", "httpMethod": "GET", - "operationId": "storage_policy_v1_admin_storage_policy_get", + "operationId": "qingkong_miker_release_set_preview_v1_public_ego_dataset_downloads_release_set_preview_get", "parameters": [ { - "description": null, - "location": "header", - "name": "X-Admin-Token", - "required": false, + "description": "Exact immutable same-environment release-set URL.", + "location": "query", + "name": "release_set_preview", + "required": true, "schema": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] + "description": "Exact immutable same-environment release-set URL.", + "type": "string" } }, { - "description": null, - "location": "header", - "name": "Authorization", + "description": "Optional exact four-target identity for a verified redirect.", + "location": "query", + "name": "target", "required": false, "schema": { "anyOf": [ @@ -36687,13 +54457,17 @@ { "type": "null" } - ] + ], + "description": "Optional exact four-target identity for a verified redirect." } } ], - "path": "/api/crowd-control/v1/admin/storage-policy", + "path": "/api/crowd-control/v1/public/ego-dataset/downloads/release-set/preview", "pathParameters": [], - "queryParameters": [], + "queryParameters": [ + "release_set_preview", + "target" + ], "requestBody": null, "responses": { "200": { @@ -36702,9 +54476,7 @@ ], "description": "Successful Response", "schema": { - "application/json": { - "type": "object" - } + "application/json": {} } }, "422": { @@ -36721,24 +54493,40 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/storage-policy", + "rawPath": "/v1/public/ego-dataset/downloads/release-set/preview", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Storage Policy", + "summary": "Qingkong Miker Release Set Preview", "tags": [ - "ops" + "public-downloads" ] }, - "storageProviderConfig": { - "description": "Storage Provider Config", - "httpMethod": "GET", - "operationId": "storage_provider_config_v1_admin_storage_provider_config_get", + "egoDatasetFoundryApplications": { + "description": "Create EGO foundry application", + "httpMethod": "POST", + "operationId": "create_public_ego_dataset_foundry_application_v1_public_ego_dataset_foundry_applications_post", "parameters": [ { "description": null, "location": "header", - "name": "X-Admin-Token", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", "required": false, "schema": { "anyOf": [ @@ -36768,10 +54556,20 @@ } } ], - "path": "/api/crowd-control/v1/admin/storage-provider-config", + "path": "/api/crowd-control/v1/public/ego-dataset/foundry-applications", "pathParameters": [], "queryParameters": [], - "requestBody": null, + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/PublicEgoDatasetFoundryApplicationCreate" + } + } + }, "responses": { "200": { "contentTypes": [ @@ -36780,7 +54578,7 @@ "description": "Successful Response", "schema": { "application/json": { - "type": "object" + "$ref": "#/components/schemas/PublicEgoDatasetFoundryApplicationRead" } } }, @@ -36798,54 +54596,93 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/storage-provider-config", + "rawPath": "/v1/public/ego-dataset/foundry-applications", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Storage Provider Config", + "summary": "Create EGO foundry application", "tags": [ - "ops" + "catalog" ] }, - "taskAssignments": { - "description": "List Task Assignments", + "egoDatasetFoundryApplicationsStats": { + "description": "Get EGO foundry application aggregate stats", "httpMethod": "GET", - "operationId": "list_task_assignments_v1_admin_task_assignments_get", + "operationId": "get_public_ego_dataset_foundry_application_stats_v1_public_ego_dataset_foundry_applications_stats_get", + "parameters": [], + "path": "/api/crowd-control/v1/public/ego-dataset/foundry-applications/stats", + "pathParameters": [], + "queryParameters": [], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "$ref": "#/components/schemas/PublicEgoDatasetFoundryStatsRead" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/public/ego-dataset/foundry-applications/stats", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Get EGO foundry application aggregate stats", + "tags": [ + "catalog" + ] + }, + "egoDatasetOrders": { + "description": "List current user's public EGO dataset orders", + "httpMethod": "GET", + "operationId": "list_my_public_ego_dataset_orders_v1_public_ego_dataset_orders_get", "parameters": [ { "description": null, "location": "query", - "name": "task_id", + "name": "limit", "required": false, "schema": { - "default": "", - "type": "string" + "default": 50, + "type": "integer" } }, { "description": null, "location": "query", - "name": "status", + "name": "offset", "required": false, "schema": { - "default": "", - "type": "string" + "default": 0, + "type": "integer" } }, { "description": null, - "location": "query", - "name": "operator_id", + "location": "header", + "name": "X-User-One-Id", "required": false, "schema": { - "default": "", - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, { "description": null, "location": "header", - "name": "X-Admin-Token", + "name": "X-User-Id", "required": false, "schema": { "anyOf": [ @@ -36875,12 +54712,11 @@ } } ], - "path": "/api/crowd-control/v1/admin/task-assignments", + "path": "/api/crowd-control/v1/public/ego-dataset/orders", "pathParameters": [], "queryParameters": [ - "task_id", - "status", - "operator_id" + "limit", + "offset" ], "requestBody": null, "responses": { @@ -36909,76 +54745,45 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/task-assignments", + "rawPath": "/v1/public/ego-dataset/orders", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "List Task Assignments", + "summary": "List current user's public EGO dataset orders", "tags": [ - "tasks" + "catalog" ] }, - "taskAssignmentsPost": { - "description": "Create Task Assignment", - "httpMethod": "POST", - "operationId": "create_task_assignment_v1_admin_task_assignments_post", + "egoDatasetOrdersGet": { + "description": "Get public EGO dataset order detail", + "httpMethod": "GET", + "operationId": "get_public_ego_dataset_order_detail_v1_public_ego_dataset_orders__order_id__get", "parameters": [ { "description": null, - "location": "header", - "name": "X-Admin-Token", - "required": false, - "schema": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - { - "description": null, - "location": "header", - "name": "Authorization", - "required": false, + "location": "path", + "name": "order_id", + "required": true, "schema": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] + "type": "string" } } ], - "path": "/api/crowd-control/v1/admin/task-assignments", - "pathParameters": [], + "path": "/api/crowd-control/v1/public/ego-dataset/orders/{order_id}", + "pathParameters": [ + "order_id" + ], "queryParameters": [], - "requestBody": { - "contentTypes": [ - "application/json" - ], - "required": true, - "schema": { - "application/json": { - "$ref": "#/components/schemas/TaskAssignmentCreate" - } - } - }, + "requestBody": null, "responses": { - "201": { + "200": { "contentTypes": [ "application/json" ], "description": "Successful Response", "schema": { "application/json": { - "type": "object" + "$ref": "#/components/schemas/PublicEgoDatasetOrderRead" } } }, @@ -36996,65 +54801,33 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/task-assignments", + "rawPath": "/v1/public/ego-dataset/orders/{order_id}", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Create Task Assignment", + "summary": "Get public EGO dataset order detail", "tags": [ - "tasks" + "catalog" ] }, - "taskAssignmentsUpdate": { - "description": "Update Task Assignment", - "httpMethod": "PATCH", - "operationId": "update_task_assignment_v1_admin_task_assignments__task_id__patch", + "egoDatasetOrdersPaymentCallback": { + "description": "Record public EGO dataset payment callback", + "httpMethod": "POST", + "operationId": "record_public_ego_dataset_payment_callback_v1_public_ego_dataset_orders__order_id__payment_callback_post", "parameters": [ { "description": null, "location": "path", - "name": "task_id", + "name": "order_id", "required": true, "schema": { "type": "string" } - }, - { - "description": null, - "location": "header", - "name": "X-Admin-Token", - "required": false, - "schema": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - { - "description": null, - "location": "header", - "name": "Authorization", - "required": false, - "schema": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } } ], - "path": "/api/crowd-control/v1/admin/task-assignments/{task_id}", + "path": "/api/crowd-control/v1/public/ego-dataset/orders/{order_id}/payment-callback", "pathParameters": [ - "task_id" + "order_id" ], "queryParameters": [], "requestBody": { @@ -37064,7 +54837,7 @@ "required": true, "schema": { "application/json": { - "$ref": "#/components/schemas/TaskAssignmentUpdate" + "$ref": "#/components/schemas/PublicEgoDatasetPaymentCallbackRequest" } } }, @@ -37076,7 +54849,7 @@ "description": "Successful Response", "schema": { "application/json": { - "type": "object" + "$ref": "#/components/schemas/PublicEgoDatasetOrderRead" } } }, @@ -37094,68 +54867,35 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/task-assignments/{task_id}", + "rawPath": "/v1/public/ego-dataset/orders/{order_id}/payment-callback", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Update Task Assignment", + "summary": "Record public EGO dataset payment callback", "tags": [ - "tasks" + "catalog" ] }, - "taskTemplates": { - "description": "List Task Templates", + "egoDatasetOrdersWechatMiniPaymentLink": { + "description": "Get WeChat Mini Program payment link for a public EGO dataset order", "httpMethod": "GET", - "operationId": "list_task_templates_v1_admin_task_templates_get", + "operationId": "get_public_ego_dataset_wechat_mini_payment_link_v1_public_ego_dataset_orders__order_id__wechat_mini_payment_link_get", "parameters": [ { "description": null, - "location": "query", - "name": "status", - "required": false, + "location": "path", + "name": "order_id", + "required": true, "schema": { - "default": "", "type": "string" } - }, - { - "description": null, - "location": "header", - "name": "X-Admin-Token", - "required": false, - "schema": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - { - "description": null, - "location": "header", - "name": "Authorization", - "required": false, - "schema": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } } ], - "path": "/api/crowd-control/v1/admin/task-templates", - "pathParameters": [], - "queryParameters": [ - "status" + "path": "/api/crowd-control/v1/public/ego-dataset/orders/{order_id}/wechat-mini-payment-link", + "pathParameters": [ + "order_id" ], + "queryParameters": [], "requestBody": null, "responses": { "200": { @@ -37165,7 +54905,7 @@ "description": "Successful Response", "schema": { "application/json": { - "type": "object" + "$ref": "#/components/schemas/PublicEgoDatasetWechatMiniPaymentLinkRead" } } }, @@ -37183,24 +54923,59 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/task-templates", + "rawPath": "/v1/public/ego-dataset/orders/{order_id}/wechat-mini-payment-link", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "List Task Templates", + "summary": "Get WeChat Mini Program payment link for a public EGO dataset order", "tags": [ - "tasks" + "catalog" ] }, - "taskTemplatesPost": { - "description": "Create Task Template", + "egoDatasetOrdersWechatMiniPaymentPrepare": { + "description": "Prepare WeChat Mini Program payment for a public EGO dataset order", "httpMethod": "POST", - "operationId": "create_task_template_v1_admin_task_templates_post", + "operationId": "prepare_public_ego_dataset_wechat_mini_payment_v1_public_ego_dataset_orders__order_id__wechat_mini_payment_prepare_post", "parameters": [ + { + "description": null, + "location": "path", + "name": "order_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "paymentReference", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, { "description": null, "location": "header", - "name": "X-Admin-Token", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", "required": false, "schema": { "anyOf": [ @@ -37230,9 +55005,13 @@ } } ], - "path": "/api/crowd-control/v1/admin/task-templates", - "pathParameters": [], - "queryParameters": [], + "path": "/api/crowd-control/v1/public/ego-dataset/orders/{order_id}/wechat-mini-payment-prepare", + "pathParameters": [ + "order_id" + ], + "queryParameters": [ + "paymentReference" + ], "requestBody": { "contentTypes": [ "application/json" @@ -37240,19 +55019,19 @@ "required": true, "schema": { "application/json": { - "$ref": "#/components/schemas/TaskTemplateCreate" + "$ref": "#/components/schemas/PublicEgoDatasetWechatMiniPaymentPrepareRequest" } } }, "responses": { - "201": { + "200": { "contentTypes": [ "application/json" ], "description": "Successful Response", "schema": { "application/json": { - "type": "object" + "$ref": "#/components/schemas/PublicEgoDatasetWechatMiniPaymentPrepareRead" } } }, @@ -37270,44 +55049,44 @@ }, "security": null, "source": { - "rawPath": "/v1/admin/task-templates", + "rawPath": "/v1/public/ego-dataset/orders/{order_id}/wechat-mini-payment-prepare", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Create Task Template", + "summary": "Prepare WeChat Mini Program payment for a public EGO dataset order", "tags": [ - "tasks" + "catalog" ] - } - } - }, - "dev": { - "methods": { - "uploadsArtifacts": { - "description": "Upload Artifact To Local Sink", - "httpMethod": "POST", - "operationId": "upload_artifact_to_local_sink_v1_dev_uploads_artifacts_post", + }, + "egoDatasetPackages": { + "description": "Public List Dataset Packages", + "httpMethod": "GET", + "operationId": "public_list_dataset_packages_v2_public_ego_dataset_packages_get", "parameters": [ { "description": null, - "location": "header", - "name": "X-User-One-Id", + "location": "query", + "name": "page", "required": false, "schema": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] + "default": 1, + "type": "integer" + } + }, + { + "description": null, + "location": "query", + "name": "pageSize", + "required": false, + "schema": { + "default": 20, + "type": "integer" } }, { "description": null, "location": "header", - "name": "X-User-Id", + "name": "X-User-One-Id", "required": false, "schema": { "anyOf": [ @@ -37323,7 +55102,7 @@ { "description": null, "location": "header", - "name": "X-Admin-Token", + "name": "X-User-Id", "required": false, "schema": { "anyOf": [ @@ -37353,9 +55132,12 @@ } } ], - "path": "/api/crowd-control/v1/dev/uploads/artifacts", + "path": "/api/crowd-control/v2/public/ego/dataset-packages", "pathParameters": [], - "queryParameters": [], + "queryParameters": [ + "page", + "pageSize" + ], "requestBody": null, "responses": { "200": { @@ -37383,28 +55165,24 @@ }, "security": null, "source": { - "rawPath": "/v1/dev/uploads/artifacts", + "rawPath": "/v2/public/ego/dataset-packages", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Upload Artifact To Local Sink", + "summary": "Public List Dataset Packages", "tags": [ - "uploads" + "ego-v2" ] - } - } - }, - "edge": { - "methods": { - "sessionsArtifacts": { - "description": "Upsert Session Artifact", - "httpMethod": "POST", - "operationId": "upsert_session_artifact_v1_edge_sessions__session_id__artifacts_post", + }, + "egoDatasetPackagesGet": { + "description": "Public Get Dataset Package", + "httpMethod": "GET", + "operationId": "public_get_dataset_package_v2_public_ego_dataset_packages__package_id__get", "parameters": [ { "description": null, "location": "path", - "name": "session_id", + "name": "package_id", "required": true, "schema": { "type": "string" @@ -37442,22 +55220,6 @@ ] } }, - { - "description": null, - "location": "header", - "name": "X-Admin-Token", - "required": false, - "schema": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, { "description": null, "location": "header", @@ -37475,22 +55237,12 @@ } } ], - "path": "/api/crowd-control/v1/edge/sessions/{session_id}/artifacts", + "path": "/api/crowd-control/v2/public/ego/dataset-packages/{package_id}", "pathParameters": [ - "session_id" + "package_id" ], "queryParameters": [], - "requestBody": { - "contentTypes": [ - "application/json" - ], - "required": true, - "schema": { - "application/json": { - "$ref": "#/components/schemas/SessionArtifactUpsertRequest" - } - } - }, + "requestBody": null, "responses": { "200": { "contentTypes": [ @@ -37517,49 +55269,24 @@ }, "security": null, "source": { - "rawPath": "/v1/edge/sessions/{session_id}/artifacts", + "rawPath": "/v2/public/ego/dataset-packages/{package_id}", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Upsert Session Artifact", + "summary": "Public Get Dataset Package", "tags": [ - "sessions" + "ego-v2" ] }, - "sessionsReceipts": { - "description": "Record Upload Receipt", + "egoDatasetPackagesPost": { + "description": "Public Create Dataset Package", "httpMethod": "POST", - "operationId": "record_upload_receipt_v1_edge_sessions__session_id__receipts_post", + "operationId": "public_create_dataset_package_v2_public_ego_dataset_packages_post", "parameters": [ - { - "description": null, - "location": "path", - "name": "session_id", - "required": true, - "schema": { - "type": "string" - } - }, - { - "description": null, - "location": "header", - "name": "X-User-One-Id", - "required": false, - "schema": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, { "description": null, "location": "header", - "name": "X-User-Id", + "name": "X-User-One-Id", "required": false, "schema": { "anyOf": [ @@ -37575,7 +55302,7 @@ { "description": null, "location": "header", - "name": "X-Admin-Token", + "name": "X-User-Id", "required": false, "schema": { "anyOf": [ @@ -37605,10 +55332,8 @@ } } ], - "path": "/api/crowd-control/v1/edge/sessions/{session_id}/receipts", - "pathParameters": [ - "session_id" - ], + "path": "/api/crowd-control/v2/public/ego/dataset-packages", + "pathParameters": [], "queryParameters": [], "requestBody": { "contentTypes": [ @@ -37617,12 +55342,12 @@ "required": true, "schema": { "application/json": { - "$ref": "#/components/schemas/UploadReceiptRequest" + "$ref": "#/components/schemas/EgoDatasetPackageCreate" } } }, "responses": { - "200": { + "201": { "contentTypes": [ "application/json" ], @@ -37647,29 +55372,51 @@ }, "security": null, "source": { - "rawPath": "/v1/edge/sessions/{session_id}/receipts", + "rawPath": "/v2/public/ego/dataset-packages", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Record Upload Receipt", + "summary": "Public Create Dataset Package", "tags": [ - "sessions" + "ego-v2" ] }, - "sessionsSemanticCatalog": { - "description": "Upsert Session Semantic Catalog", + "egoDatasetPaymentsWechatNotify": { + "description": "Handle WeChat Pay async notification for public EGO dataset orders", "httpMethod": "POST", - "operationId": "upsert_session_semantic_catalog_v1_edge_sessions__session_id__semantic_catalog_post", - "parameters": [ - { - "description": null, - "location": "path", - "name": "session_id", - "required": true, + "operationId": "handle_public_ego_dataset_wechat_notify_v1_public_ego_dataset_payments_wechat_notify_post", + "parameters": [], + "path": "/api/crowd-control/v1/public/ego-dataset/payments/wechat/notify", + "pathParameters": [], + "queryParameters": [], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", "schema": { - "type": "string" + "application/json": {} } - }, + } + }, + "security": null, + "source": { + "rawPath": "/v1/public/ego-dataset/payments/wechat/notify", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Handle WeChat Pay async notification for public EGO dataset orders", + "tags": [ + "catalog" + ] + }, + "egoDatasetQuote": { + "description": "Create public EGO dataset quote", + "httpMethod": "POST", + "operationId": "create_public_ego_dataset_quote_v1_public_ego_dataset_quote_post", + "parameters": [ { "description": null, "location": "header", @@ -37702,22 +55449,6 @@ ] } }, - { - "description": null, - "location": "header", - "name": "X-Admin-Token", - "required": false, - "schema": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, { "description": null, "location": "header", @@ -37735,10 +55466,8 @@ } } ], - "path": "/api/crowd-control/v1/edge/sessions/{session_id}/semantic-catalog", - "pathParameters": [ - "session_id" - ], + "path": "/api/crowd-control/v1/public/ego-dataset/quote", + "pathParameters": [], "queryParameters": [], "requestBody": { "contentTypes": [ @@ -37747,7 +55476,7 @@ "required": true, "schema": { "application/json": { - "$ref": "#/components/schemas/SemanticCatalogUpsertRequest" + "$ref": "#/components/schemas/PublicEgoDatasetQuoteRequest" } } }, @@ -37759,7 +55488,7 @@ "description": "Successful Response", "schema": { "application/json": { - "type": "object" + "$ref": "#/components/schemas/PublicEgoDatasetQuoteRead" } } }, @@ -37777,99 +55506,156 @@ }, "security": null, "source": { - "rawPath": "/v1/edge/sessions/{session_id}/semantic-catalog", + "rawPath": "/v1/public/ego-dataset/quote", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Upsert Session Semantic Catalog", + "summary": "Create public EGO dataset quote", "tags": [ "catalog" ] }, - "sessionsUpsert": { - "description": "Upsert Session", - "httpMethod": "POST", - "operationId": "upsert_session_v1_edge_sessions_upsert_post", + "egoDatasetSessions": { + "description": "List public EGO dataset sessions", + "httpMethod": "GET", + "operationId": "list_public_ego_dataset_sessions_v1_public_ego_dataset_sessions_get", "parameters": [ { - "description": null, - "location": "header", - "name": "X-User-One-Id", + "description": "自然语言搜索词。会匹配语义目录中的 caption、tags、objects、action labels、searchable text,以及 camera_mode / model_id 等关键语义元数据。", + "location": "query", + "name": "q", "required": false, "schema": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] + "default": "", + "description": "自然语言搜索词。会匹配语义目录中的 caption、tags、objects、action labels、searchable text,以及 camera_mode / model_id 等关键语义元数据。", + "type": "string" } }, { - "description": null, - "location": "header", - "name": "X-User-Id", + "description": "按场景过滤。", + "location": "query", + "name": "scene", "required": false, "schema": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] + "default": "", + "description": "按场景过滤。", + "type": "string" + } + }, + { + "description": "按语义标签过滤。", + "location": "query", + "name": "tag", + "required": false, + "schema": { + "default": "", + "description": "按语义标签过滤。", + "type": "string" + } + }, + { + "description": "按数据层级过滤:basic / enhanced / professional。", + "location": "query", + "name": "dataTier", + "required": false, + "schema": { + "default": "", + "description": "按数据层级过滤:basic / enhanced / professional。", + "type": "string" + } + }, + { + "description": "按采集设备等级过滤:consumer / assisted / pro。", + "location": "query", + "name": "deviceGrade", + "required": false, + "schema": { + "default": "", + "description": "按采集设备等级过滤:consumer / assisted / pro。", + "type": "string" + } + }, + { + "description": "按质检状态过滤。", + "location": "query", + "name": "qualityStatus", + "required": false, + "schema": { + "default": "", + "description": "按质检状态过滤。", + "type": "string" + } + }, + { + "description": "按边缘节点在线状态过滤;只影响 session 所属节点的可达性视图,不改变命中依据。", + "location": "query", + "name": "edgeLivenessStatus", + "required": false, + "schema": { + "default": "", + "description": "按边缘节点在线状态过滤;只影响 session 所属节点的可达性视图,不改变命中依据。", + "type": "string" + } + }, + { + "description": "按采集时间窗口过滤,支持 all / 7d / 30d / 90d / 365d。", + "location": "query", + "name": "timeRange", + "required": false, + "schema": { + "default": "all", + "description": "按采集时间窗口过滤,支持 all / 7d / 30d / 90d / 365d。", + "type": "string" + } + }, + { + "description": "排序方式。match 优先按最佳语义匹配分数排序。", + "location": "query", + "name": "sortBy", + "required": false, + "schema": { + "default": "match", + "description": "排序方式。match 优先按最佳语义匹配分数排序。", + "type": "string" } }, { "description": null, - "location": "header", - "name": "X-Admin-Token", + "location": "query", + "name": "page", "required": false, "schema": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] + "default": 1, + "type": "integer" } }, { "description": null, - "location": "header", - "name": "Authorization", + "location": "query", + "name": "pageSize", "required": false, "schema": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] + "default": 6, + "type": "integer" } } ], - "path": "/api/crowd-control/v1/edge/sessions/upsert", + "path": "/api/crowd-control/v1/public/ego-dataset/sessions", "pathParameters": [], - "queryParameters": [], - "requestBody": { - "contentTypes": [ - "application/json" - ], - "required": true, - "schema": { - "application/json": { - "$ref": "#/components/schemas/SessionUpsertRequest" - } - } - }, + "queryParameters": [ + "q", + "scene", + "tag", + "dataTier", + "deviceGrade", + "qualityStatus", + "edgeLivenessStatus", + "timeRange", + "sortBy", + "page", + "pageSize" + ], + "requestBody": null, "responses": { "200": { "contentTypes": [ @@ -37878,7 +55664,7 @@ "description": "Successful Response", "schema": { "application/json": { - "type": "object" + "$ref": "#/components/schemas/PublicEgoDatasetListRead" } } }, @@ -37896,26 +55682,44 @@ }, "security": null, "source": { - "rawPath": "/v1/edge/sessions/upsert", + "rawPath": "/v1/public/ego-dataset/sessions", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Upsert Session", + "summary": "List public EGO dataset sessions", "tags": [ - "sessions" + "catalog" ] - } - } - }, - "healthz": { - "methods": { - "list": { - "description": "Healthz", + }, + "egoDatasetSessionsAssets": { + "description": "Get public EGO dataset preview asset", "httpMethod": "GET", - "operationId": "healthz_healthz_get", - "parameters": [], - "path": "/api/crowd-control/healthz", - "pathParameters": [], + "operationId": "get_public_ego_dataset_preview_asset_v1_public_ego_dataset_sessions__session_id__assets__asset_relpath__get", + "parameters": [ + { + "description": null, + "location": "path", + "name": "session_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "path", + "name": "asset_relpath", + "required": true, + "schema": { + "type": "string" + } + } + ], + "path": "/api/crowd-control/v1/public/ego-dataset/sessions/{session_id}/assets/{asset_relpath}", + "pathParameters": [ + "session_id", + "asset_relpath" + ], "queryParameters": [], "requestBody": null, "responses": { @@ -37924,40 +55728,44 @@ "application/json" ], "description": "Successful Response", + "schema": { + "application/json": {} + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", "schema": { "application/json": { - "type": "object" + "$ref": "#/components/schemas/HTTPValidationError" } } } }, "security": null, "source": { - "rawPath": "/healthz", + "rawPath": "/v1/public/ego-dataset/sessions/{session_id}/assets/{asset_relpath}", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Healthz", + "summary": "Get public EGO dataset preview asset", "tags": [ - "health" + "catalog" ] - } - } - }, - "me": { - "methods": { - "accessAudit": { - "description": "List My Access Audit", + }, + "egoDatasetSessionsDetail": { + "description": "Get public EGO dataset session detail (legacy alias)", "httpMethod": "GET", - "operationId": "list_my_access_audit_v1_me_access_audit_get", + "operationId": "get_public_ego_dataset_session_detail_legacy_alias_v1_public_ego_dataset_sessions__session_id__detail_get", "parameters": [ { "description": null, - "location": "query", - "name": "action", - "required": false, + "location": "path", + "name": "session_id", + "required": true, "schema": { - "default": "", "type": "string" } }, @@ -38010,11 +55818,11 @@ } } ], - "path": "/api/crowd-control/v1/me/access-audit", - "pathParameters": [], - "queryParameters": [ - "action" + "path": "/api/crowd-control/v1/public/ego-dataset/sessions/{session_id}/detail", + "pathParameters": [ + "session_id" ], + "queryParameters": [], "requestBody": null, "responses": { "200": { @@ -38024,7 +55832,7 @@ "description": "Successful Response", "schema": { "application/json": { - "type": "object" + "$ref": "#/components/schemas/PublicEgoDatasetPreviewRead" } } }, @@ -38042,37 +55850,26 @@ }, "security": null, "source": { - "rawPath": "/v1/me/access-audit", + "rawPath": "/v1/public/ego-dataset/sessions/{session_id}/detail", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "List My Access Audit", + "summary": "Get public EGO dataset session detail (legacy alias)", "tags": [ "catalog" ] }, - "captureReadiness": { - "description": "Get Capture Readiness", + "egoDatasetSessionsGet": { + "description": "Get public EGO dataset session detail", "httpMethod": "GET", - "operationId": "get_capture_readiness_v1_me_capture_readiness_get", + "operationId": "get_public_ego_dataset_session_detail_v1_public_ego_dataset_sessions__session_id__get", "parameters": [ { "description": null, - "location": "query", - "name": "deviceId", - "required": false, - "schema": { - "default": "", - "type": "string" - } - }, - { - "description": null, - "location": "query", - "name": "taskId", - "required": false, + "location": "path", + "name": "session_id", + "required": true, "schema": { - "default": "", "type": "string" } }, @@ -38125,12 +55922,11 @@ } } ], - "path": "/api/crowd-control/v1/me/capture-readiness", - "pathParameters": [], - "queryParameters": [ - "deviceId", - "taskId" + "path": "/api/crowd-control/v1/public/ego-dataset/sessions/{session_id}", + "pathParameters": [ + "session_id" ], + "queryParameters": [], "requestBody": null, "responses": { "200": { @@ -38140,7 +55936,7 @@ "description": "Successful Response", "schema": { "application/json": { - "type": "object" + "$ref": "#/components/schemas/PublicEgoDatasetPreviewRead" } } }, @@ -38158,140 +55954,29 @@ }, "security": null, "source": { - "rawPath": "/v1/me/capture-readiness", + "rawPath": "/v1/public/ego-dataset/sessions/{session_id}", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Get Capture Readiness", + "summary": "Get public EGO dataset session detail", "tags": [ - "devices" + "catalog" ] }, - "catalogSessions": { - "description": "List Catalog Sessions", + "egoDatasetSessionsPreview": { + "description": "Get public EGO dataset preview", "httpMethod": "GET", - "operationId": "list_catalog_sessions_v1_me_catalog_sessions_get", + "operationId": "get_public_ego_dataset_preview_v1_public_ego_dataset_sessions__session_id__preview_get", "parameters": [ { "description": null, - "location": "query", - "name": "q", - "required": false, - "schema": { - "default": "", - "type": "string" - } - }, - { - "description": null, - "location": "query", - "name": "task_id", - "required": false, - "schema": { - "default": "", - "type": "string" - } - }, - { - "description": null, - "location": "query", - "name": "device_id", - "required": false, - "schema": { - "default": "", - "type": "string" - } - }, - { - "description": null, - "location": "query", - "name": "tag", - "required": false, - "schema": { - "default": "", - "type": "string" - } - }, - { - "description": null, - "location": "query", - "name": "object", - "required": false, - "schema": { - "default": "", - "type": "string" - } - }, - { - "description": null, - "location": "query", - "name": "runtime_profile", - "required": false, - "schema": { - "default": "", - "type": "string" - } - }, - { - "description": null, - "location": "query", - "name": "start_edge_time_ns", - "required": false, - "schema": { - "default": 0, - "type": "integer" - } - }, - { - "description": null, - "location": "query", - "name": "end_edge_time_ns", - "required": false, - "schema": { - "default": 0, - "type": "integer" - } - }, - { - "description": null, - "location": "query", - "name": "embedding_key", - "required": false, - "schema": { - "default": "", - "type": "string" - } - }, - { - "description": null, - "location": "query", - "name": "embedding", - "required": false, + "location": "path", + "name": "session_id", + "required": true, "schema": { - "default": "", "type": "string" } }, - { - "description": null, - "location": "query", - "name": "embedding_min_similarity", - "required": false, - "schema": { - "default": 0.75, - "type": "number" - } - }, - { - "description": null, - "location": "query", - "name": "limit", - "required": false, - "schema": { - "default": 100, - "type": "integer" - } - }, { "description": null, "location": "header", @@ -38341,22 +56026,11 @@ } } ], - "path": "/api/crowd-control/v1/me/catalog/sessions", - "pathParameters": [], - "queryParameters": [ - "q", - "task_id", - "device_id", - "tag", - "object", - "runtime_profile", - "start_edge_time_ns", - "end_edge_time_ns", - "embedding_key", - "embedding", - "embedding_min_similarity", - "limit" + "path": "/api/crowd-control/v1/public/ego-dataset/sessions/{session_id}/preview", + "pathParameters": [ + "session_id" ], + "queryParameters": [], "requestBody": null, "responses": { "200": { @@ -38366,7 +56040,7 @@ "description": "Successful Response", "schema": { "application/json": { - "type": "object" + "$ref": "#/components/schemas/PublicEgoDatasetPreviewRead" } } }, @@ -38384,27 +56058,38 @@ }, "security": null, "source": { - "rawPath": "/v1/me/catalog/sessions", + "rawPath": "/v1/public/ego-dataset/sessions/{session_id}/preview", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "List Catalog Sessions", + "summary": "Get public EGO dataset preview", "tags": [ "catalog" ] }, - "catalogSessionsDownload": { - "description": "Request Raw Download", - "httpMethod": "POST", - "operationId": "request_raw_download_v1_me_catalog_sessions__session_id__download_post", + "egoDeliveries": { + "description": "Public List Ego Deliveries", + "httpMethod": "GET", + "operationId": "public_list_ego_deliveries_v2_public_ego_deliveries_get", "parameters": [ { "description": null, - "location": "path", - "name": "session_id", - "required": true, + "location": "query", + "name": "page", + "required": false, "schema": { - "type": "string" + "default": 1, + "type": "integer" + } + }, + { + "description": null, + "location": "query", + "name": "pageSize", + "required": false, + "schema": { + "default": 20, + "type": "integer" } }, { @@ -38456,29 +56141,13 @@ } } ], - "path": "/api/crowd-control/v1/me/catalog/sessions/{session_id}/download", - "pathParameters": [ - "session_id" + "path": "/api/crowd-control/v2/public/ego/deliveries", + "pathParameters": [], + "queryParameters": [ + "page", + "pageSize" ], - "queryParameters": [], - "requestBody": { - "contentTypes": [ - "application/json" - ], - "required": false, - "schema": { - "application/json": { - "anyOf": [ - { - "$ref": "#/components/schemas/SessionEntitlementRequest" - }, - { - "type": "null" - } - ] - } - } - }, + "requestBody": null, "responses": { "200": { "contentTypes": [ @@ -38505,24 +56174,42 @@ }, "security": null, "source": { - "rawPath": "/v1/me/catalog/sessions/{session_id}/download", + "rawPath": "/v2/public/ego/deliveries", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Request Raw Download", + "summary": "Public List Ego Deliveries", "tags": [ - "catalog" + "ego-v2" ] }, - "catalogSessionsPreview": { - "description": "Get Session Preview", + "egoDeliveriesFiles": { + "description": "Public Download Ego Delivery File", "httpMethod": "GET", - "operationId": "get_session_preview_v1_me_catalog_sessions__session_id__preview_get", + "operationId": "public_download_ego_delivery_file_v2_public_ego_deliveries__delivery_id__files__asset_id___relative_path__get", "parameters": [ { "description": null, "location": "path", - "name": "session_id", + "name": "delivery_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "path", + "name": "asset_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "path", + "name": "relative_path", "required": true, "schema": { "type": "string" @@ -38577,9 +56264,11 @@ } } ], - "path": "/api/crowd-control/v1/me/catalog/sessions/{session_id}/preview", + "path": "/api/crowd-control/v2/public/ego/deliveries/{delivery_id}/files/{asset_id}/{relative_path}", "pathParameters": [ - "session_id" + "delivery_id", + "asset_id", + "relative_path" ], "queryParameters": [], "requestBody": null, @@ -38590,9 +56279,7 @@ ], "description": "Successful Response", "schema": { - "application/json": { - "type": "object" - } + "application/json": {} } }, "422": { @@ -38609,24 +56296,24 @@ }, "security": null, "source": { - "rawPath": "/v1/me/catalog/sessions/{session_id}/preview", + "rawPath": "/v2/public/ego/deliveries/{delivery_id}/files/{asset_id}/{relative_path}", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Get Session Preview", + "summary": "Public Download Ego Delivery File", "tags": [ - "catalog" + "ego-v2" ] }, - "catalogSessionsPreviewAccess": { - "description": "Grant Preview Access", - "httpMethod": "POST", - "operationId": "grant_preview_access_v1_me_catalog_sessions__session_id__preview_access_post", + "egoDeliveriesGet": { + "description": "Public Get Ego Delivery", + "httpMethod": "GET", + "operationId": "public_get_ego_delivery_v2_public_ego_deliveries__delivery_id__get", "parameters": [ { "description": null, "location": "path", - "name": "session_id", + "name": "delivery_id", "required": true, "schema": { "type": "string" @@ -38681,21 +56368,102 @@ } } ], - "path": "/api/crowd-control/v1/me/catalog/sessions/{session_id}/preview-access", + "path": "/api/crowd-control/v2/public/ego/deliveries/{delivery_id}", "pathParameters": [ - "session_id" + "delivery_id" ], "queryParameters": [], - "requestBody": { - "contentTypes": [ - "application/json" - ], - "required": false, - "schema": { - "application/json": { + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v2/public/ego/deliveries/{delivery_id}", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Public Get Ego Delivery", + "tags": [ + "ego-v2" + ] + }, + "egoDeliveriesProcessedDownloadManifestJson": { + "description": "Public Get Ego Delivery Processed Download Manifest", + "httpMethod": "GET", + "operationId": "public_get_ego_delivery_processed_download_manifest_v2_public_ego_deliveries__delivery_id__processed_download_manifest_json_get", + "parameters": [ + { + "description": null, + "location": "path", + "name": "delivery_id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { "anyOf": [ { - "$ref": "#/components/schemas/SessionEntitlementRequest" + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" }, { "type": "null" @@ -38703,7 +56471,13 @@ ] } } - }, + ], + "path": "/api/crowd-control/v2/public/ego/deliveries/{delivery_id}/processed-download-manifest.json", + "pathParameters": [ + "delivery_id" + ], + "queryParameters": [], + "requestBody": null, "responses": { "200": { "contentTypes": [ @@ -38730,27 +56504,26 @@ }, "security": null, "source": { - "rawPath": "/v1/me/catalog/sessions/{session_id}/preview-access", + "rawPath": "/v2/public/ego/deliveries/{delivery_id}/processed-download-manifest.json", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Grant Preview Access", + "summary": "Public Get Ego Delivery Processed Download Manifest", "tags": [ - "catalog" + "ego-v2" ] }, - "deliveryJobs": { - "description": "List My Delivery Jobs", + "egoDeliveriesProcessedManifest": { + "description": "Public Get Ego Delivery Processed Manifest", "httpMethod": "GET", - "operationId": "list_my_delivery_jobs_v1_me_delivery_jobs_get", + "operationId": "public_get_ego_delivery_processed_manifest_v2_public_ego_deliveries__delivery_id__processed_manifest_get", "parameters": [ { "description": null, - "location": "query", - "name": "status", - "required": false, + "location": "path", + "name": "delivery_id", + "required": true, "schema": { - "default": "", "type": "string" } }, @@ -38803,11 +56576,11 @@ } } ], - "path": "/api/crowd-control/v1/me/delivery-jobs", - "pathParameters": [], - "queryParameters": [ - "status" + "path": "/api/crowd-control/v2/public/ego/deliveries/{delivery_id}/processed-manifest", + "pathParameters": [ + "delivery_id" ], + "queryParameters": [], "requestBody": null, "responses": { "200": { @@ -38835,20 +56608,40 @@ }, "security": null, "source": { - "rawPath": "/v1/me/delivery-jobs", + "rawPath": "/v2/public/ego/deliveries/{delivery_id}/processed-manifest", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "List My Delivery Jobs", + "summary": "Public Get Ego Delivery Processed Manifest", "tags": [ - "catalog" + "ego-v2" ] }, - "deviceBindingBind": { - "description": "Bind Current Device", - "httpMethod": "POST", - "operationId": "bind_current_device_v1_me_deviceBinding_bind_post", + "egoOrders": { + "description": "Public List Dataset Package Orders", + "httpMethod": "GET", + "operationId": "public_list_dataset_package_orders_v2_public_ego_orders_get", "parameters": [ + { + "description": null, + "location": "query", + "name": "page", + "required": false, + "schema": { + "default": 1, + "type": "integer" + } + }, + { + "description": null, + "location": "query", + "name": "pageSize", + "required": false, + "schema": { + "default": 20, + "type": "integer" + } + }, { "description": null, "location": "header", @@ -38898,20 +56691,13 @@ } } ], - "path": "/api/crowd-control/v1/me/deviceBinding/bind", + "path": "/api/crowd-control/v2/public/ego/orders", "pathParameters": [], - "queryParameters": [], - "requestBody": { - "contentTypes": [ - "application/json" - ], - "required": true, - "schema": { - "application/json": { - "$ref": "#/components/schemas/DeviceBindingBindRequest" - } - } - }, + "queryParameters": [ + "page", + "pageSize" + ], + "requestBody": null, "responses": { "200": { "contentTypes": [ @@ -38938,27 +56724,26 @@ }, "security": null, "source": { - "rawPath": "/v1/me/deviceBinding/bind", + "rawPath": "/v2/public/ego/orders", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Bind Current Device", + "summary": "Public List Dataset Package Orders", "tags": [ - "devices" + "ego-v2" ] }, - "deviceBindingCurrent": { - "description": "Get Current Device Binding", + "egoOrdersGet": { + "description": "Public Get Dataset Package Order", "httpMethod": "GET", - "operationId": "get_current_device_binding_v1_me_deviceBinding_current_get", + "operationId": "public_get_dataset_package_order_v2_public_ego_orders__order_id__get", "parameters": [ { "description": null, - "location": "query", - "name": "deviceId", - "required": false, + "location": "path", + "name": "order_id", + "required": true, "schema": { - "default": "", "type": "string" } }, @@ -39011,11 +56796,11 @@ } } ], - "path": "/api/crowd-control/v1/me/deviceBinding/current", - "pathParameters": [], - "queryParameters": [ - "deviceId" + "path": "/api/crowd-control/v2/public/ego/orders/{order_id}", + "pathParameters": [ + "order_id" ], + "queryParameters": [], "requestBody": null, "responses": { "200": { @@ -39043,30 +56828,20 @@ }, "security": null, "source": { - "rawPath": "/v1/me/deviceBinding/current", + "rawPath": "/v2/public/ego/orders/{order_id}", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Get Current Device Binding", + "summary": "Public Get Dataset Package Order", "tags": [ - "devices" + "ego-v2" ] }, - "deviceStatusCurrent": { - "description": "Get Current Device Runtime Status", - "httpMethod": "GET", - "operationId": "get_current_device_runtime_status_v1_me_deviceStatus_current_get", + "egoOrdersPost": { + "description": "Public Create Dataset Package Order", + "httpMethod": "POST", + "operationId": "public_create_dataset_package_order_v2_public_ego_orders_post", "parameters": [ - { - "description": null, - "location": "query", - "name": "deviceId", - "required": false, - "schema": { - "default": "", - "type": "string" - } - }, { "description": null, "location": "header", @@ -39116,14 +56891,22 @@ } } ], - "path": "/api/crowd-control/v1/me/deviceStatus/current", + "path": "/api/crowd-control/v2/public/ego/orders", "pathParameters": [], - "queryParameters": [ - "deviceId" - ], - "requestBody": null, + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/EgoOrderCreate" + } + } + }, "responses": { - "200": { + "201": { "contentTypes": [ "application/json" ], @@ -39148,20 +56931,40 @@ }, "security": null, "source": { - "rawPath": "/v1/me/deviceStatus/current", + "rawPath": "/v2/public/ego/orders", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Get Current Device Runtime Status", + "summary": "Public Create Dataset Package Order", "tags": [ - "devices" + "ego-v2" ] }, - "deviceStatusReport": { - "description": "Report Device Runtime Status", - "httpMethod": "POST", - "operationId": "report_device_runtime_status_v1_me_deviceStatus_report_post", + "egoQuotes": { + "description": "Public List Buyer Quotes", + "httpMethod": "GET", + "operationId": "public_list_buyer_quotes_v2_public_ego_quotes_get", "parameters": [ + { + "description": null, + "location": "query", + "name": "page", + "required": false, + "schema": { + "default": 1, + "type": "integer" + } + }, + { + "description": null, + "location": "query", + "name": "pageSize", + "required": false, + "schema": { + "default": 20, + "type": "integer" + } + }, { "description": null, "location": "header", @@ -39211,20 +57014,13 @@ } } ], - "path": "/api/crowd-control/v1/me/deviceStatus/report", + "path": "/api/crowd-control/v2/public/ego/quotes", "pathParameters": [], - "queryParameters": [], - "requestBody": { - "contentTypes": [ - "application/json" - ], - "required": true, - "schema": { - "application/json": { - "$ref": "#/components/schemas/DeviceRuntimeStatusReportRequest" - } - } - }, + "queryParameters": [ + "page", + "pageSize" + ], + "requestBody": null, "responses": { "200": { "contentTypes": [ @@ -39251,20 +57047,29 @@ }, "security": null, "source": { - "rawPath": "/v1/me/deviceStatus/report", + "rawPath": "/v2/public/ego/quotes", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Report Device Runtime Status", + "summary": "Public List Buyer Quotes", "tags": [ - "devices" + "ego-v2" ] }, - "edgeDevices": { - "description": "List My Edge Devices", + "egoQuotesGet": { + "description": "Public Get Buyer Quote", "httpMethod": "GET", - "operationId": "list_my_edge_devices_v1_me_edge_devices_get", + "operationId": "public_get_buyer_quote_v2_public_ego_quotes__quote_id__get", "parameters": [ + { + "description": null, + "location": "path", + "name": "quote_id", + "required": true, + "schema": { + "type": "string" + } + }, { "description": null, "location": "header", @@ -39314,8 +57119,10 @@ } } ], - "path": "/api/crowd-control/v1/me/edge-devices", - "pathParameters": [], + "path": "/api/crowd-control/v2/public/ego/quotes/{quote_id}", + "pathParameters": [ + "quote_id" + ], "queryParameters": [], "requestBody": null, "responses": { @@ -39344,19 +57151,19 @@ }, "security": null, "source": { - "rawPath": "/v1/me/edge-devices", + "rawPath": "/v2/public/ego/quotes/{quote_id}", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "List My Edge Devices", + "summary": "Public Get Buyer Quote", "tags": [ - "devices" + "ego-v2" ] }, - "edgeDevicesClaim": { - "description": "Claim Edge Device", + "egoQuotesPost": { + "description": "Public Quote Dataset Package", "httpMethod": "POST", - "operationId": "claim_edge_device_v1_me_edge_devices_claim_post", + "operationId": "public_quote_dataset_package_v2_public_ego_quotes_post", "parameters": [ { "description": null, @@ -39407,7 +57214,7 @@ } } ], - "path": "/api/crowd-control/v1/me/edge-devices/claim", + "path": "/api/crowd-control/v2/public/ego/quotes", "pathParameters": [], "queryParameters": [], "requestBody": { @@ -39417,7 +57224,7 @@ "required": true, "schema": { "application/json": { - "$ref": "#/components/schemas/EdgeDeviceClaimRequest" + "$ref": "#/components/schemas/EgoBuyerQuoteCreate" } } }, @@ -39447,30 +57254,20 @@ }, "security": null, "source": { - "rawPath": "/v1/me/edge-devices/claim", + "rawPath": "/v2/public/ego/quotes", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Claim Edge Device", + "summary": "Public Quote Dataset Package", "tags": [ - "devices" + "ego-v2" ] }, - "notificationCenter": { - "description": "My Notification Center", - "httpMethod": "GET", - "operationId": "my_notification_center_v1_me_notification_center_get", + "egoSelectionTokens": { + "description": "Public Create Selection Token", + "httpMethod": "POST", + "operationId": "public_create_selection_token_v2_public_ego_selection_tokens_post", "parameters": [ - { - "description": null, - "location": "query", - "name": "limit", - "required": false, - "schema": { - "default": 20, - "type": "integer" - } - }, { "description": null, "location": "header", @@ -39520,14 +57317,22 @@ } } ], - "path": "/api/crowd-control/v1/me/notification-center", + "path": "/api/crowd-control/v2/public/ego/selection-tokens", "pathParameters": [], - "queryParameters": [ - "limit" - ], - "requestBody": null, + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/EgoSelectionTokenCreate" + } + } + }, "responses": { - "200": { + "201": { "contentTypes": [ "application/json" ], @@ -39552,20 +57357,60 @@ }, "security": null, "source": { - "rawPath": "/v1/me/notification-center", + "rawPath": "/v2/public/ego/selection-tokens", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "My Notification Center", + "summary": "Public Create Selection Token", "tags": [ - "notifications" + "ego-v2" ] }, - "notifications": { - "description": "List My Notifications", + "egoTasks": { + "description": "Public Search Ego Tasks", "httpMethod": "GET", - "operationId": "list_my_notifications_v1_me_notifications_get", + "operationId": "public_search_ego_tasks_v2_public_ego_tasks_get", "parameters": [ + { + "description": null, + "location": "query", + "name": "q", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "page", + "required": false, + "schema": { + "default": 1, + "type": "integer" + } + }, + { + "description": null, + "location": "query", + "name": "pageSize", + "required": false, + "schema": { + "default": 6, + "type": "integer" + } + }, + { + "description": null, + "location": "query", + "name": "occupation", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, { "description": null, "location": "query", @@ -39579,7 +57424,7 @@ { "description": null, "location": "query", - "name": "status", + "name": "tag", "required": false, "schema": { "default": "", @@ -39589,22 +57434,92 @@ { "description": null, "location": "query", - "name": "limit", + "name": "qualityStatus", "required": false, "schema": { - "default": 100, - "type": "integer" + "default": "", + "type": "string" } }, { "description": null, - "location": "header", - "name": "X-User-One-Id", + "location": "query", + "name": "timeRange", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "sortBy", + "required": false, + "schema": { + "default": "match", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "dataContractProfile", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "modality", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "deliveryFormat", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "annotationLevel", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "lerobotFormat", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "minDeliverableDurationSeconds", "required": false, "schema": { "anyOf": [ { - "type": "string" + "type": "number" }, { "type": "null" @@ -39614,13 +57529,13 @@ }, { "description": null, - "location": "header", - "name": "X-User-Id", + "location": "query", + "name": "maxDeliverableDurationSeconds", "required": false, "schema": { "anyOf": [ { - "type": "string" + "type": "number" }, { "type": "null" @@ -39630,27 +57545,80 @@ }, { "description": null, - "location": "header", - "name": "Authorization", + "location": "query", + "name": "availability", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "minPrice", "required": false, "schema": { "anyOf": [ { - "type": "string" + "type": "number" }, { "type": "null" } ] } + }, + { + "description": null, + "location": "query", + "name": "maxPrice", + "required": false, + "schema": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "query", + "name": "inventoryFreshness", + "required": false, + "schema": { + "default": "", + "type": "string" + } } ], - "path": "/api/crowd-control/v1/me/notifications", + "path": "/api/crowd-control/v2/public/ego/tasks", "pathParameters": [], "queryParameters": [ + "q", + "page", + "pageSize", + "occupation", "category", - "status", - "limit" + "tag", + "qualityStatus", + "timeRange", + "sortBy", + "dataContractProfile", + "modality", + "deliveryFormat", + "annotationLevel", + "lerobotFormat", + "minDeliverableDurationSeconds", + "maxDeliverableDurationSeconds", + "availability", + "minPrice", + "maxPrice", + "inventoryFreshness" ], "requestBody": null, "responses": { @@ -39679,24 +57647,80 @@ }, "security": null, "source": { - "rawPath": "/v1/me/notifications", + "rawPath": "/v2/public/ego/tasks", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "List My Notifications", + "summary": "Public Search Ego Tasks", "tags": [ - "notifications" + "ego-v2" ] }, - "notificationsMarkAllRead": { - "description": "Mark All My Notifications Read", - "httpMethod": "POST", - "operationId": "mark_all_my_notifications_read_v1_me_notifications_mark_all_read_post", + "egoTasksGet": { + "description": "Public Get Ego Task", + "httpMethod": "GET", + "operationId": "public_get_ego_task_v2_public_ego_tasks__task_id__get", "parameters": [ { "description": null, - "location": "header", - "name": "X-User-One-Id", + "location": "path", + "name": "task_id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "path": "/api/crowd-control/v2/public/ego/tasks/{task_id}", + "pathParameters": [ + "task_id" + ], + "queryParameters": [], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "type": "object" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v2/public/ego/tasks/{task_id}", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Public Get Ego Task", + "tags": [ + "ego-v2" + ] + }, + "siteContent": { + "description": "List Public Site Content", + "httpMethod": "GET", + "operationId": "list_public_site_content_v1_public_site_content_get", + "parameters": [ + { + "description": null, + "location": "query", + "name": "content_type", "required": false, "schema": { "anyOf": [ @@ -39711,8 +57735,8 @@ }, { "description": null, - "location": "header", - "name": "X-User-Id", + "location": "query", + "name": "page_scope", "required": false, "schema": { "anyOf": [ @@ -39727,24 +57751,44 @@ }, { "description": null, - "location": "header", - "name": "Authorization", + "location": "query", + "name": "locale", "required": false, "schema": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] + "default": "zh", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "include_global", + "required": false, + "schema": { + "default": false, + "type": "boolean" + } + }, + { + "description": null, + "location": "query", + "name": "limit", + "required": false, + "schema": { + "default": 100, + "type": "integer" } } ], - "path": "/api/crowd-control/v1/me/notifications/mark-all-read", + "path": "/api/crowd-control/v1/public/site-content", "pathParameters": [], - "queryParameters": [], + "queryParameters": [ + "content_type", + "page_scope", + "locale", + "include_global", + "limit" + ], "requestBody": null, "responses": { "200": { @@ -39754,7 +57798,7 @@ "description": "Successful Response", "schema": { "application/json": { - "type": "object" + "$ref": "#/components/schemas/SiteContentListRead" } } }, @@ -39772,49 +57816,118 @@ }, "security": null, "source": { - "rawPath": "/v1/me/notifications/mark-all-read", + "rawPath": "/v1/public/site-content", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Mark All My Notifications Read", + "summary": "List Public Site Content", "tags": [ - "notifications" + "public-site-content" ] - }, - "notificationsStatus": { - "description": "Update My Notification Status", - "httpMethod": "POST", - "operationId": "update_my_notification_status_v1_me_notifications__notification_id__status_post", + } + } + }, + "review": { + "methods": { + "queue": { + "description": "List Review Queue", + "httpMethod": "GET", + "operationId": "list_review_queue_v1_review_queue_get", "parameters": [ { "description": null, - "location": "path", - "name": "notification_id", - "required": true, + "location": "query", + "name": "queue_status", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "queue_reason", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "priority", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "required_review_tier", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "specialist_lane", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "risk_band", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "limit", + "required": false, "schema": { - "type": "string" + "default": 100, + "type": "integer" } }, { "description": null, - "location": "header", - "name": "X-User-One-Id", + "location": "query", + "name": "include_artifacts", "required": false, "schema": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] + "default": false, + "type": "boolean" + } + }, + { + "description": null, + "location": "query", + "name": "include_full_metadata", + "required": false, + "schema": { + "default": false, + "type": "boolean" } }, { "description": null, "location": "header", - "name": "X-User-Id", + "name": "X-Admin-Token", "required": false, "schema": { "anyOf": [ @@ -39844,22 +57957,20 @@ } } ], - "path": "/api/crowd-control/v1/me/notifications/{notification_id}/status", - "pathParameters": [ - "notification_id" + "path": "/api/crowd-control/v1/review/queue", + "pathParameters": [], + "queryParameters": [ + "queue_status", + "queue_reason", + "priority", + "required_review_tier", + "specialist_lane", + "risk_band", + "limit", + "include_artifacts", + "include_full_metadata" ], - "queryParameters": [], - "requestBody": { - "contentTypes": [ - "application/json" - ], - "required": true, - "schema": { - "application/json": { - "$ref": "#/components/schemas/NotificationStatusUpdateRequest" - } - } - }, + "requestBody": null, "responses": { "200": { "contentTypes": [ @@ -39886,122 +57997,129 @@ }, "security": null, "source": { - "rawPath": "/v1/me/notifications/{notification_id}/status", + "rawPath": "/v1/review/queue", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Update My Notification Status", + "summary": "List Review Queue", "tags": [ - "notifications" + "review" ] }, - "notificationsSummary": { - "description": "My Notification Summary", + "sessions": { + "description": "List Review Sessions", "httpMethod": "GET", - "operationId": "my_notification_summary_v1_me_notifications_summary_get", + "operationId": "list_review_sessions_v1_review_sessions_get", "parameters": [ { "description": null, - "location": "header", - "name": "X-User-One-Id", + "location": "query", + "name": "task_id", "required": false, "schema": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] + "default": "", + "type": "string" } }, { "description": null, - "location": "header", - "name": "X-User-Id", + "location": "query", + "name": "review_status", "required": false, "schema": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] + "default": "", + "type": "string" } }, { "description": null, - "location": "header", - "name": "Authorization", + "location": "query", + "name": "queue_status", "required": false, "schema": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] + "default": "", + "type": "string" } - } - ], - "path": "/api/crowd-control/v1/me/notifications/summary", - "pathParameters": [], - "queryParameters": [], - "requestBody": null, - "responses": { - "200": { - "contentTypes": [ - "application/json" - ], - "description": "Successful Response", + }, + { + "description": null, + "location": "query", + "name": "quality_status", + "required": false, "schema": { - "application/json": { - "type": "object" - } + "default": "", + "type": "string" } }, - "422": { - "contentTypes": [ - "application/json" - ], - "description": "Validation Error", + { + "description": null, + "location": "query", + "name": "reward_status", + "required": false, "schema": { - "application/json": { - "$ref": "#/components/schemas/HTTPValidationError" - } + "default": "", + "type": "string" } - } - }, - "security": null, - "source": { - "rawPath": "/v1/me/notifications/summary", - "service": "crowd", - "servicePath": "/api/crowd-control" - }, - "summary": "My Notification Summary", - "tags": [ - "notifications" - ] - }, - "privacyStoragePolicy": { - "description": "My Privacy Storage Policy", - "httpMethod": "GET", - "operationId": "my_privacy_storage_policy_v1_me_privacy_storage_policy_get", - "parameters": [ + }, { "description": null, - "location": "header", - "name": "X-User-One-Id", + "location": "query", + "name": "queue_reason", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "priority", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "required_review_tier", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "specialist_lane", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "risk_band", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "ready_for_review", "required": false, "schema": { "anyOf": [ { - "type": "string" + "type": "boolean" }, { "type": "null" @@ -40009,10 +58127,40 @@ ] } }, + { + "description": null, + "location": "query", + "name": "limit", + "required": false, + "schema": { + "default": 100, + "type": "integer" + } + }, + { + "description": null, + "location": "query", + "name": "include_artifacts", + "required": false, + "schema": { + "default": false, + "type": "boolean" + } + }, + { + "description": null, + "location": "query", + "name": "include_full_metadata", + "required": false, + "schema": { + "default": false, + "type": "boolean" + } + }, { "description": null, "location": "header", - "name": "X-User-Id", + "name": "X-Admin-Token", "required": false, "schema": { "anyOf": [ @@ -40042,9 +58190,24 @@ } } ], - "path": "/api/crowd-control/v1/me/privacy-storage-policy", + "path": "/api/crowd-control/v1/review/sessions", "pathParameters": [], - "queryParameters": [], + "queryParameters": [ + "task_id", + "review_status", + "queue_status", + "quality_status", + "reward_status", + "queue_reason", + "priority", + "required_review_tier", + "specialist_lane", + "risk_band", + "ready_for_review", + "limit", + "include_artifacts", + "include_full_metadata" + ], "requestBody": null, "responses": { "200": { @@ -40072,40 +58235,24 @@ }, "security": null, "source": { - "rawPath": "/v1/me/privacy-storage-policy", + "rawPath": "/v1/review/sessions", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "My Privacy Storage Policy", + "summary": "List Review Sessions", "tags": [ - "ops" + "review" ] }, - "pushDevices": { - "description": "List My Push Devices", - "httpMethod": "GET", - "operationId": "list_my_push_devices_v1_me_push_devices_get", + "sessionsBatchDecision": { + "description": "Review Sessions Batch Decision", + "httpMethod": "POST", + "operationId": "review_sessions_batch_decision_v1_review_sessions_batch_decision_post", "parameters": [ { "description": null, "location": "header", - "name": "X-User-One-Id", - "required": false, - "schema": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - { - "description": null, - "location": "header", - "name": "X-User-Id", + "name": "X-Admin-Token", "required": false, "schema": { "anyOf": [ @@ -40135,10 +58282,20 @@ } } ], - "path": "/api/crowd-control/v1/me/push-devices", + "path": "/api/crowd-control/v1/review/sessions/batch-decision", "pathParameters": [], "queryParameters": [], - "requestBody": null, + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/BatchReviewDecisionRequest" + } + } + }, "responses": { "200": { "contentTypes": [ @@ -40165,40 +58322,33 @@ }, "security": null, "source": { - "rawPath": "/v1/me/push-devices", + "rawPath": "/v1/review/sessions/batch-decision", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "List My Push Devices", + "summary": "Review Sessions Batch Decision", "tags": [ - "notifications" + "review" ] }, - "pushDevicesRegister": { - "description": "Register My Push Device", + "sessionsDecision": { + "description": "Review Session Decision", "httpMethod": "POST", - "operationId": "register_my_push_device_v1_me_push_devices_register_post", + "operationId": "review_session_decision_v1_review_sessions__session_id__decision_post", "parameters": [ { "description": null, - "location": "header", - "name": "X-User-One-Id", - "required": false, + "location": "path", + "name": "session_id", + "required": true, "schema": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] + "type": "string" } }, { "description": null, "location": "header", - "name": "X-User-Id", + "name": "X-Admin-Token", "required": false, "schema": { "anyOf": [ @@ -40228,8 +58378,10 @@ } } ], - "path": "/api/crowd-control/v1/me/push-devices/register", - "pathParameters": [], + "path": "/api/crowd-control/v1/review/sessions/{session_id}/decision", + "pathParameters": [ + "session_id" + ], "queryParameters": [], "requestBody": { "contentTypes": [ @@ -40238,7 +58390,7 @@ "required": true, "schema": { "application/json": { - "$ref": "#/components/schemas/PushDeviceRegistrationRequest" + "$ref": "#/components/schemas/ReviewDecisionRequest" } } }, @@ -40268,24 +58420,24 @@ }, "security": null, "source": { - "rawPath": "/v1/me/push-devices/register", + "rawPath": "/v1/review/sessions/{session_id}/decision", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Register My Push Device", + "summary": "Review Session Decision", "tags": [ - "notifications" + "review" ] }, - "pushDevicesStatus": { - "description": "Update My Push Device Status", - "httpMethod": "POST", - "operationId": "update_my_push_device_status_v1_me_push_devices__registration_id__status_post", + "sessionsGet": { + "description": "Get Review Session Detail", + "httpMethod": "GET", + "operationId": "get_review_session_detail_v1_review_sessions__session_id__get", "parameters": [ { "description": null, "location": "path", - "name": "registration_id", + "name": "session_id", "required": true, "schema": { "type": "string" @@ -40294,23 +58446,7 @@ { "description": null, "location": "header", - "name": "X-User-One-Id", - "required": false, - "schema": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - { - "description": null, - "location": "header", - "name": "X-User-Id", + "name": "X-Admin-Token", "required": false, "schema": { "anyOf": [ @@ -40340,22 +58476,12 @@ } } ], - "path": "/api/crowd-control/v1/me/push-devices/{registration_id}/status", + "path": "/api/crowd-control/v1/review/sessions/{session_id}", "pathParameters": [ - "registration_id" + "session_id" ], "queryParameters": [], - "requestBody": { - "contentTypes": [ - "application/json" - ], - "required": true, - "schema": { - "application/json": { - "$ref": "#/components/schemas/PushDeviceStatusUpdateRequest" - } - } - }, + "requestBody": null, "responses": { "200": { "contentTypes": [ @@ -40382,24 +58508,24 @@ }, "security": null, "source": { - "rawPath": "/v1/me/push-devices/{registration_id}/status", + "rawPath": "/v1/review/sessions/{session_id}", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Update My Push Device Status", + "summary": "Get Review Session Detail", "tags": [ - "notifications" + "review" ] }, - "rewards": { - "description": "List My Rewards", + "summary": { + "description": "Get Review Summary", "httpMethod": "GET", - "operationId": "list_my_rewards_v1_me_rewards_get", + "operationId": "get_review_summary_v1_review_summary_get", "parameters": [ { "description": null, "location": "query", - "name": "status", + "name": "task_id", "required": false, "schema": { "default": "", @@ -40409,7 +58535,7 @@ { "description": null, "location": "query", - "name": "task_id", + "name": "queue_status", "required": false, "schema": { "default": "", @@ -40419,33 +58545,57 @@ { "description": null, "location": "query", - "name": "limit", + "name": "queue_reason", "required": false, "schema": { - "default": 100, - "type": "integer" + "default": "", + "type": "string" } }, { "description": null, - "location": "header", - "name": "X-User-One-Id", + "location": "query", + "name": "priority", "required": false, "schema": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "required_review_tier", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "specialist_lane", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "risk_band", + "required": false, + "schema": { + "default": "", + "type": "string" } }, { "description": null, "location": "header", - "name": "X-User-Id", + "name": "X-Admin-Token", "required": false, "schema": { "anyOf": [ @@ -40475,12 +58625,16 @@ } } ], - "path": "/api/crowd-control/v1/me/rewards", + "path": "/api/crowd-control/v1/review/summary", "pathParameters": [], "queryParameters": [ - "status", "task_id", - "limit" + "queue_status", + "queue_reason", + "priority", + "required_review_tier", + "specialist_lane", + "risk_band" ], "requestBody": null, "responses": { @@ -40509,24 +58663,28 @@ }, "security": null, "source": { - "rawPath": "/v1/me/rewards", + "rawPath": "/v1/review/summary", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "List My Rewards", + "summary": "Get Review Summary", "tags": [ - "rewards" + "review" ] - }, - "rewardsDispute": { - "description": "Open My Reward Dispute", + } + } + }, + "sampleExecutions": { + "methods": { + "videoAssets": { + "description": "Create Sample Video Asset", "httpMethod": "POST", - "operationId": "open_my_reward_dispute_v1_me_rewards__reward_id__dispute_post", + "operationId": "create_sample_video_asset_v2_sample_executions__execution_id__video_assets_post", "parameters": [ { "description": null, "location": "path", - "name": "reward_id", + "name": "execution_id", "required": true, "schema": { "type": "string" @@ -40581,9 +58739,9 @@ } } ], - "path": "/api/crowd-control/v1/me/rewards/{reward_id}/dispute", + "path": "/api/crowd-control/v2/sample-executions/{execution_id}/video-assets", "pathParameters": [ - "reward_id" + "execution_id" ], "queryParameters": [], "requestBody": { @@ -40593,12 +58751,12 @@ "required": true, "schema": { "application/json": { - "$ref": "#/components/schemas/RewardDisputeRequest" + "$ref": "#/components/schemas/EgoVideoAssetCreate" } } }, "responses": { - "200": { + "201": { "contentTypes": [ "application/json" ], @@ -40623,33 +58781,44 @@ }, "security": null, "source": { - "rawPath": "/v1/me/rewards/{reward_id}/dispute", + "rawPath": "/v2/sample-executions/{execution_id}/video-assets", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Open My Reward Dispute", + "summary": "Create Sample Video Asset", "tags": [ - "rewards" + "ego-v2" ] - }, - "rewardsEvidence": { - "description": "Submit My Reward Evidence", + } + } + }, + "settlementCycles": { + "methods": { + "close": { + "description": "Close Settlement Cycle", "httpMethod": "POST", - "operationId": "submit_my_reward_evidence_v1_me_rewards__reward_id__evidence_post", + "operationId": "close_settlement_cycle_v2_settlement_cycles_close_post", "parameters": [ { "description": null, - "location": "path", - "name": "reward_id", - "required": true, + "location": "header", + "name": "X-Admin-Token", + "required": false, "schema": { - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, { "description": null, "location": "header", - "name": "X-User-One-Id", + "name": "Authorization", "required": false, "schema": { "anyOf": [ @@ -40665,7 +58834,7 @@ { "description": null, "location": "header", - "name": "X-User-Id", + "name": "X-User-One-Id", "required": false, "schema": { "anyOf": [ @@ -40681,7 +58850,7 @@ { "description": null, "location": "header", - "name": "Authorization", + "name": "X-User-Id", "required": false, "schema": { "anyOf": [ @@ -40695,19 +58864,24 @@ } } ], - "path": "/api/crowd-control/v1/me/rewards/{reward_id}/evidence", - "pathParameters": [ - "reward_id" - ], + "path": "/api/crowd-control/v2/settlement-cycles/close", + "pathParameters": [], "queryParameters": [], "requestBody": { "contentTypes": [ "application/json" ], - "required": true, + "required": false, "schema": { "application/json": { - "$ref": "#/components/schemas/RewardEvidenceRequest" + "anyOf": [ + { + "$ref": "#/components/schemas/EgoSettlementCloseRequest" + }, + { + "type": "null" + } + ] } } }, @@ -40737,24 +58911,28 @@ }, "security": null, "source": { - "rawPath": "/v1/me/rewards/{reward_id}/evidence", + "rawPath": "/v2/settlement-cycles/close", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Submit My Reward Evidence", + "summary": "Close Settlement Cycle", "tags": [ - "rewards" + "ego-v2" ] - }, - "rewardsGet": { - "description": "My Reward Detail", - "httpMethod": "GET", - "operationId": "my_reward_detail_v1_me_rewards__reward_id__get", + } + } + }, + "taskExecutions": { + "methods": { + "localProcessingResult": { + "description": "Create Local Processing Result", + "httpMethod": "POST", + "operationId": "create_local_processing_result_v2_task_executions__execution_id__local_processing_result_post", "parameters": [ { "description": null, "location": "path", - "name": "reward_id", + "name": "execution_id", "required": true, "schema": { "type": "string" @@ -40809,14 +58987,24 @@ } } ], - "path": "/api/crowd-control/v1/me/rewards/{reward_id}", + "path": "/api/crowd-control/v2/task-executions/{execution_id}/local-processing-result", "pathParameters": [ - "reward_id" + "execution_id" ], "queryParameters": [], - "requestBody": null, + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/EgoLocalProcessingResultCreate" + } + } + }, "responses": { - "200": { + "201": { "contentTypes": [ "application/json" ], @@ -40841,27 +59029,26 @@ }, "security": null, "source": { - "rawPath": "/v1/me/rewards/{reward_id}", + "rawPath": "/v2/task-executions/{execution_id}/local-processing-result", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "My Reward Detail", + "summary": "Create Local Processing Result", "tags": [ - "rewards" + "ego-v2" ] }, - "rewardsSummary": { - "description": "My Rewards Summary", - "httpMethod": "GET", - "operationId": "my_rewards_summary_v1_me_rewards_summary_get", + "submitAcceptance": { + "description": "Submit Full Execution Acceptance", + "httpMethod": "POST", + "operationId": "submit_full_execution_acceptance_v2_task_executions__execution_id__submit_acceptance_post", "parameters": [ { "description": null, - "location": "query", - "name": "task_id", - "required": false, + "location": "path", + "name": "execution_id", + "required": true, "schema": { - "default": "", "type": "string" } }, @@ -40914,11 +59101,11 @@ } } ], - "path": "/api/crowd-control/v1/me/rewards/summary", - "pathParameters": [], - "queryParameters": [ - "task_id" + "path": "/api/crowd-control/v2/task-executions/{execution_id}/submit-acceptance", + "pathParameters": [ + "execution_id" ], + "queryParameters": [], "requestBody": null, "responses": { "200": { @@ -40946,106 +59133,29 @@ }, "security": null, "source": { - "rawPath": "/v1/me/rewards/summary", + "rawPath": "/v2/task-executions/{execution_id}/submit-acceptance", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "My Rewards Summary", + "summary": "Submit Full Execution Acceptance", "tags": [ - "rewards" + "ego-v2" ] }, - "sessions": { - "description": "List My Sessions", - "httpMethod": "GET", - "operationId": "list_my_sessions_v1_me_sessions_get", + "videoAssets": { + "description": "Create Full Video Asset", + "httpMethod": "POST", + "operationId": "create_full_video_asset_v2_task_executions__execution_id__video_assets_post", "parameters": [ { "description": null, - "location": "query", - "name": "task_id", - "required": false, - "schema": { - "default": "", - "type": "string" - } - }, - { - "description": null, - "location": "query", - "name": "quality_status", - "required": false, - "schema": { - "default": "", - "type": "string" - } - }, - { - "description": null, - "location": "query", - "name": "review_status", - "required": false, - "schema": { - "default": "", - "type": "string" - } - }, - { - "description": null, - "location": "query", - "name": "reward_status", - "required": false, + "location": "path", + "name": "execution_id", + "required": true, "schema": { - "default": "", "type": "string" } }, - { - "description": null, - "location": "query", - "name": "ready_for_review", - "required": false, - "schema": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - } - }, - { - "description": null, - "location": "query", - "name": "limit", - "required": false, - "schema": { - "default": 20, - "type": "integer" - } - }, - { - "description": null, - "location": "query", - "name": "include_artifacts", - "required": false, - "schema": { - "default": false, - "type": "boolean" - } - }, - { - "description": null, - "location": "query", - "name": "include_full_metadata", - "required": false, - "schema": { - "default": false, - "type": "boolean" - } - }, { "description": null, "location": "header", @@ -41095,21 +59205,24 @@ } } ], - "path": "/api/crowd-control/v1/me/sessions", - "pathParameters": [], - "queryParameters": [ - "task_id", - "quality_status", - "review_status", - "reward_status", - "ready_for_review", - "limit", - "include_artifacts", - "include_full_metadata" + "path": "/api/crowd-control/v2/task-executions/{execution_id}/video-assets", + "pathParameters": [ + "execution_id" ], - "requestBody": null, + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/EgoVideoAssetCreate" + } + } + }, "responses": { - "200": { + "201": { "contentTypes": [ "application/json" ], @@ -41134,27 +59247,30 @@ }, "security": null, "source": { - "rawPath": "/v1/me/sessions", + "rawPath": "/v2/task-executions/{execution_id}/video-assets", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "List My Sessions", + "summary": "Create Full Video Asset", "tags": [ - "sessions" + "ego-v2" ] - }, - "summary": { - "description": "Get My Session Summary", - "httpMethod": "GET", - "operationId": "get_my_session_summary_v1_me_summary_get", + } + } + }, + "taskMedia": { + "methods": { + "complete": { + "description": "Complete Upload", + "httpMethod": "POST", + "operationId": "complete_upload_v2_task_media__media_id__complete_post", "parameters": [ { "description": null, - "location": "query", - "name": "task_id", - "required": false, + "location": "path", + "name": "media_id", + "required": true, "schema": { - "default": "", "type": "string" } }, @@ -41207,11 +59323,11 @@ } } ], - "path": "/api/crowd-control/v1/me/summary", - "pathParameters": [], - "queryParameters": [ - "task_id" + "path": "/api/crowd-control/v2/task-media/{media_id}/complete", + "pathParameters": [ + "media_id" ], + "queryParameters": [], "requestBody": null, "responses": { "200": { @@ -41221,7 +59337,7 @@ "description": "Successful Response", "schema": { "application/json": { - "type": "object" + "$ref": "#/components/schemas/EgoTaskMediaRead" } } }, @@ -41239,60 +59355,29 @@ }, "security": null, "source": { - "rawPath": "/v1/me/summary", + "rawPath": "/v2/task-media/{media_id}/complete", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Get My Session Summary", + "summary": "Complete Upload", "tags": [ - "sessions" + "ego-task-media" ] }, - "tasks": { - "description": "List My Tasks", + "detail": { + "description": "Get Media", "httpMethod": "GET", - "operationId": "list_my_tasks_v1_me_tasks_get", + "operationId": "get_media_v2_task_media__media_id__get", "parameters": [ { "description": null, - "location": "query", - "name": "status", - "required": false, - "schema": { - "default": "", - "type": "string" - } - }, - { - "description": null, - "location": "query", - "name": "task_id", - "required": false, - "schema": { - "default": "", - "type": "string" - } - }, - { - "description": null, - "location": "query", - "name": "template_id", - "required": false, + "location": "path", + "name": "media_id", + "required": true, "schema": { - "default": "", "type": "string" } }, - { - "description": null, - "location": "query", - "name": "limit", - "required": false, - "schema": { - "default": 100, - "type": "integer" - } - }, { "description": null, "location": "header", @@ -41342,14 +59427,11 @@ } } ], - "path": "/api/crowd-control/v1/me/tasks", - "pathParameters": [], - "queryParameters": [ - "status", - "task_id", - "template_id", - "limit" + "path": "/api/crowd-control/v2/task-media/{media_id}", + "pathParameters": [ + "media_id" ], + "queryParameters": [], "requestBody": null, "responses": { "200": { @@ -41359,7 +59441,7 @@ "description": "Successful Response", "schema": { "application/json": { - "type": "object" + "$ref": "#/components/schemas/EgoTaskMediaRead" } } }, @@ -41377,29 +59459,20 @@ }, "security": null, "source": { - "rawPath": "/v1/me/tasks", + "rawPath": "/v2/task-media/{media_id}", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "List My Tasks", + "summary": "Get Media", "tags": [ - "tasks" + "ego-task-media" ] }, - "tasksAbandon": { - "description": "Abandon My Task", + "uploadIntent": { + "description": "Create Upload Intent", "httpMethod": "POST", - "operationId": "abandon_my_task_v1_me_tasks__task_id__abandon_post", + "operationId": "create_upload_intent_v2_task_media_upload_intent_post", "parameters": [ - { - "description": null, - "location": "path", - "name": "task_id", - "required": true, - "schema": { - "type": "string" - } - }, { "description": null, "location": "header", @@ -41449,38 +59522,29 @@ } } ], - "path": "/api/crowd-control/v1/me/tasks/{task_id}/abandon", - "pathParameters": [ - "task_id" - ], + "path": "/api/crowd-control/v2/task-media/upload-intent", + "pathParameters": [], "queryParameters": [], "requestBody": { "contentTypes": [ "application/json" ], - "required": false, + "required": true, "schema": { "application/json": { - "anyOf": [ - { - "$ref": "#/components/schemas/TaskLifecycleActionRequest" - }, - { - "type": "null" - } - ] + "$ref": "#/components/schemas/EgoTaskMediaUploadIntentCreate" } } }, "responses": { - "200": { + "201": { "contentTypes": [ "application/json" ], "description": "Successful Response", "schema": { "application/json": { - "type": "object" + "$ref": "#/components/schemas/EgoTaskMediaUploadIntentRead" } } }, @@ -41498,101 +59562,28 @@ }, "security": null, "source": { - "rawPath": "/v1/me/tasks/{task_id}/abandon", + "rawPath": "/v2/task-media/upload-intent", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Abandon My Task", + "summary": "Create Upload Intent", "tags": [ - "tasks" + "ego-task-media" ] - }, - "tasksClaim": { - "description": "Claim My Task", - "httpMethod": "POST", - "operationId": "claim_my_task_v1_me_tasks__task_id__claim_post", - "parameters": [ - { - "description": null, - "location": "path", - "name": "task_id", - "required": true, - "schema": { - "type": "string" - } - }, - { - "description": null, - "location": "header", - "name": "X-User-One-Id", - "required": false, - "schema": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - { - "description": null, - "location": "header", - "name": "X-User-Id", - "required": false, - "schema": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - { - "description": null, - "location": "header", - "name": "Authorization", - "required": false, - "schema": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - } - ], - "path": "/api/crowd-control/v1/me/tasks/{task_id}/claim", - "pathParameters": [ - "task_id" - ], + } + } + }, + "taskTypeCatalog": { + "methods": { + "list": { + "description": "List Task Type Catalog", + "httpMethod": "GET", + "operationId": "list_task_type_catalog_v2_task_type_catalog_get", + "parameters": [], + "path": "/api/crowd-control/v2/task-type-catalog", + "pathParameters": [], "queryParameters": [], - "requestBody": { - "contentTypes": [ - "application/json" - ], - "required": false, - "schema": { - "application/json": { - "anyOf": [ - { - "$ref": "#/components/schemas/TaskClaimRequest" - }, - { - "type": "null" - } - ] - } - } - }, + "requestBody": null, "responses": { "200": { "contentTypes": [ @@ -41604,34 +59595,27 @@ "type": "object" } } - }, - "422": { - "contentTypes": [ - "application/json" - ], - "description": "Validation Error", - "schema": { - "application/json": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } } }, "security": null, "source": { - "rawPath": "/v1/me/tasks/{task_id}/claim", + "rawPath": "/v2/task-type-catalog", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Claim My Task", + "summary": "List Task Type Catalog", "tags": [ - "tasks" + "ego-v2" ] - }, - "tasksComplete": { - "description": "Complete My Task", + } + } + }, + "tasks": { + "methods": { + "authorizations": { + "description": "Confirm Task Authorization", "httpMethod": "POST", - "operationId": "complete_my_task_v1_me_tasks__task_id__complete_post", + "operationId": "confirm_task_authorization_v2_tasks__task_id__authorizations_post", "parameters": [ { "description": null, @@ -41691,7 +59675,7 @@ } } ], - "path": "/api/crowd-control/v1/me/tasks/{task_id}/complete", + "path": "/api/crowd-control/v2/tasks/{task_id}/authorizations", "pathParameters": [ "task_id" ], @@ -41700,22 +59684,15 @@ "contentTypes": [ "application/json" ], - "required": false, + "required": true, "schema": { "application/json": { - "anyOf": [ - { - "$ref": "#/components/schemas/TaskLifecycleActionRequest" - }, - { - "type": "null" - } - ] + "$ref": "#/components/schemas/EgoTaskAuthorizationCreate" } } }, "responses": { - "200": { + "201": { "contentTypes": [ "application/json" ], @@ -41740,19 +59717,19 @@ }, "security": null, "source": { - "rawPath": "/v1/me/tasks/{task_id}/complete", + "rawPath": "/v2/tasks/{task_id}/authorizations", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Complete My Task", + "summary": "Confirm Task Authorization", "tags": [ - "tasks" + "ego-v2" ] }, - "tasksGet": { - "description": "Get My Task", + "catalog": { + "description": "Read a task catalog projection using the occupations contract", "httpMethod": "GET", - "operationId": "get_my_task_v1_me_tasks__task_id__get", + "operationId": "get_task_catalog_projection_v2_tasks__task_id__catalog_get", "parameters": [ { "description": null, @@ -41812,7 +59789,7 @@ } } ], - "path": "/api/crowd-control/v1/me/tasks/{task_id}", + "path": "/api/crowd-control/v2/tasks/{task_id}/catalog", "pathParameters": [ "task_id" ], @@ -41844,29 +59821,20 @@ }, "security": null, "source": { - "rawPath": "/v1/me/tasks/{task_id}", + "rawPath": "/v2/tasks/{task_id}/catalog", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Get My Task", + "summary": "Read a task catalog projection using the occupations contract", "tags": [ - "tasks" + "ego-v2" ] }, - "tasksStart": { - "description": "Start My Task", + "create": { + "description": "Create Task", "httpMethod": "POST", - "operationId": "start_my_task_v1_me_tasks__task_id__start_post", + "operationId": "create_task_v2_tasks_post", "parameters": [ - { - "description": null, - "location": "path", - "name": "task_id", - "required": true, - "schema": { - "type": "string" - } - }, { "description": null, "location": "header", @@ -41916,31 +59884,22 @@ } } ], - "path": "/api/crowd-control/v1/me/tasks/{task_id}/start", - "pathParameters": [ - "task_id" - ], + "path": "/api/crowd-control/v2/tasks", + "pathParameters": [], "queryParameters": [], "requestBody": { "contentTypes": [ "application/json" ], - "required": false, + "required": true, "schema": { "application/json": { - "anyOf": [ - { - "$ref": "#/components/schemas/TaskLifecycleActionRequest" - }, - { - "type": "null" - } - ] + "$ref": "#/components/schemas/EgoTaskCreate" } } }, "responses": { - "200": { + "201": { "contentTypes": [ "application/json" ], @@ -41965,20 +59924,29 @@ }, "security": null, "source": { - "rawPath": "/v1/me/tasks/{task_id}/start", + "rawPath": "/v2/tasks", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Start My Task", + "summary": "Create Task", "tags": [ - "tasks" + "ego-v2" ] }, - "tasksSummary": { - "description": "Get My Task Summary", - "httpMethod": "GET", - "operationId": "get_my_task_summary_v1_me_tasks_summary_get", + "descriptionUpdate": { + "description": "Update My Task Description", + "httpMethod": "PATCH", + "operationId": "update_my_task_description_v2_tasks__task_id__description_patch", "parameters": [ + { + "description": null, + "location": "path", + "name": "task_id", + "required": true, + "schema": { + "type": "string" + } + }, { "description": null, "location": "header", @@ -42028,10 +59996,22 @@ } } ], - "path": "/api/crowd-control/v1/me/tasks/summary", - "pathParameters": [], + "path": "/api/crowd-control/v2/tasks/{task_id}/description", + "pathParameters": [ + "task_id" + ], "queryParameters": [], - "requestBody": null, + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/EgoTaskDescriptionUpdate" + } + } + }, "responses": { "200": { "contentTypes": [ @@ -42058,27 +60038,26 @@ }, "security": null, "source": { - "rawPath": "/v1/me/tasks/summary", + "rawPath": "/v2/tasks/{task_id}/description", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Get My Task Summary", + "summary": "Update My Task Description", "tags": [ - "tasks" + "ego-v2" ] }, - "uploadScope": { - "description": "Get Current Upload Scope", + "detail": { + "description": "Read an owner task using the canonical versioned envelope", "httpMethod": "GET", - "operationId": "get_current_upload_scope_v1_me_uploadScope_get", + "operationId": "get_my_task_v2_tasks__task_id__get", "parameters": [ { "description": null, - "location": "query", - "name": "deviceId", - "required": false, + "location": "path", + "name": "task_id", + "required": true, "schema": { - "default": "", "type": "string" } }, @@ -42131,11 +60110,11 @@ } } ], - "path": "/api/crowd-control/v1/me/uploadScope", - "pathParameters": [], - "queryParameters": [ - "deviceId" + "path": "/api/crowd-control/v2/tasks/{task_id}", + "pathParameters": [ + "task_id" ], + "queryParameters": [], "requestBody": null, "responses": { "200": { @@ -42145,7 +60124,7 @@ "description": "Successful Response", "schema": { "application/json": { - "type": "object" + "$ref": "#/components/schemas/EgoTaskReadbackResponse" } } }, @@ -42163,40 +60142,29 @@ }, "security": null, "source": { - "rawPath": "/v1/me/uploadScope", + "rawPath": "/v2/tasks/{task_id}", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Get Current Upload Scope", + "summary": "Read an owner task using the canonical versioned envelope", "tags": [ - "devices" + "ego-v2" ] }, - "uploadStatus": { - "description": "List My Upload Status", - "httpMethod": "GET", - "operationId": "list_my_upload_status_v1_me_upload_status_get", + "deviceCapabilityReport": { + "description": "Create Device Capability Report", + "httpMethod": "POST", + "operationId": "create_device_capability_report_v2_tasks__task_id__device_capability_report_post", "parameters": [ { "description": null, - "location": "query", + "location": "path", "name": "task_id", - "required": false, + "required": true, "schema": { - "default": "", "type": "string" } }, - { - "description": null, - "location": "query", - "name": "limit", - "required": false, - "schema": { - "default": 100, - "type": "integer" - } - }, { "description": null, "location": "header", @@ -42246,15 +60214,24 @@ } } ], - "path": "/api/crowd-control/v1/me/upload-status", - "pathParameters": [], - "queryParameters": [ - "task_id", - "limit" + "path": "/api/crowd-control/v2/tasks/{task_id}/device-capability-report", + "pathParameters": [ + "task_id" ], - "requestBody": null, + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/EgoDeviceCapabilityReportCreate" + } + } + }, "responses": { - "200": { + "201": { "contentTypes": [ "application/json" ], @@ -42279,24 +60256,29 @@ }, "security": null, "source": { - "rawPath": "/v1/me/upload-status", + "rawPath": "/v2/tasks/{task_id}/device-capability-report", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "List My Upload Status", + "summary": "Create Device Capability Report", "tags": [ - "sessions" + "ego-v2" ] - } - } - }, - "public": { - "methods": { - "egoDatasetCheckoutIntents": { - "description": "Create public EGO dataset checkout intent", + }, + "executions": { + "description": "Create Full Execution", "httpMethod": "POST", - "operationId": "create_public_ego_dataset_checkout_intent_v1_public_ego_dataset_checkout_intents_post", + "operationId": "create_full_execution_v2_tasks__task_id__executions_post", "parameters": [ + { + "description": null, + "location": "path", + "name": "task_id", + "required": true, + "schema": { + "type": "string" + } + }, { "description": null, "location": "header", @@ -42346,8 +60328,10 @@ } } ], - "path": "/api/crowd-control/v1/public/ego-dataset/checkout-intents", - "pathParameters": [], + "path": "/api/crowd-control/v2/tasks/{task_id}/executions", + "pathParameters": [ + "task_id" + ], "queryParameters": [], "requestBody": { "contentTypes": [ @@ -42356,19 +60340,19 @@ "required": true, "schema": { "application/json": { - "$ref": "#/components/schemas/PublicEgoDatasetCheckoutIntentRequest" + "$ref": "#/components/schemas/EgoFullExecutionCreate" } } }, "responses": { - "200": { + "201": { "contentTypes": [ "application/json" ], "description": "Successful Response", "schema": { "application/json": { - "$ref": "#/components/schemas/PublicEgoDatasetCheckoutIntentRead" + "type": "object" } } }, @@ -42386,20 +60370,40 @@ }, "security": null, "source": { - "rawPath": "/v1/public/ego-dataset/checkout-intents", + "rawPath": "/v2/tasks/{task_id}/executions", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Create public EGO dataset checkout intent", + "summary": "Create Full Execution", "tags": [ - "catalog" + "ego-v2" ] }, - "egoDatasetCustomRequests": { - "description": "Create public EGO dataset custom request", - "httpMethod": "POST", - "operationId": "create_public_ego_dataset_custom_request_v1_public_ego_dataset_custom_requests_post", + "list": { + "description": "List My Tasks", + "httpMethod": "GET", + "operationId": "list_my_tasks_v2_tasks_get", "parameters": [ + { + "description": null, + "location": "query", + "name": "status", + "required": false, + "schema": { + "default": "", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "limit", + "required": false, + "schema": { + "default": 20, + "type": "integer" + } + }, { "description": null, "location": "header", @@ -42449,20 +60453,13 @@ } } ], - "path": "/api/crowd-control/v1/public/ego-dataset/custom-requests", + "path": "/api/crowd-control/v2/tasks", "pathParameters": [], - "queryParameters": [], - "requestBody": { - "contentTypes": [ - "application/json" - ], - "required": true, - "schema": { - "application/json": { - "$ref": "#/components/schemas/PublicEgoDatasetCustomRequestCreate" - } - } - }, + "queryParameters": [ + "status", + "limit" + ], + "requestBody": null, "responses": { "200": { "contentTypes": [ @@ -42471,7 +60468,7 @@ "description": "Successful Response", "schema": { "application/json": { - "$ref": "#/components/schemas/PublicEgoDatasetCustomRequestRead" + "type": "object" } } }, @@ -42489,20 +60486,29 @@ }, "security": null, "source": { - "rawPath": "/v1/public/ego-dataset/custom-requests", + "rawPath": "/v2/tasks", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Create public EGO dataset custom request", + "summary": "List My Tasks", "tags": [ - "catalog" + "ego-v2" ] }, - "egoDatasetFoundryApplications": { - "description": "Create EGO foundry application", + "recordingLeaseRefresh": { + "description": "Refresh My Recording Lease", "httpMethod": "POST", - "operationId": "create_public_ego_dataset_foundry_application_v1_public_ego_dataset_foundry_applications_post", + "operationId": "refresh_my_recording_lease_v2_tasks__task_id__recording_lease_refresh_post", "parameters": [ + { + "description": null, + "location": "path", + "name": "task_id", + "required": true, + "schema": { + "type": "string" + } + }, { "description": null, "location": "header", @@ -42552,20 +60558,12 @@ } } ], - "path": "/api/crowd-control/v1/public/ego-dataset/foundry-applications", - "pathParameters": [], + "path": "/api/crowd-control/v2/tasks/{task_id}/recording-lease/refresh", + "pathParameters": [ + "task_id" + ], "queryParameters": [], - "requestBody": { - "contentTypes": [ - "application/json" - ], - "required": true, - "schema": { - "application/json": { - "$ref": "#/components/schemas/PublicEgoDatasetFoundryApplicationCreate" - } - } - }, + "requestBody": null, "responses": { "200": { "contentTypes": [ @@ -42574,7 +60572,7 @@ "description": "Successful Response", "schema": { "application/json": { - "$ref": "#/components/schemas/PublicEgoDatasetFoundryApplicationRead" + "type": "object" } } }, @@ -42592,78 +60590,110 @@ }, "security": null, "source": { - "rawPath": "/v1/public/ego-dataset/foundry-applications", + "rawPath": "/v2/tasks/{task_id}/recording-lease/refresh", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Create EGO foundry application", + "summary": "Refresh My Recording Lease", "tags": [ - "catalog" + "ego-v2" ] }, - "egoDatasetFoundryApplicationsStats": { - "description": "Get EGO foundry application aggregate stats", - "httpMethod": "GET", - "operationId": "get_public_ego_dataset_foundry_application_stats_v1_public_ego_dataset_foundry_applications_stats_get", - "parameters": [], - "path": "/api/crowd-control/v1/public/ego-dataset/foundry-applications/stats", - "pathParameters": [], - "queryParameters": [], - "requestBody": null, - "responses": { - "200": { - "contentTypes": [ - "application/json" - ], - "description": "Successful Response", - "schema": { - "application/json": { - "$ref": "#/components/schemas/PublicEgoDatasetFoundryStatsRead" - } - } - } - }, - "security": null, - "source": { - "rawPath": "/v1/public/ego-dataset/foundry-applications/stats", - "service": "crowd", - "servicePath": "/api/crowd-control" - }, - "summary": "Get EGO foundry application aggregate stats", - "tags": [ - "catalog" - ] - }, - "egoDatasetOrders": { - "description": "Get public EGO dataset order detail", - "httpMethod": "GET", - "operationId": "get_public_ego_dataset_order_detail_v1_public_ego_dataset_orders__order_id__get", + "sampleExecutions": { + "description": "Create Sample Execution", + "httpMethod": "POST", + "operationId": "create_sample_execution_v2_tasks__task_id__sample_executions_post", "parameters": [ { "description": null, "location": "path", - "name": "order_id", + "name": "task_id", "required": true, "schema": { "type": "string" } + }, + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + ], + "path": "/api/crowd-control/v2/tasks/{task_id}/sample-executions", + "pathParameters": [ + "task_id" + ], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": false, + "schema": { + "application/json": { + "anyOf": [ + { + "$ref": "#/components/schemas/EgoExecutionCreate" + }, + { + "type": "null" + } + ] + } } - ], - "path": "/api/crowd-control/v1/public/ego-dataset/orders/{order_id}", - "pathParameters": [ - "order_id" - ], - "queryParameters": [], - "requestBody": null, + }, "responses": { - "200": { + "201": { "contentTypes": [ "application/json" ], "description": "Successful Response", "schema": { "application/json": { - "$ref": "#/components/schemas/PublicEgoDatasetOrderRead" + "type": "object" } } }, @@ -42681,33 +60711,81 @@ }, "security": null, "source": { - "rawPath": "/v1/public/ego-dataset/orders/{order_id}", + "rawPath": "/v2/tasks/{task_id}/sample-executions", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Get public EGO dataset order detail", + "summary": "Create Sample Execution", "tags": [ - "catalog" + "ego-v2" ] }, - "egoDatasetOrdersPaymentCallback": { - "description": "Record public EGO dataset payment callback", - "httpMethod": "POST", - "operationId": "record_public_ego_dataset_payment_callback_v1_public_ego_dataset_orders__order_id__payment_callback_post", + "setupUpdate": { + "description": "Update My Task Setup", + "httpMethod": "PATCH", + "operationId": "update_my_task_setup_v2_tasks__task_id__setup_patch", "parameters": [ { "description": null, "location": "path", - "name": "order_id", + "name": "task_id", "required": true, "schema": { "type": "string" } + }, + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } } ], - "path": "/api/crowd-control/v1/public/ego-dataset/orders/{order_id}/payment-callback", + "path": "/api/crowd-control/v2/tasks/{task_id}/setup", "pathParameters": [ - "order_id" + "task_id" ], "queryParameters": [], "requestBody": { @@ -42717,7 +60795,7 @@ "required": true, "schema": { "application/json": { - "$ref": "#/components/schemas/PublicEgoDatasetPaymentCallbackRequest" + "$ref": "#/components/schemas/EgoTaskCreate" } } }, @@ -42729,7 +60807,7 @@ "description": "Successful Response", "schema": { "application/json": { - "$ref": "#/components/schemas/PublicEgoDatasetOrderRead" + "type": "object" } } }, @@ -42747,33 +60825,81 @@ }, "security": null, "source": { - "rawPath": "/v1/public/ego-dataset/orders/{order_id}/payment-callback", + "rawPath": "/v2/tasks/{task_id}/setup", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Record public EGO dataset payment callback", + "summary": "Update My Task Setup", "tags": [ - "catalog" + "ego-v2" ] }, - "egoDatasetOrdersWechatMiniPaymentLink": { - "description": "Get WeChat Mini Program payment link for a public EGO dataset order", - "httpMethod": "GET", - "operationId": "get_public_ego_dataset_wechat_mini_payment_link_v1_public_ego_dataset_orders__order_id__wechat_mini_payment_link_get", + "submitQualityReview": { + "description": "Submit Task Quality Review", + "httpMethod": "POST", + "operationId": "submit_task_quality_review_v2_tasks__task_id__submit_quality_review_post", "parameters": [ { "description": null, "location": "path", - "name": "order_id", + "name": "task_id", "required": true, "schema": { "type": "string" } + }, + { + "description": null, + "location": "header", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } } ], - "path": "/api/crowd-control/v1/public/ego-dataset/orders/{order_id}/wechat-mini-payment-link", + "path": "/api/crowd-control/v2/tasks/{task_id}/submit-quality-review", "pathParameters": [ - "order_id" + "task_id" ], "queryParameters": [], "requestBody": null, @@ -42785,7 +60911,7 @@ "description": "Successful Response", "schema": { "application/json": { - "$ref": "#/components/schemas/PublicEgoDatasetWechatMiniPaymentLinkRead" + "type": "object" } } }, @@ -42803,24 +60929,24 @@ }, "security": null, "source": { - "rawPath": "/v1/public/ego-dataset/orders/{order_id}/wechat-mini-payment-link", + "rawPath": "/v2/tasks/{task_id}/submit-quality-review", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Get WeChat Mini Program payment link for a public EGO dataset order", + "summary": "Submit Task Quality Review", "tags": [ - "catalog" + "ego-v2" ] }, - "egoDatasetOrdersWechatMiniPaymentPrepare": { - "description": "Prepare WeChat Mini Program payment for a public EGO dataset order", + "submitSampleReview": { + "description": "Submit Sample Review", "httpMethod": "POST", - "operationId": "prepare_public_ego_dataset_wechat_mini_payment_v1_public_ego_dataset_orders__order_id__wechat_mini_payment_prepare_post", + "operationId": "submit_sample_review_v2_tasks__task_id__submit_sample_review_post", "parameters": [ { "description": null, "location": "path", - "name": "order_id", + "name": "task_id", "required": true, "schema": { "type": "string" @@ -42875,22 +61001,12 @@ } } ], - "path": "/api/crowd-control/v1/public/ego-dataset/orders/{order_id}/wechat-mini-payment-prepare", + "path": "/api/crowd-control/v2/tasks/{task_id}/submit-sample-review", "pathParameters": [ - "order_id" + "task_id" ], "queryParameters": [], - "requestBody": { - "contentTypes": [ - "application/json" - ], - "required": true, - "schema": { - "application/json": { - "$ref": "#/components/schemas/PublicEgoDatasetWechatMiniPaymentPrepareRequest" - } - } - }, + "requestBody": null, "responses": { "200": { "contentTypes": [ @@ -42899,7 +61015,7 @@ "description": "Successful Response", "schema": { "application/json": { - "$ref": "#/components/schemas/PublicEgoDatasetWechatMiniPaymentPrepareRead" + "type": "object" } } }, @@ -42917,51 +61033,33 @@ }, "security": null, "source": { - "rawPath": "/v1/public/ego-dataset/orders/{order_id}/wechat-mini-payment-prepare", + "rawPath": "/v2/tasks/{task_id}/submit-sample-review", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Prepare WeChat Mini Program payment for a public EGO dataset order", + "summary": "Submit Sample Review", "tags": [ - "catalog" + "ego-v2" ] - }, - "egoDatasetPaymentsWechatNotify": { - "description": "Handle WeChat Pay async notification for public EGO dataset orders", + } + } + }, + "videoAssets": { + "methods": { + "completeUpload": { + "description": "Complete Upload", "httpMethod": "POST", - "operationId": "handle_public_ego_dataset_wechat_notify_v1_public_ego_dataset_payments_wechat_notify_post", - "parameters": [], - "path": "/api/crowd-control/v1/public/ego-dataset/payments/wechat/notify", - "pathParameters": [], - "queryParameters": [], - "requestBody": null, - "responses": { - "200": { - "contentTypes": [ - "application/json" - ], - "description": "Successful Response", + "operationId": "complete_upload_v2_video_assets__asset_id__complete_upload_post", + "parameters": [ + { + "description": null, + "location": "path", + "name": "asset_id", + "required": true, "schema": { - "application/json": {} + "type": "string" } - } - }, - "security": null, - "source": { - "rawPath": "/v1/public/ego-dataset/payments/wechat/notify", - "service": "crowd", - "servicePath": "/api/crowd-control" - }, - "summary": "Handle WeChat Pay async notification for public EGO dataset orders", - "tags": [ - "catalog" - ] - }, - "egoDatasetQuote": { - "description": "Create public EGO dataset quote", - "httpMethod": "POST", - "operationId": "create_public_ego_dataset_quote_v1_public_ego_dataset_quote_post", - "parameters": [ + }, { "description": null, "location": "header", @@ -43011,8 +61109,10 @@ } } ], - "path": "/api/crowd-control/v1/public/ego-dataset/quote", - "pathParameters": [], + "path": "/api/crowd-control/v2/video-assets/{asset_id}/complete-upload", + "pathParameters": [ + "asset_id" + ], "queryParameters": [], "requestBody": { "contentTypes": [ @@ -43021,7 +61121,7 @@ "required": true, "schema": { "application/json": { - "$ref": "#/components/schemas/PublicEgoDatasetQuoteRequest" + "$ref": "#/components/schemas/EgoCompleteUploadRequest" } } }, @@ -43033,7 +61133,7 @@ "description": "Successful Response", "schema": { "application/json": { - "$ref": "#/components/schemas/PublicEgoDatasetQuoteRead" + "type": "object" } } }, @@ -43051,156 +61151,210 @@ }, "security": null, "source": { - "rawPath": "/v1/public/ego-dataset/quote", + "rawPath": "/v2/video-assets/{asset_id}/complete-upload", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Create public EGO dataset quote", + "summary": "Complete Upload", "tags": [ - "catalog" + "ego-v2" ] }, - "egoDatasetSessions": { - "description": "List public EGO dataset sessions", + "processedDerivatives": { + "description": "List Processed Derivatives", "httpMethod": "GET", - "operationId": "list_public_ego_dataset_sessions_v1_public_ego_dataset_sessions_get", + "operationId": "list_processed_derivatives_v2_video_assets__asset_id__processed_derivatives_get", "parameters": [ { - "description": "自然语言搜索词。会匹配语义目录中的 caption、tags、objects、action labels、searchable text,以及 camera_mode / model_id 等关键语义元数据。", - "location": "query", - "name": "q", - "required": false, + "description": null, + "location": "path", + "name": "asset_id", + "required": true, "schema": { - "default": "", - "description": "自然语言搜索词。会匹配语义目录中的 caption、tags、objects、action labels、searchable text,以及 camera_mode / model_id 等关键语义元数据。", "type": "string" } }, { - "description": "按场景过滤。", + "description": null, "location": "query", - "name": "scene", + "name": "path", "required": false, "schema": { "default": "", - "description": "按场景过滤。", "type": "string" } }, { - "description": "按语义标签过滤。", - "location": "query", - "name": "tag", + "description": null, + "location": "header", + "name": "X-User-One-Id", "required": false, "schema": { - "default": "", - "description": "按语义标签过滤。", - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, { - "description": "按数据层级过滤:basic / enhanced / professional。", - "location": "query", - "name": "dataTier", + "description": null, + "location": "header", + "name": "X-User-Id", "required": false, "schema": { - "default": "", - "description": "按数据层级过滤:basic / enhanced / professional。", - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, { - "description": "按采集设备等级过滤:consumer / assisted / pro。", - "location": "query", - "name": "deviceGrade", + "description": null, + "location": "header", + "name": "Authorization", "required": false, "schema": { - "default": "", - "description": "按采集设备等级过滤:consumer / assisted / pro。", - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } - }, - { - "description": "按质检状态过滤。", - "location": "query", - "name": "qualityStatus", - "required": false, + } + ], + "path": "/api/crowd-control/v2/video-assets/{asset_id}/processed-derivatives", + "pathParameters": [ + "asset_id" + ], + "queryParameters": [ + "path" + ], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", "schema": { - "default": "", - "description": "按质检状态过滤。", - "type": "string" + "application/json": { + "type": "object" + } } }, - { - "description": "按边缘节点在线状态过滤;只影响 session 所属节点的可达性视图,不改变命中依据。", - "location": "query", - "name": "edgeLivenessStatus", - "required": false, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", "schema": { - "default": "", - "description": "按边缘节点在线状态过滤;只影响 session 所属节点的可达性视图,不改变命中依据。", - "type": "string" + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } } - }, + } + }, + "security": null, + "source": { + "rawPath": "/v2/video-assets/{asset_id}/processed-derivatives", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "List Processed Derivatives", + "tags": [ + "ego-v2" + ] + }, + "processedDerivativesRegister": { + "description": "Register Processed Derivative", + "httpMethod": "POST", + "operationId": "register_processed_derivative_v2_video_assets__asset_id__processed_derivatives_register_post", + "parameters": [ { - "description": "按采集时间窗口过滤,支持 all / 7d / 30d / 90d / 365d。", - "location": "query", - "name": "timeRange", - "required": false, + "description": null, + "location": "path", + "name": "asset_id", + "required": true, "schema": { - "default": "all", - "description": "按采集时间窗口过滤,支持 all / 7d / 30d / 90d / 365d。", "type": "string" } }, { - "description": "排序方式。match 优先按最佳语义匹配分数排序。", - "location": "query", - "name": "sortBy", + "description": null, + "location": "header", + "name": "X-User-One-Id", "required": false, "schema": { - "default": "match", - "description": "排序方式。match 优先按最佳语义匹配分数排序。", - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, { "description": null, - "location": "query", - "name": "page", + "location": "header", + "name": "X-User-Id", "required": false, "schema": { - "default": 1, - "type": "integer" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, { "description": null, - "location": "query", - "name": "pageSize", + "location": "header", + "name": "Authorization", "required": false, "schema": { - "default": 6, - "type": "integer" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } } ], - "path": "/api/crowd-control/v1/public/ego-dataset/sessions", - "pathParameters": [], - "queryParameters": [ - "q", - "scene", - "tag", - "dataTier", - "deviceGrade", - "qualityStatus", - "edgeLivenessStatus", - "timeRange", - "sortBy", - "page", - "pageSize" + "path": "/api/crowd-control/v2/video-assets/{asset_id}/processed-derivatives/register", + "pathParameters": [ + "asset_id" ], - "requestBody": null, + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/EgoProcessedDerivativeRegisterRequest" + } + } + }, "responses": { "200": { "contentTypes": [ @@ -43209,7 +61363,7 @@ "description": "Successful Response", "schema": { "application/json": { - "$ref": "#/components/schemas/PublicEgoDatasetListRead" + "type": "object" } } }, @@ -43227,24 +61381,24 @@ }, "security": null, "source": { - "rawPath": "/v1/public/ego-dataset/sessions", + "rawPath": "/v2/video-assets/{asset_id}/processed-derivatives/register", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "List public EGO dataset sessions", + "summary": "Register Processed Derivative", "tags": [ - "catalog" + "ego-v2" ] }, - "egoDatasetSessionsAssets": { - "description": "Get public EGO dataset preview asset", - "httpMethod": "GET", - "operationId": "get_public_ego_dataset_preview_asset_v1_public_ego_dataset_sessions__session_id__assets__asset_relpath__get", + "processedDerivativesUploadIntent": { + "description": "Create Processed Derivative Upload Intent", + "httpMethod": "POST", + "operationId": "create_processed_derivative_upload_intent_v2_video_assets__asset_id__processed_derivatives_upload_intent_post", "parameters": [ { "description": null, "location": "path", - "name": "session_id", + "name": "asset_id", "required": true, "schema": { "type": "string" @@ -43252,21 +61406,69 @@ }, { "description": null, - "location": "path", - "name": "asset_relpath", - "required": true, + "location": "header", + "name": "X-User-One-Id", + "required": false, "schema": { - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "Authorization", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } } ], - "path": "/api/crowd-control/v1/public/ego-dataset/sessions/{session_id}/assets/{asset_relpath}", + "path": "/api/crowd-control/v2/video-assets/{asset_id}/processed-derivatives/upload-intent", "pathParameters": [ - "session_id", - "asset_relpath" + "asset_id" ], "queryParameters": [], - "requestBody": null, + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/EgoProcessedDerivativeUploadIntentRequest" + } + } + }, "responses": { "200": { "contentTypes": [ @@ -43274,7 +61476,9 @@ ], "description": "Successful Response", "schema": { - "application/json": {} + "application/json": { + "type": "object" + } } }, "422": { @@ -43291,24 +61495,24 @@ }, "security": null, "source": { - "rawPath": "/v1/public/ego-dataset/sessions/{session_id}/assets/{asset_relpath}", + "rawPath": "/v2/video-assets/{asset_id}/processed-derivatives/upload-intent", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Get public EGO dataset preview asset", + "summary": "Create Processed Derivative Upload Intent", "tags": [ - "catalog" + "ego-v2" ] }, - "egoDatasetSessionsPreview": { - "description": "Get public EGO dataset preview", - "httpMethod": "GET", - "operationId": "get_public_ego_dataset_preview_v1_public_ego_dataset_sessions__session_id__preview_get", + "uploadCandidateAcceptance": { + "description": "Accept Upload Candidate", + "httpMethod": "POST", + "operationId": "accept_upload_candidate_v2_video_assets__asset_id__upload_candidate_acceptance_post", "parameters": [ { "description": null, "location": "path", - "name": "session_id", + "name": "asset_id", "required": true, "schema": { "type": "string" @@ -43363,12 +61567,22 @@ } } ], - "path": "/api/crowd-control/v1/public/ego-dataset/sessions/{session_id}/preview", + "path": "/api/crowd-control/v2/video-assets/{asset_id}/upload-candidate/acceptance", "pathParameters": [ - "session_id" + "asset_id" ], "queryParameters": [], - "requestBody": null, + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/EgoUploadCandidateAcceptanceRequest" + } + } + }, "responses": { "200": { "contentTypes": [ @@ -43377,7 +61591,7 @@ "description": "Successful Response", "schema": { "application/json": { - "$ref": "#/components/schemas/PublicEgoDatasetPreviewRead" + "type": "object" } } }, @@ -43395,118 +61609,163 @@ }, "security": null, "source": { - "rawPath": "/v1/public/ego-dataset/sessions/{session_id}/preview", + "rawPath": "/v2/video-assets/{asset_id}/upload-candidate/acceptance", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Get public EGO dataset preview", + "summary": "Accept Upload Candidate", "tags": [ - "catalog" + "ego-v2" ] - } - } - }, - "review": { - "methods": { - "queue": { - "description": "List Review Queue", - "httpMethod": "GET", - "operationId": "list_review_queue_v1_review_queue_get", + }, + "uploadCandidateDryRun": { + "description": "Dry Run Upload Candidate", + "httpMethod": "POST", + "operationId": "dry_run_upload_candidate_v2_video_assets__asset_id__upload_candidate_dry_run_post", "parameters": [ { "description": null, - "location": "query", - "name": "queue_status", - "required": false, + "location": "path", + "name": "asset_id", + "required": true, "schema": { - "default": "", "type": "string" } }, { "description": null, - "location": "query", - "name": "queue_reason", + "location": "header", + "name": "X-User-One-Id", "required": false, "schema": { - "default": "", - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, { "description": null, - "location": "query", - "name": "priority", + "location": "header", + "name": "X-User-Id", "required": false, "schema": { - "default": "", - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, { "description": null, - "location": "query", - "name": "required_review_tier", + "location": "header", + "name": "Authorization", "required": false, "schema": { - "default": "", - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } - }, - { - "description": null, - "location": "query", - "name": "specialist_lane", - "required": false, - "schema": { - "default": "", - "type": "string" + } + ], + "path": "/api/crowd-control/v2/video-assets/{asset_id}/upload-candidate/dry-run", + "pathParameters": [ + "asset_id" + ], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/EgoUploadCandidateDryRunRequest" } - }, - { - "description": null, - "location": "query", - "name": "risk_band", - "required": false, + } + }, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", "schema": { - "default": "", - "type": "string" + "application/json": { + "type": "object" + } } }, - { - "description": null, - "location": "query", - "name": "limit", - "required": false, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", "schema": { - "default": 100, - "type": "integer" + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } } - }, + } + }, + "security": null, + "source": { + "rawPath": "/v2/video-assets/{asset_id}/upload-candidate/dry-run", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Dry Run Upload Candidate", + "tags": [ + "ego-v2" + ] + }, + "uploadCandidateLedger": { + "description": "Get Upload Candidate Ledger", + "httpMethod": "GET", + "operationId": "get_upload_candidate_ledger_v2_video_assets__asset_id__upload_candidate_ledger_get", + "parameters": [ { "description": null, - "location": "query", - "name": "include_artifacts", - "required": false, + "location": "path", + "name": "asset_id", + "required": true, "schema": { - "default": false, - "type": "boolean" + "type": "string" } }, { "description": null, - "location": "query", - "name": "include_full_metadata", + "location": "header", + "name": "X-User-One-Id", "required": false, "schema": { - "default": false, - "type": "boolean" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, { "description": null, "location": "header", - "name": "X-Admin-Token", + "name": "X-User-Id", "required": false, "schema": { "anyOf": [ @@ -43536,19 +61795,11 @@ } } ], - "path": "/api/crowd-control/v1/review/queue", - "pathParameters": [], - "queryParameters": [ - "queue_status", - "queue_reason", - "priority", - "required_review_tier", - "specialist_lane", - "risk_band", - "limit", - "include_artifacts", - "include_full_metadata" + "path": "/api/crowd-control/v2/video-assets/{asset_id}/upload-candidate/ledger", + "pathParameters": [ + "asset_id" ], + "queryParameters": [], "requestBody": null, "responses": { "200": { @@ -43576,170 +61827,268 @@ }, "security": null, "source": { - "rawPath": "/v1/review/queue", + "rawPath": "/v2/video-assets/{asset_id}/upload-candidate/ledger", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "List Review Queue", + "summary": "Get Upload Candidate Ledger", "tags": [ - "review" + "ego-v2" ] }, - "sessions": { - "description": "List Review Sessions", - "httpMethod": "GET", - "operationId": "list_review_sessions_v1_review_sessions_get", + "uploadIntent": { + "description": "Create Upload Intent", + "httpMethod": "POST", + "operationId": "create_upload_intent_v2_video_assets__asset_id__upload_intent_post", "parameters": [ { "description": null, - "location": "query", - "name": "task_id", - "required": false, - "schema": { - "default": "", - "type": "string" - } - }, - { - "description": null, - "location": "query", - "name": "review_status", - "required": false, + "location": "path", + "name": "asset_id", + "required": true, "schema": { - "default": "", "type": "string" } }, { "description": null, - "location": "query", - "name": "queue_status", + "location": "header", + "name": "X-User-One-Id", "required": false, "schema": { - "default": "", - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, { "description": null, - "location": "query", - "name": "quality_status", + "location": "header", + "name": "X-User-Id", "required": false, "schema": { - "default": "", - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, { "description": null, - "location": "query", - "name": "reward_status", + "location": "header", + "name": "Authorization", "required": false, "schema": { - "default": "", - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } - }, - { - "description": null, - "location": "query", - "name": "queue_reason", - "required": false, - "schema": { - "default": "", - "type": "string" + } + ], + "path": "/api/crowd-control/v2/video-assets/{asset_id}/upload-intent", + "pathParameters": [ + "asset_id" + ], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": false, + "schema": { + "application/json": { + "anyOf": [ + { + "$ref": "#/components/schemas/EgoUploadIntentRequest" + }, + { + "type": "null" + } + ] } - }, - { - "description": null, - "location": "query", - "name": "priority", - "required": false, + } + }, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", "schema": { - "default": "", - "type": "string" + "application/json": { + "type": "object" + } } }, - { - "description": null, - "location": "query", - "name": "required_review_tier", - "required": false, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", "schema": { - "default": "", - "type": "string" + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } } - }, + } + }, + "security": null, + "source": { + "rawPath": "/v2/video-assets/{asset_id}/upload-intent", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Create Upload Intent", + "tags": [ + "ego-v2" + ] + } + } + }, + "wallet": { + "methods": { + "inviteAcceptance": { + "description": "Accept Invite Link", + "httpMethod": "POST", + "operationId": "accept_invite_link_v2_wallet_invite_acceptance_post", + "parameters": [ { "description": null, - "location": "query", - "name": "specialist_lane", + "location": "header", + "name": "Authorization", "required": false, "schema": { - "default": "", - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, { "description": null, - "location": "query", - "name": "risk_band", + "location": "header", + "name": "X-User-One-Id", "required": false, "schema": { - "default": "", - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, { "description": null, - "location": "query", - "name": "ready_for_review", + "location": "header", + "name": "X-User-Id", "required": false, "schema": { "anyOf": [ { - "type": "boolean" + "type": "string" }, { "type": "null" } ] } - }, - { - "description": null, - "location": "query", - "name": "limit", - "required": false, + } + ], + "path": "/api/crowd-control/v2/wallet/invite-acceptance", + "pathParameters": [], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/EgoInviteAcceptRequest" + } + } + }, + "responses": { + "201": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", "schema": { - "default": 100, - "type": "integer" + "application/json": { + "type": "object" + } } }, - { - "description": null, - "location": "query", - "name": "include_artifacts", - "required": false, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", "schema": { - "default": false, - "type": "boolean" + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } } - }, + } + }, + "security": null, + "source": { + "rawPath": "/v2/wallet/invite-acceptance", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Accept Invite Link", + "tags": [ + "ego-v2" + ] + }, + "inviteLink": { + "description": "Get My Invite Link", + "httpMethod": "GET", + "operationId": "get_my_invite_link_v2_wallet_invite_link_get", + "parameters": [ { "description": null, - "location": "query", - "name": "include_full_metadata", + "location": "header", + "name": "X-User-One-Id", "required": false, "schema": { - "default": false, - "type": "boolean" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, { "description": null, "location": "header", - "name": "X-Admin-Token", + "name": "X-User-Id", "required": false, "schema": { "anyOf": [ @@ -43769,24 +62118,9 @@ } } ], - "path": "/api/crowd-control/v1/review/sessions", + "path": "/api/crowd-control/v2/wallet/invite-link", "pathParameters": [], - "queryParameters": [ - "task_id", - "review_status", - "queue_status", - "quality_status", - "reward_status", - "queue_reason", - "priority", - "required_review_tier", - "specialist_lane", - "risk_band", - "ready_for_review", - "limit", - "include_artifacts", - "include_full_metadata" - ], + "queryParameters": [], "requestBody": null, "responses": { "200": { @@ -43814,24 +62148,40 @@ }, "security": null, "source": { - "rawPath": "/v1/review/sessions", + "rawPath": "/v2/wallet/invite-link", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "List Review Sessions", + "summary": "Get My Invite Link", "tags": [ - "review" + "ego-v2" ] }, - "sessionsBatchDecision": { - "description": "Review Sessions Batch Decision", + "inviteLinks": { + "description": "Create Invite Link", "httpMethod": "POST", - "operationId": "review_sessions_batch_decision_v1_review_sessions_batch_decision_post", + "operationId": "create_invite_link_v2_wallet_invite_links_post", "parameters": [ { "description": null, "location": "header", - "name": "X-Admin-Token", + "name": "X-User-One-Id", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "header", + "name": "X-User-Id", "required": false, "schema": { "anyOf": [ @@ -43861,22 +62211,29 @@ } } ], - "path": "/api/crowd-control/v1/review/sessions/batch-decision", + "path": "/api/crowd-control/v2/wallet/invite-links", "pathParameters": [], "queryParameters": [], "requestBody": { "contentTypes": [ "application/json" ], - "required": true, + "required": false, "schema": { "application/json": { - "$ref": "#/components/schemas/BatchReviewDecisionRequest" + "anyOf": [ + { + "$ref": "#/components/schemas/EgoInviteLinkCreate" + }, + { + "type": "null" + } + ] } } }, "responses": { - "200": { + "201": { "contentTypes": [ "application/json" ], @@ -43901,33 +62258,40 @@ }, "security": null, "source": { - "rawPath": "/v1/review/sessions/batch-decision", + "rawPath": "/v2/wallet/invite-links", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Review Sessions Batch Decision", + "summary": "Create Invite Link", "tags": [ - "review" + "ego-v2" ] }, - "sessionsDecision": { - "description": "Review Session Decision", - "httpMethod": "POST", - "operationId": "review_session_decision_v1_review_sessions__session_id__decision_post", + "me": { + "description": "Get My Wallet", + "httpMethod": "GET", + "operationId": "get_my_wallet_v2_wallet_me_get", "parameters": [ { "description": null, - "location": "path", - "name": "session_id", - "required": true, + "location": "header", + "name": "X-User-One-Id", + "required": false, "schema": { - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, { "description": null, "location": "header", - "name": "X-Admin-Token", + "name": "X-User-Id", "required": false, "schema": { "anyOf": [ @@ -43957,22 +62321,10 @@ } } ], - "path": "/api/crowd-control/v1/review/sessions/{session_id}/decision", - "pathParameters": [ - "session_id" - ], + "path": "/api/crowd-control/v2/wallet/me", + "pathParameters": [], "queryParameters": [], - "requestBody": { - "contentTypes": [ - "application/json" - ], - "required": true, - "schema": { - "application/json": { - "$ref": "#/components/schemas/ReviewDecisionRequest" - } - } - }, + "requestBody": null, "responses": { "200": { "contentTypes": [ @@ -43999,33 +62351,40 @@ }, "security": null, "source": { - "rawPath": "/v1/review/sessions/{session_id}/decision", + "rawPath": "/v2/wallet/me", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Review Session Decision", + "summary": "Get My Wallet", "tags": [ - "review" + "ego-v2" ] }, - "sessionsGet": { - "description": "Get Review Session Detail", + "referralSummary": { + "description": "Get My Referral Summary", "httpMethod": "GET", - "operationId": "get_review_session_detail_v1_review_sessions__session_id__get", + "operationId": "get_my_referral_summary_v2_wallet_referral_summary_get", "parameters": [ { "description": null, - "location": "path", - "name": "session_id", - "required": true, + "location": "header", + "name": "X-User-One-Id", + "required": false, "schema": { - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, { "description": null, "location": "header", - "name": "X-Admin-Token", + "name": "X-User-Id", "required": false, "schema": { "anyOf": [ @@ -44055,10 +62414,8 @@ } } ], - "path": "/api/crowd-control/v1/review/sessions/{session_id}", - "pathParameters": [ - "session_id" - ], + "path": "/api/crowd-control/v2/wallet/referral-summary", + "pathParameters": [], "queryParameters": [], "requestBody": null, "responses": { @@ -44087,94 +62444,94 @@ }, "security": null, "source": { - "rawPath": "/v1/review/sessions/{session_id}", + "rawPath": "/v2/wallet/referral-summary", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Get Review Session Detail", + "summary": "Get My Referral Summary", "tags": [ - "review" + "ego-v2" ] }, - "summary": { - "description": "Get Review Summary", - "httpMethod": "GET", - "operationId": "get_review_summary_v1_review_summary_get", - "parameters": [ - { - "description": null, - "location": "query", - "name": "task_id", - "required": false, - "schema": { - "default": "", - "type": "string" - } - }, - { - "description": null, - "location": "query", - "name": "queue_status", - "required": false, - "schema": { - "default": "", - "type": "string" - } - }, - { - "description": null, - "location": "query", - "name": "queue_reason", - "required": false, - "schema": { - "default": "", - "type": "string" - } - }, - { - "description": null, - "location": "query", - "name": "priority", - "required": false, - "schema": { - "default": "", - "type": "string" + "referrals": { + "description": "Create Referral Relation", + "httpMethod": "POST", + "operationId": "create_referral_relation_v2_wallet_referrals_post", + "parameters": [], + "path": "/api/crowd-control/v2/wallet/referrals", + "pathParameters": [], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/EgoReferralCreate" } - }, - { - "description": null, - "location": "query", - "name": "required_review_tier", - "required": false, + } + }, + "responses": { + "201": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", "schema": { - "default": "", - "type": "string" + "application/json": { + "type": "object" + } } }, - { - "description": null, - "location": "query", - "name": "specialist_lane", - "required": false, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", "schema": { - "default": "", - "type": "string" + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } } - }, + } + }, + "security": null, + "source": { + "rawPath": "/v2/wallet/referrals", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Create Referral Relation", + "tags": [ + "ego-v2" + ] + }, + "withdrawalRequests": { + "description": "Create Withdrawal Request", + "httpMethod": "POST", + "operationId": "create_withdrawal_request_v2_wallet_withdrawal_requests_post", + "parameters": [ { "description": null, - "location": "query", - "name": "risk_band", + "location": "header", + "name": "X-User-One-Id", "required": false, "schema": { - "default": "", - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, { "description": null, "location": "header", - "name": "X-Admin-Token", + "name": "X-User-Id", "required": false, "schema": { "anyOf": [ @@ -44204,20 +62561,22 @@ } } ], - "path": "/api/crowd-control/v1/review/summary", + "path": "/api/crowd-control/v2/wallet/withdrawal-requests", "pathParameters": [], - "queryParameters": [ - "task_id", - "queue_status", - "queue_reason", - "priority", - "required_review_tier", - "specialist_lane", - "risk_band" - ], - "requestBody": null, + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/EgoWithdrawalCreate" + } + } + }, "responses": { - "200": { + "201": { "contentTypes": [ "application/json" ], @@ -44242,13 +62601,13 @@ }, "security": null, "source": { - "rawPath": "/v1/review/summary", + "rawPath": "/v2/wallet/withdrawal-requests", "service": "crowd", "servicePath": "/api/crowd-control" }, - "summary": "Get Review Summary", + "summary": "Create Withdrawal Request", "tags": [ - "review" + "ego-v2" ] } } @@ -44957,7 +63316,14 @@ "type": "object" }, "robotId": { - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "submissionId": { "anyOf": [ @@ -44972,7 +63338,6 @@ }, "required": [ "_id", - "robotId", "action" ], "type": "object" @@ -44994,7 +63359,7 @@ "type": "object" }, "type": { - "description": "put_robot_fields | put_robot_profile | put_config_version_fields | put_robot_version_spec_fields | create_config_version | upsert_sales_fact_monthly | upsert_price_fact_monthly | upsert_open_source_resource", + "description": "put_robot_fields | put_robot_profile | put_config_version_fields | put_robot_version_spec_fields | create_config_version | upsert_sales_fact_monthly | upsert_price_fact_monthly | upsert_open_source_resource | upsert_benchmark_definition | submit_benchmark_run | withdraw_benchmark_run | create_robot (only for POST /edits)", "type": "string" } }, @@ -45105,7 +63470,14 @@ ] }, "robotId": { - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "status": { "type": "string" @@ -45153,7 +63525,6 @@ }, "required": [ "_id", - "robotId", "status" ], "type": "object" @@ -45214,7 +63585,14 @@ ] }, "robotId": { - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "status": { "type": "string" @@ -45262,7 +63640,6 @@ }, "required": [ "_id", - "robotId", "status" ], "type": "object" @@ -45629,6 +64006,16 @@ }, "ReviewResponse": { "properties": { + "entityId": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, "status": { "type": "string" }, @@ -45740,6 +64127,15 @@ } ] }, + "benchmarkMethodProfile": { + "type": "object" + }, + "benchmarkPlacements": { + "items": { + "type": "object" + }, + "type": "array" + }, "brandName": { "anyOf": [ { @@ -45790,6 +64186,10 @@ } ] }, + "entryType": { + "default": "physical_robot", + "type": "string" + }, "evidenceSources": { "items": { "type": "object" @@ -46032,6 +64432,10 @@ } ] }, + "entryType": { + "default": "physical_robot", + "type": "string" + }, "hardwareConfigurations": { "items": { "$ref": "#/components/schemas/RobotHardwareConfigurationMetric" @@ -47067,6 +65471,296 @@ } } }, + "benchmarks": { + "methods": { + "definitions": { + "description": "Benchmark 定义列表", + "httpMethod": "GET", + "operationId": "list_benchmark_definitions_api_humanoid_chain_benchmarks_definitions_get", + "parameters": [ + { + "description": null, + "location": "query", + "name": "includeDeprecated", + "required": false, + "schema": { + "default": false, + "type": "boolean" + } + }, + { + "description": null, + "location": "query", + "name": "includeUnranked", + "required": false, + "schema": { + "default": false, + "type": "boolean" + } + } + ], + "path": "/api/humanoid-chain/benchmarks/definitions", + "pathParameters": [], + "queryParameters": [ + "includeDeprecated", + "includeUnranked" + ], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "$ref": "#/components/schemas/ApiResponse_dict_" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/api/humanoid-chain/benchmarks/definitions", + "service": "humanoid", + "servicePath": "/api/humanoid-chain" + }, + "summary": "Benchmark 定义列表", + "tags": [ + "benchmarks" + ] + }, + "leaderboards": { + "description": "Benchmark 能力评测榜", + "httpMethod": "GET", + "operationId": "get_benchmark_leaderboard_api_humanoid_chain_benchmarks_leaderboards_get", + "parameters": [ + { + "description": null, + "location": "query", + "name": "benchmarkKey", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "protocolVersion", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "query", + "name": "environment", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "query", + "name": "setting", + "required": false, + "schema": { + "default": "default", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "standardStatus", + "required": false, + "schema": { + "default": "standard", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "metricKey", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + { + "description": null, + "location": "query", + "name": "verification", + "required": false, + "schema": { + "default": "all_approved", + "type": "string" + } + }, + { + "description": null, + "location": "query", + "name": "page", + "required": false, + "schema": { + "default": 1, + "type": "integer" + } + }, + { + "description": null, + "location": "query", + "name": "pageSize", + "required": false, + "schema": { + "default": 20, + "type": "integer" + } + } + ], + "path": "/api/humanoid-chain/benchmarks/leaderboards", + "pathParameters": [], + "queryParameters": [ + "benchmarkKey", + "protocolVersion", + "environment", + "setting", + "standardStatus", + "metricKey", + "verification", + "page", + "pageSize" + ], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "$ref": "#/components/schemas/ApiResponse_dict_" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/api/humanoid-chain/benchmarks/leaderboards", + "service": "humanoid", + "servicePath": "/api/humanoid-chain" + }, + "summary": "Benchmark 能力评测榜", + "tags": [ + "benchmarks" + ] + }, + "robotsPlacements": { + "description": "机器人被收录的 Benchmark 榜单", + "httpMethod": "GET", + "operationId": "list_robot_benchmark_placements_api_humanoid_chain_benchmarks_robots__robotId__placements_get", + "parameters": [ + { + "description": null, + "location": "path", + "name": "robotId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "path": "/api/humanoid-chain/benchmarks/robots/{robotId}/placements", + "pathParameters": [ + "robotId" + ], + "queryParameters": [], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "$ref": "#/components/schemas/ApiResponse_dict_" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/api/humanoid-chain/benchmarks/robots/{robotId}/placements", + "service": "humanoid", + "servicePath": "/api/humanoid-chain" + }, + "summary": "机器人被收录的 Benchmark 榜单", + "tags": [ + "benchmarks" + ] + } + } + }, "diag": { "methods": { "db": { @@ -47170,6 +65864,60 @@ "edits" ] }, + "create": { + "description": "提交机器人创建申请", + "httpMethod": "POST", + "operationId": "submit_create_robot_api_humanoid_chain_edits_post", + "parameters": [], + "path": "/api/humanoid-chain/edits", + "pathParameters": [], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/SubmitEditRequest" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "$ref": "#/components/schemas/ApiResponse_SubmitEditResponse_" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/api/humanoid-chain/edits", + "service": "humanoid", + "servicePath": "/api/humanoid-chain" + }, + "summary": "提交机器人创建申请", + "tags": [ + "edits" + ] + }, "detail": { "description": "编辑申请详情", "httpMethod": "GET", @@ -48221,6 +66969,22 @@ ] } }, + { + "description": null, + "location": "query", + "name": "entryType", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, { "description": null, "location": "query", @@ -48248,6 +67012,7 @@ "q", "brand", "category", + "entryType", "page", "pageSize" ], @@ -49304,6 +68069,17 @@ ], "description": "当调用审批通过接口时为 true。" }, + "entityId": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "创建申请审批通过后返回的新车型 ID。" + }, "rejected": { "anyOf": [ { @@ -49408,13 +68184,19 @@ "description": "关联的编辑申请 ID。" }, "vehicleId": { - "description": "车型 ID。", - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "车型 ID;创建申请在审批前为空。" } }, "required": [ "_id", - "vehicleId", "action" ], "type": "object" @@ -49947,11 +68729,11 @@ "description": "一条可应用的变更操作。", "properties": { "body": { - "description": "该操作对应的 payload,结构与内部处理器一致。", + "description": "该操作对应的 payload,结构与内部处理器一致。put_raw_params 只接受 {hot_brand_vehicle: {...}};识别模型仓库字段必须使用 put_repo_doc/post_repo_docs。", "type": "object" }, "type": { - "description": "操作类型。当前支持:put_raw_params / put_repo_doc / post_repo_docs / sync_versions。", + "description": "操作类型。当前支持:put_raw_params / put_repo_doc / post_repo_docs / sync_versions;POST /edits 还支持 create_vehicle。", "type": "string" } }, @@ -50001,6 +68783,61 @@ ], "type": "object" }, + "EditEvidence": { + "properties": { + "effectiveDate": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "market": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "notes": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "sourceType": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "sourceUrl": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "type": "object" + }, "EditSubmissionDoc": { "description": "编辑申请文档(对外暴露的子集,额外字段允许透传)。", "properties": { @@ -50140,13 +68977,19 @@ "description": "更新时间(UTC)。" }, "vehicleId": { - "description": "车型 ID。", - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "车型 ID;创建申请在审批前为空。" } }, "required": [ "_id", - "vehicleId", "status" ], "type": "object" @@ -50962,6 +69805,17 @@ "diffPayload": { "$ref": "#/components/schemas/DiffPayload" }, + "evidence": { + "anyOf": [ + { + "$ref": "#/components/schemas/EditEvidence" + }, + { + "type": "null" + } + ], + "description": "版本变更的可核验来源证据。" + }, "title": { "anyOf": [ { @@ -50992,6 +69846,17 @@ "SuggestionItem": { "description": "版本建议条目。", "properties": { + "assetRegistry": { + "anyOf": [ + { + "type": "object" + }, + { + "type": "null" + } + ], + "description": "归档模型产物清单;当旧版 TOS 链接为空时可作为可下载产物依据。" + }, "hardware_config_version": { "anyOf": [ { @@ -51337,6 +70202,10 @@ ], "description": "车型文案描述,如有。" }, + "hardwareOptionMetadata": { + "description": "硬件条目的业务类型、市场与来源;kind 为 sales_trim 或 hardware_generation。", + "type": "object" + }, "hardwareOptions": { "description": "可选硬件版本列表(聚合后的去重结果)。", "items": { @@ -51363,7 +70232,7 @@ "type": "null" } ], - "description": "在售状态,预留字段,目前可能为空。" + "description": "在售状态,优先取 `hot_brand_vehicle.market_status`,缺失时回退 `saleStatus`。" }, "modelName": { "anyOf": [ @@ -51409,6 +70278,10 @@ ], "description": "车系名称,如有。" }, + "softwareByHardware": { + "description": "按硬件版本分组的软件版本,避免把软件候选错误复用到其他硬件。", + "type": "object" + }, "softwareOptions": { "description": "可选软件版本列表(按更新时间倒序)。", "items": { @@ -51627,6 +70500,15 @@ } ], "description": "时间线标题,通常是公开发布名称或车型标题。" + }, + "updatedAt": { + "anyOf": [ + {}, + { + "type": "null" + } + ], + "description": "车型主数据最近更新时间;列表页可据此判断数据新鲜度。" } }, "required": [ @@ -52760,6 +71642,58 @@ "tags": [] }, "editsPost": { + "description": "提交车型创建申请", + "httpMethod": "POST", + "operationId": "submit_create_vehicle_api_vehicles_edits_post", + "parameters": [], + "path": "/api/vms/api/vehicles/edits", + "pathParameters": [], + "queryParameters": [], + "requestBody": { + "contentTypes": [ + "application/json" + ], + "required": true, + "schema": { + "application/json": { + "$ref": "#/components/schemas/SubmitEditRequest" + } + } + }, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "$ref": "#/components/schemas/ApiResponse_SubmitEditResponse_" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/api/vehicles/edits", + "service": "vehicle", + "servicePath": "/api/vms" + }, + "summary": "提交车型创建申请", + "tags": [] + }, + "editsPost2": { "description": "提交车型编辑申请", "httpMethod": "POST", "operationId": "submit_edit_api_vehicles__id__edits_post", @@ -52957,13 +71891,13 @@ } }, { - "description": "排序方式;不传或传空保持现有逻辑完全不变。可选:`reco`(接入 reco-engine 推荐排序:q 为空走 trending,q 非空对候选池打分后再分页;失败自动降级回基线排序)。", + "description": "排序方式;不传或传空保持现有逻辑完全不变。可选:`reco`(推荐排序,失败降级回基线排序);`vehicle_id`(按聚合后的代表车型 ID 升序稳定分页,并返回 X-Chek-Inventory-Order: vehicle_id 响应头;不提供跨请求数据快照)。", "location": "query", "name": "sort", "required": false, "schema": { "default": "", - "description": "排序方式;不传或传空保持现有逻辑完全不变。可选:`reco`(接入 reco-engine 推荐排序:q 为空走 trending,q 非空对候选池打分后再分页;失败自动降级回基线排序)。", + "description": "排序方式;不传或传空保持现有逻辑完全不变。可选:`reco`(推荐排序,失败降级回基线排序);`vehicle_id`(按聚合后的代表车型 ID 升序稳定分页,并返回 X-Chek-Inventory-Order: vehicle_id 响应头;不提供跨请求数据快照)。", "type": "string" } }, @@ -53061,13 +71995,13 @@ } }, { - "description": "排序方式;不传或传空保持现有逻辑完全不变。可选:`reco`(接入 reco-engine 推荐排序:q 为空走 trending,q 非空对候选池打分后再分页;失败自动降级回基线排序)。", + "description": "排序方式;不传或传空保持现有逻辑完全不变。可选:`reco`(推荐排序,失败降级回基线排序);`vehicle_id`(按聚合后的代表车型 ID 升序稳定分页,并返回 X-Chek-Inventory-Order: vehicle_id 响应头;不提供跨请求数据快照)。", "location": "query", "name": "sort", "required": false, "schema": { "default": "", - "description": "排序方式;不传或传空保持现有逻辑完全不变。可选:`reco`(接入 reco-engine 推荐排序:q 为空走 trending,q 非空对候选池打分后再分页;失败自动降级回基线排序)。", + "description": "排序方式;不传或传空保持现有逻辑完全不变。可选:`reco`(推荐排序,失败降级回基线排序);`vehicle_id`(按聚合后的代表车型 ID 升序稳定分页,并返回 X-Chek-Inventory-Order: vehicle_id 响应头;不提供跨请求数据快照)。", "type": "string" } }, @@ -53165,13 +72099,13 @@ } }, { - "description": "排序方式;不传或传空保持现有逻辑完全不变。可选:`reco`(接入 reco-engine 推荐排序:q 为空走 trending,q 非空对候选池打分后再分页;失败自动降级回基线排序)。", + "description": "排序方式;不传或传空保持现有逻辑完全不变。可选:`reco`(推荐排序,失败降级回基线排序);`vehicle_id`(按聚合后的代表车型 ID 升序稳定分页,并返回 X-Chek-Inventory-Order: vehicle_id 响应头;不提供跨请求数据快照)。", "location": "query", "name": "sort", "required": false, "schema": { "default": "", - "description": "排序方式;不传或传空保持现有逻辑完全不变。可选:`reco`(接入 reco-engine 推荐排序:q 为空走 trending,q 非空对候选池打分后再分页;失败自动降级回基线排序)。", + "description": "排序方式;不传或传空保持现有逻辑完全不变。可选:`reco`(推荐排序,失败降级回基线排序);`vehicle_id`(按聚合后的代表车型 ID 升序稳定分页,并返回 X-Chek-Inventory-Order: vehicle_id 响应头;不提供跨请求数据快照)。", "type": "string" } }, @@ -53646,7 +72580,7 @@ "rawParamsUpdate": { "description": "覆盖车型原始参数并记录变更日志", "httpMethod": "PUT", - "operationId": "put_raw_params_api_vehicles__id__raw_params_put", + "operationId": "put_raw_params_endpoint_api_vehicles__id__raw_params_put", "parameters": [ { "description": "车型主键 ID。", @@ -54471,7 +73405,7 @@ "repoDocsPost": { "description": "为车型新增版本仓库文档", "httpMethod": "POST", - "operationId": "post_repo_docs_api_vehicles__id__repo_docs_post", + "operationId": "post_repo_docs_endpoint_api_vehicles__id__repo_docs_post", "parameters": [ { "description": "车型主键 ID。", @@ -54538,7 +73472,7 @@ "repoDocsUpdate": { "description": "批量更新版本仓库文档字段", "httpMethod": "PUT", - "operationId": "put_repo_doc_api_vehicles__id__repo_docs_put", + "operationId": "put_repo_doc_endpoint_api_vehicles__id__repo_docs_put", "parameters": [ { "description": "车型主键 ID。", @@ -54858,7 +73792,7 @@ "versions": { "description": "同步车型可选硬件/软件版本列表", "httpMethod": "POST", - "operationId": "sync_versions_api_vehicles__id__versions_post", + "operationId": "sync_versions_endpoint_api_vehicles__id__versions_post", "parameters": [ { "description": "车型主键 ID。", @@ -54888,10 +73822,14 @@ } }, "responses": { - "204": { - "contentTypes": [], + "200": { + "contentTypes": [ + "application/json" + ], "description": "Successful Response", - "schema": {} + "schema": { + "application/json": {} + } }, "422": { "contentTypes": [ @@ -54953,6 +73891,23 @@ "description": "每页数量,默认 50,最大 100。", "type": "integer" } + }, + { + "description": "可选,逗号分隔的车型 ID(最多 100 个)。用于列表页精确批量查询当前页模型覆盖,避免按独立排序分页造成误判。", + "location": "query", + "name": "vehicleIds", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "可选,逗号分隔的车型 ID(最多 100 个)。用于列表页精确批量查询当前页模型覆盖,避免按独立排序分页造成误判。" + } } ], "path": "/api/vms/api/vehicles/with-models", @@ -54960,7 +73915,8 @@ "queryParameters": [ "q", "page", - "pageSize" + "pageSize", + "vehicleIds" ], "requestBody": null, "responses": { diff --git a/src/args.test.ts b/src/args.test.ts deleted file mode 100644 index 71c9a88..0000000 --- a/src/args.test.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { describe, expect, it } from "vitest"; - -import { parseSetupArgs } from "./args.js"; - -describe("parseSetupArgs", () => { - it("parses key=value syntax", () => { - expect( - parseSetupArgs( - "token=abc backend=https://api-dev.chekkk.com session=agent:main:chek:mentions interval=6000", - ), - ).toEqual({ - token: "abc", - backend: "https://api-dev.chekkk.com", - session: "agent:main:chek:mentions", - interval: 6000, - }); - }); - - it("parses flag syntax", () => { - expect(parseSetupArgs("--token abc --backend https://api-dev.chekkk.com --disable")).toEqual({ - token: "abc", - backend: "https://api-dev.chekkk.com", - enable: false, - }); - }); -}); diff --git a/src/args.ts b/src/args.ts deleted file mode 100644 index 625eb5b..0000000 --- a/src/args.ts +++ /dev/null @@ -1,101 +0,0 @@ -export type SetupArgs = { - token?: string; - backend?: string; - session?: string; - interval?: number; - enable?: boolean; -}; - -function tokenize(input: string): string[] { - const tokens: string[] = []; - let current = ""; - let quote: '"' | "'" | null = null; - - for (let index = 0; index < input.length; index += 1) { - const char = input[index]; - if (quote) { - if (char === quote) { - quote = null; - } else { - current += char; - } - continue; - } - if (char === '"' || char === "'") { - quote = char; - continue; - } - if (/\s/.test(char)) { - if (current) { - tokens.push(current); - current = ""; - } - continue; - } - current += char; - } - - if (current) { - tokens.push(current); - } - return tokens; -} - -export function parseSetupArgs(raw: string): SetupArgs { - const tokens = tokenize(raw.trim()); - const result: SetupArgs = {}; - - for (let index = 0; index < tokens.length; index += 1) { - const token = tokens[index]; - const next = tokens[index + 1]; - const assign = token.includes("=") ? token.split(/=(.*)/s) : null; - const key = assign ? assign[0] : token; - const value = assign ? assign[1] : next; - - switch (key) { - case "token": - case "--token": - if (value) { - result.token = value; - if (!assign) index += 1; - } - break; - case "backend": - case "--backend": - if (value) { - result.backend = value; - if (!assign) index += 1; - } - break; - case "session": - case "--session": - if (value) { - result.session = value; - if (!assign) index += 1; - } - break; - case "interval": - case "--interval": - if (value) { - const parsed = Number(value); - if (Number.isFinite(parsed)) { - result.interval = Math.round(parsed); - } - if (!assign) index += 1; - } - break; - case "enable": - case "--enable": - result.enable = true; - break; - case "disable": - case "--disable": - result.enable = false; - break; - default: - break; - } - } - - return result; -} diff --git a/src/chek-api.ts b/src/chek-api.ts deleted file mode 100644 index bf3bdc8..0000000 --- a/src/chek-api.ts +++ /dev/null @@ -1,147 +0,0 @@ -import type { - BrowserAuthSession, - BuddyRoomMessage, - JsonObject, - MentionTask, -} from "./types.js"; - -type RequestOptions = { - method?: "GET" | "POST"; - body?: unknown; -}; - -export class ChekApiError extends Error { - status: number; - body: unknown; - - constructor(message: string, status: number, body: unknown) { - super(message); - this.name = "ChekApiError"; - this.status = status; - this.body = body; - } -} - -export class ChekApiClient { - private readonly baseUrl: string; - private readonly accessToken: string; - - constructor(params: { baseUrl: string; accessToken?: string }) { - this.baseUrl = params.baseUrl.replace(/\/+$/, ""); - this.accessToken = String(params.accessToken || "").trim(); - } - - private async requestJson(path: string, options: RequestOptions = {}): Promise { - const headers: Record = {}; - if (this.accessToken) { - headers.Authorization = this.accessToken.startsWith("Bearer ") - ? this.accessToken - : `Bearer ${this.accessToken}`; - } - if (options.body !== undefined) { - headers["Content-Type"] = "application/json"; - } - const response = await fetch(`${this.baseUrl}${path}`, { - method: options.method ?? "GET", - headers, - body: options.body === undefined ? undefined : JSON.stringify(options.body), - }); - const rawText = await response.text(); - let payload: unknown = null; - if (rawText.trim()) { - try { - payload = JSON.parse(rawText) as unknown; - } catch { - payload = rawText; - } - } - if (!response.ok) { - const message = - (payload && typeof payload === "object" && "detail" in (payload as JsonObject) - ? String((payload as JsonObject).detail || "") - : "") || `${response.status} ${response.statusText}`; - throw new ChekApiError(message, response.status, payload); - } - return payload as T; - } - - async probe(): Promise { - await this.listPendingMentionTasks(1); - } - - async createBrowserAuthSession(input: { - installId: string; - deviceId: string; - sessionKey: string; - metadata?: JsonObject; - }): Promise { - return await this.requestJson("/buddy/v1/openclaw/auth-sessions", { - method: "POST", - body: { - installId: input.installId, - deviceId: input.deviceId, - sessionKey: input.sessionKey, - metadata: input.metadata || {}, - }, - }); - } - - async pollBrowserAuthSession(sessionId: string, deviceCode: string): Promise { - const query = new URLSearchParams({ deviceCode }); - return await this.requestJson( - `/buddy/v1/openclaw/auth-sessions/${sessionId}?${query.toString()}`, - ); - } - - async listPendingMentionTasks(pageSize = 20): Promise { - const query = new URLSearchParams({ - status: "pending", - pageSize: String(pageSize), - }); - const payload = await this.requestJson<{ items?: MentionTask[] }>( - `/buddy/v1/mention-tasks?${query.toString()}`, - ); - return Array.isArray(payload?.items) ? payload.items : []; - } - - async listRoomMessages(postId: string, pageSize = 100): Promise { - const query = new URLSearchParams({ - pageSize: String(Math.max(1, Math.min(pageSize, 100))), - }); - const payload = await this.requestJson<{ items?: BuddyRoomMessage[] }>( - `/buddy/v1/posts/${postId}/messages?${query.toString()}`, - ); - return Array.isArray(payload?.items) ? payload.items : []; - } - - async claimMentionTask(taskId: string): Promise { - return await this.requestJson(`/buddy/v1/mention-tasks/${taskId}`, { - method: "POST", - body: { action: "claim" }, - }); - } - - async completeMentionTask(taskId: string, result: JsonObject): Promise { - return await this.requestJson(`/buddy/v1/mention-tasks/${taskId}`, { - method: "POST", - body: { action: "complete", result }, - }); - } - - async failMentionTask(taskId: string, result: JsonObject): Promise { - return await this.requestJson(`/buddy/v1/mention-tasks/${taskId}`, { - method: "POST", - body: { action: "fail", result }, - }); - } - - async sendRoomMessage(postId: string, content: string): Promise { - return await this.requestJson(`/buddy/v1/posts/${postId}/messages`, { - method: "POST", - body: { - content, - mentions: [], - }, - }); - } -} diff --git a/src/commands.ts b/src/commands.ts index a1d8b10..b42c671 100644 --- a/src/commands.ts +++ b/src/commands.ts @@ -1,23 +1,16 @@ import type { Command } from "commander"; -import { randomUUID } from "node:crypto"; -import { execFile } from "node:child_process"; -import os from "node:os"; -import { parseSetupArgs } from "./args.js"; -import { ChekApiClient } from "./chek-api.js"; import { maskToken, resolveAccessToken } from "./config.js"; import type { OpenClawPluginApi } from "./openclaw-types.js"; import { buildBootstrapMessage } from "./render.js"; import { ChekCliController } from "./service.js"; -import type { BrowserAuthSession, ChekCliConfig } from "./types.js"; - -const AUTHORIZATION_WAIT_TIMEOUT_MS = 180_000; +import type { ChekCliConfig } from "./types.js"; function formatStatus(controller: ChekCliController): string { const snapshot = controller.getSnapshot(); return [ "CHEK CLI 状态", - `- running: ${snapshot.running ? "yes" : "no"}`, + `- running: ${snapshot.running ? "yes" : "no (migration shim)"}`, `- configured: ${snapshot.configured ? "yes" : "no"}`, `- backend: ${snapshot.backendAppBaseUrl}`, `- session: ${snapshot.sessionKey}`, @@ -41,14 +34,16 @@ function formatStatus(controller: ChekCliController): string { function formatSetupUsage(): string { return [ "用法:", - "/chek-setup [backend=https://api-dev.chekkk.com/api/backend-app] [session=agent:main:chek:mentions] [interval=5000]", + "/chek-setup", + "", + "站内 Agent 执行、专用授权和房间自动回复已退役。这个兼容命令不会创建授权会话或轮询旧接口。", "", - "默认会自动拉起浏览器做 CHEK 授权;如果浏览器授权失败,再退回:", - "/chek-setup token=", + "请在自己的 Agent 工具里使用 Python CHEK CLI:", + "git clone https://github.com/chekdata/chek-cli.git", + "cd chek-cli/packages/chek-cli && python -m pip install -e \".[dev]\"", + "chek config set-env dev && chek registry status", "", - "也可以在 CLI 里执行:", - "openclaw chek setup", - "openclaw chek setup --token ", + "Cursor、Codex、Claude Code 等可执行本地命令的工具可以直接运行;聊天模式工具先生成草稿。", ].join("\n"); } @@ -65,173 +60,35 @@ function summarizeSavedConfig(config: ChekCliConfig): string { ].join("\n"); } -function sleep(ms: number): Promise { - return new Promise((resolve) => { - setTimeout(resolve, ms); - }); -} - -function sanitizeToken(value: string): string { - return value - .trim() - .toLowerCase() - .replace(/[^a-z0-9]+/g, "-") - .replace(/^-+|-+$/g, ""); -} - -function withStableIdentity(config: ChekCliConfig): Partial { - const installId = config.installId.trim() || randomUUID(); - const hostname = sanitizeToken(os.hostname()) || "openclaw-device"; - const deviceId = config.deviceId.trim() || `${hostname}-${randomUUID().slice(0, 8)}`; - return { installId, deviceId }; -} - -function openViaCommand(command: string, args: string[]): Promise { - return new Promise((resolve, reject) => { - execFile(command, args, (error) => { - if (error) { - reject(error); - return; - } - resolve(); - }); - }); -} - -async function openBrowser(url: string): Promise { - const target = String(url || "").trim(); - if (!target) { - throw new Error("Browser authorization URL is empty."); - } - if (process.platform === "darwin") { - await openViaCommand("open", [target]); - return; - } - if (process.platform === "win32") { - await openViaCommand("cmd", ["/c", "start", "", target]); - return; - } - await openViaCommand("xdg-open", [target]); -} - async function ensureBaseSetup( controller: ChekCliController, patch: Partial, ): Promise { const baseConfig = controller.getConfig(); return await controller.persistConfigPatch({ - ...withStableIdentity(baseConfig), ...patch, }); } -async function waitForBrowserAuthorization( +async function runSetup( controller: ChekCliController, - timeoutMs = AUTHORIZATION_WAIT_TIMEOUT_MS, -): Promise { - const startedAt = Date.now(); - while (Date.now() - startedAt <= timeoutMs) { - const session = await controller.syncAuthorizationSession(); - const sessionStatus = String(session?.authorizationStatus || session?.status || "").trim(); - if (String(session?.pluginAccessToken || "").trim()) { - return session; - } - if (sessionStatus === "expired" || sessionStatus === "cancelled") { - return session; - } - const delayMs = Math.max( - 1_500, - Number(session?.pollIntervalMs || controller.getConfig().pollIntervalMs || 5_000), - ); - await sleep(delayMs); - } - return null; -} - -async function beginBrowserSetup(controller: ChekCliController): Promise { - const currentConfig = controller.getConfig(); - const api = new ChekApiClient({ - baseUrl: currentConfig.backendAppBaseUrl, - }); - const session = await api.createBrowserAuthSession({ - installId: currentConfig.installId, - deviceId: currentConfig.deviceId, - sessionKey: currentConfig.sessionKey, - metadata: { - source: "chek-cli", - setupMode: "browser_auth", - }, - }); - const authorizationUrl = String(session.authorizationUrl || "").trim(); - const savedConfig = await controller.persistConfigPatch({ - authSessionId: session.id, - deviceCode: String(session.deviceCode || "").trim(), - authorizationStatus: String(session.authorizationStatus || session.status || "pending").trim(), - authorizationUrl, + patch: Partial, +): Promise { + // Keep a disabled entry for older hosts, but never save or use an old + // browser-auth token/session. Authentication belongs to the Python CLI. + const savedConfig = await ensureBaseSetup(controller, { + ...patch, + enabled: false, + accessToken: "", + authSessionId: "", + deviceCode: "", + authorizationStatus: "retired", + authorizationUrl: "", authorizedUserOneId: "", authorizedDisplayName: "", lastAuthorizedAt: "", - accessToken: "", }); - - let browserMessage = `- browser: ${authorizationUrl || "authorization URL missing"}`; - if (authorizationUrl) { - try { - await openBrowser(authorizationUrl); - browserMessage = `- browser: opened ${authorizationUrl}`; - } catch (error) { - browserMessage = `- browser: failed to auto-open (${error instanceof Error ? error.message : String(error)})\n- open this URL manually: ${authorizationUrl}`; - } - } - - const authorizedSession = await waitForBrowserAuthorization(controller); - const authStatus = String( - authorizedSession?.authorizationStatus || authorizedSession?.status || savedConfig.authorizationStatus || "", - ).trim(); - if (String(authorizedSession?.pluginAccessToken || "").trim()) { - const health = await controller.runHealthCheck(); - return [ - summarizeSavedConfig(controller.getConfig()), - browserMessage, - `- authorization: ok (${authorizedSession?.authorizedDisplayName || authorizedSession?.authorizedUserOneId || "authorized"})`, - `- health: backend ${health.backend}, gateway ${health.gateway}`, - ].join("\n"); - } - - return [ - summarizeSavedConfig(controller.getConfig()), - browserMessage, - `- authorization: ${authStatus || "pending"}`, - "- next: keep the browser page open until it shows “已授权,可返回 OpenClaw”,然后再执行 /chek-status 查看是否 ready", - ].join("\n"); -} - -async function runSetup( - controller: ChekCliController, - patch: Partial, - opts: { browserAuth: boolean }, -): Promise { - const savedConfig = await ensureBaseSetup(controller, patch); - if (!savedConfig.enabled) { - return `${summarizeSavedConfig(savedConfig)}\n- health: disabled`; - } - if (!opts.browserAuth) { - try { - const health = await controller.runHealthCheck(); - return `${summarizeSavedConfig(savedConfig)}\n- health: backend ${health.backend}, gateway ${health.gateway}`; - } catch (error) { - return `${summarizeSavedConfig(savedConfig)}\n- health: ${error instanceof Error ? error.message : String(error)}`; - } - } - if (resolveAccessToken(savedConfig)) { - try { - const health = await controller.runHealthCheck(); - return `${summarizeSavedConfig(savedConfig)}\n- health: backend ${health.backend}, gateway ${health.gateway}`; - } catch (error) { - return `${summarizeSavedConfig(savedConfig)}\n- health: ${error instanceof Error ? error.message : String(error)}`; - } - } - return await beginBrowserSetup(controller); + return `${summarizeSavedConfig(savedConfig)}\n- bridge: retired (no browser authorization, polling, or automatic room replies)\n\n${formatSetupUsage()}`; } export function registerChekCliCommands( @@ -240,7 +97,7 @@ export function registerChekCliCommands( ): void { api.registerCommand({ name: "chek-setup", - description: "Configure CHEK CLI for CHEK mention-task polling.", + description: "Show the migration path to the Python CHEK CLI.", acceptsArgs: true, handler: async (ctx) => { const rawArgs = ctx.args?.trim() ?? ""; @@ -249,22 +106,7 @@ export function registerChekCliCommands( text: `${formatSetupUsage()}\n\n${formatStatus(controller)}`, }; } - const parsed = parseSetupArgs(rawArgs); - const patch: Partial = {}; - if (parsed.token !== undefined) patch.accessToken = parsed.token; - if (parsed.backend !== undefined) patch.backendAppBaseUrl = parsed.backend; - if (parsed.session !== undefined) patch.sessionKey = parsed.session; - if (parsed.interval !== undefined) patch.pollIntervalMs = parsed.interval; - if (parsed.enable !== undefined) patch.enabled = parsed.enable; - if (parsed.token !== undefined) { - patch.authorizationStatus = "token_fallback"; - } - - const shouldStartBrowserAuth = - parsed.token === undefined && (rawArgs.length === 0 || Object.keys(patch).length > 0); - const text = await runSetup(controller, patch, { - browserAuth: shouldStartBrowserAuth, - }); + const text = await runSetup(controller, {}); return { text, }; @@ -273,7 +115,7 @@ export function registerChekCliCommands( api.registerCommand({ name: "chek-status", - description: "Show CHEK CLI runtime status.", + description: "Show migration-shim status.", handler: async () => ({ text: formatStatus(controller), }), @@ -281,7 +123,7 @@ export function registerChekCliCommands( api.registerCommand({ name: "chek-bootstrap", - description: "Print the one-shot bootstrap text for CHEK CLI.", + description: "Print the Python CHEK CLI migration guide.", handler: async () => ({ text: buildBootstrapMessage(), }), @@ -298,26 +140,10 @@ export function registerChekCliProgram( chek .command("setup") - .description("Persist CHEK CLI config into OpenClaw") - .option("--token ", "CHEK access token fallback") - .option("--backend ", "CHEK backend-app base URL") - .option("--session ", "Stable local OpenClaw session key") - .option("--interval ", "Poll interval in milliseconds") - .option("--disable", "Disable the bridge after saving", false) + .description("Print the Python CHEK CLI migration guide") .action(async (options) => { - const patch: Partial = {}; - if (options.token) { - patch.accessToken = String(options.token).trim(); - patch.authorizationStatus = "token_fallback"; - } - if (options.backend) patch.backendAppBaseUrl = String(options.backend).trim(); - if (options.session) patch.sessionKey = String(options.session).trim(); - if (options.interval !== undefined) patch.pollIntervalMs = Number(options.interval); - if (options.disable) patch.enabled = false; - - const output = await runSetup(controller, patch, { - browserAuth: !options.token, - }); + void options; + const output = await runSetup(controller, {}); console.log(output); }); diff --git a/src/config.ts b/src/config.ts index e8df0e5..196013b 100644 --- a/src/config.ts +++ b/src/config.ts @@ -36,25 +36,7 @@ export const CONFIG_UI_HINTS = { label: "CHEK Backend URL", placeholder: "https://api-dev.chekkk.com/api/backend-app", }, - accessToken: { - label: "CHEK Access Token", - sensitive: true, - help: "If left empty, the plugin falls back to CHEK_ACCESS_TOKEN from the environment.", - }, - pollIntervalMs: { label: "Poll Interval (ms)" }, - sessionKey: { - label: "OpenClaw Session Key", - placeholder: DEFAULT_SESSION_KEY, - }, - installId: { label: "Install ID" }, - deviceId: { label: "Device ID" }, - authSessionId: { label: "Auth Session ID" }, - deviceCode: { label: "Device Code" }, - authorizationStatus: { label: "Authorization Status" }, - authorizationUrl: { label: "Authorization URL" }, - authorizedUserOneId: { label: "Authorized User One ID" }, - authorizedDisplayName: { label: "Authorized User" }, - lastAuthorizedAt: { label: "Last Authorized At" }, + sessionKey: { label: "Legacy Session Key (unused)" }, } as const; function asRecord(value: unknown): Record { diff --git a/src/gateway-cli.test.ts b/src/gateway-cli.test.ts deleted file mode 100644 index 7fa6e48..0000000 --- a/src/gateway-cli.test.ts +++ /dev/null @@ -1,161 +0,0 @@ -import { mkdtempSync, writeFileSync } from "node:fs"; -import os from "node:os"; -import path from "node:path"; - -import { describe, expect, it } from "vitest"; - -import { - extractGatewayJsonPayload, - extractReplyFromTranscriptEntries, - resolveGatewayInvocation, - resolveTranscriptFile, -} from "./gateway-cli.js"; - -function makeTempFile(name: string): string { - const dir = mkdtempSync(path.join(os.tmpdir(), "chek-cli-gateway-cli-")); - const file = path.join(dir, name); - writeFileSync(file, "#!/usr/bin/env node\n", "utf-8"); - return file; -} - -describe("resolveGatewayInvocation", () => { - it("prefers OPENCLAW_CLI_ENTRY when provided", () => { - const cliEntry = makeTempFile("openclaw-env.mjs"); - const target = resolveGatewayInvocation({ - cliEntryEnv: cliEntry, - argv: ["node", "/tmp/ignored.mjs"], - resolveModule: () => { - throw new Error("should not resolve module"); - }, - }); - - expect(target).toEqual({ - command: process.execPath, - argsPrefix: [cliEntry], - }); - }); - - it("uses module resolution when available", () => { - const cliEntry = makeTempFile("openclaw-module.mjs"); - const target = resolveGatewayInvocation({ - cliEntryEnv: "", - argv: ["node", "/tmp/ignored.mjs"], - resolveModule: () => cliEntry, - }); - - expect(target).toEqual({ - command: process.execPath, - argsPrefix: [cliEntry], - }); - }); - - it("falls back to argv[1] when the module cannot be resolved", () => { - const argvEntry = makeTempFile("openclaw-argv.mjs"); - const target = resolveGatewayInvocation({ - cliEntryEnv: "", - argv: ["node", argvEntry], - resolveModule: () => { - throw new Error("module missing"); - }, - }); - - expect(target).toEqual({ - command: process.execPath, - argsPrefix: [argvEntry], - }); - }); - - it("falls back to the openclaw binary name when no file path is available", () => { - const target = resolveGatewayInvocation({ - cliEntryEnv: "", - argv: ["node", ""], - resolveModule: () => { - throw new Error("module missing"); - }, - openclawBin: "openclaw", - }); - - expect(target).toEqual({ - command: "openclaw", - argsPrefix: [], - }); - }); -}); - -describe("gateway cli transcript helpers", () => { - it("extracts the trailing JSON payload after noisy plugin logs", () => { - const stdout = [ - "[plugins] feishu_doc: Registered feishu_doc", - "[plugins] feishu_wiki: Registered feishu_wiki tool", - '{ "ok": true, "status": "started" }', - ].join("\n"); - - expect(extractGatewayJsonPayload(stdout)).toBe('{ "ok": true, "status": "started" }'); - }); - - it("resolves the transcript file from a session patch result", () => { - expect( - resolveTranscriptFile({ - path: "/tmp/openclaw/sessions.json", - entry: { - sessionId: "session-1", - }, - }), - ).toBe(path.join("/tmp/openclaw", "session-1.jsonl")); - }); - - it("extracts the model reply tied to the prompt message id", () => { - const entries = [ - { - type: "message", - id: "inject-1", - message: { - role: "assistant", - stopReason: "injected", - content: [{ type: "text", text: "[CHEK @]\n\n你在房间里被 @ 了。" }], - }, - }, - { - type: "message", - id: "prompt-1", - parentId: "inject-1", - message: { - role: "user", - content: [ - { - type: "text", - text: "请回复一下\n[message_id: chek-cli-abc]", - }, - ], - }, - }, - { - type: "message", - id: "reply-1", - parentId: "prompt-1", - message: { - role: "assistant", - content: [ - { - type: "text", - text: "收到,我这就看看。 [[reply_to: chek-cli-abc]]", - }, - ], - }, - }, - { - type: "message", - id: "note-1", - message: { - role: "assistant", - stopReason: "injected", - content: [{ type: "text", text: "[CHEK 已发送]" }], - }, - }, - ]; - - expect(extractReplyFromTranscriptEntries(entries as never, "chek-cli-abc")).toBe( - "收到,我这就看看。", - ); - }); -}); diff --git a/src/gateway-cli.ts b/src/gateway-cli.ts deleted file mode 100644 index 0c85ea3..0000000 --- a/src/gateway-cli.ts +++ /dev/null @@ -1,366 +0,0 @@ -import { execFile } from "node:child_process"; -import { randomUUID } from "node:crypto"; -import { existsSync, promises as fs } from "node:fs"; -import { createRequire } from "node:module"; -import path from "node:path"; -import { promisify } from "node:util"; - -import { sanitizeModelReplyText } from "./render.js"; -import type { ChatFinalPayload, SessionPatchResult } from "./types.js"; - -const require = createRequire(import.meta.url); -const execFileAsync = promisify(execFile); -const gatewayTimeoutMs = 45_000; -const DEFAULT_CHAT_SESSION_LABEL = "CHEK Mentions"; - -type GatewayInvocation = { - command: string; - argsPrefix: string[]; -}; - -let cachedInvocation: GatewayInvocation | null = null; - -function isUsableCliPath(candidate: string): boolean { - return Boolean(candidate && existsSync(candidate)); -} - -export function resolveGatewayInvocation( - options: { - cliEntryEnv?: string; - argv?: string[]; - resolveModule?: (() => string) | null; - openclawBin?: string; - } = {}, -): GatewayInvocation { - const cliEntryEnv = String( - options.cliEntryEnv ?? process.env.OPENCLAW_CLI_ENTRY ?? "", - ).trim(); - if (isUsableCliPath(cliEntryEnv)) { - return { - command: process.execPath, - argsPrefix: [cliEntryEnv], - }; - } - - const resolveModule = - options.resolveModule === undefined - ? () => require.resolve("openclaw/cli-entry") - : options.resolveModule; - if (resolveModule) { - try { - const resolved = String(resolveModule() || "").trim(); - if (isUsableCliPath(resolved)) { - return { - command: process.execPath, - argsPrefix: [resolved], - }; - } - } catch { - // Fall through to argv/PATH-based resolution for archive installs. - } - } - - const argv = options.argv ?? process.argv; - const argvEntry = String(argv[1] || "").trim(); - if (isUsableCliPath(argvEntry)) { - return { - command: process.execPath, - argsPrefix: [argvEntry], - }; - } - - return { - command: String(options.openclawBin || process.env.OPENCLAW_BIN || "openclaw").trim() - || "openclaw", - argsPrefix: [], - }; -} - -function getGatewayInvocation(): GatewayInvocation { - if (!cachedInvocation) { - cachedInvocation = resolveGatewayInvocation(); - } - return cachedInvocation; -} - -export function extractGatewayJsonPayload(stdout: string): string { - const trimmed = stdout.trim(); - if (!trimmed) { - return ""; - } - if (trimmed.startsWith("{") || trimmed.startsWith("[")) { - try { - JSON.parse(trimmed); - return trimmed; - } catch { - // Keep scanning for a valid JSON suffix when stdout starts with log lines like "[plugins] ...". - } - } - const lines = trimmed.split(/\r?\n/); - for (let index = 0; index < lines.length; index += 1) { - const candidate = lines.slice(index).join("\n").trim(); - if (!candidate || (!candidate.startsWith("{") && !candidate.startsWith("["))) { - continue; - } - try { - JSON.parse(candidate); - return candidate; - } catch { - // Keep looking for a valid JSON suffix. - } - } - return trimmed; -} - -async function parseJsonOutput(stdout: string, stderr: string): Promise { - const payloadText = extractGatewayJsonPayload(stdout); - if (!payloadText) { - throw new Error(`Gateway call returned empty stdout.\nstderr: ${stderr.trim()}`); - } - try { - return JSON.parse(payloadText) as unknown; - } catch (error) { - throw new Error( - `Failed to parse gateway JSON response: ${String(error)}\nstdout: ${stdout.trim()}\nstderr: ${stderr.trim()}`, - ); - } -} - -export async function gatewayCall( - method: string, - params: Record, - options: { expectFinal?: boolean } = {}, -): Promise { - const invocation = getGatewayInvocation(); - const args = [ - ...invocation.argsPrefix, - "gateway", - "call", - method, - "--json", - "--timeout", - String(gatewayTimeoutMs), - ]; - if (options.expectFinal) { - args.push("--expect-final"); - } - args.push("--params", JSON.stringify(params)); - const result = await execFileAsync(invocation.command, args, { - maxBuffer: 8 * 1024 * 1024, - }); - return (await parseJsonOutput(result.stdout, result.stderr)) as T; -} - -async function ensureTranscriptFile(result: SessionPatchResult): Promise { - const sessionId = result.entry?.sessionId?.trim(); - const sessionFile = resolveTranscriptFile(result); - if (!sessionFile) { - return; - } - try { - await fs.access(sessionFile); - } catch { - await fs.mkdir(path.dirname(sessionFile), { recursive: true }); - const header = { - type: "session", - version: 3, - id: sessionId || path.basename(sessionFile, ".jsonl"), - timestamp: new Date().toISOString(), - cwd: process.cwd(), - }; - await fs.writeFile(sessionFile, `${JSON.stringify(header)}\n`, "utf-8"); - } -} - -export function resolveTranscriptFile(result: SessionPatchResult): string { - const sessionId = result.entry?.sessionId?.trim(); - return ( - result.entry?.sessionFile?.trim() - || (sessionId && result.path?.trim() - ? path.join(path.dirname(result.path.trim()), `${sessionId}.jsonl`) - : "") - ).trim(); -} - -type TranscriptEntry = { - type?: string; - id?: string; - parentId?: string; - message?: { - role?: string; - stopReason?: string; - content?: Array<{ - type?: string; - text?: string; - }>; - }; -}; - -function extractTranscriptText(entry: TranscriptEntry | null | undefined): string { - const parts = Array.isArray(entry?.message?.content) ? entry.message.content : []; - return sanitizeModelReplyText( - parts - .map((item) => (item && typeof item.text === "string" ? item.text : "")) - .filter(Boolean) - .join("\n"), - ); -} - -export function extractReplyFromTranscriptEntries( - entries: TranscriptEntry[], - messageId: string, -): string { - const marker = `[message_id: ${messageId}]`; - let promptIndex = -1; - for (let index = entries.length - 1; index >= 0; index -= 1) { - const entry = entries[index]; - if ( - entry?.type === "message" - && entry.message?.role === "user" - && extractTranscriptText(entry).includes(marker) - && typeof entry.id === "string" - && entry.id.trim().length > 0 - ) { - promptIndex = index; - break; - } - } - if (promptIndex < 0) { - return ""; - } - const promptId = String(entries[promptIndex]?.id || "").trim(); - if (!promptId) { - return ""; - } - const parentMap = new Map(); - for (const entry of entries) { - const id = String(entry?.id || "").trim(); - const parentId = String(entry?.parentId || "").trim(); - if (id && parentId) { - parentMap.set(id, parentId); - } - } - const isDescendantOfPrompt = (entry: TranscriptEntry): boolean => { - let cursor = String(entry.parentId || "").trim(); - let depth = 0; - while (cursor && depth < 32) { - if (cursor === promptId) { - return true; - } - cursor = parentMap.get(cursor) || ""; - depth += 1; - } - return false; - }; - - for (let index = entries.length - 1; index > promptIndex; index -= 1) { - const entry = entries[index]; - if (entry?.type !== "message") { - continue; - } - if (entry.message?.role !== "assistant") { - continue; - } - if (entry.message?.stopReason === "injected") { - continue; - } - if (!isDescendantOfPrompt(entry)) { - continue; - } - const text = extractTranscriptText(entry); - if (text) { - return text; - } - } - return ""; -} - -async function waitForTranscriptReply( - session: SessionPatchResult, - messageId: string, - timeoutMs = gatewayTimeoutMs, -): Promise { - const sessionFile = resolveTranscriptFile(session); - if (!sessionFile) { - throw new Error("Session transcript file could not be resolved."); - } - const startedAt = Date.now(); - while (Date.now() - startedAt <= timeoutMs) { - try { - const raw = await fs.readFile(sessionFile, "utf-8"); - const entries = raw - .split(/\r?\n/) - .map((line) => line.trim()) - .filter(Boolean) - .map((line) => { - try { - return JSON.parse(line) as TranscriptEntry; - } catch { - return null; - } - }) - .filter((entry): entry is TranscriptEntry => Boolean(entry)); - const reply = extractReplyFromTranscriptEntries(entries, messageId); - if (reply) { - return reply; - } - } catch (error) { - if (!(error instanceof Error) || !/ENOENT/i.test(error.message)) { - throw error; - } - } - await new Promise((resolve) => { - setTimeout(resolve, 400); - }); - } - throw new Error("OpenClaw reply did not appear in the session transcript before timeout."); -} - -export async function ensureSession(sessionKey: string, label: string): Promise { - const result = await gatewayCall("sessions.patch", { - key: sessionKey, - label, - }); - await ensureTranscriptFile(result); - return result; -} - -export async function injectSessionNote( - sessionKey: string, - message: string, - label: string, -): Promise { - await gatewayCall("chat.inject", { - sessionKey, - message, - label, - }); -} - -export async function sendChatPrompt( - sessionKey: string, - message: string, - options: { sessionLabel?: string } = {}, -): Promise { - const idempotencyKey = `chek-cli-${randomUUID()}`; - const sessionLabel = String(options.sessionLabel || "").trim() || DEFAULT_CHAT_SESSION_LABEL; - const session = await ensureSession(sessionKey, sessionLabel); - const started = await gatewayCall( - "chat.send", - { - sessionKey, - message, - deliver: false, - timeoutMs: gatewayTimeoutMs, - idempotencyKey, - }, - ); - const reply = await waitForTranscriptReply(session, idempotencyKey, gatewayTimeoutMs); - return { - runId: started.runId, - status: "ok", - result: { - payloads: [{ text: reply }], - }, - }; -} diff --git a/src/index.ts b/src/index.ts index 46a6070..f7b82d6 100644 --- a/src/index.ts +++ b/src/index.ts @@ -14,7 +14,7 @@ const chekCliPlugin = { id: "chek-cli", name: "CHEK CLI", description: - "Agent-native CHEK CLI and OpenClaw helpers for review rooms, AI product publication, and mention handling.", + "CHEK CLI migration guide for using the Python CLI from your own Agent environment.", configSchema: { parse: parseConfig, jsonSchema: CONFIG_JSON_SCHEMA, diff --git a/src/render.test.ts b/src/render.test.ts index 16532f6..640352f 100644 --- a/src/render.test.ts +++ b/src/render.test.ts @@ -110,8 +110,8 @@ describe("render helpers", () => { expect(buildReplyStrategy(saleTask as never).directReply).toContain("支持开源共享,也接受商业授权/成品出售"); expect(buildReplyStrategy(introTask as never).directReply).toContain("这是G1 动作模型"); expect(buildReplyStrategy(openclawTask as never).intent).toBe("openclaw_bootstrap"); - expect(buildReplyStrategy(openclawTask as never).directReply).toContain("openclaw plugins install"); - expect(buildReplyStrategy(openclawTask as never).directReply).toContain("/chek-setup"); + expect(buildReplyStrategy(openclawTask as never).directReply).toContain("Python CHEK CLI"); + expect(buildReplyStrategy(openclawTask as never).directReply).toContain("自己的 Agent"); }); it("injects recent room context and honesty rules into the prompt", () => { @@ -196,13 +196,10 @@ describe("render helpers", () => { it("builds bootstrap text", () => { const message = buildBootstrapMessage(); - expect(message).toContain( - "openclaw plugins install https://github.com/chekdata/chek-cli/archive/refs/heads/main.tar.gz?download=1", - ); - expect(message).toContain("目标:"); - expect(message).toContain("执行要求:"); - expect(message).toContain("/chek-setup"); - expect(message).toContain("已授权,可返回 OpenClaw"); - expect(message).toContain("CHEK_ACCESS_TOKEN"); + expect(message).toContain("Python CHEK CLI"); + expect(message).toContain("自己的 Agent 工具"); + expect(message).toContain("Cursor、Codex、Claude Code"); + expect(message).toContain("普通 ChatGPT、豆包"); + expect(message).toContain("app-dev.chekkk.com/#/pages/agentConnect/index"); }); }); diff --git a/src/render.ts b/src/render.ts index 2c26e97..753409c 100644 --- a/src/render.ts +++ b/src/render.ts @@ -7,6 +7,7 @@ import type { export const CURRENT_INSTALL_SPEC = "https://github.com/chekdata/chek-cli/archive/refs/heads/main.tar.gz?download=1"; +export const CHEK_CLI_REPOSITORY = "https://github.com/chekdata/chek-cli"; const MAX_CONTEXT_MESSAGES = 6; @@ -209,7 +210,7 @@ function buildDirectStrategyReply( const content = String(task.payload.messageContent || ""); switch (intent) { case "openclaw_bootstrap": - return `第一步先安装 CHEK CLI:openclaw plugins install ${CURRENT_INSTALL_SPEC}。装完如果没自动继续,再执行 /chek-setup。`; + return "站内 Agent 执行和专用授权已退役。请在自己的 Agent 工具里安装 Python CHEK CLI;Cursor、Codex、Claude Code 可直接运行,聊天模式工具先生成草稿。"; case "posting_copy": if (/怎么介绍|如何介绍|怎么讲|怎么描述/.test(content)) { return `可以直接发:这是${subject},已附演示视频、适配机型和安装说明,拿来就能跑,感兴趣的来聊。`; @@ -248,8 +249,8 @@ function buildStrategyGuidance(intent: ReplyIntent, subject: string): { guidance switch (intent) { case "openclaw_bootstrap": return { - guidance: "对方在问 OpenClaw / CHEK CLI 的安装、授权或绑定。请直接回答下一步操作,优先给安装命令和 /chek-setup,不要岔到房间内容优化。", - summary: "直接给 OpenClaw 安装与授权下一步", + guidance: "对方在问 CHEK CLI 接入。请说明站内 Agent 执行和专用授权已退役,并给出自己的 Agent 工具安装 Python CLI 的下一步。", + summary: "给出自己的 Agent 使用 CHEK CLI 的下一步", }; case "posting_copy": return { @@ -327,7 +328,7 @@ export function buildTaskInjectionText( `回复目标:${strategy.summary}`, "最近房间上下文:", formatRoomMessagesContext(recentMessages), - "插件会自动生成一条简短回复并回房间;如果失败,会把失败原因留在这里。", + "这是给你自己的 Agent 的草稿上下文;旧插件不会自动生成或发送房间回复。", ].join("\n"); } @@ -383,30 +384,24 @@ export function extractChatReplyText(payload: ChatFinalPayload): string { export function buildBootstrapMessage(): string { return [ - "请在这台机器上安装并配置 CHEK 房间助手插件,并尽量自动完成初始化。", + "CHEK 的站内 Agent 执行、专用授权和房间自动回复已退役。请在你自己的 Agent 工具里使用 Python CHEK CLI。", "", - "目标:", - "1. 安装 OpenClaw 插件 CHEK CLI", - "2. 安装后重启 Gateway", - "3. 自动拉起浏览器完成 CHEK 授权与设备绑定", - "4. 做一次连通性测试", - "5. 最后告诉我当前状态是否 ready", + "安装:", + "git clone https://github.com/chekdata/chek-cli.git", + "cd chek-cli/packages/chek-cli && python -m pip install -e \".[dev]\"", + "chek config set-env dev", + "chek registry status", "", - "安装命令:", - `openclaw plugins install ${CURRENT_INSTALL_SPEC}`, - "", - "如果插件安装成功但不能自动继续,请立即执行 `/chek-setup`。插件会自动打开浏览器到 CHEK 授权页;浏览器显示“已授权,可返回 OpenClaw”后,回到本地继续等待健康检查完成。", - "如果浏览器授权失败,再退回 `/chek-setup token=` 或 `openclaw chek setup --token `。", + "使用边界:", + "- Cursor、Codex、Claude Code 等能执行本地命令的 Agent 可以直接运行 CHEK CLI。", + "- 普通 ChatGPT、豆包等聊天模式工具先生成草稿和命令,由用户确认或交给可执行 CLI 的 Agent。", + "- 普通 CHEK 登录、房间消息、人工 @、评测、证据、评分、分享和 EGO 上传继续保留。", "", "参考链接:", - "- 插件说明:https://github.com/chekdata/chek-cli#readme", + `- GitHub:${CHEK_CLI_REPOSITORY}`, "- setup skill:https://github.com/chekdata/chek-cli/blob/main/skills/chek-setup/SKILL.md", - "- 浏览器授权说明:https://github.com/chekdata/chek-cli/blob/main/docs/device-code-auth.md", - "- 排障说明:https://github.com/chekdata/chek-cli/blob/main/docs/troubleshooting.md", + "- DEV 接入页:https://app-dev.chekkk.com/#/pages/agentConnect/index", "", - "执行要求:", - "- 如果可以直接执行宿主机命令,就直接完成", - "- 如果某一步需要我人工确认,只在那一步向我索取最小必要信息", - "- 如果无法执行,不要假装成功;请明确说明失败原因、卡住步骤,以及下一条我应该发你的消息", + "执行要求:先读 GitHub 文档和 setup skill,再检查环境与普通 CHEK 登录;不要索取或回传无关 token、验证码、Cookie 或 Authorization header。", ].join("\n"); } diff --git a/src/service.test.ts b/src/service.test.ts index 7d14e13..dd3bf99 100644 --- a/src/service.test.ts +++ b/src/service.test.ts @@ -1,13 +1,5 @@ import { afterEach, describe, expect, it, vi } from "vitest"; -const gatewayCliMocks = vi.hoisted(() => ({ - ensureSession: vi.fn(), - injectSessionNote: vi.fn(), - sendChatPrompt: vi.fn(), -})); - -vi.mock("./gateway-cli.js", () => gatewayCliMocks); - import { parseConfig } from "./config.js"; import { ChekCliController } from "./service.js"; @@ -46,31 +38,13 @@ describe("ChekCliController", () => { vi.clearAllMocks(); }); - it("persists browser authorization results into plugin config", async () => { + it("does not contact retired browser authorization endpoints", async () => { const runtimeConfig = createRuntimeConfig({ backendAppBaseUrl: "https://api-dev.chekkk.com/api/backend-app", authSessionId: "auth-session-1", deviceCode: "ck-12345678", }); - const fetchMock = vi.fn().mockResolvedValue( - new Response( - JSON.stringify({ - id: "auth-session-1", - status: "authorized", - authorizationStatus: "authorized", - authorizedUserOneId: "u-browser", - authorizedDisplayName: "浏览器用户", - authorizedAt: "2026-04-14T20:18:00.000Z", - pluginAccessToken: "ckmu_browser_token", - }), - { - status: 200, - headers: { - "Content-Type": "application/json", - }, - }, - ), - ); + const fetchMock = vi.fn(); vi.stubGlobal("fetch", fetchMock); const controller = new ChekCliController({ @@ -85,153 +59,27 @@ describe("ChekCliController", () => { const session = await controller.syncAuthorizationSession(); - expect(session?.pluginAccessToken).toBe("ckmu_browser_token"); - expect(controller.getConfig().accessToken).toBe("ckmu_browser_token"); - expect(controller.getConfig().authorizationStatus).toBe("authorized"); - expect(controller.getConfig().authorizedDisplayName).toBe("浏览器用户"); - expect(controller.getSnapshot().authorizedUserOneId).toBe("u-browser"); - expect(fetchMock).toHaveBeenCalledTimes(1); - }); - - it("does not block task completion when note injection fails", async () => { - gatewayCliMocks.ensureSession.mockResolvedValue({}); - gatewayCliMocks.injectSessionNote.mockRejectedValue(new Error("gateway closed")); - gatewayCliMocks.sendChatPrompt.mockRejectedValue(new Error("model unavailable")); - - const logger = createLogger(); - const controller = new ChekCliController({ - config: parseConfig({ - backendAppBaseUrl: "https://api-dev.chekkk.com/api/backend-app", - accessToken: "ckmu_test_token", - sessionKey: "agent:main:chek:mentions", - }), - logger, - runtimeConfig: createRuntimeConfig({ - backendAppBaseUrl: "https://api-dev.chekkk.com/api/backend-app", - accessToken: "ckmu_test_token", - sessionKey: "agent:main:chek:mentions", - }), - }); - - const task = { - id: "task-1", - postId: "post-1", - payload: { - postId: "post-1", - postTitle: "Smoke Room", - messageContent: "@CHEK 用户 你先简单介绍一下你会做什么", - mentionedByDisplayName: "Smoke Sender", - }, - }; - const api = { - claimMentionTask: vi.fn().mockResolvedValue(task), - listRoomMessages: vi.fn().mockResolvedValue([]), - sendRoomMessage: vi.fn().mockResolvedValue({}), - completeMentionTask: vi.fn().mockResolvedValue({ status: "completed" }), - failMentionTask: vi.fn().mockResolvedValue({ status: "failed" }), - }; - - await controller["processTask"](api as any, task as any); - await Promise.resolve(); - await Promise.resolve(); - - expect(api.completeMentionTask).toHaveBeenCalledWith( - "task-1", - expect.objectContaining({ - mode: "fallback", - sessionKey: "agent:main:chek:mentions:room:post-1", - intent: "generic", - }), - ); - expect(api.failMentionTask).not.toHaveBeenCalled(); - expect(api.sendRoomMessage).toHaveBeenCalledWith( - "post-1", - "看到了。你可以直接补一句最想让我判断的点,我就按这条继续给你建议。", - ); - expect(controller.getSnapshot().lastTaskId).toBe("task-1"); - expect(gatewayCliMocks.ensureSession).toHaveBeenCalledWith( - "agent:main:chek:mentions:room:post-1", - "CHEK 房间 · Smoke Room · post-1", - ); - expect(gatewayCliMocks.sendChatPrompt).toHaveBeenCalledWith( - "agent:main:chek:mentions:room:post-1", - expect.any(String), - { - sessionLabel: "CHEK 房间 · Smoke Room · post-1", - }, - ); - expect(logger.warn).toHaveBeenCalled(); + expect(session).toBeNull(); + expect(controller.getConfig().accessToken).toBe(""); + expect(controller.getSnapshot().lastError).toContain("已退役"); + expect(fetchMock).not.toHaveBeenCalled(); }); - it("uses direct strategy replies for common publishing asks", async () => { - gatewayCliMocks.ensureSession.mockResolvedValue({}); - gatewayCliMocks.injectSessionNote.mockResolvedValue(undefined); - - const controller = new ChekCliController({ - config: parseConfig({ - backendAppBaseUrl: "https://api-dev.chekkk.com/api/backend-app", - accessToken: "ckmu_test_token", - sessionKey: "agent:main:chek:mentions", - }), - logger: createLogger(), - runtimeConfig: createRuntimeConfig({ - backendAppBaseUrl: "https://api-dev.chekkk.com/api/backend-app", - accessToken: "ckmu_test_token", - sessionKey: "agent:main:chek:mentions", - }), - }); - - const task = { - id: "task-2", - postId: "post-2", - payload: { - postId: "post-2", - postTitle: "动作模型交易", - messageContent: "@CHEK 用户 如果我想求购类似模型,房间里该怎么发更好?", - mentionedByDisplayName: "Buyer", - }, - }; - const api = { - claimMentionTask: vi.fn().mockResolvedValue(task), - listRoomMessages: vi.fn().mockResolvedValue([]), - sendRoomMessage: vi.fn().mockResolvedValue({}), - completeMentionTask: vi.fn().mockResolvedValue({ status: "completed" }), - failMentionTask: vi.fn().mockResolvedValue({ status: "failed" }), - }; - - await controller["processTask"](api as any, task as any); - - expect(gatewayCliMocks.sendChatPrompt).not.toHaveBeenCalled(); - expect(api.sendRoomMessage).toHaveBeenCalledWith( - "post-2", - expect.stringContaining("可以直接发:求购类似动作模型"), - ); - expect(api.completeMentionTask).toHaveBeenCalledWith( - "task-2", - expect.objectContaining({ - mode: "strategy", - intent: "posting_copy", - sessionKey: "agent:main:chek:mentions:room:post-2", - }), - ); - }); }); it.each([ { accessToken: "ckmu_test_token" }, { authSessionId: "old-session", deviceCode: "old-code" }, -])("stops legacy polling permanently on HTTP 410 (%j)", async (credentials) => { +])("does not start legacy polling (%j)", async (credentials) => { const config = { backendAppBaseUrl: "https://api-dev.chekkk.com/api/backend-app", ...credentials }; const controller = new ChekCliController({ config: parseConfig(config), logger: createLogger(), runtimeConfig: createRuntimeConfig(config) }); - const fetchMock = vi.fn().mockResolvedValue(new Response(JSON.stringify({ code: "AGENT_FEATURE_RETIRED", detail: "Use Python CHEK CLI" }), { status: 410 })); + const fetchMock = vi.fn(); vi.stubGlobal("fetch", fetchMock); try { await controller.start(); - await controller["pollOnce"](); - await controller["pollLoop"](); expect(controller.getSnapshot().running).toBe(false); - expect(controller.getSnapshot().lastError).toContain("Use Python CHEK CLI"); - expect(fetchMock).toHaveBeenCalledTimes(1); + expect(controller.getSnapshot().lastError).toContain("已退役"); + expect(fetchMock).not.toHaveBeenCalled(); } finally { await controller.stop(); vi.unstubAllGlobals(); diff --git a/src/service.ts b/src/service.ts index ab74ad5..763d336 100644 --- a/src/service.ts +++ b/src/service.ts @@ -1,35 +1,16 @@ import { promises as fs } from "node:fs"; import path from "node:path"; -import { ChekApiClient, ChekApiError } from "./chek-api.js"; import { isConfigured, parseConfig, resolveAccessToken, withConfigPatch, } from "./config.js"; -import { - ensureSession, - injectSessionNote, - sendChatPrompt, -} from "./gateway-cli.js"; -import { - buildAutoReplyPrompt, - buildFallbackReply, - buildReplyStrategy, - buildRoomSessionKey, - buildRoomSessionLabel, - buildTaskInjectionText, - extractChatReplyText, - selectRoomMessagesForContext, -} from "./render.js"; import type { - BuddyRoomMessage, ControllerSnapshot, BrowserAuthSession, ChekCliConfig, - MentionTask, - ProcessedTaskResult, } from "./types.js"; import type { OpenClawPluginApi } from "./openclaw-types.js"; @@ -40,11 +21,11 @@ type Logger = { error: (message: string) => void; }; -const SESSION_LABEL = "CHEK Mentions"; const PLUGIN_CONFIG_KEY = "chek-cli"; const LEGACY_PLUGIN_CONFIG_KEY = "memor-upload"; const STATUS_FILE_NAME = "chek-cli-status.json"; -const ROOM_CONTEXT_PAGE_SIZE = 100; +const RETIRED_BRIDGE_MESSAGE = + "站内 Agent 执行、专用授权和房间自动回复已退役;请使用 Python CHEK CLI 连接自己的 Agent 工具。"; function nowIso(): string { return new Date().toISOString(); @@ -59,13 +40,9 @@ function summarizeError(error: unknown): string { export class ChekCliController { private config: ChekCliConfig; - private readonly logger: Logger; private readonly runtimeConfig: OpenClawPluginApi["runtime"]["config"]; private readonly snapshot: ControllerSnapshot; - private timer: NodeJS.Timeout | null = null; - private polling = false; private stateDir: string | null = null; - private started = false; constructor(params: { config: ChekCliConfig; @@ -73,7 +50,6 @@ export class ChekCliController { runtimeConfig: OpenClawPluginApi["runtime"]["config"]; }) { this.config = params.config; - this.logger = params.logger; this.runtimeConfig = params.runtimeConfig; this.snapshot = { running: false, @@ -111,19 +87,15 @@ export class ChekCliController { } async start(): Promise { - this.started = true; - this.snapshot.running = true; + // The root TypeScript package remains as a migration shim. It must never + // poll the retired hosted Agent endpoints or create a browser-auth session. + this.snapshot.running = false; + this.snapshot.lastError = RETIRED_BRIDGE_MESSAGE; await this.persistSnapshot(); - this.scheduleNext(250); } async stop(): Promise { - this.started = false; this.snapshot.running = false; - if (this.timer) { - clearTimeout(this.timer); - this.timer = null; - } await this.persistSnapshot(); } @@ -144,9 +116,6 @@ export class ChekCliController { this.snapshot.lastAuthorizedAt = config.lastAuthorizedAt || null; this.snapshot.lastError = null; await this.persistSnapshot(); - if (this.started) { - this.scheduleNext(250); - } } async persistConfigPatch(patch: Partial): Promise { @@ -183,293 +152,18 @@ export class ChekCliController { } async syncAuthorizationSession(): Promise { - const authSessionId = this.config.authSessionId.trim(); - const deviceCode = this.config.deviceCode.trim(); - if (!authSessionId || !deviceCode) { - return null; - } - const api = new ChekApiClient({ - baseUrl: this.config.backendAppBaseUrl, - }); - const session = await api.pollBrowserAuthSession(authSessionId, deviceCode); - const patch: Partial = { - authorizationStatus: String( - session.authorizationStatus || session.status || this.config.authorizationStatus, - ).trim(), - authorizationUrl: String(session.authorizationUrl || this.config.authorizationUrl || "").trim(), - authorizedUserOneId: String( - session.authorizedUserOneId || this.config.authorizedUserOneId || "", - ).trim(), - authorizedDisplayName: String( - session.authorizedDisplayName || this.config.authorizedDisplayName || "", - ).trim(), - lastAuthorizedAt: String(session.authorizedAt || this.config.lastAuthorizedAt || "").trim(), - }; - const pluginAccessToken = String(session.pluginAccessToken || "").trim(); - if (pluginAccessToken) { - patch.accessToken = pluginAccessToken; - } - await this.persistConfigPatch(patch); - return session; + this.snapshot.lastError = RETIRED_BRIDGE_MESSAGE; + await this.persistSnapshot(); + return null; } async runHealthCheck(): Promise<{ backend: string; gateway: string }> { - let accessToken = resolveAccessToken(this.config); - if (!accessToken && this.config.authSessionId.trim() && this.config.deviceCode.trim()) { - await this.syncAuthorizationSession(); - accessToken = resolveAccessToken(this.config); - } - if (!accessToken) { - throw new Error("CHEK access token is not configured."); - } - const api = new ChekApiClient({ - baseUrl: this.config.backendAppBaseUrl, - accessToken, - }); - await api.probe(); - await ensureSession(this.config.sessionKey, SESSION_LABEL); return { - backend: "ok", - gateway: "ok", + backend: "retired", + gateway: "use-python-cli", }; } - private injectSessionNoteForKeyBestEffort( - sessionKey: string, - message: string, - label: string, - ): void { - void injectSessionNote(sessionKey, message, label).catch((error) => { - this.logger.warn( - `[chek-cli] failed to inject ${label} note: ${summarizeError(error)}`, - ); - }); - } - - private scheduleNext(delayMs: number): void { - if (!this.started) { - return; - } - if (this.timer) { - clearTimeout(this.timer); - } - this.timer = setTimeout(() => { - void this.pollLoop(); - }, delayMs); - } - - private async pollLoop(): Promise { - if (!this.started || this.polling) { - return; - } - this.polling = true; - try { - await this.pollOnce(); - } finally { - this.polling = false; - this.scheduleNext(this.config.pollIntervalMs); - } - } - - private async pollOnce(): Promise { - this.snapshot.lastPollAt = nowIso(); - this.snapshot.lastError = null; - this.snapshot.configured = isConfigured(this.config); - this.snapshot.accessTokenConfigured = Boolean(resolveAccessToken(this.config)); - await this.persistSnapshot(); - - if (!this.config.enabled) { - return; - } - let accessToken = resolveAccessToken(this.config); - if (!accessToken) { - if (this.config.authSessionId.trim() && this.config.deviceCode.trim()) { - try { - const session = await this.syncAuthorizationSession(); - const sessionStatus = String(session?.authorizationStatus || session?.status || "").trim(); - if (String(session?.pluginAccessToken || "").trim()) { - this.snapshot.lastSuccessAt = nowIso(); - this.snapshot.lastError = null; - accessToken = resolveAccessToken(this.config); - } else if (sessionStatus === "pending") { - this.snapshot.lastError = "Waiting for browser authorization."; - } else if (sessionStatus) { - this.snapshot.lastError = `Browser authorization status: ${sessionStatus}`; - } else { - this.snapshot.lastError = "CHEK browser authorization has not completed yet."; - } - } catch (error) { - this.snapshot.lastError = summarizeError(error); - if (error instanceof ChekApiError && error.status === 410) { - await this.stop(); - } - } - } else { - this.snapshot.lastError = "CHEK access token is not configured."; - } - if (!accessToken) { - await this.persistSnapshot(); - return; - } - } - - const api = new ChekApiClient({ - baseUrl: this.config.backendAppBaseUrl, - accessToken, - }); - - try { - const tasks = await api.listPendingMentionTasks(20); - this.snapshot.lastSuccessAt = nowIso(); - await this.persistSnapshot(); - for (const task of [...tasks].reverse()) { - await this.processTask(api, task); - } - } catch (error) { - this.snapshot.lastError = summarizeError(error); - if (error instanceof ChekApiError && error.status === 410) { - await this.stop(); - } - this.logger.error(`[chek-cli] poll failed: ${this.snapshot.lastError}`); - await this.persistSnapshot(); - } - } - - private async processTask(api: ChekApiClient, task: MentionTask): Promise { - let claimedTask: MentionTask | null = null; - const postId = String(task.payload.postId || task.postId || "").trim(); - const taskSessionKey = postId - ? buildRoomSessionKey(this.config.sessionKey, postId) - : this.config.sessionKey; - const taskSessionLabel = postId ? buildRoomSessionLabel(task) : SESSION_LABEL; - try { - claimedTask = await api.claimMentionTask(task.id); - } catch (error) { - if (error instanceof ChekApiError && error.status === 409) { - return; - } - throw error; - } - - try { - if (!postId) { - throw new Error(`Task ${task.id} is missing postId.`); - } - - const roomMessages = await this.loadRoomMessages(api, task, postId); - await ensureSession(taskSessionKey, taskSessionLabel); - this.injectSessionNoteForKeyBestEffort( - taskSessionKey, - buildTaskInjectionText(task, roomMessages), - "CHEK @", - ); - - const processed = await this.generateReply( - task, - roomMessages, - taskSessionKey, - taskSessionLabel, - ); - await api.sendRoomMessage(postId, processed.reply); - await api.completeMentionTask(task.id, { - reply: processed.reply, - mode: processed.mode, - sessionKey: processed.sessionKey, - intent: processed.intent, - }); - - this.snapshot.lastTaskAt = nowIso(); - this.snapshot.lastTaskId = task.id; - this.snapshot.lastSuccessAt = nowIso(); - this.injectSessionNoteForKeyBestEffort( - taskSessionKey, - `已自动回复到《${task.payload.postTitle || postId}》:${processed.reply}`, - "CHEK 已发送", - ); - await this.persistSnapshot(); - } catch (error) { - const reason = summarizeError(error); - this.snapshot.lastError = reason; - await this.persistSnapshot(); - this.injectSessionNoteForKeyBestEffort(taskSessionKey, `自动回复失败:${reason}`, "CHEK 失败"); - if (claimedTask) { - try { - await api.failMentionTask(task.id, { - error: reason, - sessionKey: taskSessionKey, - }); - } catch (failError) { - this.logger.error( - `[chek-cli] failed to mark task ${task.id} as failed: ${summarizeError(failError)}`, - ); - } - } - } - } - - private async loadRoomMessages( - api: ChekApiClient, - task: MentionTask, - postId: string, - ): Promise { - try { - const messages = await api.listRoomMessages(postId, ROOM_CONTEXT_PAGE_SIZE); - return selectRoomMessagesForContext(task, messages); - } catch (error) { - this.logger.warn( - `[chek-cli] failed to load room context for ${postId}: ${summarizeError(error)}`, - ); - return selectRoomMessagesForContext(task, []); - } - } - - private async generateReply( - task: MentionTask, - roomMessages: BuddyRoomMessage[], - sessionKey: string, - sessionLabel: string, - ): Promise { - const strategy = buildReplyStrategy(task, roomMessages); - if (strategy.directReply) { - return { - reply: strategy.directReply, - mode: "strategy", - sessionKey, - intent: strategy.intent, - }; - } - - const prompt = buildAutoReplyPrompt(task, roomMessages); - try { - const result = await sendChatPrompt(sessionKey, prompt, { - sessionLabel, - }); - const reply = extractChatReplyText(result); - if (!reply) { - throw new Error("OpenClaw returned an empty reply."); - } - return { - reply, - mode: "model", - sessionKey, - intent: strategy.intent, - }; - } catch (error) { - const fallbackReply = buildFallbackReply(task, roomMessages); - this.injectSessionNoteForKeyBestEffort( - sessionKey, - `本地模型生成失败,已使用兜底回复:${summarizeError(error)}`, - "CHEK 兜底", - ); - return { - reply: fallbackReply, - mode: "fallback", - sessionKey, - intent: strategy.intent, - }; - } - } - private async persistSnapshot(): Promise { if (!this.stateDir) { return; From 98de19be38d1efc77b02c83541a83d78c92a0bba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=AA=E6=B3=BD=E9=91=AB?= Date: Sun, 25 Oct 2026 03:55:00 +0800 Subject: [PATCH 3/4] fix: preserve cli registry command identities --- README.en.md | 12 +- README.md | 12 +- .../frontend_app/generated/registry.json | 168 +++++++++--------- .../scripts/generate_openapi_registry.py | 10 ++ packages/chek-cli/tests/test_cli.py | 12 +- 5 files changed, 117 insertions(+), 97 deletions(-) diff --git a/README.en.md b/README.en.md index a7f28ff..74094b1 100644 --- a/README.en.md +++ b/README.en.md @@ -175,12 +175,12 @@ The bundled registry is generated from CHEK backend OpenAPI specs. | Service | What it powers | Resources | Operations | | --- | --- | ---: | ---: | -| `auth` | login, SMS/password/token auth, user info, scope checks, role/resource APIs, share tokens | 25 | 86 | -| `backend-app` | rooms, mentions, discovery, media, assets, humanoid app views, observability | generated | generated | -| `backend-saas` | vehicle metrics, reports, NOA journeys, rankings, report subscriptions, special points | 14 | 85 | -| `crowd` | capture readiness, session catalog, benchmark releases, review queues, public orders | 7 | 127 | -| `humanoid` | robot records, config versions, governance, edits, audit history | 6 | 21 | -| `vehicle` | vehicle search, detail, diff, raw params, software versions, upload/sign flows | 6 | 39 | +| `auth` | login, SMS/password/token auth, user info, scope checks, role/resource APIs, share tokens | 26 | 94 | +| `backend-app` | rooms, mentions, discovery, media, assets, humanoid app views, observability | 25 | 104 | +| `backend-saas` | vehicle metrics, reports, NOA journeys, rankings, report subscriptions, special points | 16 | 91 | +| `crowd` | capture readiness, session catalog, benchmark releases, review queues, public orders | 21 | 267 | +| `humanoid` | robot records, config versions, governance, edits, audit history | 7 | 25 | +| `vehicle` | vehicle search, detail, diff, raw params, software versions, upload/sign flows | 6 | 40 | | **Total** | Agent-operable CHEK backend surface | **101** | **621** | ## Useful Commands diff --git a/README.md b/README.md index 4794ecc..ecaa5e3 100644 --- a/README.md +++ b/README.md @@ -422,12 +422,12 @@ chek backend-app humanoid leaderboards --dry-run | 服务 | 支撑的产品能力 | 资源数 | Operation 数 | | --- | --- | ---: | ---: | -| `auth` | 登录、短信/密码/token、用户信息、scope 检查、角色/资源、分享 token | 25 | 86 | -| `backend-app` | 房间、发现流、媒体、资产、人形机器人 App 视图、观测数据(生成快照含已退役接口) | 27 | 135 | -| `backend-saas` | 车型指标、报告、NOA 行程、榜单、报告订阅、特殊点 | 14 | 85 | -| `crowd` | 采集就绪、session catalog、benchmark release、审核队列、公开订单 | 7 | 127 | -| `humanoid` | 机器人记录、配置版本、治理、编辑、审计历史 | 6 | 21 | -| `vehicle` | 车型搜索、详情、diff、原始参数、软件版本、上传/签名链路 | 6 | 39 | +| `auth` | 登录、短信/密码/token、用户信息、scope 检查、角色/资源、分享 token | 26 | 94 | +| `backend-app` | 房间、发现流、媒体、资产、人形机器人 App 视图、观测数据(生成快照含已退役接口) | 25 | 104 | +| `backend-saas` | 车型指标、报告、NOA 行程、榜单、报告订阅、特殊点 | 16 | 91 | +| `crowd` | 采集就绪、session catalog、benchmark release、审核队列、公开订单 | 21 | 267 | +| `humanoid` | 机器人记录、配置版本、治理、编辑、审计历史 | 7 | 25 | +| `vehicle` | 车型搜索、详情、diff、原始参数、软件版本、上传/签名链路 | 6 | 40 | | **合计** | Agent 可操作的 CHEK 后端面 | **101** | **621** | 常用 registry 和原始调用命令: diff --git a/packages/chek-cli/cli_anything/frontend_app/generated/registry.json b/packages/chek-cli/cli_anything/frontend_app/generated/registry.json index 0394eaf..df50731 100644 --- a/packages/chek-cli/cli_anything/frontend_app/generated/registry.json +++ b/packages/chek-cli/cli_anything/frontend_app/generated/registry.json @@ -1,7 +1,7 @@ { "_meta": { "failedSources": [], - "generatedAt": "2026-10-24T17:10:55.794461+00:00", + "generatedAt": "2026-10-24T19:51:25.189074+00:00", "generator": "scripts/generate_openapi_registry.py", "operationCount": 621, "serviceCount": 6, @@ -54639,6 +54639,62 @@ ] }, "egoDatasetOrders": { + "description": "Get public EGO dataset order detail", + "httpMethod": "GET", + "operationId": "get_public_ego_dataset_order_detail_v1_public_ego_dataset_orders__order_id__get", + "parameters": [ + { + "description": null, + "location": "path", + "name": "order_id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "path": "/api/crowd-control/v1/public/ego-dataset/orders/{order_id}", + "pathParameters": [ + "order_id" + ], + "queryParameters": [], + "requestBody": null, + "responses": { + "200": { + "contentTypes": [ + "application/json" + ], + "description": "Successful Response", + "schema": { + "application/json": { + "$ref": "#/components/schemas/PublicEgoDatasetOrderRead" + } + } + }, + "422": { + "contentTypes": [ + "application/json" + ], + "description": "Validation Error", + "schema": { + "application/json": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + } + }, + "security": null, + "source": { + "rawPath": "/v1/public/ego-dataset/orders/{order_id}", + "service": "crowd", + "servicePath": "/api/crowd-control" + }, + "summary": "Get public EGO dataset order detail", + "tags": [ + "catalog" + ] + }, + "egoDatasetOrdersGet": { "description": "List current user's public EGO dataset orders", "httpMethod": "GET", "operationId": "list_my_public_ego_dataset_orders_v1_public_ego_dataset_orders_get", @@ -54754,62 +54810,6 @@ "catalog" ] }, - "egoDatasetOrdersGet": { - "description": "Get public EGO dataset order detail", - "httpMethod": "GET", - "operationId": "get_public_ego_dataset_order_detail_v1_public_ego_dataset_orders__order_id__get", - "parameters": [ - { - "description": null, - "location": "path", - "name": "order_id", - "required": true, - "schema": { - "type": "string" - } - } - ], - "path": "/api/crowd-control/v1/public/ego-dataset/orders/{order_id}", - "pathParameters": [ - "order_id" - ], - "queryParameters": [], - "requestBody": null, - "responses": { - "200": { - "contentTypes": [ - "application/json" - ], - "description": "Successful Response", - "schema": { - "application/json": { - "$ref": "#/components/schemas/PublicEgoDatasetOrderRead" - } - } - }, - "422": { - "contentTypes": [ - "application/json" - ], - "description": "Validation Error", - "schema": { - "application/json": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - } - }, - "security": null, - "source": { - "rawPath": "/v1/public/ego-dataset/orders/{order_id}", - "service": "crowd", - "servicePath": "/api/crowd-control" - }, - "summary": "Get public EGO dataset order detail", - "tags": [ - "catalog" - ] - }, "egoDatasetOrdersPaymentCallback": { "description": "Record public EGO dataset payment callback", "httpMethod": "POST", @@ -71642,12 +71642,25 @@ "tags": [] }, "editsPost": { - "description": "提交车型创建申请", + "description": "提交车型编辑申请", "httpMethod": "POST", - "operationId": "submit_create_vehicle_api_vehicles_edits_post", - "parameters": [], - "path": "/api/vms/api/vehicles/edits", - "pathParameters": [], + "operationId": "submit_edit_api_vehicles__id__edits_post", + "parameters": [ + { + "description": "车型主键 ID(Mongo ObjectId)。", + "location": "path", + "name": "id", + "required": true, + "schema": { + "description": "车型主键 ID(Mongo ObjectId)。", + "type": "string" + } + } + ], + "path": "/api/vms/api/vehicles/{id}/edits", + "pathParameters": [ + "id" + ], "queryParameters": [], "requestBody": { "contentTypes": [ @@ -71686,33 +71699,20 @@ }, "security": null, "source": { - "rawPath": "/api/vehicles/edits", + "rawPath": "/api/vehicles/{id}/edits", "service": "vehicle", "servicePath": "/api/vms" }, - "summary": "提交车型创建申请", + "summary": "提交车型编辑申请", "tags": [] }, "editsPost2": { - "description": "提交车型编辑申请", + "description": "提交车型创建申请", "httpMethod": "POST", - "operationId": "submit_edit_api_vehicles__id__edits_post", - "parameters": [ - { - "description": "车型主键 ID(Mongo ObjectId)。", - "location": "path", - "name": "id", - "required": true, - "schema": { - "description": "车型主键 ID(Mongo ObjectId)。", - "type": "string" - } - } - ], - "path": "/api/vms/api/vehicles/{id}/edits", - "pathParameters": [ - "id" - ], + "operationId": "submit_create_vehicle_api_vehicles_edits_post", + "parameters": [], + "path": "/api/vms/api/vehicles/edits", + "pathParameters": [], "queryParameters": [], "requestBody": { "contentTypes": [ @@ -71751,11 +71751,11 @@ }, "security": null, "source": { - "rawPath": "/api/vehicles/{id}/edits", + "rawPath": "/api/vehicles/edits", "service": "vehicle", "servicePath": "/api/vms" }, - "summary": "提交车型编辑申请", + "summary": "提交车型创建申请", "tags": [] }, "editsReject": { diff --git a/packages/chek-cli/scripts/generate_openapi_registry.py b/packages/chek-cli/scripts/generate_openapi_registry.py index daf6817..7403234 100755 --- a/packages/chek-cli/scripts/generate_openapi_registry.py +++ b/packages/chek-cli/scripts/generate_openapi_registry.py @@ -17,6 +17,15 @@ HTTP_METHODS = {"get", "post", "put", "patch", "delete", "head", "options"} VERSION_SEGMENT = re.compile(r"^v\d+(\.\d+)?$", re.I) +# These names are already used by released CLI commands. Keep them stable when +# a newly added collection route collides with an existing item route. +PRESERVED_METHOD_KEYS = { + ("vehicle", "/api/vehicles/{id}/edits", "post"): "editsPost", + ("vehicle", "/api/vehicles/edits", "post"): "editsPost2", + ("crowd", "/v1/public/ego-dataset/orders/{order_id}", "get"): "egoDatasetOrders", + ("crowd", "/v1/public/ego-dataset/orders", "get"): "egoDatasetOrdersGet", +} + DEFAULT_SOURCES = [ { "service": "auth", @@ -233,6 +242,7 @@ def build_service_registry(source: dict[str, Any], spec: dict[str, Any]) -> tupl seen.add(dedupe_key) resource_key, method_key = derive_resource_method(service_path, path, method_l) + method_key = PRESERVED_METHOD_KEYS.get((source["service"], raw_path, method_l), method_key) resource = resources.setdefault(resource_key, {"methods": {}}) methods = resource["methods"] method_key = unique_method_key(methods, method_key, method_l) diff --git a/packages/chek-cli/tests/test_cli.py b/packages/chek-cli/tests/test_cli.py index a44ddc4..65c8987 100644 --- a/packages/chek-cli/tests/test_cli.py +++ b/packages/chek-cli/tests/test_cli.py @@ -2,7 +2,7 @@ import pytest from cli_anything.frontend_app.frontend_cli import main -from cli_anything.frontend_app.registry import REGISTRY_META +from cli_anything.frontend_app.registry import REGISTRY, REGISTRY_META @pytest.fixture(autouse=True) @@ -59,6 +59,16 @@ def test_openapi_registry_coverage(): assert set(REGISTRY_META["sources"]) == {"auth", "backend-app", "backend-saas", "crowd", "humanoid", "vehicle"} +def test_registry_preserves_existing_business_command_identities(): + vehicle_methods = REGISTRY["vehicle"]["resources"]["vehicles"]["methods"] + assert vehicle_methods["editsPost"]["path"] == "/api/vms/api/vehicles/{id}/edits" + assert vehicle_methods["editsPost2"]["path"] == "/api/vms/api/vehicles/edits" + + crowd_methods = REGISTRY["crowd"]["resources"]["public"]["methods"] + assert crowd_methods["egoDatasetOrders"]["path"].endswith("/orders/{order_id}") + assert crowd_methods["egoDatasetOrdersGet"]["path"].endswith("/orders") + + def test_raw_api_dry_run_json(): runner = CliRunner() result = runner.invoke(main, ["--json", "api", "GET", "/api/backend-app/login/checkToken", "--dry-run"]) From 32fc6f4debb95e49b77ab5a04511c51075bd46d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=AA=E6=B3=BD=E9=91=AB?= Date: Sun, 25 Oct 2026 04:02:38 +0800 Subject: [PATCH 4/4] fix: preserve cli token during migration setup --- dist/commands.js | 5 ++-- src/commands.test.ts | 71 ++++++++++++++++++++++++++++++++++++++++++++ src/commands.ts | 5 ++-- 3 files changed, 75 insertions(+), 6 deletions(-) create mode 100644 src/commands.test.ts diff --git a/dist/commands.js b/dist/commands.js index 7ec3499..6488e74 100644 --- a/dist/commands.js +++ b/dist/commands.js @@ -58,12 +58,11 @@ async function ensureBaseSetup(controller, patch) { }); } async function runSetup(controller, patch) { - // Keep a disabled entry for older hosts, but never save or use an old - // browser-auth token/session. Authentication belongs to the Python CLI. + // Keep a disabled entry for older hosts, clear only the retired browser + // authorization state, and preserve any ordinary CHEK token for migration. const savedConfig = await ensureBaseSetup(controller, { ...patch, enabled: false, - accessToken: "", authSessionId: "", deviceCode: "", authorizationStatus: "retired", diff --git a/src/commands.test.ts b/src/commands.test.ts new file mode 100644 index 0000000..34744ec --- /dev/null +++ b/src/commands.test.ts @@ -0,0 +1,71 @@ +import { describe, expect, it } from "vitest"; + +import { registerChekCliCommands } from "./commands.js"; +import { parseConfig } from "./config.js"; +import { ChekCliController } from "./service.js"; +import type { OpenClawPluginApi, PluginCommandContext, ReplyPayload } from "./openclaw-types.js"; + +function createLogger() { + return { + info: () => undefined, + warn: () => undefined, + error: () => undefined, + debug: () => undefined, + }; +} + +describe("migration commands", () => { + it("preserves an ordinary CHEK token while clearing retired auth state", async () => { + let runtimeConfig: Record = { + plugins: { + entries: { + "memor-upload": { + config: { + accessToken: "ordinary-token", + authSessionId: "retired-session", + deviceCode: "retired-device", + }, + }, + }, + }, + }; + let setupHandler: + | ((ctx: PluginCommandContext) => ReplyPayload | Promise) + | undefined; + const api = { + logger: createLogger(), + runtime: { + config: { + loadConfig: () => runtimeConfig, + writeConfigFile: async (next: Record) => { + runtimeConfig = next; + }, + }, + }, + registerCommand: (definition: Parameters[0]) => { + if (definition.name === "chek-setup") setupHandler = definition.handler; + }, + registerCli: () => undefined, + registerService: () => undefined, + } satisfies OpenClawPluginApi; + const controller = new ChekCliController({ + config: parseConfig({ accessToken: "ordinary-token", authSessionId: "retired-session" }), + logger: createLogger(), + runtimeConfig: api.runtime.config, + }); + + registerChekCliCommands(api, controller); + expect(setupHandler).toBeDefined(); + await setupHandler?.({ + channel: "test", + isAuthorizedSender: true, + commandBody: "/chek-setup", + config: {}, + }); + + const entries = (runtimeConfig.plugins as { entries: Record }> }).entries; + expect(entries["chek-cli"].config.accessToken).toBe("ordinary-token"); + expect(entries["chek-cli"].config.authSessionId).toBe(""); + expect(entries["chek-cli"].config.deviceCode).toBe(""); + }); +}); diff --git a/src/commands.ts b/src/commands.ts index b42c671..03a90f4 100644 --- a/src/commands.ts +++ b/src/commands.ts @@ -74,12 +74,11 @@ async function runSetup( controller: ChekCliController, patch: Partial, ): Promise { - // Keep a disabled entry for older hosts, but never save or use an old - // browser-auth token/session. Authentication belongs to the Python CLI. + // Keep a disabled entry for older hosts, clear only the retired browser + // authorization state, and preserve any ordinary CHEK token for migration. const savedConfig = await ensureBaseSetup(controller, { ...patch, enabled: false, - accessToken: "", authSessionId: "", deviceCode: "", authorizationStatus: "retired",