@seamapi/types 1.913.0 → 1.915.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 +387 -0
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +654 -4
- package/dist/index.cjs +387 -0
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/events/access-codes.d.ts +410 -0
- package/lib/seam/connect/models/events/access-codes.js +68 -0
- package/lib/seam/connect/models/events/access-codes.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +203 -1
- package/lib/seam/connect/openapi.js +337 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +452 -4
- package/package.json +1 -1
- package/src/lib/seam/connect/models/events/access-codes.ts +83 -0
- package/src/lib/seam/connect/openapi.ts +358 -0
- package/src/lib/seam/connect/route-types.ts +520 -0
|
@@ -106,6 +106,208 @@ export declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObj
|
|
|
106
106
|
connected_account_id: z.ZodString;
|
|
107
107
|
device_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
|
|
108
108
|
connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
|
|
109
|
+
} & {
|
|
110
|
+
event_type: z.ZodLiteral<"access_code.name_changed">;
|
|
111
|
+
from: z.ZodObject<{
|
|
112
|
+
name: z.ZodNullable<z.ZodString>;
|
|
113
|
+
}, "strip", z.ZodTypeAny, {
|
|
114
|
+
name: string | null;
|
|
115
|
+
}, {
|
|
116
|
+
name: string | null;
|
|
117
|
+
}>;
|
|
118
|
+
to: z.ZodObject<{
|
|
119
|
+
name: z.ZodNullable<z.ZodString>;
|
|
120
|
+
}, "strip", z.ZodTypeAny, {
|
|
121
|
+
name: string | null;
|
|
122
|
+
}, {
|
|
123
|
+
name: string | null;
|
|
124
|
+
}>;
|
|
125
|
+
description: z.ZodString;
|
|
126
|
+
}, "strip", z.ZodTypeAny, {
|
|
127
|
+
device_id: string;
|
|
128
|
+
workspace_id: string;
|
|
129
|
+
created_at: string;
|
|
130
|
+
connected_account_id: string;
|
|
131
|
+
from: {
|
|
132
|
+
name: string | null;
|
|
133
|
+
};
|
|
134
|
+
to: {
|
|
135
|
+
name: string | null;
|
|
136
|
+
};
|
|
137
|
+
access_code_id: string;
|
|
138
|
+
event_id: string;
|
|
139
|
+
occurred_at: string;
|
|
140
|
+
event_type: "access_code.name_changed";
|
|
141
|
+
description: string;
|
|
142
|
+
device_custom_metadata?: Record<string, string | boolean> | undefined;
|
|
143
|
+
connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
|
|
144
|
+
}, {
|
|
145
|
+
device_id: string;
|
|
146
|
+
workspace_id: string;
|
|
147
|
+
created_at: string;
|
|
148
|
+
connected_account_id: string;
|
|
149
|
+
from: {
|
|
150
|
+
name: string | null;
|
|
151
|
+
};
|
|
152
|
+
to: {
|
|
153
|
+
name: string | null;
|
|
154
|
+
};
|
|
155
|
+
access_code_id: string;
|
|
156
|
+
event_id: string;
|
|
157
|
+
occurred_at: string;
|
|
158
|
+
event_type: "access_code.name_changed";
|
|
159
|
+
description: string;
|
|
160
|
+
device_custom_metadata?: Record<string, string | boolean> | undefined;
|
|
161
|
+
connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
|
|
162
|
+
}>, z.ZodObject<{
|
|
163
|
+
event_id: z.ZodString;
|
|
164
|
+
workspace_id: z.ZodString;
|
|
165
|
+
created_at: z.ZodString;
|
|
166
|
+
occurred_at: z.ZodString;
|
|
167
|
+
} & {
|
|
168
|
+
access_code_id: z.ZodString;
|
|
169
|
+
device_id: z.ZodString;
|
|
170
|
+
connected_account_id: z.ZodString;
|
|
171
|
+
device_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
|
|
172
|
+
connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
|
|
173
|
+
} & {
|
|
174
|
+
event_type: z.ZodLiteral<"access_code.code_changed">;
|
|
175
|
+
from: z.ZodObject<{
|
|
176
|
+
code: z.ZodNullable<z.ZodString>;
|
|
177
|
+
}, "strip", z.ZodTypeAny, {
|
|
178
|
+
code: string | null;
|
|
179
|
+
}, {
|
|
180
|
+
code: string | null;
|
|
181
|
+
}>;
|
|
182
|
+
to: z.ZodObject<{
|
|
183
|
+
code: z.ZodNullable<z.ZodString>;
|
|
184
|
+
}, "strip", z.ZodTypeAny, {
|
|
185
|
+
code: string | null;
|
|
186
|
+
}, {
|
|
187
|
+
code: string | null;
|
|
188
|
+
}>;
|
|
189
|
+
description: z.ZodString;
|
|
190
|
+
}, "strip", z.ZodTypeAny, {
|
|
191
|
+
device_id: string;
|
|
192
|
+
workspace_id: string;
|
|
193
|
+
created_at: string;
|
|
194
|
+
connected_account_id: string;
|
|
195
|
+
from: {
|
|
196
|
+
code: string | null;
|
|
197
|
+
};
|
|
198
|
+
to: {
|
|
199
|
+
code: string | null;
|
|
200
|
+
};
|
|
201
|
+
access_code_id: string;
|
|
202
|
+
event_id: string;
|
|
203
|
+
occurred_at: string;
|
|
204
|
+
event_type: "access_code.code_changed";
|
|
205
|
+
description: string;
|
|
206
|
+
device_custom_metadata?: Record<string, string | boolean> | undefined;
|
|
207
|
+
connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
|
|
208
|
+
}, {
|
|
209
|
+
device_id: string;
|
|
210
|
+
workspace_id: string;
|
|
211
|
+
created_at: string;
|
|
212
|
+
connected_account_id: string;
|
|
213
|
+
from: {
|
|
214
|
+
code: string | null;
|
|
215
|
+
};
|
|
216
|
+
to: {
|
|
217
|
+
code: string | null;
|
|
218
|
+
};
|
|
219
|
+
access_code_id: string;
|
|
220
|
+
event_id: string;
|
|
221
|
+
occurred_at: string;
|
|
222
|
+
event_type: "access_code.code_changed";
|
|
223
|
+
description: string;
|
|
224
|
+
device_custom_metadata?: Record<string, string | boolean> | undefined;
|
|
225
|
+
connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
|
|
226
|
+
}>, z.ZodObject<{
|
|
227
|
+
event_id: z.ZodString;
|
|
228
|
+
workspace_id: z.ZodString;
|
|
229
|
+
created_at: z.ZodString;
|
|
230
|
+
occurred_at: z.ZodString;
|
|
231
|
+
} & {
|
|
232
|
+
access_code_id: z.ZodString;
|
|
233
|
+
device_id: z.ZodString;
|
|
234
|
+
connected_account_id: z.ZodString;
|
|
235
|
+
device_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
|
|
236
|
+
connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
|
|
237
|
+
} & {
|
|
238
|
+
event_type: z.ZodLiteral<"access_code.time_frame_changed">;
|
|
239
|
+
from: z.ZodObject<{
|
|
240
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
241
|
+
ends_at: z.ZodNullable<z.ZodString>;
|
|
242
|
+
}, "strip", z.ZodTypeAny, {
|
|
243
|
+
starts_at: string | null;
|
|
244
|
+
ends_at: string | null;
|
|
245
|
+
}, {
|
|
246
|
+
starts_at: string | null;
|
|
247
|
+
ends_at: string | null;
|
|
248
|
+
}>;
|
|
249
|
+
to: z.ZodObject<{
|
|
250
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
251
|
+
ends_at: z.ZodNullable<z.ZodString>;
|
|
252
|
+
}, "strip", z.ZodTypeAny, {
|
|
253
|
+
starts_at: string | null;
|
|
254
|
+
ends_at: string | null;
|
|
255
|
+
}, {
|
|
256
|
+
starts_at: string | null;
|
|
257
|
+
ends_at: string | null;
|
|
258
|
+
}>;
|
|
259
|
+
description: z.ZodString;
|
|
260
|
+
}, "strip", z.ZodTypeAny, {
|
|
261
|
+
device_id: string;
|
|
262
|
+
workspace_id: string;
|
|
263
|
+
created_at: string;
|
|
264
|
+
connected_account_id: string;
|
|
265
|
+
from: {
|
|
266
|
+
starts_at: string | null;
|
|
267
|
+
ends_at: string | null;
|
|
268
|
+
};
|
|
269
|
+
to: {
|
|
270
|
+
starts_at: string | null;
|
|
271
|
+
ends_at: string | null;
|
|
272
|
+
};
|
|
273
|
+
access_code_id: string;
|
|
274
|
+
event_id: string;
|
|
275
|
+
occurred_at: string;
|
|
276
|
+
event_type: "access_code.time_frame_changed";
|
|
277
|
+
description: string;
|
|
278
|
+
device_custom_metadata?: Record<string, string | boolean> | undefined;
|
|
279
|
+
connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
|
|
280
|
+
}, {
|
|
281
|
+
device_id: string;
|
|
282
|
+
workspace_id: string;
|
|
283
|
+
created_at: string;
|
|
284
|
+
connected_account_id: string;
|
|
285
|
+
from: {
|
|
286
|
+
starts_at: string | null;
|
|
287
|
+
ends_at: string | null;
|
|
288
|
+
};
|
|
289
|
+
to: {
|
|
290
|
+
starts_at: string | null;
|
|
291
|
+
ends_at: string | null;
|
|
292
|
+
};
|
|
293
|
+
access_code_id: string;
|
|
294
|
+
event_id: string;
|
|
295
|
+
occurred_at: string;
|
|
296
|
+
event_type: "access_code.time_frame_changed";
|
|
297
|
+
description: string;
|
|
298
|
+
device_custom_metadata?: Record<string, string | boolean> | undefined;
|
|
299
|
+
connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
|
|
300
|
+
}>, z.ZodObject<{
|
|
301
|
+
event_id: z.ZodString;
|
|
302
|
+
workspace_id: z.ZodString;
|
|
303
|
+
created_at: z.ZodString;
|
|
304
|
+
occurred_at: z.ZodString;
|
|
305
|
+
} & {
|
|
306
|
+
access_code_id: z.ZodString;
|
|
307
|
+
device_id: z.ZodString;
|
|
308
|
+
connected_account_id: z.ZodString;
|
|
309
|
+
device_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
|
|
310
|
+
connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
|
|
109
311
|
} & {
|
|
110
312
|
event_type: z.ZodLiteral<"access_code.scheduled_on_device">;
|
|
111
313
|
code: z.ZodString;
|
|
@@ -4923,5 +5125,5 @@ export declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObj
|
|
|
4923
5125
|
space_key?: string | undefined;
|
|
4924
5126
|
}>]>;
|
|
4925
5127
|
export type SeamEvent = z.infer<typeof seam_event>;
|
|
4926
|
-
export declare const seam_event_type: z.ZodEnum<["access_code.created" | "access_code.changed" | "access_code.scheduled_on_device" | "access_code.set_on_device" | "access_code.removed_from_device" | "access_code.delay_in_setting_on_device" | "access_code.failed_to_set_on_device" | "access_code.deleted" | "access_code.delay_in_removing_from_device" | "access_code.failed_to_remove_from_device" | "access_code.modified_external_to_seam" | "access_code.deleted_external_to_seam" | "access_code.backup_access_code_pulled" | "access_code.unmanaged.converted_to_managed" | "access_code.unmanaged.failed_to_convert_to_managed" | "access_code.unmanaged.created" | "access_code.unmanaged.removed" | "access_grant.created" | "access_grant.deleted" | "access_grant.access_granted_to_all_doors" | "access_grant.access_granted_to_door" | "access_grant.access_to_door_lost" | "access_grant.access_times_changed" | "access_grant.could_not_create_requested_access_methods" | "access_method.issued" | "access_method.card_encoding_required" | "access_method.revoked" | "access_method.deleted" | "access_method.reissued" | "access_method.created" | "acs_access_group.deleted" | "acs_credential.deleted" | "acs_credential.issued" | "acs_credential.reissued" | "acs_credential.invalidated" | "acs_encoder.added" | "acs_encoder.removed" | "acs_entrance.added" | "acs_entrance.removed" | "acs_system.connected" | "acs_system.disconnected" | "acs_system.added" | "acs_user.deleted" | "acs_user.created" | "action_attempt.lock_door.succeeded" | "action_attempt.lock_door.failed" | "action_attempt.unlock_door.succeeded" | "action_attempt.unlock_door.failed" | "action_attempt.simulate_keypad_code_entry.succeeded" | "action_attempt.simulate_keypad_code_entry.failed" | "action_attempt.simulate_manual_lock_via_keypad.succeeded" | "action_attempt.simulate_manual_lock_via_keypad.failed" | "client_session.deleted" | "connect_webview.login_succeeded" | "connect_webview.login_failed" | "connected_account.connected" | "connected_account.created" | "connected_account.successful_login" | "connected_account.disconnected" | "connected_account.completed_first_sync" | "connected_account.deleted" | "connected_account.completed_first_sync_after_reconnection" | "connected_account.reauthorization_requested" | "device.connected" | "device.added" | "device.converted_to_unmanaged" | "device.unmanaged.converted_to_managed" | "device.unmanaged.connected" | "device.disconnected" | "device.unmanaged.disconnected" | "device.tampered" | "device.low_battery" | "device.battery_status_changed" | "device.removed" | "device.deleted" | "device.third_party_integration_detected" | "device.third_party_integration_no_longer_detected" | "device.salto.privacy_mode_activated" | "device.salto.privacy_mode_deactivated" | "device.connection_became_flaky" | "device.connection_stabilized" | "device.error.subscription_required" | "device.error.subscription_required.resolved" | "device.accessory_keypad_connected" | "device.accessory_keypad_disconnected" | "noise_sensor.noise_threshold_triggered" | "lock.locked" | "lock.unlocked" | "lock.access_denied" | "thermostat.climate_preset_activated" | "thermostat.manually_adjusted" | "thermostat.temperature_threshold_exceeded" | "thermostat.temperature_threshold_no_longer_exceeded" | "thermostat.temperature_reached_set_point" | "thermostat.temperature_changed" | "device.name_changed" | "camera.activated" | "device.doorbell_rang" | "enrollment_automation.deleted" | "phone.deactivated" | "space.device_membership_changed" | "space.created" | "space.deleted", ...("access_code.created" | "access_code.changed" | "access_code.scheduled_on_device" | "access_code.set_on_device" | "access_code.removed_from_device" | "access_code.delay_in_setting_on_device" | "access_code.failed_to_set_on_device" | "access_code.deleted" | "access_code.delay_in_removing_from_device" | "access_code.failed_to_remove_from_device" | "access_code.modified_external_to_seam" | "access_code.deleted_external_to_seam" | "access_code.backup_access_code_pulled" | "access_code.unmanaged.converted_to_managed" | "access_code.unmanaged.failed_to_convert_to_managed" | "access_code.unmanaged.created" | "access_code.unmanaged.removed" | "access_grant.created" | "access_grant.deleted" | "access_grant.access_granted_to_all_doors" | "access_grant.access_granted_to_door" | "access_grant.access_to_door_lost" | "access_grant.access_times_changed" | "access_grant.could_not_create_requested_access_methods" | "access_method.issued" | "access_method.card_encoding_required" | "access_method.revoked" | "access_method.deleted" | "access_method.reissued" | "access_method.created" | "acs_access_group.deleted" | "acs_credential.deleted" | "acs_credential.issued" | "acs_credential.reissued" | "acs_credential.invalidated" | "acs_encoder.added" | "acs_encoder.removed" | "acs_entrance.added" | "acs_entrance.removed" | "acs_system.connected" | "acs_system.disconnected" | "acs_system.added" | "acs_user.deleted" | "acs_user.created" | "action_attempt.lock_door.succeeded" | "action_attempt.lock_door.failed" | "action_attempt.unlock_door.succeeded" | "action_attempt.unlock_door.failed" | "action_attempt.simulate_keypad_code_entry.succeeded" | "action_attempt.simulate_keypad_code_entry.failed" | "action_attempt.simulate_manual_lock_via_keypad.succeeded" | "action_attempt.simulate_manual_lock_via_keypad.failed" | "client_session.deleted" | "connect_webview.login_succeeded" | "connect_webview.login_failed" | "connected_account.connected" | "connected_account.created" | "connected_account.successful_login" | "connected_account.disconnected" | "connected_account.completed_first_sync" | "connected_account.deleted" | "connected_account.completed_first_sync_after_reconnection" | "connected_account.reauthorization_requested" | "device.connected" | "device.added" | "device.converted_to_unmanaged" | "device.unmanaged.converted_to_managed" | "device.unmanaged.connected" | "device.disconnected" | "device.unmanaged.disconnected" | "device.tampered" | "device.low_battery" | "device.battery_status_changed" | "device.removed" | "device.deleted" | "device.third_party_integration_detected" | "device.third_party_integration_no_longer_detected" | "device.salto.privacy_mode_activated" | "device.salto.privacy_mode_deactivated" | "device.connection_became_flaky" | "device.connection_stabilized" | "device.error.subscription_required" | "device.error.subscription_required.resolved" | "device.accessory_keypad_connected" | "device.accessory_keypad_disconnected" | "noise_sensor.noise_threshold_triggered" | "lock.locked" | "lock.unlocked" | "lock.access_denied" | "thermostat.climate_preset_activated" | "thermostat.manually_adjusted" | "thermostat.temperature_threshold_exceeded" | "thermostat.temperature_threshold_no_longer_exceeded" | "thermostat.temperature_reached_set_point" | "thermostat.temperature_changed" | "device.name_changed" | "camera.activated" | "device.doorbell_rang" | "enrollment_automation.deleted" | "phone.deactivated" | "space.device_membership_changed" | "space.created" | "space.deleted")[]]>;
|
|
5128
|
+
export declare const seam_event_type: z.ZodEnum<["access_code.created" | "access_code.changed" | "access_code.name_changed" | "access_code.code_changed" | "access_code.time_frame_changed" | "access_code.scheduled_on_device" | "access_code.set_on_device" | "access_code.removed_from_device" | "access_code.delay_in_setting_on_device" | "access_code.failed_to_set_on_device" | "access_code.deleted" | "access_code.delay_in_removing_from_device" | "access_code.failed_to_remove_from_device" | "access_code.modified_external_to_seam" | "access_code.deleted_external_to_seam" | "access_code.backup_access_code_pulled" | "access_code.unmanaged.converted_to_managed" | "access_code.unmanaged.failed_to_convert_to_managed" | "access_code.unmanaged.created" | "access_code.unmanaged.removed" | "access_grant.created" | "access_grant.deleted" | "access_grant.access_granted_to_all_doors" | "access_grant.access_granted_to_door" | "access_grant.access_to_door_lost" | "access_grant.access_times_changed" | "access_grant.could_not_create_requested_access_methods" | "access_method.issued" | "access_method.card_encoding_required" | "access_method.revoked" | "access_method.deleted" | "access_method.reissued" | "access_method.created" | "acs_access_group.deleted" | "acs_credential.deleted" | "acs_credential.issued" | "acs_credential.reissued" | "acs_credential.invalidated" | "acs_encoder.added" | "acs_encoder.removed" | "acs_entrance.added" | "acs_entrance.removed" | "acs_system.connected" | "acs_system.disconnected" | "acs_system.added" | "acs_user.deleted" | "acs_user.created" | "action_attempt.lock_door.succeeded" | "action_attempt.lock_door.failed" | "action_attempt.unlock_door.succeeded" | "action_attempt.unlock_door.failed" | "action_attempt.simulate_keypad_code_entry.succeeded" | "action_attempt.simulate_keypad_code_entry.failed" | "action_attempt.simulate_manual_lock_via_keypad.succeeded" | "action_attempt.simulate_manual_lock_via_keypad.failed" | "client_session.deleted" | "connect_webview.login_succeeded" | "connect_webview.login_failed" | "connected_account.connected" | "connected_account.created" | "connected_account.successful_login" | "connected_account.disconnected" | "connected_account.completed_first_sync" | "connected_account.deleted" | "connected_account.completed_first_sync_after_reconnection" | "connected_account.reauthorization_requested" | "device.connected" | "device.added" | "device.converted_to_unmanaged" | "device.unmanaged.converted_to_managed" | "device.unmanaged.connected" | "device.disconnected" | "device.unmanaged.disconnected" | "device.tampered" | "device.low_battery" | "device.battery_status_changed" | "device.removed" | "device.deleted" | "device.third_party_integration_detected" | "device.third_party_integration_no_longer_detected" | "device.salto.privacy_mode_activated" | "device.salto.privacy_mode_deactivated" | "device.connection_became_flaky" | "device.connection_stabilized" | "device.error.subscription_required" | "device.error.subscription_required.resolved" | "device.accessory_keypad_connected" | "device.accessory_keypad_disconnected" | "noise_sensor.noise_threshold_triggered" | "lock.locked" | "lock.unlocked" | "lock.access_denied" | "thermostat.climate_preset_activated" | "thermostat.manually_adjusted" | "thermostat.temperature_threshold_exceeded" | "thermostat.temperature_threshold_no_longer_exceeded" | "thermostat.temperature_reached_set_point" | "thermostat.temperature_changed" | "device.name_changed" | "camera.activated" | "device.doorbell_rang" | "enrollment_automation.deleted" | "phone.deactivated" | "space.device_membership_changed" | "space.created" | "space.deleted", ...("access_code.created" | "access_code.changed" | "access_code.name_changed" | "access_code.code_changed" | "access_code.time_frame_changed" | "access_code.scheduled_on_device" | "access_code.set_on_device" | "access_code.removed_from_device" | "access_code.delay_in_setting_on_device" | "access_code.failed_to_set_on_device" | "access_code.deleted" | "access_code.delay_in_removing_from_device" | "access_code.failed_to_remove_from_device" | "access_code.modified_external_to_seam" | "access_code.deleted_external_to_seam" | "access_code.backup_access_code_pulled" | "access_code.unmanaged.converted_to_managed" | "access_code.unmanaged.failed_to_convert_to_managed" | "access_code.unmanaged.created" | "access_code.unmanaged.removed" | "access_grant.created" | "access_grant.deleted" | "access_grant.access_granted_to_all_doors" | "access_grant.access_granted_to_door" | "access_grant.access_to_door_lost" | "access_grant.access_times_changed" | "access_grant.could_not_create_requested_access_methods" | "access_method.issued" | "access_method.card_encoding_required" | "access_method.revoked" | "access_method.deleted" | "access_method.reissued" | "access_method.created" | "acs_access_group.deleted" | "acs_credential.deleted" | "acs_credential.issued" | "acs_credential.reissued" | "acs_credential.invalidated" | "acs_encoder.added" | "acs_encoder.removed" | "acs_entrance.added" | "acs_entrance.removed" | "acs_system.connected" | "acs_system.disconnected" | "acs_system.added" | "acs_user.deleted" | "acs_user.created" | "action_attempt.lock_door.succeeded" | "action_attempt.lock_door.failed" | "action_attempt.unlock_door.succeeded" | "action_attempt.unlock_door.failed" | "action_attempt.simulate_keypad_code_entry.succeeded" | "action_attempt.simulate_keypad_code_entry.failed" | "action_attempt.simulate_manual_lock_via_keypad.succeeded" | "action_attempt.simulate_manual_lock_via_keypad.failed" | "client_session.deleted" | "connect_webview.login_succeeded" | "connect_webview.login_failed" | "connected_account.connected" | "connected_account.created" | "connected_account.successful_login" | "connected_account.disconnected" | "connected_account.completed_first_sync" | "connected_account.deleted" | "connected_account.completed_first_sync_after_reconnection" | "connected_account.reauthorization_requested" | "device.connected" | "device.added" | "device.converted_to_unmanaged" | "device.unmanaged.converted_to_managed" | "device.unmanaged.connected" | "device.disconnected" | "device.unmanaged.disconnected" | "device.tampered" | "device.low_battery" | "device.battery_status_changed" | "device.removed" | "device.deleted" | "device.third_party_integration_detected" | "device.third_party_integration_no_longer_detected" | "device.salto.privacy_mode_activated" | "device.salto.privacy_mode_deactivated" | "device.connection_became_flaky" | "device.connection_stabilized" | "device.error.subscription_required" | "device.error.subscription_required.resolved" | "device.accessory_keypad_connected" | "device.accessory_keypad_disconnected" | "noise_sensor.noise_threshold_triggered" | "lock.locked" | "lock.unlocked" | "lock.access_denied" | "thermostat.climate_preset_activated" | "thermostat.manually_adjusted" | "thermostat.temperature_threshold_exceeded" | "thermostat.temperature_threshold_no_longer_exceeded" | "thermostat.temperature_reached_set_point" | "thermostat.temperature_changed" | "device.name_changed" | "camera.activated" | "device.doorbell_rang" | "enrollment_automation.deleted" | "phone.deactivated" | "space.device_membership_changed" | "space.created" | "space.deleted")[]]>;
|
|
4927
5129
|
export type SeamEventType = SeamEvent['event_type'];
|
|
@@ -15388,6 +15388,319 @@ const openapi = {
|
|
|
15388
15388
|
type: 'object',
|
|
15389
15389
|
'x-route-path': '/access_codes',
|
|
15390
15390
|
},
|
|
15391
|
+
{
|
|
15392
|
+
description: 'The name of an [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes) was changed on the device.',
|
|
15393
|
+
properties: {
|
|
15394
|
+
access_code_id: {
|
|
15395
|
+
description: 'ID of the affected access code.',
|
|
15396
|
+
format: 'uuid',
|
|
15397
|
+
type: 'string',
|
|
15398
|
+
},
|
|
15399
|
+
connected_account_custom_metadata: {
|
|
15400
|
+
additionalProperties: {
|
|
15401
|
+
oneOf: [{ type: 'string' }, { type: 'boolean' }],
|
|
15402
|
+
},
|
|
15403
|
+
description: 'Custom metadata of the connected account, present when connected_account_id is provided.',
|
|
15404
|
+
type: 'object',
|
|
15405
|
+
},
|
|
15406
|
+
connected_account_id: {
|
|
15407
|
+
description: 'ID of the [connected account](https://docs.seam.co/core-concepts/connected-accounts) associated with the affected access code.',
|
|
15408
|
+
format: 'uuid',
|
|
15409
|
+
type: 'string',
|
|
15410
|
+
},
|
|
15411
|
+
created_at: {
|
|
15412
|
+
description: 'Date and time at which the event was created.',
|
|
15413
|
+
format: 'date-time',
|
|
15414
|
+
type: 'string',
|
|
15415
|
+
},
|
|
15416
|
+
description: {
|
|
15417
|
+
description: 'Human-readable description of the change and its source.',
|
|
15418
|
+
type: 'string',
|
|
15419
|
+
},
|
|
15420
|
+
device_custom_metadata: {
|
|
15421
|
+
additionalProperties: {
|
|
15422
|
+
oneOf: [{ type: 'string' }, { type: 'boolean' }],
|
|
15423
|
+
},
|
|
15424
|
+
description: 'Custom metadata of the device, present when device_id is provided.',
|
|
15425
|
+
type: 'object',
|
|
15426
|
+
},
|
|
15427
|
+
device_id: {
|
|
15428
|
+
description: 'ID of the device associated with the affected access code.',
|
|
15429
|
+
format: 'uuid',
|
|
15430
|
+
type: 'string',
|
|
15431
|
+
},
|
|
15432
|
+
event_id: {
|
|
15433
|
+
description: 'ID of the event.',
|
|
15434
|
+
format: 'uuid',
|
|
15435
|
+
type: 'string',
|
|
15436
|
+
},
|
|
15437
|
+
event_type: {
|
|
15438
|
+
enum: ['access_code.name_changed'],
|
|
15439
|
+
type: 'string',
|
|
15440
|
+
},
|
|
15441
|
+
from: {
|
|
15442
|
+
description: 'Previous access code name configuration.',
|
|
15443
|
+
properties: {
|
|
15444
|
+
name: {
|
|
15445
|
+
description: 'Previous name of the access code.',
|
|
15446
|
+
nullable: true,
|
|
15447
|
+
type: 'string',
|
|
15448
|
+
},
|
|
15449
|
+
},
|
|
15450
|
+
required: ['name'],
|
|
15451
|
+
type: 'object',
|
|
15452
|
+
},
|
|
15453
|
+
occurred_at: {
|
|
15454
|
+
description: 'Date and time at which the event occurred.',
|
|
15455
|
+
format: 'date-time',
|
|
15456
|
+
type: 'string',
|
|
15457
|
+
},
|
|
15458
|
+
to: {
|
|
15459
|
+
description: 'New access code name configuration.',
|
|
15460
|
+
properties: {
|
|
15461
|
+
name: {
|
|
15462
|
+
description: 'New name of the access code.',
|
|
15463
|
+
nullable: true,
|
|
15464
|
+
type: 'string',
|
|
15465
|
+
},
|
|
15466
|
+
},
|
|
15467
|
+
required: ['name'],
|
|
15468
|
+
type: 'object',
|
|
15469
|
+
},
|
|
15470
|
+
workspace_id: {
|
|
15471
|
+
description: 'ID of the [workspace](https://docs.seam.co/core-concepts/workspaces) associated with the event.',
|
|
15472
|
+
format: 'uuid',
|
|
15473
|
+
type: 'string',
|
|
15474
|
+
},
|
|
15475
|
+
},
|
|
15476
|
+
required: [
|
|
15477
|
+
'event_id',
|
|
15478
|
+
'workspace_id',
|
|
15479
|
+
'created_at',
|
|
15480
|
+
'occurred_at',
|
|
15481
|
+
'access_code_id',
|
|
15482
|
+
'device_id',
|
|
15483
|
+
'connected_account_id',
|
|
15484
|
+
'event_type',
|
|
15485
|
+
'from',
|
|
15486
|
+
'to',
|
|
15487
|
+
'description',
|
|
15488
|
+
],
|
|
15489
|
+
type: 'object',
|
|
15490
|
+
'x-route-path': '/access_codes',
|
|
15491
|
+
},
|
|
15492
|
+
{
|
|
15493
|
+
description: 'The pin code of an [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes) was changed on the device.',
|
|
15494
|
+
properties: {
|
|
15495
|
+
access_code_id: {
|
|
15496
|
+
description: 'ID of the affected access code.',
|
|
15497
|
+
format: 'uuid',
|
|
15498
|
+
type: 'string',
|
|
15499
|
+
},
|
|
15500
|
+
connected_account_custom_metadata: {
|
|
15501
|
+
additionalProperties: {
|
|
15502
|
+
oneOf: [{ type: 'string' }, { type: 'boolean' }],
|
|
15503
|
+
},
|
|
15504
|
+
description: 'Custom metadata of the connected account, present when connected_account_id is provided.',
|
|
15505
|
+
type: 'object',
|
|
15506
|
+
},
|
|
15507
|
+
connected_account_id: {
|
|
15508
|
+
description: 'ID of the [connected account](https://docs.seam.co/core-concepts/connected-accounts) associated with the affected access code.',
|
|
15509
|
+
format: 'uuid',
|
|
15510
|
+
type: 'string',
|
|
15511
|
+
},
|
|
15512
|
+
created_at: {
|
|
15513
|
+
description: 'Date and time at which the event was created.',
|
|
15514
|
+
format: 'date-time',
|
|
15515
|
+
type: 'string',
|
|
15516
|
+
},
|
|
15517
|
+
description: {
|
|
15518
|
+
description: 'Human-readable description of the change and its source.',
|
|
15519
|
+
type: 'string',
|
|
15520
|
+
},
|
|
15521
|
+
device_custom_metadata: {
|
|
15522
|
+
additionalProperties: {
|
|
15523
|
+
oneOf: [{ type: 'string' }, { type: 'boolean' }],
|
|
15524
|
+
},
|
|
15525
|
+
description: 'Custom metadata of the device, present when device_id is provided.',
|
|
15526
|
+
type: 'object',
|
|
15527
|
+
},
|
|
15528
|
+
device_id: {
|
|
15529
|
+
description: 'ID of the device associated with the affected access code.',
|
|
15530
|
+
format: 'uuid',
|
|
15531
|
+
type: 'string',
|
|
15532
|
+
},
|
|
15533
|
+
event_id: {
|
|
15534
|
+
description: 'ID of the event.',
|
|
15535
|
+
format: 'uuid',
|
|
15536
|
+
type: 'string',
|
|
15537
|
+
},
|
|
15538
|
+
event_type: {
|
|
15539
|
+
enum: ['access_code.code_changed'],
|
|
15540
|
+
type: 'string',
|
|
15541
|
+
},
|
|
15542
|
+
from: {
|
|
15543
|
+
description: 'Previous pin code configuration.',
|
|
15544
|
+
properties: {
|
|
15545
|
+
code: {
|
|
15546
|
+
description: 'Previous pin code.',
|
|
15547
|
+
nullable: true,
|
|
15548
|
+
type: 'string',
|
|
15549
|
+
},
|
|
15550
|
+
},
|
|
15551
|
+
required: ['code'],
|
|
15552
|
+
type: 'object',
|
|
15553
|
+
},
|
|
15554
|
+
occurred_at: {
|
|
15555
|
+
description: 'Date and time at which the event occurred.',
|
|
15556
|
+
format: 'date-time',
|
|
15557
|
+
type: 'string',
|
|
15558
|
+
},
|
|
15559
|
+
to: {
|
|
15560
|
+
description: 'New pin code configuration.',
|
|
15561
|
+
properties: {
|
|
15562
|
+
code: {
|
|
15563
|
+
description: 'New pin code.',
|
|
15564
|
+
nullable: true,
|
|
15565
|
+
type: 'string',
|
|
15566
|
+
},
|
|
15567
|
+
},
|
|
15568
|
+
required: ['code'],
|
|
15569
|
+
type: 'object',
|
|
15570
|
+
},
|
|
15571
|
+
workspace_id: {
|
|
15572
|
+
description: 'ID of the [workspace](https://docs.seam.co/core-concepts/workspaces) associated with the event.',
|
|
15573
|
+
format: 'uuid',
|
|
15574
|
+
type: 'string',
|
|
15575
|
+
},
|
|
15576
|
+
},
|
|
15577
|
+
required: [
|
|
15578
|
+
'event_id',
|
|
15579
|
+
'workspace_id',
|
|
15580
|
+
'created_at',
|
|
15581
|
+
'occurred_at',
|
|
15582
|
+
'access_code_id',
|
|
15583
|
+
'device_id',
|
|
15584
|
+
'connected_account_id',
|
|
15585
|
+
'event_type',
|
|
15586
|
+
'from',
|
|
15587
|
+
'to',
|
|
15588
|
+
'description',
|
|
15589
|
+
],
|
|
15590
|
+
type: 'object',
|
|
15591
|
+
'x-route-path': '/access_codes',
|
|
15592
|
+
},
|
|
15593
|
+
{
|
|
15594
|
+
description: 'The time frame of an [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes) was changed on the device.',
|
|
15595
|
+
properties: {
|
|
15596
|
+
access_code_id: {
|
|
15597
|
+
description: 'ID of the affected access code.',
|
|
15598
|
+
format: 'uuid',
|
|
15599
|
+
type: 'string',
|
|
15600
|
+
},
|
|
15601
|
+
connected_account_custom_metadata: {
|
|
15602
|
+
additionalProperties: {
|
|
15603
|
+
oneOf: [{ type: 'string' }, { type: 'boolean' }],
|
|
15604
|
+
},
|
|
15605
|
+
description: 'Custom metadata of the connected account, present when connected_account_id is provided.',
|
|
15606
|
+
type: 'object',
|
|
15607
|
+
},
|
|
15608
|
+
connected_account_id: {
|
|
15609
|
+
description: 'ID of the [connected account](https://docs.seam.co/core-concepts/connected-accounts) associated with the affected access code.',
|
|
15610
|
+
format: 'uuid',
|
|
15611
|
+
type: 'string',
|
|
15612
|
+
},
|
|
15613
|
+
created_at: {
|
|
15614
|
+
description: 'Date and time at which the event was created.',
|
|
15615
|
+
format: 'date-time',
|
|
15616
|
+
type: 'string',
|
|
15617
|
+
},
|
|
15618
|
+
description: {
|
|
15619
|
+
description: 'Human-readable description of the change and its source.',
|
|
15620
|
+
type: 'string',
|
|
15621
|
+
},
|
|
15622
|
+
device_custom_metadata: {
|
|
15623
|
+
additionalProperties: {
|
|
15624
|
+
oneOf: [{ type: 'string' }, { type: 'boolean' }],
|
|
15625
|
+
},
|
|
15626
|
+
description: 'Custom metadata of the device, present when device_id is provided.',
|
|
15627
|
+
type: 'object',
|
|
15628
|
+
},
|
|
15629
|
+
device_id: {
|
|
15630
|
+
description: 'ID of the device associated with the affected access code.',
|
|
15631
|
+
format: 'uuid',
|
|
15632
|
+
type: 'string',
|
|
15633
|
+
},
|
|
15634
|
+
event_id: {
|
|
15635
|
+
description: 'ID of the event.',
|
|
15636
|
+
format: 'uuid',
|
|
15637
|
+
type: 'string',
|
|
15638
|
+
},
|
|
15639
|
+
event_type: {
|
|
15640
|
+
enum: ['access_code.time_frame_changed'],
|
|
15641
|
+
type: 'string',
|
|
15642
|
+
},
|
|
15643
|
+
from: {
|
|
15644
|
+
description: 'Previous time frame configuration.',
|
|
15645
|
+
properties: {
|
|
15646
|
+
ends_at: {
|
|
15647
|
+
description: 'Previous end time.',
|
|
15648
|
+
nullable: true,
|
|
15649
|
+
type: 'string',
|
|
15650
|
+
},
|
|
15651
|
+
starts_at: {
|
|
15652
|
+
description: 'Previous start time.',
|
|
15653
|
+
nullable: true,
|
|
15654
|
+
type: 'string',
|
|
15655
|
+
},
|
|
15656
|
+
},
|
|
15657
|
+
required: ['starts_at', 'ends_at'],
|
|
15658
|
+
type: 'object',
|
|
15659
|
+
},
|
|
15660
|
+
occurred_at: {
|
|
15661
|
+
description: 'Date and time at which the event occurred.',
|
|
15662
|
+
format: 'date-time',
|
|
15663
|
+
type: 'string',
|
|
15664
|
+
},
|
|
15665
|
+
to: {
|
|
15666
|
+
description: 'New time frame configuration.',
|
|
15667
|
+
properties: {
|
|
15668
|
+
ends_at: {
|
|
15669
|
+
description: 'New end time.',
|
|
15670
|
+
nullable: true,
|
|
15671
|
+
type: 'string',
|
|
15672
|
+
},
|
|
15673
|
+
starts_at: {
|
|
15674
|
+
description: 'New start time.',
|
|
15675
|
+
nullable: true,
|
|
15676
|
+
type: 'string',
|
|
15677
|
+
},
|
|
15678
|
+
},
|
|
15679
|
+
required: ['starts_at', 'ends_at'],
|
|
15680
|
+
type: 'object',
|
|
15681
|
+
},
|
|
15682
|
+
workspace_id: {
|
|
15683
|
+
description: 'ID of the [workspace](https://docs.seam.co/core-concepts/workspaces) associated with the event.',
|
|
15684
|
+
format: 'uuid',
|
|
15685
|
+
type: 'string',
|
|
15686
|
+
},
|
|
15687
|
+
},
|
|
15688
|
+
required: [
|
|
15689
|
+
'event_id',
|
|
15690
|
+
'workspace_id',
|
|
15691
|
+
'created_at',
|
|
15692
|
+
'occurred_at',
|
|
15693
|
+
'access_code_id',
|
|
15694
|
+
'device_id',
|
|
15695
|
+
'connected_account_id',
|
|
15696
|
+
'event_type',
|
|
15697
|
+
'from',
|
|
15698
|
+
'to',
|
|
15699
|
+
'description',
|
|
15700
|
+
],
|
|
15701
|
+
type: 'object',
|
|
15702
|
+
'x-route-path': '/access_codes',
|
|
15703
|
+
},
|
|
15391
15704
|
{
|
|
15392
15705
|
description: 'An [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes) was [scheduled natively](https://docs.seam.co/low-level-apis/smart-locks/access-codes#native-scheduling) on a device.',
|
|
15393
15706
|
properties: {
|
|
@@ -54511,6 +54824,9 @@ const openapi = {
|
|
|
54511
54824
|
enum: [
|
|
54512
54825
|
'access_code.created',
|
|
54513
54826
|
'access_code.changed',
|
|
54827
|
+
'access_code.name_changed',
|
|
54828
|
+
'access_code.code_changed',
|
|
54829
|
+
'access_code.time_frame_changed',
|
|
54514
54830
|
'access_code.scheduled_on_device',
|
|
54515
54831
|
'access_code.set_on_device',
|
|
54516
54832
|
'access_code.removed_from_device',
|
|
@@ -54625,6 +54941,9 @@ const openapi = {
|
|
|
54625
54941
|
enum: [
|
|
54626
54942
|
'access_code.created',
|
|
54627
54943
|
'access_code.changed',
|
|
54944
|
+
'access_code.name_changed',
|
|
54945
|
+
'access_code.code_changed',
|
|
54946
|
+
'access_code.time_frame_changed',
|
|
54628
54947
|
'access_code.scheduled_on_device',
|
|
54629
54948
|
'access_code.set_on_device',
|
|
54630
54949
|
'access_code.removed_from_device',
|
|
@@ -55039,6 +55358,9 @@ const openapi = {
|
|
|
55039
55358
|
enum: [
|
|
55040
55359
|
'access_code.created',
|
|
55041
55360
|
'access_code.changed',
|
|
55361
|
+
'access_code.name_changed',
|
|
55362
|
+
'access_code.code_changed',
|
|
55363
|
+
'access_code.time_frame_changed',
|
|
55042
55364
|
'access_code.scheduled_on_device',
|
|
55043
55365
|
'access_code.set_on_device',
|
|
55044
55366
|
'access_code.removed_from_device',
|
|
@@ -55149,6 +55471,9 @@ const openapi = {
|
|
|
55149
55471
|
enum: [
|
|
55150
55472
|
'access_code.created',
|
|
55151
55473
|
'access_code.changed',
|
|
55474
|
+
'access_code.name_changed',
|
|
55475
|
+
'access_code.code_changed',
|
|
55476
|
+
'access_code.time_frame_changed',
|
|
55152
55477
|
'access_code.scheduled_on_device',
|
|
55153
55478
|
'access_code.set_on_device',
|
|
55154
55479
|
'access_code.removed_from_device',
|
|
@@ -65100,6 +65425,9 @@ const openapi = {
|
|
|
65100
65425
|
enum: [
|
|
65101
65426
|
'access_code.created',
|
|
65102
65427
|
'access_code.changed',
|
|
65428
|
+
'access_code.name_changed',
|
|
65429
|
+
'access_code.code_changed',
|
|
65430
|
+
'access_code.time_frame_changed',
|
|
65103
65431
|
'access_code.scheduled_on_device',
|
|
65104
65432
|
'access_code.set_on_device',
|
|
65105
65433
|
'access_code.removed_from_device',
|
|
@@ -65215,6 +65543,9 @@ const openapi = {
|
|
|
65215
65543
|
enum: [
|
|
65216
65544
|
'access_code.created',
|
|
65217
65545
|
'access_code.changed',
|
|
65546
|
+
'access_code.name_changed',
|
|
65547
|
+
'access_code.code_changed',
|
|
65548
|
+
'access_code.time_frame_changed',
|
|
65218
65549
|
'access_code.scheduled_on_device',
|
|
65219
65550
|
'access_code.set_on_device',
|
|
65220
65551
|
'access_code.removed_from_device',
|
|
@@ -65391,6 +65722,9 @@ const openapi = {
|
|
|
65391
65722
|
enum: [
|
|
65392
65723
|
'access_code.created',
|
|
65393
65724
|
'access_code.changed',
|
|
65725
|
+
'access_code.name_changed',
|
|
65726
|
+
'access_code.code_changed',
|
|
65727
|
+
'access_code.time_frame_changed',
|
|
65394
65728
|
'access_code.scheduled_on_device',
|
|
65395
65729
|
'access_code.set_on_device',
|
|
65396
65730
|
'access_code.removed_from_device',
|
|
@@ -65501,6 +65835,9 @@ const openapi = {
|
|
|
65501
65835
|
enum: [
|
|
65502
65836
|
'access_code.created',
|
|
65503
65837
|
'access_code.changed',
|
|
65838
|
+
'access_code.name_changed',
|
|
65839
|
+
'access_code.code_changed',
|
|
65840
|
+
'access_code.time_frame_changed',
|
|
65504
65841
|
'access_code.scheduled_on_device',
|
|
65505
65842
|
'access_code.set_on_device',
|
|
65506
65843
|
'access_code.removed_from_device',
|