@seamapi/types 1.303.1 → 1.304.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.
@@ -10863,6 +10863,32 @@ declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObject<z.o
10863
10863
  }, {
10864
10864
  connected_account_id: z.ZodOptional<z.ZodString>;
10865
10865
  acs_system_id: z.ZodString;
10866
+ }>, {}>, {
10867
+ event_type: z.ZodLiteral<"acs_system.disconnected">;
10868
+ }>, "strip", z.ZodTypeAny, {
10869
+ created_at: string;
10870
+ workspace_id: string;
10871
+ acs_system_id: string;
10872
+ event_id: string;
10873
+ occurred_at: string;
10874
+ event_type: "acs_system.disconnected";
10875
+ connected_account_id?: string | undefined;
10876
+ }, {
10877
+ created_at: string;
10878
+ workspace_id: string;
10879
+ acs_system_id: string;
10880
+ event_id: string;
10881
+ occurred_at: string;
10882
+ event_type: "acs_system.disconnected";
10883
+ connected_account_id?: string | undefined;
10884
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
10885
+ event_id: z.ZodString;
10886
+ workspace_id: z.ZodString;
10887
+ created_at: z.ZodString;
10888
+ occurred_at: z.ZodString;
10889
+ }, {
10890
+ connected_account_id: z.ZodOptional<z.ZodString>;
10891
+ acs_system_id: z.ZodString;
10866
10892
  }>, {
10867
10893
  acs_credential_id: z.ZodString;
10868
10894
  }>, {
@@ -45399,8 +45425,8 @@ interface Routes {
45399
45425
  acs_system_ids?: string[] | undefined;
45400
45426
  access_code_id?: string | undefined;
45401
45427
  access_code_ids?: string[] | undefined;
45402
- event_type?: ('device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'device.added' | 'device.connected' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.removed' | 'device.deleted' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | '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' | 'access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.deleted' | 'access_code.removed_from_device' | 'access_code.failed_to_set_on_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_remove_from_device' | 'access_code.delay_in_removing_from_device' | 'access_code.deleted_external_to_seam' | 'access_code.modified_external_to_seam' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'phone.deactivated' | 'connected_account.connected' | 'connected_account.successful_login' | 'connected_account.created' | 'connected_account.deleted' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.completed_first_sync_after_reconnection' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'noise_sensor.noise_threshold_triggered' | 'access_code.backup_access_code_pulled' | 'acs_system.added' | 'acs_system.connected' | 'acs_user.deleted' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_encoder.added' | 'acs_encoder.removed' | 'enrollment_automation.deleted' | 'client_session.deleted' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded') | undefined;
45403
- event_types?: Array<'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'device.added' | 'device.connected' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.removed' | 'device.deleted' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | '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' | 'access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.deleted' | 'access_code.removed_from_device' | 'access_code.failed_to_set_on_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_remove_from_device' | 'access_code.delay_in_removing_from_device' | 'access_code.deleted_external_to_seam' | 'access_code.modified_external_to_seam' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'phone.deactivated' | 'connected_account.connected' | 'connected_account.successful_login' | 'connected_account.created' | 'connected_account.deleted' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.completed_first_sync_after_reconnection' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'noise_sensor.noise_threshold_triggered' | 'access_code.backup_access_code_pulled' | 'acs_system.added' | 'acs_system.connected' | 'acs_user.deleted' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_encoder.added' | 'acs_encoder.removed' | 'enrollment_automation.deleted' | 'client_session.deleted' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded'> | undefined;
45428
+ event_type?: ('device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'device.added' | 'device.connected' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.removed' | 'device.deleted' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | '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' | 'access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.deleted' | 'access_code.removed_from_device' | 'access_code.failed_to_set_on_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_remove_from_device' | 'access_code.delay_in_removing_from_device' | 'access_code.deleted_external_to_seam' | 'access_code.modified_external_to_seam' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'phone.deactivated' | 'connected_account.connected' | 'connected_account.successful_login' | 'connected_account.created' | 'connected_account.deleted' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.completed_first_sync_after_reconnection' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'noise_sensor.noise_threshold_triggered' | 'access_code.backup_access_code_pulled' | 'acs_system.added' | 'acs_system.connected' | 'acs_system.disconnected' | 'acs_user.deleted' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_encoder.added' | 'acs_encoder.removed' | 'enrollment_automation.deleted' | 'client_session.deleted' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded') | undefined;
45429
+ event_types?: Array<'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'device.added' | 'device.connected' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.removed' | 'device.deleted' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | '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' | 'access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.deleted' | 'access_code.removed_from_device' | 'access_code.failed_to_set_on_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_remove_from_device' | 'access_code.delay_in_removing_from_device' | 'access_code.deleted_external_to_seam' | 'access_code.modified_external_to_seam' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'phone.deactivated' | 'connected_account.connected' | 'connected_account.successful_login' | 'connected_account.created' | 'connected_account.deleted' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.completed_first_sync_after_reconnection' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'noise_sensor.noise_threshold_triggered' | 'access_code.backup_access_code_pulled' | 'acs_system.added' | 'acs_system.connected' | 'acs_system.disconnected' | 'acs_user.deleted' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_encoder.added' | 'acs_encoder.removed' | 'enrollment_automation.deleted' | 'client_session.deleted' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded'> | undefined;
45404
45430
  connected_account_id?: string | undefined;
45405
45431
  connect_webview_id?: string | undefined;
45406
45432
  limit?: number;
@@ -58,6 +58,32 @@ export declare const acs_events: readonly [import("zod").ZodObject<import("zod")
58
58
  }, {
59
59
  connected_account_id: import("zod").ZodOptional<import("zod").ZodString>;
60
60
  acs_system_id: import("zod").ZodString;
61
+ }>, {}>, {
62
+ event_type: import("zod").ZodLiteral<"acs_system.disconnected">;
63
+ }>, "strip", import("zod").ZodTypeAny, {
64
+ created_at: string;
65
+ workspace_id: string;
66
+ acs_system_id: string;
67
+ event_id: string;
68
+ occurred_at: string;
69
+ event_type: "acs_system.disconnected";
70
+ connected_account_id?: string | undefined;
71
+ }, {
72
+ created_at: string;
73
+ workspace_id: string;
74
+ acs_system_id: string;
75
+ event_id: string;
76
+ occurred_at: string;
77
+ event_type: "acs_system.disconnected";
78
+ connected_account_id?: string | undefined;
79
+ }>, import("zod").ZodObject<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<{
80
+ event_id: import("zod").ZodString;
81
+ workspace_id: import("zod").ZodString;
82
+ created_at: import("zod").ZodString;
83
+ occurred_at: import("zod").ZodString;
84
+ }, {
85
+ connected_account_id: import("zod").ZodOptional<import("zod").ZodString>;
86
+ acs_system_id: import("zod").ZodString;
61
87
  }>, {
62
88
  acs_credential_id: import("zod").ZodString;
63
89
  }>, {
@@ -27,6 +27,34 @@ export declare const acs_system_connected_event: z.ZodObject<z.objectUtil.extend
27
27
  connected_account_id?: string | undefined;
28
28
  }>;
29
29
  export type AcsSystemConnectedEvent = z.infer<typeof acs_system_connected_event>;
30
+ export declare const acs_system_disconnected_event: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
31
+ event_id: z.ZodString;
32
+ workspace_id: z.ZodString;
33
+ created_at: z.ZodString;
34
+ occurred_at: z.ZodString;
35
+ }, {
36
+ connected_account_id: z.ZodOptional<z.ZodString>;
37
+ acs_system_id: z.ZodString;
38
+ }>, {}>, {
39
+ event_type: z.ZodLiteral<"acs_system.disconnected">;
40
+ }>, "strip", z.ZodTypeAny, {
41
+ created_at: string;
42
+ workspace_id: string;
43
+ acs_system_id: string;
44
+ event_id: string;
45
+ occurred_at: string;
46
+ event_type: "acs_system.disconnected";
47
+ connected_account_id?: string | undefined;
48
+ }, {
49
+ created_at: string;
50
+ workspace_id: string;
51
+ acs_system_id: string;
52
+ event_id: string;
53
+ occurred_at: string;
54
+ event_type: "acs_system.disconnected";
55
+ connected_account_id?: string | undefined;
56
+ }>;
57
+ export type AcsSystemDisconnectedEvent = z.infer<typeof acs_system_disconnected_event>;
30
58
  export declare const acs_system_added_event: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
31
59
  event_id: z.ZodString;
32
60
  workspace_id: z.ZodString;
@@ -107,4 +135,30 @@ export declare const acs_system_events: readonly [z.ZodObject<z.objectUtil.exten
107
135
  occurred_at: string;
108
136
  event_type: "acs_system.added";
109
137
  connected_account_id?: string | undefined;
138
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
139
+ event_id: z.ZodString;
140
+ workspace_id: z.ZodString;
141
+ created_at: z.ZodString;
142
+ occurred_at: z.ZodString;
143
+ }, {
144
+ connected_account_id: z.ZodOptional<z.ZodString>;
145
+ acs_system_id: z.ZodString;
146
+ }>, {}>, {
147
+ event_type: z.ZodLiteral<"acs_system.disconnected">;
148
+ }>, "strip", z.ZodTypeAny, {
149
+ created_at: string;
150
+ workspace_id: string;
151
+ acs_system_id: string;
152
+ event_id: string;
153
+ occurred_at: string;
154
+ event_type: "acs_system.disconnected";
155
+ connected_account_id?: string | undefined;
156
+ }, {
157
+ created_at: string;
158
+ workspace_id: string;
159
+ acs_system_id: string;
160
+ event_id: string;
161
+ occurred_at: string;
162
+ event_type: "acs_system.disconnected";
163
+ connected_account_id?: string | undefined;
110
164
  }>];
@@ -6,6 +6,11 @@ export const acs_system_connected_event = acs_system_event
6
6
  event_type: z.literal('acs_system.connected'),
7
7
  })
