{
  "x402Version": 2,
  "id": 7901,
  "slug": "7901",
  "resource": "https://i3p3mgbsn54dvlivnk6wbumal40eqtsn.lambda-url.us-east-1.on.aws/v1/migration-safety-auditor",
  "description": "Analyze Postgres, Supabase Postgres, or Prisma/Postgres migration SQL for destructive operations, lock/data-loss risk, backwards-compatibility hazards, rollback issues, and safer sequencing. Returns structured findings with evidence and confidence.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x94bab5853bff59401b355371f9c4b8ca6d6eca9d",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "250000",
      "maxTimeoutSeconds": 120
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "dialect": "postgres",
            "migration": "ALTER TABLE users ADD COLUMN plan TEXT;"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "findings": [],
            "risk": "low",
            "rollbackNotes": [],
            "safeSequence": [
              "Apply migration in staging first."
            ],
            "score": 10,
            "unknowns": []
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "additionalProperties": false,
                "properties": {
                  "context": {
                    "additionalProperties": false,
                    "properties": {
                      "applicationCompatibilityNotes": {
                        "type": "string"
                      },
                      "postgresVersion": {
                        "type": "string"
                      },
                      "tableSizes": {
                        "additionalProperties": {
                          "type": "number"
                        },
                        "propertyNames": {
                          "type": "string"
                        },
                        "type": "object"
                      }
                    },
                    "type": "object"
                  },
                  "dialect": {
                    "enum": [
                      "postgres",
                      "supabase-postgres",
                      "prisma-postgres"
                    ],
                    "type": "string"
                  },
                  "migration": {
                    "type": "string"
                  }
                },
                "required": [
                  "dialect",
                  "migration"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST",
                  "PUT",
                  "PATCH"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "additionalProperties": false,
                "properties": {
                  "findings": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "confidence": {
                          "maximum": 1,
                          "minimum": 0,
                          "type": "number"
                        },
                        "evidence": {
                          "type": "string"
                        },
                        "id": {
                          "type": "string"
                        },
                        "recommendation": {
                          "type": "string"
                        },
                        "risk": {
                          "type": "string"
                        },
                        "severity": {
                          "enum": [
                            "low",
                            "medium",
                            "high",
                            "critical"
                          ],
                          "type": "string"
                        },
                        "statement": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "severity",
                        "statement",
                        "risk",
                        "evidence",
                        "recommendation",
                        "confidence"
                      ],
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "risk": {
                    "enum": [
                      "low",
                      "medium",
                      "high",
                      "critical"
                    ],
                    "type": "string"
                  },
                  "rollbackNotes": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "safeSequence": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "score": {
                    "maximum": 100,
                    "minimum": 0,
                    "type": "number"
                  },
                  "unknowns": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  }
                },
                "required": [
                  "risk",
                  "score",
                  "findings",
                  "safeSequence",
                  "rollbackNotes",
                  "unknowns"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    },
    "payment-identifier": {
      "required": false
    }
  },
  "tags": [
    "bazaar",
    "payment-identifier"
  ],
  "sourceHost": "i3p3mgbsn54dvlivnk6wbumal40eqtsn.lambda-url.us-east-1.on.aws",
  "lastUpdated": "2026-09-16T18:06:28.183Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-09-16T18:06:28.021Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "i3p3mgbsn54dvlivnk6wbumal40eqtsn.lambda-url.us-east-1.on.aws",
    "manifest_name": "i3p3mgbsn54dvlivnk6wbumal40eqtsn.lambda-url.us-east-1.on.aws",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}