@seamapi/types 1.306.0 → 1.307.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 +64 -23
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +228 -91
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +13 -13
- package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +13 -13
- package/lib/seam/connect/models/action-attempts/scan-credential.js +7 -2
- package/lib/seam/connect/models/action-attempts/scan-credential.js.map +1 -1
- package/lib/seam/connect/models/devices/device-metadata.d.ts +23 -0
- package/lib/seam/connect/models/devices/device-metadata.js +5 -0
- package/lib/seam/connect/models/devices/device-metadata.js.map +1 -1
- package/lib/seam/connect/models/devices/device-type.d.ts +1 -0
- package/lib/seam/connect/models/devices/device-type.js +1 -0
- package/lib/seam/connect/models/devices/device-type.js.map +1 -1
- package/lib/seam/connect/models/devices/device.d.ts +36 -3
- package/lib/seam/connect/models/devices/phone.d.ts +24 -1
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +26 -3
- package/lib/seam/connect/openapi.d.ts +16 -0
- package/lib/seam/connect/openapi.js +35 -1
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +137 -72
- package/package.json +1 -1
- package/src/lib/seam/connect/models/action-attempts/scan-credential.ts +7 -4
- package/src/lib/seam/connect/models/devices/device-metadata.ts +6 -0
- package/src/lib/seam/connect/models/devices/device-type.ts +1 -0
- package/src/lib/seam/connect/openapi.ts +35 -1
- package/src/lib/seam/connect/route-types.ts +205 -42
package/package.json
CHANGED
|
@@ -25,16 +25,19 @@ const error = z.union([
|
|
|
25
25
|
])
|
|
26
26
|
|
|
27
27
|
const warning = z.object({
|
|
28
|
-
warning_code: z.
|
|
28
|
+
warning_code: z.union([
|
|
29
|
+
z.literal('acs_credential_on_encoder_out_of_sync'),
|
|
30
|
+
z.literal('acs_credential_on_seam_not_found'),
|
|
31
|
+
]),
|
|
29
32
|
warning_message: z.string(),
|
|
30
33
|
})
|
|
31
34
|
|
|
32
35
|
const acs_credential_on_seam = acs_credential.or(unmanaged_acs_credential)
|
|
33
36
|
|
|
34
37
|
const result = z.object({
|
|
35
|
-
acs_credential_on_encoder: acs_credential_on_encoder
|
|
36
|
-
|
|
37
|
-
|
|
38
|
+
acs_credential_on_encoder: acs_credential_on_encoder
|
|
39
|
+
.nullable()
|
|
40
|
+
.describe('Snapshot of credential data read from physical encoder.'),
|
|
38
41
|
acs_credential_on_seam: acs_credential_on_seam
|
|
39
42
|
.nullable()
|
|
40
43
|
.describe('Matching acs_credential currently encoded on this card.'),
|
|
@@ -266,6 +266,12 @@ export const device_metadata = z
|
|
|
266
266
|
assa_abloy_vostio_metadata: z.object({
|
|
267
267
|
encoder_name: z.string(),
|
|
268
268
|
}),
|
|
269
|
+
|
|
270
|
+
tado_metadata: z.object({
|
|
271
|
+
serial_number: z.string(),
|
|
272
|
+
device_name: z.string(),
|
|
273
|
+
device_type: z.string(),
|
|
274
|
+
}),
|
|
269
275
|
})
|
|
270
276
|
.partial()
|
|
271
277
|
|
|
@@ -68,6 +68,7 @@ export const THERMOSTAT_DEVICE_TYPE = {
|
|
|
68
68
|
ECOBEE_THERMOSTAT: 'ecobee_thermostat',
|
|
69
69
|
NEST_THERMOSTAT: 'nest_thermostat',
|
|
70
70
|
HONEYWELL_RESIDEO_THERMOSTAT: 'honeywell_resideo_thermostat',
|
|
71
|
+
TADO_THERMOSTAT: 'tado_thermostat',
|
|
71
72
|
} as const
|
|
72
73
|
|
|
73
74
|
type ThermostatDeviceTypeFromMapping =
|
|
@@ -1542,6 +1542,7 @@ export default {
|
|
|
1542
1542
|
acs_credential_on_encoder: {
|
|
1543
1543
|
description:
|
|
1544
1544
|
'Snapshot of credential data read from physical encoder.',
|
|
1545
|
+
nullable: true,
|
|
1545
1546
|
properties: {
|
|
1546
1547
|
card_number: {
|
|
1547
1548
|
description:
|
|
@@ -2229,7 +2230,10 @@ export default {
|
|
|
2229
2230
|
items: {
|
|
2230
2231
|
properties: {
|
|
2231
2232
|
warning_code: {
|
|
2232
|
-
enum: [
|
|
2233
|
+
enum: [
|
|
2234
|
+
'acs_credential_on_encoder_out_of_sync',
|
|
2235
|
+
'acs_credential_on_seam_not_found',
|
|
2236
|
+
],
|
|
2233
2237
|
type: 'string',
|
|
2234
2238
|
},
|
|
2235
2239
|
warning_message: { type: 'string' },
|
|
@@ -4426,6 +4430,7 @@ export default {
|
|
|
4426
4430
|
'ecobee_thermostat',
|
|
4427
4431
|
'nest_thermostat',
|
|
4428
4432
|
'honeywell_resideo_thermostat',
|
|
4433
|
+
'tado_thermostat',
|
|
4429
4434
|
],
|
|
4430
4435
|
type: 'string',
|
|
4431
4436
|
},
|
|
@@ -5125,6 +5130,19 @@ export default {
|
|
|
5125
5130
|
required: ['device_id', 'device_name'],
|
|
5126
5131
|
type: 'object',
|
|
5127
5132
|
},
|
|
5133
|
+
tado_metadata: {
|
|
5134
|
+
properties: {
|
|
5135
|
+
device_name: { type: 'string' },
|
|
5136
|
+
device_type: { type: 'string' },
|
|
5137
|
+
serial_number: { type: 'string' },
|
|
5138
|
+
},
|
|
5139
|
+
required: [
|
|
5140
|
+
'serial_number',
|
|
5141
|
+
'device_name',
|
|
5142
|
+
'device_type',
|
|
5143
|
+
],
|
|
5144
|
+
type: 'object',
|
|
5145
|
+
},
|
|
5128
5146
|
tedee_metadata: {
|
|
5129
5147
|
properties: {
|
|
5130
5148
|
bridge_id: { format: 'float', type: 'number' },
|
|
@@ -6438,6 +6456,7 @@ export default {
|
|
|
6438
6456
|
'ecobee_thermostat',
|
|
6439
6457
|
'nest_thermostat',
|
|
6440
6458
|
'honeywell_resideo_thermostat',
|
|
6459
|
+
'tado_thermostat',
|
|
6441
6460
|
],
|
|
6442
6461
|
type: 'string',
|
|
6443
6462
|
},
|
|
@@ -14130,6 +14149,7 @@ export default {
|
|
|
14130
14149
|
'ecobee_thermostat',
|
|
14131
14150
|
'nest_thermostat',
|
|
14132
14151
|
'honeywell_resideo_thermostat',
|
|
14152
|
+
'tado_thermostat',
|
|
14133
14153
|
],
|
|
14134
14154
|
type: 'string',
|
|
14135
14155
|
},
|
|
@@ -14182,6 +14202,7 @@ export default {
|
|
|
14182
14202
|
'ecobee_thermostat',
|
|
14183
14203
|
'nest_thermostat',
|
|
14184
14204
|
'honeywell_resideo_thermostat',
|
|
14205
|
+
'tado_thermostat',
|
|
14185
14206
|
],
|
|
14186
14207
|
type: 'string',
|
|
14187
14208
|
},
|
|
@@ -14278,6 +14299,7 @@ export default {
|
|
|
14278
14299
|
'tedee',
|
|
14279
14300
|
'honeywell_resideo',
|
|
14280
14301
|
'akiles',
|
|
14302
|
+
'tado',
|
|
14281
14303
|
],
|
|
14282
14304
|
type: 'string',
|
|
14283
14305
|
},
|
|
@@ -14654,6 +14676,7 @@ export default {
|
|
|
14654
14676
|
'ecobee_thermostat',
|
|
14655
14677
|
'nest_thermostat',
|
|
14656
14678
|
'honeywell_resideo_thermostat',
|
|
14679
|
+
'tado_thermostat',
|
|
14657
14680
|
],
|
|
14658
14681
|
type: 'string',
|
|
14659
14682
|
},
|
|
@@ -14706,6 +14729,7 @@ export default {
|
|
|
14706
14729
|
'ecobee_thermostat',
|
|
14707
14730
|
'nest_thermostat',
|
|
14708
14731
|
'honeywell_resideo_thermostat',
|
|
14732
|
+
'tado_thermostat',
|
|
14709
14733
|
],
|
|
14710
14734
|
type: 'string',
|
|
14711
14735
|
},
|
|
@@ -14802,6 +14826,7 @@ export default {
|
|
|
14802
14826
|
'tedee',
|
|
14803
14827
|
'honeywell_resideo',
|
|
14804
14828
|
'akiles',
|
|
14829
|
+
'tado',
|
|
14805
14830
|
],
|
|
14806
14831
|
type: 'string',
|
|
14807
14832
|
},
|
|
@@ -15483,6 +15508,7 @@ export default {
|
|
|
15483
15508
|
'ecobee_thermostat',
|
|
15484
15509
|
'nest_thermostat',
|
|
15485
15510
|
'honeywell_resideo_thermostat',
|
|
15511
|
+
'tado_thermostat',
|
|
15486
15512
|
],
|
|
15487
15513
|
type: 'string',
|
|
15488
15514
|
},
|
|
@@ -15535,6 +15561,7 @@ export default {
|
|
|
15535
15561
|
'ecobee_thermostat',
|
|
15536
15562
|
'nest_thermostat',
|
|
15537
15563
|
'honeywell_resideo_thermostat',
|
|
15564
|
+
'tado_thermostat',
|
|
15538
15565
|
],
|
|
15539
15566
|
type: 'string',
|
|
15540
15567
|
},
|
|
@@ -15631,6 +15658,7 @@ export default {
|
|
|
15631
15658
|
'tedee',
|
|
15632
15659
|
'honeywell_resideo',
|
|
15633
15660
|
'akiles',
|
|
15661
|
+
'tado',
|
|
15634
15662
|
],
|
|
15635
15663
|
type: 'string',
|
|
15636
15664
|
},
|
|
@@ -15968,6 +15996,7 @@ export default {
|
|
|
15968
15996
|
'ecobee_thermostat',
|
|
15969
15997
|
'nest_thermostat',
|
|
15970
15998
|
'honeywell_resideo_thermostat',
|
|
15999
|
+
'tado_thermostat',
|
|
15971
16000
|
],
|
|
15972
16001
|
type: 'string',
|
|
15973
16002
|
},
|
|
@@ -16020,6 +16049,7 @@ export default {
|
|
|
16020
16049
|
'ecobee_thermostat',
|
|
16021
16050
|
'nest_thermostat',
|
|
16022
16051
|
'honeywell_resideo_thermostat',
|
|
16052
|
+
'tado_thermostat',
|
|
16023
16053
|
],
|
|
16024
16054
|
type: 'string',
|
|
16025
16055
|
},
|
|
@@ -16116,6 +16146,7 @@ export default {
|
|
|
16116
16146
|
'tedee',
|
|
16117
16147
|
'honeywell_resideo',
|
|
16118
16148
|
'akiles',
|
|
16149
|
+
'tado',
|
|
16119
16150
|
],
|
|
16120
16151
|
type: 'string',
|
|
16121
16152
|
},
|
|
@@ -17374,6 +17405,7 @@ export default {
|
|
|
17374
17405
|
'ecobee_thermostat',
|
|
17375
17406
|
'nest_thermostat',
|
|
17376
17407
|
'honeywell_resideo_thermostat',
|
|
17408
|
+
'tado_thermostat',
|
|
17377
17409
|
],
|
|
17378
17410
|
type: 'string',
|
|
17379
17411
|
},
|
|
@@ -17426,6 +17458,7 @@ export default {
|
|
|
17426
17458
|
'ecobee_thermostat',
|
|
17427
17459
|
'nest_thermostat',
|
|
17428
17460
|
'honeywell_resideo_thermostat',
|
|
17461
|
+
'tado_thermostat',
|
|
17429
17462
|
],
|
|
17430
17463
|
type: 'string',
|
|
17431
17464
|
},
|
|
@@ -17522,6 +17555,7 @@ export default {
|
|
|
17522
17555
|
'tedee',
|
|
17523
17556
|
'honeywell_resideo',
|
|
17524
17557
|
'akiles',
|
|
17558
|
+
'tado',
|
|
17525
17559
|
],
|
|
17526
17560
|
type: 'string',
|
|
17527
17561
|
},
|