@seamapi/types 1.113.1 → 1.114.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/connect.d.ts +1 -0
- package/devicedb.d.ts +1 -0
- package/dist/connect.cjs +107 -0
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +174 -0
- package/index.d.ts +2 -0
- package/lib/seam/connect/enums.d.ts +1 -0
- package/lib/seam/connect/index.d.ts +6 -0
- package/lib/seam/connect/internal.d.ts +1 -0
- package/lib/seam/connect/openapi.d.ts +16982 -0
- package/lib/seam/connect/openapi.js +107 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +7672 -0
- package/lib/seam/connect/stable/model-types.d.ts +1 -0
- package/lib/seam/connect/stable/models/connect-webview.d.ts +63 -0
- package/lib/seam/connect/stable/models/custom-metadata.d.ts +3 -0
- package/lib/seam/connect/stable/models/index.d.ts +2 -0
- package/lib/seam/connect/stable/schemas.d.ts +1 -0
- package/lib/seam/connect/unstable/index.d.ts +3 -0
- package/lib/seam/connect/unstable/model-types.d.ts +1 -0
- package/lib/seam/connect/unstable/models/access-codes/index.d.ts +2 -0
- package/lib/seam/connect/unstable/models/access-codes/managed-access-code.d.ts +69 -0
- package/lib/seam/connect/unstable/models/access-codes/unmanaged-access-code.d.ts +42 -0
- package/lib/seam/connect/unstable/models/acs/access_group.d.ts +35 -0
- package/lib/seam/connect/unstable/models/acs/credential.d.ts +127 -0
- package/lib/seam/connect/unstable/models/acs/credential_pool.d.ts +29 -0
- package/lib/seam/connect/unstable/models/acs/credential_provisioning_automation.d.ts +41 -0
- package/lib/seam/connect/unstable/models/acs/entrance.d.ts +62 -0
- package/lib/seam/connect/unstable/models/acs/index.d.ts +7 -0
- package/lib/seam/connect/unstable/models/acs/system.d.ts +35 -0
- package/lib/seam/connect/unstable/models/acs/user.d.ts +74 -0
- package/lib/seam/connect/unstable/models/capability-properties/access-code.d.ts +93 -0
- package/lib/seam/connect/unstable/models/capability-properties/index.d.ts +819 -0
- package/lib/seam/connect/unstable/models/capability-properties/lock.d.ts +24 -0
- package/lib/seam/connect/unstable/models/capability-properties/thermostat.d.ts +1572 -0
- package/lib/seam/connect/unstable/models/devices/capabilities-supported.d.ts +3 -0
- package/lib/seam/connect/unstable/models/devices/device-metadata.d.ts +982 -0
- package/lib/seam/connect/unstable/models/devices/device-type.d.ts +65 -0
- package/lib/seam/connect/unstable/models/devices/index.d.ts +6 -0
- package/lib/seam/connect/unstable/models/devices/managed-device.d.ts +3711 -0
- package/lib/seam/connect/unstable/models/devices/phone-properties.d.ts +44 -0
- package/lib/seam/connect/unstable/models/devices/phone.d.ts +148 -0
- package/lib/seam/connect/unstable/models/devices/unmanaged-device.d.ts +188 -0
- package/lib/seam/connect/unstable/models/events/access_code_events.d.ts +70 -0
- package/lib/seam/connect/unstable/models/events/connected_account_events.d.ts +48 -0
- package/lib/seam/connect/unstable/models/events/device_events.d.ts +63 -0
- package/lib/seam/connect/unstable/models/events/lock_events.d.ts +42 -0
- package/lib/seam/connect/unstable/models/index.d.ts +7 -0
- package/lib/seam/connect/unstable/models/network.d.ts +18 -0
- package/lib/seam/connect/unstable/models/phone-number.d.ts +2 -0
- package/lib/seam/connect/unstable/models/schedule.d.ts +21 -0
- package/lib/seam/connect/unstable/models/user-identity.d.ts +30 -0
- package/lib/seam/connect/unstable/schemas.d.ts +1 -0
- package/lib/seam/devicedb/index.d.ts +5 -0
- package/lib/seam/devicedb/models/device-capability.d.ts +21 -0
- package/lib/seam/devicedb/models/device-model.d.ts +1064 -0
- package/lib/seam/devicedb/models/hardware.d.ts +8 -0
- package/lib/seam/devicedb/models/image-reference.d.ts +15 -0
- package/lib/seam/devicedb/models/index.d.ts +4 -0
- package/lib/seam/devicedb/models/manufacturer.d.ts +84 -0
- package/lib/seam/devicedb/route-specs.d.ts +2198 -0
- package/lib/seam/devicedb/route-types.d.ts +308 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/openapi.ts +107 -0
- package/src/lib/seam/connect/route-types.ts +15 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const phone_specific_properties: z.ZodObject<{
|
|
3
|
+
assa_abloy_credential_service_metadata: z.ZodOptional<z.ZodObject<{
|
|
4
|
+
has_active_endpoint: z.ZodBoolean;
|
|
5
|
+
endpoints: z.ZodArray<z.ZodObject<{
|
|
6
|
+
endpoint_id: z.ZodString;
|
|
7
|
+
is_active: z.ZodBoolean;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
endpoint_id: string;
|
|
10
|
+
is_active: boolean;
|
|
11
|
+
}, {
|
|
12
|
+
endpoint_id: string;
|
|
13
|
+
is_active: boolean;
|
|
14
|
+
}>, "many">;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
has_active_endpoint: boolean;
|
|
17
|
+
endpoints: {
|
|
18
|
+
endpoint_id: string;
|
|
19
|
+
is_active: boolean;
|
|
20
|
+
}[];
|
|
21
|
+
}, {
|
|
22
|
+
has_active_endpoint: boolean;
|
|
23
|
+
endpoints: {
|
|
24
|
+
endpoint_id: string;
|
|
25
|
+
is_active: boolean;
|
|
26
|
+
}[];
|
|
27
|
+
}>>;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
assa_abloy_credential_service_metadata?: {
|
|
30
|
+
has_active_endpoint: boolean;
|
|
31
|
+
endpoints: {
|
|
32
|
+
endpoint_id: string;
|
|
33
|
+
is_active: boolean;
|
|
34
|
+
}[];
|
|
35
|
+
} | undefined;
|
|
36
|
+
}, {
|
|
37
|
+
assa_abloy_credential_service_metadata?: {
|
|
38
|
+
has_active_endpoint: boolean;
|
|
39
|
+
endpoints: {
|
|
40
|
+
endpoint_id: string;
|
|
41
|
+
is_active: boolean;
|
|
42
|
+
}[];
|
|
43
|
+
} | undefined;
|
|
44
|
+
}>;
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export { phone_specific_properties } from './phone-properties.js';
|
|
3
|
+
export declare const phone: z.ZodObject<{
|
|
4
|
+
location: z.ZodNullable<z.ZodObject<{
|
|
5
|
+
location_name: z.ZodOptional<z.ZodString>;
|
|
6
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
location_name?: string | undefined;
|
|
9
|
+
timezone?: string | undefined;
|
|
10
|
+
}, {
|
|
11
|
+
location_name?: string | undefined;
|
|
12
|
+
timezone?: string | undefined;
|
|
13
|
+
}>>;
|
|
14
|
+
workspace_id: z.ZodString;
|
|
15
|
+
created_at: z.ZodString;
|
|
16
|
+
custom_metadata: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNull]>>, Record<string, string | boolean | null>, Record<string, string | boolean | null>>>;
|
|
17
|
+
device_id: z.ZodString;
|
|
18
|
+
is_managed: z.ZodLiteral<true>;
|
|
19
|
+
device_type: z.ZodEnum<["android_phone", "ios_phone"]>;
|
|
20
|
+
capabilities_supported: z.ZodArray<z.ZodEnum<["access_code", "lock", "noise_detection", "thermostat", "battery", "phone"]>, "many">;
|
|
21
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
22
|
+
error_code: z.ZodString;
|
|
23
|
+
message: z.ZodString;
|
|
24
|
+
}, "strip", z.ZodTypeAny, {
|
|
25
|
+
message: string;
|
|
26
|
+
error_code: string;
|
|
27
|
+
}, {
|
|
28
|
+
message: string;
|
|
29
|
+
error_code: string;
|
|
30
|
+
}>, "many">;
|
|
31
|
+
warnings: z.ZodArray<z.ZodObject<{
|
|
32
|
+
warning_code: z.ZodString;
|
|
33
|
+
message: z.ZodString;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
message: string;
|
|
36
|
+
warning_code: string;
|
|
37
|
+
}, {
|
|
38
|
+
message: string;
|
|
39
|
+
warning_code: string;
|
|
40
|
+
}>, "many">;
|
|
41
|
+
can_remotely_unlock: z.ZodOptional<z.ZodBoolean>;
|
|
42
|
+
can_program_online_access_codes: z.ZodOptional<z.ZodBoolean>;
|
|
43
|
+
properties: z.ZodObject<{
|
|
44
|
+
assa_abloy_credential_service_metadata: z.ZodOptional<z.ZodObject<{
|
|
45
|
+
has_active_endpoint: z.ZodBoolean;
|
|
46
|
+
endpoints: z.ZodArray<z.ZodObject<{
|
|
47
|
+
endpoint_id: z.ZodString;
|
|
48
|
+
is_active: z.ZodBoolean;
|
|
49
|
+
}, "strip", z.ZodTypeAny, {
|
|
50
|
+
endpoint_id: string;
|
|
51
|
+
is_active: boolean;
|
|
52
|
+
}, {
|
|
53
|
+
endpoint_id: string;
|
|
54
|
+
is_active: boolean;
|
|
55
|
+
}>, "many">;
|
|
56
|
+
}, "strip", z.ZodTypeAny, {
|
|
57
|
+
has_active_endpoint: boolean;
|
|
58
|
+
endpoints: {
|
|
59
|
+
endpoint_id: string;
|
|
60
|
+
is_active: boolean;
|
|
61
|
+
}[];
|
|
62
|
+
}, {
|
|
63
|
+
has_active_endpoint: boolean;
|
|
64
|
+
endpoints: {
|
|
65
|
+
endpoint_id: string;
|
|
66
|
+
is_active: boolean;
|
|
67
|
+
}[];
|
|
68
|
+
}>>;
|
|
69
|
+
}, "strip", z.ZodTypeAny, {
|
|
70
|
+
assa_abloy_credential_service_metadata?: {
|
|
71
|
+
has_active_endpoint: boolean;
|
|
72
|
+
endpoints: {
|
|
73
|
+
endpoint_id: string;
|
|
74
|
+
is_active: boolean;
|
|
75
|
+
}[];
|
|
76
|
+
} | undefined;
|
|
77
|
+
}, {
|
|
78
|
+
assa_abloy_credential_service_metadata?: {
|
|
79
|
+
has_active_endpoint: boolean;
|
|
80
|
+
endpoints: {
|
|
81
|
+
endpoint_id: string;
|
|
82
|
+
is_active: boolean;
|
|
83
|
+
}[];
|
|
84
|
+
} | undefined;
|
|
85
|
+
}>;
|
|
86
|
+
}, "strip", z.ZodTypeAny, {
|
|
87
|
+
location: {
|
|
88
|
+
location_name?: string | undefined;
|
|
89
|
+
timezone?: string | undefined;
|
|
90
|
+
} | null;
|
|
91
|
+
workspace_id: string;
|
|
92
|
+
created_at: string;
|
|
93
|
+
device_id: string;
|
|
94
|
+
is_managed: true;
|
|
95
|
+
properties: {
|
|
96
|
+
assa_abloy_credential_service_metadata?: {
|
|
97
|
+
has_active_endpoint: boolean;
|
|
98
|
+
endpoints: {
|
|
99
|
+
endpoint_id: string;
|
|
100
|
+
is_active: boolean;
|
|
101
|
+
}[];
|
|
102
|
+
} | undefined;
|
|
103
|
+
};
|
|
104
|
+
device_type: "ios_phone" | "android_phone";
|
|
105
|
+
capabilities_supported: ("access_code" | "lock" | "noise_detection" | "thermostat" | "battery" | "phone")[];
|
|
106
|
+
errors: {
|
|
107
|
+
message: string;
|
|
108
|
+
error_code: string;
|
|
109
|
+
}[];
|
|
110
|
+
warnings: {
|
|
111
|
+
message: string;
|
|
112
|
+
warning_code: string;
|
|
113
|
+
}[];
|
|
114
|
+
custom_metadata?: Record<string, string | boolean | null> | undefined;
|
|
115
|
+
can_remotely_unlock?: boolean | undefined;
|
|
116
|
+
can_program_online_access_codes?: boolean | undefined;
|
|
117
|
+
}, {
|
|
118
|
+
location: {
|
|
119
|
+
location_name?: string | undefined;
|
|
120
|
+
timezone?: string | undefined;
|
|
121
|
+
} | null;
|
|
122
|
+
workspace_id: string;
|
|
123
|
+
created_at: string;
|
|
124
|
+
device_id: string;
|
|
125
|
+
is_managed: true;
|
|
126
|
+
properties: {
|
|
127
|
+
assa_abloy_credential_service_metadata?: {
|
|
128
|
+
has_active_endpoint: boolean;
|
|
129
|
+
endpoints: {
|
|
130
|
+
endpoint_id: string;
|
|
131
|
+
is_active: boolean;
|
|
132
|
+
}[];
|
|
133
|
+
} | undefined;
|
|
134
|
+
};
|
|
135
|
+
device_type: "ios_phone" | "android_phone";
|
|
136
|
+
capabilities_supported: ("access_code" | "lock" | "noise_detection" | "thermostat" | "battery" | "phone")[];
|
|
137
|
+
errors: {
|
|
138
|
+
message: string;
|
|
139
|
+
error_code: string;
|
|
140
|
+
}[];
|
|
141
|
+
warnings: {
|
|
142
|
+
message: string;
|
|
143
|
+
warning_code: string;
|
|
144
|
+
}[];
|
|
145
|
+
custom_metadata?: Record<string, string | boolean | null> | undefined;
|
|
146
|
+
can_remotely_unlock?: boolean | undefined;
|
|
147
|
+
can_program_online_access_codes?: boolean | undefined;
|
|
148
|
+
}>;
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const unmanaged_device: z.ZodObject<{
|
|
3
|
+
connected_account_id: z.ZodString;
|
|
4
|
+
workspace_id: z.ZodString;
|
|
5
|
+
created_at: z.ZodString;
|
|
6
|
+
device_id: z.ZodString;
|
|
7
|
+
device_type: z.ZodUnion<[z.ZodEnum<["akuvox_lock" | "august_lock" | "brivo_access_point" | "butterflymx_panel" | "avigilon_alta_entry" | "doorking_lock" | "genie_door" | "igloo_lock" | "linear_lock" | "lockly_lock" | "kwikset_lock" | "nuki_lock" | "salto_lock" | "schlage_lock" | "seam_relay" | "smartthings_lock" | "wyze_lock" | "yale_lock" | "two_n_intercom" | "controlbyweb_device" | "ttlock_lock" | "igloohome_lock" | "hubitat_lock" | "four_suites_door" | "dormakaba_oracode_door" | "tedee_lock"]>, z.ZodEnum<["noiseaware_activity_zone" | "minut_sensor"]>, z.ZodEnum<["ecobee_thermostat" | "nest_thermostat" | "honeywell_thermostat"]>, z.ZodEnum<["ios_phone" | "android_phone"]>]>;
|
|
8
|
+
capabilities_supported: z.ZodArray<z.ZodEnum<["access_code", "lock", "noise_detection", "thermostat", "battery", "phone"]>, "many">;
|
|
9
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
10
|
+
error_code: z.ZodString;
|
|
11
|
+
message: z.ZodString;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
message: string;
|
|
14
|
+
error_code: string;
|
|
15
|
+
}, {
|
|
16
|
+
message: string;
|
|
17
|
+
error_code: string;
|
|
18
|
+
}>, "many">;
|
|
19
|
+
warnings: z.ZodArray<z.ZodObject<{
|
|
20
|
+
warning_code: z.ZodString;
|
|
21
|
+
message: z.ZodString;
|
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
|
23
|
+
message: string;
|
|
24
|
+
warning_code: string;
|
|
25
|
+
}, {
|
|
26
|
+
message: string;
|
|
27
|
+
warning_code: string;
|
|
28
|
+
}>, "many">;
|
|
29
|
+
is_managed: z.ZodLiteral<false>;
|
|
30
|
+
properties: z.ZodObject<Pick<{
|
|
31
|
+
online: z.ZodBoolean;
|
|
32
|
+
name: z.ZodString;
|
|
33
|
+
model: z.ZodObject<{
|
|
34
|
+
display_name: z.ZodString;
|
|
35
|
+
manufacturer_display_name: z.ZodString;
|
|
36
|
+
offline_access_codes_supported: z.ZodOptional<z.ZodBoolean>;
|
|
37
|
+
online_access_codes_supported: z.ZodOptional<z.ZodBoolean>;
|
|
38
|
+
accessory_keypad_supported: z.ZodOptional<z.ZodBoolean>;
|
|
39
|
+
}, "strip", z.ZodTypeAny, {
|
|
40
|
+
display_name: string;
|
|
41
|
+
manufacturer_display_name: string;
|
|
42
|
+
offline_access_codes_supported?: boolean | undefined;
|
|
43
|
+
online_access_codes_supported?: boolean | undefined;
|
|
44
|
+
accessory_keypad_supported?: boolean | undefined;
|
|
45
|
+
}, {
|
|
46
|
+
display_name: string;
|
|
47
|
+
manufacturer_display_name: string;
|
|
48
|
+
offline_access_codes_supported?: boolean | undefined;
|
|
49
|
+
online_access_codes_supported?: boolean | undefined;
|
|
50
|
+
accessory_keypad_supported?: boolean | undefined;
|
|
51
|
+
}>;
|
|
52
|
+
has_direct_power: z.ZodOptional<z.ZodBoolean>;
|
|
53
|
+
battery_level: z.ZodOptional<z.ZodNumber>;
|
|
54
|
+
battery: z.ZodOptional<z.ZodObject<{
|
|
55
|
+
level: z.ZodNumber;
|
|
56
|
+
status: z.ZodEnum<["critical", "low", "good", "full"]>;
|
|
57
|
+
}, "strip", z.ZodTypeAny, {
|
|
58
|
+
status: "low" | "full" | "critical" | "good";
|
|
59
|
+
level: number;
|
|
60
|
+
}, {
|
|
61
|
+
status: "low" | "full" | "critical" | "good";
|
|
62
|
+
level: number;
|
|
63
|
+
}>>;
|
|
64
|
+
manufacturer: z.ZodOptional<z.ZodString>;
|
|
65
|
+
image_url: z.ZodOptional<z.ZodString>;
|
|
66
|
+
image_alt_text: z.ZodOptional<z.ZodString>;
|
|
67
|
+
serial_number: z.ZodOptional<z.ZodString>;
|
|
68
|
+
online_access_codes_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
69
|
+
offline_access_codes_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
70
|
+
supports_accessory_keypad: z.ZodOptional<z.ZodBoolean>;
|
|
71
|
+
supports_offline_access_codes: z.ZodOptional<z.ZodBoolean>;
|
|
72
|
+
}, "name" | "online" | "battery" | "model" | "battery_level" | "image_url" | "manufacturer" | "image_alt_text" | "online_access_codes_enabled" | "offline_access_codes_enabled">, "strip", z.ZodTypeAny, {
|
|
73
|
+
name: string;
|
|
74
|
+
online: boolean;
|
|
75
|
+
model: {
|
|
76
|
+
display_name: string;
|
|
77
|
+
manufacturer_display_name: string;
|
|
78
|
+
offline_access_codes_supported?: boolean | undefined;
|
|
79
|
+
online_access_codes_supported?: boolean | undefined;
|
|
80
|
+
accessory_keypad_supported?: boolean | undefined;
|
|
81
|
+
};
|
|
82
|
+
battery?: {
|
|
83
|
+
status: "low" | "full" | "critical" | "good";
|
|
84
|
+
level: number;
|
|
85
|
+
} | undefined;
|
|
86
|
+
battery_level?: number | undefined;
|
|
87
|
+
image_url?: string | undefined;
|
|
88
|
+
manufacturer?: string | undefined;
|
|
89
|
+
image_alt_text?: string | undefined;
|
|
90
|
+
online_access_codes_enabled?: boolean | undefined;
|
|
91
|
+
offline_access_codes_enabled?: boolean | undefined;
|
|
92
|
+
}, {
|
|
93
|
+
name: string;
|
|
94
|
+
online: boolean;
|
|
95
|
+
model: {
|
|
96
|
+
display_name: string;
|
|
97
|
+
manufacturer_display_name: string;
|
|
98
|
+
offline_access_codes_supported?: boolean | undefined;
|
|
99
|
+
online_access_codes_supported?: boolean | undefined;
|
|
100
|
+
accessory_keypad_supported?: boolean | undefined;
|
|
101
|
+
};
|
|
102
|
+
battery?: {
|
|
103
|
+
status: "low" | "full" | "critical" | "good";
|
|
104
|
+
level: number;
|
|
105
|
+
} | undefined;
|
|
106
|
+
battery_level?: number | undefined;
|
|
107
|
+
image_url?: string | undefined;
|
|
108
|
+
manufacturer?: string | undefined;
|
|
109
|
+
image_alt_text?: string | undefined;
|
|
110
|
+
online_access_codes_enabled?: boolean | undefined;
|
|
111
|
+
offline_access_codes_enabled?: boolean | undefined;
|
|
112
|
+
}>;
|
|
113
|
+
}, "strip", z.ZodTypeAny, {
|
|
114
|
+
connected_account_id: string;
|
|
115
|
+
workspace_id: string;
|
|
116
|
+
created_at: string;
|
|
117
|
+
device_id: string;
|
|
118
|
+
is_managed: false;
|
|
119
|
+
properties: {
|
|
120
|
+
name: string;
|
|
121
|
+
online: boolean;
|
|
122
|
+
model: {
|
|
123
|
+
display_name: string;
|
|
124
|
+
manufacturer_display_name: string;
|
|
125
|
+
offline_access_codes_supported?: boolean | undefined;
|
|
126
|
+
online_access_codes_supported?: boolean | undefined;
|
|
127
|
+
accessory_keypad_supported?: boolean | undefined;
|
|
128
|
+
};
|
|
129
|
+
battery?: {
|
|
130
|
+
status: "low" | "full" | "critical" | "good";
|
|
131
|
+
level: number;
|
|
132
|
+
} | undefined;
|
|
133
|
+
battery_level?: number | undefined;
|
|
134
|
+
image_url?: string | undefined;
|
|
135
|
+
manufacturer?: string | undefined;
|
|
136
|
+
image_alt_text?: string | undefined;
|
|
137
|
+
online_access_codes_enabled?: boolean | undefined;
|
|
138
|
+
offline_access_codes_enabled?: boolean | undefined;
|
|
139
|
+
};
|
|
140
|
+
device_type: "akuvox_lock" | "august_lock" | "brivo_access_point" | "butterflymx_panel" | "avigilon_alta_entry" | "doorking_lock" | "genie_door" | "igloo_lock" | "linear_lock" | "lockly_lock" | "kwikset_lock" | "nuki_lock" | "salto_lock" | "schlage_lock" | "seam_relay" | "smartthings_lock" | "wyze_lock" | "yale_lock" | "two_n_intercom" | "controlbyweb_device" | "ttlock_lock" | "igloohome_lock" | "hubitat_lock" | "four_suites_door" | "dormakaba_oracode_door" | "tedee_lock" | "noiseaware_activity_zone" | "minut_sensor" | "ecobee_thermostat" | "nest_thermostat" | "honeywell_thermostat" | "ios_phone" | "android_phone";
|
|
141
|
+
capabilities_supported: ("access_code" | "lock" | "noise_detection" | "thermostat" | "battery" | "phone")[];
|
|
142
|
+
errors: {
|
|
143
|
+
message: string;
|
|
144
|
+
error_code: string;
|
|
145
|
+
}[];
|
|
146
|
+
warnings: {
|
|
147
|
+
message: string;
|
|
148
|
+
warning_code: string;
|
|
149
|
+
}[];
|
|
150
|
+
}, {
|
|
151
|
+
connected_account_id: string;
|
|
152
|
+
workspace_id: string;
|
|
153
|
+
created_at: string;
|
|
154
|
+
device_id: string;
|
|
155
|
+
is_managed: false;
|
|
156
|
+
properties: {
|
|
157
|
+
name: string;
|
|
158
|
+
online: boolean;
|
|
159
|
+
model: {
|
|
160
|
+
display_name: string;
|
|
161
|
+
manufacturer_display_name: string;
|
|
162
|
+
offline_access_codes_supported?: boolean | undefined;
|
|
163
|
+
online_access_codes_supported?: boolean | undefined;
|
|
164
|
+
accessory_keypad_supported?: boolean | undefined;
|
|
165
|
+
};
|
|
166
|
+
battery?: {
|
|
167
|
+
status: "low" | "full" | "critical" | "good";
|
|
168
|
+
level: number;
|
|
169
|
+
} | undefined;
|
|
170
|
+
battery_level?: number | undefined;
|
|
171
|
+
image_url?: string | undefined;
|
|
172
|
+
manufacturer?: string | undefined;
|
|
173
|
+
image_alt_text?: string | undefined;
|
|
174
|
+
online_access_codes_enabled?: boolean | undefined;
|
|
175
|
+
offline_access_codes_enabled?: boolean | undefined;
|
|
176
|
+
};
|
|
177
|
+
device_type: "akuvox_lock" | "august_lock" | "brivo_access_point" | "butterflymx_panel" | "avigilon_alta_entry" | "doorking_lock" | "genie_door" | "igloo_lock" | "linear_lock" | "lockly_lock" | "kwikset_lock" | "nuki_lock" | "salto_lock" | "schlage_lock" | "seam_relay" | "smartthings_lock" | "wyze_lock" | "yale_lock" | "two_n_intercom" | "controlbyweb_device" | "ttlock_lock" | "igloohome_lock" | "hubitat_lock" | "four_suites_door" | "dormakaba_oracode_door" | "tedee_lock" | "noiseaware_activity_zone" | "minut_sensor" | "ecobee_thermostat" | "nest_thermostat" | "honeywell_thermostat" | "ios_phone" | "android_phone";
|
|
178
|
+
capabilities_supported: ("access_code" | "lock" | "noise_detection" | "thermostat" | "battery" | "phone")[];
|
|
179
|
+
errors: {
|
|
180
|
+
message: string;
|
|
181
|
+
error_code: string;
|
|
182
|
+
}[];
|
|
183
|
+
warnings: {
|
|
184
|
+
message: string;
|
|
185
|
+
warning_code: string;
|
|
186
|
+
}[];
|
|
187
|
+
}>;
|
|
188
|
+
export type UnmanagedDevice = z.infer<typeof unmanaged_device>;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const access_code_event_map: {
|
|
3
|
+
access_code_created: z.ZodObject<{
|
|
4
|
+
event_type: z.ZodLiteral<"access_code.created">;
|
|
5
|
+
device_id: z.ZodString;
|
|
6
|
+
workspace_id: z.ZodString;
|
|
7
|
+
access_code_id: z.ZodString;
|
|
8
|
+
connected_account_id: z.ZodString;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
connected_account_id: string;
|
|
11
|
+
workspace_id: string;
|
|
12
|
+
access_code_id: string;
|
|
13
|
+
device_id: string;
|
|
14
|
+
event_type: "access_code.created";
|
|
15
|
+
}, {
|
|
16
|
+
connected_account_id: string;
|
|
17
|
+
workspace_id: string;
|
|
18
|
+
access_code_id: string;
|
|
19
|
+
device_id: string;
|
|
20
|
+
event_type: "access_code.created";
|
|
21
|
+
}>;
|
|
22
|
+
access_code_changed: z.ZodObject<{
|
|
23
|
+
event_type: z.ZodLiteral<"access_code.changed">;
|
|
24
|
+
device_id: z.ZodString;
|
|
25
|
+
workspace_id: z.ZodString;
|
|
26
|
+
access_code_id: z.ZodString;
|
|
27
|
+
}, "strip", z.ZodTypeAny, {
|
|
28
|
+
workspace_id: string;
|
|
29
|
+
access_code_id: string;
|
|
30
|
+
device_id: string;
|
|
31
|
+
event_type: "access_code.changed";
|
|
32
|
+
}, {
|
|
33
|
+
workspace_id: string;
|
|
34
|
+
access_code_id: string;
|
|
35
|
+
device_id: string;
|
|
36
|
+
event_type: "access_code.changed";
|
|
37
|
+
}>;
|
|
38
|
+
access_code_scheduled_on_device: z.ZodObject<{
|
|
39
|
+
event_type: z.ZodLiteral<"access_code.scheduled_on_device">;
|
|
40
|
+
device_id: z.ZodString;
|
|
41
|
+
connected_account_id: z.ZodString;
|
|
42
|
+
workspace_id: z.ZodString;
|
|
43
|
+
}, "strip", z.ZodTypeAny, {
|
|
44
|
+
connected_account_id: string;
|
|
45
|
+
workspace_id: string;
|
|
46
|
+
device_id: string;
|
|
47
|
+
event_type: "access_code.scheduled_on_device";
|
|
48
|
+
}, {
|
|
49
|
+
connected_account_id: string;
|
|
50
|
+
workspace_id: string;
|
|
51
|
+
device_id: string;
|
|
52
|
+
event_type: "access_code.scheduled_on_device";
|
|
53
|
+
}>;
|
|
54
|
+
backup_access_code_pulled: z.ZodObject<{
|
|
55
|
+
event_type: z.ZodLiteral<"backup_access_code.pulled">;
|
|
56
|
+
device_id: z.ZodString;
|
|
57
|
+
workspace_id: z.ZodString;
|
|
58
|
+
connected_account_id: z.ZodString;
|
|
59
|
+
}, "strip", z.ZodTypeAny, {
|
|
60
|
+
connected_account_id: string;
|
|
61
|
+
workspace_id: string;
|
|
62
|
+
device_id: string;
|
|
63
|
+
event_type: "backup_access_code.pulled";
|
|
64
|
+
}, {
|
|
65
|
+
connected_account_id: string;
|
|
66
|
+
workspace_id: string;
|
|
67
|
+
device_id: string;
|
|
68
|
+
event_type: "backup_access_code.pulled";
|
|
69
|
+
}>;
|
|
70
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const connected_account_event_map: {
|
|
3
|
+
connected_account_connected: z.ZodObject<{
|
|
4
|
+
event_type: z.ZodLiteral<"connected_account.connected">;
|
|
5
|
+
connected_account_id: z.ZodString;
|
|
6
|
+
workspace_id: z.ZodString;
|
|
7
|
+
connect_webview_id: z.ZodString;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
connect_webview_id: string;
|
|
10
|
+
connected_account_id: string;
|
|
11
|
+
workspace_id: string;
|
|
12
|
+
event_type: "connected_account.connected";
|
|
13
|
+
}, {
|
|
14
|
+
connect_webview_id: string;
|
|
15
|
+
connected_account_id: string;
|
|
16
|
+
workspace_id: string;
|
|
17
|
+
event_type: "connected_account.connected";
|
|
18
|
+
}>;
|
|
19
|
+
connected_account_successful_login: z.ZodObject<{
|
|
20
|
+
event_type: z.ZodLiteral<"connected_account.successful_login">;
|
|
21
|
+
connected_account_id: z.ZodString;
|
|
22
|
+
workspace_id: z.ZodString;
|
|
23
|
+
connect_webview_id: z.ZodString;
|
|
24
|
+
}, "strip", z.ZodTypeAny, {
|
|
25
|
+
connect_webview_id: string;
|
|
26
|
+
connected_account_id: string;
|
|
27
|
+
workspace_id: string;
|
|
28
|
+
event_type: "connected_account.successful_login";
|
|
29
|
+
}, {
|
|
30
|
+
connect_webview_id: string;
|
|
31
|
+
connected_account_id: string;
|
|
32
|
+
workspace_id: string;
|
|
33
|
+
event_type: "connected_account.successful_login";
|
|
34
|
+
}>;
|
|
35
|
+
connected_account_created: z.ZodObject<{
|
|
36
|
+
event_type: z.ZodLiteral<"connected_account.created">;
|
|
37
|
+
connected_account_id: z.ZodString;
|
|
38
|
+
workspace_id: z.ZodString;
|
|
39
|
+
}, "strip", z.ZodTypeAny, {
|
|
40
|
+
connected_account_id: string;
|
|
41
|
+
workspace_id: string;
|
|
42
|
+
event_type: "connected_account.created";
|
|
43
|
+
}, {
|
|
44
|
+
connected_account_id: string;
|
|
45
|
+
workspace_id: string;
|
|
46
|
+
event_type: "connected_account.created";
|
|
47
|
+
}>;
|
|
48
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const device_added: z.ZodObject<{
|
|
3
|
+
event_type: z.ZodLiteral<"device_added">;
|
|
4
|
+
device_id: z.ZodString;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
device_id: string;
|
|
7
|
+
event_type: "device_added";
|
|
8
|
+
}, {
|
|
9
|
+
device_id: string;
|
|
10
|
+
event_type: "device_added";
|
|
11
|
+
}>;
|
|
12
|
+
export declare const device_removed: z.ZodObject<{
|
|
13
|
+
event_type: z.ZodLiteral<"device_removed">;
|
|
14
|
+
device_id: z.ZodString;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
device_id: string;
|
|
17
|
+
event_type: "device_removed";
|
|
18
|
+
}, {
|
|
19
|
+
device_id: string;
|
|
20
|
+
event_type: "device_removed";
|
|
21
|
+
}>;
|
|
22
|
+
export declare const device_updated: z.ZodObject<{
|
|
23
|
+
event_type: z.ZodLiteral<"device_updated">;
|
|
24
|
+
device_id: z.ZodString;
|
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
device_id: string;
|
|
27
|
+
event_type: "device_updated";
|
|
28
|
+
}, {
|
|
29
|
+
device_id: string;
|
|
30
|
+
event_type: "device_updated";
|
|
31
|
+
}>;
|
|
32
|
+
export declare const device_event_map: {
|
|
33
|
+
device_added: z.ZodObject<{
|
|
34
|
+
event_type: z.ZodLiteral<"device_added">;
|
|
35
|
+
device_id: z.ZodString;
|
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
device_id: string;
|
|
38
|
+
event_type: "device_added";
|
|
39
|
+
}, {
|
|
40
|
+
device_id: string;
|
|
41
|
+
event_type: "device_added";
|
|
42
|
+
}>;
|
|
43
|
+
device_removed: z.ZodObject<{
|
|
44
|
+
event_type: z.ZodLiteral<"device_removed">;
|
|
45
|
+
device_id: z.ZodString;
|
|
46
|
+
}, "strip", z.ZodTypeAny, {
|
|
47
|
+
device_id: string;
|
|
48
|
+
event_type: "device_removed";
|
|
49
|
+
}, {
|
|
50
|
+
device_id: string;
|
|
51
|
+
event_type: "device_removed";
|
|
52
|
+
}>;
|
|
53
|
+
device_updated: z.ZodObject<{
|
|
54
|
+
event_type: z.ZodLiteral<"device_updated">;
|
|
55
|
+
device_id: z.ZodString;
|
|
56
|
+
}, "strip", z.ZodTypeAny, {
|
|
57
|
+
device_id: string;
|
|
58
|
+
event_type: "device_updated";
|
|
59
|
+
}, {
|
|
60
|
+
device_id: string;
|
|
61
|
+
event_type: "device_updated";
|
|
62
|
+
}>;
|
|
63
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const lock_event_map: {
|
|
3
|
+
lock_methods: z.ZodEnum<["keycode", "manual", "unknown", "seamapi"]>;
|
|
4
|
+
lock_locked: z.ZodObject<{
|
|
5
|
+
event_type: z.ZodLiteral<"lock.locked">;
|
|
6
|
+
device_id: z.ZodString;
|
|
7
|
+
workspace_id: z.ZodString;
|
|
8
|
+
lock_id: z.ZodString;
|
|
9
|
+
connected_account_id: z.ZodString;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
connected_account_id: string;
|
|
12
|
+
workspace_id: string;
|
|
13
|
+
device_id: string;
|
|
14
|
+
lock_id: string;
|
|
15
|
+
event_type: "lock.locked";
|
|
16
|
+
}, {
|
|
17
|
+
connected_account_id: string;
|
|
18
|
+
workspace_id: string;
|
|
19
|
+
device_id: string;
|
|
20
|
+
lock_id: string;
|
|
21
|
+
event_type: "lock.locked";
|
|
22
|
+
}>;
|
|
23
|
+
lock_unlocked: z.ZodObject<{
|
|
24
|
+
event_type: z.ZodLiteral<"lock.unlocked">;
|
|
25
|
+
device_id: z.ZodString;
|
|
26
|
+
workspace_id: z.ZodString;
|
|
27
|
+
lock_id: z.ZodString;
|
|
28
|
+
connected_account_id: z.ZodString;
|
|
29
|
+
}, "strip", z.ZodTypeAny, {
|
|
30
|
+
connected_account_id: string;
|
|
31
|
+
workspace_id: string;
|
|
32
|
+
device_id: string;
|
|
33
|
+
lock_id: string;
|
|
34
|
+
event_type: "lock.unlocked";
|
|
35
|
+
}, {
|
|
36
|
+
connected_account_id: string;
|
|
37
|
+
workspace_id: string;
|
|
38
|
+
device_id: string;
|
|
39
|
+
lock_id: string;
|
|
40
|
+
event_type: "lock.unlocked";
|
|
41
|
+
}>;
|
|
42
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './access-codes/index.js';
|
|
2
|
+
export * from './acs/index.js';
|
|
3
|
+
export * from './capability-properties/index.js';
|
|
4
|
+
export * from './devices/index.js';
|
|
5
|
+
export * from './network.js';
|
|
6
|
+
export * from './phone-number.js';
|
|
7
|
+
export * from './user-identity.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const network: z.ZodObject<{
|
|
3
|
+
network_id: z.ZodString;
|
|
4
|
+
workspace_id: z.ZodString;
|
|
5
|
+
display_name: z.ZodString;
|
|
6
|
+
created_at: z.ZodString;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
workspace_id: string;
|
|
9
|
+
created_at: string;
|
|
10
|
+
display_name: string;
|
|
11
|
+
network_id: string;
|
|
12
|
+
}, {
|
|
13
|
+
workspace_id: string;
|
|
14
|
+
created_at: string;
|
|
15
|
+
display_name: string;
|
|
16
|
+
network_id: string;
|
|
17
|
+
}>;
|
|
18
|
+
export type Network = z.infer<typeof network>;
|
|
@@ -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
|
+
}>;
|