@atproto/api 0.23.2 → 0.24.0

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 (61) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/client/index.d.ts +33 -0
  3. package/dist/client/index.d.ts.map +1 -1
  4. package/dist/client/index.js +63 -0
  5. package/dist/client/index.js.map +1 -1
  6. package/dist/client/lexicons.d.ts +3368 -1656
  7. package/dist/client/lexicons.d.ts.map +1 -1
  8. package/dist/client/lexicons.js +1017 -77
  9. package/dist/client/lexicons.js.map +1 -1
  10. package/dist/client/types/tools/ozone/inbox/defs.d.ts +94 -4
  11. package/dist/client/types/tools/ozone/inbox/defs.d.ts.map +1 -1
  12. package/dist/client/types/tools/ozone/inbox/defs.js +56 -0
  13. package/dist/client/types/tools/ozone/inbox/defs.js.map +1 -1
  14. package/dist/client/types/tools/ozone/inbox/getAccountStatus.d.ts +29 -0
  15. package/dist/client/types/tools/ozone/inbox/getAccountStatus.d.ts.map +1 -0
  16. package/dist/client/types/tools/ozone/inbox/getAccountStatus.js +14 -0
  17. package/dist/client/types/tools/ozone/inbox/getAccountStatus.js.map +1 -0
  18. package/dist/client/types/tools/ozone/inbox/getActionedSubject.d.ts +31 -0
  19. package/dist/client/types/tools/ozone/inbox/getActionedSubject.d.ts.map +1 -0
  20. package/dist/client/types/tools/ozone/inbox/getActionedSubject.js +23 -0
  21. package/dist/client/types/tools/ozone/inbox/getActionedSubject.js.map +1 -0
  22. package/dist/client/types/tools/ozone/inbox/getNotificationPreferences.d.ts +24 -0
  23. package/dist/client/types/tools/ozone/inbox/getNotificationPreferences.d.ts.map +1 -0
  24. package/dist/client/types/tools/ozone/inbox/getNotificationPreferences.js +14 -0
  25. package/dist/client/types/tools/ozone/inbox/getNotificationPreferences.js.map +1 -0
  26. package/dist/client/types/tools/ozone/inbox/getReport.d.ts +66 -0
  27. package/dist/client/types/tools/ozone/inbox/getReport.d.ts.map +1 -0
  28. package/dist/client/types/tools/ozone/inbox/getReport.js +37 -0
  29. package/dist/client/types/tools/ozone/inbox/getReport.js.map +1 -0
  30. package/dist/client/types/tools/ozone/inbox/getUnreadCount.d.ts +34 -0
  31. package/dist/client/types/tools/ozone/inbox/getUnreadCount.d.ts.map +1 -0
  32. package/dist/client/types/tools/ozone/inbox/getUnreadCount.js +21 -0
  33. package/dist/client/types/tools/ozone/inbox/getUnreadCount.js.map +1 -0
  34. package/dist/client/types/tools/ozone/inbox/listActionedSubjects.d.ts +32 -0
  35. package/dist/client/types/tools/ozone/inbox/listActionedSubjects.d.ts.map +1 -0
  36. package/dist/client/types/tools/ozone/inbox/listActionedSubjects.js +14 -0
  37. package/dist/client/types/tools/ozone/inbox/listActionedSubjects.js.map +1 -0
  38. package/dist/client/types/tools/ozone/inbox/listNotifications.d.ts +30 -0
  39. package/dist/client/types/tools/ozone/inbox/listNotifications.d.ts.map +1 -0
  40. package/dist/client/types/tools/ozone/inbox/listNotifications.js +14 -0
  41. package/dist/client/types/tools/ozone/inbox/listNotifications.js.map +1 -0
  42. package/dist/client/types/tools/ozone/inbox/listReports.d.ts +58 -0
  43. package/dist/client/types/tools/ozone/inbox/listReports.d.ts.map +1 -0
  44. package/dist/client/types/tools/ozone/inbox/listReports.js +21 -0
  45. package/dist/client/types/tools/ozone/inbox/listReports.js.map +1 -0
  46. package/dist/client/types/tools/ozone/inbox/putNotificationPreferences.d.ts +25 -0
  47. package/dist/client/types/tools/ozone/inbox/putNotificationPreferences.d.ts.map +1 -0
  48. package/dist/client/types/tools/ozone/inbox/putNotificationPreferences.js +14 -0
  49. package/dist/client/types/tools/ozone/inbox/putNotificationPreferences.js.map +1 -0
  50. package/dist/client/types/tools/ozone/inbox/updateSeen.d.ts +27 -0
  51. package/dist/client/types/tools/ozone/inbox/updateSeen.d.ts.map +1 -0
  52. package/dist/client/types/tools/ozone/inbox/updateSeen.js +14 -0
  53. package/dist/client/types/tools/ozone/inbox/updateSeen.js.map +1 -0
  54. package/dist/client/types/tools/ozone/moderation/defs.d.ts +6 -0
  55. package/dist/client/types/tools/ozone/moderation/defs.d.ts.map +1 -1
  56. package/dist/client/types/tools/ozone/moderation/defs.js.map +1 -1
  57. package/dist/client/types/tools/ozone/server/getCapabilities.d.ts +27 -0
  58. package/dist/client/types/tools/ozone/server/getCapabilities.d.ts.map +1 -0
  59. package/dist/client/types/tools/ozone/server/getCapabilities.js +21 -0
  60. package/dist/client/types/tools/ozone/server/getCapabilities.js.map +1 -0
  61. package/package.json +3 -3
@@ -20,6 +20,7 @@ export interface SubjectView {
20
20
  actionCount?: number;
21
21
  createdAt: string;
22
22
  updatedAt: string;
23
+ isRead: boolean;
23
24
  }
24
25
  export declare function isSubjectView<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "tools.ozone.inbox.defs", "subjectView">;
25
26
  export declare function validateSubjectView<V>(v: V): ValidationResult<SubjectView & V>;
@@ -41,8 +42,6 @@ export interface AppealView {
41
42
  appealedAt?: string;
42
43
  /** When the appeal's report was closed. */
43
44
  resolvedAt?: string;
44
- /** Moderator explanation, from the publicNote on the closing activity. Absent if none was written. */
45
- note?: string;
46
45
  appealableUntil?: string;
47
46
  }
48
47
  export declare function isAppealView<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "tools.ozone.inbox.defs", "appealView">;
@@ -60,9 +59,100 @@ export interface ActionView {
60
59
  expiresAt?: string;
61
60
  /** Label values, for labelApplied/labelRemoved. */
62
61
  labels?: string[];
63
- /** Policies that were applied in this action. */
64
- policies?: string[];
62
+ /** Policies applied by a takedown action. */
63
+ policies?: PolicyView[];
65
64
  }
66
65
  export declare function isActionView<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "tools.ozone.inbox.defs", "actionView">;
67
66
  export declare function validateActionView<V>(v: V): ValidationResult<ActionView & V>;
