@seamapi/types 1.111.0 → 1.112.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 +4 -0
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +34 -0
- package/lib/seam/connect/openapi.d.ts +12 -0
- package/lib/seam/connect/openapi.js +4 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +22 -0
- package/lib/seam/connect/unstable/models/devices/managed-device.d.ts +23 -17
- package/lib/seam/connect/unstable/models/devices/managed-device.js +5 -2
- package/lib/seam/connect/unstable/models/devices/managed-device.js.map +1 -1
- package/lib/seam/connect/unstable/models/devices/phone.d.ts +6 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/openapi.ts +4 -0
- package/src/lib/seam/connect/route-types.ts +22 -0
- package/src/lib/seam/connect/unstable/models/devices/managed-device.ts +72 -66
|
@@ -2390,6 +2390,8 @@ export interface Routes {
|
|
|
2390
2390
|
/** Indicates whether Seam manages the device. */
|
|
2391
2391
|
is_managed: true;
|
|
2392
2392
|
custom_metadata?: Record<string, string | boolean | null> | undefined;
|
|
2393
|
+
can_remotely_unlock?: boolean | undefined;
|
|
2394
|
+
can_program_online_access_codes?: boolean | undefined;
|
|
2393
2395
|
};
|
|
2394
2396
|
};
|
|
2395
2397
|
};
|
|
@@ -2878,6 +2880,8 @@ export interface Routes {
|
|
|
2878
2880
|
/** Indicates whether Seam manages the device. */
|
|
2879
2881
|
is_managed: true;
|
|
2880
2882
|
custom_metadata?: Record<string, string | boolean | null> | undefined;
|
|
2883
|
+
can_remotely_unlock?: boolean | undefined;
|
|
2884
|
+
can_program_online_access_codes?: boolean | undefined;
|
|
2881
2885
|
}>;
|
|
2882
2886
|
};
|
|
2883
2887
|
};
|
|
@@ -3685,6 +3689,8 @@ export interface Routes {
|
|
|
3685
3689
|
/** Indicates whether Seam manages the device. */
|
|
3686
3690
|
is_managed: true;
|
|
3687
3691
|
custom_metadata?: Record<string, string | boolean | null> | undefined;
|
|
3692
|
+
can_remotely_unlock?: boolean | undefined;
|
|
3693
|
+
can_program_online_access_codes?: boolean | undefined;
|
|
3688
3694
|
};
|
|
3689
3695
|
device: {
|
|
3690
3696
|
/** Unique identifier for the device. */
|
|
@@ -4150,6 +4156,8 @@ export interface Routes {
|
|
|
4150
4156
|
/** Indicates whether Seam manages the device. */
|
|
4151
4157
|
is_managed: true;
|
|
4152
4158
|
custom_metadata?: Record<string, string | boolean | null> | undefined;
|
|
4159
|
+
can_remotely_unlock?: boolean | undefined;
|
|
4160
|
+
can_program_online_access_codes?: boolean | undefined;
|
|
4153
4161
|
};
|
|
4154
4162
|
};
|
|
4155
4163
|
};
|
|
@@ -4638,6 +4646,8 @@ export interface Routes {
|
|
|
4638
4646
|
/** Indicates whether Seam manages the device. */
|
|
4639
4647
|
is_managed: true;
|
|
4640
4648
|
custom_metadata?: Record<string, string | boolean | null> | undefined;
|
|
4649
|
+
can_remotely_unlock?: boolean | undefined;
|
|
4650
|
+
can_program_online_access_codes?: boolean | undefined;
|
|
4641
4651
|
}>;
|
|
4642
4652
|
devices: Array<{
|
|
4643
4653
|
/** Unique identifier for the device. */
|
|
@@ -5103,6 +5113,8 @@ export interface Routes {
|
|
|
5103
5113
|
/** Indicates whether Seam manages the device. */
|
|
5104
5114
|
is_managed: true;
|
|
5105
5115
|
custom_metadata?: Record<string, string | boolean | null> | undefined;
|
|
5116
|
+
can_remotely_unlock?: boolean | undefined;
|
|
5117
|
+
can_program_online_access_codes?: boolean | undefined;
|
|
5106
5118
|
}>;
|
|
5107
5119
|
};
|
|
5108
5120
|
};
|
|
@@ -5450,6 +5462,8 @@ export interface Routes {
|
|
|
5450
5462
|
/** Indicates whether Seam manages the device. */
|
|
5451
5463
|
is_managed: true;
|
|
5452
5464
|
custom_metadata?: Record<string, string | boolean | null> | undefined;
|
|
5465
|
+
can_remotely_unlock?: boolean | undefined;
|
|
5466
|
+
can_program_online_access_codes?: boolean | undefined;
|
|
5453
5467
|
}>;
|
|
5454
5468
|
};
|
|
5455
5469
|
};
|
|
@@ -5518,6 +5532,8 @@ export interface Routes {
|
|
|
5518
5532
|
/** Indicates whether Seam manages the device. */
|
|
5519
5533
|
is_managed: true;
|
|
5520
5534
|
custom_metadata?: Record<string, string | boolean | null> | undefined;
|
|
5535
|
+
can_remotely_unlock?: boolean | undefined;
|
|
5536
|
+
can_program_online_access_codes?: boolean | undefined;
|
|
5521
5537
|
};
|
|
5522
5538
|
};
|
|
5523
5539
|
};
|
|
@@ -6171,6 +6187,8 @@ export interface Routes {
|
|
|
6171
6187
|
/** Indicates whether Seam manages the device. */
|
|
6172
6188
|
is_managed: true;
|
|
6173
6189
|
custom_metadata?: Record<string, string | boolean | null> | undefined;
|
|
6190
|
+
can_remotely_unlock?: boolean | undefined;
|
|
6191
|
+
can_program_online_access_codes?: boolean | undefined;
|
|
6174
6192
|
};
|
|
6175
6193
|
};
|
|
6176
6194
|
};
|
|
@@ -6689,6 +6707,8 @@ export interface Routes {
|
|
|
6689
6707
|
/** Indicates whether Seam manages the device. */
|
|
6690
6708
|
is_managed: true;
|
|
6691
6709
|
custom_metadata?: Record<string, string | boolean | null> | undefined;
|
|
6710
|
+
can_remotely_unlock?: boolean | undefined;
|
|
6711
|
+
can_program_online_access_codes?: boolean | undefined;
|
|
6692
6712
|
}>;
|
|
6693
6713
|
};
|
|
6694
6714
|
};
|
|
@@ -7379,6 +7399,8 @@ export interface Routes {
|
|
|
7379
7399
|
/** Indicates whether Seam manages the device. */
|
|
7380
7400
|
is_managed: true;
|
|
7381
7401
|
custom_metadata?: Record<string, string | boolean | null> | undefined;
|
|
7402
|
+
can_remotely_unlock?: boolean | undefined;
|
|
7403
|
+
can_program_online_access_codes?: boolean | undefined;
|
|
7382
7404
|
}>;
|
|
7383
7405
|
};
|
|
7384
7406
|
};
|
|
@@ -95,9 +95,22 @@ export declare const common_device_properties: z.ZodObject<{
|
|
|
95
95
|
supports_offline_access_codes?: boolean | undefined;
|
|
96
96
|
}>;
|
|
97
97
|
export declare const managed_device: z.ZodObject<{
|
|
98
|
+
location: z.ZodNullable<z.ZodObject<{
|
|
99
|
+
location_name: z.ZodOptional<z.ZodString>;
|
|
100
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
101
|
+
}, "strip", z.ZodTypeAny, {
|
|
102
|
+
location_name?: string | undefined;
|
|
103
|
+
timezone?: string | undefined;
|
|
104
|
+
}, {
|
|
105
|
+
location_name?: string | undefined;
|
|
106
|
+
timezone?: string | undefined;
|
|
107
|
+
}>>;
|
|
108
|
+
connected_account_id: z.ZodString;
|
|
109
|
+
workspace_id: z.ZodString;
|
|
110
|
+
created_at: z.ZodString;
|
|
111
|
+
custom_metadata: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNull]>>, Record<string, string | boolean | null>, Record<string, string | boolean | null>>>;
|
|
98
112
|
device_id: z.ZodString;
|
|
99
|
-
|
|
100
|
-
capabilities_supported: z.ZodArray<z.ZodEnum<["access_code", "lock", "noise_detection", "thermostat", "battery", "phone"]>, "many">;
|
|
113
|
+
is_managed: z.ZodLiteral<true>;
|
|
101
114
|
properties: z.ZodIntersection<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
102
115
|
online: z.ZodBoolean;
|
|
103
116
|
name: z.ZodString;
|
|
@@ -1987,18 +2000,8 @@ export declare const managed_device: z.ZodObject<{
|
|
|
1987
2000
|
max_cooling_set_point_fahrenheit?: number | undefined;
|
|
1988
2001
|
is_cooling_available?: true | undefined;
|
|
1989
2002
|
}>]>>>;
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
timezone: z.ZodOptional<z.ZodString>;
|
|
1993
|
-
}, "strip", z.ZodTypeAny, {
|
|
1994
|
-
location_name?: string | undefined;
|
|
1995
|
-
timezone?: string | undefined;
|
|
1996
|
-
}, {
|
|
1997
|
-
location_name?: string | undefined;
|
|
1998
|
-
timezone?: string | undefined;
|
|
1999
|
-
}>>;
|
|
2000
|
-
connected_account_id: z.ZodString;
|
|
2001
|
-
workspace_id: z.ZodString;
|
|
2003
|
+
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"]>, z.ZodEnum<["noiseaware_activity_zone" | "minut_sensor"]>, z.ZodEnum<["ecobee_thermostat" | "nest_thermostat" | "honeywell_thermostat"]>, z.ZodEnum<["ios_phone" | "android_phone"]>]>;
|
|
2004
|
+
capabilities_supported: z.ZodArray<z.ZodEnum<["access_code", "lock", "noise_detection", "thermostat", "battery", "phone"]>, "many">;
|
|
2002
2005
|
errors: z.ZodArray<z.ZodObject<{
|
|
2003
2006
|
error_code: z.ZodString;
|
|
2004
2007
|
message: z.ZodString;
|
|
@@ -2019,9 +2022,8 @@ export declare const managed_device: z.ZodObject<{
|
|
|
2019
2022
|
message: string;
|
|
2020
2023
|
warning_code: string;
|
|
2021
2024
|
}>, "many">;
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
custom_metadata: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNull]>>, Record<string, string | boolean | null>, Record<string, string | boolean | null>>>;
|
|
2025
|
+
can_remotely_unlock: z.ZodOptional<z.ZodBoolean>;
|
|
2026
|
+
can_program_online_access_codes: z.ZodOptional<z.ZodBoolean>;
|
|
2025
2027
|
}, "strip", z.ZodTypeAny, {
|
|
2026
2028
|
location: {
|
|
2027
2029
|
location_name?: string | undefined;
|
|
@@ -2860,6 +2862,8 @@ export declare const managed_device: z.ZodObject<{
|
|
|
2860
2862
|
warning_code: string;
|
|
2861
2863
|
}[];
|
|
2862
2864
|
custom_metadata?: Record<string, string | boolean | null> | undefined;
|
|
2865
|
+
can_remotely_unlock?: boolean | undefined;
|
|
2866
|
+
can_program_online_access_codes?: boolean | undefined;
|
|
2863
2867
|
}, {
|
|
2864
2868
|
location: {
|
|
2865
2869
|
location_name?: string | undefined;
|
|
@@ -3698,6 +3702,8 @@ export declare const managed_device: z.ZodObject<{
|
|
|
3698
3702
|
warning_code: string;
|
|
3699
3703
|
}[];
|
|
3700
3704
|
custom_metadata?: Record<string, string | boolean | null> | undefined;
|
|
3705
|
+
can_remotely_unlock?: boolean | undefined;
|
|
3706
|
+
can_program_online_access_codes?: boolean | undefined;
|
|
3701
3707
|
}>;
|
|
3702
3708
|
export type ManagedDevice = z.infer<typeof managed_device>;
|
|
3703
3709
|
export type ManagedDeviceWithBackendMetadata<MetadataKey extends keyof z.infer<typeof device_metadata>> = Simplify<ManagedDevice & {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { schemas as devicedb_schemas } from '@seamapi/types/devicedb';
|
|
2
3
|
import { custom_metadata } from '../../../stable/models/custom-metadata.js';
|
|
3
4
|
import { capability_properties } from '../capability-properties/index.js';
|
|
4
5
|
import { capabilities } from './capabilities-supported.js';
|
|
@@ -72,7 +73,8 @@ export const common_device_properties = z.object({
|
|
|
72
73
|
.describe('Deprecated. Use offline_access_codes_enabled.')
|
|
73
74
|
.optional(),
|
|
74
75
|
});
|
|
75
|
-
export const managed_device = z
|
|
76
|
+
export const managed_device = z
|
|
77
|
+
.object({
|
|
76
78
|
device_id: z.string().uuid().describe('Unique identifier for the device.'),
|
|
77
79
|
device_type: any_device_type.describe('Type of the device.'),
|
|
78
80
|
capabilities_supported: z
|
|
@@ -125,5 +127,6 @@ export const managed_device = z.object({
|
|
|
125
127
|
.literal(true)
|
|
126
128
|
.describe('Indicates whether Seam manages the device.'),
|
|
127
129
|
custom_metadata: custom_metadata.optional(),
|
|
128
|
-
})
|
|
130
|
+
})
|
|
131
|
+
.merge(devicedb_schemas.device_capability_flags);
|
|
129
132
|
//# sourceMappingURL=managed-device.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"managed-device.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/unstable/models/devices/managed-device.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAA;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAA;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAA;AAEjE,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;AAIzE,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,yCAAyC,CAAC;IACvE,IAAI,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,QAAQ,CACP,iIAAiI,CAClI;IACH,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC;QACtE,yBAAyB,EAAE,CAAC;aACzB,MAAM,EAAE;aACR,QAAQ,CACP,wFAAwF,CACzF;QAEH,8BAA8B,EAAE,CAAC;aAC9B,OAA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,QAAQ,EAAE;IACb,4BAA4B,EAAE,CAAC;SAC5B,OAAO,EAAE;SACT,QAAQ,CACP,wFAAwF,CACzF;SACA,QAAQ,EAAE;IAEb,6CAA6C;IAC7C,yBAAyB,EAAE,CAAC;SACzB,OAAO,EAAE;SACT,QAAQ,CAAC,mDAAmD,CAAC;SAC7D,QAAQ,EAAE;IACb,6BAA6B,EAAE,CAAC;SAC7B,OAAO,EAAE;SACT,QAAQ,CAAC,+CAA+C,CAAC;SACzD,QAAQ,EAAE;CACd,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"managed-device.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/unstable/models/devices/managed-device.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAErE,OAAO,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAA;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAA;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAA;AAEjE,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;AAIzE,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,yCAAyC,CAAC;IACvE,IAAI,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,QAAQ,CACP,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,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,mCAAmC,CAAC;KACjD,CAAC;SACD,QAAQ,EAAE;SACV,QAAQ,CAAC,sCAAsC,CAAC;IACnD,oBAAoB,EAAE,CAAC;SACpB,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CACP,+DAA+D,CAChE;IACH,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CACP,sEAAsE,CACvE;IACH,MAAM,EAAE,CAAC;SACN,KAAK,CACJ,CAAC,CAAC,MAAM,CAAC;QACP,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;QACtB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;KACpB,CAAC,CACH;SACA,QAAQ,CACP,mYAAmY,CACpY;IACH,QAAQ,EAAE,CAAC;SACR,KAAK,CACJ,CAAC,CAAC,MAAM,CAAC;QACP,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;QACxB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;KACpB,CAAC,CACH;SACA,QAAQ,CACP,+YAA+Y,CAChZ;IACH,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,uDAAuD,CAAC;IACpE,UAAU,EAAE,CAAC;SACV,OAAO,CAAC,IAAI,CAAC;SACb,QAAQ,CAAC,4CAA4C,CAAC;IACzD,eAAe,EAAE,eAAe,CAAC,QAAQ,EAAE;CAC5C,CAAC;KACD,KAAK,CAAC,gBAAgB,CAAC,uBAAuB,CAAC,CAAA"}
|
|
@@ -38,6 +38,8 @@ export declare const phone: z.ZodObject<{
|
|
|
38
38
|
message: string;
|
|
39
39
|
warning_code: string;
|
|
40
40
|
}>, "many">;
|
|
41
|
+
can_remotely_unlock: z.ZodOptional<z.ZodBoolean>;
|
|
42
|
+
can_program_online_access_codes: z.ZodOptional<z.ZodBoolean>;
|
|
41
43
|
properties: z.ZodObject<{
|
|
42
44
|
assa_abloy_credential_service_metadata: z.ZodOptional<z.ZodObject<{
|
|
43
45
|
has_active_endpoint: z.ZodBoolean;
|
|
@@ -110,6 +112,8 @@ export declare const phone: z.ZodObject<{
|
|
|
110
112
|
warning_code: string;
|
|
111
113
|
}[];
|
|
112
114
|
custom_metadata?: Record<string, string | boolean | null> | undefined;
|
|
115
|
+
can_remotely_unlock?: boolean | undefined;
|
|
116
|
+
can_program_online_access_codes?: boolean | undefined;
|
|
113
117
|
}, {
|
|
114
118
|
location: {
|
|
115
119
|
location_name?: string | undefined;
|
|
@@ -139,4 +143,6 @@ export declare const phone: z.ZodObject<{
|
|
|
139
143
|
warning_code: string;
|
|
140
144
|
}[];
|
|
141
145
|
custom_metadata?: Record<string, string | boolean | null> | undefined;
|
|
146
|
+
can_remotely_unlock?: boolean | undefined;
|
|
147
|
+
can_program_online_access_codes?: boolean | undefined;
|
|
142
148
|
}>;
|
package/package.json
CHANGED
|
@@ -517,6 +517,8 @@ export default {
|
|
|
517
517
|
},
|
|
518
518
|
device: {
|
|
519
519
|
properties: {
|
|
520
|
+
can_program_online_access_codes: { type: 'boolean' },
|
|
521
|
+
can_remotely_unlock: { type: 'boolean' },
|
|
520
522
|
capabilities_supported: {
|
|
521
523
|
description:
|
|
522
524
|
'Collection of capabilities that the device supports when connected to Seam. Values are "access_code," which indicates that the device can manage and utilize digital PIN codes for secure access; "lock," which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; "noise_detection," which indicates that the device supports monitoring and responding to ambient noise levels; "thermostat," which indicates that the device can regulate and adjust indoor temperatures; and "battery," which indicates that the device can manage battery life and health.',
|
|
@@ -1791,6 +1793,8 @@ export default {
|
|
|
1791
1793
|
},
|
|
1792
1794
|
phone: {
|
|
1793
1795
|
properties: {
|
|
1796
|
+
can_program_online_access_codes: { type: 'boolean' },
|
|
1797
|
+
can_remotely_unlock: { type: 'boolean' },
|
|
1794
1798
|
capabilities_supported: {
|
|
1795
1799
|
description:
|
|
1796
1800
|
'Collection of capabilities that the device supports when connected to Seam. Values are "access_code," which indicates that the device can manage and utilize digital PIN codes for secure access; "lock," which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; "noise_detection," which indicates that the device supports monitoring and responding to ambient noise levels; "thermostat," which indicates that the device can regulate and adjust indoor temperatures; and "battery," which indicates that the device can manage battery life and health.',
|
|
@@ -2848,6 +2848,8 @@ export interface Routes {
|
|
|
2848
2848
|
/** Indicates whether Seam manages the device. */
|
|
2849
2849
|
is_managed: true
|
|
2850
2850
|
custom_metadata?: Record<string, string | boolean | null> | undefined
|
|
2851
|
+
can_remotely_unlock?: boolean | undefined
|
|
2852
|
+
can_program_online_access_codes?: boolean | undefined
|
|
2851
2853
|
}
|
|
2852
2854
|
}
|
|
2853
2855
|
}
|
|
@@ -3652,6 +3654,8 @@ export interface Routes {
|
|
|
3652
3654
|
/** Indicates whether Seam manages the device. */
|
|
3653
3655
|
is_managed: true
|
|
3654
3656
|
custom_metadata?: Record<string, string | boolean | null> | undefined
|
|
3657
|
+
can_remotely_unlock?: boolean | undefined
|
|
3658
|
+
can_program_online_access_codes?: boolean | undefined
|
|
3655
3659
|
}>
|
|
3656
3660
|
}
|
|
3657
3661
|
}
|
|
@@ -4957,6 +4961,8 @@ export interface Routes {
|
|
|
4957
4961
|
/** Indicates whether Seam manages the device. */
|
|
4958
4962
|
is_managed: true
|
|
4959
4963
|
custom_metadata?: Record<string, string | boolean | null> | undefined
|
|
4964
|
+
can_remotely_unlock?: boolean | undefined
|
|
4965
|
+
can_program_online_access_codes?: boolean | undefined
|
|
4960
4966
|
}
|
|
4961
4967
|
device: {
|
|
4962
4968
|
/** Unique identifier for the device. */
|
|
@@ -5633,6 +5639,8 @@ export interface Routes {
|
|
|
5633
5639
|
/** Indicates whether Seam manages the device. */
|
|
5634
5640
|
is_managed: true
|
|
5635
5641
|
custom_metadata?: Record<string, string | boolean | null> | undefined
|
|
5642
|
+
can_remotely_unlock?: boolean | undefined
|
|
5643
|
+
can_program_online_access_codes?: boolean | undefined
|
|
5636
5644
|
}
|
|
5637
5645
|
}
|
|
5638
5646
|
}
|
|
@@ -6437,6 +6445,8 @@ export interface Routes {
|
|
|
6437
6445
|
/** Indicates whether Seam manages the device. */
|
|
6438
6446
|
is_managed: true
|
|
6439
6447
|
custom_metadata?: Record<string, string | boolean | null> | undefined
|
|
6448
|
+
can_remotely_unlock?: boolean | undefined
|
|
6449
|
+
can_program_online_access_codes?: boolean | undefined
|
|
6440
6450
|
}>
|
|
6441
6451
|
devices: Array<{
|
|
6442
6452
|
/** Unique identifier for the device. */
|
|
@@ -7113,6 +7123,8 @@ export interface Routes {
|
|
|
7113
7123
|
/** Indicates whether Seam manages the device. */
|
|
7114
7124
|
is_managed: true
|
|
7115
7125
|
custom_metadata?: Record<string, string | boolean | null> | undefined
|
|
7126
|
+
can_remotely_unlock?: boolean | undefined
|
|
7127
|
+
can_program_online_access_codes?: boolean | undefined
|
|
7116
7128
|
}>
|
|
7117
7129
|
}
|
|
7118
7130
|
}
|
|
@@ -7484,6 +7496,8 @@ export interface Routes {
|
|
|
7484
7496
|
/** Indicates whether Seam manages the device. */
|
|
7485
7497
|
is_managed: true
|
|
7486
7498
|
custom_metadata?: Record<string, string | boolean | null> | undefined
|
|
7499
|
+
can_remotely_unlock?: boolean | undefined
|
|
7500
|
+
can_program_online_access_codes?: boolean | undefined
|
|
7487
7501
|
}>
|
|
7488
7502
|
}
|
|
7489
7503
|
}
|
|
@@ -7561,6 +7575,8 @@ export interface Routes {
|
|
|
7561
7575
|
/** Indicates whether Seam manages the device. */
|
|
7562
7576
|
is_managed: true
|
|
7563
7577
|
custom_metadata?: Record<string, string | boolean | null> | undefined
|
|
7578
|
+
can_remotely_unlock?: boolean | undefined
|
|
7579
|
+
can_program_online_access_codes?: boolean | undefined
|
|
7564
7580
|
}
|
|
7565
7581
|
}
|
|
7566
7582
|
}
|
|
@@ -8425,6 +8441,8 @@ export interface Routes {
|
|
|
8425
8441
|
/** Indicates whether Seam manages the device. */
|
|
8426
8442
|
is_managed: true
|
|
8427
8443
|
custom_metadata?: Record<string, string | boolean | null> | undefined
|
|
8444
|
+
can_remotely_unlock?: boolean | undefined
|
|
8445
|
+
can_program_online_access_codes?: boolean | undefined
|
|
8428
8446
|
}
|
|
8429
8447
|
}
|
|
8430
8448
|
}
|
|
@@ -9259,6 +9277,8 @@ export interface Routes {
|
|
|
9259
9277
|
/** Indicates whether Seam manages the device. */
|
|
9260
9278
|
is_managed: true
|
|
9261
9279
|
custom_metadata?: Record<string, string | boolean | null> | undefined
|
|
9280
|
+
can_remotely_unlock?: boolean | undefined
|
|
9281
|
+
can_program_online_access_codes?: boolean | undefined
|
|
9262
9282
|
}>
|
|
9263
9283
|
}
|
|
9264
9284
|
}
|
|
@@ -10162,6 +10182,8 @@ export interface Routes {
|
|
|
10162
10182
|
/** Indicates whether Seam manages the device. */
|
|
10163
10183
|
is_managed: true
|
|
10164
10184
|
custom_metadata?: Record<string, string | boolean | null> | undefined
|
|
10185
|
+
can_remotely_unlock?: boolean | undefined
|
|
10186
|
+
can_program_online_access_codes?: boolean | undefined
|
|
10165
10187
|
}>
|
|
10166
10188
|
}
|
|
10167
10189
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { SetRequired, Simplify } from 'type-fest'
|
|
2
2
|
import { z } from 'zod'
|
|
3
3
|
|
|
4
|
+
import { schemas as devicedb_schemas } from '@seamapi/types/devicedb'
|
|
5
|
+
|
|
4
6
|
import { custom_metadata } from '../../../stable/models/custom-metadata.js'
|
|
5
7
|
import { capability_properties } from '../capability-properties/index.js'
|
|
6
8
|
import { capabilities } from './capabilities-supported.js'
|
|
@@ -94,72 +96,76 @@ export const common_device_properties = z.object({
|
|
|
94
96
|
.optional(),
|
|
95
97
|
})
|
|
96
98
|
|
|
97
|
-
export const managed_device = z
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
99
|
+
export const managed_device = z
|
|
100
|
+
.object({
|
|
101
|
+
device_id: z.string().uuid().describe('Unique identifier for the device.'),
|
|
102
|
+
device_type: any_device_type.describe('Type of the device.'),
|
|
103
|
+
capabilities_supported: z
|
|
104
|
+
.array(capabilities)
|
|
105
|
+
.describe(
|
|
106
|
+
'Collection of capabilities that the device supports when connected to Seam. Values are "access_code," which indicates that the device can manage and utilize digital PIN codes for secure access; "lock," which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; "noise_detection," which indicates that the device supports monitoring and responding to ambient noise levels; "thermostat," which indicates that the device can regulate and adjust indoor temperatures; and "battery," which indicates that the device can manage battery life and health.',
|
|
107
|
+
),
|
|
108
|
+
properties: common_device_properties
|
|
109
|
+
.and(phone_specific_properties.partial())
|
|
110
|
+
.and(device_metadata)
|
|
111
|
+
.and(capability_properties)
|
|
112
|
+
.describe('Properties of the device.'),
|
|
113
|
+
location: z
|
|
114
|
+
// todo: optional instead of nullable
|
|
115
|
+
.object({
|
|
116
|
+
location_name: z
|
|
117
|
+
.string()
|
|
118
|
+
.optional()
|
|
119
|
+
.describe('Name of the device location.'),
|
|
120
|
+
timezone: z
|
|
121
|
+
.string()
|
|
122
|
+
.optional()
|
|
123
|
+
.describe('Time zone of the device location.'),
|
|
124
|
+
})
|
|
125
|
+
.nullable()
|
|
126
|
+
.describe('Location information for the device.'),
|
|
127
|
+
connected_account_id: z
|
|
128
|
+
.string()
|
|
129
|
+
.uuid()
|
|
130
|
+
.describe(
|
|
131
|
+
'Unique identifier for the account associated with the device.',
|
|
132
|
+
),
|
|
133
|
+
workspace_id: z
|
|
134
|
+
.string()
|
|
135
|
+
.uuid()
|
|
136
|
+
.describe(
|
|
137
|
+
'Unique identifier for the Seam workspace associated with the device.',
|
|
138
|
+
),
|
|
139
|
+
errors: z
|
|
140
|
+
.array(
|
|
141
|
+
z.object({
|
|
142
|
+
error_code: z.string(),
|
|
143
|
+
message: z.string(),
|
|
144
|
+
}),
|
|
145
|
+
)
|
|
146
|
+
.describe(
|
|
147
|
+
'Array of errors associated with the device. Each error object within the array contains two fields: "error_code" and "message." "error_code" is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it.',
|
|
148
|
+
),
|
|
149
|
+
warnings: z
|
|
150
|
+
.array(
|
|
151
|
+
z.object({
|
|
152
|
+
warning_code: z.string(),
|
|
153
|
+
message: z.string(),
|
|
154
|
+
}),
|
|
155
|
+
)
|
|
156
|
+
.describe(
|
|
157
|
+
'Array of warnings associated with the device. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it.',
|
|
158
|
+
),
|
|
159
|
+
created_at: z
|
|
160
|
+
.string()
|
|
161
|
+
.datetime()
|
|
162
|
+
.describe('Date and time at which the device object was created.'),
|
|
163
|
+
is_managed: z
|
|
164
|
+
.literal(true)
|
|
165
|
+
.describe('Indicates whether Seam manages the device.'),
|
|
166
|
+
custom_metadata: custom_metadata.optional(),
|
|
167
|
+
})
|
|
168
|
+
.merge(devicedb_schemas.device_capability_flags)
|
|
163
169
|
|
|
164
170
|
export type ManagedDevice = z.infer<typeof managed_device>
|
|
165
171
|
|