@seamapi/types 1.311.0 → 1.312.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.
@@ -14231,31 +14231,1196 @@ export interface Routes {
14231
14231
  formData: {}
14232
14232
  jsonResponse: {
14233
14233
  event?:
14234
- | {
14235
- event_id: string
14236
- device_id?: string | undefined
14237
- action_attempt_id?: string | undefined
14238
- acs_credential_id?: string | undefined
14239
- acs_user_id?: string | undefined
14240
- acs_system_id?: string | undefined
14241
- client_session_id?: string | undefined
14242
- enrollment_automation_id?: string | undefined
14243
- event_type: string
14244
- workspace_id: string
14245
- created_at: string
14246
- occurred_at: string
14247
- event_description: string
14248
- thermostat_schedule_id?: (string | undefined) | null
14249
- is_fallback_climate_preset?: boolean | undefined
14250
- climate_preset_key?: string | undefined
14251
- hvac_mode_setting?: string | undefined
14252
- fan_mode_setting?: string | undefined
14253
- cooling_set_point_celsius?: number | undefined
14254
- heating_set_point_celsius?: number | undefined
14255
- cooling_set_point_fahrenheit?: number | undefined
14256
- heating_set_point_fahrenheit?: number | undefined
14257
- method?: string | undefined
14258
- }
14234
+ | (
14235
+ | {
14236
+ /** The ID of the event. */
14237
+ event_id: string
14238
+ /** The ID of the workspace. */
14239
+ workspace_id: string
14240
+ /** The time when the event was created. */
14241
+ created_at: string
14242
+ /** The time when the event occurred. */
14243
+ occurred_at: string
14244
+ /** The ID of the access code. */
14245
+ access_code_id: string
14246
+ /** The ID of the device. */
14247
+ device_id: string
14248
+ /** The ID of the connected account. */
14249
+ connected_account_id: string
14250
+ event_type: 'access_code.created'
14251
+ }
14252
+ | {
14253
+ /** The ID of the event. */
14254
+ event_id: string
14255
+ /** The ID of the workspace. */
14256
+ workspace_id: string
14257
+ /** The time when the event was created. */
14258
+ created_at: string
14259
+ /** The time when the event occurred. */
14260
+ occurred_at: string
14261
+ /** The ID of the access code. */
14262
+ access_code_id: string
14263
+ /** The ID of the device. */
14264
+ device_id: string
14265
+ /** The ID of the connected account. */
14266
+ connected_account_id: string
14267
+ event_type: 'access_code.changed'
14268
+ }
14269
+ | {
14270
+ /** The ID of the event. */
14271
+ event_id: string
14272
+ /** The ID of the workspace. */
14273
+ workspace_id: string
14274
+ /** The time when the event was created. */
14275
+ created_at: string
14276
+ /** The time when the event occurred. */
14277
+ occurred_at: string
14278
+ /** The ID of the access code. */
14279
+ access_code_id: string
14280
+ /** The ID of the device. */
14281
+ device_id: string
14282
+ /** The ID of the connected account. */
14283
+ connected_account_id: string
14284
+ event_type: 'access_code.scheduled_on_device'
14285
+ /** The code of the access code. */
14286
+ code: string
14287
+ }
14288
+ | {
14289
+ /** The ID of the event. */
14290
+ event_id: string
14291
+ /** The ID of the workspace. */
14292
+ workspace_id: string
14293
+ /** The time when the event was created. */
14294
+ created_at: string
14295
+ /** The time when the event occurred. */
14296
+ occurred_at: string
14297
+ /** The ID of the access code. */
14298
+ access_code_id: string
14299
+ /** The ID of the device. */
14300
+ device_id: string
14301
+ /** The ID of the connected account. */
14302
+ connected_account_id: string
14303
+ event_type: 'access_code.set_on_device'
14304
+ /** The code of the access code. */
14305
+ code: string
14306
+ }
14307
+ | {
14308
+ /** The ID of the event. */
14309
+ event_id: string
14310
+ /** The ID of the workspace. */
14311
+ workspace_id: string
14312
+ /** The time when the event was created. */
14313
+ created_at: string
14314
+ /** The time when the event occurred. */
14315
+ occurred_at: string
14316
+ /** The ID of the access code. */
14317
+ access_code_id: string
14318
+ /** The ID of the device. */
14319
+ device_id: string
14320
+ /** The ID of the connected account. */
14321
+ connected_account_id: string
14322
+ event_type: 'access_code.removed_from_device'
14323
+ }
14324
+ | {
14325
+ /** The ID of the event. */
14326
+ event_id: string
14327
+ /** The ID of the workspace. */
14328
+ workspace_id: string
14329
+ /** The time when the event was created. */
14330
+ created_at: string
14331
+ /** The time when the event occurred. */
14332
+ occurred_at: string
14333
+ /** The ID of the access code. */
14334
+ access_code_id: string
14335
+ /** The ID of the device. */
14336
+ device_id: string
14337
+ /** The ID of the connected account. */
14338
+ connected_account_id: string
14339
+ event_type: 'access_code.delay_in_setting_on_device'
14340
+ }
14341
+ | {
14342
+ /** The ID of the event. */
14343
+ event_id: string
14344
+ /** The ID of the workspace. */
14345
+ workspace_id: string
14346
+ /** The time when the event was created. */
14347
+ created_at: string
14348
+ /** The time when the event occurred. */
14349
+ occurred_at: string
14350
+ /** The ID of the access code. */
14351
+ access_code_id: string
14352
+ /** The ID of the device. */
14353
+ device_id: string
14354
+ /** The ID of the connected account. */
14355
+ connected_account_id: string
14356
+ event_type: 'access_code.failed_to_set_on_device'
14357
+ }
14358
+ | {
14359
+ /** The ID of the event. */
14360
+ event_id: string
14361
+ /** The ID of the workspace. */
14362
+ workspace_id: string
14363
+ /** The time when the event was created. */
14364
+ created_at: string
14365
+ /** The time when the event occurred. */
14366
+ occurred_at: string
14367
+ /** The ID of the access code. */
14368
+ access_code_id: string
14369
+ /** The ID of the device. */
14370
+ device_id: string
14371
+ /** The ID of the connected account. */
14372
+ connected_account_id: string
14373
+ event_type: 'access_code.deleted'
14374
+ /** The code of the access code. */
14375
+ code: string | null
14376
+ }
14377
+ | {
14378
+ /** The ID of the event. */
14379
+ event_id: string
14380
+ /** The ID of the workspace. */
14381
+ workspace_id: string
14382
+ /** The time when the event was created. */
14383
+ created_at: string
14384
+ /** The time when the event occurred. */
14385
+ occurred_at: string
14386
+ /** The ID of the access code. */
14387
+ access_code_id: string
14388
+ /** The ID of the device. */
14389
+ device_id: string
14390
+ /** The ID of the connected account. */
14391
+ connected_account_id: string
14392
+ event_type: 'access_code.delay_in_removing_from_device'
14393
+ }
14394
+ | {
14395
+ /** The ID of the event. */
14396
+ event_id: string
14397
+ /** The ID of the workspace. */
14398
+ workspace_id: string
14399
+ /** The time when the event was created. */
14400
+ created_at: string
14401
+ /** The time when the event occurred. */
14402
+ occurred_at: string
14403
+ /** The ID of the access code. */
14404
+ access_code_id: string
14405
+ /** The ID of the device. */
14406
+ device_id: string
14407
+ /** The ID of the connected account. */
14408
+ connected_account_id: string
14409
+ event_type: 'access_code.failed_to_remove_from_device'
14410
+ }
14411
+ | {
14412
+ /** The ID of the event. */
14413
+ event_id: string
14414
+ /** The ID of the workspace. */
14415
+ workspace_id: string
14416
+ /** The time when the event was created. */
14417
+ created_at: string
14418
+ /** The time when the event occurred. */
14419
+ occurred_at: string
14420
+ /** The ID of the access code. */
14421
+ access_code_id: string
14422
+ /** The ID of the device. */
14423
+ device_id: string
14424
+ /** The ID of the connected account. */
14425
+ connected_account_id: string
14426
+ event_type: 'access_code.modified_external_to_seam'
14427
+ }
14428
+ | {
14429
+ /** The ID of the event. */
14430
+ event_id: string
14431
+ /** The ID of the workspace. */
14432
+ workspace_id: string
14433
+ /** The time when the event was created. */
14434
+ created_at: string
14435
+ /** The time when the event occurred. */
14436
+ occurred_at: string
14437
+ /** The ID of the access code. */
14438
+ access_code_id: string
14439
+ /** The ID of the device. */
14440
+ device_id: string
14441
+ /** The ID of the connected account. */
14442
+ connected_account_id: string
14443
+ event_type: 'access_code.deleted_external_to_seam'
14444
+ }
14445
+ | {
14446
+ /** The ID of the event. */
14447
+ event_id: string
14448
+ /** The ID of the workspace. */
14449
+ workspace_id: string
14450
+ /** The time when the event was created. */
14451
+ created_at: string
14452
+ /** The time when the event occurred. */
14453
+ occurred_at: string
14454
+ /** The ID of the access code. */
14455
+ access_code_id: string
14456
+ /** The ID of the device. */
14457
+ device_id: string
14458
+ /** The ID of the connected account. */
14459
+ connected_account_id: string
14460
+ event_type: 'access_code.backup_access_code_pulled'
14461
+ backup_access_code_id: string
14462
+ }
14463
+ | {
14464
+ /** The ID of the event. */
14465
+ event_id: string
14466
+ /** The ID of the workspace. */
14467
+ workspace_id: string
14468
+ /** The time when the event was created. */
14469
+ created_at: string
14470
+ /** The time when the event occurred. */
14471
+ occurred_at: string
14472
+ /** The ID of the access code. */
14473
+ access_code_id: string
14474
+ /** The ID of the device. */
14475
+ device_id: string
14476
+ /** The ID of the connected account. */
14477
+ connected_account_id: string
14478
+ event_type: 'access_code.unmanaged.converted_to_managed'
14479
+ }
14480
+ | {
14481
+ /** The ID of the event. */
14482
+ event_id: string
14483
+ /** The ID of the workspace. */
14484
+ workspace_id: string
14485
+ /** The time when the event was created. */
14486
+ created_at: string
14487
+ /** The time when the event occurred. */
14488
+ occurred_at: string
14489
+ /** The ID of the access code. */
14490
+ access_code_id: string
14491
+ /** The ID of the device. */
14492
+ device_id: string
14493
+ /** The ID of the connected account. */
14494
+ connected_account_id: string
14495
+ event_type: 'access_code.unmanaged.failed_to_convert_to_managed'
14496
+ }
14497
+ | {
14498
+ /** The ID of the event. */
14499
+ event_id: string
14500
+ /** The ID of the workspace. */
14501
+ workspace_id: string
14502
+ /** The time when the event was created. */
14503
+ created_at: string
14504
+ /** The time when the event occurred. */
14505
+ occurred_at: string
14506
+ /** The ID of the access code. */
14507
+ access_code_id: string
14508
+ /** The ID of the device. */
14509
+ device_id: string
14510
+ /** The ID of the connected account. */
14511
+ connected_account_id: string
14512
+ event_type: 'access_code.unmanaged.created'
14513
+ }
14514
+ | {
14515
+ /** The ID of the event. */
14516
+ event_id: string
14517
+ /** The ID of the workspace. */
14518
+ workspace_id: string
14519
+ /** The time when the event was created. */
14520
+ created_at: string
14521
+ /** The time when the event occurred. */
14522
+ occurred_at: string
14523
+ /** The ID of the access code. */
14524
+ access_code_id: string
14525
+ /** The ID of the device. */
14526
+ device_id: string
14527
+ /** The ID of the connected account. */
14528
+ connected_account_id: string
14529
+ event_type: 'access_code.unmanaged.removed'
14530
+ }
14531
+ | {
14532
+ /** The ID of the event. */
14533
+ event_id: string
14534
+ /** The ID of the workspace. */
14535
+ workspace_id: string
14536
+ /** The time when the event was created. */
14537
+ created_at: string
14538
+ /** The time when the event occurred. */
14539
+ occurred_at: string
14540
+ /** ID of the connected account.
14541
+ * @deprecated Will be removed. */
14542
+ connected_account_id?: string | undefined
14543
+ /** ID of the ACS system. */
14544
+ acs_system_id: string
14545
+ event_type: 'acs_system.connected'
14546
+ }
14547
+ | {
14548
+ /** The ID of the event. */
14549
+ event_id: string
14550
+ /** The ID of the workspace. */
14551
+ workspace_id: string
14552
+ /** The time when the event was created. */
14553
+ created_at: string
14554
+ /** The time when the event occurred. */
14555
+ occurred_at: string
14556
+ /** ID of the connected account.
14557
+ * @deprecated Will be removed. */
14558
+ connected_account_id?: string | undefined
14559
+ /** ID of the ACS system. */
14560
+ acs_system_id: string
14561
+ event_type: 'acs_system.added'
14562
+ }
14563
+ | {
14564
+ /** The ID of the event. */
14565
+ event_id: string
14566
+ /** The ID of the workspace. */
14567
+ workspace_id: string
14568
+ /** The time when the event was created. */
14569
+ created_at: string
14570
+ /** The time when the event occurred. */
14571
+ occurred_at: string
14572
+ /** ID of the connected account.
14573
+ * @deprecated Will be removed. */
14574
+ connected_account_id?: string | undefined
14575
+ /** ID of the ACS system. */
14576
+ acs_system_id: string
14577
+ event_type: 'acs_system.disconnected'
14578
+ }
14579
+ | {
14580
+ /** The ID of the event. */
14581
+ event_id: string
14582
+ /** The ID of the workspace. */
14583
+ workspace_id: string
14584
+ /** The time when the event was created. */
14585
+ created_at: string
14586
+ /** The time when the event occurred. */
14587
+ occurred_at: string
14588
+ /** ID of the connected account.
14589
+ * @deprecated Will be removed. */
14590
+ connected_account_id?: string | undefined
14591
+ /** ID of the ACS system. */
14592
+ acs_system_id: string
14593
+ acs_credential_id: string
14594
+ event_type: 'acs_credential.deleted'
14595
+ }
14596
+ | {
14597
+ /** The ID of the event. */
14598
+ event_id: string
14599
+ /** The ID of the workspace. */
14600
+ workspace_id: string
14601
+ /** The time when the event was created. */
14602
+ created_at: string
14603
+ /** The time when the event occurred. */
14604
+ occurred_at: string
14605
+ /** ID of the connected account.
14606
+ * @deprecated Will be removed. */
14607
+ connected_account_id?: string | undefined
14608
+ /** ID of the ACS system. */
14609
+ acs_system_id: string
14610
+ acs_credential_id: string
14611
+ event_type: 'acs_credential.issued'
14612
+ }
14613
+ | {
14614
+ /** The ID of the event. */
14615
+ event_id: string
14616
+ /** The ID of the workspace. */
14617
+ workspace_id: string
14618
+ /** The time when the event was created. */
14619
+ created_at: string
14620
+ /** The time when the event occurred. */
14621
+ occurred_at: string
14622
+ /** ID of the connected account.
14623
+ * @deprecated Will be removed. */
14624
+ connected_account_id?: string | undefined
14625
+ /** ID of the ACS system. */
14626
+ acs_system_id: string
14627
+ acs_user_id: string
14628
+ event_type: 'acs_user.deleted'
14629
+ }
14630
+ | {
14631
+ /** The ID of the event. */
14632
+ event_id: string
14633
+ /** The ID of the workspace. */
14634
+ workspace_id: string
14635
+ /** The time when the event was created. */
14636
+ created_at: string
14637
+ /** The time when the event occurred. */
14638
+ occurred_at: string
14639
+ /** ID of the connected account.
14640
+ * @deprecated Will be removed. */
14641
+ connected_account_id?: string | undefined
14642
+ /** ID of the ACS system. */
14643
+ acs_system_id: string
14644
+ /** ID of the ACS encoder. */
14645
+ acs_encoder_id: string
14646
+ event_type: 'acs_encoder.added'
14647
+ }
14648
+ | {
14649
+ /** The ID of the event. */
14650
+ event_id: string
14651
+ /** The ID of the workspace. */
14652
+ workspace_id: string
14653
+ /** The time when the event was created. */
14654
+ created_at: string
14655
+ /** The time when the event occurred. */
14656
+ occurred_at: string
14657
+ /** ID of the connected account.
14658
+ * @deprecated Will be removed. */
14659
+ connected_account_id?: string | undefined
14660
+ /** ID of the ACS system. */
14661
+ acs_system_id: string
14662
+ /** ID of the ACS encoder. */
14663
+ acs_encoder_id: string
14664
+ event_type: 'acs_encoder.removed'
14665
+ }
14666
+ | {
14667
+ /** The ID of the event. */
14668
+ event_id: string
14669
+ /** The ID of the workspace. */
14670
+ workspace_id: string
14671
+ /** The time when the event was created. */
14672
+ created_at: string
14673
+ /** The time when the event occurred. */
14674
+ occurred_at: string
14675
+ /** ID of the client session. */
14676
+ client_session_id: string
14677
+ event_type: 'client_session.deleted'
14678
+ }
14679
+ | {
14680
+ /** The ID of the event. */
14681
+ event_id: string
14682
+ /** The ID of the workspace. */
14683
+ workspace_id: string
14684
+ /** The time when the event was created. */
14685
+ created_at: string
14686
+ /** The time when the event occurred. */
14687
+ occurred_at: string
14688
+ /** ID of the connected account. */
14689
+ connected_account_id: string
14690
+ event_type: 'connected_account.connected'
14691
+ /** ID of the connect webview. */
14692
+ connect_webview_id: string
14693
+ }
14694
+ | {
14695
+ /** The ID of the event. */
14696
+ event_id: string
14697
+ /** The ID of the workspace. */
14698
+ workspace_id: string
14699
+ /** The time when the event was created. */
14700
+ created_at: string
14701
+ /** The time when the event occurred. */
14702
+ occurred_at: string
14703
+ /** ID of the connected account. */
14704
+ connected_account_id: string
14705
+ event_type: 'connected_account.created'
14706
+ /** ID of the connect webview. */
14707
+ connect_webview_id: string
14708
+ }
14709
+ | {
14710
+ /** The ID of the event. */
14711
+ event_id: string
14712
+ /** The ID of the workspace. */
14713
+ workspace_id: string
14714
+ /** The time when the event was created. */
14715
+ created_at: string
14716
+ /** The time when the event occurred. */
14717
+ occurred_at: string
14718
+ /** ID of the connected account. */
14719
+ connected_account_id: string
14720
+ event_type: 'connected_account.successful_login'
14721
+ /** ID of the connect webview. */
14722
+ connect_webview_id: string
14723
+ }
14724
+ | {
14725
+ /** The ID of the event. */
14726
+ event_id: string
14727
+ /** The ID of the workspace. */
14728
+ workspace_id: string
14729
+ /** The time when the event was created. */
14730
+ created_at: string
14731
+ /** The time when the event occurred. */
14732
+ occurred_at: string
14733
+ /** ID of the connected account. */
14734
+ connected_account_id: string
14735
+ event_type: 'connected_account.disconnected'
14736
+ }
14737
+ | {
14738
+ /** The ID of the event. */
14739
+ event_id: string
14740
+ /** The ID of the workspace. */
14741
+ workspace_id: string
14742
+ /** The time when the event was created. */
14743
+ created_at: string
14744
+ /** The time when the event occurred. */
14745
+ occurred_at: string
14746
+ /** ID of the connected account. */
14747
+ connected_account_id: string
14748
+ event_type: 'connected_account.completed_first_sync'
14749
+ }
14750
+ | {
14751
+ /** The ID of the event. */
14752
+ event_id: string
14753
+ /** The ID of the workspace. */
14754
+ workspace_id: string
14755
+ /** The time when the event was created. */
14756
+ created_at: string
14757
+ /** The time when the event occurred. */
14758
+ occurred_at: string
14759
+ /** ID of the connected account. */
14760
+ connected_account_id: string
14761
+ event_type: 'connected_account.deleted'
14762
+ }
14763
+ | {
14764
+ /** The ID of the event. */
14765
+ event_id: string
14766
+ /** The ID of the workspace. */
14767
+ workspace_id: string
14768
+ /** The time when the event was created. */
14769
+ created_at: string
14770
+ /** The time when the event occurred. */
14771
+ occurred_at: string
14772
+ /** ID of the connected account. */
14773
+ connected_account_id: string
14774
+ event_type: 'connected_account.completed_first_sync_after_reconnection'
14775
+ }
14776
+ | {
14777
+ /** The ID of the event. */
14778
+ event_id: string
14779
+ /** The ID of the workspace. */
14780
+ workspace_id: string
14781
+ /** The time when the event was created. */
14782
+ created_at: string
14783
+ /** The time when the event occurred. */
14784
+ occurred_at: string
14785
+ /** The ID of the action attempt. */
14786
+ action_attempt_id: string
14787
+ /** The type of action. */
14788
+ action_type: string
14789
+ /** The status of the action. */
14790
+ status: string
14791
+ event_type: 'action_attempt.lock_door.succeeded'
14792
+ }
14793
+ | {
14794
+ /** The ID of the event. */
14795
+ event_id: string
14796
+ /** The ID of the workspace. */
14797
+ workspace_id: string
14798
+ /** The time when the event was created. */
14799
+ created_at: string
14800
+ /** The time when the event occurred. */
14801
+ occurred_at: string
14802
+ /** The ID of the action attempt. */
14803
+ action_attempt_id: string
14804
+ /** The type of action. */
14805
+ action_type: string
14806
+ /** The status of the action. */
14807
+ status: string
14808
+ event_type: 'action_attempt.lock_door.failed'
14809
+ }
14810
+ | {
14811
+ /** The ID of the event. */
14812
+ event_id: string
14813
+ /** The ID of the workspace. */
14814
+ workspace_id: string
14815
+ /** The time when the event was created. */
14816
+ created_at: string
14817
+ /** The time when the event occurred. */
14818
+ occurred_at: string
14819
+ /** The ID of the action attempt. */
14820
+ action_attempt_id: string
14821
+ /** The type of action. */
14822
+ action_type: string
14823
+ /** The status of the action. */
14824
+ status: string
14825
+ event_type: 'action_attempt.unlock_door.succeeded'
14826
+ }
14827
+ | {
14828
+ /** The ID of the event. */
14829
+ event_id: string
14830
+ /** The ID of the workspace. */
14831
+ workspace_id: string
14832
+ /** The time when the event was created. */
14833
+ created_at: string
14834
+ /** The time when the event occurred. */
14835
+ occurred_at: string
14836
+ /** The ID of the action attempt. */
14837
+ action_attempt_id: string
14838
+ /** The type of action. */
14839
+ action_type: string
14840
+ /** The status of the action. */
14841
+ status: string
14842
+ event_type: 'action_attempt.unlock_door.failed'
14843
+ }
14844
+ | {
14845
+ /** The ID of the event. */
14846
+ event_id: string
14847
+ /** The ID of the workspace. */
14848
+ workspace_id: string
14849
+ /** The time when the event was created. */
14850
+ created_at: string
14851
+ /** The time when the event occurred. */
14852
+ occurred_at: string
14853
+ /** ID of the connect webview. */
14854
+ connect_webview_id: string
14855
+ event_type: 'connect_webview.login_succeeded'
14856
+ /** ID of the connected account. */
14857
+ connected_account_id: string
14858
+ }
14859
+ | {
14860
+ /** The ID of the event. */
14861
+ event_id: string
14862
+ /** The ID of the workspace. */
14863
+ workspace_id: string
14864
+ /** The time when the event was created. */
14865
+ created_at: string
14866
+ /** The time when the event occurred. */
14867
+ occurred_at: string
14868
+ /** ID of the connect webview. */
14869
+ connect_webview_id: string
14870
+ event_type: 'connect_webview.login_failed'
14871
+ }
14872
+ | {
14873
+ /** The ID of the event. */
14874
+ event_id: string
14875
+ /** The ID of the workspace. */
14876
+ workspace_id: string
14877
+ /** The time when the event was created. */
14878
+ created_at: string
14879
+ /** The time when the event occurred. */
14880
+ occurred_at: string
14881
+ /** ID of the device. */
14882
+ device_id: string
14883
+ /** ID of the connected account. */
14884
+ connected_account_id: string
14885
+ event_type: 'device.connected'
14886
+ }
14887
+ | {
14888
+ /** The ID of the event. */
14889
+ event_id: string
14890
+ /** The ID of the workspace. */
14891
+ workspace_id: string
14892
+ /** The time when the event was created. */
14893
+ created_at: string
14894
+ /** The time when the event occurred. */
14895
+ occurred_at: string
14896
+ /** ID of the device. */
14897
+ device_id: string
14898
+ /** ID of the connected account. */
14899
+ connected_account_id: string
14900
+ event_type: 'device.added'
14901
+ }
14902
+ | {
14903
+ /** The ID of the event. */
14904
+ event_id: string
14905
+ /** The ID of the workspace. */
14906
+ workspace_id: string
14907
+ /** The time when the event was created. */
14908
+ created_at: string
14909
+ /** The time when the event occurred. */
14910
+ occurred_at: string
14911
+ /** ID of the device. */
14912
+ device_id: string
14913
+ /** ID of the connected account. */
14914
+ connected_account_id: string
14915
+ event_type: 'device.converted_to_unmanaged'
14916
+ }
14917
+ | {
14918
+ /** The ID of the event. */
14919
+ event_id: string
14920
+ /** The ID of the workspace. */
14921
+ workspace_id: string
14922
+ /** The time when the event was created. */
14923
+ created_at: string
14924
+ /** The time when the event occurred. */
14925
+ occurred_at: string
14926
+ /** ID of the device. */
14927
+ device_id: string
14928
+ /** ID of the connected account. */
14929
+ connected_account_id: string
14930
+ event_type: 'device.unmanaged.converted_to_managed'
14931
+ }
14932
+ | {
14933
+ /** The ID of the event. */
14934
+ event_id: string
14935
+ /** The ID of the workspace. */
14936
+ workspace_id: string
14937
+ /** The time when the event was created. */
14938
+ created_at: string
14939
+ /** The time when the event occurred. */
14940
+ occurred_at: string
14941
+ /** ID of the device. */
14942
+ device_id: string
14943
+ /** ID of the connected account. */
14944
+ connected_account_id: string
14945
+ event_type: 'device.unmanaged.connected'
14946
+ }
14947
+ | {
14948
+ /** The ID of the event. */
14949
+ event_id: string
14950
+ /** The ID of the workspace. */
14951
+ workspace_id: string
14952
+ /** The time when the event was created. */
14953
+ created_at: string
14954
+ /** The time when the event occurred. */
14955
+ occurred_at: string
14956
+ /** ID of the device. */
14957
+ device_id: string
14958
+ /** ID of the connected account. */
14959
+ connected_account_id: string
14960
+ event_type: 'device.disconnected'
14961
+ /** The error code associated with the event, if any. */
14962
+ error_code:
14963
+ | 'account_disconnected'
14964
+ | 'hub_disconnected'
14965
+ | 'device_disconnected'
14966
+ }
14967
+ | {
14968
+ /** The ID of the event. */
14969
+ event_id: string
14970
+ /** The ID of the workspace. */
14971
+ workspace_id: string
14972
+ /** The time when the event was created. */
14973
+ created_at: string
14974
+ /** The time when the event occurred. */
14975
+ occurred_at: string
14976
+ /** ID of the device. */
14977
+ device_id: string
14978
+ /** ID of the connected account. */
14979
+ connected_account_id: string
14980
+ event_type: 'device.unmanaged.disconnected'
14981
+ /** The error code associated with the event, if any. */
14982
+ error_code:
14983
+ | 'account_disconnected'
14984
+ | 'hub_disconnected'
14985
+ | 'device_disconnected'
14986
+ }
14987
+ | {
14988
+ /** The ID of the event. */
14989
+ event_id: string
14990
+ /** The ID of the workspace. */
14991
+ workspace_id: string
14992
+ /** The time when the event was created. */
14993
+ created_at: string
14994
+ /** The time when the event occurred. */
14995
+ occurred_at: string
14996
+ /** ID of the device. */
14997
+ device_id: string
14998
+ /** ID of the connected account. */
14999
+ connected_account_id: string
15000
+ event_type: 'device.tampered'
15001
+ }
15002
+ | {
15003
+ /** The ID of the event. */
15004
+ event_id: string
15005
+ /** The ID of the workspace. */
15006
+ workspace_id: string
15007
+ /** The time when the event was created. */
15008
+ created_at: string
15009
+ /** The time when the event occurred. */
15010
+ occurred_at: string
15011
+ /** ID of the device. */
15012
+ device_id: string
15013
+ /** ID of the connected account. */
15014
+ connected_account_id: string
15015
+ event_type: 'device.low_battery'
15016
+ /** Fractional number 0 to 1.0 indicating amount of battery in device, as reported by device. */
15017
+ battery_level: number
15018
+ }
15019
+ | {
15020
+ /** The ID of the event. */
15021
+ event_id: string
15022
+ /** The ID of the workspace. */
15023
+ workspace_id: string
15024
+ /** The time when the event was created. */
15025
+ created_at: string
15026
+ /** The time when the event occurred. */
15027
+ occurred_at: string
15028
+ /** ID of the device. */
15029
+ device_id: string
15030
+ /** ID of the connected account. */
15031
+ connected_account_id: string
15032
+ event_type: 'device.battery_status_changed'
15033
+ /** Enum representing the battery status calculated from numeric battery_level value, one of 'critical' | 'low' | 'good' | 'full' */
15034
+ battery_status: 'critical' | 'low' | 'good' | 'full'
15035
+ /** Fractional number 0 to 1.0 indicating amount of battery in device, as reported by device. */
15036
+ battery_level: number
15037
+ }
15038
+ | {
15039
+ /** The ID of the event. */
15040
+ event_id: string
15041
+ /** The ID of the workspace. */
15042
+ workspace_id: string
15043
+ /** The time when the event was created. */
15044
+ created_at: string
15045
+ /** The time when the event occurred. */
15046
+ occurred_at: string
15047
+ /** ID of the device. */
15048
+ device_id: string
15049
+ /** ID of the connected account. */
15050
+ connected_account_id: string
15051
+ event_type: 'device.removed'
15052
+ }
15053
+ | {
15054
+ /** The ID of the event. */
15055
+ event_id: string
15056
+ /** The ID of the workspace. */
15057
+ workspace_id: string
15058
+ /** The time when the event was created. */
15059
+ created_at: string
15060
+ /** The time when the event occurred. */
15061
+ occurred_at: string
15062
+ /** ID of the device. */
15063
+ device_id: string
15064
+ /** ID of the connected account. */
15065
+ connected_account_id: string
15066
+ event_type: 'device.deleted'
15067
+ }
15068
+ | {
15069
+ /** The ID of the event. */
15070
+ event_id: string
15071
+ /** The ID of the workspace. */
15072
+ workspace_id: string
15073
+ /** The time when the event was created. */
15074
+ created_at: string
15075
+ /** The time when the event occurred. */
15076
+ occurred_at: string
15077
+ /** ID of the device. */
15078
+ device_id: string
15079
+ /** ID of the connected account. */
15080
+ connected_account_id: string
15081
+ event_type: 'device.third_party_integration_detected'
15082
+ }
15083
+ | {
15084
+ /** The ID of the event. */
15085
+ event_id: string
15086
+ /** The ID of the workspace. */
15087
+ workspace_id: string
15088
+ /** The time when the event was created. */
15089
+ created_at: string
15090
+ /** The time when the event occurred. */
15091
+ occurred_at: string
15092
+ /** ID of the device. */
15093
+ device_id: string
15094
+ /** ID of the connected account. */
15095
+ connected_account_id: string
15096
+ event_type: 'device.third_party_integration_no_longer_detected'
15097
+ }
15098
+ | {
15099
+ /** The ID of the event. */
15100
+ event_id: string
15101
+ /** The ID of the workspace. */
15102
+ workspace_id: string
15103
+ /** The time when the event was created. */
15104
+ created_at: string
15105
+ /** The time when the event occurred. */
15106
+ occurred_at: string
15107
+ /** ID of the device. */
15108
+ device_id: string
15109
+ /** ID of the connected account. */
15110
+ connected_account_id: string
15111
+ event_type: 'device.salto.privacy_mode_activated'
15112
+ }
15113
+ | {
15114
+ /** The ID of the event. */
15115
+ event_id: string
15116
+ /** The ID of the workspace. */
15117
+ workspace_id: string
15118
+ /** The time when the event was created. */
15119
+ created_at: string
15120
+ /** The time when the event occurred. */
15121
+ occurred_at: string
15122
+ /** ID of the device. */
15123
+ device_id: string
15124
+ /** ID of the connected account. */
15125
+ connected_account_id: string
15126
+ event_type: 'device.salto.privacy_mode_deactivated'
15127
+ }
15128
+ | {
15129
+ /** The ID of the event. */
15130
+ event_id: string
15131
+ /** The ID of the workspace. */
15132
+ workspace_id: string
15133
+ /** The time when the event was created. */
15134
+ created_at: string
15135
+ /** The time when the event occurred. */
15136
+ occurred_at: string
15137
+ /** ID of the device. */
15138
+ device_id: string
15139
+ /** ID of the connected account. */
15140
+ connected_account_id: string
15141
+ event_type: 'device.connection_became_flaky'
15142
+ }
15143
+ | {
15144
+ /** The ID of the event. */
15145
+ event_id: string
15146
+ /** The ID of the workspace. */
15147
+ workspace_id: string
15148
+ /** The time when the event was created. */
15149
+ created_at: string
15150
+ /** The time when the event occurred. */
15151
+ occurred_at: string
15152
+ /** ID of the device. */
15153
+ device_id: string
15154
+ /** ID of the connected account. */
15155
+ connected_account_id: string
15156
+ event_type: 'device.connection_stabilized'
15157
+ }
15158
+ | {
15159
+ /** The ID of the event. */
15160
+ event_id: string
15161
+ /** The ID of the workspace. */
15162
+ workspace_id: string
15163
+ /** The time when the event was created. */
15164
+ created_at: string
15165
+ /** The time when the event occurred. */
15166
+ occurred_at: string
15167
+ /** ID of the device. */
15168
+ device_id: string
15169
+ /** ID of the connected account. */
15170
+ connected_account_id: string
15171
+ event_type: 'device.error.subscription_required'
15172
+ }
15173
+ | {
15174
+ /** The ID of the event. */
15175
+ event_id: string
15176
+ /** The ID of the workspace. */
15177
+ workspace_id: string
15178
+ /** The time when the event was created. */
15179
+ created_at: string
15180
+ /** The time when the event occurred. */
15181
+ occurred_at: string
15182
+ /** ID of the device. */
15183
+ device_id: string
15184
+ /** ID of the connected account. */
15185
+ connected_account_id: string
15186
+ event_type: 'device.error.subscription_required.resolved'
15187
+ }
15188
+ | {
15189
+ /** The ID of the event. */
15190
+ event_id: string
15191
+ /** The ID of the workspace. */
15192
+ workspace_id: string
15193
+ /** The time when the event was created. */
15194
+ created_at: string
15195
+ /** The time when the event occurred. */
15196
+ occurred_at: string
15197
+ /** ID of the device. */
15198
+ device_id: string
15199
+ /** ID of the connected account. */
15200
+ connected_account_id: string
15201
+ event_type: 'device.accessory_keypad_connected'
15202
+ }
15203
+ | {
15204
+ /** The ID of the event. */
15205
+ event_id: string
15206
+ /** The ID of the workspace. */
15207
+ workspace_id: string
15208
+ /** The time when the event was created. */
15209
+ created_at: string
15210
+ /** The time when the event occurred. */
15211
+ occurred_at: string
15212
+ /** ID of the device. */
15213
+ device_id: string
15214
+ /** ID of the connected account. */
15215
+ connected_account_id: string
15216
+ event_type: 'device.accessory_keypad_disconnected'
15217
+ }
15218
+ | {
15219
+ /** The ID of the event. */
15220
+ event_id: string
15221
+ /** The ID of the workspace. */
15222
+ workspace_id: string
15223
+ /** The time when the event was created. */
15224
+ created_at: string
15225
+ /** The time when the event occurred. */
15226
+ occurred_at: string
15227
+ /** ID of the device. */
15228
+ device_id: string
15229
+ /** ID of the connected account. */
15230
+ connected_account_id: string
15231
+ event_type: 'noise_sensor.noise_threshold_triggered'
15232
+ noise_level_decibels?: number | undefined
15233
+ noise_level_nrs?: number | undefined
15234
+ noise_threshold_id?: string | undefined
15235
+ noise_threshold_name?: string | undefined
15236
+ /** Metadata from the Noiseaware API. */
15237
+ noiseaware_metadata?: Record<string, unknown> | undefined
15238
+ /** Metadata from the Minut API. */
15239
+ minut_metadata?: Record<string, unknown> | undefined
15240
+ }
15241
+ | {
15242
+ /** The ID of the event. */
15243
+ event_id: string
15244
+ /** The ID of the workspace. */
15245
+ workspace_id: string
15246
+ /** The time when the event was created. */
15247
+ created_at: string
15248
+ /** The time when the event occurred. */
15249
+ occurred_at: string
15250
+ /** ID of the device. */
15251
+ device_id: string
15252
+ /** ID of the connected account. */
15253
+ connected_account_id: string
15254
+ event_type: 'lock.locked'
15255
+ access_code_id?: string | undefined
15256
+ action_attempt_id?: string | undefined
15257
+ /** Method by which a lock device was locked or unlocked. When the method is `keycode`, the `access_code_id` will reference the Seam access code which was used, if reported by the device. */
15258
+ method:
15259
+ | 'keycode'
15260
+ | 'manual'
15261
+ | 'automatic'
15262
+ | 'unknown'
15263
+ | 'seamapi'
15264
+ }
15265
+ | {
15266
+ /** The ID of the event. */
15267
+ event_id: string
15268
+ /** The ID of the workspace. */
15269
+ workspace_id: string
15270
+ /** The time when the event was created. */
15271
+ created_at: string
15272
+ /** The time when the event occurred. */
15273
+ occurred_at: string
15274
+ /** ID of the device. */
15275
+ device_id: string
15276
+ /** ID of the connected account. */
15277
+ connected_account_id: string
15278
+ event_type: 'lock.unlocked'
15279
+ access_code_id?: string | undefined
15280
+ action_attempt_id?: string | undefined
15281
+ /** Method by which a lock device was locked or unlocked. When the method is `keycode`, the `access_code_id` will reference the Seam access code which was used, if reported by the device. */
15282
+ method:
15283
+ | 'keycode'
15284
+ | 'manual'
15285
+ | 'automatic'
15286
+ | 'unknown'
15287
+ | 'seamapi'
15288
+ }
15289
+ | {
15290
+ /** The ID of the event. */
15291
+ event_id: string
15292
+ /** The ID of the workspace. */
15293
+ workspace_id: string
15294
+ /** The time when the event was created. */
15295
+ created_at: string
15296
+ /** The time when the event occurred. */
15297
+ occurred_at: string
15298
+ /** ID of the device. */
15299
+ device_id: string
15300
+ /** ID of the connected account. */
15301
+ connected_account_id: string
15302
+ event_type: 'lock.access_denied'
15303
+ access_code_id?: string | undefined
15304
+ }
15305
+ | {
15306
+ /** The ID of the event. */
15307
+ event_id: string
15308
+ /** The ID of the workspace. */
15309
+ workspace_id: string
15310
+ /** The time when the event was created. */
15311
+ created_at: string
15312
+ /** The time when the event occurred. */
15313
+ occurred_at: string
15314
+ /** ID of the device. */
15315
+ device_id: string
15316
+ /** ID of the connected account. */
15317
+ connected_account_id: string
15318
+ event_type: 'thermostat.climate_preset_activated'
15319
+ thermostat_schedule_id: string | null
15320
+ climate_preset_key: string
15321
+ is_fallback_climate_preset: boolean
15322
+ }
15323
+ | {
15324
+ /** The ID of the event. */
15325
+ event_id: string
15326
+ /** The ID of the workspace. */
15327
+ workspace_id: string
15328
+ /** The time when the event was created. */
15329
+ created_at: string
15330
+ /** The time when the event occurred. */
15331
+ occurred_at: string
15332
+ /** ID of the device. */
15333
+ device_id: string
15334
+ /** ID of the connected account. */
15335
+ connected_account_id: string
15336
+ event_type: 'thermostat.manually_adjusted'
15337
+ method: 'seam' | 'external'
15338
+ /** Desired fan mode setting, such as `on`, `auto`, or `circulate`. */
15339
+ fan_mode_setting?:
15340
+ | (('auto' | 'on' | 'circulate') | undefined)
15341
+ | undefined
15342
+ /** Desired [HVAC mode](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/hvac-mode) setting, such as `heat`, `cool`, `heat_cool`, or `off`. */
15343
+ hvac_mode_setting?:
15344
+ | (('off' | 'heat' | 'cool' | 'heat_cool') | undefined)
15345
+ | undefined
15346
+ /** Temperature to which the thermostat should cool (in °C). See also [Set Points](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points). */
15347
+ cooling_set_point_celsius?: (number | undefined) | undefined
15348
+ /** Temperature to which the thermostat should heat (in °C). */
15349
+ heating_set_point_celsius?: (number | undefined) | undefined
15350
+ /** Temperature to which the thermostat should cool (in °F). */
15351
+ cooling_set_point_fahrenheit?: (number | undefined) | undefined
15352
+ /** Temperature to which the thermostat should heat (in °F). */
15353
+ heating_set_point_fahrenheit?: (number | undefined) | undefined
15354
+ }
15355
+ | {
15356
+ /** The ID of the event. */
15357
+ event_id: string
15358
+ /** The ID of the workspace. */
15359
+ workspace_id: string
15360
+ /** The time when the event was created. */
15361
+ created_at: string
15362
+ /** The time when the event occurred. */
15363
+ occurred_at: string
15364
+ /** ID of the device. */
15365
+ device_id: string
15366
+ /** ID of the connected account. */
15367
+ connected_account_id: string
15368
+ event_type: 'thermostat.temperature_threshold_exceeded'
15369
+ temperature_celsius: number
15370
+ temperature_fahrenheit: number
15371
+ upper_limit_celsius: number | null
15372
+ upper_limit_fahrenheit: number | null
15373
+ lower_limit_celsius: number | null
15374
+ lower_limit_fahrenheit: number | null
15375
+ }
15376
+ | {
15377
+ /** The ID of the event. */
15378
+ event_id: string
15379
+ /** The ID of the workspace. */
15380
+ workspace_id: string
15381
+ /** The time when the event was created. */
15382
+ created_at: string
15383
+ /** The time when the event occurred. */
15384
+ occurred_at: string
15385
+ /** ID of the device. */
15386
+ device_id: string
15387
+ /** ID of the connected account. */
15388
+ connected_account_id: string
15389
+ event_type: 'thermostat.temperature_threshold_no_longer_exceeded'
15390
+ temperature_celsius: number
15391
+ temperature_fahrenheit: number
15392
+ upper_limit_celsius: number | null
15393
+ upper_limit_fahrenheit: number | null
15394
+ lower_limit_celsius: number | null
15395
+ lower_limit_fahrenheit: number | null
15396
+ }
15397
+ | {
15398
+ /** The ID of the event. */
15399
+ event_id: string
15400
+ /** The ID of the workspace. */
15401
+ workspace_id: string
15402
+ /** The time when the event was created. */
15403
+ created_at: string
15404
+ /** The time when the event occurred. */
15405
+ occurred_at: string
15406
+ /** ID of the enrollment automation. */
15407
+ enrollment_automation_id: string
15408
+ event_type: 'enrollment_automation.deleted'
15409
+ }
15410
+ | {
15411
+ /** The ID of the event. */
15412
+ event_id: string
15413
+ /** The ID of the workspace. */
15414
+ workspace_id: string
15415
+ /** The time when the event was created. */
15416
+ created_at: string
15417
+ /** The time when the event occurred. */
15418
+ occurred_at: string
15419
+ /** ID of the device. */
15420
+ device_id: string
15421
+ event_type: 'phone.deactivated'
15422
+ }
15423
+ )
14259
15424
  | undefined
14260
15425
  message?: string | undefined
14261
15426
  }
@@ -14431,31 +15596,1186 @@ export interface Routes {
14431
15596
  }
14432
15597
  formData: {}
14433
15598
  jsonResponse: {
14434
- events: Array<{
14435
- event_id: string
14436
- device_id?: string | undefined
14437
- action_attempt_id?: string | undefined
14438
- acs_credential_id?: string | undefined
14439
- acs_user_id?: string | undefined
14440
- acs_system_id?: string | undefined
14441
- client_session_id?: string | undefined
14442
- enrollment_automation_id?: string | undefined
14443
- event_type: string
14444
- workspace_id: string
14445
- created_at: string
14446
- occurred_at: string
14447
- event_description: string
14448
- thermostat_schedule_id?: (string | undefined) | null
14449
- is_fallback_climate_preset?: boolean | undefined
14450
- climate_preset_key?: string | undefined
14451
- hvac_mode_setting?: string | undefined
14452
- fan_mode_setting?: string | undefined
14453
- cooling_set_point_celsius?: number | undefined
14454
- heating_set_point_celsius?: number | undefined
14455
- cooling_set_point_fahrenheit?: number | undefined
14456
- heating_set_point_fahrenheit?: number | undefined
14457
- method?: string | undefined
14458
- }>
15599
+ events: Array<
15600
+ | {
15601
+ /** The ID of the event. */
15602
+ event_id: string
15603
+ /** The ID of the workspace. */
15604
+ workspace_id: string
15605
+ /** The time when the event was created. */
15606
+ created_at: string
15607
+ /** The time when the event occurred. */
15608
+ occurred_at: string
15609
+ /** The ID of the access code. */
15610
+ access_code_id: string
15611
+ /** The ID of the device. */
15612
+ device_id: string
15613
+ /** The ID of the connected account. */
15614
+ connected_account_id: string
15615
+ event_type: 'access_code.created'
15616
+ }
15617
+ | {
15618
+ /** The ID of the event. */
15619
+ event_id: string
15620
+ /** The ID of the workspace. */
15621
+ workspace_id: string
15622
+ /** The time when the event was created. */
15623
+ created_at: string
15624
+ /** The time when the event occurred. */
15625
+ occurred_at: string
15626
+ /** The ID of the access code. */
15627
+ access_code_id: string
15628
+ /** The ID of the device. */
15629
+ device_id: string
15630
+ /** The ID of the connected account. */
15631
+ connected_account_id: string
15632
+ event_type: 'access_code.changed'
15633
+ }
15634
+ | {
15635
+ /** The ID of the event. */
15636
+ event_id: string
15637
+ /** The ID of the workspace. */
15638
+ workspace_id: string
15639
+ /** The time when the event was created. */
15640
+ created_at: string
15641
+ /** The time when the event occurred. */
15642
+ occurred_at: string
15643
+ /** The ID of the access code. */
15644
+ access_code_id: string
15645
+ /** The ID of the device. */
15646
+ device_id: string
15647
+ /** The ID of the connected account. */
15648
+ connected_account_id: string
15649
+ event_type: 'access_code.scheduled_on_device'
15650
+ /** The code of the access code. */
15651
+ code: string
15652
+ }
15653
+ | {
15654
+ /** The ID of the event. */
15655
+ event_id: string
15656
+ /** The ID of the workspace. */
15657
+ workspace_id: string
15658
+ /** The time when the event was created. */
15659
+ created_at: string
15660
+ /** The time when the event occurred. */
15661
+ occurred_at: string
15662
+ /** The ID of the access code. */
15663
+ access_code_id: string
15664
+ /** The ID of the device. */
15665
+ device_id: string
15666
+ /** The ID of the connected account. */
15667
+ connected_account_id: string
15668
+ event_type: 'access_code.set_on_device'
15669
+ /** The code of the access code. */
15670
+ code: string
15671
+ }
15672
+ | {
15673
+ /** The ID of the event. */
15674
+ event_id: string
15675
+ /** The ID of the workspace. */
15676
+ workspace_id: string
15677
+ /** The time when the event was created. */
15678
+ created_at: string
15679
+ /** The time when the event occurred. */
15680
+ occurred_at: string
15681
+ /** The ID of the access code. */
15682
+ access_code_id: string
15683
+ /** The ID of the device. */
15684
+ device_id: string
15685
+ /** The ID of the connected account. */
15686
+ connected_account_id: string
15687
+ event_type: 'access_code.removed_from_device'
15688
+ }
15689
+ | {
15690
+ /** The ID of the event. */
15691
+ event_id: string
15692
+ /** The ID of the workspace. */
15693
+ workspace_id: string
15694
+ /** The time when the event was created. */
15695
+ created_at: string
15696
+ /** The time when the event occurred. */
15697
+ occurred_at: string
15698
+ /** The ID of the access code. */
15699
+ access_code_id: string
15700
+ /** The ID of the device. */
15701
+ device_id: string
15702
+ /** The ID of the connected account. */
15703
+ connected_account_id: string
15704
+ event_type: 'access_code.delay_in_setting_on_device'
15705
+ }
15706
+ | {
15707
+ /** The ID of the event. */
15708
+ event_id: string
15709
+ /** The ID of the workspace. */
15710
+ workspace_id: string
15711
+ /** The time when the event was created. */
15712
+ created_at: string
15713
+ /** The time when the event occurred. */
15714
+ occurred_at: string
15715
+ /** The ID of the access code. */
15716
+ access_code_id: string
15717
+ /** The ID of the device. */
15718
+ device_id: string
15719
+ /** The ID of the connected account. */
15720
+ connected_account_id: string
15721
+ event_type: 'access_code.failed_to_set_on_device'
15722
+ }
15723
+ | {
15724
+ /** The ID of the event. */
15725
+ event_id: string
15726
+ /** The ID of the workspace. */
15727
+ workspace_id: string
15728
+ /** The time when the event was created. */
15729
+ created_at: string
15730
+ /** The time when the event occurred. */
15731
+ occurred_at: string
15732
+ /** The ID of the access code. */
15733
+ access_code_id: string
15734
+ /** The ID of the device. */
15735
+ device_id: string
15736
+ /** The ID of the connected account. */
15737
+ connected_account_id: string
15738
+ event_type: 'access_code.deleted'
15739
+ /** The code of the access code. */
15740
+ code: string | null
15741
+ }
15742
+ | {
15743
+ /** The ID of the event. */
15744
+ event_id: string
15745
+ /** The ID of the workspace. */
15746
+ workspace_id: string
15747
+ /** The time when the event was created. */
15748
+ created_at: string
15749
+ /** The time when the event occurred. */
15750
+ occurred_at: string
15751
+ /** The ID of the access code. */
15752
+ access_code_id: string
15753
+ /** The ID of the device. */
15754
+ device_id: string
15755
+ /** The ID of the connected account. */
15756
+ connected_account_id: string
15757
+ event_type: 'access_code.delay_in_removing_from_device'
15758
+ }
15759
+ | {
15760
+ /** The ID of the event. */
15761
+ event_id: string
15762
+ /** The ID of the workspace. */
15763
+ workspace_id: string
15764
+ /** The time when the event was created. */
15765
+ created_at: string
15766
+ /** The time when the event occurred. */
15767
+ occurred_at: string
15768
+ /** The ID of the access code. */
15769
+ access_code_id: string
15770
+ /** The ID of the device. */
15771
+ device_id: string
15772
+ /** The ID of the connected account. */
15773
+ connected_account_id: string
15774
+ event_type: 'access_code.failed_to_remove_from_device'
15775
+ }
15776
+ | {
15777
+ /** The ID of the event. */
15778
+ event_id: string
15779
+ /** The ID of the workspace. */
15780
+ workspace_id: string
15781
+ /** The time when the event was created. */
15782
+ created_at: string
15783
+ /** The time when the event occurred. */
15784
+ occurred_at: string
15785
+ /** The ID of the access code. */
15786
+ access_code_id: string
15787
+ /** The ID of the device. */
15788
+ device_id: string
15789
+ /** The ID of the connected account. */
15790
+ connected_account_id: string
15791
+ event_type: 'access_code.modified_external_to_seam'
15792
+ }
15793
+ | {
15794
+ /** The ID of the event. */
15795
+ event_id: string
15796
+ /** The ID of the workspace. */
15797
+ workspace_id: string
15798
+ /** The time when the event was created. */
15799
+ created_at: string
15800
+ /** The time when the event occurred. */
15801
+ occurred_at: string
15802
+ /** The ID of the access code. */
15803
+ access_code_id: string
15804
+ /** The ID of the device. */
15805
+ device_id: string
15806
+ /** The ID of the connected account. */
15807
+ connected_account_id: string
15808
+ event_type: 'access_code.deleted_external_to_seam'
15809
+ }
15810
+ | {
15811
+ /** The ID of the event. */
15812
+ event_id: string
15813
+ /** The ID of the workspace. */
15814
+ workspace_id: string
15815
+ /** The time when the event was created. */
15816
+ created_at: string
15817
+ /** The time when the event occurred. */
15818
+ occurred_at: string
15819
+ /** The ID of the access code. */
15820
+ access_code_id: string
15821
+ /** The ID of the device. */
15822
+ device_id: string
15823
+ /** The ID of the connected account. */
15824
+ connected_account_id: string
15825
+ event_type: 'access_code.backup_access_code_pulled'
15826
+ backup_access_code_id: string
15827
+ }
15828
+ | {
15829
+ /** The ID of the event. */
15830
+ event_id: string
15831
+ /** The ID of the workspace. */
15832
+ workspace_id: string
15833
+ /** The time when the event was created. */
15834
+ created_at: string
15835
+ /** The time when the event occurred. */
15836
+ occurred_at: string
15837
+ /** The ID of the access code. */
15838
+ access_code_id: string
15839
+ /** The ID of the device. */
15840
+ device_id: string
15841
+ /** The ID of the connected account. */
15842
+ connected_account_id: string
15843
+ event_type: 'access_code.unmanaged.converted_to_managed'
15844
+ }
15845
+ | {
15846
+ /** The ID of the event. */
15847
+ event_id: string
15848
+ /** The ID of the workspace. */
15849
+ workspace_id: string
15850
+ /** The time when the event was created. */
15851
+ created_at: string
15852
+ /** The time when the event occurred. */
15853
+ occurred_at: string
15854
+ /** The ID of the access code. */
15855
+ access_code_id: string
15856
+ /** The ID of the device. */
15857
+ device_id: string
15858
+ /** The ID of the connected account. */
15859
+ connected_account_id: string
15860
+ event_type: 'access_code.unmanaged.failed_to_convert_to_managed'
15861
+ }
15862
+ | {
15863
+ /** The ID of the event. */
15864
+ event_id: string
15865
+ /** The ID of the workspace. */
15866
+ workspace_id: string
15867
+ /** The time when the event was created. */
15868
+ created_at: string
15869
+ /** The time when the event occurred. */
15870
+ occurred_at: string
15871
+ /** The ID of the access code. */
15872
+ access_code_id: string
15873
+ /** The ID of the device. */
15874
+ device_id: string
15875
+ /** The ID of the connected account. */
15876
+ connected_account_id: string
15877
+ event_type: 'access_code.unmanaged.created'
15878
+ }
15879
+ | {
15880
+ /** The ID of the event. */
15881
+ event_id: string
15882
+ /** The ID of the workspace. */
15883
+ workspace_id: string
15884
+ /** The time when the event was created. */
15885
+ created_at: string
15886
+ /** The time when the event occurred. */
15887
+ occurred_at: string
15888
+ /** The ID of the access code. */
15889
+ access_code_id: string
15890
+ /** The ID of the device. */
15891
+ device_id: string
15892
+ /** The ID of the connected account. */
15893
+ connected_account_id: string
15894
+ event_type: 'access_code.unmanaged.removed'
15895
+ }
15896
+ | {
15897
+ /** The ID of the event. */
15898
+ event_id: string
15899
+ /** The ID of the workspace. */
15900
+ workspace_id: string
15901
+ /** The time when the event was created. */
15902
+ created_at: string
15903
+ /** The time when the event occurred. */
15904
+ occurred_at: string
15905
+ /** ID of the connected account.
15906
+ * @deprecated Will be removed. */
15907
+ connected_account_id?: string | undefined
15908
+ /** ID of the ACS system. */
15909
+ acs_system_id: string
15910
+ event_type: 'acs_system.connected'
15911
+ }
15912
+ | {
15913
+ /** The ID of the event. */
15914
+ event_id: string
15915
+ /** The ID of the workspace. */
15916
+ workspace_id: string
15917
+ /** The time when the event was created. */
15918
+ created_at: string
15919
+ /** The time when the event occurred. */
15920
+ occurred_at: string
15921
+ /** ID of the connected account.
15922
+ * @deprecated Will be removed. */
15923
+ connected_account_id?: string | undefined
15924
+ /** ID of the ACS system. */
15925
+ acs_system_id: string
15926
+ event_type: 'acs_system.added'
15927
+ }
15928
+ | {
15929
+ /** The ID of the event. */
15930
+ event_id: string
15931
+ /** The ID of the workspace. */
15932
+ workspace_id: string
15933
+ /** The time when the event was created. */
15934
+ created_at: string
15935
+ /** The time when the event occurred. */
15936
+ occurred_at: string
15937
+ /** ID of the connected account.
15938
+ * @deprecated Will be removed. */
15939
+ connected_account_id?: string | undefined
15940
+ /** ID of the ACS system. */
15941
+ acs_system_id: string
15942
+ event_type: 'acs_system.disconnected'
15943
+ }
15944
+ | {
15945
+ /** The ID of the event. */
15946
+ event_id: string
15947
+ /** The ID of the workspace. */
15948
+ workspace_id: string
15949
+ /** The time when the event was created. */
15950
+ created_at: string
15951
+ /** The time when the event occurred. */
15952
+ occurred_at: string
15953
+ /** ID of the connected account.
15954
+ * @deprecated Will be removed. */
15955
+ connected_account_id?: string | undefined
15956
+ /** ID of the ACS system. */
15957
+ acs_system_id: string
15958
+ acs_credential_id: string
15959
+ event_type: 'acs_credential.deleted'
15960
+ }
15961
+ | {
15962
+ /** The ID of the event. */
15963
+ event_id: string
15964
+ /** The ID of the workspace. */
15965
+ workspace_id: string
15966
+ /** The time when the event was created. */
15967
+ created_at: string
15968
+ /** The time when the event occurred. */
15969
+ occurred_at: string
15970
+ /** ID of the connected account.
15971
+ * @deprecated Will be removed. */
15972
+ connected_account_id?: string | undefined
15973
+ /** ID of the ACS system. */
15974
+ acs_system_id: string
15975
+ acs_credential_id: string
15976
+ event_type: 'acs_credential.issued'
15977
+ }
15978
+ | {
15979
+ /** The ID of the event. */
15980
+ event_id: string
15981
+ /** The ID of the workspace. */
15982
+ workspace_id: string
15983
+ /** The time when the event was created. */
15984
+ created_at: string
15985
+ /** The time when the event occurred. */
15986
+ occurred_at: string
15987
+ /** ID of the connected account.
15988
+ * @deprecated Will be removed. */
15989
+ connected_account_id?: string | undefined
15990
+ /** ID of the ACS system. */
15991
+ acs_system_id: string
15992
+ acs_user_id: string
15993
+ event_type: 'acs_user.deleted'
15994
+ }
15995
+ | {
15996
+ /** The ID of the event. */
15997
+ event_id: string
15998
+ /** The ID of the workspace. */
15999
+ workspace_id: string
16000
+ /** The time when the event was created. */
16001
+ created_at: string
16002
+ /** The time when the event occurred. */
16003
+ occurred_at: string
16004
+ /** ID of the connected account.
16005
+ * @deprecated Will be removed. */
16006
+ connected_account_id?: string | undefined
16007
+ /** ID of the ACS system. */
16008
+ acs_system_id: string
16009
+ /** ID of the ACS encoder. */
16010
+ acs_encoder_id: string
16011
+ event_type: 'acs_encoder.added'
16012
+ }
16013
+ | {
16014
+ /** The ID of the event. */
16015
+ event_id: string
16016
+ /** The ID of the workspace. */
16017
+ workspace_id: string
16018
+ /** The time when the event was created. */
16019
+ created_at: string
16020
+ /** The time when the event occurred. */
16021
+ occurred_at: string
16022
+ /** ID of the connected account.
16023
+ * @deprecated Will be removed. */
16024
+ connected_account_id?: string | undefined
16025
+ /** ID of the ACS system. */
16026
+ acs_system_id: string
16027
+ /** ID of the ACS encoder. */
16028
+ acs_encoder_id: string
16029
+ event_type: 'acs_encoder.removed'
16030
+ }
16031
+ | {
16032
+ /** The ID of the event. */
16033
+ event_id: string
16034
+ /** The ID of the workspace. */
16035
+ workspace_id: string
16036
+ /** The time when the event was created. */
16037
+ created_at: string
16038
+ /** The time when the event occurred. */
16039
+ occurred_at: string
16040
+ /** ID of the client session. */
16041
+ client_session_id: string
16042
+ event_type: 'client_session.deleted'
16043
+ }
16044
+ | {
16045
+ /** The ID of the event. */
16046
+ event_id: string
16047
+ /** The ID of the workspace. */
16048
+ workspace_id: string
16049
+ /** The time when the event was created. */
16050
+ created_at: string
16051
+ /** The time when the event occurred. */
16052
+ occurred_at: string
16053
+ /** ID of the connected account. */
16054
+ connected_account_id: string
16055
+ event_type: 'connected_account.connected'
16056
+ /** ID of the connect webview. */
16057
+ connect_webview_id: string
16058
+ }
16059
+ | {
16060
+ /** The ID of the event. */
16061
+ event_id: string
16062
+ /** The ID of the workspace. */
16063
+ workspace_id: string
16064
+ /** The time when the event was created. */
16065
+ created_at: string
16066
+ /** The time when the event occurred. */
16067
+ occurred_at: string
16068
+ /** ID of the connected account. */
16069
+ connected_account_id: string
16070
+ event_type: 'connected_account.created'
16071
+ /** ID of the connect webview. */
16072
+ connect_webview_id: string
16073
+ }
16074
+ | {
16075
+ /** The ID of the event. */
16076
+ event_id: string
16077
+ /** The ID of the workspace. */
16078
+ workspace_id: string
16079
+ /** The time when the event was created. */
16080
+ created_at: string
16081
+ /** The time when the event occurred. */
16082
+ occurred_at: string
16083
+ /** ID of the connected account. */
16084
+ connected_account_id: string
16085
+ event_type: 'connected_account.successful_login'
16086
+ /** ID of the connect webview. */
16087
+ connect_webview_id: string
16088
+ }
16089
+ | {
16090
+ /** The ID of the event. */
16091
+ event_id: string
16092
+ /** The ID of the workspace. */
16093
+ workspace_id: string
16094
+ /** The time when the event was created. */
16095
+ created_at: string
16096
+ /** The time when the event occurred. */
16097
+ occurred_at: string
16098
+ /** ID of the connected account. */
16099
+ connected_account_id: string
16100
+ event_type: 'connected_account.disconnected'
16101
+ }
16102
+ | {
16103
+ /** The ID of the event. */
16104
+ event_id: string
16105
+ /** The ID of the workspace. */
16106
+ workspace_id: string
16107
+ /** The time when the event was created. */
16108
+ created_at: string
16109
+ /** The time when the event occurred. */
16110
+ occurred_at: string
16111
+ /** ID of the connected account. */
16112
+ connected_account_id: string
16113
+ event_type: 'connected_account.completed_first_sync'
16114
+ }
16115
+ | {
16116
+ /** The ID of the event. */
16117
+ event_id: string
16118
+ /** The ID of the workspace. */
16119
+ workspace_id: string
16120
+ /** The time when the event was created. */
16121
+ created_at: string
16122
+ /** The time when the event occurred. */
16123
+ occurred_at: string
16124
+ /** ID of the connected account. */
16125
+ connected_account_id: string
16126
+ event_type: 'connected_account.deleted'
16127
+ }
16128
+ | {
16129
+ /** The ID of the event. */
16130
+ event_id: string
16131
+ /** The ID of the workspace. */
16132
+ workspace_id: string
16133
+ /** The time when the event was created. */
16134
+ created_at: string
16135
+ /** The time when the event occurred. */
16136
+ occurred_at: string
16137
+ /** ID of the connected account. */
16138
+ connected_account_id: string
16139
+ event_type: 'connected_account.completed_first_sync_after_reconnection'
16140
+ }
16141
+ | {
16142
+ /** The ID of the event. */
16143
+ event_id: string
16144
+ /** The ID of the workspace. */
16145
+ workspace_id: string
16146
+ /** The time when the event was created. */
16147
+ created_at: string
16148
+ /** The time when the event occurred. */
16149
+ occurred_at: string
16150
+ /** The ID of the action attempt. */
16151
+ action_attempt_id: string
16152
+ /** The type of action. */
16153
+ action_type: string
16154
+ /** The status of the action. */
16155
+ status: string
16156
+ event_type: 'action_attempt.lock_door.succeeded'
16157
+ }
16158
+ | {
16159
+ /** The ID of the event. */
16160
+ event_id: string
16161
+ /** The ID of the workspace. */
16162
+ workspace_id: string
16163
+ /** The time when the event was created. */
16164
+ created_at: string
16165
+ /** The time when the event occurred. */
16166
+ occurred_at: string
16167
+ /** The ID of the action attempt. */
16168
+ action_attempt_id: string
16169
+ /** The type of action. */
16170
+ action_type: string
16171
+ /** The status of the action. */
16172
+ status: string
16173
+ event_type: 'action_attempt.lock_door.failed'
16174
+ }
16175
+ | {
16176
+ /** The ID of the event. */
16177
+ event_id: string
16178
+ /** The ID of the workspace. */
16179
+ workspace_id: string
16180
+ /** The time when the event was created. */
16181
+ created_at: string
16182
+ /** The time when the event occurred. */
16183
+ occurred_at: string
16184
+ /** The ID of the action attempt. */
16185
+ action_attempt_id: string
16186
+ /** The type of action. */
16187
+ action_type: string
16188
+ /** The status of the action. */
16189
+ status: string
16190
+ event_type: 'action_attempt.unlock_door.succeeded'
16191
+ }
16192
+ | {
16193
+ /** The ID of the event. */
16194
+ event_id: string
16195
+ /** The ID of the workspace. */
16196
+ workspace_id: string
16197
+ /** The time when the event was created. */
16198
+ created_at: string
16199
+ /** The time when the event occurred. */
16200
+ occurred_at: string
16201
+ /** The ID of the action attempt. */
16202
+ action_attempt_id: string
16203
+ /** The type of action. */
16204
+ action_type: string
16205
+ /** The status of the action. */
16206
+ status: string
16207
+ event_type: 'action_attempt.unlock_door.failed'
16208
+ }
16209
+ | {
16210
+ /** The ID of the event. */
16211
+ event_id: string
16212
+ /** The ID of the workspace. */
16213
+ workspace_id: string
16214
+ /** The time when the event was created. */
16215
+ created_at: string
16216
+ /** The time when the event occurred. */
16217
+ occurred_at: string
16218
+ /** ID of the connect webview. */
16219
+ connect_webview_id: string
16220
+ event_type: 'connect_webview.login_succeeded'
16221
+ /** ID of the connected account. */
16222
+ connected_account_id: string
16223
+ }
16224
+ | {
16225
+ /** The ID of the event. */
16226
+ event_id: string
16227
+ /** The ID of the workspace. */
16228
+ workspace_id: string
16229
+ /** The time when the event was created. */
16230
+ created_at: string
16231
+ /** The time when the event occurred. */
16232
+ occurred_at: string
16233
+ /** ID of the connect webview. */
16234
+ connect_webview_id: string
16235
+ event_type: 'connect_webview.login_failed'
16236
+ }
16237
+ | {
16238
+ /** The ID of the event. */
16239
+ event_id: string
16240
+ /** The ID of the workspace. */
16241
+ workspace_id: string
16242
+ /** The time when the event was created. */
16243
+ created_at: string
16244
+ /** The time when the event occurred. */
16245
+ occurred_at: string
16246
+ /** ID of the device. */
16247
+ device_id: string
16248
+ /** ID of the connected account. */
16249
+ connected_account_id: string
16250
+ event_type: 'device.connected'
16251
+ }
16252
+ | {
16253
+ /** The ID of the event. */
16254
+ event_id: string
16255
+ /** The ID of the workspace. */
16256
+ workspace_id: string
16257
+ /** The time when the event was created. */
16258
+ created_at: string
16259
+ /** The time when the event occurred. */
16260
+ occurred_at: string
16261
+ /** ID of the device. */
16262
+ device_id: string
16263
+ /** ID of the connected account. */
16264
+ connected_account_id: string
16265
+ event_type: 'device.added'
16266
+ }
16267
+ | {
16268
+ /** The ID of the event. */
16269
+ event_id: string
16270
+ /** The ID of the workspace. */
16271
+ workspace_id: string
16272
+ /** The time when the event was created. */
16273
+ created_at: string
16274
+ /** The time when the event occurred. */
16275
+ occurred_at: string
16276
+ /** ID of the device. */
16277
+ device_id: string
16278
+ /** ID of the connected account. */
16279
+ connected_account_id: string
16280
+ event_type: 'device.converted_to_unmanaged'
16281
+ }
16282
+ | {
16283
+ /** The ID of the event. */
16284
+ event_id: string
16285
+ /** The ID of the workspace. */
16286
+ workspace_id: string
16287
+ /** The time when the event was created. */
16288
+ created_at: string
16289
+ /** The time when the event occurred. */
16290
+ occurred_at: string
16291
+ /** ID of the device. */
16292
+ device_id: string
16293
+ /** ID of the connected account. */
16294
+ connected_account_id: string
16295
+ event_type: 'device.unmanaged.converted_to_managed'
16296
+ }
16297
+ | {
16298
+ /** The ID of the event. */
16299
+ event_id: string
16300
+ /** The ID of the workspace. */
16301
+ workspace_id: string
16302
+ /** The time when the event was created. */
16303
+ created_at: string
16304
+ /** The time when the event occurred. */
16305
+ occurred_at: string
16306
+ /** ID of the device. */
16307
+ device_id: string
16308
+ /** ID of the connected account. */
16309
+ connected_account_id: string
16310
+ event_type: 'device.unmanaged.connected'
16311
+ }
16312
+ | {
16313
+ /** The ID of the event. */
16314
+ event_id: string
16315
+ /** The ID of the workspace. */
16316
+ workspace_id: string
16317
+ /** The time when the event was created. */
16318
+ created_at: string
16319
+ /** The time when the event occurred. */
16320
+ occurred_at: string
16321
+ /** ID of the device. */
16322
+ device_id: string
16323
+ /** ID of the connected account. */
16324
+ connected_account_id: string
16325
+ event_type: 'device.disconnected'
16326
+ /** The error code associated with the event, if any. */
16327
+ error_code:
16328
+ | 'account_disconnected'
16329
+ | 'hub_disconnected'
16330
+ | 'device_disconnected'
16331
+ }
16332
+ | {
16333
+ /** The ID of the event. */
16334
+ event_id: string
16335
+ /** The ID of the workspace. */
16336
+ workspace_id: string
16337
+ /** The time when the event was created. */
16338
+ created_at: string
16339
+ /** The time when the event occurred. */
16340
+ occurred_at: string
16341
+ /** ID of the device. */
16342
+ device_id: string
16343
+ /** ID of the connected account. */
16344
+ connected_account_id: string
16345
+ event_type: 'device.unmanaged.disconnected'
16346
+ /** The error code associated with the event, if any. */
16347
+ error_code:
16348
+ | 'account_disconnected'
16349
+ | 'hub_disconnected'
16350
+ | 'device_disconnected'
16351
+ }
16352
+ | {
16353
+ /** The ID of the event. */
16354
+ event_id: string
16355
+ /** The ID of the workspace. */
16356
+ workspace_id: string
16357
+ /** The time when the event was created. */
16358
+ created_at: string
16359
+ /** The time when the event occurred. */
16360
+ occurred_at: string
16361
+ /** ID of the device. */
16362
+ device_id: string
16363
+ /** ID of the connected account. */
16364
+ connected_account_id: string
16365
+ event_type: 'device.tampered'
16366
+ }
16367
+ | {
16368
+ /** The ID of the event. */
16369
+ event_id: string
16370
+ /** The ID of the workspace. */
16371
+ workspace_id: string
16372
+ /** The time when the event was created. */
16373
+ created_at: string
16374
+ /** The time when the event occurred. */
16375
+ occurred_at: string
16376
+ /** ID of the device. */
16377
+ device_id: string
16378
+ /** ID of the connected account. */
16379
+ connected_account_id: string
16380
+ event_type: 'device.low_battery'
16381
+ /** Fractional number 0 to 1.0 indicating amount of battery in device, as reported by device. */
16382
+ battery_level: number
16383
+ }
16384
+ | {
16385
+ /** The ID of the event. */
16386
+ event_id: string
16387
+ /** The ID of the workspace. */
16388
+ workspace_id: string
16389
+ /** The time when the event was created. */
16390
+ created_at: string
16391
+ /** The time when the event occurred. */
16392
+ occurred_at: string
16393
+ /** ID of the device. */
16394
+ device_id: string
16395
+ /** ID of the connected account. */
16396
+ connected_account_id: string
16397
+ event_type: 'device.battery_status_changed'
16398
+ /** Enum representing the battery status calculated from numeric battery_level value, one of 'critical' | 'low' | 'good' | 'full' */
16399
+ battery_status: 'critical' | 'low' | 'good' | 'full'
16400
+ /** Fractional number 0 to 1.0 indicating amount of battery in device, as reported by device. */
16401
+ battery_level: number
16402
+ }
16403
+ | {
16404
+ /** The ID of the event. */
16405
+ event_id: string
16406
+ /** The ID of the workspace. */
16407
+ workspace_id: string
16408
+ /** The time when the event was created. */
16409
+ created_at: string
16410
+ /** The time when the event occurred. */
16411
+ occurred_at: string
16412
+ /** ID of the device. */
16413
+ device_id: string
16414
+ /** ID of the connected account. */
16415
+ connected_account_id: string
16416
+ event_type: 'device.removed'
16417
+ }
16418
+ | {
16419
+ /** The ID of the event. */
16420
+ event_id: string
16421
+ /** The ID of the workspace. */
16422
+ workspace_id: string
16423
+ /** The time when the event was created. */
16424
+ created_at: string
16425
+ /** The time when the event occurred. */
16426
+ occurred_at: string
16427
+ /** ID of the device. */
16428
+ device_id: string
16429
+ /** ID of the connected account. */
16430
+ connected_account_id: string
16431
+ event_type: 'device.deleted'
16432
+ }
16433
+ | {
16434
+ /** The ID of the event. */
16435
+ event_id: string
16436
+ /** The ID of the workspace. */
16437
+ workspace_id: string
16438
+ /** The time when the event was created. */
16439
+ created_at: string
16440
+ /** The time when the event occurred. */
16441
+ occurred_at: string
16442
+ /** ID of the device. */
16443
+ device_id: string
16444
+ /** ID of the connected account. */
16445
+ connected_account_id: string
16446
+ event_type: 'device.third_party_integration_detected'
16447
+ }
16448
+ | {
16449
+ /** The ID of the event. */
16450
+ event_id: string
16451
+ /** The ID of the workspace. */
16452
+ workspace_id: string
16453
+ /** The time when the event was created. */
16454
+ created_at: string
16455
+ /** The time when the event occurred. */
16456
+ occurred_at: string
16457
+ /** ID of the device. */
16458
+ device_id: string
16459
+ /** ID of the connected account. */
16460
+ connected_account_id: string
16461
+ event_type: 'device.third_party_integration_no_longer_detected'
16462
+ }
16463
+ | {
16464
+ /** The ID of the event. */
16465
+ event_id: string
16466
+ /** The ID of the workspace. */
16467
+ workspace_id: string
16468
+ /** The time when the event was created. */
16469
+ created_at: string
16470
+ /** The time when the event occurred. */
16471
+ occurred_at: string
16472
+ /** ID of the device. */
16473
+ device_id: string
16474
+ /** ID of the connected account. */
16475
+ connected_account_id: string
16476
+ event_type: 'device.salto.privacy_mode_activated'
16477
+ }
16478
+ | {
16479
+ /** The ID of the event. */
16480
+ event_id: string
16481
+ /** The ID of the workspace. */
16482
+ workspace_id: string
16483
+ /** The time when the event was created. */
16484
+ created_at: string
16485
+ /** The time when the event occurred. */
16486
+ occurred_at: string
16487
+ /** ID of the device. */
16488
+ device_id: string
16489
+ /** ID of the connected account. */
16490
+ connected_account_id: string
16491
+ event_type: 'device.salto.privacy_mode_deactivated'
16492
+ }
16493
+ | {
16494
+ /** The ID of the event. */
16495
+ event_id: string
16496
+ /** The ID of the workspace. */
16497
+ workspace_id: string
16498
+ /** The time when the event was created. */
16499
+ created_at: string
16500
+ /** The time when the event occurred. */
16501
+ occurred_at: string
16502
+ /** ID of the device. */
16503
+ device_id: string
16504
+ /** ID of the connected account. */
16505
+ connected_account_id: string
16506
+ event_type: 'device.connection_became_flaky'
16507
+ }
16508
+ | {
16509
+ /** The ID of the event. */
16510
+ event_id: string
16511
+ /** The ID of the workspace. */
16512
+ workspace_id: string
16513
+ /** The time when the event was created. */
16514
+ created_at: string
16515
+ /** The time when the event occurred. */
16516
+ occurred_at: string
16517
+ /** ID of the device. */
16518
+ device_id: string
16519
+ /** ID of the connected account. */
16520
+ connected_account_id: string
16521
+ event_type: 'device.connection_stabilized'
16522
+ }
16523
+ | {
16524
+ /** The ID of the event. */
16525
+ event_id: string
16526
+ /** The ID of the workspace. */
16527
+ workspace_id: string
16528
+ /** The time when the event was created. */
16529
+ created_at: string
16530
+ /** The time when the event occurred. */
16531
+ occurred_at: string
16532
+ /** ID of the device. */
16533
+ device_id: string
16534
+ /** ID of the connected account. */
16535
+ connected_account_id: string
16536
+ event_type: 'device.error.subscription_required'
16537
+ }
16538
+ | {
16539
+ /** The ID of the event. */
16540
+ event_id: string
16541
+ /** The ID of the workspace. */
16542
+ workspace_id: string
16543
+ /** The time when the event was created. */
16544
+ created_at: string
16545
+ /** The time when the event occurred. */
16546
+ occurred_at: string
16547
+ /** ID of the device. */
16548
+ device_id: string
16549
+ /** ID of the connected account. */
16550
+ connected_account_id: string
16551
+ event_type: 'device.error.subscription_required.resolved'
16552
+ }
16553
+ | {
16554
+ /** The ID of the event. */
16555
+ event_id: string
16556
+ /** The ID of the workspace. */
16557
+ workspace_id: string
16558
+ /** The time when the event was created. */
16559
+ created_at: string
16560
+ /** The time when the event occurred. */
16561
+ occurred_at: string
16562
+ /** ID of the device. */
16563
+ device_id: string
16564
+ /** ID of the connected account. */
16565
+ connected_account_id: string
16566
+ event_type: 'device.accessory_keypad_connected'
16567
+ }
16568
+ | {
16569
+ /** The ID of the event. */
16570
+ event_id: string
16571
+ /** The ID of the workspace. */
16572
+ workspace_id: string
16573
+ /** The time when the event was created. */
16574
+ created_at: string
16575
+ /** The time when the event occurred. */
16576
+ occurred_at: string
16577
+ /** ID of the device. */
16578
+ device_id: string
16579
+ /** ID of the connected account. */
16580
+ connected_account_id: string
16581
+ event_type: 'device.accessory_keypad_disconnected'
16582
+ }
16583
+ | {
16584
+ /** The ID of the event. */
16585
+ event_id: string
16586
+ /** The ID of the workspace. */
16587
+ workspace_id: string
16588
+ /** The time when the event was created. */
16589
+ created_at: string
16590
+ /** The time when the event occurred. */
16591
+ occurred_at: string
16592
+ /** ID of the device. */
16593
+ device_id: string
16594
+ /** ID of the connected account. */
16595
+ connected_account_id: string
16596
+ event_type: 'noise_sensor.noise_threshold_triggered'
16597
+ noise_level_decibels?: number | undefined
16598
+ noise_level_nrs?: number | undefined
16599
+ noise_threshold_id?: string | undefined
16600
+ noise_threshold_name?: string | undefined
16601
+ /** Metadata from the Noiseaware API. */
16602
+ noiseaware_metadata?: Record<string, unknown> | undefined
16603
+ /** Metadata from the Minut API. */
16604
+ minut_metadata?: Record<string, unknown> | undefined
16605
+ }
16606
+ | {
16607
+ /** The ID of the event. */
16608
+ event_id: string
16609
+ /** The ID of the workspace. */
16610
+ workspace_id: string
16611
+ /** The time when the event was created. */
16612
+ created_at: string
16613
+ /** The time when the event occurred. */
16614
+ occurred_at: string
16615
+ /** ID of the device. */
16616
+ device_id: string
16617
+ /** ID of the connected account. */
16618
+ connected_account_id: string
16619
+ event_type: 'lock.locked'
16620
+ access_code_id?: string | undefined
16621
+ action_attempt_id?: string | undefined
16622
+ /** Method by which a lock device was locked or unlocked. When the method is `keycode`, the `access_code_id` will reference the Seam access code which was used, if reported by the device. */
16623
+ method: 'keycode' | 'manual' | 'automatic' | 'unknown' | 'seamapi'
16624
+ }
16625
+ | {
16626
+ /** The ID of the event. */
16627
+ event_id: string
16628
+ /** The ID of the workspace. */
16629
+ workspace_id: string
16630
+ /** The time when the event was created. */
16631
+ created_at: string
16632
+ /** The time when the event occurred. */
16633
+ occurred_at: string
16634
+ /** ID of the device. */
16635
+ device_id: string
16636
+ /** ID of the connected account. */
16637
+ connected_account_id: string
16638
+ event_type: 'lock.unlocked'
16639
+ access_code_id?: string | undefined
16640
+ action_attempt_id?: string | undefined
16641
+ /** Method by which a lock device was locked or unlocked. When the method is `keycode`, the `access_code_id` will reference the Seam access code which was used, if reported by the device. */
16642
+ method: 'keycode' | 'manual' | 'automatic' | 'unknown' | 'seamapi'
16643
+ }
16644
+ | {
16645
+ /** The ID of the event. */
16646
+ event_id: string
16647
+ /** The ID of the workspace. */
16648
+ workspace_id: string
16649
+ /** The time when the event was created. */
16650
+ created_at: string
16651
+ /** The time when the event occurred. */
16652
+ occurred_at: string
16653
+ /** ID of the device. */
16654
+ device_id: string
16655
+ /** ID of the connected account. */
16656
+ connected_account_id: string
16657
+ event_type: 'lock.access_denied'
16658
+ access_code_id?: string | undefined
16659
+ }
16660
+ | {
16661
+ /** The ID of the event. */
16662
+ event_id: string
16663
+ /** The ID of the workspace. */
16664
+ workspace_id: string
16665
+ /** The time when the event was created. */
16666
+ created_at: string
16667
+ /** The time when the event occurred. */
16668
+ occurred_at: string
16669
+ /** ID of the device. */
16670
+ device_id: string
16671
+ /** ID of the connected account. */
16672
+ connected_account_id: string
16673
+ event_type: 'thermostat.climate_preset_activated'
16674
+ thermostat_schedule_id: string | null
16675
+ climate_preset_key: string
16676
+ is_fallback_climate_preset: boolean
16677
+ }
16678
+ | {
16679
+ /** The ID of the event. */
16680
+ event_id: string
16681
+ /** The ID of the workspace. */
16682
+ workspace_id: string
16683
+ /** The time when the event was created. */
16684
+ created_at: string
16685
+ /** The time when the event occurred. */
16686
+ occurred_at: string
16687
+ /** ID of the device. */
16688
+ device_id: string
16689
+ /** ID of the connected account. */
16690
+ connected_account_id: string
16691
+ event_type: 'thermostat.manually_adjusted'
16692
+ method: 'seam' | 'external'
16693
+ /** Desired fan mode setting, such as `on`, `auto`, or `circulate`. */
16694
+ fan_mode_setting?:
16695
+ | (('auto' | 'on' | 'circulate') | undefined)
16696
+ | undefined
16697
+ /** Desired [HVAC mode](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/hvac-mode) setting, such as `heat`, `cool`, `heat_cool`, or `off`. */
16698
+ hvac_mode_setting?:
16699
+ | (('off' | 'heat' | 'cool' | 'heat_cool') | undefined)
16700
+ | undefined
16701
+ /** Temperature to which the thermostat should cool (in °C). See also [Set Points](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points). */
16702
+ cooling_set_point_celsius?: (number | undefined) | undefined
16703
+ /** Temperature to which the thermostat should heat (in °C). */
16704
+ heating_set_point_celsius?: (number | undefined) | undefined
16705
+ /** Temperature to which the thermostat should cool (in °F). */
16706
+ cooling_set_point_fahrenheit?: (number | undefined) | undefined
16707
+ /** Temperature to which the thermostat should heat (in °F). */
16708
+ heating_set_point_fahrenheit?: (number | undefined) | undefined
16709
+ }
16710
+ | {
16711
+ /** The ID of the event. */
16712
+ event_id: string
16713
+ /** The ID of the workspace. */
16714
+ workspace_id: string
16715
+ /** The time when the event was created. */
16716
+ created_at: string
16717
+ /** The time when the event occurred. */
16718
+ occurred_at: string
16719
+ /** ID of the device. */
16720
+ device_id: string
16721
+ /** ID of the connected account. */
16722
+ connected_account_id: string
16723
+ event_type: 'thermostat.temperature_threshold_exceeded'
16724
+ temperature_celsius: number
16725
+ temperature_fahrenheit: number
16726
+ upper_limit_celsius: number | null
16727
+ upper_limit_fahrenheit: number | null
16728
+ lower_limit_celsius: number | null
16729
+ lower_limit_fahrenheit: number | null
16730
+ }
16731
+ | {
16732
+ /** The ID of the event. */
16733
+ event_id: string
16734
+ /** The ID of the workspace. */
16735
+ workspace_id: string
16736
+ /** The time when the event was created. */
16737
+ created_at: string
16738
+ /** The time when the event occurred. */
16739
+ occurred_at: string
16740
+ /** ID of the device. */
16741
+ device_id: string
16742
+ /** ID of the connected account. */
16743
+ connected_account_id: string
16744
+ event_type: 'thermostat.temperature_threshold_no_longer_exceeded'
16745
+ temperature_celsius: number
16746
+ temperature_fahrenheit: number
16747
+ upper_limit_celsius: number | null
16748
+ upper_limit_fahrenheit: number | null
16749
+ lower_limit_celsius: number | null
16750
+ lower_limit_fahrenheit: number | null
16751
+ }
16752
+ | {
16753
+ /** The ID of the event. */
16754
+ event_id: string
16755
+ /** The ID of the workspace. */
16756
+ workspace_id: string
16757
+ /** The time when the event was created. */
16758
+ created_at: string
16759
+ /** The time when the event occurred. */
16760
+ occurred_at: string
16761
+ /** ID of the enrollment automation. */
16762
+ enrollment_automation_id: string
16763
+ event_type: 'enrollment_automation.deleted'
16764
+ }
16765
+ | {
16766
+ /** The ID of the event. */
16767
+ event_id: string
16768
+ /** The ID of the workspace. */
16769
+ workspace_id: string
16770
+ /** The time when the event was created. */
16771
+ created_at: string
16772
+ /** The time when the event occurred. */
16773
+ occurred_at: string
16774
+ /** ID of the device. */
16775
+ device_id: string
16776
+ event_type: 'phone.deactivated'
16777
+ }
16778
+ >
14459
16779
  }
14460
16780
  }
