@myronsi/messenger-api 2.1.0-alpha.60.next.209 → 2.1.0-alpha.61.next.210
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/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/openapi.yaml +16 -1
- package/dist/schema.d.ts +11 -1
- package/dist/ws-events.d.ts +9 -1
- package/dist/ws-events.schema.json +20 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
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.61
|
|
6
|
+
|
|
7
|
+
- Channel settings `sensitive` (18+) and `recommendable` (on by default) on `Group` and `UpdateGroupRequest`; only the
|
|
8
|
+
owner changes them (`403` for admins). `PublicGroup` gains `sensitive`. Staff can mark a channel sensitive later
|
|
9
|
+
through the internal API.
|
|
10
|
+
|
|
5
11
|
## 2.1.0-alpha.60
|
|
6
12
|
|
|
7
13
|
- Channel category and tags (C11): `ChannelCategory` (16 values); `Group`, `UpdateGroupRequest` and `PublicGroup` gain
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Generated from api/openapi.yaml 2.1.0-alpha.
|
|
2
|
-
export declare const API_VERSION: "2.1.0-alpha.
|
|
1
|
+
/* Generated from api/openapi.yaml 2.1.0-alpha.61. Do not edit. */
|
|
2
|
+
export declare const API_VERSION: "2.1.0-alpha.61";
|
|
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.
|
|
1
|
+
export const API_VERSION = "2.1.0-alpha.61";
|
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.
|
|
4
|
+
version: 2.1.0-alpha.61
|
|
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
|
|
@@ -9983,6 +9983,12 @@ components:
|
|
|
9983
9983
|
maxItems: 5
|
|
9984
9984
|
description: Public channels only - up to 5 tags (lowercase letters and digits, at most 24 characters).
|
|
9985
9985
|
items: { type: string, minLength: 1, maxLength: 24 }
|
|
9986
|
+
sensitive:
|
|
9987
|
+
type: boolean
|
|
9988
|
+
description: Channels only - 18+ content. Set by the owner (staff can set it too); apps label the channel 18+.
|
|
9989
|
+
recommendable:
|
|
9990
|
+
type: boolean
|
|
9991
|
+
description: Channels only - whether the channel may be recommended to people who do not follow it. On by default; only the owner changes it.
|
|
9986
9992
|
notify_comments:
|
|
9987
9993
|
type: boolean
|
|
9988
9994
|
description: Channels only - whether the caller gets a push for every new comment on their own posts.
|
|
@@ -10050,6 +10056,12 @@ components:
|
|
|
10050
10056
|
dropped and letters are lowercased, so `#Game Dev` becomes `gamedev`. After cleaning a tag has 1 to 24
|
|
10051
10057
|
letters or digits; duplicates collapse. A tag on the staff blocklist is `422`.
|
|
10052
10058
|
items: { type: string, minLength: 1, maxLength: 64 }
|
|
10059
|
+
sensitive:
|
|
10060
|
+
type: boolean
|
|
10061
|
+
description: Channels only - 18+ content. Owner only (`403` for admins); apps label the channel 18+.
|
|
10062
|
+
recommendable:
|
|
10063
|
+
type: boolean
|
|
10064
|
+
description: Channels only - whether the channel may be recommended to people who do not follow it. On by default; only the owner changes it.
|
|
10053
10065
|
ChannelCategory:
|
|
10054
10066
|
type: string
|
|
10055
10067
|
description: The fixed list of channel categories. Unknown values must be treated like `other`.
|
|
@@ -10137,6 +10149,9 @@ components:
|
|
|
10137
10149
|
description: Public channels only - up to 5 tags (lowercase letters and digits, at most 24 characters).
|
|
10138
10150
|
items: { type: string, minLength: 1, maxLength: 24 }
|
|
10139
10151
|
group_mode: { $ref: "#/components/schemas/GroupMode" }
|
|
10152
|
+
sensitive:
|
|
10153
|
+
type: boolean
|
|
10154
|
+
description: Channels only - 18+ content; apps show an 18+ label.
|
|
10140
10155
|
public_name:
|
|
10141
10156
|
description: Set for a public group.
|
|
10142
10157
|
oneOf:
|
package/dist/schema.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Generated from api/openapi.yaml 2.1.0-alpha.
|
|
1
|
+
/* Generated from api/openapi.yaml 2.1.0-alpha.61. Do not edit. */
|
|
2
2
|
export interface paths {
|
|
3
3
|
"/meta": {
|
|
4
4
|
parameters: {
|
|
@@ -7222,6 +7222,10 @@ export interface components {
|
|
|
7222
7222
|
category?: components["schemas"]["ChannelCategory"] | null;
|
|
7223
7223
|
/** @description Public channels only - up to 5 tags (lowercase letters and digits, at most 24 characters). */
|
|
7224
7224
|
tags?: string[];
|
|
7225
|
+
/** @description Channels only - 18+ content. Set by the owner (staff can set it too); apps label the channel 18+. */
|
|
7226
|
+
sensitive?: boolean;
|
|
7227
|
+
/** @description Channels only - whether the channel may be recommended to people who do not follow it. On by default; only the owner changes it. */
|
|
7228
|
+
recommendable?: boolean;
|
|
7225
7229
|
/** @description Channels only - whether the caller gets a push for every new comment on their own posts. */
|
|
7226
7230
|
notify_comments?: boolean;
|
|
7227
7231
|
/** @description Everyone in the group, the owner included (the subscribers of a channel). */
|
|
@@ -7263,6 +7267,10 @@ export interface components {
|
|
|
7263
7267
|
* letters or digits; duplicates collapse. A tag on the staff blocklist is `422`.
|
|
7264
7268
|
*/
|
|
7265
7269
|
tags?: string[];
|
|
7270
|
+
/** @description Channels only - 18+ content. Owner only (`403` for admins); apps label the channel 18+. */
|
|
7271
|
+
sensitive?: boolean;
|
|
7272
|
+
/** @description Channels only - whether the channel may be recommended to people who do not follow it. On by default; only the owner changes it. */
|
|
7273
|
+
recommendable?: boolean;
|
|
7266
7274
|
};
|
|
7267
7275
|
/**
|
|
7268
7276
|
* @description The fixed list of channel categories. Unknown values must be treated like `other`.
|
|
@@ -7328,6 +7336,8 @@ export interface components {
|
|
|
7328
7336
|
/** @description Public channels only - up to 5 tags (lowercase letters and digits, at most 24 characters). */
|
|
7329
7337
|
tags?: string[];
|
|
7330
7338
|
group_mode: components["schemas"]["GroupMode"];
|
|
7339
|
+
/** @description Channels only - 18+ content; apps show an 18+ label. */
|
|
7340
|
+
sensitive?: boolean;
|
|
7331
7341
|
/** @description Set for a public group. */
|
|
7332
7342
|
public_name: components["schemas"]["PublicName"] | null;
|
|
7333
7343
|
description: string | null;
|
package/dist/ws-events.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Generated from api/openapi.yaml 2.1.0-alpha.
|
|
1
|
+
/* Generated from api/openapi.yaml 2.1.0-alpha.61. Do not edit. */
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Any WebSocket event, in either direction.
|
|
@@ -1447,6 +1447,14 @@ export interface Group {
|
|
|
1447
1447
|
| [string, string, string]
|
|
1448
1448
|
| [string, string, string, string]
|
|
1449
1449
|
| [string, string, string, string, string];
|
|
1450
|
+
/**
|
|
1451
|
+
* Channels only - 18+ content. Set by the owner (staff can set it too); apps label the channel 18+.
|
|
1452
|
+
*/
|
|
1453
|
+
sensitive?: boolean;
|
|
1454
|
+
/**
|
|
1455
|
+
* Channels only - whether the channel may be recommended to people who do not follow it. On by default; only the owner changes it.
|
|
1456
|
+
*/
|
|
1457
|
+
recommendable?: boolean;
|
|
1450
1458
|
/**
|
|
1451
1459
|
* Channels only - whether the caller gets a push for every new comment on their own posts.
|
|
1452
1460
|
*/
|
|
@@ -5852,6 +5852,14 @@
|
|
|
5852
5852
|
"maxLength": 24
|
|
5853
5853
|
}
|
|
5854
5854
|
},
|
|
5855
|
+
"sensitive": {
|
|
5856
|
+
"type": "boolean",
|
|
5857
|
+
"description": "Channels only - 18+ content. Set by the owner (staff can set it too); apps label the channel 18+."
|
|
5858
|
+
},
|
|
5859
|
+
"recommendable": {
|
|
5860
|
+
"type": "boolean",
|
|
5861
|
+
"description": "Channels only - whether the channel may be recommended to people who do not follow it. On by default; only the owner changes it."
|
|
5862
|
+
},
|
|
5855
5863
|
"notify_comments": {
|
|
5856
5864
|
"type": "boolean",
|
|
5857
5865
|
"description": "Channels only - whether the caller gets a push for every new comment on their own posts."
|
|
@@ -5995,6 +6003,14 @@
|
|
|
5995
6003
|
"minLength": 1,
|
|
5996
6004
|
"maxLength": 64
|
|
5997
6005
|
}
|
|
6006
|
+
},
|
|
6007
|
+
"sensitive": {
|
|
6008
|
+
"type": "boolean",
|
|
6009
|
+
"description": "Channels only - 18+ content. Owner only (`403` for admins); apps label the channel 18+."
|
|
6010
|
+
},
|
|
6011
|
+
"recommendable": {
|
|
6012
|
+
"type": "boolean",
|
|
6013
|
+
"description": "Channels only - whether the channel may be recommended to people who do not follow it. On by default; only the owner changes it."
|
|
5998
6014
|
}
|
|
5999
6015
|
}
|
|
6000
6016
|
},
|
|
@@ -6187,6 +6203,10 @@
|
|
|
6187
6203
|
"group_mode": {
|
|
6188
6204
|
"$ref": "#/$defs/GroupMode"
|
|
6189
6205
|
},
|
|
6206
|
+
"sensitive": {
|
|
6207
|
+
"type": "boolean",
|
|
6208
|
+
"description": "Channels only - 18+ content; apps show an 18+ label."
|
|
6209
|
+
},
|
|
6190
6210
|
"public_name": {
|
|
6191
6211
|
"description": "Set for a public group.",
|
|
6192
6212
|
"oneOf": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myronsi/messenger-api",
|
|
3
|
-
"version": "2.1.0-alpha.
|
|
3
|
+
"version": "2.1.0-alpha.61.next.210",
|
|
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": {
|