@atproto/api 0.12.12 → 0.12.14
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 +12 -0
- package/dist/client/index.d.ts +3 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +13 -4
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +115 -0
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +195 -4
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/chat/bsky/convo/defs.d.ts +1 -1
- package/dist/client/types/com/atproto/server/createAppPassword.d.ts +3 -0
- package/dist/client/types/com/atproto/server/createAppPassword.d.ts.map +1 -1
- package/dist/client/types/com/atproto/server/createAppPassword.js.map +1 -1
- package/dist/client/types/com/atproto/server/listAppPasswords.d.ts +1 -0
- package/dist/client/types/com/atproto/server/listAppPasswords.d.ts.map +1 -1
- package/dist/client/types/com/atproto/server/listAppPasswords.js.map +1 -1
- package/dist/client/types/com/atproto/sync/getBlob.d.ts +16 -1
- package/dist/client/types/com/atproto/sync/getBlob.d.ts.map +1 -1
- package/dist/client/types/com/atproto/sync/getBlob.js +41 -1
- package/dist/client/types/com/atproto/sync/getBlob.js.map +1 -1
- package/dist/client/types/com/atproto/sync/getBlocks.d.ts +16 -1
- package/dist/client/types/com/atproto/sync/getBlocks.d.ts.map +1 -1
- package/dist/client/types/com/atproto/sync/getBlocks.js +41 -1
- package/dist/client/types/com/atproto/sync/getBlocks.js.map +1 -1
- package/dist/client/types/com/atproto/sync/getLatestCommit.d.ts +9 -0
- package/dist/client/types/com/atproto/sync/getLatestCommit.d.ts.map +1 -1
- package/dist/client/types/com/atproto/sync/getLatestCommit.js +25 -1
- package/dist/client/types/com/atproto/sync/getLatestCommit.js.map +1 -1
- package/dist/client/types/com/atproto/sync/getRecord.d.ts +16 -1
- package/dist/client/types/com/atproto/sync/getRecord.d.ts.map +1 -1
- package/dist/client/types/com/atproto/sync/getRecord.js +41 -1
- package/dist/client/types/com/atproto/sync/getRecord.js.map +1 -1
- package/dist/client/types/com/atproto/sync/getRepo.d.ts +13 -1
- package/dist/client/types/com/atproto/sync/getRepo.d.ts.map +1 -1
- package/dist/client/types/com/atproto/sync/getRepo.js +33 -1
- package/dist/client/types/com/atproto/sync/getRepo.js.map +1 -1
- package/dist/client/types/com/atproto/sync/getRepoStatus.d.ts +31 -0
- package/dist/client/types/com/atproto/sync/getRepoStatus.d.ts.map +1 -0
- package/dist/client/types/com/atproto/sync/getRepoStatus.js +22 -0
- package/dist/client/types/com/atproto/sync/getRepoStatus.js.map +1 -0
- package/dist/client/types/com/atproto/sync/listBlobs.d.ts +13 -1
- package/dist/client/types/com/atproto/sync/listBlobs.d.ts.map +1 -1
- package/dist/client/types/com/atproto/sync/listBlobs.js +33 -1
- package/dist/client/types/com/atproto/sync/listBlobs.js.map +1 -1
- package/dist/client/types/com/atproto/sync/listRepos.d.ts +3 -0
- package/dist/client/types/com/atproto/sync/listRepos.d.ts.map +1 -1
- package/dist/client/types/com/atproto/sync/listRepos.js.map +1 -1
- package/dist/client/types/com/atproto/sync/subscribeRepos.d.ts +18 -3
- package/dist/client/types/com/atproto/sync/subscribeRepos.d.ts.map +1 -1
- package/dist/client/types/com/atproto/sync/subscribeRepos.js +11 -1
- package/dist/client/types/com/atproto/sync/subscribeRepos.js.map +1 -1
- package/package.json +1 -1
- package/src/client/index.ts +13 -0
- package/src/client/lexicons.ts +204 -7
- package/src/client/types/chat/bsky/convo/defs.ts +1 -1
- package/src/client/types/com/atproto/server/createAppPassword.ts +3 -0
- package/src/client/types/com/atproto/server/listAppPasswords.ts +1 -0
- package/src/client/types/com/atproto/sync/getBlob.ts +35 -0
- package/src/client/types/com/atproto/sync/getBlocks.ts +35 -0
- package/src/client/types/com/atproto/sync/getLatestCommit.ts +21 -0
- package/src/client/types/com/atproto/sync/getRecord.ts +35 -0
- package/src/client/types/com/atproto/sync/getRepo.ts +28 -0
- package/src/client/types/com/atproto/sync/getRepoStatus.ts +48 -0
- package/src/client/types/com/atproto/sync/listBlobs.ts +28 -0
- package/src/client/types/com/atproto/sync/listRepos.ts +3 -0
- package/src/client/types/com/atproto/sync/subscribeRepos.ts +29 -3
package/dist/client/lexicons.js
CHANGED
|
@@ -1977,6 +1977,10 @@ exports.schemaDict = {
|
|
|
1977
1977
|
type: 'string',
|
|
1978
1978
|
description: 'A short name for the App Password, to help distinguish them.',
|
|
1979
1979
|
},
|
|
1980
|
+
privileged: {
|
|
1981
|
+
type: 'boolean',
|
|
1982
|
+
description: "If an app password has 'privileged' access to possibly sensitive account state. Meant for use with trusted clients.",
|
|
1983
|
+
},
|
|
1980
1984
|
},
|
|
1981
1985
|
},
|
|
1982
1986
|
},
|
|
@@ -2007,6 +2011,9 @@ exports.schemaDict = {
|
|
|
2007
2011
|
type: 'string',
|
|
2008
2012
|
format: 'datetime',
|
|
2009
2013
|
},
|
|
2014
|
+
privileged: {
|
|
2015
|
+
type: 'boolean',
|
|
2016
|
+
},
|
|
2010
2017
|
},
|
|
2011
2018
|
},
|
|
2012
2019
|
},
|
|
@@ -2541,6 +2548,9 @@ exports.schemaDict = {
|
|
|
2541
2548
|
type: 'string',
|
|
2542
2549
|
format: 'datetime',
|
|
2543
2550
|
},
|
|
2551
|
+
privileged: {
|
|
2552
|
+
type: 'boolean',
|
|
2553
|
+
},
|
|
2544
2554
|
},
|
|
2545
2555
|
},
|
|
2546
2556
|
},
|
|
@@ -2807,6 +2817,23 @@ exports.schemaDict = {
|
|
|
2807
2817
|
output: {
|
|
2808
2818
|
encoding: '*/*',
|
|
2809
2819
|
},
|
|
2820
|
+
errors: [
|
|
2821
|
+
{
|
|
2822
|
+
name: 'BlobNotFound',
|
|
2823
|
+
},
|
|
2824
|
+
{
|
|
2825
|
+
name: 'RepoNotFound',
|
|
2826
|
+
},
|
|
2827
|
+
{
|
|
2828
|
+
name: 'RepoTakendown',
|
|
2829
|
+
},
|
|
2830
|
+
{
|
|
2831
|
+
name: 'RepoSuspended',
|
|
2832
|
+
},
|
|
2833
|
+
{
|
|
2834
|
+
name: 'RepoDeactivated',
|
|
2835
|
+
},
|
|
2836
|
+
],
|
|
2810
2837
|
},
|
|
2811
2838
|
},
|
|
2812
2839
|
},
|
|
@@ -2838,6 +2865,23 @@ exports.schemaDict = {
|
|
|
2838
2865
|
output: {
|
|
2839
2866
|
encoding: 'application/vnd.ipld.car',
|
|
2840
2867
|
},
|
|
2868
|
+
errors: [
|
|
2869
|
+
{
|
|
2870
|
+
name: 'BlockNotFound',
|
|
2871
|
+
},
|
|
2872
|
+
{
|
|
2873
|
+
name: 'RepoNotFound',
|
|
2874
|
+
},
|
|
2875
|
+
{
|
|
2876
|
+
name: 'RepoTakendown',
|
|
2877
|
+
},
|
|
2878
|
+
{
|
|
2879
|
+
name: 'RepoSuspended',
|
|
2880
|
+
},
|
|
2881
|
+
{
|
|
2882
|
+
name: 'RepoDeactivated',
|
|
2883
|
+
},
|
|
2884
|
+
],
|
|
2841
2885
|
},
|
|
2842
2886
|
},
|
|
2843
2887
|
},
|
|
@@ -2942,6 +2986,15 @@ exports.schemaDict = {
|
|
|
2942
2986
|
{
|
|
2943
2987
|
name: 'RepoNotFound',
|
|
2944
2988
|
},
|
|
2989
|
+
{
|
|
2990
|
+
name: 'RepoTakendown',
|
|
2991
|
+
},
|
|
2992
|
+
{
|
|
2993
|
+
name: 'RepoSuspended',
|
|
2994
|
+
},
|
|
2995
|
+
{
|
|
2996
|
+
name: 'RepoDeactivated',
|
|
2997
|
+
},
|
|
2945
2998
|
],
|
|
2946
2999
|
},
|
|
2947
3000
|
},
|
|
@@ -2980,6 +3033,23 @@ exports.schemaDict = {
|
|
|
2980
3033
|
output: {
|
|
2981
3034
|
encoding: 'application/vnd.ipld.car',
|
|
2982
3035
|
},
|
|
3036
|
+
errors: [
|
|
3037
|
+
{
|
|
3038
|
+
name: 'RecordNotFound',
|
|
3039
|
+
},
|
|
3040
|
+
{
|
|
3041
|
+
name: 'RepoNotFound',
|
|
3042
|
+
},
|
|
3043
|
+
{
|
|
3044
|
+
name: 'RepoTakendown',
|
|
3045
|
+
},
|
|
3046
|
+
{
|
|
3047
|
+
name: 'RepoSuspended',
|
|
3048
|
+
},
|
|
3049
|
+
{
|
|
3050
|
+
name: 'RepoDeactivated',
|
|
3051
|
+
},
|
|
3052
|
+
],
|
|
2983
3053
|
},
|
|
2984
3054
|
},
|
|
2985
3055
|
},
|
|
@@ -3008,6 +3078,71 @@ exports.schemaDict = {
|
|
|
3008
3078
|
output: {
|
|
3009
3079
|
encoding: 'application/vnd.ipld.car',
|
|
3010
3080
|
},
|
|
3081
|
+
errors: [
|
|
3082
|
+
{
|
|
3083
|
+
name: 'RepoNotFound',
|
|
3084
|
+
},
|
|
3085
|
+
{
|
|
3086
|
+
name: 'RepoTakendown',
|
|
3087
|
+
},
|
|
3088
|
+
{
|
|
3089
|
+
name: 'RepoSuspended',
|
|
3090
|
+
},
|
|
3091
|
+
{
|
|
3092
|
+
name: 'RepoDeactivated',
|
|
3093
|
+
},
|
|
3094
|
+
],
|
|
3095
|
+
},
|
|
3096
|
+
},
|
|
3097
|
+
},
|
|
3098
|
+
ComAtprotoSyncGetRepoStatus: {
|
|
3099
|
+
lexicon: 1,
|
|
3100
|
+
id: 'com.atproto.sync.getRepoStatus',
|
|
3101
|
+
defs: {
|
|
3102
|
+
main: {
|
|
3103
|
+
type: 'query',
|
|
3104
|
+
description: 'Get the hosting status for a repository, on this server. Expected to be implemented by PDS and Relay.',
|
|
3105
|
+
parameters: {
|
|
3106
|
+
type: 'params',
|
|
3107
|
+
required: ['did'],
|
|
3108
|
+
properties: {
|
|
3109
|
+
did: {
|
|
3110
|
+
type: 'string',
|
|
3111
|
+
format: 'did',
|
|
3112
|
+
description: 'The DID of the repo.',
|
|
3113
|
+
},
|
|
3114
|
+
},
|
|
3115
|
+
},
|
|
3116
|
+
output: {
|
|
3117
|
+
encoding: 'application/json',
|
|
3118
|
+
schema: {
|
|
3119
|
+
type: 'object',
|
|
3120
|
+
required: ['did', 'active'],
|
|
3121
|
+
properties: {
|
|
3122
|
+
did: {
|
|
3123
|
+
type: 'string',
|
|
3124
|
+
format: 'did',
|
|
3125
|
+
},
|
|
3126
|
+
active: {
|
|
3127
|
+
type: 'boolean',
|
|
3128
|
+
},
|
|
3129
|
+
status: {
|
|
3130
|
+
type: 'string',
|
|
3131
|
+
description: 'If active=false, this optional field indicates a possible reason for why the account is not active. If active=false and no status is supplied, then the host makes no claim for why the repository is no longer being hosted.',
|
|
3132
|
+
knownValues: ['takendown', 'suspended', 'deactivated'],
|
|
3133
|
+
},
|
|
3134
|
+
rev: {
|
|
3135
|
+
type: 'string',
|
|
3136
|
+
description: 'Optional field, the current rev of the repo, if active=true',
|
|
3137
|
+
},
|
|
3138
|
+
},
|
|
3139
|
+
},
|
|
3140
|
+
},
|
|
3141
|
+
errors: [
|
|
3142
|
+
{
|
|
3143
|
+
name: 'RepoNotFound',
|
|
3144
|
+
},
|
|
3145
|
+
],
|
|
3011
3146
|
},
|
|
3012
3147
|
},
|
|
3013
3148
|
},
|
|
@@ -3061,6 +3196,20 @@ exports.schemaDict = {
|
|
|
3061
3196
|
},
|
|
3062
3197
|
},
|
|
3063
3198
|
},
|
|
3199
|
+
errors: [
|
|
3200
|
+
{
|
|
3201
|
+
name: 'RepoNotFound',
|
|
3202
|
+
},
|
|
3203
|
+
{
|
|
3204
|
+
name: 'RepoTakendown',
|
|
3205
|
+
},
|
|
3206
|
+
{
|
|
3207
|
+
name: 'RepoSuspended',
|
|
3208
|
+
},
|
|
3209
|
+
{
|
|
3210
|
+
name: 'RepoDeactivated',
|
|
3211
|
+
},
|
|
3212
|
+
],
|
|
3064
3213
|
},
|
|
3065
3214
|
},
|
|
3066
3215
|
},
|
|
@@ -3121,6 +3270,14 @@ exports.schemaDict = {
|
|
|
3121
3270
|
rev: {
|
|
3122
3271
|
type: 'string',
|
|
3123
3272
|
},
|
|
3273
|
+
active: {
|
|
3274
|
+
type: 'boolean',
|
|
3275
|
+
},
|
|
3276
|
+
status: {
|
|
3277
|
+
type: 'string',
|
|
3278
|
+
description: 'If active=false, this optional field indicates a possible reason for why the account is not active. If active=false and no status is supplied, then the host makes no claim for why the repository is no longer being hosted.',
|
|
3279
|
+
knownValues: ['takendown', 'suspended', 'deactivated'],
|
|
3280
|
+
},
|
|
3124
3281
|
},
|
|
3125
3282
|
},
|
|
3126
3283
|
},
|
|
@@ -3193,6 +3350,7 @@ exports.schemaDict = {
|
|
|
3193
3350
|
refs: [
|
|
3194
3351
|
'lex:com.atproto.sync.subscribeRepos#commit',
|
|
3195
3352
|
'lex:com.atproto.sync.subscribeRepos#identity',
|
|
3353
|
+
'lex:com.atproto.sync.subscribeRepos#account',
|
|
3196
3354
|
'lex:com.atproto.sync.subscribeRepos#handle',
|
|
3197
3355
|
'lex:com.atproto.sync.subscribeRepos#migrate',
|
|
3198
3356
|
'lex:com.atproto.sync.subscribeRepos#tombstone',
|
|
@@ -3305,11 +3463,43 @@ exports.schemaDict = {
|
|
|
3305
3463
|
type: 'string',
|
|
3306
3464
|
format: 'datetime',
|
|
3307
3465
|
},
|
|
3466
|
+
handle: {
|
|
3467
|
+
type: 'string',
|
|
3468
|
+
format: 'handle',
|
|
3469
|
+
description: "The current handle for the account, or 'handle.invalid' if validation fails. This field is optional, might have been validated or passed-through from an upstream source. Semantics and behaviors for PDS vs Relay may evolve in the future; see atproto specs for more details.",
|
|
3470
|
+
},
|
|
3471
|
+
},
|
|
3472
|
+
},
|
|
3473
|
+
account: {
|
|
3474
|
+
type: 'object',
|
|
3475
|
+
description: "Represents a change to an account's status on a host (eg, PDS or Relay). The semantics of this event are that the status is at the host which emitted the event, not necessarily that at the currently active PDS. Eg, a Relay takedown would emit a takedown with active=false, even if the PDS is still active.",
|
|
3476
|
+
required: ['seq', 'did', 'time', 'active'],
|
|
3477
|
+
properties: {
|
|
3478
|
+
seq: {
|
|
3479
|
+
type: 'integer',
|
|
3480
|
+
},
|
|
3481
|
+
did: {
|
|
3482
|
+
type: 'string',
|
|
3483
|
+
format: 'did',
|
|
3484
|
+
},
|
|
3485
|
+
time: {
|
|
3486
|
+
type: 'string',
|
|
3487
|
+
format: 'datetime',
|
|
3488
|
+
},
|
|
3489
|
+
active: {
|
|
3490
|
+
type: 'boolean',
|
|
3491
|
+
description: 'Indicates that the account has a repository which can be fetched from the host that emitted this event.',
|
|
3492
|
+
},
|
|
3493
|
+
status: {
|
|
3494
|
+
type: 'string',
|
|
3495
|
+
description: 'If active=false, this optional field indicates a reason for why the account is not active.',
|
|
3496
|
+
knownValues: ['takendown', 'suspended', 'deleted', 'deactivated'],
|
|
3497
|
+
},
|
|
3308
3498
|
},
|
|
3309
3499
|
},
|
|
3310
3500
|
handle: {
|
|
3311
3501
|
type: 'object',
|
|
3312
|
-
description:
|
|
3502
|
+
description: 'DEPRECATED -- Use #identity event instead',
|
|
3313
3503
|
required: ['seq', 'did', 'handle', 'time'],
|
|
3314
3504
|
properties: {
|
|
3315
3505
|
seq: {
|
|
@@ -3331,7 +3521,7 @@ exports.schemaDict = {
|
|
|
3331
3521
|
},
|
|
3332
3522
|
migrate: {
|
|
3333
3523
|
type: 'object',
|
|
3334
|
-
description: '
|
|
3524
|
+
description: 'DEPRECATED -- Use #account event instead',
|
|
3335
3525
|
required: ['seq', 'did', 'migrateTo', 'time'],
|
|
3336
3526
|
nullable: ['migrateTo'],
|
|
3337
3527
|
properties: {
|
|
@@ -3353,7 +3543,7 @@ exports.schemaDict = {
|
|
|
3353
3543
|
},
|
|
3354
3544
|
tombstone: {
|
|
3355
3545
|
type: 'object',
|
|
3356
|
-
description: '
|
|
3546
|
+
description: 'DEPRECATED -- Use #account event instead',
|
|
3357
3547
|
required: ['seq', 'did', 'time'],
|
|
3358
3548
|
properties: {
|
|
3359
3549
|
seq: {
|
|
@@ -8108,7 +8298,7 @@ exports.schemaDict = {
|
|
|
8108
8298
|
},
|
|
8109
8299
|
embed: {
|
|
8110
8300
|
type: 'union',
|
|
8111
|
-
refs: ['lex:app.bsky.embed.record'],
|
|
8301
|
+
refs: ['lex:app.bsky.embed.record#view'],
|
|
8112
8302
|
},
|
|
8113
8303
|
sender: {
|
|
8114
8304
|
type: 'ref',
|
|
@@ -10314,6 +10504,7 @@ exports.ids = {
|
|
|
10314
10504
|
ComAtprotoSyncGetLatestCommit: 'com.atproto.sync.getLatestCommit',
|
|
10315
10505
|
ComAtprotoSyncGetRecord: 'com.atproto.sync.getRecord',
|
|
10316
10506
|
ComAtprotoSyncGetRepo: 'com.atproto.sync.getRepo',
|
|
10507
|
+
ComAtprotoSyncGetRepoStatus: 'com.atproto.sync.getRepoStatus',
|
|
10317
10508
|
ComAtprotoSyncListBlobs: 'com.atproto.sync.listBlobs',
|
|
10318
10509
|
ComAtprotoSyncListRepos: 'com.atproto.sync.listRepos',
|
|
10319
10510
|
ComAtprotoSyncNotifyOfUpdate: 'com.atproto.sync.notifyOfUpdate',
|