@seamapi/types 1.113.1 → 1.113.2
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/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 +16823 -0
- package/lib/seam/connect/route-types.d.ts +7657 -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
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
export interface Routes {
|
|
2
|
+
'/v1/device_models/get': {
|
|
3
|
+
route: '/v1/device_models/get';
|
|
4
|
+
method: 'GET' | 'OPTIONS';
|
|
5
|
+
queryParams: {
|
|
6
|
+
device_model_id: string;
|
|
7
|
+
};
|
|
8
|
+
jsonBody: {};
|
|
9
|
+
commonParams: {};
|
|
10
|
+
formData: {};
|
|
11
|
+
jsonResponse: {
|
|
12
|
+
device_model: {
|
|
13
|
+
device_model_id: string;
|
|
14
|
+
manufacturer: {
|
|
15
|
+
manufacturer_id: string;
|
|
16
|
+
display_name: string;
|
|
17
|
+
logo?: {
|
|
18
|
+
url: string;
|
|
19
|
+
width: number;
|
|
20
|
+
height: number;
|
|
21
|
+
} | undefined;
|
|
22
|
+
integration: 'stable' | 'beta' | 'planned' | 'unsupported' | 'inquire';
|
|
23
|
+
integration_support_level: 'stable' | 'beta' | 'planned' | 'unsupported' | 'inquire';
|
|
24
|
+
is_connect_webview_supported: boolean;
|
|
25
|
+
requires_seam_support_to_add_account: boolean;
|
|
26
|
+
annotations: Array<{
|
|
27
|
+
annotation_code: 'subscription_required';
|
|
28
|
+
message: string;
|
|
29
|
+
}>;
|
|
30
|
+
};
|
|
31
|
+
is_device_supported: boolean;
|
|
32
|
+
display_name: string;
|
|
33
|
+
description: string;
|
|
34
|
+
product_url?: string | undefined;
|
|
35
|
+
main_connection_type: 'wifi' | 'zwave' | 'zigbee' | 'unknown';
|
|
36
|
+
hardware: {
|
|
37
|
+
has_physical_key?: boolean | undefined;
|
|
38
|
+
};
|
|
39
|
+
aesthetic_variants: Array<{
|
|
40
|
+
slug: string;
|
|
41
|
+
display_name: string;
|
|
42
|
+
primary_color_hex?: string | undefined;
|
|
43
|
+
manufacturer_sku?: string | undefined;
|
|
44
|
+
front_image?: {
|
|
45
|
+
url: string;
|
|
46
|
+
width: number;
|
|
47
|
+
height: number;
|
|
48
|
+
} | undefined;
|
|
49
|
+
back_image?: {
|
|
50
|
+
url: string;
|
|
51
|
+
width: number;
|
|
52
|
+
height: number;
|
|
53
|
+
} | undefined;
|
|
54
|
+
images: Array<{
|
|
55
|
+
url: string;
|
|
56
|
+
width: number;
|
|
57
|
+
height: number;
|
|
58
|
+
}>;
|
|
59
|
+
}>;
|
|
60
|
+
power_sources: Array<'battery' | 'hardwired' | 'mechanical_harvesting' | 'wireless' | 'ethernet'>;
|
|
61
|
+
} & ({
|
|
62
|
+
main_category: 'smartlock';
|
|
63
|
+
physical_properties: {
|
|
64
|
+
lock_type: 'deadbolt' | 'lever' | 'mortise' | 'lockbox' | 'cylinder' | 'padlock' | 'locker' | 'unknown';
|
|
65
|
+
has_physical_key: boolean;
|
|
66
|
+
has_camera: boolean;
|
|
67
|
+
};
|
|
68
|
+
software_features: {
|
|
69
|
+
can_remotely_unlock: boolean;
|
|
70
|
+
can_program_access_codes: boolean;
|
|
71
|
+
can_program_access_schedules: boolean;
|
|
72
|
+
can_program_access_codes_offline: boolean;
|
|
73
|
+
};
|
|
74
|
+
can_remotely_unlock?: true | undefined;
|
|
75
|
+
can_program_online_access_codes?: true | undefined;
|
|
76
|
+
} | {
|
|
77
|
+
main_category: 'sensor';
|
|
78
|
+
physical_properties: {
|
|
79
|
+
has_noise_sensor: boolean;
|
|
80
|
+
has_humidity_sensor: boolean;
|
|
81
|
+
has_temperature_sensor: boolean;
|
|
82
|
+
has_occupancy_detection: boolean;
|
|
83
|
+
};
|
|
84
|
+
} | {
|
|
85
|
+
main_category: 'thermostat';
|
|
86
|
+
physical_properties: {
|
|
87
|
+
available_modes: Array<'heat' | 'cool' | 'fan' | 'eco'>;
|
|
88
|
+
is_heat_pump_compatible: boolean;
|
|
89
|
+
has_occupancy_detection: boolean;
|
|
90
|
+
supports_demand_response: boolean;
|
|
91
|
+
has_humidity_sensor: boolean;
|
|
92
|
+
has_temperature_sensor: boolean;
|
|
93
|
+
supports_emergency_heating_mode: boolean;
|
|
94
|
+
};
|
|
95
|
+
software_features: {
|
|
96
|
+
can_program_climate_schedules: boolean;
|
|
97
|
+
};
|
|
98
|
+
} | {
|
|
99
|
+
main_category: 'relay';
|
|
100
|
+
} | {
|
|
101
|
+
main_category: 'intercom';
|
|
102
|
+
physical_properties: {
|
|
103
|
+
has_camera: boolean;
|
|
104
|
+
has_rfid_reader?: boolean;
|
|
105
|
+
has_nfc_reader?: boolean;
|
|
106
|
+
has_wiegand_interface?: boolean;
|
|
107
|
+
};
|
|
108
|
+
software_features: {
|
|
109
|
+
can_remotely_unlock: boolean;
|
|
110
|
+
can_program_access_codes: boolean;
|
|
111
|
+
can_unlock_with_face_recognition?: boolean;
|
|
112
|
+
supports_onvif?: boolean;
|
|
113
|
+
};
|
|
114
|
+
} | {
|
|
115
|
+
main_category: 'accessory';
|
|
116
|
+
});
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
'/v1/device_models/list': {
|
|
120
|
+
route: '/v1/device_models/list';
|
|
121
|
+
method: 'GET' | 'OPTIONS';
|
|
122
|
+
queryParams: {
|
|
123
|
+
main_category?: ('smartlock' | 'sensor' | 'thermostat' | 'relay' | 'intercom' | 'accessory') | undefined;
|
|
124
|
+
manufacturer_id?: string | undefined;
|
|
125
|
+
manufacturer_ids?: string[] | undefined;
|
|
126
|
+
integration_status?: ('stable' | 'beta' | 'planned' | 'unsupported' | 'inquire') | undefined;
|
|
127
|
+
integration_support_levels?: Array<'stable' | 'beta' | 'planned' | 'unsupported' | 'inquire'> | undefined;
|
|
128
|
+
text_search?: string | undefined;
|
|
129
|
+
include_if?: string[] | undefined;
|
|
130
|
+
exclude_if?: string[] | undefined;
|
|
131
|
+
};
|
|
132
|
+
jsonBody: {};
|
|
133
|
+
commonParams: {};
|
|
134
|
+
formData: {};
|
|
135
|
+
jsonResponse: {
|
|
136
|
+
device_models: Array<{
|
|
137
|
+
device_model_id: string;
|
|
138
|
+
manufacturer: {
|
|
139
|
+
manufacturer_id: string;
|
|
140
|
+
display_name: string;
|
|
141
|
+
logo?: {
|
|
142
|
+
url: string;
|
|
143
|
+
width: number;
|
|
144
|
+
height: number;
|
|
145
|
+
} | undefined;
|
|
146
|
+
integration: 'stable' | 'beta' | 'planned' | 'unsupported' | 'inquire';
|
|
147
|
+
integration_support_level: 'stable' | 'beta' | 'planned' | 'unsupported' | 'inquire';
|
|
148
|
+
is_connect_webview_supported: boolean;
|
|
149
|
+
requires_seam_support_to_add_account: boolean;
|
|
150
|
+
annotations: Array<{
|
|
151
|
+
annotation_code: 'subscription_required';
|
|
152
|
+
message: string;
|
|
153
|
+
}>;
|
|
154
|
+
};
|
|
155
|
+
is_device_supported: boolean;
|
|
156
|
+
display_name: string;
|
|
157
|
+
description: string;
|
|
158
|
+
product_url?: string | undefined;
|
|
159
|
+
main_connection_type: 'wifi' | 'zwave' | 'zigbee' | 'unknown';
|
|
160
|
+
hardware: {
|
|
161
|
+
has_physical_key?: boolean | undefined;
|
|
162
|
+
};
|
|
163
|
+
aesthetic_variants: Array<{
|
|
164
|
+
slug: string;
|
|
165
|
+
display_name: string;
|
|
166
|
+
primary_color_hex?: string | undefined;
|
|
167
|
+
manufacturer_sku?: string | undefined;
|
|
168
|
+
front_image?: {
|
|
169
|
+
url: string;
|
|
170
|
+
width: number;
|
|
171
|
+
height: number;
|
|
172
|
+
} | undefined;
|
|
173
|
+
back_image?: {
|
|
174
|
+
url: string;
|
|
175
|
+
width: number;
|
|
176
|
+
height: number;
|
|
177
|
+
} | undefined;
|
|
178
|
+
images: Array<{
|
|
179
|
+
url: string;
|
|
180
|
+
width: number;
|
|
181
|
+
height: number;
|
|
182
|
+
}>;
|
|
183
|
+
}>;
|
|
184
|
+
power_sources: Array<'battery' | 'hardwired' | 'mechanical_harvesting' | 'wireless' | 'ethernet'>;
|
|
185
|
+
} & ({
|
|
186
|
+
main_category: 'smartlock';
|
|
187
|
+
physical_properties: {
|
|
188
|
+
lock_type: 'deadbolt' | 'lever' | 'mortise' | 'lockbox' | 'cylinder' | 'padlock' | 'locker' | 'unknown';
|
|
189
|
+
has_physical_key: boolean;
|
|
190
|
+
has_camera: boolean;
|
|
191
|
+
};
|
|
192
|
+
software_features: {
|
|
193
|
+
can_remotely_unlock: boolean;
|
|
194
|
+
can_program_access_codes: boolean;
|
|
195
|
+
can_program_access_schedules: boolean;
|
|
196
|
+
can_program_access_codes_offline: boolean;
|
|
197
|
+
};
|
|
198
|
+
can_remotely_unlock?: true | undefined;
|
|
199
|
+
can_program_online_access_codes?: true | undefined;
|
|
200
|
+
} | {
|
|
201
|
+
main_category: 'sensor';
|
|
202
|
+
physical_properties: {
|
|
203
|
+
has_noise_sensor: boolean;
|
|
204
|
+
has_humidity_sensor: boolean;
|
|
205
|
+
has_temperature_sensor: boolean;
|
|
206
|
+
has_occupancy_detection: boolean;
|
|
207
|
+
};
|
|
208
|
+
} | {
|
|
209
|
+
main_category: 'thermostat';
|
|
210
|
+
physical_properties: {
|
|
211
|
+
available_modes: Array<'heat' | 'cool' | 'fan' | 'eco'>;
|
|
212
|
+
is_heat_pump_compatible: boolean;
|
|
213
|
+
has_occupancy_detection: boolean;
|
|
214
|
+
supports_demand_response: boolean;
|
|
215
|
+
has_humidity_sensor: boolean;
|
|
216
|
+
has_temperature_sensor: boolean;
|
|
217
|
+
supports_emergency_heating_mode: boolean;
|
|
218
|
+
};
|
|
219
|
+
software_features: {
|
|
220
|
+
can_program_climate_schedules: boolean;
|
|
221
|
+
};
|
|
222
|
+
} | {
|
|
223
|
+
main_category: 'relay';
|
|
224
|
+
} | {
|
|
225
|
+
main_category: 'intercom';
|
|
226
|
+
physical_properties: {
|
|
227
|
+
has_camera: boolean;
|
|
228
|
+
has_rfid_reader?: boolean;
|
|
229
|
+
has_nfc_reader?: boolean;
|
|
230
|
+
has_wiegand_interface?: boolean;
|
|
231
|
+
};
|
|
232
|
+
software_features: {
|
|
233
|
+
can_remotely_unlock: boolean;
|
|
234
|
+
can_program_access_codes: boolean;
|
|
235
|
+
can_unlock_with_face_recognition?: boolean;
|
|
236
|
+
supports_onvif?: boolean;
|
|
237
|
+
};
|
|
238
|
+
} | {
|
|
239
|
+
main_category: 'accessory';
|
|
240
|
+
})>;
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
'/v1/manufacturers/get': {
|
|
244
|
+
route: '/v1/manufacturers/get';
|
|
245
|
+
method: 'GET' | 'OPTIONS';
|
|
246
|
+
queryParams: {
|
|
247
|
+
manufacturer_id: string;
|
|
248
|
+
};
|
|
249
|
+
jsonBody: {};
|
|
250
|
+
commonParams: {};
|
|
251
|
+
formData: {};
|
|
252
|
+
jsonResponse: {
|
|
253
|
+
manufacturer: {
|
|
254
|
+
manufacturer_id: string;
|
|
255
|
+
display_name: string;
|
|
256
|
+
logo?: {
|
|
257
|
+
url: string;
|
|
258
|
+
width: number;
|
|
259
|
+
height: number;
|
|
260
|
+
} | undefined;
|
|
261
|
+
integration: 'stable' | 'beta' | 'planned' | 'unsupported' | 'inquire';
|
|
262
|
+
integration_support_level: 'stable' | 'beta' | 'planned' | 'unsupported' | 'inquire';
|
|
263
|
+
is_connect_webview_supported: boolean;
|
|
264
|
+
requires_seam_support_to_add_account: boolean;
|
|
265
|
+
device_model_count: number;
|
|
266
|
+
annotations: Array<{
|
|
267
|
+
annotation_code: 'subscription_required';
|
|
268
|
+
message: string;
|
|
269
|
+
}>;
|
|
270
|
+
};
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
'/v1/manufacturers/list': {
|
|
274
|
+
route: '/v1/manufacturers/list';
|
|
275
|
+
method: 'GET' | 'OPTIONS';
|
|
276
|
+
queryParams: {
|
|
277
|
+
integration_status?: ('stable' | 'beta' | 'planned' | 'unsupported' | 'inquire') | undefined;
|
|
278
|
+
integration_support_levels?: Array<'stable' | 'beta' | 'planned' | 'unsupported' | 'inquire'> | undefined;
|
|
279
|
+
liqe_query?: string | undefined;
|
|
280
|
+
};
|
|
281
|
+
jsonBody: {};
|
|
282
|
+
commonParams: {};
|
|
283
|
+
formData: {};
|
|
284
|
+
jsonResponse: {
|
|
285
|
+
manufacturers: Array<{
|
|
286
|
+
manufacturer_id: string;
|
|
287
|
+
display_name: string;
|
|
288
|
+
logo?: {
|
|
289
|
+
url: string;
|
|
290
|
+
width: number;
|
|
291
|
+
height: number;
|
|
292
|
+
} | undefined;
|
|
293
|
+
integration: 'stable' | 'beta' | 'planned' | 'unsupported' | 'inquire';
|
|
294
|
+
integration_support_level: 'stable' | 'beta' | 'planned' | 'unsupported' | 'inquire';
|
|
295
|
+
is_connect_webview_supported: boolean;
|
|
296
|
+
requires_seam_support_to_add_account: boolean;
|
|
297
|
+
device_model_count: number;
|
|
298
|
+
annotations: Array<{
|
|
299
|
+
annotation_code: 'subscription_required';
|
|
300
|
+
message: string;
|
|
301
|
+
}>;
|
|
302
|
+
}>;
|
|
303
|
+
};
|
|
304
|
+
};
|
|
305
|
+
}
|
|
306
|
+
export type RouteResponse<Path extends keyof Routes> = Routes[Path]['jsonResponse'];
|
|
307
|
+
export type RouteRequestBody<Path extends keyof Routes> = Routes[Path]['jsonBody'] & Routes[Path]['commonParams'];
|
|
308
|
+
export type RouteRequestParams<Path extends keyof Routes> = Routes[Path]['queryParams'] & Routes[Path]['commonParams'];
|