Skip to content

Commit a0318d0

Browse files
committed
standard-site-sync changes
1 parent 2b82383 commit a0318d0

13 files changed

Lines changed: 638 additions & 135 deletions

File tree

app/pages/blog/alpha-release.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ authors:
55
- name: Salma Alam-Naylor
66
blueskyHandle: whitep4nth3r.com
77
- name: Matias Capeletto
8-
blueskyHandle: patak.dev
8+
blueskyHandle: patak.cat
99
title: "Announcing npmx: a fast, modern browser for the npm registry"
1010
tags: ["OpenSource", "Release"]
1111
excerpt: "npmx is an open-source project built by a rapidly growing community. It's for open-source developers, and by

lexicons.json

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,11 @@
1111
"app.bsky.feed.getPosts",
1212
"app.bsky.feed.post",
1313
"com.atproto.identity.resolveHandle",
14-
"com.bad-example.identity.resolveMiniDoc",
15-
"site.standard.document"
14+
"com.atproto.repo.applyWrites",
15+
"com.atproto.repo.getRecord",
16+
"com.atproto.sync.getLatestCommit",
17+
"site.standard.document",
18+
"site.standard.publication"
1619
],
1720
"resolutions": {
1821
"app.bsky.actor.defs": {
@@ -111,18 +114,42 @@
111114
"uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.moderation.defs",
112115
"cid": "bafyreideawy4rlpgces2oebk5q4kpurbonhb5qtl4pes7dvxsc5osaiksy"
113116
},
117+
"com.atproto.repo.applyWrites": {
118+
"uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.repo.applyWrites",
119+
"cid": "bafyreidwfwif7k5uncwqxhpxpxhvdkgedbvp6kqy6r4nozii433lwlajba"
120+
},
121+
"com.atproto.repo.defs": {
122+
"uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.repo.defs",
123+
"cid": "bafyreigmp5xfpkhnmwr3l5o626ued2gc2ouioykj2tpgqjqqajvbvm3wlm"
124+
},
125+
"com.atproto.repo.getRecord": {
126+
"uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.repo.getRecord",
127+
"cid": "bafyreihdnm3v25uaptt5vjvnpfsfgb6fbhxew2ye3l6q4ndm7xi5wpc4vy"
128+
},
114129
"com.atproto.repo.strongRef": {
115130
"uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.repo.strongRef",
116131
"cid": "bafyreifrkdbnkvfjujntdaeigolnrjj3srrs53tfixjhmacclps72qlov4"
117132
},
118-
"com.bad-example.identity.resolveMiniDoc": {
119-
"uri": "at://did:plc:hdhoaan3xa3jiuq4fg4mefid/com.atproto.lexicon.schema/com.bad-example.identity.resolveMiniDoc",
120-
"cid": "bafyreihqq4ud3ihj63op2ety24nziyyh7axibm65mnde5bdeai2z6adety"
133+
"com.atproto.sync.getLatestCommit": {
134+
"uri": "at://did:plc:6msi3pj7krzih5qxqtryxlzw/com.atproto.lexicon.schema/com.atproto.sync.getLatestCommit",
135+
"cid": "bafyreifewzvfus7z6rnmtv74lpulhldvikqmhzepwqdlaqmhllgyg4oejq"
121136
},
122137
"site.standard.document": {
123138
"uri": "at://did:plc:re3ebnp5v7ffagz6rb6xfei4/com.atproto.lexicon.schema/site.standard.document",
124139
"cid": "bafyreigdukg62hmel4jbdvghdsoaphslhrdktmahzdyokomuka6yejetwa"
125140
},
141+
"site.standard.publication": {
142+
"uri": "at://did:plc:re3ebnp5v7ffagz6rb6xfei4/com.atproto.lexicon.schema/site.standard.publication",
143+
"cid": "bafyreigrsjktb6o225aoexib4kmckchzlhbnuckj5t3l6k4asmycrjt5vy"
144+
},
145+
"site.standard.theme.basic": {
146+
"uri": "at://did:plc:re3ebnp5v7ffagz6rb6xfei4/com.atproto.lexicon.schema/site.standard.theme.basic",
147+
"cid": "bafyreicgo6eszo6fgz6rpdc2wt4ou3dem65hkqagzgaw4xbl32i2ttdu3q"
148+
},
149+
"site.standard.theme.color": {
150+
"uri": "at://did:plc:re3ebnp5v7ffagz6rb6xfei4/com.atproto.lexicon.schema/site.standard.theme.color",
151+
"cid": "bafyreicps42z5maxdqwml7t3klsrrpk332jthyfgpeb4zjn3wlvp5vyjia"
152+
},
126153
"tools.ozone.report.defs": {
127154
"uri": "at://did:plc:33dt5kftu3jq2h5h4jjlqezt/com.atproto.lexicon.schema/tools.ozone.report.defs",
128155
"cid": "bafyreic3l2rmh2ugirt3jz372wcvy333m7t2ynlyzj2k54oshijs6lxdfu"
Lines changed: 163 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
1+
{
2+
"id": "com.atproto.repo.applyWrites",
3+
"defs": {
4+
"main": {
5+
"type": "procedure",
6+
"input": {
7+
"schema": {
8+
"type": "object",
9+
"required": ["repo", "writes"],
10+
"properties": {
11+
"repo": {
12+
"type": "string",
13+
"format": "at-identifier",
14+
"description": "The handle or DID of the repo (aka, current account)."
15+
},
16+
"writes": {
17+
"type": "array",
18+
"items": {
19+
"refs": ["#create", "#update", "#delete"],
20+
"type": "union",
21+
"closed": true
22+
}
23+
},
24+
"validate": {
25+
"type": "boolean",
26+
"description": "Can be set to 'false' to skip Lexicon schema validation of record data across all operations, 'true' to require it, or leave unset to validate only for known Lexicons."
27+
},
28+
"swapCommit": {
29+
"type": "string",
30+
"format": "cid",
31+
"description": "If provided, the entire operation will fail if the current repo commit CID does not match this value. Used to prevent conflicting repo mutations."
32+
}
33+
}
34+
},
35+
"encoding": "application/json"
36+
},
37+
"errors": [
38+
{
39+
"name": "InvalidSwap",
40+
"description": "Indicates that the 'swapCommit' parameter did not match current commit."
41+
}
42+
],
43+
"output": {
44+
"schema": {
45+
"type": "object",
46+
"required": [],
47+
"properties": {
48+
"commit": {
49+
"ref": "com.atproto.repo.defs#commitMeta",
50+
"type": "ref"
51+
},
52+
"results": {
53+
"type": "array",
54+
"items": {
55+
"refs": ["#createResult", "#updateResult", "#deleteResult"],
56+
"type": "union",
57+
"closed": true
58+
}
59+
}
60+
}
61+
},
62+
"encoding": "application/json"
63+
},
64+
"description": "Apply a batch transaction of repository creates, updates, and deletes. Requires auth, implemented by PDS."
65+
},
66+
"create": {
67+
"type": "object",
68+
"required": ["collection", "value"],
69+
"properties": {
70+
"rkey": {
71+
"type": "string",
72+
"format": "record-key",
73+
"maxLength": 512,
74+
"description": "NOTE: maxLength is redundant with record-key format. Keeping it temporarily to ensure backwards compatibility."
75+
},
76+
"value": {
77+
"type": "unknown"
78+
},
79+
"collection": {
80+
"type": "string",
81+
"format": "nsid"
82+
}
83+
},
84+
"description": "Operation which creates a new record."
85+
},
86+
"delete": {
87+
"type": "object",
88+
"required": ["collection", "rkey"],
89+
"properties": {
90+
"rkey": {
91+
"type": "string",
92+
"format": "record-key"
93+
},
94+
"collection": {
95+
"type": "string",
96+
"format": "nsid"
97+
}
98+
},
99+
"description": "Operation which deletes an existing record."
100+
},
101+
"update": {
102+
"type": "object",
103+
"required": ["collection", "rkey", "value"],
104+
"properties": {
105+
"rkey": {
106+
"type": "string",
107+
"format": "record-key"
108+
},
109+
"value": {
110+
"type": "unknown"
111+
},
112+
"collection": {
113+
"type": "string",
114+
"format": "nsid"
115+
}
116+
},
117+
"description": "Operation which updates an existing record."
118+
},
119+
"createResult": {
120+
"type": "object",
121+
"required": ["uri", "cid"],
122+
"properties": {
123+
"cid": {
124+
"type": "string",
125+
"format": "cid"
126+
},
127+
"uri": {
128+
"type": "string",
129+
"format": "at-uri"
130+
},
131+
"validationStatus": {
132+
"type": "string",
133+
"knownValues": ["valid", "unknown"]
134+
}
135+
}
136+
},
137+
"deleteResult": {
138+
"type": "object",
139+
"required": [],
140+
"properties": {}
141+
},
142+
"updateResult": {
143+
"type": "object",
144+
"required": ["uri", "cid"],
145+
"properties": {
146+
"cid": {
147+
"type": "string",
148+
"format": "cid"
149+
},
150+
"uri": {
151+
"type": "string",
152+
"format": "at-uri"
153+
},
154+
"validationStatus": {
155+
"type": "string",
156+
"knownValues": ["valid", "unknown"]
157+
}
158+
}
159+
}
160+
},
161+
"$type": "com.atproto.lexicon.schema",
162+
"lexicon": 1
163+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"id": "com.atproto.repo.defs",
3+
"defs": {
4+
"commitMeta": {
5+
"type": "object",
6+
"required": ["cid", "rev"],
7+
"properties": {
8+
"cid": {
9+
"type": "string",
10+
"format": "cid"
11+
},
12+
"rev": {
13+
"type": "string",
14+
"format": "tid"
15+
}
16+
}
17+
}
18+
},
19+
"$type": "com.atproto.lexicon.schema",
20+
"lexicon": 1
21+
}
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
"id": "com.atproto.repo.getRecord",
3+
"defs": {
4+
"main": {
5+
"type": "query",
6+
"errors": [
7+
{
8+
"name": "RecordNotFound"
9+
}
10+
],
11+
"output": {
12+
"schema": {
13+
"type": "object",
14+
"required": ["uri", "value"],
15+
"properties": {
16+
"cid": {
17+
"type": "string",
18+
"format": "cid"
19+
},
20+
"uri": {
21+
"type": "string",
22+
"format": "at-uri"
23+
},
24+
"value": {
25+
"type": "unknown"
26+
}
27+
}
28+
},
29+
"encoding": "application/json"
30+
},
31+
"parameters": {
32+
"type": "params",
33+
"required": ["repo", "collection", "rkey"],
34+
"properties": {
35+
"cid": {
36+
"type": "string",
37+
"format": "cid",
38+
"description": "The CID of the version of the record. If not specified, then return the most recent version."
39+
},
40+
"repo": {
41+
"type": "string",
42+
"format": "at-identifier",
43+
"description": "The handle or DID of the repo."
44+
},
45+
"rkey": {
46+
"type": "string",
47+
"format": "record-key",
48+
"description": "The Record Key."
49+
},
50+
"collection": {
51+
"type": "string",
52+
"format": "nsid",
53+
"description": "The NSID of the record collection."
54+
}
55+
}
56+
},
57+
"description": "Get a single record from a repository. Does not require auth."
58+
}
59+
},
60+
"$type": "com.atproto.lexicon.schema",
61+
"lexicon": 1
62+
}
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"id": "com.atproto.sync.getLatestCommit",
3+
"defs": {
4+
"main": {
5+
"type": "query",
6+
"errors": [
7+
{
8+
"name": "RepoNotFound"
9+
},
10+
{
11+
"name": "RepoTakendown"
12+
},
13+
{
14+
"name": "RepoSuspended"
15+
},
16+
{
17+
"name": "RepoDeactivated"
18+
}
19+
],
20+
"output": {
21+
"schema": {
22+
"type": "object",
23+
"required": ["cid", "rev"],
24+
"properties": {
25+
"cid": {
26+
"type": "string",
27+
"format": "cid"
28+
},
29+
"rev": {
30+
"type": "string",
31+
"format": "tid"
32+
}
33+
}
34+
},
35+
"encoding": "application/json"
36+
},
37+
"parameters": {
38+
"type": "params",
39+
"required": ["did"],
40+
"properties": {
41+
"did": {
42+
"type": "string",
43+
"format": "did",
44+
"description": "The DID of the repo."
45+
}
46+
}
47+
},
48+
"description": "Get the current commit CID & revision of the specified repo. Does not require auth."
49+
}
50+
},
51+
"$type": "com.atproto.lexicon.schema",
52+
"lexicon": 1
53+
}

0 commit comments

Comments
 (0)