@seamapi/types 1.445.1 → 1.447.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 +100 -49
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +277 -182
- package/dist/devicedb.d.cts +24 -24
- package/dist/index.cjs +100 -49
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/access-grants/access-grant.d.ts +3 -0
- package/lib/seam/connect/models/access-grants/access-grant.js +4 -0
- package/lib/seam/connect/models/access-grants/access-grant.js.map +1 -1
- package/lib/seam/connect/models/batches/batch.d.ts +39 -34
- package/lib/seam/connect/models/batches/spaces.d.ts +39 -34
- package/lib/seam/connect/models/devices/capability-properties/index.d.ts +18 -18
- package/lib/seam/connect/models/devices/capability-properties/thermostat.d.ts +18 -18
- package/lib/seam/connect/models/devices/device.d.ts +26 -26
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +18 -18
- package/lib/seam/connect/models/events/devices.d.ts +6 -6
- package/lib/seam/connect/models/events/seam-event.d.ts +3 -3
- package/lib/seam/connect/models/spaces/space.d.ts +3 -0
- package/lib/seam/connect/models/spaces/space.js +4 -0
- package/lib/seam/connect/models/spaces/space.js.map +1 -1
- package/lib/seam/connect/models/thermostats/climate-preset.d.ts +6 -6
- package/lib/seam/connect/models/thermostats/modes.d.ts +1 -1
- package/lib/seam/connect/models/thermostats/modes.js +7 -1
- package/lib/seam/connect/models/thermostats/modes.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +86 -38
- package/lib/seam/connect/openapi.js +92 -48
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +96 -60
- package/lib/seam/devicedb/models/device-model.d.ts +12 -12
- package/lib/seam/devicedb/route-specs.d.ts +12 -12
- package/package.json +1 -1
- package/src/lib/seam/connect/models/access-grants/access-grant.ts +4 -0
- package/src/lib/seam/connect/models/spaces/space.ts +4 -0
- package/src/lib/seam/connect/models/thermostats/modes.ts +7 -1
- package/src/lib/seam/connect/openapi.ts +96 -48
- package/src/lib/seam/connect/route-types.ts +193 -68
package/dist/connect.cjs
CHANGED
|
@@ -146,7 +146,13 @@ var lock_capability_properties = zod.z.object({
|
|
|
146
146
|
Indicates whether the door is open.
|
|
147
147
|
`)
|
|
148
148
|
});
|
|
149
|
-
var hvac_mode_setting = zod.z.enum([
|
|
149
|
+
var hvac_mode_setting = zod.z.enum([
|
|
150
|
+
"off",
|
|
151
|
+
"heat",
|
|
152
|
+
"cool",
|
|
153
|
+
"heat_cool",
|
|
154
|
+
"eco"
|
|
155
|
+
]);
|
|
150
156
|
var fan_mode_setting = zod.z.enum(["auto", "on", "circulate"]);
|
|
151
157
|
zod.z.array(fan_mode_setting);
|
|
152
158
|
var climate_preset_mode = zod.z.enum([
|
|
@@ -3966,6 +3972,7 @@ var space = zod.z.object({
|
|
|
3966
3972
|
workspace_id: zod.z.string().uuid().describe(
|
|
3967
3973
|
"ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the space."
|
|
3968
3974
|
),
|
|
3975
|
+
space_key: zod.z.string().optional().describe("Unique key for the space within the workspace."),
|
|
3969
3976
|
name: zod.z.string().describe("Name of the space."),
|
|
3970
3977
|
display_name: zod.z.string().describe("Display name for the space."),
|
|
3971
3978
|
created_at: zod.z.string().datetime().describe("Date and time at which the space was created."),
|
|
@@ -7101,6 +7108,10 @@ var openapi_default = {
|
|
|
7101
7108
|
format: "uuid",
|
|
7102
7109
|
type: "string"
|
|
7103
7110
|
},
|
|
7111
|
+
access_grant_key: {
|
|
7112
|
+
description: "Unique key for the access grant within the workspace.",
|
|
7113
|
+
type: "string"
|
|
7114
|
+
},
|
|
7104
7115
|
access_method_ids: {
|
|
7105
7116
|
description: "IDs of the access methods created for the Access Grant.",
|
|
7106
7117
|
items: { format: "uuid", type: "string" },
|
|
@@ -15848,7 +15859,7 @@ var openapi_default = {
|
|
|
15848
15859
|
},
|
|
15849
15860
|
hvac_mode_setting: {
|
|
15850
15861
|
description: "Desired [HVAC mode](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/hvac-mode) setting, such as `heat`, `cool`, `heat_cool`, or `off`.",
|
|
15851
|
-
enum: ["off", "heat", "cool", "heat_cool"],
|
|
15862
|
+
enum: ["off", "heat", "cool", "heat_cool", "eco"],
|
|
15852
15863
|
type: "string"
|
|
15853
15864
|
},
|
|
15854
15865
|
manual_override_allowed: {
|
|
@@ -15889,7 +15900,7 @@ var openapi_default = {
|
|
|
15889
15900
|
available_hvac_mode_settings: {
|
|
15890
15901
|
description: "HVAC mode settings that the thermostat supports.",
|
|
15891
15902
|
items: {
|
|
15892
|
-
enum: ["off", "heat", "cool", "heat_cool"],
|
|
15903
|
+
enum: ["off", "heat", "cool", "heat_cool", "eco"],
|
|
15893
15904
|
type: "string"
|
|
15894
15905
|
},
|
|
15895
15906
|
type: "array",
|
|
@@ -15977,7 +15988,7 @@ var openapi_default = {
|
|
|
15977
15988
|
},
|
|
15978
15989
|
hvac_mode_setting: {
|
|
15979
15990
|
description: "Desired [HVAC mode](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/hvac-mode) setting, such as `heat`, `cool`, `heat_cool`, or `off`.",
|
|
15980
|
-
enum: ["off", "heat", "cool", "heat_cool"],
|
|
15991
|
+
enum: ["off", "heat", "cool", "heat_cool", "eco"],
|
|
15981
15992
|
type: "string"
|
|
15982
15993
|
},
|
|
15983
15994
|
manual_override_allowed: {
|
|
@@ -16078,7 +16089,7 @@ var openapi_default = {
|
|
|
16078
16089
|
},
|
|
16079
16090
|
hvac_mode_setting: {
|
|
16080
16091
|
description: "Desired [HVAC mode](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/hvac-mode) setting, such as `heat`, `cool`, `heat_cool`, or `off`.",
|
|
16081
|
-
enum: ["off", "heat", "cool", "heat_cool"],
|
|
16092
|
+
enum: ["off", "heat", "cool", "heat_cool", "eco"],
|
|
16082
16093
|
type: "string"
|
|
16083
16094
|
},
|
|
16084
16095
|
manual_override_allowed: {
|
|
@@ -21922,7 +21933,7 @@ var openapi_default = {
|
|
|
21922
21933
|
},
|
|
21923
21934
|
hvac_mode_setting: {
|
|
21924
21935
|
description: "Desired [HVAC mode](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/hvac-mode) setting, such as `heat`, `cool`, `heat_cool`, or `off`.",
|
|
21925
|
-
enum: ["off", "heat", "cool", "heat_cool"],
|
|
21936
|
+
enum: ["off", "heat", "cool", "heat_cool", "eco"],
|
|
21926
21937
|
type: "string"
|
|
21927
21938
|
},
|
|
21928
21939
|
method: {
|
|
@@ -23567,6 +23578,10 @@ var openapi_default = {
|
|
|
23567
23578
|
format: "uuid",
|
|
23568
23579
|
type: "string"
|
|
23569
23580
|
},
|
|
23581
|
+
space_key: {
|
|
23582
|
+
description: "Unique key for the space within the workspace.",
|
|
23583
|
+
type: "string"
|
|
23584
|
+
},
|
|
23570
23585
|
workspace_id: {
|
|
23571
23586
|
description: "ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the space.",
|
|
23572
23587
|
format: "uuid",
|
|
@@ -30271,6 +30286,10 @@ var openapi_default = {
|
|
|
30271
30286
|
},
|
|
30272
30287
|
{
|
|
30273
30288
|
properties: {
|
|
30289
|
+
access_grant_key: {
|
|
30290
|
+
description: "Unique key for the access grant within the workspace.",
|
|
30291
|
+
type: "string"
|
|
30292
|
+
},
|
|
30274
30293
|
acs_entrance_ids: {
|
|
30275
30294
|
default: [],
|
|
30276
30295
|
description: "Set of IDs of the [entrances](https://docs.seam.co/latest/api/acs/systems/list) to which access is being granted.",
|
|
@@ -30485,18 +30504,6 @@ var openapi_default = {
|
|
|
30485
30504
|
get: {
|
|
30486
30505
|
description: "Get an Access Grant.",
|
|
30487
30506
|
operationId: "accessGrantsGetGet",
|
|
30488
|
-
parameters: [
|
|
30489
|
-
{
|
|
30490
|
-
in: "query",
|
|
30491
|
-
name: "access_grant_id",
|
|
30492
|
-
required: true,
|
|
30493
|
-
schema: {
|
|
30494
|
-
description: "ID of Access Grant to get.",
|
|
30495
|
-
format: "uuid",
|
|
30496
|
-
type: "string"
|
|
30497
|
-
}
|
|
30498
|
-
}
|
|
30499
|
-
],
|
|
30500
30507
|
responses: {
|
|
30501
30508
|
200: {
|
|
30502
30509
|
content: {
|
|
@@ -30538,15 +30545,29 @@ var openapi_default = {
|
|
|
30538
30545
|
content: {
|
|
30539
30546
|
"application/json": {
|
|
30540
30547
|
schema: {
|
|
30541
|
-
|
|
30542
|
-
|
|
30543
|
-
|
|
30544
|
-
|
|
30545
|
-
|
|
30548
|
+
oneOf: [
|
|
30549
|
+
{
|
|
30550
|
+
properties: {
|
|
30551
|
+
access_grant_id: {
|
|
30552
|
+
description: "ID of Access Grant to get.",
|
|
30553
|
+
format: "uuid",
|
|
30554
|
+
type: "string"
|
|
30555
|
+
}
|
|
30556
|
+
},
|
|
30557
|
+
required: ["access_grant_id"],
|
|
30558
|
+
type: "object"
|
|
30559
|
+
},
|
|
30560
|
+
{
|
|
30561
|
+
properties: {
|
|
30562
|
+
access_grant_key: {
|
|
30563
|
+
description: "Unique key of Access Grant to get.",
|
|
30564
|
+
type: "string"
|
|
30565
|
+
}
|
|
30566
|
+
},
|
|
30567
|
+
required: ["access_grant_key"],
|
|
30568
|
+
type: "object"
|
|
30546
30569
|
}
|
|
30547
|
-
|
|
30548
|
-
required: ["access_grant_id"],
|
|
30549
|
-
type: "object"
|
|
30570
|
+
]
|
|
30550
30571
|
}
|
|
30551
30572
|
}
|
|
30552
30573
|
}
|
|
@@ -30636,6 +30657,14 @@ var openapi_default = {
|
|
|
30636
30657
|
format: "uuid",
|
|
30637
30658
|
type: "string"
|
|
30638
30659
|
}
|
|
30660
|
+
},
|
|
30661
|
+
{
|
|
30662
|
+
in: "query",
|
|
30663
|
+
name: "access_grant_key",
|
|
30664
|
+
schema: {
|
|
30665
|
+
description: "Filter Access Grants by access_grant_key.",
|
|
30666
|
+
type: "string"
|
|
30667
|
+
}
|
|
30639
30668
|
}
|
|
30640
30669
|
],
|
|
30641
30670
|
responses: {
|
|
@@ -30683,6 +30712,10 @@ var openapi_default = {
|
|
|
30683
30712
|
"application/json": {
|
|
30684
30713
|
schema: {
|
|
30685
30714
|
properties: {
|
|
30715
|
+
access_grant_key: {
|
|
30716
|
+
description: "Filter Access Grants by access_grant_key.",
|
|
30717
|
+
type: "string"
|
|
30718
|
+
},
|
|
30686
30719
|
acs_entrance_id: {
|
|
30687
30720
|
description: "ID of the entrance by which you want to filter the list of Access Grants.",
|
|
30688
30721
|
format: "uuid",
|
|
@@ -48722,6 +48755,10 @@ var openapi_default = {
|
|
|
48722
48755
|
name: {
|
|
48723
48756
|
description: "Name of the space that you want to create.",
|
|
48724
48757
|
type: "string"
|
|
48758
|
+
},
|
|
48759
|
+
space_key: {
|
|
48760
|
+
description: "Unique key for the space within the workspace.",
|
|
48761
|
+
type: "string"
|
|
48725
48762
|
}
|
|
48726
48763
|
},
|
|
48727
48764
|
required: ["name"],
|
|
@@ -48868,18 +48905,6 @@ var openapi_default = {
|
|
|
48868
48905
|
get: {
|
|
48869
48906
|
description: "Gets a space.",
|
|
48870
48907
|
operationId: "spacesGetGet",
|
|
48871
|
-
parameters: [
|
|
48872
|
-
{
|
|
48873
|
-
in: "query",
|
|
48874
|
-
name: "space_id",
|
|
48875
|
-
required: true,
|
|
48876
|
-
schema: {
|
|
48877
|
-
description: "ID of the space that you want to get.",
|
|
48878
|
-
format: "uuid",
|
|
48879
|
-
type: "string"
|
|
48880
|
-
}
|
|
48881
|
-
}
|
|
48882
|
-
],
|
|
48883
48908
|
responses: {
|
|
48884
48909
|
200: {
|
|
48885
48910
|
content: {
|
|
@@ -48920,15 +48945,29 @@ var openapi_default = {
|
|
|
48920
48945
|
content: {
|
|
48921
48946
|
"application/json": {
|
|
48922
48947
|
schema: {
|
|
48923
|
-
|
|
48924
|
-
|
|
48925
|
-
|
|
48926
|
-
|
|
48927
|
-
|
|
48948
|
+
oneOf: [
|
|
48949
|
+
{
|
|
48950
|
+
properties: {
|
|
48951
|
+
space_id: {
|
|
48952
|
+
description: "ID of the space that you want to get.",
|
|
48953
|
+
format: "uuid",
|
|
48954
|
+
type: "string"
|
|
48955
|
+
}
|
|
48956
|
+
},
|
|
48957
|
+
required: ["space_id"],
|
|
48958
|
+
type: "object"
|
|
48959
|
+
},
|
|
48960
|
+
{
|
|
48961
|
+
properties: {
|
|
48962
|
+
space_key: {
|
|
48963
|
+
description: "Unique key of the space that you want to get.",
|
|
48964
|
+
type: "string"
|
|
48965
|
+
}
|
|
48966
|
+
},
|
|
48967
|
+
required: ["space_key"],
|
|
48968
|
+
type: "object"
|
|
48928
48969
|
}
|
|
48929
|
-
|
|
48930
|
-
required: ["space_id"],
|
|
48931
|
-
type: "object"
|
|
48970
|
+
]
|
|
48932
48971
|
}
|
|
48933
48972
|
}
|
|
48934
48973
|
}
|
|
@@ -49163,6 +49202,14 @@ var openapi_default = {
|
|
|
49163
49202
|
minLength: 1,
|
|
49164
49203
|
type: "string"
|
|
49165
49204
|
}
|
|
49205
|
+
},
|
|
49206
|
+
{
|
|
49207
|
+
in: "query",
|
|
49208
|
+
name: "space_key",
|
|
49209
|
+
schema: {
|
|
49210
|
+
description: "Filter spaces by space_key.",
|
|
49211
|
+
type: "string"
|
|
49212
|
+
}
|
|
49166
49213
|
}
|
|
49167
49214
|
],
|
|
49168
49215
|
responses: {
|
|
@@ -49213,6 +49260,10 @@ var openapi_default = {
|
|
|
49213
49260
|
description: "String for which to search. Filters returned spaces to include all records that satisfy a partial match using `name`.",
|
|
49214
49261
|
minLength: 1,
|
|
49215
49262
|
type: "string"
|
|
49263
|
+
},
|
|
49264
|
+
space_key: {
|
|
49265
|
+
description: "Filter spaces by space_key.",
|
|
49266
|
+
type: "string"
|
|
49216
49267
|
}
|
|
49217
49268
|
},
|
|
49218
49269
|
type: "object"
|
|
@@ -49798,7 +49849,7 @@ var openapi_default = {
|
|
|
49798
49849
|
},
|
|
49799
49850
|
hvac_mode_setting: {
|
|
49800
49851
|
description: "Desired [HVAC mode](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/hvac-mode) setting, such as `heat`, `cool`, `heat_cool`, or `off`.",
|
|
49801
|
-
enum: ["off", "heat", "cool", "heat_cool"],
|
|
49852
|
+
enum: ["off", "heat", "cool", "heat_cool", "eco"],
|
|
49802
49853
|
type: "string"
|
|
49803
49854
|
},
|
|
49804
49855
|
manual_override_allowed: {
|
|
@@ -52400,7 +52451,7 @@ var openapi_default = {
|
|
|
52400
52451
|
},
|
|
52401
52452
|
hvac_mode_setting: {
|
|
52402
52453
|
description: "Desired [HVAC mode](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/hvac-mode) setting, such as `heat`, `cool`, `heat_cool`, or `off`.",
|
|
52403
|
-
enum: ["off", "heat", "cool", "heat_cool"],
|
|
52454
|
+
enum: ["off", "heat", "cool", "heat_cool", "eco"],
|
|
52404
52455
|
type: "string"
|
|
52405
52456
|
},
|
|
52406
52457
|
manual_override_allowed: {
|
|
@@ -52527,7 +52578,7 @@ var openapi_default = {
|
|
|
52527
52578
|
},
|
|
52528
52579
|
hvac_mode_setting: {
|
|
52529
52580
|
description: "Desired [HVAC mode](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/hvac-mode) setting, such as `heat`, `cool`, `heat_cool`, or `off`.",
|
|
52530
|
-
enum: ["off", "heat", "cool", "heat_cool"],
|
|
52581
|
+
enum: ["off", "heat", "cool", "heat_cool", "eco"],
|
|
52531
52582
|
type: "string"
|
|
52532
52583
|
},
|
|
52533
52584
|
manual_override_allowed: {
|