@atproto/pds 0.5.6 → 0.5.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/background.d.ts +12 -6
  3. package/dist/background.d.ts.map +1 -1
  4. package/dist/background.js +32 -13
  5. package/dist/background.js.map +1 -1
  6. package/dist/context.d.ts.map +1 -1
  7. package/dist/context.js +4 -31
  8. package/dist/context.js.map +1 -1
  9. package/dist/index.d.ts +1 -0
  10. package/dist/index.d.ts.map +1 -1
  11. package/dist/index.js +33 -11
  12. package/dist/index.js.map +1 -1
  13. package/dist/lexicons/app/bsky/notification/defs.defs.d.ts +5 -0
  14. package/dist/lexicons/app/bsky/notification/defs.defs.d.ts.map +1 -1
  15. package/dist/lexicons/app/bsky/notification/defs.defs.js +1 -0
  16. package/dist/lexicons/app/bsky/notification/defs.defs.js.map +1 -1
  17. package/dist/lexicons/chat/bsky/notification/defs.d.ts +2 -0
  18. package/dist/lexicons/chat/bsky/notification/defs.d.ts.map +1 -0
  19. package/dist/lexicons/chat/bsky/notification/defs.defs.d.ts +20 -0
  20. package/dist/lexicons/chat/bsky/notification/defs.defs.d.ts.map +1 -0
  21. package/dist/lexicons/chat/bsky/notification/defs.defs.js +19 -0
  22. package/dist/lexicons/chat/bsky/notification/defs.defs.js.map +1 -0
  23. package/dist/lexicons/chat/bsky/notification/defs.js +5 -0
  24. package/dist/lexicons/chat/bsky/notification/defs.js.map +1 -0
  25. package/dist/lexicons/chat/bsky/notification/getPreferences.d.ts +3 -0
  26. package/dist/lexicons/chat/bsky/notification/getPreferences.d.ts.map +1 -0
  27. package/dist/lexicons/chat/bsky/notification/getPreferences.defs.d.ts +18 -0
  28. package/dist/lexicons/chat/bsky/notification/getPreferences.defs.d.ts.map +1 -0
  29. package/dist/lexicons/chat/bsky/notification/getPreferences.defs.js +16 -0
  30. package/dist/lexicons/chat/bsky/notification/getPreferences.defs.js.map +1 -0
  31. package/dist/lexicons/chat/bsky/notification/getPreferences.js +6 -0
  32. package/dist/lexicons/chat/bsky/notification/getPreferences.js.map +1 -0
  33. package/dist/lexicons/chat/bsky/notification/putPreferences.d.ts +3 -0
  34. package/dist/lexicons/chat/bsky/notification/putPreferences.d.ts.map +1 -0
  35. package/dist/lexicons/chat/bsky/notification/putPreferences.defs.d.ts +27 -0
  36. package/dist/lexicons/chat/bsky/notification/putPreferences.defs.d.ts.map +1 -0
  37. package/dist/lexicons/chat/bsky/notification/putPreferences.defs.js +22 -0
  38. package/dist/lexicons/chat/bsky/notification/putPreferences.defs.js.map +1 -0
  39. package/dist/lexicons/chat/bsky/notification/putPreferences.js +6 -0
  40. package/dist/lexicons/chat/bsky/notification/putPreferences.js.map +1 -0
  41. package/dist/lexicons/chat/bsky/notification.d.ts +4 -0
  42. package/dist/lexicons/chat/bsky/notification.d.ts.map +1 -0
  43. package/dist/lexicons/chat/bsky/notification.js +7 -0
  44. package/dist/lexicons/chat/bsky/notification.js.map +1 -0
  45. package/dist/lexicons/chat/bsky.d.ts +1 -0
  46. package/dist/lexicons/chat/bsky.d.ts.map +1 -1
  47. package/dist/lexicons/chat/bsky.js +1 -0
  48. package/dist/lexicons/chat/bsky.js.map +1 -1
  49. package/dist/lexicons/tools/ozone/report/defs.defs.d.ts +4 -0
  50. package/dist/lexicons/tools/ozone/report/defs.defs.d.ts.map +1 -1
  51. package/dist/lexicons/tools/ozone/report/defs.defs.js +2 -0
  52. package/dist/lexicons/tools/ozone/report/defs.defs.js.map +1 -1
  53. package/dist/lexicons/tools/ozone/report/queryActivities.d.ts +3 -0
  54. package/dist/lexicons/tools/ozone/report/queryActivities.d.ts.map +1 -0
  55. package/dist/lexicons/tools/ozone/report/queryActivities.defs.d.ts +42 -0
  56. package/dist/lexicons/tools/ozone/report/queryActivities.defs.d.ts.map +1 -0
  57. package/dist/lexicons/tools/ozone/report/queryActivities.defs.js +31 -0
  58. package/dist/lexicons/tools/ozone/report/queryActivities.defs.js.map +1 -0
  59. package/dist/lexicons/tools/ozone/report/queryActivities.js +6 -0
  60. package/dist/lexicons/tools/ozone/report/queryActivities.js.map +1 -0
  61. package/dist/lexicons/tools/ozone/report.d.ts +1 -0
  62. package/dist/lexicons/tools/ozone/report.d.ts.map +1 -1
  63. package/dist/lexicons/tools/ozone/report.js +1 -0
  64. package/dist/lexicons/tools/ozone/report.js.map +1 -1
  65. package/dist/pipethrough.d.ts +3 -0
  66. package/dist/pipethrough.d.ts.map +1 -1
  67. package/dist/pipethrough.js +32 -0
  68. package/dist/pipethrough.js.map +1 -1
  69. package/package.json +11 -11
  70. package/src/background.ts +49 -18
  71. package/src/context.ts +4 -37
  72. package/src/index.ts +31 -13
  73. package/src/pipethrough.ts +38 -1
  74. package/tests/_util.ts +8 -25
  75. package/tests/account-deactivation.test.ts +1 -1
  76. package/tests/account-deletion.test.ts +1 -1
  77. package/tests/account-migration.test.ts +2 -2
  78. package/tests/account-status.test.ts +1 -1
  79. package/tests/account.test.ts +1 -1
  80. package/tests/app-passwords.test.ts +1 -1
  81. package/tests/auth.test.ts +1 -1
  82. package/tests/blob-deletes.test.ts +1 -1
  83. package/tests/create-post.test.ts +1 -1
  84. package/tests/crud.test.ts +1 -1
  85. package/tests/db.test.ts +1 -1
  86. package/tests/email-confirmation.test.ts +1 -1
  87. package/tests/file-uploads.test.ts +2 -2
  88. package/tests/get-service-auth.test.ts +1 -1
  89. package/tests/handles.test.ts +1 -1
  90. package/tests/invite-codes.test.ts +1 -1
  91. package/tests/invites-admin.test.ts +1 -1
  92. package/tests/moderation.test.ts +1 -1
  93. package/tests/moderator-auth.test.ts +1 -1
  94. package/tests/plc-operations.test.ts +1 -1
  95. package/tests/preferences.test.ts +1 -1
  96. package/tests/proxied/admin.test.ts +1 -1
  97. package/tests/proxied/feedgen.test.ts +1 -1
  98. package/tests/proxied/notif.test.ts +6 -13
  99. package/tests/proxied/procedures.test.ts +1 -1
  100. package/tests/proxied/proxy-catchall.test.ts +9 -8
  101. package/tests/proxied/proxy-header.test.ts +12 -8
  102. package/tests/proxied/proxy-oauth-aud.test.ts +17 -10
  103. package/tests/proxied/read-after-write.test.ts +4 -5
  104. package/tests/proxied/views.test.ts +1 -1
  105. package/tests/races.test.ts +1 -1
  106. package/tests/rate-limits.test.ts +1 -1
  107. package/tests/recovery.test.ts +1 -1
  108. package/tests/seeds/basic.ts +2 -2
  109. package/tests/seeds/users.ts +4 -1
  110. package/tests/sequencer.test.ts +1 -1
  111. package/tests/server.test.ts +9 -12
  112. package/tests/sync/invertible-ops.test.ts +1 -1
  113. package/tests/sync/list.test.ts +1 -1
  114. package/tests/sync/subscribe-repos.test.ts +1 -1
  115. package/tests/sync/sync.test.ts +1 -1
  116. package/tests/takedown-appeal.test.ts +1 -1
  117. package/tsconfig.build.tsbuildinfo +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"defs.defs.js","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/report/defs.defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAChC,OAAO,KAAK,QAAQ,MAAM,sBAAsB,CAAA;AAChD,OAAO,KAAK,cAAc,MAAM,4BAA4B,CAAA;AAC5D,OAAO,KAAK,iBAAiB,MAAM,8CAA8C,CAAA;AACjF,OAAO,KAAK,SAAS,MAAM,uBAAuB,CAAA;AAElD,MAAM,KAAK,GAAG,yBAAyB,CAAA;AAEvC,OAAO,EAAE,KAAK,EAAE,CAAA;AA+ChB,MAAM,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,EA2CrC,CAAA;AAEJ,OAAO,EAAE,UAAU,EAAE,CAAA;AAOrB,kDAAkD;AAClD,MAAM,YAAY,GAAG,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,EAAE,cAAc,CAAC,CAAA;AAEjE,OAAO,EAAE,YAAY,EAAE,CAAA;AAOvB,6CAA6C;AAC7C,MAAM,WAAW,GAAG,aA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C;IAC/D,kBAAkB,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;CACxE,CAAC,CACH,CAAA;AAED,OAAO,EAAE,eAAe,EAAE,CAAA;AAmB1B,MAAM,cAAc,GAAG,aAAa,CAAC,CAAC,CAAC,WAAW,CAChD,KAAK,EACL,gBAAgB;AAChB,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IACrB,EAAE,EAAE,aAAa,CAAC,CAAC,CAAC,OAAO,EAAE;IAC7B,GAAG,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;IAC9C,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;IACjC,aAAa,CAAC,CAAC,CAAC,GAAG,CAAkB,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAQ,CAAC,CACrE;IACD,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;IAC7B,aAAa,CAAC,CAAC,CAAC,GAAG,CACjB,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,SAAS,CAAQ,CACnC,CACF;IACD,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,OAAO,EAAE;IACnC,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC;IACvD,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;IAC7B,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,CAC/C;CACF,CAAC,CACH,CAAA;AAED,OAAO,EAAE,cAAc,EAAE,CAAA","sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\nimport * as TeamDefs from '../team/defs.defs.js'\nimport * as ModerationDefs from '../moderation/defs.defs.js'\nimport * as ModerationDefs$$0 from '../../../com/atproto/moderation/defs.defs.js'\nimport * as QueueDefs from '../queue/defs.defs.js'\n\nconst $nsid = 'tools.ozone.report.defs'\n\nexport { $nsid }\n\ntype ReasonType =\n | 'tools.ozone.report.defs#reasonAppeal'\n | 'tools.ozone.report.defs#reasonOther'\n | 'tools.ozone.report.defs#reasonViolenceAnimal'\n | 'tools.ozone.report.defs#reasonViolenceThreats'\n | 'tools.ozone.report.defs#reasonViolenceGraphicContent'\n | 'tools.ozone.report.defs#reasonViolenceGlorification'\n | 'tools.ozone.report.defs#reasonViolenceExtremistContent'\n | 'tools.ozone.report.defs#reasonViolenceTrafficking'\n | 'tools.ozone.report.defs#reasonViolenceOther'\n | 'tools.ozone.report.defs#reasonSexualAbuseContent'\n | 'tools.ozone.report.defs#reasonSexualNCII'\n | 'tools.ozone.report.defs#reasonSexualDeepfake'\n | 'tools.ozone.report.defs#reasonSexualAnimal'\n | 'tools.ozone.report.defs#reasonSexualUnlabeled'\n | 'tools.ozone.report.defs#reasonSexualOther'\n | 'tools.ozone.report.defs#reasonChildSafetyCSAM'\n | 'tools.ozone.report.defs#reasonChildSafetyGroom'\n | 'tools.ozone.report.defs#reasonChildSafetyPrivacy'\n | 'tools.ozone.report.defs#reasonChildSafetyHarassment'\n | 'tools.ozone.report.defs#reasonChildSafetyOther'\n | 'tools.ozone.report.defs#reasonHarassmentTroll'\n | 'tools.ozone.report.defs#reasonHarassmentTargeted'\n | 'tools.ozone.report.defs#reasonHarassmentHateSpeech'\n | 'tools.ozone.report.defs#reasonHarassmentDoxxing'\n | 'tools.ozone.report.defs#reasonHarassmentOther'\n | 'tools.ozone.report.defs#reasonMisleadingBot'\n | 'tools.ozone.report.defs#reasonMisleadingImpersonation'\n | 'tools.ozone.report.defs#reasonMisleadingSpam'\n | 'tools.ozone.report.defs#reasonMisleadingScam'\n | 'tools.ozone.report.defs#reasonMisleadingElections'\n | 'tools.ozone.report.defs#reasonMisleadingOther'\n | 'tools.ozone.report.defs#reasonRuleSiteSecurity'\n | 'tools.ozone.report.defs#reasonRuleProhibitedSales'\n | 'tools.ozone.report.defs#reasonRuleBanEvasion'\n | 'tools.ozone.report.defs#reasonRuleOther'\n | 'tools.ozone.report.defs#reasonSelfHarmContent'\n | 'tools.ozone.report.defs#reasonSelfHarmED'\n | 'tools.ozone.report.defs#reasonSelfHarmStunts'\n | 'tools.ozone.report.defs#reasonSelfHarmSubstances'\n | 'tools.ozone.report.defs#reasonSelfHarmOther'\n | l.UnknownString\n\nexport type { ReasonType }\n\nconst reasonType = /*#__PURE__*/ l.string<{\n knownValues: [\n 'tools.ozone.report.defs#reasonAppeal',\n 'tools.ozone.report.defs#reasonOther',\n 'tools.ozone.report.defs#reasonViolenceAnimal',\n 'tools.ozone.report.defs#reasonViolenceThreats',\n 'tools.ozone.report.defs#reasonViolenceGraphicContent',\n 'tools.ozone.report.defs#reasonViolenceGlorification',\n 'tools.ozone.report.defs#reasonViolenceExtremistContent',\n 'tools.ozone.report.defs#reasonViolenceTrafficking',\n 'tools.ozone.report.defs#reasonViolenceOther',\n 'tools.ozone.report.defs#reasonSexualAbuseContent',\n 'tools.ozone.report.defs#reasonSexualNCII',\n 'tools.ozone.report.defs#reasonSexualDeepfake',\n 'tools.ozone.report.defs#reasonSexualAnimal',\n 'tools.ozone.report.defs#reasonSexualUnlabeled',\n 'tools.ozone.report.defs#reasonSexualOther',\n 'tools.ozone.report.defs#reasonChildSafetyCSAM',\n 'tools.ozone.report.defs#reasonChildSafetyGroom',\n 'tools.ozone.report.defs#reasonChildSafetyPrivacy',\n 'tools.ozone.report.defs#reasonChildSafetyHarassment',\n 'tools.ozone.report.defs#reasonChildSafetyOther',\n 'tools.ozone.report.defs#reasonHarassmentTroll',\n 'tools.ozone.report.defs#reasonHarassmentTargeted',\n 'tools.ozone.report.defs#reasonHarassmentHateSpeech',\n 'tools.ozone.report.defs#reasonHarassmentDoxxing',\n 'tools.ozone.report.defs#reasonHarassmentOther',\n 'tools.ozone.report.defs#reasonMisleadingBot',\n 'tools.ozone.report.defs#reasonMisleadingImpersonation',\n 'tools.ozone.report.defs#reasonMisleadingSpam',\n 'tools.ozone.report.defs#reasonMisleadingScam',\n 'tools.ozone.report.defs#reasonMisleadingElections',\n 'tools.ozone.report.defs#reasonMisleadingOther',\n 'tools.ozone.report.defs#reasonRuleSiteSecurity',\n 'tools.ozone.report.defs#reasonRuleProhibitedSales',\n 'tools.ozone.report.defs#reasonRuleBanEvasion',\n 'tools.ozone.report.defs#reasonRuleOther',\n 'tools.ozone.report.defs#reasonSelfHarmContent',\n 'tools.ozone.report.defs#reasonSelfHarmED',\n 'tools.ozone.report.defs#reasonSelfHarmStunts',\n 'tools.ozone.report.defs#reasonSelfHarmSubstances',\n 'tools.ozone.report.defs#reasonSelfHarmOther',\n ]\n}>()\n\nexport { reasonType }\n\n/** Appeal a previously taken moderation action */\ntype ReasonAppeal = 'tools.ozone.report.defs#reasonAppeal'\n\nexport type { ReasonAppeal }\n\n/** Appeal a previously taken moderation action */\nconst reasonAppeal = /*#__PURE__*/ l.token($nsid, 'reasonAppeal')\n\nexport { reasonAppeal }\n\n/** An issue not included in these options */\ntype ReasonOther = 'tools.ozone.report.defs#reasonOther'\n\nexport type { ReasonOther }\n\n/** An issue not included in these options */\nconst reasonOther = /*#__PURE__*/ l.token($nsid, 'reasonOther')\n\nexport { reasonOther }\n\n/** Animal welfare violations */\ntype ReasonViolenceAnimal = 'tools.ozone.report.defs#reasonViolenceAnimal'\n\nexport type { ReasonViolenceAnimal }\n\n/** Animal welfare violations */\nconst reasonViolenceAnimal = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonViolenceAnimal',\n)\n\nexport { reasonViolenceAnimal }\n\n/** Threats or incitement */\ntype ReasonViolenceThreats = 'tools.ozone.report.defs#reasonViolenceThreats'\n\nexport type { ReasonViolenceThreats }\n\n/** Threats or incitement */\nconst reasonViolenceThreats = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonViolenceThreats',\n)\n\nexport { reasonViolenceThreats }\n\n/** Graphic violent content */\ntype ReasonViolenceGraphicContent =\n 'tools.ozone.report.defs#reasonViolenceGraphicContent'\n\nexport type { ReasonViolenceGraphicContent }\n\n/** Graphic violent content */\nconst reasonViolenceGraphicContent = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonViolenceGraphicContent',\n)\n\nexport { reasonViolenceGraphicContent }\n\n/** Glorification of violence */\ntype ReasonViolenceGlorification =\n 'tools.ozone.report.defs#reasonViolenceGlorification'\n\nexport type { ReasonViolenceGlorification }\n\n/** Glorification of violence */\nconst reasonViolenceGlorification = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonViolenceGlorification',\n)\n\nexport { reasonViolenceGlorification }\n\n/** Extremist content. These reports will be sent only be sent to the application's Moderation Authority. */\ntype ReasonViolenceExtremistContent =\n 'tools.ozone.report.defs#reasonViolenceExtremistContent'\n\nexport type { ReasonViolenceExtremistContent }\n\n/** Extremist content. These reports will be sent only be sent to the application's Moderation Authority. */\nconst reasonViolenceExtremistContent = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonViolenceExtremistContent',\n)\n\nexport { reasonViolenceExtremistContent }\n\n/** Human trafficking */\ntype ReasonViolenceTrafficking =\n 'tools.ozone.report.defs#reasonViolenceTrafficking'\n\nexport type { ReasonViolenceTrafficking }\n\n/** Human trafficking */\nconst reasonViolenceTrafficking = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonViolenceTrafficking',\n)\n\nexport { reasonViolenceTrafficking }\n\n/** Other violent content */\ntype ReasonViolenceOther = 'tools.ozone.report.defs#reasonViolenceOther'\n\nexport type { ReasonViolenceOther }\n\n/** Other violent content */\nconst reasonViolenceOther = /*#__PURE__*/ l.token($nsid, 'reasonViolenceOther')\n\nexport { reasonViolenceOther }\n\n/** Adult sexual abuse content */\ntype ReasonSexualAbuseContent =\n 'tools.ozone.report.defs#reasonSexualAbuseContent'\n\nexport type { ReasonSexualAbuseContent }\n\n/** Adult sexual abuse content */\nconst reasonSexualAbuseContent = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonSexualAbuseContent',\n)\n\nexport { reasonSexualAbuseContent }\n\n/** Non-consensual intimate imagery */\ntype ReasonSexualNCII = 'tools.ozone.report.defs#reasonSexualNCII'\n\nexport type { ReasonSexualNCII as ReasonSexualNcii }\n\n/** Non-consensual intimate imagery */\nconst reasonSexualNCII = /*#__PURE__*/ l.token($nsid, 'reasonSexualNCII')\n\nexport { reasonSexualNCII }\n\n/** Deepfake adult content */\ntype ReasonSexualDeepfake = 'tools.ozone.report.defs#reasonSexualDeepfake'\n\nexport type { ReasonSexualDeepfake }\n\n/** Deepfake adult content */\nconst reasonSexualDeepfake = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonSexualDeepfake',\n)\n\nexport { reasonSexualDeepfake }\n\n/** Animal sexual abuse */\ntype ReasonSexualAnimal = 'tools.ozone.report.defs#reasonSexualAnimal'\n\nexport type { ReasonSexualAnimal }\n\n/** Animal sexual abuse */\nconst reasonSexualAnimal = /*#__PURE__*/ l.token($nsid, 'reasonSexualAnimal')\n\nexport { reasonSexualAnimal }\n\n/** Unlabelled adult content */\ntype ReasonSexualUnlabeled = 'tools.ozone.report.defs#reasonSexualUnlabeled'\n\nexport type { ReasonSexualUnlabeled }\n\n/** Unlabelled adult content */\nconst reasonSexualUnlabeled = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonSexualUnlabeled',\n)\n\nexport { reasonSexualUnlabeled }\n\n/** Other sexual violence content */\ntype ReasonSexualOther = 'tools.ozone.report.defs#reasonSexualOther'\n\nexport type { ReasonSexualOther }\n\n/** Other sexual violence content */\nconst reasonSexualOther = /*#__PURE__*/ l.token($nsid, 'reasonSexualOther')\n\nexport { reasonSexualOther }\n\n/** Child sexual abuse material (CSAM). These reports will be sent only be sent to the application's Moderation Authority. */\ntype ReasonChildSafetyCSAM = 'tools.ozone.report.defs#reasonChildSafetyCSAM'\n\nexport type { ReasonChildSafetyCSAM as ReasonChildSafetyCsam }\n\n/** Child sexual abuse material (CSAM). These reports will be sent only be sent to the application's Moderation Authority. */\nconst reasonChildSafetyCSAM = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonChildSafetyCSAM',\n)\n\nexport { reasonChildSafetyCSAM }\n\n/** Grooming or predatory behavior. These reports will be sent only be sent to the application's Moderation Authority. */\ntype ReasonChildSafetyGroom = 'tools.ozone.report.defs#reasonChildSafetyGroom'\n\nexport type { ReasonChildSafetyGroom }\n\n/** Grooming or predatory behavior. These reports will be sent only be sent to the application's Moderation Authority. */\nconst reasonChildSafetyGroom = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonChildSafetyGroom',\n)\n\nexport { reasonChildSafetyGroom }\n\n/** Privacy violation involving a minor */\ntype ReasonChildSafetyPrivacy =\n 'tools.ozone.report.defs#reasonChildSafetyPrivacy'\n\nexport type { ReasonChildSafetyPrivacy }\n\n/** Privacy violation involving a minor */\nconst reasonChildSafetyPrivacy = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonChildSafetyPrivacy',\n)\n\nexport { reasonChildSafetyPrivacy }\n\n/** Harassment or bullying of minors */\ntype ReasonChildSafetyHarassment =\n 'tools.ozone.report.defs#reasonChildSafetyHarassment'\n\nexport type { ReasonChildSafetyHarassment }\n\n/** Harassment or bullying of minors */\nconst reasonChildSafetyHarassment = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonChildSafetyHarassment',\n)\n\nexport { reasonChildSafetyHarassment }\n\n/** Other child safety. These reports will be sent only be sent to the application's Moderation Authority. */\ntype ReasonChildSafetyOther = 'tools.ozone.report.defs#reasonChildSafetyOther'\n\nexport type { ReasonChildSafetyOther }\n\n/** Other child safety. These reports will be sent only be sent to the application's Moderation Authority. */\nconst reasonChildSafetyOther = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonChildSafetyOther',\n)\n\nexport { reasonChildSafetyOther }\n\n/** Trolling */\ntype ReasonHarassmentTroll = 'tools.ozone.report.defs#reasonHarassmentTroll'\n\nexport type { ReasonHarassmentTroll }\n\n/** Trolling */\nconst reasonHarassmentTroll = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonHarassmentTroll',\n)\n\nexport { reasonHarassmentTroll }\n\n/** Targeted harassment */\ntype ReasonHarassmentTargeted =\n 'tools.ozone.report.defs#reasonHarassmentTargeted'\n\nexport type { ReasonHarassmentTargeted }\n\n/** Targeted harassment */\nconst reasonHarassmentTargeted = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonHarassmentTargeted',\n)\n\nexport { reasonHarassmentTargeted }\n\n/** Hate speech */\ntype ReasonHarassmentHateSpeech =\n 'tools.ozone.report.defs#reasonHarassmentHateSpeech'\n\nexport type { ReasonHarassmentHateSpeech }\n\n/** Hate speech */\nconst reasonHarassmentHateSpeech = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonHarassmentHateSpeech',\n)\n\nexport { reasonHarassmentHateSpeech }\n\n/** Doxxing */\ntype ReasonHarassmentDoxxing = 'tools.ozone.report.defs#reasonHarassmentDoxxing'\n\nexport type { ReasonHarassmentDoxxing }\n\n/** Doxxing */\nconst reasonHarassmentDoxxing = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonHarassmentDoxxing',\n)\n\nexport { reasonHarassmentDoxxing }\n\n/** Other harassing or hateful content */\ntype ReasonHarassmentOther = 'tools.ozone.report.defs#reasonHarassmentOther'\n\nexport type { ReasonHarassmentOther }\n\n/** Other harassing or hateful content */\nconst reasonHarassmentOther = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonHarassmentOther',\n)\n\nexport { reasonHarassmentOther }\n\n/** Fake account or bot */\ntype ReasonMisleadingBot = 'tools.ozone.report.defs#reasonMisleadingBot'\n\nexport type { ReasonMisleadingBot }\n\n/** Fake account or bot */\nconst reasonMisleadingBot = /*#__PURE__*/ l.token($nsid, 'reasonMisleadingBot')\n\nexport { reasonMisleadingBot }\n\n/** Impersonation */\ntype ReasonMisleadingImpersonation =\n 'tools.ozone.report.defs#reasonMisleadingImpersonation'\n\nexport type { ReasonMisleadingImpersonation }\n\n/** Impersonation */\nconst reasonMisleadingImpersonation = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonMisleadingImpersonation',\n)\n\nexport { reasonMisleadingImpersonation }\n\n/** Spam */\ntype ReasonMisleadingSpam = 'tools.ozone.report.defs#reasonMisleadingSpam'\n\nexport type { ReasonMisleadingSpam }\n\n/** Spam */\nconst reasonMisleadingSpam = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonMisleadingSpam',\n)\n\nexport { reasonMisleadingSpam }\n\n/** Scam */\ntype ReasonMisleadingScam = 'tools.ozone.report.defs#reasonMisleadingScam'\n\nexport type { ReasonMisleadingScam }\n\n/** Scam */\nconst reasonMisleadingScam = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonMisleadingScam',\n)\n\nexport { reasonMisleadingScam }\n\n/** False information about elections */\ntype ReasonMisleadingElections =\n 'tools.ozone.report.defs#reasonMisleadingElections'\n\nexport type { ReasonMisleadingElections }\n\n/** False information about elections */\nconst reasonMisleadingElections = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonMisleadingElections',\n)\n\nexport { reasonMisleadingElections }\n\n/** Other misleading content */\ntype ReasonMisleadingOther = 'tools.ozone.report.defs#reasonMisleadingOther'\n\nexport type { ReasonMisleadingOther }\n\n/** Other misleading content */\nconst reasonMisleadingOther = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonMisleadingOther',\n)\n\nexport { reasonMisleadingOther }\n\n/** Hacking or system attacks */\ntype ReasonRuleSiteSecurity = 'tools.ozone.report.defs#reasonRuleSiteSecurity'\n\nexport type { ReasonRuleSiteSecurity }\n\n/** Hacking or system attacks */\nconst reasonRuleSiteSecurity = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonRuleSiteSecurity',\n)\n\nexport { reasonRuleSiteSecurity }\n\n/** Promoting or selling prohibited items or services */\ntype ReasonRuleProhibitedSales =\n 'tools.ozone.report.defs#reasonRuleProhibitedSales'\n\nexport type { ReasonRuleProhibitedSales }\n\n/** Promoting or selling prohibited items or services */\nconst reasonRuleProhibitedSales = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonRuleProhibitedSales',\n)\n\nexport { reasonRuleProhibitedSales }\n\n/** Banned user returning */\ntype ReasonRuleBanEvasion = 'tools.ozone.report.defs#reasonRuleBanEvasion'\n\nexport type { ReasonRuleBanEvasion }\n\n/** Banned user returning */\nconst reasonRuleBanEvasion = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonRuleBanEvasion',\n)\n\nexport { reasonRuleBanEvasion }\n\n/** Other */\ntype ReasonRuleOther = 'tools.ozone.report.defs#reasonRuleOther'\n\nexport type { ReasonRuleOther }\n\n/** Other */\nconst reasonRuleOther = /*#__PURE__*/ l.token($nsid, 'reasonRuleOther')\n\nexport { reasonRuleOther }\n\n/** Content promoting or depicting self-harm */\ntype ReasonSelfHarmContent = 'tools.ozone.report.defs#reasonSelfHarmContent'\n\nexport type { ReasonSelfHarmContent }\n\n/** Content promoting or depicting self-harm */\nconst reasonSelfHarmContent = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonSelfHarmContent',\n)\n\nexport { reasonSelfHarmContent }\n\n/** Eating disorders */\ntype ReasonSelfHarmED = 'tools.ozone.report.defs#reasonSelfHarmED'\n\nexport type { ReasonSelfHarmED as ReasonSelfHarmEd }\n\n/** Eating disorders */\nconst reasonSelfHarmED = /*#__PURE__*/ l.token($nsid, 'reasonSelfHarmED')\n\nexport { reasonSelfHarmED }\n\n/** Dangerous challenges or activities */\ntype ReasonSelfHarmStunts = 'tools.ozone.report.defs#reasonSelfHarmStunts'\n\nexport type { ReasonSelfHarmStunts }\n\n/** Dangerous challenges or activities */\nconst reasonSelfHarmStunts = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonSelfHarmStunts',\n)\n\nexport { reasonSelfHarmStunts }\n\n/** Dangerous substances or drug abuse */\ntype ReasonSelfHarmSubstances =\n 'tools.ozone.report.defs#reasonSelfHarmSubstances'\n\nexport type { ReasonSelfHarmSubstances }\n\n/** Dangerous substances or drug abuse */\nconst reasonSelfHarmSubstances = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonSelfHarmSubstances',\n)\n\nexport { reasonSelfHarmSubstances }\n\n/** Other dangerous content */\ntype ReasonSelfHarmOther = 'tools.ozone.report.defs#reasonSelfHarmOther'\n\nexport type { ReasonSelfHarmOther }\n\n/** Other dangerous content */\nconst reasonSelfHarmOther = /*#__PURE__*/ l.token($nsid, 'reasonSelfHarmOther')\n\nexport { reasonSelfHarmOther }\n\n/** Information about the moderator currently assigned to a report. */\ntype ReportAssignment = {\n $type?: 'tools.ozone.report.defs#reportAssignment'\n\n /**\n * DID of the assigned moderator\n */\n did: l.DidString\n\n /**\n * Full member record of the assigned moderator\n */\n moderator?: TeamDefs.Member\n\n /**\n * When the report was assigned\n */\n assignedAt: l.DatetimeString\n}\n\nexport type { ReportAssignment }\n\n/** Information about the moderator currently assigned to a report. */\nconst reportAssignment = /*#__PURE__*/ l.typedObject<ReportAssignment>(\n $nsid,\n 'reportAssignment',\n /*#__PURE__*/ l.object({\n did: /*#__PURE__*/ l.string({ format: 'did' }),\n moderator: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<TeamDefs.Member>((() => TeamDefs.member) as any),\n ),\n assignedAt: /*#__PURE__*/ l.string({ format: 'datetime' }),\n }),\n)\n\nexport { reportAssignment }\n\ntype ReportView = {\n $type?: 'tools.ozone.report.defs#reportView'\n\n /**\n * Report ID\n */\n id: number\n\n /**\n * ID of the moderation event that created this report\n */\n eventId: number\n\n /**\n * Current status of the report\n */\n status:\n | 'open'\n | 'closed'\n | 'escalated'\n | 'queued'\n | 'assigned'\n | l.UnknownString\n\n /**\n * The subject that was reported with full details\n */\n subject: ModerationDefs.SubjectView\n\n /**\n * Type of report\n */\n reportType: ModerationDefs$$0.ReasonType\n\n /**\n * DID of the user who made the report\n */\n reportedBy: l.DidString\n\n /**\n * Full subject view of the reporter account\n */\n reporter: ModerationDefs.SubjectView\n\n /**\n * Comment provided by the reporter\n */\n comment?: string\n\n /**\n * When the report was created\n */\n createdAt: l.DatetimeString\n\n /**\n * When the report was last updated\n */\n updatedAt?: l.DatetimeString\n\n /**\n * When the report was assigned to its current queue\n */\n queuedAt?: l.DatetimeString\n\n /**\n * Array of moderation event IDs representing actions taken on this report (sorted DESC, most recent first)\n */\n actionEventIds?: number[]\n\n /**\n * Optional: expanded action events\n */\n actions?: ModerationDefs.ModEventView[]\n\n /**\n * Note sent to reporter when report was actioned\n */\n actionNote?: string\n\n /**\n * Current status of the reported subject\n */\n subjectStatus?: ModerationDefs.SubjectStatusView\n\n /**\n * Number of other pending reports on the same subject\n */\n relatedReportCount?: number\n\n /**\n * Information about moderator currently assigned to this report (if any)\n */\n assignment?: ReportAssignment\n\n /**\n * The queue this report is assigned to (if any)\n */\n queue?: QueueDefs.QueueView\n\n /**\n * Whether this report is muted. A report is muted if the reporter was muted or the subject was muted at the time the report was created.\n */\n isMuted?: boolean\n}\n\nexport type { ReportView }\n\nconst reportView = /*#__PURE__*/ l.typedObject<ReportView>(\n $nsid,\n 'reportView',\n /*#__PURE__*/ l.object({\n id: /*#__PURE__*/ l.integer(),\n eventId: /*#__PURE__*/ l.integer(),\n status: /*#__PURE__*/ l.string<{\n knownValues: ['open', 'closed', 'escalated', 'queued', 'assigned']\n }>(),\n subject: /*#__PURE__*/ l.ref<ModerationDefs.SubjectView>(\n (() => ModerationDefs.subjectView) as any,\n ),\n reportType: /*#__PURE__*/ l.ref<ModerationDefs$$0.ReasonType>(\n (() => ModerationDefs$$0.reasonType) as any,\n ),\n reportedBy: /*#__PURE__*/ l.string({ format: 'did' }),\n reporter: /*#__PURE__*/ l.ref<ModerationDefs.SubjectView>(\n (() => ModerationDefs.subjectView) as any,\n ),\n comment: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\n createdAt: /*#__PURE__*/ l.string({ format: 'datetime' }),\n updatedAt: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ format: 'datetime' }),\n ),\n queuedAt: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ format: 'datetime' }),\n ),\n actionEventIds: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(/*#__PURE__*/ l.integer()),\n ),\n actions: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(\n /*#__PURE__*/ l.ref<ModerationDefs.ModEventView>(\n (() => ModerationDefs.modEventView) as any,\n ),\n ),\n ),\n actionNote: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\n subjectStatus: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<ModerationDefs.SubjectStatusView>(\n (() => ModerationDefs.subjectStatusView) as any,\n ),\n ),\n relatedReportCount: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\n assignment: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<ReportAssignment>((() => reportAssignment) as any),\n ),\n queue: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<QueueDefs.QueueView>(\n (() => QueueDefs.queueView) as any,\n ),\n ),\n isMuted: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),\n }),\n)\n\nexport { reportView }\n\n/** Activity recording a report being routed to a queue. */\ntype QueueActivity = {\n $type?: 'tools.ozone.report.defs#queueActivity'\n\n /**\n * The report's status before this activity. Populated automatically from the report row; not required in input.\n */\n previousStatus?:\n | 'open'\n | 'closed'\n | 'escalated'\n | 'queued'\n | 'assigned'\n | l.UnknownString\n}\n\nexport type { QueueActivity }\n\n/** Activity recording a report being routed to a queue. */\nconst queueActivity = /*#__PURE__*/ l.typedObject<QueueActivity>(\n $nsid,\n 'queueActivity',\n /*#__PURE__*/ l.object({\n previousStatus: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string<{\n knownValues: ['open', 'closed', 'escalated', 'queued', 'assigned']\n }>(),\n ),\n }),\n)\n\nexport { queueActivity }\n\n/** Activity recording a moderator being assigned to a report. */\ntype AssignmentActivity = {\n $type?: 'tools.ozone.report.defs#assignmentActivity'\n\n /**\n * The report's status before this activity. Populated automatically from the report row; not required in input.\n */\n previousStatus?:\n | 'open'\n | 'closed'\n | 'escalated'\n | 'queued'\n | 'assigned'\n | l.UnknownString\n}\n\nexport type { AssignmentActivity }\n\n/** Activity recording a moderator being assigned to a report. */\nconst assignmentActivity = /*#__PURE__*/ l.typedObject<AssignmentActivity>(\n $nsid,\n 'assignmentActivity',\n /*#__PURE__*/ l.object({\n previousStatus: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string<{\n knownValues: ['open', 'closed', 'escalated', 'queued', 'assigned']\n }>(),\n ),\n }),\n)\n\nexport { assignmentActivity }\n\n/** Activity recording a report being escalated. */\ntype EscalationActivity = {\n $type?: 'tools.ozone.report.defs#escalationActivity'\n\n /**\n * The report's status before this activity. Populated automatically from the report row; not required in input.\n */\n previousStatus?:\n | 'open'\n | 'closed'\n | 'escalated'\n | 'queued'\n | 'assigned'\n | l.UnknownString\n}\n\nexport type { EscalationActivity }\n\n/** Activity recording a report being escalated. */\nconst escalationActivity = /*#__PURE__*/ l.typedObject<EscalationActivity>(\n $nsid,\n 'escalationActivity',\n /*#__PURE__*/ l.object({\n previousStatus: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string<{\n knownValues: ['open', 'closed', 'escalated', 'queued', 'assigned']\n }>(),\n ),\n }),\n)\n\nexport { escalationActivity }\n\n/** Activity recording a report being closed. */\ntype CloseActivity = {\n $type?: 'tools.ozone.report.defs#closeActivity'\n\n /**\n * The report's status before this activity. Populated automatically from the report row; not required in input.\n */\n previousStatus?:\n | 'open'\n | 'closed'\n | 'escalated'\n | 'queued'\n | 'assigned'\n | l.UnknownString\n}\n\nexport type { CloseActivity }\n\n/** Activity recording a report being closed. */\nconst closeActivity = /*#__PURE__*/ l.typedObject<CloseActivity>(\n $nsid,\n 'closeActivity',\n /*#__PURE__*/ l.object({\n previousStatus: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string<{\n knownValues: ['open', 'closed', 'escalated', 'queued', 'assigned']\n }>(),\n ),\n }),\n)\n\nexport { closeActivity }\n\n/** Activity recording a closed report being reopened. Only valid when the report is in 'closed' status. */\ntype ReopenActivity = {\n $type?: 'tools.ozone.report.defs#reopenActivity'\n\n /**\n * The report's status before this activity. Populated automatically from the report row; not required in input.\n */\n previousStatus?:\n | 'open'\n | 'closed'\n | 'escalated'\n | 'queued'\n | 'assigned'\n | l.UnknownString\n}\n\nexport type { ReopenActivity }\n\n/** Activity recording a closed report being reopened. Only valid when the report is in 'closed' status. */\nconst reopenActivity = /*#__PURE__*/ l.typedObject<ReopenActivity>(\n $nsid,\n 'reopenActivity',\n /*#__PURE__*/ l.object({\n previousStatus: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string<{\n knownValues: ['open', 'closed', 'escalated', 'queued', 'assigned']\n }>(),\n ),\n }),\n)\n\nexport { reopenActivity }\n\n/** Activity recording a note on a report. Use internalNote for moderator-only notes or publicNote for reporter-visible notes (or both). */\ntype NoteActivity = { $type?: 'tools.ozone.report.defs#noteActivity' }\n\nexport type { NoteActivity }\n\n/** Activity recording a note on a report. Use internalNote for moderator-only notes or publicNote for reporter-visible notes (or both). */\nconst noteActivity = /*#__PURE__*/ l.typedObject<NoteActivity>(\n $nsid,\n 'noteActivity',\n /*#__PURE__*/ l.object({}),\n)\n\nexport { noteActivity }\n\n/** A single activity entry on a report. */\ntype ReportActivityView = {\n $type?: 'tools.ozone.report.defs#reportActivityView'\n\n /**\n * Activity ID\n */\n id: number\n\n /**\n * ID of the report this activity belongs to\n */\n reportId: number\n\n /**\n * The typed activity object describing what occurred.\n */\n activity:\n | l.$Typed<QueueActivity>\n | l.$Typed<AssignmentActivity>\n | l.$Typed<EscalationActivity>\n | l.$Typed<CloseActivity>\n | l.$Typed<ReopenActivity>\n | l.$Typed<NoteActivity>\n | l.Unknown$TypedObject\n\n /**\n * Optional moderator-only note. Not visible to reporters.\n */\n internalNote?: string\n\n /**\n * Optional public note, potentially visible to the reporter.\n */\n publicNote?: string\n\n /**\n * Extensible JSON payload for loose activity-specific metadata (e.g. assignmentId).\n */\n meta?: l.LexMap\n\n /**\n * True if this activity was created by an automated process (e.g. queue router) rather than a direct human action.\n */\n isAutomated: boolean\n\n /**\n * DID of the actor who created this activity, or the service DID for automated activities.\n */\n createdBy: l.DidString\n\n /**\n * Full member record of the moderator who created this activity\n */\n moderator?: TeamDefs.Member\n\n /**\n * When this activity was created\n */\n createdAt: l.DatetimeString\n}\n\nexport type { ReportActivityView }\n\n/** A single activity entry on a report. */\nconst reportActivityView = /*#__PURE__*/ l.typedObject<ReportActivityView>(\n $nsid,\n 'reportActivityView',\n /*#__PURE__*/ l.object({\n id: /*#__PURE__*/ l.integer(),\n reportId: /*#__PURE__*/ l.integer(),\n activity: /*#__PURE__*/ l.typedUnion(\n [\n /*#__PURE__*/ l.typedRef<QueueActivity>((() => queueActivity) as any),\n /*#__PURE__*/ l.typedRef<AssignmentActivity>(\n (() => assignmentActivity) as any,\n ),\n /*#__PURE__*/ l.typedRef<EscalationActivity>(\n (() => escalationActivity) as any,\n ),\n /*#__PURE__*/ l.typedRef<CloseActivity>((() => closeActivity) as any),\n /*#__PURE__*/ l.typedRef<ReopenActivity>((() => reopenActivity) as any),\n /*#__PURE__*/ l.typedRef<NoteActivity>((() => noteActivity) as any),\n ],\n false,\n ),\n internalNote: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\n publicNote: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\n meta: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.lexMap()),\n isAutomated: /*#__PURE__*/ l.boolean(),\n createdBy: /*#__PURE__*/ l.string({ format: 'did' }),\n moderator: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<TeamDefs.Member>((() => TeamDefs.member) as any),\n ),\n createdAt: /*#__PURE__*/ l.string({ format: 'datetime' }),\n }),\n)\n\nexport { reportActivityView }\n\n/** Live statistics for reports for the current calendar day, filterable by queue, moderator, or report type. */\ntype LiveStats = {\n $type?: 'tools.ozone.report.defs#liveStats'\n\n /**\n * Number of reports currently not closed.\n */\n pendingCount?: number\n\n /**\n * Number of reports closed today.\n */\n actionedCount?: number\n\n /**\n * Number of reports escalated today.\n */\n escalatedCount?: number\n\n /**\n * Reports received today.\n */\n inboundCount?: number\n\n /**\n * Percentage of reports actioned (actionedCount / inboundCount * 100), rounded to nearest integer.\n */\n actionRate?: number\n\n /**\n * Average time in seconds from report creation (or moderator assignment) to close.\n */\n avgHandlingTimeSec?: number\n\n /**\n * When these statistics were last computed.\n */\n lastUpdated?: l.DatetimeString\n}\n\nexport type { LiveStats }\n\n/** Live statistics for reports for the current calendar day, filterable by queue, moderator, or report type. */\nconst liveStats = /*#__PURE__*/ l.typedObject<LiveStats>(\n $nsid,\n 'liveStats',\n /*#__PURE__*/ l.object({\n pendingCount: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\n actionedCount: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\n escalatedCount: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\n inboundCount: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\n actionRate: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\n avgHandlingTimeSec: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\n lastUpdated: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ format: 'datetime' }),\n ),\n }),\n)\n\nexport { liveStats }\n\n/** A single daily snapshot of report statistics for a calendar date. */\ntype HistoricalStats = {\n $type?: 'tools.ozone.report.defs#historicalStats'\n\n /**\n * The calendar date this snapshot covers (YYYY-MM-DD).\n */\n date: string\n\n /**\n * When this snapshot was last computed.\n */\n computedAt?: l.DatetimeString\n\n /**\n * Number of reports not closed at time of computation.\n */\n pendingCount?: number\n\n /**\n * Number of reports closed during this day.\n */\n actionedCount?: number\n\n /**\n * Number of reports escalated during this day.\n */\n escalatedCount?: number\n\n /**\n * Reports received during this day.\n */\n inboundCount?: number\n\n /**\n * Percentage of reports actioned (actionedCount / inboundCount * 100), rounded to nearest integer.\n */\n actionRate?: number\n\n /**\n * Average time in seconds from report creation (or moderator assignment) to close.\n */\n avgHandlingTimeSec?: number\n}\n\nexport type { HistoricalStats }\n\n/** A single daily snapshot of report statistics for a calendar date. */\nconst historicalStats = /*#__PURE__*/ l.typedObject<HistoricalStats>(\n $nsid,\n 'historicalStats',\n /*#__PURE__*/ l.object({\n date: /*#__PURE__*/ l.string(),\n computedAt: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ format: 'datetime' }),\n ),\n pendingCount: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\n actionedCount: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\n escalatedCount: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\n inboundCount: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\n actionRate: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\n avgHandlingTimeSec: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\n }),\n)\n\nexport { historicalStats }\n\ntype AssignmentView = {\n $type?: 'tools.ozone.report.defs#assignmentView'\n id: number\n did: l.DidString\n\n /**\n * The moderator assigned to this report\n */\n moderator?: TeamDefs.Member\n queue?: QueueDefs.QueueView\n reportId: number\n startAt: l.DatetimeString\n endAt?: l.DatetimeString\n}\n\nexport type { AssignmentView }\n\nconst assignmentView = /*#__PURE__*/ l.typedObject<AssignmentView>(\n $nsid,\n 'assignmentView',\n /*#__PURE__*/ l.object({\n id: /*#__PURE__*/ l.integer(),\n did: /*#__PURE__*/ l.string({ format: 'did' }),\n moderator: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<TeamDefs.Member>((() => TeamDefs.member) as any),\n ),\n queue: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<QueueDefs.QueueView>(\n (() => QueueDefs.queueView) as any,\n ),\n ),\n reportId: /*#__PURE__*/ l.integer(),\n startAt: /*#__PURE__*/ l.string({ format: 'datetime' }),\n endAt: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ format: 'datetime' }),\n ),\n }),\n)\n\nexport { assignmentView }\n"]}
