@seamapi/types 1.128.0 → 1.130.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 -19
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +227 -17
- package/lib/seam/connect/openapi.d.ts +53 -12
- package/lib/seam/connect/openapi.js +59 -14
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +174 -5
- package/lib/seam/connect/unstable/models/devices/managed-device.d.ts +48 -0
- package/lib/seam/connect/unstable/models/devices/managed-device.js +9 -0
- package/lib/seam/connect/unstable/models/devices/managed-device.js.map +1 -1
- package/lib/seam/connect/unstable/models/devices/unmanaged-device.d.ts +8 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/openapi.ts +61 -14
- package/src/lib/seam/connect/route-types.ts +189 -5
- package/src/lib/seam/connect/unstable/models/devices/managed-device.ts +13 -0
package/dist/connect.cjs
CHANGED
|
@@ -682,6 +682,16 @@ var openapi_default = {
|
|
|
682
682
|
allOf: [
|
|
683
683
|
{
|
|
684
684
|
properties: {
|
|
685
|
+
appearance: {
|
|
686
|
+
properties: {
|
|
687
|
+
name: {
|
|
688
|
+
description: "Name of the device as seen from the provider API and application, not settable through Seam.",
|
|
689
|
+
type: "string"
|
|
690
|
+
}
|
|
691
|
+
},
|
|
692
|
+
required: ["name"],
|
|
693
|
+
type: "object"
|
|
694
|
+
},
|
|
685
695
|
battery: {
|
|
686
696
|
description: 'Represents the current status of the battery charge level. Values are "critical," which indicates an extremely low level, suggesting imminent shutdown or an urgent need for charging; "low," which signifies that the battery is under the preferred threshold and should be charged soon; "good," which denotes a satisfactory charge level, adequate for normal use without the immediate need for recharging; and "full," which represents a battery that is fully charged, providing the maximum duration of usage.',
|
|
687
697
|
properties: {
|
|
@@ -750,6 +760,10 @@ var openapi_default = {
|
|
|
750
760
|
description: "Name of the device. Enables administrators and users to identify the device easily, especially when there are numerous devices.",
|
|
751
761
|
type: "string"
|
|
752
762
|
},
|
|
763
|
+
nickname: {
|
|
764
|
+
description: "Optional nickname to describe the device, settable through Seam. Enables administrators and users to identify the device easily, especially when there are numerous devices.",
|
|
765
|
+
type: "string"
|
|
766
|
+
},
|
|
753
767
|
offline_access_codes_enabled: {
|
|
754
768
|
description: "Indicates whether it is currently possible to use offline access codes for the device.",
|
|
755
769
|
type: "boolean"
|
|
@@ -775,7 +789,7 @@ var openapi_default = {
|
|
|
775
789
|
type: "boolean"
|
|
776
790
|
}
|
|
777
791
|
},
|
|
778
|
-
required: ["online", "name", "model"],
|
|
792
|
+
required: ["online", "name", "appearance", "model"],
|
|
779
793
|
type: "object"
|
|
780
794
|
},
|
|
781
795
|
{
|
|
@@ -9180,9 +9194,10 @@ var openapi_default = {
|
|
|
9180
9194
|
401: { description: "Unauthorized" }
|
|
9181
9195
|
},
|
|
9182
9196
|
security: [
|
|
9183
|
-
{
|
|
9184
|
-
{
|
|
9185
|
-
{
|
|
9197
|
+
{ client_session: [] },
|
|
9198
|
+
{ pat_with_workspace: [] },
|
|
9199
|
+
{ console_session: [] },
|
|
9200
|
+
{ api_key: [] }
|
|
9186
9201
|
],
|
|
9187
9202
|
summary: "/locks/unlock_door",
|
|
9188
9203
|
tags: ["/locks"],
|
|
@@ -10380,8 +10395,13 @@ var openapi_default = {
|
|
|
10380
10395
|
content: {
|
|
10381
10396
|
"application/json": {
|
|
10382
10397
|
schema: {
|
|
10383
|
-
properties: {
|
|
10384
|
-
|
|
10398
|
+
properties: {
|
|
10399
|
+
action_attempt: {
|
|
10400
|
+
$ref: "#/components/schemas/action_attempt"
|
|
10401
|
+
},
|
|
10402
|
+
ok: { type: "boolean" }
|
|
10403
|
+
},
|
|
10404
|
+
required: ["action_attempt", "ok"],
|
|
10385
10405
|
type: "object"
|
|
10386
10406
|
}
|
|
10387
10407
|
}
|
|
@@ -10399,7 +10419,8 @@ var openapi_default = {
|
|
|
10399
10419
|
summary: "/thermostats/cool",
|
|
10400
10420
|
tags: ["/thermostats"],
|
|
10401
10421
|
"x-fern-sdk-group-name": ["thermostats"],
|
|
10402
|
-
"x-fern-sdk-method-name": "cool"
|
|
10422
|
+
"x-fern-sdk-method-name": "cool",
|
|
10423
|
+
"x-fern-sdk-return-value": "action_attempt"
|
|
10403
10424
|
}
|
|
10404
10425
|
},
|
|
10405
10426
|
"/thermostats/get": {
|
|
@@ -10473,8 +10494,13 @@ var openapi_default = {
|
|
|
10473
10494
|
content: {
|
|
10474
10495
|
"application/json": {
|
|
10475
10496
|
schema: {
|
|
10476
|
-
properties: {
|
|
10477
|
-
|
|
10497
|
+
properties: {
|
|
10498
|
+
action_attempt: {
|
|
10499
|
+
$ref: "#/components/schemas/action_attempt"
|
|
10500
|
+
},
|
|
10501
|
+
ok: { type: "boolean" }
|
|
10502
|
+
},
|
|
10503
|
+
required: ["action_attempt", "ok"],
|
|
10478
10504
|
type: "object"
|
|
10479
10505
|
}
|
|
10480
10506
|
}
|
|
@@ -10492,7 +10518,8 @@ var openapi_default = {
|
|
|
10492
10518
|
summary: "/thermostats/heat",
|
|
10493
10519
|
tags: ["/thermostats"],
|
|
10494
10520
|
"x-fern-sdk-group-name": ["thermostats"],
|
|
10495
|
-
"x-fern-sdk-method-name": "heat"
|
|
10521
|
+
"x-fern-sdk-method-name": "heat",
|
|
10522
|
+
"x-fern-sdk-return-value": "action_attempt"
|
|
10496
10523
|
}
|
|
10497
10524
|
},
|
|
10498
10525
|
"/thermostats/heat_cool": {
|
|
@@ -10521,8 +10548,13 @@ var openapi_default = {
|
|
|
10521
10548
|
content: {
|
|
10522
10549
|
"application/json": {
|
|
10523
10550
|
schema: {
|
|
10524
|
-
properties: {
|
|
10525
|
-
|
|
10551
|
+
properties: {
|
|
10552
|
+
action_attempt: {
|
|
10553
|
+
$ref: "#/components/schemas/action_attempt"
|
|
10554
|
+
},
|
|
10555
|
+
ok: { type: "boolean" }
|
|
10556
|
+
},
|
|
10557
|
+
required: ["action_attempt", "ok"],
|
|
10526
10558
|
type: "object"
|
|
10527
10559
|
}
|
|
10528
10560
|
}
|
|
@@ -10540,7 +10572,8 @@ var openapi_default = {
|
|
|
10540
10572
|
summary: "/thermostats/heat_cool",
|
|
10541
10573
|
tags: ["/thermostats"],
|
|
10542
10574
|
"x-fern-sdk-group-name": ["thermostats"],
|
|
10543
|
-
"x-fern-sdk-method-name": "heat_cool"
|
|
10575
|
+
"x-fern-sdk-method-name": "heat_cool",
|
|
10576
|
+
"x-fern-sdk-return-value": "action_attempt"
|
|
10544
10577
|
}
|
|
10545
10578
|
},
|
|
10546
10579
|
"/thermostats/list": {
|
|
@@ -10786,8 +10819,13 @@ var openapi_default = {
|
|
|
10786
10819
|
content: {
|
|
10787
10820
|
"application/json": {
|
|
10788
10821
|
schema: {
|
|
10789
|
-
properties: {
|
|
10790
|
-
|
|
10822
|
+
properties: {
|
|
10823
|
+
action_attempt: {
|
|
10824
|
+
$ref: "#/components/schemas/action_attempt"
|
|
10825
|
+
},
|
|
10826
|
+
ok: { type: "boolean" }
|
|
10827
|
+
},
|
|
10828
|
+
required: ["action_attempt", "ok"],
|
|
10791
10829
|
type: "object"
|
|
10792
10830
|
}
|
|
10793
10831
|
}
|
|
@@ -10805,7 +10843,8 @@ var openapi_default = {
|
|
|
10805
10843
|
summary: "/thermostats/off",
|
|
10806
10844
|
tags: ["/thermostats"],
|
|
10807
10845
|
"x-fern-sdk-group-name": ["thermostats"],
|
|
10808
|
-
"x-fern-sdk-method-name": "off"
|
|
10846
|
+
"x-fern-sdk-method-name": "off",
|
|
10847
|
+
"x-fern-sdk-return-value": "action_attempt"
|
|
10809
10848
|
}
|
|
10810
10849
|
},
|
|
10811
10850
|
"/thermostats/set_fan_mode": {
|
|
@@ -10832,8 +10871,13 @@ var openapi_default = {
|
|
|
10832
10871
|
content: {
|
|
10833
10872
|
"application/json": {
|
|
10834
10873
|
schema: {
|
|
10835
|
-
properties: {
|
|
10836
|
-
|
|
10874
|
+
properties: {
|
|
10875
|
+
action_attempt: {
|
|
10876
|
+
$ref: "#/components/schemas/action_attempt"
|
|
10877
|
+
},
|
|
10878
|
+
ok: { type: "boolean" }
|
|
10879
|
+
},
|
|
10880
|
+
required: ["action_attempt", "ok"],
|
|
10837
10881
|
type: "object"
|
|
10838
10882
|
}
|
|
10839
10883
|
}
|
|
@@ -10851,7 +10895,8 @@ var openapi_default = {
|
|
|
10851
10895
|
summary: "/thermostats/set_fan_mode",
|
|
10852
10896
|
tags: ["/thermostats"],
|
|
10853
10897
|
"x-fern-sdk-group-name": ["thermostats"],
|
|
10854
|
-
"x-fern-sdk-method-name": "set_fan_mode"
|
|
10898
|
+
"x-fern-sdk-method-name": "set_fan_mode",
|
|
10899
|
+
"x-fern-sdk-return-value": "action_attempt"
|
|
10855
10900
|
}
|
|
10856
10901
|
},
|
|
10857
10902
|
"/thermostats/update": {
|