@seamapi/types 1.61.0 → 1.63.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 +119 -13
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +257 -32
- package/lib/seam/connect/openapi.d.ts +197 -24
- package/lib/seam/connect/openapi.js +119 -13
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +60 -8
- 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 +126 -13
- package/src/lib/seam/connect/route-types.ts +64 -8
- package/src/lib/seam/connect/unstable/models/devices/unmanaged-device.ts +12 -26
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
|
-
import { managed_device } from './managed-device.js'
|
|
3
|
+
import { common_device_properties, managed_device } from './managed-device.js'
|
|
4
4
|
|
|
5
5
|
export const unmanaged_device = managed_device
|
|
6
6
|
.pick({
|
|
@@ -15,31 +15,17 @@ export const unmanaged_device = managed_device
|
|
|
15
15
|
})
|
|
16
16
|
.extend({
|
|
17
17
|
is_managed: z.literal(false),
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
battery_level: z
|
|
30
|
-
.number()
|
|
31
|
-
.min(0)
|
|
32
|
-
.max(1)
|
|
33
|
-
.optional()
|
|
34
|
-
.describe(
|
|
35
|
-
'Indicates the battery level of the device as a decimal value between 0 and 1, inclusive.',
|
|
36
|
-
),
|
|
37
|
-
online_access_codes_enabled: z
|
|
38
|
-
.boolean()
|
|
39
|
-
.describe(
|
|
40
|
-
'Indicates whether it is currently possible to use online access codes for the device.',
|
|
41
|
-
)
|
|
42
|
-
.optional(),
|
|
18
|
+
properties: common_device_properties.pick({
|
|
19
|
+
name: true,
|
|
20
|
+
online: true,
|
|
21
|
+
manufacturer: true,
|
|
22
|
+
image_url: true,
|
|
23
|
+
image_alt_text: true,
|
|
24
|
+
battery_level: true,
|
|
25
|
+
battery: true,
|
|
26
|
+
online_access_codes_enabled: true,
|
|
27
|
+
offline_access_codes_enabled: true,
|
|
28
|
+
model: true,
|
|
43
29
|
}),
|
|
44
30
|
})
|
|
45
31
|
|