@freedome/protocol 1.1.0 → 1.2.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
@@ -114,6 +114,13 @@ var ProtocolVersions = {
114
114
  * new members.
115
115
  */
116
116
  audioControl: new SemVer(1, 1, 0),
117
+ /** First contract with the person's side of the assistant (confirmations, the link). An older server answers 404. */
118
+ assistant: new SemVer(1, 2, 0),
119
+ /**
120
+ * The freedome_contract release this package was generated from and implements (`contract/contract.lock.json`).
121
+ * Compare it with a server's `contractVersion` to tell which side is newer, e.g. for an About screen. Added in 1.2.0.
122
+ */
123
+ contract: new SemVer(1, 2, 0),
117
124
  /** Whether a `.dome` of [v] can be read (same major; newer minors keep unknown keys). */
118
125
  canReadDome: (v) => v.major === 1
119
126
  };
@@ -211,9 +218,9 @@ var DomeTopics = {
211
218
 
212
219
  // src/generated/contract.ts
213
220
  var CONTRACT = {
214
- label: "v1.1.0",
215
- bundle: "freedome-contract-1.1.0.tar.gz",
216
- sha256: "40e4778b3213236ff427604ac0226928296c700dfb2eece4eba085524df1f8c8"
221
+ label: "v1.2.0",
222
+ bundle: "freedome-contract-1.2.0.tar.gz",
223
+ sha256: "27a9c4aa46a82485459269ebeb973c8a86e746c3e4f20d4aefe9c56291a4549d"
217
224
  };
218
225
 
219
226
  // src/generated/mediaserver-operations.ts
@@ -257,6 +264,15 @@ var Operations = {
257
264
  ],
258
265
  requestContentTypes: []
259
266
  },
267
+ approveAssistantLink: {
268
+ id: "approveAssistantLink",
269
+ method: "POST",
270
+ path: "/assistant/link/approvals",
271
+ scope: "playback:control",
272
+ tags: ["assistant"],
273
+ params: [],
274
+ requestContentTypes: ["application/json"]
275
+ },
260
276
  approvePairing: {
261
277
  id: "approvePairing",
262
278
  method: "POST",
@@ -618,6 +634,15 @@ var Operations = {
618
634
  ],
619
635
  requestContentTypes: []
620
636
  },
637
+ endAssistantLink: {
638
+ id: "endAssistantLink",
639
+ method: "DELETE",
640
+ path: "/assistant/link/sessions/{sessionId}",
641
+ scope: "playback:control",
642
+ tags: ["assistant"],
643
+ params: [{ name: "sessionId", in: "path", required: true }],
644
+ requestContentTypes: []
645
+ },
621
646
  exchangeCloudToken: {
622
647
  id: "exchangeCloudToken",
623
648
  method: "POST",
@@ -704,6 +729,15 @@ var Operations = {
704
729
  ],
705
730
  requestContentTypes: []
706
731
  },
732
+ getAssistantLink: {
733
+ id: "getAssistantLink",
734
+ method: "GET",
735
+ path: "/assistant/link",
736
+ scope: "playback:control",
737
+ tags: ["assistant"],
738
+ params: [],
739
+ requestContentTypes: []
740
+ },
707
741
  getAudio: {
708
742
  id: "getAudio",
709
743
  method: "GET",
@@ -1244,6 +1278,18 @@ var Operations = {
1244
1278
  ],
1245
1279
  requestContentTypes: []
1246
1280
  },