1
+ {"version":3,"file":"defs.defs.js","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/report/defs.defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAChC,OAAO,KAAK,QAAQ,MAAM,sBAAsB,CAAA;AAChD,OAAO,KAAK,cAAc,MAAM,4BAA4B,CAAA;AAC5D,OAAO,KAAK,iBAAiB,MAAM,8CAA8C,CAAA;AACjF,OAAO,KAAK,SAAS,MAAM,uBAAuB,CAAA;AAElD,MAAM,KAAK,GAAG,yBAAyB,CAAA;AAEvC,OAAO,EAAE,KAAK,EAAE,CAAA;AA+ChB,MAAM,UAAU,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,EA2CrC,CAAA;AAEJ,OAAO,EAAE,UAAU,EAAE,CAAA;AAOrB,kDAAkD;AAClD,MAAM,YAAY,GAAG,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,EAAE,cAAc,CAAC,CAAA;AAEjE,OAAO,EAAE,YAAY,EAAE,CAAA;AAOvB,6CAA6C;AAC7C,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,EAAE,aAAa,CAAC,CAAA;AAE/D,OAAO,EAAE,WAAW,EAAE,CAAA;AAOtB,gCAAgC;AAChC,MAAM,oBAAoB,GAAG,aAAa,CAAC,CAAC,CAAC,KAAK,CAChD,KAAK,EACL,sBAAsB,CACvB,CAAA;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAA;AAO/B,4BAA4B;AAC5B,MAAM,qBAAqB,GAAG,aAAa,CAAC,CAAC,CAAC,KAAK,CACjD,KAAK,EACL,uBAAuB,CACxB,CAAA;AAED,OAAO,EAAE,qBAA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AgB;AAChB,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IACrB,EAAE,EAAE,aAAa,CAAC,CAAC,CAAC,OAAO,EAAE;IAC7B,GAAG,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;IAC9C,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;IACjC,aAAa,CAAC,CAAC,CAAC,GAAG,CAAkB,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAQ,CAAC,CACrE;IACD,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;IAC7B,aAAa,CAAC,CAAC,CAAC,GAAG,CACjB,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,SAAS,CAAQ,CACnC,CACF;IACD,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,OAAO,EAAE;IACnC,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC;IACvD,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;IAC7B,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,CAC/C;CACF,CAAC,CACH,CAAA;AAED,OAAO,EAAE,cAAc,EAAE,CAAA","sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\nimport * as TeamDefs from '../team/defs.defs.js'\nimport * as ModerationDefs from '../moderation/defs.defs.js'\nimport * as ModerationDefs$$0 from '../../../com/atproto/moderation/defs.defs.js'\nimport * as QueueDefs from '../queue/defs.defs.js'\n\nconst $nsid = 'tools.ozone.report.defs'\n\nexport { $nsid }\n\ntype ReasonType =\n | 'tools.ozone.report.defs#reasonAppeal'\n | 'tools.ozone.report.defs#reasonOther'\n | 'tools.ozone.report.defs#reasonViolenceAnimal'\n | 'tools.ozone.report.defs#reasonViolenceThreats'\n | 'tools.ozone.report.defs#reasonViolenceGraphicContent'\n | 'tools.ozone.report.defs#reasonViolenceGlorification'\n | 'tools.ozone.report.defs#reasonViolenceExtremistContent'\n | 'tools.ozone.report.defs#reasonViolenceTrafficking'\n | 'tools.ozone.report.defs#reasonViolenceOther'\n | 'tools.ozone.report.defs#reasonSexualAbuseContent'\n | 'tools.ozone.report.defs#reasonSexualNCII'\n | 'tools.ozone.report.defs#reasonSexualDeepfake'\n | 'tools.ozone.report.defs#reasonSexualAnimal'\n | 'tools.ozone.report.defs#reasonSexualUnlabeled'\n | 'tools.ozone.report.defs#reasonSexualOther'\n | 'tools.ozone.report.defs#reasonChildSafetyCSAM'\n | 'tools.ozone.report.defs#reasonChildSafetyGroom'\n | 'tools.ozone.report.defs#reasonChildSafetyPrivacy'\n | 'tools.ozone.report.defs#reasonChildSafetyHarassment'\n | 'tools.ozone.report.defs#reasonChildSafetyOther'\n | 'tools.ozone.report.defs#reasonHarassmentTroll'\n | 'tools.ozone.report.defs#reasonHarassmentTargeted'\n | 'tools.ozone.report.defs#reasonHarassmentHateSpeech'\n | 'tools.ozone.report.defs#reasonHarassmentDoxxing'\n | 'tools.ozone.report.defs#reasonHarassmentOther'\n | 'tools.ozone.report.defs#reasonMisleadingBot'\n | 'tools.ozone.report.defs#reasonMisleadingImpersonation'\n | 'tools.ozone.report.defs#reasonMisleadingSpam'\n | 'tools.ozone.report.defs#reasonMisleadingScam'\n | 'tools.ozone.report.defs#reasonMisleadingElections'\n | 'tools.ozone.report.defs#reasonMisleadingOther'\n | 'tools.ozone.report.defs#reasonRuleSiteSecurity'\n | 'tools.ozone.report.defs#reasonRuleProhibitedSales'\n | 'tools.ozone.report.defs#reasonRuleBanEvasion'\n | 'tools.ozone.report.defs#reasonRuleOther'\n | 'tools.ozone.report.defs#reasonSelfHarmContent'\n | 'tools.ozone.report.defs#reasonSelfHarmED'\n | 'tools.ozone.report.defs#reasonSelfHarmStunts'\n | 'tools.ozone.report.defs#reasonSelfHarmSubstances'\n | 'tools.ozone.report.defs#reasonSelfHarmOther'\n | l.UnknownString\n\nexport type { ReasonType }\n\nconst reasonType = /*#__PURE__*/ l.string<{\n knownValues: [\n 'tools.ozone.report.defs#reasonAppeal',\n 'tools.ozone.report.defs#reasonOther',\n 'tools.ozone.report.defs#reasonViolenceAnimal',\n 'tools.ozone.report.defs#reasonViolenceThreats',\n 'tools.ozone.report.defs#reasonViolenceGraphicContent',\n 'tools.ozone.report.defs#reasonViolenceGlorification',\n 'tools.ozone.report.defs#reasonViolenceExtremistContent',\n 'tools.ozone.report.defs#reasonViolenceTrafficking',\n 'tools.ozone.report.defs#reasonViolenceOther',\n 'tools.ozone.report.defs#reasonSexualAbuseContent',\n 'tools.ozone.report.defs#reasonSexualNCII',\n 'tools.ozone.report.defs#reasonSexualDeepfake',\n 'tools.ozone.report.defs#reasonSexualAnimal',\n 'tools.ozone.report.defs#reasonSexualUnlabeled',\n 'tools.ozone.report.defs#reasonSexualOther',\n 'tools.ozone.report.defs#reasonChildSafetyCSAM',\n 'tools.ozone.report.defs#reasonChildSafetyGroom',\n 'tools.ozone.report.defs#reasonChildSafetyPrivacy',\n 'tools.ozone.report.defs#reasonChildSafetyHarassment',\n 'tools.ozone.report.defs#reasonChildSafetyOther',\n 'tools.ozone.report.defs#reasonHarassmentTroll',\n 'tools.ozone.report.defs#reasonHarassmentTargeted',\n 'tools.ozone.report.defs#reasonHarassmentHateSpeech',\n 'tools.ozone.report.defs#reasonHarassmentDoxxing',\n 'tools.ozone.report.defs#reasonHarassmentOther',\n 'tools.ozone.report.defs#reasonMisleadingBot',\n 'tools.ozone.report.defs#reasonMisleadingImpersonation',\n 'tools.ozone.report.defs#reasonMisleadingSpam',\n 'tools.ozone.report.defs#reasonMisleadingScam',\n 'tools.ozone.report.defs#reasonMisleadingElections',\n 'tools.ozone.report.defs#reasonMisleadingOther',\n 'tools.ozone.report.defs#reasonRuleSiteSecurity',\n 'tools.ozone.report.defs#reasonRuleProhibitedSales',\n 'tools.ozone.report.defs#reasonRuleBanEvasion',\n 'tools.ozone.report.defs#reasonRuleOther',\n 'tools.ozone.report.defs#reasonSelfHarmContent',\n 'tools.ozone.report.defs#reasonSelfHarmED',\n 'tools.ozone.report.defs#reasonSelfHarmStunts',\n 'tools.ozone.report.defs#reasonSelfHarmSubstances',\n 'tools.ozone.report.defs#reasonSelfHarmOther',\n ]\n}>()\n\nexport { reasonType }\n\n/** Appeal a previously taken moderation action */\ntype ReasonAppeal = 'tools.ozone.report.defs#reasonAppeal'\n\nexport type { ReasonAppeal }\n\n/** Appeal a previously taken moderation action */\nconst reasonAppeal = /*#__PURE__*/ l.token($nsid, 'reasonAppeal')\n\nexport { reasonAppeal }\n\n/** An issue not included in these options */\ntype ReasonOther = 'tools.ozone.report.defs#reasonOther'\n\nexport type { ReasonOther }\n\n/** An issue not included in these options */\nconst reasonOther = /*#__PURE__*/ l.token($nsid, 'reasonOther')\n\nexport { reasonOther }\n\n/** Animal welfare violations */\ntype ReasonViolenceAnimal = 'tools.ozone.report.defs#reasonViolenceAnimal'\n\nexport type { ReasonViolenceAnimal }\n\n/** Animal welfare violations */\nconst reasonViolenceAnimal = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonViolenceAnimal',\n)\n\nexport { reasonViolenceAnimal }\n\n/** Threats or incitement */\ntype ReasonViolenceThreats = 'tools.ozone.report.defs#reasonViolenceThreats'\n\nexport type { ReasonViolenceThreats }\n\n/** Threats or incitement */\nconst reasonViolenceThreats = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonViolenceThreats',\n)\n\nexport { reasonViolenceThreats }\n\n/** Graphic violent content */\ntype ReasonViolenceGraphicContent =\n 'tools.ozone.report.defs#reasonViolenceGraphicContent'\n\nexport type { ReasonViolenceGraphicContent }\n\n/** Graphic violent content */\nconst reasonViolenceGraphicContent = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonViolenceGraphicContent',\n)\n\nexport { reasonViolenceGraphicContent }\n\n/** Glorification of violence */\ntype ReasonViolenceGlorification =\n 'tools.ozone.report.defs#reasonViolenceGlorification'\n\nexport type { ReasonViolenceGlorification }\n\n/** Glorification of violence */\nconst reasonViolenceGlorification = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonViolenceGlorification',\n)\n\nexport { reasonViolenceGlorification }\n\n/** Extremist content. These reports will be sent only be sent to the application's Moderation Authority. */\ntype ReasonViolenceExtremistContent =\n 'tools.ozone.report.defs#reasonViolenceExtremistContent'\n\nexport type { ReasonViolenceExtremistContent }\n\n/** Extremist content. These reports will be sent only be sent to the application's Moderation Authority. */\nconst reasonViolenceExtremistContent = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonViolenceExtremistContent',\n)\n\nexport { reasonViolenceExtremistContent }\n\n/** Human trafficking */\ntype ReasonViolenceTrafficking =\n 'tools.ozone.report.defs#reasonViolenceTrafficking'\n\nexport type { ReasonViolenceTrafficking }\n\n/** Human trafficking */\nconst reasonViolenceTrafficking = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonViolenceTrafficking',\n)\n\nexport { reasonViolenceTrafficking }\n\n/** Other violent content */\ntype ReasonViolenceOther = 'tools.ozone.report.defs#reasonViolenceOther'\n\nexport type { ReasonViolenceOther }\n\n/** Other violent content */\nconst reasonViolenceOther = /*#__PURE__*/ l.token($nsid, 'reasonViolenceOther')\n\nexport { reasonViolenceOther }\n\n/** Adult sexual abuse content */\ntype ReasonSexualAbuseContent =\n 'tools.ozone.report.defs#reasonSexualAbuseContent'\n\nexport type { ReasonSexualAbuseContent }\n\n/** Adult sexual abuse content */\nconst reasonSexualAbuseContent = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonSexualAbuseContent',\n)\n\nexport { reasonSexualAbuseContent }\n\n/** Non-consensual intimate imagery */\ntype ReasonSexualNCII = 'tools.ozone.report.defs#reasonSexualNCII'\n\nexport type { ReasonSexualNCII as ReasonSexualNcii }\n\n/** Non-consensual intimate imagery */\nconst reasonSexualNCII = /*#__PURE__*/ l.token($nsid, 'reasonSexualNCII')\n\nexport { reasonSexualNCII }\n\n/** Deepfake adult content */\ntype ReasonSexualDeepfake = 'tools.ozone.report.defs#reasonSexualDeepfake'\n\nexport type { ReasonSexualDeepfake }\n\n/** Deepfake adult content */\nconst reasonSexualDeepfake = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonSexualDeepfake',\n)\n\nexport { reasonSexualDeepfake }\n\n/** Animal sexual abuse */\ntype ReasonSexualAnimal = 'tools.ozone.report.defs#reasonSexualAnimal'\n\nexport type { ReasonSexualAnimal }\n\n/** Animal sexual abuse */\nconst reasonSexualAnimal = /*#__PURE__*/ l.token($nsid, 'reasonSexualAnimal')\n\nexport { reasonSexualAnimal }\n\n/** Unlabelled adult content */\ntype ReasonSexualUnlabeled = 'tools.ozone.report.defs#reasonSexualUnlabeled'\n\nexport type { ReasonSexualUnlabeled }\n\n/** Unlabelled adult content */\nconst reasonSexualUnlabeled = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonSexualUnlabeled',\n)\n\nexport { reasonSexualUnlabeled }\n\n/** Other sexual violence content */\ntype ReasonSexualOther = 'tools.ozone.report.defs#reasonSexualOther'\n\nexport type { ReasonSexualOther }\n\n/** Other sexual violence content */\nconst reasonSexualOther = /*#__PURE__*/ l.token($nsid, 'reasonSexualOther')\n\nexport { reasonSexualOther }\n\n/** Child sexual abuse material (CSAM). These reports will be sent only be sent to the application's Moderation Authority. */\ntype ReasonChildSafetyCSAM = 'tools.ozone.report.defs#reasonChildSafetyCSAM'\n\nexport type { ReasonChildSafetyCSAM as ReasonChildSafetyCsam }\n\n/** Child sexual abuse material (CSAM). These reports will be sent only be sent to the application's Moderation Authority. */\nconst reasonChildSafetyCSAM = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonChildSafetyCSAM',\n)\n\nexport { reasonChildSafetyCSAM }\n\n/** Grooming or predatory behavior. These reports will be sent only be sent to the application's Moderation Authority. */\ntype ReasonChildSafetyGroom = 'tools.ozone.report.defs#reasonChildSafetyGroom'\n\nexport type { ReasonChildSafetyGroom }\n\n/** Grooming or predatory behavior. These reports will be sent only be sent to the application's Moderation Authority. */\nconst reasonChildSafetyGroom = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonChildSafetyGroom',\n)\n\nexport { reasonChildSafetyGroom }\n\n/** Privacy violation involving a minor */\ntype ReasonChildSafetyPrivacy =\n 'tools.ozone.report.defs#reasonChildSafetyPrivacy'\n\nexport type { ReasonChildSafetyPrivacy }\n\n/** Privacy violation involving a minor */\nconst reasonChildSafetyPrivacy = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonChildSafetyPrivacy',\n)\n\nexport { reasonChildSafetyPrivacy }\n\n/** Harassment or bullying of minors */\ntype ReasonChildSafetyHarassment =\n 'tools.ozone.report.defs#reasonChildSafetyHarassment'\n\nexport type { ReasonChildSafetyHarassment }\n\n/** Harassment or bullying of minors */\nconst reasonChildSafetyHarassment = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonChildSafetyHarassment',\n)\n\nexport { reasonChildSafetyHarassment }\n\n/** Other child safety. These reports will be sent only be sent to the application's Moderation Authority. */\ntype ReasonChildSafetyOther = 'tools.ozone.report.defs#reasonChildSafetyOther'\n\nexport type { ReasonChildSafetyOther }\n\n/** Other child safety. These reports will be sent only be sent to the application's Moderation Authority. */\nconst reasonChildSafetyOther = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonChildSafetyOther',\n)\n\nexport { reasonChildSafetyOther }\n\n/** Trolling */\ntype ReasonHarassmentTroll = 'tools.ozone.report.defs#reasonHarassmentTroll'\n\nexport type { ReasonHarassmentTroll }\n\n/** Trolling */\nconst reasonHarassmentTroll = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonHarassmentTroll',\n)\n\nexport { reasonHarassmentTroll }\n\n/** Targeted harassment */\ntype ReasonHarassmentTargeted =\n 'tools.ozone.report.defs#reasonHarassmentTargeted'\n\nexport type { ReasonHarassmentTargeted }\n\n/** Targeted harassment */\nconst reasonHarassmentTargeted = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonHarassmentTargeted',\n)\n\nexport { reasonHarassmentTargeted }\n\n/** Hate speech */\ntype ReasonHarassmentHateSpeech =\n 'tools.ozone.report.defs#reasonHarassmentHateSpeech'\n\nexport type { ReasonHarassmentHateSpeech }\n\n/** Hate speech */\nconst reasonHarassmentHateSpeech = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonHarassmentHateSpeech',\n)\n\nexport { reasonHarassmentHateSpeech }\n\n/** Doxxing */\ntype ReasonHarassmentDoxxing = 'tools.ozone.report.defs#reasonHarassmentDoxxing'\n\nexport type { ReasonHarassmentDoxxing }\n\n/** Doxxing */\nconst reasonHarassmentDoxxing = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonHarassmentDoxxing',\n)\n\nexport { reasonHarassmentDoxxing }\n\n/** Other harassing or hateful content */\ntype ReasonHarassmentOther = 'tools.ozone.report.defs#reasonHarassmentOther'\n\nexport type { ReasonHarassmentOther }\n\n/** Other harassing or hateful content */\nconst reasonHarassmentOther = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonHarassmentOther',\n)\n\nexport { reasonHarassmentOther }\n\n/** Fake account or bot */\ntype ReasonMisleadingBot = 'tools.ozone.report.defs#reasonMisleadingBot'\n\nexport type { ReasonMisleadingBot }\n\n/** Fake account or bot */\nconst reasonMisleadingBot = /*#__PURE__*/ l.token($nsid, 'reasonMisleadingBot')\n\nexport { reasonMisleadingBot }\n\n/** Impersonation */\ntype ReasonMisleadingImpersonation =\n 'tools.ozone.report.defs#reasonMisleadingImpersonation'\n\nexport type { ReasonMisleadingImpersonation }\n\n/** Impersonation */\nconst reasonMisleadingImpersonation = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonMisleadingImpersonation',\n)\n\nexport { reasonMisleadingImpersonation }\n\n/** Spam */\ntype ReasonMisleadingSpam = 'tools.ozone.report.defs#reasonMisleadingSpam'\n\nexport type { ReasonMisleadingSpam }\n\n/** Spam */\nconst reasonMisleadingSpam = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonMisleadingSpam',\n)\n\nexport { reasonMisleadingSpam }\n\n/** Scam */\ntype ReasonMisleadingScam = 'tools.ozone.report.defs#reasonMisleadingScam'\n\nexport type { ReasonMisleadingScam }\n\n/** Scam */\nconst reasonMisleadingScam = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonMisleadingScam',\n)\n\nexport { reasonMisleadingScam }\n\n/** False information about elections */\ntype ReasonMisleadingElections =\n 'tools.ozone.report.defs#reasonMisleadingElections'\n\nexport type { ReasonMisleadingElections }\n\n/** False information about elections */\nconst reasonMisleadingElections = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonMisleadingElections',\n)\n\nexport { reasonMisleadingElections }\n\n/** Other misleading content */\ntype ReasonMisleadingOther = 'tools.ozone.report.defs#reasonMisleadingOther'\n\nexport type { ReasonMisleadingOther }\n\n/** Other misleading content */\nconst reasonMisleadingOther = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonMisleadingOther',\n)\n\nexport { reasonMisleadingOther }\n\n/** Hacking or system attacks */\ntype ReasonRuleSiteSecurity = 'tools.ozone.report.defs#reasonRuleSiteSecurity'\n\nexport type { ReasonRuleSiteSecurity }\n\n/** Hacking or system attacks */\nconst reasonRuleSiteSecurity = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonRuleSiteSecurity',\n)\n\nexport { reasonRuleSiteSecurity }\n\n/** Promoting or selling prohibited items or services */\ntype ReasonRuleProhibitedSales =\n 'tools.ozone.report.defs#reasonRuleProhibitedSales'\n\nexport type { ReasonRuleProhibitedSales }\n\n/** Promoting or selling prohibited items or services */\nconst reasonRuleProhibitedSales = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonRuleProhibitedSales',\n)\n\nexport { reasonRuleProhibitedSales }\n\n/** Banned user returning */\ntype ReasonRuleBanEvasion = 'tools.ozone.report.defs#reasonRuleBanEvasion'\n\nexport type { ReasonRuleBanEvasion }\n\n/** Banned user returning */\nconst reasonRuleBanEvasion = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonRuleBanEvasion',\n)\n\nexport { reasonRuleBanEvasion }\n\n/** Other */\ntype ReasonRuleOther = 'tools.ozone.report.defs#reasonRuleOther'\n\nexport type { ReasonRuleOther }\n\n/** Other */\nconst reasonRuleOther = /*#__PURE__*/ l.token($nsid, 'reasonRuleOther')\n\nexport { reasonRuleOther }\n\n/** Content promoting or depicting self-harm */\ntype ReasonSelfHarmContent = 'tools.ozone.report.defs#reasonSelfHarmContent'\n\nexport type { ReasonSelfHarmContent }\n\n/** Content promoting or depicting self-harm */\nconst reasonSelfHarmContent = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonSelfHarmContent',\n)\n\nexport { reasonSelfHarmContent }\n\n/** Eating disorders */\ntype ReasonSelfHarmED = 'tools.ozone.report.defs#reasonSelfHarmED'\n\nexport type { ReasonSelfHarmED as ReasonSelfHarmEd }\n\n/** Eating disorders */\nconst reasonSelfHarmED = /*#__PURE__*/ l.token($nsid, 'reasonSelfHarmED')\n\nexport { reasonSelfHarmED }\n\n/** Dangerous challenges or activities */\ntype ReasonSelfHarmStunts = 'tools.ozone.report.defs#reasonSelfHarmStunts'\n\nexport type { ReasonSelfHarmStunts }\n\n/** Dangerous challenges or activities */\nconst reasonSelfHarmStunts = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonSelfHarmStunts',\n)\n\nexport { reasonSelfHarmStunts }\n\n/** Dangerous substances or drug abuse */\ntype ReasonSelfHarmSubstances =\n 'tools.ozone.report.defs#reasonSelfHarmSubstances'\n\nexport type { ReasonSelfHarmSubstances }\n\n/** Dangerous substances or drug abuse */\nconst reasonSelfHarmSubstances = /*#__PURE__*/ l.token(\n $nsid,\n 'reasonSelfHarmSubstances',\n)\n\nexport { reasonSelfHarmSubstances }\n\n/** Other dangerous content */\ntype ReasonSelfHarmOther = 'tools.ozone.report.defs#reasonSelfHarmOther'\n\nexport type { ReasonSelfHarmOther }\n\n/** Other dangerous content */\nconst reasonSelfHarmOther = /*#__PURE__*/ l.token($nsid, 'reasonSelfHarmOther')\n\nexport { reasonSelfHarmOther }\n\n/** Information about the moderator currently assigned to a report. */\ntype ReportAssignment = {\n $type?: 'tools.ozone.report.defs#reportAssignment'\n\n /**\n * DID of the assigned moderator\n */\n did: l.DidString\n\n /**\n * Full member record of the assigned moderator\n */\n moderator?: TeamDefs.Member\n\n /**\n * When the report was assigned\n */\n assignedAt: l.DatetimeString\n}\n\nexport type { ReportAssignment }\n\n/** Information about the moderator currently assigned to a report. */\nconst reportAssignment = /*#__PURE__*/ l.typedObject<ReportAssignment>(\n $nsid,\n 'reportAssignment',\n /*#__PURE__*/ l.object({\n did: /*#__PURE__*/ l.string({ format: 'did' }),\n moderator: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<TeamDefs.Member>((() => TeamDefs.member) as any),\n ),\n assignedAt: /*#__PURE__*/ l.string({ format: 'datetime' }),\n }),\n)\n\nexport { reportAssignment }\n\ntype ReportView = {\n $type?: 'tools.ozone.report.defs#reportView'\n\n /**\n * Report ID\n */\n id: number\n\n /**\n * ID of the moderation event that created this report\n */\n eventId: number\n\n /**\n * Current status of the report\n */\n status:\n | 'open'\n | 'closed'\n | 'escalated'\n | 'queued'\n | 'assigned'\n | l.UnknownString\n\n /**\n * The subject that was reported with full details\n */\n subject: ModerationDefs.SubjectView\n\n /**\n * Type of report\n */\n reportType: ModerationDefs$$0.ReasonType\n\n /**\n * DID of the user who made the report\n */\n reportedBy: l.DidString\n\n /**\n * Full subject view of the reporter account\n */\n reporter: ModerationDefs.SubjectView\n\n /**\n * Comment provided by the reporter\n */\n comment?: string\n\n /**\n * When the report was created\n */\n createdAt: l.DatetimeString\n\n /**\n * When the report was last updated\n */\n updatedAt?: l.DatetimeString\n\n /**\n * When the report was assigned to its current queue\n */\n queuedAt?: l.DatetimeString\n\n /**\n * Array of moderation event IDs representing actions taken on this report (sorted DESC, most recent first)\n */\n actionEventIds?: number[]\n\n /**\n * Optional: expanded action events\n */\n actions?: ModerationDefs.ModEventView[]\n\n /**\n * Note sent to reporter when report was actioned\n */\n actionNote?: string\n\n /**\n * Current status of the reported subject\n */\n subjectStatus?: ModerationDefs.SubjectStatusView\n\n /**\n * Number of other pending reports on the same subject\n */\n relatedReportCount?: number\n\n /**\n * Information about moderator currently assigned to this report (if any)\n */\n assignment?: ReportAssignment\n\n /**\n * The queue this report is assigned to (if any)\n */\n queue?: QueueDefs.QueueView\n\n /**\n * Whether this report is muted. A report is muted if the reporter was muted or the subject was muted at the time the report was created.\n */\n isMuted?: boolean\n}\n\nexport type { ReportView }\n\nconst reportView = /*#__PURE__*/ l.typedObject<ReportView>(\n $nsid,\n 'reportView',\n /*#__PURE__*/ l.object({\n id: /*#__PURE__*/ l.integer(),\n eventId: /*#__PURE__*/ l.integer(),\n status: /*#__PURE__*/ l.string<{\n knownValues: ['open', 'closed', 'escalated', 'queued', 'assigned']\n }>(),\n subject: /*#__PURE__*/ l.ref<ModerationDefs.SubjectView>(\n (() => ModerationDefs.subjectView) as any,\n ),\n reportType: /*#__PURE__*/ l.ref<ModerationDefs$$0.ReasonType>(\n (() => ModerationDefs$$0.reasonType) as any,\n ),\n reportedBy: /*#__PURE__*/ l.string({ format: 'did' }),\n reporter: /*#__PURE__*/ l.ref<ModerationDefs.SubjectView>(\n (() => ModerationDefs.subjectView) as any,\n ),\n comment: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\n createdAt: /*#__PURE__*/ l.string({ format: 'datetime' }),\n updatedAt: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ format: 'datetime' }),\n ),\n queuedAt: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ format: 'datetime' }),\n ),\n actionEventIds: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(/*#__PURE__*/ l.integer()),\n ),\n actions: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(\n /*#__PURE__*/ l.ref<ModerationDefs.ModEventView>(\n (() => ModerationDefs.modEventView) as any,\n ),\n ),\n ),\n actionNote: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\n subjectStatus: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<ModerationDefs.SubjectStatusView>(\n (() => ModerationDefs.subjectStatusView) as any,\n ),\n ),\n relatedReportCount: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\n assignment: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<ReportAssignment>((() => reportAssignment) as any),\n ),\n queue: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<QueueDefs.QueueView>(\n (() => QueueDefs.queueView) as any,\n ),\n ),\n isMuted: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),\n }),\n)\n\nexport { reportView }\n\n/** Activity recording a report being routed to a queue. */\ntype QueueActivity = {\n $type?: 'tools.ozone.report.defs#queueActivity'\n\n /**\n * The report's status before this activity. Populated automatically from the report row; not required in input.\n */\n previousStatus?:\n | 'open'\n | 'closed'\n | 'escalated'\n | 'queued'\n | 'assigned'\n | l.UnknownString\n}\n\nexport type { QueueActivity }\n\n/** Activity recording a report being routed to a queue. */\nconst queueActivity = /*#__PURE__*/ l.typedObject<QueueActivity>(\n $nsid,\n 'queueActivity',\n /*#__PURE__*/ l.object({\n previousStatus: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string<{\n knownValues: ['open', 'closed', 'escalated', 'queued', 'assigned']\n }>(),\n ),\n }),\n)\n\nexport { queueActivity }\n\n/** Activity recording a moderator being assigned to a report. */\ntype AssignmentActivity = {\n $type?: 'tools.ozone.report.defs#assignmentActivity'\n\n /**\n * The report's status before this activity. Populated automatically from the report row; not required in input.\n */\n previousStatus?:\n | 'open'\n | 'closed'\n | 'escalated'\n | 'queued'\n | 'assigned'\n | l.UnknownString\n}\n\nexport type { AssignmentActivity }\n\n/** Activity recording a moderator being assigned to a report. */\nconst assignmentActivity = /*#__PURE__*/ l.typedObject<AssignmentActivity>(\n $nsid,\n 'assignmentActivity',\n /*#__PURE__*/ l.object({\n previousStatus: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string<{\n knownValues: ['open', 'closed', 'escalated', 'queued', 'assigned']\n }>(),\n ),\n }),\n)\n\nexport { assignmentActivity }\n\n/** Activity recording a report being escalated. */\ntype EscalationActivity = {\n $type?: 'tools.ozone.report.defs#escalationActivity'\n\n /**\n * The report's status before this activity. Populated automatically from the report row; not required in input.\n */\n previousStatus?:\n | 'open'\n | 'closed'\n | 'escalated'\n | 'queued'\n | 'assigned'\n | l.UnknownString\n}\n\nexport type { EscalationActivity }\n\n/** Activity recording a report being escalated. */\nconst escalationActivity = /*#__PURE__*/ l.typedObject<EscalationActivity>(\n $nsid,\n 'escalationActivity',\n /*#__PURE__*/ l.object({\n previousStatus: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string<{\n knownValues: ['open', 'closed', 'escalated', 'queued', 'assigned']\n }>(),\n ),\n }),\n)\n\nexport { escalationActivity }\n\n/** Activity recording a report being closed. */\ntype CloseActivity = {\n $type?: 'tools.ozone.report.defs#closeActivity'\n\n /**\n * The report's status before this activity. Populated automatically from the report row; not required in input.\n */\n previousStatus?:\n | 'open'\n | 'closed'\n | 'escalated'\n | 'queued'\n | 'assigned'\n | l.UnknownString\n}\n\nexport type { CloseActivity }\n\n/** Activity recording a report being closed. */\nconst closeActivity = /*#__PURE__*/ l.typedObject<CloseActivity>(\n $nsid,\n 'closeActivity',\n /*#__PURE__*/ l.object({\n previousStatus: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string<{\n knownValues: ['open', 'closed', 'escalated', 'queued', 'assigned']\n }>(),\n ),\n }),\n)\n\nexport { closeActivity }\n\n/** Activity recording a closed report being reopened. Only valid when the report is in 'closed' status. */\ntype ReopenActivity = {\n $type?: 'tools.ozone.report.defs#reopenActivity'\n\n /**\n * The report's status before this activity. Populated automatically from the report row; not required in input.\n */\n previousStatus?:\n | 'open'\n | 'closed'\n | 'escalated'\n | 'queued'\n | 'assigned'\n | l.UnknownString\n}\n\nexport type { ReopenActivity }\n\n/** Activity recording a closed report being reopened. Only valid when the report is in 'closed' status. */\nconst reopenActivity = /*#__PURE__*/ l.typedObject<ReopenActivity>(\n $nsid,\n 'reopenActivity',\n /*#__PURE__*/ l.object({\n previousStatus: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string<{\n knownValues: ['open', 'closed', 'escalated', 'queued', 'assigned']\n }>(),\n ),\n }),\n)\n\nexport { reopenActivity }\n\n/** Activity recording a note on a report. Use internalNote for moderator-only notes or publicNote for reporter-visible notes (or both). */\ntype NoteActivity = { $type?: 'tools.ozone.report.defs#noteActivity' }\n\nexport type { NoteActivity }\n\n/** Activity recording a note on a report. Use internalNote for moderator-only notes or publicNote for reporter-visible notes (or both). */\nconst noteActivity = /*#__PURE__*/ l.typedObject<NoteActivity>(\n $nsid,\n 'noteActivity',\n /*#__PURE__*/ l.object({}),\n)\n\nexport { noteActivity }\n\n/** A single activity entry on a report. */\ntype ReportActivityView = {\n $type?: 'tools.ozone.report.defs#reportActivityView'\n\n /**\n * Activity ID\n */\n id: number\n\n /**\n * ID of the report this activity belongs to\n */\n reportId: number\n\n /**\n * The typed activity object describing what occurred.\n */\n activity:\n | l.$Typed<QueueActivity>\n | l.$Typed<AssignmentActivity>\n | l.$Typed<EscalationActivity>\n | l.$Typed<CloseActivity>\n | l.$Typed<ReopenActivity>\n | l.$Typed<NoteActivity>\n | l.Unknown$TypedObject\n\n /**\n * Optional moderator-only note. Not visible to reporters.\n */\n internalNote?: string\n\n /**\n * Optional public note, potentially visible to the reporter.\n */\n publicNote?: string\n\n /**\n * Extensible JSON payload for loose activity-specific metadata (e.g. assignmentId).\n */\n meta?: l.LexMap\n\n /**\n * True if this activity was created by an automated process (e.g. queue router) rather than a direct human action.\n */\n isAutomated: boolean\n\n /**\n * DID of the actor who created this activity, or the service DID for automated activities.\n */\n createdBy: l.DidString\n\n /**\n * Full member record of the moderator who created this activity\n */\n moderator?: TeamDefs.Member\n\n /**\n * Full view of the report this activity belongs to.\n */\n report?: ReportView\n\n /**\n * When this activity was created\n */\n createdAt: l.DatetimeString\n}\n\nexport type { ReportActivityView }\n\n/** A single activity entry on a report. */\nconst reportActivityView = /*#__PURE__*/ l.typedObject<ReportActivityView>(\n $nsid,\n 'reportActivityView',\n /*#__PURE__*/ l.object({\n id: /*#__PURE__*/ l.integer(),\n reportId: /*#__PURE__*/ l.integer(),\n activity: /*#__PURE__*/ l.typedUnion(\n [\n /*#__PURE__*/ l.typedRef<QueueActivity>((() => queueActivity) as any),\n /*#__PURE__*/ l.typedRef<AssignmentActivity>(\n (() => assignmentActivity) as any,\n ),\n /*#__PURE__*/ l.typedRef<EscalationActivity>(\n (() => escalationActivity) as any,\n ),\n /*#__PURE__*/ l.typedRef<CloseActivity>((() => closeActivity) as any),\n /*#__PURE__*/ l.typedRef<ReopenActivity>((() => reopenActivity) as any),\n /*#__PURE__*/ l.typedRef<NoteActivity>((() => noteActivity) as any),\n ],\n false,\n ),\n internalNote: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\n publicNote: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\n meta: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.lexMap()),\n isAutomated: /*#__PURE__*/ l.boolean(),\n createdBy: /*#__PURE__*/ l.string({ format: 'did' }),\n moderator: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<TeamDefs.Member>((() => TeamDefs.member) as any),\n ),\n report: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<ReportView>((() => reportView) as any),\n ),\n createdAt: /*#__PURE__*/ l.string({ format: 'datetime' }),\n }),\n)\n\nexport { reportActivityView }\n\n/** Live statistics for reports for the current calendar day, filterable by queue, moderator, or report type. */\ntype LiveStats = {\n $type?: 'tools.ozone.report.defs#liveStats'\n\n /**\n * Number of reports currently not closed.\n */\n pendingCount?: number\n\n /**\n * Number of reports closed today.\n */\n actionedCount?: number\n\n /**\n * Number of reports escalated today.\n */\n escalatedCount?: number\n\n /**\n * Reports received today.\n */\n inboundCount?: number\n\n /**\n * Percentage of reports actioned (actionedCount / inboundCount * 100), rounded to nearest integer.\n */\n actionRate?: number\n\n /**\n * Average time in seconds from report creation (or moderator assignment) to close.\n */\n avgHandlingTimeSec?: number\n\n /**\n * When these statistics were last computed.\n */\n lastUpdated?: l.DatetimeString\n}\n\nexport type { LiveStats }\n\n/** Live statistics for reports for the current calendar day, filterable by queue, moderator, or report type. */\nconst liveStats = /*#__PURE__*/ l.typedObject<LiveStats>(\n $nsid,\n 'liveStats',\n /*#__PURE__*/ l.object({\n pendingCount: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\n actionedCount: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\n escalatedCount: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\n inboundCount: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\n actionRate: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\n avgHandlingTimeSec: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\n lastUpdated: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ format: 'datetime' }),\n ),\n }),\n)\n\nexport { liveStats }\n\n/** A single daily snapshot of report statistics for a calendar date. */\ntype HistoricalStats = {\n $type?: 'tools.ozone.report.defs#historicalStats'\n\n /**\n * The calendar date this snapshot covers (YYYY-MM-DD).\n */\n date: string\n\n /**\n * When this snapshot was last computed.\n */\n computedAt?: l.DatetimeString\n\n /**\n * Number of reports not closed at time of computation.\n */\n pendingCount?: number\n\n /**\n * Number of reports closed during this day.\n */\n actionedCount?: number\n\n /**\n * Number of reports escalated during this day.\n */\n escalatedCount?: number\n\n /**\n * Reports received during this day.\n */\n inboundCount?: number\n\n /**\n * Percentage of reports actioned (actionedCount / inboundCount * 100), rounded to nearest integer.\n */\n actionRate?: number\n\n /**\n * Average time in seconds from report creation (or moderator assignment) to close.\n */\n avgHandlingTimeSec?: number\n}\n\nexport type { HistoricalStats }\n\n/** A single daily snapshot of report statistics for a calendar date. */\nconst historicalStats = /*#__PURE__*/ l.typedObject<HistoricalStats>(\n $nsid,\n 'historicalStats',\n /*#__PURE__*/ l.object({\n date: /*#__PURE__*/ l.string(),\n computedAt: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ format: 'datetime' }),\n ),\n pendingCount: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\n actionedCount: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\n escalatedCount: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\n inboundCount: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\n actionRate: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\n avgHandlingTimeSec: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\n }),\n)\n\nexport { historicalStats }\n\ntype AssignmentView = {\n $type?: 'tools.ozone.report.defs#assignmentView'\n id: number\n did: l.DidString\n\n /**\n * The moderator assigned to this report\n */\n moderator?: TeamDefs.Member\n queue?: QueueDefs.QueueView\n reportId: number\n startAt: l.DatetimeString\n endAt?: l.DatetimeString\n}\n\nexport type { AssignmentView }\n\nconst assignmentView = /*#__PURE__*/ l.typedObject<AssignmentView>(\n $nsid,\n 'assignmentView',\n /*#__PURE__*/ l.object({\n id: /*#__PURE__*/ l.integer(),\n did: /*#__PURE__*/ l.string({ format: 'did' }),\n moderator: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<TeamDefs.Member>((() => TeamDefs.member) as any),\n ),\n queue: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<QueueDefs.QueueView>(\n (() => QueueDefs.queueView) as any,\n ),\n ),\n reportId: /*#__PURE__*/ l.integer(),\n startAt: /*#__PURE__*/ l.string({ format: 'datetime' }),\n endAt: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ format: 'datetime' }),\n ),\n }),\n)\n\nexport { assignmentView }\n"]}
@@ -0,0 +1,3 @@
1
+ export * from './queryActivities.defs.js';
2
+ export { main as default } from './queryActivities.defs.js';
3
+ //# sourceMappingURL=queryActivities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queryActivities.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/report/queryActivities.ts"],"names":[],"mappings":"AAIA,cAAc,2BAA2B,CAAA;AACzC,OAAO,EAAE,IAAI,IAAI,OAAO,EAAE,MAAM,2BAA2B,CAAA"}
@@ -0,0 +1,42 @@
1
+ import { l } from '@atproto/lex';
2
+ import * as ReportDefs from './defs.defs.js';
3
+ declare const $nsid = "tools.ozone.report.queryActivities";
4
+ export { $nsid };
5
+ export declare const $params: l.ParamsSchema<{
6
+ readonly activityTypes: l.OptionalSchema<l.ArraySchema<l.StringSchema<{}>>>;
7
+ readonly createdAfter: l.OptionalSchema<l.StringSchema<{
8
+ readonly format: "datetime";
9
+ }>>;
10
+ readonly createdBefore: l.OptionalSchema<l.StringSchema<{
11
+ readonly format: "datetime";
12
+ }>>;
13
+ readonly sortDirection: l.OptionalSchema<l.WithDefaultSchema<l.EnumSchema<"asc" | "desc">>>;
14
+ readonly limit: l.OptionalSchema<l.WithDefaultSchema<l.IntegerSchema>>;
15
+ readonly cursor: l.OptionalSchema<l.StringSchema<{}>>;
16
+ }>;
17
+ export type $Params = l.InferOutput<typeof $params>;
18
+ export declare const $output: l.Payload<"application/json", l.ObjectSchema<{
19
+ activities: l.ArraySchema<l.RefSchema<l.Validator<ReportDefs.ReportActivityView, ReportDefs.ReportActivityView>>>;
20
+ cursor: l.OptionalSchema<l.StringSchema<{}>>;
21
+ }>>;
22
+ export type $Output<B = l.BinaryData> = l.InferPayload<typeof $output, B>;
23
+ export type $OutputBody<B = l.BinaryData> = l.InferPayloadBody<typeof $output, B>;
24
+ /** Query report activities across all reports, ordered by createdAt. Used by downstream pollers; for per-report activity history use listActivities. */
25
+ declare const main: l.Query<"tools.ozone.report.queryActivities", l.ParamsSchema<{
26
+ readonly activityTypes: l.OptionalSchema<l.ArraySchema<l.StringSchema<{}>>>;
27
+ readonly createdAfter: l.OptionalSchema<l.StringSchema<{
28
+ readonly format: "datetime";
29
+ }>>;
30
+ readonly createdBefore: l.OptionalSchema<l.StringSchema<{
31
+ readonly format: "datetime";
32
+ }>>;
33
+ readonly sortDirection: l.OptionalSchema<l.WithDefaultSchema<l.EnumSchema<"asc" | "desc">>>;
34
+ readonly limit: l.OptionalSchema<l.WithDefaultSchema<l.IntegerSchema>>;
35
+ readonly cursor: l.OptionalSchema<l.StringSchema<{}>>;
36
+ }>, l.Payload<"application/json", l.ObjectSchema<{
37
+ activities: l.ArraySchema<l.RefSchema<l.Validator<ReportDefs.ReportActivityView, ReportDefs.ReportActivityView>>>;
38
+ cursor: l.OptionalSchema<l.StringSchema<{}>>;
39
+ }>>, undefined>;
40
+ export { main };
41
+ export declare const $lxm = "tools.ozone.report.queryActivities";
42
+ //# sourceMappingURL=queryActivities.defs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queryActivities.defs.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/report/queryActivities.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAChC,OAAO,KAAK,UAAU,MAAM,gBAAgB,CAAA;AAE5C,QAAA,MAAM,KAAK,uCAAuC,CAAA;AAElD,OAAO,EAAE,KAAK,EAAE,CAAA;AAEhB,eAAO,MAAM,OAAO;;;;;;;;;;;EAoBlB,CAAA;AAEF,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,OAAO,CAAC,CAAA;AAEnD,eAAO,MAAM,OAAO;;;GAOlB,CAAA;AAEF,MAAM,MAAM,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,YAAY,CAAC,OAAO,OAAO,EAAE,CAAC,CAAC,CAAA;AACzE,MAAM,MAAM,WAAW,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,gBAAgB,CAC5D,OAAO,OAAO,EACd,CAAC,CACF,CAAA;AAED,wJAAwJ;AACxJ,QAAA,MAAM,IAAI;;;;;;;;;;;;;;eAAiD,CAAA;AAE3D,OAAO,EAAE,IAAI,EAAE,CAAA;AAEf,eAAO,MAAM,IAAI,uCAAQ,CAAA"}
@@ -0,0 +1,31 @@
1
+ /*
2
+ * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
3
+ */
4
+ import { l } from '@atproto/lex';
5
+ import * as ReportDefs from './defs.defs.js';
6
+ const $nsid = 'tools.ozone.report.queryActivities';
7
+ export { $nsid };
8
+ export const $params = /*#__PURE__*/ l.params({
9
+ activityTypes: /*#__PURE__*/ l.optional(
10
+ /*#__PURE__*/ l.array(/*#__PURE__*/ l.string())),
11
+ createdAfter: /*#__PURE__*/ l.optional(
12
+ /*#__PURE__*/ l.string({ format: 'datetime' })),
13
+ createdBefore: /*#__PURE__*/ l.optional(
14
+ /*#__PURE__*/ l.string({ format: 'datetime' })),
15
+ sortDirection: /*#__PURE__*/ l.optional(
16
+ /*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.enum(['asc', 'desc']), 'desc')),
17
+ limit: /*#__PURE__*/ l.optional(
18
+ /*#__PURE__*/ l.withDefault(
19
+ /*#__PURE__*/ l.integer({ minimum: 1, maximum: 100 }), 50)),
20
+ cursor: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),
21
+ });
22
+ export const $output = /*#__PURE__*/ l.jsonPayload({
23
+ activities: /*#__PURE__*/ l.array(
24
+ /*#__PURE__*/ l.ref((() => ReportDefs.reportActivityView))),
25
+ cursor: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),
26
+ });
27
+ /** Query report activities across all reports, ordered by createdAt. Used by downstream pollers; for per-report activity history use listActivities. */
28
+ const main = /*#__PURE__*/ l.query($nsid, $params, $output);
29
+ export { main };
30
+ export const $lxm = $nsid;
31
+ //# sourceMappingURL=queryActivities.defs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queryActivities.defs.js","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/report/queryActivities.defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAChC,OAAO,KAAK,UAAU,MAAM,gBAAgB,CAAA;AAE5C,MAAM,KAAK,GAAG,oCAAoC,CAAA;AAElD,OAAO,EAAE,KAAK,EAAE,CAAA;AAEhB,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IAC5C,aAAa,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;IACrC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAChD;IACD,YAAY,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;IACpC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,CAC/C;IACD,aAAa,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;IACrC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,CAC/C;IACD,aAAa,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;IACrC,aAAa,CAAC,CAAC,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,CAC3E;IACD,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;IAC7B,aAAa,CAAC,CAAC,CAAC,WAAW;IACzB,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,EACrD,EAAE,CACH,CACF;IACD,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CAC3D,CAAC,CAAA;AAIF,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAC,CAAC,CAAC,WAAW,CAAC;IACjD,UAAU,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK;IAC/B,aAAa,CAAC,CAAC,CAAC,GAAG,CACjB,CAAC,GAAG,EAAE,CAAC,UAAU,CAAC,kBAAkB,CAAQ,CAC7C,CACF;IACD,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CAC3D,CAAC,CAAA;AAQF,wJAAwJ;AACxJ,MAAM,IAAI,GAAG,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,CAAA;AAE3D,OAAO,EAAE,IAAI,EAAE,CAAA;AAEf,MAAM,CAAC,MAAM,IAAI,GAAG,KAAK,CAAA","sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\nimport * as ReportDefs from './defs.defs.js'\n\nconst $nsid = 'tools.ozone.report.queryActivities'\n\nexport { $nsid }\n\nexport const $params = /*#__PURE__*/ l.params({\n activityTypes: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(/*#__PURE__*/ l.string()),\n ),\n createdAfter: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ format: 'datetime' }),\n ),\n createdBefore: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ format: 'datetime' }),\n ),\n sortDirection: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.enum(['asc', 'desc']), 'desc'),\n ),\n limit: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.withDefault(\n /*#__PURE__*/ l.integer({ minimum: 1, maximum: 100 }),\n 50,\n ),\n ),\n cursor: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\n})\n\nexport type $Params = l.InferOutput<typeof $params>\n\nexport const $output = /*#__PURE__*/ l.jsonPayload({\n activities: /*#__PURE__*/ l.array(\n /*#__PURE__*/ l.ref<ReportDefs.ReportActivityView>(\n (() => ReportDefs.reportActivityView) as any,\n ),\n ),\n cursor: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\n})\n\nexport type $Output<B = l.BinaryData> = l.InferPayload<typeof $output, B>\nexport type $OutputBody<B = l.BinaryData> = l.InferPayloadBody<\n typeof $output,\n B\n>\n\n/** Query report activities across all reports, ordered by createdAt. Used by downstream pollers; for per-report activity history use listActivities. */\nconst main = /*#__PURE__*/ l.query($nsid, $params, $output)\n\nexport { main }\n\nexport const $lxm = $nsid\n"]}
@@ -0,0 +1,6 @@
1
+ /*
2
+ * THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
3
+ */
4
+ export * from './queryActivities.defs.js';
5
+ export { main as default } from './queryActivities.defs.js';
6
+ //# sourceMappingURL=queryActivities.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queryActivities.js","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/report/queryActivities.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,2BAA2B,CAAA;AACzC,OAAO,EAAE,IAAI,IAAI,OAAO,EAAE,MAAM,2BAA2B,CAAA","sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * from './queryActivities.defs.js'\nexport { main as default } from './queryActivities.defs.js'\n"]}
@@ -5,6 +5,7 @@ export * as getLatestReport from './report/getLatestReport.js';
5
5
  export * as getLiveStats from './report/getLiveStats.js';
