@seamapi/types 1.411.0 → 1.412.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 +240 -754
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +408 -694
- package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +26 -0
- package/lib/seam/connect/models/access-codes/unmanaged-access-code.d.ts +26 -0
- package/lib/seam/connect/models/devices/device.d.ts +87 -0
- package/lib/seam/connect/models/devices/device.js +9 -0
- package/lib/seam/connect/models/devices/device.js.map +1 -1
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +26 -0
- package/lib/seam/connect/openapi.d.ts +144 -694
- package/lib/seam/connect/openapi.js +233 -752
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +144 -0
- package/package.json +2 -2
- package/src/lib/seam/connect/models/devices/device.ts +10 -0
- package/src/lib/seam/connect/openapi.ts +252 -836
- package/src/lib/seam/connect/route-types.ts +168 -0
|
@@ -1475,6 +1475,12 @@ export interface Routes {
|
|
|
1475
1475
|
created_at: string;
|
|
1476
1476
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
1477
1477
|
error_code: 'subscription_required';
|
|
1478
|
+
} | {
|
|
1479
|
+
message: string;
|
|
1480
|
+
is_device_error: true;
|
|
1481
|
+
created_at: string;
|
|
1482
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
1483
|
+
error_code: 'lockly_missing_wifi_bridge';
|
|
1478
1484
|
} | {
|
|
1479
1485
|
/** Date and time at which Seam created the error. */
|
|
1480
1486
|
created_at: string;
|
|
@@ -1971,6 +1977,12 @@ export interface Routes {
|
|
|
1971
1977
|
created_at: string;
|
|
1972
1978
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
1973
1979
|
error_code: 'subscription_required';
|
|
1980
|
+
} | {
|
|
1981
|
+
message: string;
|
|
1982
|
+
is_device_error: true;
|
|
1983
|
+
created_at: string;
|
|
1984
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
1985
|
+
error_code: 'lockly_missing_wifi_bridge';
|
|
1974
1986
|
} | {
|
|
1975
1987
|
/** Date and time at which Seam created the error. */
|
|
1976
1988
|
created_at: string;
|
|
@@ -3587,6 +3599,12 @@ export interface Routes {
|
|
|
3587
3599
|
created_at: string;
|
|
3588
3600
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
3589
3601
|
error_code: 'subscription_required';
|
|
3602
|
+
} | {
|
|
3603
|
+
message: string;
|
|
3604
|
+
is_device_error: true;
|
|
3605
|
+
created_at: string;
|
|
3606
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
3607
|
+
error_code: 'lockly_missing_wifi_bridge';
|
|
3590
3608
|
} | {
|
|
3591
3609
|
/** Date and time at which Seam created the error. */
|
|
3592
3610
|
created_at: string;
|
|
@@ -4064,6 +4082,12 @@ export interface Routes {
|
|
|
4064
4082
|
created_at: string;
|
|
4065
4083
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
4066
4084
|
error_code: 'subscription_required';
|
|
4085
|
+
} | {
|
|
4086
|
+
message: string;
|
|
4087
|
+
is_device_error: true;
|
|
4088
|
+
created_at: string;
|
|
4089
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
4090
|
+
error_code: 'lockly_missing_wifi_bridge';
|
|
4067
4091
|
} | {
|
|
4068
4092
|
/** Date and time at which Seam created the error. */
|
|
4069
4093
|
created_at: string;
|
|
@@ -4548,6 +4572,12 @@ export interface Routes {
|
|
|
4548
4572
|
created_at: string;
|
|
4549
4573
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
4550
4574
|
error_code: 'subscription_required';
|
|
4575
|
+
} | {
|
|
4576
|
+
message: string;
|
|
4577
|
+
is_device_error: true;
|
|
4578
|
+
created_at: string;
|
|
4579
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
4580
|
+
error_code: 'lockly_missing_wifi_bridge';
|
|
4551
4581
|
} | {
|
|
4552
4582
|
/** Date and time at which Seam created the error. */
|
|
4553
4583
|
created_at: string;
|
|
@@ -5010,6 +5040,12 @@ export interface Routes {
|
|
|
5010
5040
|
created_at: string;
|
|
5011
5041
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
5012
5042
|
error_code: 'subscription_required';
|
|
5043
|
+
} | {
|
|
5044
|
+
message: string;
|
|
5045
|
+
is_device_error: true;
|
|
5046
|
+
created_at: string;
|
|
5047
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
5048
|
+
error_code: 'lockly_missing_wifi_bridge';
|
|
5013
5049
|
} | {
|
|
5014
5050
|
/** Date and time at which Seam created the error. */
|
|
5015
5051
|
created_at: string;
|
|
@@ -5505,6 +5541,12 @@ export interface Routes {
|
|
|
5505
5541
|
created_at: string;
|
|
5506
5542
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
5507
5543
|
error_code: 'subscription_required';
|
|
5544
|
+
} | {
|
|
5545
|
+
message: string;
|
|
5546
|
+
is_device_error: true;
|
|
5547
|
+
created_at: string;
|
|
5548
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
5549
|
+
error_code: 'lockly_missing_wifi_bridge';
|
|
5508
5550
|
} | {
|
|
5509
5551
|
/** Date and time at which Seam created the error. */
|
|
5510
5552
|
created_at: string;
|
|
@@ -7108,6 +7150,12 @@ export interface Routes {
|
|
|
7108
7150
|
created_at: string;
|
|
7109
7151
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
7110
7152
|
error_code: 'subscription_required';
|
|
7153
|
+
} | {
|
|
7154
|
+
message: string;
|
|
7155
|
+
is_device_error: true;
|
|
7156
|
+
created_at: string;
|
|
7157
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
7158
|
+
error_code: 'lockly_missing_wifi_bridge';
|
|
7111
7159
|
} | {
|
|
7112
7160
|
/** Date and time at which Seam created the error. */
|
|
7113
7161
|
created_at: string;
|
|
@@ -7560,6 +7608,12 @@ export interface Routes {
|
|
|
7560
7608
|
created_at: string;
|
|
7561
7609
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
7562
7610
|
error_code: 'subscription_required';
|
|
7611
|
+
} | {
|
|
7612
|
+
message: string;
|
|
7613
|
+
is_device_error: true;
|
|
7614
|
+
created_at: string;
|
|
7615
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
7616
|
+
error_code: 'lockly_missing_wifi_bridge';
|
|
7563
7617
|
} | {
|
|
7564
7618
|
/** Date and time at which Seam created the error. */
|
|
7565
7619
|
created_at: string;
|
|
@@ -20816,6 +20870,12 @@ export interface Routes {
|
|
|
20816
20870
|
created_at: string;
|
|
20817
20871
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
20818
20872
|
error_code: 'subscription_required';
|
|
20873
|
+
} | {
|
|
20874
|
+
message: string;
|
|
20875
|
+
is_device_error: true;
|
|
20876
|
+
created_at: string;
|
|
20877
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
20878
|
+
error_code: 'lockly_missing_wifi_bridge';
|
|
20819
20879
|
} | {
|
|
20820
20880
|
/** Date and time at which Seam created the error. */
|
|
20821
20881
|
created_at: string;
|
|
@@ -22064,6 +22124,12 @@ export interface Routes {
|
|
|
22064
22124
|
created_at: string;
|
|
22065
22125
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
22066
22126
|
error_code: 'subscription_required';
|
|
22127
|
+
} | {
|
|
22128
|
+
message: string;
|
|
22129
|
+
is_device_error: true;
|
|
22130
|
+
created_at: string;
|
|
22131
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
22132
|
+
error_code: 'lockly_missing_wifi_bridge';
|
|
22067
22133
|
} | {
|
|
22068
22134
|
/** Date and time at which Seam created the error. */
|
|
22069
22135
|
created_at: string;
|
|
@@ -22386,6 +22452,12 @@ export interface Routes {
|
|
|
22386
22452
|
created_at: string;
|
|
22387
22453
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
22388
22454
|
error_code: 'subscription_required';
|
|
22455
|
+
} | {
|
|
22456
|
+
message: string;
|
|
22457
|
+
is_device_error: true;
|
|
22458
|
+
created_at: string;
|
|
22459
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
22460
|
+
error_code: 'lockly_missing_wifi_bridge';
|
|
22389
22461
|
} | {
|
|
22390
22462
|
/** Date and time at which Seam created the error. */
|
|
22391
22463
|
created_at: string;
|
|
@@ -22727,6 +22799,12 @@ export interface Routes {
|
|
|
22727
22799
|
created_at: string;
|
|
22728
22800
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
22729
22801
|
error_code: 'subscription_required';
|
|
22802
|
+
} | {
|
|
22803
|
+
message: string;
|
|
22804
|
+
is_device_error: true;
|
|
22805
|
+
created_at: string;
|
|
22806
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
22807
|
+
error_code: 'lockly_missing_wifi_bridge';
|
|
22730
22808
|
} | {
|
|
22731
22809
|
/** Date and time at which Seam created the error. */
|
|
22732
22810
|
created_at: string;
|
|
@@ -26867,6 +26945,12 @@ export interface Routes {
|
|
|
26867
26945
|
created_at: string;
|
|
26868
26946
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
26869
26947
|
error_code: 'subscription_required';
|
|
26948
|
+
} | {
|
|
26949
|
+
message: string;
|
|
26950
|
+
is_device_error: true;
|
|
26951
|
+
created_at: string;
|
|
26952
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
26953
|
+
error_code: 'lockly_missing_wifi_bridge';
|
|
26870
26954
|
} | {
|
|
26871
26955
|
/** Date and time at which Seam created the error. */
|
|
26872
26956
|
created_at: string;
|
|
@@ -28071,6 +28155,12 @@ export interface Routes {
|
|
|
28071
28155
|
created_at: string;
|
|
28072
28156
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
28073
28157
|
error_code: 'subscription_required';
|
|
28158
|
+
} | {
|
|
28159
|
+
message: string;
|
|
28160
|
+
is_device_error: true;
|
|
28161
|
+
created_at: string;
|
|
28162
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
28163
|
+
error_code: 'lockly_missing_wifi_bridge';
|
|
28074
28164
|
} | {
|
|
28075
28165
|
/** Date and time at which Seam created the error. */
|
|
28076
28166
|
created_at: string;
|
|
@@ -29319,6 +29409,12 @@ export interface Routes {
|
|
|
29319
29409
|
created_at: string;
|
|
29320
29410
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
29321
29411
|
error_code: 'subscription_required';
|
|
29412
|
+
} | {
|
|
29413
|
+
message: string;
|
|
29414
|
+
is_device_error: true;
|
|
29415
|
+
created_at: string;
|
|
29416
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
29417
|
+
error_code: 'lockly_missing_wifi_bridge';
|
|
29322
29418
|
} | {
|
|
29323
29419
|
/** Date and time at which Seam created the error. */
|
|
29324
29420
|
created_at: string;
|
|
@@ -30522,6 +30618,12 @@ export interface Routes {
|
|
|
30522
30618
|
created_at: string;
|
|
30523
30619
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
30524
30620
|
error_code: 'subscription_required';
|
|
30621
|
+
} | {
|
|
30622
|
+
message: string;
|
|
30623
|
+
is_device_error: true;
|
|
30624
|
+
created_at: string;
|
|
30625
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
30626
|
+
error_code: 'lockly_missing_wifi_bridge';
|
|
30525
30627
|
} | {
|
|
30526
30628
|
/** Date and time at which Seam created the error. */
|
|
30527
30629
|
created_at: string;
|
|
@@ -36275,6 +36377,12 @@ export interface Routes {
|
|
|
36275
36377
|
created_at: string;
|
|
36276
36378
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
36277
36379
|
error_code: 'subscription_required';
|
|
36380
|
+
} | {
|
|
36381
|
+
message: string;
|
|
36382
|
+
is_device_error: true;
|
|
36383
|
+
created_at: string;
|
|
36384
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
36385
|
+
error_code: 'lockly_missing_wifi_bridge';
|
|
36278
36386
|
} | {
|
|
36279
36387
|
/** Date and time at which Seam created the error. */
|
|
36280
36388
|
created_at: string;
|
|
@@ -37478,6 +37586,12 @@ export interface Routes {
|
|
|
37478
37586
|
created_at: string;
|
|
37479
37587
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
37480
37588
|
error_code: 'subscription_required';
|
|
37589
|
+
} | {
|
|
37590
|
+
message: string;
|
|
37591
|
+
is_device_error: true;
|
|
37592
|
+
created_at: string;
|
|
37593
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
37594
|
+
error_code: 'lockly_missing_wifi_bridge';
|
|
37481
37595
|
} | {
|
|
37482
37596
|
/** Date and time at which Seam created the error. */
|
|
37483
37597
|
created_at: string;
|
|
@@ -46700,6 +46814,12 @@ export interface Routes {
|
|
|
46700
46814
|
created_at: string;
|
|
46701
46815
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
46702
46816
|
error_code: 'subscription_required';
|
|
46817
|
+
} | {
|
|
46818
|
+
message: string;
|
|
46819
|
+
is_device_error: true;
|
|
46820
|
+
created_at: string;
|
|
46821
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
46822
|
+
error_code: 'lockly_missing_wifi_bridge';
|
|
46703
46823
|
} | {
|
|
46704
46824
|
/** Date and time at which Seam created the error. */
|
|
46705
46825
|
created_at: string;
|
|
@@ -50196,6 +50316,12 @@ export interface Routes {
|
|
|
50196
50316
|
created_at: string;
|
|
50197
50317
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
50198
50318
|
error_code: 'subscription_required';
|
|
50319
|
+
} | {
|
|
50320
|
+
message: string;
|
|
50321
|
+
is_device_error: true;
|
|
50322
|
+
created_at: string;
|
|
50323
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
50324
|
+
error_code: 'lockly_missing_wifi_bridge';
|
|
50199
50325
|
} | {
|
|
50200
50326
|
/** Date and time at which Seam created the error. */
|
|
50201
50327
|
created_at: string;
|
|
@@ -51399,6 +51525,12 @@ export interface Routes {
|
|
|
51399
51525
|
created_at: string;
|
|
51400
51526
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
51401
51527
|
error_code: 'subscription_required';
|
|
51528
|
+
} | {
|
|
51529
|
+
message: string;
|
|
51530
|
+
is_device_error: true;
|
|
51531
|
+
created_at: string;
|
|
51532
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
51533
|
+
error_code: 'lockly_missing_wifi_bridge';
|
|
51402
51534
|
} | {
|
|
51403
51535
|
/** Date and time at which Seam created the error. */
|
|
51404
51536
|
created_at: string;
|
|
@@ -58314,6 +58446,12 @@ export interface Routes {
|
|
|
58314
58446
|
created_at: string;
|
|
58315
58447
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
58316
58448
|
error_code: 'subscription_required';
|
|
58449
|
+
} | {
|
|
58450
|
+
message: string;
|
|
58451
|
+
is_device_error: true;
|
|
58452
|
+
created_at: string;
|
|
58453
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
58454
|
+
error_code: 'lockly_missing_wifi_bridge';
|
|
58317
58455
|
} | {
|
|
58318
58456
|
/** Date and time at which Seam created the error. */
|
|
58319
58457
|
created_at: string;
|
|
@@ -59519,6 +59657,12 @@ export interface Routes {
|
|
|
59519
59657
|
created_at: string;
|
|
59520
59658
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
59521
59659
|
error_code: 'subscription_required';
|
|
59660
|
+
} | {
|
|
59661
|
+
message: string;
|
|
59662
|
+
is_device_error: true;
|
|
59663
|
+
created_at: string;
|
|
59664
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
59665
|
+
error_code: 'lockly_missing_wifi_bridge';
|
|
59522
59666
|
} | {
|
|
59523
59667
|
/** Date and time at which Seam created the error. */
|
|
59524
59668
|
created_at: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seamapi/types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.412.0",
|
|
4
4
|
"description": "TypeScript types for the Seam API.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"zod": "^3.24.0"
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|
|
95
|
-
"@seamapi/blueprint": "^0.
|
|
95
|
+
"@seamapi/blueprint": "^0.48.0",
|
|
96
96
|
"@types/node": "^20.8.10",
|
|
97
97
|
"concurrently": "^8.2.0",
|
|
98
98
|
"del-cli": "^5.0.0",
|
|
@@ -134,6 +134,14 @@ const subscription_required = common_device_error
|
|
|
134
134
|
})
|
|
135
135
|
.describe('Subscription required to connect.')
|
|
136
136
|
|
|
137
|
+
const lockly_missing_wifi_bridge = common_device_error
|
|
138
|
+
.extend({
|
|
139
|
+
error_code: z
|
|
140
|
+
.literal('lockly_missing_wifi_bridge')
|
|
141
|
+
.describe(error_code_description),
|
|
142
|
+
})
|
|
143
|
+
.describe('Lockly lock is not connected to a Wi-Fi bridge.')
|
|
144
|
+
|
|
137
145
|
export const device_error = z
|
|
138
146
|
.discriminatedUnion('error_code', [
|
|
139
147
|
account_disconnected,
|
|
@@ -149,6 +157,7 @@ export const device_error = z
|
|
|
149
157
|
missing_device_credentials,
|
|
150
158
|
auxiliary_heat_running,
|
|
151
159
|
subscription_required,
|
|
160
|
+
lockly_missing_wifi_bridge,
|
|
152
161
|
])
|
|
153
162
|
.describe('Error associated with the `device`.')
|
|
154
163
|
|
|
@@ -174,6 +183,7 @@ const device_error_map = z.object({
|
|
|
174
183
|
missing_device_credentials: missing_device_credentials.optional().nullable(),
|
|
175
184
|
auxiliary_heat_running: auxiliary_heat_running.optional().nullable(),
|
|
176
185
|
subscription_required: subscription_required.optional().nullable(),
|
|
186
|
+
lockly_missing_wifi_bridge: lockly_missing_wifi_bridge.optional().nullable(),
|
|
177
187
|
})
|
|
178
188
|
|
|
179
189
|
export type DeviceErrorMap = z.infer<typeof device_error_map>
|