1281
+ listAssistantConfirmations: {
1282
+ id: "listAssistantConfirmations",
1283
+ method: "GET",
1284
+ path: "/assistant/confirmations",
1285
+ scope: "playback:control",
1286
+ tags: ["assistant"],
1287
+ params: [
1288
+ { name: "limit", in: "query", required: false },
1289
+ { name: "cursor", in: "query", required: false }
1290
+ ],
1291
+ requestContentTypes: []
1292
+ },
1247
1293
  listAudioDevices: {
1248
1294
  id: "listAudioDevices",
1249
1295
  method: "GET",
@@ -1975,6 +2021,15 @@ var Operations = {
1975
2021
  params: [],
1976
2022
  requestContentTypes: ["application/json"]
1977
2023
  },
2024
+ refuseAssistantConfirmation: {
2025
+ id: "refuseAssistantConfirmation",
2026
+ method: "POST",
2027
+ path: "/assistant/confirmations/{confirmationId}/refuse",
2028
+ scope: "playback:control",
2029
+ tags: ["assistant"],
2030
+ params: [{ name: "confirmationId", in: "path", required: true }],
2031
+ requestContentTypes: []
2032
+ },
1978
2033
  registerClient: {
1979
2034
  id: "registerClient",
1980
2035
  method: "POST",
@@ -2385,6 +2440,24 @@ var CloudOperations = {
2385
2440
  params: [],
2386
2441
  requestContentTypes: ["application/json"]
2387
2442
  },
2443
+ claimDossier: {
2444
+ id: "claimDossier",
2445
+ method: "POST",
2446
+ path: "/dossiers/self/claim",
2447
+ scope: "any",
2448
+ tags: ["dossier"],
2449
+ params: [{ name: "X-Dossier-Code", in: "header", required: true }],
2450
+ requestContentTypes: []
2451
+ },
2452
+ consentDossier: {
2453
+ id: "consentDossier",
2454
+ method: "POST",
2455
+ path: "/dossiers/self/consent",
2456
+ scope: "anon",
2457
+ tags: ["dossier"],
2458
+ params: [{ name: "X-Dossier-Code", in: "header", required: true }],
2459
+ requestContentTypes: ["application/json"]
2460
+ },
2388
2461
  createAccountApiKey: {
2389
2462
  id: "createAccountApiKey",
2390
2463
  method: "POST",
@@ -2509,6 +2582,27 @@ var CloudOperations = {
2509
2582
  params: [{ name: "sessionId", in: "path", required: true }],
2510
2583
  requestContentTypes: []
2511
2584
  },
2585
+ deleteDossierAttachment: {
2586
+ id: "deleteDossierAttachment",
2587
+ method: "DELETE",
2588
+ path: "/dossiers/self/attachments/{attachmentId}",
2589
+ scope: "anon",
2590
+ tags: ["dossier"],
2591
+ params: [
2592
+ { name: "attachmentId", in: "path", required: true },
2593
+ { name: "X-Dossier-Code", in: "header", required: true }
2594
+ ],
2595
+ requestContentTypes: []
2596
+ },
2597
+ deleteDossierSelf: {
2598
+ id: "deleteDossierSelf",
2599
+ method: "DELETE",
2600
+ path: "/dossiers/self",
2601
+ scope: "anon",
2602
+ tags: ["dossier"],
2603
+ params: [{ name: "X-Dossier-Code", in: "header", required: true }],
2604
+ requestContentTypes: []
2605
+ },
2512
2606
  deleteOrg: {
2513
2607
  id: "deleteOrg",
2514
2608
  method: "DELETE",
@@ -2584,6 +2678,15 @@ var CloudOperations = {
2584
2678
  params: [],
2585
2679
  requestContentTypes: ["application/json"]
2586
2680
  },
2681
+ exportDossierSelf: {
2682
+ id: "exportDossierSelf",
2683
+ method: "GET",
2684
+ path: "/dossiers/self/export",
2685
+ scope: "anon",
2686
+ tags: ["dossier"],
2687
+ params: [{ name: "X-Dossier-Code", in: "header", required: true }],
2688
+ requestContentTypes: []
2689
+ },
2587
2690
  forgotPassword: {
2588
2691
  id: "forgotPassword",
2589
2692
  method: "POST",
@@ -2611,6 +2714,27 @@ var CloudOperations = {
2611
2714
  params: [{ name: "itemId", in: "path", required: true }],
2612
2715
  requestContentTypes: []
2613
2716
  },
2717
+ getDossierAttachment: {
2718
+ id: "getDossierAttachment",
2719
+ method: "GET",
2720
+ path: "/dossiers/self/attachments/{attachmentId}",
2721
+ scope: "anon",
2722
+ tags: ["dossier"],
2723
+ params: [
2724
+ { name: "attachmentId", in: "path", required: true },
2725
+ { name: "X-Dossier-Code", in: "header", required: true }
2726
+ ],
2727
+ requestContentTypes: []
2728
+ },
2729
+ getDossierSelf: {
2730
+ id: "getDossierSelf",
2731
+ method: "GET",
2732
+ path: "/dossiers/self",
2733
+ scope: "anon",
2734
+ tags: ["dossier"],
2735
+ params: [{ name: "X-Dossier-Code", in: "header", required: true }],
2736
+ requestContentTypes: []
2737
+ },
2614
2738
  getEnrollmentRequest: {
2615
2739
  id: "getEnrollmentRequest",
2616
2740
  method: "GET",
@@ -3031,6 +3155,15 @@ var CloudOperations = {
3031
3155
  params: [],
3032
3156
  requestContentTypes: ["application/json"]
3033
3157
  },
3158
+ uploadDossierAttachment: {
3159
+ id: "uploadDossierAttachment",
3160
+ method: "POST",
3161
+ path: "/dossiers/self/attachments",
3162
+ scope: "anon",
3163
+ tags: ["dossier"],
3164
+ params: [{ name: "X-Dossier-Code", in: "header", required: true }],
3165
+ requestContentTypes: ["multipart/form-data"]
3166
+ },
3034
3167
  verifyEmail: {
3035
3168
  id: "verifyEmail",
3036
3169
  method: "POST",
@@ -3469,13 +3602,13 @@ var ProblemCodes = [
3469
3602
  // src/generated/asyncapi.ts
3470
3603
  var AsyncApiCatalogue = {
3471
3604
  "cloud-socketio": {
3472
- version: "1.1.0",
3605
+ version: "1.2.0",
3473
3606
  messages: ["event", "join"],
3474
3607
  channels: ["v1"],
3475
3608
  operations: ["emitJoin", "receiveEvent"]
3476
3609
  },
3477
3610
  "socketio-legacy": {
3478
- version: "1.1.0",
3611
+ version: "1.2.0",
3479
3612
  messages: [
3480
3613
  "brightness",
3481
3614
  "clear-integration",
@@ -3509,7 +3642,7 @@ var AsyncApiCatalogue = {
3509
3642
  ]
3510
3643
  },
3511
3644
  socketio: {
3512
- version: "1.1.0",
3645
+ version: "1.2.0",
3513
3646
  messages: ["ack", "bye", "call", "event", "resync", "subscribe", "unsubscribe", "welcome"],
3514
3647
  channels: ["v1"],
3515
3648
  operations: [
@@ -3523,7 +3656,7 @@ var AsyncApiCatalogue = {
3523
3656
  ]
3524
3657
  },
3525
3658
  ws: {
3526
- version: "1.1.0",
3659
+ version: "1.2.0",
3527
3660
  messages: [
3528
3661
  "bye",
3529
3662
  "call",