@atproto/ozone 0.5.0 → 0.5.2

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 (59) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/assignment/index.d.ts.map +1 -1
  3. package/dist/assignment/index.js +42 -37
  4. package/dist/assignment/index.js.map +1 -1
  5. package/dist/daemon/context.d.ts +3 -0
  6. package/dist/daemon/context.d.ts.map +1 -1
  7. package/dist/daemon/context.js +8 -0
  8. package/dist/daemon/context.js.map +1 -1
  9. package/dist/daemon/report-reporter-did-backfiller.d.ts +27 -0
  10. package/dist/daemon/report-reporter-did-backfiller.d.ts.map +1 -0
  11. package/dist/daemon/report-reporter-did-backfiller.js +159 -0
  12. package/dist/daemon/report-reporter-did-backfiller.js.map +1 -0
  13. package/dist/db/migrations/20261002T000000000Z-add-report-reporter-did.d.ts +4 -0
  14. package/dist/db/migrations/20261002T000000000Z-add-report-reporter-did.d.ts.map +1 -0
  15. package/dist/db/migrations/20261002T000000000Z-add-report-reporter-did.js +10 -0
  16. package/dist/db/migrations/20261002T000000000Z-add-report-reporter-did.js.map +1 -0
  17. package/dist/db/migrations/index.d.ts +1 -0
  18. package/dist/db/migrations/index.d.ts.map +1 -1
  19. package/dist/db/migrations/index.js +1 -0
  20. package/dist/db/migrations/index.js.map +1 -1
  21. package/dist/db/schema/report.d.ts +1 -0
  22. package/dist/db/schema/report.d.ts.map +1 -1
  23. package/dist/db/schema/report.js.map +1 -1
  24. package/dist/lexicons/app/bsky/authManageNotifications.defs.d.ts.map +1 -1
  25. package/dist/lexicons/app/bsky/authManageNotifications.defs.js +1 -0
  26. package/dist/lexicons/app/bsky/authManageNotifications.defs.js.map +1 -1
  27. package/dist/lexicons/app/bsky/feed/getListFeed.defs.d.ts +4 -0
  28. package/dist/lexicons/app/bsky/feed/getListFeed.defs.d.ts.map +1 -1
  29. package/dist/lexicons/app/bsky/feed/getListFeed.defs.js +2 -0
  30. package/dist/lexicons/app/bsky/feed/getListFeed.defs.js.map +1 -1
  31. package/dist/lexicons/app/bsky/feed/getTimeline.defs.d.ts +4 -0
  32. package/dist/lexicons/app/bsky/feed/getTimeline.defs.d.ts.map +1 -1
  33. package/dist/lexicons/app/bsky/feed/getTimeline.defs.js +2 -0
  34. package/dist/lexicons/app/bsky/feed/getTimeline.defs.js.map +1 -1
  35. package/dist/lexicons/app/bsky/notification/getGroupedNotifications.d.ts +3 -0
  36. package/dist/lexicons/app/bsky/notification/getGroupedNotifications.d.ts.map +1 -0
  37. package/dist/lexicons/app/bsky/notification/getGroupedNotifications.defs.d.ts +299 -0
  38. package/dist/lexicons/app/bsky/notification/getGroupedNotifications.defs.d.ts.map +1 -0
  39. package/dist/lexicons/app/bsky/notification/getGroupedNotifications.defs.js +231 -0
  40. package/dist/lexicons/app/bsky/notification/getGroupedNotifications.defs.js.map +1 -0
  41. package/dist/lexicons/app/bsky/notification/getGroupedNotifications.js +6 -0
  42. package/dist/lexicons/app/bsky/notification/getGroupedNotifications.js.map +1 -0
  43. package/dist/lexicons/app/bsky/notification.d.ts +1 -0
  44. package/dist/lexicons/app/bsky/notification.d.ts.map +1 -1
  45. package/dist/lexicons/app/bsky/notification.js +1 -0
  46. package/dist/lexicons/app/bsky/notification.js.map +1 -1
  47. package/dist/lexicons/tools/ozone/report/defs.defs.d.ts +17 -1
  48. package/dist/lexicons/tools/ozone/report/defs.defs.d.ts.map +1 -1
  49. package/dist/lexicons/tools/ozone/report/defs.defs.js +10 -0
  50. package/dist/lexicons/tools/ozone/report/defs.defs.js.map +1 -1
  51. package/dist/queue/service.d.ts +2 -2
  52. package/dist/queue/service.d.ts.map +1 -1
  53. package/dist/queue/service.js +10 -6
  54. package/dist/queue/service.js.map +1 -1
  55. package/dist/report/activity.d.ts +5 -1
  56. package/dist/report/activity.d.ts.map +1 -1
  57. package/dist/report/activity.js +15 -2
  58. package/dist/report/activity.js.map +1 -1
  59. package/package.json +11 -11
