ai.newnal.illi.media.receiveArtworkEvent

Server-to-server only. Called by the Newnal media service with a service JWT (`iss` = the configured media DID, `lxm` = this method). Apps must not call it.

Details · procedure
Kindprocedure
Authoritymedia.illi.newnal.ai
Indexed
cid bafyreibtryxww4sm5lbvqxncm4ctl2ceeeaxth23deoyv35gcowugqgfqi

Checks

Valid
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Server-to-server only. Called by the Newnal media service with a service JWT (`iss` = the configured media DID, `lxm` = this method). Apps must not call it.",
      "errors": [
        {
          "name": "InvalidRequest"
        },
        {
          "name": "AuthenticationRequired"
        },
        {
          "name": "MediaAuthUnavailable"
        },
        {
          "name": "MediaInboxUnavailable"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "description": "The envelope's serviceKey, spaceKey, resourceId, revision and compositionVersion must equal the snapshot's serviceKey, spaceKey, artworkId, revision and compositionVersion (the receiver checks this). occurredAt is a datetime with an offset.",
          "properties": {
            "compositionVersion": {
              "minimum": 1,
              "type": "integer"
            },
            "event": {
              "description": "failed means a version failed while no published version exists. Unknown nonempty event values are accepted but ignored without storing or applying the event.",
              "knownValues": [
                "created",
                "updated",
                "failed"
              ],
              "minLength": 1,
              "type": "string"
            },
            "eventId": {
              "minLength": 1,
              "type": "string"
            },
            "occurredAt": {
              "format": "datetime",
              "type": "string"
            },
            "resource": {
              "ref": "ai.newnal.illi.media.defs#artworkEventSnapshot",
              "type": "ref"
            },
            "resourceId": {
              "minLength": 1,
              "type": "string"
            },
            "resourceType": {
              "const": "artwork",
              "type": "string"
            },
            "revision": {
              "minimum": 1,
              "type": "integer"
            },
            "serviceKey": {
              "minLength": 1,
              "type": "string"
            },
            "spaceKey": {
              "minLength": 1,
              "type": "string"
            }
          },
          "required": [
            "eventId",
            "occurredAt",
            "event",
            "serviceKey",
            "spaceKey",
            "resourceType",
            "resourceId",
            "revision",
            "compositionVersion",
            "resource"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {},
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "ai.newnal.illi.media.receiveArtworkEvent",
  "lexicon": 1
}