@seamapi/types 0.2.2 → 0.4.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.
@@ -501,8 +501,8 @@ export interface Routes {
501
501
  route: '/client_sessions/create';
502
502
  method: 'POST' | 'PUT';
503
503
  queryParams: {};
504
- jsonBody: any | {
505
- user_identifier_key: string;
504
+ jsonBody: {
505
+ user_identifier_key?: string | undefined;
506
506
  connect_webview_ids?: string[] | undefined;
507
507
  connected_account_ids?: string[] | undefined;
508
508
  };
@@ -512,6 +512,7 @@ export interface Routes {
512
512
  client_session: {
513
513
  token: string;
514
514
  client_session_id: string;
515
+ user_identifier_key: string | null;
515
516
  created_at: string;
516
517
  };
517
518
  };
@@ -532,7 +533,11 @@ export interface Routes {
532
533
  method: 'POST' | 'GET';
533
534
  queryParams: {};
534
535
  jsonBody: {};
535
- commonParams: {};
536
+ commonParams: {
537
+ client_session_id?: string | undefined;
538
+ user_identifier_key?: string | undefined;
539
+ without_user_identifier_key?: boolean | undefined;
540
+ };
536
541
  formData: {};
537
542
  jsonResponse: {
538
543
  client_sessions: Array<{
@@ -553,7 +558,7 @@ export interface Routes {
553
558
  device_selection_mode?: ('none' | 'single' | 'multiple') | undefined;
554
559
  custom_redirect_url?: string | undefined;
555
560
  custom_redirect_failure_url?: string | undefined;
556
- 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'> | undefined;
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;
557
562
  provider_category?: ('stable' | 'internal_beta') | undefined;
558
563
  custom_metadata?: Record<string, string | number | null | boolean> | undefined;
559
564
  };
@@ -900,7 +905,7 @@ export interface Routes {
900
905
  };
901
906
  '/events/get': {
902
907
  route: '/events/get';
903
- method: 'GET';
908
+ method: 'GET' | 'POST';
904
909
  queryParams: {};
905
910
  jsonBody: {};
906
911
  commonParams: {
@@ -915,8 +920,8 @@ export interface Routes {
915
920
  device_id?: string | undefined;
916
921
  event_type: string;
917
922
  workspace_id: string;
918
- created_at: Date;
919
- occurred_at: Date;
923
+ created_at: string;
924
+ occurred_at: string;
920
925
  } | undefined;
921
926
  message?: string | undefined;
922
927
  };
@@ -944,8 +949,8 @@ export interface Routes {
944
949
  device_id?: string | undefined;
945
950
  event_type: string;
946
951
  workspace_id: string;
947
- created_at: Date;
948
- occurred_at: Date;
952
+ created_at: string;
953
+ occurred_at: string;
949
954
  }> | undefined;
950
955
  message?: string | undefined;
951
956
  };
@@ -960,7 +965,7 @@ export interface Routes {
960
965
  jsonResponse: {
961
966
  ok: boolean;
962
967
  msg: 'I\u2019m one with the Force. The Force is with me.';
963
- last_service_evaluation_at: string;
968
+ last_service_evaluation_at?: string | undefined;
964
969
  service_health_statuses: Array<{
965
970
  service: string;
966
971
  status: 'healthy' | 'degraded' | 'down';
@@ -978,7 +983,7 @@ export interface Routes {
978
983
  jsonResponse: {
979
984
  ok: boolean;
980
985
  msg: 'I\u2019m one with the Force. The Force is with me.';
981
- last_service_evaluation_at: string;
986
+ last_service_evaluation_at?: string | undefined;
982
987
  service_health_statuses: Array<{
983
988
  service: string;
984
989
  status: 'healthy' | 'degraded' | 'down';
@@ -1532,35 +1537,6 @@ export interface Routes {
1532
1537
  }>;
1533
1538
  };
1534
1539
  };
1535
- '/thermostats/set_cooling_set_point': {
1536
- route: '/thermostats/set_cooling_set_point';
1537
- method: 'POST';
1538
- queryParams: {};
1539
- jsonBody: {
1540
- device_id: string;
1541
- cooling_set_point_celsius?: number | undefined;
1542
- cooling_set_point_fahrenheit?: number | undefined;
1543
- sync?: boolean;
1544
- };
1545
- commonParams: {};
1546
- formData: {};
1547
- jsonResponse: {};
1548
- };
1549
- '/thermostats/set_mode': {
1550
- route: '/thermostats/set_mode';
1551
- method: 'POST';
1552
- queryParams: {};
1553
- jsonBody: {
1554
- device_id: string;
1555
- automatic_heating_enabled?: boolean | undefined;
1556
- automatic_cooling_enabled?: boolean | undefined;
1557
- hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heatcool') | undefined;
1558
- sync?: boolean;
1559
- };
1560
- commonParams: {};
1561
- formData: {};
1562
- jsonResponse: {};
1563
- };
1564
1540
  '/thermostats/update': {
1565
1541
  route: '/thermostats/update';
1566
1542
  method: 'POST';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "0.2.2",
3
+ "version": "0.4.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -522,19 +522,18 @@ export interface Routes {
522
522
  route: '/client_sessions/create'
523
523
  method: 'POST' | 'PUT'
524
524
  queryParams: {}
525
- jsonBody:
526
- | any
527
- | {
528
- user_identifier_key: string
529
- connect_webview_ids?: string[] | undefined
530
- connected_account_ids?: string[] | undefined
531
- }
525
+ jsonBody: {
526
+ user_identifier_key?: string | undefined
527
+ connect_webview_ids?: string[] | undefined
528
+ connected_account_ids?: string[] | undefined
529
+ }
532
530
  commonParams: {}
533
531
  formData: {}
534
532
  jsonResponse: {
535
533
  client_session: {
536
534
  token: string
537
535
  client_session_id: string
536
+ user_identifier_key: string | null
538
537
  created_at: string
539
538
  }
540
539
  }
@@ -555,7 +554,11 @@ export interface Routes {
555
554
  method: 'POST' | 'GET'
556
555
  queryParams: {}
557
556
  jsonBody: {}
558
- commonParams: {}
557
+ commonParams: {
558
+ client_session_id?: string | undefined
559
+ user_identifier_key?: string | undefined
560
+ without_user_identifier_key?: boolean | undefined
561
+ }
559
562
  formData: {}
560
563
  jsonResponse: {
561
564
  client_sessions: Array<{
@@ -604,6 +607,7 @@ export interface Routes {
604
607
  | 'igloohome'
605
608
  | 'ecobee'
606
609
  | 'hubitat'
610
+ | 'yale_access'
607
611
  >
608
612
  | undefined
609
613
  provider_category?: ('stable' | 'internal_beta') | undefined
@@ -1211,7 +1215,7 @@ export interface Routes {
1211
1215
  }
1212
1216
  '/events/get': {
1213
1217
  route: '/events/get'
1214
- method: 'GET'
1218
+ method: 'GET' | 'POST'
1215
1219
  queryParams: {}
1216
1220
  jsonBody: {}
1217
1221
  commonParams: {
@@ -1227,8 +1231,8 @@ export interface Routes {
1227
1231
  device_id?: string | undefined
1228
1232
  event_type: string
1229
1233
  workspace_id: string
1230
- created_at: Date
1231
- occurred_at: Date
1234
+ created_at: string
1235
+ occurred_at: string
1232
1236
  }
1233
1237
  | undefined
1234
1238
  message?: string | undefined
@@ -1326,8 +1330,8 @@ export interface Routes {
1326
1330
  device_id?: string | undefined
1327
1331
  event_type: string
1328
1332
  workspace_id: string
1329
- created_at: Date
1330
- occurred_at: Date
1333
+ created_at: string
1334
+ occurred_at: string
1331
1335
  }>
1332
1336
  | undefined
1333
1337
  message?: string | undefined
@@ -1343,7 +1347,7 @@ export interface Routes {
1343
1347
  jsonResponse: {
1344
1348
  ok: boolean
1345
1349
  msg: 'I\u2019m one with the Force. The Force is with me.'
1346
- last_service_evaluation_at: string
1350
+ last_service_evaluation_at?: string | undefined
1347
1351
  service_health_statuses: Array<{
1348
1352
  service: string
1349
1353
  status: 'healthy' | 'degraded' | 'down'
@@ -1361,7 +1365,7 @@ export interface Routes {
1361
1365
  jsonResponse: {
1362
1366
  ok: boolean
1363
1367
  msg: 'I\u2019m one with the Force. The Force is with me.'
1364
- last_service_evaluation_at: string
1368
+ last_service_evaluation_at?: string | undefined
1365
1369
  service_health_statuses: Array<{
1366
1370
  service: string
1367
1371
  status: 'healthy' | 'degraded' | 'down'
@@ -2150,35 +2154,6 @@ export interface Routes {
2150
2154
  }>
2151
2155
  }
2152
2156
  }
2153
- '/thermostats/set_cooling_set_point': {
2154
- route: '/thermostats/set_cooling_set_point'
2155
- method: 'POST'
2156
- queryParams: {}
2157
- jsonBody: {
2158
- device_id: string
2159
- cooling_set_point_celsius?: number | undefined
2160
- cooling_set_point_fahrenheit?: number | undefined
2161
- sync?: boolean
2162
- }
2163
- commonParams: {}
2164
- formData: {}
2165
- jsonResponse: {}
2166
- }
2167
- '/thermostats/set_mode': {
2168
- route: '/thermostats/set_mode'
2169
- method: 'POST'
2170
- queryParams: {}
2171
- jsonBody: {
2172
- device_id: string
2173
- automatic_heating_enabled?: boolean | undefined
2174
- automatic_cooling_enabled?: boolean | undefined
2175
- hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heatcool') | undefined
2176
- sync?: boolean
2177
- }
2178
- commonParams: {}
2179
- formData: {}
2180
- jsonResponse: {}
2181
- }
2182
2157
  '/thermostats/update': {
2183
2158
  route: '/thermostats/update'
2184
2159
  method: 'POST'