English
Endpoint 目录

读取店铺已发布装修

GET /api/v1/storefront-decorations/merchants/{slug}

GET /api/v1/storefront-decorations/merchants/{slug}

  • operationId: getPublicStorefrontDecoration
  • 稳定性: stable
  • 认证: 无需认证
  • 幂等: none

参数

名称位置必需类型
slugpathstring

请求体

此操作没有声明请求体。

响应与错误

状态说明Schema
200操作成功#/components/schemas/PublicStorefrontDecorationResponse
400请求不符合公开契约#/components/schemas/PublicErrorResponse
401认证失败#/components/schemas/PublicErrorResponse
403授权 scope 不足#/components/schemas/PublicErrorResponse
404公开资源不存在#/components/schemas/PublicErrorResponse
409幂等或状态冲突#/components/schemas/PublicErrorResponse
429请求频率受限#/components/schemas/PublicErrorResponse

限流

spec 声明了 429 响应。 Retry-After header 未在 spec 中声明。

  • 顶层结构: { data: object }

成功响应 Schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "versionId": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        "version": {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        "tenant": {
          "type": "object",
          "properties": {
            "slug": {
              "type": "string"
            },
            "displayName": {
              "type": "string"
            }
          },
          "required": [
            "slug",
            "displayName"
          ],
          "additionalProperties": false
        },
        "locale": {
          "type": "string",
          "enum": [
            "zh-CN",
            "en-US"
          ]
        },
        "market": {
          "type": "string",
          "enum": [
            "CN",
            "US"
          ]
        },
        "blocks": {
          "maxItems": 32,
          "type": "array",
          "items": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "enabled": {
                    "default": true,
                    "type": "boolean"
                  },
                  "responsive": {
                    "default": {
                      "desktop": true,
                      "mobile": true
                    },
                    "type": "object",
                    "properties": {
                      "desktop": {
                        "default": true,
                        "type": "boolean"
                      },
                      "mobile": {
                        "default": true,
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "desktop",
                      "mobile"
                    ],
                    "additionalProperties": false
                  },
                  "theme": {
                    "default": {
                      "surface": "default",
                      "accent": "primary",
                      "density": "comfortable"
                    },
                    "type": "object",
                    "properties": {
                      "surface": {
                        "default": "default",
                        "type": "string",
                        "enum": [
                          "default",
                          "muted",
                          "elevated"
                        ]
                      },
                      "accent": {
                        "default": "primary",
                        "type": "string",
                        "enum": [
                          "primary",
                          "neutral"
                        ]
                      },
                      "density": {
                        "default": "comfortable",
                        "type": "string",
                        "enum": [
                          "compact",
                          "comfortable"
                        ]
                      }
                    },
                    "required": [
                      "surface",
                      "accent",
                      "density"
                    ],
                    "additionalProperties": false
                  },
                  "type": {
                    "type": "string",
                    "const": "brand_hero"
                  },
                  "title": {
                    "type": "object",
                    "properties": {
                      "zh-CN": {
                        "default": "",
                        "type": "string",
                        "maxLength": 1000
                      },
                      "en-US": {
                        "default": "",
                        "type": "string",
                        "maxLength": 1000
                      }
                    },
                    "required": [
                      "zh-CN",
                      "en-US"
                    ],
                    "additionalProperties": false
                  },
                  "description": {
                    "type": "object",
                    "properties": {
                      "zh-CN": {
                        "default": "",
                        "type": "string",
                        "maxLength": 1000
                      },
                      "en-US": {
                        "default": "",
                        "type": "string",
                        "maxLength": 1000
                      }
                    },
                    "required": [
                      "zh-CN",
                      "en-US"
                    ],
                    "additionalProperties": false
                  },
                  "media": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "image",
                              "video"
                            ]
                          },
                          "url": {
                            "type": "string",
                            "format": "uri"
                          },
                          "thumbnailUrl": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uri"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "alt": {
                            "type": "string",
                            "maxLength": 500
                          },
                          "width": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "exclusiveMinimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "height": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "exclusiveMinimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "durationSeconds": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "exclusiveMinimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "kind",
                          "url",
                          "thumbnailUrl",
                          "alt",
                          "width",
                          "height",
                          "durationSeconds"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "id",
                  "enabled",
                  "responsive",
                  "theme",
                  "type",
                  "title",
                  "media"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "enabled": {
                    "default": true,
                    "type": "boolean"
                  },
                  "responsive": {
                    "default": {
                      "desktop": true,
                      "mobile": true
                    },
                    "type": "object",
                    "properties": {
                      "desktop": {
                        "default": true,
                        "type": "boolean"
                      },
                      "mobile": {
                        "default": true,
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "desktop",
                      "mobile"
                    ],
                    "additionalProperties": false
                  },
                  "theme": {
                    "default": {
                      "surface": "default",
                      "accent": "primary",
                      "density": "comfortable"
                    },
                    "type": "object",
                    "properties": {
                      "surface": {
                        "default": "default",
                        "type": "string",
                        "enum": [
                          "default",
                          "muted",
                          "elevated"
                        ]
                      },
                      "accent": {
                        "default": "primary",
                        "type": "string",
                        "enum": [
                          "primary",
                          "neutral"
                        ]
                      },
                      "density": {
                        "default": "comfortable",
                        "type": "string",
                        "enum": [
                          "compact",
                          "comfortable"
                        ]
                      }
                    },
                    "required": [
                      "surface",
                      "accent",
                      "density"
                    ],
                    "additionalProperties": false
                  },
                  "type": {
                    "type": "string",
                    "const": "notice"
                  },
                  "text": {
                    "type": "object",
                    "properties": {
                      "zh-CN": {
                        "default": "",
                        "type": "string",
                        "maxLength": 1000
                      },
                      "en-US": {
                        "default": "",
                        "type": "string",
                        "maxLength": 1000
                      }
                    },
                    "required": [
                      "zh-CN",
                      "en-US"
                    ],
                    "additionalProperties": false
                  },
                  "path": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 300
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "id",
                  "enabled",
                  "responsive",
                  "theme",
                  "type",
                  "text"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "enabled": {
                    "default": true,
                    "type": "boolean"
                  },
                  "responsive": {
                    "default": {
                      "desktop": true,
                      "mobile": true
                    },
                    "type": "object",
                    "properties": {
                      "desktop": {
                        "default": true,
                        "type": "boolean"
                      },
                      "mobile": {
                        "default": true,
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "desktop",
                      "mobile"
                    ],
                    "additionalProperties": false
                  },
                  "theme": {
                    "default": {
                      "surface": "default",
                      "accent": "primary",
                      "density": "comfortable"
                    },
                    "type": "object",
                    "properties": {
                      "surface": {
                        "default": "default",
                        "type": "string",
                        "enum": [
                          "default",
                          "muted",
                          "elevated"
                        ]
                      },
                      "accent": {
                        "default": "primary",
                        "type": "string",
                        "enum": [
                          "primary",
                          "neutral"
                        ]
                      },
                      "density": {
                        "default": "comfortable",
                        "type": "string",
                        "enum": [
                          "compact",
                          "comfortable"
                        ]
                      }
                    },
                    "required": [
                      "surface",
                      "accent",
                      "density"
                    ],
                    "additionalProperties": false
                  },
                  "type": {
                    "type": "string",
                    "const": "image_banner"
                  },
                  "alt": {
                    "type": "object",
                    "properties": {
                      "zh-CN": {
                        "default": "",
                        "type": "string",
                        "maxLength": 1000
                      },
                      "en-US": {
                        "default": "",
                        "type": "string",
                        "maxLength": 1000
                      }
                    },
                    "required": [
                      "zh-CN",
                      "en-US"
                    ],
                    "additionalProperties": false
                  },
                  "path": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 300
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "media": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "kind": {
                        "type": "string",
                        "enum": [
                          "image",
                          "video"
                        ]
                      },
                      "url": {
                        "type": "string",
                        "format": "uri"
                      },
                      "thumbnailUrl": {
                        "anyOf": [
                          {
                            "type": "string",
                            "format": "uri"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "alt": {
                        "type": "string",
                        "maxLength": 500
                      },
                      "width": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "height": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "durationSeconds": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "kind",
                      "url",
                      "thumbnailUrl",
                      "alt",
                      "width",
                      "height",
                      "durationSeconds"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "id",
                  "enabled",
                  "responsive",
                  "theme",
                  "type",
                  "alt",
                  "media"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "enabled": {
                    "default": true,
                    "type": "boolean"
                  },
                  "responsive": {
                    "default": {
                      "desktop": true,
                      "mobile": true
                    },
                    "type": "object",
                    "properties": {
                      "desktop": {
                        "default": true,
                        "type": "boolean"
                      },
                      "mobile": {
                        "default": true,
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "desktop",
                      "mobile"
                    ],
                    "additionalProperties": false
                  },
                  "theme": {
                    "default": {
                      "surface": "default",
                      "accent": "primary",
                      "density": "comfortable"
                    },
                    "type": "object",
                    "properties": {
                      "surface": {
                        "default": "default",
                        "type": "string",
                        "enum": [
                          "default",
                          "muted",
                          "elevated"
                        ]
                      },
                      "accent": {
                        "default": "primary",
                        "type": "string",
                        "enum": [
                          "primary",
                          "neutral"
                        ]
                      },
                      "density": {
                        "default": "comfortable",
                        "type": "string",
                        "enum": [
                          "compact",
                          "comfortable"
                        ]
                      }
                    },
                    "required": [
                      "surface",
                      "accent",
                      "density"
                    ],
                    "additionalProperties": false
                  },
                  "type": {
                    "type": "string",
                    "const": "product_collection"
                  },
                  "title": {
                    "type": "object",
                    "properties": {
                      "zh-CN": {
                        "default": "",
                        "type": "string",
                        "maxLength": 1000
                      },
                      "en-US": {
                        "default": "",
                        "type": "string",
                        "maxLength": 1000
                      }
                    },
                    "required": [
                      "zh-CN",
                      "en-US"
                    ],
                    "additionalProperties": false
                  },
                  "products": {
                    "maxItems": 24,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "slug": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 160
                        },
                        "title": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 300
                        },
                        "imageUrl": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uri"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "physical",
                            "digital"
                          ]
                        },
                        "price": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "amount": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "currency": {
                                  "type": "string",
                                  "enum": [
                                    "CNY",
                                    "USD"
                                  ]
                                }
                              },
                              "required": [
                                "amount",
                                "currency"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "slug",
                        "title",
                        "imageUrl",
                        "kind",
                        "price"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "id",
                  "enabled",
                  "responsive",
                  "theme",
                  "type",
                  "title",
                  "products"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "enabled": {
                    "default": true,
                    "type": "boolean"
                  },
                  "responsive": {
                    "default": {
                      "desktop": true,
                      "mobile": true
                    },
                    "type": "object",
                    "properties": {
                      "desktop": {
                        "default": true,
                        "type": "boolean"
                      },
                      "mobile": {
                        "default": true,
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "desktop",
                      "mobile"
                    ],
                    "additionalProperties": false
                  },
                  "theme": {
                    "default": {
                      "surface": "default",
                      "accent": "primary",
                      "density": "comfortable"
                    },
                    "type": "object",
                    "properties": {
                      "surface": {
                        "default": "default",
                        "type": "string",
                        "enum": [
                          "default",
                          "muted",
                          "elevated"
                        ]
                      },
                      "accent": {
                        "default": "primary",
                        "type": "string",
                        "enum": [
                          "primary",
                          "neutral"
                        ]
                      },
                      "density": {
                        "default": "comfortable",
                        "type": "string",
                        "enum": [
                          "compact",
                          "comfortable"
                        ]
                      }
                    },
                    "required": [
                      "surface",
                      "accent",
                      "density"
                    ],
                    "additionalProperties": false
                  },
                  "type": {
                    "type": "string",
                    "const": "category_navigation"
                  },
                  "title": {
                    "type": "object",
                    "properties": {
                      "zh-CN": {
                        "default": "",
                        "type": "string",
                        "maxLength": 1000
                      },
                      "en-US": {
                        "default": "",
                        "type": "string",
                        "maxLength": 1000
                      }
                    },
                    "required": [
                      "zh-CN",
                      "en-US"
                    ],
                    "additionalProperties": false
                  },
                  "categories": {
                    "maxItems": 16,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "slug": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 160
                        },
                        "title": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200
                        }
                      },
                      "required": [
                        "id",
                        "slug",
                        "title"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "id",
                  "enabled",
                  "responsive",
                  "theme",
                  "type",
                  "categories"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "enabled": {
                    "default": true,
                    "type": "boolean"
                  },
                  "responsive": {
                    "default": {
                      "desktop": true,
                      "mobile": true
                    },
                    "type": "object",
                    "properties": {
                      "desktop": {
                        "default": true,
                        "type": "boolean"
                      },
                      "mobile": {
                        "default": true,
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "desktop",
                      "mobile"
                    ],
                    "additionalProperties": false
                  },
                  "theme": {
                    "default": {
                      "surface": "default",
                      "accent": "primary",
                      "density": "comfortable"
                    },
                    "type": "object",
                    "properties": {
                      "surface": {
                        "default": "default",
                        "type": "string",
                        "enum": [
                          "default",
                          "muted",
                          "elevated"
                        ]
                      },
                      "accent": {
                        "default": "primary",
                        "type": "string",
                        "enum": [
                          "primary",
                          "neutral"
                        ]
                      },
                      "density": {
                        "default": "comfortable",
                        "type": "string",
                        "enum": [
                          "compact",
                          "comfortable"
                        ]
                      }
                    },
                    "required": [
                      "surface",
                      "accent",
                      "density"
                    ],
                    "additionalProperties": false
                  },
                  "type": {
                    "type": "string",
                    "const": "rich_content"
                  },
                  "items": {
                    "minItems": 1,
                    "maxItems": 80,
                    "type": "array",
                    "items": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "heading"
                            },
                            "text": {
                              "type": "object",
                              "properties": {
                                "zh-CN": {
                                  "default": "",
                                  "type": "string",
                                  "maxLength": 1000
                                },
                                "en-US": {
                                  "default": "",
                                  "type": "string",
                                  "maxLength": 1000
                                }
                              },
                              "required": [
                                "zh-CN",
                                "en-US"
                              ],
                              "additionalProperties": false
                            },
                            "level": {
                              "type": "string",
                              "enum": [
                                "2",
                                "3"
                              ]
                            }
                          },
                          "required": [
                            "type",
                            "text",
                            "level"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "paragraph"
                            },
                            "text": {
                              "type": "object",
                              "properties": {
                                "zh-CN": {
                                  "default": "",
                                  "type": "string",
                                  "maxLength": 1000
                                },
                                "en-US": {
                                  "default": "",
                                  "type": "string",
                                  "maxLength": 1000
                                }
                              },
                              "required": [
                                "zh-CN",
                                "en-US"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "type",
                            "text"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "list"
                            },
                            "items": {
                              "minItems": 1,
                              "maxItems": 20,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "zh-CN": {
                                    "default": "",
                                    "type": "string",
                                    "maxLength": 1000
                                  },
                                  "en-US": {
                                    "default": "",
                                    "type": "string",
                                    "maxLength": 1000
                                  }
                                },
                                "required": [
                                  "zh-CN",
                                  "en-US"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "ordered": {
                              "default": false,
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "type",
                            "items",
                            "ordered"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "link"
                            },
                            "label": {
                              "type": "object",
                              "properties": {
                                "zh-CN": {
                                  "default": "",
                                  "type": "string",
                                  "maxLength": 1000
                                },
                                "en-US": {
                                  "default": "",
                                  "type": "string",
                                  "maxLength": 1000
                                }
                              },
                              "required": [
                                "zh-CN",
                                "en-US"
                              ],
                              "additionalProperties": false
                            },
                            "path": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 300
                            }
                          },
                          "required": [
                            "type",
                            "label",
                            "path"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    }
                  }
                },
                "required": [
                  "id",
                  "enabled",
                  "responsive",
                  "theme",
                  "type",
                  "items"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "enabled": {
                    "default": true,
                    "type": "boolean"
                  },
                  "responsive": {
                    "default": {
                      "desktop": true,
                      "mobile": true
                    },
                    "type": "object",
                    "properties": {
                      "desktop": {
                        "default": true,
                        "type": "boolean"
                      },
                      "mobile": {
                        "default": true,
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "desktop",
                      "mobile"
                    ],
                    "additionalProperties": false
                  },
                  "theme": {
                    "default": {
                      "surface": "default",
                      "accent": "primary",
                      "density": "comfortable"
                    },
                    "type": "object",
                    "properties": {
                      "surface": {
                        "default": "default",
                        "type": "string",
                        "enum": [
                          "default",
                          "muted",
                          "elevated"
                        ]
                      },
                      "accent": {
                        "default": "primary",
                        "type": "string",
                        "enum": [
                          "primary",
                          "neutral"
                        ]
                      },
                      "density": {
                        "default": "comfortable",
                        "type": "string",
                        "enum": [
                          "compact",
                          "comfortable"
                        ]
                      }
                    },
                    "required": [
                      "surface",
                      "accent",
                      "density"
                    ],
                    "additionalProperties": false
                  },
                  "type": {
                    "type": "string",
                    "const": "video"
                  },
                  "title": {
                    "type": "object",
                    "properties": {
                      "zh-CN": {
                        "default": "",
                        "type": "string",
                        "maxLength": 1000
                      },
                      "en-US": {
                        "default": "",
                        "type": "string",
                        "maxLength": 1000
                      }
                    },
                    "required": [
                      "zh-CN",
                      "en-US"
                    ],
                    "additionalProperties": false
                  },
                  "description": {
                    "type": "object",
                    "properties": {
                      "zh-CN": {
                        "default": "",
                        "type": "string",
                        "maxLength": 1000
                      },
                      "en-US": {
                        "default": "",
                        "type": "string",
                        "maxLength": 1000
                      }
                    },
                    "required": [
                      "zh-CN",
                      "en-US"
                    ],
                    "additionalProperties": false
                  },
                  "media": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "kind": {
                        "type": "string",
                        "enum": [
                          "image",
                          "video"
                        ]
                      },
                      "url": {
                        "type": "string",
                        "format": "uri"
                      },
                      "thumbnailUrl": {
                        "anyOf": [
                          {
                            "type": "string",
                            "format": "uri"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "alt": {
                        "type": "string",
                        "maxLength": 500
                      },
                      "width": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "height": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "durationSeconds": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "kind",
                      "url",
                      "thumbnailUrl",
                      "alt",
                      "width",
                      "height",
                      "durationSeconds"
                    ],
                    "additionalProperties": false
                  },
                  "poster": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "image",
                              "video"
                            ]
                          },
                          "url": {
                            "type": "string",
                            "format": "uri"
                          },
                          "thumbnailUrl": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uri"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "alt": {
                            "type": "string",
                            "maxLength": 500
                          },
                          "width": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "exclusiveMinimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "height": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "exclusiveMinimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "durationSeconds": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "exclusiveMinimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "kind",
                          "url",
                          "thumbnailUrl",
                          "alt",
                          "width",
                          "height",
                          "durationSeconds"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "id",
                  "enabled",
                  "responsive",
                  "theme",
                  "type",
                  "title",
                  "media",
                  "poster"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "enabled": {
                    "default": true,
                    "type": "boolean"
                  },
                  "responsive": {
                    "default": {
                      "desktop": true,
                      "mobile": true
                    },
                    "type": "object",
                    "properties": {
                      "desktop": {
                        "default": true,
                        "type": "boolean"
                      },
                      "mobile": {
                        "default": true,
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "desktop",
                      "mobile"
                    ],
                    "additionalProperties": false
                  },
                  "theme": {
                    "default": {
                      "surface": "default",
                      "accent": "primary",
                      "density": "comfortable"
                    },
                    "type": "object",
                    "properties": {
                      "surface": {
                        "default": "default",
                        "type": "string",
                        "enum": [
                          "default",
                          "muted",
                          "elevated"
                        ]
                      },
                      "accent": {
                        "default": "primary",
                        "type": "string",
                        "enum": [
                          "primary",
                          "neutral"
                        ]
                      },
                      "density": {
                        "default": "comfortable",
                        "type": "string",
                        "enum": [
                          "compact",
                          "comfortable"
                        ]
                      }
                    },
                    "required": [
                      "surface",
                      "accent",
                      "density"
                    ],
                    "additionalProperties": false
                  },
                  "type": {
                    "type": "string",
                    "const": "campaign_entry"
                  },
                  "title": {
                    "type": "object",
                    "properties": {
                      "zh-CN": {
                        "default": "",
                        "type": "string",
                        "maxLength": 1000
                      },
                      "en-US": {
                        "default": "",
                        "type": "string",
                        "maxLength": 1000
                      }
                    },
                    "required": [
                      "zh-CN",
                      "en-US"
                    ],
                    "additionalProperties": false
                  },
                  "description": {
                    "type": "object",
                    "properties": {
                      "zh-CN": {
                        "default": "",
                        "type": "string",
                        "maxLength": 1000
                      },
                      "en-US": {
                        "default": "",
                        "type": "string",
                        "maxLength": 1000
                      }
                    },
                    "required": [
                      "zh-CN",
                      "en-US"
                    ],
                    "additionalProperties": false
                  },
                  "actionLabel": {
                    "type": "object",
                    "properties": {
                      "zh-CN": {
                        "default": "",
                        "type": "string",
                        "maxLength": 1000
                      },
                      "en-US": {
                        "default": "",
                        "type": "string",
                        "maxLength": 1000
                      }
                    },
                    "required": [
                      "zh-CN",
                      "en-US"
                    ],
                    "additionalProperties": false
                  },
                  "path": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300
                  }
                },
                "required": [
                  "id",
                  "enabled",
                  "responsive",
                  "theme",
                  "type",
                  "title",
                  "actionLabel",
                  "path"
                ],
                "additionalProperties": false
              }
            ]
          }
        },
        "publishedAt": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
        }
      },
      "required": [
        "versionId",
        "version",
        "tenant",
        "locale",
        "market",
        "blocks",
        "publishedAt"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "data"
  ],
  "additionalProperties": false
}

错误响应 Schema

{
  "$ref": "#/components/schemas/PublicErrorResponse"
}

本页由已验证 public-only OpenAPI artifact 生成;未提供推测性请求示例。

Copyright © 2026