@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/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.1216.0",
5
5
  "description": "TypeScript types for the Seam API.",
6
6
  "type": "module",
7
7
  "main": "index.js",
@@ -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: ['created_at', 'message', 'mutation_code'],
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',