View JSON payload
{
"stack": "nextjs-app-router",
"endpoints": [
{
"path": "/api/auth/[...nextauth]",
"method": "GET",
"sourceFile": "app/api/auth/[...nextauth]/route.ts",
"statusCodes": [
200
],
"responseSchema": {
"type": "unknown",
"x-contrakt-note": "Handler could not be parsed"
}
},
{
"path": "/api/auth/[...nextauth]",
"method": "POST",
"sourceFile": "app/api/auth/[...nextauth]/route.ts",
"statusCodes": [
200
],
"responseSchema": {
"type": "unknown",
"x-contrakt-note": "Handler could not be parsed"
}
},
{
"path": "/api/contracts/[id]",
"method": "GET",
"pathParams": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string"
}
}
},
"sourceFile": "app/api/contracts/[id]/route.ts",
"statusCodes": [
404,
200
],
"responseSchema": {
"oneOf": [
{
"type": "object",
"properties": {
"error": {
"type": "string",
"examples": [
"Contract not found"
]
}
}
},
{
"type": "object",
"properties": {
"contract": {
"type": "object",
"properties": {
"id": {
"type": "unknown",
"x-contrakt-note": "no declaration found"
},
"name": {
"type": "unknown",
"x-contrakt-note": "no declaration found"
},
"slug": {
"type": "unknown",
"x-contrakt-note": "no declaration found"
},
"stack": {
"type": "unknown",
"x-contrakt-note": "no declaration found"
},
"userId": {
"type": "unknown",
"x-contrakt-note": "no declaration found"
},
"contract": {
"type": "unknown",
"x-contrakt-note": "no declaration found"
},
"createdAt": {
"type": "unknown",
"x-contrakt-note": "no declaration found"
},
"updatedAt": {
"type": "unknown",
"x-contrakt-note": "no declaration found"
},
"endpointCount": {
"type": "unknown",
"x-contrakt-note": "no declaration found"
}
}
}
}
}
]
}
},
{
"path": "/api/contracts",
"method": "GET",
"sourceFile": "app/api/contracts/route.ts",
"querySchema": {
"type": "object",
"properties": {
"q": {
"type": "string"
},
"limit": {
"type": "string"
},
"stack": {
"type": "string"
},
"offset": {
"type": "string"
}
}
},
"statusCodes": [
200
],
"responseSchema": {
"type": "object",
"properties": {
"contracts": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"slug",
"name",
"endpointCount",
"stack",
"createdAt",
"updatedAt"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"slug": {
"type": "string"
},
"stack": {
"type": "string"
},
"createdAt": {
"type": "object",
"required": [
"toString",
"toDateString",
"toTimeString",
"toLocaleString",
"toLocaleDateString",
"toLocaleTimeString",
"valueOf",
"getTime",
"getFullYear",
"getUTCFullYear",
"getMonth",
"getUTCMonth",
"getDate",
"getUTCDate",
"getDay",
"getUTCDay",
"getHours",
"getUTCHours",
"getMinutes",
"getUTCMinutes",
"getSeconds",
"getUTCSeconds",
"getMilliseconds",
"getUTCMilliseconds",
"getTimezoneOffset",
"setTime",
"setMilliseconds",
"setUTCMilliseconds",
"setSeconds",
"setUTCSeconds",
"setMinutes",
"setUTCMinutes",
"setHours",
"setUTCHours",
"setDate",
"setUTCDate",
"setMonth",
"setUTCMonth",
"setFullYear",
"setUTCFullYear",
"toUTCString",
"toISOString",
"toJSON",
"__@toPrimitive@1055"
],
"properties": {
"getDay": {
"type": "object",
"properties": {}
},
"toJSON": {
"type": "object",
"properties": {}
},
"getDate": {
"type": "object",
"properties": {}
},
"getTime": {
"type": "object",
"properties": {}
},
"setDate": {
"type": "object",
"properties": {}
},
"setTime": {
"type": "object",
"properties": {}
},
"valueOf": {
"type": "object",
"properties": {}
},
"getHours": {
"type": "object",
"properties": {}
},
"getMonth": {
"type": "object",
"properties": {}
},
"setHours": {
"type": "object",
"properties": {}
},
"setMonth": {
"type": "object",
"properties": {}
},
"toString": {
"type": "object",
"properties": {}
},
"getUTCDay": {
"type": "object",
"properties": {}
},
"getMinutes": {
"type": "object",
"properties": {}
},
"getSeconds": {
"type": "object",
"properties": {}
},
"getUTCDate": {
"type": "object",
"properties": {}
},
"setMinutes": {
"type": "object",
"properties": {}
},
"setSeconds": {
"type": "object",
"properties": {}
},
"setUTCDate": {
"type": "object",
"properties": {}
},
"getFullYear": {
"type": "object",
"properties": {}
},
"getUTCHours": {
"type": "object",
"properties": {}
},
"getUTCMonth": {
"type": "object",
"properties": {}
},
"setFullYear": {
"type": "object",
"properties": {}
},
"setUTCHours": {
"type": "object",
"properties": {}
},
"setUTCMonth": {
"type": "object",
"properties": {}
},
"toISOString": {
"type": "object",
"properties": {}
},
"toUTCString": {
"type": "object",
"properties": {}
},
"toDateString": {
"type": "object",
"properties": {}
},
"toTimeString": {
"type": "object",
"properties": {}
},
"getUTCMinutes": {
"type": "object",
"properties": {}
},
"getUTCSeconds": {
"type": "object",
"properties": {}
},
"setUTCMinutes": {
"type": "object",
"properties": {}
},
"setUTCSeconds": {
"type": "object",
"properties": {}
},
"getUTCFullYear": {
"type": "object",
"properties": {}
},
"setUTCFullYear": {
"type": "object",
"properties": {}
},
"toLocaleString": {
"type": "object",
"properties": {}
},
"getMilliseconds": {
"type": "object",
"properties": {}
},
"setMilliseconds": {
"type": "object",
"properties": {}
},
"getTimezoneOffset": {
"type": "object",
"properties": {}
},
"getUTCMilliseconds": {
"type": "object",
"properties": {}
},
"setUTCMilliseconds": {
"type": "object",
"properties": {}
},
"toLocaleDateString": {
"type": "object",
"properties": {}
},
"toLocaleTimeString": {
"type": "object",
"properties": {}
},
"__@toPrimitive@1055": {
"type": "object",
"properties": {}
}
}
},
"updatedAt": {
"type": "object",
"required": [
"toString",
"toDateString",
"toTimeString",
"toLocaleString",
"toLocaleDateString",
"toLocaleTimeString",
"valueOf",
"getTime",
"getFullYear",
"getUTCFullYear",
"getMonth",
"getUTCMonth",
"getDate",
"getUTCDate",
"getDay",
"getUTCDay",
"getHours",
"getUTCHours",
"getMinutes",
"getUTCMinutes",
"getSeconds",
"getUTCSeconds",
"getMilliseconds",
"getUTCMilliseconds",
"getTimezoneOffset",
"setTime",
"setMilliseconds",
"setUTCMilliseconds",
"setSeconds",
"setUTCSeconds",
"setMinutes",
"setUTCMinutes",
"setHours",
"setUTCHours",
"setDate",
"setUTCDate",
"setMonth",
"setUTCMonth",
"setFullYear",
"setUTCFullYear",
"toUTCString",
"toISOString",
"toJSON",
"__@toPrimitive@1055"
],
"properties": {
"getDay": {
"type": "object",
"properties": {}
},
"toJSON": {
"type": "object",
"properties": {}
},
"getDate": {
"type": "object",
"properties": {}
},
"getTime": {
"type": "object",
"properties": {}
},
"setDate": {
"type": "object",
"properties": {}
},
"setTime": {
"type": "object",
"properties": {}
},
"valueOf": {
"type": "object",
"properties": {}
},
"getHours": {
"type": "object",
"properties": {}
},
"getMonth": {
"type": "object",
"properties": {}
},
"setHours": {
"type": "object",
"properties": {}
},
"setMonth": {
"type": "object",
"properties": {}
},
"toString": {
"type": "object",
"properties": {}
},
"getUTCDay": {
"type": "object",
"properties": {}
},
"getMinutes": {
"type": "object",
"properties": {}
},
"getSeconds": {
"type": "object",
"properties": {}
},
"getUTCDate": {
"type": "object",
"properties": {}
},
"setMinutes": {
"type": "object",
"properties": {}
},
"setSeconds": {
"type": "object",
"properties": {}
},
"setUTCDate": {
"type": "object",
"properties": {}
},
"getFullYear": {
"type": "object",
"properties": {}
},
"getUTCHours": {
"type": "object",
"properties": {}
},
"getUTCMonth": {
"type": "object",
"properties": {}
},
"setFullYear": {
"type": "object",
"properties": {}
},
"setUTCHours": {
"type": "object",
"properties": {}
},
"setUTCMonth": {
"type": "object",
"properties": {}
},
"toISOString": {
"type": "object",
"properties": {}
},
"toUTCString": {
"type": "object",
"properties": {}
},
"toDateString": {
"type": "object",
"properties": {}
},
"toTimeString": {
"type": "object",
"properties": {}
},
"getUTCMinutes": {
"type": "object",
"properties": {}
},
"getUTCSeconds": {
"type": "object",
"properties": {}
},
"setUTCMinutes": {
"type": "object",
"properties": {}
},
"setUTCSeconds": {
"type": "object",
"properties": {}
},
"getUTCFullYear": {
"type": "object",
"properties": {}
},
"setUTCFullYear": {
"type": "object",
"properties": {}
},
"toLocaleString": {
"type": "object",
"properties": {}
},
"getMilliseconds": {
"type": "object",
"properties": {}
},
"setMilliseconds": {
"type": "object",
"properties": {}
},
"getTimezoneOffset": {
"type": "object",
"properties": {}
},
"getUTCMilliseconds": {
"type": "object",
"properties": {}
},
"setUTCMilliseconds": {
"type": "object",
"properties": {}
},
"toLocaleDateString": {
"type": "object",
"properties": {}
},
"toLocaleTimeString": {
"type": "object",
"properties": {}
},
"__@toPrimitive@1055": {
"type": "object",
"properties": {}
}
}
},
"endpointCount": {
"type": "number"
}
}
}
}
}
}
},
{
"path": "/api/contracts",
"method": "POST",
"sourceFile": "app/api/contracts/route.ts",
"statusCodes": [
401,
400,
200
],
"requestSchema": {
"type": "unknown",
"x-contrakt-note": "req.json() call found but type could not be resolved"
},
"responseSchema": {
"oneOf": [
{
"type": "object",
"properties": {
"error": {
"type": "string",
"examples": [
"Missing or invalid Authorization header"
]
}
}
},
{
"type": "object",
"properties": {
"error": {
"type": "string",
"examples": [
"Invalid token"
]
}
}
},
{
"type": "object",
"properties": {
"error": {
"type": "string",
"examples": [
"User not found"
]
}
}
},
{
"type": "object",
"properties": {
"error": {
"type": "string",
"examples": [
"Invalid JSON body"
]
}
}
},
{
"type": "object",
"properties": {
"error": {
"type": "string",
"examples": [
"Missing required field: name"
]
}
}
},
{
"type": "object",
"properties": {
"error": {
"type": "string",
"examples": [
"Missing required field: contract"
]
}
}
},
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"url": {
"type": "string"
},
"slug": {
"type": "string"
}
}
}
]
}
},
{
"path": "/api/tokens/[id]",
"method": "DELETE",
"pathParams": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string"
}
}
},
"sourceFile": "app/api/tokens/[id]/route.ts",
"statusCodes": [
401,
404,
200
],
"responseSchema": {
"oneOf": [
{
"type": "object",
"properties": {
"error": {
"type": "string",
"examples": [
"Unauthorized"
]
}
}
},
{
"type": "object",
"properties": {
"error": {
"type": "string",
"examples": [
"Token not found"
]
}
}
},
{
"type": "object",
"properties": {
"success": {
"type": "boolean"
}
}
}
]
}
},
{
"path": "/api/tokens",
"method": "GET",
"sourceFile": "app/api/tokens/route.ts",
"statusCodes": [
401,
200
],
"responseSchema": {
"oneOf": [
{
"type": "object",
"properties": {
"error": {
"type": "string",
"examples": [
"Unauthorized"
]
}
}
},
{
"type": "object",
"properties": {
"tokens": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"createdAt"
],
"properties": {
"id": {
"type": "string"
},
"createdAt": {
"type": "object",
"required": [
"toString",
"toDateString",
"toTimeString",
"toLocaleString",
"toLocaleDateString",
"toLocaleTimeString",
"valueOf",
"getTime",
"getFullYear",
"getUTCFullYear",
"getMonth",
"getUTCMonth",
"getDate",
"getUTCDate",
"getDay",
"getUTCDay",
"getHours",
"getUTCHours",
"getMinutes",
"getUTCMinutes",
"getSeconds",
"getUTCSeconds",
"getMilliseconds",
"getUTCMilliseconds",
"getTimezoneOffset",
"setTime",
"setMilliseconds",
"setUTCMilliseconds",
"setSeconds",
"setUTCSeconds",
"setMinutes",
"setUTCMinutes",
"setHours",
"setUTCHours",
"setDate",
"setUTCDate",
"setMonth",
"setUTCMonth",
"setFullYear",
"setUTCFullYear",
"toUTCString",
"toISOString",
"toJSON",
"__@toPrimitive@1055"
],
"properties": {
"getDay": {
"type": "object",
"properties": {}
},
"toJSON": {
"type": "object",
"properties": {}
},
"getDate": {
"type": "object",
"properties": {}
},
"getTime": {
"type": "object",
"properties": {}
},
"setDate": {
"type": "object",
"properties": {}
},
"setTime": {
"type": "object",
"properties": {}
},
"valueOf": {
"type": "object",
"properties": {}
},
"getHours": {
"type": "object",
"properties": {}
},
"getMonth": {
"type": "object",
"properties": {}
},
"setHours": {
"type": "object",
"properties": {}
},
"setMonth": {
"type": "object",
"properties": {}
},
"toString": {
"type": "object",
"properties": {}
},
"getUTCDay": {
"type": "object",
"properties": {}
},
"getMinutes": {
"type": "object",
"properties": {}
},
"getSeconds": {
"type": "object",
"properties": {}
},
"getUTCDate": {
"type": "object",
"properties": {}
},
"setMinutes": {
"type": "object",
"properties": {}
},
"setSeconds": {
"type": "object",
"properties": {}
},
"setUTCDate": {
"type": "object",
"properties": {}
},
"getFullYear": {
"type": "object",
"properties": {}
},
"getUTCHours": {
"type": "object",
"properties": {}
},
"getUTCMonth": {
"type": "object",
"properties": {}
},
"setFullYear": {
"type": "object",
"properties": {}
},
"setUTCHours": {
"type": "object",
"properties": {}
},
"setUTCMonth": {
"type": "object",
"properties": {}
},
"toISOString": {
"type": "object",
"properties": {}
},
"toUTCString": {
"type": "object",
"properties": {}
},
"toDateString": {
"type": "object",
"properties": {}
},
"toTimeString": {
"type": "object",
"properties": {}
},
"getUTCMinutes": {
"type": "object",
"properties": {}
},
"getUTCSeconds": {
"type": "object",
"properties": {}
},
"setUTCMinutes": {
"type": "object",
"properties": {}
},
"setUTCSeconds": {
"type": "object",
"properties": {}
},
"getUTCFullYear": {
"type": "object",
"properties": {}
},
"setUTCFullYear": {
"type": "object",
"properties": {}
},
"toLocaleString": {
"type": "object",
"properties": {}
},
"getMilliseconds": {
"type": "object",
"properties": {}
},
"setMilliseconds": {
"type": "object",
"properties": {}
},
"getTimezoneOffset": {
"type": "object",
"properties": {}
},
"getUTCMilliseconds": {
"type": "object",
"properties": {}
},
"setUTCMilliseconds": {
"type": "object",
"properties": {}
},
"toLocaleDateString": {
"type": "object",
"properties": {}
},
"toLocaleTimeString": {
"type": "object",
"properties": {}
},
"__@toPrimitive@1055": {
"type": "object",
"properties": {}
}
}
}
}
}
}
}
}
]
}
},
{
"path": "/api/tokens",
"method": "POST",
"sourceFile": "app/api/tokens/route.ts",
"statusCodes": [
401,
201
],
"responseSchema": {
"oneOf": [
{
"type": "object",
"properties": {
"error": {
"type": "string",
"examples": [
"Unauthorized"
]
}
}
},
{
"type": "object",
"properties": {
"token": {
"type": "string"
}
}
}
]
}
}
],
"generatedAt": "2026-05-27T08:49:14.351Z",
"projectRoot": "/Users/shouryasrivastava/Desktop/Vibed/contrakt-registry",
"schemaSyncVersion": "0.1.0"
}