@seamapi/types 1.1214.0 → 1.1215.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@seamapi/types",
4
- "version": "1.1214.0",
4
+ "version": "1.1215.0",
5
5
  "description": "TypeScript types for the Seam API.",
6
6
  "type": "module",
7
7
  "main": "index.js",
@@ -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
@@ -29582,6 +29582,16 @@ const openapi: OpenAPISpec = {
29582
29582
  type: 'string',
29583
29583
  },
29584
29584
  event_type: { enum: ['device.tampered'], type: 'string' },
29585
+ is_casing_tampered_with: {
29586
+ description:
29587
+ 'Whether the device casing was tampered with at the time of the event. Omitted when the provider did not report this state.',
29588
+ type: 'boolean',
29589
+ },
29590
+ is_detached_from_mounting_plate: {
29591
+ description:
29592
+ 'Whether the device was detached from its mounting plate at the time of the event. Omitted when the provider did not report this state.',
29593
+ type: 'boolean',
29594
+ },
29585
29595
  occurred_at: {
29586
29596
  description: 'Date and time at which the event occurred.',
29587
29597
  format: 'date-time',