{"openapi":"3.1.0","info":{"title":"FaveSaver API","version":"1.0.1","description":"Owner-isolated food/order reference. Personal tokens are scoped and independently revocable. Cookie writes require the app Origin. AI extraction is a draft only; Trash expires after 14 days."},"servers":[{"url":"https://favesaver.uppercut-labs.com"}],"paths":{"/api/v1/restaurants":{"get":{"summary":"List active restaurants","security":[{"personalToken":[]},{"accountToken":[]}],"x-required-scopes":["faves:read"],"responses":{"200":{"description":"Successful operation"},"401":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"409":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"413":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"428":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"429":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}},"post":{"summary":"Create restaurants","security":[{"personalToken":[]},{"accountToken":[]}],"x-required-scopes":["faves:write"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":8,"maxLength":200}},{"name":"x-dataset-revision","in":"header","required":false,"schema":{"type":"integer","minimum":0},"description":"Dataset generation from a coherent snapshot/list or x-dataset-revision read header. Required after the first full restore; capture before editing or creating a batch."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestaurantInput"}}}},"responses":{"200":{"description":"Successful operation"},"201":{"description":"Created or idempotently replayed"},"401":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"409":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"413":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"428":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"429":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/api/v1/restaurants/{id}":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"get":{"summary":"Read record and revision","security":[{"personalToken":[]},{"accountToken":[]}],"x-required-scopes":["faves:read"],"responses":{"200":{"description":"Successful operation"},"401":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"409":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"413":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"428":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"429":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}},"patch":{"summary":"Change supplied fields only","security":[{"personalToken":[]},{"accountToken":[]}],"x-required-scopes":["faves:write"],"parameters":[{"name":"If-Match","in":"header","required":true,"schema":{"type":"string"},"description":"Last-read writeRevision, for example \"2:3\". Numeric revisions are accepted only before the first full restore."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestaurantPatch"}}}},"responses":{"200":{"description":"Successful operation"},"401":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"409":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"413":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"428":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"429":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}},"delete":{"summary":"Move to 14-day Trash","security":[{"personalToken":[]},{"accountToken":[]}],"x-required-scopes":["faves:trash"],"parameters":[{"name":"If-Match","in":"header","required":true,"schema":{"type":"string"},"description":"Last-read writeRevision, for example \"2:3\". Numeric revisions are accepted only before the first full restore."}],"responses":{"200":{"description":"Successful operation"},"401":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"409":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"413":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"428":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"429":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/api/v1/restaurants/{id}/restore":{"post":{"summary":"Restore before the deletion deadline, beneath an active parent","security":[{"personalToken":[]},{"accountToken":[]}],"x-required-scopes":["faves:trash"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"If-Match","in":"header","required":true,"schema":{"type":"string"},"description":"Last-read writeRevision, for example \"2:3\". Numeric revisions are accepted only before the first full restore."}],"responses":{"200":{"description":"Successful operation"},"401":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"409":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"413":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"428":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"429":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/api/v1/orders":{"get":{"summary":"List active orders","security":[{"personalToken":[]},{"accountToken":[]}],"x-required-scopes":["faves:read"],"responses":{"200":{"description":"Successful operation"},"401":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"409":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"413":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"428":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"429":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}},"post":{"summary":"Create orders","security":[{"personalToken":[]},{"accountToken":[]}],"x-required-scopes":["faves:write"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":8,"maxLength":200}},{"name":"x-dataset-revision","in":"header","required":false,"schema":{"type":"integer","minimum":0},"description":"Dataset generation from a coherent snapshot/list or x-dataset-revision read header. Required after the first full restore; capture before editing or creating a batch."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderInput"}}}},"responses":{"200":{"description":"Successful operation"},"201":{"description":"Created or idempotently replayed"},"401":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"409":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"413":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"428":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"429":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/api/v1/orders/{id}":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"get":{"summary":"Read record and revision","security":[{"personalToken":[]},{"accountToken":[]}],"x-required-scopes":["faves:read"],"responses":{"200":{"description":"Successful operation"},"401":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"409":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"413":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"428":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"429":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}},"patch":{"summary":"Change supplied fields only","security":[{"personalToken":[]},{"accountToken":[]}],"x-required-scopes":["faves:write"],"parameters":[{"name":"If-Match","in":"header","required":true,"schema":{"type":"string"},"description":"Last-read writeRevision, for example \"2:3\". Numeric revisions are accepted only before the first full restore."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderPatch"}}}},"responses":{"200":{"description":"Successful operation"},"401":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"409":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"413":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"428":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"429":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}},"delete":{"summary":"Move to 14-day Trash","security":[{"personalToken":[]},{"accountToken":[]}],"x-required-scopes":["faves:trash"],"parameters":[{"name":"If-Match","in":"header","required":true,"schema":{"type":"string"},"description":"Last-read writeRevision, for example \"2:3\". Numeric revisions are accepted only before the first full restore."}],"responses":{"200":{"description":"Successful operation"},"401":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"409":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"413":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"428":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"429":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/api/v1/orders/{id}/restore":{"post":{"summary":"Restore before the deletion deadline, beneath an active parent","security":[{"personalToken":[]},{"accountToken":[]}],"x-required-scopes":["faves:trash"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"If-Match","in":"header","required":true,"schema":{"type":"string"},"description":"Last-read writeRevision, for example \"2:3\". Numeric revisions are accepted only before the first full restore."}],"responses":{"200":{"description":"Successful operation"},"401":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"409":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"413":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"428":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"429":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/api/v1/occurrences":{"get":{"summary":"List active occurrences","security":[{"personalToken":[]},{"accountToken":[]}],"x-required-scopes":["faves:read"],"responses":{"200":{"description":"Successful operation"},"401":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"409":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"413":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"428":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"429":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/api/v1/occurrences/{id}":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"get":{"summary":"Read record and revision","security":[{"personalToken":[]},{"accountToken":[]}],"x-required-scopes":["faves:read"],"responses":{"200":{"description":"Successful operation"},"401":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"409":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"413":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"428":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"429":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}},"patch":{"summary":"Change supplied fields only","security":[{"personalToken":[]},{"accountToken":[]}],"x-required-scopes":["faves:write"],"parameters":[{"name":"If-Match","in":"header","required":true,"schema":{"type":"string"},"description":"Last-read writeRevision, for example \"2:3\". Numeric revisions are accepted only before the first full restore."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OccurrencePatch"}}}},"responses":{"200":{"description":"Successful operation"},"401":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"409":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"413":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"428":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"429":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}},"delete":{"summary":"Move to 14-day Trash","security":[{"personalToken":[]},{"accountToken":[]}],"x-required-scopes":["faves:trash"],"parameters":[{"name":"If-Match","in":"header","required":true,"schema":{"type":"string"},"description":"Last-read writeRevision, for example \"2:3\". Numeric revisions are accepted only before the first full restore."}],"responses":{"200":{"description":"Successful operation"},"401":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"409":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"413":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"428":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"429":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/api/v1/occurrences/{id}/restore":{"post":{"summary":"Restore before the deletion deadline, beneath an active parent","security":[{"personalToken":[]},{"accountToken":[]}],"x-required-scopes":["faves:trash"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"If-Match","in":"header","required":true,"schema":{"type":"string"},"description":"Last-read writeRevision, for example \"2:3\". Numeric revisions are accepted only before the first full restore."}],"responses":{"200":{"description":"Successful operation"},"401":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"409":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"413":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"428":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"429":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/api/v1/orders/{id}/occurrences":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"get":{"summary":"Price/order history","security":[{"personalToken":[]},{"accountToken":[]}],"x-required-scopes":["faves:read"],"responses":{"200":{"description":"Successful operation"},"401":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"409":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"413":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"428":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"429":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}},"post":{"summary":"Record an order again without changing the favorite","security":[{"personalToken":[]},{"accountToken":[]}],"x-required-scopes":["faves:write"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":8,"maxLength":200}},{"name":"x-dataset-revision","in":"header","required":false,"schema":{"type":"integer","minimum":0},"description":"Dataset generation from a coherent snapshot/list or x-dataset-revision read header. Required after the first full restore; capture before editing or creating a batch."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OccurrenceInput"}}}},"responses":{"200":{"description":"Successful operation"},"201":{"description":"Created or replayed"},"401":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"409":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"413":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"428":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"429":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/api/v1/snapshot":{"get":{"summary":"Owner snapshot including Trash","security":[{"personalToken":[]},{"accountToken":[]}],"x-required-scopes":["faves:read"],"responses":{"200":{"description":"Successful operation"},"401":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"409":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"413":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"428":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"429":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/api/v1/trash":{"get":{"summary":"Recoverable Trash","security":[{"personalToken":[]},{"accountToken":[]}],"x-required-scopes":["faves:read"],"responses":{"200":{"description":"Successful operation"},"401":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"409":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"413":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"428":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"429":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/api/v1/backup":{"get":{"summary":"Full-fidelity suite backup without credentials (requires faves:export)","security":[{"personalToken":[]},{"accountToken":[]}],"x-required-scopes":["faves:export"],"responses":{"200":{"description":"Successful operation"},"401":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"409":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"413":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"428":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"429":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/api/v1/ai/providers":{"get":{"summary":"Verified provider readiness without inference","security":[{"personalToken":[]},{"accountToken":[]}],"responses":{"200":{"description":"Successful operation"},"401":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"409":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"413":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"428":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"429":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/api/v1/ai/draft":{"post":{"summary":"Extract an editable draft; does not persist food records or source images","security":[{"personalToken":[]},{"accountToken":[]}],"x-required-scopes":["faves:ai"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiInput"}}}},"responses":{"200":{"description":"Successful operation"},"401":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"409":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"413":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"428":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"429":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/api/v1/session":{"get":{"summary":"Current verified principal","security":[{"personalToken":[]},{"accountToken":[]}],"responses":{"200":{"description":"Successful operation"},"401":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"409":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"413":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"428":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"429":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/api/capabilities":{"get":{"summary":"Actual scoped operations","security":[{"personalToken":[]},{"accountToken":[]}],"responses":{"200":{"description":"Successful operation"},"401":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"409":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"413":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"428":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"429":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/api/v1/tokens":{"get":{"summary":"List public token metadata","security":[{"browserSession":[]}],"responses":{"200":{"description":"Successful operation"},"401":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"409":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"413":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"428":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"429":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}},"post":{"summary":"Issue one-time token, interactive recent sign-in only","security":[{"browserSession":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"scopes":{"minItems":1,"maxItems":32,"type":"array","items":{"type":"string","maxLength":100,"pattern":"^[a-z][a-z0-9_-]*:[a-z][a-z0-9_:.-]*$"}},"expiresInDays":{"default":90,"type":"integer","minimum":1,"maximum":365}},"required":["name","expiresInDays"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful operation"},"201":{"description":"One-time {token,record}"},"401":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"409":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"413":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"428":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"429":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/api/v1/tokens/{id}":{"delete":{"summary":"Revoke token, interactive recent sign-in only","security":[{"browserSession":[]}],"responses":{"200":{"description":"Successful operation"},"401":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"409":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"413":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"428":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"429":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/api/v1/backup/preview":{"post":{"summary":"Read-only preview, browser or distinct operator authority","security":[{"browserSession":[]},{"backupOperator":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"format":{"type":"string","const":"uppercut-suite-backup"},"formatVersion":{"type":"number","const":1},"appId":{"type":"string","enum":["domain-expansion","favesaver","biztriptracker","prefbook"]},"sourceSchemaVersion":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9._-]{1,80}$"},{"type":"integer","minimum":1,"maximum":9007199254740991}]},"exportedAt":{"type":"string"},"sections":{"type":"object","propertyNames":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,99}$"},"additionalProperties":{"$ref":"#/$defs/__schema0"}},"integrity":{"type":"object","properties":{"algorithm":{"type":"string","const":"sha256"},"digest":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["algorithm","digest"],"additionalProperties":false}},"required":["format","formatVersion","appId","sourceSchemaVersion","exportedAt","sections","integrity"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}}},"responses":{"200":{"description":"Successful operation"},"401":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"409":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"413":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"428":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"429":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/api/v1/backup/restore":{"post":{"summary":"Atomic empty or confirmed replacement, recent browser or distinct operator only","security":[{"browserSession":[]},{"backupOperator":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"mode":{"type":"string","enum":["empty","replace"]},"previewId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"hash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"targetRevision":{"type":"string","minLength":1,"maxLength":200},"idempotencyKey":{"type":"string","pattern":"^[A-Za-z0-9._:-]{16,128}$"},"confirmation":{"type":"string","const":"Replace all existing data with this backup"}},"required":["mode","previewId","hash","targetRevision","idempotencyKey"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful operation"},"401":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"409":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"413":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"428":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"429":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/api/v1/preferences":{"get":{"summary":"App-owned preferences","security":[{"personalToken":[]},{"accountToken":[]}],"responses":{"200":{"description":"Successful operation"},"401":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"409":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"413":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"428":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"429":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}},"patch":{"summary":"Update time zone without changing dates","security":[{"browserSession":[]}],"parameters":[{"name":"x-dataset-revision","in":"header","required":false,"schema":{"type":"integer","minimum":0},"description":"Dataset generation from a coherent snapshot/list or x-dataset-revision read header. Required after the first full restore; capture before editing or creating a batch."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"timeZone":{"default":"America/Chicago","type":"string","maxLength":100}},"required":["timeZone"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful operation"},"401":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"409":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"413":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"428":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"429":{"description":"RFC 9457 application/problem+json with stable code and x-request-id; sensitive diagnostics are excluded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}},"components":{"securitySchemes":{"browserSession":{"type":"apiKey","in":"cookie","name":"__Host-favesaver_session"},"backupOperator":{"type":"http","scheme":"bearer","bearerFormat":"fsop1.<short-lived operator capability>"},"accountToken":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Uppercut Account access token for this product (the Android app): EdDSA at+jwt, audience https://favesaver.uppercut-labs.com, five-minute lifetime. Same identity and rules as a browser session. Routes that need a recent sign-in accept it when its uca_auth_time (the sign-in time, kept unchanged by refresh) is within the same five minutes as a browser session's; otherwise they answer recent_auth_required."},"personalToken":{"type":"http","scheme":"bearer","bearerFormat":"fsv1.id.secret"}},"schemas":{"AppId":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","enum":["domain-expansion","favesaver","biztriptracker","prefbook"]},"TokenRequest":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"scopes":{"minItems":1,"maxItems":32,"type":"array","items":{"type":"string","maxLength":100,"pattern":"^[a-z][a-z0-9_-]*:[a-z][a-z0-9_:.-]*$"}},"expiresInDays":{"default":90,"type":"integer","minimum":1,"maximum":365}},"required":["name","expiresInDays"],"additionalProperties":false},"TokenRecord":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":200},"name":{"type":"string","minLength":1,"maxLength":100},"scopes":{"minItems":1,"maxItems":32,"type":"array","items":{"type":"string","maxLength":100,"pattern":"^[a-z][a-z0-9_-]*:[a-z][a-z0-9_:.-]*$"}},"createdAt":{"type":"string"},"expiresAt":{"type":"string"},"revokedAt":{"type":["string","null"]},"lastUsedAt":{"type":["string","null"]}},"required":["id","name","scopes","createdAt","expiresAt","revokedAt"],"additionalProperties":false},"TokenList":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"tokens":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":200},"name":{"type":"string","minLength":1,"maxLength":100},"scopes":{"minItems":1,"maxItems":32,"type":"array","items":{"type":"string","maxLength":100,"pattern":"^[a-z][a-z0-9_-]*:[a-z][a-z0-9_:.-]*$"}},"createdAt":{"type":"string"},"expiresAt":{"type":"string"},"revokedAt":{"type":["string","null"]},"lastUsedAt":{"type":["string","null"]}},"required":["id","name","scopes","createdAt","expiresAt","revokedAt"],"additionalProperties":false}}},"required":["tokens"],"additionalProperties":false},"TokenCreated":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"token":{"type":"string","minLength":32},"record":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":200},"name":{"type":"string","minLength":1,"maxLength":100},"scopes":{"minItems":1,"maxItems":32,"type":"array","items":{"type":"string","maxLength":100,"pattern":"^[a-z][a-z0-9_-]*:[a-z][a-z0-9_:.-]*$"}},"createdAt":{"type":"string"},"expiresAt":{"type":"string"},"revokedAt":{"type":["string","null"]},"lastUsedAt":{"type":["string","null"]}},"required":["id","name","scopes","createdAt","expiresAt","revokedAt"],"additionalProperties":false}},"required":["token","record"],"additionalProperties":false},"TokenRevoked":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"revoked":{"type":"boolean","const":true},"id":{"type":"string","minLength":1}},"required":["revoked","id"],"additionalProperties":false},"Session":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":200},"authKind":{"type":"string","enum":["session","pat"]},"recentAuth":{"type":"boolean"},"scopes":{"maxItems":64,"type":"array","items":{"type":"string","maxLength":100,"pattern":"^[a-z][a-z0-9_-]*:[a-z][a-z0-9_:.-]*$"}},"connectionState":{"type":"string","enum":["connected","reauthentication_required"]},"email":{"anyOf":[{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},{"type":"null"}]},"name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]}},"required":["subject","authKind","recentAuth","scopes","connectionState"],"additionalProperties":false},"ProblemDetails":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"type":{"type":"string","format":"uri"},"title":{"type":"string","minLength":1,"maxLength":200},"status":{"type":"integer","minimum":400,"maximum":599},"detail":{"type":"string","maxLength":1000},"instance":{"type":"string","minLength":1,"maxLength":1000},"code":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,99}$"},"requestId":{"type":"string","pattern":"^[A-Za-z0-9._:-]{1,100}$"},"retryable":{"type":"boolean"},"errors":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","maxLength":100},"code":{"type":"string","maxLength":100}},"required":["field","code"],"additionalProperties":false}},"existingId":{"type":"string","minLength":1,"maxLength":200},"issues":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"path":{"maxItems":32,"type":"array","items":{"anyOf":[{"type":"string","maxLength":100},{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}]}},"code":{"type":"string","maxLength":100},"message":{"type":"string","maxLength":500}},"required":["path","message"],"additionalProperties":false}}},"required":["type","title","status","detail","instance","code","requestId","retryable"],"additionalProperties":false},"Preferences":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"timeZone":{"default":"America/Chicago","type":"string","maxLength":100}},"required":["timeZone"],"additionalProperties":false},"RestaurantInput":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":160},"note":{"default":"","type":"string","maxLength":32000}},"required":["name"],"additionalProperties":false},"RestaurantPatch":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":160},"note":{"type":"string","maxLength":32000}},"additionalProperties":false,"minProperties":1},"OrderInput":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"restaurantId":{"type":"string","minLength":1,"maxLength":100},"title":{"default":"","type":"string","maxLength":160},"items":{"minItems":1,"maxItems":32,"type":"array","items":{"type":"string","minLength":1,"maxLength":160}},"note":{"default":"","type":"string","maxLength":32000},"priceMinor":{"default":null,"anyOf":[{"type":"integer","minimum":0,"maximum":100000000},{"type":"null"}]},"currency":{"default":"USD","type":"string","const":"USD"}},"required":["restaurantId","items"],"additionalProperties":false},"OrderPatch":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"restaurantId":{"type":"string","minLength":1,"maxLength":100},"title":{"type":"string","maxLength":160},"items":{"minItems":1,"maxItems":32,"type":"array","items":{"type":"string","minLength":1,"maxLength":160}},"note":{"type":"string","maxLength":32000},"priceMinor":{"anyOf":[{"type":"integer","minimum":0,"maximum":100000000},{"type":"null"}]},"currency":{"type":"string","const":"USD"}},"additionalProperties":false,"minProperties":1},"OccurrenceInput":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orderedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"orderedOn":{"type":"string"},"priceMinor":{"default":null,"anyOf":[{"type":"integer","minimum":0,"maximum":100000000},{"type":"null"}]}},"additionalProperties":false},"OccurrencePatch":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orderedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"orderedOn":{"type":"string"},"priceMinor":{"anyOf":[{"type":"integer","minimum":0,"maximum":100000000},{"type":"null"}]}},"additionalProperties":false,"minProperties":1},"AiInput":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"text":{"type":"string","maxLength":32000},"image":{"type":"object","properties":{"mimeType":{"type":"string","enum":["image/jpeg","image/png","image/webp"]},"data":{"type":"string","minLength":1,"maxLength":8000000}},"required":["mimeType","data"],"additionalProperties":false}},"additionalProperties":false,"minProperties":1}}}}