跳到主要内容

AppRuntimeConfig

schemaVersionstring必填

取值约束: 须匹配正则表达式 ^1\.0\.0$

templateCodestring必填

取值约束: 非空

templateVersionstring必填

取值约束: 非空

minContainerVersionstring必填

取值约束: 非空

publishVersioninteger必填

取值约束: >= 1

publishedAtstring必填

取值约束: 非空

configDigeststring必填

取值约束: 须匹配正则表达式 ^[0-9a-f]{64}$

projectCodestring必填

取值约束: 须匹配正则表达式 ^ap_[a-z0-9]{16}$

brand object必填
appNamestring必填

取值约束: 非空 and <= 40 个字符

logoUrlstring<uri>
splashUrlstring<uri>
darkModeboolean
theme object必填
primaryColorstring必填

取值约束: 须匹配正则表达式 ^#[0-9A-Fa-f]{6}$

backgroundColorstring必填

取值约束: 须匹配正则表达式 ^#[0-9A-Fa-f]{6}$

textColorstring必填

取值约束: 须匹配正则表达式 ^#[0-9A-Fa-f]{6}$

tabs object[]
  • Array [
  • keystring必填

    取值约束: 非空

    moduleKeystring必填

    取值约束: 非空

    iconstring

    取值约束: 非空

    label object必填
    property name*string
  • ]
  • api object

    兼容历史发布快照;运行服务地址由构建启动参数注入,新快照不再生成该字段。

    baseUrlstring<uri>必填
    runtimeApi object必填
    configPathstring必填

    取值约束: 须匹配正则表达式 ^/v1/app-runtime/config$

    sendCodePathstring必填

    取值约束: 须匹配正则表达式 ^/v1/app-runtime/auth/send-code$

    loginPathstring必填

    取值约束: 须匹配正则表达式 ^/v1/app-runtime/auth/login$

    refreshPathstring必填

    取值约束: 须匹配正则表达式 ^/v1/app-runtime/auth/refresh$

    deviceListPathstring必填

    取值约束: 须匹配正则表达式 ^/v1/app-runtime/device/list$

    deviceLocatePathstring必填

    取值约束: 须匹配正则表达式 ^/v1/app-runtime/device/locate$

    devicePairingTokenPathstring必填

    取值约束: 须匹配正则表达式 ^/v1/app-runtime/device/pairing-token$

    deviceBindPathstring必填

    取值约束: 须匹配正则表达式 ^/v1/app-runtime/device/bind$

    deviceMoveRoomPathstring必填

    取值约束: 须匹配正则表达式 ^/v1/app-runtime/device/move-room$

    deviceDetailPathstring必填

    取值约束: 须匹配正则表达式 ^/v1/app-runtime/device/detail$

    deviceRuntimeStatusPathstring必填

    取值约束: 须匹配正则表达式 ^/v1/app-runtime/device-runtime/\{deviceId\}/status$

    deviceShadowPathstring必填

    取值约束: 须匹配正则表达式 ^/v1/app-runtime/device-control/shadow$

    devicePropertySetPathstring必填

    取值约束: 须匹配正则表达式 ^/v1/app-runtime/device-control/property/set$

    deviceActionCallPathstring必填

    取值约束: 须匹配正则表达式 ^/v1/app-runtime/device-control/action/call$

    deviceCommandGetPathstring必填

    取值约束: 须匹配正则表达式 ^/v1/app-runtime/device-control/command/get$

    deviceCommandPagePathstring必填

    取值约束: 须匹配正则表达式 ^/v1/app-runtime/device-control/command/page$

    panelSchemaPathstring必填

    取值约束: 须匹配正则表达式 ^/v1/app-runtime/panel-schema/by-device$

    messagePagePathstring必填

    取值约束: 须匹配正则表达式 ^/v1/app-runtime/message/page$

    messageReadPathstring必填

    取值约束: 须匹配正则表达式 ^/v1/app-runtime/message/read$

    messageUnreadCountPathstring必填

    取值约束: 须匹配正则表达式 ^/v1/app-runtime/message/unread-count$

    pushRegisterPathstring必填

    取值约束: 须匹配正则表达式 ^/v1/app-runtime/push/register$

    pushUnregisterPathstring必填

    取值约束: 须匹配正则表达式 ^/v1/app-runtime/push/unregister$

    appUpgradeCheckPathstring

    取值约束: 须匹配正则表达式 ^/v1/app-runtime/app-upgrade/check$

    appUpgradeEventPathstring

    取值约束: 须匹配正则表达式 ^/v1/app-runtime/app-upgrade/event$

    accountProfilePathstring必填

    取值约束: 须匹配正则表达式 ^/v1/app-runtime/account/profile$

    accountProfileUpdatePathstring必填

    取值约束: 须匹配正则表达式 ^/v1/app-runtime/account/profile/update$

    accountAvatarUploadPathstring必填

    取值约束: 须匹配正则表达式 ^/v1/app-runtime/account/profile/avatar/upload$

    accountPasswordUpdatePathstring必填

    取值约束: 须匹配正则表达式 ^/v1/app-runtime/account/password/update$

    wsTicketPathstring必填

    取值约束: 须匹配正则表达式 ^/v1/app-runtime/device/ws-ticket$

    agentWsTicketPathstring必填

    取值约束: 须匹配正则表达式 ^/v1/app-runtime/agent/ws-ticket$

    accountDeletePathstring必填

    取值约束: 须匹配正则表达式 ^/v1/app-runtime/account/delete$

    privacyStatusPathstring必填

    取值约束: 须匹配正则表达式 ^/v1/app-runtime/privacy/status$

    privacyConsentPathstring必填

    取值约束: 须匹配正则表达式 ^/v1/app-runtime/privacy/consent$

    privacyWithdrawPathstring必填

    取值约束: 须匹配正则表达式 ^/v1/app-runtime/privacy/withdraw$

    homeListPathstring必填

    取值约束: 须匹配正则表达式 ^/v1/app-runtime/home/list$

    homeCreatePathstring必填

    取值约束: 须匹配正则表达式 ^/v1/app-runtime/home/create$

    homeTransferPathstring必填

    取值约束: 须匹配正则表达式 ^/v1/app-runtime/home/transfer$

    roomListPathstring必填

    取值约束: 须匹配正则表达式 ^/v1/app-runtime/home/room/list$

    roomCreatePathstring必填

    取值约束: 须匹配正则表达式 ^/v1/app-runtime/home/room/create$

    homeMemberListPathstring必填

    取值约束: 须匹配正则表达式 ^/v1/app-runtime/home/member/list$

    homeMemberInvitePathstring必填

    取值约束: 须匹配正则表达式 ^/v1/app-runtime/home/member/invite$

    homeMemberRemovePathstring必填

    取值约束: 须匹配正则表达式 ^/v1/app-runtime/home/member/remove$

    homeInviteListPathstring必填

    取值约束: 须匹配正则表达式 ^/v1/app-runtime/home/invite/list$

    homeInviteAcceptPathstring必填

    取值约束: 须匹配正则表达式 ^/v1/app-runtime/home/invite/accept$

    homeInviteRejectPathstring必填

    取值约束: 须匹配正则表达式 ^/v1/app-runtime/home/invite/reject$

    healthMetricsPathstring

    可选:健康指标查询路径(health-dashboard 模块),缺省 /v1/app-runtime/health/metrics;后端已实现(AppRuntimeHealthController)。

    取值约束: 须匹配正则表达式 ^/v1/app-runtime/health/metrics$

    parentalControlPolicyPathstring

    可选:家长管控策略读取/保存路径(parental-control 模块,GET/PUT 同一路径),缺省 /v1/app-runtime/parental-control/policy。

    取值约束: 须匹配正则表达式 ^/v1/app-runtime/parental-control/policy$

    growthReportListPathstring

    可选:成长报告查询路径(growth-report 模块),缺省 /v1/app-runtime/growth-report/list。

    取值约束: 须匹配正则表达式 ^/v1/app-runtime/growth-report/list$

    cloudDrivePagePathstring

    可选:云盘分页查询路径(cloud-drive 模块),缺省 /v1/app-runtime/cloud-drive/page;后端已实现(AppRuntimeCloudDriveController)。

    取值约束: 须匹配正则表达式 ^/v1/app-runtime/cloud-drive/page$

    cloudDriveUploadPathstring

    可选:云盘上传路径(cloud-drive 模块,multipart 后端中转),缺省 /v1/app-runtime/cloud-drive/upload。

    取值约束: 须匹配正则表达式 ^/v1/app-runtime/cloud-drive/upload$

    cloudDriveDeletePathstring

    可选:云盘删除路径(cloud-drive 模块),缺省 /v1/app-runtime/cloud-drive/delete。

    取值约束: 须匹配正则表达式 ^/v1/app-runtime/cloud-drive/delete$

    platforms object必填
    android object必填
    enabledboolean必填
    appIdentifierstring | null可为空必填
    templateVersionstring必填

    取值约束: 非空

    minContainerVersionstring必填

    取值约束: 非空

    supportedPairingMethodsstring[]必填

    取值约束: [qrCode, snInput, ble, softAp, matter]

    ios object必填
    enabledboolean必填
    appIdentifierstring | null可为空必填
    templateVersionstring必填

    取值约束: 非空

    minContainerVersionstring必填

    取值约束: 非空

    supportedPairingMethodsstring[]必填

    取值约束: [qrCode, snInput, ble, softAp, matter]

    harmonyos object必填
    enabledboolean必填
    appIdentifierstring | null可为空必填
    templateVersionstring必填

    取值约束: 非空

    minContainerVersionstring必填

    取值约束: 非空

    supportedPairingMethodsstring[]必填

    取值约束: [qrCode, snInput, ble, softAp, matter]

    privacy object必填
    policyVersionstring必填

    取值约束: 非空

    policyUpdatedAtstring

    取值约束: 非空

    privacyPolicyUrlstring<uri>必填
    userAgreementUrlstring<uri>必填
    requiredPermissionsstring[]必填

    取值约束: [camera, microphone, bluetooth, location, localNetwork, notification]

    localization object必填
    defaultLocalestring必填

    取值约束: 须匹配正则表达式 ^[a-z]{2}-[A-Z]{2}$

    supportedLocalesstring[]必填

    取值约束: >= 1

    observability object
    sentry object
    enabledboolean必填
    dsnstring<uri>
    environmentstring

    取值约束: 非空 and <= 40 个字符

    tracesSampleRatenumber

    取值约束: >= 0 and <= 1

    moduleConfig object必填

    模块组合配置:{ moduleKey: { included, enabled, config? } }。included 控制是否编入构建产物(裁剪层),enabled 控制运行时可见性(开关层)。

    property name* object
    includedboolean必填
    enabledboolean必填
    config object

    模块配置;local-ai 任务支持 modelIds 多选与 modelVersions 按模型指定版本,modelId/modelVersion 保留为活动模型兼容字段。

    asr object

    端侧 AI 单项能力配置。modelIds 按顺序表示可用模型,modelId 表示默认/当前活动模型。

    enabledboolean
    modelIdstring

    取值约束: 须匹配正则表达式 ^[a-z0-9][a-z0-9._-]*$

    modelVersionstring

    取值约束: 须匹配正则表达式 ^[A-Za-z0-9][A-Za-z0-9._+-]*$

    modelIdsstring[]

    取值约束: >= 1

    modelVersions object
    property name*string

    取值约束: 须匹配正则表达式 ^[A-Za-z0-9][A-Za-z0-9._+-]*$

    property name*any

    端侧 AI 单项能力配置。modelIds 按顺序表示可用模型,modelId 表示默认/当前活动模型。

    tts object

    端侧 AI 单项能力配置。modelIds 按顺序表示可用模型,modelId 表示默认/当前活动模型。

    enabledboolean
    modelIdstring

    取值约束: 须匹配正则表达式 ^[a-z0-9][a-z0-9._-]*$

    modelVersionstring

    取值约束: 须匹配正则表达式 ^[A-Za-z0-9][A-Za-z0-9._+-]*$

    modelIdsstring[]

    取值约束: >= 1

    modelVersions object
    property name*string

    取值约束: 须匹配正则表达式 ^[A-Za-z0-9][A-Za-z0-9._+-]*$

    property name*any

    端侧 AI 单项能力配置。modelIds 按顺序表示可用模型,modelId 表示默认/当前活动模型。

    llm object

    端侧 AI 单项能力配置。modelIds 按顺序表示可用模型,modelId 表示默认/当前活动模型。

    enabledboolean
    modelIdstring

    取值约束: 须匹配正则表达式 ^[a-z0-9][a-z0-9._-]*$

    modelVersionstring

    取值约束: 须匹配正则表达式 ^[A-Za-z0-9][A-Za-z0-9._+-]*$

    modelIdsstring[]

    取值约束: >= 1

    modelVersions object
    property name*string

    取值约束: 须匹配正则表达式 ^[A-Za-z0-9][A-Za-z0-9._+-]*$

    property name*any

    端侧 AI 单项能力配置。modelIds 按顺序表示可用模型,modelId 表示默认/当前活动模型。

    translation object

    端侧 AI 单项能力配置。modelIds 按顺序表示可用模型,modelId 表示默认/当前活动模型。

    enabledboolean
    modelIdstring

    取值约束: 须匹配正则表达式 ^[a-z0-9][a-z0-9._-]*$

    modelVersionstring

    取值约束: 须匹配正则表达式 ^[A-Za-z0-9][A-Za-z0-9._+-]*$

    modelIdsstring[]

    取值约束: >= 1

    modelVersions object
    property name*string

    取值约束: 须匹配正则表达式 ^[A-Za-z0-9][A-Za-z0-9._+-]*$

    property name*any

    端侧 AI 单项能力配置。modelIds 按顺序表示可用模型,modelId 表示默认/当前活动模型。

    localAiModels object[]

    发布时固化的端侧 AI 模型目录;旧发布快照可缺省。

  • Array [
  • idstring必填

    取值约束: 须匹配正则表达式 ^[a-z0-9][a-z0-9._-]*$

    namestring必填

    取值约束: 非空

    versionstring必填

    取值约束: 须匹配正则表达式 ^[A-Za-z0-9][A-Za-z0-9._+-]*$

    taskstring必填

    取值约束: [asr, tts, llm, translation]

    enginestring必填

    取值约束: [sherpa_zipformer_ctc, sherpa_whisper, sherpa_sense_voice, sherpa_vits, llama_gguf]

    platformstring必填

    取值约束: [android]

    minimumMemoryGbinteger必填

    取值约束: >= 1

    licensestring必填

    取值约束: 非空

    files object[]必填

    取值约束: >= 1

  • Array [
  • namestring必填

    取值约束: 须匹配正则表达式 ^[A-Za-z0-9][A-Za-z0-9._-]*$

    urlstring<uri>必填

    取值约束: 须匹配正则表达式 ^https://

    sizeBytesinteger必填

    取值约束: >= 1

    sha256string必填

    取值约束: 须匹配正则表达式 ^[0-9a-f]{64}$

  • ]
  • runtimeConfigobject必填
  • ]
  • agentBinding object

    智能体绑定配置;未绑定智能体时不下发该顶层键。

    applicationCodestring必填

    取值约束: 非空

    chatModesstring[]

    取值约束: [text, voice]

    welcomeTextstring
    entrystring

    取值约束: [tab, floating]

    device object必填
    pairingMethodsstring[]必填

    取值约束: [qrCode, snInput, ble, softAp, matter]

    productScope object必填
    refDeviceProductIdsinteger[]必填

    取值约束: >= 1

    defaultWsVersionstring必填

    取值约束: [v1, v2]

    statusRefreshIntervalSecondsinteger

    取值约束: >= 5 and <= 300

    thingModels object[]必填
  • Array [
  • idinteger必填

    取值约束: >= 1

    refDeviceProductinteger必填

    取值约束: >= 1

    modelVersionstring必填

    取值约束: 非空

    namestring必填

    取值约束: 非空

    propertiesSchemaobject必填
    actionsSchemaobject必填
    eventsSchemaobject必填
  • ]
  • panelSchemas object[]必填
  • Array [
  • idinteger必填

    取值约束: >= 1

    refDeviceProductinteger必填

    取值约束: >= 1

    refThingModelinteger必填

    取值约束: >= 1

    schemaVersionstring必填

    取值约束: 非空

    namestring必填

    取值约束: 非空

    schemaBody object必填
    schemaVersionstring必填

    取值约束: 须匹配正则表达式 ^1\.0\.0$

    panelIdstring必填

    取值约束: 须匹配正则表达式 ^[a-z][a-z0-9_]{1,60}$

    panelVersionstring必填

    取值约束: 非空

    deviceProductIdinteger必填

    取值约束: >= 1

    thingModelVersionstring必填

    取值约束: 非空

    layout object必填
    sections object[]必填

    取值约束: >= 1

  • Array [
  • idstring必填

    取值约束: 须匹配正则表达式 ^[a-z][a-z0-9_]{1,40}$

    titlestring必填

    取值约束: 非空 and <= 24 个字符

    widgets object[]必填

    取值约束: >= 1

  • Array [
  • idstring必填

    取值约束: 须匹配正则表达式 ^[a-z][a-z0-9_]{1,40}$

    typestring必填

    取值约束: [status, switch, slider, enum, button, text]

    labelstring必填

    取值约束: 非空 and <= 24 个字符

    binding object
    kindstring必填

    取值约束: [property, action]

    codestring必填

    取值约束: 须匹配正则表达式 ^[a-z][a-zA-Z0-9_]{1,60}$

    params object[]
  • Array [
  • codestring必填

    取值约束: 须匹配正则表达式 ^[a-z][a-zA-Z0-9_]{1,60}$

    valuestring | number | boolean必填
  • ]
  • inputs object[]
  • Array [
  • codestring必填

    取值约束: 须匹配正则表达式 ^[a-z][a-zA-Z0-9_]{1,60}$

    namestring必填

    取值约束: 非空 and <= 24 个字符

    dataTypestring必填

    取值约束: [text, int, float, boolean, enum]

    requiredboolean
    placeholderstring

    取值约束: <= 64 个字符

    minnumber
    maxnumber
    stepnumber

    取值约束: > 0

    options object[]

    取值约束: >= 1

  • Array [
  • labelstring必填

    取值约束: 非空 and <= 24 个字符

    valuestring | number | boolean必填
  • ]
  • ]
  • minnumber
    maxnumber
    stepnumber

    取值约束: > 0

    options object[]
  • Array [
  • labelstring必填

    取值约束: 非空 and <= 24 个字符

    valuestring | number | boolean必填
  • ]
  • readonlyboolean
    result object
    displaystring必填

    取值约束: [toast, dialog]

  • ]
  • ]
  • ]
  • AppRuntimeConfig
    {
    "schemaVersion": "string",
    "templateCode": "string",
    "templateVersion": "string",
    "minContainerVersion": "string",
    "publishVersion": 0,
    "publishedAt": "string",
    "configDigest": "string",
    "projectCode": "string",
    "brand": {
    "appName": "string",
    "logoUrl": "string",
    "splashUrl": "string",
    "darkMode": true,
    "theme": {
    "primaryColor": "string",
    "backgroundColor": "string",
    "textColor": "string"
    },
    "tabs": [
    {
    "key": "string",
    "moduleKey": "string",
    "icon": "string",
    "label": {}
    }
    ]
    },
    "api": {
    "baseUrl": "string"
    },
    "runtimeApi": {
    "configPath": "string",
    "sendCodePath": "string",
    "loginPath": "string",
    "refreshPath": "string",
    "deviceListPath": "string",
    "deviceLocatePath": "string",
    "devicePairingTokenPath": "string",
    "deviceBindPath": "string",
    "deviceMoveRoomPath": "string",
    "deviceDetailPath": "string",
    "deviceRuntimeStatusPath": "string",
    "deviceShadowPath": "string",
    "devicePropertySetPath": "string",
    "deviceActionCallPath": "string",
    "deviceCommandGetPath": "string",
    "deviceCommandPagePath": "string",
    "panelSchemaPath": "string",
    "messagePagePath": "string",
    "messageReadPath": "string",
    "messageUnreadCountPath": "string",
    "pushRegisterPath": "string",
    "pushUnregisterPath": "string",
    "appUpgradeCheckPath": "string",
    "appUpgradeEventPath": "string",
    "accountProfilePath": "string",
    "accountProfileUpdatePath": "string",
    "accountAvatarUploadPath": "string",
    "accountPasswordUpdatePath": "string",
    "wsTicketPath": "string",
    "agentWsTicketPath": "string",
    "accountDeletePath": "string",
    "privacyStatusPath": "string",
    "privacyConsentPath": "string",
    "privacyWithdrawPath": "string",
    "homeListPath": "string",
    "homeCreatePath": "string",
    "homeTransferPath": "string",
    "roomListPath": "string",
    "roomCreatePath": "string",
    "homeMemberListPath": "string",
    "homeMemberInvitePath": "string",
    "homeMemberRemovePath": "string",
    "homeInviteListPath": "string",
    "homeInviteAcceptPath": "string",
    "homeInviteRejectPath": "string",
    "healthMetricsPath": "string",
    "parentalControlPolicyPath": "string",
    "growthReportListPath": "string",
    "cloudDrivePagePath": "string",
    "cloudDriveUploadPath": "string",
    "cloudDriveDeletePath": "string"
    },
    "platforms": {
    "android": {
    "enabled": true,
    "appIdentifier": "string",
    "templateVersion": "string",
    "minContainerVersion": "string",
    "supportedPairingMethods": [
    "qrCode"
    ]
    },
    "ios": {
    "enabled": true,
    "appIdentifier": "string",
    "templateVersion": "string",
    "minContainerVersion": "string",
    "supportedPairingMethods": [
    "qrCode"
    ]
    },
    "harmonyos": {
    "enabled": true,
    "appIdentifier": "string",
    "templateVersion": "string",
    "minContainerVersion": "string",
    "supportedPairingMethods": [
    "qrCode"
    ]
    }
    },
    "privacy": {
    "policyVersion": "string",
    "policyUpdatedAt": "string",
    "privacyPolicyUrl": "string",
    "userAgreementUrl": "string",
    "requiredPermissions": [
    "camera"
    ]
    },
    "localization": {
    "defaultLocale": "string",
    "supportedLocales": [
    "string"
    ]
    },
    "observability": {
    "sentry": {
    "enabled": true,
    "dsn": "string",
    "environment": "string",
    "tracesSampleRate": 0
    }
    },
    "moduleConfig": {},
    "localAiModels": [
    {
    "id": "string",
    "name": "string",
    "version": "string",
    "task": "asr",
    "engine": "sherpa_zipformer_ctc",
    "platform": "android",
    "minimumMemoryGb": 0,
    "license": "string",
    "files": [
    {
    "name": "string",
    "url": "string",
    "sizeBytes": 0,
    "sha256": "string"
    }
    ],
    "runtimeConfig": {}
    }
    ],
    "agentBinding": {
    "applicationCode": "string",
    "chatModes": [
    "text"
    ],
    "welcomeText": "string",
    "entry": "tab"
    },
    "device": {
    "pairingMethods": [
    "qrCode"
    ],
    "productScope": {
    "refDeviceProductIds": [
    0
    ]
    },
    "defaultWsVersion": "v1",
    "statusRefreshIntervalSeconds": 0
    },
    "thingModels": [
    {
    "id": 0,
    "refDeviceProduct": 0,
    "modelVersion": "string",
    "name": "string",
    "propertiesSchema": {},
    "actionsSchema": {},
    "eventsSchema": {}
    }
    ],
    "panelSchemas": [
    {
    "id": 0,
    "refDeviceProduct": 0,
    "refThingModel": 0,
    "schemaVersion": "string",
    "name": "string",
    "schemaBody": {
    "schemaVersion": "string",
    "panelId": "string",
    "panelVersion": "string",
    "deviceProductId": 0,
    "thingModelVersion": "string",
    "layout": {
    "sections": [
    {
    "id": "string",
    "title": "string",
    "widgets": [
    {
    "id": "string",
    "type": "status",
    "label": "string",
    "binding": {
    "kind": "property",
    "code": "string",
    "params": [
    {
    "code": "string",
    "value": "string"
    }
    ],
    "inputs": [
    {
    "code": "string",
    "name": "string",
    "dataType": "text",
    "required": true,
    "placeholder": "string",
    "min": 0,
    "max": 0,
    "step": 0,
    "options": [
    {
    "label": "string",
    "value": "string"
    }
    ]
    }
    ]
    },
    "min": 0,
    "max": 0,
    "step": 0,
    "options": [
    {
    "label": "string",
    "value": "string"
    }
    ],
    "readonly": true,
    "result": {
    "display": "toast"
    }
    }
    ]
    }
    ]
    }
    }
    }
    ]
    }