@freedome/protocol 1.0.0 → 1.1.0

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
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.1.0 (2026-11-07)
4
+
5
+ - Types and tables generated from `freedome_contract` 1.1.0 (`api/1.1`), additive: `pauseAudioSession`, `resumeAudioSession`,
6
+ `startAudioDeviceSweep`, `roleZones`, the generator's `multi`, the calibration job's `sweep`.
7
+ - `ProtocolVersions.audioControl`: the first contract with them.
8
+ - `/validate` knows `api/1.1`; `api/1.0` stays, for the cloud schemas and documents that name it.
9
+
3
10
  ## 1.0.0 (2026-11-06)
4
11
 
5
12
  - Types and tables generated from `freedome_contract` 1.0.0.
package/dist/index.cjs CHANGED
@@ -160,6 +160,12 @@ var ProtocolVersions = {
160
160
  domeFormat: new SemVer(1, 1, 0),
161
161
  /** API majors understood (`/api/v1`). */
162
162
  apiMajors: [1],
163
+ /**
164
+ * First contract version with pause / resume of audio sessions, the device sweep, `roleZones` and the generator's
165
+ * `multi` block. A server reports its own in `contractVersion` of `getInfo`; a 1.0 server answers 404, or 422 for the
166
+ * new members.
167
+ */
168
+ audioControl: new SemVer(1, 1, 0),
163
169
  /** Whether a `.dome` of [v] can be read (same major; newer minors keep unknown keys). */
164
170
  canReadDome: (v) => v.major === 1
165
171
  };
@@ -257,9 +263,9 @@ var DomeTopics = {
257
263
 
258
264
  // src/generated/contract.ts
259
265
  var CONTRACT = {
260
- label: "v1.0.0",
261
- bundle: "freedome-contract-1.0.0.tar.gz",
262
- sha256: "7cd2668450d65266521fa7285f74846271d1dca1695418543490bc8db491d225"
266
+ label: "v1.1.0",
267
+ bundle: "freedome-contract-1.1.0.tar.gz",
268
+ sha256: "40e4778b3213236ff427604ac0226928296c700dfb2eece4eba085524df1f8c8"
263
269
  };
264
270
 
265
271
  // src/generated/mediaserver-operations.ts
@@ -1760,6 +1766,19 @@ var Operations = {
1760
1766
  ],
1761
1767
  requestContentTypes: []
1762
1768
  },
1769
+ pauseAudioSession: {
1770
+ id: "pauseAudioSession",
1771
+ method: "POST",
1772
+ path: "/venues/{venueId}/audio/sessions/{sessionId}/pause",
1773
+ scope: "audio:control",
1774
+ tags: ["audio"],
1775
+ params: [
1776
+ { name: "venueId", in: "path", required: true },
1777
+ { name: "sessionId", in: "path", required: true },
1778
+ { name: "Idempotency-Key", in: "header", required: false }
1779
+ ],
1780
+ requestContentTypes: []
1781
+ },
1763
1782
  pauseScenarioSession: {
1764
1783
  id: "pauseScenarioSession",
1765
1784
  method: "POST",
@@ -2051,6 +2070,19 @@ var Operations = {
2051
2070
  ],
2052
2071
  requestContentTypes: []
2053
2072
  },
2073
+ resumeAudioSession: {
2074
+ id: "resumeAudioSession",
2075
+ method: "POST",
2076
+ path: "/venues/{venueId}/audio/sessions/{sessionId}/resume",
2077
+ scope: "audio:control",
2078
+ tags: ["audio"],
2079
+ params: [
2080
+ { name: "venueId", in: "path", required: true },
2081
+ { name: "sessionId", in: "path", required: true },
2082
+ { name: "Idempotency-Key", in: "header", required: false }
2083
+ ],
2084
+ requestContentTypes: []
2085
+ },
2054
2086
  resumeScenarioSession: {
2055
2087
  id: "resumeScenarioSession",
2056
2088
  method: "POST",
@@ -2189,6 +2221,19 @@ var Operations = {
2189
2221
  params: [{ name: "Idempotency-Key", in: "header", required: false }],
2190
2222
  requestContentTypes: ["application/json"]
2191
2223
  },
2224
+ startAudioDeviceSweep: {
2225
+ id: "startAudioDeviceSweep",
2226
+ method: "POST",
2227
+ path: "/venues/{venueId}/audio/devices/{deviceId}/sweep",
2228
+ scope: "audio:calibrate",
2229
+ tags: ["audio"],
2230
+ params: [
2231
+ { name: "venueId", in: "path", required: true },
2232
+ { name: "deviceId", in: "path", required: true },
2233
+ { name: "Idempotency-Key", in: "header", required: false }
2234
+ ],
2235
+ requestContentTypes: ["application/json"]
2236
+ },
2192
2237
  startAudioSession: {
2193
2238
  id: "startAudioSession",
2194
2239
  method: "POST",
@@ -3382,7 +3427,7 @@ var Scopes = {
3382
3427
  "audio:control": "audio mode / gain / zones / devices / sessions / generator / sources",
3383
3428
  "displays:control": "test patterns, identify, power",
3384
3429
  "calibration:run": "visual calibration jobs and sidecars",
3385
- "audio:calibrate": "audio calibration jobs (audio-room, audio-speaker-check)",
3430
+ "audio:calibrate": "audio calibration jobs (audio-room, audio-speaker-check) and device sweeps",
3386
3431
  "venues:write": "venues, displays config, speaker layout, device pairing / binding",
3387
3432
  "gateways:manage": "gateways, OSC send",
3388
3433
  "system:read": "system status, logs, config (redacted), diagnostics, clients, jobs of others",
@@ -3476,13 +3521,13 @@ var ProblemCodes = [
3476
3521
  // src/generated/asyncapi.ts
3477
3522
  var AsyncApiCatalogue = {
3478
3523
  "cloud-socketio": {
3479
- version: "1.0.0",
3524
+ version: "1.1.0",
3480
3525
  messages: ["event", "join"],
3481
3526
  channels: ["v1"],
3482
3527
  operations: ["emitJoin", "receiveEvent"]
3483
3528
  },
3484
3529
  "socketio-legacy": {
3485
- version: "1.0.0",
3530
+ version: "1.1.0",
3486
3531
  messages: [
3487
3532
  "brightness",
3488
3533
  "clear-integration",
@@ -3516,7 +3561,7 @@ var AsyncApiCatalogue = {
3516
3561
  ]
3517
3562
  },
3518
3563
  socketio: {
3519
- version: "1.0.0",
3564
+ version: "1.1.0",
3520
3565
  messages: ["ack", "bye", "call", "event", "resync", "subscribe", "unsubscribe", "welcome"],
3521
3566
  channels: ["v1"],
3522
3567
  operations: [
@@ -3530,7 +3575,7 @@ var AsyncApiCatalogue = {
3530
3575
  ]
3531
3576
  },
3532
3577
  ws: {
3533
- version: "1.0.0",
3578
+ version: "1.1.0",
3534
3579
  messages: [
3535
3580
  "bye",
3536
3581
  "call",