appstore_list_apple_teams
List the Apple Developer teams a Team works with, whether each is connected, can sign builds and has a working Apple sign-in.
Lists the Apple Developer teams a Team works with. The App Store tools all work on the Apple Developer account the Team owner connected in AirBuild (see Connect your Apple Developer account): any member of the Team can use them, acting on the owner’s Apple teams. Call this first to see whether there is anything to work on. It changes nothing, and it cannot connect an Apple account: only the Team owner can, in the AirBuild app.
What happens when the Apple side is not ready:
- No Apple account connected, or no Apple team switched on.
appleTeamsis empty, or no entry hasconnected: true. The other App Store tools then refuse with a sentence that asks for the Team owner (see Errors). - The owner’s Apple sign-in has lapsed.
signInissession_expiredorreauth_required. Most App Store tools keep working. The ones that need the owner’s sign-in (appstore_create_app, appstore_review’s messages, appstore_reply_review, appstore_request_expedited_review, appstore_privacy, appstore_update_privacy, and appstore_sales the first time) answer that the owner must sign in again, when AirBuild cannot renew the sign-in by itself. Only the owner can do that, in the AirBuild app.
| Read-only | Destructive | Idempotent |
|---|---|---|
| Yes | No | Yes |
Inputs
| Input | Type | Required | Default | What it does |
|---|---|---|---|---|
teamId |
string (UUID) | yes | — | The Team, from list_teams. |
The checks every tool makes on its inputs are on Server and sign-in.
Result
A JSON object, as text and as structuredContent. One entry per Apple team in appleTeams:
| Field | What |
|---|---|
appleTeamId |
The id the other App Store tools take as appleTeamId |
name |
The Apple team’s name |
developerTeamId |
Apple’s 10-character Team ID, or null |
connected |
Whether the App Store tools can use this Apple team |
canSign |
Whether the Team’s Agents can sign builds with it right now |
signIn |
The owner’s Apple sign-in: active, session_expired (AirBuild may still renew it by itself) or reauth_required (only the owner can sign in again) |
salesReports |
Whether Apple has given this Apple team a vendor number, which sales reports need (see appstore_sales) |
{
"appleTeams": [
{
"appleTeamId": "00000000-0000-0000-0000-000000000000",
"name": "Example Inc.",
"developerTeamId": "ABCDE12345",
"connected": true,
"canSign": true,
"signIn": "active",
"salesReports": true
}
]
}Errors
This tool has no errors of its own beyond those on Server and sign-in. The sentences below are the ones the other App Store tools give when the Team’s Apple side is not ready; each tool’s page lists the ones it can return.
| Message | When | What to do |
|---|---|---|
| This Team has no Apple Developer account connected. The Team’s owner connects one in AirBuild (Settings → Apple Developer). | The Team owner has connected no Apple Developer account | Ask the Team owner to connect one (in the app: Settings › Developer) |
| None of this Team’s Apple teams is connected yet. The Team’s owner finishes connecting it in AirBuild. | The owner’s Apple teams exist but none is switched on and ready | Ask the Team owner to finish connecting it |
| This Team works with several Apple teams; pass appleTeamId: name = id, …. | More than one Apple team is connected and appleTeamId was not sent |
Send appleTeamId, one of the ids the sentence lists |
| That Apple team is not one of this Team’s. See appstore_list_apple_teams. | appleTeamId is not one of the Team’s Apple teams |
Take it from 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. | The Team owner’s Apple sign-in in AirBuild has expired and AirBuild could not renew it without them | Tell the Team owner; they sign in again in AirBuild (see Connect your Apple Developer account). Retrying before that gives the same answer |
Example
{
"name": "appstore_list_apple_teams",
"arguments": {
"teamId": "00000000-0000-0000-0000-000000000000"
}
}