@@ -0,0 +1,159 @@
1
+ import { sql } from 'kysely';
2
+ import { MINUTE, SECOND } from '@atproto/common';
3
+ import { tools } from '../lexicons/index.js';
4
+ import { dbLogger } from '../logger.js';
5
+ import { initJobCursor } from './job-cursor.js';
6
+ export const REPORT_REPORTER_DID_BACKFILL_JOB = 'report_reporter_did_backfill';
7
+ const BATCH_SIZE = 1_000;
8
+ const BATCHES_PER_POLL = 10;
9
+ export class ReportReporterDidBackfiller {
10
+ constructor(db, batchSize = BATCH_SIZE) {
11
+ this.db = db;
12
+ this.batchSize = batchSize;
13
+ this.destroyed = false;
14
+ this.processingPromise = Promise.resolve();
15
+ }
16
+ start() {
17
+ this.poll();
18
+ }
19
+ poll() {
20
+ if (this.destroyed)
21
+ return;
22
+ let interval = MINUTE;
23
+ this.processingPromise = this.processAvailable()
24
+ .then((summary) => {
25
+ if (summary.scannedRows > 0) {
26
+ dbLogger.info(summary, 'report reporter DID backfill batch completed');
27
+ interval = SECOND;
28
+ }
29
+ })
30
+ .catch((err) => dbLogger.error({ err }, 'report reporter DID backfill errored'))
31
+ .finally(() => {
32
+ if (!this.destroyed) {
33
+ this.timer = setTimeout(() => this.poll(), interval);
34
+ }
35
+ });
36
+ }
37
+ async destroy() {
38
+ this.destroyed = true;
39
+ if (this.timer) {
40
+ clearTimeout(this.timer);
41
+ this.timer = undefined;
42
+ }
43
+ await this.processingPromise;
44
+ }
45
+ async initializeCursor() {
46
+ await initJobCursor(this.db, REPORT_REPORTER_DID_BACKFILL_JOB);
47
+ }
48
+ async processAll() {
49
+ await this.initializeCursor();
50
+ const summary = emptySummary();
51
+ while (true) {
52
+ const batch = await this.processBatch();
53
+ addSummary(summary, batch);
54
+ if (batch.scannedRows === 0)
55
+ return summary;
56
+ }
57
+ }
58
+ async processBatch() {
59
+ return this.db.transaction(async (txn) => {
60
+ // Serialize cursor reads and report updates, while committing after every
61
+ // bounded batch so the lock and row locks are released promptly.
62
+ const cursorRow = await txn.db
63
+ .selectFrom('job_cursor')
64
+ .select('cursor')
65
+ .where('job', '=', REPORT_REPORTER_DID_BACKFILL_JOB)
66
+ .forUpdate()
67
+ .executeTakeFirst();
68
+ if (!cursorRow)
69
+ return emptyBatch();
70
+ const cursor = cursorRow.cursor
71
+ ? Number.parseInt(cursorRow.cursor, 10)
72
+ : 0;
73
+ const result = await sql `
74
+ WITH batch AS MATERIALIZED (
75
+ SELECT r.id, r."eventId", r."reporterDid"
76
+ FROM report AS r
77
+ WHERE r.id > ${cursor}
78
+ ORDER BY r.id ASC
79
+ LIMIT ${this.batchSize}
80
+ ), source AS MATERIALIZED (
81
+ SELECT
82
+ b.id,
83
+ b."reporterDid",
84
+ me.id AS "sourceEventId",
85
+ me.action,
86
+ me."createdBy"
87
+ FROM batch AS b
88
+ LEFT JOIN moderation_event AS me ON me.id = b."eventId"
89
+ ), updated AS (
90
+ UPDATE report AS r
91
+ SET "reporterDid" = source."createdBy"
92
+ FROM source
93
+ WHERE r.id = source.id
94
+ AND r."reporterDid" IS NULL
95
+ AND source.action = ${tools.ozone.moderation.defs.modEventReport.$type}
96
+ RETURNING r.id
97
+ )
98
+ SELECT
99
+ (SELECT max(id)::int FROM batch) AS "lastId",
100
+ (SELECT count(*)::int FROM batch) AS "scannedRows",
101
+ (SELECT count(*)::int FROM updated) AS "updatedRows",
102
+ count(*) FILTER (
103
+ WHERE source."reporterDid" IS NULL
104
+ AND source."sourceEventId" IS NULL
105
+ )::int AS "missingSourceRows",
106
+ count(*) FILTER (
107
+ WHERE source."reporterDid" IS NULL
108
+ AND source."sourceEventId" IS NOT NULL
109
+ AND source.action IS DISTINCT FROM ${tools.ozone.moderation.defs.modEventReport.$type}
110
+ )::int AS "invalidSourceRows"
111
+ FROM source
112
+ `.execute(txn.db);
113
+ const batch = result.rows[0] ?? emptyBatch();
114
+ if (batch.lastId !== null) {
115
+ await txn.db
116
+ .updateTable('job_cursor')
117
+ .set({ cursor: String(batch.lastId) })
118
+ .where('job', '=', REPORT_REPORTER_DID_BACKFILL_JOB)
119
+ .execute();
120
+ }
121
+ return batch;
122
+ });
123
+ }
124
+ async processAvailable() {
125
+ await this.initializeCursor();
126
+ const summary = emptySummary();
127
+ for (let i = 0; i < BATCHES_PER_POLL; i++) {
128
+ const batch = await this.processBatch();
129
+ addSummary(summary, batch);
130
+ if (batch.scannedRows === 0)
131
+ break;
132
+ }
133
+ return summary;
134
+ }
135
+ }
136
+ function emptyBatch() {
137
+ return {
138
+ lastId: null,
139
+ scannedRows: 0,
140
+ updatedRows: 0,
141
+ missingSourceRows: 0,
142
+ invalidSourceRows: 0,
143
+ };
144
+ }
145
+ function emptySummary() {
146
+ return {
147
+ scannedRows: 0,
148
+ updatedRows: 0,
149
+ missingSourceRows: 0,
150
+ invalidSourceRows: 0,
151
+ };
152
+ }
153
+ function addSummary(summary, batch) {
154
+ summary.scannedRows += batch.scannedRows;
155
+ summary.updatedRows += batch.updatedRows;
156
+ summary.missingSourceRows += batch.missingSourceRows;
157
+ summary.invalidSourceRows += batch.invalidSourceRows;
158
+ }
159
+ //# sourceMappingURL=report-reporter-did-backfiller.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"report-reporter-did-backfiller.js","sourceRoot":"","sources":["../../src/daemon/report-reporter-did-backfiller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAA;AAC5B,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAEhD,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C,MAAM,CAAC,MAAM,gCAAgC,GAAG,8BAA8B,CAAA;AAE9E,MAAM,UAAU,GAAG,KAAK,CAAA;AACxB,MAAM,gBAAgB,GAAG,EAAE,CAAA;AAY3B,MAAM,OAAO,2BAA2B;IAKtC,YACU,EAAY,EACZ,SAAS,GAAG,UAAU;QADt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,CAAA;AACH,CAAC;AAED,SAAS,UAAU,CAAC,OAAwB,EAAE,KAAkB;IAC9D,OAAO,CAAC,WAAW,IAAI,KAAK,CAAC,WAAW,CAAA;IACxC,OAAO,CAAC,WAAW,IAAI,KAAK,CAAC,WAAW,CAAA;IACxC,OAAO,CAAC,iBAAiB,IAAI,KAAK,CAAC,iBAAiB,CAAA;IACpD,OAAO,CAAC,iBAAiB,IAAI,KAAK,CAAC,iBAAiB,CAAA;AACtD,CAAC","sourcesContent":["import { sql } from 'kysely'\nimport { MINUTE, SECOND } from '@atproto/common'\nimport type { Database } from '../db/index.js'\nimport { tools } from '../lexicons/index.js'\nimport { dbLogger } from '../logger.js'\nimport { initJobCursor } from './job-cursor.js'\n\nexport const REPORT_REPORTER_DID_BACKFILL_JOB = 'report_reporter_did_backfill'\n\nconst BATCH_SIZE = 1_000\nconst BATCHES_PER_POLL = 10\n\ntype BatchResult = {\n lastId: number | null\n scannedRows: number\n updatedRows: number\n missingSourceRows: number\n invalidSourceRows: number\n}\n\ntype BackfillSummary = Omit<BatchResult, 'lastId'>\n\nexport class ReportReporterDidBackfiller {\n destroyed = false\n processingPromise: Promise<void> = Promise.resolve()\n timer?: NodeJS.Timeout\n\n constructor(\n private db: Database,\n private batchSize = BATCH_SIZE,\n ) {}\n\n start() {\n this.poll()\n }\n\n poll() {\n if (this.destroyed) return\n let interval = MINUTE\n this.processingPromise = this.processAvailable()\n .then((summary) => {\n if (summary.scannedRows > 0) {\n dbLogger.info(summary, 'report reporter DID backfill batch completed')\n interval = SECOND\n }\n })\n .catch((err) =>\n dbLogger.error({ err }, 'report reporter DID backfill errored'),\n )\n .finally(() => {\n if (!this.destroyed) {\n this.timer = setTimeout(() => this.poll(), interval)\n }\n })\n }\n\n async destroy() {\n this.destroyed = true\n if (this.timer) {\n clearTimeout(this.timer)\n this.timer = undefined\n }\n await this.processingPromise\n }\n\n async initializeCursor() {\n await initJobCursor(this.db, REPORT_REPORTER_DID_BACKFILL_JOB)\n }\n\n async processAll(): Promise<BackfillSummary> {\n await this.initializeCursor()\n const summary = emptySummary()\n while (true) {\n const batch = await this.processBatch()\n addSummary(summary, batch)\n if (batch.scannedRows === 0) return summary\n }\n }\n\n async processBatch(): Promise<BatchResult> {\n return this.db.transaction(async (txn) => {\n // Serialize cursor reads and report updates, while committing after every\n // bounded batch so the lock and row locks are released promptly.\n const cursorRow = await txn.db\n .selectFrom('job_cursor')\n .select('cursor')\n .where('job', '=', REPORT_REPORTER_DID_BACKFILL_JOB)\n .forUpdate()\n .executeTakeFirst()\n if (!cursorRow) return emptyBatch()\n\n const cursor = cursorRow.cursor\n ? Number.parseInt(cursorRow.cursor, 10)\n : 0\n const result = await sql<BatchResult>`\n WITH batch AS MATERIALIZED (\n SELECT r.id, r.\"eventId\", r.\"reporterDid\"\n FROM report AS r\n WHERE r.id > ${cursor}\n ORDER BY r.id ASC\n LIMIT ${this.batchSize}\n ), source AS MATERIALIZED (\n SELECT\n b.id,\n b.\"reporterDid\",\n me.id AS \"sourceEventId\",\n me.action,\n me.\"createdBy\"\n FROM batch AS b\n LEFT JOIN moderation_event AS me ON me.id = b.\"eventId\"\n ), updated AS (\n UPDATE report AS r\n SET \"reporterDid\" = source.\"createdBy\"\n FROM source\n WHERE r.id = source.id\n AND r.\"reporterDid\" IS NULL\n AND source.action = ${tools.ozone.moderation.defs.modEventReport.$type}\n RETURNING r.id\n )\n SELECT\n (SELECT max(id)::int FROM batch) AS \"lastId\",\n (SELECT count(*)::int FROM batch) AS \"scannedRows\",\n (SELECT count(*)::int FROM updated) AS \"updatedRows\",\n count(*) FILTER (\n WHERE source.\"reporterDid\" IS NULL\n AND source.\"sourceEventId\" IS NULL\n )::int AS \"missingSourceRows\",\n count(*) FILTER (\n WHERE source.\"reporterDid\" IS NULL\n AND source.\"sourceEventId\" IS NOT NULL\n AND source.action IS DISTINCT FROM ${tools.ozone.moderation.defs.modEventReport.$type}\n )::int AS \"invalidSourceRows\"\n FROM source\n `.execute(txn.db)\n\n const batch = result.rows[0] ?? emptyBatch()\n if (batch.lastId !== null) {\n await txn.db\n .updateTable('job_cursor')\n .set({ cursor: String(batch.lastId) })\n .where('job', '=', REPORT_REPORTER_DID_BACKFILL_JOB)\n .execute()\n }\n return batch\n })\n }\n\n private async processAvailable(): Promise<BackfillSummary> {\n await this.initializeCursor()\n const summary = emptySummary()\n for (let i = 0; i < BATCHES_PER_POLL; i++) {\n const batch = await this.processBatch()\n addSummary(summary, batch)\n if (batch.scannedRows === 0) break\n }\n return summary\n }\n}\n\nfunction emptyBatch(): BatchResult {\n return {\n lastId: null,\n scannedRows: 0,\n updatedRows: 0,\n missingSourceRows: 0,\n invalidSourceRows: 0,\n }\n}\n\nfunction emptySummary(): BackfillSummary {\n return {\n scannedRows: 0,\n updatedRows: 0,\n missingSourceRows: 0,\n invalidSourceRows: 0,\n }\n}\n\nfunction addSummary(summary: BackfillSummary, batch: BatchResult) {\n summary.scannedRows += batch.scannedRows\n summary.updatedRows += batch.updatedRows\n summary.missingSourceRows += batch.missingSourceRows\n summary.invalidSourceRows += batch.invalidSourceRows\n}\n"]}
@@ -0,0 +1,4 @@
1
+ import type { Kysely } from 'kysely';
2
+ export declare function up(db: Kysely<unknown>): Promise<void>;
3
+ export declare function down(db: Kysely<unknown>): Promise<void>;
4
+ //# sourceMappingURL=20261002T000000000Z-add-report-reporter-did.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"20261002T000000000Z-add-report-reporter-did.d.ts","sourceRoot":"","sources":["../../../src/db/migrations/20261002T000000000Z-add-report-reporter-did.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAEpC,wBAAsB,EAAE,CAAC,EAAE,EAAE,MAAM,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAK3D;AAED,wBAAsB,IAAI,CAAC,EAAE,EAAE,MAAM,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAE7D"}
@@ -0,0 +1,10 @@
1
+ export async function up(db) {
2
+ await db.schema
3
+ .alterTable('report')
4
+ .addColumn('reporterDid', 'varchar')
5
+ .execute();
6
+ }
7
+ export async function down(db) {
8
+ await db.schema.alterTable('report').dropColumn('reporterDid').execute();
9
+ }
10
+ //# sourceMappingURL=20261002T000000000Z-add-report-reporter-did.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"20261002T000000000Z-add-report-reporter-did.js","sourceRoot":"","sources":["../../../src/db/migrations/20261002T000000000Z-add-report-reporter-did.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,KAAK,UAAU,EAAE,CAAC,EAAmB;IAC1C,MAAM,EAAE,CAAC,MAAM;SACZ,UAAU,CAAC,QAAQ,CAAC;SACpB,SAAS,CAAC,aAAa,EAAE,SAAS,CAAC;SACnC,OAAO,EAAE,CAAA;AACd,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,IAAI,CAAC,EAAmB;IAC5C,MAAM,EAAE,CAAC,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC,OAAO,EAAE,CAAA;AAC1E,CAAC","sourcesContent":["import type { Kysely } from 'kysely'\n\nexport async function up(db: Kysely<unknown>): Promise<void> {\n await db.schema\n .alterTable('report')\n .addColumn('reporterDid', 'varchar')\n .execute()\n}\n\nexport async function down(db: Kysely<unknown>): Promise<void> {\n await db.schema.alterTable('report').dropColumn('reporterDid').execute()\n}\n"]}
@@ -44,4 +44,5 @@ export * as _20260731T000000000Z from './20260731T000000000Z-add-recommended-pol
44
44
  export * as _20260810T000000000Z from './20260810T000000000Z-add-report-stats-components.js';
