@seamapi/types 1.196.1 → 1.198.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 +1721 -1502
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +1870 -1101
- package/dist/devicedb.d.cts +40 -40
- package/lib/seam/connect/model-types.d.ts +1 -1
- package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +113 -12
- package/lib/seam/connect/models/access-codes/managed-access-code.js +17 -2
- 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 +87 -12
- package/lib/seam/connect/models/acs/acs-access-group.d.ts +4 -4
- package/lib/seam/connect/models/acs/acs-credential-pool.d.ts +4 -4
- package/lib/seam/connect/models/acs/acs-credential.d.ts +4 -4
- package/lib/seam/connect/models/acs/acs-entrance.d.ts +10 -10
- package/lib/seam/connect/models/acs/acs-system.d.ts +29 -29
- package/lib/seam/connect/models/acs/acs-user.d.ts +6 -6
- package/lib/seam/connect/models/acs/metadata/latch.d.ts +4 -4
- package/lib/seam/connect/models/connect-webviews/connect-webview.d.ts +6 -6
- package/lib/seam/connect/models/connected-accounts/connected-account.d.ts +69 -8
- package/lib/seam/connect/models/connected-accounts/connected-account.js +15 -2
- package/lib/seam/connect/models/connected-accounts/connected-account.js.map +1 -1
- package/lib/seam/connect/models/devices/capability-properties/index.d.ts +15 -15
- package/lib/seam/connect/models/devices/capability-properties/thermostat.d.ts +30 -30
- package/lib/seam/connect/models/devices/device-metadata.d.ts +8 -8
- package/lib/seam/connect/models/devices/device-provider.d.ts +2 -2
- package/lib/seam/connect/models/devices/device.d.ts +116 -65
- package/lib/seam/connect/models/devices/device.js +16 -8
- package/lib/seam/connect/models/devices/device.js.map +1 -1
- package/lib/seam/connect/models/devices/phone.d.ts +44 -19
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +53 -28
- package/lib/seam/connect/models/events/access-codes.d.ts +306 -306
- package/lib/seam/connect/models/events/acs/common.d.ts +4 -4
- package/lib/seam/connect/models/events/acs/credentials.d.ts +12 -12
- package/lib/seam/connect/models/events/acs/index.d.ts +18 -18
- package/lib/seam/connect/models/events/acs/systems.d.ts +12 -12
- package/lib/seam/connect/models/events/acs/users.d.ts +12 -12
- package/lib/seam/connect/models/events/connected-accounts.d.ts +42 -42
- package/lib/seam/connect/models/events/devices.d.ts +316 -316
- package/lib/seam/connect/models/events/phones.d.ts +6 -6
- package/lib/seam/connect/models/events/seam-event.d.ts +353 -353
- package/lib/seam/connect/models/thermostats/climate-setting-schedule.d.ts +3 -3
- package/lib/seam/connect/models/user-identities/user-identity.d.ts +2 -2
- package/lib/seam/connect/openapi.d.ts +272 -26
- package/lib/seam/connect/openapi.js +211 -23
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +249 -36
- package/lib/seam/devicedb/models/device-model.d.ts +8 -8
- package/lib/seam/devicedb/models/manufacturer.d.ts +2 -2
- package/lib/seam/devicedb/route-specs.d.ts +30 -30
- package/package.json +1 -1
- package/src/lib/seam/connect/model-types.ts +6 -0
- package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +26 -2
- package/src/lib/seam/connect/models/connected-accounts/connected-account.ts +23 -2
- package/src/lib/seam/connect/models/devices/device.ts +24 -12
- package/src/lib/seam/connect/openapi.ts +211 -23
- package/src/lib/seam/connect/route-types.ts +379 -92
|
@@ -3,11 +3,56 @@ export declare const unmanaged_access_code: z.ZodObject<{
|
|
|
3
3
|
type: z.ZodEnum<["time_bound", "ongoing"]>;
|
|
4
4
|
code: z.ZodNullable<z.ZodString>;
|
|
5
5
|
name: z.ZodNullable<z.ZodString>;
|
|
6
|
-
access_code_id: z.ZodString;
|
|
7
|
-
device_id: z.ZodString;
|
|
8
6
|
created_at: z.ZodString;
|
|
9
|
-
errors: z.
|
|
10
|
-
|
|
7
|
+
errors: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
8
|
+
message: z.ZodString;
|
|
9
|
+
is_access_code_error: z.ZodLiteral<true>;
|
|
10
|
+
error_code: z.ZodString;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
message: string;
|
|
13
|
+
error_code: string;
|
|
14
|
+
is_access_code_error: true;
|
|
15
|
+
}, {
|
|
16
|
+
message: string;
|
|
17
|
+
error_code: string;
|
|
18
|
+
is_access_code_error: true;
|
|
19
|
+
}>, z.ZodObject<{
|
|
20
|
+
message: z.ZodString;
|
|
21
|
+
is_device_error: z.ZodLiteral<true>;
|
|
22
|
+
error_code: z.ZodString;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
message: string;
|
|
25
|
+
error_code: string;
|
|
26
|
+
is_device_error: true;
|
|
27
|
+
}, {
|
|
28
|
+
message: string;
|
|
29
|
+
error_code: string;
|
|
30
|
+
is_device_error: true;
|
|
31
|
+
}>, z.ZodObject<{
|
|
32
|
+
message: z.ZodString;
|
|
33
|
+
is_connected_account_error: z.ZodLiteral<true>;
|
|
34
|
+
error_code: z.ZodString;
|
|
35
|
+
}, "strip", z.ZodTypeAny, {
|
|
36
|
+
message: string;
|
|
37
|
+
is_connected_account_error: true;
|
|
38
|
+
error_code: string;
|
|
39
|
+
}, {
|
|
40
|
+
message: string;
|
|
41
|
+
is_connected_account_error: true;
|
|
42
|
+
error_code: string;
|
|
43
|
+
}>]>, "many">;
|
|
44
|
+
warnings: z.ZodArray<z.ZodObject<{
|
|
45
|
+
message: z.ZodString;
|
|
46
|
+
warning_code: z.ZodString;
|
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
|
48
|
+
message: string;
|
|
49
|
+
warning_code: string;
|
|
50
|
+
}, {
|
|
51
|
+
message: string;
|
|
52
|
+
warning_code: string;
|
|
53
|
+
}>, "many">;
|
|
54
|
+
device_id: z.ZodString;
|
|
55
|
+
access_code_id: z.ZodString;
|
|
11
56
|
starts_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
57
|
ends_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
58
|
is_managed: z.ZodLiteral<false>;
|
|
@@ -17,12 +62,27 @@ export declare const unmanaged_access_code: z.ZodObject<{
|
|
|
17
62
|
code: string | null;
|
|
18
63
|
name: string | null;
|
|
19
64
|
status: "set";
|
|
20
|
-
access_code_id: string;
|
|
21
|
-
device_id: string;
|
|
22
65
|
created_at: string;
|
|
66
|
+
errors: ({
|
|
67
|
+
message: string;
|
|
68
|
+
is_connected_account_error: true;
|
|
69
|
+
error_code: string;
|
|
70
|
+
} | {
|
|
71
|
+
message: string;
|
|
72
|
+
error_code: string;
|
|
73
|
+
is_device_error: true;
|
|
74
|
+
} | {
|
|
75
|
+
message: string;
|
|
76
|
+
error_code: string;
|
|
77
|
+
is_access_code_error: true;
|
|
78
|
+
})[];
|
|
79
|
+
warnings: {
|
|
80
|
+
message: string;
|
|
81
|
+
warning_code: string;
|
|
82
|
+
}[];
|
|
83
|
+
device_id: string;
|
|
23
84
|
is_managed: false;
|
|
24
|
-
|
|
25
|
-
warnings?: any;
|
|
85
|
+
access_code_id: string;
|
|
26
86
|
starts_at?: string | null | undefined;
|
|
27
87
|
ends_at?: string | null | undefined;
|
|
28
88
|
}, {
|
|
@@ -30,12 +90,27 @@ export declare const unmanaged_access_code: z.ZodObject<{
|
|
|
30
90
|
code: string | null;
|
|
31
91
|
name: string | null;
|
|
32
92
|
status: "set";
|
|
33
|
-
access_code_id: string;
|
|
34
|
-
device_id: string;
|
|
35
93
|
created_at: string;
|
|
94
|
+
errors: ({
|
|
95
|
+
message: string;
|
|
96
|
+
is_connected_account_error: true;
|
|
97
|
+
error_code: string;
|
|
98
|
+
} | {
|
|
99
|
+
message: string;
|
|
100
|
+
error_code: string;
|
|
101
|
+
is_device_error: true;
|
|
102
|
+
} | {
|
|
103
|
+
message: string;
|
|
104
|
+
error_code: string;
|
|
105
|
+
is_access_code_error: true;
|
|
106
|
+
})[];
|
|
107
|
+
warnings: {
|
|
108
|
+
message: string;
|
|
109
|
+
warning_code: string;
|
|
110
|
+
}[];
|
|
111
|
+
device_id: string;
|
|
36
112
|
is_managed: false;
|
|
37
|
-
|
|
38
|
-
warnings?: any;
|
|
113
|
+
access_code_id: string;
|
|
39
114
|
starts_at?: string | null | undefined;
|
|
40
115
|
ends_at?: string | null | undefined;
|
|
41
116
|
}>;
|
|
@@ -15,23 +15,23 @@ export declare const acs_access_group: z.ZodObject<{
|
|
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
|
16
16
|
name: string;
|
|
17
17
|
created_at: string;
|
|
18
|
+
display_name: string;
|
|
19
|
+
workspace_id: string;
|
|
18
20
|
acs_access_group_id: string;
|
|
19
21
|
acs_system_id: string;
|
|
20
|
-
workspace_id: string;
|
|
21
22
|
access_group_type: "pti_unit" | "pti_access_level" | "salto_access_group" | "brivo_group";
|
|
22
23
|
access_group_type_display_name: string;
|
|
23
|
-
display_name: string;
|
|
24
24
|
external_type: "pti_unit" | "pti_access_level" | "salto_access_group" | "brivo_group";
|
|
25
25
|
external_type_display_name: string;
|
|
26
26
|
}, {
|
|
27
27
|
name: string;
|
|
28
28
|
created_at: string;
|
|
29
|
+
display_name: string;
|
|
30
|
+
workspace_id: string;
|
|
29
31
|
acs_access_group_id: string;
|
|
30
32
|
acs_system_id: string;
|
|
31
|
-
workspace_id: string;
|
|
32
33
|
access_group_type: "pti_unit" | "pti_access_level" | "salto_access_group" | "brivo_group";
|
|
33
34
|
access_group_type_display_name: string;
|
|
34
|
-
display_name: string;
|
|
35
35
|
external_type: "pti_unit" | "pti_access_level" | "salto_access_group" | "brivo_group";
|
|
36
36
|
external_type_display_name: string;
|
|
37
37
|
}>;
|
|
@@ -11,17 +11,17 @@ export declare const acs_credential_pool: z.ZodObject<{
|
|
|
11
11
|
workspace_id: z.ZodString;
|
|
12
12
|
}, "strip", z.ZodTypeAny, {
|
|
13
13
|
created_at: string;
|
|
14
|
-
acs_system_id: string;
|
|
15
|
-
workspace_id: string;
|
|
16
14
|
display_name: string;
|
|
15
|
+
workspace_id: string;
|
|
16
|
+
acs_system_id: string;
|
|
17
17
|
external_type: "hid_part_number";
|
|
18
18
|
external_type_display_name: string;
|
|
19
19
|
acs_credential_pool_id: string;
|
|
20
20
|
}, {
|
|
21
21
|
created_at: string;
|
|
22
|
-
acs_system_id: string;
|
|
23
|
-
workspace_id: string;
|
|
24
22
|
display_name: string;
|
|
23
|
+
workspace_id: string;
|
|
24
|
+
acs_system_id: string;
|
|
25
25
|
external_type: "hid_part_number";
|
|
26
26
|
external_type_display_name: string;
|
|
27
27
|
acs_credential_pool_id: string;
|
|
@@ -66,9 +66,9 @@ export declare const acs_credential: z.ZodObject<{
|
|
|
66
66
|
message: string;
|
|
67
67
|
warning_code: string;
|
|
68
68
|
}[];
|
|
69
|
-
acs_system_id: string;
|
|
70
|
-
workspace_id: string;
|
|
71
69
|
display_name: string;
|
|
70
|
+
workspace_id: string;
|
|
71
|
+
acs_system_id: string;
|
|
72
72
|
acs_credential_id: string;
|
|
73
73
|
access_method: "code" | "card" | "mobile_key";
|
|
74
74
|
acs_user_id?: string | undefined;
|
|
@@ -98,9 +98,9 @@ export declare const acs_credential: z.ZodObject<{
|
|
|
98
98
|
message: string;
|
|
99
99
|
warning_code: string;
|
|
100
100
|
}[];
|
|
101
|
-
acs_system_id: string;
|
|
102
|
-
workspace_id: string;
|
|
103
101
|
display_name: string;
|
|
102
|
+
workspace_id: string;
|
|
103
|
+
acs_system_id: string;
|
|
104
104
|
acs_credential_id: string;
|
|
105
105
|
access_method: "code" | "card" | "mobile_key";
|
|
106
106
|
acs_user_id?: string | undefined;
|
|
@@ -20,15 +20,15 @@ export declare const acs_entrance: z.ZodObject<{
|
|
|
20
20
|
door_type: z.ZodString;
|
|
21
21
|
is_connected: z.ZodBoolean;
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
|
-
accessibility_type: string;
|
|
24
23
|
door_name: string;
|
|
25
|
-
door_type: string;
|
|
26
24
|
is_connected: boolean;
|
|
27
|
-
}, {
|
|
28
25
|
accessibility_type: string;
|
|
29
|
-
door_name: string;
|
|
30
26
|
door_type: string;
|
|
27
|
+
}, {
|
|
28
|
+
door_name: string;
|
|
31
29
|
is_connected: boolean;
|
|
30
|
+
accessibility_type: string;
|
|
31
|
+
door_type: string;
|
|
32
32
|
}>>;
|
|
33
33
|
visionline_metadata: z.ZodOptional<z.ZodObject<{
|
|
34
34
|
door_name: z.ZodString;
|
|
@@ -64,14 +64,14 @@ export declare const acs_entrance: z.ZodObject<{
|
|
|
64
64
|
message: string;
|
|
65
65
|
error_code: string;
|
|
66
66
|
}[];
|
|
67
|
-
acs_system_id: string;
|
|
68
67
|
display_name: string;
|
|
68
|
+
acs_system_id: string;
|
|
69
69
|
acs_entrance_id: string;
|
|
70
70
|
latch_metadata?: {
|
|
71
|
-
accessibility_type: string;
|
|
72
71
|
door_name: string;
|
|
73
|
-
door_type: string;
|
|
74
72
|
is_connected: boolean;
|
|
73
|
+
accessibility_type: string;
|
|
74
|
+
door_type: string;
|
|
75
75
|
} | undefined;
|
|
76
76
|
visionline_metadata?: {
|
|
77
77
|
door_name: string;
|
|
@@ -87,14 +87,14 @@ export declare const acs_entrance: z.ZodObject<{
|
|
|
87
87
|
message: string;
|
|
88
88
|
error_code: string;
|
|
89
89
|
}[];
|
|
90
|
-
acs_system_id: string;
|
|
91
90
|
display_name: string;
|
|
91
|
+
acs_system_id: string;
|
|
92
92
|
acs_entrance_id: string;
|
|
93
93
|
latch_metadata?: {
|
|
94
|
-
accessibility_type: string;
|
|
95
94
|
door_name: string;
|
|
96
|
-
door_type: string;
|
|
97
95
|
is_connected: boolean;
|
|
96
|
+
accessibility_type: string;
|
|
97
|
+
door_type: string;
|
|
98
98
|
} | undefined;
|
|
99
99
|
visionline_metadata?: {
|
|
100
100
|
door_name: string;
|
|
@@ -24,12 +24,12 @@ declare const acs_system_error_map: z.ZodObject<{
|
|
|
24
24
|
error_code: z.ZodLiteral<"seam_bridge_disconnected">;
|
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
|
26
26
|
message: string;
|
|
27
|
-
created_at: string;
|
|
28
27
|
error_code: "seam_bridge_disconnected";
|
|
28
|
+
created_at: string;
|
|
29
29
|
}, {
|
|
30
30
|
message: string;
|
|
31
|
-
created_at: string;
|
|
32
31
|
error_code: "seam_bridge_disconnected";
|
|
32
|
+
created_at: string;
|
|
33
33
|
}>>>;
|
|
34
34
|
visionline_instance_unreachable: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
35
35
|
message: z.ZodString;
|
|
@@ -37,34 +37,34 @@ declare const acs_system_error_map: z.ZodObject<{
|
|
|
37
37
|
error_code: z.ZodLiteral<"visionline_instance_unreachable">;
|
|
38
38
|
}, "strip", z.ZodTypeAny, {
|
|
39
39
|
message: string;
|
|
40
|
-
created_at: string;
|
|
41
40
|
error_code: "visionline_instance_unreachable";
|
|
41
|
+
created_at: string;
|
|
42
42
|
}, {
|
|
43
43
|
message: string;
|
|
44
|
-
created_at: string;
|
|
45
44
|
error_code: "visionline_instance_unreachable";
|
|
45
|
+
created_at: string;
|
|
46
46
|
}>>>;
|
|
47
47
|
}, "strip", z.ZodTypeAny, {
|
|
48
48
|
seam_bridge_disconnected?: {
|
|
49
49
|
message: string;
|
|
50
|
-
created_at: string;
|
|
51
50
|
error_code: "seam_bridge_disconnected";
|
|
51
|
+
created_at: string;
|
|
52
52
|
} | null | undefined;
|
|
53
53
|
visionline_instance_unreachable?: {
|
|
54
54
|
message: string;
|
|
55
|
-
created_at: string;
|
|
56
55
|
error_code: "visionline_instance_unreachable";
|
|
56
|
+
created_at: string;
|
|
57
57
|
} | null | undefined;
|
|
58
58
|
}, {
|
|
59
59
|
seam_bridge_disconnected?: {
|
|
60
60
|
message: string;
|
|
61
|
-
created_at: string;
|
|
62
61
|
error_code: "seam_bridge_disconnected";
|
|
62
|
+
created_at: string;
|
|
63
63
|
} | null | undefined;
|
|
64
64
|
visionline_instance_unreachable?: {
|
|
65
65
|
message: string;
|
|
66
|
-
created_at: string;
|
|
67
66
|
error_code: "visionline_instance_unreachable";
|
|
67
|
+
created_at: string;
|
|
68
68
|
} | null | undefined;
|
|
69
69
|
}>;
|
|
70
70
|
export type AcsSystemErrorMap = z.infer<typeof acs_system_error_map>;
|
|
@@ -79,35 +79,35 @@ export declare const acs_system: z.ZodObject<{
|
|
|
79
79
|
error_code: z.ZodLiteral<"seam_bridge_disconnected">;
|
|
80
80
|
}, "strip", z.ZodTypeAny, {
|
|
81
81
|
message: string;
|
|
82
|
-
created_at: string;
|
|
83
82
|
error_code: "seam_bridge_disconnected";
|
|
83
|
+
created_at: string;
|
|
84
84
|
}, {
|
|
85
85
|
message: string;
|
|
86
|
-
created_at: string;
|
|
87
86
|
error_code: "seam_bridge_disconnected";
|
|
87
|
+
created_at: string;
|
|
88
88
|
}>, z.ZodObject<{
|
|
89
89
|
message: z.ZodString;
|
|
90
90
|
created_at: z.ZodString;
|
|
91
91
|
error_code: z.ZodLiteral<"visionline_instance_unreachable">;
|
|
92
92
|
}, "strip", z.ZodTypeAny, {
|
|
93
93
|
message: string;
|
|
94
|
-
created_at: string;
|
|
95
94
|
error_code: "visionline_instance_unreachable";
|
|
95
|
+
created_at: string;
|
|
96
96
|
}, {
|
|
97
97
|
message: string;
|
|
98
|
-
created_at: string;
|
|
99
98
|
error_code: "visionline_instance_unreachable";
|
|
99
|
+
created_at: string;
|
|
100
100
|
}>]>, "many">;
|
|
101
101
|
warnings: z.ZodArray<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, "many">;
|
|
102
|
-
|
|
102
|
+
image_url: z.ZodString;
|
|
103
|
+
image_alt_text: z.ZodString;
|
|
103
104
|
workspace_id: z.ZodString;
|
|
105
|
+
acs_system_id: z.ZodString;
|
|
104
106
|
external_type: z.ZodOptional<z.ZodEnum<["pti_site", "alta_org", "salto_site", "brivo_account", "hid_credential_manager_organization", "visionline_system", "assa_abloy_credential_service", "latch_building"]>>;
|
|
105
107
|
external_type_display_name: z.ZodOptional<z.ZodString>;
|
|
106
108
|
system_type: z.ZodOptional<z.ZodEnum<["pti_site", "alta_org", "salto_site", "brivo_account", "hid_credential_manager_organization", "visionline_system", "assa_abloy_credential_service", "latch_building"]>>;
|
|
107
109
|
system_type_display_name: z.ZodOptional<z.ZodString>;
|
|
108
110
|
connected_account_ids: z.ZodArray<z.ZodString, "many">;
|
|
109
|
-
image_url: z.ZodString;
|
|
110
|
-
image_alt_text: z.ZodString;
|
|
111
111
|
can_automate_enrollment: z.ZodOptional<z.ZodBoolean>;
|
|
112
112
|
can_create_acs_access_groups: z.ZodOptional<z.ZodBoolean>;
|
|
113
113
|
can_remove_acs_users_from_acs_access_groups: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -117,22 +117,22 @@ export declare const acs_system: z.ZodObject<{
|
|
|
117
117
|
created_at: string;
|
|
118
118
|
errors: ({
|
|
119
119
|
message: string;
|
|
120
|
-
created_at: string;
|
|
121
120
|
error_code: "seam_bridge_disconnected";
|
|
121
|
+
created_at: string;
|
|
122
122
|
} | {
|
|
123
123
|
message: string;
|
|
124
|
-
created_at: string;
|
|
125
124
|
error_code: "visionline_instance_unreachable";
|
|
125
|
+
created_at: string;
|
|
126
126
|
})[];
|
|
127
127
|
warnings: {}[];
|
|
128
|
-
acs_system_id: string;
|
|
129
|
-
workspace_id: string;
|
|
130
|
-
connected_account_ids: string[];
|
|
131
128
|
image_url: string;
|
|
132
129
|
image_alt_text: string;
|
|
133
|
-
|
|
130
|
+
workspace_id: string;
|
|
131
|
+
acs_system_id: string;
|
|
132
|
+
connected_account_ids: string[];
|
|
133
|
+
external_type?: "assa_abloy_credential_service" | "pti_site" | "alta_org" | "salto_site" | "brivo_account" | "hid_credential_manager_organization" | "visionline_system" | "latch_building" | undefined;
|
|
134
134
|
external_type_display_name?: string | undefined;
|
|
135
|
-
system_type?: "pti_site" | "alta_org" | "salto_site" | "brivo_account" | "hid_credential_manager_organization" | "visionline_system" | "
|
|
135
|
+
system_type?: "assa_abloy_credential_service" | "pti_site" | "alta_org" | "salto_site" | "brivo_account" | "hid_credential_manager_organization" | "visionline_system" | "latch_building" | undefined;
|
|
136
136
|
system_type_display_name?: string | undefined;
|
|
137
137
|
can_automate_enrollment?: boolean | undefined;
|
|
138
138
|
can_create_acs_access_groups?: boolean | undefined;
|
|
@@ -143,22 +143,22 @@ export declare const acs_system: z.ZodObject<{
|
|
|
143
143
|
created_at: string;
|
|
144
144
|
errors: ({
|
|
145
145
|
message: string;
|
|
146
|
-
created_at: string;
|
|
147
146
|
error_code: "seam_bridge_disconnected";
|
|
147
|
+
created_at: string;
|
|
148
148
|
} | {
|
|
149
149
|
message: string;
|
|
150
|
-
created_at: string;
|
|
151
150
|
error_code: "visionline_instance_unreachable";
|
|
151
|
+
created_at: string;
|
|
152
152
|
})[];
|
|
153
153
|
warnings: {}[];
|
|
154
|
-
acs_system_id: string;
|
|
155
|
-
workspace_id: string;
|
|
156
|
-
connected_account_ids: string[];
|
|
157
154
|
image_url: string;
|
|
158
155
|
image_alt_text: string;
|
|
159
|
-
|
|
156
|
+
workspace_id: string;
|
|
157
|
+
acs_system_id: string;
|
|
158
|
+
connected_account_ids: string[];
|
|
159
|
+
external_type?: "assa_abloy_credential_service" | "pti_site" | "alta_org" | "salto_site" | "brivo_account" | "hid_credential_manager_organization" | "visionline_system" | "latch_building" | undefined;
|
|
160
160
|
external_type_display_name?: string | undefined;
|
|
161
|
-
system_type?: "pti_site" | "alta_org" | "salto_site" | "brivo_account" | "hid_credential_manager_organization" | "visionline_system" | "
|
|
161
|
+
system_type?: "assa_abloy_credential_service" | "pti_site" | "alta_org" | "salto_site" | "brivo_account" | "hid_credential_manager_organization" | "visionline_system" | "latch_building" | undefined;
|
|
162
162
|
system_type_display_name?: string | undefined;
|
|
163
163
|
can_automate_enrollment?: boolean | undefined;
|
|
164
164
|
can_create_acs_access_groups?: boolean | undefined;
|
|
@@ -3,9 +3,9 @@ export declare const acs_user_external_type: z.ZodEnum<["pti_user", "brivo_user"
|
|
|
3
3
|
export type AcsUserExternalType = z.infer<typeof acs_user_external_type>;
|
|
4
4
|
export declare const acs_user: z.ZodObject<{
|
|
5
5
|
created_at: z.ZodString;
|
|
6
|
-
acs_system_id: z.ZodString;
|
|
7
|
-
workspace_id: z.ZodString;
|
|
8
6
|
display_name: z.ZodString;
|
|
7
|
+
workspace_id: z.ZodString;
|
|
8
|
+
acs_system_id: z.ZodString;
|
|
9
9
|
external_type: z.ZodOptional<z.ZodEnum<["pti_user", "brivo_user", "hid_credential_manager_user", "salto_site_user", "latch_user"]>>;
|
|
10
10
|
external_type_display_name: z.ZodOptional<z.ZodString>;
|
|
11
11
|
acs_user_id: z.ZodString;
|
|
@@ -31,9 +31,9 @@ export declare const acs_user: z.ZodObject<{
|
|
|
31
31
|
phone_number: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
32
32
|
}, "strip", z.ZodTypeAny, {
|
|
33
33
|
created_at: string;
|
|
34
|
-
acs_system_id: string;
|
|
35
|
-
workspace_id: string;
|
|
36
34
|
display_name: string;
|
|
35
|
+
workspace_id: string;
|
|
36
|
+
acs_system_id: string;
|
|
37
37
|
acs_user_id: string;
|
|
38
38
|
is_suspended: boolean;
|
|
39
39
|
external_type?: "pti_user" | "brivo_user" | "hid_credential_manager_user" | "salto_site_user" | "latch_user" | undefined;
|
|
@@ -53,9 +53,9 @@ export declare const acs_user: z.ZodObject<{
|
|
|
53
53
|
phone_number?: string | undefined;
|
|
54
54
|
}, {
|
|
55
55
|
created_at: string;
|
|
56
|
-
acs_system_id: string;
|
|
57
|
-
workspace_id: string;
|
|
58
56
|
display_name: string;
|
|
57
|
+
workspace_id: string;
|
|
58
|
+
acs_system_id: string;
|
|
59
59
|
acs_user_id: string;
|
|
60
60
|
is_suspended: boolean;
|
|
61
61
|
external_type?: "pti_user" | "brivo_user" | "hid_credential_manager_user" | "salto_site_user" | "latch_user" | undefined;
|
|
@@ -5,14 +5,14 @@ export declare const acs_entrance_latch_metadata: z.ZodObject<{
|
|
|
5
5
|
door_type: z.ZodString;
|
|
6
6
|
is_connected: z.ZodBoolean;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
accessibility_type: string;
|
|
9
8
|
door_name: string;
|
|
10
|
-
door_type: string;
|
|
11
9
|
is_connected: boolean;
|
|
12
|
-
}, {
|
|
13
10
|
accessibility_type: string;
|
|
14
|
-
door_name: string;
|
|
15
11
|
door_type: string;
|
|
12
|
+
}, {
|
|
13
|
+
door_name: string;
|
|
16
14
|
is_connected: boolean;
|
|
15
|
+
accessibility_type: string;
|
|
16
|
+
door_type: string;
|
|
17
17
|
}>;
|
|
18
18
|
export type AcsEntranceLatchMetadata = z.infer<typeof acs_entrance_latch_metadata>;
|
|
@@ -23,10 +23,12 @@ export declare const connect_webview: z.ZodObject<{
|
|
|
23
23
|
}, "strip", z.ZodTypeAny, {
|
|
24
24
|
url: string;
|
|
25
25
|
status: "failed" | "pending" | "authorized";
|
|
26
|
+
connected_account_id: string | null;
|
|
26
27
|
created_at: string;
|
|
28
|
+
custom_metadata: Record<string, string | boolean>;
|
|
29
|
+
automatically_manage_new_devices: boolean;
|
|
27
30
|
workspace_id: string;
|
|
28
31
|
connect_webview_id: string;
|
|
29
|
-
connected_account_id: string | null;
|
|
30
32
|
device_selection_mode: "none" | "multiple" | "single";
|
|
31
33
|
accepted_providers: string[];
|
|
32
34
|
accepted_devices: string[];
|
|
@@ -35,18 +37,18 @@ export declare const connect_webview: z.ZodObject<{
|
|
|
35
37
|
login_successful: boolean;
|
|
36
38
|
custom_redirect_url: string | null;
|
|
37
39
|
custom_redirect_failure_url: string | null;
|
|
38
|
-
custom_metadata: Record<string, string | boolean>;
|
|
39
|
-
automatically_manage_new_devices: boolean;
|
|
40
40
|
wait_for_device_creation: boolean;
|
|
41
41
|
authorized_at: string | null;
|
|
42
42
|
selected_provider: string | null;
|
|
43
43
|
}, {
|
|
44
44
|
url: string;
|
|
45
45
|
status: "failed" | "pending" | "authorized";
|
|
46
|
+
connected_account_id: string | null;
|
|
46
47
|
created_at: string;
|
|
48
|
+
custom_metadata: Record<string, string | boolean>;
|
|
49
|
+
automatically_manage_new_devices: boolean;
|
|
47
50
|
workspace_id: string;
|
|
48
51
|
connect_webview_id: string;
|
|
49
|
-
connected_account_id: string | null;
|
|
50
52
|
device_selection_mode: "none" | "multiple" | "single";
|
|
51
53
|
accepted_providers: string[];
|
|
52
54
|
accepted_devices: string[];
|
|
@@ -55,8 +57,6 @@ export declare const connect_webview: z.ZodObject<{
|
|
|
55
57
|
login_successful: boolean;
|
|
56
58
|
custom_redirect_url: string | null;
|
|
57
59
|
custom_redirect_failure_url: string | null;
|
|
58
|
-
custom_metadata: Record<string, string | boolean>;
|
|
59
|
-
automatically_manage_new_devices: boolean;
|
|
60
60
|
wait_for_device_creation: boolean;
|
|
61
61
|
authorized_at: string | null;
|
|
62
62
|
selected_provider: string | null;
|
|
@@ -1,4 +1,29 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
export declare const connected_account_error: z.ZodObject<{
|
|
3
|
+
message: z.ZodString;
|
|
4
|
+
is_connected_account_error: z.ZodLiteral<true>;
|
|
5
|
+
error_code: z.ZodString;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
message: string;
|
|
8
|
+
is_connected_account_error: true;
|
|
9
|
+
error_code: string;
|
|
10
|
+
}, {
|
|
11
|
+
message: string;
|
|
12
|
+
is_connected_account_error: true;
|
|
13
|
+
error_code: string;
|
|
14
|
+
}>;
|
|
15
|
+
export type ConnectedAccountError = z.infer<typeof connected_account_error>;
|
|
16
|
+
declare const connected_account_warning: z.ZodObject<{
|
|
17
|
+
message: z.ZodString;
|
|
18
|
+
warning_code: z.ZodString;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
message: string;
|
|
21
|
+
warning_code: string;
|
|
22
|
+
}, {
|
|
23
|
+
message: string;
|
|
24
|
+
warning_code: string;
|
|
25
|
+
}>;
|
|
26
|
+
export type ConnectedAccountWarning = z.infer<typeof connected_account_warning>;
|
|
2
27
|
export declare const connected_account: z.ZodObject<{
|
|
3
28
|
connected_account_id: z.ZodOptional<z.ZodString>;
|
|
4
29
|
created_at: z.ZodOptional<z.ZodString>;
|
|
@@ -23,14 +48,44 @@ export declare const connected_account: z.ZodObject<{
|
|
|
23
48
|
}>>;
|
|
24
49
|
account_type: z.ZodOptional<z.ZodString>;
|
|
25
50
|
account_type_display_name: z.ZodString;
|
|
26
|
-
errors: z.
|
|
27
|
-
|
|
51
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
52
|
+
message: z.ZodString;
|
|
53
|
+
is_connected_account_error: z.ZodLiteral<true>;
|
|
54
|
+
error_code: z.ZodString;
|
|
55
|
+
}, "strip", z.ZodTypeAny, {
|
|
56
|
+
message: string;
|
|
57
|
+
is_connected_account_error: true;
|
|
58
|
+
error_code: string;
|
|
59
|
+
}, {
|
|
60
|
+
message: string;
|
|
61
|
+
is_connected_account_error: true;
|
|
62
|
+
error_code: string;
|
|
63
|
+
}>, "many">;
|
|
64
|
+
warnings: z.ZodArray<z.ZodObject<{
|
|
65
|
+
message: z.ZodString;
|
|
66
|
+
warning_code: z.ZodString;
|
|
67
|
+
}, "strip", z.ZodTypeAny, {
|
|
68
|
+
message: string;
|
|
69
|
+
warning_code: string;
|
|
70
|
+
}, {
|
|
71
|
+
message: string;
|
|
72
|
+
warning_code: string;
|
|
73
|
+
}>, "many">;
|
|
28
74
|
custom_metadata: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
|
|
29
75
|
automatically_manage_new_devices: z.ZodBoolean;
|
|
30
76
|
}, "strip", z.ZodTypeAny, {
|
|
77
|
+
account_type_display_name: string;
|
|
78
|
+
errors: {
|
|
79
|
+
message: string;
|
|
80
|
+
is_connected_account_error: true;
|
|
81
|
+
error_code: string;
|
|
82
|
+
}[];
|
|
83
|
+
warnings: {
|
|
84
|
+
message: string;
|
|
85
|
+
warning_code: string;
|
|
86
|
+
}[];
|
|
31
87
|
custom_metadata: Record<string, string | boolean>;
|
|
32
88
|
automatically_manage_new_devices: boolean;
|
|
33
|
-
account_type_display_name: string;
|
|
34
89
|
connected_account_id?: string | undefined;
|
|
35
90
|
created_at?: string | undefined;
|
|
36
91
|
user_identifier?: {
|
|
@@ -41,12 +96,19 @@ export declare const connected_account: z.ZodObject<{
|
|
|
41
96
|
exclusive?: boolean | undefined;
|
|
42
97
|
} | undefined;
|
|
43
98
|
account_type?: string | undefined;
|
|
44
|
-
errors?: any;
|
|
45
|
-
warnings?: any;
|
|
46
99
|
}, {
|
|
100
|
+
account_type_display_name: string;
|
|
101
|
+
errors: {
|
|
102
|
+
message: string;
|
|
103
|
+
is_connected_account_error: true;
|
|
104
|
+
error_code: string;
|
|
105
|
+
}[];
|
|
106
|
+
warnings: {
|
|
107
|
+
message: string;
|
|
108
|
+
warning_code: string;
|
|
109
|
+
}[];
|
|
47
110
|
custom_metadata: Record<string, string | boolean>;
|
|
48
111
|
automatically_manage_new_devices: boolean;
|
|
49
|
-
account_type_display_name: string;
|
|
50
112
|
connected_account_id?: string | undefined;
|
|
51
113
|
created_at?: string | undefined;
|
|
52
114
|
user_identifier?: {
|
|
@@ -57,7 +119,6 @@ export declare const connected_account: z.ZodObject<{
|
|
|
57
119
|
exclusive?: boolean | undefined;
|
|
58
120
|
} | undefined;
|
|
59
121
|
account_type?: string | undefined;
|
|
60
|
-
errors?: any;
|
|
61
|
-
warnings?: any;
|
|
62
122
|
}>;
|
|
63
123
|
export type ConnectedAccount = z.infer<typeof connected_account>;
|
|
124
|
+
export {};
|
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { custom_metadata } from '../custom-metadata.js';
|
|
3
|
+
const common_connected_account_error = z.object({
|
|
4
|
+
message: z.string(),
|
|
5
|
+
is_connected_account_error: z.literal(true),
|
|
6
|
+
});
|
|
7
|
+
const common_connected_account_warning = z.object({
|
|
8
|
+
message: z.string(),
|
|
9
|
+
});
|
|
10
|
+
export const connected_account_error = common_connected_account_error.extend({
|
|
11
|
+
error_code: z.string(),
|
|
12
|
+
});
|
|
13
|
+
const connected_account_warning = common_connected_account_warning.extend({
|
|
14
|
+
warning_code: z.string(),
|
|
15
|
+
});
|
|
3
16
|
export const connected_account = z.object({
|
|
4
17
|
connected_account_id: z.string().uuid().optional(),
|
|
5
18
|
created_at: z.string().datetime().optional(),
|
|
@@ -14,8 +27,8 @@ export const connected_account = z.object({
|
|
|
14
27
|
.optional(),
|
|
15
28
|
account_type: z.string().optional(),
|
|
16
29
|
account_type_display_name: z.string(),
|
|
17
|
-
errors: z.
|
|
18
|
-
warnings: z.
|
|
30
|
+
errors: z.array(connected_account_error),
|
|
31
|
+
warnings: z.array(connected_account_warning),
|
|
19
32
|
custom_metadata,
|
|
20
33
|
automatically_manage_new_devices: z.boolean(),
|
|
21
34
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connected-account.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/connected-accounts/connected-account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAEvD,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,oBAAoB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IAClD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC5C,eAAe,EAAE,CAAC;SACf,MAAM,CAAC;QACN,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC/B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC9B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC5B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC5B,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;KAClC,CAAC;SACD,QAAQ,EAAE;IACb,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,yBAAyB,EAAE,CAAC,CAAC,MAAM,EAAE;IACrC,MAAM,EAAE,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"connected-account.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/connected-accounts/connected-account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAEvD,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,0BAA0B,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;CAC5C,CAAC,CAAA;AAEF,MAAM,gCAAgC,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,8BAA8B,CAAC,MAAM,CAAC;IAC3E,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;CACvB,CAAC,CAAA;AAIF,MAAM,yBAAyB,GAAG,gCAAgC,CAAC,MAAM,CAAC;IACxE,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;CACzB,CAAC,CAAA;AAIF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,oBAAoB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IAClD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC5C,eAAe,EAAE,CAAC;SACf,MAAM,CAAC;QACN,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC/B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC9B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC5B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC5B,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;KAClC,CAAC;SACD,QAAQ,EAAE;IACb,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,yBAAyB,EAAE,CAAC,CAAC,MAAM,EAAE;IACrC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,uBAAuB,CAAC;IACxC,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,yBAAyB,CAAC;IAC5C,eAAe;IACf,gCAAgC,EAAE,CAAC,CAAC,OAAO,EAAE;CAC9C,CAAC,CAAA"}
|