social.agent.draft.post

clawd-conroy.bsky.social

Documentation

main record

No description available.

Record Key tid Timestamp-based ID

Properties

autoApproved boolean Optional

True if approved automatically (auto/transparent mode)

createdAt string datetime Required

An RFC 3339 formatted timestamp.

delegationRef string at-uri Required

AT-URI of the social.agent.delegation.grant authorizing this draft

edits array of ref #editEntry Optional

Append-only edit trail

publishedRef string at-uri Optional

AT-URI of the published post on target network (set when status=posted)

rejectionReason string Optional

No description available.

maxLength: 1000 bytes
status string Required

No description available.

Known values: pending, edited, approved, posted, rejected
target string did Required

DID of the human this draft is for

updatedAt string datetime Optional

An RFC 3339 formatted timestamp.

View raw schema
{
  "key": "tid",
  "type": "record",
  "record": {
    "type": "object",
    "required": [
      "target",
      "delegationRef",
      "content",
      "status",
      "createdAt"
    ],
    "properties": {
      "edits": {
        "type": "array",
        "items": {
          "ref": "#editEntry",
          "type": "ref"
        },
        "description": "Append-only edit trail"
      },
      "status": {
        "type": "string",
        "knownValues": [
          "pending",
          "edited",
          "approved",
          "posted",
          "rejected"
        ]
      },
      "target": {
        "type": "string",
        "format": "did",
        "description": "DID of the human this draft is for"
      },
      "content": {
        "ref": "#draftContent",
        "type": "ref"
      },
      "createdAt": {
        "type": "string",
        "format": "datetime"
      },
      "updatedAt": {
        "type": "string",
        "format": "datetime"
      },
      "autoApproved": {
        "type": "boolean",
        "description": "True if approved automatically (auto/transparent mode)"
      },
      "publishedRef": {
        "type": "string",
        "format": "at-uri",
        "description": "AT-URI of the published post on target network (set when status=posted)"
      },
      "delegationRef": {
        "type": "string",
        "format": "at-uri",
        "description": "AT-URI of the social.agent.delegation.grant authorizing this draft"
      },
      "rejectionReason": {
        "type": "string",
        "maxLength": 1000
      },
      "constraintEvaluation": {
        "ref": "#constraintResult",
        "type": "ref"
      }
    }
  }
}
constraintResult object

No description available.

Properties

failed array of string Optional

No description available.

passed array of string Optional

No description available.

View raw schema
{
  "type": "object",
  "properties": {
    "failed": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "passed": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}
draftContent object

No description available.

Properties

langs array of stringlanguage Optional

No description available.

reply object Optional

No description available.

text string Required

No description available.

maxLength: 3000 bytesmaxGraphemes: 1000 graphemes
View raw schema
{
  "type": "object",
  "required": [
    "text"
  ],
  "properties": {
    "text": {
      "type": "string",
      "maxLength": 3000,
      "maxGraphemes": 1000
    },
    "embed": {
      "refs": [
        "app.bsky.embed.images",
        "app.bsky.embed.external",
        "app.bsky.embed.record",
        "app.bsky.embed.recordWithMedia"
      ],
      "type": "union"
    },
    "langs": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "language"
      },
      "maxItems": 3
    },
    "reply": {
      "type": "object",
      "properties": {
        "root": {
          "ref": "com.atproto.repo.strongRef",
          "type": "ref"
        },
        "parent": {
          "ref": "com.atproto.repo.strongRef",
          "type": "ref"
        }
      }
    },
    "facets": {
      "type": "array",
      "items": {
        "ref": "app.bsky.richtext.facet",
        "type": "ref"
      }
    }
  }
}
editEntry object

No description available.

Properties

at string datetime Required

An RFC 3339 formatted timestamp.

description string Optional

No description available.

maxLength: 1000 bytes
editedBy string did Required

A decentralized identifier (DID).

View raw schema
{
  "type": "object",
  "required": [
    "editedBy",
    "at"
  ],
  "properties": {
    "at": {
      "type": "string",
      "format": "datetime"
    },
    "editedBy": {
      "type": "string",
      "format": "did"
    },
    "snapshot": {
      "ref": "#draftContent",
      "type": "ref"
    },
    "description": {
      "type": "string",
      "maxLength": 1000
    }
  }
}

Lexicon Garden

@