{"name":"Posty MCP","status":"ready","transport":"streamable-http","tools":[{"name":"list_workspaces","description":"List accessible Posty workspaces and current permissions for the authenticated caller. Returns workspace IDs to use in subsequent tools. This read-only operation needs no workspace selection.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{},"required":[],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}}},"required":["id","permissions"]}}},"required":["workspaces"]}},{"name":"list_channels","description":"List connected social channels in the selected workspace with optional provider and status filters and cursor pagination. Returns stored account details and channel IDs for composing posts, without contacting social platforms.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"query":{"type":"object","properties":{"limit":{"type":"integer","minimum":1,"maximum":100,"default":20},"starting_after":{"type":"string"},"ending_before":{"type":"string"},"provider":{"type":"string","enum":["bluesky","discord","facebook","instagram","linkedin","pinterest","threads","tiktok","wordpress","youtube"]},"status":{"type":"string","enum":["pending","active","error","disconnected"]}},"required":[],"additionalProperties":false}},"required":["workspaceId"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"object":{"type":"string","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/$defs/Channel"}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["object","data","has_more","next_cursor"],"$defs":{"Channel":{"type":"object","properties":{"id":{"type":"string"},"workspaceId":{"type":"string"},"provider":{"type":"string","enum":["bluesky","discord","facebook","instagram","linkedin","pinterest","threads","tiktok","wordpress","youtube"]},"providerAccountId":{"type":"string"},"name":{"type":"string"},"accountLabel":{"type":["string","null"]},"avatarUrl":{"type":["string","null"]},"status":{"type":"string","enum":["pending","active","error","disconnected"]},"missingPermissions":{"type":"array","items":{"type":"string"},"description":"Permissions the connection lacks, as the platform names them. Features that need them stop working until the channel is reconnected with every permission allowed.","example":["read_insights"]},"connectedByUserId":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","workspaceId","provider","providerAccountId","name","accountLabel","avatarUrl","status","missingPermissions","connectedByUserId","createdAt","updatedAt"]}}}},{"name":"get_channel","description":"Retrieve a connected social channel by ID in the selected workspace. Returns stored account, provider and connection-status details without credentials or a live request to the social platform.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":false}},"required":["workspaceId","path"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"id":{"type":"string"},"workspaceId":{"type":"string"},"provider":{"type":"string","enum":["bluesky","discord","facebook","instagram","linkedin","pinterest","threads","tiktok","wordpress","youtube"]},"providerAccountId":{"type":"string"},"name":{"type":"string"},"accountLabel":{"type":["string","null"]},"avatarUrl":{"type":["string","null"]},"status":{"type":"string","enum":["pending","active","error","disconnected"]},"missingPermissions":{"type":"array","items":{"type":"string"},"description":"Permissions the connection lacks, as the platform names them. Features that need them stop working until the channel is reconnected with every permission allowed.","example":["read_insights"]},"connectedByUserId":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","workspaceId","provider","providerAccountId","name","accountLabel","avatarUrl","status","missingPermissions","connectedByUserId","createdAt","updatedAt"]}},{"name":"list_post_comments","description":"List visible collaboration comments on a Posty post using its post ID and optional cursor pagination. Returns Posty review discussions, filtered by caller visibility, rather than comments on a published social-platform post.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"postId":{"type":"string"}},"required":["postId"],"additionalProperties":false},"query":{"type":"object","properties":{"limit":{"type":"integer","minimum":1,"maximum":100,"default":20},"starting_after":{"type":"string"},"ending_before":{"type":"string"}},"required":[],"additionalProperties":false}},"required":["workspaceId","path"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"object":{"type":"string","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/$defs/Comment"}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["object","data","has_more","next_cursor"],"$defs":{"Comment":{"type":"object","properties":{"id":{"type":"string"},"postId":{"type":"string"},"body":{"type":"string"},"isChangeRequest":{"type":"boolean"},"visibility":{"type":"string","enum":["team","all"]},"createdBy":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"}},"required":["id","postId","body","isChangeRequest","visibility","createdBy","createdAt"]}}}},{"name":"create_post_comment","description":"Add a collaboration comment to a Posty post using its post ID and a comment body. Returns the created comment, attributed to the authenticated caller and shared with team members or clients according to post visibility. Mentions can generate notifications. The optional isChangeRequest flag labels feedback without changing post status. This does not publish a comment to a social platform.","annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"postId":{"type":"string"}},"required":["postId"],"additionalProperties":false},"body":{"$ref":"#/$defs/CreateCommentRequest"},"idempotencyKey":{"type":"string","maxLength":255,"description":"Reuse this key when retrying the same action."}},"required":["workspaceId","path","body"],"additionalProperties":false,"$defs":{"CreateCommentRequest":{"type":"object","properties":{"body":{"type":"string","minLength":1,"maxLength":10000},"isChangeRequest":{"type":"boolean"}},"required":["body"]}}},"outputSchema":{"type":"object","properties":{"id":{"type":"string"},"postId":{"type":"string"},"body":{"type":"string"},"isChangeRequest":{"type":"boolean"},"visibility":{"type":"string","enum":["team","all"]},"createdBy":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"}},"required":["id","postId","body","isChangeRequest","visibility","createdBy","createdAt"]}},{"name":"delete_post_comment","description":"Permanently delete a collaboration comment using its post and comment IDs in the selected workspace. Requires comment ownership or deletion permission. Removes the comment from the shared Posty discussion and returns a deletion confirmation.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"postId":{"type":"string"},"id":{"type":"string"}},"required":["postId","id"],"additionalProperties":false}},"required":["workspaceId","path"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"deleted":{"type":"boolean","description":"True when the record was removed."}},"required":["deleted"],"additionalProperties":false}},{"name":"list_media","description":"List media assets in the selected workspace with optional status and content-type filters and cursor pagination. Returns media IDs, metadata and temporary signed download URLs. Use ready media IDs when attaching assets to posts.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"query":{"type":"object","properties":{"limit":{"type":"integer","minimum":1,"maximum":100,"default":20},"starting_after":{"type":"string"},"ending_before":{"type":"string"},"status":{"type":"string","enum":["pending","processing","ready","failed","deduped"]},"contentType":{"type":"string","enum":["image/jpeg","image/png","image/webp","image/gif","video/mp4","video/quicktime"]}},"required":[],"additionalProperties":false}},"required":["workspaceId"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"object":{"type":"string","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/$defs/Media"}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["object","data","has_more","next_cursor"],"$defs":{"Media":{"type":"object","properties":{"id":{"type":"string"},"workspaceId":{"type":"string"},"folderId":{"type":["string","null"]},"title":{"type":"string"},"thumbhash":{"type":["string","null"],"description":"Base64 ThumbHash (https://evanw.github.io/thumbhash/) of the thumbnail, for a blurred placeholder while it loads. Null until one has been computed."},"sizeBytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"contentType":{"type":"string"},"etag":{"type":["string","null"]},"status":{"type":"string","enum":["pending","processing","ready","failed","deduped"]},"width":{"type":["integer","null"],"minimum":-9007199254740991,"maximum":9007199254740991},"height":{"type":["integer","null"],"minimum":-9007199254740991,"maximum":9007199254740991},"altText":{"type":["string","null"]},"createdAt":{"type":["string","null"],"format":"date-time"},"updatedAt":{"type":["string","null"],"format":"date-time"},"duration":{"type":["integer","null"],"minimum":-9007199254740991,"maximum":9007199254740991},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]}},"required":["id","workspaceId","folderId","title","thumbhash","sizeBytes","contentType","etag","status","width","height","altText","createdAt","updatedAt","duration","url","thumbnailUrl"]}}}},{"name":"create_media_upload","description":"Start a media upload by providing a title, supported contentType and sizeBytes in the selected workspace. Creates a pending media record and returns its ID, temporary uploadUrl and expiry. Transfer file bytes separately with HTTP PUT to uploadUrl, then call complete_media_upload. This call alone does not transfer the file.","annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"body":{"$ref":"#/$defs/CreateMediaRequest"},"idempotencyKey":{"type":"string","maxLength":255,"description":"Reuse this key when retrying the same action."}},"required":["workspaceId","body"],"additionalProperties":false,"$defs":{"CreateMediaRequest":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":500},"contentType":{"type":"string","enum":["image/jpeg","image/png","image/webp","image/gif","video/mp4","video/quicktime"]},"sizeBytes":{"type":"integer","minimum":1,"maximum":5000000000}},"required":["title","contentType","sizeBytes"]}}},"outputSchema":{"type":"object","properties":{"id":{"type":"string"},"uploadUrl":{"type":"string"},"key":{"type":"string"},"expiresAt":{"type":"string","format":"date-time"}},"required":["id","uploadUrl","key","expiresAt"]}},{"name":"get_media","description":"Retrieve a media asset by ID in the selected workspace. Returns its upload or processing status, file metadata and temporary signed download URLs for the asset and any thumbnail.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":false}},"required":["workspaceId","path"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"id":{"type":"string"},"workspaceId":{"type":"string"},"folderId":{"type":["string","null"]},"title":{"type":"string"},"thumbhash":{"type":["string","null"],"description":"Base64 ThumbHash (https://evanw.github.io/thumbhash/) of the thumbnail, for a blurred placeholder while it loads. Null until one has been computed."},"sizeBytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"contentType":{"type":"string"},"etag":{"type":["string","null"]},"status":{"type":"string","enum":["pending","processing","ready","failed","deduped"]},"width":{"type":["integer","null"],"minimum":-9007199254740991,"maximum":9007199254740991},"height":{"type":["integer","null"],"minimum":-9007199254740991,"maximum":9007199254740991},"altText":{"type":["string","null"]},"createdAt":{"type":["string","null"],"format":"date-time"},"updatedAt":{"type":["string","null"],"format":"date-time"},"duration":{"type":["integer","null"],"minimum":-9007199254740991,"maximum":9007199254740991},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]}},"required":["id","workspaceId","folderId","title","thumbhash","sizeBytes","contentType","etag","status","width","height","altText","createdAt","updatedAt","duration","url","thumbnailUrl"]}},{"name":"delete_media","description":"Remove a media asset from the selected workspace library by ID. Hides it from library listings while preserving stored files and existing post attachments. Returns a deletion confirmation.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":false}},"required":["workspaceId","path"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"deleted":{"type":"boolean","description":"True when the record was removed."}},"required":["deleted"],"additionalProperties":false}},{"name":"complete_media_upload","description":"Finalize a media upload after transferring its file bytes to the signed upload URL. Provide the media ID and optional dimensions or duration. Checks the uploaded object and storage quota, then returns finalized media metadata. Missing uploads or exceeded quotas produce errors.","annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":false},"body":{"$ref":"#/$defs/CompleteMediaRequest"},"idempotencyKey":{"type":"string","maxLength":255,"description":"Reuse this key when retrying the same action."}},"required":["workspaceId","path","body"],"additionalProperties":false,"$defs":{"CompleteMediaRequest":{"type":"object","properties":{"etag":{"type":"string"},"width":{"type":"integer"},"height":{"type":"integer"},"duration":{"type":"integer"}}}}},"outputSchema":{"type":"object","properties":{"id":{"type":"string"},"workspaceId":{"type":"string"},"folderId":{"type":["string","null"]},"title":{"type":"string"},"thumbhash":{"type":["string","null"],"description":"Base64 ThumbHash (https://evanw.github.io/thumbhash/) of the thumbnail, for a blurred placeholder while it loads. Null until one has been computed."},"sizeBytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"contentType":{"type":"string"},"etag":{"type":["string","null"]},"status":{"type":"string","enum":["pending","processing","ready","failed","deduped"]},"width":{"type":["integer","null"],"minimum":-9007199254740991,"maximum":9007199254740991},"height":{"type":["integer","null"],"minimum":-9007199254740991,"maximum":9007199254740991},"altText":{"type":["string","null"]},"createdAt":{"type":["string","null"],"format":"date-time"},"updatedAt":{"type":["string","null"],"format":"date-time"},"duration":{"type":["integer","null"],"minimum":-9007199254740991,"maximum":9007199254740991},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]}},"required":["id","workspaceId","folderId","title","thumbhash","sizeBytes","contentType","etag","status","width","height","altText","createdAt","updatedAt","duration","url","thumbnailUrl"]}},{"name":"list_media_folders","description":"List every media library folder in the workspace as a flat tree (parentId null is top level), with file counts. Needs media:view.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."}},"required":["workspaceId"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/$defs/MediaFolder"}}},"required":["data"],"$defs":{"MediaFolder":{"type":"object","properties":{"id":{"type":"string"},"parentId":{"type":["string","null"]},"name":{"type":"string"},"color":{"type":["string","null"],"enum":["red","orange","yellow","green","blue","purple","grey",null]},"createdBy":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"mediaCount":{"type":"integer","description":"Files directly in this folder. Present on list and create."}},"required":["id","parentId","name","color","createdBy","createdAt","updatedAt"]}}}},{"name":"create_media_folder","description":"Create a media library folder, at the top level or inside parentId. Sibling names must be unique. Needs media:upload.","annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"body":{"$ref":"#/$defs/CreateMediaFolderRequest"},"idempotencyKey":{"type":"string","maxLength":255,"description":"Reuse this key when retrying the same action."}},"required":["workspaceId","body"],"additionalProperties":false,"$defs":{"CreateMediaFolderRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120,"pattern":"^[^/]*$"},"parentId":{"type":["string","null"],"minLength":1}},"required":["name"]}}},"outputSchema":{"type":"object","properties":{"id":{"type":"string"},"parentId":{"type":["string","null"]},"name":{"type":"string"},"color":{"type":["string","null"],"enum":["red","orange","yellow","green","blue","purple","grey",null]},"createdBy":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"mediaCount":{"type":"integer","description":"Files directly in this folder. Present on list and create."}},"required":["id","parentId","name","color","createdBy","createdAt","updatedAt"]}},{"name":"rename_media_folder","description":"Rename a media library folder. The new name must be unique among its siblings. Needs media:upload.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string","minLength":1}},"required":["id"],"additionalProperties":false},"body":{"$ref":"#/$defs/RenameMediaFolderRequest"}},"required":["workspaceId","path","body"],"additionalProperties":false,"$defs":{"RenameMediaFolderRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120,"pattern":"^[^/]*$"}},"required":["name"]}}},"outputSchema":{"type":"object","properties":{"id":{"type":"string"},"parentId":{"type":["string","null"]},"name":{"type":"string"},"color":{"type":["string","null"],"enum":["red","orange","yellow","green","blue","purple","grey",null]},"createdBy":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"mediaCount":{"type":"integer","description":"Files directly in this folder. Present on list and create."}},"required":["id","parentId","name","color","createdBy","createdAt","updatedAt"]}},{"name":"delete_media_folder","description":"Delete a folder, its subfolders, and remove every file inside them from the library. Files already attached to posts stay on those posts. Needs media:delete.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string","minLength":1}},"required":["id"],"additionalProperties":false}},"required":["workspaceId","path"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"deleted":{"type":"boolean","description":"True when the record was removed."}},"required":["deleted"],"additionalProperties":false}},{"name":"move_media_folder","description":"Move a folder, with everything in it, under parentId or to the top level with null. A folder cannot move into itself or its descendants. Needs media:upload.","annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string","minLength":1}},"required":["id"],"additionalProperties":false},"body":{"$ref":"#/$defs/MoveMediaFolderRequest"},"idempotencyKey":{"type":"string","maxLength":255,"description":"Reuse this key when retrying the same action."}},"required":["workspaceId","path","body"],"additionalProperties":false,"$defs":{"MoveMediaFolderRequest":{"type":"object","properties":{"parentId":{"type":["string","null"],"minLength":1}},"required":["parentId"]}}},"outputSchema":{"type":"object","properties":{"id":{"type":"string"},"parentId":{"type":["string","null"]},"name":{"type":"string"},"color":{"type":["string","null"],"enum":["red","orange","yellow","green","blue","purple","grey",null]},"createdBy":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"mediaCount":{"type":"integer","description":"Files directly in this folder. Present on list and create."}},"required":["id","parentId","name","color","createdBy","createdAt","updatedAt"]}},{"name":"set_media_folder_color","description":"Tag up to 200 folders with one colour, or clear it with null. All or nothing: an unknown folder id fails the whole change. Needs media:upload.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"body":{"$ref":"#/$defs/SetMediaFolderColorRequest"}},"required":["workspaceId","body"],"additionalProperties":false,"$defs":{"SetMediaFolderColorRequest":{"type":"object","properties":{"folderIds":{"type":"array","items":{"type":"string","minLength":1},"minItems":1,"maxItems":200},"color":{"type":["string","null"],"enum":["red","orange","yellow","green","blue","purple","grey",null]}},"required":["folderIds","color"]}}},"outputSchema":{"type":"object","properties":{"folderIds":{"type":"array","items":{"type":"string"}}},"required":["folderIds"]}},{"name":"move_media_items","description":"Move up to 200 library files into folderId, or to the top level with null. All or nothing: an unknown media id fails the whole move. Needs media:upload.","annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"body":{"$ref":"#/$defs/MoveMediaItemsRequest"},"idempotencyKey":{"type":"string","maxLength":255,"description":"Reuse this key when retrying the same action."}},"required":["workspaceId","body"],"additionalProperties":false,"$defs":{"MoveMediaItemsRequest":{"type":"object","properties":{"mediaIds":{"type":"array","items":{"type":"string","minLength":1},"minItems":1,"maxItems":200},"folderId":{"type":["string","null"],"minLength":1}},"required":["mediaIds","folderId"]}}},"outputSchema":{"type":"object","properties":{"moved":{"type":"integer"}},"required":["moved"]}},{"name":"rename_media","description":"Rename a library file (its display title, up to 500 characters). Needs media:upload.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string","minLength":1}},"required":["id"],"additionalProperties":false},"body":{"$ref":"#/$defs/RenameMediaRequest"}},"required":["workspaceId","path","body"],"additionalProperties":false,"$defs":{"RenameMediaRequest":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":500}},"required":["title"]}}},"outputSchema":{"type":"object","properties":{"id":{"type":"string"},"workspaceId":{"type":"string"},"folderId":{"type":["string","null"]},"title":{"type":"string"},"thumbhash":{"type":["string","null"],"description":"Base64 ThumbHash (https://evanw.github.io/thumbhash/) of the thumbnail, for a blurred placeholder while it loads. Null until one has been computed."},"sizeBytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"contentType":{"type":"string"},"etag":{"type":["string","null"]},"status":{"type":"string","enum":["pending","processing","ready","failed","deduped"]},"width":{"type":["integer","null"],"minimum":-9007199254740991,"maximum":9007199254740991},"height":{"type":["integer","null"],"minimum":-9007199254740991,"maximum":9007199254740991},"altText":{"type":["string","null"]},"createdAt":{"type":["string","null"],"format":"date-time"},"updatedAt":{"type":["string","null"],"format":"date-time"},"duration":{"type":["integer","null"],"minimum":-9007199254740991,"maximum":9007199254740991},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]}},"required":["id","workspaceId","folderId","title","thumbhash","sizeBytes","contentType","etag","status","width","height","altText","createdAt","updatedAt","duration","url","thumbnailUrl"]}},{"name":"set_media_alt_text","description":"Set the accessibility description published with this file on platforms that support alt text, or clear it with null or an empty string. Up to 1000 characters. Needs media:upload.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string","minLength":1}},"required":["id"],"additionalProperties":false},"body":{"$ref":"#/$defs/SetMediaAltTextRequest"}},"required":["workspaceId","path","body"],"additionalProperties":false,"$defs":{"SetMediaAltTextRequest":{"type":"object","properties":{"altText":{"type":["string","null"],"maxLength":1000}},"required":["altText"]}}},"outputSchema":{"type":"object","properties":{"id":{"type":"string"},"workspaceId":{"type":"string"},"folderId":{"type":["string","null"]},"title":{"type":"string"},"thumbhash":{"type":["string","null"],"description":"Base64 ThumbHash (https://evanw.github.io/thumbhash/) of the thumbnail, for a blurred placeholder while it loads. Null until one has been computed."},"sizeBytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"contentType":{"type":"string"},"etag":{"type":["string","null"]},"status":{"type":"string","enum":["pending","processing","ready","failed","deduped"]},"width":{"type":["integer","null"],"minimum":-9007199254740991,"maximum":9007199254740991},"height":{"type":["integer","null"],"minimum":-9007199254740991,"maximum":9007199254740991},"altText":{"type":["string","null"]},"createdAt":{"type":["string","null"],"format":"date-time"},"updatedAt":{"type":["string","null"],"format":"date-time"},"duration":{"type":["integer","null"],"minimum":-9007199254740991,"maximum":9007199254740991},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]}},"required":["id","workspaceId","folderId","title","thumbhash","sizeBytes","contentType","etag","status","width","height","altText","createdAt","updatedAt","duration","url","thumbnailUrl"]}},{"name":"get_media_usage","description":"List the posts and channels a library file is attached to, limited to posts the caller can see. Needs media:view.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string","minLength":1}},"required":["id"],"additionalProperties":false}},"required":["workspaceId","path"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"postId":{"type":"string"},"postContentId":{"type":"string"},"postStatus":{"type":"string","enum":["draft","pending_approval","pending_client_approval","approved","scheduled","delivered","partially_delivered","delivery_failed"]},"platform":{"type":"string","enum":["bluesky","discord","facebook","instagram","linkedin","pinterest","threads","tiktok","wordpress","youtube"]},"body":{"type":["string","null"]}},"required":["postId","postContentId","postStatus","platform","body"]}}},"required":["data"]}},{"name":"get_storage_usage","description":"Bytes the media library uses against the workspace plan's storage limit, and how many remain. limitBytes and remainingBytes are null on an unlimited plan. Needs media:view.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."}},"required":["workspaceId"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"usedBytes":{"type":"integer"},"limitBytes":{"type":["integer","null"]},"remainingBytes":{"type":["integer","null"]},"unlimited":{"type":"boolean"}},"required":["usedBytes","limitBytes","remainingBytes","unlimited"]}},{"name":"list_posts","description":"List visible Posty posts in the selected workspace with optional status, channel, creation-date and scheduled-date filters and cursor pagination. Returns post summaries, statuses, schedules and platform names. Use get_post for expanded channel content, media attachments and delivery details.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"query":{"type":"object","properties":{"limit":{"type":"integer","minimum":1,"maximum":100,"default":20},"starting_after":{"type":"string"},"ending_before":{"type":"string"},"status":{"type":"string"},"channelId":{"type":"string"},"scheduledAt_gte":{"type":"string","format":"date-time"},"scheduledAt_lte":{"type":"string","format":"date-time"},"createdAt_gte":{"type":"string","format":"date-time"},"createdAt_lte":{"type":"string","format":"date-time"}},"required":[],"additionalProperties":false}},"required":["workspaceId"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"object":{"type":"string","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/$defs/Post"}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["object","data","has_more","next_cursor"],"$defs":{"Post":{"type":"object","properties":{"createdBy":{"type":["string","null"]},"id":{"type":"string"},"approvalMode":{"type":["string","null"],"enum":["none","optional","required","multi_level",null]},"scheduledAt":{"type":["string","null"],"format":"date-time"},"status":{"type":"string","enum":["draft","pending_approval","pending_client_approval","approved","scheduled","delivered","partially_delivered","delivery_failed"]},"workspaceId":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"body":{"type":"string"},"content":{"type":"array","items":{"$ref":"#/$defs/PostContent"}}},"required":["createdBy","id","approvalMode","scheduledAt","status","workspaceId","createdAt","updatedAt"]},"PostContent":{"type":"object","properties":{"id":{"type":"string"},"postId":{"type":"string"},"channelId":{"type":["string","null"]},"platform":{"type":"string","enum":["bluesky","discord","facebook","instagram","linkedin","pinterest","threads","tiktok","wordpress","youtube"]},"body":{"type":["string","null"]},"firstComment":{"type":["string","null"]},"firstCommentExternalId":{"type":["string","null"]},"firstCommentError":{"type":["string","null"]},"contentType":{"type":["string","null"],"enum":["image","video","reel","story","carousel","text",null]},"thumbnailUrl":{"type":["string","null"]},"permalink":{"type":["string","null"]},"hashtags":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"deliveryStatus":{"type":"string","enum":["pending","in_progress","delivered","failed","permanently_failed","cancelled","external"]},"deliveryAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"deliveryError":{"type":["string","null"]},"deliveryErrorCategory":{"type":["string","null"],"enum":["transform","platform","auth","media_proxy","validation","unknown",null]},"externalPostId":{"type":["string","null"]},"consecutiveMissingFetches":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"metadata":{"type":["object","null"],"additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"array","items":{"type":"string"}},{"type":"null"}]}},"media":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]}},"required":["id","title","url","thumbnailUrl"]}},"deliveredAt":{"type":["string","null"],"format":"date-time"},"nextRetryAt":{"type":["string","null"],"format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"historyBackfilledAt":{"type":["string","null"],"format":"date-time"},"deletedOnPlatformAt":{"type":["string","null"],"format":"date-time"},"firstCommentPostedAt":{"type":["string","null"],"format":"date-time"}},"required":["id","postId","channelId","platform","body","firstComment","firstCommentExternalId","firstCommentError","contentType","thumbnailUrl","permalink","hashtags","updatedBy","deliveryStatus","deliveryAttempts","deliveryError","deliveryErrorCategory","externalPostId","consecutiveMissingFetches","metadata","media","deliveredAt","nextRetryAt","updatedAt","historyBackfilledAt","deletedOnPlatformAt","firstCommentPostedAt"]}}}},{"name":"create_post","description":"Create a draft Posty post with channel-specific text, metadata, optional firstComment and ready media IDs in the selected workspace. First comments require the workspace entitlement and publish after the post on supported platforms. An optional future scheduledAt records the intended publication time. Returns the created post and content. Creation does not publish the draft; use act_on_post for review and publication.","annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"body":{"$ref":"#/$defs/CreatePostRequest"},"idempotencyKey":{"type":"string","maxLength":255,"description":"Reuse this key when retrying the same action."}},"required":["workspaceId","body"],"additionalProperties":false,"$defs":{"CreatePostRequest":{"type":"object","properties":{"scheduledAt":{"type":"string","format":"date-time"},"approvalMode":{"type":"string","enum":["none","optional","required","multi_level"]},"content":{"type":"array","items":{"type":"object","properties":{"channelId":{"type":"string"},"body":{"type":["string","null"]},"firstComment":{"type":["string","null"],"description":"First comment or reply to publish after the post on supported platforms. At most 10,000 Unicode codepoints after trimming whitespace. Non-empty text requires the workspace first-comment entitlement. Null or blank text means no comment."},"metadata":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"array","items":{"type":"string"}},{"type":"null"}]}},"mediaIds":{"type":"array","items":{"type":"string"}}},"required":["channelId"]},"minItems":1}},"required":["content"]}}},"outputSchema":{"type":"object","properties":{"createdBy":{"type":["string","null"]},"id":{"type":"string"},"approvalMode":{"type":["string","null"],"enum":["none","optional","required","multi_level",null]},"scheduledAt":{"type":["string","null"],"format":"date-time"},"status":{"type":"string","enum":["draft","pending_approval","pending_client_approval","approved","scheduled","delivered","partially_delivered","delivery_failed"]},"workspaceId":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"body":{"type":"string"},"content":{"type":"array","items":{"$ref":"#/$defs/PostContent"}}},"required":["createdBy","id","approvalMode","scheduledAt","status","workspaceId","createdAt","updatedAt"],"$defs":{"PostContent":{"type":"object","properties":{"id":{"type":"string"},"postId":{"type":"string"},"channelId":{"type":["string","null"]},"platform":{"type":"string","enum":["bluesky","discord","facebook","instagram","linkedin","pinterest","threads","tiktok","wordpress","youtube"]},"body":{"type":["string","null"]},"firstComment":{"type":["string","null"]},"firstCommentExternalId":{"type":["string","null"]},"firstCommentError":{"type":["string","null"]},"contentType":{"type":["string","null"],"enum":["image","video","reel","story","carousel","text",null]},"thumbnailUrl":{"type":["string","null"]},"permalink":{"type":["string","null"]},"hashtags":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"deliveryStatus":{"type":"string","enum":["pending","in_progress","delivered","failed","permanently_failed","cancelled","external"]},"deliveryAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"deliveryError":{"type":["string","null"]},"deliveryErrorCategory":{"type":["string","null"],"enum":["transform","platform","auth","media_proxy","validation","unknown",null]},"externalPostId":{"type":["string","null"]},"consecutiveMissingFetches":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"metadata":{"type":["object","null"],"additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"array","items":{"type":"string"}},{"type":"null"}]}},"media":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]}},"required":["id","title","url","thumbnailUrl"]}},"deliveredAt":{"type":["string","null"],"format":"date-time"},"nextRetryAt":{"type":["string","null"],"format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"historyBackfilledAt":{"type":["string","null"],"format":"date-time"},"deletedOnPlatformAt":{"type":["string","null"],"format":"date-time"},"firstCommentPostedAt":{"type":["string","null"],"format":"date-time"}},"required":["id","postId","channelId","platform","body","firstComment","firstCommentExternalId","firstCommentError","contentType","thumbnailUrl","permalink","hashtags","updatedBy","deliveryStatus","deliveryAttempts","deliveryError","deliveryErrorCategory","externalPostId","consecutiveMissingFetches","metadata","media","deliveredAt","nextRetryAt","updatedAt","historyBackfilledAt","deletedOnPlatformAt","firstCommentPostedAt"]}}}},{"name":"get_post","description":"Retrieve a visible Posty post by ID in the selected workspace. Returns its status, schedule and expanded channel content, including media attachments and delivery details. Use this to inspect a post before editing or taking a lifecycle action.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":false}},"required":["workspaceId","path"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"createdBy":{"type":["string","null"]},"id":{"type":"string"},"approvalMode":{"type":["string","null"],"enum":["none","optional","required","multi_level",null]},"scheduledAt":{"type":["string","null"],"format":"date-time"},"status":{"type":"string","enum":["draft","pending_approval","pending_client_approval","approved","scheduled","delivered","partially_delivered","delivery_failed"]},"workspaceId":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"body":{"type":"string"},"content":{"type":"array","items":{"$ref":"#/$defs/PostContent"}}},"required":["createdBy","id","approvalMode","scheduledAt","status","workspaceId","createdAt","updatedAt"],"$defs":{"PostContent":{"type":"object","properties":{"id":{"type":"string"},"postId":{"type":"string"},"channelId":{"type":["string","null"]},"platform":{"type":"string","enum":["bluesky","discord","facebook","instagram","linkedin","pinterest","threads","tiktok","wordpress","youtube"]},"body":{"type":["string","null"]},"firstComment":{"type":["string","null"]},"firstCommentExternalId":{"type":["string","null"]},"firstCommentError":{"type":["string","null"]},"contentType":{"type":["string","null"],"enum":["image","video","reel","story","carousel","text",null]},"thumbnailUrl":{"type":["string","null"]},"permalink":{"type":["string","null"]},"hashtags":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"deliveryStatus":{"type":"string","enum":["pending","in_progress","delivered","failed","permanently_failed","cancelled","external"]},"deliveryAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"deliveryError":{"type":["string","null"]},"deliveryErrorCategory":{"type":["string","null"],"enum":["transform","platform","auth","media_proxy","validation","unknown",null]},"externalPostId":{"type":["string","null"]},"consecutiveMissingFetches":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"metadata":{"type":["object","null"],"additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"array","items":{"type":"string"}},{"type":"null"}]}},"media":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]}},"required":["id","title","url","thumbnailUrl"]}},"deliveredAt":{"type":["string","null"],"format":"date-time"},"nextRetryAt":{"type":["string","null"],"format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"historyBackfilledAt":{"type":["string","null"],"format":"date-time"},"deletedOnPlatformAt":{"type":["string","null"],"format":"date-time"},"firstCommentPostedAt":{"type":["string","null"],"format":"date-time"}},"required":["id","postId","channelId","platform","body","firstComment","firstCommentExternalId","firstCommentError","contentType","thumbnailUrl","permalink","hashtags","updatedBy","deliveryStatus","deliveryAttempts","deliveryError","deliveryErrorCategory","externalPostId","consecutiveMissingFetches","metadata","media","deliveredAt","nextRetryAt","updatedAt","historyBackfilledAt","deletedOnPlatformAt","firstCommentPostedAt"]}}}},{"name":"update_post","description":"Update supplied status, scheduledAt or approvalMode fields on a Posty post by ID. Permissions, transitions and review rules apply. Returns the updated post. Scheduling can cause publication to connected social platforms when due; returning a post to draft resets existing approvals.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":true},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":false},"body":{"$ref":"#/$defs/UpdatePostRequest"}},"required":["workspaceId","path","body"],"additionalProperties":false,"$defs":{"UpdatePostRequest":{"type":"object","properties":{"status":{"type":"string","enum":["draft","pending_approval","pending_client_approval","approved","scheduled","delivered","partially_delivered","delivery_failed"]},"scheduledAt":{"type":["string","null"],"format":"date-time"},"approvalMode":{"type":"string","enum":["none","optional","required","multi_level"]}}}}},"outputSchema":{"type":"object","properties":{"createdBy":{"type":["string","null"]},"id":{"type":"string"},"approvalMode":{"type":["string","null"],"enum":["none","optional","required","multi_level",null]},"scheduledAt":{"type":["string","null"],"format":"date-time"},"status":{"type":"string","enum":["draft","pending_approval","pending_client_approval","approved","scheduled","delivered","partially_delivered","delivery_failed"]},"workspaceId":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"body":{"type":"string"},"content":{"type":"array","items":{"$ref":"#/$defs/PostContent"}}},"required":["createdBy","id","approvalMode","scheduledAt","status","workspaceId","createdAt","updatedAt"],"$defs":{"PostContent":{"type":"object","properties":{"id":{"type":"string"},"postId":{"type":"string"},"channelId":{"type":["string","null"]},"platform":{"type":"string","enum":["bluesky","discord","facebook","instagram","linkedin","pinterest","threads","tiktok","wordpress","youtube"]},"body":{"type":["string","null"]},"firstComment":{"type":["string","null"]},"firstCommentExternalId":{"type":["string","null"]},"firstCommentError":{"type":["string","null"]},"contentType":{"type":["string","null"],"enum":["image","video","reel","story","carousel","text",null]},"thumbnailUrl":{"type":["string","null"]},"permalink":{"type":["string","null"]},"hashtags":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"deliveryStatus":{"type":"string","enum":["pending","in_progress","delivered","failed","permanently_failed","cancelled","external"]},"deliveryAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"deliveryError":{"type":["string","null"]},"deliveryErrorCategory":{"type":["string","null"],"enum":["transform","platform","auth","media_proxy","validation","unknown",null]},"externalPostId":{"type":["string","null"]},"consecutiveMissingFetches":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"metadata":{"type":["object","null"],"additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"array","items":{"type":"string"}},{"type":"null"}]}},"media":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]}},"required":["id","title","url","thumbnailUrl"]}},"deliveredAt":{"type":["string","null"],"format":"date-time"},"nextRetryAt":{"type":["string","null"],"format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"historyBackfilledAt":{"type":["string","null"],"format":"date-time"},"deletedOnPlatformAt":{"type":["string","null"],"format":"date-time"},"firstCommentPostedAt":{"type":["string","null"],"format":"date-time"}},"required":["id","postId","channelId","platform","body","firstComment","firstCommentExternalId","firstCommentError","contentType","thumbnailUrl","permalink","hashtags","updatedBy","deliveryStatus","deliveryAttempts","deliveryError","deliveryErrorCategory","externalPostId","consecutiveMissingFetches","metadata","media","deliveredAt","nextRetryAt","updatedAt","historyBackfilledAt","deletedOnPlatformAt","firstCommentPostedAt"]}}}},{"name":"delete_post","description":"Permanently delete a Posty post and associated content and collaboration records by ID in the selected workspace. Requires deletion permission and is rejected during active delivery. Returns a deletion confirmation. Already published social-platform copies remain online.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":false}},"required":["workspaceId","path"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"deleted":{"type":"boolean","description":"True when the record was removed."}},"required":["deleted"],"additionalProperties":false}},{"name":"update_post_content","description":"Update supplied text body, platform metadata or firstComment for one channel of an editable Posty post using post and channel IDs. Omit firstComment to preserve it; null or blank text clears it. Non-empty first comments require the workspace entitlement. Returns updated channel content. Edits apply to the Posty copy without updating an already published social-platform copy.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string"},"channelId":{"type":"string"}},"required":["id","channelId"],"additionalProperties":false},"body":{"$ref":"#/$defs/UpdatePostContentRequest"}},"required":["workspaceId","path","body"],"additionalProperties":false,"$defs":{"UpdatePostContentRequest":{"type":"object","properties":{"body":{"type":["string","null"]},"firstComment":{"type":["string","null"],"description":"First comment or reply on supported platforms. At most 10,000 Unicode codepoints after trimming whitespace. Omit to preserve the saved value; null or blank text clears it. Non-empty text requires the workspace first-comment entitlement."},"metadata":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"array","items":{"type":"string"}},{"type":"null"}]}}}}}},"outputSchema":{"type":"object","properties":{"id":{"type":"string"},"postId":{"type":"string"},"channelId":{"type":["string","null"]},"platform":{"type":"string","enum":["bluesky","discord","facebook","instagram","linkedin","pinterest","threads","tiktok","wordpress","youtube"]},"body":{"type":["string","null"]},"firstComment":{"type":["string","null"]},"firstCommentExternalId":{"type":["string","null"]},"firstCommentError":{"type":["string","null"]},"contentType":{"type":["string","null"],"enum":["image","video","reel","story","carousel","text",null]},"thumbnailUrl":{"type":["string","null"]},"permalink":{"type":["string","null"]},"hashtags":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"deliveryStatus":{"type":"string","enum":["pending","in_progress","delivered","failed","permanently_failed","cancelled","external"]},"deliveryAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"deliveryError":{"type":["string","null"]},"deliveryErrorCategory":{"type":["string","null"],"enum":["transform","platform","auth","media_proxy","validation","unknown",null]},"externalPostId":{"type":["string","null"]},"consecutiveMissingFetches":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"metadata":{"type":["object","null"],"additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"array","items":{"type":"string"}},{"type":"null"}]}},"media":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]}},"required":["id","title","url","thumbnailUrl"]}},"deliveredAt":{"type":["string","null"],"format":"date-time"},"nextRetryAt":{"type":["string","null"],"format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"historyBackfilledAt":{"type":["string","null"],"format":"date-time"},"deletedOnPlatformAt":{"type":["string","null"],"format":"date-time"},"firstCommentPostedAt":{"type":["string","null"],"format":"date-time"}},"required":["id","postId","channelId","platform","body","firstComment","firstCommentExternalId","firstCommentError","contentType","thumbnailUrl","permalink","hashtags","updatedBy","deliveryStatus","deliveryAttempts","deliveryError","deliveryErrorCategory","externalPostId","consecutiveMissingFetches","metadata","media","deliveredAt","nextRetryAt","updatedAt","historyBackfilledAt","deletedOnPlatformAt","firstCommentPostedAt"]}},{"name":"delete_post_content","description":"Delete one channel-specific content entry and its attachments from an editable Posty post using post and channel IDs. Returns a deletion confirmation. Library media and already published social-platform copies are retained.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string","minLength":1},"channelId":{"type":"string","minLength":1}},"required":["id","channelId"],"additionalProperties":false}},"required":["workspaceId","path"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"deleted":{"type":"boolean","description":"True when the record was removed."}},"required":["deleted"],"additionalProperties":false}},{"name":"replace_post_content_media","description":"Replace the complete ordered media attachment list for one channel of an editable Posty post. Provide post and channel IDs and the full ordered list of ready media IDs. Omitted attachments are detached; an empty list clears attachments. Returns updated channel content while retaining library assets.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string"},"channelId":{"type":"string"}},"required":["id","channelId"],"additionalProperties":false},"body":{"$ref":"#/$defs/ReplaceContentMediaRequest"}},"required":["workspaceId","path","body"],"additionalProperties":false,"$defs":{"ReplaceContentMediaRequest":{"type":"object","properties":{"mediaIds":{"type":"array","items":{"type":"string"}}},"required":["mediaIds"]}}},"outputSchema":{"type":"object","properties":{"id":{"type":"string"},"postId":{"type":"string"},"channelId":{"type":["string","null"]},"platform":{"type":"string","enum":["bluesky","discord","facebook","instagram","linkedin","pinterest","threads","tiktok","wordpress","youtube"]},"body":{"type":["string","null"]},"firstComment":{"type":["string","null"]},"firstCommentExternalId":{"type":["string","null"]},"firstCommentError":{"type":["string","null"]},"contentType":{"type":["string","null"],"enum":["image","video","reel","story","carousel","text",null]},"thumbnailUrl":{"type":["string","null"]},"permalink":{"type":["string","null"]},"hashtags":{"type":["string","null"]},"updatedBy":{"type":["string","null"]},"deliveryStatus":{"type":"string","enum":["pending","in_progress","delivered","failed","permanently_failed","cancelled","external"]},"deliveryAttempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"deliveryError":{"type":["string","null"]},"deliveryErrorCategory":{"type":["string","null"],"enum":["transform","platform","auth","media_proxy","validation","unknown",null]},"externalPostId":{"type":["string","null"]},"consecutiveMissingFetches":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"metadata":{"type":["object","null"],"additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"array","items":{"type":"string"}},{"type":"null"}]}},"media":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]}},"required":["id","title","url","thumbnailUrl"]}},"deliveredAt":{"type":["string","null"],"format":"date-time"},"nextRetryAt":{"type":["string","null"],"format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"historyBackfilledAt":{"type":["string","null"],"format":"date-time"},"deletedOnPlatformAt":{"type":["string","null"],"format":"date-time"},"firstCommentPostedAt":{"type":["string","null"],"format":"date-time"}},"required":["id","postId","channelId","platform","body","firstComment","firstCommentExternalId","firstCommentError","contentType","thumbnailUrl","permalink","hashtags","updatedBy","deliveryStatus","deliveryAttempts","deliveryError","deliveryErrorCategory","externalPostId","consecutiveMissingFetches","metadata","media","deliveredAt","nextRetryAt","updatedAt","historyBackfilledAt","deletedOnPlatformAt","firstCommentPostedAt"]}},{"name":"act_on_post","description":"Apply a lifecycle action to a Posty post and return its resulting status. Use submit to follow its configured approval flow, approve to record approval, request_changes with a comment body to request edits, or retry to requeue failed deliveries. For an approved or scheduled post, publish with at=now (the default) queues immediate delivery; at=scheduled retains its saved publication time. Submission or approval may also schedule publication according to workspace settings. Publishing and retrying can expose content and media on external social platforms. Permissions, review stages and readiness checks apply.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":true},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string","minLength":1}},"required":["id"],"additionalProperties":false},"body":{"oneOf":[{"type":"object","properties":{"skipApproval":{"type":"boolean","default":false},"action":{"type":"string","enum":["submit"]}},"required":["action"]},{"type":"object","properties":{"action":{"type":"string","enum":["approve"]}},"required":["action"]},{"type":"object","properties":{"body":{"type":"string","minLength":1,"maxLength":10000},"visibility":{"type":"string","enum":["team","all"]},"action":{"type":"string","enum":["request_changes"]}},"required":["body","action"]},{"type":"object","properties":{"at":{"type":"string","enum":["now","scheduled"],"default":"now"},"action":{"type":"string","enum":["publish"]}},"required":["action"]},{"type":"object","properties":{"action":{"type":"string","enum":["retry"]}},"required":["action"]}]},"idempotencyKey":{"type":"string","maxLength":255,"description":"Reuse this key when retrying the same action."}},"required":["workspaceId","path","body"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["draft","pending_approval","pending_client_approval","approved","scheduled","delivered","partially_delivered","delivery_failed"]}},"required":["id","status"]}},{"name":"get_post_history","description":"Retrieve revision history, approval decisions and recorded events for a visible Posty post by ID in the selected workspace. Requires permission to view post history. Returns revisions, approvals and events without modifying the post.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string","minLength":1}},"required":["id"],"additionalProperties":false}},"required":["workspaceId","path"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"revisions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":{}}},"approvals":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":{}}},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":{}}}},"required":["revisions","approvals","events"]}},{"name":"list_calendar_posts","description":"List posts scheduled between from and to (ISO timestamps) as calendar cards with per-channel delivery counts. Needs posts:view; client reviewers never see drafts or team review.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"query":{"type":"object","properties":{"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time"},"limit":{"type":"integer","minimum":1,"maximum":1000,"default":500}},"required":["from","to"],"additionalProperties":false}},"required":["workspaceId","query"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/$defs/CalendarPost"}}},"required":["data"],"$defs":{"CalendarPost":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["draft","pending_approval","pending_client_approval","approved","scheduled","delivered","partially_delivered","delivery_failed"]},"body":{"type":"string","description":"Display label: platform title or first caption, or a media fallback."},"campaignId":{"type":["string","null"]},"channelIds":{"type":"array","items":{"type":"string"}},"platforms":{"type":"array","items":{"type":"string","enum":["bluesky","discord","facebook","instagram","linkedin","pinterest","threads","tiktok","wordpress","youtube"]}},"thumbnail":{"type":["string","null"],"description":"Short-lived signed preview URL, when the post has one."},"scheduledAt":{"type":["string","null"],"format":"date-time"},"deliveryCounts":{"type":"object","properties":{"delivered":{"type":"integer"},"failed":{"type":"integer"},"pending":{"type":"integer"},"permanentlyFailed":{"type":"integer"},"total":{"type":"integer"}},"required":["delivered","failed","pending","permanentlyFailed","total"]},"deliveryErrorCategory":{"type":["string","null"]}},"required":["id","status","body","campaignId","channelIds","platforms","thumbnail","scheduledAt","deliveryCounts","deliveryErrorCategory"]}}}},{"name":"list_backlog_posts","description":"List unscheduled posts that are not yet delivered, most recently updated first. Needs posts:view; client reviewers never see drafts or team review.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"query":{"type":"object","properties":{"limit":{"type":"integer","minimum":1,"maximum":500,"default":100}},"required":[],"additionalProperties":false}},"required":["workspaceId"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/$defs/BacklogPost"}}},"required":["data"],"$defs":{"BacklogPost":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["draft","pending_approval","pending_client_approval","approved","scheduled","delivered","partially_delivered","delivery_failed"]},"body":{"type":"string","description":"Display label: platform title or first caption, or a media fallback."},"campaignId":{"type":["string","null"]},"channelIds":{"type":"array","items":{"type":"string"}},"platforms":{"type":"array","items":{"type":"string","enum":["bluesky","discord","facebook","instagram","linkedin","pinterest","threads","tiktok","wordpress","youtube"]}},"thumbnail":{"type":["string","null"],"description":"Short-lived signed preview URL, when the post has one."},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","status","body","campaignId","channelIds","platforms","thumbnail","updatedAt"]}}}},{"name":"count_backlog_posts","description":"Count the unscheduled posts the caller can see in the backlog. Needs posts:view.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."}},"required":["workspaceId"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"count":{"type":"integer"}},"required":["count"]}},{"name":"set_post_approval_mode","description":"Pin a draft post's approval flow (none, optional, required or multi_level), or pass null to inherit the workspace default. Needs posts:update_approval_mode; the mode must be included in the workspace plan.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string","minLength":1}},"required":["id"],"additionalProperties":false},"body":{"$ref":"#/$defs/SetPostApprovalModeRequest"}},"required":["workspaceId","path","body"],"additionalProperties":false,"$defs":{"SetPostApprovalModeRequest":{"type":"object","properties":{"approvalMode":{"type":["string","null"],"enum":["none","optional","required","multi_level",null]}},"required":["approvalMode"]}}},"outputSchema":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["draft","pending_approval","pending_client_approval","approved","scheduled","delivered","partially_delivered","delivery_failed"]},"approvalMode":{"type":["string","null"],"enum":["none","optional","required","multi_level",null]},"scheduledAt":{"type":["string","null"],"format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","status","approvalMode","scheduledAt","updatedAt"]}},{"name":"create_post_revision","description":"Snapshot the post's current per-channel content and media as a new numbered revision. Needs posts:update. Read revisions with get_post_history.","annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string","minLength":1}},"required":["id"],"additionalProperties":false},"idempotencyKey":{"type":"string","maxLength":255,"description":"Reuse this key when retrying the same action."}},"required":["workspaceId","path"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"id":{"type":"string"},"postId":{"type":"string"},"version":{"type":"integer"},"status":{"type":"string","enum":["draft","pending_approval","pending_client_approval","approved","scheduled","delivered","partially_delivered","delivery_failed"]},"scheduledAt":{"type":["string","null"],"format":"date-time"},"createdBy":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"}},"required":["id","postId","version","status","scheduledAt","createdBy","createdAt"]}},{"name":"cancel_post_delivery","description":"Stop retrying one channel's failed delivery, or dismiss one that failed permanently, so the post no longer counts as needing attention. Obtain postContentId from content[].id in get_post for the post. Requires posts:publish. Returns the content ID and resulting delivery status. Fails with 409 if a retry already started; it does not delete a published platform post.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string","minLength":1}},"required":["id"],"additionalProperties":false},"body":{"$ref":"#/$defs/CancelPostDeliveryRequest"},"idempotencyKey":{"type":"string","maxLength":255,"description":"Reuse this key when retrying the same action."}},"required":["workspaceId","path","body"],"additionalProperties":false,"$defs":{"CancelPostDeliveryRequest":{"type":"object","properties":{"postContentId":{"type":"string","minLength":1}},"required":["postContentId"]}}},"outputSchema":{"type":"object","properties":{"postContentId":{"type":"string"},"deliveryStatus":{"type":"string","enum":["pending","in_progress","delivered","failed","permanently_failed","cancelled","external"]}},"required":["postContentId","deliveryStatus"]}},{"name":"bulk_schedule_posts","description":"Move up to 50 posts to new future times in one all or nothing change. Each item carries the post's current updatedAt as expectedUpdatedAt; a stale value answers 409. Needs posts:update; approval states are unchanged.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"body":{"$ref":"#/$defs/BulkSchedulePostsRequest"},"idempotencyKey":{"type":"string","maxLength":255,"description":"Reuse this key when retrying the same action."}},"required":["workspaceId","body"],"additionalProperties":false,"$defs":{"BulkSchedulePostsRequest":{"type":"object","properties":{"posts":{"type":"array","items":{"type":"object","properties":{"postId":{"type":"string","minLength":1},"expectedUpdatedAt":{"type":"string","format":"date-time"},"scheduledAt":{"type":"string","format":"date-time"}},"required":["postId","expectedUpdatedAt","scheduledAt"]},"minItems":1,"maxItems":50}},"required":["posts"]}}},"outputSchema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/$defs/PostState"}}},"required":["data"],"$defs":{"PostState":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["draft","pending_approval","pending_client_approval","approved","scheduled","delivered","partially_delivered","delivery_failed"]},"approvalMode":{"type":["string","null"],"enum":["none","optional","required","multi_level",null]},"scheduledAt":{"type":["string","null"],"format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","status","approvalMode","scheduledAt","updatedAt"]}}}},{"name":"list_post_review_requests","description":"List who has been asked to approve a post and how each ask ended (pending, approved, changes_requested, superseded, cancelled). Needs posts:view; client reviewers see only client stage asks.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string","minLength":1}},"required":["id"],"additionalProperties":false}},"required":["workspaceId","path"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/$defs/ReviewRequest"}}},"required":["data"],"$defs":{"ReviewRequest":{"type":"object","properties":{"id":{"type":"string"},"postId":{"type":"string"},"audience":{"type":"string","enum":["team","client"]},"requestedBy":{"type":["string","null"]},"email":{"type":"string"},"userId":{"type":["string","null"]},"invitationId":{"type":["string","null"]},"batchId":{"type":["string","null"]},"message":{"type":["string","null"]},"status":{"type":"string","enum":["pending","approved","changes_requested","superseded","cancelled"]},"respondedAt":{"type":["string","null"],"format":"date-time"},"lastNotifiedAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"reviewerName":{"type":["string","null"]},"reviewerImage":{"type":["string","null"]},"requesterName":{"type":["string","null"]}},"required":["id","postId","audience","requestedBy","email","userId","invitationId","batchId","message","status","respondedAt","lastNotifiedAt","createdAt","updatedAt","reviewerName","reviewerImage","requesterName"]}}}},{"name":"cancel_post_review_request","description":"Withdraw a pending ask for one reviewer; the post stays in review and nobody is emailed. Needs posts:submit_for_approval. Asks inside a review group cannot be withdrawn here.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string","minLength":1},"requestId":{"type":"string","minLength":1}},"required":["id","requestId"],"additionalProperties":false},"idempotencyKey":{"type":"string","maxLength":255,"description":"Reuse this key when retrying the same action."}},"required":["workspaceId","path"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"id":{"type":"string"},"postId":{"type":"string"},"audience":{"type":"string","enum":["team","client"]},"requestedBy":{"type":["string","null"]},"email":{"type":"string"},"userId":{"type":["string","null"]},"invitationId":{"type":["string","null"]},"batchId":{"type":["string","null"]},"message":{"type":["string","null"]},"status":{"type":"string","enum":["pending","approved","changes_requested","superseded","cancelled"]},"respondedAt":{"type":["string","null"],"format":"date-time"},"lastNotifiedAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","postId","audience","requestedBy","email","userId","invitationId","batchId","message","status","respondedAt","lastNotifiedAt","createdAt","updatedAt"]}},{"name":"list_pending_review_requests","description":"List review requests still waiting at their post's current stage, newest first, cursor paginated. Needs posts:view. Grouped requests appear only to their requester and recipients over OAuth; API keys see ungrouped requests.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"query":{"type":"object","properties":{"limit":{"type":"integer","minimum":1,"maximum":100,"default":20},"starting_after":{"type":"string"}},"required":[],"additionalProperties":false}},"required":["workspaceId"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"object":{"type":"string","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/$defs/PendingReviewRequest"}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["object","data","has_more","next_cursor"],"$defs":{"PendingReviewRequest":{"type":"object","properties":{"id":{"type":"string"},"postId":{"type":"string"},"audience":{"type":"string","enum":["team","client"]},"requestedBy":{"type":["string","null"]},"email":{"type":"string"},"userId":{"type":["string","null"]},"invitationId":{"type":["string","null"]},"batchId":{"type":["string","null"]},"message":{"type":["string","null"]},"status":{"type":"string","enum":["pending","approved","changes_requested","superseded","cancelled"]},"respondedAt":{"type":["string","null"],"format":"date-time"},"lastNotifiedAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"reviewerName":{"type":["string","null"]},"reviewerImage":{"type":["string","null"]},"postTitle":{"type":"string"},"postUpdatedAt":{"type":"string","format":"date-time","description":"Pass as expectedUpdatedAt when rescheduling this post."}},"required":["id","postId","audience","requestedBy","email","userId","invitationId","batchId","message","status","respondedAt","lastNotifiedAt","createdAt","updatedAt","reviewerName","reviewerImage","postTitle","postUpdatedAt"]}}}},{"name":"get_review_batch","description":"Read a grouped approval request: its shared note and how many visible posts are still waiting. Needs posts:view and an OAuth connection for the requester or a recipient; API keys are refused.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string","minLength":1}},"required":["id"],"additionalProperties":false}},"required":["workspaceId","path"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"id":{"type":"string"},"message":{"type":["string","null"]},"total":{"type":"integer"},"pending":{"type":"integer"}},"required":["id","message","total","pending"]}},{"name":"remove_post_from_review_batch","description":"Detach one post from a grouped approval request. Its individual asks and decisions stay; repeating is a no-op. Needs posts:submit_for_approval and an OAuth connection for the person who sent the group.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string","minLength":1},"postId":{"type":"string","minLength":1}},"required":["id","postId"],"additionalProperties":false}},"required":["workspaceId","path"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"deleted":{"type":"boolean","description":"True when the record was removed."}},"required":["deleted"],"additionalProperties":false}},{"name":"list_campaigns","description":"List the workspace's campaigns with post counts per status and this month's cadence progress. Filter with a comma-separated `status`. Needs campaigns:view; client-visibility members receive the client view without internal notes.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"query":{"type":"object","properties":{"status":{"type":"string"}},"required":[],"additionalProperties":false}},"required":["workspaceId"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"workspaceId":{"type":"string"},"audience":{"type":"string","enum":["team","client"]},"name":{"type":"string"},"objectiveId":{"type":["string","null"]},"creativeDirection":{"type":["string","null"]},"status":{"type":"string","enum":["draft","active","completed","archived"]},"startAt":{"type":["string","null"],"format":"date-time"},"endAt":{"type":["string","null"],"format":"date-time"},"color":{"type":["string","null"]},"ongoing":{"type":"boolean"},"personaIds":{"type":"array","items":{"type":"string"}},"postCounts":{"type":"object","additionalProperties":{"type":"number"}},"coverImageUrl":{"type":["string","null"]},"internalNotes":{"type":["string","null"]},"monthlyPostTarget":{"type":["integer","null"]},"progressCount":{"type":["integer","null"]},"createdBy":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","workspaceId","audience","name","objectiveId","creativeDirection","status","startAt","endAt","color","ongoing","personaIds","postCounts","coverImageUrl"]}}},"required":["data"]}},{"name":"create_campaign","description":"Create a campaign: a bounded launch (startAt and endAt) or an ongoing theme (no dates plus monthlyPostTarget). Needs campaigns:create and counts against the plan's campaign limit (402 when reached).","annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"body":{"$ref":"#/$defs/CreateCampaignRequest"},"idempotencyKey":{"type":"string","maxLength":255,"description":"Reuse this key when retrying the same action."}},"required":["workspaceId","body"],"additionalProperties":false,"$defs":{"CreateCampaignRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"objectiveId":{"type":["string","null"],"minLength":1},"personaIds":{"type":"array","items":{"type":"string","minLength":1},"maxItems":50,"default":[]},"creativeDirection":{"type":["string","null"],"maxLength":5000},"internalNotes":{"type":["string","null"],"maxLength":5000},"status":{"type":"string","enum":["draft","active","completed","archived"],"default":"draft"},"startAt":{"type":["string","null"],"format":"date-time"},"endAt":{"type":["string","null"],"format":"date-time"},"monthlyPostTarget":{"type":["integer","null"],"minimum":1,"maximum":1000},"color":{"type":["string","null"],"maxLength":32}},"required":["name"]}}},"outputSchema":{"type":"object","properties":{"id":{"type":"string"},"workspaceId":{"type":"string"},"audience":{"type":"string","enum":["team","client"]},"name":{"type":"string"},"objectiveId":{"type":["string","null"]},"creativeDirection":{"type":["string","null"]},"status":{"type":"string","enum":["draft","active","completed","archived"]},"startAt":{"type":["string","null"],"format":"date-time"},"endAt":{"type":["string","null"],"format":"date-time"},"color":{"type":["string","null"]},"ongoing":{"type":"boolean"},"personaIds":{"type":"array","items":{"type":"string"}},"postCounts":{"type":"object","additionalProperties":{"type":"number"}},"coverImageUrl":{"type":["string","null"]},"internalNotes":{"type":["string","null"]},"monthlyPostTarget":{"type":["integer","null"]},"progressCount":{"type":["integer","null"]},"createdBy":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","workspaceId","audience","name","objectiveId","creativeDirection","status","startAt","endAt","color","ongoing","personaIds","postCounts","coverImageUrl"]}},{"name":"get_campaign","description":"Get one campaign's brief: objective, personas, creative direction, dates or monthly target, and post counts. Needs campaigns:view; client-visibility members receive the client view without internal notes.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":false}},"required":["workspaceId","path"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"id":{"type":"string"},"workspaceId":{"type":"string"},"audience":{"type":"string","enum":["team","client"]},"name":{"type":"string"},"objectiveId":{"type":["string","null"]},"creativeDirection":{"type":["string","null"]},"status":{"type":"string","enum":["draft","active","completed","archived"]},"startAt":{"type":["string","null"],"format":"date-time"},"endAt":{"type":["string","null"],"format":"date-time"},"color":{"type":["string","null"]},"ongoing":{"type":"boolean"},"personaIds":{"type":"array","items":{"type":"string"}},"postCounts":{"type":"object","additionalProperties":{"type":"number"}},"coverImageUrl":{"type":["string","null"]},"internalNotes":{"type":["string","null"]},"monthlyPostTarget":{"type":["integer","null"]},"progressCount":{"type":["integer","null"]},"createdBy":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","workspaceId","audience","name","objectiveId","creativeDirection","status","startAt","endAt","color","ongoing","personaIds","postCounts","coverImageUrl"]}},{"name":"update_campaign","description":"Edit a campaign's brief. Omitted fields are left alone and null clears a field. Needs campaigns:update. Use set_campaign_status for status and set_campaign_personas for target personas.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":false},"body":{"$ref":"#/$defs/UpdateCampaignRequest"}},"required":["workspaceId","path","body"],"additionalProperties":false,"$defs":{"UpdateCampaignRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"objectiveId":{"type":["string","null"],"minLength":1},"creativeDirection":{"type":["string","null"],"maxLength":5000},"internalNotes":{"type":["string","null"],"maxLength":5000},"startAt":{"type":["string","null"],"format":"date-time"},"endAt":{"type":["string","null"],"format":"date-time"},"monthlyPostTarget":{"type":["integer","null"],"minimum":1,"maximum":1000},"color":{"type":["string","null"],"maxLength":32}}}}},"outputSchema":{"type":"object","properties":{"id":{"type":"string"},"workspaceId":{"type":"string"},"audience":{"type":"string","enum":["team","client"]},"name":{"type":"string"},"objectiveId":{"type":["string","null"]},"creativeDirection":{"type":["string","null"]},"status":{"type":"string","enum":["draft","active","completed","archived"]},"startAt":{"type":["string","null"],"format":"date-time"},"endAt":{"type":["string","null"],"format":"date-time"},"color":{"type":["string","null"]},"ongoing":{"type":"boolean"},"personaIds":{"type":"array","items":{"type":"string"}},"postCounts":{"type":"object","additionalProperties":{"type":"number"}},"coverImageUrl":{"type":["string","null"]},"internalNotes":{"type":["string","null"]},"monthlyPostTarget":{"type":["integer","null"]},"progressCount":{"type":["integer","null"]},"createdBy":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","workspaceId","audience","name","objectiveId","creativeDirection","status","startAt","endAt","color","ongoing","personaIds","postCounts","coverImageUrl"]}},{"name":"set_campaign_status","description":"Move a campaign between draft, active, completed and archived. Needs campaigns:update, and campaigns:archive to archive. An archived campaign accepts no new deliverables.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":false},"body":{"$ref":"#/$defs/SetCampaignStatusRequest"}},"required":["workspaceId","path","body"],"additionalProperties":false,"$defs":{"SetCampaignStatusRequest":{"type":"object","properties":{"status":{"type":"string","enum":["draft","active","completed","archived"]}},"required":["status"]}}},"outputSchema":{"type":"object","properties":{"id":{"type":"string"},"workspaceId":{"type":"string"},"audience":{"type":"string","enum":["team","client"]},"name":{"type":"string"},"objectiveId":{"type":["string","null"]},"creativeDirection":{"type":["string","null"]},"status":{"type":"string","enum":["draft","active","completed","archived"]},"startAt":{"type":["string","null"],"format":"date-time"},"endAt":{"type":["string","null"],"format":"date-time"},"color":{"type":["string","null"]},"ongoing":{"type":"boolean"},"personaIds":{"type":"array","items":{"type":"string"}},"postCounts":{"type":"object","additionalProperties":{"type":"number"}},"coverImageUrl":{"type":["string","null"]},"internalNotes":{"type":["string","null"]},"monthlyPostTarget":{"type":["integer","null"]},"progressCount":{"type":["integer","null"]},"createdBy":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","workspaceId","audience","name","objectiveId","creativeDirection","status","startAt","endAt","color","ongoing","personaIds","postCounts","coverImageUrl"]}},{"name":"set_campaign_personas","description":"Replace the set of personas a campaign targets with personaIds (find or create them with get_or_create_persona). Needs campaigns:update.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":false},"body":{"$ref":"#/$defs/SetCampaignPersonasRequest"}},"required":["workspaceId","path","body"],"additionalProperties":false,"$defs":{"SetCampaignPersonasRequest":{"type":"object","properties":{"personaIds":{"type":"array","items":{"type":"string","minLength":1},"maxItems":50}},"required":["personaIds"]}}},"outputSchema":{"type":"object","properties":{"campaignId":{"type":"string"},"personaIds":{"type":"array","items":{"type":"string"}}},"required":["campaignId","personaIds"]}},{"name":"get_campaign_results","description":"Campaign performance over the last `days` (default 30, clamped to the plan's analytics retention): comparative findings plus totals, per-post and per-persona reach. available is false when the plan keeps no analytics. Needs campaigns:view; client-visibility members get headline numbers and findings only.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":false},"query":{"type":"object","properties":{"days":{"type":"integer","minimum":1,"maximum":365,"default":30}},"required":[],"additionalProperties":false}},"required":["workspaceId","path"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"campaignId":{"type":"string"},"audience":{"type":"string","enum":["team","client"]},"available":{"type":"boolean"},"findings":{"type":"array","items":{"type":"string"}},"windowDays":{"type":"integer"},"totals":{"type":["object","null"],"properties":{"reach":{"type":"number"},"impressions":{"type":"number"},"likes":{"type":"number"},"comments":{"type":"number"},"shares":{"type":"number"},"saves":{"type":"number"},"clicks":{"type":"number"},"postCount":{"type":"number"}},"required":["reach","impressions","likes","comments","shares","saves","clicks","postCount"]},"posts":{"type":"array","items":{"type":"object","properties":{"postId":{"type":"string"},"body":{"type":"string"},"personaId":{"type":["string","null"]},"reach":{"type":"number"},"engagements":{"type":"number"}},"required":["postId","body","personaId","reach","engagements"]}},"personas":{"type":"array","items":{"type":"object","properties":{"personaId":{"type":"string"},"name":{"type":"string"},"reach":{"type":"number"},"engagements":{"type":"number"},"postCount":{"type":"number"}},"required":["personaId","name","reach","engagements","postCount"]}},"reach":{"type":"number"},"impressions":{"type":"number"},"engagements":{"type":"number"},"postCount":{"type":"number"}},"required":["campaignId","audience","available","findings"]}},{"name":"list_campaign_deliverables","description":"List the posts filed under a campaign with their summary text, status, schedule, persona, platforms and a signed thumbnail URL. Needs posts:view; post statuses the caller may not see are left out.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":false},"query":{"type":"object","properties":{"limit":{"type":"integer","minimum":1,"maximum":500,"default":200}},"required":[],"additionalProperties":false}},"required":["workspaceId","path"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"body":{"type":"string"},"status":{"type":"string","enum":["draft","pending_approval","pending_client_approval","approved","scheduled","delivered","partially_delivered","delivery_failed"]},"scheduledAt":{"type":["string","null"],"format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"personaId":{"type":["string","null"]},"channelIds":{"type":"array","items":{"type":"string"}},"platforms":{"type":"array","items":{"type":"string","enum":["bluesky","discord","facebook","instagram","linkedin","pinterest","threads","tiktok","wordpress","youtube"]}},"thumbnail":{"type":["string","null"]}},"required":["id","body","status","scheduledAt","updatedAt","personaId","channelIds","platforms","thumbnail"]}}},"required":["data"]}},{"name":"add_post_to_campaign","description":"File an existing post under this campaign as a deliverable, moving it out of any other campaign, and optionally set the persona it speaks to. Needs posts:update; the post must still be editable and the campaign not archived.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string"},"postId":{"type":"string"}},"required":["id","postId"],"additionalProperties":false},"body":{"$ref":"#/$defs/AddCampaignPostRequest"}},"required":["workspaceId","path","body"],"additionalProperties":false,"$defs":{"AddCampaignPostRequest":{"type":"object","properties":{"personaId":{"type":["string","null"],"minLength":1}}}}},"outputSchema":{"type":"object","properties":{"postId":{"type":"string"},"campaignId":{"type":["string","null"]},"personaId":{"type":["string","null"]},"status":{"type":"string","enum":["draft","pending_approval","pending_client_approval","approved","scheduled","delivered","partially_delivered","delivery_failed"]}},"required":["postId","campaignId","personaId","status"]}},{"name":"remove_post_from_campaign","description":"Detach a post from this campaign and clear its persona. The post itself is kept. Needs posts:update; answers 404 when the post is not in this campaign.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string"},"postId":{"type":"string"}},"required":["id","postId"],"additionalProperties":false}},"required":["workspaceId","path"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"deleted":{"type":"boolean","description":"True when the record was removed."}},"required":["deleted"],"additionalProperties":false}},{"name":"search_personas","description":"Search the workspace's personas (target audiences) by name, case-insensitively. Archived personas are excluded unless includeArchived is true. Needs campaigns:view.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"query":{"type":"object","properties":{"query":{"type":"string","maxLength":200},"includeArchived":{"type":"string","enum":["true","false"]},"limit":{"type":"integer","minimum":1,"maximum":50,"default":20}},"required":[],"additionalProperties":false}},"required":["workspaceId"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"workspaceId":{"type":"string"},"name":{"type":"string"},"description":{"type":["string","null"]},"color":{"type":["string","null"]},"templateKey":{"type":["string","null"]},"archivedAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","workspaceId","name","description","color","templateKey","archivedAt","createdAt","updatedAt"]}}},"required":["data"]}},{"name":"get_or_create_persona","description":"Return the workspace persona with this name (matched case-insensitively), creating it when none exists. created tells which happened; an existing persona's fields are not changed. Needs campaigns:create.","annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"body":{"$ref":"#/$defs/GetOrCreatePersonaRequest"},"idempotencyKey":{"type":"string","maxLength":255,"description":"Reuse this key when retrying the same action."}},"required":["workspaceId","body"],"additionalProperties":false,"$defs":{"GetOrCreatePersonaRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"description":{"type":["string","null"],"maxLength":5000},"color":{"type":["string","null"],"maxLength":32},"templateKey":{"type":["string","null"],"maxLength":100}},"required":["name"]}}},"outputSchema":{"type":"object","properties":{"persona":{"type":"object","properties":{"id":{"type":"string"},"workspaceId":{"type":"string"},"name":{"type":"string"},"description":{"type":["string","null"]},"color":{"type":["string","null"]},"templateKey":{"type":["string","null"]},"archivedAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","workspaceId","name","description","color","templateKey","archivedAt","createdAt","updatedAt"]},"created":{"type":"boolean"}},"required":["persona","created"]}},{"name":"update_persona","description":"Rename a persona or change its description or color. Needs campaigns:update.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":false},"body":{"$ref":"#/$defs/UpdatePersonaRequest"}},"required":["workspaceId","path","body"],"additionalProperties":false,"$defs":{"UpdatePersonaRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"description":{"type":["string","null"],"maxLength":5000},"color":{"type":["string","null"],"maxLength":32}}}}},"outputSchema":{"type":"object","properties":{"id":{"type":"string"},"workspaceId":{"type":"string"},"name":{"type":"string"},"description":{"type":["string","null"]},"color":{"type":["string","null"]},"templateKey":{"type":["string","null"]},"archivedAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","workspaceId","name","description","color","templateKey","archivedAt","createdAt","updatedAt"]}},{"name":"archive_persona","description":"Archive a persona so pickers stop offering it (archived: false restores it). Existing campaign and post links are kept. Needs campaigns:archive.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":false},"body":{"$ref":"#/$defs/ArchivePersonaRequest"},"idempotencyKey":{"type":"string","maxLength":255,"description":"Reuse this key when retrying the same action."}},"required":["workspaceId","path","body"],"additionalProperties":false,"$defs":{"ArchivePersonaRequest":{"type":"object","properties":{"archived":{"type":"boolean","default":true}}}}},"outputSchema":{"type":"object","properties":{"id":{"type":"string"},"workspaceId":{"type":"string"},"name":{"type":"string"},"description":{"type":["string","null"]},"color":{"type":["string","null"]},"templateKey":{"type":["string","null"]},"archivedAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","workspaceId","name","description","color","templateKey","archivedAt","createdAt","updatedAt"]}},{"name":"search_objectives","description":"Search the workspace's campaign objectives by name, case-insensitively. Archived objectives are excluded unless includeArchived is true. Needs campaigns:view.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"query":{"type":"object","properties":{"query":{"type":"string","maxLength":200},"includeArchived":{"type":"string","enum":["true","false"]},"limit":{"type":"integer","minimum":1,"maximum":50,"default":20}},"required":[],"additionalProperties":false}},"required":["workspaceId"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"workspaceId":{"type":"string"},"name":{"type":"string"},"description":{"type":["string","null"]},"targetMetricKey":{"type":["string","null"]},"targetValue":{"type":["integer","null"]},"templateKey":{"type":["string","null"]},"archivedAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","workspaceId","name","description","targetMetricKey","targetValue","templateKey","archivedAt","createdAt","updatedAt"]}}},"required":["data"]}},{"name":"get_or_create_objective","description":"Return the workspace objective with this name (matched case-insensitively), creating it when none exists. created tells which happened; an existing objective's fields are not changed. Needs campaigns:create.","annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"body":{"$ref":"#/$defs/GetOrCreateObjectiveRequest"},"idempotencyKey":{"type":"string","maxLength":255,"description":"Reuse this key when retrying the same action."}},"required":["workspaceId","body"],"additionalProperties":false,"$defs":{"GetOrCreateObjectiveRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"description":{"type":["string","null"],"maxLength":5000},"targetMetricKey":{"type":["string","null"],"maxLength":100},"targetValue":{"type":["integer","null"],"minimum":0},"templateKey":{"type":["string","null"],"maxLength":100}},"required":["name"]}}},"outputSchema":{"type":"object","properties":{"objective":{"type":"object","properties":{"id":{"type":"string"},"workspaceId":{"type":"string"},"name":{"type":"string"},"description":{"type":["string","null"]},"targetMetricKey":{"type":["string","null"]},"targetValue":{"type":["integer","null"]},"templateKey":{"type":["string","null"]},"archivedAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","workspaceId","name","description","targetMetricKey","targetValue","templateKey","archivedAt","createdAt","updatedAt"]},"created":{"type":"boolean"}},"required":["objective","created"]}},{"name":"update_objective","description":"Rename an objective or change its description, target metric or target value. Needs campaigns:update.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":false},"body":{"$ref":"#/$defs/UpdateObjectiveRequest"}},"required":["workspaceId","path","body"],"additionalProperties":false,"$defs":{"UpdateObjectiveRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"description":{"type":["string","null"],"maxLength":5000},"targetMetricKey":{"type":["string","null"],"maxLength":100},"targetValue":{"type":["integer","null"],"minimum":0}}}}},"outputSchema":{"type":"object","properties":{"id":{"type":"string"},"workspaceId":{"type":"string"},"name":{"type":"string"},"description":{"type":["string","null"]},"targetMetricKey":{"type":["string","null"]},"targetValue":{"type":["integer","null"]},"templateKey":{"type":["string","null"]},"archivedAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","workspaceId","name","description","targetMetricKey","targetValue","templateKey","archivedAt","createdAt","updatedAt"]}},{"name":"archive_objective","description":"Archive an objective so pickers stop offering it (archived: false restores it). Campaigns pointing at it are kept. Needs campaigns:archive.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":false},"body":{"$ref":"#/$defs/ArchiveObjectiveRequest"},"idempotencyKey":{"type":"string","maxLength":255,"description":"Reuse this key when retrying the same action."}},"required":["workspaceId","path","body"],"additionalProperties":false,"$defs":{"ArchiveObjectiveRequest":{"type":"object","properties":{"archived":{"type":"boolean","default":true}}}}},"outputSchema":{"type":"object","properties":{"id":{"type":"string"},"workspaceId":{"type":"string"},"name":{"type":"string"},"description":{"type":["string","null"]},"targetMetricKey":{"type":["string","null"]},"targetValue":{"type":["integer","null"]},"templateKey":{"type":["string","null"]},"archivedAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","workspaceId","name","description","targetMetricKey","targetValue","templateKey","archivedAt","createdAt","updatedAt"]}},{"name":"list_client_shares","description":"List the workspace's client review links (workspace, post or campaign scoped) without their tokens. Revoked links are left out unless includeRevoked is true. Needs campaigns:update.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"query":{"type":"object","properties":{"includeRevoked":{"type":"string","enum":["true","false"]}},"required":[],"additionalProperties":false}},"required":["workspaceId"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"workspaceId":{"type":"string"},"scope":{"type":"string","enum":["workspace","post","campaign"]},"subjectIds":{"type":["array","null"],"items":{"type":"string"}},"label":{"type":["string","null"]},"email":{"type":["string","null"]},"expiresAt":{"type":["string","null"],"format":"date-time"},"revokedAt":{"type":["string","null"],"format":"date-time"},"lastUsedAt":{"type":["string","null"],"format":"date-time"},"createdBy":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"},"revoked":{"type":"boolean"},"expired":{"type":"boolean"}},"required":["id","workspaceId","scope","subjectIds","label","email","expiresAt","revokedAt","lastUsedAt","createdBy","createdAt","revoked","expired"]}}},"required":["data"]}},{"name":"create_client_share","description":"Create a public review link that lets anyone holding it read client-visible posts: the whole workspace, the posts in subjectIds (scope post) or one campaign's deliverables and brief (scope campaign, agency organizations only). The url and token are returned only in this response. Needs campaigns:update; sends no email.","annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"body":{"$ref":"#/$defs/CreateClientShareRequest"},"idempotencyKey":{"type":"string","maxLength":255,"description":"Reuse this key when retrying the same action."}},"required":["workspaceId","body"],"additionalProperties":false,"$defs":{"CreateClientShareRequest":{"type":"object","properties":{"scope":{"type":"string","enum":["workspace","post","campaign"]},"subjectIds":{"type":"array","items":{"type":"string","minLength":1},"maxItems":100},"label":{"type":"string","maxLength":200},"email":{"type":"string","maxLength":320},"expiresAt":{"type":["string","null"],"format":"date-time"}},"required":["scope"]}}},"outputSchema":{"type":"object","properties":{"id":{"type":"string"},"workspaceId":{"type":"string"},"scope":{"type":"string","enum":["workspace","post","campaign"]},"subjectIds":{"type":["array","null"],"items":{"type":"string"}},"label":{"type":["string","null"]},"email":{"type":["string","null"]},"expiresAt":{"type":["string","null"],"format":"date-time"},"revokedAt":{"type":["string","null"],"format":"date-time"},"lastUsedAt":{"type":["string","null"],"format":"date-time"},"createdBy":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"},"revoked":{"type":"boolean"},"expired":{"type":"boolean"},"token":{"type":"string"},"url":{"type":"string"}},"required":["id","workspaceId","scope","subjectIds","label","email","expiresAt","revokedAt","lastUsedAt","createdBy","createdAt","revoked","expired","token","url"]}},{"name":"revoke_client_share","description":"Revoke a client review link so it stops working at once. Revoking cannot be undone; issue a new link instead. Needs campaigns:update.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":false}},"required":["workspaceId","path"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"deleted":{"type":"boolean","description":"True when the record was removed."}},"required":["deleted"],"additionalProperties":false}},{"name":"list_questionnaires","description":"List the workspace's client questionnaires (onboarding forms) with link and response counts, without their question definitions. Archived ones are left out unless includeArchived is true. Requires questionnaires:view.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"query":{"type":"object","properties":{"includeArchived":{"type":"string","enum":["true","false"]}},"required":[],"additionalProperties":false}},"required":["workspaceId"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/$defs/QuestionnaireSummary"}}},"required":["data"],"$defs":{"QuestionnaireSummary":{"type":"object","properties":{"id":{"type":"string"},"workspaceId":{"type":"string"},"templateId":{"type":["string","null"]},"templateVersion":{"type":["integer","null"]},"name":{"type":"string"},"description":{"type":["string","null"]},"definitionVersion":{"type":"integer"},"status":{"type":"string","enum":["draft","active","archived"]},"createdBy":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"sectionCount":{"type":"integer"},"questionCount":{"type":"integer"},"linkCount":{"type":"integer"},"responseCount":{"type":"integer"}},"required":["id","workspaceId","templateId","templateVersion","name","description","definitionVersion","status","createdBy","createdAt","updatedAt","sectionCount","questionCount","linkCount","responseCount"]}}}},{"name":"create_questionnaire","description":"Create a draft questionnaire in the workspace, blank or copied from one of the organization's templates (templateId from list_questionnaire_templates). Counts against the plan's questionnaire limit and needs an agency organization. Requires questionnaires:create.","annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"body":{"$ref":"#/$defs/CreateQuestionnaireRequest"},"idempotencyKey":{"type":"string","maxLength":255,"description":"Reuse this key when retrying the same action."}},"required":["workspaceId","body"],"additionalProperties":false,"$defs":{"CreateQuestionnaireRequest":{"type":"object","properties":{"templateId":{"type":["string","null"],"minLength":1},"name":{"type":"string","minLength":1,"maxLength":200}}}}},"outputSchema":{"type":"object","properties":{"id":{"type":"string"},"workspaceId":{"type":"string"},"templateId":{"type":["string","null"]},"templateVersion":{"type":["integer","null"]},"name":{"type":"string"},"description":{"type":["string","null"]},"definitionVersion":{"type":"integer"},"status":{"type":"string","enum":["draft","active","archived"]},"createdBy":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"sectionCount":{"type":"integer"},"questionCount":{"type":"integer"},"linkCount":{"type":"integer"},"responseCount":{"type":"integer"},"definition":{"$ref":"#/$defs/QuestionnaireDefinition"}},"required":["id","workspaceId","templateId","templateVersion","name","description","definitionVersion","status","createdBy","createdAt","updatedAt","sectionCount","questionCount","linkCount","responseCount","definition"],"$defs":{"QuestionnaireDefinition":{"type":"object","properties":{"version":{"type":"number","enum":[1]},"intro":{"type":"object","properties":{"heading":{"type":"string","minLength":1,"maxLength":300},"body":{"type":"string","maxLength":2000}},"required":["heading"],"additionalProperties":false},"sections":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"title":{"type":"string","minLength":1,"maxLength":300},"description":{"type":"string","maxLength":2000},"blocks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["short_text"]},"maxLength":{"type":"integer","minimum":1,"maximum":500,"default":200}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["long_text"]},"maxLength":{"type":"integer","minimum":1,"maximum":10000,"default":5000}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["email"]}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["url"]}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["url_list"]},"maxItems":{"type":"integer","minimum":1,"maximum":50,"default":10}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["number"]},"min":{"type":"number"},"max":{"type":"number"}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["date"]}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["single_choice"]},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300}},"required":["id","label"],"additionalProperties":false},"minItems":2,"maxItems":50},"allowOther":{"type":"boolean","default":false}},"required":["id","label","kind","options"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["multi_choice"]},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300}},"required":["id","label"],"additionalProperties":false},"minItems":2,"maxItems":50},"allowOther":{"type":"boolean","default":false}},"required":["id","label","kind","options"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["dropdown"]},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300}},"required":["id","label"],"additionalProperties":false},"minItems":2,"maxItems":50}},"required":["id","label","kind","options"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["yes_no"]}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["scale"]},"min":{"type":"integer","default":1},"max":{"type":"integer","default":5},"minLabel":{"type":"string","maxLength":60},"maxLabel":{"type":"string","maxLength":60}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["color_list"]},"maxItems":{"type":"integer","minimum":1,"maximum":12,"default":6}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["file_upload"]},"accept":{"type":"array","items":{"type":"string","minLength":1},"minItems":1,"maxItems":20},"maxFiles":{"type":"integer","minimum":1,"maximum":20,"default":5}},"required":["id","label","kind","accept"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["statement"]},"body":{"type":"string","maxLength":2000},"confirmLabel":{"type":"string","maxLength":300}},"required":["id","label","kind","body"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["connect_channels"]},"platforms":{"type":"array","items":{"type":"string","enum":["bluesky","discord","facebook","instagram","linkedin","pinterest","threads","tiktok","wordpress","youtube"]},"minItems":1},"minimum":{"type":"integer","minimum":0,"default":0}},"required":["id","label","kind","platforms"],"additionalProperties":false}]},"maxItems":50}},"required":["id","title","blocks"],"additionalProperties":false},"minItems":1,"maxItems":20},"outro":{"type":"object","properties":{"heading":{"type":"string","minLength":1,"maxLength":300},"body":{"type":"string","maxLength":2000}},"required":["heading"],"additionalProperties":false}},"required":["version","intro","sections","outro"],"additionalProperties":false}}}},{"name":"get_questionnaire","description":"Get one questionnaire with its full definition (sections and question blocks), every link sent for it and a summary of each response. Requires questionnaires:view.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string","minLength":1}},"required":["id"],"additionalProperties":false}},"required":["workspaceId","path"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"questionnaire":{"$ref":"#/$defs/Questionnaire"},"links":{"type":"array","items":{"$ref":"#/$defs/QuestionnaireLink"}},"responses":{"type":"array","items":{"$ref":"#/$defs/QuestionnaireResponseSummary"}},"delegatedConnectAvailable":{"type":"boolean"}},"required":["questionnaire","links","responses","delegatedConnectAvailable"],"$defs":{"QuestionnaireResponseSummary":{"type":"object","properties":{"id":{"type":"string"},"linkId":{"type":"string"},"status":{"type":"string","enum":["draft","submitted","applied"]},"respondentName":{"type":["string","null"]},"respondentEmail":{"type":["string","null"]},"startedAt":{"type":"string","format":"date-time"},"submittedAt":{"type":["string","null"],"format":"date-time"},"appliedAt":{"type":["string","null"],"format":"date-time"}},"required":["id","linkId","status","respondentName","respondentEmail","startedAt","submittedAt","appliedAt"]},"QuestionnaireLink":{"type":"object","properties":{"id":{"type":"string"},"questionnaireId":{"type":"string"},"workspaceId":{"type":"string"},"recipientEmail":{"type":["string","null"]},"recipientName":{"type":["string","null"]},"note":{"type":["string","null"]},"expiresAt":{"type":"string","format":"date-time"},"revokedAt":{"type":["string","null"],"format":"date-time"},"lastUsedAt":{"type":["string","null"],"format":"date-time"},"reminderDays":{"type":"array","items":{"type":"integer","minimum":1,"maximum":60},"maxItems":5},"lastReminderAt":{"type":["string","null"],"format":"date-time"},"createdBy":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"},"definitionVersion":{"type":"integer"},"state":{"type":"string","enum":["open","submitted","revoked","expired"]}},"required":["id","questionnaireId","workspaceId","recipientEmail","recipientName","note","expiresAt","revokedAt","lastUsedAt","reminderDays","lastReminderAt","createdBy","createdAt","definitionVersion","state"]},"Questionnaire":{"type":"object","properties":{"id":{"type":"string"},"workspaceId":{"type":"string"},"templateId":{"type":["string","null"]},"templateVersion":{"type":["integer","null"]},"name":{"type":"string"},"description":{"type":["string","null"]},"definitionVersion":{"type":"integer"},"status":{"type":"string","enum":["draft","active","archived"]},"createdBy":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"sectionCount":{"type":"integer"},"questionCount":{"type":"integer"},"linkCount":{"type":"integer"},"responseCount":{"type":"integer"},"definition":{"$ref":"#/$defs/QuestionnaireDefinition"}},"required":["id","workspaceId","templateId","templateVersion","name","description","definitionVersion","status","createdBy","createdAt","updatedAt","sectionCount","questionCount","linkCount","responseCount","definition"]},"QuestionnaireDefinition":{"type":"object","properties":{"version":{"type":"number","enum":[1]},"intro":{"type":"object","properties":{"heading":{"type":"string","minLength":1,"maxLength":300},"body":{"type":"string","maxLength":2000}},"required":["heading"],"additionalProperties":false},"sections":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"title":{"type":"string","minLength":1,"maxLength":300},"description":{"type":"string","maxLength":2000},"blocks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["short_text"]},"maxLength":{"type":"integer","minimum":1,"maximum":500,"default":200}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["long_text"]},"maxLength":{"type":"integer","minimum":1,"maximum":10000,"default":5000}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["email"]}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["url"]}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["url_list"]},"maxItems":{"type":"integer","minimum":1,"maximum":50,"default":10}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["number"]},"min":{"type":"number"},"max":{"type":"number"}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["date"]}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["single_choice"]},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300}},"required":["id","label"],"additionalProperties":false},"minItems":2,"maxItems":50},"allowOther":{"type":"boolean","default":false}},"required":["id","label","kind","options"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["multi_choice"]},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300}},"required":["id","label"],"additionalProperties":false},"minItems":2,"maxItems":50},"allowOther":{"type":"boolean","default":false}},"required":["id","label","kind","options"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["dropdown"]},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300}},"required":["id","label"],"additionalProperties":false},"minItems":2,"maxItems":50}},"required":["id","label","kind","options"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["yes_no"]}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["scale"]},"min":{"type":"integer","default":1},"max":{"type":"integer","default":5},"minLabel":{"type":"string","maxLength":60},"maxLabel":{"type":"string","maxLength":60}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["color_list"]},"maxItems":{"type":"integer","minimum":1,"maximum":12,"default":6}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["file_upload"]},"accept":{"type":"array","items":{"type":"string","minLength":1},"minItems":1,"maxItems":20},"maxFiles":{"type":"integer","minimum":1,"maximum":20,"default":5}},"required":["id","label","kind","accept"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["statement"]},"body":{"type":"string","maxLength":2000},"confirmLabel":{"type":"string","maxLength":300}},"required":["id","label","kind","body"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["connect_channels"]},"platforms":{"type":"array","items":{"type":"string","enum":["bluesky","discord","facebook","instagram","linkedin","pinterest","threads","tiktok","wordpress","youtube"]},"minItems":1},"minimum":{"type":"integer","minimum":0,"default":0}},"required":["id","label","kind","platforms"],"additionalProperties":false}]},"maxItems":50}},"required":["id","title","blocks"],"additionalProperties":false},"minItems":1,"maxItems":20},"outro":{"type":"object","properties":{"heading":{"type":"string","minLength":1,"maxLength":300},"body":{"type":"string","maxLength":2000}},"required":["heading"],"additionalProperties":false}},"required":["version","intro","sections","outro"],"additionalProperties":false}}}},{"name":"update_questionnaire","description":"Rename a questionnaire, change its description, or replace its whole definition (intro, sections of question blocks, outro). Links already sent keep the form they were sent with. Archived questionnaires cannot be edited. Requires questionnaires:update.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string","minLength":1}},"required":["id"],"additionalProperties":false},"body":{"$ref":"#/$defs/UpdateQuestionnaireRequest"}},"required":["workspaceId","path","body"],"additionalProperties":false,"$defs":{"UpdateQuestionnaireRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"description":{"type":["string","null"],"maxLength":2000},"definition":{"$ref":"#/$defs/QuestionnaireDefinition"}}},"QuestionnaireDefinition":{"type":"object","properties":{"version":{"type":"number","enum":[1]},"intro":{"type":"object","properties":{"heading":{"type":"string","minLength":1,"maxLength":300},"body":{"type":"string","maxLength":2000}},"required":["heading"],"additionalProperties":false},"sections":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"title":{"type":"string","minLength":1,"maxLength":300},"description":{"type":"string","maxLength":2000},"blocks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["short_text"]},"maxLength":{"type":"integer","minimum":1,"maximum":500,"default":200}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["long_text"]},"maxLength":{"type":"integer","minimum":1,"maximum":10000,"default":5000}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["email"]}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["url"]}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["url_list"]},"maxItems":{"type":"integer","minimum":1,"maximum":50,"default":10}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["number"]},"min":{"type":"number"},"max":{"type":"number"}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["date"]}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["single_choice"]},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300}},"required":["id","label"],"additionalProperties":false},"minItems":2,"maxItems":50},"allowOther":{"type":"boolean","default":false}},"required":["id","label","kind","options"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["multi_choice"]},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300}},"required":["id","label"],"additionalProperties":false},"minItems":2,"maxItems":50},"allowOther":{"type":"boolean","default":false}},"required":["id","label","kind","options"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["dropdown"]},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300}},"required":["id","label"],"additionalProperties":false},"minItems":2,"maxItems":50}},"required":["id","label","kind","options"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["yes_no"]}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["scale"]},"min":{"type":"integer","default":1},"max":{"type":"integer","default":5},"minLabel":{"type":"string","maxLength":60},"maxLabel":{"type":"string","maxLength":60}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["color_list"]},"maxItems":{"type":"integer","minimum":1,"maximum":12,"default":6}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["file_upload"]},"accept":{"type":"array","items":{"type":"string","minLength":1},"minItems":1,"maxItems":20},"maxFiles":{"type":"integer","minimum":1,"maximum":20,"default":5}},"required":["id","label","kind","accept"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["statement"]},"body":{"type":"string","maxLength":2000},"confirmLabel":{"type":"string","maxLength":300}},"required":["id","label","kind","body"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["connect_channels"]},"platforms":{"type":"array","items":{"type":"string","enum":["bluesky","discord","facebook","instagram","linkedin","pinterest","threads","tiktok","wordpress","youtube"]},"minItems":1},"minimum":{"type":"integer","minimum":0,"default":0}},"required":["id","label","kind","platforms"],"additionalProperties":false}]},"maxItems":50}},"required":["id","title","blocks"],"additionalProperties":false},"minItems":1,"maxItems":20},"outro":{"type":"object","properties":{"heading":{"type":"string","minLength":1,"maxLength":300},"body":{"type":"string","maxLength":2000}},"required":["heading"],"additionalProperties":false}},"required":["version","intro","sections","outro"],"additionalProperties":false}}},"outputSchema":{"type":"object","properties":{"id":{"type":"string"},"workspaceId":{"type":"string"},"templateId":{"type":["string","null"]},"templateVersion":{"type":["integer","null"]},"name":{"type":"string"},"description":{"type":["string","null"]},"definitionVersion":{"type":"integer"},"status":{"type":"string","enum":["draft","active","archived"]},"createdBy":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"sectionCount":{"type":"integer"},"questionCount":{"type":"integer"},"linkCount":{"type":"integer"},"responseCount":{"type":"integer"},"definition":{"$ref":"#/$defs/QuestionnaireDefinition"}},"required":["id","workspaceId","templateId","templateVersion","name","description","definitionVersion","status","createdBy","createdAt","updatedAt","sectionCount","questionCount","linkCount","responseCount","definition"],"$defs":{"QuestionnaireDefinition":{"type":"object","properties":{"version":{"type":"number","enum":[1]},"intro":{"type":"object","properties":{"heading":{"type":"string","minLength":1,"maxLength":300},"body":{"type":"string","maxLength":2000}},"required":["heading"],"additionalProperties":false},"sections":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"title":{"type":"string","minLength":1,"maxLength":300},"description":{"type":"string","maxLength":2000},"blocks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["short_text"]},"maxLength":{"type":"integer","minimum":1,"maximum":500,"default":200}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["long_text"]},"maxLength":{"type":"integer","minimum":1,"maximum":10000,"default":5000}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["email"]}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["url"]}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["url_list"]},"maxItems":{"type":"integer","minimum":1,"maximum":50,"default":10}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["number"]},"min":{"type":"number"},"max":{"type":"number"}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["date"]}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["single_choice"]},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300}},"required":["id","label"],"additionalProperties":false},"minItems":2,"maxItems":50},"allowOther":{"type":"boolean","default":false}},"required":["id","label","kind","options"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["multi_choice"]},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300}},"required":["id","label"],"additionalProperties":false},"minItems":2,"maxItems":50},"allowOther":{"type":"boolean","default":false}},"required":["id","label","kind","options"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["dropdown"]},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300}},"required":["id","label"],"additionalProperties":false},"minItems":2,"maxItems":50}},"required":["id","label","kind","options"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["yes_no"]}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["scale"]},"min":{"type":"integer","default":1},"max":{"type":"integer","default":5},"minLabel":{"type":"string","maxLength":60},"maxLabel":{"type":"string","maxLength":60}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["color_list"]},"maxItems":{"type":"integer","minimum":1,"maximum":12,"default":6}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["file_upload"]},"accept":{"type":"array","items":{"type":"string","minLength":1},"minItems":1,"maxItems":20},"maxFiles":{"type":"integer","minimum":1,"maximum":20,"default":5}},"required":["id","label","kind","accept"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["statement"]},"body":{"type":"string","maxLength":2000},"confirmLabel":{"type":"string","maxLength":300}},"required":["id","label","kind","body"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["connect_channels"]},"platforms":{"type":"array","items":{"type":"string","enum":["bluesky","discord","facebook","instagram","linkedin","pinterest","threads","tiktok","wordpress","youtube"]},"minItems":1},"minimum":{"type":"integer","minimum":0,"default":0}},"required":["id","label","kind","platforms"],"additionalProperties":false}]},"maxItems":50}},"required":["id","title","blocks"],"additionalProperties":false},"minItems":1,"maxItems":20},"outro":{"type":"object","properties":{"heading":{"type":"string","minLength":1,"maxLength":300},"body":{"type":"string","maxLength":2000}},"required":["heading"],"additionalProperties":false}},"required":["version","intro","sections","outro"],"additionalProperties":false}}}},{"name":"set_questionnaire_status","description":"Set a questionnaire to draft, active (it can be sent) or archived. Archiving stops every link already sent for it from opening; restoring an archived one counts against the plan's questionnaire limit again. Requires questionnaires:update.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string","minLength":1}},"required":["id"],"additionalProperties":false},"body":{"$ref":"#/$defs/SetQuestionnaireStatusRequest"},"idempotencyKey":{"type":"string","maxLength":255,"description":"Reuse this key when retrying the same action."}},"required":["workspaceId","path","body"],"additionalProperties":false,"$defs":{"SetQuestionnaireStatusRequest":{"type":"object","properties":{"status":{"type":"string","enum":["draft","active","archived"]}},"required":["status"]}}},"outputSchema":{"type":"object","properties":{"id":{"type":"string"},"workspaceId":{"type":"string"},"templateId":{"type":["string","null"]},"templateVersion":{"type":["integer","null"]},"name":{"type":"string"},"description":{"type":["string","null"]},"definitionVersion":{"type":"integer"},"status":{"type":"string","enum":["draft","active","archived"]},"createdBy":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"sectionCount":{"type":"integer"},"questionCount":{"type":"integer"},"linkCount":{"type":"integer"},"responseCount":{"type":"integer"},"definition":{"$ref":"#/$defs/QuestionnaireDefinition"}},"required":["id","workspaceId","templateId","templateVersion","name","description","definitionVersion","status","createdBy","createdAt","updatedAt","sectionCount","questionCount","linkCount","responseCount","definition"],"$defs":{"QuestionnaireDefinition":{"type":"object","properties":{"version":{"type":"number","enum":[1]},"intro":{"type":"object","properties":{"heading":{"type":"string","minLength":1,"maxLength":300},"body":{"type":"string","maxLength":2000}},"required":["heading"],"additionalProperties":false},"sections":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"title":{"type":"string","minLength":1,"maxLength":300},"description":{"type":"string","maxLength":2000},"blocks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["short_text"]},"maxLength":{"type":"integer","minimum":1,"maximum":500,"default":200}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["long_text"]},"maxLength":{"type":"integer","minimum":1,"maximum":10000,"default":5000}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["email"]}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["url"]}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["url_list"]},"maxItems":{"type":"integer","minimum":1,"maximum":50,"default":10}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["number"]},"min":{"type":"number"},"max":{"type":"number"}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["date"]}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["single_choice"]},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300}},"required":["id","label"],"additionalProperties":false},"minItems":2,"maxItems":50},"allowOther":{"type":"boolean","default":false}},"required":["id","label","kind","options"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["multi_choice"]},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300}},"required":["id","label"],"additionalProperties":false},"minItems":2,"maxItems":50},"allowOther":{"type":"boolean","default":false}},"required":["id","label","kind","options"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["dropdown"]},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300}},"required":["id","label"],"additionalProperties":false},"minItems":2,"maxItems":50}},"required":["id","label","kind","options"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["yes_no"]}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["scale"]},"min":{"type":"integer","default":1},"max":{"type":"integer","default":5},"minLabel":{"type":"string","maxLength":60},"maxLabel":{"type":"string","maxLength":60}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["color_list"]},"maxItems":{"type":"integer","minimum":1,"maximum":12,"default":6}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["file_upload"]},"accept":{"type":"array","items":{"type":"string","minLength":1},"minItems":1,"maxItems":20},"maxFiles":{"type":"integer","minimum":1,"maximum":20,"default":5}},"required":["id","label","kind","accept"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["statement"]},"body":{"type":"string","maxLength":2000},"confirmLabel":{"type":"string","maxLength":300}},"required":["id","label","kind","body"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["connect_channels"]},"platforms":{"type":"array","items":{"type":"string","enum":["bluesky","discord","facebook","instagram","linkedin","pinterest","threads","tiktok","wordpress","youtube"]},"minItems":1},"minimum":{"type":"integer","minimum":0,"default":0}},"required":["id","label","kind","platforms"],"additionalProperties":false}]},"maxItems":50}},"required":["id","title","blocks"],"additionalProperties":false},"minItems":1,"maxItems":20},"outro":{"type":"object","properties":{"heading":{"type":"string","minLength":1,"maxLength":300},"body":{"type":"string","maxLength":2000}},"required":["heading"],"additionalProperties":false}},"required":["version","intro","sections","outro"],"additionalProperties":false}}}},{"name":"list_questionnaire_links","description":"List the links sent for a questionnaire, each with its state (open, submitted, revoked or expired). The link URL itself is never returned again after create_questionnaire_link. Requires questionnaires:view.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string","minLength":1}},"required":["id"],"additionalProperties":false}},"required":["workspaceId","path"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/$defs/QuestionnaireLink"}}},"required":["data"],"$defs":{"QuestionnaireLink":{"type":"object","properties":{"id":{"type":"string"},"questionnaireId":{"type":"string"},"workspaceId":{"type":"string"},"recipientEmail":{"type":["string","null"]},"recipientName":{"type":["string","null"]},"note":{"type":["string","null"]},"expiresAt":{"type":"string","format":"date-time"},"revokedAt":{"type":["string","null"],"format":"date-time"},"lastUsedAt":{"type":["string","null"],"format":"date-time"},"reminderDays":{"type":"array","items":{"type":"integer","minimum":1,"maximum":60},"maxItems":5},"lastReminderAt":{"type":["string","null"],"format":"date-time"},"createdBy":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"},"definitionVersion":{"type":"integer"},"state":{"type":"string","enum":["open","submitted","revoked","expired"]}},"required":["id","questionnaireId","workspaceId","recipientEmail","recipientName","note","expiresAt","revokedAt","lastUsedAt","reminderDays","lastReminderAt","createdBy","createdAt","definitionVersion","state"]}}}},{"name":"create_questionnaire_link","description":"Create a public link a client opens to fill in an active questionnaire, without an account. The response carries the URL exactly once: share it with the client yourself, because this API sends no email and the URL cannot be fetched again. Requires questionnaires:send.","annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string","minLength":1}},"required":["id"],"additionalProperties":false},"body":{"$ref":"#/$defs/CreateQuestionnaireLinkRequest"},"idempotencyKey":{"type":"string","maxLength":255,"description":"Reuse this key when retrying the same action."}},"required":["workspaceId","path","body"],"additionalProperties":false,"$defs":{"CreateQuestionnaireLinkRequest":{"type":"object","properties":{"recipientName":{"type":["string","null"],"maxLength":200},"note":{"type":["string","null"],"maxLength":2000},"expiresAt":{"type":"string","format":"date-time","description":"Defaults to 30 days from now; capped at 180 days."}},"additionalProperties":false}}},"outputSchema":{"type":"object","properties":{"id":{"type":"string"},"questionnaireId":{"type":"string"},"workspaceId":{"type":"string"},"recipientEmail":{"type":["string","null"]},"recipientName":{"type":["string","null"]},"note":{"type":["string","null"]},"expiresAt":{"type":"string","format":"date-time"},"revokedAt":{"type":["string","null"],"format":"date-time"},"lastUsedAt":{"type":["string","null"],"format":"date-time"},"reminderDays":{"type":"array","items":{"type":"integer","minimum":1,"maximum":60},"maxItems":5},"lastReminderAt":{"type":["string","null"],"format":"date-time"},"createdBy":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"},"definitionVersion":{"type":"integer"},"state":{"type":"string","enum":["open","submitted","revoked","expired"]},"url":{"type":"string","format":"uri","description":"The public form. Returned only here: Posty stores a hash of the token, so the URL cannot be fetched again."}},"required":["id","questionnaireId","workspaceId","recipientEmail","recipientName","note","expiresAt","revokedAt","lastUsedAt","reminderDays","lastReminderAt","createdBy","createdAt","definitionVersion","state","url"]}},{"name":"revoke_questionnaire_link","description":"Revoke a questionnaire link so the client can no longer open it. A response the client already submitted is kept. Requires questionnaires:send.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string","minLength":1}},"required":["id"],"additionalProperties":false}},"required":["workspaceId","path"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"deleted":{"type":"boolean","description":"True when the record was removed."}},"required":["deleted"],"additionalProperties":false}},{"name":"list_questionnaire_responses","description":"List the responses to a questionnaire: who answered, and whether each is a draft in progress, submitted or applied. Read the answers with get_questionnaire_response. Requires questionnaires:view.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string","minLength":1}},"required":["id"],"additionalProperties":false}},"required":["workspaceId","path"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/$defs/QuestionnaireResponseSummary"}}},"required":["data"],"$defs":{"QuestionnaireResponseSummary":{"type":"object","properties":{"id":{"type":"string"},"linkId":{"type":"string"},"status":{"type":"string","enum":["draft","submitted","applied"]},"respondentName":{"type":["string","null"]},"respondentEmail":{"type":["string","null"]},"startedAt":{"type":"string","format":"date-time"},"submittedAt":{"type":["string","null"],"format":"date-time"},"appliedAt":{"type":["string","null"],"format":"date-time"}},"required":["id","linkId","status","respondentName","respondentEmail","startedAt","submittedAt","appliedAt"]}}}},{"name":"export_questionnaire_responses","description":"Every submitted response to a questionnaire as a table: one column per question, one row per respondent, each answer as text. A question added after a link was sent is an empty cell for that respondent. Requires questionnaires:view.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string","minLength":1}},"required":["id"],"additionalProperties":false}},"required":["workspaceId","path"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"columns":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"}},"required":["id","label"]}},"rows":{"type":"array","items":{"type":"object","properties":{"respondentName":{"type":["string","null"]},"respondentEmail":{"type":["string","null"]},"submittedAt":{"type":["string","null"],"format":"date-time"},"cells":{"type":"array","items":{"type":"string"}}},"required":["respondentName","respondentEmail","submittedAt","cells"]}}},"required":["columns","rows"]}},{"name":"get_questionnaire_response","description":"Get one questionnaire response: its answers keyed by question id, the form exactly as it was sent, signed download URLs for uploaded files, the channels the client connected, and what has been applied. Requires questionnaires:view.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string","minLength":1}},"required":["id"],"additionalProperties":false}},"required":["workspaceId","path"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"response":{"$ref":"#/$defs/QuestionnaireResponse"},"media":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":["string","null"]},"title":{"type":"string"},"contentType":{"type":"string"}},"required":["id","url","title","contentType"]}},"channels":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"provider":{"type":"string","enum":["bluesky","discord","facebook","instagram","linkedin","pinterest","threads","tiktok","wordpress","youtube"]},"name":{"type":"string"},"avatarUrl":{"type":["string","null"]},"connectedHere":{"type":"boolean"}},"required":["id","provider","name","avatarUrl","connectedHere"]}}},"required":["response","media","channels"],"$defs":{"QuestionnaireResponse":{"type":"object","properties":{"id":{"type":"string"},"linkId":{"type":"string"},"status":{"type":"string","enum":["draft","submitted","applied"]},"respondentName":{"type":["string","null"]},"respondentEmail":{"type":["string","null"]},"startedAt":{"type":"string","format":"date-time"},"submittedAt":{"type":["string","null"],"format":"date-time"},"appliedAt":{"type":["string","null"],"format":"date-time"},"questionnaireId":{"type":"string"},"workspaceId":{"type":"string"},"questionnaireName":{"type":"string"},"answers":{"$ref":"#/$defs/QuestionnaireAnswers"},"definition":{"allOf":[{"$ref":"#/$defs/QuestionnaireDefinition"},{"description":"The form as it was when this link was sent."}]},"appliedBy":{"type":["string","null"]},"appliedTargets":{"type":"array","items":{"type":"object","properties":{"blockId":{"type":"string"},"target":{"type":"string"},"value":{"type":"string"},"appliedAt":{"type":"number"}},"required":["blockId","target","value","appliedAt"],"additionalProperties":false}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","linkId","status","respondentName","respondentEmail","startedAt","submittedAt","appliedAt","questionnaireId","workspaceId","questionnaireName","answers","definition","appliedBy","appliedTargets","createdAt","updatedAt"]},"QuestionnaireDefinition":{"type":"object","properties":{"version":{"type":"number","enum":[1]},"intro":{"type":"object","properties":{"heading":{"type":"string","minLength":1,"maxLength":300},"body":{"type":"string","maxLength":2000}},"required":["heading"],"additionalProperties":false},"sections":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"title":{"type":"string","minLength":1,"maxLength":300},"description":{"type":"string","maxLength":2000},"blocks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["short_text"]},"maxLength":{"type":"integer","minimum":1,"maximum":500,"default":200}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["long_text"]},"maxLength":{"type":"integer","minimum":1,"maximum":10000,"default":5000}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["email"]}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["url"]}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["url_list"]},"maxItems":{"type":"integer","minimum":1,"maximum":50,"default":10}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["number"]},"min":{"type":"number"},"max":{"type":"number"}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["date"]}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["single_choice"]},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300}},"required":["id","label"],"additionalProperties":false},"minItems":2,"maxItems":50},"allowOther":{"type":"boolean","default":false}},"required":["id","label","kind","options"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["multi_choice"]},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300}},"required":["id","label"],"additionalProperties":false},"minItems":2,"maxItems":50},"allowOther":{"type":"boolean","default":false}},"required":["id","label","kind","options"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["dropdown"]},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300}},"required":["id","label"],"additionalProperties":false},"minItems":2,"maxItems":50}},"required":["id","label","kind","options"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["yes_no"]}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["scale"]},"min":{"type":"integer","default":1},"max":{"type":"integer","default":5},"minLabel":{"type":"string","maxLength":60},"maxLabel":{"type":"string","maxLength":60}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["color_list"]},"maxItems":{"type":"integer","minimum":1,"maximum":12,"default":6}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["file_upload"]},"accept":{"type":"array","items":{"type":"string","minLength":1},"minItems":1,"maxItems":20},"maxFiles":{"type":"integer","minimum":1,"maximum":20,"default":5}},"required":["id","label","kind","accept"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["statement"]},"body":{"type":"string","maxLength":2000},"confirmLabel":{"type":"string","maxLength":300}},"required":["id","label","kind","body"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["connect_channels"]},"platforms":{"type":"array","items":{"type":"string","enum":["bluesky","discord","facebook","instagram","linkedin","pinterest","threads","tiktok","wordpress","youtube"]},"minItems":1},"minimum":{"type":"integer","minimum":0,"default":0}},"required":["id","label","kind","platforms"],"additionalProperties":false}]},"maxItems":50}},"required":["id","title","blocks"],"additionalProperties":false},"minItems":1,"maxItems":20},"outro":{"type":"object","properties":{"heading":{"type":"string","minLength":1,"maxLength":300},"body":{"type":"string","maxLength":2000}},"required":["heading"],"additionalProperties":false}},"required":["version","intro","sections","outro"],"additionalProperties":false},"QuestionnaireAnswers":{"type":"object","additionalProperties":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["short_text"]},"value":{"type":"string"}},"required":["kind","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["long_text"]},"value":{"type":"string"}},"required":["kind","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["email"]},"value":{"type":"string"}},"required":["kind","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["url"]},"value":{"type":"string"}},"required":["kind","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["url_list"]},"values":{"type":"array","items":{"type":"string"}}},"required":["kind","values"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["number"]},"value":{"type":"number"}},"required":["kind","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["date"]},"value":{"type":"string"}},"required":["kind","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["single_choice"]},"optionId":{"type":["string","null"]},"other":{"type":"string"}},"required":["kind","optionId"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["multi_choice"]},"optionIds":{"type":"array","items":{"type":"string"}},"other":{"type":"string"}},"required":["kind","optionIds"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["dropdown"]},"optionId":{"type":"string"}},"required":["kind","optionId"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["yes_no"]},"value":{"type":"boolean"}},"required":["kind","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["scale"]},"value":{"type":"integer"}},"required":["kind","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["color_list"]},"values":{"type":"array","items":{"type":"string"}}},"required":["kind","values"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["file_upload"]},"mediaIds":{"type":"array","items":{"type":"string"}}},"required":["kind","mediaIds"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["statement"]},"confirmed":{"type":"boolean"}},"required":["kind","confirmed"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["connect_channels"]},"channelIds":{"type":"array","items":{"type":"string"}}},"required":["kind","channelIds"],"additionalProperties":false}]}}}}},{"name":"apply_questionnaire_response","description":"Write chosen answers of a submitted response into the workspace: only the listed blockIds whose questions carry a mapping. Overwrites the workspace name, logo and brand voice or competitors, and adds personas and objectives; campaign answers come back as campaignPrefill instead of being written. Answers already applied are skipped. Requires questionnaires:update.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string","minLength":1}},"required":["id"],"additionalProperties":false},"body":{"$ref":"#/$defs/ApplyQuestionnaireResponseRequest"},"idempotencyKey":{"type":"string","maxLength":255,"description":"Reuse this key when retrying the same action."}},"required":["workspaceId","path","body"],"additionalProperties":false,"$defs":{"ApplyQuestionnaireResponseRequest":{"type":"object","properties":{"blockIds":{"type":"array","items":{"type":"string","minLength":1},"maxItems":200}},"required":["blockIds"]}}},"outputSchema":{"type":"object","properties":{"response":{"$ref":"#/$defs/QuestionnaireResponse"},"campaignPrefill":{"type":"object","properties":{"creativeDirection":{"type":"string"},"monthlyPostTarget":{"type":"integer"},"objectiveIds":{"type":"array","items":{"type":"string"}},"personaIds":{"type":"array","items":{"type":"string"}}},"required":["objectiveIds","personaIds"]}},"required":["response","campaignPrefill"],"$defs":{"QuestionnaireResponse":{"type":"object","properties":{"id":{"type":"string"},"linkId":{"type":"string"},"status":{"type":"string","enum":["draft","submitted","applied"]},"respondentName":{"type":["string","null"]},"respondentEmail":{"type":["string","null"]},"startedAt":{"type":"string","format":"date-time"},"submittedAt":{"type":["string","null"],"format":"date-time"},"appliedAt":{"type":["string","null"],"format":"date-time"},"questionnaireId":{"type":"string"},"workspaceId":{"type":"string"},"questionnaireName":{"type":"string"},"answers":{"$ref":"#/$defs/QuestionnaireAnswers"},"definition":{"allOf":[{"$ref":"#/$defs/QuestionnaireDefinition"},{"description":"The form as it was when this link was sent."}]},"appliedBy":{"type":["string","null"]},"appliedTargets":{"type":"array","items":{"type":"object","properties":{"blockId":{"type":"string"},"target":{"type":"string"},"value":{"type":"string"},"appliedAt":{"type":"number"}},"required":["blockId","target","value","appliedAt"],"additionalProperties":false}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","linkId","status","respondentName","respondentEmail","startedAt","submittedAt","appliedAt","questionnaireId","workspaceId","questionnaireName","answers","definition","appliedBy","appliedTargets","createdAt","updatedAt"]},"QuestionnaireDefinition":{"type":"object","properties":{"version":{"type":"number","enum":[1]},"intro":{"type":"object","properties":{"heading":{"type":"string","minLength":1,"maxLength":300},"body":{"type":"string","maxLength":2000}},"required":["heading"],"additionalProperties":false},"sections":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"title":{"type":"string","minLength":1,"maxLength":300},"description":{"type":"string","maxLength":2000},"blocks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["short_text"]},"maxLength":{"type":"integer","minimum":1,"maximum":500,"default":200}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["long_text"]},"maxLength":{"type":"integer","minimum":1,"maximum":10000,"default":5000}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["email"]}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["url"]}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["url_list"]},"maxItems":{"type":"integer","minimum":1,"maximum":50,"default":10}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["number"]},"min":{"type":"number"},"max":{"type":"number"}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["date"]}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["single_choice"]},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300}},"required":["id","label"],"additionalProperties":false},"minItems":2,"maxItems":50},"allowOther":{"type":"boolean","default":false}},"required":["id","label","kind","options"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["multi_choice"]},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300}},"required":["id","label"],"additionalProperties":false},"minItems":2,"maxItems":50},"allowOther":{"type":"boolean","default":false}},"required":["id","label","kind","options"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["dropdown"]},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300}},"required":["id","label"],"additionalProperties":false},"minItems":2,"maxItems":50}},"required":["id","label","kind","options"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["yes_no"]}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["scale"]},"min":{"type":"integer","default":1},"max":{"type":"integer","default":5},"minLabel":{"type":"string","maxLength":60},"maxLabel":{"type":"string","maxLength":60}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["color_list"]},"maxItems":{"type":"integer","minimum":1,"maximum":12,"default":6}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["file_upload"]},"accept":{"type":"array","items":{"type":"string","minLength":1},"minItems":1,"maxItems":20},"maxFiles":{"type":"integer","minimum":1,"maximum":20,"default":5}},"required":["id","label","kind","accept"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["statement"]},"body":{"type":"string","maxLength":2000},"confirmLabel":{"type":"string","maxLength":300}},"required":["id","label","kind","body"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["connect_channels"]},"platforms":{"type":"array","items":{"type":"string","enum":["bluesky","discord","facebook","instagram","linkedin","pinterest","threads","tiktok","wordpress","youtube"]},"minItems":1},"minimum":{"type":"integer","minimum":0,"default":0}},"required":["id","label","kind","platforms"],"additionalProperties":false}]},"maxItems":50}},"required":["id","title","blocks"],"additionalProperties":false},"minItems":1,"maxItems":20},"outro":{"type":"object","properties":{"heading":{"type":"string","minLength":1,"maxLength":300},"body":{"type":"string","maxLength":2000}},"required":["heading"],"additionalProperties":false}},"required":["version","intro","sections","outro"],"additionalProperties":false},"QuestionnaireAnswers":{"type":"object","additionalProperties":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["short_text"]},"value":{"type":"string"}},"required":["kind","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["long_text"]},"value":{"type":"string"}},"required":["kind","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["email"]},"value":{"type":"string"}},"required":["kind","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["url"]},"value":{"type":"string"}},"required":["kind","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["url_list"]},"values":{"type":"array","items":{"type":"string"}}},"required":["kind","values"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["number"]},"value":{"type":"number"}},"required":["kind","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["date"]},"value":{"type":"string"}},"required":["kind","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["single_choice"]},"optionId":{"type":["string","null"]},"other":{"type":"string"}},"required":["kind","optionId"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["multi_choice"]},"optionIds":{"type":"array","items":{"type":"string"}},"other":{"type":"string"}},"required":["kind","optionIds"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["dropdown"]},"optionId":{"type":"string"}},"required":["kind","optionId"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["yes_no"]},"value":{"type":"boolean"}},"required":["kind","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["scale"]},"value":{"type":"integer"}},"required":["kind","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["color_list"]},"values":{"type":"array","items":{"type":"string"}}},"required":["kind","values"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["file_upload"]},"mediaIds":{"type":"array","items":{"type":"string"}}},"required":["kind","mediaIds"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["statement"]},"confirmed":{"type":"boolean"}},"required":["kind","confirmed"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["connect_channels"]},"channelIds":{"type":"array","items":{"type":"string"}}},"required":["kind","channelIds"],"additionalProperties":false}]}}}}},{"name":"list_questionnaire_templates","description":"List the organization's questionnaire templates (without definitions) and the built-in starters a template can be created from. Templates belong to the selected workspace's organization and need a signed-in user (OAuth), not an API key, plus questionnaires:view in the workspace. Requires organization:view.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"query":{"type":"object","properties":{"includeArchived":{"type":"string","enum":["true","false"]}},"required":[],"additionalProperties":false}},"required":["workspaceId"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/$defs/QuestionnaireTemplateSummary"}},"starters":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"sectionCount":{"type":"integer"}},"required":["key","name","description","sectionCount"]}}},"required":["data","starters"],"$defs":{"QuestionnaireTemplateSummary":{"type":"object","properties":{"id":{"type":"string"},"organizationId":{"type":"string"},"name":{"type":"string"},"description":{"type":["string","null"]},"definitionVersion":{"type":"integer"},"starterKey":{"type":["string","null"]},"archived":{"type":"boolean"},"archivedAt":{"type":["string","null"],"format":"date-time"},"createdBy":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"sectionCount":{"type":"integer"},"questionCount":{"type":"integer"}},"required":["id","organizationId","name","description","definitionVersion","starterKey","archived","archivedAt","createdBy","createdAt","updatedAt","sectionCount","questionCount"]}}}},{"name":"create_questionnaire_template","description":"Create an organization questionnaire template, blank, from a starterKey listed by list_questionnaire_templates, or from a full definition. Templates belong to the selected workspace's organization and need a signed-in user (OAuth), not an API key, plus questionnaires:view in the workspace. Requires organization:manage_templates (organization owners and admins).","annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"body":{"$ref":"#/$defs/CreateQuestionnaireTemplateRequest"},"idempotencyKey":{"type":"string","maxLength":255,"description":"Reuse this key when retrying the same action."}},"required":["workspaceId","body"],"additionalProperties":false,"$defs":{"CreateQuestionnaireTemplateRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"description":{"type":["string","null"],"maxLength":2000},"definition":{"$ref":"#/$defs/QuestionnaireDefinition"},"starterKey":{"type":"string","maxLength":100}}},"QuestionnaireDefinition":{"type":"object","properties":{"version":{"type":"number","enum":[1]},"intro":{"type":"object","properties":{"heading":{"type":"string","minLength":1,"maxLength":300},"body":{"type":"string","maxLength":2000}},"required":["heading"],"additionalProperties":false},"sections":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"title":{"type":"string","minLength":1,"maxLength":300},"description":{"type":"string","maxLength":2000},"blocks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["short_text"]},"maxLength":{"type":"integer","minimum":1,"maximum":500,"default":200}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["long_text"]},"maxLength":{"type":"integer","minimum":1,"maximum":10000,"default":5000}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["email"]}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["url"]}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["url_list"]},"maxItems":{"type":"integer","minimum":1,"maximum":50,"default":10}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["number"]},"min":{"type":"number"},"max":{"type":"number"}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["date"]}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["single_choice"]},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300}},"required":["id","label"],"additionalProperties":false},"minItems":2,"maxItems":50},"allowOther":{"type":"boolean","default":false}},"required":["id","label","kind","options"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["multi_choice"]},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300}},"required":["id","label"],"additionalProperties":false},"minItems":2,"maxItems":50},"allowOther":{"type":"boolean","default":false}},"required":["id","label","kind","options"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["dropdown"]},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300}},"required":["id","label"],"additionalProperties":false},"minItems":2,"maxItems":50}},"required":["id","label","kind","options"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["yes_no"]}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["scale"]},"min":{"type":"integer","default":1},"max":{"type":"integer","default":5},"minLabel":{"type":"string","maxLength":60},"maxLabel":{"type":"string","maxLength":60}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["color_list"]},"maxItems":{"type":"integer","minimum":1,"maximum":12,"default":6}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["file_upload"]},"accept":{"type":"array","items":{"type":"string","minLength":1},"minItems":1,"maxItems":20},"maxFiles":{"type":"integer","minimum":1,"maximum":20,"default":5}},"required":["id","label","kind","accept"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["statement"]},"body":{"type":"string","maxLength":2000},"confirmLabel":{"type":"string","maxLength":300}},"required":["id","label","kind","body"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["connect_channels"]},"platforms":{"type":"array","items":{"type":"string","enum":["bluesky","discord","facebook","instagram","linkedin","pinterest","threads","tiktok","wordpress","youtube"]},"minItems":1},"minimum":{"type":"integer","minimum":0,"default":0}},"required":["id","label","kind","platforms"],"additionalProperties":false}]},"maxItems":50}},"required":["id","title","blocks"],"additionalProperties":false},"minItems":1,"maxItems":20},"outro":{"type":"object","properties":{"heading":{"type":"string","minLength":1,"maxLength":300},"body":{"type":"string","maxLength":2000}},"required":["heading"],"additionalProperties":false}},"required":["version","intro","sections","outro"],"additionalProperties":false}}},"outputSchema":{"type":"object","properties":{"id":{"type":"string"},"organizationId":{"type":"string"},"name":{"type":"string"},"description":{"type":["string","null"]},"definitionVersion":{"type":"integer"},"starterKey":{"type":["string","null"]},"archived":{"type":"boolean"},"archivedAt":{"type":["string","null"],"format":"date-time"},"createdBy":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"sectionCount":{"type":"integer"},"questionCount":{"type":"integer"},"definition":{"$ref":"#/$defs/QuestionnaireDefinition"}},"required":["id","organizationId","name","description","definitionVersion","starterKey","archived","archivedAt","createdBy","createdAt","updatedAt","sectionCount","questionCount","definition"],"$defs":{"QuestionnaireDefinition":{"type":"object","properties":{"version":{"type":"number","enum":[1]},"intro":{"type":"object","properties":{"heading":{"type":"string","minLength":1,"maxLength":300},"body":{"type":"string","maxLength":2000}},"required":["heading"],"additionalProperties":false},"sections":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"title":{"type":"string","minLength":1,"maxLength":300},"description":{"type":"string","maxLength":2000},"blocks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["short_text"]},"maxLength":{"type":"integer","minimum":1,"maximum":500,"default":200}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["long_text"]},"maxLength":{"type":"integer","minimum":1,"maximum":10000,"default":5000}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["email"]}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["url"]}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["url_list"]},"maxItems":{"type":"integer","minimum":1,"maximum":50,"default":10}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["number"]},"min":{"type":"number"},"max":{"type":"number"}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["date"]}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["single_choice"]},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300}},"required":["id","label"],"additionalProperties":false},"minItems":2,"maxItems":50},"allowOther":{"type":"boolean","default":false}},"required":["id","label","kind","options"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["multi_choice"]},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300}},"required":["id","label"],"additionalProperties":false},"minItems":2,"maxItems":50},"allowOther":{"type":"boolean","default":false}},"required":["id","label","kind","options"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["dropdown"]},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300}},"required":["id","label"],"additionalProperties":false},"minItems":2,"maxItems":50}},"required":["id","label","kind","options"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["yes_no"]}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["scale"]},"min":{"type":"integer","default":1},"max":{"type":"integer","default":5},"minLabel":{"type":"string","maxLength":60},"maxLabel":{"type":"string","maxLength":60}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["color_list"]},"maxItems":{"type":"integer","minimum":1,"maximum":12,"default":6}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["file_upload"]},"accept":{"type":"array","items":{"type":"string","minLength":1},"minItems":1,"maxItems":20},"maxFiles":{"type":"integer","minimum":1,"maximum":20,"default":5}},"required":["id","label","kind","accept"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["statement"]},"body":{"type":"string","maxLength":2000},"confirmLabel":{"type":"string","maxLength":300}},"required":["id","label","kind","body"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["connect_channels"]},"platforms":{"type":"array","items":{"type":"string","enum":["bluesky","discord","facebook","instagram","linkedin","pinterest","threads","tiktok","wordpress","youtube"]},"minItems":1},"minimum":{"type":"integer","minimum":0,"default":0}},"required":["id","label","kind","platforms"],"additionalProperties":false}]},"maxItems":50}},"required":["id","title","blocks"],"additionalProperties":false},"minItems":1,"maxItems":20},"outro":{"type":"object","properties":{"heading":{"type":"string","minLength":1,"maxLength":300},"body":{"type":"string","maxLength":2000}},"required":["heading"],"additionalProperties":false}},"required":["version","intro","sections","outro"],"additionalProperties":false}}}},{"name":"get_questionnaire_template","description":"Get one questionnaire template with its full definition. Templates belong to the selected workspace's organization and need a signed-in user (OAuth), not an API key, plus questionnaires:view in the workspace. Requires organization:view.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string","minLength":1}},"required":["id"],"additionalProperties":false}},"required":["workspaceId","path"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"id":{"type":"string"},"organizationId":{"type":"string"},"name":{"type":"string"},"description":{"type":["string","null"]},"definitionVersion":{"type":"integer"},"starterKey":{"type":["string","null"]},"archived":{"type":"boolean"},"archivedAt":{"type":["string","null"],"format":"date-time"},"createdBy":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"sectionCount":{"type":"integer"},"questionCount":{"type":"integer"},"definition":{"$ref":"#/$defs/QuestionnaireDefinition"}},"required":["id","organizationId","name","description","definitionVersion","starterKey","archived","archivedAt","createdBy","createdAt","updatedAt","sectionCount","questionCount","definition"],"$defs":{"QuestionnaireDefinition":{"type":"object","properties":{"version":{"type":"number","enum":[1]},"intro":{"type":"object","properties":{"heading":{"type":"string","minLength":1,"maxLength":300},"body":{"type":"string","maxLength":2000}},"required":["heading"],"additionalProperties":false},"sections":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"title":{"type":"string","minLength":1,"maxLength":300},"description":{"type":"string","maxLength":2000},"blocks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["short_text"]},"maxLength":{"type":"integer","minimum":1,"maximum":500,"default":200}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["long_text"]},"maxLength":{"type":"integer","minimum":1,"maximum":10000,"default":5000}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["email"]}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["url"]}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["url_list"]},"maxItems":{"type":"integer","minimum":1,"maximum":50,"default":10}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["number"]},"min":{"type":"number"},"max":{"type":"number"}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["date"]}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["single_choice"]},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300}},"required":["id","label"],"additionalProperties":false},"minItems":2,"maxItems":50},"allowOther":{"type":"boolean","default":false}},"required":["id","label","kind","options"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["multi_choice"]},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300}},"required":["id","label"],"additionalProperties":false},"minItems":2,"maxItems":50},"allowOther":{"type":"boolean","default":false}},"required":["id","label","kind","options"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["dropdown"]},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300}},"required":["id","label"],"additionalProperties":false},"minItems":2,"maxItems":50}},"required":["id","label","kind","options"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["yes_no"]}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["scale"]},"min":{"type":"integer","default":1},"max":{"type":"integer","default":5},"minLabel":{"type":"string","maxLength":60},"maxLabel":{"type":"string","maxLength":60}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["color_list"]},"maxItems":{"type":"integer","minimum":1,"maximum":12,"default":6}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["file_upload"]},"accept":{"type":"array","items":{"type":"string","minLength":1},"minItems":1,"maxItems":20},"maxFiles":{"type":"integer","minimum":1,"maximum":20,"default":5}},"required":["id","label","kind","accept"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["statement"]},"body":{"type":"string","maxLength":2000},"confirmLabel":{"type":"string","maxLength":300}},"required":["id","label","kind","body"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["connect_channels"]},"platforms":{"type":"array","items":{"type":"string","enum":["bluesky","discord","facebook","instagram","linkedin","pinterest","threads","tiktok","wordpress","youtube"]},"minItems":1},"minimum":{"type":"integer","minimum":0,"default":0}},"required":["id","label","kind","platforms"],"additionalProperties":false}]},"maxItems":50}},"required":["id","title","blocks"],"additionalProperties":false},"minItems":1,"maxItems":20},"outro":{"type":"object","properties":{"heading":{"type":"string","minLength":1,"maxLength":300},"body":{"type":"string","maxLength":2000}},"required":["heading"],"additionalProperties":false}},"required":["version","intro","sections","outro"],"additionalProperties":false}}}},{"name":"update_questionnaire_template","description":"Rename a questionnaire template, change its description or replace its definition. Questionnaires already copied from it do not change. Templates belong to the selected workspace's organization and need a signed-in user (OAuth), not an API key, plus questionnaires:view in the workspace. Requires organization:manage_templates.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string","minLength":1}},"required":["id"],"additionalProperties":false},"body":{"$ref":"#/$defs/UpdateQuestionnaireTemplateRequest"}},"required":["workspaceId","path","body"],"additionalProperties":false,"$defs":{"UpdateQuestionnaireTemplateRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"description":{"type":["string","null"],"maxLength":2000},"definition":{"$ref":"#/$defs/QuestionnaireDefinition"}}},"QuestionnaireDefinition":{"type":"object","properties":{"version":{"type":"number","enum":[1]},"intro":{"type":"object","properties":{"heading":{"type":"string","minLength":1,"maxLength":300},"body":{"type":"string","maxLength":2000}},"required":["heading"],"additionalProperties":false},"sections":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"title":{"type":"string","minLength":1,"maxLength":300},"description":{"type":"string","maxLength":2000},"blocks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["short_text"]},"maxLength":{"type":"integer","minimum":1,"maximum":500,"default":200}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["long_text"]},"maxLength":{"type":"integer","minimum":1,"maximum":10000,"default":5000}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["email"]}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["url"]}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["url_list"]},"maxItems":{"type":"integer","minimum":1,"maximum":50,"default":10}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["number"]},"min":{"type":"number"},"max":{"type":"number"}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["date"]}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["single_choice"]},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300}},"required":["id","label"],"additionalProperties":false},"minItems":2,"maxItems":50},"allowOther":{"type":"boolean","default":false}},"required":["id","label","kind","options"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["multi_choice"]},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300}},"required":["id","label"],"additionalProperties":false},"minItems":2,"maxItems":50},"allowOther":{"type":"boolean","default":false}},"required":["id","label","kind","options"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["dropdown"]},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300}},"required":["id","label"],"additionalProperties":false},"minItems":2,"maxItems":50}},"required":["id","label","kind","options"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["yes_no"]}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["scale"]},"min":{"type":"integer","default":1},"max":{"type":"integer","default":5},"minLabel":{"type":"string","maxLength":60},"maxLabel":{"type":"string","maxLength":60}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["color_list"]},"maxItems":{"type":"integer","minimum":1,"maximum":12,"default":6}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["file_upload"]},"accept":{"type":"array","items":{"type":"string","minLength":1},"minItems":1,"maxItems":20},"maxFiles":{"type":"integer","minimum":1,"maximum":20,"default":5}},"required":["id","label","kind","accept"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["statement"]},"body":{"type":"string","maxLength":2000},"confirmLabel":{"type":"string","maxLength":300}},"required":["id","label","kind","body"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["connect_channels"]},"platforms":{"type":"array","items":{"type":"string","enum":["bluesky","discord","facebook","instagram","linkedin","pinterest","threads","tiktok","wordpress","youtube"]},"minItems":1},"minimum":{"type":"integer","minimum":0,"default":0}},"required":["id","label","kind","platforms"],"additionalProperties":false}]},"maxItems":50}},"required":["id","title","blocks"],"additionalProperties":false},"minItems":1,"maxItems":20},"outro":{"type":"object","properties":{"heading":{"type":"string","minLength":1,"maxLength":300},"body":{"type":"string","maxLength":2000}},"required":["heading"],"additionalProperties":false}},"required":["version","intro","sections","outro"],"additionalProperties":false}}},"outputSchema":{"type":"object","properties":{"id":{"type":"string"},"organizationId":{"type":"string"},"name":{"type":"string"},"description":{"type":["string","null"]},"definitionVersion":{"type":"integer"},"starterKey":{"type":["string","null"]},"archived":{"type":"boolean"},"archivedAt":{"type":["string","null"],"format":"date-time"},"createdBy":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"sectionCount":{"type":"integer"},"questionCount":{"type":"integer"},"definition":{"$ref":"#/$defs/QuestionnaireDefinition"}},"required":["id","organizationId","name","description","definitionVersion","starterKey","archived","archivedAt","createdBy","createdAt","updatedAt","sectionCount","questionCount","definition"],"$defs":{"QuestionnaireDefinition":{"type":"object","properties":{"version":{"type":"number","enum":[1]},"intro":{"type":"object","properties":{"heading":{"type":"string","minLength":1,"maxLength":300},"body":{"type":"string","maxLength":2000}},"required":["heading"],"additionalProperties":false},"sections":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"title":{"type":"string","minLength":1,"maxLength":300},"description":{"type":"string","maxLength":2000},"blocks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["short_text"]},"maxLength":{"type":"integer","minimum":1,"maximum":500,"default":200}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["long_text"]},"maxLength":{"type":"integer","minimum":1,"maximum":10000,"default":5000}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["email"]}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["url"]}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["url_list"]},"maxItems":{"type":"integer","minimum":1,"maximum":50,"default":10}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["number"]},"min":{"type":"number"},"max":{"type":"number"}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["date"]}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["single_choice"]},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300}},"required":["id","label"],"additionalProperties":false},"minItems":2,"maxItems":50},"allowOther":{"type":"boolean","default":false}},"required":["id","label","kind","options"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["multi_choice"]},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300}},"required":["id","label"],"additionalProperties":false},"minItems":2,"maxItems":50},"allowOther":{"type":"boolean","default":false}},"required":["id","label","kind","options"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["dropdown"]},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300}},"required":["id","label"],"additionalProperties":false},"minItems":2,"maxItems":50}},"required":["id","label","kind","options"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["yes_no"]}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["scale"]},"min":{"type":"integer","default":1},"max":{"type":"integer","default":5},"minLabel":{"type":"string","maxLength":60},"maxLabel":{"type":"string","maxLength":60}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["color_list"]},"maxItems":{"type":"integer","minimum":1,"maximum":12,"default":6}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["file_upload"]},"accept":{"type":"array","items":{"type":"string","minLength":1},"minItems":1,"maxItems":20},"maxFiles":{"type":"integer","minimum":1,"maximum":20,"default":5}},"required":["id","label","kind","accept"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["statement"]},"body":{"type":"string","maxLength":2000},"confirmLabel":{"type":"string","maxLength":300}},"required":["id","label","kind","body"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["connect_channels"]},"platforms":{"type":"array","items":{"type":"string","enum":["bluesky","discord","facebook","instagram","linkedin","pinterest","threads","tiktok","wordpress","youtube"]},"minItems":1},"minimum":{"type":"integer","minimum":0,"default":0}},"required":["id","label","kind","platforms"],"additionalProperties":false}]},"maxItems":50}},"required":["id","title","blocks"],"additionalProperties":false},"minItems":1,"maxItems":20},"outro":{"type":"object","properties":{"heading":{"type":"string","minLength":1,"maxLength":300},"body":{"type":"string","maxLength":2000}},"required":["heading"],"additionalProperties":false}},"required":["version","intro","sections","outro"],"additionalProperties":false}}}},{"name":"archive_questionnaire_template","description":"Archive a questionnaire template so it is no longer offered. Questionnaires already copied from it keep working. Templates belong to the selected workspace's organization and need a signed-in user (OAuth), not an API key, plus questionnaires:view in the workspace. Requires organization:manage_templates.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string","minLength":1}},"required":["id"],"additionalProperties":false},"idempotencyKey":{"type":"string","maxLength":255,"description":"Reuse this key when retrying the same action."}},"required":["workspaceId","path"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"id":{"type":"string"},"organizationId":{"type":"string"},"name":{"type":"string"},"description":{"type":["string","null"]},"definitionVersion":{"type":"integer"},"starterKey":{"type":["string","null"]},"archived":{"type":"boolean"},"archivedAt":{"type":["string","null"],"format":"date-time"},"createdBy":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"sectionCount":{"type":"integer"},"questionCount":{"type":"integer"},"definition":{"$ref":"#/$defs/QuestionnaireDefinition"}},"required":["id","organizationId","name","description","definitionVersion","starterKey","archived","archivedAt","createdBy","createdAt","updatedAt","sectionCount","questionCount","definition"],"$defs":{"QuestionnaireDefinition":{"type":"object","properties":{"version":{"type":"number","enum":[1]},"intro":{"type":"object","properties":{"heading":{"type":"string","minLength":1,"maxLength":300},"body":{"type":"string","maxLength":2000}},"required":["heading"],"additionalProperties":false},"sections":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"title":{"type":"string","minLength":1,"maxLength":300},"description":{"type":"string","maxLength":2000},"blocks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["short_text"]},"maxLength":{"type":"integer","minimum":1,"maximum":500,"default":200}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["long_text"]},"maxLength":{"type":"integer","minimum":1,"maximum":10000,"default":5000}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["email"]}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["url"]}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["url_list"]},"maxItems":{"type":"integer","minimum":1,"maximum":50,"default":10}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["number"]},"min":{"type":"number"},"max":{"type":"number"}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["date"]}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["single_choice"]},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300}},"required":["id","label"],"additionalProperties":false},"minItems":2,"maxItems":50},"allowOther":{"type":"boolean","default":false}},"required":["id","label","kind","options"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["multi_choice"]},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300}},"required":["id","label"],"additionalProperties":false},"minItems":2,"maxItems":50},"allowOther":{"type":"boolean","default":false}},"required":["id","label","kind","options"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["dropdown"]},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300}},"required":["id","label"],"additionalProperties":false},"minItems":2,"maxItems":50}},"required":["id","label","kind","options"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["yes_no"]}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["scale"]},"min":{"type":"integer","default":1},"max":{"type":"integer","default":5},"minLabel":{"type":"string","maxLength":60},"maxLabel":{"type":"string","maxLength":60}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["color_list"]},"maxItems":{"type":"integer","minimum":1,"maximum":12,"default":6}},"required":["id","label","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["file_upload"]},"accept":{"type":"array","items":{"type":"string","minLength":1},"minItems":1,"maxItems":20},"maxFiles":{"type":"integer","minimum":1,"maximum":20,"default":5}},"required":["id","label","kind","accept"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["statement"]},"body":{"type":"string","maxLength":2000},"confirmLabel":{"type":"string","maxLength":300}},"required":["id","label","kind","body"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":300},"helpText":{"type":"string","maxLength":2000},"required":{"type":"boolean","default":false},"showWhen":{"type":"object","properties":{"blockId":{"type":"string","minLength":1,"maxLength":40},"op":{"type":"string","enum":["equals","not_equals","includes","is_answered"]},"value":{"type":"string","maxLength":300}},"required":["blockId","op"],"additionalProperties":false},"mapping":{"oneOf":[{"type":"object","properties":{"target":{"type":"string","enum":["workspace.name"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["workspace.logo"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.voice"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["brand.competitors"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["persona"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["objective"]},"metricKey":{"type":"string","maxLength":100}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.creativeDirection"]}},"required":["target"],"additionalProperties":false},{"type":"object","properties":{"target":{"type":"string","enum":["campaign.monthlyPostTarget"]}},"required":["target"],"additionalProperties":false}]},"kind":{"type":"string","enum":["connect_channels"]},"platforms":{"type":"array","items":{"type":"string","enum":["bluesky","discord","facebook","instagram","linkedin","pinterest","threads","tiktok","wordpress","youtube"]},"minItems":1},"minimum":{"type":"integer","minimum":0,"default":0}},"required":["id","label","kind","platforms"],"additionalProperties":false}]},"maxItems":50}},"required":["id","title","blocks"],"additionalProperties":false},"minItems":1,"maxItems":20},"outro":{"type":"object","properties":{"heading":{"type":"string","minLength":1,"maxLength":300},"body":{"type":"string","maxLength":2000}},"required":["heading"],"additionalProperties":false}},"required":["version","intro","sections","outro"],"additionalProperties":false}}}},{"name":"get_analytics_overview","description":"Workspace analytics for a window: KPIs against the previous period, per channel summaries, daily totals, per platform daily series and the top five posts. Choose `days` or a `startDate`/`endDate` pair; the window is clamped to the plan's retention (see retentionDays). Requires analytics:view.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"query":{"type":"object","properties":{"days":{"type":"integer","minimum":1,"maximum":365,"default":30,"description":"Trailing window in days ending today. Clamped to the plan's analytics retention."},"startDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Custom range start (YYYY-MM-DD, UTC). Used only together with endDate, and then overrides days. Dates older than the plan's retention are clamped."},"endDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Custom range end (YYYY-MM-DD, UTC), inclusive. Used only together with startDate; capped at today."},"platform":{"type":"string","enum":["bluesky","discord","facebook","instagram","linkedin","pinterest","threads","tiktok","wordpress","youtube"],"description":"Only count channels and posts on this platform."},"channelIds":{"type":"string","description":"Comma separated channel ids to include. Defaults to every active or errored channel in the workspace. A channel from another workspace is rejected."}},"required":[],"additionalProperties":false}},"required":["workspaceId"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"retentionDays":{"type":"number","description":"Days of history the workspace's plan retains. 0 means the plan includes no analytics."},"requestedDays":{"type":"number"},"effectiveDays":{"type":"number","description":"Length of the window actually read, after clamping."},"startDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"endDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"prevStartDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"provisionalSinceDate":{"type":["string","null"],"pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Dates on or after this are still collecting (platform insight lag) and may rise."},"planName":{"type":"string","enum":["free","starter","pro","business"]},"audienceAnalyticsEnabled":{"type":"boolean"},"kpis":{"$ref":"#/$defs/AnalyticsKpis"},"channelSummaries":{"type":"array","items":{"$ref":"#/$defs/AnalyticsChannelSummary"}},"dailyTotals":{"type":"array","items":{"$ref":"#/$defs/AnalyticsDailyTotal"}},"dailyByPlatform":{"type":"array","items":{"$ref":"#/$defs/AnalyticsDailyByPlatform"}},"topPosts":{"type":"array","items":{"$ref":"#/$defs/AnalyticsTopPost"}},"backfillingChannels":{"type":"array","items":{"$ref":"#/$defs/AnalyticsBackfillingChannel"},"description":"Channels still importing their history, so totals may be incomplete."}},"required":["retentionDays","requestedDays","effectiveDays","startDate","endDate","prevStartDate","provisionalSinceDate","planName","audienceAnalyticsEnabled","kpis","channelSummaries","dailyTotals","dailyByPlatform","topPosts","backfillingChannels"],"$defs":{"AnalyticsBackfillingChannel":{"type":"object","properties":{"channelId":{"type":"string"},"channelName":{"type":"string"},"channelLabel":{"type":["string","null"]},"platform":{"type":"string","enum":["bluesky","discord","facebook","instagram","linkedin","pinterest","threads","tiktok","wordpress","youtube"]}},"required":["channelId","channelName","channelLabel","platform"]},"AnalyticsTopPost":{"type":"object","properties":{"postId":{"type":"string"},"postContentId":{"type":"string"},"postTitle":{"type":"string"},"channelId":{"type":"string"},"channelName":{"type":"string"},"platform":{"type":"string","enum":["bluesky","discord","facebook","instagram","linkedin","pinterest","threads","tiktok","wordpress","youtube"]},"contentType":{"type":["string","null"],"enum":["image","video","reel","story","carousel","text",null]},"thumbnailUrl":{"type":["string","null"]},"permalink":{"type":["string","null"]},"date":{"type":"string","description":"Publish time, ISO 8601."},"deletedOnPlatformAt":{"type":["string","null"]},"impressions":{"type":["number","null"]},"reach":{"type":["number","null"]},"likes":{"type":["number","null"]},"comments":{"type":["number","null"]},"shares":{"type":["number","null"]},"saves":{"type":["number","null"]},"engagementRateBp":{"type":["number","null"]}},"required":["postId","postContentId","postTitle","channelId","channelName","platform","contentType","thumbnailUrl","permalink","date","deletedOnPlatformAt","impressions","reach","likes","comments","shares","saves","engagementRateBp"]},"AnalyticsDailyByPlatform":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"platform":{"type":"string","enum":["bluesky","discord","facebook","instagram","linkedin","pinterest","threads","tiktok","wordpress","youtube"]},"impressions":{"type":"number"},"reach":{"type":"number"},"likes":{"type":"number"},"comments":{"type":"number"},"shares":{"type":"number"},"saves":{"type":"number"},"clicks":{"type":"number"},"videoViews":{"type":"number"},"accountReach":{"type":"number"},"accountViews":{"type":"number"},"followersCount":{"type":"number"}},"required":["date","platform","impressions","reach","likes","comments","shares","saves","clicks","videoViews","accountReach","accountViews","followersCount"]},"AnalyticsDailyTotal":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"impressions":{"type":"number"},"reach":{"type":"number"},"likes":{"type":"number"},"comments":{"type":"number"},"shares":{"type":"number"},"saves":{"type":"number"},"clicks":{"type":"number"},"videoViews":{"type":"number"},"accountReach":{"type":"number"},"accountViews":{"type":"number"},"followers":{"type":"number"},"posts":{"type":"number"}},"required":["date","impressions","reach","likes","comments","shares","saves","clicks","videoViews","accountReach","accountViews","followers","posts"]},"AnalyticsChannelSummary":{"type":"object","properties":{"channelId":{"type":"string"},"channelName":{"type":"string"},"channelLabel":{"type":["string","null"]},"platform":{"type":"string","enum":["bluesky","discord","facebook","instagram","linkedin","pinterest","threads","tiktok","wordpress","youtube"]},"followersLatest":{"type":["number","null"]},"accountViewsTotal":{"type":["number","null"]},"accountReachTotal":{"type":["number","null"]},"profileVisitsTotal":{"type":["number","null"]},"engagementsTotal":{"type":["number","null"]},"postsPublished":{"type":"number"},"prevFollowersLatest":{"type":["number","null"]},"prevAccountViewsTotal":{"type":["number","null"]},"prevEngagementsTotal":{"type":["number","null"]}},"required":["channelId","channelName","channelLabel","platform","followersLatest","accountViewsTotal","accountReachTotal","profileVisitsTotal","engagementsTotal","postsPublished","prevFollowersLatest","prevAccountViewsTotal","prevEngagementsTotal"]},"AnalyticsKpis":{"type":"object","properties":{"followers":{"type":"number"},"views":{"type":"number"},"impressions":{"type":"number"},"reach":{"type":"number"},"engagements":{"type":"number"},"engagementRateBp":{"type":["number","null"]},"clicks":{"type":"number"},"saves":{"type":"number"},"posts":{"type":"number"},"prevFollowers":{"type":"number"},"prevViews":{"type":"number"},"prevImpressions":{"type":"number"},"prevReach":{"type":"number"},"prevEngagements":{"type":"number"},"prevEngagementRateBp":{"type":["number","null"]},"prevClicks":{"type":"number"},"prevSaves":{"type":"number"},"prevPosts":{"type":"number"}},"required":["followers","views","impressions","reach","engagements","engagementRateBp","clicks","saves","posts","prevFollowers","prevViews","prevImpressions","prevReach","prevEngagements","prevEngagementRateBp","prevClicks","prevSaves","prevPosts"],"description":"Totals for the window and the previous window of equal length (prev*). Engagements are likes, comments, shares and saves gained in the window. Rates are basis points (250 = 2.5%)."}}}},{"name":"get_analytics_detail","description":"Per post performance for a window (gains in the window plus lifetime totals) with content type, hashtag and posting time breakdowns. Takes the same window filters as get_analytics_overview plus `limit` (default 50) on the returned posts; breakdowns always cover every post. Requires analytics:view.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"query":{"type":"object","properties":{"days":{"type":"integer","minimum":1,"maximum":365,"default":30,"description":"Trailing window in days ending today. Clamped to the plan's analytics retention."},"startDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Custom range start (YYYY-MM-DD, UTC). Used only together with endDate, and then overrides days. Dates older than the plan's retention are clamped."},"endDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Custom range end (YYYY-MM-DD, UTC), inclusive. Used only together with startDate; capped at today."},"platform":{"type":"string","enum":["bluesky","discord","facebook","instagram","linkedin","pinterest","threads","tiktok","wordpress","youtube"],"description":"Only count channels and posts on this platform."},"channelIds":{"type":"string","description":"Comma separated channel ids to include. Defaults to every active or errored channel in the workspace. A channel from another workspace is rejected."},"limit":{"type":"integer","minimum":1,"maximum":500,"default":50}},"required":[],"additionalProperties":false}},"required":["workspaceId"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"lifetimeAsOf":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"postRows":{"type":"array","items":{"$ref":"#/$defs/AnalyticsPostPerformance"},"description":"Posts with analytics in the window, highest period impressions first. Top-level metrics are gains within the window."},"contentTypeBreakdown":{"type":"array","items":{"type":"object","properties":{"contentType":{"type":"string"},"postCount":{"type":"number"},"avgEngagementRateBp":{"type":"number"}},"required":["contentType","postCount","avgEngagementRateBp"]}},"topHashtags":{"type":"array","items":{"type":"object","properties":{"hashtag":{"type":"string"},"postCount":{"type":"number"},"avgEngagementRateBp":{"type":"number"}},"required":["hashtag","postCount","avgEngagementRateBp"]}},"heatmap":{"type":"array","items":{"type":"object","properties":{"dayOfWeek":{"type":"number","description":"0 is Sunday (UTC)."},"hourOfDay":{"type":"number","description":"UTC hour, 0 to 23."},"avgEngagementRateBp":{"type":"number"},"postCount":{"type":"number"}},"required":["dayOfWeek","hourOfDay","avgEngagementRateBp","postCount"]},"description":"Average engagement rate by UTC publish weekday and hour."}},"required":["lifetimeAsOf","postRows","contentTypeBreakdown","topHashtags","heatmap"],"$defs":{"AnalyticsPostPerformance":{"type":"object","properties":{"postId":{"type":"string"},"postContentId":{"type":"string"},"postTitle":{"type":"string"},"channelId":{"type":"string"},"channelName":{"type":"string"},"platform":{"type":"string","enum":["bluesky","discord","facebook","instagram","linkedin","pinterest","threads","tiktok","wordpress","youtube"]},"contentType":{"type":["string","null"],"enum":["image","video","reel","story","carousel","text",null]},"thumbnailUrl":{"type":["string","null"]},"permalink":{"type":["string","null"]},"date":{"type":"string","description":"Publish time, ISO 8601."},"hashtags":{"type":"array","items":{"type":"string"}},"externalPostId":{"type":["string","null"]},"metricsDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"lifetime":{"$ref":"#/$defs/AnalyticsLifetimeMetrics"},"impressions":{"type":["number","null"]},"reach":{"type":["number","null"]},"likes":{"type":["number","null"]},"comments":{"type":["number","null"]},"shares":{"type":["number","null"]},"saves":{"type":["number","null"]},"engagementRateBp":{"type":["number","null"]},"clicks":{"type":["number","null"]},"videoViews":{"type":["number","null"]}},"required":["postId","postContentId","postTitle","channelId","channelName","platform","contentType","thumbnailUrl","permalink","date","hashtags","externalPostId","metricsDate","lifetime","impressions","reach","likes","comments","shares","saves","engagementRateBp","clicks","videoViews"]},"AnalyticsLifetimeMetrics":{"type":"object","properties":{"impressions":{"type":["number","null"]},"reach":{"type":["number","null"]},"likes":{"type":["number","null"]},"comments":{"type":["number","null"]},"shares":{"type":["number","null"]},"saves":{"type":["number","null"]},"clicks":{"type":["number","null"]},"videoViews":{"type":["number","null"]},"engagementRateBp":{"type":["number","null"]}},"required":["impressions","reach","likes","comments","shares","saves","clicks","videoViews","engagementRateBp"],"description":"Each metric's latest lifetime reading on or before the window end. Null means not reported by the platform."}}}},{"name":"get_analytics_audience","description":"Audience demographics (age, gender, country, city and more) from the latest snapshot inside the window, as basis points of the audience. Only on plans with audience analytics; otherwise 403 feature_not_available. Requires analytics:view.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"query":{"type":"object","properties":{"days":{"type":"integer","minimum":1,"maximum":365,"default":30,"description":"Trailing window in days ending today. Clamped to the plan's analytics retention."},"startDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Custom range start (YYYY-MM-DD, UTC). Used only together with endDate, and then overrides days. Dates older than the plan's retention are clamped."},"endDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Custom range end (YYYY-MM-DD, UTC), inclusive. Used only together with startDate; capped at today."},"platform":{"type":"string","enum":["bluesky","discord","facebook","instagram","linkedin","pinterest","threads","tiktok","wordpress","youtube"],"description":"Only count channels and posts on this platform."},"channelIds":{"type":"string","description":"Comma separated channel ids to include. Defaults to every active or errored channel in the workspace. A channel from another workspace is rejected."}},"required":[],"additionalProperties":false}},"required":["workspaceId"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"startDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"endDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"audience":{"type":"array","items":{"type":"object","properties":{"dimension":{"type":"string"},"dimensionValue":{"type":"string"},"valuePctBp":{"type":["number","null"]},"valueCount":{"type":["number","null"]}},"required":["dimension","dimensionValue","valuePctBp","valueCount"]}}},"required":["startDate","endDate","audience"]}},{"name":"get_channel_native_metrics","description":"Platform specific metrics for one channel over a date range (for example Facebook reactions, Pinterest outbound clicks, YouTube average watch time), each with its label, unit and aggregation semantic. Requires analytics:view.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"channelId":{"type":"string","minLength":1}},"required":["channelId"],"additionalProperties":false},"query":{"type":"object","properties":{"startDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Window start (YYYY-MM-DD, UTC). Clamped to the plan's analytics retention."},"endDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Window end (YYYY-MM-DD, UTC), inclusive."}},"required":["startDate","endDate"],"additionalProperties":false}},"required":["workspaceId","path","query"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"metrics":{"type":"array","items":{"type":"object","properties":{"metricKey":{"type":"string"},"label":{"type":"string"},"description":{"type":"string"},"unit":{"type":"string","enum":["count","rate_bp","seconds","milliseconds","currency_cents"]},"semantic":{"type":"string","enum":["daily_delta","cumulative","window_aggregate"]},"value":{"type":"number"},"postCount":{"type":"number"}},"required":["metricKey","label","description","unit","semantic","value","postCount"]}}},"required":["metrics"]}},{"name":"get_post_native_metrics","description":"Every metric the platform reported for one published post over a date range, including platform specific ones such as watch time or retention, each with its label and unit. Requires analytics:view.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"postContentId":{"type":"string","minLength":1,"description":"The per-channel post content ID (postContentId in get_analytics_overview.topPosts or get_analytics_detail.postRows)."}},"required":["postContentId"],"additionalProperties":false},"query":{"type":"object","properties":{"startDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Window start (YYYY-MM-DD, UTC). Clamped to the plan's analytics retention."},"endDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Window end (YYYY-MM-DD, UTC), inclusive."}},"required":["startDate","endDate"],"additionalProperties":false}},"required":["workspaceId","path","query"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"metrics":{"type":"array","items":{"type":"object","properties":{"metricKey":{"type":"string"},"label":{"type":"string"},"description":{"type":"string"},"unit":{"type":"string","enum":["count","rate_bp","seconds","milliseconds","currency_cents"]},"semantic":{"type":"string","enum":["daily_delta","cumulative","window_aggregate"]},"value":{"type":"number"}},"required":["metricKey","label","description","unit","semantic","value"]}}},"required":["metrics"]}},{"name":"get_post_retention_curve","description":"The audience retention curve of one YouTube video: the share of viewers still watching (watchRatio) at each point of the video (elapsedRatio, 0 to 1). Empty for other platforms or before YouTube reports it. Requires analytics:view.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"postContentId":{"type":"string","minLength":1,"description":"The per-channel post content ID (postContentId in get_analytics_overview.topPosts or get_analytics_detail.postRows)."}},"required":["postContentId"],"additionalProperties":false}},"required":["workspaceId","path"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"samples":{"type":"array","items":{"type":"object","properties":{"elapsedRatio":{"type":"number"},"watchRatio":{"type":"number"},"performance":{"type":"number"}},"required":["elapsedRatio","watchRatio"]}}},"required":["samples"]}},{"name":"get_post_daily_series","description":"One published post's daily gains (impressions, reach, likes, comments, shares, saves, video views) over a date range, one entry per day with data. Requires analytics:view.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"postContentId":{"type":"string","minLength":1,"description":"The per-channel post content ID (postContentId in get_analytics_overview.topPosts or get_analytics_detail.postRows)."}},"required":["postContentId"],"additionalProperties":false},"query":{"type":"object","properties":{"startDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Window start (YYYY-MM-DD, UTC). Clamped to the plan's analytics retention."},"endDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Window end (YYYY-MM-DD, UTC), inclusive."}},"required":["startDate","endDate"],"additionalProperties":false}},"required":["workspaceId","path","query"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"series":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"impressions":{"type":"number"},"reach":{"type":"number"},"likes":{"type":"number"},"comments":{"type":"number"},"shares":{"type":"number"},"saves":{"type":"number"},"videoViews":{"type":"number"},"engagementRateBp":{"type":["number","null"]}},"required":["date","impressions","reach","likes","comments","shares","saves","videoViews","engagementRateBp"]}}},"required":["series"]}},{"name":"get_link_bio_page","description":"Get the workspace's link-in-bio page as the builder sees it: the draft blocks, theme and SEO, plus whether it is public and whether the draft has unpublished changes. Needs links:view.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."}},"required":["workspaceId"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"id":{"type":"string"},"handle":{"type":"string","description":"Draft handle. The public page uses publishedHandle."},"title":{"type":"string"},"bio":{"type":["string","null"]},"avatarUrl":{"type":["string","null"]},"theme":{"$ref":"#/$defs/LinkBioTheme"},"seo":{"$ref":"#/$defs/LinkBioSeo"},"published":{"type":"boolean","description":"Whether the public page is reachable at all."},"publishedHandle":{"type":["string","null"]},"publishedAt":{"type":["string","null"],"format":"date-time"},"hasUnpublishedChanges":{"type":"boolean","description":"True when the draft differs from what the public page shows."},"viewCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"blocks":{"type":"array","items":{"$ref":"#/$defs/LinkBioBlock"}}},"required":["id","handle","title","bio","avatarUrl","theme","seo","published","publishedHandle","publishedAt","hasUnpublishedChanges","viewCount","createdAt","updatedAt","blocks"],"$defs":{"LinkBioBlock":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["profile"]},"config":{"type":["object","null"],"properties":{"alignment":{"type":"string","enum":["left","center","right"],"default":"left"},"avatarPosition":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":100},"y":{"type":"integer","minimum":0,"maximum":100}},"required":["x","y"]},"avatarSize":{"type":"integer","minimum":72,"maximum":180},"avatarUrl":{"type":"string"},"bio":{"type":"string","maxLength":300},"coverHeight":{"type":"integer","minimum":120,"maximum":260},"coverImageUrl":{"type":"string"},"coverPosition":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":100},"y":{"type":"integer","minimum":0,"maximum":100}},"required":["x","y"]},"displayHandle":{"type":"string","maxLength":80},"displayName":{"type":"string","maxLength":100},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}},"variant":{"type":"string","enum":["avatar","avatar_text","cover","cover_avatar"],"default":"avatar_text"}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["link"]},"config":{"type":["object","null"],"properties":{"alignment":{"type":"string","enum":["left","center","right"],"default":"left"},"featured":{"type":"boolean","default":false},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}},"mode":{"type":"string","enum":["button","link"]},"schedule":{"type":"object","properties":{"endAt":{"type":"string","maxLength":64},"mode":{"type":"string","enum":["window"],"default":"window"},"startAt":{"type":"string","maxLength":64},"timezone":{"type":"string","maxLength":100}}},"showTitle":{"type":"boolean","default":true},"thumbnailPosition":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":100},"y":{"type":"integer","minimum":0,"maximum":100}},"required":["x","y"]}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["about"]},"config":{"type":["object","null"],"properties":{"alignment":{"type":"string","enum":["left","center","right"],"default":"left"},"imagePosition":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":100},"y":{"type":"integer","minimum":0,"maximum":100}},"required":["x","y"]},"imageSide":{"type":"string","enum":["left","right"],"default":"left"},"imageUrl":{"type":"string","maxLength":2048},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}},"variant":{"type":"string","enum":["text","image","image_text"],"default":"text"}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["header"]},"config":{"type":["object","null"],"properties":{"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["divider"]},"config":{"type":["object","null"],"properties":{"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["text"]},"config":{"type":["object","null"],"properties":{"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["image"]},"config":{"type":["object","null"],"properties":{"alt":{"type":"string","maxLength":300},"href":{"type":"string","maxLength":2048},"imagePosition":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":100},"y":{"type":"integer","minimum":0,"maximum":100}},"required":["x","y"]},"imageUrl":{"type":"string","maxLength":2048},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}},"schedule":{"type":"object","properties":{"endAt":{"type":"string","maxLength":64},"mode":{"type":"string","enum":["window"],"default":"window"},"startAt":{"type":"string","maxLength":64},"timezone":{"type":"string","maxLength":100}}}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["video_embed"]},"config":{"type":["object","null"],"properties":{"embedUrl":{"type":"string","maxLength":2048},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}},"schedule":{"type":"object","properties":{"endAt":{"type":"string","maxLength":64},"mode":{"type":"string","enum":["window"],"default":"window"},"startAt":{"type":"string","maxLength":64},"timezone":{"type":"string","maxLength":100}}},"title":{"type":"string","maxLength":120},"variant":{"type":"string","enum":["embed","feature"],"default":"embed"}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["social_icons"]},"config":{"type":["object","null"],"properties":{"alignment":{"type":"string","enum":["left","center","right"],"default":"left"},"heading":{"type":"string","maxLength":60},"items":{"type":"array","items":{"type":"object","properties":{"platform":{"type":"string","enum":["apple_podcasts","discord","email","facebook","github","instagram","linkedin","pinterest","snapchat","spotify","threads","tiktok","twitch","twitter","whatsapp","website","youtube"]},"title":{"type":"string","maxLength":60},"url":{"type":"string","maxLength":2048}},"required":["platform","url"]},"maxItems":12,"default":[]},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["footer"]},"config":{"type":["object","null"],"properties":{"alignment":{"type":"string","enum":["left","center","right"],"default":"center"},"attributionMode":{"type":"string","enum":["made_with_posty","get_posty","icon"],"default":"made_with_posty"},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}},"links":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string","maxLength":80},"url":{"type":"string","maxLength":2048}},"required":["label","url"]},"maxItems":6,"default":[]}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["social_buttons"]},"config":{"type":["object","null"],"properties":{"alignment":{"type":"string","enum":["left","center","right"],"default":"left"},"heading":{"type":"string","maxLength":60},"items":{"type":"array","items":{"type":"object","properties":{"platform":{"type":"string","enum":["apple_podcasts","discord","email","facebook","github","instagram","linkedin","pinterest","snapchat","spotify","threads","tiktok","twitch","twitter","whatsapp","website","youtube"]},"title":{"type":"string","maxLength":60},"url":{"type":"string","maxLength":2048}},"required":["platform","url"]},"maxItems":12,"default":[]},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["social_link"]},"config":{"type":["object","null"],"properties":{"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}},"platform":{"type":"string","enum":["apple_podcasts","discord","email","facebook","github","instagram","linkedin","pinterest","snapchat","spotify","threads","tiktok","twitch","twitter","whatsapp","website","youtube"]}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]}]},"LinkBioSeo":{"type":["object","null"],"properties":{"description":{"type":"string","maxLength":300},"noIndex":{"type":"boolean","default":false},"ogImageUrl":{"type":"string","maxLength":2048},"title":{"type":"string","maxLength":120}}},"LinkBioTheme":{"type":["object","null"],"properties":{"backgroundColor":{"type":"string","pattern":"^#(?:[\\dA-Fa-f]{3}|[\\dA-Fa-f]{6})$","description":"Hex colour such as #18181B."},"backgroundGradient":{"type":"string","maxLength":280},"backgroundImageUrl":{"type":"string","maxLength":2048},"buttonBorderRadius":{"type":"string","enum":["none","sm","md","lg","full"]},"buttonColor":{"type":"string","pattern":"^#(?:[\\dA-Fa-f]{3}|[\\dA-Fa-f]{6})$","description":"Hex colour such as #18181B."},"buttonStyle":{"type":"string","enum":["filled","outline","shadow","soft"]},"buttonTextColor":{"type":"string","pattern":"^#(?:[\\dA-Fa-f]{3}|[\\dA-Fa-f]{6})$","description":"Hex colour such as #18181B."},"fontFamily":{"type":"string","enum":["inter","plus-jakarta","mono","serif","instrument-serif","manrope","ibm-plex-mono","cormorant-garamond","space-grotesk","fraunces","bricolage-grotesque","outfit","dm-serif-display","unbounded","playfair-display","libre-baskerville","bebas-neue","archivo-black","syne"]},"surfaceBorderRadius":{"type":"string","enum":["none","sm","md","lg","xl"]},"textColor":{"type":"string","pattern":"^#(?:[\\dA-Fa-f]{3}|[\\dA-Fa-f]{6})$","description":"Hex colour such as #18181B."}}}}}},{"name":"claim_link_bio_handle","description":"Create the workspace's link-in-bio page by claiming a handle. The page starts private with a profile and footer block. If the workspace already has a page it is returned unchanged. Needs links:create.","annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"body":{"$ref":"#/$defs/ClaimLinkBioHandleRequest"},"idempotencyKey":{"type":"string","maxLength":255,"description":"Reuse this key when retrying the same action."}},"required":["workspaceId","body"],"additionalProperties":false,"$defs":{"ClaimLinkBioHandleRequest":{"type":"object","properties":{"handle":{"type":"string","minLength":3,"maxLength":64,"description":"Lowercase letters, numbers and hyphens, starting and ending with a letter or number."},"title":{"type":"string","minLength":1,"maxLength":100}},"required":["handle","title"]}}},"outputSchema":{"type":"object","properties":{"id":{"type":"string"},"handle":{"type":"string","description":"Draft handle. The public page uses publishedHandle."},"title":{"type":"string"},"bio":{"type":["string","null"]},"avatarUrl":{"type":["string","null"]},"theme":{"$ref":"#/$defs/LinkBioTheme"},"seo":{"$ref":"#/$defs/LinkBioSeo"},"published":{"type":"boolean","description":"Whether the public page is reachable at all."},"publishedHandle":{"type":["string","null"]},"publishedAt":{"type":["string","null"],"format":"date-time"},"hasUnpublishedChanges":{"type":"boolean","description":"True when the draft differs from what the public page shows."},"viewCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"blocks":{"type":"array","items":{"$ref":"#/$defs/LinkBioBlock"}}},"required":["id","handle","title","bio","avatarUrl","theme","seo","published","publishedHandle","publishedAt","hasUnpublishedChanges","viewCount","createdAt","updatedAt","blocks"],"$defs":{"LinkBioBlock":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["profile"]},"config":{"type":["object","null"],"properties":{"alignment":{"type":"string","enum":["left","center","right"],"default":"left"},"avatarPosition":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":100},"y":{"type":"integer","minimum":0,"maximum":100}},"required":["x","y"]},"avatarSize":{"type":"integer","minimum":72,"maximum":180},"avatarUrl":{"type":"string"},"bio":{"type":"string","maxLength":300},"coverHeight":{"type":"integer","minimum":120,"maximum":260},"coverImageUrl":{"type":"string"},"coverPosition":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":100},"y":{"type":"integer","minimum":0,"maximum":100}},"required":["x","y"]},"displayHandle":{"type":"string","maxLength":80},"displayName":{"type":"string","maxLength":100},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}},"variant":{"type":"string","enum":["avatar","avatar_text","cover","cover_avatar"],"default":"avatar_text"}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["link"]},"config":{"type":["object","null"],"properties":{"alignment":{"type":"string","enum":["left","center","right"],"default":"left"},"featured":{"type":"boolean","default":false},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}},"mode":{"type":"string","enum":["button","link"]},"schedule":{"type":"object","properties":{"endAt":{"type":"string","maxLength":64},"mode":{"type":"string","enum":["window"],"default":"window"},"startAt":{"type":"string","maxLength":64},"timezone":{"type":"string","maxLength":100}}},"showTitle":{"type":"boolean","default":true},"thumbnailPosition":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":100},"y":{"type":"integer","minimum":0,"maximum":100}},"required":["x","y"]}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["about"]},"config":{"type":["object","null"],"properties":{"alignment":{"type":"string","enum":["left","center","right"],"default":"left"},"imagePosition":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":100},"y":{"type":"integer","minimum":0,"maximum":100}},"required":["x","y"]},"imageSide":{"type":"string","enum":["left","right"],"default":"left"},"imageUrl":{"type":"string","maxLength":2048},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}},"variant":{"type":"string","enum":["text","image","image_text"],"default":"text"}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["header"]},"config":{"type":["object","null"],"properties":{"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["divider"]},"config":{"type":["object","null"],"properties":{"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["text"]},"config":{"type":["object","null"],"properties":{"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["image"]},"config":{"type":["object","null"],"properties":{"alt":{"type":"string","maxLength":300},"href":{"type":"string","maxLength":2048},"imagePosition":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":100},"y":{"type":"integer","minimum":0,"maximum":100}},"required":["x","y"]},"imageUrl":{"type":"string","maxLength":2048},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}},"schedule":{"type":"object","properties":{"endAt":{"type":"string","maxLength":64},"mode":{"type":"string","enum":["window"],"default":"window"},"startAt":{"type":"string","maxLength":64},"timezone":{"type":"string","maxLength":100}}}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["video_embed"]},"config":{"type":["object","null"],"properties":{"embedUrl":{"type":"string","maxLength":2048},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}},"schedule":{"type":"object","properties":{"endAt":{"type":"string","maxLength":64},"mode":{"type":"string","enum":["window"],"default":"window"},"startAt":{"type":"string","maxLength":64},"timezone":{"type":"string","maxLength":100}}},"title":{"type":"string","maxLength":120},"variant":{"type":"string","enum":["embed","feature"],"default":"embed"}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["social_icons"]},"config":{"type":["object","null"],"properties":{"alignment":{"type":"string","enum":["left","center","right"],"default":"left"},"heading":{"type":"string","maxLength":60},"items":{"type":"array","items":{"type":"object","properties":{"platform":{"type":"string","enum":["apple_podcasts","discord","email","facebook","github","instagram","linkedin","pinterest","snapchat","spotify","threads","tiktok","twitch","twitter","whatsapp","website","youtube"]},"title":{"type":"string","maxLength":60},"url":{"type":"string","maxLength":2048}},"required":["platform","url"]},"maxItems":12,"default":[]},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["footer"]},"config":{"type":["object","null"],"properties":{"alignment":{"type":"string","enum":["left","center","right"],"default":"center"},"attributionMode":{"type":"string","enum":["made_with_posty","get_posty","icon"],"default":"made_with_posty"},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}},"links":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string","maxLength":80},"url":{"type":"string","maxLength":2048}},"required":["label","url"]},"maxItems":6,"default":[]}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["social_buttons"]},"config":{"type":["object","null"],"properties":{"alignment":{"type":"string","enum":["left","center","right"],"default":"left"},"heading":{"type":"string","maxLength":60},"items":{"type":"array","items":{"type":"object","properties":{"platform":{"type":"string","enum":["apple_podcasts","discord","email","facebook","github","instagram","linkedin","pinterest","snapchat","spotify","threads","tiktok","twitch","twitter","whatsapp","website","youtube"]},"title":{"type":"string","maxLength":60},"url":{"type":"string","maxLength":2048}},"required":["platform","url"]},"maxItems":12,"default":[]},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["social_link"]},"config":{"type":["object","null"],"properties":{"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}},"platform":{"type":"string","enum":["apple_podcasts","discord","email","facebook","github","instagram","linkedin","pinterest","snapchat","spotify","threads","tiktok","twitch","twitter","whatsapp","website","youtube"]}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]}]},"LinkBioSeo":{"type":["object","null"],"properties":{"description":{"type":"string","maxLength":300},"noIndex":{"type":"boolean","default":false},"ogImageUrl":{"type":"string","maxLength":2048},"title":{"type":"string","maxLength":120}}},"LinkBioTheme":{"type":["object","null"],"properties":{"backgroundColor":{"type":"string","pattern":"^#(?:[\\dA-Fa-f]{3}|[\\dA-Fa-f]{6})$","description":"Hex colour such as #18181B."},"backgroundGradient":{"type":"string","maxLength":280},"backgroundImageUrl":{"type":"string","maxLength":2048},"buttonBorderRadius":{"type":"string","enum":["none","sm","md","lg","full"]},"buttonColor":{"type":"string","pattern":"^#(?:[\\dA-Fa-f]{3}|[\\dA-Fa-f]{6})$","description":"Hex colour such as #18181B."},"buttonStyle":{"type":"string","enum":["filled","outline","shadow","soft"]},"buttonTextColor":{"type":"string","pattern":"^#(?:[\\dA-Fa-f]{3}|[\\dA-Fa-f]{6})$","description":"Hex colour such as #18181B."},"fontFamily":{"type":"string","enum":["inter","plus-jakarta","mono","serif","instrument-serif","manrope","ibm-plex-mono","cormorant-garamond","space-grotesk","fraunces","bricolage-grotesque","outfit","dm-serif-display","unbounded","playfair-display","libre-baskerville","bebas-neue","archivo-black","syne"]},"surfaceBorderRadius":{"type":"string","enum":["none","sm","md","lg","xl"]},"textColor":{"type":"string","pattern":"^#(?:[\\dA-Fa-f]{3}|[\\dA-Fa-f]{6})$","description":"Hex colour such as #18181B."}}}}}},{"name":"update_link_bio_page","description":"Edit the draft page: handle, title, bio, avatar URL, theme or SEO. Send only the fields to change. Changes stay private until published in the app. Needs links:update.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"body":{"$ref":"#/$defs/UpdateLinkBioPageRequest"}},"required":["workspaceId","body"],"additionalProperties":false,"$defs":{"UpdateLinkBioPageRequest":{"type":"object","properties":{"handle":{"type":"string","minLength":3,"maxLength":64},"title":{"type":"string","minLength":1,"maxLength":100},"bio":{"type":["string","null"],"maxLength":300},"avatarUrl":{"type":["string","null"],"maxLength":2048},"theme":{"allOf":[{"$ref":"#/$defs/LinkBioTheme"},{"description":"Replaces the whole theme. Omitted theme fields reset to their defaults."}]},"seo":{"allOf":[{"$ref":"#/$defs/LinkBioSeo"},{"description":"Replaces the whole SEO object."}]}}},"LinkBioSeo":{"type":["object","null"],"properties":{"description":{"type":"string","maxLength":300},"noIndex":{"type":"boolean","default":false},"ogImageUrl":{"type":"string","maxLength":2048},"title":{"type":"string","maxLength":120}}},"LinkBioTheme":{"type":["object","null"],"properties":{"backgroundColor":{"type":"string","pattern":"^#(?:[\\dA-Fa-f]{3}|[\\dA-Fa-f]{6})$","description":"Hex colour such as #18181B."},"backgroundGradient":{"type":"string","maxLength":280},"backgroundImageUrl":{"type":"string","maxLength":2048},"buttonBorderRadius":{"type":"string","enum":["none","sm","md","lg","full"]},"buttonColor":{"type":"string","pattern":"^#(?:[\\dA-Fa-f]{3}|[\\dA-Fa-f]{6})$","description":"Hex colour such as #18181B."},"buttonStyle":{"type":"string","enum":["filled","outline","shadow","soft"]},"buttonTextColor":{"type":"string","pattern":"^#(?:[\\dA-Fa-f]{3}|[\\dA-Fa-f]{6})$","description":"Hex colour such as #18181B."},"fontFamily":{"type":"string","enum":["inter","plus-jakarta","mono","serif","instrument-serif","manrope","ibm-plex-mono","cormorant-garamond","space-grotesk","fraunces","bricolage-grotesque","outfit","dm-serif-display","unbounded","playfair-display","libre-baskerville","bebas-neue","archivo-black","syne"]},"surfaceBorderRadius":{"type":"string","enum":["none","sm","md","lg","xl"]},"textColor":{"type":"string","pattern":"^#(?:[\\dA-Fa-f]{3}|[\\dA-Fa-f]{6})$","description":"Hex colour such as #18181B."}}}}},"outputSchema":{"type":"object","properties":{"id":{"type":"string"},"handle":{"type":"string","description":"Draft handle. The public page uses publishedHandle."},"title":{"type":"string"},"bio":{"type":["string","null"]},"avatarUrl":{"type":["string","null"]},"theme":{"$ref":"#/$defs/LinkBioTheme"},"seo":{"$ref":"#/$defs/LinkBioSeo"},"published":{"type":"boolean","description":"Whether the public page is reachable at all."},"publishedHandle":{"type":["string","null"]},"publishedAt":{"type":["string","null"],"format":"date-time"},"hasUnpublishedChanges":{"type":"boolean","description":"True when the draft differs from what the public page shows."},"viewCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"blocks":{"type":"array","items":{"$ref":"#/$defs/LinkBioBlock"}}},"required":["id","handle","title","bio","avatarUrl","theme","seo","published","publishedHandle","publishedAt","hasUnpublishedChanges","viewCount","createdAt","updatedAt","blocks"],"$defs":{"LinkBioBlock":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["profile"]},"config":{"type":["object","null"],"properties":{"alignment":{"type":"string","enum":["left","center","right"],"default":"left"},"avatarPosition":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":100},"y":{"type":"integer","minimum":0,"maximum":100}},"required":["x","y"]},"avatarSize":{"type":"integer","minimum":72,"maximum":180},"avatarUrl":{"type":"string"},"bio":{"type":"string","maxLength":300},"coverHeight":{"type":"integer","minimum":120,"maximum":260},"coverImageUrl":{"type":"string"},"coverPosition":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":100},"y":{"type":"integer","minimum":0,"maximum":100}},"required":["x","y"]},"displayHandle":{"type":"string","maxLength":80},"displayName":{"type":"string","maxLength":100},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}},"variant":{"type":"string","enum":["avatar","avatar_text","cover","cover_avatar"],"default":"avatar_text"}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["link"]},"config":{"type":["object","null"],"properties":{"alignment":{"type":"string","enum":["left","center","right"],"default":"left"},"featured":{"type":"boolean","default":false},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}},"mode":{"type":"string","enum":["button","link"]},"schedule":{"type":"object","properties":{"endAt":{"type":"string","maxLength":64},"mode":{"type":"string","enum":["window"],"default":"window"},"startAt":{"type":"string","maxLength":64},"timezone":{"type":"string","maxLength":100}}},"showTitle":{"type":"boolean","default":true},"thumbnailPosition":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":100},"y":{"type":"integer","minimum":0,"maximum":100}},"required":["x","y"]}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["about"]},"config":{"type":["object","null"],"properties":{"alignment":{"type":"string","enum":["left","center","right"],"default":"left"},"imagePosition":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":100},"y":{"type":"integer","minimum":0,"maximum":100}},"required":["x","y"]},"imageSide":{"type":"string","enum":["left","right"],"default":"left"},"imageUrl":{"type":"string","maxLength":2048},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}},"variant":{"type":"string","enum":["text","image","image_text"],"default":"text"}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["header"]},"config":{"type":["object","null"],"properties":{"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["divider"]},"config":{"type":["object","null"],"properties":{"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["text"]},"config":{"type":["object","null"],"properties":{"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["image"]},"config":{"type":["object","null"],"properties":{"alt":{"type":"string","maxLength":300},"href":{"type":"string","maxLength":2048},"imagePosition":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":100},"y":{"type":"integer","minimum":0,"maximum":100}},"required":["x","y"]},"imageUrl":{"type":"string","maxLength":2048},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}},"schedule":{"type":"object","properties":{"endAt":{"type":"string","maxLength":64},"mode":{"type":"string","enum":["window"],"default":"window"},"startAt":{"type":"string","maxLength":64},"timezone":{"type":"string","maxLength":100}}}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["video_embed"]},"config":{"type":["object","null"],"properties":{"embedUrl":{"type":"string","maxLength":2048},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}},"schedule":{"type":"object","properties":{"endAt":{"type":"string","maxLength":64},"mode":{"type":"string","enum":["window"],"default":"window"},"startAt":{"type":"string","maxLength":64},"timezone":{"type":"string","maxLength":100}}},"title":{"type":"string","maxLength":120},"variant":{"type":"string","enum":["embed","feature"],"default":"embed"}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["social_icons"]},"config":{"type":["object","null"],"properties":{"alignment":{"type":"string","enum":["left","center","right"],"default":"left"},"heading":{"type":"string","maxLength":60},"items":{"type":"array","items":{"type":"object","properties":{"platform":{"type":"string","enum":["apple_podcasts","discord","email","facebook","github","instagram","linkedin","pinterest","snapchat","spotify","threads","tiktok","twitch","twitter","whatsapp","website","youtube"]},"title":{"type":"string","maxLength":60},"url":{"type":"string","maxLength":2048}},"required":["platform","url"]},"maxItems":12,"default":[]},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["footer"]},"config":{"type":["object","null"],"properties":{"alignment":{"type":"string","enum":["left","center","right"],"default":"center"},"attributionMode":{"type":"string","enum":["made_with_posty","get_posty","icon"],"default":"made_with_posty"},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}},"links":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string","maxLength":80},"url":{"type":"string","maxLength":2048}},"required":["label","url"]},"maxItems":6,"default":[]}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["social_buttons"]},"config":{"type":["object","null"],"properties":{"alignment":{"type":"string","enum":["left","center","right"],"default":"left"},"heading":{"type":"string","maxLength":60},"items":{"type":"array","items":{"type":"object","properties":{"platform":{"type":"string","enum":["apple_podcasts","discord","email","facebook","github","instagram","linkedin","pinterest","snapchat","spotify","threads","tiktok","twitch","twitter","whatsapp","website","youtube"]},"title":{"type":"string","maxLength":60},"url":{"type":"string","maxLength":2048}},"required":["platform","url"]},"maxItems":12,"default":[]},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["social_link"]},"config":{"type":["object","null"],"properties":{"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}},"platform":{"type":"string","enum":["apple_podcasts","discord","email","facebook","github","instagram","linkedin","pinterest","snapchat","spotify","threads","tiktok","twitch","twitter","whatsapp","website","youtube"]}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]}]},"LinkBioSeo":{"type":["object","null"],"properties":{"description":{"type":"string","maxLength":300},"noIndex":{"type":"boolean","default":false},"ogImageUrl":{"type":"string","maxLength":2048},"title":{"type":"string","maxLength":120}}},"LinkBioTheme":{"type":["object","null"],"properties":{"backgroundColor":{"type":"string","pattern":"^#(?:[\\dA-Fa-f]{3}|[\\dA-Fa-f]{6})$","description":"Hex colour such as #18181B."},"backgroundGradient":{"type":"string","maxLength":280},"backgroundImageUrl":{"type":"string","maxLength":2048},"buttonBorderRadius":{"type":"string","enum":["none","sm","md","lg","full"]},"buttonColor":{"type":"string","pattern":"^#(?:[\\dA-Fa-f]{3}|[\\dA-Fa-f]{6})$","description":"Hex colour such as #18181B."},"buttonStyle":{"type":"string","enum":["filled","outline","shadow","soft"]},"buttonTextColor":{"type":"string","pattern":"^#(?:[\\dA-Fa-f]{3}|[\\dA-Fa-f]{6})$","description":"Hex colour such as #18181B."},"fontFamily":{"type":"string","enum":["inter","plus-jakarta","mono","serif","instrument-serif","manrope","ibm-plex-mono","cormorant-garamond","space-grotesk","fraunces","bricolage-grotesque","outfit","dm-serif-display","unbounded","playfair-display","libre-baskerville","bebas-neue","archivo-black","syne"]},"surfaceBorderRadius":{"type":"string","enum":["none","sm","md","lg","xl"]},"textColor":{"type":"string","pattern":"^#(?:[\\dA-Fa-f]{3}|[\\dA-Fa-f]{6})$","description":"Hex colour such as #18181B."}}}}}},{"name":"get_link_bio_analytics","description":"Views, unique visitors, clicks per link, referrers and countries for the link-in-bio page over the last `days` days (default 30, UTC). Needs links:view.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"query":{"type":"object","properties":{"days":{"type":"integer","minimum":1,"maximum":365}},"required":[],"additionalProperties":false}},"required":["workspaceId"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"rangeDays":{"type":"integer"},"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time"},"totals":{"type":"object","properties":{"allTimeViews":{"type":"integer"},"views":{"type":"integer"},"uniqueViews":{"type":"integer"},"clicks":{"type":"integer"}},"required":["allTimeViews","views","uniqueViews","clicks"]},"viewsByDay":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"views":{"type":"integer"},"uniques":{"type":"integer"}},"required":["date","views","uniques"]}},"clicksByDay":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"clicks":{"type":"integer"}},"required":["date","clicks"]}},"links":{"type":"array","items":{"type":"object","properties":{"blockId":{"type":["string","null"]},"blockTitle":{"type":["string","null"]},"blockType":{"type":["string","null"],"enum":["profile","about","social_buttons","link","header","divider","social_icons","social_link","text","image","video_embed","footer",null]},"targetUrl":{"type":["string","null"]},"clicks":{"type":"integer"}},"required":["blockId","blockTitle","blockType","targetUrl","clicks"]}},"referrers":{"type":"array","items":{"type":"object","properties":{"referrer":{"type":["string","null"]},"views":{"type":"integer"}},"required":["referrer","views"]}},"countries":{"type":"array","items":{"type":"object","properties":{"country":{"type":["string","null"]},"views":{"type":"integer"}},"required":["country","views"]}}},"required":["rangeDays","from","to","totals","viewsByDay","clicksByDay","links","referrers","countries"]}},{"name":"check_link_bio_handle","description":"Check whether a link-in-bio handle (the name in posty.social/@handle) is valid and free. Handles are shared across every workspace.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"query":{"type":"object","properties":{"handle":{"type":"string","minLength":1,"maxLength":64}},"required":["handle"],"additionalProperties":false}},"required":["workspaceId","query"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"handle":{"type":"string"},"available":{"type":"boolean"},"reason":{"type":["string","null"],"description":"Why the handle cannot be used, when it is not available."}},"required":["handle","available","reason"]}},{"name":"add_link_bio_block","description":"Add a block to the draft link-in-bio page. Set type and supply title, description, url and thumbnailUrl as top-level body fields where applicable; config holds additional type-specific settings. Returns the new block. Changes become public only when published in the app. Requires links:update.","annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"body":{"$ref":"#/$defs/AddLinkBioBlockRequest"},"idempotencyKey":{"type":"string","maxLength":255,"description":"Reuse this key when retrying the same action."}},"required":["workspaceId","body"],"additionalProperties":false,"$defs":{"AddLinkBioBlockRequest":{"oneOf":[{"type":"object","properties":{"title":{"type":["string","null"],"maxLength":120},"description":{"type":["string","null"],"maxLength":1000},"url":{"type":["string","null"],"maxLength":2048,"description":"http, https, mailto, sms or tel link. A bare domain gets https://."},"thumbnailUrl":{"type":["string","null"],"maxLength":2048},"visible":{"type":"boolean"},"insertIndex":{"type":"integer","minimum":0,"maximum":200,"description":"Zero-based draft position. Omit to append."},"type":{"type":"string","enum":["profile"]},"config":{"type":"object","properties":{"alignment":{"type":"string","enum":["left","center","right"],"default":"left"},"avatarPosition":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":100},"y":{"type":"integer","minimum":0,"maximum":100}},"required":["x","y"]},"avatarSize":{"type":"integer","minimum":72,"maximum":180},"avatarUrl":{"type":"string"},"bio":{"type":"string","maxLength":300},"coverHeight":{"type":"integer","minimum":120,"maximum":260},"coverImageUrl":{"type":"string"},"coverPosition":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":100},"y":{"type":"integer","minimum":0,"maximum":100}},"required":["x","y"]},"displayHandle":{"type":"string","maxLength":80},"displayName":{"type":"string","maxLength":100},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}},"variant":{"type":"string","enum":["avatar","avatar_text","cover","cover_avatar"],"default":"avatar_text"}}}},"required":["type"]},{"type":"object","properties":{"title":{"type":["string","null"],"maxLength":120},"description":{"type":["string","null"],"maxLength":1000},"url":{"type":["string","null"],"maxLength":2048,"description":"http, https, mailto, sms or tel link. A bare domain gets https://."},"thumbnailUrl":{"type":["string","null"],"maxLength":2048},"visible":{"type":"boolean"},"insertIndex":{"type":"integer","minimum":0,"maximum":200,"description":"Zero-based draft position. Omit to append."},"type":{"type":"string","enum":["link"]},"config":{"type":"object","properties":{"alignment":{"type":"string","enum":["left","center","right"],"default":"left"},"featured":{"type":"boolean","default":false},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}},"mode":{"type":"string","enum":["button","link"]},"schedule":{"type":"object","properties":{"endAt":{"type":"string","maxLength":64},"mode":{"type":"string","enum":["window"],"default":"window"},"startAt":{"type":"string","maxLength":64},"timezone":{"type":"string","maxLength":100}}},"showTitle":{"type":"boolean","default":true},"thumbnailPosition":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":100},"y":{"type":"integer","minimum":0,"maximum":100}},"required":["x","y"]}}}},"required":["type"]},{"type":"object","properties":{"title":{"type":["string","null"],"maxLength":120},"description":{"type":["string","null"],"maxLength":1000},"url":{"type":["string","null"],"maxLength":2048,"description":"http, https, mailto, sms or tel link. A bare domain gets https://."},"thumbnailUrl":{"type":["string","null"],"maxLength":2048},"visible":{"type":"boolean"},"insertIndex":{"type":"integer","minimum":0,"maximum":200,"description":"Zero-based draft position. Omit to append."},"type":{"type":"string","enum":["about"]},"config":{"type":"object","properties":{"alignment":{"type":"string","enum":["left","center","right"],"default":"left"},"imagePosition":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":100},"y":{"type":"integer","minimum":0,"maximum":100}},"required":["x","y"]},"imageSide":{"type":"string","enum":["left","right"],"default":"left"},"imageUrl":{"type":"string","maxLength":2048},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}},"variant":{"type":"string","enum":["text","image","image_text"],"default":"text"}}}},"required":["type"]},{"type":"object","properties":{"title":{"type":["string","null"],"maxLength":120},"description":{"type":["string","null"],"maxLength":1000},"url":{"type":["string","null"],"maxLength":2048,"description":"http, https, mailto, sms or tel link. A bare domain gets https://."},"thumbnailUrl":{"type":["string","null"],"maxLength":2048},"visible":{"type":"boolean"},"insertIndex":{"type":"integer","minimum":0,"maximum":200,"description":"Zero-based draft position. Omit to append."},"type":{"type":"string","enum":["header"]},"config":{"type":"object","properties":{"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}}}}},"required":["type"]},{"type":"object","properties":{"title":{"type":["string","null"],"maxLength":120},"description":{"type":["string","null"],"maxLength":1000},"url":{"type":["string","null"],"maxLength":2048,"description":"http, https, mailto, sms or tel link. A bare domain gets https://."},"thumbnailUrl":{"type":["string","null"],"maxLength":2048},"visible":{"type":"boolean"},"insertIndex":{"type":"integer","minimum":0,"maximum":200,"description":"Zero-based draft position. Omit to append."},"type":{"type":"string","enum":["divider"]},"config":{"type":"object","properties":{"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}}}}},"required":["type"]},{"type":"object","properties":{"title":{"type":["string","null"],"maxLength":120},"description":{"type":["string","null"],"maxLength":1000},"url":{"type":["string","null"],"maxLength":2048,"description":"http, https, mailto, sms or tel link. A bare domain gets https://."},"thumbnailUrl":{"type":["string","null"],"maxLength":2048},"visible":{"type":"boolean"},"insertIndex":{"type":"integer","minimum":0,"maximum":200,"description":"Zero-based draft position. Omit to append."},"type":{"type":"string","enum":["text"]},"config":{"type":"object","properties":{"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}}}}},"required":["type"]},{"type":"object","properties":{"title":{"type":["string","null"],"maxLength":120},"description":{"type":["string","null"],"maxLength":1000},"url":{"type":["string","null"],"maxLength":2048,"description":"http, https, mailto, sms or tel link. A bare domain gets https://."},"thumbnailUrl":{"type":["string","null"],"maxLength":2048},"visible":{"type":"boolean"},"insertIndex":{"type":"integer","minimum":0,"maximum":200,"description":"Zero-based draft position. Omit to append."},"type":{"type":"string","enum":["image"]},"config":{"type":"object","properties":{"alt":{"type":"string","maxLength":300},"href":{"type":"string","maxLength":2048},"imagePosition":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":100},"y":{"type":"integer","minimum":0,"maximum":100}},"required":["x","y"]},"imageUrl":{"type":"string","maxLength":2048},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}},"schedule":{"type":"object","properties":{"endAt":{"type":"string","maxLength":64},"mode":{"type":"string","enum":["window"],"default":"window"},"startAt":{"type":"string","maxLength":64},"timezone":{"type":"string","maxLength":100}}}}}},"required":["type"]},{"type":"object","properties":{"title":{"type":["string","null"],"maxLength":120},"description":{"type":["string","null"],"maxLength":1000},"url":{"type":["string","null"],"maxLength":2048,"description":"http, https, mailto, sms or tel link. A bare domain gets https://."},"thumbnailUrl":{"type":["string","null"],"maxLength":2048},"visible":{"type":"boolean"},"insertIndex":{"type":"integer","minimum":0,"maximum":200,"description":"Zero-based draft position. Omit to append."},"type":{"type":"string","enum":["video_embed"]},"config":{"type":"object","properties":{"embedUrl":{"type":"string","maxLength":2048},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}},"schedule":{"type":"object","properties":{"endAt":{"type":"string","maxLength":64},"mode":{"type":"string","enum":["window"],"default":"window"},"startAt":{"type":"string","maxLength":64},"timezone":{"type":"string","maxLength":100}}},"title":{"type":"string","maxLength":120},"variant":{"type":"string","enum":["embed","feature"],"default":"embed"}}}},"required":["type"]},{"type":"object","properties":{"title":{"type":["string","null"],"maxLength":120},"description":{"type":["string","null"],"maxLength":1000},"url":{"type":["string","null"],"maxLength":2048,"description":"http, https, mailto, sms or tel link. A bare domain gets https://."},"thumbnailUrl":{"type":["string","null"],"maxLength":2048},"visible":{"type":"boolean"},"insertIndex":{"type":"integer","minimum":0,"maximum":200,"description":"Zero-based draft position. Omit to append."},"type":{"type":"string","enum":["social_icons"]},"config":{"type":"object","properties":{"alignment":{"type":"string","enum":["left","center","right"],"default":"left"},"heading":{"type":"string","maxLength":60},"items":{"type":"array","items":{"type":"object","properties":{"platform":{"type":"string","enum":["apple_podcasts","discord","email","facebook","github","instagram","linkedin","pinterest","snapchat","spotify","threads","tiktok","twitch","twitter","whatsapp","website","youtube"]},"title":{"type":"string","maxLength":60},"url":{"type":"string","maxLength":2048}},"required":["platform","url"]},"maxItems":12,"default":[]},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}}}}},"required":["type"]},{"type":"object","properties":{"title":{"type":["string","null"],"maxLength":120},"description":{"type":["string","null"],"maxLength":1000},"url":{"type":["string","null"],"maxLength":2048,"description":"http, https, mailto, sms or tel link. A bare domain gets https://."},"thumbnailUrl":{"type":["string","null"],"maxLength":2048},"visible":{"type":"boolean"},"insertIndex":{"type":"integer","minimum":0,"maximum":200,"description":"Zero-based draft position. Omit to append."},"type":{"type":"string","enum":["footer"]},"config":{"type":"object","properties":{"alignment":{"type":"string","enum":["left","center","right"],"default":"center"},"attributionMode":{"type":"string","enum":["made_with_posty","get_posty","icon"],"default":"made_with_posty"},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}},"links":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string","maxLength":80},"url":{"type":"string","maxLength":2048}},"required":["label","url"]},"maxItems":6,"default":[]}}}},"required":["type"]}]}}},"outputSchema":{"type":"object","properties":{"block":{"$ref":"#/$defs/LinkBioBlock"}},"required":["block"],"$defs":{"LinkBioBlock":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["profile"]},"config":{"type":["object","null"],"properties":{"alignment":{"type":"string","enum":["left","center","right"],"default":"left"},"avatarPosition":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":100},"y":{"type":"integer","minimum":0,"maximum":100}},"required":["x","y"]},"avatarSize":{"type":"integer","minimum":72,"maximum":180},"avatarUrl":{"type":"string"},"bio":{"type":"string","maxLength":300},"coverHeight":{"type":"integer","minimum":120,"maximum":260},"coverImageUrl":{"type":"string"},"coverPosition":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":100},"y":{"type":"integer","minimum":0,"maximum":100}},"required":["x","y"]},"displayHandle":{"type":"string","maxLength":80},"displayName":{"type":"string","maxLength":100},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}},"variant":{"type":"string","enum":["avatar","avatar_text","cover","cover_avatar"],"default":"avatar_text"}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["link"]},"config":{"type":["object","null"],"properties":{"alignment":{"type":"string","enum":["left","center","right"],"default":"left"},"featured":{"type":"boolean","default":false},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}},"mode":{"type":"string","enum":["button","link"]},"schedule":{"type":"object","properties":{"endAt":{"type":"string","maxLength":64},"mode":{"type":"string","enum":["window"],"default":"window"},"startAt":{"type":"string","maxLength":64},"timezone":{"type":"string","maxLength":100}}},"showTitle":{"type":"boolean","default":true},"thumbnailPosition":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":100},"y":{"type":"integer","minimum":0,"maximum":100}},"required":["x","y"]}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["about"]},"config":{"type":["object","null"],"properties":{"alignment":{"type":"string","enum":["left","center","right"],"default":"left"},"imagePosition":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":100},"y":{"type":"integer","minimum":0,"maximum":100}},"required":["x","y"]},"imageSide":{"type":"string","enum":["left","right"],"default":"left"},"imageUrl":{"type":"string","maxLength":2048},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}},"variant":{"type":"string","enum":["text","image","image_text"],"default":"text"}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["header"]},"config":{"type":["object","null"],"properties":{"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["divider"]},"config":{"type":["object","null"],"properties":{"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["text"]},"config":{"type":["object","null"],"properties":{"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["image"]},"config":{"type":["object","null"],"properties":{"alt":{"type":"string","maxLength":300},"href":{"type":"string","maxLength":2048},"imagePosition":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":100},"y":{"type":"integer","minimum":0,"maximum":100}},"required":["x","y"]},"imageUrl":{"type":"string","maxLength":2048},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}},"schedule":{"type":"object","properties":{"endAt":{"type":"string","maxLength":64},"mode":{"type":"string","enum":["window"],"default":"window"},"startAt":{"type":"string","maxLength":64},"timezone":{"type":"string","maxLength":100}}}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["video_embed"]},"config":{"type":["object","null"],"properties":{"embedUrl":{"type":"string","maxLength":2048},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}},"schedule":{"type":"object","properties":{"endAt":{"type":"string","maxLength":64},"mode":{"type":"string","enum":["window"],"default":"window"},"startAt":{"type":"string","maxLength":64},"timezone":{"type":"string","maxLength":100}}},"title":{"type":"string","maxLength":120},"variant":{"type":"string","enum":["embed","feature"],"default":"embed"}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["social_icons"]},"config":{"type":["object","null"],"properties":{"alignment":{"type":"string","enum":["left","center","right"],"default":"left"},"heading":{"type":"string","maxLength":60},"items":{"type":"array","items":{"type":"object","properties":{"platform":{"type":"string","enum":["apple_podcasts","discord","email","facebook","github","instagram","linkedin","pinterest","snapchat","spotify","threads","tiktok","twitch","twitter","whatsapp","website","youtube"]},"title":{"type":"string","maxLength":60},"url":{"type":"string","maxLength":2048}},"required":["platform","url"]},"maxItems":12,"default":[]},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["footer"]},"config":{"type":["object","null"],"properties":{"alignment":{"type":"string","enum":["left","center","right"],"default":"center"},"attributionMode":{"type":"string","enum":["made_with_posty","get_posty","icon"],"default":"made_with_posty"},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}},"links":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string","maxLength":80},"url":{"type":"string","maxLength":2048}},"required":["label","url"]},"maxItems":6,"default":[]}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["social_buttons"]},"config":{"type":["object","null"],"properties":{"alignment":{"type":"string","enum":["left","center","right"],"default":"left"},"heading":{"type":"string","maxLength":60},"items":{"type":"array","items":{"type":"object","properties":{"platform":{"type":"string","enum":["apple_podcasts","discord","email","facebook","github","instagram","linkedin","pinterest","snapchat","spotify","threads","tiktok","twitch","twitter","whatsapp","website","youtube"]},"title":{"type":"string","maxLength":60},"url":{"type":"string","maxLength":2048}},"required":["platform","url"]},"maxItems":12,"default":[]},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["social_link"]},"config":{"type":["object","null"],"properties":{"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}},"platform":{"type":"string","enum":["apple_podcasts","discord","email","facebook","github","instagram","linkedin","pinterest","snapchat","spotify","threads","tiktok","twitch","twitter","whatsapp","website","youtube"]}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]}]}}}},{"name":"update_link_bio_block","description":"Edit a draft block. `type` must match the block's current type. Send only the fields to change; `config` replaces the stored config, so send it in full. Needs links:update.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"blockId":{"type":"string","minLength":1}},"required":["blockId"],"additionalProperties":false},"body":{"$ref":"#/$defs/UpdateLinkBioBlockRequest"}},"required":["workspaceId","path","body"],"additionalProperties":false,"$defs":{"UpdateLinkBioBlockRequest":{"oneOf":[{"type":"object","properties":{"title":{"type":["string","null"],"maxLength":120},"description":{"type":["string","null"],"maxLength":1000},"url":{"type":["string","null"],"maxLength":2048,"description":"http, https, mailto, sms or tel link. A bare domain gets https://."},"thumbnailUrl":{"type":["string","null"],"maxLength":2048},"visible":{"type":"boolean"},"type":{"type":"string","enum":["profile"]},"config":{"type":"object","properties":{"alignment":{"type":"string","enum":["left","center","right"],"default":"left"},"avatarPosition":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":100},"y":{"type":"integer","minimum":0,"maximum":100}},"required":["x","y"]},"avatarSize":{"type":"integer","minimum":72,"maximum":180},"avatarUrl":{"type":"string"},"bio":{"type":"string","maxLength":300},"coverHeight":{"type":"integer","minimum":120,"maximum":260},"coverImageUrl":{"type":"string"},"coverPosition":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":100},"y":{"type":"integer","minimum":0,"maximum":100}},"required":["x","y"]},"displayHandle":{"type":"string","maxLength":80},"displayName":{"type":"string","maxLength":100},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}},"variant":{"type":"string","enum":["avatar","avatar_text","cover","cover_avatar"],"default":"avatar_text"}}}},"required":["type"]},{"type":"object","properties":{"title":{"type":["string","null"],"maxLength":120},"description":{"type":["string","null"],"maxLength":1000},"url":{"type":["string","null"],"maxLength":2048,"description":"http, https, mailto, sms or tel link. A bare domain gets https://."},"thumbnailUrl":{"type":["string","null"],"maxLength":2048},"visible":{"type":"boolean"},"type":{"type":"string","enum":["link"]},"config":{"type":"object","properties":{"alignment":{"type":"string","enum":["left","center","right"],"default":"left"},"featured":{"type":"boolean","default":false},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}},"mode":{"type":"string","enum":["button","link"]},"schedule":{"type":"object","properties":{"endAt":{"type":"string","maxLength":64},"mode":{"type":"string","enum":["window"],"default":"window"},"startAt":{"type":"string","maxLength":64},"timezone":{"type":"string","maxLength":100}}},"showTitle":{"type":"boolean","default":true},"thumbnailPosition":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":100},"y":{"type":"integer","minimum":0,"maximum":100}},"required":["x","y"]}}}},"required":["type"]},{"type":"object","properties":{"title":{"type":["string","null"],"maxLength":120},"description":{"type":["string","null"],"maxLength":1000},"url":{"type":["string","null"],"maxLength":2048,"description":"http, https, mailto, sms or tel link. A bare domain gets https://."},"thumbnailUrl":{"type":["string","null"],"maxLength":2048},"visible":{"type":"boolean"},"type":{"type":"string","enum":["about"]},"config":{"type":"object","properties":{"alignment":{"type":"string","enum":["left","center","right"],"default":"left"},"imagePosition":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":100},"y":{"type":"integer","minimum":0,"maximum":100}},"required":["x","y"]},"imageSide":{"type":"string","enum":["left","right"],"default":"left"},"imageUrl":{"type":"string","maxLength":2048},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}},"variant":{"type":"string","enum":["text","image","image_text"],"default":"text"}}}},"required":["type"]},{"type":"object","properties":{"title":{"type":["string","null"],"maxLength":120},"description":{"type":["string","null"],"maxLength":1000},"url":{"type":["string","null"],"maxLength":2048,"description":"http, https, mailto, sms or tel link. A bare domain gets https://."},"thumbnailUrl":{"type":["string","null"],"maxLength":2048},"visible":{"type":"boolean"},"type":{"type":"string","enum":["header"]},"config":{"type":"object","properties":{"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}}}}},"required":["type"]},{"type":"object","properties":{"title":{"type":["string","null"],"maxLength":120},"description":{"type":["string","null"],"maxLength":1000},"url":{"type":["string","null"],"maxLength":2048,"description":"http, https, mailto, sms or tel link. A bare domain gets https://."},"thumbnailUrl":{"type":["string","null"],"maxLength":2048},"visible":{"type":"boolean"},"type":{"type":"string","enum":["divider"]},"config":{"type":"object","properties":{"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}}}}},"required":["type"]},{"type":"object","properties":{"title":{"type":["string","null"],"maxLength":120},"description":{"type":["string","null"],"maxLength":1000},"url":{"type":["string","null"],"maxLength":2048,"description":"http, https, mailto, sms or tel link. A bare domain gets https://."},"thumbnailUrl":{"type":["string","null"],"maxLength":2048},"visible":{"type":"boolean"},"type":{"type":"string","enum":["text"]},"config":{"type":"object","properties":{"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}}}}},"required":["type"]},{"type":"object","properties":{"title":{"type":["string","null"],"maxLength":120},"description":{"type":["string","null"],"maxLength":1000},"url":{"type":["string","null"],"maxLength":2048,"description":"http, https, mailto, sms or tel link. A bare domain gets https://."},"thumbnailUrl":{"type":["string","null"],"maxLength":2048},"visible":{"type":"boolean"},"type":{"type":"string","enum":["image"]},"config":{"type":"object","properties":{"alt":{"type":"string","maxLength":300},"href":{"type":"string","maxLength":2048},"imagePosition":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":100},"y":{"type":"integer","minimum":0,"maximum":100}},"required":["x","y"]},"imageUrl":{"type":"string","maxLength":2048},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}},"schedule":{"type":"object","properties":{"endAt":{"type":"string","maxLength":64},"mode":{"type":"string","enum":["window"],"default":"window"},"startAt":{"type":"string","maxLength":64},"timezone":{"type":"string","maxLength":100}}}}}},"required":["type"]},{"type":"object","properties":{"title":{"type":["string","null"],"maxLength":120},"description":{"type":["string","null"],"maxLength":1000},"url":{"type":["string","null"],"maxLength":2048,"description":"http, https, mailto, sms or tel link. A bare domain gets https://."},"thumbnailUrl":{"type":["string","null"],"maxLength":2048},"visible":{"type":"boolean"},"type":{"type":"string","enum":["video_embed"]},"config":{"type":"object","properties":{"embedUrl":{"type":"string","maxLength":2048},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}},"schedule":{"type":"object","properties":{"endAt":{"type":"string","maxLength":64},"mode":{"type":"string","enum":["window"],"default":"window"},"startAt":{"type":"string","maxLength":64},"timezone":{"type":"string","maxLength":100}}},"title":{"type":"string","maxLength":120},"variant":{"type":"string","enum":["embed","feature"],"default":"embed"}}}},"required":["type"]},{"type":"object","properties":{"title":{"type":["string","null"],"maxLength":120},"description":{"type":["string","null"],"maxLength":1000},"url":{"type":["string","null"],"maxLength":2048,"description":"http, https, mailto, sms or tel link. A bare domain gets https://."},"thumbnailUrl":{"type":["string","null"],"maxLength":2048},"visible":{"type":"boolean"},"type":{"type":"string","enum":["social_icons"]},"config":{"type":"object","properties":{"alignment":{"type":"string","enum":["left","center","right"],"default":"left"},"heading":{"type":"string","maxLength":60},"items":{"type":"array","items":{"type":"object","properties":{"platform":{"type":"string","enum":["apple_podcasts","discord","email","facebook","github","instagram","linkedin","pinterest","snapchat","spotify","threads","tiktok","twitch","twitter","whatsapp","website","youtube"]},"title":{"type":"string","maxLength":60},"url":{"type":"string","maxLength":2048}},"required":["platform","url"]},"maxItems":12,"default":[]},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}}}}},"required":["type"]},{"type":"object","properties":{"title":{"type":["string","null"],"maxLength":120},"description":{"type":["string","null"],"maxLength":1000},"url":{"type":["string","null"],"maxLength":2048,"description":"http, https, mailto, sms or tel link. A bare domain gets https://."},"thumbnailUrl":{"type":["string","null"],"maxLength":2048},"visible":{"type":"boolean"},"type":{"type":"string","enum":["footer"]},"config":{"type":"object","properties":{"alignment":{"type":"string","enum":["left","center","right"],"default":"center"},"attributionMode":{"type":"string","enum":["made_with_posty","get_posty","icon"],"default":"made_with_posty"},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}},"links":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string","maxLength":80},"url":{"type":"string","maxLength":2048}},"required":["label","url"]},"maxItems":6,"default":[]}}}},"required":["type"]}]}}},"outputSchema":{"type":"object","properties":{"block":{"$ref":"#/$defs/LinkBioBlock"}},"required":["block"],"$defs":{"LinkBioBlock":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["profile"]},"config":{"type":["object","null"],"properties":{"alignment":{"type":"string","enum":["left","center","right"],"default":"left"},"avatarPosition":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":100},"y":{"type":"integer","minimum":0,"maximum":100}},"required":["x","y"]},"avatarSize":{"type":"integer","minimum":72,"maximum":180},"avatarUrl":{"type":"string"},"bio":{"type":"string","maxLength":300},"coverHeight":{"type":"integer","minimum":120,"maximum":260},"coverImageUrl":{"type":"string"},"coverPosition":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":100},"y":{"type":"integer","minimum":0,"maximum":100}},"required":["x","y"]},"displayHandle":{"type":"string","maxLength":80},"displayName":{"type":"string","maxLength":100},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}},"variant":{"type":"string","enum":["avatar","avatar_text","cover","cover_avatar"],"default":"avatar_text"}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["link"]},"config":{"type":["object","null"],"properties":{"alignment":{"type":"string","enum":["left","center","right"],"default":"left"},"featured":{"type":"boolean","default":false},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}},"mode":{"type":"string","enum":["button","link"]},"schedule":{"type":"object","properties":{"endAt":{"type":"string","maxLength":64},"mode":{"type":"string","enum":["window"],"default":"window"},"startAt":{"type":"string","maxLength":64},"timezone":{"type":"string","maxLength":100}}},"showTitle":{"type":"boolean","default":true},"thumbnailPosition":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":100},"y":{"type":"integer","minimum":0,"maximum":100}},"required":["x","y"]}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["about"]},"config":{"type":["object","null"],"properties":{"alignment":{"type":"string","enum":["left","center","right"],"default":"left"},"imagePosition":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":100},"y":{"type":"integer","minimum":0,"maximum":100}},"required":["x","y"]},"imageSide":{"type":"string","enum":["left","right"],"default":"left"},"imageUrl":{"type":"string","maxLength":2048},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}},"variant":{"type":"string","enum":["text","image","image_text"],"default":"text"}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["header"]},"config":{"type":["object","null"],"properties":{"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["divider"]},"config":{"type":["object","null"],"properties":{"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["text"]},"config":{"type":["object","null"],"properties":{"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["image"]},"config":{"type":["object","null"],"properties":{"alt":{"type":"string","maxLength":300},"href":{"type":"string","maxLength":2048},"imagePosition":{"type":"object","properties":{"x":{"type":"integer","minimum":0,"maximum":100},"y":{"type":"integer","minimum":0,"maximum":100}},"required":["x","y"]},"imageUrl":{"type":"string","maxLength":2048},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}},"schedule":{"type":"object","properties":{"endAt":{"type":"string","maxLength":64},"mode":{"type":"string","enum":["window"],"default":"window"},"startAt":{"type":"string","maxLength":64},"timezone":{"type":"string","maxLength":100}}}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["video_embed"]},"config":{"type":["object","null"],"properties":{"embedUrl":{"type":"string","maxLength":2048},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}},"schedule":{"type":"object","properties":{"endAt":{"type":"string","maxLength":64},"mode":{"type":"string","enum":["window"],"default":"window"},"startAt":{"type":"string","maxLength":64},"timezone":{"type":"string","maxLength":100}}},"title":{"type":"string","maxLength":120},"variant":{"type":"string","enum":["embed","feature"],"default":"embed"}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["social_icons"]},"config":{"type":["object","null"],"properties":{"alignment":{"type":"string","enum":["left","center","right"],"default":"left"},"heading":{"type":"string","maxLength":60},"items":{"type":"array","items":{"type":"object","properties":{"platform":{"type":"string","enum":["apple_podcasts","discord","email","facebook","github","instagram","linkedin","pinterest","snapchat","spotify","threads","tiktok","twitch","twitter","whatsapp","website","youtube"]},"title":{"type":"string","maxLength":60},"url":{"type":"string","maxLength":2048}},"required":["platform","url"]},"maxItems":12,"default":[]},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["footer"]},"config":{"type":["object","null"],"properties":{"alignment":{"type":"string","enum":["left","center","right"],"default":"center"},"attributionMode":{"type":"string","enum":["made_with_posty","get_posty","icon"],"default":"made_with_posty"},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}},"links":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string","maxLength":80},"url":{"type":"string","maxLength":2048}},"required":["label","url"]},"maxItems":6,"default":[]}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["social_buttons"]},"config":{"type":["object","null"],"properties":{"alignment":{"type":"string","enum":["left","center","right"],"default":"left"},"heading":{"type":"string","maxLength":60},"items":{"type":"array","items":{"type":"object","properties":{"platform":{"type":"string","enum":["apple_podcasts","discord","email","facebook","github","instagram","linkedin","pinterest","snapchat","spotify","threads","tiktok","twitch","twitter","whatsapp","website","youtube"]},"title":{"type":"string","maxLength":60},"url":{"type":"string","maxLength":2048}},"required":["platform","url"]},"maxItems":12,"default":[]},"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"description":{"type":["string","null"]},"url":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"]},"sortOrder":{"type":"integer"},"visible":{"type":"boolean"},"clickCount":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["social_link"]},"config":{"type":["object","null"],"properties":{"layout":{"type":"object","properties":{"side":{"type":"string","enum":["left","right"]},"width":{"type":"string","enum":["full","half"],"default":"full"}}},"platform":{"type":"string","enum":["apple_podcasts","discord","email","facebook","github","instagram","linkedin","pinterest","snapchat","spotify","threads","tiktok","twitch","twitter","whatsapp","website","youtube"]}},"description":"Type-specific settings. Null when the stored value cannot be read for this type."}},"required":["id","title","description","url","thumbnailUrl","sortOrder","visible","clickCount","createdAt","updatedAt","type","config"]}]}}}},{"name":"delete_link_bio_block","description":"Remove a block from the draft page. The public page keeps it until changes are published. Needs links:update.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"blockId":{"type":"string","minLength":1}},"required":["blockId"],"additionalProperties":false}},"required":["workspaceId","path"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"deleted":{"type":"boolean","description":"True when the record was removed."}},"required":["deleted"],"additionalProperties":false}},{"name":"reorder_link_bio_blocks","description":"Set the order of the draft page's blocks. `blockIds` must list every block on the page exactly once. Needs links:update.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"body":{"$ref":"#/$defs/ReorderLinkBioBlocksRequest"}},"required":["workspaceId","body"],"additionalProperties":false,"$defs":{"ReorderLinkBioBlocksRequest":{"type":"object","properties":{"blockIds":{"type":"array","items":{"type":"string","minLength":1},"minItems":1,"maxItems":200,"description":"Every block id on the page, in the new order."}},"required":["blockIds"]}}},"outputSchema":{"type":"object","properties":{"blockIds":{"type":"array","items":{"type":"string"}}},"required":["blockIds"]}},{"name":"list_inbox_conversations","description":"List direct message conversations from connected social channels, newest activity first. Filter by status (open, archived or spam, default open) and channelId; days is clamped to the plan's inbox history window. Requires inbox:view.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"query":{"type":"object","properties":{"status":{"type":"string","enum":["open","archived","spam"],"default":"open"},"channelId":{"type":"string","minLength":1},"days":{"type":"integer","minimum":1,"maximum":365,"default":30},"limit":{"type":"integer","minimum":1,"maximum":100,"default":25},"starting_after":{"type":"string"}},"required":[],"additionalProperties":false}},"required":["workspaceId"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"object":{"type":"string","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/$defs/InboxConversation"}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]},"unreadTotal":{"type":"integer"},"windowDays":{"type":"integer"}},"required":["object","data","has_more","next_cursor","unreadTotal","windowDays"],"$defs":{"InboxConversation":{"type":"object","properties":{"id":{"type":"string"},"channelId":{"type":"string"},"platform":{"type":"string","enum":["bluesky","discord","facebook","instagram","linkedin","pinterest","threads","tiktok","wordpress","youtube"]},"externalConversationId":{"type":"string"},"participant":{"type":"object","properties":{"id":{"type":["string","null"]},"name":{"type":["string","null"]},"username":{"type":["string","null"]},"avatarUrl":{"type":["string","null"]}},"required":["id","name","username","avatarUrl"]},"lastMessageText":{"type":["string","null"]},"lastMessageAt":{"type":["string","null"],"format":"date-time"},"lastReadAt":{"type":["string","null"],"format":"date-time"},"participantLastReadAt":{"type":["string","null"],"format":"date-time"},"participantLastDeliveredAt":{"type":["string","null"],"format":"date-time"},"unreadCount":{"type":"integer"},"status":{"type":"string","enum":["open","archived","spam"]},"standby":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"channel":{"type":"object","properties":{"name":{"type":"string"},"platform":{"type":"string","enum":["bluesky","discord","facebook","instagram","linkedin","pinterest","threads","tiktok","wordpress","youtube"]},"avatarUrl":{"type":["string","null"]}},"required":["name","platform","avatarUrl"]}},"required":["id","channelId","platform","externalConversationId","participant","lastMessageText","lastMessageAt","lastReadAt","participantLastReadAt","participantLastDeliveredAt","unreadCount","status","standby","createdAt","updatedAt","channel"]}}}},{"name":"list_conversation_messages","description":"List messages in one inbox conversation, newest first, with the conversation itself. Pass next_cursor as starting_after to page back through older messages. Reading does not mark the conversation read. Requires inbox:view.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string","minLength":1}},"required":["id"],"additionalProperties":false},"query":{"type":"object","properties":{"limit":{"type":"integer","minimum":1,"maximum":100,"default":50},"starting_after":{"type":"string"}},"required":[],"additionalProperties":false}},"required":["workspaceId","path"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"object":{"type":"string","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/$defs/InboxMessage"}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]},"conversation":{"$ref":"#/$defs/InboxConversation"}},"required":["object","data","has_more","next_cursor","conversation"],"$defs":{"InboxConversation":{"type":"object","properties":{"id":{"type":"string"},"channelId":{"type":"string"},"platform":{"type":"string","enum":["bluesky","discord","facebook","instagram","linkedin","pinterest","threads","tiktok","wordpress","youtube"]},"externalConversationId":{"type":"string"},"participant":{"type":"object","properties":{"id":{"type":["string","null"]},"name":{"type":["string","null"]},"username":{"type":["string","null"]},"avatarUrl":{"type":["string","null"]}},"required":["id","name","username","avatarUrl"]},"lastMessageText":{"type":["string","null"]},"lastMessageAt":{"type":["string","null"],"format":"date-time"},"lastReadAt":{"type":["string","null"],"format":"date-time"},"participantLastReadAt":{"type":["string","null"],"format":"date-time"},"participantLastDeliveredAt":{"type":["string","null"],"format":"date-time"},"unreadCount":{"type":"integer"},"status":{"type":"string","enum":["open","archived","spam"]},"standby":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"channel":{"type":"object","properties":{"name":{"type":"string"},"platform":{"type":"string","enum":["bluesky","discord","facebook","instagram","linkedin","pinterest","threads","tiktok","wordpress","youtube"]},"avatarUrl":{"type":["string","null"]}},"required":["name","platform","avatarUrl"]}},"required":["id","channelId","platform","externalConversationId","participant","lastMessageText","lastMessageAt","lastReadAt","participantLastReadAt","participantLastDeliveredAt","unreadCount","status","standby","createdAt","updatedAt","channel"]},"InboxMessage":{"type":"object","properties":{"id":{"type":"string"},"conversationId":{"type":"string"},"externalMessageId":{"type":["string","null"]},"fromParticipant":{"type":"boolean"},"senderName":{"type":["string","null"]},"messageText":{"type":["string","null"]},"attachmentType":{"type":["string","null"]},"attachmentUrl":{"type":["string","null"]},"content":{"type":"object","properties":{"unsupported":{"type":"boolean"},"sender":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"username":{"type":"string"},"email":{"type":"string"}}},"recipients":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"username":{"type":"string"},"email":{"type":"string"}}}},"attachments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string"},"name":{"type":"string"},"url":{"type":"string"},"previewUrl":{"type":"string"},"width":{"type":"number"},"height":{"type":"number"},"duration":{"type":"number"},"template":{"type":"object","properties":{"title":{"type":"string"},"subtitle":{"type":"string"},"imageUrl":{"type":"string"},"buttons":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"type":{"type":"string"},"url":{"type":"string"},"payload":{"type":"string"}}}}}}},"required":["kind"]}},"shares":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"type":{"type":"string"},"url":{"type":"string"},"template":{"anyOf":[{"type":"string"},{"type":"object","properties":{"title":{"type":"string"},"subtitle":{"type":"string"},"imageUrl":{"type":"string"},"buttons":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"type":{"type":"string"},"url":{"type":"string"},"payload":{"type":"string"}}}}}}]}}}},"story":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"}}},"reactionsObservedAt":{"type":"string","format":"date-time"},"reactions":{"type":"array","items":{"type":"object","properties":{"emoji":{"type":"string"},"users":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"username":{"type":"string"},"email":{"type":"string"}}}}},"required":["emoji","users"]}},"tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}}}}}},"reaction":{"type":["string","null"]},"editedAt":{"type":["string","null"],"format":"date-time"},"sentAt":{"type":"string","format":"date-time"}},"required":["id","conversationId","externalMessageId","fromParticipant","senderName","messageText","attachmentType","attachmentUrl","content","reaction","editedAt","sentAt"]}}}},{"name":"update_conversation_status","description":"Move an inbox conversation to open, archived or spam. Archived and spam conversations leave the open list until moved back. Nothing is sent to the social platform. Requires inbox:view.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string","minLength":1}},"required":["id"],"additionalProperties":false},"body":{"$ref":"#/$defs/UpdateInboxConversationRequest"}},"required":["workspaceId","path","body"],"additionalProperties":false,"$defs":{"UpdateInboxConversationRequest":{"type":"object","properties":{"status":{"type":"string","enum":["open","archived","spam"]}},"required":["status"]}}},"outputSchema":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["open","archived","spam"]},"unreadCount":{"type":"integer"},"lastReadAt":{"type":["string","null"],"format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","status","unreadCount","lastReadAt","updatedAt"]}},{"name":"mark_conversation_read","description":"Mark an inbox conversation read for the workspace team, clearing its unread count. It does not send a seen receipt to the social platform. Requires inbox:view.","annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string","minLength":1}},"required":["id"],"additionalProperties":false},"idempotencyKey":{"type":"string","maxLength":255,"description":"Reuse this key when retrying the same action."}},"required":["workspaceId","path"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["open","archived","spam"]},"unreadCount":{"type":"integer"},"lastReadAt":{"type":["string","null"],"format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","status","unreadCount","lastReadAt","updatedAt"]}},{"name":"list_inbox_post_threads","description":"List published posts whose platform comments appear in the inbox, newest first. Filter by channelId; days is clamped to the plan's inbox history window. Use get_post_comment_thread with a thread id to read its comments. Requires inbox:view.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"query":{"type":"object","properties":{"channelId":{"type":"string","minLength":1},"days":{"type":"integer","minimum":1,"maximum":365,"default":30},"limit":{"type":"integer","minimum":1,"maximum":100,"default":30}},"required":[],"additionalProperties":false}},"required":["workspaceId"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/$defs/InboxPostThread"}},"windowDays":{"type":"integer"}},"required":["data","windowDays"],"$defs":{"InboxPostThread":{"type":"object","properties":{"id":{"type":"string"},"postId":{"type":"string"},"channelId":{"type":"string"},"platform":{"type":"string","enum":["bluesky","discord","facebook","instagram","linkedin","pinterest","threads","tiktok","wordpress","youtube"]},"externalPostId":{"type":"string"},"permalink":{"type":["string","null"]},"postTitle":{"type":"string"},"postBody":{"type":["string","null"]},"mediaUrl":{"type":["string","null"]},"publishedAt":{"type":["string","null"],"format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"channel":{"type":"object","properties":{"name":{"type":"string"},"platform":{"type":"string","enum":["bluesky","discord","facebook","instagram","linkedin","pinterest","threads","tiktok","wordpress","youtube"]},"avatarUrl":{"type":["string","null"]}},"required":["name","platform","avatarUrl"]}},"required":["id","postId","channelId","platform","externalPostId","permalink","postTitle","postBody","mediaUrl","publishedAt","updatedAt","channel"]}}}},{"name":"get_post_comment_thread","description":"Read one published post's platform comment thread as a flat list, oldest first, with parentCommentId linking replies. Facebook, Instagram and Threads comments are available; YouTube and Bluesky threads report commentStatus not_mirrored. Requires inbox:view.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string","minLength":1}},"required":["id"],"additionalProperties":false}},"required":["workspaceId","path"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"thread":{"$ref":"#/$defs/InboxPostThread"},"comments":{"type":"array","items":{"$ref":"#/$defs/InboxPostComment"}},"commentStatus":{"$ref":"#/$defs/InboxCommentStatus"}},"required":["thread","comments","commentStatus"],"$defs":{"InboxCommentStatus":{"type":"object","properties":{"type":{"type":"string","enum":["available","not_mirrored"]},"message":{"type":["string","null"]}},"required":["type","message"]},"InboxPostComment":{"type":"object","properties":{"id":{"type":"string"},"parentCommentId":{"type":["string","null"]},"authorId":{"type":["string","null"]},"authorName":{"type":["string","null"]},"authorUsername":{"type":["string","null"]},"authorAvatarUrl":{"type":["string","null"]},"isFromConnectedAccount":{"type":"boolean"},"likeCount":{"type":["integer","null"]},"messageText":{"type":["string","null"]},"createdAt":{"type":["string","null"],"format":"date-time"}},"required":["id","parentCommentId","authorId","authorName","authorUsername","authorAvatarUrl","isFromConnectedAccount","likeCount","messageText","createdAt"]},"InboxPostThread":{"type":"object","properties":{"id":{"type":"string"},"postId":{"type":"string"},"channelId":{"type":"string"},"platform":{"type":"string","enum":["bluesky","discord","facebook","instagram","linkedin","pinterest","threads","tiktok","wordpress","youtube"]},"externalPostId":{"type":"string"},"permalink":{"type":["string","null"]},"postTitle":{"type":"string"},"postBody":{"type":["string","null"]},"mediaUrl":{"type":["string","null"]},"publishedAt":{"type":["string","null"],"format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"channel":{"type":"object","properties":{"name":{"type":"string"},"platform":{"type":"string","enum":["bluesky","discord","facebook","instagram","linkedin","pinterest","threads","tiktok","wordpress","youtube"]},"avatarUrl":{"type":["string","null"]}},"required":["name","platform","avatarUrl"]}},"required":["id","postId","channelId","platform","externalPostId","permalink","postTitle","postBody","mediaUrl","publishedAt","updatedAt","channel"]}}}},{"name":"get_today","description":"Get the signed-in user's Today snapshot for the workspace: ranked blockers, decisions, next actions, progress and insights, plus what resolved since yesterday. Items are filtered to the caller's own permissions. Needs an OAuth user; API keys are rejected because Today is personal.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."}},"required":["workspaceId"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"workspaceId":{"type":"string"},"asOf":{"type":"string","format":"date-time"},"projectionRevision":{"type":"integer"},"summary":{"type":"object","properties":{"blockers":{"type":"integer"},"decisions":{"type":"integer"},"actions":{"type":"integer"},"updates":{"type":"integer"},"insights":{"type":"integer"}},"required":["blockers","decisions","actions","updates","insights"]},"sections":{"type":"object","properties":{"urgent":{"type":"array","items":{"$ref":"#/$defs/TodayItem"}},"next":{"type":"array","items":{"$ref":"#/$defs/TodayItem"}},"progress":{"type":"array","items":{"$ref":"#/$defs/TodayItem"}},"insights":{"type":"array","items":{"$ref":"#/$defs/TodayItem"}}},"required":["urgent","next","progress","insights"]},"sinceYesterday":{"type":"object","properties":{"count":{"type":"integer"},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["blocker","decision","action","update","insight","celebration"]},"presentation":{"$ref":"#/$defs/TodayPresentation"},"resolvedAt":{"type":"string","format":"date-time"}},"required":["id","kind","presentation","resolvedAt"]}}},"required":["count","items"]}},"required":["workspaceId","asOf","projectionRevision","summary","sections","sinceYesterday"],"$defs":{"TodayPresentation":{"type":"object","properties":{"eyebrow":{"type":"string"},"title":{"type":"string"},"summary":{"type":"string"},"detail":{"type":"string"},"primaryAction":{"$ref":"#/$defs/TodayAction"}},"required":["title"]},"TodayAction":{"type":"object","properties":{"type":{"type":"string","enum":["navigate"]},"label":{"type":"string"},"action":{"type":"string"},"params":{"type":"object","additionalProperties":{"type":"string"}}},"required":["type","label","action"]},"TodayItem":{"type":"object","properties":{"id":{"type":"string"},"recipeKey":{"type":"string"},"targetKind":{"type":"string","enum":["user","workspace_permission","org_permission"]},"kind":{"type":"string","enum":["blocker","decision","action","update","insight","celebration"]},"severity":{"type":"string","enum":["critical","high","normal","low"]},"priorityBucket":{"type":"integer"},"presentationKind":{"type":"string","enum":["setup_action","task","decision","risk","progress_update","celebration","metric_insight","workspace_group"]},"presentation":{"$ref":"#/$defs/TodayPresentation"},"channels":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"avatarUrl":{"type":["string","null"]},"platform":{"type":"string","enum":["bluesky","discord","facebook","instagram","linkedin","pinterest","threads","tiktok","wordpress","youtube"]}},"required":["id","name","avatarUrl","platform"]}},"occurredAt":{"type":"string","format":"date-time"},"dueAt":{"type":["string","null"],"format":"date-time"},"canDismiss":{"type":"boolean"}},"required":["id","recipeKey","targetKind","kind","severity","priorityBucket","presentationKind","presentation","channels","occurredAt","dueAt","canDismiss"]}}}},{"name":"dismiss_today_item","description":"Dismiss an open Today item by ID for everyone in the selected workspace and archive its associated user notifications. Updates shared Posty state and notifies connected workspace clients. Only items whose canDismiss is true can be dismissed. Requires an OAuth user with workspace:update. Returns the item ID, status and projection revision. restore_today_item can reopen it while the underlying condition still holds.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":true},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":false},"idempotencyKey":{"type":"string","maxLength":255,"description":"Reuse this key when retrying the same action."}},"required":["workspaceId","path"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"itemId":{"type":"string"},"status":{"type":"string","enum":["open","resolved","dismissed","expired"]},"projectionRevision":{"type":"integer"}},"required":["itemId","status","projectionRevision"]}},{"name":"restore_today_item","description":"Restore a dismissed Today item by ID so it appears again for everyone in the selected workspace. Changes shared Posty state from dismissed to open and notifies connected workspace clients. Returns the item ID, status and projection revision. Fails with 409 if the item is not dismissed or its underlying condition is no longer active. Requires an OAuth user with workspace:update.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":true},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":false},"idempotencyKey":{"type":"string","maxLength":255,"description":"Reuse this key when retrying the same action."}},"required":["workspaceId","path"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"itemId":{"type":"string"},"status":{"type":"string","enum":["open","resolved","dismissed","expired"]},"projectionRevision":{"type":"integer"}},"required":["itemId","status","projectionRevision"]}},{"name":"get_today_settings","description":"Get the workspace's Today rules: each configurable recipe's setting definitions, effective values, where each value comes from, and the workspace override with its revision. Needs an OAuth user who is a workspace member.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."}},"required":["workspaceId"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"workspaceId":{"type":"string"},"workspaceSettingsRevision":{"type":"integer"},"recipes":{"type":"array","items":{"$ref":"#/$defs/TodayRecipeSettings"}}},"required":["workspaceId","workspaceSettingsRevision","recipes"],"$defs":{"TodayRecipeSettings":{"type":"object","properties":{"recipeKey":{"type":"string"},"recipeVersion":{"type":"integer"},"settingsSchemaVersion":{"type":"integer"},"definitions":{"type":"object","additionalProperties":{"type":"object","properties":{"configurableAt":{"type":"array","items":{"type":"string","enum":["organization","workspace"]}},"defaultValue":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},"description":{"type":["string","null"]},"kind":{"type":"string","enum":["boolean","duration","number","percentage"]},"label":{"type":"string"},"maximum":{"type":["number","null"]},"minimum":{"type":["number","null"]},"unit":{"type":["string","null"],"enum":["days","hours","percent",null]}},"required":["configurableAt","defaultValue","description","kind","label","maximum","minimum","unit"]}},"effective":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}},"sources":{"type":"object","additionalProperties":{"type":"string","enum":["code","operating_model","organization","workspace"]}},"workspaceOverride":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}},"overrideRevision":{"type":["integer","null"]}},"required":["recipeKey","recipeVersion","settingsSchemaVersion","definitions","effective","sources","workspaceOverride","overrideRevision"]}}}},{"name":"update_today_settings","description":"Replace the workspace override for one Today recipe (for example workspace.content_gap). Send the overrideRevision from get_today_settings as expectedRevision (null when there is no override yet); an empty configuration resets to inherited values. Needs an OAuth user holding workspace:update.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"recipeKey":{"type":"string","pattern":"^workspace\\.[a-z][a-z0-9_]*$"}},"required":["recipeKey"],"additionalProperties":false},"body":{"$ref":"#/$defs/UpdateTodaySettings"}},"required":["workspaceId","path","body"],"additionalProperties":false,"$defs":{"UpdateTodaySettings":{"type":"object","properties":{"configuration":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}},"expectedRevision":{"type":["integer","null"],"exclusiveMinimum":0}},"required":["configuration","expectedRevision"]}}},"outputSchema":{"type":"object","properties":{"changed":{"type":"boolean"},"recipeKey":{"type":"string"},"overrideRevision":{"type":["integer","null"]},"workspaceSettingsRevision":{"type":"integer"},"projectionRevision":{"type":["integer","null"]}},"required":["changed","recipeKey","overrideRevision","workspaceSettingsRevision","projectionRevision"]}},{"name":"list_workspace_members","description":"List the workspace's members with their role, team or client visibility, owner flag, name and email. Use userId with update_workspace_member and remove_workspace_member. Needs workspace:view.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."}},"required":["workspaceId"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/$defs/WorkspaceMember"}}},"required":["data"],"$defs":{"WorkspaceMember":{"type":"object","properties":{"id":{"type":"string"},"userId":{"type":"string"},"role":{"type":"string","enum":["admin","approver","contributor","viewer"]},"visibility":{"type":"string","enum":["team","client"]},"isOwner":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"name":{"type":"string"},"email":{"type":"string"},"image":{"type":["string","null"]}},"required":["id","userId","role","visibility","isOwner","createdAt","name","email","image"]}}}},{"name":"update_workspace_member","description":"Change a member's workspace role. You cannot change your own role, and the last admin cannot be demoted. Demotion from admin revokes the member's API keys and hangs up their open realtime sessions. Needs workspace:manage_members.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"userId":{"type":"string"}},"required":["userId"],"additionalProperties":false},"body":{"$ref":"#/$defs/UpdateWorkspaceMember"}},"required":["workspaceId","path","body"],"additionalProperties":false,"$defs":{"UpdateWorkspaceMember":{"type":"object","properties":{"role":{"type":"string","enum":["admin","approver","contributor","viewer"]}},"required":["role"]}}},"outputSchema":{"type":"object","properties":{"id":{"type":"string"},"userId":{"type":"string"},"role":{"type":"string","enum":["admin","approver","contributor","viewer"]},"visibility":{"type":"string","enum":["team","client"]},"isOwner":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","userId","role","visibility","isOwner","createdAt"]}},{"name":"remove_workspace_member","description":"Remove a member from the workspace, revoke their API keys for it and hang up their open realtime sessions. You cannot remove yourself or the last admin. Needs workspace:manage_members.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"userId":{"type":"string"}},"required":["userId"],"additionalProperties":false}},"required":["workspaceId","path"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"deleted":{"type":"boolean","description":"True when the record was removed."}},"required":["deleted"],"additionalProperties":false}},{"name":"list_workspace_invitations","description":"List the workspace's pending, unexpired invitations with the invited email, role, visibility, inviter and expiry. Each one holds a seat until it is accepted, cancelled or expires. Needs workspace:view.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."}},"required":["workspaceId"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/$defs/WorkspaceInvitation"}}},"required":["data"],"$defs":{"WorkspaceInvitation":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"role":{"type":"string","description":"One of admin, contributor, approver or viewer."},"visibility":{"type":"string","enum":["team","client"]},"inviterName":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"},"expiresAt":{"type":"string","format":"date-time"}},"required":["id","email","role","visibility","inviterName","createdAt","expiresAt"]}}}},{"name":"cancel_workspace_invitation","description":"Cancel a pending invitation in this workspace, freeing its seat. Review requests still waiting on the invitee are cancelled too. Needs workspace:manage_members.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":false}},"required":["workspaceId","path"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"deleted":{"type":"boolean","description":"True when the record was removed."}},"required":["deleted"],"additionalProperties":false}},{"name":"get_workspace","description":"Get the current workspace's settings as the settings page shows them: name, logo, approval mode, review locking, campaigns, timezone and posting times, the approval modes the plan allows, and the caller's permissions. Needs workspace:view.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."}},"required":["workspaceId"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"logoUrl":{"type":["string","null"]},"approvalMode":{"type":"string","enum":["none","optional","required","multi_level"]},"lockDuringReview":{"type":"boolean"},"campaignsEnabled":{"type":"boolean"},"settings":{"type":"object","properties":{"autoScheduleOnApproval":{"type":"boolean"},"timezone":{"type":["string","null"]},"postingPreferences":{"type":"object","properties":{"defaultPostingTimes":{"type":"object","properties":{"morning":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"midday":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"laterAfternoon":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"other":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"}},"required":["morning","midday","laterAfternoon","other"]},"showDefaultPostingTimes":{"type":"boolean"},"timeWiggleEnabled":{"type":"boolean"}},"required":["defaultPostingTimes","showDefaultPostingTimes","timeWiggleEnabled"]}},"required":["autoScheduleOnApproval","timezone","postingPreferences"]},"allowedApprovalModes":{"type":"array","items":{"type":"string","enum":["none","optional","required","multi_level"]}},"permissions":{"type":"array","items":{"type":"string"}}},"required":["id","name","logoUrl","approvalMode","lockDuringReview","campaignsEnabled","settings","allowedApprovalModes","permissions"]}},{"name":"update_workspace_settings","description":"Update the current workspace's name, approval mode, review locking, campaigns switch, timezone, auto scheduling on approval or default posting times. Only the fields you send change. An approval mode outside the plan's allowedApprovalModes is refused. Needs workspace:update.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"body":{"$ref":"#/$defs/UpdateWorkspaceSettings"}},"required":["workspaceId","body"],"additionalProperties":false,"$defs":{"UpdateWorkspaceSettings":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":30},"approvalMode":{"type":"string","enum":["none","optional","required","multi_level"]},"lockDuringReview":{"type":"boolean"},"campaignsEnabled":{"type":"boolean"},"settings":{"type":"object","properties":{"autoScheduleOnApproval":{"type":"boolean"},"timezone":{"type":"string","minLength":1,"maxLength":100},"postingPreferences":{"type":"object","properties":{"defaultPostingTimes":{"type":"object","properties":{"morning":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"midday":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"laterAfternoon":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"other":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"}}},"showDefaultPostingTimes":{"type":"boolean"},"timeWiggleEnabled":{"type":"boolean"}}}}}}}}},"outputSchema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"logoUrl":{"type":["string","null"]},"approvalMode":{"type":"string","enum":["none","optional","required","multi_level"]},"lockDuringReview":{"type":"boolean"},"campaignsEnabled":{"type":"boolean"},"settings":{"type":"object","properties":{"autoScheduleOnApproval":{"type":"boolean"},"timezone":{"type":["string","null"]},"postingPreferences":{"type":"object","properties":{"defaultPostingTimes":{"type":"object","properties":{"morning":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"midday":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"laterAfternoon":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"other":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"}},"required":["morning","midday","laterAfternoon","other"]},"showDefaultPostingTimes":{"type":"boolean"},"timeWiggleEnabled":{"type":"boolean"}},"required":["defaultPostingTimes","showDefaultPostingTimes","timeWiggleEnabled"]}},"required":["autoScheduleOnApproval","timezone","postingPreferences"]}},"required":["id","name","logoUrl","approvalMode","lockDuringReview","campaignsEnabled","settings"]}},{"name":"get_my_notification_preferences","description":"Get the signed-in user's notification profile (email switch, digest times, quiet hours, pause) and per-category delivery with defaults, account-wide overrides and per-workspace overrides. OAuth users only; API keys get 403 user_session_required.","annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."}},"required":["workspaceId"],"additionalProperties":false},"outputSchema":{"type":"object","properties":{"profile":{"$ref":"#/$defs/NotificationProfile"},"categories":{"type":"array","items":{"type":"object","properties":{"category":{"type":"string","enum":["assigned_work","approvals_and_feedback","publishing_and_channels","planning_reminders","progress_updates","insights_and_celebrations"]},"defaults":{"type":"object","properties":{"inAppEnabled":{"type":"boolean"},"emailFrequency":{"type":"string","enum":["off","immediate","daily_digest","weekly_digest"]}},"required":["inAppEnabled","emailFrequency"]},"override":{"type":["object","null"],"properties":{"inAppEnabled":{"type":"boolean"},"emailFrequency":{"type":"string","enum":["off","immediate","daily_digest","weekly_digest"]},"category":{"type":"string","enum":["assigned_work","approvals_and_feedback","publishing_and_channels","planning_reminders","progress_updates","insights_and_celebrations"]},"workspaceId":{"type":["string","null"]},"revision":{"type":"integer"}},"required":["inAppEnabled","emailFrequency","category","workspaceId","revision"]}},"required":["category","defaults","override"]}},"workspaceOverrides":{"type":"array","items":{"$ref":"#/$defs/NotificationPreference"}}},"required":["profile","categories","workspaceOverrides"],"$defs":{"NotificationPreference":{"type":"object","properties":{"inAppEnabled":{"type":"boolean"},"emailFrequency":{"type":"string","enum":["off","immediate","daily_digest","weekly_digest"]},"category":{"type":"string","enum":["assigned_work","approvals_and_feedback","publishing_and_channels","planning_reminders","progress_updates","insights_and_celebrations"]},"workspaceId":{"type":["string","null"]},"revision":{"type":"integer"}},"required":["inAppEnabled","emailFrequency","category","workspaceId","revision"]},"NotificationProfile":{"type":"object","properties":{"emailEnabled":{"type":"boolean"},"timezone":{"type":"string"},"dailyDigestLocalTime":{"type":"string"},"weeklyDigestDay":{"type":"integer"},"quietHoursStart":{"type":["string","null"]},"quietHoursEnd":{"type":["string","null"]},"quietHoursBehavior":{"type":"string","enum":["defer","next_digest"]},"pausedUntil":{"type":["string","null"],"format":"date-time"},"revision":{"type":"integer"}},"required":["emailEnabled","timezone","dailyDigestLocalTime","weeklyDigestDay","quietHoursStart","quietHoursEnd","quietHoursBehavior","pausedUntil","revision"]}}}},{"name":"update_my_notification_preference","description":"Set how the signed-in user hears about one category: in app on or off and the email frequency. scope account applies everywhere; scope workspace overrides it for the current workspace only. Send the override's revision as expectedRevision, or null when none exists. OAuth users only.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"path":{"type":"object","properties":{"category":{"type":"string","enum":["assigned_work","approvals_and_feedback","publishing_and_channels","planning_reminders","progress_updates","insights_and_celebrations"]}},"required":["category"],"additionalProperties":false},"body":{"$ref":"#/$defs/UpdateNotificationPreference"}},"required":["workspaceId","path","body"],"additionalProperties":false,"$defs":{"UpdateNotificationPreference":{"type":"object","properties":{"inAppEnabled":{"type":"boolean"},"emailFrequency":{"type":"string","enum":["off","immediate","daily_digest","weekly_digest"]},"scope":{"type":"string","enum":["account","workspace"]},"expectedRevision":{"type":["integer","null"],"exclusiveMinimum":0}},"required":["inAppEnabled","emailFrequency","scope","expectedRevision"]}}},"outputSchema":{"type":"object","properties":{"inAppEnabled":{"type":"boolean"},"emailFrequency":{"type":"string","enum":["off","immediate","daily_digest","weekly_digest"]},"category":{"type":"string","enum":["assigned_work","approvals_and_feedback","publishing_and_channels","planning_reminders","progress_updates","insights_and_celebrations"]},"workspaceId":{"type":["string","null"]},"revision":{"type":"integer"}},"required":["inAppEnabled","emailFrequency","category","workspaceId","revision"]}},{"name":"update_my_notification_profile","description":"Replace the signed-in user's notification profile: email master switch, IANA timezone, daily digest time (HH:mm), weekly digest day (0 is Sunday), quiet hours and their behaviour, and an optional pause. Send the profile revision from get_my_notification_preferences as expectedRevision. OAuth users only.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"body":{"$ref":"#/$defs/UpdateNotificationProfile"}},"required":["workspaceId","body"],"additionalProperties":false,"$defs":{"UpdateNotificationProfile":{"type":"object","properties":{"emailEnabled":{"type":"boolean"},"timezone":{"type":"string","minLength":1,"maxLength":100},"dailyDigestLocalTime":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"weeklyDigestDay":{"type":"integer","minimum":0,"maximum":6},"quietHoursStart":{"type":["string","null"],"pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"quietHoursEnd":{"type":["string","null"],"pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"quietHoursBehavior":{"type":"string","enum":["defer","next_digest"]},"pausedUntil":{"type":["string","null"],"format":"date-time"},"expectedRevision":{"type":"integer","exclusiveMinimum":0}},"required":["emailEnabled","timezone","dailyDigestLocalTime","weeklyDigestDay","quietHoursStart","quietHoursEnd","quietHoursBehavior","pausedUntil","expectedRevision"]}}},"outputSchema":{"type":"object","properties":{"emailEnabled":{"type":"boolean"},"timezone":{"type":"string"},"dailyDigestLocalTime":{"type":"string"},"weeklyDigestDay":{"type":"integer"},"quietHoursStart":{"type":["string","null"]},"quietHoursEnd":{"type":["string","null"]},"quietHoursBehavior":{"type":"string","enum":["defer","next_digest"]},"pausedUntil":{"type":["string","null"],"format":"date-time"},"revision":{"type":"integer"}},"required":["emailEnabled","timezone","dailyDigestLocalTime","weeklyDigestDay","quietHoursStart","quietHoursEnd","quietHoursBehavior","pausedUntil","revision"]}},{"name":"set_workspace_notification_mute","description":"Mute or unmute email from the current workspace for the signed-in user. Muting turns email off for every category in this workspace; unmuting removes this workspace's overrides. OAuth users only.","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"inputSchema":{"type":"object","properties":{"workspaceId":{"type":"string","minLength":1,"description":"Workspace ID from list_workspaces. Permissions are checked for this workspace on every call."},"body":{"$ref":"#/$defs/SetWorkspaceNotificationMute"}},"required":["workspaceId","body"],"additionalProperties":false,"$defs":{"SetWorkspaceNotificationMute":{"type":"object","properties":{"muted":{"type":"boolean"}},"required":["muted"]}}},"outputSchema":{"type":"object","properties":{"muted":{"type":"boolean"},"changed":{"type":"integer"}},"required":["muted","changed"]}}]}