tangled
alpha
login
or
join now
djara.dev
/
watproto
2
fork
atom
Testing implementation for private data in ATProto with ATPKeyserver and ATCute tools
2
fork
atom
overview
issues
pulls
pipelines
lexicon update
Juan D. Jara
1 month ago
d4de4bed
73cd1e01
+30
-47
5 changed files
expand all
collapse all
unified
split
packages
lexicon
package.json
types
app
bsky
graph
follow.ts
wafrn
actor
defs.ts
content
defs.ts
dev
atpkeyserver
alpha
defs.ts
+11
-3
packages/lexicon/package.json
···
1
1
{
2
2
+
"type": "module",
2
3
"name": "@watproto/lexicon",
3
4
"version": "0.0.1",
4
5
"license": "MIT",
5
5
-
"main": "./index.ts",
6
6
-
"types": "./index.ts",
6
6
+
"exports": {
7
7
+
".": "./index.ts"
8
8
+
},
7
9
"dependencies": {
8
10
"@atcute/atproto": "^3.1.8",
9
11
"@atcute/bluesky": "^3.2.9",
10
12
"@atcute/lexicons": "^1.2.2"
13
13
+
},
14
14
+
"atcute:lexicons": {
15
15
+
"app.wafrn.*": {
16
16
+
"type": "namespace",
17
17
+
"path": "./types/{{nsid}}"
18
18
+
}
11
19
}
12
12
-
}
20
20
+
}
-30
packages/lexicon/types/app/bsky/graph/follow.ts
···
1
1
-
import type {} from "@atcute/lexicons";
2
2
-
import * as v from "@atcute/lexicons/validations";
3
3
-
import type {} from "@atcute/lexicons/ambient";
4
4
-
import * as ComAtprotoRepoStrongRef from "../../../com/atproto/repo/strongRef.js";
5
5
-
6
6
-
const _mainSchema = /*#__PURE__*/ v.record(
7
7
-
/*#__PURE__*/ v.tidString(),
8
8
-
/*#__PURE__*/ v.object({
9
9
-
$type: /*#__PURE__*/ v.literal("app.bsky.graph.follow"),
10
10
-
createdAt: /*#__PURE__*/ v.datetimeString(),
11
11
-
subject: /*#__PURE__*/ v.didString(),
12
12
-
get via() {
13
13
-
return /*#__PURE__*/ v.optional(ComAtprotoRepoStrongRef.mainSchema);
14
14
-
},
15
15
-
}),
16
16
-
);
17
17
-
18
18
-
type main$schematype = typeof _mainSchema;
19
19
-
20
20
-
export interface mainSchema extends main$schematype {}
21
21
-
22
22
-
export const mainSchema = _mainSchema as mainSchema;
23
23
-
24
24
-
export interface Main extends v.InferInput<typeof mainSchema> {}
25
25
-
26
26
-
declare module "@atcute/lexicons/ambient" {
27
27
-
interface Records {
28
28
-
"app.bsky.graph.follow": mainSchema;
29
29
-
}
30
30
-
}
+4
-4
packages/lexicon/types/app/wafrn/actor/defs.ts
···
73
73
74
74
export interface customFieldSchema extends customField$schematype {}
75
75
export interface profileViewSchema extends profileView$schematype {}
76
76
-
export interface profileViewDetailedSchema
77
77
-
extends profileViewDetailed$schematype {}
76
76
+
export interface profileViewDetailedSchema extends profileViewDetailed$schematype {}
78
77
79
78
export const customFieldSchema = _customFieldSchema as customFieldSchema;
80
79
export const profileViewSchema = _profileViewSchema as profileViewSchema;
···
83
82
84
83
export interface CustomField extends v.InferInput<typeof customFieldSchema> {}
85
84
export interface ProfileView extends v.InferInput<typeof profileViewSchema> {}
86
86
-
export interface ProfileViewDetailed
87
87
-
extends v.InferInput<typeof profileViewDetailedSchema> {}
85
85
+
export interface ProfileViewDetailed extends v.InferInput<
86
86
+
typeof profileViewDetailedSchema
87
87
+
> {}
+6
-4
packages/lexicon/types/app/wafrn/content/defs.ts
···
68
68
_publicPostViewSchema as publicPostViewSchema;
69
69
70
70
export interface PostContent extends v.InferInput<typeof postContentSchema> {}
71
71
-
export interface PrivatePostView
72
72
-
extends v.InferInput<typeof privatePostViewSchema> {}
73
73
-
export interface PublicPostView
74
74
-
extends v.InferInput<typeof publicPostViewSchema> {}
71
71
+
export interface PrivatePostView extends v.InferInput<
72
72
+
typeof privatePostViewSchema
73
73
+
> {}
74
74
+
export interface PublicPostView extends v.InferInput<
75
75
+
typeof publicPostViewSchema
76
76
+
> {}
+9
-6
packages/lexicon/types/dev/atpkeyserver/alpha/defs.ts
···
152
152
export const rotationResultSchema =
153
153
_rotationResultSchema as rotationResultSchema;
154
154
155
155
-
export interface AccessLogEntry
156
156
-
extends v.InferInput<typeof accessLogEntrySchema> {}
155
155
+
export interface AccessLogEntry extends v.InferInput<
156
156
+
typeof accessLogEntrySchema
157
157
+
> {}
157
158
export interface GroupKey extends v.InferInput<typeof groupKeySchema> {}
158
158
-
export interface KeyVersionInfo
159
159
-
extends v.InferInput<typeof keyVersionInfoSchema> {}
159
159
+
export interface KeyVersionInfo extends v.InferInput<
160
160
+
typeof keyVersionInfoSchema
161
161
+
> {}
160
162
export interface Keypair extends v.InferInput<typeof keypairSchema> {}
161
163
export interface MemberResult extends v.InferInput<typeof memberResultSchema> {}
162
164
export interface PublicKey extends v.InferInput<typeof publicKeySchema> {}
163
163
-
export interface RotationResult
164
164
-
extends v.InferInput<typeof rotationResultSchema> {}
165
165
+
export interface RotationResult extends v.InferInput<
166
166
+
typeof rotationResultSchema
167
167
+
> {}