@seamapi/types 1.166.0 → 1.168.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;
@@ -7554,6 +7574,10 @@ declare const _default: {
7554
7574
  pattern: string;
7555
7575
  type: string;
7556
7576
  };
7577
+ ends_at: {
7578
+ format: string;
7579
+ type: string;
7580
+ };
7557
7581
  };
7558
7582
  required: string[];
7559
7583
  type: string;
@@ -7619,6 +7643,10 @@ declare const _default: {
7619
7643
  pattern: string;
7620
7644
  type: string;
7621
7645
  };
7646
+ ends_at: {
7647
+ format: string;
7648
+ type: string;
7649
+ };
7622
7650
  };
7623
7651
  required: string[];
7624
7652
  type: string;
@@ -18061,7 +18089,8 @@ interface Routes {
18061
18089
  queryParams: {};
18062
18090
  jsonBody: {
18063
18091
  acs_credential_id: string;
18064
- code: string;
18092
+ code?: string | undefined;
18093
+ ends_at?: string | undefined;
18065
18094
  };
18066
18095
  commonParams: {};
18067
18096
  formData: {};
@@ -20399,6 +20428,11 @@ interface Routes {
20399
20428
  event_id: string;
20400
20429
  device_id?: string | undefined;
20401
20430
  action_attempt_id?: string | undefined;
20431
+ acs_credential_id?: string | undefined;
20432
+ acs_user_id?: string | undefined;
20433
+ acs_system_id?: string | undefined;
20434
+ client_session_id?: string | undefined;
20435
+ enrollment_automation_id?: string | undefined;
20402
20436
  event_type: string;
20403
20437
  workspace_id: string;
20404
20438
  created_at: string;
@@ -20419,8 +20453,8 @@ interface Routes {
20419
20453
  device_ids?: string[] | undefined;
20420
20454
  access_code_id?: string | undefined;
20421
20455
  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;
20456
+ 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;
20457
+ 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
20458
  connected_account_id?: string | undefined;
20425
20459
  limit?: number;
20426
20460
  };
@@ -20430,6 +20464,11 @@ interface Routes {
20430
20464
  event_id: string;
20431
20465
  device_id?: string | undefined;
20432
20466
  action_attempt_id?: string | undefined;
20467
+ acs_credential_id?: string | undefined;
20468
+ acs_user_id?: string | undefined;
20469
+ acs_system_id?: string | undefined;
20470
+ client_session_id?: string | undefined;
20471
+ enrollment_automation_id?: string | undefined;
20433
20472
  event_type: string;
20434
20473
  workspace_id: string;
20435
20474
  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;
@@ -6274,6 +6294,10 @@ declare const _default: {
6274
6294
  pattern: string;
6275
6295
  type: string;
6276
6296
  };
6297
+ ends_at: {
6298
+ format: string;
6299
+ type: string;
6300
+ };
6277
6301
  };
6278
6302
  required: string[];
6279
6303
  type: string;
@@ -6339,6 +6363,10 @@ declare const _default: {
6339
6363
  pattern: string;
6340
6364
  type: string;
6341
6365
  };
6366
+ ends_at: {
6367
+ format: string;
6368
+ type: string;
6369
+ };
6342
6370
  };
6343
6371
  required: string[];
6344
6372
  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' },
@@ -4633,8 +4638,9 @@ export default {
4633
4638
  properties: {
4634
4639
  acs_credential_id: { type: 'string' },
4635
4640
  code: { pattern: '^\\d+$', type: 'string' },
4641
+ ends_at: { format: 'date-time', type: 'string' },
4636
4642
  },
4637
- required: ['acs_credential_id', 'code'],
4643
+ required: ['acs_credential_id'],
4638
4644
  type: 'object',
4639
4645
  },
4640
4646
  },
@@ -4679,8 +4685,9 @@ export default {
4679
4685
  properties: {
4680
4686
  acs_credential_id: { type: 'string' },
4681
4687
  code: { pattern: '^\\d+$', type: 'string' },
4688
+ ends_at: { format: 'date-time', type: 'string' },
4682
4689
  },
4683
- required: ['acs_credential_id', 'code'],
4690
+ required: ['acs_credential_id'],
4684
4691
  type: 'object',
4685
4692
  },
4686
4693
  },
@@ -7842,6 +7849,8 @@ export default {
7842
7849
  'acs_credential.deleted',
7843
7850
  'enrollment_automation.deleted',
7844
7851
  'client_session.deleted',
7852
+ 'action_attempt.lock_door.succeeded',
7853
+ 'action_attempt.lock_door.failed',
7845
7854
  ],
7846
7855
  type: 'string',
7847
7856
  },
@@ -7901,6 +7910,8 @@ export default {
7901
7910
  'acs_credential.deleted',
7902
7911
  'enrollment_automation.deleted',
7903
7912
  'client_session.deleted',
7913
+ 'action_attempt.lock_door.succeeded',
7914
+ 'action_attempt.lock_door.failed',
7904
7915
  ],
7905
7916
  type: 'string',
7906
7917
  },