full diff

ai.newnal.illi.media.receiveAssetEvent

From
bafyreids2vl5lbo6irez4gjguijiw63eq6yox2jvm5gfuaofamsmlnhqki indexed 2026-11-06 13:46 UTC View this version
To
bafyreif32fanriqvxxunipq32crbq5xkpd3d4rhqnevbieu3hqvkr4rrs4 indexed 2026-11-07 06:56 UTC View this version

Compatibility

backward compatible No changes detected.

Changes

11{
22 "$type": "com.atproto.lexicon.schema",
33 "defs": {
44 "main": {
55 "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.",
66 "errors": [
77 {
88 "name": "InvalidRequest"
99 },
1010 {
1111 "name": "AuthenticationRequired"
1212 },
1313 {
1414 "name": "MediaAuthUnavailable"
1515 },
1616 {
1717 "name": "MediaInboxUnavailable"
1818 }
1919 ],
2020 "input": {
2121 "encoding": "application/json",
2222 "schema": {
23 "description": "Envelope serviceKey, spaceKey, resourceId and revision must equal the snapshot serviceKey, spaceKey, assetId and revision. These cross-field equality constraints are enforced by the receiver, not expressible in Lexicon. occurredAt is checked by the receiver with Zod datetime({ offset: true }). The receiver also accepts Zod datetime forms with omitted seconds or a colonless offset; Lexicon datetime requires seconds and a colon in offsets. The generated Lexicon validator requires safe integers, while Zod accepts positive integer-valued numbers beyond that range. Referenced snapshot objects reserve $type for their Lexicon type; Zod passes through arbitrary snapshot fields, including $type. These validator differences do not change receiver behavior.",
23 "description": "The envelope's serviceKey, spaceKey, resourceId and revision must equal the snapshot's serviceKey, spaceKey, assetId and revision (the receiver checks this). occurredAt is a datetime with an offset.",
2424 "properties": {
2525 "event": {
2626 "description": "failed means the basic processing stages have finished with a failure. Unknown nonempty event values are accepted but ignored without storing or applying the event.",
2727 "knownValues": [
2828 "created",
2929 "updated",
3030 "failed"
3131 ],
3232 "minLength": 1,
3333 "type": "string"
3434 },
3535 "eventId": {
3636 "minLength": 1,
3737 "type": "string"
3838 },
3939 "occurredAt": {
4040 "format": "datetime",
4141 "type": "string"
4242 },
4343 "resource": {
4444 "ref": "ai.newnal.illi.media.defs#assetEventSnapshot",
4545 "type": "ref"
4646 },
4747 "resourceId": {
4848 "minLength": 1,
4949 "type": "string"
5050 },
5151 "resourceType": {
5252 "const": "asset",
5353 "type": "string"
5454 },
5555 "revision": {
5656 "minimum": 1,
5757 "type": "integer"
5858 },
5959 "serviceKey": {
6060 "minLength": 1,
6161 "type": "string"
6262 },
6363 "spaceKey": {
6464 "minLength": 1,
6565 "type": "string"
6666 }
6767 },
6868 "required": [
6969 "eventId",
7070 "occurredAt",
7171 "event",
7272 "serviceKey",
7373 "spaceKey",
7474 "resourceType",
7575 "resourceId",
7676 "revision",
7777 "resource"
7878 ],
7979 "type": "object"
8080 }
8181 },
8282 "output": {
8383 "encoding": "application/json",
8484 "schema": {
8585 "properties": {},
8686 "type": "object"
8787 }
8888 },
8989 "type": "procedure"
9090 }
9191 },
9292 "id": "ai.newnal.illi.media.receiveAssetEvent",
9393 "lexicon": 1
9494}

Compare other versions