@seamapi/types 1.60.1 → 1.62.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 +174 -48
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +467 -169
- package/lib/seam/connect/openapi.d.ts +382 -156
- package/lib/seam/connect/openapi.js +174 -48
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +85 -13
- package/lib/seam/connect/unstable/models/acs/user.d.ts +4 -4
- package/lib/seam/connect/unstable/models/acs/user.js +1 -0
- package/lib/seam/connect/unstable/models/acs/user.js.map +1 -1
- package/lib/seam/connect/unstable/models/devices/unmanaged-device.d.ts +70 -14
- package/lib/seam/connect/unstable/models/devices/unmanaged-device.js +12 -22
- package/lib/seam/connect/unstable/models/devices/unmanaged-device.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/seam/connect/openapi.ts +181 -48
- package/src/lib/seam/connect/route-types.ts +113 -13
- package/src/lib/seam/connect/unstable/models/acs/user.ts +1 -0
- package/src/lib/seam/connect/unstable/models/devices/unmanaged-device.ts +12 -26
|
@@ -705,7 +705,7 @@ export interface Routes {
|
|
|
705
705
|
workspace_id: string;
|
|
706
706
|
created_at: string;
|
|
707
707
|
display_name: string;
|
|
708
|
-
external_type: 'pti_user' | 'brivo_user' | 'hid_cm_user';
|
|
708
|
+
external_type: 'pti_user' | 'brivo_user' | 'hid_cm_user' | 'salto_site_user';
|
|
709
709
|
external_type_display_name: string;
|
|
710
710
|
is_suspended: boolean;
|
|
711
711
|
full_name?: string | undefined;
|
|
@@ -1064,7 +1064,7 @@ export interface Routes {
|
|
|
1064
1064
|
workspace_id: string;
|
|
1065
1065
|
created_at: string;
|
|
1066
1066
|
display_name: string;
|
|
1067
|
-
external_type: 'pti_user' | 'brivo_user' | 'hid_cm_user';
|
|
1067
|
+
external_type: 'pti_user' | 'brivo_user' | 'hid_cm_user' | 'salto_site_user';
|
|
1068
1068
|
external_type_display_name: string;
|
|
1069
1069
|
is_suspended: boolean;
|
|
1070
1070
|
full_name?: string | undefined;
|
|
@@ -1103,7 +1103,7 @@ export interface Routes {
|
|
|
1103
1103
|
workspace_id: string;
|
|
1104
1104
|
created_at: string;
|
|
1105
1105
|
display_name: string;
|
|
1106
|
-
external_type: 'pti_user' | 'brivo_user' | 'hid_cm_user';
|
|
1106
|
+
external_type: 'pti_user' | 'brivo_user' | 'hid_cm_user' | 'salto_site_user';
|
|
1107
1107
|
external_type_display_name: string;
|
|
1108
1108
|
is_suspended: boolean;
|
|
1109
1109
|
full_name?: string | undefined;
|
|
@@ -1131,7 +1131,7 @@ export interface Routes {
|
|
|
1131
1131
|
workspace_id: string;
|
|
1132
1132
|
created_at: string;
|
|
1133
1133
|
display_name: string;
|
|
1134
|
-
external_type: 'pti_user' | 'brivo_user' | 'hid_cm_user';
|
|
1134
|
+
external_type: 'pti_user' | 'brivo_user' | 'hid_cm_user' | 'salto_site_user';
|
|
1135
1135
|
external_type_display_name: string;
|
|
1136
1136
|
is_suspended: boolean;
|
|
1137
1137
|
full_name?: string | undefined;
|
|
@@ -1573,6 +1573,7 @@ export interface Routes {
|
|
|
1573
1573
|
errors?: any;
|
|
1574
1574
|
warnings?: any;
|
|
1575
1575
|
custom_metadata?: Record<string, string | number | boolean | null> | undefined;
|
|
1576
|
+
automatically_manage_new_devices: boolean;
|
|
1576
1577
|
};
|
|
1577
1578
|
};
|
|
1578
1579
|
};
|
|
@@ -1599,9 +1600,40 @@ export interface Routes {
|
|
|
1599
1600
|
errors?: any;
|
|
1600
1601
|
warnings?: any;
|
|
1601
1602
|
custom_metadata?: Record<string, string | number | boolean | null> | undefined;
|
|
1603
|
+
automatically_manage_new_devices: boolean;
|
|
1602
1604
|
}>;
|
|
1603
1605
|
};
|
|
1604
1606
|
};
|
|
1607
|
+
'/connected_accounts/update': {
|
|
1608
|
+
route: '/connected_accounts/update';
|
|
1609
|
+
method: 'POST';
|
|
1610
|
+
queryParams: {};
|
|
1611
|
+
jsonBody: {
|
|
1612
|
+
connected_account_id: string;
|
|
1613
|
+
automatically_manage_new_devices?: boolean | undefined;
|
|
1614
|
+
};
|
|
1615
|
+
commonParams: {};
|
|
1616
|
+
formData: {};
|
|
1617
|
+
jsonResponse: {
|
|
1618
|
+
connected_account: {
|
|
1619
|
+
connected_account_id?: string | undefined;
|
|
1620
|
+
created_at?: string | undefined;
|
|
1621
|
+
user_identifier?: {
|
|
1622
|
+
username?: string | undefined;
|
|
1623
|
+
api_url?: string | undefined;
|
|
1624
|
+
email?: string | undefined;
|
|
1625
|
+
phone?: string | undefined;
|
|
1626
|
+
exclusive?: boolean | undefined;
|
|
1627
|
+
} | undefined;
|
|
1628
|
+
account_type?: string | undefined;
|
|
1629
|
+
account_type_display_name: string;
|
|
1630
|
+
errors?: any;
|
|
1631
|
+
warnings?: any;
|
|
1632
|
+
custom_metadata?: Record<string, string | number | boolean | null> | undefined;
|
|
1633
|
+
automatically_manage_new_devices: boolean;
|
|
1634
|
+
};
|
|
1635
|
+
};
|
|
1636
|
+
};
|
|
1605
1637
|
'/devices/delete': {
|
|
1606
1638
|
route: '/devices/delete';
|
|
1607
1639
|
method: 'DELETE' | 'POST';
|
|
@@ -2588,19 +2620,39 @@ export interface Routes {
|
|
|
2588
2620
|
created_at: string;
|
|
2589
2621
|
is_managed: false;
|
|
2590
2622
|
properties: {
|
|
2623
|
+
/** Name of the device. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
|
|
2591
2624
|
name: string;
|
|
2625
|
+
/** Indicates whether the device is online. */
|
|
2592
2626
|
online: boolean;
|
|
2627
|
+
/** Manufacturer of the device. */
|
|
2593
2628
|
manufacturer?: string | undefined;
|
|
2629
|
+
/** Image URL for the device. */
|
|
2594
2630
|
image_url?: string | undefined;
|
|
2631
|
+
/** Alt text for the device image. */
|
|
2595
2632
|
image_alt_text?: string | undefined;
|
|
2596
|
-
model: {
|
|
2597
|
-
display_name: string;
|
|
2598
|
-
manufacturer_display_name: string;
|
|
2599
|
-
};
|
|
2600
2633
|
/** Indicates the battery level of the device as a decimal value between 0 and 1, inclusive. */
|
|
2601
2634
|
battery_level?: number | undefined;
|
|
2635
|
+
/** Represents the current status of the battery charge level. Values are "critical," which indicates an extremely low level, suggesting imminent shutdown or an urgent need for charging; "low," which signifies that the battery is under the preferred threshold and should be charged soon; "good," which denotes a satisfactory charge level, adequate for normal use without the immediate need for recharging; and "full," which represents a battery that is fully charged, providing the maximum duration of usage. */
|
|
2636
|
+
battery?: {
|
|
2637
|
+
level: number;
|
|
2638
|
+
status: 'critical' | 'low' | 'good' | 'full';
|
|
2639
|
+
} | undefined;
|
|
2602
2640
|
/** Indicates whether it is currently possible to use online access codes for the device. */
|
|
2603
2641
|
online_access_codes_enabled?: boolean | undefined;
|
|
2642
|
+
/** Indicates whether it is currently possible to use offline access codes for the device. */
|
|
2643
|
+
offline_access_codes_enabled?: boolean | undefined;
|
|
2644
|
+
model: {
|
|
2645
|
+
/** Display name of the device model. */
|
|
2646
|
+
display_name: string;
|
|
2647
|
+
/** Display name that corresponds to the manufacturer-specific terminology for the device. */
|
|
2648
|
+
manufacturer_display_name: string;
|
|
2649
|
+
/** Indicates whether the device supports offline access codes. */
|
|
2650
|
+
offline_access_codes_supported?: boolean | undefined;
|
|
2651
|
+
/** Indicates whether the device supports online access codes. */
|
|
2652
|
+
online_access_codes_supported?: boolean | undefined;
|
|
2653
|
+
/** Indicates whether the device supports an accessory keypad. */
|
|
2654
|
+
accessory_keypad_supported?: boolean | undefined;
|
|
2655
|
+
};
|
|
2604
2656
|
};
|
|
2605
2657
|
};
|
|
2606
2658
|
};
|
|
@@ -2650,19 +2702,39 @@ export interface Routes {
|
|
|
2650
2702
|
created_at: string;
|
|
2651
2703
|
is_managed: false;
|
|
2652
2704
|
properties: {
|
|
2705
|
+
/** Name of the device. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
|
|
2653
2706
|
name: string;
|
|
2707
|
+
/** Indicates whether the device is online. */
|
|
2654
2708
|
online: boolean;
|
|
2709
|
+
/** Manufacturer of the device. */
|
|
2655
2710
|
manufacturer?: string | undefined;
|
|
2711
|
+
/** Image URL for the device. */
|
|
2656
2712
|
image_url?: string | undefined;
|
|
2713
|
+
/** Alt text for the device image. */
|
|
2657
2714
|
image_alt_text?: string | undefined;
|
|
2658
|
-
model: {
|
|
2659
|
-
display_name: string;
|
|
2660
|
-
manufacturer_display_name: string;
|
|
2661
|
-
};
|
|
2662
2715
|
/** Indicates the battery level of the device as a decimal value between 0 and 1, inclusive. */
|
|
2663
2716
|
battery_level?: number | undefined;
|
|
2717
|
+
/** Represents the current status of the battery charge level. Values are "critical," which indicates an extremely low level, suggesting imminent shutdown or an urgent need for charging; "low," which signifies that the battery is under the preferred threshold and should be charged soon; "good," which denotes a satisfactory charge level, adequate for normal use without the immediate need for recharging; and "full," which represents a battery that is fully charged, providing the maximum duration of usage. */
|
|
2718
|
+
battery?: {
|
|
2719
|
+
level: number;
|
|
2720
|
+
status: 'critical' | 'low' | 'good' | 'full';
|
|
2721
|
+
} | undefined;
|
|
2664
2722
|
/** Indicates whether it is currently possible to use online access codes for the device. */
|
|
2665
2723
|
online_access_codes_enabled?: boolean | undefined;
|
|
2724
|
+
/** Indicates whether it is currently possible to use offline access codes for the device. */
|
|
2725
|
+
offline_access_codes_enabled?: boolean | undefined;
|
|
2726
|
+
model: {
|
|
2727
|
+
/** Display name of the device model. */
|
|
2728
|
+
display_name: string;
|
|
2729
|
+
/** Display name that corresponds to the manufacturer-specific terminology for the device. */
|
|
2730
|
+
manufacturer_display_name: string;
|
|
2731
|
+
/** Indicates whether the device supports offline access codes. */
|
|
2732
|
+
offline_access_codes_supported?: boolean | undefined;
|
|
2733
|
+
/** Indicates whether the device supports online access codes. */
|
|
2734
|
+
online_access_codes_supported?: boolean | undefined;
|
|
2735
|
+
/** Indicates whether the device supports an accessory keypad. */
|
|
2736
|
+
accessory_keypad_supported?: boolean | undefined;
|
|
2737
|
+
};
|
|
2666
2738
|
};
|
|
2667
2739
|
}>;
|
|
2668
2740
|
};
|
|
@@ -6614,7 +6686,7 @@ export interface Routes {
|
|
|
6614
6686
|
workspace_id: string;
|
|
6615
6687
|
created_at: string;
|
|
6616
6688
|
display_name: string;
|
|
6617
|
-
external_type: 'pti_user' | 'brivo_user' | 'hid_cm_user';
|
|
6689
|
+
external_type: 'pti_user' | 'brivo_user' | 'hid_cm_user' | 'salto_site_user';
|
|
6618
6690
|
external_type_display_name: string;
|
|
6619
6691
|
is_suspended: boolean;
|
|
6620
6692
|
full_name?: string | undefined;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const acs_user_external_type: z.ZodEnum<["pti_user", "brivo_user", "hid_cm_user"]>;
|
|
2
|
+
export declare const acs_user_external_type: z.ZodEnum<["pti_user", "brivo_user", "hid_cm_user", "salto_site_user"]>;
|
|
3
3
|
export type AcsUserExternalType = z.infer<typeof acs_user_external_type>;
|
|
4
4
|
export declare const acs_user: z.ZodObject<{
|
|
5
5
|
workspace_id: z.ZodString;
|
|
6
6
|
created_at: z.ZodString;
|
|
7
7
|
acs_system_id: z.ZodString;
|
|
8
|
-
external_type: z.ZodEnum<["pti_user", "brivo_user", "hid_cm_user"]>;
|
|
8
|
+
external_type: z.ZodEnum<["pti_user", "brivo_user", "hid_cm_user", "salto_site_user"]>;
|
|
9
9
|
external_type_display_name: z.ZodString;
|
|
10
10
|
acs_user_id: z.ZodString;
|
|
11
11
|
display_name: z.ZodString;
|
|
@@ -19,7 +19,7 @@ export declare const acs_user: z.ZodObject<{
|
|
|
19
19
|
workspace_id: string;
|
|
20
20
|
created_at: string;
|
|
21
21
|
acs_system_id: string;
|
|
22
|
-
external_type: "pti_user" | "brivo_user" | "hid_cm_user";
|
|
22
|
+
external_type: "pti_user" | "brivo_user" | "hid_cm_user" | "salto_site_user";
|
|
23
23
|
external_type_display_name: string;
|
|
24
24
|
acs_user_id: string;
|
|
25
25
|
display_name: string;
|
|
@@ -33,7 +33,7 @@ export declare const acs_user: z.ZodObject<{
|
|
|
33
33
|
workspace_id: string;
|
|
34
34
|
created_at: string;
|
|
35
35
|
acs_system_id: string;
|
|
36
|
-
external_type: "pti_user" | "brivo_user" | "hid_cm_user";
|
|
36
|
+
external_type: "pti_user" | "brivo_user" | "hid_cm_user" | "salto_site_user";
|
|
37
37
|
external_type_display_name: string;
|
|
38
38
|
acs_user_id: string;
|
|
39
39
|
display_name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/unstable/models/acs/user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC3C,UAAU;IACV,YAAY;IACZ,aAAa;
|
|
1
|
+
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/unstable/models/acs/user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC3C,UAAU;IACV,YAAY;IACZ,aAAa;IACb,iBAAiB;CAClB,CAAC,CAAA;AAIF,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM;KAC1B,MAAM,EAAE;KACR,IAAI,EAAE;KACN,MAAM,CACL,CAAC,GAAG,EAAE,EAAE;IACN,iDAAiD;IACjD,OAAO,mBAAmB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;AACtC,CAAC,EACD;IACE,OAAO,EAAE,oDAAoD;CAC9D,CACF,CAAA;AAEH,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,KAAK,EAAE,CAAC;SACL,MAAM,EAAE;SACR,KAAK,EAAE;SACP,QAAQ,EAAE;SACV,QAAQ,CAAC,gCAAgC,CAAC;IAC7C,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IAC5C,YAAY,EAAE,YAAY,CAAC,QAAQ,EAAE;CACtC,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC;KACtB,MAAM,CAAC;IACN,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC9B,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAChC,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IAC/C,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC/B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,aAAa,EAAE,sBAAsB;IACrC,0BAA0B,EAAE,CAAC,CAAC,MAAM,EAAE;IACtC,YAAY,EAAE,CAAC,CAAC,OAAO,EAAE;CAC1B,CAAC;KACD,KAAK,CAAC,WAAW,CAAC,CAAA"}
|
|
@@ -27,48 +27,88 @@ export declare const unmanaged_device: z.ZodObject<{
|
|
|
27
27
|
warning_code: string;
|
|
28
28
|
}>, "many">;
|
|
29
29
|
is_managed: z.ZodLiteral<false>;
|
|
30
|
-
properties: z.ZodObject<{
|
|
31
|
-
name: z.ZodString;
|
|
30
|
+
properties: z.ZodObject<Pick<{
|
|
32
31
|
online: z.ZodBoolean;
|
|
33
|
-
|
|
34
|
-
image_url: z.ZodOptional<z.ZodString>;
|
|
35
|
-
image_alt_text: z.ZodOptional<z.ZodString>;
|
|
32
|
+
name: z.ZodString;
|
|
36
33
|
model: z.ZodObject<{
|
|
37
34
|
display_name: z.ZodString;
|
|
38
35
|
manufacturer_display_name: z.ZodString;
|
|
36
|
+
offline_access_codes_supported: z.ZodOptional<z.ZodBoolean>;
|
|
37
|
+
online_access_codes_supported: z.ZodOptional<z.ZodBoolean>;
|
|
38
|
+
accessory_keypad_supported: z.ZodOptional<z.ZodBoolean>;
|
|
39
39
|
}, "strip", z.ZodTypeAny, {
|
|
40
40
|
display_name: string;
|
|
41
41
|
manufacturer_display_name: string;
|
|
42
|
+
offline_access_codes_supported?: boolean | undefined;
|
|
43
|
+
online_access_codes_supported?: boolean | undefined;
|
|
44
|
+
accessory_keypad_supported?: boolean | undefined;
|
|
42
45
|
}, {
|
|
43
46
|
display_name: string;
|
|
44
47
|
manufacturer_display_name: string;
|
|
48
|
+
offline_access_codes_supported?: boolean | undefined;
|
|
49
|
+
online_access_codes_supported?: boolean | undefined;
|
|
50
|
+
accessory_keypad_supported?: boolean | undefined;
|
|
45
51
|
}>;
|
|
52
|
+
has_direct_power: z.ZodOptional<z.ZodBoolean>;
|
|
46
53
|
battery_level: z.ZodOptional<z.ZodNumber>;
|
|
54
|
+
battery: z.ZodOptional<z.ZodObject<{
|
|
55
|
+
level: z.ZodNumber;
|
|
56
|
+
status: z.ZodEnum<["critical", "low", "good", "full"]>;
|
|
57
|
+
}, "strip", z.ZodTypeAny, {
|
|
58
|
+
status: "low" | "full" | "critical" | "good";
|
|
59
|
+
level: number;
|
|
60
|
+
}, {
|
|
61
|
+
status: "low" | "full" | "critical" | "good";
|
|
62
|
+
level: number;
|
|
63
|
+
}>>;
|
|
64
|
+
manufacturer: z.ZodOptional<z.ZodString>;
|
|
65
|
+
image_url: z.ZodOptional<z.ZodString>;
|
|
66
|
+
image_alt_text: z.ZodOptional<z.ZodString>;
|
|
67
|
+
serial_number: z.ZodOptional<z.ZodString>;
|
|
47
68
|
online_access_codes_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
48
|
-
|
|
69
|
+
offline_access_codes_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
70
|
+
supports_accessory_keypad: z.ZodOptional<z.ZodBoolean>;
|
|
71
|
+
supports_offline_access_codes: z.ZodOptional<z.ZodBoolean>;
|
|
72
|
+
}, "name" | "online" | "battery" | "model" | "battery_level" | "image_url" | "manufacturer" | "image_alt_text" | "online_access_codes_enabled" | "offline_access_codes_enabled">, "strip", z.ZodTypeAny, {
|
|
49
73
|
name: string;
|
|
50
74
|
online: boolean;
|
|
51
75
|
model: {
|
|
52
76
|
display_name: string;
|
|
53
77
|
manufacturer_display_name: string;
|
|
78
|
+
offline_access_codes_supported?: boolean | undefined;
|
|
79
|
+
online_access_codes_supported?: boolean | undefined;
|
|
80
|
+
accessory_keypad_supported?: boolean | undefined;
|
|
54
81
|
};
|
|
55
|
-
|
|
82
|
+
battery?: {
|
|
83
|
+
status: "low" | "full" | "critical" | "good";
|
|
84
|
+
level: number;
|
|
85
|
+
} | undefined;
|
|
86
|
+
battery_level?: number | undefined;
|
|
56
87
|
image_url?: string | undefined;
|
|
88
|
+
manufacturer?: string | undefined;
|
|
57
89
|
image_alt_text?: string | undefined;
|
|
58
|
-
battery_level?: number | undefined;
|
|
59
90
|
online_access_codes_enabled?: boolean | undefined;
|
|
91
|
+
offline_access_codes_enabled?: boolean | undefined;
|
|
60
92
|
}, {
|
|
61
93
|
name: string;
|
|
62
94
|
online: boolean;
|
|
63
95
|
model: {
|
|
64
96
|
display_name: string;
|
|
65
97
|
manufacturer_display_name: string;
|
|
98
|
+
offline_access_codes_supported?: boolean | undefined;
|
|
99
|
+
online_access_codes_supported?: boolean | undefined;
|
|
100
|
+
accessory_keypad_supported?: boolean | undefined;
|
|
66
101
|
};
|
|
67
|
-
|
|
102
|
+
battery?: {
|
|
103
|
+
status: "low" | "full" | "critical" | "good";
|
|
104
|
+
level: number;
|
|
105
|
+
} | undefined;
|
|
106
|
+
battery_level?: number | undefined;
|
|
68
107
|
image_url?: string | undefined;
|
|
108
|
+
manufacturer?: string | undefined;
|
|
69
109
|
image_alt_text?: string | undefined;
|
|
70
|
-
battery_level?: number | undefined;
|
|
71
110
|
online_access_codes_enabled?: boolean | undefined;
|
|
111
|
+
offline_access_codes_enabled?: boolean | undefined;
|
|
72
112
|
}>;
|
|
73
113
|
}, "strip", z.ZodTypeAny, {
|
|
74
114
|
connected_account_id: string;
|
|
@@ -82,12 +122,20 @@ export declare const unmanaged_device: z.ZodObject<{
|
|
|
82
122
|
model: {
|
|
83
123
|
display_name: string;
|
|
84
124
|
manufacturer_display_name: string;
|
|
125
|
+
offline_access_codes_supported?: boolean | undefined;
|
|
126
|
+
online_access_codes_supported?: boolean | undefined;
|
|
127
|
+
accessory_keypad_supported?: boolean | undefined;
|
|
85
128
|
};
|
|
86
|
-
|
|
129
|
+
battery?: {
|
|
130
|
+
status: "low" | "full" | "critical" | "good";
|
|
131
|
+
level: number;
|
|
132
|
+
} | undefined;
|
|
133
|
+
battery_level?: number | undefined;
|
|
87
134
|
image_url?: string | undefined;
|
|
135
|
+
manufacturer?: string | undefined;
|
|
88
136
|
image_alt_text?: string | undefined;
|
|
89
|
-
battery_level?: number | undefined;
|
|
90
137
|
online_access_codes_enabled?: boolean | undefined;
|
|
138
|
+
offline_access_codes_enabled?: boolean | undefined;
|
|
91
139
|
};
|
|
92
140
|
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" | "noiseaware_activity_zone" | "minut_sensor" | "ecobee_thermostat" | "nest_thermostat";
|
|
93
141
|
capabilities_supported: ("access_code" | "lock" | "noise_detection" | "thermostat" | "battery")[];
|
|
@@ -111,12 +159,20 @@ export declare const unmanaged_device: z.ZodObject<{
|
|
|
111
159
|
model: {
|
|
112
160
|
display_name: string;
|
|
113
161
|
manufacturer_display_name: string;
|
|
162
|
+
offline_access_codes_supported?: boolean | undefined;
|
|
163
|
+
online_access_codes_supported?: boolean | undefined;
|
|
164
|
+
accessory_keypad_supported?: boolean | undefined;
|
|
114
165
|
};
|
|
115
|
-
|
|
166
|
+
battery?: {
|
|
167
|
+
status: "low" | "full" | "critical" | "good";
|
|
168
|
+
level: number;
|
|
169
|
+
} | undefined;
|
|
170
|
+
battery_level?: number | undefined;
|
|
116
171
|
image_url?: string | undefined;
|
|
172
|
+
manufacturer?: string | undefined;
|
|
117
173
|
image_alt_text?: string | undefined;
|
|
118
|
-
battery_level?: number | undefined;
|
|
119
174
|
online_access_codes_enabled?: boolean | undefined;
|
|
175
|
+
offline_access_codes_enabled?: boolean | undefined;
|
|
120
176
|
};
|
|
121
177
|
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" | "noiseaware_activity_zone" | "minut_sensor" | "ecobee_thermostat" | "nest_thermostat";
|
|
122
178
|
capabilities_supported: ("access_code" | "lock" | "noise_detection" | "thermostat" | "battery")[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { managed_device } from './managed-device.js';
|
|
2
|
+
import { common_device_properties, managed_device } from './managed-device.js';
|
|
3
3
|
export const unmanaged_device = managed_device
|
|
4
4
|
.pick({
|
|
5
5
|
device_id: true,
|
|
@@ -13,27 +13,17 @@ export const unmanaged_device = managed_device
|
|
|
13
13
|
})
|
|
14
14
|
.extend({
|
|
15
15
|
is_managed: z.literal(false),
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
battery_level: z
|
|
28
|
-
.number()
|
|
29
|
-
.min(0)
|
|
30
|
-
.max(1)
|
|
31
|
-
.optional()
|
|
32
|
-
.describe('Indicates the battery level of the device as a decimal value between 0 and 1, inclusive.'),
|
|
33
|
-
online_access_codes_enabled: z
|
|
34
|
-
.boolean()
|
|
35
|
-
.describe('Indicates whether it is currently possible to use online access codes for the device.')
|
|
36
|
-
.optional(),
|
|
16
|
+
properties: common_device_properties.pick({
|
|
17
|
+
name: true,
|
|
18
|
+
online: true,
|
|
19
|
+
manufacturer: true,
|
|
20
|
+
image_url: true,
|
|
21
|
+
image_alt_text: true,
|
|
22
|
+
battery_level: true,
|
|
23
|
+
battery: true,
|
|
24
|
+
online_access_codes_enabled: true,
|
|
25
|
+
offline_access_codes_enabled: true,
|
|
26
|
+
model: true,
|
|
37
27
|
}),
|
|
38
28
|
});
|
|
39
29
|
//# sourceMappingURL=unmanaged-device.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unmanaged-device.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/unstable/models/devices/unmanaged-device.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"unmanaged-device.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/unstable/models/devices/unmanaged-device.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,wBAAwB,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAE9E,MAAM,CAAC,MAAM,gBAAgB,GAAG,cAAc;KAC3C,IAAI,CAAC;IACJ,SAAS,EAAE,IAAI;IACf,WAAW,EAAE,IAAI;IACjB,oBAAoB,EAAE,IAAI;IAC1B,sBAAsB,EAAE,IAAI;IAC5B,YAAY,EAAE,IAAI;IAClB,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,UAAU,EAAE,IAAI;CACjB,CAAC;KACD,MAAM,CAAC;IACN,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;IAC5B,UAAU,EAAE,wBAAwB,CAAC,IAAI,CAAC;QACxC,IAAI,EAAE,IAAI;QACV,MAAM,EAAE,IAAI;QACZ,YAAY,EAAE,IAAI;QAClB,SAAS,EAAE,IAAI;QACf,cAAc,EAAE,IAAI;QACpB,aAAa,EAAE,IAAI;QACnB,OAAO,EAAE,IAAI;QACb,2BAA2B,EAAE,IAAI;QACjC,4BAA4B,EAAE,IAAI;QAClC,KAAK,EAAE,IAAI;KACZ,CAAC;CACH,CAAC,CAAA"}
|