@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/dist/index.js CHANGED
@@ -108,6 +108,12 @@ var ProtocolVersions = {
108
108
  domeFormat: new SemVer(1, 1, 0),
109
109
  /** API majors understood (`/api/v1`). */
110
110
  apiMajors: [1],
111
+ /**
112
+ * First contract version with pause / resume of audio sessions, the device sweep, `roleZones` and the generator's
113
+ * `multi` block. A server reports its own in `contractVersion` of `getInfo`; a 1.0 server answers 404, or 422 for the
114
+ * new members.
115
+ */
116
+ audioControl: new SemVer(1, 1, 0),
111
117
  /** Whether a `.dome` of [v] can be read (same major; newer minors keep unknown keys). */
112
118
  canReadDome: (v) => v.major === 1
113
119
  };
@@ -205,9 +211,9 @@ var DomeTopics = {
205
211
 
206
212
  // src/generated/contract.ts
207
213
  var CONTRACT = {
208
- label: "v1.0.0",
209
- bundle: "freedome-contract-1.0.0.tar.gz",
210
- sha256: "7cd2668450d65266521fa7285f74846271d1dca1695418543490bc8db491d225"
214
+ label: "v1.1.0",
215
+ bundle: "freedome-contract-1.1.0.tar.gz",
216
+ sha256: "40e4778b3213236ff427604ac0226928296c700dfb2eece4eba085524df1f8c8"
211
217
  };
212
218
 
213
219
  // src/generated/mediaserver-operations.ts
@@ -1708,6 +1714,19 @@ var Operations = {
1708
1714
  ],
1709
1715
  requestContentTypes: []
1710
1716
  },
1717
+ pauseAudioSession: {
1718
+ id: "pauseAudioSession",
1719
+ method: "POST",
1720
+ path: "/venues/{venueId}/audio/sessions/{sessionId}/pause",
1721
+ scope: "audio:control",
1722
+ tags: ["audio"],
1723
+ params: [
1724
+ { name: "venueId", in: "path", required: true },
1725
+ { name: "sessionId", in: "path", required: true },
1726
+ { name: "Idempotency-Key", in: "header", required: false }
1727
+ ],
1728
+ requestContentTypes: []
1729
+ },
1711
1730
  pauseScenarioSession: {
1712
1731
  id: "pauseScenarioSession",
1713
1732
  method: "POST",
@@ -1999,6 +2018,19 @@ var Operations = {
1999
2018
  ],
2000
2019
  requestContentTypes: []
2001
2020
  },
2021
+ resumeAudioSession: {
2022
+ id: "resumeAudioSession",
2023
+ method: "POST",
2024
+ path: "/venues/{venueId}/audio/sessions/{sessionId}/resume",
2025
+ scope: "audio:control",
2026
+ tags: ["audio"],
2027
+ params: [
2028
+ { name: "venueId", in: "path", required: true },
2029
+ { name: "sessionId", in: "path", required: true },
2030
+ { name: "Idempotency-Key", in: "header", required: false }
2031
+ ],
2032
+ requestContentTypes: []
2033
+ },
2002
2034
  resumeScenarioSession: {
2003
2035
  id: "resumeScenarioSession",
2004
2036
  method: "POST",
@@ -2137,6 +2169,19 @@ var Operations = {
2137
2169
  params: [{ name: "Idempotency-Key", in: "header", required: false }],
2138
2170
  requestContentTypes: ["application/json"]
2139
2171
  },
2172
+ startAudioDeviceSweep: {
2173
+ id: "startAudioDeviceSweep",
2174
+ method: "POST",
2175
+ path: "/venues/{venueId}/audio/devices/{deviceId}/sweep",
2176
+ scope: "audio:calibrate",
2177
+ tags: ["audio"],
2178
+ params: [
2179
+ { name: "venueId", in: "path", required: true },
2180
+ { name: "deviceId", in: "path", required: true },
2181
+ { name: "Idempotency-Key", in: "header", required: false }
2182
+ ],
2183
+ requestContentTypes: ["application/json"]
2184
+ },
2140
2185
  startAudioSession: {
2141
2186
  id: "startAudioSession",
2142
2187
  method: "POST",
@@ -3330,7 +3375,7 @@ var Scopes = {
3330
3375
  "audio:control": "audio mode / gain / zones / devices / sessions / generator / sources",
3331
3376
  "displays:control": "test patterns, identify, power",
3332
3377
  "calibration:run": "visual calibration jobs and sidecars",
3333
- "audio:calibrate": "audio calibration jobs (audio-room, audio-speaker-check)",
3378
+ "audio:calibrate": "audio calibration jobs (audio-room, audio-speaker-check) and device sweeps",
3334
3379
  "venues:write": "venues, displays config, speaker layout, device pairing / binding",
3335
3380
  "gateways:manage": "gateways, OSC send",
3336
3381
  "system:read": "system status, logs, config (redacted), diagnostics, clients, jobs of others",
@@ -3424,13 +3469,13 @@ var ProblemCodes = [
3424
3469
  // src/generated/asyncapi.ts
3425
3470
  var AsyncApiCatalogue = {
3426
3471
  "cloud-socketio": {
3427
- version: "1.0.0",
3472
+ version: "1.1.0",
3428
3473
  messages: ["event", "join"],
3429
3474
  channels: ["v1"],
3430
3475
  operations: ["emitJoin", "receiveEvent"]
3431
3476
  },
3432
3477
  "socketio-legacy": {
3433
- version: "1.0.0",
3478
+ version: "1.1.0",
3434
3479
  messages: [
3435
3480
  "brightness",
3436
3481
  "clear-integration",
@@ -3464,7 +3509,7 @@ var AsyncApiCatalogue = {
3464
3509
  ]
3465
3510
  },
3466
3511
  socketio: {
3467
- version: "1.0.0",
3512
+ version: "1.1.0",
3468
3513
  messages: ["ack", "bye", "call", "event", "resync", "subscribe", "unsubscribe", "welcome"],
3469
3514
  channels: ["v1"],
3470
3515
  operations: [
@@ -3478,7 +3523,7 @@ var AsyncApiCatalogue = {
3478
3523
  ]
3479
3524
  },
3480
3525
  ws: {
3481
- version: "1.0.0",
3526
+ version: "1.1.0",
3482
3527
  messages: [
3483
3528
  "bye",
3484
3529
  "call",