@seamapi/types 1.467.0 → 1.469.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.
@@ -47098,11 +47098,9 @@ declare const _default: {
47098
47098
  required: string[];
47099
47099
  type: string;
47100
47100
  'x-route-path': string;
47101
- 'x-undocumented': string;
47102
47101
  };
47103
47102
  type: string;
47104
47103
  'x-property-group-key': string;
47105
- 'x-undocumented': string;
47106
47104
  };
47107
47105
  thermostat_weekly_program: {
47108
47106
  description: string;
@@ -47159,7 +47157,6 @@ declare const _default: {
47159
47157
  required: string[];
47160
47158
  type: string;
47161
47159
  'x-property-group-key': string;
47162
- 'x-undocumented': string;
47163
47160
  };
47164
47161
  _experimental_supported_code_from_access_codes_lengths?: never;
47165
47162
  code_constraints?: never;
@@ -51953,7 +51950,6 @@ declare const _default: {
51953
51950
  required: string[];
51954
51951
  type: string;
51955
51952
  'x-route-path': string;
51956
- 'x-undocumented': string;
51957
51953
  };
51958
51954
  thermostat_schedule: {
51959
51955
  description: string;
@@ -78230,6 +78226,252 @@ declare const _default: {
78230
78226
  'x-undocumented': string;
78231
78227
  };
78232
78228
  };
78229
+ '/seam/customer/v1/events/list': {
78230
+ get: {
78231
+ description: string;
78232
+ operationId: string;
78233
+ parameters: ({
78234
+ in: string;
78235
+ name: string;
78236
+ required: boolean;
78237
+ schema: {
78238
+ description: string;
78239
+ format: string;
78240
+ type: string;
78241
+ items?: never;
78242
+ maxItems?: never;
78243
+ minItems?: never;
78244
+ enum?: never;
78245
+ default?: never;
78246
+ };
78247
+ } | {
78248
+ in: string;
78249
+ name: string;
78250
+ required: boolean;
78251
+ schema: {
78252
+ description: string;
78253
+ type: string;
78254
+ format?: never;
78255
+ items?: never;
78256
+ maxItems?: never;
78257
+ minItems?: never;
78258
+ enum?: never;
78259
+ default?: never;
78260
+ };
78261
+ } | {
78262
+ in: string;
78263
+ name: string;
78264
+ required: boolean;
78265
+ schema: {
78266
+ description: string;
78267
+ items: {
78268
+ oneOf: ({
78269
+ type: string;
78270
+ format?: never;
78271
+ } | {
78272
+ format: string;
78273
+ type: string;
78274
+ })[];
78275
+ enum?: never;
78276
+ type?: never;
78277
+ };
78278
+ maxItems: number;
78279
+ minItems: number;
78280
+ type: string;
78281
+ format?: never;
78282
+ enum?: never;
78283
+ default?: never;
78284
+ };
78285
+ } | {
78286
+ in: string;
78287
+ name: string;
78288
+ required: boolean;
78289
+ schema: {
78290
+ description: string;
78291
+ enum: string[];
78292
+ type: string;
78293
+ format?: never;
78294
+ items?: never;
78295
+ maxItems?: never;
78296
+ minItems?: never;
78297
+ default?: never;
78298
+ };
78299
+ } | {
78300
+ in: string;
78301
+ name: string;
78302
+ required: boolean;
78303
+ schema: {
78304
+ description: string;
78305
+ items: {
78306
+ enum: string[];
78307
+ type: string;
78308
+ oneOf?: never;
78309
+ };
78310
+ type: string;
78311
+ format?: never;
78312
+ maxItems?: never;
78313
+ minItems?: never;
78314
+ enum?: never;
78315
+ default?: never;
78316
+ };
78317
+ } | {
78318
+ in: string;
78319
+ name: string;
78320
+ required: boolean;
78321
+ schema: {
78322
+ default: number;
78323
+ description: string;
78324
+ format: string;
78325
+ type: string;
78326
+ items?: never;
78327
+ maxItems?: never;
78328
+ minItems?: never;
78329
+ enum?: never;
78330
+ };
78331
+ })[];
78332
+ responses: {
78333
+ 200: {
78334
+ content: {
78335
+ 'application/json': {
78336
+ schema: {
78337
+ properties: {
78338
+ events: {
78339
+ items: {
78340
+ $ref: string;
78341
+ };
78342
+ type: string;
78343
+ };
78344
+ ok: {
78345
+ type: string;
78346
+ };
78347
+ };
78348
+ required: string[];
78349
+ type: string;
78350
+ };
78351
+ };
78352
+ };
78353
+ description: string;
78354
+ };
78355
+ 400: {
78356
+ description: string;
78357
+ };
78358
+ 401: {
78359
+ description: string;
78360
+ };
78361
+ };
78362
+ security: {
78363
+ client_session_with_customer: never[];
78364
+ }[];
78365
+ summary: string;
78366
+ tags: string[];
78367
+ 'x-fern-sdk-group-name': string[];
78368
+ 'x-fern-sdk-method-name': string;
78369
+ 'x-fern-sdk-return-value': string;
78370
+ 'x-response-key': string;
78371
+ 'x-title': string;
78372
+ 'x-undocumented': string;
78373
+ };
78374
+ post: {
78375
+ description: string;
78376
+ operationId: string;
78377
+ requestBody: {
78378
+ content: {
78379
+ 'application/json': {
78380
+ schema: {
78381
+ properties: {
78382
+ between: {
78383
+ description: string;
78384
+ items: {
78385
+ oneOf: ({
78386
+ type: string;
78387
+ format?: never;
78388
+ } | {
78389
+ format: string;
78390
+ type: string;
78391
+ })[];
78392
+ };
78393
+ maxItems: number;
78394
+ minItems: number;
78395
+ type: string;
78396
+ };
78397
+ event_type: {
78398
+ description: string;
78399
+ enum: string[];
78400
+ type: string;
78401
+ };
78402
+ event_types: {
78403
+ description: string;
78404
+ items: {
78405
+ enum: string[];
78406
+ type: string;
78407
+ };
78408
+ type: string;
78409
+ };
78410
+ limit: {
78411
+ default: number;
78412
+ description: string;
78413
+ format: string;
78414
+ type: string;
78415
+ };
78416
+ since: {
78417
+ description: string;
78418
+ type: string;
78419
+ };
78420
+ space_id: {
78421
+ description: string;
78422
+ format: string;
78423
+ type: string;
78424
+ };
78425
+ };
78426
+ required: string[];
78427
+ type: string;
78428
+ };
78429
+ };
78430
+ };
78431
+ };
78432
+ responses: {
78433
+ 200: {
78434
+ content: {
78435
+ 'application/json': {
78436
+ schema: {
78437
+ properties: {
78438
+ events: {
78439
+ items: {
78440
+ $ref: string;
78441
+ };
78442
+ type: string;
78443
+ };
78444
+ ok: {
78445
+ type: string;
78446
+ };
78447
+ };
78448
+ required: string[];
78449
+ type: string;
78450
+ };
78451
+ };
78452
+ };
78453
+ description: string;
78454
+ };
78455
+ 400: {
78456
+ description: string;
78457
+ };
78458
+ 401: {
78459
+ description: string;
78460
+ };
78461
+ };
78462
+ security: {
78463
+ client_session_with_customer: never[];
78464
+ }[];
78465
+ summary: string;
78466
+ tags: string[];
78467
+ 'x-fern-sdk-group-name': string[];
78468
+ 'x-fern-sdk-method-name': string;
78469
+ 'x-fern-sdk-return-value': string;
78470
+ 'x-response-key': string;
78471
+ 'x-title': string;
78472
+ 'x-undocumented': string;
78473
+ };
78474
+ };
78233
78475
  '/seam/customer/v1/portals/get': {
78234
78476
  get: {
78235
78477
  description: string;
@@ -78447,26 +78689,124 @@ declare const _default: {
78447
78689
  'x-undocumented': string;
78448
78690
  };
78449
78691
  };
78450
- '/seam/customer/v1/settings/update': {
78451
- patch: {
78692
+ '/seam/customer/v1/settings/get': {
78693
+ get: {
78452
78694
  description: string;
78453
78695
  operationId: string;
78454
- requestBody: {
78455
- content: {
78456
- 'application/json': {
78457
- schema: {
78458
- properties: {
78459
- business_vertical: {
78460
- description: string;
78461
- enum: string[];
78462
- type: string;
78463
- };
78464
- };
78465
- type: string;
78466
- };
78467
- };
78468
- };
78469
- };
78696
+ responses: {
78697
+ 200: {
78698
+ content: {
78699
+ 'application/json': {
78700
+ schema: {
78701
+ properties: {
78702
+ business_vertical: {
78703
+ description: string;
78704
+ enum: string[];
78705
+ type: string;
78706
+ };
78707
+ ok: {
78708
+ type: string;
78709
+ };
78710
+ };
78711
+ required: string[];
78712
+ type: string;
78713
+ };
78714
+ };
78715
+ };
78716
+ description: string;
78717
+ };
78718
+ 400: {
78719
+ description: string;
78720
+ };
78721
+ 401: {
78722
+ description: string;
78723
+ };
78724
+ };
78725
+ security: ({
78726
+ console_session_with_workspace: never[];
78727
+ api_key?: never;
78728
+ } | {
78729
+ api_key: never[];
78730
+ console_session_with_workspace?: never;
78731
+ })[];
78732
+ summary: string;
78733
+ tags: never[];
78734
+ 'x-fern-sdk-group-name': string[];
78735
+ 'x-fern-sdk-method-name': string;
78736
+ 'x-fern-sdk-return-value': string;
78737
+ 'x-response-key': string;
78738
+ 'x-title': string;
78739
+ 'x-undocumented': string;
78740
+ };
78741
+ post: {
78742
+ description: string;
78743
+ operationId: string;
78744
+ responses: {
78745
+ 200: {
78746
+ content: {
78747
+ 'application/json': {
78748
+ schema: {
78749
+ properties: {
78750
+ business_vertical: {
78751
+ description: string;
78752
+ enum: string[];
78753
+ type: string;
78754
+ };
78755
+ ok: {
78756
+ type: string;
78757
+ };
78758
+ };
78759
+ required: string[];
78760
+ type: string;
78761
+ };
78762
+ };
78763
+ };
78764
+ description: string;
78765
+ };
78766
+ 400: {
78767
+ description: string;
78768
+ };
78769
+ 401: {
78770
+ description: string;
78771
+ };
78772
+ };
78773
+ security: ({
78774
+ console_session_with_workspace: never[];
78775
+ api_key?: never;
78776
+ } | {
78777
+ api_key: never[];
78778
+ console_session_with_workspace?: never;
78779
+ })[];
78780
+ summary: string;
78781
+ tags: never[];
78782
+ 'x-fern-sdk-group-name': string[];
78783
+ 'x-fern-sdk-method-name': string;
78784
+ 'x-fern-sdk-return-value': string;
78785
+ 'x-response-key': string;
78786
+ 'x-title': string;
78787
+ 'x-undocumented': string;
78788
+ };
78789
+ };
78790
+ '/seam/customer/v1/settings/update': {
78791
+ patch: {
78792
+ description: string;
78793
+ operationId: string;
78794
+ requestBody: {
78795
+ content: {
78796
+ 'application/json': {
78797
+ schema: {
78798
+ properties: {
78799
+ business_vertical: {
78800
+ description: string;
78801
+ enum: string[];
78802
+ type: string;
78803
+ };
78804
+ };
78805
+ type: string;
78806
+ };
78807
+ };
78808
+ };
78809
+ };
78470
78810
  responses: {
78471
78811
  200: {
78472
78812
  content: {
@@ -81112,7 +81452,6 @@ declare const _default: {
81112
81452
  'x-fern-sdk-return-value': string;
81113
81453
  'x-response-key': string;
81114
81454
  'x-title': string;
81115
- 'x-undocumented': string;
81116
81455
  };
81117
81456
  };
81118
81457
  '/thermostats/daily_programs/delete': {
@@ -81180,7 +81519,6 @@ declare const _default: {
81180
81519
  'x-fern-sdk-method-name': string;
81181
81520
  'x-response-key': null;
81182
81521
  'x-title': string;
81183
- 'x-undocumented': string;
81184
81522
  };
81185
81523
  post: {
81186
81524
  description: string;
@@ -81253,7 +81591,6 @@ declare const _default: {
81253
81591
  'x-fern-sdk-method-name': string;
81254
81592
  'x-response-key': null;
81255
81593
  'x-title': string;
81256
- 'x-undocumented': string;
81257
81594
  };
81258
81595
  };
81259
81596
  '/thermostats/daily_programs/update': {
@@ -81357,7 +81694,6 @@ declare const _default: {
81357
81694
  'x-fern-sdk-return-value': string;
81358
81695
  'x-response-key': string;
81359
81696
  'x-title': string;
81360
- 'x-undocumented': string;
81361
81697
  };
81362
81698
  post: {
81363
81699
  description: string;
@@ -81459,7 +81795,6 @@ declare const _default: {
81459
81795
  'x-fern-sdk-return-value': string;
81460
81796
  'x-response-key': string;
81461
81797
  'x-title': string;
81462
- 'x-undocumented': string;
81463
81798
  };
81464
81799
  };
81465
81800
  '/thermostats/delete_climate_preset': {
@@ -84493,7 +84828,6 @@ declare const _default: {
84493
84828
  'x-fern-sdk-return-value': string;
84494
84829
  'x-response-key': string;
84495
84830
  'x-title': string;
84496
- 'x-undocumented': string;
84497
84831
  };
84498
84832
  };
84499
84833
  '/unstable_access_grants/create': {
@@ -143465,38 +143799,1903 @@ type Routes = {
143465
143799
  formData: {};
143466
143800
  jsonResponse: {};
143467
143801
  };
143468
- '/seam/customer/v1/portals/get': {
143469
- route: '/seam/customer/v1/portals/get';
143802
+ '/seam/customer/v1/events/list': {
143803
+ route: '/seam/customer/v1/events/list';
143470
143804
  method: 'GET' | 'POST';
143471
143805
  queryParams: {};
143472
143806
  jsonBody: {};
143473
143807
  commonParams: {
143474
- /** Customer portal ID. */
143475
- customer_portal_id: string;
143808
+ /** ID of the space for which you want to list events. */
143809
+ space_id: string;
143810
+ /** Timestamp to indicate the beginning generation time for the events that you want to list. You must include `since` or `between`. */
143811
+ since?: string | undefined;
143812
+ /** Lower and upper timestamps to define an exclusive interval containing the events that you want to list. You must include `since` or `between`. */
143813
+ between?: (string | Date)[] | undefined;
143814
+ /** Type of the events that you want to list. */
143815
+ event_type?: ('access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.removed_from_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_set_on_device' | 'access_code.deleted' | 'access_code.delay_in_removing_from_device' | 'access_code.failed_to_remove_from_device' | 'access_code.modified_external_to_seam' | 'access_code.deleted_external_to_seam' | 'access_code.backup_access_code_pulled' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'access_grant.created' | 'access_grant.deleted' | 'access_grant.access_granted_to_all_doors' | 'access_grant.access_granted_to_door' | 'access_grant.access_to_door_lost' | 'access_method.issued' | 'access_method.revoked' | 'access_method.card_encoding_required' | 'access_method.deleted' | 'access_method.reissued' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_credential.invalidated' | 'acs_user.created' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'acs_entrance.added' | 'acs_entrance.removed' | 'client_session.deleted' | 'connected_account.connected' | 'connected_account.created' | 'connected_account.successful_login' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.deleted' | 'connected_account.completed_first_sync_after_reconnection' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'device.connected' | 'device.added' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | 'device.removed' | 'device.deleted' | 'device.third_party_integration_detected' | 'device.third_party_integration_no_longer_detected' | 'device.salto.privacy_mode_activated' | 'device.salto.privacy_mode_deactivated' | 'device.connection_became_flaky' | 'device.connection_stabilized' | 'device.error.subscription_required' | 'device.error.subscription_required.resolved' | 'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'noise_sensor.noise_threshold_triggered' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point' | 'thermostat.temperature_changed' | 'device.name_changed' | 'enrollment_automation.deleted' | 'phone.deactivated') | undefined;
143816
+ /** Types of the events that you want to list. */
143817
+ event_types?: ('access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.removed_from_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_set_on_device' | 'access_code.deleted' | 'access_code.delay_in_removing_from_device' | 'access_code.failed_to_remove_from_device' | 'access_code.modified_external_to_seam' | 'access_code.deleted_external_to_seam' | 'access_code.backup_access_code_pulled' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'access_grant.created' | 'access_grant.deleted' | 'access_grant.access_granted_to_all_doors' | 'access_grant.access_granted_to_door' | 'access_grant.access_to_door_lost' | 'access_method.issued' | 'access_method.revoked' | 'access_method.card_encoding_required' | 'access_method.deleted' | 'access_method.reissued' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_credential.invalidated' | 'acs_user.created' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'acs_entrance.added' | 'acs_entrance.removed' | 'client_session.deleted' | 'connected_account.connected' | 'connected_account.created' | 'connected_account.successful_login' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.deleted' | 'connected_account.completed_first_sync_after_reconnection' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'device.connected' | 'device.added' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | 'device.removed' | 'device.deleted' | 'device.third_party_integration_detected' | 'device.third_party_integration_no_longer_detected' | 'device.salto.privacy_mode_activated' | 'device.salto.privacy_mode_deactivated' | 'device.connection_became_flaky' | 'device.connection_stabilized' | 'device.error.subscription_required' | 'device.error.subscription_required.resolved' | 'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'noise_sensor.noise_threshold_triggered' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point' | 'thermostat.temperature_changed' | 'device.name_changed' | 'enrollment_automation.deleted' | 'phone.deactivated')[] | undefined;
143818
+ /** Numerical limit on the number of events to return. */
143819
+ limit?: number;
143476
143820
  };
143477
143821
  formData: {};
143478
143822
  jsonResponse: {
143479
- customer_portal: {
143480
- features?: {
143481
- connect?: {
143482
- exclude?: boolean | undefined;
143483
- } | undefined;
143484
- manage_devices?: {
143485
- exclude?: boolean | undefined;
143486
- } | undefined;
143487
- organize?: {
143488
- exclude?: boolean | undefined;
143489
- } | undefined;
143490
- configure?: {
143491
- exclude?: boolean | undefined;
143492
- allow_access_automation_rule_customization?: boolean | undefined;
143493
- allow_instant_key_customization?: boolean | undefined;
143494
- } | undefined;
143823
+ events: ({
143824
+ /** ID of the event. */
143825
+ event_id: string;
143826
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
143827
+ workspace_id: string;
143828
+ /** Date and time at which the event was created. */
143829
+ created_at: string;
143830
+ /** Date and time at which the event occurred. */
143831
+ occurred_at: string;
143832
+ /** ID of the affected access code. */
143833
+ access_code_id: string;
143834
+ /** ID of the device associated with the affected access code. */
143835
+ device_id: string;
143836
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the affected access code. */
143837
+ connected_account_id: string;
143838
+ /** Custom metadata of the device, present when device_id is provided. */
143839
+ device_custom_metadata?: {
143840
+ [x: string]: string | boolean;
143495
143841
  } | undefined;
143496
- is_embedded?: boolean | undefined;
143497
- /** Business vertical of the customer portal. */
143498
- business_vertical?: ('short_term_rental' | 'hospitality' | 'multi_family' | 'gym_management' | 'property_tours') | undefined;
143499
- };
143842
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
143843
+ connected_account_custom_metadata?: {
143844
+ [x: string]: string | boolean;
143845
+ } | undefined;
143846
+ event_type: 'access_code.created';
143847
+ } | {
143848
+ /** ID of the event. */
143849
+ event_id: string;
143850
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
143851
+ workspace_id: string;
143852
+ /** Date and time at which the event was created. */
143853
+ created_at: string;
143854
+ /** Date and time at which the event occurred. */
143855
+ occurred_at: string;
143856
+ /** ID of the affected access code. */
143857
+ access_code_id: string;
143858
+ /** ID of the device associated with the affected access code. */
143859
+ device_id: string;
143860
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the affected access code. */
143861
+ connected_account_id: string;
143862
+ /** Custom metadata of the device, present when device_id is provided. */
143863
+ device_custom_metadata?: {
143864
+ [x: string]: string | boolean;
143865
+ } | undefined;
143866
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
143867
+ connected_account_custom_metadata?: {
143868
+ [x: string]: string | boolean;
143869
+ } | undefined;
143870
+ event_type: 'access_code.changed';
143871
+ } | {
143872
+ /** ID of the event. */
143873
+ event_id: string;
143874
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
143875
+ workspace_id: string;
143876
+ /** Date and time at which the event was created. */
143877
+ created_at: string;
143878
+ /** Date and time at which the event occurred. */
143879
+ occurred_at: string;
143880
+ /** ID of the affected access code. */
143881
+ access_code_id: string;
143882
+ /** ID of the device associated with the affected access code. */
143883
+ device_id: string;
143884
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the affected access code. */
143885
+ connected_account_id: string;
143886
+ /** Custom metadata of the device, present when device_id is provided. */
143887
+ device_custom_metadata?: {
143888
+ [x: string]: string | boolean;
143889
+ } | undefined;
143890
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
143891
+ connected_account_custom_metadata?: {
143892
+ [x: string]: string | boolean;
143893
+ } | undefined;
143894
+ event_type: 'access_code.scheduled_on_device';
143895
+ /** Code for the affected access code. */
143896
+ code: string;
143897
+ } | {
143898
+ /** ID of the event. */
143899
+ event_id: string;
143900
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
143901
+ workspace_id: string;
143902
+ /** Date and time at which the event was created. */
143903
+ created_at: string;
143904
+ /** Date and time at which the event occurred. */
143905
+ occurred_at: string;
143906
+ /** ID of the affected access code. */
143907
+ access_code_id: string;
143908
+ /** ID of the device associated with the affected access code. */
143909
+ device_id: string;
143910
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the affected access code. */
143911
+ connected_account_id: string;
143912
+ /** Custom metadata of the device, present when device_id is provided. */
143913
+ device_custom_metadata?: {
143914
+ [x: string]: string | boolean;
143915
+ } | undefined;
143916
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
143917
+ connected_account_custom_metadata?: {
143918
+ [x: string]: string | boolean;
143919
+ } | undefined;
143920
+ event_type: 'access_code.set_on_device';
143921
+ /** Code for the affected access code. */
143922
+ code: string;
143923
+ } | {
143924
+ /** ID of the event. */
143925
+ event_id: string;
143926
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
143927
+ workspace_id: string;
143928
+ /** Date and time at which the event was created. */
143929
+ created_at: string;
143930
+ /** Date and time at which the event occurred. */
143931
+ occurred_at: string;
143932
+ /** ID of the affected access code. */
143933
+ access_code_id: string;
143934
+ /** ID of the device associated with the affected access code. */
143935
+ device_id: string;
143936
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the affected access code. */
143937
+ connected_account_id: string;
143938
+ /** Custom metadata of the device, present when device_id is provided. */
143939
+ device_custom_metadata?: {
143940
+ [x: string]: string | boolean;
143941
+ } | undefined;
143942
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
143943
+ connected_account_custom_metadata?: {
143944
+ [x: string]: string | boolean;
143945
+ } | undefined;
143946
+ event_type: 'access_code.removed_from_device';
143947
+ } | {
143948
+ /** ID of the event. */
143949
+ event_id: string;
143950
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
143951
+ workspace_id: string;
143952
+ /** Date and time at which the event was created. */
143953
+ created_at: string;
143954
+ /** Date and time at which the event occurred. */
143955
+ occurred_at: string;
143956
+ /** ID of the affected access code. */
143957
+ access_code_id: string;
143958
+ /** ID of the device associated with the affected access code. */
143959
+ device_id: string;
143960
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the affected access code. */
143961
+ connected_account_id: string;
143962
+ /** Custom metadata of the device, present when device_id is provided. */
143963
+ device_custom_metadata?: {
143964
+ [x: string]: string | boolean;
143965
+ } | undefined;
143966
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
143967
+ connected_account_custom_metadata?: {
143968
+ [x: string]: string | boolean;
143969
+ } | undefined;
143970
+ event_type: 'access_code.delay_in_setting_on_device';
143971
+ } | {
143972
+ /** ID of the event. */
143973
+ event_id: string;
143974
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
143975
+ workspace_id: string;
143976
+ /** Date and time at which the event was created. */
143977
+ created_at: string;
143978
+ /** Date and time at which the event occurred. */
143979
+ occurred_at: string;
143980
+ /** ID of the affected access code. */
143981
+ access_code_id: string;
143982
+ /** ID of the device associated with the affected access code. */
143983
+ device_id: string;
143984
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the affected access code. */
143985
+ connected_account_id: string;
143986
+ /** Custom metadata of the device, present when device_id is provided. */
143987
+ device_custom_metadata?: {
143988
+ [x: string]: string | boolean;
143989
+ } | undefined;
143990
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
143991
+ connected_account_custom_metadata?: {
143992
+ [x: string]: string | boolean;
143993
+ } | undefined;
143994
+ event_type: 'access_code.failed_to_set_on_device';
143995
+ } | {
143996
+ /** ID of the event. */
143997
+ event_id: string;
143998
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
143999
+ workspace_id: string;
144000
+ /** Date and time at which the event was created. */
144001
+ created_at: string;
144002
+ /** Date and time at which the event occurred. */
144003
+ occurred_at: string;
144004
+ /** ID of the affected access code. */
144005
+ access_code_id: string;
144006
+ /** ID of the device associated with the affected access code. */
144007
+ device_id: string;
144008
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the affected access code. */
144009
+ connected_account_id: string;
144010
+ /** Custom metadata of the device, present when device_id is provided. */
144011
+ device_custom_metadata?: {
144012
+ [x: string]: string | boolean;
144013
+ } | undefined;
144014
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
144015
+ connected_account_custom_metadata?: {
144016
+ [x: string]: string | boolean;
144017
+ } | undefined;
144018
+ event_type: 'access_code.deleted';
144019
+ /** Code for the affected access code. */
144020
+ code: string | null;
144021
+ } | {
144022
+ /** ID of the event. */
144023
+ event_id: string;
144024
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144025
+ workspace_id: string;
144026
+ /** Date and time at which the event was created. */
144027
+ created_at: string;
144028
+ /** Date and time at which the event occurred. */
144029
+ occurred_at: string;
144030
+ /** ID of the affected access code. */
144031
+ access_code_id: string;
144032
+ /** ID of the device associated with the affected access code. */
144033
+ device_id: string;
144034
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the affected access code. */
144035
+ connected_account_id: string;
144036
+ /** Custom metadata of the device, present when device_id is provided. */
144037
+ device_custom_metadata?: {
144038
+ [x: string]: string | boolean;
144039
+ } | undefined;
144040
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
144041
+ connected_account_custom_metadata?: {
144042
+ [x: string]: string | boolean;
144043
+ } | undefined;
144044
+ event_type: 'access_code.delay_in_removing_from_device';
144045
+ } | {
144046
+ /** ID of the event. */
144047
+ event_id: string;
144048
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144049
+ workspace_id: string;
144050
+ /** Date and time at which the event was created. */
144051
+ created_at: string;
144052
+ /** Date and time at which the event occurred. */
144053
+ occurred_at: string;
144054
+ /** ID of the affected access code. */
144055
+ access_code_id: string;
144056
+ /** ID of the device associated with the affected access code. */
144057
+ device_id: string;
144058
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the affected access code. */
144059
+ connected_account_id: string;
144060
+ /** Custom metadata of the device, present when device_id is provided. */
144061
+ device_custom_metadata?: {
144062
+ [x: string]: string | boolean;
144063
+ } | undefined;
144064
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
144065
+ connected_account_custom_metadata?: {
144066
+ [x: string]: string | boolean;
144067
+ } | undefined;
144068
+ event_type: 'access_code.failed_to_remove_from_device';
144069
+ } | {
144070
+ /** ID of the event. */
144071
+ event_id: string;
144072
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144073
+ workspace_id: string;
144074
+ /** Date and time at which the event was created. */
144075
+ created_at: string;
144076
+ /** Date and time at which the event occurred. */
144077
+ occurred_at: string;
144078
+ /** ID of the affected access code. */
144079
+ access_code_id: string;
144080
+ /** ID of the device associated with the affected access code. */
144081
+ device_id: string;
144082
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the affected access code. */
144083
+ connected_account_id: string;
144084
+ /** Custom metadata of the device, present when device_id is provided. */
144085
+ device_custom_metadata?: {
144086
+ [x: string]: string | boolean;
144087
+ } | undefined;
144088
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
144089
+ connected_account_custom_metadata?: {
144090
+ [x: string]: string | boolean;
144091
+ } | undefined;
144092
+ event_type: 'access_code.modified_external_to_seam';
144093
+ } | {
144094
+ /** ID of the event. */
144095
+ event_id: string;
144096
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144097
+ workspace_id: string;
144098
+ /** Date and time at which the event was created. */
144099
+ created_at: string;
144100
+ /** Date and time at which the event occurred. */
144101
+ occurred_at: string;
144102
+ /** ID of the affected access code. */
144103
+ access_code_id: string;
144104
+ /** ID of the device associated with the affected access code. */
144105
+ device_id: string;
144106
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the affected access code. */
144107
+ connected_account_id: string;
144108
+ /** Custom metadata of the device, present when device_id is provided. */
144109
+ device_custom_metadata?: {
144110
+ [x: string]: string | boolean;
144111
+ } | undefined;
144112
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
144113
+ connected_account_custom_metadata?: {
144114
+ [x: string]: string | boolean;
144115
+ } | undefined;
144116
+ event_type: 'access_code.deleted_external_to_seam';
144117
+ } | {
144118
+ /** ID of the event. */
144119
+ event_id: string;
144120
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144121
+ workspace_id: string;
144122
+ /** Date and time at which the event was created. */
144123
+ created_at: string;
144124
+ /** Date and time at which the event occurred. */
144125
+ occurred_at: string;
144126
+ /** ID of the affected access code. */
144127
+ access_code_id: string;
144128
+ /** ID of the device associated with the affected access code. */
144129
+ device_id: string;
144130
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the affected access code. */
144131
+ connected_account_id: string;
144132
+ /** Custom metadata of the device, present when device_id is provided. */
144133
+ device_custom_metadata?: {
144134
+ [x: string]: string | boolean;
144135
+ } | undefined;
144136
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
144137
+ connected_account_custom_metadata?: {
144138
+ [x: string]: string | boolean;
144139
+ } | undefined;
144140
+ event_type: 'access_code.backup_access_code_pulled';
144141
+ backup_access_code_id: string;
144142
+ } | {
144143
+ /** ID of the event. */
144144
+ event_id: string;
144145
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144146
+ workspace_id: string;
144147
+ /** Date and time at which the event was created. */
144148
+ created_at: string;
144149
+ /** Date and time at which the event occurred. */
144150
+ occurred_at: string;
144151
+ /** ID of the affected access code. */
144152
+ access_code_id: string;
144153
+ /** ID of the device associated with the affected access code. */
144154
+ device_id: string;
144155
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the affected access code. */
144156
+ connected_account_id: string;
144157
+ /** Custom metadata of the device, present when device_id is provided. */
144158
+ device_custom_metadata?: {
144159
+ [x: string]: string | boolean;
144160
+ } | undefined;
144161
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
144162
+ connected_account_custom_metadata?: {
144163
+ [x: string]: string | boolean;
144164
+ } | undefined;
144165
+ event_type: 'access_code.unmanaged.converted_to_managed';
144166
+ } | {
144167
+ /** ID of the event. */
144168
+ event_id: string;
144169
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144170
+ workspace_id: string;
144171
+ /** Date and time at which the event was created. */
144172
+ created_at: string;
144173
+ /** Date and time at which the event occurred. */
144174
+ occurred_at: string;
144175
+ /** ID of the affected access code. */
144176
+ access_code_id: string;
144177
+ /** ID of the device associated with the affected access code. */
144178
+ device_id: string;
144179
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the affected access code. */
144180
+ connected_account_id: string;
144181
+ /** Custom metadata of the device, present when device_id is provided. */
144182
+ device_custom_metadata?: {
144183
+ [x: string]: string | boolean;
144184
+ } | undefined;
144185
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
144186
+ connected_account_custom_metadata?: {
144187
+ [x: string]: string | boolean;
144188
+ } | undefined;
144189
+ event_type: 'access_code.unmanaged.failed_to_convert_to_managed';
144190
+ } | {
144191
+ /** ID of the event. */
144192
+ event_id: string;
144193
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144194
+ workspace_id: string;
144195
+ /** Date and time at which the event was created. */
144196
+ created_at: string;
144197
+ /** Date and time at which the event occurred. */
144198
+ occurred_at: string;
144199
+ /** ID of the affected access code. */
144200
+ access_code_id: string;
144201
+ /** ID of the device associated with the affected access code. */
144202
+ device_id: string;
144203
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the affected access code. */
144204
+ connected_account_id: string;
144205
+ /** Custom metadata of the device, present when device_id is provided. */
144206
+ device_custom_metadata?: {
144207
+ [x: string]: string | boolean;
144208
+ } | undefined;
144209
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
144210
+ connected_account_custom_metadata?: {
144211
+ [x: string]: string | boolean;
144212
+ } | undefined;
144213
+ event_type: 'access_code.unmanaged.created';
144214
+ } | {
144215
+ /** ID of the event. */
144216
+ event_id: string;
144217
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144218
+ workspace_id: string;
144219
+ /** Date and time at which the event was created. */
144220
+ created_at: string;
144221
+ /** Date and time at which the event occurred. */
144222
+ occurred_at: string;
144223
+ /** ID of the affected access code. */
144224
+ access_code_id: string;
144225
+ /** ID of the device associated with the affected access code. */
144226
+ device_id: string;
144227
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the affected access code. */
144228
+ connected_account_id: string;
144229
+ /** Custom metadata of the device, present when device_id is provided. */
144230
+ device_custom_metadata?: {
144231
+ [x: string]: string | boolean;
144232
+ } | undefined;
144233
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
144234
+ connected_account_custom_metadata?: {
144235
+ [x: string]: string | boolean;
144236
+ } | undefined;
144237
+ event_type: 'access_code.unmanaged.removed';
144238
+ } | {
144239
+ /** ID of the event. */
144240
+ event_id: string;
144241
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144242
+ workspace_id: string;
144243
+ /** Date and time at which the event was created. */
144244
+ created_at: string;
144245
+ /** Date and time at which the event occurred. */
144246
+ occurred_at: string;
144247
+ /** ID of the affected Access Grant. */
144248
+ access_grant_id: string;
144249
+ event_type: 'access_grant.created';
144250
+ } | {
144251
+ /** ID of the event. */
144252
+ event_id: string;
144253
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144254
+ workspace_id: string;
144255
+ /** Date and time at which the event was created. */
144256
+ created_at: string;
144257
+ /** Date and time at which the event occurred. */
144258
+ occurred_at: string;
144259
+ /** ID of the affected Access Grant. */
144260
+ access_grant_id: string;
144261
+ event_type: 'access_grant.deleted';
144262
+ } | {
144263
+ /** ID of the event. */
144264
+ event_id: string;
144265
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144266
+ workspace_id: string;
144267
+ /** Date and time at which the event was created. */
144268
+ created_at: string;
144269
+ /** Date and time at which the event occurred. */
144270
+ occurred_at: string;
144271
+ /** ID of the affected Access Grant. */
144272
+ access_grant_id: string;
144273
+ event_type: 'access_grant.access_granted_to_all_doors';
144274
+ } | {
144275
+ /** ID of the event. */
144276
+ event_id: string;
144277
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144278
+ workspace_id: string;
144279
+ /** Date and time at which the event was created. */
144280
+ created_at: string;
144281
+ /** Date and time at which the event occurred. */
144282
+ occurred_at: string;
144283
+ /** ID of the affected Access Grant. */
144284
+ access_grant_id: string;
144285
+ event_type: 'access_grant.access_granted_to_door';
144286
+ /** ID of the affected [entrance](https://docs.seam.co/latest/capability-guides/retrieving-entrance-details). */
144287
+ acs_entrance_id: string;
144288
+ } | {
144289
+ /** ID of the event. */
144290
+ event_id: string;
144291
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144292
+ workspace_id: string;
144293
+ /** Date and time at which the event was created. */
144294
+ created_at: string;
144295
+ /** Date and time at which the event occurred. */
144296
+ occurred_at: string;
144297
+ /** ID of the affected Access Grant. */
144298
+ access_grant_id: string;
144299
+ event_type: 'access_grant.access_to_door_lost';
144300
+ /** ID of the affected [entrance](https://docs.seam.co/latest/capability-guides/retrieving-entrance-details). */
144301
+ acs_entrance_id: string;
144302
+ } | {
144303
+ /** ID of the event. */
144304
+ event_id: string;
144305
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144306
+ workspace_id: string;
144307
+ /** Date and time at which the event was created. */
144308
+ created_at: string;
144309
+ /** Date and time at which the event occurred. */
144310
+ occurred_at: string;
144311
+ /** ID of the affected access method. */
144312
+ access_method_id: string;
144313
+ event_type: 'access_method.issued';
144314
+ } | {
144315
+ /** ID of the event. */
144316
+ event_id: string;
144317
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144318
+ workspace_id: string;
144319
+ /** Date and time at which the event was created. */
144320
+ created_at: string;
144321
+ /** Date and time at which the event occurred. */
144322
+ occurred_at: string;
144323
+ /** ID of the affected access method. */
144324
+ access_method_id: string;
144325
+ event_type: 'access_method.revoked';
144326
+ } | {
144327
+ /** ID of the event. */
144328
+ event_id: string;
144329
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144330
+ workspace_id: string;
144331
+ /** Date and time at which the event was created. */
144332
+ created_at: string;
144333
+ /** Date and time at which the event occurred. */
144334
+ occurred_at: string;
144335
+ /** ID of the affected access method. */
144336
+ access_method_id: string;
144337
+ event_type: 'access_method.card_encoding_required';
144338
+ } | {
144339
+ /** ID of the event. */
144340
+ event_id: string;
144341
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144342
+ workspace_id: string;
144343
+ /** Date and time at which the event was created. */
144344
+ created_at: string;
144345
+ /** Date and time at which the event occurred. */
144346
+ occurred_at: string;
144347
+ /** ID of the affected access method. */
144348
+ access_method_id: string;
144349
+ event_type: 'access_method.deleted';
144350
+ } | {
144351
+ /** ID of the event. */
144352
+ event_id: string;
144353
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144354
+ workspace_id: string;
144355
+ /** Date and time at which the event was created. */
144356
+ created_at: string;
144357
+ /** Date and time at which the event occurred. */
144358
+ occurred_at: string;
144359
+ /** ID of the affected access method. */
144360
+ access_method_id: string;
144361
+ event_type: 'access_method.reissued';
144362
+ } | {
144363
+ /** ID of the event. */
144364
+ event_id: string;
144365
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144366
+ workspace_id: string;
144367
+ /** Date and time at which the event was created. */
144368
+ created_at: string;
144369
+ /** Date and time at which the event occurred. */
144370
+ occurred_at: string;
144371
+ /** ID of the connected account. */
144372
+ connected_account_id?: string | undefined;
144373
+ /** ID of the access system. */
144374
+ acs_system_id: string;
144375
+ event_type: 'acs_system.connected';
144376
+ } | {
144377
+ /** ID of the event. */
144378
+ event_id: string;
144379
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144380
+ workspace_id: string;
144381
+ /** Date and time at which the event was created. */
144382
+ created_at: string;
144383
+ /** Date and time at which the event occurred. */
144384
+ occurred_at: string;
144385
+ /** ID of the connected account. */
144386
+ connected_account_id?: string | undefined;
144387
+ /** ID of the access system. */
144388
+ acs_system_id: string;
144389
+ event_type: 'acs_system.added';
144390
+ } | {
144391
+ /** ID of the event. */
144392
+ event_id: string;
144393
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144394
+ workspace_id: string;
144395
+ /** Date and time at which the event was created. */
144396
+ created_at: string;
144397
+ /** Date and time at which the event occurred. */
144398
+ occurred_at: string;
144399
+ /** ID of the connected account. */
144400
+ connected_account_id?: string | undefined;
144401
+ /** ID of the access system. */
144402
+ acs_system_id: string;
144403
+ event_type: 'acs_system.disconnected';
144404
+ } | {
144405
+ /** ID of the event. */
144406
+ event_id: string;
144407
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144408
+ workspace_id: string;
144409
+ /** Date and time at which the event was created. */
144410
+ created_at: string;
144411
+ /** Date and time at which the event occurred. */
144412
+ occurred_at: string;
144413
+ /** ID of the connected account. */
144414
+ connected_account_id?: string | undefined;
144415
+ /** ID of the access system. */
144416
+ acs_system_id: string;
144417
+ /** ID of the affected credential. */
144418
+ acs_credential_id: string;
144419
+ event_type: 'acs_credential.deleted';
144420
+ } | {
144421
+ /** ID of the event. */
144422
+ event_id: string;
144423
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144424
+ workspace_id: string;
144425
+ /** Date and time at which the event was created. */
144426
+ created_at: string;
144427
+ /** Date and time at which the event occurred. */
144428
+ occurred_at: string;
144429
+ /** ID of the connected account. */
144430
+ connected_account_id?: string | undefined;
144431
+ /** ID of the access system. */
144432
+ acs_system_id: string;
144433
+ /** ID of the affected credential. */
144434
+ acs_credential_id: string;
144435
+ event_type: 'acs_credential.issued';
144436
+ } | {
144437
+ /** ID of the event. */
144438
+ event_id: string;
144439
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144440
+ workspace_id: string;
144441
+ /** Date and time at which the event was created. */
144442
+ created_at: string;
144443
+ /** Date and time at which the event occurred. */
144444
+ occurred_at: string;
144445
+ /** ID of the connected account. */
144446
+ connected_account_id?: string | undefined;
144447
+ /** ID of the access system. */
144448
+ acs_system_id: string;
144449
+ /** ID of the affected credential. */
144450
+ acs_credential_id: string;
144451
+ event_type: 'acs_credential.reissued';
144452
+ } | {
144453
+ /** ID of the event. */
144454
+ event_id: string;
144455
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144456
+ workspace_id: string;
144457
+ /** Date and time at which the event was created. */
144458
+ created_at: string;
144459
+ /** Date and time at which the event occurred. */
144460
+ occurred_at: string;
144461
+ /** ID of the connected account. */
144462
+ connected_account_id?: string | undefined;
144463
+ /** ID of the access system. */
144464
+ acs_system_id: string;
144465
+ /** ID of the affected credential. */
144466
+ acs_credential_id: string;
144467
+ event_type: 'acs_credential.invalidated';
144468
+ } | {
144469
+ /** ID of the event. */
144470
+ event_id: string;
144471
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144472
+ workspace_id: string;
144473
+ /** Date and time at which the event was created. */
144474
+ created_at: string;
144475
+ /** Date and time at which the event occurred. */
144476
+ occurred_at: string;
144477
+ /** ID of the connected account. */
144478
+ connected_account_id?: string | undefined;
144479
+ /** ID of the access system. */
144480
+ acs_system_id: string;
144481
+ acs_user_id: string;
144482
+ event_type: 'acs_user.created';
144483
+ } | {
144484
+ /** ID of the event. */
144485
+ event_id: string;
144486
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144487
+ workspace_id: string;
144488
+ /** Date and time at which the event was created. */
144489
+ created_at: string;
144490
+ /** Date and time at which the event occurred. */
144491
+ occurred_at: string;
144492
+ /** ID of the connected account. */
144493
+ connected_account_id?: string | undefined;
144494
+ /** ID of the access system. */
144495
+ acs_system_id: string;
144496
+ acs_user_id: string;
144497
+ event_type: 'acs_user.deleted';
144498
+ } | {
144499
+ /** ID of the event. */
144500
+ event_id: string;
144501
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144502
+ workspace_id: string;
144503
+ /** Date and time at which the event was created. */
144504
+ created_at: string;
144505
+ /** Date and time at which the event occurred. */
144506
+ occurred_at: string;
144507
+ /** ID of the connected account. */
144508
+ connected_account_id?: string | undefined;
144509
+ /** ID of the access system. */
144510
+ acs_system_id: string;
144511
+ /** ID of the affected encoder. */
144512
+ acs_encoder_id: string;
144513
+ event_type: 'acs_encoder.added';
144514
+ } | {
144515
+ /** ID of the event. */
144516
+ event_id: string;
144517
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144518
+ workspace_id: string;
144519
+ /** Date and time at which the event was created. */
144520
+ created_at: string;
144521
+ /** Date and time at which the event occurred. */
144522
+ occurred_at: string;
144523
+ /** ID of the connected account. */
144524
+ connected_account_id?: string | undefined;
144525
+ /** ID of the access system. */
144526
+ acs_system_id: string;
144527
+ /** ID of the affected encoder. */
144528
+ acs_encoder_id: string;
144529
+ event_type: 'acs_encoder.removed';
144530
+ } | {
144531
+ /** ID of the event. */
144532
+ event_id: string;
144533
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144534
+ workspace_id: string;
144535
+ /** Date and time at which the event was created. */
144536
+ created_at: string;
144537
+ /** Date and time at which the event occurred. */
144538
+ occurred_at: string;
144539
+ /** ID of the connected account. */
144540
+ connected_account_id?: string | undefined;
144541
+ /** ID of the access system. */
144542
+ acs_system_id: string;
144543
+ /** ID of the affected access group. */
144544
+ acs_access_group_id: string;
144545
+ event_type: 'acs_access_group.deleted';
144546
+ } | {
144547
+ /** ID of the event. */
144548
+ event_id: string;
144549
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144550
+ workspace_id: string;
144551
+ /** Date and time at which the event was created. */
144552
+ created_at: string;
144553
+ /** Date and time at which the event occurred. */
144554
+ occurred_at: string;
144555
+ /** ID of the connected account. */
144556
+ connected_account_id?: string | undefined;
144557
+ /** ID of the access system. */
144558
+ acs_system_id: string;
144559
+ acs_entrance_id: string;
144560
+ event_type: 'acs_entrance.added';
144561
+ } | {
144562
+ /** ID of the event. */
144563
+ event_id: string;
144564
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144565
+ workspace_id: string;
144566
+ /** Date and time at which the event was created. */
144567
+ created_at: string;
144568
+ /** Date and time at which the event occurred. */
144569
+ occurred_at: string;
144570
+ /** ID of the connected account. */
144571
+ connected_account_id?: string | undefined;
144572
+ /** ID of the access system. */
144573
+ acs_system_id: string;
144574
+ acs_entrance_id: string;
144575
+ event_type: 'acs_entrance.removed';
144576
+ } | {
144577
+ /** ID of the event. */
144578
+ event_id: string;
144579
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144580
+ workspace_id: string;
144581
+ /** Date and time at which the event was created. */
144582
+ created_at: string;
144583
+ /** Date and time at which the event occurred. */
144584
+ occurred_at: string;
144585
+ /** ID of the affected client session. */
144586
+ client_session_id: string;
144587
+ event_type: 'client_session.deleted';
144588
+ } | {
144589
+ /** ID of the event. */
144590
+ event_id: string;
144591
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144592
+ workspace_id: string;
144593
+ /** Date and time at which the event was created. */
144594
+ created_at: string;
144595
+ /** Date and time at which the event occurred. */
144596
+ occurred_at: string;
144597
+ /** ID of the affected [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts). */
144598
+ connected_account_id: string;
144599
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
144600
+ connected_account_custom_metadata?: {
144601
+ [x: string]: string | boolean;
144602
+ } | undefined;
144603
+ event_type: 'connected_account.connected';
144604
+ /** ID of the [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews) associated with the event. */
144605
+ connect_webview_id: string;
144606
+ } | {
144607
+ /** ID of the event. */
144608
+ event_id: string;
144609
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144610
+ workspace_id: string;
144611
+ /** Date and time at which the event was created. */
144612
+ created_at: string;
144613
+ /** Date and time at which the event occurred. */
144614
+ occurred_at: string;
144615
+ /** ID of the affected [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts). */
144616
+ connected_account_id: string;
144617
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
144618
+ connected_account_custom_metadata?: {
144619
+ [x: string]: string | boolean;
144620
+ } | undefined;
144621
+ event_type: 'connected_account.created';
144622
+ /** ID of the [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews) associated with the event. */
144623
+ connect_webview_id: string;
144624
+ } | {
144625
+ /** ID of the event. */
144626
+ event_id: string;
144627
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144628
+ workspace_id: string;
144629
+ /** Date and time at which the event was created. */
144630
+ created_at: string;
144631
+ /** Date and time at which the event occurred. */
144632
+ occurred_at: string;
144633
+ /** ID of the affected [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts). */
144634
+ connected_account_id: string;
144635
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
144636
+ connected_account_custom_metadata?: {
144637
+ [x: string]: string | boolean;
144638
+ } | undefined;
144639
+ event_type: 'connected_account.successful_login';
144640
+ /** ID of the [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews) associated with the event. */
144641
+ connect_webview_id: string;
144642
+ } | {
144643
+ /** ID of the event. */
144644
+ event_id: string;
144645
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144646
+ workspace_id: string;
144647
+ /** Date and time at which the event was created. */
144648
+ created_at: string;
144649
+ /** Date and time at which the event occurred. */
144650
+ occurred_at: string;
144651
+ /** ID of the affected [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts). */
144652
+ connected_account_id: string;
144653
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
144654
+ connected_account_custom_metadata?: {
144655
+ [x: string]: string | boolean;
144656
+ } | undefined;
144657
+ event_type: 'connected_account.disconnected';
144658
+ } | {
144659
+ /** ID of the event. */
144660
+ event_id: string;
144661
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144662
+ workspace_id: string;
144663
+ /** Date and time at which the event was created. */
144664
+ created_at: string;
144665
+ /** Date and time at which the event occurred. */
144666
+ occurred_at: string;
144667
+ /** ID of the affected [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts). */
144668
+ connected_account_id: string;
144669
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
144670
+ connected_account_custom_metadata?: {
144671
+ [x: string]: string | boolean;
144672
+ } | undefined;
144673
+ event_type: 'connected_account.completed_first_sync';
144674
+ } | {
144675
+ /** ID of the event. */
144676
+ event_id: string;
144677
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144678
+ workspace_id: string;
144679
+ /** Date and time at which the event was created. */
144680
+ created_at: string;
144681
+ /** Date and time at which the event occurred. */
144682
+ occurred_at: string;
144683
+ /** ID of the affected [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts). */
144684
+ connected_account_id: string;
144685
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
144686
+ connected_account_custom_metadata?: {
144687
+ [x: string]: string | boolean;
144688
+ } | undefined;
144689
+ event_type: 'connected_account.deleted';
144690
+ } | {
144691
+ /** ID of the event. */
144692
+ event_id: string;
144693
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144694
+ workspace_id: string;
144695
+ /** Date and time at which the event was created. */
144696
+ created_at: string;
144697
+ /** Date and time at which the event occurred. */
144698
+ occurred_at: string;
144699
+ /** ID of the affected [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts). */
144700
+ connected_account_id: string;
144701
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
144702
+ connected_account_custom_metadata?: {
144703
+ [x: string]: string | boolean;
144704
+ } | undefined;
144705
+ event_type: 'connected_account.completed_first_sync_after_reconnection';
144706
+ } | {
144707
+ /** ID of the event. */
144708
+ event_id: string;
144709
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144710
+ workspace_id: string;
144711
+ /** Date and time at which the event was created. */
144712
+ created_at: string;
144713
+ /** Date and time at which the event occurred. */
144714
+ occurred_at: string;
144715
+ /** ID of the affected action attempt. */
144716
+ action_attempt_id: string;
144717
+ /** Type of the action. */
144718
+ action_type: string;
144719
+ /** Status of the action. */
144720
+ status: string;
144721
+ event_type: 'action_attempt.lock_door.succeeded';
144722
+ } | {
144723
+ /** ID of the event. */
144724
+ event_id: string;
144725
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144726
+ workspace_id: string;
144727
+ /** Date and time at which the event was created. */
144728
+ created_at: string;
144729
+ /** Date and time at which the event occurred. */
144730
+ occurred_at: string;
144731
+ /** ID of the affected action attempt. */
144732
+ action_attempt_id: string;
144733
+ /** Type of the action. */
144734
+ action_type: string;
144735
+ /** Status of the action. */
144736
+ status: string;
144737
+ event_type: 'action_attempt.lock_door.failed';
144738
+ } | {
144739
+ /** ID of the event. */
144740
+ event_id: string;
144741
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144742
+ workspace_id: string;
144743
+ /** Date and time at which the event was created. */
144744
+ created_at: string;
144745
+ /** Date and time at which the event occurred. */
144746
+ occurred_at: string;
144747
+ /** ID of the affected action attempt. */
144748
+ action_attempt_id: string;
144749
+ /** Type of the action. */
144750
+ action_type: string;
144751
+ /** Status of the action. */
144752
+ status: string;
144753
+ event_type: 'action_attempt.unlock_door.succeeded';
144754
+ } | {
144755
+ /** ID of the event. */
144756
+ event_id: string;
144757
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144758
+ workspace_id: string;
144759
+ /** Date and time at which the event was created. */
144760
+ created_at: string;
144761
+ /** Date and time at which the event occurred. */
144762
+ occurred_at: string;
144763
+ /** ID of the affected action attempt. */
144764
+ action_attempt_id: string;
144765
+ /** Type of the action. */
144766
+ action_type: string;
144767
+ /** Status of the action. */
144768
+ status: string;
144769
+ event_type: 'action_attempt.unlock_door.failed';
144770
+ } | {
144771
+ /** ID of the event. */
144772
+ event_id: string;
144773
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144774
+ workspace_id: string;
144775
+ /** Date and time at which the event was created. */
144776
+ created_at: string;
144777
+ /** Date and time at which the event occurred. */
144778
+ occurred_at: string;
144779
+ /** ID of the affected [Connect Webview](https://docs.seam.co/latest/ui-components/connect-webviews). */
144780
+ connect_webview_id: string;
144781
+ event_type: 'connect_webview.login_succeeded';
144782
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event. */
144783
+ connected_account_id: string;
144784
+ /** Custom metadata of the connected account; present when connected_account_id is provided. */
144785
+ connected_account_custom_metadata?: {
144786
+ [x: string]: string | boolean;
144787
+ } | undefined;
144788
+ } | {
144789
+ /** ID of the event. */
144790
+ event_id: string;
144791
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144792
+ workspace_id: string;
144793
+ /** Date and time at which the event was created. */
144794
+ created_at: string;
144795
+ /** Date and time at which the event occurred. */
144796
+ occurred_at: string;
144797
+ /** ID of the affected [Connect Webview](https://docs.seam.co/latest/ui-components/connect-webviews). */
144798
+ connect_webview_id: string;
144799
+ event_type: 'connect_webview.login_failed';
144800
+ } | {
144801
+ /** ID of the event. */
144802
+ event_id: string;
144803
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144804
+ workspace_id: string;
144805
+ /** Date and time at which the event was created. */
144806
+ created_at: string;
144807
+ /** Date and time at which the event occurred. */
144808
+ occurred_at: string;
144809
+ /** ID of the affected device. */
144810
+ device_id: string;
144811
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event. */
144812
+ connected_account_id: string;
144813
+ /** Custom metadata of the device, present when device_id is provided. */
144814
+ device_custom_metadata?: {
144815
+ [x: string]: string | boolean;
144816
+ } | undefined;
144817
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
144818
+ connected_account_custom_metadata?: {
144819
+ [x: string]: string | boolean;
144820
+ } | undefined;
144821
+ event_type: 'device.connected';
144822
+ } | {
144823
+ /** ID of the event. */
144824
+ event_id: string;
144825
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144826
+ workspace_id: string;
144827
+ /** Date and time at which the event was created. */
144828
+ created_at: string;
144829
+ /** Date and time at which the event occurred. */
144830
+ occurred_at: string;
144831
+ /** ID of the affected device. */
144832
+ device_id: string;
144833
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event. */
144834
+ connected_account_id: string;
144835
+ /** Custom metadata of the device, present when device_id is provided. */
144836
+ device_custom_metadata?: {
144837
+ [x: string]: string | boolean;
144838
+ } | undefined;
144839
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
144840
+ connected_account_custom_metadata?: {
144841
+ [x: string]: string | boolean;
144842
+ } | undefined;
144843
+ event_type: 'device.added';
144844
+ } | {
144845
+ /** ID of the event. */
144846
+ event_id: string;
144847
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144848
+ workspace_id: string;
144849
+ /** Date and time at which the event was created. */
144850
+ created_at: string;
144851
+ /** Date and time at which the event occurred. */
144852
+ occurred_at: string;
144853
+ /** ID of the affected device. */
144854
+ device_id: string;
144855
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event. */
144856
+ connected_account_id: string;
144857
+ /** Custom metadata of the device, present when device_id is provided. */
144858
+ device_custom_metadata?: {
144859
+ [x: string]: string | boolean;
144860
+ } | undefined;
144861
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
144862
+ connected_account_custom_metadata?: {
144863
+ [x: string]: string | boolean;
144864
+ } | undefined;
144865
+ event_type: 'device.converted_to_unmanaged';
144866
+ } | {
144867
+ /** ID of the event. */
144868
+ event_id: string;
144869
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144870
+ workspace_id: string;
144871
+ /** Date and time at which the event was created. */
144872
+ created_at: string;
144873
+ /** Date and time at which the event occurred. */
144874
+ occurred_at: string;
144875
+ /** ID of the affected device. */
144876
+ device_id: string;
144877
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event. */
144878
+ connected_account_id: string;
144879
+ /** Custom metadata of the device, present when device_id is provided. */
144880
+ device_custom_metadata?: {
144881
+ [x: string]: string | boolean;
144882
+ } | undefined;
144883
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
144884
+ connected_account_custom_metadata?: {
144885
+ [x: string]: string | boolean;
144886
+ } | undefined;
144887
+ event_type: 'device.unmanaged.converted_to_managed';
144888
+ } | {
144889
+ /** ID of the event. */
144890
+ event_id: string;
144891
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144892
+ workspace_id: string;
144893
+ /** Date and time at which the event was created. */
144894
+ created_at: string;
144895
+ /** Date and time at which the event occurred. */
144896
+ occurred_at: string;
144897
+ /** ID of the affected device. */
144898
+ device_id: string;
144899
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event. */
144900
+ connected_account_id: string;
144901
+ /** Custom metadata of the device, present when device_id is provided. */
144902
+ device_custom_metadata?: {
144903
+ [x: string]: string | boolean;
144904
+ } | undefined;
144905
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
144906
+ connected_account_custom_metadata?: {
144907
+ [x: string]: string | boolean;
144908
+ } | undefined;
144909
+ event_type: 'device.unmanaged.connected';
144910
+ } | {
144911
+ /** ID of the event. */
144912
+ event_id: string;
144913
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144914
+ workspace_id: string;
144915
+ /** Date and time at which the event was created. */
144916
+ created_at: string;
144917
+ /** Date and time at which the event occurred. */
144918
+ occurred_at: string;
144919
+ /** ID of the affected device. */
144920
+ device_id: string;
144921
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event. */
144922
+ connected_account_id: string;
144923
+ /** Custom metadata of the device, present when device_id is provided. */
144924
+ device_custom_metadata?: {
144925
+ [x: string]: string | boolean;
144926
+ } | undefined;
144927
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
144928
+ connected_account_custom_metadata?: {
144929
+ [x: string]: string | boolean;
144930
+ } | undefined;
144931
+ event_type: 'device.disconnected';
144932
+ /** Error code associated with the disconnection event, if any. */
144933
+ error_code: 'account_disconnected' | 'hub_disconnected' | 'device_disconnected';
144934
+ } | {
144935
+ /** ID of the event. */
144936
+ event_id: string;
144937
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144938
+ workspace_id: string;
144939
+ /** Date and time at which the event was created. */
144940
+ created_at: string;
144941
+ /** Date and time at which the event occurred. */
144942
+ occurred_at: string;
144943
+ /** ID of the affected device. */
144944
+ device_id: string;
144945
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event. */
144946
+ connected_account_id: string;
144947
+ /** Custom metadata of the device, present when device_id is provided. */
144948
+ device_custom_metadata?: {
144949
+ [x: string]: string | boolean;
144950
+ } | undefined;
144951
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
144952
+ connected_account_custom_metadata?: {
144953
+ [x: string]: string | boolean;
144954
+ } | undefined;
144955
+ event_type: 'device.unmanaged.disconnected';
144956
+ /** Error code associated with the disconnection event, if any. */
144957
+ error_code: 'account_disconnected' | 'hub_disconnected' | 'device_disconnected';
144958
+ } | {
144959
+ /** ID of the event. */
144960
+ event_id: string;
144961
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144962
+ workspace_id: string;
144963
+ /** Date and time at which the event was created. */
144964
+ created_at: string;
144965
+ /** Date and time at which the event occurred. */
144966
+ occurred_at: string;
144967
+ /** ID of the affected device. */
144968
+ device_id: string;
144969
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event. */
144970
+ connected_account_id: string;
144971
+ /** Custom metadata of the device, present when device_id is provided. */
144972
+ device_custom_metadata?: {
144973
+ [x: string]: string | boolean;
144974
+ } | undefined;
144975
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
144976
+ connected_account_custom_metadata?: {
144977
+ [x: string]: string | boolean;
144978
+ } | undefined;
144979
+ event_type: 'device.tampered';
144980
+ } | {
144981
+ /** ID of the event. */
144982
+ event_id: string;
144983
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
144984
+ workspace_id: string;
144985
+ /** Date and time at which the event was created. */
144986
+ created_at: string;
144987
+ /** Date and time at which the event occurred. */
144988
+ occurred_at: string;
144989
+ /** ID of the affected device. */
144990
+ device_id: string;
144991
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event. */
144992
+ connected_account_id: string;
144993
+ /** Custom metadata of the device, present when device_id is provided. */
144994
+ device_custom_metadata?: {
144995
+ [x: string]: string | boolean;
144996
+ } | undefined;
144997
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
144998
+ connected_account_custom_metadata?: {
144999
+ [x: string]: string | boolean;
145000
+ } | undefined;
145001
+ event_type: 'device.low_battery';
145002
+ /** Number in the range 0 to 1.0 indicating the amount of battery in the affected device, as reported by the device. */
145003
+ battery_level: number;
145004
+ } | {
145005
+ /** ID of the event. */
145006
+ event_id: string;
145007
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
145008
+ workspace_id: string;
145009
+ /** Date and time at which the event was created. */
145010
+ created_at: string;
145011
+ /** Date and time at which the event occurred. */
145012
+ occurred_at: string;
145013
+ /** ID of the affected device. */
145014
+ device_id: string;
145015
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event. */
145016
+ connected_account_id: string;
145017
+ /** Custom metadata of the device, present when device_id is provided. */
145018
+ device_custom_metadata?: {
145019
+ [x: string]: string | boolean;
145020
+ } | undefined;
145021
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
145022
+ connected_account_custom_metadata?: {
145023
+ [x: string]: string | boolean;
145024
+ } | undefined;
145025
+ event_type: 'device.battery_status_changed';
145026
+ /** Battery status of the affected device, calculated from the numeric `battery_level` value. */
145027
+ battery_status: 'critical' | 'low' | 'good' | 'full';
145028
+ /** Number in the range 0 to 1.0 indicating the amount of battery in the affected device, as reported by the device. */
145029
+ battery_level: number;
145030
+ } | {
145031
+ /** ID of the event. */
145032
+ event_id: string;
145033
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
145034
+ workspace_id: string;
145035
+ /** Date and time at which the event was created. */
145036
+ created_at: string;
145037
+ /** Date and time at which the event occurred. */
145038
+ occurred_at: string;
145039
+ /** ID of the affected device. */
145040
+ device_id: string;
145041
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event. */
145042
+ connected_account_id: string;
145043
+ /** Custom metadata of the device, present when device_id is provided. */
145044
+ device_custom_metadata?: {
145045
+ [x: string]: string | boolean;
145046
+ } | undefined;
145047
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
145048
+ connected_account_custom_metadata?: {
145049
+ [x: string]: string | boolean;
145050
+ } | undefined;
145051
+ event_type: 'device.removed';
145052
+ } | {
145053
+ /** ID of the event. */
145054
+ event_id: string;
145055
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
145056
+ workspace_id: string;
145057
+ /** Date and time at which the event was created. */
145058
+ created_at: string;
145059
+ /** Date and time at which the event occurred. */
145060
+ occurred_at: string;
145061
+ /** ID of the affected device. */
145062
+ device_id: string;
145063
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event. */
145064
+ connected_account_id: string;
145065
+ /** Custom metadata of the device, present when device_id is provided. */
145066
+ device_custom_metadata?: {
145067
+ [x: string]: string | boolean;
145068
+ } | undefined;
145069
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
145070
+ connected_account_custom_metadata?: {
145071
+ [x: string]: string | boolean;
145072
+ } | undefined;
145073
+ event_type: 'device.deleted';
145074
+ } | {
145075
+ /** ID of the event. */
145076
+ event_id: string;
145077
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
145078
+ workspace_id: string;
145079
+ /** Date and time at which the event was created. */
145080
+ created_at: string;
145081
+ /** Date and time at which the event occurred. */
145082
+ occurred_at: string;
145083
+ /** ID of the affected device. */
145084
+ device_id: string;
145085
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event. */
145086
+ connected_account_id: string;
145087
+ /** Custom metadata of the device, present when device_id is provided. */
145088
+ device_custom_metadata?: {
145089
+ [x: string]: string | boolean;
145090
+ } | undefined;
145091
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
145092
+ connected_account_custom_metadata?: {
145093
+ [x: string]: string | boolean;
145094
+ } | undefined;
145095
+ event_type: 'device.third_party_integration_detected';
145096
+ } | {
145097
+ /** ID of the event. */
145098
+ event_id: string;
145099
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
145100
+ workspace_id: string;
145101
+ /** Date and time at which the event was created. */
145102
+ created_at: string;
145103
+ /** Date and time at which the event occurred. */
145104
+ occurred_at: string;
145105
+ /** ID of the affected device. */
145106
+ device_id: string;
145107
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event. */
145108
+ connected_account_id: string;
145109
+ /** Custom metadata of the device, present when device_id is provided. */
145110
+ device_custom_metadata?: {
145111
+ [x: string]: string | boolean;
145112
+ } | undefined;
145113
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
145114
+ connected_account_custom_metadata?: {
145115
+ [x: string]: string | boolean;
145116
+ } | undefined;
145117
+ event_type: 'device.third_party_integration_no_longer_detected';
145118
+ } | {
145119
+ /** ID of the event. */
145120
+ event_id: string;
145121
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
145122
+ workspace_id: string;
145123
+ /** Date and time at which the event was created. */
145124
+ created_at: string;
145125
+ /** Date and time at which the event occurred. */
145126
+ occurred_at: string;
145127
+ /** ID of the affected device. */
145128
+ device_id: string;
145129
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event. */
145130
+ connected_account_id: string;
145131
+ /** Custom metadata of the device, present when device_id is provided. */
145132
+ device_custom_metadata?: {
145133
+ [x: string]: string | boolean;
145134
+ } | undefined;
145135
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
145136
+ connected_account_custom_metadata?: {
145137
+ [x: string]: string | boolean;
145138
+ } | undefined;
145139
+ event_type: 'device.salto.privacy_mode_activated';
145140
+ } | {
145141
+ /** ID of the event. */
145142
+ event_id: string;
145143
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
145144
+ workspace_id: string;
145145
+ /** Date and time at which the event was created. */
145146
+ created_at: string;
145147
+ /** Date and time at which the event occurred. */
145148
+ occurred_at: string;
145149
+ /** ID of the affected device. */
145150
+ device_id: string;
145151
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event. */
145152
+ connected_account_id: string;
145153
+ /** Custom metadata of the device, present when device_id is provided. */
145154
+ device_custom_metadata?: {
145155
+ [x: string]: string | boolean;
145156
+ } | undefined;
145157
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
145158
+ connected_account_custom_metadata?: {
145159
+ [x: string]: string | boolean;
145160
+ } | undefined;
145161
+ event_type: 'device.salto.privacy_mode_deactivated';
145162
+ } | {
145163
+ /** ID of the event. */
145164
+ event_id: string;
145165
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
145166
+ workspace_id: string;
145167
+ /** Date and time at which the event was created. */
145168
+ created_at: string;
145169
+ /** Date and time at which the event occurred. */
145170
+ occurred_at: string;
145171
+ /** ID of the affected device. */
145172
+ device_id: string;
145173
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event. */
145174
+ connected_account_id: string;
145175
+ /** Custom metadata of the device, present when device_id is provided. */
145176
+ device_custom_metadata?: {
145177
+ [x: string]: string | boolean;
145178
+ } | undefined;
145179
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
145180
+ connected_account_custom_metadata?: {
145181
+ [x: string]: string | boolean;
145182
+ } | undefined;
145183
+ event_type: 'device.connection_became_flaky';
145184
+ } | {
145185
+ /** ID of the event. */
145186
+ event_id: string;
145187
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
145188
+ workspace_id: string;
145189
+ /** Date and time at which the event was created. */
145190
+ created_at: string;
145191
+ /** Date and time at which the event occurred. */
145192
+ occurred_at: string;
145193
+ /** ID of the affected device. */
145194
+ device_id: string;
145195
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event. */
145196
+ connected_account_id: string;
145197
+ /** Custom metadata of the device, present when device_id is provided. */
145198
+ device_custom_metadata?: {
145199
+ [x: string]: string | boolean;
145200
+ } | undefined;
145201
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
145202
+ connected_account_custom_metadata?: {
145203
+ [x: string]: string | boolean;
145204
+ } | undefined;
145205
+ event_type: 'device.connection_stabilized';
145206
+ } | {
145207
+ /** ID of the event. */
145208
+ event_id: string;
145209
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
145210
+ workspace_id: string;
145211
+ /** Date and time at which the event was created. */
145212
+ created_at: string;
145213
+ /** Date and time at which the event occurred. */
145214
+ occurred_at: string;
145215
+ /** ID of the affected device. */
145216
+ device_id: string;
145217
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event. */
145218
+ connected_account_id: string;
145219
+ /** Custom metadata of the device, present when device_id is provided. */
145220
+ device_custom_metadata?: {
145221
+ [x: string]: string | boolean;
145222
+ } | undefined;
145223
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
145224
+ connected_account_custom_metadata?: {
145225
+ [x: string]: string | boolean;
145226
+ } | undefined;
145227
+ event_type: 'device.error.subscription_required';
145228
+ } | {
145229
+ /** ID of the event. */
145230
+ event_id: string;
145231
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
145232
+ workspace_id: string;
145233
+ /** Date and time at which the event was created. */
145234
+ created_at: string;
145235
+ /** Date and time at which the event occurred. */
145236
+ occurred_at: string;
145237
+ /** ID of the affected device. */
145238
+ device_id: string;
145239
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event. */
145240
+ connected_account_id: string;
145241
+ /** Custom metadata of the device, present when device_id is provided. */
145242
+ device_custom_metadata?: {
145243
+ [x: string]: string | boolean;
145244
+ } | undefined;
145245
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
145246
+ connected_account_custom_metadata?: {
145247
+ [x: string]: string | boolean;
145248
+ } | undefined;
145249
+ event_type: 'device.error.subscription_required.resolved';
145250
+ } | {
145251
+ /** ID of the event. */
145252
+ event_id: string;
145253
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
145254
+ workspace_id: string;
145255
+ /** Date and time at which the event was created. */
145256
+ created_at: string;
145257
+ /** Date and time at which the event occurred. */
145258
+ occurred_at: string;
145259
+ /** ID of the affected device. */
145260
+ device_id: string;
145261
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event. */
145262
+ connected_account_id: string;
145263
+ /** Custom metadata of the device, present when device_id is provided. */
145264
+ device_custom_metadata?: {
145265
+ [x: string]: string | boolean;
145266
+ } | undefined;
145267
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
145268
+ connected_account_custom_metadata?: {
145269
+ [x: string]: string | boolean;
145270
+ } | undefined;
145271
+ event_type: 'device.accessory_keypad_connected';
145272
+ } | {
145273
+ /** ID of the event. */
145274
+ event_id: string;
145275
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
145276
+ workspace_id: string;
145277
+ /** Date and time at which the event was created. */
145278
+ created_at: string;
145279
+ /** Date and time at which the event occurred. */
145280
+ occurred_at: string;
145281
+ /** ID of the affected device. */
145282
+ device_id: string;
145283
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event. */
145284
+ connected_account_id: string;
145285
+ /** Custom metadata of the device, present when device_id is provided. */
145286
+ device_custom_metadata?: {
145287
+ [x: string]: string | boolean;
145288
+ } | undefined;
145289
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
145290
+ connected_account_custom_metadata?: {
145291
+ [x: string]: string | boolean;
145292
+ } | undefined;
145293
+ event_type: 'device.accessory_keypad_disconnected';
145294
+ } | {
145295
+ /** ID of the event. */
145296
+ event_id: string;
145297
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
145298
+ workspace_id: string;
145299
+ /** Date and time at which the event was created. */
145300
+ created_at: string;
145301
+ /** Date and time at which the event occurred. */
145302
+ occurred_at: string;
145303
+ /** ID of the affected device. */
145304
+ device_id: string;
145305
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event. */
145306
+ connected_account_id: string;
145307
+ /** Custom metadata of the device, present when device_id is provided. */
145308
+ device_custom_metadata?: {
145309
+ [x: string]: string | boolean;
145310
+ } | undefined;
145311
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
145312
+ connected_account_custom_metadata?: {
145313
+ [x: string]: string | boolean;
145314
+ } | undefined;
145315
+ event_type: 'noise_sensor.noise_threshold_triggered';
145316
+ /** Detected noise level in decibels. */
145317
+ noise_level_decibels?: number | undefined;
145318
+ /** Detected noise level in Noiseaware Noise Risk Score (NRS). */
145319
+ noise_level_nrs?: number | undefined;
145320
+ /** ID of the noise threshold that was triggered. */
145321
+ noise_threshold_id?: string | undefined;
145322
+ /** Name of the noise threshold that was triggered. */
145323
+ noise_threshold_name?: string | undefined;
145324
+ /** Metadata from Noiseaware. */
145325
+ noiseaware_metadata?: {
145326
+ [x: string]: unknown;
145327
+ } | undefined;
145328
+ /** Metadata from Minut. */
145329
+ minut_metadata?: {
145330
+ [x: string]: unknown;
145331
+ } | undefined;
145332
+ } | {
145333
+ /** ID of the event. */
145334
+ event_id: string;
145335
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
145336
+ workspace_id: string;
145337
+ /** Date and time at which the event was created. */
145338
+ created_at: string;
145339
+ /** Date and time at which the event occurred. */
145340
+ occurred_at: string;
145341
+ /** ID of the affected device. */
145342
+ device_id: string;
145343
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event. */
145344
+ connected_account_id: string;
145345
+ /** Custom metadata of the device, present when device_id is provided. */
145346
+ device_custom_metadata?: {
145347
+ [x: string]: string | boolean;
145348
+ } | undefined;
145349
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
145350
+ connected_account_custom_metadata?: {
145351
+ [x: string]: string | boolean;
145352
+ } | undefined;
145353
+ event_type: 'lock.locked';
145354
+ /** ID of the access code that was used to lock the device. */
145355
+ access_code_id?: string | undefined;
145356
+ /** ID of the action attempt associated with the lock action. */
145357
+ action_attempt_id?: string | undefined;
145358
+ /** Method by which the affected lock device was locked. When the method is `keycode`, the `access_code_id` indicates the access code that was used, if reported by the device. */
145359
+ method: 'keycode' | 'manual' | 'automatic' | 'unknown' | 'seamapi';
145360
+ } | {
145361
+ /** ID of the event. */
145362
+ event_id: string;
145363
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
145364
+ workspace_id: string;
145365
+ /** Date and time at which the event was created. */
145366
+ created_at: string;
145367
+ /** Date and time at which the event occurred. */
145368
+ occurred_at: string;
145369
+ /** ID of the affected device. */
145370
+ device_id: string;
145371
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event. */
145372
+ connected_account_id: string;
145373
+ /** Custom metadata of the device, present when device_id is provided. */
145374
+ device_custom_metadata?: {
145375
+ [x: string]: string | boolean;
145376
+ } | undefined;
145377
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
145378
+ connected_account_custom_metadata?: {
145379
+ [x: string]: string | boolean;
145380
+ } | undefined;
145381
+ event_type: 'lock.unlocked';
145382
+ /** ID of the access code that was used to unlock the affected device. */
145383
+ access_code_id?: string | undefined;
145384
+ /** ID of the action attempt associated with the unlock action. */
145385
+ action_attempt_id?: string | undefined;
145386
+ /** Method by which the affected lock device was unlocked. When the method is `keycode`, the `access_code_id` indicates the [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes) that was used, if reported by the device. */
145387
+ method: 'keycode' | 'manual' | 'automatic' | 'unknown' | 'seamapi';
145388
+ } | {
145389
+ /** ID of the event. */
145390
+ event_id: string;
145391
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
145392
+ workspace_id: string;
145393
+ /** Date and time at which the event was created. */
145394
+ created_at: string;
145395
+ /** Date and time at which the event occurred. */
145396
+ occurred_at: string;
145397
+ /** ID of the affected device. */
145398
+ device_id: string;
145399
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event. */
145400
+ connected_account_id: string;
145401
+ /** Custom metadata of the device, present when device_id is provided. */
145402
+ device_custom_metadata?: {
145403
+ [x: string]: string | boolean;
145404
+ } | undefined;
145405
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
145406
+ connected_account_custom_metadata?: {
145407
+ [x: string]: string | boolean;
145408
+ } | undefined;
145409
+ event_type: 'lock.access_denied';
145410
+ /** ID of the access code that was used in the unlock attempts. */
145411
+ access_code_id?: string | undefined;
145412
+ } | {
145413
+ /** ID of the event. */
145414
+ event_id: string;
145415
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
145416
+ workspace_id: string;
145417
+ /** Date and time at which the event was created. */
145418
+ created_at: string;
145419
+ /** Date and time at which the event occurred. */
145420
+ occurred_at: string;
145421
+ /** ID of the affected device. */
145422
+ device_id: string;
145423
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event. */
145424
+ connected_account_id: string;
145425
+ /** Custom metadata of the device, present when device_id is provided. */
145426
+ device_custom_metadata?: {
145427
+ [x: string]: string | boolean;
145428
+ } | undefined;
145429
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
145430
+ connected_account_custom_metadata?: {
145431
+ [x: string]: string | boolean;
145432
+ } | undefined;
145433
+ event_type: 'thermostat.climate_preset_activated';
145434
+ /** ID of the thermostat schedule that prompted the affected climate preset to be activated. */
145435
+ thermostat_schedule_id: string | null;
145436
+ /** Key of the climate preset that was activated. */
145437
+ climate_preset_key: string;
145438
+ /** Indicates whether the climate preset that was activated is the fallback climate preset for the thermostat. */
145439
+ is_fallback_climate_preset: boolean;
145440
+ } | {
145441
+ /** ID of the event. */
145442
+ event_id: string;
145443
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
145444
+ workspace_id: string;
145445
+ /** Date and time at which the event was created. */
145446
+ created_at: string;
145447
+ /** Date and time at which the event occurred. */
145448
+ occurred_at: string;
145449
+ /** ID of the affected device. */
145450
+ device_id: string;
145451
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event. */
145452
+ connected_account_id: string;
145453
+ /** Custom metadata of the device, present when device_id is provided. */
145454
+ device_custom_metadata?: {
145455
+ [x: string]: string | boolean;
145456
+ } | undefined;
145457
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
145458
+ connected_account_custom_metadata?: {
145459
+ [x: string]: string | boolean;
145460
+ } | undefined;
145461
+ event_type: 'thermostat.manually_adjusted';
145462
+ /** Method used to adjust the affected thermostat manually. `seam` indicates that the Seam API, Seam CLI, or Seam Console was used to adjust the thermostat. */
145463
+ method: 'seam' | 'external';
145464
+ /** Desired [fan mode setting](https://docs.seam.co/latest/capability-guides/thermostats/configure-current-climate-settings#fan-mode-settings), such as `on`, `auto`, or `circulate`. */
145465
+ fan_mode_setting?: (('auto' | 'on' | 'circulate') | undefined) | undefined;
145466
+ /** 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`. */
145467
+ hvac_mode_setting?: (('off' | 'heat' | 'cool' | 'heat_cool' | 'eco') | undefined) | undefined;
145468
+ /** 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). */
145469
+ cooling_set_point_celsius?: (number | undefined) | undefined;
145470
+ /** Temperature to which the thermostat should heat (in °C). See also [Set Points](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points). */
145471
+ heating_set_point_celsius?: (number | undefined) | undefined;
145472
+ /** Temperature to which the thermostat should cool (in °F). See also [Set Points](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points). */
145473
+ cooling_set_point_fahrenheit?: (number | undefined) | undefined;
145474
+ /** Temperature to which the thermostat should heat (in °F). See also [Set Points](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points). */
145475
+ heating_set_point_fahrenheit?: (number | undefined) | undefined;
145476
+ } | {
145477
+ /** ID of the event. */
145478
+ event_id: string;
145479
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
145480
+ workspace_id: string;
145481
+ /** Date and time at which the event was created. */
145482
+ created_at: string;
145483
+ /** Date and time at which the event occurred. */
145484
+ occurred_at: string;
145485
+ /** ID of the affected device. */
145486
+ device_id: string;
145487
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event. */
145488
+ connected_account_id: string;
145489
+ /** Custom metadata of the device, present when device_id is provided. */
145490
+ device_custom_metadata?: {
145491
+ [x: string]: string | boolean;
145492
+ } | undefined;
145493
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
145494
+ connected_account_custom_metadata?: {
145495
+ [x: string]: string | boolean;
145496
+ } | undefined;
145497
+ event_type: 'thermostat.temperature_threshold_exceeded';
145498
+ /** Temperature, in °C, reported by the affected thermostat. */
145499
+ temperature_celsius: number;
145500
+ /** Temperature, in °F, reported by the affected thermostat. */
145501
+ temperature_fahrenheit: number;
145502
+ /** Upper temperature limit, in °C, defined by the set threshold. */
145503
+ upper_limit_celsius: number | null;
145504
+ /** Upper temperature limit, in °F, defined by the set threshold. */
145505
+ upper_limit_fahrenheit: number | null;
145506
+ /** Lower temperature limit, in °C, defined by the set threshold. */
145507
+ lower_limit_celsius: number | null;
145508
+ /** Lower temperature limit, in °F, defined by the set threshold. */
145509
+ lower_limit_fahrenheit: number | null;
145510
+ } | {
145511
+ /** ID of the event. */
145512
+ event_id: string;
145513
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
145514
+ workspace_id: string;
145515
+ /** Date and time at which the event was created. */
145516
+ created_at: string;
145517
+ /** Date and time at which the event occurred. */
145518
+ occurred_at: string;
145519
+ /** ID of the affected device. */
145520
+ device_id: string;
145521
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event. */
145522
+ connected_account_id: string;
145523
+ /** Custom metadata of the device, present when device_id is provided. */
145524
+ device_custom_metadata?: {
145525
+ [x: string]: string | boolean;
145526
+ } | undefined;
145527
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
145528
+ connected_account_custom_metadata?: {
145529
+ [x: string]: string | boolean;
145530
+ } | undefined;
145531
+ event_type: 'thermostat.temperature_threshold_no_longer_exceeded';
145532
+ /** Temperature, in °C, reported by the affected thermostat. */
145533
+ temperature_celsius: number;
145534
+ /** Temperature, in °F, reported by the affected thermostat. */
145535
+ temperature_fahrenheit: number;
145536
+ /** Upper temperature limit, in °C, defined by the set threshold. */
145537
+ upper_limit_celsius: number | null;
145538
+ /** Upper temperature limit, in °F, defined by the set threshold. */
145539
+ upper_limit_fahrenheit: number | null;
145540
+ /** Lower temperature limit, in °C, defined by the set threshold. */
145541
+ lower_limit_celsius: number | null;
145542
+ /** Lower temperature limit, in °F, defined by the set threshold. */
145543
+ lower_limit_fahrenheit: number | null;
145544
+ } | {
145545
+ /** ID of the event. */
145546
+ event_id: string;
145547
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
145548
+ workspace_id: string;
145549
+ /** Date and time at which the event was created. */
145550
+ created_at: string;
145551
+ /** Date and time at which the event occurred. */
145552
+ occurred_at: string;
145553
+ /** ID of the affected device. */
145554
+ device_id: string;
145555
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event. */
145556
+ connected_account_id: string;
145557
+ /** Custom metadata of the device, present when device_id is provided. */
145558
+ device_custom_metadata?: {
145559
+ [x: string]: string | boolean;
145560
+ } | undefined;
145561
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
145562
+ connected_account_custom_metadata?: {
145563
+ [x: string]: string | boolean;
145564
+ } | undefined;
145565
+ event_type: 'thermostat.temperature_reached_set_point';
145566
+ /** Temperature, in °C, reported by the affected thermostat. */
145567
+ temperature_celsius: number;
145568
+ /** Temperature, in °F, reported by the affected thermostat. */
145569
+ temperature_fahrenheit: number;
145570
+ /** Desired temperature, in °C, defined by the affected thermostat's cooling or heating set point. */
145571
+ desired_temperature_celsius?: number | undefined;
145572
+ /** Desired temperature, in °F, defined by the affected thermostat's cooling or heating set point. */
145573
+ desired_temperature_fahrenheit?: number | undefined;
145574
+ } | {
145575
+ /** ID of the event. */
145576
+ event_id: string;
145577
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
145578
+ workspace_id: string;
145579
+ /** Date and time at which the event was created. */
145580
+ created_at: string;
145581
+ /** Date and time at which the event occurred. */
145582
+ occurred_at: string;
145583
+ /** ID of the affected device. */
145584
+ device_id: string;
145585
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event. */
145586
+ connected_account_id: string;
145587
+ /** Custom metadata of the device, present when device_id is provided. */
145588
+ device_custom_metadata?: {
145589
+ [x: string]: string | boolean;
145590
+ } | undefined;
145591
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
145592
+ connected_account_custom_metadata?: {
145593
+ [x: string]: string | boolean;
145594
+ } | undefined;
145595
+ event_type: 'thermostat.temperature_changed';
145596
+ /** Temperature, in °C, reported by the affected thermostat. */
145597
+ temperature_celsius: number;
145598
+ /** Temperature, in °F, reported by the affected thermostat. */
145599
+ temperature_fahrenheit: number;
145600
+ } | {
145601
+ /** ID of the event. */
145602
+ event_id: string;
145603
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
145604
+ workspace_id: string;
145605
+ /** Date and time at which the event was created. */
145606
+ created_at: string;
145607
+ /** Date and time at which the event occurred. */
145608
+ occurred_at: string;
145609
+ /** ID of the affected device. */
145610
+ device_id: string;
145611
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event. */
145612
+ connected_account_id: string;
145613
+ /** Custom metadata of the device, present when device_id is provided. */
145614
+ device_custom_metadata?: {
145615
+ [x: string]: string | boolean;
145616
+ } | undefined;
145617
+ /** Custom metadata of the connected account, present when connected_account_id is provided. */
145618
+ connected_account_custom_metadata?: {
145619
+ [x: string]: string | boolean;
145620
+ } | undefined;
145621
+ event_type: 'device.name_changed';
145622
+ /** The new name of the affected device. */
145623
+ device_name: string;
145624
+ } | {
145625
+ /** ID of the event. */
145626
+ event_id: string;
145627
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
145628
+ workspace_id: string;
145629
+ /** Date and time at which the event was created. */
145630
+ created_at: string;
145631
+ /** Date and time at which the event occurred. */
145632
+ occurred_at: string;
145633
+ /** ID of the affected enrollment automation. */
145634
+ enrollment_automation_id: string;
145635
+ event_type: 'enrollment_automation.deleted';
145636
+ } | {
145637
+ /** ID of the event. */
145638
+ event_id: string;
145639
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event. */
145640
+ workspace_id: string;
145641
+ /** Date and time at which the event was created. */
145642
+ created_at: string;
145643
+ /** Date and time at which the event occurred. */
145644
+ occurred_at: string;
145645
+ /** ID of the affected phone device. */
145646
+ device_id: string;
145647
+ /** Custom metadata of the device; present when device_id is provided. */
145648
+ device_custom_metadata?: {
145649
+ [x: string]: string | boolean;
145650
+ } | undefined;
145651
+ event_type: 'phone.deactivated';
145652
+ })[];
145653
+ };
145654
+ };
145655
+ '/seam/customer/v1/portals/get': {
145656
+ route: '/seam/customer/v1/portals/get';
145657
+ method: 'GET' | 'POST';
145658
+ queryParams: {};
145659
+ jsonBody: {};
145660
+ commonParams: {
145661
+ /** Customer portal ID. */
145662
+ customer_portal_id: string;
145663
+ };
145664
+ formData: {};
145665
+ jsonResponse: {
145666
+ customer_portal: {
145667
+ features?: {
145668
+ connect?: {
145669
+ exclude?: boolean | undefined;
145670
+ } | undefined;
145671
+ manage_devices?: {
145672
+ exclude?: boolean | undefined;
145673
+ } | undefined;
145674
+ organize?: {
145675
+ exclude?: boolean | undefined;
145676
+ } | undefined;
145677
+ configure?: {
145678
+ exclude?: boolean | undefined;
145679
+ allow_access_automation_rule_customization?: boolean | undefined;
145680
+ allow_instant_key_customization?: boolean | undefined;
145681
+ } | undefined;
145682
+ } | undefined;
145683
+ is_embedded?: boolean | undefined;
145684
+ /** Business vertical of the customer portal. */
145685
+ business_vertical?: ('short_term_rental' | 'hospitality' | 'multi_family' | 'gym_management' | 'property_tours') | undefined;
145686
+ };
145687
+ };
145688
+ };
145689
+ '/seam/customer/v1/settings/get': {
145690
+ route: '/seam/customer/v1/settings/get';
145691
+ method: 'GET' | 'POST';
145692
+ queryParams: {};
145693
+ jsonBody: {};
145694
+ commonParams: {};
145695
+ formData: {};
145696
+ jsonResponse: {
145697
+ /** Business vertical of the customer portal. */
145698
+ business_vertical?: ('short_term_rental' | 'hospitality' | 'multi_family' | 'gym_management' | 'property_tours') | undefined;
143500
145699
  };
143501
145700
  };
143502
145701
  '/seam/customer/v1/settings/update': {