@seamapi/types 1.185.0 → 1.187.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 +365 -30
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +726 -86
- package/lib/seam/connect/model-types.d.ts +1 -1
- package/lib/seam/connect/models/acs/acs-credential.d.ts +0 -17
- package/lib/seam/connect/models/acs/acs-credential.js +1 -6
- package/lib/seam/connect/models/acs/acs-credential.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-entrance.d.ts +36 -53
- package/lib/seam/connect/models/acs/acs-entrance.js +5 -31
- package/lib/seam/connect/models/acs/acs-entrance.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-system.d.ts +87 -24
- package/lib/seam/connect/models/acs/acs-system.js +33 -18
- package/lib/seam/connect/models/acs/acs-system.js.map +1 -1
- package/lib/seam/connect/models/acs/index.d.ts +1 -0
- package/lib/seam/connect/models/acs/index.js +1 -0
- package/lib/seam/connect/models/acs/index.js.map +1 -1
- package/lib/seam/connect/models/acs/metadata/index.d.ts +2 -0
- package/lib/seam/connect/models/acs/metadata/index.js +3 -0
- package/lib/seam/connect/models/acs/metadata/index.js.map +1 -0
- package/lib/seam/connect/models/acs/metadata/latch.d.ts +18 -0
- package/lib/seam/connect/models/acs/metadata/latch.js +8 -0
- package/lib/seam/connect/models/acs/metadata/latch.js.map +1 -0
- package/lib/seam/connect/models/acs/metadata/visionline.d.ts +47 -0
- package/lib/seam/connect/models/acs/metadata/visionline.js +24 -0
- package/lib/seam/connect/models/acs/metadata/visionline.js.map +1 -0
- package/lib/seam/connect/models/devices/managed-device.d.ts +12 -0
- package/lib/seam/connect/models/devices/managed-device.js +2 -0
- package/lib/seam/connect/models/devices/managed-device.js.map +1 -1
- package/lib/seam/connect/models/devices/phone.d.ts +6 -0
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +6 -0
- package/lib/seam/connect/openapi.d.ts +160 -20
- package/lib/seam/connect/openapi.js +137 -21
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +122 -64
- package/lib/seam/connect/schemas.d.ts +1 -1
- package/lib/seam/connect/schemas.js +1 -1
- package/lib/seam/connect/schemas.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/seam/connect/model-types.ts +5 -0
- package/src/lib/seam/connect/models/acs/acs-credential.ts +2 -11
- package/src/lib/seam/connect/models/acs/acs-entrance.ts +8 -37
- package/src/lib/seam/connect/models/acs/acs-system.ts +45 -23
- package/src/lib/seam/connect/models/acs/index.ts +1 -0
- package/src/lib/seam/connect/models/acs/metadata/index.ts +2 -0
- package/src/lib/seam/connect/models/acs/metadata/latch.ts +12 -0
- package/src/lib/seam/connect/models/acs/metadata/visionline.ts +35 -0
- package/src/lib/seam/connect/models/devices/managed-device.ts +2 -0
- package/src/lib/seam/connect/openapi.ts +137 -21
- package/src/lib/seam/connect/route-types.ts +226 -124
- package/src/lib/seam/connect/schemas.ts +5 -0
|
@@ -3291,28 +3291,28 @@ export interface Routes {
|
|
|
3291
3291
|
formData: {};
|
|
3292
3292
|
jsonResponse: {
|
|
3293
3293
|
acs_entrances: Array<{
|
|
3294
|
-
acs_entrance_id: string;
|
|
3295
|
-
display_name: string;
|
|
3296
3294
|
acs_system_id: string;
|
|
3295
|
+
acs_entrance_id: string;
|
|
3297
3296
|
created_at: string;
|
|
3298
|
-
|
|
3299
|
-
accessibility_type: string;
|
|
3300
|
-
door_name: string;
|
|
3301
|
-
door_type: string;
|
|
3302
|
-
is_connected: boolean;
|
|
3303
|
-
} | null;
|
|
3297
|
+
display_name: string;
|
|
3304
3298
|
errors: Array<{
|
|
3305
3299
|
error_code: string;
|
|
3306
3300
|
message: string;
|
|
3307
3301
|
}>;
|
|
3308
|
-
|
|
3302
|
+
latch_metadata?: {
|
|
3303
|
+
accessibility_type: string;
|
|
3304
|
+
door_name: string;
|
|
3305
|
+
door_type: string;
|
|
3306
|
+
is_connected: boolean;
|
|
3307
|
+
} | undefined;
|
|
3308
|
+
visionline_metadata?: {
|
|
3309
3309
|
door_name: string;
|
|
3310
3310
|
door_category: 'entrance' | 'guest' | 'elevator reader' | 'common' | 'common (PMS)';
|
|
3311
3311
|
profiles?: Array<{
|
|
3312
3312
|
visionline_door_profile_id: string;
|
|
3313
3313
|
visionline_door_profile_type: 'BLE' | 'commonDoor' | 'touch';
|
|
3314
3314
|
}> | undefined;
|
|
3315
|
-
} |
|
|
3315
|
+
} | undefined;
|
|
3316
3316
|
}>;
|
|
3317
3317
|
};
|
|
3318
3318
|
};
|
|
@@ -3420,28 +3420,28 @@ export interface Routes {
|
|
|
3420
3420
|
formData: {};
|
|
3421
3421
|
jsonResponse: {
|
|
3422
3422
|
acs_entrance: {
|
|
3423
|
-
acs_entrance_id: string;
|
|
3424
|
-
display_name: string;
|
|
3425
3423
|
acs_system_id: string;
|
|
3424
|
+
acs_entrance_id: string;
|
|
3426
3425
|
created_at: string;
|
|
3427
|
-
|
|
3428
|
-
accessibility_type: string;
|
|
3429
|
-
door_name: string;
|
|
3430
|
-
door_type: string;
|
|
3431
|
-
is_connected: boolean;
|
|
3432
|
-
} | null;
|
|
3426
|
+
display_name: string;
|
|
3433
3427
|
errors: Array<{
|
|
3434
3428
|
error_code: string;
|
|
3435
3429
|
message: string;
|
|
3436
3430
|
}>;
|
|
3437
|
-
|
|
3431
|
+
latch_metadata?: {
|
|
3432
|
+
accessibility_type: string;
|
|
3433
|
+
door_name: string;
|
|
3434
|
+
door_type: string;
|
|
3435
|
+
is_connected: boolean;
|
|
3436
|
+
} | undefined;
|
|
3437
|
+
visionline_metadata?: {
|
|
3438
3438
|
door_name: string;
|
|
3439
3439
|
door_category: 'entrance' | 'guest' | 'elevator reader' | 'common' | 'common (PMS)';
|
|
3440
3440
|
profiles?: Array<{
|
|
3441
3441
|
visionline_door_profile_id: string;
|
|
3442
3442
|
visionline_door_profile_type: 'BLE' | 'commonDoor' | 'touch';
|
|
3443
3443
|
}> | undefined;
|
|
3444
|
-
} |
|
|
3444
|
+
} | undefined;
|
|
3445
3445
|
};
|
|
3446
3446
|
};
|
|
3447
3447
|
};
|
|
@@ -3469,28 +3469,28 @@ export interface Routes {
|
|
|
3469
3469
|
formData: {};
|
|
3470
3470
|
jsonResponse: {
|
|
3471
3471
|
acs_entrances: Array<{
|
|
3472
|
-
acs_entrance_id: string;
|
|
3473
|
-
display_name: string;
|
|
3474
3472
|
acs_system_id: string;
|
|
3473
|
+
acs_entrance_id: string;
|
|
3475
3474
|
created_at: string;
|
|
3476
|
-
|
|
3477
|
-
accessibility_type: string;
|
|
3478
|
-
door_name: string;
|
|
3479
|
-
door_type: string;
|
|
3480
|
-
is_connected: boolean;
|
|
3481
|
-
} | null;
|
|
3475
|
+
display_name: string;
|
|
3482
3476
|
errors: Array<{
|
|
3483
3477
|
error_code: string;
|
|
3484
3478
|
message: string;
|
|
3485
3479
|
}>;
|
|
3486
|
-
|
|
3480
|
+
latch_metadata?: {
|
|
3481
|
+
accessibility_type: string;
|
|
3482
|
+
door_name: string;
|
|
3483
|
+
door_type: string;
|
|
3484
|
+
is_connected: boolean;
|
|
3485
|
+
} | undefined;
|
|
3486
|
+
visionline_metadata?: {
|
|
3487
3487
|
door_name: string;
|
|
3488
3488
|
door_category: 'entrance' | 'guest' | 'elevator reader' | 'common' | 'common (PMS)';
|
|
3489
3489
|
profiles?: Array<{
|
|
3490
3490
|
visionline_door_profile_id: string;
|
|
3491
3491
|
visionline_door_profile_type: 'BLE' | 'commonDoor' | 'touch';
|
|
3492
3492
|
}> | undefined;
|
|
3493
|
-
} |
|
|
3493
|
+
} | undefined;
|
|
3494
3494
|
}>;
|
|
3495
3495
|
};
|
|
3496
3496
|
};
|
|
@@ -3573,13 +3573,15 @@ export interface Routes {
|
|
|
3573
3573
|
image_url: string;
|
|
3574
3574
|
image_alt_text: string;
|
|
3575
3575
|
errors: Array<{
|
|
3576
|
-
|
|
3576
|
+
created_at: string;
|
|
3577
3577
|
message: string;
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3578
|
+
error_code: 'seam_bridge_disconnected';
|
|
3579
|
+
} | {
|
|
3580
|
+
created_at: string;
|
|
3581
3581
|
message: string;
|
|
3582
|
+
error_code: 'visionline_instance_unreachable';
|
|
3582
3583
|
}>;
|
|
3584
|
+
warnings: Array<{}>;
|
|
3583
3585
|
can_automate_enrollment?: boolean | undefined;
|
|
3584
3586
|
can_create_acs_access_groups?: boolean | undefined;
|
|
3585
3587
|
can_remove_acs_users_from_acs_access_groups?: boolean | undefined;
|
|
@@ -3620,13 +3622,15 @@ export interface Routes {
|
|
|
3620
3622
|
image_url: string;
|
|
3621
3623
|
image_alt_text: string;
|
|
3622
3624
|
errors: Array<{
|
|
3623
|
-
|
|
3625
|
+
created_at: string;
|
|
3624
3626
|
message: string;
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3627
|
+
error_code: 'seam_bridge_disconnected';
|
|
3628
|
+
} | {
|
|
3629
|
+
created_at: string;
|
|
3628
3630
|
message: string;
|
|
3631
|
+
error_code: 'visionline_instance_unreachable';
|
|
3629
3632
|
}>;
|
|
3633
|
+
warnings: Array<{}>;
|
|
3630
3634
|
can_automate_enrollment?: boolean | undefined;
|
|
3631
3635
|
can_create_acs_access_groups?: boolean | undefined;
|
|
3632
3636
|
can_remove_acs_users_from_acs_access_groups?: boolean | undefined;
|
|
@@ -3667,13 +3671,15 @@ export interface Routes {
|
|
|
3667
3671
|
image_url: string;
|
|
3668
3672
|
image_alt_text: string;
|
|
3669
3673
|
errors: Array<{
|
|
3670
|
-
|
|
3674
|
+
created_at: string;
|
|
3671
3675
|
message: string;
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3676
|
+
error_code: 'seam_bridge_disconnected';
|
|
3677
|
+
} | {
|
|
3678
|
+
created_at: string;
|
|
3675
3679
|
message: string;
|
|
3680
|
+
error_code: 'visionline_instance_unreachable';
|
|
3676
3681
|
}>;
|
|
3682
|
+
warnings: Array<{}>;
|
|
3677
3683
|
can_automate_enrollment?: boolean | undefined;
|
|
3678
3684
|
can_create_acs_access_groups?: boolean | undefined;
|
|
3679
3685
|
can_remove_acs_users_from_acs_access_groups?: boolean | undefined;
|
|
@@ -3853,28 +3859,28 @@ export interface Routes {
|
|
|
3853
3859
|
formData: {};
|
|
3854
3860
|
jsonResponse: {
|
|
3855
3861
|
acs_entrances: Array<{
|
|
3856
|
-
acs_entrance_id: string;
|
|
3857
|
-
display_name: string;
|
|
3858
3862
|
acs_system_id: string;
|
|
3863
|
+
acs_entrance_id: string;
|
|
3859
3864
|
created_at: string;
|
|
3860
|
-
|
|
3861
|
-
accessibility_type: string;
|
|
3862
|
-
door_name: string;
|
|
3863
|
-
door_type: string;
|
|
3864
|
-
is_connected: boolean;
|
|
3865
|
-
} | null;
|
|
3865
|
+
display_name: string;
|
|
3866
3866
|
errors: Array<{
|
|
3867
3867
|
error_code: string;
|
|
3868
3868
|
message: string;
|
|
3869
3869
|
}>;
|
|
3870
|
-
|
|
3870
|
+
latch_metadata?: {
|
|
3871
|
+
accessibility_type: string;
|
|
3872
|
+
door_name: string;
|
|
3873
|
+
door_type: string;
|
|
3874
|
+
is_connected: boolean;
|
|
3875
|
+
} | undefined;
|
|
3876
|
+
visionline_metadata?: {
|
|
3871
3877
|
door_name: string;
|
|
3872
3878
|
door_category: 'entrance' | 'guest' | 'elevator reader' | 'common' | 'common (PMS)';
|
|
3873
3879
|
profiles?: Array<{
|
|
3874
3880
|
visionline_door_profile_id: string;
|
|
3875
3881
|
visionline_door_profile_type: 'BLE' | 'commonDoor' | 'touch';
|
|
3876
3882
|
}> | undefined;
|
|
3877
|
-
} |
|
|
3883
|
+
} | undefined;
|
|
3878
3884
|
}>;
|
|
3879
3885
|
};
|
|
3880
3886
|
};
|
|
@@ -6094,6 +6100,8 @@ export interface Routes {
|
|
|
6094
6100
|
can_program_offline_access_codes?: boolean | undefined;
|
|
6095
6101
|
can_program_online_access_codes?: boolean | undefined;
|
|
6096
6102
|
can_simulate_removal?: boolean | undefined;
|
|
6103
|
+
can_simulate_connection?: boolean | undefined;
|
|
6104
|
+
can_simulate_disconnection?: boolean | undefined;
|
|
6097
6105
|
};
|
|
6098
6106
|
};
|
|
6099
6107
|
};
|
|
@@ -6115,8 +6123,8 @@ export interface Routes {
|
|
|
6115
6123
|
created_before?: Date | undefined;
|
|
6116
6124
|
user_identifier_key?: string | undefined;
|
|
6117
6125
|
custom_metadata_has?: Record<string, string | boolean> | undefined;
|
|
6118
|
-
include_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_offline_access_codes' | 'can_program_online_access_codes' | 'can_simulate_removal'> | undefined;
|
|
6119
|
-
exclude_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_offline_access_codes' | 'can_program_online_access_codes' | 'can_simulate_removal'> | undefined;
|
|
6126
|
+
include_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_offline_access_codes' | 'can_program_online_access_codes' | 'can_simulate_removal' | 'can_simulate_connection' | 'can_simulate_disconnection'> | undefined;
|
|
6127
|
+
exclude_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_offline_access_codes' | 'can_program_online_access_codes' | 'can_simulate_removal' | 'can_simulate_connection' | 'can_simulate_disconnection'> | undefined;
|
|
6120
6128
|
};
|
|
6121
6129
|
formData: {};
|
|
6122
6130
|
jsonResponse: {
|
|
@@ -6640,6 +6648,8 @@ export interface Routes {
|
|
|
6640
6648
|
can_program_offline_access_codes?: boolean | undefined;
|
|
6641
6649
|
can_program_online_access_codes?: boolean | undefined;
|
|
6642
6650
|
can_simulate_removal?: boolean | undefined;
|
|
6651
|
+
can_simulate_connection?: boolean | undefined;
|
|
6652
|
+
can_simulate_disconnection?: boolean | undefined;
|
|
6643
6653
|
}>;
|
|
6644
6654
|
};
|
|
6645
6655
|
};
|
|
@@ -6661,6 +6671,28 @@ export interface Routes {
|
|
|
6661
6671
|
}>;
|
|
6662
6672
|
};
|
|
6663
6673
|
};
|
|
6674
|
+
'/devices/simulate/connect': {
|
|
6675
|
+
route: '/devices/simulate/connect';
|
|
6676
|
+
method: 'POST';
|
|
6677
|
+
queryParams: {};
|
|
6678
|
+
jsonBody: {
|
|
6679
|
+
device_id: string;
|
|
6680
|
+
};
|
|
6681
|
+
commonParams: {};
|
|
6682
|
+
formData: {};
|
|
6683
|
+
jsonResponse: {};
|
|
6684
|
+
};
|
|
6685
|
+
'/devices/simulate/disconnect': {
|
|
6686
|
+
route: '/devices/simulate/disconnect';
|
|
6687
|
+
method: 'POST';
|
|
6688
|
+
queryParams: {};
|
|
6689
|
+
jsonBody: {
|
|
6690
|
+
device_id: string;
|
|
6691
|
+
};
|
|
6692
|
+
commonParams: {};
|
|
6693
|
+
formData: {};
|
|
6694
|
+
jsonResponse: {};
|
|
6695
|
+
};
|
|
6664
6696
|
'/devices/simulate/remove': {
|
|
6665
6697
|
route: '/devices/simulate/remove';
|
|
6666
6698
|
method: 'DELETE' | 'POST';
|
|
@@ -6769,6 +6801,8 @@ export interface Routes {
|
|
|
6769
6801
|
can_program_offline_access_codes?: boolean | undefined;
|
|
6770
6802
|
can_program_online_access_codes?: boolean | undefined;
|
|
6771
6803
|
can_simulate_removal?: boolean | undefined;
|
|
6804
|
+
can_simulate_connection?: boolean | undefined;
|
|
6805
|
+
can_simulate_disconnection?: boolean | undefined;
|
|
6772
6806
|
};
|
|
6773
6807
|
};
|
|
6774
6808
|
};
|
|
@@ -6790,8 +6824,8 @@ export interface Routes {
|
|
|
6790
6824
|
created_before?: Date | undefined;
|
|
6791
6825
|
user_identifier_key?: string | undefined;
|
|
6792
6826
|
custom_metadata_has?: Record<string, string | boolean> | undefined;
|
|
6793
|
-
include_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_offline_access_codes' | 'can_program_online_access_codes' | 'can_simulate_removal'> | undefined;
|
|
6794
|
-
exclude_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_offline_access_codes' | 'can_program_online_access_codes' | 'can_simulate_removal'> | undefined;
|
|
6827
|
+
include_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_offline_access_codes' | 'can_program_online_access_codes' | 'can_simulate_removal' | 'can_simulate_connection' | 'can_simulate_disconnection'> | undefined;
|
|
6828
|
+
exclude_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_offline_access_codes' | 'can_program_online_access_codes' | 'can_simulate_removal' | 'can_simulate_connection' | 'can_simulate_disconnection'> | undefined;
|
|
6795
6829
|
};
|
|
6796
6830
|
formData: {};
|
|
6797
6831
|
jsonResponse: {
|
|
@@ -6881,6 +6915,8 @@ export interface Routes {
|
|
|
6881
6915
|
can_program_offline_access_codes?: boolean | undefined;
|
|
6882
6916
|
can_program_online_access_codes?: boolean | undefined;
|
|
6883
6917
|
can_simulate_removal?: boolean | undefined;
|
|
6918
|
+
can_simulate_connection?: boolean | undefined;
|
|
6919
|
+
can_simulate_disconnection?: boolean | undefined;
|
|
6884
6920
|
}>;
|
|
6885
6921
|
};
|
|
6886
6922
|
};
|
|
@@ -7508,6 +7544,8 @@ export interface Routes {
|
|
|
7508
7544
|
can_program_offline_access_codes?: boolean | undefined;
|
|
7509
7545
|
can_program_online_access_codes?: boolean | undefined;
|
|
7510
7546
|
can_simulate_removal?: boolean | undefined;
|
|
7547
|
+
can_simulate_connection?: boolean | undefined;
|
|
7548
|
+
can_simulate_disconnection?: boolean | undefined;
|
|
7511
7549
|
};
|
|
7512
7550
|
device: {
|
|
7513
7551
|
/** Unique identifier for the device. */
|
|
@@ -8029,6 +8067,8 @@ export interface Routes {
|
|
|
8029
8067
|
can_program_offline_access_codes?: boolean | undefined;
|
|
8030
8068
|
can_program_online_access_codes?: boolean | undefined;
|
|
8031
8069
|
can_simulate_removal?: boolean | undefined;
|
|
8070
|
+
can_simulate_connection?: boolean | undefined;
|
|
8071
|
+
can_simulate_disconnection?: boolean | undefined;
|
|
8032
8072
|
};
|
|
8033
8073
|
};
|
|
8034
8074
|
};
|
|
@@ -8050,8 +8090,8 @@ export interface Routes {
|
|
|
8050
8090
|
created_before?: Date | undefined;
|
|
8051
8091
|
user_identifier_key?: string | undefined;
|
|
8052
8092
|
custom_metadata_has?: Record<string, string | boolean> | undefined;
|
|
8053
|
-
include_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_offline_access_codes' | 'can_program_online_access_codes' | 'can_simulate_removal'> | undefined;
|
|
8054
|
-
exclude_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_offline_access_codes' | 'can_program_online_access_codes' | 'can_simulate_removal'> | undefined;
|
|
8093
|
+
include_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_offline_access_codes' | 'can_program_online_access_codes' | 'can_simulate_removal' | 'can_simulate_connection' | 'can_simulate_disconnection'> | undefined;
|
|
8094
|
+
exclude_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_offline_access_codes' | 'can_program_online_access_codes' | 'can_simulate_removal' | 'can_simulate_connection' | 'can_simulate_disconnection'> | undefined;
|
|
8055
8095
|
};
|
|
8056
8096
|
formData: {};
|
|
8057
8097
|
jsonResponse: {
|
|
@@ -8575,6 +8615,8 @@ export interface Routes {
|
|
|
8575
8615
|
can_program_offline_access_codes?: boolean | undefined;
|
|
8576
8616
|
can_program_online_access_codes?: boolean | undefined;
|
|
8577
8617
|
can_simulate_removal?: boolean | undefined;
|
|
8618
|
+
can_simulate_connection?: boolean | undefined;
|
|
8619
|
+
can_simulate_disconnection?: boolean | undefined;
|
|
8578
8620
|
}>;
|
|
8579
8621
|
devices: Array<{
|
|
8580
8622
|
/** Unique identifier for the device. */
|
|
@@ -9096,6 +9138,8 @@ export interface Routes {
|
|
|
9096
9138
|
can_program_offline_access_codes?: boolean | undefined;
|
|
9097
9139
|
can_program_online_access_codes?: boolean | undefined;
|
|
9098
9140
|
can_simulate_removal?: boolean | undefined;
|
|
9141
|
+
can_simulate_connection?: boolean | undefined;
|
|
9142
|
+
can_simulate_disconnection?: boolean | undefined;
|
|
9099
9143
|
}>;
|
|
9100
9144
|
};
|
|
9101
9145
|
};
|
|
@@ -12272,6 +12316,8 @@ export interface Routes {
|
|
|
12272
12316
|
can_program_offline_access_codes?: boolean | undefined;
|
|
12273
12317
|
can_program_online_access_codes?: boolean | undefined;
|
|
12274
12318
|
can_simulate_removal?: boolean | undefined;
|
|
12319
|
+
can_simulate_connection?: boolean | undefined;
|
|
12320
|
+
can_simulate_disconnection?: boolean | undefined;
|
|
12275
12321
|
}>;
|
|
12276
12322
|
};
|
|
12277
12323
|
};
|
|
@@ -12348,6 +12394,8 @@ export interface Routes {
|
|
|
12348
12394
|
can_program_offline_access_codes?: boolean | undefined;
|
|
12349
12395
|
can_program_online_access_codes?: boolean | undefined;
|
|
12350
12396
|
can_simulate_removal?: boolean | undefined;
|
|
12397
|
+
can_simulate_connection?: boolean | undefined;
|
|
12398
|
+
can_simulate_disconnection?: boolean | undefined;
|
|
12351
12399
|
};
|
|
12352
12400
|
};
|
|
12353
12401
|
};
|
|
@@ -13644,6 +13692,8 @@ export interface Routes {
|
|
|
13644
13692
|
can_program_offline_access_codes?: boolean | undefined;
|
|
13645
13693
|
can_program_online_access_codes?: boolean | undefined;
|
|
13646
13694
|
can_simulate_removal?: boolean | undefined;
|
|
13695
|
+
can_simulate_connection?: boolean | undefined;
|
|
13696
|
+
can_simulate_disconnection?: boolean | undefined;
|
|
13647
13697
|
};
|
|
13648
13698
|
};
|
|
13649
13699
|
};
|
|
@@ -14869,8 +14919,8 @@ export interface Routes {
|
|
|
14869
14919
|
created_before?: Date | undefined;
|
|
14870
14920
|
user_identifier_key?: string | undefined;
|
|
14871
14921
|
custom_metadata_has?: Record<string, string | boolean> | undefined;
|
|
14872
|
-
include_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_offline_access_codes' | 'can_program_online_access_codes' | 'can_simulate_removal'> | undefined;
|
|
14873
|
-
exclude_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_offline_access_codes' | 'can_program_online_access_codes' | 'can_simulate_removal'> | undefined;
|
|
14922
|
+
include_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_offline_access_codes' | 'can_program_online_access_codes' | 'can_simulate_removal' | 'can_simulate_connection' | 'can_simulate_disconnection'> | undefined;
|
|
14923
|
+
exclude_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_offline_access_codes' | 'can_program_online_access_codes' | 'can_simulate_removal' | 'can_simulate_connection' | 'can_simulate_disconnection'> | undefined;
|
|
14874
14924
|
};
|
|
14875
14925
|
formData: {};
|
|
14876
14926
|
jsonResponse: {
|
|
@@ -15394,6 +15444,8 @@ export interface Routes {
|
|
|
15394
15444
|
can_program_offline_access_codes?: boolean | undefined;
|
|
15395
15445
|
can_program_online_access_codes?: boolean | undefined;
|
|
15396
15446
|
can_simulate_removal?: boolean | undefined;
|
|
15447
|
+
can_simulate_connection?: boolean | undefined;
|
|
15448
|
+
can_simulate_disconnection?: boolean | undefined;
|
|
15397
15449
|
}>;
|
|
15398
15450
|
};
|
|
15399
15451
|
};
|
|
@@ -17327,6 +17379,8 @@ export interface Routes {
|
|
|
17327
17379
|
can_program_offline_access_codes?: boolean | undefined;
|
|
17328
17380
|
can_program_online_access_codes?: boolean | undefined;
|
|
17329
17381
|
can_simulate_removal?: boolean | undefined;
|
|
17382
|
+
can_simulate_connection?: boolean | undefined;
|
|
17383
|
+
can_simulate_disconnection?: boolean | undefined;
|
|
17330
17384
|
}>;
|
|
17331
17385
|
/**
|
|
17332
17386
|
---
|
|
@@ -17853,6 +17907,8 @@ export interface Routes {
|
|
|
17853
17907
|
can_program_offline_access_codes?: boolean | undefined;
|
|
17854
17908
|
can_program_online_access_codes?: boolean | undefined;
|
|
17855
17909
|
can_simulate_removal?: boolean | undefined;
|
|
17910
|
+
can_simulate_connection?: boolean | undefined;
|
|
17911
|
+
can_simulate_disconnection?: boolean | undefined;
|
|
17856
17912
|
}>;
|
|
17857
17913
|
};
|
|
17858
17914
|
};
|
|
@@ -17889,13 +17945,15 @@ export interface Routes {
|
|
|
17889
17945
|
image_url: string;
|
|
17890
17946
|
image_alt_text: string;
|
|
17891
17947
|
errors: Array<{
|
|
17892
|
-
|
|
17948
|
+
created_at: string;
|
|
17893
17949
|
message: string;
|
|
17894
|
-
|
|
17895
|
-
|
|
17896
|
-
|
|
17950
|
+
error_code: 'seam_bridge_disconnected';
|
|
17951
|
+
} | {
|
|
17952
|
+
created_at: string;
|
|
17897
17953
|
message: string;
|
|
17954
|
+
error_code: 'visionline_instance_unreachable';
|
|
17898
17955
|
}>;
|
|
17956
|
+
warnings: Array<{}>;
|
|
17899
17957
|
can_automate_enrollment?: boolean | undefined;
|
|
17900
17958
|
can_create_acs_access_groups?: boolean | undefined;
|
|
17901
17959
|
can_remove_acs_users_from_acs_access_groups?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { action_attempt, client_session, connect_webview, connected_account, custom_metadata, seam_event, user_identity, webhook, workspace, } from './models/index.js';
|
|
1
|
+
export { acs_access_group, acs_credential, acs_entrance, acs_system, acs_user, action_attempt, client_session, connect_webview, connected_account, custom_metadata, seam_event, user_identity, webhook, workspace, } from './models/index.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { action_attempt, client_session, connect_webview, connected_account, custom_metadata, seam_event, user_identity, webhook, workspace, } from './models/index.js';
|
|
1
|
+
export { acs_access_group, acs_credential, acs_entrance, acs_system, acs_user, action_attempt, client_session, connect_webview, connected_account, custom_metadata, seam_event, user_identity, webhook, workspace, } from './models/index.js';
|
|
2
2
|
//# sourceMappingURL=schemas.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../src/lib/seam/connect/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,UAAU,EACV,aAAa,EACb,OAAO,EACP,SAAS,GACV,MAAM,mBAAmB,CAAA"}
|
|
1
|
+
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../src/lib/seam/connect/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,cAAc,EACd,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,UAAU,EACV,aAAa,EACb,OAAO,EACP,SAAS,GACV,MAAM,mBAAmB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
|
+
import { acs_credential_visionline_metadata } from './metadata/index.js'
|
|
4
|
+
|
|
3
5
|
// If changed, update seam.acs_credential.external_type generated column
|
|
4
6
|
export const acs_credential_external_type = z.enum([
|
|
5
7
|
'pti_card',
|
|
@@ -18,17 +20,6 @@ export type AcsCredentialExternalType = z.infer<
|
|
|
18
20
|
typeof acs_credential_external_type
|
|
19
21
|
>
|
|
20
22
|
|
|
21
|
-
export const acs_credential_visionline_metadata = z.object({
|
|
22
|
-
card_function_type: z.enum(['guest', 'staff']),
|
|
23
|
-
joiner_acs_credential_ids: z.array(z.string().uuid()).optional(),
|
|
24
|
-
guest_acs_entrance_ids: z.array(z.string().uuid()).optional(),
|
|
25
|
-
common_acs_entrance_ids: z.array(z.string().uuid()).optional(),
|
|
26
|
-
})
|
|
27
|
-
|
|
28
|
-
export type AcsCredentialVisionlineMetadata = z.infer<
|
|
29
|
-
typeof acs_credential_visionline_metadata
|
|
30
|
-
>
|
|
31
|
-
|
|
32
23
|
export const acs_credential = z.object({
|
|
33
24
|
acs_credential_id: z.string().uuid(),
|
|
34
25
|
acs_user_id: z.string().uuid().optional(),
|
|
@@ -1,52 +1,23 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
is_connected: z.boolean(),
|
|
8
|
-
})
|
|
3
|
+
import {
|
|
4
|
+
acs_entrance_latch_metadata,
|
|
5
|
+
acs_entrance_visionline_metadata,
|
|
6
|
+
} from './metadata/index.js'
|
|
9
7
|
|
|
10
8
|
export const acs_entrance = z.object({
|
|
11
|
-
acs_entrance_id: z.string().uuid(),
|
|
12
|
-
display_name: z.string(),
|
|
13
9
|
acs_system_id: z.string().uuid(),
|
|
10
|
+
acs_entrance_id: z.string().uuid(),
|
|
14
11
|
created_at: z.string().datetime(),
|
|
15
|
-
|
|
12
|
+
display_name: z.string(),
|
|
16
13
|
errors: z.array(
|
|
17
14
|
z.object({
|
|
18
15
|
error_code: z.string(),
|
|
19
16
|
message: z.string(),
|
|
20
17
|
}),
|
|
21
18
|
),
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
door_name: z.string(),
|
|
25
|
-
door_category: z.enum([
|
|
26
|
-
'entrance',
|
|
27
|
-
'guest',
|
|
28
|
-
'elevator reader',
|
|
29
|
-
'common',
|
|
30
|
-
'common (PMS)',
|
|
31
|
-
]),
|
|
32
|
-
profiles: z
|
|
33
|
-
.array(
|
|
34
|
-
z.object({
|
|
35
|
-
visionline_door_profile_id: z.string(),
|
|
36
|
-
visionline_door_profile_type: z.enum([
|
|
37
|
-
'BLE',
|
|
38
|
-
'commonDoor',
|
|
39
|
-
'touch',
|
|
40
|
-
]),
|
|
41
|
-
}),
|
|
42
|
-
)
|
|
43
|
-
.optional(),
|
|
44
|
-
})
|
|
45
|
-
.nullable(),
|
|
19
|
+
latch_metadata: acs_entrance_latch_metadata.optional(),
|
|
20
|
+
visionline_metadata: acs_entrance_visionline_metadata.optional(),
|
|
46
21
|
})
|
|
47
22
|
|
|
48
|
-
export type AcsEntranceLatchMetadata = z.infer<
|
|
49
|
-
typeof acs_entrance_latch_metadata
|
|
50
|
-
>
|
|
51
|
-
|
|
52
23
|
export type AcsEntrance = z.infer<typeof acs_entrance>
|
|
@@ -7,7 +7,8 @@ export const acs_system_capability_flags = z.object({
|
|
|
7
7
|
can_add_acs_users_to_acs_access_groups: z.boolean().optional(),
|
|
8
8
|
})
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
// If changed, update seam.acs_system.external_type generated column
|
|
11
|
+
export const acs_system_external_type = z.enum([
|
|
11
12
|
'pti_site',
|
|
12
13
|
'alta_org',
|
|
13
14
|
'salto_site',
|
|
@@ -16,25 +17,56 @@ export const acs_system_external_type_values = [
|
|
|
16
17
|
'visionline_system',
|
|
17
18
|
'assa_abloy_credential_service',
|
|
18
19
|
'latch_building',
|
|
19
|
-
]
|
|
20
|
-
|
|
21
|
-
// If changed, update seam.acs_system.external_type generated column
|
|
22
|
-
export const acs_system_external_type = z
|
|
23
|
-
.enum(acs_system_external_type_values)
|
|
24
|
-
.optional()
|
|
20
|
+
])
|
|
25
21
|
|
|
26
22
|
export type AcsSystemExternalType = z.infer<typeof acs_system_external_type>
|
|
27
23
|
|
|
24
|
+
const common_acs_system_error = z.object({
|
|
25
|
+
created_at: z.string().datetime(),
|
|
26
|
+
message: z.string(),
|
|
27
|
+
})
|
|
28
|
+
|
|
29
|
+
const seam_bridge_disconnected = common_acs_system_error.extend({
|
|
30
|
+
error_code: z.literal('seam_bridge_disconnected'),
|
|
31
|
+
})
|
|
32
|
+
const visionline_instance_unreachable = common_acs_system_error.extend({
|
|
33
|
+
error_code: z.literal('visionline_instance_unreachable'),
|
|
34
|
+
})
|
|
35
|
+
|
|
36
|
+
const acs_system_error = z.union([
|
|
37
|
+
seam_bridge_disconnected,
|
|
38
|
+
visionline_instance_unreachable,
|
|
39
|
+
])
|
|
40
|
+
|
|
41
|
+
const acs_system_error_map = z.object({
|
|
42
|
+
seam_bridge_disconnected: seam_bridge_disconnected.optional().nullable(),
|
|
43
|
+
visionline_instance_unreachable: visionline_instance_unreachable
|
|
44
|
+
.optional()
|
|
45
|
+
.nullable(),
|
|
46
|
+
})
|
|
47
|
+
|
|
48
|
+
export type AcsSystemErrorMap = z.infer<typeof acs_system_error_map>
|
|
49
|
+
|
|
50
|
+
const acs_system_warning = z.object({})
|
|
51
|
+
|
|
52
|
+
const acs_system_warning_map = z.object({})
|
|
53
|
+
|
|
54
|
+
export type AcsSystemWarningMap = z.infer<typeof acs_system_warning_map>
|
|
55
|
+
|
|
28
56
|
export const acs_system = z
|
|
29
57
|
.object({
|
|
30
58
|
acs_system_id: z.string().uuid(),
|
|
31
|
-
external_type: acs_system_external_type,
|
|
59
|
+
external_type: acs_system_external_type.optional(),
|
|
32
60
|
external_type_display_name: z.string().optional(),
|
|
33
|
-
system_type: acs_system_external_type
|
|
61
|
+
system_type: acs_system_external_type
|
|
62
|
+
.describe(
|
|
63
|
+
`
|
|
34
64
|
---
|
|
35
65
|
deprecated: use external_type
|
|
36
66
|
---
|
|
37
|
-
|
|
67
|
+
`,
|
|
68
|
+
)
|
|
69
|
+
.optional(),
|
|
38
70
|
system_type_display_name: z.string().optional().describe(`
|
|
39
71
|
---
|
|
40
72
|
deprecated: use external_type_display_name
|
|
@@ -43,21 +75,11 @@ export const acs_system = z
|
|
|
43
75
|
name: z.string(),
|
|
44
76
|
created_at: z.string().datetime(),
|
|
45
77
|
workspace_id: z.string().uuid(),
|
|
46
|
-
connected_account_ids: z.array(z.string()),
|
|
78
|
+
connected_account_ids: z.array(z.string().uuid()),
|
|
47
79
|
image_url: z.string(),
|
|
48
80
|
image_alt_text: z.string(),
|
|
49
|
-
errors: z.array(
|
|
50
|
-
|
|
51
|
-
error_code: z.string(),
|
|
52
|
-
message: z.string(),
|
|
53
|
-
}),
|
|
54
|
-
),
|
|
55
|
-
warnings: z.array(
|
|
56
|
-
z.object({
|
|
57
|
-
warning_code: z.string(),
|
|
58
|
-
message: z.string(),
|
|
59
|
-
}),
|
|
60
|
-
),
|
|
81
|
+
errors: z.array(acs_system_error),
|
|
82
|
+
warnings: z.array(acs_system_warning),
|
|
61
83
|
})
|
|
62
84
|
.merge(acs_system_capability_flags)
|
|
63
85
|
|