ac

ac.developer.publishMiniAppVersion

Publish or import a MiniApp package version from an uploaded package file.

权限:developer 宿主 API

功能描述

Publish or import a MiniApp package version from an uploaded package file.

调用方式

const result = await ac.developer.publishMiniAppVersion({
  "storedFileId": "string"
});

参数说明

属性类型必填说明
storedFileIdstring-
stored_file_idstring-
miniappIdstring-
miniapp_idstring-
slugstring-
namestring-
descriptionstring-
publishboolean-
forceboolean-
{
  "type": "object",
  "required": [
    "storedFileId"
  ],
  "properties": {
    "storedFileId": {
      "type": "string"
    },
    "stored_file_id": {
      "type": "string"
    },
    "miniappId": {
      "type": "string"
    },
    "miniapp_id": {
      "type": "string"
    },
    "slug": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "publish": {
      "type": "boolean"
    },
    "force": {
      "type": "boolean"
    }
  }
}

返回值

属性类型必填说明
miniappobject-
versionobject-
createdboolean-
publishedboolean-

错误码

该 API 当前没有声明专属错误码。

Manifest 声明

Agent 生成小程序时,如果页面会调用该 API,应在 manifest.apisUsed 中声明完整 API 名称。

{
  "permissions": [
    "developer"
  ],
  "apisUsed": [
    "ac.developer.publishMiniAppVersion"
  ]
}

平台支持

平台支持情况
Web支持
Android SDK支持
iOS SDK支持
Flutter SDK支持