@seamapi/types 1.965.0 → 1.966.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 +94 -17
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +511 -0
- package/dist/index.cjs +94 -17
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/acs/acs-credential.d.ts +10 -0
- package/lib/seam/connect/models/acs/acs-credential.js +4 -0
- package/lib/seam/connect/models/acs/acs-credential.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-entrance.d.ts +5 -0
- package/lib/seam/connect/models/acs/acs-entrance.js +4 -0
- package/lib/seam/connect/models/acs/acs-entrance.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +39 -0
- package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +14 -0
- package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +18 -0
- package/lib/seam/connect/models/action-attempts/scan-to-assign-credential.d.ts +7 -0
- package/lib/seam/connect/models/devices/capability-properties/index.d.ts +7 -0
- package/lib/seam/connect/models/devices/capability-properties/thermostat.d.ts +7 -0
- package/lib/seam/connect/models/devices/device.d.ts +9 -0
- package/lib/seam/connect/models/devices/phone.d.ts +10 -0
- package/lib/seam/connect/models/devices/phone.js +8 -0
- package/lib/seam/connect/models/devices/phone.js.map +1 -1
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +7 -0
- package/lib/seam/connect/models/phones/phone-session.d.ts +36 -0
- package/lib/seam/connect/models/thermostats/thermostat-schedule.d.ts +5 -0
- package/lib/seam/connect/models/thermostats/thermostat-schedule.js +4 -0
- package/lib/seam/connect/models/thermostats/thermostat-schedule.js.map +1 -1
- package/lib/seam/connect/openapi.js +88 -14
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +436 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/models/acs/acs-credential.ts +4 -0
- package/src/lib/seam/connect/models/acs/acs-entrance.ts +4 -0
- package/src/lib/seam/connect/models/devices/phone.ts +8 -0
- package/src/lib/seam/connect/models/thermostats/thermostat-schedule.ts +4 -0
- package/src/lib/seam/connect/openapi.ts +97 -14
- package/src/lib/seam/connect/route-types.ts +436 -0
package/package.json
CHANGED
|
@@ -264,6 +264,10 @@ const common_acs_credential = z.object({
|
|
|
264
264
|
z.object({
|
|
265
265
|
error_code: z.string(),
|
|
266
266
|
message: z.string(),
|
|
267
|
+
created_at: z
|
|
268
|
+
.string()
|
|
269
|
+
.datetime()
|
|
270
|
+
.describe('Date and time at which Seam created the error.'),
|
|
267
271
|
}),
|
|
268
272
|
)
|
|
269
273
|
.describe(
|
|
@@ -180,6 +180,10 @@ export const acs_entrance = z
|
|
|
180
180
|
.describe(
|
|
181
181
|
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
182
182
|
),
|
|
183
|
+
created_at: z
|
|
184
|
+
.string()
|
|
185
|
+
.datetime()
|
|
186
|
+
.describe('Date and time at which Seam created the error.'),
|
|
183
187
|
}),
|
|
184
188
|
)
|
|
185
189
|
.describe(
|
|
@@ -41,6 +41,10 @@ export const phone = z.object({
|
|
|
41
41
|
.string()
|
|
42
42
|
.describe('Unique identifier of the type of error.'),
|
|
43
43
|
message: z.string().describe('Detailed description of the error.'),
|
|
44
|
+
created_at: z
|
|
45
|
+
.string()
|
|
46
|
+
.datetime()
|
|
47
|
+
.describe('Date and time at which Seam created the error.'),
|
|
44
48
|
}),
|
|
45
49
|
)
|
|
46
50
|
.describe('Errors associated with the phone.'),
|
|
@@ -51,6 +55,10 @@ export const phone = z.object({
|
|
|
51
55
|
.string()
|
|
52
56
|
.describe('Unique identifier of the type of warning.'),
|
|
53
57
|
message: z.string().describe('Detailed description of the warning.'),
|
|
58
|
+
created_at: z
|
|
59
|
+
.string()
|
|
60
|
+
.datetime()
|
|
61
|
+
.describe('Date and time at which Seam created the warning.'),
|
|
54
62
|
}),
|
|
55
63
|
)
|
|
56
64
|
.describe('Warnings associated with the phone.'),
|
|
@@ -74,6 +74,10 @@ export const thermostat_schedule = z.object({
|
|
|
74
74
|
.describe(
|
|
75
75
|
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
76
76
|
),
|
|
77
|
+
created_at: z
|
|
78
|
+
.string()
|
|
79
|
+
.datetime()
|
|
80
|
+
.describe('Date and time at which Seam created the error.'),
|
|
77
81
|
}),
|
|
78
82
|
)
|
|
79
83
|
.describe(
|
|
@@ -3373,10 +3373,15 @@ const openapi: OpenAPISpec = {
|
|
|
3373
3373
|
'Errors associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).',
|
|
3374
3374
|
items: {
|
|
3375
3375
|
properties: {
|
|
3376
|
+
created_at: {
|
|
3377
|
+
description: 'Date and time at which Seam created the error.',
|
|
3378
|
+
format: 'date-time',
|
|
3379
|
+
type: 'string',
|
|
3380
|
+
},
|
|
3376
3381
|
error_code: { type: 'string' },
|
|
3377
3382
|
message: { type: 'string' },
|
|
3378
3383
|
},
|
|
3379
|
-
required: ['error_code', 'message'],
|
|
3384
|
+
required: ['error_code', 'message', 'created_at'],
|
|
3380
3385
|
type: 'object',
|
|
3381
3386
|
},
|
|
3382
3387
|
type: 'array',
|
|
@@ -4005,6 +4010,11 @@ const openapi: OpenAPISpec = {
|
|
|
4005
4010
|
'Errors associated with the [entrance](https://docs.seam.co/low-level-apis/access-systems/retrieving-entrance-details).',
|
|
4006
4011
|
items: {
|
|
4007
4012
|
properties: {
|
|
4013
|
+
created_at: {
|
|
4014
|
+
description: 'Date and time at which Seam created the error.',
|
|
4015
|
+
format: 'date-time',
|
|
4016
|
+
type: 'string',
|
|
4017
|
+
},
|
|
4008
4018
|
error_code: {
|
|
4009
4019
|
description:
|
|
4010
4020
|
'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
|
|
@@ -4016,7 +4026,7 @@ const openapi: OpenAPISpec = {
|
|
|
4016
4026
|
type: 'string',
|
|
4017
4027
|
},
|
|
4018
4028
|
},
|
|
4019
|
-
required: ['error_code', 'message'],
|
|
4029
|
+
required: ['error_code', 'message', 'created_at'],
|
|
4020
4030
|
type: 'object',
|
|
4021
4031
|
},
|
|
4022
4032
|
type: 'array',
|
|
@@ -6260,10 +6270,16 @@ const openapi: OpenAPISpec = {
|
|
|
6260
6270
|
'Errors associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).',
|
|
6261
6271
|
items: {
|
|
6262
6272
|
properties: {
|
|
6273
|
+
created_at: {
|
|
6274
|
+
description:
|
|
6275
|
+
'Date and time at which Seam created the error.',
|
|
6276
|
+
format: 'date-time',
|
|
6277
|
+
type: 'string',
|
|
6278
|
+
},
|
|
6263
6279
|
error_code: { type: 'string' },
|
|
6264
6280
|
message: { type: 'string' },
|
|
6265
6281
|
},
|
|
6266
|
-
required: ['error_code', 'message'],
|
|
6282
|
+
required: ['error_code', 'message', 'created_at'],
|
|
6267
6283
|
type: 'object',
|
|
6268
6284
|
},
|
|
6269
6285
|
type: 'array',
|
|
@@ -6725,10 +6741,16 @@ const openapi: OpenAPISpec = {
|
|
|
6725
6741
|
'Errors associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).',
|
|
6726
6742
|
items: {
|
|
6727
6743
|
properties: {
|
|
6744
|
+
created_at: {
|
|
6745
|
+
description:
|
|
6746
|
+
'Date and time at which Seam created the error.',
|
|
6747
|
+
format: 'date-time',
|
|
6748
|
+
type: 'string',
|
|
6749
|
+
},
|
|
6728
6750
|
error_code: { type: 'string' },
|
|
6729
6751
|
message: { type: 'string' },
|
|
6730
6752
|
},
|
|
6731
|
-
required: ['error_code', 'message'],
|
|
6753
|
+
required: ['error_code', 'message', 'created_at'],
|
|
6732
6754
|
type: 'object',
|
|
6733
6755
|
},
|
|
6734
6756
|
type: 'array',
|
|
@@ -7441,10 +7463,16 @@ const openapi: OpenAPISpec = {
|
|
|
7441
7463
|
'Errors associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).',
|
|
7442
7464
|
items: {
|
|
7443
7465
|
properties: {
|
|
7466
|
+
created_at: {
|
|
7467
|
+
description:
|
|
7468
|
+
'Date and time at which Seam created the error.',
|
|
7469
|
+
format: 'date-time',
|
|
7470
|
+
type: 'string',
|
|
7471
|
+
},
|
|
7444
7472
|
error_code: { type: 'string' },
|
|
7445
7473
|
message: { type: 'string' },
|
|
7446
7474
|
},
|
|
7447
|
-
required: ['error_code', 'message'],
|
|
7475
|
+
required: ['error_code', 'message', 'created_at'],
|
|
7448
7476
|
type: 'object',
|
|
7449
7477
|
},
|
|
7450
7478
|
type: 'array',
|
|
@@ -7903,10 +7931,16 @@ const openapi: OpenAPISpec = {
|
|
|
7903
7931
|
'Errors associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).',
|
|
7904
7932
|
items: {
|
|
7905
7933
|
properties: {
|
|
7934
|
+
created_at: {
|
|
7935
|
+
description:
|
|
7936
|
+
'Date and time at which Seam created the error.',
|
|
7937
|
+
format: 'date-time',
|
|
7938
|
+
type: 'string',
|
|
7939
|
+
},
|
|
7906
7940
|
error_code: { type: 'string' },
|
|
7907
7941
|
message: { type: 'string' },
|
|
7908
7942
|
},
|
|
7909
|
-
required: ['error_code', 'message'],
|
|
7943
|
+
required: ['error_code', 'message', 'created_at'],
|
|
7910
7944
|
type: 'object',
|
|
7911
7945
|
},
|
|
7912
7946
|
type: 'array',
|
|
@@ -8653,10 +8687,16 @@ const openapi: OpenAPISpec = {
|
|
|
8653
8687
|
'Errors associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).',
|
|
8654
8688
|
items: {
|
|
8655
8689
|
properties: {
|
|
8690
|
+
created_at: {
|
|
8691
|
+
description:
|
|
8692
|
+
'Date and time at which Seam created the error.',
|
|
8693
|
+
format: 'date-time',
|
|
8694
|
+
type: 'string',
|
|
8695
|
+
},
|
|
8656
8696
|
error_code: { type: 'string' },
|
|
8657
8697
|
message: { type: 'string' },
|
|
8658
8698
|
},
|
|
8659
|
-
required: ['error_code', 'message'],
|
|
8699
|
+
required: ['error_code', 'message', 'created_at'],
|
|
8660
8700
|
type: 'object',
|
|
8661
8701
|
},
|
|
8662
8702
|
type: 'array',
|
|
@@ -15401,6 +15441,12 @@ const openapi: OpenAPISpec = {
|
|
|
15401
15441
|
'Errors associated with the [thermostat schedule](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-thermostat-schedules).',
|
|
15402
15442
|
items: {
|
|
15403
15443
|
properties: {
|
|
15444
|
+
created_at: {
|
|
15445
|
+
description:
|
|
15446
|
+
'Date and time at which Seam created the error.',
|
|
15447
|
+
format: 'date-time',
|
|
15448
|
+
type: 'string',
|
|
15449
|
+
},
|
|
15404
15450
|
error_code: {
|
|
15405
15451
|
description:
|
|
15406
15452
|
'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
|
|
@@ -15412,7 +15458,7 @@ const openapi: OpenAPISpec = {
|
|
|
15412
15458
|
type: 'string',
|
|
15413
15459
|
},
|
|
15414
15460
|
},
|
|
15415
|
-
required: ['error_code', 'message'],
|
|
15461
|
+
required: ['error_code', 'message', 'created_at'],
|
|
15416
15462
|
type: 'object',
|
|
15417
15463
|
},
|
|
15418
15464
|
type: 'array',
|
|
@@ -27462,6 +27508,11 @@ const openapi: OpenAPISpec = {
|
|
|
27462
27508
|
description: 'Errors associated with the phone.',
|
|
27463
27509
|
items: {
|
|
27464
27510
|
properties: {
|
|
27511
|
+
created_at: {
|
|
27512
|
+
description: 'Date and time at which Seam created the error.',
|
|
27513
|
+
format: 'date-time',
|
|
27514
|
+
type: 'string',
|
|
27515
|
+
},
|
|
27465
27516
|
error_code: {
|
|
27466
27517
|
description: 'Unique identifier of the type of error.',
|
|
27467
27518
|
type: 'string',
|
|
@@ -27471,7 +27522,7 @@ const openapi: OpenAPISpec = {
|
|
|
27471
27522
|
type: 'string',
|
|
27472
27523
|
},
|
|
27473
27524
|
},
|
|
27474
|
-
required: ['error_code', 'message'],
|
|
27525
|
+
required: ['error_code', 'message', 'created_at'],
|
|
27475
27526
|
type: 'object',
|
|
27476
27527
|
},
|
|
27477
27528
|
type: 'array',
|
|
@@ -27533,6 +27584,12 @@ const openapi: OpenAPISpec = {
|
|
|
27533
27584
|
description: 'Warnings associated with the phone.',
|
|
27534
27585
|
items: {
|
|
27535
27586
|
properties: {
|
|
27587
|
+
created_at: {
|
|
27588
|
+
description:
|
|
27589
|
+
'Date and time at which Seam created the warning.',
|
|
27590
|
+
format: 'date-time',
|
|
27591
|
+
type: 'string',
|
|
27592
|
+
},
|
|
27536
27593
|
message: {
|
|
27537
27594
|
description: 'Detailed description of the warning.',
|
|
27538
27595
|
type: 'string',
|
|
@@ -27542,7 +27599,7 @@ const openapi: OpenAPISpec = {
|
|
|
27542
27599
|
type: 'string',
|
|
27543
27600
|
},
|
|
27544
27601
|
},
|
|
27545
|
-
required: ['warning_code', 'message'],
|
|
27602
|
+
required: ['warning_code', 'message', 'created_at'],
|
|
27546
27603
|
type: 'object',
|
|
27547
27604
|
},
|
|
27548
27605
|
type: 'array',
|
|
@@ -27822,6 +27879,12 @@ const openapi: OpenAPISpec = {
|
|
|
27822
27879
|
'Errors associated with the [entrance](https://docs.seam.co/low-level-apis/access-systems/retrieving-entrance-details).',
|
|
27823
27880
|
items: {
|
|
27824
27881
|
properties: {
|
|
27882
|
+
created_at: {
|
|
27883
|
+
description:
|
|
27884
|
+
'Date and time at which Seam created the error.',
|
|
27885
|
+
format: 'date-time',
|
|
27886
|
+
type: 'string',
|
|
27887
|
+
},
|
|
27825
27888
|
error_code: {
|
|
27826
27889
|
description:
|
|
27827
27890
|
'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
|
|
@@ -27833,7 +27896,11 @@ const openapi: OpenAPISpec = {
|
|
|
27833
27896
|
type: 'string',
|
|
27834
27897
|
},
|
|
27835
27898
|
},
|
|
27836
|
-
required: [
|
|
27899
|
+
required: [
|
|
27900
|
+
'error_code',
|
|
27901
|
+
'message',
|
|
27902
|
+
'created_at',
|
|
27903
|
+
],
|
|
27837
27904
|
type: 'object',
|
|
27838
27905
|
},
|
|
27839
27906
|
type: 'array',
|
|
@@ -28289,10 +28356,16 @@ const openapi: OpenAPISpec = {
|
|
|
28289
28356
|
'Errors associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).',
|
|
28290
28357
|
items: {
|
|
28291
28358
|
properties: {
|
|
28359
|
+
created_at: {
|
|
28360
|
+
description:
|
|
28361
|
+
'Date and time at which Seam created the error.',
|
|
28362
|
+
format: 'date-time',
|
|
28363
|
+
type: 'string',
|
|
28364
|
+
},
|
|
28292
28365
|
error_code: { type: 'string' },
|
|
28293
28366
|
message: { type: 'string' },
|
|
28294
28367
|
},
|
|
28295
|
-
required: ['error_code', 'message'],
|
|
28368
|
+
required: ['error_code', 'message', 'created_at'],
|
|
28296
28369
|
type: 'object',
|
|
28297
28370
|
},
|
|
28298
28371
|
type: 'array',
|
|
@@ -29182,6 +29255,11 @@ const openapi: OpenAPISpec = {
|
|
|
29182
29255
|
'Errors associated with the [thermostat schedule](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-thermostat-schedules).',
|
|
29183
29256
|
items: {
|
|
29184
29257
|
properties: {
|
|
29258
|
+
created_at: {
|
|
29259
|
+
description: 'Date and time at which Seam created the error.',
|
|
29260
|
+
format: 'date-time',
|
|
29261
|
+
type: 'string',
|
|
29262
|
+
},
|
|
29185
29263
|
error_code: {
|
|
29186
29264
|
description:
|
|
29187
29265
|
'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
|
|
@@ -29193,7 +29271,7 @@ const openapi: OpenAPISpec = {
|
|
|
29193
29271
|
type: 'string',
|
|
29194
29272
|
},
|
|
29195
29273
|
},
|
|
29196
|
-
required: ['error_code', 'message'],
|
|
29274
|
+
required: ['error_code', 'message', 'created_at'],
|
|
29197
29275
|
type: 'object',
|
|
29198
29276
|
},
|
|
29199
29277
|
type: 'array',
|
|
@@ -31220,10 +31298,15 @@ const openapi: OpenAPISpec = {
|
|
|
31220
31298
|
'Errors associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).',
|
|
31221
31299
|
items: {
|
|
31222
31300
|
properties: {
|
|
31301
|
+
created_at: {
|
|
31302
|
+
description: 'Date and time at which Seam created the error.',
|
|
31303
|
+
format: 'date-time',
|
|
31304
|
+
type: 'string',
|
|
31305
|
+
},
|
|
31223
31306
|
error_code: { type: 'string' },
|
|
31224
31307
|
message: { type: 'string' },
|
|
31225
31308
|
},
|
|
31226
|
-
required: ['error_code', 'message'],
|
|
31309
|
+
required: ['error_code', 'message', 'created_at'],
|
|
31227
31310
|
type: 'object',
|
|
31228
31311
|
},
|
|
31229
31312
|
type: 'array',
|