6
6
  export * as getReport from './report/getReport.js';
7
7
  export * as listActivities from './report/listActivities.js';
8
+ export * as queryActivities from './report/queryActivities.js';
8
9
  export * as queryReports from './report/queryReports.js';
9
10
  export * as reassignQueue from './report/reassignQueue.js';
10
11
  export * as refreshStats from './report/refreshStats.js';
@@ -1 +1 @@
1
- {"version":3,"file":"report.d.ts","sourceRoot":"","sources":["../../../../src/lexicons/tools/ozone/report.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,eAAe,MAAM,6BAA6B,CAAA;AAC9D,OAAO,KAAK,cAAc,MAAM,4BAA4B,CAAA;AAC5D,OAAO,KAAK,kBAAkB,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,eAAe,MAAM,6BAA6B,CAAA;AAC9D,OAAO,KAAK,YAAY,MAAM,0BAA0B,CAAA;AACxD,OAAO,KAAK,SAAS,MAAM,uBAAuB,CAAA;AAClD,OAAO,KAAK,cAAc,MAAM,4BAA4B,CAAA;AAC5D,OAAO,KAAK,YAAY,MAAM,0BAA0B,CAAA;AACxD,OAAO,KAAK,aAAa,MAAM,2BAA2B,CAAA;AAC1D,OAAO,KAAK,YAAY,MAAM,0BAA0B,CAAA;AACxD,OAAO,KAAK,iBAAiB,MAAM,+BAA+B,CAAA;AAClE,OAAO,KAAK,cAAc,MAAM,4BAA4B,CAAA;AAC5D,OAAO,KAAK,IAAI,MAAM,kBAAkB,CAAA"}
1
+ {"version":3,"file":"report.d.ts","sourceRoot":"","sources":["../../../../src/lexicons/tools/ozone/report.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,eAAe,MAAM,6BAA6B,CAAA;AAC9D,OAAO,KAAK,cAAc,MAAM,4BAA4B,CAAA;AAC5D,OAAO,KAAK,kBAAkB,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,eAAe,MAAM,6BAA6B,CAAA;AAC9D,OAAO,KAAK,YAAY,MAAM,0BAA0B,CAAA;AACxD,OAAO,KAAK,SAAS,MAAM,uBAAuB,CAAA;AAClD,OAAO,KAAK,cAAc,MAAM,4BAA4B,CAAA;AAC5D,OAAO,KAAK,eAAe,MAAM,6BAA6B,CAAA;AAC9D,OAAO,KAAK,YAAY,MAAM,0BAA0B,CAAA;AACxD,OAAO,KAAK,aAAa,MAAM,2BAA2B,CAAA;AAC1D,OAAO,KAAK,YAAY,MAAM,0BAA0B,CAAA;AACxD,OAAO,KAAK,iBAAiB,MAAM,+BAA+B,CAAA;AAClE,OAAO,KAAK,cAAc,MAAM,4BAA4B,CAAA;AAC5D,OAAO,KAAK,IAAI,MAAM,kBAAkB,CAAA"}
@@ -8,6 +8,7 @@ export * as getLatestReport from './report/getLatestReport.js';
8
8
  export * as getLiveStats from './report/getLiveStats.js';
9
9
  export * as getReport from './report/getReport.js';
10
10
  export * as listActivities from './report/listActivities.js';
11
+ export * as queryActivities from './report/queryActivities.js';
11
12
  export * as queryReports from './report/queryReports.js';
12
13
  export * as reassignQueue from './report/reassignQueue.js';
13
14
  export * as refreshStats from './report/refreshStats.js';
@@ -1 +1 @@
1
- {"version":3,"file":"report.js","sourceRoot":"","sources":["../../../../src/lexicons/tools/ozone/report.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,eAAe,MAAM,6BAA6B,CAAA;AAC9D,OAAO,KAAK,cAAc,MAAM,4BAA4B,CAAA;AAC5D,OAAO,KAAK,kBAAkB,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,eAAe,MAAM,6BAA6B,CAAA;AAC9D,OAAO,KAAK,YAAY,MAAM,0BAA0B,CAAA;AACxD,OAAO,KAAK,SAAS,MAAM,uBAAuB,CAAA;AAClD,OAAO,KAAK,cAAc,MAAM,4BAA4B,CAAA;AAC5D,OAAO,KAAK,YAAY,MAAM,0BAA0B,CAAA;AACxD,OAAO,KAAK,aAAa,MAAM,2BAA2B,CAAA;AAC1D,OAAO,KAAK,YAAY,MAAM,0BAA0B,CAAA;AACxD,OAAO,KAAK,iBAAiB,MAAM,+BAA+B,CAAA;AAClE,OAAO,KAAK,cAAc,MAAM,4BAA4B,CAAA;AAC5D,OAAO,KAAK,IAAI,MAAM,kBAAkB,CAAA","sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * as assignModerator from './report/assignModerator.js'\nexport * as getAssignments from './report/getAssignments.js'\nexport * as getHistoricalStats from './report/getHistoricalStats.js'\nexport * as getLatestReport from './report/getLatestReport.js'\nexport * as getLiveStats from './report/getLiveStats.js'\nexport * as getReport from './report/getReport.js'\nexport * as listActivities from './report/listActivities.js'\nexport * as queryReports from './report/queryReports.js'\nexport * as reassignQueue from './report/reassignQueue.js'\nexport * as refreshStats from './report/refreshStats.js'\nexport * as unassignModerator from './report/unassignModerator.js'\nexport * as createActivity from './report/createActivity.js'\nexport * as defs from './report/defs.js'\n"]}
1
+ {"version":3,"file":"report.js","sourceRoot":"","sources":["../../../../src/lexicons/tools/ozone/report.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,eAAe,MAAM,6BAA6B,CAAA;AAC9D,OAAO,KAAK,cAAc,MAAM,4BAA4B,CAAA;AAC5D,OAAO,KAAK,kBAAkB,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,eAAe,MAAM,6BAA6B,CAAA;AAC9D,OAAO,KAAK,YAAY,MAAM,0BAA0B,CAAA;AACxD,OAAO,KAAK,SAAS,MAAM,uBAAuB,CAAA;AAClD,OAAO,KAAK,cAAc,MAAM,4BAA4B,CAAA;AAC5D,OAAO,KAAK,eAAe,MAAM,6BAA6B,CAAA;AAC9D,OAAO,KAAK,YAAY,MAAM,0BAA0B,CAAA;AACxD,OAAO,KAAK,aAAa,MAAM,2BAA2B,CAAA;AAC1D,OAAO,KAAK,YAAY,MAAM,0BAA0B,CAAA;AACxD,OAAO,KAAK,iBAAiB,MAAM,+BAA+B,CAAA;AAClE,OAAO,KAAK,cAAc,MAAM,4BAA4B,CAAA;AAC5D,OAAO,KAAK,IAAI,MAAM,kBAAkB,CAAA","sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * as assignModerator from './report/assignModerator.js'\nexport * as getAssignments from './report/getAssignments.js'\nexport * as getHistoricalStats from './report/getHistoricalStats.js'\nexport * as getLatestReport from './report/getLatestReport.js'\nexport * as getLiveStats from './report/getLiveStats.js'\nexport * as getReport from './report/getReport.js'\nexport * as listActivities from './report/listActivities.js'\nexport * as queryActivities from './report/queryActivities.js'\nexport * as queryReports from './report/queryReports.js'\nexport * as reassignQueue from './report/reassignQueue.js'\nexport * as refreshStats from './report/refreshStats.js'\nexport * as unassignModerator from './report/unassignModerator.js'\nexport * as createActivity from './report/createActivity.js'\nexport * as defs from './report/defs.js'\n"]}
@@ -1,8 +1,11 @@
1
1
  import { IncomingHttpHeaders } from 'node:http';
2
2
  import { Readable } from 'node:stream';
3
3
  import { Request } from 'express';
4
+ import { Dispatcher } from 'undici';
4
5
  import { CatchallHandler, HandlerPipeThroughBuffer, HandlerPipeThroughStream, XRPCError as XRPCServerError } from '@atproto/xrpc-server';
6
+ import { ProxyConfig } from './config/config.js';
5
7
  import { AppContext } from './context.js';
8
+ export declare function buildProxyAgent(cfg: ProxyConfig): Dispatcher;
6
9
  export declare const proxyHandler: (ctx: AppContext) => CatchallHandler;
7
10
  export type PipethroughOptions = {
8
11
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"pipethrough.d.ts","sourceRoot":"","sources":["../src/pipethrough.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAkB,MAAM,WAAW,CAAA;AAC/D,OAAO,EAAe,QAAQ,EAAY,MAAM,aAAa,CAAA;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AASjC,OAAO,EACL,eAAe,EACf,wBAAwB,EACxB,wBAAwB,EAIxB,SAAS,IAAI,eAAe,EAG7B,MAAM,sBAAsB,CAAA;AAG7B,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAIzC,eAAO,MAAM,YAAY,QAAS,UAAU,KAAG,eAiG9C,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;;OAGG;IACH,GAA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, Pool, interceptors } from 'undici';
2
3
  import { decodeStream, getServiceEndpoint, omit, streamToNodeBuffer, } from '@atproto/common';
3
4
  import { InternalServerError, InvalidRequestError, ResponseType, XRPCError as XRPCServerError, excludeErrorResult, parseReqNsid, } from '@atproto/xrpc-server';
5
+ import { isUnicastIp, unicastLookup } from '@atproto-labs/fetch-node';
4
6
  import { buildProxiedContentEncoding } from '@atproto-labs/xrpc-utils';
5
7
  import { isAccessPrivileged } from './auth-scope.js';
6
8
  import { chat, com, tools } from './lexicons/index.js';
7
9
  import { httpLogger } from './logger.js';
10
+ export function buildProxyAgent(cfg) {
11
+ const agent = new Agent({
12
+ allowH2: cfg.allowHTTP2,
13
+ headersTimeout: cfg.headersTimeout,
14
+ maxResponseSize: cfg.maxResponseSize,
15
+ bodyTimeout: cfg.bodyTimeout,
16
+ factory: cfg.disableSsrfProtection
17
+ ? undefined
18
+ : (origin, opts) => {
19
+ const { protocol, hostname } = origin instanceof URL ? origin : new URL(origin);
20
+ if (protocol !== 'https:') {
21
+ throw new Error(`Forbidden protocol "${protocol}"`);
22
+ }
23
+ if (isUnicastIp(hostname) === false) {
24
+ throw new Error('Hostname resolved to non-unicast address');
25
+ }
26
+ return new Pool(origin, opts);
27
+ },
28
+ connect: {
29
+ lookup: cfg.disableSsrfProtection ? undefined : unicastLookup,
30
+ },
31
+ });
32
+ return agent.compose(cfg.maxRetries > 0
33
+ ? interceptors.retry({
34
+ statusCodes: [], // Only retry on socket errors
35
+ methods: ['GET', 'HEAD'],
36
+ maxRetries: cfg.maxRetries,
37
+ })
38
+ : (dispatch) => dispatch);
39
+ }
8
40
  export const proxyHandler = (ctx) => {
9
41
  const performAuth = ctx.authVerifier.authorization({
10
42
  authorize: (permissions, { params }) => permissions.assertRpc(params),