@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.
- package/dist/connect.cjs +11 -2
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +32 -2
- package/lib/seam/connect/models/events/action-attempts.d.ts +51 -0
- package/lib/seam/connect/models/events/action-attempts.js +33 -0
- package/lib/seam/connect/models/events/action-attempts.js.map +1 -0
- package/lib/seam/connect/models/events/index.d.ts +1 -0
- package/lib/seam/connect/models/events/index.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +20 -0
- package/lib/seam/connect/openapi.js +9 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +12 -2
- package/package.json +1 -1
- package/src/lib/seam/connect/models/events/action-attempts.ts +36 -0
- package/src/lib/seam/connect/models/events/index.ts +1 -0
- package/src/lib/seam/connect/openapi.ts +9 -0
- package/src/lib/seam/connect/route-types.ts +14 -0
|
@@ -3402,6 +3402,11 @@ export interface Routes {
|
|
|
3402
3402
|
event_id: string;
|
|
3403
3403
|
device_id?: string | undefined;
|
|
3404
3404
|
action_attempt_id?: string | undefined;
|
|
3405
|
+
acs_credential_id?: string | undefined;
|
|
3406
|
+
acs_user_id?: string | undefined;
|
|
3407
|
+
acs_system_id?: string | undefined;
|
|
3408
|
+
client_session_id?: string | undefined;
|
|
3409
|
+
enrollment_automation_id?: string | undefined;
|
|
3405
3410
|
event_type: string;
|
|
3406
3411
|
workspace_id: string;
|
|
3407
3412
|
created_at: string;
|
|
@@ -3422,8 +3427,8 @@ export interface Routes {
|
|
|
3422
3427
|
device_ids?: string[] | undefined;
|
|
3423
3428
|
access_code_id?: string | undefined;
|
|
3424
3429
|
access_code_ids?: string[] | undefined;
|
|
3425
|
-
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;
|
|
3426
|
-
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;
|
|
3430
|
+
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;
|
|
3431
|
+
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;
|
|
3427
3432
|
connected_account_id?: string | undefined;
|
|
3428
3433
|
limit?: number;
|
|
3429
3434
|
};
|
|
@@ -3433,6 +3438,11 @@ export interface Routes {
|
|
|
3433
3438
|
event_id: string;
|
|
3434
3439
|
device_id?: string | undefined;
|
|
3435
3440
|
action_attempt_id?: string | undefined;
|
|
3441
|
+
acs_credential_id?: string | undefined;
|
|
3442
|
+
acs_user_id?: string | undefined;
|
|
3443
|
+
acs_system_id?: string | undefined;
|
|
3444
|
+
client_session_id?: string | undefined;
|
|
3445
|
+
enrollment_automation_id?: string | undefined;
|
|
3436
3446
|
event_type: string;
|
|
3437
3447
|
workspace_id: string;
|
|
3438
3448
|
created_at: string;
|
package/package.json
CHANGED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
|
|
3
|
+
import { common_event } from './common.js'
|
|
4
|
+
|
|
5
|
+
const action_attempt_event = common_event.extend({
|
|
6
|
+
action_attempt_id: z.string().uuid().describe(`
|
|
7
|
+
---
|
|
8
|
+
title: Action Attempt ID
|
|
9
|
+
---
|
|
10
|
+
The ID of the action attempt.
|
|
11
|
+
`),
|
|
12
|
+
action_type: z.string().describe(`
|
|
13
|
+
---
|
|
14
|
+
title: Action Type
|
|
15
|
+
---
|
|
16
|
+
The type of action.
|
|
17
|
+
`),
|
|
18
|
+
status: z.string().describe(`
|
|
19
|
+
---
|
|
20
|
+
title: Status
|
|
21
|
+
---
|
|
22
|
+
The status of the action.
|
|
23
|
+
`),
|
|
24
|
+
})
|
|
25
|
+
|
|
26
|
+
export const action_attempt_lock_door_succeeded_event = action_attempt_event
|
|
27
|
+
.extend({
|
|
28
|
+
event_type: z.literal('action_attempt.lock_door.succeeded'),
|
|
29
|
+
})
|
|
30
|
+
.describe('A lock door action attempt succeeded.')
|
|
31
|
+
|
|
32
|
+
export const action_attempt_lock_door_failed_event = action_attempt_event
|
|
33
|
+
.extend({
|
|
34
|
+
event_type: z.literal('action_attempt.lock_door.failed'),
|
|
35
|
+
})
|
|
36
|
+
.describe('A lock door action attempt failed.')
|
|
@@ -2097,9 +2097,14 @@ export default {
|
|
|
2097
2097
|
},
|
|
2098
2098
|
event: {
|
|
2099
2099
|
properties: {
|
|
2100
|
+
acs_credential_id: { format: 'uuid', type: 'string' },
|
|
2101
|
+
acs_system_id: { format: 'uuid', type: 'string' },
|
|
2102
|
+
acs_user_id: { format: 'uuid', type: 'string' },
|
|
2100
2103
|
action_attempt_id: { format: 'uuid', type: 'string' },
|
|
2104
|
+
client_session_id: { format: 'uuid', type: 'string' },
|
|
2101
2105
|
created_at: { format: 'date-time', type: 'string' },
|
|
2102
2106
|
device_id: { format: 'uuid', type: 'string' },
|
|
2107
|
+
enrollment_automation_id: { format: 'uuid', type: 'string' },
|
|
2103
2108
|
event_id: { format: 'uuid', type: 'string' },
|
|
2104
2109
|
event_type: { type: 'string' },
|
|
2105
2110
|
occurred_at: { format: 'date-time', type: 'string' },
|
|
@@ -7939,6 +7944,8 @@ export default {
|
|
|
7939
7944
|
'acs_credential.deleted',
|
|
7940
7945
|
'enrollment_automation.deleted',
|
|
7941
7946
|
'client_session.deleted',
|
|
7947
|
+
'action_attempt.lock_door.succeeded',
|
|
7948
|
+
'action_attempt.lock_door.failed',
|
|
7942
7949
|
],
|
|
7943
7950
|
type: 'string',
|
|
7944
7951
|
},
|
|
@@ -7998,6 +8005,8 @@ export default {
|
|
|
7998
8005
|
'acs_credential.deleted',
|
|
7999
8006
|
'enrollment_automation.deleted',
|
|
8000
8007
|
'client_session.deleted',
|
|
8008
|
+
'action_attempt.lock_door.succeeded',
|
|
8009
|
+
'action_attempt.lock_door.failed',
|
|
8001
8010
|
],
|
|
8002
8011
|
type: 'string',
|
|
8003
8012
|
},
|
|
@@ -4526,6 +4526,11 @@ export interface Routes {
|
|
|
4526
4526
|
event_id: string
|
|
4527
4527
|
device_id?: string | undefined
|
|
4528
4528
|
action_attempt_id?: string | undefined
|
|
4529
|
+
acs_credential_id?: string | undefined
|
|
4530
|
+
acs_user_id?: string | undefined
|
|
4531
|
+
acs_system_id?: string | undefined
|
|
4532
|
+
client_session_id?: string | undefined
|
|
4533
|
+
enrollment_automation_id?: string | undefined
|
|
4529
4534
|
event_type: string
|
|
4530
4535
|
workspace_id: string
|
|
4531
4536
|
created_at: string
|
|
@@ -4602,6 +4607,8 @@ export interface Routes {
|
|
|
4602
4607
|
| 'acs_credential.deleted'
|
|
4603
4608
|
| 'enrollment_automation.deleted'
|
|
4604
4609
|
| 'client_session.deleted'
|
|
4610
|
+
| 'action_attempt.lock_door.succeeded'
|
|
4611
|
+
| 'action_attempt.lock_door.failed'
|
|
4605
4612
|
)
|
|
4606
4613
|
| undefined
|
|
4607
4614
|
event_types?:
|
|
@@ -4659,6 +4666,8 @@ export interface Routes {
|
|
|
4659
4666
|
| 'acs_credential.deleted'
|
|
4660
4667
|
| 'enrollment_automation.deleted'
|
|
4661
4668
|
| 'client_session.deleted'
|
|
4669
|
+
| 'action_attempt.lock_door.succeeded'
|
|
4670
|
+
| 'action_attempt.lock_door.failed'
|
|
4662
4671
|
>
|
|
4663
4672
|
| undefined
|
|
4664
4673
|
connected_account_id?: string | undefined
|
|
@@ -4670,6 +4679,11 @@ export interface Routes {
|
|
|
4670
4679
|
event_id: string
|
|
4671
4680
|
device_id?: string | undefined
|
|
4672
4681
|
action_attempt_id?: string | undefined
|
|
4682
|
+
acs_credential_id?: string | undefined
|
|
4683
|
+
acs_user_id?: string | undefined
|
|
4684
|
+
acs_system_id?: string | undefined
|
|
4685
|
+
client_session_id?: string | undefined
|
|
4686
|
+
enrollment_automation_id?: string | undefined
|
|
4673
4687
|
event_type: string
|
|
4674
4688
|
workspace_id: string
|
|
4675
4689
|
created_at: string
|