@seamapi/types 1.128.0 → 1.130.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.
@@ -2239,6 +2239,12 @@ export interface Routes {
2239
2239
  online: boolean
2240
2240
  /** Name of the device. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
2241
2241
  name: string
2242
+ /** Optional nickname to describe the device, settable through Seam. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
2243
+ nickname?: string | undefined
2244
+ appearance: {
2245
+ /** Name of the device as seen from the provider API and application, not settable through Seam. */
2246
+ name: string
2247
+ }
2242
2248
  model: {
2243
2249
  /** Display name of the device model. */
2244
2250
  display_name: string
@@ -3045,6 +3051,12 @@ export interface Routes {
3045
3051
  online: boolean
3046
3052
  /** Name of the device. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
3047
3053
  name: string
3054
+ /** Optional nickname to describe the device, settable through Seam. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
3055
+ nickname?: string | undefined
3056
+ appearance: {
3057
+ /** Name of the device as seen from the provider API and application, not settable through Seam. */
3058
+ name: string
3059
+ }
3048
3060
  model: {
3049
3061
  /** Display name of the device model. */
3050
3062
  display_name: string
@@ -4414,6 +4426,12 @@ export interface Routes {
4414
4426
  online: boolean
4415
4427
  /** Name of the device. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
4416
4428
  name: string
4429
+ /** Optional nickname to describe the device, settable through Seam. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
4430
+ nickname?: string | undefined
4431
+ appearance: {
4432
+ /** Name of the device as seen from the provider API and application, not settable through Seam. */
4433
+ name: string
4434
+ }
4417
4435
  model: {
4418
4436
  /** Display name of the device model. */
4419
4437
  display_name: string
@@ -5092,6 +5110,12 @@ export interface Routes {
5092
5110
  online: boolean
5093
5111
  /** Name of the device. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
5094
5112
  name: string
5113
+ /** Optional nickname to describe the device, settable through Seam. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
5114
+ nickname?: string | undefined
5115
+ appearance: {
5116
+ /** Name of the device as seen from the provider API and application, not settable through Seam. */
5117
+ name: string
5118
+ }
5095
5119
  model: {
5096
5120
  /** Display name of the device model. */
5097
5121
  display_name: string
@@ -5898,6 +5922,12 @@ export interface Routes {
5898
5922
  online: boolean
5899
5923
  /** Name of the device. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
5900
5924
  name: string
5925
+ /** Optional nickname to describe the device, settable through Seam. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
5926
+ nickname?: string | undefined
5927
+ appearance: {
5928
+ /** Name of the device as seen from the provider API and application, not settable through Seam. */
5929
+ name: string
5930
+ }
5901
5931
  model: {
5902
5932
  /** Display name of the device model. */
5903
5933
  display_name: string
@@ -6576,6 +6606,12 @@ export interface Routes {
6576
6606
  online: boolean
6577
6607
  /** Name of the device. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
6578
6608
  name: string
6609
+ /** Optional nickname to describe the device, settable through Seam. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
6610
+ nickname?: string | undefined
6611
+ appearance: {
6612
+ /** Name of the device as seen from the provider API and application, not settable through Seam. */
6613
+ name: string
6614
+ }
6579
6615
  model: {
6580
6616
  /** Display name of the device model. */
6581
6617
  display_name: string
@@ -7829,7 +7865,33 @@ export interface Routes {
7829
7865
  }
7830
7866
  commonParams: {}
7831
7867
  formData: {}
7832
- jsonResponse: {}
7868
+ jsonResponse: {
7869
+ action_attempt:
7870
+ | {
7871
+ status: 'success'
7872
+ action_type: string
7873
+ action_attempt_id: string
7874
+ result?: any
7875
+ error: null
7876
+ }
7877
+ | {
7878
+ status: 'pending'
7879
+ action_type: string
7880
+ action_attempt_id: string
7881
+ result: null
7882
+ error: null
7883
+ }
7884
+ | {
7885
+ status: 'error'
7886
+ action_type: string
7887
+ action_attempt_id: string
7888
+ result: null
7889
+ error: {
7890
+ type: string
7891
+ message: string
7892
+ }
7893
+ }
7894
+ }
7833
7895
  }
7834
7896
  '/thermostats/get': {
7835
7897
  route: '/thermostats/get'
@@ -7893,6 +7955,12 @@ export interface Routes {
7893
7955
  online: boolean
7894
7956
  /** Name of the device. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
7895
7957
  name: string
7958
+ /** Optional nickname to describe the device, settable through Seam. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
7959
+ nickname?: string | undefined
7960
+ appearance: {
7961
+ /** Name of the device as seen from the provider API and application, not settable through Seam. */
7962
+ name: string
7963
+ }
7896
7964
  model: {
7897
7965
  /** Display name of the device model. */
7898
7966
  display_name: string
@@ -8534,7 +8602,33 @@ export interface Routes {
8534
8602
  }
8535
8603
  commonParams: {}
8536
8604
  formData: {}
8537
- jsonResponse: {}
8605
+ jsonResponse: {
8606
+ action_attempt:
8607
+ | {
8608
+ status: 'success'
8609
+ action_type: string
8610
+ action_attempt_id: string
8611
+ result?: any
8612
+ error: null
8613
+ }
8614
+ | {
8615
+ status: 'pending'
8616
+ action_type: string
8617
+ action_attempt_id: string
8618
+ result: null
8619
+ error: null
8620
+ }
8621
+ | {
8622
+ status: 'error'
8623
+ action_type: string
8624
+ action_attempt_id: string
8625
+ result: null
8626
+ error: {
8627
+ type: string
8628
+ message: string
8629
+ }
8630
+ }
8631
+ }
8538
8632
  }
8539
8633
  '/thermostats/heat_cool': {
8540
8634
  route: '/thermostats/heat_cool'
@@ -8550,7 +8644,33 @@ export interface Routes {
8550
8644
  }
8551
8645
  commonParams: {}
8552
8646
  formData: {}
8553
- jsonResponse: {}
8647
+ jsonResponse: {
8648
+ action_attempt:
8649
+ | {
8650
+ status: 'success'
8651
+ action_type: string
8652
+ action_attempt_id: string
8653
+ result?: any
8654
+ error: null
8655
+ }
8656
+ | {
8657
+ status: 'pending'
8658
+ action_type: string
8659
+ action_attempt_id: string
8660
+ result: null
8661
+ error: null
8662
+ }
8663
+ | {
8664
+ status: 'error'
8665
+ action_type: string
8666
+ action_attempt_id: string
8667
+ result: null
8668
+ error: {
8669
+ type: string
8670
+ message: string
8671
+ }
8672
+ }
8673
+ }
8554
8674
  }
8555
8675
  '/thermostats/list': {
8556
8676
  route: '/thermostats/list'
@@ -8729,6 +8849,12 @@ export interface Routes {
8729
8849
  online: boolean
8730
8850
  /** Name of the device. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
8731
8851
  name: string
8852
+ /** Optional nickname to describe the device, settable through Seam. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
8853
+ nickname?: string | undefined
8854
+ appearance: {
8855
+ /** Name of the device as seen from the provider API and application, not settable through Seam. */
8856
+ name: string
8857
+ }
8732
8858
  model: {
8733
8859
  /** Display name of the device model. */
8734
8860
  display_name: string
@@ -9368,7 +9494,33 @@ export interface Routes {
9368
9494
  }
9369
9495
  commonParams: {}
9370
9496
  formData: {}
9371
- jsonResponse: {}
9497
+ jsonResponse: {
9498
+ action_attempt:
9499
+ | {
9500
+ status: 'success'
9501
+ action_type: string
9502
+ action_attempt_id: string
9503
+ result?: any
9504
+ error: null
9505
+ }
9506
+ | {
9507
+ status: 'pending'
9508
+ action_type: string
9509
+ action_attempt_id: string
9510
+ result: null
9511
+ error: null
9512
+ }
9513
+ | {
9514
+ status: 'error'
9515
+ action_type: string
9516
+ action_attempt_id: string
9517
+ result: null
9518
+ error: {
9519
+ type: string
9520
+ message: string
9521
+ }
9522
+ }
9523
+ }
9372
9524
  }
9373
9525
  '/thermostats/set_fan_mode': {
9374
9526
  route: '/thermostats/set_fan_mode'
@@ -9382,7 +9534,33 @@ export interface Routes {
9382
9534
  }
9383
9535
  commonParams: {}
9384
9536
  formData: {}
9385
- jsonResponse: {}
9537
+ jsonResponse: {
9538
+ action_attempt:
9539
+ | {
9540
+ status: 'success'
9541
+ action_type: string
9542
+ action_attempt_id: string
9543
+ result?: any
9544
+ error: null
9545
+ }
9546
+ | {
9547
+ status: 'pending'
9548
+ action_type: string
9549
+ action_attempt_id: string
9550
+ result: null
9551
+ error: null
9552
+ }
9553
+ | {
9554
+ status: 'error'
9555
+ action_type: string
9556
+ action_attempt_id: string
9557
+ result: null
9558
+ error: {
9559
+ type: string
9560
+ message: string
9561
+ }
9562
+ }
9563
+ }
9386
9564
  }
9387
9565
  '/thermostats/update': {
9388
9566
  route: '/thermostats/update'
@@ -9647,6 +9825,12 @@ export interface Routes {
9647
9825
  online: boolean
9648
9826
  /** Name of the device. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
9649
9827
  name: string
9828
+ /** Optional nickname to describe the device, settable through Seam. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
9829
+ nickname?: string | undefined
9830
+ appearance: {
9831
+ /** Name of the device as seen from the provider API and application, not settable through Seam. */
9832
+ name: string
9833
+ }
9650
9834
  model: {
9651
9835
  /** Display name of the device model. */
9652
9836
  display_name: string
@@ -21,6 +21,19 @@ export const common_device_properties = z.object({
21
21
  .describe(
22
22
  'Name of the device. Enables administrators and users to identify the device easily, especially when there are numerous devices.',
23
23
  ),
24
+ nickname: z
25
+ .string()
26
+ .optional()
27
+ .describe(
28
+ 'Optional nickname to describe the device, settable through Seam. Enables administrators and users to identify the device easily, especially when there are numerous devices.',
29
+ ),
30
+ appearance: z.object({
31
+ name: z
32
+ .string()
33
+ .describe(
34
+ 'Name of the device as seen from the provider API and application, not settable through Seam.',
35
+ ),
36
+ }),
24
37
  model: z.object({
25
38
  display_name: z.string().describe('Display name of the device model.'),
26
39
  manufacturer_display_name: z