@atproto/api 0.9.7 → 0.9.8
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 +6 -0
- package/dist/client/lexicons.d.ts +57 -0
- package/dist/client/types/com/atproto/admin/defs.d.ts +9 -0
- package/dist/client/types/com/atproto/admin/emitModerationEvent.d.ts +1 -1
- package/dist/client/types/com/atproto/admin/queryModerationEvents.d.ts +2 -0
- package/dist/client/types/com/atproto/admin/queryModerationStatuses.d.ts +2 -0
- package/dist/index.js +67 -1
- package/dist/index.js.map +2 -2
- package/package.json +2 -2
- package/src/client/lexicons.ts +62 -0
- package/src/client/types/com/atproto/admin/defs.ts +24 -0
- package/src/client/types/com/atproto/admin/emitModerationEvent.ts +1 -0
- package/src/client/types/com/atproto/admin/queryModerationEvents.ts +4 -0
- package/src/client/types/com/atproto/admin/queryModerationStatuses.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atproto/api
|
|
2
2
|
|
|
3
|
+
## 0.9.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2192](https://github.com/bluesky-social/atproto/pull/2192) [`f79cc6339`](https://github.com/bluesky-social/atproto/commit/f79cc63390ae9dbd47a4ff5d694eec25b78b788e) Thanks [@foysalit](https://github.com/foysalit)! - Tag event on moderation subjects and allow filtering events and subjects by tags
|
|
8
|
+
|
|
3
9
|
## 0.9.7
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -236,6 +236,12 @@ export declare const schemaDict: {
|
|
|
236
236
|
type: string;
|
|
237
237
|
format: string;
|
|
238
238
|
};
|
|
239
|
+
tags: {
|
|
240
|
+
type: string;
|
|
241
|
+
items: {
|
|
242
|
+
type: string;
|
|
243
|
+
};
|
|
244
|
+
};
|
|
239
245
|
};
|
|
240
246
|
};
|
|
241
247
|
reportViewDetail: {
|
|
@@ -779,6 +785,31 @@ export declare const schemaDict: {
|
|
|
779
785
|
};
|
|
780
786
|
};
|
|
781
787
|
};
|
|
788
|
+
modEventTag: {
|
|
789
|
+
type: string;
|
|
790
|
+
description: string;
|
|
791
|
+
required: string[];
|
|
792
|
+
properties: {
|
|
793
|
+
add: {
|
|
794
|
+
type: string;
|
|
795
|
+
items: {
|
|
796
|
+
type: string;
|
|
797
|
+
};
|
|
798
|
+
description: string;
|
|
799
|
+
};
|
|
800
|
+
remove: {
|
|
801
|
+
type: string;
|
|
802
|
+
items: {
|
|
803
|
+
type: string;
|
|
804
|
+
};
|
|
805
|
+
description: string;
|
|
806
|
+
};
|
|
807
|
+
comment: {
|
|
808
|
+
type: string;
|
|
809
|
+
description: string;
|
|
810
|
+
};
|
|
811
|
+
};
|
|
812
|
+
};
|
|
782
813
|
communicationTemplateView: {
|
|
783
814
|
type: string;
|
|
784
815
|
required: string[];
|
|
@@ -1343,6 +1374,20 @@ export declare const schemaDict: {
|
|
|
1343
1374
|
};
|
|
1344
1375
|
description: string;
|
|
1345
1376
|
};
|
|
1377
|
+
addedTags: {
|
|
1378
|
+
type: string;
|
|
1379
|
+
items: {
|
|
1380
|
+
type: string;
|
|
1381
|
+
};
|
|
1382
|
+
description: string;
|
|
1383
|
+
};
|
|
1384
|
+
removedTags: {
|
|
1385
|
+
type: string;
|
|
1386
|
+
items: {
|
|
1387
|
+
type: string;
|
|
1388
|
+
};
|
|
1389
|
+
description: string;
|
|
1390
|
+
};
|
|
1346
1391
|
reportTypes: {
|
|
1347
1392
|
type: string;
|
|
1348
1393
|
items: {
|
|
@@ -1458,6 +1503,18 @@ export declare const schemaDict: {
|
|
|
1458
1503
|
maximum: number;
|
|
1459
1504
|
default: number;
|
|
1460
1505
|
};
|
|
1506
|
+
tags: {
|
|
1507
|
+
type: string;
|
|
1508
|
+
items: {
|
|
1509
|
+
type: string;
|
|
1510
|
+
};
|
|
1511
|
+
};
|
|
1512
|
+
excludeTags: {
|
|
1513
|
+
type: string;
|
|
1514
|
+
items: {
|
|
1515
|
+
type: string;
|
|
1516
|
+
};
|
|
1517
|
+
};
|
|
1461
1518
|
cursor: {
|
|
1462
1519
|
type: string;
|
|
1463
1520
|
};
|
|
@@ -82,6 +82,7 @@ export interface SubjectStatusView {
|
|
|
82
82
|
takendown?: boolean;
|
|
83
83
|
appealed?: boolean;
|
|
84
84
|
suspendUntil?: string;
|
|
85
|
+
tags?: string[];
|
|
85
86
|
[k: string]: unknown;
|
|
86
87
|
}
|
|
87
88
|
export declare function isSubjectStatusView(v: unknown): v is SubjectStatusView;
|
|
@@ -317,6 +318,14 @@ export interface ModEventEmail {
|
|
|
317
318
|
}
|
|
318
319
|
export declare function isModEventEmail(v: unknown): v is ModEventEmail;
|
|
319
320
|
export declare function validateModEventEmail(v: unknown): ValidationResult;
|
|
321
|
+
export interface ModEventTag {
|
|
322
|
+
add: string[];
|
|
323
|
+
remove: string[];
|
|
324
|
+
comment?: string;
|
|
325
|
+
[k: string]: unknown;
|
|
326
|
+
}
|
|
327
|
+
export declare function isModEventTag(v: unknown): v is ModEventTag;
|
|
328
|
+
export declare function validateModEventTag(v: unknown): ValidationResult;
|
|
320
329
|
export interface CommunicationTemplateView {
|
|
321
330
|
id: string;
|
|
322
331
|
name: string;
|
|
@@ -4,7 +4,7 @@ import * as ComAtprotoRepoStrongRef from '../repo/strongRef';
|
|
|
4
4
|
export interface QueryParams {
|
|
5
5
|
}
|
|
6
6
|
export interface InputSchema {
|
|
7
|
-
event: ComAtprotoAdminDefs.ModEventTakedown | ComAtprotoAdminDefs.ModEventAcknowledge | ComAtprotoAdminDefs.ModEventEscalate | ComAtprotoAdminDefs.ModEventComment | ComAtprotoAdminDefs.ModEventLabel | ComAtprotoAdminDefs.ModEventReport | ComAtprotoAdminDefs.ModEventMute | ComAtprotoAdminDefs.ModEventReverseTakedown | ComAtprotoAdminDefs.ModEventUnmute | ComAtprotoAdminDefs.ModEventEmail | {
|
|
7
|
+
event: ComAtprotoAdminDefs.ModEventTakedown | ComAtprotoAdminDefs.ModEventAcknowledge | ComAtprotoAdminDefs.ModEventEscalate | ComAtprotoAdminDefs.ModEventComment | ComAtprotoAdminDefs.ModEventLabel | ComAtprotoAdminDefs.ModEventReport | ComAtprotoAdminDefs.ModEventMute | ComAtprotoAdminDefs.ModEventReverseTakedown | ComAtprotoAdminDefs.ModEventUnmute | ComAtprotoAdminDefs.ModEventEmail | ComAtprotoAdminDefs.ModEventTag | {
|
|
8
8
|
$type: string;
|
|
9
9
|
[k: string]: unknown;
|
|
10
10
|
};
|
package/dist/index.js
CHANGED
|
@@ -15973,6 +15973,12 @@ var schemaDict = {
|
|
|
15973
15973
|
suspendUntil: {
|
|
15974
15974
|
type: "string",
|
|
15975
15975
|
format: "datetime"
|
|
15976
|
+
},
|
|
15977
|
+
tags: {
|
|
15978
|
+
type: "array",
|
|
15979
|
+
items: {
|
|
15980
|
+
type: "string"
|
|
15981
|
+
}
|
|
15976
15982
|
}
|
|
15977
15983
|
}
|
|
15978
15984
|
},
|
|
@@ -16564,6 +16570,31 @@ var schemaDict = {
|
|
|
16564
16570
|
}
|
|
16565
16571
|
}
|
|
16566
16572
|
},
|
|
16573
|
+
modEventTag: {
|
|
16574
|
+
type: "object",
|
|
16575
|
+
description: "Add/Remove a tag on a subject",
|
|
16576
|
+
required: ["add", "remove"],
|
|
16577
|
+
properties: {
|
|
16578
|
+
add: {
|
|
16579
|
+
type: "array",
|
|
16580
|
+
items: {
|
|
16581
|
+
type: "string"
|
|
16582
|
+
},
|
|
16583
|
+
description: "Tags to be added to the subject. If already exists, won't be duplicated."
|
|
16584
|
+
},
|
|
16585
|
+
remove: {
|
|
16586
|
+
type: "array",
|
|
16587
|
+
items: {
|
|
16588
|
+
type: "string"
|
|
16589
|
+
},
|
|
16590
|
+
description: "Tags to be removed to the subject. Ignores a tag If it doesn't exist, won't be duplicated."
|
|
16591
|
+
},
|
|
16592
|
+
comment: {
|
|
16593
|
+
type: "string",
|
|
16594
|
+
description: "Additional comment about added/removed tags."
|
|
16595
|
+
}
|
|
16596
|
+
}
|
|
16597
|
+
},
|
|
16567
16598
|
communicationTemplateView: {
|
|
16568
16599
|
type: "object",
|
|
16569
16600
|
required: [
|
|
@@ -16738,7 +16769,8 @@ var schemaDict = {
|
|
|
16738
16769
|
"lex:com.atproto.admin.defs#modEventMute",
|
|
16739
16770
|
"lex:com.atproto.admin.defs#modEventReverseTakedown",
|
|
16740
16771
|
"lex:com.atproto.admin.defs#modEventUnmute",
|
|
16741
|
-
"lex:com.atproto.admin.defs#modEventEmail"
|
|
16772
|
+
"lex:com.atproto.admin.defs#modEventEmail",
|
|
16773
|
+
"lex:com.atproto.admin.defs#modEventTag"
|
|
16742
16774
|
]
|
|
16743
16775
|
},
|
|
16744
16776
|
subject: {
|
|
@@ -17160,6 +17192,20 @@ var schemaDict = {
|
|
|
17160
17192
|
},
|
|
17161
17193
|
description: "If specified, only events where all of these labels were removed are returned"
|
|
17162
17194
|
},
|
|
17195
|
+
addedTags: {
|
|
17196
|
+
type: "array",
|
|
17197
|
+
items: {
|
|
17198
|
+
type: "string"
|
|
17199
|
+
},
|
|
17200
|
+
description: "If specified, only events where all of these tags were added are returned"
|
|
17201
|
+
},
|
|
17202
|
+
removedTags: {
|
|
17203
|
+
type: "array",
|
|
17204
|
+
items: {
|
|
17205
|
+
type: "string"
|
|
17206
|
+
},
|
|
17207
|
+
description: "If specified, only events where all of these tags were removed are returned"
|
|
17208
|
+
},
|
|
17163
17209
|
reportTypes: {
|
|
17164
17210
|
type: "array",
|
|
17165
17211
|
items: {
|
|
@@ -17275,6 +17321,18 @@ var schemaDict = {
|
|
|
17275
17321
|
maximum: 100,
|
|
17276
17322
|
default: 50
|
|
17277
17323
|
},
|
|
17324
|
+
tags: {
|
|
17325
|
+
type: "array",
|
|
17326
|
+
items: {
|
|
17327
|
+
type: "string"
|
|
17328
|
+
}
|
|
17329
|
+
},
|
|
17330
|
+
excludeTags: {
|
|
17331
|
+
type: "array",
|
|
17332
|
+
items: {
|
|
17333
|
+
type: "string"
|
|
17334
|
+
}
|
|
17335
|
+
},
|
|
17278
17336
|
cursor: {
|
|
17279
17337
|
type: "string"
|
|
17280
17338
|
}
|
|
@@ -25789,6 +25847,7 @@ __export(defs_exports, {
|
|
|
25789
25847
|
isModEventReport: () => isModEventReport,
|
|
25790
25848
|
isModEventResolveAppeal: () => isModEventResolveAppeal,
|
|
25791
25849
|
isModEventReverseTakedown: () => isModEventReverseTakedown,
|
|
25850
|
+
isModEventTag: () => isModEventTag,
|
|
25792
25851
|
isModEventTakedown: () => isModEventTakedown,
|
|
25793
25852
|
isModEventUnmute: () => isModEventUnmute,
|
|
25794
25853
|
isModEventView: () => isModEventView,
|
|
@@ -25821,6 +25880,7 @@ __export(defs_exports, {
|
|
|
25821
25880
|
validateModEventReport: () => validateModEventReport,
|
|
25822
25881
|
validateModEventResolveAppeal: () => validateModEventResolveAppeal,
|
|
25823
25882
|
validateModEventReverseTakedown: () => validateModEventReverseTakedown,
|
|
25883
|
+
validateModEventTag: () => validateModEventTag,
|
|
25824
25884
|
validateModEventTakedown: () => validateModEventTakedown,
|
|
25825
25885
|
validateModEventUnmute: () => validateModEventUnmute,
|
|
25826
25886
|
validateModEventView: () => validateModEventView,
|
|
@@ -26030,6 +26090,12 @@ function isModEventEmail(v) {
|
|
|
26030
26090
|
function validateModEventEmail(v) {
|
|
26031
26091
|
return lexicons.validate("com.atproto.admin.defs#modEventEmail", v);
|
|
26032
26092
|
}
|
|
26093
|
+
function isModEventTag(v) {
|
|
26094
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.admin.defs#modEventTag";
|
|
26095
|
+
}
|
|
26096
|
+
function validateModEventTag(v) {
|
|
26097
|
+
return lexicons.validate("com.atproto.admin.defs#modEventTag", v);
|
|
26098
|
+
}
|
|
26033
26099
|
function isCommunicationTemplateView(v) {
|
|
26034
26100
|
return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.admin.defs#communicationTemplateView";
|
|
26035
26101
|
}
|