@atproto/bsky 0.0.31 → 0.0.33
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 +1276 -591
- package/dist/index.js.map +3 -3
- package/dist/indexer/subscription.d.ts +1 -0
- package/dist/lexicon/index.d.ts +22 -6
- package/dist/lexicon/lexicons.d.ts +419 -110
- package/dist/lexicon/types/app/bsky/actor/defs.d.ts +21 -1
- package/dist/lexicon/types/com/atproto/admin/updateAccountPassword.d.ts +26 -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 +6 -6
- package/src/indexer/subscription.ts +6 -0
- package/src/ingester/subscription.ts +2 -0
- package/src/lexicon/index.ts +136 -36
- package/src/lexicon/lexicons.ts +460 -138
- package/src/lexicon/types/app/bsky/actor/defs.ts +61 -0
- package/src/lexicon/types/app/bsky/feed/post.ts +1 -1
- package/src/lexicon/types/com/atproto/admin/updateAccountPassword.ts +39 -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 +2 -1
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import express from 'express';
|
|
2
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
3
|
+
export interface QueryParams {
|
|
4
|
+
}
|
|
5
|
+
export type InputSchema = undefined;
|
|
6
|
+
export interface OutputSchema {
|
|
7
|
+
rotationKeys?: string[];
|
|
8
|
+
alsoKnownAs?: string[];
|
|
9
|
+
verificationMethods?: {};
|
|
10
|
+
services?: {};
|
|
11
|
+
[k: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
export type HandlerInput = undefined;
|
|
14
|
+
export interface HandlerSuccess {
|
|
15
|
+
encoding: 'application/json';
|
|
16
|
+
body: OutputSchema;
|
|
17
|
+
headers?: {
|
|
18
|
+
[key: string]: string;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export interface HandlerError {
|
|
22
|
+
status: number;
|
|
23
|
+
message?: string;
|
|
24
|
+
}
|
|
25
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
26
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
27
|
+
auth: HA;
|
|
28
|
+
params: QueryParams;
|
|
29
|
+
input: HandlerInput;
|
|
30
|
+
req: express.Request;
|
|
31
|
+
res: express.Response;
|
|
32
|
+
};
|
|
33
|
+
export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import express from 'express';
|
|
2
|
+
import { HandlerAuth } from '@atproto/xrpc-server';
|
|
3
|
+
export interface QueryParams {
|
|
4
|
+
}
|
|
5
|
+
export type InputSchema = undefined;
|
|
6
|
+
export type HandlerInput = undefined;
|
|
7
|
+
export interface HandlerError {
|
|
8
|
+
status: number;
|
|
9
|
+
message?: string;
|
|
10
|
+
}
|
|
11
|
+
export type HandlerOutput = HandlerError | void;
|
|
12
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
13
|
+
auth: HA;
|
|
14
|
+
params: QueryParams;
|
|
15
|
+
input: HandlerInput;
|
|
16
|
+
req: express.Request;
|
|
17
|
+
res: express.Response;
|
|
18
|
+
};
|
|
19
|
+
export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
|
package/dist/lexicon/types/com/atproto/{temp/transferAccount.d.ts → identity/signPlcOperation.d.ts}
RENAMED
|
@@ -3,16 +3,15 @@ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
|
3
3
|
export interface QueryParams {
|
|
4
4
|
}
|
|
5
5
|
export interface InputSchema {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
token?: string;
|
|
7
|
+
rotationKeys?: string[];
|
|
8
|
+
alsoKnownAs?: string[];
|
|
9
|
+
verificationMethods?: {};
|
|
10
|
+
services?: {};
|
|
9
11
|
[k: string]: unknown;
|
|
10
12
|
}
|
|
11
13
|
export interface OutputSchema {
|
|
12
|
-
|
|
13
|
-
refreshJwt: string;
|
|
14
|
-
handle: string;
|
|
15
|
-
did: string;
|
|
14
|
+
operation: {};
|
|
16
15
|
[k: string]: unknown;
|
|
17
16
|
}
|
|
18
17
|
export interface HandlerInput {
|
|
@@ -29,7 +28,6 @@ export interface HandlerSuccess {
|
|
|
29
28
|
export interface HandlerError {
|
|
30
29
|
status: number;
|
|
31
30
|
message?: string;
|
|
32
|
-
error?: 'InvalidHandle' | 'InvalidPassword' | 'InvalidInviteCode' | 'HandleNotAvailable' | 'UnsupportedDomain' | 'UnresolvableDid' | 'IncompatibleDidDoc';
|
|
33
31
|
}
|
|
34
32
|
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
35
33
|
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import express from 'express';
|
|
2
|
+
import { HandlerAuth } from '@atproto/xrpc-server';
|
|
3
|
+
export interface QueryParams {
|
|
4
|
+
}
|
|
5
|
+
export interface InputSchema {
|
|
6
|
+
operation: {};
|
|
7
|
+
[k: string]: unknown;
|
|
8
|
+
}
|
|
9
|
+
export interface HandlerInput {
|
|
10
|
+
encoding: 'application/json';
|
|
11
|
+
body: InputSchema;
|
|
12
|
+
}
|
|
13
|
+
export interface HandlerError {
|
|
14
|
+
status: number;
|
|
15
|
+
message?: string;
|
|
16
|
+
}
|
|
17
|
+
export type HandlerOutput = HandlerError | void;
|
|
18
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
19
|
+
auth: HA;
|
|
20
|
+
params: QueryParams;
|
|
21
|
+
input: HandlerInput;
|
|
22
|
+
req: express.Request;
|
|
23
|
+
res: express.Response;
|
|
24
|
+
};
|
|
25
|
+
export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
|
|
@@ -3,11 +3,10 @@ import express from 'express';
|
|
|
3
3
|
import stream from 'stream';
|
|
4
4
|
import { HandlerAuth } from '@atproto/xrpc-server';
|
|
5
5
|
export interface QueryParams {
|
|
6
|
-
did: string;
|
|
7
6
|
}
|
|
8
7
|
export type InputSchema = string | Uint8Array;
|
|
9
8
|
export interface HandlerInput {
|
|
10
|
-
encoding: '
|
|
9
|
+
encoding: 'application/vnd.ipld.car';
|
|
11
10
|
body: stream.Readable;
|
|
12
11
|
}
|
|
13
12
|
export interface HandlerError {
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import express from 'express';
|
|
2
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
3
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
4
|
+
export interface QueryParams {
|
|
5
|
+
limit: number;
|
|
6
|
+
cursor?: string;
|
|
7
|
+
}
|
|
8
|
+
export type InputSchema = undefined;
|
|
9
|
+
export interface OutputSchema {
|
|
10
|
+
cursor?: string;
|
|
11
|
+
blobs: RecordBlob[];
|
|
12
|
+
[k: string]: unknown;
|
|
13
|
+
}
|
|
14
|
+
export type HandlerInput = undefined;
|
|
15
|
+
export interface HandlerSuccess {
|
|
16
|
+
encoding: 'application/json';
|
|
17
|
+
body: OutputSchema;
|
|
18
|
+
headers?: {
|
|
19
|
+
[key: string]: string;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export interface HandlerError {
|
|
23
|
+
status: number;
|
|
24
|
+
message?: string;
|
|
25
|
+
}
|
|
26
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
27
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
28
|
+
auth: HA;
|
|
29
|
+
params: QueryParams;
|
|
30
|
+
input: HandlerInput;
|
|
31
|
+
req: express.Request;
|
|
32
|
+
res: express.Response;
|
|
33
|
+
};
|
|
34
|
+
export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
|
|
35
|
+
export interface RecordBlob {
|
|
36
|
+
cid: string;
|
|
37
|
+
recordUri: string;
|
|
38
|
+
[k: string]: unknown;
|
|
39
|
+
}
|
|
40
|
+
export declare function isRecordBlob(v: unknown): v is RecordBlob;
|
|
41
|
+
export declare function validateRecordBlob(v: unknown): ValidationResult;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import express from 'express';
|
|
2
|
+
import { HandlerAuth } from '@atproto/xrpc-server';
|
|
3
|
+
export interface QueryParams {
|
|
4
|
+
}
|
|
5
|
+
export type InputSchema = undefined;
|
|
6
|
+
export type HandlerInput = undefined;
|
|
7
|
+
export interface HandlerError {
|
|
8
|
+
status: number;
|
|
9
|
+
message?: string;
|
|
10
|
+
}
|
|
11
|
+
export type HandlerOutput = HandlerError | void;
|
|
12
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
13
|
+
auth: HA;
|
|
14
|
+
params: QueryParams;
|
|
15
|
+
input: HandlerInput;
|
|
16
|
+
req: express.Request;
|
|
17
|
+
res: express.Response;
|
|
18
|
+
};
|
|
19
|
+
export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import express from 'express';
|
|
2
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
3
|
+
export interface QueryParams {
|
|
4
|
+
}
|
|
5
|
+
export type InputSchema = undefined;
|
|
6
|
+
export interface OutputSchema {
|
|
7
|
+
activated: boolean;
|
|
8
|
+
validDid: boolean;
|
|
9
|
+
repoCommit: string;
|
|
10
|
+
repoRev: string;
|
|
11
|
+
repoBlocks: number;
|
|
12
|
+
indexedRecords: number;
|
|
13
|
+
privateStateValues: number;
|
|
14
|
+
expectedBlobs: number;
|
|
15
|
+
importedBlobs: number;
|
|
16
|
+
[k: string]: unknown;
|
|
17
|
+
}
|
|
18
|
+
export type HandlerInput = undefined;
|
|
19
|
+
export interface HandlerSuccess {
|
|
20
|
+
encoding: 'application/json';
|
|
21
|
+
body: OutputSchema;
|
|
22
|
+
headers?: {
|
|
23
|
+
[key: string]: string;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export interface HandlerError {
|
|
27
|
+
status: number;
|
|
28
|
+
message?: string;
|
|
29
|
+
}
|
|
30
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
31
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
32
|
+
auth: HA;
|
|
33
|
+
params: QueryParams;
|
|
34
|
+
input: HandlerInput;
|
|
35
|
+
req: express.Request;
|
|
36
|
+
res: express.Response;
|
|
37
|
+
};
|
|
38
|
+
export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import express from 'express';
|
|
2
|
+
import { HandlerAuth } from '@atproto/xrpc-server';
|
|
3
|
+
export interface QueryParams {
|
|
4
|
+
}
|
|
5
|
+
export interface InputSchema {
|
|
6
|
+
deleteAfter?: string;
|
|
7
|
+
[k: string]: unknown;
|
|
8
|
+
}
|
|
9
|
+
export interface HandlerInput {
|
|
10
|
+
encoding: 'application/json';
|
|
11
|
+
body: InputSchema;
|
|
12
|
+
}
|
|
13
|
+
export interface HandlerError {
|
|
14
|
+
status: number;
|
|
15
|
+
message?: string;
|
|
16
|
+
}
|
|
17
|
+
export type HandlerOutput = HandlerError | void;
|
|
18
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
19
|
+
auth: HA;
|
|
20
|
+
params: QueryParams;
|
|
21
|
+
input: HandlerInput;
|
|
22
|
+
req: express.Request;
|
|
23
|
+
res: express.Response;
|
|
24
|
+
};
|
|
25
|
+
export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import express from 'express';
|
|
3
|
-
import stream from 'stream';
|
|
4
2
|
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
5
3
|
export interface QueryParams {
|
|
6
|
-
|
|
4
|
+
aud: string;
|
|
7
5
|
}
|
|
8
|
-
export type InputSchema =
|
|
9
|
-
export interface
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
export type InputSchema = undefined;
|
|
7
|
+
export interface OutputSchema {
|
|
8
|
+
token: string;
|
|
9
|
+
[k: string]: unknown;
|
|
12
10
|
}
|
|
11
|
+
export type HandlerInput = undefined;
|
|
13
12
|
export interface HandlerSuccess {
|
|
14
|
-
encoding: '
|
|
15
|
-
body:
|
|
13
|
+
encoding: 'application/json';
|
|
14
|
+
body: OutputSchema;
|
|
16
15
|
headers?: {
|
|
17
16
|
[key: string]: string;
|
|
18
17
|
};
|
|
@@ -7,7 +7,7 @@ import { IncomingMessage } from 'http';
|
|
|
7
7
|
export interface QueryParams {
|
|
8
8
|
cursor?: number;
|
|
9
9
|
}
|
|
10
|
-
export type OutputSchema = Commit | Handle | Migrate | Tombstone | Info | {
|
|
10
|
+
export type OutputSchema = Commit | Identity | Handle | Migrate | Tombstone | Info | {
|
|
11
11
|
$type: string;
|
|
12
12
|
[k: string]: unknown;
|
|
13
13
|
};
|
|
@@ -37,6 +37,14 @@ export interface Commit {
|
|
|
37
37
|
}
|
|
38
38
|
export declare function isCommit(v: unknown): v is Commit;
|
|
39
39
|
export declare function validateCommit(v: unknown): ValidationResult;
|
|
40
|
+
export interface Identity {
|
|
41
|
+
seq: number;
|
|
42
|
+
did: string;
|
|
43
|
+
time: string;
|
|
44
|
+
[k: string]: unknown;
|
|
45
|
+
}
|
|
46
|
+
export declare function isIdentity(v: unknown): v is Identity;
|
|
47
|
+
export declare function validateIdentity(v: unknown): ValidationResult;
|
|
40
48
|
export interface Handle {
|
|
41
49
|
seq: number;
|
|
42
50
|
did: string;
|
|
@@ -32,7 +32,7 @@ export declare class PerfectMap<K, V> extends Map<K, V> {
|
|
|
32
32
|
get(key: K): V;
|
|
33
33
|
}
|
|
34
34
|
export type ProcessableMessage = message.Commit | message.Handle | message.Migrate | message.Tombstone;
|
|
35
|
-
export declare function loggableMessage(msg: RepoMessage): message.
|
|
35
|
+
export declare function loggableMessage(msg: RepoMessage): message.Identity | message.Info | {
|
|
36
36
|
[k: string]: unknown;
|
|
37
37
|
$type: string;
|
|
38
38
|
} | {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atproto/bsky",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.33",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Reference implementation of app.bsky App View (Bluesky API)",
|
|
6
6
|
"keywords": [
|
|
@@ -40,11 +40,11 @@
|
|
|
40
40
|
"sharp": "^0.32.6",
|
|
41
41
|
"typed-emitter": "^2.1.0",
|
|
42
42
|
"uint8arrays": "3.0.0",
|
|
43
|
-
"@atproto/api": "^0.
|
|
43
|
+
"@atproto/api": "^0.10.1",
|
|
44
44
|
"@atproto/common": "^0.3.3",
|
|
45
45
|
"@atproto/crypto": "^0.3.0",
|
|
46
|
-
"@atproto/lexicon": "^0.3.1",
|
|
47
46
|
"@atproto/identity": "^0.3.2",
|
|
47
|
+
"@atproto/lexicon": "^0.3.1",
|
|
48
48
|
"@atproto/repo": "^0.3.7",
|
|
49
49
|
"@atproto/syntax": "^0.1.5",
|
|
50
50
|
"@atproto/xrpc-server": "^0.4.2"
|
|
@@ -60,10 +60,10 @@
|
|
|
60
60
|
"@types/pg": "^8.6.6",
|
|
61
61
|
"@types/qs": "^6.9.7",
|
|
62
62
|
"axios": "^0.27.2",
|
|
63
|
-
"@atproto/api": "^0.
|
|
64
|
-
"@atproto/dev-env": "^0.2.
|
|
65
|
-
"@atproto/pds": "^0.3.19",
|
|
63
|
+
"@atproto/api": "^0.10.1",
|
|
64
|
+
"@atproto/dev-env": "^0.2.33",
|
|
66
65
|
"@atproto/lex-cli": "^0.3.0",
|
|
66
|
+
"@atproto/pds": "^0.4.1",
|
|
67
67
|
"@atproto/xrpc": "^0.4.1"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|
|
@@ -145,6 +145,8 @@ export class IndexerSubscription {
|
|
|
145
145
|
await this.handleCommit(msg)
|
|
146
146
|
} else if (message.isHandle(msg)) {
|
|
147
147
|
await this.handleUpdateHandle(msg)
|
|
148
|
+
} else if (message.isIdentity(msg)) {
|
|
149
|
+
await this.handleIdentityEvt(msg)
|
|
148
150
|
} else if (message.isTombstone(msg)) {
|
|
149
151
|
await this.handleTombstone(msg)
|
|
150
152
|
} else if (message.isMigrate(msg)) {
|
|
@@ -244,6 +246,10 @@ export class IndexerSubscription {
|
|
|
244
246
|
await this.indexingSvc.indexHandle(msg.did, msg.time, true)
|
|
245
247
|
}
|
|
246
248
|
|
|
249
|
+
private async handleIdentityEvt(msg: message.Identity) {
|
|
250
|
+
await this.indexingSvc.indexHandle(msg.did, msg.time, true)
|
|
251
|
+
}
|
|
252
|
+
|
|
247
253
|
private async handleTombstone(msg: message.Tombstone) {
|
|
248
254
|
await this.indexingSvc.tombstoneActor(msg.did)
|
|
249
255
|
}
|
|
@@ -156,6 +156,8 @@ function getMessageDetails(msg: Message):
|
|
|
156
156
|
return { seq: msg.seq, repo: msg.repo, message: msg }
|
|
157
157
|
} else if (message.isHandle(msg)) {
|
|
158
158
|
return { seq: msg.seq, repo: msg.did, message: msg }
|
|
159
|
+
} else if (message.isIdentity(msg)) {
|
|
160
|
+
return { seq: msg.seq, repo: msg.did, message: msg }
|
|
159
161
|
} else if (message.isMigrate(msg)) {
|
|
160
162
|
return { seq: msg.seq, repo: msg.did, message: msg }
|
|
161
163
|
} else if (message.isTombstone(msg)) {
|
package/src/lexicon/index.ts
CHANGED
|
@@ -30,9 +30,14 @@ import * as ComAtprotoAdminSearchRepos from './types/com/atproto/admin/searchRep
|
|
|
30
30
|
import * as ComAtprotoAdminSendEmail from './types/com/atproto/admin/sendEmail'
|
|
31
31
|
import * as ComAtprotoAdminUpdateAccountEmail from './types/com/atproto/admin/updateAccountEmail'
|
|
32
32
|
import * as ComAtprotoAdminUpdateAccountHandle from './types/com/atproto/admin/updateAccountHandle'
|
|
33
|
+
import * as ComAtprotoAdminUpdateAccountPassword from './types/com/atproto/admin/updateAccountPassword'
|
|
33
34
|
import * as ComAtprotoAdminUpdateCommunicationTemplate from './types/com/atproto/admin/updateCommunicationTemplate'
|
|
34
35
|
import * as ComAtprotoAdminUpdateSubjectStatus from './types/com/atproto/admin/updateSubjectStatus'
|
|
36
|
+
import * as ComAtprotoIdentityGetRecommendedDidCredentials from './types/com/atproto/identity/getRecommendedDidCredentials'
|
|
37
|
+
import * as ComAtprotoIdentityRequestPlcOperationSignature from './types/com/atproto/identity/requestPlcOperationSignature'
|
|
35
38
|
import * as ComAtprotoIdentityResolveHandle from './types/com/atproto/identity/resolveHandle'
|
|
39
|
+
import * as ComAtprotoIdentitySignPlcOperation from './types/com/atproto/identity/signPlcOperation'
|
|
40
|
+
import * as ComAtprotoIdentitySubmitPlcOperation from './types/com/atproto/identity/submitPlcOperation'
|
|
36
41
|
import * as ComAtprotoIdentityUpdateHandle from './types/com/atproto/identity/updateHandle'
|
|
37
42
|
import * as ComAtprotoLabelQueryLabels from './types/com/atproto/label/queryLabels'
|
|
38
43
|
import * as ComAtprotoLabelSubscribeLabels from './types/com/atproto/label/subscribeLabels'
|
|
@@ -42,19 +47,25 @@ import * as ComAtprotoRepoCreateRecord from './types/com/atproto/repo/createReco
|
|
|
42
47
|
import * as ComAtprotoRepoDeleteRecord from './types/com/atproto/repo/deleteRecord'
|
|
43
48
|
import * as ComAtprotoRepoDescribeRepo from './types/com/atproto/repo/describeRepo'
|
|
44
49
|
import * as ComAtprotoRepoGetRecord from './types/com/atproto/repo/getRecord'
|
|
50
|
+
import * as ComAtprotoRepoImportRepo from './types/com/atproto/repo/importRepo'
|
|
51
|
+
import * as ComAtprotoRepoListMissingBlobs from './types/com/atproto/repo/listMissingBlobs'
|
|
45
52
|
import * as ComAtprotoRepoListRecords from './types/com/atproto/repo/listRecords'
|
|
46
53
|
import * as ComAtprotoRepoPutRecord from './types/com/atproto/repo/putRecord'
|
|
47
54
|
import * as ComAtprotoRepoUploadBlob from './types/com/atproto/repo/uploadBlob'
|
|
55
|
+
import * as ComAtprotoServerActivateAccount from './types/com/atproto/server/activateAccount'
|
|
56
|
+
import * as ComAtprotoServerCheckAccountStatus from './types/com/atproto/server/checkAccountStatus'
|
|
48
57
|
import * as ComAtprotoServerConfirmEmail from './types/com/atproto/server/confirmEmail'
|
|
49
58
|
import * as ComAtprotoServerCreateAccount from './types/com/atproto/server/createAccount'
|
|
50
59
|
import * as ComAtprotoServerCreateAppPassword from './types/com/atproto/server/createAppPassword'
|
|
51
60
|
import * as ComAtprotoServerCreateInviteCode from './types/com/atproto/server/createInviteCode'
|
|
52
61
|
import * as ComAtprotoServerCreateInviteCodes from './types/com/atproto/server/createInviteCodes'
|
|
53
62
|
import * as ComAtprotoServerCreateSession from './types/com/atproto/server/createSession'
|
|
63
|
+
import * as ComAtprotoServerDeactivateAccount from './types/com/atproto/server/deactivateAccount'
|
|
54
64
|
import * as ComAtprotoServerDeleteAccount from './types/com/atproto/server/deleteAccount'
|
|
55
65
|
import * as ComAtprotoServerDeleteSession from './types/com/atproto/server/deleteSession'
|
|
56
66
|
import * as ComAtprotoServerDescribeServer from './types/com/atproto/server/describeServer'
|
|
57
67
|
import * as ComAtprotoServerGetAccountInviteCodes from './types/com/atproto/server/getAccountInviteCodes'
|
|
68
|
+
import * as ComAtprotoServerGetServiceAuth from './types/com/atproto/server/getServiceAuth'
|
|
58
69
|
import * as ComAtprotoServerGetSession from './types/com/atproto/server/getSession'
|
|
59
70
|
import * as ComAtprotoServerListAppPasswords from './types/com/atproto/server/listAppPasswords'
|
|
60
71
|
import * as ComAtprotoServerRefreshSession from './types/com/atproto/server/refreshSession'
|
|
@@ -80,10 +91,7 @@ import * as ComAtprotoSyncRequestCrawl from './types/com/atproto/sync/requestCra
|
|
|
80
91
|
import * as ComAtprotoSyncSubscribeRepos from './types/com/atproto/sync/subscribeRepos'
|
|
81
92
|
import * as ComAtprotoTempCheckSignupQueue from './types/com/atproto/temp/checkSignupQueue'
|
|
82
93
|
import * as ComAtprotoTempFetchLabels from './types/com/atproto/temp/fetchLabels'
|
|
83
|
-
import * as ComAtprotoTempImportRepo from './types/com/atproto/temp/importRepo'
|
|
84
|
-
import * as ComAtprotoTempPushBlob from './types/com/atproto/temp/pushBlob'
|
|
85
94
|
import * as ComAtprotoTempRequestPhoneVerification from './types/com/atproto/temp/requestPhoneVerification'
|
|
86
|
-
import * as ComAtprotoTempTransferAccount from './types/com/atproto/temp/transferAccount'
|
|
87
95
|
import * as AppBskyActorGetPreferences from './types/app/bsky/actor/getPreferences'
|
|
88
96
|
import * as AppBskyActorGetProfile from './types/app/bsky/actor/getProfile'
|
|
89
97
|
import * as AppBskyActorGetProfiles from './types/app/bsky/actor/getProfiles'
|
|
@@ -437,6 +445,17 @@ export class ComAtprotoAdminNS {
|
|
|
437
445
|
return this._server.xrpc.method(nsid, cfg)
|
|
438
446
|
}
|
|
439
447
|
|
|
448
|
+
updateAccountPassword<AV extends AuthVerifier>(
|
|
449
|
+
cfg: ConfigOf<
|
|
450
|
+
AV,
|
|
451
|
+
ComAtprotoAdminUpdateAccountPassword.Handler<ExtractAuth<AV>>,
|
|
452
|
+
ComAtprotoAdminUpdateAccountPassword.HandlerReqCtx<ExtractAuth<AV>>
|
|
453
|
+
>,
|
|
454
|
+
) {
|
|
455
|
+
const nsid = 'com.atproto.admin.updateAccountPassword' // @ts-ignore
|
|
456
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
457
|
+
}
|
|
458
|
+
|
|
440
459
|
updateCommunicationTemplate<AV extends AuthVerifier>(
|
|
441
460
|
cfg: ConfigOf<
|
|
442
461
|
AV,
|
|
@@ -467,6 +486,32 @@ export class ComAtprotoIdentityNS {
|
|
|
467
486
|
this._server = server
|
|
468
487
|
}
|
|
469
488
|
|
|
489
|
+
getRecommendedDidCredentials<AV extends AuthVerifier>(
|
|
490
|
+
cfg: ConfigOf<
|
|
491
|
+
AV,
|
|
492
|
+
ComAtprotoIdentityGetRecommendedDidCredentials.Handler<ExtractAuth<AV>>,
|
|
493
|
+
ComAtprotoIdentityGetRecommendedDidCredentials.HandlerReqCtx<
|
|
494
|
+
ExtractAuth<AV>
|
|
495
|
+
>
|
|
496
|
+
>,
|
|
497
|
+
) {
|
|
498
|
+
const nsid = 'com.atproto.identity.getRecommendedDidCredentials' // @ts-ignore
|
|
499
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
requestPlcOperationSignature<AV extends AuthVerifier>(
|
|
503
|
+
cfg: ConfigOf<
|
|
504
|
+
AV,
|
|
505
|
+
ComAtprotoIdentityRequestPlcOperationSignature.Handler<ExtractAuth<AV>>,
|
|
506
|
+
ComAtprotoIdentityRequestPlcOperationSignature.HandlerReqCtx<
|
|
507
|
+
ExtractAuth<AV>
|
|
508
|
+
>
|
|
509
|
+
>,
|
|
510
|
+
) {
|
|
511
|
+
const nsid = 'com.atproto.identity.requestPlcOperationSignature' // @ts-ignore
|
|
512
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
513
|
+
}
|
|
514
|
+
|
|
470
515
|
resolveHandle<AV extends AuthVerifier>(
|
|
471
516
|
cfg: ConfigOf<
|
|
472
517
|
AV,
|
|
@@ -478,6 +523,28 @@ export class ComAtprotoIdentityNS {
|
|
|
478
523
|
return this._server.xrpc.method(nsid, cfg)
|
|
479
524
|
}
|
|
480
525
|
|
|
526
|
+
signPlcOperation<AV extends AuthVerifier>(
|
|
527
|
+
cfg: ConfigOf<
|
|
528
|
+
AV,
|
|
529
|
+
ComAtprotoIdentitySignPlcOperation.Handler<ExtractAuth<AV>>,
|
|
530
|
+
ComAtprotoIdentitySignPlcOperation.HandlerReqCtx<ExtractAuth<AV>>
|
|
531
|
+
>,
|
|
532
|
+
) {
|
|
533
|
+
const nsid = 'com.atproto.identity.signPlcOperation' // @ts-ignore
|
|
534
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
submitPlcOperation<AV extends AuthVerifier>(
|
|
538
|
+
cfg: ConfigOf<
|
|
539
|
+
AV,
|
|
540
|
+
ComAtprotoIdentitySubmitPlcOperation.Handler<ExtractAuth<AV>>,
|
|
541
|
+
ComAtprotoIdentitySubmitPlcOperation.HandlerReqCtx<ExtractAuth<AV>>
|
|
542
|
+
>,
|
|
543
|
+
) {
|
|
544
|
+
const nsid = 'com.atproto.identity.submitPlcOperation' // @ts-ignore
|
|
545
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
546
|
+
}
|
|
547
|
+
|
|
481
548
|
updateHandle<AV extends AuthVerifier>(
|
|
482
549
|
cfg: ConfigOf<
|
|
483
550
|
AV,
|
|
@@ -601,6 +668,28 @@ export class ComAtprotoRepoNS {
|
|
|
601
668
|
return this._server.xrpc.method(nsid, cfg)
|
|
602
669
|
}
|
|
603
670
|
|
|
671
|
+
importRepo<AV extends AuthVerifier>(
|
|
672
|
+
cfg: ConfigOf<
|
|
673
|
+
AV,
|
|
674
|
+
ComAtprotoRepoImportRepo.Handler<ExtractAuth<AV>>,
|
|
675
|
+
ComAtprotoRepoImportRepo.HandlerReqCtx<ExtractAuth<AV>>
|
|
676
|
+
>,
|
|
677
|
+
) {
|
|
678
|
+
const nsid = 'com.atproto.repo.importRepo' // @ts-ignore
|
|
679
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
listMissingBlobs<AV extends AuthVerifier>(
|
|
683
|
+
cfg: ConfigOf<
|
|
684
|
+
AV,
|
|
685
|
+
ComAtprotoRepoListMissingBlobs.Handler<ExtractAuth<AV>>,
|
|
686
|
+
ComAtprotoRepoListMissingBlobs.HandlerReqCtx<ExtractAuth<AV>>
|
|
687
|
+
>,
|
|
688
|
+
) {
|
|
689
|
+
const nsid = 'com.atproto.repo.listMissingBlobs' // @ts-ignore
|
|
690
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
691
|
+
}
|
|
692
|
+
|
|
604
693
|
listRecords<AV extends AuthVerifier>(
|
|
605
694
|
cfg: ConfigOf<
|
|
606
695
|
AV,
|
|
@@ -642,6 +731,28 @@ export class ComAtprotoServerNS {
|
|
|
642
731
|
this._server = server
|
|
643
732
|
}
|
|
644
733
|
|
|
734
|
+
activateAccount<AV extends AuthVerifier>(
|
|
735
|
+
cfg: ConfigOf<
|
|
736
|
+
AV,
|
|
737
|
+
ComAtprotoServerActivateAccount.Handler<ExtractAuth<AV>>,
|
|
738
|
+
ComAtprotoServerActivateAccount.HandlerReqCtx<ExtractAuth<AV>>
|
|
739
|
+
>,
|
|
740
|
+
) {
|
|
741
|
+
const nsid = 'com.atproto.server.activateAccount' // @ts-ignore
|
|
742
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
checkAccountStatus<AV extends AuthVerifier>(
|
|
746
|
+
cfg: ConfigOf<
|
|
747
|
+
AV,
|
|
748
|
+
ComAtprotoServerCheckAccountStatus.Handler<ExtractAuth<AV>>,
|
|
749
|
+
ComAtprotoServerCheckAccountStatus.HandlerReqCtx<ExtractAuth<AV>>
|
|
750
|
+
>,
|
|
751
|
+
) {
|
|
752
|
+
const nsid = 'com.atproto.server.checkAccountStatus' // @ts-ignore
|
|
753
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
754
|
+
}
|
|
755
|
+
|
|
645
756
|
confirmEmail<AV extends AuthVerifier>(
|
|
646
757
|
cfg: ConfigOf<
|
|
647
758
|
AV,
|
|
@@ -708,6 +819,17 @@ export class ComAtprotoServerNS {
|
|
|
708
819
|
return this._server.xrpc.method(nsid, cfg)
|
|
709
820
|
}
|
|
710
821
|
|
|
822
|
+
deactivateAccount<AV extends AuthVerifier>(
|
|
823
|
+
cfg: ConfigOf<
|
|
824
|
+
AV,
|
|
825
|
+
ComAtprotoServerDeactivateAccount.Handler<ExtractAuth<AV>>,
|
|
826
|
+
ComAtprotoServerDeactivateAccount.HandlerReqCtx<ExtractAuth<AV>>
|
|
827
|
+
>,
|
|
828
|
+
) {
|
|
829
|
+
const nsid = 'com.atproto.server.deactivateAccount' // @ts-ignore
|
|
830
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
831
|
+
}
|
|
832
|
+
|
|
711
833
|
deleteAccount<AV extends AuthVerifier>(
|
|
712
834
|
cfg: ConfigOf<
|
|
713
835
|
AV,
|
|
@@ -752,6 +874,17 @@ export class ComAtprotoServerNS {
|
|
|
752
874
|
return this._server.xrpc.method(nsid, cfg)
|
|
753
875
|
}
|
|
754
876
|
|
|
877
|
+
getServiceAuth<AV extends AuthVerifier>(
|
|
878
|
+
cfg: ConfigOf<
|
|
879
|
+
AV,
|
|
880
|
+
ComAtprotoServerGetServiceAuth.Handler<ExtractAuth<AV>>,
|
|
881
|
+
ComAtprotoServerGetServiceAuth.HandlerReqCtx<ExtractAuth<AV>>
|
|
882
|
+
>,
|
|
883
|
+
) {
|
|
884
|
+
const nsid = 'com.atproto.server.getServiceAuth' // @ts-ignore
|
|
885
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
886
|
+
}
|
|
887
|
+
|
|
755
888
|
getSession<AV extends AuthVerifier>(
|
|
756
889
|
cfg: ConfigOf<
|
|
757
890
|
AV,
|
|
@@ -1043,28 +1176,6 @@ export class ComAtprotoTempNS {
|
|
|
1043
1176
|
return this._server.xrpc.method(nsid, cfg)
|
|
1044
1177
|
}
|
|
1045
1178
|
|
|
1046
|
-
importRepo<AV extends AuthVerifier>(
|
|
1047
|
-
cfg: ConfigOf<
|
|
1048
|
-
AV,
|
|
1049
|
-
ComAtprotoTempImportRepo.Handler<ExtractAuth<AV>>,
|
|
1050
|
-
ComAtprotoTempImportRepo.HandlerReqCtx<ExtractAuth<AV>>
|
|
1051
|
-
>,
|
|
1052
|
-
) {
|
|
1053
|
-
const nsid = 'com.atproto.temp.importRepo' // @ts-ignore
|
|
1054
|
-
return this._server.xrpc.method(nsid, cfg)
|
|
1055
|
-
}
|
|
1056
|
-
|
|
1057
|
-
pushBlob<AV extends AuthVerifier>(
|
|
1058
|
-
cfg: ConfigOf<
|
|
1059
|
-
AV,
|
|
1060
|
-
ComAtprotoTempPushBlob.Handler<ExtractAuth<AV>>,
|
|
1061
|
-
ComAtprotoTempPushBlob.HandlerReqCtx<ExtractAuth<AV>>
|
|
1062
|
-
>,
|
|
1063
|
-
) {
|
|
1064
|
-
const nsid = 'com.atproto.temp.pushBlob' // @ts-ignore
|
|
1065
|
-
return this._server.xrpc.method(nsid, cfg)
|
|
1066
|
-
}
|
|
1067
|
-
|
|
1068
1179
|
requestPhoneVerification<AV extends AuthVerifier>(
|
|
1069
1180
|
cfg: ConfigOf<
|
|
1070
1181
|
AV,
|
|
@@ -1075,17 +1186,6 @@ export class ComAtprotoTempNS {
|
|
|
1075
1186
|
const nsid = 'com.atproto.temp.requestPhoneVerification' // @ts-ignore
|
|
1076
1187
|
return this._server.xrpc.method(nsid, cfg)
|
|
1077
1188
|
}
|
|
1078
|
-
|
|
1079
|
-
transferAccount<AV extends AuthVerifier>(
|
|
1080
|
-
cfg: ConfigOf<
|
|
1081
|
-
AV,
|
|
1082
|
-
ComAtprotoTempTransferAccount.Handler<ExtractAuth<AV>>,
|
|
1083
|
-
ComAtprotoTempTransferAccount.HandlerReqCtx<ExtractAuth<AV>>
|
|
1084
|
-
>,
|
|
1085
|
-
) {
|
|
1086
|
-
const nsid = 'com.atproto.temp.transferAccount' // @ts-ignore
|
|
1087
|
-
return this._server.xrpc.method(nsid, cfg)
|
|
1088
|
-
}
|
|
1089
1189
|
}
|
|
1090
1190
|
|
|
1091
1191
|
export class AppNS {
|