{
  "openapi": "3.0.1",
  "info": {
    "title": "FAA Airworthiness Directives (Federal Register)",
    "description": "FAA airworthiness directives from the Federal Register. Not a tail-number fleet matcher. $0.02 / document.",
    "version": "1.0",
    "x-build-id": "v4zMJ0pNWkqHmTlZq"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zentrafoundry~faa-airworthiness-directive-fleet-watcher/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zentrafoundry-faa-airworthiness-directive-fleet-watcher",
        "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/zentrafoundry~faa-airworthiness-directive-fleet-watcher/runs": {
      "post": {
        "operationId": "runs-sync-zentrafoundry-faa-airworthiness-directive-fleet-watcher",
        "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/zentrafoundry~faa-airworthiness-directive-fleet-watcher/run-sync": {
      "post": {
        "operationId": "run-sync-zentrafoundry-faa-airworthiness-directive-fleet-watcher",
        "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": {
          "sourceMode": {
            "title": "FAA directive source",
            "enum": [
              "live",
              "capturedFixture",
              "sample"
            ],
            "type": "string",
            "description": "Live is the normal Store default and reads the official Federal Register API for FAA final AD rules. Captured fixture is only for deterministic package verification. Sample remains a legacy saved-task alias.",
            "default": "live"
          },
          "mode": {
            "title": "Legacy run mode",
            "enum": [
              "normal",
              "demo",
              "watchlist",
              "backfill"
            ],
            "type": "string",
            "description": "Normal uses the live official source. Demo is retained only for saved tasks and maps to the captured verification fixture.",
            "default": "normal"
          },
          "startUrls": {
            "title": "Official Federal Register API URL",
            "type": "array",
            "description": "Public source URL for Try.",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL",
                  "description": "Public HTTPS URL."
                }
              },
              "required": [
                "url"
              ]
            },
            "default": [
              {
                "url": "https://www.federalregister.gov/api/v1/documents.json"
              }
            ]
          },
          "maxItems": {
            "title": "Maximum directive records",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum matching FAA final-rule records to emit. The Store default is one live result to keep unattended runs bounded.",
            "default": 10
          },
          "aircraftModels": {
            "title": "Aircraft model filters",
            "type": "array",
            "description": "Optional case-insensitive model filters. Leave empty to return the newest published FAA final AD rule.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "documentTypes": {
            "title": "Document type filters",
            "type": "array",
            "description": "Optional case-insensitive publication-type filters. The live source is always restricted to final Rule records.",
            "default": [
              "Rule"
            ],
            "items": {
              "type": "string"
            }
          },
          "watchlistTerms": {
            "title": "Legacy keyword filters",
            "type": "array",
            "description": "Compatibility alias for saved tasks. Values match official titles, abstracts, FAA AD identifiers, and document numbers.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "lookbackDays": {
            "title": "Legacy lookback window",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Compatibility setting retained for saved tasks. The public API query remains ordered newest first.",
            "default": 30
          },
          "sinceLastRun": {
            "title": "Only newly seen directives",
            "type": "boolean",
            "description": "When enabled, stores seen Federal Register document numbers under the state key and emits only newly observed matching records.",
            "default": false
          },
          "stateKey": {
            "title": "Directive delta state key",
            "type": "string",
            "description": "Optional storage key for this Actor's FAA AD delta state.",
            "default": "FAA_AIRWORTHINESS_DIRECTIVES_SEEN"
          },
          "baselineDatasetId": {
            "title": "Legacy baseline dataset ID",
            "type": "string",
            "description": "Compatibility setting retained for saved tasks; this Actor's official-source delta state uses Federal Register document numbers."
          },
          "sourceIds": {
            "title": "Legacy source IDs",
            "type": "array",
            "description": "Compatibility setting retained for saved tasks. Official source IDs are FEDERAL-REGISTER-FAA-AD and FAA-DRS.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "pricingEvents": {
            "title": "Legacy pricing-event selector",
            "type": "array",
            "description": "Compatibility setting retained for saved tasks. Live delivered records use the existing result-delivered event configuration.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeSourceUrls": {
            "title": "Include source URLs",
            "type": "boolean",
            "description": "Compatibility setting. Official source URLs remain part of every output record for provenance.",
            "default": true
          },
          "includeMatchReasons": {
            "title": "Include match reasons",
            "type": "boolean",
            "description": "Compatibility setting. Each record identifies its official-source selection.",
            "default": true
          },
          "includeRaw": {
            "title": "Include raw source fragments",
            "type": "boolean",
            "description": "Compatibility setting. Raw Federal Register text is parsed only for explicit fields and is not emitted by default.",
            "default": false
          },
          "emitDiagnostics": {
            "title": "Legacy diagnostic setting",
            "type": "boolean",
            "description": "Compatibility setting. A failed official-source read fails transparently; no synthetic diagnostic record is emitted.",
            "default": true
          },
          "outputMode": {
            "title": "Legacy output mode",
            "enum": [
              "live-records",
              "buyer-ready-records",
              "sample-records"
            ],
            "type": "string",
            "description": "Live records is the normal default. Sample records is retained only as a legacy saved-task alias for the captured verification fixture.",
            "default": "buyer-ready-records"
          },
          "webhookUrl": {
            "title": "Completion webhook URL",
            "type": "string",
            "description": "Optional endpoint that receives a compact completion summary after a run."
          },
          "actorSlug": {
            "title": "Actor slug",
            "type": "string",
            "description": "Compatibility traceability field for saved tasks."
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}