@atproto/ozone 0.1.84 → 0.1.86
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.
- package/CHANGELOG.md +14 -0
- package/dist/lexicon/index.d.ts +2 -0
- package/dist/lexicon/index.d.ts.map +1 -1
- package/dist/lexicon/index.js +4 -0
- package/dist/lexicon/index.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +176 -28
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +89 -14
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/app/bsky/labeler/defs.d.ts +7 -0
- package/dist/lexicon/types/app/bsky/labeler/defs.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/labeler/defs.js.map +1 -1
- package/dist/lexicon/types/app/bsky/labeler/service.d.ts +7 -0
- package/dist/lexicon/types/app/bsky/labeler/service.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/labeler/service.js.map +1 -1
- package/dist/lexicon/types/chat/bsky/convo/updateAllRead.d.ts +40 -0
- package/dist/lexicon/types/chat/bsky/convo/updateAllRead.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/updateAllRead.js +7 -0
- package/dist/lexicon/types/chat/bsky/convo/updateAllRead.js.map +1 -0
- package/dist/lexicon/types/com/atproto/moderation/defs.d.ts +2 -0
- package/dist/lexicon/types/com/atproto/moderation/defs.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/repo/listRecords.d.ts +0 -4
- package/dist/lexicon/types/com/atproto/repo/listRecords.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/repo/listRecords.js.map +1 -1
- package/dist/lexicon/types/com/atproto/sync/getRecord.d.ts +0 -2
- package/dist/lexicon/types/com/atproto/sync/getRecord.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/lexicon/index.ts +12 -0
- package/src/lexicon/lexicons.ts +95 -17
- package/src/lexicon/types/app/bsky/labeler/defs.ts +7 -0
- package/src/lexicon/types/app/bsky/labeler/service.ts +7 -0
- package/src/lexicon/types/chat/bsky/convo/updateAllRead.ts +53 -0
- package/src/lexicon/types/com/atproto/moderation/defs.ts +3 -0
- package/src/lexicon/types/com/atproto/repo/listRecords.ts +0 -4
- package/src/lexicon/types/com/atproto/sync/getRecord.ts +0 -2
- package/tsconfig.build.tsbuildinfo +1 -1
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import { ValidationResult } from '@atproto/lexicon';
|
|
5
5
|
import type * as AppBskyActorDefs from '../actor/defs.js';
|
|
6
6
|
import type * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs.js';
|
|
7
|
+
import type * as ComAtprotoModerationDefs from '../../../com/atproto/moderation/defs.js';
|
|
7
8
|
export interface LabelerView {
|
|
8
9
|
$type?: 'app.bsky.labeler.defs#labelerView';
|
|
9
10
|
uri: string;
|
|
@@ -26,6 +27,12 @@ export interface LabelerViewDetailed {
|
|
|
26
27
|
viewer?: LabelerViewerState;
|
|
27
28
|
indexedAt: string;
|
|
28
29
|
labels?: ComAtprotoLabelDefs.Label[];
|
|
30
|
+
/** The set of report reason 'codes' which are in-scope for this service to review and action. These usually align to policy categories. If not defined (distinct from empty array), all reason types are allowed. */
|
|
31
|
+
reasonTypes?: ComAtprotoModerationDefs.ReasonType[];
|
|
32
|
+
/** The set of subject types (account, record, etc) this service accepts reports on. */
|
|
33
|
+
subjectTypes?: ComAtprotoModerationDefs.SubjectType[];
|
|
34
|
+
/** Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type. */
|
|
35
|
+
subjectCollections?: string[];
|
|
29
36
|
}
|
|
30
37
|
export declare function isLabelerViewDetailed<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.labeler.defs", "labelerViewDetailed">;
|
|
31
38
|
export declare function validateLabelerViewDetailed<V>(v: V): ValidationResult<LabelerViewDetailed & V>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/labeler/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAI5D,OAAO,KAAK,KAAK,gBAAgB,MAAM,kBAAkB,CAAA;AACzD,OAAO,KAAK,KAAK,mBAAmB,MAAM,oCAAoC,CAAA;
|
|
1
|
+
{"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/labeler/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAI5D,OAAO,KAAK,KAAK,gBAAgB,MAAM,kBAAkB,CAAA;AACzD,OAAO,KAAK,KAAK,mBAAmB,MAAM,oCAAoC,CAAA;AAC9E,OAAO,KAAK,KAAK,wBAAwB,MAAM,yCAAyC,CAAA;AAMxF,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,mCAAmC,CAAA;IAC3C,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,OAAO,EAAE,gBAAgB,CAAC,WAAW,CAAA;IACrC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,kBAAkB,CAAA;IAC3B,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,CAAC,EAAE,mBAAmB,CAAC,KAAK,EAAE,CAAA;CACrC;AAID,wBAAgB,aAAa,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,2FAEpC;AAED,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,qCAE1C;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE,2CAA2C,CAAA;IACnD,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,OAAO,EAAE,gBAAgB,CAAC,WAAW,CAAA;IACrC,QAAQ,EAAE,eAAe,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,kBAAkB,CAAA;IAC3B,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,CAAC,EAAE,mBAAmB,CAAC,KAAK,EAAE,CAAA;IACpC,qNAAqN;IACrN,WAAW,CAAC,EAAE,wBAAwB,CAAC,UAAU,EAAE,CAAA;IACnD,uFAAuF;IACvF,YAAY,CAAC,EAAE,wBAAwB,CAAC,WAAW,EAAE,CAAA;IACrD,4JAA4J;IAC5J,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAA;CAC9B;AAID,wBAAgB,qBAAqB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,mGAE5C;AAED,wBAAgB,2BAA2B,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,6CAElD;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,CAAC,EAAE,0CAA0C,CAAA;IAClD,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAID,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,kGAE3C;AAED,wBAAgB,0BAA0B,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,4CAEjD;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,uCAAuC,CAAA;IAC/C,0FAA0F;IAC1F,WAAW,EAAE,mBAAmB,CAAC,UAAU,EAAE,CAAA;IAC7C,sJAAsJ;IACtJ,qBAAqB,CAAC,EAAE,mBAAmB,CAAC,oBAAoB,EAAE,CAAA;CACnE;AAID,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,+FAExC;AAED,wBAAgB,uBAAuB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,yCAE9C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/labeler/defs.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/labeler/defs.ts"],"names":[],"mappings":";;AA4BA,sCAEC;AAED,kDAEC;AAsBD,sDAEC;AAED,kEAEC;AASD,oDAEC;AAED,gEAEC;AAYD,8CAEC;AAED,0DAEC;AA1FD,mDAA4D;AAC5D,2CAAyE;AAKzE,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,uBAAuB,CAAA;AAalC,MAAM,eAAe,GAAG,aAAa,CAAA;AAErC,SAAgB,aAAa,CAAI,CAAI;IACnC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,eAAe,CAAC,CAAA;AACzC,CAAC;AAED,SAAgB,mBAAmB,CAAI,CAAI;IACzC,OAAO,QAAQ,CAAkB,CAAC,EAAE,EAAE,EAAE,eAAe,CAAC,CAAA;AAC1D,CAAC;AAoBD,MAAM,uBAAuB,GAAG,qBAAqB,CAAA;AAErD,SAAgB,qBAAqB,CAAI,CAAI;IAC3C,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,uBAAuB,CAAC,CAAA;AACjD,CAAC;AAED,SAAgB,2BAA2B,CAAI,CAAI;IACjD,OAAO,QAAQ,CAA0B,CAAC,EAAE,EAAE,EAAE,uBAAuB,CAAC,CAAA;AAC1E,CAAC;AAOD,MAAM,sBAAsB,GAAG,oBAAoB,CAAA;AAEnD,SAAgB,oBAAoB,CAAI,CAAI;IAC1C,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,sBAAsB,CAAC,CAAA;AAChD,CAAC;AAED,SAAgB,0BAA0B,CAAI,CAAI;IAChD,OAAO,QAAQ,CAAyB,CAAC,EAAE,EAAE,EAAE,sBAAsB,CAAC,CAAA;AACxE,CAAC;AAUD,MAAM,mBAAmB,GAAG,iBAAiB,CAAA;AAE7C,SAAgB,iBAAiB,CAAI,CAAI;IACvC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,mBAAmB,CAAC,CAAA;AAC7C,CAAC;AAED,SAAgB,uBAAuB,CAAI,CAAI;IAC7C,OAAO,QAAQ,CAAsB,CAAC,EAAE,EAAE,EAAE,mBAAmB,CAAC,CAAA;AAClE,CAAC"}
|
|
@@ -5,6 +5,7 @@ import { ValidationResult } from '@atproto/lexicon';
|
|
|
5
5
|
import { $Typed } from '../../../../util';
|
|
6
6
|
import type * as AppBskyLabelerDefs from './defs.js';
|
|
7
7
|
import type * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs.js';
|
|
8
|
+
import type * as ComAtprotoModerationDefs from '../../../com/atproto/moderation/defs.js';
|
|
8
9
|
export interface Record {
|
|
9
10
|
$type: 'app.bsky.labeler.service';
|
|
10
11
|
policies: AppBskyLabelerDefs.LabelerPolicies;
|
|
@@ -12,6 +13,12 @@ export interface Record {
|
|
|
12
13
|
$type: string;
|
|
13
14
|
};
|
|
14
15
|
createdAt: string;
|
|
16
|
+
/** The set of report reason 'codes' which are in-scope for this service to review and action. These usually align to policy categories. If not defined (distinct from empty array), all reason types are allowed. */
|
|
17
|
+
reasonTypes?: ComAtprotoModerationDefs.ReasonType[];
|
|
18
|
+
/** The set of subject types (account, record, etc) this service accepts reports on. */
|
|
19
|
+
subjectTypes?: ComAtprotoModerationDefs.SubjectType[];
|
|
20
|
+
/** Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type. */
|
|
21
|
+
subjectCollections?: string[];
|
|
15
22
|
[k: string]: unknown;
|
|
16
23
|
}
|
|
17
24
|
export declare function isRecord<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.labeler.service", "main">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/labeler/service.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAG5D,OAAO,EAAE,MAAM,EAAkC,MAAM,kBAAkB,CAAA;AACzE,OAAO,KAAK,KAAK,kBAAkB,MAAM,WAAW,CAAA;AACpD,OAAO,KAAK,KAAK,mBAAmB,MAAM,oCAAoC,CAAA;
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/labeler/service.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAG5D,OAAO,EAAE,MAAM,EAAkC,MAAM,kBAAkB,CAAA;AACzE,OAAO,KAAK,KAAK,kBAAkB,MAAM,WAAW,CAAA;AACpD,OAAO,KAAK,KAAK,mBAAmB,MAAM,oCAAoC,CAAA;AAC9E,OAAO,KAAK,KAAK,wBAAwB,MAAM,yCAAyC,CAAA;AAMxF,MAAM,WAAW,MAAM;IACrB,KAAK,EAAE,0BAA0B,CAAA;IACjC,QAAQ,EAAE,kBAAkB,CAAC,eAAe,CAAA;IAC5C,MAAM,CAAC,EAAE,MAAM,CAAC,mBAAmB,CAAC,UAAU,CAAC,GAAG;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IACnE,SAAS,EAAE,MAAM,CAAA;IACjB,qNAAqN;IACrN,WAAW,CAAC,EAAE,wBAAwB,CAAC,UAAU,EAAE,CAAA;IACnD,uFAAuF;IACvF,YAAY,CAAC,EAAE,wBAAwB,CAAC,WAAW,EAAE,CAAA;IACrD,4JAA4J;IAC5J,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC7B,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAID,wBAAgB,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,uFAE/B;AAED,wBAAgB,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,gCAErC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/labeler/service.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/labeler/service.ts"],"names":[],"mappings":";;AA+BA,4BAEC;AAED,wCAEC;AAhCD,mDAA4D;AAC5D,2CAAyE;AAKzE,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,0BAA0B,CAAA;AAgBrC,MAAM,UAAU,GAAG,MAAM,CAAA;AAEzB,SAAgB,QAAQ,CAAI,CAAI;IAC9B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,UAAU,CAAC,CAAA;AACpC,CAAC;AAED,SAAgB,cAAc,CAAI,CAAI;IACpC,OAAO,QAAQ,CAAa,CAAC,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,CAAC,CAAA;AACtD,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import express from 'express';
|
|
5
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
|
6
|
+
export interface QueryParams {
|
|
7
|
+
}
|
|
8
|
+
export interface InputSchema {
|
|
9
|
+
status?: 'request' | 'accepted' | (string & {});
|
|
10
|
+
}
|
|
11
|
+
export interface OutputSchema {
|
|
12
|
+
/** The count of updated convos. */
|
|
13
|
+
updatedCount: number;
|
|
14
|
+
}
|
|
15
|
+
export interface HandlerInput {
|
|
16
|
+
encoding: 'application/json';
|
|
17
|
+
body: InputSchema;
|
|
18
|
+
}
|
|
19
|
+
export interface HandlerSuccess {
|
|
20
|
+
encoding: 'application/json';
|
|
21
|
+
body: OutputSchema;
|
|
22
|
+
headers?: {
|
|
23
|
+
[key: string]: string;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export interface HandlerError {
|
|
27
|
+
status: number;
|
|
28
|
+
message?: string;
|
|
29
|
+
}
|
|
30
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
|
31
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
32
|
+
auth: HA;
|
|
33
|
+
params: QueryParams;
|
|
34
|
+
input: HandlerInput;
|
|
35
|
+
req: express.Request;
|
|
36
|
+
res: express.Response;
|
|
37
|
+
resetRouteRateLimits: () => Promise<void>;
|
|
38
|
+
};
|
|
39
|
+
export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
|
|
40
|
+
//# sourceMappingURL=updateAllRead.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateAllRead.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/chat/bsky/convo/updateAllRead.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,OAAO,MAAM,SAAS,CAAA;AAK7B,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAMtE,MAAM,WAAW,WAAW;CAAG;AAE/B,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;CAChD;AAED,MAAM,WAAW,YAAY;IAC3B,mCAAmC;IACnC,YAAY,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,WAAW,CAAA;CAClB;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,YAAY,CAAA;IAClB,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAA;CACpC;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,cAAc,GAAG,kBAAkB,CAAA;AAC9E,MAAM,MAAM,aAAa,CAAC,EAAE,SAAS,WAAW,GAAG,KAAK,IAAI;IAC1D,IAAI,EAAE,EAAE,CAAA;IACR,MAAM,EAAE,WAAW,CAAA;IACnB,KAAK,EAAE,YAAY,CAAA;IACnB,GAAG,EAAE,OAAO,CAAC,OAAO,CAAA;IACpB,GAAG,EAAE,OAAO,CAAC,QAAQ,CAAA;IACrB,oBAAoB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;CAC1C,CAAA;AACD,MAAM,MAAM,OAAO,CAAC,EAAE,SAAS,WAAW,GAAG,KAAK,IAAI,CACpD,GAAG,EAAE,aAAa,CAAC,EAAE,CAAC,KACnB,OAAO,CAAC,aAAa,CAAC,GAAG,aAAa,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const lexicons_1 = require("../../../../lexicons");
|
|
4
|
+
const util_1 = require("../../../../util");
|
|
5
|
+
const is$typed = util_1.is$typed, validate = lexicons_1.validate;
|
|
6
|
+
const id = 'chat.bsky.convo.updateAllRead';
|
|
7
|
+
//# sourceMappingURL=updateAllRead.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateAllRead.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/chat/bsky/convo/updateAllRead.ts"],"names":[],"mappings":";;AAMA,mDAA4D;AAC5D,2CAAyE;AAGzE,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,+BAA+B,CAAA"}
|
|
@@ -13,4 +13,6 @@ export declare const REASONRUDE = "com.atproto.moderation.defs#reasonRude";
|
|
|
13
13
|
export declare const REASONOTHER = "com.atproto.moderation.defs#reasonOther";
|
|
14
14
|
/** Appeal: appeal a previously taken moderation action */
|
|
15
15
|
export declare const REASONAPPEAL = "com.atproto.moderation.defs#reasonAppeal";
|
|
16
|
+
/** Tag describing a type of subject that might be reported. */
|
|
17
|
+
export type SubjectType = 'account' | 'record' | 'chat' | (string & {});
|
|
16
18
|
//# sourceMappingURL=defs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/com/atproto/moderation/defs.ts"],"names":[],"mappings":"AAYA,MAAM,MAAM,UAAU,GAClB,wCAAwC,GACxC,6CAA6C,GAC7C,8CAA8C,GAC9C,0CAA0C,GAC1C,wCAAwC,GACxC,yCAAyC,GACzC,0CAA0C,GAC1C,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;AAEjB,2DAA2D;AAC3D,eAAO,MAAM,UAAU,2CAAqB,CAAA;AAC5C,+DAA+D;AAC/D,eAAO,MAAM,eAAe,gDAA0B,CAAA;AACtD,mDAAmD;AACnD,eAAO,MAAM,gBAAgB,iDAA2B,CAAA;AACxD,4CAA4C;AAC5C,eAAO,MAAM,YAAY,6CAAuB,CAAA;AAChD,mEAAmE;AACnE,eAAO,MAAM,UAAU,2CAAqB,CAAA;AAC5C,+DAA+D;AAC/D,eAAO,MAAM,WAAW,4CAAsB,CAAA;AAC9C,0DAA0D;AAC1D,eAAO,MAAM,YAAY,6CAAuB,CAAA"}
|
|
1
|
+
{"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/com/atproto/moderation/defs.ts"],"names":[],"mappings":"AAYA,MAAM,MAAM,UAAU,GAClB,wCAAwC,GACxC,6CAA6C,GAC7C,8CAA8C,GAC9C,0CAA0C,GAC1C,wCAAwC,GACxC,yCAAyC,GACzC,0CAA0C,GAC1C,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;AAEjB,2DAA2D;AAC3D,eAAO,MAAM,UAAU,2CAAqB,CAAA;AAC5C,+DAA+D;AAC/D,eAAO,MAAM,eAAe,gDAA0B,CAAA;AACtD,mDAAmD;AACnD,eAAO,MAAM,gBAAgB,iDAA2B,CAAA;AACxD,4CAA4C;AAC5C,eAAO,MAAM,YAAY,6CAAuB,CAAA;AAChD,mEAAmE;AACnE,eAAO,MAAM,UAAU,2CAAqB,CAAA;AAC5C,+DAA+D;AAC/D,eAAO,MAAM,WAAW,4CAAsB,CAAA;AAC9C,0DAA0D;AAC1D,eAAO,MAAM,YAAY,6CAAuB,CAAA;AAEhD,+DAA+D;AAC/D,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA"}
|
|
@@ -12,10 +12,6 @@ export interface QueryParams {
|
|
|
12
12
|
/** The number of records to return. */
|
|
13
13
|
limit: number;
|
|
14
14
|
cursor?: string;
|
|
15
|
-
/** DEPRECATED: The lowest sort-ordered rkey to start from (exclusive) */
|
|
16
|
-
rkeyStart?: string;
|
|
17
|
-
/** DEPRECATED: The highest sort-ordered rkey to stop at (exclusive) */
|
|
18
|
-
rkeyEnd?: string;
|
|
19
15
|
/** Flag to reverse the order of the returned records. */
|
|
20
16
|
reverse?: boolean;
|
|
21
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listRecords.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/com/atproto/repo/listRecords.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,OAAO,MAAM,SAAS,CAAA;AAC7B,OAAO,EAAE,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAI5D,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAMtE,MAAM,WAAW,WAAW;IAC1B,qCAAqC;IACrC,IAAI,EAAE,MAAM,CAAA;IACZ,mCAAmC;IACnC,UAAU,EAAE,MAAM,CAAA;IAClB,uCAAuC;IACvC,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,
|
|
1
|
+
{"version":3,"file":"listRecords.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/com/atproto/repo/listRecords.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,OAAO,MAAM,SAAS,CAAA;AAC7B,OAAO,EAAE,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAI5D,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAMtE,MAAM,WAAW,WAAW;IAC1B,qCAAqC;IACrC,IAAI,EAAE,MAAM,CAAA;IACZ,mCAAmC;IACnC,UAAU,EAAE,MAAM,CAAA;IAClB,uCAAuC;IACvC,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,yDAAyD;IACzD,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,EAAE,CAAA;CAClB;AAED,MAAM,MAAM,YAAY,GAAG,SAAS,CAAA;AAEpC,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,YAAY,CAAA;IAClB,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAA;CACpC;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,cAAc,GAAG,kBAAkB,CAAA;AAC9E,MAAM,MAAM,aAAa,CAAC,EAAE,SAAS,WAAW,GAAG,KAAK,IAAI;IAC1D,IAAI,EAAE,EAAE,CAAA;IACR,MAAM,EAAE,WAAW,CAAA;IACnB,KAAK,EAAE,YAAY,CAAA;IACnB,GAAG,EAAE,OAAO,CAAC,OAAO,CAAA;IACpB,GAAG,EAAE,OAAO,CAAC,QAAQ,CAAA;IACrB,oBAAoB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;CAC1C,CAAA;AACD,MAAM,MAAM,OAAO,CAAC,EAAE,SAAS,WAAW,GAAG,KAAK,IAAI,CACpD,GAAG,EAAE,aAAa,CAAC,EAAE,CAAC,KACnB,OAAO,CAAC,aAAa,CAAC,GAAG,aAAa,CAAA;AAE3C,MAAM,WAAW,MAAM;IACrB,KAAK,CAAC,EAAE,qCAAqC,CAAA;IAC7C,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE;SAAG,CAAC,IAAI,MAAM,GAAG,OAAO;KAAE,CAAA;CAClC;AAID,wBAAgB,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,6FAE/B;AAED,wBAAgB,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,gCAErC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listRecords.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/com/atproto/repo/listRecords.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"listRecords.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/com/atproto/repo/listRecords.ts"],"names":[],"mappings":";;AAoEA,4BAEC;AAED,wCAEC;AApED,mDAA4D;AAC5D,2CAAyE;AAGzE,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,8BAA8B,CAAA;AAsDzC,MAAM,UAAU,GAAG,QAAQ,CAAA;AAE3B,SAAgB,QAAQ,CAAI,CAAI;IAC9B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,UAAU,CAAC,CAAA;AACpC,CAAC;AAED,SAAgB,cAAc,CAAI,CAAI;IACpC,OAAO,QAAQ,CAAa,CAAC,EAAE,EAAE,EAAE,UAAU,CAAC,CAAA;AAChD,CAAC"}
|
|
@@ -10,8 +10,6 @@ export interface QueryParams {
|
|
|
10
10
|
collection: string;
|
|
11
11
|
/** Record Key */
|
|
12
12
|
rkey: string;
|
|
13
|
-
/** DEPRECATED: referenced a repo commit by CID, and retrieved record as of that commit */
|
|
14
|
-
commit?: string;
|
|
15
13
|
}
|
|
16
14
|
export type InputSchema = undefined;
|
|
17
15
|
export type HandlerInput = undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRecord.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/com/atproto/sync/getRecord.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,OAAO,MAAM,SAAS,CAAA;AAC7B,OAAO,MAAM,MAAM,aAAa,CAAA;AAKhC,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAMtE,MAAM,WAAW,WAAW;IAC1B,2BAA2B;IAC3B,GAAG,EAAE,MAAM,CAAA;IACX,UAAU,EAAE,MAAM,CAAA;IAClB,iBAAiB;IACjB,IAAI,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"getRecord.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/com/atproto/sync/getRecord.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,OAAO,MAAM,SAAS,CAAA;AAC7B,OAAO,MAAM,MAAM,aAAa,CAAA;AAKhC,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAMtE,MAAM,WAAW,WAAW;IAC1B,2BAA2B;IAC3B,GAAG,EAAE,MAAM,CAAA;IACX,UAAU,EAAE,MAAM,CAAA;IAClB,iBAAiB;IACjB,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AACnC,MAAM,MAAM,YAAY,GAAG,SAAS,CAAA;AAEpC,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,0BAA0B,CAAA;IACpC,IAAI,EAAE,UAAU,GAAG,MAAM,CAAC,QAAQ,CAAA;IAClC,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAA;CACpC;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EACF,gBAAgB,GAChB,cAAc,GACd,eAAe,GACf,eAAe,GACf,iBAAiB,CAAA;CACtB;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,cAAc,GAAG,kBAAkB,CAAA;AAC9E,MAAM,MAAM,aAAa,CAAC,EAAE,SAAS,WAAW,GAAG,KAAK,IAAI;IAC1D,IAAI,EAAE,EAAE,CAAA;IACR,MAAM,EAAE,WAAW,CAAA;IACnB,KAAK,EAAE,YAAY,CAAA;IACnB,GAAG,EAAE,OAAO,CAAC,OAAO,CAAA;IACpB,GAAG,EAAE,OAAO,CAAC,QAAQ,CAAA;IACrB,oBAAoB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;CAC1C,CAAA;AACD,MAAM,MAAM,OAAO,CAAC,EAAE,SAAS,WAAW,GAAG,KAAK,IAAI,CACpD,GAAG,EAAE,aAAa,CAAC,EAAE,CAAC,KACnB,OAAO,CAAC,aAAa,CAAC,GAAG,aAAa,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atproto/ozone",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.86",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Backend service for moderating the Bluesky network.",
|
|
6
6
|
"keywords": [
|
|
@@ -35,14 +35,14 @@
|
|
|
35
35
|
"typed-emitter": "^2.1.0",
|
|
36
36
|
"uint8arrays": "3.0.0",
|
|
37
37
|
"undici": "^6.14.1",
|
|
38
|
-
"@atproto/api": "^0.14.
|
|
38
|
+
"@atproto/api": "^0.14.7",
|
|
39
39
|
"@atproto/common": "^0.4.8",
|
|
40
40
|
"@atproto/crypto": "^0.4.4",
|
|
41
41
|
"@atproto/identity": "^0.4.6",
|
|
42
|
-
"@atproto/lexicon": "^0.4.7",
|
|
43
42
|
"@atproto/syntax": "^0.3.3",
|
|
44
|
-
"@atproto/xrpc": "^0.
|
|
45
|
-
"@atproto/
|
|
43
|
+
"@atproto/xrpc-server": "^0.7.11",
|
|
44
|
+
"@atproto/lexicon": "^0.4.7",
|
|
45
|
+
"@atproto/xrpc": "^0.6.9"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@did-plc/server": "^0.0.1",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"ts-node": "^10.8.2",
|
|
56
56
|
"typescript": "^5.6.3",
|
|
57
57
|
"@atproto/lex-cli": "^0.6.1",
|
|
58
|
-
"@atproto/pds": "^0.4.
|
|
58
|
+
"@atproto/pds": "^0.4.104"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"codegen": "lex gen-server --yes ./src/lexicon ../../lexicons/com/atproto/*/* ../../lexicons/app/bsky/*/* ../../lexicons/chat/bsky/*/* ../../lexicons/tools/ozone/*/*",
|
package/src/lexicon/index.ts
CHANGED
|
@@ -163,6 +163,7 @@ import * as ChatBskyConvoMuteConvo from './types/chat/bsky/convo/muteConvo.js'
|
|
|
163
163
|
import * as ChatBskyConvoSendMessage from './types/chat/bsky/convo/sendMessage.js'
|
|
164
164
|
import * as ChatBskyConvoSendMessageBatch from './types/chat/bsky/convo/sendMessageBatch.js'
|
|
165
165
|
import * as ChatBskyConvoUnmuteConvo from './types/chat/bsky/convo/unmuteConvo.js'
|
|
166
|
+
import * as ChatBskyConvoUpdateAllRead from './types/chat/bsky/convo/updateAllRead.js'
|
|
166
167
|
import * as ChatBskyConvoUpdateRead from './types/chat/bsky/convo/updateRead.js'
|
|
167
168
|
import * as ChatBskyModerationGetActorMetadata from './types/chat/bsky/moderation/getActorMetadata.js'
|
|
168
169
|
import * as ChatBskyModerationGetMessageContext from './types/chat/bsky/moderation/getMessageContext.js'
|
|
@@ -2214,6 +2215,17 @@ export class ChatBskyConvoNS {
|
|
|
2214
2215
|
return this._server.xrpc.method(nsid, cfg)
|
|
2215
2216
|
}
|
|
2216
2217
|
|
|
2218
|
+
updateAllRead<AV extends AuthVerifier>(
|
|
2219
|
+
cfg: ConfigOf<
|
|
2220
|
+
AV,
|
|
2221
|
+
ChatBskyConvoUpdateAllRead.Handler<ExtractAuth<AV>>,
|
|
2222
|
+
ChatBskyConvoUpdateAllRead.HandlerReqCtx<ExtractAuth<AV>>
|
|
2223
|
+
>,
|
|
2224
|
+
) {
|
|
2225
|
+
const nsid = 'chat.bsky.convo.updateAllRead' // @ts-ignore
|
|
2226
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
2227
|
+
}
|
|
2228
|
+
|
|
2217
2229
|
updateRead<AV extends AuthVerifier>(
|
|
2218
2230
|
cfg: ConfigOf<
|
|
2219
2231
|
AV,
|
package/src/lexicon/lexicons.ts
CHANGED
|
@@ -1278,6 +1278,11 @@ export const schemaDict = {
|
|
|
1278
1278
|
type: 'token',
|
|
1279
1279
|
description: 'Appeal: appeal a previously taken moderation action',
|
|
1280
1280
|
},
|
|
1281
|
+
subjectType: {
|
|
1282
|
+
type: 'string',
|
|
1283
|
+
description: 'Tag describing a type of subject that might be reported.',
|
|
1284
|
+
knownValues: ['account', 'record', 'chat'],
|
|
1285
|
+
},
|
|
1281
1286
|
},
|
|
1282
1287
|
},
|
|
1283
1288
|
ComAtprotoRepoApplyWrites: {
|
|
@@ -1855,16 +1860,6 @@ export const schemaDict = {
|
|
|
1855
1860
|
cursor: {
|
|
1856
1861
|
type: 'string',
|
|
1857
1862
|
},
|
|
1858
|
-
rkeyStart: {
|
|
1859
|
-
type: 'string',
|
|
1860
|
-
description:
|
|
1861
|
-
'DEPRECATED: The lowest sort-ordered rkey to start from (exclusive)',
|
|
1862
|
-
},
|
|
1863
|
-
rkeyEnd: {
|
|
1864
|
-
type: 'string',
|
|
1865
|
-
description:
|
|
1866
|
-
'DEPRECATED: The highest sort-ordered rkey to stop at (exclusive)',
|
|
1867
|
-
},
|
|
1868
1863
|
reverse: {
|
|
1869
1864
|
type: 'boolean',
|
|
1870
1865
|
description: 'Flag to reverse the order of the returned records.',
|
|
@@ -3405,12 +3400,6 @@ export const schemaDict = {
|
|
|
3405
3400
|
description: 'Record Key',
|
|
3406
3401
|
format: 'record-key',
|
|
3407
3402
|
},
|
|
3408
|
-
commit: {
|
|
3409
|
-
type: 'string',
|
|
3410
|
-
format: 'cid',
|
|
3411
|
-
description:
|
|
3412
|
-
'DEPRECATED: referenced a repo commit by CID, and retrieved record as of that commit',
|
|
3413
|
-
},
|
|
3414
3403
|
},
|
|
3415
3404
|
},
|
|
3416
3405
|
output: {
|
|
@@ -3759,7 +3748,7 @@ export const schemaDict = {
|
|
|
3759
3748
|
main: {
|
|
3760
3749
|
type: 'procedure',
|
|
3761
3750
|
description:
|
|
3762
|
-
'Notify a crawling service of a recent update, and that crawling should resume. Intended use is after a gap between repo stream events caused the crawling service to disconnect. Does not require auth; implemented by Relay.',
|
|
3751
|
+
'Notify a crawling service of a recent update, and that crawling should resume. Intended use is after a gap between repo stream events caused the crawling service to disconnect. Does not require auth; implemented by Relay. DEPRECATED: just use com.atproto.sync.requestCrawl',
|
|
3763
3752
|
input: {
|
|
3764
3753
|
encoding: 'application/json',
|
|
3765
3754
|
schema: {
|
|
@@ -9055,6 +9044,33 @@ export const schemaDict = {
|
|
|
9055
9044
|
ref: 'lex:com.atproto.label.defs#label',
|
|
9056
9045
|
},
|
|
9057
9046
|
},
|
|
9047
|
+
reasonTypes: {
|
|
9048
|
+
description:
|
|
9049
|
+
"The set of report reason 'codes' which are in-scope for this service to review and action. These usually align to policy categories. If not defined (distinct from empty array), all reason types are allowed.",
|
|
9050
|
+
type: 'array',
|
|
9051
|
+
items: {
|
|
9052
|
+
type: 'ref',
|
|
9053
|
+
ref: 'lex:com.atproto.moderation.defs#reasonType',
|
|
9054
|
+
},
|
|
9055
|
+
},
|
|
9056
|
+
subjectTypes: {
|
|
9057
|
+
description:
|
|
9058
|
+
'The set of subject types (account, record, etc) this service accepts reports on.',
|
|
9059
|
+
type: 'array',
|
|
9060
|
+
items: {
|
|
9061
|
+
type: 'ref',
|
|
9062
|
+
ref: 'lex:com.atproto.moderation.defs#subjectType',
|
|
9063
|
+
},
|
|
9064
|
+
},
|
|
9065
|
+
subjectCollections: {
|
|
9066
|
+
type: 'array',
|
|
9067
|
+
description:
|
|
9068
|
+
'Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type.',
|
|
9069
|
+
items: {
|
|
9070
|
+
type: 'string',
|
|
9071
|
+
format: 'nsid',
|
|
9072
|
+
},
|
|
9073
|
+
},
|
|
9058
9074
|
},
|
|
9059
9075
|
},
|
|
9060
9076
|
labelerViewerState: {
|
|
@@ -9162,6 +9178,33 @@ export const schemaDict = {
|
|
|
9162
9178
|
type: 'string',
|
|
9163
9179
|
format: 'datetime',
|
|
9164
9180
|
},
|
|
9181
|
+
reasonTypes: {
|
|
9182
|
+
description:
|
|
9183
|
+
"The set of report reason 'codes' which are in-scope for this service to review and action. These usually align to policy categories. If not defined (distinct from empty array), all reason types are allowed.",
|
|
9184
|
+
type: 'array',
|
|
9185
|
+
items: {
|
|
9186
|
+
type: 'ref',
|
|
9187
|
+
ref: 'lex:com.atproto.moderation.defs#reasonType',
|
|
9188
|
+
},
|
|
9189
|
+
},
|
|
9190
|
+
subjectTypes: {
|
|
9191
|
+
description:
|
|
9192
|
+
'The set of subject types (account, record, etc) this service accepts reports on.',
|
|
9193
|
+
type: 'array',
|
|
9194
|
+
items: {
|
|
9195
|
+
type: 'ref',
|
|
9196
|
+
ref: 'lex:com.atproto.moderation.defs#subjectType',
|
|
9197
|
+
},
|
|
9198
|
+
},
|
|
9199
|
+
subjectCollections: {
|
|
9200
|
+
type: 'array',
|
|
9201
|
+
description:
|
|
9202
|
+
'Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type.',
|
|
9203
|
+
items: {
|
|
9204
|
+
type: 'string',
|
|
9205
|
+
format: 'nsid',
|
|
9206
|
+
},
|
|
9207
|
+
},
|
|
9165
9208
|
},
|
|
9166
9209
|
},
|
|
9167
9210
|
},
|
|
@@ -11042,6 +11085,40 @@ export const schemaDict = {
|
|
|
11042
11085
|
},
|
|
11043
11086
|
},
|
|
11044
11087
|
},
|
|
11088
|
+
ChatBskyConvoUpdateAllRead: {
|
|
11089
|
+
lexicon: 1,
|
|
11090
|
+
id: 'chat.bsky.convo.updateAllRead',
|
|
11091
|
+
defs: {
|
|
11092
|
+
main: {
|
|
11093
|
+
type: 'procedure',
|
|
11094
|
+
input: {
|
|
11095
|
+
encoding: 'application/json',
|
|
11096
|
+
schema: {
|
|
11097
|
+
type: 'object',
|
|
11098
|
+
properties: {
|
|
11099
|
+
status: {
|
|
11100
|
+
type: 'string',
|
|
11101
|
+
knownValues: ['request', 'accepted'],
|
|
11102
|
+
},
|
|
11103
|
+
},
|
|
11104
|
+
},
|
|
11105
|
+
},
|
|
11106
|
+
output: {
|
|
11107
|
+
encoding: 'application/json',
|
|
11108
|
+
schema: {
|
|
11109
|
+
type: 'object',
|
|
11110
|
+
required: ['updatedCount'],
|
|
11111
|
+
properties: {
|
|
11112
|
+
updatedCount: {
|
|
11113
|
+
description: 'The count of updated convos.',
|
|
11114
|
+
type: 'integer',
|
|
11115
|
+
},
|
|
11116
|
+
},
|
|
11117
|
+
},
|
|
11118
|
+
},
|
|
11119
|
+
},
|
|
11120
|
+
},
|
|
11121
|
+
},
|
|
11045
11122
|
ChatBskyConvoUpdateRead: {
|
|
11046
11123
|
lexicon: 1,
|
|
11047
11124
|
id: 'chat.bsky.convo.updateRead',
|
|
@@ -14508,6 +14585,7 @@ export const ids = {
|
|
|
14508
14585
|
ChatBskyConvoSendMessage: 'chat.bsky.convo.sendMessage',
|
|
14509
14586
|
ChatBskyConvoSendMessageBatch: 'chat.bsky.convo.sendMessageBatch',
|
|
14510
14587
|
ChatBskyConvoUnmuteConvo: 'chat.bsky.convo.unmuteConvo',
|
|
14588
|
+
ChatBskyConvoUpdateAllRead: 'chat.bsky.convo.updateAllRead',
|
|
14511
14589
|
ChatBskyConvoUpdateRead: 'chat.bsky.convo.updateRead',
|
|
14512
14590
|
ChatBskyModerationGetActorMetadata: 'chat.bsky.moderation.getActorMetadata',
|
|
14513
14591
|
ChatBskyModerationGetMessageContext: 'chat.bsky.moderation.getMessageContext',
|
|
@@ -7,6 +7,7 @@ import { validate as _validate } from '../../../../lexicons'
|
|
|
7
7
|
import { $Typed, is$typed as _is$typed, OmitKey } from '../../../../util'
|
|
8
8
|
import type * as AppBskyActorDefs from '../actor/defs.js'
|
|
9
9
|
import type * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs.js'
|
|
10
|
+
import type * as ComAtprotoModerationDefs from '../../../com/atproto/moderation/defs.js'
|
|
10
11
|
|
|
11
12
|
const is$typed = _is$typed,
|
|
12
13
|
validate = _validate
|
|
@@ -43,6 +44,12 @@ export interface LabelerViewDetailed {
|
|
|
43
44
|
viewer?: LabelerViewerState
|
|
44
45
|
indexedAt: string
|
|
45
46
|
labels?: ComAtprotoLabelDefs.Label[]
|
|
47
|
+
/** The set of report reason 'codes' which are in-scope for this service to review and action. These usually align to policy categories. If not defined (distinct from empty array), all reason types are allowed. */
|
|
48
|
+
reasonTypes?: ComAtprotoModerationDefs.ReasonType[]
|
|
49
|
+
/** The set of subject types (account, record, etc) this service accepts reports on. */
|
|
50
|
+
subjectTypes?: ComAtprotoModerationDefs.SubjectType[]
|
|
51
|
+
/** Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type. */
|
|
52
|
+
subjectCollections?: string[]
|
|
46
53
|
}
|
|
47
54
|
|
|
48
55
|
const hashLabelerViewDetailed = 'labelerViewDetailed'
|
|
@@ -7,6 +7,7 @@ import { validate as _validate } from '../../../../lexicons'
|
|
|
7
7
|
import { $Typed, is$typed as _is$typed, OmitKey } from '../../../../util'
|
|
8
8
|
import type * as AppBskyLabelerDefs from './defs.js'
|
|
9
9
|
import type * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs.js'
|
|
10
|
+
import type * as ComAtprotoModerationDefs from '../../../com/atproto/moderation/defs.js'
|
|
10
11
|
|
|
11
12
|
const is$typed = _is$typed,
|
|
12
13
|
validate = _validate
|
|
@@ -17,6 +18,12 @@ export interface Record {
|
|
|
17
18
|
policies: AppBskyLabelerDefs.LabelerPolicies
|
|
18
19
|
labels?: $Typed<ComAtprotoLabelDefs.SelfLabels> | { $type: string }
|
|
19
20
|
createdAt: string
|
|
21
|
+
/** The set of report reason 'codes' which are in-scope for this service to review and action. These usually align to policy categories. If not defined (distinct from empty array), all reason types are allowed. */
|
|
22
|
+
reasonTypes?: ComAtprotoModerationDefs.ReasonType[]
|
|
23
|
+
/** The set of subject types (account, record, etc) this service accepts reports on. */
|
|
24
|
+
subjectTypes?: ComAtprotoModerationDefs.SubjectType[]
|
|
25
|
+
/** Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type. */
|
|
26
|
+
subjectCollections?: string[]
|
|
20
27
|
[k: string]: unknown
|
|
21
28
|
}
|
|
22
29
|
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import express from 'express'
|
|
5
|
+
import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
6
|
+
import { CID } from 'multiformats/cid'
|
|
7
|
+
import { validate as _validate } from '../../../../lexicons'
|
|
8
|
+
import { $Typed, is$typed as _is$typed, OmitKey } from '../../../../util'
|
|
9
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
|
10
|
+
|
|
11
|
+
const is$typed = _is$typed,
|
|
12
|
+
validate = _validate
|
|
13
|
+
const id = 'chat.bsky.convo.updateAllRead'
|
|
14
|
+
|
|
15
|
+
export interface QueryParams {}
|
|
16
|
+
|
|
17
|
+
export interface InputSchema {
|
|
18
|
+
status?: 'request' | 'accepted' | (string & {})
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface OutputSchema {
|
|
22
|
+
/** The count of updated convos. */
|
|
23
|
+
updatedCount: number
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface HandlerInput {
|
|
27
|
+
encoding: 'application/json'
|
|
28
|
+
body: InputSchema
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface HandlerSuccess {
|
|
32
|
+
encoding: 'application/json'
|
|
33
|
+
body: OutputSchema
|
|
34
|
+
headers?: { [key: string]: string }
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface HandlerError {
|
|
38
|
+
status: number
|
|
39
|
+
message?: string
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
|
43
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
|
44
|
+
auth: HA
|
|
45
|
+
params: QueryParams
|
|
46
|
+
input: HandlerInput
|
|
47
|
+
req: express.Request
|
|
48
|
+
res: express.Response
|
|
49
|
+
resetRouteRateLimits: () => Promise<void>
|
|
50
|
+
}
|
|
51
|
+
export type Handler<HA extends HandlerAuth = never> = (
|
|
52
|
+
ctx: HandlerReqCtx<HA>,
|
|
53
|
+
) => Promise<HandlerOutput> | HandlerOutput
|
|
@@ -34,3 +34,6 @@ export const REASONRUDE = `${id}#reasonRude`
|
|
|
34
34
|
export const REASONOTHER = `${id}#reasonOther`
|
|
35
35
|
/** Appeal: appeal a previously taken moderation action */
|
|
36
36
|
export const REASONAPPEAL = `${id}#reasonAppeal`
|
|
37
|
+
|
|
38
|
+
/** Tag describing a type of subject that might be reported. */
|
|
39
|
+
export type SubjectType = 'account' | 'record' | 'chat' | (string & {})
|
|
@@ -20,10 +20,6 @@ export interface QueryParams {
|
|
|
20
20
|
/** The number of records to return. */
|
|
21
21
|
limit: number
|
|
22
22
|
cursor?: string
|
|
23
|
-
/** DEPRECATED: The lowest sort-ordered rkey to start from (exclusive) */
|
|
24
|
-
rkeyStart?: string
|
|
25
|
-
/** DEPRECATED: The highest sort-ordered rkey to stop at (exclusive) */
|
|
26
|
-
rkeyEnd?: string
|
|
27
23
|
/** Flag to reverse the order of the returned records. */
|
|
28
24
|
reverse?: boolean
|
|
29
25
|
}
|