@seamapi/types 1.218.1 → 1.220.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 +50 -7
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +144 -76
- package/lib/seam/connect/models/devices/device-metadata.d.ts +15 -15
- package/lib/seam/connect/models/devices/device-metadata.js +3 -3
- package/lib/seam/connect/models/devices/device-metadata.js.map +1 -1
- package/lib/seam/connect/models/devices/device.d.ts +21 -21
- package/lib/seam/connect/models/devices/phone.d.ts +15 -15
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +15 -15
- package/lib/seam/connect/models/events/connect-webviews.d.ts +104 -0
- package/lib/seam/connect/models/events/connect-webviews.js +32 -0
- package/lib/seam/connect/models/events/connect-webviews.js.map +1 -0
- package/lib/seam/connect/models/events/connected-accounts.d.ts +2 -0
- package/lib/seam/connect/models/events/connected-accounts.js +7 -4
- package/lib/seam/connect/models/events/connected-accounts.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +49 -0
- package/lib/seam/connect/models/events/seam-event.js +2 -0
- package/lib/seam/connect/models/events/seam-event.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +9 -2
- package/lib/seam/connect/openapi.js +16 -3
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +50 -38
- package/package.json +1 -1
- package/src/lib/seam/connect/models/devices/device-metadata.ts +3 -3
- package/src/lib/seam/connect/models/events/connect-webviews.ts +45 -0
- package/src/lib/seam/connect/models/events/connected-accounts.ts +9 -5
- package/src/lib/seam/connect/models/events/seam-event.ts +2 -0
- package/src/lib/seam/connect/openapi.ts +16 -3
- package/src/lib/seam/connect/route-types.ts +52 -36
|
@@ -4657,11 +4657,12 @@ export interface Routes {
|
|
|
4657
4657
|
device_label: string;
|
|
4658
4658
|
} | undefined;
|
|
4659
4659
|
dormakaba_oracode_metadata?: {
|
|
4660
|
-
door_id
|
|
4660
|
+
door_id?: number | undefined;
|
|
4661
4661
|
door_name: string;
|
|
4662
|
-
device_id?: number | undefined;
|
|
4662
|
+
device_id?: (number | string) | undefined;
|
|
4663
4663
|
door_is_wireless: boolean;
|
|
4664
|
-
|
|
4664
|
+
/** @DEPRECATED */
|
|
4665
|
+
site_id: number | null;
|
|
4665
4666
|
site_name: string;
|
|
4666
4667
|
iana_timezone?: string | undefined;
|
|
4667
4668
|
predefined_time_slots?: Array<{
|
|
@@ -5197,11 +5198,12 @@ export interface Routes {
|
|
|
5197
5198
|
device_label: string;
|
|
5198
5199
|
} | undefined;
|
|
5199
5200
|
dormakaba_oracode_metadata?: {
|
|
5200
|
-
door_id
|
|
5201
|
+
door_id?: number | undefined;
|
|
5201
5202
|
door_name: string;
|
|
5202
|
-
device_id?: number | undefined;
|
|
5203
|
+
device_id?: (number | string) | undefined;
|
|
5203
5204
|
door_is_wireless: boolean;
|
|
5204
|
-
|
|
5205
|
+
/** @DEPRECATED */
|
|
5206
|
+
site_id: number | null;
|
|
5205
5207
|
site_name: string;
|
|
5206
5208
|
iana_timezone?: string | undefined;
|
|
5207
5209
|
predefined_time_slots?: Array<{
|
|
@@ -5831,8 +5833,8 @@ export interface Routes {
|
|
|
5831
5833
|
device_ids?: string[] | undefined;
|
|
5832
5834
|
access_code_id?: string | undefined;
|
|
5833
5835
|
access_code_ids?: string[] | undefined;
|
|
5834
|
-
event_type?: ('device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | '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' | 'noise_sensor.noise_threshold_triggered' | 'access_code.backup_access_code_pulled' | 'acs_system.connected' | 'acs_user.deleted' | 'acs_credential.deleted' | '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') | undefined;
|
|
5835
|
-
event_types?: Array<'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | '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' | 'noise_sensor.noise_threshold_triggered' | 'access_code.backup_access_code_pulled' | 'acs_system.connected' | 'acs_user.deleted' | 'acs_credential.deleted' | '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'> | undefined;
|
|
5836
|
+
event_type?: ('device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | '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.connected' | 'acs_user.deleted' | 'acs_credential.deleted' | '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') | undefined;
|
|
5837
|
+
event_types?: Array<'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | '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.connected' | 'acs_user.deleted' | 'acs_credential.deleted' | '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'> | undefined;
|
|
5836
5838
|
connected_account_id?: string | undefined;
|
|
5837
5839
|
limit?: number;
|
|
5838
5840
|
};
|
|
@@ -6104,11 +6106,12 @@ export interface Routes {
|
|
|
6104
6106
|
device_label: string;
|
|
6105
6107
|
} | undefined;
|
|
6106
6108
|
dormakaba_oracode_metadata?: {
|
|
6107
|
-
door_id
|
|
6109
|
+
door_id?: number | undefined;
|
|
6108
6110
|
door_name: string;
|
|
6109
|
-
device_id?: number | undefined;
|
|
6111
|
+
device_id?: (number | string) | undefined;
|
|
6110
6112
|
door_is_wireless: boolean;
|
|
6111
|
-
|
|
6113
|
+
/** @DEPRECATED */
|
|
6114
|
+
site_id: number | null;
|
|
6112
6115
|
site_name: string;
|
|
6113
6116
|
iana_timezone?: string | undefined;
|
|
6114
6117
|
predefined_time_slots?: Array<{
|
|
@@ -6619,11 +6622,12 @@ export interface Routes {
|
|
|
6619
6622
|
device_label: string;
|
|
6620
6623
|
} | undefined;
|
|
6621
6624
|
dormakaba_oracode_metadata?: {
|
|
6622
|
-
door_id
|
|
6625
|
+
door_id?: number | undefined;
|
|
6623
6626
|
door_name: string;
|
|
6624
|
-
device_id?: number | undefined;
|
|
6627
|
+
device_id?: (number | string) | undefined;
|
|
6625
6628
|
door_is_wireless: boolean;
|
|
6626
|
-
|
|
6629
|
+
/** @DEPRECATED */
|
|
6630
|
+
site_id: number | null;
|
|
6627
6631
|
site_name: string;
|
|
6628
6632
|
iana_timezone?: string | undefined;
|
|
6629
6633
|
predefined_time_slots?: Array<{
|
|
@@ -7159,11 +7163,12 @@ export interface Routes {
|
|
|
7159
7163
|
device_label: string;
|
|
7160
7164
|
} | undefined;
|
|
7161
7165
|
dormakaba_oracode_metadata?: {
|
|
7162
|
-
door_id
|
|
7166
|
+
door_id?: number | undefined;
|
|
7163
7167
|
door_name: string;
|
|
7164
|
-
device_id?: number | undefined;
|
|
7168
|
+
device_id?: (number | string) | undefined;
|
|
7165
7169
|
door_is_wireless: boolean;
|
|
7166
|
-
|
|
7170
|
+
/** @DEPRECATED */
|
|
7171
|
+
site_id: number | null;
|
|
7167
7172
|
site_name: string;
|
|
7168
7173
|
iana_timezone?: string | undefined;
|
|
7169
7174
|
predefined_time_slots?: Array<{
|
|
@@ -7674,11 +7679,12 @@ export interface Routes {
|
|
|
7674
7679
|
device_label: string;
|
|
7675
7680
|
} | undefined;
|
|
7676
7681
|
dormakaba_oracode_metadata?: {
|
|
7677
|
-
door_id
|
|
7682
|
+
door_id?: number | undefined;
|
|
7678
7683
|
door_name: string;
|
|
7679
|
-
device_id?: number | undefined;
|
|
7684
|
+
device_id?: (number | string) | undefined;
|
|
7680
7685
|
door_is_wireless: boolean;
|
|
7681
|
-
|
|
7686
|
+
/** @DEPRECATED */
|
|
7687
|
+
site_id: number | null;
|
|
7682
7688
|
site_name: string;
|
|
7683
7689
|
iana_timezone?: string | undefined;
|
|
7684
7690
|
predefined_time_slots?: Array<{
|
|
@@ -8996,11 +9002,12 @@ export interface Routes {
|
|
|
8996
9002
|
device_label: string;
|
|
8997
9003
|
} | undefined;
|
|
8998
9004
|
dormakaba_oracode_metadata?: {
|
|
8999
|
-
door_id
|
|
9005
|
+
door_id?: number | undefined;
|
|
9000
9006
|
door_name: string;
|
|
9001
|
-
device_id?: number | undefined;
|
|
9007
|
+
device_id?: (number | string) | undefined;
|
|
9002
9008
|
door_is_wireless: boolean;
|
|
9003
|
-
|
|
9009
|
+
/** @DEPRECATED */
|
|
9010
|
+
site_id: number | null;
|
|
9004
9011
|
site_name: string;
|
|
9005
9012
|
iana_timezone?: string | undefined;
|
|
9006
9013
|
predefined_time_slots?: Array<{
|
|
@@ -9511,11 +9518,12 @@ export interface Routes {
|
|
|
9511
9518
|
device_label: string;
|
|
9512
9519
|
} | undefined;
|
|
9513
9520
|
dormakaba_oracode_metadata?: {
|
|
9514
|
-
door_id
|
|
9521
|
+
door_id?: number | undefined;
|
|
9515
9522
|
door_name: string;
|
|
9516
|
-
device_id?: number | undefined;
|
|
9523
|
+
device_id?: (number | string) | undefined;
|
|
9517
9524
|
door_is_wireless: boolean;
|
|
9518
|
-
|
|
9525
|
+
/** @DEPRECATED */
|
|
9526
|
+
site_id: number | null;
|
|
9519
9527
|
site_name: string;
|
|
9520
9528
|
iana_timezone?: string | undefined;
|
|
9521
9529
|
predefined_time_slots?: Array<{
|
|
@@ -11936,11 +11944,12 @@ export interface Routes {
|
|
|
11936
11944
|
device_label: string;
|
|
11937
11945
|
} | undefined;
|
|
11938
11946
|
dormakaba_oracode_metadata?: {
|
|
11939
|
-
door_id
|
|
11947
|
+
door_id?: number | undefined;
|
|
11940
11948
|
door_name: string;
|
|
11941
|
-
device_id?: number | undefined;
|
|
11949
|
+
device_id?: (number | string) | undefined;
|
|
11942
11950
|
door_is_wireless: boolean;
|
|
11943
|
-
|
|
11951
|
+
/** @DEPRECATED */
|
|
11952
|
+
site_id: number | null;
|
|
11944
11953
|
site_name: string;
|
|
11945
11954
|
iana_timezone?: string | undefined;
|
|
11946
11955
|
predefined_time_slots?: Array<{
|
|
@@ -13230,11 +13239,12 @@ export interface Routes {
|
|
|
13230
13239
|
device_label: string;
|
|
13231
13240
|
} | undefined;
|
|
13232
13241
|
dormakaba_oracode_metadata?: {
|
|
13233
|
-
door_id
|
|
13242
|
+
door_id?: number | undefined;
|
|
13234
13243
|
door_name: string;
|
|
13235
|
-
device_id?: number | undefined;
|
|
13244
|
+
device_id?: (number | string) | undefined;
|
|
13236
13245
|
door_is_wireless: boolean;
|
|
13237
|
-
|
|
13246
|
+
/** @DEPRECATED */
|
|
13247
|
+
site_id: number | null;
|
|
13238
13248
|
site_name: string;
|
|
13239
13249
|
iana_timezone?: string | undefined;
|
|
13240
13250
|
predefined_time_slots?: Array<{
|
|
@@ -14707,11 +14717,12 @@ export interface Routes {
|
|
|
14707
14717
|
device_label: string;
|
|
14708
14718
|
} | undefined;
|
|
14709
14719
|
dormakaba_oracode_metadata?: {
|
|
14710
|
-
door_id
|
|
14720
|
+
door_id?: number | undefined;
|
|
14711
14721
|
door_name: string;
|
|
14712
|
-
device_id?: number | undefined;
|
|
14722
|
+
device_id?: (number | string) | undefined;
|
|
14713
14723
|
door_is_wireless: boolean;
|
|
14714
|
-
|
|
14724
|
+
/** @DEPRECATED */
|
|
14725
|
+
site_id: number | null;
|
|
14715
14726
|
site_name: string;
|
|
14716
14727
|
iana_timezone?: string | undefined;
|
|
14717
14728
|
predefined_time_slots?: Array<{
|
|
@@ -15224,11 +15235,12 @@ export interface Routes {
|
|
|
15224
15235
|
device_label: string;
|
|
15225
15236
|
} | undefined;
|
|
15226
15237
|
dormakaba_oracode_metadata?: {
|
|
15227
|
-
door_id
|
|
15238
|
+
door_id?: number | undefined;
|
|
15228
15239
|
door_name: string;
|
|
15229
|
-
device_id?: number | undefined;
|
|
15240
|
+
device_id?: (number | string) | undefined;
|
|
15230
15241
|
door_is_wireless: boolean;
|
|
15231
|
-
|
|
15242
|
+
/** @DEPRECATED */
|
|
15243
|
+
site_id: number | null;
|
|
15232
15244
|
site_name: string;
|
|
15233
15245
|
iana_timezone?: string | undefined;
|
|
15234
15246
|
predefined_time_slots?: Array<{
|
package/package.json
CHANGED
|
@@ -191,11 +191,11 @@ export const device_metadata = z
|
|
|
191
191
|
}),
|
|
192
192
|
|
|
193
193
|
dormakaba_oracode_metadata: z.object({
|
|
194
|
-
door_id: z.number(),
|
|
194
|
+
door_id: z.number().optional(),
|
|
195
195
|
door_name: z.string(),
|
|
196
|
-
device_id: z.number().optional(),
|
|
196
|
+
device_id: z.number().or(z.string()).optional(),
|
|
197
197
|
door_is_wireless: z.boolean(),
|
|
198
|
-
site_id: z.number(),
|
|
198
|
+
site_id: z.number().nullable().describe('@DEPRECATED'),
|
|
199
199
|
site_name: z.string(),
|
|
200
200
|
iana_timezone: z.string().optional(),
|
|
201
201
|
predefined_time_slots: z.array(dormakaba_oracode_time_slot).optional(),
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
|
|
3
|
+
import { common_event } from './common.js'
|
|
4
|
+
|
|
5
|
+
const connect_webview_event = common_event.extend({
|
|
6
|
+
connect_webview_id: z.string().uuid().describe(`
|
|
7
|
+
---
|
|
8
|
+
title: Connect Webview ID
|
|
9
|
+
---
|
|
10
|
+
ID of the connect webview.
|
|
11
|
+
`),
|
|
12
|
+
})
|
|
13
|
+
|
|
14
|
+
const connected_account_id = z.string().uuid().describe(`
|
|
15
|
+
---
|
|
16
|
+
title: Connected Account ID
|
|
17
|
+
---
|
|
18
|
+
ID of the connected account.
|
|
19
|
+
`)
|
|
20
|
+
|
|
21
|
+
export const connect_webview_login_succeeded_event = connect_webview_event
|
|
22
|
+
.extend({
|
|
23
|
+
event_type: z.literal('connect_webview.login_succeeded'),
|
|
24
|
+
connected_account_id,
|
|
25
|
+
})
|
|
26
|
+
.describe('A connect webview had a successful login.')
|
|
27
|
+
|
|
28
|
+
export type ConnectWebviewLoginSucceededEvent = z.infer<
|
|
29
|
+
typeof connect_webview_login_succeeded_event
|
|
30
|
+
>
|
|
31
|
+
|
|
32
|
+
export const connect_webview_login_failed_event = connect_webview_event
|
|
33
|
+
.extend({
|
|
34
|
+
event_type: z.literal('connect_webview.login_failed'),
|
|
35
|
+
})
|
|
36
|
+
.describe('A connect webview had a failed login.')
|
|
37
|
+
|
|
38
|
+
export type ConnectWebviewLoginFailedEvent = z.infer<
|
|
39
|
+
typeof connect_webview_login_failed_event
|
|
40
|
+
>
|
|
41
|
+
|
|
42
|
+
export const connect_webview_events = [
|
|
43
|
+
connect_webview_login_succeeded_event,
|
|
44
|
+
connect_webview_login_failed_event,
|
|
45
|
+
] as const
|
|
@@ -41,14 +41,18 @@ export const connected_account_created_event = connected_account_event
|
|
|
41
41
|
export type ConnectedAccountCreatedEvent = z.infer<
|
|
42
42
|
typeof connected_account_created_event
|
|
43
43
|
>
|
|
44
|
-
|
|
45
|
-
export const connected_account_successful_login_event =
|
|
46
|
-
.extend({
|
|
44
|
+
/** @deprecated */
|
|
45
|
+
export const connected_account_successful_login_event =
|
|
46
|
+
connected_account_event.extend({
|
|
47
47
|
event_type: z.literal('connected_account.successful_login'),
|
|
48
48
|
connect_webview_id,
|
|
49
|
-
})
|
|
50
|
-
|
|
49
|
+
}).describe(`
|
|
50
|
+
---
|
|
51
|
+
deprecated: Use \`connect_webview.login_succeeded\`.
|
|
52
|
+
---
|
|
53
|
+
A connected account had a successful connect webview login.`)
|
|
51
54
|
|
|
55
|
+
/** @deprecated Rely on ConnectWebviewLoginSucceededEvent instead */
|
|
52
56
|
export type ConnectedAccountSuccessfulLoginEvent = z.infer<
|
|
53
57
|
typeof connected_account_successful_login_event
|
|
54
58
|
>
|
|
@@ -3,6 +3,7 @@ import { z } from 'zod'
|
|
|
3
3
|
import { access_code_events } from './access-codes.js'
|
|
4
4
|
import { acs_events } from './acs/index.js'
|
|
5
5
|
import { client_session_events } from './client-sessions.js'
|
|
6
|
+
import { connect_webview_events } from './connect-webviews.js'
|
|
6
7
|
import { connected_account_events } from './connected-accounts.js'
|
|
7
8
|
import { device_events } from './devices.js'
|
|
8
9
|
import { enrollment_automation_events } from './enrollment-automations.js'
|
|
@@ -13,6 +14,7 @@ export const seam_event = z.discriminatedUnion('event_type', [
|
|
|
13
14
|
...acs_events,
|
|
14
15
|
...client_session_events,
|
|
15
16
|
...connected_account_events,
|
|
17
|
+
...connect_webview_events,
|
|
16
18
|
...device_events,
|
|
17
19
|
...enrollment_automation_events,
|
|
18
20
|
...phone_events,
|
|
@@ -2417,7 +2417,12 @@ export default {
|
|
|
2417
2417
|
},
|
|
2418
2418
|
dormakaba_oracode_metadata: {
|
|
2419
2419
|
properties: {
|
|
2420
|
-
device_id: {
|
|
2420
|
+
device_id: {
|
|
2421
|
+
oneOf: [
|
|
2422
|
+
{ format: 'float', type: 'number' },
|
|
2423
|
+
{ type: 'string' },
|
|
2424
|
+
],
|
|
2425
|
+
},
|
|
2421
2426
|
door_id: { format: 'float', type: 'number' },
|
|
2422
2427
|
door_is_wireless: { type: 'boolean' },
|
|
2423
2428
|
door_name: { type: 'string' },
|
|
@@ -2458,11 +2463,15 @@ export default {
|
|
|
2458
2463
|
},
|
|
2459
2464
|
type: 'array',
|
|
2460
2465
|
},
|
|
2461
|
-
site_id: {
|
|
2466
|
+
site_id: {
|
|
2467
|
+
description: '@DEPRECATED',
|
|
2468
|
+
format: 'float',
|
|
2469
|
+
nullable: true,
|
|
2470
|
+
type: 'number',
|
|
2471
|
+
},
|
|
2462
2472
|
site_name: { type: 'string' },
|
|
2463
2473
|
},
|
|
2464
2474
|
required: [
|
|
2465
|
-
'door_id',
|
|
2466
2475
|
'door_name',
|
|
2467
2476
|
'door_is_wireless',
|
|
2468
2477
|
'site_id',
|
|
@@ -9769,6 +9778,8 @@ export default {
|
|
|
9769
9778
|
'connected_account.disconnected',
|
|
9770
9779
|
'connected_account.completed_first_sync',
|
|
9771
9780
|
'connected_account.completed_first_sync_after_reconnection',
|
|
9781
|
+
'connect_webview.login_succeeded',
|
|
9782
|
+
'connect_webview.login_failed',
|
|
9772
9783
|
'noise_sensor.noise_threshold_triggered',
|
|
9773
9784
|
'access_code.backup_access_code_pulled',
|
|
9774
9785
|
'acs_system.connected',
|
|
@@ -9834,6 +9845,8 @@ export default {
|
|
|
9834
9845
|
'connected_account.disconnected',
|
|
9835
9846
|
'connected_account.completed_first_sync',
|
|
9836
9847
|
'connected_account.completed_first_sync_after_reconnection',
|
|
9848
|
+
'connect_webview.login_succeeded',
|
|
9849
|
+
'connect_webview.login_failed',
|
|
9837
9850
|
'noise_sensor.noise_threshold_triggered',
|
|
9838
9851
|
'access_code.backup_access_code_pulled',
|
|
9839
9852
|
'acs_system.connected',
|
|
@@ -5377,11 +5377,12 @@ export interface Routes {
|
|
|
5377
5377
|
| undefined
|
|
5378
5378
|
dormakaba_oracode_metadata?:
|
|
5379
5379
|
| {
|
|
5380
|
-
door_id
|
|
5380
|
+
door_id?: number | undefined
|
|
5381
5381
|
door_name: string
|
|
5382
|
-
device_id?: number | undefined
|
|
5382
|
+
device_id?: (number | string) | undefined
|
|
5383
5383
|
door_is_wireless: boolean
|
|
5384
|
-
|
|
5384
|
+
/** @DEPRECATED */
|
|
5385
|
+
site_id: number | null
|
|
5385
5386
|
site_name: string
|
|
5386
5387
|
iana_timezone?: string | undefined
|
|
5387
5388
|
predefined_time_slots?:
|
|
@@ -6274,11 +6275,12 @@ export interface Routes {
|
|
|
6274
6275
|
| undefined
|
|
6275
6276
|
dormakaba_oracode_metadata?:
|
|
6276
6277
|
| {
|
|
6277
|
-
door_id
|
|
6278
|
+
door_id?: number | undefined
|
|
6278
6279
|
door_name: string
|
|
6279
|
-
device_id?: number | undefined
|
|
6280
|
+
device_id?: (number | string) | undefined
|
|
6280
6281
|
door_is_wireless: boolean
|
|
6281
|
-
|
|
6282
|
+
/** @DEPRECATED */
|
|
6283
|
+
site_id: number | null
|
|
6282
6284
|
site_name: string
|
|
6283
6285
|
iana_timezone?: string | undefined
|
|
6284
6286
|
predefined_time_slots?:
|
|
@@ -7372,6 +7374,8 @@ export interface Routes {
|
|
|
7372
7374
|
| 'connected_account.disconnected'
|
|
7373
7375
|
| 'connected_account.completed_first_sync'
|
|
7374
7376
|
| 'connected_account.completed_first_sync_after_reconnection'
|
|
7377
|
+
| 'connect_webview.login_succeeded'
|
|
7378
|
+
| 'connect_webview.login_failed'
|
|
7375
7379
|
| 'noise_sensor.noise_threshold_triggered'
|
|
7376
7380
|
| 'access_code.backup_access_code_pulled'
|
|
7377
7381
|
| 'acs_system.connected'
|
|
@@ -7435,6 +7439,8 @@ export interface Routes {
|
|
|
7435
7439
|
| 'connected_account.disconnected'
|
|
7436
7440
|
| 'connected_account.completed_first_sync'
|
|
7437
7441
|
| 'connected_account.completed_first_sync_after_reconnection'
|
|
7442
|
+
| 'connect_webview.login_succeeded'
|
|
7443
|
+
| 'connect_webview.login_failed'
|
|
7438
7444
|
| 'noise_sensor.noise_threshold_triggered'
|
|
7439
7445
|
| 'access_code.backup_access_code_pulled'
|
|
7440
7446
|
| 'acs_system.connected'
|
|
@@ -7819,11 +7825,12 @@ export interface Routes {
|
|
|
7819
7825
|
| undefined
|
|
7820
7826
|
dormakaba_oracode_metadata?:
|
|
7821
7827
|
| {
|
|
7822
|
-
door_id
|
|
7828
|
+
door_id?: number | undefined
|
|
7823
7829
|
door_name: string
|
|
7824
|
-
device_id?: number | undefined
|
|
7830
|
+
device_id?: (number | string) | undefined
|
|
7825
7831
|
door_is_wireless: boolean
|
|
7826
|
-
|
|
7832
|
+
/** @DEPRECATED */
|
|
7833
|
+
site_id: number | null
|
|
7827
7834
|
site_name: string
|
|
7828
7835
|
iana_timezone?: string | undefined
|
|
7829
7836
|
predefined_time_slots?:
|
|
@@ -8558,11 +8565,12 @@ export interface Routes {
|
|
|
8558
8565
|
| undefined
|
|
8559
8566
|
dormakaba_oracode_metadata?:
|
|
8560
8567
|
| {
|
|
8561
|
-
door_id
|
|
8568
|
+
door_id?: number | undefined
|
|
8562
8569
|
door_name: string
|
|
8563
|
-
device_id?: number | undefined
|
|
8570
|
+
device_id?: (number | string) | undefined
|
|
8564
8571
|
door_is_wireless: boolean
|
|
8565
|
-
|
|
8572
|
+
/** @DEPRECATED */
|
|
8573
|
+
site_id: number | null
|
|
8566
8574
|
site_name: string
|
|
8567
8575
|
iana_timezone?: string | undefined
|
|
8568
8576
|
predefined_time_slots?:
|
|
@@ -9455,11 +9463,12 @@ export interface Routes {
|
|
|
9455
9463
|
| undefined
|
|
9456
9464
|
dormakaba_oracode_metadata?:
|
|
9457
9465
|
| {
|
|
9458
|
-
door_id
|
|
9466
|
+
door_id?: number | undefined
|
|
9459
9467
|
door_name: string
|
|
9460
|
-
device_id?: number | undefined
|
|
9468
|
+
device_id?: (number | string) | undefined
|
|
9461
9469
|
door_is_wireless: boolean
|
|
9462
|
-
|
|
9470
|
+
/** @DEPRECATED */
|
|
9471
|
+
site_id: number | null
|
|
9463
9472
|
site_name: string
|
|
9464
9473
|
iana_timezone?: string | undefined
|
|
9465
9474
|
predefined_time_slots?:
|
|
@@ -10194,11 +10203,12 @@ export interface Routes {
|
|
|
10194
10203
|
| undefined
|
|
10195
10204
|
dormakaba_oracode_metadata?:
|
|
10196
10205
|
| {
|
|
10197
|
-
door_id
|
|
10206
|
+
door_id?: number | undefined
|
|
10198
10207
|
door_name: string
|
|
10199
|
-
device_id?: number | undefined
|
|
10208
|
+
device_id?: (number | string) | undefined
|
|
10200
10209
|
door_is_wireless: boolean
|
|
10201
|
-
|
|
10210
|
+
/** @DEPRECATED */
|
|
10211
|
+
site_id: number | null
|
|
10202
10212
|
site_name: string
|
|
10203
10213
|
iana_timezone?: string | undefined
|
|
10204
10214
|
predefined_time_slots?:
|
|
@@ -11963,11 +11973,12 @@ export interface Routes {
|
|
|
11963
11973
|
| undefined
|
|
11964
11974
|
dormakaba_oracode_metadata?:
|
|
11965
11975
|
| {
|
|
11966
|
-
door_id
|
|
11976
|
+
door_id?: number | undefined
|
|
11967
11977
|
door_name: string
|
|
11968
|
-
device_id?: number | undefined
|
|
11978
|
+
device_id?: (number | string) | undefined
|
|
11969
11979
|
door_is_wireless: boolean
|
|
11970
|
-
|
|
11980
|
+
/** @DEPRECATED */
|
|
11981
|
+
site_id: number | null
|
|
11971
11982
|
site_name: string
|
|
11972
11983
|
iana_timezone?: string | undefined
|
|
11973
11984
|
predefined_time_slots?:
|
|
@@ -12702,11 +12713,12 @@ export interface Routes {
|
|
|
12702
12713
|
| undefined
|
|
12703
12714
|
dormakaba_oracode_metadata?:
|
|
12704
12715
|
| {
|
|
12705
|
-
door_id
|
|
12716
|
+
door_id?: number | undefined
|
|
12706
12717
|
door_name: string
|
|
12707
|
-
device_id?: number | undefined
|
|
12718
|
+
device_id?: (number | string) | undefined
|
|
12708
12719
|
door_is_wireless: boolean
|
|
12709
|
-
|
|
12720
|
+
/** @DEPRECATED */
|
|
12721
|
+
site_id: number | null
|
|
12710
12722
|
site_name: string
|
|
12711
12723
|
iana_timezone?: string | undefined
|
|
12712
12724
|
predefined_time_slots?:
|
|
@@ -15555,11 +15567,12 @@ export interface Routes {
|
|
|
15555
15567
|
| undefined
|
|
15556
15568
|
dormakaba_oracode_metadata?:
|
|
15557
15569
|
| {
|
|
15558
|
-
door_id
|
|
15570
|
+
door_id?: number | undefined
|
|
15559
15571
|
door_name: string
|
|
15560
|
-
device_id?: number | undefined
|
|
15572
|
+
device_id?: (number | string) | undefined
|
|
15561
15573
|
door_is_wireless: boolean
|
|
15562
|
-
|
|
15574
|
+
/** @DEPRECATED */
|
|
15575
|
+
site_id: number | null
|
|
15563
15576
|
site_name: string
|
|
15564
15577
|
iana_timezone?: string | undefined
|
|
15565
15578
|
predefined_time_slots?:
|
|
@@ -17296,11 +17309,12 @@ export interface Routes {
|
|
|
17296
17309
|
| undefined
|
|
17297
17310
|
dormakaba_oracode_metadata?:
|
|
17298
17311
|
| {
|
|
17299
|
-
door_id
|
|
17312
|
+
door_id?: number | undefined
|
|
17300
17313
|
door_name: string
|
|
17301
|
-
device_id?: number | undefined
|
|
17314
|
+
device_id?: (number | string) | undefined
|
|
17302
17315
|
door_is_wireless: boolean
|
|
17303
|
-
|
|
17316
|
+
/** @DEPRECATED */
|
|
17317
|
+
site_id: number | null
|
|
17304
17318
|
site_name: string
|
|
17305
17319
|
iana_timezone?: string | undefined
|
|
17306
17320
|
predefined_time_slots?:
|
|
@@ -19089,11 +19103,12 @@ export interface Routes {
|
|
|
19089
19103
|
| undefined
|
|
19090
19104
|
dormakaba_oracode_metadata?:
|
|
19091
19105
|
| {
|
|
19092
|
-
door_id
|
|
19106
|
+
door_id?: number | undefined
|
|
19093
19107
|
door_name: string
|
|
19094
|
-
device_id?: number | undefined
|
|
19108
|
+
device_id?: (number | string) | undefined
|
|
19095
19109
|
door_is_wireless: boolean
|
|
19096
|
-
|
|
19110
|
+
/** @DEPRECATED */
|
|
19111
|
+
site_id: number | null
|
|
19097
19112
|
site_name: string
|
|
19098
19113
|
iana_timezone?: string | undefined
|
|
19099
19114
|
predefined_time_slots?:
|
|
@@ -19830,11 +19845,12 @@ export interface Routes {
|
|
|
19830
19845
|
| undefined
|
|
19831
19846
|
dormakaba_oracode_metadata?:
|
|
19832
19847
|
| {
|
|
19833
|
-
door_id
|
|
19848
|
+
door_id?: number | undefined
|
|
19834
19849
|
door_name: string
|
|
19835
|
-
device_id?: number | undefined
|
|
19850
|
+
device_id?: (number | string) | undefined
|
|
19836
19851
|
door_is_wireless: boolean
|
|
19837
|
-
|
|
19852
|
+
/** @DEPRECATED */
|
|
19853
|
+
site_id: number | null
|
|
19838
19854
|
site_name: string
|
|
19839
19855
|
iana_timezone?: string | undefined
|
|
19840
19856
|
predefined_time_slots?:
|