atproto/packages/ozone/tests/__snapshots__/get-subjects.test.ts.snap
Foysal Ahamed ac6b604e7a
🐛 Pass auth headers when fetching profiles for ozone subjects (#3683)
* 🐛 Pass auth headers when fetching profiles for ozone subjects

*  Update snapshot
2025-03-27 17:07:05 -04:00

518 lines
15 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`admin get multiple subjects with all relevant details gets multiple subjects with records 1`] = `
Array [
Object {
"profile": Object {
"$type": "app.bsky.actor.defs#profileViewDetailed",
"associated": Object {
"feedgens": 0,
"labeler": false,
"lists": 0,
"starterPacks": 0,
},
"avatar": "https://bsky.public.url/img/avatar/plain/user(3)/cids(0)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "its me!",
"did": "user(0)",
"displayName": "ali",
"followersCount": 2,
"followsCount": 3,
"handle": "alice.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [
Object {
"cid": "cids(1)",
"cts": "1970-01-01T00:00:00.000Z",
"src": "user(0)",
"uri": "record(0)",
"val": "self-label-a",
},
Object {
"cid": "cids(1)",
"cts": "1970-01-01T00:00:00.000Z",
"src": "user(0)",
"uri": "record(0)",
"val": "self-label-b",
},
],
"postsCount": 4,
"viewer": Object {
"blockedBy": false,
"muted": false,
},
},
"repo": Object {
"did": "user(0)",
"email": "alice@test.com",
"handle": "alice.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"invites": Array [],
"invitesDisabled": false,
"labels": Array [
Object {
"cts": "1970-01-01T00:00:00.000Z",
"sig": Object {
"$bytes": "sig(0)",
},
"src": "user(2)",
"uri": "user(0)",
"val": "!takedown",
"ver": 1,
},
],
"moderation": Object {
"subjectStatus": Object {
"accountStats": Object {
"$type": "tools.ozone.moderation.defs#accountStats",
"appealCount": 0,
"escalateCount": 0,
"reportCount": 1,
"suspendCount": 0,
"takedownCount": 1,
},
"createdAt": "1970-01-01T00:00:00.000Z",
"hosting": Object {
"$type": "tools.ozone.moderation.defs#accountHosting",
"status": "unknown",
},
"id": 3,
"lastReportedAt": "1970-01-01T00:00:00.000Z",
"lastReviewedAt": "1970-01-01T00:00:00.000Z",
"lastReviewedBy": "user(1)",
"priorityScore": 0,
"recordsStats": Object {
"$type": "tools.ozone.moderation.defs#recordsStats",
"appealedCount": 0,
"escalatedCount": 0,
"pendingCount": 1,
"processedCount": 0,
"reportedCount": 1,
"subjectCount": 1,
"takendownCount": 0,
"totalReports": 1,
},
"reviewState": "tools.ozone.moderation.defs#reviewClosed",
"subject": Object {
"$type": "com.atproto.admin.defs#repoRef",
"did": "user(0)",
},
"subjectBlobCids": Array [],
"subjectRepoHandle": "alice.test",
"tags": Array [
"report:other",
"lang:und",
],
"takendown": true,
"updatedAt": "1970-01-01T00:00:00.000Z",
},
},
"relatedRecords": Array [
Object {
"$type": "app.bsky.actor.profile",
"avatar": Object {
"$type": "blob",
"mimeType": "image/jpeg",
"ref": Object {
"$link": "cids(0)",
},
"size": 3976,
},
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "its me!",
"displayName": "ali",
"labels": Object {
"$type": "com.atproto.label.defs#selfLabels",
"values": Array [
Object {
"val": "self-label-a",
},
Object {
"val": "self-label-b",
},
],
},
},
],
},
"status": Object {
"accountStats": Object {
"$type": "tools.ozone.moderation.defs#accountStats",
"appealCount": 0,
"escalateCount": 0,
"reportCount": 1,
"suspendCount": 0,
"takedownCount": 1,
},
"createdAt": "1970-01-01T00:00:00.000Z",
"hosting": Object {
"$type": "tools.ozone.moderation.defs#accountHosting",
"status": "unknown",
},
"id": 3,
"lastReportedAt": "1970-01-01T00:00:00.000Z",
"lastReviewedAt": "1970-01-01T00:00:00.000Z",
"lastReviewedBy": "user(1)",
"priorityScore": 0,
"recordsStats": Object {
"$type": "tools.ozone.moderation.defs#recordsStats",
"appealedCount": 0,
"escalatedCount": 0,
"pendingCount": 1,
"processedCount": 0,
"reportedCount": 1,
"subjectCount": 1,
"takendownCount": 0,
"totalReports": 1,
},
"reviewState": "tools.ozone.moderation.defs#reviewClosed",
"subject": Object {
"$type": "com.atproto.admin.defs#repoRef",
"did": "user(0)",
},
"subjectBlobCids": Array [],
"subjectRepoHandle": "alice.test",
"tags": Array [
"report:other",
"lang:und",
],
"takendown": true,
"updatedAt": "1970-01-01T00:00:00.000Z",
},
"subject": "user(0)",
"type": "account",
},
Object {
"profile": Object {
"$type": "app.bsky.actor.defs#profileViewDetailed",
"associated": Object {
"feedgens": 0,
"labeler": false,
"lists": 0,
"starterPacks": 0,
},
"avatar": "https://bsky.public.url/img/avatar/plain/user(3)/cids(0)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "its me!",
"did": "user(0)",
"displayName": "ali",
"followersCount": 2,
"followsCount": 3,
"handle": "alice.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [
Object {
"cid": "cids(1)",
"cts": "1970-01-01T00:00:00.000Z",
"src": "user(0)",
"uri": "record(0)",
"val": "self-label-a",
},
Object {
"cid": "cids(1)",
"cts": "1970-01-01T00:00:00.000Z",
"src": "user(0)",
"uri": "record(0)",
"val": "self-label-b",
},
],
"postsCount": 4,
"viewer": Object {
"blockedBy": false,
"muted": false,
},
},
"record": Object {
"blobCids": Array [],
"blobs": Array [],
"cid": "cids(2)",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [
Object {
"cid": "cids(2)",
"cts": "1970-01-01T00:00:00.000Z",
"src": "user(0)",
"uri": "record(1)",
"val": "self-label",
},
],
"moderation": Object {
"subjectStatus": Object {
"accountStats": Object {
"$type": "tools.ozone.moderation.defs#accountStats",
"appealCount": 0,
"escalateCount": 0,
"reportCount": 1,
"suspendCount": 0,
"takedownCount": 1,
},
"createdAt": "1970-01-01T00:00:00.000Z",
"hosting": Object {
"$type": "tools.ozone.moderation.defs#recordHosting",
"status": "unknown",
},
"id": 1,
"lastReportedAt": "1970-01-01T00:00:00.000Z",
"priorityScore": 0,
"recordsStats": Object {
"$type": "tools.ozone.moderation.defs#recordsStats",
"appealedCount": 0,
"escalatedCount": 0,
"pendingCount": 1,
"processedCount": 0,
"reportedCount": 1,
"subjectCount": 1,
"takendownCount": 0,
"totalReports": 1,
},
"reviewState": "tools.ozone.moderation.defs#reviewOpen",
"subject": Object {
"$type": "com.atproto.repo.strongRef",
"cid": "cids(2)",
"uri": "record(1)",
},
"subjectBlobCids": Array [],
"subjectRepoHandle": "alice.test",
"tags": Array [
"report:spam",
"lang:en",
],
"takendown": false,
"updatedAt": "1970-01-01T00:00:00.000Z",
},
},
"repo": Object {
"did": "user(0)",
"handle": "alice.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"moderation": Object {
"subjectStatus": Object {
"accountStats": Object {
"$type": "tools.ozone.moderation.defs#accountStats",
"appealCount": 0,
"escalateCount": 0,
"reportCount": 1,
"suspendCount": 0,
"takedownCount": 1,
},
"createdAt": "1970-01-01T00:00:00.000Z",
"hosting": Object {
"$type": "tools.ozone.moderation.defs#accountHosting",
"status": "unknown",
},
"id": 3,
"lastReportedAt": "1970-01-01T00:00:00.000Z",
"lastReviewedAt": "1970-01-01T00:00:00.000Z",
"lastReviewedBy": "user(1)",
"priorityScore": 0,
"recordsStats": Object {
"$type": "tools.ozone.moderation.defs#recordsStats",
"appealedCount": 0,
"escalatedCount": 0,
"pendingCount": 1,
"processedCount": 0,
"reportedCount": 1,
"subjectCount": 1,
"takendownCount": 0,
"totalReports": 1,
},
"reviewState": "tools.ozone.moderation.defs#reviewClosed",
"subject": Object {
"$type": "com.atproto.admin.defs#repoRef",
"did": "user(0)",
},
"subjectBlobCids": Array [],
"subjectRepoHandle": "alice.test",
"tags": Array [
"report:other",
"lang:und",
],
"takendown": true,
"updatedAt": "1970-01-01T00:00:00.000Z",
},
},
"relatedRecords": Array [
Object {
"$type": "app.bsky.actor.profile",
"avatar": Object {
"$type": "blob",
"mimeType": "image/jpeg",
"ref": Object {
"$link": "cids(0)",
},
"size": 3976,
},
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "its me!",
"displayName": "ali",
"labels": Object {
"$type": "com.atproto.label.defs#selfLabels",
"values": Array [
Object {
"val": "self-label-a",
},
Object {
"val": "self-label-b",
},
],
},
},
],
},
"uri": "record(1)",
"value": Object {
"$type": "app.bsky.feed.post",
"createdAt": "1970-01-01T00:00:00.000Z",
"labels": Object {
"$type": "com.atproto.label.defs#selfLabels",
"values": Array [
Object {
"val": "self-label",
},
],
},
"text": "hey there",
},
},
"repo": Object {
"did": "user(0)",
"email": "alice@test.com",
"handle": "alice.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"invites": Array [],
"invitesDisabled": false,
"labels": Array [
Object {
"cts": "1970-01-01T00:00:00.000Z",
"sig": Object {
"$bytes": "sig(0)",
},
"src": "user(2)",
"uri": "user(0)",
"val": "!takedown",
"ver": 1,
},
],
"moderation": Object {
"subjectStatus": Object {
"accountStats": Object {
"$type": "tools.ozone.moderation.defs#accountStats",
"appealCount": 0,
"escalateCount": 0,
"reportCount": 1,
"suspendCount": 0,
"takedownCount": 1,
},
"createdAt": "1970-01-01T00:00:00.000Z",
"hosting": Object {
"$type": "tools.ozone.moderation.defs#accountHosting",
"status": "unknown",
},
"id": 3,
"lastReportedAt": "1970-01-01T00:00:00.000Z",
"lastReviewedAt": "1970-01-01T00:00:00.000Z",
"lastReviewedBy": "user(1)",
"priorityScore": 0,
"recordsStats": Object {
"$type": "tools.ozone.moderation.defs#recordsStats",
"appealedCount": 0,
"escalatedCount": 0,
"pendingCount": 1,
"processedCount": 0,
"reportedCount": 1,
"subjectCount": 1,
"takendownCount": 0,
"totalReports": 1,
},
"reviewState": "tools.ozone.moderation.defs#reviewClosed",
"subject": Object {
"$type": "com.atproto.admin.defs#repoRef",
"did": "user(0)",
},
"subjectBlobCids": Array [],
"subjectRepoHandle": "alice.test",
"tags": Array [
"report:other",
"lang:und",
],
"takendown": true,
"updatedAt": "1970-01-01T00:00:00.000Z",
},
},
"relatedRecords": Array [
Object {
"$type": "app.bsky.actor.profile",
"avatar": Object {
"$type": "blob",
"mimeType": "image/jpeg",
"ref": Object {
"$link": "cids(0)",
},
"size": 3976,
},
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "its me!",
"displayName": "ali",
"labels": Object {
"$type": "com.atproto.label.defs#selfLabels",
"values": Array [
Object {
"val": "self-label-a",
},
Object {
"val": "self-label-b",
},
],
},
},
],
},
"status": Object {
"accountStats": Object {
"$type": "tools.ozone.moderation.defs#accountStats",
"appealCount": 0,
"escalateCount": 0,
"reportCount": 1,
"suspendCount": 0,
"takedownCount": 1,
},
"createdAt": "1970-01-01T00:00:00.000Z",
"hosting": Object {
"$type": "tools.ozone.moderation.defs#recordHosting",
"status": "unknown",
},
"id": 1,
"lastReportedAt": "1970-01-01T00:00:00.000Z",
"priorityScore": 0,
"recordsStats": Object {
"$type": "tools.ozone.moderation.defs#recordsStats",
"appealedCount": 0,
"escalatedCount": 0,
"pendingCount": 1,
"processedCount": 0,
"reportedCount": 1,
"subjectCount": 1,
"takendownCount": 0,
"totalReports": 1,
},
"reviewState": "tools.ozone.moderation.defs#reviewOpen",
"subject": Object {
"$type": "com.atproto.repo.strongRef",
"cid": "cids(2)",
"uri": "record(1)",
},
"subjectBlobCids": Array [],
"subjectRepoHandle": "alice.test",
"tags": Array [
"report:spam",
"lang:en",
],
"takendown": false,
"updatedAt": "1970-01-01T00:00:00.000Z",
},
"subject": "record(1)",
"type": "record",
},
]
`;