{"openapi":"3.0.3","info":{"title":"Enjazy Server API","description":"REST API over the shared Enjazy core — lists, tasks, sub-tasks, tags, projects, comments and the activity log — plus the offline-first sync channel and outbound webhooks. The `/api/*` surface can be locked with an API key (set `ENJAZY_API_KEYS`); `/api/sync/*` stays public unless `ENJAZY_API_KEYS_SYNC=true`, and `/health` and `/docs/json` are always public.","version":"2.0.0"},"components":{"securitySchemes":{"apiKeyHeader":{"type":"apiKey","in":"header","name":"X-API-Key","description":"API key sent as `X-API-Key: <key>`."},"bearerAuth":{"type":"http","scheme":"bearer","description":"API key sent as `Authorization: Bearer <key>`."}},"schemas":{}},"paths":{"/health":{"get":{"tags":["health"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["ok"]},"service":{"type":"string","enum":["enjazy-server"]},"auth":{"type":"string","enum":["public","api-key","accounts"]},"version":{"type":"string","minLength":1},"schema":{"type":"integer"},"schemaVersion":{"type":"integer"},"sync":{"type":"object","properties":{"proto":{"type":"number","enum":[2]},"entities":{"type":"array","items":{"type":"string","minLength":1}},"tombstones":{"type":"boolean","enum":[true]},"deletions":{"type":"boolean","enum":[true]},"count":{"type":"boolean","enum":[true]},"paginated":{"type":"boolean","enum":[true]},"pageLimitMax":{"type":"integer","minimum":0,"exclusiveMinimum":true}},"required":["proto","entities","tombstones","deletions","count","paginated","pageLimitMax"],"additionalProperties":false},"ai":{"type":"object","properties":{"available":{"type":"boolean"}},"required":["available"],"additionalProperties":false}},"required":["status","service","auth","version","schema","schemaVersion","sync"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/auth/config":{"get":{"tags":["auth"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"signupsEnabled":{"type":"boolean"},"mailConfigured":{"type":"boolean"},"supportEmail":{"type":"string","nullable":true},"planGates":{"type":"string","enum":["off","legacy","all"]},"webAppOrigin":{"type":"string"},"siteLinks":{"type":"object","properties":{"privacy":{"type":"string"},"terms":{"type":"string"},"help":{"type":"string"},"status":{"type":"string"}},"required":[],"additionalProperties":false},"version":{"type":"string","minLength":1},"schema":{"type":"integer"},"passkeys":{"type":"boolean"},"limits":{"type":"object","properties":{"passwordMin":{"type":"integer"},"passwordMax":{"type":"integer"},"mfaDigits":{"type":"integer"},"totpPeriodSec":{"type":"integer"},"totpWindowSteps":{"type":"integer"},"mfaWindowMin":{"type":"integer"},"recoveryCodeCount":{"type":"integer"},"loginFailMax":{"type":"integer"},"ipFailMax":{"type":"integer"},"lockoutWindowMin":{"type":"integer"},"lockoutMin":{"type":"integer"},"resetLinkMin":{"type":"integer"},"verifyLinkHours":{"type":"integer"},"verifyCodeDigits":{"type":"integer"},"verifyCodeTtlMin":{"type":"integer"},"verifyCodeMaxAttempts":{"type":"integer"},"inviteDays":{"type":"integer"},"inviteCodeLen":{"type":"integer"},"resendCooldownSec":{"type":"integer"},"pinMin":{"type":"integer"},"pinMax":{"type":"integer"}},"required":["passwordMin","passwordMax","mfaDigits","totpPeriodSec","totpWindowSteps","mfaWindowMin","recoveryCodeCount","loginFailMax","ipFailMax","lockoutWindowMin","lockoutMin","resetLinkMin","verifyLinkHours","verifyCodeDigits","verifyCodeTtlMin","verifyCodeMaxAttempts","inviteDays","inviteCodeLen","resendCooldownSec","pinMin","pinMax"],"additionalProperties":false}},"required":["signupsEnabled","mailConfigured","supportEmail","planGates","siteLinks","version","schema","passkeys","limits"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/auth/login":{"post":{"tags":["auth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"identifier":{"type":"string"},"email":{"type":"string"},"username":{"type":"string"},"password":{"type":"string"},"client":{"type":"object","properties":{"app":{"type":"string","enum":["desktop","android","web","admin","cli","other"]},"version":{"type":"string"},"os":{"type":"string"},"device":{"type":"string"},"name":{"type":"string"}},"required":[],"additionalProperties":false}},"required":["password"],"additionalProperties":false}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"access_token":{"type":"string","minLength":1},"token_type":{"type":"string","enum":["Bearer"]},"expires_in":{"type":"integer","minimum":0,"exclusiveMinimum":true},"refresh_token":{"type":"string","minLength":1},"user":{"type":"object","properties":{"id":{"type":"string","minLength":1},"username":{"type":"string"},"email":{"type":"string","nullable":true},"role":{"type":"string","enum":["admin","user"]},"status":{"type":"string","enum":["active","disabled"]},"displayName":{"type":"string","nullable":true},"mfaEnabled":{"type":"boolean"},"createdAt":{"type":"string","minLength":1},"updatedAt":{"type":"string","minLength":1},"passwordChangedAt":{"type":"string","minLength":1,"nullable":true},"lastSignedInAt":{"type":"string","minLength":1,"nullable":true},"emailVerifiedAt":{"type":"string","minLength":1,"nullable":true},"recoveryCodesLeft":{"type":"integer","minimum":0},"passkeyCount":{"type":"integer","minimum":0},"grammaticalGender":{"type":"string","enum":["masculine","feminine","unspecified"]},"locale":{"type":"string","enum":["en","ar"]},"digits":{"type":"string","enum":["latn","arab"]},"notifySharingEmails":{"type":"boolean"}},"required":["id","username","email","role","status","displayName","mfaEnabled","createdAt","updatedAt","passwordChangedAt","lastSignedInAt","emailVerifiedAt","recoveryCodesLeft","grammaticalGender","locale","digits","notifySharingEmails"],"additionalProperties":false}},"required":["access_token","token_type","expires_in","refresh_token","user"],"additionalProperties":false},{"type":"object","properties":{"mfa_required":{"type":"boolean","enum":[true]},"mfa_token":{"type":"string","minLength":1}},"required":["mfa_required","mfa_token"],"additionalProperties":false}]}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/auth/login/totp":{"post":{"tags":["auth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mfa_token":{"type":"string"},"mfaToken":{"type":"string"},"code":{"type":"string"},"client":{"type":"object","properties":{"app":{"type":"string","enum":["desktop","android","web","admin","cli","other"]},"version":{"type":"string"},"os":{"type":"string"},"device":{"type":"string"},"name":{"type":"string"}},"required":[],"additionalProperties":false}},"required":["code"],"additionalProperties":false}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"access_token":{"type":"string","minLength":1},"token_type":{"type":"string","enum":["Bearer"]},"expires_in":{"type":"integer","minimum":0,"exclusiveMinimum":true},"refresh_token":{"type":"string","minLength":1},"user":{"type":"object","properties":{"id":{"type":"string","minLength":1},"username":{"type":"string"},"email":{"type":"string","nullable":true},"role":{"type":"string","enum":["admin","user"]},"status":{"type":"string","enum":["active","disabled"]},"displayName":{"type":"string","nullable":true},"mfaEnabled":{"type":"boolean"},"createdAt":{"type":"string","minLength":1},"updatedAt":{"type":"string","minLength":1},"passwordChangedAt":{"type":"string","minLength":1,"nullable":true},"lastSignedInAt":{"type":"string","minLength":1,"nullable":true},"emailVerifiedAt":{"type":"string","minLength":1,"nullable":true},"recoveryCodesLeft":{"type":"integer","minimum":0},"passkeyCount":{"type":"integer","minimum":0},"grammaticalGender":{"type":"string","enum":["masculine","feminine","unspecified"]},"locale":{"type":"string","enum":["en","ar"]},"digits":{"type":"string","enum":["latn","arab"]},"notifySharingEmails":{"type":"boolean"}},"required":["id","username","email","role","status","displayName","mfaEnabled","createdAt","updatedAt","passwordChangedAt","lastSignedInAt","emailVerifiedAt","recoveryCodesLeft","grammaticalGender","locale","digits","notifySharingEmails"],"additionalProperties":false}},"required":["access_token","token_type","expires_in","refresh_token","user"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/auth/refresh":{"post":{"tags":["auth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"refresh_token":{"type":"string"},"refreshToken":{"type":"string"},"client":{"type":"object","properties":{"app":{"type":"string","enum":["desktop","android","web","admin","cli","other"]},"version":{"type":"string"},"os":{"type":"string"},"device":{"type":"string"},"name":{"type":"string"}},"required":[],"additionalProperties":false}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"access_token":{"type":"string","minLength":1},"token_type":{"type":"string","enum":["Bearer"]},"expires_in":{"type":"integer","minimum":0,"exclusiveMinimum":true},"refresh_token":{"type":"string","minLength":1},"user":{"type":"object","properties":{"id":{"type":"string","minLength":1},"username":{"type":"string"},"email":{"type":"string","nullable":true},"role":{"type":"string","enum":["admin","user"]},"status":{"type":"string","enum":["active","disabled"]},"displayName":{"type":"string","nullable":true},"mfaEnabled":{"type":"boolean"},"createdAt":{"type":"string","minLength":1},"updatedAt":{"type":"string","minLength":1},"passwordChangedAt":{"type":"string","minLength":1,"nullable":true},"lastSignedInAt":{"type":"string","minLength":1,"nullable":true},"emailVerifiedAt":{"type":"string","minLength":1,"nullable":true},"recoveryCodesLeft":{"type":"integer","minimum":0},"passkeyCount":{"type":"integer","minimum":0},"grammaticalGender":{"type":"string","enum":["masculine","feminine","unspecified"]},"locale":{"type":"string","enum":["en","ar"]},"digits":{"type":"string","enum":["latn","arab"]},"notifySharingEmails":{"type":"boolean"}},"required":["id","username","email","role","status","displayName","mfaEnabled","createdAt","updatedAt","passwordChangedAt","lastSignedInAt","emailVerifiedAt","recoveryCodesLeft","grammaticalGender","locale","digits","notifySharingEmails"],"additionalProperties":false}},"required":["access_token","token_type","expires_in","refresh_token","user"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/auth/logout":{"post":{"tags":["auth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"refresh_token":{"type":"string"},"refreshToken":{"type":"string"}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/auth/signup":{"post":{"tags":["auth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string"},"password":{"type":"string"},"displayName":{"type":"string","nullable":true},"invite":{"type":"string"},"inviteCode":{"type":"string"},"plan":{"type":"string"},"locale":{"type":"string","enum":["en","ar"]},"digits":{"type":"string","enum":["latn","arab"]},"client":{"type":"object","properties":{"app":{"type":"string","enum":["desktop","android","web","admin","cli","other"]},"version":{"type":"string"},"os":{"type":"string"},"device":{"type":"string"},"name":{"type":"string"}},"required":[],"additionalProperties":false}},"required":["email","password"],"additionalProperties":false}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"access_token":{"type":"string","minLength":1},"token_type":{"type":"string","enum":["Bearer"]},"expires_in":{"type":"integer","minimum":0,"exclusiveMinimum":true},"refresh_token":{"type":"string","minLength":1},"user":{"type":"object","properties":{"id":{"type":"string","minLength":1},"username":{"type":"string"},"email":{"type":"string","nullable":true},"role":{"type":"string","enum":["admin","user"]},"status":{"type":"string","enum":["active","disabled"]},"displayName":{"type":"string","nullable":true},"mfaEnabled":{"type":"boolean"},"createdAt":{"type":"string","minLength":1},"updatedAt":{"type":"string","minLength":1},"passwordChangedAt":{"type":"string","minLength":1,"nullable":true},"lastSignedInAt":{"type":"string","minLength":1,"nullable":true},"emailVerifiedAt":{"type":"string","minLength":1,"nullable":true},"recoveryCodesLeft":{"type":"integer","minimum":0},"passkeyCount":{"type":"integer","minimum":0},"grammaticalGender":{"type":"string","enum":["masculine","feminine","unspecified"]},"locale":{"type":"string","enum":["en","ar"]},"digits":{"type":"string","enum":["latn","arab"]},"notifySharingEmails":{"type":"boolean"}},"required":["id","username","email","role","status","displayName","mfaEnabled","createdAt","updatedAt","passwordChangedAt","lastSignedInAt","emailVerifiedAt","recoveryCodesLeft","grammaticalGender","locale","digits","notifySharingEmails"],"additionalProperties":false}},"required":["access_token","token_type","expires_in","refresh_token","user"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/auth/me":{"get":{"tags":["auth"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1},"username":{"type":"string"},"email":{"type":"string","nullable":true},"role":{"type":"string","enum":["admin","user"]},"status":{"type":"string","enum":["active","disabled"]},"displayName":{"type":"string","nullable":true},"mfaEnabled":{"type":"boolean"},"createdAt":{"type":"string","minLength":1},"updatedAt":{"type":"string","minLength":1},"passwordChangedAt":{"type":"string","minLength":1,"nullable":true},"lastSignedInAt":{"type":"string","minLength":1,"nullable":true},"emailVerifiedAt":{"type":"string","minLength":1,"nullable":true},"recoveryCodesLeft":{"type":"integer","minimum":0},"passkeyCount":{"type":"integer","minimum":0},"grammaticalGender":{"type":"string","enum":["masculine","feminine","unspecified"]},"locale":{"type":"string","enum":["en","ar"]},"digits":{"type":"string","enum":["latn","arab"]},"notifySharingEmails":{"type":"boolean"}},"required":["id","username","email","role","status","displayName","mfaEnabled","createdAt","updatedAt","passwordChangedAt","lastSignedInAt","emailVerifiedAt","recoveryCodesLeft","grammaticalGender","locale","digits","notifySharingEmails"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/auth/profile":{"patch":{"tags":["auth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"displayName":{"type":"string","nullable":true},"email":{"type":"string"},"password":{"type":"string"},"grammaticalGender":{"type":"string","enum":["masculine","feminine","unspecified"]},"locale":{"type":"string","enum":["en","ar"]},"digits":{"type":"string","enum":["latn","arab"]},"notifySharingEmails":{"type":"boolean"}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1},"username":{"type":"string"},"email":{"type":"string","nullable":true},"role":{"type":"string","enum":["admin","user"]},"status":{"type":"string","enum":["active","disabled"]},"displayName":{"type":"string","nullable":true},"mfaEnabled":{"type":"boolean"},"createdAt":{"type":"string","minLength":1},"updatedAt":{"type":"string","minLength":1},"passwordChangedAt":{"type":"string","minLength":1,"nullable":true},"lastSignedInAt":{"type":"string","minLength":1,"nullable":true},"emailVerifiedAt":{"type":"string","minLength":1,"nullable":true},"recoveryCodesLeft":{"type":"integer","minimum":0},"passkeyCount":{"type":"integer","minimum":0},"grammaticalGender":{"type":"string","enum":["masculine","feminine","unspecified"]},"locale":{"type":"string","enum":["en","ar"]},"digits":{"type":"string","enum":["latn","arab"]},"notifySharingEmails":{"type":"boolean"}},"required":["id","username","email","role","status","displayName","mfaEnabled","createdAt","updatedAt","passwordChangedAt","lastSignedInAt","emailVerifiedAt","recoveryCodesLeft","grammaticalGender","locale","digits","notifySharingEmails"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/auth/password":{"post":{"tags":["auth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"currentPassword":{"type":"string"},"newPassword":{"type":"string"},"client":{"type":"object","properties":{"app":{"type":"string","enum":["desktop","android","web","admin","cli","other"]},"version":{"type":"string"},"os":{"type":"string"},"device":{"type":"string"},"name":{"type":"string"}},"required":[],"additionalProperties":false}},"required":["currentPassword","newPassword"],"additionalProperties":false}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"access_token":{"type":"string","minLength":1},"token_type":{"type":"string","enum":["Bearer"]},"expires_in":{"type":"integer","minimum":0,"exclusiveMinimum":true},"refresh_token":{"type":"string","minLength":1},"user":{"type":"object","properties":{"id":{"type":"string","minLength":1},"username":{"type":"string"},"email":{"type":"string","nullable":true},"role":{"type":"string","enum":["admin","user"]},"status":{"type":"string","enum":["active","disabled"]},"displayName":{"type":"string","nullable":true},"mfaEnabled":{"type":"boolean"},"createdAt":{"type":"string","minLength":1},"updatedAt":{"type":"string","minLength":1},"passwordChangedAt":{"type":"string","minLength":1,"nullable":true},"lastSignedInAt":{"type":"string","minLength":1,"nullable":true},"emailVerifiedAt":{"type":"string","minLength":1,"nullable":true},"recoveryCodesLeft":{"type":"integer","minimum":0},"passkeyCount":{"type":"integer","minimum":0},"grammaticalGender":{"type":"string","enum":["masculine","feminine","unspecified"]},"locale":{"type":"string","enum":["en","ar"]},"digits":{"type":"string","enum":["latn","arab"]},"notifySharingEmails":{"type":"boolean"}},"required":["id","username","email","role","status","displayName","mfaEnabled","createdAt","updatedAt","passwordChangedAt","lastSignedInAt","emailVerifiedAt","recoveryCodesLeft","grammaticalGender","locale","digits","notifySharingEmails"],"additionalProperties":false}},"required":["access_token","token_type","expires_in","refresh_token","user"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/auth/password/forgot":{"post":{"tags":["auth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string"},"lang":{"type":"string","enum":["en","ar"]}},"required":["email"],"additionalProperties":false}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/auth/password/reset":{"post":{"tags":["auth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string"},"newPassword":{"type":"string"}},"required":["token","newPassword"],"additionalProperties":false}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/auth/email/verify/send":{"post":{"tags":["auth"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"sent":{"type":"boolean"},"alreadyVerified":{"type":"boolean"}},"required":["sent"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/auth/email/verify":{"post":{"tags":["auth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"token":{"type":"string","minLength":1}},"required":["token"],"additionalProperties":false},{"type":"object","properties":{"email":{"type":"string"},"code":{"type":"string"}},"required":["email","code"],"additionalProperties":false}]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"emailVerifiedAt":{"type":"string"}},"required":["emailVerifiedAt"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/auth/email/verify/resend":{"post":{"tags":["auth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"token":{"type":"string","minLength":1}},"required":["token"],"additionalProperties":false},{"type":"object","properties":{"email":{"type":"string"}},"required":["email"],"additionalProperties":false}]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/auth/sessions":{"get":{"tags":["auth"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"sessions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"userId":{"type":"string","minLength":1},"app":{"type":"string","enum":["desktop","android","web","admin","cli","other"]},"appVersion":{"type":"string","nullable":true},"clientName":{"type":"string","nullable":true},"clientVersion":{"type":"string","nullable":true},"os":{"type":"string","nullable":true},"device":{"type":"string","nullable":true},"userAgent":{"type":"string","nullable":true},"createdAt":{"type":"string","minLength":1},"lastUsedAt":{"type":"string","minLength":1},"expiresAt":{"type":"string","minLength":1},"current":{"type":"boolean"}},"required":["id","userId","app","appVersion","clientName","clientVersion","os","device","userAgent","createdAt","lastUsedAt","expiresAt","current"],"additionalProperties":false}}},"required":["sessions"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/auth/sessions/{id}":{"delete":{"tags":["auth"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/auth/sessions/revoke-others":{"post":{"tags":["auth"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]},"revoked":{"type":"integer"}},"required":["ok","revoked"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/auth/sessions/revoke-all":{"post":{"tags":["auth"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/auth/session/from-sso":{"post":{"tags":["auth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"client":{"type":"object","properties":{"app":{"type":"string","enum":["desktop","android","web","admin","cli","other"]},"version":{"type":"string"},"os":{"type":"string"},"device":{"type":"string"},"name":{"type":"string"}},"required":[],"additionalProperties":false}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"access_token":{"type":"string","minLength":1},"token_type":{"type":"string","enum":["Bearer"]},"expires_in":{"type":"integer","minimum":0,"exclusiveMinimum":true},"refresh_token":{"type":"string","minLength":1},"user":{"type":"object","properties":{"id":{"type":"string","minLength":1},"username":{"type":"string"},"email":{"type":"string","nullable":true},"role":{"type":"string","enum":["admin","user"]},"status":{"type":"string","enum":["active","disabled"]},"displayName":{"type":"string","nullable":true},"mfaEnabled":{"type":"boolean"},"createdAt":{"type":"string","minLength":1},"updatedAt":{"type":"string","minLength":1},"passwordChangedAt":{"type":"string","minLength":1,"nullable":true},"lastSignedInAt":{"type":"string","minLength":1,"nullable":true},"emailVerifiedAt":{"type":"string","minLength":1,"nullable":true},"recoveryCodesLeft":{"type":"integer","minimum":0},"passkeyCount":{"type":"integer","minimum":0},"grammaticalGender":{"type":"string","enum":["masculine","feminine","unspecified"]},"locale":{"type":"string","enum":["en","ar"]},"digits":{"type":"string","enum":["latn","arab"]},"notifySharingEmails":{"type":"boolean"}},"required":["id","username","email","role","status","displayName","mfaEnabled","createdAt","updatedAt","passwordChangedAt","lastSignedInAt","emailVerifiedAt","recoveryCodesLeft","grammaticalGender","locale","digits","notifySharingEmails"],"additionalProperties":false}},"required":["access_token","token_type","expires_in","refresh_token","user"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/auth/totp/enroll":{"post":{"tags":["auth"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"secret":{"type":"string"},"uri":{"type":"string"}},"required":["secret","uri"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/auth/totp/activate":{"post":{"tags":["auth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"}},"required":["code"],"additionalProperties":false}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"recoveryCodes":{"type":"array","items":{"type":"string"}}},"required":["recoveryCodes"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/auth/totp/disable":{"post":{"tags":["auth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"}},"required":["code"],"additionalProperties":false}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/auth/totp/recovery-codes":{"post":{"tags":["auth"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"recoveryCodes":{"type":"array","items":{"type":"string"}}},"required":["recoveryCodes"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/auth/passkeys/register/options":{"post":{"tags":["auth"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"options":{"type":"object","properties":{"challenge":{"type":"string"},"rpId":{"type":"string"},"rp":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"user":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"displayName":{"type":"string"}},"required":["id","name","displayName"],"additionalProperties":false},"timeout":{"type":"integer"},"allowCredentials":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"transports":{"type":"array","items":{"type":"string"}}},"required":["id","type","transports"],"additionalProperties":false}},"pubKeyCredParams":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"alg":{"type":"integer"}},"required":["type","alg"],"additionalProperties":false}},"excludeCredentials":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"transports":{"type":"array","items":{"type":"string"}}},"required":["id","type","transports"],"additionalProperties":false}},"authenticatorSelection":{"type":"object","additionalProperties":true},"userVerification":{"type":"string"},"attestation":{"type":"string"},"extensions":{"type":"object","additionalProperties":true}},"required":["challenge"],"additionalProperties":false},"challengeToken":{"type":"string"}},"required":["options","challengeToken"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/auth/passkeys/register/verify":{"post":{"tags":["auth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"response":{"description":"WebAuthn RegistrationResponseJSON"},"challengeToken":{"type":"string"},"name":{"type":"string","maxLength":80,"nullable":true},"client":{"type":"object","properties":{"app":{"type":"string","enum":["desktop","android","web","admin","cli","other"]},"version":{"type":"string"},"os":{"type":"string"},"device":{"type":"string"},"name":{"type":"string"}},"required":[],"additionalProperties":false}},"required":["challengeToken"],"additionalProperties":false}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"verified":{"type":"boolean"},"passkey":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string","nullable":true},"createdAt":{"type":"string"},"lastUsedAt":{"type":"string","nullable":true}},"required":["id","name","createdAt","lastUsedAt"],"additionalProperties":false}},"required":["verified","passkey"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/auth/passkeys/login/options":{"post":{"tags":["auth"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"options":{"type":"object","properties":{"challenge":{"type":"string"},"rpId":{"type":"string"},"rp":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"user":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"displayName":{"type":"string"}},"required":["id","name","displayName"],"additionalProperties":false},"timeout":{"type":"integer"},"allowCredentials":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"transports":{"type":"array","items":{"type":"string"}}},"required":["id","type","transports"],"additionalProperties":false}},"pubKeyCredParams":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"alg":{"type":"integer"}},"required":["type","alg"],"additionalProperties":false}},"excludeCredentials":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"transports":{"type":"array","items":{"type":"string"}}},"required":["id","type","transports"],"additionalProperties":false}},"authenticatorSelection":{"type":"object","additionalProperties":true},"userVerification":{"type":"string"},"attestation":{"type":"string"},"extensions":{"type":"object","additionalProperties":true}},"required":["challenge"],"additionalProperties":false},"challengeToken":{"type":"string"}},"required":["options","challengeToken"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/auth/passkeys/login/verify":{"post":{"tags":["auth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"response":{"description":"WebAuthn AuthenticationResponseJSON"},"challengeToken":{"type":"string"},"client":{"type":"object","properties":{"app":{"type":"string","enum":["desktop","android","web","admin","cli","other"]},"version":{"type":"string"},"os":{"type":"string"},"device":{"type":"string"},"name":{"type":"string"}},"required":[],"additionalProperties":false},"mode":{"type":"string","enum":["session","authorize"]},"purpose":{"type":"string","enum":["session","page"]}},"required":["challengeToken"],"additionalProperties":false}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"access_token":{"type":"string","minLength":1},"token_type":{"type":"string","enum":["Bearer"]},"expires_in":{"type":"integer","minimum":0,"exclusiveMinimum":true},"refresh_token":{"type":"string","minLength":1},"user":{"type":"object","properties":{"id":{"type":"string","minLength":1},"username":{"type":"string"},"email":{"type":"string","nullable":true},"role":{"type":"string","enum":["admin","user"]},"status":{"type":"string","enum":["active","disabled"]},"displayName":{"type":"string","nullable":true},"mfaEnabled":{"type":"boolean"},"createdAt":{"type":"string","minLength":1},"updatedAt":{"type":"string","minLength":1},"passwordChangedAt":{"type":"string","minLength":1,"nullable":true},"lastSignedInAt":{"type":"string","minLength":1,"nullable":true},"emailVerifiedAt":{"type":"string","minLength":1,"nullable":true},"recoveryCodesLeft":{"type":"integer","minimum":0},"passkeyCount":{"type":"integer","minimum":0},"grammaticalGender":{"type":"string","enum":["masculine","feminine","unspecified"]},"locale":{"type":"string","enum":["en","ar"]},"digits":{"type":"string","enum":["latn","arab"]},"notifySharingEmails":{"type":"boolean"}},"required":["id","username","email","role","status","displayName","mfaEnabled","createdAt","updatedAt","passwordChangedAt","lastSignedInAt","emailVerifiedAt","recoveryCodesLeft","grammaticalGender","locale","digits","notifySharingEmails"],"additionalProperties":false}},"required":["access_token","token_type","expires_in","refresh_token","user"],"additionalProperties":false},{"type":"object","properties":{"passkey_token":{"type":"string"}},"required":["passkey_token"],"additionalProperties":false}]}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/auth/passkeys":{"get":{"tags":["auth"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"passkeys":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string","nullable":true},"createdAt":{"type":"string"},"lastUsedAt":{"type":"string","nullable":true}},"required":["id","name","createdAt","lastUsedAt"],"additionalProperties":false}}},"required":["passkeys"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/auth/passkeys/{id}":{"delete":{"tags":["auth"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/sync/push":{"post":{"tags":["sync"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"changes":{"type":"array","items":{"type":"object","properties":{"entity":{"type":"string","minLength":1},"id":{"type":"string","minLength":1},"op":{"type":"string","enum":["put","delete"]},"data":{"type":"object","additionalProperties":{"description":"Arbitrary JSON value"},"nullable":true},"updatedAt":{"type":"string"},"origin":{"type":"string","minLength":1}},"required":["entity","id","op","data","updatedAt","origin"],"additionalProperties":false},"minItems":1,"maxItems":5000}},"required":["changes"],"additionalProperties":false},{"type":"object","properties":{"changes":{"type":"array","items":{"type":"object","properties":{"entity":{"type":"string","minLength":1},"id":{"type":"string","minLength":1},"op":{"type":"string","enum":["put","delete"]},"data":{"type":"object","additionalProperties":{"description":"Arbitrary JSON value"},"nullable":true},"updatedAt":{"type":"string"},"origin":{"type":"string","minLength":1}},"required":["entity","id","op","data","updatedAt","origin"],"additionalProperties":false},"maxItems":5000}},"required":["changes"],"additionalProperties":false}]}}}},"parameters":[{"schema":{"type":"integer"},"in":"query","name":"proto","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"seq":{"type":"integer","minimum":0},"accepted":{"type":"integer","minimum":0},"ignored":{"type":"integer","minimum":0}},"required":["seq","accepted","ignored"],"additionalProperties":false},{"type":"object","properties":{"seq":{"type":"integer","minimum":0}},"required":["seq"],"additionalProperties":false}]}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/sync/pull":{"get":{"tags":["sync"],"parameters":[{"schema":{"type":"integer","minimum":0},"in":"query","name":"since","required":false},{"schema":{"type":"integer","minimum":1,"maximum":5000},"in":"query","name":"limit","required":false},{"schema":{"type":"integer"},"in":"query","name":"proto","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"changes":{"type":"array","items":{"type":"object","properties":{"entity":{"type":"string","minLength":1},"id":{"type":"string","minLength":1},"op":{"type":"string","enum":["put","delete"]},"data":{"type":"object","additionalProperties":{"description":"Arbitrary JSON value"},"nullable":true},"updatedAt":{"type":"string"},"origin":{"type":"string","minLength":1}},"required":["entity","id","op","data","updatedAt","origin"],"additionalProperties":false}},"seq":{"type":"integer","minimum":0},"hasMore":{"type":"boolean"}},"required":["changes","seq","hasMore"],"additionalProperties":false},{"type":"object","properties":{"changes":{"type":"array","items":{"type":"object","properties":{"entity":{"type":"string","minLength":1},"id":{"type":"string","minLength":1},"op":{"type":"string","enum":["put","delete"]},"data":{"type":"object","additionalProperties":{"description":"Arbitrary JSON value"},"nullable":true},"updatedAt":{"type":"string"},"origin":{"type":"string","minLength":1}},"required":["entity","id","op","data","updatedAt","origin"],"additionalProperties":false}},"seq":{"type":"integer","minimum":0}},"required":["changes","seq"],"additionalProperties":false}]}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/sync/count":{"get":{"tags":["sync"],"parameters":[{"schema":{"type":"integer","minimum":0},"in":"query","name":"since","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"changes":{"type":"integer","minimum":0},"tasks":{"type":"integer","minimum":0}},"required":["changes","tasks"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/sync/snapshot":{"get":{"tags":["sync"],"parameters":[{"schema":{"type":"integer"},"in":"query","name":"proto","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"changes":{"type":"array","items":{"type":"object","properties":{"entity":{"type":"string","minLength":1},"id":{"type":"string","minLength":1},"op":{"type":"string","enum":["put","delete"]},"data":{"type":"object","additionalProperties":{"description":"Arbitrary JSON value"},"nullable":true},"updatedAt":{"type":"string"},"origin":{"type":"string","minLength":1}},"required":["entity","id","op","data","updatedAt","origin"],"additionalProperties":false}},"seq":{"type":"integer","minimum":0}},"required":["changes","seq"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/sync/deletions":{"get":{"tags":["sync"],"parameters":[{"schema":{"type":"integer","minimum":0},"in":"query","name":"since","required":false},{"schema":{"type":"integer","minimum":1,"maximum":5000},"in":"query","name":"limit","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"records":{"type":"array","items":{"type":"object","properties":{"entity":{"type":"string","minLength":1},"id":{"type":"string","minLength":1},"deletedAt":{"type":"string","minLength":1},"seq":{"type":"integer","minimum":0}},"required":["entity","id","deletedAt","seq"],"additionalProperties":false}},"next":{"type":"integer","minimum":0,"nullable":true}},"required":["records","next"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/lists":{"get":{"summary":"List every list","tags":["lists"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"title":{"type":"string"},"color":{"type":"string","nullable":true},"order":{"type":"integer"},"parentId":{"type":"string","nullable":true,"enum":[null]},"dueDate":{"type":"string","nullable":true},"isDefault":{"type":"boolean"},"isSample":{"type":"boolean"},"extra":{"type":"object","additionalProperties":{"description":"Arbitrary JSON value"},"nullable":true},"createdAt":{"type":"string","minLength":1},"updatedAt":{"type":"string","minLength":1},"deletedAt":{"type":"string","minLength":1,"nullable":true}},"required":["id","title","color","order","parentId","dueDate","isDefault","isSample","extra","createdAt","updatedAt","deletedAt"],"additionalProperties":true}}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}},"post":{"tags":["lists"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1},"color":{"type":"string","nullable":true},"parentId":{"type":"string","nullable":true,"enum":[null]}},"required":["title"],"additionalProperties":false}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1},"title":{"type":"string"},"color":{"type":"string","nullable":true},"order":{"type":"integer"},"parentId":{"type":"string","nullable":true,"enum":[null]},"dueDate":{"type":"string","nullable":true},"isDefault":{"type":"boolean"},"isSample":{"type":"boolean"},"extra":{"type":"object","additionalProperties":{"description":"Arbitrary JSON value"},"nullable":true},"createdAt":{"type":"string","minLength":1},"updatedAt":{"type":"string","minLength":1},"deletedAt":{"type":"string","minLength":1,"nullable":true}},"required":["id","title","color","order","parentId","dueDate","isDefault","isSample","extra","createdAt","updatedAt","deletedAt"],"additionalProperties":true}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/lists/{id}":{"get":{"tags":["lists"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1},"title":{"type":"string"},"color":{"type":"string","nullable":true},"order":{"type":"integer"},"parentId":{"type":"string","nullable":true,"enum":[null]},"dueDate":{"type":"string","nullable":true},"isDefault":{"type":"boolean"},"isSample":{"type":"boolean"},"extra":{"type":"object","additionalProperties":{"description":"Arbitrary JSON value"},"nullable":true},"createdAt":{"type":"string","minLength":1},"updatedAt":{"type":"string","minLength":1},"deletedAt":{"type":"string","minLength":1,"nullable":true}},"required":["id","title","color","order","parentId","dueDate","isDefault","isSample","extra","createdAt","updatedAt","deletedAt"],"additionalProperties":true}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}},"patch":{"tags":["lists"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1},"color":{"type":"string","nullable":true},"order":{"type":"integer"}},"required":[],"additionalProperties":true}}}},"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1},"title":{"type":"string"},"color":{"type":"string","nullable":true},"order":{"type":"integer"},"parentId":{"type":"string","nullable":true,"enum":[null]},"dueDate":{"type":"string","nullable":true},"isDefault":{"type":"boolean"},"isSample":{"type":"boolean"},"extra":{"type":"object","additionalProperties":{"description":"Arbitrary JSON value"},"nullable":true},"createdAt":{"type":"string","minLength":1},"updatedAt":{"type":"string","minLength":1},"deletedAt":{"type":"string","minLength":1,"nullable":true}},"required":["id","title","color","order","parentId","dueDate","isDefault","isSample","extra","createdAt","updatedAt","deletedAt"],"additionalProperties":true}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}},"delete":{"tags":["lists"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/tasks":{"get":{"tags":["tasks"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"listId":{"type":"string","minLength":1},"parentId":{"type":"string","minLength":1,"nullable":true},"title":{"type":"string"},"notes":{"type":"string","nullable":true},"status":{"type":"string","minLength":1},"importance":{"type":"string","enum":["none","low","medium","high"]},"urgency":{"type":"string","enum":["none","low","medium","high"]},"effort":{"type":"integer","minimum":0},"startDate":{"type":"string","nullable":true},"dueDate":{"type":"string","nullable":true},"dueTime":{"type":"string","nullable":true},"dueLegacy":{"type":"boolean"},"reminderOffsetMin":{"type":"integer","nullable":true},"recurrence":{"type":"object","additionalProperties":{"description":"Arbitrary JSON value"},"nullable":true},"order":{"type":"integer"},"completedAt":{"type":"string","minLength":1,"nullable":true},"autoComplete":{"type":"boolean"},"estimateSeconds":{"type":"integer","minimum":0,"nullable":true},"isSample":{"type":"boolean"},"extra":{"type":"object","additionalProperties":{"description":"Arbitrary JSON value"},"nullable":true},"tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"name":{"type":"string"},"color":{"type":"string","nullable":true}},"required":["id","name","color"],"additionalProperties":false}},"createdAt":{"type":"string","minLength":1},"updatedAt":{"type":"string","minLength":1},"deletedAt":{"type":"string","minLength":1,"nullable":true}},"required":["id","listId","parentId","title","notes","status","importance","urgency","effort","startDate","dueDate","dueTime","dueLegacy","reminderOffsetMin","recurrence","order","completedAt","autoComplete","estimateSeconds","isSample","extra","tags","createdAt","updatedAt","deletedAt"],"additionalProperties":true}}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}},"post":{"tags":["tasks"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"listId":{"type":"string","minLength":1},"title":{"type":"string","minLength":1},"parentId":{"type":"string","minLength":1,"nullable":true},"notes":{"type":"string","maxLength":20000,"nullable":true},"status":{"type":"string","enum":["todo","in_progress","done"]},"importance":{"type":"string","enum":["none","low","medium","high"]},"urgency":{"type":"string","enum":["none","low","medium","high"]},"effort":{"type":"integer","minimum":0},"startDate":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$","nullable":true},"dueDate":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$","nullable":true},"dueTime":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$","nullable":true},"reminderOffsetMin":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[5]},{"type":"number","enum":[15]},{"type":"number","enum":[30]},{"type":"number","enum":[60]},{"type":"number","enum":[1440]}],"nullable":true},"recurrence":{"type":"object","properties":{"freq":{"type":"string","enum":["daily","weekly","monthly","yearly"]},"interval":{"type":"integer"},"byWeekday":{"type":"array","items":{"type":"integer","minimum":0,"maximum":6}},"bySetPos":{"anyOf":[{"type":"number","enum":[-1]},{"type":"number","enum":[1]},{"type":"number","enum":[2]},{"type":"number","enum":[3]},{"type":"number","enum":[4]}]},"count":{"type":"integer","minimum":1},"until":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$"},"anchor":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$"}},"required":["freq","interval"],"additionalProperties":true,"nullable":true},"order":{"type":"integer"},"completedAt":{"type":"string","nullable":true},"autoComplete":{"type":"boolean"},"estimateSeconds":{"type":"integer","minimum":0,"nullable":true},"isSample":{"type":"boolean"},"id":{"not":{}},"createdAt":{"not":{}},"updatedAt":{"not":{}},"deletedAt":{"not":{}},"extra":{"not":{}}},"required":["listId","title"],"additionalProperties":false}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1},"listId":{"type":"string","minLength":1},"parentId":{"type":"string","minLength":1,"nullable":true},"title":{"type":"string"},"notes":{"type":"string","nullable":true},"status":{"type":"string","minLength":1},"importance":{"type":"string","enum":["none","low","medium","high"]},"urgency":{"type":"string","enum":["none","low","medium","high"]},"effort":{"type":"integer","minimum":0},"startDate":{"type":"string","nullable":true},"dueDate":{"type":"string","nullable":true},"dueTime":{"type":"string","nullable":true},"dueLegacy":{"type":"boolean"},"reminderOffsetMin":{"type":"integer","nullable":true},"recurrence":{"type":"object","additionalProperties":{"description":"Arbitrary JSON value"},"nullable":true},"order":{"type":"integer"},"completedAt":{"type":"string","minLength":1,"nullable":true},"autoComplete":{"type":"boolean"},"estimateSeconds":{"type":"integer","minimum":0,"nullable":true},"isSample":{"type":"boolean"},"extra":{"type":"object","additionalProperties":{"description":"Arbitrary JSON value"},"nullable":true},"tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"name":{"type":"string"},"color":{"type":"string","nullable":true}},"required":["id","name","color"],"additionalProperties":false}},"createdAt":{"type":"string","minLength":1},"updatedAt":{"type":"string","minLength":1},"deletedAt":{"type":"string","minLength":1,"nullable":true}},"required":["id","listId","parentId","title","notes","status","importance","urgency","effort","startDate","dueDate","dueTime","dueLegacy","reminderOffsetMin","recurrence","order","completedAt","autoComplete","estimateSeconds","isSample","extra","tags","createdAt","updatedAt","deletedAt"],"additionalProperties":true}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/lists/{id}/tasks":{"get":{"tags":["lists"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"listId":{"type":"string","minLength":1},"parentId":{"type":"string","minLength":1,"nullable":true},"title":{"type":"string"},"notes":{"type":"string","nullable":true},"status":{"type":"string","minLength":1},"importance":{"type":"string","enum":["none","low","medium","high"]},"urgency":{"type":"string","enum":["none","low","medium","high"]},"effort":{"type":"integer","minimum":0},"startDate":{"type":"string","nullable":true},"dueDate":{"type":"string","nullable":true},"dueTime":{"type":"string","nullable":true},"dueLegacy":{"type":"boolean"},"reminderOffsetMin":{"type":"integer","nullable":true},"recurrence":{"type":"object","additionalProperties":{"description":"Arbitrary JSON value"},"nullable":true},"order":{"type":"integer"},"completedAt":{"type":"string","minLength":1,"nullable":true},"autoComplete":{"type":"boolean"},"estimateSeconds":{"type":"integer","minimum":0,"nullable":true},"isSample":{"type":"boolean"},"extra":{"type":"object","additionalProperties":{"description":"Arbitrary JSON value"},"nullable":true},"tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"name":{"type":"string"},"color":{"type":"string","nullable":true}},"required":["id","name","color"],"additionalProperties":false}},"createdAt":{"type":"string","minLength":1},"updatedAt":{"type":"string","minLength":1},"deletedAt":{"type":"string","minLength":1,"nullable":true}},"required":["id","listId","parentId","title","notes","status","importance","urgency","effort","startDate","dueDate","dueTime","dueLegacy","reminderOffsetMin","recurrence","order","completedAt","autoComplete","estimateSeconds","isSample","extra","tags","createdAt","updatedAt","deletedAt"],"additionalProperties":true}}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/tasks/{id}/subtasks":{"get":{"tags":["tasks"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"listId":{"type":"string","minLength":1},"parentId":{"type":"string","minLength":1,"nullable":true},"title":{"type":"string"},"notes":{"type":"string","nullable":true},"status":{"type":"string","minLength":1},"importance":{"type":"string","enum":["none","low","medium","high"]},"urgency":{"type":"string","enum":["none","low","medium","high"]},"effort":{"type":"integer","minimum":0},"startDate":{"type":"string","nullable":true},"dueDate":{"type":"string","nullable":true},"dueTime":{"type":"string","nullable":true},"dueLegacy":{"type":"boolean"},"reminderOffsetMin":{"type":"integer","nullable":true},"recurrence":{"type":"object","additionalProperties":{"description":"Arbitrary JSON value"},"nullable":true},"order":{"type":"integer"},"completedAt":{"type":"string","minLength":1,"nullable":true},"autoComplete":{"type":"boolean"},"estimateSeconds":{"type":"integer","minimum":0,"nullable":true},"isSample":{"type":"boolean"},"extra":{"type":"object","additionalProperties":{"description":"Arbitrary JSON value"},"nullable":true},"tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"name":{"type":"string"},"color":{"type":"string","nullable":true}},"required":["id","name","color"],"additionalProperties":false}},"createdAt":{"type":"string","minLength":1},"updatedAt":{"type":"string","minLength":1},"deletedAt":{"type":"string","minLength":1,"nullable":true}},"required":["id","listId","parentId","title","notes","status","importance","urgency","effort","startDate","dueDate","dueTime","dueLegacy","reminderOffsetMin","recurrence","order","completedAt","autoComplete","estimateSeconds","isSample","extra","tags","createdAt","updatedAt","deletedAt"],"additionalProperties":true}}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/tasks/{id}/lists":{"get":{"tags":["tasks"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"title":{"type":"string"},"color":{"type":"string","nullable":true},"order":{"type":"integer"},"parentId":{"type":"string","nullable":true,"enum":[null]},"dueDate":{"type":"string","nullable":true},"isDefault":{"type":"boolean"},"isSample":{"type":"boolean"},"extra":{"type":"object","additionalProperties":{"description":"Arbitrary JSON value"},"nullable":true},"createdAt":{"type":"string","minLength":1},"updatedAt":{"type":"string","minLength":1},"deletedAt":{"type":"string","minLength":1,"nullable":true}},"required":["id","title","color","order","parentId","dueDate","isDefault","isSample","extra","createdAt","updatedAt","deletedAt"],"additionalProperties":true}}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}},"put":{"tags":["tasks"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"listIds":{"type":"array","items":{"type":"string","minLength":1}}},"required":["listIds"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/tasks/{id}":{"get":{"tags":["tasks"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1},"listId":{"type":"string","minLength":1},"parentId":{"type":"string","minLength":1,"nullable":true},"title":{"type":"string"},"notes":{"type":"string","nullable":true},"status":{"type":"string","minLength":1},"importance":{"type":"string","enum":["none","low","medium","high"]},"urgency":{"type":"string","enum":["none","low","medium","high"]},"effort":{"type":"integer","minimum":0},"startDate":{"type":"string","nullable":true},"dueDate":{"type":"string","nullable":true},"dueTime":{"type":"string","nullable":true},"dueLegacy":{"type":"boolean"},"reminderOffsetMin":{"type":"integer","nullable":true},"recurrence":{"type":"object","additionalProperties":{"description":"Arbitrary JSON value"},"nullable":true},"order":{"type":"integer"},"completedAt":{"type":"string","minLength":1,"nullable":true},"autoComplete":{"type":"boolean"},"estimateSeconds":{"type":"integer","minimum":0,"nullable":true},"isSample":{"type":"boolean"},"extra":{"type":"object","additionalProperties":{"description":"Arbitrary JSON value"},"nullable":true},"tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"name":{"type":"string"},"color":{"type":"string","nullable":true}},"required":["id","name","color"],"additionalProperties":false}},"createdAt":{"type":"string","minLength":1},"updatedAt":{"type":"string","minLength":1},"deletedAt":{"type":"string","minLength":1,"nullable":true}},"required":["id","listId","parentId","title","notes","status","importance","urgency","effort","startDate","dueDate","dueTime","dueLegacy","reminderOffsetMin","recurrence","order","completedAt","autoComplete","estimateSeconds","isSample","extra","tags","createdAt","updatedAt","deletedAt"],"additionalProperties":true}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}},"patch":{"tags":["tasks"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1},"notes":{"type":"string","nullable":true},"status":{"type":"string","enum":["todo","in_progress","done"]},"importance":{"type":"string","enum":["none","low","medium","high"]},"urgency":{"type":"string","enum":["none","low","medium","high"]},"effort":{"type":"integer","minimum":0},"startDate":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$","nullable":true},"dueDate":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$","nullable":true},"dueTime":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$","nullable":true},"reminderOffsetMin":{"anyOf":[{"type":"number","enum":[0]},{"type":"number","enum":[5]},{"type":"number","enum":[15]},{"type":"number","enum":[30]},{"type":"number","enum":[60]},{"type":"number","enum":[1440]}],"nullable":true},"recurrence":{"type":"object","properties":{"freq":{"type":"string","enum":["daily","weekly","monthly","yearly"]},"interval":{"type":"integer"},"byWeekday":{"type":"array","items":{"type":"integer","minimum":0,"maximum":6}},"bySetPos":{"anyOf":[{"type":"number","enum":[-1]},{"type":"number","enum":[1]},{"type":"number","enum":[2]},{"type":"number","enum":[3]},{"type":"number","enum":[4]}]},"count":{"type":"integer","minimum":1},"until":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$"},"anchor":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$"}},"required":["freq","interval"],"additionalProperties":true,"nullable":true},"completedAt":{"type":"string","nullable":true},"autoComplete":{"type":"boolean"},"estimateSeconds":{"type":"integer","minimum":0,"nullable":true},"order":{"type":"integer"},"listId":{"description":"Arbitrary JSON value"},"parentId":{"description":"Arbitrary JSON value"},"tags":{"description":"Arbitrary JSON value"},"id":{"not":{}},"createdAt":{"not":{}},"updatedAt":{"not":{}},"deletedAt":{"not":{}},"extra":{"not":{}}},"required":[],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1},"listId":{"type":"string","minLength":1},"parentId":{"type":"string","minLength":1,"nullable":true},"title":{"type":"string"},"notes":{"type":"string","nullable":true},"status":{"type":"string","minLength":1},"importance":{"type":"string","enum":["none","low","medium","high"]},"urgency":{"type":"string","enum":["none","low","medium","high"]},"effort":{"type":"integer","minimum":0},"startDate":{"type":"string","nullable":true},"dueDate":{"type":"string","nullable":true},"dueTime":{"type":"string","nullable":true},"dueLegacy":{"type":"boolean"},"reminderOffsetMin":{"type":"integer","nullable":true},"recurrence":{"type":"object","additionalProperties":{"description":"Arbitrary JSON value"},"nullable":true},"order":{"type":"integer"},"completedAt":{"type":"string","minLength":1,"nullable":true},"autoComplete":{"type":"boolean"},"estimateSeconds":{"type":"integer","minimum":0,"nullable":true},"isSample":{"type":"boolean"},"extra":{"type":"object","additionalProperties":{"description":"Arbitrary JSON value"},"nullable":true},"tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"name":{"type":"string"},"color":{"type":"string","nullable":true}},"required":["id","name","color"],"additionalProperties":false}},"createdAt":{"type":"string","minLength":1},"updatedAt":{"type":"string","minLength":1},"deletedAt":{"type":"string","minLength":1,"nullable":true}},"required":["id","listId","parentId","title","notes","status","importance","urgency","effort","startDate","dueDate","dueTime","dueLegacy","reminderOffsetMin","recurrence","order","completedAt","autoComplete","estimateSeconds","isSample","extra","tags","createdAt","updatedAt","deletedAt"],"additionalProperties":true}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}},"delete":{"tags":["tasks"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/tasks/{id}/status":{"post":{"tags":["tasks"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["todo","in_progress","done"]}},"required":["status"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1},"listId":{"type":"string","minLength":1},"parentId":{"type":"string","minLength":1,"nullable":true},"title":{"type":"string"},"notes":{"type":"string","nullable":true},"status":{"type":"string","minLength":1},"importance":{"type":"string","enum":["none","low","medium","high"]},"urgency":{"type":"string","enum":["none","low","medium","high"]},"effort":{"type":"integer","minimum":0},"startDate":{"type":"string","nullable":true},"dueDate":{"type":"string","nullable":true},"dueTime":{"type":"string","nullable":true},"dueLegacy":{"type":"boolean"},"reminderOffsetMin":{"type":"integer","nullable":true},"recurrence":{"type":"object","additionalProperties":{"description":"Arbitrary JSON value"},"nullable":true},"order":{"type":"integer"},"completedAt":{"type":"string","minLength":1,"nullable":true},"autoComplete":{"type":"boolean"},"estimateSeconds":{"type":"integer","minimum":0,"nullable":true},"isSample":{"type":"boolean"},"extra":{"type":"object","additionalProperties":{"description":"Arbitrary JSON value"},"nullable":true},"tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"name":{"type":"string"},"color":{"type":"string","nullable":true}},"required":["id","name","color"],"additionalProperties":false}},"createdAt":{"type":"string","minLength":1},"updatedAt":{"type":"string","minLength":1},"deletedAt":{"type":"string","minLength":1,"nullable":true}},"required":["id","listId","parentId","title","notes","status","importance","urgency","effort","startDate","dueDate","dueTime","dueLegacy","reminderOffsetMin","recurrence","order","completedAt","autoComplete","estimateSeconds","isSample","extra","tags","createdAt","updatedAt","deletedAt"],"additionalProperties":true}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/tasks/{id}/auto-complete":{"post":{"tags":["tasks"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"value":{"type":"boolean"}},"required":["value"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1},"listId":{"type":"string","minLength":1},"parentId":{"type":"string","minLength":1,"nullable":true},"title":{"type":"string"},"notes":{"type":"string","nullable":true},"status":{"type":"string","minLength":1},"importance":{"type":"string","enum":["none","low","medium","high"]},"urgency":{"type":"string","enum":["none","low","medium","high"]},"effort":{"type":"integer","minimum":0},"startDate":{"type":"string","nullable":true},"dueDate":{"type":"string","nullable":true},"dueTime":{"type":"string","nullable":true},"dueLegacy":{"type":"boolean"},"reminderOffsetMin":{"type":"integer","nullable":true},"recurrence":{"type":"object","additionalProperties":{"description":"Arbitrary JSON value"},"nullable":true},"order":{"type":"integer"},"completedAt":{"type":"string","minLength":1,"nullable":true},"autoComplete":{"type":"boolean"},"estimateSeconds":{"type":"integer","minimum":0,"nullable":true},"isSample":{"type":"boolean"},"extra":{"type":"object","additionalProperties":{"description":"Arbitrary JSON value"},"nullable":true},"tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"name":{"type":"string"},"color":{"type":"string","nullable":true}},"required":["id","name","color"],"additionalProperties":false}},"createdAt":{"type":"string","minLength":1},"updatedAt":{"type":"string","minLength":1},"deletedAt":{"type":"string","minLength":1,"nullable":true}},"required":["id","listId","parentId","title","notes","status","importance","urgency","effort","startDate","dueDate","dueTime","dueLegacy","reminderOffsetMin","recurrence","order","completedAt","autoComplete","estimateSeconds","isSample","extra","tags","createdAt","updatedAt","deletedAt"],"additionalProperties":true}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/lists/{id}/reorder":{"post":{"tags":["lists"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"orderedTaskIds":{"type":"array","items":{"type":"string","minLength":1}}},"required":["orderedTaskIds"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/tags":{"get":{"tags":["tags"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"name":{"type":"string"},"color":{"type":"string","nullable":true},"isSample":{"type":"boolean"},"extra":{"type":"object","additionalProperties":{"description":"Arbitrary JSON value"},"nullable":true},"updatedAt":{"type":"string","minLength":1,"nullable":true},"deletedAt":{"type":"string","minLength":1,"nullable":true}},"required":["id","name","color","isSample","extra","updatedAt","deletedAt"],"additionalProperties":true}}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}},"post":{"tags":["tags"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"color":{"type":"string","nullable":true}},"required":["name"],"additionalProperties":false}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1},"name":{"type":"string"},"color":{"type":"string","nullable":true},"isSample":{"type":"boolean"},"extra":{"type":"object","additionalProperties":{"description":"Arbitrary JSON value"},"nullable":true},"updatedAt":{"type":"string","minLength":1,"nullable":true},"deletedAt":{"type":"string","minLength":1,"nullable":true}},"required":["id","name","color","isSample","extra","updatedAt","deletedAt"],"additionalProperties":true}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/tags/{id}":{"delete":{"tags":["tags"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/tasks/{id}/tags":{"put":{"tags":["tasks"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tagIds":{"type":"array","items":{"type":"string","minLength":1}}},"required":["tagIds"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}},"post":{"tags":["tasks"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tagId":{"type":"string","minLength":1}},"required":["tagId"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/tasks/{id}/tags/{tagId}":{"delete":{"tags":["tasks"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"id","required":true},{"schema":{"type":"string","minLength":1},"in":"path","name":"tagId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/projects":{"get":{"tags":["projects"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"color":{"type":"string","nullable":true},"order":{"type":"integer"},"isSample":{"type":"boolean"},"extra":{"type":"object","additionalProperties":{"description":"Arbitrary JSON value"},"nullable":true},"createdAt":{"type":"string","minLength":1},"updatedAt":{"type":"string","minLength":1},"deletedAt":{"type":"string","minLength":1,"nullable":true}},"required":["id","name","color","order","isSample","extra","createdAt","updatedAt","deletedAt"],"additionalProperties":true}}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}},"post":{"tags":["projects"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"color":{"type":"string","nullable":true}},"required":["name"],"additionalProperties":false}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"color":{"type":"string","nullable":true},"order":{"type":"integer"},"isSample":{"type":"boolean"},"extra":{"type":"object","additionalProperties":{"description":"Arbitrary JSON value"},"nullable":true},"createdAt":{"type":"string","minLength":1},"updatedAt":{"type":"string","minLength":1},"deletedAt":{"type":"string","minLength":1,"nullable":true}},"required":["id","name","color","order","isSample","extra","createdAt","updatedAt","deletedAt"],"additionalProperties":true}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/projects/{id}":{"get":{"tags":["projects"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"color":{"type":"string","nullable":true},"order":{"type":"integer"},"isSample":{"type":"boolean"},"extra":{"type":"object","additionalProperties":{"description":"Arbitrary JSON value"},"nullable":true},"createdAt":{"type":"string","minLength":1},"updatedAt":{"type":"string","minLength":1},"deletedAt":{"type":"string","minLength":1,"nullable":true}},"required":["id","name","color","order","isSample","extra","createdAt","updatedAt","deletedAt"],"additionalProperties":true}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}},"patch":{"tags":["projects"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"color":{"type":"string","nullable":true},"order":{"type":"integer"}},"required":[],"additionalProperties":true}}}},"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"color":{"type":"string","nullable":true},"order":{"type":"integer"},"isSample":{"type":"boolean"},"extra":{"type":"object","additionalProperties":{"description":"Arbitrary JSON value"},"nullable":true},"createdAt":{"type":"string","minLength":1},"updatedAt":{"type":"string","minLength":1},"deletedAt":{"type":"string","minLength":1,"nullable":true}},"required":["id","name","color","order","isSample","extra","createdAt","updatedAt","deletedAt"],"additionalProperties":true}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}},"delete":{"tags":["projects"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"keep":{"type":"string","enum":["keep","all"]}},"required":[],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/projects/{id}/lists":{"get":{"tags":["projects"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}},"post":{"tags":["projects"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"listId":{"type":"string","minLength":1}},"required":["listId"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/lists/{id}/projects":{"get":{"tags":["lists"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}},"put":{"tags":["lists"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"projectIds":{"type":"array","items":{"type":"string","minLength":1}}},"required":["projectIds"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/projects/{id}/lists/{listId}":{"delete":{"tags":["projects"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"id","required":true},{"schema":{"type":"string","minLength":1},"in":"path","name":"listId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/tasks/{id}/comments":{"get":{"tags":["tasks"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"taskId":{"type":"string","minLength":1},"body":{"type":"string","minLength":1},"authorId":{"type":"string","minLength":1,"nullable":true},"authorName":{"type":"string","nullable":true},"editedAt":{"type":"string","minLength":1,"nullable":true},"extra":{"type":"object","additionalProperties":{"description":"Arbitrary JSON value"},"nullable":true},"createdAt":{"type":"string","minLength":1},"updatedAt":{"type":"string","minLength":1},"deletedAt":{"type":"string","minLength":1,"nullable":true}},"required":["id","taskId","body","authorId","authorName","editedAt","extra","createdAt","updatedAt","deletedAt"],"additionalProperties":true}}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}},"post":{"tags":["tasks"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string","minLength":1,"maxLength":10000}},"required":["body"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1},"taskId":{"type":"string","minLength":1},"body":{"type":"string","minLength":1},"authorId":{"type":"string","minLength":1,"nullable":true},"authorName":{"type":"string","nullable":true},"editedAt":{"type":"string","minLength":1,"nullable":true},"extra":{"type":"object","additionalProperties":{"description":"Arbitrary JSON value"},"nullable":true},"createdAt":{"type":"string","minLength":1},"updatedAt":{"type":"string","minLength":1},"deletedAt":{"type":"string","minLength":1,"nullable":true}},"required":["id","taskId","body","authorId","authorName","editedAt","extra","createdAt","updatedAt","deletedAt"],"additionalProperties":true}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/comments/{id}":{"patch":{"tags":["comments"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string","minLength":1,"maxLength":10000}},"required":["body"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1},"taskId":{"type":"string","minLength":1},"body":{"type":"string","minLength":1},"authorId":{"type":"string","minLength":1,"nullable":true},"authorName":{"type":"string","nullable":true},"editedAt":{"type":"string","minLength":1,"nullable":true},"extra":{"type":"object","additionalProperties":{"description":"Arbitrary JSON value"},"nullable":true},"createdAt":{"type":"string","minLength":1},"updatedAt":{"type":"string","minLength":1},"deletedAt":{"type":"string","minLength":1,"nullable":true}},"required":["id","taskId","body","authorId","authorName","editedAt","extra","createdAt","updatedAt","deletedAt"],"additionalProperties":true}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}},"delete":{"tags":["comments"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/tasks/{id}/activity":{"get":{"tags":["tasks"],"parameters":[{"schema":{"type":"integer","minimum":1},"in":"query","name":"limit","required":false},{"schema":{"type":"integer","minimum":0},"in":"query","name":"offset","required":false},{"schema":{"type":"string","minLength":1},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"at":{"type":"string","minLength":1},"entityType":{"type":"string","minLength":1},"entityId":{"type":"string","minLength":1},"taskId":{"type":"string","minLength":1,"nullable":true},"kind":{"type":"string","minLength":1},"payload":{"type":"object","additionalProperties":{"description":"Arbitrary JSON value"}},"actorId":{"type":"string","minLength":1,"nullable":true},"actorName":{"type":"string","nullable":true},"actorGender":{"type":"string","enum":["masculine","feminine","unspecified"],"nullable":true}},"required":["id","at","entityType","entityId","taskId","kind","payload","actorId","actorName","actorGender"],"additionalProperties":true}}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/activity":{"get":{"tags":["activity"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"kinds","required":false},{"schema":{"type":"string"},"in":"query","name":"since","required":false},{"schema":{"type":"string"},"in":"query","name":"until","required":false},{"schema":{"type":"integer","minimum":1},"in":"query","name":"limit","required":false},{"schema":{"type":"integer","minimum":0},"in":"query","name":"offset","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"at":{"type":"string","minLength":1},"entityType":{"type":"string","minLength":1},"entityId":{"type":"string","minLength":1},"taskId":{"type":"string","minLength":1,"nullable":true},"kind":{"type":"string","minLength":1},"payload":{"type":"object","additionalProperties":{"description":"Arbitrary JSON value"}},"actorId":{"type":"string","minLength":1,"nullable":true},"actorName":{"type":"string","nullable":true},"actorGender":{"type":"string","enum":["masculine","feminine","unspecified"],"nullable":true}},"required":["id","at","entityType","entityId","taskId","kind","payload","actorId","actorName","actorGender"],"additionalProperties":true}}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}},"post":{"tags":["activity"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1},"at":{"type":"string","minLength":1},"entityType":{"type":"string","enum":["task","list","project","comment"]},"entityId":{"type":"string","minLength":1},"taskId":{"type":"string","minLength":1,"nullable":true},"kind":{"type":"string","enum":["taskCreated","taskDeleted","statusChanged","edited","moved","recurrenceRolled","timerStarted","timerStopped","commentAdded","commentEdited","commentDeleted","tagAdded","tagRemoved","listMembershipChanged","projectMembershipChanged","done","dependencyLinked","dependencyUnlinked","timeAdjusted","timerPaused","timerResumed","idleTimeKept","idleTimeDiscarded"]},"payload":{"type":"object","additionalProperties":{"description":"Arbitrary JSON value"}}},"required":["entityType","entityId","kind","payload"],"additionalProperties":false}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1},"at":{"type":"string","minLength":1},"entityType":{"type":"string","minLength":1},"entityId":{"type":"string","minLength":1},"taskId":{"type":"string","minLength":1,"nullable":true},"kind":{"type":"string","minLength":1},"payload":{"type":"object","additionalProperties":{"description":"Arbitrary JSON value"}},"actorId":{"type":"string","minLength":1,"nullable":true},"actorName":{"type":"string","nullable":true},"actorGender":{"type":"string","enum":["masculine","feminine","unspecified"],"nullable":true}},"required":["id","at","entityType","entityId","taskId","kind","payload","actorId","actorName","actorGender"],"additionalProperties":true}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/shares/{id}/sync/push":{"post":{"tags":["shares"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"changes":{"type":"array","items":{"type":"object","properties":{"entity":{"type":"string","minLength":1},"id":{"type":"string","minLength":1},"op":{"type":"string","enum":["put","delete"]},"data":{"type":"object","additionalProperties":{"description":"Arbitrary JSON value"},"nullable":true},"updatedAt":{"type":"string"},"origin":{"type":"string","minLength":1}},"required":["entity","id","op","data","updatedAt","origin"],"additionalProperties":false},"minItems":1,"maxItems":5000}},"required":["changes"],"additionalProperties":false},{"type":"object","properties":{"changes":{"type":"array","items":{"type":"object","properties":{"entity":{"type":"string","minLength":1},"id":{"type":"string","minLength":1},"op":{"type":"string","enum":["put","delete"]},"data":{"type":"object","additionalProperties":{"description":"Arbitrary JSON value"},"nullable":true},"updatedAt":{"type":"string"},"origin":{"type":"string","minLength":1}},"required":["entity","id","op","data","updatedAt","origin"],"additionalProperties":false},"maxItems":5000}},"required":["changes"],"additionalProperties":false}]}}}},"parameters":[{"schema":{"type":"integer"},"in":"query","name":"proto","required":false},{"schema":{"type":"string","minLength":1},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"seq":{"type":"integer","minimum":0},"accepted":{"type":"integer","minimum":0},"ignored":{"type":"integer","minimum":0}},"required":["seq","accepted","ignored"],"additionalProperties":false},{"type":"object","properties":{"seq":{"type":"integer","minimum":0}},"required":["seq"],"additionalProperties":false}]}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/shares/{id}/sync/pull":{"get":{"tags":["shares"],"parameters":[{"schema":{"type":"integer","minimum":0},"in":"query","name":"since","required":false},{"schema":{"type":"integer","minimum":1,"maximum":5000},"in":"query","name":"limit","required":false},{"schema":{"type":"integer"},"in":"query","name":"proto","required":false},{"schema":{"type":"string","minLength":1},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"changes":{"type":"array","items":{"type":"object","properties":{"entity":{"type":"string","minLength":1},"id":{"type":"string","minLength":1},"op":{"type":"string","enum":["put","delete"]},"data":{"type":"object","additionalProperties":{"description":"Arbitrary JSON value"},"nullable":true},"updatedAt":{"type":"string"},"origin":{"type":"string","minLength":1}},"required":["entity","id","op","data","updatedAt","origin"],"additionalProperties":false}},"seq":{"type":"integer","minimum":0},"hasMore":{"type":"boolean"}},"required":["changes","seq","hasMore"],"additionalProperties":false},{"type":"object","properties":{"changes":{"type":"array","items":{"type":"object","properties":{"entity":{"type":"string","minLength":1},"id":{"type":"string","minLength":1},"op":{"type":"string","enum":["put","delete"]},"data":{"type":"object","additionalProperties":{"description":"Arbitrary JSON value"},"nullable":true},"updatedAt":{"type":"string"},"origin":{"type":"string","minLength":1}},"required":["entity","id","op","data","updatedAt","origin"],"additionalProperties":false}},"seq":{"type":"integer","minimum":0}},"required":["changes","seq"],"additionalProperties":false}]}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/shares/{id}/sync/count":{"get":{"tags":["shares"],"parameters":[{"schema":{"type":"integer","minimum":0},"in":"query","name":"since","required":false},{"schema":{"type":"string","minLength":1},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"changes":{"type":"integer","minimum":0},"tasks":{"type":"integer","minimum":0}},"required":["changes","tasks"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/shares/{id}/sync/snapshot":{"get":{"tags":["shares"],"parameters":[{"schema":{"type":"integer"},"in":"query","name":"proto","required":false},{"schema":{"type":"string","minLength":1},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"changes":{"type":"array","items":{"type":"object","properties":{"entity":{"type":"string","minLength":1},"id":{"type":"string","minLength":1},"op":{"type":"string","enum":["put","delete"]},"data":{"type":"object","additionalProperties":{"description":"Arbitrary JSON value"},"nullable":true},"updatedAt":{"type":"string"},"origin":{"type":"string","minLength":1}},"required":["entity","id","op","data","updatedAt","origin"],"additionalProperties":false}},"seq":{"type":"integer","minimum":0}},"required":["changes","seq"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/shares/{id}/sync/deletions":{"get":{"tags":["shares"],"parameters":[{"schema":{"type":"integer","minimum":0},"in":"query","name":"since","required":false},{"schema":{"type":"integer","minimum":1,"maximum":5000},"in":"query","name":"limit","required":false},{"schema":{"type":"string","minLength":1},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"records":{"type":"array","items":{"type":"object","properties":{"entity":{"type":"string","minLength":1},"id":{"type":"string","minLength":1},"deletedAt":{"type":"string","minLength":1},"seq":{"type":"integer","minimum":0}},"required":["entity","id","deletedAt","seq"],"additionalProperties":false}},"next":{"type":"integer","minimum":0,"nullable":true}},"required":["records","next"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/shares":{"get":{"tags":["shares"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"entity":{"type":"string","enum":["list","project"]},"entityId":{"type":"string"},"title":{"type":"string"},"ownerUserId":{"type":"string"},"createdAt":{"type":"string"},"role":{"type":"string","enum":["owner","editor","viewer"]},"status":{"type":"string","enum":["active"]},"owner":{"type":"object","properties":{"displayName":{"type":"string","nullable":true},"email":{"type":"string","nullable":true},"grammaticalGender":{"type":"string","enum":["masculine","feminine","unspecified"]},"userId":{"type":"string"}},"required":["displayName","email","grammaticalGender","userId"],"additionalProperties":false},"memberCount":{"type":"integer"},"inviteCodeCount":{"type":"integer","nullable":true},"joinedAt":{"type":"string"}},"required":["id","entity","entityId","title","ownerUserId","createdAt","role","status","owner","memberCount","inviteCodeCount","joinedAt"],"additionalProperties":false}}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}},"post":{"tags":["shares"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"entity":{"type":"string","enum":["list","project"]},"entityId":{"type":"string","minLength":1,"maxLength":64},"title":{"type":"string","minLength":1,"maxLength":500}},"required":["entity","entityId","title"],"additionalProperties":false}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"entity":{"type":"string","enum":["list","project"]},"entityId":{"type":"string"},"title":{"type":"string"},"ownerUserId":{"type":"string"},"createdAt":{"type":"string"},"role":{"type":"string","enum":["owner","editor","viewer"]},"status":{"type":"string","enum":["active"]},"owner":{"type":"object","properties":{"displayName":{"type":"string","nullable":true},"email":{"type":"string","nullable":true},"grammaticalGender":{"type":"string","enum":["masculine","feminine","unspecified"]},"userId":{"type":"string"}},"required":["displayName","email","grammaticalGender","userId"],"additionalProperties":false},"memberCount":{"type":"integer"},"inviteCodeCount":{"type":"integer","nullable":true},"joinedAt":{"type":"string"}},"required":["id","entity","entityId","title","ownerUserId","createdAt","role","status","owner","memberCount","inviteCodeCount","joinedAt"],"additionalProperties":false}}}},"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"entity":{"type":"string","enum":["list","project"]},"entityId":{"type":"string"},"title":{"type":"string"},"ownerUserId":{"type":"string"},"createdAt":{"type":"string"},"role":{"type":"string","enum":["owner","editor","viewer"]},"status":{"type":"string","enum":["active"]},"owner":{"type":"object","properties":{"displayName":{"type":"string","nullable":true},"email":{"type":"string","nullable":true},"grammaticalGender":{"type":"string","enum":["masculine","feminine","unspecified"]},"userId":{"type":"string"}},"required":["displayName","email","grammaticalGender","userId"],"additionalProperties":false},"memberCount":{"type":"integer"},"inviteCodeCount":{"type":"integer","nullable":true},"joinedAt":{"type":"string"}},"required":["id","entity","entityId","title","ownerUserId","createdAt","role","status","owner","memberCount","inviteCodeCount","joinedAt"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/shares/{id}":{"delete":{"tags":["shares"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/shares/{id}/members":{"get":{"tags":["shares"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"shareId":{"type":"string"},"userId":{"type":"string"},"email":{"type":"string","nullable":true},"displayName":{"type":"string","nullable":true},"username":{"type":"string"},"role":{"type":"string","enum":["owner","editor","viewer"]},"status":{"type":"string","enum":["active"]},"invitedBy":{"type":"string","nullable":true},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"grammaticalGender":{"type":"string","enum":["masculine","feminine","unspecified"]}},"required":["shareId","userId","email","displayName","username","role","status","invitedBy","createdAt","updatedAt","grammaticalGender"],"additionalProperties":false}}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}},"post":{"tags":["shares"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","minLength":3,"maxLength":254},"role":{"type":"string","enum":["editor","viewer"]}},"required":["email","role"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string"},"email":{"type":"string"},"code":{"type":"string"},"role":{"type":"string","enum":["editor","viewer"]},"expiresAt":{"type":"string"},"accountExists":{"type":"boolean"}},"required":["kind","email","code","role","expiresAt","accountExists"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/shares/{id}/members/{userId}":{"patch":{"tags":["shares"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"string","minLength":1,"maxLength":32}},"required":["role"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"id","required":true},{"schema":{"type":"string","minLength":1},"in":"path","name":"userId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}},"delete":{"tags":["shares"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"id","required":true},{"schema":{"type":"string","minLength":1},"in":"path","name":"userId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/shares/{id}/invites":{"get":{"tags":["shares"],"parameters":[{"schema":{"type":"string","enum":["code","email"]},"in":"query","name":"kind","required":false},{"schema":{"type":"string","minLength":1},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"kind":{"type":"string","enum":["code","email"]},"role":{"type":"string","enum":["editor","viewer"]},"email":{"type":"string","nullable":true},"maxUses":{"type":"integer","nullable":true},"uses":{"type":"integer"},"expiresAt":{"type":"string","nullable":true},"createdAt":{"type":"string"},"accountExists":{"type":"boolean"}},"required":["code","kind","role","email","maxUses","uses","expiresAt","createdAt"],"additionalProperties":false}}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}},"post":{"tags":["shares"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"string","enum":["editor","viewer"]},"email":{"type":"string","maxLength":254,"nullable":true},"maxUses":{"type":"integer","enum":[1,5,10],"nullable":true},"expiresAt":{"type":"string","nullable":true}},"required":["role"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"kind":{"type":"string","enum":["code","email"]},"role":{"type":"string","enum":["editor","viewer"]},"email":{"type":"string","nullable":true},"maxUses":{"type":"integer","nullable":true},"uses":{"type":"integer"},"expiresAt":{"type":"string","nullable":true},"createdAt":{"type":"string"},"accountExists":{"type":"boolean"}},"required":["code","kind","role","email","maxUses","uses","expiresAt","createdAt"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/shares/{id}/invites/{code}":{"delete":{"tags":["shares"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"id","required":true},{"schema":{"type":"string","minLength":1},"in":"path","name":"code","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/shares/join":{"post":{"tags":["shares"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","minLength":1,"maxLength":64}},"required":["code"],"additionalProperties":false}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"entity":{"type":"string","enum":["list","project"]},"entityId":{"type":"string"},"title":{"type":"string"},"ownerUserId":{"type":"string"},"createdAt":{"type":"string"},"role":{"type":"string","enum":["owner","editor","viewer"]},"status":{"type":"string","enum":["active"]},"owner":{"type":"object","properties":{"displayName":{"type":"string","nullable":true},"email":{"type":"string","nullable":true},"grammaticalGender":{"type":"string","enum":["masculine","feminine","unspecified"]},"userId":{"type":"string"}},"required":["displayName","email","grammaticalGender","userId"],"additionalProperties":false},"memberCount":{"type":"integer"},"inviteCodeCount":{"type":"integer","nullable":true},"joinedAt":{"type":"string"}},"required":["id","entity","entityId","title","ownerUserId","createdAt","role","status","owner","memberCount","inviteCodeCount","joinedAt"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/shares/invitations":{"get":{"tags":["shares"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"shareId":{"type":"string"},"entity":{"type":"string","enum":["list","project"]},"title":{"type":"string"},"role":{"type":"string","enum":["editor","viewer"]},"inviter":{"type":"object","properties":{"displayName":{"type":"string","nullable":true},"email":{"type":"string","nullable":true},"grammaticalGender":{"type":"string","enum":["masculine","feminine","unspecified"]}},"required":["displayName","email","grammaticalGender"],"additionalProperties":false},"invitedAt":{"type":"string"},"expiresAt":{"type":"string","nullable":true}},"required":["code","shareId","entity","title","role","inviter","invitedAt","expiresAt"],"additionalProperties":false}}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/shares/invites/{code}/accept":{"post":{"tags":["shares"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"code","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"entity":{"type":"string","enum":["list","project"]},"entityId":{"type":"string"},"title":{"type":"string"},"ownerUserId":{"type":"string"},"createdAt":{"type":"string"},"role":{"type":"string","enum":["owner","editor","viewer"]},"status":{"type":"string","enum":["active"]},"owner":{"type":"object","properties":{"displayName":{"type":"string","nullable":true},"email":{"type":"string","nullable":true},"grammaticalGender":{"type":"string","enum":["masculine","feminine","unspecified"]},"userId":{"type":"string"}},"required":["displayName","email","grammaticalGender","userId"],"additionalProperties":false},"memberCount":{"type":"integer"},"inviteCodeCount":{"type":"integer","nullable":true},"joinedAt":{"type":"string"}},"required":["id","entity","entityId","title","ownerUserId","createdAt","role","status","owner","memberCount","inviteCodeCount","joinedAt"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/shares/{id}/accept":{"post":{"tags":["shares"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/shares/invites/{code}/decline":{"post":{"tags":["shares"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"code","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/shares/invites/{code}/undecline":{"post":{"tags":["shares"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"code","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/plans":{"get":{"tags":["plans"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"plans":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["free","pro","team","business"]},"name":{"type":"string"},"listed":{"type":"boolean"},"priceMonthlyUsd":{"type":"number"},"priceAnnualPerMonthUsd":{"type":"number"},"perSeat":{"type":"boolean"},"bundles":{"type":"array","items":{"type":"object","properties":{"seats":{"type":"integer","enum":[5,10,20,30]},"priceMonthlyUsd":{"type":"number"},"priceAnnualPerMonthUsd":{"type":"number"}},"required":["seats","priceMonthlyUsd","priceAnnualPerMonthUsd"],"additionalProperties":false}},"contactSales":{"type":"boolean"},"entitlements":{"type":"object","additionalProperties":{"type":"boolean"}}},"required":["id","name","listed","priceMonthlyUsd","priceAnnualPerMonthUsd","perSeat","entitlements"],"additionalProperties":false}}},"required":["plans"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/plans/me":{"get":{"tags":["plans"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"userId":{"type":"string"},"plan":{"type":"string","enum":["free","pro","team","business"]},"planName":{"type":"string"},"entitlements":{"type":"object","additionalProperties":{"type":"boolean"}},"subscription":{"type":"object","properties":{"status":{"type":"string"},"periodEnd":{"type":"string","nullable":true},"lifetime":{"type":"boolean"}},"required":["status","periodEnd","lifetime"],"additionalProperties":false,"nullable":true},"endedPlan":{"type":"string","enum":["free","pro","team","business"]},"endedAt":{"type":"string"},"reward":{"type":"object","properties":{"plan":{"type":"string","enum":["free","pro","team","business"]},"endsAt":{"type":"string"}},"required":["plan","endsAt"],"additionalProperties":false}},"required":["userId","plan","planName","entitlements","subscription"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/license":{"get":{"tags":["license"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"license":{"type":"string"},"plan":{"type":"string","enum":["free","pro","team","business"]}},"required":["license"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/license/client":{"post":{"tags":["license"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"licenseKey":{"type":"string"},"device":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string","nullable":true},"platform":{"type":"string"}},"required":["id"],"additionalProperties":false},"checkIn":{"type":"boolean"}},"required":[],"additionalProperties":false}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"license":{"type":"string"},"plan":{"type":"string","enum":["free","pro","team","business"]},"device":{"type":"object","properties":{"lastSeenAt":{"type":"string"},"releaseAt":{"type":"string"},"used":{"type":"integer"},"max":{"type":"integer"}},"required":["lastSeenAt","releaseAt","used","max"],"additionalProperties":false}},"required":["license","plan"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/license/client/release":{"post":{"tags":["license"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"licenseKey":{"type":"string"},"deviceId":{"type":"string"}},"required":["deviceId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"released":{"type":"boolean"}},"required":["released"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/license/devices":{"get":{"tags":["license"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"max":{"type":"integer"},"devices":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string","nullable":true},"platform":{"type":"string"},"lastSeenAt":{"type":"string"},"releaseAt":{"type":"string"},"warning":{"type":"object","properties":{"step":{"type":"integer"},"daysLeft":{"type":"integer"}},"required":["step","daysLeft"],"additionalProperties":false,"nullable":true}},"required":["id","name","platform","lastSeenAt","releaseAt","warning"],"additionalProperties":false}}},"required":["max","devices"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/license/devices/{id}":{"delete":{"tags":["license"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"max":{"type":"integer"},"devices":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string","nullable":true},"platform":{"type":"string"},"lastSeenAt":{"type":"string"},"releaseAt":{"type":"string"},"warning":{"type":"object","properties":{"step":{"type":"integer"},"daysLeft":{"type":"integer"}},"required":["step","daysLeft"],"additionalProperties":false,"nullable":true}},"required":["id","name","platform","lastSeenAt","releaseAt","warning"],"additionalProperties":false}}},"required":["max","devices"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/license/server/challenge":{"post":{"tags":["license"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"serverId":{"type":"string"}},"required":["serverId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"nonce":{"type":"string"},"expiresInSeconds":{"type":"integer"}},"required":["nonce","expiresInSeconds"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/license/server":{"post":{"tags":["license"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"serverId":{"type":"string"},"publicKey":{"type":"string"},"nonce":{"type":"string"},"signature":{"type":"string"},"action":{"type":"string","enum":["check","activate"]},"licenseKey":{"type":"string"},"lang":{"type":"string","enum":["en","ar"]}},"required":["serverId","publicKey","nonce","signature"],"additionalProperties":false}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"license":{"type":"string"},"plan":{"type":"string","enum":["free","pro","team","business"]},"state":{"type":"string"},"periodEnd":{"type":"string","nullable":true},"manageable":{"type":"boolean"},"licenseKey":{"type":"string"}},"required":["license","plan","state"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/license/server/detach":{"post":{"tags":["license"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"serverId":{"type":"string"},"publicKey":{"type":"string"},"nonce":{"type":"string"},"signature":{"type":"string"},"action":{"type":"string","enum":["detach"]},"licenseKey":{"type":"string"},"lang":{"type":"string","enum":["en","ar"]}},"required":["serverId","publicKey","nonce","signature"],"additionalProperties":false}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"state":{"type":"string"}},"required":["state"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/license/server/resend":{"post":{"tags":["license"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"serverId":{"type":"string"},"publicKey":{"type":"string"},"nonce":{"type":"string"},"signature":{"type":"string"},"action":{"type":"string","enum":["resend"]},"licenseKey":{"type":"string"},"lang":{"type":"string","enum":["en","ar"]}},"required":["serverId","publicKey","nonce","signature"],"additionalProperties":false}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"sent":{"type":"boolean"}},"required":["sent"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/license/server/handoff":{"post":{"tags":["license"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"serverId":{"type":"string"},"publicKey":{"type":"string"},"nonce":{"type":"string"},"signature":{"type":"string"},"action":{"type":"string","enum":["handoff"]},"licenseKey":{"type":"string"},"lang":{"type":"string","enum":["en","ar"]}},"required":["serverId","publicKey","nonce","signature"],"additionalProperties":false}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"expiresInSeconds":{"type":"integer"}},"required":["url","expiresInSeconds"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/license/server/portal":{"post":{"tags":["license"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"serverId":{"type":"string"},"publicKey":{"type":"string"},"nonce":{"type":"string"},"signature":{"type":"string"},"action":{"type":"string","enum":["portal"]},"licenseKey":{"type":"string"},"lang":{"type":"string","enum":["en","ar"]}},"required":["serverId","publicKey","nonce","signature"],"additionalProperties":false}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"expiresInSeconds":{"type":"integer"}},"required":["url","expiresInSeconds"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/plans/referrals":{"get":{"tags":["plans"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"verified":{"type":"boolean"},"termsAcceptedAt":{"type":"string","nullable":true},"code":{"type":"string","nullable":true},"link":{"type":"string","nullable":true},"rewardDays":{"type":"integer"},"cap":{"type":"integer"},"windowDays":{"type":"integer"},"earnedInWindow":{"type":"integer"},"joins":{"type":"array","items":{"type":"object","properties":{"hint":{"type":"string"},"joinedAt":{"type":"string"},"status":{"type":"string"},"rewardEndsAt":{"type":"string","nullable":true}},"required":["hint","joinedAt","status","rewardEndsAt"],"additionalProperties":false}}},"required":["verified","termsAcceptedAt","code","link","rewardDays","cap","joins"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}},"/api/plans/referrals/terms":{"post":{"tags":["plans"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"accept":{"type":"boolean"}},"required":["accept"],"additionalProperties":false}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"verified":{"type":"boolean"},"termsAcceptedAt":{"type":"string","nullable":true},"code":{"type":"string","nullable":true},"link":{"type":"string","nullable":true},"rewardDays":{"type":"integer"},"cap":{"type":"integer"},"windowDays":{"type":"integer"},"earnedInWindow":{"type":"integer"},"joins":{"type":"array","items":{"type":"object","properties":{"hint":{"type":"string"},"joinedAt":{"type":"string"},"status":{"type":"string"},"rewardEndsAt":{"type":"string","nullable":true}},"required":["hint","joinedAt","status","rewardEndsAt"],"additionalProperties":false}}},"required":["verified","termsAcceptedAt","code","link","rewardDays","cap","joins"],"additionalProperties":false}}}},"default":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"request_id":{"type":"string"},"error_description":{"type":"string"},"detail":{"description":"Error-specific detail, including Zod fieldErrors for invalid bodies"},"retry_after":{"type":"integer"}},"required":["error","request_id"],"additionalProperties":false}}}}}}}},"security":[{"apiKeyHeader":[]},{"bearerAuth":[]}],"tags":[{"name":"lists"},{"name":"tasks"},{"name":"tags"},{"name":"projects"},{"name":"comments"},{"name":"activity"},{"name":"sync"},{"name":"webhooks"},{"name":"calendar"},{"name":"health"},{"name":"auth"},{"name":"shares"},{"name":"plans"},{"name":"license"}],"x-enjazy-schema":26}