this repo has no description
1# import src.id as id
2
3# a = id.TID("2zzzzzzzzzzzz")
4# print(repr(a), a, a.timestamp, a.clock_identifier)
5
6# print(repr(id.DID("did:web:::::jojojux.de")))
7
8# com_bsky = id.NSIDGlob("com.bsky.*")
9# com_bsky_feed = id.NSID("com.bsky.feed")
10# print(com_bsky.matches(com_bsky_feed))
11
12
13import base64
14from src.lexicon import lexicon
15from src.lexicon.lexicon import LQuery
16
17
18lex = lexicon(
19 {
20 "lexicon": 1,
21 "id": "com.example.getProfile",
22 "defs": {
23 "main": {
24 "type": "query",
25 "parameters": {
26 "type": "params",
27 "required": ["user"],
28 "properties": {"user": {"type": "string"}},
29 },
30 "output": {
31 "encoding": "application/json",
32 "schema": {
33 "type": "object",
34 "required": ["did", "name"],
35 "properties": {
36 "did": {"type": "string"},
37 "name": {"type": "string"},
38 "displayName": {"type": "string", "maxLength": 64},
39 "description": {"type": "string", "maxLength": 256},
40 },
41 },
42 },
43 }
44 },
45 }
46)