@bunizao/contracts 0.7.0 → 0.7.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/dist/admin.d.ts CHANGED
@@ -346,6 +346,15 @@ export interface AdminBanRestoreResult {
346
346
  export interface AdminBanListResult {
347
347
  bans: AdminBan[];
348
348
  }
349
+ export interface AdminBannedReader {
350
+ readerId: string;
351
+ email: string;
352
+ displayName: string | null;
353
+ updatedAt: string;
354
+ }
355
+ export interface AdminBannedReaderListResult {
356
+ readers: AdminBannedReader[];
357
+ }
349
358
  /** Everything about one key in one response --
350
359
  `GET /admin/sources/:type/:value`. */
351
360
  export interface AdminSourceProfile {
@@ -42,7 +42,7 @@ export declare function commentAnchorToken(commentId: string): Promise<string>;
42
42
  export declare const COMMENT_ANCHOR_PATTERN: RegExp;
43
43
  export declare const MODERATION_ACTIONS: readonly ['publish', 'hold', 'reject', 'unsure'];
44
44
  export type ModerationAction = (typeof MODERATION_ACTIONS)[number];
45
- export declare const MODERATION_REASONS: readonly ['ok', 'spam', 'promotional', 'abuse', 'off_topic', 'personal_info'];
45
+ export declare const MODERATION_REASONS: readonly ['ok', 'spam', 'promotional', 'abuse', 'off_topic', 'personal_info', 'dwell_expired'];
46
46
  export type ModerationReason = (typeof MODERATION_REASONS)[number];
47
47
  /** Never sent to a reader. Rides along on the owner's Telegram notification. */
48
48
  export interface ModerationVerdict {
package/dist/comments.js CHANGED
@@ -18,7 +18,8 @@ var MODERATION_REASONS = [
18
18
  "promotional",
19
19
  "abuse",
20
20
  "off_topic",
21
- "personal_info"
21
+ "personal_info",
22
+ "dwell_expired"
22
23
  ];
23
24
  var READER_VERIFY_OUTCOMES = ["confirmed", "already_confirmed", "expired", "invalid"];
24
25
  var READER_MUTE_OUTCOMES = ["muted", "unmuted", "invalid"];
package/dist/index.js CHANGED
@@ -30,7 +30,8 @@ var MODERATION_REASONS = [
30
30
  "promotional",
31
31
  "abuse",
32
32
  "off_topic",
33
- "personal_info"
33
+ "personal_info",
34
+ "dwell_expired"
34
35
  ];
35
36
  var READER_VERIFY_OUTCOMES = ["confirmed", "already_confirmed", "expired", "invalid"];
36
37
  var READER_MUTE_OUTCOMES = ["muted", "unmuted", "invalid"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bunizao/contracts",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "Shared TypeScript contracts for buxx.me services and clients.",
5
5
  "type": "module",
6
6
  "sideEffects": false,