@seamapi/types 1.550.0 → 1.552.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 +182 -1
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +1429 -125
- package/dist/index.cjs +182 -1
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/acs/acs-credential.d.ts +8 -8
- package/lib/seam/connect/models/acs/metadata/assa-abloy-vostio.d.ts +2 -2
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +28 -28
- package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +12 -12
- package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +16 -16
- package/lib/seam/connect/models/batch.d.ts +1196 -131
- package/lib/seam/connect/models/devices/device-metadata.d.ts +95 -0
- package/lib/seam/connect/models/devices/device-metadata.js +62 -0
- package/lib/seam/connect/models/devices/device-metadata.js.map +1 -1
- package/lib/seam/connect/models/devices/device-type.d.ts +8 -1
- package/lib/seam/connect/models/devices/device-type.js +8 -0
- package/lib/seam/connect/models/devices/device-type.js.map +1 -1
- package/lib/seam/connect/models/devices/device.d.ts +136 -3
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +98 -3
- package/lib/seam/connect/models/events/access-methods.d.ts +12 -0
- package/lib/seam/connect/models/events/access-methods.js +8 -0
- package/lib/seam/connect/models/events/access-methods.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +6 -0
- package/lib/seam/connect/models/phones/phone-session.d.ts +14 -14
- package/lib/seam/connect/openapi.d.ts +128 -0
- package/lib/seam/connect/openapi.js +148 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +691 -25
- package/package.json +1 -1
- package/src/lib/seam/connect/models/devices/device-metadata.ts +62 -0
- package/src/lib/seam/connect/models/devices/device-type.ts +18 -0
- package/src/lib/seam/connect/models/events/access-methods.ts +12 -0
- package/src/lib/seam/connect/openapi.ts +162 -0
- package/src/lib/seam/connect/route-types.ts +691 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const unmanaged_device: z.ZodObject<Pick<{
|
|
3
3
|
device_id: z.ZodString;
|
|
4
|
-
device_type: z.ZodUnion<[z.ZodEnum<["akuvox_lock" | "august_lock" | "brivo_access_point" | "butterflymx_panel" | "avigilon_alta_entry" | "doorking_lock" | "genie_door" | "igloo_lock" | "linear_lock" | "lockly_lock" | "kwikset_lock" | "nuki_lock" | "salto_lock" | "schlage_lock" | "seam_relay" | "smartthings_lock" | "wyze_lock" | "yale_lock" | "two_n_intercom" | "controlbyweb_device" | "ttlock_lock" | "igloohome_lock" | "hubitat_lock" | "four_suites_door" | "dormakaba_oracode_door" | "tedee_lock" | "akiles_lock"]>, z.ZodEnum<["noiseaware_activity_zone" | "minut_sensor"]>, z.ZodEnum<["ecobee_thermostat" | "nest_thermostat" | "honeywell_resideo_thermostat" | "tado_thermostat" | "sensi_thermostat" | "smartthings_thermostat"]>, z.ZodEnum<["ios_phone" | "android_phone"]>]>;
|
|
4
|
+
device_type: z.ZodUnion<[z.ZodEnum<["akuvox_lock" | "august_lock" | "brivo_access_point" | "butterflymx_panel" | "avigilon_alta_entry" | "doorking_lock" | "genie_door" | "igloo_lock" | "linear_lock" | "lockly_lock" | "kwikset_lock" | "nuki_lock" | "salto_lock" | "schlage_lock" | "seam_relay" | "smartthings_lock" | "wyze_lock" | "yale_lock" | "two_n_intercom" | "controlbyweb_device" | "ttlock_lock" | "igloohome_lock" | "hubitat_lock" | "four_suites_door" | "dormakaba_oracode_door" | "tedee_lock" | "akiles_lock"]>, z.ZodEnum<["keynest_key"]>, z.ZodEnum<["noiseaware_activity_zone" | "minut_sensor"]>, z.ZodEnum<["ecobee_thermostat" | "nest_thermostat" | "honeywell_resideo_thermostat" | "tado_thermostat" | "sensi_thermostat" | "smartthings_thermostat"]>, z.ZodEnum<["ios_phone" | "android_phone"]>]>;
|
|
5
5
|
nickname: z.ZodOptional<z.ZodString>;
|
|
6
6
|
display_name: z.ZodString;
|
|
7
7
|
capabilities_supported: z.ZodArray<z.ZodEnum<["access_code", "lock", "noise_detection", "thermostat", "battery", "phone"]>, "many">;
|
|
@@ -962,11 +962,68 @@ export declare const unmanaged_device: z.ZodObject<Pick<{
|
|
|
962
962
|
product_type: string;
|
|
963
963
|
}>>;
|
|
964
964
|
keynest_metadata: z.ZodOptional<z.ZodObject<{
|
|
965
|
+
key_id: z.ZodOptional<z.ZodString>;
|
|
965
966
|
device_name: z.ZodOptional<z.ZodString>;
|
|
967
|
+
property_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
968
|
+
property_postcode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
969
|
+
key_notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
970
|
+
subscription_plan: z.ZodOptional<z.ZodString>;
|
|
971
|
+
status_type: z.ZodOptional<z.ZodString>;
|
|
972
|
+
current_or_last_store_id: z.ZodOptional<z.ZodNumber>;
|
|
973
|
+
last_movement: z.ZodOptional<z.ZodString>;
|
|
974
|
+
address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
975
|
+
current_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
976
|
+
current_user_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
977
|
+
current_user_email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
978
|
+
current_user_phone_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
979
|
+
current_user_company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
980
|
+
handover_method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
981
|
+
keynest_app_user: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
982
|
+
default_office_id: z.ZodOptional<z.ZodNumber>;
|
|
983
|
+
fob_id: z.ZodOptional<z.ZodNumber>;
|
|
984
|
+
has_photo: z.ZodOptional<z.ZodBoolean>;
|
|
966
985
|
}, "strip", z.ZodTypeAny, {
|
|
967
986
|
device_name?: string | undefined;
|
|
987
|
+
key_id?: string | undefined;
|
|
988
|
+
property_id?: string | null | undefined;
|
|
989
|
+
property_postcode?: string | null | undefined;
|
|
990
|
+
key_notes?: string | null | undefined;
|
|
991
|
+
subscription_plan?: string | undefined;
|
|
992
|
+
status_type?: string | undefined;
|
|
993
|
+
current_or_last_store_id?: number | undefined;
|
|
994
|
+
last_movement?: string | undefined;
|
|
995
|
+
address?: string | null | undefined;
|
|
996
|
+
current_status?: string | null | undefined;
|
|
997
|
+
current_user_name?: string | null | undefined;
|
|
998
|
+
current_user_email?: string | null | undefined;
|
|
999
|
+
current_user_phone_number?: string | null | undefined;
|
|
1000
|
+
current_user_company?: string | null | undefined;
|
|
1001
|
+
handover_method?: string | null | undefined;
|
|
1002
|
+
keynest_app_user?: string | null | undefined;
|
|
1003
|
+
default_office_id?: number | undefined;
|
|
1004
|
+
fob_id?: number | undefined;
|
|
1005
|
+
has_photo?: boolean | undefined;
|
|
968
1006
|
}, {
|
|
969
1007
|
device_name?: string | undefined;
|
|
1008
|
+
key_id?: string | undefined;
|
|
1009
|
+
property_id?: string | null | undefined;
|
|
1010
|
+
property_postcode?: string | null | undefined;
|
|
1011
|
+
key_notes?: string | null | undefined;
|
|
1012
|
+
subscription_plan?: string | undefined;
|
|
1013
|
+
status_type?: string | undefined;
|
|
1014
|
+
current_or_last_store_id?: number | undefined;
|
|
1015
|
+
last_movement?: string | undefined;
|
|
1016
|
+
address?: string | null | undefined;
|
|
1017
|
+
current_status?: string | null | undefined;
|
|
1018
|
+
current_user_name?: string | null | undefined;
|
|
1019
|
+
current_user_email?: string | null | undefined;
|
|
1020
|
+
current_user_phone_number?: string | null | undefined;
|
|
1021
|
+
current_user_company?: string | null | undefined;
|
|
1022
|
+
handover_method?: string | null | undefined;
|
|
1023
|
+
keynest_app_user?: string | null | undefined;
|
|
1024
|
+
default_office_id?: number | undefined;
|
|
1025
|
+
fob_id?: number | undefined;
|
|
1026
|
+
has_photo?: boolean | undefined;
|
|
970
1027
|
}>>;
|
|
971
1028
|
}, "strip", z.ZodTypeAny, {
|
|
972
1029
|
ecobee_metadata?: {
|
|
@@ -1204,6 +1261,25 @@ export declare const unmanaged_device: z.ZodObject<Pick<{
|
|
|
1204
1261
|
} | undefined;
|
|
1205
1262
|
keynest_metadata?: {
|
|
1206
1263
|
device_name?: string | undefined;
|
|
1264
|
+
key_id?: string | undefined;
|
|
1265
|
+
property_id?: string | null | undefined;
|
|
1266
|
+
property_postcode?: string | null | undefined;
|
|
1267
|
+
key_notes?: string | null | undefined;
|
|
1268
|
+
subscription_plan?: string | undefined;
|
|
1269
|
+
status_type?: string | undefined;
|
|
1270
|
+
current_or_last_store_id?: number | undefined;
|
|
1271
|
+
last_movement?: string | undefined;
|
|
1272
|
+
address?: string | null | undefined;
|
|
1273
|
+
current_status?: string | null | undefined;
|
|
1274
|
+
current_user_name?: string | null | undefined;
|
|
1275
|
+
current_user_email?: string | null | undefined;
|
|
1276
|
+
current_user_phone_number?: string | null | undefined;
|
|
1277
|
+
current_user_company?: string | null | undefined;
|
|
1278
|
+
handover_method?: string | null | undefined;
|
|
1279
|
+
keynest_app_user?: string | null | undefined;
|
|
1280
|
+
default_office_id?: number | undefined;
|
|
1281
|
+
fob_id?: number | undefined;
|
|
1282
|
+
has_photo?: boolean | undefined;
|
|
1207
1283
|
} | undefined;
|
|
1208
1284
|
}, {
|
|
1209
1285
|
ecobee_metadata?: {
|
|
@@ -1441,6 +1517,25 @@ export declare const unmanaged_device: z.ZodObject<Pick<{
|
|
|
1441
1517
|
} | undefined;
|
|
1442
1518
|
keynest_metadata?: {
|
|
1443
1519
|
device_name?: string | undefined;
|
|
1520
|
+
key_id?: string | undefined;
|
|
1521
|
+
property_id?: string | null | undefined;
|
|
1522
|
+
property_postcode?: string | null | undefined;
|
|
1523
|
+
key_notes?: string | null | undefined;
|
|
1524
|
+
subscription_plan?: string | undefined;
|
|
1525
|
+
status_type?: string | undefined;
|
|
1526
|
+
current_or_last_store_id?: number | undefined;
|
|
1527
|
+
last_movement?: string | undefined;
|
|
1528
|
+
address?: string | null | undefined;
|
|
1529
|
+
current_status?: string | null | undefined;
|
|
1530
|
+
current_user_name?: string | null | undefined;
|
|
1531
|
+
current_user_email?: string | null | undefined;
|
|
1532
|
+
current_user_phone_number?: string | null | undefined;
|
|
1533
|
+
current_user_company?: string | null | undefined;
|
|
1534
|
+
handover_method?: string | null | undefined;
|
|
1535
|
+
keynest_app_user?: string | null | undefined;
|
|
1536
|
+
default_office_id?: number | undefined;
|
|
1537
|
+
fob_id?: number | undefined;
|
|
1538
|
+
has_photo?: boolean | undefined;
|
|
1444
1539
|
} | undefined;
|
|
1445
1540
|
}>>, z.ZodIntersection<z.ZodObject<{
|
|
1446
1541
|
_experimental_supported_code_from_access_codes_lengths: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
|
|
@@ -3086,7 +3181,7 @@ export declare const unmanaged_device: z.ZodObject<Pick<{
|
|
|
3086
3181
|
warning_code: "unknown_issue_with_phone";
|
|
3087
3182
|
})[];
|
|
3088
3183
|
custom_metadata: Record<string, string | boolean>;
|
|
3089
|
-
device_type: ("akuvox_lock" | "august_lock" | "brivo_access_point" | "butterflymx_panel" | "avigilon_alta_entry" | "doorking_lock" | "genie_door" | "igloo_lock" | "linear_lock" | "lockly_lock" | "kwikset_lock" | "nuki_lock" | "salto_lock" | "schlage_lock" | "seam_relay" | "smartthings_lock" | "wyze_lock" | "yale_lock" | "two_n_intercom" | "controlbyweb_device" | "ttlock_lock" | "igloohome_lock" | "hubitat_lock" | "four_suites_door" | "dormakaba_oracode_door" | "tedee_lock" | "akiles_lock") | ("noiseaware_activity_zone" | "minut_sensor") | ("ecobee_thermostat" | "nest_thermostat" | "honeywell_resideo_thermostat" | "tado_thermostat" | "sensi_thermostat" | "smartthings_thermostat") | ("ios_phone" | "android_phone");
|
|
3184
|
+
device_type: ("akuvox_lock" | "august_lock" | "brivo_access_point" | "butterflymx_panel" | "avigilon_alta_entry" | "doorking_lock" | "genie_door" | "igloo_lock" | "linear_lock" | "lockly_lock" | "kwikset_lock" | "nuki_lock" | "salto_lock" | "schlage_lock" | "seam_relay" | "smartthings_lock" | "wyze_lock" | "yale_lock" | "two_n_intercom" | "controlbyweb_device" | "ttlock_lock" | "igloohome_lock" | "hubitat_lock" | "four_suites_door" | "dormakaba_oracode_door" | "tedee_lock" | "akiles_lock") | "keynest_key" | ("noiseaware_activity_zone" | "minut_sensor") | ("ecobee_thermostat" | "nest_thermostat" | "honeywell_resideo_thermostat" | "tado_thermostat" | "sensi_thermostat" | "smartthings_thermostat") | ("ios_phone" | "android_phone");
|
|
3090
3185
|
capabilities_supported: ("access_code" | "lock" | "noise_detection" | "thermostat" | "battery" | "phone")[];
|
|
3091
3186
|
properties: {
|
|
3092
3187
|
name: string;
|
|
@@ -3318,7 +3413,7 @@ export declare const unmanaged_device: z.ZodObject<Pick<{
|
|
|
3318
3413
|
warning_code: "unknown_issue_with_phone";
|
|
3319
3414
|
})[];
|
|
3320
3415
|
custom_metadata: Record<string, string | boolean>;
|
|
3321
|
-
device_type: ("akuvox_lock" | "august_lock" | "brivo_access_point" | "butterflymx_panel" | "avigilon_alta_entry" | "doorking_lock" | "genie_door" | "igloo_lock" | "linear_lock" | "lockly_lock" | "kwikset_lock" | "nuki_lock" | "salto_lock" | "schlage_lock" | "seam_relay" | "smartthings_lock" | "wyze_lock" | "yale_lock" | "two_n_intercom" | "controlbyweb_device" | "ttlock_lock" | "igloohome_lock" | "hubitat_lock" | "four_suites_door" | "dormakaba_oracode_door" | "tedee_lock" | "akiles_lock") | ("noiseaware_activity_zone" | "minut_sensor") | ("ecobee_thermostat" | "nest_thermostat" | "honeywell_resideo_thermostat" | "tado_thermostat" | "sensi_thermostat" | "smartthings_thermostat") | ("ios_phone" | "android_phone");
|
|
3416
|
+
device_type: ("akuvox_lock" | "august_lock" | "brivo_access_point" | "butterflymx_panel" | "avigilon_alta_entry" | "doorking_lock" | "genie_door" | "igloo_lock" | "linear_lock" | "lockly_lock" | "kwikset_lock" | "nuki_lock" | "salto_lock" | "schlage_lock" | "seam_relay" | "smartthings_lock" | "wyze_lock" | "yale_lock" | "two_n_intercom" | "controlbyweb_device" | "ttlock_lock" | "igloohome_lock" | "hubitat_lock" | "four_suites_door" | "dormakaba_oracode_door" | "tedee_lock" | "akiles_lock") | "keynest_key" | ("noiseaware_activity_zone" | "minut_sensor") | ("ecobee_thermostat" | "nest_thermostat" | "honeywell_resideo_thermostat" | "tado_thermostat" | "sensi_thermostat" | "smartthings_thermostat") | ("ios_phone" | "android_phone");
|
|
3322
3417
|
capabilities_supported: ("access_code" | "lock" | "noise_detection" | "thermostat" | "battery" | "phone")[];
|
|
3323
3418
|
properties: {
|
|
3324
3419
|
name: string;
|
|
@@ -11,6 +11,7 @@ export declare const access_method_issued_event: z.ZodObject<{
|
|
|
11
11
|
} & {
|
|
12
12
|
event_type: z.ZodLiteral<"access_method.issued">;
|
|
13
13
|
code: z.ZodOptional<z.ZodString>;
|
|
14
|
+
is_backup_code: z.ZodOptional<z.ZodBoolean>;
|
|
14
15
|
}, "strip", z.ZodTypeAny, {
|
|
15
16
|
workspace_id: string;
|
|
16
17
|
created_at: string;
|
|
@@ -21,6 +22,7 @@ export declare const access_method_issued_event: z.ZodObject<{
|
|
|
21
22
|
access_grant_ids: string[];
|
|
22
23
|
code?: string | undefined;
|
|
23
24
|
access_grant_keys?: string[] | undefined;
|
|
25
|
+
is_backup_code?: boolean | undefined;
|
|
24
26
|
}, {
|
|
25
27
|
workspace_id: string;
|
|
26
28
|
created_at: string;
|
|
@@ -31,6 +33,7 @@ export declare const access_method_issued_event: z.ZodObject<{
|
|
|
31
33
|
access_grant_ids: string[];
|
|
32
34
|
code?: string | undefined;
|
|
33
35
|
access_grant_keys?: string[] | undefined;
|
|
36
|
+
is_backup_code?: boolean | undefined;
|
|
34
37
|
}>;
|
|
35
38
|
export type AccessMethodIssuedEvent = z.infer<typeof access_method_issued_event>;
|
|
36
39
|
export declare const access_method_card_encoding_required_event: z.ZodObject<{
|
|
@@ -136,6 +139,7 @@ export declare const access_method_reissued_event: z.ZodObject<{
|
|
|
136
139
|
} & {
|
|
137
140
|
event_type: z.ZodLiteral<"access_method.reissued">;
|
|
138
141
|
code: z.ZodOptional<z.ZodString>;
|
|
142
|
+
is_backup_code: z.ZodOptional<z.ZodBoolean>;
|
|
139
143
|
}, "strip", z.ZodTypeAny, {
|
|
140
144
|
workspace_id: string;
|
|
141
145
|
created_at: string;
|
|
@@ -146,6 +150,7 @@ export declare const access_method_reissued_event: z.ZodObject<{
|
|
|
146
150
|
access_grant_ids: string[];
|
|
147
151
|
code?: string | undefined;
|
|
148
152
|
access_grant_keys?: string[] | undefined;
|
|
153
|
+
is_backup_code?: boolean | undefined;
|
|
149
154
|
}, {
|
|
150
155
|
workspace_id: string;
|
|
151
156
|
created_at: string;
|
|
@@ -156,6 +161,7 @@ export declare const access_method_reissued_event: z.ZodObject<{
|
|
|
156
161
|
access_grant_ids: string[];
|
|
157
162
|
code?: string | undefined;
|
|
158
163
|
access_grant_keys?: string[] | undefined;
|
|
164
|
+
is_backup_code?: boolean | undefined;
|
|
159
165
|
}>;
|
|
160
166
|
export type AccessMethodRevokedEvent = z.infer<typeof access_method_revoked_event>;
|
|
161
167
|
export declare const access_method_events: readonly [z.ZodObject<{
|
|
@@ -170,6 +176,7 @@ export declare const access_method_events: readonly [z.ZodObject<{
|
|
|
170
176
|
} & {
|
|
171
177
|
event_type: z.ZodLiteral<"access_method.issued">;
|
|
172
178
|
code: z.ZodOptional<z.ZodString>;
|
|
179
|
+
is_backup_code: z.ZodOptional<z.ZodBoolean>;
|
|
173
180
|
}, "strip", z.ZodTypeAny, {
|
|
174
181
|
workspace_id: string;
|
|
175
182
|
created_at: string;
|
|
@@ -180,6 +187,7 @@ export declare const access_method_events: readonly [z.ZodObject<{
|
|
|
180
187
|
access_grant_ids: string[];
|
|
181
188
|
code?: string | undefined;
|
|
182
189
|
access_grant_keys?: string[] | undefined;
|
|
190
|
+
is_backup_code?: boolean | undefined;
|
|
183
191
|
}, {
|
|
184
192
|
workspace_id: string;
|
|
185
193
|
created_at: string;
|
|
@@ -190,6 +198,7 @@ export declare const access_method_events: readonly [z.ZodObject<{
|
|
|
190
198
|
access_grant_ids: string[];
|
|
191
199
|
code?: string | undefined;
|
|
192
200
|
access_grant_keys?: string[] | undefined;
|
|
201
|
+
is_backup_code?: boolean | undefined;
|
|
193
202
|
}>, z.ZodObject<{
|
|
194
203
|
event_id: z.ZodString;
|
|
195
204
|
workspace_id: z.ZodString;
|
|
@@ -289,6 +298,7 @@ export declare const access_method_events: readonly [z.ZodObject<{
|
|
|
289
298
|
} & {
|
|
290
299
|
event_type: z.ZodLiteral<"access_method.reissued">;
|
|
291
300
|
code: z.ZodOptional<z.ZodString>;
|
|
301
|
+
is_backup_code: z.ZodOptional<z.ZodBoolean>;
|
|
292
302
|
}, "strip", z.ZodTypeAny, {
|
|
293
303
|
workspace_id: string;
|
|
294
304
|
created_at: string;
|
|
@@ -299,6 +309,7 @@ export declare const access_method_events: readonly [z.ZodObject<{
|
|
|
299
309
|
access_grant_ids: string[];
|
|
300
310
|
code?: string | undefined;
|
|
301
311
|
access_grant_keys?: string[] | undefined;
|
|
312
|
+
is_backup_code?: boolean | undefined;
|
|
302
313
|
}, {
|
|
303
314
|
workspace_id: string;
|
|
304
315
|
created_at: string;
|
|
@@ -309,4 +320,5 @@ export declare const access_method_events: readonly [z.ZodObject<{
|
|
|
309
320
|
access_grant_ids: string[];
|
|
310
321
|
code?: string | undefined;
|
|
311
322
|
access_grant_keys?: string[] | undefined;
|
|
323
|
+
is_backup_code?: boolean | undefined;
|
|
312
324
|
}>];
|
|
@@ -19,6 +19,10 @@ export const access_method_issued_event = access_method_event.extend({
|
|
|
19
19
|
.string()
|
|
20
20
|
.optional()
|
|
21
21
|
.describe("The actual PIN code for code access methods (only present when mode is 'code')."),
|
|
22
|
+
is_backup_code: z
|
|
23
|
+
.boolean()
|
|
24
|
+
.optional()
|
|
25
|
+
.describe("Indicates whether the code is a backup code (only present when mode is 'code' and a backup code was used)."),
|
|
22
26
|
}).describe(`
|
|
23
27
|
---
|
|
24
28
|
route_path: /access_methods
|
|
@@ -55,6 +59,10 @@ export const access_method_reissued_event = access_method_event.extend({
|
|
|
55
59
|
.string()
|
|
56
60
|
.optional()
|
|
57
61
|
.describe("The actual PIN code for code access methods (only present when mode is 'code')."),
|
|
62
|
+
is_backup_code: z
|
|
63
|
+
.boolean()
|
|
64
|
+
.optional()
|
|
65
|
+
.describe("Indicates whether the code is a backup code (only present when mode is 'code' and a backup code was used)."),
|
|
58
66
|
}).describe(`
|
|
59
67
|
---
|
|
60
68
|
route_path: /access_methods
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"access-methods.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/events/access-methods.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE1C,MAAM,mBAAmB,GAAG,YAAY,CAAC,MAAM,CAAC;IAC9C,gBAAgB,EAAE,CAAC;SAChB,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CAAC,mCAAmC,CAAC;IAChD,gBAAgB,EAAE,CAAC;SAChB,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;SACxB,QAAQ,CAAC,8DAA8D,CAAC;IAC3E,iBAAiB,EAAE,CAAC;SACjB,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;SACjB,QAAQ,EAAE;SACV,QAAQ,CACP,4EAA4E,CAC7E;CACJ,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAG,mBAAmB,CAAC,MAAM,CAAC;IACnE,UAAU,EAAE,CAAC,CAAC,OAA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,GAAG,mBAAmB,CAAC,MAAM,CAAC;IACpE,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,uBAAuB,CAAC;CAC/C,CAAC,CAAC,QAAQ,CAAC;;;;;GAKT,CAAC,CAAA;AAEJ,MAAM,CAAC,MAAM,4BAA4B,GAAG,mBAAmB,CAAC,MAAM,CAAC;IACrE,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,wBAAwB,CAAC;IAC/C,IAAI,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,iFAAiF,CAClF;IACH,cAAc,EAAE,CAAC;SACd,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CACP,4GAA4G,CAC7G;CACJ,CAAC,CAAC,QAAQ,CAAC;;;;;GAKT,CAAC,CAAA;AAMJ,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,0BAA0B;IAC1B,2BAA2B;IAC3B,0CAA0C;IAC1C,2BAA2B;IAC3B,4BAA4B;CACpB,CAAA"}
|
|
@@ -739,6 +739,7 @@ export declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObj
|
|
|
739
739
|
} & {
|
|
740
740
|
event_type: z.ZodLiteral<"access_method.issued">;
|
|
741
741
|
code: z.ZodOptional<z.ZodString>;
|
|
742
|
+
is_backup_code: z.ZodOptional<z.ZodBoolean>;
|
|
742
743
|
}, "strip", z.ZodTypeAny, {
|
|
743
744
|
workspace_id: string;
|
|
744
745
|
created_at: string;
|
|
@@ -749,6 +750,7 @@ export declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObj
|
|
|
749
750
|
access_grant_ids: string[];
|
|
750
751
|
code?: string | undefined;
|
|
751
752
|
access_grant_keys?: string[] | undefined;
|
|
753
|
+
is_backup_code?: boolean | undefined;
|
|
752
754
|
}, {
|
|
753
755
|
workspace_id: string;
|
|
754
756
|
created_at: string;
|
|
@@ -759,6 +761,7 @@ export declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObj
|
|
|
759
761
|
access_grant_ids: string[];
|
|
760
762
|
code?: string | undefined;
|
|
761
763
|
access_grant_keys?: string[] | undefined;
|
|
764
|
+
is_backup_code?: boolean | undefined;
|
|
762
765
|
}>, z.ZodObject<{
|
|
763
766
|
event_id: z.ZodString;
|
|
764
767
|
workspace_id: z.ZodString;
|
|
@@ -858,6 +861,7 @@ export declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObj
|
|
|
858
861
|
} & {
|
|
859
862
|
event_type: z.ZodLiteral<"access_method.reissued">;
|
|
860
863
|
code: z.ZodOptional<z.ZodString>;
|
|
864
|
+
is_backup_code: z.ZodOptional<z.ZodBoolean>;
|
|
861
865
|
}, "strip", z.ZodTypeAny, {
|
|
862
866
|
workspace_id: string;
|
|
863
867
|
created_at: string;
|
|
@@ -868,6 +872,7 @@ export declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObj
|
|
|
868
872
|
access_grant_ids: string[];
|
|
869
873
|
code?: string | undefined;
|
|
870
874
|
access_grant_keys?: string[] | undefined;
|
|
875
|
+
is_backup_code?: boolean | undefined;
|
|
871
876
|
}, {
|
|
872
877
|
workspace_id: string;
|
|
873
878
|
created_at: string;
|
|
@@ -878,6 +883,7 @@ export declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObj
|
|
|
878
883
|
access_grant_ids: string[];
|
|
879
884
|
code?: string | undefined;
|
|
880
885
|
access_grant_keys?: string[] | undefined;
|
|
886
|
+
is_backup_code?: boolean | undefined;
|
|
881
887
|
}>, z.ZodObject<{
|
|
882
888
|
event_id: z.ZodString;
|
|
883
889
|
workspace_id: z.ZodString;
|
|
@@ -165,17 +165,17 @@ declare const phone_provider_session: z.ZodObject<{
|
|
|
165
165
|
door_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
166
166
|
endpoint_id: z.ZodOptional<z.ZodString>;
|
|
167
167
|
}, "strip", z.ZodTypeAny, {
|
|
168
|
+
key_id?: string | undefined;
|
|
168
169
|
endpoint_id?: string | undefined;
|
|
169
170
|
auto_join?: boolean | undefined;
|
|
170
171
|
override_guest_acs_entrance_ids?: string[] | undefined;
|
|
171
|
-
key_id?: string | undefined;
|
|
172
172
|
key_issuing_request_id?: string | undefined;
|
|
173
173
|
door_names?: string[] | undefined;
|
|
174
174
|
}, {
|
|
175
|
+
key_id?: string | undefined;
|
|
175
176
|
endpoint_id?: string | undefined;
|
|
176
177
|
auto_join?: boolean | undefined;
|
|
177
178
|
override_guest_acs_entrance_ids?: string[] | undefined;
|
|
178
|
-
key_id?: string | undefined;
|
|
179
179
|
key_issuing_request_id?: string | undefined;
|
|
180
180
|
door_names?: string[] | undefined;
|
|
181
181
|
}>>;
|
|
@@ -592,10 +592,10 @@ declare const phone_provider_session: z.ZodObject<{
|
|
|
592
592
|
credential_id?: string | undefined;
|
|
593
593
|
} | undefined;
|
|
594
594
|
assa_abloy_vostio_metadata?: {
|
|
595
|
+
key_id?: string | undefined;
|
|
595
596
|
endpoint_id?: string | undefined;
|
|
596
597
|
auto_join?: boolean | undefined;
|
|
597
598
|
override_guest_acs_entrance_ids?: string[] | undefined;
|
|
598
|
-
key_id?: string | undefined;
|
|
599
599
|
key_issuing_request_id?: string | undefined;
|
|
600
600
|
door_names?: string[] | undefined;
|
|
601
601
|
} | undefined;
|
|
@@ -729,10 +729,10 @@ declare const phone_provider_session: z.ZodObject<{
|
|
|
729
729
|
credential_id?: string | undefined;
|
|
730
730
|
} | undefined;
|
|
731
731
|
assa_abloy_vostio_metadata?: {
|
|
732
|
+
key_id?: string | undefined;
|
|
732
733
|
endpoint_id?: string | undefined;
|
|
733
734
|
auto_join?: boolean | undefined;
|
|
734
735
|
override_guest_acs_entrance_ids?: string[] | undefined;
|
|
735
|
-
key_id?: string | undefined;
|
|
736
736
|
key_issuing_request_id?: string | undefined;
|
|
737
737
|
door_names?: string[] | undefined;
|
|
738
738
|
} | undefined;
|
|
@@ -868,10 +868,10 @@ declare const phone_provider_session: z.ZodObject<{
|
|
|
868
868
|
credential_id?: string | undefined;
|
|
869
869
|
} | undefined;
|
|
870
870
|
assa_abloy_vostio_metadata?: {
|
|
871
|
+
key_id?: string | undefined;
|
|
871
872
|
endpoint_id?: string | undefined;
|
|
872
873
|
auto_join?: boolean | undefined;
|
|
873
874
|
override_guest_acs_entrance_ids?: string[] | undefined;
|
|
874
|
-
key_id?: string | undefined;
|
|
875
875
|
key_issuing_request_id?: string | undefined;
|
|
876
876
|
door_names?: string[] | undefined;
|
|
877
877
|
} | undefined;
|
|
@@ -1013,10 +1013,10 @@ declare const phone_provider_session: z.ZodObject<{
|
|
|
1013
1013
|
credential_id?: string | undefined;
|
|
1014
1014
|
} | undefined;
|
|
1015
1015
|
assa_abloy_vostio_metadata?: {
|
|
1016
|
+
key_id?: string | undefined;
|
|
1016
1017
|
endpoint_id?: string | undefined;
|
|
1017
1018
|
auto_join?: boolean | undefined;
|
|
1018
1019
|
override_guest_acs_entrance_ids?: string[] | undefined;
|
|
1019
|
-
key_id?: string | undefined;
|
|
1020
1020
|
key_issuing_request_id?: string | undefined;
|
|
1021
1021
|
door_names?: string[] | undefined;
|
|
1022
1022
|
} | undefined;
|
|
@@ -1208,17 +1208,17 @@ export declare const phone_session: z.ZodObject<{
|
|
|
1208
1208
|
door_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1209
1209
|
endpoint_id: z.ZodOptional<z.ZodString>;
|
|
1210
1210
|
}, "strip", z.ZodTypeAny, {
|
|
1211
|
+
key_id?: string | undefined;
|
|
1211
1212
|
endpoint_id?: string | undefined;
|
|
1212
1213
|
auto_join?: boolean | undefined;
|
|
1213
1214
|
override_guest_acs_entrance_ids?: string[] | undefined;
|
|
1214
|
-
key_id?: string | undefined;
|
|
1215
1215
|
key_issuing_request_id?: string | undefined;
|
|
1216
1216
|
door_names?: string[] | undefined;
|
|
1217
1217
|
}, {
|
|
1218
|
+
key_id?: string | undefined;
|
|
1218
1219
|
endpoint_id?: string | undefined;
|
|
1219
1220
|
auto_join?: boolean | undefined;
|
|
1220
1221
|
override_guest_acs_entrance_ids?: string[] | undefined;
|
|
1221
|
-
key_id?: string | undefined;
|
|
1222
1222
|
key_issuing_request_id?: string | undefined;
|
|
1223
1223
|
door_names?: string[] | undefined;
|
|
1224
1224
|
}>>;
|
|
@@ -1635,10 +1635,10 @@ export declare const phone_session: z.ZodObject<{
|
|
|
1635
1635
|
credential_id?: string | undefined;
|
|
1636
1636
|
} | undefined;
|
|
1637
1637
|
assa_abloy_vostio_metadata?: {
|
|
1638
|
+
key_id?: string | undefined;
|
|
1638
1639
|
endpoint_id?: string | undefined;
|
|
1639
1640
|
auto_join?: boolean | undefined;
|
|
1640
1641
|
override_guest_acs_entrance_ids?: string[] | undefined;
|
|
1641
|
-
key_id?: string | undefined;
|
|
1642
1642
|
key_issuing_request_id?: string | undefined;
|
|
1643
1643
|
door_names?: string[] | undefined;
|
|
1644
1644
|
} | undefined;
|
|
@@ -1772,10 +1772,10 @@ export declare const phone_session: z.ZodObject<{
|
|
|
1772
1772
|
credential_id?: string | undefined;
|
|
1773
1773
|
} | undefined;
|
|
1774
1774
|
assa_abloy_vostio_metadata?: {
|
|
1775
|
+
key_id?: string | undefined;
|
|
1775
1776
|
endpoint_id?: string | undefined;
|
|
1776
1777
|
auto_join?: boolean | undefined;
|
|
1777
1778
|
override_guest_acs_entrance_ids?: string[] | undefined;
|
|
1778
|
-
key_id?: string | undefined;
|
|
1779
1779
|
key_issuing_request_id?: string | undefined;
|
|
1780
1780
|
door_names?: string[] | undefined;
|
|
1781
1781
|
} | undefined;
|
|
@@ -1911,10 +1911,10 @@ export declare const phone_session: z.ZodObject<{
|
|
|
1911
1911
|
credential_id?: string | undefined;
|
|
1912
1912
|
} | undefined;
|
|
1913
1913
|
assa_abloy_vostio_metadata?: {
|
|
1914
|
+
key_id?: string | undefined;
|
|
1914
1915
|
endpoint_id?: string | undefined;
|
|
1915
1916
|
auto_join?: boolean | undefined;
|
|
1916
1917
|
override_guest_acs_entrance_ids?: string[] | undefined;
|
|
1917
|
-
key_id?: string | undefined;
|
|
1918
1918
|
key_issuing_request_id?: string | undefined;
|
|
1919
1919
|
door_names?: string[] | undefined;
|
|
1920
1920
|
} | undefined;
|
|
@@ -2056,10 +2056,10 @@ export declare const phone_session: z.ZodObject<{
|
|
|
2056
2056
|
credential_id?: string | undefined;
|
|
2057
2057
|
} | undefined;
|
|
2058
2058
|
assa_abloy_vostio_metadata?: {
|
|
2059
|
+
key_id?: string | undefined;
|
|
2059
2060
|
endpoint_id?: string | undefined;
|
|
2060
2061
|
auto_join?: boolean | undefined;
|
|
2061
2062
|
override_guest_acs_entrance_ids?: string[] | undefined;
|
|
2062
|
-
key_id?: string | undefined;
|
|
2063
2063
|
key_issuing_request_id?: string | undefined;
|
|
2064
2064
|
door_names?: string[] | undefined;
|
|
2065
2065
|
} | undefined;
|
|
@@ -2315,10 +2315,10 @@ export declare const phone_session: z.ZodObject<{
|
|
|
2315
2315
|
credential_id?: string | undefined;
|
|
2316
2316
|
} | undefined;
|
|
2317
2317
|
assa_abloy_vostio_metadata?: {
|
|
2318
|
+
key_id?: string | undefined;
|
|
2318
2319
|
endpoint_id?: string | undefined;
|
|
2319
2320
|
auto_join?: boolean | undefined;
|
|
2320
2321
|
override_guest_acs_entrance_ids?: string[] | undefined;
|
|
2321
|
-
key_id?: string | undefined;
|
|
2322
2322
|
key_issuing_request_id?: string | undefined;
|
|
2323
2323
|
door_names?: string[] | undefined;
|
|
2324
2324
|
} | undefined;
|
|
@@ -2490,10 +2490,10 @@ export declare const phone_session: z.ZodObject<{
|
|
|
2490
2490
|
credential_id?: string | undefined;
|
|
2491
2491
|
} | undefined;
|
|
2492
2492
|
assa_abloy_vostio_metadata?: {
|
|
2493
|
+
key_id?: string | undefined;
|
|
2493
2494
|
endpoint_id?: string | undefined;
|
|
2494
2495
|
auto_join?: boolean | undefined;
|
|
2495
2496
|
override_guest_acs_entrance_ids?: string[] | undefined;
|
|
2496
|
-
key_id?: string | undefined;
|
|
2497
2497
|
key_issuing_request_id?: string | undefined;
|
|
2498
2498
|
door_names?: string[] | undefined;
|
|
2499
2499
|
} | undefined;
|