@seamapi/types 1.1144.0 → 1.1146.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/lib/seam/connect/models/access-codes/managed-access-code.d.ts +92 -92
- package/lib/seam/connect/models/access-codes/managed-access-code.js +23 -37
- package/lib/seam/connect/models/access-codes/managed-access-code.js.map +1 -1
- package/lib/seam/connect/models/access-grants/access-grant.d.ts +44 -44
- package/lib/seam/connect/models/access-grants/access-grant.js +11 -16
- package/lib/seam/connect/models/access-grants/access-grant.js.map +1 -1
- package/lib/seam/connect/models/access-grants/access-method.d.ts +40 -40
- package/lib/seam/connect/models/access-grants/access-method.js +10 -16
- package/lib/seam/connect/models/access-grants/access-method.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-access-group.d.ts +12 -12
- package/lib/seam/connect/models/acs/acs-access-group.js +3 -5
- package/lib/seam/connect/models/acs/acs-access-group.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-credential.d.ts +32 -32
- package/lib/seam/connect/models/acs/acs-credential.js +8 -12
- package/lib/seam/connect/models/acs/acs-credential.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-encoder.d.ts +4 -4
- package/lib/seam/connect/models/acs/acs-encoder.js +1 -1
- package/lib/seam/connect/models/acs/acs-encoder.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-entrance.d.ts +24 -24
- package/lib/seam/connect/models/acs/acs-entrance.js +6 -6
- package/lib/seam/connect/models/acs/acs-entrance.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-system.d.ts +56 -56
- package/lib/seam/connect/models/acs/acs-system.js +14 -26
- package/lib/seam/connect/models/acs/acs-system.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-users/acs-user.d.ts +44 -44
- package/lib/seam/connect/models/acs/acs-users/acs-user.js +11 -23
- package/lib/seam/connect/models/acs/acs-users/acs-user.js.map +1 -1
- package/lib/seam/connect/models/bridges/bridge-client-session.d.ts +8 -8
- package/lib/seam/connect/models/bridges/bridge-client-session.js +2 -4
- package/lib/seam/connect/models/bridges/bridge-client-session.js.map +1 -1
- package/lib/seam/connect/models/connected-accounts/connected-account.d.ts +48 -48
- package/lib/seam/connect/models/connected-accounts/connected-account.js +12 -24
- package/lib/seam/connect/models/connected-accounts/connected-account.js.map +1 -1
- package/lib/seam/connect/models/customer/access-grant-resources.d.ts +276 -0
- package/lib/seam/connect/models/customer/access-grant-resources.js +19 -0
- package/lib/seam/connect/models/customer/access-grant-resources.js.map +1 -1
- package/lib/seam/connect/models/customer/customer-data.d.ts +296 -0
- package/lib/seam/connect/models/devices/device.d.ts +168 -168
- package/lib/seam/connect/models/devices/device.js +42 -70
- package/lib/seam/connect/models/devices/device.js.map +1 -1
- package/lib/seam/connect/models/spaces/space.d.ts +8 -8
- package/lib/seam/connect/models/spaces/space.js +2 -4
- package/lib/seam/connect/models/spaces/space.js.map +1 -1
- package/lib/seam/connect/models/user-identities/user-identity.d.ts +12 -12
- package/lib/seam/connect/models/user-identities/user-identity.js +2 -3
- package/lib/seam/connect/models/user-identities/user-identity.js.map +1 -1
- package/lib/seam/connect/openapi.js +210 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +86 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +26 -37
- package/src/lib/seam/connect/models/access-grants/access-grant.ts +11 -16
- package/src/lib/seam/connect/models/access-grants/access-method.ts +11 -16
- package/src/lib/seam/connect/models/acs/acs-access-group.ts +4 -5
- package/src/lib/seam/connect/models/acs/acs-credential.ts +9 -12
- package/src/lib/seam/connect/models/acs/acs-encoder.ts +1 -1
- package/src/lib/seam/connect/models/acs/acs-entrance.ts +6 -6
- package/src/lib/seam/connect/models/acs/acs-system.ts +16 -26
- package/src/lib/seam/connect/models/acs/acs-users/acs-user.ts +16 -23
- package/src/lib/seam/connect/models/bridges/bridge-client-session.ts +2 -4
- package/src/lib/seam/connect/models/connected-accounts/connected-account.ts +15 -24
- package/src/lib/seam/connect/models/customer/access-grant-resources.ts +26 -0
- package/src/lib/seam/connect/models/devices/device.ts +43 -70
- package/src/lib/seam/connect/models/spaces/space.ts +3 -4
- package/src/lib/seam/connect/models/user-identities/user-identity.ts +2 -3
- package/src/lib/seam/connect/openapi.ts +250 -0
- package/src/lib/seam/connect/route-types.ts +94 -0
|
@@ -48995,6 +48995,49 @@ export type Routes = {
|
|
|
48995
48995
|
custom_metadata?: {
|
|
48996
48996
|
[x: string]: string | boolean | null;
|
|
48997
48997
|
} | undefined;
|
|
48998
|
+
/** Parts of the reservation that each get their own access, for example one per room. Each sub-reservation inherits the reservation's name, times, preferred code, guest and custom metadata unless it sets its own, and must set its own location keys. A reservation with sub-reservations must not set location keys itself. Sending this list replaces the reservation's sub-reservations: any not included are removed, and an empty list removes all of them. Omitting it leaves existing sub-reservations unchanged. */
|
|
48999
|
+
sub_reservations?: {
|
|
49000
|
+
/** Your name for this access grant resource. */
|
|
49001
|
+
name?: string | undefined;
|
|
49002
|
+
/** Starting date and time for the access grant. */
|
|
49003
|
+
starts_at?: string | undefined;
|
|
49004
|
+
/** Ending date and time for the access grant. */
|
|
49005
|
+
ends_at?: string | undefined;
|
|
49006
|
+
/** Preferred PIN code to use when creating access for this reservation. Set to `null` to remove a previously set preferred code, so that access falls back to an automatically generated code. Omitting this field keeps any previously set preferred code. */
|
|
49007
|
+
preferred_code?: (string | null) | undefined;
|
|
49008
|
+
/** Your identifier for the sub-reservation. Must be unique within its reservation. */
|
|
49009
|
+
sub_reservation_key: string;
|
|
49010
|
+
/** Set key:value pairs for filtering sub-reservations by custom criteria. Merged over the reservation's custom metadata. Set a key to `null` or to an empty string to remove that key from the custom metadata. */
|
|
49011
|
+
custom_metadata?: {
|
|
49012
|
+
[x: string]: string | boolean | null;
|
|
49013
|
+
} | undefined;
|
|
49014
|
+
/** Guest key associated with the access grant. */
|
|
49015
|
+
guest_key?: string | undefined;
|
|
49016
|
+
/** Tenant key associated with the access grant. */
|
|
49017
|
+
tenant_key?: string | undefined;
|
|
49018
|
+
/** Resident key associated with the access grant. */
|
|
49019
|
+
resident_key?: string | undefined;
|
|
49020
|
+
/** User key associated with the access grant. */
|
|
49021
|
+
user_key?: string | undefined;
|
|
49022
|
+
/** User identity key associated with the access grant. */
|
|
49023
|
+
user_identity_key?: string | undefined;
|
|
49024
|
+
/** Space keys associated with the access grant. */
|
|
49025
|
+
space_keys?: string[] | undefined;
|
|
49026
|
+
/** Property keys associated with the access grant. */
|
|
49027
|
+
property_keys?: string[] | undefined;
|
|
49028
|
+
/** Room keys associated with the access grant. */
|
|
49029
|
+
room_keys?: string[] | undefined;
|
|
49030
|
+
/** Common area keys associated with the access grant. */
|
|
49031
|
+
common_area_keys?: string[] | undefined;
|
|
49032
|
+
/** Unit keys associated with the access grant. */
|
|
49033
|
+
unit_keys?: string[] | undefined;
|
|
49034
|
+
/** Facility keys associated with the access grant. */
|
|
49035
|
+
facility_keys?: string[] | undefined;
|
|
49036
|
+
/** Building keys associated with the access grant. */
|
|
49037
|
+
building_keys?: string[] | undefined;
|
|
49038
|
+
/** Listing keys associated with the access grant. */
|
|
49039
|
+
listing_keys?: string[] | undefined;
|
|
49040
|
+
}[] | undefined;
|
|
48998
49041
|
/** Guest key associated with the access grant. */
|
|
48999
49042
|
guest_key?: string | undefined;
|
|
49000
49043
|
/** Tenant key associated with the access grant. */
|
|
@@ -49406,6 +49449,49 @@ export type Routes = {
|
|
|
49406
49449
|
custom_metadata?: {
|
|
49407
49450
|
[x: string]: string | boolean | null;
|
|
49408
49451
|
} | undefined;
|
|
49452
|
+
/** Parts of the reservation that each get their own access, for example one per room. Each sub-reservation inherits the reservation's name, times, preferred code, guest and custom metadata unless it sets its own, and must set its own location keys. A reservation with sub-reservations must not set location keys itself. Sending this list replaces the reservation's sub-reservations: any not included are removed, and an empty list removes all of them. Omitting it leaves existing sub-reservations unchanged. */
|
|
49453
|
+
sub_reservations?: {
|
|
49454
|
+
/** Your name for this access grant resource. */
|
|
49455
|
+
name?: string | undefined;
|
|
49456
|
+
/** Starting date and time for the access grant. */
|
|
49457
|
+
starts_at?: string | undefined;
|
|
49458
|
+
/** Ending date and time for the access grant. */
|
|
49459
|
+
ends_at?: string | undefined;
|
|
49460
|
+
/** Preferred PIN code to use when creating access for this reservation. Set to `null` to remove a previously set preferred code, so that access falls back to an automatically generated code. Omitting this field keeps any previously set preferred code. */
|
|
49461
|
+
preferred_code?: (string | null) | undefined;
|
|
49462
|
+
/** Your identifier for the sub-reservation. Must be unique within its reservation. */
|
|
49463
|
+
sub_reservation_key: string;
|
|
49464
|
+
/** Set key:value pairs for filtering sub-reservations by custom criteria. Merged over the reservation's custom metadata. Set a key to `null` or to an empty string to remove that key from the custom metadata. */
|
|
49465
|
+
custom_metadata?: {
|
|
49466
|
+
[x: string]: string | boolean | null;
|
|
49467
|
+
} | undefined;
|
|
49468
|
+
/** Guest key associated with the access grant. */
|
|
49469
|
+
guest_key?: string | undefined;
|
|
49470
|
+
/** Tenant key associated with the access grant. */
|
|
49471
|
+
tenant_key?: string | undefined;
|
|
49472
|
+
/** Resident key associated with the access grant. */
|
|
49473
|
+
resident_key?: string | undefined;
|
|
49474
|
+
/** User key associated with the access grant. */
|
|
49475
|
+
user_key?: string | undefined;
|
|
49476
|
+
/** User identity key associated with the access grant. */
|
|
49477
|
+
user_identity_key?: string | undefined;
|
|
49478
|
+
/** Space keys associated with the access grant. */
|
|
49479
|
+
space_keys?: string[] | undefined;
|
|
49480
|
+
/** Property keys associated with the access grant. */
|
|
49481
|
+
property_keys?: string[] | undefined;
|
|
49482
|
+
/** Room keys associated with the access grant. */
|
|
49483
|
+
room_keys?: string[] | undefined;
|
|
49484
|
+
/** Common area keys associated with the access grant. */
|
|
49485
|
+
common_area_keys?: string[] | undefined;
|
|
49486
|
+
/** Unit keys associated with the access grant. */
|
|
49487
|
+
unit_keys?: string[] | undefined;
|
|
49488
|
+
/** Facility keys associated with the access grant. */
|
|
49489
|
+
facility_keys?: string[] | undefined;
|
|
49490
|
+
/** Building keys associated with the access grant. */
|
|
49491
|
+
building_keys?: string[] | undefined;
|
|
49492
|
+
/** Listing keys associated with the access grant. */
|
|
49493
|
+
listing_keys?: string[] | undefined;
|
|
49494
|
+
}[] | undefined;
|
|
49409
49495
|
/** Guest key associated with the access grant. */
|
|
49410
49496
|
guest_key?: string | undefined;
|
|
49411
49497
|
/** Tenant key associated with the access grant. */
|
package/package.json
CHANGED
|
@@ -196,23 +196,19 @@ const access_code_error = z
|
|
|
196
196
|
export type AccessCodeError = z.infer<typeof access_code_error>
|
|
197
197
|
|
|
198
198
|
const _access_code_error_map = z.object({
|
|
199
|
-
provider_issue: provider_issue.optional()
|
|
200
|
-
failed_to_set_on_device: failed_to_set_on_device.optional()
|
|
201
|
-
failed_to_remove_from_device: failed_to_remove_from_device
|
|
202
|
-
|
|
203
|
-
.
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
.
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
code_constraints_violated: code_constraints_violated.optional().nullable(),
|
|
213
|
-
failed_to_issue: failed_to_issue.optional().nullable(),
|
|
214
|
-
failed_to_update: failed_to_update.optional().nullable(),
|
|
215
|
-
failed_to_delete: failed_to_delete.optional().nullable(),
|
|
199
|
+
provider_issue: provider_issue.optional(),
|
|
200
|
+
failed_to_set_on_device: failed_to_set_on_device.optional(),
|
|
201
|
+
failed_to_remove_from_device: failed_to_remove_from_device.optional(),
|
|
202
|
+
no_space_for_access_code_on_device:
|
|
203
|
+
no_space_for_access_code_on_device.optional(),
|
|
204
|
+
duplicate_code_on_device: duplicate_code_on_device.optional(),
|
|
205
|
+
conflicting_external_modification:
|
|
206
|
+
conflicting_external_modification_error.optional(),
|
|
207
|
+
access_code_inactive: access_code_inactive_error.optional(),
|
|
208
|
+
code_constraints_violated: code_constraints_violated.optional(),
|
|
209
|
+
failed_to_issue: failed_to_issue.optional(),
|
|
210
|
+
failed_to_update: failed_to_update.optional(),
|
|
211
|
+
failed_to_delete: failed_to_delete.optional(),
|
|
216
212
|
})
|
|
217
213
|
|
|
218
214
|
export type AccessCodeErrorMap = z.infer<typeof _access_code_error_map>
|
|
@@ -376,28 +372,21 @@ const access_code_warning = z
|
|
|
376
372
|
export type AccessCodeWarning = z.infer<typeof access_code_warning>
|
|
377
373
|
|
|
378
374
|
const _access_code_warning_map = z.object({
|
|
379
|
-
code_rotates_periodically: code_rotates_periodically.optional()
|
|
375
|
+
code_rotates_periodically: code_rotates_periodically.optional(),
|
|
380
376
|
time_frame_adjusted_for_unknown_time_zone:
|
|
381
|
-
time_frame_adjusted_for_unknown_time_zone.optional()
|
|
382
|
-
external_modification_in_effect:
|
|
383
|
-
.optional()
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
.nullable(),
|
|
389
|
-
delay_in_issuing: delay_in_issuing.optional().nullable(),
|
|
390
|
-
third_party_integration_detected: third_party_integration_detected
|
|
391
|
-
.optional()
|
|
392
|
-
.nullable(),
|
|
377
|
+
time_frame_adjusted_for_unknown_time_zone.optional(),
|
|
378
|
+
external_modification_in_effect:
|
|
379
|
+
external_modification_in_effect_warning.optional(),
|
|
380
|
+
delay_in_setting_on_device: delay_in_setting_on_device.optional(),
|
|
381
|
+
delay_in_removing_from_device: delay_in_removing_from_device.optional(),
|
|
382
|
+
delay_in_issuing: delay_in_issuing.optional(),
|
|
383
|
+
third_party_integration_detected: third_party_integration_detected.optional(),
|
|
393
384
|
igloo_algopin_must_be_used_within_24_hours:
|
|
394
|
-
igloo_algopin_must_be_used_within_24_hours.optional()
|
|
395
|
-
management_transferred: management_transferred.optional()
|
|
396
|
-
using_backup_access_code: using_backup_access_code.optional()
|
|
397
|
-
being_deleted: being_deleted.optional()
|
|
398
|
-
unknown_issue_with_access_code: unknown_issue_with_access_code
|
|
399
|
-
.optional()
|
|
400
|
-
.nullable(),
|
|
385
|
+
igloo_algopin_must_be_used_within_24_hours.optional(),
|
|
386
|
+
management_transferred: management_transferred.optional(),
|
|
387
|
+
using_backup_access_code: using_backup_access_code.optional(),
|
|
388
|
+
being_deleted: being_deleted.optional(),
|
|
389
|
+
unknown_issue_with_access_code: unknown_issue_with_access_code.optional(),
|
|
401
390
|
})
|
|
402
391
|
|
|
403
392
|
export type AccessCodeWarningMap = z.infer<typeof _access_code_warning_map>
|
|
@@ -70,8 +70,8 @@ export type AccessGrantError = z.infer<typeof access_grant_error>
|
|
|
70
70
|
|
|
71
71
|
export const _access_grant_error_map = z.object({
|
|
72
72
|
cannot_create_requested_access_methods:
|
|
73
|
-
cannot_create_requested_access_methods_error.optional()
|
|
74
|
-
access_not_provisioned: access_not_provisioned_error.optional()
|
|
73
|
+
cannot_create_requested_access_methods_error.optional(),
|
|
74
|
+
access_not_provisioned: access_not_provisioned_error.optional(),
|
|
75
75
|
})
|
|
76
76
|
|
|
77
77
|
export type AccessGrantErrorMap = z.infer<typeof _access_grant_error_map>
|
|
@@ -245,30 +245,25 @@ const access_grant_warning = z
|
|
|
245
245
|
)
|
|
246
246
|
|
|
247
247
|
const _access_grant_warning_map = z.object({
|
|
248
|
-
being_deleted: being_deleted.optional()
|
|
249
|
-
underprovisioned_access: underprovisioned_access.optional()
|
|
250
|
-
overprovisioned_access: overprovisioned_access.optional()
|
|
251
|
-
updating_access_times: updating_access_times.optional()
|
|
248
|
+
being_deleted: being_deleted.optional(),
|
|
249
|
+
underprovisioned_access: underprovisioned_access.optional(),
|
|
250
|
+
overprovisioned_access: overprovisioned_access.optional(),
|
|
251
|
+
updating_access_times: updating_access_times.optional(),
|
|
252
252
|
requested_code_unavailable_by_device: z
|
|
253
253
|
.record(z.string().uuid(), requested_code_unavailable)
|
|
254
|
-
.optional()
|
|
255
|
-
.nullable(),
|
|
254
|
+
.optional(),
|
|
256
255
|
requested_code_unavailable_by_access_method: z
|
|
257
256
|
.record(z.string().uuid(), requested_code_unavailable)
|
|
258
|
-
.optional()
|
|
259
|
-
.nullable(),
|
|
257
|
+
.optional(),
|
|
260
258
|
device_does_not_support_access_codes: z
|
|
261
259
|
.record(z.string().uuid(), device_does_not_support_access_codes)
|
|
262
|
-
.optional()
|
|
263
|
-
.nullable(),
|
|
260
|
+
.optional(),
|
|
264
261
|
device_time_constraints_violated: z
|
|
265
262
|
.record(z.string().uuid(), device_time_constraints_violated)
|
|
266
|
-
.optional()
|
|
267
|
-
.nullable(),
|
|
263
|
+
.optional(),
|
|
268
264
|
access_revoked_by_access_method: z
|
|
269
265
|
.record(z.string().uuid(), access_revoked)
|
|
270
|
-
.optional()
|
|
271
|
-
.nullable(),
|
|
266
|
+
.optional(),
|
|
272
267
|
})
|
|
273
268
|
|
|
274
269
|
export type AccessGrantWarningMap = z.infer<typeof _access_grant_warning_map>
|
|
@@ -121,21 +121,16 @@ const access_method_warning = z
|
|
|
121
121
|
)
|
|
122
122
|
|
|
123
123
|
const _access_method_warning_map = z.object({
|
|
124
|
-
being_deleted: being_deleted.optional()
|
|
125
|
-
updating_access_times: updating_access_times_warning.optional()
|
|
126
|
-
pulled_backup_access_code: pulled_backup_access_code_warning
|
|
127
|
-
|
|
128
|
-
.nullable(),
|
|
129
|
-
delay_in_issuing: delay_in_issuing_warning.optional().nullable(),
|
|
124
|
+
being_deleted: being_deleted.optional(),
|
|
125
|
+
updating_access_times: updating_access_times_warning.optional(),
|
|
126
|
+
pulled_backup_access_code: pulled_backup_access_code_warning.optional(),
|
|
127
|
+
delay_in_issuing: delay_in_issuing_warning.optional(),
|
|
130
128
|
user_identity_missing_email_address:
|
|
131
|
-
user_identity_missing_email_address_warning.optional()
|
|
132
|
-
user_identity_missing_phone_number:
|
|
133
|
-
.optional()
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
.optional()
|
|
137
|
-
.nullable(),
|
|
138
|
-
schedule_rounded_up: schedule_rounded_up_warning.optional().nullable(),
|
|
129
|
+
user_identity_missing_email_address_warning.optional(),
|
|
130
|
+
user_identity_missing_phone_number:
|
|
131
|
+
user_identity_missing_phone_number_warning.optional(),
|
|
132
|
+
requested_code_unavailable: requested_code_unavailable_warning.optional(),
|
|
133
|
+
schedule_rounded_up: schedule_rounded_up_warning.optional(),
|
|
139
134
|
})
|
|
140
135
|
|
|
141
136
|
export type AccessMethodWarningMap = z.infer<typeof _access_method_warning_map>
|
|
@@ -184,8 +179,8 @@ const access_method_error = z
|
|
|
184
179
|
)
|
|
185
180
|
|
|
186
181
|
const _access_method_error_map = z.object({
|
|
187
|
-
failed_to_issue: failed_to_issue_error.optional()
|
|
188
|
-
access_not_provisioned: access_not_provisioned_error.optional()
|
|
182
|
+
failed_to_issue: failed_to_issue_error.optional(),
|
|
183
|
+
access_not_provisioned: access_not_provisioned_error.optional(),
|
|
189
184
|
})
|
|
190
185
|
|
|
191
186
|
export type AccessMethodErrorMap = z.infer<typeof _access_method_error_map>
|
|
@@ -55,7 +55,7 @@ const acs_access_group_error = z
|
|
|
55
55
|
|
|
56
56
|
const _acs_access_group_error_map = z.object({
|
|
57
57
|
failed_to_create_on_acs_system:
|
|
58
|
-
acs_access_groups_failed_to_create_on_acs_system.optional()
|
|
58
|
+
acs_access_groups_failed_to_create_on_acs_system.optional(),
|
|
59
59
|
})
|
|
60
60
|
|
|
61
61
|
export type AcsAccessGroupErrorMap = z.infer<typeof _acs_access_group_error_map>
|
|
@@ -98,10 +98,9 @@ const acs_access_group_warning = z
|
|
|
98
98
|
.describe('Warning associated with the `acs_access_group`.')
|
|
99
99
|
|
|
100
100
|
const _acs_access_group_warning_map = z.object({
|
|
101
|
-
unknown_issue_with_acs_access_group:
|
|
102
|
-
.optional()
|
|
103
|
-
|
|
104
|
-
being_deleted: acs_access_group_being_deleted.optional().nullable(),
|
|
101
|
+
unknown_issue_with_acs_access_group:
|
|
102
|
+
unknown_issue_with_acs_access_group.optional(),
|
|
103
|
+
being_deleted: acs_access_group_being_deleted.optional(),
|
|
105
104
|
})
|
|
106
105
|
|
|
107
106
|
export type AcsAccessGroupWarningMap = z.infer<
|
|
@@ -147,18 +147,15 @@ const acs_credential_warning = z
|
|
|
147
147
|
)
|
|
148
148
|
|
|
149
149
|
const _acs_credential_warning_map = z.object({
|
|
150
|
-
waiting_to_be_issued: waiting_to_be_issued.optional()
|
|
151
|
-
schedule_externally_modified: schedule_externally_modified
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
needs_to_be_reissued: needs_to_be_reissued.optional().nullable(),
|
|
160
|
-
requested_code_unavailable: requested_code_unavailable.optional().nullable(),
|
|
161
|
-
schedule_rounded_up: schedule_rounded_up.optional().nullable(),
|
|
150
|
+
waiting_to_be_issued: waiting_to_be_issued.optional(),
|
|
151
|
+
schedule_externally_modified: schedule_externally_modified.optional(),
|
|
152
|
+
schedule_modified: schedule_modified.optional(),
|
|
153
|
+
being_deleted: being_deleted.optional(),
|
|
154
|
+
unknown_issue_with_acs_credential:
|
|
155
|
+
unknown_issue_with_acs_credential.optional(),
|
|
156
|
+
needs_to_be_reissued: needs_to_be_reissued.optional(),
|
|
157
|
+
requested_code_unavailable: requested_code_unavailable.optional(),
|
|
158
|
+
schedule_rounded_up: schedule_rounded_up.optional(),
|
|
162
159
|
})
|
|
163
160
|
|
|
164
161
|
export type AcsCredentialWarningMap = z.infer<
|
|
@@ -28,7 +28,7 @@ const acs_encoder_error = acs_encoder_removed.describe(`
|
|
|
28
28
|
`)
|
|
29
29
|
|
|
30
30
|
const _acs_encoder_error_map = z.object({
|
|
31
|
-
acs_encoder_removed: acs_encoder_removed.optional()
|
|
31
|
+
acs_encoder_removed: acs_encoder_removed.optional(),
|
|
32
32
|
})
|
|
33
33
|
|
|
34
34
|
export type AcsEncoderErrorMap = z.infer<typeof _acs_encoder_error_map>
|
|
@@ -45,7 +45,7 @@ const acs_entrance_error = z
|
|
|
45
45
|
)
|
|
46
46
|
|
|
47
47
|
const _acs_entrance_error_map = z.object({
|
|
48
|
-
entrance_removed: entrance_removed.optional()
|
|
48
|
+
entrance_removed: entrance_removed.optional(),
|
|
49
49
|
})
|
|
50
50
|
|
|
51
51
|
export type AcsEntranceErrorMap = z.infer<typeof _acs_entrance_error_map>
|
|
@@ -128,11 +128,11 @@ const acs_entrance_warning = z
|
|
|
128
128
|
|
|
129
129
|
const _acs_entrance_warning_map = z.object({
|
|
130
130
|
salto_ks_entrance_access_code_support_removed:
|
|
131
|
-
salto_ks_entrance_access_code_support_removed.optional()
|
|
132
|
-
entrance_shares_zone: entrance_shares_zone.optional()
|
|
133
|
-
entrance_setup_required: entrance_setup_required.optional()
|
|
134
|
-
salto_ks_privacy_mode: salto_ks_privacy_mode.optional()
|
|
135
|
-
privacy_mode: privacy_mode.optional()
|
|
131
|
+
salto_ks_entrance_access_code_support_removed.optional(),
|
|
132
|
+
entrance_shares_zone: entrance_shares_zone.optional(),
|
|
133
|
+
entrance_setup_required: entrance_setup_required.optional(),
|
|
134
|
+
salto_ks_privacy_mode: salto_ks_privacy_mode.optional(),
|
|
135
|
+
privacy_mode: privacy_mode.optional(),
|
|
136
136
|
})
|
|
137
137
|
|
|
138
138
|
export type AcsEntranceWarningMap = z.infer<typeof _acs_entrance_warning_map>
|
|
@@ -187,24 +187,17 @@ const acs_system_error = z
|
|
|
187
187
|
)
|
|
188
188
|
|
|
189
189
|
const _acs_system_error_map = z.object({
|
|
190
|
-
seam_bridge_disconnected: seam_bridge_disconnected.optional()
|
|
191
|
-
bridge_disconnected: bridge_disconnected.optional()
|
|
192
|
-
visionline_instance_unreachable: visionline_instance_unreachable
|
|
193
|
-
|
|
194
|
-
.
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
account_disconnected: account_disconnected.optional().nullable(),
|
|
202
|
-
salto_ks_certification_expired: salto_ks_certification_expired
|
|
203
|
-
.optional()
|
|
204
|
-
.nullable(),
|
|
205
|
-
provider_service_unavailable: provider_service_unavailable
|
|
206
|
-
.optional()
|
|
207
|
-
.nullable(),
|
|
190
|
+
seam_bridge_disconnected: seam_bridge_disconnected.optional(),
|
|
191
|
+
bridge_disconnected: bridge_disconnected.optional(),
|
|
192
|
+
visionline_instance_unreachable: visionline_instance_unreachable.optional(),
|
|
193
|
+
salto_ks_subscription_limit_exceeded:
|
|
194
|
+
salto_ks_subscription_limit_exceeded.optional(),
|
|
195
|
+
user_license_limit_reached: user_license_limit_reached.optional(),
|
|
196
|
+
insufficient_permissions: insufficient_permissions.optional(),
|
|
197
|
+
acs_system_disconnected: acs_system_disconnected.optional(),
|
|
198
|
+
account_disconnected: account_disconnected.optional(),
|
|
199
|
+
salto_ks_certification_expired: salto_ks_certification_expired.optional(),
|
|
200
|
+
provider_service_unavailable: provider_service_unavailable.optional(),
|
|
208
201
|
})
|
|
209
202
|
|
|
210
203
|
export type AcsSystemErrorMap = z.infer<typeof _acs_system_error_map>
|
|
@@ -284,14 +277,11 @@ const acs_system_warning = z
|
|
|
284
277
|
|
|
285
278
|
const _acs_system_warning_map = z.object({
|
|
286
279
|
salto_ks_subscription_limit_almost_reached:
|
|
287
|
-
salto_ks_subscription_limit_almost_reached.optional()
|
|
288
|
-
time_zone_does_not_match_location:
|
|
289
|
-
.optional()
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
unknown_issue_with_acs_system: unknown_issue_with_acs_system
|
|
293
|
-
.optional()
|
|
294
|
-
.nullable(),
|
|
280
|
+
salto_ks_subscription_limit_almost_reached.optional(),
|
|
281
|
+
time_zone_does_not_match_location:
|
|
282
|
+
time_zone_does_not_match_location.optional(),
|
|
283
|
+
setup_required: setup_required.optional(),
|
|
284
|
+
unknown_issue_with_acs_system: unknown_issue_with_acs_system.optional(),
|
|
295
285
|
})
|
|
296
286
|
|
|
297
287
|
export type AcsSystemWarningMap = z.infer<typeof _acs_system_warning_map>
|
|
@@ -103,21 +103,17 @@ const acs_user_error = z
|
|
|
103
103
|
)
|
|
104
104
|
|
|
105
105
|
const _acs_user_error_map = z.object({
|
|
106
|
-
deleted_externally: acs_user_deleted_externally.optional()
|
|
106
|
+
deleted_externally: acs_user_deleted_externally.optional(),
|
|
107
107
|
salto_ks_subscription_limit_exceeded:
|
|
108
|
-
acs_user_salto_ks_subscription_limit_exceeded.optional()
|
|
109
|
-
failed_to_create_on_acs_system:
|
|
110
|
-
.optional()
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
.
|
|
115
|
-
|
|
116
|
-
.optional()
|
|
117
|
-
.nullable(),
|
|
118
|
-
latch_conflict_with_resident_user: acs_user_latch_conflict_with_resident_user
|
|
119
|
-
.optional()
|
|
120
|
-
.nullable(),
|
|
108
|
+
acs_user_salto_ks_subscription_limit_exceeded.optional(),
|
|
109
|
+
failed_to_create_on_acs_system:
|
|
110
|
+
acs_user_failed_to_create_on_acs_system.optional(),
|
|
111
|
+
failed_to_update_on_acs_system:
|
|
112
|
+
acs_user_failed_to_update_on_acs_system.optional(),
|
|
113
|
+
failed_to_delete_on_acs_system:
|
|
114
|
+
acs_user_failed_to_delete_on_acs_system.optional(),
|
|
115
|
+
latch_conflict_with_resident_user:
|
|
116
|
+
acs_user_latch_conflict_with_resident_user.optional(),
|
|
121
117
|
})
|
|
122
118
|
|
|
123
119
|
export type AcsUserErrorMap = z.infer<typeof _acs_user_error_map>
|
|
@@ -177,15 +173,12 @@ export const latch_resident_user = common_acs_user_warning
|
|
|
177
173
|
)
|
|
178
174
|
|
|
179
175
|
const _acs_user_warning_map = z.object({
|
|
180
|
-
being_deleted: acs_user_being_deleted.optional()
|
|
181
|
-
salto_ks_user_not_subscribed:
|
|
182
|
-
.optional()
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
.optional()
|
|
187
|
-
.nullable(),
|
|
188
|
-
latch_resident_user: latch_resident_user.optional().nullable(),
|
|
176
|
+
being_deleted: acs_user_being_deleted.optional(),
|
|
177
|
+
salto_ks_user_not_subscribed:
|
|
178
|
+
acs_user_salto_ks_user_not_subscribed.optional(),
|
|
179
|
+
acs_user_inactive: acs_user_inactive.optional(),
|
|
180
|
+
unknown_issue_with_acs_user: unknown_issue_with_acs_user.optional(),
|
|
181
|
+
latch_resident_user: latch_resident_user.optional(),
|
|
189
182
|
})
|
|
190
183
|
|
|
191
184
|
export const acs_user_warning = z
|
|
@@ -79,10 +79,8 @@ export type BridgeClientSessionError = z.infer<
|
|
|
79
79
|
>
|
|
80
80
|
|
|
81
81
|
const _bridge_client_session_error_map = z.object({
|
|
82
|
-
bridge_lan_unreachable: bridge_lan_unreachable.optional()
|
|
83
|
-
no_communication_from_bridge: no_communication_from_bridge
|
|
84
|
-
.optional()
|
|
85
|
-
.nullable(),
|
|
82
|
+
bridge_lan_unreachable: bridge_lan_unreachable.optional(),
|
|
83
|
+
no_communication_from_bridge: no_communication_from_bridge.optional(),
|
|
86
84
|
})
|
|
87
85
|
|
|
88
86
|
export type BridgeClientSessionErrorMap = z.infer<
|
|
@@ -149,14 +149,11 @@ export type ConnectedAccountError = z.infer<typeof connected_account_error>
|
|
|
149
149
|
export type ConnectedAccountWarning = z.infer<typeof connected_account_warning>
|
|
150
150
|
|
|
151
151
|
export const connected_account_error_map = z.object({
|
|
152
|
-
account_disconnected: account_disconnected.
|
|
153
|
-
bridge_disconnected: bridge_disconnected.
|
|
154
|
-
salto_ks_subscription_limit_exceeded:
|
|
155
|
-
.
|
|
156
|
-
|
|
157
|
-
dormakaba_sites_disconnected: dormakaba_sites_disconnected
|
|
158
|
-
.nullable()
|
|
159
|
-
.optional(),
|
|
152
|
+
account_disconnected: account_disconnected.optional(),
|
|
153
|
+
bridge_disconnected: bridge_disconnected.optional(),
|
|
154
|
+
salto_ks_subscription_limit_exceeded:
|
|
155
|
+
salto_ks_subscription_limit_exceeded.optional(),
|
|
156
|
+
dormakaba_sites_disconnected: dormakaba_sites_disconnected.optional(),
|
|
160
157
|
})
|
|
161
158
|
|
|
162
159
|
export type ConnectedAccountErrorMap = z.infer<
|
|
@@ -312,23 +309,17 @@ const connected_account_warning = z
|
|
|
312
309
|
.describe('Warning associated with the connected account.')
|
|
313
310
|
|
|
314
311
|
export const connected_account_warning_map = z.object({
|
|
315
|
-
scheduled_maintenance_window: scheduled_maintenance_window
|
|
316
|
-
|
|
317
|
-
.optional(),
|
|
318
|
-
unknown_issue_with_connected_account: unknown_issue_with_connected_account
|
|
319
|
-
.nullable()
|
|
320
|
-
.optional(),
|
|
312
|
+
scheduled_maintenance_window: scheduled_maintenance_window.optional(),
|
|
313
|
+
unknown_issue_with_connected_account:
|
|
314
|
+
unknown_issue_with_connected_account.optional(),
|
|
321
315
|
salto_ks_subscription_limit_almost_reached:
|
|
322
|
-
salto_ks_subscription_limit_almost_reached.
|
|
323
|
-
account_reauthorization_requested:
|
|
324
|
-
.
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
.optional(),
|
|
330
|
-
setup_required: setup_required.nullable().optional(),
|
|
331
|
-
dormakaba_sites_unapproved: dormakaba_sites_unapproved.nullable().optional(),
|
|
316
|
+
salto_ks_subscription_limit_almost_reached.optional(),
|
|
317
|
+
account_reauthorization_requested:
|
|
318
|
+
account_reauthorization_requested.optional(),
|
|
319
|
+
being_deleted: being_deleted.optional(),
|
|
320
|
+
provider_service_unavailable: provider_service_unavailable.optional(),
|
|
321
|
+
setup_required: setup_required.optional(),
|
|
322
|
+
dormakaba_sites_unapproved: dormakaba_sites_unapproved.optional(),
|
|
332
323
|
})
|
|
333
324
|
|
|
334
325
|
export type ConnectedAccountWarningMap = z.infer<
|
|
@@ -81,6 +81,26 @@ export const location_references = z.object({
|
|
|
81
81
|
.describe('Listing keys associated with the access grant.'),
|
|
82
82
|
})
|
|
83
83
|
|
|
84
|
+
export const sub_reservation_resource = base_access_grant_resource
|
|
85
|
+
.extend({
|
|
86
|
+
sub_reservation_key: z
|
|
87
|
+
.string()
|
|
88
|
+
.min(1)
|
|
89
|
+
.refine((val) => val === val.trim(), {
|
|
90
|
+
message: 'Must not have leading or trailing whitespace',
|
|
91
|
+
})
|
|
92
|
+
.describe(
|
|
93
|
+
'Your identifier for the sub-reservation. Must be unique within its reservation.',
|
|
94
|
+
),
|
|
95
|
+
custom_metadata: custom_metadata_input
|
|
96
|
+
.optional()
|
|
97
|
+
.describe(
|
|
98
|
+
"Set key:value pairs for filtering sub-reservations by custom criteria. Merged over the reservation's custom metadata. Set a key to `null` or to an empty string to remove that key from the custom metadata.",
|
|
99
|
+
),
|
|
100
|
+
})
|
|
101
|
+
.merge(user_identity_reference)
|
|
102
|
+
.merge(location_references)
|
|
103
|
+
|
|
84
104
|
export const reservation_resource = base_access_grant_resource
|
|
85
105
|
.extend({
|
|
86
106
|
reservation_key: z
|
|
@@ -95,6 +115,12 @@ export const reservation_resource = base_access_grant_resource
|
|
|
95
115
|
.describe(
|
|
96
116
|
'Set key:value pairs for filtering reservations by custom criteria. Set a key to `null` or to an empty string to remove that key from the custom metadata.',
|
|
97
117
|
),
|
|
118
|
+
sub_reservations: z
|
|
119
|
+
.array(sub_reservation_resource)
|
|
120
|
+
.optional()
|
|
121
|
+
.describe(
|
|
122
|
+
"Parts of the reservation that each get their own access, for example one per room. Each sub-reservation inherits the reservation's name, times, preferred code, guest and custom metadata unless it sets its own, and must set its own location keys. A reservation with sub-reservations must not set location keys itself. Sending this list replaces the reservation's sub-reservations: any not included are removed, and an empty list removes all of them. Omitting it leaves existing sub-reservations unchanged.",
|
|
123
|
+
),
|
|
98
124
|
})
|
|
99
125
|
.merge(user_identity_reference)
|
|
100
126
|
.merge(location_references)
|