From
bafyreifox6v4jbw5g3hu26uomrcmhg7zbrotfcycih7nayocw6sstgtakq
indexed 2026-12-01 12:03 UTC
View this version
To
bafyreign3iqagao5uiengf5i7ivhvzd632ktw375xxayx2y3sp36k4ucv4
indexed 2026-12-01 14:42 UTC
View this version
Compatibility
backward compatible Backward compatible. 2 non-breaking changes.
Non-breaking changes (2)
- AddedVertex AddedVertex { vertex_id: "party.whey.writeproxy.defs#delegation.returnTo" }
- AddedEdge AddedEdge { src: "party.whey.writeproxy.defs#delegation", tgt: "party.whey.writeproxy.defs#delegation.returnTo", kind: "prop", name: Some("returnTo") }
Migration guidance
Added
AddedVertex { vertex_id: "party.whey.writeproxy.defs#delegation.returnTo" }
Notes
- Non-breaking: AddedEdge { src: "party.whey.writeproxy.defs#delegation", tgt: "party.whey.writeproxy.defs#delegation.returnTo", kind: "prop", name: Some("returnTo") }
Changes
11
{22
"$type": "com.atproto.lexicon.schema",33
"defs": {44
"auditEntry": {55
"properties": {66
"actor": {77
"format": "did",88
"type": "string"99
},1010
"caller": {1111
"format": "did",1212
"type": "string"1313
},1414
"delegation": {1515
"maxLength": 128,1616
"type": "string"1717
},1818
"error": {1919
"maxLength": 128,2020
"type": "string"2121
},2222
"event": {2323
"maxLength": 64,2424
"type": "string"2525
},2626
"id": {2727
"minimum": 0,2828
"type": "integer"2929
},3030
"reason": {3131
"maxLength": 256,3232
"type": "string"3333
},3434
"role": {3535
"enum": [3636
"delegator",3737
"caller",3838
"operator",3939
"system",4040
"legacy"4141
],4242
"type": "string"4343
},4444
"space": {4545
"format": "space-ref",4646
"type": "string"4747
},4848
"status": {4949
"maximum": 599,5050
"minimum": 100,5151
"type": "integer"5252
},5353
"ts": {5454
"format": "datetime",5555
"type": "string"5656
},5757
"via": {5858
"enum": [5959
"xrpc",6060
"rest"6161
],6262
"type": "string"6363
}6464
},6565
"required": [6666
"id",6767
"ts",6868
"actor",6969
"role",7070
"event",7171
"status"7272
],7373
"type": "object"7474
},7575
"blobPolicy": {7676
"description": "The delegation's blob upload policy.",7777
"properties": {7878
"accept": {7979
"description": "Allowed MIME types or globs. Omit to use the profile/service default.",8080
"items": {8181
"maxLength": 255,8282
"type": "string"8383
},8484
"maxLength": 20,8585
"type": "array"8686
},8787
"allowed": {8888
"type": "boolean"8989
},9090
"maxBytes": {9191
"description": "Maximum bytes per blob for this delegation.",9292
"minimum": 1,9393
"type": "integer"9494
}9595
},9696
"required": [9797
"allowed"9898
],9999
"type": "object"100100
},101101
"blocklistEntry": {102102
"properties": {103103
"createdAt": {104104
"format": "datetime",105105
"type": "string"106106
},107107
"createdBy": {108108
"format": "did",109109
"type": "string"110110
},111111
"expiresAt": {112112
"format": "datetime",113113
"type": "string"114114
},115115
"kind": {116116
"enum": [117117
"did",118118
"pds",119119
"ip",120120
"cidr",121121
"asn",122122
"domain",123123
"nsid"124124
],125125
"type": "string"126126
},127127
"reason": {128128
"maxLength": 256,129129
"type": "string"130130
},131131
"value": {132132
"maxLength": 512,133133
"type": "string"134134
}135135
},136136
"required": [137137
"kind",138138
"value",139139
"createdAt"140140
],141141
"type": "object"142142
},143143
"callerDelegation": {144144
"description": "A delegation as seen by an authorized caller, with effective limits.",145145
"properties": {146146
"actions": {147147
"items": {148148
"enum": [149149
"create",150150
"update",151151
"delete"152152
],153153
"type": "string"154154
},155155
"minLength": 1,156156
"type": "array"157157
},158158
"blob": {159159
"ref": "#blobPolicy",160160
"type": "ref"161161
},162162
"collections": {163163
"items": {164164
"format": "nsid",165165
"type": "string"166166
},167167
"minLength": 1,168168
"type": "array"169169
},170170
"delegation": {171171
"maxLength": 128,172172
"type": "string"173173
},174174
"limits": {175175
"ref": "#limits",176176
"type": "ref"177177
},178178
"remaining": {179179
"ref": "#remaining",180180
"type": "ref"181181
},182182
"repoDID": {183183
"format": "did",184184
"type": "string"185185
},186186
"resetAt": {187187
"format": "datetime",188188
"type": "string"189189
},190190
"space": {191191
"format": "space-ref",192192
"type": "string"193193
},194194
"usage": {195195
"ref": "#usage",196196
"type": "ref"197197
}198198
},199199
"required": [200200
"delegation",201201
"space",202202
"repoDID",203203
"collections",204204
"actions"205205
],206206
"type": "object"207207
},208208
"callerRegistration": {209209
"properties": {210210
"allowlistCount": {211211
"minimum": 0,212212
"type": "integer"213213
},214214
"mode": {215215
"enum": [216216
"none",217217
"open",218218
"approval",219219
"allowlist",220220
"closed"221221
],222222
"type": "string"223223
}224224
},225225
"required": [226226
"mode"227227
],228228
"type": "object"229229
},230230
"callerRequest": {231231
"properties": {232232
"caller": {233233
"format": "did",234234
"type": "string"235235
},236236
"createdAt": {237237
"format": "datetime",238238
"type": "string"239239
},240240
"delegation": {241241
"maxLength": 128,242242
"type": "string"243243
},244244
"id": {245245
"maxLength": 128,246246
"type": "string"247247
},248248
"message": {249249
"maxLength": 1000,250250
"type": "string"251251
},252252
"resolvedAt": {253253
"format": "datetime",254254
"type": "string"255255
},256256
"resolvedBy": {257257
"format": "did",258258
"type": "string"259259
},260260
"status": {261261
"enum": [262262
"pending",263263
"approved",264264
"rejected"265265
],266266
"type": "string"267267
}268268
},269269
"required": [270270
"id",271271
"delegation",272272
"caller",273273
"status",274274
"createdAt"275275
],276276
"type": "object"277277
},278278
"counts": {279279
"properties": {280280
"activeDelegations": {281281
"minimum": 0,282282
"type": "integer"283283
},284284
"blocked": {285285
"minimum": 0,286286
"type": "integer"287287
},288288
"callers": {289289
"minimum": 0,290290
"type": "integer"291291
},292292
"delegations": {293293
"minimum": 0,294294
"type": "integer"295295
},296296
"pendingRequests": {297297
"minimum": 0,298298
"type": "integer"299299
},300300
"registrations": {301301
"minimum": 0,302302
"type": "integer"303303
}304304
},305305
"type": "object"306306
},307307
"credentialHealth": {308308
"properties": {309309
"delegation": {310310
"maxLength": 128,311311
"type": "string"312312
},313313
"expiresAt": {314314
"format": "datetime",315315
"type": "string"316316
},317317
"lastError": {318318
"maxLength": 256,319319
"type": "string"320320
},321321
"lastRefreshAt": {322322
"format": "datetime",323323
"type": "string"324324
},325325
"mode": {326326
"enum": [327327
"oauth"328328
],329329
"type": "string"330330
},331331
"pdsUrl": {332332
"format": "uri",333333
"type": "string"334334
},335335
"refreshState": {336336
"enum": [337337
"pending",338338
"ok",339339
"refreshing",340340
"failed"341341
],342342
"type": "string"343343
},344344
"repoDID": {345345
"format": "did",346346
"type": "string"347347
},348348
"space": {349349
"format": "space-ref",350350
"type": "string"351351
}352352
},353353
"required": [354354
"delegation",355355
"repoDID",356356
"refreshState"357357
],358358
"type": "object"359359
},360360
"credentialStatus": {361361
"description": "Credential health for a delegation. Never contains tokens or DPoP keys.",362362
"properties": {363363
"expiresAt": {364364
"format": "datetime",365365
"type": "string"366366
},367367
"lastError": {368368
"maxLength": 256,369369
"type": "string"370370
},371371
"lastRefreshAt": {372372
"format": "datetime",373373
"type": "string"374374
},375375
"mode": {376376
"enum": [377377
"oauth"378378
],379379
"type": "string"380380
},381381
"pdsUrl": {382382
"format": "uri",383383
"type": "string"384384
},385385
"refreshState": {386386
"enum": [387387
"pending",388388
"ok",389389
"refreshing",390390
"failed"391391
],392392
"type": "string"393393
}394394
},395395
"required": [396396
"mode",397397
"refreshState"398398
],399399
"type": "object"400400
},401401
"delegation": {402402
"description": "One write delegation. It binds exactly one (space, repo) pair and has an immutable scope.",403403
"properties": {404404
"actions": {405405
"items": {406406
"enum": [407407
"create",408408
"update",409409
"delete"410410
],411411
"type": "string"412412
},413413
"maxLength": 3,414414
"minLength": 1,415415
"type": "array"416416
},417417
"activatedAt": {418418
"format": "datetime",419419
"type": "string"420420
},421421
"blob": {422422
"ref": "#blobPolicy",423423
"type": "ref"424424
},425425
"callerCount": {426426
"minimum": 0,427427
"type": "integer"428428
},429429
"callerRevision": {430430
"description": "Compare-and-swap token for the caller allowlist.",431431
"minimum": 0,432432
"type": "integer"433433
},434434
"collections": {435435
"items": {436436
"format": "nsid",437437
"type": "string"438438
},439439
"maxLength": 100,440440
"minLength": 1,441441
"type": "array"442442
},443443
"createdAt": {444444
"format": "datetime",445445
"type": "string"446446
},447447
"id": {448448
"maxLength": 128,449449
"type": "string"450450
},451451
"label": {452452
"maxLength": 128,453453
"type": "string"454454
},455455
"repoDID": {456456
"description": "The repo owner and OAuth subject. Equal to the delegator DID.",457457
"format": "did",458458
"type": "string"459459
},460
"returnTo": {461
"format": "uri",462
"maxLength": 2048,463
"type": "string"464
},460465
"revision": {461466
"description": "Compare-and-swap token for delegation metadata.",462467
"minimum": 0,463468
"type": "integer"464469
},465470
"revokedAt": {466471
"format": "datetime",467472
"type": "string"468473
},469474
"skey": {470475
"format": "record-key",471476
"type": "string"472477
},473478
"space": {474479
"format": "space-ref",475480
"type": "string"476481
},477482
"spaceAuthority": {478483
"format": "did",479484
"type": "string"480485
},481486
"spaceType": {482487
"format": "nsid",483488
"type": "string"484489
},485490
"status": {486491
"enum": [487492
"pending",488493
"active",489494
"degraded",490495
"suspended",491496
"revoked",492497
"expired"493498
],494499
"type": "string"495500
},496501
"updatedAt": {497502
"format": "datetime",498503
"type": "string"499504
}500505
},501506
"required": [502507
"id",503508
"status",504509
"space",505510
"spaceAuthority",506511
"spaceType",507512
"skey",508513
"repoDID",509514
"collections",510515
"actions",511516
"callerCount",512517
"callerRevision",513518
"revision",514519
"createdAt",515520
"updatedAt"516521
],517522
"type": "object"518523
},519524
"delegatorOnboarding": {520525
"properties": {521526
"allowlistCount": {522527
"minimum": 0,523528
"type": "integer"524529
},525530
"mode": {526531
"enum": [527532
"open",528533
"approval",529534
"allowlist",530535
"closed",531536
"disabled"532537
],533538
"type": "string"534539
}535540
},536541
"required": [537542
"mode"538543
],539544
"type": "object"540545
},541546
"limits": {542547
"description": "Effective limits for a service, caller, or delegation scope. Values are integers; units are in the property name or description.",543548
"properties": {544549
"auditRetentionDays": {545550
"minimum": 0,546551
"type": "integer"547552
},548553
"controlPerMinute": {549554
"minimum": 0,550555
"type": "integer"551556
},552557
"idempotencyTtlSeconds": {553558
"minimum": 0,554559
"type": "integer"555560
},556561
"maxBatchWrites": {557562
"minimum": 1,558563
"type": "integer"559564
},560565
"maxBlobBytes": {561566
"minimum": 1,562567
"type": "integer"563568
},564569
"maxBlobUploadsPerDay": {565570
"minimum": 0,566571
"type": "integer"567572
},568573
"maxBodyBytes": {569574
"minimum": 1,570575
"type": "integer"571576
},572577
"maxCallersPerDelegation": {573578
"minimum": 0,574579
"type": "integer"575580
},576581
"maxDelegationsPerRepo": {577582
"minimum": 0,578583
"type": "integer"579584
},580585
"maxRecordBytes": {581586
"minimum": 1,582587
"type": "integer"583588
},584589
"oauthStartsPerHour": {585590
"minimum": 0,586591
"type": "integer"587592
},588593
"rateLimitWindowSeconds": {589594
"minimum": 1,590595
"type": "integer"591596
},592597
"writesPerDay": {593598
"minimum": 0,594599
"type": "integer"595600
},596601
"writesPerMinute": {597602
"minimum": 0,598603
"type": "integer"599604
}600605
},601606
"type": "object"602607
},603608
"limitsView": {604609
"properties": {605610
"limits": {606611
"ref": "#limits",607612
"type": "ref"608613
},609614
"remaining": {610615
"ref": "#remaining",611616
"type": "ref"612617
},613618
"resetAt": {614619
"format": "datetime",615620
"type": "string"616621
},617622
"scope": {618623
"enum": [619624
"service",620625
"caller",621626
"delegation"622627
],623628
"type": "string"624629
},625630
"usage": {626631
"ref": "#usage",627632
"type": "ref"628633
}629634
},630635
"required": [631636
"scope",632637
"limits"633638
],634639
"type": "object"635640
},636641
"oauthClientMetadata": {637642
"properties": {638643
"baseUrl": {639644
"format": "uri",640645
"type": "string"641646
},642647
"jwksUrl": {643648
"format": "uri",644649
"type": "string"645650
},646651
"mode": {647652
"description": "v0 MUST use per-delegation. shared is reserved for a post-v0 revision.",648653
"enum": [649654
"per-delegation",650655
"shared"651656
],652657
"type": "string"653658
},654659
"sharedClientId": {655660
"description": "Only for mode=shared; not used in v0.",656661
"format": "uri",657662
"type": "string"658663
},659664
"template": {660665
"description": "Template for the per-delegation client metadata URL. The {delegation} placeholder is replaced with the delegation ID.",661666
"maxLength": 512,662667
"type": "string"663668
}664669
},665670
"required": [666671
"mode"667672
],668673
"type": "object"669674
},670675
"queue": {671676
"properties": {672677
"pending": {673678
"minimum": 0,674679
"type": "integer"675680
},676681
"spaces": {677682
"minimum": 0,678683
"type": "integer"679684
}680685
},681686
"type": "object"682687
},683688
"quotas": {684689
"properties": {685690
"blobsPerDay": {686691
"minimum": 0,687692
"type": "integer"688693
},689694
"bytesPerDay": {690695
"minimum": 0,691696
"type": "integer"692697
},693698
"concurrent": {694699
"minimum": 0,695700
"type": "integer"696701
},697702
"writesPerDay": {698703
"minimum": 0,699704
"type": "integer"700705
}701706
},702707
"type": "object"703708
},704709
"registration": {705710
"properties": {706711
"approvedAt": {707712
"format": "datetime",708713
"type": "string"709714
},710715
"approvedBy": {711716
"format": "did",712717
"type": "string"713718
},714719
"createdAt": {715720
"format": "datetime",716721
"type": "string"717722
},718723
"did": {719724
"format": "did",720725
"type": "string"721726
},722727
"handle": {723728
"maxLength": 253,724729
"type": "string"725730
},726731
"pdsUrl": {727732
"format": "uri",728733
"type": "string"729734
},730735
"quotas": {731736
"ref": "#quotas",732737
"type": "ref"733738
},734739
"reason": {735740
"maxLength": 256,736741
"type": "string"737742
},738743
"role": {739744
"enum": [740745
"delegator",741746
"caller"742747
],743748
"type": "string"744749
},745750
"status": {746751
"enum": [747752
"pending",748753
"approved",749754
"rejected",750755
"suspended"751756
],752757
"type": "string"753758
},754759
"trustLevel": {755760
"maxLength": 64,756761
"type": "string"757762
}758763
},759764
"required": [760765
"did",761766
"role",762767
"status",763768
"createdAt"764769
],765770
"type": "object"766771
},767772
"remaining": {768773
"description": "Remaining counters for a caller or delegation in the current window.",769774
"properties": {770775
"blobsToday": {771776
"minimum": 0,772777
"type": "integer"773778
},774779
"bytesToday": {775780
"minimum": 0,776781
"type": "integer"777782
},778783
"writesThisMinute": {779784
"minimum": 0,780785
"type": "integer"781786
},782787
"writesToday": {783788
"minimum": 0,784789
"type": "integer"785790
}786791
},787792
"type": "object"788793
},789794
"serviceMode": {790795
"properties": {791796
"callerRegistration": {792797
"ref": "#callerRegistration",793798
"type": "ref"794799
},795800
"delegatorOnboarding": {796801
"ref": "#delegatorOnboarding",797802
"type": "ref"798803
},799804
"writesEnabled": {800805
"type": "boolean"801806
}802807
},803808
"required": [804809
"delegatorOnboarding",805810
"callerRegistration",806811
"writesEnabled"807812
],808813
"type": "object"809814
},810815
"serviceStatus": {811816
"properties": {812817
"callerRegistration": {813818
"ref": "#callerRegistration",814819
"type": "ref"815820
},816821
"counts": {817822
"ref": "#counts",818823
"type": "ref"819824
},820825
"delegatorOnboarding": {821826
"ref": "#delegatorOnboarding",822827
"type": "ref"823828
},824829
"did": {825830
"format": "did",826831
"type": "string"827832
},828833
"endpoint": {829834
"format": "uri",830835
"type": "string"831836
},832837
"limits": {833838
"ref": "#limits",834839
"type": "ref"835840
},836841
"queue": {837842
"ref": "#queue",838843
"type": "ref"839844
},840845
"service": {841846
"maxLength": 128,842847
"type": "string"843848
},844849
"updatedAt": {845850
"format": "datetime",846851
"type": "string"847852
},848853
"uptimeMs": {849854
"minimum": 0,850855
"type": "integer"851856
},852857
"version": {853858
"maxLength": 64,854859
"type": "string"855860
},856861
"writesEnabled": {857862
"type": "boolean"858863
}859864
},860865
"required": [861866
"service",862867
"version",863868
"did",864869
"endpoint",865870
"uptimeMs",866871
"delegatorOnboarding",867872
"callerRegistration",868873
"counts",869874
"limits",870875
"updatedAt"871876
],872877
"type": "object"873878
},874879
"usage": {875880
"description": "Usage counters for a caller or delegation in the current window.",876881
"properties": {877882
"blobsToday": {878883
"minimum": 0,879884
"type": "integer"880885
},881886
"bytesToday": {882887
"minimum": 0,883888
"type": "integer"884889
},885890
"writesThisMinute": {886891
"minimum": 0,887892
"type": "integer"888893
},889894
"writesToday": {890895
"minimum": 0,891896
"type": "integer"892897
}893898
},894899
"type": "object"895900
},896901
"writeAudit": {897902
"properties": {898903
"action": {899904
"enum": [900905
"create",901906
"update",902907
"delete"903908
],904909
"type": "string"905910
},906911
"caller": {907912
"format": "did",908913
"type": "string"909914
},910915
"cid": {911916
"maxLength": 128,912917
"type": "string"913918
},914919
"collection": {915920
"format": "nsid",916921
"type": "string"917922
},918923
"error": {919924
"maxLength": 128,920925
"type": "string"921926
},922927
"id": {923928
"minimum": 0,924929
"type": "integer"925930
},926931
"latencyMs": {927932
"minimum": 0,928933
"type": "integer"929934
},930935
"rkey": {931936
"format": "record-key",932937
"type": "string"933938
},934939
"size": {935940
"minimum": 0,936941
"type": "integer"937942
},938943
"status": {939944
"maximum": 599,940945
"minimum": 100,941946
"type": "integer"942947
},943948
"ts": {944949
"format": "datetime",945950
"type": "string"946951
}947952
},948953
"required": [949954
"id",950955
"ts",951956
"caller",952957
"action",953958
"status"954959
],955960
"type": "object"956961
}957962
},958963
"description": "Shared shapes for the write delegation proxy control plane. The NSID authority is a placeholder.",959964
"id": "party.whey.writeproxy.defs",960965
"lexicon": 1961966
}