@seamapi/types 1.273.0 → 1.275.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 +232 -4
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +783 -45
- package/lib/seam/connect/models/acs/acs-entrance.d.ts +19 -19
- package/lib/seam/connect/models/devices/capability-properties/index.d.ts +28 -0
- package/lib/seam/connect/models/devices/capability-properties/thermostat.d.ts +28 -0
- package/lib/seam/connect/models/devices/capability-properties/thermostat.js +8 -0
- package/lib/seam/connect/models/devices/capability-properties/thermostat.js.map +1 -1
- package/lib/seam/connect/models/devices/device-metadata.d.ts +38 -0
- package/lib/seam/connect/models/devices/device-metadata.js +11 -0
- package/lib/seam/connect/models/devices/device-metadata.js.map +1 -1
- package/lib/seam/connect/models/devices/device.d.ts +94 -0
- package/lib/seam/connect/models/devices/phone.d.ts +66 -0
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +66 -0
- package/lib/seam/connect/models/events/devices.d.ts +180 -0
- package/lib/seam/connect/models/events/devices.js +24 -0
- package/lib/seam/connect/models/events/devices.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +88 -0
- package/lib/seam/connect/openapi.d.ts +223 -0
- package/lib/seam/connect/openapi.js +187 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +269 -2
- package/package.json +1 -1
- package/src/lib/seam/connect/models/devices/capability-properties/thermostat.ts +8 -0
- package/src/lib/seam/connect/models/devices/device-metadata.ts +11 -1
- package/src/lib/seam/connect/models/events/devices.ts +38 -0
- package/src/lib/seam/connect/openapi.ts +188 -0
- package/src/lib/seam/connect/route-types.ts +369 -0
|
@@ -386,6 +386,42 @@ export type ThermostatManuallyAdjustedEvent = z.infer<
|
|
|
386
386
|
typeof thermostat_manually_adjusted_event
|
|
387
387
|
>
|
|
388
388
|
|
|
389
|
+
export const temperature_threshold_exceeded_event = device_event
|
|
390
|
+
.extend({
|
|
391
|
+
event_type: z.literal('thermostat.temperature_threshold_exceeded'),
|
|
392
|
+
temperature_celsius: z.number(),
|
|
393
|
+
temperature_fahrenheit: z.number(),
|
|
394
|
+
upper_limit_celsius: z.number().nullable(),
|
|
395
|
+
upper_limit_fahrenheit: z.number().nullable(),
|
|
396
|
+
lower_limit_celsius: z.number().nullable(),
|
|
397
|
+
lower_limit_fahrenheit: z.number().nullable(),
|
|
398
|
+
})
|
|
399
|
+
.describe("A thermostat's temperature reading exceeded the set threshold.")
|
|
400
|
+
|
|
401
|
+
export type TemperatureThresholdExceededEvent = z.infer<
|
|
402
|
+
typeof temperature_threshold_exceeded_event
|
|
403
|
+
>
|
|
404
|
+
|
|
405
|
+
export const temperature_threshold_no_longer_exceeded_event = device_event
|
|
406
|
+
.extend({
|
|
407
|
+
event_type: z.literal(
|
|
408
|
+
'thermostat.temperature_threshold_no_longer_exceeded',
|
|
409
|
+
),
|
|
410
|
+
temperature_celsius: z.number(),
|
|
411
|
+
temperature_fahrenheit: z.number(),
|
|
412
|
+
upper_limit_celsius: z.number().nullable(),
|
|
413
|
+
upper_limit_fahrenheit: z.number().nullable(),
|
|
414
|
+
lower_limit_celsius: z.number().nullable(),
|
|
415
|
+
lower_limit_fahrenheit: z.number().nullable(),
|
|
416
|
+
})
|
|
417
|
+
.describe(
|
|
418
|
+
"A thermostat's temperature reading is no longer exceeding the set threshold.",
|
|
419
|
+
)
|
|
420
|
+
|
|
421
|
+
export type TemperatureThresholdNoLongerExceededEvent = z.infer<
|
|
422
|
+
typeof temperature_threshold_no_longer_exceeded_event
|
|
423
|
+
>
|
|
424
|
+
|
|
389
425
|
export const device_events = [
|
|
390
426
|
device_connected_event,
|
|
391
427
|
device_added_event,
|
|
@@ -415,4 +451,6 @@ export const device_events = [
|
|
|
415
451
|
lock_access_denied_event,
|
|
416
452
|
thermostat_climate_preset_activated_event,
|
|
417
453
|
thermostat_manually_adjusted_event,
|
|
454
|
+
temperature_threshold_exceeded_event,
|
|
455
|
+
temperature_threshold_no_longer_exceeded_event,
|
|
418
456
|
] as const
|
|
@@ -3896,7 +3896,27 @@ export default {
|
|
|
3896
3896
|
required: ['device_id', 'device_name'],
|
|
3897
3897
|
type: 'object',
|
|
3898
3898
|
},
|
|
3899
|
+
salto_ks_metadata: {
|
|
3900
|
+
properties: {
|
|
3901
|
+
battery_level: { type: 'string' },
|
|
3902
|
+
customer_reference: { type: 'string' },
|
|
3903
|
+
lock_id: { type: 'string' },
|
|
3904
|
+
lock_type: { type: 'string' },
|
|
3905
|
+
locked_state: { type: 'string' },
|
|
3906
|
+
model: { type: 'string' },
|
|
3907
|
+
},
|
|
3908
|
+
required: [
|
|
3909
|
+
'lock_id',
|
|
3910
|
+
'customer_reference',
|
|
3911
|
+
'lock_type',
|
|
3912
|
+
'battery_level',
|
|
3913
|
+
'locked_state',
|
|
3914
|
+
],
|
|
3915
|
+
type: 'object',
|
|
3916
|
+
},
|
|
3899
3917
|
salto_metadata: {
|
|
3918
|
+
description:
|
|
3919
|
+
'\n ---\n deprecated: Use `salto_ks_metadata ` instead.\n ',
|
|
3900
3920
|
properties: {
|
|
3901
3921
|
battery_level: { type: 'string' },
|
|
3902
3922
|
customer_reference: { type: 'string' },
|
|
@@ -4383,6 +4403,37 @@ export default {
|
|
|
4383
4403
|
format: 'float',
|
|
4384
4404
|
type: 'number',
|
|
4385
4405
|
},
|
|
4406
|
+
temperature_threshold: {
|
|
4407
|
+
properties: {
|
|
4408
|
+
lower_limit_celsius: {
|
|
4409
|
+
format: 'float',
|
|
4410
|
+
nullable: true,
|
|
4411
|
+
type: 'number',
|
|
4412
|
+
},
|
|
4413
|
+
lower_limit_fahrenheit: {
|
|
4414
|
+
format: 'float',
|
|
4415
|
+
nullable: true,
|
|
4416
|
+
type: 'number',
|
|
4417
|
+
},
|
|
4418
|
+
upper_limit_celsius: {
|
|
4419
|
+
format: 'float',
|
|
4420
|
+
nullable: true,
|
|
4421
|
+
type: 'number',
|
|
4422
|
+
},
|
|
4423
|
+
upper_limit_fahrenheit: {
|
|
4424
|
+
format: 'float',
|
|
4425
|
+
nullable: true,
|
|
4426
|
+
type: 'number',
|
|
4427
|
+
},
|
|
4428
|
+
},
|
|
4429
|
+
required: [
|
|
4430
|
+
'lower_limit_celsius',
|
|
4431
|
+
'lower_limit_fahrenheit',
|
|
4432
|
+
'upper_limit_celsius',
|
|
4433
|
+
'upper_limit_fahrenheit',
|
|
4434
|
+
],
|
|
4435
|
+
type: 'object',
|
|
4436
|
+
},
|
|
4386
4437
|
},
|
|
4387
4438
|
type: 'object',
|
|
4388
4439
|
},
|
|
@@ -12878,6 +12929,8 @@ export default {
|
|
|
12878
12929
|
'action_attempt.unlock_door.failed',
|
|
12879
12930
|
'thermostat.climate_preset_activated',
|
|
12880
12931
|
'thermostat.manually_adjusted',
|
|
12932
|
+
'thermostat.temperature_threshold_exceeded',
|
|
12933
|
+
'thermostat.temperature_threshold_no_longer_exceeded',
|
|
12881
12934
|
],
|
|
12882
12935
|
type: 'string',
|
|
12883
12936
|
},
|
|
@@ -12950,6 +13003,8 @@ export default {
|
|
|
12950
13003
|
'action_attempt.unlock_door.failed',
|
|
12951
13004
|
'thermostat.climate_preset_activated',
|
|
12952
13005
|
'thermostat.manually_adjusted',
|
|
13006
|
+
'thermostat.temperature_threshold_exceeded',
|
|
13007
|
+
'thermostat.temperature_threshold_no_longer_exceeded',
|
|
12953
13008
|
],
|
|
12954
13009
|
type: 'string',
|
|
12955
13010
|
},
|
|
@@ -15506,6 +15561,139 @@ export default {
|
|
|
15506
15561
|
'x-response-key': 'action_attempt',
|
|
15507
15562
|
},
|
|
15508
15563
|
},
|
|
15564
|
+
'/thermostats/set_temperature_threshold': {
|
|
15565
|
+
patch: {
|
|
15566
|
+
operationId: 'thermostatsSetTemperatureThresholdPatch',
|
|
15567
|
+
requestBody: {
|
|
15568
|
+
content: {
|
|
15569
|
+
'application/json': {
|
|
15570
|
+
schema: {
|
|
15571
|
+
properties: {
|
|
15572
|
+
device_id: { format: 'uuid', type: 'string' },
|
|
15573
|
+
lower_limit_celsius: {
|
|
15574
|
+
default: null,
|
|
15575
|
+
format: 'float',
|
|
15576
|
+
nullable: true,
|
|
15577
|
+
type: 'number',
|
|
15578
|
+
},
|
|
15579
|
+
lower_limit_fahrenheit: {
|
|
15580
|
+
default: null,
|
|
15581
|
+
format: 'float',
|
|
15582
|
+
nullable: true,
|
|
15583
|
+
type: 'number',
|
|
15584
|
+
},
|
|
15585
|
+
upper_limit_celsius: {
|
|
15586
|
+
default: null,
|
|
15587
|
+
format: 'float',
|
|
15588
|
+
nullable: true,
|
|
15589
|
+
type: 'number',
|
|
15590
|
+
},
|
|
15591
|
+
upper_limit_fahrenheit: {
|
|
15592
|
+
default: null,
|
|
15593
|
+
format: 'float',
|
|
15594
|
+
nullable: true,
|
|
15595
|
+
type: 'number',
|
|
15596
|
+
},
|
|
15597
|
+
},
|
|
15598
|
+
required: ['device_id'],
|
|
15599
|
+
type: 'object',
|
|
15600
|
+
},
|
|
15601
|
+
},
|
|
15602
|
+
},
|
|
15603
|
+
},
|
|
15604
|
+
responses: {
|
|
15605
|
+
200: {
|
|
15606
|
+
content: {
|
|
15607
|
+
'application/json': {
|
|
15608
|
+
schema: {
|
|
15609
|
+
properties: { ok: { type: 'boolean' } },
|
|
15610
|
+
required: ['ok'],
|
|
15611
|
+
type: 'object',
|
|
15612
|
+
},
|
|
15613
|
+
},
|
|
15614
|
+
},
|
|
15615
|
+
description: 'OK',
|
|
15616
|
+
},
|
|
15617
|
+
400: { description: 'Bad Request' },
|
|
15618
|
+
401: { description: 'Unauthorized' },
|
|
15619
|
+
},
|
|
15620
|
+
security: [
|
|
15621
|
+
{ api_key: [] },
|
|
15622
|
+
{ pat_with_workspace: [] },
|
|
15623
|
+
{ console_session: [] },
|
|
15624
|
+
],
|
|
15625
|
+
summary: '/thermostats/set_temperature_threshold',
|
|
15626
|
+
tags: ['/thermostats'],
|
|
15627
|
+
'x-fern-ignore': true,
|
|
15628
|
+
'x-response-key': null,
|
|
15629
|
+
},
|
|
15630
|
+
post: {
|
|
15631
|
+
operationId: 'thermostatsSetTemperatureThresholdPost',
|
|
15632
|
+
requestBody: {
|
|
15633
|
+
content: {
|
|
15634
|
+
'application/json': {
|
|
15635
|
+
schema: {
|
|
15636
|
+
properties: {
|
|
15637
|
+
device_id: { format: 'uuid', type: 'string' },
|
|
15638
|
+
lower_limit_celsius: {
|
|
15639
|
+
default: null,
|
|
15640
|
+
format: 'float',
|
|
15641
|
+
nullable: true,
|
|
15642
|
+
type: 'number',
|
|
15643
|
+
},
|
|
15644
|
+
lower_limit_fahrenheit: {
|
|
15645
|
+
default: null,
|
|
15646
|
+
format: 'float',
|
|
15647
|
+
nullable: true,
|
|
15648
|
+
type: 'number',
|
|
15649
|
+
},
|
|
15650
|
+
upper_limit_celsius: {
|
|
15651
|
+
default: null,
|
|
15652
|
+
format: 'float',
|
|
15653
|
+
nullable: true,
|
|
15654
|
+
type: 'number',
|
|
15655
|
+
},
|
|
15656
|
+
upper_limit_fahrenheit: {
|
|
15657
|
+
default: null,
|
|
15658
|
+
format: 'float',
|
|
15659
|
+
nullable: true,
|
|
15660
|
+
type: 'number',
|
|
15661
|
+
},
|
|
15662
|
+
},
|
|
15663
|
+
required: ['device_id'],
|
|
15664
|
+
type: 'object',
|
|
15665
|
+
},
|
|
15666
|
+
},
|
|
15667
|
+
},
|
|
15668
|
+
},
|
|
15669
|
+
responses: {
|
|
15670
|
+
200: {
|
|
15671
|
+
content: {
|
|
15672
|
+
'application/json': {
|
|
15673
|
+
schema: {
|
|
15674
|
+
properties: { ok: { type: 'boolean' } },
|
|
15675
|
+
required: ['ok'],
|
|
15676
|
+
type: 'object',
|
|
15677
|
+
},
|
|
15678
|
+
},
|
|
15679
|
+
},
|
|
15680
|
+
description: 'OK',
|
|
15681
|
+
},
|
|
15682
|
+
400: { description: 'Bad Request' },
|
|
15683
|
+
401: { description: 'Unauthorized' },
|
|
15684
|
+
},
|
|
15685
|
+
security: [
|
|
15686
|
+
{ api_key: [] },
|
|
15687
|
+
{ pat_with_workspace: [] },
|
|
15688
|
+
{ console_session: [] },
|
|
15689
|
+
],
|
|
15690
|
+
summary: '/thermostats/set_temperature_threshold',
|
|
15691
|
+
tags: ['/thermostats'],
|
|
15692
|
+
'x-fern-sdk-group-name': ['thermostats'],
|
|
15693
|
+
'x-fern-sdk-method-name': 'set_temperature_threshold',
|
|
15694
|
+
'x-response-key': null,
|
|
15695
|
+
},
|
|
15696
|
+
},
|
|
15509
15697
|
'/thermostats/update_climate_preset': {
|
|
15510
15698
|
patch: {
|
|
15511
15699
|
operationId: 'thermostatsUpdateClimatePresetPatch',
|