8
8
  .describe('An ACS system was connected.');
9
+ export const acs_system_disconnected_event = acs_system_event
10
+ .extend({
11
+ event_type: z.literal('acs_system.disconnected'),
12
+ })
13
+ .describe('An ACS system was disconnected.');
9
14
  export const acs_system_added_event = acs_system_event
10
15
  .extend({
11
16
  event_type: z.literal('acs_system.added'),
@@ -14,5 +19,6 @@ export const acs_system_added_event = acs_system_event
14
19
  export const acs_system_events = [
15
20
  acs_system_connected_event,
16
21
  acs_system_added_event,
22
+ acs_system_disconnected_event,
17
23
  ];
18
24
  //# sourceMappingURL=systems.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"systems.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/models/events/acs/systems.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAE9C,MAAM,gBAAgB,GAAG,gBAAgB,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;AAEpD,MAAM,CAAC,MAAM,0BAA0B,GAAG,gBAAgB;KACvD,MAAM,CAAC;IACN,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,sBAAsB,CAAC;CAC9C,CAAC;KACD,QAAQ,CAAC,8BAA8B,CAAC,CAAA;AAI3C,MAAM,CAAC,MAAM,sBAAsB,GAAG,gBAAgB;KACnD,MAAM,CAAC;IACN,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;CAC1C,CAAC;KACD,QAAQ,CAAC,0BAA0B,CAAC,CAAA;AAIvC,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,0BAA0B;IAC1B,sBAAsB;CACd,CAAA"}
1
+ {"version":3,"file":"systems.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/models/events/acs/systems.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAE9C,MAAM,gBAAgB,GAAG,gBAAgB,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;AAEpD,MAAM,CAAC,MAAM,0BAA0B,GAAG,gBAAgB;KACvD,MAAM,CAAC;IACN,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,sBAAsB,CAAC;CAC9C,CAAC;KACD,QAAQ,CAAC,8BAA8B,CAAC,CAAA;AAI3C,MAAM,CAAC,MAAM,6BAA6B,GAAG,gBAAgB;KAC1D,MAAM,CAAC;IACN,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,yBAAyB,CAAC;CACjD,CAAC;KACD,QAAQ,CAAC,iCAAiC,CAAC,CAAA;AAM9C,MAAM,CAAC,MAAM,sBAAsB,GAAG,gBAAgB;KACnD,MAAM,CAAC;IACN,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;CAC1C,CAAC;KACD,QAAQ,CAAC,0BAA0B,CAAC,CAAA;AAIvC,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,0BAA0B;IAC1B,sBAAsB;IACtB,6BAA6B;CACrB,CAAA"}
@@ -564,6 +564,32 @@ export declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObj
564
564
  }, {
565
565
  connected_account_id: z.ZodOptional<z.ZodString>;
566
566
  acs_system_id: z.ZodString;
567
+ }>, {}>, {
568
+ event_type: z.ZodLiteral<"acs_system.disconnected">;
569
+ }>, "strip", z.ZodTypeAny, {
570
+ created_at: string;
571
+ workspace_id: string;
572
+ acs_system_id: string;
573
+ event_id: string;
574
+ occurred_at: string;
575
+ event_type: "acs_system.disconnected";
576
+ connected_account_id?: string | undefined;
577
+ }, {
578
+ created_at: string;
579
+ workspace_id: string;
580
+ acs_system_id: string;
581
+ event_id: string;
582
+ occurred_at: string;
583
+ event_type: "acs_system.disconnected";
584
+ connected_account_id?: string | undefined;
585
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
586
+ event_id: z.ZodString;
587
+ workspace_id: z.ZodString;
588
+ created_at: z.ZodString;
589
+ occurred_at: z.ZodString;
590
+ }, {
591
+ connected_account_id: z.ZodOptional<z.ZodString>;
592
+ acs_system_id: z.ZodString;
567
593
  }>, {
568
594
  acs_credential_id: z.ZodString;
569
595
  }>, {
@@ -14426,6 +14426,7 @@ export default {
14426
14426
  'access_code.backup_access_code_pulled',
14427
14427
  'acs_system.added',
14428
14428
  'acs_system.connected',
14429
+ 'acs_system.disconnected',
14429
14430
  'acs_user.deleted',
14430
14431
  'acs_credential.deleted',
14431
14432
  'acs_credential.issued',
@@ -14502,6 +14503,7 @@ export default {
14502
14503
  'access_code.backup_access_code_pulled',
14503
14504
  'acs_system.added',
14504
14505
  'acs_system.connected',
14506
+ 'acs_system.disconnected',
14505
14507
  'acs_user.deleted',
14506
14508
  'acs_credential.deleted',
14507
14509
  'acs_credential.issued',