@atproto/bsky 0.0.30 → 0.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/db/index.js.map +2 -2
- package/dist/index.js +1315 -587
- package/dist/index.js.map +3 -3
- package/dist/indexer/subscription.d.ts +1 -0
- package/dist/lexicon/index.d.ts +20 -6
- package/dist/lexicon/lexicons.d.ts +449 -110
- package/dist/lexicon/types/app/bsky/actor/defs.d.ts +20 -0
- package/dist/lexicon/types/com/atproto/admin/defs.d.ts +9 -0
- package/dist/lexicon/types/com/atproto/admin/emitModerationEvent.d.ts +1 -1
- package/dist/lexicon/types/com/atproto/admin/queryModerationEvents.d.ts +2 -0
- package/dist/lexicon/types/com/atproto/admin/queryModerationStatuses.d.ts +2 -0
- package/dist/lexicon/types/com/atproto/identity/getRecommendedDidCredentials.d.ts +33 -0
- package/dist/lexicon/types/com/atproto/identity/requestPlcOperationSignature.d.ts +19 -0
- package/dist/lexicon/types/com/atproto/{temp/transferAccount.d.ts → identity/signPlcOperation.d.ts} +6 -8
- package/dist/lexicon/types/com/atproto/identity/submitPlcOperation.d.ts +25 -0
- package/dist/lexicon/types/com/atproto/{temp/pushBlob.d.ts → repo/importRepo.d.ts} +1 -2
- package/dist/lexicon/types/com/atproto/repo/listMissingBlobs.d.ts +41 -0
- package/dist/lexicon/types/com/atproto/server/activateAccount.d.ts +19 -0
- package/dist/lexicon/types/com/atproto/server/checkAccountStatus.d.ts +38 -0
- package/dist/lexicon/types/com/atproto/server/deactivateAccount.d.ts +25 -0
- package/dist/lexicon/types/com/atproto/server/describeServer.d.ts +1 -0
- package/dist/lexicon/types/com/atproto/{temp/importRepo.d.ts → server/getServiceAuth.d.ts} +8 -9
- package/dist/lexicon/types/com/atproto/sync/subscribeRepos.d.ts +9 -1
- package/dist/subscription/util.d.ts +1 -1
- package/package.json +5 -5
- package/src/indexer/subscription.ts +6 -0
- package/src/ingester/subscription.ts +2 -0
- package/src/lexicon/index.ts +124 -36
- package/src/lexicon/lexicons.ts +491 -138
- package/src/lexicon/types/app/bsky/actor/defs.ts +59 -0
- package/src/lexicon/types/app/bsky/feed/post.ts +1 -1
- package/src/lexicon/types/com/atproto/admin/defs.ts +24 -0
- package/src/lexicon/types/com/atproto/admin/emitModerationEvent.ts +1 -0
- package/src/lexicon/types/com/atproto/admin/queryModerationEvents.ts +4 -0
- package/src/lexicon/types/com/atproto/admin/queryModerationStatuses.ts +2 -0
- package/src/lexicon/types/com/atproto/identity/getRecommendedDidCredentials.ts +47 -0
- package/src/lexicon/types/com/atproto/identity/requestPlcOperationSignature.ts +31 -0
- package/src/lexicon/types/com/atproto/{temp/transferAccount.ts → identity/signPlcOperation.ts} +8 -15
- package/src/lexicon/types/com/atproto/identity/submitPlcOperation.ts +38 -0
- package/src/lexicon/types/com/atproto/{temp/pushBlob.ts → repo/importRepo.ts} +2 -5
- package/src/lexicon/types/com/atproto/repo/listMissingBlobs.ts +65 -0
- package/src/lexicon/types/com/atproto/server/activateAccount.ts +31 -0
- package/src/lexicon/types/com/atproto/server/checkAccountStatus.ts +51 -0
- package/src/lexicon/types/com/atproto/server/deactivateAccount.ts +39 -0
- package/src/lexicon/types/com/atproto/server/describeServer.ts +1 -0
- package/src/lexicon/types/com/atproto/{temp/importRepo.ts → server/getServiceAuth.ts} +10 -9
- package/src/lexicon/types/com/atproto/sync/subscribeRepos.ts +24 -3
- package/tests/auto-moderator/labeler.test.ts +4 -1
package/src/lexicon/lexicons.ts
CHANGED
|
@@ -303,6 +303,12 @@ export const schemaDict = {
|
|
|
303
303
|
type: 'string',
|
|
304
304
|
format: 'datetime',
|
|
305
305
|
},
|
|
306
|
+
tags: {
|
|
307
|
+
type: 'array',
|
|
308
|
+
items: {
|
|
309
|
+
type: 'string',
|
|
310
|
+
},
|
|
311
|
+
},
|
|
306
312
|
},
|
|
307
313
|
},
|
|
308
314
|
reportViewDetail: {
|
|
@@ -897,6 +903,33 @@ export const schemaDict = {
|
|
|
897
903
|
},
|
|
898
904
|
},
|
|
899
905
|
},
|
|
906
|
+
modEventTag: {
|
|
907
|
+
type: 'object',
|
|
908
|
+
description: 'Add/Remove a tag on a subject',
|
|
909
|
+
required: ['add', 'remove'],
|
|
910
|
+
properties: {
|
|
911
|
+
add: {
|
|
912
|
+
type: 'array',
|
|
913
|
+
items: {
|
|
914
|
+
type: 'string',
|
|
915
|
+
},
|
|
916
|
+
description:
|
|
917
|
+
"Tags to be added to the subject. If already exists, won't be duplicated.",
|
|
918
|
+
},
|
|
919
|
+
remove: {
|
|
920
|
+
type: 'array',
|
|
921
|
+
items: {
|
|
922
|
+
type: 'string',
|
|
923
|
+
},
|
|
924
|
+
description:
|
|
925
|
+
"Tags to be removed to the subject. Ignores a tag If it doesn't exist, won't be duplicated.",
|
|
926
|
+
},
|
|
927
|
+
comment: {
|
|
928
|
+
type: 'string',
|
|
929
|
+
description: 'Additional comment about added/removed tags.',
|
|
930
|
+
},
|
|
931
|
+
},
|
|
932
|
+
},
|
|
900
933
|
communicationTemplateView: {
|
|
901
934
|
type: 'object',
|
|
902
935
|
required: [
|
|
@@ -1075,6 +1108,7 @@ export const schemaDict = {
|
|
|
1075
1108
|
'lex:com.atproto.admin.defs#modEventReverseTakedown',
|
|
1076
1109
|
'lex:com.atproto.admin.defs#modEventUnmute',
|
|
1077
1110
|
'lex:com.atproto.admin.defs#modEventEmail',
|
|
1111
|
+
'lex:com.atproto.admin.defs#modEventTag',
|
|
1078
1112
|
],
|
|
1079
1113
|
},
|
|
1080
1114
|
subject: {
|
|
@@ -1503,6 +1537,22 @@ export const schemaDict = {
|
|
|
1503
1537
|
description:
|
|
1504
1538
|
'If specified, only events where all of these labels were removed are returned',
|
|
1505
1539
|
},
|
|
1540
|
+
addedTags: {
|
|
1541
|
+
type: 'array',
|
|
1542
|
+
items: {
|
|
1543
|
+
type: 'string',
|
|
1544
|
+
},
|
|
1545
|
+
description:
|
|
1546
|
+
'If specified, only events where all of these tags were added are returned',
|
|
1547
|
+
},
|
|
1548
|
+
removedTags: {
|
|
1549
|
+
type: 'array',
|
|
1550
|
+
items: {
|
|
1551
|
+
type: 'string',
|
|
1552
|
+
},
|
|
1553
|
+
description:
|
|
1554
|
+
'If specified, only events where all of these tags were removed are returned',
|
|
1555
|
+
},
|
|
1506
1556
|
reportTypes: {
|
|
1507
1557
|
type: 'array',
|
|
1508
1558
|
items: {
|
|
@@ -1620,6 +1670,18 @@ export const schemaDict = {
|
|
|
1620
1670
|
maximum: 100,
|
|
1621
1671
|
default: 50,
|
|
1622
1672
|
},
|
|
1673
|
+
tags: {
|
|
1674
|
+
type: 'array',
|
|
1675
|
+
items: {
|
|
1676
|
+
type: 'string',
|
|
1677
|
+
},
|
|
1678
|
+
},
|
|
1679
|
+
excludeTags: {
|
|
1680
|
+
type: 'array',
|
|
1681
|
+
items: {
|
|
1682
|
+
type: 'string',
|
|
1683
|
+
},
|
|
1684
|
+
},
|
|
1623
1685
|
cursor: {
|
|
1624
1686
|
type: 'string',
|
|
1625
1687
|
},
|
|
@@ -1906,6 +1968,56 @@ export const schemaDict = {
|
|
|
1906
1968
|
},
|
|
1907
1969
|
},
|
|
1908
1970
|
},
|
|
1971
|
+
ComAtprotoIdentityGetRecommendedDidCredentials: {
|
|
1972
|
+
lexicon: 1,
|
|
1973
|
+
id: 'com.atproto.identity.getRecommendedDidCredentials',
|
|
1974
|
+
defs: {
|
|
1975
|
+
main: {
|
|
1976
|
+
type: 'query',
|
|
1977
|
+
description:
|
|
1978
|
+
'Describe the credentials that should be included in the DID doc of an account that is migrating to this service.',
|
|
1979
|
+
output: {
|
|
1980
|
+
encoding: 'application/json',
|
|
1981
|
+
schema: {
|
|
1982
|
+
type: 'object',
|
|
1983
|
+
properties: {
|
|
1984
|
+
rotationKeys: {
|
|
1985
|
+
description:
|
|
1986
|
+
'Recommended rotation keys for PLC dids. Should be undefined (or ignored) for did:webs.',
|
|
1987
|
+
type: 'array',
|
|
1988
|
+
items: {
|
|
1989
|
+
type: 'string',
|
|
1990
|
+
},
|
|
1991
|
+
},
|
|
1992
|
+
alsoKnownAs: {
|
|
1993
|
+
type: 'array',
|
|
1994
|
+
items: {
|
|
1995
|
+
type: 'string',
|
|
1996
|
+
},
|
|
1997
|
+
},
|
|
1998
|
+
verificationMethods: {
|
|
1999
|
+
type: 'unknown',
|
|
2000
|
+
},
|
|
2001
|
+
services: {
|
|
2002
|
+
type: 'unknown',
|
|
2003
|
+
},
|
|
2004
|
+
},
|
|
2005
|
+
},
|
|
2006
|
+
},
|
|
2007
|
+
},
|
|
2008
|
+
},
|
|
2009
|
+
},
|
|
2010
|
+
ComAtprotoIdentityRequestPlcOperationSignature: {
|
|
2011
|
+
lexicon: 1,
|
|
2012
|
+
id: 'com.atproto.identity.requestPlcOperationSignature',
|
|
2013
|
+
defs: {
|
|
2014
|
+
main: {
|
|
2015
|
+
type: 'procedure',
|
|
2016
|
+
description:
|
|
2017
|
+
'Request an email with a code to in order to request a signed PLC operation. Requires Auth.',
|
|
2018
|
+
},
|
|
2019
|
+
},
|
|
2020
|
+
},
|
|
1909
2021
|
ComAtprotoIdentityResolveHandle: {
|
|
1910
2022
|
lexicon: 1,
|
|
1911
2023
|
id: 'com.atproto.identity.resolveHandle',
|
|
@@ -1940,6 +2052,84 @@ export const schemaDict = {
|
|
|
1940
2052
|
},
|
|
1941
2053
|
},
|
|
1942
2054
|
},
|
|
2055
|
+
ComAtprotoIdentitySignPlcOperation: {
|
|
2056
|
+
lexicon: 1,
|
|
2057
|
+
id: 'com.atproto.identity.signPlcOperation',
|
|
2058
|
+
defs: {
|
|
2059
|
+
main: {
|
|
2060
|
+
type: 'procedure',
|
|
2061
|
+
description:
|
|
2062
|
+
"Signs a PLC operation to update some value(s) in the requesting DID's document.",
|
|
2063
|
+
input: {
|
|
2064
|
+
encoding: 'application/json',
|
|
2065
|
+
schema: {
|
|
2066
|
+
type: 'object',
|
|
2067
|
+
properties: {
|
|
2068
|
+
token: {
|
|
2069
|
+
description:
|
|
2070
|
+
'A token received through com.atproto.identity.requestPlcOperationSignature',
|
|
2071
|
+
type: 'string',
|
|
2072
|
+
},
|
|
2073
|
+
rotationKeys: {
|
|
2074
|
+
type: 'array',
|
|
2075
|
+
items: {
|
|
2076
|
+
type: 'string',
|
|
2077
|
+
},
|
|
2078
|
+
},
|
|
2079
|
+
alsoKnownAs: {
|
|
2080
|
+
type: 'array',
|
|
2081
|
+
items: {
|
|
2082
|
+
type: 'string',
|
|
2083
|
+
},
|
|
2084
|
+
},
|
|
2085
|
+
verificationMethods: {
|
|
2086
|
+
type: 'unknown',
|
|
2087
|
+
},
|
|
2088
|
+
services: {
|
|
2089
|
+
type: 'unknown',
|
|
2090
|
+
},
|
|
2091
|
+
},
|
|
2092
|
+
},
|
|
2093
|
+
},
|
|
2094
|
+
output: {
|
|
2095
|
+
encoding: 'application/json',
|
|
2096
|
+
schema: {
|
|
2097
|
+
type: 'object',
|
|
2098
|
+
required: ['operation'],
|
|
2099
|
+
properties: {
|
|
2100
|
+
operation: {
|
|
2101
|
+
type: 'unknown',
|
|
2102
|
+
description: 'A signed DID PLC operation.',
|
|
2103
|
+
},
|
|
2104
|
+
},
|
|
2105
|
+
},
|
|
2106
|
+
},
|
|
2107
|
+
},
|
|
2108
|
+
},
|
|
2109
|
+
},
|
|
2110
|
+
ComAtprotoIdentitySubmitPlcOperation: {
|
|
2111
|
+
lexicon: 1,
|
|
2112
|
+
id: 'com.atproto.identity.submitPlcOperation',
|
|
2113
|
+
defs: {
|
|
2114
|
+
main: {
|
|
2115
|
+
type: 'procedure',
|
|
2116
|
+
description:
|
|
2117
|
+
"Validates a PLC operation to ensure that it doesn't violate a service's constraints or get the identity into a bad state, then submits it to the PLC registry",
|
|
2118
|
+
input: {
|
|
2119
|
+
encoding: 'application/json',
|
|
2120
|
+
schema: {
|
|
2121
|
+
type: 'object',
|
|
2122
|
+
required: ['operation'],
|
|
2123
|
+
properties: {
|
|
2124
|
+
operation: {
|
|
2125
|
+
type: 'unknown',
|
|
2126
|
+
},
|
|
2127
|
+
},
|
|
2128
|
+
},
|
|
2129
|
+
},
|
|
2130
|
+
},
|
|
2131
|
+
},
|
|
2132
|
+
},
|
|
1943
2133
|
ComAtprotoIdentityUpdateHandle: {
|
|
1944
2134
|
lexicon: 1,
|
|
1945
2135
|
id: 'com.atproto.identity.updateHandle',
|
|
@@ -2648,6 +2838,78 @@ export const schemaDict = {
|
|
|
2648
2838
|
},
|
|
2649
2839
|
},
|
|
2650
2840
|
},
|
|
2841
|
+
ComAtprotoRepoImportRepo: {
|
|
2842
|
+
lexicon: 1,
|
|
2843
|
+
id: 'com.atproto.repo.importRepo',
|
|
2844
|
+
defs: {
|
|
2845
|
+
main: {
|
|
2846
|
+
type: 'procedure',
|
|
2847
|
+
description:
|
|
2848
|
+
'Import a repo in the form of a CAR file. Requires Content-Length HTTP header to be set.',
|
|
2849
|
+
input: {
|
|
2850
|
+
encoding: 'application/vnd.ipld.car',
|
|
2851
|
+
},
|
|
2852
|
+
},
|
|
2853
|
+
},
|
|
2854
|
+
},
|
|
2855
|
+
ComAtprotoRepoListMissingBlobs: {
|
|
2856
|
+
lexicon: 1,
|
|
2857
|
+
id: 'com.atproto.repo.listMissingBlobs',
|
|
2858
|
+
defs: {
|
|
2859
|
+
main: {
|
|
2860
|
+
type: 'query',
|
|
2861
|
+
description:
|
|
2862
|
+
'Returns a list of missing blobs for the requesting account. Intended to be used in the account migration flow.',
|
|
2863
|
+
parameters: {
|
|
2864
|
+
type: 'params',
|
|
2865
|
+
properties: {
|
|
2866
|
+
limit: {
|
|
2867
|
+
type: 'integer',
|
|
2868
|
+
minimum: 1,
|
|
2869
|
+
maximum: 1000,
|
|
2870
|
+
default: 500,
|
|
2871
|
+
},
|
|
2872
|
+
cursor: {
|
|
2873
|
+
type: 'string',
|
|
2874
|
+
},
|
|
2875
|
+
},
|
|
2876
|
+
},
|
|
2877
|
+
output: {
|
|
2878
|
+
encoding: 'application/json',
|
|
2879
|
+
schema: {
|
|
2880
|
+
type: 'object',
|
|
2881
|
+
required: ['blobs'],
|
|
2882
|
+
properties: {
|
|
2883
|
+
cursor: {
|
|
2884
|
+
type: 'string',
|
|
2885
|
+
},
|
|
2886
|
+
blobs: {
|
|
2887
|
+
type: 'array',
|
|
2888
|
+
items: {
|
|
2889
|
+
type: 'ref',
|
|
2890
|
+
ref: 'lex:com.atproto.repo.listMissingBlobs#recordBlob',
|
|
2891
|
+
},
|
|
2892
|
+
},
|
|
2893
|
+
},
|
|
2894
|
+
},
|
|
2895
|
+
},
|
|
2896
|
+
},
|
|
2897
|
+
recordBlob: {
|
|
2898
|
+
type: 'object',
|
|
2899
|
+
required: ['cid', 'recordUri'],
|
|
2900
|
+
properties: {
|
|
2901
|
+
cid: {
|
|
2902
|
+
type: 'string',
|
|
2903
|
+
format: 'cid',
|
|
2904
|
+
},
|
|
2905
|
+
recordUri: {
|
|
2906
|
+
type: 'string',
|
|
2907
|
+
format: 'at-uri',
|
|
2908
|
+
},
|
|
2909
|
+
},
|
|
2910
|
+
},
|
|
2911
|
+
},
|
|
2912
|
+
},
|
|
2651
2913
|
ComAtprotoRepoListRecords: {
|
|
2652
2914
|
lexicon: 1,
|
|
2653
2915
|
id: 'com.atproto.repo.listRecords',
|
|
@@ -2863,6 +3125,75 @@ export const schemaDict = {
|
|
|
2863
3125
|
},
|
|
2864
3126
|
},
|
|
2865
3127
|
},
|
|
3128
|
+
ComAtprotoServerActivateAccount: {
|
|
3129
|
+
lexicon: 1,
|
|
3130
|
+
id: 'com.atproto.server.activateAccount',
|
|
3131
|
+
defs: {
|
|
3132
|
+
main: {
|
|
3133
|
+
type: 'procedure',
|
|
3134
|
+
description:
|
|
3135
|
+
"Activates a currently deactivated account. Used to finalize account migration after the account's repo is imported and identity is setup.",
|
|
3136
|
+
},
|
|
3137
|
+
},
|
|
3138
|
+
},
|
|
3139
|
+
ComAtprotoServerCheckAccountStatus: {
|
|
3140
|
+
lexicon: 1,
|
|
3141
|
+
id: 'com.atproto.server.checkAccountStatus',
|
|
3142
|
+
defs: {
|
|
3143
|
+
main: {
|
|
3144
|
+
type: 'query',
|
|
3145
|
+
description:
|
|
3146
|
+
'Returns the status of an account, especially as pertaining to import or recovery. Can be called many times over the course of an account migration. Requires auth and can only be called pertaining to oneself.',
|
|
3147
|
+
output: {
|
|
3148
|
+
encoding: 'application/json',
|
|
3149
|
+
schema: {
|
|
3150
|
+
type: 'object',
|
|
3151
|
+
required: [
|
|
3152
|
+
'activated',
|
|
3153
|
+
'validDid',
|
|
3154
|
+
'repoCommit',
|
|
3155
|
+
'repoRev',
|
|
3156
|
+
'repoBlocks',
|
|
3157
|
+
'indexedRecords',
|
|
3158
|
+
'privateStateValues',
|
|
3159
|
+
'expectedBlobs',
|
|
3160
|
+
'importedBlobs',
|
|
3161
|
+
],
|
|
3162
|
+
properties: {
|
|
3163
|
+
activated: {
|
|
3164
|
+
type: 'boolean',
|
|
3165
|
+
},
|
|
3166
|
+
validDid: {
|
|
3167
|
+
type: 'boolean',
|
|
3168
|
+
},
|
|
3169
|
+
repoCommit: {
|
|
3170
|
+
type: 'string',
|
|
3171
|
+
format: 'cid',
|
|
3172
|
+
},
|
|
3173
|
+
repoRev: {
|
|
3174
|
+
type: 'string',
|
|
3175
|
+
},
|
|
3176
|
+
repoBlocks: {
|
|
3177
|
+
type: 'integer',
|
|
3178
|
+
},
|
|
3179
|
+
indexedRecords: {
|
|
3180
|
+
type: 'integer',
|
|
3181
|
+
},
|
|
3182
|
+
privateStateValues: {
|
|
3183
|
+
type: 'integer',
|
|
3184
|
+
},
|
|
3185
|
+
expectedBlobs: {
|
|
3186
|
+
type: 'integer',
|
|
3187
|
+
},
|
|
3188
|
+
importedBlobs: {
|
|
3189
|
+
type: 'integer',
|
|
3190
|
+
},
|
|
3191
|
+
},
|
|
3192
|
+
},
|
|
3193
|
+
},
|
|
3194
|
+
},
|
|
3195
|
+
},
|
|
3196
|
+
},
|
|
2866
3197
|
ComAtprotoServerConfirmEmail: {
|
|
2867
3198
|
lexicon: 1,
|
|
2868
3199
|
id: 'com.atproto.server.confirmEmail',
|
|
@@ -3231,6 +3562,31 @@ export const schemaDict = {
|
|
|
3231
3562
|
},
|
|
3232
3563
|
},
|
|
3233
3564
|
},
|
|
3565
|
+
ComAtprotoServerDeactivateAccount: {
|
|
3566
|
+
lexicon: 1,
|
|
3567
|
+
id: 'com.atproto.server.deactivateAccount',
|
|
3568
|
+
defs: {
|
|
3569
|
+
main: {
|
|
3570
|
+
type: 'procedure',
|
|
3571
|
+
description:
|
|
3572
|
+
'Deactivates a currently active account. Stops serving of repo, and future writes to repo until reactivated. Used to finalize account migration with the old host after the account has been activated on the new host.',
|
|
3573
|
+
input: {
|
|
3574
|
+
encoding: 'application/json',
|
|
3575
|
+
schema: {
|
|
3576
|
+
type: 'object',
|
|
3577
|
+
properties: {
|
|
3578
|
+
deleteAfter: {
|
|
3579
|
+
type: 'string',
|
|
3580
|
+
format: 'datetime',
|
|
3581
|
+
description:
|
|
3582
|
+
'A recommendation to server as to how long they should hold onto the deactivated account before deleting.',
|
|
3583
|
+
},
|
|
3584
|
+
},
|
|
3585
|
+
},
|
|
3586
|
+
},
|
|
3587
|
+
},
|
|
3588
|
+
},
|
|
3589
|
+
},
|
|
3234
3590
|
ComAtprotoServerDefs: {
|
|
3235
3591
|
lexicon: 1,
|
|
3236
3592
|
id: 'com.atproto.server.defs',
|
|
@@ -3351,7 +3707,7 @@ export const schemaDict = {
|
|
|
3351
3707
|
encoding: 'application/json',
|
|
3352
3708
|
schema: {
|
|
3353
3709
|
type: 'object',
|
|
3354
|
-
required: ['availableUserDomains'],
|
|
3710
|
+
required: ['did', 'availableUserDomains'],
|
|
3355
3711
|
properties: {
|
|
3356
3712
|
inviteCodeRequired: {
|
|
3357
3713
|
type: 'boolean',
|
|
@@ -3376,6 +3732,10 @@ export const schemaDict = {
|
|
|
3376
3732
|
description: 'URLs of service policy documents.',
|
|
3377
3733
|
ref: 'lex:com.atproto.server.describeServer#links',
|
|
3378
3734
|
},
|
|
3735
|
+
did: {
|
|
3736
|
+
type: 'string',
|
|
3737
|
+
format: 'did',
|
|
3738
|
+
},
|
|
3379
3739
|
},
|
|
3380
3740
|
},
|
|
3381
3741
|
},
|
|
@@ -3440,6 +3800,41 @@ export const schemaDict = {
|
|
|
3440
3800
|
},
|
|
3441
3801
|
},
|
|
3442
3802
|
},
|
|
3803
|
+
ComAtprotoServerGetServiceAuth: {
|
|
3804
|
+
lexicon: 1,
|
|
3805
|
+
id: 'com.atproto.server.getServiceAuth',
|
|
3806
|
+
defs: {
|
|
3807
|
+
main: {
|
|
3808
|
+
type: 'query',
|
|
3809
|
+
description:
|
|
3810
|
+
'Get a signed token on behalf of the requesting DID for the requested service.',
|
|
3811
|
+
parameters: {
|
|
3812
|
+
type: 'params',
|
|
3813
|
+
required: ['aud'],
|
|
3814
|
+
properties: {
|
|
3815
|
+
aud: {
|
|
3816
|
+
type: 'string',
|
|
3817
|
+
format: 'did',
|
|
3818
|
+
description:
|
|
3819
|
+
'The DID of the service that the token will be used to authenticate with',
|
|
3820
|
+
},
|
|
3821
|
+
},
|
|
3822
|
+
},
|
|
3823
|
+
output: {
|
|
3824
|
+
encoding: 'application/json',
|
|
3825
|
+
schema: {
|
|
3826
|
+
type: 'object',
|
|
3827
|
+
required: ['token'],
|
|
3828
|
+
properties: {
|
|
3829
|
+
token: {
|
|
3830
|
+
type: 'string',
|
|
3831
|
+
},
|
|
3832
|
+
},
|
|
3833
|
+
},
|
|
3834
|
+
},
|
|
3835
|
+
},
|
|
3836
|
+
},
|
|
3837
|
+
},
|
|
3443
3838
|
ComAtprotoServerGetSession: {
|
|
3444
3839
|
lexicon: 1,
|
|
3445
3840
|
id: 'com.atproto.server.getSession',
|
|
@@ -4184,6 +4579,7 @@ export const schemaDict = {
|
|
|
4184
4579
|
type: 'union',
|
|
4185
4580
|
refs: [
|
|
4186
4581
|
'lex:com.atproto.sync.subscribeRepos#commit',
|
|
4582
|
+
'lex:com.atproto.sync.subscribeRepos#identity',
|
|
4187
4583
|
'lex:com.atproto.sync.subscribeRepos#handle',
|
|
4188
4584
|
'lex:com.atproto.sync.subscribeRepos#migrate',
|
|
4189
4585
|
'lex:com.atproto.sync.subscribeRepos#tombstone',
|
|
@@ -4290,10 +4686,29 @@ export const schemaDict = {
|
|
|
4290
4686
|
},
|
|
4291
4687
|
},
|
|
4292
4688
|
},
|
|
4689
|
+
identity: {
|
|
4690
|
+
type: 'object',
|
|
4691
|
+
description:
|
|
4692
|
+
"Represents a change to an account's identity. Could be an updated handle, signing key, or pds hosting endpoint. Serves as a prod to all downstream services to refresh their identity cache.",
|
|
4693
|
+
required: ['seq', 'did', 'time'],
|
|
4694
|
+
properties: {
|
|
4695
|
+
seq: {
|
|
4696
|
+
type: 'integer',
|
|
4697
|
+
},
|
|
4698
|
+
did: {
|
|
4699
|
+
type: 'string',
|
|
4700
|
+
format: 'did',
|
|
4701
|
+
},
|
|
4702
|
+
time: {
|
|
4703
|
+
type: 'string',
|
|
4704
|
+
format: 'datetime',
|
|
4705
|
+
},
|
|
4706
|
+
},
|
|
4707
|
+
},
|
|
4293
4708
|
handle: {
|
|
4294
4709
|
type: 'object',
|
|
4295
4710
|
description:
|
|
4296
|
-
"Represents an update of the account's handle, or transition to/from invalid state.",
|
|
4711
|
+
"Represents an update of the account's handle, or transition to/from invalid state. NOTE: Will be deprecated in favor of #identity.",
|
|
4297
4712
|
required: ['seq', 'did', 'handle', 'time'],
|
|
4298
4713
|
properties: {
|
|
4299
4714
|
seq: {
|
|
@@ -4316,7 +4731,7 @@ export const schemaDict = {
|
|
|
4316
4731
|
migrate: {
|
|
4317
4732
|
type: 'object',
|
|
4318
4733
|
description:
|
|
4319
|
-
'Represents an account moving from one PDS instance to another. NOTE: not implemented;
|
|
4734
|
+
'Represents an account moving from one PDS instance to another. NOTE: not implemented; account migration uses #identity instead',
|
|
4320
4735
|
required: ['seq', 'did', 'migrateTo', 'time'],
|
|
4321
4736
|
nullable: ['migrateTo'],
|
|
4322
4737
|
properties: {
|
|
@@ -4338,7 +4753,8 @@ export const schemaDict = {
|
|
|
4338
4753
|
},
|
|
4339
4754
|
tombstone: {
|
|
4340
4755
|
type: 'object',
|
|
4341
|
-
description:
|
|
4756
|
+
description:
|
|
4757
|
+
'Indicates that an account has been deleted. NOTE: may be deprecated in favor of #identity or a future #account event',
|
|
4342
4758
|
required: ['seq', 'did', 'time'],
|
|
4343
4759
|
properties: {
|
|
4344
4760
|
seq: {
|
|
@@ -4458,59 +4874,6 @@ export const schemaDict = {
|
|
|
4458
4874
|
},
|
|
4459
4875
|
},
|
|
4460
4876
|
},
|
|
4461
|
-
ComAtprotoTempImportRepo: {
|
|
4462
|
-
lexicon: 1,
|
|
4463
|
-
id: 'com.atproto.temp.importRepo',
|
|
4464
|
-
defs: {
|
|
4465
|
-
main: {
|
|
4466
|
-
type: 'procedure',
|
|
4467
|
-
description:
|
|
4468
|
-
"Gets the did's repo, optionally catching up from a specific revision.",
|
|
4469
|
-
parameters: {
|
|
4470
|
-
type: 'params',
|
|
4471
|
-
required: ['did'],
|
|
4472
|
-
properties: {
|
|
4473
|
-
did: {
|
|
4474
|
-
type: 'string',
|
|
4475
|
-
format: 'did',
|
|
4476
|
-
description: 'The DID of the repo.',
|
|
4477
|
-
},
|
|
4478
|
-
},
|
|
4479
|
-
},
|
|
4480
|
-
input: {
|
|
4481
|
-
encoding: 'application/vnd.ipld.car',
|
|
4482
|
-
},
|
|
4483
|
-
output: {
|
|
4484
|
-
encoding: 'text/plain',
|
|
4485
|
-
},
|
|
4486
|
-
},
|
|
4487
|
-
},
|
|
4488
|
-
},
|
|
4489
|
-
ComAtprotoTempPushBlob: {
|
|
4490
|
-
lexicon: 1,
|
|
4491
|
-
id: 'com.atproto.temp.pushBlob',
|
|
4492
|
-
defs: {
|
|
4493
|
-
main: {
|
|
4494
|
-
type: 'procedure',
|
|
4495
|
-
description:
|
|
4496
|
-
"Gets the did's repo, optionally catching up from a specific revision.",
|
|
4497
|
-
parameters: {
|
|
4498
|
-
type: 'params',
|
|
4499
|
-
required: ['did'],
|
|
4500
|
-
properties: {
|
|
4501
|
-
did: {
|
|
4502
|
-
type: 'string',
|
|
4503
|
-
format: 'did',
|
|
4504
|
-
description: 'The DID of the repo.',
|
|
4505
|
-
},
|
|
4506
|
-
},
|
|
4507
|
-
},
|
|
4508
|
-
input: {
|
|
4509
|
-
encoding: '*/*',
|
|
4510
|
-
},
|
|
4511
|
-
},
|
|
4512
|
-
},
|
|
4513
|
-
},
|
|
4514
4877
|
ComAtprotoTempRequestPhoneVerification: {
|
|
4515
4878
|
lexicon: 1,
|
|
4516
4879
|
id: 'com.atproto.temp.requestPhoneVerification',
|
|
@@ -4534,83 +4897,6 @@ export const schemaDict = {
|
|
|
4534
4897
|
},
|
|
4535
4898
|
},
|
|
4536
4899
|
},
|
|
4537
|
-
ComAtprotoTempTransferAccount: {
|
|
4538
|
-
lexicon: 1,
|
|
4539
|
-
id: 'com.atproto.temp.transferAccount',
|
|
4540
|
-
defs: {
|
|
4541
|
-
main: {
|
|
4542
|
-
type: 'procedure',
|
|
4543
|
-
description:
|
|
4544
|
-
'Transfer an account. NOTE: temporary method, necessarily how account migration will be implemented.',
|
|
4545
|
-
input: {
|
|
4546
|
-
encoding: 'application/json',
|
|
4547
|
-
schema: {
|
|
4548
|
-
type: 'object',
|
|
4549
|
-
required: ['handle', 'did', 'plcOp'],
|
|
4550
|
-
properties: {
|
|
4551
|
-
handle: {
|
|
4552
|
-
type: 'string',
|
|
4553
|
-
format: 'handle',
|
|
4554
|
-
},
|
|
4555
|
-
did: {
|
|
4556
|
-
type: 'string',
|
|
4557
|
-
format: 'did',
|
|
4558
|
-
},
|
|
4559
|
-
plcOp: {
|
|
4560
|
-
type: 'unknown',
|
|
4561
|
-
},
|
|
4562
|
-
},
|
|
4563
|
-
},
|
|
4564
|
-
},
|
|
4565
|
-
output: {
|
|
4566
|
-
encoding: 'application/json',
|
|
4567
|
-
schema: {
|
|
4568
|
-
type: 'object',
|
|
4569
|
-
required: ['accessJwt', 'refreshJwt', 'handle', 'did'],
|
|
4570
|
-
properties: {
|
|
4571
|
-
accessJwt: {
|
|
4572
|
-
type: 'string',
|
|
4573
|
-
},
|
|
4574
|
-
refreshJwt: {
|
|
4575
|
-
type: 'string',
|
|
4576
|
-
},
|
|
4577
|
-
handle: {
|
|
4578
|
-
type: 'string',
|
|
4579
|
-
format: 'handle',
|
|
4580
|
-
},
|
|
4581
|
-
did: {
|
|
4582
|
-
type: 'string',
|
|
4583
|
-
format: 'did',
|
|
4584
|
-
},
|
|
4585
|
-
},
|
|
4586
|
-
},
|
|
4587
|
-
},
|
|
4588
|
-
errors: [
|
|
4589
|
-
{
|
|
4590
|
-
name: 'InvalidHandle',
|
|
4591
|
-
},
|
|
4592
|
-
{
|
|
4593
|
-
name: 'InvalidPassword',
|
|
4594
|
-
},
|
|
4595
|
-
{
|
|
4596
|
-
name: 'InvalidInviteCode',
|
|
4597
|
-
},
|
|
4598
|
-
{
|
|
4599
|
-
name: 'HandleNotAvailable',
|
|
4600
|
-
},
|
|
4601
|
-
{
|
|
4602
|
-
name: 'UnsupportedDomain',
|
|
4603
|
-
},
|
|
4604
|
-
{
|
|
4605
|
-
name: 'UnresolvableDid',
|
|
4606
|
-
},
|
|
4607
|
-
{
|
|
4608
|
-
name: 'IncompatibleDidDoc',
|
|
4609
|
-
},
|
|
4610
|
-
],
|
|
4611
|
-
},
|
|
4612
|
-
},
|
|
4613
|
-
},
|
|
4614
4900
|
AppBskyActorDefs: {
|
|
4615
4901
|
lexicon: 1,
|
|
4616
4902
|
id: 'app.bsky.actor.defs',
|
|
@@ -4912,6 +5198,62 @@ export const schemaDict = {
|
|
|
4912
5198
|
},
|
|
4913
5199
|
},
|
|
4914
5200
|
},
|
|
5201
|
+
mutedWordTarget: {
|
|
5202
|
+
type: 'string',
|
|
5203
|
+
knownValues: ['content', 'tag'],
|
|
5204
|
+
maxLength: 640,
|
|
5205
|
+
maxGraphemes: 64,
|
|
5206
|
+
},
|
|
5207
|
+
mutedWord: {
|
|
5208
|
+
type: 'object',
|
|
5209
|
+
description: 'A word that the account owner has muted.',
|
|
5210
|
+
required: ['value', 'targets'],
|
|
5211
|
+
properties: {
|
|
5212
|
+
value: {
|
|
5213
|
+
type: 'string',
|
|
5214
|
+
description: 'The muted word itself.',
|
|
5215
|
+
maxLength: 10000,
|
|
5216
|
+
maxGraphemes: 1000,
|
|
5217
|
+
},
|
|
5218
|
+
targets: {
|
|
5219
|
+
type: 'array',
|
|
5220
|
+
description: 'The intended targets of the muted word.',
|
|
5221
|
+
items: {
|
|
5222
|
+
type: 'ref',
|
|
5223
|
+
ref: 'lex:app.bsky.actor.defs#mutedWordTarget',
|
|
5224
|
+
},
|
|
5225
|
+
},
|
|
5226
|
+
},
|
|
5227
|
+
},
|
|
5228
|
+
mutedWordsPref: {
|
|
5229
|
+
type: 'object',
|
|
5230
|
+
required: ['items'],
|
|
5231
|
+
properties: {
|
|
5232
|
+
items: {
|
|
5233
|
+
type: 'array',
|
|
5234
|
+
items: {
|
|
5235
|
+
type: 'ref',
|
|
5236
|
+
ref: 'lex:app.bsky.actor.defs#mutedWord',
|
|
5237
|
+
},
|
|
5238
|
+
description: 'A list of words the account owner has muted.',
|
|
5239
|
+
},
|
|
5240
|
+
},
|
|
5241
|
+
},
|
|
5242
|
+
hiddenPostsPref: {
|
|
5243
|
+
type: 'object',
|
|
5244
|
+
required: ['items'],
|
|
5245
|
+
properties: {
|
|
5246
|
+
items: {
|
|
5247
|
+
type: 'array',
|
|
5248
|
+
items: {
|
|
5249
|
+
type: 'string',
|
|
5250
|
+
format: 'at-uri',
|
|
5251
|
+
},
|
|
5252
|
+
description:
|
|
5253
|
+
'A list of URIs of posts the account owner has hidden.',
|
|
5254
|
+
},
|
|
5255
|
+
},
|
|
5256
|
+
},
|
|
4915
5257
|
},
|
|
4916
5258
|
},
|
|
4917
5259
|
AppBskyActorGetPreferences: {
|
|
@@ -6822,7 +7164,8 @@ export const schemaDict = {
|
|
|
6822
7164
|
},
|
|
6823
7165
|
tags: {
|
|
6824
7166
|
type: 'array',
|
|
6825
|
-
description:
|
|
7167
|
+
description:
|
|
7168
|
+
'Additional hashtags, in addition to any included in post text and facets.',
|
|
6826
7169
|
maxLength: 8,
|
|
6827
7170
|
items: {
|
|
6828
7171
|
type: 'string',
|
|
@@ -8520,7 +8863,14 @@ export const ids = {
|
|
|
8520
8863
|
ComAtprotoAdminUpdateCommunicationTemplate:
|
|
8521
8864
|
'com.atproto.admin.updateCommunicationTemplate',
|
|
8522
8865
|
ComAtprotoAdminUpdateSubjectStatus: 'com.atproto.admin.updateSubjectStatus',
|
|
8866
|
+
ComAtprotoIdentityGetRecommendedDidCredentials:
|
|
8867
|
+
'com.atproto.identity.getRecommendedDidCredentials',
|
|
8868
|
+
ComAtprotoIdentityRequestPlcOperationSignature:
|
|
8869
|
+
'com.atproto.identity.requestPlcOperationSignature',
|
|
8523
8870
|
ComAtprotoIdentityResolveHandle: 'com.atproto.identity.resolveHandle',
|
|
8871
|
+
ComAtprotoIdentitySignPlcOperation: 'com.atproto.identity.signPlcOperation',
|
|
8872
|
+
ComAtprotoIdentitySubmitPlcOperation:
|
|
8873
|
+
'com.atproto.identity.submitPlcOperation',
|
|
8524
8874
|
ComAtprotoIdentityUpdateHandle: 'com.atproto.identity.updateHandle',
|
|
8525
8875
|
ComAtprotoLabelDefs: 'com.atproto.label.defs',
|
|
8526
8876
|
ComAtprotoLabelQueryLabels: 'com.atproto.label.queryLabels',
|
|
@@ -8532,22 +8882,28 @@ export const ids = {
|
|
|
8532
8882
|
ComAtprotoRepoDeleteRecord: 'com.atproto.repo.deleteRecord',
|
|
8533
8883
|
ComAtprotoRepoDescribeRepo: 'com.atproto.repo.describeRepo',
|
|
8534
8884
|
ComAtprotoRepoGetRecord: 'com.atproto.repo.getRecord',
|
|
8885
|
+
ComAtprotoRepoImportRepo: 'com.atproto.repo.importRepo',
|
|
8886
|
+
ComAtprotoRepoListMissingBlobs: 'com.atproto.repo.listMissingBlobs',
|
|
8535
8887
|
ComAtprotoRepoListRecords: 'com.atproto.repo.listRecords',
|
|
8536
8888
|
ComAtprotoRepoPutRecord: 'com.atproto.repo.putRecord',
|
|
8537
8889
|
ComAtprotoRepoStrongRef: 'com.atproto.repo.strongRef',
|
|
8538
8890
|
ComAtprotoRepoUploadBlob: 'com.atproto.repo.uploadBlob',
|
|
8891
|
+
ComAtprotoServerActivateAccount: 'com.atproto.server.activateAccount',
|
|
8892
|
+
ComAtprotoServerCheckAccountStatus: 'com.atproto.server.checkAccountStatus',
|
|
8539
8893
|
ComAtprotoServerConfirmEmail: 'com.atproto.server.confirmEmail',
|
|
8540
8894
|
ComAtprotoServerCreateAccount: 'com.atproto.server.createAccount',
|
|
8541
8895
|
ComAtprotoServerCreateAppPassword: 'com.atproto.server.createAppPassword',
|
|
8542
8896
|
ComAtprotoServerCreateInviteCode: 'com.atproto.server.createInviteCode',
|
|
8543
8897
|
ComAtprotoServerCreateInviteCodes: 'com.atproto.server.createInviteCodes',
|
|
8544
8898
|
ComAtprotoServerCreateSession: 'com.atproto.server.createSession',
|
|
8899
|
+
ComAtprotoServerDeactivateAccount: 'com.atproto.server.deactivateAccount',
|
|
8545
8900
|
ComAtprotoServerDefs: 'com.atproto.server.defs',
|
|
8546
8901
|
ComAtprotoServerDeleteAccount: 'com.atproto.server.deleteAccount',
|
|
8547
8902
|
ComAtprotoServerDeleteSession: 'com.atproto.server.deleteSession',
|
|
8548
8903
|
ComAtprotoServerDescribeServer: 'com.atproto.server.describeServer',
|
|
8549
8904
|
ComAtprotoServerGetAccountInviteCodes:
|
|
8550
8905
|
'com.atproto.server.getAccountInviteCodes',
|
|
8906
|
+
ComAtprotoServerGetServiceAuth: 'com.atproto.server.getServiceAuth',
|
|
8551
8907
|
ComAtprotoServerGetSession: 'com.atproto.server.getSession',
|
|
8552
8908
|
ComAtprotoServerListAppPasswords: 'com.atproto.server.listAppPasswords',
|
|
8553
8909
|
ComAtprotoServerRefreshSession: 'com.atproto.server.refreshSession',
|
|
@@ -8576,11 +8932,8 @@ export const ids = {
|
|
|
8576
8932
|
ComAtprotoSyncSubscribeRepos: 'com.atproto.sync.subscribeRepos',
|
|
8577
8933
|
ComAtprotoTempCheckSignupQueue: 'com.atproto.temp.checkSignupQueue',
|
|
8578
8934
|
ComAtprotoTempFetchLabels: 'com.atproto.temp.fetchLabels',
|
|
8579
|
-
ComAtprotoTempImportRepo: 'com.atproto.temp.importRepo',
|
|
8580
|
-
ComAtprotoTempPushBlob: 'com.atproto.temp.pushBlob',
|
|
8581
8935
|
ComAtprotoTempRequestPhoneVerification:
|
|
8582
8936
|
'com.atproto.temp.requestPhoneVerification',
|
|
8583
|
-
ComAtprotoTempTransferAccount: 'com.atproto.temp.transferAccount',
|
|
8584
8937
|
AppBskyActorDefs: 'app.bsky.actor.defs',
|
|
8585
8938
|
AppBskyActorGetPreferences: 'app.bsky.actor.getPreferences',
|
|
8586
8939
|
AppBskyActorGetProfile: 'app.bsky.actor.getProfile',
|