@seamapi/types 1.67.0 → 1.69.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 +132 -34
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +205 -38
- package/dist/devicedb.cjs +6 -0
- package/dist/devicedb.cjs.map +1 -1
- package/dist/devicedb.d.cts +62 -0
- package/lib/seam/connect/openapi.d.ts +143 -11
- package/lib/seam/connect/openapi.js +120 -22
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +62 -27
- package/lib/seam/connect/unstable/models/access-codes/unmanaged-access-code.d.ts +6 -6
- package/lib/seam/connect/unstable/models/acs/credential.d.ts +7 -7
- package/lib/seam/connect/unstable/models/acs/credential.js +3 -2
- package/lib/seam/connect/unstable/models/acs/credential.js.map +1 -1
- package/lib/seam/connect/unstable/models/acs/user.d.ts +18 -9
- package/lib/seam/connect/unstable/models/acs/user.js +2 -3
- package/lib/seam/connect/unstable/models/acs/user.js.map +1 -1
- package/lib/seam/connect/unstable/models/schedule.d.ts +21 -0
- package/lib/seam/connect/unstable/models/schedule.js +12 -0
- package/lib/seam/connect/unstable/models/schedule.js.map +1 -0
- package/lib/seam/devicedb/public-models/device-model-v1.d.ts +10 -0
- package/lib/seam/devicedb/public-models/manufacturer.d.ts +4 -0
- package/lib/seam/devicedb/public-models/manufacturer.js +2 -0
- package/lib/seam/devicedb/public-models/manufacturer.js.map +1 -1
- package/lib/seam/devicedb/route-specs.d.ts +42 -0
- package/lib/seam/devicedb/route-specs.js +8 -0
- package/lib/seam/devicedb/route-specs.js.map +1 -1
- package/lib/seam/devicedb/route-types.d.ts +6 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/openapi.ts +120 -22
- package/src/lib/seam/connect/route-types.ts +121 -27
- package/src/lib/seam/connect/unstable/models/acs/credential.ts +3 -2
- package/src/lib/seam/connect/unstable/models/acs/user.ts +3 -3
- package/src/lib/seam/connect/unstable/models/schedule.ts +13 -0
- package/src/lib/seam/devicedb/public-models/manufacturer.ts +2 -0
- package/src/lib/seam/devicedb/route-specs.ts +8 -0
- package/src/lib/seam/devicedb/route-types.ts +30 -0
|
@@ -708,9 +708,10 @@ export interface Routes {
|
|
|
708
708
|
external_type?: ('pti_user' | 'brivo_user' | 'hid_cm_user' | 'salto_site_user') | undefined;
|
|
709
709
|
external_type_display_name?: string | undefined;
|
|
710
710
|
is_suspended: boolean;
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
711
|
+
access_schedule?: {
|
|
712
|
+
starts_at: string;
|
|
713
|
+
ends_at: string;
|
|
714
|
+
} | undefined;
|
|
714
715
|
full_name?: string | undefined;
|
|
715
716
|
/** Deprecated: use email_address. */
|
|
716
717
|
email?: string | undefined;
|
|
@@ -794,8 +795,8 @@ export interface Routes {
|
|
|
794
795
|
display_name: string;
|
|
795
796
|
code?: (string | undefined) | null;
|
|
796
797
|
access_method: 'code' | 'card' | 'mobile_key';
|
|
797
|
-
external_type
|
|
798
|
-
external_type_display_name
|
|
798
|
+
external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card') | undefined;
|
|
799
|
+
external_type_display_name?: string | undefined;
|
|
799
800
|
created_at: string;
|
|
800
801
|
workspace_id: string;
|
|
801
802
|
};
|
|
@@ -810,6 +811,11 @@ export interface Routes {
|
|
|
810
811
|
acs_user_id: string;
|
|
811
812
|
access_method: 'code' | 'card' | 'mobile_key';
|
|
812
813
|
code?: string | undefined;
|
|
814
|
+
is_multi_phone_sync_credential?: boolean | undefined;
|
|
815
|
+
assa_abloy_credential_service_mobile_endpoint_id?: string | undefined;
|
|
816
|
+
external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card') | undefined;
|
|
817
|
+
card_format?: ('TLCode' | 'rfid48') | undefined;
|
|
818
|
+
is_override_key?: boolean | undefined;
|
|
813
819
|
};
|
|
814
820
|
formData: {};
|
|
815
821
|
jsonResponse: {
|
|
@@ -821,8 +827,8 @@ export interface Routes {
|
|
|
821
827
|
display_name: string;
|
|
822
828
|
code?: (string | undefined) | null;
|
|
823
829
|
access_method: 'code' | 'card' | 'mobile_key';
|
|
824
|
-
external_type
|
|
825
|
-
external_type_display_name
|
|
830
|
+
external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card') | undefined;
|
|
831
|
+
external_type_display_name?: string | undefined;
|
|
826
832
|
created_at: string;
|
|
827
833
|
workspace_id: string;
|
|
828
834
|
};
|
|
@@ -857,8 +863,8 @@ export interface Routes {
|
|
|
857
863
|
display_name: string;
|
|
858
864
|
code?: (string | undefined) | null;
|
|
859
865
|
access_method: 'code' | 'card' | 'mobile_key';
|
|
860
|
-
external_type
|
|
861
|
-
external_type_display_name
|
|
866
|
+
external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card') | undefined;
|
|
867
|
+
external_type_display_name?: string | undefined;
|
|
862
868
|
created_at: string;
|
|
863
869
|
workspace_id: string;
|
|
864
870
|
};
|
|
@@ -887,8 +893,8 @@ export interface Routes {
|
|
|
887
893
|
display_name: string;
|
|
888
894
|
code?: (string | undefined) | null;
|
|
889
895
|
access_method: 'code' | 'card' | 'mobile_key';
|
|
890
|
-
external_type
|
|
891
|
-
external_type_display_name
|
|
896
|
+
external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card') | undefined;
|
|
897
|
+
external_type_display_name?: string | undefined;
|
|
892
898
|
created_at: string;
|
|
893
899
|
workspace_id: string;
|
|
894
900
|
}>;
|
|
@@ -913,8 +919,8 @@ export interface Routes {
|
|
|
913
919
|
display_name: string;
|
|
914
920
|
code?: (string | undefined) | null;
|
|
915
921
|
access_method: 'code' | 'card' | 'mobile_key';
|
|
916
|
-
external_type
|
|
917
|
-
external_type_display_name
|
|
922
|
+
external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card') | undefined;
|
|
923
|
+
external_type_display_name?: string | undefined;
|
|
918
924
|
created_at: string;
|
|
919
925
|
workspace_id: string;
|
|
920
926
|
};
|
|
@@ -939,8 +945,8 @@ export interface Routes {
|
|
|
939
945
|
display_name: string;
|
|
940
946
|
code?: (string | undefined) | null;
|
|
941
947
|
access_method: 'code' | 'card' | 'mobile_key';
|
|
942
|
-
external_type
|
|
943
|
-
external_type_display_name
|
|
948
|
+
external_type?: ('pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card') | undefined;
|
|
949
|
+
external_type_display_name?: string | undefined;
|
|
944
950
|
created_at: string;
|
|
945
951
|
workspace_id: string;
|
|
946
952
|
};
|
|
@@ -1063,6 +1069,7 @@ export interface Routes {
|
|
|
1063
1069
|
jsonBody: {
|
|
1064
1070
|
acs_system_id: string;
|
|
1065
1071
|
acs_access_group_ids?: string[];
|
|
1072
|
+
user_identity_id?: string | undefined;
|
|
1066
1073
|
access_schedule?: {
|
|
1067
1074
|
starts_at: string;
|
|
1068
1075
|
ends_at: string;
|
|
@@ -1086,9 +1093,10 @@ export interface Routes {
|
|
|
1086
1093
|
external_type?: ('pti_user' | 'brivo_user' | 'hid_cm_user' | 'salto_site_user') | undefined;
|
|
1087
1094
|
external_type_display_name?: string | undefined;
|
|
1088
1095
|
is_suspended: boolean;
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1096
|
+
access_schedule?: {
|
|
1097
|
+
starts_at: string;
|
|
1098
|
+
ends_at: string;
|
|
1099
|
+
} | undefined;
|
|
1092
1100
|
full_name?: string | undefined;
|
|
1093
1101
|
/** Deprecated: use email_address. */
|
|
1094
1102
|
email?: string | undefined;
|
|
@@ -1128,9 +1136,10 @@ export interface Routes {
|
|
|
1128
1136
|
external_type?: ('pti_user' | 'brivo_user' | 'hid_cm_user' | 'salto_site_user') | undefined;
|
|
1129
1137
|
external_type_display_name?: string | undefined;
|
|
1130
1138
|
is_suspended: boolean;
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1139
|
+
access_schedule?: {
|
|
1140
|
+
starts_at: string;
|
|
1141
|
+
ends_at: string;
|
|
1142
|
+
} | undefined;
|
|
1134
1143
|
full_name?: string | undefined;
|
|
1135
1144
|
/** Deprecated: use email_address. */
|
|
1136
1145
|
email?: string | undefined;
|
|
@@ -1159,9 +1168,10 @@ export interface Routes {
|
|
|
1159
1168
|
external_type?: ('pti_user' | 'brivo_user' | 'hid_cm_user' | 'salto_site_user') | undefined;
|
|
1160
1169
|
external_type_display_name?: string | undefined;
|
|
1161
1170
|
is_suspended: boolean;
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1171
|
+
access_schedule?: {
|
|
1172
|
+
starts_at: string;
|
|
1173
|
+
ends_at: string;
|
|
1174
|
+
} | undefined;
|
|
1165
1175
|
full_name?: string | undefined;
|
|
1166
1176
|
/** Deprecated: use email_address. */
|
|
1167
1177
|
email?: string | undefined;
|
|
@@ -6188,6 +6198,30 @@ export interface Routes {
|
|
|
6188
6198
|
};
|
|
6189
6199
|
};
|
|
6190
6200
|
};
|
|
6201
|
+
'/user_identities/enrollment_automations/launch': {
|
|
6202
|
+
route: '/user_identities/enrollment_automations/launch';
|
|
6203
|
+
method: 'POST';
|
|
6204
|
+
queryParams: {};
|
|
6205
|
+
jsonBody: {};
|
|
6206
|
+
commonParams: {
|
|
6207
|
+
user_identity_id: string;
|
|
6208
|
+
credential_manager_acs_system_id: string;
|
|
6209
|
+
acs_credential_pool_id?: string | undefined;
|
|
6210
|
+
create_credential_manager_user?: boolean | undefined;
|
|
6211
|
+
credential_manager_acs_user_id?: string | undefined;
|
|
6212
|
+
};
|
|
6213
|
+
formData: {};
|
|
6214
|
+
jsonResponse: {
|
|
6215
|
+
enrollment_automation: {
|
|
6216
|
+
acs_credential_provisioning_automation_id: string;
|
|
6217
|
+
credential_manager_acs_system_id: string;
|
|
6218
|
+
user_identity_id: string;
|
|
6219
|
+
created_at: string;
|
|
6220
|
+
workspace_id: string;
|
|
6221
|
+
enrollment_automation_id: string;
|
|
6222
|
+
};
|
|
6223
|
+
};
|
|
6224
|
+
};
|
|
6191
6225
|
'/user_identities/get': {
|
|
6192
6226
|
route: '/user_identities/get';
|
|
6193
6227
|
method: 'GET' | 'POST';
|
|
@@ -6717,9 +6751,10 @@ export interface Routes {
|
|
|
6717
6751
|
external_type?: ('pti_user' | 'brivo_user' | 'hid_cm_user' | 'salto_site_user') | undefined;
|
|
6718
6752
|
external_type_display_name?: string | undefined;
|
|
6719
6753
|
is_suspended: boolean;
|
|
6720
|
-
|
|
6721
|
-
|
|
6722
|
-
|
|
6754
|
+
access_schedule?: {
|
|
6755
|
+
starts_at: string;
|
|
6756
|
+
ends_at: string;
|
|
6757
|
+
} | undefined;
|
|
6723
6758
|
full_name?: string | undefined;
|
|
6724
6759
|
/** Deprecated: use email_address. */
|
|
6725
6760
|
email?: string | undefined;
|
|
@@ -6,10 +6,10 @@ export declare const unmanaged_access_code: z.ZodObject<{
|
|
|
6
6
|
created_at: z.ZodString;
|
|
7
7
|
access_code_id: z.ZodString;
|
|
8
8
|
device_id: z.ZodString;
|
|
9
|
-
errors: z.ZodAny;
|
|
10
|
-
warnings: z.ZodAny;
|
|
11
9
|
starts_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
10
|
ends_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
errors: z.ZodAny;
|
|
12
|
+
warnings: z.ZodAny;
|
|
13
13
|
is_managed: z.ZodLiteral<false>;
|
|
14
14
|
status: z.ZodEnum<["set"]>;
|
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -21,10 +21,10 @@ export declare const unmanaged_access_code: z.ZodObject<{
|
|
|
21
21
|
access_code_id: string;
|
|
22
22
|
device_id: string;
|
|
23
23
|
is_managed: false;
|
|
24
|
-
errors?: any;
|
|
25
|
-
warnings?: any;
|
|
26
24
|
starts_at?: string | null | undefined;
|
|
27
25
|
ends_at?: string | null | undefined;
|
|
26
|
+
errors?: any;
|
|
27
|
+
warnings?: any;
|
|
28
28
|
}, {
|
|
29
29
|
type: "time_bound" | "ongoing";
|
|
30
30
|
code: string | null;
|
|
@@ -34,9 +34,9 @@ export declare const unmanaged_access_code: z.ZodObject<{
|
|
|
34
34
|
access_code_id: string;
|
|
35
35
|
device_id: string;
|
|
36
36
|
is_managed: false;
|
|
37
|
-
errors?: any;
|
|
38
|
-
warnings?: any;
|
|
39
37
|
starts_at?: string | null | undefined;
|
|
40
38
|
ends_at?: string | null | undefined;
|
|
39
|
+
errors?: any;
|
|
40
|
+
warnings?: any;
|
|
41
41
|
}>;
|
|
42
42
|
export type UnmanagedAccessCode = z.infer<typeof unmanaged_access_code>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const acs_credential_external_type: z.ZodEnum<["pti_card", "brivo_credential", "hid_credential"]>;
|
|
2
|
+
export declare const acs_credential_external_type: z.ZodEnum<["pti_card", "brivo_credential", "hid_credential", "visionline_card"]>;
|
|
3
3
|
export declare const acs_credential_access_method_type: z.ZodEnum<["code", "card", "mobile_key"]>;
|
|
4
4
|
export type AcsCredentialExternalType = z.infer<typeof acs_credential_external_type>;
|
|
5
5
|
export declare const acs_credential: z.ZodObject<{
|
|
@@ -10,33 +10,33 @@ export declare const acs_credential: z.ZodObject<{
|
|
|
10
10
|
display_name: z.ZodString;
|
|
11
11
|
code: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12
12
|
access_method: z.ZodEnum<["code", "card", "mobile_key"]>;
|
|
13
|
-
external_type: z.ZodEnum<["pti_card", "brivo_credential", "hid_credential"]
|
|
14
|
-
external_type_display_name: z.ZodString
|
|
13
|
+
external_type: z.ZodOptional<z.ZodEnum<["pti_card", "brivo_credential", "hid_credential", "visionline_card"]>>;
|
|
14
|
+
external_type_display_name: z.ZodOptional<z.ZodString>;
|
|
15
15
|
created_at: z.ZodString;
|
|
16
16
|
workspace_id: z.ZodString;
|
|
17
17
|
}, "strip", z.ZodTypeAny, {
|
|
18
18
|
workspace_id: string;
|
|
19
19
|
created_at: string;
|
|
20
20
|
acs_system_id: string;
|
|
21
|
-
external_type: "pti_card" | "brivo_credential" | "hid_credential";
|
|
22
|
-
external_type_display_name: string;
|
|
23
21
|
display_name: string;
|
|
24
22
|
acs_credential_id: string;
|
|
25
23
|
access_method: "code" | "card" | "mobile_key";
|
|
26
24
|
acs_user_id?: string | undefined;
|
|
27
25
|
acs_credential_pool_id?: string | undefined;
|
|
28
26
|
code?: string | null | undefined;
|
|
27
|
+
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | undefined;
|
|
28
|
+
external_type_display_name?: string | undefined;
|
|
29
29
|
}, {
|
|
30
30
|
workspace_id: string;
|
|
31
31
|
created_at: string;
|
|
32
32
|
acs_system_id: string;
|
|
33
|
-
external_type: "pti_card" | "brivo_credential" | "hid_credential";
|
|
34
|
-
external_type_display_name: string;
|
|
35
33
|
display_name: string;
|
|
36
34
|
acs_credential_id: string;
|
|
37
35
|
access_method: "code" | "card" | "mobile_key";
|
|
38
36
|
acs_user_id?: string | undefined;
|
|
39
37
|
acs_credential_pool_id?: string | undefined;
|
|
40
38
|
code?: string | null | undefined;
|
|
39
|
+
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | undefined;
|
|
40
|
+
external_type_display_name?: string | undefined;
|
|
41
41
|
}>;
|
|
42
42
|
export type AcsCredential = z.output<typeof acs_credential>;
|
|
@@ -3,6 +3,7 @@ export const acs_credential_external_type = z.enum([
|
|
|
3
3
|
'pti_card',
|
|
4
4
|
'brivo_credential',
|
|
5
5
|
'hid_credential',
|
|
6
|
+
'visionline_card',
|
|
6
7
|
]);
|
|
7
8
|
export const acs_credential_access_method_type = z.enum([
|
|
8
9
|
'code',
|
|
@@ -17,8 +18,8 @@ export const acs_credential = z.object({
|
|
|
17
18
|
display_name: z.string().nonempty(),
|
|
18
19
|
code: z.string().optional().nullable(),
|
|
19
20
|
access_method: acs_credential_access_method_type,
|
|
20
|
-
external_type: acs_credential_external_type,
|
|
21
|
-
external_type_display_name: z.string(),
|
|
21
|
+
external_type: acs_credential_external_type.optional(),
|
|
22
|
+
external_type_display_name: z.string().optional(),
|
|
22
23
|
created_at: z.string().datetime(),
|
|
23
24
|
workspace_id: z.string().uuid(),
|
|
24
25
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credential.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/unstable/models/acs/credential.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,IAAI,CAAC;IACjD,UAAU;IACV,kBAAkB;IAClB,gBAAgB;
|
|
1
|
+
{"version":3,"file":"credential.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/unstable/models/acs/credential.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,IAAI,CAAC;IACjD,UAAU;IACV,kBAAkB;IAClB,gBAAgB;IAChB,iBAAiB;CAClB,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,CAAC,IAAI,CAAC;IACtD,MAAM;IACN,MAAM;IACN,YAAY;CACb,CAAC,CAAA;AAMF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACpC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IACzC,sBAAsB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IACpD,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAChC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACtC,aAAa,EAAE,iCAAiC;IAChD,aAAa,EAAE,4BAA4B,CAAC,QAAQ,EAAE;IACtD,0BAA0B,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;CAChC,CAAC,CAAA"}
|
|
@@ -10,10 +10,17 @@ export declare const acs_user: z.ZodObject<{
|
|
|
10
10
|
acs_user_id: z.ZodString;
|
|
11
11
|
display_name: z.ZodString;
|
|
12
12
|
is_suspended: z.ZodBoolean;
|
|
13
|
-
is_virtual: z.ZodBoolean;
|
|
14
|
-
starts_at: z.ZodOptional<z.ZodString>;
|
|
15
|
-
ends_at: z.ZodOptional<z.ZodString>;
|
|
16
13
|
hid_acs_system_id: z.ZodOptional<z.ZodString>;
|
|
14
|
+
access_schedule: z.ZodOptional<z.ZodObject<{
|
|
15
|
+
starts_at: z.ZodString;
|
|
16
|
+
ends_at: z.ZodString;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
starts_at: string;
|
|
19
|
+
ends_at: string;
|
|
20
|
+
}, {
|
|
21
|
+
starts_at: string;
|
|
22
|
+
ends_at: string;
|
|
23
|
+
}>>;
|
|
17
24
|
full_name: z.ZodOptional<z.ZodString>;
|
|
18
25
|
email: z.ZodOptional<z.ZodString>;
|
|
19
26
|
email_address: z.ZodOptional<z.ZodString>;
|
|
@@ -25,12 +32,13 @@ export declare const acs_user: z.ZodObject<{
|
|
|
25
32
|
acs_user_id: string;
|
|
26
33
|
display_name: string;
|
|
27
34
|
is_suspended: boolean;
|
|
28
|
-
is_virtual: boolean;
|
|
29
35
|
external_type?: "pti_user" | "brivo_user" | "hid_cm_user" | "salto_site_user" | undefined;
|
|
30
36
|
external_type_display_name?: string | undefined;
|
|
31
|
-
starts_at?: string | undefined;
|
|
32
|
-
ends_at?: string | undefined;
|
|
33
37
|
hid_acs_system_id?: string | undefined;
|
|
38
|
+
access_schedule?: {
|
|
39
|
+
starts_at: string;
|
|
40
|
+
ends_at: string;
|
|
41
|
+
} | undefined;
|
|
34
42
|
full_name?: string | undefined;
|
|
35
43
|
email?: string | undefined;
|
|
36
44
|
email_address?: string | undefined;
|
|
@@ -42,12 +50,13 @@ export declare const acs_user: z.ZodObject<{
|
|
|
42
50
|
acs_user_id: string;
|
|
43
51
|
display_name: string;
|
|
44
52
|
is_suspended: boolean;
|
|
45
|
-
is_virtual: boolean;
|
|
46
53
|
external_type?: "pti_user" | "brivo_user" | "hid_cm_user" | "salto_site_user" | undefined;
|
|
47
54
|
external_type_display_name?: string | undefined;
|
|
48
|
-
starts_at?: string | undefined;
|
|
49
|
-
ends_at?: string | undefined;
|
|
50
55
|
hid_acs_system_id?: string | undefined;
|
|
56
|
+
access_schedule?: {
|
|
57
|
+
starts_at: string;
|
|
58
|
+
ends_at: string;
|
|
59
|
+
} | undefined;
|
|
51
60
|
full_name?: string | undefined;
|
|
52
61
|
email?: string | undefined;
|
|
53
62
|
email_address?: string | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { schedule } from '../schedule.js';
|
|
2
3
|
export const acs_user_external_type = z.enum([
|
|
3
4
|
'pti_user',
|
|
4
5
|
'brivo_user',
|
|
@@ -35,9 +36,7 @@ export const acs_user = z
|
|
|
35
36
|
external_type: acs_user_external_type.optional(),
|
|
36
37
|
external_type_display_name: z.string().optional(),
|
|
37
38
|
is_suspended: z.boolean(),
|
|
38
|
-
|
|
39
|
-
ends_at: z.string().datetime().optional(),
|
|
40
|
-
is_virtual: z.boolean(),
|
|
39
|
+
access_schedule: schedule.optional(),
|
|
41
40
|
})
|
|
42
41
|
.merge(user_fields);
|
|
43
42
|
//# sourceMappingURL=user.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/unstable/models/acs/user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC3C,UAAU;IACV,YAAY;IACZ,aAAa;IACb,iBAAiB;CAClB,CAAC,CAAA;AAIF,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM;KAC1B,MAAM,EAAE;KACR,IAAI,EAAE;KACN,MAAM,CACL,CAAC,GAAG,EAAE,EAAE;IACN,iDAAiD;IACjD,OAAO,mBAAmB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;AACtC,CAAC,EACD;IACE,OAAO,EAAE,oDAAoD;CAC9D,CACF,CAAA;AAEH,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,KAAK,EAAE,CAAC;SACL,MAAM,EAAE;SACR,KAAK,EAAE;SACP,QAAQ,EAAE;SACV,QAAQ,CAAC,gCAAgC,CAAC;IAC7C,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IAC5C,YAAY,EAAE,YAAY,CAAC,QAAQ,EAAE;CACtC,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC;KACtB,MAAM,CAAC;IACN,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC9B,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAChC,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IAC/C,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC/B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,aAAa,EAAE,sBAAsB,CAAC,QAAQ,EAAE;IAChD,0BAA0B,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjD,YAAY,EAAE,CAAC,CAAC,OAAO,EAAE;IACzB,
|
|
1
|
+
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/unstable/models/acs/user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAEzC,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC3C,UAAU;IACV,YAAY;IACZ,aAAa;IACb,iBAAiB;CAClB,CAAC,CAAA;AAIF,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM;KAC1B,MAAM,EAAE;KACR,IAAI,EAAE;KACN,MAAM,CACL,CAAC,GAAG,EAAE,EAAE;IACN,iDAAiD;IACjD,OAAO,mBAAmB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;AACtC,CAAC,EACD;IACE,OAAO,EAAE,oDAAoD;CAC9D,CACF,CAAA;AAEH,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,KAAK,EAAE,CAAC;SACL,MAAM,EAAE;SACR,KAAK,EAAE;SACP,QAAQ,EAAE;SACV,QAAQ,CAAC,gCAAgC,CAAC;IAC7C,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IAC5C,YAAY,EAAE,YAAY,CAAC,QAAQ,EAAE;CACtC,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC;KACtB,MAAM,CAAC;IACN,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC9B,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAChC,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IAC/C,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC/B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,aAAa,EAAE,sBAAsB,CAAC,QAAQ,EAAE;IAChD,0BAA0B,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjD,YAAY,EAAE,CAAC,CAAC,OAAO,EAAE;IACzB,eAAe,EAAE,QAAQ,CAAC,QAAQ,EAAE;CACrC,CAAC;KACD,KAAK,CAAC,WAAW,CAAC,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const start_end_schedule: z.ZodObject<{
|
|
3
|
+
starts_at: z.ZodString;
|
|
4
|
+
ends_at: z.ZodString;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
starts_at: string;
|
|
7
|
+
ends_at: string;
|
|
8
|
+
}, {
|
|
9
|
+
starts_at: string;
|
|
10
|
+
ends_at: string;
|
|
11
|
+
}>;
|
|
12
|
+
export declare const schedule: z.ZodObject<{
|
|
13
|
+
starts_at: z.ZodString;
|
|
14
|
+
ends_at: z.ZodString;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
starts_at: string;
|
|
17
|
+
ends_at: string;
|
|
18
|
+
}, {
|
|
19
|
+
starts_at: string;
|
|
20
|
+
ends_at: string;
|
|
21
|
+
}>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const start_end_schedule = z.object({
|
|
3
|
+
starts_at: z.string().datetime(),
|
|
4
|
+
ends_at: z.string().datetime(),
|
|
5
|
+
});
|
|
6
|
+
// export const schedule = z.union([
|
|
7
|
+
// start_end_schedule,
|
|
8
|
+
// daily_schedule,
|
|
9
|
+
// weekly_schedule
|
|
10
|
+
// ])
|
|
11
|
+
export const schedule = start_end_schedule;
|
|
12
|
+
//# sourceMappingURL=schedule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schedule.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/unstable/models/schedule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAA;AAEF,oCAAoC;AACpC,wBAAwB;AACxB,oBAAoB;AACpB,oBAAoB;AACpB,KAAK;AACL,MAAM,CAAC,MAAM,QAAQ,GAAG,kBAAkB,CAAA"}
|
|
@@ -314,6 +314,7 @@ export declare const base_device_model_v1: z.ZodObject<{
|
|
|
314
314
|
url: string;
|
|
315
315
|
}>>;
|
|
316
316
|
integration: z.ZodEnum<["stable", "beta", "planned", "unsupported", "inquire"]>;
|
|
317
|
+
integration_support_level: z.ZodEnum<["stable", "beta", "planned", "unsupported", "inquire"]>;
|
|
317
318
|
is_connect_webview_supported: z.ZodBoolean;
|
|
318
319
|
requires_seam_support_to_add_account: z.ZodBoolean;
|
|
319
320
|
device_model_count: z.ZodNumber;
|
|
@@ -321,6 +322,7 @@ export declare const base_device_model_v1: z.ZodObject<{
|
|
|
321
322
|
display_name: string;
|
|
322
323
|
manufacturer_id: string;
|
|
323
324
|
integration: "beta" | "stable" | "unsupported" | "planned" | "inquire";
|
|
325
|
+
integration_support_level: "beta" | "stable" | "unsupported" | "planned" | "inquire";
|
|
324
326
|
is_connect_webview_supported: boolean;
|
|
325
327
|
requires_seam_support_to_add_account: boolean;
|
|
326
328
|
logo?: {
|
|
@@ -332,6 +334,7 @@ export declare const base_device_model_v1: z.ZodObject<{
|
|
|
332
334
|
display_name: string;
|
|
333
335
|
manufacturer_id: string;
|
|
334
336
|
integration: "beta" | "stable" | "unsupported" | "planned" | "inquire";
|
|
337
|
+
integration_support_level: "beta" | "stable" | "unsupported" | "planned" | "inquire";
|
|
335
338
|
is_connect_webview_supported: boolean;
|
|
336
339
|
requires_seam_support_to_add_account: boolean;
|
|
337
340
|
logo?: {
|
|
@@ -439,6 +442,7 @@ export declare const base_device_model_v1: z.ZodObject<{
|
|
|
439
442
|
display_name: string;
|
|
440
443
|
manufacturer_id: string;
|
|
441
444
|
integration: "beta" | "stable" | "unsupported" | "planned" | "inquire";
|
|
445
|
+
integration_support_level: "beta" | "stable" | "unsupported" | "planned" | "inquire";
|
|
442
446
|
is_connect_webview_supported: boolean;
|
|
443
447
|
requires_seam_support_to_add_account: boolean;
|
|
444
448
|
logo?: {
|
|
@@ -480,6 +484,7 @@ export declare const base_device_model_v1: z.ZodObject<{
|
|
|
480
484
|
display_name: string;
|
|
481
485
|
manufacturer_id: string;
|
|
482
486
|
integration: "beta" | "stable" | "unsupported" | "planned" | "inquire";
|
|
487
|
+
integration_support_level: "beta" | "stable" | "unsupported" | "planned" | "inquire";
|
|
483
488
|
is_connect_webview_supported: boolean;
|
|
484
489
|
requires_seam_support_to_add_account: boolean;
|
|
485
490
|
logo?: {
|
|
@@ -534,6 +539,7 @@ export declare const device_model_v1: z.ZodIntersection<z.ZodObject<{
|
|
|
534
539
|
url: string;
|
|
535
540
|
}>>;
|
|
536
541
|
integration: z.ZodEnum<["stable", "beta", "planned", "unsupported", "inquire"]>;
|
|
542
|
+
integration_support_level: z.ZodEnum<["stable", "beta", "planned", "unsupported", "inquire"]>;
|
|
537
543
|
is_connect_webview_supported: z.ZodBoolean;
|
|
538
544
|
requires_seam_support_to_add_account: z.ZodBoolean;
|
|
539
545
|
device_model_count: z.ZodNumber;
|
|
@@ -541,6 +547,7 @@ export declare const device_model_v1: z.ZodIntersection<z.ZodObject<{
|
|
|
541
547
|
display_name: string;
|
|
542
548
|
manufacturer_id: string;
|
|
543
549
|
integration: "beta" | "stable" | "unsupported" | "planned" | "inquire";
|
|
550
|
+
integration_support_level: "beta" | "stable" | "unsupported" | "planned" | "inquire";
|
|
544
551
|
is_connect_webview_supported: boolean;
|
|
545
552
|
requires_seam_support_to_add_account: boolean;
|
|
546
553
|
logo?: {
|
|
@@ -552,6 +559,7 @@ export declare const device_model_v1: z.ZodIntersection<z.ZodObject<{
|
|
|
552
559
|
display_name: string;
|
|
553
560
|
manufacturer_id: string;
|
|
554
561
|
integration: "beta" | "stable" | "unsupported" | "planned" | "inquire";
|
|
562
|
+
integration_support_level: "beta" | "stable" | "unsupported" | "planned" | "inquire";
|
|
555
563
|
is_connect_webview_supported: boolean;
|
|
556
564
|
requires_seam_support_to_add_account: boolean;
|
|
557
565
|
logo?: {
|
|
@@ -659,6 +667,7 @@ export declare const device_model_v1: z.ZodIntersection<z.ZodObject<{
|
|
|
659
667
|
display_name: string;
|
|
660
668
|
manufacturer_id: string;
|
|
661
669
|
integration: "beta" | "stable" | "unsupported" | "planned" | "inquire";
|
|
670
|
+
integration_support_level: "beta" | "stable" | "unsupported" | "planned" | "inquire";
|
|
662
671
|
is_connect_webview_supported: boolean;
|
|
663
672
|
requires_seam_support_to_add_account: boolean;
|
|
664
673
|
logo?: {
|
|
@@ -700,6 +709,7 @@ export declare const device_model_v1: z.ZodIntersection<z.ZodObject<{
|
|
|
700
709
|
display_name: string;
|
|
701
710
|
manufacturer_id: string;
|
|
702
711
|
integration: "beta" | "stable" | "unsupported" | "planned" | "inquire";
|
|
712
|
+
integration_support_level: "beta" | "stable" | "unsupported" | "planned" | "inquire";
|
|
703
713
|
is_connect_webview_supported: boolean;
|
|
704
714
|
requires_seam_support_to_add_account: boolean;
|
|
705
715
|
logo?: {
|
|
@@ -17,7 +17,9 @@ export declare const manufacturer: z.ZodObject<{
|
|
|
17
17
|
width: number;
|
|
18
18
|
url: string;
|
|
19
19
|
}>>;
|
|
20
|
+
/** @deprecated */
|
|
20
21
|
integration: z.ZodEnum<["stable", "beta", "planned", "unsupported", "inquire"]>;
|
|
22
|
+
integration_support_level: z.ZodEnum<["stable", "beta", "planned", "unsupported", "inquire"]>;
|
|
21
23
|
is_connect_webview_supported: z.ZodBoolean;
|
|
22
24
|
requires_seam_support_to_add_account: z.ZodBoolean;
|
|
23
25
|
device_model_count: z.ZodNumber;
|
|
@@ -25,6 +27,7 @@ export declare const manufacturer: z.ZodObject<{
|
|
|
25
27
|
display_name: string;
|
|
26
28
|
manufacturer_id: string;
|
|
27
29
|
integration: "beta" | "stable" | "unsupported" | "planned" | "inquire";
|
|
30
|
+
integration_support_level: "beta" | "stable" | "unsupported" | "planned" | "inquire";
|
|
28
31
|
is_connect_webview_supported: boolean;
|
|
29
32
|
requires_seam_support_to_add_account: boolean;
|
|
30
33
|
device_model_count: number;
|
|
@@ -37,6 +40,7 @@ export declare const manufacturer: z.ZodObject<{
|
|
|
37
40
|
display_name: string;
|
|
38
41
|
manufacturer_id: string;
|
|
39
42
|
integration: "beta" | "stable" | "unsupported" | "planned" | "inquire";
|
|
43
|
+
integration_support_level: "beta" | "stable" | "unsupported" | "planned" | "inquire";
|
|
40
44
|
is_connect_webview_supported: boolean;
|
|
41
45
|
requires_seam_support_to_add_account: boolean;
|
|
42
46
|
device_model_count: number;
|
|
@@ -11,7 +11,9 @@ export const manufacturer = z.object({
|
|
|
11
11
|
manufacturer_id: z.string().uuid(),
|
|
12
12
|
display_name: z.string(),
|
|
13
13
|
logo: image_reference.optional(),
|
|
14
|
+
/** @deprecated */
|
|
14
15
|
integration: manufacturer_integration_support_level,
|
|
16
|
+
integration_support_level: manufacturer_integration_support_level,
|
|
15
17
|
is_connect_webview_supported: z.boolean(),
|
|
16
18
|
requires_seam_support_to_add_account: z.boolean(),
|
|
17
19
|
device_model_count: z.number(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manufacturer.js","sourceRoot":"","sources":["../../../../src/lib/seam/devicedb/public-models/manufacturer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAEtD,MAAM,CAAC,MAAM,sCAAsC,GAAG,CAAC,CAAC,IAAI,CAAC;IAC3D,QAAQ;IACR,MAAM;IACN,SAAS;IACT,aAAa;IACb,SAAS;CACV,CAAC,CAAA;AAMF,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAClC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,IAAI,EAAE,eAAe,CAAC,QAAQ,EAAE;IAChC,WAAW,EAAE,sCAAsC;IACnD,4BAA4B,EAAE,CAAC,CAAC,OAAO,EAAE;IACzC,oCAAoC,EAAE,CAAC,CAAC,OAAO,EAAE;IACjD,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;CAC/B,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"manufacturer.js","sourceRoot":"","sources":["../../../../src/lib/seam/devicedb/public-models/manufacturer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAEtD,MAAM,CAAC,MAAM,sCAAsC,GAAG,CAAC,CAAC,IAAI,CAAC;IAC3D,QAAQ;IACR,MAAM;IACN,SAAS;IACT,aAAa;IACb,SAAS;CACV,CAAC,CAAA;AAMF,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAClC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,IAAI,EAAE,eAAe,CAAC,QAAQ,EAAE;IAChC,kBAAkB;IAClB,WAAW,EAAE,sCAAsC;IACnD,yBAAyB,EAAE,sCAAsC;IACjE,4BAA4B,EAAE,CAAC,CAAC,OAAO,EAAE;IACzC,oCAAoC,EAAE,CAAC,CAAC,OAAO,EAAE;IACjD,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;CAC/B,CAAC,CAAA"}
|