跳到主要内容

文件资源

该分类包含 4 条以 system.file-bag. 开头的 Runtime 系统命令。

1. 列出表单资产​

完整命令:system.file-bag.form-asset.list

列出文件资源表单资产。此租户级 Runtime 命令会按已注册的命令 schema 校验输入。 · 风险:读取

sl system file-bag form-asset list \
[--form-id <uuid>] [--field-api-name value] \
[--asset-kind image|video|file|audio] [--keyword value] \
[--cursor value] [--limit n] [--json]

参数:

  • formId(可选)— Form UUID. Discover it with system.form.schema.list. Omit it to search all forms
  • fieldApiName(可选)— Exact attachment field API name. It may be combined with formId and assetKind
  • assetKind(可选)— Attachment field kind: image, video, file, or audio
  • keyword(可选)— Case-insensitive match against stored/original filename, form name, field name, or field API name; at most 200 characters
  • cursor(可选)— Opaque nextCursor returned by the previous request
  • limit(可选)— Maximum files to return, 1-100; defaults to 20

2. 列出表单资产范围​

完整命令:system.file-bag.form-asset.scope.list

列出文件资源表单资产范围。此租户级 Runtime 命令会按已注册的命令 schema 校验输入。 · 风险:读取

sl system file-bag form-asset scope list [--json]

参数:无(除 --json 等通用选项外)。

3. 列出AI 产物​

完整命令:system.file-bag.ai-artifact.list

列出文件资源AI 产物。此租户级 Runtime 命令会按已注册的命令 schema 校验输入。 · 风险:读取

sl system file-bag ai-artifact list \
--app-code value [--keyword value] [--cursor value] [--limit n] \
[--json]

参数:

  • appCode(必填)— Workspace application code that owns the AI run artifact. Discover application codes with system.workspace-app.list
  • keyword(可选)— Case-insensitive match against artifact filename, stored filename, or original filename; at most 200 characters
  • cursor(可选)— Opaque nextCursor returned by the previous request
  • limit(可选)— Maximum artifacts to return, 1-100; defaults to 20

4. 批量删除AI 产物​

完整命令:system.file-bag.ai-artifact.batch-delete

批量删除文件资源AI 产物资源。此租户级 Runtime 命令会按已注册的命令 schema 校验输入。 · 风险:高风险

sl system file-bag ai-artifact batch-delete \
--app-code value --artifact-ids-json '["uuid"]' [--json]

参数:

  • appCode(必填)— Exact owning application code. It must match every selected artifact
  • artifactIds(必填)— Unique artifact UUIDs returned by ai-artifact.list; 1-100 values. Do not pass fileId values