Skip to content

Commit

Permalink
Update lexicons to commit ad1fcf138711139ceedcf63db3702bf3b6cdb753
Browse files Browse the repository at this point in the history
  • Loading branch information
aDotInTheVoid committed Aug 30, 2023
1 parent f60d639 commit 525960b
Show file tree
Hide file tree
Showing 15 changed files with 311 additions and 264 deletions.
37 changes: 37 additions & 0 deletions lexgen/lexicons/app/bsky/feed/getActorLikes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"lexicon": 1,
"id": "app.bsky.feed.getActorLikes",
"defs": {
"main": {
"type": "query",
"description": "A view of the posts liked by an actor.",
"parameters": {
"type": "params",
"required": ["actor"],
"properties": {
"actor": {"type": "string", "format": "at-identifier"},
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
"cursor": {"type": "string"}
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["feed"],
"properties": {
"cursor": {"type": "string"},
"feed": {
"type": "array",
"items": {"type": "ref", "ref": "app.bsky.feed.defs#feedViewPost"}
}
}
}
},
"errors": [
{"name": "BlockedActor"},
{"name": "BlockedByActor"}
]
}
}
}
23 changes: 23 additions & 0 deletions lexgen/lexicons/app/bsky/notification/registerPush.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"lexicon": 1,
"id": "app.bsky.notification.registerPush",
"defs": {
"main": {
"type": "procedure",
"description": "Register for push notifications with a service",
"input": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["serviceDid", "token", "platform", "appId"],
"properties": {
"serviceDid": {"type": "string", "format": "did"},
"token": {"type": "string"},
"platform": {"type": "string", "knownValues": ["ios", "android", "web"]},
"appId": {"type": "string"}
}
}
}
}
}
}
33 changes: 0 additions & 33 deletions lexgen/lexicons/com/atproto/admin/rebaseRepo.json

This file was deleted.

33 changes: 0 additions & 33 deletions lexgen/lexicons/com/atproto/repo/rebaseRepo.json

This file was deleted.

7 changes: 1 addition & 6 deletions lexgen/lexicons/com/atproto/sync/getCheckout.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"defs": {
"main": {
"type": "query",
"description": "Gets the repo state.",
"description": "DEPRECATED - please use com.atproto.sync.getRepo instead",
"parameters": {
"type": "params",
"required": ["did"],
Expand All @@ -13,11 +13,6 @@
"type": "string",
"format": "did",
"description": "The DID of the repo."
},
"commit": {
"type": "string",
"format": "cid",
"description": "The commit to get the checkout from. Defaults to current HEAD."
}
}
},
Expand Down
44 changes: 0 additions & 44 deletions lexgen/lexicons/com/atproto/sync/getCommitPath.json

This file was deleted.

2 changes: 1 addition & 1 deletion lexgen/lexicons/com/atproto/sync/getHead.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"defs": {
"main": {
"type": "query",
"description": "Gets the current HEAD CID of a repo.",
"description": "DEPRECATED - please use com.atproto.sync.getLatestCommit instead",
"parameters": {
"type": "params",
"required": ["did"],
Expand Down
35 changes: 35 additions & 0 deletions lexgen/lexicons/com/atproto/sync/getLatestCommit.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"lexicon": 1,
"id": "com.atproto.sync.getLatestCommit",
"defs": {
"main": {
"type": "query",
"description": "Gets the current commit CID & revision of the repo.",
"parameters": {
"type": "params",
"required": ["did"],
"properties": {
"did": {
"type": "string",
"format": "did",
"description": "The DID of the repo."
}
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["cid", "rev"],
"properties": {
"cid": {"type": "string", "format": "cid"},
"rev": {"type": "string"}
}
}
},
"errors": [
{"name": "RepoNotFound"}
]
}
}
}
11 changes: 3 additions & 8 deletions lexgen/lexicons/com/atproto/sync/getRepo.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"defs": {
"main": {
"type": "query",
"description": "Gets the repo state.",
"description": "Gets the did's repo, optionally catching up from a specific revision.",
"parameters": {
"type": "params",
"required": ["did"],
Expand All @@ -14,15 +14,10 @@
"format": "did",
"description": "The DID of the repo."
},
"earliest": {
"since": {
"type": "string",
"format": "cid",
"description": "The earliest commit in the commit range (not inclusive)"
},
"latest": {
"type": "string",
"format": "cid",
"description": "The latest commit in the commit range (inclusive)"
"description": "The revision of the repo to catch up from."
}
}
},
Expand Down
8 changes: 5 additions & 3 deletions lexgen/lexicons/com/atproto/sync/listBlobs.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@
"defs": {
"main": {
"type": "query",
"description": "List blob cids for some range of commits",
"description": "List blob cids since some revision",
"parameters": {
"type": "params",
"required": ["did"],
"properties": {
"did": {"type": "string", "format": "did", "description": "The DID of the repo."},
"latest": { "type": "string", "format": "cid", "description": "The most recent commit"},
"earliest": { "type": "string", "format": "cid", "description": "The earliest commit to start from"}
"since": { "type": "string", "format": "cid", "description": "Optional revision of the repo to list blobs since"},
"limit": {"type": "integer", "minimum": 1, "maximum": 1000, "default": 500},
"cursor": {"type": "string"}
}
},
"output": {
Expand All @@ -20,6 +21,7 @@
"type": "object",
"required": ["cids"],
"properties": {
"cursor": {"type": "string"},
"cids": {
"type": "array",
"items": { "type": "string", "format": "cid" }
Expand Down
15 changes: 12 additions & 3 deletions lexgen/lexicons/com/atproto/sync/subscribeRepos.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,23 @@
},
"commit": {
"type": "object",
"required": ["seq", "rebase", "tooBig", "repo", "commit", "prev", "blocks", "ops", "blobs", "time"],
"nullable": ["prev"],
"required": ["seq", "rebase", "tooBig", "repo", "commit", "rev", "since", "blocks", "ops", "blobs", "time"],
"nullable": ["prev", "since"],
"properties": {
"seq": {"type": "integer"},
"rebase": {"type": "boolean"},
"tooBig": {"type": "boolean"},
"repo": {"type": "string", "format": "did"},
"commit": {"type": "cid-link"},
"prev": {"type": "cid-link"},
"rev": {
"type": "string",
"description": "The rev of the emitted commit"
},
"since": {
"type": "string",
"description": "The rev of the last emitted commit from this repo"
},
"blocks": {
"type": "bytes",
"description": "CAR file containing relevant blocks",
Expand Down Expand Up @@ -104,6 +112,7 @@
},
"repoOp": {
"type": "object",
"description": "A repo operation, ie a write of a single record. For creates and updates, cid is the record's CID as of this operation. For deletes, it's null.",
"required": ["action", "path", "cid"],
"nullable": ["cid"],
"properties": {
Expand All @@ -120,4 +129,4 @@
}
}
}
}
}
20 changes: 20 additions & 0 deletions lexgen/lexicons/com/atproto/temp/upgradeRepoVersion.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"lexicon": 1,
"id": "com.atproto.temp.upgradeRepoVersion",
"defs": {
"main": {
"type": "procedure",
"description": "Upgrade a repo to v3",
"input": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["did"],
"properties": {
"did": { "type": "string", "format": "did" }
}
}
}
}
}
}
Loading

0 comments on commit 525960b

Please sign in to comment.