@kohost/api-client 1.0.0-alpha.2 → 1.0.0-alpha.4

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.
Files changed (115) hide show
  1. package/.eslintrc.js +10 -0
  2. package/bitbucket-pipelines.yml +39 -0
  3. package/commands/Command.js +38 -0
  4. package/commands/DiscoverUsersCommand.js +21 -0
  5. package/commands/SetAlarmCommand.js +21 -0
  6. package/commands/SetCourtesyCommand.js +21 -0
  7. package/commands/SetDimmerCommand.js +21 -0
  8. package/commands/SetLockCommand.js +21 -0
  9. package/commands/SetSceneControllerCommand.js +21 -0
  10. package/commands/SetSwitchCommand.js +21 -0
  11. package/commands/SetThermostatCommand.js +21 -0
  12. package/commands/SetWindowCoveringCommand.js +21 -0
  13. package/commands/VerifyDocumentCommand.js +24 -0
  14. package/commands/index.js +25 -0
  15. package/defs/deviceTypes.js +15 -0
  16. package/defs/formalDeviceTypes.js +6 -0
  17. package/defs/http.js +7 -0
  18. package/defs/index.js +11 -0
  19. package/errors/AppError.js +8 -0
  20. package/errors/AuthenticationError.js +9 -0
  21. package/errors/AuthorizationError.js +9 -0
  22. package/errors/DeviceCommError.js +9 -0
  23. package/errors/LoginError.js +9 -0
  24. package/errors/NotFoundError.js +9 -0
  25. package/errors/RequestError.js +9 -0
  26. package/errors/SystemCommError.js +9 -0
  27. package/errors/TokenExpiredError.js +9 -0
  28. package/errors/UnprocessableRequestError.js +9 -0
  29. package/errors/ValidationError.js +9 -0
  30. package/errors/index.js +15 -0
  31. package/events/Event.js +33 -0
  32. package/events/SystemCameraUpdatedEvent.js +17 -0
  33. package/events/SystemCourtesyUpdatedEvent.js +17 -0
  34. package/events/SystemDimmerUpdatedEvent.js +17 -0
  35. package/events/SystemLockUpdatedEvent.js +17 -0
  36. package/events/SystemReservationUpdatedEvent.js +17 -0
  37. package/events/SystemSceneControllerUpdatedEvent.js +17 -0
  38. package/events/SystemSourceUpdatedEvent.js +17 -0
  39. package/events/SystemSpaceUpdatedEvent.js +17 -0
  40. package/events/SystemSwitchUpdatedEvent.js +17 -0
  41. package/events/SystemThermostatUpdatedEvent.js +17 -0
  42. package/events/SystemUserUpdatedEvent.js +17 -0
  43. package/events/SystemWindowCoveringUpdatedEvent.js +17 -0
  44. package/events/index.js +28 -0
  45. package/http/handleResponseError.js +53 -0
  46. package/http/handleResponseSuccess.js +15 -0
  47. package/http/index.js +165 -0
  48. package/index.js +19 -2
  49. package/models/acl.js +29 -0
  50. package/models/admin/customer.js +28 -0
  51. package/models/admin/property.js +28 -0
  52. package/models/alarm.js +25 -3
  53. package/models/application.js +28 -0
  54. package/models/camera.js +29 -0
  55. package/models/courtesy.js +29 -3
  56. package/models/dimmer.js +45 -3
  57. package/models/discoveredDevice.js +30 -0
  58. package/models/gateway.js +33 -3
  59. package/models/index.js +38 -1
  60. package/models/integration.js +76 -0
  61. package/models/iotGateway.js +29 -0
  62. package/models/kohost.js +95 -0
  63. package/models/lock.js +29 -3
  64. package/models/mediaSource.js +29 -0
  65. package/models/motionSensor.js +29 -0
  66. package/models/reservation.js +36 -0
  67. package/models/room.js +185 -0
  68. package/models/scene.js +28 -0
  69. package/models/sceneController.js +24 -5
  70. package/models/space.js +99 -0
  71. package/models/switch.js +29 -3
  72. package/models/thermostat.js +71 -31
  73. package/models/ticket.js +91 -0
  74. package/models/user.js +58 -0
  75. package/models/windowCovering.js +44 -5
  76. package/package.json +30 -7
  77. package/prepare.js +4 -0
  78. package/schemas/acl.json +111 -0
  79. package/schemas/admin/customer.json +32 -0
  80. package/schemas/admin/property.json +174 -0
  81. package/schemas/alarm.json +5 -5
  82. package/schemas/application.json +24 -0
  83. package/schemas/camera.json +41 -0
  84. package/schemas/courtesy.json +5 -6
  85. package/schemas/definitions/common.json +21 -0
  86. package/schemas/definitions/device.json +21 -3
  87. package/schemas/dimmer.json +8 -5
  88. package/schemas/discoveredDevice.json +43 -0
  89. package/schemas/gateway.json +45 -13
  90. package/schemas/identification.json +35 -0
  91. package/schemas/integration.json +94 -0
  92. package/schemas/iotGateway.json +29 -0
  93. package/schemas/lock.json +8 -5
  94. package/schemas/mediaSource.json +151 -0
  95. package/schemas/motionSensor.json +26 -0
  96. package/schemas/payment.json +38 -0
  97. package/schemas/reservation.json +66 -0
  98. package/schemas/room.json +138 -0
  99. package/schemas/scene.json +118 -0
  100. package/schemas/sceneController.json +9 -9
  101. package/schemas/space.json +111 -0
  102. package/schemas/switch.json +8 -5
  103. package/schemas/thermostat.json +19 -10
  104. package/schemas/ticket.json +82 -0
  105. package/schemas/user.json +124 -0
  106. package/schemas/windowCovering.json +8 -5
  107. package/tests/unit/models/space.test.js +31 -0
  108. package/tests/unit/models/thermostat.test.js +146 -0
  109. package/tests/unit/models/user.test.js +28 -0
  110. package/useCases/http.json +1098 -0
  111. package/utils/getDeviceTypes.js +7 -0
  112. package/utils/getFormalDeviceType.js +5 -0
  113. package/utils/schema.js +28 -0
  114. package/vite.config.js +22 -0
  115. package/utils/compiler.js +0 -40
