@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.
@@ -1946,6 +1946,12 @@ export interface Routes {
1946
1946
  online: boolean;
1947
1947
  /** Name of the device. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
1948
1948
  name: string;
1949
+ /** Optional nickname to describe the device, settable through Seam. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
1950
+ nickname?: string | undefined;
1951
+ appearance: {
1952
+ /** Name of the device as seen from the provider API and application, not settable through Seam. */
1953
+ name: string;
1954
+ };
1949
1955
  model: {
1950
1956
  /** Display name of the device model. */
1951
1957
  display_name: string;
@@ -2436,6 +2442,12 @@ export interface Routes {
2436
2442
  online: boolean;
2437
2443
  /** Name of the device. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
2438
2444
  name: string;
2445
+ /** Optional nickname to describe the device, settable through Seam. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
2446
+ nickname?: string | undefined;
2447
+ appearance: {
2448
+ /** Name of the device as seen from the provider API and application, not settable through Seam. */
2449
+ name: string;
2450
+ };
2439
2451
  model: {
2440
2452
  /** Display name of the device model. */
2441
2453
  display_name: string;
@@ -3249,6 +3261,12 @@ export interface Routes {
3249
3261
  online: boolean;
3250
3262
  /** Name of the device. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
3251
3263
  name: string;
3264
+ /** Optional nickname to describe the device, settable through Seam. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
3265
+ nickname?: string | undefined;
3266
+ appearance: {
3267
+ /** Name of the device as seen from the provider API and application, not settable through Seam. */
3268
+ name: string;
3269
+ };
3252
3270
  model: {
3253
3271
  /** Display name of the device model. */
3254
3272
  display_name: string;
@@ -3716,6 +3734,12 @@ export interface Routes {
3716
3734
  online: boolean;
3717
3735
  /** Name of the device. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
3718
3736
  name: string;
3737
+ /** Optional nickname to describe the device, settable through Seam. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
3738
+ nickname?: string | undefined;
3739
+ appearance: {
3740
+ /** Name of the device as seen from the provider API and application, not settable through Seam. */
3741
+ name: string;
3742
+ };
3719
3743
  model: {
3720
3744
  /** Display name of the device model. */
3721
3745
  display_name: string;
@@ -4206,6 +4230,12 @@ export interface Routes {
4206
4230
  online: boolean;
4207
4231
  /** Name of the device. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
4208
4232
  name: string;
4233
+ /** Optional nickname to describe the device, settable through Seam. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
4234
+ nickname?: string | undefined;
4235
+ appearance: {
4236
+ /** Name of the device as seen from the provider API and application, not settable through Seam. */
4237
+ name: string;
4238
+ };
4209
4239
  model: {
4210
4240
  /** Display name of the device model. */
4211
4241
  display_name: string;
@@ -4673,6 +4703,12 @@ export interface Routes {
4673
4703
  online: boolean;
4674
4704
  /** Name of the device. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
4675
4705
  name: string;
4706
+ /** Optional nickname to describe the device, settable through Seam. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
4707
+ nickname?: string | undefined;
4708
+ appearance: {
4709
+ /** Name of the device as seen from the provider API and application, not settable through Seam. */
4710
+ name: string;
4711
+ };
4676
4712
  model: {
4677
4713
  /** Display name of the device model. */
4678
4714
  display_name: string;
@@ -5720,7 +5756,30 @@ export interface Routes {
5720
5756
  };
5721
5757
  commonParams: {};
5722
5758
  formData: {};
5723
- jsonResponse: {};
5759
+ jsonResponse: {
5760
+ action_attempt: {
5761
+ status: 'success';
5762
+ action_type: string;
5763
+ action_attempt_id: string;
5764
+ result?: any;
5765
+ error: null;
5766
+ } | {
5767
+ status: 'pending';
5768
+ action_type: string;
5769
+ action_attempt_id: string;
5770
+ result: null;
5771
+ error: null;
5772
+ } | {
5773
+ status: 'error';
5774
+ action_type: string;
5775
+ action_attempt_id: string;
5776
+ result: null;
5777
+ error: {
5778
+ type: string;
5779
+ message: string;
5780
+ };
5781
+ };
5782
+ };
5724
5783
  };
5725
5784
  '/thermostats/get': {
5726
5785
  route: '/thermostats/get';
@@ -5746,6 +5805,12 @@ export interface Routes {
5746
5805
  online: boolean;
5747
5806
  /** Name of the device. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
5748
5807
  name: string;
5808
+ /** Optional nickname to describe the device, settable through Seam. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
5809
+ nickname?: string | undefined;
5810
+ appearance: {
5811
+ /** Name of the device as seen from the provider API and application, not settable through Seam. */
5812
+ name: string;
5813
+ };
5749
5814
  model: {
5750
5815
  /** Display name of the device model. */
5751
5816
  display_name: string;
@@ -6214,7 +6279,30 @@ export interface Routes {
6214
6279
  };
6215
6280
  commonParams: {};
6216
6281
  formData: {};
6217
- jsonResponse: {};
6282
+ jsonResponse: {
6283
+ action_attempt: {
6284
+ status: 'success';
6285
+ action_type: string;
6286
+ action_attempt_id: string;
6287
+ result?: any;
6288
+ error: null;
6289
+ } | {
6290
+ status: 'pending';
6291
+ action_type: string;
6292
+ action_attempt_id: string;
6293
+ result: null;
6294
+ error: null;
6295
+ } | {
6296
+ status: 'error';
6297
+ action_type: string;
6298
+ action_attempt_id: string;
6299
+ result: null;
6300
+ error: {
6301
+ type: string;
6302
+ message: string;
6303
+ };
6304
+ };
6305
+ };
6218
6306
  };
6219
6307
  '/thermostats/heat_cool': {
6220
6308
  route: '/thermostats/heat_cool';
@@ -6230,7 +6318,30 @@ export interface Routes {
6230
6318
  };
6231
6319
  commonParams: {};
6232
6320
  formData: {};
6233
- jsonResponse: {};
6321
+ jsonResponse: {
6322
+ action_attempt: {
6323
+ status: 'success';
6324
+ action_type: string;
6325
+ action_attempt_id: string;
6326
+ result?: any;
6327
+ error: null;
6328
+ } | {
6329
+ status: 'pending';
6330
+ action_type: string;
6331
+ action_attempt_id: string;
6332
+ result: null;
6333
+ error: null;
6334
+ } | {
6335
+ status: 'error';
6336
+ action_type: string;
6337
+ action_attempt_id: string;
6338
+ result: null;
6339
+ error: {
6340
+ type: string;
6341
+ message: string;
6342
+ };
6343
+ };
6344
+ };
6234
6345
  };
6235
6346
  '/thermostats/list': {
6236
6347
  route: '/thermostats/list';
@@ -6266,6 +6377,12 @@ export interface Routes {
6266
6377
  online: boolean;
6267
6378
  /** Name of the device. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
6268
6379
  name: string;
6380
+ /** Optional nickname to describe the device, settable through Seam. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
6381
+ nickname?: string | undefined;
6382
+ appearance: {
6383
+ /** Name of the device as seen from the provider API and application, not settable through Seam. */
6384
+ name: string;
6385
+ };
6269
6386
  model: {
6270
6387
  /** Display name of the device model. */
6271
6388
  display_name: string;
@@ -6732,7 +6849,30 @@ export interface Routes {
6732
6849
  };
6733
6850
  commonParams: {};
6734
6851
  formData: {};
6735
- jsonResponse: {};
6852
+ jsonResponse: {
6853
+ action_attempt: {
6854
+ status: 'success';
6855
+ action_type: string;
6856
+ action_attempt_id: string;
6857
+ result?: any;
6858
+ error: null;
6859
+ } | {
6860
+ status: 'pending';
6861
+ action_type: string;
6862
+ action_attempt_id: string;
6863
+ result: null;
6864
+ error: null;
6865
+ } | {
6866
+ status: 'error';
6867
+ action_type: string;
6868
+ action_attempt_id: string;
6869
+ result: null;
6870
+ error: {
6871
+ type: string;
6872
+ message: string;
6873
+ };
6874
+ };
6875
+ };
6736
6876
  };
6737
6877
  '/thermostats/set_fan_mode': {
6738
6878
  route: '/thermostats/set_fan_mode';
@@ -6746,7 +6886,30 @@ export interface Routes {
6746
6886
  };
6747
6887
  commonParams: {};
6748
6888
  formData: {};
6749
- jsonResponse: {};
6889
+ jsonResponse: {
6890
+ action_attempt: {
6891
+ status: 'success';
6892
+ action_type: string;
6893
+ action_attempt_id: string;
6894
+ result?: any;
6895
+ error: null;
6896
+ } | {
6897
+ status: 'pending';
6898
+ action_type: string;
6899
+ action_attempt_id: string;
6900
+ result: null;
6901
+ error: null;
6902
+ } | {
6903
+ status: 'error';
6904
+ action_type: string;
6905
+ action_attempt_id: string;
6906
+ result: null;
6907
+ error: {
6908
+ type: string;
6909
+ message: string;
6910
+ };
6911
+ };
6912
+ };
6750
6913
  };
6751
6914
  '/thermostats/update': {
6752
6915
  route: '/thermostats/update';
@@ -6971,6 +7134,12 @@ export interface Routes {
6971
7134
  online: boolean;
6972
7135
  /** Name of the device. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
6973
7136
  name: string;
7137
+ /** Optional nickname to describe the device, settable through Seam. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
7138
+ nickname?: string | undefined;
7139
+ appearance: {
7140
+ /** Name of the device as seen from the provider API and application, not settable through Seam. */
7141
+ name: string;
7142
+ };
6974
7143
  model: {
6975
7144
  /** Display name of the device model. */
6976
7145
  display_name: string;
@@ -6,6 +6,14 @@ export type BatteryStatus = z.infer<typeof battery_status>;
6
6
  export declare const common_device_properties: z.ZodObject<{
7
7
  online: z.ZodBoolean;
8
8
  name: z.ZodString;
9
+ nickname: z.ZodOptional<z.ZodString>;
10
+ appearance: z.ZodObject<{
11
+ name: z.ZodString;
12
+ }, "strip", z.ZodTypeAny, {
13
+ name: string;
14
+ }, {
15
+ name: string;
16
+ }>;
9
17
  model: z.ZodObject<{
10
18
  display_name: z.ZodString;
11
19
  manufacturer_display_name: z.ZodString;
@@ -47,6 +55,9 @@ export declare const common_device_properties: z.ZodObject<{
47
55
  supports_offline_access_codes: z.ZodOptional<z.ZodBoolean>;
48
56
  }, "strip", z.ZodTypeAny, {
49
57
  name: string;
58
+ appearance: {
59
+ name: string;
60
+ };
50
61
  online: boolean;
51
62
  model: {
52
63
  display_name: string;
@@ -55,6 +66,7 @@ export declare const common_device_properties: z.ZodObject<{
55
66
  online_access_codes_supported?: boolean | undefined;
56
67
  accessory_keypad_supported?: boolean | undefined;
57
68
  };
69
+ nickname?: string | undefined;
58
70
  has_direct_power?: boolean | undefined;
59
71
  battery_level?: number | undefined;
60
72
  battery?: {
@@ -71,6 +83,9 @@ export declare const common_device_properties: z.ZodObject<{
71
83
  supports_offline_access_codes?: boolean | undefined;
72
84
  }, {
73
85
  name: string;
86
+ appearance: {
87
+ name: string;
88
+ };
74
89
  online: boolean;
75
90
  model: {
76
91
  display_name: string;
@@ -79,6 +94,7 @@ export declare const common_device_properties: z.ZodObject<{
79
94
  online_access_codes_supported?: boolean | undefined;
80
95
  accessory_keypad_supported?: boolean | undefined;
81
96
  };
97
+ nickname?: string | undefined;
82
98
  has_direct_power?: boolean | undefined;
83
99
  battery_level?: number | undefined;
84
100
  battery?: {
@@ -114,6 +130,14 @@ export declare const managed_device: z.ZodObject<{
114
130
  properties: z.ZodIntersection<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
115
131
  online: z.ZodBoolean;
116
132
  name: z.ZodString;
133
+ nickname: z.ZodOptional<z.ZodString>;
134
+ appearance: z.ZodObject<{
135
+ name: z.ZodString;
136
+ }, "strip", z.ZodTypeAny, {
137
+ name: string;
138
+ }, {
139
+ name: string;
140
+ }>;
117
141
  model: z.ZodObject<{
118
142
  display_name: z.ZodString;
119
143
  manufacturer_display_name: z.ZodString;
@@ -155,6 +179,9 @@ export declare const managed_device: z.ZodObject<{
155
179
  supports_offline_access_codes: z.ZodOptional<z.ZodBoolean>;
156
180
  }, "strip", z.ZodTypeAny, {
157
181
  name: string;
182
+ appearance: {
183
+ name: string;
184
+ };
158
185
  online: boolean;
159
186
  model: {
160
187
  display_name: string;
@@ -163,6 +190,7 @@ export declare const managed_device: z.ZodObject<{
163
190
  online_access_codes_supported?: boolean | undefined;
164
191
  accessory_keypad_supported?: boolean | undefined;
165
192
  };
193
+ nickname?: string | undefined;
166
194
  has_direct_power?: boolean | undefined;
167
195
  battery_level?: number | undefined;
168
196
  battery?: {
@@ -179,6 +207,9 @@ export declare const managed_device: z.ZodObject<{
179
207
  supports_offline_access_codes?: boolean | undefined;
180
208
  }, {
181
209
  name: string;
210
+ appearance: {
211
+ name: string;
212
+ };
182
213
  online: boolean;
183
214
  model: {
184
215
  display_name: string;
@@ -187,6 +218,7 @@ export declare const managed_device: z.ZodObject<{
187
218
  online_access_codes_supported?: boolean | undefined;
188
219
  accessory_keypad_supported?: boolean | undefined;
189
220
  };
221
+ nickname?: string | undefined;
190
222
  has_direct_power?: boolean | undefined;
191
223
  battery_level?: number | undefined;
192
224
  battery?: {
@@ -2037,6 +2069,9 @@ export declare const managed_device: z.ZodObject<{
2037
2069
  is_managed: true;
2038
2070
  properties: ({
2039
2071
  name: string;
2072
+ appearance: {
2073
+ name: string;
2074
+ };
2040
2075
  online: boolean;
2041
2076
  model: {
2042
2077
  display_name: string;
@@ -2045,6 +2080,7 @@ export declare const managed_device: z.ZodObject<{
2045
2080
  online_access_codes_supported?: boolean | undefined;
2046
2081
  accessory_keypad_supported?: boolean | undefined;
2047
2082
  };
2083
+ nickname?: string | undefined;
2048
2084
  has_direct_power?: boolean | undefined;
2049
2085
  battery_level?: number | undefined;
2050
2086
  battery?: {
@@ -2445,6 +2481,9 @@ export declare const managed_device: z.ZodObject<{
2445
2481
  is_cooling_available?: true | undefined;
2446
2482
  }))) & (({
2447
2483
  name: string;
2484
+ appearance: {
2485
+ name: string;
2486
+ };
2448
2487
  online: boolean;
2449
2488
  model: {
2450
2489
  display_name: string;
@@ -2453,6 +2492,7 @@ export declare const managed_device: z.ZodObject<{
2453
2492
  online_access_codes_supported?: boolean | undefined;
2454
2493
  accessory_keypad_supported?: boolean | undefined;
2455
2494
  };
2495
+ nickname?: string | undefined;
2456
2496
  has_direct_power?: boolean | undefined;
2457
2497
  battery_level?: number | undefined;
2458
2498
  battery?: {
@@ -2878,6 +2918,9 @@ export declare const managed_device: z.ZodObject<{
2878
2918
  is_managed: true;
2879
2919
  properties: ({
2880
2920
  name: string;
2921
+ appearance: {
2922
+ name: string;
2923
+ };
2881
2924
  online: boolean;
2882
2925
  model: {
2883
2926
  display_name: string;
@@ -2886,6 +2929,7 @@ export declare const managed_device: z.ZodObject<{
2886
2929
  online_access_codes_supported?: boolean | undefined;
2887
2930
  accessory_keypad_supported?: boolean | undefined;
2888
2931
  };
2932
+ nickname?: string | undefined;
2889
2933
  has_direct_power?: boolean | undefined;
2890
2934
  battery_level?: number | undefined;
2891
2935
  battery?: {
@@ -3286,6 +3330,9 @@ export declare const managed_device: z.ZodObject<{
3286
3330
  is_cooling_available?: true | undefined;
3287
3331
  }))) & (({
3288
3332
  name: string;
3333
+ appearance: {
3334
+ name: string;
3335
+ };
3289
3336
  online: boolean;
3290
3337
  model: {
3291
3338
  display_name: string;
@@ -3294,6 +3341,7 @@ export declare const managed_device: z.ZodObject<{
3294
3341
  online_access_codes_supported?: boolean | undefined;
3295
3342
  accessory_keypad_supported?: boolean | undefined;
3296
3343
  };
3344
+ nickname?: string | undefined;
3297
3345
  has_direct_power?: boolean | undefined;
3298
3346
  battery_level?: number | undefined;
3299
3347
  battery?: {
@@ -12,6 +12,15 @@ export const common_device_properties = z.object({
12
12
  name: z
13
13
  .string()
14
14
  .describe('Name of the device. Enables administrators and users to identify the device easily, especially when there are numerous devices.'),
15
+ nickname: z
16
+ .string()
17
+ .optional()
18
+ .describe('Optional nickname to describe the device, settable through Seam. Enables administrators and users to identify the device easily, especially when there are numerous devices.'),
19
+ appearance: z.object({
20
+ name: z
21
+ .string()
22
+ .describe('Name of the device as seen from the provider API and application, not settable through Seam.'),
23
+ }),
15
24
  model: z.object({
16
25
  display_name: z.string().describe('Display name of the device model.'),
17
26
  manufacturer_display_name: z
@@ -1 +1 @@
1
- {"version":3,"file":"managed-device.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/unstable/models/devices/managed-device.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAErE,OAAO,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAA;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAA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+Y,CAChZ;IACH,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,uDAAuD,CAAC;IACpE,UAAU,EAAE,CAAC;SACV,OAAO,CAAC,IAAI,CAAC;SACb,QAAQ,CAAC,4CAA4C,CAAC;IACzD,eAAe,EAAE,eAAe,CAAC,QAAQ,EAAE;CAC5C,CAAC;KACD,KAAK,CAAC,gBAAgB,CAAC,uBAAuB,CAAC,CAAA"}
1
+ {"version":3,"file":"managed-device.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/unstable/models/devices/managed-device.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAErE,OAAO,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAA;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAA;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAA;AAEjE,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;AAIzE,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,yCAAyC,CAAC;IACvE,IAAI,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,QAAQ,CACP,iIAAiI,CAClI;IACH,QAAQ,EAAE,CAAC;SACR,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,C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11
+ nickname: z.ZodOptional<z.ZodString>;
12
+ appearance: z.ZodObject<{
13
+ name: z.ZodString;
14
+ }, "strip", z.ZodTypeAny, {
15
+ name: string;
16
+ }, {
17
+ name: string;
18
+ }>;
11
19
  model: z.ZodObject<{
12
20
  display_name: z.ZodString;
13
21
  manufacturer_display_name: z.ZodString;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.128.0",
3
+ "version": "1.130.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -657,6 +657,17 @@ export default {
657
657
  allOf: [
658
658
  {
659
659
  properties: {
660
+ appearance: {
661
+ properties: {
662
+ name: {
663
+ description:
664
+ 'Name of the device as seen from the provider API and application, not settable through Seam.',
665
+ type: 'string',
666
+ },
667
+ },
668
+ required: ['name'],
669
+ type: 'object',
670
+ },
660
671
  battery: {
661
672
  description:
662
673
  'Represents the current status of the battery charge level. Values are "critical," which indicates an extremely low level, suggesting imminent shutdown or an urgent need for charging; "low," which signifies that the battery is under the preferred threshold and should be charged soon; "good," which denotes a satisfactory charge level, adequate for normal use without the immediate need for recharging; and "full," which represents a battery that is fully charged, providing the maximum duration of usage.',
@@ -734,6 +745,11 @@ export default {
734
745
  'Name of the device. Enables administrators and users to identify the device easily, especially when there are numerous devices.',
735
746
  type: 'string',
736
747
  },
748
+ nickname: {
749
+ description:
750
+ 'Optional nickname to describe the device, settable through Seam. Enables administrators and users to identify the device easily, especially when there are numerous devices.',
751
+ type: 'string',
752
+ },
737
753
  offline_access_codes_enabled: {
738
754
  description:
739
755
  'Indicates whether it is currently possible to use offline access codes for the device.',
@@ -764,7 +780,7 @@ export default {
764
780
  type: 'boolean',
765
781
  },
766
782
  },
767
- required: ['online', 'name', 'model'],
783
+ required: ['online', 'name', 'appearance', 'model'],
768
784
  type: 'object',
769
785
  },
770
786
  {
@@ -9207,9 +9223,10 @@ export default {
9207
9223
  401: { description: 'Unauthorized' },
9208
9224
  },
9209
9225
  security: [
9210
- { access_token: [], seam_workspace: [] },
9211
- { seam_client_session_token: [] },
9212
- { client_session_token: [] },
9226
+ { client_session: [] },
9227
+ { pat_with_workspace: [] },
9228
+ { console_session: [] },
9229
+ { api_key: [] },
9213
9230
  ],
9214
9231
  summary: '/locks/unlock_door',
9215
9232
  tags: ['/locks'],
@@ -10407,8 +10424,13 @@ export default {
10407
10424
  content: {
10408
10425
  'application/json': {
10409
10426
  schema: {
10410
- properties: { ok: { type: 'boolean' } },
10411
- required: ['ok'],
10427
+ properties: {
10428
+ action_attempt: {
10429
+ $ref: '#/components/schemas/action_attempt',
10430
+ },
10431
+ ok: { type: 'boolean' },
10432
+ },
10433
+ required: ['action_attempt', 'ok'],
10412
10434
  type: 'object',
10413
10435
  },
10414
10436
  },
@@ -10427,6 +10449,7 @@ export default {
10427
10449
  tags: ['/thermostats'],
10428
10450
  'x-fern-sdk-group-name': ['thermostats'],
10429
10451
  'x-fern-sdk-method-name': 'cool',
10452
+ 'x-fern-sdk-return-value': 'action_attempt',
10430
10453
  },
10431
10454
  },
10432
10455
  '/thermostats/get': {
@@ -10500,8 +10523,13 @@ export default {
10500
10523
  content: {
10501
10524
  'application/json': {
10502
10525
  schema: {
10503
- properties: { ok: { type: 'boolean' } },
10504
- required: ['ok'],
10526
+ properties: {
10527
+ action_attempt: {
10528
+ $ref: '#/components/schemas/action_attempt',
10529
+ },
10530
+ ok: { type: 'boolean' },
10531
+ },
10532
+ required: ['action_attempt', 'ok'],
10505
10533
  type: 'object',
10506
10534
  },
10507
10535
  },
@@ -10520,6 +10548,7 @@ export default {
10520
10548
  tags: ['/thermostats'],
10521
10549
  'x-fern-sdk-group-name': ['thermostats'],
10522
10550
  'x-fern-sdk-method-name': 'heat',
10551
+ 'x-fern-sdk-return-value': 'action_attempt',
10523
10552
  },
10524
10553
  },
10525
10554
  '/thermostats/heat_cool': {
@@ -10548,8 +10577,13 @@ export default {
10548
10577
  content: {
10549
10578
  'application/json': {
10550
10579
  schema: {
10551
- properties: { ok: { type: 'boolean' } },
10552
- required: ['ok'],
10580
+ properties: {
10581
+ action_attempt: {
10582
+ $ref: '#/components/schemas/action_attempt',
10583
+ },
10584
+ ok: { type: 'boolean' },
10585
+ },
10586
+ required: ['action_attempt', 'ok'],
10553
10587
  type: 'object',
10554
10588
  },
10555
10589
  },
@@ -10568,6 +10602,7 @@ export default {
10568
10602
  tags: ['/thermostats'],
10569
10603
  'x-fern-sdk-group-name': ['thermostats'],
10570
10604
  'x-fern-sdk-method-name': 'heat_cool',
10605
+ 'x-fern-sdk-return-value': 'action_attempt',
10571
10606
  },
10572
10607
  },
10573
10608
  '/thermostats/list': {
@@ -10814,8 +10849,13 @@ export default {
10814
10849
  content: {
10815
10850
  'application/json': {
10816
10851
  schema: {
10817
- properties: { ok: { type: 'boolean' } },
10818
- required: ['ok'],
10852
+ properties: {
10853
+ action_attempt: {
10854
+ $ref: '#/components/schemas/action_attempt',
10855
+ },
10856
+ ok: { type: 'boolean' },
10857
+ },
10858
+ required: ['action_attempt', 'ok'],
10819
10859
  type: 'object',
10820
10860
  },
10821
10861
  },
@@ -10834,6 +10874,7 @@ export default {
10834
10874
  tags: ['/thermostats'],
10835
10875
  'x-fern-sdk-group-name': ['thermostats'],
10836
10876
  'x-fern-sdk-method-name': 'off',
10877
+ 'x-fern-sdk-return-value': 'action_attempt',
10837
10878
  },
10838
10879
  },
10839
10880
  '/thermostats/set_fan_mode': {
@@ -10860,8 +10901,13 @@ export default {
10860
10901
  content: {
10861
10902
  'application/json': {
10862
10903
  schema: {
10863
- properties: { ok: { type: 'boolean' } },
10864
- required: ['ok'],
10904
+ properties: {
10905
+ action_attempt: {
10906
+ $ref: '#/components/schemas/action_attempt',
10907
+ },
10908
+ ok: { type: 'boolean' },
10909
+ },
10910
+ required: ['action_attempt', 'ok'],
10865
10911
  type: 'object',
10866
10912
  },
10867
10913
  },
@@ -10880,6 +10926,7 @@ export default {
10880
10926
  tags: ['/thermostats'],
10881
10927
  'x-fern-sdk-group-name': ['thermostats'],
10882
10928
  'x-fern-sdk-method-name': 'set_fan_mode',
10929
+ 'x-fern-sdk-return-value': 'action_attempt',
10883
10930
  },
10884
10931
  },
10885
10932
  '/thermostats/update': {