@seamapi/types 1.35.0 → 1.37.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/dist/connect.cjs +110 -160
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +213 -247
- package/lib/seam/connect/openapi.d.ts +170 -206
- package/lib/seam/connect/openapi.js +103 -153
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +43 -41
- package/lib/seam/connect/unstable/model-types.d.ts +1 -1
- package/lib/seam/connect/unstable/models/access-codes/index.d.ts +2 -0
- package/lib/seam/connect/unstable/models/access-codes/index.js +3 -0
- package/lib/seam/connect/unstable/models/access-codes/index.js.map +1 -0
- package/lib/seam/connect/unstable/models/access-codes/managed-access-code.d.ts +63 -0
- package/lib/seam/connect/unstable/models/access-codes/managed-access-code.js +23 -0
- package/lib/seam/connect/unstable/models/access-codes/managed-access-code.js.map +1 -0
- package/lib/seam/connect/unstable/models/access-codes/unmanaged-access-code.d.ts +42 -0
- package/lib/seam/connect/unstable/models/access-codes/unmanaged-access-code.js +21 -0
- package/lib/seam/connect/unstable/models/access-codes/unmanaged-access-code.js.map +1 -0
- package/lib/seam/connect/unstable/models/acs/system.d.ts +7 -7
- package/lib/seam/connect/unstable/models/acs/system.js +5 -1
- package/lib/seam/connect/unstable/models/acs/system.js.map +1 -1
- package/lib/seam/connect/unstable/models/capability-properties/index.d.ts +2 -2
- package/lib/seam/connect/unstable/models/capability-properties/index.js +2 -2
- package/lib/seam/connect/unstable/models/capability-properties/index.js.map +1 -1
- package/lib/seam/connect/unstable/models/devices/capabilities-supported.js.map +1 -0
- package/lib/seam/connect/unstable/models/{device-metadata.d.ts → devices/device-metadata.d.ts} +1 -0
- package/lib/seam/connect/unstable/models/devices/device-metadata.js.map +1 -0
- package/lib/seam/connect/unstable/models/devices/device-type.js.map +1 -0
- package/lib/seam/connect/unstable/models/devices/index.d.ts +5 -0
- package/lib/seam/connect/unstable/models/devices/index.js +6 -0
- package/lib/seam/connect/unstable/models/devices/index.js.map +1 -0
- package/lib/seam/connect/unstable/models/{managed-device.js → devices/managed-device.js} +1 -1
- package/lib/seam/connect/unstable/models/devices/managed-device.js.map +1 -0
- package/lib/seam/connect/unstable/models/devices/unmanaged-device.js.map +1 -0
- package/lib/seam/connect/unstable/models/index.d.ts +2 -4
- package/lib/seam/connect/unstable/models/index.js +2 -4
- package/lib/seam/connect/unstable/models/index.js.map +1 -1
- package/lib/seam/connect/unstable/schemas.d.ts +1 -1
- package/lib/seam/connect/unstable/schemas.js +1 -1
- package/lib/seam/connect/unstable/schemas.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/seam/connect/openapi.ts +103 -153
- package/src/lib/seam/connect/route-types.ts +55 -52
- package/src/lib/seam/connect/unstable/model-types.ts +3 -0
- package/src/lib/seam/connect/unstable/models/access-codes/index.ts +2 -0
- package/src/lib/seam/connect/unstable/models/access-codes/managed-access-code.ts +25 -0
- package/src/lib/seam/connect/unstable/models/access-codes/unmanaged-access-code.ts +24 -0
- package/src/lib/seam/connect/unstable/models/acs/system.ts +5 -1
- package/src/lib/seam/connect/unstable/models/capability-properties/index.ts +2 -0
- package/src/lib/seam/connect/unstable/models/{device-metadata.ts → devices/device-metadata.ts} +2 -0
- package/src/lib/seam/connect/unstable/models/devices/index.ts +5 -0
- package/src/lib/seam/connect/unstable/models/{managed-device.ts → devices/managed-device.ts} +1 -1
- package/src/lib/seam/connect/unstable/models/index.ts +2 -4
- package/src/lib/seam/connect/unstable/schemas.ts +4 -0
- package/lib/seam/connect/unstable/models/capabilities-supported.js.map +0 -1
- package/lib/seam/connect/unstable/models/device-metadata.js.map +0 -1
- package/lib/seam/connect/unstable/models/device-type.js.map +0 -1
- package/lib/seam/connect/unstable/models/managed-device.js.map +0 -1
- package/lib/seam/connect/unstable/models/unmanaged-device.js.map +0 -1
- /package/lib/seam/connect/unstable/models/{capabilities-supported.d.ts → devices/capabilities-supported.d.ts} +0 -0
- /package/lib/seam/connect/unstable/models/{capabilities-supported.js → devices/capabilities-supported.js} +0 -0
- /package/lib/seam/connect/unstable/models/{device-metadata.js → devices/device-metadata.js} +0 -0
- /package/lib/seam/connect/unstable/models/{device-type.d.ts → devices/device-type.d.ts} +0 -0
- /package/lib/seam/connect/unstable/models/{device-type.js → devices/device-type.js} +0 -0
- /package/lib/seam/connect/unstable/models/{managed-device.d.ts → devices/managed-device.d.ts} +0 -0
- /package/lib/seam/connect/unstable/models/{unmanaged-device.d.ts → devices/unmanaged-device.d.ts} +0 -0
- /package/lib/seam/connect/unstable/models/{unmanaged-device.js → devices/unmanaged-device.js} +0 -0
- /package/src/lib/seam/connect/unstable/models/{capabilities-supported.ts → devices/capabilities-supported.ts} +0 -0
- /package/src/lib/seam/connect/unstable/models/{device-type.ts → devices/device-type.ts} +0 -0
- /package/src/lib/seam/connect/unstable/models/{unmanaged-device.ts → devices/unmanaged-device.ts} +0 -0
|
@@ -8,14 +8,12 @@ export default {
|
|
|
8
8
|
common_code_key: { nullable: true, type: 'string' },
|
|
9
9
|
created_at: { format: 'date-time', type: 'string' },
|
|
10
10
|
device_id: { format: 'uuid', type: 'string' },
|
|
11
|
-
ends_at: { format: 'date-time', type: 'string' },
|
|
11
|
+
ends_at: { format: 'date-time', nullable: true, type: 'string' },
|
|
12
12
|
errors: { nullable: true },
|
|
13
13
|
is_backup: { type: 'boolean' },
|
|
14
14
|
is_backup_access_code_available: { type: 'boolean' },
|
|
15
15
|
is_external_modification_allowed: { type: 'boolean' },
|
|
16
16
|
is_managed: { enum: [true], type: 'boolean' },
|
|
17
|
-
is_offline_access_code: { type: 'boolean' },
|
|
18
|
-
is_one_time_use: { type: 'boolean' },
|
|
19
17
|
is_scheduled_on_device: { type: 'boolean' },
|
|
20
18
|
is_waiting_for_code_assignment: { type: 'boolean' },
|
|
21
19
|
name: { nullable: true, type: 'string' },
|
|
@@ -24,7 +22,7 @@ export default {
|
|
|
24
22
|
nullable: true,
|
|
25
23
|
type: 'string',
|
|
26
24
|
},
|
|
27
|
-
starts_at: { format: 'date-time', type: 'string' },
|
|
25
|
+
starts_at: { format: 'date-time', nullable: true, type: 'string' },
|
|
28
26
|
status: {
|
|
29
27
|
enum: ['setting', 'set', 'unset', 'removing', 'unknown'],
|
|
30
28
|
type: 'string',
|
|
@@ -44,8 +42,6 @@ export default {
|
|
|
44
42
|
'status',
|
|
45
43
|
'is_backup_access_code_available',
|
|
46
44
|
'is_external_modification_allowed',
|
|
47
|
-
'is_one_time_use',
|
|
48
|
-
'is_offline_access_code',
|
|
49
45
|
],
|
|
50
46
|
type: 'object',
|
|
51
47
|
},
|
|
@@ -99,12 +95,15 @@ export default {
|
|
|
99
95
|
acs_system_id: { format: 'uuid', type: 'string' },
|
|
100
96
|
connected_account_ids: { items: { type: 'string' }, type: 'array' },
|
|
101
97
|
created_at: { format: 'date-time', type: 'string' },
|
|
102
|
-
external_type: {
|
|
98
|
+
external_type: {
|
|
99
|
+
enum: ['pti_site', 'alta_org', 'brivo_system'],
|
|
100
|
+
type: 'string',
|
|
101
|
+
},
|
|
103
102
|
external_type_display_name: { type: 'string' },
|
|
104
103
|
name: { type: 'string' },
|
|
105
104
|
system_type: {
|
|
106
105
|
description: 'deprecated: use external_type',
|
|
107
|
-
enum: ['pti_site', 'alta_org'],
|
|
106
|
+
enum: ['pti_site', 'alta_org', 'brivo_system'],
|
|
108
107
|
type: 'string',
|
|
109
108
|
},
|
|
110
109
|
system_type_display_name: {
|
|
@@ -1340,6 +1339,33 @@ export default {
|
|
|
1340
1339
|
required: ['service', 'status', 'description'],
|
|
1341
1340
|
type: 'object',
|
|
1342
1341
|
},
|
|
1342
|
+
unmanaged_access_code: {
|
|
1343
|
+
properties: {
|
|
1344
|
+
access_code_id: { format: 'uuid', type: 'string' },
|
|
1345
|
+
code: { nullable: true, type: 'string' },
|
|
1346
|
+
created_at: { format: 'date-time', type: 'string' },
|
|
1347
|
+
device_id: { format: 'uuid', type: 'string' },
|
|
1348
|
+
ends_at: { format: 'date-time', nullable: true, type: 'string' },
|
|
1349
|
+
errors: { nullable: true },
|
|
1350
|
+
is_managed: { enum: [false], type: 'boolean' },
|
|
1351
|
+
name: { nullable: true, type: 'string' },
|
|
1352
|
+
starts_at: { format: 'date-time', nullable: true, type: 'string' },
|
|
1353
|
+
status: { enum: ['set'], type: 'string' },
|
|
1354
|
+
type: { enum: ['time_bound', 'ongoing'], type: 'string' },
|
|
1355
|
+
warnings: { nullable: true },
|
|
1356
|
+
},
|
|
1357
|
+
required: [
|
|
1358
|
+
'type',
|
|
1359
|
+
'access_code_id',
|
|
1360
|
+
'device_id',
|
|
1361
|
+
'name',
|
|
1362
|
+
'code',
|
|
1363
|
+
'created_at',
|
|
1364
|
+
'is_managed',
|
|
1365
|
+
'status',
|
|
1366
|
+
],
|
|
1367
|
+
type: 'object',
|
|
1368
|
+
},
|
|
1343
1369
|
unmanaged_device: {
|
|
1344
1370
|
properties: {
|
|
1345
1371
|
capabilities_supported: {
|
|
@@ -1529,11 +1555,18 @@ export default {
|
|
|
1529
1555
|
device_id: { format: 'uuid', type: 'string' },
|
|
1530
1556
|
ends_at: { type: 'string' },
|
|
1531
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
|
+
},
|
|
1532
1564
|
name: { type: 'string' },
|
|
1533
1565
|
prefer_native_scheduling: { type: 'boolean' },
|
|
1534
1566
|
starts_at: { type: 'string' },
|
|
1535
1567
|
sync: { default: false, type: 'boolean' },
|
|
1536
1568
|
use_backup_access_code_pool: { type: 'boolean' },
|
|
1569
|
+
use_offline_access_code: { type: 'boolean' },
|
|
1537
1570
|
},
|
|
1538
1571
|
required: ['device_id'],
|
|
1539
1572
|
type: 'object',
|
|
@@ -1605,10 +1638,17 @@ export default {
|
|
|
1605
1638
|
},
|
|
1606
1639
|
ends_at: { type: 'string' },
|
|
1607
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
|
+
},
|
|
1608
1647
|
name: { type: 'string' },
|
|
1609
1648
|
prefer_native_scheduling: { type: 'boolean' },
|
|
1610
1649
|
starts_at: { type: 'string' },
|
|
1611
1650
|
use_backup_access_code_pool: { type: 'boolean' },
|
|
1651
|
+
use_offline_access_code: { type: 'boolean' },
|
|
1612
1652
|
},
|
|
1613
1653
|
required: ['device_ids'],
|
|
1614
1654
|
type: 'object',
|
|
@@ -1678,10 +1718,17 @@ export default {
|
|
|
1678
1718
|
},
|
|
1679
1719
|
ends_at: { type: 'string' },
|
|
1680
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
|
+
},
|
|
1681
1727
|
name: { type: 'string' },
|
|
1682
1728
|
prefer_native_scheduling: { type: 'boolean' },
|
|
1683
1729
|
starts_at: { type: 'string' },
|
|
1684
1730
|
use_backup_access_code_pool: { type: 'boolean' },
|
|
1731
|
+
use_offline_access_code: { type: 'boolean' },
|
|
1685
1732
|
},
|
|
1686
1733
|
required: ['device_ids'],
|
|
1687
1734
|
type: 'object',
|
|
@@ -2000,72 +2047,7 @@ export default {
|
|
|
2000
2047
|
schema: {
|
|
2001
2048
|
properties: {
|
|
2002
2049
|
access_code: {
|
|
2003
|
-
|
|
2004
|
-
{
|
|
2005
|
-
properties: {
|
|
2006
|
-
access_code_id: { format: 'uuid', type: 'string' },
|
|
2007
|
-
code: { nullable: true, type: 'string' },
|
|
2008
|
-
created_at: {
|
|
2009
|
-
oneOf: [
|
|
2010
|
-
{ type: 'string' },
|
|
2011
|
-
{ format: 'date-time', type: 'string' },
|
|
2012
|
-
],
|
|
2013
|
-
},
|
|
2014
|
-
ends_at: {
|
|
2015
|
-
format: 'null',
|
|
2016
|
-
nullable: true,
|
|
2017
|
-
type: 'string',
|
|
2018
|
-
},
|
|
2019
|
-
is_managed: { enum: [false], type: 'boolean' },
|
|
2020
|
-
starts_at: {
|
|
2021
|
-
format: 'null',
|
|
2022
|
-
nullable: true,
|
|
2023
|
-
type: 'string',
|
|
2024
|
-
},
|
|
2025
|
-
status: { enum: ['set'], type: 'string' },
|
|
2026
|
-
type: { enum: ['ongoing'], type: 'string' },
|
|
2027
|
-
},
|
|
2028
|
-
required: [
|
|
2029
|
-
'access_code_id',
|
|
2030
|
-
'code',
|
|
2031
|
-
'status',
|
|
2032
|
-
'created_at',
|
|
2033
|
-
'is_managed',
|
|
2034
|
-
'type',
|
|
2035
|
-
'starts_at',
|
|
2036
|
-
'ends_at',
|
|
2037
|
-
],
|
|
2038
|
-
type: 'object',
|
|
2039
|
-
},
|
|
2040
|
-
{
|
|
2041
|
-
properties: {
|
|
2042
|
-
access_code_id: { format: 'uuid', type: 'string' },
|
|
2043
|
-
code: { nullable: true, type: 'string' },
|
|
2044
|
-
created_at: {
|
|
2045
|
-
oneOf: [
|
|
2046
|
-
{ type: 'string' },
|
|
2047
|
-
{ format: 'date-time', type: 'string' },
|
|
2048
|
-
],
|
|
2049
|
-
},
|
|
2050
|
-
ends_at: { nullable: true, type: 'string' },
|
|
2051
|
-
is_managed: { enum: [false], type: 'boolean' },
|
|
2052
|
-
starts_at: { nullable: true, type: 'string' },
|
|
2053
|
-
status: { enum: ['set'], type: 'string' },
|
|
2054
|
-
type: { enum: ['time_bound'], type: 'string' },
|
|
2055
|
-
},
|
|
2056
|
-
required: [
|
|
2057
|
-
'access_code_id',
|
|
2058
|
-
'code',
|
|
2059
|
-
'status',
|
|
2060
|
-
'created_at',
|
|
2061
|
-
'is_managed',
|
|
2062
|
-
'type',
|
|
2063
|
-
'starts_at',
|
|
2064
|
-
'ends_at',
|
|
2065
|
-
],
|
|
2066
|
-
type: 'object',
|
|
2067
|
-
},
|
|
2068
|
-
],
|
|
2050
|
+
$ref: '#/components/schemas/unmanaged_access_code',
|
|
2069
2051
|
},
|
|
2070
2052
|
ok: { type: 'boolean' },
|
|
2071
2053
|
},
|
|
@@ -2256,44 +2238,7 @@ export default {
|
|
|
2256
2238
|
schema: {
|
|
2257
2239
|
properties: {
|
|
2258
2240
|
access_code: {
|
|
2259
|
-
|
|
2260
|
-
access_code_id: { format: 'uuid', type: 'string' },
|
|
2261
|
-
code: { nullable: true, type: 'string' },
|
|
2262
|
-
created_at: { format: 'date-time', type: 'string' },
|
|
2263
|
-
device_id: { format: 'uuid', type: 'string' },
|
|
2264
|
-
ends_at: {
|
|
2265
|
-
format: 'date-time',
|
|
2266
|
-
nullable: true,
|
|
2267
|
-
type: 'string',
|
|
2268
|
-
},
|
|
2269
|
-
errors: { nullable: true },
|
|
2270
|
-
is_managed: { enum: [false], type: 'boolean' },
|
|
2271
|
-
name: { nullable: true, type: 'string' },
|
|
2272
|
-
starts_at: {
|
|
2273
|
-
format: 'date-time',
|
|
2274
|
-
nullable: true,
|
|
2275
|
-
type: 'string',
|
|
2276
|
-
},
|
|
2277
|
-
status: { enum: ['set'], type: 'string' },
|
|
2278
|
-
type: {
|
|
2279
|
-
enum: ['time_bound', 'ongoing'],
|
|
2280
|
-
type: 'string',
|
|
2281
|
-
},
|
|
2282
|
-
warnings: { nullable: true },
|
|
2283
|
-
},
|
|
2284
|
-
required: [
|
|
2285
|
-
'type',
|
|
2286
|
-
'access_code_id',
|
|
2287
|
-
'device_id',
|
|
2288
|
-
'name',
|
|
2289
|
-
'code',
|
|
2290
|
-
'created_at',
|
|
2291
|
-
'is_managed',
|
|
2292
|
-
'starts_at',
|
|
2293
|
-
'ends_at',
|
|
2294
|
-
'status',
|
|
2295
|
-
],
|
|
2296
|
-
type: 'object',
|
|
2241
|
+
$ref: '#/components/schemas/unmanaged_access_code',
|
|
2297
2242
|
},
|
|
2298
2243
|
ok: { type: 'boolean' },
|
|
2299
2244
|
},
|
|
@@ -2344,44 +2289,7 @@ export default {
|
|
|
2344
2289
|
properties: {
|
|
2345
2290
|
access_codes: {
|
|
2346
2291
|
items: {
|
|
2347
|
-
|
|
2348
|
-
access_code_id: { format: 'uuid', type: 'string' },
|
|
2349
|
-
code: { nullable: true, type: 'string' },
|
|
2350
|
-
created_at: { format: 'date-time', type: 'string' },
|
|
2351
|
-
device_id: { format: 'uuid', type: 'string' },
|
|
2352
|
-
ends_at: {
|
|
2353
|
-
format: 'date-time',
|
|
2354
|
-
nullable: true,
|
|
2355
|
-
type: 'string',
|
|
2356
|
-
},
|
|
2357
|
-
errors: { nullable: true },
|
|
2358
|
-
is_managed: { enum: [false], type: 'boolean' },
|
|
2359
|
-
name: { nullable: true, type: 'string' },
|
|
2360
|
-
starts_at: {
|
|
2361
|
-
format: 'date-time',
|
|
2362
|
-
nullable: true,
|
|
2363
|
-
type: 'string',
|
|
2364
|
-
},
|
|
2365
|
-
status: { enum: ['set'], type: 'string' },
|
|
2366
|
-
type: {
|
|
2367
|
-
enum: ['time_bound', 'ongoing'],
|
|
2368
|
-
type: 'string',
|
|
2369
|
-
},
|
|
2370
|
-
warnings: { nullable: true },
|
|
2371
|
-
},
|
|
2372
|
-
required: [
|
|
2373
|
-
'type',
|
|
2374
|
-
'access_code_id',
|
|
2375
|
-
'device_id',
|
|
2376
|
-
'name',
|
|
2377
|
-
'code',
|
|
2378
|
-
'created_at',
|
|
2379
|
-
'is_managed',
|
|
2380
|
-
'starts_at',
|
|
2381
|
-
'ends_at',
|
|
2382
|
-
'status',
|
|
2383
|
-
],
|
|
2384
|
-
type: 'object',
|
|
2292
|
+
$ref: '#/components/schemas/unmanaged_access_code',
|
|
2385
2293
|
},
|
|
2386
2294
|
type: 'array',
|
|
2387
2295
|
},
|
|
@@ -2524,12 +2432,19 @@ export default {
|
|
|
2524
2432
|
ends_at: { type: 'string' },
|
|
2525
2433
|
is_external_modification_allowed: { type: 'boolean' },
|
|
2526
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
|
+
},
|
|
2527
2441
|
name: { type: 'string' },
|
|
2528
2442
|
prefer_native_scheduling: { type: 'boolean' },
|
|
2529
2443
|
starts_at: { type: 'string' },
|
|
2530
2444
|
sync: { default: false, type: 'boolean' },
|
|
2531
2445
|
type: { enum: ['ongoing', 'time_bound'], type: 'string' },
|
|
2532
2446
|
use_backup_access_code_pool: { type: 'boolean' },
|
|
2447
|
+
use_offline_access_code: { type: 'boolean' },
|
|
2533
2448
|
},
|
|
2534
2449
|
required: ['access_code_id'],
|
|
2535
2450
|
type: 'object',
|
|
@@ -2590,12 +2505,19 @@ export default {
|
|
|
2590
2505
|
ends_at: { type: 'string' },
|
|
2591
2506
|
is_external_modification_allowed: { type: 'boolean' },
|
|
2592
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
|
+
},
|
|
2593
2514
|
name: { type: 'string' },
|
|
2594
2515
|
prefer_native_scheduling: { type: 'boolean' },
|
|
2595
2516
|
starts_at: { type: 'string' },
|
|
2596
2517
|
sync: { default: false, type: 'boolean' },
|
|
2597
2518
|
type: { enum: ['ongoing', 'time_bound'], type: 'string' },
|
|
2598
2519
|
use_backup_access_code_pool: { type: 'boolean' },
|
|
2520
|
+
use_offline_access_code: { type: 'boolean' },
|
|
2599
2521
|
},
|
|
2600
2522
|
required: ['access_code_id'],
|
|
2601
2523
|
type: 'object',
|
|
@@ -2658,12 +2580,19 @@ export default {
|
|
|
2658
2580
|
ends_at: { type: 'string' },
|
|
2659
2581
|
is_external_modification_allowed: { type: 'boolean' },
|
|
2660
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
|
+
},
|
|
2661
2589
|
name: { type: 'string' },
|
|
2662
2590
|
prefer_native_scheduling: { type: 'boolean' },
|
|
2663
2591
|
starts_at: { type: 'string' },
|
|
2664
2592
|
sync: { default: false, type: 'boolean' },
|
|
2665
2593
|
type: { enum: ['ongoing', 'time_bound'], type: 'string' },
|
|
2666
2594
|
use_backup_access_code_pool: { type: 'boolean' },
|
|
2595
|
+
use_offline_access_code: { type: 'boolean' },
|
|
2667
2596
|
},
|
|
2668
2597
|
required: ['access_code_id'],
|
|
2669
2598
|
type: 'object',
|
|
@@ -3341,9 +3270,30 @@ export default {
|
|
|
3341
3270
|
content: {
|
|
3342
3271
|
'application/json': {
|
|
3343
3272
|
schema: {
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
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
|
+
],
|
|
3347
3297
|
},
|
|
3348
3298
|
},
|
|
3349
3299
|
},
|
|
@@ -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: {}
|
|
@@ -58,15 +62,13 @@ export interface Routes {
|
|
|
58
62
|
errors?: any
|
|
59
63
|
warnings?: any
|
|
60
64
|
is_managed: true
|
|
61
|
-
starts_at?: string | undefined
|
|
62
|
-
ends_at?: string | undefined
|
|
65
|
+
starts_at?: (string | null) | undefined
|
|
66
|
+
ends_at?: (string | null) | undefined
|
|
63
67
|
status: 'setting' | 'set' | 'unset' | 'removing' | 'unknown'
|
|
64
68
|
is_backup_access_code_available: boolean
|
|
65
69
|
is_backup?: boolean | undefined
|
|
66
70
|
pulled_backup_access_code_id?: (string | null) | undefined
|
|
67
71
|
is_external_modification_allowed: boolean
|
|
68
|
-
is_one_time_use: boolean
|
|
69
|
-
is_offline_access_code: boolean
|
|
70
72
|
}
|
|
71
73
|
}
|
|
72
74
|
}
|
|
@@ -86,6 +88,10 @@ export interface Routes {
|
|
|
86
88
|
use_backup_access_code_pool?: boolean | undefined
|
|
87
89
|
allow_external_modification?: boolean | undefined
|
|
88
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
|
|
89
95
|
}
|
|
90
96
|
commonParams: {}
|
|
91
97
|
formData: {}
|
|
@@ -103,15 +109,13 @@ export interface Routes {
|
|
|
103
109
|
errors?: any
|
|
104
110
|
warnings?: any
|
|
105
111
|
is_managed: true
|
|
106
|
-
starts_at?: string | undefined
|
|
107
|
-
ends_at?: string | undefined
|
|
112
|
+
starts_at?: (string | null) | undefined
|
|
113
|
+
ends_at?: (string | null) | undefined
|
|
108
114
|
status: 'setting' | 'set' | 'unset' | 'removing' | 'unknown'
|
|
109
115
|
is_backup_access_code_available: boolean
|
|
110
116
|
is_backup?: boolean | undefined
|
|
111
117
|
pulled_backup_access_code_id?: (string | null) | undefined
|
|
112
118
|
is_external_modification_allowed: boolean
|
|
113
|
-
is_one_time_use: boolean
|
|
114
|
-
is_offline_access_code: boolean
|
|
115
119
|
}>
|
|
116
120
|
}
|
|
117
121
|
}
|
|
@@ -195,15 +199,13 @@ export interface Routes {
|
|
|
195
199
|
errors?: any
|
|
196
200
|
warnings?: any
|
|
197
201
|
is_managed: true
|
|
198
|
-
starts_at?: string | undefined
|
|
199
|
-
ends_at?: string | undefined
|
|
202
|
+
starts_at?: (string | null) | undefined
|
|
203
|
+
ends_at?: (string | null) | undefined
|
|
200
204
|
status: 'setting' | 'set' | 'unset' | 'removing' | 'unknown'
|
|
201
205
|
is_backup_access_code_available: boolean
|
|
202
206
|
is_backup?: boolean | undefined
|
|
203
207
|
pulled_backup_access_code_id?: (string | null) | undefined
|
|
204
208
|
is_external_modification_allowed: boolean
|
|
205
|
-
is_one_time_use: boolean
|
|
206
|
-
is_offline_access_code: boolean
|
|
207
209
|
}
|
|
208
210
|
}
|
|
209
211
|
}
|
|
@@ -232,15 +234,13 @@ export interface Routes {
|
|
|
232
234
|
errors?: any
|
|
233
235
|
warnings?: any
|
|
234
236
|
is_managed: true
|
|
235
|
-
starts_at?: string | undefined
|
|
236
|
-
ends_at?: string | undefined
|
|
237
|
+
starts_at?: (string | null) | undefined
|
|
238
|
+
ends_at?: (string | null) | undefined
|
|
237
239
|
status: 'setting' | 'set' | 'unset' | 'removing' | 'unknown'
|
|
238
240
|
is_backup_access_code_available: boolean
|
|
239
241
|
is_backup?: boolean | undefined
|
|
240
242
|
pulled_backup_access_code_id?: (string | null) | undefined
|
|
241
243
|
is_external_modification_allowed: boolean
|
|
242
|
-
is_one_time_use: boolean
|
|
243
|
-
is_offline_access_code: boolean
|
|
244
244
|
}>
|
|
245
245
|
}
|
|
246
246
|
}
|
|
@@ -267,15 +267,13 @@ export interface Routes {
|
|
|
267
267
|
errors?: any
|
|
268
268
|
warnings?: any
|
|
269
269
|
is_managed: true
|
|
270
|
-
starts_at?: string | undefined
|
|
271
|
-
ends_at?: string | undefined
|
|
270
|
+
starts_at?: (string | null) | undefined
|
|
271
|
+
ends_at?: (string | null) | undefined
|
|
272
272
|
status: 'setting' | 'set' | 'unset' | 'removing' | 'unknown'
|
|
273
273
|
is_backup_access_code_available: boolean
|
|
274
274
|
is_backup?: boolean | undefined
|
|
275
275
|
pulled_backup_access_code_id?: (string | null) | undefined
|
|
276
276
|
is_external_modification_allowed: boolean
|
|
277
|
-
is_one_time_use: boolean
|
|
278
|
-
is_offline_access_code: boolean
|
|
279
277
|
}
|
|
280
278
|
}
|
|
281
279
|
}
|
|
@@ -291,27 +289,20 @@ export interface Routes {
|
|
|
291
289
|
commonParams: {}
|
|
292
290
|
formData: {}
|
|
293
291
|
jsonResponse: {
|
|
294
|
-
access_code:
|
|
295
|
-
|
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
status: 'set'
|
|
309
|
-
created_at: string | Date
|
|
310
|
-
is_managed: false
|
|
311
|
-
type: 'time_bound'
|
|
312
|
-
starts_at: string | null
|
|
313
|
-
ends_at: string | null
|
|
314
|
-
}
|
|
292
|
+
access_code: {
|
|
293
|
+
type: 'time_bound' | 'ongoing'
|
|
294
|
+
access_code_id: string
|
|
295
|
+
device_id: string
|
|
296
|
+
name: string | null
|
|
297
|
+
code: string | null
|
|
298
|
+
created_at: string
|
|
299
|
+
errors?: any
|
|
300
|
+
warnings?: any
|
|
301
|
+
is_managed: false
|
|
302
|
+
starts_at?: (string | null) | undefined
|
|
303
|
+
ends_at?: (string | null) | undefined
|
|
304
|
+
status: 'set'
|
|
305
|
+
}
|
|
315
306
|
}
|
|
316
307
|
}
|
|
317
308
|
'/access_codes/unmanaged/convert_to_managed': {
|
|
@@ -389,8 +380,8 @@ export interface Routes {
|
|
|
389
380
|
errors?: any
|
|
390
381
|
warnings?: any
|
|
391
382
|
is_managed: false
|
|
392
|
-
starts_at
|
|
393
|
-
ends_at
|
|
383
|
+
starts_at?: (string | null) | undefined
|
|
384
|
+
ends_at?: (string | null) | undefined
|
|
394
385
|
status: 'set'
|
|
395
386
|
}
|
|
396
387
|
}
|
|
@@ -416,8 +407,8 @@ export interface Routes {
|
|
|
416
407
|
errors?: any
|
|
417
408
|
warnings?: any
|
|
418
409
|
is_managed: false
|
|
419
|
-
starts_at
|
|
420
|
-
ends_at
|
|
410
|
+
starts_at?: (string | null) | undefined
|
|
411
|
+
ends_at?: (string | null) | undefined
|
|
421
412
|
status: 'set'
|
|
422
413
|
}>
|
|
423
414
|
}
|
|
@@ -452,6 +443,10 @@ export interface Routes {
|
|
|
452
443
|
use_backup_access_code_pool?: boolean | undefined
|
|
453
444
|
allow_external_modification?: boolean | undefined
|
|
454
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
|
|
455
450
|
access_code_id: string
|
|
456
451
|
device_id?: string | undefined
|
|
457
452
|
type?: ('ongoing' | 'time_bound') | undefined
|
|
@@ -721,9 +716,17 @@ export interface Routes {
|
|
|
721
716
|
method: 'GET' | 'POST'
|
|
722
717
|
queryParams: {}
|
|
723
718
|
jsonBody: {}
|
|
724
|
-
commonParams:
|
|
725
|
-
|
|
726
|
-
|
|
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
|
+
}
|
|
727
730
|
formData: {}
|
|
728
731
|
jsonResponse: {
|
|
729
732
|
acs_credentials: Array<{
|
|
@@ -750,10 +753,10 @@ export interface Routes {
|
|
|
750
753
|
jsonResponse: {
|
|
751
754
|
acs_system: {
|
|
752
755
|
acs_system_id: string
|
|
753
|
-
external_type: 'pti_site' | 'alta_org'
|
|
756
|
+
external_type: 'pti_site' | 'alta_org' | 'brivo_system'
|
|
754
757
|
external_type_display_name: string
|
|
755
758
|
/** deprecated: use external_type */
|
|
756
|
-
system_type: 'pti_site' | 'alta_org'
|
|
759
|
+
system_type: 'pti_site' | 'alta_org' | 'brivo_system'
|
|
757
760
|
/** deprecated: use external_type_display_name */
|
|
758
761
|
system_type_display_name: string
|
|
759
762
|
name: string
|
|
@@ -774,10 +777,10 @@ export interface Routes {
|
|
|
774
777
|
jsonResponse: {
|
|
775
778
|
acs_systems: Array<{
|
|
776
779
|
acs_system_id: string
|
|
777
|
-
external_type: 'pti_site' | 'alta_org'
|
|
780
|
+
external_type: 'pti_site' | 'alta_org' | 'brivo_system'
|
|
778
781
|
external_type_display_name: string
|
|
779
782
|
/** deprecated: use external_type */
|
|
780
|
-
system_type: 'pti_site' | 'alta_org'
|
|
783
|
+
system_type: 'pti_site' | 'alta_org' | 'brivo_system'
|
|
781
784
|
/** deprecated: use external_type_display_name */
|
|
782
785
|
system_type_display_name: string
|
|
783
786
|
name: string
|
|
@@ -12,10 +12,13 @@ export type {
|
|
|
12
12
|
BatteryStatus,
|
|
13
13
|
Capabilities,
|
|
14
14
|
ClimateSetting,
|
|
15
|
+
DeviceMetadata,
|
|
15
16
|
LockDeviceType,
|
|
17
|
+
ManagedAccessCode,
|
|
16
18
|
ManagedDevice,
|
|
17
19
|
ManagedDeviceWithBackendMetadata,
|
|
18
20
|
NoiseSensorDeviceType,
|
|
19
21
|
ThermostatDeviceType,
|
|
22
|
+
UnmanagedAccessCode,
|
|
20
23
|
UnmanagedDevice,
|
|
21
24
|
} from './models/index.js'
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
|
|
3
|
+
export const managed_access_code = z.object({
|
|
4
|
+
common_code_key: z.string().nullable(),
|
|
5
|
+
is_scheduled_on_device: z.boolean().optional(),
|
|
6
|
+
type: z.enum(['time_bound', 'ongoing']),
|
|
7
|
+
is_waiting_for_code_assignment: z.boolean().optional(),
|
|
8
|
+
access_code_id: z.string().uuid(),
|
|
9
|
+
device_id: z.string().uuid(),
|
|
10
|
+
name: z.string().nullable(),
|
|
11
|
+
code: z.string().nullable(),
|
|
12
|
+
created_at: z.string().datetime(),
|
|
13
|
+
errors: z.any(),
|
|
14
|
+
warnings: z.any(),
|
|
15
|
+
is_managed: z.literal(true),
|
|
16
|
+
starts_at: z.string().datetime().nullable().optional(),
|
|
17
|
+
ends_at: z.string().datetime().nullable().optional(),
|
|
18
|
+
status: z.enum(['setting', 'set', 'unset', 'removing', 'unknown']),
|
|
19
|
+
is_backup_access_code_available: z.boolean(),
|
|
20
|
+
is_backup: z.boolean().optional(),
|
|
21
|
+
pulled_backup_access_code_id: z.string().uuid().nullable().optional(),
|
|
22
|
+
is_external_modification_allowed: z.boolean(),
|
|
23
|
+
})
|
|
24
|
+
|
|
25
|
+
export type ManagedAccessCode = z.infer<typeof managed_access_code>
|