@atproto/bsky 0.0.27 → 0.0.28

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.
@@ -68,6 +68,7 @@ import * as ComAtprotoSyncListRepos from './types/com/atproto/sync/listRepos';
68
68
  import * as ComAtprotoSyncNotifyOfUpdate from './types/com/atproto/sync/notifyOfUpdate';
69
69
  import * as ComAtprotoSyncRequestCrawl from './types/com/atproto/sync/requestCrawl';
70
70
  import * as ComAtprotoSyncSubscribeRepos from './types/com/atproto/sync/subscribeRepos';
71
+ import * as ComAtprotoTempCheckSignupQueue from './types/com/atproto/temp/checkSignupQueue';
71
72
  import * as ComAtprotoTempFetchLabels from './types/com/atproto/temp/fetchLabels';
72
73
  import * as ComAtprotoTempImportRepo from './types/com/atproto/temp/importRepo';
73
74
  import * as ComAtprotoTempPushBlob from './types/com/atproto/temp/pushBlob';
@@ -261,6 +262,7 @@ export declare class ComAtprotoSyncNS {
261
262
  export declare class ComAtprotoTempNS {
262
263
  _server: Server;
263
264
  constructor(server: Server);
265
+ checkSignupQueue<AV extends AuthVerifier>(cfg: ConfigOf<AV, ComAtprotoTempCheckSignupQueue.Handler<ExtractAuth<AV>>, ComAtprotoTempCheckSignupQueue.HandlerReqCtx<ExtractAuth<AV>>>): void;
264
266
  fetchLabels<AV extends AuthVerifier>(cfg: ConfigOf<AV, ComAtprotoTempFetchLabels.Handler<ExtractAuth<AV>>, ComAtprotoTempFetchLabels.HandlerReqCtx<ExtractAuth<AV>>>): void;
265
267
  importRepo<AV extends AuthVerifier>(cfg: ConfigOf<AV, ComAtprotoTempImportRepo.Handler<ExtractAuth<AV>>, ComAtprotoTempImportRepo.HandlerReqCtx<ExtractAuth<AV>>>): void;
266
268
  pushBlob<AV extends AuthVerifier>(cfg: ConfigOf<AV, ComAtprotoTempPushBlob.Handler<ExtractAuth<AV>>, ComAtprotoTempPushBlob.HandlerReqCtx<ExtractAuth<AV>>>): void;
@@ -3906,6 +3906,34 @@ export declare const schemaDict: {
3906
3906
  };
3907
3907
  };
3908
3908
  };
