{
  "authority": "quality-contract-registry-v1",
  "contracts": [
    "API-001",
    "HTTP-007",
    "SEC-070",
    "SEC-072",
    "SEC-073",
    "SEC-081",
    "SEC-082"
  ],
  "preflight": {
    "allowedHeaders": [
      "content-type",
      "x-api-version"
    ],
    "allowedMethods": [
      "GET",
      "POST"
    ],
    "allowedOrigin": "https://tools.press.zone",
    "category": "cors",
    "method": "OPTIONS",
    "operation": "preflight"
  },
  "ratePolicies": {
    "admin_mutation": {
      "identity": "principal",
      "limit": 10,
      "windowSeconds": 60
    },
    "checkout": {
      "identity": "principal",
      "limit": 10,
      "windowSeconds": 60
    },
    "conversion_acceptance": {
      "identity": "principal",
      "limit": 10,
      "windowSeconds": 60
    },
    "download_signing": {
      "identity": "principal",
      "limit": 10,
      "windowSeconds": 60
    },
    "login": {
      "identity": "ip",
      "limit": 10,
      "windowSeconds": 60
    },
    "registration": {
      "identity": "ip",
      "limit": 10,
      "windowSeconds": 60
    },
    "stripe_webhook": {
      "identity": "principal",
      "limit": 10,
      "windowSeconds": 60
    },
    "upload_completion": {
      "identity": "principal",
      "limit": 10,
      "windowSeconds": 60
    },
    "upload_creation": {
      "identity": "principal",
      "limit": 10,
      "windowSeconds": 60
    },
    "worker_claim": {
      "identity": "principal",
      "limit": 10,
      "windowSeconds": 60
    },
    "worker_completion": {
      "identity": "principal",
      "limit": 10,
      "windowSeconds": 60
    },
    "worker_heartbeat": {
      "identity": "principal",
      "limit": 10,
      "windowSeconds": 60
    }
  },
  "registryVersion": 1,
  "responseRules": {
    "blockedCode": "DEPENDENCY_UNAVAILABLE",
    "errorStatusMax": 599,
    "errorStatusMin": 400,
    "successStatusMax": 299,
    "successStatusMin": 200
  },
  "routes": {
    "account_read": [
      [
        "GET",
        "/v1/account"
      ]
    ],
    "admin_adjust": [
      [
        "POST",
        "/v1/admin/adjust"
      ]
    ],
    "admin_mutation": [
      [
        "POST",
        "/v1/rate-fixture/admin_mutation"
      ]
    ],
    "admin_retry": [
      [
        "POST",
        "/v1/admin/retry"
      ]
    ],
    "admin_suspend": [
      [
        "POST",
        "/v1/admin/suspend"
      ]
    ],
    "auth_state_machine": [
      [
        "POST",
        "/v1/auth/refresh"
      ]
    ],
    "checkout": [
      [
        "POST",
        "/v1/rate-fixture/checkout"
      ]
    ],
    "conversion_accept": [
      [
        "POST",
        "/v1/conversions"
      ]
    ],
    "conversion_acceptance": [
      [
        "POST",
        "/v1/rate-fixture/conversion_acceptance"
      ]
    ],
    "conversion_cancel": [
      [
        "POST",
        "/v1/conversions/33333333-3333-4333-8333-333333333331/cancel"
      ],
      [
        "POST",
        "/v1/conversions/99999999-9999-4999-8999-999999999999/cancel"
      ]
    ],
    "conversion_list": [
      [
        "GET",
        "/v1/conversions"
      ],
      [
        "GET",
        "/v1/conversions?cursor=cursor_user_a"
      ],
      [
        "GET",
        "/v1/conversions?limit=0"
      ],
      [
        "GET",
        "/v1/conversions?limit=20"
      ]
    ],
    "conversion_read": [
      [
        "GET",
        "/v1/conversions/33333333-3333-4333-8333-333333333331"
      ],
      [
        "GET",
        "/v1/conversions/99999999-9999-4999-8999-999999999999"
      ],
      [
        "GET",
        "/v1/conversions/not-a-uuid"
      ]
    ],
    "crash_injection": [
      [
        "POST",
        "/v1/auth/refresh"
      ]
    ],
    "csrf_issue": [
      [
        "POST",
        "/v1/auth/csrf"
      ]
    ],
    "download_sign": [
      [
        "POST",
        "/v1/conversions/33333333-3333-4333-8333-333333333331/download"
      ],
      [
        "POST",
        "/v1/conversions/99999999-9999-4999-8999-999999999999/download"
      ]
    ],
    "download_signing": [
      [
        "POST",
        "/v1/rate-fixture/download_signing"
      ]
    ],
    "login": [
      [
        "POST",
        "/v1/auth/login"
      ],
      [
        "POST",
        "/v1/rate-fixture/login"
      ]
    ],
    "logout": [
      [
        "POST",
        "/v1/auth/logout"
      ]
    ],
    "password_reset_complete": [
      [
        "POST",
        "/v1/auth/password-reset/complete"
      ]
    ],
    "password_reset_request": [
      [
        "POST",
        "/v1/auth/password-reset/request"
      ]
    ],
    "preflight": [
      [
        "OPTIONS",
        "/v1/auth/csrf"
      ],
      [
        "OPTIONS",
        "/v1/auth/login"
      ],
      [
        "OPTIONS",
        "/v1/auth/logout"
      ],
      [
        "OPTIONS",
        "/v1/auth/password-reset/complete"
      ],
      [
        "OPTIONS",
        "/v1/auth/password-reset/request"
      ],
      [
        "OPTIONS",
        "/v1/auth/refresh"
      ],
      [
        "OPTIONS",
        "/v1/auth/refresh-csrf"
      ],
      [
        "OPTIONS",
        "/v1/auth/register"
      ],
      [
        "OPTIONS",
        "/v1/auth/session"
      ],
      [
        "OPTIONS",
        "/v1/conversions"
      ]
    ],
    "purchase_read": [
      [
        "GET",
        "/v1/purchases/55555555-5555-4555-8555-555555555551"
      ]
    ],
    "readiness": [
      [
        "GET",
        "/ready"
      ]
    ],
    "refresh": [
      [
        "POST",
        "/v1/auth/refresh"
      ]
    ],
    "refresh_csrf": [
      [
        "POST",
        "/v1/auth/refresh-csrf"
      ]
    ],
    "register": [
      [
        "POST",
        "/v1/auth/register"
      ]
    ],
    "registration": [
      [
        "POST",
        "/v1/rate-fixture/registration"
      ]
    ],
    "session": [
      [
        "GET",
        "/v1/auth/session"
      ]
    ],
    "sink_scan": [
      [
        "GET",
        "/v1/fixture-sinks/apm"
      ],
      [
        "GET",
        "/v1/fixture-sinks/app_log"
      ],
      [
        "GET",
        "/v1/fixture-sinks/cdn_log"
      ],
      [
        "GET",
        "/v1/fixture-sinks/crash_dump"
      ],
      [
        "GET",
        "/v1/fixture-sinks/error_reporter"
      ],
      [
        "GET",
        "/v1/fixture-sinks/metric"
      ],
      [
        "GET",
        "/v1/fixture-sinks/proxy_log"
      ],
      [
        "GET",
        "/v1/fixture-sinks/support_ui"
      ],
      [
        "GET",
        "/v1/fixture-sinks/trace"
      ],
      [
        "GET",
        "/v1/fixture-sinks/waf_log"
      ]
    ],
    "source_metadata": [
      [
        "GET",
        "/v1/uploads/44444444-4444-4444-8444-444444444441/source"
      ],
      [
        "GET",
        "/v1/uploads/99999999-9999-4999-8999-999999999999/source"
      ]
    ],
    "stripe_webhook": [
      [
        "POST",
        "/v1/rate-fixture/stripe_webhook"
      ]
    ],
    "upload_complete": [
      [
        "POST",
        "/v1/uploads/44444444-4444-4444-8444-444444444441/complete"
      ],
      [
        "POST",
        "/v1/uploads/99999999-9999-4999-8999-999999999999/complete"
      ]
    ],
    "upload_completion": [
      [
        "POST",
        "/v1/rate-fixture/upload_completion"
      ]
    ],
    "upload_creation": [
      [
        "POST",
        "/v1/rate-fixture/upload_creation"
      ]
    ],
    "upload_read": [
      [
        "GET",
        "/v1/uploads/44444444-4444-4444-8444-444444444441"
      ],
      [
        "GET",
        "/v1/uploads/99999999-9999-4999-8999-999999999999"
      ]
    ],
    "worker_claim": [
      [
        "POST",
        "/v1/rate-fixture/worker_claim"
      ]
    ],
    "worker_completion": [
      [
        "POST",
        "/v1/rate-fixture/worker_completion"
      ]
    ],
    "worker_heartbeat": [
      [
        "POST",
        "/v1/rate-fixture/worker_heartbeat"
      ]
    ],
    "zip_download": [
      [
        "GET",
        "/v1/conversions/33333333-3333-4333-8333-333333333331/zip"
      ]
    ]
  }
}
