@atproto/bsky 0.0.281 → 0.0.282
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 +21 -0
- package/dist/api/app/bsky/feed/getQuotes.js +1 -0
- package/dist/api/app/bsky/feed/getQuotes.js.map +1 -1
- package/dist/lexicons/app/bsky/authFullApp.defs.d.ts.map +1 -1
- package/dist/lexicons/app/bsky/authFullApp.defs.js +10 -0
- package/dist/lexicons/app/bsky/authFullApp.defs.js.map +1 -1
- package/dist/lexicons/app/bsky/feed/defs.defs.d.ts +8 -0
- package/dist/lexicons/app/bsky/feed/defs.defs.d.ts.map +1 -1
- package/dist/lexicons/app/bsky/feed/defs.defs.js +2 -0
- package/dist/lexicons/app/bsky/feed/defs.defs.js.map +1 -1
- package/dist/lexicons/app/bsky/feed/getQuotes.defs.d.ts +6 -0
- package/dist/lexicons/app/bsky/feed/getQuotes.defs.d.ts.map +1 -1
- package/dist/lexicons/app/bsky/feed/getQuotes.defs.js +2 -0
- package/dist/lexicons/app/bsky/feed/getQuotes.defs.js.map +1 -1
- package/dist/lexicons/tools/ozone/inbox/appealActionedSubject.d.ts +3 -0
- package/dist/lexicons/tools/ozone/inbox/appealActionedSubject.d.ts.map +1 -0
- package/dist/lexicons/tools/ozone/inbox/appealActionedSubject.defs.d.ts +65 -0
- package/dist/lexicons/tools/ozone/inbox/appealActionedSubject.defs.d.ts.map +1 -0
- package/dist/lexicons/tools/ozone/inbox/appealActionedSubject.defs.js +49 -0
- package/dist/lexicons/tools/ozone/inbox/appealActionedSubject.defs.js.map +1 -0
- package/dist/lexicons/tools/ozone/inbox/appealActionedSubject.js +6 -0
- package/dist/lexicons/tools/ozone/inbox/appealActionedSubject.js.map +1 -0
- package/dist/lexicons/tools/ozone/inbox/defs.d.ts +2 -0
- package/dist/lexicons/tools/ozone/inbox/defs.d.ts.map +1 -0
- package/dist/lexicons/tools/ozone/inbox/defs.defs.d.ts +89 -0
- package/dist/lexicons/tools/ozone/inbox/defs.defs.d.ts.map +1 -0
- package/dist/lexicons/tools/ozone/inbox/defs.defs.js +73 -0
- package/dist/lexicons/tools/ozone/inbox/defs.defs.js.map +1 -0
- package/dist/lexicons/tools/ozone/inbox/defs.js +5 -0
- package/dist/lexicons/tools/ozone/inbox/defs.js.map +1 -0
- package/dist/lexicons/tools/ozone/inbox.d.ts +3 -0
- package/dist/lexicons/tools/ozone/inbox.d.ts.map +1 -0
- package/dist/lexicons/tools/ozone/inbox.js +6 -0
- package/dist/lexicons/tools/ozone/inbox.js.map +1 -0
- package/dist/lexicons/tools/ozone/queue/createQueue.defs.d.ts +2 -0
- package/dist/lexicons/tools/ozone/queue/createQueue.defs.d.ts.map +1 -1
- package/dist/lexicons/tools/ozone/queue/createQueue.defs.js +2 -0
- package/dist/lexicons/tools/ozone/queue/createQueue.defs.js.map +1 -1
- package/dist/lexicons/tools/ozone/queue/defs.defs.d.ts +4 -0
- package/dist/lexicons/tools/ozone/queue/defs.defs.d.ts.map +1 -1
- package/dist/lexicons/tools/ozone/queue/defs.defs.js +2 -0
- package/dist/lexicons/tools/ozone/queue/defs.defs.js.map +1 -1
- package/dist/lexicons/tools/ozone/queue/updateQueue.defs.d.ts +3 -1
- package/dist/lexicons/tools/ozone/queue/updateQueue.defs.d.ts.map +1 -1
- package/dist/lexicons/tools/ozone/queue/updateQueue.defs.js +3 -0
- package/dist/lexicons/tools/ozone/queue/updateQueue.defs.js.map +1 -1
- package/dist/lexicons/tools/ozone/report/defs.defs.d.ts +89 -9
- package/dist/lexicons/tools/ozone/report/defs.defs.d.ts.map +1 -1
- package/dist/lexicons/tools/ozone/report/defs.defs.js +20 -0
- package/dist/lexicons/tools/ozone/report/defs.defs.js.map +1 -1
- package/dist/lexicons/tools/ozone/report/getLiveStats.defs.d.ts +1 -1
- package/dist/lexicons/tools/ozone/report/getLiveStats.defs.d.ts.map +1 -1
- package/dist/lexicons/tools/ozone/report/getLiveStats.defs.js +1 -1
- package/dist/lexicons/tools/ozone/report/getLiveStats.defs.js.map +1 -1
- package/dist/lexicons/tools/ozone/report/refreshStats.defs.d.ts +1 -1
- package/dist/lexicons/tools/ozone/report/refreshStats.defs.d.ts.map +1 -1
- package/dist/lexicons/tools/ozone/report/refreshStats.defs.js +1 -1
- package/dist/lexicons/tools/ozone/report/refreshStats.defs.js.map +1 -1
- package/dist/lexicons/tools/ozone.d.ts +1 -0
- package/dist/lexicons/tools/ozone.d.ts.map +1 -1
- package/dist/lexicons/tools/ozone.js +1 -0
- package/dist/lexicons/tools/ozone.js.map +1 -1
- package/dist/proto/bsky_pb.d.ts +4 -0
- package/dist/proto/bsky_pb.d.ts.map +1 -1
- package/dist/proto/bsky_pb.js +5 -0
- package/dist/proto/bsky_pb.js.map +1 -1
- package/dist/views/types.d.ts +1 -4
- package/dist/views/types.d.ts.map +1 -1
- package/dist/views/types.js.map +1 -1
- package/package.json +14 -14
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { l } from '@atproto/lex';
|
|
2
|
+
import * as AdminDefs from '../../../com/atproto/admin/defs.defs.js';
|
|
3
|
+
import * as RepoStrongRef from '../../../com/atproto/repo/strongRef.defs.js';
|
|
4
|
+
import * as ModerationCreateReport from '../../../com/atproto/moderation/createReport.defs.js';
|
|
5
|
+
import * as InboxDefs from './defs.defs.js';
|
|
6
|
+
declare const $nsid = "tools.ozone.inbox.appealActionedSubject";
|
|
7
|
+
type $nsid = typeof $nsid;
|
|
8
|
+
export { $nsid };
|
|
9
|
+
export declare const $params: l.ParamsSchema<{}>;
|
|
10
|
+
export type $Params = l.InferOutput<typeof $params>;
|
|
11
|
+
export declare const $input: l.Payload<"application/json", l.ObjectSchema<{
|
|
12
|
+
action: l.OptionalSchema<l.TypedUnionSchema<readonly [l.TypedRefSchema<l.TypedObjectValidator<ActionRef, ActionRef>>, l.TypedRefSchema<l.TypedObjectValidator<LabelRef, LabelRef>>, l.TypedRefSchema<l.TypedObjectValidator<TakedownRef, TakedownRef>>], true>>;
|
|
13
|
+
subject: l.TypedUnionSchema<readonly [l.TypedRefSchema<l.TypedObjectValidator<AdminDefs.RepoRef, AdminDefs.RepoRef>>, l.TypedRefSchema<l.TypedObjectValidator<RepoStrongRef.Main, RepoStrongRef.Main>>], false>;
|
|
14
|
+
reason: l.OptionalSchema<l.StringSchema<{
|
|
15
|
+
readonly maxGraphemes: 2000;
|
|
16
|
+
readonly maxLength: 20000;
|
|
17
|
+
}>>;
|
|
18
|
+
modTool: l.OptionalSchema<l.RefSchema<l.Validator<ModerationCreateReport.ModTool, ModerationCreateReport.ModTool>>>;
|
|
19
|
+
}>>;
|
|
20
|
+
export type $Input<B = l.BinaryData> = l.InferPayload<typeof $input, B>;
|
|
21
|
+
export type $InputBody<B = l.BinaryData> = l.InferPayloadBody<typeof $input, B>;
|
|
22
|
+
export declare const $output: l.Payload<"application/json", l.RefSchema<l.Validator<InboxDefs.SubjectView, InboxDefs.SubjectView>>>;
|
|
23
|
+
export type $Output<B = l.BinaryData> = l.InferPayload<typeof $output, B>;
|
|
24
|
+
export type $OutputBody<B = l.BinaryData> = l.InferPayloadBody<typeof $output, B>;
|
|
25
|
+
/** Appeal a moderation action affecting the user's account or content. */
|
|
26
|
+
declare const main: l.Procedure<"tools.ozone.inbox.appealActionedSubject", l.ParamsSchema<{}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
27
|
+
action: l.OptionalSchema<l.TypedUnionSchema<readonly [l.TypedRefSchema<l.TypedObjectValidator<ActionRef, ActionRef>>, l.TypedRefSchema<l.TypedObjectValidator<LabelRef, LabelRef>>, l.TypedRefSchema<l.TypedObjectValidator<TakedownRef, TakedownRef>>], true>>;
|
|
28
|
+
subject: l.TypedUnionSchema<readonly [l.TypedRefSchema<l.TypedObjectValidator<AdminDefs.RepoRef, AdminDefs.RepoRef>>, l.TypedRefSchema<l.TypedObjectValidator<RepoStrongRef.Main, RepoStrongRef.Main>>], false>;
|
|
29
|
+
reason: l.OptionalSchema<l.StringSchema<{
|
|
30
|
+
readonly maxGraphemes: 2000;
|
|
31
|
+
readonly maxLength: 20000;
|
|
32
|
+
}>>;
|
|
33
|
+
modTool: l.OptionalSchema<l.RefSchema<l.Validator<ModerationCreateReport.ModTool, ModerationCreateReport.ModTool>>>;
|
|
34
|
+
}>>, l.Payload<"application/json", l.RefSchema<l.Validator<InboxDefs.SubjectView, InboxDefs.SubjectView>>>, readonly ["InvalidAppealSubject", "AlreadyAppealed", "NotAppealable", "AppealWindowExpired"]>;
|
|
35
|
+
export { main };
|
|
36
|
+
declare const $lxm = "tools.ozone.inbox.appealActionedSubject";
|
|
37
|
+
type $lxm = typeof $lxm;
|
|
38
|
+
export { $lxm };
|
|
39
|
+
type ActionRef = {
|
|
40
|
+
$type?: 'tools.ozone.inbox.appealActionedSubject#actionRef';
|
|
41
|
+
/**
|
|
42
|
+
* ID of the moderation action being appealed, available via actions in mod inbox.
|
|
43
|
+
*/
|
|
44
|
+
id: number;
|
|
45
|
+
};
|
|
46
|
+
export type { ActionRef };
|
|
47
|
+
declare const actionRef: l.TypedObjectSchema<"tools.ozone.inbox.appealActionedSubject#actionRef", l.Validator<ActionRef, ActionRef>>;
|
|
48
|
+
export { actionRef };
|
|
49
|
+
type LabelRef = {
|
|
50
|
+
$type?: 'tools.ozone.inbox.appealActionedSubject#labelRef';
|
|
51
|
+
/**
|
|
52
|
+
* Label being appealed.
|
|
53
|
+
*/
|
|
54
|
+
val: string;
|
|
55
|
+
};
|
|
56
|
+
export type { LabelRef };
|
|
57
|
+
declare const labelRef: l.TypedObjectSchema<"tools.ozone.inbox.appealActionedSubject#labelRef", l.Validator<LabelRef, LabelRef>>;
|
|
58
|
+
export { labelRef };
|
|
59
|
+
type TakedownRef = {
|
|
60
|
+
$type?: 'tools.ozone.inbox.appealActionedSubject#takedownRef';
|
|
61
|
+
};
|
|
62
|
+
export type { TakedownRef };
|
|
63
|
+
declare const takedownRef: l.TypedObjectSchema<"tools.ozone.inbox.appealActionedSubject#takedownRef", l.Validator<TakedownRef, TakedownRef>>;
|
|
64
|
+
export { takedownRef };
|
|
65
|
+
//# sourceMappingURL=appealActionedSubject.defs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appealActionedSubject.defs.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/inbox/appealActionedSubject.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAChC,OAAO,KAAK,SAAS,MAAM,yCAAyC,CAAA;AACpE,OAAO,KAAK,aAAa,MAAM,6CAA6C,CAAA;AAC5E,OAAO,KAAK,sBAAsB,MAAM,sDAAsD,CAAA;AAC9F,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAE3C,QAAA,MAAM,KAAK,4CAA4C,CAAA;AAEvD,KAAK,KAAK,GAAG,OAAO,KAAK,CAAA;AAEzB,OAAO,EAAE,KAAK,EAAE,CAAA;AAEhB,eAAO,MAAM,OAAO,oBAA2B,CAAA;AAE/C,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,OAAO,CAAC,CAAA;AAEnD,eAAO,MAAM,MAAM;;;;;;;;GA8BjB,CAAA;AAEF,MAAM,MAAM,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,YAAY,CAAC,OAAO,MAAM,EAAE,CAAC,CAAC,CAAA;AACvE,MAAM,MAAM,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,gBAAgB,CAAC,OAAO,MAAM,EAAE,CAAC,CAAC,CAAA;AAE/E,eAAO,MAAM,OAAO,uGAKnB,CAAA;AAED,MAAM,MAAM,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,YAAY,CAAC,OAAO,OAAO,EAAE,CAAC,CAAC,CAAA;AACzE,MAAM,MAAM,WAAW,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,gBAAgB,CAC5D,OAAO,OAAO,EACd,CAAC,CACF,CAAA;AAED,0EAA0E;AAC1E,QAAA,MAAM,IAAI;;;;;;;;yMAKR,CAAA;AAEF,OAAO,EAAE,IAAI,EAAE,CAAA;AAEf,QAAA,MAAM,IAAI,4CAAQ,CAAA;AAElB,KAAK,IAAI,GAAG,OAAO,IAAI,CAAA;AAEvB,OAAO,EAAE,IAAI,EAAE,CAAA;AAEf,KAAK,SAAS,GAAG;IACf,KAAK,CAAC,EAAE,mDAAmD,CAAA;IAE3D;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;CACX,CAAA;AAED,YAAY,EAAE,SAAS,EAAE,CAAA;AAEzB,QAAA,MAAM,SAAS,6GAId,CAAA;AAED,OAAO,EAAE,SAAS,EAAE,CAAA;AAEpB,KAAK,QAAQ,GAAG;IACd,KAAK,CAAC,EAAE,kDAAkD,CAAA;IAE1D;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,YAAY,EAAE,QAAQ,EAAE,CAAA;AAExB,QAAA,MAAM,QAAQ,0GAIb,CAAA;AAED,OAAO,EAAE,QAAQ,EAAE,CAAA;AAEnB,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,qDAAqD,CAAA;CAC9D,CAAA;AAED,YAAY,EAAE,WAAW,EAAE,CAAA;AAE3B,QAAA,MAAM,WAAW,mHAIhB,CAAA;AAED,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import { l } from '@atproto/lex';
|
|
5
|
+
import * as AdminDefs from '../../../com/atproto/admin/defs.defs.js';
|
|
6
|
+
import * as RepoStrongRef from '../../../com/atproto/repo/strongRef.defs.js';
|
|
7
|
+
import * as ModerationCreateReport from '../../../com/atproto/moderation/createReport.defs.js';
|
|
8
|
+
import * as InboxDefs from './defs.defs.js';
|
|
9
|
+
const $nsid = 'tools.ozone.inbox.appealActionedSubject';
|
|
10
|
+
export { $nsid };
|
|
11
|
+
export const $params = /*#__PURE__*/ l.params();
|
|
12
|
+
export const $input = /*#__PURE__*/ l.jsonPayload({
|
|
13
|
+
action: /*#__PURE__*/ l.optional(
|
|
14
|
+
/*#__PURE__*/ l.typedUnion([
|
|
15
|
+
/*#__PURE__*/ l.typedRef((() => actionRef)),
|
|
16
|
+
/*#__PURE__*/ l.typedRef((() => labelRef)),
|
|
17
|
+
/*#__PURE__*/ l.typedRef((() => takedownRef)),
|
|
18
|
+
], true)),
|
|
19
|
+
subject: /*#__PURE__*/ l.typedUnion([
|
|
20
|
+
/*#__PURE__*/ l.typedRef((() => AdminDefs.repoRef)),
|
|
21
|
+
/*#__PURE__*/ l.typedRef((() => RepoStrongRef.main)),
|
|
22
|
+
], false),
|
|
23
|
+
reason: /*#__PURE__*/ l.optional(
|
|
24
|
+
/*#__PURE__*/ l.string({ maxGraphemes: 2000, maxLength: 20000 })),
|
|
25
|
+
modTool: /*#__PURE__*/ l.optional(
|
|
26
|
+
/*#__PURE__*/ l.ref((() => ModerationCreateReport.modTool))),
|
|
27
|
+
});
|
|
28
|
+
export const $output = /*#__PURE__*/ l.payload('application/json',
|
|
29
|
+
/*#__PURE__*/ l.ref((() => InboxDefs.subjectView)));
|
|
30
|
+
/** Appeal a moderation action affecting the user's account or content. */
|
|
31
|
+
const main = /*#__PURE__*/ l.procedure($nsid, $params, $input, $output, [
|
|
32
|
+
'InvalidAppealSubject',
|
|
33
|
+
'AlreadyAppealed',
|
|
34
|
+
'NotAppealable',
|
|
35
|
+
'AppealWindowExpired',
|
|
36
|
+
]);
|
|
37
|
+
export { main };
|
|
38
|
+
const $lxm = $nsid;
|
|
39
|
+
export { $lxm };
|
|
40
|
+
const actionRef = /*#__PURE__*/ l.typedObject($nsid, 'actionRef',
|
|
41
|
+
/*#__PURE__*/ l.object({ id: /*#__PURE__*/ l.integer({ minimum: 1 }) }));
|
|
42
|
+
export { actionRef };
|
|
43
|
+
const labelRef = /*#__PURE__*/ l.typedObject($nsid, 'labelRef',
|
|
44
|
+
/*#__PURE__*/ l.object({ val: /*#__PURE__*/ l.string({ minLength: 1 }) }));
|
|
45
|
+
export { labelRef };
|
|
46
|
+
const takedownRef = /*#__PURE__*/ l.typedObject($nsid, 'takedownRef',
|
|
47
|
+
/*#__PURE__*/ l.object({}));
|
|
48
|
+
export { takedownRef };
|
|
49
|
+
//# sourceMappingURL=appealActionedSubject.defs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appealActionedSubject.defs.js","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/inbox/appealActionedSubject.defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAChC,OAAO,KAAK,SAAS,MAAM,yCAAyC,CAAA;AACpE,OAAO,KAAK,aAAa,MAAM,6CAA6C,CAAA;AAC5E,OAAO,KAAK,sBAAsB,MAAM,sDAAsD,CAAA;AAC9F,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAE3C,MAAM,KAAK,GAAG,yCAAyC,CAAA;AAIvD,OAAO,EAAE,KAAK,EAAE,CAAA;AAEhB,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAA;AAI/C,MAAM,CAAC,MAAM,MAAM,GAAG,aAAa,CAAC,CAAC,CAAC,WAAW,CAAC;IAChD,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;IAC9B,aAAa,CAAC,CAAC,CAAC,UAAU,CACxB;QACE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAY,CAAC,GAAG,EAAE,CAAC,SAAS,CAAQ,CAAC;QAC7D,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAW,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAQ,CA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AG,aAAa,CAAC,CAAC,CAAC,WAAW,CAC3C,KAAK,EACL,WAAW;AACX,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CACxE,CAAA;AAED,OAAO,EAAE,SAAS,EAAE,CAAA;AAapB,MAAM,QAAQ,GAAG,aAAa,CAAC,CAAC,CAAC,WAAW,CAC1C,KAAK,EACL,UAAU;AACV,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAC1E,CAAA;AAED,OAAO,EAAE,QAAQ,EAAE,CAAA;AAQnB,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,WAAW,CAC7C,KAAK,EACL,aAAa;AACb,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAC3B,CAAA;AAED,OAAO,EAAE,WAAW,EAAE,CAAA","sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\nimport * as AdminDefs from '../../../com/atproto/admin/defs.defs.js'\nimport * as RepoStrongRef from '../../../com/atproto/repo/strongRef.defs.js'\nimport * as ModerationCreateReport from '../../../com/atproto/moderation/createReport.defs.js'\nimport * as InboxDefs from './defs.defs.js'\n\nconst $nsid = 'tools.ozone.inbox.appealActionedSubject'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\nexport const $params = /*#__PURE__*/ l.params()\n\nexport type $Params = l.InferOutput<typeof $params>\n\nexport const $input = /*#__PURE__*/ l.jsonPayload({\n action: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.typedUnion(\n [\n /*#__PURE__*/ l.typedRef<ActionRef>((() => actionRef) as any),\n /*#__PURE__*/ l.typedRef<LabelRef>((() => labelRef) as any),\n /*#__PURE__*/ l.typedRef<TakedownRef>((() => takedownRef) as any),\n ],\n true,\n ),\n ),\n subject: /*#__PURE__*/ l.typedUnion(\n [\n /*#__PURE__*/ l.typedRef<AdminDefs.RepoRef>(\n (() => AdminDefs.repoRef) as any,\n ),\n /*#__PURE__*/ l.typedRef<RepoStrongRef.Main>(\n (() => RepoStrongRef.main) as any,\n ),\n ],\n false,\n ),\n reason: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ maxGraphemes: 2000, maxLength: 20000 }),\n ),\n modTool: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<ModerationCreateReport.ModTool>(\n (() => ModerationCreateReport.modTool) as any,\n ),\n ),\n})\n\nexport type $Input<B = l.BinaryData> = l.InferPayload<typeof $input, B>\nexport type $InputBody<B = l.BinaryData> = l.InferPayloadBody<typeof $input, B>\n\nexport const $output = /*#__PURE__*/ l.payload(\n 'application/json',\n /*#__PURE__*/ l.ref<InboxDefs.SubjectView>(\n (() => InboxDefs.subjectView) as any,\n ),\n)\n\nexport type $Output<B = l.BinaryData> = l.InferPayload<typeof $output, B>\nexport type $OutputBody<B = l.BinaryData> = l.InferPayloadBody<\n typeof $output,\n B\n>\n\n/** Appeal a moderation action affecting the user's account or content. */\nconst main = /*#__PURE__*/ l.procedure($nsid, $params, $input, $output, [\n 'InvalidAppealSubject',\n 'AlreadyAppealed',\n 'NotAppealable',\n 'AppealWindowExpired',\n])\n\nexport { main }\n\nconst $lxm = $nsid\n\ntype $lxm = typeof $lxm\n\nexport { $lxm }\n\ntype ActionRef = {\n $type?: 'tools.ozone.inbox.appealActionedSubject#actionRef'\n\n /**\n * ID of the moderation action being appealed, available via actions in mod inbox.\n */\n id: number\n}\n\nexport type { ActionRef }\n\nconst actionRef = /*#__PURE__*/ l.typedObject<ActionRef>(\n $nsid,\n 'actionRef',\n /*#__PURE__*/ l.object({ id: /*#__PURE__*/ l.integer({ minimum: 1 }) }),\n)\n\nexport { actionRef }\n\ntype LabelRef = {\n $type?: 'tools.ozone.inbox.appealActionedSubject#labelRef'\n\n /**\n * Label being appealed.\n */\n val: string\n}\n\nexport type { LabelRef }\n\nconst labelRef = /*#__PURE__*/ l.typedObject<LabelRef>(\n $nsid,\n 'labelRef',\n /*#__PURE__*/ l.object({ val: /*#__PURE__*/ l.string({ minLength: 1 }) }),\n)\n\nexport { labelRef }\n\ntype TakedownRef = {\n $type?: 'tools.ozone.inbox.appealActionedSubject#takedownRef'\n}\n\nexport type { TakedownRef }\n\nconst takedownRef = /*#__PURE__*/ l.typedObject<TakedownRef>(\n $nsid,\n 'takedownRef',\n /*#__PURE__*/ l.object({}),\n)\n\nexport { takedownRef }\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appealActionedSubject.js","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/inbox/appealActionedSubject.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,iCAAiC,CAAA;AAC/C,OAAO,EAAE,IAAI,IAAI,OAAO,EAAE,MAAM,iCAAiC,CAAA","sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * from './appealActionedSubject.defs.js'\nexport { main as default } from './appealActionedSubject.defs.js'\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/inbox/defs.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAA"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { l } from '@atproto/lex';
|
|
2
|
+
import * as AdminDefs from '../../../com/atproto/admin/defs.defs.js';
|
|
3
|
+
import * as RepoStrongRef from '../../../com/atproto/repo/strongRef.defs.js';
|
|
4
|
+
declare const $nsid = "tools.ozone.inbox.defs";
|
|
5
|
+
type $nsid = typeof $nsid;
|
|
6
|
+
export { $nsid };
|
|
7
|
+
/** A subject belonging to the viewer that has moderation actions against it. */
|
|
8
|
+
type SubjectView = {
|
|
9
|
+
$type?: 'tools.ozone.inbox.defs#subjectView';
|
|
10
|
+
/**
|
|
11
|
+
* DID of the moderation service that took the actions.
|
|
12
|
+
*/
|
|
13
|
+
src: l.DidString;
|
|
14
|
+
subject: l.$Typed<AdminDefs.RepoRef> | l.$Typed<RepoStrongRef.Main> | l.Unknown$TypedObject;
|
|
15
|
+
enforcement: EnforcementView;
|
|
16
|
+
appeal?: AppealView;
|
|
17
|
+
availableActions?: ('appeal' | l.UnknownString)[];
|
|
18
|
+
latestAction?: ActionView;
|
|
19
|
+
actionCount?: number;
|
|
20
|
+
createdAt: l.DatetimeString;
|
|
21
|
+
updatedAt: l.DatetimeString;
|
|
22
|
+
};
|
|
23
|
+
export type { SubjectView };
|
|
24
|
+
/** A subject belonging to the viewer that has moderation actions against it. */
|
|
25
|
+
declare const subjectView: l.TypedObjectSchema<"tools.ozone.inbox.defs#subjectView", l.Validator<SubjectView, SubjectView>>;
|
|
26
|
+
export { subjectView };
|
|
27
|
+
/** The current enforcement state of a subject. */
|
|
28
|
+
type EnforcementView = {
|
|
29
|
+
$type?: 'tools.ozone.inbox.defs#enforcementView';
|
|
30
|
+
state: 'none' | 'labeled' | 'removed' | 'suspended' | 'takendown' | l.UnknownString;
|
|
31
|
+
scope?: 'network' | 'app' | 'labelOnly' | l.UnknownString;
|
|
32
|
+
expiresAt?: l.DatetimeString;
|
|
33
|
+
/**
|
|
34
|
+
* Active label values on the subject, excluding negated and expired labels.
|
|
35
|
+
*/
|
|
36
|
+
labels?: string[];
|
|
37
|
+
};
|
|
38
|
+
export type { EnforcementView };
|
|
39
|
+
/** The current enforcement state of a subject. */
|
|
40
|
+
declare const enforcementView: l.TypedObjectSchema<"tools.ozone.inbox.defs#enforcementView", l.Validator<EnforcementView, EnforcementView>>;
|
|
41
|
+
export { enforcementView };
|
|
42
|
+
/** The state of the viewer's appeal against the actions on a subject. */
|
|
43
|
+
type AppealView = {
|
|
44
|
+
$type?: 'tools.ozone.inbox.defs#appealView';
|
|
45
|
+
state: 'none' | 'pending' | 'resolved' | 'superseded' | 'expired' | l.UnknownString;
|
|
46
|
+
appealedAt?: l.DatetimeString;
|
|
47
|
+
/**
|
|
48
|
+
* When the appeal's report was closed.
|
|
49
|
+
*/
|
|
50
|
+
resolvedAt?: l.DatetimeString;
|
|
51
|
+
/**
|
|
52
|
+
* Moderator explanation, from the publicNote on the closing activity. Absent if none was written.
|
|
53
|
+
*/
|
|
54
|
+
note?: string;
|
|
55
|
+
appealableUntil?: l.DatetimeString;
|
|
56
|
+
};
|
|
57
|
+
export type { AppealView };
|
|
58
|
+
/** The state of the viewer's appeal against the actions on a subject. */
|
|
59
|
+
declare const appealView: l.TypedObjectSchema<"tools.ozone.inbox.defs#appealView", l.Validator<AppealView, AppealView>>;
|
|
60
|
+
export { appealView };
|
|
61
|
+
/** A single moderation action taken against a subject. */
|
|
62
|
+
type ActionView = {
|
|
63
|
+
$type?: 'tools.ozone.inbox.defs#actionView';
|
|
64
|
+
/**
|
|
65
|
+
* Action ID (moderation event ID).
|
|
66
|
+
*/
|
|
67
|
+
id: number;
|
|
68
|
+
/**
|
|
69
|
+
* Public action type.
|
|
70
|
+
*/
|
|
71
|
+
type: string;
|
|
72
|
+
scope?: 'network' | 'app' | 'labelOnly' | l.UnknownString;
|
|
73
|
+
createdAt: l.DatetimeString;
|
|
74
|
+
reversedAt?: l.DatetimeString;
|
|
75
|
+
expiresAt?: l.DatetimeString;
|
|
76
|
+
/**
|
|
77
|
+
* Label values, for labelApplied/labelRemoved.
|
|
78
|
+
*/
|
|
79
|
+
labels?: string[];
|
|
80
|
+
/**
|
|
81
|
+
* Policies that were applied in this action.
|
|
82
|
+
*/
|
|
83
|
+
policies?: string[];
|
|
84
|
+
};
|
|
85
|
+
export type { ActionView };
|
|
86
|
+
/** A single moderation action taken against a subject. */
|
|
87
|
+
declare const actionView: l.TypedObjectSchema<"tools.ozone.inbox.defs#actionView", l.Validator<ActionView, ActionView>>;
|
|
88
|
+
export { actionView };
|
|
89
|
+
//# sourceMappingURL=defs.defs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defs.defs.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/inbox/defs.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAChC,OAAO,KAAK,SAAS,MAAM,yCAAyC,CAAA;AACpE,OAAO,KAAK,aAAa,MAAM,6CAA6C,CAAA;AAE5E,QAAA,MAAM,KAAK,2BAA2B,CAAA;AAEtC,KAAK,KAAK,GAAG,OAAO,KAAK,CAAA;AAEzB,OAAO,EAAE,KAAK,EAAE,CAAA;AAEhB,gFAAgF;AAChF,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,oCAAoC,CAAA;IAE5C;;OAEG;IACH,GAAG,EAAE,CAAC,CAAC,SAAS,CAAA;IAChB,OAAO,EACH,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,GAC3B,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,GAC5B,CAAC,CAAC,mBAAmB,CAAA;IACzB,WAAW,EAAE,eAAe,CAAA;IAC5B,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB,gBAAgB,CAAC,EAAE,CAAC,QAAQ,GAAG,CAAC,CAAC,aAAa,CAAC,EAAE,CAAA;IACjD,YAAY,CAAC,EAAE,UAAU,CAAA;IACzB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,EAAE,CAAC,CAAC,cAAc,CAAA;IAC3B,SAAS,EAAE,CAAC,CAAC,cAAc,CAAA;CAC5B,CAAA;AAED,YAAY,EAAE,WAAW,EAAE,CAAA;AAE3B,gFAAgF;AAChF,QAAA,MAAM,WAAW,kGAkChB,CAAA;AAED,OAAO,EAAE,WAAW,EAAE,CAAA;AAEtB,kDAAkD;A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AG,CAAC,CAAC,aAAa,CAAA;IACzD,SAAS,EAAE,CAAC,CAAC,cAAc,CAAA;IAC3B,UAAU,CAAC,EAAE,CAAC,CAAC,cAAc,CAAA;IAC7B,SAAS,CAAC,EAAE,CAAC,CAAC,cAAc,CAAA;IAE5B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;IAEjB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;CACpB,CAAA;AAED,YAAY,EAAE,UAAU,EAAE,CAAA;AAE1B,0DAA0D;AAC1D,QAAA,MAAM,UAAU,+FAyBf,CAAA;AAED,OAAO,EAAE,UAAU,EAAE,CAAA"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import { l } from '@atproto/lex';
|
|
5
|
+
import * as AdminDefs from '../../../com/atproto/admin/defs.defs.js';
|
|
6
|
+
import * as RepoStrongRef from '../../../com/atproto/repo/strongRef.defs.js';
|
|
7
|
+
const $nsid = 'tools.ozone.inbox.defs';
|
|
8
|
+
export { $nsid };
|
|
9
|
+
/** A subject belonging to the viewer that has moderation actions against it. */
|
|
10
|
+
const subjectView = /*#__PURE__*/ l.typedObject($nsid, 'subjectView',
|
|
11
|
+
/*#__PURE__*/ l.object({
|
|
12
|
+
src: /*#__PURE__*/ l.string({ format: 'did' }),
|
|
13
|
+
subject: /*#__PURE__*/ l.typedUnion([
|
|
14
|
+
/*#__PURE__*/ l.typedRef((() => AdminDefs.repoRef)),
|
|
15
|
+
/*#__PURE__*/ l.typedRef((() => RepoStrongRef.main)),
|
|
16
|
+
], false),
|
|
17
|
+
enforcement: /*#__PURE__*/ l.ref((() => enforcementView)),
|
|
18
|
+
appeal: /*#__PURE__*/ l.optional(
|
|
19
|
+
/*#__PURE__*/ l.ref((() => appealView))),
|
|
20
|
+
availableActions: /*#__PURE__*/ l.optional(
|
|
21
|
+
/*#__PURE__*/ l.array(
|
|
22
|
+
/*#__PURE__*/ l.string())),
|
|
23
|
+
latestAction: /*#__PURE__*/ l.optional(
|
|
24
|
+
/*#__PURE__*/ l.ref((() => actionView))),
|
|
25
|
+
actionCount: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),
|
|
26
|
+
createdAt: /*#__PURE__*/ l.string({ format: 'datetime' }),
|
|
27
|
+
updatedAt: /*#__PURE__*/ l.string({ format: 'datetime' }),
|
|
28
|
+
}));
|
|
29
|
+
export { subjectView };
|
|
30
|
+
/** The current enforcement state of a subject. */
|
|
31
|
+
const enforcementView = /*#__PURE__*/ l.typedObject($nsid, 'enforcementView',
|
|
32
|
+
/*#__PURE__*/ l.object({
|
|
33
|
+
state: /*#__PURE__*/ l.string(),
|
|
34
|
+
scope: /*#__PURE__*/ l.optional(
|
|
35
|
+
/*#__PURE__*/ l.string()),
|
|
36
|
+
expiresAt: /*#__PURE__*/ l.optional(
|
|
37
|
+
/*#__PURE__*/ l.string({ format: 'datetime' })),
|
|
38
|
+
labels: /*#__PURE__*/ l.optional(
|
|
39
|
+
/*#__PURE__*/ l.array(/*#__PURE__*/ l.string())),
|
|
40
|
+
}));
|
|
41
|
+
export { enforcementView };
|
|
42
|
+
/** The state of the viewer's appeal against the actions on a subject. */
|
|
43
|
+
const appealView = /*#__PURE__*/ l.typedObject($nsid, 'appealView',
|
|
44
|
+
/*#__PURE__*/ l.object({
|
|
45
|
+
state: /*#__PURE__*/ l.string(),
|
|
46
|
+
appealedAt: /*#__PURE__*/ l.optional(
|
|
47
|
+
/*#__PURE__*/ l.string({ format: 'datetime' })),
|
|
48
|
+
resolvedAt: /*#__PURE__*/ l.optional(
|
|
49
|
+
/*#__PURE__*/ l.string({ format: 'datetime' })),
|
|
50
|
+
note: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),
|
|
51
|
+
appealableUntil: /*#__PURE__*/ l.optional(
|
|
52
|
+
/*#__PURE__*/ l.string({ format: 'datetime' })),
|
|
53
|
+
}));
|
|
54
|
+
export { appealView };
|
|
55
|
+
/** A single moderation action taken against a subject. */
|
|
56
|
+
const actionView = /*#__PURE__*/ l.typedObject($nsid, 'actionView',
|
|
57
|
+
/*#__PURE__*/ l.object({
|
|
58
|
+
id: /*#__PURE__*/ l.integer(),
|
|
59
|
+
type: /*#__PURE__*/ l.string(),
|
|
60
|
+
scope: /*#__PURE__*/ l.optional(
|
|
61
|
+
/*#__PURE__*/ l.string()),
|
|
62
|
+
createdAt: /*#__PURE__*/ l.string({ format: 'datetime' }),
|
|
63
|
+
reversedAt: /*#__PURE__*/ l.optional(
|
|
64
|
+
/*#__PURE__*/ l.string({ format: 'datetime' })),
|
|
65
|
+
expiresAt: /*#__PURE__*/ l.optional(
|
|
66
|
+
/*#__PURE__*/ l.string({ format: 'datetime' })),
|
|
67
|
+
labels: /*#__PURE__*/ l.optional(
|
|
68
|
+
/*#__PURE__*/ l.array(/*#__PURE__*/ l.string())),
|
|
69
|
+
policies: /*#__PURE__*/ l.optional(
|
|
70
|
+
/*#__PURE__*/ l.array(/*#__PURE__*/ l.string())),
|
|
71
|
+
}));
|
|
72
|
+
export { actionView };
|
|
73
|
+
//# sourceMappingURL=defs.defs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defs.defs.js","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/inbox/defs.defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAChC,OAAO,KAAK,SAAS,MAAM,yCAAyC,CAAA;AACpE,OAAO,KAAK,aAAa,MAAM,6CAA6C,CAAA;AAE5E,MAAM,KAAK,GAAG,wBAAwB,CAAA;AAItC,OAAO,EAAE,KAAK,EAAE,CAAA;AAyBhB,gFAAgF;AAChF,MAAM,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC,WAAW,CAC7C,KAAK,EACL,aAAa;AACb,aAAa,CAA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/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\nimport * as AdminDefs from '../../../com/atproto/admin/defs.defs.js'\nimport * as RepoStrongRef from '../../../com/atproto/repo/strongRef.defs.js'\n\nconst $nsid = 'tools.ozone.inbox.defs'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\n/** A subject belonging to the viewer that has moderation actions against it. */\ntype SubjectView = {\n $type?: 'tools.ozone.inbox.defs#subjectView'\n\n /**\n * DID of the moderation service that took the actions.\n */\n src: l.DidString\n subject:\n | l.$Typed<AdminDefs.RepoRef>\n | l.$Typed<RepoStrongRef.Main>\n | l.Unknown$TypedObject\n enforcement: EnforcementView\n appeal?: AppealView\n availableActions?: ('appeal' | l.UnknownString)[]\n latestAction?: ActionView\n actionCount?: number\n createdAt: l.DatetimeString\n updatedAt: l.DatetimeString\n}\n\nexport type { SubjectView }\n\n/** A subject belonging to the viewer that has moderation actions against it. */\nconst subjectView = /*#__PURE__*/ l.typedObject<SubjectView>(\n $nsid,\n 'subjectView',\n /*#__PURE__*/ l.object({\n src: /*#__PURE__*/ l.string({ format: 'did' }),\n subject: /*#__PURE__*/ l.typedUnion(\n [\n /*#__PURE__*/ l.typedRef<AdminDefs.RepoRef>(\n (() => AdminDefs.repoRef) as any,\n ),\n /*#__PURE__*/ l.typedRef<RepoStrongRef.Main>(\n (() => RepoStrongRef.main) as any,\n ),\n ],\n false,\n ),\n enforcement: /*#__PURE__*/ l.ref<EnforcementView>(\n (() => enforcementView) as any,\n ),\n appeal: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<AppealView>((() => appealView) as any),\n ),\n availableActions: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(\n /*#__PURE__*/ l.string<{ knownValues: ['appeal'] }>(),\n ),\n ),\n latestAction: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<ActionView>((() => actionView) as any),\n ),\n actionCount: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\n createdAt: /*#__PURE__*/ l.string({ format: 'datetime' }),\n updatedAt: /*#__PURE__*/ l.string({ format: 'datetime' }),\n }),\n)\n\nexport { subjectView }\n\n/** The current enforcement state of a subject. */\ntype EnforcementView = {\n $type?: 'tools.ozone.inbox.defs#enforcementView'\n state:\n 'none' | 'labeled' | 'removed' | 'suspended' | 'takendown' | l.UnknownString\n scope?: 'network' | 'app' | 'labelOnly' | l.UnknownString\n expiresAt?: l.DatetimeString\n\n /**\n * Active label values on the subject, excluding negated and expired labels.\n */\n labels?: string[]\n}\n\nexport type { EnforcementView }\n\n/** The current enforcement state of a subject. */\nconst enforcementView = /*#__PURE__*/ l.typedObject<EnforcementView>(\n $nsid,\n 'enforcementView',\n /*#__PURE__*/ l.object({\n state: /*#__PURE__*/ l.string<{\n knownValues: ['none', 'labeled', 'removed', 'suspended', 'takendown']\n }>(),\n scope: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string<{\n knownValues: ['network', 'app', 'labelOnly']\n }>(),\n ),\n expiresAt: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ format: 'datetime' }),\n ),\n labels: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(/*#__PURE__*/ l.string()),\n ),\n }),\n)\n\nexport { enforcementView }\n\n/** The state of the viewer's appeal against the actions on a subject. */\ntype AppealView = {\n $type?: 'tools.ozone.inbox.defs#appealView'\n state:\n 'none' | 'pending' | 'resolved' | 'superseded' | 'expired' | l.UnknownString\n appealedAt?: l.DatetimeString\n\n /**\n * When the appeal's report was closed.\n */\n resolvedAt?: l.DatetimeString\n\n /**\n * Moderator explanation, from the publicNote on the closing activity. Absent if none was written.\n */\n note?: string\n appealableUntil?: l.DatetimeString\n}\n\nexport type { AppealView }\n\n/** The state of the viewer's appeal against the actions on a subject. */\nconst appealView = /*#__PURE__*/ l.typedObject<AppealView>(\n $nsid,\n 'appealView',\n /*#__PURE__*/ l.object({\n state: /*#__PURE__*/ l.string<{\n knownValues: ['none', 'pending', 'resolved', 'superseded', 'expired']\n }>(),\n appealedAt: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ format: 'datetime' }),\n ),\n resolvedAt: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ format: 'datetime' }),\n ),\n note: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\n appealableUntil: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ format: 'datetime' }),\n ),\n }),\n)\n\nexport { appealView }\n\n/** A single moderation action taken against a subject. */\ntype ActionView = {\n $type?: 'tools.ozone.inbox.defs#actionView'\n\n /**\n * Action ID (moderation event ID).\n */\n id: number\n\n /**\n * Public action type.\n */\n type: string\n scope?: 'network' | 'app' | 'labelOnly' | l.UnknownString\n createdAt: l.DatetimeString\n reversedAt?: l.DatetimeString\n expiresAt?: l.DatetimeString\n\n /**\n * Label values, for labelApplied/labelRemoved.\n */\n labels?: string[]\n\n /**\n * Policies that were applied in this action.\n */\n policies?: string[]\n}\n\nexport type { ActionView }\n\n/** A single moderation action taken against a subject. */\nconst actionView = /*#__PURE__*/ l.typedObject<ActionView>(\n $nsid,\n 'actionView',\n /*#__PURE__*/ l.object({\n id: /*#__PURE__*/ l.integer(),\n type: /*#__PURE__*/ l.string(),\n scope: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string<{\n knownValues: ['network', 'app', 'labelOnly']\n }>(),\n ),\n createdAt: /*#__PURE__*/ l.string({ format: 'datetime' }),\n reversedAt: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ format: 'datetime' }),\n ),\n expiresAt: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ format: 'datetime' }),\n ),\n labels: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(/*#__PURE__*/ l.string()),\n ),\n policies: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(/*#__PURE__*/ l.string()),\n ),\n }),\n)\n\nexport { actionView }\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/inbox/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,gBAAgB,CAAA","sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * from './defs.defs.js'\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inbox.d.ts","sourceRoot":"","sources":["../../../../src/lexicons/tools/ozone/inbox.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,qBAAqB,MAAM,kCAAkC,CAAA;AACzE,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inbox.js","sourceRoot":"","sources":["../../../../src/lexicons/tools/ozone/inbox.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,qBAAqB,MAAM,kCAAkC,CAAA;AACzE,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAA","sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * as appealActionedSubject from './inbox/appealActionedSubject.js'\nexport * as defs from './inbox/defs.js'\n"]}
|
|
@@ -16,6 +16,7 @@ export declare const $input: l.Payload<"application/json", l.ObjectSchema<{
|
|
|
16
16
|
reportTypes: l.OptionalSchema<l.ArraySchema<l.StringSchema<{}>>>;
|
|
17
17
|
description: l.OptionalSchema<l.StringSchema<{}>>;
|
|
18
18
|
recommendedPolicies: l.OptionalSchema<l.ArraySchema<l.StringSchema<{}>>>;
|
|
19
|
+
recommendedLabels: l.OptionalSchema<l.ArraySchema<l.StringSchema<{}>>>;
|
|
19
20
|
}>>;
|
|
20
21
|
export type $Input<B = l.BinaryData> = l.InferPayload<typeof $input, B>;
|
|
21
22
|
export type $InputBody<B = l.BinaryData> = l.InferPayloadBody<typeof $input, B>;
|
|
@@ -36,6 +37,7 @@ declare const main: l.Procedure<"tools.ozone.queue.createQueue", l.ParamsSchema<
|
|
|
36
37
|
reportTypes: l.OptionalSchema<l.ArraySchema<l.StringSchema<{}>>>;
|
|
37
38
|
description: l.OptionalSchema<l.StringSchema<{}>>;
|
|
38
39
|
recommendedPolicies: l.OptionalSchema<l.ArraySchema<l.StringSchema<{}>>>;
|
|
40
|
+
recommendedLabels: l.OptionalSchema<l.ArraySchema<l.StringSchema<{}>>>;
|
|
39
41
|
}>>, l.Payload<"application/json", l.ObjectSchema<{
|
|
40
42
|
queue: l.RefSchema<l.Validator<QueueDefs.QueueView, QueueDefs.QueueView>>;
|
|
41
43
|
}>>, readonly ["InvalidRecommendedPolicies", "ConflictingQueue"]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createQueue.defs.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/queue/createQueue.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAChC,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAE3C,QAAA,MAAM,KAAK,kCAAkC,CAAA;AAE7C,KAAK,KAAK,GAAG,OAAO,KAAK,CAAA;AAEzB,OAAO,EAAE,KAAK,EAAE,CAAA;AAEhB,eAAO,MAAM,OAAO,oBAA2B,CAAA;AAE/C,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,OAAO,CAAC,CAAA;AAEnD,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"createQueue.defs.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/queue/createQueue.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAChC,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAE3C,QAAA,MAAM,KAAK,kCAAkC,CAAA;AAE7C,KAAK,KAAK,GAAG,OAAO,KAAK,CAAA;AAEzB,OAAO,EAAE,KAAK,EAAE,CAAA;AAEhB,eAAO,MAAM,OAAO,oBAA2B,CAAA;AAE/C,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,OAAO,CAAC,CAAA;AAEnD,eAAO,MAAM,MAAM;;;;;;;;;;;;GAsBjB,CAAA;AAEF,MAAM,MAAM,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,YAAY,CAAC,OAAO,MAAM,EAAE,CAAC,CAAC,CAAA;AACvE,MAAM,MAAM,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,gBAAgB,CAAC,OAAO,MAAM,EAAE,CAAC,CAAC,CAAA;AAE/E,eAAO,MAAM,OAAO;;GAIlB,CAAA;AAEF,MAAM,MAAM,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,YAAY,CAAC,OAAO,OAAO,EAAE,CAAC,CAAC,CAAA;AACzE,MAAM,MAAM,WAAW,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,gBAAgB,CAC5D,OAAO,OAAO,EACd,CAAC,CACF,CAAA;AAED,yTAAyT;AACzT,QAAA,MAAM,IAAI;;;;;;;;;;;;;;iEAGR,CAAA;AAEF,OAAO,EAAE,IAAI,EAAE,CAAA;AAEf,QAAA,MAAM,IAAI,kCAAQ,CAAA;AAElB,KAAK,IAAI,GAAG,OAAO,IAAI,CAAA;AAEvB,OAAO,EAAE,IAAI,EAAE,CAAA"}
|
|
@@ -18,6 +18,8 @@ export const $input = /*#__PURE__*/ l.jsonPayload({
|
|
|
18
18
|
description: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),
|
|
19
19
|
recommendedPolicies: /*#__PURE__*/ l.optional(
|
|
20
20
|
/*#__PURE__*/ l.array(/*#__PURE__*/ l.string())),
|
|
21
|
+
recommendedLabels: /*#__PURE__*/ l.optional(
|
|
22
|
+
/*#__PURE__*/ l.array(/*#__PURE__*/ l.string())),
|
|
21
23
|
});
|
|
22
24
|
export const $output = /*#__PURE__*/ l.jsonPayload({
|
|
23
25
|
queue: /*#__PURE__*/ l.ref((() => QueueDefs.queueView)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createQueue.defs.js","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/queue/createQueue.defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAChC,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAE3C,MAAM,KAAK,GAAG,+BAA+B,CAAA;AAI7C,OAAO,EAAE,KAAK,EAAE,CAAA;AAEhB,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAA;AAI/C,MAAM,CAAC,MAAM,MAAM,GAAG,aAAa,CAAC,CAAC,CAAC,WAAW,CAAC;IAChD,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE;IAC9B,YAAY,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;IACpC,aAAa,CAAC,CAAC,CAAC,KAAK;IACnB,aAAa,CAAC,CAAC,CAAC,MAAM,EAElB,CACL,CACF;IACD,UAAU,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;IAClC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAC3C;IACD,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;IACnC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,CACnE;IACD,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC/D,mBAAmB,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;IAC3C,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAChD;CACF,CAAC,CAAA;AAKF,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAC,CAAC,CAAC,WAAW,CAAC;IACjD,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,CACxB,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,SAAS,CAAQ,CACnC;CACF,CAAC,CAAA;AAQF,yTAAyT;AACzT,MAAM,IAAI,GAAG,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE;IACtE,4BAA4B;IAC5B,kBAAkB;CACnB,CAAC,CAAA;AAEF,OAAO,EAAE,IAAI,EAAE,CAAA;AAEf,MAAM,IAAI,GAAG,KAAK,CAAA;AAIlB,OAAO,EAAE,IAAI,EAAE,CAAA","sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\nimport * as QueueDefs from './defs.defs.js'\n\nconst $nsid = 'tools.ozone.queue.createQueue'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\nexport const $params = /*#__PURE__*/ l.params()\n\nexport type $Params = l.InferOutput<typeof $params>\n\nexport const $input = /*#__PURE__*/ l.jsonPayload({\n name: /*#__PURE__*/ l.string(),\n subjectTypes: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(\n /*#__PURE__*/ l.string<{\n knownValues: ['account', 'record', 'message', 'conversation']\n }>(),\n ),\n ),\n collection: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ format: 'nsid' }),\n ),\n reportTypes: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(/*#__PURE__*/ l.string(), { maxLength: 25 }),\n ),\n description: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\n recommendedPolicies: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(/*#__PURE__*/ l.string()),\n ),\n})\n\nexport type $Input<B = l.BinaryData> = l.InferPayload<typeof $input, B>\nexport type $InputBody<B = l.BinaryData> = l.InferPayloadBody<typeof $input, B>\n\nexport const $output = /*#__PURE__*/ l.jsonPayload({\n queue: /*#__PURE__*/ l.ref<QueueDefs.QueueView>(\n (() => QueueDefs.queueView) as any,\n ),\n})\n\nexport type $Output<B = l.BinaryData> = l.InferPayload<typeof $output, B>\nexport type $OutputBody<B = l.BinaryData> = l.InferPayloadBody<\n typeof $output,\n B\n>\n\n/** Create a new moderation queue. A queue can have optional matching criteria that ozone's queue router will use to match reports. A queue with no criteria must have reports assigned to it manually via (1) `modTool.meta.queueId` in `tools.ozone.moderation.emitEvent` or (2) `tools.ozone.report.reassignQueue`. */\nconst main = /*#__PURE__*/ l.procedure($nsid, $params, $input, $output, [\n 'InvalidRecommendedPolicies',\n 'ConflictingQueue',\n])\n\nexport { main }\n\nconst $lxm = $nsid\n\ntype $lxm = typeof $lxm\n\nexport { $lxm }\n"]}
|
|
1
|
+
{"version":3,"file":"createQueue.defs.js","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/queue/createQueue.defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAChC,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAE3C,MAAM,KAAK,GAAG,+BAA+B,CAAA;AAI7C,OAAO,EAAE,KAAK,EAAE,CAAA;AAEhB,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAA;AAI/C,MAAM,CAAC,MAAM,MAAM,GAAG,aAAa,CAAC,CAAC,CAAC,WAAW,CAAC;IAChD,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE;IAC9B,YAAY,EAAE,aAAa,CAAC,CAAC,CAAC,QAA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,CAAA;AAIlB,OAAO,EAAE,IAAI,EAAE,CAAA","sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\nimport * as QueueDefs from './defs.defs.js'\n\nconst $nsid = 'tools.ozone.queue.createQueue'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\nexport const $params = /*#__PURE__*/ l.params()\n\nexport type $Params = l.InferOutput<typeof $params>\n\nexport const $input = /*#__PURE__*/ l.jsonPayload({\n name: /*#__PURE__*/ l.string(),\n subjectTypes: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(\n /*#__PURE__*/ l.string<{\n knownValues: ['account', 'record', 'message', 'conversation']\n }>(),\n ),\n ),\n collection: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ format: 'nsid' }),\n ),\n reportTypes: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(/*#__PURE__*/ l.string(), { maxLength: 25 }),\n ),\n description: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\n recommendedPolicies: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(/*#__PURE__*/ l.string()),\n ),\n recommendedLabels: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(/*#__PURE__*/ l.string()),\n ),\n})\n\nexport type $Input<B = l.BinaryData> = l.InferPayload<typeof $input, B>\nexport type $InputBody<B = l.BinaryData> = l.InferPayloadBody<typeof $input, B>\n\nexport const $output = /*#__PURE__*/ l.jsonPayload({\n queue: /*#__PURE__*/ l.ref<QueueDefs.QueueView>(\n (() => QueueDefs.queueView) as any,\n ),\n})\n\nexport type $Output<B = l.BinaryData> = l.InferPayload<typeof $output, B>\nexport type $OutputBody<B = l.BinaryData> = l.InferPayloadBody<\n typeof $output,\n B\n>\n\n/** Create a new moderation queue. A queue can have optional matching criteria that ozone's queue router will use to match reports. A queue with no criteria must have reports assigned to it manually via (1) `modTool.meta.queueId` in `tools.ozone.moderation.emitEvent` or (2) `tools.ozone.report.reassignQueue`. */\nconst main = /*#__PURE__*/ l.procedure($nsid, $params, $input, $output, [\n 'InvalidRecommendedPolicies',\n 'ConflictingQueue',\n])\n\nexport { main }\n\nconst $lxm = $nsid\n\ntype $lxm = typeof $lxm\n\nexport { $lxm }\n"]}
|
|
@@ -33,6 +33,10 @@ type QueueView = {
|
|
|
33
33
|
* Policy keys recommended when actioning reports in this queue
|
|
34
34
|
*/
|
|
35
35
|
recommendedPolicies?: string[];
|
|
36
|
+
/**
|
|
37
|
+
* Labels recommended for this queue and used as a fallback when routing label appeals
|
|
38
|
+
*/
|
|
39
|
+
recommendedLabels?: string[];
|
|
36
40
|
/**
|
|
37
41
|
* DID of moderator who created this queue
|
|
38
42
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defs.defs.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/queue/defs.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAChC,OAAO,KAAK,QAAQ,MAAM,sBAAsB,CAAA;AAEhD,QAAA,MAAM,KAAK,2BAA2B,CAAA;AAEtC,KAAK,KAAK,GAAG,OAAO,KAAK,CAAA;AAEzB,OAAO,EAAE,KAAK,EAAE,CAAA;AAEhB,KAAK,SAAS,GAAG;IACf,KAAK,CAAC,EAAE,kCAAkC,CAAA;IAE1C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,YAAY,CAAC,EAAE,CACb,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,cAAc,GAAG,CAAC,CAAC,aAAa,CACpE,EAAE,CAAA;IAEH;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,CAAC,UAAU,CAAA;IAEzB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;IAEtB;;OAEG;IACH,WAAW,CAA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;IAC3B,KAAK,EAAE,SAAS,CAAA;IAChB,OAAO,EAAE,CAAC,CAAC,cAAc,CAAA;IACzB,KAAK,CAAC,EAAE,CAAC,CAAC,cAAc,CAAA;CACzB,CAAA;AAED,YAAY,EAAE,cAAc,EAAE,CAAA;AAE9B,QAAA,MAAM,cAAc,2GAenB,CAAA;AAED,OAAO,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -19,6 +19,8 @@ const queueView = /*#__PURE__*/ l.typedObject($nsid, 'queueView',
|
|
|
19
19
|
description: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),
|
|
20
20
|
recommendedPolicies: /*#__PURE__*/ l.optional(
|
|
21
21
|
/*#__PURE__*/ l.array(/*#__PURE__*/ l.string())),
|
|
22
|
+
recommendedLabels: /*#__PURE__*/ l.optional(
|
|
23
|
+
/*#__PURE__*/ l.array(/*#__PURE__*/ l.string())),
|
|
22
24
|
createdBy: /*#__PURE__*/ l.string({ format: 'did' }),
|
|
23
25
|
createdAt: /*#__PURE__*/ l.string({ format: 'datetime' }),
|
|
24
26
|
updatedAt: /*#__PURE__*/ l.string({ format: 'datetime' }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defs.defs.js","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/queue/defs.defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAChC,OAAO,KAAK,QAAQ,MAAM,sBAAsB,CAAA;AAEhD,MAAM,KAAK,GAAG,wBAAwB,CAAA;AAItC,OAAO,EAAE,KAAK,EAAE,CAAA;
|
|
1
|
+
{"version":3,"file":"defs.defs.js","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/queue/defs.defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAChC,OAAO,KAAK,QAAQ,MAAM,sBAAsB,CAAA;AAEhD,MAAM,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aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,CAC/C;CACF,CAAC,CACH,CAAA;AAED,OAAO,EAAE,UAAU,EAAE,CAAA;AAkBrB,MAAM,cAAc,GAAG,aAAa,CAAC,CAAC,CAAC,WAAW,CAChD,KAAK,EACL,gBAAgB;AAChB,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC;IACrB,EAAE,EAAE,aAAa,CAAC,CAAC,CAAC,OAAO,EAAE;IAC7B,GAAG,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;IAC9C,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;IACjC,aAAa,CAAC,CAAC,CAAC,GAAG,CAAkB,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAQ,CAAC,CACrE;IACD,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,CAAY,CAAC,GAAG,EAAE,CAAC,SAAS,CAAQ,CAAC;IAC/D,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC;IACvD,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;IAC7B,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,CAC/C;CACF,CAAC,CACH,CAAA;AAED,OAAO,EAAE,cAAc,EAAE,CAAA","sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\nimport * as TeamDefs from '../team/defs.defs.js'\n\nconst $nsid = 'tools.ozone.queue.defs'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\ntype QueueView = {\n $type?: 'tools.ozone.queue.defs#queueView'\n\n /**\n * Queue ID\n */\n id: number\n\n /**\n * Display name of the queue\n */\n name: string\n\n /**\n * Subject types this queue accepts.\n */\n subjectTypes?: (\n 'account' | 'record' | 'message' | 'conversation' | l.UnknownString\n )[]\n\n /**\n * Collection name for record subjects (e.g., 'app.bsky.feed.post')\n */\n collection?: l.NsidString\n\n /**\n * Report reason types this queue accepts (fully qualified NSIDs)\n */\n reportTypes?: string[]\n\n /**\n * Optional description of the queue\n */\n description?: string\n\n /**\n * Policy keys recommended when actioning reports in this queue\n */\n recommendedPolicies?: string[]\n\n /**\n * Labels recommended for this queue and used as a fallback when routing label appeals\n */\n recommendedLabels?: string[]\n\n /**\n * DID of moderator who created this queue\n */\n createdBy: l.DidString\n createdAt: l.DatetimeString\n updatedAt: l.DatetimeString\n\n /**\n * Whether this queue is currently active\n */\n enabled: boolean\n\n /**\n * When the queue was deleted, if applicable\n */\n deletedAt?: l.DatetimeString\n\n /**\n * Statistics about this queue\n */\n stats: QueueStats\n}\n\nexport type { QueueView }\n\nconst queueView = /*#__PURE__*/ l.typedObject<QueueView>(\n $nsid,\n 'queueView',\n /*#__PURE__*/ l.object({\n id: /*#__PURE__*/ l.integer(),\n name: /*#__PURE__*/ l.string(),\n subjectTypes: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(\n /*#__PURE__*/ l.string<{\n knownValues: ['account', 'record', 'message', 'conversation']\n }>(),\n ),\n ),\n collection: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ format: 'nsid' }),\n ),\n reportTypes: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(/*#__PURE__*/ l.string()),\n ),\n description: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\n recommendedPolicies: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(/*#__PURE__*/ l.string()),\n ),\n recommendedLabels: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(/*#__PURE__*/ l.string()),\n ),\n createdBy: /*#__PURE__*/ l.string({ format: 'did' }),\n createdAt: /*#__PURE__*/ l.string({ format: 'datetime' }),\n updatedAt: /*#__PURE__*/ l.string({ format: 'datetime' }),\n enabled: /*#__PURE__*/ l.boolean(),\n deletedAt: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ format: 'datetime' }),\n ),\n stats: /*#__PURE__*/ l.ref<QueueStats>((() => queueStats) as any),\n }),\n)\n\nexport { queueView }\n\ntype QueueStats = {\n $type?: 'tools.ozone.queue.defs#queueStats'\n\n /**\n * Number of reports in 'open' status\n */\n pendingCount?: number\n\n /**\n * Number of reports in 'closed' status\n */\n actionedCount?: number\n\n /**\n * Number of reports in 'escalated' status\n */\n escalatedCount?: number\n\n /**\n * Reports received in this queue in the last 24 hours.\n */\n inboundCount?: number\n\n /**\n * Percentage of reports actioned (actionedCount / inboundCount * 100), rounded to nearest integer. Absent when inboundCount is 0.\n */\n actionRate?: number\n\n /**\n * Average time in seconds from report creation to close, for reports closed in this period.\n */\n avgHandlingTimeSec?: number\n\n /**\n * When these statistics were last computed\n */\n lastUpdated?: l.DatetimeString\n}\n\nexport type { QueueStats }\n\nconst queueStats = /*#__PURE__*/ l.typedObject<QueueStats>(\n $nsid,\n 'queueStats',\n /*#__PURE__*/ l.object({\n pendingCount: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\n actionedCount: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\n escalatedCount: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\n inboundCount: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\n actionRate: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\n avgHandlingTimeSec: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\n lastUpdated: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ format: 'datetime' }),\n ),\n }),\n)\n\nexport { queueStats }\n\ntype AssignmentView = {\n $type?: 'tools.ozone.queue.defs#assignmentView'\n id: number\n did: l.DidString\n\n /**\n * The moderator assigned to this queue\n */\n moderator?: TeamDefs.Member\n queue: QueueView\n startAt: l.DatetimeString\n endAt?: l.DatetimeString\n}\n\nexport type { AssignmentView }\n\nconst assignmentView = /*#__PURE__*/ l.typedObject<AssignmentView>(\n $nsid,\n 'assignmentView',\n /*#__PURE__*/ l.object({\n id: /*#__PURE__*/ l.integer(),\n did: /*#__PURE__*/ l.string({ format: 'did' }),\n moderator: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<TeamDefs.Member>((() => TeamDefs.member) as any),\n ),\n queue: /*#__PURE__*/ l.ref<QueueView>((() => queueView) as any),\n startAt: /*#__PURE__*/ l.string({ format: 'datetime' }),\n endAt: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ format: 'datetime' }),\n ),\n }),\n)\n\nexport { assignmentView }\n"]}
|
|
@@ -11,6 +11,7 @@ export declare const $input: l.Payload<"application/json", l.ObjectSchema<{
|
|
|
11
11
|
enabled: l.OptionalSchema<l.BooleanSchema>;
|
|
12
12
|
description: l.OptionalSchema<l.StringSchema<{}>>;
|
|
13
13
|
recommendedPolicies: l.OptionalSchema<l.ArraySchema<l.StringSchema<{}>>>;
|
|
14
|
+
recommendedLabels: l.OptionalSchema<l.ArraySchema<l.StringSchema<{}>>>;
|
|
14
15
|
}>>;
|
|
15
16
|
export type $Input<B = l.BinaryData> = l.InferPayload<typeof $input, B>;
|
|
16
17
|
export type $InputBody<B = l.BinaryData> = l.InferPayloadBody<typeof $input, B>;
|
|
@@ -26,9 +27,10 @@ declare const main: l.Procedure<"tools.ozone.queue.updateQueue", l.ParamsSchema<
|
|
|
26
27
|
enabled: l.OptionalSchema<l.BooleanSchema>;
|
|
27
28
|
description: l.OptionalSchema<l.StringSchema<{}>>;
|
|
28
29
|
recommendedPolicies: l.OptionalSchema<l.ArraySchema<l.StringSchema<{}>>>;
|
|
30
|
+
recommendedLabels: l.OptionalSchema<l.ArraySchema<l.StringSchema<{}>>>;
|
|
29
31
|
}>>, l.Payload<"application/json", l.ObjectSchema<{
|
|
30
32
|
queue: l.RefSchema<l.Validator<QueueDefs.QueueView, QueueDefs.QueueView>>;
|
|
31
|
-
}>>, readonly ["InvalidRecommendedPolicies"]>;
|
|
33
|
+
}>>, readonly ["InvalidRecommendedPolicies", "ConflictingQueue"]>;
|
|
32
34
|
export { main };
|
|
33
35
|
declare const $lxm = "tools.ozone.queue.updateQueue";
|
|
34
36
|
type $lxm = typeof $lxm;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateQueue.defs.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/queue/updateQueue.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAChC,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAE3C,QAAA,MAAM,KAAK,kCAAkC,CAAA;AAE7C,KAAK,KAAK,GAAG,OAAO,KAAK,CAAA;AAEzB,OAAO,EAAE,KAAK,EAAE,CAAA;AAEhB,eAAO,MAAM,OAAO,oBAA2B,CAAA;AAE/C,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,OAAO,CAAC,CAAA;AAEnD,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"updateQueue.defs.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/queue/updateQueue.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAChC,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAE3C,QAAA,MAAM,KAAK,kCAAkC,CAAA;AAE7C,KAAK,KAAK,GAAG,OAAO,KAAK,CAAA;AAEzB,OAAO,EAAE,KAAK,EAAE,CAAA;AAEhB,eAAO,MAAM,OAAO,oBAA2B,CAAA;AAE/C,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,OAAO,CAAC,CAAA;AAEnD,eAAO,MAAM,MAAM;;;;;;;GAWjB,CAAA;AAEF,MAAM,MAAM,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,YAAY,CAAC,OAAO,MAAM,EAAE,CAAC,CAAC,CAAA;AACvE,MAAM,MAAM,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,gBAAgB,CAAC,OAAO,MAAM,EAAE,CAAC,CAAC,CAAA;AAE/E,eAAO,MAAM,OAAO;;GAIlB,CAAA;AAEF,MAAM,MAAM,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,YAAY,CAAC,OAAO,OAAO,EAAE,CAAC,CAAC,CAAA;AACzE,MAAM,MAAM,WAAW,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,gBAAgB,CAC5D,OAAO,OAAO,EACd,CAAC,CACF,CAAA;AAED,+BAA+B;AAC/B,QAAA,MAAM,IAAI;;;;;;;;;iEAGR,CAAA;AAEF,OAAO,EAAE,IAAI,EAAE,CAAA;AAEf,QAAA,MAAM,IAAI,kCAAQ,CAAA;AAElB,KAAK,IAAI,GAAG,OAAO,IAAI,CAAA;AAEvB,OAAO,EAAE,IAAI,EAAE,CAAA"}
|
|
@@ -13,6 +13,8 @@ export const $input = /*#__PURE__*/ l.jsonPayload({
|
|
|
13
13
|
description: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),
|
|
14
14
|
recommendedPolicies: /*#__PURE__*/ l.optional(
|
|
15
15
|
/*#__PURE__*/ l.array(/*#__PURE__*/ l.string())),
|
|
16
|
+
recommendedLabels: /*#__PURE__*/ l.optional(
|
|
17
|
+
/*#__PURE__*/ l.array(/*#__PURE__*/ l.string())),
|
|
16
18
|
});
|
|
17
19
|
export const $output = /*#__PURE__*/ l.jsonPayload({
|
|
18
20
|
queue: /*#__PURE__*/ l.ref((() => QueueDefs.queueView)),
|
|
@@ -20,6 +22,7 @@ export const $output = /*#__PURE__*/ l.jsonPayload({
|
|
|
20
22
|
/** Update queue properties. */
|
|
21
23
|
const main = /*#__PURE__*/ l.procedure($nsid, $params, $input, $output, [
|
|
22
24
|
'InvalidRecommendedPolicies',
|
|
25
|
+
'ConflictingQueue',
|
|
23
26
|
]);
|
|
24
27
|
export { main };
|
|
25
28
|
const $lxm = $nsid;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateQueue.defs.js","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/queue/updateQueue.defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAChC,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAE3C,MAAM,KAAK,GAAG,+BAA+B,CAAA;AAI7C,OAAO,EAAE,KAAK,EAAE,CAAA;AAEhB,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAA;AAI/C,MAAM,CAAC,MAAM,MAAM,GAAG,aAAa,CAAC,CAAC,CAAC,WAAW,CAAC;IAChD,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,OAAO,EAAE;IAClC,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACxD,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;IAC5D,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC/D,mBAAmB,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ;IAC3C,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAChD;CACF,CAAC,CAAA;AAKF,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAC,CAAC,CAAC,WAAW,CAAC;IACjD,KAAK,EAA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AQ;IACzC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAChD;CACF,CAAC,CAAA;AAKF,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAC,CAAC,CAAC,WAAW,CAAC;IACjD,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,CACxB,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,SAAS,CAAQ,CACnC;CACF,CAAC,CAAA;AAQF,+BAA+B;AAC/B,MAAM,IAAI,GAAG,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE;IACtE,4BAA4B;IAC5B,kBAAkB;CACnB,CAAC,CAAA;AAEF,OAAO,EAAE,IAAI,EAAE,CAAA;AAEf,MAAM,IAAI,GAAG,KAAK,CAAA;AAIlB,OAAO,EAAE,IAAI,EAAE,CAAA","sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\nimport * as QueueDefs from './defs.defs.js'\n\nconst $nsid = 'tools.ozone.queue.updateQueue'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\nexport const $params = /*#__PURE__*/ l.params()\n\nexport type $Params = l.InferOutput<typeof $params>\n\nexport const $input = /*#__PURE__*/ l.jsonPayload({\n queueId: /*#__PURE__*/ l.integer(),\n name: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\n enabled: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),\n description: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\n recommendedPolicies: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(/*#__PURE__*/ l.string()),\n ),\n recommendedLabels: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(/*#__PURE__*/ l.string()),\n ),\n})\n\nexport type $Input<B = l.BinaryData> = l.InferPayload<typeof $input, B>\nexport type $InputBody<B = l.BinaryData> = l.InferPayloadBody<typeof $input, B>\n\nexport const $output = /*#__PURE__*/ l.jsonPayload({\n queue: /*#__PURE__*/ l.ref<QueueDefs.QueueView>(\n (() => QueueDefs.queueView) as any,\n ),\n})\n\nexport type $Output<B = l.BinaryData> = l.InferPayload<typeof $output, B>\nexport type $OutputBody<B = l.BinaryData> = l.InferPayloadBody<\n typeof $output,\n B\n>\n\n/** Update queue properties. */\nconst main = /*#__PURE__*/ l.procedure($nsid, $params, $input, $output, [\n 'InvalidRecommendedPolicies',\n 'ConflictingQueue',\n])\n\nexport { main }\n\nconst $lxm = $nsid\n\ntype $lxm = typeof $lxm\n\nexport { $lxm }\n"]}
|