@seamapi/types 1.917.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.
Files changed (37) hide show
  1. package/dist/connect.cjs +492 -186
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +115 -8
  4. package/dist/index.cjs +492 -186
  5. package/dist/index.cjs.map +1 -1
  6. package/lib/seam/connect/models/access-codes/managed-access-code.js +78 -44
  7. package/lib/seam/connect/models/access-codes/managed-access-code.js.map +1 -1
  8. package/lib/seam/connect/models/acs/acs-access-group.js +7 -4
  9. package/lib/seam/connect/models/acs/acs-access-group.js.map +1 -1
  10. package/lib/seam/connect/models/acs/acs-encoder.js +7 -3
  11. package/lib/seam/connect/models/acs/acs-encoder.js.map +1 -1
  12. package/lib/seam/connect/models/acs/acs-system.js +58 -31
  13. package/lib/seam/connect/models/acs/acs-system.js.map +1 -1
  14. package/lib/seam/connect/models/acs/acs-users/acs-user.js +42 -24
  15. package/lib/seam/connect/models/acs/acs-users/acs-user.js.map +1 -1
  16. package/lib/seam/connect/models/connected-accounts/connected-account.js +29 -19
  17. package/lib/seam/connect/models/connected-accounts/connected-account.js.map +1 -1
  18. package/lib/seam/connect/models/devices/device.js +51 -27
  19. package/lib/seam/connect/models/devices/device.js.map +1 -1
  20. package/lib/seam/connect/models/events/devices.d.ts +30 -8
  21. package/lib/seam/connect/models/events/devices.js +25 -0
  22. package/lib/seam/connect/models/events/devices.js.map +1 -1
  23. package/lib/seam/connect/models/events/seam-event.d.ts +15 -4
  24. package/lib/seam/connect/openapi.js +138 -4
  25. package/lib/seam/connect/openapi.js.map +1 -1
  26. package/lib/seam/connect/route-types.d.ts +100 -4
  27. package/package.json +1 -1
  28. package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +136 -114
  29. package/src/lib/seam/connect/models/acs/acs-access-group.ts +10 -9
  30. package/src/lib/seam/connect/models/acs/acs-encoder.ts +7 -5
  31. package/src/lib/seam/connect/models/acs/acs-system.ts +73 -56
  32. package/src/lib/seam/connect/models/acs/acs-users/acs-user.ts +48 -40
  33. package/src/lib/seam/connect/models/connected-accounts/connected-account.ts +78 -73
  34. package/src/lib/seam/connect/models/devices/device.ts +70 -46
  35. package/src/lib/seam/connect/models/events/devices.ts +25 -0
  36. package/src/lib/seam/connect/openapi.ts +142 -4
  37. package/src/lib/seam/connect/route-types.ts +100 -4
