@atproto/api 0.14.5 → 0.14.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/dist/client/index.d.ts +3 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +7 -3
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +176 -28
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +89 -14
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/app/bsky/labeler/defs.d.ts +7 -0
- package/dist/client/types/app/bsky/labeler/defs.d.ts.map +1 -1
- package/dist/client/types/app/bsky/labeler/defs.js.map +1 -1
- package/dist/client/types/app/bsky/labeler/service.d.ts +7 -0
- package/dist/client/types/app/bsky/labeler/service.d.ts.map +1 -1
- package/dist/client/types/app/bsky/labeler/service.js.map +1 -1
- package/dist/client/types/chat/bsky/convo/updateAllRead.d.ts +26 -0
- package/dist/client/types/chat/bsky/convo/updateAllRead.d.ts.map +1 -0
- package/dist/client/types/chat/bsky/convo/updateAllRead.js +11 -0
- package/dist/client/types/chat/bsky/convo/updateAllRead.js.map +1 -0
- package/dist/client/types/com/atproto/moderation/defs.d.ts +2 -0
- package/dist/client/types/com/atproto/moderation/defs.d.ts.map +1 -1
- package/dist/client/types/com/atproto/repo/listRecords.d.ts +0 -4
- package/dist/client/types/com/atproto/repo/listRecords.d.ts.map +1 -1
- package/dist/client/types/com/atproto/repo/listRecords.js.map +1 -1
- package/dist/client/types/com/atproto/sync/getRecord.d.ts +0 -2
- package/dist/client/types/com/atproto/sync/getRecord.d.ts.map +1 -1
- package/dist/client/types/com/atproto/sync/getRecord.js.map +1 -1
- package/package.json +1 -1
- package/src/client/index.ts +14 -0
- package/src/client/lexicons.ts +95 -17
- package/src/client/types/app/bsky/labeler/defs.ts +7 -0
- package/src/client/types/app/bsky/labeler/service.ts +7 -0
- package/src/client/types/chat/bsky/convo/updateAllRead.ts +40 -0
- package/src/client/types/com/atproto/moderation/defs.ts +3 -0
- package/src/client/types/com/atproto/repo/listRecords.ts +0 -4
- package/src/client/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/client/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/client/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/client/types/app/bsky/labeler/defs.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/client/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/client/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/client/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/client/types/app/bsky/labeler/service.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../../src/client/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,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { HeadersMap } from '@atproto/xrpc';
|
|
5
|
+
export interface QueryParams {
|
|
6
|
+
}
|
|
7
|
+
export interface InputSchema {
|
|
8
|
+
status?: 'request' | 'accepted' | (string & {});
|
|
9
|
+
}
|
|
10
|
+
export interface OutputSchema {
|
|
11
|
+
/** The count of updated convos. */
|
|
12
|
+
updatedCount: number;
|
|
13
|
+
}
|
|
14
|
+
export interface CallOptions {
|
|
15
|
+
signal?: AbortSignal;
|
|
16
|
+
headers?: HeadersMap;
|
|
17
|
+
qp?: QueryParams;
|
|
18
|
+
encoding?: 'application/json';
|
|
19
|
+
}
|
|
20
|
+
export interface Response {
|
|
21
|
+
success: boolean;
|
|
22
|
+
headers: HeadersMap;
|
|
23
|
+
data: OutputSchema;
|
|
24
|
+
}
|
|
25
|
+
export declare function toKnownErr(e: any): any;
|
|
26
|
+
//# sourceMappingURL=updateAllRead.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateAllRead.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/chat/bsky/convo/updateAllRead.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAa,MAAM,eAAe,CAAA;AAUrD,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,WAAW;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,OAAO,CAAC,EAAE,UAAU,CAAA;IACpB,EAAE,CAAC,EAAE,WAAW,CAAA;IAChB,QAAQ,CAAC,EAAE,kBAAkB,CAAA;CAC9B;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,UAAU,CAAA;IACnB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAEhC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toKnownErr = toKnownErr;
|
|
4
|
+
const lexicons_1 = require("../../../../lexicons");
|
|
5
|
+
const util_1 = require("../../../../util");
|
|
6
|
+
const is$typed = util_1.is$typed, validate = lexicons_1.validate;
|
|
7
|
+
const id = 'chat.bsky.convo.updateAllRead';
|
|
8
|
+
function toKnownErr(e) {
|
|
9
|
+
return e;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=updateAllRead.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateAllRead.js","sourceRoot":"","sources":["../../../../../../src/client/types/chat/bsky/convo/updateAllRead.ts"],"names":[],"mappings":";;AAqCA,gCAEC;AAjCD,mDAA4D;AAC5D,2CAAyE;AAEzE,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,+BAA+B,CAAA;AA0B1C,SAAgB,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC"}
|
|
@@ -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/client/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/client/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"}
|
|
@@ -11,10 +11,6 @@ export interface QueryParams {
|
|
|
11
11
|
/** The number of records to return. */
|
|
12
12
|
limit?: number;
|
|
13
13
|
cursor?: string;
|
|
14
|
-
/** DEPRECATED: The lowest sort-ordered rkey to start from (exclusive) */
|
|
15
|
-
rkeyStart?: string;
|
|
16
|
-
/** DEPRECATED: The highest sort-ordered rkey to stop at (exclusive) */
|
|
17
|
-
rkeyEnd?: string;
|
|
18
14
|
/** Flag to reverse the order of the returned records. */
|
|
19
15
|
reverse?: boolean;
|
|
20
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listRecords.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/repo/listRecords.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAa,MAAM,eAAe,CAAA;AACrD,OAAO,EAAE,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAS5D,MAAM,WAAW,WAAW;IAC1B,qCAAqC;IACrC,IAAI,EAAE,MAAM,CAAA;IACZ,mCAAmC;IACnC,UAAU,EAAE,MAAM,CAAA;IAClB,uCAAuC;IACvC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,
|
|
1
|
+
{"version":3,"file":"listRecords.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/repo/listRecords.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAa,MAAM,eAAe,CAAA;AACrD,OAAO,EAAE,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAS5D,MAAM,WAAW,WAAW;IAC1B,qCAAqC;IACrC,IAAI,EAAE,MAAM,CAAA;IACZ,mCAAmC;IACnC,UAAU,EAAE,MAAM,CAAA;IAClB,uCAAuC;IACvC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,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,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,OAAO,CAAC,EAAE,UAAU,CAAA;CACrB;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,UAAU,CAAA;IACnB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAEhC;AAED,MAAM,WAAW,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/client/types/com/atproto/repo/listRecords.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"listRecords.js","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/repo/listRecords.ts"],"names":[],"mappings":";;AA2CA,gCAEC;AAWD,4BAEC;AAED,wCAEC;AAxDD,mDAA4D;AAC5D,2CAAyE;AAEzE,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,8BAA8B,CAAA;AAgCzC,SAAgB,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC;AASD,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"}
|
|
@@ -8,8 +8,6 @@ export interface QueryParams {
|
|
|
8
8
|
collection: string;
|
|
9
9
|
/** Record Key */
|
|
10
10
|
rkey: string;
|
|
11
|
-
/** DEPRECATED: referenced a repo commit by CID, and retrieved record as of that commit */
|
|
12
|
-
commit?: string;
|
|
13
11
|
}
|
|
14
12
|
export type InputSchema = undefined;
|
|
15
13
|
export interface CallOptions {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRecord.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/sync/getRecord.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAUrD,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/client/types/com/atproto/sync/getRecord.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAUrD,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;AAEnC,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,OAAO,CAAC,EAAE,UAAU,CAAA;CACrB;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,UAAU,CAAA;IACnB,IAAI,EAAE,UAAU,CAAA;CACjB;AAED,qBAAa,mBAAoB,SAAQ,SAAS;gBACpC,GAAG,EAAE,SAAS;CAG3B;AAED,qBAAa,iBAAkB,SAAQ,SAAS;gBAClC,GAAG,EAAE,SAAS;CAG3B;AAED,qBAAa,kBAAmB,SAAQ,SAAS;gBACnC,GAAG,EAAE,SAAS;CAG3B;AAED,qBAAa,kBAAmB,SAAQ,SAAS;gBACnC,GAAG,EAAE,SAAS;CAG3B;AAED,qBAAa,oBAAqB,SAAQ,SAAS;gBACrC,GAAG,EAAE,SAAS;CAG3B;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAUhC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRecord.js","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/sync/getRecord.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"getRecord.js","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/sync/getRecord.ts"],"names":[],"mappings":";;;AAgEA,gCAUC;AA1ED;;GAEG;AACH,wCAAqD;AAGrD,mDAA4D;AAC5D,2CAAyE;AAEzE,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,4BAA4B,CAAA;AAuBvC,MAAa,mBAAoB,SAAQ,gBAAS;IAChD,YAAY,GAAc;QACxB,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAA;IACxE,CAAC;CACF;AAJD,kDAIC;AAED,MAAa,iBAAkB,SAAQ,gBAAS;IAC9C,YAAY,GAAc;QACxB,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAA;IACxE,CAAC;CACF;AAJD,8CAIC;AAED,MAAa,kBAAmB,SAAQ,gBAAS;IAC/C,YAAY,GAAc;QACxB,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAA;IACxE,CAAC;CACF;AAJD,gDAIC;AAED,MAAa,kBAAmB,SAAQ,gBAAS;IAC/C,YAAY,GAAc;QACxB,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAA;IACxE,CAAC;CACF;AAJD,gDAIC;AAED,MAAa,oBAAqB,SAAQ,gBAAS;IACjD,YAAY,GAAc;QACxB,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAA;IACxE,CAAC;CACF;AAJD,oDAIC;AAED,SAAgB,UAAU,CAAC,CAAM;IAC/B,IAAI,CAAC,YAAY,gBAAS,EAAE,CAAC;QAC3B,IAAI,CAAC,CAAC,KAAK,KAAK,gBAAgB;YAAE,OAAO,IAAI,mBAAmB,CAAC,CAAC,CAAC,CAAA;QACnE,IAAI,CAAC,CAAC,KAAK,KAAK,cAAc;YAAE,OAAO,IAAI,iBAAiB,CAAC,CAAC,CAAC,CAAA;QAC/D,IAAI,CAAC,CAAC,KAAK,KAAK,eAAe;YAAE,OAAO,IAAI,kBAAkB,CAAC,CAAC,CAAC,CAAA;QACjE,IAAI,CAAC,CAAC,KAAK,KAAK,eAAe;YAAE,OAAO,IAAI,kBAAkB,CAAC,CAAC,CAAC,CAAA;QACjE,IAAI,CAAC,CAAC,KAAK,KAAK,iBAAiB;YAAE,OAAO,IAAI,oBAAoB,CAAC,CAAC,CAAC,CAAA;IACvE,CAAC;IAED,OAAO,CAAC,CAAA;AACV,CAAC"}
|
package/package.json
CHANGED
package/src/client/index.ts
CHANGED
|
@@ -196,6 +196,7 @@ import * as ChatBskyConvoMuteConvo from './types/chat/bsky/convo/muteConvo.js'
|
|
|
196
196
|
import * as ChatBskyConvoSendMessage from './types/chat/bsky/convo/sendMessage.js'
|
|
197
197
|
import * as ChatBskyConvoSendMessageBatch from './types/chat/bsky/convo/sendMessageBatch.js'
|
|
198
198
|
import * as ChatBskyConvoUnmuteConvo from './types/chat/bsky/convo/unmuteConvo.js'
|
|
199
|
+
import * as ChatBskyConvoUpdateAllRead from './types/chat/bsky/convo/updateAllRead.js'
|
|
199
200
|
import * as ChatBskyConvoUpdateRead from './types/chat/bsky/convo/updateRead.js'
|
|
200
201
|
import * as ChatBskyModerationGetActorMetadata from './types/chat/bsky/moderation/getActorMetadata.js'
|
|
201
202
|
import * as ChatBskyModerationGetMessageContext from './types/chat/bsky/moderation/getMessageContext.js'
|
|
@@ -429,6 +430,7 @@ export * as ChatBskyConvoMuteConvo from './types/chat/bsky/convo/muteConvo.js'
|
|
|
429
430
|
export * as ChatBskyConvoSendMessage from './types/chat/bsky/convo/sendMessage.js'
|
|
430
431
|
export * as ChatBskyConvoSendMessageBatch from './types/chat/bsky/convo/sendMessageBatch.js'
|
|
431
432
|
export * as ChatBskyConvoUnmuteConvo from './types/chat/bsky/convo/unmuteConvo.js'
|
|
433
|
+
export * as ChatBskyConvoUpdateAllRead from './types/chat/bsky/convo/updateAllRead.js'
|
|
432
434
|
export * as ChatBskyConvoUpdateRead from './types/chat/bsky/convo/updateRead.js'
|
|
433
435
|
export * as ChatBskyModerationGetActorMetadata from './types/chat/bsky/moderation/getActorMetadata.js'
|
|
434
436
|
export * as ChatBskyModerationGetMessageContext from './types/chat/bsky/moderation/getMessageContext.js'
|
|
@@ -3564,6 +3566,18 @@ export class ChatBskyConvoNS {
|
|
|
3564
3566
|
)
|
|
3565
3567
|
}
|
|
3566
3568
|
|
|
3569
|
+
updateAllRead(
|
|
3570
|
+
data?: ChatBskyConvoUpdateAllRead.InputSchema,
|
|
3571
|
+
opts?: ChatBskyConvoUpdateAllRead.CallOptions,
|
|
3572
|
+
): Promise<ChatBskyConvoUpdateAllRead.Response> {
|
|
3573
|
+
return this._client.call(
|
|
3574
|
+
'chat.bsky.convo.updateAllRead',
|
|
3575
|
+
opts?.qp,
|
|
3576
|
+
data,
|
|
3577
|
+
opts,
|
|
3578
|
+
)
|
|
3579
|
+
}
|
|
3580
|
+
|
|
3567
3581
|
updateRead(
|
|
3568
3582
|
data?: ChatBskyConvoUpdateRead.InputSchema,
|
|
3569
3583
|
opts?: ChatBskyConvoUpdateRead.CallOptions,
|
package/src/client/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,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { HeadersMap, XRPCError } from '@atproto/xrpc'
|
|
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
|
+
|
|
10
|
+
const is$typed = _is$typed,
|
|
11
|
+
validate = _validate
|
|
12
|
+
const id = 'chat.bsky.convo.updateAllRead'
|
|
13
|
+
|
|
14
|
+
export interface QueryParams {}
|
|
15
|
+
|
|
16
|
+
export interface InputSchema {
|
|
17
|
+
status?: 'request' | 'accepted' | (string & {})
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface OutputSchema {
|
|
21
|
+
/** The count of updated convos. */
|
|
22
|
+
updatedCount: number
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface CallOptions {
|
|
26
|
+
signal?: AbortSignal
|
|
27
|
+
headers?: HeadersMap
|
|
28
|
+
qp?: QueryParams
|
|
29
|
+
encoding?: 'application/json'
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface Response {
|
|
33
|
+
success: boolean
|
|
34
|
+
headers: HeadersMap
|
|
35
|
+
data: OutputSchema
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function toKnownErr(e: any) {
|
|
39
|
+
return e
|
|
40
|
+
}
|
|
@@ -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 & {})
|
|
@@ -19,10 +19,6 @@ export interface QueryParams {
|
|
|
19
19
|
/** The number of records to return. */
|
|
20
20
|
limit?: number
|
|
21
21
|
cursor?: string
|
|
22
|
-
/** DEPRECATED: The lowest sort-ordered rkey to start from (exclusive) */
|
|
23
|
-
rkeyStart?: string
|
|
24
|
-
/** DEPRECATED: The highest sort-ordered rkey to stop at (exclusive) */
|
|
25
|
-
rkeyEnd?: string
|
|
26
22
|
/** Flag to reverse the order of the returned records. */
|
|
27
23
|
reverse?: boolean
|
|
28
24
|
}
|