@seamapi/types 1.326.0 → 1.327.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.
@@ -13243,6 +13243,21 @@ export interface Routes {
13243
13243
  /** ID of the [ACS encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners). */
13244
13244
  acs_encoder_id: string;
13245
13245
  event_type: 'acs_encoder.removed';
13246
+ } | {
13247
+ /** ID of the event. */
13248
+ event_id: string;
13249
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces). */
13250
+ workspace_id: string;
13251
+ /** Date and time at which the event was created. */
13252
+ created_at: string;
13253
+ /** Date and time at which the event occurred. */
13254
+ occurred_at: string;
13255
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts). */
13256
+ connected_account_id?: string | undefined;
13257
+ /** ID of the [ACS system](https://docs.seam.co/latest/capability-guides/access-systems). */
13258
+ acs_system_id: string;
13259
+ acs_access_group_id: string;
13260
+ event_type: 'acs_access_group.deleted';
13246
13261
  } | {
13247
13262
  /** ID of the event. */
13248
13263
  event_id: string;
@@ -14000,8 +14015,8 @@ export interface Routes {
14000
14015
  acs_system_ids?: string[] | undefined;
14001
14016
  access_code_id?: string | undefined;
14002
14017
  access_code_ids?: string[] | undefined;
14003
- event_type?: ('device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'device.added' | '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' | 'lock.access_denied' | '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' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'noise_sensor.noise_threshold_triggered' | 'access_code.backup_access_code_pulled' | 'acs_system.added' | 'acs_system.connected' | 'acs_system.disconnected' | 'acs_user.deleted' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_encoder.added' | 'acs_encoder.removed' | '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' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point') | undefined;
14004
- event_types?: Array<'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'device.added' | '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' | 'lock.access_denied' | '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' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'noise_sensor.noise_threshold_triggered' | 'access_code.backup_access_code_pulled' | 'acs_system.added' | 'acs_system.connected' | 'acs_system.disconnected' | 'acs_user.deleted' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_encoder.added' | 'acs_encoder.removed' | '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' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point'> | undefined;
14018
+ event_type?: ('device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'device.added' | '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' | 'lock.access_denied' | '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' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'noise_sensor.noise_threshold_triggered' | 'access_code.backup_access_code_pulled' | 'acs_system.added' | 'acs_system.connected' | 'acs_system.disconnected' | 'acs_access_group.deleted' | 'acs_user.deleted' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_encoder.added' | 'acs_encoder.removed' | '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' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point') | undefined;
14019
+ event_types?: Array<'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'device.added' | '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' | 'lock.access_denied' | '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' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'noise_sensor.noise_threshold_triggered' | 'access_code.backup_access_code_pulled' | 'acs_system.added' | 'acs_system.connected' | 'acs_system.disconnected' | 'acs_access_group.deleted' | 'acs_user.deleted' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_encoder.added' | 'acs_encoder.removed' | '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' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point'> | undefined;
14005
14020
  connected_account_id?: string | undefined;
14006
14021
  connect_webview_id?: string | undefined;
14007
14022
  limit?: number;
@@ -14406,6 +14421,21 @@ export interface Routes {
14406
14421
  /** ID of the [ACS encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners). */
14407
14422
  acs_encoder_id: string;
14408
14423
  event_type: 'acs_encoder.removed';
14424
+ } | {
14425
+ /** ID of the event. */
14426
+ event_id: string;
14427
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces). */
14428
+ workspace_id: string;
14429
+ /** Date and time at which the event was created. */
14430
+ created_at: string;
14431
+ /** Date and time at which the event occurred. */
14432
+ occurred_at: string;
14433
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts). */
14434
+ connected_account_id?: string | undefined;
14435
+ /** ID of the [ACS system](https://docs.seam.co/latest/capability-guides/access-systems). */
14436
+ acs_system_id: string;
14437
+ acs_access_group_id: string;
14438
+ event_type: 'acs_access_group.deleted';
14409
14439
  } | {
14410
14440
  /** ID of the event. */
14411
14441
  event_id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.326.0",
3
+ "version": "1.327.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -0,0 +1,19 @@
1
+ import { z } from 'zod'
2
+
3
+ import { common_acs_event } from './common.js'
4
+
5
+ const acs_access_group_event = common_acs_event.extend({
6
+ acs_access_group_id: z.string().uuid(),
7
+ })
8
+
9
+ export const acs_access_group_deleted_event = acs_access_group_event
10
+ .extend({
11
+ event_type: z.literal('acs_access_group.deleted'),
12
+ })
13
+ .describe('An ACS access group was deleted.')
14
+
15
+ export type AcsAccessGroupDeletedEvent = z.infer<
16
+ typeof acs_access_group_deleted_event
17
+ >
18
+
19
+ export const acs_access_group_events = [acs_access_group_deleted_event] as const
@@ -1,3 +1,4 @@
1
+ import { acs_access_group_events } from './access_groups.js'
1
2
  import { acs_credential_events } from './credentials.js'
2
3
  import { acs_encoder_events } from './encoders.js'
3
4
  import { acs_system_events } from './systems.js'
@@ -8,4 +9,5 @@ export const acs_events = [
8
9
  ...acs_credential_events,
9
10
  ...acs_user_events,
10
11
  ...acs_encoder_events,
12
+ ...acs_access_group_events,
11
13
  ] as const
@@ -7728,6 +7728,59 @@ export default {
7728
7728
  ],
7729
7729
  type: 'object',
7730
7730
  },
7731
+ {
7732
+ description: 'An ACS access group was deleted.',
7733
+ properties: {
7734
+ acs_access_group_id: { format: 'uuid', type: 'string' },
7735
+ acs_system_id: {
7736
+ description:
7737
+ 'ID of the [ACS system](https://docs.seam.co/latest/capability-guides/access-systems).',
7738
+ format: 'uuid',
7739
+ type: 'string',
7740
+ },
7741
+ connected_account_id: {
7742
+ description:
7743
+ 'ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts).',
7744
+ format: 'uuid',
7745
+ type: 'string',
7746
+ },
7747
+ created_at: {
7748
+ description: 'Date and time at which the event was created.',
7749
+ format: 'date-time',
7750
+ type: 'string',
7751
+ },
7752
+ event_id: {
7753
+ description: 'ID of the event.',
7754
+ format: 'uuid',
7755
+ type: 'string',
7756
+ },
7757
+ event_type: {
7758
+ enum: ['acs_access_group.deleted'],
7759
+ type: 'string',
7760
+ },
7761
+ occurred_at: {
7762
+ description: 'Date and time at which the event occurred.',
7763
+ format: 'date-time',
7764
+ type: 'string',
7765
+ },
7766
+ workspace_id: {
7767
+ description:
7768
+ 'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces).',
7769
+ format: 'uuid',
7770
+ type: 'string',
7771
+ },
7772
+ },
7773
+ required: [
7774
+ 'event_id',
7775
+ 'workspace_id',
7776
+ 'created_at',
7777
+ 'occurred_at',
7778
+ 'acs_system_id',
7779
+ 'acs_access_group_id',
7780
+ 'event_type',
7781
+ ],
7782
+ type: 'object',
7783
+ },
7731
7784
  {
7732
7785
  description:
7733
7786
  'A [client session](https://docs.seam.co/latest/core-concepts/authentication/client-session-tokens) was deleted.',
@@ -20702,6 +20755,7 @@ export default {
20702
20755
  'acs_system.added',
20703
20756
  'acs_system.connected',
20704
20757
  'acs_system.disconnected',
20758
+ 'acs_access_group.deleted',
20705
20759
  'acs_user.deleted',
20706
20760
  'acs_credential.deleted',
20707
20761
  'acs_credential.issued',
@@ -20780,6 +20834,7 @@ export default {
20780
20834
  'acs_system.added',
20781
20835
  'acs_system.connected',
20782
20836
  'acs_system.disconnected',
20837
+ 'acs_access_group.deleted',
20783
20838
  'acs_user.deleted',
20784
20839
  'acs_credential.deleted',
20785
20840
  'acs_credential.issued',
@@ -16213,6 +16213,22 @@ export interface Routes {
16213
16213
  acs_encoder_id: string
16214
16214
  event_type: 'acs_encoder.removed'
16215
16215
  }
16216
+ | {
16217
+ /** ID of the event. */
16218
+ event_id: string
16219
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces). */
16220
+ workspace_id: string
16221
+ /** Date and time at which the event was created. */
16222
+ created_at: string
16223
+ /** Date and time at which the event occurred. */
16224
+ occurred_at: string
16225
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts). */
16226
+ connected_account_id?: string | undefined
16227
+ /** ID of the [ACS system](https://docs.seam.co/latest/capability-guides/access-systems). */
16228
+ acs_system_id: string
16229
+ acs_access_group_id: string
16230
+ event_type: 'acs_access_group.deleted'
16231
+ }
16216
16232
  | {
16217
16233
  /** ID of the event. */
16218
16234
  event_id: string
@@ -17096,6 +17112,7 @@ export interface Routes {
17096
17112
  | 'acs_system.added'
17097
17113
  | 'acs_system.connected'
17098
17114
  | 'acs_system.disconnected'
17115
+ | 'acs_access_group.deleted'
17099
17116
  | 'acs_user.deleted'
17100
17117
  | 'acs_credential.deleted'
17101
17118
  | 'acs_credential.issued'
@@ -17172,6 +17189,7 @@ export interface Routes {
17172
17189
  | 'acs_system.added'
17173
17190
  | 'acs_system.connected'
17174
17191
  | 'acs_system.disconnected'
17192
+ | 'acs_access_group.deleted'
17175
17193
  | 'acs_user.deleted'
17176
17194
  | 'acs_credential.deleted'
17177
17195
  | 'acs_credential.issued'
@@ -17620,6 +17638,22 @@ export interface Routes {
17620
17638
  acs_encoder_id: string
17621
17639
  event_type: 'acs_encoder.removed'
17622
17640
  }
17641
+ | {
17642
+ /** ID of the event. */
17643
+ event_id: string
17644
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces). */
17645
+ workspace_id: string
17646
+ /** Date and time at which the event was created. */
17647
+ created_at: string
17648
+ /** Date and time at which the event occurred. */
17649
+ occurred_at: string
17650
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts). */
17651
+ connected_account_id?: string | undefined
17652
+ /** ID of the [ACS system](https://docs.seam.co/latest/capability-guides/access-systems). */
17653
+ acs_system_id: string
17654
+ acs_access_group_id: string
17655
+ event_type: 'acs_access_group.deleted'
17656
+ }
17623
17657
  | {
17624
17658
  /** ID of the event. */
17625
17659
  event_id: string