homey-api 1.5.26 → 1.5.29

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.
@@ -837,6 +837,23 @@
837
837
  }
838
838
  }
839
839
  },
840
+ "addHomeyLicense": {
841
+ "path": "/homey/{homeyId}/license/{license}",
842
+ "method": "post",
843
+ "private": true,
844
+ "parameters": {
845
+ "homeyId": {
846
+ "in": "path",
847
+ "type": "string",
848
+ "required": true
849
+ },
850
+ "license": {
851
+ "in": "path",
852
+ "type": "string",
853
+ "required": true
854
+ }
855
+ }
856
+ },
840
857
  "createHomeyUser": {
841
858
  "path": "/homey/{homeyId}/user",
842
859
  "method": "post",
@@ -34,6 +34,10 @@
34
34
  "quantity": {
35
35
  "type": "number",
36
36
  "in": "body"
37
+ },
38
+ "options": {
39
+ "type": "object",
40
+ "in": "body"
37
41
  }
38
42
  }
39
43
  },
@@ -329,6 +333,32 @@
329
333
  }
330
334
  }
331
335
  },
336
+ "deferSubscription": {
337
+ "path": "/subscription/defer",
338
+ "method": "post",
339
+ "parameters": {
340
+ "sku": {
341
+ "type": "string",
342
+ "in": "body"
343
+ },
344
+ "packageName": {
345
+ "type": "string",
346
+ "in": "body"
347
+ },
348
+ "athomId": {
349
+ "type": "string",
350
+ "in": "body"
351
+ },
352
+ "quantity": {
353
+ "type": "number",
354
+ "in": "body"
355
+ },
356
+ "duration": {
357
+ "type": "string",
358
+ "in": "body"
359
+ }
360
+ }
361
+ },
332
362
  "getExpiredSubscriptions": {
333
363
  "path": "/subscription/expired",
334
364
  "method": "post",
@@ -343,6 +373,63 @@
343
373
  "required": true
344
374
  }
345
375
  }
376
+ },
377
+ "getOffer": {
378
+ "path": "/offer/{offerId}",
379
+ "method": "get",
380
+ "parameters": {
381
+ "offerId": {
382
+ "in": "path",
383
+ "type": "string",
384
+ "required": true
385
+ }
386
+ }
387
+ },
388
+ "redeemOffer": {
389
+ "path": "/offer/{offerId}/redeem",
390
+ "method": "post",
391
+ "parameters": {
392
+ "offerId": {
393
+ "in": "path",
394
+ "type": "string",
395
+ "required": true
396
+ },
397
+ "provider": {
398
+ "type": "string",
399
+ "in": "body"
400
+ }
401
+ }
402
+ },
403
+ "getOffers": {
404
+ "path": "/offer",
405
+ "method": "get",
406
+ "parameters": {}
407
+ },
408
+ "createOffer": {
409
+ "path": "/offer",
410
+ "method": "post",
411
+ "parameters": {
412
+ "userId": {
413
+ "type": "string",
414
+ "in": "body"
415
+ },
416
+ "expiresAt": {
417
+ "type": "string",
418
+ "in": "body"
419
+ },
420
+ "subscriptionType": {
421
+ "type": "string",
422
+ "in": "body"
423
+ },
424
+ "subscriptionQuantity": {
425
+ "type": "number",
426
+ "in": "body"
427
+ },
428
+ "subscriptionDuration": {
429
+ "type": "string",
430
+ "in": "body"
431
+ }
432
+ }
346
433
  }
347
434
  }
348
435
  }
@@ -2459,6 +2459,10 @@
2459
2459
  "x-homey-readonly": true,
2460
2460
  "type": "boolean"
2461
2461
  },
