@seamapi/types 1.724.0 → 1.725.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 +8096 -2277
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +21261 -5463
- package/dist/index.cjs +8096 -2277
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +205 -142
- package/lib/seam/connect/models/access-codes/managed-access-code.js +57 -22
- package/lib/seam/connect/models/access-codes/managed-access-code.js.map +1 -1
- package/lib/seam/connect/models/access-codes/unmanaged-access-code.d.ts +95 -52
- package/lib/seam/connect/models/access-codes/unmanaged-access-code.js +5 -2
- package/lib/seam/connect/models/access-codes/unmanaged-access-code.js.map +1 -1
- package/lib/seam/connect/models/access-grants/access-grant.d.ts +721 -12
- package/lib/seam/connect/models/access-grants/access-grant.js +75 -1
- package/lib/seam/connect/models/access-grants/access-grant.js.map +1 -1
- package/lib/seam/connect/models/access-grants/access-method.d.ts +825 -8
- package/lib/seam/connect/models/access-grants/access-method.js +123 -1
- package/lib/seam/connect/models/access-grants/access-method.js.map +1 -1
- package/lib/seam/connect/models/access-grants/index.d.ts +1 -0
- package/lib/seam/connect/models/access-grants/index.js +1 -0
- package/lib/seam/connect/models/access-grants/index.js.map +1 -1
- package/lib/seam/connect/models/access-grants/pending-mutations.d.ts +255 -0
- package/lib/seam/connect/models/access-grants/pending-mutations.js +78 -0
- package/lib/seam/connect/models/access-grants/pending-mutations.js.map +1 -0
- package/lib/seam/connect/models/access-grants/requested-access-method.d.ts +3 -0
- package/lib/seam/connect/models/access-grants/requested-access-method.js +6 -0
- package/lib/seam/connect/models/access-grants/requested-access-method.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-entrance.d.ts +0 -5
- package/lib/seam/connect/models/acs/acs-users/acs-user.d.ts +80 -80
- package/lib/seam/connect/models/acs/metadata/salto-space.d.ts +0 -3
- package/lib/seam/connect/models/acs/metadata/salto-space.js +0 -5
- package/lib/seam/connect/models/acs/metadata/salto-space.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +36 -16
- package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +5 -5
- package/lib/seam/connect/models/action-attempts/encode-credential.js +5 -5
- package/lib/seam/connect/models/action-attempts/encode-credential.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/lock-door.d.ts +13 -3
- package/lib/seam/connect/models/action-attempts/lock-door.js +8 -1
- package/lib/seam/connect/models/action-attempts/lock-door.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +5 -5
- package/lib/seam/connect/models/action-attempts/scan-credential.js +5 -5
- package/lib/seam/connect/models/action-attempts/scan-credential.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/unlock-door.d.ts +13 -3
- package/lib/seam/connect/models/action-attempts/unlock-door.js +8 -1
- package/lib/seam/connect/models/action-attempts/unlock-door.js.map +1 -1
- package/lib/seam/connect/models/batch.d.ts +3938 -738
- package/lib/seam/connect/models/connected-accounts/connected-account.d.ts +58 -0
- package/lib/seam/connect/models/connected-accounts/connected-account.js +7 -0
- package/lib/seam/connect/models/connected-accounts/connected-account.js.map +1 -1
- package/lib/seam/connect/models/customer/access-grant-resources.d.ts +6 -0
- package/lib/seam/connect/models/customer/access-grant-resources.js +4 -0
- package/lib/seam/connect/models/customer/access-grant-resources.js.map +1 -1
- package/lib/seam/connect/models/customer/customer-data.d.ts +5 -0
- package/lib/seam/connect/models/customer/customer-portal.d.ts +169 -10
- package/lib/seam/connect/models/customer/customer-portal.js +46 -4
- package/lib/seam/connect/models/customer/customer-portal.js.map +1 -1
- package/lib/seam/connect/models/devices/device-metadata.d.ts +40 -33
- package/lib/seam/connect/models/devices/device-metadata.js +25 -8
- package/lib/seam/connect/models/devices/device-metadata.js.map +1 -1
- package/lib/seam/connect/models/devices/device-provider.d.ts +2 -5
- package/lib/seam/connect/models/devices/device-provider.js +2 -3
- package/lib/seam/connect/models/devices/device-provider.js.map +1 -1
- package/lib/seam/connect/models/devices/device-type.d.ts +0 -2
- package/lib/seam/connect/models/devices/device-type.js +0 -2
- package/lib/seam/connect/models/devices/device-type.js.map +1 -1
- package/lib/seam/connect/models/devices/device.d.ts +196 -45
- package/lib/seam/connect/models/devices/device.js +31 -0
- package/lib/seam/connect/models/devices/device.js.map +1 -1
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +92 -33
- package/lib/seam/connect/models/events/access-codes.d.ts +1390 -0
- package/lib/seam/connect/models/events/access-codes.js +41 -11
- package/lib/seam/connect/models/events/access-codes.js.map +1 -1
- package/lib/seam/connect/models/events/access-methods.d.ts +60 -0
- package/lib/seam/connect/models/events/access-methods.js +9 -0
- package/lib/seam/connect/models/events/access-methods.js.map +1 -1
- package/lib/seam/connect/models/events/acs/index.d.ts +93 -0
- package/lib/seam/connect/models/events/acs/systems.d.ts +186 -0
- package/lib/seam/connect/models/events/acs/systems.js +19 -2
- package/lib/seam/connect/models/events/acs/systems.js.map +1 -1
- package/lib/seam/connect/models/events/action-attempts.d.ts +332 -0
- package/lib/seam/connect/models/events/action-attempts.js +46 -0
- package/lib/seam/connect/models/events/action-attempts.js.map +1 -1
- package/lib/seam/connect/models/events/common.d.ts +26 -0
- package/lib/seam/connect/models/events/common.js +22 -0
- package/lib/seam/connect/models/events/common.js.map +1 -1
- package/lib/seam/connect/models/events/connected-accounts.d.ts +140 -272
- package/lib/seam/connect/models/events/connected-accounts.js +17 -9
- package/lib/seam/connect/models/events/connected-accounts.js.map +1 -1
- package/lib/seam/connect/models/events/devices.d.ts +1128 -0
- package/lib/seam/connect/models/events/devices.js +39 -11
- package/lib/seam/connect/models/events/devices.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +1675 -196
- package/lib/seam/connect/models/events/spaces.d.ts +12 -12
- package/lib/seam/connect/models/phones/phone-session.d.ts +0 -20
- package/lib/seam/connect/openapi.d.ts +6483 -2214
- package/lib/seam/connect/openapi.js +8921 -3441
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +7194 -1122
- package/package.json +1 -1
- package/src/lib/seam/connect/internal/model-types.ts +1 -0
- package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +76 -24
- package/src/lib/seam/connect/models/access-codes/unmanaged-access-code.ts +10 -2
- package/src/lib/seam/connect/models/access-grants/access-grant.ts +92 -1
- package/src/lib/seam/connect/models/access-grants/access-method.ts +162 -1
- package/src/lib/seam/connect/models/access-grants/index.ts +1 -0
- package/src/lib/seam/connect/models/access-grants/pending-mutations.ts +101 -0
- package/src/lib/seam/connect/models/access-grants/requested-access-method.ts +8 -0
- package/src/lib/seam/connect/models/acs/metadata/salto-space.ts +0 -5
- package/src/lib/seam/connect/models/action-attempts/encode-credential.ts +5 -5
- package/src/lib/seam/connect/models/action-attempts/lock-door.ts +10 -1
- package/src/lib/seam/connect/models/action-attempts/scan-credential.ts +5 -5
- package/src/lib/seam/connect/models/action-attempts/unlock-door.ts +10 -1
- package/src/lib/seam/connect/models/connected-accounts/connected-account.ts +10 -0
- package/src/lib/seam/connect/models/customer/access-grant-resources.ts +7 -0
- package/src/lib/seam/connect/models/customer/customer-portal.ts +66 -6
- package/src/lib/seam/connect/models/devices/device-metadata.ts +35 -9
- package/src/lib/seam/connect/models/devices/device-provider.ts +2 -3
- package/src/lib/seam/connect/models/devices/device-type.ts +0 -2
- package/src/lib/seam/connect/models/devices/device.ts +37 -0
- package/src/lib/seam/connect/models/events/access-codes.ts +49 -16
- package/src/lib/seam/connect/models/events/access-methods.ts +14 -0
- package/src/lib/seam/connect/models/events/acs/systems.ts +21 -3
- package/src/lib/seam/connect/models/events/action-attempts.ts +64 -0
- package/src/lib/seam/connect/models/events/common.ts +31 -0
- package/src/lib/seam/connect/models/events/connected-accounts.ts +23 -11
- package/src/lib/seam/connect/models/events/devices.ts +51 -18
- package/src/lib/seam/connect/openapi.ts +8973 -2884
- package/src/lib/seam/connect/route-types.ts +8104 -1669
|
@@ -236,15 +236,15 @@ declare const _acs_users_warning_map: z.ZodObject<{
|
|
|
236
236
|
warning_code: "latch_resident_user";
|
|
237
237
|
}>>>;
|
|
238
238
|
}, "strip", z.ZodTypeAny, {
|
|
239
|
-
|
|
239
|
+
being_deleted?: {
|
|
240
240
|
message: string;
|
|
241
241
|
created_at: string;
|
|
242
|
-
warning_code: "
|
|
242
|
+
warning_code: "being_deleted";
|
|
243
243
|
} | null | undefined;
|
|
244
|
-
|
|
244
|
+
salto_ks_user_not_subscribed?: {
|
|
245
245
|
message: string;
|
|
246
246
|
created_at: string;
|
|
247
|
-
warning_code: "
|
|
247
|
+
warning_code: "salto_ks_user_not_subscribed";
|
|
248
248
|
} | null | undefined;
|
|
249
249
|
unknown_issue_with_acs_user?: {
|
|
250
250
|
message: string;
|
|
@@ -257,15 +257,15 @@ declare const _acs_users_warning_map: z.ZodObject<{
|
|
|
257
257
|
warning_code: "latch_resident_user";
|
|
258
258
|
} | null | undefined;
|
|
259
259
|
}, {
|
|
260
|
-
|
|
260
|
+
being_deleted?: {
|
|
261
261
|
message: string;
|
|
262
262
|
created_at: string;
|
|
263
|
-
warning_code: "
|
|
263
|
+
warning_code: "being_deleted";
|
|
264
264
|
} | null | undefined;
|
|
265
|
-
|
|
265
|
+
salto_ks_user_not_subscribed?: {
|
|
266
266
|
message: string;
|
|
267
267
|
created_at: string;
|
|
268
|
-
warning_code: "
|
|
268
|
+
warning_code: "salto_ks_user_not_subscribed";
|
|
269
269
|
} | null | undefined;
|
|
270
270
|
unknown_issue_with_acs_user?: {
|
|
271
271
|
message: string;
|
|
@@ -789,24 +789,6 @@ export declare const acs_user: z.ZodObject<{
|
|
|
789
789
|
last_successful_sync_at: string | null;
|
|
790
790
|
email?: string | undefined;
|
|
791
791
|
user_identity_id?: string | undefined;
|
|
792
|
-
external_type?: "pti_user" | "brivo_user" | "hid_credential_manager_user" | "salto_site_user" | "latch_user" | "dormakaba_community_user" | "salto_space_user" | undefined;
|
|
793
|
-
external_type_display_name?: string | undefined;
|
|
794
|
-
salto_space_metadata?: {
|
|
795
|
-
user_id?: string | undefined;
|
|
796
|
-
audit_openings?: boolean | undefined;
|
|
797
|
-
} | undefined;
|
|
798
|
-
email_address?: string | undefined;
|
|
799
|
-
full_name?: string | undefined;
|
|
800
|
-
phone_number?: string | undefined;
|
|
801
|
-
is_suspended?: boolean | undefined;
|
|
802
|
-
hid_acs_system_id?: string | undefined;
|
|
803
|
-
access_schedule?: {
|
|
804
|
-
starts_at: string;
|
|
805
|
-
ends_at: string | null;
|
|
806
|
-
} | undefined;
|
|
807
|
-
user_identity_full_name?: string | null | undefined;
|
|
808
|
-
user_identity_email_address?: string | null | undefined;
|
|
809
|
-
user_identity_phone_number?: string | null | undefined;
|
|
810
792
|
pending_mutations?: ({
|
|
811
793
|
message: string;
|
|
812
794
|
created_at: string;
|
|
@@ -867,6 +849,24 @@ export declare const acs_user: z.ZodObject<{
|
|
|
867
849
|
acs_access_group_id: string | null;
|
|
868
850
|
};
|
|
869
851
|
})[] | undefined;
|
|
852
|
+
external_type?: "pti_user" | "brivo_user" | "hid_credential_manager_user" | "salto_site_user" | "latch_user" | "dormakaba_community_user" | "salto_space_user" | undefined;
|
|
853
|
+
external_type_display_name?: string | undefined;
|
|
854
|
+
salto_space_metadata?: {
|
|
855
|
+
user_id?: string | undefined;
|
|
856
|
+
audit_openings?: boolean | undefined;
|
|
857
|
+
} | undefined;
|
|
858
|
+
email_address?: string | undefined;
|
|
859
|
+
full_name?: string | undefined;
|
|
860
|
+
phone_number?: string | undefined;
|
|
861
|
+
is_suspended?: boolean | undefined;
|
|
862
|
+
hid_acs_system_id?: string | undefined;
|
|
863
|
+
access_schedule?: {
|
|
864
|
+
starts_at: string;
|
|
865
|
+
ends_at: string | null;
|
|
866
|
+
} | undefined;
|
|
867
|
+
user_identity_full_name?: string | null | undefined;
|
|
868
|
+
user_identity_email_address?: string | null | undefined;
|
|
869
|
+
user_identity_phone_number?: string | null | undefined;
|
|
870
870
|
}, {
|
|
871
871
|
display_name: string;
|
|
872
872
|
workspace_id: string;
|
|
@@ -920,24 +920,6 @@ export declare const acs_user: z.ZodObject<{
|
|
|
920
920
|
last_successful_sync_at: string | null;
|
|
921
921
|
email?: string | undefined;
|
|
922
922
|
user_identity_id?: string | undefined;
|
|
923
|
-
external_type?: "pti_user" | "brivo_user" | "hid_credential_manager_user" | "salto_site_user" | "latch_user" | "dormakaba_community_user" | "salto_space_user" | undefined;
|
|
924
|
-
external_type_display_name?: string | undefined;
|
|
925
|
-
salto_space_metadata?: {
|
|
926
|
-
user_id?: string | undefined;
|
|
927
|
-
audit_openings?: boolean | undefined;
|
|
928
|
-
} | undefined;
|
|
929
|
-
email_address?: string | undefined;
|
|
930
|
-
full_name?: string | undefined;
|
|
931
|
-
phone_number?: string | undefined;
|
|
932
|
-
is_suspended?: boolean | undefined;
|
|
933
|
-
hid_acs_system_id?: string | undefined;
|
|
934
|
-
access_schedule?: {
|
|
935
|
-
starts_at: string;
|
|
936
|
-
ends_at: string | null;
|
|
937
|
-
} | undefined;
|
|
938
|
-
user_identity_full_name?: string | null | undefined;
|
|
939
|
-
user_identity_email_address?: string | null | undefined;
|
|
940
|
-
user_identity_phone_number?: string | null | undefined;
|
|
941
923
|
pending_mutations?: ({
|
|
942
924
|
message: string;
|
|
943
925
|
created_at: string;
|
|
@@ -998,6 +980,24 @@ export declare const acs_user: z.ZodObject<{
|
|
|
998
980
|
acs_access_group_id: string | null;
|
|
999
981
|
};
|
|
1000
982
|
})[] | undefined;
|
|
983
|
+
external_type?: "pti_user" | "brivo_user" | "hid_credential_manager_user" | "salto_site_user" | "latch_user" | "dormakaba_community_user" | "salto_space_user" | undefined;
|
|
984
|
+
external_type_display_name?: string | undefined;
|
|
985
|
+
salto_space_metadata?: {
|
|
986
|
+
user_id?: string | undefined;
|
|
987
|
+
audit_openings?: boolean | undefined;
|
|
988
|
+
} | undefined;
|
|
989
|
+
email_address?: string | undefined;
|
|
990
|
+
full_name?: string | undefined;
|
|
991
|
+
phone_number?: string | undefined;
|
|
992
|
+
is_suspended?: boolean | undefined;
|
|
993
|
+
hid_acs_system_id?: string | undefined;
|
|
994
|
+
access_schedule?: {
|
|
995
|
+
starts_at: string;
|
|
996
|
+
ends_at: string | null;
|
|
997
|
+
} | undefined;
|
|
998
|
+
user_identity_full_name?: string | null | undefined;
|
|
999
|
+
user_identity_email_address?: string | null | undefined;
|
|
1000
|
+
user_identity_phone_number?: string | null | undefined;
|
|
1001
1001
|
}>;
|
|
1002
1002
|
export declare const unmanaged_acs_user: z.ZodObject<{
|
|
1003
1003
|
acs_user_id: z.ZodString;
|
|
@@ -1456,24 +1456,6 @@ export declare const unmanaged_acs_user: z.ZodObject<{
|
|
|
1456
1456
|
last_successful_sync_at: string | null;
|
|
1457
1457
|
email?: string | undefined;
|
|
1458
1458
|
user_identity_id?: string | undefined;
|
|
1459
|
-
external_type?: "pti_user" | "brivo_user" | "hid_credential_manager_user" | "salto_site_user" | "latch_user" | "dormakaba_community_user" | "salto_space_user" | undefined;
|
|
1460
|
-
external_type_display_name?: string | undefined;
|
|
1461
|
-
salto_space_metadata?: {
|
|
1462
|
-
user_id?: string | undefined;
|
|
1463
|
-
audit_openings?: boolean | undefined;
|
|
1464
|
-
} | undefined;
|
|
1465
|
-
email_address?: string | undefined;
|
|
1466
|
-
full_name?: string | undefined;
|
|
1467
|
-
phone_number?: string | undefined;
|
|
1468
|
-
is_suspended?: boolean | undefined;
|
|
1469
|
-
hid_acs_system_id?: string | undefined;
|
|
1470
|
-
access_schedule?: {
|
|
1471
|
-
starts_at: string;
|
|
1472
|
-
ends_at: string | null;
|
|
1473
|
-
} | undefined;
|
|
1474
|
-
user_identity_full_name?: string | null | undefined;
|
|
1475
|
-
user_identity_email_address?: string | null | undefined;
|
|
1476
|
-
user_identity_phone_number?: string | null | undefined;
|
|
1477
1459
|
pending_mutations?: ({
|
|
1478
1460
|
message: string;
|
|
1479
1461
|
created_at: string;
|
|
@@ -1534,6 +1516,24 @@ export declare const unmanaged_acs_user: z.ZodObject<{
|
|
|
1534
1516
|
acs_access_group_id: string | null;
|
|
1535
1517
|
};
|
|
1536
1518
|
})[] | undefined;
|
|
1519
|
+
external_type?: "pti_user" | "brivo_user" | "hid_credential_manager_user" | "salto_site_user" | "latch_user" | "dormakaba_community_user" | "salto_space_user" | undefined;
|
|
1520
|
+
external_type_display_name?: string | undefined;
|
|
1521
|
+
salto_space_metadata?: {
|
|
1522
|
+
user_id?: string | undefined;
|
|
1523
|
+
audit_openings?: boolean | undefined;
|
|
1524
|
+
} | undefined;
|
|
1525
|
+
email_address?: string | undefined;
|
|
1526
|
+
full_name?: string | undefined;
|
|
1527
|
+
phone_number?: string | undefined;
|
|
1528
|
+
is_suspended?: boolean | undefined;
|
|
1529
|
+
hid_acs_system_id?: string | undefined;
|
|
1530
|
+
access_schedule?: {
|
|
1531
|
+
starts_at: string;
|
|
1532
|
+
ends_at: string | null;
|
|
1533
|
+
} | undefined;
|
|
1534
|
+
user_identity_full_name?: string | null | undefined;
|
|
1535
|
+
user_identity_email_address?: string | null | undefined;
|
|
1536
|
+
user_identity_phone_number?: string | null | undefined;
|
|
1537
1537
|
}, {
|
|
1538
1538
|
display_name: string;
|
|
1539
1539
|
workspace_id: string;
|
|
@@ -1587,24 +1587,6 @@ export declare const unmanaged_acs_user: z.ZodObject<{
|
|
|
1587
1587
|
last_successful_sync_at: string | null;
|
|
1588
1588
|
email?: string | undefined;
|
|
1589
1589
|
user_identity_id?: string | undefined;
|
|
1590
|
-
external_type?: "pti_user" | "brivo_user" | "hid_credential_manager_user" | "salto_site_user" | "latch_user" | "dormakaba_community_user" | "salto_space_user" | undefined;
|
|
1591
|
-
external_type_display_name?: string | undefined;
|
|
1592
|
-
salto_space_metadata?: {
|
|
1593
|
-
user_id?: string | undefined;
|
|
1594
|
-
audit_openings?: boolean | undefined;
|
|
1595
|
-
} | undefined;
|
|
1596
|
-
email_address?: string | undefined;
|
|
1597
|
-
full_name?: string | undefined;
|
|
1598
|
-
phone_number?: string | undefined;
|
|
1599
|
-
is_suspended?: boolean | undefined;
|
|
1600
|
-
hid_acs_system_id?: string | undefined;
|
|
1601
|
-
access_schedule?: {
|
|
1602
|
-
starts_at: string;
|
|
1603
|
-
ends_at: string | null;
|
|
1604
|
-
} | undefined;
|
|
1605
|
-
user_identity_full_name?: string | null | undefined;
|
|
1606
|
-
user_identity_email_address?: string | null | undefined;
|
|
1607
|
-
user_identity_phone_number?: string | null | undefined;
|
|
1608
1590
|
pending_mutations?: ({
|
|
1609
1591
|
message: string;
|
|
1610
1592
|
created_at: string;
|
|
@@ -1665,6 +1647,24 @@ export declare const unmanaged_acs_user: z.ZodObject<{
|
|
|
1665
1647
|
acs_access_group_id: string | null;
|
|
1666
1648
|
};
|
|
1667
1649
|
})[] | undefined;
|
|
1650
|
+
external_type?: "pti_user" | "brivo_user" | "hid_credential_manager_user" | "salto_site_user" | "latch_user" | "dormakaba_community_user" | "salto_space_user" | undefined;
|
|
1651
|
+
external_type_display_name?: string | undefined;
|
|
1652
|
+
salto_space_metadata?: {
|
|
1653
|
+
user_id?: string | undefined;
|
|
1654
|
+
audit_openings?: boolean | undefined;
|
|
1655
|
+
} | undefined;
|
|
1656
|
+
email_address?: string | undefined;
|
|
1657
|
+
full_name?: string | undefined;
|
|
1658
|
+
phone_number?: string | undefined;
|
|
1659
|
+
is_suspended?: boolean | undefined;
|
|
1660
|
+
hid_acs_system_id?: string | undefined;
|
|
1661
|
+
access_schedule?: {
|
|
1662
|
+
starts_at: string;
|
|
1663
|
+
ends_at: string | null;
|
|
1664
|
+
} | undefined;
|
|
1665
|
+
user_identity_full_name?: string | null | undefined;
|
|
1666
|
+
user_identity_email_address?: string | null | undefined;
|
|
1667
|
+
user_identity_phone_number?: string | null | undefined;
|
|
1668
1668
|
}>;
|
|
1669
1669
|
export type AcsUser = z.output<typeof acs_user>;
|
|
1670
1670
|
export type AcsUnmanagedUser = z.output<typeof unmanaged_acs_user>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const acs_entrance_salto_space_metadata: z.ZodObject<{
|
|
3
|
-
ext_door_id: z.ZodOptional<z.ZodString>;
|
|
4
3
|
door_id: z.ZodOptional<z.ZodString>;
|
|
5
4
|
door_name: z.ZodOptional<z.ZodString>;
|
|
6
5
|
door_description: z.ZodOptional<z.ZodString>;
|
|
@@ -10,7 +9,6 @@ export declare const acs_entrance_salto_space_metadata: z.ZodObject<{
|
|
|
10
9
|
}, "strip", z.ZodTypeAny, {
|
|
11
10
|
door_name?: string | undefined;
|
|
12
11
|
door_id?: string | undefined;
|
|
13
|
-
ext_door_id?: string | undefined;
|
|
14
12
|
door_description?: string | undefined;
|
|
15
13
|
audit_on_keys?: boolean | undefined;
|
|
16
14
|
room_name?: string | undefined;
|
|
@@ -18,7 +16,6 @@ export declare const acs_entrance_salto_space_metadata: z.ZodObject<{
|
|
|
18
16
|
}, {
|
|
19
17
|
door_name?: string | undefined;
|
|
20
18
|
door_id?: string | undefined;
|
|
21
|
-
ext_door_id?: string | undefined;
|
|
22
19
|
door_description?: string | undefined;
|
|
23
20
|
audit_on_keys?: boolean | undefined;
|
|
24
21
|
room_name?: string | undefined;
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export const acs_entrance_salto_space_metadata = z
|
|
3
3
|
.object({
|
|
4
|
-
ext_door_id: z.string().describe(`
|
|
5
|
-
---
|
|
6
|
-
deprecated: use door_id.
|
|
7
|
-
---
|
|
8
|
-
`),
|
|
9
4
|
door_id: z.string().describe('Door ID in the Salto Space access system.'),
|
|
10
5
|
door_name: z
|
|
11
6
|
.string()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"salto-space.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/models/acs/metadata/salto-space.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC;KAC/C,MAAM,CAAC;IACN,
|
|
1
|
+
{"version":3,"file":"salto-space.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/models/acs/metadata/salto-space.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC;KAC/C,MAAM,CAAC;IACN,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2CAA2C,CAAC;IACzE,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,QAAQ,CAAC,oDAAoD,CAAC;IACjE,gBAAgB,EAAE,CAAC;SAChB,MAAM,EAAE;SACR,QAAQ,CAAC,2DAA2D,CAAC;IACxE,aAAa,EAAE,CAAC;SACb,OAAO,EAAE;SACT,QAAQ,CACP,yFAAyF,CAC1F;IACH,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,QAAQ,CAAC,oDAAoD,CAAC;IACjE,gBAAgB,EAAE,CAAC;SAChB,MAAM,EAAE;SACR,QAAQ,CAAC,2DAA2D,CAAC;CACzE,CAAC;KACD,OAAO,EAAE;KACT,QAAQ,CAAC,6DAA6D,CAAC,CAAA;AAM1E,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC;KAC3C,MAAM,CAAC;IACN,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2CAA2C,CAAC;IACzE,cAAc,EAAE,CAAC;SACd,OAAO,EAAE;SACT,QAAQ,CACP,2FAA2F,CAC5F;CACJ,CAAC;KACD,OAAO,EAAE;KACT,QAAQ,CACP,uEAAuE,CACxE,CAAA"}
|
|
@@ -26,18 +26,28 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<{
|
|
|
26
26
|
error: z.ZodNull;
|
|
27
27
|
} & {
|
|
28
28
|
action_type: z.ZodLiteral<"LOCK_DOOR">;
|
|
29
|
-
result: z.ZodObject<{
|
|
29
|
+
result: z.ZodObject<{
|
|
30
|
+
was_confirmed_by_device: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
was_confirmed_by_device?: boolean | undefined;
|
|
33
|
+
}, {
|
|
34
|
+
was_confirmed_by_device?: boolean | undefined;
|
|
35
|
+
}>;
|
|
30
36
|
}, "strip", z.ZodTypeAny, {
|
|
31
37
|
status: "success";
|
|
32
38
|
action_attempt_id: string;
|
|
33
39
|
error: null;
|
|
34
|
-
result: {
|
|
40
|
+
result: {
|
|
41
|
+
was_confirmed_by_device?: boolean | undefined;
|
|
42
|
+
};
|
|
35
43
|
action_type: "LOCK_DOOR";
|
|
36
44
|
}, {
|
|
37
45
|
status: "success";
|
|
38
46
|
action_attempt_id: string;
|
|
39
47
|
error: null;
|
|
40
|
-
result: {
|
|
48
|
+
result: {
|
|
49
|
+
was_confirmed_by_device?: boolean | undefined;
|
|
50
|
+
};
|
|
41
51
|
action_type: "LOCK_DOOR";
|
|
42
52
|
}>, z.ZodObject<{
|
|
43
53
|
action_attempt_id: z.ZodString;
|
|
@@ -101,18 +111,28 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<{
|
|
|
101
111
|
error: z.ZodNull;
|
|
102
112
|
} & {
|
|
103
113
|
action_type: z.ZodLiteral<"UNLOCK_DOOR">;
|
|
104
|
-
result: z.ZodObject<{
|
|
114
|
+
result: z.ZodObject<{
|
|
115
|
+
was_confirmed_by_device: z.ZodOptional<z.ZodBoolean>;
|
|
116
|
+
}, "strip", z.ZodTypeAny, {
|
|
117
|
+
was_confirmed_by_device?: boolean | undefined;
|
|
118
|
+
}, {
|
|
119
|
+
was_confirmed_by_device?: boolean | undefined;
|
|
120
|
+
}>;
|
|
105
121
|
}, "strip", z.ZodTypeAny, {
|
|
106
122
|
status: "success";
|
|
107
123
|
action_attempt_id: string;
|
|
108
124
|
error: null;
|
|
109
|
-
result: {
|
|
125
|
+
result: {
|
|
126
|
+
was_confirmed_by_device?: boolean | undefined;
|
|
127
|
+
};
|
|
110
128
|
action_type: "UNLOCK_DOOR";
|
|
111
129
|
}, {
|
|
112
130
|
status: "success";
|
|
113
131
|
action_attempt_id: string;
|
|
114
132
|
error: null;
|
|
115
|
-
result: {
|
|
133
|
+
result: {
|
|
134
|
+
was_confirmed_by_device?: boolean | undefined;
|
|
135
|
+
};
|
|
116
136
|
action_type: "UNLOCK_DOOR";
|
|
117
137
|
}>, z.ZodObject<{
|
|
118
138
|
action_attempt_id: z.ZodString;
|
|
@@ -1625,14 +1645,14 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<{
|
|
|
1625
1645
|
message: string;
|
|
1626
1646
|
type: "no_credential_on_encoder";
|
|
1627
1647
|
}>, z.ZodObject<{
|
|
1628
|
-
type: z.ZodLiteral<"
|
|
1648
|
+
type: z.ZodLiteral<"encoder_not_online">;
|
|
1629
1649
|
message: z.ZodString;
|
|
1630
1650
|
}, "strip", z.ZodTypeAny, {
|
|
1631
1651
|
message: string;
|
|
1632
|
-
type: "
|
|
1652
|
+
type: "encoder_not_online";
|
|
1633
1653
|
}, {
|
|
1634
1654
|
message: string;
|
|
1635
|
-
type: "
|
|
1655
|
+
type: "encoder_not_online";
|
|
1636
1656
|
}>]>;
|
|
1637
1657
|
}, "strip", z.ZodTypeAny, {
|
|
1638
1658
|
status: "error";
|
|
@@ -1648,7 +1668,7 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<{
|
|
|
1648
1668
|
type: "no_credential_on_encoder";
|
|
1649
1669
|
} | {
|
|
1650
1670
|
message: string;
|
|
1651
|
-
type: "
|
|
1671
|
+
type: "encoder_not_online";
|
|
1652
1672
|
};
|
|
1653
1673
|
result: null;
|
|
1654
1674
|
action_type: "SCAN_CREDENTIAL";
|
|
@@ -1666,7 +1686,7 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<{
|
|
|
1666
1686
|
type: "no_credential_on_encoder";
|
|
1667
1687
|
} | {
|
|
1668
1688
|
message: string;
|
|
1669
|
-
type: "
|
|
1689
|
+
type: "encoder_not_online";
|
|
1670
1690
|
};
|
|
1671
1691
|
result: null;
|
|
1672
1692
|
action_type: "SCAN_CREDENTIAL";
|
|
@@ -2669,14 +2689,14 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<{
|
|
|
2669
2689
|
message: string;
|
|
2670
2690
|
type: "credential_cannot_be_reissued";
|
|
2671
2691
|
}>, z.ZodObject<{
|
|
2672
|
-
type: z.ZodLiteral<"
|
|
2692
|
+
type: z.ZodLiteral<"encoder_not_online">;
|
|
2673
2693
|
message: z.ZodString;
|
|
2674
2694
|
}, "strip", z.ZodTypeAny, {
|
|
2675
2695
|
message: string;
|
|
2676
|
-
type: "
|
|
2696
|
+
type: "encoder_not_online";
|
|
2677
2697
|
}, {
|
|
2678
2698
|
message: string;
|
|
2679
|
-
type: "
|
|
2699
|
+
type: "encoder_not_online";
|
|
2680
2700
|
}>]>;
|
|
2681
2701
|
}, "strip", z.ZodTypeAny, {
|
|
2682
2702
|
status: "error";
|
|
@@ -2698,7 +2718,7 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<{
|
|
|
2698
2718
|
type: "credential_cannot_be_reissued";
|
|
2699
2719
|
} | {
|
|
2700
2720
|
message: string;
|
|
2701
|
-
type: "
|
|
2721
|
+
type: "encoder_not_online";
|
|
2702
2722
|
};
|
|
2703
2723
|
result: null;
|
|
2704
2724
|
action_type: "ENCODE_CREDENTIAL";
|
|
@@ -2722,7 +2742,7 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<{
|
|
|
2722
2742
|
type: "credential_cannot_be_reissued";
|
|
2723
2743
|
} | {
|
|
2724
2744
|
message: string;
|
|
2725
|
-
type: "
|
|
2745
|
+
type: "encoder_not_online";
|
|
2726
2746
|
};
|
|
2727
2747
|
result: null;
|
|
2728
2748
|
action_type: "ENCODE_CREDENTIAL";
|
|
@@ -998,14 +998,14 @@ export declare const encode_credential_action_attempt: z.ZodDiscriminatedUnion<"
|
|
|
998
998
|
message: string;
|
|
999
999
|
type: "credential_cannot_be_reissued";
|
|
1000
1000
|
}>, z.ZodObject<{
|
|
1001
|
-
type: z.ZodLiteral<"
|
|
1001
|
+
type: z.ZodLiteral<"encoder_not_online">;
|
|
1002
1002
|
message: z.ZodString;
|
|
1003
1003
|
}, "strip", z.ZodTypeAny, {
|
|
1004
1004
|
message: string;
|
|
1005
|
-
type: "
|
|
1005
|
+
type: "encoder_not_online";
|
|
1006
1006
|
}, {
|
|
1007
1007
|
message: string;
|
|
1008
|
-
type: "
|
|
1008
|
+
type: "encoder_not_online";
|
|
1009
1009
|
}>]>;
|
|
1010
1010
|
}, "strip", z.ZodTypeAny, {
|
|
1011
1011
|
status: "error";
|
|
@@ -1027,7 +1027,7 @@ export declare const encode_credential_action_attempt: z.ZodDiscriminatedUnion<"
|
|
|
1027
1027
|
type: "credential_cannot_be_reissued";
|
|
1028
1028
|
} | {
|
|
1029
1029
|
message: string;
|
|
1030
|
-
type: "
|
|
1030
|
+
type: "encoder_not_online";
|
|
1031
1031
|
};
|
|
1032
1032
|
result: null;
|
|
1033
1033
|
action_type: "ENCODE_CREDENTIAL";
|
|
@@ -1051,7 +1051,7 @@ export declare const encode_credential_action_attempt: z.ZodDiscriminatedUnion<"
|
|
|
1051
1051
|
type: "credential_cannot_be_reissued";
|
|
1052
1052
|
} | {
|
|
1053
1053
|
message: string;
|
|
1054
|
-
type: "
|
|
1054
|
+
type: "encoder_not_online";
|
|
1055
1055
|
};
|
|
1056
1056
|
result: null;
|
|
1057
1057
|
action_type: "ENCODE_CREDENTIAL";
|
|
@@ -34,22 +34,22 @@ const credential_cannot_be_reissued = z
|
|
|
34
34
|
.describe('Detailed description of the error. Provides insights into the issue and potentially how to rectify it.'),
|
|
35
35
|
})
|
|
36
36
|
.describe('Error to indicate that the affected credential cannot be reissued.');
|
|
37
|
-
const
|
|
37
|
+
const encoder_not_online_error = z
|
|
38
38
|
.object({
|
|
39
39
|
type: z
|
|
40
|
-
.literal('
|
|
41
|
-
.describe('Error type to indicate that
|
|
40
|
+
.literal('encoder_not_online')
|
|
41
|
+
.describe('Error type to indicate that the encoder is not online.'),
|
|
42
42
|
message: z
|
|
43
43
|
.string()
|
|
44
44
|
.describe('Detailed description of the error. Provides insights into the issue and potentially how to rectify it.'),
|
|
45
45
|
})
|
|
46
|
-
.describe('Error to indicate that
|
|
46
|
+
.describe('Error to indicate that the encoder is not online.');
|
|
47
47
|
const error = z.union([
|
|
48
48
|
...common_action_attempt_errors,
|
|
49
49
|
no_credential_on_encoder_error,
|
|
50
50
|
incompatible_card_format_error,
|
|
51
51
|
credential_cannot_be_reissued,
|
|
52
|
-
|
|
52
|
+
encoder_not_online_error,
|
|
53
53
|
]);
|
|
54
54
|
const result = acs_credential
|
|
55
55
|
.or(unmanaged_acs_credential)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"encode-credential.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/encode-credential.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,cAAc,EACd,wBAAwB,GACzB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EACL,4BAA4B,EAC5B,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,aAAa,CAAA;AAEpB,MAAM,WAAW,GAAG,CAAC;KAClB,OAAO,CAAC,mBAAmB,CAAC;KAC5B,QAAQ,CACP,uGAAuG,CACxG,CAAA;AAEH,MAAM,8BAA8B,GAAG,CAAC;KACrC,MAAM,CAAC;IACN,IAAI,EAAE,CAAC;SACJ,OAAO,CAAC,0BAA0B,CAAC;SACnC,QAAQ,CACP,oEAAoE,CACrE;IACH,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,wGAAwG,CACzG;CACJ,CAAC;KACD,QAAQ,CAAC,+DAA+D,CAAC,CAAA;AAE5E,MAAM,8BAA8B,GAAG,CAAC;KACrC,MAAM,CAAC;IACN,IAAI,EAAE,CAAC;SACJ,OAAO,CAAC,0BAA0B,CAAC;SACnC,QAAQ,CAAC,qDAAqD,CAAC;IAClE,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,wGAAwG,CACzG;CACJ,CAAC;KACD,QAAQ,CAAC,gDAAgD,CAAC,CAAA;AAE7D,MAAM,6BAA6B,GAAG,CAAC;KACpC,MAAM,CAAC;IACN,IAAI,EAAE,CAAC;SACJ,OAAO,CAAC,+BAA+B,CAAC;SACxC,QAAQ,CACP,yEAAyE,CAC1E;IACH,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,wGAAwG,CACzG;CACJ,CAAC;KACD,QAAQ,CACP,oEAAoE,CACrE,CAAA;AAEH,MAAM,wBAAwB,GAAG,CAAC;KAC/B,MAAM,CAAC;IACN,IAAI,EAAE,CAAC;SACJ,OAAO,CAAC,oBAAoB,CAAC;SAC7B,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"encode-credential.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/encode-credential.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,cAAc,EACd,wBAAwB,GACzB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EACL,4BAA4B,EAC5B,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,aAAa,CAAA;AAEpB,MAAM,WAAW,GAAG,CAAC;KAClB,OAAO,CAAC,mBAAmB,CAAC;KAC5B,QAAQ,CACP,uGAAuG,CACxG,CAAA;AAEH,MAAM,8BAA8B,GAAG,CAAC;KACrC,MAAM,CAAC;IACN,IAAI,EAAE,CAAC;SACJ,OAAO,CAAC,0BAA0B,CAAC;SACnC,QAAQ,CACP,oEAAoE,CACrE;IACH,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,wGAAwG,CACzG;CACJ,CAAC;KACD,QAAQ,CAAC,+DAA+D,CAAC,CAAA;AAE5E,MAAM,8BAA8B,GAAG,CAAC;KACrC,MAAM,CAAC;IACN,IAAI,EAAE,CAAC;SACJ,OAAO,CAAC,0BAA0B,CAAC;SACnC,QAAQ,CAAC,qDAAqD,CAAC;IAClE,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,wGAAwG,CACzG;CACJ,CAAC;KACD,QAAQ,CAAC,gDAAgD,CAAC,CAAA;AAE7D,MAAM,6BAA6B,GAAG,CAAC;KACpC,MAAM,CAAC;IACN,IAAI,EAAE,CAAC;SACJ,OAAO,CAAC,+BAA+B,CAAC;SACxC,QAAQ,CACP,yEAAyE,CAC1E;IACH,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,wGAAwG,CACzG;CACJ,CAAC;KACD,QAAQ,CACP,oEAAoE,CACrE,CAAA;AAEH,MAAM,wBAAwB,GAAG,CAAC;KAC/B,MAAM,CAAC;IACN,IAAI,EAAE,CAAC;SACJ,OAAO,CAAC,oBAAoB,CAAC;SAC7B,QAAQ,CAAC,wDAAwD,CAAC;IACrE,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,wGAAwG,CACzG;CACJ,CAAC;KACD,QAAQ,CAAC,mDAAmD,CAAC,CAAA;AAEhE,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC;IACpB,GAAG,4BAA4B;IAC/B,8BAA8B;IAC9B,8BAA8B;IAC9B,6BAA6B;IAC7B,wBAAwB;CACzB,CAAC,CAAA;AAEF,MAAM,MAAM,GAAG,cAAc;KAC1B,EAAE,CAAC,wBAAwB,CAAC;KAC5B,QAAQ,CACP,4HAA4H,CAC7H,CAAA;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,CAAC,kBAAkB,CAAC,QAAQ,EAAE;IAC7E,6BAA6B;SAC1B,MAAM,CAAC;QACN,WAAW;KACZ,CAAC;SACD,QAAQ,CACP,4EAA4E,CAC7E;IACH,+BAA+B;SAC5B,MAAM,CAAC;QACN,WAAW;QACX,MAAM;KACP,CAAC;SACD,QAAQ,CACP,2EAA2E,CAC5E;IACH,4BAA4B;SACzB,MAAM,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;SAC9B,QAAQ,CACP,wEAAwE,CACzE;CACJ,CAAC,CAAA"}
|
|
@@ -26,18 +26,28 @@ export declare const lock_door_action_attempt: z.ZodDiscriminatedUnion<"status",
|
|
|
26
26
|
error: z.ZodNull;
|
|
27
27
|
} & {
|
|
28
28
|
action_type: z.ZodLiteral<"LOCK_DOOR">;
|
|
29
|
-
result: z.ZodObject<{
|
|
29
|
+
result: z.ZodObject<{
|
|
30
|
+
was_confirmed_by_device: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
was_confirmed_by_device?: boolean | undefined;
|
|
33
|
+
}, {
|
|
34
|
+
was_confirmed_by_device?: boolean | undefined;
|
|
35
|
+
}>;
|
|
30
36
|
}, "strip", z.ZodTypeAny, {
|
|
31
37
|
status: "success";
|
|
32
38
|
action_attempt_id: string;
|
|
33
39
|
error: null;
|
|
34
|
-
result: {
|
|
40
|
+
result: {
|
|
41
|
+
was_confirmed_by_device?: boolean | undefined;
|
|
42
|
+
};
|
|
35
43
|
action_type: "LOCK_DOOR";
|
|
36
44
|
}, {
|
|
37
45
|
status: "success";
|
|
38
46
|
action_attempt_id: string;
|
|
39
47
|
error: null;
|
|
40
|
-
result: {
|
|
48
|
+
result: {
|
|
49
|
+
was_confirmed_by_device?: boolean | undefined;
|
|
50
|
+
};
|
|
41
51
|
action_type: "LOCK_DOOR";
|
|
42
52
|
}>, z.ZodObject<{
|
|
43
53
|
action_attempt_id: z.ZodString;
|
|
@@ -11,7 +11,14 @@ const error = z
|
|
|
11
11
|
.describe('Detailed description of the error. Provides insights into the issue and potentially how to rectify it.'),
|
|
12
12
|
})
|
|
13
13
|
.describe('Error associated with the action.');
|
|
14
|
-
const result = z
|
|
14
|
+
const result = z
|
|
15
|
+
.object({
|
|
16
|
+
was_confirmed_by_device: z
|
|
17
|
+
.boolean()
|
|
18
|
+
.optional()
|
|
19
|
+
.describe('Indicates whether the device confirmed that the lock action occurred.'),
|
|
20
|
+
})
|
|
21
|
+
.describe('Result of the action.');
|
|
15
22
|
export const lock_door_action_attempt = z.discriminatedUnion('status', [
|
|
16
23
|
common_pending_action_attempt
|
|
17
24
|
.extend({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lock-door.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/lock-door.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,aAAa,CAAA;AAEpB,MAAM,WAAW,GAAG,CAAC;KAClB,OAAO,CAAC,WAAW,CAAC;KACpB,QAAQ,CAAC,uDAAuD,CAAC,CAAA;AAEpE,MAAM,KAAK,GAAG,CAAC;KACZ,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oBAAoB,CAAC;IAC/C,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,wGAAwG,CACzG;CACJ,CAAC;KACD,QAAQ,CAAC,mCAAmC,CAAC,CAAA;AAEhD,MAAM,MAAM,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"lock-door.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/lock-door.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,aAAa,CAAA;AAEpB,MAAM,WAAW,GAAG,CAAC;KAClB,OAAO,CAAC,WAAW,CAAC;KACpB,QAAQ,CAAC,uDAAuD,CAAC,CAAA;AAEpE,MAAM,KAAK,GAAG,CAAC;KACZ,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oBAAoB,CAAC;IAC/C,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,wGAAwG,CACzG;CACJ,CAAC;KACD,QAAQ,CAAC,mCAAmC,CAAC,CAAA;AAEhD,MAAM,MAAM,GAAG,CAAC;KACb,MAAM,CAAC;IACN,uBAAuB,EAAE,CAAC;SACvB,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CACP,uEAAuE,CACxE;CACJ,CAAC;KACD,QAAQ,CAAC,uBAAuB,CAAC,CAAA;AAEpC,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,kBAAkB,CAAC,QAAQ,EAAE;IACrE,6BAA6B;SAC1B,MAAM,CAAC;QACN,WAAW;KACZ,CAAC;SACD,QAAQ,CAAC,4BAA4B,CAAC;IACzC,+BAA+B;SAC5B,MAAM,CAAC;QACN,WAAW;QACX,MAAM;KACP,CAAC;SACD,QAAQ,CAAC,2BAA2B,CAAC;IACxC,4BAA4B;SACzB,MAAM,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;SAC9B,QAAQ,CAAC,wBAAwB,CAAC;CACtC,CAAC,CAAA"}
|
|
@@ -1475,14 +1475,14 @@ export declare const scan_credential_action_attempt: z.ZodDiscriminatedUnion<"st
|
|
|
1475
1475
|
message: string;
|
|
1476
1476
|
type: "no_credential_on_encoder";
|
|
1477
1477
|
}>, z.ZodObject<{
|
|
1478
|
-
type: z.ZodLiteral<"
|
|
1478
|
+
type: z.ZodLiteral<"encoder_not_online">;
|
|
1479
1479
|
message: z.ZodString;
|
|
1480
1480
|
}, "strip", z.ZodTypeAny, {
|
|
1481
1481
|
message: string;
|
|
1482
|
-
type: "
|
|
1482
|
+
type: "encoder_not_online";
|
|
1483
1483
|
}, {
|
|
1484
1484
|
message: string;
|
|
1485
|
-
type: "
|
|
1485
|
+
type: "encoder_not_online";
|
|
1486
1486
|
}>]>;
|
|
1487
1487
|
}, "strip", z.ZodTypeAny, {
|
|
1488
1488
|
status: "error";
|
|
@@ -1498,7 +1498,7 @@ export declare const scan_credential_action_attempt: z.ZodDiscriminatedUnion<"st
|
|
|
1498
1498
|
type: "no_credential_on_encoder";
|
|
1499
1499
|
} | {
|
|
1500
1500
|
message: string;
|
|
1501
|
-
type: "
|
|
1501
|
+
type: "encoder_not_online";
|
|
1502
1502
|
};
|
|
1503
1503
|
result: null;
|
|
1504
1504
|
action_type: "SCAN_CREDENTIAL";
|
|
@@ -1516,7 +1516,7 @@ export declare const scan_credential_action_attempt: z.ZodDiscriminatedUnion<"st
|
|
|
1516
1516
|
type: "no_credential_on_encoder";
|
|
1517
1517
|
} | {
|
|
1518
1518
|
message: string;
|
|
1519
|
-
type: "
|
|
1519
|
+
type: "encoder_not_online";
|
|
1520
1520
|
};
|
|
1521
1521
|
result: null;
|
|
1522
1522
|
action_type: "SCAN_CREDENTIAL";
|
|
@@ -14,20 +14,20 @@ const no_credential_on_encoder_error = z
|
|
|
14
14
|
.describe('Detailed description of the error. Provides insights into the issue and potentially how to rectify it.'),
|
|
15
15
|
})
|
|
16
16
|
.describe('Error to indicate that there is no credential on the encoder.');
|
|
17
|
-
const
|
|
17
|
+
const encoder_not_online_error = z
|
|
18
18
|
.object({
|
|
19
19
|
type: z
|
|
20
|
-
.literal('
|
|
21
|
-
.describe('Error type to indicate that
|
|
20
|
+
.literal('encoder_not_online')
|
|
21
|
+
.describe('Error type to indicate that the encoder is not online.'),
|
|
22
22
|
message: z
|
|
23
23
|
.string()
|
|
24
24
|
.describe('Detailed description of the error. Provides insights into the issue and potentially how to rectify it.'),
|
|
25
25
|
})
|
|
26
|
-
.describe('Error to indicate that
|
|
26
|
+
.describe('Error to indicate that the encoder is not online.');
|
|
27
27
|
const error = z.union([
|
|
28
28
|
...common_action_attempt_errors,
|
|
29
29
|
no_credential_on_encoder_error,
|
|
30
|
-
|
|
30
|
+
encoder_not_online_error,
|
|
31
31
|
]);
|
|
32
32
|
const warning = z
|
|
33
33
|
.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scan-credential.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/scan-credential.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,cAAc,EACd,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EACL,4BAA4B,EAC5B,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,aAAa,CAAA;AAEpB,MAAM,WAAW,GAAG,CAAC;KAClB,OAAO,CAAC,iBAAiB,CAAC;KAC1B,QAAQ,CAAC,8DAA8D,CAAC,CAAA;AAE3E,MAAM,8BAA8B,GAAG,CAAC;KACrC,MAAM,CAAC;IACN,IAAI,EAAE,CAAC;SACJ,OAAO,CAAC,0BAA0B,CAAC;SACnC,QAAQ,CACP,oEAAoE,CACrE;IACH,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,wGAAwG,CACzG;CACJ,CAAC;KACD,QAAQ,CAAC,+DAA+D,CAAC,CAAA;AAE5E,MAAM,wBAAwB,GAAG,CAAC;KAC/B,MAAM,CAAC;IACN,IAAI,EAAE,CAAC;SACJ,OAAO,CAAC,oBAAoB,CAAC;SAC7B,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"scan-credential.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/scan-credential.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,cAAc,EACd,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EACL,4BAA4B,EAC5B,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,aAAa,CAAA;AAEpB,MAAM,WAAW,GAAG,CAAC;KAClB,OAAO,CAAC,iBAAiB,CAAC;KAC1B,QAAQ,CAAC,8DAA8D,CAAC,CAAA;AAE3E,MAAM,8BAA8B,GAAG,CAAC;KACrC,MAAM,CAAC;IACN,IAAI,EAAE,CAAC;SACJ,OAAO,CAAC,0BAA0B,CAAC;SACnC,QAAQ,CACP,oEAAoE,CACrE;IACH,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,wGAAwG,CACzG;CACJ,CAAC;KACD,QAAQ,CAAC,+DAA+D,CAAC,CAAA;AAE5E,MAAM,wBAAwB,GAAG,CAAC;KAC/B,MAAM,CAAC;IACN,IAAI,EAAE,CAAC;SACJ,OAAO,CAAC,oBAAoB,CAAC;SAC7B,QAAQ,CAAC,wDAAwD,CAAC;IACrE,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,wGAAwG,CACzG;CACJ,CAAC;KACD,QAAQ,CAAC,mDAAmD,CAAC,CAAA;AAEhE,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC;IACpB,GAAG,4BAA4B;IAC/B,8BAA8B;IAC9B,wBAAwB;CACzB,CAAC,CAAA;AAEF,MAAM,OAAO,GAAG,CAAC;KACd,MAAM,CAAC;IACN,YAAY,EAAE,CAAC;SACZ,KAAK,CAAC;QACL,CAAC,CAAC,OAAO,CAAC,uCAAuC,CAAC;QAClD,CAAC,CAAC,OAAO,CAAC,kCAAkC,CAAC;KAC9C,CAAC;SACD,QAAQ,CAAC,uDAAuD,CAAC;IACpE,eAAe,EAAE,CAAC;SACf,MAAM,EAAE;SACR,QAAQ,CACP,0GAA0G,CAC3G;CACJ,CAAC;KACD,QAAQ,CAAC,2CAA2C,CAAC,CAAA;AAExD,MAAM,sBAAsB,GAAG,cAAc,CAAC,EAAE,CAAC,wBAAwB,CAAC,CAAA;AAE1E,MAAM,MAAM,GAAG,CAAC;KACb,MAAM,CAAC;IACN,yBAAyB,EAAE,yBAAyB;SACjD,QAAQ,EAAE;SACV,QAAQ,CAAC,6DAA6D,CAAC;IAC1E,sBAAsB,EAAE,sBAAsB;SAC3C,QAAQ,EAAE;SACV,QAAQ,CACP,wEAAwE,CACzE;IACH,QAAQ,EAAE,CAAC;SACR,KAAK,CAAC,OAAO,CAAC;SACd,QAAQ,CACP,4LAA4L,CAC7L;CACJ,CAAC;KACD,QAAQ,CACP,4NAA4N,CAC7N,CAAA;AAEH,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC,kBAAkB,CAAC,QAAQ,EAAE;IAC3E,6BAA6B;SAC1B,MAAM,CAAC;QACN,WAAW;KACZ,CAAC;SACD,QAAQ,CAAC,+DAA+D,CAAC;IAC5E,+BAA+B;SAC5B,MAAM,CAAC;QACN,WAAW;QACX,MAAM;KACP,CAAC;SACD,QAAQ,CAAC,0DAA0D,CAAC;IACvE,4BAA4B;SACzB,MAAM,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;SAC9B,QAAQ,CAAC,uDAAuD,CAAC;CACrE,CAAC,CAAA"}
|
|
@@ -26,18 +26,28 @@ export declare const unlock_door_action_attempt: z.ZodDiscriminatedUnion<"status
|
|
|
26
26
|
error: z.ZodNull;
|
|
27
27
|
} & {
|
|
28
28
|
action_type: z.ZodLiteral<"UNLOCK_DOOR">;
|
|
29
|
-
result: z.ZodObject<{
|
|
29
|
+
result: z.ZodObject<{
|
|
30
|
+
was_confirmed_by_device: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
was_confirmed_by_device?: boolean | undefined;
|
|
33
|
+
}, {
|
|
34
|
+
was_confirmed_by_device?: boolean | undefined;
|
|
35
|
+
}>;
|
|
30
36
|
}, "strip", z.ZodTypeAny, {
|
|
31
37
|
status: "success";
|
|
32
38
|
action_attempt_id: string;
|
|
33
39
|
error: null;
|
|
34
|
-
result: {
|
|
40
|
+
result: {
|
|
41
|
+
was_confirmed_by_device?: boolean | undefined;
|
|
42
|
+
};
|
|
35
43
|
action_type: "UNLOCK_DOOR";
|
|
36
44
|
}, {
|
|
37
45
|
status: "success";
|
|
38
46
|
action_attempt_id: string;
|
|
39
47
|
error: null;
|
|
40
|
-
result: {
|
|
48
|
+
result: {
|
|
49
|
+
was_confirmed_by_device?: boolean | undefined;
|
|
50
|
+
};
|
|
41
51
|
action_type: "UNLOCK_DOOR";
|
|
42
52
|
}>, z.ZodObject<{
|
|
43
53
|
action_attempt_id: z.ZodString;
|