Documents with empty collaboratorIds don't appear in collection sidebar.
Now includes creator's userId in the array.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Outline requires collaboratorIds to be an array, not NULL.
Error was: "TypeError: b.collaboratorIds is not iterable"
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Outline uses 10-char alphanumeric urlId, not 21-char hex.
Documents with wrong format returned 404 "Not found".
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Documents created via MCP were not visible in Outline interface.
Outline requires an entry in the revisions table to display documents.
Now uses transaction to insert into both documents and revisions tables.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Fixed 3 schema compatibility bugs found during Round 3 write testing:
- create_document: Added id, urlId, teamId, isWelcome, fullWidth, insightsEnabled
- create_collection: Added id, maintainerApprovalRequired
- shares_create: Added id, allowIndexing, showLastUpdated
All write operations now include required NOT NULL columns.
Bumped version to 1.3.6.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- auth.ts: Use suspendedAt instead of isSuspended, role instead of isAdmin
- comments.ts: Use role='admin' for admin user queries
- documents.ts: Use suspendedAt IS NULL for active users
- events.ts: Return actorRole instead of actorIsAdmin
- shares.ts: Use role='admin' for admin user queries
All queries validated against Outline v0.78 schema (10/10 tests pass).
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>