From
bafyreiegwjklennurwwawzejpzmfy6ve3kip2s3l3aii43eeewqmc6h5p4
indexed 2026-06-18 13:14 UTC
View this version
To
bafyreiegwjklennurwwawzejpzmfy6ve3kip2s3l3aii43eeewqmc6h5p4
indexed 2026-06-18 13:14 UTC
View this version
Compatibility
backward compatible No changes detected.
Changes
11
{22
"$type": "com.atproto.lexicon.schema",33
"defs": {44
"annotationView": {55
"description": "View of an annotation/comment",66
"properties": {77
"author": {88
"ref": "#authorRef",99
"type": "ref"1010
},1111
"body": {1212
"description": "Rich text body items",1313
"items": {1414
"refs": [1515
"pub.chive.richtext.defs#textItem",1616
"pub.chive.richtext.defs#nodeRefItem",1717
"pub.chive.richtext.defs#wikidataRefItem",1818
"pub.chive.richtext.defs#fieldRefItem",1919
"pub.chive.richtext.defs#facetRefItem",2020
"pub.chive.richtext.defs#eprintRefItem",2121
"pub.chive.richtext.defs#annotationRefItem",2222
"pub.chive.richtext.defs#authorRefItem",2323
"pub.chive.richtext.defs#mentionItem",2424
"pub.chive.richtext.defs#linkItem",2525
"pub.chive.richtext.defs#tagItem",2626
"pub.chive.richtext.defs#latexItem",2727
"pub.chive.richtext.defs#codeBlockItem",2828
"pub.chive.richtext.defs#headingItem",2929
"pub.chive.richtext.defs#listItem",3030
"pub.chive.richtext.defs#blockquoteItem"3131
],3232
"type": "union"3333
},3434
"maxLength": 500,3535
"type": "array"3636
},3737
"bodyPlainText": {3838
"description": "Plain text body for search/preview",3939
"type": "string"4040
},4141
"cid": {4242
"description": "Content identifier",4343
"type": "string"4444
},4545
"content": {4646
"description": "Plain text content of the annotation",4747
"type": "string"4848
},4949
"createdAt": {5050
"description": "When the annotation was created",5151
"format": "datetime",5252
"type": "string"5353
},5454
"deleted": {5555
"default": false,5656
"description": "Whether this annotation has been deleted (tombstone for thread preservation)",5757
"type": "boolean"5858
},5959
"eprintUri": {6060
"description": "AT-URI of the annotated eprint",6161
"format": "at-uri",6262
"type": "string"6363
},6464
"indexedAt": {6565
"description": "When the annotation was indexed",6666
"format": "datetime",6767
"type": "string"6868
},6969
"motivation": {7070
"description": "W3C Web Annotation motivation",7171
"knownValues": [7272
"commenting",7373
"highlighting",7474
"questioning",7575
"replying",7676
"assessing",7777
"bookmarking",7878
"classifying",7979
"describing",8080
"editing",8181
"moderating",8282
"tagging"8383
],8484
"type": "string"8585
},8686
"parentAnnotationUri": {8787
"description": "Parent annotation URI for threaded replies",8888
"format": "at-uri",8989
"type": "string"9090
},9191
"replyCount": {9292
"description": "Number of direct replies",9393
"minimum": 0,9494
"type": "integer"9595
},9696
"target": {9797
"description": "Target text span for the annotation",9898
"ref": "#textSpanTarget",9999
"type": "ref"100100
},101101
"uri": {102102
"description": "Annotation AT-URI",103103
"format": "at-uri",104104
"type": "string"105105
}106106
},107107
"required": [108108
"uri",109109
"cid",110110
"author",111111
"eprintUri",112112
"content",113113
"motivation",114114
"target",115115
"replyCount",116116
"createdAt",117117
"indexedAt"118118
],119119
"type": "object"120120
},121121
"authorLink": {122122
"description": "Link to an ATProto author",123123
"properties": {124124
"did": {125125
"description": "Author's DID",126126
"format": "did",127127
"type": "string"128128
},129129
"displayName": {130130
"description": "Author's display name",131131
"type": "string"132132
},133133
"handle": {134134
"description": "Author's handle",135135
"format": "handle",136136
"type": "string"137137
},138138
"orcid": {139139
"description": "Author's ORCID (if available)",140140
"type": "string"141141
},142142
"type": {143143
"const": "author",144144
"type": "string"145145
}146146
},147147
"required": [148148
"type",149149
"did",150150
"displayName"151151
],152152
"type": "object"153153
},154154
"authorRef": {155155
"properties": {156156
"avatar": {157157
"format": "uri",158158
"type": "string"159159
},160160
"did": {161161
"format": "did",162162
"type": "string"163163
},164164
"displayName": {165165
"type": "string"166166
},167167
"handle": {168168
"type": "string"169169
}170170
},171171
"required": [172172
"did"173173
],174174
"type": "object"175175
},176176
"boundingRect": {177177
"description": "Bounding rectangle coordinates for highlight positioning. All values stored as strings to preserve floating-point precision since ATProto only supports integer type.",178178
"properties": {179179
"height": {180180
"description": "Page height reference (as string to preserve float precision)",181181
"type": "string"182182
},183183
"pageNumber": {184184
"description": "1-indexed page number for the bounding rectangle",185185
"minimum": 1,186186
"type": "integer"187187
},188188
"width": {189189
"description": "Page width reference (as string to preserve float precision)",190190
"type": "string"191191
},192192
"x1": {193193
"description": "Left edge coordinate (as string to preserve float precision)",194194
"type": "string"195195
},196196
"x2": {197197
"description": "Right edge coordinate (as string to preserve float precision)",198198
"type": "string"199199
},200200
"y1": {201201
"description": "Top edge coordinate (as string to preserve float precision)",202202
"type": "string"203203
},204204
"y2": {205205
"description": "Bottom edge coordinate (as string to preserve float precision)",206206
"type": "string"207207
}208208
},209209
"required": [210210
"x1",211211
"y1",212212
"x2",213213
"y2",214214
"width",215215
"height",216216
"pageNumber"217217
],218218
"type": "object"219219
},220220
"entityLinkView": {221221
"description": "View of an entity link annotation",222222
"properties": {223223
"cid": {224224
"description": "Content identifier",225225
"type": "string"226226
},227227
"confidence": {228228
"description": "Confidence score (0-1000, scaled from 0.0-1.0)",229229
"maximum": 1000,230230
"minimum": 0,231231
"type": "integer"232232
},233233
"createdAt": {234234
"description": "When the entity link was created",235235
"format": "datetime",236236
"type": "string"237237
},238238
"creator": {239239
"description": "Creator of the entity link",240240
"ref": "#authorRef",241241
"type": "ref"242242
},243243
"eprintUri": {244244
"description": "AT-URI of the eprint containing the linked text",245245
"format": "at-uri",246246
"type": "string"247247
},248248
"indexedAt": {249249
"description": "When the entity link was indexed",250250
"format": "datetime",251251
"type": "string"252252
},253253
"linkedEntity": {254254
"description": "The linked entity",255255
"refs": [256256
"#graphNodeLink",257257
"#externalIdLink",258258
"#authorLink",259259
"#eprintLink"260260
],261261
"type": "union"262262
},263263
"target": {264264
"description": "Target text span linked to the entity",265265
"ref": "#textSpanTarget",266266
"type": "ref"267267
},268268
"uri": {269269
"description": "Entity link AT-URI",270270
"format": "at-uri",271271
"type": "string"272272
}273273
},274274
"required": [275275
"uri",276276
"cid",277277
"creator",278278
"eprintUri",279279
"target",280280
"linkedEntity",281281
"createdAt",282282
"indexedAt"283283
],284284
"type": "object"285285
},286286
"eprintLink": {287287
"description": "Link to another eprint/preprint",288288
"properties": {289289
"doi": {290290
"description": "DOI if available",291291
"type": "string"292292
},293293
"title": {294294
"description": "Eprint title",295295
"type": "string"296296
},297297
"type": {298298
"const": "eprint",299299
"type": "string"300300
},301301
"uri": {302302
"description": "AT-URI of the eprint",303303
"format": "at-uri",304304
"type": "string"305305
}306306
},307307
"required": [308308
"type",309309
"uri",310310
"title"311311
],312312
"type": "object"313313
},314314
"externalIdLink": {315315
"description": "Link to an external identifier (Wikidata, ROR, ORCID, etc.)",316316
"properties": {317317
"identifier": {318318
"description": "Identifier value (e.g., Q42 for Wikidata)",319319
"type": "string"320320
},321321
"label": {322322
"description": "Display label for the entity",323323
"type": "string"324324
},325325
"system": {326326
"description": "External identifier system",327327
"knownValues": [328328
"wikidata",329329
"ror",330330
"orcid",331331
"isni",332332
"viaf",333333
"lcsh",334334
"fast",335335
"credit",336336
"spdx",337337
"fundref",338338
"mesh",339339
"aat",340340
"gnd",341341
"anzsrc",342342
"arxiv",343343
"doi",344344
"pmid",345345
"pmcid"346346
],347347
"type": "string"348348
},349349
"type": {350350
"const": "externalId",351351
"type": "string"352352
},353353
"uri": {354354
"description": "Full URI for the external entity",355355
"format": "uri",356356
"type": "string"357357
}358358
},359359
"required": [360360
"type",361361
"system",362362
"identifier",363363
"label"364364
],365365
"type": "object"366366
},367367
"graphNodeLink": {368368
"description": "Link to a knowledge graph node",369369
"properties": {370370
"id": {371371
"description": "Node UUID identifier",372372
"type": "string"373373
},374374
"kind": {375375
"description": "Node kind: 'type' for classifications, 'object' for instances",376376
"knownValues": [377377
"type",378378
"object"379379
],380380
"type": "string"381381
},382382
"label": {383383
"description": "Display label for the node",384384
"type": "string"385385
},386386
"slug": {387387
"description": "Human-readable slug (e.g., 'computer-science')",388388
"type": "string"389389
},390390
"subkind": {391391
"description": "Subkind slug (e.g., 'field', 'facet', 'institution', 'contribution-type')",392392
"type": "string"393393
},394394
"subkindUri": {395395
"description": "AT-URI of the subkind type node",396396
"format": "at-uri",397397
"type": "string"398398
},399399
"type": {400400
"const": "graphNode",401401
"type": "string"402402
},403403
"uri": {404404
"description": "AT-URI of the graph node",405405
"format": "at-uri",406406
"type": "string"407407
}408408
},409409
"required": [410410
"type",411411
"uri",412412
"label",413413
"kind"414414
],415415
"type": "object"416416
},417417
"linkedEntityRef": {418418
"description": "Union wrapper for linked entity references",419419
"properties": {420420
"entity": {421421
"refs": [422422
"#graphNodeLink",423423
"#externalIdLink",424424
"#authorLink",425425
"#eprintLink"426426
],427427
"type": "union"428428
}429429
},430430
"type": "object"431431
},432432
"main": {433433
"description": "List annotations for a specific eprint with optional filtering",434434
"errors": [],435435
"output": {436436
"encoding": "application/json",437437
"schema": {438438
"properties": {439439
"annotations": {440440
"description": "List of annotations for the eprint",441441
"items": {442442
"ref": "#annotationView",443443
"type": "ref"444444
},445445
"type": "array"446446
},447447
"cursor": {448448
"description": "Cursor for next page",449449
"type": "string"450450
},451451
"entityLinks": {452452
"description": "Included when includeEntityLinks=true",453453
"items": {454454
"ref": "#entityLinkView",455455
"type": "ref"456456
},457457
"type": "array"458458
},459459
"hasMore": {460460
"description": "Whether more results are available",461461
"type": "boolean"462462
},463463
"total": {464464
"description": "Total number of annotations for this eprint",465465
"type": "integer"466466
}467467
},468468
"required": [469469
"annotations",470470
"hasMore"471471
],472472
"type": "object"473473
}474474
},475475
"parameters": {476476
"properties": {477477
"cursor": {478478
"description": "Pagination cursor for next page",479479
"type": "string"480480
},481481
"eprintUri": {482482
"description": "AT-URI of the eprint",483483
"format": "at-uri",484484
"type": "string"485485
},486486
"includeEntityLinks": {487487
"default": false,488488
"description": "Include entity link annotations in response",489489
"type": "boolean"490490
},491491
"limit": {492492
"default": 50,493493
"description": "Maximum number of results to return",494494
"maximum": 100,495495
"minimum": 1,496496
"type": "integer"497497
},498498
"motivation": {499499
"description": "Filter by annotation motivation",500500
"knownValues": [501501
"commenting",502502
"questioning",503503
"highlighting",504504
"replying"505505
],506506
"type": "string"507507
},508508
"pageNumber": {509509
"description": "Filter to specific page number",510510
"minimum": 1,511511
"type": "integer"512512
}513513
},514514
"required": [515515
"eprintUri"516516
],517517
"type": "params"518518
},519519
"type": "query"520520
},521521
"textPositionSelector": {522522
"description": "W3C Text Position Selector with optional page info",523523
"properties": {524524
"boundingRect": {525525
"description": "Bounding rectangle for visual positioning",526526
"ref": "#boundingRect",527527
"type": "ref"528528
},529529
"end": {530530
"minimum": 0,531531
"type": "integer"532532
},533533
"pageNumber": {534534
"description": "0-indexed page number in PDF",535535
"minimum": 0,536536
"type": "integer"537537
},538538
"start": {539539
"minimum": 0,540540
"type": "integer"541541
},542542
"type": {543543
"const": "TextPositionSelector",544544
"type": "string"545545
}546546
},547547
"required": [548548
"type",549549
"start",550550
"end"551551
],552552
"type": "object"553553
},554554
"textQuoteSelector": {555555
"description": "W3C Text Quote Selector",556556
"properties": {557557
"exact": {558558
"maxLength": 1000,559559
"type": "string"560560
},561561
"prefix": {562562
"maxLength": 100,563563
"type": "string"564564
},565565
"suffix": {566566
"maxLength": 100,567567
"type": "string"568568
},569569
"type": {570570
"const": "TextQuoteSelector",571571
"type": "string"572572
}573573
},574574
"required": [575575
"type",576576
"exact"577577
],578578
"type": "object"579579
},580580
"textSpanTarget": {581581
"description": "Target text span for inline annotations (W3C Web Annotation compatible)",582582
"properties": {583583
"page": {584584
"description": "0-indexed page number",585585
"minimum": 0,586586
"type": "integer"587587
},588588
"refinedBy": {589589
"description": "Position refinement with page info",590590
"ref": "#textPositionSelector",591591
"type": "ref"592592
},593593
"selector": {594594
"description": "Text quote selector",595595
"ref": "#textQuoteSelector",596596
"type": "ref"597597
},598598
"source": {599599
"description": "Eprint AT-URI",600600
"format": "at-uri",601601
"type": "string"602602
}603603
},604604
"required": [605605
"source"606606
],607607
"type": "object"608608
}609609
},610610
"id": "pub.chive.annotation.listForEprint",611611
"lexicon": 1,612612
"revision": 1613613
}