@seamapi/types 1.495.0 → 1.497.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 +123 -23
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +401 -10
- package/dist/index.cjs +123 -23
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/batch.d.ts +360 -0
- package/lib/seam/connect/models/batch.js +5 -0
- package/lib/seam/connect/models/batch.js.map +1 -1
- package/lib/seam/connect/models/devices/device-provider.d.ts +6 -0
- package/lib/seam/connect/models/devices/device.d.ts +12 -0
- package/lib/seam/connect/models/devices/device.js +2 -0
- package/lib/seam/connect/models/devices/device.js.map +1 -1
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +8 -0
- package/lib/seam/connect/openapi.d.ts +66 -0
- package/lib/seam/connect/openapi.js +94 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +150 -10
- package/package.json +1 -1
- package/src/lib/seam/connect/models/batch.ts +8 -0
- package/src/lib/seam/connect/models/devices/device.ts +2 -0
- package/src/lib/seam/connect/openapi.ts +94 -0
- package/src/lib/seam/connect/route-types.ts +168 -0
package/dist/connect.cjs
CHANGED
|
@@ -1160,7 +1160,9 @@ var device_capability_flags = zod.z.object({
|
|
|
1160
1160
|
can_simulate_connection: zod.z.boolean(),
|
|
1161
1161
|
can_simulate_disconnection: zod.z.boolean(),
|
|
1162
1162
|
can_unlock_with_code: zod.z.boolean(),
|
|
1163
|
-
can_run_thermostat_programs: zod.z.boolean()
|
|
1163
|
+
can_run_thermostat_programs: zod.z.boolean(),
|
|
1164
|
+
can_simulate_hub_connection: zod.z.boolean(),
|
|
1165
|
+
can_simulate_hub_disconnection: zod.z.boolean()
|
|
1164
1166
|
}).partial();
|
|
1165
1167
|
var battery_status = zod.z.enum(["critical", "low", "good", "full"]).describe(`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.
|
|
1166
1168
|
`);
|
|
@@ -5337,7 +5339,9 @@ zod.z.object({
|
|
|
5337
5339
|
events: seam_event.array().optional(),
|
|
5338
5340
|
instant_keys: instant_key.array().optional(),
|
|
5339
5341
|
access_codes: access_code.array().optional(),
|
|
5340
|
-
unmanaged_access_codes: unmanaged_access_code.array().optional()
|
|
5342
|
+
unmanaged_access_codes: unmanaged_access_code.array().optional(),
|
|
5343
|
+
thermostat_daily_programs: thermostat_daily_program.array().optional(),
|
|
5344
|
+
thermostat_schedules: thermostat_schedule.array().optional()
|
|
5341
5345
|
}).describe("A batch of workspace resources.");
|
|
5342
5346
|
var batch = zod.z.object({
|
|
5343
5347
|
batch_type: zod.z.enum([
|
|
@@ -5368,7 +5372,9 @@ var batch = zod.z.object({
|
|
|
5368
5372
|
events: seam_event.array().optional(),
|
|
5369
5373
|
instant_keys: instant_key.array().optional(),
|
|
5370
5374
|
access_codes: access_code.array().optional(),
|
|
5371
|
-
unmanaged_access_codes: unmanaged_access_code.array().optional()
|
|
5375
|
+
unmanaged_access_codes: unmanaged_access_code.array().optional(),
|
|
5376
|
+
thermostat_daily_programs: thermostat_daily_program.array().optional(),
|
|
5377
|
+
thermostat_schedules: thermostat_schedule.array().optional()
|
|
5372
5378
|
}).describe("A batch of workspace resources.");
|
|
5373
5379
|
var bridge = zod.z.object({
|
|
5374
5380
|
bridge_id: zod.z.string().uuid().describe("ID of Seam Bridge."),
|
|
@@ -13675,6 +13681,8 @@ var openapi_default = {
|
|
|
13675
13681
|
can_run_thermostat_programs: { type: "boolean" },
|
|
13676
13682
|
can_simulate_connection: { type: "boolean" },
|
|
13677
13683
|
can_simulate_disconnection: { type: "boolean" },
|
|
13684
|
+
can_simulate_hub_connection: { type: "boolean" },
|
|
13685
|
+
can_simulate_hub_disconnection: { type: "boolean" },
|
|
13678
13686
|
can_simulate_removal: { type: "boolean" },
|
|
13679
13687
|
can_turn_off_hvac: { type: "boolean" },
|
|
13680
13688
|
can_unlock_with_code: { type: "boolean" },
|
|
@@ -17032,6 +17040,8 @@ var openapi_default = {
|
|
|
17032
17040
|
can_run_thermostat_programs: { type: "boolean" },
|
|
17033
17041
|
can_simulate_connection: { type: "boolean" },
|
|
17034
17042
|
can_simulate_disconnection: { type: "boolean" },
|
|
17043
|
+
can_simulate_hub_connection: { type: "boolean" },
|
|
17044
|
+
can_simulate_hub_disconnection: { type: "boolean" },
|
|
17035
17045
|
can_simulate_removal: { type: "boolean" },
|
|
17036
17046
|
can_turn_off_hvac: { type: "boolean" },
|
|
17037
17047
|
can_unlock_with_code: { type: "boolean" },
|
|
@@ -26717,6 +26727,8 @@ var openapi_default = {
|
|
|
26717
26727
|
can_run_thermostat_programs: { type: "boolean" },
|
|
26718
26728
|
can_simulate_connection: { type: "boolean" },
|
|
26719
26729
|
can_simulate_disconnection: { type: "boolean" },
|
|
26730
|
+
can_simulate_hub_connection: { type: "boolean" },
|
|
26731
|
+
can_simulate_hub_disconnection: { type: "boolean" },
|
|
26720
26732
|
can_simulate_removal: { type: "boolean" },
|
|
26721
26733
|
can_turn_off_hvac: { type: "boolean" },
|
|
26722
26734
|
can_unlock_with_code: { type: "boolean" },
|
|
@@ -31932,6 +31944,18 @@ var openapi_default = {
|
|
|
31932
31944
|
items: { $ref: "#/components/schemas/space" },
|
|
31933
31945
|
type: "array"
|
|
31934
31946
|
},
|
|
31947
|
+
thermostat_daily_programs: {
|
|
31948
|
+
items: {
|
|
31949
|
+
$ref: "#/components/schemas/thermostat_daily_program"
|
|
31950
|
+
},
|
|
31951
|
+
type: "array"
|
|
31952
|
+
},
|
|
31953
|
+
thermostat_schedules: {
|
|
31954
|
+
items: {
|
|
31955
|
+
$ref: "#/components/schemas/thermostat_schedule"
|
|
31956
|
+
},
|
|
31957
|
+
type: "array"
|
|
31958
|
+
},
|
|
31935
31959
|
unmanaged_access_codes: {
|
|
31936
31960
|
items: {
|
|
31937
31961
|
$ref: "#/components/schemas/unmanaged_access_code"
|
|
@@ -32127,6 +32151,18 @@ var openapi_default = {
|
|
|
32127
32151
|
items: { $ref: "#/components/schemas/space" },
|
|
32128
32152
|
type: "array"
|
|
32129
32153
|
},
|
|
32154
|
+
thermostat_daily_programs: {
|
|
32155
|
+
items: {
|
|
32156
|
+
$ref: "#/components/schemas/thermostat_daily_program"
|
|
32157
|
+
},
|
|
32158
|
+
type: "array"
|
|
32159
|
+
},
|
|
32160
|
+
thermostat_schedules: {
|
|
32161
|
+
items: {
|
|
32162
|
+
$ref: "#/components/schemas/thermostat_schedule"
|
|
32163
|
+
},
|
|
32164
|
+
type: "array"
|
|
32165
|
+
},
|
|
32130
32166
|
unmanaged_access_codes: {
|
|
32131
32167
|
items: {
|
|
32132
32168
|
$ref: "#/components/schemas/unmanaged_access_code"
|
|
@@ -42124,7 +42160,9 @@ var openapi_default = {
|
|
|
42124
42160
|
"can_simulate_connection",
|
|
42125
42161
|
"can_simulate_disconnection",
|
|
42126
42162
|
"can_unlock_with_code",
|
|
42127
|
-
"can_run_thermostat_programs"
|
|
42163
|
+
"can_run_thermostat_programs",
|
|
42164
|
+
"can_simulate_hub_connection",
|
|
42165
|
+
"can_simulate_hub_disconnection"
|
|
42128
42166
|
],
|
|
42129
42167
|
type: "string"
|
|
42130
42168
|
},
|
|
@@ -42150,7 +42188,9 @@ var openapi_default = {
|
|
|
42150
42188
|
"can_simulate_connection",
|
|
42151
42189
|
"can_simulate_disconnection",
|
|
42152
42190
|
"can_unlock_with_code",
|
|
42153
|
-
"can_run_thermostat_programs"
|
|
42191
|
+
"can_run_thermostat_programs",
|
|
42192
|
+
"can_simulate_hub_connection",
|
|
42193
|
+
"can_simulate_hub_disconnection"
|
|
42154
42194
|
],
|
|
42155
42195
|
type: "string"
|
|
42156
42196
|
},
|
|
@@ -42422,7 +42462,9 @@ var openapi_default = {
|
|
|
42422
42462
|
"can_simulate_connection",
|
|
42423
42463
|
"can_simulate_disconnection",
|
|
42424
42464
|
"can_unlock_with_code",
|
|
42425
|
-
"can_run_thermostat_programs"
|
|
42465
|
+
"can_run_thermostat_programs",
|
|
42466
|
+
"can_simulate_hub_connection",
|
|
42467
|
+
"can_simulate_hub_disconnection"
|
|
42426
42468
|
],
|
|
42427
42469
|
type: "string"
|
|
42428
42470
|
},
|
|
@@ -42444,7 +42486,9 @@ var openapi_default = {
|
|
|
42444
42486
|
"can_simulate_connection",
|
|
42445
42487
|
"can_simulate_disconnection",
|
|
42446
42488
|
"can_unlock_with_code",
|
|
42447
|
-
"can_run_thermostat_programs"
|
|
42489
|
+
"can_run_thermostat_programs",
|
|
42490
|
+
"can_simulate_hub_connection",
|
|
42491
|
+
"can_simulate_hub_disconnection"
|
|
42448
42492
|
],
|
|
42449
42493
|
type: "string"
|
|
42450
42494
|
},
|
|
@@ -43356,7 +43400,9 @@ var openapi_default = {
|
|
|
43356
43400
|
"can_simulate_connection",
|
|
43357
43401
|
"can_simulate_disconnection",
|
|
43358
43402
|
"can_unlock_with_code",
|
|
43359
|
-
"can_run_thermostat_programs"
|
|
43403
|
+
"can_run_thermostat_programs",
|
|
43404
|
+
"can_simulate_hub_connection",
|
|
43405
|
+
"can_simulate_hub_disconnection"
|
|
43360
43406
|
],
|
|
43361
43407
|
type: "string"
|
|
43362
43408
|
},
|
|
@@ -43382,7 +43428,9 @@ var openapi_default = {
|
|
|
43382
43428
|
"can_simulate_connection",
|
|
43383
43429
|
"can_simulate_disconnection",
|
|
43384
43430
|
"can_unlock_with_code",
|
|
43385
|
-
"can_run_thermostat_programs"
|
|
43431
|
+
"can_run_thermostat_programs",
|
|
43432
|
+
"can_simulate_hub_connection",
|
|
43433
|
+
"can_simulate_hub_disconnection"
|
|
43386
43434
|
],
|
|
43387
43435
|
type: "string"
|
|
43388
43436
|
},
|
|
@@ -43651,7 +43699,9 @@ var openapi_default = {
|
|
|
43651
43699
|
"can_simulate_connection",
|
|
43652
43700
|
"can_simulate_disconnection",
|
|
43653
43701
|
"can_unlock_with_code",
|
|
43654
|
-
"can_run_thermostat_programs"
|
|
43702
|
+
"can_run_thermostat_programs",
|
|
43703
|
+
"can_simulate_hub_connection",
|
|
43704
|
+
"can_simulate_hub_disconnection"
|
|
43655
43705
|
],
|
|
43656
43706
|
type: "string"
|
|
43657
43707
|
},
|
|
@@ -43673,7 +43723,9 @@ var openapi_default = {
|
|
|
43673
43723
|
"can_simulate_connection",
|
|
43674
43724
|
"can_simulate_disconnection",
|
|
43675
43725
|
"can_unlock_with_code",
|
|
43676
|
-
"can_run_thermostat_programs"
|
|
43726
|
+
"can_run_thermostat_programs",
|
|
43727
|
+
"can_simulate_hub_connection",
|
|
43728
|
+
"can_simulate_hub_disconnection"
|
|
43677
43729
|
],
|
|
43678
43730
|
type: "string"
|
|
43679
43731
|
},
|
|
@@ -45552,7 +45604,9 @@ var openapi_default = {
|
|
|
45552
45604
|
"can_simulate_connection",
|
|
45553
45605
|
"can_simulate_disconnection",
|
|
45554
45606
|
"can_unlock_with_code",
|
|
45555
|
-
"can_run_thermostat_programs"
|
|
45607
|
+
"can_run_thermostat_programs",
|
|
45608
|
+
"can_simulate_hub_connection",
|
|
45609
|
+
"can_simulate_hub_disconnection"
|
|
45556
45610
|
],
|
|
45557
45611
|
type: "string"
|
|
45558
45612
|
},
|
|
@@ -45578,7 +45632,9 @@ var openapi_default = {
|
|
|
45578
45632
|
"can_simulate_connection",
|
|
45579
45633
|
"can_simulate_disconnection",
|
|
45580
45634
|
"can_unlock_with_code",
|
|
45581
|
-
"can_run_thermostat_programs"
|
|
45635
|
+
"can_run_thermostat_programs",
|
|
45636
|
+
"can_simulate_hub_connection",
|
|
45637
|
+
"can_simulate_hub_disconnection"
|
|
45582
45638
|
],
|
|
45583
45639
|
type: "string"
|
|
45584
45640
|
},
|
|
@@ -45799,7 +45855,9 @@ var openapi_default = {
|
|
|
45799
45855
|
"can_simulate_connection",
|
|
45800
45856
|
"can_simulate_disconnection",
|
|
45801
45857
|
"can_unlock_with_code",
|
|
45802
|
-
"can_run_thermostat_programs"
|
|
45858
|
+
"can_run_thermostat_programs",
|
|
45859
|
+
"can_simulate_hub_connection",
|
|
45860
|
+
"can_simulate_hub_disconnection"
|
|
45803
45861
|
],
|
|
45804
45862
|
type: "string"
|
|
45805
45863
|
},
|
|
@@ -45821,7 +45879,9 @@ var openapi_default = {
|
|
|
45821
45879
|
"can_simulate_connection",
|
|
45822
45880
|
"can_simulate_disconnection",
|
|
45823
45881
|
"can_unlock_with_code",
|
|
45824
|
-
"can_run_thermostat_programs"
|
|
45882
|
+
"can_run_thermostat_programs",
|
|
45883
|
+
"can_simulate_hub_connection",
|
|
45884
|
+
"can_simulate_hub_disconnection"
|
|
45825
45885
|
],
|
|
45826
45886
|
type: "string"
|
|
45827
45887
|
},
|
|
@@ -46332,7 +46392,9 @@ var openapi_default = {
|
|
|
46332
46392
|
"can_simulate_connection",
|
|
46333
46393
|
"can_simulate_disconnection",
|
|
46334
46394
|
"can_unlock_with_code",
|
|
46335
|
-
"can_run_thermostat_programs"
|
|
46395
|
+
"can_run_thermostat_programs",
|
|
46396
|
+
"can_simulate_hub_connection",
|
|
46397
|
+
"can_simulate_hub_disconnection"
|
|
46336
46398
|
],
|
|
46337
46399
|
type: "string"
|
|
46338
46400
|
},
|
|
@@ -46358,7 +46420,9 @@ var openapi_default = {
|
|
|
46358
46420
|
"can_simulate_connection",
|
|
46359
46421
|
"can_simulate_disconnection",
|
|
46360
46422
|
"can_unlock_with_code",
|
|
46361
|
-
"can_run_thermostat_programs"
|
|
46423
|
+
"can_run_thermostat_programs",
|
|
46424
|
+
"can_simulate_hub_connection",
|
|
46425
|
+
"can_simulate_hub_disconnection"
|
|
46362
46426
|
],
|
|
46363
46427
|
type: "string"
|
|
46364
46428
|
},
|
|
@@ -46523,7 +46587,9 @@ var openapi_default = {
|
|
|
46523
46587
|
"can_simulate_connection",
|
|
46524
46588
|
"can_simulate_disconnection",
|
|
46525
46589
|
"can_unlock_with_code",
|
|
46526
|
-
"can_run_thermostat_programs"
|
|
46590
|
+
"can_run_thermostat_programs",
|
|
46591
|
+
"can_simulate_hub_connection",
|
|
46592
|
+
"can_simulate_hub_disconnection"
|
|
46527
46593
|
],
|
|
46528
46594
|
type: "string"
|
|
46529
46595
|
},
|
|
@@ -46545,7 +46611,9 @@ var openapi_default = {
|
|
|
46545
46611
|
"can_simulate_connection",
|
|
46546
46612
|
"can_simulate_disconnection",
|
|
46547
46613
|
"can_unlock_with_code",
|
|
46548
|
-
"can_run_thermostat_programs"
|
|
46614
|
+
"can_run_thermostat_programs",
|
|
46615
|
+
"can_simulate_hub_connection",
|
|
46616
|
+
"can_simulate_hub_disconnection"
|
|
46549
46617
|
],
|
|
46550
46618
|
type: "string"
|
|
46551
46619
|
},
|
|
@@ -52842,7 +52910,9 @@ var openapi_default = {
|
|
|
52842
52910
|
"can_simulate_connection",
|
|
52843
52911
|
"can_simulate_disconnection",
|
|
52844
52912
|
"can_unlock_with_code",
|
|
52845
|
-
"can_run_thermostat_programs"
|
|
52913
|
+
"can_run_thermostat_programs",
|
|
52914
|
+
"can_simulate_hub_connection",
|
|
52915
|
+
"can_simulate_hub_disconnection"
|
|
52846
52916
|
],
|
|
52847
52917
|
type: "string"
|
|
52848
52918
|
},
|
|
@@ -52868,7 +52938,9 @@ var openapi_default = {
|
|
|
52868
52938
|
"can_simulate_connection",
|
|
52869
52939
|
"can_simulate_disconnection",
|
|
52870
52940
|
"can_unlock_with_code",
|
|
52871
|
-
"can_run_thermostat_programs"
|
|
52941
|
+
"can_run_thermostat_programs",
|
|
52942
|
+
"can_simulate_hub_connection",
|
|
52943
|
+
"can_simulate_hub_disconnection"
|
|
52872
52944
|
],
|
|
52873
52945
|
type: "string"
|
|
52874
52946
|
},
|
|
@@ -53047,7 +53119,9 @@ var openapi_default = {
|
|
|
53047
53119
|
"can_simulate_connection",
|
|
53048
53120
|
"can_simulate_disconnection",
|
|
53049
53121
|
"can_unlock_with_code",
|
|
53050
|
-
"can_run_thermostat_programs"
|
|
53122
|
+
"can_run_thermostat_programs",
|
|
53123
|
+
"can_simulate_hub_connection",
|
|
53124
|
+
"can_simulate_hub_disconnection"
|
|
53051
53125
|
],
|
|
53052
53126
|
type: "string"
|
|
53053
53127
|
},
|
|
@@ -53069,7 +53143,9 @@ var openapi_default = {
|
|
|
53069
53143
|
"can_simulate_connection",
|
|
53070
53144
|
"can_simulate_disconnection",
|
|
53071
53145
|
"can_unlock_with_code",
|
|
53072
|
-
"can_run_thermostat_programs"
|
|
53146
|
+
"can_run_thermostat_programs",
|
|
53147
|
+
"can_simulate_hub_connection",
|
|
53148
|
+
"can_simulate_hub_disconnection"
|
|
53073
53149
|
],
|
|
53074
53150
|
type: "string"
|
|
53075
53151
|
},
|
|
@@ -58053,6 +58129,18 @@ var openapi_default = {
|
|
|
58053
58129
|
items: { $ref: "#/components/schemas/space" },
|
|
58054
58130
|
type: "array"
|
|
58055
58131
|
},
|
|
58132
|
+
thermostat_daily_programs: {
|
|
58133
|
+
items: {
|
|
58134
|
+
$ref: "#/components/schemas/thermostat_daily_program"
|
|
58135
|
+
},
|
|
58136
|
+
type: "array"
|
|
58137
|
+
},
|
|
58138
|
+
thermostat_schedules: {
|
|
58139
|
+
items: {
|
|
58140
|
+
$ref: "#/components/schemas/thermostat_schedule"
|
|
58141
|
+
},
|
|
58142
|
+
type: "array"
|
|
58143
|
+
},
|
|
58056
58144
|
unmanaged_access_codes: {
|
|
58057
58145
|
items: {
|
|
58058
58146
|
$ref: "#/components/schemas/unmanaged_access_code"
|
|
@@ -58228,6 +58316,18 @@ var openapi_default = {
|
|
|
58228
58316
|
items: { $ref: "#/components/schemas/space" },
|
|
58229
58317
|
type: "array"
|
|
58230
58318
|
},
|
|
58319
|
+
thermostat_daily_programs: {
|
|
58320
|
+
items: {
|
|
58321
|
+
$ref: "#/components/schemas/thermostat_daily_program"
|
|
58322
|
+
},
|
|
58323
|
+
type: "array"
|
|
58324
|
+
},
|
|
58325
|
+
thermostat_schedules: {
|
|
58326
|
+
items: {
|
|
58327
|
+
$ref: "#/components/schemas/thermostat_schedule"
|
|
58328
|
+
},
|
|
58329
|
+
type: "array"
|
|
58330
|
+
},
|
|
58231
58331
|
unmanaged_access_codes: {
|
|
58232
58332
|
items: {
|
|
58233
58333
|
$ref: "#/components/schemas/unmanaged_access_code"
|