@seamapi/types 1.918.0 → 1.919.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 +450 -184
- package/dist/connect.cjs.map +1 -1
- package/dist/index.cjs +450 -184
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/access-codes/managed-access-code.js +78 -44
- package/lib/seam/connect/models/access-codes/managed-access-code.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-access-group.js +7 -4
- package/lib/seam/connect/models/acs/acs-access-group.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-encoder.js +7 -3
- package/lib/seam/connect/models/acs/acs-encoder.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-system.js +58 -31
- package/lib/seam/connect/models/acs/acs-system.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-users/acs-user.js +42 -24
- package/lib/seam/connect/models/acs/acs-users/acs-user.js.map +1 -1
- package/lib/seam/connect/models/connected-accounts/connected-account.js +29 -19
- package/lib/seam/connect/models/connected-accounts/connected-account.js.map +1 -1
- package/lib/seam/connect/models/devices/device.js +51 -27
- package/lib/seam/connect/models/devices/device.js.map +1 -1
- package/lib/seam/connect/openapi.js +118 -3
- package/lib/seam/connect/openapi.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +136 -114
- package/src/lib/seam/connect/models/acs/acs-access-group.ts +10 -9
- package/src/lib/seam/connect/models/acs/acs-encoder.ts +7 -5
- package/src/lib/seam/connect/models/acs/acs-system.ts +73 -56
- package/src/lib/seam/connect/models/acs/acs-users/acs-user.ts +48 -40
- package/src/lib/seam/connect/models/connected-accounts/connected-account.ts +78 -73
- package/src/lib/seam/connect/models/devices/device.ts +70 -46
- package/src/lib/seam/connect/openapi.ts +118 -3
package/package.json
CHANGED
|
@@ -22,13 +22,14 @@ const common_access_code_error = z.object({
|
|
|
22
22
|
const error_code_description =
|
|
23
23
|
'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.'
|
|
24
24
|
|
|
25
|
-
const provider_issue = common_access_code_error
|
|
26
|
-
.
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
25
|
+
const provider_issue = common_access_code_error.extend({
|
|
26
|
+
error_code: z.literal('provider_issue').describe(error_code_description),
|
|
27
|
+
}).describe(`
|
|
28
|
+
---
|
|
29
|
+
resource_type: access_code
|
|
30
|
+
---
|
|
31
|
+
Indicates a provider-specific issue that prevents the access code from being set or managed. Check the error message for details.
|
|
32
|
+
`)
|
|
32
33
|
|
|
33
34
|
const modified_field = z.object({
|
|
34
35
|
field: z
|
|
@@ -40,111 +41,130 @@ const modified_field = z.object({
|
|
|
40
41
|
to: z.string().nullable().describe('The new value of the field.'),
|
|
41
42
|
})
|
|
42
43
|
|
|
43
|
-
const code_modified_external_to_seam_error = common_access_code_error
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
.
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
.
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
const failed_to_set_on_device = common_access_code_error
|
|
66
|
-
.extend({
|
|
67
|
-
error_code: z
|
|
68
|
-
.literal('failed_to_set_on_device')
|
|
69
|
-
.describe(error_code_description),
|
|
70
|
-
})
|
|
71
|
-
.describe('Failed to set code on device.')
|
|
44
|
+
const code_modified_external_to_seam_error = common_access_code_error.extend({
|
|
45
|
+
error_code: z
|
|
46
|
+
.literal('code_modified_external_to_seam')
|
|
47
|
+
.describe(error_code_description),
|
|
48
|
+
change_type: z
|
|
49
|
+
.enum(['modified', 'removed'])
|
|
50
|
+
.optional()
|
|
51
|
+
.describe(
|
|
52
|
+
"Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device.",
|
|
53
|
+
),
|
|
54
|
+
modified_fields: z
|
|
55
|
+
.array(modified_field)
|
|
56
|
+
.optional()
|
|
57
|
+
.describe(
|
|
58
|
+
'List of fields that were changed externally, with their previous and new values.',
|
|
59
|
+
),
|
|
60
|
+
}).describe(`
|
|
61
|
+
---
|
|
62
|
+
resource_type: access_code
|
|
63
|
+
---
|
|
64
|
+
Code was modified or removed externally after Seam successfully set it on the device.
|
|
65
|
+
`)
|
|
72
66
|
|
|
73
|
-
const
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
67
|
+
const failed_to_set_on_device = common_access_code_error.extend({
|
|
68
|
+
error_code: z
|
|
69
|
+
.literal('failed_to_set_on_device')
|
|
70
|
+
.describe(error_code_description),
|
|
71
|
+
}).describe(`
|
|
72
|
+
---
|
|
73
|
+
resource_type: access_code
|
|
74
|
+
---
|
|
75
|
+
Failed to set code on device.
|
|
76
|
+
`)
|
|
80
77
|
|
|
81
|
-
const
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
78
|
+
const failed_to_remove_from_device = common_access_code_error.extend({
|
|
79
|
+
error_code: z
|
|
80
|
+
.literal('failed_to_remove_from_device')
|
|
81
|
+
.describe(error_code_description),
|
|
82
|
+
}).describe(`
|
|
83
|
+
---
|
|
84
|
+
resource_type: access_code
|
|
85
|
+
---
|
|
86
|
+
Failed to remove code from device.
|
|
87
|
+
`)
|
|
88
|
+
|
|
89
|
+
const duplicate_code_on_device = common_access_code_error.extend({
|
|
90
|
+
error_code: z
|
|
91
|
+
.literal('duplicate_code_on_device')
|
|
92
|
+
.describe(error_code_description),
|
|
93
|
+
unmanaged_access_code_id: z
|
|
94
|
+
.string()
|
|
95
|
+
.uuid()
|
|
96
|
+
.optional()
|
|
97
|
+
.describe(
|
|
98
|
+
'ID of the unmanaged access code that conflicts with this managed access code, when Seam can identify it.',
|
|
99
|
+
),
|
|
100
|
+
managed_access_code_id: z
|
|
101
|
+
.string()
|
|
102
|
+
.uuid()
|
|
103
|
+
.optional()
|
|
104
|
+
.describe(
|
|
105
|
+
'ID of the managed access code that conflicts with this managed access code, when Seam can identify it.',
|
|
106
|
+
),
|
|
107
|
+
}).describe(`
|
|
108
|
+
---
|
|
109
|
+
resource_type: access_code
|
|
110
|
+
---
|
|
111
|
+
Duplicate access code detected on device.
|
|
112
|
+
`)
|
|
102
113
|
|
|
103
|
-
const duplicate_code_attempt_prevented = common_access_code_error
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
114
|
+
const duplicate_code_attempt_prevented = common_access_code_error.extend({
|
|
115
|
+
error_code: z
|
|
116
|
+
.literal('duplicate_code_attempt_prevented')
|
|
117
|
+
.describe(error_code_description),
|
|
118
|
+
}).describe(`
|
|
119
|
+
---
|
|
120
|
+
resource_type: access_code
|
|
121
|
+
---
|
|
122
|
+
An attempt to modify this access code was prevented.
|
|
123
|
+
`)
|
|
110
124
|
|
|
111
|
-
const no_space_for_access_code_on_device = common_access_code_error
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
125
|
+
const no_space_for_access_code_on_device = common_access_code_error.extend({
|
|
126
|
+
error_code: z
|
|
127
|
+
.literal('no_space_for_access_code_on_device')
|
|
128
|
+
.describe(error_code_description),
|
|
129
|
+
}).describe(`
|
|
130
|
+
---
|
|
131
|
+
resource_type: access_code
|
|
132
|
+
---
|
|
133
|
+
No space for access code on device.
|
|
134
|
+
`)
|
|
118
135
|
|
|
119
|
-
const access_code_state_unconfirmed = common_access_code_error
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
136
|
+
const access_code_state_unconfirmed = common_access_code_error.extend({
|
|
137
|
+
error_code: z
|
|
138
|
+
.literal('access_code_state_unconfirmed')
|
|
139
|
+
.describe(error_code_description),
|
|
140
|
+
}).describe(`
|
|
141
|
+
---
|
|
142
|
+
resource_type: access_code
|
|
143
|
+
---
|
|
144
|
+
Indicates that the provider cannot confirm whether the access code was set or removed on the device.
|
|
145
|
+
`)
|
|
128
146
|
|
|
129
|
-
const insufficient_permissions = common_access_code_error
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
147
|
+
const insufficient_permissions = common_access_code_error.extend({
|
|
148
|
+
error_code: z
|
|
149
|
+
.literal('insufficient_permissions')
|
|
150
|
+
.describe(error_code_description),
|
|
151
|
+
}).describe(`
|
|
152
|
+
---
|
|
153
|
+
resource_type: access_code
|
|
154
|
+
---
|
|
155
|
+
Admin role required—insufficient permissions to manage PINs on this device. Please have an admin update your role, or ask them to set the PIN.
|
|
156
|
+
`)
|
|
138
157
|
|
|
139
|
-
const access_code_inactive_error = common_access_code_error
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
158
|
+
const access_code_inactive_error = common_access_code_error.extend({
|
|
159
|
+
error_code: z
|
|
160
|
+
.literal('access_code_inactive')
|
|
161
|
+
.describe(error_code_description),
|
|
162
|
+
}).describe(`
|
|
163
|
+
---
|
|
164
|
+
resource_type: access_code
|
|
165
|
+
---
|
|
166
|
+
Indicates that the access code is disabled or inactive on the device. The code exists but will not grant access until re-enabled.
|
|
167
|
+
`)
|
|
148
168
|
|
|
149
169
|
const salto_ks_user_not_subscribed = common_access_code_error
|
|
150
170
|
.extend({
|
|
@@ -155,21 +175,23 @@ const salto_ks_user_not_subscribed = common_access_code_error
|
|
|
155
175
|
.describe(
|
|
156
176
|
`
|
|
157
177
|
---
|
|
178
|
+
resource_type: access_code
|
|
158
179
|
deprecated: Use \`access_code_inactive\` instead.
|
|
159
180
|
---
|
|
160
181
|
Salto site user is not subscribed.
|
|
161
182
|
`,
|
|
162
183
|
)
|
|
163
184
|
|
|
164
|
-
const replaced_by_newer_access_code = common_access_code_error
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
185
|
+
const replaced_by_newer_access_code = common_access_code_error.extend({
|
|
186
|
+
error_code: z
|
|
187
|
+
.literal('replaced_by_newer_access_code')
|
|
188
|
+
.describe(error_code_description),
|
|
189
|
+
}).describe(`
|
|
190
|
+
---
|
|
191
|
+
resource_type: access_code
|
|
192
|
+
---
|
|
193
|
+
This access code was overridden on the device by a newer access code programmed to the same slot.
|
|
194
|
+
`)
|
|
173
195
|
|
|
174
196
|
const access_code_error = z
|
|
175
197
|
.discriminatedUnion('error_code', [
|
|
@@ -35,15 +35,16 @@ const error_code_description =
|
|
|
35
35
|
'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.'
|
|
36
36
|
|
|
37
37
|
const acs_access_groups_failed_to_create_on_acs_system =
|
|
38
|
-
common_acs_access_group_error
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
)
|
|
38
|
+
common_acs_access_group_error.extend({
|
|
39
|
+
error_code: z
|
|
40
|
+
.literal('failed_to_create_on_acs_system')
|
|
41
|
+
.describe(error_code_description),
|
|
42
|
+
}).describe(`
|
|
43
|
+
---
|
|
44
|
+
resource_type: acs_access_group
|
|
45
|
+
---
|
|
46
|
+
Indicates that the [access group](https://docs.seam.co/low-level-apis/access-systems/user-management/assigning-users-to-access-groups) was not created on the [access system](https://docs.seam.co/low-level-apis/access-systems). This is likely due to an internal unexpected error. Contact Seam [support](mailto:support@seam.co).
|
|
47
|
+
`)
|
|
47
48
|
|
|
48
49
|
const acs_access_group_errors = z
|
|
49
50
|
.discriminatedUnion('error_code', [
|
|
@@ -21,11 +21,13 @@ const acs_encoder_removed = common_acs_encoder_error.extend({
|
|
|
21
21
|
|
|
22
22
|
const acs_encoder_error =
|
|
23
23
|
// z.union([
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
// ])
|
|
25
|
+
acs_encoder_removed.describe(`
|
|
26
|
+
---
|
|
27
|
+
resource_type: acs_encoder
|
|
28
|
+
---
|
|
29
|
+
Error associated with the [encoder](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners).
|
|
30
|
+
`)
|
|
29
31
|
|
|
30
32
|
const _acs_encoder_error_map = z.object({
|
|
31
33
|
acs_encoder_removed: acs_encoder_removed.optional().nullable(),
|
|
@@ -56,10 +56,14 @@ const seam_bridge_disconnected = common_acs_system_error.extend({
|
|
|
56
56
|
error_code: z
|
|
57
57
|
.literal('seam_bridge_disconnected')
|
|
58
58
|
.describe(error_code_description),
|
|
59
|
-
})
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
59
|
+
}).describe(`
|
|
60
|
+
---
|
|
61
|
+
resource_type: acs_system
|
|
62
|
+
---
|
|
63
|
+
Indicates that the Seam API cannot communicate with [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge), for example, if Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline.
|
|
64
|
+
This error might also occur if Seam Bridge is connected to the wrong [workspace](https://docs.seam.co/core-concepts/workspaces).
|
|
65
|
+
See also [Troubleshooting Your Access Control System](https://docs.seam.co/low-level-apis/access-systems/troubleshooting-your-access-control-system#acs_system.errors.seam_bridge_disconnected).
|
|
66
|
+
`)
|
|
63
67
|
|
|
64
68
|
const bridge_disconnected = common_acs_system_error.extend({
|
|
65
69
|
error_code: z.literal('bridge_disconnected').describe(error_code_description),
|
|
@@ -69,67 +73,80 @@ const bridge_disconnected = common_acs_system_error.extend({
|
|
|
69
73
|
.describe(
|
|
70
74
|
'Indicates whether the error is related to the [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge).',
|
|
71
75
|
),
|
|
72
|
-
})
|
|
73
|
-
|
|
74
|
-
|
|
76
|
+
}).describe(`
|
|
77
|
+
---
|
|
78
|
+
resource_type: acs_system
|
|
79
|
+
---
|
|
80
|
+
Indicates that the Seam API cannot communicate with [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge), for example, if Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline.
|
|
81
|
+
See also [Troubleshooting Your Access Control System](https://docs.seam.co/low-level-apis/access-systems/troubleshooting-your-access-control-system#acs_system.errors.seam_bridge_disconnected).
|
|
82
|
+
`)
|
|
75
83
|
|
|
76
84
|
const visionline_instance_unreachable = common_acs_system_error.extend({
|
|
77
85
|
error_code: z
|
|
78
86
|
.literal('visionline_instance_unreachable')
|
|
79
87
|
.describe(error_code_description),
|
|
80
|
-
})
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
88
|
+
}).describe(`
|
|
89
|
+
---
|
|
90
|
+
resource_type: acs_system
|
|
91
|
+
---
|
|
92
|
+
Indicates that [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge) is functioning correctly and the Seam API can communicate with Seam Bridge, but the Seam API cannot connect to the on-premises [Visionline access control system](https://docs.seam.co/device-and-system-integration-guides/assa-abloy-visionline-access-control-system).
|
|
93
|
+
For example, the IP address of the on-premises access control system may be set incorrectly within the Seam [workspace](https://docs.seam.co/core-concepts/workspaces).
|
|
94
|
+
See also [Troubleshooting Your Access Control System](https://docs.seam.co/low-level-apis/access-systems/troubleshooting-your-access-control-system#acs_system.errors.visionline_instance_unreachable).
|
|
95
|
+
`)
|
|
84
96
|
|
|
85
|
-
const salto_ks_subscription_limit_exceeded = common_acs_system_error
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
97
|
+
const salto_ks_subscription_limit_exceeded = common_acs_system_error.extend({
|
|
98
|
+
error_code: z
|
|
99
|
+
.literal('salto_ks_subscription_limit_exceeded')
|
|
100
|
+
.describe(error_code_description),
|
|
101
|
+
}).describe(`
|
|
102
|
+
---
|
|
103
|
+
resource_type: acs_system
|
|
104
|
+
---
|
|
105
|
+
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.
|
|
106
|
+
`)
|
|
94
107
|
|
|
95
|
-
const acs_system_disconnected = common_acs_system_error
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
108
|
+
const acs_system_disconnected = common_acs_system_error.extend({
|
|
109
|
+
error_code: z
|
|
110
|
+
.literal('acs_system_disconnected')
|
|
111
|
+
.describe(error_code_description),
|
|
112
|
+
}).describe(`
|
|
113
|
+
---
|
|
114
|
+
resource_type: acs_system
|
|
115
|
+
---
|
|
116
|
+
Indicates that the [access control system](https://docs.seam.co/low-level-apis/access-systems) has been disconnected. See [Troubleshooting Your Access Control System](https://docs.seam.co/low-level-apis/access-systems/troubleshooting-your-access-control-system) to resolve the issue.
|
|
117
|
+
`)
|
|
104
118
|
|
|
105
|
-
const account_disconnected = common_acs_system_error
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
119
|
+
const account_disconnected = common_acs_system_error.extend({
|
|
120
|
+
error_code: z
|
|
121
|
+
.literal('account_disconnected')
|
|
122
|
+
.describe(error_code_description),
|
|
123
|
+
}).describe(`
|
|
124
|
+
---
|
|
125
|
+
resource_type: acs_system
|
|
126
|
+
---
|
|
127
|
+
Indicates that the login credentials are invalid. Reconnect the account using a [Connect Webview](https://docs.seam.co/core-concepts/connect-webviews) to restore access.
|
|
128
|
+
`)
|
|
114
129
|
|
|
115
|
-
const salto_ks_certification_expired = common_acs_system_error
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
130
|
+
const salto_ks_certification_expired = common_acs_system_error.extend({
|
|
131
|
+
error_code: z
|
|
132
|
+
.literal('salto_ks_certification_expired')
|
|
133
|
+
.describe(error_code_description),
|
|
134
|
+
}).describe(`
|
|
135
|
+
---
|
|
136
|
+
resource_type: acs_system
|
|
137
|
+
---
|
|
138
|
+
Indicates that the [access control system](https://docs.seam.co/low-level-apis/access-systems) has lost its Salto KS certification. Contact [support](mailto:support@seam.co) to regain access.
|
|
139
|
+
`)
|
|
140
|
+
const provider_service_unavailable = common_acs_system_error.extend({
|
|
141
|
+
error_code: z
|
|
142
|
+
.literal('provider_service_unavailable')
|
|
143
|
+
.describe(error_code_description),
|
|
144
|
+
}).describe(`
|
|
145
|
+
---
|
|
146
|
+
resource_type: acs_system
|
|
147
|
+
---
|
|
148
|
+
Indicates that the access control system provider's service is temporarily unavailable. Seam will automatically retry and reconnect when the service becomes available again.
|
|
149
|
+
`)
|
|
133
150
|
|
|
134
151
|
const acs_system_error = z
|
|
135
152
|
.discriminatedUnion('error_code', [
|
|
@@ -30,53 +30,61 @@ const common_acs_user_error = z.object({
|
|
|
30
30
|
),
|
|
31
31
|
})
|
|
32
32
|
|
|
33
|
-
const acs_users_deleted_externally = common_acs_user_error
|
|
34
|
-
.
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
33
|
+
const acs_users_deleted_externally = common_acs_user_error.extend({
|
|
34
|
+
error_code: z.literal('deleted_externally'),
|
|
35
|
+
}).describe(`
|
|
36
|
+
---
|
|
37
|
+
resource_type: acs_user
|
|
38
|
+
---
|
|
39
|
+
Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) was deleted from the [access system](https://docs.seam.co/low-level-apis/access-systems) outside of Seam.
|
|
40
|
+
`)
|
|
40
41
|
|
|
41
|
-
const acs_users_salto_ks_subscription_limit_exceeded =
|
|
42
|
-
.extend({
|
|
42
|
+
const acs_users_salto_ks_subscription_limit_exceeded =
|
|
43
|
+
common_acs_user_error.extend({
|
|
43
44
|
error_code: z.literal('salto_ks_subscription_limit_exceeded'),
|
|
44
|
-
})
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
}).describe(`
|
|
46
|
+
---
|
|
47
|
+
resource_type: acs_user
|
|
48
|
+
---
|
|
49
|
+
Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) could not be subscribed on Salto KS because the subscription limit has been exceeded.
|
|
50
|
+
`)
|
|
48
51
|
|
|
49
|
-
const acs_users_failed_to_create_on_acs_system = common_acs_user_error
|
|
50
|
-
.
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
const acs_users_failed_to_create_on_acs_system = common_acs_user_error.extend({
|
|
53
|
+
error_code: z.literal('failed_to_create_on_acs_system'),
|
|
54
|
+
}).describe(`
|
|
55
|
+
---
|
|
56
|
+
resource_type: acs_user
|
|
57
|
+
---
|
|
58
|
+
Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) was not created on the [access system](https://docs.seam.co/low-level-apis/access-systems). This is likely due to an internal unexpected error. Contact Seam [support](mailto:support@seam.co).
|
|
59
|
+
`)
|
|
56
60
|
|
|
57
|
-
const acs_users_failed_to_update_on_acs_system = common_acs_user_error
|
|
58
|
-
.
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
const acs_users_failed_to_update_on_acs_system = common_acs_user_error.extend({
|
|
62
|
+
error_code: z.literal('failed_to_update_on_acs_system'),
|
|
63
|
+
}).describe(`
|
|
64
|
+
---
|
|
65
|
+
resource_type: acs_user
|
|
66
|
+
---
|
|
67
|
+
Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) was not updated on the [access system](https://docs.seam.co/low-level-apis/access-systems). This is likely due to an internal unexpected error. Contact Seam [support](mailto:support@seam.co).
|
|
68
|
+
`)
|
|
64
69
|
|
|
65
|
-
const acs_users_failed_to_delete_on_acs_system = common_acs_user_error
|
|
66
|
-
.
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
const acs_users_failed_to_delete_on_acs_system = common_acs_user_error.extend({
|
|
71
|
+
error_code: z.literal('failed_to_delete_on_acs_system'),
|
|
72
|
+
}).describe(`
|
|
73
|
+
---
|
|
74
|
+
resource_type: acs_user
|
|
75
|
+
---
|
|
76
|
+
Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) was not deleted on the [access system](https://docs.seam.co/low-level-apis/access-systems). This is likely due to an internal unexpected error. Contact Seam [support](mailto:support@seam.co).
|
|
77
|
+
`)
|
|
72
78
|
|
|
73
|
-
const acs_users_latch_conflict_with_resident_user =
|
|
74
|
-
.extend({
|
|
79
|
+
const acs_users_latch_conflict_with_resident_user =
|
|
80
|
+
common_acs_user_error.extend({
|
|
75
81
|
error_code: z.literal('latch_conflict_with_resident_user'),
|
|
76
|
-
})
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
82
|
+
}).describe(`
|
|
83
|
+
---
|
|
84
|
+
resource_type: acs_user
|
|
85
|
+
---
|
|
86
|
+
Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) was created from the Seam API but also exists on Mission Control. This is unsupported. Contact Seam [support](mailto:support@seam.co).
|
|
87
|
+
`)
|
|
80
88
|
|
|
81
89
|
const acs_user_errors = z
|
|
82
90
|
.discriminatedUnion('error_code', [
|