@seamapi/types 1.304.0 → 1.306.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.
@@ -10,6 +10,7 @@ import { set_cool_action_attempt } from './set-cool.js'
10
10
  import { set_fan_mode_action_attempt } from './set-fan-mode.js'
11
11
  import { set_heat_action_attempt } from './set-heat.js'
12
12
  import { set_heat_cool_action_attempt } from './set-heat-cool.js'
13
+ import { set_hvac_mode_action_attempt } from './set-hvac-mode.js'
13
14
  import { set_thermostat_off_action_attempt } from './set-thermostat-off.js'
14
15
  import { unlock_door_action_attempt } from './unlock-door.js'
15
16
 
@@ -24,6 +25,7 @@ export const action_attempt = z.union([
24
25
  ...set_heat_cool_action_attempt.options,
25
26
  ...set_fan_mode_action_attempt.options,
26
27
  ...set_thermostat_off_action_attempt.options,
28
+ ...set_hvac_mode_action_attempt.options,
27
29
  ...activate_climate_preset_action_attempt.options,
28
30
  ...deprecated_action_attempts,
29
31
  ])
@@ -0,0 +1,33 @@
1
+ import { z } from 'zod'
2
+
3
+ import {
4
+ common_failed_action_attempt,
5
+ common_pending_action_attempt,
6
+ common_succeeded_action_attempt,
7
+ } from './common.js'
8
+
9
+ const action_type = z.literal('SET_HVAC_MODE')
10
+
11
+ const error = z.object({
12
+ type: z.string(),
13
+ message: z.string(),
14
+ })
15
+
16
+ const result = z.object({})
17
+
18
+ export const set_hvac_mode_action_attempt = z.discriminatedUnion('status', [
19
+ common_pending_action_attempt
20
+ .extend({
21
+ action_type,
22
+ })
23
+ .describe('Setting HVAC mode.'),
24
+ common_succeeded_action_attempt
25
+ .extend({
26
+ action_type,
27
+ result,
28
+ })
29
+ .describe('Setting HVAC mode succeeded.'),
30
+ common_failed_action_attempt
31
+ .extend({ action_type, error })
32
+ .describe('Setting HVAC mode failed.'),
33
+ ])
@@ -46,6 +46,7 @@ export const DEVICE_PROVIDERS = {
46
46
  AKILES: 'akiles',
47
47
  VOSTIO: 'assa_abloy_vostio',
48
48
  ASSA_ABLOY_VOSTIO_CREDENTIAL_SERVICE: 'assa_abloy_vostio_credential_service',
49
+ TADO: 'tado',
49
50
  } as const
50
51
 
51
52
  export type DeviceProviderName =
@@ -3488,6 +3488,82 @@ export default {
3488
3488
  ],
3489
3489
  type: 'object',
3490
3490
  },
3491
+ {
3492
+ description: 'Setting HVAC mode.',
3493
+ properties: {
3494
+ action_attempt_id: {
3495
+ description: 'The ID of the action attempt.',
3496
+ format: 'uuid',
3497
+ type: 'string',
3498
+ 'x-title': 'Action Attempt ID',
3499
+ },
3500
+ action_type: { enum: ['SET_HVAC_MODE'], type: 'string' },
3501
+ error: { nullable: true },
3502
+ result: { nullable: true },
3503
+ status: { enum: ['pending'], type: 'string' },
3504
+ },
3505
+ required: [
3506
+ 'action_attempt_id',
3507
+ 'status',
3508
+ 'result',
3509
+ 'error',
3510
+ 'action_type',
3511
+ ],
3512
+ type: 'object',
3513
+ },
3514
+ {
3515
+ description: 'Setting HVAC mode succeeded.',
3516
+ properties: {
3517
+ action_attempt_id: {
3518
+ description: 'The ID of the action attempt.',
3519
+ format: 'uuid',
3520
+ type: 'string',
3521
+ 'x-title': 'Action Attempt ID',
3522
+ },
3523
+ action_type: { enum: ['SET_HVAC_MODE'], type: 'string' },
3524
+ error: { nullable: true },
3525
+ result: { properties: {}, type: 'object' },
3526
+ status: { enum: ['success'], type: 'string' },
3527
+ },
3528
+ required: [
3529
+ 'action_attempt_id',
3530
+ 'status',
3531
+ 'error',
3532
+ 'action_type',
3533
+ 'result',
3534
+ ],
3535
+ type: 'object',
3536
+ },
3537
+ {
3538
+ description: 'Setting HVAC mode failed.',
3539
+ properties: {
3540
+ action_attempt_id: {
3541
+ description: 'The ID of the action attempt.',
3542
+ format: 'uuid',
3543
+ type: 'string',
3544
+ 'x-title': 'Action Attempt ID',
3545
+ },
3546
+ action_type: { enum: ['SET_HVAC_MODE'], type: 'string' },
3547
+ error: {
3548
+ properties: {
3549
+ message: { type: 'string' },
3550
+ type: { type: 'string' },
3551
+ },
3552
+ required: ['type', 'message'],
3553
+ type: 'object',
3554
+ },
3555
+ result: { nullable: true },
3556
+ status: { enum: ['error'], type: 'string' },
3557
+ },
3558
+ required: [
3559
+ 'action_attempt_id',
3560
+ 'status',
3561
+ 'result',
3562
+ 'action_type',
3563
+ 'error',
3564
+ ],
3565
+ type: 'object',
3566
+ },
3491
3567
  {
3492
3568
  description: 'Activating climate preset.',
3493
3569
  properties: {
@@ -5759,6 +5835,7 @@ export default {
5759
5835
  'akiles',
5760
5836
  'assa_abloy_vostio',
5761
5837
  'assa_abloy_vostio_credential_service',
5838
+ 'tado',
5762
5839
  ],
5763
5840
  type: 'string',
5764
5841
  },
@@ -13398,6 +13475,7 @@ export default {
13398
13475
  'akiles',
13399
13476
  'assa_abloy_vostio',
13400
13477
  'assa_abloy_vostio_credential_service',
13478
+ 'tado',
13401
13479
  'yale_access',
13402
13480
  'hid_cm',
13403
13481
  'google_nest',
@@ -20164,7 +20242,11 @@ export default {
20164
20242
  400: { description: 'Bad Request' },
20165
20243
  401: { description: 'Unauthorized' },
20166
20244
  },
20167
- security: [{ pat_without_workspace: [] }],
20245
+ security: [
20246
+ { pat_without_workspace: [] },
20247
+ { console_session: [] },
20248
+ { user_session_without_workspace: [] },
20249
+ ],
20168
20250
  summary: '/workspaces/create',
20169
20251
  tags: ['/workspaces'],
20170
20252
  'x-fern-sdk-group-name': ['workspaces'],
@@ -20273,6 +20355,7 @@ export default {
20273
20355
  { user_session_without_workspace: [] },
20274
20356
  { api_key: [] },
20275
20357
  { client_session: [] },
20358
+ { console_session: [] },
20276
20359
  ],
20277
20360
  summary: '/workspaces/list',
20278
20361
  tags: ['/workspaces'],
@@ -20310,6 +20393,7 @@ export default {
20310
20393
  { user_session_without_workspace: [] },
20311
20394
  { api_key: [] },
20312
20395
  { client_session: [] },
20396
+ { console_session: [] },
20313
20397
  ],
20314
20398
  summary: '/workspaces/list',
20315
20399
  tags: ['/workspaces'],