appstore_list_apple_teams
列出团队使用的 Apple Developer 团队,以及每个团队是否已连接、能否签名构建版本、Apple 登录是否有效。
列出团队使用的 Apple Developer 团队。所有 App Store 工具都基于团队拥有者在 AirBuild 中关联的 Apple Developer 账户工作(见 关联你的 Apple 开发者账户):团队的任何成员都可以使用它们,操作的是拥有者的 Apple 团队。先调用这个工具,看看有没有可以操作的内容。它不做任何更改,也无法关联 Apple 账户:只有团队拥有者能在 AirBuild App 中关联。
Apple 这边还没准备好时会怎样:
- 没有关联 Apple 账户,或没有开启任何 Apple 团队。
appleTeams为空,或没有一项为connected: true。这时其他 App Store 工具会以一句要求找团队拥有者的话拒绝(见 错误)。 - 拥有者的 Apple 登录已失效。
signIn为session_expired或reauth_required。大多数 App Store 工具仍可使用。需要拥有者登录的工具(appstore_create_app、appstore_review 的消息、appstore_reply_review、appstore_request_expedited_review、appstore_privacy、appstore_update_privacy,以及首次使用的 appstore_sales)在 AirBuild 无法自行续期时,会回答拥有者必须重新登录。只有拥有者能在 AirBuild App 中完成。
| 只读 | 破坏性 | 幂等 |
|---|---|---|
| 是 | 否 | 是 |
输入
| 输入 | 类型 | 必填 | 默认值 | 作用 |
|---|---|---|---|---|
teamId |
字符串(UUID) | yes | — | 团队,来自 list_teams。 |
每个工具对输入所做的检查见 服务器与登录。
结果
一个 JSON 对象,同时以文本和 structuredContent 返回。appleTeams 中每个 Apple 团队一项:
| 字段 | 说明 |
|---|---|
appleTeamId |
其他 App Store 工具作为 appleTeamId 接受的 ID |
name |
Apple 团队的名称 |
developerTeamId |
Apple 的 10 位团队 ID,或 null |
connected |
App Store 工具能否使用这个 Apple 团队 |
canSign |
团队的智能体现在能否用它签名构建版本 |
signIn |
拥有者的 Apple 登录:active、session_expired(AirBuild 可能仍能自行续期)或 reauth_required(只有拥有者能重新登录) |
salesReports |
Apple 是否已给这个 Apple 团队分配供应商编号,销售报告需要它(见 appstore_sales) |
{
"appleTeams": [
{
"appleTeamId": "00000000-0000-0000-0000-000000000000",
"name": "Example Inc.",
"developerTeamId": "ABCDE12345",
"connected": true,
"canSign": true,
"signIn": "active",
"salesReports": true
}
]
}错误
除了 服务器与登录 中的错误,这个工具没有自己的错误。下面的句子是团队的 Apple 这边尚未就绪时其他 App Store 工具给出的;每个工具的页面列出了它可能返回的句子。
| 消息 | 何时出现 | 怎么办 |
|---|---|---|
| This Team has no Apple Developer account connected. The Team’s owner connects one in AirBuild (Settings → Apple Developer). | 团队拥有者没有关联任何 Apple 开发者账户 | 请团队拥有者关联一个(在 App 中:设置 › 开发者) |
| None of this Team’s Apple teams is connected yet. The Team’s owner finishes connecting it in AirBuild. | 拥有者有 Apple 团队,但没有一个已开启并就绪 | 请团队拥有者完成连接 |
| This Team works with several Apple teams; pass appleTeamId: name = id, …. | 连接了多个 Apple 团队,但没有发送 appleTeamId |
发送 appleTeamId,取句中列出的某个 ID |
| That Apple team is not one of this Team’s. See appstore_list_apple_teams. | appleTeamId 不是该团队的 Apple 团队 |
从 appstore_list_apple_teams 获取 |
| The Team owner’s Apple sign-in has lapsed and only they can renew it: ask them to open AirBuild and sign in to Apple again, then try once more. | 团队拥有者在 AirBuild 中的 Apple 登录已过期,没有拥有者参与 AirBuild 无法续期 | 告诉团队拥有者,请对方在 AirBuild 中重新登录(见 关联你的 Apple 开发者账户)。在此之前重试会得到同样的回答 |
示例
{
"name": "appstore_list_apple_teams",
"arguments": {
"teamId": "00000000-0000-0000-0000-000000000000"
}
}