@seamapi/types 1.181.0 → 1.183.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.
@@ -5650,6 +5650,8 @@ export interface Routes {
5650
5650
  supports_offline_access_codes?: boolean | undefined;
5651
5651
  /** Indicates current noise level in decibels, if the device supports noise detection. */
5652
5652
  noise_level_decibels?: number | undefined;
5653
+ /** Array of noise threshold IDs that are currently triggering. */
5654
+ currently_triggering_noise_threshold_ids?: string[] | undefined;
5653
5655
  } & {
5654
5656
  assa_abloy_credential_service_metadata?: ({
5655
5657
  has_active_endpoint: boolean;
@@ -6194,6 +6196,8 @@ export interface Routes {
6194
6196
  supports_offline_access_codes?: boolean | undefined;
6195
6197
  /** Indicates current noise level in decibels, if the device supports noise detection. */
6196
6198
  noise_level_decibels?: number | undefined;
6199
+ /** Array of noise threshold IDs that are currently triggering. */
6200
+ currently_triggering_noise_threshold_ids?: string[] | undefined;
6197
6201
  } & {
6198
6202
  assa_abloy_credential_service_metadata?: ({
6199
6203
  has_active_endpoint: boolean;
@@ -6936,8 +6940,8 @@ export interface Routes {
6936
6940
  device_ids?: string[] | undefined;
6937
6941
  access_code_id?: string | undefined;
6938
6942
  access_code_ids?: string[] | undefined;
6939
- event_type?: ('device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'device.connected' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.removed' | 'device.deleted' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | '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' | 'access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.deleted' | 'access_code.removed_from_device' | 'access_code.failed_to_set_on_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_remove_from_device' | 'access_code.delay_in_removing_from_device' | 'access_code.deleted_external_to_seam' | 'access_code.modified_external_to_seam' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'lock.locked' | 'lock.unlocked' | 'phone.deactivated' | 'connected_account.connected' | 'connected_account.successful_login' | 'connected_account.created' | 'connected_account.deleted' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.completed_first_sync_after_reconnection' | 'noise_sensor.noise_threshold_triggered' | 'access_code.backup_access_code_pulled' | 'acs_user.deleted' | 'acs_credential.deleted' | 'enrollment_automation.deleted' | 'client_session.deleted' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed') | undefined;
6940
- event_types?: Array<'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'device.connected' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.removed' | 'device.deleted' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | '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' | 'access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.deleted' | 'access_code.removed_from_device' | 'access_code.failed_to_set_on_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_remove_from_device' | 'access_code.delay_in_removing_from_device' | 'access_code.deleted_external_to_seam' | 'access_code.modified_external_to_seam' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'lock.locked' | 'lock.unlocked' | 'phone.deactivated' | 'connected_account.connected' | 'connected_account.successful_login' | 'connected_account.created' | 'connected_account.deleted' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.completed_first_sync_after_reconnection' | 'noise_sensor.noise_threshold_triggered' | 'access_code.backup_access_code_pulled' | 'acs_user.deleted' | 'acs_credential.deleted' | 'enrollment_automation.deleted' | 'client_session.deleted' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed'> | undefined;
6943
+ event_type?: ('device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'device.connected' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.removed' | 'device.deleted' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | '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' | 'access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.deleted' | 'access_code.removed_from_device' | 'access_code.failed_to_set_on_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_remove_from_device' | 'access_code.delay_in_removing_from_device' | 'access_code.deleted_external_to_seam' | 'access_code.modified_external_to_seam' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'lock.locked' | 'lock.unlocked' | 'phone.deactivated' | 'connected_account.connected' | 'connected_account.successful_login' | 'connected_account.created' | 'connected_account.deleted' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.completed_first_sync_after_reconnection' | 'noise_sensor.noise_threshold_triggered' | 'access_code.backup_access_code_pulled' | 'acs_system.connected' | 'acs_user.deleted' | 'acs_credential.deleted' | 'enrollment_automation.deleted' | 'client_session.deleted' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed') | undefined;
6944
+ event_types?: Array<'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'device.connected' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.removed' | 'device.deleted' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | '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' | 'access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.deleted' | 'access_code.removed_from_device' | 'access_code.failed_to_set_on_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_remove_from_device' | 'access_code.delay_in_removing_from_device' | 'access_code.deleted_external_to_seam' | 'access_code.modified_external_to_seam' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'lock.locked' | 'lock.unlocked' | 'phone.deactivated' | 'connected_account.connected' | 'connected_account.successful_login' | 'connected_account.created' | 'connected_account.deleted' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.completed_first_sync_after_reconnection' | 'noise_sensor.noise_threshold_triggered' | 'access_code.backup_access_code_pulled' | 'acs_system.connected' | 'acs_user.deleted' | 'acs_credential.deleted' | 'enrollment_automation.deleted' | 'client_session.deleted' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed'> | undefined;
6941
6945
  connected_account_id?: string | undefined;
6942
6946
  limit?: number;
6943
6947
  };
@@ -7060,6 +7064,8 @@ export interface Routes {
7060
7064
  supports_offline_access_codes?: boolean | undefined;
7061
7065
  /** Indicates current noise level in decibels, if the device supports noise detection. */
7062
7066
  noise_level_decibels?: number | undefined;
7067
+ /** Array of noise threshold IDs that are currently triggering. */
7068
+ currently_triggering_noise_threshold_ids?: string[] | undefined;
7063
7069
  } & {
7064
7070
  assa_abloy_credential_service_metadata?: ({
7065
7071
  has_active_endpoint: boolean;
@@ -7579,6 +7585,8 @@ export interface Routes {
7579
7585
  supports_offline_access_codes?: boolean | undefined;
7580
7586
  /** Indicates current noise level in decibels, if the device supports noise detection. */
7581
7587
  noise_level_decibels?: number | undefined;
7588
+ /** Array of noise threshold IDs that are currently triggering. */
7589
+ currently_triggering_noise_threshold_ids?: string[] | undefined;
7582
7590
  } & {
7583
7591
  assa_abloy_credential_service_metadata?: ({
7584
7592
  has_active_endpoint: boolean;
@@ -8123,6 +8131,8 @@ export interface Routes {
8123
8131
  supports_offline_access_codes?: boolean | undefined;
8124
8132
  /** Indicates current noise level in decibels, if the device supports noise detection. */
8125
8133
  noise_level_decibels?: number | undefined;
8134
+ /** Array of noise threshold IDs that are currently triggering. */
8135
+ currently_triggering_noise_threshold_ids?: string[] | undefined;
8126
8136
  } & {
8127
8137
  assa_abloy_credential_service_metadata?: ({
8128
8138
  has_active_endpoint: boolean;
@@ -8642,6 +8652,8 @@ export interface Routes {
8642
8652
  supports_offline_access_codes?: boolean | undefined;
8643
8653
  /** Indicates current noise level in decibels, if the device supports noise detection. */
8644
8654
  noise_level_decibels?: number | undefined;
8655
+ /** Array of noise threshold IDs that are currently triggering. */
8656
+ currently_triggering_noise_threshold_ids?: string[] | undefined;
8645
8657
  } & {
8646
8658
  assa_abloy_credential_service_metadata?: ({
8647
8659
  has_active_endpoint: boolean;
@@ -13188,6 +13200,8 @@ export interface Routes {
13188
13200
  supports_offline_access_codes?: boolean | undefined;
13189
13201
  /** Indicates current noise level in decibels, if the device supports noise detection. */
13190
13202
  noise_level_decibels?: number | undefined;
13203
+ /** Array of noise threshold IDs that are currently triggering. */
13204
+ currently_triggering_noise_threshold_ids?: string[] | undefined;
13191
13205
  } & {
13192
13206
  assa_abloy_credential_service_metadata?: ({
13193
13207
  has_active_endpoint: boolean;
@@ -14936,6 +14950,8 @@ export interface Routes {
14936
14950
  supports_offline_access_codes?: boolean | undefined;
14937
14951
  /** Indicates current noise level in decibels, if the device supports noise detection. */
14938
14952
  noise_level_decibels?: number | undefined;
14953
+ /** Array of noise threshold IDs that are currently triggering. */
14954
+ currently_triggering_noise_threshold_ids?: string[] | undefined;
14939
14955
  } & {
14940
14956
  assa_abloy_credential_service_metadata?: ({
14941
14957
  has_active_endpoint: boolean;
@@ -16867,6 +16883,8 @@ export interface Routes {
16867
16883
  supports_offline_access_codes?: boolean | undefined;
16868
16884
  /** Indicates current noise level in decibels, if the device supports noise detection. */
16869
16885
  noise_level_decibels?: number | undefined;
16886
+ /** Array of noise threshold IDs that are currently triggering. */
16887
+ currently_triggering_noise_threshold_ids?: string[] | undefined;
16870
16888
  } & {
16871
16889
  assa_abloy_credential_service_metadata?: ({
16872
16890
  has_active_endpoint: boolean;
@@ -17391,6 +17409,8 @@ export interface Routes {
17391
17409
  supports_offline_access_codes?: boolean | undefined;
17392
17410
  /** Indicates current noise level in decibels, if the device supports noise detection. */
17393
17411
  noise_level_decibels?: number | undefined;
17412
+ /** Array of noise threshold IDs that are currently triggering. */
17413
+ currently_triggering_noise_threshold_ids?: string[] | undefined;
17394
17414
  } & {
17395
17415
  assa_abloy_credential_service_metadata?: ({
17396
17416
  has_active_endpoint: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.181.0",
3
+ "version": "1.183.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -155,6 +155,10 @@ export const common_device_properties = z.object({
155
155
  'Indicates current noise level in decibels, if the device supports noise detection.',
156
156
  )
157
157
  .optional(),
158
+ currently_triggering_noise_threshold_ids: z
159
+ .array(z.string())
160
+ .describe('Array of noise threshold IDs that are currently triggering.')
161
+ .optional(),
158
162
  })
159
163
 
160
164
  export const managed_device = z
@@ -1,7 +1,9 @@
1
1
  import { acs_credential_events } from './credentials.js'
2
+ import { acs_system_events } from './systems.js'
2
3
  import { acs_user_events } from './users.js'
3
4
 
4
5
  export const acs_events = [
6
+ ...acs_system_events,
5
7
  ...acs_credential_events,
6
8
  ...acs_user_events,
7
9
  ] as const
@@ -0,0 +1,15 @@
1
+ import { z } from 'zod'
2
+
3
+ import { common_acs_event } from './common.js'
4
+
5
+ const acs_system_event = common_acs_event.extend({})
6
+
7
+ export const acs_system_connected_event = acs_system_event
8
+ .extend({
9
+ event_type: z.literal('acs_system.connected'),
10
+ })
11
+ .describe('An ACS system was connected.')
12
+
13
+ export type AcsSystemConnectedEvent = z.infer<typeof acs_system_connected_event>
14
+
15
+ export const acs_system_events = [acs_system_connected_event] as const
@@ -1998,6 +1998,12 @@ export default {
1998
1998
  minimum: 0,
1999
1999
  type: 'number',
2000
2000
  },
2001
+ currently_triggering_noise_threshold_ids: {
2002
+ description:
2003
+ 'Array of noise threshold IDs that are currently triggering.',
2004
+ items: { type: 'string' },
2005
+ type: 'array',
2006
+ },
2001
2007
  has_direct_power: {
2002
2008
  description:
2003
2009
  'Indicates whether the device has direct power.',
@@ -9112,6 +9118,7 @@ export default {
9112
9118
  'connected_account.completed_first_sync_after_reconnection',
9113
9119
  'noise_sensor.noise_threshold_triggered',
9114
9120
  'access_code.backup_access_code_pulled',
9121
+ 'acs_system.connected',
9115
9122
  'acs_user.deleted',
9116
9123
  'acs_credential.deleted',
9117
9124
  'enrollment_automation.deleted',
@@ -9175,6 +9182,7 @@ export default {
9175
9182
  'connected_account.completed_first_sync_after_reconnection',
9176
9183
  'noise_sensor.noise_threshold_triggered',
9177
9184
  'access_code.backup_access_code_pulled',
9185
+ 'acs_system.connected',
9178
9186
  'acs_user.deleted',
9179
9187
  'acs_credential.deleted',
9180
9188
  'enrollment_automation.deleted',
@@ -6255,6 +6255,8 @@ export interface Routes {
6255
6255
  supports_offline_access_codes?: boolean | undefined
6256
6256
  /** Indicates current noise level in decibels, if the device supports noise detection. */
6257
6257
  noise_level_decibels?: number | undefined
6258
+ /** Array of noise threshold IDs that are currently triggering. */
6259
+ currently_triggering_noise_threshold_ids?: string[] | undefined
6258
6260
  } & {
6259
6261
  assa_abloy_credential_service_metadata?:
6260
6262
  | (
@@ -7148,6 +7150,8 @@ export interface Routes {
7148
7150
  supports_offline_access_codes?: boolean | undefined
7149
7151
  /** Indicates current noise level in decibels, if the device supports noise detection. */
7150
7152
  noise_level_decibels?: number | undefined
7153
+ /** Array of noise threshold IDs that are currently triggering. */
7154
+ currently_triggering_noise_threshold_ids?: string[] | undefined
7151
7155
  } & {
7152
7156
  assa_abloy_credential_service_metadata?:
7153
7157
  | (
@@ -8393,6 +8397,7 @@ export interface Routes {
8393
8397
  | 'connected_account.completed_first_sync_after_reconnection'
8394
8398
  | 'noise_sensor.noise_threshold_triggered'
8395
8399
  | 'access_code.backup_access_code_pulled'
8400
+ | 'acs_system.connected'
8396
8401
  | 'acs_user.deleted'
8397
8402
  | 'acs_credential.deleted'
8398
8403
  | 'enrollment_automation.deleted'
@@ -8454,6 +8459,7 @@ export interface Routes {
8454
8459
  | 'connected_account.completed_first_sync_after_reconnection'
8455
8460
  | 'noise_sensor.noise_threshold_triggered'
8456
8461
  | 'access_code.backup_access_code_pulled'
8462
+ | 'acs_system.connected'
8457
8463
  | 'acs_user.deleted'
8458
8464
  | 'acs_credential.deleted'
8459
8465
  | 'enrollment_automation.deleted'
@@ -8634,6 +8640,8 @@ export interface Routes {
8634
8640
  supports_offline_access_codes?: boolean | undefined
8635
8641
  /** Indicates current noise level in decibels, if the device supports noise detection. */
8636
8642
  noise_level_decibels?: number | undefined
8643
+ /** Array of noise threshold IDs that are currently triggering. */
8644
+ currently_triggering_noise_threshold_ids?: string[] | undefined
8637
8645
  } & {
8638
8646
  assa_abloy_credential_service_metadata?:
8639
8647
  | (
@@ -9373,6 +9381,8 @@ export interface Routes {
9373
9381
  supports_offline_access_codes?: boolean | undefined
9374
9382
  /** Indicates current noise level in decibels, if the device supports noise detection. */
9375
9383
  noise_level_decibels?: number | undefined
9384
+ /** Array of noise threshold IDs that are currently triggering. */
9385
+ currently_triggering_noise_threshold_ids?: string[] | undefined
9376
9386
  } & {
9377
9387
  assa_abloy_credential_service_metadata?:
9378
9388
  | (
@@ -10266,6 +10276,8 @@ export interface Routes {
10266
10276
  supports_offline_access_codes?: boolean | undefined
10267
10277
  /** Indicates current noise level in decibels, if the device supports noise detection. */
10268
10278
  noise_level_decibels?: number | undefined
10279
+ /** Array of noise threshold IDs that are currently triggering. */
10280
+ currently_triggering_noise_threshold_ids?: string[] | undefined
10269
10281
  } & {
10270
10282
  assa_abloy_credential_service_metadata?:
10271
10283
  | (
@@ -11005,6 +11017,8 @@ export interface Routes {
11005
11017
  supports_offline_access_codes?: boolean | undefined
11006
11018
  /** Indicates current noise level in decibels, if the device supports noise detection. */
11007
11019
  noise_level_decibels?: number | undefined
11020
+ /** Array of noise threshold IDs that are currently triggering. */
11021
+ currently_triggering_noise_threshold_ids?: string[] | undefined
11008
11022
  } & {
11009
11023
  assa_abloy_credential_service_metadata?:
11010
11024
  | (
@@ -16059,6 +16073,8 @@ export interface Routes {
16059
16073
  supports_offline_access_codes?: boolean | undefined
16060
16074
  /** Indicates current noise level in decibels, if the device supports noise detection. */
16061
16075
  noise_level_decibels?: number | undefined
16076
+ /** Array of noise threshold IDs that are currently triggering. */
16077
+ currently_triggering_noise_threshold_ids?: string[] | undefined
16062
16078
  } & {
16063
16079
  assa_abloy_credential_service_metadata?:
16064
16080
  | (
@@ -18246,6 +18262,8 @@ export interface Routes {
18246
18262
  supports_offline_access_codes?: boolean | undefined
18247
18263
  /** Indicates current noise level in decibels, if the device supports noise detection. */
18248
18264
  noise_level_decibels?: number | undefined
18265
+ /** Array of noise threshold IDs that are currently triggering. */
18266
+ currently_triggering_noise_threshold_ids?: string[] | undefined
18249
18267
  } & {
18250
18268
  assa_abloy_credential_service_metadata?:
18251
18269
  | (
@@ -20489,6 +20507,8 @@ export interface Routes {
20489
20507
  supports_offline_access_codes?: boolean | undefined
20490
20508
  /** Indicates current noise level in decibels, if the device supports noise detection. */
20491
20509
  noise_level_decibels?: number | undefined
20510
+ /** Array of noise threshold IDs that are currently triggering. */
20511
+ currently_triggering_noise_threshold_ids?: string[] | undefined
20492
20512
  } & {
20493
20513
  assa_abloy_credential_service_metadata?:
20494
20514
  | (
@@ -21233,6 +21253,8 @@ export interface Routes {
21233
21253
  supports_offline_access_codes?: boolean | undefined
21234
21254
  /** Indicates current noise level in decibels, if the device supports noise detection. */
21235
21255
  noise_level_decibels?: number | undefined
21256
+ /** Array of noise threshold IDs that are currently triggering. */
21257
+ currently_triggering_noise_threshold_ids?: string[] | undefined
21236
21258
  } & {
21237
21259
  assa_abloy_credential_service_metadata?:
21238
21260
  | (