@seamapi/types 1.360.0 → 1.360.1
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 +899 -569
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +3626 -2951
- package/lib/seam/connect/models/acs/acs-credential.js +94 -51
- package/lib/seam/connect/models/acs/acs-credential.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-encoder.js +12 -7
- package/lib/seam/connect/models/acs/acs-encoder.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-entrance.js +37 -14
- package/lib/seam/connect/models/acs/acs-entrance.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-system.js +48 -41
- package/lib/seam/connect/models/acs/acs-system.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-user.js +45 -32
- package/lib/seam/connect/models/acs/acs-user.js.map +1 -1
- package/lib/seam/connect/models/thermostats/climate-preset.js +12 -10
- package/lib/seam/connect/models/thermostats/climate-preset.js.map +1 -1
- package/lib/seam/connect/models/thermostats/thermostat-schedule.js +19 -12
- package/lib/seam/connect/models/thermostats/thermostat-schedule.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +45 -23
- package/lib/seam/connect/openapi.js +557 -401
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +3581 -2928
- package/package.json +1 -1
- package/src/lib/seam/connect/models/acs/acs-credential.ts +162 -51
- package/src/lib/seam/connect/models/acs/acs-encoder.ts +22 -7
- package/src/lib/seam/connect/models/acs/acs-entrance.ts +65 -18
- package/src/lib/seam/connect/models/acs/acs-system.ts +81 -52
- package/src/lib/seam/connect/models/acs/acs-user.ts +69 -32
- package/src/lib/seam/connect/models/thermostats/climate-preset.ts +28 -10
- package/src/lib/seam/connect/models/thermostats/thermostat-schedule.ts +31 -12
- package/src/lib/seam/connect/openapi.ts +698 -401
- package/src/lib/seam/connect/route-types.ts +3581 -2928
|
@@ -3,25 +3,25 @@ export const acs_system_capability_flags = z.object({
|
|
|
3
3
|
can_automate_enrollment: z
|
|
4
4
|
.boolean()
|
|
5
5
|
.optional()
|
|
6
|
-
.describe('Indicates whether it is possible to [launch enrollment automations](https://docs.seam.co/latest/capability-guides/mobile-access
|
|
6
|
+
.describe('Indicates whether it is possible to [launch enrollment automations](https://docs.seam.co/latest/capability-guides/mobile-access/issuing-mobile-credentials-from-an-access-control-system#prepare-the-phones-for-a-user-identity-to-start-receiving-mobile-credentials-using-an-enrollment-aut) for the [access control system](https://docs.seam.co/latest/capability-guides/access-systems).'),
|
|
7
7
|
can_create_acs_access_groups: z
|
|
8
8
|
.boolean()
|
|
9
9
|
.optional()
|
|
10
|
-
.describe('Indicates whether the
|
|
10
|
+
.describe('Indicates whether the [access control system](https://docs.seam.co/latest/capability-guides/access-systems) supports creating [access groups](https://docs.seam.co/latest/capability-guides/access-systems/assigning-users-to-access-groups). See also [Access Group-based Access Control Systems](https://docs.seam.co/latest/capability-guides/access-systems/understanding-access-control-system-differences#access-group-based-access-control-systems).'),
|
|
11
11
|
can_remove_acs_users_from_acs_access_groups: z
|
|
12
12
|
.boolean()
|
|
13
13
|
.optional()
|
|
14
|
-
.describe('Indicates whether the
|
|
14
|
+
.describe('Indicates whether the [access control system](https://docs.seam.co/latest/capability-guides/access-systems) supports [removing users from access groups](https://docs.seam.co/latest/capability-guides/access-systems/assigning-users-to-access-groups#remove-an-acs-user-from-an-access-group). See also [Access Group-based Access Control Systems](https://docs.seam.co/latest/capability-guides/access-systems/understanding-access-control-system-differences#access-group-based-access-control-systems).'),
|
|
15
15
|
can_add_acs_users_to_acs_access_groups: z
|
|
16
16
|
.boolean()
|
|
17
17
|
.optional()
|
|
18
|
-
.describe('Indicates whether the
|
|
18
|
+
.describe('Indicates whether the [access control system](https://docs.seam.co/latest/capability-guides/access-systems) supports [adding users to access groups](https://docs.seam.co/latest/capability-guides/access-systems/assigning-users-to-access-groups#add-an-acs-user-to-an-access-group). See also [Access Group-based Access Control Systems](https://docs.seam.co/latest/capability-guides/access-systems/understanding-access-control-system-differences#access-group-based-access-control-systems).'),
|
|
19
19
|
});
|
|
20
20
|
export const location = z.object({
|
|
21
21
|
time_zone: z
|
|
22
22
|
.string()
|
|
23
23
|
.nullable()
|
|
24
|
-
.describe('Time zone in which the
|
|
24
|
+
.describe('Time zone in which the [access control system](https://docs.seam.co/latest/capability-guides/access-systems) is located.'),
|
|
25
25
|
});
|
|
26
26
|
// If changed, update seam.acs_system.external_type generated column
|
|
27
27
|
export const acs_system_external_type = z.enum([
|
|
@@ -49,20 +49,21 @@ const common_acs_system_error = z.object({
|
|
|
49
49
|
.describe('Detailed description of the error. Provides insights into the issue and potentially how to rectify it.'),
|
|
50
50
|
});
|
|
51
51
|
const error_code_description = 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.';
|
|
52
|
+
const warning_code_description = 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.';
|
|
52
53
|
const seam_bridge_disconnected = common_acs_system_error.extend({
|
|
53
54
|
error_code: z
|
|
54
55
|
.literal('seam_bridge_disconnected')
|
|
55
56
|
.describe(error_code_description),
|
|
56
57
|
})
|
|
57
|
-
.describe(`Indicates that the Seam API cannot communicate with
|
|
58
|
-
This error might also occur if
|
|
58
|
+
.describe(`Indicates that the Seam API cannot communicate with [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge), for example, if Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline.
|
|
59
|
+
This error might also occur if Seam Bridge is connected to the wrong [workspace](https://docs.seam.co/latest/core-concepts/workspaces).
|
|
59
60
|
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).`);
|
|
60
61
|
const visionline_instance_unreachable = common_acs_system_error.extend({
|
|
61
62
|
error_code: z
|
|
62
63
|
.literal('visionline_instance_unreachable')
|
|
63
64
|
.describe(error_code_description),
|
|
64
65
|
})
|
|
65
|
-
.describe(`Indicates that
|
|
66
|
+
.describe(`Indicates that [Seam Bridge](https://docs.seam.co/latest/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/latest/device-and-system-integration-guides/assa-abloy-visionline-access-control-system).
|
|
66
67
|
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).
|
|
67
68
|
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).`);
|
|
68
69
|
const salto_ks_subscription_limit_exceeded = common_acs_system_error
|
|
@@ -78,19 +79,21 @@ const acs_system_disconnected = common_acs_system_error
|
|
|
78
79
|
.literal('acs_system_disconnected')
|
|
79
80
|
.describe(error_code_description),
|
|
80
81
|
})
|
|
81
|
-
.describe('Indicates that the access system has been disconnected. See [
|
|
82
|
+
.describe('Indicates that the [access control system](https://docs.seam.co/latest/capability-guides/access-systems) has been disconnected. See [Troubleshooting Your Access Control System](https://docs.seam.co/latest/capability-guides/access-systems/troubleshooting-your-access-control-system) to resolve the issue.');
|
|
82
83
|
const account_disconnected = common_acs_system_error
|
|
83
84
|
.extend({
|
|
84
85
|
error_code: z
|
|
85
86
|
.literal('account_disconnected')
|
|
86
87
|
.describe(error_code_description),
|
|
87
88
|
})
|
|
88
|
-
.describe('Indicates that the login credentials are invalid. Reconnect the account using
|
|
89
|
-
const salto_ks_certification_expired = common_acs_system_error
|
|
89
|
+
.describe('Indicates that the login credentials are invalid. Reconnect the account using a [Connect Webview](https://docs.seam.co/latest/ui-components/connect-webviews) to restore access.');
|
|
90
|
+
const salto_ks_certification_expired = common_acs_system_error
|
|
91
|
+
.extend({
|
|
90
92
|
error_code: z
|
|
91
93
|
.literal('salto_ks_certification_expired')
|
|
92
|
-
.describe(
|
|
93
|
-
})
|
|
94
|
+
.describe(error_code_description),
|
|
95
|
+
})
|
|
96
|
+
.describe('Indicates that the [access control system](https://docs.seam.co/latest/capability-guides/access-systems) has lost its Salto KS certification. Contact [support](mailto:support@seam.co) to regain access.');
|
|
94
97
|
const acs_system_error = z
|
|
95
98
|
.discriminatedUnion('error_code', [
|
|
96
99
|
seam_bridge_disconnected,
|
|
@@ -100,7 +103,7 @@ const acs_system_error = z
|
|
|
100
103
|
account_disconnected,
|
|
101
104
|
salto_ks_certification_expired,
|
|
102
105
|
])
|
|
103
|
-
.describe('Error associated with the
|
|
106
|
+
.describe('Error associated with the [access control system](https://docs.seam.co/latest/capability-guides/access-systems).');
|
|
104
107
|
export const acs_system_error_map = z.object({
|
|
105
108
|
seam_bridge_disconnected: seam_bridge_disconnected.optional().nullable(),
|
|
106
109
|
visionline_instance_unreachable: visionline_instance_unreachable
|
|
@@ -124,23 +127,27 @@ const common_acs_system_warning = z.object({
|
|
|
124
127
|
.string()
|
|
125
128
|
.describe('Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.'),
|
|
126
129
|
});
|
|
127
|
-
const salto_ks_subscription_limit_almost_reached = common_acs_system_warning
|
|
130
|
+
const salto_ks_subscription_limit_almost_reached = common_acs_system_warning
|
|
131
|
+
.extend({
|
|
128
132
|
warning_code: z
|
|
129
133
|
.literal('salto_ks_subscription_limit_almost_reached')
|
|
130
|
-
.describe(
|
|
131
|
-
})
|
|
132
|
-
|
|
134
|
+
.describe(warning_code_description),
|
|
135
|
+
})
|
|
136
|
+
.describe('Indicates that the Salto KS site has exceeded 80% of the maximum number of allowed users. Increase your subscription limit or delete some users from your site to rectify the issue.');
|
|
137
|
+
const time_zone_does_not_match_location = common_acs_system_warning
|
|
138
|
+
.extend({
|
|
133
139
|
warning_code: z
|
|
134
140
|
.literal('time_zone_does_not_match_location')
|
|
135
|
-
.describe(
|
|
141
|
+
.describe(warning_code_description),
|
|
136
142
|
misconfigured_acs_entrance_ids: z.array(z.string().uuid()).optional(),
|
|
137
|
-
})
|
|
143
|
+
})
|
|
144
|
+
.describe('Indicates the [access control system](https://docs.seam.co/latest/capability-guides/access-systems) time zone could not be determined because the reported physical location does not match the time zone configured on the physical [ACS entrances](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details).');
|
|
138
145
|
const acs_system_warning = z
|
|
139
146
|
.discriminatedUnion('warning_code', [
|
|
140
147
|
salto_ks_subscription_limit_almost_reached,
|
|
141
148
|
time_zone_does_not_match_location,
|
|
142
149
|
])
|
|
143
|
-
.describe('Warning associated with the
|
|
150
|
+
.describe('Warning associated with the [access control system](https://docs.seam.co/latest/capability-guides/access-systems).');
|
|
144
151
|
export const acs_system_warning_map = z.object({
|
|
145
152
|
salto_ks_subscription_limit_almost_reached: salto_ks_subscription_limit_almost_reached.optional().nullable(),
|
|
146
153
|
time_zone_does_not_match_location: time_zone_does_not_match_location
|
|
@@ -154,23 +161,21 @@ export const acs_system = z
|
|
|
154
161
|
.uuid()
|
|
155
162
|
.nullable()
|
|
156
163
|
.optional()
|
|
157
|
-
.describe(`
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
ID of the
|
|
162
|
-
`),
|
|
163
|
-
acs_system_id: z.string().uuid().describe('ID of the `acs_system`.'),
|
|
164
|
+
.describe('ID of the default credential manager `acs_system` for this [access control system](https://docs.seam.co/latest/capability-guides/access-systems).'),
|
|
165
|
+
acs_system_id: z
|
|
166
|
+
.string()
|
|
167
|
+
.uuid()
|
|
168
|
+
.describe('ID of the [access control system](https://docs.seam.co/latest/capability-guides/access-systems).'),
|
|
164
169
|
external_type: acs_system_external_type
|
|
165
|
-
.describe('Brand-specific terminology for the
|
|
170
|
+
.describe('Brand-specific terminology for the [access control system](https://docs.seam.co/latest/capability-guides/access-systems) type.')
|
|
166
171
|
.optional(),
|
|
167
172
|
external_type_display_name: z
|
|
168
173
|
.string()
|
|
169
|
-
.describe('Display name that corresponds to the brand-specific terminology for the
|
|
174
|
+
.describe('Display name that corresponds to the brand-specific terminology for the [access control system](https://docs.seam.co/latest/capability-guides/access-systems) type.')
|
|
170
175
|
.optional(),
|
|
171
176
|
is_credential_manager: z
|
|
172
177
|
.boolean()
|
|
173
|
-
.describe('Indicates
|
|
178
|
+
.describe('Indicates whether the `acs_system` is a credential manager.'),
|
|
174
179
|
visionline_metadata: z
|
|
175
180
|
.object({
|
|
176
181
|
mobile_access_uuid: z
|
|
@@ -181,7 +186,7 @@ export const acs_system = z
|
|
|
181
186
|
.describe('Unique ID assigned by the ASSA ABLOY licensing team that identifies each hotel in your credential manager.'),
|
|
182
187
|
lan_address: z
|
|
183
188
|
.string()
|
|
184
|
-
.describe('IP address or hostname of the main Visionline server relative to
|
|
189
|
+
.describe('IP address or hostname of the main Visionline server relative to [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge) on the local network.'),
|
|
185
190
|
})
|
|
186
191
|
.optional(),
|
|
187
192
|
system_type: acs_system_external_type
|
|
@@ -197,37 +202,39 @@ export const acs_system = z
|
|
|
197
202
|
---
|
|
198
203
|
`),
|
|
199
204
|
location,
|
|
200
|
-
name: z
|
|
205
|
+
name: z
|
|
206
|
+
.string()
|
|
207
|
+
.describe('Name of the [access control system](https://docs.seam.co/latest/capability-guides/access-systems).'),
|
|
201
208
|
created_at: z
|
|
202
209
|
.string()
|
|
203
210
|
.datetime()
|
|
204
|
-
.describe('Date and time at which the
|
|
211
|
+
.describe('Date and time at which the [access control system](https://docs.seam.co/latest/capability-guides/access-systems) was created.'),
|
|
205
212
|
workspace_id: z
|
|
206
213
|
.string()
|
|
207
214
|
.uuid()
|
|
208
|
-
.describe('ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the
|
|
215
|
+
.describe('ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the [access control system](https://docs.seam.co/latest/capability-guides/access-systems).'),
|
|
209
216
|
connected_account_ids: z.array(z.string().uuid()).describe(`
|
|
210
217
|
---
|
|
211
218
|
deprecated: Use \`connected_account_id\`.
|
|
212
219
|
---
|
|
213
|
-
IDs of the [connected accounts](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the
|
|
220
|
+
IDs of the [connected accounts](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the [access control system](https://docs.seam.co/latest/capability-guides/access-systems).
|
|
214
221
|
`),
|
|
215
222
|
connected_account_id: z
|
|
216
223
|
.string()
|
|
217
224
|
.uuid()
|
|
218
|
-
.describe('ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the
|
|
225
|
+
.describe('ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the [access control system](https://docs.seam.co/latest/capability-guides/access-systems).'),
|
|
219
226
|
image_url: z
|
|
220
227
|
.string()
|
|
221
|
-
.describe('URL for the image that represents the
|
|
228
|
+
.describe('URL for the image that represents the [access control system](https://docs.seam.co/latest/capability-guides/access-systems).'),
|
|
222
229
|
image_alt_text: z
|
|
223
230
|
.string()
|
|
224
|
-
.describe('Alternative text for the
|
|
231
|
+
.describe('Alternative text for the [access control system](https://docs.seam.co/latest/capability-guides/access-systems) image.'),
|
|
225
232
|
errors: z
|
|
226
233
|
.array(acs_system_error)
|
|
227
|
-
.describe('Errors associated with the
|
|
234
|
+
.describe('Errors associated with the [access control system](https://docs.seam.co/latest/capability-guides/access-systems).'),
|
|
228
235
|
warnings: z
|
|
229
236
|
.array(acs_system_warning)
|
|
230
|
-
.describe('Warnings associated with the
|
|
237
|
+
.describe('Warnings associated with the [access control system](https://docs.seam.co/latest/capability-guides/access-systems).'),
|
|
231
238
|
})
|
|
232
239
|
.merge(acs_system_capability_flags).describe(`
|
|
233
240
|
---
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acs-system.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/acs/acs-system.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,uBAAuB,EAAE,CAAC;SACvB,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CACP,
|
|
1
|
+
{"version":3,"file":"acs-system.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/acs/acs-system.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,uBAAuB,EAAE,CAAC;SACvB,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CACP,+XAA+X,CAChY;IACH,4BAA4B,EAAE,CAAC;SAC5B,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CACP,6bAA6b,CAC9b;IACH,2CAA2C,EAAE,CAAC;SAC3C,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CACP,gfAAgf,CACjf;IACH,sCAAsC,EAAE,CAAC;SACtC,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CACP,ueAAue,CACxe;CACJ,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,0HAA0H,CAC3H;CACJ,CAAC,CAAA;AAEF,oEAAoE;AACpE,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC7C,UAAU;IACV,UAAU;IACV,eAAe;IACf,oBAAoB;IACpB,eAAe;IACf,qCAAqC;IACrC,mBAAmB;IACnB,+BAA+B;IAC/B,gBAAgB;IAChB,0BAA0B;IAC1B,kCAAkC;IAClC,mBAAmB;IACnB,sCAAsC;CACvC,CAAC,CAAA;AAIF,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAA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,CAAC;KACD,KAAK,CAAC,2BAA2B,CAAC,CAAC,QAAQ,CAAC;;;;;GAK5C,CAAC,CAAA"}
|
|
@@ -23,27 +23,27 @@ const acs_users_deleted_externally = common_acs_user_error
|
|
|
23
23
|
.extend({
|
|
24
24
|
error_code: z.literal('deleted_externally'),
|
|
25
25
|
})
|
|
26
|
-
.describe(`Indicates that the ACS user was deleted from the
|
|
26
|
+
.describe(`Indicates that the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) was deleted from the [access control system](https://docs.seam.co/latest/capability-guides/access-systems) outside of Seam.`);
|
|
27
27
|
const acs_users_salto_ks_subscription_limit_exceeded = common_acs_user_error
|
|
28
28
|
.extend({
|
|
29
29
|
error_code: z.literal('salto_ks_subscription_limit_exceeded'),
|
|
30
30
|
})
|
|
31
|
-
.describe(`Indicates that the user could not be subscribed on Salto KS because the subscription limit has been exceeded.`);
|
|
31
|
+
.describe(`Indicates that the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) could not be subscribed on Salto KS because the subscription limit has been exceeded.`);
|
|
32
32
|
const acs_users_failed_to_create_on_acs_system = common_acs_user_error
|
|
33
33
|
.extend({
|
|
34
34
|
error_code: z.literal('failed_to_create_on_acs_system'),
|
|
35
35
|
})
|
|
36
|
-
.describe(`Indicates that the user was not created on the
|
|
36
|
+
.describe(`Indicates that the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) was not created on the [access control system](https://docs.seam.co/latest/capability-guides/access-systems). This is likely due to an internal unexpected error. Contact Seam [support](mailto:support@seam.co).`);
|
|
37
37
|
const acs_users_failed_to_update_on_acs_system = common_acs_user_error
|
|
38
38
|
.extend({
|
|
39
39
|
error_code: z.literal('failed_to_update_on_acs_system'),
|
|
40
40
|
})
|
|
41
|
-
.describe(`Indicates that the user was not updated on the
|
|
41
|
+
.describe(`Indicates that the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) was not updated on the [access control system](https://docs.seam.co/latest/capability-guides/access-systems). This is likely due to an internal unexpected error. Contact Seam [support](mailto:support@seam.co).`);
|
|
42
42
|
const acs_users_failed_to_delete_on_acs_system = common_acs_user_error
|
|
43
43
|
.extend({
|
|
44
44
|
error_code: z.literal('failed_to_delete_on_acs_system'),
|
|
45
45
|
})
|
|
46
|
-
.describe(`Indicates that the user was not deleted on the
|
|
46
|
+
.describe(`Indicates that the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) was not deleted on the [access control system](https://docs.seam.co/latest/capability-guides/access-systems). This is likely due to an internal unexpected error. Contact Seam [support](mailto:support@seam.co).`);
|
|
47
47
|
const acs_user_errors = z
|
|
48
48
|
.discriminatedUnion('error_code', [
|
|
49
49
|
acs_users_deleted_externally,
|
|
@@ -52,7 +52,7 @@ const acs_user_errors = z
|
|
|
52
52
|
acs_users_failed_to_update_on_acs_system,
|
|
53
53
|
acs_users_failed_to_delete_on_acs_system,
|
|
54
54
|
])
|
|
55
|
-
.describe('
|
|
55
|
+
.describe('Errors associated with the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).');
|
|
56
56
|
export const acs_users_error_map = z.object({
|
|
57
57
|
deleted_externally: acs_users_deleted_externally.optional().nullable(),
|
|
58
58
|
salto_ks_subscription_limit_exceeded: acs_users_salto_ks_subscription_limit_exceeded.optional().nullable(),
|
|
@@ -67,24 +67,29 @@ export const acs_users_error_map = z.object({
|
|
|
67
67
|
.nullable(),
|
|
68
68
|
});
|
|
69
69
|
const common_acs_user_warning = z.object({
|
|
70
|
-
created_at: z
|
|
71
|
-
|
|
70
|
+
created_at: z
|
|
71
|
+
.string()
|
|
72
|
+
.datetime()
|
|
73
|
+
.describe('Date and time at which Seam created the warning.'),
|
|
74
|
+
message: z
|
|
75
|
+
.string()
|
|
76
|
+
.describe('Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.'),
|
|
72
77
|
});
|
|
73
78
|
const acs_users_being_deleted = common_acs_user_warning
|
|
74
79
|
.extend({
|
|
75
80
|
warning_code: z.literal('being_deleted'),
|
|
76
81
|
})
|
|
77
|
-
.describe(
|
|
82
|
+
.describe('Indicates that the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) is being deleted from the [access control system](https://docs.seam.co/latest/capability-guides/access-systems). This is a temporary state, and the ACS user will be deleted shortly.');
|
|
78
83
|
const acs_users_salto_ks_user_not_subscribed = common_acs_user_warning
|
|
79
84
|
.extend({
|
|
80
85
|
warning_code: z.literal('salto_ks_user_not_subscribed'),
|
|
81
86
|
})
|
|
82
|
-
.describe(
|
|
87
|
+
.describe('Indicates that the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) is not subscribed on Salto KS, so they cannot unlock doors or perform any actions. This occurs when the their access schedule hasn’t started yet, if their access schedule has ended, if the site has reached its limit for active users (subscription slots), or if they have been manually unsubscribed.');
|
|
83
88
|
export const unknown_issue_with_acs_user = common_acs_user_warning
|
|
84
89
|
.extend({
|
|
85
90
|
warning_code: z.literal('unknown_issue_with_acs_user'),
|
|
86
91
|
})
|
|
87
|
-
.describe('An unknown issue occurred while syncing the state of this user with the provider. ' +
|
|
92
|
+
.describe('An unknown issue occurred while syncing the state of this [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) with the provider. ' +
|
|
88
93
|
'This issue may affect the proper functioning of this user.');
|
|
89
94
|
export const acs_users_warning_map = z.object({
|
|
90
95
|
being_deleted: acs_users_being_deleted.optional().nullable(),
|
|
@@ -101,7 +106,7 @@ export const acs_users_warnings = z
|
|
|
101
106
|
acs_users_salto_ks_user_not_subscribed,
|
|
102
107
|
unknown_issue_with_acs_user,
|
|
103
108
|
])
|
|
104
|
-
.describe('
|
|
109
|
+
.describe('Warnings associated with the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).');
|
|
105
110
|
const common_acs_user_modification = z.object({
|
|
106
111
|
created_at: z
|
|
107
112
|
.string()
|
|
@@ -113,12 +118,12 @@ const acs_user_suspension_state_modification = common_acs_user_modification
|
|
|
113
118
|
.extend({
|
|
114
119
|
modification_code: z.literal('suspension_state'),
|
|
115
120
|
})
|
|
116
|
-
.describe("Indicates that the
|
|
121
|
+
.describe("Indicates that the [ACS user's](https://docs.seam.co/latest/capability-guides/access-systems/user-management) `is_suspended` state was updated on Seam and will soon be applied to the ACS user on the [access control system](https://docs.seam.co/latest/capability-guides/access-systems).");
|
|
117
122
|
const acs_user_profile_modification = common_acs_user_modification
|
|
118
123
|
.extend({
|
|
119
124
|
modification_code: z.literal('profile'),
|
|
120
125
|
})
|
|
121
|
-
.describe("Indicates that the
|
|
126
|
+
.describe("Indicates that the [ACS user's](https://docs.seam.co/latest/capability-guides/access-systems/user-management) profile details (name, email, phone) were updated on Seam and will soon be applied to the ACS user on the [access control system](https://docs.seam.co/latest/capability-guides/access-systems).");
|
|
122
127
|
export const acs_user_unapplied_modification_map = z.object({
|
|
123
128
|
suspension_state: acs_user_suspension_state_modification
|
|
124
129
|
.optional()
|
|
@@ -126,7 +131,10 @@ export const acs_user_unapplied_modification_map = z.object({
|
|
|
126
131
|
profile: acs_user_profile_modification.optional().nullable(),
|
|
127
132
|
});
|
|
128
133
|
const user_fields = z.object({
|
|
129
|
-
full_name: z
|
|
134
|
+
full_name: z
|
|
135
|
+
.string()
|
|
136
|
+
.optional()
|
|
137
|
+
.describe('Full name of the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).'),
|
|
130
138
|
email: z.string().email().optional().describe(`
|
|
131
139
|
---
|
|
132
140
|
deprecated: use email_address.
|
|
@@ -136,61 +144,66 @@ const user_fields = z.object({
|
|
|
136
144
|
.string()
|
|
137
145
|
.email()
|
|
138
146
|
.optional()
|
|
139
|
-
.describe('Email address of the
|
|
147
|
+
.describe('Email address of the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).'),
|
|
140
148
|
phone_number: phone_number
|
|
141
149
|
.optional()
|
|
142
|
-
.describe('Phone number of the
|
|
150
|
+
.describe('Phone number of the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) in E.164 format (for example, `+15555550100`).'),
|
|
143
151
|
});
|
|
144
152
|
const common_acs_user = z
|
|
145
153
|
.object({
|
|
146
|
-
acs_user_id: z
|
|
154
|
+
acs_user_id: z
|
|
155
|
+
.string()
|
|
156
|
+
.uuid()
|
|
157
|
+
.describe('ID of the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).'),
|
|
147
158
|
acs_system_id: z
|
|
148
159
|
.string()
|
|
149
160
|
.uuid()
|
|
150
|
-
.describe('ID of the access control system that contains the
|
|
161
|
+
.describe('ID of the [access control system](https://docs.seam.co/latest/capability-guides/access-systems) that contains the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).'),
|
|
151
162
|
hid_acs_system_id: z.string().uuid().optional(),
|
|
152
163
|
workspace_id: z
|
|
153
164
|
.string()
|
|
154
165
|
.uuid()
|
|
155
|
-
.describe('ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the
|
|
166
|
+
.describe('ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).'),
|
|
156
167
|
created_at: z
|
|
157
168
|
.string()
|
|
158
169
|
.datetime()
|
|
159
|
-
.describe('Date and time at which the
|
|
160
|
-
display_name: z
|
|
170
|
+
.describe('Date and time at which the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) was created.'),
|
|
171
|
+
display_name: z
|
|
172
|
+
.string()
|
|
173
|
+
.describe('Display name for the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).'),
|
|
161
174
|
external_type: acs_user_external_type
|
|
162
175
|
.optional()
|
|
163
|
-
.describe('Brand-specific terminology for the
|
|
176
|
+
.describe('Brand-specific terminology for the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) type.'),
|
|
164
177
|
external_type_display_name: z
|
|
165
178
|
.string()
|
|
166
179
|
.optional()
|
|
167
|
-
.describe('Display name that corresponds to the brand-specific terminology for the
|
|
180
|
+
.describe('Display name that corresponds to the brand-specific terminology for the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) type.'),
|
|
168
181
|
is_suspended: z
|
|
169
182
|
.boolean()
|
|
170
183
|
.optional()
|
|
171
|
-
.describe('Indicates whether the
|
|
184
|
+
.describe('Indicates whether the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) is currently [suspended](https://docs.seam.co/latest/capability-guides/access-systems/user-management/suspending-and-unsuspending-users).'),
|
|
172
185
|
access_schedule: schedule
|
|
173
186
|
.optional()
|
|
174
|
-
.describe("`starts_at` and `ends_at` timestamps for the
|
|
187
|
+
.describe("`starts_at` and `ends_at` timestamps for the [ACS user's](https://docs.seam.co/latest/capability-guides/access-systems/user-management) access."),
|
|
175
188
|
user_identity_id: z
|
|
176
189
|
.string()
|
|
177
190
|
.optional()
|
|
178
|
-
.describe('ID of the user identity associated with the
|
|
191
|
+
.describe('ID of the user identity associated with the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).'),
|
|
179
192
|
user_identity_full_name: z
|
|
180
193
|
.string()
|
|
181
194
|
.nullable()
|
|
182
195
|
.optional()
|
|
183
|
-
.describe('Full name of the user identity associated with the
|
|
196
|
+
.describe('Full name of the user identity associated with the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).'),
|
|
184
197
|
user_identity_email_address: z
|
|
185
198
|
.string()
|
|
186
199
|
.nullable()
|
|
187
200
|
.optional()
|
|
188
|
-
.describe('Email address of the user identity associated with the
|
|
201
|
+
.describe('Email address of the user identity associated with the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).'),
|
|
189
202
|
user_identity_phone_number: z
|
|
190
203
|
.string()
|
|
191
204
|
.nullable()
|
|
192
205
|
.optional()
|
|
193
|
-
.describe('Phone number of the user identity associated with the
|
|
206
|
+
.describe('Phone number of the user identity associated with the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) in E.164 format (for example, `+15555550100`).'),
|
|
194
207
|
latest_desired_state_synced_with_provider_at: z
|
|
195
208
|
.string()
|
|
196
209
|
.datetime()
|
|
@@ -210,10 +223,10 @@ const common_acs_user = z
|
|
|
210
223
|
`),
|
|
211
224
|
warnings: z
|
|
212
225
|
.array(acs_users_warnings)
|
|
213
|
-
.describe('Warnings associated with the
|
|
226
|
+
.describe('Warnings associated with the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).'),
|
|
214
227
|
errors: z
|
|
215
228
|
.array(acs_user_errors)
|
|
216
|
-
.describe('Errors associated with the
|
|
229
|
+
.describe('Errors associated with the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).'),
|
|
217
230
|
})
|
|
218
231
|
.merge(user_fields);
|
|
219
232
|
export const acs_user = common_acs_user.merge(z.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acs-user.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/acs/acs-user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAEzC,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC3C,UAAU;IACV,YAAY;IACZ,6BAA6B;IAC7B,iBAAiB;IACjB,YAAY;IACZ,0BAA0B;IAC1B,kBAAkB;CACnB,CAAC,CAAA;AAIF,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,gDAAgD,CAAC;IAC7D,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,wGAAwG,CACzG;CACJ,CAAC,CAAA;AAEF,MAAM,4BAA4B,GAAG,qBAAqB;KACvD,MAAM,CAAC;IACN,UAAU,EAAE,CAAC,CAAC,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,QAAQ,CACP,wHAAwH,CACzH;IACH,MAAM,EAAE,CAAC;SACN,KAAK,CAAC,eAAe,CAAC;SACtB,QAAQ,CACP,sHAAsH,CACvH;CACJ,CAAC;KACD,KAAK,CAAC,WAAW,CAAC,CAAA;AAErB,MAAM,CAAC,MAAM,QAAQ,GAAG,eAAe,CAAC,KAAK,CAC3C,CAAC,CAAC,MAAM,CAAC;IACP,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;CAC5B,CAAC,CACH,CAAC,QAAQ,CAAC;;;;;CAKV,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,eAAe,CAAC,KAAK,CACrD,CAAC,CAAC,MAAM,CAAC;IACP,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;CAC7B,CAAC,CACH,CAAC,QAAQ,CAAC;;;;;CAKV,CAAC,CAAA"}
|
|
@@ -3,23 +3,25 @@ import { fan_mode_setting, hvac_mode_setting } from './modes.js';
|
|
|
3
3
|
export const climate_preset = z.object({
|
|
4
4
|
climate_preset_key: z
|
|
5
5
|
.string()
|
|
6
|
-
.describe('Unique key to identify the climate preset.'),
|
|
6
|
+
.describe('Unique key to identify the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets).'),
|
|
7
7
|
can_edit: z
|
|
8
8
|
.boolean()
|
|
9
|
-
.describe('Indicates whether
|
|
9
|
+
.describe('Indicates whether the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets) key can be edited.'),
|
|
10
10
|
can_delete: z
|
|
11
11
|
.boolean()
|
|
12
|
-
.describe('Indicates whether
|
|
12
|
+
.describe('Indicates whether the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets) key can be deleted.'),
|
|
13
13
|
name: z
|
|
14
14
|
.string()
|
|
15
15
|
.nullable()
|
|
16
16
|
.default(null)
|
|
17
17
|
.optional()
|
|
18
|
-
.describe('User-friendly name to identify the climate preset.'),
|
|
19
|
-
display_name: z
|
|
18
|
+
.describe('User-friendly name to identify the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets).'),
|
|
19
|
+
display_name: z
|
|
20
|
+
.string()
|
|
21
|
+
.describe('Display name for the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets).'),
|
|
20
22
|
fan_mode_setting: fan_mode_setting
|
|
21
23
|
.optional()
|
|
22
|
-
.describe('Desired fan mode setting, such as `on`, `auto`, or `circulate`.'),
|
|
24
|
+
.describe('Desired [fan mode setting](https://docs.seam.co/latest/capability-guides/thermostats/configure-current-climate-settings#fan-mode-settings), such as `on`, `auto`, or `circulate`.'),
|
|
23
25
|
hvac_mode_setting: hvac_mode_setting
|
|
24
26
|
.optional()
|
|
25
27
|
.describe('Desired [HVAC mode](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/hvac-mode) setting, such as `heat`, `cool`, `heat_cool`, or `off`.'),
|
|
@@ -30,20 +32,20 @@ export const climate_preset = z.object({
|
|
|
30
32
|
heating_set_point_celsius: z
|
|
31
33
|
.number()
|
|
32
34
|
.optional()
|
|
33
|
-
.describe('Temperature to which the thermostat should heat (in °C).'),
|
|
35
|
+
.describe('Temperature to which the thermostat should heat (in °C). See also [Set Points](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points).'),
|
|
34
36
|
cooling_set_point_fahrenheit: z
|
|
35
37
|
.number()
|
|
36
38
|
.optional()
|
|
37
|
-
.describe('Temperature to which the thermostat should cool (in °F).'),
|
|
39
|
+
.describe('Temperature to which the thermostat should cool (in °F). See also [Set Points](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points).'),
|
|
38
40
|
heating_set_point_fahrenheit: z
|
|
39
41
|
.number()
|
|
40
42
|
.optional()
|
|
41
|
-
.describe('Temperature to which the thermostat should heat (in °F).'),
|
|
43
|
+
.describe('Temperature to which the thermostat should heat (in °F). See also [Set Points](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points).'),
|
|
42
44
|
manual_override_allowed: z.boolean().describe(`
|
|
43
45
|
---
|
|
44
46
|
deprecated: Use 'thermostat_schedule.is_override_allowed'
|
|
45
47
|
---
|
|
46
|
-
Indicates whether a person at the thermostat can change the thermostat's settings.`),
|
|
48
|
+
Indicates whether a person at the thermostat can change the thermostat's settings. See [Specifying Manual Override Permissions](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions).`),
|
|
47
49
|
});
|
|
48
50
|
export const climate_setting = climate_preset.partial();
|
|
49
51
|
//# sourceMappingURL=climate-preset.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"climate-preset.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/thermostats/climate-preset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAEhE,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,kBAAkB,EAAE,CAAC;SAClB,MAAM,EAAE;SACR,QAAQ,
|
|
1
|
+
{"version":3,"file":"climate-preset.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/thermostats/climate-preset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAEhE,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,kBAAkB,EAAE,CAAC;SAClB,MAAM,EAAE;SACR,QAAQ,CACP,+IAA+I,CAChJ;IACH,QAAQ,EAAE,CAAC;SACR,OAAO,EAAE;SACT,QAAQ,CACP,4JAA4J,CAC7J;IACH,UAA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