@seamapi/types 1.344.2 → 1.344.3

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.
@@ -1080,6 +1080,10 @@ export interface Routes {
1080
1080
  message: string;
1081
1081
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
1082
1082
  warning_code: 'schlage_creation_outage';
1083
+ } | {
1084
+ message: string;
1085
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
1086
+ warning_code: 'salto_office_mode';
1083
1087
  } | {
1084
1088
  message: string;
1085
1089
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
@@ -1358,6 +1362,10 @@ export interface Routes {
1358
1362
  message: string;
1359
1363
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
1360
1364
  warning_code: 'schlage_creation_outage';
1365
+ } | {
1366
+ message: string;
1367
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
1368
+ warning_code: 'salto_office_mode';
1361
1369
  } | {
1362
1370
  message: string;
1363
1371
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
@@ -2509,6 +2517,10 @@ export interface Routes {
2509
2517
  message: string;
2510
2518
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
2511
2519
  warning_code: 'schlage_creation_outage';
2520
+ } | {
2521
+ message: string;
2522
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
2523
+ warning_code: 'salto_office_mode';
2512
2524
  } | {
2513
2525
  message: string;
2514
2526
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
@@ -2774,6 +2786,10 @@ export interface Routes {
2774
2786
  message: string;
2775
2787
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
2776
2788
  warning_code: 'schlage_creation_outage';
2789
+ } | {
2790
+ message: string;
2791
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
2792
+ warning_code: 'salto_office_mode';
2777
2793
  } | {
2778
2794
  message: string;
2779
2795
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
@@ -3038,6 +3054,10 @@ export interface Routes {
3038
3054
  message: string;
3039
3055
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
3040
3056
  warning_code: 'schlage_creation_outage';
3057
+ } | {
3058
+ message: string;
3059
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
3060
+ warning_code: 'salto_office_mode';
3041
3061
  } | {
3042
3062
  message: string;
3043
3063
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
@@ -3290,6 +3310,10 @@ export interface Routes {
3290
3310
  message: string;
3291
3311
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
3292
3312
  warning_code: 'schlage_creation_outage';
3313
+ } | {
3314
+ message: string;
3315
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
3316
+ warning_code: 'salto_office_mode';
3293
3317
  } | {
3294
3318
  message: string;
3295
3319
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
@@ -3550,6 +3574,10 @@ export interface Routes {
3550
3574
  message: string;
3551
3575
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
3552
3576
  warning_code: 'schlage_creation_outage';
3577
+ } | {
3578
+ message: string;
3579
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
3580
+ warning_code: 'salto_office_mode';
3553
3581
  } | {
3554
3582
  message: string;
3555
3583
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
@@ -4677,6 +4705,10 @@ export interface Routes {
4677
4705
  message: string;
4678
4706
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
4679
4707
  warning_code: 'schlage_creation_outage';
4708
+ } | {
4709
+ message: string;
4710
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
4711
+ warning_code: 'salto_office_mode';
4680
4712
  } | {
4681
4713
  message: string;
4682
4714
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
@@ -4919,6 +4951,10 @@ export interface Routes {
4919
4951
  message: string;
4920
4952
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
4921
4953
  warning_code: 'schlage_creation_outage';
4954
+ } | {
4955
+ message: string;
4956
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
4957
+ warning_code: 'salto_office_mode';
4922
4958
  } | {
4923
4959
  message: string;
4924
4960
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.344.2",
3
+ "version": "1.344.3",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -242,6 +242,14 @@ const schlage_creation_outage = common_access_code_warning
242
242
  })
243
243
  .describe('Received an error when attempting to create this code.')
244
244
 
245
+ const salto_office_mode = common_access_code_warning
246
+ .extend({
247
+ warning_code: z
248
+ .literal('salto_office_mode')
249
+ .describe(warning_code_description),
250
+ })
251
+ .describe('Lock is in Office Mode. Access Codes will not unlock doors.')
252
+
245
253
  const delay_in_setting_on_device = common_access_code_warning
246
254
  .extend({
247
255
  warning_code: z
@@ -288,6 +296,7 @@ const access_code_warning = z.discriminatedUnion('warning_code', [
288
296
  smartthings_failed_to_set_access_code_warning,
289
297
  schlage_detected_duplicate,
290
298
  schlage_creation_outage,
299
+ salto_office_mode,
291
300
  code_modified_external_to_seam_warning,
292
301
  delay_in_setting_on_device,
293
302
  delay_in_removing_from_device,
@@ -688,6 +688,21 @@ export default {
688
688
  required: ['message', 'warning_code'],
689
689
  type: 'object',
690
690
  },
691
+ {
692
+ description:
693
+ 'Lock is in Office Mode. Access Codes will not unlock doors.',
694
+ properties: {
695
+ message: { type: 'string' },
696
+ warning_code: {
697
+ description:
698
+ 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
699
+ enum: ['salto_office_mode'],
700
+ type: 'string',
701
+ },
702
+ },
703
+ required: ['message', 'warning_code'],
704
+ type: 'object',
705
+ },
691
706
  {
692
707
  description:
693
708
  'Code was modified or removed externally after Seam successfully set it on the device.',
@@ -13079,6 +13094,21 @@ export default {
13079
13094
  required: ['message', 'warning_code'],
13080
13095
  type: 'object',
13081
13096
  },
13097
+ {
13098
+ description:
13099
+ 'Lock is in Office Mode. Access Codes will not unlock doors.',
13100
+ properties: {
13101
+ message: { type: 'string' },
13102
+ warning_code: {
13103
+ description:
13104
+ 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
13105
+ enum: ['salto_office_mode'],
13106
+ type: 'string',
13107
+ },
13108
+ },
13109
+ required: ['message', 'warning_code'],
13110
+ type: 'object',
13111
+ },
13082
13112
  {
13083
13113
  description:
13084
13114
  'Code was modified or removed externally after Seam successfully set it on the device.',
@@ -1286,6 +1286,11 @@ export interface Routes {
1286
1286
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
1287
1287
  warning_code: 'schlage_creation_outage'
1288
1288
  }
1289
+ | {
1290
+ message: string
1291
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
1292
+ warning_code: 'salto_office_mode'
1293
+ }
1289
1294
  | {
1290
1295
  message: string
1291
1296
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
@@ -1609,6 +1614,11 @@ export interface Routes {
1609
1614
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
1610
1615
  warning_code: 'schlage_creation_outage'
1611
1616
  }
1617
+ | {
1618
+ message: string
1619
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
1620
+ warning_code: 'salto_office_mode'
1621
+ }
1612
1622
  | {
1613
1623
  message: string
1614
1624
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
@@ -2973,6 +2983,11 @@ export interface Routes {
2973
2983
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
2974
2984
  warning_code: 'schlage_creation_outage'
2975
2985
  }
2986
+ | {
2987
+ message: string
2988
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
2989
+ warning_code: 'salto_office_mode'
2990
+ }
2976
2991
  | {
2977
2992
  message: string
2978
2993
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
@@ -3283,6 +3298,11 @@ export interface Routes {
3283
3298
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
3284
3299
  warning_code: 'schlage_creation_outage'
3285
3300
  }
3301
+ | {
3302
+ message: string
3303
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
3304
+ warning_code: 'salto_office_mode'
3305
+ }
3286
3306
  | {
3287
3307
  message: string
3288
3308
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
@@ -3592,6 +3612,11 @@ export interface Routes {
3592
3612
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
3593
3613
  warning_code: 'schlage_creation_outage'
3594
3614
  }
3615
+ | {
3616
+ message: string
3617
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
3618
+ warning_code: 'salto_office_mode'
3619
+ }
3595
3620
  | {
3596
3621
  message: string
3597
3622
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
@@ -3889,6 +3914,11 @@ export interface Routes {
3889
3914
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
3890
3915
  warning_code: 'schlage_creation_outage'
3891
3916
  }
3917
+ | {
3918
+ message: string
3919
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
3920
+ warning_code: 'salto_office_mode'
3921
+ }
3892
3922
  | {
3893
3923
  message: string
3894
3924
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
@@ -4194,6 +4224,11 @@ export interface Routes {
4194
4224
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
4195
4225
  warning_code: 'schlage_creation_outage'
4196
4226
  }
4227
+ | {
4228
+ message: string
4229
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
4230
+ warning_code: 'salto_office_mode'
4231
+ }
4197
4232
  | {
4198
4233
  message: string
4199
4234
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
@@ -5534,6 +5569,11 @@ export interface Routes {
5534
5569
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
5535
5570
  warning_code: 'schlage_creation_outage'
5536
5571
  }
5572
+ | {
5573
+ message: string
5574
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
5575
+ warning_code: 'salto_office_mode'
5576
+ }
5537
5577
  | {
5538
5578
  message: string
5539
5579
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
@@ -5821,6 +5861,11 @@ export interface Routes {
5821
5861
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
5822
5862
  warning_code: 'schlage_creation_outage'
5823
5863
  }
5864
+ | {
5865
+ message: string
5866
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
5867
+ warning_code: 'salto_office_mode'
5868
+ }
5824
5869
  | {
5825
5870
  message: string
5826
5871
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */