8000 ❇️ Ozone user agent by foysalit · Pull Request #3991 · bluesky-social/atproto · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

❇️ Ozone user agent #3991

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
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
21 changes: 19 additions & 2 deletions lexicons/tools/ozone/moderation/defs.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@
"createdBy": { "type": "string", "format": "did" },
"createdAt": { "type": "string", "format": "datetime" },
"creatorHandle": { "type": "string" },
"subjectHandle": { "type": "string" }
"subjectHandle": { "type": "string" },
"userAgent": { "type": "ref", "ref": "#userAgent" }
}
},
"modEventViewDetail": {
Expand Down Expand Up @@ -103,7 +104,8 @@
"items": { "type": "ref", "ref": "#blobView" }
},
"createdBy": { "type": "string", "format": "did" },
"createdAt": { "type": "string", "format": "datetime" }
"createdAt": { "type": "string", "format": "datetime" },
"userAgent": { "type": "ref", "ref": "#userAgent" }
}
},
"subjectStatusView": {
Expand Down Expand Up @@ -894,6 +896,21 @@
"description": "The total number of records labeled as a result of the user's reports."
}
}
},
"userAgent": {
"type": "object",
"description": "User agent information for tracing the source of the action",
"required": ["name"],
"properties": {
"name": {
"type": "string",
"description": "Name/identifier of the source (e.g., 'automod', 'ozone/workspace')"
},
Comment on lines +905 to +908
Copy link
Collaborator

Choose a reason for hiding this comment

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

I assume also using an actual user-agent string (in this sense) would also be welcome.

"extra": {
Copy link
Collaborator

Choose a reason for hiding this comment

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

extra works for me, though I also wonder if something more neutral about the info's "extra-ness" like details could also be good.

"type": "unknown",
"description": "Additional arbitrary metadata about the source"
}
}
}
}
}
20 changes: 17 additions & 3 deletions lexicons/tools/ozone/moderation/emitEvent.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,19 @@
},
"subjectBlobCids": {
"type": "array",
"items": { "type": "string", "format": "cid" }
"items": {
"type": "string",
"format": "cid"
}
},
"createdBy": { "type": "string", "format": "did" }
"createdBy": {
"type": "string",
"format": "did"
},
"userAgent": {
"type": "ref",
"ref": "tools.ozone.moderation.defs 6D4E #userAgent"
}
Comment on lines +56 to +59
Copy link
Collaborator

Choose a reason for hiding this comment

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

My only confusion about this kind of usage is that there is also the user-agent header which will be present in these requests.

}
}
},
Expand All @@ -57,7 +67,11 @@
"ref": "tools.ozone.moderation.defs#modEventView"
}
},
"errors": [{ "name": "SubjectHasAction" }]
"errors": [
{
"name": "SubjectHasAction"
}
]
}
}
}
7 changes: 7 additions & 0 deletions lexicons/tools/ozone/moderation/queryEvents.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,13 @@
"description": "If specified, only events where the action policies match any of the given policies are returned"
}
},
"userAgent": {
"type": "array",
"items": {
"type": "string"
},
"description": "If specified, only events where the userAgent name matches any of the given values are returned"
},
"cursor": {
"type": "string"
}
Expand Down
18 changes: 9 additions & 9 deletions packages/api/src/client/index.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

123 changes: 80 additions & 43 deletions packages/api/src/client/lexicons.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions packages/api/src/client/types/tools/ozone/moderation/defs.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
0