@seamapi/types 1.165.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 +23 -2
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +59 -2
- package/lib/seam/connect/models/acs/entrance.d.ts +18 -0
- package/lib/seam/connect/models/acs/entrance.js +4 -0
- package/lib/seam/connect/models/acs/entrance.js.map +1 -1
- 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 +35 -0
- package/lib/seam/connect/openapi.js +21 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +24 -2
- package/package.json +1 -1
- package/src/lib/seam/connect/models/acs/entrance.ts +6 -0
- 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 +21 -0
- package/src/lib/seam/connect/route-types.ts +26 -0
package/dist/connect.d.cts
CHANGED
|
@@ -1626,6 +1626,21 @@ declare const _default: {
|
|
|
1626
1626
|
display_name: {
|
|
1627
1627
|
type: string;
|
|
1628
1628
|
};
|
|
1629
|
+
errors: {
|
|
1630
|
+
items: {
|
|
1631
|
+
properties: {
|
|
1632
|
+
error_code: {
|
|
1633
|
+
type: string;
|
|
1634
|
+
};
|
|
1635
|
+
message: {
|
|
1636
|
+
type: string;
|
|
1637
|
+
};
|
|
1638
|
+
};
|
|
1639
|
+
required: string[];
|
|
1640
|
+
type: string;
|
|
1641
|
+
};
|
|
1642
|
+
type: string;
|
|
1643
|
+
};
|
|
1629
1644
|
latch_metadata: {
|
|
1630
1645
|
nullable: boolean;
|
|
1631
1646
|
properties: {
|
|
@@ -3801,10 +3816,26 @@ declare const _default: {
|
|
|
3801
3816
|
};
|
|
3802
3817
|
event: {
|
|
3803
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
|
+
};
|
|
3804
3831
|
action_attempt_id: {
|
|
3805
3832
|
format: string;
|
|
3806
3833
|
type: string;
|
|
3807
3834
|
};
|
|
3835
|
+
client_session_id: {
|
|
3836
|
+
format: string;
|
|
3837
|
+
type: string;
|
|
3838
|
+
};
|
|
3808
3839
|
created_at: {
|
|
3809
3840
|
format: string;
|
|
3810
3841
|
type: string;
|
|
@@ -3813,6 +3844,10 @@ declare const _default: {
|
|
|
3813
3844
|
format: string;
|
|
3814
3845
|
type: string;
|
|
3815
3846
|
};
|
|
3847
|
+
enrollment_automation_id: {
|
|
3848
|
+
format: string;
|
|
3849
|
+
type: string;
|
|
3850
|
+
};
|
|
3816
3851
|
event_id: {
|
|
3817
3852
|
format: string;
|
|
3818
3853
|
type: string;
|
|
@@ -18105,6 +18140,10 @@ interface Routes {
|
|
|
18105
18140
|
door_type: string;
|
|
18106
18141
|
is_connected: boolean;
|
|
18107
18142
|
} | null;
|
|
18143
|
+
errors: Array<{
|
|
18144
|
+
error_code: string;
|
|
18145
|
+
message: string;
|
|
18146
|
+
}>;
|
|
18108
18147
|
visionline_metadata: {
|
|
18109
18148
|
door_name: string;
|
|
18110
18149
|
door_category: 'entrance' | 'guest' | 'elevator reader' | 'common' | 'common (PMS)';
|
|
@@ -18150,6 +18189,10 @@ interface Routes {
|
|
|
18150
18189
|
door_type: string;
|
|
18151
18190
|
is_connected: boolean;
|
|
18152
18191
|
} | null;
|
|
18192
|
+
errors: Array<{
|
|
18193
|
+
error_code: string;
|
|
18194
|
+
message: string;
|
|
18195
|
+
}>;
|
|
18153
18196
|
visionline_metadata: {
|
|
18154
18197
|
door_name: string;
|
|
18155
18198
|
door_category: 'entrance' | 'guest' | 'elevator reader' | 'common' | 'common (PMS)';
|
|
@@ -18465,6 +18508,10 @@ interface Routes {
|
|
|
18465
18508
|
door_type: string;
|
|
18466
18509
|
is_connected: boolean;
|
|
18467
18510
|
} | null;
|
|
18511
|
+
errors: Array<{
|
|
18512
|
+
error_code: string;
|
|
18513
|
+
message: string;
|
|
18514
|
+
}>;
|
|
18468
18515
|
visionline_metadata: {
|
|
18469
18516
|
door_name: string;
|
|
18470
18517
|
door_category: 'entrance' | 'guest' | 'elevator reader' | 'common' | 'common (PMS)';
|
|
@@ -20372,6 +20419,11 @@ interface Routes {
|
|
|
20372
20419
|
event_id: string;
|
|
20373
20420
|
device_id?: string | undefined;
|
|
20374
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;
|
|
20375
20427
|
event_type: string;
|
|
20376
20428
|
workspace_id: string;
|
|
20377
20429
|
created_at: string;
|
|
@@ -20392,8 +20444,8 @@ interface Routes {
|
|
|
20392
20444
|
device_ids?: string[] | undefined;
|
|
20393
20445
|
access_code_id?: string | undefined;
|
|
20394
20446
|
access_code_ids?: string[] | undefined;
|
|
20395
|
-
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;
|
|
20396
|
-
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;
|
|
20397
20449
|
connected_account_id?: string | undefined;
|
|
20398
20450
|
limit?: number;
|
|
20399
20451
|
};
|
|
@@ -20403,6 +20455,11 @@ interface Routes {
|
|
|
20403
20455
|
event_id: string;
|
|
20404
20456
|
device_id?: string | undefined;
|
|
20405
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;
|
|
20406
20463
|
event_type: string;
|
|
20407
20464
|
workspace_id: string;
|
|
20408
20465
|
created_at: string;
|
|
@@ -36,6 +36,16 @@ export declare const acs_entrance: z.ZodObject<{
|
|
|
36
36
|
door_type: string;
|
|
37
37
|
is_connected: boolean;
|
|
38
38
|
}>>;
|
|
39
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
40
|
+
error_code: z.ZodString;
|
|
41
|
+
message: z.ZodString;
|
|
42
|
+
}, "strip", z.ZodTypeAny, {
|
|
43
|
+
message: string;
|
|
44
|
+
error_code: string;
|
|
45
|
+
}, {
|
|
46
|
+
message: string;
|
|
47
|
+
error_code: string;
|
|
48
|
+
}>, "many">;
|
|
39
49
|
visionline_metadata: z.ZodNullable<z.ZodObject<{
|
|
40
50
|
door_name: z.ZodString;
|
|
41
51
|
door_category: z.ZodEnum<["entrance", "guest", "elevator reader", "common", "common (PMS)"]>;
|
|
@@ -66,6 +76,10 @@ export declare const acs_entrance: z.ZodObject<{
|
|
|
66
76
|
}>>;
|
|
67
77
|
}, "strip", z.ZodTypeAny, {
|
|
68
78
|
created_at: string;
|
|
79
|
+
errors: {
|
|
80
|
+
message: string;
|
|
81
|
+
error_code: string;
|
|
82
|
+
}[];
|
|
69
83
|
acs_system_id: string;
|
|
70
84
|
display_name: string;
|
|
71
85
|
visionline_metadata: {
|
|
@@ -85,6 +99,10 @@ export declare const acs_entrance: z.ZodObject<{
|
|
|
85
99
|
} | null;
|
|
86
100
|
}, {
|
|
87
101
|
created_at: string;
|
|
102
|
+
errors: {
|
|
103
|
+
message: string;
|
|
104
|
+
error_code: string;
|
|
105
|
+
}[];
|
|
88
106
|
acs_system_id: string;
|
|
89
107
|
display_name: string;
|
|
90
108
|
visionline_metadata: {
|
|
@@ -11,6 +11,10 @@ export const acs_entrance = z.object({
|
|
|
11
11
|
acs_system_id: z.string().uuid(),
|
|
12
12
|
created_at: z.string().datetime(),
|
|
13
13
|
latch_metadata: acs_entrance_latch_metadata.nullable(),
|
|
14
|
+
errors: z.array(z.object({
|
|
15
|
+
error_code: z.string(),
|
|
16
|
+
message: z.string(),
|
|
17
|
+
})),
|
|
14
18
|
visionline_metadata: z
|
|
15
19
|
.object({
|
|
16
20
|
door_name: z.string(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entrance.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/acs/entrance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC9B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,YAAY,EAAE,CAAC,CAAC,OAAO,EAAE;CAC1B,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAClC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAChC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,cAAc,EAAE,2BAA2B,CAAC,QAAQ,EAAE;IACtD,mBAAmB,EAAE,CAAC;SACnB,MAAM,CAAC;QACN,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;QACrB,aAAa,EAAE,CAAC,CAAC,IAAI,CAAC;YACpB,UAAU;YACV,OAAO;YACP,iBAAiB;YACjB,QAAQ;YACR,cAAc;SACf,CAAC;QACF,QAAQ,EAAE,CAAC;aACR,KAAK,CACJ,CAAC,CAAC,MAAM,CAAC;YACP,0BAA0B,EAAE,CAAC,CAAC,MAAM,EAAE;YACtC,4BAA4B,EAAE,CAAC,CAAC,IAAI,CAAC;gBACnC,KAAK;gBACL,YAAY;gBACZ,OAAO;aACR,CAAC;SACH,CAAC,CACH;aACA,QAAQ,EAAE;KACd,CAAC;SACD,QAAQ,EAAE;CACd,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"entrance.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/acs/entrance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC9B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,YAAY,EAAE,CAAC,CAAC,OAAO,EAAE;CAC1B,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAClC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAChC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,cAAc,EAAE,2BAA2B,CAAC,QAAQ,EAAE;IACtD,MAAM,EAAE,CAAC,CAAC,KAAK,CACb,CAAC,CAAC,MAAM,CAAC;QACP,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;QACtB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;KACpB,CAAC,CACH;IACD,mBAAmB,EAAE,CAAC;SACnB,MAAM,CAAC;QACN,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;QACrB,aAAa,EAAE,CAAC,CAAC,IAAI,CAAC;YACpB,UAAU;YACV,OAAO;YACP,iBAAiB;YACjB,QAAQ;YACR,cAAc;SACf,CAAC;QACF,QAAQ,EAAE,CAAC;aACR,KAAK,CACJ,CAAC,CAAC,MAAM,CAAC;YACP,0BAA0B,EAAE,CAAC,CAAC,MAAM,EAAE;YACtC,4BAA4B,EAAE,CAAC,CAAC,IAAI,CAAC;gBACnC,KAAK;gBACL,YAAY;gBACZ,OAAO;aACR,CAAC;SACH,CAAC,CACH;aACA,QAAQ,EAAE;KACd,CAAC;SACD,QAAQ,EAAE;CACd,CAAC,CAAA"}
|
|
@@ -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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/events/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/events/index.ts"],"names":[],"mappings":"AAQA,cAAc,iBAAiB,CAAA"}
|
|
@@ -346,6 +346,21 @@ declare const _default: {
|
|
|
346
346
|
display_name: {
|
|
347
347
|
type: string;
|
|
348
348
|
};
|
|
349
|
+
errors: {
|
|
350
|
+
items: {
|
|
351
|
+
properties: {
|
|
352
|
+
error_code: {
|
|
353
|
+
type: string;
|
|
354
|
+
};
|
|
355
|
+
message: {
|
|
356
|
+
type: string;
|
|
357
|
+
};
|
|
358
|
+
};
|
|
359
|
+
required: string[];
|
|
360
|
+
type: string;
|
|
361
|
+
};
|
|
362
|
+
type: string;
|
|
363
|
+
};
|
|
349
364
|
latch_metadata: {
|
|
350
365
|
nullable: boolean;
|
|
351
366
|
properties: {
|
|
@@ -2521,10 +2536,26 @@ declare const _default: {
|
|
|
2521
2536
|
};
|
|
2522
2537
|
event: {
|
|
2523
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
|
+
};
|
|
2524
2551
|
action_attempt_id: {
|
|
2525
2552
|
format: string;
|
|
2526
2553
|
type: string;
|
|
2527
2554
|
};
|
|
2555
|
+
client_session_id: {
|
|
2556
|
+
format: string;
|
|
2557
|
+
type: string;
|
|
2558
|
+
};
|
|
2528
2559
|
created_at: {
|
|
2529
2560
|
format: string;
|
|
2530
2561
|
type: string;
|
|
@@ -2533,6 +2564,10 @@ declare const _default: {
|
|
|
2533
2564
|
format: string;
|
|
2534
2565
|
type: string;
|
|
2535
2566
|
};
|
|
2567
|
+
enrollment_automation_id: {
|
|
2568
|
+
format: string;
|
|
2569
|
+
type: string;
|
|
2570
|
+
};
|
|
2536
2571
|
event_id: {
|
|
2537
2572
|
format: string;
|
|
2538
2573
|
type: string;
|
|
@@ -294,6 +294,17 @@ export default {
|
|
|
294
294
|
acs_system_id: { format: 'uuid', type: 'string' },
|
|
295
295
|
created_at: { format: 'date-time', type: 'string' },
|
|
296
296
|
display_name: { type: 'string' },
|
|
297
|
+
errors: {
|
|
298
|
+
items: {
|
|
299
|
+
properties: {
|
|
300
|
+
error_code: { type: 'string' },
|
|
301
|
+
message: { type: 'string' },
|
|
302
|
+
},
|
|
303
|
+
required: ['error_code', 'message'],
|
|
304
|
+
type: 'object',
|
|
305
|
+
},
|
|
306
|
+
type: 'array',
|
|
307
|
+
},
|
|
297
308
|
latch_metadata: {
|
|
298
309
|
nullable: true,
|
|
299
310
|
properties: {
|
|
@@ -352,6 +363,7 @@ export default {
|
|
|
352
363
|
'acs_system_id',
|
|
353
364
|
'created_at',
|
|
354
365
|
'latch_metadata',
|
|
366
|
+
'errors',
|
|
355
367
|
'visionline_metadata',
|
|
356
368
|
],
|
|
357
369
|
type: 'object',
|
|
@@ -2029,9 +2041,14 @@ export default {
|
|
|
2029
2041
|
},
|
|
2030
2042
|
event: {
|
|
2031
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' },
|
|
2032
2047
|
action_attempt_id: { format: 'uuid', type: 'string' },
|
|
2048
|
+
client_session_id: { format: 'uuid', type: 'string' },
|
|
2033
2049
|
created_at: { format: 'date-time', type: 'string' },
|
|
2034
2050
|
device_id: { format: 'uuid', type: 'string' },
|
|
2051
|
+
enrollment_automation_id: { format: 'uuid', type: 'string' },
|
|
2035
2052
|
event_id: { format: 'uuid', type: 'string' },
|
|
2036
2053
|
event_type: { type: 'string' },
|
|
2037
2054
|
occurred_at: { format: 'date-time', type: 'string' },
|
|
@@ -7830,6 +7847,8 @@ export default {
|
|
|
7830
7847
|
'acs_credential.deleted',
|
|
7831
7848
|
'enrollment_automation.deleted',
|
|
7832
7849
|
'client_session.deleted',
|
|
7850
|
+
'action_attempt.lock_door.succeeded',
|
|
7851
|
+
'action_attempt.lock_door.failed',
|
|
7833
7852
|
],
|
|
7834
7853
|
type: 'string',
|
|
7835
7854
|
},
|
|
@@ -7889,6 +7908,8 @@ export default {
|
|
|
7889
7908
|
'acs_credential.deleted',
|
|
7890
7909
|
'enrollment_automation.deleted',
|
|
7891
7910
|
'client_session.deleted',
|
|
7911
|
+
'action_attempt.lock_door.succeeded',
|
|
7912
|
+
'action_attempt.lock_door.failed',
|
|
7892
7913
|
],
|
|
7893
7914
|
type: 'string',
|
|
7894
7915
|
},
|