@@ -0,0 +1,1098 @@
1
+ [
2
+ [
3
+ "AdminListCustomers",
4
+ {
5
+ "http": {
6
+ "method": "GET",
7
+ "path": "/admin/customers"
8
+ }
9
+ }
10
+ ],
11
+ [
12
+ "AdminListProperties",
13
+ {
14
+ "http": {
15
+ "method": "GET",
16
+ "path": "/admin/properties"
17
+ }
18
+ }
19
+ ],
20
+ [
21
+ "LoginUser",
22
+ {
23
+ "http": {
24
+ "disableAuth": true,
25
+ "method": "POST",
26
+ "path": "/auth/user"
27
+ }
28
+ }
29
+ ],
30
+ [
31
+ "LoginGateway",
32
+ {
33
+ "http": {
34
+ "disableAuth": true,
35
+ "method": "POST",
36
+ "path": "/auth/gateway"
37
+ }
38
+ }
39
+ ],
40
+ [
41
+ "RefreshToken",
42
+ {
43
+ "http": {
44
+ "disableAuth": true,
45
+ "method": "POST",
46
+ "path": "/auth/refresh"
47
+ }
48
+ }
49
+ ],
50
+ [
51
+ "DescribeSelf",
52
+ {
53
+ "http": {
54
+ "method": "GET",
55
+ "path": "/users/me"
56
+ }
57
+ }
58
+ ],
59
+ [
60
+ "DescribeUser",
61
+ {
62
+ "http": {
63
+ "method": "GET",
64
+ "path": "/users/:id"
65
+ }
66
+ }
67
+ ],
68
+ [
69
+ "CreateUser",
70
+ {
71
+ "http": {
72
+ "method": "POST",
73
+ "path": "/users"
74
+ }
75
+ }
76
+ ],
77
+ [
78
+ "ListUsers",
79
+ {
80
+ "http": {
81
+ "method": "GET",
82
+ "path": "/users"
83
+ }
84
+ }
85
+ ],
86
+ [
87
+ "UpdateUser",
88
+ {
89
+ "http": {
90
+ "method": "PUT",
91
+ "path": "/users/:id"
92
+ }
93
+ }
94
+ ],
95
+ [
96
+ "DeleteUser",
97
+ {
98
+ "http": {
99
+ "method": "DELETE",
100
+ "path": "/users/:id"
101
+ }
102
+ }
103
+ ],
104
+ [
105
+ "DescribeGateway",
106
+ {
107
+ "http": {
108
+ "method": "GET",
109
+ "path": "/gateways/:gatewayId"
110
+ }
111
+ }
112
+ ],
113
+ [
114
+ "ListGateways",
115
+ {
116
+ "http": {
117
+ "method": "GET",
118
+ "path": "/gateways"
119
+ }
120
+ }
121
+ ],
122
+ [
123
+ "CreateGateway",
124
+ {
125
+ "http": {
126
+ "method": "POST",
127
+ "path": "/gateways"
128
+ }
129
+ }
130
+ ],
131
+ [
132
+ "UpdateGateway",
133
+ {
134
+ "http": {
135
+ "method": "PUT",
136
+ "path": "/gateways/:gatewayId"
137
+ }
138
+ }
139
+ ],
140
+ [
141
+ "DeleteGateway",
142
+ {
143
+ "http": {
144
+ "method": "DELETE",
145
+ "path": "/gateways/:gatewayId"
146
+ }
147
+ }
148
+ ],
149
+ [
150
+ "EmailUserAccountSetup",
151
+ {
152
+ "http": {
153
+ "method": "POST",
154
+ "path": "/users/:id/email/setup"
155
+ }
156
+ }
157
+ ],
158
+ [
159
+ "ListSpaces",
160
+ {
161
+ "http": {
162
+ "method": "GET",
163
+ "path": "/spaces"
164
+ }
165
+ }
166
+ ],
167
+ [
168
+ "CreateSpace",
169
+ {
170
+ "http": {
171
+ "method": "POST",
172
+ "path": "/spaces"
173
+ }
174
+ }
175
+ ],
176
+ [
177
+ "DescribeSpace",
178
+ {
179
+ "http": {
180
+ "method": "GET",
181
+ "path": "/spaces/:id"
182
+ }
183
+ }
184
+ ],
185
+ [
186
+ "DeleteSpace",
187
+ {
188
+ "http": {
189
+ "method": "DELETE",
190
+ "path": "/spaces/:id"
191
+ }
192
+ }
193
+ ],
194
+ [
195
+ "UpdateSpace",
196
+ {
197
+ "http": {
198
+ "method": "PUT",
199
+ "path": "/spaces/:id"
200
+ }
201
+ }
202
+ ],
203
+ [
204
+ "CreateRoomInSpace",
205
+ {
206
+ "http": {
207
+ "method": "POST",
208
+ "path": "/spaces/:id/rooms"
209
+ }
210
+ }
211
+ ],
212
+ [
213
+ "ListRooms",
214
+ {
215
+ "http": {
216
+ "method": "GET",
217
+ "path": "/rooms"
218
+ }
219
+ }
220
+ ],
221
+ [
222
+ "DescribeRoom",
223
+ {
224
+ "http": {
225
+ "method": "GET",
226
+ "path": "/rooms/:id"
227
+ }
228
+ }
229
+ ],
230
+ [
231
+ "CreateRoom",
232
+ {
233
+ "http": {
234
+ "method": "POST",
235
+ "path": "/rooms"
236
+ }
237
+ }
238
+ ],
239
+ [
240
+ "UpdateRoom",
241
+ {
242
+ "http": {
243
+ "method": "PUT",
244
+ "path": "/rooms/:id"
245
+ }
246
+ }
247
+ ],
248
+ [
249
+ "DeleteRoom",
250
+ {
251
+ "http": {
252
+ "method": "DELETE",
253
+ "path": "/rooms/:id"
254
+ }
255
+ }
256
+ ],
257
+ [
258
+ "CreateAlarm",
259
+ {
260
+ "http": {
261
+ "method": "POST",
262
+ "path": "/rooms/:roomId/alarms"
263
+ }
264
+ }
265
+ ],
266
+ [
267
+ "ListAlarms",
268
+ {
269
+ "http": {
270
+ "method": "GET",
271
+ "path": "/rooms/:roomId/alarms"
272
+ }
273
+ }
274
+ ],
275
+ [
276
+ "UpdateAlarm",
277
+ {
278
+ "http": {
279
+ "method": "PUT",
280
+ "path": "/rooms/:roomId/alarms/:id"
281
+ }
282
+ }
283
+ ],
284
+ [
285
+ "DeleteAlarm",
286
+ {
287
+ "http": {
288
+ "method": "DELETE",
289
+ "path": "/rooms/:roomId/alarms/:id"
290
+ }
291
+ }
292
+ ],
293
+ [
294
+ "DescribeAlarm",
295
+ {
296
+ "http": {
297
+ "method": "GET",
298
+ "path": "/rooms/:roomId/alarms/:id"
299
+ }
300
+ }
301
+ ],
302
+ [
303
+ "SetLocks",
304
+ {
305
+ "http": {
306
+ "method": "POST",
307
+ "path": "/rooms/:roomId/locks/:id"
308
+ }
309
+ }
310
+ ],
311
+ [
312
+ "CreateCamera",
313
+ {
314
+ "http": {
315
+ "method": "POST",
316
+ "path": "/rooms/:roomId/cameras"
317
+ }
318
+ }
319
+ ],
320
+ [
321
+ "ListCameras",
322
+ {
323
+ "http": {
324
+ "method": "GET",
325
+ "path": "/rooms/:roomId/cameras"
326
+ }
327
+ }
328
+ ],
329
+ [
330
+ "UpdateCamera",
331
+ {
332
+ "http": {
333
+ "method": "PUT",
334
+ "path": "/rooms/:roomId/cameras/:id"
335
+ }
336
+ }
337
+ ],
338
+ [
339
+ "DeleteCamera",
340
+ {
341
+ "http": {
342
+ "method": "DELETE",
343
+ "path": "/rooms/:roomId/cameras/:id"
344
+ }
345
+ }
346
+ ],
347
+ [
348
+ "DescribeCamera",
349
+ {
350
+ "http": {
351
+ "method": "GET",
352
+ "path": "/rooms/:roomId/cameras/:id"
353
+ }
354
+ }
355
+ ],
356
+ [
357
+ "SetCameras",
358
+ {
359
+ "http": {
360
+ "method": "POST",
361
+ "path": "/rooms/:roomId/cameras/:id"
362
+ }
363
+ }
364
+ ],
365
+ [
366
+ "CreateCourtesy",
367
+ {
368
+ "http": {
369
+ "method": "POST",
370
+ "path": "/rooms/:roomId/courtesy"
371
+ }
372
+ }
373
+ ],
374
+ [
375
+ "ListCourtesy",
376
+ {
377
+ "http": {
378
+ "method": "GET",
379
+ "path": "/rooms/:roomId/courtesy"
380
+ }
381
+ }
382
+ ],
383
+ [
384
+ "UpdateCourtesy",
385
+ {
386
+ "http": {
387
+ "method": "PUT",
388
+ "path": "/rooms/:roomId/courtesy/:id"
389
+ }
390
+ }
391
+ ],
392
+ [
393
+ "DeleteCourtesy",
394
+ {
395
+ "http": {
396
+ "method": "DELETE",
397
+ "path": "/rooms/:roomId/courtesy/:id"
398
+ }
399
+ }
400
+ ],
401
+ [
402
+ "DescribeCourtesy",
403
+ {
404
+ "http": {
405
+ "method": "GET",
406
+ "path": "/rooms/:roomId/courtesy/:id"
407
+ }
408
+ }
409
+ ],
410
+ [
411
+ "SetCourtesy",
412
+ {
413
+ "http": {
414
+ "method": "POST",
415
+ "path": "/rooms/:roomId/courtesy/:id"
416
+ }
417
+ }
418
+ ],
419
+ [
420
+ "CreateDimmer",
421
+ {
422
+ "http": {
423
+ "method": "POST",
424
+ "path": "/rooms/:roomId/dimmers"
425
+ }
426
+ }
427
+ ],
428
+ [
429
+ "ListDimmers",
430
+ {
431
+ "http": {
432
+ "method": "GET",
433
+ "path": "/rooms/:roomId/dimmers"
434
+ }
435
+ }
436
+ ],
437
+ [
438
+ "UpdateDimmer",
439
+ {
440
+ "http": {
441
+ "method": "PUT",
442
+ "path": "/rooms/:roomId/dimmers/:id"
443
+ }
444
+ }
445
+ ],
446
+ [
447
+ "DeleteDimmer",
448
+ {
449
+ "http": {
450
+ "method": "DELETE",
451
+ "path": "/rooms/:roomId/dimmers/:id"
452
+ }
453
+ }
454
+ ],
455
+ [
456
+ "DescribeDimmer",
457
+ {
458
+ "http": {
459
+ "method": "GET",
460
+ "path": "/rooms/:roomId/dimmers/:id"
461
+ }
462
+ }
463
+ ],
464
+ [
465
+ "CreateLock",
466
+ {
467
+ "http": {
468
+ "method": "POST",
469
+ "path": "/rooms/:roomId/locks"
470
+ }
471
+ }
472
+ ],
473
+ [
474
+ "ListLocks",
475
+ {
476
+ "http": {
477
+ "method": "GET",
478
+ "path": "/rooms/:roomId/locks"
479
+ }
480
+ }
481
+ ],
482
+ [
483
+ "UpdateLock",
484
+ {
485
+ "http": {
486
+ "method": "PUT",
487
+ "path": "/rooms/:roomId/locks/:id"
488
+ }
489
+ }
490
+ ],
491
+ [
492
+ "DeleteLock",
493
+ {
494
+ "http": {
495
+ "method": "DELETE",
496
+ "path": "/rooms/:roomId/locks/:id"
497
+ }
498
+ }
499
+ ],
500
+ [
501
+ "DescribeLock",
502
+ {
503
+ "http": {
504
+ "method": "GET",
505
+ "path": "/rooms/:roomId/locks/:id"
506
+ }
507
+ }
508
+ ],
509
+ [
510
+ "CreateSwitch",
511
+ {
512
+ "http": {
513
+ "method": "POST",
514
+ "path": "/rooms/:roomId/switches"
515
+ }
516
+ }
517
+ ],
518
+ [
519
+ "ListSwitches",
520
+ {
521
+ "http": {
522
+ "method": "GET",
523
+ "path": "/rooms/:roomId/switches"
524
+ }
525
+ }
526
+ ],
527
+ [
528
+ "UpdateSwitch",
529
+ {
530
+ "http": {
531
+ "method": "PUT",
532
+ "path": "/rooms/:roomId/switches/:id"
533
+ }
534
+ }
535
+ ],
536
+ [
537
+ "DeleteSwitch",
538
+ {
539
+ "http": {
540
+ "method": "DELETE",
541
+ "path": "/rooms/:roomId/switches/:id"
542
+ }
543
+ }
544
+ ],
545
+ [
546
+ "DescribeSwitch",
547
+ {
548
+ "http": {
549
+ "method": "GET",
550
+ "path": "/rooms/:roomId/switches/:id"
551
+ }
552
+ }
553
+ ],
554
+ [
555
+ "SetSwitches",
556
+ {
557
+ "http": {
558
+ "method": "POST",
559
+ "path": "/rooms/:roomId/switches/:id"
560
+ }
561
+ }
562
+ ],
563
+ [
564
+ "CreateSceneController",
565
+ {
566
+ "http": {
567
+ "method": "POST",
568
+ "path": "/rooms/:roomId/sceneControllers"
569
+ }
570
+ }
571
+ ],
572
+ [
573
+ "ListSceneControllers",
574
+ {
575
+ "http": {
576
+ "method": "GET",
577
+ "path": "/rooms/:roomId/sceneControllers"
578
+ }
579
+ }
580
+ ],
581
+ [
582
+ "UpdateSceneController",
583
+ {
584
+ "http": {
585
+ "method": "PUT",
586
+ "path": "/rooms/:roomId/sceneControllers/:id"
587
+ }
588
+ }
589
+ ],
590
+ [
591
+ "DeleteSceneController",
592
+ {
593
+ "http": {
594
+ "method": "DELETE",
595
+ "path": "/rooms/:roomId/sceneControllers/:id"
596
+ }
597
+ }
598
+ ],
599
+ [
600
+ "DescribeSceneController",
601
+ {
602
+ "http": {
603
+ "method": "GET",
604
+ "path": "/rooms/:roomId/sceneControllers/:id"
605
+ }
606
+ }
607
+ ],
608
+ [
609
+ "SetSceneControllers",
610
+ {
611
+ "http": {
612
+ "method": "POST",
613
+ "path": "/rooms/:roomId/sceneControllers/:id"
614
+ }
615
+ }
616
+ ],
617
+ [
618
+ "CreateSource",
619
+ {
620
+ "http": {
621
+ "method": "POST",
622
+ "path": "/rooms/:roomId/sources"
623
+ }
624
+ }
625
+ ],
626
+ [
627
+ "ListSources",
628
+ {
629
+ "http": {
630
+ "method": "GET",
631
+ "path": "/rooms/:roomId/sources"
632
+ }
633
+ }
634
+ ],
635
+ [
636
+ "UpdateSource",
637
+ {
638
+ "http": {
639
+ "method": "PUT",
640
+ "path": "/rooms/:roomId/sources/:id"
641
+ }
642
+ }
643
+ ],
644
+ [
645
+ "DeleteSource",
646
+ {
647
+ "http": {
648
+ "method": "DELETE",
649
+ "path": "/rooms/:roomId/sources/:id"
650
+ }
651
+ }
652
+ ],
653
+ [
654
+ "DescribeSource",
655
+ {
656
+ "http": {
657
+ "method": "GET",
658
+ "path": "/rooms/:roomId/sources/:id"
659
+ }
660
+ }
661
+ ],
662
+ [
663
+ "SetSources",
664
+ {
665
+ "http": {
666
+ "method": "POST",
667
+ "path": "/rooms/:roomId/sources/:id"
668
+ }
669
+ }
670
+ ],
671
+ [
672
+ "CreateThermostat",
673
+ {
674
+ "http": {
675
+ "method": "POST",
676
+ "path": "/rooms/:roomId/thermostats"
677
+ }
678
+ }
679
+ ],
680
+ [
681
+ "ListThermostats",
682
+ {
683
+ "http": {
684
+ "method": "GET",
685
+ "path": "/rooms/:roomId/thermostats"
686
+ }
687
+ }
688
+ ],
689
+ [
690
+ "UpdateThermostat",
691
+ {
692
+ "http": {
693
+ "method": "PUT",
694
+ "path": "/rooms/:roomId/thermostats/:id"
695
+ }
696
+ }
697
+ ],
698
+ [
699
+ "DeleteThermostat",
700
+ {
701
+ "http": {
702
+ "method": "DELETE",
703
+ "path": "/rooms/:roomId/thermostats/:id"
704
+ }
705
+ }
706
+ ],
707
+ [
708
+ "DescribeThermostat",
709
+ {
710
+ "http": {
711
+ "method": "GET",
712
+ "path": "/rooms/:roomId/thermostats/:id"
713
+ }
714
+ }
715
+ ],
716
+ [
717
+ "SetThermostats",
718
+ {
719
+ "http": {
720
+ "method": "POST",
721
+ "path": "/rooms/:roomId/thermostats/:id"
722
+ }
723
+ }
724
+ ],
725
+ [
726
+ "CreateWindowCovering",
727
+ {
728
+ "http": {
729
+ "method": "POST",
730
+ "path": "/rooms/:roomId/windowCoverings"
731
+ }
732
+ }
733
+ ],
734
+ [
735
+ "ListWindowCoverings",
736
+ {
737
+ "http": {
738
+ "method": "GET",
739
+ "path": "/rooms/:roomId/windowCoverings"
740
+ }
741
+ }
742
+ ],
743
+ [
744
+ "UpdateWindowCovering",
745
+ {
746
+ "http": {
747
+ "method": "PUT",
748
+ "path": "/rooms/:roomId/windowCoverings/:id"
749
+ }
750
+ }
751
+ ],
752
+ [
753
+ "DeleteWindowCovering",
754
+ {
755
+ "http": {
756
+ "method": "DELETE",
757
+ "path": "/rooms/:roomId/windowCoverings/:id"
758
+ }
759
+ }
760
+ ],
761
+ [
762
+ "DescribeWindowCovering",
763
+ {
764
+ "http": {
765
+ "method": "GET",
766
+ "path": "/rooms/:roomId/windowCoverings/:id"
767
+ }
768
+ }
769
+ ],
770
+ [
771
+ "SetWindowCoverings",
772
+ {
773
+ "http": {
774
+ "method": "POST",
775
+ "path": "/rooms/:roomId/windowCoverings/:id"
776
+ }
777
+ }
778
+ ],
779
+ [
780
+ "AddScenesToRoom",
781
+ {
782
+ "http": {
783
+ "method": "POST",
784
+ "path": "/rooms/:roomId/scenes"
785
+ }
786
+ }
787
+ ],
788
+ [
789
+ "AddDefaultScenesToRooms",
790
+ {
791
+ "http": {
792
+ "method": "POST",
793
+ "path": "/rooms/scenes/default"
794
+ }
795
+ }
796
+ ],
797
+ [
798
+ "CreateTicket",
799
+ {
800
+ "http": {
801
+ "method": "POST",
802
+ "path": "/tickets"
803
+ }
804
+ }
805
+ ],
806
+ [
807
+ "CreateTicketMessage",
808
+ {
809
+ "http": {
810
+ "method": "POST",
811
+ "path": "/tickets/:ticketId/messages"
812
+ }
813
+ }
814
+ ],
815
+ [
816
+ "DeleteTicket",
817
+ {
818
+ "http": {
819
+ "method": "DELETE",
820
+ "path": "/tickets/:ticketId"
821
+ }
822
+ }
823
+ ],
824
+ [
825
+ "DescribeTicket",
826
+ {
827
+ "http": {
828
+ "method": "GET",
829
+ "path": "/tickets/:ticketId"
830
+ }
831
+ }
832
+ ],
833
+ [
834
+ "ListTickets",
835
+ {
836
+ "http": {
837
+ "method": "GET",
838
+ "path": "/tickets"
839
+ }
840
+ }
841
+ ],
842
+ [
843
+ "UpdateMessageReadStatus",
844
+ {
845
+ "http": {
846
+ "method": "POST",
847
+ "path": "/tickets/:ticketId/readAll"
848
+ }
849
+ }
850
+ ],
851
+ [
852
+ "UpdateTicket",
853
+ {
854
+ "http": {
855
+ "method": "PUT",
856
+ "path": "/tickets/:ticketId"
857
+ }
858
+ }
859
+ ],
860
+ [
861
+ "UpdateTicketStatus",
862
+ {
863
+ "http": {
864
+ "method": "PUT",
865
+ "path": "/tickets/:ticketId/status"
866
+ }
867
+ }
868
+ ],
869
+ [
870
+ "CreateDefaultScenes",
871
+ {
872
+ "http": {
873
+ "method": "POST",
874
+ "path": "/scenes/default"
875
+ }
876
+ }
877
+ ],
878
+ [
879
+ "ScheduleSpaceEcoScenes",
880
+ {
881
+ "http": false
882
+ }
883
+ ],
884
+ [
885
+ "CreateDiscoveredDevice",
886
+ {
887
+ "http": {
888
+ "method": "POST",
889
+ "path": "/discoveredDevices"
890
+ }
891
+ }
892
+ ],
893
+ [
894
+ "ListDiscoveredDevices",
895
+ {
896
+ "http": {
897
+ "method": "GET",
898
+ "path": "/discoveredDevices"
899
+ }
900
+ }
901
+ ],
902
+ [
903
+ "UpdateDiscoveredDevice",
904
+ {
905
+ "http": {
906
+ "method": "PUT",
907
+ "path": "/discoveredDevices/:id"
908
+ }
909
+ }
910
+ ],
911
+ [
912
+ "DeleteDiscoveredDevice",
913
+ {
914
+ "http": {
915
+ "method": "DELETE",
916
+ "path": "/discoveredDevices/:id"
917
+ }
918
+ }
919
+ ],
920
+ [
921
+ "DescribeDiscoveredDevice",
922
+ {
923
+ "http": {
924
+ "method": "GET",
925
+ "path": "/discoveredDevices/:id"
926
+ }
927
+ }
928
+ ],
929
+ [
930
+ "UpsertDiscoveredDevice",
931
+ {
932
+ "http": {
933
+ "method": "POST",
934
+ "path": "/discoveredDevices/upsert"
935
+ }
936
+ }
937
+ ],
938
+ [
939
+ "CreateDiscoveredDeviceAssociation",
940
+ {
941
+ "http": {
942
+ "method": "POST",
943
+ "path": "/discoveredDevices/:id/associate"
944
+ }
945
+ }
946
+ ],
947
+ [
948
+ "CreateIntegration",
949
+ {
950
+ "http": {
951
+ "method": "POST",
952
+ "path": "/integrations"
953
+ }
954
+ }
955
+ ],
956
+ [
957
+ "UpdateIntegration",
958
+ {
959
+ "http": {
960
+ "method": "PUT",
961
+ "path": "/integrations/:id"
962
+ }
963
+ }
964
+ ],
965
+ [
966
+ "CreateIntegrationDeviceMapEntry",
967
+ {
968
+ "http": {
969
+ "method": "POST",
970
+ "path": "/integrations/:id/deviceMap"
971
+ }
972
+ }
973
+ ],
974
+ [
975
+ "DescribeIntegration",
976
+ {
977
+ "http": {
978
+ "method": "GET",
979
+ "path": "/integrations/:id"
980
+ }
981
+ }
982
+ ],
983
+ [
984
+ "DeleteIntegration",
985
+ {
986
+ "http": {
987
+ "method": "GET",
988
+ "path": "/integrations/:id"
989
+ }
990
+ }
991
+ ],
992
+ [
993
+ "ListIntegrations",
994
+ {
995
+ "http": {
996
+ "method": "GET",
997
+ "path": "/integrations/"
998
+ }
999
+ }
1000
+ ],
1001
+ [
1002
+ "UpsertSystemDevice",
1003
+ {
1004
+ "http": false
1005
+ }
1006
+ ],
1007
+ [
1008
+ "UpsertSystemReservation",
1009
+ {
1010
+ "http": false
1011
+ }
1012
+ ],
1013
+ [
1014
+ "UpsertSystemSpace",
1015
+ {
1016
+ "http": false
1017
+ }
1018
+ ],
1019
+ [
1020
+ "UpsertSystemUser",
1021
+ {
1022
+ "http": false
1023
+ }
1024
+ ],
1025
+ [
1026
+ "CreateReservation",
1027
+ {
1028
+ "http": {
1029
+ "method": "POST",
1030
+ "path": "/reservations"
1031
+ }
1032
+ }
1033
+ ],
1034
+ [
1035
+ "DeleteReservation",
1036
+ {
1037
+ "http": {
1038
+ "method": "DELETE",
1039
+ "path": "/reservations/:id"
1040
+ }
1041
+ }
1042
+ ],
1043
+ [
1044
+ "ListReservations",
1045
+ {
1046
+ "http": {
1047
+ "method": "GET",
1048
+ "path": "/reservations"
1049
+ }
1050
+ }
1051
+ ],
1052
+ [
1053
+ "ListMyReservations",
1054
+ {
1055
+ "http": {
1056
+ "method": "GET",
1057
+ "path": "/reservations/mine"
1058
+ }
1059
+ }
1060
+ ],
1061
+ [
1062
+ "UpdateReservation",
1063
+ {
1064
+ "http": {
1065
+ "method": "PUT",
1066
+ "path": "/reservations/:id"
1067
+ }
1068
+ }
1069
+ ],
1070
+ [
1071
+ "DescribeReservation",
1072
+ {
1073
+ "http": {
1074
+ "method": "GET",
1075
+ "path": "/reservations/:id"
1076
+ }
1077
+ }
1078
+ ],
1079
+ [
1080
+ "VerifyDocument",
1081
+ {
1082
+ "http": {
1083
+ "method": "POST",
1084
+ "path": "/documents/verify",
1085
+ "maxSize": "2mb"
1086
+ }
1087
+ }
1088
+ ],
1089
+ [
1090
+ "DescribeMyProperty",
1091
+ {
1092
+ "http": {
1093
+ "method": "GET",
1094
+ "path": "/properties/mine"
1095
+ }
1096
+ }
1097
+ ]
1098
+ ]