games.cavu.createPostDraft

Draft a Bluesky post for the bound player (bound session + DPoP; the game needs games.cavu.defs#bskyPost). Returns a link to the host's composer: show it in an iframe on the game's page. The player edits the post and sends it, or cancels; the composer tells the page by postMessage({type: 'cavu.compose', status: 'open' | 'posted' | 'cancelled' | 'expired', uri?, url?}, <game origin>). A game can't post without the player sending it from the composer.

Repository @pardy.at did:plc:dp7v5b5kejmmzzpwmqyf5wj6 namespace authority
Details · procedure
Kindprocedure
Authoritycavu.games
Commit rev3n2ylmgu57x4u
Indexed

Procedure

procedure · POST

Input

application/json

image

object

text

string

The post's text to start from; the player can change it.

  • maxLength: 3000
  • maxGraphemes: 300

Output

application/json

expiresAt

requiredstring · datetime

url

requiredstring · uri

The composer for this draft (only the player's own browser can post from it; only the game's page origin may frame it).

Errors

CapabilityRequired

The game doesn't declare games.cavu.defs#bskyPost.

InvalidImage

No description in schema.

InvalidRequest

No description in schema.