@atproto/api 0.14.6 → 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 +10 -0
- package/dist/client/lexicons.d.ts +108 -28
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +54 -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/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/lexicons.ts +60 -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/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
|
@@ -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"}
|
|
@@ -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/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
|
},
|
|
@@ -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
|
|
|
@@ -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
|
}
|