aiui-cloud-apis
Installation
SKILL.md
AIUI Cloud OpenAPI
Use this skill for AIUI app/page code that calls the agent-facing Rokid OpenAPI through the built-in open runtime module. Server-side integrations use separate documentation.
Start here
import { createOpenAPI } from 'open';
const api = await createOpenAPI();
openis a QuickJS/Ink runtime built-in, not an npm package.- Do not import from
@yodaos-pkg/ink, callfetch('/openapi/...'), or assumeapiis global. - Guard import, initialization, and API calls with
try/catch. - The runtime injects authentication. Do not manually pass or log
access_tokenorx-request-agent-id. - Operations with a request body require the exact
{ body: requestBody }wrapper. No-body operations receive no argument.