@seamapi/types 1.165.0 → 1.167.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/connect.cjs +23 -2
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +59 -2
- package/lib/seam/connect/models/acs/entrance.d.ts +18 -0
- package/lib/seam/connect/models/acs/entrance.js +4 -0
- package/lib/seam/connect/models/acs/entrance.js.map +1 -1
- package/lib/seam/connect/models/events/action-attempts.d.ts +51 -0
- package/lib/seam/connect/models/events/action-attempts.js +33 -0
- package/lib/seam/connect/models/events/action-attempts.js.map +1 -0
- package/lib/seam/connect/models/events/index.d.ts +1 -0
- package/lib/seam/connect/models/events/index.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +35 -0
- package/lib/seam/connect/openapi.js +21 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +24 -2
- package/package.json +1 -1
- package/src/lib/seam/connect/models/acs/entrance.ts +6 -0
- package/src/lib/seam/connect/models/events/action-attempts.ts +36 -0
- package/src/lib/seam/connect/models/events/index.ts +1 -0
- package/src/lib/seam/connect/openapi.ts +21 -0
- package/src/lib/seam/connect/route-types.ts +26 -0
|
@@ -1123,6 +1123,10 @@ export interface Routes {
|
|
|
1123
1123
|
door_type: string;
|
|
1124
1124
|
is_connected: boolean;
|
|
1125
1125
|
} | null;
|
|
1126
|
+
errors: Array<{
|
|
1127
|
+
error_code: string;
|
|
1128
|
+
message: string;
|
|
1129
|
+
}>;
|
|
1126
1130
|
visionline_metadata: {
|
|
1127
1131
|
door_name: string;
|
|
1128
1132
|
door_category: 'entrance' | 'guest' | 'elevator reader' | 'common' | 'common (PMS)';
|
|
@@ -1168,6 +1172,10 @@ export interface Routes {
|
|
|
1168
1172
|
door_type: string;
|
|
1169
1173
|
is_connected: boolean;
|
|
1170
1174
|
} | null;
|
|
1175
|
+
errors: Array<{
|
|
1176
|
+
error_code: string;
|
|
1177
|
+
message: string;
|
|
1178
|
+
}>;
|
|
1171
1179
|
visionline_metadata: {
|
|
1172
1180
|
door_name: string;
|
|
1173
1181
|
door_category: 'entrance' | 'guest' | 'elevator reader' | 'common' | 'common (PMS)';
|
|
@@ -1483,6 +1491,10 @@ export interface Routes {
|
|
|
1483
1491
|
door_type: string;
|
|
1484
1492
|
is_connected: boolean;
|
|
1485
1493
|
} | null;
|
|
1494
|
+
errors: Array<{
|
|
1495
|
+
error_code: string;
|
|
1496
|
+
message: string;
|
|
1497
|
+
}>;
|
|
1486
1498
|
visionline_metadata: {
|
|
1487
1499
|
door_name: string;
|
|
1488
1500
|
door_category: 'entrance' | 'guest' | 'elevator reader' | 'common' | 'common (PMS)';
|
|
@@ -3390,6 +3402,11 @@ export interface Routes {
|
|
|
3390
3402
|
event_id: string;
|
|
3391
3403
|
device_id?: string | undefined;
|
|
3392
3404
|
action_attempt_id?: string | undefined;
|
|
3405
|
+
acs_credential_id?: string | undefined;
|
|
3406
|
+
acs_user_id?: string | undefined;
|
|
3407
|
+
acs_system_id?: string | undefined;
|
|
3408
|
+
client_session_id?: string | undefined;
|
|
3409
|
+
enrollment_automation_id?: string | undefined;
|
|
3393
3410
|
event_type: string;
|
|
3394
3411
|
workspace_id: string;
|
|
3395
3412
|
created_at: string;
|
|
@@ -3410,8 +3427,8 @@ export interface Routes {
|
|
|
3410
3427
|
device_ids?: string[] | undefined;
|
|
3411
3428
|
access_code_id?: string | undefined;
|
|
3412
3429
|
access_code_ids?: string[] | undefined;
|
|
3413
|
-
event_type?: ('device.connected' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.removed' | 'device.deleted' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | 'device.third_party_integration_detected' | 'device.third_party_integration_no_longer_detected' | 'device.salto.privacy_mode_activated' | 'device.salto.privacy_mode_deactivated' | 'device.connection_became_flaky' | 'device.connection_stabilized' | 'device.error.subscription_required' | 'device.error.subscription_required.resolved' | 'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.deleted' | 'access_code.removed_from_device' | 'access_code.failed_to_set_on_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_remove_from_device' | 'access_code.delay_in_removing_from_device' | 'access_code.deleted_external_to_seam' | 'access_code.modified_external_to_seam' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'lock.locked' | 'lock.unlocked' | 'phone.deactivated' | 'connected_account.connected' | 'connected_account.successful_login' | 'connected_account.created' | 'connected_account.deleted' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.completed_first_sync_after_reconnection' | 'noise_sensor.noise_threshold_triggered' | 'access_code.backup_access_code_pulled' | 'acs_user.deleted' | 'acs_credential.deleted' | 'enrollment_automation.deleted' | 'client_session.deleted') | undefined;
|
|
3414
|
-
event_types?: Array<'device.connected' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.removed' | 'device.deleted' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | 'device.third_party_integration_detected' | 'device.third_party_integration_no_longer_detected' | 'device.salto.privacy_mode_activated' | 'device.salto.privacy_mode_deactivated' | 'device.connection_became_flaky' | 'device.connection_stabilized' | 'device.error.subscription_required' | 'device.error.subscription_required.resolved' | 'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.deleted' | 'access_code.removed_from_device' | 'access_code.failed_to_set_on_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_remove_from_device' | 'access_code.delay_in_removing_from_device' | 'access_code.deleted_external_to_seam' | 'access_code.modified_external_to_seam' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'lock.locked' | 'lock.unlocked' | 'phone.deactivated' | 'connected_account.connected' | 'connected_account.successful_login' | 'connected_account.created' | 'connected_account.deleted' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.completed_first_sync_after_reconnection' | 'noise_sensor.noise_threshold_triggered' | 'access_code.backup_access_code_pulled' | 'acs_user.deleted' | 'acs_credential.deleted' | 'enrollment_automation.deleted' | 'client_session.deleted'> | undefined;
|
|
3430
|
+
event_type?: ('device.connected' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.removed' | 'device.deleted' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | 'device.third_party_integration_detected' | 'device.third_party_integration_no_longer_detected' | 'device.salto.privacy_mode_activated' | 'device.salto.privacy_mode_deactivated' | 'device.connection_became_flaky' | 'device.connection_stabilized' | 'device.error.subscription_required' | 'device.error.subscription_required.resolved' | 'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.deleted' | 'access_code.removed_from_device' | 'access_code.failed_to_set_on_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_remove_from_device' | 'access_code.delay_in_removing_from_device' | 'access_code.deleted_external_to_seam' | 'access_code.modified_external_to_seam' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'lock.locked' | 'lock.unlocked' | 'phone.deactivated' | 'connected_account.connected' | 'connected_account.successful_login' | 'connected_account.created' | 'connected_account.deleted' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.completed_first_sync_after_reconnection' | 'noise_sensor.noise_threshold_triggered' | 'access_code.backup_access_code_pulled' | 'acs_user.deleted' | 'acs_credential.deleted' | 'enrollment_automation.deleted' | 'client_session.deleted' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed') | undefined;
|
|
3431
|
+
event_types?: Array<'device.connected' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.removed' | 'device.deleted' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | 'device.third_party_integration_detected' | 'device.third_party_integration_no_longer_detected' | 'device.salto.privacy_mode_activated' | 'device.salto.privacy_mode_deactivated' | 'device.connection_became_flaky' | 'device.connection_stabilized' | 'device.error.subscription_required' | 'device.error.subscription_required.resolved' | 'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.deleted' | 'access_code.removed_from_device' | 'access_code.failed_to_set_on_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_remove_from_device' | 'access_code.delay_in_removing_from_device' | 'access_code.deleted_external_to_seam' | 'access_code.modified_external_to_seam' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'lock.locked' | 'lock.unlocked' | 'phone.deactivated' | 'connected_account.connected' | 'connected_account.successful_login' | 'connected_account.created' | 'connected_account.deleted' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.completed_first_sync_after_reconnection' | 'noise_sensor.noise_threshold_triggered' | 'access_code.backup_access_code_pulled' | 'acs_user.deleted' | 'acs_credential.deleted' | 'enrollment_automation.deleted' | 'client_session.deleted' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed'> | undefined;
|
|
3415
3432
|
connected_account_id?: string | undefined;
|
|
3416
3433
|
limit?: number;
|
|
3417
3434
|
};
|
|
@@ -3421,6 +3438,11 @@ export interface Routes {
|
|
|
3421
3438
|
event_id: string;
|
|
3422
3439
|
device_id?: string | undefined;
|
|
3423
3440
|
action_attempt_id?: string | undefined;
|
|
3441
|
+
acs_credential_id?: string | undefined;
|
|
3442
|
+
acs_user_id?: string | undefined;
|
|
3443
|
+
acs_system_id?: string | undefined;
|
|
3444
|
+
client_session_id?: string | undefined;
|
|
3445
|
+
enrollment_automation_id?: string | undefined;
|
|
3424
3446
|
event_type: string;
|
|
3425
3447
|
workspace_id: string;
|
|
3426
3448
|
created_at: string;
|
package/package.json
CHANGED
|
@@ -13,6 +13,12 @@ export const acs_entrance = z.object({
|
|
|
13
13
|
acs_system_id: z.string().uuid(),
|
|
14
14
|
created_at: z.string().datetime(),
|
|
15
15
|
latch_metadata: acs_entrance_latch_metadata.nullable(),
|
|
16
|
+
errors: z.array(
|
|
17
|
+
z.object({
|
|
18
|
+
error_code: z.string(),
|
|
19
|
+
message: z.string(),
|
|
20
|
+
}),
|
|
21
|
+
),
|
|
16
22
|
visionline_metadata: z
|
|
17
23
|
.object({
|
|
18
24
|
door_name: z.string(),
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
|
|
3
|
+
import { common_event } from './common.js'
|
|
4
|
+
|
|
5
|
+
const action_attempt_event = common_event.extend({
|
|
6
|
+
action_attempt_id: z.string().uuid().describe(`
|
|
7
|
+
---
|
|
8
|
+
title: Action Attempt ID
|
|
9
|
+
---
|
|
10
|
+
The ID of the action attempt.
|
|
11
|
+
`),
|
|
12
|
+
action_type: z.string().describe(`
|
|
13
|
+
---
|
|
14
|
+
title: Action Type
|
|
15
|
+
---
|
|
16
|
+
The type of action.
|
|
17
|
+
`),
|
|
18
|
+
status: z.string().describe(`
|
|
19
|
+
---
|
|
20
|
+
title: Status
|
|
21
|
+
---
|
|
22
|
+
The status of the action.
|
|
23
|
+
`),
|
|
24
|
+
})
|
|
25
|
+
|
|
26
|
+
export const action_attempt_lock_door_succeeded_event = action_attempt_event
|
|
27
|
+
.extend({
|
|
28
|
+
event_type: z.literal('action_attempt.lock_door.succeeded'),
|
|
29
|
+
})
|
|
30
|
+
.describe('A lock door action attempt succeeded.')
|
|
31
|
+
|
|
32
|
+
export const action_attempt_lock_door_failed_event = action_attempt_event
|
|
33
|
+
.extend({
|
|
34
|
+
event_type: z.literal('action_attempt.lock_door.failed'),
|
|
35
|
+
})
|
|
36
|
+
.describe('A lock door action attempt failed.')
|
|
@@ -313,6 +313,17 @@ export default {
|
|
|
313
313
|
acs_system_id: { format: 'uuid', type: 'string' },
|
|
314
314
|
created_at: { format: 'date-time', type: 'string' },
|
|
315
315
|
display_name: { type: 'string' },
|
|
316
|
+
errors: {
|
|
317
|
+
items: {
|
|
318
|
+
properties: {
|
|
319
|
+
error_code: { type: 'string' },
|
|
320
|
+
message: { type: 'string' },
|
|
321
|
+
},
|
|
322
|
+
required: ['error_code', 'message'],
|
|
323
|
+
type: 'object',
|
|
324
|
+
},
|
|
325
|
+
type: 'array',
|
|
326
|
+
},
|
|
316
327
|
latch_metadata: {
|
|
317
328
|
nullable: true,
|
|
318
329
|
properties: {
|
|
@@ -371,6 +382,7 @@ export default {
|
|
|
371
382
|
'acs_system_id',
|
|
372
383
|
'created_at',
|
|
373
384
|
'latch_metadata',
|
|
385
|
+
'errors',
|
|
374
386
|
'visionline_metadata',
|
|
375
387
|
],
|
|
376
388
|
type: 'object',
|
|
@@ -2085,9 +2097,14 @@ export default {
|
|
|
2085
2097
|
},
|
|
2086
2098
|
event: {
|
|
2087
2099
|
properties: {
|
|
2100
|
+
acs_credential_id: { format: 'uuid', type: 'string' },
|
|
2101
|
+
acs_system_id: { format: 'uuid', type: 'string' },
|
|
2102
|
+
acs_user_id: { format: 'uuid', type: 'string' },
|
|
2088
2103
|
action_attempt_id: { format: 'uuid', type: 'string' },
|
|
2104
|
+
client_session_id: { format: 'uuid', type: 'string' },
|
|
2089
2105
|
created_at: { format: 'date-time', type: 'string' },
|
|
2090
2106
|
device_id: { format: 'uuid', type: 'string' },
|
|
2107
|
+
enrollment_automation_id: { format: 'uuid', type: 'string' },
|
|
2091
2108
|
event_id: { format: 'uuid', type: 'string' },
|
|
2092
2109
|
event_type: { type: 'string' },
|
|
2093
2110
|
occurred_at: { format: 'date-time', type: 'string' },
|
|
@@ -7927,6 +7944,8 @@ export default {
|
|
|
7927
7944
|
'acs_credential.deleted',
|
|
7928
7945
|
'enrollment_automation.deleted',
|
|
7929
7946
|
'client_session.deleted',
|
|
7947
|
+
'action_attempt.lock_door.succeeded',
|
|
7948
|
+
'action_attempt.lock_door.failed',
|
|
7930
7949
|
],
|
|
7931
7950
|
type: 'string',
|
|
7932
7951
|
},
|
|
@@ -7986,6 +8005,8 @@ export default {
|
|
|
7986
8005
|
'acs_credential.deleted',
|
|
7987
8006
|
'enrollment_automation.deleted',
|
|
7988
8007
|
'client_session.deleted',
|
|
8008
|
+
'action_attempt.lock_door.succeeded',
|
|
8009
|
+
'action_attempt.lock_door.failed',
|
|
7989
8010
|
],
|
|
7990
8011
|
type: 'string',
|
|
7991
8012
|
},
|
|
@@ -1224,6 +1224,10 @@ export interface Routes {
|
|
|
1224
1224
|
door_type: string
|
|
1225
1225
|
is_connected: boolean
|
|
1226
1226
|
} | null
|
|
1227
|
+
errors: Array<{
|
|
1228
|
+
error_code: string
|
|
1229
|
+
message: string
|
|
1230
|
+
}>
|
|
1227
1231
|
visionline_metadata: {
|
|
1228
1232
|
door_name: string
|
|
1229
1233
|
door_category:
|
|
@@ -1276,6 +1280,10 @@ export interface Routes {
|
|
|
1276
1280
|
door_type: string
|
|
1277
1281
|
is_connected: boolean
|
|
1278
1282
|
} | null
|
|
1283
|
+
errors: Array<{
|
|
1284
|
+
error_code: string
|
|
1285
|
+
message: string
|
|
1286
|
+
}>
|
|
1279
1287
|
visionline_metadata: {
|
|
1280
1288
|
door_name: string
|
|
1281
1289
|
door_category:
|
|
@@ -1683,6 +1691,10 @@ export interface Routes {
|
|
|
1683
1691
|
door_type: string
|
|
1684
1692
|
is_connected: boolean
|
|
1685
1693
|
} | null
|
|
1694
|
+
errors: Array<{
|
|
1695
|
+
error_code: string
|
|
1696
|
+
message: string
|
|
1697
|
+
}>
|
|
1686
1698
|
visionline_metadata: {
|
|
1687
1699
|
door_name: string
|
|
1688
1700
|
door_category:
|
|
@@ -4514,6 +4526,11 @@ export interface Routes {
|
|
|
4514
4526
|
event_id: string
|
|
4515
4527
|
device_id?: string | undefined
|
|
4516
4528
|
action_attempt_id?: string | undefined
|
|
4529
|
+
acs_credential_id?: string | undefined
|
|
4530
|
+
acs_user_id?: string | undefined
|
|
4531
|
+
acs_system_id?: string | undefined
|
|
4532
|
+
client_session_id?: string | undefined
|
|
4533
|
+
enrollment_automation_id?: string | undefined
|
|
4517
4534
|
event_type: string
|
|
4518
4535
|
workspace_id: string
|
|
4519
4536
|
created_at: string
|
|
@@ -4590,6 +4607,8 @@ export interface Routes {
|
|
|
4590
4607
|
| 'acs_credential.deleted'
|
|
4591
4608
|
| 'enrollment_automation.deleted'
|
|
4592
4609
|
| 'client_session.deleted'
|
|
4610
|
+
| 'action_attempt.lock_door.succeeded'
|
|
4611
|
+
| 'action_attempt.lock_door.failed'
|
|
4593
4612
|
)
|
|
4594
4613
|
| undefined
|
|
4595
4614
|
event_types?:
|
|
@@ -4647,6 +4666,8 @@ export interface Routes {
|
|
|
4647
4666
|
| 'acs_credential.deleted'
|
|
4648
4667
|
| 'enrollment_automation.deleted'
|
|
4649
4668
|
| 'client_session.deleted'
|
|
4669
|
+
| 'action_attempt.lock_door.succeeded'
|
|
4670
|
+
| 'action_attempt.lock_door.failed'
|
|
4650
4671
|
>
|
|
4651
4672
|
| undefined
|
|
4652
4673
|
connected_account_id?: string | undefined
|
|
@@ -4658,6 +4679,11 @@ export interface Routes {
|
|
|
4658
4679
|
event_id: string
|
|
4659
4680
|
device_id?: string | undefined
|
|
4660
4681
|
action_attempt_id?: string | undefined
|
|
4682
|
+
acs_credential_id?: string | undefined
|
|
4683
|
+
acs_user_id?: string | undefined
|
|
4684
|
+
acs_system_id?: string | undefined
|
|
4685
|
+
client_session_id?: string | undefined
|
|
4686
|
+
enrollment_automation_id?: string | undefined
|
|
4661
4687
|
event_type: string
|
|
4662
4688
|
workspace_id: string
|
|
4663
4689
|
created_at: string
|