@seamapi/types 1.288.2 → 1.289.1

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 (24) hide show
  1. package/dist/connect.cjs +119 -53
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +219 -165
  4. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +18 -18
  5. package/lib/seam/connect/models/action-attempts/action-attempt.js +4 -4
  6. package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -1
  7. package/lib/seam/connect/models/action-attempts/{encode-card.d.ts → encode-credential.d.ts} +11 -11
  8. package/lib/seam/connect/models/action-attempts/{encode-card.js → encode-credential.js} +6 -6
  9. package/lib/seam/connect/models/action-attempts/encode-credential.js.map +1 -0
  10. package/lib/seam/connect/models/action-attempts/{scan-card.d.ts → scan-credential.d.ts} +11 -11
  11. package/lib/seam/connect/models/action-attempts/{scan-card.js → scan-credential.js} +7 -7
  12. package/lib/seam/connect/models/action-attempts/scan-credential.js.map +1 -0
  13. package/lib/seam/connect/openapi.d.ts +36 -2
  14. package/lib/seam/connect/openapi.js +99 -33
  15. package/lib/seam/connect/openapi.js.map +1 -1
  16. package/lib/seam/connect/route-types.d.ts +165 -145
  17. package/package.json +1 -1
  18. package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +4 -4
  19. package/src/lib/seam/connect/models/action-attempts/{encode-card.ts → encode-credential.ts} +8 -6
  20. package/src/lib/seam/connect/models/action-attempts/{scan-card.ts → scan-credential.ts} +9 -7
  21. package/src/lib/seam/connect/openapi.ts +119 -33
  22. package/src/lib/seam/connect/route-types.ts +165 -145
  23. package/lib/seam/connect/models/action-attempts/encode-card.js.map +0 -1
  24. package/lib/seam/connect/models/action-attempts/scan-card.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.288.2",
3
+ "version": "1.289.1",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -2,10 +2,10 @@ import { z } from 'zod'
2
2
 
3
3
  import { activate_climate_preset_action_attempt } from './activate-climate-preset.js'
4
4
  import { deprecated_action_attempts } from './deprecated.js'
5
- import { encode_card_action_attempt } from './encode-card.js'
5
+ import { encode_credential_action_attempt } from './encode-credential.js'
6
6
  import { lock_door_action_attempt } from './lock-door.js'
7
7
  import { reset_sandbox_workspace_action_attempt } from './reset-sandbox-workspace.js'
8
- import { scan_card_action_attempt } from './scan-card.js'
8
+ import { scan_credential_action_attempt } from './scan-credential.js'
9
9
  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'
