@seamapi/types 1.186.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 +338 -16
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +685 -52
- 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 +1 -2
- package/lib/seam/connect/models/acs/acs-system.js +9 -10
- 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 +143 -2
- package/lib/seam/connect/openapi.js +110 -7
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +98 -48
- 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 +11 -11
- 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 +110 -7
- package/src/lib/seam/connect/route-types.ts +174 -92
- 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
|
};
|
|
@@ -3859,28 +3859,28 @@ export interface Routes {
|
|
|
3859
3859
|
formData: {};
|
|
3860
3860
|
jsonResponse: {
|
|
3861
3861
|
acs_entrances: Array<{
|
|
3862
|
-
acs_entrance_id: string;
|
|
3863
|
-
display_name: string;
|
|
3864
3862
|
acs_system_id: string;
|
|
3863
|
+
acs_entrance_id: string;
|
|
3865
3864
|
created_at: string;
|
|
3866
|
-
|
|
3867
|
-
accessibility_type: string;
|
|
3868
|
-
door_name: string;
|
|
3869
|
-
door_type: string;
|
|
3870
|
-
is_connected: boolean;
|
|
3871
|
-
} | null;
|
|
3865
|
+
display_name: string;
|
|
3872
3866
|
errors: Array<{
|
|
3873
3867
|
error_code: string;
|
|
3874
3868
|
message: string;
|
|
3875
3869
|
}>;
|
|
3876
|
-
|
|
3870
|
+
latch_metadata?: {
|
|
3871
|
+
accessibility_type: string;
|
|
3872
|
+
door_name: string;
|
|
3873
|
+
door_type: string;
|
|
3874
|
+
is_connected: boolean;
|
|
3875
|
+
} | undefined;
|
|
3876
|
+
visionline_metadata?: {
|
|
3877
3877
|
door_name: string;
|
|
3878
3878
|
door_category: 'entrance' | 'guest' | 'elevator reader' | 'common' | 'common (PMS)';
|
|
3879
3879
|
profiles?: Array<{
|
|
3880
3880
|
visionline_door_profile_id: string;
|
|
3881
3881
|
visionline_door_profile_type: 'BLE' | 'commonDoor' | 'touch';
|
|
3882
3882
|
}> | undefined;
|
|
3883
|
-
} |
|
|
3883
|
+
} | undefined;
|
|
3884
3884
|
}>;
|
|
3885
3885
|
};
|
|
3886
3886
|
};
|
|
@@ -6100,6 +6100,8 @@ export interface Routes {
|
|
|
6100
6100
|
can_program_offline_access_codes?: boolean | undefined;
|
|
6101
6101
|
can_program_online_access_codes?: boolean | undefined;
|
|
6102
6102
|
can_simulate_removal?: boolean | undefined;
|
|
6103
|
+
can_simulate_connection?: boolean | undefined;
|
|
6104
|
+
can_simulate_disconnection?: boolean | undefined;
|
|
6103
6105
|
};
|
|
6104
6106
|
};
|
|
6105
6107
|
};
|
|
@@ -6121,8 +6123,8 @@ export interface Routes {
|
|
|
6121
6123
|
created_before?: Date | undefined;
|
|
6122
6124
|
user_identifier_key?: string | undefined;
|
|
6123
6125
|
custom_metadata_has?: Record<string, string | boolean> | undefined;
|
|
6124
|
-
include_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_offline_access_codes' | 'can_program_online_access_codes' | 'can_simulate_removal'> | undefined;
|
|
6125
|
-
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;
|
|
6126
6128
|
};
|
|
6127
6129
|
formData: {};
|
|
6128
6130
|
jsonResponse: {
|
|
@@ -6646,6 +6648,8 @@ export interface Routes {
|
|
|
6646
6648
|
can_program_offline_access_codes?: boolean | undefined;
|
|
6647
6649
|
can_program_online_access_codes?: boolean | undefined;
|
|
6648
6650
|
can_simulate_removal?: boolean | undefined;
|
|
6651
|
+
can_simulate_connection?: boolean | undefined;
|
|
6652
|
+
can_simulate_disconnection?: boolean | undefined;
|
|
6649
6653
|
}>;
|
|
6650
6654
|
};
|
|
6651
6655
|
};
|
|
@@ -6667,6 +6671,28 @@ export interface Routes {
|
|
|
6667
6671
|
}>;
|
|
6668
6672
|
};
|
|
6669
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
|
+
};
|
|
6670
6696
|
'/devices/simulate/remove': {
|
|
6671
6697
|
route: '/devices/simulate/remove';
|
|
6672
6698
|
method: 'DELETE' | 'POST';
|
|
@@ -6775,6 +6801,8 @@ export interface Routes {
|
|
|
6775
6801
|
can_program_offline_access_codes?: boolean | undefined;
|
|
6776
6802
|
can_program_online_access_codes?: boolean | undefined;
|
|
6777
6803
|
can_simulate_removal?: boolean | undefined;
|
|
6804
|
+
can_simulate_connection?: boolean | undefined;
|
|
6805
|
+
can_simulate_disconnection?: boolean | undefined;
|
|
6778
6806
|
};
|
|
6779
6807
|
};
|
|
6780
6808
|
};
|
|
@@ -6796,8 +6824,8 @@ export interface Routes {
|
|
|
6796
6824
|
created_before?: Date | undefined;
|
|
6797
6825
|
user_identifier_key?: string | undefined;
|
|
6798
6826
|
custom_metadata_has?: Record<string, string | boolean> | undefined;
|
|
6799
|
-
include_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_offline_access_codes' | 'can_program_online_access_codes' | 'can_simulate_removal'> | undefined;
|
|
6800
|
-
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;
|
|
6801
6829
|
};
|
|
6802
6830
|
formData: {};
|
|
6803
6831
|
jsonResponse: {
|
|
@@ -6887,6 +6915,8 @@ export interface Routes {
|
|
|
6887
6915
|
can_program_offline_access_codes?: boolean | undefined;
|
|
6888
6916
|
can_program_online_access_codes?: boolean | undefined;
|
|
6889
6917
|
can_simulate_removal?: boolean | undefined;
|
|
6918
|
+
can_simulate_connection?: boolean | undefined;
|
|
6919
|
+
can_simulate_disconnection?: boolean | undefined;
|
|
6890
6920
|
}>;
|
|
6891
6921
|
};
|
|
6892
6922
|
};
|
|
@@ -7514,6 +7544,8 @@ export interface Routes {
|
|
|
7514
7544
|
can_program_offline_access_codes?: boolean | undefined;
|
|
7515
7545
|
can_program_online_access_codes?: boolean | undefined;
|
|
7516
7546
|
can_simulate_removal?: boolean | undefined;
|
|
7547
|
+
can_simulate_connection?: boolean | undefined;
|
|
7548
|
+
can_simulate_disconnection?: boolean | undefined;
|
|
7517
7549
|
};
|
|
7518
7550
|
device: {
|
|
7519
7551
|
/** Unique identifier for the device. */
|
|
@@ -8035,6 +8067,8 @@ export interface Routes {
|
|
|
8035
8067
|
can_program_offline_access_codes?: boolean | undefined;
|
|
8036
8068
|
can_program_online_access_codes?: boolean | undefined;
|
|
8037
8069
|
can_simulate_removal?: boolean | undefined;
|
|
8070
|
+
can_simulate_connection?: boolean | undefined;
|
|
8071
|
+
can_simulate_disconnection?: boolean | undefined;
|
|
8038
8072
|
};
|
|
8039
8073
|
};
|
|
8040
8074
|
};
|
|
@@ -8056,8 +8090,8 @@ export interface Routes {
|
|
|
8056
8090
|
created_before?: Date | undefined;
|
|
8057
8091
|
user_identifier_key?: string | undefined;
|
|
8058
8092
|
custom_metadata_has?: Record<string, string | boolean> | undefined;
|
|
8059
|
-
include_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_offline_access_codes' | 'can_program_online_access_codes' | 'can_simulate_removal'> | undefined;
|
|
8060
|
-
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;
|
|
8061
8095
|
};
|
|
8062
8096
|
formData: {};
|
|
8063
8097
|
jsonResponse: {
|
|
@@ -8581,6 +8615,8 @@ export interface Routes {
|
|
|
8581
8615
|
can_program_offline_access_codes?: boolean | undefined;
|
|
8582
8616
|
can_program_online_access_codes?: boolean | undefined;
|
|
8583
8617
|
can_simulate_removal?: boolean | undefined;
|
|
8618
|
+
can_simulate_connection?: boolean | undefined;
|
|
8619
|
+
can_simulate_disconnection?: boolean | undefined;
|
|
8584
8620
|
}>;
|
|
8585
8621
|
devices: Array<{
|
|
8586
8622
|
/** Unique identifier for the device. */
|
|
@@ -9102,6 +9138,8 @@ export interface Routes {
|
|
|
9102
9138
|
can_program_offline_access_codes?: boolean | undefined;
|
|
9103
9139
|
can_program_online_access_codes?: boolean | undefined;
|
|
9104
9140
|
can_simulate_removal?: boolean | undefined;
|
|
9141
|
+
can_simulate_connection?: boolean | undefined;
|
|
9142
|
+
can_simulate_disconnection?: boolean | undefined;
|
|
9105
9143
|
}>;
|
|
9106
9144
|
};
|
|
9107
9145
|
};
|
|
@@ -12278,6 +12316,8 @@ export interface Routes {
|
|
|
12278
12316
|
can_program_offline_access_codes?: boolean | undefined;
|
|
12279
12317
|
can_program_online_access_codes?: boolean | undefined;
|
|
12280
12318
|
can_simulate_removal?: boolean | undefined;
|
|
12319
|
+
can_simulate_connection?: boolean | undefined;
|
|
12320
|
+
can_simulate_disconnection?: boolean | undefined;
|
|
12281
12321
|
}>;
|
|
12282
12322
|
};
|
|
12283
12323
|
};
|
|
@@ -12354,6 +12394,8 @@ export interface Routes {
|
|
|
12354
12394
|
can_program_offline_access_codes?: boolean | undefined;
|
|
12355
12395
|
can_program_online_access_codes?: boolean | undefined;
|
|
12356
12396
|
can_simulate_removal?: boolean | undefined;
|
|
12397
|
+
can_simulate_connection?: boolean | undefined;
|
|
12398
|
+
can_simulate_disconnection?: boolean | undefined;
|
|
12357
12399
|
};
|
|
12358
12400
|
};
|
|
12359
12401
|
};
|
|
@@ -13650,6 +13692,8 @@ export interface Routes {
|
|
|
13650
13692
|
can_program_offline_access_codes?: boolean | undefined;
|
|
13651
13693
|
can_program_online_access_codes?: boolean | undefined;
|
|
13652
13694
|
can_simulate_removal?: boolean | undefined;
|
|
13695
|
+
can_simulate_connection?: boolean | undefined;
|
|
13696
|
+
can_simulate_disconnection?: boolean | undefined;
|
|
13653
13697
|
};
|
|
13654
13698
|
};
|
|
13655
13699
|
};
|
|
@@ -14875,8 +14919,8 @@ export interface Routes {
|
|
|
14875
14919
|
created_before?: Date | undefined;
|
|
14876
14920
|
user_identifier_key?: string | undefined;
|
|
14877
14921
|
custom_metadata_has?: Record<string, string | boolean> | undefined;
|
|
14878
|
-
include_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_offline_access_codes' | 'can_program_online_access_codes' | 'can_simulate_removal'> | undefined;
|
|
14879
|
-
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;
|
|
14880
14924
|
};
|
|
14881
14925
|
formData: {};
|
|
14882
14926
|
jsonResponse: {
|
|
@@ -15400,6 +15444,8 @@ export interface Routes {
|
|
|
15400
15444
|
can_program_offline_access_codes?: boolean | undefined;
|
|
15401
15445
|
can_program_online_access_codes?: boolean | undefined;
|
|
15402
15446
|
can_simulate_removal?: boolean | undefined;
|
|
15447
|
+
can_simulate_connection?: boolean | undefined;
|
|
15448
|
+
can_simulate_disconnection?: boolean | undefined;
|
|
15403
15449
|
}>;
|
|
15404
15450
|
};
|
|
15405
15451
|
};
|
|
@@ -17333,6 +17379,8 @@ export interface Routes {
|
|
|
17333
17379
|
can_program_offline_access_codes?: boolean | undefined;
|
|
17334
17380
|
can_program_online_access_codes?: boolean | undefined;
|
|
17335
17381
|
can_simulate_removal?: boolean | undefined;
|
|
17382
|
+
can_simulate_connection?: boolean | undefined;
|
|
17383
|
+
can_simulate_disconnection?: boolean | undefined;
|
|
17336
17384
|
}>;
|
|
17337
17385
|
/**
|
|
17338
17386
|
---
|
|
@@ -17859,6 +17907,8 @@ export interface Routes {
|
|
|
17859
17907
|
can_program_offline_access_codes?: boolean | undefined;
|
|
17860
17908
|
can_program_online_access_codes?: boolean | undefined;
|
|
17861
17909
|
can_simulate_removal?: boolean | undefined;
|
|
17910
|
+
can_simulate_connection?: boolean | undefined;
|
|
17911
|
+
can_simulate_disconnection?: boolean | undefined;
|
|
17862
17912
|
}>;
|
|
17863
17913
|
};
|
|
17864
17914
|
};
|
|
@@ -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,12 +17,7 @@ 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
|
|
|
@@ -60,13 +56,17 @@ export type AcsSystemWarningMap = z.infer<typeof acs_system_warning_map>
|
|
|
60
56
|
export const acs_system = z
|
|
61
57
|
.object({
|
|
62
58
|
acs_system_id: z.string().uuid(),
|
|
63
|
-
external_type: acs_system_external_type,
|
|
59
|
+
external_type: acs_system_external_type.optional(),
|
|
64
60
|
external_type_display_name: z.string().optional(),
|
|
65
|
-
system_type: acs_system_external_type
|
|
61
|
+
system_type: acs_system_external_type
|
|
62
|
+
.describe(
|
|
63
|
+
`
|
|
66
64
|
---
|
|
67
65
|
deprecated: use external_type
|
|
68
66
|
---
|
|
69
|
-
|
|
67
|
+
`,
|
|
68
|
+
)
|
|
69
|
+
.optional(),
|
|
70
70
|
system_type_display_name: z.string().optional().describe(`
|
|
71
71
|
---
|
|
72
72
|
deprecated: use external_type_display_name
|
|
@@ -75,7 +75,7 @@ export const acs_system = z
|
|
|
75
75
|
name: z.string(),
|
|
76
76
|
created_at: z.string().datetime(),
|
|
77
77
|
workspace_id: z.string().uuid(),
|
|
78
|
-
connected_account_ids: z.array(z.string()),
|
|
78
|
+
connected_account_ids: z.array(z.string().uuid()),
|
|
79
79
|
image_url: z.string(),
|
|
80
80
|
image_alt_text: z.string(),
|
|
81
81
|
errors: z.array(acs_system_error),
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
|
|
3
|
+
export const acs_entrance_latch_metadata = z.object({
|
|
4
|
+
accessibility_type: z.string(),
|
|
5
|
+
door_name: z.string(),
|
|
6
|
+
door_type: z.string(),
|
|
7
|
+
is_connected: z.boolean(),
|
|
8
|
+
})
|
|
9
|
+
|
|
10
|
+
export type AcsEntranceLatchMetadata = z.infer<
|
|
11
|
+
typeof acs_entrance_latch_metadata
|
|
12
|
+
>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
|
|
3
|
+
export const acs_entrance_visionline_metadata = z.object({
|
|
4
|
+
door_name: z.string(),
|
|
5
|
+
door_category: z.enum([
|
|
6
|
+
'entrance',
|
|
7
|
+
'guest',
|
|
8
|
+
'elevator reader',
|
|
9
|
+
'common',
|
|
10
|
+
'common (PMS)',
|
|
11
|
+
]),
|
|
12
|
+
profiles: z
|
|
13
|
+
.array(
|
|
14
|
+
z.object({
|
|
15
|
+
visionline_door_profile_id: z.string(),
|
|
16
|
+
visionline_door_profile_type: z.enum(['BLE', 'commonDoor', 'touch']),
|
|
17
|
+
}),
|
|
18
|
+
)
|
|
19
|
+
.optional(),
|
|
20
|
+
})
|
|
21
|
+
|
|
22
|
+
export const acs_credential_visionline_metadata = z.object({
|
|
23
|
+
card_function_type: z.enum(['guest', 'staff']),
|
|
24
|
+
joiner_acs_credential_ids: z.array(z.string().uuid()).optional(),
|
|
25
|
+
guest_acs_entrance_ids: z.array(z.string().uuid()).optional(),
|
|
26
|
+
common_acs_entrance_ids: z.array(z.string().uuid()).optional(),
|
|
27
|
+
})
|
|
28
|
+
|
|
29
|
+
export type AcsCredentialVisionlineMetadata = z.infer<
|
|
30
|
+
typeof acs_credential_visionline_metadata
|
|
31
|
+
>
|
|
32
|
+
|
|
33
|
+
export type AcsEntranceVisionlineMetadata = z.infer<
|
|
34
|
+
typeof acs_entrance_visionline_metadata
|
|
35
|
+
>
|
|
@@ -12,6 +12,8 @@ import { phone_specific_properties } from './phone-properties.js'
|
|
|
12
12
|
export const device_capability_flags =
|
|
13
13
|
devicedb_schemas.device_capability_flags.extend({
|
|
14
14
|
can_simulate_removal: z.boolean().optional(),
|
|
15
|
+
can_simulate_connection: z.boolean().optional(),
|
|
16
|
+
can_simulate_disconnection: z.boolean().optional(),
|
|
15
17
|
})
|
|
16
18
|
|
|
17
19
|
export const battery_status = z.enum(['critical', 'low', 'good', 'full'])
|