Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lexicon: Replace all user parameters with actor or repo #655

Merged
merged 6 commits into from
Mar 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lexicons/app/bsky/actor/search.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"defs": {
"main": {
"type": "query",
"description": "Find users matching search criteria.",
"description": "Find actors matching search criteria.",
"parameters": {
"type": "params",
"properties": {
Expand All @@ -17,10 +17,10 @@
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["users"],
"required": ["actors"],
"properties": {
"cursor": {"type": "string"},
"users": {
"actors": {
"type": "array",
"items": {"type": "ref", "ref": "app.bsky.actor.profile#viewBasic"}
}
Expand Down
6 changes: 3 additions & 3 deletions lexicons/app/bsky/actor/searchTypeahead.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"defs": {
"main": {
"type": "query",
"description": "Find user suggestions for a search term.",
"description": "Find actor suggestions for a search term.",
"parameters": {
"type": "params",
"properties": {
Expand All @@ -16,9 +16,9 @@
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["users"],
"required": ["actors"],
"properties": {
"users": {
"actors": {
"type": "array",
"items": {"type": "ref", "ref": "app.bsky.actor.ref#withInfo"}
}
Expand Down
6 changes: 3 additions & 3 deletions lexicons/app/bsky/feed/getAuthorFeed.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
"defs": {
"main": {
"type": "query",
"description": "A view of a user's feed.",
"description": "A view of an actor's feed.",
"parameters": {
"type": "params",
"required": ["author"],
"required": ["actor"],
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I took a bit of liberty here & changed it to actor even tho it wasn't ambiguous like user. Let me know if you disagree

"properties": {
"author": {"type": "string"},
"actor": {"type": "string"},
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
"before": {"type": "string"}
}
Expand Down
6 changes: 3 additions & 3 deletions lexicons/app/bsky/graph/getFollowers.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
"defs": {
"main": {
"type": "query",
"description": "Who is following a user?",
"description": "Who is following an actor?",
"parameters": {
"type": "params",
"required": ["user"],
"required": ["actor"],
"properties": {
"user": {"type": "string"},
"actor": {"type": "string"},
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
"before": {"type": "string"}
}
Expand Down
6 changes: 3 additions & 3 deletions lexicons/app/bsky/graph/getFollows.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
"defs": {
"main": {
"type": "query",
"description": "Who is a user following?",
"description": "Who is an actor following?",
"parameters": {
"type": "params",
"required": ["user"],
"required": ["actor"],
"properties": {
"user": {"type": "string"},
"actor": {"type": "string"},
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50},
"before": {"type": "string"}
}
Expand Down
4 changes: 2 additions & 2 deletions lexicons/app/bsky/graph/mute.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["user"],
"required": ["actor"],
"properties": {
"user": { "type": "string" }
"actor": { "type": "string" }
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions lexicons/app/bsky/graph/unmute.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["user"],
"required": ["actor"],
"properties": {
"user": { "type": "string" }
"actor": { "type": "string" }
}
}
}
Expand Down
8 changes: 4 additions & 4 deletions lexicons/com/atproto/admin/moderationReport.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"defs": {
"view": {
"type": "object",
"required": ["id", "reasonType", "subject", "reportedByDid", "createdAt", "resolvedByActionIds"],
"required": ["id", "reasonType", "subject", "reportedBy", "createdAt", "resolvedByActionIds"],
"properties": {
"id": {"type": "integer"},
"reasonType": {"type": "ref", "ref": "com.atproto.report.reasonType"},
Expand All @@ -16,14 +16,14 @@
"com.atproto.repo.strongRef"
]
},
"reportedByDid": {"type": "string", "format": "did"},
"reportedBy": {"type": "string", "format": "did"},
"createdAt": {"type": "string", "format": "datetime"},
"resolvedByActionIds": {"type": "array", "items": {"type": "integer"}}
}
},
"viewDetail": {
"type": "object",
"required": ["id", "reasonType", "subject", "reportedByDid", "createdAt", "resolvedByActions"],
"required": ["id", "reasonType", "subject", "reportedBy", "createdAt", "resolvedByActions"],
"properties": {
"id": {"type": "integer"},
"reasonType": {"type": "ref", "ref": "com.atproto.report.reasonType"},
Expand All @@ -35,7 +35,7 @@
"com.atproto.admin.record#view"
]
},
"reportedByDid": {"type": "string", "format": "did"},
"reportedBy": {"type": "string", "format": "did"},
"createdAt": {"type": "string", "format": "datetime"},
"resolvedByActions": {"type": "array", "items": {"type": "ref", "ref": "com.atproto.admin.moderationAction#view"}}
}
Expand Down
4 changes: 2 additions & 2 deletions lexicons/com/atproto/repo/describe.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
"description": "Get information about the repo, including the list of collections.",
"parameters": {
"type": "params",
"required": ["user"],
"required": ["repo"],
"properties": {
"user": {"type": "string", "description": "The handle or DID of the repo."}
"repo": {"type": "string", "description": "The handle or DID of the repo."}
}
},
"output": {
Expand Down
4 changes: 2 additions & 2 deletions lexicons/com/atproto/repo/getRecord.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
"description": "Fetch a record.",
"parameters": {
"type": "params",
"required": ["user", "collection", "rkey"],
"required": ["repo", "collection", "rkey"],
"properties": {
"user": {"type": "string", "description": "The handle or DID of the repo."},
"repo": {"type": "string", "description": "The handle or DID of the repo."},
"collection": {"type": "string", "description": "The NSID of the collection."},
"rkey": {"type": "string", "description": "The key of the record."},
"cid": {
Expand Down
4 changes: 2 additions & 2 deletions lexicons/com/atproto/repo/listRecords.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
"description": "List a range of records in a collection.",
"parameters": {
"type": "params",
"required": ["user", "collection"],
"required": ["repo", "collection"],
"properties": {
"user": {"type": "string", "description": "The handle or DID of the repo."},
"repo": {"type": "string", "description": "The handle or DID of the repo."},
"collection": {"type": "string", "description": "The NSID of the record type."},
"limit": {"type": "integer", "minimum": 1, "maximum": 100, "default": 50, "description": "The number of records to return."},
"before": {"type": "string", "description": "A TID to filter the range of records returned."},
Expand Down
4 changes: 2 additions & 2 deletions lexicons/com/atproto/report/create.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["id", "reasonType", "subject", "reportedByDid", "createdAt"],
"required": ["id", "reasonType", "subject", "reportedBy", "createdAt"],
"properties": {
"id": {"type": "integer"},
"reasonType": {"type": "ref", "ref": "com.atproto.report.reasonType"},
Expand All @@ -39,7 +39,7 @@
"com.atproto.repo.strongRef"
]
},
"reportedByDid": {"type": "string", "format": "did"},
"reportedBy": {"type": "string", "format": "did"},
"createdAt": {"type": "string", "format": "datetime"}
}
}
Expand Down
Loading