@@ -16,8 +16,8 @@ import { unlock_door_action_attempt } from './unlock-door.js'
16
16
  export const action_attempt = z.union([
17
17
  ...lock_door_action_attempt.options,
18
18
  ...unlock_door_action_attempt.options,
19
- ...scan_card_action_attempt.options,
20
- ...encode_card_action_attempt.options,
19
+ ...scan_credential_action_attempt.options,
20
+ ...encode_credential_action_attempt.options,
21
21
  ...reset_sandbox_workspace_action_attempt.options,
22
22
  ...set_cool_action_attempt.options,
23
23
  ...set_heat_action_attempt.options,
@@ -11,7 +11,7 @@ import {
11
11
  common_succeeded_action_attempt,
12
12
  } from './common.js'
13
13
 
14
- const action_type = z.literal('ENCODE_CARD')
14
+ const action_type = z.literal('ENCODE_CREDENTIAL')
15
15
 
16
16
  const no_card_on_encoder_error = z.object({
17
17
  type: z.literal('no_card_on_encoder'),
@@ -31,21 +31,23 @@ const error = z.union([
31
31
 
32
32
  const result = acs_credential.or(unmanaged_acs_credential)
33
33
 
34
- export const encode_card_action_attempt = z.discriminatedUnion('status', [
34
+ export const encode_credential_action_attempt = z.discriminatedUnion('status', [
35
35
  common_pending_action_attempt
36
36
  .extend({
37
37
  action_type,
38
38
  })
39
- .describe('Encoding card data from physical encoder.'),
39
+ .describe('Encoding credential data from physical encoder.'),
40
40
  common_succeeded_action_attempt
41
41
  .extend({
42
42
  action_type,
43
43
  result,
44
44
  })
45
- .describe('Encoding card data from physical encoder succeeded.'),
45
+ .describe('Encoding credential data from physical encoder succeeded.'),
46
46
  common_failed_action_attempt
47
47
  .extend({ action_type, error })
48
- .describe('Encoding card data from physical encoder failed.'),
48
+ .describe('Encoding credential data from physical encoder failed.'),
49
49
  ])
50
50
 
51
- export type EncodeCardActionAttempt = z.infer<typeof encode_card_action_attempt>
51
+ export type EncodeCredentialActionAttempt = z.infer<
52
+ typeof encode_credential_action_attempt
53
+ >
@@ -12,7 +12,7 @@ import {
12
12
  common_succeeded_action_attempt,
13
13
  } from './common.js'
14
14
 
15
- const action_type = z.literal('SCAN_CARD')
15
+ const action_type = z.literal('SCAN_CREDENTIAL')
16
16
 
17
17
  const no_card_on_encoder_error = z.object({
18
18
  type: z.literal('no_card_on_encoder'),
@@ -33,7 +33,7 @@ const acs_credential_on_seam = acs_credential.or(unmanaged_acs_credential)
33
33
 
34
34
  const result = z.object({
35
35
  acs_credential_on_encoder: acs_credential_on_encoder.describe(
36
- 'Snapshot of the card data read from the physical encoder.',
36
+ 'Snapshot of credential data read from physical encoder.',
37
37
  ),
38
38
  acs_credential_on_seam: acs_credential_on_seam
39
39
  .nullable()
@@ -41,21 +41,23 @@ const result = z.object({
41
41
  warnings: z.array(warning),
42
42
  })
43
43
 
44
- export const scan_card_action_attempt = z.discriminatedUnion('status', [
44
+ export const scan_credential_action_attempt = z.discriminatedUnion('status', [
45
45
  common_pending_action_attempt
46
46
  .extend({
47
47
  action_type,
48
48
  })
49
- .describe('Reading card data from physical encoder.'),
49
+ .describe('Reading credential data from physical encoder.'),
50
50
  common_succeeded_action_attempt
51
51
  .extend({
52
52
  action_type,
53
53
  result,
54
54
  })
55
- .describe('Reading card data from physical encoder succeeded.'),
55
+ .describe('Reading credential data from physical encoder succeeded.'),
56
56
  common_failed_action_attempt
57
57
  .extend({ action_type, error })
58
- .describe('Reading card data from physical encoder failed.'),
58
+ .describe('Reading credential data from physical encoder failed.'),
59
59
  ])
60
60
 
61
- export type ScanCardActionAttempt = z.infer<typeof scan_card_action_attempt>
61
+ export type ScanCredentialActionAttempt = z.infer<
62
+ typeof scan_credential_action_attempt
63
+ >
@@ -1355,7 +1355,7 @@ export default {
1355
1355
  type: 'object',
1356
1356
  },
1357
1357
  {
1358
- description: 'Reading card data from physical encoder.',
1358
+ description: 'Reading credential data from physical encoder.',
1359
1359
  properties: {
1360
1360
  action_attempt_id: {
1361
1361
  description: 'The ID of the action attempt.',
@@ -1363,7 +1363,7 @@ export default {
1363
1363
  type: 'string',
1364
1364
  'x-title': 'Action Attempt ID',
1365
1365
  },
1366
- action_type: { enum: ['SCAN_CARD'], type: 'string' },
1366
+ action_type: { enum: ['SCAN_CREDENTIAL'], type: 'string' },
1367
1367
  error: { nullable: true },
1368
1368
  result: { nullable: true },
1369
1369
  status: { enum: ['pending'], type: 'string' },
@@ -1378,7 +1378,8 @@ export default {
1378
1378
  type: 'object',
1379
1379
  },
1380
1380
  {
1381
- description: 'Reading card data from physical encoder succeeded.',
1381
+ description:
1382
+ 'Reading credential data from physical encoder succeeded.',
1382
1383
  properties: {
1383
1384
  action_attempt_id: {
1384
1385
  description: 'The ID of the action attempt.',
@@ -1386,13 +1387,13 @@ export default {
1386
1387
  type: 'string',
1387
1388
  'x-title': 'Action Attempt ID',
1388
1389
  },
1389
- action_type: { enum: ['SCAN_CARD'], type: 'string' },
1390
+ action_type: { enum: ['SCAN_CREDENTIAL'], type: 'string' },
1390
1391
  error: { nullable: true },
1391
1392
  result: {
1392
1393
  properties: {
1393
1394
  acs_credential_on_encoder: {
1394
1395
  description:
1395
- 'Snapshot of the card data read from the physical encoder.',
1396
+ 'Snapshot of credential data read from physical encoder.',
1396
1397
  properties: {
1397
1398
  card_number: {
1398
1399
  description:
@@ -1864,7 +1865,8 @@ export default {
1864
1865
  type: 'object',
1865
1866
  },
1866
1867
  {
1867
- description: 'Reading card data from physical encoder failed.',
1868
+ description:
1869
+ 'Reading credential data from physical encoder failed.',
1868
1870
  properties: {
1869
1871
  action_attempt_id: {
1870
1872
  description: 'The ID of the action attempt.',
@@ -1872,7 +1874,7 @@ export default {
1872
1874
  type: 'string',
1873
1875
  'x-title': 'Action Attempt ID',
1874
1876
  },
1875
- action_type: { enum: ['SCAN_CARD'], type: 'string' },
1877
+ action_type: { enum: ['SCAN_CREDENTIAL'], type: 'string' },
1876
1878
  error: {
1877
1879
  oneOf: [
1878
1880
  {
@@ -1917,7 +1919,7 @@ export default {
1917
1919
  type: 'object',
1918
1920
  },
1919
1921
  {
1920
- description: 'Encoding card data from physical encoder.',
1922
+ description: 'Encoding credential data from physical encoder.',
1921
1923
  properties: {
1922
1924
  action_attempt_id: {
1923
1925
  description: 'The ID of the action attempt.',
@@ -1925,7 +1927,7 @@ export default {
1925
1927
  type: 'string',
1926
1928
  'x-title': 'Action Attempt ID',
1927
1929
  },
1928
- action_type: { enum: ['ENCODE_CARD'], type: 'string' },
1930
+ action_type: { enum: ['ENCODE_CREDENTIAL'], type: 'string' },
1929
1931
  error: { nullable: true },
1930
1932
  result: { nullable: true },
1931
1933
  status: { enum: ['pending'], type: 'string' },
@@ -1940,7 +1942,8 @@ export default {
1940
1942
  type: 'object',
1941
1943
  },
1942
1944
  {
1943
- description: 'Encoding card data from physical encoder succeeded.',
1945
+ description:
1946
+ 'Encoding credential data from physical encoder succeeded.',
1944
1947
  properties: {
1945
1948
  action_attempt_id: {
1946
1949
  description: 'The ID of the action attempt.',
@@ -1948,7 +1951,7 @@ export default {
1948
1951
  type: 'string',
1949
1952
  'x-title': 'Action Attempt ID',
1950
1953
  },
1951
- action_type: { enum: ['ENCODE_CARD'], type: 'string' },
1954
+ action_type: { enum: ['ENCODE_CREDENTIAL'], type: 'string' },
1952
1955
  error: { nullable: true },
1953
1956
  result: {
1954
1957
  description:
@@ -2316,7 +2319,8 @@ export default {
2316
2319
  type: 'object',
2317
2320
  },
2318
2321
  {
2319
- description: 'Encoding card data from physical encoder failed.',
2322
+ description:
2323
+ 'Encoding credential data from physical encoder failed.',
2320
2324
  properties: {
2321
2325
  action_attempt_id: {
2322
2326
  description: 'The ID of the action attempt.',
@@ -2324,7 +2328,7 @@ export default {
2324
2328
  type: 'string',
2325
2329
  'x-title': 'Action Attempt ID',
2326
2330
  },
2327
- action_type: { enum: ['ENCODE_CARD'], type: 'string' },
2331
+ action_type: { enum: ['ENCODE_CREDENTIAL'], type: 'string' },
2328
2332
  error: {
2329
2333
  oneOf: [
2330
2334
  {
@@ -9201,16 +9205,25 @@ export default {
9201
9205
  'x-title': 'Update a Credential',
9202
9206
  },
9203
9207
  },
9204
- '/acs/encoders/encode_card': {
9208
+ '/acs/encoders/encode_credential': {
9205
9209
  post: {
9206
- operationId: 'acsEncodersEncodeCardPost',
9210
+ operationId: 'acsEncodersEncodeCredentialPost',
9207
9211
  requestBody: {
9208
9212
  content: {
9209
9213
  'application/json': {
9210
9214
  schema: {
9211
9215
  properties: {
9212
- acs_credential_id: { format: 'uuid', type: 'string' },
9213
- device_id: { format: 'uuid', type: 'string' },
9216
+ acs_credential_id: {
9217
+ description:
9218
+ 'ID of the acs_credential to encode on a physical card.',
9219
+ format: 'uuid',
9220
+ type: 'string',
9221
+ },
9222
+ device_id: {
9223
+ description: 'ID of the encoder to use for the encoding.',
9224
+ format: 'uuid',
9225
+ type: 'string',
9226
+ },
9214
9227
  },
9215
9228
  required: ['device_id', 'acs_credential_id'],
9216
9229
  type: 'object',
@@ -9244,10 +9257,10 @@ export default {
9244
9257
  { console_session: [] },
9245
9258
  { api_key: [] },
9246
9259
  ],
9247
- summary: '/acs/encoders/encode_card',
9260
+ summary: '/acs/encoders/encode_credential',
9248
9261
  tags: ['/acs'],
9249
9262
  'x-fern-sdk-group-name': ['acs', 'encoders'],
9250
- 'x-fern-sdk-method-name': 'encode_card',
9263
+ 'x-fern-sdk-method-name': 'encode_credential',
9251
9264
  'x-fern-sdk-return-value': 'action_attempt',
9252
9265
  'x-response-key': 'action_attempt',
9253
9266
  'x-undocumented': 'Encoding a card is currently unimplemented.',
@@ -9339,16 +9352,24 @@ export default {
9339
9352
  'x-undocumented': 'Encoders are in alpha.',
9340
9353
  },
9341
9354
  },
9342
- '/acs/encoders/scan_card': {
9355
+ '/acs/encoders/scan_credential': {
9343
9356
  post: {
9344
- operationId: 'acsEncodersScanCardPost',
9357
+ operationId: 'acsEncodersScanCredentialPost',
9345
9358
  requestBody: {
9346
9359
  content: {
9347
9360
  'application/json': {
9348
9361
  schema: {
9349
9362
  properties: {
9350
- acs_system_id: { format: 'uuid', type: 'string' },
9351
- device_id: { format: 'uuid', type: 'string' },
9363
+ acs_system_id: {
9364
+ description: 'ID of the acs_system the encoder belongs to.',
9365
+ format: 'uuid',
9366
+ type: 'string',
9367
+ },
9368
+ device_id: {
9369
+ description: 'ID of the encoder to use for the scan.',
9370
+ format: 'uuid',
9371
+ type: 'string',
9372
+ },
9352
9373
  },
9353
9374
  required: ['acs_system_id', 'device_id'],
9354
9375
  type: 'object',
@@ -9382,10 +9403,10 @@ export default {
9382
9403
  { console_session: [] },
9383
9404
  { api_key: [] },
9384
9405
  ],
9385
- summary: '/acs/encoders/scan_card',
9406
+ summary: '/acs/encoders/scan_credential',
9386
9407
  tags: ['/acs'],
9387
9408
  'x-fern-sdk-group-name': ['acs', 'encoders'],
9388
- 'x-fern-sdk-method-name': 'scan_card',
9409
+ 'x-fern-sdk-method-name': 'scan_credential',
9389
9410
  'x-fern-sdk-return-value': 'action_attempt',
9390
9411
  'x-response-key': 'action_attempt',
9391
9412
  'x-undocumented': 'Reading a card is currently unimplemented.',
@@ -15331,6 +15352,8 @@ export default {
15331
15352
  },
15332
15353
  '/thermostats/cool': {
15333
15354
  post: {
15355
+ description:
15356
+ 'Sets a thermostat to cooling mode. You must include a cooling set point in Celsius or Fahrenheit. See also [Setting the Current HVAC and Fan Mode Settings](https://docs.seam.co/latest/capability-guides/thermostats/configure-current-climate-settings).',
15334
15357
  operationId: 'thermostatsCoolPost',
15335
15358
  requestBody: {
15336
15359
  content: {
@@ -15338,14 +15361,22 @@ export default {
15338
15361
  schema: {
15339
15362
  properties: {
15340
15363
  cooling_set_point_celsius: {
15364
+ description:
15365
+ 'Temperature to which the HVAC system connected to the thermostat should cool (in °C). You must set one of the `cooling_set_point` parameters.',
15341
15366
  format: 'float',
15342
15367
  type: 'number',
15343
15368
  },
15344
15369
  cooling_set_point_fahrenheit: {
15370
+ description:
15371
+ 'Temperature to which the HVAC system connected to the thermostat should cool (in °F). You must set one of the `cooling_set_point` parameters.',
15345
15372
  format: 'float',
15346
15373
  type: 'number',
15347
15374
  },
15348
- device_id: { format: 'uuid', type: 'string' },
15375
+ device_id: {
15376
+ description: 'ID of the thermostat device.',
15377
+ format: 'uuid',
15378
+ type: 'string',
15379
+ },
15349
15380
  sync: { default: false, type: 'boolean' },
15350
15381
  },
15351
15382
  required: ['device_id'],
@@ -15387,6 +15418,7 @@ export default {
15387
15418
  'x-fern-sdk-method-name': 'cool',
15388
15419
  'x-fern-sdk-return-value': 'action_attempt',
15389
15420
  'x-response-key': 'action_attempt',
15421
+ 'x-title': 'Set to Cool Mode',
15390
15422
  },
15391
15423
  },
15392
15424
  '/thermostats/create_climate_preset': {
@@ -15511,14 +15543,22 @@ export default {
15511
15543
  },
15512
15544
  '/thermostats/get': {
15513
15545
  post: {
15546
+ description: 'Returns a specific thermostat.',
15514
15547
  operationId: 'thermostatsGetPost',
15515
15548
  requestBody: {
15516
15549
  content: {
15517
15550
  'application/json': {
15518
15551
  schema: {
15519
15552
  properties: {
15520
- device_id: { format: 'uuid', type: 'string' },
15521
- name: { type: 'string' },
15553
+ device_id: {
15554
+ description: 'ID of the thermostat device.',
15555
+ format: 'uuid',
15556
+ type: 'string',
15557
+ },
15558
+ name: {
15559
+ description: 'Name of the thermostat.',
15560
+ type: 'string',
15561
+ },
15522
15562
  },
15523
15563
  type: 'object',
15524
15564
  },
@@ -15557,22 +15597,33 @@ export default {
15557
15597
  'x-fern-sdk-method-name': 'get',
15558
15598
  'x-fern-sdk-return-value': 'thermostat',
15559
15599
  'x-response-key': 'thermostat',
15600
+ 'x-title': 'Get a Thermostat',
15560
15601
  },
15561
15602
  },
15562
15603
  '/thermostats/heat': {
15563
15604
  post: {
15605
+ description:
15606
+ 'Sets a thermostat to heating mode. You must include a heating set point in Celsius or Fahrenheit. See also [Setting the Current HVAC and Fan Mode Settings](https://docs.seam.co/latest/capability-guides/thermostats/configure-current-climate-settings).',
15564
15607
  operationId: 'thermostatsHeatPost',
15565
15608
  requestBody: {
15566
15609
  content: {
15567
15610
  'application/json': {
15568
15611
  schema: {
15569
15612
  properties: {
15570
- device_id: { format: 'uuid', type: 'string' },
15613
+ device_id: {
15614
+ description: 'ID of the thermostat device.',
15615
+ format: 'uuid',
15616
+ type: 'string',
15617
+ },
15571
15618
  heating_set_point_celsius: {
15619
+ description:
15620
+ 'Temperature to which the HVAC system connected to the thermostat should heat (in °C). You must set one of the `heating_set_point` parameters.',
15572
15621
  format: 'float',
15573
15622
  type: 'number',
15574
15623
  },
15575
15624
  heating_set_point_fahrenheit: {
15625
+ description:
15626
+ 'Temperature to which the HVAC system connected to the thermostat should heat (in °F). You must set one of the `heating_set_point` parameters.',
15576
15627
  format: 'float',
15577
15628
  type: 'number',
15578
15629
  },
@@ -15617,10 +15668,13 @@ export default {
15617
15668
  'x-fern-sdk-method-name': 'heat',
15618
15669
  'x-fern-sdk-return-value': 'action_attempt',
15619
15670
  'x-response-key': 'action_attempt',
15671
+ 'x-title': 'Set to Heat Mode',
15620
15672
  },
15621
15673
  },
15622
15674
  '/thermostats/heat_cool': {
15623
15675
  post: {
15676
+ description:
15677
+ 'Set a thermostat to heat-cool mode, also known as "auto" mode. To do so, you must include both cooling and heating set points in the payload, either in Celsius or Fahrenheit. For information about verifying the heating and cooling availability of the thermostat and validating the correct set points, see [HVAC Mode Constraints](https://docs.seam.co/latest/capability-guides/thermostats/hvac-mode#hvac-mode-constraints) and [Set Point Constraints](https://docs.seam.co/latest/capability-guides/thermostats/set-points#set-point-constraints).',
15624
15678
  operationId: 'thermostatsHeatCoolPost',
15625
15679
  requestBody: {
15626
15680
  content: {
@@ -15628,19 +15682,31 @@ export default {
15628
15682
  schema: {
15629
15683
  properties: {
15630
15684
  cooling_set_point_celsius: {
15685
+ description:
15686
+ 'Temperature to which the HVAC system connected to the thermostat should cool (in °C). You must set one of the `cooling_set_point` parameters.',
15631
15687
  format: 'float',
15632
15688
  type: 'number',
15633
15689
  },
15634
15690
  cooling_set_point_fahrenheit: {
15691
+ description:
15692
+ 'Temperature the thermostat should cool to (in °F). You must set one of the cooling_set_point parameters.',
15635
15693
  format: 'float',
15636
15694
  type: 'number',
15637
15695
  },
15638
- device_id: { format: 'uuid', type: 'string' },
15696
+ device_id: {
15697
+ description: 'ID of the thermostat device.',
15698
+ format: 'uuid',
15699
+ type: 'string',
15700
+ },
15639
15701
  heating_set_point_celsius: {
15702
+ description:
15703
+ 'Temperature to which the HVAC system connected to the thermostat should heat (in °C). You must set one of the `heating_set_point` parameters.',
15640
15704
  format: 'float',
15641
15705
  type: 'number',
15642
15706
  },
15643
15707
  heating_set_point_fahrenheit: {
15708
+ description:
15709
+ 'Temperature the thermostat should heat to (in °F). You must set one of the heating_set_point parameters.',
15644
15710
  format: 'float',
15645
15711
  type: 'number',
15646
15712
  },
@@ -15685,10 +15751,13 @@ export default {
15685
15751
  'x-fern-sdk-method-name': 'heat_cool',
15686
15752
  'x-fern-sdk-return-value': 'action_attempt',
15687
15753
  'x-response-key': 'action_attempt',
15754
+ 'x-title': 'Set to Heat-Cool (Auto) Mode',
15688
15755
  },
15689
15756
  },
15690
15757
  '/thermostats/list': {
15691
15758
  post: {
15759
+ description:
15760
+ 'Returns a list of thermostats connected to your workspace. If no thermostats are connected, the list will be empty.',
15692
15761
  operationId: 'thermostatsListPost',
15693
15762
  requestBody: {
15694
15763
  content: {
@@ -15959,17 +16028,24 @@ export default {
15959
16028
  'x-fern-sdk-method-name': 'list',
15960
16029
  'x-fern-sdk-return-value': 'devices',
15961
16030
  'x-response-key': 'devices',
16031
+ 'x-title': 'List Thermostats',
15962
16032
  },
15963
16033
  },
15964
16034
  '/thermostats/off': {
15965
16035
  post: {
16036
+ description:
16037
+ 'Sets a thermostat to "off" mode. See also [Setting the Current HVAC and Fan Mode Settings](https://docs.seam.co/latest/capability-guides/thermostats/configure-current-climate-settings).',
15966
16038
  operationId: 'thermostatsOffPost',
15967
16039
  requestBody: {
15968
16040
  content: {
15969
16041
  'application/json': {
15970
16042
  schema: {
15971
16043
  properties: {
15972
- device_id: { format: 'uuid', type: 'string' },
16044
+ device_id: {
16045
+ description: 'ID of the thermostat device.',
16046
+ format: 'uuid',
16047
+ type: 'string',
16048
+ },
15973
16049
  sync: { default: false, type: 'boolean' },
15974
16050
  },
15975
16051
  required: ['device_id'],
@@ -16011,6 +16087,7 @@ export default {
16011
16087
  'x-fern-sdk-method-name': 'off',
16012
16088
  'x-fern-sdk-return-value': 'action_attempt',
16013
16089
  'x-response-key': 'action_attempt',
16090
+ 'x-title': 'Set to Off Mode',
16014
16091
  },
16015
16092
  },
16016
16093
  '/thermostats/schedules/create': {
@@ -16373,20 +16450,28 @@ export default {
16373
16450
  },
16374
16451
  '/thermostats/set_fan_mode': {
16375
16452
  post: {
16453
+ description:
16454
+ 'Sets the fan mode setting for a thermostat. See also [Setting the Current HVAC and Fan Mode Settings](https://docs.seam.co/latest/capability-guides/thermostats/configure-current-climate-settings) and [Fan Mode Settings](https://docs.seam.co/latest/capability-guides/thermostats/configure-current-climate-settings#fan-mode-settings).',
16376
16455
  operationId: 'thermostatsSetFanModePost',
16377
16456
  requestBody: {
16378
16457
  content: {
16379
16458
  'application/json': {
16380
16459
  schema: {
16381
16460
  properties: {
16382
- device_id: { format: 'uuid', type: 'string' },
16461
+ device_id: {
16462
+ description: 'ID of the thermostat device.',
16463
+ format: 'uuid',
16464
+ type: 'string',
16465
+ },
16383
16466
  fan_mode: {
16384
16467
  deprecated: true,
16385
16468
  enum: ['auto', 'on', 'circulate'],
16386
16469
  type: 'string',
16387
- 'x-deprecated': 'use fan_mode_setting instead.',
16470
+ 'x-deprecated': 'Use `fan_mode_setting` instead.',
16388
16471
  },
16389
16472
  fan_mode_setting: {
16473
+ description:
16474
+ 'Fan mode setting of the thermostat. See also [Fan Mode Settings](https://docs.seam.co/latest/capability-guides/thermostats/configure-current-climate-settings#fan-mode-settings).',
16390
16475
  enum: ['auto', 'on', 'circulate'],
16391
16476
  type: 'string',
16392
16477
  },
@@ -16431,6 +16516,7 @@ export default {
16431
16516
  'x-fern-sdk-method-name': 'set_fan_mode',
16432
16517
  'x-fern-sdk-return-value': 'action_attempt',
16433
16518
  'x-response-key': 'action_attempt',
16519
+ 'x-title': 'Set Fan Mode Setting',
16434
16520
  },
16435
16521
  },
16436
16522
  '/thermostats/set_temperature_threshold': {