@seamapi/types 1.165.0 → 1.166.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.
@@ -1123,6 +1123,10 @@ export interface Routes {
1123
1123
  door_type: string;
1124
1124
  is_connected: boolean;
1125
1125
  } | null;
1126
+ errors: Array<{
1127
+ error_code: string;
1128
+ message: string;
1129
+ }>;
1126
1130
  visionline_metadata: {
1127
1131
  door_name: string;
1128
1132
  door_category: 'entrance' | 'guest' | 'elevator reader' | 'common' | 'common (PMS)';
@@ -1168,6 +1172,10 @@ export interface Routes {
1168
1172
  door_type: string;
1169
1173
  is_connected: boolean;
1170
1174
  } | null;
1175
+ errors: Array<{
1176
+ error_code: string;
1177
+ message: string;
1178
+ }>;
1171
1179
  visionline_metadata: {
1172
1180
  door_name: string;
1173
1181
  door_category: 'entrance' | 'guest' | 'elevator reader' | 'common' | 'common (PMS)';
@@ -1483,6 +1491,10 @@ export interface Routes {
1483
1491
  door_type: string;
1484
1492
  is_connected: boolean;
1485
1493
  } | null;
1494
+ errors: Array<{
1495
+ error_code: string;
1496
+ message: string;
1497
+ }>;
1486
1498
  visionline_metadata: {
1487
1499
  door_name: string;
1488
1500
  door_category: 'entrance' | 'guest' | 'elevator reader' | 'common' | 'common (PMS)';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.165.0",
3
+ "version": "1.166.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -13,6 +13,12 @@ export const acs_entrance = z.object({
13
13
  acs_system_id: z.string().uuid(),
14
14
  created_at: z.string().datetime(),
15
15
  latch_metadata: acs_entrance_latch_metadata.nullable(),
16
+ errors: z.array(
17
+ z.object({
18
+ error_code: z.string(),
19
+ message: z.string(),
20
+ }),
21
+ ),
16
22
  visionline_metadata: z
17
23
  .object({
18
24
  door_name: z.string(),
@@ -313,6 +313,17 @@ export default {
313
313
  acs_system_id: { format: 'uuid', type: 'string' },
314
314
  created_at: { format: 'date-time', type: 'string' },
315
315
  display_name: { type: 'string' },
316
+ errors: {
317
+ items: {
318
+ properties: {
319
+ error_code: { type: 'string' },
320
+ message: { type: 'string' },
321
+ },
322
+ required: ['error_code', 'message'],
323
+ type: 'object',
324
+ },
325
+ type: 'array',
326
+ },
316
327
  latch_metadata: {
317
328
  nullable: true,
318
329
  properties: {
@@ -371,6 +382,7 @@ export default {
371
382
  'acs_system_id',
372
383
  'created_at',
373
384
  'latch_metadata',
385
+ 'errors',
374
386
  'visionline_metadata',
375
387
  ],
376
388
  type: 'object',
@@ -1224,6 +1224,10 @@ export interface Routes {
1224
1224
  door_type: string
1225
1225
  is_connected: boolean
1226
1226
  } | null
1227
+ errors: Array<{
1228
+ error_code: string
1229
+ message: string
1230
+ }>
1227
1231
  visionline_metadata: {
1228
1232
  door_name: string
1229
1233
  door_category:
@@ -1276,6 +1280,10 @@ export interface Routes {
1276
1280
  door_type: string
1277
1281
  is_connected: boolean
1278
1282
  } | null
1283
+ errors: Array<{
1284
+ error_code: string
1285
+ message: string
1286
+ }>
1279
1287
  visionline_metadata: {
1280
1288
  door_name: string
1281
1289
  door_category:
@@ -1683,6 +1691,10 @@ export interface Routes {
1683
1691
  door_type: string
1684
1692
  is_connected: boolean
1685
1693
  } | null
1694
+ errors: Array<{
1695
+ error_code: string
1696
+ message: string
1697
+ }>
1686
1698
  visionline_metadata: {
1687
1699
  door_name: string
1688
1700
  door_category: