@myronsi/messenger-api 2.1.0-alpha.47.next.167 → 2.1.0-alpha.48.next.170

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,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.48
6
+
7
+ - Video and screen sharing in calls: `CallConfig` (`GET /calls/config`) gains `video_enabled` and
8
+ `screen_share_enabled`. When they are on, the media grant also allows the `camera`, `screen_share` and
9
+ `screen_share_audio` sources; every source is end-to-end encrypted with the same per-epoch sender keys as audio.
10
+
5
11
  ## 2.1.0-alpha.47
6
12
 
7
13
  - New message types `poll`, `contact` and `location` (`MessageType`, `SendMessageRequest.type`, `UnsentMessage.type`),
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- /* Generated from api/openapi.yaml 2.1.0-alpha.47. Do not edit. */
2
- export declare const API_VERSION: "2.1.0-alpha.47";
1
+ /* Generated from api/openapi.yaml 2.1.0-alpha.48. Do not edit. */
2
+ export declare const API_VERSION: "2.1.0-alpha.48";
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.47";
1
+ export const API_VERSION = "2.1.0-alpha.48";
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.47
4
+ version: 2.1.0-alpha.48
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
@@ -6124,10 +6124,11 @@ paths:
6124
6124
  get:
6125
6125
  tags: [calls]
6126
6126
  operationId: getCallConfig
6127
- summary: Whether audio calls are available and their limits
6127
+ summary: Whether calls are available and their limits
6128
6128
  description: |
6129
6129
  `enabled` is `false` when the server has no media service configured or calls are switched off; clients then
6130
- hide every call control. Clients must also check that the browser supports call encryption before offering
6130
+ hide every call control. `video_enabled` and `screen_share_enabled` say whether the camera and screen sharing
6131
+ controls are offered; the media grant allows only the sources that are switched on. Clients must also check that the browser supports call encryption before offering
6131
6132
  calls.
6132
6133
  responses:
6133
6134
  "426": { $ref: "#/components/responses/ClientOutdated" }
@@ -9817,9 +9818,20 @@ components:
9817
9818
  # ----------------------------------------------------------- calls
9818
9819
  CallConfig:
9819
9820
  type: object
9820
- required: [enabled, max_participants, ring_timeout_seconds]
9821
+ required: [enabled, video_enabled, screen_share_enabled, max_participants, ring_timeout_seconds]
9821
9822
  properties:
9822
9823
  enabled: { type: boolean }
9824
+ video_enabled:
9825
+ type: boolean
9826
+ description: |
9827
+ Participants may publish their camera. Always `false` while `enabled` is `false`. Clients treat a missing
9828
+ field (older servers) as `false`.
9829
+ screen_share_enabled:
9830
+ type: boolean
9831
+ description: |
9832
+ Participants may share their screen, with its sound where the browser offers it. Several participants may
9833
+ share at the same time. Always `false` while `enabled` is `false`. Clients treat a missing field as
9834
+ `false`.
9823
9835
  max_participants:
9824
9836
  type: integer
9825
9837
  minimum: 2
package/dist/schema.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- /* Generated from api/openapi.yaml 2.1.0-alpha.47. Do not edit. */
1
+ /* Generated from api/openapi.yaml 2.1.0-alpha.48. Do not edit. */
2
2
  export interface paths {
3
3
  "/meta": {
4
4
  parameters: {
@@ -4791,9 +4791,10 @@ export interface paths {
4791
4791
  cookie?: never;
4792
4792
  };
4793
4793
  /**
4794
- * Whether audio calls are available and their limits
4794
+ * Whether calls are available and their limits
4795
4795
  * @description `enabled` is `false` when the server has no media service configured or calls are switched off; clients then
4796
- * hide every call control. Clients must also check that the browser supports call encryption before offering
4796
+ * hide every call control. `video_enabled` and `screen_share_enabled` say whether the camera and screen sharing
4797
+ * controls are offered; the media grant allows only the sources that are switched on. Clients must also check that the browser supports call encryption before offering
4797
4798
  * calls.
4798
4799
  */
4799
4800
  get: operations["getCallConfig"];
@@ -6944,6 +6945,17 @@ export interface components {
6944
6945
  };
6945
6946
  CallConfig: {
6946
6947
  enabled: boolean;
6948
+ /**
6949
+ * @description Participants may publish their camera. Always `false` while `enabled` is `false`. Clients treat a missing
6950
+ * field (older servers) as `false`.
6951
+ */
6952
+ video_enabled: boolean;
6953
+ /**
6954
+ * @description Participants may share their screen, with its sound where the browser offers it. Several participants may
6955
+ * share at the same time. Always `false` while `enabled` is `false`. Clients treat a missing field as
6956
+ * `false`.
6957
+ */
6958
+ screen_share_enabled: boolean;
6947
6959
  /** @description Most sessions joined to one call at the same time. */
6948
6960
  max_participants: number;
6949
6961
  /** @description How long an invitation rings before it counts as missed. */
@@ -1,4 +1,4 @@
1
- /* Generated from api/openapi.yaml 2.1.0-alpha.47. Do not edit. */
1
+ /* Generated from api/openapi.yaml 2.1.0-alpha.48. Do not edit. */
2
2
 
3
3
  /**
4
4
  * Any WebSocket event, in either direction.
@@ -6411,6 +6411,8 @@
6411
6411
  "type": "object",
6412
6412
  "required": [
6413
6413
  "enabled",
6414
+ "video_enabled",
6415
+ "screen_share_enabled",
6414
6416
  "max_participants",
6415
6417
  "ring_timeout_seconds"
6416
6418
  ],
@@ -6418,6 +6420,14 @@
6418
6420
  "enabled": {
6419
6421
  "type": "boolean"
6420
6422
  },
6423
+ "video_enabled": {
6424
+ "type": "boolean",
6425
+ "description": "Participants may publish their camera. Always `false` while `enabled` is `false`. Clients treat a missing\nfield (older servers) as `false`.\n"
6426
+ },
6427
+ "screen_share_enabled": {
6428
+ "type": "boolean",
6429
+ "description": "Participants may share their screen, with its sound where the browser offers it. Several participants may\nshare at the same time. Always `false` while `enabled` is `false`. Clients treat a missing field as\n`false`.\n"
6430
+ },
6421
6431
  "max_participants": {
6422
6432
  "type": "integer",
6423
6433
  "minimum": 2,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myronsi/messenger-api",
3
- "version": "2.1.0-alpha.47.next.167",
3
+ "version": "2.1.0-alpha.48.next.170",
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": {