45
45
  export * as _20260922T153505234Z from './20260922T153505234Z-add-report-closed-at-index.js';
46
46
  export * as _20260928T000000000Z from './20260928T000000000Z-inbox-appeal.js';
47
+ export * as _20261002T000000000Z from './20261002T000000000Z-add-report-reporter-did.js';
47
48
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1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OAAO,KAAK,oBAAoB,MAAM,4CAA4C,CAAA;AAClF,OAAO,KAAK,oBAAoB,MAAM,4CAA4C,CAAA;AAClF,OAAO,KAAK,oBAAoB,MAAM,uDAAuD,CAAA;AAC7F,OAAO,KAAK,oBAAoB,MAAM,8CAA8C,CAAA;AACpF,OAAO,KAAK,oBAAoB,MAAM,+CAA+C,CAAA;AACrF,OAAO,KAAK,oBAAoB,MAAM,iDAAiD,CAAA;AACvF,OAAO,KAAK,oBAAoB,MAAM,oDAAoD,CAAA;AAC1F,OAAO,KAAK,oBAAoB,MAAM,0CAA0C,CAAA;AAChF,OAAO,KAAK,oBAAoB,MAAM,iDAAiD,CAAA;AACvF,OAAO,KAAK,oBAAoB,MAAM,+CAA+C,CAAA;AACrF,OAAO,KAAK,oBAAoB,MAAM,4DAA4D,CAAA;AAClG,OAAO,KAAK,oBAAoB,MAAM,iDAAiD,CAAA;AACvF,OAAO,KAAK,oBAAoB,MAAM,4DAA4D,CAAA;AAClG,OAAO,KAAK,oBAAoB,MAAM,mEAAmE,CAAA;AACzG,OAAO,KAAK,oBAAoB,MAAM,sDAAsD,CAAA;AAC5F,OAAO,KAAK,oBAAoB,MAAM,qDAAqD,CAAA;AAC3F,OAAO,KAAK,oBAAoB,MAAM,uCAAuC,CAAA;AAC7E,OAAO,KAAK,oBAAoB,MAAM,kDAAkD,CAAA"}
@@ -47,4 +47,5 @@ export * as _20260731T000000000Z from './20260731T000000000Z-add-recommended-pol
47
47
  export * as _20260810T000000000Z from './20260810T000000000Z-add-report-stats-components.js';
48
48
  export * as _20260922T153505234Z from './20260922T153505234Z-add-report-closed-at-index.js';
49
49
  export * as _20260928T000000000Z from './20260928T000000000Z-inbox-appeal.js';
