@seamapi/types 1.36.0 → 1.38.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.
@@ -16,6 +16,10 @@ export interface Routes {
16
16
  use_backup_access_code_pool?: boolean | undefined;
17
17
  allow_external_modification?: boolean | undefined;
18
18
  is_external_modification_allowed?: boolean | undefined;
19
+ use_offline_access_code?: boolean | undefined;
20
+ is_offline_access_code?: boolean | undefined;
21
+ is_one_time_use?: boolean | undefined;
22
+ max_time_rounding?: ('1hour' | '1day' | '1h' | '1d') | undefined;
19
23
  };
20
24
  commonParams: {};
21
25
  formData: {};
@@ -81,6 +85,10 @@ export interface Routes {
81
85
  use_backup_access_code_pool?: boolean | undefined;
82
86
  allow_external_modification?: boolean | undefined;
83
87
  is_external_modification_allowed?: boolean | undefined;
88
+ use_offline_access_code?: boolean | undefined;
89
+ is_offline_access_code?: boolean | undefined;
90
+ is_one_time_use?: boolean | undefined;
91
+ max_time_rounding?: ('1hour' | '1day' | '1h' | '1d') | undefined;
84
92
  };
85
93
  commonParams: {};
86
94
  formData: {};
@@ -426,6 +434,10 @@ export interface Routes {
426
434
  use_backup_access_code_pool?: boolean | undefined;
427
435
  allow_external_modification?: boolean | undefined;
428
436
  is_external_modification_allowed?: boolean | undefined;
437
+ use_offline_access_code?: boolean | undefined;
438
+ is_offline_access_code?: boolean | undefined;
439
+ is_one_time_use?: boolean | undefined;
440
+ max_time_rounding?: ('1hour' | '1day' | '1h' | '1d') | undefined;
429
441
  access_code_id: string;
430
442
  device_id?: string | undefined;
431
443
  type?: ('ongoing' | 'time_bound') | undefined;
@@ -670,6 +682,11 @@ export interface Routes {
670
682
  jsonBody: {};
671
683
  commonParams: {
672
684
  acs_user_id: string;
685
+ } | {
686
+ acs_system_id: string;
687
+ } | {
688
+ acs_user_id: string;
689
+ acs_system_id: string;
673
690
  };
674
691
  formData: {};
675
692
  jsonResponse: {
@@ -1084,7 +1101,7 @@ export interface Routes {
1084
1101
  device_selection_mode?: ('none' | 'single' | 'multiple') | undefined;
1085
1102
  custom_redirect_url?: string | undefined;
1086
1103
  custom_redirect_failure_url?: string | undefined;
1087
- accepted_providers?: Array<'akuvox' | 'august' | 'avigilon_alta' | 'brivo' | 'butterflymx' | 'schlage' | 'smartthings' | 'yale' | 'genie' | 'doorking' | 'salto' | 'lockly' | 'ttlock' | 'linear' | 'noiseaware' | 'nuki' | 'seam_relay_admin' | 'igloo' | 'kwikset' | 'minut' | 'my_2n' | 'controlbyweb' | 'nest' | 'igloohome' | 'ecobee' | 'hubitat' | 'four_suites' | 'dormakaba_oracode' | 'pti' | 'wyze' | 'yale_access'> | undefined;
1104
+ accepted_providers?: Array<'akuvox' | 'august' | 'avigilon_alta' | 'brivo' | 'butterflymx' | 'schlage' | 'smartthings' | 'yale' | 'genie' | 'doorking' | 'salto' | 'lockly' | 'ttlock' | 'linear' | 'noiseaware' | 'nuki' | 'seam_relay_admin' | 'igloo' | 'kwikset' | 'minut' | 'my_2n' | 'controlbyweb' | 'nest' | 'igloohome' | 'ecobee' | 'hubitat' | 'four_suites' | 'dormakaba_oracode' | 'pti' | 'wyze' | 'seam_passport' | 'yale_access'> | undefined;
1088
1105
  provider_category?: ('stable' | 'consumer_smartlocks' | 'internal_beta') | undefined;
1089
1106
  custom_metadata?: Record<string, string | number | null | boolean> | undefined;
1090
1107
  automatically_manage_new_devices?: boolean | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.36.0",
3
+ "version": "1.38.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -1555,11 +1555,18 @@ export default {
1555
1555
  device_id: { format: 'uuid', type: 'string' },
1556
1556
  ends_at: { type: 'string' },
1557
1557
  is_external_modification_allowed: { type: 'boolean' },
1558
+ is_offline_access_code: { type: 'boolean' },
1559
+ is_one_time_use: { type: 'boolean' },
1560
+ max_time_rounding: {
1561
+ enum: ['1hour', '1day', '1h', '1d'],
1562
+ type: 'string',
1563
+ },
1558
1564
  name: { type: 'string' },
1559
1565
  prefer_native_scheduling: { type: 'boolean' },
1560
1566
  starts_at: { type: 'string' },
1561
1567
  sync: { default: false, type: 'boolean' },
1562
1568
  use_backup_access_code_pool: { type: 'boolean' },
1569
+ use_offline_access_code: { type: 'boolean' },
1563
1570
  },
1564
1571
  required: ['device_id'],
1565
1572
  type: 'object',
@@ -1631,10 +1638,17 @@ export default {
1631
1638
  },
1632
1639
  ends_at: { type: 'string' },
1633
1640
  is_external_modification_allowed: { type: 'boolean' },
1641
+ is_offline_access_code: { type: 'boolean' },
1642
+ is_one_time_use: { type: 'boolean' },
1643
+ max_time_rounding: {
1644
+ enum: ['1hour', '1day', '1h', '1d'],
1645
+ type: 'string',
1646
+ },
1634
1647
  name: { type: 'string' },
1635
1648
  prefer_native_scheduling: { type: 'boolean' },
1636
1649
  starts_at: { type: 'string' },
1637
1650
  use_backup_access_code_pool: { type: 'boolean' },
1651
+ use_offline_access_code: { type: 'boolean' },
1638
1652
  },
1639
1653
  required: ['device_ids'],
1640
1654
  type: 'object',
@@ -1704,10 +1718,17 @@ export default {
1704
1718
  },
1705
1719
  ends_at: { type: 'string' },
1706
1720
  is_external_modification_allowed: { type: 'boolean' },
1721
+ is_offline_access_code: { type: 'boolean' },
1722
+ is_one_time_use: { type: 'boolean' },
1723
+ max_time_rounding: {
1724
+ enum: ['1hour', '1day', '1h', '1d'],
1725
+ type: 'string',
1726
+ },
1707
1727
  name: { type: 'string' },
1708
1728
  prefer_native_scheduling: { type: 'boolean' },
1709
1729
  starts_at: { type: 'string' },
1710
1730
  use_backup_access_code_pool: { type: 'boolean' },
1731
+ use_offline_access_code: { type: 'boolean' },
1711
1732
  },
1712
1733
  required: ['device_ids'],
1713
1734
  type: 'object',
@@ -2411,12 +2432,19 @@ export default {
2411
2432
  ends_at: { type: 'string' },
2412
2433
  is_external_modification_allowed: { type: 'boolean' },
2413
2434
  is_managed: { type: 'boolean' },
2435
+ is_offline_access_code: { type: 'boolean' },
2436
+ is_one_time_use: { type: 'boolean' },
2437
+ max_time_rounding: {
2438
+ enum: ['1hour', '1day', '1h', '1d'],
2439
+ type: 'string',
2440
+ },
2414
2441
  name: { type: 'string' },
2415
2442
  prefer_native_scheduling: { type: 'boolean' },
2416
2443
  starts_at: { type: 'string' },
2417
2444
  sync: { default: false, type: 'boolean' },
2418
2445
  type: { enum: ['ongoing', 'time_bound'], type: 'string' },
2419
2446
  use_backup_access_code_pool: { type: 'boolean' },
2447
+ use_offline_access_code: { type: 'boolean' },
2420
2448
  },
2421
2449
  required: ['access_code_id'],
2422
2450
  type: 'object',
@@ -2477,12 +2505,19 @@ export default {
2477
2505
  ends_at: { type: 'string' },
2478
2506
  is_external_modification_allowed: { type: 'boolean' },
2479
2507
  is_managed: { type: 'boolean' },
2508
+ is_offline_access_code: { type: 'boolean' },
2509
+ is_one_time_use: { type: 'boolean' },
2510
+ max_time_rounding: {
2511
+ enum: ['1hour', '1day', '1h', '1d'],
2512
+ type: 'string',
2513
+ },
2480
2514
  name: { type: 'string' },
2481
2515
  prefer_native_scheduling: { type: 'boolean' },
2482
2516
  starts_at: { type: 'string' },
2483
2517
  sync: { default: false, type: 'boolean' },
2484
2518
  type: { enum: ['ongoing', 'time_bound'], type: 'string' },
2485
2519
  use_backup_access_code_pool: { type: 'boolean' },
2520
+ use_offline_access_code: { type: 'boolean' },
2486
2521
  },
2487
2522
  required: ['access_code_id'],
2488
2523
  type: 'object',
@@ -2545,12 +2580,19 @@ export default {
2545
2580
  ends_at: { type: 'string' },
2546
2581
  is_external_modification_allowed: { type: 'boolean' },
2547
2582
  is_managed: { type: 'boolean' },
2583
+ is_offline_access_code: { type: 'boolean' },
2584
+ is_one_time_use: { type: 'boolean' },
2585
+ max_time_rounding: {
2586
+ enum: ['1hour', '1day', '1h', '1d'],
2587
+ type: 'string',
2588
+ },
2548
2589
  name: { type: 'string' },
2549
2590
  prefer_native_scheduling: { type: 'boolean' },
2550
2591
  starts_at: { type: 'string' },
2551
2592
  sync: { default: false, type: 'boolean' },
2552
2593
  type: { enum: ['ongoing', 'time_bound'], type: 'string' },
2553
2594
  use_backup_access_code_pool: { type: 'boolean' },
2595
+ use_offline_access_code: { type: 'boolean' },
2554
2596
  },
2555
2597
  required: ['access_code_id'],
2556
2598
  type: 'object',
@@ -3228,9 +3270,30 @@ export default {
3228
3270
  content: {
3229
3271
  'application/json': {
3230
3272
  schema: {
3231
- properties: { acs_user_id: { format: 'uuid', type: 'string' } },
3232
- required: ['acs_user_id'],
3233
- type: 'object',
3273
+ oneOf: [
3274
+ {
3275
+ properties: {
3276
+ acs_user_id: { format: 'uuid', type: 'string' },
3277
+ },
3278
+ required: ['acs_user_id'],
3279
+ type: 'object',
3280
+ },
3281
+ {
3282
+ properties: {
3283
+ acs_system_id: { format: 'uuid', type: 'string' },
3284
+ },
3285
+ required: ['acs_system_id'],
3286
+ type: 'object',
3287
+ },
3288
+ {
3289
+ properties: {
3290
+ acs_system_id: { format: 'uuid', type: 'string' },
3291
+ acs_user_id: { format: 'uuid', type: 'string' },
3292
+ },
3293
+ required: ['acs_user_id', 'acs_system_id'],
3294
+ type: 'object',
3295
+ },
3296
+ ],
3234
3297
  },
3235
3298
  },
3236
3299
  },
@@ -4431,6 +4494,7 @@ export default {
4431
4494
  'dormakaba_oracode',
4432
4495
  'pti',
4433
4496
  'wyze',
4497
+ 'seam_passport',
4434
4498
  'yale_access',
4435
4499
  ],
4436
4500
  type: 'string',
@@ -16,6 +16,10 @@ export interface Routes {
16
16
  use_backup_access_code_pool?: boolean | undefined
17
17
  allow_external_modification?: boolean | undefined
18
18
  is_external_modification_allowed?: boolean | undefined
19
+ use_offline_access_code?: boolean | undefined
20
+ is_offline_access_code?: boolean | undefined
21
+ is_one_time_use?: boolean | undefined
22
+ max_time_rounding?: ('1hour' | '1day' | '1h' | '1d') | undefined
19
23
  }
20
24
  commonParams: {}
21
25
  formData: {}
@@ -84,6 +88,10 @@ export interface Routes {
84
88
  use_backup_access_code_pool?: boolean | undefined
85
89
  allow_external_modification?: boolean | undefined
86
90
  is_external_modification_allowed?: boolean | undefined
91
+ use_offline_access_code?: boolean | undefined
92
+ is_offline_access_code?: boolean | undefined
93
+ is_one_time_use?: boolean | undefined
94
+ max_time_rounding?: ('1hour' | '1day' | '1h' | '1d') | undefined
87
95
  }
88
96
  commonParams: {}
89
97
  formData: {}
@@ -435,6 +443,10 @@ export interface Routes {
435
443
  use_backup_access_code_pool?: boolean | undefined
436
444
  allow_external_modification?: boolean | undefined
437
445
  is_external_modification_allowed?: boolean | undefined
446
+ use_offline_access_code?: boolean | undefined
447
+ is_offline_access_code?: boolean | undefined
448
+ is_one_time_use?: boolean | undefined
449
+ max_time_rounding?: ('1hour' | '1day' | '1h' | '1d') | undefined
438
450
  access_code_id: string
439
451
  device_id?: string | undefined
440
452
  type?: ('ongoing' | 'time_bound') | undefined
@@ -704,9 +716,17 @@ export interface Routes {
704
716
  method: 'GET' | 'POST'
705
717
  queryParams: {}
706
718
  jsonBody: {}
707
- commonParams: {
708
- acs_user_id: string
709
- }
719
+ commonParams:
720
+ | {
721
+ acs_user_id: string
722
+ }
723
+ | {
724
+ acs_system_id: string
725
+ }
726
+ | {
727
+ acs_user_id: string
728
+ acs_system_id: string
729
+ }
710
730
  formData: {}
711
731
  jsonResponse: {
712
732
  acs_credentials: Array<{
@@ -1159,6 +1179,7 @@ export interface Routes {
1159
1179
  | 'dormakaba_oracode'
1160
1180
  | 'pti'
1161
1181
  | 'wyze'
1182
+ | 'seam_passport'
1162
1183
  | 'yale_access'
1163
1184
  >
1164
1185
  | undefined