14461
16781
  '/locks/get': {
@@ -25782,6 +28102,8 @@ export interface Routes {
25782
28102
  jsonBody: {
25783
28103
  /** ID of the desired thermostat device. */
25784
28104
  device_id: string
28105
+ /** Indicates whether a person at the thermostat or using the API can change the thermostat's settings.
28106
+ * @deprecated Use 'thermostat_schedule.is_override_allowed' */
25785
28107
  manual_override_allowed?: boolean
25786
28108
  /** Unique key to identify the climate preset. */
25787
28109
  climate_preset_key: string
@@ -30900,12 +33222,13 @@ export interface Routes {
30900
33222
  name?: string | undefined
30901
33223
  /** Key of the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets) to use for the thermostat schedule. */
30902
33224
  climate_preset_key: string
30903
- /** Number of minutes for which a person at the thermostat can change the thermostat's settings after the activation of the scheduled climate preset. See also [Specifying Manual Override Permissions](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions). */
33225
+ /** Number of minutes for which a person at the thermostat or using the API can change the thermostat's settings after the activation of the scheduled climate preset. See also [Specifying Manual Override Permissions](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions). */
30904
33226
  max_override_period_minutes?: number
30905
33227
  /** Date and time at which the thermostat schedule starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
30906
33228
  starts_at: string
30907
33229
  /** Date and time at which the thermostat schedule ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
30908
33230
  ends_at: string
33231
+ /** Indicates whether a person at the thermostat or using the API can change the thermostat's settings while the schedule is active. See also [Specifying Manual Override Permissions](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions). */
30909
33232
  is_override_allowed?: boolean | undefined
30910
33233
  }
30911
33234
  commonParams: {}
@@ -31032,12 +33355,13 @@ export interface Routes {
31032
33355
  name?: string | undefined
31033
33356
  /** Key of the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets) to use for the thermostat schedule. */
31034
33357
  climate_preset_key?: string | undefined
31035
- /** Number of minutes for which a person at the thermostat can change the thermostat's settings after the activation of the scheduled climate preset. See also [Specifying Manual Override Permissions](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions). */
33358
+ /** Number of minutes for which a person at the thermostat or using the API can change the thermostat's settings after the activation of the scheduled climate preset. See also [Specifying Manual Override Permissions](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions). */
31036
33359
  max_override_period_minutes?: number | undefined
31037
33360
  /** Date and time at which the thermostat schedule starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
31038
33361
  starts_at?: string | undefined
31039
33362
  /** Date and time at which the thermostat schedule ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
31040
33363
  ends_at?: string | undefined
33364
+ /** Indicates whether a person at the thermostat or using the API can change the thermostat's settings while the schedule is active. See also [Specifying Manual Override Permissions](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions). */
31041
33365
  is_override_allowed?: boolean | undefined
31042
33366
  }
31043
33367
  commonParams: {}