2462
+ "triggerable": {
2463
+ "x-homey-readonly": true,
2464
+ "type": "boolean"
2465
+ },
2462
2466
  "trigger": {
2463
2467
  "type": "object",
2464
2468
  "required": [
@@ -2863,6 +2867,10 @@
2863
2867
  "x-homey-readonly": true,
2864
2868
  "type": "boolean"
2865
2869
  },
2870
+ "triggerable": {
2871
+ "x-homey-readonly": true,
2872
+ "type": "boolean"
2873
+ },
2866
2874
  "folder": {
2867
2875
  "type": [
2868
2876
  "string",
@@ -2906,6 +2914,25 @@
2906
2914
  }
2907
2915
  },
2908
2916
  "operations": {
2917
+ "triggerAdvancedFlow": {
2918
+ "method": "POST",
2919
+ "path": "/advancedflow/:id/trigger",
2920
+ "private": false,
2921
+ "scopes": [
2922
+ "homey.flow.start"
2923
+ ],
2924
+ "parameters": {
2925
+ "id": {
2926
+ "in": "path",
2927
+ "required": true,
2928
+ "type": "string"
2929
+ },
2930
+ "state": {
2931
+ "in": "body",
2932
+ "root": true
2933
+ }
2934
+ }
2935
+ },
2909
2936
  "deleteAdvancedFlow": {
2910
2937
  "method": "DELETE",
2911
2938
  "path": "/advancedflow/:id",
@@ -5375,6 +5402,24 @@
5375
5402
  ],
5376
5403
  "parameters": {}
5377
5404
  },
5405
+ "stopCPUProfile": {
5406
+ "method": "POST",
5407
+ "path": "/cpuprofile/stop",
5408
+ "private": true,
5409
+ "scopes": [
5410
+ "homey.system.readonly"
5411
+ ],
5412
+ "parameters": {}
5413
+ },
5414
+ "startCPUProfile": {
5415
+ "method": "POST",
5416
+ "path": "/cpuprofile/start",
5417
+ "private": true,
5418
+ "scopes": [
5419
+ "homey.system.readonly"
5420
+ ],
5421
+ "parameters": {}
5422
+ },
5378
5423
  "createHeapdump": {
5379
5424
  "method": "POST",
5380
5425
  "path": "/heapdump",
@@ -1210,6 +1210,8 @@
1210
1210
 
1211
1211
  broken: boolean;
1212
1212
 
1213
+ triggerable: boolean;
1214
+
1213
1215
  folder: string | null;
1214
1216
 
1215
1217
  cards: object;
@@ -1234,6 +1236,8 @@
1234
1236
 
1235
1237
  broken: boolean;
1236
1238
 
1239
+ triggerable: boolean;
1240
+
1237
1241
  trigger: object;
1238
1242
 
1239
1243
  conditions: Array<any>;
@@ -6641,6 +6645,29 @@
6641
6645
 
6642
6646
 
6643
6647
 
6648
+ triggerAdvancedFlow(
6649
+
6650
+
6651
+
6652
+
6653
+ opts: {
6654
+
6655
+
6656
+ id: string,
6657
+
6658
+
6659
+
6660
+ state: *,
6661
+
6662
+
6663
+ },
6664
+
6665
+
6666
+
6667
+
6668
+ ):
6669
+ Promise<any>;
6670
+
6644
6671
  deleteAdvancedFlow(
6645
6672
 
6646
6673
 
@@ -2534,6 +2534,29 @@
2534
2534
 
2535
2535
 
2536
2536
 
2537
+ ):
2538
+ Promise<any>;
2539
+
2540
+ addHomeyLicense(
2541
+
2542
+
2543
+
2544
+
2545
+ opts: {
2546
+
2547
+
2548
+ homeyId: string,
2549
+
2550
+
2551
+
2552
+ license: string,
2553
+
2554
+
2555
+ },
2556
+
2557
+
2558
+
2559
+
2537
2560
  ):
2538
2561
  Promise<any>;
2539
2562
 
@@ -4209,6 +4232,10 @@
4209
4232
  quantity: number,
4210
4233
 
4211
4234
 
4235
+
4236
+ options: object,
4237
+
4238
+
4212
4239
  },
4213
4240
 
4214
4241
 
@@ -4619,6 +4646,41 @@
4619
4646
 
4620
4647
 
4621
4648
 
4649
+ ):
4650
+ Promise<any>;
4651
+
4652
+ deferSubscription(
4653
+
4654
+
4655
+
4656
+
4657
+ opts: {
4658
+
4659
+
4660
+ sku: string,
4661
+
4662
+
4663
+
4664
+ packageName: string,
4665
+
4666
+
4667
+
4668
+ athomId: string,
4669
+
4670
+
4671
+
4672
+ quantity: number,
4673
+
4674
+
4675
+
4676
+ duration: string,
4677
+
4678
+
4679
+ },
4680
+
4681
+
4682
+
4683
+
4622
4684
  ):
