@atproto/bsky 0.0.31 → 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 +7 -0
- package/dist/db/index.js.map +2 -2
- package/dist/index.js +1197 -585
- 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 +392 -110
- package/dist/lexicon/types/app/bsky/actor/defs.d.ts +20 -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 +124 -36
- package/src/lexicon/lexicons.ts +429 -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/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
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.32",
|
|
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.0",
|
|
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.0",
|
|
64
|
+
"@atproto/dev-env": "^0.2.32",
|
|
66
65
|
"@atproto/lex-cli": "^0.3.0",
|
|
66
|
+
"@atproto/pds": "^0.4.0",
|
|
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
|
@@ -32,7 +32,11 @@ import * as ComAtprotoAdminUpdateAccountEmail from './types/com/atproto/admin/up
|
|
|
32
32
|
import * as ComAtprotoAdminUpdateAccountHandle from './types/com/atproto/admin/updateAccountHandle'
|
|
33
33
|
import * as ComAtprotoAdminUpdateCommunicationTemplate from './types/com/atproto/admin/updateCommunicationTemplate'
|
|
34
34
|
import * as ComAtprotoAdminUpdateSubjectStatus from './types/com/atproto/admin/updateSubjectStatus'
|
|
35
|
+
import * as ComAtprotoIdentityGetRecommendedDidCredentials from './types/com/atproto/identity/getRecommendedDidCredentials'
|
|
36
|
+
import * as ComAtprotoIdentityRequestPlcOperationSignature from './types/com/atproto/identity/requestPlcOperationSignature'
|
|
35
37
|
import * as ComAtprotoIdentityResolveHandle from './types/com/atproto/identity/resolveHandle'
|
|
38
|
+
import * as ComAtprotoIdentitySignPlcOperation from './types/com/atproto/identity/signPlcOperation'
|
|
39
|
+
import * as ComAtprotoIdentitySubmitPlcOperation from './types/com/atproto/identity/submitPlcOperation'
|
|
36
40
|
import * as ComAtprotoIdentityUpdateHandle from './types/com/atproto/identity/updateHandle'
|
|
37
41
|
import * as ComAtprotoLabelQueryLabels from './types/com/atproto/label/queryLabels'
|
|
38
42
|
import * as ComAtprotoLabelSubscribeLabels from './types/com/atproto/label/subscribeLabels'
|
|
@@ -42,19 +46,25 @@ import * as ComAtprotoRepoCreateRecord from './types/com/atproto/repo/createReco
|
|
|
42
46
|
import * as ComAtprotoRepoDeleteRecord from './types/com/atproto/repo/deleteRecord'
|
|
43
47
|
import * as ComAtprotoRepoDescribeRepo from './types/com/atproto/repo/describeRepo'
|
|
44
48
|
import * as ComAtprotoRepoGetRecord from './types/com/atproto/repo/getRecord'
|
|
49
|
+
import * as ComAtprotoRepoImportRepo from './types/com/atproto/repo/importRepo'
|
|
50
|
+
import * as ComAtprotoRepoListMissingBlobs from './types/com/atproto/repo/listMissingBlobs'
|
|
45
51
|
import * as ComAtprotoRepoListRecords from './types/com/atproto/repo/listRecords'
|
|
46
52
|
import * as ComAtprotoRepoPutRecord from './types/com/atproto/repo/putRecord'
|
|
47
53
|
import * as ComAtprotoRepoUploadBlob from './types/com/atproto/repo/uploadBlob'
|
|
54
|
+
import * as ComAtprotoServerActivateAccount from './types/com/atproto/server/activateAccount'
|
|
55
|
+
import * as ComAtprotoServerCheckAccountStatus from './types/com/atproto/server/checkAccountStatus'
|
|
48
56
|
import * as ComAtprotoServerConfirmEmail from './types/com/atproto/server/confirmEmail'
|
|
49
57
|
import * as ComAtprotoServerCreateAccount from './types/com/atproto/server/createAccount'
|
|
50
58
|
import * as ComAtprotoServerCreateAppPassword from './types/com/atproto/server/createAppPassword'
|
|
51
59
|
import * as ComAtprotoServerCreateInviteCode from './types/com/atproto/server/createInviteCode'
|
|
52
60
|
import * as ComAtprotoServerCreateInviteCodes from './types/com/atproto/server/createInviteCodes'
|
|
53
61
|
import * as ComAtprotoServerCreateSession from './types/com/atproto/server/createSession'
|
|
62
|
+
import * as ComAtprotoServerDeactivateAccount from './types/com/atproto/server/deactivateAccount'
|
|
54
63
|
import * as ComAtprotoServerDeleteAccount from './types/com/atproto/server/deleteAccount'
|
|
55
64
|
import * as ComAtprotoServerDeleteSession from './types/com/atproto/server/deleteSession'
|
|
56
65
|
import * as ComAtprotoServerDescribeServer from './types/com/atproto/server/describeServer'
|
|
57
66
|
import * as ComAtprotoServerGetAccountInviteCodes from './types/com/atproto/server/getAccountInviteCodes'
|
|
67
|
+
import * as ComAtprotoServerGetServiceAuth from './types/com/atproto/server/getServiceAuth'
|
|
58
68
|
import * as ComAtprotoServerGetSession from './types/com/atproto/server/getSession'
|
|
59
69
|
import * as ComAtprotoServerListAppPasswords from './types/com/atproto/server/listAppPasswords'
|
|
60
70
|
import * as ComAtprotoServerRefreshSession from './types/com/atproto/server/refreshSession'
|
|
@@ -80,10 +90,7 @@ import * as ComAtprotoSyncRequestCrawl from './types/com/atproto/sync/requestCra
|
|
|
80
90
|
import * as ComAtprotoSyncSubscribeRepos from './types/com/atproto/sync/subscribeRepos'
|
|
81
91
|
import * as ComAtprotoTempCheckSignupQueue from './types/com/atproto/temp/checkSignupQueue'
|
|
82
92
|
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
93
|
import * as ComAtprotoTempRequestPhoneVerification from './types/com/atproto/temp/requestPhoneVerification'
|
|
86
|
-
import * as ComAtprotoTempTransferAccount from './types/com/atproto/temp/transferAccount'
|
|
87
94
|
import * as AppBskyActorGetPreferences from './types/app/bsky/actor/getPreferences'
|
|
88
95
|
import * as AppBskyActorGetProfile from './types/app/bsky/actor/getProfile'
|
|
89
96
|
import * as AppBskyActorGetProfiles from './types/app/bsky/actor/getProfiles'
|
|
@@ -467,6 +474,32 @@ export class ComAtprotoIdentityNS {
|
|
|
467
474
|
this._server = server
|
|
468
475
|
}
|
|
469
476
|
|
|
477
|
+
getRecommendedDidCredentials<AV extends AuthVerifier>(
|
|
478
|
+
cfg: ConfigOf<
|
|
479
|
+
AV,
|
|
480
|
+
ComAtprotoIdentityGetRecommendedDidCredentials.Handler<ExtractAuth<AV>>,
|
|
481
|
+
ComAtprotoIdentityGetRecommendedDidCredentials.HandlerReqCtx<
|
|
482
|
+
ExtractAuth<AV>
|
|
483
|
+
>
|
|
484
|
+
>,
|
|
485
|
+
) {
|
|
486
|
+
const nsid = 'com.atproto.identity.getRecommendedDidCredentials' // @ts-ignore
|
|
487
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
requestPlcOperationSignature<AV extends AuthVerifier>(
|
|
491
|
+
cfg: ConfigOf<
|
|
492
|
+
AV,
|
|
493
|
+
ComAtprotoIdentityRequestPlcOperationSignature.Handler<ExtractAuth<AV>>,
|
|
494
|
+
ComAtprotoIdentityRequestPlcOperationSignature.HandlerReqCtx<
|
|
495
|
+
ExtractAuth<AV>
|
|
496
|
+
>
|
|
497
|
+
>,
|
|
498
|
+
) {
|
|
499
|
+
const nsid = 'com.atproto.identity.requestPlcOperationSignature' // @ts-ignore
|
|
500
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
501
|
+
}
|
|
502
|
+
|
|
470
503
|
resolveHandle<AV extends AuthVerifier>(
|
|
471
504
|
cfg: ConfigOf<
|
|
472
505
|
AV,
|
|
@@ -478,6 +511,28 @@ export class ComAtprotoIdentityNS {
|
|
|
478
511
|
return this._server.xrpc.method(nsid, cfg)
|
|
479
512
|
}
|
|
480
513
|
|
|
514
|
+
signPlcOperation<AV extends AuthVerifier>(
|
|
515
|
+
cfg: ConfigOf<
|
|
516
|
+
AV,
|
|
517
|
+
ComAtprotoIdentitySignPlcOperation.Handler<ExtractAuth<AV>>,
|
|
518
|
+
ComAtprotoIdentitySignPlcOperation.HandlerReqCtx<ExtractAuth<AV>>
|
|
519
|
+
>,
|
|
520
|
+
) {
|
|
521
|
+
const nsid = 'com.atproto.identity.signPlcOperation' // @ts-ignore
|
|
522
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
submitPlcOperation<AV extends AuthVerifier>(
|
|
526
|
+
cfg: ConfigOf<
|
|
527
|
+
AV,
|
|
528
|
+
ComAtprotoIdentitySubmitPlcOperation.Handler<ExtractAuth<AV>>,
|
|
529
|
+
ComAtprotoIdentitySubmitPlcOperation.HandlerReqCtx<ExtractAuth<AV>>
|
|
530
|
+
>,
|
|
531
|
+
) {
|
|
532
|
+
const nsid = 'com.atproto.identity.submitPlcOperation' // @ts-ignore
|
|
533
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
534
|
+
}
|
|
535
|
+
|
|
481
536
|
updateHandle<AV extends AuthVerifier>(
|
|
482
537
|
cfg: ConfigOf<
|
|
483
538
|
AV,
|
|
@@ -601,6 +656,28 @@ export class ComAtprotoRepoNS {
|
|
|
601
656
|
return this._server.xrpc.method(nsid, cfg)
|
|
602
657
|
}
|
|
603
658
|
|
|
659
|
+
importRepo<AV extends AuthVerifier>(
|
|
660
|
+
cfg: ConfigOf<
|
|
661
|
+
AV,
|
|
662
|
+
ComAtprotoRepoImportRepo.Handler<ExtractAuth<AV>>,
|
|
663
|
+
ComAtprotoRepoImportRepo.HandlerReqCtx<ExtractAuth<AV>>
|
|
664
|
+
>,
|
|
665
|
+
) {
|
|
666
|
+
const nsid = 'com.atproto.repo.importRepo' // @ts-ignore
|
|
667
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
listMissingBlobs<AV extends AuthVerifier>(
|
|
671
|
+
cfg: ConfigOf<
|
|
672
|
+
AV,
|
|
673
|
+
ComAtprotoRepoListMissingBlobs.Handler<ExtractAuth<AV>>,
|
|
674
|
+
ComAtprotoRepoListMissingBlobs.HandlerReqCtx<ExtractAuth<AV>>
|
|
675
|
+
>,
|
|
676
|
+
) {
|
|
677
|
+
const nsid = 'com.atproto.repo.listMissingBlobs' // @ts-ignore
|
|
678
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
679
|
+
}
|
|
680
|
+
|
|
604
681
|
listRecords<AV extends AuthVerifier>(
|
|
605
682
|
cfg: ConfigOf<
|
|
606
683
|
AV,
|
|
@@ -642,6 +719,28 @@ export class ComAtprotoServerNS {
|
|
|
642
719
|
this._server = server
|
|
643
720
|
}
|
|
644
721
|
|
|
722
|
+
activateAccount<AV extends AuthVerifier>(
|
|
723
|
+
cfg: ConfigOf<
|
|
724
|
+
AV,
|
|
725
|
+
ComAtprotoServerActivateAccount.Handler<ExtractAuth<AV>>,
|
|
726
|
+
ComAtprotoServerActivateAccount.HandlerReqCtx<ExtractAuth<AV>>
|
|
727
|
+
>,
|
|
728
|
+
) {
|
|
729
|
+
const nsid = 'com.atproto.server.activateAccount' // @ts-ignore
|
|
730
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
checkAccountStatus<AV extends AuthVerifier>(
|
|
734
|
+
cfg: ConfigOf<
|
|
735
|
+
AV,
|
|
736
|
+
ComAtprotoServerCheckAccountStatus.Handler<ExtractAuth<AV>>,
|
|
737
|
+
ComAtprotoServerCheckAccountStatus.HandlerReqCtx<ExtractAuth<AV>>
|
|
738
|
+
>,
|
|
739
|
+
) {
|
|
740
|
+
const nsid = 'com.atproto.server.checkAccountStatus' // @ts-ignore
|
|
741
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
742
|
+
}
|
|
743
|
+
|
|
645
744
|
confirmEmail<AV extends AuthVerifier>(
|
|
646
745
|
cfg: ConfigOf<
|
|
647
746
|
AV,
|
|
@@ -708,6 +807,17 @@ export class ComAtprotoServerNS {
|
|
|
708
807
|
return this._server.xrpc.method(nsid, cfg)
|
|
709
808
|
}
|
|
710
809
|
|
|
810
|
+
deactivateAccount<AV extends AuthVerifier>(
|
|
811
|
+
cfg: ConfigOf<
|
|
812
|
+
AV,
|
|
813
|
+
ComAtprotoServerDeactivateAccount.Handler<ExtractAuth<AV>>,
|
|
814
|
+
ComAtprotoServerDeactivateAccount.HandlerReqCtx<ExtractAuth<AV>>
|
|
815
|
+
>,
|
|
816
|
+
) {
|
|
817
|
+
const nsid = 'com.atproto.server.deactivateAccount' // @ts-ignore
|
|
818
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
819
|
+
}
|
|
820
|
+
|
|
711
821
|
deleteAccount<AV extends AuthVerifier>(
|
|
712
822
|
cfg: ConfigOf<
|
|
713
823
|
AV,
|
|
@@ -752,6 +862,17 @@ export class ComAtprotoServerNS {
|
|
|
752
862
|
return this._server.xrpc.method(nsid, cfg)
|
|
753
863
|
}
|
|
754
864
|
|
|
865
|
+
getServiceAuth<AV extends AuthVerifier>(
|
|
866
|
+
cfg: ConfigOf<
|
|
867
|
+
AV,
|
|
868
|
+
ComAtprotoServerGetServiceAuth.Handler<ExtractAuth<AV>>,
|
|
869
|
+
ComAtprotoServerGetServiceAuth.HandlerReqCtx<ExtractAuth<AV>>
|
|
870
|
+
>,
|
|
871
|
+
) {
|
|
872
|
+
const nsid = 'com.atproto.server.getServiceAuth' // @ts-ignore
|
|
873
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
874
|
+
}
|
|
875
|
+
|
|
755
876
|
getSession<AV extends AuthVerifier>(
|
|
756
877
|
cfg: ConfigOf<
|
|
757
878
|
AV,
|
|
@@ -1043,28 +1164,6 @@ export class ComAtprotoTempNS {
|
|
|
1043
1164
|
return this._server.xrpc.method(nsid, cfg)
|
|
1044
1165
|
}
|
|
1045
1166
|
|
|
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
1167
|
requestPhoneVerification<AV extends AuthVerifier>(
|
|
1069
1168
|
cfg: ConfigOf<
|
|
1070
1169
|
AV,
|
|
@@ -1075,17 +1174,6 @@ export class ComAtprotoTempNS {
|
|
|
1075
1174
|
const nsid = 'com.atproto.temp.requestPhoneVerification' // @ts-ignore
|
|
1076
1175
|
return this._server.xrpc.method(nsid, cfg)
|
|
1077
1176
|
}
|
|
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
1177
|
}
|
|
1090
1178
|
|
|
1091
1179
|
export class AppNS {
|