@seamapi/types 1.913.0 → 1.914.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.
@@ -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,313 @@ 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
+ properties: {
15443
+ name: {
15444
+ description: 'Previous name of the access code.',
15445
+ nullable: true,
15446
+ type: 'string',
15447
+ },
15448
+ },
15449
+ required: ['name'],
15450
+ type: 'object',
15451
+ },
15452
+ occurred_at: {
15453
+ description: 'Date and time at which the event occurred.',
15454
+ format: 'date-time',
15455
+ type: 'string',
15456
+ },
15457
+ to: {
15458
+ properties: {
15459
+ name: {
15460
+ description: 'New name of the access code.',
15461
+ nullable: true,
15462
+ type: 'string',
15463
+ },
15464
+ },
15465
+ required: ['name'],
15466
+ type: 'object',
15467
+ },
15468
+ workspace_id: {
15469
+ description: 'ID of the [workspace](https://docs.seam.co/core-concepts/workspaces) associated with the event.',
15470
+ format: 'uuid',
15471
+ type: 'string',
15472
+ },
15473
+ },
15474
+ required: [
15475
+ 'event_id',
15476
+ 'workspace_id',
15477
+ 'created_at',
15478
+ 'occurred_at',
15479
+ 'access_code_id',
15480
+ 'device_id',
15481
+ 'connected_account_id',
15482
+ 'event_type',
15483
+ 'from',
15484
+ 'to',
15485
+ 'description',
15486
+ ],
15487
+ type: 'object',
15488
+ 'x-route-path': '/access_codes',
15489
+ },
15490
+ {
15491
+ description: 'The pin code of an [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes) was changed on the device.',
15492
+ properties: {
15493
+ access_code_id: {
15494
+ description: 'ID of the affected access code.',
15495
+ format: 'uuid',
15496
+ type: 'string',
15497
+ },
15498
+ connected_account_custom_metadata: {
15499
+ additionalProperties: {
15500
+ oneOf: [{ type: 'string' }, { type: 'boolean' }],
15501
+ },
15502
+ description: 'Custom metadata of the connected account, present when connected_account_id is provided.',
15503
+ type: 'object',
15504
+ },
15505
+ connected_account_id: {
15506
+ description: 'ID of the [connected account](https://docs.seam.co/core-concepts/connected-accounts) associated with the affected access code.',
15507
+ format: 'uuid',
15508
+ type: 'string',
15509
+ },
15510
+ created_at: {
15511
+ description: 'Date and time at which the event was created.',
15512
+ format: 'date-time',
15513
+ type: 'string',
15514
+ },
15515
+ description: {
15516
+ description: 'Human-readable description of the change and its source.',
15517
+ type: 'string',
15518
+ },
15519
+ device_custom_metadata: {
15520
+ additionalProperties: {
15521
+ oneOf: [{ type: 'string' }, { type: 'boolean' }],
15522
+ },
15523
+ description: 'Custom metadata of the device, present when device_id is provided.',
15524
+ type: 'object',
15525
+ },
15526
+ device_id: {
15527
+ description: 'ID of the device associated with the affected access code.',
15528
+ format: 'uuid',
15529
+ type: 'string',
15530
+ },
15531
+ event_id: {
15532
+ description: 'ID of the event.',
15533
+ format: 'uuid',
15534
+ type: 'string',
15535
+ },
15536
+ event_type: {
15537
+ enum: ['access_code.code_changed'],
15538
+ type: 'string',
15539
+ },
15540
+ from: {
15541
+ properties: {
15542
+ code: {
15543
+ description: 'Previous pin code.',
15544
+ nullable: true,
15545
+ type: 'string',
15546
+ },
15547
+ },
15548
+ required: ['code'],
15549
+ type: 'object',
15550
+ },
15551
+ occurred_at: {
15552
+ description: 'Date and time at which the event occurred.',
15553
+ format: 'date-time',
15554
+ type: 'string',
15555
+ },
15556
+ to: {
15557
+ properties: {
15558
+ code: {
15559
+ description: 'New pin code.',
15560
+ nullable: true,
15561
+ type: 'string',
15562
+ },
15563
+ },
15564
+ required: ['code'],
15565
+ type: 'object',
15566
+ },
15567
+ workspace_id: {
15568
+ description: 'ID of the [workspace](https://docs.seam.co/core-concepts/workspaces) associated with the event.',
15569
+ format: 'uuid',
15570
+ type: 'string',
15571
+ },
15572
+ },
15573
+ required: [
15574
+ 'event_id',
15575
+ 'workspace_id',
15576
+ 'created_at',
15577
+ 'occurred_at',
15578
+ 'access_code_id',
15579
+ 'device_id',
15580
+ 'connected_account_id',
15581
+ 'event_type',
15582
+ 'from',
15583
+ 'to',
15584
+ 'description',
15585
+ ],
15586
+ type: 'object',
15587
+ 'x-route-path': '/access_codes',
15588
+ },
15589
+ {
15590
+ description: 'The time frame of an [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes) was changed on the device.',
15591
+ properties: {
15592
+ access_code_id: {
15593
+ description: 'ID of the affected access code.',
15594
+ format: 'uuid',
15595
+ type: 'string',
15596
+ },
15597
+ connected_account_custom_metadata: {
15598
+ additionalProperties: {
15599
+ oneOf: [{ type: 'string' }, { type: 'boolean' }],
15600
+ },
15601
+ description: 'Custom metadata of the connected account, present when connected_account_id is provided.',
15602
+ type: 'object',
15603
+ },
15604
+ connected_account_id: {
15605
+ description: 'ID of the [connected account](https://docs.seam.co/core-concepts/connected-accounts) associated with the affected access code.',
15606
+ format: 'uuid',
15607
+ type: 'string',
15608
+ },
15609
+ created_at: {
15610
+ description: 'Date and time at which the event was created.',
15611
+ format: 'date-time',
15612
+ type: 'string',
15613
+ },
15614
+ description: {
15615
+ description: 'Human-readable description of the change and its source.',
15616
+ type: 'string',
15617
+ },
15618
+ device_custom_metadata: {
15619
+ additionalProperties: {
15620
+ oneOf: [{ type: 'string' }, { type: 'boolean' }],
15621
+ },
15622
+ description: 'Custom metadata of the device, present when device_id is provided.',
15623
+ type: 'object',
15624
+ },
15625
+ device_id: {
15626
+ description: 'ID of the device associated with the affected access code.',
15627
+ format: 'uuid',
15628
+ type: 'string',
15629
+ },
15630
+ event_id: {
15631
+ description: 'ID of the event.',
15632
+ format: 'uuid',
15633
+ type: 'string',
15634
+ },
15635
+ event_type: {
15636
+ enum: ['access_code.time_frame_changed'],
15637
+ type: 'string',
15638
+ },
15639
+ from: {
15640
+ properties: {
15641
+ ends_at: {
15642
+ description: 'Previous end time.',
15643
+ nullable: true,
15644
+ type: 'string',
15645
+ },
15646
+ starts_at: {
15647
+ description: 'Previous start time.',
15648
+ nullable: true,
15649
+ type: 'string',
15650
+ },
15651
+ },
15652
+ required: ['starts_at', 'ends_at'],
15653
+ type: 'object',
15654
+ },
15655
+ occurred_at: {
15656
+ description: 'Date and time at which the event occurred.',
15657
+ format: 'date-time',
15658
+ type: 'string',
15659
+ },
15660
+ to: {
15661
+ properties: {
15662
+ ends_at: {
15663
+ description: 'New end time.',
15664
+ nullable: true,
15665
+ type: 'string',
15666
+ },
15667
+ starts_at: {
15668
+ description: 'New start time.',
15669
+ nullable: true,
15670
+ type: 'string',
15671
+ },
15672
+ },
15673
+ required: ['starts_at', 'ends_at'],
15674
+ type: 'object',
15675
+ },
15676
+ workspace_id: {
15677
+ description: 'ID of the [workspace](https://docs.seam.co/core-concepts/workspaces) associated with the event.',
15678
+ format: 'uuid',
15679
+ type: 'string',
15680
+ },
15681
+ },
15682
+ required: [
15683
+ 'event_id',
15684
+ 'workspace_id',
15685
+ 'created_at',
15686
+ 'occurred_at',
15687
+ 'access_code_id',
15688
+ 'device_id',
15689
+ 'connected_account_id',
15690
+ 'event_type',
15691
+ 'from',
15692
+ 'to',
15693
+ 'description',
15694
+ ],
15695
+ type: 'object',
15696
+ 'x-route-path': '/access_codes',
15697
+ },
15391
15698
  {
15392
15699
  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
15700
  properties: {
@@ -54511,6 +54818,9 @@ const openapi = {
54511
54818
  enum: [
54512
54819
  'access_code.created',
54513
54820
  'access_code.changed',
54821
+ 'access_code.name_changed',
54822
+ 'access_code.code_changed',
54823
+ 'access_code.time_frame_changed',
54514
54824
  'access_code.scheduled_on_device',
54515
54825
  'access_code.set_on_device',
54516
54826
  'access_code.removed_from_device',
@@ -54625,6 +54935,9 @@ const openapi = {
54625
54935
  enum: [
54626
54936
  'access_code.created',
54627
54937
  'access_code.changed',
54938
+ 'access_code.name_changed',
54939
+ 'access_code.code_changed',
54940
+ 'access_code.time_frame_changed',
54628
54941
  'access_code.scheduled_on_device',
54629
54942
  'access_code.set_on_device',
54630
54943
  'access_code.removed_from_device',
@@ -55039,6 +55352,9 @@ const openapi = {
55039
55352
  enum: [
55040
55353
  'access_code.created',
55041
55354
  'access_code.changed',
55355
+ 'access_code.name_changed',
55356
+ 'access_code.code_changed',
55357
+ 'access_code.time_frame_changed',
55042
55358
  'access_code.scheduled_on_device',
55043
55359
  'access_code.set_on_device',
55044
55360
  'access_code.removed_from_device',
@@ -55149,6 +55465,9 @@ const openapi = {
55149
55465
  enum: [
55150
55466
  'access_code.created',
55151
55467
  'access_code.changed',
55468
+ 'access_code.name_changed',
55469
+ 'access_code.code_changed',
55470
+ 'access_code.time_frame_changed',
55152
55471
  'access_code.scheduled_on_device',
55153
55472
  'access_code.set_on_device',
55154
55473
  'access_code.removed_from_device',
@@ -65100,6 +65419,9 @@ const openapi = {
65100
65419
  enum: [
65101
65420
  'access_code.created',
65102
65421
  'access_code.changed',
65422
+ 'access_code.name_changed',
65423
+ 'access_code.code_changed',
65424
+ 'access_code.time_frame_changed',
65103
65425
  'access_code.scheduled_on_device',
65104
65426
  'access_code.set_on_device',
65105
65427
  'access_code.removed_from_device',
@@ -65215,6 +65537,9 @@ const openapi = {
65215
65537
  enum: [
65216
65538
  'access_code.created',
65217
65539
  'access_code.changed',
65540
+ 'access_code.name_changed',
65541
+ 'access_code.code_changed',
65542
+ 'access_code.time_frame_changed',
65218
65543
  'access_code.scheduled_on_device',
65219
65544
  'access_code.set_on_device',
65220
65545
  'access_code.removed_from_device',
@@ -65391,6 +65716,9 @@ const openapi = {
65391
65716
  enum: [
65392
65717
  'access_code.created',
65393
65718
  'access_code.changed',
65719
+ 'access_code.name_changed',
65720
+ 'access_code.code_changed',
65721
+ 'access_code.time_frame_changed',
65394
65722
  'access_code.scheduled_on_device',
65395
65723
  'access_code.set_on_device',
65396
65724
  'access_code.removed_from_device',
@@ -65501,6 +65829,9 @@ const openapi = {
65501
65829
  enum: [
65502
65830
  'access_code.created',
65503
65831
  'access_code.changed',
65832
+ 'access_code.name_changed',
65833
+ 'access_code.code_changed',
65834
+ 'access_code.time_frame_changed',
65504
65835
  'access_code.scheduled_on_device',
65505
65836
  'access_code.set_on_device',
65506
65837
  'access_code.removed_from_device',