@myronsi/messenger-api 2.1.0-alpha.63.next.212 → 2.1.0-alpha.64.next.213

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 CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  Contract changes only. The backend changelog is `CHANGELOG.md` in the repository root. Rules: `docs/api-compatibility.md`.
4
4
 
5
+ ## 2.1.0-alpha.64
6
+
7
+ - Staff actions on channels: `Group` gains `sensitive_by_staff`, `suspended` and `public_name_locked`. A suspended
8
+ channel refuses posts, edits and comments with `403` and is not found by name, link, search or preview; a channel
9
+ whose public name moderation removed gets `403` when it sets a new one. `PublicGroup.sensitive` also covers the
10
+ staff mark.
11
+
5
12
  ## 2.1.0-alpha.63
6
13
 
7
14
  - Read a public channel before subscribing (C6): `GET /public-groups/{public_name}/posts` returns its newest 50 posts
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- /* Generated from api/openapi.yaml 2.1.0-alpha.63. Do not edit. */
2
- export declare const API_VERSION: "2.1.0-alpha.63";
1
+ /* Generated from api/openapi.yaml 2.1.0-alpha.64. Do not edit. */
2
+ export declare const API_VERSION: "2.1.0-alpha.64";
3
3
  export type { paths, components, operations } from "./schema.js";
4
4
  export * from "./ws-events.js";
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- export const API_VERSION = "2.1.0-alpha.63";
1
+ export const API_VERSION = "2.1.0-alpha.64";
package/dist/openapi.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  openapi: 3.1.0
2
2
  info:
3
3
  title: Messenger API
4
- version: 2.1.0-alpha.63
4
+ version: 2.1.0-alpha.64
5
5
  summary: REST contract of the Messenger backend (v2).
6
6
  description: |
7
7
  Contract for the Go backend. The WebSocket protocol is described in `websocket/` and
@@ -3737,7 +3737,8 @@ paths:
3737
3737
  Owner and admins only. A public group can be found in `GET /public-groups` and joined by anyone through
3738
3738
  `/@name`, unless banned. The name shares one name space with usernames, ignoring case: a name in use is
3739
3739
  `409` `already_exists`, a reserved name `422`. The old name is free at once. Accounts at `limited` or above
3740
- get `403` `account_restricted` (`share_group`).
3740
+ get `403` `account_restricted` (`share_group`). A channel whose public name moderation removed
3741
+ (`public_name_locked`) gets `403`.
3741
3742
  requestBody:
3742
3743
  required: true
3743
3744
  content:
@@ -10024,10 +10025,21 @@ components:
10024
10025
  description: Channels only - posts carry the author's name (`Message.signature`); off shows posts as the channel. Owner and admins change it.
10025
10026
  sensitive:
10026
10027
  type: boolean
10027
- description: Channels only - 18+ content. Set by the owner (staff can set it too); apps label the channel 18+.
10028
+ description: Channels only - the owner's 18+ setting. Apps label the channel 18+ when this or `sensitive_by_staff` is true.
10028
10029
  recommendable:
10029
10030
  type: boolean
10030
10031
  description: Channels only - whether the channel may be recommended to people who do not follow it. On by default; only the owner changes it.
10032
+ sensitive_by_staff:
10033
+ type: boolean
10034
+ description: Channels only - moderation marked the channel 18+. The owner cannot turn it off.
10035
+ suspended:
10036
+ type: boolean
10037
+ description: |
10038
+ Channels only - moderation suspended the channel. Members still read it, but nobody posts, edits or
10039
+ comments (`403`), nobody joins, and it is not found by public name, invite link, search or preview.
10040
+ public_name_locked:
10041
+ type: boolean
10042
+ description: Channels only - moderation removed the public name; setting a new one is `403` until moderation allows it again.
10031
10043
  notify_comments:
10032
10044
  type: boolean
10033
10045
  description: Channels only - whether the caller gets a push for every new comment on their own posts.
