{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/warplink-app/json-schema/warplink-app-sdk-setup-schema.json",
  "title": "SdkSetup",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/warplink-app-openapi.json#/components/schemas/SdkSetup",
  "type": "object",
  "properties": {
    "app_id": {
      "type": "string",
      "format": "uuid"
    },
    "app_name": {
      "type": "string"
    },
    "platform": {
      "type": "string",
      "enum": [
        "ios",
        "android",
        "react-native",
        "flutter"
      ]
    },
    "sdk_version": {
      "type": "string",
      "description": "The current SDK release for the platform."
    },
    "install": {
      "$ref": "#/$defs/SdkSetupCodeBlock"
    },
    "configure": {
      "$ref": "#/$defs/SdkSetupCodeBlock"
    },
    "sdk_key": {
      "type": "object",
      "properties": {
        "placeholder": {
          "type": "string"
        },
        "how_to_get": {
          "type": "string"
        }
      },
      "description": "Where the SDK key goes. The response never holds a key."
    },
    "sdk_version_note": {
      "type": [
        "string",
        "null"
      ],
      "description": "Set only when `tether` is present. Reads: Tether needs SDK 1.4.0 or newer. Install 1.4.0 or a later release."
    },
    "tether": {
      "type": [
        "object",
        "null"
      ],
      "description": "The Tether setup for the app. Null for an Android app, which reads the install referrer and needs no code.",
      "properties": {
        "guide": {
          "type": "object",
          "description": "The Tether guide for the app: the steps, the code to add and the checks to run."
        },
        "privacy": {
          "type": "object",
          "description": "The Tether privacy text for the app, with the answers to give in your App Store privacy details."
        },
        "agent_steps": {
          "type": "array",
          "description": "The setup steps an AI agent can do, in order. Each item names the step, the dashboard place, and the MCP tool and fields that do the same thing. The list follows the page option of the app: the hosted page or your own page.",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "The step id."
              },
              "step": {
                "type": "string",
                "description": "What to do."
              },
              "place": {
                "type": "string",
                "description": "The dashboard tab or field a person uses for the same step."
              },
              "tool_and_field": {
                "type": "string",
                "description": "The MCP tool and fields that do the step, with the rule that applies."
              }
            },
            "required": [
              "id",
              "step",
              "place",
              "tool_and_field"
            ]
          }
        }
      }
    },
    "link_domains": {
      "type": "object",
      "properties": {
        "sdk_host": {
          "type": "string",
          "description": "The host to pass to the SDK."
        },
        "hosts": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The hosts the build lists: the app's own host, `aplnk.to` for an app that keeps it, and every live custom domain."
        },
        "allowed_for_new_links": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "default_domain": {
          "type": "string"
        }
      }
    },
    "ios": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "bundle_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "team_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "associated_domains": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "One `applinks:<host>` line per host. Exact hosts, never a wildcard."
        },
        "universal_link_paths": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "aasa_urls": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "description": "Present for `ios`, `react-native` and `flutter`. Null for `android`."
    },
    "android": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "package_name": {
          "type": [
            "string",
            "null"
          ]
        },
        "sha256_fingerprints": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "app_links_paths": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "intent_filter_xml": {
          "type": "string"
        },
        "assetlinks_urls": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "description": "Present for `android`, `react-native` and `flutter`. Null for `ios`."
    },
    "test_address": {
      "type": "string"
    },
    "next_step": {
      "type": "string"
    },
    "missing": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "field": {
            "type": "string"
          },
          "fix": {
            "type": "string"
          }
        }
      },
      "description": "App fields this platform needs and the app does not have, each with its fix. Empty when the app is complete."
    },
    "agent_kit": {
      "type": "object",
      "description": "The Claude Code agent kit, which adds a setup skill. Other agents can use the AGENTS.md block at `docs_url`.",
      "properties": {
        "install": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The Claude Code commands to run, in order."
        },
        "docs_url": {
          "type": "string"
        }
      }
    }
  },
  "$defs": {
    "SdkSetupCodeBlock": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string"
        },
        "language": {
          "type": "string"
        },
        "kind": {
          "type": "string",
          "enum": [
            "code",
            "instructions"
          ]
        }
      }
    }
  }
}