67
+ export interface PolicyView {
68
+ $type?: 'tools.ozone.inbox.defs#policyView';
69
+ key: string;
70
+ displayName: string;
71
+ link: string;
72
+ }
73
+ export declare function isPolicyView<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "tools.ozone.inbox.defs", "policyView">;
74
+ export declare function validatePolicyView<V>(v: V): ValidationResult<PolicyView & V>;
75
+ /** A subject with a page of its action history and an aggregate report summary. Follow cursor to retrieve older actions; enforcement and appeal describe the current subject state on every page. */
76
+ export interface SubjectViewDetail {
77
+ $type?: 'tools.ozone.inbox.defs#subjectViewDetail';
78
+ src: string;
79
+ isRead: boolean;
80
+ subject: $Typed<ComAtprotoAdminDefs.RepoRef> | $Typed<ComAtprotoRepoStrongRef.Main> | {
81
+ $type: string;
82
+ };
83
+ /** Raw record JSON for the subject, when the subject is a record and the record is available. */
84
+ record?: {
85
+ [_ in string]: unknown;
86
+ };
87
+ enforcement: EnforcementView;
88
+ appeal?: AppealView;
89
+ availableActions?: ('appeal' | (string & {}))[];
90
+ /** A page of action history, most recent first. Reversal timestamps include changes outside this page. */
91
+ actions: ActionView[];
92
+ /** Cursor for the next page of action history. Omitted when no older actions remain. */
93
+ cursor?: string;
94
+ reports?: ReportsSummary;
95
+ createdAt: string;
96
+ updatedAt: string;
97
+ }
98
+ export declare function isSubjectViewDetail<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "tools.ozone.inbox.defs", "subjectViewDetail">;
99
+ export declare function validateSubjectViewDetail<V>(v: V): ValidationResult<SubjectViewDetail & V>;
100
+ /** Aggregate view of reports filed against this subject. Deliberately carries no report IDs, no count, and no reporter identities. */
101
+ export interface ReportsSummary {
102
+ $type?: 'tools.ozone.inbox.defs#reportsSummary';
103
+ /** Distinct reason types reported, deduplicated and unordered. Excludes reasonAppeal. */
104
+ reasonTypes: string[];
105
+ /** Day of the earliest report, truncated to midnight UTC. Render as a date; the time component is not meaningful. */
106
+ firstReportedOn: string;
107
+ /** Day of the most recent report, truncated to midnight UTC. Render as a date; the time component is not meaningful. */
108
+ lastReportedOn: string;
109
+ }
110
+ export declare function isReportsSummary<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "tools.ozone.inbox.defs", "reportsSummary">;
111
+ export declare function validateReportsSummary<V>(v: V): ValidationResult<ReportsSummary & V>;
112
+ export interface Notification {
113
+ $type?: 'tools.ozone.inbox.defs#notification';
114
+ id: number;
115
+ reason: 'reportResolved' | 'reportReopened' | 'actionTaken' | 'actionReversed' | 'appealResolved' | 'standingChanged' | (string & {});
116
+ target: $Typed<ReportRef> | $Typed<SubjectRef> | $Typed<StandingRef> | {
117
+ $type: string;
118
+ };
119
+ isRead: boolean;
120
+ createdAt: string;
121
+ }
122
+ export declare function isNotification<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "tools.ozone.inbox.defs", "notification">;
123
+ export declare function validateNotification<V>(v: V): ValidationResult<Notification & V>;
124
+ export interface NotificationPreferences {
125
+ $type?: 'tools.ozone.inbox.defs#notificationPreferences';
126
+ push: boolean;
127
+ }
128
+ export declare function isNotificationPreferences<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "tools.ozone.inbox.defs", "notificationPreferences">;
129
+ export declare function validateNotificationPreferences<V>(v: V): ValidationResult<NotificationPreferences & V>;
130
+ /** Reference to a report by its report table ID, as used by getReport and Ozone's report detail page. */
131
+ export interface ReportRef {
132
+ $type?: 'tools.ozone.inbox.defs#reportRef';
133
+ reportId: number;
134
+ subject?: $Typed<ComAtprotoAdminDefs.RepoRef> | $Typed<ComAtprotoRepoStrongRef.Main> | {
135
+ $type: string;
136
+ };
137
+ status?: 'pending' | 'resolved' | (string & {});
138
+ }
139
+ export declare function isReportRef<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "tools.ozone.inbox.defs", "reportRef">;
140
+ export declare function validateReportRef<V>(v: V): ValidationResult<ReportRef & V>;
141
+ export interface SubjectRef {
142
+ $type?: 'tools.ozone.inbox.defs#subjectRef';
143
+ subject: $Typed<ComAtprotoAdminDefs.RepoRef> | $Typed<ComAtprotoRepoStrongRef.Main> | {
144
+ $type: string;
145
+ };
146
+ actionType?: string;
147
+ actionId?: number;
148
+ }
149
+ export declare function isSubjectRef<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "tools.ozone.inbox.defs", "subjectRef">;
150
+ export declare function validateSubjectRef<V>(v: V): ValidationResult<SubjectRef & V>;
151
+ export interface StandingRef {
152
+ $type?: 'tools.ozone.inbox.defs#standingRef';
153
+ standing: 'good' | 'warning' | 'atRisk' | (string & {});
154
+ previousStanding?: 'good' | 'warning' | 'atRisk' | (string & {});
155
+ }
156
+ export declare function isStandingRef<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "tools.ozone.inbox.defs", "standingRef">;
157
+ export declare function validateStandingRef<V>(v: V): ValidationResult<StandingRef & V>;
68
158
  //# sourceMappingURL=defs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/inbox/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAGjE,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,KAAK,mBAAmB,MAAM,oCAAoC,CAAA;AAC9E,OAAO,KAAK,KAAK,uBAAuB,MAAM,wCAAwC,CAAA;AAMtF,gFAAgF;AAChF,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,oCAAoC,CAAA;IAC5C,2DAA2D;IAC3D,GAAG,EAAE,MAAM,CAAA;IACX,OAAO,EACH,MAAM,CAAC,mBAAmB,CAAC,OAAO,CAAC,GACnC,MAAM,CAAC,uBAAuB,CAAC,IAAI,CAAC,GACpC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IACrB,WAAW,EAAE,eAAe,CAAA;IAC5B,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB,gBAAgB,CAAC,EAAE,CAAC,QAAQ,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC,EAAE,CAAA;IAC/C,YAAY,CAAC,EAAE,UAAU,CAAA;IACzB,WAAW,CAAC,EAAE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C,OAAO,CAAC,GACnC,MAAM,CAAC,uBAAuB,CAAC,IAAI,CAAC,GACpC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IACrB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAID,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8FAEnC;AAED,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,oCAEzC;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,oCAAoC,CAAA;IAC5C,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IACvD,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;CACjE;AAID,wBAAgB,aAAa,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,+FAEpC;AAED,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,qCAE1C"}
