@atproto/ozone 0.9.2 → 0.10.1
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 +20 -0
- package/README.md +8 -0
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +2 -0
- package/dist/api/index.js.map +1 -1
- package/dist/api/queue/createQueue.d.ts.map +1 -1
- package/dist/api/queue/createQueue.js +5 -1
- package/dist/api/queue/createQueue.js.map +1 -1
- package/dist/api/queue/updateQueue.d.ts.map +1 -1
- package/dist/api/queue/updateQueue.js +2 -0
- package/dist/api/queue/updateQueue.js.map +1 -1
- package/dist/api/safelink/addRule.d.ts.map +1 -1
- package/dist/api/safelink/addRule.js +2 -1
- package/dist/api/safelink/addRule.js.map +1 -1
- package/dist/api/safelink/queryRules.d.ts.map +1 -1
- package/dist/api/safelink/queryRules.js +1 -0
- package/dist/api/safelink/queryRules.js.map +1 -1
- package/dist/api/safelink/removeRule.d.ts.map +1 -1
- package/dist/api/safelink/removeRule.js +2 -1
- package/dist/api/safelink/removeRule.js.map +1 -1
- package/dist/api/safelink/syncSource.d.ts +4 -0
- package/dist/api/safelink/syncSource.d.ts.map +1 -0
- package/dist/api/safelink/syncSource.js +24 -0
- package/dist/api/safelink/syncSource.js.map +1 -0
- package/dist/api/safelink/updateRule.d.ts.map +1 -1
- package/dist/api/safelink/updateRule.js +2 -1
- package/dist/api/safelink/updateRule.js.map +1 -1
- package/dist/assignment/index.d.ts +2 -0
- package/dist/assignment/index.d.ts.map +1 -1
- package/dist/assignment/index.js +10 -0
- package/dist/assignment/index.js.map +1 -1
- package/dist/context.js +1 -1
- package/dist/context.js.map +1 -1
- package/dist/daemon/context.js +1 -1
- package/dist/daemon/context.js.map +1 -1
- package/dist/daemon/scheduled-action-processor.d.ts.map +1 -1
- package/dist/daemon/scheduled-action-processor.js +1 -0
- package/dist/daemon/scheduled-action-processor.js.map +1 -1
- package/dist/db/migrations/20261016T000000000Z-add-report-queue-tag-criteria.d.ts +4 -0
- package/dist/db/migrations/20261016T000000000Z-add-report-queue-tag-criteria.d.ts.map +1 -0
- package/dist/db/migrations/20261016T000000000Z-add-report-queue-tag-criteria.js +15 -0
- package/dist/db/migrations/20261016T000000000Z-add-report-queue-tag-criteria.js.map +1 -0
- package/dist/db/migrations/20261016T174053481Z-add-safelink-rule-source.d.ts +4 -0
- package/dist/db/migrations/20261016T174053481Z-add-safelink-rule-source.d.ts.map +1 -0
- package/dist/db/migrations/20261016T174053481Z-add-safelink-rule-source.js +21 -0
- package/dist/db/migrations/20261016T174053481Z-add-safelink-rule-source.js.map +1 -0
- package/dist/db/migrations/index.d.ts +2 -0
- package/dist/db/migrations/index.d.ts.map +1 -1
- package/dist/db/migrations/index.js +2 -0
- package/dist/db/migrations/index.js.map +1 -1
- package/dist/db/schema/report_queue.d.ts +8 -0
- package/dist/db/schema/report_queue.d.ts.map +1 -1
- package/dist/db/schema/report_queue.js.map +1 -1
- package/dist/db/schema/safelink.d.ts +2 -0
- package/dist/db/schema/safelink.d.ts.map +1 -1
- package/dist/db/schema/safelink.js.map +1 -1
- package/dist/inbox/appeal.d.ts.map +1 -1
- package/dist/inbox/appeal.js +22 -9
- package/dist/inbox/appeal.js.map +1 -1
- package/dist/lexicons/social/grain/photo.defs.d.ts +11 -11
- package/dist/lexicons/social/grain/photo.defs.d.ts.map +1 -1
- package/dist/lexicons/social/grain/photo.defs.js +1 -1
- package/dist/lexicons/social/grain/photo.defs.js.map +1 -1
- package/dist/lexicons/tools/ozone/moderation/defs.defs.d.ts +4 -0
- package/dist/lexicons/tools/ozone/moderation/defs.defs.d.ts.map +1 -1
- package/dist/lexicons/tools/ozone/moderation/defs.defs.js +1 -1
- package/dist/lexicons/tools/ozone/moderation/defs.defs.js.map +1 -1
- package/dist/lexicons/tools/ozone/queue/createQueue.defs.d.ts +13 -1
- package/dist/lexicons/tools/ozone/queue/createQueue.defs.d.ts.map +1 -1
- package/dist/lexicons/tools/ozone/queue/createQueue.defs.js +2 -2
- package/dist/lexicons/tools/ozone/queue/createQueue.defs.js.map +1 -1
- package/dist/lexicons/tools/ozone/queue/defs.defs.d.ts +9 -1
- package/dist/lexicons/tools/ozone/queue/defs.defs.d.ts.map +1 -1
- package/dist/lexicons/tools/ozone/queue/defs.defs.js +1 -1
- package/dist/lexicons/tools/ozone/queue/defs.defs.js.map +1 -1
- package/dist/lexicons/tools/ozone/safelink/addRule.defs.d.ts +7 -1
- package/dist/lexicons/tools/ozone/safelink/addRule.defs.d.ts.map +1 -1
- package/dist/lexicons/tools/ozone/safelink/addRule.defs.js +2 -2
- package/dist/lexicons/tools/ozone/safelink/addRule.defs.js.map +1 -1
- package/dist/lexicons/tools/ozone/safelink/defs.defs.d.ts +10 -2
- package/dist/lexicons/tools/ozone/safelink/defs.defs.d.ts.map +1 -1
- package/dist/lexicons/tools/ozone/safelink/defs.defs.js +3 -3
- package/dist/lexicons/tools/ozone/safelink/defs.defs.js.map +1 -1
- package/dist/lexicons/tools/ozone/safelink/removeRule.defs.d.ts +6 -0
- package/dist/lexicons/tools/ozone/safelink/removeRule.defs.d.ts.map +1 -1
- package/dist/lexicons/tools/ozone/safelink/removeRule.defs.js +1 -1
- package/dist/lexicons/tools/ozone/safelink/removeRule.defs.js.map +1 -1
- package/dist/lexicons/tools/ozone/safelink/syncSource.d.ts +3 -0
- package/dist/lexicons/tools/ozone/safelink/syncSource.d.ts.map +1 -0
- package/dist/lexicons/tools/ozone/safelink/syncSource.defs.d.ts +50 -0
- package/dist/lexicons/tools/ozone/safelink/syncSource.defs.d.ts.map +1 -0
- package/dist/lexicons/tools/ozone/safelink/syncSource.defs.js +18 -0
- package/dist/lexicons/tools/ozone/safelink/syncSource.defs.js.map +1 -0
- package/dist/lexicons/tools/ozone/safelink/syncSource.js +6 -0
- package/dist/lexicons/tools/ozone/safelink/syncSource.js.map +1 -0
- package/dist/lexicons/tools/ozone/safelink/updateRule.defs.d.ts +7 -1
- package/dist/lexicons/tools/ozone/safelink/updateRule.defs.d.ts.map +1 -1
- package/dist/lexicons/tools/ozone/safelink/updateRule.defs.js +2 -2
- package/dist/lexicons/tools/ozone/safelink/updateRule.defs.js.map +1 -1
- package/dist/lexicons/tools/ozone/safelink.d.ts +1 -0
- package/dist/lexicons/tools/ozone/safelink.d.ts.map +1 -1
- package/dist/lexicons/tools/ozone/safelink.js +1 -0
- package/dist/lexicons/tools/ozone/safelink.js.map +1 -1
- package/dist/mod-service/views.d.ts.map +1 -1
- package/dist/mod-service/views.js +1 -4
- package/dist/mod-service/views.js.map +1 -1
- package/dist/queue/service.d.ts +23 -6
- package/dist/queue/service.d.ts.map +1 -1
- package/dist/queue/service.js +293 -166
- package/dist/queue/service.js.map +1 -1
- package/dist/safelink/service.d.ts +23 -4
- package/dist/safelink/service.d.ts.map +1 -1
- package/dist/safelink/service.js +179 -20
- package/dist/safelink/service.js.map +1 -1
- package/package.json +7 -7
|
@@ -6,9 +6,9 @@ import * as QueueDefs from "./defs.defs.js";
|
|
|
6
6
|
const $nsid = "tools.ozone.queue.createQueue";
|
|
7
7
|
export { $nsid };
|
|
8
8
|
export const $params = /*#__PURE__*/ l.params();
|
|
9
|
-
export const $input = /*#__PURE__*/ l.jsonPayload({ "name": /*#__PURE__*/ l.string(), "subjectTypes": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string())), "collection": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({ "format": "nsid" })), "reportTypes": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string(), { "maxLength": 25 })), "description": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()), "recommendedPolicies": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string())), "recommendedLabels": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string())) });
|
|
9
|
+
export const $input = /*#__PURE__*/ l.jsonPayload({ "name": /*#__PURE__*/ l.string(), "subjectTypes": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string())), "collection": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({ "format": "nsid" })), "reportTypes": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string())), "reporterTags": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({ "minLength": 1 }), { "maxLength": 25 })), "accountTags": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({ "minLength": 1 }), { "maxLength": 25 })), "description": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()), "recommendedPolicies": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string())), "recommendedLabels": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string())) });
|
|
10
10
|
export const $output = /*#__PURE__*/ l.jsonPayload({ "queue": /*#__PURE__*/ l.ref((() => QueueDefs.queueView)) });
|
|
11
|
-
/** Create a new moderation queue. A queue
|
|
11
|
+
/** Create a new moderation queue. A queue with omitted or empty subjectTypes or reportTypes must have reports assigned to it manually via (1) `modTool.meta.queueId` in `tools.ozone.moderation.emitEvent` or (2) `tools.ozone.report.reassignQueue`. */
|
|
12
12
|
const main = /*#__PURE__*/ l.procedure($nsid, $params, $input, $output, ["InvalidRecommendedPolicies", "ConflictingQueue"]);
|
|
13
13
|
export { main };
|
|
14
14
|
const $lxm = $nsid;
|
|
@@ -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,CAAC;AACjC,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAE5C,MAAM,KAAK,GAAG,+BAA+B,CAAC;AAI9C,OAAO,EAAE,KAAK,E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,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,EAAC,qBAAqB,EAAC,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAG,CAAC,EAAC,mBAAmB,EAAC,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAG,CAAC,EAAC,CAAC,CAAC;AAKh5B,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAC,CAAC,CAAC,WAAW,CAAC,EAAC,OAAO,EAAC,aAAa,CAAC,CAAC,CAAC,GAAG,CAAsB,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,SAAS,CAAQ,CAAC,EAAC,CAAC,CAAC;AAK3I,yPAAyP;AACzP,MAAM,IAAI,GAAG,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,4BAA4B,EAAC,kBAAkB,CAAC,CAAC,CAAC;AAE3H,OAAO,EAAE,IAAI,EAAE,CAAC;AAEhB,MAAM,IAAI,GAAG,KAAK,CAAC;AAInB,OAAO,EAAE,IAAI,EAAE,CAAC","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({\"name\":/*#__PURE__*/ l.string(),\"subjectTypes\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string<{\"knownValues\":[\"account\",\"record\",\"message\",\"conversation\"]}>(), )),\"collection\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({\"format\":\"nsid\"})),\"reportTypes\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string(), )),\"reporterTags\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({\"minLength\":1}), {\"maxLength\":25})),\"accountTags\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({\"minLength\":1}), {\"maxLength\":25})),\"description\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\"recommendedPolicies\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string(), )),\"recommendedLabels\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string(), ))});\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({\"queue\":/*#__PURE__*/ l.ref<QueueDefs.QueueView>((() => QueueDefs.queueView) as any)});\n\nexport type $Output<B = l.BinaryData> = l.InferPayload<typeof $output, B>;\nexport type $OutputBody<B = l.BinaryData> = l.InferPayloadBody<typeof $output, B>;\n\n/** Create a new moderation queue. A queue with omitted or empty subjectTypes or reportTypes 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, [\"InvalidRecommendedPolicies\",\"ConflictingQueue\"]);\n\nexport { main };\n\nconst $lxm = $nsid;\n\ntype $lxm = typeof $lxm;\n\nexport { $lxm };\n"]}
|
|
@@ -18,13 +18,21 @@ type QueueView = {
|
|
|
18
18
|
*/
|
|
19
19
|
"subjectTypes"?: ("account" | "record" | "message" | "conversation" | l.UnknownString)[];
|
|
20
20
|
/**
|
|
21
|
-
* Collection name for record subjects
|
|
21
|
+
* Collection name for record subjects. Omit to accept every collection.
|
|
22
22
|
*/
|
|
23
23
|
"collection"?: l.NsidString;
|
|
24
24
|
/**
|
|
25
25
|
* Report reason types this queue accepts (fully qualified NSIDs)
|
|
26
26
|
*/
|
|
27
27
|
"reportTypes"?: (string)[];
|
|
28
|
+
/**
|
|
29
|
+
* Match any listed tag on the account submitting the report.
|
|
30
|
+
*/
|
|
31
|
+
"reporterTags"?: (string)[];
|
|
32
|
+
/**
|
|
33
|
+
* Match tags on the account that is being reported against. For record subjects, use the author account. Match any listed tag.
|
|
34
|
+
*/
|
|
35
|
+
"accountTags"?: (string)[];
|
|
28
36
|
/**
|
|
29
37
|
* Optional description of the queue
|
|
30
38
|
*/
|
|
@@ -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,CAAC;AACjC,OAAO,KAAK,QAAQ,MAAM,sBAAsB,CAAC;AAEjD,QAAA,MAAM,KAAK,2BAA2B,CAAC;AAEvC,KAAK,KAAK,GAAG,OAAO,KAAK,CAAC;AAE1B,OAAO,EAAE,KAAK,EAAE,CAAC;AAEjB,KAAK,SAAS,GAAG;IAAE,KAAK,CAAC,EAAE,kCAAkC,CAAC;IAE5D;;OAEG;IACH,IAAI,EAAC,MAAM,CAAC;IAEZ;;OAEG;IACH,MAAM,EAAC,MAAM,CAAC;IAEd;;OAEG;IACH,cAAc,CAAC,EAAC,CAAC,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,cAAc,GAAG,CAAC,CAAC,aAAa,CAAC,EAAE,CAAC;IAExF;;OAEG;IACH,YAAY,CAAC,EAAC,CAAC,CAAC,UAAU,CAAC;IAE3B;;OAEG;IACH,aAAa,CAAC,EAAC,CAAC,MAAM,CAAC,EAAE,CAAC;IAE1B;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AE,cAAc,EAAE,CAAC"}
|
|
@@ -5,7 +5,7 @@ import { l } from "@atproto/lex";
|
|
|
5
5
|
import * as TeamDefs from "../team/defs.defs.js";
|
|
6
6
|
const $nsid = "tools.ozone.queue.defs";
|
|
7
7
|
export { $nsid };
|
|
8
|
-
const queueView = /*#__PURE__*/ l.typedObject($nsid, "queueView", /*#__PURE__*/ l.object({ "id": /*#__PURE__*/ l.integer(), "name": /*#__PURE__*/ l.string(), "subjectTypes": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string())), "collection": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({ "format": "nsid" })), "reportTypes": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string())), "description": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()), "recommendedPolicies": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string())), "recommendedLabels": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string())), "createdBy": /*#__PURE__*/ l.string({ "format": "did" }), "createdAt": /*#__PURE__*/ l.string({ "format": "datetime" }), "updatedAt": /*#__PURE__*/ l.string({ "format": "datetime" }), "enabled": /*#__PURE__*/ l.boolean(), "deletedAt": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({ "format": "datetime" })), "stats": /*#__PURE__*/ l.ref((() => queueStats)) }));
|
|
8
|
+
const queueView = /*#__PURE__*/ l.typedObject($nsid, "queueView", /*#__PURE__*/ l.object({ "id": /*#__PURE__*/ l.integer(), "name": /*#__PURE__*/ l.string(), "subjectTypes": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string())), "collection": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({ "format": "nsid" })), "reportTypes": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string())), "reporterTags": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({ "minLength": 1 }), { "maxLength": 25 })), "accountTags": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({ "minLength": 1 }), { "maxLength": 25 })), "description": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()), "recommendedPolicies": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string())), "recommendedLabels": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string())), "createdBy": /*#__PURE__*/ l.string({ "format": "did" }), "createdAt": /*#__PURE__*/ l.string({ "format": "datetime" }), "updatedAt": /*#__PURE__*/ l.string({ "format": "datetime" }), "enabled": /*#__PURE__*/ l.boolean(), "deletedAt": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({ "format": "datetime" })), "stats": /*#__PURE__*/ l.ref((() => queueStats)) }));
|
|
9
9
|
export { queueView };
|
|
10
10
|
const queueStats = /*#__PURE__*/ l.typedObject($nsid, "queueStats", /*#__PURE__*/ l.object({ "pendingCount": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()), "closureTargetOverdueCount": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer({ "minimum": 0 })), "closureTargetMetCount": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer({ "minimum": 0 })), "closureTargetMissedCount": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer({ "minimum": 0 })), "closureTargetMetRate": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer({ "minimum": 0, "maximum": 100 })), "closedCount": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()), "actionedCount": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()), "acknowledgedCount": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()), "escalatedCount": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()), "inboundCount": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()), "labelActionCount": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()), "tagActionCount": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()), "takedownActionCount": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()), "ahtDurationSec": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()), "ahtSampleCount": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()), "resolutionDurationSec": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()), "resolutionSampleCount": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()), "actionRate": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()), "avgHandlingTimeSec": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()), "avgResolutionTimeSec": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()), "lastUpdated": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({ "format": "datetime" })) }));
|
|
11
11
|
export { queueStats };
|
|
@@ -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,CAAC;AACjC,OAAO,KAAK,QAAQ,MAAM,sBAAsB,CAAC;AAEjD,MAAM,KAAK,GAAG,wBAAwB,CAAC;AAIvC,OAAO,EAAE,KAAK,EAAE,CAAC;AAkEjB,MAAM,SAAS,GAAG,aAAa,CAAC,CAAC,CAAC,WAAW,CAAY,KAAK,EAAE,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAC,IAAI,EAAC,aAAa,CAAC,CAAC,CAAC,OAAO,EAAE,EAAC,MAAM,EAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,EAAC,cAAc,EAAC,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,C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UAAU,EAAC,CAAC,CAAC,EAAC,CAAC,CAAC,CAAC;AAE/pD,OAAO,EAAE,UAAU,EAAE,CAAC;AAWtB,MAAM,cAAc,GAAG,aAAa,CAAC,CAAC,CAAC,WAAW,CAAiB,KAAK,EAAE,gBAAgB,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAC,IAAI,EAAC,aAAa,CAAC,CAAC,CAAC,OAAO,EAAE,EAAC,KAAK,EAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAC,QAAQ,EAAC,KAAK,EAAC,CAAC,EAAC,WAAW,EAAC,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,GAAG,CAAkB,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAQ,CAAC,CAAC,EAAC,OAAO,EAAC,aAAa,CAAC,CAAC,CAAC,GAAG,CAAY,CAAC,GAAG,EAAE,CAAC,SAAS,CAAQ,CAAC,EAAC,SAAS,EAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAC,QAAQ,EAAC,UAAU,EAAC,CAAC,EAAC,OAAO,EAAC,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAC,QAAQ,EAAC,UAAU,EAAC,CAAC,CAAC,EAAC,CAAC,CAAC,CAAC;AAEzf,OAAO,EAAE,cAAc,EAAE,CAAC","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 = { $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\"?:(\"account\" | \"record\" | \"message\" | \"conversation\" | l.UnknownString)[];\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;\"createdAt\":l.DatetimeString;\"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\nexport type { QueueView };\n\nconst queueView = /*#__PURE__*/ l.typedObject<QueueView>($nsid, \"queueView\", /*#__PURE__*/ l.object({\"id\":/*#__PURE__*/ l.integer(),\"name\":/*#__PURE__*/ l.string(),\"subjectTypes\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string<{\"knownValues\":[\"account\",\"record\",\"message\",\"conversation\"]}>(), )),\"collection\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({\"format\":\"nsid\"})),\"reportTypes\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string(), )),\"description\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\"recommendedPolicies\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string(), )),\"recommendedLabels\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string(), )),\"createdBy\":/*#__PURE__*/ l.string({\"format\":\"did\"}),\"createdAt\":/*#__PURE__*/ l.string({\"format\":\"datetime\"}),\"updatedAt\":/*#__PURE__*/ l.string({\"format\":\"datetime\"}),\"enabled\":/*#__PURE__*/ l.boolean(),\"deletedAt\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({\"format\":\"datetime\"})),\"stats\":/*#__PURE__*/ l.ref<QueueStats>((() => queueStats) as any)}));\n\nexport { queueView };\n\ntype QueueStats = { $type?: \"tools.ozone.queue.defs#queueStats\";\n\n /**\n * Number of unmuted reports currently not closed.\n */\n \"pendingCount\"?:number;\n\n /**\n * Unmuted pending reports past their closure target.\n */\n \"closureTargetOverdueCount\"?:number;\n\n /**\n * Reports whose closure meets their closure target.\n */\n \"closureTargetMetCount\"?:number;\n\n /**\n * Reports whose closure exceeds their closure target.\n */\n \"closureTargetMissedCount\"?:number;\n\n /**\n * Percent of reports meeting their closure target.\n */\n \"closureTargetMetRate\"?:number;\n\n /**\n * Number of reports whose current closure falls within this UTC calendar day.\n */\n \"closedCount\"?:number;\n\n /**\n * Number of closures whose last report action is label, tag, or takedown.\n */\n \"actionedCount\"?:number;\n\n /**\n * Number of closures whose last report action is not label, tag, or takedown.\n */\n \"acknowledgedCount\"?:number;\n\n /**\n * Number of report escalation events during this UTC calendar day.\n */\n \"escalatedCount\"?:number;\n\n /**\n * Reports received in this queue during this UTC calendar day.\n */\n \"inboundCount\"?:number;\n\n /**\n * Closures whose last report action is a label event.\n */\n \"labelActionCount\"?:number;\n\n /**\n * Closures whose last report action is a tag event.\n */\n \"tagActionCount\"?:number;\n\n /**\n * Closures whose last report action is a takedown event.\n */\n \"takedownActionCount\"?:number;\n\n /**\n * Sum of report assignment-to-close seconds.\n */\n \"ahtDurationSec\"?:number;\n\n /**\n * Number of assigned closed-report samples in ahtDurationSec.\n */\n \"ahtSampleCount\"?:number;\n\n /**\n * Sum of report creation-to-close seconds.\n */\n \"resolutionDurationSec\"?:number;\n\n /**\n * Number of closed-report samples in resolutionDurationSec.\n */\n \"resolutionSampleCount\"?:number;\n\n /**\n * Percentage of closures actioned (actionedCount / closedCount * 100), rounded to nearest integer.\n */\n \"actionRate\"?:number;\n\n /**\n * Average handling time in seconds from report assignment to close.\n */\n \"avgHandlingTimeSec\"?:number;\n\n /**\n * Average resolution time in seconds from report creation to close.\n */\n \"avgResolutionTimeSec\"?:number;\n\n /**\n * When these statistics were last computed.\n */\n \"lastUpdated\"?:l.DatetimeString };\n\nexport type { QueueStats };\n\nconst queueStats = /*#__PURE__*/ l.typedObject<QueueStats>($nsid, \"queueStats\", /*#__PURE__*/ l.object({\"pendingCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"closureTargetOverdueCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer({\"minimum\":0})),\"closureTargetMetCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer({\"minimum\":0})),\"closureTargetMissedCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer({\"minimum\":0})),\"closureTargetMetRate\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer({\"minimum\":0,\"maximum\":100})),\"closedCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"actionedCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"acknowledgedCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"escalatedCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"inboundCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"labelActionCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"tagActionCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"takedownActionCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"ahtDurationSec\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"ahtSampleCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"resolutionDurationSec\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"resolutionSampleCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"actionRate\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"avgHandlingTimeSec\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"avgResolutionTimeSec\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"lastUpdated\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({\"format\":\"datetime\"}))}));\n\nexport { queueStats };\n\ntype AssignmentView = { $type?: \"tools.ozone.queue.defs#assignmentView\";\"id\":number;\"did\":l.DidString;\n\n /**\n * The moderator assigned to this queue\n */\n \"moderator\"?:TeamDefs.Member;\"queue\":QueueView;\"startAt\":l.DatetimeString;\"endAt\"?:l.DatetimeString };\n\nexport type { AssignmentView };\n\nconst assignmentView = /*#__PURE__*/ l.typedObject<AssignmentView>($nsid, \"assignmentView\", /*#__PURE__*/ l.object({\"id\":/*#__PURE__*/ l.integer(),\"did\":/*#__PURE__*/ l.string({\"format\":\"did\"}),\"moderator\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.ref<TeamDefs.Member>((() => TeamDefs.member) as any)),\"queue\":/*#__PURE__*/ l.ref<QueueView>((() => queueView) as any),\"startAt\":/*#__PURE__*/ l.string({\"format\":\"datetime\"}),\"endAt\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({\"format\":\"datetime\"}))}));\n\nexport { assignmentView };\n"]}
|
|
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,CAAC;AACjC,OAAO,KAAK,QAAQ,MAAM,sBAAsB,CAAC;AAEjD,MAAM,KAAK,GAAG,wBAAwB,CAAC;AAIvC,OAAO,EAAE,KAAK,EAAE,CAAC;AA4EjB,MAAM,SAAS,GAAG,aAAa,CAAC,CAAC,CAAC,WAAW,CAA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AC,aAAa,CAAC,CAAC,CAAC,GAAG,CAAY,CAAC,GAAG,EAAE,CAAC,SAAS,CAAQ,CAAC,EAAC,SAAS,EAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAC,QAAQ,EAAC,UAAU,EAAC,CAAC,EAAC,OAAO,EAAC,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAC,QAAQ,EAAC,UAAU,EAAC,CAAC,CAAC,EAAC,CAAC,CAAC,CAAC;AAEzf,OAAO,EAAE,cAAc,EAAE,CAAC","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 = { $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\"?:(\"account\" | \"record\" | \"message\" | \"conversation\" | l.UnknownString)[];\n\n /**\n * Collection name for record subjects. Omit to accept every collection.\n */\n \"collection\"?:l.NsidString;\n\n /**\n * Report reason types this queue accepts (fully qualified NSIDs)\n */\n \"reportTypes\"?:(string)[];\n\n /**\n * Match any listed tag on the account submitting the report.\n */\n \"reporterTags\"?:(string)[];\n\n /**\n * Match tags on the account that is being reported against. For record subjects, use the author account. Match any listed tag.\n */\n \"accountTags\"?:(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;\"createdAt\":l.DatetimeString;\"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\nexport type { QueueView };\n\nconst queueView = /*#__PURE__*/ l.typedObject<QueueView>($nsid, \"queueView\", /*#__PURE__*/ l.object({\"id\":/*#__PURE__*/ l.integer(),\"name\":/*#__PURE__*/ l.string(),\"subjectTypes\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string<{\"knownValues\":[\"account\",\"record\",\"message\",\"conversation\"]}>(), )),\"collection\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({\"format\":\"nsid\"})),\"reportTypes\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string(), )),\"reporterTags\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({\"minLength\":1}), {\"maxLength\":25})),\"accountTags\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({\"minLength\":1}), {\"maxLength\":25})),\"description\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\"recommendedPolicies\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string(), )),\"recommendedLabels\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string(), )),\"createdBy\":/*#__PURE__*/ l.string({\"format\":\"did\"}),\"createdAt\":/*#__PURE__*/ l.string({\"format\":\"datetime\"}),\"updatedAt\":/*#__PURE__*/ l.string({\"format\":\"datetime\"}),\"enabled\":/*#__PURE__*/ l.boolean(),\"deletedAt\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({\"format\":\"datetime\"})),\"stats\":/*#__PURE__*/ l.ref<QueueStats>((() => queueStats) as any)}));\n\nexport { queueView };\n\ntype QueueStats = { $type?: \"tools.ozone.queue.defs#queueStats\";\n\n /**\n * Number of unmuted reports currently not closed.\n */\n \"pendingCount\"?:number;\n\n /**\n * Unmuted pending reports past their closure target.\n */\n \"closureTargetOverdueCount\"?:number;\n\n /**\n * Reports whose closure meets their closure target.\n */\n \"closureTargetMetCount\"?:number;\n\n /**\n * Reports whose closure exceeds their closure target.\n */\n \"closureTargetMissedCount\"?:number;\n\n /**\n * Percent of reports meeting their closure target.\n */\n \"closureTargetMetRate\"?:number;\n\n /**\n * Number of reports whose current closure falls within this UTC calendar day.\n */\n \"closedCount\"?:number;\n\n /**\n * Number of closures whose last report action is label, tag, or takedown.\n */\n \"actionedCount\"?:number;\n\n /**\n * Number of closures whose last report action is not label, tag, or takedown.\n */\n \"acknowledgedCount\"?:number;\n\n /**\n * Number of report escalation events during this UTC calendar day.\n */\n \"escalatedCount\"?:number;\n\n /**\n * Reports received in this queue during this UTC calendar day.\n */\n \"inboundCount\"?:number;\n\n /**\n * Closures whose last report action is a label event.\n */\n \"labelActionCount\"?:number;\n\n /**\n * Closures whose last report action is a tag event.\n */\n \"tagActionCount\"?:number;\n\n /**\n * Closures whose last report action is a takedown event.\n */\n \"takedownActionCount\"?:number;\n\n /**\n * Sum of report assignment-to-close seconds.\n */\n \"ahtDurationSec\"?:number;\n\n /**\n * Number of assigned closed-report samples in ahtDurationSec.\n */\n \"ahtSampleCount\"?:number;\n\n /**\n * Sum of report creation-to-close seconds.\n */\n \"resolutionDurationSec\"?:number;\n\n /**\n * Number of closed-report samples in resolutionDurationSec.\n */\n \"resolutionSampleCount\"?:number;\n\n /**\n * Percentage of closures actioned (actionedCount / closedCount * 100), rounded to nearest integer.\n */\n \"actionRate\"?:number;\n\n /**\n * Average handling time in seconds from report assignment to close.\n */\n \"avgHandlingTimeSec\"?:number;\n\n /**\n * Average resolution time in seconds from report creation to close.\n */\n \"avgResolutionTimeSec\"?:number;\n\n /**\n * When these statistics were last computed.\n */\n \"lastUpdated\"?:l.DatetimeString };\n\nexport type { QueueStats };\n\nconst queueStats = /*#__PURE__*/ l.typedObject<QueueStats>($nsid, \"queueStats\", /*#__PURE__*/ l.object({\"pendingCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"closureTargetOverdueCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer({\"minimum\":0})),\"closureTargetMetCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer({\"minimum\":0})),\"closureTargetMissedCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer({\"minimum\":0})),\"closureTargetMetRate\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer({\"minimum\":0,\"maximum\":100})),\"closedCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"actionedCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"acknowledgedCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"escalatedCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"inboundCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"labelActionCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"tagActionCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"takedownActionCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"ahtDurationSec\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"ahtSampleCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"resolutionDurationSec\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"resolutionSampleCount\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"actionRate\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"avgHandlingTimeSec\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"avgResolutionTimeSec\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer()),\"lastUpdated\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({\"format\":\"datetime\"}))}));\n\nexport { queueStats };\n\ntype AssignmentView = { $type?: \"tools.ozone.queue.defs#assignmentView\";\"id\":number;\"did\":l.DidString;\n\n /**\n * The moderator assigned to this queue\n */\n \"moderator\"?:TeamDefs.Member;\"queue\":QueueView;\"startAt\":l.DatetimeString;\"endAt\"?:l.DatetimeString };\n\nexport type { AssignmentView };\n\nconst assignmentView = /*#__PURE__*/ l.typedObject<AssignmentView>($nsid, \"assignmentView\", /*#__PURE__*/ l.object({\"id\":/*#__PURE__*/ l.integer(),\"did\":/*#__PURE__*/ l.string({\"format\":\"did\"}),\"moderator\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.ref<TeamDefs.Member>((() => TeamDefs.member) as any)),\"queue\":/*#__PURE__*/ l.ref<QueueView>((() => queueView) as any),\"startAt\":/*#__PURE__*/ l.string({\"format\":\"datetime\"}),\"endAt\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({\"format\":\"datetime\"}))}));\n\nexport { assignmentView };\n"]}
|
|
@@ -10,6 +10,9 @@ export declare const $input: l.Payload<"application/json", l.ObjectSchema<{
|
|
|
10
10
|
pattern: l.RefSchema<l.Validator<SafelinkDefs.PatternType, SafelinkDefs.PatternType>>;
|
|
11
11
|
action: l.RefSchema<l.Validator<SafelinkDefs.ActionType, SafelinkDefs.ActionType>>;
|
|
12
12
|
reason: l.RefSchema<l.Validator<SafelinkDefs.ReasonType, SafelinkDefs.ReasonType>>;
|
|
13
|
+
source: l.OptionalSchema<l.WithDefaultSchema<l.StringSchema<{
|
|
14
|
+
readonly maxLength: 128;
|
|
15
|
+
}>>>;
|
|
13
16
|
comment: l.OptionalSchema<l.StringSchema<{}>>;
|
|
14
17
|
createdBy: l.OptionalSchema<l.StringSchema<{
|
|
15
18
|
readonly format: "did";
|
|
@@ -26,11 +29,14 @@ declare const main: l.Procedure<"tools.ozone.safelink.addRule", l.ParamsSchema<{
|
|
|
26
29
|
pattern: l.RefSchema<l.Validator<SafelinkDefs.PatternType, SafelinkDefs.PatternType>>;
|
|
27
30
|
action: l.RefSchema<l.Validator<SafelinkDefs.ActionType, SafelinkDefs.ActionType>>;
|
|
28
31
|
reason: l.RefSchema<l.Validator<SafelinkDefs.ReasonType, SafelinkDefs.ReasonType>>;
|
|
32
|
+
source: l.OptionalSchema<l.WithDefaultSchema<l.StringSchema<{
|
|
33
|
+
readonly maxLength: 128;
|
|
34
|
+
}>>>;
|
|
29
35
|
comment: l.OptionalSchema<l.StringSchema<{}>>;
|
|
30
36
|
createdBy: l.OptionalSchema<l.StringSchema<{
|
|
31
37
|
readonly format: "did";
|
|
32
38
|
}>>;
|
|
33
|
-
}>>, l.Payload<"application/json", l.RefSchema<l.Validator<SafelinkDefs.Event, SafelinkDefs.Event>>>, readonly ["InvalidUrl", "RuleAlreadyExists"]>;
|
|
39
|
+
}>>, l.Payload<"application/json", l.RefSchema<l.Validator<SafelinkDefs.Event, SafelinkDefs.Event>>>, readonly ["InvalidUrl", "RuleAlreadyExists", "RuleSourceConflict"]>;
|
|
34
40
|
export { main };
|
|
35
41
|
declare const $lxm = "tools.ozone.safelink.addRule";
|
|
36
42
|
type $lxm = typeof $lxm;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addRule.defs.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/safelink/addRule.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AACjC,OAAO,KAAK,YAAY,MAAM,gBAAgB,CAAC;AAE/C,QAAA,MAAM,KAAK,iCAAiC,CAAC;AAE7C,KAAK,KAAK,GAAG,OAAO,KAAK,CAAC;AAE1B,OAAO,EAAE,KAAK,EAAE,CAAC;AAEjB,eAAO,MAAM,OAAO,oBAA2B,CAAC;AAEhD,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,OAAO,CAAC,CAAC;AAEpD,eA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AO,IAAI,CAAC;AAExB,OAAO,EAAE,IAAI,EAAE,CAAC"}
|
|
@@ -6,10 +6,10 @@ import * as SafelinkDefs from "./defs.defs.js";
|
|
|
6
6
|
const $nsid = "tools.ozone.safelink.addRule";
|
|
7
7
|
export { $nsid };
|
|
8
8
|
export const $params = /*#__PURE__*/ l.params();
|
|
9
|
-
export const $input = /*#__PURE__*/ l.jsonPayload({ "url": /*#__PURE__*/ l.string(), "pattern": /*#__PURE__*/ l.ref((() => SafelinkDefs.patternType)), "action": /*#__PURE__*/ l.ref((() => SafelinkDefs.actionType)), "reason": /*#__PURE__*/ l.ref((() => SafelinkDefs.reasonType)), "comment": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()), "createdBy": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({ "format": "did" })) });
|
|
9
|
+
export const $input = /*#__PURE__*/ l.jsonPayload({ "url": /*#__PURE__*/ l.string(), "pattern": /*#__PURE__*/ l.ref((() => SafelinkDefs.patternType)), "action": /*#__PURE__*/ l.ref((() => SafelinkDefs.actionType)), "reason": /*#__PURE__*/ l.ref((() => SafelinkDefs.reasonType)), "source": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.string({ "maxLength": 128 }), "ozone/default")), "comment": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()), "createdBy": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({ "format": "did" })) });
|
|
10
10
|
export const $output = /*#__PURE__*/ l.payload("application/json", /*#__PURE__*/ l.ref((() => SafelinkDefs.event)));
|
|
11
11
|
/** Add a new URL safety rule */
|
|
12
|
-
const main = /*#__PURE__*/ l.procedure($nsid, $params, $input, $output, ["InvalidUrl", "RuleAlreadyExists"]);
|
|
12
|
+
const main = /*#__PURE__*/ l.procedure($nsid, $params, $input, $output, ["InvalidUrl", "RuleAlreadyExists", "RuleSourceConflict"]);
|
|
13
13
|
export { main };
|
|
14
14
|
const $lxm = $nsid;
|
|
15
15
|
export { $lxm };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addRule.defs.js","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/safelink/addRule.defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AACjC,OAAO,KAAK,YAAY,MAAM,gBAAgB,CAAC;AAE/C,MAAM,KAAK,GAAG,8BAA8B,CAAC;AAI7C,OAAO,EAAE,KAAK,EAAE,CAAC;AAEjB,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;AAIhD,MAAM,CAAC,MAAM,MAAM,GAAG,aAAa,CAAC,CAAC,CAAC,WAAW,CAAC,EAAC,KAAK,EAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,EAAC,SAAS,EAAC,aAAa,CAAC,CAAC,CAAC,GAAG,CAA2B,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC,WAAW,CAAQ,CAAC,EAAC,QAAQ,EAAC,aAAa,CAAC,CAAC,CAAC,GAAG,CAA0B,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC,UAAU,CAAQ,CAAC,EAAC,QAAQ,EAAC,aAAa,CAAC,CAAC,CAAC,GAAG,CAA0B,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC,UAAU,CAAQ,CAAC,EAAC,SAAS,EAAC,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,EAAC,WAAW,EAAC,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAC,QAAQ,EAAC,KAAK,EAAC,CAAC,CAAC,EAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"addRule.defs.js","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/safelink/addRule.defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AA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AAE,aAAa,CAAC,CAAC,CAAC,GAAG,CAAqB,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC,KAAK,CAAQ,CAAC,CAAC,CAAC;AAK/I,gCAAgC;AAChC,MAAM,IAAI,GAAG,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,YAAY,EAAC,mBAAmB,EAAC,oBAAoB,CAAC,CAAC,CAAC;AAEjI,OAAO,EAAE,IAAI,EAAE,CAAC;AAEhB,MAAM,IAAI,GAAG,KAAK,CAAC;AAInB,OAAO,EAAE,IAAI,EAAE,CAAC","sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from \"@atproto/lex\";\nimport * as SafelinkDefs from \"./defs.defs.js\";\n\nconst $nsid = \"tools.ozone.safelink.addRule\";\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({\"url\":/*#__PURE__*/ l.string(),\"pattern\":/*#__PURE__*/ l.ref<SafelinkDefs.PatternType>((() => SafelinkDefs.patternType) as any),\"action\":/*#__PURE__*/ l.ref<SafelinkDefs.ActionType>((() => SafelinkDefs.actionType) as any),\"reason\":/*#__PURE__*/ l.ref<SafelinkDefs.ReasonType>((() => SafelinkDefs.reasonType) as any),\"source\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.string({\"maxLength\":128}), \"ozone/default\")),\"comment\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\"createdBy\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({\"format\":\"did\"}))});\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(\"application/json\", /*#__PURE__*/ l.ref<SafelinkDefs.Event>((() => SafelinkDefs.event) as any));\n\nexport type $Output<B = l.BinaryData> = l.InferPayload<typeof $output, B>;\nexport type $OutputBody<B = l.BinaryData> = l.InferPayloadBody<typeof $output, B>;\n\n/** Add a new URL safety rule */\nconst main = /*#__PURE__*/ l.procedure($nsid, $params, $input, $output, [\"InvalidUrl\",\"RuleAlreadyExists\",\"RuleSourceConflict\"]);\n\nexport { main };\n\nconst $lxm = $nsid;\n\ntype $lxm = typeof $lxm;\n\nexport { $lxm };\n"]}
|
|
@@ -17,6 +17,10 @@ type Event = {
|
|
|
17
17
|
"pattern": PatternType;
|
|
18
18
|
"action": ActionType;
|
|
19
19
|
"reason": ReasonType;
|
|
20
|
+
/**
|
|
21
|
+
* Source of the decision
|
|
22
|
+
*/
|
|
23
|
+
"source"?: string;
|
|
20
24
|
/**
|
|
21
25
|
* DID of the user who created this rule
|
|
22
26
|
*/
|
|
@@ -55,7 +59,7 @@ declare const reasonType: l.StringSchema<{
|
|
|
55
59
|
knownValues: ["csam", "spam", "phishing", "none"];
|
|
56
60
|
}>;
|
|
57
61
|
export { reasonType };
|
|
58
|
-
/**
|
|
62
|
+
/** An active URL safety rule */
|
|
59
63
|
type UrlRule = {
|
|
60
64
|
$type?: "tools.ozone.safelink.defs#urlRule";
|
|
61
65
|
/**
|
|
@@ -65,6 +69,10 @@ type UrlRule = {
|
|
|
65
69
|
"pattern": PatternType;
|
|
66
70
|
"action": ActionType;
|
|
67
71
|
"reason": ReasonType;
|
|
72
|
+
/**
|
|
73
|
+
* Source of the rule
|
|
74
|
+
*/
|
|
75
|
+
"source"?: string;
|
|
68
76
|
/**
|
|
69
77
|
* Optional comment about the decision
|
|
70
78
|
*/
|
|
@@ -83,7 +91,7 @@ type UrlRule = {
|
|
|
83
91
|
"updatedAt": l.DatetimeString;
|
|
84
92
|
};
|
|
85
93
|
export type { UrlRule };
|
|
86
|
-
/**
|
|
94
|
+
/** An active URL safety rule */
|
|
87
95
|
declare const urlRule: l.TypedObjectSchema<"tools.ozone.safelink.defs#urlRule", l.Validator<UrlRule, UrlRule>>;
|
|
88
96
|
export { urlRule };
|
|
89
97
|
//# sourceMappingURL=defs.defs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defs.defs.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/safelink/defs.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AAEjC,QAAA,MAAM,KAAK,8BAA8B,CAAC;AAE1C,KAAK,KAAK,GAAG,OAAO,KAAK,CAAC;AAE1B,OAAO,EAAE,KAAK,EAAE,CAAC;AAEjB,wCAAwC;AACxC,KAAK,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,iCAAiC,CAAC;IAEvD;;OAEG;IACH,IAAI,EAAC,MAAM,CAAC;IAAA,WAAW,EAAC,SAAS,CAAC;IAElC;;OAEG;IACH,KAAK,EAAC,MAAM,CAAC;IAAA,SAAS,EAAC,WAAW,CAAC;IAAA,QAAQ,EAAC,UAAU,CAAC;IAAA,QAAQ,EAAC,UAAU,CAAC;IAE3E;;OAEG;IACH,WAAW,EAAC,CAAC,CAAC,SAAS,CAAC;IAAA,WAAW,EAAC,CAAC,CAAC,cAAc,CAAC;IAErD;;OAEG;IACH,SAAS,CAAC,EAAC,MAAM,CAAA;CAAE,CAAC;AAEtB,YAAY,EAAE,KAAK,EAAE,CAAC;AAEtB,wCAAwC;AACxC,QAAA,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"defs.defs.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/safelink/defs.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AAEjC,QAAA,MAAM,KAAK,8BAA8B,CAAC;AAE1C,KAAK,KAAK,GAAG,OAAO,KAAK,CAAC;AAE1B,OAAO,E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C;AAEtB,KAAK,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,GAAG,CAAC,CAAC,aAAa,CAAC;AAE1E,YAAY,EAAE,UAAU,EAAE,CAAC;AAE3B,QAAA,MAAM,UAAU;;EAA8E,CAAC;AAE/F,OAAO,EAAE,UAAU,EAAE,CAAC;AAEtB,gCAAgC;AAChC,KAAK,OAAO,GAAG;IAAE,KAAK,CAAC,EAAE,mCAAmC,CAAC;IAE3D;;OAEG;IACH,KAAK,EAAC,MAAM,CAAC;IAAA,SAAS,EAAC,WAAW,CAAC;IAAA,QAAQ,EAAC,UAAU,CAAC;IAAA,QAAQ,EAAC,UAAU,CAAC;IAE3E;;OAEG;IACH,QAAQ,CAAC,EAAC,MAAM,CAAC;IAEjB;;OAEG;IACH,SAAS,CAAC,EAAC,MAAM,CAAC;IAElB;;OAEG;IACH,WAAW,EAAC,CAAC,CAAC,SAAS,CAAC;IAExB;;OAEG;IACH,WAAW,EAAC,CAAC,CAAC,cAAc,CAAC;IAE7B;;OAEG;IACH,WAAW,EAAC,CAAC,CAAC,cAAc,CAAA;CAAE,CAAC;AAEjC,YAAY,EAAE,OAAO,EAAE,CAAC;AAExB,gCAAgC;AAChC,QAAA,MAAM,OAAO,yFAAkpB,CAAC;AAEhqB,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -5,7 +5,7 @@ import { l } from "@atproto/lex";
|
|
|
5
5
|
const $nsid = "tools.ozone.safelink.defs";
|
|
6
6
|
export { $nsid };
|
|
7
7
|
/** An event for URL safety decisions */
|
|
8
|
-
const event = /*#__PURE__*/ l.typedObject($nsid, "event", /*#__PURE__*/ l.object({ "id": /*#__PURE__*/ l.integer(), "eventType": /*#__PURE__*/ l.ref((() => eventType)), "url": /*#__PURE__*/ l.string(), "pattern": /*#__PURE__*/ l.ref((() => patternType)), "action": /*#__PURE__*/ l.ref((() => actionType)), "reason": /*#__PURE__*/ l.ref((() => reasonType)), "createdBy": /*#__PURE__*/ l.string({ "format": "did" }), "createdAt": /*#__PURE__*/ l.string({ "format": "datetime" }), "comment": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()) }));
|
|
8
|
+
const event = /*#__PURE__*/ l.typedObject($nsid, "event", /*#__PURE__*/ l.object({ "id": /*#__PURE__*/ l.integer(), "eventType": /*#__PURE__*/ l.ref((() => eventType)), "url": /*#__PURE__*/ l.string(), "pattern": /*#__PURE__*/ l.ref((() => patternType)), "action": /*#__PURE__*/ l.ref((() => actionType)), "reason": /*#__PURE__*/ l.ref((() => reasonType)), "source": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.string(), "ozone/default")), "createdBy": /*#__PURE__*/ l.string({ "format": "did" }), "createdAt": /*#__PURE__*/ l.string({ "format": "datetime" }), "comment": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()) }));
|
|
9
9
|
export { event };
|
|
10
10
|
const eventType = /*#__PURE__*/ l.string();
|
|
11
11
|
export { eventType };
|
|
@@ -15,7 +15,7 @@ const actionType = /*#__PURE__*/ l.string();
|
|
|
15
15
|
export { actionType };
|
|
16
16
|
const reasonType = /*#__PURE__*/ l.string();
|
|
17
17
|
export { reasonType };
|
|
18
|
-
/**
|
|
19
|
-
const urlRule = /*#__PURE__*/ l.typedObject($nsid, "urlRule", /*#__PURE__*/ l.object({ "url": /*#__PURE__*/ l.string(), "pattern": /*#__PURE__*/ l.ref((() => patternType)), "action": /*#__PURE__*/ l.ref((() => actionType)), "reason": /*#__PURE__*/ l.ref((() => reasonType)), "comment": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()), "createdBy": /*#__PURE__*/ l.string({ "format": "did" }), "createdAt": /*#__PURE__*/ l.string({ "format": "datetime" }), "updatedAt": /*#__PURE__*/ l.string({ "format": "datetime" }) }));
|
|
18
|
+
/** An active URL safety rule */
|
|
19
|
+
const urlRule = /*#__PURE__*/ l.typedObject($nsid, "urlRule", /*#__PURE__*/ l.object({ "url": /*#__PURE__*/ l.string(), "pattern": /*#__PURE__*/ l.ref((() => patternType)), "action": /*#__PURE__*/ l.ref((() => actionType)), "reason": /*#__PURE__*/ l.ref((() => reasonType)), "source": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.string(), "ozone/default")), "comment": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()), "createdBy": /*#__PURE__*/ l.string({ "format": "did" }), "createdAt": /*#__PURE__*/ l.string({ "format": "datetime" }), "updatedAt": /*#__PURE__*/ l.string({ "format": "datetime" }) }));
|
|
20
20
|
export { urlRule };
|
|
21
21
|
//# sourceMappingURL=defs.defs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defs.defs.js","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/safelink/defs.defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AAEjC,MAAM,KAAK,GAAG,2BAA2B,CAAC;AAI1C,OAAO,EAAE,KAAK,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"defs.defs.js","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/safelink/defs.defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AAEjC,MAAM,KAAK,GAAG,2BAA2B,CAAC;AAI1C,OAAO,EAAE,KAAK,EAAE,CAAC;AAgCjB,wCAAwC;AACxC,MAAM,KAAK,GAAG,aAAa,CAAC,CAAC,CAAC,WAAW,CAAQ,KAAK,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAC,IAAI,EAAC,aAAa,CAAC,CAAC,CAAC,OAAO,EAAE,EAAC,WAAW,EAAC,aAAa,CAAC,CAAC,CAAC,GAAG,CAAY,CAAC,GAAG,EAAE,CAAC,SAAS,CAAQ,CAAC,EAAC,KAAK,EAAC,aAAa,CAAC,CAAC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};\n\n/** An event for URL safety decisions */\ntype Event = { $type?: \"tools.ozone.safelink.defs#event\";\n\n /**\n * Auto-incrementing row ID\n */\n \"id\":number;\"eventType\":EventType;\n\n /**\n * The URL that this rule applies to\n */\n \"url\":string;\"pattern\":PatternType;\"action\":ActionType;\"reason\":ReasonType;\n\n /**\n * Source of the decision\n */\n \"source\"?:string;\n\n /**\n * DID of the user who created this rule\n */\n \"createdBy\":l.DidString;\"createdAt\":l.DatetimeString;\n\n /**\n * Optional comment about the decision\n */\n \"comment\"?:string };\n\nexport type { Event };\n\n/** An event for URL safety decisions */\nconst event = /*#__PURE__*/ l.typedObject<Event>($nsid, \"event\", /*#__PURE__*/ l.object({\"id\":/*#__PURE__*/ l.integer(),\"eventType\":/*#__PURE__*/ l.ref<EventType>((() => eventType) as any),\"url\":/*#__PURE__*/ l.string(),\"pattern\":/*#__PURE__*/ l.ref<PatternType>((() => patternType) as any),\"action\":/*#__PURE__*/ l.ref<ActionType>((() => actionType) as any),\"reason\":/*#__PURE__*/ l.ref<ReasonType>((() => reasonType) as any),\"source\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.string(), \"ozone/default\")),\"createdBy\":/*#__PURE__*/ l.string({\"format\":\"did\"}),\"createdAt\":/*#__PURE__*/ l.string({\"format\":\"datetime\"}),\"comment\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string())}));\n\nexport { event };\n\ntype EventType = \"addRule\" | \"updateRule\" | \"removeRule\" | l.UnknownString;\n\nexport type { EventType };\n\nconst eventType = /*#__PURE__*/ l.string<{\"knownValues\":[\"addRule\",\"updateRule\",\"removeRule\"]}>();\n\nexport { eventType };\n\ntype PatternType = \"domain\" | \"url\" | l.UnknownString;\n\nexport type { PatternType };\n\nconst patternType = /*#__PURE__*/ l.string<{\"knownValues\":[\"domain\",\"url\"]}>();\n\nexport { patternType };\n\ntype ActionType = \"block\" | \"warn\" | \"whitelist\" | l.UnknownString;\n\nexport type { ActionType };\n\nconst actionType = /*#__PURE__*/ l.string<{\"knownValues\":[\"block\",\"warn\",\"whitelist\"]}>();\n\nexport { actionType };\n\ntype ReasonType = \"csam\" | \"spam\" | \"phishing\" | \"none\" | l.UnknownString;\n\nexport type { ReasonType };\n\nconst reasonType = /*#__PURE__*/ l.string<{\"knownValues\":[\"csam\",\"spam\",\"phishing\",\"none\"]}>();\n\nexport { reasonType };\n\n/** An active URL safety rule */\ntype UrlRule = { $type?: \"tools.ozone.safelink.defs#urlRule\";\n\n /**\n * The URL or domain to apply the rule to\n */\n \"url\":string;\"pattern\":PatternType;\"action\":ActionType;\"reason\":ReasonType;\n\n /**\n * Source of the rule\n */\n \"source\"?:string;\n\n /**\n * Optional comment about the decision\n */\n \"comment\"?:string;\n\n /**\n * DID of the user added the rule.\n */\n \"createdBy\":l.DidString;\n\n /**\n * Timestamp when the rule was created\n */\n \"createdAt\":l.DatetimeString;\n\n /**\n * Timestamp when the rule was last updated\n */\n \"updatedAt\":l.DatetimeString };\n\nexport type { UrlRule };\n\n/** An active URL safety rule */\nconst urlRule = /*#__PURE__*/ l.typedObject<UrlRule>($nsid, \"urlRule\", /*#__PURE__*/ l.object({\"url\":/*#__PURE__*/ l.string(),\"pattern\":/*#__PURE__*/ l.ref<PatternType>((() => patternType) as any),\"action\":/*#__PURE__*/ l.ref<ActionType>((() => actionType) as any),\"reason\":/*#__PURE__*/ l.ref<ReasonType>((() => reasonType) as any),\"source\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.string(), \"ozone/default\")),\"comment\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\"createdBy\":/*#__PURE__*/ l.string({\"format\":\"did\"}),\"createdAt\":/*#__PURE__*/ l.string({\"format\":\"datetime\"}),\"updatedAt\":/*#__PURE__*/ l.string({\"format\":\"datetime\"})}));\n\nexport { urlRule };\n"]}
|
|
@@ -8,6 +8,9 @@ export type $Params = l.InferOutput<typeof $params>;
|
|
|
8
8
|
export declare const $input: l.Payload<"application/json", l.ObjectSchema<{
|
|
9
9
|
url: l.StringSchema<{}>;
|
|
10
10
|
pattern: l.RefSchema<l.Validator<SafelinkDefs.PatternType, SafelinkDefs.PatternType>>;
|
|
11
|
+
source: l.OptionalSchema<l.WithDefaultSchema<l.StringSchema<{
|
|
12
|
+
readonly maxLength: 128;
|
|
13
|
+
}>>>;
|
|
11
14
|
comment: l.OptionalSchema<l.StringSchema<{}>>;
|
|
12
15
|
createdBy: l.OptionalSchema<l.StringSchema<{
|
|
13
16
|
readonly format: "did";
|
|
@@ -22,6 +25,9 @@ export type $OutputBody<B = l.BinaryData> = l.InferPayloadBody<typeof $output, B
|
|
|
22
25
|
declare const main: l.Procedure<"tools.ozone.safelink.removeRule", l.ParamsSchema<{}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
23
26
|
url: l.StringSchema<{}>;
|
|
24
27
|
pattern: l.RefSchema<l.Validator<SafelinkDefs.PatternType, SafelinkDefs.PatternType>>;
|
|
28
|
+
source: l.OptionalSchema<l.WithDefaultSchema<l.StringSchema<{
|
|
29
|
+
readonly maxLength: 128;
|
|
30
|
+
}>>>;
|
|
25
31
|
comment: l.OptionalSchema<l.StringSchema<{}>>;
|
|
26
32
|
createdBy: l.OptionalSchema<l.StringSchema<{
|
|
27
33
|
readonly format: "did";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"removeRule.defs.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/safelink/removeRule.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AACjC,OAAO,KAAK,YAAY,MAAM,gBAAgB,CAAC;AAE/C,QAAA,MAAM,KAAK,oCAAoC,CAAC;AAEhD,KAAK,KAAK,GAAG,OAAO,KAAK,CAAC;AAE1B,OAAO,EAAE,KAAK,EAAE,CAAC;AAEjB,eAAO,MAAM,OAAO,oBAA2B,CAAC;AAEhD,MAAM,MAAM,OAAO,GAAG,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,MAAM,IAAI,oCAAQ,CAAC;AAEnB,KAAK,IAAI,GAAG,OAAO,IAAI,CAAC;AAExB,OAAO,EAAE,IAAI,EAAE,CAAC"}
|
|
@@ -6,7 +6,7 @@ import * as SafelinkDefs from "./defs.defs.js";
|
|
|
6
6
|
const $nsid = "tools.ozone.safelink.removeRule";
|
|
7
7
|
export { $nsid };
|
|
8
8
|
export const $params = /*#__PURE__*/ l.params();
|
|
9
|
-
export const $input = /*#__PURE__*/ l.jsonPayload({ "url": /*#__PURE__*/ l.string(), "pattern": /*#__PURE__*/ l.ref((() => SafelinkDefs.patternType)), "comment": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()), "createdBy": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({ "format": "did" })) });
|
|
9
|
+
export const $input = /*#__PURE__*/ l.jsonPayload({ "url": /*#__PURE__*/ l.string(), "pattern": /*#__PURE__*/ l.ref((() => SafelinkDefs.patternType)), "source": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.string({ "maxLength": 128 }), "ozone/default")), "comment": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()), "createdBy": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({ "format": "did" })) });
|
|
10
10
|
export const $output = /*#__PURE__*/ l.payload("application/json", /*#__PURE__*/ l.ref((() => SafelinkDefs.event)));
|
|
11
11
|
/** Remove an existing URL safety rule */
|
|
12
12
|
const main = /*#__PURE__*/ l.procedure($nsid, $params, $input, $output, ["RuleNotFound"]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"removeRule.defs.js","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/safelink/removeRule.defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AACjC,OAAO,KAAK,YAAY,MAAM,gBAAgB,CAAC;AAE/C,MAAM,KAAK,GAAG,iCAAiC,CAAC;AAIhD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,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAC,WAAW,EAAC,GAAG,EAAC,CAAC,EAAE,eAAe,CAAC,CAAC,EAAC,SAAS,EAAC,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,EAAC,WAAW,EAAC,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAC,QAAQ,EAAC,KAAK,EAAC,CAAC,CAAC,EAAC,CAAC,CAAC;AAK5b,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,kBAAkB,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,CAAqB,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC,KAAK,CAAQ,CAAC,CAAC,CAAC;AAK/I,yCAAyC;AACzC,MAAM,IAAI,GAAG,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,cAAc,CAAC,CAAC,CAAC;AAE1F,OAAO,EAAE,IAAI,EAAE,CAAC;AAEhB,MAAM,IAAI,GAAG,KAAK,CAAC;AAInB,OAAO,EAAE,IAAI,EAAE,CAAC","sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from \"@atproto/lex\";\nimport * as SafelinkDefs from \"./defs.defs.js\";\n\nconst $nsid = \"tools.ozone.safelink.removeRule\";\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({\"url\":/*#__PURE__*/ l.string(),\"pattern\":/*#__PURE__*/ l.ref<SafelinkDefs.PatternType>((() => SafelinkDefs.patternType) as any),\"source\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.string({\"maxLength\":128}), \"ozone/default\")),\"comment\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\"createdBy\":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({\"format\":\"did\"}))});\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(\"application/json\", /*#__PURE__*/ l.ref<SafelinkDefs.Event>((() => SafelinkDefs.event) as any));\n\nexport type $Output<B = l.BinaryData> = l.InferPayload<typeof $output, B>;\nexport type $OutputBody<B = l.BinaryData> = l.InferPayloadBody<typeof $output, B>;\n\n/** Remove an existing URL safety rule */\nconst main = /*#__PURE__*/ l.procedure($nsid, $params, $input, $output, [\"RuleNotFound\"]);\n\nexport { main };\n\nconst $lxm = $nsid;\n\ntype $lxm = typeof $lxm;\n\nexport { $lxm };\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"syncSource.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/safelink/syncSource.ts"],"names":[],"mappings":"AAIA,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,IAAI,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { l } from "@atproto/lex";
|
|
2
|
+
import * as SafelinkDefs from "./defs.defs.js";
|
|
3
|
+
declare const $nsid = "tools.ozone.safelink.syncSource";
|
|
4
|
+
type $nsid = typeof $nsid;
|
|
5
|
+
export { $nsid };
|
|
6
|
+
export declare const $params: l.ParamsSchema<{}>;
|
|
7
|
+
export type $Params = l.InferOutput<typeof $params>;
|
|
8
|
+
export declare const $input: l.Payload<"application/json", l.ObjectSchema<{
|
|
9
|
+
source: l.StringSchema<{
|
|
10
|
+
readonly maxLength: 128;
|
|
11
|
+
}>;
|
|
12
|
+
rules: l.ArraySchema<l.RefSchema<l.Validator<SourceRule, SourceRule>>>;
|
|
13
|
+
}>>;
|
|
14
|
+
export type $Input<B = l.BinaryData> = l.InferPayload<typeof $input, B>;
|
|
15
|
+
export type $InputBody<B = l.BinaryData> = l.InferPayloadBody<typeof $input, B>;
|
|
16
|
+
export declare const $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
17
|
+
added: l.IntegerSchema;
|
|
18
|
+
updated: l.IntegerSchema;
|
|
19
|
+
removed: l.IntegerSchema;
|
|
20
|
+
events: l.IntegerSchema;
|
|
21
|
+
}>>;
|
|
22
|
+
export type $Output<B = l.BinaryData> = l.InferPayload<typeof $output, B>;
|
|
23
|
+
export type $OutputBody<B = l.BinaryData> = l.InferPayloadBody<typeof $output, B>;
|
|
24
|
+
/** Replace stored rules for one source from a complete snapshot. Existing rules owned by another source remain unchanged. */
|
|
25
|
+
declare const main: l.Procedure<"tools.ozone.safelink.syncSource", l.ParamsSchema<{}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
26
|
+
source: l.StringSchema<{
|
|
27
|
+
readonly maxLength: 128;
|
|
28
|
+
}>;
|
|
29
|
+
rules: l.ArraySchema<l.RefSchema<l.Validator<SourceRule, SourceRule>>>;
|
|
30
|
+
}>>, l.Payload<"application/json", l.ObjectSchema<{
|
|
31
|
+
added: l.IntegerSchema;
|
|
32
|
+
updated: l.IntegerSchema;
|
|
33
|
+
removed: l.IntegerSchema;
|
|
34
|
+
events: l.IntegerSchema;
|
|
35
|
+
}>>, undefined>;
|
|
36
|
+
export { main };
|
|
37
|
+
declare const $lxm = "tools.ozone.safelink.syncSource";
|
|
38
|
+
type $lxm = typeof $lxm;
|
|
39
|
+
export { $lxm };
|
|
40
|
+
type SourceRule = {
|
|
41
|
+
$type?: "tools.ozone.safelink.syncSource#sourceRule";
|
|
42
|
+
"url": string;
|
|
43
|
+
"pattern": SafelinkDefs.PatternType;
|
|
44
|
+
"action": SafelinkDefs.ActionType;
|
|
45
|
+
"reason": SafelinkDefs.ReasonType;
|
|
46
|
+
};
|
|
47
|
+
export type { SourceRule };
|
|
48
|
+
declare const sourceRule: l.TypedObjectSchema<"tools.ozone.safelink.syncSource#sourceRule", l.Validator<SourceRule, SourceRule>>;
|
|
49
|
+
export { sourceRule };
|
|
50
|
+
//# sourceMappingURL=syncSource.defs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"syncSource.defs.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/safelink/syncSource.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AACjC,OAAO,KAAK,YAAY,MAAM,gBAAgB,CAAC;AAE/C,QAAA,MAAM,KAAK,oCAAoC,CAAC;AAEhD,KAAK,KAAK,GAAG,OAAO,KAAK,CAAC;AAE1B,OAAO,EAAE,KAAK,EAAE,CAAC;AAEjB,eAAO,MAAM,OAAO,oBAA2B,CAAC;AAEhD,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,OAAO,CAAC,CAAC;AAEpD,eAAO,MAAM,MAAM;;;;;GAAgL,CAAC;AAEpM,MAAM,MAAM,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,YAAY,CAAC,OAAO,MAAM,EAAE,CAAC,CAAC,CAAC;AACxE,MAAM,MAAM,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,gBAAgB,CAAC,OAAO,MAAM,EAAE,CAAC,CAAC,CAAC;AAEhF,eAAO,MAAM,OAAO;;;;;GAA8K,CAAC;AAEnM,MAAM,MAAM,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,YAAY,CAAC,OAAO,OAAO,EAAE,CAAC,CAAC,CAAC;AAC1E,MAAM,MAAM,WAAW,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,gBAAgB,CAAC,OAAO,OAAO,EAAE,CAAC,CAAC,CAAC;AAElF,6HAA6H;AAC7H,QAAA,MAAM,IAAI;;;;;;;;;;eAA6D,CAAC;AAExE,OAAO,EAAE,IAAI,EAAE,CAAC;AAEhB,QAAA,MAAM,IAAI,oCAAQ,CAAC;AAEnB,KAAK,IAAI,GAAG,OAAO,IAAI,CAAC;AAExB,OAAO,EAAE,IAAI,EAAE,CAAC;AAEhB,KAAK,UAAU,GAAG;IAAE,KAAK,CAAC,EAAE,4CAA4C,CAAC;IAAA,KAAK,EAAC,MAAM,CAAC;IAAA,SAAS,EAAC,YAAY,CAAC,WAAW,CAAC;IAAA,QAAQ,EAAC,YAAY,CAAC,UAAU,CAAC;IAAA,QAAQ,EAAC,YAAY,CAAC,UAAU,CAAA;CAAE,CAAC;AAE7L,YAAY,EAAE,UAAU,EAAE,CAAC;AAE3B,QAAA,MAAM,UAAU,wGAAsZ,CAAC;AAEva,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import { l } from "@atproto/lex";
|
|
5
|
+
import * as SafelinkDefs from "./defs.defs.js";
|
|
6
|
+
const $nsid = "tools.ozone.safelink.syncSource";
|
|
7
|
+
export { $nsid };
|
|
8
|
+
export const $params = /*#__PURE__*/ l.params();
|
|
9
|
+
export const $input = /*#__PURE__*/ l.jsonPayload({ "source": /*#__PURE__*/ l.string({ "maxLength": 128 }), "rules": /*#__PURE__*/ l.array(/*#__PURE__*/ l.ref((() => sourceRule))) });
|
|
10
|
+
export const $output = /*#__PURE__*/ l.jsonPayload({ "added": /*#__PURE__*/ l.integer(), "updated": /*#__PURE__*/ l.integer(), "removed": /*#__PURE__*/ l.integer(), "events": /*#__PURE__*/ l.integer() });
|
|
11
|
+
/** Replace stored rules for one source from a complete snapshot. Existing rules owned by another source remain unchanged. */
|
|
12
|
+
const main = /*#__PURE__*/ l.procedure($nsid, $params, $input, $output);
|
|
13
|
+
export { main };
|
|
14
|
+
const $lxm = $nsid;
|
|
15
|
+
export { $lxm };
|
|
16
|
+
const sourceRule = /*#__PURE__*/ l.typedObject($nsid, "sourceRule", /*#__PURE__*/ l.object({ "url": /*#__PURE__*/ l.string(), "pattern": /*#__PURE__*/ l.ref((() => SafelinkDefs.patternType)), "action": /*#__PURE__*/ l.ref((() => SafelinkDefs.actionType)), "reason": /*#__PURE__*/ l.ref((() => SafelinkDefs.reasonType)) }));
|
|
17
|
+
export { sourceRule };
|
|
18
|
+
//# sourceMappingURL=syncSource.defs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"syncSource.defs.js","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/safelink/syncSource.defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AACjC,OAAO,KAAK,YAAY,MAAM,gBAAgB,CAAC;AAE/C,MAAM,KAAK,GAAG,iCAAiC,CAAC;AAIhD,OAAO,EAAE,KAAK,EAAE,CAAC;AAEjB,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;AAIhD,MAAM,CAAC,MAAM,MAAM,GAAG,aAAa,CAAC,CAAC,CAAC,WAAW,CAAC,EAAC,QAAQ,EAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAC,WAAW,EAAC,GAAG,EAAC,CAAC,EAAC,OAAO,EAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,GAAG,CAAa,CAAC,GAAG,EAAE,CAAC,UAAU,CAAQ,CAAC,CAAG,EAAC,CAAC,CAAC;AAKpM,MAAM,CAAC,MAAM,OAAO,GAAG,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.syncSource\";\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({\"source\":/*#__PURE__*/ l.string({\"maxLength\":128}),\"rules\":/*#__PURE__*/ l.array(/*#__PURE__*/ l.ref<SourceRule>((() => sourceRule) as any), )});\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({\"added\":/*#__PURE__*/ l.integer(),\"updated\":/*#__PURE__*/ l.integer(),\"removed\":/*#__PURE__*/ l.integer(),\"events\":/*#__PURE__*/ l.integer()});\n\nexport type $Output<B = l.BinaryData> = l.InferPayload<typeof $output, B>;\nexport type $OutputBody<B = l.BinaryData> = l.InferPayloadBody<typeof $output, B>;\n\n/** Replace stored rules for one source from a complete snapshot. Existing rules owned by another source remain unchanged. */\nconst main = /*#__PURE__*/ l.procedure($nsid, $params, $input, $output);\n\nexport { main };\n\nconst $lxm = $nsid;\n\ntype $lxm = typeof $lxm;\n\nexport { $lxm };\n\ntype SourceRule = { $type?: \"tools.ozone.safelink.syncSource#sourceRule\";\"url\":string;\"pattern\":SafelinkDefs.PatternType;\"action\":SafelinkDefs.ActionType;\"reason\":SafelinkDefs.ReasonType };\n\nexport type { SourceRule };\n\nconst sourceRule = /*#__PURE__*/ l.typedObject<SourceRule>($nsid, \"sourceRule\", /*#__PURE__*/ l.object({\"url\":/*#__PURE__*/ l.string(),\"pattern\":/*#__PURE__*/ l.ref<SafelinkDefs.PatternType>((() => SafelinkDefs.patternType) as any),\"action\":/*#__PURE__*/ l.ref<SafelinkDefs.ActionType>((() => SafelinkDefs.actionType) as any),\"reason\":/*#__PURE__*/ l.ref<SafelinkDefs.ReasonType>((() => SafelinkDefs.reasonType) as any)}));\n\nexport { sourceRule };\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"syncSource.js","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/safelink/syncSource.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,IAAI,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC","sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * from \"./syncSource.defs.js\";\nexport { main as default } from \"./syncSource.defs.js\";\n"]}
|
|
@@ -10,6 +10,9 @@ export declare const $input: l.Payload<"application/json", l.ObjectSchema<{
|
|
|
10
10
|
pattern: l.RefSchema<l.Validator<SafelinkDefs.PatternType, SafelinkDefs.PatternType>>;
|
|
11
11
|
action: l.RefSchema<l.Validator<SafelinkDefs.ActionType, SafelinkDefs.ActionType>>;
|
|
12
12
|
reason: l.RefSchema<l.Validator<SafelinkDefs.ReasonType, SafelinkDefs.ReasonType>>;
|
|
13
|
+
source: l.OptionalSchema<l.WithDefaultSchema<l.StringSchema<{
|
|
14
|
+
readonly maxLength: 128;
|
|
15
|
+
}>>>;
|
|
13
16
|
comment: l.OptionalSchema<l.StringSchema<{}>>;
|
|
14
17
|
createdBy: l.OptionalSchema<l.StringSchema<{
|
|
15
18
|
readonly format: "did";
|
|
@@ -26,11 +29,14 @@ declare const main: l.Procedure<"tools.ozone.safelink.updateRule", l.ParamsSchem
|
|
|
26
29
|
pattern: l.RefSchema<l.Validator<SafelinkDefs.PatternType, SafelinkDefs.PatternType>>;
|
|
27
30
|
action: l.RefSchema<l.Validator<SafelinkDefs.ActionType, SafelinkDefs.ActionType>>;
|
|
28
31
|
reason: l.RefSchema<l.Validator<SafelinkDefs.ReasonType, SafelinkDefs.ReasonType>>;
|
|
32
|
+
source: l.OptionalSchema<l.WithDefaultSchema<l.StringSchema<{
|
|
33
|
+
readonly maxLength: 128;
|
|
34
|
+
}>>>;
|
|
29
35
|
comment: l.OptionalSchema<l.StringSchema<{}>>;
|
|
30
36
|
createdBy: l.OptionalSchema<l.StringSchema<{
|
|
31
37
|
readonly format: "did";
|
|
32
38
|
}>>;
|
|
33
|
-
}>>, l.Payload<"application/json", l.RefSchema<l.Validator<SafelinkDefs.Event, SafelinkDefs.Event>>>, readonly ["RuleNotFound"]>;
|
|
39
|
+
}>>, l.Payload<"application/json", l.RefSchema<l.Validator<SafelinkDefs.Event, SafelinkDefs.Event>>>, readonly ["RuleNotFound", "RuleSourceConflict"]>;
|
|
34
40
|
export { main };
|
|
35
41
|
declare const $lxm = "tools.ozone.safelink.updateRule";
|
|
36
42
|
type $lxm = typeof $lxm;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateRule.defs.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/safelink/updateRule.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AACjC,OAAO,KAAK,YAAY,MAAM,gBAAgB,CAAC;AAE/C,QAAA,MAAM,KAAK,oCAAoC,CAAC;AAEhD,KAAK,KAAK,GAAG,OAAO,KAAK,CAAC;AAE1B,OAAO,EAAE,KAAK,EAAE,CAAC;AAEjB,eAAO,MAAM,OAAO,oBAA2B,CAAC;AAEhD,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,OAAO,CAAC,CAAC;AAEpD,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"updateRule.defs.d.ts","sourceRoot":"","sources":["../../../../../src/lexicons/tools/ozone/safelink/updateRule.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AACjC,OAAO,KAAK,YAAY,MAAM,gBAAgB,CAAC;AAE/C,QAAA,MAAM,KAAK,oCAAoC,CAAC;AAEhD,KAAK,KAAK,GAAG,OAAO,KAAK,CAAC;AAE1B,OAAO,EAAE,KAAK,EAAE,CAAC;AAEjB,eAAO,MAAM,OAAO,oBAA2B,CAAC;AAEhD,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,OAAO,CAAC,CAAC;AAEpD,eAAO,MAAM,MAAM;;;;;;;;;;;;GAAomB,CAAC;AAExnB,MAAM,MAAM,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,YAAY,CAAC,OAAO,MAAM,EAAE,CAAC,CAAC,CAAC;AACxE,MAAM,MAAM,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,gBAAgB,CAAC,OAAO,MAAM,EAAE,CAAC,CAAC,CAAC;AAEhF,eAAO,MAAM,OAAO,iGAA0H,CAAC;AAE/I,MAAM,MAAM,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,YAAY,CAAC,OAAO,OAAO,EAAE,CAAC,CAAC,CAAC;AAC1E,MAAM,MAAM,WAAW,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,gBAAgB,CAAC,OAAO,OAAO,EAAE,CAAC,CAAC,CAAC;AAElF,yCAAyC;AACzC,QAAA,MAAM,IAAI;;;;;;;;;;;;sJAAoG,CAAC;AAE/G,OAAO,EAAE,IAAI,EAAE,CAAC;AAEhB,QAAA,MAAM,IAAI,oCAAQ,CAAC;AAEnB,KAAK,IAAI,GAAG,OAAO,IAAI,CAAC;AAExB,OAAO,EAAE,IAAI,EAAE,CAAC"}
|
|
@@ -6,10 +6,10 @@ import * as SafelinkDefs from "./defs.defs.js";
|
|
|
6
6
|
const $nsid = "tools.ozone.safelink.updateRule";
|
|
7
7
|
export { $nsid };
|
|
8
8
|
export const $params = /*#__PURE__*/ l.params();
|
|
9
|
-
export const $input = /*#__PURE__*/ l.jsonPayload({ "url": /*#__PURE__*/ l.string(), "pattern": /*#__PURE__*/ l.ref((() => SafelinkDefs.patternType)), "action": /*#__PURE__*/ l.ref((() => SafelinkDefs.actionType)), "reason": /*#__PURE__*/ l.ref((() => SafelinkDefs.reasonType)), "comment": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()), "createdBy": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({ "format": "did" })) });
|
|
9
|
+
export const $input = /*#__PURE__*/ l.jsonPayload({ "url": /*#__PURE__*/ l.string(), "pattern": /*#__PURE__*/ l.ref((() => SafelinkDefs.patternType)), "action": /*#__PURE__*/ l.ref((() => SafelinkDefs.actionType)), "reason": /*#__PURE__*/ l.ref((() => SafelinkDefs.reasonType)), "source": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.string({ "maxLength": 128 }), "ozone/default")), "comment": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()), "createdBy": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({ "format": "did" })) });
|
|
10
10
|
export const $output = /*#__PURE__*/ l.payload("application/json", /*#__PURE__*/ l.ref((() => SafelinkDefs.event)));
|
|
11
11
|
/** Update an existing URL safety rule */
|
|
12
|
-
const main = /*#__PURE__*/ l.procedure($nsid, $params, $input, $output, ["RuleNotFound"]);
|
|
12
|
+
const main = /*#__PURE__*/ l.procedure($nsid, $params, $input, $output, ["RuleNotFound", "RuleSourceConflict"]);
|
|
13
13
|
export { main };
|
|
14
14
|
const $lxm = $nsid;
|
|
15
15
|
export { $lxm };
|