@seamapi/types 1.1081.0 → 1.1082.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/lib/seam/connect/models/action-attempts/action-attempt.d.ts +75 -0
- package/lib/seam/connect/models/action-attempts/action-attempt.js +2 -0
- package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/activate-weekly-program.d.ts +77 -0
- package/lib/seam/connect/models/action-attempts/activate-weekly-program.js +31 -0
- package/lib/seam/connect/models/action-attempts/activate-weekly-program.js.map +1 -0
- package/lib/seam/connect/models/devices/device-provider.d.ts +3 -0
- package/lib/seam/connect/models/devices/device.d.ts +6 -0
- package/lib/seam/connect/models/devices/device.js +3 -0
- package/lib/seam/connect/models/devices/device.js.map +1 -1
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +4 -0
- package/lib/seam/connect/openapi.js +184 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +3258 -214
- package/package.json +1 -1
- package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +2 -0
- package/src/lib/seam/connect/models/action-attempts/activate-weekly-program.ts +46 -0
- package/src/lib/seam/connect/models/devices/device.ts +5 -0
- package/src/lib/seam/connect/openapi.ts +197 -0
- package/src/lib/seam/connect/route-types.ts +3674 -218
|
@@ -9574,6 +9574,111 @@ const openapi = {
|
|
|
9574
9574
|
],
|
|
9575
9575
|
type: 'object',
|
|
9576
9576
|
},
|
|
9577
|
+
{
|
|
9578
|
+
description: 'Activating the weekly program is pending.',
|
|
9579
|
+
properties: {
|
|
9580
|
+
action_attempt_id: {
|
|
9581
|
+
description: 'ID of the action attempt.',
|
|
9582
|
+
format: 'uuid',
|
|
9583
|
+
type: 'string',
|
|
9584
|
+
},
|
|
9585
|
+
action_type: {
|
|
9586
|
+
description: 'Action attempt to track the status of returning a thermostat to its weekly program.',
|
|
9587
|
+
enum: ['ACTIVATE_WEEKLY_PROGRAM'],
|
|
9588
|
+
type: 'string',
|
|
9589
|
+
},
|
|
9590
|
+
error: {
|
|
9591
|
+
description: 'Errors associated with the action attempt. Null for pending action attempts.',
|
|
9592
|
+
nullable: true,
|
|
9593
|
+
},
|
|
9594
|
+
result: {
|
|
9595
|
+
description: 'Result of the action attempt. Null for pending action attempts.',
|
|
9596
|
+
nullable: true,
|
|
9597
|
+
},
|
|
9598
|
+
status: { enum: ['pending'], type: 'string' },
|
|
9599
|
+
},
|
|
9600
|
+
required: [
|
|
9601
|
+
'action_attempt_id',
|
|
9602
|
+
'status',
|
|
9603
|
+
'result',
|
|
9604
|
+
'error',
|
|
9605
|
+
'action_type',
|
|
9606
|
+
],
|
|
9607
|
+
type: 'object',
|
|
9608
|
+
},
|
|
9609
|
+
{
|
|
9610
|
+
description: 'Activating the weekly program succeeded.',
|
|
9611
|
+
properties: {
|
|
9612
|
+
action_attempt_id: {
|
|
9613
|
+
description: 'ID of the action attempt.',
|
|
9614
|
+
format: 'uuid',
|
|
9615
|
+
type: 'string',
|
|
9616
|
+
},
|
|
9617
|
+
action_type: {
|
|
9618
|
+
description: 'Action attempt to track the status of returning a thermostat to its weekly program.',
|
|
9619
|
+
enum: ['ACTIVATE_WEEKLY_PROGRAM'],
|
|
9620
|
+
type: 'string',
|
|
9621
|
+
},
|
|
9622
|
+
error: {
|
|
9623
|
+
description: 'Errors associated with the action attempt. Null for successful action attempts.',
|
|
9624
|
+
nullable: true,
|
|
9625
|
+
},
|
|
9626
|
+
result: {
|
|
9627
|
+
description: 'Result of the action.',
|
|
9628
|
+
properties: {},
|
|
9629
|
+
type: 'object',
|
|
9630
|
+
},
|
|
9631
|
+
status: { enum: ['success'], type: 'string' },
|
|
9632
|
+
},
|
|
9633
|
+
required: [
|
|
9634
|
+
'action_attempt_id',
|
|
9635
|
+
'status',
|
|
9636
|
+
'error',
|
|
9637
|
+
'action_type',
|
|
9638
|
+
'result',
|
|
9639
|
+
],
|
|
9640
|
+
type: 'object',
|
|
9641
|
+
},
|
|
9642
|
+
{
|
|
9643
|
+
description: 'Activating the weekly program failed.',
|
|
9644
|
+
properties: {
|
|
9645
|
+
action_attempt_id: {
|
|
9646
|
+
description: 'ID of the action attempt.',
|
|
9647
|
+
format: 'uuid',
|
|
9648
|
+
type: 'string',
|
|
9649
|
+
},
|
|
9650
|
+
action_type: {
|
|
9651
|
+
description: 'Action attempt to track the status of returning a thermostat to its weekly program.',
|
|
9652
|
+
enum: ['ACTIVATE_WEEKLY_PROGRAM'],
|
|
9653
|
+
type: 'string',
|
|
9654
|
+
},
|
|
9655
|
+
error: {
|
|
9656
|
+
description: 'Error associated with the action.',
|
|
9657
|
+
properties: {
|
|
9658
|
+
message: {
|
|
9659
|
+
description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
9660
|
+
type: 'string',
|
|
9661
|
+
},
|
|
9662
|
+
type: { description: 'Type of the error.', type: 'string' },
|
|
9663
|
+
},
|
|
9664
|
+
required: ['type', 'message'],
|
|
9665
|
+
type: 'object',
|
|
9666
|
+
},
|
|
9667
|
+
result: {
|
|
9668
|
+
description: 'Result of the action attempt. Null for failed action attempts.',
|
|
9669
|
+
nullable: true,
|
|
9670
|
+
},
|
|
9671
|
+
status: { enum: ['error'], type: 'string' },
|
|
9672
|
+
},
|
|
9673
|
+
required: [
|
|
9674
|
+
'action_attempt_id',
|
|
9675
|
+
'status',
|
|
9676
|
+
'result',
|
|
9677
|
+
'action_type',
|
|
9678
|
+
'error',
|
|
9679
|
+
],
|
|
9680
|
+
type: 'object',
|
|
9681
|
+
},
|
|
9577
9682
|
{
|
|
9578
9683
|
description: 'Simulating a keypad code entry is pending.',
|
|
9579
9684
|
properties: {
|
|
@@ -11925,6 +12030,10 @@ const openapi = {
|
|
|
11925
12030
|
device: {
|
|
11926
12031
|
description: 'Represents a [device](https://www.seam.co/docs/core-concepts/devices) that has been connected to Seam.',
|
|
11927
12032
|
properties: {
|
|
12033
|
+
can_activate_weekly_program: {
|
|
12034
|
+
description: 'Indicates whether the thermostat can be returned to its weekly program, the schedule that is configured on the device itself, releasing any hold that Seam has set.',
|
|
12035
|
+
type: 'boolean',
|
|
12036
|
+
},
|
|
11928
12037
|
can_configure_auto_lock: {
|
|
11929
12038
|
description: 'Indicates whether the lock supports configuring automatic locking.',
|
|
11930
12039
|
type: 'boolean',
|
|
@@ -15958,6 +16067,10 @@ const openapi = {
|
|
|
15958
16067
|
},
|
|
15959
16068
|
device_provider: {
|
|
15960
16069
|
properties: {
|
|
16070
|
+
can_activate_weekly_program: {
|
|
16071
|
+
description: 'Indicates whether the thermostat can be returned to its weekly program, the schedule that is configured on the device itself, releasing any hold that Seam has set.',
|
|
16072
|
+
type: 'boolean',
|
|
16073
|
+
},
|
|
15961
16074
|
can_configure_auto_lock: {
|
|
15962
16075
|
description: 'Indicates whether the lock supports configuring automatic locking.',
|
|
15963
16076
|
type: 'boolean',
|
|
@@ -32278,6 +32391,10 @@ const openapi = {
|
|
|
32278
32391
|
unmanaged_device: {
|
|
32279
32392
|
description: 'Represents an [unmanaged device](https://www.seam.co/docs/core-concepts/devices/managed-and-unmanaged-devices). An unmanaged device has a limited set of visible properties and a subset of supported events. You cannot control an unmanaged device. Any [access codes](https://www.seam.co/docs/low-level-apis/smart-locks/access-codes/migrating-existing-access-codes) on an unmanaged device are unmanaged. To control an unmanaged device with Seam, [convert it to a managed device](https://www.seam.co/docs/core-concepts/devices/managed-and-unmanaged-devices#convert-an-unmanaged-device-to-managed).',
|
|
32280
32393
|
properties: {
|
|
32394
|
+
can_activate_weekly_program: {
|
|
32395
|
+
description: 'Indicates whether the thermostat can be returned to its weekly program, the schedule that is configured on the device itself, releasing any hold that Seam has set.',
|
|
32396
|
+
type: 'boolean',
|
|
32397
|
+
},
|
|
32281
32398
|
can_configure_auto_lock: {
|
|
32282
32399
|
description: 'Indicates whether the lock supports configuring automatic locking.',
|
|
32283
32400
|
type: 'boolean',
|
|
@@ -46136,6 +46253,7 @@ const openapi = {
|
|
|
46136
46253
|
'can_hvac_cool',
|
|
46137
46254
|
'can_hvac_heat_cool',
|
|
46138
46255
|
'can_turn_off_hvac',
|
|
46256
|
+
'can_activate_weekly_program',
|
|
46139
46257
|
'can_simulate_removal',
|
|
46140
46258
|
'can_simulate_connection',
|
|
46141
46259
|
'can_simulate_disconnection',
|
|
@@ -46169,6 +46287,7 @@ const openapi = {
|
|
|
46169
46287
|
'can_hvac_cool',
|
|
46170
46288
|
'can_hvac_heat_cool',
|
|
46171
46289
|
'can_turn_off_hvac',
|
|
46290
|
+
'can_activate_weekly_program',
|
|
46172
46291
|
'can_simulate_removal',
|
|
46173
46292
|
'can_simulate_connection',
|
|
46174
46293
|
'can_simulate_disconnection',
|
|
@@ -48378,6 +48497,7 @@ const openapi = {
|
|
|
48378
48497
|
'can_hvac_cool',
|
|
48379
48498
|
'can_hvac_heat_cool',
|
|
48380
48499
|
'can_turn_off_hvac',
|
|
48500
|
+
'can_activate_weekly_program',
|
|
48381
48501
|
'can_simulate_removal',
|
|
48382
48502
|
'can_simulate_connection',
|
|
48383
48503
|
'can_simulate_disconnection',
|
|
@@ -48411,6 +48531,7 @@ const openapi = {
|
|
|
48411
48531
|
'can_hvac_cool',
|
|
48412
48532
|
'can_hvac_heat_cool',
|
|
48413
48533
|
'can_turn_off_hvac',
|
|
48534
|
+
'can_activate_weekly_program',
|
|
48414
48535
|
'can_simulate_removal',
|
|
48415
48536
|
'can_simulate_connection',
|
|
48416
48537
|
'can_simulate_disconnection',
|
|
@@ -61407,6 +61528,69 @@ const openapi = {
|
|
|
61407
61528
|
'x-title': 'Activate a Climate Preset',
|
|
61408
61529
|
},
|
|
61409
61530
|
},
|
|
61531
|
+
'/thermostats/activate_weekly_program': {
|
|
61532
|
+
post: {
|
|
61533
|
+
description: "Returns a specified [thermostat](https://www.seam.co/docs/capability-guides/thermostats) to its [weekly program](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-programs), the schedule that is configured on the device itself, releasing any hold that Seam has set. Seam stops managing the thermostat's climate until you [activate a climate preset](https://www.seam.co/docs/capability-guides/thermostats/configure-current-climate-settings), make a direct climate setting change, or one of the thermostat's [scheduled](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) presets reaches its activation time.",
|
|
61534
|
+
operationId: 'thermostatsActivateWeeklyProgramPost',
|
|
61535
|
+
requestBody: {
|
|
61536
|
+
content: {
|
|
61537
|
+
'application/json': {
|
|
61538
|
+
schema: {
|
|
61539
|
+
properties: {
|
|
61540
|
+
device_id: {
|
|
61541
|
+
description: 'ID of the thermostat device that you want to return to its weekly program.',
|
|
61542
|
+
format: 'uuid',
|
|
61543
|
+
type: 'string',
|
|
61544
|
+
},
|
|
61545
|
+
sync: {
|
|
61546
|
+
default: false,
|
|
61547
|
+
type: 'boolean',
|
|
61548
|
+
'x-undocumented': 'Only used internally.',
|
|
61549
|
+
},
|
|
61550
|
+
},
|
|
61551
|
+
required: ['device_id'],
|
|
61552
|
+
type: 'object',
|
|
61553
|
+
},
|
|
61554
|
+
},
|
|
61555
|
+
},
|
|
61556
|
+
},
|
|
61557
|
+
responses: {
|
|
61558
|
+
'200': {
|
|
61559
|
+
content: {
|
|
61560
|
+
'application/json': {
|
|
61561
|
+
schema: {
|
|
61562
|
+
properties: {
|
|
61563
|
+
action_attempt: {
|
|
61564
|
+
$ref: '#/components/schemas/action_attempt',
|
|
61565
|
+
},
|
|
61566
|
+
ok: { type: 'boolean' },
|
|
61567
|
+
},
|
|
61568
|
+
required: ['action_attempt', 'ok'],
|
|
61569
|
+
type: 'object',
|
|
61570
|
+
},
|
|
61571
|
+
},
|
|
61572
|
+
},
|
|
61573
|
+
description: 'OK',
|
|
61574
|
+
},
|
|
61575
|
+
'400': { description: 'Bad Request' },
|
|
61576
|
+
'401': { description: 'Unauthorized' },
|
|
61577
|
+
},
|
|
61578
|
+
security: [
|
|
61579
|
+
{ client_session: [] },
|
|
61580
|
+
{ pat_with_workspace: [] },
|
|
61581
|
+
{ console_session_with_workspace: [] },
|
|
61582
|
+
{ api_key: [] },
|
|
61583
|
+
],
|
|
61584
|
+
summary: '/thermostats/activate_weekly_program',
|
|
61585
|
+
tags: ['/thermostats'],
|
|
61586
|
+
'x-action-attempt-type': 'ACTIVATE_WEEKLY_PROGRAM',
|
|
61587
|
+
'x-fern-sdk-group-name': ['thermostats'],
|
|
61588
|
+
'x-fern-sdk-method-name': 'activate_weekly_program',
|
|
61589
|
+
'x-fern-sdk-return-value': 'action_attempt',
|
|
61590
|
+
'x-response-key': 'action_attempt',
|
|
61591
|
+
'x-title': 'Activate the Weekly Program',
|
|
61592
|
+
},
|
|
61593
|
+
},
|
|
61410
61594
|
'/thermostats/cool': {
|
|
61411
61595
|
post: {
|
|
61412
61596
|
description: 'Sets a specified [thermostat](https://www.seam.co/docs/capability-guides/thermostats) to [cool mode](https://www.seam.co/docs/capability-guides/thermostats/configure-current-climate-settings).',
|