@atproto/bsky 0.0.12 → 0.0.13
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 +16 -0
- package/LICENSE.txt +7 -0
- package/README.md +6 -1
- package/dist/index.js +28 -4
- package/dist/index.js.map +2 -2
- package/dist/lexicon/lexicons.d.ts +12 -0
- package/dist/lexicon/types/com/atproto/server/createAccount.d.ts +3 -3
- package/dist/lexicon/types/com/atproto/server/reserveSigningKey.d.ts +8 -2
- package/package.json +14 -14
- package/src/lexicon/lexicons.ts +14 -2
- package/src/lexicon/types/com/atproto/server/createAccount.ts +3 -3
- package/src/lexicon/types/com/atproto/server/reserveSigningKey.ts +9 -2
- package/LICENSE +0 -21
|
@@ -2916,6 +2916,18 @@ export declare const schemaDict: {
|
|
|
2916
2916
|
main: {
|
|
2917
2917
|
type: string;
|
|
2918
2918
|
description: string;
|
|
2919
|
+
input: {
|
|
2920
|
+
encoding: string;
|
|
2921
|
+
schema: {
|
|
2922
|
+
type: string;
|
|
2923
|
+
properties: {
|
|
2924
|
+
did: {
|
|
2925
|
+
type: string;
|
|
2926
|
+
description: string;
|
|
2927
|
+
};
|
|
2928
|
+
};
|
|
2929
|
+
};
|
|
2930
|
+
};
|
|
2919
2931
|
output: {
|
|
2920
2932
|
encoding: string;
|
|
2921
2933
|
schema: {
|
|
@@ -3,13 +3,13 @@ import { HandlerAuth } from '@atproto/xrpc-server';
|
|
|
3
3
|
export interface QueryParams {
|
|
4
4
|
}
|
|
5
5
|
export interface InputSchema {
|
|
6
|
-
email
|
|
6
|
+
email?: string;
|
|
7
7
|
handle: string;
|
|
8
8
|
did?: string;
|
|
9
9
|
inviteCode?: string;
|
|
10
|
-
password
|
|
10
|
+
password?: string;
|
|
11
11
|
recoveryKey?: string;
|
|
12
|
-
plcOp?:
|
|
12
|
+
plcOp?: {};
|
|
13
13
|
[k: string]: unknown;
|
|
14
14
|
}
|
|
15
15
|
export interface OutputSchema {
|
|
@@ -2,12 +2,18 @@ import express from 'express';
|
|
|
2
2
|
import { HandlerAuth } from '@atproto/xrpc-server';
|
|
3
3
|
export interface QueryParams {
|
|
4
4
|
}
|
|
5
|
-
export
|
|
5
|
+
export interface InputSchema {
|
|
6
|
+
did?: string;
|
|
7
|
+
[k: string]: unknown;
|
|
8
|
+
}
|
|
6
9
|
export interface OutputSchema {
|
|
7
10
|
signingKey: string;
|
|
8
11
|
[k: string]: unknown;
|
|
9
12
|
}
|
|
10
|
-
export
|
|
13
|
+
export interface HandlerInput {
|
|
14
|
+
encoding: 'application/json';
|
|
15
|
+
body: InputSchema;
|
|
16
|
+
}
|
|
11
17
|
export interface HandlerSuccess {
|
|
12
18
|
encoding: 'application/json';
|
|
13
19
|
body: OutputSchema;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atproto/bsky",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Reference implementation of app.bsky App View (Bluesky API)",
|
|
6
6
|
"keywords": [
|
|
@@ -35,14 +35,14 @@
|
|
|
35
35
|
"sharp": "^0.31.2",
|
|
36
36
|
"typed-emitter": "^2.1.0",
|
|
37
37
|
"uint8arrays": "3.0.0",
|
|
38
|
-
"@atproto/api": "^0.6.
|
|
39
|
-
"@atproto/common": "^0.3.
|
|
40
|
-
"@atproto/crypto": "^0.2.
|
|
41
|
-
"@atproto/syntax": "^0.1.
|
|
42
|
-
"@atproto/identity": "^0.3.
|
|
43
|
-
"@atproto/lexicon": "^0.
|
|
44
|
-
"@atproto/repo": "^0.3.
|
|
45
|
-
"@atproto/xrpc-server": "^0.
|
|
38
|
+
"@atproto/api": "^0.6.22",
|
|
39
|
+
"@atproto/common": "^0.3.3",
|
|
40
|
+
"@atproto/crypto": "^0.2.3",
|
|
41
|
+
"@atproto/syntax": "^0.1.4",
|
|
42
|
+
"@atproto/identity": "^0.3.1",
|
|
43
|
+
"@atproto/lexicon": "^0.3.0",
|
|
44
|
+
"@atproto/repo": "^0.3.4",
|
|
45
|
+
"@atproto/xrpc-server": "^0.4.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@did-plc/server": "^0.0.1",
|
|
@@ -53,11 +53,11 @@
|
|
|
53
53
|
"@types/qs": "^6.9.7",
|
|
54
54
|
"@types/sharp": "^0.31.0",
|
|
55
55
|
"axios": "^0.27.2",
|
|
56
|
-
"@atproto/api": "^0.6.
|
|
57
|
-
"@atproto/dev-env": "^0.2.
|
|
58
|
-
"@atproto/lex-cli": "^0.2.
|
|
59
|
-
"@atproto/pds": "^0.3.
|
|
60
|
-
"@atproto/xrpc": "^0.
|
|
56
|
+
"@atproto/api": "^0.6.22",
|
|
57
|
+
"@atproto/dev-env": "^0.2.13",
|
|
58
|
+
"@atproto/lex-cli": "^0.2.4",
|
|
59
|
+
"@atproto/pds": "^0.3.1",
|
|
60
|
+
"@atproto/xrpc": "^0.4.0"
|
|
61
61
|
},
|
|
62
62
|
"scripts": {
|
|
63
63
|
"codegen": "lex gen-server ./src/lexicon ../../lexicons/com/atproto/*/* ../../lexicons/app/bsky/*/*",
|
package/src/lexicon/lexicons.ts
CHANGED
|
@@ -2489,7 +2489,7 @@ export const schemaDict = {
|
|
|
2489
2489
|
encoding: 'application/json',
|
|
2490
2490
|
schema: {
|
|
2491
2491
|
type: 'object',
|
|
2492
|
-
required: ['handle'
|
|
2492
|
+
required: ['handle'],
|
|
2493
2493
|
properties: {
|
|
2494
2494
|
email: {
|
|
2495
2495
|
type: 'string',
|
|
@@ -2512,7 +2512,7 @@ export const schemaDict = {
|
|
|
2512
2512
|
type: 'string',
|
|
2513
2513
|
},
|
|
2514
2514
|
plcOp: {
|
|
2515
|
-
type: '
|
|
2515
|
+
type: 'unknown',
|
|
2516
2516
|
},
|
|
2517
2517
|
},
|
|
2518
2518
|
},
|
|
@@ -3170,6 +3170,18 @@ export const schemaDict = {
|
|
|
3170
3170
|
main: {
|
|
3171
3171
|
type: 'procedure',
|
|
3172
3172
|
description: 'Reserve a repo signing key for account creation.',
|
|
3173
|
+
input: {
|
|
3174
|
+
encoding: 'application/json',
|
|
3175
|
+
schema: {
|
|
3176
|
+
type: 'object',
|
|
3177
|
+
properties: {
|
|
3178
|
+
did: {
|
|
3179
|
+
type: 'string',
|
|
3180
|
+
description: 'The did to reserve a new did:key for',
|
|
3181
|
+
},
|
|
3182
|
+
},
|
|
3183
|
+
},
|
|
3184
|
+
},
|
|
3173
3185
|
output: {
|
|
3174
3186
|
encoding: 'application/json',
|
|
3175
3187
|
schema: {
|
|
@@ -11,13 +11,13 @@ import { HandlerAuth } from '@atproto/xrpc-server'
|
|
|
11
11
|
export interface QueryParams {}
|
|
12
12
|
|
|
13
13
|
export interface InputSchema {
|
|
14
|
-
email
|
|
14
|
+
email?: string
|
|
15
15
|
handle: string
|
|
16
16
|
did?: string
|
|
17
17
|
inviteCode?: string
|
|
18
|
-
password
|
|
18
|
+
password?: string
|
|
19
19
|
recoveryKey?: string
|
|
20
|
-
plcOp?:
|
|
20
|
+
plcOp?: {}
|
|
21
21
|
[k: string]: unknown
|
|
22
22
|
}
|
|
23
23
|
|
|
@@ -10,7 +10,11 @@ import { HandlerAuth } from '@atproto/xrpc-server'
|
|
|
10
10
|
|
|
11
11
|
export interface QueryParams {}
|
|
12
12
|
|
|
13
|
-
export
|
|
13
|
+
export interface InputSchema {
|
|
14
|
+
/** The did to reserve a new did:key for */
|
|
15
|
+
did?: string
|
|
16
|
+
[k: string]: unknown
|
|
17
|
+
}
|
|
14
18
|
|
|
15
19
|
export interface OutputSchema {
|
|
16
20
|
/** Public signing key in the form of a did:key. */
|
|
@@ -18,7 +22,10 @@ export interface OutputSchema {
|
|
|
18
22
|
[k: string]: unknown
|
|
19
23
|
}
|
|
20
24
|
|
|
21
|
-
export
|
|
25
|
+
export interface HandlerInput {
|
|
26
|
+
encoding: 'application/json'
|
|
27
|
+
body: InputSchema
|
|
28
|
+
}
|
|
22
29
|
|
|
23
30
|
export interface HandlerSuccess {
|
|
24
31
|
encoding: 'application/json'
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2022-2023 Bluesky PBC
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|