@seamapi/types 0.5.1 → 0.7.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.
@@ -559,7 +559,7 @@ export interface Routes {
559
559
  custom_redirect_url?: string | undefined;
560
560
  custom_redirect_failure_url?: string | undefined;
561
561
  accepted_providers?: Array<'akuvox' | 'august' | 'avigilon_alta' | 'brivo' | 'butterflymx' | 'schlage' | 'smartthings' | 'yale' | 'genie' | 'doorking' | 'salto' | 'lockly' | 'ttlock' | 'linear' | 'noiseaware' | 'nuki' | 'seam_relay_admin' | 'igloo' | 'kwikset' | 'minut' | 'my_2n' | 'controlbyweb' | 'nest' | 'igloohome' | 'ecobee' | 'hubitat' | 'yale_access'> | undefined;
562
- provider_category?: ('stable' | 'internal_beta') | undefined;
562
+ provider_category?: ('stable' | 'consumer_smartlocks' | 'internal_beta') | undefined;
563
563
  custom_metadata?: Record<string, string | number | null | boolean> | undefined;
564
564
  };
565
565
  commonParams: {};
@@ -732,13 +732,13 @@ export interface Routes {
732
732
  };
733
733
  '/devices/get': {
734
734
  route: '/devices/get';
735
- method: 'GET';
736
- queryParams: {
735
+ method: 'GET' | 'POST';
736
+ queryParams: {};
737
+ jsonBody: {};
738
+ commonParams: {
737
739
  device_id?: string | undefined;
738
740
  name?: string | undefined;
739
741
  };
740
- jsonBody: {};
741
- commonParams: {};
742
742
  formData: {};
743
743
  jsonResponse: {
744
744
  device: {
@@ -813,11 +813,11 @@ export interface Routes {
813
813
  };
814
814
  '/devices/list_device_providers': {
815
815
  route: '/devices/list_device_providers';
816
- method: 'GET';
816
+ method: 'GET' | 'POST';
817
817
  queryParams: {};
818
818
  jsonBody: {};
819
819
  commonParams: {
820
- provider_category?: 'stable' | undefined;
820
+ provider_category?: ('stable' | 'consumer_smartlocks') | undefined;
821
821
  };
822
822
  formData: {};
823
823
  jsonResponse: {
@@ -825,7 +825,7 @@ export interface Routes {
825
825
  device_provider_name: string;
826
826
  display_name: string;
827
827
  image_url: string;
828
- provider_categories: Array<'stable'>;
828
+ provider_categories: Array<'stable' | 'consumer_smartlocks'>;
829
829
  }>;
830
830
  };
831
831
  };
@@ -1494,6 +1494,20 @@ export interface Routes {
1494
1494
  };
1495
1495
  };
1496
1496
  };
1497
+ '/thermostats/heat': {
1498
+ route: '/thermostats/heat';
1499
+ method: 'POST';
1500
+ queryParams: {};
1501
+ jsonBody: {
1502
+ device_id: string;
1503
+ heating_set_point_celsius?: number | undefined;
1504
+ heating_set_point_fahrenheit?: number | undefined;
1505
+ sync?: boolean;
1506
+ };
1507
+ commonParams: {};
1508
+ formData: {};
1509
+ jsonResponse: {};
1510
+ };
1497
1511
  '/thermostats/list': {
1498
1512
  route: '/thermostats/list';
1499
1513
  method: 'GET' | 'POST';
@@ -1590,12 +1604,12 @@ export interface Routes {
1590
1604
  };
1591
1605
  '/webhooks/get': {
1592
1606
  route: '/webhooks/get';
1593
- method: 'GET';
1594
- queryParams: {
1607
+ method: 'GET' | 'POST';
1608
+ queryParams: {};
1609
+ jsonBody: {};
1610
+ commonParams: {
1595
1611
  webhook_id: string;
1596
1612
  };
1597
- jsonBody: {};
1598
- commonParams: {};
1599
1613
  formData: {};
1600
1614
  jsonResponse: {
1601
1615
  webhook: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "0.5.1",
3
+ "version": "0.7.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -610,7 +610,9 @@ export interface Routes {
610
610
  | 'yale_access'
611
611
  >
612
612
  | undefined
613
- provider_category?: ('stable' | 'internal_beta') | undefined
613
+ provider_category?:
614
+ | ('stable' | 'consumer_smartlocks' | 'internal_beta')
615
+ | undefined
614
616
  custom_metadata?:
615
617
  | Record<string, string | number | null | boolean>
616
618
  | undefined
@@ -795,13 +797,13 @@ export interface Routes {
795
797
  }
796
798
  '/devices/get': {
797
799
  route: '/devices/get'
798
- method: 'GET'
799
- queryParams: {
800
+ method: 'GET' | 'POST'
801
+ queryParams: {}
802
+ jsonBody: {}
803
+ commonParams: {
800
804
  device_id?: string | undefined
801
805
  name?: string | undefined
802
806
  }
803
- jsonBody: {}
804
- commonParams: {}
805
807
  formData: {}
806
808
  jsonResponse: {
807
809
  device: {
@@ -1011,11 +1013,11 @@ export interface Routes {
1011
1013
  }
1012
1014
  '/devices/list_device_providers': {
1013
1015
  route: '/devices/list_device_providers'
1014
- method: 'GET'
1016
+ method: 'GET' | 'POST'
1015
1017
  queryParams: {}
1016
1018
  jsonBody: {}
1017
1019
  commonParams: {
1018
- provider_category?: 'stable' | undefined
1020
+ provider_category?: ('stable' | 'consumer_smartlocks') | undefined
1019
1021
  }
1020
1022
  formData: {}
1021
1023
  jsonResponse: {
@@ -1023,7 +1025,7 @@ export interface Routes {
1023
1025
  device_provider_name: string
1024
1026
  display_name: string
1025
1027
  image_url: string
1026
- provider_categories: Array<'stable'>
1028
+ provider_categories: Array<'stable' | 'consumer_smartlocks'>
1027
1029
  }>
1028
1030
  }
1029
1031
  }
@@ -2001,6 +2003,20 @@ export interface Routes {
2001
2003
  }
2002
2004
  }
2003
2005
  }
2006
+ '/thermostats/heat': {
2007
+ route: '/thermostats/heat'
2008
+ method: 'POST'
2009
+ queryParams: {}
2010
+ jsonBody: {
2011
+ device_id: string
2012
+ heating_set_point_celsius?: number | undefined
2013
+ heating_set_point_fahrenheit?: number | undefined
2014
+ sync?: boolean
2015
+ }
2016
+ commonParams: {}
2017
+ formData: {}
2018
+ jsonResponse: {}
2019
+ }
2004
2020
  '/thermostats/list': {
2005
2021
  route: '/thermostats/list'
2006
2022
  method: 'GET' | 'POST'
@@ -2207,12 +2223,12 @@ export interface Routes {
2207
2223
  }
2208
2224
  '/webhooks/get': {
2209
2225
  route: '/webhooks/get'
2210
- method: 'GET'
2211
- queryParams: {
2226
+ method: 'GET' | 'POST'
2227
+ queryParams: {}
2228
+ jsonBody: {}
2229
+ commonParams: {
2212
2230
  webhook_id: string
2213
2231
  }
2214
- jsonBody: {}
2215
- commonParams: {}
2216
2232
  formData: {}
2217
2233
  jsonResponse: {
2218
2234
  webhook: {