@@ -47790,7 +47790,7 @@ export type Routes = {
47790
47790
  /** Date and time at which the event occurred. */
47791
47791
  occurred_at: string;
47792
47792
  /** ID of the affected device. */
47793
- device_id: string;
47793
+ device_id?: string | undefined;
47794
47794
  /** ID of the connected account associated with the event. */
47795
47795
  connected_account_id: string;
47796
47796
  /** The customer key associated with the device, if any. */
@@ -47806,6 +47806,30 @@ export type Routes = {
47806
47806
  event_type: 'lock.access_denied';
47807
47807
  /** ID of the access code that was used in the unlock attempts. */
47808
47808
  access_code_id?: string | undefined;
47809
+ /**
47810
+ undocumented: Unreleased.
47811
+ ---
47812
+ ID of the user identity associated with the access-denied event.
47813
+ */
47814
+ user_identity_id?: string | undefined;
47815
+ /**
47816
+ undocumented: Unreleased.
47817
+ ---
47818
+ ID of the ACS system associated with the access-denied event.
47819
+ */
47820
+ acs_system_id?: string | undefined;
47821
+ /**
47822
+ undocumented: Unreleased.
47823
+ ---
47824
+ ID of the ACS user associated with the access-denied event.
47825
+ */
47826
+ acs_user_id?: string | undefined;
47827
+ /**
47828
+ undocumented: Unreleased.
47829
+ ---
47830
+ ID of the ACS entrance associated with the access-denied event.
47831
+ */
47832
+ acs_entrance_id?: string | undefined;
47809
47833
  } | {
47810
47834
  /** ID of the event. */
47811
47835
  event_id: string;
@@ -50766,7 +50790,7 @@ export type Routes = {
50766
50790
  /** Date and time at which the event occurred. */
50767
50791
  occurred_at: string;
50768
50792
  /** ID of the affected device. */
50769
- device_id: string;
50793
+ device_id?: string | undefined;
50770
50794
  /** ID of the connected account associated with the event. */
50771
50795
  connected_account_id: string;
50772
50796
  /** The customer key associated with the device, if any. */
@@ -50782,6 +50806,30 @@ export type Routes = {
50782
50806
  event_type: 'lock.access_denied';
50783
50807
  /** ID of the access code that was used in the unlock attempts. */
50784
50808
  access_code_id?: string | undefined;
50809
+ /**
50810
+ undocumented: Unreleased.
50811
+ ---
50812
+ ID of the user identity associated with the access-denied event.
50813
+ */
50814
+ user_identity_id?: string | undefined;
50815
+ /**
50816
+ undocumented: Unreleased.
50817
+ ---
50818
+ ID of the ACS system associated with the access-denied event.
50819
+ */
50820
+ acs_system_id?: string | undefined;
50821
+ /**
50822
+ undocumented: Unreleased.
50823
+ ---
50824
+ ID of the ACS user associated with the access-denied event.
50825
+ */
50826
+ acs_user_id?: string | undefined;
50827
+ /**
50828
+ undocumented: Unreleased.
50829
+ ---
50830
+ ID of the ACS entrance associated with the access-denied event.
50831
+ */
50832
+ acs_entrance_id?: string | undefined;
50785
50833
  } | {
50786
50834
  /** ID of the event. */
50787
50835
  event_id: string;
@@ -79578,7 +79626,7 @@ export type Routes = {
79578
79626
  /** Date and time at which the event occurred. */
79579
79627
  occurred_at: string;
79580
79628
  /** ID of the affected device. */
79581
- device_id: string;
79629
+ device_id?: string | undefined;
79582
79630
  /** ID of the connected account associated with the event. */
79583
79631
  connected_account_id: string;
79584
79632
  /** The customer key associated with the device, if any. */
@@ -79594,6 +79642,30 @@ export type Routes = {
79594
79642
  event_type: 'lock.access_denied';
79595
79643
  /** ID of the access code that was used in the unlock attempts. */
79596
79644
  access_code_id?: string | undefined;
79645
+ /**
79646
+ undocumented: Unreleased.
79647
+ ---
79648
+ ID of the user identity associated with the access-denied event.
79649
+ */
79650
+ user_identity_id?: string | undefined;
79651
+ /**
79652
+ undocumented: Unreleased.
79653
+ ---
79654
+ ID of the ACS system associated with the access-denied event.
79655
+ */
79656
+ acs_system_id?: string | undefined;
79657
+ /**
79658
+ undocumented: Unreleased.
79659
+ ---
79660
+ ID of the ACS user associated with the access-denied event.
79661
+ */
79662
+ acs_user_id?: string | undefined;
79663
+ /**
79664
+ undocumented: Unreleased.
79665
+ ---
79666
+ ID of the ACS entrance associated with the access-denied event.
79667
+ */
79668
+ acs_entrance_id?: string | undefined;
79597
79669
  } | {
79598
79670
  /** ID of the event. */
79599
79671
  event_id: string;
@@ -116711,7 +116783,7 @@ export type Routes = {
116711
116783
  /** Date and time at which the event occurred. */
116712
116784
  occurred_at: string;
116713
116785
  /** ID of the affected device. */
116714
- device_id: string;
116786
+ device_id?: string | undefined;
116715
116787
  /** ID of the connected account associated with the event. */
116716
116788
  connected_account_id: string;
116717
116789
  /** The customer key associated with the device, if any. */
@@ -116727,6 +116799,30 @@ export type Routes = {
116727
116799
  event_type: 'lock.access_denied';
116728
116800
  /** ID of the access code that was used in the unlock attempts. */
116729
116801
  access_code_id?: string | undefined;
116802
+ /**
116803
+ undocumented: Unreleased.
116804
+ ---
116805
+ ID of the user identity associated with the access-denied event.
116806
+ */
116807
+ user_identity_id?: string | undefined;
116808
+ /**
116809
+ undocumented: Unreleased.
116810
+ ---
116811
+ ID of the ACS system associated with the access-denied event.
116812
+ */
116813
+ acs_system_id?: string | undefined;
116814
+ /**
116815
+ undocumented: Unreleased.
116816
+ ---
116817
+ ID of the ACS user associated with the access-denied event.
116818
+ */
116819
+ acs_user_id?: string | undefined;
116820
+ /**
116821
+ undocumented: Unreleased.
116822
+ ---
116823
+ ID of the ACS entrance associated with the access-denied event.
116824
+ */
116825
+ acs_entrance_id?: string | undefined;
116730
116826
  } | {
116731
116827
  /** ID of the event. */
116732
116828
  event_id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.917.0",
3
+ "version": "1.919.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -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
- .extend({
27
- error_code: z.literal('provider_issue').describe(error_code_description),
28
- })
29
- .describe(
30
- 'Indicates a provider-specific issue that prevents the access code from being set or managed. Check the error message for details.',
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
- .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
- })
61
- .describe(
62
- 'Code was modified or removed externally after Seam successfully set it on the device.',
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 failed_to_remove_from_device = common_access_code_error
74
- .extend({
75
- error_code: z
76
- .literal('failed_to_remove_from_device')
77
- .describe(error_code_description),
78
- })
79
- .describe('Failed to remove code from device.')
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 duplicate_code_on_device = common_access_code_error
82
- .extend({
83
- error_code: z
84
- .literal('duplicate_code_on_device')
85
- .describe(error_code_description),
86
- unmanaged_access_code_id: z
87
- .string()
88
- .uuid()
89
- .optional()
90
- .describe(
91
- 'ID of the unmanaged access code that conflicts with this managed access code, when Seam can identify it.',
92
- ),
93
- managed_access_code_id: z
94
- .string()
95
- .uuid()
96
- .optional()
97
- .describe(
98
- 'ID of the managed access code that conflicts with this managed access code, when Seam can identify it.',
99
- ),
100
- })
101
- .describe('Duplicate access code detected on device.')
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
- .extend({
105
- error_code: z
106
- .literal('duplicate_code_attempt_prevented')
107
- .describe(error_code_description),
108
- })
109
- .describe('An attempt to modify this access code was prevented.')
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
- .extend({
113
- error_code: z
114
- .literal('no_space_for_access_code_on_device')
115
- .describe(error_code_description),
116
- })
117
- .describe('No space for access code on device.')
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
- .extend({
121
- error_code: z
122
- .literal('access_code_state_unconfirmed')
123
- .describe(error_code_description),
124
- })
125
- .describe(
126
- 'Indicates that the provider cannot confirm whether the access code was set or removed on the device.',
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
- .extend({
131
- error_code: z
132
- .literal('insufficient_permissions')
133
- .describe(error_code_description),
134
- })
135
- .describe(
136
- '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.',
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
- .extend({
141
- error_code: z
142
- .literal('access_code_inactive')
143
- .describe(error_code_description),
144
- })
145
- .describe(
146
- 'Indicates that the access code is disabled or inactive on the device. The code exists but will not grant access until re-enabled.',
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
- .extend({
166
- error_code: z
167
- .literal('replaced_by_newer_access_code')
168
- .describe(error_code_description),
169
- })
170
- .describe(
171
- 'This access code was overridden on the device by a newer access code programmed to the same slot.',
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
- .extend({
40
- error_code: z
41
- .literal('failed_to_create_on_acs_system')
42
- .describe(error_code_description),
43
- })
44
- .describe(
45
- `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).`,
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
- acs_encoder_removed
25
- // ])
26
- .describe(
27
- 'Error associated with the [encoder](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners).',
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
- .describe(`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.
61
- This error might also occur if Seam Bridge is connected to the wrong [workspace](https://docs.seam.co/core-concepts/workspaces).
62
- 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).`)
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
- .describe(`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.
74
- 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).`)
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
- .describe(`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).
82
- 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).
83
- 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).`)
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
- .extend({
87
- error_code: z
88
- .literal('salto_ks_subscription_limit_exceeded')
89
- .describe(error_code_description),
90
- })
91
- .describe(
92
- '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.',
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
- .extend({
97
- error_code: z
98
- .literal('acs_system_disconnected')
99
- .describe(error_code_description),
100
- })
101
- .describe(
102
- '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.',
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
- .extend({
107
- error_code: z
108
- .literal('account_disconnected')
109
- .describe(error_code_description),
110
- })
111
- .describe(
112
- '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.',
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
- .extend({
117
- error_code: z
118
- .literal('salto_ks_certification_expired')
119
- .describe(error_code_description),
120
- })
121
- .describe(
122
- '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.',
123
- )
124
- const provider_service_unavailable = common_acs_system_error
125
- .extend({
126
- error_code: z
127
- .literal('provider_service_unavailable')
128
- .describe(error_code_description),
129
- })
130
- .describe(
131
- "Indicates that the access control system provider's service is temporarily unavailable. Seam will automatically retry and reconnect when the service becomes available again.",
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', [