@seamapi/types 1.381.0 → 1.382.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 +62 -1
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +62 -2
- package/lib/seam/connect/models/events/acs/index.d.ts +30 -0
- package/lib/seam/connect/models/events/acs/users.d.ts +62 -0
- package/lib/seam/connect/models/events/acs/users.js +12 -1
- package/lib/seam/connect/models/events/acs/users.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +31 -1
- package/lib/seam/connect/openapi.js +50 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +32 -2
- package/package.json +1 -1
- package/src/lib/seam/connect/models/events/acs/users.ts +15 -1
- package/src/lib/seam/connect/openapi.ts +54 -0
- package/src/lib/seam/connect/route-types.ts +34 -0
package/dist/connect.d.cts
CHANGED
|
@@ -18018,6 +18018,36 @@ declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObject<z.o
|
|
|
18018
18018
|
acs_system_id: z.ZodString;
|
|
18019
18019
|
}>, {
|
|
18020
18020
|
acs_user_id: z.ZodString;
|
|
18021
|
+
}>, {
|
|
18022
|
+
event_type: z.ZodLiteral<"acs_user.created">;
|
|
18023
|
+
}>, "strip", z.ZodTypeAny, {
|
|
18024
|
+
created_at: string;
|
|
18025
|
+
workspace_id: string;
|
|
18026
|
+
acs_system_id: string;
|
|
18027
|
+
acs_user_id: string;
|
|
18028
|
+
event_id: string;
|
|
18029
|
+
occurred_at: string;
|
|
18030
|
+
event_type: "acs_user.created";
|
|
18031
|
+
connected_account_id?: string | undefined;
|
|
18032
|
+
}, {
|
|
18033
|
+
created_at: string;
|
|
18034
|
+
workspace_id: string;
|
|
18035
|
+
acs_system_id: string;
|
|
18036
|
+
acs_user_id: string;
|
|
18037
|
+
event_id: string;
|
|
18038
|
+
occurred_at: string;
|
|
18039
|
+
event_type: "acs_user.created";
|
|
18040
|
+
connected_account_id?: string | undefined;
|
|
18041
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
18042
|
+
event_id: z.ZodString;
|
|
18043
|
+
workspace_id: z.ZodString;
|
|
18044
|
+
created_at: z.ZodString;
|
|
18045
|
+
occurred_at: z.ZodString;
|
|
18046
|
+
}, {
|
|
18047
|
+
connected_account_id: z.ZodOptional<z.ZodString>;
|
|
18048
|
+
acs_system_id: z.ZodString;
|
|
18049
|
+
}>, {
|
|
18050
|
+
acs_user_id: z.ZodString;
|
|
18021
18051
|
}>, {
|
|
18022
18052
|
event_type: z.ZodLiteral<"acs_user.deleted">;
|
|
18023
18053
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -67136,6 +67166,21 @@ interface Routes {
|
|
|
67136
67166
|
acs_system_id: string;
|
|
67137
67167
|
acs_credential_id: string;
|
|
67138
67168
|
event_type: 'acs_credential.invalidated';
|
|
67169
|
+
} | {
|
|
67170
|
+
/** ID of the event. */
|
|
67171
|
+
event_id: string;
|
|
67172
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces). */
|
|
67173
|
+
workspace_id: string;
|
|
67174
|
+
/** Date and time at which the event was created. */
|
|
67175
|
+
created_at: string;
|
|
67176
|
+
/** Date and time at which the event occurred. */
|
|
67177
|
+
occurred_at: string;
|
|
67178
|
+
/** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts). */
|
|
67179
|
+
connected_account_id?: string | undefined;
|
|
67180
|
+
/** ID of the [ACS system](https://docs.seam.co/latest/capability-guides/access-systems). */
|
|
67181
|
+
acs_system_id: string;
|
|
67182
|
+
acs_user_id: string;
|
|
67183
|
+
event_type: 'acs_user.created';
|
|
67139
67184
|
} | {
|
|
67140
67185
|
/** ID of the event. */
|
|
67141
67186
|
event_id: string;
|
|
@@ -68019,8 +68064,8 @@ interface Routes {
|
|
|
68019
68064
|
acs_system_ids?: string[] | undefined;
|
|
68020
68065
|
access_code_id?: string | undefined;
|
|
68021
68066
|
access_code_ids?: string[] | undefined;
|
|
68022
|
-
event_type?: ('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' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_credential.invalidated' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'acs_entrance.added' | 'acs_entrance.removed' | 'client_session.deleted' | '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' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | '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' | 'enrollment_automation.deleted' | 'phone.deactivated') | undefined;
|
|
68023
|
-
event_types?: Array<'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' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_credential.invalidated' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'acs_entrance.added' | 'acs_entrance.removed' | 'client_session.deleted' | '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' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | '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' | 'enrollment_automation.deleted' | 'phone.deactivated'> | undefined;
|
|
68067
|
+
event_type?: ('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' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_credential.invalidated' | 'acs_user.created' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'acs_entrance.added' | 'acs_entrance.removed' | 'client_session.deleted' | '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' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | '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' | 'enrollment_automation.deleted' | 'phone.deactivated') | undefined;
|
|
68068
|
+
event_types?: Array<'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' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_credential.invalidated' | 'acs_user.created' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'acs_entrance.added' | 'acs_entrance.removed' | 'client_session.deleted' | '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' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | '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' | 'enrollment_automation.deleted' | 'phone.deactivated'> | undefined;
|
|
68024
68069
|
connected_account_id?: string | undefined;
|
|
68025
68070
|
connect_webview_id?: string | undefined;
|
|
68026
68071
|
limit?: number;
|
|
@@ -68409,6 +68454,21 @@ interface Routes {
|
|
|
68409
68454
|
acs_system_id: string;
|
|
68410
68455
|
acs_credential_id: string;
|
|
68411
68456
|
event_type: 'acs_credential.invalidated';
|
|
68457
|
+
} | {
|
|
68458
|
+
/** ID of the event. */
|
|
68459
|
+
event_id: string;
|
|
68460
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces). */
|
|
68461
|
+
workspace_id: string;
|
|
68462
|
+
/** Date and time at which the event was created. */
|
|
68463
|
+
created_at: string;
|
|
68464
|
+
/** Date and time at which the event occurred. */
|
|
68465
|
+
occurred_at: string;
|
|
68466
|
+
/** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts). */
|
|
68467
|
+
connected_account_id?: string | undefined;
|
|
68468
|
+
/** ID of the [ACS system](https://docs.seam.co/latest/capability-guides/access-systems). */
|
|
68469
|
+
acs_system_id: string;
|
|
68470
|
+
acs_user_id: string;
|
|
68471
|
+
event_type: 'acs_user.created';
|
|
68412
68472
|
} | {
|
|
68413
68473
|
/** ID of the event. */
|
|
68414
68474
|
event_id: string;
|
|
@@ -206,6 +206,36 @@ export declare const acs_events: readonly [import("zod").ZodObject<import("zod")
|
|
|
206
206
|
acs_system_id: import("zod").ZodString;
|
|
207
207
|
}>, {
|
|
208
208
|
acs_user_id: import("zod").ZodString;
|
|
209
|
+
}>, {
|
|
210
|
+
event_type: import("zod").ZodLiteral<"acs_user.created">;
|
|
211
|
+
}>, "strip", import("zod").ZodTypeAny, {
|
|
212
|
+
created_at: string;
|
|
213
|
+
workspace_id: string;
|
|
214
|
+
acs_system_id: string;
|
|
215
|
+
acs_user_id: string;
|
|
216
|
+
event_id: string;
|
|
217
|
+
occurred_at: string;
|
|
218
|
+
event_type: "acs_user.created";
|
|
219
|
+
connected_account_id?: string | undefined;
|
|
220
|
+
}, {
|
|
221
|
+
created_at: string;
|
|
222
|
+
workspace_id: string;
|
|
223
|
+
acs_system_id: string;
|
|
224
|
+
acs_user_id: string;
|
|
225
|
+
event_id: string;
|
|
226
|
+
occurred_at: string;
|
|
227
|
+
event_type: "acs_user.created";
|
|
228
|
+
connected_account_id?: string | undefined;
|
|
229
|
+
}>, import("zod").ZodObject<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<{
|
|
230
|
+
event_id: import("zod").ZodString;
|
|
231
|
+
workspace_id: import("zod").ZodString;
|
|
232
|
+
created_at: import("zod").ZodString;
|
|
233
|
+
occurred_at: import("zod").ZodString;
|
|
234
|
+
}, {
|
|
235
|
+
connected_account_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
236
|
+
acs_system_id: import("zod").ZodString;
|
|
237
|
+
}>, {
|
|
238
|
+
acs_user_id: import("zod").ZodString;
|
|
209
239
|
}>, {
|
|
210
240
|
event_type: import("zod").ZodLiteral<"acs_user.deleted">;
|
|
211
241
|
}>, "strip", import("zod").ZodTypeAny, {
|
|
@@ -31,6 +31,38 @@ export declare const acs_user_deleted_event: z.ZodObject<z.objectUtil.extendShap
|
|
|
31
31
|
connected_account_id?: string | undefined;
|
|
32
32
|
}>;
|
|
33
33
|
export type AcsUserDeletedEvent = z.infer<typeof acs_user_deleted_event>;
|
|
34
|
+
export declare const acs_user_created_event: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
35
|
+
event_id: z.ZodString;
|
|
36
|
+
workspace_id: z.ZodString;
|
|
37
|
+
created_at: z.ZodString;
|
|
38
|
+
occurred_at: z.ZodString;
|
|
39
|
+
}, {
|
|
40
|
+
connected_account_id: z.ZodOptional<z.ZodString>;
|
|
41
|
+
acs_system_id: z.ZodString;
|
|
42
|
+
}>, {
|
|
43
|
+
acs_user_id: z.ZodString;
|
|
44
|
+
}>, {
|
|
45
|
+
event_type: z.ZodLiteral<"acs_user.created">;
|
|
46
|
+
}>, "strip", z.ZodTypeAny, {
|
|
47
|
+
created_at: string;
|
|
48
|
+
workspace_id: string;
|
|
49
|
+
acs_system_id: string;
|
|
50
|
+
acs_user_id: string;
|
|
51
|
+
event_id: string;
|
|
52
|
+
occurred_at: string;
|
|
53
|
+
event_type: "acs_user.created";
|
|
54
|
+
connected_account_id?: string | undefined;
|
|
55
|
+
}, {
|
|
56
|
+
created_at: string;
|
|
57
|
+
workspace_id: string;
|
|
58
|
+
acs_system_id: string;
|
|
59
|
+
acs_user_id: string;
|
|
60
|
+
event_id: string;
|
|
61
|
+
occurred_at: string;
|
|
62
|
+
event_type: "acs_user.created";
|
|
63
|
+
connected_account_id?: string | undefined;
|
|
64
|
+
}>;
|
|
65
|
+
export type AcsUserCreatedEvent = z.infer<typeof acs_user_created_event>;
|
|
34
66
|
export declare const acs_user_events: readonly [z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
35
67
|
event_id: z.ZodString;
|
|
36
68
|
workspace_id: z.ZodString;
|
|
@@ -41,6 +73,36 @@ export declare const acs_user_events: readonly [z.ZodObject<z.objectUtil.extendS
|
|
|
41
73
|
acs_system_id: z.ZodString;
|
|
42
74
|
}>, {
|
|
43
75
|
acs_user_id: z.ZodString;
|
|
76
|
+
}>, {
|
|
77
|
+
event_type: z.ZodLiteral<"acs_user.created">;
|
|
78
|
+
}>, "strip", z.ZodTypeAny, {
|
|
79
|
+
created_at: string;
|
|
80
|
+
workspace_id: string;
|
|
81
|
+
acs_system_id: string;
|
|
82
|
+
acs_user_id: string;
|
|
83
|
+
event_id: string;
|
|
84
|
+
occurred_at: string;
|
|
85
|
+
event_type: "acs_user.created";
|
|
86
|
+
connected_account_id?: string | undefined;
|
|
87
|
+
}, {
|
|
88
|
+
created_at: string;
|
|
89
|
+
workspace_id: string;
|
|
90
|
+
acs_system_id: string;
|
|
91
|
+
acs_user_id: string;
|
|
92
|
+
event_id: string;
|
|
93
|
+
occurred_at: string;
|
|
94
|
+
event_type: "acs_user.created";
|
|
95
|
+
connected_account_id?: string | undefined;
|
|
96
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
97
|
+
event_id: z.ZodString;
|
|
98
|
+
workspace_id: z.ZodString;
|
|
99
|
+
created_at: z.ZodString;
|
|
100
|
+
occurred_at: z.ZodString;
|
|
101
|
+
}, {
|
|
102
|
+
connected_account_id: z.ZodOptional<z.ZodString>;
|
|
103
|
+
acs_system_id: z.ZodString;
|
|
104
|
+
}>, {
|
|
105
|
+
acs_user_id: z.ZodString;
|
|
44
106
|
}>, {
|
|
45
107
|
event_type: z.ZodLiteral<"acs_user.deleted">;
|
|
46
108
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -13,5 +13,16 @@ export const acs_user_deleted_event = acs_user_event.extend({
|
|
|
13
13
|
---
|
|
14
14
|
An [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) was deleted.
|
|
15
15
|
`);
|
|
16
|
-
export const
|
|
16
|
+
export const acs_user_created_event = acs_user_event.extend({
|
|
17
|
+
event_type: z.literal('acs_user.created'),
|
|
18
|
+
}).describe(`
|
|
19
|
+
---
|
|
20
|
+
route_path: /acs/users
|
|
21
|
+
---
|
|
22
|
+
An [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) was created.
|
|
23
|
+
`);
|
|
24
|
+
export const acs_user_events = [
|
|
25
|
+
acs_user_created_event,
|
|
26
|
+
acs_user_deleted_event,
|
|
27
|
+
];
|
|
17
28
|
//# sourceMappingURL=users.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/models/events/acs/users.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAE9C,MAAM,cAAc,GAAG,gBAAgB;KACpC,MAAM,CAAC;IACN,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;CAC/B,CAAC;KACD,QAAQ,CACP,qGAAqG,CACtG,CAAA;AAEH,MAAM,CAAC,MAAM,sBAAsB,GAAG,cAAc,CAAC,MAAM,CAAC;IAC1D,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;CAC1C,CAAC,CAAC,QAAQ,CAAC;;;;;GAKT,CAAC,CAAA;AAIJ,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"users.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/models/events/acs/users.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAE9C,MAAM,cAAc,GAAG,gBAAgB;KACpC,MAAM,CAAC;IACN,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;CAC/B,CAAC;KACD,QAAQ,CACP,qGAAqG,CACtG,CAAA;AAEH,MAAM,CAAC,MAAM,sBAAsB,GAAG,cAAc,CAAC,MAAM,CAAC;IAC1D,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;CAC1C,CAAC,CAAC,QAAQ,CAAC;;;;;GAKT,CAAC,CAAA;AAIJ,MAAM,CAAC,MAAM,sBAAsB,GAAG,cAAc,CAAC,MAAM,CAAC;IAC1D,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;CAC1C,CAAC,CAAC,QAAQ,CAAC;;;;;GAKT,CAAC,CAAA;AAIJ,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,sBAAsB;IACtB,sBAAsB;CACd,CAAA"}
|
|
@@ -712,6 +712,36 @@ export declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObj
|
|
|
712
712
|
acs_system_id: z.ZodString;
|
|
713
713
|
}>, {
|
|
714
714
|
acs_user_id: z.ZodString;
|
|
715
|
+
}>, {
|
|
716
|
+
event_type: z.ZodLiteral<"acs_user.created">;
|
|
717
|
+
}>, "strip", z.ZodTypeAny, {
|
|
718
|
+
created_at: string;
|
|
719
|
+
workspace_id: string;
|
|
720
|
+
acs_system_id: string;
|
|
721
|
+
acs_user_id: string;
|
|
722
|
+
event_id: string;
|
|
723
|
+
occurred_at: string;
|
|
724
|
+
event_type: "acs_user.created";
|
|
725
|
+
connected_account_id?: string | undefined;
|
|
726
|
+
}, {
|
|
727
|
+
created_at: string;
|
|
728
|
+
workspace_id: string;
|
|
729
|
+
acs_system_id: string;
|
|
730
|
+
acs_user_id: string;
|
|
731
|
+
event_id: string;
|
|
732
|
+
occurred_at: string;
|
|
733
|
+
event_type: "acs_user.created";
|
|
734
|
+
connected_account_id?: string | undefined;
|
|
735
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
736
|
+
event_id: z.ZodString;
|
|
737
|
+
workspace_id: z.ZodString;
|
|
738
|
+
created_at: z.ZodString;
|
|
739
|
+
occurred_at: z.ZodString;
|
|
740
|
+
}, {
|
|
741
|
+
connected_account_id: z.ZodOptional<z.ZodString>;
|
|
742
|
+
acs_system_id: z.ZodString;
|
|
743
|
+
}>, {
|
|
744
|
+
acs_user_id: z.ZodString;
|
|
715
745
|
}>, {
|
|
716
746
|
event_type: z.ZodLiteral<"acs_user.deleted">;
|
|
717
747
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -2294,5 +2324,5 @@ export declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObj
|
|
|
2294
2324
|
event_type: "phone.deactivated";
|
|
2295
2325
|
}>]>;
|
|
2296
2326
|
export type SeamEvent = z.infer<typeof seam_event>;
|
|
2297
|
-
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" | "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" | "action_attempt.lock_door.succeeded" | "action_attempt.lock_door.failed" | "action_attempt.unlock_door.succeeded" | "action_attempt.unlock_door.failed" | "client_session.deleted" | "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" | "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" | "enrollment_automation.deleted" | "phone.deactivated" | "connect_webview.login_succeeded" | "connect_webview.login_failed", ...("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" | "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" | "action_attempt.lock_door.succeeded" | "action_attempt.lock_door.failed" | "action_attempt.unlock_door.succeeded" | "action_attempt.unlock_door.failed" | "client_session.deleted" | "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" | "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" | "enrollment_automation.deleted" | "phone.deactivated" | "connect_webview.login_succeeded" | "connect_webview.login_failed")[]]>;
|
|
2327
|
+
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" | "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" | "client_session.deleted" | "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" | "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" | "enrollment_automation.deleted" | "phone.deactivated" | "connect_webview.login_succeeded" | "connect_webview.login_failed", ...("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" | "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" | "client_session.deleted" | "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" | "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" | "enrollment_automation.deleted" | "phone.deactivated" | "connect_webview.login_succeeded" | "connect_webview.login_failed")[]]>;
|
|
2298
2328
|
export type SeamEventType = SeamEvent['event_type'];
|
|
@@ -9513,6 +9513,54 @@ export default {
|
|
|
9513
9513
|
type: 'object',
|
|
9514
9514
|
'x-route-path': '/acs/credentials',
|
|
9515
9515
|
},
|
|
9516
|
+
{
|
|
9517
|
+
description: 'An [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) was created.',
|
|
9518
|
+
properties: {
|
|
9519
|
+
acs_system_id: {
|
|
9520
|
+
description: 'ID of the [ACS system](https://docs.seam.co/latest/capability-guides/access-systems).',
|
|
9521
|
+
format: 'uuid',
|
|
9522
|
+
type: 'string',
|
|
9523
|
+
},
|
|
9524
|
+
acs_user_id: { format: 'uuid', type: 'string' },
|
|
9525
|
+
connected_account_id: {
|
|
9526
|
+
description: 'ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts).',
|
|
9527
|
+
format: 'uuid',
|
|
9528
|
+
type: 'string',
|
|
9529
|
+
},
|
|
9530
|
+
created_at: {
|
|
9531
|
+
description: 'Date and time at which the event was created.',
|
|
9532
|
+
format: 'date-time',
|
|
9533
|
+
type: 'string',
|
|
9534
|
+
},
|
|
9535
|
+
event_id: {
|
|
9536
|
+
description: 'ID of the event.',
|
|
9537
|
+
format: 'uuid',
|
|
9538
|
+
type: 'string',
|
|
9539
|
+
},
|
|
9540
|
+
event_type: { enum: ['acs_user.created'], type: 'string' },
|
|
9541
|
+
occurred_at: {
|
|
9542
|
+
description: 'Date and time at which the event occurred.',
|
|
9543
|
+
format: 'date-time',
|
|
9544
|
+
type: 'string',
|
|
9545
|
+
},
|
|
9546
|
+
workspace_id: {
|
|
9547
|
+
description: 'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces).',
|
|
9548
|
+
format: 'uuid',
|
|
9549
|
+
type: 'string',
|
|
9550
|
+
},
|
|
9551
|
+
},
|
|
9552
|
+
required: [
|
|
9553
|
+
'event_id',
|
|
9554
|
+
'workspace_id',
|
|
9555
|
+
'created_at',
|
|
9556
|
+
'occurred_at',
|
|
9557
|
+
'acs_system_id',
|
|
9558
|
+
'acs_user_id',
|
|
9559
|
+
'event_type',
|
|
9560
|
+
],
|
|
9561
|
+
type: 'object',
|
|
9562
|
+
'x-route-path': '/acs/users',
|
|
9563
|
+
},
|
|
9516
9564
|
{
|
|
9517
9565
|
description: 'An [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) was deleted.',
|
|
9518
9566
|
properties: {
|
|
@@ -23712,6 +23760,7 @@ export default {
|
|
|
23712
23760
|
'acs_credential.issued',
|
|
23713
23761
|
'acs_credential.reissued',
|
|
23714
23762
|
'acs_credential.invalidated',
|
|
23763
|
+
'acs_user.created',
|
|
23715
23764
|
'acs_user.deleted',
|
|
23716
23765
|
'acs_encoder.added',
|
|
23717
23766
|
'acs_encoder.removed',
|
|
@@ -23797,6 +23846,7 @@ export default {
|
|
|
23797
23846
|
'acs_credential.issued',
|
|
23798
23847
|
'acs_credential.reissued',
|
|
23799
23848
|
'acs_credential.invalidated',
|
|
23849
|
+
'acs_user.created',
|
|
23800
23850
|
'acs_user.deleted',
|
|
23801
23851
|
'acs_encoder.added',
|
|
23802
23852
|
'acs_encoder.removed',
|