{
  "openapi": "3.0.1",
  "info": {
    "title": "Mobile Deep Link Association Monitor",
    "description": "Monitor public Apple AASA and Android assetlinks files for mobile universal-link/app-link association drift.",
    "version": "0.0",
    "x-build-id": "jdZIawdZf3am8a9M9"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/defenestrator~mobile-deep-link-association-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-defenestrator-mobile-deep-link-association-monitor",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/defenestrator~mobile-deep-link-association-monitor/runs": {
      "post": {
        "operationId": "runs-sync-defenestrator-mobile-deep-link-association-monitor",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/defenestrator~mobile-deep-link-association-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-defenestrator-mobile-deep-link-association-monitor",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "targets": {
            "title": "Public domains or URLs",
            "minItems": 1,
            "maxItems": 250,
            "type": "array",
            "description": "Public web domains to check. URLs are accepted, but only their public host is used. Private/internal/localhost/reserved destinations are blocked.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048
            },
            "default": [
              "www.airbnb.com",
              "www.spotify.com",
              "www.nytimes.com"
            ]
          },
          "platforms": {
            "title": "Platforms to check",
            "minItems": 1,
            "maxItems": 2,
            "uniqueItems": true,
            "type": "array",
            "description": "Supported values: ios, android. Leave both enabled for full mobile deep-link association monitoring.",
            "items": {
              "type": "string",
              "pattern": "^(ios|android)$"
            },
            "default": [
              "ios",
              "android"
            ]
          },
          "targetExpectations": {
            "title": "Per-domain expected associations",
            "type": "object",
            "description": "Optional JSON object keyed by domain. Each value may include iosAppIds, androidPackageNames, and androidSha256Fingerprints arrays. Missing expected values create alerts.",
            "default": {},
            "additionalProperties": true
          },
          "watchIosAppIds": {
            "title": "Global iOS appIDs to watch",
            "type": "array",
            "description": "Optional global iOS appID values such as TEAMID.com.example.app. Every supplied value is required and each missing value is reported.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "watchAndroidPackageNames": {
            "title": "Global Android packages to watch",
            "type": "array",
            "description": "Optional global Android package names such as com.example.app. Every supplied value is required and each missing value is reported.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "previousSnapshot": {
            "title": "Previous OUTPUT.snapshot object",
            "type": "object",
            "description": "Optional snapshot object copied from a previous run's OUTPUT.snapshot. Used for semantic drift comparison.",
            "default": {}
          },
          "previousSnapshotJson": {
            "title": "Previous snapshot JSON text",
            "maxLength": 2000000,
            "type": "string",
            "description": "Optional JSON text version of a previous OUTPUT.snapshot for API callers or Console users who prefer text paste.",
            "default": ""
          },
          "includeAllRows": {
            "title": "Include all checked rows",
            "type": "boolean",
            "description": "If false, only alert/error rows are pushed to the dataset. OUTPUT always contains the full summary and snapshot.",
            "default": true
          },
          "alertOnFirstRun": {
            "title": "Alert on first-run baselines",
            "type": "boolean",
            "description": "If true, valid first-run rows get a low-priority baseline alert. Keep false for quiet scheduled monitoring after initial setup.",
            "default": false
          },
          "requireHttps": {
            "title": "Require HTTPS",
            "type": "boolean",
            "description": "Standards require HTTPS. Leave enabled except for deliberate local testing; private/internal URLs are still blocked.",
            "default": true
          },
          "maxTargets": {
            "title": "Maximum targets per run",
            "minimum": 1,
            "maximum": 250,
            "type": "integer",
            "description": "Safety cap for domains checked in one run.",
            "default": 50
          },
          "requestTimeoutSecs": {
            "title": "Request timeout seconds",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "Timeout for each association-file request.",
            "default": 20
          },
          "maxResponseBytes": {
            "title": "Maximum response bytes",
            "minimum": 4096,
            "maximum": 1048576,
            "type": "integer",
            "description": "Maximum bytes accepted for each association file. Apple documents a 128 KB uncompressed AASA limit; this default allows some real-world headroom while bounding cost.",
            "default": 262144
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}