@@ -10193,7 +10205,7 @@ components:
10193
10205
  group_mode: { $ref: "#/components/schemas/GroupMode" }
10194
10206
  sensitive:
10195
10207
  type: boolean
10196
- description: Channels only - 18+ content; apps show an 18+ label.
10208
+ description: Channels only - 18+ content, set by the owner or by moderation; apps show an 18+ label.
10197
10209
  public_name:
10198
10210
  description: Set for a public group.
10199
10211
  oneOf:
package/dist/schema.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- /* Generated from api/openapi.yaml 2.1.0-alpha.63. Do not edit. */
1
+ /* Generated from api/openapi.yaml 2.1.0-alpha.64. Do not edit. */
2
2
  export interface paths {
3
3
  "/meta": {
4
4
  parameters: {
@@ -3219,7 +3219,8 @@ export interface paths {
3219
3219
  * @description Owner and admins only. A public group can be found in `GET /public-groups` and joined by anyone through
3220
3220
  * `/@name`, unless banned. The name shares one name space with usernames, ignoring case: a name in use is
3221
3221
  * `409` `already_exists`, a reserved name `422`. The old name is free at once. Accounts at `limited` or above
3222
- * get `403` `account_restricted` (`share_group`).
3222
+ * get `403` `account_restricted` (`share_group`). A channel whose public name moderation removed
3223
+ * (`public_name_locked`) gets `403`.
3223
3224
  */
3224
3225
  put: operations["setGroupPublicName"];
3225
3226
  post?: never;
@@ -7263,10 +7264,19 @@ export interface components {
7263
7264
  tags?: string[];
7264
7265
  /** @description Channels only - posts carry the author's name (`Message.signature`); off shows posts as the channel. Owner and admins change it. */
7265
7266
  sign_posts?: boolean;
7266
- /** @description Channels only - 18+ content. Set by the owner (staff can set it too); apps label the channel 18+. */
7267
+ /** @description Channels only - the owner's 18+ setting. Apps label the channel 18+ when this or `sensitive_by_staff` is true. */
7267
7268
  sensitive?: boolean;
7268
7269
  /** @description Channels only - whether the channel may be recommended to people who do not follow it. On by default; only the owner changes it. */
7269
7270
  recommendable?: boolean;
7271
+ /** @description Channels only - moderation marked the channel 18+. The owner cannot turn it off. */
7272
+ sensitive_by_staff?: boolean;
7273
+ /**
7274
+ * @description Channels only - moderation suspended the channel. Members still read it, but nobody posts, edits or
7275
+ * comments (`403`), nobody joins, and it is not found by public name, invite link, search or preview.
7276
+ */
7277
+ suspended?: boolean;
7278
+ /** @description Channels only - moderation removed the public name; setting a new one is `403` until moderation allows it again. */
7279
+ public_name_locked?: boolean;
7270
7280
  /** @description Channels only - whether the caller gets a push for every new comment on their own posts. */
7271
7281
  notify_comments?: boolean;
7272
7282
  /** @description Everyone in the group, the owner included (the subscribers of a channel). */
@@ -7379,7 +7389,7 @@ export interface components {
7379
7389
  /** @description Public channels only - up to 5 tags (lowercase letters and digits, at most 24 characters). */
7380
7390
  tags?: string[];
7381
7391
  group_mode: components["schemas"]["GroupMode"];
7382
- /** @description Channels only - 18+ content; apps show an 18+ label. */
7392
+ /** @description Channels only - 18+ content, set by the owner or by moderation; apps show an 18+ label. */
7383
7393
  sensitive?: boolean;
7384
7394
  /** @description Set for a public group. */
7385
7395
  public_name: components["schemas"]["PublicName"] | null;
@@ -1,4 +1,4 @@
1
- /* Generated from api/openapi.yaml 2.1.0-alpha.63. Do not edit. */
1
+ /* Generated from api/openapi.yaml 2.1.0-alpha.64. Do not edit. */
2
2
 
3
3
  /**
4
4
  * Any WebSocket event, in either direction.
@@ -1458,13 +1458,27 @@ export interface Group {
1458
1458
  */
1459
1459
  sign_posts?: boolean;
1460
1460
  /**
1461
- * Channels only - 18+ content. Set by the owner (staff can set it too); apps label the channel 18+.
1461
+ * Channels only - the owner's 18+ setting. Apps label the channel 18+ when this or `sensitive_by_staff` is true.
1462
1462
  */
1463
1463
  sensitive?: boolean;
1464
1464
  /**
1465
1465
  * Channels only - whether the channel may be recommended to people who do not follow it. On by default; only the owner changes it.
1466
1466
  */
1467
1467
  recommendable?: boolean;
1468
+ /**
1469
+ * Channels only - moderation marked the channel 18+. The owner cannot turn it off.
1470
+ */
1471
+ sensitive_by_staff?: boolean;
1472
+ /**
1473
+ * Channels only - moderation suspended the channel. Members still read it, but nobody posts, edits or
1474
+ * comments (`403`), nobody joins, and it is not found by public name, invite link, search or preview.
1475
+ *
1476
+ */
1477
+ suspended?: boolean;
1478
+ /**
1479
+ * Channels only - moderation removed the public name; setting a new one is `403` until moderation allows it again.
1480
+ */
1481
+ public_name_locked?: boolean;
1468
1482
  /**
1469
1483
  * Channels only - whether the caller gets a push for every new comment on their own posts.
1470
1484
  */
@@ -5865,12 +5865,24 @@
5865
5865
  },
5866
5866
  "sensitive": {
5867
5867
  "type": "boolean",
5868
- "description": "Channels only - 18+ content. Set by the owner (staff can set it too); apps label the channel 18+."
5868
+ "description": "Channels only - the owner's 18+ setting. Apps label the channel 18+ when this or `sensitive_by_staff` is true."
5869
5869
  },
5870
5870
  "recommendable": {
5871
5871
  "type": "boolean",
5872
5872
  "description": "Channels only - whether the channel may be recommended to people who do not follow it. On by default; only the owner changes it."
5873
5873
  },
5874
+ "sensitive_by_staff": {
5875
+ "type": "boolean",
5876
+ "description": "Channels only - moderation marked the channel 18+. The owner cannot turn it off."
5877
+ },
5878
+ "suspended": {
5879
+ "type": "boolean",
5880
+ "description": "Channels only - moderation suspended the channel. Members still read it, but nobody posts, edits or\ncomments (`403`), nobody joins, and it is not found by public name, invite link, search or preview.\n"
5881
+ },
5882
+ "public_name_locked": {
5883
+ "type": "boolean",
5884
+ "description": "Channels only - moderation removed the public name; setting a new one is `403` until moderation allows it again."
5885
+ },
5874
5886
  "notify_comments": {
5875
5887
  "type": "boolean",
5876
5888
  "description": "Channels only - whether the caller gets a push for every new comment on their own posts."
@@ -6220,7 +6232,7 @@
6220
6232
  },
6221
6233
  "sensitive": {
6222
6234
  "type": "boolean",
6223
- "description": "Channels only - 18+ content; apps show an 18+ label."
6235
+ "description": "Channels only - 18+ content, set by the owner or by moderation; apps show an 18+ label."
6224
6236
  },
6225
6237
  "public_name": {
6226
6238
  "description": "Set for a public group.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myronsi/messenger-api",
3
- "version": "2.1.0-alpha.63.next.212",
3
+ "version": "2.1.0-alpha.64.next.213",
4
4
  "description": "API contract of the Messenger backend: OpenAPI document, WebSocket event schemas and generated TypeScript types",
5
5
  "license": "MIT",
6
6
  "repository": {