@seamapi/types 1.166.0 → 1.167.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.
@@ -3816,10 +3816,26 @@ declare const _default: {
3816
3816
  };
3817
3817
  event: {
3818
3818
  properties: {
3819
+ acs_credential_id: {
3820
+ format: string;
3821
+ type: string;
3822
+ };
3823
+ acs_system_id: {
3824
+ format: string;
3825
+ type: string;
3826
+ };
3827
+ acs_user_id: {
3828
+ format: string;
3829
+ type: string;
3830
+ };
3819
3831
  action_attempt_id: {
3820
3832
  format: string;
3821
3833
  type: string;
3822
3834
  };
3835
+ client_session_id: {
3836
+ format: string;
3837
+ type: string;
3838
+ };
3823
3839
  created_at: {
3824
3840
  format: string;
3825
3841
  type: string;
@@ -3828,6 +3844,10 @@ declare const _default: {
3828
3844
  format: string;
3829
3845
  type: string;
3830
3846
  };
3847
+ enrollment_automation_id: {
3848
+ format: string;
3849
+ type: string;
3850
+ };
3831
3851
  event_id: {
3832
3852
  format: string;
3833
3853
  type: string;
@@ -20399,6 +20419,11 @@ interface Routes {
20399
20419
  event_id: string;
20400
20420
  device_id?: string | undefined;
20401
20421
  action_attempt_id?: string | undefined;
20422
+ acs_credential_id?: string | undefined;
20423
+ acs_user_id?: string | undefined;
20424
+ acs_system_id?: string | undefined;
20425
+ client_session_id?: string | undefined;
20426
+ enrollment_automation_id?: string | undefined;
20402
20427
  event_type: string;
20403
20428
  workspace_id: string;
20404
20429
  created_at: string;
@@ -20419,8 +20444,8 @@ interface Routes {
20419
20444
  device_ids?: string[] | undefined;
20420
20445
  access_code_id?: string | undefined;
20421
20446
  access_code_ids?: string[] | undefined;
20422
- event_type?: ('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' | 'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | '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' | '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' | 'noise_sensor.noise_threshold_triggered' | 'access_code.backup_access_code_pulled' | 'acs_user.deleted' | 'acs_credential.deleted' | 'enrollment_automation.deleted' | 'client_session.deleted') | undefined;
20423
- event_types?: Array<'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' | 'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | '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' | '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' | 'noise_sensor.noise_threshold_triggered' | 'access_code.backup_access_code_pulled' | 'acs_user.deleted' | 'acs_credential.deleted' | 'enrollment_automation.deleted' | 'client_session.deleted'> | undefined;
20447
+ event_type?: ('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' | 'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | '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' | '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' | 'noise_sensor.noise_threshold_triggered' | 'access_code.backup_access_code_pulled' | 'acs_user.deleted' | 'acs_credential.deleted' | 'enrollment_automation.deleted' | 'client_session.deleted' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed') | undefined;
20448
+ event_types?: Array<'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' | 'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | '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' | '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' | 'noise_sensor.noise_threshold_triggered' | 'access_code.backup_access_code_pulled' | 'acs_user.deleted' | 'acs_credential.deleted' | 'enrollment_automation.deleted' | 'client_session.deleted' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed'> | undefined;
20424
20449
  connected_account_id?: string | undefined;
20425
20450
  limit?: number;
20426
20451
  };
@@ -20430,6 +20455,11 @@ interface Routes {
20430
20455
  event_id: string;
20431
20456
  device_id?: string | undefined;
20432
20457
  action_attempt_id?: string | undefined;
20458
+ acs_credential_id?: string | undefined;
20459
+ acs_user_id?: string | undefined;
20460
+ acs_system_id?: string | undefined;
20461
+ client_session_id?: string | undefined;
20462
+ enrollment_automation_id?: string | undefined;
20433
20463
  event_type: string;
20434
20464
  workspace_id: string;
20435
20465
  created_at: string;
@@ -0,0 +1,51 @@
1
+ import { z } from 'zod';
2
+ export declare const action_attempt_lock_door_succeeded_event: z.ZodObject<{
3
+ status: z.ZodString;
4
+ created_at: z.ZodString;
5
+ workspace_id: z.ZodString;
6
+ occurred_at: z.ZodString;
7
+ action_attempt_id: z.ZodString;
8
+ action_type: z.ZodString;
9
+ event_type: z.ZodLiteral<"action_attempt.lock_door.succeeded">;
10
+ }, "strip", z.ZodTypeAny, {
11
+ status: string;
12
+ created_at: string;
13
+ workspace_id: string;
14
+ occurred_at: string;
15
+ event_type: "action_attempt.lock_door.succeeded";
16
+ action_attempt_id: string;
17
+ action_type: string;
18
+ }, {
19
+ status: string;
20
+ created_at: string;
21
+ workspace_id: string;
22
+ occurred_at: string;
23
+ event_type: "action_attempt.lock_door.succeeded";
24
+ action_attempt_id: string;
25
+ action_type: string;
26
+ }>;
27
+ export declare const action_attempt_lock_door_failed_event: z.ZodObject<{
28
+ status: z.ZodString;
29
+ created_at: z.ZodString;
30
+ workspace_id: z.ZodString;
31
+ occurred_at: z.ZodString;
32
+ action_attempt_id: z.ZodString;
33
+ action_type: z.ZodString;
34
+ event_type: z.ZodLiteral<"action_attempt.lock_door.failed">;
35
+ }, "strip", z.ZodTypeAny, {
36
+ status: string;
37
+ created_at: string;
38
+ workspace_id: string;
39
+ occurred_at: string;
40
+ event_type: "action_attempt.lock_door.failed";
41
+ action_attempt_id: string;
42
+ action_type: string;
43
+ }, {
44
+ status: string;
45
+ created_at: string;
46
+ workspace_id: string;
47
+ occurred_at: string;
48
+ event_type: "action_attempt.lock_door.failed";
49
+ action_attempt_id: string;
50
+ action_type: string;
51
+ }>;
@@ -0,0 +1,33 @@
1
+ import { z } from 'zod';
2
+ import { common_event } from './common.js';
3
+ const action_attempt_event = common_event.extend({
4
+ action_attempt_id: z.string().uuid().describe(`
5
+ ---
6
+ title: Action Attempt ID
7
+ ---
8
+ The ID of the action attempt.
9
+ `),
10
+ action_type: z.string().describe(`
11
+ ---
12
+ title: Action Type
13
+ ---
14
+ The type of action.
15
+ `),
16
+ status: z.string().describe(`
17
+ ---
18
+ title: Status
19
+ ---
20
+ The status of the action.
21
+ `),
22
+ });
23
+ export const action_attempt_lock_door_succeeded_event = action_attempt_event
24
+ .extend({
25
+ event_type: z.literal('action_attempt.lock_door.succeeded'),
26
+ })
27
+ .describe('A lock door action attempt succeeded.');
28
+ export const action_attempt_lock_door_failed_event = action_attempt_event
29
+ .extend({
30
+ event_type: z.literal('action_attempt.lock_door.failed'),
31
+ })
32
+ .describe('A lock door action attempt failed.');
33
+ //# sourceMappingURL=action-attempts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action-attempts.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/events/action-attempts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE1C,MAAM,oBAAoB,GAAG,YAAY,CAAC,MAAM,CAAC;IAC/C,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC;;;;;GAK7C,CAAC;IACF,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC;;;;;GAKhC,CAAC;IACF,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC;;;;;GAK3B,CAAC;CACH,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,wCAAwC,GAAG,oBAAoB;KACzE,MAAM,CAAC;IACN,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,oCAAoC,CAAC;CAC5D,CAAC;KACD,QAAQ,CAAC,uCAAuC,CAAC,CAAA;AAEpD,MAAM,CAAC,MAAM,qCAAqC,GAAG,oBAAoB;KACtE,MAAM,CAAC;IACN,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,iCAAiC,CAAC;CACzD,CAAC;KACD,QAAQ,CAAC,oCAAoC,CAAC,CAAA"}
@@ -1,5 +1,6 @@
1
1
  export type * from './access-codes.js';
2
2
  export type * from './acs/index.js';
3
+ export type * from './action-attempts.js';
3
4
  export type * from './client-sessions.js';
4
5
  export type * from './connected-accounts.js';
5
6
  export type * from './devices.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/events/index.ts"],"names":[],"mappings":"AAOA,cAAc,iBAAiB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/events/index.ts"],"names":[],"mappings":"AAQA,cAAc,iBAAiB,CAAA"}
@@ -2536,10 +2536,26 @@ declare const _default: {
2536
2536
  };
2537
2537
  event: {
2538
2538
  properties: {
2539
+ acs_credential_id: {
2540
+ format: string;
2541
+ type: string;
2542
+ };
2543
+ acs_system_id: {
2544
+ format: string;
2545
+ type: string;
2546
+ };
2547
+ acs_user_id: {
2548
+ format: string;
2549
+ type: string;
2550
+ };
2539
2551
  action_attempt_id: {
2540
2552
  format: string;
2541
2553
  type: string;
2542
2554
  };
2555
+ client_session_id: {
2556
+ format: string;
2557
+ type: string;
2558
+ };
2543
2559
  created_at: {
2544
2560
  format: string;
2545
2561
  type: string;
@@ -2548,6 +2564,10 @@ declare const _default: {
2548
2564
  format: string;
2549
2565
  type: string;
2550
2566
  };
2567
+ enrollment_automation_id: {
2568
+ format: string;
2569
+ type: string;
2570
+ };
2551
2571
  event_id: {
2552
2572
  format: string;
2553
2573
  type: string;
@@ -2041,9 +2041,14 @@ export default {
2041
2041
  },
2042
2042
  event: {
2043
2043
  properties: {
2044
+ acs_credential_id: { format: 'uuid', type: 'string' },
2045
+ acs_system_id: { format: 'uuid', type: 'string' },
2046
+ acs_user_id: { format: 'uuid', type: 'string' },
2044
2047
  action_attempt_id: { format: 'uuid', type: 'string' },
2048
+ client_session_id: { format: 'uuid', type: 'string' },
2045
2049
  created_at: { format: 'date-time', type: 'string' },
2046
2050
  device_id: { format: 'uuid', type: 'string' },
2051
+ enrollment_automation_id: { format: 'uuid', type: 'string' },
2047
2052
  event_id: { format: 'uuid', type: 'string' },
2048
2053
  event_type: { type: 'string' },
2049
2054
  occurred_at: { format: 'date-time', type: 'string' },
@@ -7842,6 +7847,8 @@ export default {
7842
7847
  'acs_credential.deleted',
7843
7848
  'enrollment_automation.deleted',
7844
7849
  'client_session.deleted',
7850
+ 'action_attempt.lock_door.succeeded',
7851
+ 'action_attempt.lock_door.failed',
7845
7852
  ],
7846
7853
  type: 'string',
7847
7854
  },
@@ -7901,6 +7908,8 @@ export default {
7901
7908
  'acs_credential.deleted',
7902
7909
  'enrollment_automation.deleted',
7903
7910
  'client_session.deleted',
7911
+ 'action_attempt.lock_door.succeeded',
7912
+ 'action_attempt.lock_door.failed',
7904
7913
  ],
7905
7914
  type: 'string',
7906
7915
  },