@seamapi/types 1.1214.0 → 1.1216.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/lib/seam/connect/models/access-codes/managed-access-code.d.ts +5 -0
- package/lib/seam/connect/models/access-codes/pending-mutations.d.ts +8 -0
- package/lib/seam/connect/models/access-codes/pending-mutations.js +3 -0
- package/lib/seam/connect/models/access-codes/pending-mutations.js.map +1 -1
- package/lib/seam/connect/models/devices/device-metadata.d.ts +14 -14
- package/lib/seam/connect/models/devices/device-metadata.js +0 -7
- package/lib/seam/connect/models/devices/device-metadata.js.map +1 -1
- package/lib/seam/connect/models/devices/device.d.ts +14 -14
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +14 -14
- package/lib/seam/connect/models/events/devices.d.ts +12 -0
- package/lib/seam/connect/models/events/devices.js +8 -0
- package/lib/seam/connect/models/events/devices.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +6 -0
- package/lib/seam/connect/openapi.js +18 -1
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +286 -252
- package/package.json +1 -1
- package/src/lib/seam/connect/models/access-codes/pending-mutations.ts +5 -0
- package/src/lib/seam/connect/models/devices/device-metadata.ts +0 -7
- package/src/lib/seam/connect/models/events/devices.ts +12 -0
- package/src/lib/seam/connect/openapi.ts +21 -1
- package/src/lib/seam/connect/route-types.ts +1042 -1606
package/package.json
CHANGED
|
@@ -41,6 +41,11 @@ const deleting = common_pending_mutation
|
|
|
41
41
|
.describe(
|
|
42
42
|
'Mutation code to indicate that Seam is in the process of removing an access code from the device.',
|
|
43
43
|
),
|
|
44
|
+
is_code_usable: z
|
|
45
|
+
.boolean()
|
|
46
|
+
.describe(
|
|
47
|
+
'Indicates whether the access code may still unlock the device while Seam removes it, based on the last state Seam observed. `false` means the device has already stopped accepting the code, for example, because a natively scheduled code passed its `ends_at`, and only cleanup remains.',
|
|
48
|
+
),
|
|
44
49
|
})
|
|
45
50
|
.describe(
|
|
46
51
|
'Seam is in the process of removing an access code from the device.',
|
|
@@ -413,7 +413,6 @@ export const device_metadata = z
|
|
|
413
413
|
),
|
|
414
414
|
})
|
|
415
415
|
.partial()
|
|
416
|
-
.optional()
|
|
417
416
|
.describe(`Latest temperature reading for a Minut device.`),
|
|
418
417
|
sound: z
|
|
419
418
|
.object({
|
|
@@ -429,7 +428,6 @@ export const device_metadata = z
|
|
|
429
428
|
),
|
|
430
429
|
})
|
|
431
430
|
.partial()
|
|
432
|
-
.optional()
|
|
433
431
|
.describe(`Latest sound reading for a Minut device.`),
|
|
434
432
|
humidity: z
|
|
435
433
|
.object({
|
|
@@ -447,7 +445,6 @@ export const device_metadata = z
|
|
|
447
445
|
),
|
|
448
446
|
})
|
|
449
447
|
.partial()
|
|
450
|
-
.optional()
|
|
451
448
|
.describe(`Latest humidity reading for a Minut device.`),
|
|
452
449
|
pressure: z
|
|
453
450
|
.object({
|
|
@@ -465,7 +462,6 @@ export const device_metadata = z
|
|
|
465
462
|
),
|
|
466
463
|
})
|
|
467
464
|
.partial()
|
|
468
|
-
.optional()
|
|
469
465
|
.describe(`Latest pressure reading for a Minut device.`),
|
|
470
466
|
accelerometer_z: z
|
|
471
467
|
.object({
|
|
@@ -483,17 +479,14 @@ export const device_metadata = z
|
|
|
483
479
|
),
|
|
484
480
|
})
|
|
485
481
|
.partial()
|
|
486
|
-
.optional()
|
|
487
482
|
.describe(
|
|
488
483
|
`Latest accelerometer Z-axis reading for a Minut device.`,
|
|
489
484
|
),
|
|
490
485
|
})
|
|
491
486
|
.partial()
|
|
492
|
-
.optional()
|
|
493
487
|
.describe(`Latest sensor values for a Minut device.`),
|
|
494
488
|
})
|
|
495
489
|
.partial()
|
|
496
|
-
.optional()
|
|
497
490
|
.describe(`Metadata for a Minut device.`),
|
|
498
491
|
four_suites_metadata: z
|
|
499
492
|
.object({
|
|
@@ -194,6 +194,18 @@ export type UnmanagedDeviceDisconnectedEvent = z.infer<
|
|
|
194
194
|
|
|
195
195
|
export const device_tampered_event = device_event.extend({
|
|
196
196
|
event_type: z.literal('device.tampered'),
|
|
197
|
+
is_detached_from_mounting_plate: z
|
|
198
|
+
.boolean()
|
|
199
|
+
.optional()
|
|
200
|
+
.describe(
|
|
201
|
+
'Whether the device was detached from its mounting plate at the time of the event. Omitted when the provider did not report this state.',
|
|
202
|
+
),
|
|
203
|
+
is_casing_tampered_with: z
|
|
204
|
+
.boolean()
|
|
205
|
+
.optional()
|
|
206
|
+
.describe(
|
|
207
|
+
'Whether the device casing was tampered with at the time of the event. Omitted when the provider did not report this state.',
|
|
208
|
+
),
|
|
197
209
|
}).describe(`
|
|
198
210
|
---
|
|
199
211
|
route_path: /devices
|
|
@@ -1176,6 +1176,11 @@ const openapi: OpenAPISpec = {
|
|
|
1176
1176
|
format: 'date-time',
|
|
1177
1177
|
type: 'string',
|
|
1178
1178
|
},
|
|
1179
|
+
is_code_usable: {
|
|
1180
|
+
description:
|
|
1181
|
+
'Indicates whether the access code may still unlock the device while Seam removes it, based on the last state Seam observed. `false` means the device has already stopped accepting the code, for example, because a natively scheduled code passed its `ends_at`, and only cleanup remains.',
|
|
1182
|
+
type: 'boolean',
|
|
1183
|
+
},
|
|
1179
1184
|
message: {
|
|
1180
1185
|
description: 'Detailed description of the mutation.',
|
|
1181
1186
|
type: 'string',
|
|
@@ -1187,7 +1192,12 @@ const openapi: OpenAPISpec = {
|
|
|
1187
1192
|
type: 'string',
|
|
1188
1193
|
},
|
|
1189
1194
|
},
|
|
1190
|
-
required: [
|
|
1195
|
+
required: [
|
|
1196
|
+
'created_at',
|
|
1197
|
+
'message',
|
|
1198
|
+
'mutation_code',
|
|
1199
|
+
'is_code_usable',
|
|
1200
|
+
],
|
|
1191
1201
|
type: 'object',
|
|
1192
1202
|
},
|
|
1193
1203
|
{
|
|
@@ -29582,6 +29592,16 @@ const openapi: OpenAPISpec = {
|
|
|
29582
29592
|
type: 'string',
|
|
29583
29593
|
},
|
|
29584
29594
|
event_type: { enum: ['device.tampered'], type: 'string' },
|
|
29595
|
+
is_casing_tampered_with: {
|
|
29596
|
+
description:
|
|
29597
|
+
'Whether the device casing was tampered with at the time of the event. Omitted when the provider did not report this state.',
|
|
29598
|
+
type: 'boolean',
|
|
29599
|
+
},
|
|
29600
|
+
is_detached_from_mounting_plate: {
|
|
29601
|
+
description:
|
|
29602
|
+
'Whether the device was detached from its mounting plate at the time of the event. Omitted when the provider did not report this state.',
|
|
29603
|
+
type: 'boolean',
|
|
29604
|
+
},
|
|
29585
29605
|
occurred_at: {
|
|
29586
29606
|
description: 'Date and time at which the event occurred.',
|
|
29587
29607
|
format: 'date-time',
|