50
+ export * as _20261002T000000000Z from './20261002T000000000Z-add-report-reporter-did.js';
50
51
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/db/migrations/index.ts"],"names":[],"mappings":"AAAA,oGAA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BAAoB,MAAM,kDAAkD,CAAA;AACxF,OAAO,KAAK,oBAAoB,MAAM,oDAAoD,CAAA;AAC1F,OAAO,KAAK,oBAAoB,MAAM,qDAAqD,CAAA;AAC3F,OAAO,KAAK,oBAAoB,MAAM,kDAAkD,CAAA;AACxF,OAAO,KAAK,oBAAoB,MAAM,4CAA4C,CAAA;AAClF,OAAO,KAAK,oBAAoB,MAAM,4CAA4C,CAAA;AAClF,OAAO,KAAK,oBAAoB,MAAM,uDAAuD,CAAA;AAC7F,OAAO,KAAK,oBAAoB,MAAM,8CAA8C,CAAA;AACpF,OAAO,KAAK,oBAAoB,MAAM,+CAA+C,CAAA;AACrF,OAAO,KAAK,oBAAoB,MAAM,iDAAiD,CAAA;AACvF,OAAO,KAAK,oBAAoB,MAAM,oDAAoD,CAAA;AAC1F,OAAO,KAAK,oBAAoB,MAAM,0CAA0C,CAAA;AAChF,OAAO,KAAK,oBAAoB,MAAM,iDAAiD,CAAA;AACvF,OAAO,KAAK,oBAAoB,MAAM,+CAA+C,CAAA;AACrF,OAAO,KAAK,oBAAoB,MAAM,4DAA4D,CAAA;AAClG,OAAO,KAAK,oBAAoB,MAAM,iDAAiD,CAAA;AACvF,OAAO,KAAK,oBAAoB,MAAM,4DAA4D,CAAA;AAClG,OAAO,KAAK,oBAAoB,MAAM,mEAAmE,CAAA;AACzG,OAAO,KAAK,oBAAoB,MAAM,sDAAsD,CAAA;AAC5F,OAAO,KAAK,oBAAoB,MAAM,qDAAqD,CAAA;AAC3F,OAAO,KAAK,oBAAoB,MAAM,uCAAuC,CAAA","sourcesContent":["// NOTE this file can be edited by hand, but it is also appended to by the migration:create command.\n// It's important that every migration is exported from here with the proper name. We'd simplify\n// this with kysely's FileMigrationProvider, but it doesn't play nicely with the build process.\n\nexport * as _20231219T205730722Z from './20231219T205730722Z-init.js'\nexport * as _20240116T085607200Z from './20240116T085607200Z-communication-template.js'\nexport * as _20240201T051104136Z from './20240201T051104136Z-mod-event-blobs.js'\nexport * as _20240208T213404429Z from './20240208T213404429Z-add-tags-column-to-moderation-subject.js'\nexport * as _20240228T003647759Z from './20240228T003647759Z-add-label-sigs.js'\nexport * as _20240408T192432676Z from './20240408T192432676Z-mute-reporting.js'\nexport * as _20240506T225055595Z from './20240506T225055595Z-message-subject.js'\nexport * as _20240430T211332580Z from './20240521T211332580Z-member.js'\nexport * as _20240814T003647759Z from './20240814T003647759Z-event-created-at-index.js'\nexport * as _20240903T205730722Z from './20240903T205730722Z-add-template-lang.js'\nexport * as _20240904T205730722Z from './20240904T205730722Z-add-subject-did-index.js'\nexport * as _20241001T205730722Z from './20241001T205730722Z-subject-status-review-state-index.js'\nexport * as _20241008T205730722Z from './20241008T205730722Z-sets.js'\nexport * as _20241018T205730722Z from './20241018T205730722Z-setting.js'\nexport * as _20241026T205730722Z from './20241026T205730722Z-add-hosting-status-to-subject-status.js'\nexport * as _20241220T144630860Z from './20241220T144630860Z-stats-materialized-views.js'\nexport * as _20250204T003647759Z from './20250204T003647759Z-add-subject-priority-score.js'\nexport * as _20250211T003647759Z from './20250211T003647759Z-add-reporter-stats-index.js'\nexport * as _20250211T132135150Z from './20250211T132135150Z-moderation-event-message-partial-idx.js'\nexport * as _20250221T132135150Z from './20250221T132135150Z-member-details.js'\nexport * as _20250404T201720309Z from './20250404T201720309Z-subject-status-sort-idxs.js'\nexport * as _20250415T201720309Z from './20250415T201720309Z-verification.js'\nexport * as _20250417T201720309Z from './20250417T201720309Z-firehose-cursor.js'\nexport * as _20250609T110704000Z from './20250609T110704000Z-safelink.js'\nexport * as _20250618T180246000Z from './20250618T180246000Z-add-mod-tool-to-moderation-event.js'\nexport * as _20250701T000000000Z from './20250701T000000000Z-add-age-assurance-state.js'\nexport * as _20250715T000000000Z from './20250715T000000000Z-add-mod-event-external-id.js'\nexport * as _20250718T150931000Z from './20250718T150931000Z-update-appeal-reason-stats.js'\nexport * as _20250813T000000000Z from './20250813T000000000Z-mod-tool-batch-id-index.js'\nexport * as _20250923T000000000Z from './20250923T000000000Z-scheduled-actions.js'\nexport * as _20251008T120000000Z from './20251008T120000000Z-add-strike-system.js'\nexport * as _20260210T154806448Z from './20260210T154806448Z-mod-event-created-by-indexes.js'\nexport * as _20260219T164523000Z from './20260219T164523000Z-create-report-table.js'\nexport * as _20260219T165302248Z from './20260219T165302248Z-moderator-assignment.js'\nexport * as _20260225T000000000Z from './20260225T000000000Z-add-report-queue-table.js'\nexport * as _20260313T000000000Z from './20260313T000000000Z-add-report-activity-table.js'\nexport * as _20260318T152058935Z from './20260318T152058935Z-add-report-stat.js'\nexport * as _20260428T000000000Z from './20260428T000000000Z-add-expiring-tag-table.js'\nexport * as _20260513T202941104Z from './20260513T202941104Z-add-subject-convo-id.js'\nexport * as _20260602T120000000Z from './20260602T120000000Z-add-report-activity-created-index.js'\nexport * as _20260617T210022765Z from './20260617T210022765Z-add-report-isautomated.js'\nexport * as _20260720T000000000Z from './20260720T000000000Z-add-convo-subjects-to-stats-views.js'\nexport * as _20260731T000000000Z from './20260731T000000000Z-add-recommended-policies-to-report-queue.js'\nexport * as _20260810T000000000Z from './20260810T000000000Z-add-report-stats-components.js'\nexport * as _20260922T153505234Z from './20260922T153505234Z-add-report-closed-at-index.js'\nexport * as _20260928T000000000Z from './20260928T000000000Z-inbox-appeal.js'\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/db/migrations/index.ts"],"names":[],"mappings":"AAAA,oGAAoG;AACpG,gGAAgG;AAChG,+FAA+F;AAE/F,OAAO,KAAK,oBAAoB,MAAM,+BAA+B,CAAA;AACrE,OAAO,KAAK,oBAAoB,MAAM,iDAAiD,CAAA;AACvF,OAAO,KAAK,oBAAoB,MAAM,0CAA0C,CAAA;AAChF,OAAO,KAAK,oBAAoB,MAAM,gEAAgE,CAAA;AACtG,OAAO,KAAK,oBAAoB,MAAM,yCAAyC,CAAA;AAC/E,OAAO,KAAK,oBAAoB,MAAM,yCAAyC,CAAA;AAC/E,OAAO,KAAK,oBAAoB,MAAM,0C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,CAAA;AACpF,OAAO,KAAK,oBAAoB,MAAM,+CAA+C,CAAA;AACrF,OAAO,KAAK,oBAAoB,MAAM,iDAAiD,CAAA;AACvF,OAAO,KAAK,oBAAoB,MAAM,oDAAoD,CAAA;AAC1F,OAAO,KAAK,oBAAoB,MAAM,0CAA0C,CAAA;AAChF,OAAO,KAAK,oBAAoB,MAAM,iDAAiD,CAAA;AACvF,OAAO,KAAK,oBAAoB,MAAM,+CAA+C,CAAA;AACrF,OAAO,KAAK,oBAAoB,MAAM,4DAA4D,CAAA;AAClG,OAAO,KAAK,oBAAoB,MAAM,iDAAiD,CAAA;AACvF,OAAO,KAAK,oBAAoB,MAAM,4DAA4D,CAAA;AAClG,OAAO,KAAK,oBAAoB,MAAM,mEAAmE,CAAA;AACzG,OAAO,KAAK,oBAAoB,MAAM,sDAAsD,CAAA;AAC5F,OAAO,KAAK,oBAAoB,MAAM,qDAAqD,CAAA;AAC3F,OAAO,KAAK,oBAAoB,MAAM,uCAAuC,CAAA;AAC7E,OAAO,KAAK,oBAAoB,MAAM,kDAAkD,CAAA","sourcesContent":["// NOTE this file can be edited by hand, but it is also appended to by the migration:create command.\n// It's important that every migration is exported from here with the proper name. We'd simplify\n// this with kysely's FileMigrationProvider, but it doesn't play nicely with the build process.\n\nexport * as _20231219T205730722Z from './20231219T205730722Z-init.js'\nexport * as _20240116T085607200Z from './20240116T085607200Z-communication-template.js'\nexport * as _20240201T051104136Z from './20240201T051104136Z-mod-event-blobs.js'\nexport * as _20240208T213404429Z from './20240208T213404429Z-add-tags-column-to-moderation-subject.js'\nexport * as _20240228T003647759Z from './20240228T003647759Z-add-label-sigs.js'\nexport * as _20240408T192432676Z from './20240408T192432676Z-mute-reporting.js'\nexport * as _20240506T225055595Z from './20240506T225055595Z-message-subject.js'\nexport * as _20240430T211332580Z from './20240521T211332580Z-member.js'\nexport * as _20240814T003647759Z from './20240814T003647759Z-event-created-at-index.js'\nexport * as _20240903T205730722Z from './20240903T205730722Z-add-template-lang.js'\nexport * as _20240904T205730722Z from './20240904T205730722Z-add-subject-did-index.js'\nexport * as _20241001T205730722Z from './20241001T205730722Z-subject-status-review-state-index.js'\nexport * as _20241008T205730722Z from './20241008T205730722Z-sets.js'\nexport * as _20241018T205730722Z from './20241018T205730722Z-setting.js'\nexport * as _20241026T205730722Z from './20241026T205730722Z-add-hosting-status-to-subject-status.js'\nexport * as _20241220T144630860Z from './20241220T144630860Z-stats-materialized-views.js'\nexport * as _20250204T003647759Z from './20250204T003647759Z-add-subject-priority-score.js'\nexport * as _20250211T003647759Z from './20250211T003647759Z-add-reporter-stats-index.js'\nexport * as _20250211T132135150Z from './20250211T132135150Z-moderation-event-message-partial-idx.js'\nexport * as _20250221T132135150Z from './20250221T132135150Z-member-details.js'\nexport * as _20250404T201720309Z from './20250404T201720309Z-subject-status-sort-idxs.js'\nexport * as _20250415T201720309Z from './20250415T201720309Z-verification.js'\nexport * as _20250417T201720309Z from './20250417T201720309Z-firehose-cursor.js'\nexport * as _20250609T110704000Z from './20250609T110704000Z-safelink.js'\nexport * as _20250618T180246000Z from './20250618T180246000Z-add-mod-tool-to-moderation-event.js'\nexport * as _20250701T000000000Z from './20250701T000000000Z-add-age-assurance-state.js'\nexport * as _20250715T000000000Z from './20250715T000000000Z-add-mod-event-external-id.js'\nexport * as _20250718T150931000Z from './20250718T150931000Z-update-appeal-reason-stats.js'\nexport * as _20250813T000000000Z from './20250813T000000000Z-mod-tool-batch-id-index.js'\nexport * as _20250923T000000000Z from './20250923T000000000Z-scheduled-actions.js'\nexport * as _20251008T120000000Z from './20251008T120000000Z-add-strike-system.js'\nexport * as _20260210T154806448Z from './20260210T154806448Z-mod-event-created-by-indexes.js'\nexport * as _20260219T164523000Z from './20260219T164523000Z-create-report-table.js'\nexport * as _20260219T165302248Z from './20260219T165302248Z-moderator-assignment.js'\nexport * as _20260225T000000000Z from './20260225T000000000Z-add-report-queue-table.js'\nexport * as _20260313T000000000Z from './20260313T000000000Z-add-report-activity-table.js'\nexport * as _20260318T152058935Z from './20260318T152058935Z-add-report-stat.js'\nexport * as _20260428T000000000Z from './20260428T000000000Z-add-expiring-tag-table.js'\nexport * as _20260513T202941104Z from './20260513T202941104Z-add-subject-convo-id.js'\nexport * as _20260602T120000000Z from './20260602T120000000Z-add-report-activity-created-index.js'\nexport * as _20260617T210022765Z from './20260617T210022765Z-add-report-isautomated.js'\nexport * as _20260720T000000000Z from './20260720T000000000Z-add-convo-subjects-to-stats-views.js'\nexport * as _20260731T000000000Z from './20260731T000000000Z-add-recommended-policies-to-report-queue.js'\nexport * as _20260810T000000000Z from './20260810T000000000Z-add-report-stats-components.js'\nexport * as _20260922T153505234Z from './20260922T153505234Z-add-report-closed-at-index.js'\nexport * as _20260928T000000000Z from './20260928T000000000Z-inbox-appeal.js'\nexport * as _20261002T000000000Z from './20261002T000000000Z-add-report-reporter-did.js'\n"]}
@@ -13,6 +13,7 @@ export interface Report {
13
13
  status: string;
14
14
  reportType: string;
15
15
  did: DidString;
16
+ reporterDid: DidString | null;
16
17
  recordPath: string;
17
18
  subjectMessageId: string | null;
18
19
  subjectConvoId: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"report.d.ts","sourceRoot":"","sources":["../../../src/db/schema/report.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AACvC,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAE7D,eAAO,MAAM,eAAe,WAAW,CAAA;AAEvC,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,SAAS,CAAC,MAAM,CAAC,CAAA;IACrB,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,QAAQ,EAAE,cAAc,GAAG,IAAI,CAAA;IAC/B,cAAc,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;IAC/B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,OAAO,EAAE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A;IAC7B,UAAU,EAAE,MAAM,CAAA;IAClB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,SAAS,EAAE,cAAc,CAAA;IACzB,SAAS,EAAE,cAAc,CAAA;IACzB,UAAU,EAAE,SAAS,GAAG,IAAI,CAAA;IAC5B,UAAU,EAAE,cAAc,GAAG,IAAI,CAAA;IACjC,QAAQ,EAAE,cAAc,GAAG,IAAI,CAAA;CAChC;AAED,MAAM,MAAM,SAAS,GAAG;IACtB,CAAC,eAAe,CAAC,EAAE,MAAM,CAAA;CAC1B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"report.js","sourceRoot":"","sources":["../../../src/db/schema/report.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAA","sourcesContent":["import type { Generated } from 'kysely'\nimport type { DatetimeString, DidString } from '@atproto/lex'\n\nexport const reportTableName = 'report'\n\nexport interface Report {\n id: Generated<number>\n eventId: number // References moderation_event.id\n queueId: number | null // NULL = not yet assigned, -1 = no matching queue\n queuedAt: DatetimeString | null\n actionEventIds: number[] | null // Event IDs in append order (most recently linked last)\n actionNote: string | null\n isMuted: boolean\n isAutomated: boolean // Denormalized from moderation_event.modTool.meta.isAutomated\n status: string // 'open', 'closed', 'escalated', 'queued', 'assigned'\n reportType: string // Denormalized from moderation_event.meta.reportType\n did: DidString // Denormalized from moderation_event.subjectDid\n recordPath: string // '' = account/message/conversation, 'collection/rkey' = record\n subjectMessageId: string | null // Denormalized from moderation_event.subjectMessageId\n subjectConvoId: string | null // Denormalized from moderation_event.subjectConvoId\n createdAt: DatetimeString\n updatedAt: DatetimeString\n assignedTo: DidString | null // DID of permanently assigned moderator, null if unassigned\n assignedAt: DatetimeString | null // When the permanent assignment was created\n closedAt: DatetimeString | null\n}\n\nexport type PartialDB = {\n [reportTableName]: Report\n}\n"]}
1
+ {"version":3,"file":"report.js","sourceRoot":"","sources":["../../../src/db/schema/report.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAA","sourcesContent":["import type { Generated } from 'kysely'\nimport type { DatetimeString, DidString } from '@atproto/lex'\n\nexport const reportTableName = 'report'\n\nexport interface Report {\n id: Generated<number>\n eventId: number // References moderation_event.id\n queueId: number | null // NULL = not yet assigned, -1 = no matching queue\n queuedAt: DatetimeString | null\n actionEventIds: number[] | null // Event IDs in append order (most recently linked last)\n actionNote: string | null\n isMuted: boolean\n isAutomated: boolean // Denormalized from moderation_event.modTool.meta.isAutomated\n status: string // 'open', 'closed', 'escalated', 'queued', 'assigned'\n reportType: string // Denormalized from moderation_event.meta.reportType\n did: DidString // Denormalized from moderation_event.subjectDid\n reporterDid: DidString | null // Original moderation_event.createdBy for eventId\n recordPath: string // '' = account/message/conversation, 'collection/rkey' = record\n subjectMessageId: string | null // Denormalized from moderation_event.subjectMessageId\n subjectConvoId: string | null // Denormalized from moderation_event.subjectConvoId\n createdAt: DatetimeString\n updatedAt: DatetimeString\n assignedTo: DidString | null // DID of permanently assigned moderator, null if unassigned\n assignedAt: DatetimeString | null // When the permanent assignment was created\n closedAt: DatetimeString | null\n}\n\nexport type PartialDB = {\n [reportTableName]: Report\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"authManageNotifications.defs.d.ts","sourceRoot":"","sources":["../../../../src/lexicons/app/bsky/authManageNotifications.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAEhC,QAAA,MAAM,KAAK,qCAAqC,CAAA;AAEhD,KAAK,KAAK,GAAG,OAAO,KAAK,CAAA;AAEzB,OAAO,EAAE,KAAK,EAAE,CAAA;AAEhB,QAAA,MAAM,IAAI,+FAyBT,CAAA;AAED,OAAO,EAAE,IAAI,EAAE,CAAA"}
1
+ {"version":3,"file":"authManageNotifications.defs.d.ts","sourceRoot":"","sources":["../../../../src/lexicons/app/bsky/authManageNotifications.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAEhC,QAAA,MAAM,KAAK,qCAAqC,CAAA;AAEhD,KAAK,KAAK,GAAG,OAAO,KAAK,CAAA;AAEzB,OAAO,EAAE,KAAK,EAAE,CAAA;AAEhB,QAAA,MAAM,IAAI,+FA0BT,CAAA;AAED,OAAO,EAAE,IAAI,EAAE,CAAA"}
@@ -9,6 +9,7 @@ const main = /*#__PURE__*/ l.permissionSet($nsid, [
9
9
  inheritAud: true,
10
10
  lxm: [
11
11
  'app.bsky.notification.getPreferences',
12
+ 'app.bsky.notification.getGroupedNotifications',
12
13
  'app.bsky.notification.getUnreadCount',
13
14
  'app.bsky.notification.listActivitySubscriptions',
14
15
  'app.bsky.notification.listNotifications',
@@ -1 +1 @@
1
- {"version":3,"file":"authManageNotifications.defs.js","sourceRoot":"","sources":["../../../../src/lexicons/app/bsky/authManageNotifications.defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAEhC,MAAM,KAAK,GAAG,kCAAkC,CAAA;AAIhD,OAAO,EAAE,KAAK,EAAE,CAAA;AAEhB,MAAM,IAAI,GAAG,aAAa,CAAC,CAAC,CAAC,aAAa,CACxC,KAAK,EACL;IACE,aAAa,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,EAAE;QAChC,UAAU,EAAE,IAAI;QAChB,GAAG,EAAE;YACH,sCAAsC;YACtC,sCAAsC;YACtC,iDAAiD;YACjD,yCAAyC;YACzC,+CAA+C;YAC/C,sCAAsC;YACtC,wCAAwC;YACxC,oCAAoC;YACpC,sCAAsC;YACtC,kCAAkC;SACnC;KACF,CAAC;CACH,EACD;IACE,KAAK,EAAE,8BAA8B;IACrC,YAAY,EAAE,EAAE;IAChB,MAAM,EAAE,uDAAuD;IAC/D,aAAa,EAAE,EAAE;CAClB,CACF,CAAA;AAED,OAAO,EAAE,IAAI,EAAE,CAAA","sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\n\nconst $nsid = 'app.bsky.authManageNotifications'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\nconst main = /*#__PURE__*/ l.permissionSet(\n $nsid,\n [\n /*#__PURE__*/ l.permission('rpc', {\n inheritAud: true,\n lxm: [\n 'app.bsky.notification.getPreferences',\n 'app.bsky.notification.getUnreadCount',\n 'app.bsky.notification.listActivitySubscriptions',\n 'app.bsky.notification.listNotifications',\n 'app.bsky.notification.putActivitySubscription',\n 'app.bsky.notification.putPreferences',\n 'app.bsky.notification.putPreferencesV2',\n 'app.bsky.notification.registerPush',\n 'app.bsky.notification.unregisterPush',\n 'app.bsky.notification.updateSeen',\n ],\n }),\n ],\n {\n title: 'Manage Bluesky Notifications',\n 'title:lang': {},\n detail: 'View and configure notifications for the Bluesky app.',\n 'detail:lang': {},\n },\n)\n\nexport { main }\n"]}
1
+ {"version":3,"file":"authManageNotifications.defs.js","sourceRoot":"","sources":["../../../../src/lexicons/app/bsky/authManageNotifications.defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAEhC,MAAM,KAAK,GAAG,kCAAkC,CAAA;AAIhD,OAAO,EAAE,KAAK,EAAE,CAAA;AAEhB,MAAM,IAAI,GAAG,aAAa,CAAC,CAAC,CAAC,aAAa,CACxC,KAAK,EACL;IACE,aAAa,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,EAAE;QAChC,UAAU,EAAE,IAAI;QAChB,GAAG,EAAE;YACH,sCAAsC;YACtC,+CAA+C;YAC/C,sCAAsC;YACtC,iDAAiD;YACjD,yCAAyC;YACzC,+CAA+C;YAC/C,sCAAsC;YACtC,wCAAwC;YACxC,oCAAoC;YACpC,sCAAsC;YACtC,kCAAkC;SACnC;KACF,CAAC;CACH,EACD;IACE,KAAK,EAAE,8BAA8B;IACrC,YAAY,EAAE,EAAE;IAChB,MAAM,EAAE,uDAAuD;IAC/D,aAAa,EAAE,EAAE;CAClB,CACF,CAAA;AAED,OAAO,EAAE,IAAI,EAAE,CAAA","sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\n\nconst $nsid = 'app.bsky.authManageNotifications'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\nconst main = /*#__PURE__*/ l.permissionSet(\n $nsid,\n [\n /*#__PURE__*/ l.permission('rpc', {\n inheritAud: true,\n lxm: [\n 'app.bsky.notification.getPreferences',\n 'app.bsky.notification.getGroupedNotifications',\n 'app.bsky.notification.getUnreadCount',\n 'app.bsky.notification.listActivitySubscriptions',\n 'app.bsky.notification.listNotifications',\n 'app.bsky.notification.putActivitySubscription',\n 'app.bsky.notification.putPreferences',\n 'app.bsky.notification.putPreferencesV2',\n 'app.bsky.notification.registerPush',\n 'app.bsky.notification.unregisterPush',\n 'app.bsky.notification.updateSeen',\n ],\n }),\n ],\n {\n title: 'Manage Bluesky Notifications',\n 'title:lang': {},\n detail: 'View and configure notifications for the Bluesky app.',\n 'detail:lang': {},\n },\n)\n\nexport { main }\n"]}
@@ -9,10 +9,12 @@ export declare const $params: l.ParamsSchema<{
9
9
  }>;
10
10
  readonly limit: l.OptionalSchema<l.WithDefaultSchema<l.IntegerSchema>>;
11
11
  readonly cursor: l.OptionalSchema<l.StringSchema<{}>>;
12
+ readonly since: l.OptionalSchema<l.StringSchema<{}>>;
12
13
  }>;
13
14
  export type $Params = l.InferOutput<typeof $params>;
14
15
  export declare const $output: l.Payload<"application/json", l.ObjectSchema<{
15
16
  cursor: l.OptionalSchema<l.StringSchema<{}>>;
17
+ startCursor: l.OptionalSchema<l.StringSchema<{}>>;
16
18
  feed: l.ArraySchema<l.RefSchema<l.Validator<FeedDefs.FeedViewPost, FeedDefs.FeedViewPost>>>;
17
19
  }>>;
18
20
  export type $Output<B = l.BinaryData> = l.InferPayload<typeof $output, B>;
@@ -24,8 +26,10 @@ declare const main: l.Query<"app.bsky.feed.getListFeed", l.ParamsSchema<{
24
26
  }>;
25
27
  readonly limit: l.OptionalSchema<l.WithDefaultSchema<l.IntegerSchema>>;
26
28
  readonly cursor: l.OptionalSchema<l.StringSchema<{}>>;
29
+ readonly since: l.OptionalSchema<l.StringSchema<{}>>;
27
30
  }>, l.Payload<"application/json", l.ObjectSchema<{
28
31
  cursor: l.OptionalSchema<l.StringSchema<{}>>;
32
+ startCursor: l.OptionalSchema<l.StringSchema<{}>>;
29
33
  feed: l.ArraySchema<l.RefSchema<l.Validator<FeedDefs.FeedViewPost, FeedDefs.FeedViewPost>>>;
30
34
  }>>, readonly ["UnknownList"]>;
31
35
  export { main };
@@ -1 +1 @@
1
- {"version":3,"file":"getListFeed.defs.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/app/bsky/feed/getListFeed.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAChC,OAAO,KAAK,QAAQ,MAAM,gBAAgB,CAAA;AAE1C,QAAA,MAAM,KAAK,8BAA8B,CAAA;AAEzC,KAAK,KAAK,GAAG,OAAO,KAAK,CAAA;AAEzB,OAAO,EAAE,KAAK,EAAE,CAAA;AAEhB,eAAO,MAAM,OAAO;;;;;;EASlB,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,qHAAqH;AACrH,QAAA,MAAM,IAAI;;;;;;;;;8BAAkE,CAAA;AAE5E,OAAO,EAAE,IAAI,EAAE,CAAA;AAEf,QAAA,MAAM,IAAI,8BAAQ,CAAA;AAElB,KAAK,IAAI,GAAG,OAAO,IAAI,CAAA;AAEvB,OAAO,EAAE,IAAI,EAAE,CAAA"}
1
+ {"version":3,"file":"getListFeed.defs.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/app/bsky/feed/getListFeed.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAChC,OAAO,KAAK,QAAQ,MAAM,gBAAgB,CAAA;AAE1C,QAAA,MAAM,KAAK,8BAA8B,CAAA;AAEzC,KAAK,KAAK,GAAG,OAAO,KAAK,CAAA;AAEzB,OAAO,EAAE,KAAK,EAAE,CAAA;AAEhB,eAAO,MAAM,OAAO;;;;;;;EAUlB,CAAA;AAEF,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,OAAO,CAAC,CAAA;AAEnD,eAAO,MAAM,OAAO;;;;GAQlB,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,qHAAqH;AACrH,QAAA,MAAM,IAAI;;;;;;;;;;;8BAAkE,CAAA;AAE5E,OAAO,EAAE,IAAI,EAAE,CAAA;AAEf,QAAA,MAAM,IAAI,8BAAQ,CAAA;AAElB,KAAK,IAAI,GAAG,OAAO,IAAI,CAAA;AAEvB,OAAO,EAAE,IAAI,EAAE,CAAA"}
@@ -11,9 +11,11 @@ export const $params = /*#__PURE__*/ l.params({
11
11
  /*#__PURE__*/ l.withDefault(
12
12
  /*#__PURE__*/ l.integer({ minimum: 1, maximum: 100 }), 50)),
13
13
  cursor: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),
14
+ since: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),
14
15
  });
15
16
  export const $output = /*#__PURE__*/ l.jsonPayload({
16
17
  cursor: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),
18
+ startCursor: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),
17
19
  feed: /*#__PURE__*/ l.array(
18
20
  /*#__PURE__*/ l.ref((() => FeedDefs.feedViewPost))),
19
21
  });
@@ -1 +1 @@
1
- {"version":3,"file":"getListFeed.defs.js","sourceRoot":"","sources":["../../../../../src/lexicons/app/bsky/feed/getListFeed.defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAChC,OAAO,KAAK,QAAQ,MAAM,gBAAgB,CAAA;AAE1C,MAAM,KAAK,GAAG,2BAA2B,CAAA;AAIzC,OAAO,EAAE,KAAK,EAAE,CAAA;AAEhB,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IAC5C,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;IAClD,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,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC1D,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK;IACzB,aAAa,CAAC,CAAC,CAAC,GAAG,CACjB,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,YAAY,CAAQ,CACrC,CACF;CACF,CAAC,CAAA;AAQF,qHAAqH;AACrH,MAAM,IAAI,GAAG,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,aAAa,CAAC,CAAC,CAAA;AAE5E,OAAO,EAAE,IAAI,EAAE,CAAA;AAEf,MAAM,IAAI,GAAG,KAAK,CAAA;AAIlB,OAAO,EAAE,IAAI,EAAE,CAAA","sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\nimport * as FeedDefs from './defs.defs.js'\n\nconst $nsid = 'app.bsky.feed.getListFeed'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\nexport const $params = /*#__PURE__*/ l.params({\n list: /*#__PURE__*/ l.string({ format: 'at-uri' }),\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 cursor: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\n feed: /*#__PURE__*/ l.array(\n /*#__PURE__*/ l.ref<FeedDefs.FeedViewPost>(\n (() => FeedDefs.feedViewPost) as any,\n ),\n ),\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/** Get a feed of recent posts from a list (posts and reposts from any actors on the list). Does not require auth. */\nconst main = /*#__PURE__*/ l.query($nsid, $params, $output, ['UnknownList'])\n\nexport { main }\n\nconst $lxm = $nsid\n\ntype $lxm = typeof $lxm\n\nexport { $lxm }\n"]}
1
+ {"version":3,"file":"getListFeed.defs.js","sourceRoot":"","sources":["../../../../../src/lexicons/app/bsky/feed/getListFeed.defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAChC,OAAO,KAAK,QAAQ,MAAM,gBAAgB,CAAA;AAE1C,MAAM,KAAK,GAAG,2BAA2B,CAAA;AAIzC,OAAO,EAAE,KAAK,EAAE,CAAA;AAEhB,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IAC5C,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;IAClD,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;IAC1D,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CAC1D,CAAC,CAAA;AAIF,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAC,CAAC,CAAC,WAAW,CAAC;IACjD,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC1D,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC/D,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK;IACzB,aAAa,CAAC,CAAC,CAAC,GAAG,CACjB,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,YAAY,CAAQ,CACrC,CACF;CACF,CAAC,CAAA;AAQF,qHAAqH;AACrH,MAAM,IAAI,GAAG,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,aAAa,CAAC,CAAC,CAAA;AAE5E,OAAO,EAAE,IAAI,EAAE,CAAA;AAEf,MAAM,IAAI,GAAG,KAAK,CAAA;AAIlB,OAAO,EAAE,IAAI,EAAE,CAAA","sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\nimport * as FeedDefs from './defs.defs.js'\n\nconst $nsid = 'app.bsky.feed.getListFeed'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\nexport const $params = /*#__PURE__*/ l.params({\n list: /*#__PURE__*/ l.string({ format: 'at-uri' }),\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 since: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\n})\n\nexport type $Params = l.InferOutput<typeof $params>\n\nexport const $output = /*#__PURE__*/ l.jsonPayload({\n cursor: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\n startCursor: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\n feed: /*#__PURE__*/ l.array(\n /*#__PURE__*/ l.ref<FeedDefs.FeedViewPost>(\n (() => FeedDefs.feedViewPost) as any,\n ),\n ),\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/** Get a feed of recent posts from a list (posts and reposts from any actors on the list). Does not require auth. */\nconst main = /*#__PURE__*/ l.query($nsid, $params, $output, ['UnknownList'])\n\nexport { main }\n\nconst $lxm = $nsid\n\ntype $lxm = typeof $lxm\n\nexport { $lxm }\n"]}
@@ -7,10 +7,12 @@ export declare const $params: l.ParamsSchema<{
7
7
  readonly algorithm: l.OptionalSchema<l.StringSchema<{}>>;
8
8
  readonly limit: l.OptionalSchema<l.WithDefaultSchema<l.IntegerSchema>>;
9
9
  readonly cursor: l.OptionalSchema<l.StringSchema<{}>>;
10
+ readonly since: l.OptionalSchema<l.StringSchema<{}>>;
10
11
  }>;
11
12
  export type $Params = l.InferOutput<typeof $params>;
12
13
  export declare const $output: l.Payload<"application/json", l.ObjectSchema<{
13
14
  cursor: l.OptionalSchema<l.StringSchema<{}>>;
15
+ startCursor: l.OptionalSchema<l.StringSchema<{}>>;
14
16
  feed: l.ArraySchema<l.RefSchema<l.Validator<FeedDefs.FeedViewPost, FeedDefs.FeedViewPost>>>;
15
17
  }>>;
16
18
  export type $Output<B = l.BinaryData> = l.InferPayload<typeof $output, B>;
@@ -20,8 +22,10 @@ declare const main: l.Query<"app.bsky.feed.getTimeline", l.ParamsSchema<{
20
22
  readonly algorithm: l.OptionalSchema<l.StringSchema<{}>>;
21
23
  readonly limit: l.OptionalSchema<l.WithDefaultSchema<l.IntegerSchema>>;
22
24
  readonly cursor: l.OptionalSchema<l.StringSchema<{}>>;
25
+ readonly since: l.OptionalSchema<l.StringSchema<{}>>;
23
26
  }>, l.Payload<"application/json", l.ObjectSchema<{
24
27
  cursor: l.OptionalSchema<l.StringSchema<{}>>;
28
+ startCursor: l.OptionalSchema<l.StringSchema<{}>>;
25
29
  feed: l.ArraySchema<l.RefSchema<l.Validator<FeedDefs.FeedViewPost, FeedDefs.FeedViewPost>>>;
26
30
  }>>, undefined>;
27
31
  export { main };
@@ -1 +1 @@
1
- {"version":3,"file":"getTimeline.defs.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/app/bsky/feed/getTimeline.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAChC,OAAO,KAAK,QAAQ,MAAM,gBAAgB,CAAA;AAE1C,QAAA,MAAM,KAAK,8BAA8B,CAAA;AAEzC,KAAK,KAAK,GAAG,OAAO,KAAK,CAAA;AAEzB,OAAO,EAAE,KAAK,EAAE,CAAA;AAEhB,eAAO,MAAM,OAAO;;;;EASlB,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,4HAA4H;AAC5H,QAAA,MAAM,IAAI;;;;;;;eAAiD,CAAA;AAE3D,OAAO,EAAE,IAAI,EAAE,CAAA;AAEf,QAAA,MAAM,IAAI,8BAAQ,CAAA;AAElB,KAAK,IAAI,GAAG,OAAO,IAAI,CAAA;AAEvB,OAAO,EAAE,IAAI,EAAE,CAAA"}
1
+ {"version":3,"file":"getTimeline.defs.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/app/bsky/feed/getTimeline.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAChC,OAAO,KAAK,QAAQ,MAAM,gBAAgB,CAAA;AAE1C,QAAA,MAAM,KAAK,8BAA8B,CAAA;AAEzC,KAAK,KAAK,GAAG,OAAO,KAAK,CAAA;AAEzB,OAAO,EAAE,KAAK,EAAE,CAAA;AAEhB,eAAO,MAAM,OAAO;;;;;EAUlB,CAAA;AAEF,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,OAAO,CAAC,CAAA;AAEnD,eAAO,MAAM,OAAO;;;;GAQlB,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,4HAA4H;AAC5H,QAAA,MAAM,IAAI;;;;;;;;;eAAiD,CAAA;AAE3D,OAAO,EAAE,IAAI,EAAE,CAAA;AAEf,QAAA,MAAM,IAAI,8BAAQ,CAAA;AAElB,KAAK,IAAI,GAAG,OAAO,IAAI,CAAA;AAEvB,OAAO,EAAE,IAAI,EAAE,CAAA"}
@@ -11,9 +11,11 @@ export const $params = /*#__PURE__*/ l.params({
11
11
  /*#__PURE__*/ l.withDefault(
12
12
  /*#__PURE__*/ l.integer({ minimum: 1, maximum: 100 }), 50)),
13
13
  cursor: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),
14
+ since: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),
14
15
  });