@@ -35,4 +35,60 @@ export function isActionView(v) {
35
35
  export function validateActionView(v) {
36
36
  return validate(v, id, hashActionView);
37
37
  }
38
+ const hashPolicyView = 'policyView';
39
+ export function isPolicyView(v) {
40
+ return is$typed(v, id, hashPolicyView);
41
+ }
42
+ export function validatePolicyView(v) {
43
+ return validate(v, id, hashPolicyView);
44
+ }
45
+ const hashSubjectViewDetail = 'subjectViewDetail';
46
+ export function isSubjectViewDetail(v) {
47
+ return is$typed(v, id, hashSubjectViewDetail);
48
+ }
49
+ export function validateSubjectViewDetail(v) {
50
+ return validate(v, id, hashSubjectViewDetail);
51
+ }
52
+ const hashReportsSummary = 'reportsSummary';
53
+ export function isReportsSummary(v) {
54
+ return is$typed(v, id, hashReportsSummary);
55
+ }
56
+ export function validateReportsSummary(v) {
57
+ return validate(v, id, hashReportsSummary);
58
+ }
59
+ const hashNotification = 'notification';
60
+ export function isNotification(v) {
61
+ return is$typed(v, id, hashNotification);
62
+ }
63
+ export function validateNotification(v) {
64
+ return validate(v, id, hashNotification);
65
+ }
66
+ const hashNotificationPreferences = 'notificationPreferences';
67
+ export function isNotificationPreferences(v) {
68
+ return is$typed(v, id, hashNotificationPreferences);
69
+ }
70
+ export function validateNotificationPreferences(v) {
71
+ return validate(v, id, hashNotificationPreferences);
72
+ }
73
+ const hashReportRef = 'reportRef';
74
+ export function isReportRef(v) {
75
+ return is$typed(v, id, hashReportRef);
76
+ }
77
+ export function validateReportRef(v) {
78
+ return validate(v, id, hashReportRef);
79
+ }
80
+ const hashSubjectRef = 'subjectRef';
81
+ export function isSubjectRef(v) {
82
+ return is$typed(v, id, hashSubjectRef);
83
+ }
84
+ export function validateSubjectRef(v) {
85
+ return validate(v, id, hashSubjectRef);
86
+ }
87
+ const hashStandingRef = 'standingRef';
88
+ export function isStandingRef(v) {
89
+ return is$typed(v, id, hashStandingRef);
90
+ }
91
+ export function validateStandingRef(v) {
92
+ return validate(v, id, hashStandingRef);
93
+ }
38
94
  //# sourceMappingURL=defs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/inbox/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAyB,OAAO,EAAE,MAAM,kBAAkB,CAAA;AACjE,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACtC,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAEL,QAAQ,IAAI,SAAS,GAEtB,MAAM,qBAAqB,CAAA;AAI5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,wBAAwB,CAAA;AAoBnC,MAAM,eAAe,GAAG,aAAa,CAAA;AAErC,MAAM,UAAU,aAAa,CAAI,CAAI;IACnC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,eAAe,CAAC,CAAA;AACzC,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAI,CAAI;IACzC,OAAO,QAAQ,CAAkB,CAAC,EAAE,EAAE,EAAE,eAAe,CAAC,CAAA;AAC1D,CAAC;AAaD,MAAM,mBAAmB,GAAG,iBAAiB,CAAA;AAE7C,MAAM,UAAU,iBAAiB,CAAI,CAAI;IACvC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,mBAAmB,CAAC,CAAA;AAC7C,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAI,CAAI;IAC7C,OAAO,QAAQ,CAAsB,CAAC,EAAE,EAAE,EAAE,mBAAmB,CAAC,CAAA;AAClE,CAAC;AAeD,MAAM,cAAc,GAAG,YAAY,CAAA;AAEnC,MAAM,UAAU,YAAY,CAAI,CAAI;IAClC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,cAAc,CAAC,CAAA;AACxC,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAI,CAAI;IACxC,OAAO,QAAQ,CAAiB,CAAC,EAAE,EAAE,EAAE,cAAc,CAAC,CAAA;AACxD,CAAC;AAmBD,MAAM,cAAc,GAAG,YAAY,CAAA;AAEnC,MAAM,UAAU,YAAY,CAAI,CAAI;IAClC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,cAAc,CAAC,CAAA;AACxC,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAI,CAAI;IACxC,OAAO,QAAQ,CAAiB,CAAC,EAAE,EAAE,EAAE,cAAc,CAAC,CAAA;AACxD,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\nimport type * as ComAtprotoAdminDefs from '../../../com/atproto/admin/defs.js'\nimport type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'tools.ozone.inbox.defs'\n\n/** A subject belonging to the viewer that has moderation actions against it. */\nexport interface SubjectView {\n $type?: 'tools.ozone.inbox.defs#subjectView'\n /** DID of the moderation service that took the actions. */\n src: string\n subject:\n | $Typed<ComAtprotoAdminDefs.RepoRef>\n | $Typed<ComAtprotoRepoStrongRef.Main>\n | { $type: string }\n enforcement: EnforcementView\n appeal?: AppealView\n availableActions?: ('appeal' | (string & {}))[]\n latestAction?: ActionView\n actionCount?: number\n createdAt: string\n updatedAt: string\n}\n\nconst hashSubjectView = 'subjectView'\n\nexport function isSubjectView<V>(v: V) {\n return is$typed(v, id, hashSubjectView)\n}\n\nexport function validateSubjectView<V>(v: V) {\n return validate<SubjectView & V>(v, id, hashSubjectView)\n}\n\n/** The current enforcement state of a subject. */\nexport interface EnforcementView {\n $type?: 'tools.ozone.inbox.defs#enforcementView'\n state:\n 'none' | 'labeled' | 'removed' | 'suspended' | 'takendown' | (string & {})\n scope?: 'network' | 'app' | 'labelOnly' | (string & {})\n expiresAt?: string\n /** Active label values on the subject, excluding negated and expired labels. */\n labels?: string[]\n}\n\nconst hashEnforcementView = 'enforcementView'\n\nexport function isEnforcementView<V>(v: V) {\n return is$typed(v, id, hashEnforcementView)\n}\n\nexport function validateEnforcementView<V>(v: V) {\n return validate<EnforcementView & V>(v, id, hashEnforcementView)\n}\n\n/** The state of the viewer's appeal against the actions on a subject. */\nexport interface AppealView {\n $type?: 'tools.ozone.inbox.defs#appealView'\n state:\n 'none' | 'pending' | 'resolved' | 'superseded' | 'expired' | (string & {})\n appealedAt?: string\n /** When the appeal's report was closed. */\n resolvedAt?: string\n /** Moderator explanation, from the publicNote on the closing activity. Absent if none was written. */\n note?: string\n appealableUntil?: string\n}\n\nconst hashAppealView = 'appealView'\n\nexport function isAppealView<V>(v: V) {\n return is$typed(v, id, hashAppealView)\n}\n\nexport function validateAppealView<V>(v: V) {\n return validate<AppealView & V>(v, id, hashAppealView)\n}\n\n/** A single moderation action taken against a subject. */\nexport interface ActionView {\n $type?: 'tools.ozone.inbox.defs#actionView'\n /** Action ID (moderation event ID). */\n id: number\n /** Public action type. */\n type: string\n scope?: 'network' | 'app' | 'labelOnly' | (string & {})\n createdAt: string\n reversedAt?: string\n expiresAt?: string\n /** Label values, for labelApplied/labelRemoved. */\n labels?: string[]\n /** Policies that were applied in this action. */\n policies?: string[]\n}\n\nconst hashActionView = 'actionView'\n\nexport function isActionView<V>(v: V) {\n return is$typed(v, id, hashActionView)\n}\n\nexport function validateActionView<V>(v: V) {\n return validate<ActionView & V>(v, id, hashActionView)\n}\n"]}
1
+ {"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/inbox/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAyB,OAAO,EAAE,MAAM,kBAAkB,CAAA;AACjE,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACtC,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAEL,QAAQ,IAAI,SAAS,GAEtB,MAAM,qBAAqB,CAAA;AAI5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,wBAAwB,CAAA;AAqBnC,MAAM,eAAe,GAAG,aAAa,CAAA;AAErC,MAAM,UAAU,aAAa,CAAI,CAAI;IACnC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,eAAe,CAAC,CAAA;AACzC,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAI,CAAI;IACzC,OAAO,QAAQ,CAAkB,CAAC,EAAE,EAAE,EAAE,eAAe,CAAC,CAAA;AAC1D,CAAC;AAaD,MAAM,mBAAmB,GAAG,iBAAiB,CAAA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YD,MAAM,cAAc,GAAG,YAAY,CAAA;AAEnC,MAAM,UAAU,YAAY,CAAI,CAAI;IAClC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,cAAc,CAAC,CAAA;AACxC,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAI,CAAI;IACxC,OAAO,QAAQ,CAAiB,CAAC,EAAE,EAAE,EAAE,cAAc,CAAC,CAAA;AACxD,CAAC;AAQD,MAAM,eAAe,GAAG,aAAa,CAAA;AAErC,MAAM,UAAU,aAAa,CAAI,CAAI;IACnC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,eAAe,CAAC,CAAA;AACzC,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAI,CAAI;IACzC,OAAO,QAAQ,CAAkB,CAAC,EAAE,EAAE,EAAE,eAAe,CAAC,CAAA;AAC1D,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\nimport type * as ComAtprotoAdminDefs from '../../../com/atproto/admin/defs.js'\nimport type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'tools.ozone.inbox.defs'\n\n/** A subject belonging to the viewer that has moderation actions against it. */\nexport interface SubjectView {\n $type?: 'tools.ozone.inbox.defs#subjectView'\n /** DID of the moderation service that took the actions. */\n src: string\n subject:\n | $Typed<ComAtprotoAdminDefs.RepoRef>\n | $Typed<ComAtprotoRepoStrongRef.Main>\n | { $type: string }\n enforcement: EnforcementView\n appeal?: AppealView\n availableActions?: ('appeal' | (string & {}))[]\n latestAction?: ActionView\n actionCount?: number\n createdAt: string\n updatedAt: string\n isRead: boolean\n}\n\nconst hashSubjectView = 'subjectView'\n\nexport function isSubjectView<V>(v: V) {\n return is$typed(v, id, hashSubjectView)\n}\n\nexport function validateSubjectView<V>(v: V) {\n return validate<SubjectView & V>(v, id, hashSubjectView)\n}\n\n/** The current enforcement state of a subject. */\nexport interface EnforcementView {\n $type?: 'tools.ozone.inbox.defs#enforcementView'\n state:\n 'none' | 'labeled' | 'removed' | 'suspended' | 'takendown' | (string & {})\n scope?: 'network' | 'app' | 'labelOnly' | (string & {})\n expiresAt?: string\n /** Active label values on the subject, excluding negated and expired labels. */\n labels?: string[]\n}\n\nconst hashEnforcementView = 'enforcementView'\n\nexport function isEnforcementView<V>(v: V) {\n return is$typed(v, id, hashEnforcementView)\n}\n\nexport function validateEnforcementView<V>(v: V) {\n return validate<EnforcementView & V>(v, id, hashEnforcementView)\n}\n\n/** The state of the viewer's appeal against the actions on a subject. */\nexport interface AppealView {\n $type?: 'tools.ozone.inbox.defs#appealView'\n state:\n 'none' | 'pending' | 'resolved' | 'superseded' | 'expired' | (string & {})\n appealedAt?: string\n /** When the appeal's report was closed. */\n resolvedAt?: string\n appealableUntil?: string\n}\n\nconst hashAppealView = 'appealView'\n\nexport function isAppealView<V>(v: V) {\n return is$typed(v, id, hashAppealView)\n}\n\nexport function validateAppealView<V>(v: V) {\n return validate<AppealView & V>(v, id, hashAppealView)\n}\n\n/** A single moderation action taken against a subject. */\nexport interface ActionView {\n $type?: 'tools.ozone.inbox.defs#actionView'\n /** Action ID (moderation event ID). */\n id: number\n /** Public action type. */\n type: string\n scope?: 'network' | 'app' | 'labelOnly' | (string & {})\n createdAt: string\n reversedAt?: string\n expiresAt?: string\n /** Label values, for labelApplied/labelRemoved. */\n labels?: string[]\n /** Policies applied by a takedown action. */\n policies?: PolicyView[]\n}\n\nconst hashActionView = 'actionView'\n\nexport function isActionView<V>(v: V) {\n return is$typed(v, id, hashActionView)\n}\n\nexport function validateActionView<V>(v: V) {\n return validate<ActionView & V>(v, id, hashActionView)\n}\n\nexport interface PolicyView {\n $type?: 'tools.ozone.inbox.defs#policyView'\n key: string\n displayName: string\n link: string\n}\n\nconst hashPolicyView = 'policyView'\n\nexport function isPolicyView<V>(v: V) {\n return is$typed(v, id, hashPolicyView)\n}\n\nexport function validatePolicyView<V>(v: V) {\n return validate<PolicyView & V>(v, id, hashPolicyView)\n}\n\n/** A subject with a page of its action history and an aggregate report summary. Follow cursor to retrieve older actions; enforcement and appeal describe the current subject state on every page. */\nexport interface SubjectViewDetail {\n $type?: 'tools.ozone.inbox.defs#subjectViewDetail'\n src: string\n isRead: boolean\n subject:\n | $Typed<ComAtprotoAdminDefs.RepoRef>\n | $Typed<ComAtprotoRepoStrongRef.Main>\n | { $type: string }\n /** Raw record JSON for the subject, when the subject is a record and the record is available. */\n record?: { [_ in string]: unknown }\n enforcement: EnforcementView\n appeal?: AppealView\n availableActions?: ('appeal' | (string & {}))[]\n /** A page of action history, most recent first. Reversal timestamps include changes outside this page. */\n actions: ActionView[]\n /** Cursor for the next page of action history. Omitted when no older actions remain. */\n cursor?: string\n reports?: ReportsSummary\n createdAt: string\n updatedAt: string\n}\n\nconst hashSubjectViewDetail = 'subjectViewDetail'\n\nexport function isSubjectViewDetail<V>(v: V) {\n return is$typed(v, id, hashSubjectViewDetail)\n}\n\nexport function validateSubjectViewDetail<V>(v: V) {\n return validate<SubjectViewDetail & V>(v, id, hashSubjectViewDetail)\n}\n\n/** Aggregate view of reports filed against this subject. Deliberately carries no report IDs, no count, and no reporter identities. */\nexport interface ReportsSummary {\n $type?: 'tools.ozone.inbox.defs#reportsSummary'\n /** Distinct reason types reported, deduplicated and unordered. Excludes reasonAppeal. */\n reasonTypes: string[]\n /** Day of the earliest report, truncated to midnight UTC. Render as a date; the time component is not meaningful. */\n firstReportedOn: string\n /** Day of the most recent report, truncated to midnight UTC. Render as a date; the time component is not meaningful. */\n lastReportedOn: string\n}\n\nconst hashReportsSummary = 'reportsSummary'\n\nexport function isReportsSummary<V>(v: V) {\n return is$typed(v, id, hashReportsSummary)\n}\n\nexport function validateReportsSummary<V>(v: V) {\n return validate<ReportsSummary & V>(v, id, hashReportsSummary)\n}\n\nexport interface Notification {\n $type?: 'tools.ozone.inbox.defs#notification'\n id: number\n reason:\n | 'reportResolved'\n | 'reportReopened'\n | 'actionTaken'\n | 'actionReversed'\n | 'appealResolved'\n | 'standingChanged'\n | (string & {})\n target:\n | $Typed<ReportRef>\n | $Typed<SubjectRef>\n | $Typed<StandingRef>\n | { $type: string }\n isRead: boolean\n createdAt: string\n}\n\nconst hashNotification = 'notification'\n\nexport function isNotification<V>(v: V) {\n return is$typed(v, id, hashNotification)\n}\n\nexport function validateNotification<V>(v: V) {\n return validate<Notification & V>(v, id, hashNotification)\n}\n\nexport interface NotificationPreferences {\n $type?: 'tools.ozone.inbox.defs#notificationPreferences'\n push: boolean\n}\n\nconst hashNotificationPreferences = 'notificationPreferences'\n\nexport function isNotificationPreferences<V>(v: V) {\n return is$typed(v, id, hashNotificationPreferences)\n}\n\nexport function validateNotificationPreferences<V>(v: V) {\n return validate<NotificationPreferences & V>(\n v,\n id,\n hashNotificationPreferences,\n )\n}\n\n/** Reference to a report by its report table ID, as used by getReport and Ozone's report detail page. */\nexport interface ReportRef {\n $type?: 'tools.ozone.inbox.defs#reportRef'\n reportId: number\n subject?:\n | $Typed<ComAtprotoAdminDefs.RepoRef>\n | $Typed<ComAtprotoRepoStrongRef.Main>\n | { $type: string }\n status?: 'pending' | 'resolved' | (string & {})\n}\n\nconst hashReportRef = 'reportRef'\n\nexport function isReportRef<V>(v: V) {\n return is$typed(v, id, hashReportRef)\n}\n\nexport function validateReportRef<V>(v: V) {\n return validate<ReportRef & V>(v, id, hashReportRef)\n}\n\nexport interface SubjectRef {\n $type?: 'tools.ozone.inbox.defs#subjectRef'\n subject:\n | $Typed<ComAtprotoAdminDefs.RepoRef>\n | $Typed<ComAtprotoRepoStrongRef.Main>\n | { $type: string }\n actionType?: string\n actionId?: number\n}\n\nconst hashSubjectRef = 'subjectRef'\n\nexport function isSubjectRef<V>(v: V) {\n return is$typed(v, id, hashSubjectRef)\n}\n\nexport function validateSubjectRef<V>(v: V) {\n return validate<SubjectRef & V>(v, id, hashSubjectRef)\n}\n\nexport interface StandingRef {\n $type?: 'tools.ozone.inbox.defs#standingRef'\n standing: 'good' | 'warning' | 'atRisk' | (string & {})\n previousStanding?: 'good' | 'warning' | 'atRisk' | (string & {})\n}\n\nconst hashStandingRef = 'standingRef'\n\nexport function isStandingRef<V>(v: V) {\n return is$typed(v, id, hashStandingRef)\n}\n\nexport function validateStandingRef<V>(v: V) {\n return validate<StandingRef & V>(v, id, hashStandingRef)\n}\n"]}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { type HeadersMap } from '@atproto/xrpc';
5
+ export type QueryParams = {
6
+ /** Account to preview. Only Ozone staff can read another account; this does not change its read state. */
7
+ did?: string;
8
+ };
9
+ export type InputSchema = undefined;
10
+ export interface OutputSchema {
11
+ /** DID of the moderation service returning this status. */
12
+ src: string;
13
+ standing: 'good' | 'warning' | 'atRisk' | (string & {});
14
+ /** Newest account-status update or strike timestamp used to derive this standing, or the Unix epoch when neither exists. This is not a standing-transition timestamp; expiry can change standing without changing this value. */
15
+ updatedAt: string;
16
+ /** Time at which the current suspension expires. Present only for a temporary suspension. */
17
+ expiresAt?: string;
18
+ }
19
+ export interface CallOptions {
20
+ signal?: AbortSignal;
21
+ headers?: HeadersMap;
22
+ }
23
+ export interface Response {
24
+ success: boolean;
25
+ headers: HeadersMap;
26
+ data: OutputSchema;
27
+ }
28
+ export declare function toKnownErr(e: any): any;
29
+ //# sourceMappingURL=getAccountStatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAccountStatus.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/inbox/getAccountStatus.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,UAAU,EAAa,MAAM,eAAe,CAAA;AAc1D,MAAM,MAAM,WAAW,GAAG;IACxB,0GAA0G;IAC1G,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,2DAA2D;IAC3D,GAAG,EAAE,MAAM,CAAA;IACX,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IACvD,iOAAiO;IACjO,SAAS,EAAE,MAAM,CAAA;IACjB,6FAA6F;IAC7F,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,OAAO,CAAC,EAAE,UAAU,CAAA;CACrB;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,UAAU,CAAA;IACnB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAEhC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { XRPCError } from '@atproto/xrpc';
5
+ import { BlobRef } from '@atproto/lexicon';
6
+ import { CID } from 'multiformats/cid';
7
+ import { validate as _validate } from '../../../../lexicons.js';
8
+ import { is$typed as _is$typed, } from '../../../../util.js';
9
+ const is$typed = _is$typed, validate = _validate;
10
+ const id = 'tools.ozone.inbox.getAccountStatus';
11
+ export function toKnownErr(e) {
12
+ return e;
13
+ }
14
+ //# sourceMappingURL=getAccountStatus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAccountStatus.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/inbox/getAccountStatus.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAmB,SAAS,EAAE,MAAM,eAAe,CAAA;AAC1D,OAAO,EAAyB,OAAO,EAAE,MAAM,kBAAkB,CAAA;AACjE,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACtC,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAEL,QAAQ,IAAI,SAAS,GAEtB,MAAM,qBAAqB,CAAA;AAE5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,oCAAoC,CAAA;AA6B/C,MAAM,UAAU,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type HeadersMap, XRPCError } from '@atproto/xrpc'\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'tools.ozone.inbox.getAccountStatus'\n\nexport type QueryParams = {\n /** Account to preview. Only Ozone staff can read another account; this does not change its read state. */\n did?: string\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n /** DID of the moderation service returning this status. */\n src: string\n standing: 'good' | 'warning' | 'atRisk' | (string & {})\n /** Newest account-status update or strike timestamp used to derive this standing, or the Unix epoch when neither exists. This is not a standing-transition timestamp; expiry can change standing without changing this value. */\n updatedAt: string\n /** Time at which the current suspension expires. Present only for a temporary suspension. */\n expiresAt?: string\n}\n\nexport interface CallOptions {\n signal?: AbortSignal\n headers?: HeadersMap\n}\n\nexport interface Response {\n success: boolean\n headers: HeadersMap\n data: OutputSchema\n}\n\nexport function toKnownErr(e: any) {\n return e\n}\n"]}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { type HeadersMap, XRPCError } from '@atproto/xrpc';
5
+ import type * as ToolsOzoneInboxDefs from './defs.js';
6
+ export type QueryParams = {
7
+ /** Account to preview. Defaults to the authenticated account; another account requires an active moderator, triage, or admin credential. */
8
+ did?: string;
9
+ /** DID or AT-URI of the subject to retrieve. */
10
+ subject: string;
11
+ /** Maximum number of actions to return. */
12
+ limit?: number;
13
+ /** Opaque cursor for the next page of this subject's action history. */
14
+ cursor?: string;
15
+ };
16
+ export type InputSchema = undefined;
17
+ export type OutputSchema = ToolsOzoneInboxDefs.SubjectViewDetail;
18
+ export interface CallOptions {
19
+ signal?: AbortSignal;
20
+ headers?: HeadersMap;
21
+ }
22
+ export interface Response {
23
+ success: boolean;
24
+ headers: HeadersMap;
25
+ data: OutputSchema;
26
+ }
27
+ export declare class NotFoundError extends XRPCError {
28
+ constructor(src: XRPCError);
29
+ }
30
+ export declare function toKnownErr(e: any): any;
31
+ //# sourceMappingURL=getActionedSubject.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getActionedSubject.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/inbox/getActionedSubject.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAS1D,OAAO,KAAK,KAAK,mBAAmB,MAAM,WAAW,CAAA;AAMrD,MAAM,MAAM,WAAW,GAAG;IACxB,4IAA4I;IAC5I,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,gDAAgD;IAChD,OAAO,EAAE,MAAM,CAAA;IACf,2CAA2C;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,wEAAwE;IACxE,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AACnC,MAAM,MAAM,YAAY,GAAG,mBAAmB,CAAC,iBAAiB,CAAA;AAEhE,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,OAAO,CAAC,EAAE,UAAU,CAAA;CACrB;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,UAAU,CAAA;IACnB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,qBAAa,aAAc,SAAQ,SAAS;IAC1C,YAAY,GAAG,EAAE,SAAS,EAEzB;CACF;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAMhC"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { XRPCError } from '@atproto/xrpc';
5
+ import { BlobRef } from '@atproto/lexicon';
6
+ import { CID } from 'multiformats/cid';
7
+ import { validate as _validate } from '../../../../lexicons.js';
8
+ import { is$typed as _is$typed, } from '../../../../util.js';
9
+ const is$typed = _is$typed, validate = _validate;
10
+ const id = 'tools.ozone.inbox.getActionedSubject';
11
+ export class NotFoundError extends XRPCError {
12
+ constructor(src) {
13
+ super(src.status, src.error, src.message, src.headers, { cause: src });
14
+ }
15
+ }
16
+ export function toKnownErr(e) {
17
+ if (e instanceof XRPCError) {
18
+ if (e.error === 'NotFound')
19
+ return new NotFoundError(e);
20
+ }
21
+ return e;
22
+ }
23
+ //# sourceMappingURL=getActionedSubject.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getActionedSubject.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/inbox/getActionedSubject.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAmB,SAAS,EAAE,MAAM,eAAe,CAAA;AAC1D,OAAO,EAAyB,OAAO,EAAE,MAAM,kBAAkB,CAAA;AACjE,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACtC,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAEL,QAAQ,IAAI,SAAS,GAEtB,MAAM,qBAAqB,CAAA;AAG5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,sCAAsC,CAAA;AA0BjD,MAAM,OAAO,aAAc,SAAQ,SAAS;IAC1C,YAAY,GAAc;QACxB,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAA;IACxE,CAAC;CACF;AAED,MAAM,UAAU,UAAU,CAAC,CAAM;IAC/B,IAAI,CAAC,YAAY,SAAS,EAAE,CAAC;QAC3B,IAAI,CAAC,CAAC,KAAK,KAAK,UAAU;YAAE,OAAO,IAAI,aAAa,CAAC,CAAC,CAAC,CAAA;IACzD,CAAC;IAED,OAAO,CAAC,CAAA;AACV,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type HeadersMap, XRPCError } from '@atproto/xrpc'\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\nimport type * as ToolsOzoneInboxDefs from './defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'tools.ozone.inbox.getActionedSubject'\n\nexport type QueryParams = {\n /** Account to preview. Defaults to the authenticated account; another account requires an active moderator, triage, or admin credential. */\n did?: string\n /** DID or AT-URI of the subject to retrieve. */\n subject: string\n /** Maximum number of actions to return. */\n limit?: number\n /** Opaque cursor for the next page of this subject's action history. */\n cursor?: string\n}\nexport type InputSchema = undefined\nexport type OutputSchema = ToolsOzoneInboxDefs.SubjectViewDetail\n\nexport interface CallOptions {\n signal?: AbortSignal\n headers?: HeadersMap\n}\n\nexport interface Response {\n success: boolean\n headers: HeadersMap\n data: OutputSchema\n}\n\nexport class NotFoundError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n if (e.error === 'NotFound') return new NotFoundError(e)\n }\n\n return e\n}\n"]}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { type HeadersMap } from '@atproto/xrpc';
5
+ import type * as ToolsOzoneInboxDefs from './defs.js';
6
+ export type QueryParams = {
7
+ /** Account to preview. Only Ozone staff can read another account; this does not change its read state. */
8
+ did?: string;
9
+ };
10
+ export type InputSchema = undefined;
11
+ export interface OutputSchema {
12
+ preferences: ToolsOzoneInboxDefs.NotificationPreferences;
13
+ }
14
+ export interface CallOptions {
15
+ signal?: AbortSignal;
16
+ headers?: HeadersMap;
17
+ }
18
+ export interface Response {
19
+ success: boolean;
20
+ headers: HeadersMap;
21
+ data: OutputSchema;
22
+ }
23
+ export declare function toKnownErr(e: any): any;
24
+ //# sourceMappingURL=getNotificationPreferences.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getNotificationPreferences.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/inbox/getNotificationPreferences.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,UAAU,EAAa,MAAM,eAAe,CAAA;AAS1D,OAAO,KAAK,KAAK,mBAAmB,MAAM,WAAW,CAAA;AAMrD,MAAM,MAAM,WAAW,GAAG;IACxB,0GAA0G;IAC1G,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,WAAW,EAAE,mBAAmB,CAAC,uBAAuB,CAAA;CACzD;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,OAAO,CAAC,EAAE,UAAU,CAAA;CACrB;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,UAAU,CAAA;IACnB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAEhC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { XRPCError } from '@atproto/xrpc';
5
+ import { BlobRef } from '@atproto/lexicon';
6
+ import { CID } from 'multiformats/cid';
7
+ import { validate as _validate } from '../../../../lexicons.js';
8
+ import { is$typed as _is$typed, } from '../../../../util.js';
9
+ const is$typed = _is$typed, validate = _validate;
10
+ const id = 'tools.ozone.inbox.getNotificationPreferences';
11
+ export function toKnownErr(e) {
12
+ return e;
13
+ }
14
+ //# sourceMappingURL=getNotificationPreferences.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getNotificationPreferences.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/inbox/getNotificationPreferences.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAmB,SAAS,EAAE,MAAM,eAAe,CAAA;AAC1D,OAAO,EAAyB,OAAO,EAAE,MAAM,kBAAkB,CAAA;AACjE,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACtC,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAEL,QAAQ,IAAI,SAAS,GAEtB,MAAM,qBAAqB,CAAA;AAG5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,8CAA8C,CAAA;AAuBzD,MAAM,UAAU,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type HeadersMap, XRPCError } from '@atproto/xrpc'\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\nimport type * as ToolsOzoneInboxDefs from './defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'tools.ozone.inbox.getNotificationPreferences'\n\nexport type QueryParams = {\n /** Account to preview. Only Ozone staff can read another account; this does not change its read state. */\n did?: string\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n preferences: ToolsOzoneInboxDefs.NotificationPreferences\n}\n\nexport interface CallOptions {\n signal?: AbortSignal\n headers?: HeadersMap\n}\n\nexport interface Response {\n success: boolean\n headers: HeadersMap\n data: OutputSchema\n}\n\nexport function toKnownErr(e: any) {\n return e\n}\n"]}
@@ -0,0 +1,66 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { type HeadersMap, XRPCError } from '@atproto/xrpc';
5
+ import { type ValidationResult } from '@atproto/lexicon';
6
+ import { type $Typed } from '../../../../util.js';
7
+ import type * as ComAtprotoAdminDefs from '../../../com/atproto/admin/defs.js';
8
+ import type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js';
9
+ import type * as ChatBskyConvoDefs from '../../../chat/bsky/convo/defs.js';
10
+ export type QueryParams = {
11
+ /** Reporter to preview. Defaults to the authenticated account; another account requires an active moderator, triage, or admin credential. */
12
+ did?: string;
13
+ /** Report ID (report table ID), as returned by listReports. */
14
+ id: number;
15
+ };
16
+ export type InputSchema = undefined;
17
+ export interface OutputSchema {
18
+ report: ReportView;
19
+ resolution?: ResolutionView;
20
+ }
21
+ export interface CallOptions {
22
+ signal?: AbortSignal;
23
+ headers?: HeadersMap;
24
+ }
25
+ export interface Response {
26
+ success: boolean;
27
+ headers: HeadersMap;
28
+ data: OutputSchema;
29
+ }
30
+ export declare class NotFoundError extends XRPCError {
31
+ constructor(src: XRPCError);
32
+ }
33
+ export declare function toKnownErr(e: any): any;
34
+ export interface ReportView {
35
+ $type?: 'tools.ozone.inbox.getReport#reportView';
36
+ /** DID of the moderation service that received the report. */
37
+ src: string;
38
+ /** Report ID (report table ID), used by Ozone's report detail page. */
39
+ id: number;
40
+ /** The exact fully-qualified reason NSID submitted with and stored on the report. */
41
+ reasonType: string;
42
+ reason?: string;
43
+ subject: $Typed<ComAtprotoAdminDefs.RepoRef> | $Typed<ComAtprotoRepoStrongRef.Main> | $Typed<ChatBskyConvoDefs.MessageRef> | $Typed<ChatBskyConvoDefs.ConvoRef> | {
44
+ $type: string;
45
+ };
46
+ /** Raw record JSON for the subject, when the subject is a record and the record is available. */
47
+ record?: {
48
+ [_ in string]: unknown;
49
+ };
50
+ status: 'pending' | 'resolved' | (string & {});
51
+ createdAt: string;
52
+ updatedAt: string;
53
+ }
54
+ export declare function isReportView<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "tools.ozone.inbox.getReport", "reportView">;
55
+ export declare function validateReportView<V>(v: V): ValidationResult<ReportView & V>;
56
+ export interface ResolutionView {
57
+ $type?: 'tools.ozone.inbox.getReport#resolutionView';
58
+ outcome: 'actionTaken' | 'noAction' | 'other' | (string & {});
59
+ /** Public action associated with this report's resolution. See the public action vocabulary table. */
60
+ actionTaken?: string;
61
+ scope?: 'network' | 'app' | 'labelOnly' | (string & {});
62
+ resolvedAt: string;
63
+ }
64
+ export declare function isResolutionView<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "tools.ozone.inbox.getReport", "resolutionView">;
65
+ export declare function validateResolutionView<V>(v: V): ValidationResult<ResolutionView & V>;
66
+ //# sourceMappingURL=getReport.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getReport.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/inbox/getReport.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC1D,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAGjE,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,qBAAqB,CAAA;AAC5B,OAAO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KAAE,CAAA;IACrB,iGAAiG;IACjG,MAAM,CAAC,EAAE;SAAG,CAAC,IAAI,MAAM,GAAG,OAAO;KAAE,CAAA;IACnC,MAAM,EAAE,SAAS,GAAG,UAAU,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IAC9C,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;CAClB;AAID,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,mGAEnC;AAED,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,oCAEzC;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,4CAA4C,CAAA;IACpD,OAAO,EAAE,aAAa,GAAG,UAAU,GAAG,OAAO,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IAC7D,sGAAsG;IACtG,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,CAAC,EAAE,SAAS,GAAG,KAAK,GAAG,WAAW,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IACvD,UAAU,EAAE,MAAM,CAAA;CACnB;AAID,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,uGAEvC;AAED,wBAAgB,sBAAsB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,wCAE7C"}
@@ -0,0 +1,37 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { XRPCError } from '@atproto/xrpc';
5
+ import { BlobRef } from '@atproto/lexicon';
6
+ import { CID } from 'multiformats/cid';
7
+ import { validate as _validate } from '../../../../lexicons.js';
8
+ import { is$typed as _is$typed, } from '../../../../util.js';
9
+ const is$typed = _is$typed, validate = _validate;
10
+ const id = 'tools.ozone.inbox.getReport';
11
+ export class NotFoundError extends XRPCError {
12
+ constructor(src) {
13
+ super(src.status, src.error, src.message, src.headers, { cause: src });
14
+ }
15
+ }
16
+ export function toKnownErr(e) {
17
+ if (e instanceof XRPCError) {
18
+ if (e.error === 'NotFound')
19
+ return new NotFoundError(e);
20
+ }
21
+ return e;
22
+ }
23
+ const hashReportView = 'reportView';
24
+ export function isReportView(v) {
25
+ return is$typed(v, id, hashReportView);
26
+ }
27
+ export function validateReportView(v) {
28
+ return validate(v, id, hashReportView);
29
+ }
30
+ const hashResolutionView = 'resolutionView';
31
+ export function isResolutionView(v) {
32
+ return is$typed(v, id, hashResolutionView);
33
+ }
34
+ export function validateResolutionView(v) {
35
+ return validate(v, id, hashResolutionView);
36
+ }
37
+ //# sourceMappingURL=getReport.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getReport.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/inbox/getReport.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAmB,SAAS,EAAE,MAAM,eAAe,CAAA;AAC1D,OAAO,EAAyB,OAAO,EAAE,MAAM,kBAAkB,CAAA;AACjE,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACtC,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAEL,QAAQ,IAAI,SAAS,GAEtB,MAAM,qBAAqB,CAAA;AAK5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,6BAA6B,CAAA;AA0BxC,MAAM,OAAO,aAAc,SAAQ,SAAS;IAC1C,YAAY,GAAc;QACxB,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAA;IACxE,CAAC;CACF;AAED,MAAM,UAAU,UAAU,CAAC,CAAM;IAC/B,IAAI,CAAC,YAAY,SAAS,EAAE,CAAC;QAC3B,IAAI,CAAC,CAAC,KAAK,KAAK,UAAU;YAAE,OAAO,IAAI,aAAa,CAAC,CAAC,CAAC,CAAA;IACzD,CAAC;IAED,OAAO,CAAC,CAAA;AACV,CAAC;AAwBD,MAAM,cAAc,GAAG,YAAY,CAAA;AAEnC,MAAM,UAAU,YAAY,CAAI,CAAI;IAClC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,cAAc,CAAC,CAAA;AACxC,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAI,CAAI;IACxC,OAAO,QAAQ,CAAiB,CAAC,EAAE,EAAE,EAAE,cAAc,CAAC,CAAA;AACxD,CAAC;AAWD,MAAM,kBAAkB,GAAG,gBAAgB,CAAA;AAE3C,MAAM,UAAU,gBAAgB,CAAI,CAAI;IACtC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,kBAAkB,CAAC,CAAA;AAC5C,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAI,CAAI;IAC5C,OAAO,QAAQ,CAAqB,CAAC,EAAE,EAAE,EAAE,kBAAkB,CAAC,CAAA;AAChE,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type HeadersMap, XRPCError } from '@atproto/xrpc'\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\nimport type * as ComAtprotoAdminDefs from '../../../com/atproto/admin/defs.js'\nimport type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js'\nimport type * as ChatBskyConvoDefs from '../../../chat/bsky/convo/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'tools.ozone.inbox.getReport'\n\nexport type QueryParams = {\n /** Reporter to preview. Defaults to the authenticated account; another account requires an active moderator, triage, or admin credential. */\n did?: string\n /** Report ID (report table ID), as returned by listReports. */\n id: number\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n report: ReportView\n resolution?: ResolutionView\n}\n\nexport interface CallOptions {\n signal?: AbortSignal\n headers?: HeadersMap\n}\n\nexport interface Response {\n success: boolean\n headers: HeadersMap\n data: OutputSchema\n}\n\nexport class NotFoundError extends XRPCError {\n constructor(src: XRPCError) {\n super(src.status, src.error, src.message, src.headers, { cause: src })\n }\n}\n\nexport function toKnownErr(e: any) {\n if (e instanceof XRPCError) {\n if (e.error === 'NotFound') return new NotFoundError(e)\n }\n\n return e\n}\n\nexport interface ReportView {\n $type?: 'tools.ozone.inbox.getReport#reportView'\n /** DID of the moderation service that received the report. */\n src: string\n /** Report ID (report table ID), used by Ozone's report detail page. */\n id: number\n /** The exact fully-qualified reason NSID submitted with and stored on the report. */\n reasonType: string\n reason?: string\n subject:\n | $Typed<ComAtprotoAdminDefs.RepoRef>\n | $Typed<ComAtprotoRepoStrongRef.Main>\n | $Typed<ChatBskyConvoDefs.MessageRef>\n | $Typed<ChatBskyConvoDefs.ConvoRef>\n | { $type: string }\n /** Raw record JSON for the subject, when the subject is a record and the record is available. */\n record?: { [_ in string]: unknown }\n status: 'pending' | 'resolved' | (string & {})\n createdAt: string\n updatedAt: string\n}\n\nconst hashReportView = 'reportView'\n\nexport function isReportView<V>(v: V) {\n return is$typed(v, id, hashReportView)\n}\n\nexport function validateReportView<V>(v: V) {\n return validate<ReportView & V>(v, id, hashReportView)\n}\n\nexport interface ResolutionView {\n $type?: 'tools.ozone.inbox.getReport#resolutionView'\n outcome: 'actionTaken' | 'noAction' | 'other' | (string & {})\n /** Public action associated with this report's resolution. See the public action vocabulary table. */\n actionTaken?: string\n scope?: 'network' | 'app' | 'labelOnly' | (string & {})\n resolvedAt: string\n}\n\nconst hashResolutionView = 'resolutionView'\n\nexport function isResolutionView<V>(v: V) {\n return is$typed(v, id, hashResolutionView)\n}\n\nexport function validateResolutionView<V>(v: V) {\n return validate<ResolutionView & V>(v, id, hashResolutionView)\n}\n"]}
@@ -0,0 +1,34 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { type HeadersMap } from '@atproto/xrpc';
5
+ import { type ValidationResult } from '@atproto/lexicon';
6
+ export type QueryParams = {
7
+ section?: 'reports' | 'subjects' | 'accountStatus' | (string & {});
8
+ /** Account to preview. Only Ozone staff can read another account; this does not change its read state. */
9
+ did?: string;
10
+ };
11
+ export type InputSchema = undefined;
12
+ export interface OutputSchema {
13
+ unreadCounts: UnreadCounts;
14
+ }
15
+ export interface CallOptions {
16
+ signal?: AbortSignal;
17
+ headers?: HeadersMap;
18
+ }
19
+ export interface Response {
20
+ success: boolean;
21
+ headers: HeadersMap;
22
+ data: OutputSchema;
23
+ }
24
+ export declare function toKnownErr(e: any): any;
25
+ export interface UnreadCounts {
26
+ $type?: 'tools.ozone.inbox.getUnreadCount#unreadCounts';
27
+ total: number;
28
+ reports?: number;
29
+ subjects?: number;
30
+ accountStatus?: number;
31
+ }
32
+ export declare function isUnreadCounts<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "tools.ozone.inbox.getUnreadCount", "unreadCounts">;
33
+ export declare function validateUnreadCounts<V>(v: V): ValidationResult<UnreadCounts & V>;
34
+ //# sourceMappingURL=getUnreadCount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getUnreadCount.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/inbox/getUnreadCount.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,UAAU,EAAa,MAAM,eAAe,CAAA;AAC1D,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAajE,MAAM,MAAM,WAAW,GAAG;IACxB,OAAO,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,eAAe,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IAClE,0GAA0G;IAC1G,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,YAAY,EAAE,YAAY,CAAA;CAC3B;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,OAAO,CAAC,EAAE,UAAU,CAAA;CACrB;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,UAAU,CAAA;IACnB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAEhC;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,+CAA+C,CAAA;IACvD,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAID,wBAAgB,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,0GAErC;AAED,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,sCAE3C"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { XRPCError } from '@atproto/xrpc';
5
+ import { BlobRef } from '@atproto/lexicon';
6
+ import { CID } from 'multiformats/cid';
7
+ import { validate as _validate } from '../../../../lexicons.js';
8
+ import { is$typed as _is$typed, } from '../../../../util.js';
9
+ const is$typed = _is$typed, validate = _validate;
10
+ const id = 'tools.ozone.inbox.getUnreadCount';
11
+ export function toKnownErr(e) {
12
+ return e;
13
+ }
14
+ const hashUnreadCounts = 'unreadCounts';
15
+ export function isUnreadCounts(v) {
16
+ return is$typed(v, id, hashUnreadCounts);
17
+ }
18
+ export function validateUnreadCounts(v) {
19
+ return validate(v, id, hashUnreadCounts);
20
+ }
21
+ //# sourceMappingURL=getUnreadCount.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getUnreadCount.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/inbox/getUnreadCount.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAmB,SAAS,EAAE,MAAM,eAAe,CAAA;AAC1D,OAAO,EAAyB,OAAO,EAAE,MAAM,kBAAkB,CAAA;AACjE,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACtC,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAEL,QAAQ,IAAI,SAAS,GAEtB,MAAM,qBAAqB,CAAA;AAE5B,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,kCAAkC,CAAA;AAwB7C,MAAM,UAAU,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC;AAUD,MAAM,gBAAgB,GAAG,cAAc,CAAA;AAEvC,MAAM,UAAU,cAAc,CAAI,CAAI;IACpC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,gBAAgB,CAAC,CAAA;AAC1C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAI,CAAI;IAC1C,OAAO,QAAQ,CAAmB,CAAC,EAAE,EAAE,EAAE,gBAAgB,CAAC,CAAA;AAC5D,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type HeadersMap, XRPCError } from '@atproto/xrpc'\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'tools.ozone.inbox.getUnreadCount'\n\nexport type QueryParams = {\n section?: 'reports' | 'subjects' | 'accountStatus' | (string & {})\n /** Account to preview. Only Ozone staff can read another account; this does not change its read state. */\n did?: string\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n unreadCounts: UnreadCounts\n}\n\nexport interface CallOptions {\n signal?: AbortSignal\n headers?: HeadersMap\n}\n\nexport interface Response {\n success: boolean\n headers: HeadersMap\n data: OutputSchema\n}\n\nexport function toKnownErr(e: any) {\n return e\n}\n\nexport interface UnreadCounts {\n $type?: 'tools.ozone.inbox.getUnreadCount#unreadCounts'\n total: number\n reports?: number\n subjects?: number\n accountStatus?: number\n}\n\nconst hashUnreadCounts = 'unreadCounts'\n\nexport function isUnreadCounts<V>(v: V) {\n return is$typed(v, id, hashUnreadCounts)\n}\n\nexport function validateUnreadCounts<V>(v: V) {\n return validate<UnreadCounts & V>(v, id, hashUnreadCounts)\n}\n"]}