@seamapi/types 1.290.0 → 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.
- package/dist/connect.cjs +37 -16
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +94 -43
- package/lib/seam/connect/models/acs/acs-encoder.d.ts +52 -7
- package/lib/seam/connect/models/acs/acs-encoder.js +28 -4
- package/lib/seam/connect/models/acs/acs-encoder.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-system.js +15 -9
- package/lib/seam/connect/models/acs/acs-system.js.map +1 -1
- package/lib/seam/connect/models/events/acs/encoders.d.ts +126 -0
- package/lib/seam/connect/models/events/acs/encoders.js +20 -0
- package/lib/seam/connect/models/events/acs/encoders.js.map +1 -0
- package/lib/seam/connect/models/events/acs/index.d.ts +60 -0
- package/lib/seam/connect/models/events/acs/index.js +2 -0
- package/lib/seam/connect/models/events/acs/index.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +60 -0
- package/lib/seam/connect/openapi.d.ts +2 -22
- package/lib/seam/connect/openapi.js +10 -3
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +14 -14
- package/package.json +1 -1
- package/src/lib/seam/connect/models/acs/acs-encoder.ts +40 -6
- package/src/lib/seam/connect/models/acs/acs-system.ts +29 -21
- package/src/lib/seam/connect/models/events/acs/encoders.ts +28 -0
- package/src/lib/seam/connect/models/events/acs/index.ts +2 -0
- package/src/lib/seam/connect/openapi.ts +13 -3
- package/src/lib/seam/connect/route-types.ts +16 -12
|
@@ -6898,21 +6898,21 @@ export interface Routes {
|
|
|
6898
6898
|
created_at: string;
|
|
6899
6899
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
6900
6900
|
message: string;
|
|
6901
|
-
/**
|
|
6901
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
6902
6902
|
error_code: 'salto_ks_subscription_limit_exceeded';
|
|
6903
6903
|
} | {
|
|
6904
6904
|
/** Date and time at which Seam created the error. */
|
|
6905
6905
|
created_at: string;
|
|
6906
6906
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
6907
6907
|
message: string;
|
|
6908
|
-
/**
|
|
6908
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
6909
6909
|
error_code: 'acs_system_disconnected';
|
|
6910
6910
|
} | {
|
|
6911
6911
|
/** Date and time at which Seam created the error. */
|
|
6912
6912
|
created_at: string;
|
|
6913
6913
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
6914
6914
|
message: string;
|
|
6915
|
-
/**
|
|
6915
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
6916
6916
|
error_code: 'account_disconnected';
|
|
6917
6917
|
}>;
|
|
6918
6918
|
/** Warnings associated with the `acs_system`. */
|
|
@@ -7007,21 +7007,21 @@ export interface Routes {
|
|
|
7007
7007
|
created_at: string;
|
|
7008
7008
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
7009
7009
|
message: string;
|
|
7010
|
-
/**
|
|
7010
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
7011
7011
|
error_code: 'salto_ks_subscription_limit_exceeded';
|
|
7012
7012
|
} | {
|
|
7013
7013
|
/** Date and time at which Seam created the error. */
|
|
7014
7014
|
created_at: string;
|
|
7015
7015
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
7016
7016
|
message: string;
|
|
7017
|
-
/**
|
|
7017
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
7018
7018
|
error_code: 'acs_system_disconnected';
|
|
7019
7019
|
} | {
|
|
7020
7020
|
/** Date and time at which Seam created the error. */
|
|
7021
7021
|
created_at: string;
|
|
7022
7022
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
7023
7023
|
message: string;
|
|
7024
|
-
/**
|
|
7024
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
7025
7025
|
error_code: 'account_disconnected';
|
|
7026
7026
|
}>;
|
|
7027
7027
|
/** Warnings associated with the `acs_system`. */
|
|
@@ -7116,21 +7116,21 @@ export interface Routes {
|
|
|
7116
7116
|
created_at: string;
|
|
7117
7117
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
7118
7118
|
message: string;
|
|
7119
|
-
/**
|
|
7119
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
7120
7120
|
error_code: 'salto_ks_subscription_limit_exceeded';
|
|
7121
7121
|
} | {
|
|
7122
7122
|
/** Date and time at which Seam created the error. */
|
|
7123
7123
|
created_at: string;
|
|
7124
7124
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
7125
7125
|
message: string;
|
|
7126
|
-
/**
|
|
7126
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
7127
7127
|
error_code: 'acs_system_disconnected';
|
|
7128
7128
|
} | {
|
|
7129
7129
|
/** Date and time at which Seam created the error. */
|
|
7130
7130
|
created_at: string;
|
|
7131
7131
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
7132
7132
|
message: string;
|
|
7133
|
-
/**
|
|
7133
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
7134
7134
|
error_code: 'account_disconnected';
|
|
7135
7135
|
}>;
|
|
7136
7136
|
/** Warnings associated with the `acs_system`. */
|
|
@@ -11093,8 +11093,8 @@ export interface Routes {
|
|
|
11093
11093
|
acs_system_ids?: string[] | undefined;
|
|
11094
11094
|
access_code_id?: string | undefined;
|
|
11095
11095
|
access_code_ids?: string[] | 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' | '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' | '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;
|
|
11098
11098
|
connected_account_id?: string | undefined;
|
|
11099
11099
|
connect_webview_id?: string | undefined;
|
|
11100
11100
|
limit?: number;
|
|
@@ -25141,21 +25141,21 @@ export interface Routes {
|
|
|
25141
25141
|
created_at: string;
|
|
25142
25142
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
25143
25143
|
message: string;
|
|
25144
|
-
/**
|
|
25144
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
25145
25145
|
error_code: 'salto_ks_subscription_limit_exceeded';
|
|
25146
25146
|
} | {
|
|
25147
25147
|
/** Date and time at which Seam created the error. */
|
|
25148
25148
|
created_at: string;
|
|
25149
25149
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
25150
25150
|
message: string;
|
|
25151
|
-
/**
|
|
25151
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
25152
25152
|
error_code: 'acs_system_disconnected';
|
|
25153
25153
|
} | {
|
|
25154
25154
|
/** Date and time at which Seam created the error. */
|
|
25155
25155
|
created_at: string;
|
|
25156
25156
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
25157
25157
|
message: string;
|
|
25158
|
-
/**
|
|
25158
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
25159
25159
|
error_code: 'account_disconnected';
|
|
25160
25160
|
}>;
|
|
25161
25161
|
/** Warnings associated with the `acs_system`. */
|
package/package.json
CHANGED
|
@@ -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
|
|
18
|
-
|
|
19
|
-
|
|
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()
|
|
@@ -75,6 +75,7 @@ const seam_bridge_disconnected = common_acs_system_error.extend({
|
|
|
75
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.
|
|
76
76
|
This error might also occur if the Seam Bridge is connected to the wrong [workspace](https://docs.seam.co/latest/core-concepts/workspaces).
|
|
77
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
|
+
|
|
78
79
|
const visionline_instance_unreachable = common_acs_system_error.extend({
|
|
79
80
|
error_code: z
|
|
80
81
|
.literal('visionline_instance_unreachable')
|
|
@@ -84,29 +85,36 @@ const visionline_instance_unreachable = common_acs_system_error.extend({
|
|
|
84
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).
|
|
85
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).`)
|
|
86
87
|
|
|
87
|
-
const salto_ks_subscription_limit_exceeded = common_acs_system_error
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
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
|
+
)
|
|
94
97
|
|
|
95
|
-
const acs_system_disconnected = common_acs_system_error
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
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
|
+
)
|
|
102
117
|
|
|
103
|
-
const account_disconnected = common_acs_system_error.extend({
|
|
104
|
-
error_code: z
|
|
105
|
-
.literal('account_disconnected')
|
|
106
|
-
.describe(
|
|
107
|
-
'Indicates that the login credentials are invalid. Please reconnect the account using the Connect Webview to restore access.',
|
|
108
|
-
),
|
|
109
|
-
})
|
|
110
118
|
const acs_system_error = z
|
|
111
119
|
.union([
|
|
112
120
|
seam_bridge_disconnected,
|
|
@@ -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
|
-
'
|
|
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
|
-
'
|
|
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
|
-
'
|
|
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
|
},
|
|
@@ -13789,6 +13795,8 @@ export default {
|
|
|
13789
13795
|
'acs_user.deleted',
|
|
13790
13796
|
'acs_credential.deleted',
|
|
13791
13797
|
'acs_credential.issued',
|
|
13798
|
+
'acs_encoder.added',
|
|
13799
|
+
'acs_encoder.removed',
|
|
13792
13800
|
'enrollment_automation.deleted',
|
|
13793
13801
|
'client_session.deleted',
|
|
13794
13802
|
'action_attempt.lock_door.succeeded',
|
|
@@ -13863,6 +13871,8 @@ export default {
|
|
|
13863
13871
|
'acs_user.deleted',
|
|
13864
13872
|
'acs_credential.deleted',
|
|
13865
13873
|
'acs_credential.issued',
|
|
13874
|
+
'acs_encoder.added',
|
|
13875
|
+
'acs_encoder.removed',
|
|
13866
13876
|
'enrollment_automation.deleted',
|
|
13867
13877
|
'client_session.deleted',
|
|
13868
13878
|
'action_attempt.lock_door.succeeded',
|
|
@@ -8148,7 +8148,7 @@ export interface Routes {
|
|
|
8148
8148
|
created_at: string
|
|
8149
8149
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
8150
8150
|
message: string
|
|
8151
|
-
/**
|
|
8151
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
8152
8152
|
error_code: 'salto_ks_subscription_limit_exceeded'
|
|
8153
8153
|
}
|
|
8154
8154
|
| {
|
|
@@ -8156,7 +8156,7 @@ export interface Routes {
|
|
|
8156
8156
|
created_at: string
|
|
8157
8157
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
8158
8158
|
message: string
|
|
8159
|
-
/**
|
|
8159
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
8160
8160
|
error_code: 'acs_system_disconnected'
|
|
8161
8161
|
}
|
|
8162
8162
|
| {
|
|
@@ -8164,7 +8164,7 @@ export interface Routes {
|
|
|
8164
8164
|
created_at: string
|
|
8165
8165
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
8166
8166
|
message: string
|
|
8167
|
-
/**
|
|
8167
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
8168
8168
|
error_code: 'account_disconnected'
|
|
8169
8169
|
}
|
|
8170
8170
|
>
|
|
@@ -8295,7 +8295,7 @@ export interface Routes {
|
|
|
8295
8295
|
created_at: string
|
|
8296
8296
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
8297
8297
|
message: string
|
|
8298
|
-
/**
|
|
8298
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
8299
8299
|
error_code: 'salto_ks_subscription_limit_exceeded'
|
|
8300
8300
|
}
|
|
8301
8301
|
| {
|
|
@@ -8303,7 +8303,7 @@ export interface Routes {
|
|
|
8303
8303
|
created_at: string
|
|
8304
8304
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
8305
8305
|
message: string
|
|
8306
|
-
/**
|
|
8306
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
8307
8307
|
error_code: 'acs_system_disconnected'
|
|
8308
8308
|
}
|
|
8309
8309
|
| {
|
|
@@ -8311,7 +8311,7 @@ export interface Routes {
|
|
|
8311
8311
|
created_at: string
|
|
8312
8312
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
8313
8313
|
message: string
|
|
8314
|
-
/**
|
|
8314
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
8315
8315
|
error_code: 'account_disconnected'
|
|
8316
8316
|
}
|
|
8317
8317
|
>
|
|
@@ -8442,7 +8442,7 @@ export interface Routes {
|
|
|
8442
8442
|
created_at: string
|
|
8443
8443
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
8444
8444
|
message: string
|
|
8445
|
-
/**
|
|
8445
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
8446
8446
|
error_code: 'salto_ks_subscription_limit_exceeded'
|
|
8447
8447
|
}
|
|
8448
8448
|
| {
|
|
@@ -8450,7 +8450,7 @@ export interface Routes {
|
|
|
8450
8450
|
created_at: string
|
|
8451
8451
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
8452
8452
|
message: string
|
|
8453
|
-
/**
|
|
8453
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
8454
8454
|
error_code: 'acs_system_disconnected'
|
|
8455
8455
|
}
|
|
8456
8456
|
| {
|
|
@@ -8458,7 +8458,7 @@ export interface Routes {
|
|
|
8458
8458
|
created_at: string
|
|
8459
8459
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
8460
8460
|
message: string
|
|
8461
|
-
/**
|
|
8461
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
8462
8462
|
error_code: 'account_disconnected'
|
|
8463
8463
|
}
|
|
8464
8464
|
>
|
|
@@ -13749,6 +13749,8 @@ export interface Routes {
|
|
|
13749
13749
|
| 'acs_user.deleted'
|
|
13750
13750
|
| 'acs_credential.deleted'
|
|
13751
13751
|
| 'acs_credential.issued'
|
|
13752
|
+
| 'acs_encoder.added'
|
|
13753
|
+
| 'acs_encoder.removed'
|
|
13752
13754
|
| 'enrollment_automation.deleted'
|
|
13753
13755
|
| 'client_session.deleted'
|
|
13754
13756
|
| 'action_attempt.lock_door.succeeded'
|
|
@@ -13821,6 +13823,8 @@ export interface Routes {
|
|
|
13821
13823
|
| 'acs_user.deleted'
|
|
13822
13824
|
| 'acs_credential.deleted'
|
|
13823
13825
|
| 'acs_credential.issued'
|
|
13826
|
+
| 'acs_encoder.added'
|
|
13827
|
+
| 'acs_encoder.removed'
|
|
13824
13828
|
| 'enrollment_automation.deleted'
|
|
13825
13829
|
| 'client_session.deleted'
|
|
13826
13830
|
| 'action_attempt.lock_door.succeeded'
|
|
@@ -31777,7 +31781,7 @@ export interface Routes {
|
|
|
31777
31781
|
created_at: string
|
|
31778
31782
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
31779
31783
|
message: string
|
|
31780
|
-
/**
|
|
31784
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
31781
31785
|
error_code: 'salto_ks_subscription_limit_exceeded'
|
|
31782
31786
|
}
|
|
31783
31787
|
| {
|
|
@@ -31785,7 +31789,7 @@ export interface Routes {
|
|
|
31785
31789
|
created_at: string
|
|
31786
31790
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
31787
31791
|
message: string
|
|
31788
|
-
/**
|
|
31792
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
31789
31793
|
error_code: 'acs_system_disconnected'
|
|
31790
31794
|
}
|
|
31791
31795
|
| {
|
|
@@ -31793,7 +31797,7 @@ export interface Routes {
|
|
|
31793
31797
|
created_at: string
|
|
31794
31798
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
31795
31799
|
message: string
|
|
31796
|
-
/**
|
|
31800
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
31797
31801
|
error_code: 'account_disconnected'
|
|
31798
31802
|
}
|
|
31799
31803
|
>
|