15
16
  export const $output = /*#__PURE__*/ l.jsonPayload({
16
17
  cursor: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),
18
+ startCursor: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),
17
19
  feed: /*#__PURE__*/ l.array(
18
20
  /*#__PURE__*/ l.ref((() => FeedDefs.feedViewPost))),
19
21
  });
@@ -1 +1 @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AC,CAAA;AAE3D,OAAO,EAAE,IAAI,EAAE,CAAA;AAEf,MAAM,IAAI,GAAG,KAAK,CAAA;AAIlB,OAAO,EAAE,IAAI,EAAE,CAAA","sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\nimport * as FeedDefs from './defs.defs.js'\n\nconst $nsid = 'app.bsky.feed.getTimeline'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\nexport const $params = /*#__PURE__*/ l.params({\n algorithm: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\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 cursor: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\n feed: /*#__PURE__*/ l.array(\n /*#__PURE__*/ l.ref<FeedDefs.FeedViewPost>(\n (() => FeedDefs.feedViewPost) as any,\n ),\n ),\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/** Get a view of the requesting account's home timeline. This is expected to be some form of reverse-chronological feed. */\nconst main = /*#__PURE__*/ l.query($nsid, $params, $output)\n\nexport { main }\n\nconst $lxm = $nsid\n\ntype $lxm = typeof $lxm\n\nexport { $lxm }\n"]}
1
+ {"version":3,"file":"getTimeline.defs.js","sourceRoot":"","sources":["../../../../../src/lexicons/app/bsky/feed/getTimeline.defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAChC,OAAO,KAAK,QAAQ,MAAM,gBAAgB,CAAA;AAE1C,M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AO,EAAE,IAAI,EAAE,CAAA;AAEf,MAAM,IAAI,GAAG,KAAK,CAAA;AAIlB,OAAO,EAAE,IAAI,EAAE,CAAA","sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\nimport * as FeedDefs from './defs.defs.js'\n\nconst $nsid = 'app.bsky.feed.getTimeline'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\nexport const $params = /*#__PURE__*/ l.params({\n algorithm: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\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 since: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\n})\n\nexport type $Params = l.InferOutput<typeof $params>\n\nexport const $output = /*#__PURE__*/ l.jsonPayload({\n cursor: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\n startCursor: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\n feed: /*#__PURE__*/ l.array(\n /*#__PURE__*/ l.ref<FeedDefs.FeedViewPost>(\n (() => FeedDefs.feedViewPost) as any,\n ),\n ),\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/** Get a view of the requesting account's home timeline. This is expected to be some form of reverse-chronological feed. */\nconst main = /*#__PURE__*/ l.query($nsid, $params, $output)\n\nexport { main }\n\nconst $lxm = $nsid\n\ntype $lxm = typeof $lxm\n\nexport { $lxm }\n"]}
@@ -0,0 +1,3 @@
1
+ export * from './getGroupedNotifications.defs.js';
2
+ export { main as default } from './getGroupedNotifications.defs.js';
3
+ //# sourceMappingURL=getGroupedNotifications.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getGroupedNotifications.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/app/bsky/notification/getGroupedNotifications.ts"],"names":[],"mappings":"AAIA,cAAc,mCAAmC,CAAA;AACjD,OAAO,EAAE,IAAI,IAAI,OAAO,EAAE,MAAM,mCAAmC,CAAA"}