3909
+ ComAtprotoTempCheckSignupQueue: {
3910
+ lexicon: number;
3911
+ id: string;
3912
+ defs: {
3913
+ main: {
3914
+ type: string;
3915
+ description: string;
3916
+ output: {
3917
+ encoding: string;
3918
+ schema: {
3919
+ type: string;
3920
+ required: string[];
3921
+ properties: {
3922
+ activated: {
3923
+ type: string;
3924
+ };
3925
+ placeInQueue: {
3926
+ type: string;
3927
+ };
3928
+ estimatedTimeMs: {
3929
+ type: string;
3930
+ };
3931
+ };
3932
+ };
3933
+ };
3934
+ };
3935
+ };
3936
+ };
3909
3937
  ComAtprotoTempFetchLabels: {
3910
3938
  lexicon: number;
3911
3939
  id: string;
@@ -7814,6 +7842,7 @@ export declare const ids: {
7814
7842
  ComAtprotoSyncNotifyOfUpdate: string;
7815
7843
  ComAtprotoSyncRequestCrawl: string;
7816
7844
  ComAtprotoSyncSubscribeRepos: string;
7845
+ ComAtprotoTempCheckSignupQueue: string;
7817
7846
  ComAtprotoTempFetchLabels: string;
7818
7847
  ComAtprotoTempImportRepo: string;
7819
7848
  ComAtprotoTempPushBlob: string;
@@ -0,0 +1,32 @@
1
+ import express from 'express';
2
+ import { HandlerAuth } from '@atproto/xrpc-server';
3
+ export interface QueryParams {
4
+ }
5
+ export type InputSchema = undefined;
6
+ export interface OutputSchema {
7
+ activated: boolean;
8
+ placeInQueue?: number;
9
+ estimatedTimeMs?: number;
10
+ [k: string]: unknown;
11
+ }
12
+ export type HandlerInput = undefined;
13
+ export interface HandlerSuccess {
14
+ encoding: 'application/json';
15
+ body: OutputSchema;
16
+ headers?: {
17
+ [key: string]: string;
18
+ };
19
+ }
20
+ export interface HandlerError {
21
+ status: number;
22
+ message?: string;
23
+ }
24
+ export type HandlerOutput = HandlerError | HandlerSuccess;
25
+ export type HandlerReqCtx<HA extends HandlerAuth = never> = {
26
+ auth: HA;
27
+ params: QueryParams;
28
+ input: HandlerInput;
29
+ req: express.Request;
30
+ res: express.Response;
31
+ };
32
+ export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atproto/bsky",
3
- "version": "0.0.27",
3
+ "version": "0.0.28",
4
4
  "license": "MIT",
5
5
  "description": "Reference implementation of app.bsky App View (Bluesky API)",
6
6
  "keywords": [
@@ -39,11 +39,11 @@
39
39
  "sharp": "^0.32.6",
40
40
  "typed-emitter": "^2.1.0",
41
41
  "uint8arrays": "3.0.0",
42
- "@atproto/api": "^0.9.4",
42
+ "@atproto/api": "^0.9.5",
43
43
  "@atproto/common": "^0.3.3",
44
44
  "@atproto/crypto": "^0.3.0",
45
- "@atproto/identity": "^0.3.2",
46
45
  "@atproto/lexicon": "^0.3.1",
46
+ "@atproto/identity": "^0.3.2",
47
47
  "@atproto/repo": "^0.3.6",
48
48
  "@atproto/syntax": "^0.1.5",
49
49
  "@atproto/xrpc-server": "^0.4.2"
@@ -59,10 +59,10 @@
59
59
  "@types/pg": "^8.6.6",
60
60
  "@types/qs": "^6.9.7",
61
61
  "axios": "^0.27.2",
62
- "@atproto/api": "^0.9.4",
63
- "@atproto/dev-env": "^0.2.27",
62
+ "@atproto/api": "^0.9.5",
63
+ "@atproto/dev-env": "^0.2.28",
64
64
  "@atproto/lex-cli": "^0.3.0",
65
- "@atproto/pds": "^0.3.15",
65
+ "@atproto/pds": "^0.3.16",
66
66
  "@atproto/xrpc": "^0.4.1"
67
67
  },
68
68
  "scripts": {
@@ -78,6 +78,7 @@ import * as ComAtprotoSyncListRepos from './types/com/atproto/sync/listRepos'
78
78
  import * as ComAtprotoSyncNotifyOfUpdate from './types/com/atproto/sync/notifyOfUpdate'
79
79
  import * as ComAtprotoSyncRequestCrawl from './types/com/atproto/sync/requestCrawl'
80
80
  import * as ComAtprotoSyncSubscribeRepos from './types/com/atproto/sync/subscribeRepos'
81
+ import * as ComAtprotoTempCheckSignupQueue from './types/com/atproto/temp/checkSignupQueue'
81
82
  import * as ComAtprotoTempFetchLabels from './types/com/atproto/temp/fetchLabels'
82
83
  import * as ComAtprotoTempImportRepo from './types/com/atproto/temp/importRepo'
83
84
  import * as ComAtprotoTempPushBlob from './types/com/atproto/temp/pushBlob'
@@ -1021,6 +1022,17 @@ export class ComAtprotoTempNS {
1021
1022
  this._server = server
1022
1023
  }
1023
1024
 
1025
+ checkSignupQueue<AV extends AuthVerifier>(
1026
+ cfg: ConfigOf<
1027
+ AV,
1028
+ ComAtprotoTempCheckSignupQueue.Handler<ExtractAuth<AV>>,
1029
+ ComAtprotoTempCheckSignupQueue.HandlerReqCtx<ExtractAuth<AV>>
1030
+ >,
1031
+ ) {
1032
+ const nsid = 'com.atproto.temp.checkSignupQueue' // @ts-ignore
1033
+ return this._server.xrpc.method(nsid, cfg)
1034
+ }
1035
+
1024
1036
  fetchLabels<AV extends AuthVerifier>(
1025
1037
  cfg: ConfigOf<
1026
1038
  AV,
@@ -4246,6 +4246,34 @@ export const schemaDict = {
4246
4246
  },
4247
4247
  },
4248
4248
  },
4249
+ ComAtprotoTempCheckSignupQueue: {
4250
+ lexicon: 1,
4251
+ id: 'com.atproto.temp.checkSignupQueue',
4252
+ defs: {
4253
+ main: {
4254
+ type: 'query',
4255
+ description: 'Check accounts location in signup queue.',
4256
+ output: {
4257
+ encoding: 'application/json',
4258
+ schema: {
4259
+ type: 'object',
4260
+ required: ['activated'],
4261
+ properties: {
4262
+ activated: {
4263
+ type: 'boolean',
4264
+ },
4265
+ placeInQueue: {
4266
+ type: 'integer',
4267
+ },
4268
+ estimatedTimeMs: {
4269
+ type: 'integer',
4270
+ },
4271
+ },
4272
+ },
4273
+ },
4274
+ },
4275
+ },
4276
+ },
4249
4277
  ComAtprotoTempFetchLabels: {
4250
4278
  lexicon: 1,
4251
4279
  id: 'com.atproto.temp.fetchLabels',
@@ -8336,6 +8364,7 @@ export const ids = {
8336
8364
  ComAtprotoSyncNotifyOfUpdate: 'com.atproto.sync.notifyOfUpdate',
8337
8365
  ComAtprotoSyncRequestCrawl: 'com.atproto.sync.requestCrawl',
8338
8366
  ComAtprotoSyncSubscribeRepos: 'com.atproto.sync.subscribeRepos',
8367
+ ComAtprotoTempCheckSignupQueue: 'com.atproto.temp.checkSignupQueue',
8339
8368
  ComAtprotoTempFetchLabels: 'com.atproto.temp.fetchLabels',
8340
8369
  ComAtprotoTempImportRepo: 'com.atproto.temp.importRepo',
8341
8370
  ComAtprotoTempPushBlob: 'com.atproto.temp.pushBlob',
@@ -0,0 +1,45 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import express from 'express'
5
+ import { ValidationResult, BlobRef } from '@atproto/lexicon'
6
+ import { lexicons } from '../../../../lexicons'
7
+ import { isObj, hasProp } from '../../../../util'
8
+ import { CID } from 'multiformats/cid'
9
+ import { HandlerAuth } from '@atproto/xrpc-server'
10
+
11
+ export interface QueryParams {}
12
+
13
+ export type InputSchema = undefined
14
+
15
+ export interface OutputSchema {
16
+ activated: boolean
17
+ placeInQueue?: number
18
+ estimatedTimeMs?: number
19
+ [k: string]: unknown
20
+ }
21
+
22
+ export type HandlerInput = undefined
23
+
24
+ export interface HandlerSuccess {
25
+ encoding: 'application/json'
26
+ body: OutputSchema
27
+ headers?: { [key: string]: string }
28
+ }
29
+
30
+ export interface HandlerError {
31
+ status: number
32
+ message?: string
33
+ }
34
+
35
+ export type HandlerOutput = HandlerError | HandlerSuccess
36
+ export type HandlerReqCtx<HA extends HandlerAuth = never> = {
37
+ auth: HA
38
+ params: QueryParams
39
+ input: HandlerInput
40
+ req: express.Request
41
+ res: express.Response
42
+ }
43
+ export type Handler<HA extends HandlerAuth = never> = (
44
+ ctx: HandlerReqCtx<HA>,
45
+ ) => Promise<HandlerOutput> | HandlerOutput