| 财产 | 类型类型 | 持有 |
|---|---|---|
| id · name · description | 字符串字符串 | 它是谁。 |
| identity | 对象对象 | 标语、详细描述、行业、语言、创立年份、域名、社交账号。 |
| logos | array | 它的标志,包括 logos.main 以及 logos 的调用。 |
| palette | 对象对象 | colors 和 typography,以及 palette.role() 和 palette.set()。 |
| assets | array | 照片、视频和插图,以及 assets 的调用。 |
| platform | 对象对象 | 使命、价值观、定位、受众、原型、语气和信息。 |
| 企业 | null | 尚未定义。 |
| completeness | 对象对象 | { done, total, missing }:仍为空的内容。 |
update()
await brand.update({
identity: { tagline: "Roasted every morning", socials: { instagram: "@qahwalab" } },
platform: { archetype: "creator", voice: { traits: ["warm", "precise"] } },
});brand.update(
identity={"tagline": "Roasted every morning", "socials": {"instagram": "@qahwalab"}},
platform={"archetype": "creator", "voice": {"traits": ["warm", "precise"]}},
)
brand.refresh()
brand.to_dict()部分更新:未提供的字段保持不变,null 会清空它。接受 name、description、identity 和 platform;标志、颜色和资源有各自的调用。
refresh()
从服务器重新读取品牌——在其他设备或代理修改之后。
toJSON()
以普通对象表示的品牌,即 Server Action 或 JSON.stringify 能够传输的形式。在 Python 中为 brand.to_dict()。