@seamapi/types 1.1081.0 → 1.1083.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.
Files changed (26) hide show
  1. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +75 -0
  2. package/lib/seam/connect/models/action-attempts/action-attempt.js +2 -0
  3. package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -1
  4. package/lib/seam/connect/models/action-attempts/activate-weekly-program.d.ts +77 -0
  5. package/lib/seam/connect/models/action-attempts/activate-weekly-program.js +31 -0
  6. package/lib/seam/connect/models/action-attempts/activate-weekly-program.js.map +1 -0
  7. package/lib/seam/connect/models/devices/device-provider.d.ts +3 -0
  8. package/lib/seam/connect/models/devices/device.d.ts +6 -0
  9. package/lib/seam/connect/models/devices/device.js +3 -0
  10. package/lib/seam/connect/models/devices/device.js.map +1 -1
  11. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +4 -0
  12. package/lib/seam/connect/models/events/devices.d.ts +6 -0
  13. package/lib/seam/connect/models/events/devices.js +4 -0
  14. package/lib/seam/connect/models/events/devices.js.map +1 -1
  15. package/lib/seam/connect/models/events/seam-event.d.ts +3 -0
  16. package/lib/seam/connect/models/instant-keys/instant-key-preview.d.ts +6 -6
  17. package/lib/seam/connect/openapi.js +189 -0
  18. package/lib/seam/connect/openapi.js.map +1 -1
  19. package/lib/seam/connect/route-types.d.ts +3268 -214
  20. package/package.json +1 -1
  21. package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +2 -0
  22. package/src/lib/seam/connect/models/action-attempts/activate-weekly-program.ts +46 -0
  23. package/src/lib/seam/connect/models/devices/device.ts +5 -0
  24. package/src/lib/seam/connect/models/events/devices.ts +6 -0
  25. package/src/lib/seam/connect/openapi.ts +203 -0
  26. package/src/lib/seam/connect/route-types.ts +3691 -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',
@@ -25956,6 +26069,11 @@ const openapi = {
25956
26069
  format: 'uri',
25957
26070
  type: 'string',
25958
26071
  },
26072
+ media_status: {
26073
+ description: 'Status of the recorded clip and thumbnail for this activation, when the camera supports event recordings. `pending` while Seam retrieves the recording, `available` once it is stored, `unavailable` if no recording covers the activation, and `failed` if retrieval failed.',
26074
+ enum: ['pending', 'available', 'unavailable', 'failed'],
26075
+ type: 'string',
26076
+ },
25959
26077
  motion_sub_type: {
25960
26078
  description: 'Sub-type of motion detected, if available.',
25961
26079
  enum: ['human', 'vehicle', 'package', 'other'],
@@ -32278,6 +32396,10 @@ const openapi = {
32278
32396
  unmanaged_device: {
32279
32397
  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
32398
  properties: {
32399
+ can_activate_weekly_program: {
32400
+ 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.',
32401
+ type: 'boolean',
32402
+ },
32281
32403
  can_configure_auto_lock: {
32282
32404
  description: 'Indicates whether the lock supports configuring automatic locking.',
32283
32405
  type: 'boolean',
@@ -46136,6 +46258,7 @@ const openapi = {
46136
46258
  'can_hvac_cool',
46137
46259
  'can_hvac_heat_cool',
46138
46260
  'can_turn_off_hvac',
46261
+ 'can_activate_weekly_program',
46139
46262
  'can_simulate_removal',
46140
46263
  'can_simulate_connection',
46141
46264
  'can_simulate_disconnection',
@@ -46169,6 +46292,7 @@ const openapi = {
46169
46292
  'can_hvac_cool',
46170
46293
  'can_hvac_heat_cool',
46171
46294
  'can_turn_off_hvac',
46295
+ 'can_activate_weekly_program',
46172
46296
  'can_simulate_removal',
46173
46297
  'can_simulate_connection',
46174
46298
  'can_simulate_disconnection',
@@ -48378,6 +48502,7 @@ const openapi = {
48378
48502
  'can_hvac_cool',
48379
48503
  'can_hvac_heat_cool',
48380
48504
  'can_turn_off_hvac',
48505
+ 'can_activate_weekly_program',
48381
48506
  'can_simulate_removal',
48382
48507
  'can_simulate_connection',
48383
48508
  'can_simulate_disconnection',
@@ -48411,6 +48536,7 @@ const openapi = {
48411
48536
  'can_hvac_cool',
48412
48537
  'can_hvac_heat_cool',
48413
48538
  'can_turn_off_hvac',
48539
+ 'can_activate_weekly_program',
48414
48540
  'can_simulate_removal',
48415
48541
  'can_simulate_connection',
48416
48542
  'can_simulate_disconnection',
@@ -61407,6 +61533,69 @@ const openapi = {
61407
61533
  'x-title': 'Activate a Climate Preset',
61408
61534
  },
61409
61535
  },
61536
+ '/thermostats/activate_weekly_program': {
61537
+ post: {
61538
+ 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.",
61539
+ operationId: 'thermostatsActivateWeeklyProgramPost',
61540
+ requestBody: {
61541
+ content: {
61542
+ 'application/json': {
61543
+ schema: {
61544
+ properties: {
61545
+ device_id: {
61546
+ description: 'ID of the thermostat device that you want to return to its weekly program.',
61547
+ format: 'uuid',
61548
+ type: 'string',
61549
+ },
61550
+ sync: {
61551
+ default: false,
61552
+ type: 'boolean',
61553
+ 'x-undocumented': 'Only used internally.',
61554
+ },
61555
+ },
61556
+ required: ['device_id'],
61557
+ type: 'object',
61558
+ },
61559
+ },
61560
+ },
61561
+ },
61562
+ responses: {
61563
+ '200': {
61564
+ content: {
61565
+ 'application/json': {
61566
+ schema: {
61567
+ properties: {
61568
+ action_attempt: {
61569
+ $ref: '#/components/schemas/action_attempt',
61570
+ },
61571
+ ok: { type: 'boolean' },
61572
+ },
61573
+ required: ['action_attempt', 'ok'],
61574
+ type: 'object',
61575
+ },
61576
+ },
61577
+ },
61578
+ description: 'OK',
61579
+ },
61580
+ '400': { description: 'Bad Request' },
61581
+ '401': { description: 'Unauthorized' },
61582
+ },
61583
+ security: [
61584
+ { client_session: [] },
61585
+ { pat_with_workspace: [] },
61586
+ { console_session_with_workspace: [] },
61587
+ { api_key: [] },
61588
+ ],
61589
+ summary: '/thermostats/activate_weekly_program',
61590
+ tags: ['/thermostats'],
61591
+ 'x-action-attempt-type': 'ACTIVATE_WEEKLY_PROGRAM',
61592
+ 'x-fern-sdk-group-name': ['thermostats'],
61593
+ 'x-fern-sdk-method-name': 'activate_weekly_program',
61594
+ 'x-fern-sdk-return-value': 'action_attempt',
61595
+ 'x-response-key': 'action_attempt',
61596
+ 'x-title': 'Activate the Weekly Program',
61597
+ },
61598
+ },
61410
61599
  '/thermostats/cool': {
61411
61600
  post: {
61412
61601
  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).',