4623
4685
  Promise<any>;
4624
4686
 
@@ -4642,6 +4704,88 @@
4642
4704
 
4643
4705
 
4644
4706
 
4707
+ ):
4708
+ Promise<any>;
4709
+
4710
+ getOffer(
4711
+
4712
+
4713
+
4714
+
4715
+ opts: {
4716
+
4717
+
4718
+ offerId: string,
4719
+
4720
+
4721
+ },
4722
+
4723
+
4724
+
4725
+
4726
+ ):
4727
+ Promise<any>;
4728
+
4729
+ redeemOffer(
4730
+
4731
+
4732
+
4733
+
4734
+ opts: {
4735
+
4736
+
4737
+ offerId: string,
4738
+
4739
+
4740
+
4741
+ provider: string,
4742
+
4743
+
4744
+ },
4745
+
4746
+
4747
+
4748
+
4749
+ ):
4750
+ Promise<any>;
4751
+
4752
+ getOffers(
4753
+
4754
+ ):
4755
+ Promise<any>;
4756
+
4757
+ createOffer(
4758
+
4759
+
4760
+
4761
+
4762
+ opts: {
4763
+
4764
+
4765
+ userId: string,
4766
+
4767
+
4768
+
4769
+ expiresAt: string,
4770
+
4771
+
4772
+
4773
+ subscriptionType: string,
4774
+
4775
+
4776
+
4777
+ subscriptionQuantity: number,
4778
+
4779
+
4780
+
4781
+ subscriptionDuration: string,
4782
+
4783
+
4784
+ },
4785
+
4786
+
4787
+
4788
+
4645
4789
  ):
4646
4790
  Promise<any>;
4647
4791
 
@@ -5532,6 +5676,19 @@
5532
5676
  ):
5533
5677
  string;
5534
5678
 
5679
+ promiseAny(
5680
+
5681
+
5682
+
5683
+
5684
+ promises: Array<Promise>,
5685
+
5686
+
5687
+
5688
+
5689
+ ):
5690
+ Promise<any>;
5691
+
5535
5692
  }
5536
5693
 
5537
5694
 
@@ -6299,6 +6456,8 @@
6299
6456
 
6300
6457
  broken: boolean;
6301
6458
 
6459
+ triggerable: boolean;
6460
+
6302
6461
  folder: string | null;
6303
6462
 
6304
6463
  cards: object;
@@ -6323,6 +6482,8 @@
6323
6482
 
6324
6483
  broken: boolean;
6325
6484
 
6485
+ triggerable: boolean;
6486
+
6326
6487
  trigger: object;
6327
6488
 
6328
6489
  conditions: Array<any>;
@@ -12078,6 +12239,29 @@
12078
12239
 
12079
12240
 
12080
12241
 
12242
+ triggerAdvancedFlow(
12243
+
12244
+
12245
+
12246
+
12247
+ opts: {
12248
+
12249
+
12250
+ id: string,
12251
+
12252
+
12253
+
12254
+ state: *,
12255
+
12256
+
12257
+ },
12258
+
12259
+
12260
+
12261
+
12262
+ ):
12263
+ Promise<any>;
12264
+
12081
12265
  deleteAdvancedFlow(
12082
12266
 
12083
12267
 
@@ -14223,6 +14407,16 @@
14223
14407
 
14224
14408
  runGC(
14225
14409
 
14410
+ ):
14411
+ Promise<any>;
14412
+
14413
+ stopCPUProfile(
14414
+
14415
+ ):
14416
+ Promise<any>;
14417
+
14418
+ startCPUProfile(
14419
+
14226
14420
  ):
14227
14421
  Promise<any>;
14228
14422
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homey-api",
3
- "version": "1.5.26",
3
+ "version": "1.5.29",
4
4
  "description": "Homey API",
5
5
  "main": "index.js",
6
6
  "types": "assets/types/homey-api.d.ts",