@seamapi/types 1.289.1 → 1.291.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.
@@ -6862,6 +6862,10 @@ export interface Routes {
6862
6862
  /**
6863
6863
  * @deprecated Use `external_type_display_name`. */
6864
6864
  system_type_display_name?: string | undefined;
6865
+ location: {
6866
+ /** Time zone in which the `acs_system` is located. */
6867
+ time_zone: string | null;
6868
+ };
6865
6869
  /** Name of the `acs_system`. */
6866
6870
  name: string;
6867
6871
  /** Date and time at which the `acs_system` was created. */
@@ -6894,21 +6898,21 @@ export interface Routes {
6894
6898
  created_at: string;
6895
6899
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
6896
6900
  message: string;
6897
- /** Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit. */
6901
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
6898
6902
  error_code: 'salto_ks_subscription_limit_exceeded';
6899
6903
  } | {
6900
6904
  /** Date and time at which Seam created the error. */
6901
6905
  created_at: string;
6902
6906
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
6903
6907
  message: string;
6904
- /** Indicates that the access system has been disconnected. Please refer to [this guide](https://docs.seam.co/latest/capability-guides/access-systems/troubleshooting-your-access-control-system guide) to resolve the issue. */
6908
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
6905
6909
  error_code: 'acs_system_disconnected';
6906
6910
  } | {
6907
6911
  /** Date and time at which Seam created the error. */
6908
6912
  created_at: string;
6909
6913
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
6910
6914
  message: string;
6911
- /** Indicates that the login credentials are invalid. Please reconnect the account using the Connect Webview to restore access. */
6915
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
6912
6916
  error_code: 'account_disconnected';
6913
6917
  }>;
6914
6918
  /** Warnings associated with the `acs_system`. */
@@ -6967,6 +6971,10 @@ export interface Routes {
6967
6971
  /**
6968
6972
  * @deprecated Use `external_type_display_name`. */
6969
6973
  system_type_display_name?: string | undefined;
6974
+ location: {
6975
+ /** Time zone in which the `acs_system` is located. */
6976
+ time_zone: string | null;
6977
+ };
6970
6978
  /** Name of the `acs_system`. */
6971
6979
  name: string;
6972
6980
  /** Date and time at which the `acs_system` was created. */
@@ -6999,21 +7007,21 @@ export interface Routes {
6999
7007
  created_at: string;
7000
7008
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
7001
7009
  message: string;
7002
- /** Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit. */
7010
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
7003
7011
  error_code: 'salto_ks_subscription_limit_exceeded';
7004
7012
  } | {
7005
7013
  /** Date and time at which Seam created the error. */
7006
7014
  created_at: string;
7007
7015
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
7008
7016
  message: string;
7009
- /** Indicates that the access system has been disconnected. Please refer to [this guide](https://docs.seam.co/latest/capability-guides/access-systems/troubleshooting-your-access-control-system guide) to resolve the issue. */
7017
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
7010
7018
  error_code: 'acs_system_disconnected';
7011
7019
  } | {
7012
7020
  /** Date and time at which Seam created the error. */
7013
7021
  created_at: string;
7014
7022
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
7015
7023
  message: string;
7016
- /** Indicates that the login credentials are invalid. Please reconnect the account using the Connect Webview to restore access. */
7024
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
7017
7025
  error_code: 'account_disconnected';
7018
7026
  }>;
7019
7027
  /** Warnings associated with the `acs_system`. */
@@ -7072,6 +7080,10 @@ export interface Routes {
7072
7080
  /**
7073
7081
  * @deprecated Use `external_type_display_name`. */
7074
7082
  system_type_display_name?: string | undefined;
7083
+ location: {
7084
+ /** Time zone in which the `acs_system` is located. */
7085
+ time_zone: string | null;
7086
+ };
7075
7087
  /** Name of the `acs_system`. */
7076
7088
  name: string;
7077
7089
  /** Date and time at which the `acs_system` was created. */
@@ -7104,21 +7116,21 @@ export interface Routes {
7104
7116
  created_at: string;
7105
7117
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
7106
7118
  message: string;
7107
- /** Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit. */
7119
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
7108
7120
  error_code: 'salto_ks_subscription_limit_exceeded';
7109
7121
  } | {
7110
7122
  /** Date and time at which Seam created the error. */
7111
7123
  created_at: string;
7112
7124
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
7113
7125
  message: string;
7114
- /** Indicates that the access system has been disconnected. Please refer to [this guide](https://docs.seam.co/latest/capability-guides/access-systems/troubleshooting-your-access-control-system guide) to resolve the issue. */
7126
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
7115
7127
  error_code: 'acs_system_disconnected';
7116
7128
  } | {
7117
7129
  /** Date and time at which Seam created the error. */
7118
7130
  created_at: string;
7119
7131
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
7120
7132
  message: string;
7121
- /** Indicates that the login credentials are invalid. Please reconnect the account using the Connect Webview to restore access. */
7133
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
7122
7134
  error_code: 'account_disconnected';
7123
7135
  }>;
7124
7136
  /** Warnings associated with the `acs_system`. */
@@ -11081,8 +11093,8 @@ export interface Routes {
11081
11093
  acs_system_ids?: string[] | undefined;
11082
11094
  access_code_id?: string | undefined;
11083
11095
  access_code_ids?: string[] | undefined;
11084
- 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_user.deleted' | 'acs_credential.deleted' | 'acs_credential.issued' | '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') | undefined;
11085
- 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_user.deleted' | 'acs_credential.deleted' | 'acs_credential.issued' | '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'> | undefined;
11096
+ 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_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') | undefined;
11097
+ 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_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'> | undefined;
11086
11098
  connected_account_id?: string | undefined;
11087
11099
  connect_webview_id?: string | undefined;
11088
11100
  limit?: number;
@@ -25093,6 +25105,10 @@ export interface Routes {
25093
25105
  /**
25094
25106
  * @deprecated Use `external_type_display_name`. */
25095
25107
  system_type_display_name?: string | undefined;
25108
+ location: {
25109
+ /** Time zone in which the `acs_system` is located. */
25110
+ time_zone: string | null;
25111
+ };
25096
25112
  /** Name of the `acs_system`. */
25097
25113
  name: string;
25098
25114
  /** Date and time at which the `acs_system` was created. */
@@ -25125,21 +25141,21 @@ export interface Routes {
25125
25141
  created_at: string;
25126
25142
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
25127
25143
  message: string;
25128
- /** Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit. */
25144
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
25129
25145
  error_code: 'salto_ks_subscription_limit_exceeded';
25130
25146
  } | {
25131
25147
  /** Date and time at which Seam created the error. */
25132
25148
  created_at: string;
25133
25149
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
25134
25150
  message: string;
25135
- /** Indicates that the access system has been disconnected. Please refer to [this guide](https://docs.seam.co/latest/capability-guides/access-systems/troubleshooting-your-access-control-system guide) to resolve the issue. */
25151
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
25136
25152
  error_code: 'acs_system_disconnected';
25137
25153
  } | {
25138
25154
  /** Date and time at which Seam created the error. */
25139
25155
  created_at: string;
25140
25156
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
25141
25157
  message: string;
25142
- /** Indicates that the login credentials are invalid. Please reconnect the account using the Connect Webview to restore access. */
25158
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
25143
25159
  error_code: 'account_disconnected';
25144
25160
  }>;
25145
25161
  /** Warnings associated with the `acs_system`. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.289.1",
3
+ "version": "1.291.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -1,5 +1,42 @@
1
1
  import { z } from 'zod'
2
2
 
3
+ const common_acs_encoder_error = z.object({
4
+ created_at: z
5
+ .string()
6
+ .datetime()
7
+ .describe('Date and time at which Seam created the error.'),
8
+ message: z
9
+ .string()
10
+ .describe(
11
+ 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
12
+ ),
13
+ })
14
+
15
+ const error_code_description =
16
+ 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.'
17
+
18
+ const acs_encoder_removed = common_acs_encoder_error.extend({
19
+ error_code: z.literal('acs_encoder_removed').describe(error_code_description),
20
+ _event_id: z
21
+ .string()
22
+ .uuid()
23
+ .describe(
24
+ 'ID of the event that was created when the `acs_encoder` was removed.',
25
+ ),
26
+ })
27
+
28
+ const acs_encoder_error =
29
+ // z.union([
30
+ acs_encoder_removed
31
+ // ])
32
+ .describe('Error associated with the `acs_encoder`.')
33
+
34
+ export const acs_encoder_error_map = z.object({
35
+ acs_encoder_removed: acs_encoder_removed.optional().nullable(),
36
+ })
37
+
38
+ export type AcsEncoderErrorMap = z.infer<typeof acs_encoder_error_map>
39
+
3
40
  export const acs_encoder = z.object({
4
41
  acs_encoder_id: z.string().uuid().describe('ID of the `acs_encoder`.'),
5
42
  acs_system_id: z
@@ -14,12 +51,9 @@ export const acs_encoder = z.object({
14
51
  .describe(
15
52
  'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the `acs_system`.',
16
53
  ),
17
- errors: z.array(
18
- z.object({
19
- error_code: z.string(),
20
- message: z.string(),
21
- }),
22
- ),
54
+ errors: z
55
+ .array(acs_encoder_error)
56
+ .describe('Errors associated with the `acs_encoder`.'),
23
57
  created_at: z
24
58
  .string()
25
59
  .datetime()
@@ -27,6 +27,13 @@ export const acs_system_capability_flags = z.object({
27
27
  ),
28
28
  })
29
29
 
30
+ export const location = z.object({
31
+ time_zone: z
32
+ .string()
33
+ .nullable()
34
+ .describe('Time zone in which the `acs_system` is located.'),
35
+ })
36
+
30
37
  // If changed, update seam.acs_system.external_type generated column
31
38
  export const acs_system_external_type = z.enum([
32
39
  'pti_site',
@@ -68,6 +75,7 @@ const seam_bridge_disconnected = common_acs_system_error.extend({
68
75
  .describe(`Indicates that the Seam API cannot communicate with the [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge), for example, if the Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline.
69
76
  This error might also occur if the Seam Bridge is connected to the wrong [workspace](https://docs.seam.co/latest/core-concepts/workspaces).
70
77
  See also [Troubleshooting Your Access Control System](https://docs.seam.co/latest/capability-guides/capability-guides/access-systems/troubleshooting-your-access-control-system#acs_system.errors.seam_bridge_disconnected).`)
78
+
71
79
  const visionline_instance_unreachable = common_acs_system_error.extend({
72
80
  error_code: z
73
81
  .literal('visionline_instance_unreachable')
@@ -77,29 +85,36 @@ const visionline_instance_unreachable = common_acs_system_error.extend({
77
85
  For example, the IP address of the on-premises access control system may be set incorrectly within the Seam [workspace](https://docs.seam.co/latest/core-concepts/workspaces).
78
86
  See also [Troubleshooting Your Access Control System](https://docs.seam.co/latest/capability-guides/capability-guides/access-systems/troubleshooting-your-access-control-system#acs_system.errors.visionline_instance_unreachable).`)
79
87
 
80
- const salto_ks_subscription_limit_exceeded = common_acs_system_error.extend({
81
- error_code: z
82
- .literal('salto_ks_subscription_limit_exceeded')
83
- .describe(
84
- 'Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit.',
85
- ),
86
- })
88
+ const salto_ks_subscription_limit_exceeded = common_acs_system_error
89
+ .extend({
90
+ error_code: z
91
+ .literal('salto_ks_subscription_limit_exceeded')
92
+ .describe(error_code_description),
93
+ })
94
+ .describe(
95
+ 'Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit.',
96
+ )
87
97
 
88
- const acs_system_disconnected = common_acs_system_error.extend({
89
- error_code: z
90
- .literal('acs_system_disconnected')
91
- .describe(
92
- 'Indicates that the access system has been disconnected. Please refer to [this guide](https://docs.seam.co/latest/capability-guides/access-systems/troubleshooting-your-access-control-system guide) to resolve the issue.',
93
- ),
94
- })
98
+ const acs_system_disconnected = common_acs_system_error
99
+ .extend({
100
+ error_code: z
101
+ .literal('acs_system_disconnected')
102
+ .describe(error_code_description),
103
+ })
104
+ .describe(
105
+ 'Indicates that the access system has been disconnected. See [this guide](https://docs.seam.co/latest/capability-guides/access-systems/troubleshooting-your-access-control-system guide) to resolve the issue.',
106
+ )
107
+
108
+ const account_disconnected = common_acs_system_error
109
+ .extend({
110
+ error_code: z
111
+ .literal('account_disconnected')
112
+ .describe(error_code_description),
113
+ })
114
+ .describe(
115
+ 'Indicates that the login credentials are invalid. Reconnect the account using the Connect Webview to restore access.',
116
+ )
95
117
 
96
- const account_disconnected = common_acs_system_error.extend({
97
- error_code: z
98
- .literal('account_disconnected')
99
- .describe(
100
- 'Indicates that the login credentials are invalid. Please reconnect the account using the Connect Webview to restore access.',
101
- ),
102
- })
103
118
  const acs_system_error = z
104
119
  .union([
105
120
  seam_bridge_disconnected,
@@ -219,6 +234,7 @@ export const acs_system = z
219
234
  deprecated: Use \`external_type_display_name\`.
220
235
  ---
221
236
  `),
237
+ location,
222
238
  name: z.string().describe('Name of the `acs_system`.'),
223
239
  created_at: z
224
240
  .string()
@@ -0,0 +1,28 @@
1
+ import { z } from 'zod'
2
+
3
+ import { common_acs_event } from './common.js'
4
+
5
+ const acs_encoder_event = common_acs_event.extend({
6
+ acs_encoder_id: z.string().uuid().describe('ID of the ACS encoder.'),
7
+ })
8
+
9
+ export const acs_encoder_added_event = acs_encoder_event
10
+ .extend({
11
+ event_type: z.literal('acs_encoder.added'),
12
+ })
13
+ .describe('An ACS encoder was added.')
14
+
15
+ export type AcsEncoderAddedEvent = z.infer<typeof acs_encoder_added_event>
16
+
17
+ export const acs_encoder_removed_event = acs_encoder_event
18
+ .extend({
19
+ event_type: z.literal('acs_encoder.removed'),
20
+ })
21
+ .describe('An ACS encoder was removed.')
22
+
23
+ export type AcsEncoderRemovedEvent = z.infer<typeof acs_encoder_removed_event>
24
+
25
+ export const acs_encoder_events = [
26
+ acs_encoder_added_event,
27
+ acs_encoder_removed_event,
28
+ ] as const
@@ -1,4 +1,5 @@
1
1
  import { acs_credential_events } from './credentials.js'
2
+ import { acs_encoder_events } from './encoders.js'
2
3
  import { acs_system_events } from './systems.js'
3
4
  import { acs_user_events } from './users.js'
4
5
 
@@ -6,4 +7,5 @@ export const acs_events = [
6
7
  ...acs_system_events,
7
8
  ...acs_credential_events,
8
9
  ...acs_user_events,
10
+ ...acs_encoder_events,
9
11
  ] as const
@@ -700,6 +700,8 @@ export default {
700
700
  type: 'object',
701
701
  },
702
702
  {
703
+ description:
704
+ 'Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit.',
703
705
  properties: {
704
706
  created_at: {
705
707
  description:
@@ -709,7 +711,7 @@ export default {
709
711
  },
710
712
  error_code: {
711
713
  description:
712
- 'Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit.',
714
+ 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
713
715
  enum: ['salto_ks_subscription_limit_exceeded'],
714
716
  type: 'string',
715
717
  },
@@ -723,6 +725,8 @@ export default {
723
725
  type: 'object',
724
726
  },
725
727
  {
728
+ description:
729
+ 'Indicates that the access system has been disconnected. See [this guide](https://docs.seam.co/latest/capability-guides/access-systems/troubleshooting-your-access-control-system guide) to resolve the issue.',
726
730
  properties: {
727
731
  created_at: {
728
732
  description:
@@ -732,7 +736,7 @@ export default {
732
736
  },
733
737
  error_code: {
734
738
  description:
735
- 'Indicates that the access system has been disconnected. Please refer to [this guide](https://docs.seam.co/latest/capability-guides/access-systems/troubleshooting-your-access-control-system guide) to resolve the issue.',
739
+ 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
736
740
  enum: ['acs_system_disconnected'],
737
741
  type: 'string',
738
742
  },
@@ -746,6 +750,8 @@ export default {
746
750
  type: 'object',
747
751
  },
748
752
  {
753
+ description:
754
+ 'Indicates that the login credentials are invalid. Reconnect the account using the Connect Webview to restore access.',
749
755
  properties: {
750
756
  created_at: {
751
757
  description:
@@ -755,7 +761,7 @@ export default {
755
761
  },
756
762
  error_code: {
757
763
  description:
758
- 'Indicates that the login credentials are invalid. Please reconnect the account using the Connect Webview to restore access.',
764
+ 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
759
765
  enum: ['account_disconnected'],
760
766
  type: 'string',
761
767
  },
@@ -809,6 +815,17 @@ export default {
809
815
  'Indicates if the `acs_system` is a credential manager.',
810
816
  type: 'boolean',
811
817
  },
818
+ location: {
819
+ properties: {
820
+ time_zone: {
821
+ description: 'Time zone in which the `acs_system` is located.',
822
+ nullable: true,
823
+ type: 'string',
824
+ },
825
+ },
826
+ required: ['time_zone'],
827
+ type: 'object',
828
+ },
812
829
  name: { description: 'Name of the `acs_system`.', type: 'string' },
813
830
  system_type: {
814
831
  deprecated: true,
@@ -893,6 +910,7 @@ export default {
893
910
  required: [
894
911
  'acs_system_id',
895
912
  'is_credential_manager',
913
+ 'location',
896
914
  'name',
897
915
  'created_at',
898
916
  'workspace_id',
@@ -13777,6 +13795,8 @@ export default {
13777
13795
  'acs_user.deleted',
13778
13796
  'acs_credential.deleted',
13779
13797
  'acs_credential.issued',
13798
+ 'acs_encoder.added',
13799
+ 'acs_encoder.removed',
13780
13800
  'enrollment_automation.deleted',
13781
13801
  'client_session.deleted',
13782
13802
  'action_attempt.lock_door.succeeded',
@@ -13851,6 +13871,8 @@ export default {
13851
13871
  'acs_user.deleted',
13852
13872
  'acs_credential.deleted',
13853
13873
  'acs_credential.issued',
13874
+ 'acs_encoder.added',
13875
+ 'acs_encoder.removed',
13854
13876
  'enrollment_automation.deleted',
13855
13877
  'client_session.deleted',
13856
13878
  'action_attempt.lock_door.succeeded',