@seamapi/types 1.176.0 → 1.177.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 (116) hide show
  1. package/dist/connect.cjs +1390 -142
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +13104 -2318
  4. package/lib/seam/connect/model-types.d.ts +1 -1
  5. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +1038 -0
  6. package/lib/seam/connect/models/action-attempts/action-attempt.js +22 -0
  7. package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -0
  8. package/lib/seam/connect/models/action-attempts/common.d.ts +53 -0
  9. package/lib/seam/connect/models/action-attempts/common.js +24 -0
  10. package/lib/seam/connect/models/action-attempts/common.js.map +1 -0
  11. package/lib/seam/connect/models/action-attempts/deprecated.d.ts +485 -0
  12. package/lib/seam/connect/models/action-attempts/deprecated.js +108 -0
  13. package/lib/seam/connect/models/action-attempts/deprecated.js.map +1 -0
  14. package/lib/seam/connect/models/action-attempts/index.d.ts +1 -0
  15. package/lib/seam/connect/models/action-attempts/index.js +2 -0
  16. package/lib/seam/connect/models/action-attempts/index.js.map +1 -0
  17. package/lib/seam/connect/models/action-attempts/lock-door.d.ts +72 -0
  18. package/lib/seam/connect/models/action-attempts/lock-door.js +25 -0
  19. package/lib/seam/connect/models/action-attempts/lock-door.js.map +1 -0
  20. package/lib/seam/connect/models/action-attempts/reset-sandbox-workspace.d.ts +71 -0
  21. package/lib/seam/connect/models/action-attempts/reset-sandbox-workspace.js +28 -0
  22. package/lib/seam/connect/models/action-attempts/reset-sandbox-workspace.js.map +1 -0
  23. package/lib/seam/connect/models/action-attempts/set-cool.d.ts +71 -0
  24. package/lib/seam/connect/models/action-attempts/set-cool.js +25 -0
  25. package/lib/seam/connect/models/action-attempts/set-cool.js.map +1 -0
  26. package/lib/seam/connect/models/action-attempts/set-fan-mode.d.ts +71 -0
  27. package/lib/seam/connect/models/action-attempts/set-fan-mode.js +25 -0
  28. package/lib/seam/connect/models/action-attempts/set-fan-mode.js.map +1 -0
  29. package/lib/seam/connect/models/action-attempts/set-heat-cool.d.ts +71 -0
  30. package/lib/seam/connect/models/action-attempts/set-heat-cool.js +25 -0
  31. package/lib/seam/connect/models/action-attempts/set-heat-cool.js.map +1 -0
  32. package/lib/seam/connect/models/action-attempts/set-heat.d.ts +71 -0
  33. package/lib/seam/connect/models/action-attempts/set-heat.js +25 -0
  34. package/lib/seam/connect/models/action-attempts/set-heat.js.map +1 -0
  35. package/lib/seam/connect/models/action-attempts/set-thermostat-off.d.ts +71 -0
  36. package/lib/seam/connect/models/action-attempts/set-thermostat-off.js +25 -0
  37. package/lib/seam/connect/models/action-attempts/set-thermostat-off.js.map +1 -0
  38. package/lib/seam/connect/models/action-attempts/unlock-door.d.ts +72 -0
  39. package/lib/seam/connect/models/action-attempts/unlock-door.js +25 -0
  40. package/lib/seam/connect/models/action-attempts/unlock-door.js.map +1 -0
  41. package/lib/seam/connect/models/devices/managed-device.js +6 -2
  42. package/lib/seam/connect/models/devices/managed-device.js.map +1 -1
  43. package/lib/seam/connect/models/events/access-codes.d.ts +1 -1
  44. package/lib/seam/connect/models/events/access-codes.js +1 -1
  45. package/lib/seam/connect/models/events/access-codes.js.map +1 -1
  46. package/lib/seam/connect/models/events/acs/common.d.ts +1 -1
  47. package/lib/seam/connect/models/events/acs/common.js +1 -1
  48. package/lib/seam/connect/models/events/acs/common.js.map +1 -1
  49. package/lib/seam/connect/models/events/acs/credentials.d.ts +1 -1
  50. package/lib/seam/connect/models/events/acs/credentials.js +1 -1
  51. package/lib/seam/connect/models/events/acs/credentials.js.map +1 -1
  52. package/lib/seam/connect/models/events/acs/users.d.ts +1 -1
  53. package/lib/seam/connect/models/events/acs/users.js +1 -1
  54. package/lib/seam/connect/models/events/acs/users.js.map +1 -1
  55. package/lib/seam/connect/models/events/action-attempts.d.ts +10 -10
  56. package/lib/seam/connect/models/events/client-sessions.d.ts +1 -1
  57. package/lib/seam/connect/models/events/client-sessions.js +1 -1
  58. package/lib/seam/connect/models/events/client-sessions.js.map +1 -1
  59. package/lib/seam/connect/models/events/common.d.ts +1 -1
  60. package/lib/seam/connect/models/events/common.js +1 -1
  61. package/lib/seam/connect/models/events/common.js.map +1 -1
  62. package/lib/seam/connect/models/events/connected-accounts.d.ts +1 -1
  63. package/lib/seam/connect/models/events/connected-accounts.js +1 -1
  64. package/lib/seam/connect/models/events/connected-accounts.js.map +1 -1
  65. package/lib/seam/connect/models/events/devices.d.ts +1 -1
  66. package/lib/seam/connect/models/events/devices.js +1 -1
  67. package/lib/seam/connect/models/events/devices.js.map +1 -1
  68. package/lib/seam/connect/models/events/enrollment-automations.d.ts +1 -1
  69. package/lib/seam/connect/models/events/enrollment-automations.js +1 -1
  70. package/lib/seam/connect/models/events/enrollment-automations.js.map +1 -1
  71. package/lib/seam/connect/models/events/phones.d.ts +1 -1
  72. package/lib/seam/connect/models/events/phones.js +1 -1
  73. package/lib/seam/connect/models/events/phones.js.map +1 -1
  74. package/lib/seam/connect/models/events/seam-event.d.ts +1 -1
  75. package/lib/seam/connect/models/events/seam-event.js +1 -1
  76. package/lib/seam/connect/models/events/seam-event.js.map +1 -1
  77. package/lib/seam/connect/models/index.d.ts +1 -0
  78. package/lib/seam/connect/models/index.js +1 -0
  79. package/lib/seam/connect/models/index.js.map +1 -1
  80. package/lib/seam/connect/openapi.d.ts +116 -4
  81. package/lib/seam/connect/openapi.js +999 -11
  82. package/lib/seam/connect/openapi.js.map +1 -1
  83. package/lib/seam/connect/route-types.d.ts +11960 -2324
  84. package/lib/seam/connect/schemas.d.ts +1 -1
  85. package/lib/seam/connect/schemas.js +1 -1
  86. package/lib/seam/connect/schemas.js.map +1 -1
  87. package/package.json +1 -1
  88. package/src/lib/seam/connect/model-types.ts +1 -0
  89. package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +25 -0
  90. package/src/lib/seam/connect/models/action-attempts/common.ts +27 -0
  91. package/src/lib/seam/connect/models/action-attempts/deprecated.ts +122 -0
  92. package/src/lib/seam/connect/models/action-attempts/index.ts +1 -0
  93. package/src/lib/seam/connect/models/action-attempts/lock-door.ts +35 -0
  94. package/src/lib/seam/connect/models/action-attempts/reset-sandbox-workspace.ts +39 -0
  95. package/src/lib/seam/connect/models/action-attempts/set-cool.ts +33 -0
  96. package/src/lib/seam/connect/models/action-attempts/set-fan-mode.ts +33 -0
  97. package/src/lib/seam/connect/models/action-attempts/set-heat-cool.ts +33 -0
  98. package/src/lib/seam/connect/models/action-attempts/set-heat.ts +33 -0
  99. package/src/lib/seam/connect/models/action-attempts/set-thermostat-off.ts +36 -0
  100. package/src/lib/seam/connect/models/action-attempts/unlock-door.ts +35 -0
  101. package/src/lib/seam/connect/models/devices/managed-device.ts +8 -2
  102. package/src/lib/seam/connect/models/events/access-codes.ts +1 -1
  103. package/src/lib/seam/connect/models/events/acs/common.ts +1 -1
  104. package/src/lib/seam/connect/models/events/acs/credentials.ts +1 -1
  105. package/src/lib/seam/connect/models/events/acs/users.ts +1 -1
  106. package/src/lib/seam/connect/models/events/client-sessions.ts +1 -1
  107. package/src/lib/seam/connect/models/events/common.ts +1 -1
  108. package/src/lib/seam/connect/models/events/connected-accounts.ts +1 -1
  109. package/src/lib/seam/connect/models/events/devices.ts +1 -1
  110. package/src/lib/seam/connect/models/events/enrollment-automations.ts +1 -1
  111. package/src/lib/seam/connect/models/events/phones.ts +1 -1
  112. package/src/lib/seam/connect/models/events/seam-event.ts +1 -1
  113. package/src/lib/seam/connect/models/index.ts +1 -0
  114. package/src/lib/seam/connect/openapi.ts +1044 -11
  115. package/src/lib/seam/connect/route-types.ts +13034 -2684
  116. package/src/lib/seam/connect/schemas.ts +6 -1
@@ -0,0 +1,1038 @@
1
+ import { z } from 'zod';
2
+ export declare const action_attempt: z.ZodUnion<[z.ZodObject<{
3
+ error: z.ZodNull;
4
+ status: z.ZodLiteral<"pending">;
5
+ action_attempt_id: z.ZodString;
6
+ result: z.ZodNull;
7
+ action_type: z.ZodLiteral<"LOCK_DOOR">;
8
+ }, "strip", z.ZodTypeAny, {
9
+ error: null;
10
+ status: "pending";
11
+ action_attempt_id: string;
12
+ result: null;
13
+ action_type: "LOCK_DOOR";
14
+ }, {
15
+ error: null;
16
+ status: "pending";
17
+ action_attempt_id: string;
18
+ result: null;
19
+ action_type: "LOCK_DOOR";
20
+ }>, z.ZodObject<{
21
+ error: z.ZodNull;
22
+ status: z.ZodLiteral<"success">;
23
+ action_attempt_id: z.ZodString;
24
+ action_type: z.ZodLiteral<"LOCK_DOOR">;
25
+ result: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
26
+ }, "strip", z.ZodTypeAny, {
27
+ error: null;
28
+ status: "success";
29
+ action_attempt_id: string;
30
+ result: {};
31
+ action_type: "LOCK_DOOR";
32
+ }, {
33
+ error: null;
34
+ status: "success";
35
+ action_attempt_id: string;
36
+ result: {};
37
+ action_type: "LOCK_DOOR";
38
+ }>, z.ZodObject<{
39
+ status: z.ZodLiteral<"error">;
40
+ action_attempt_id: z.ZodString;
41
+ result: z.ZodNull;
42
+ action_type: z.ZodLiteral<"LOCK_DOOR">;
43
+ error: z.ZodObject<{
44
+ type: z.ZodString;
45
+ message: z.ZodString;
46
+ }, "strip", z.ZodTypeAny, {
47
+ type: string;
48
+ message: string;
49
+ }, {
50
+ type: string;
51
+ message: string;
52
+ }>;
53
+ }, "strip", z.ZodTypeAny, {
54
+ error: {
55
+ type: string;
56
+ message: string;
57
+ };
58
+ status: "error";
59
+ action_attempt_id: string;
60
+ result: null;
61
+ action_type: "LOCK_DOOR";
62
+ }, {
63
+ error: {
64
+ type: string;
65
+ message: string;
66
+ };
67
+ status: "error";
68
+ action_attempt_id: string;
69
+ result: null;
70
+ action_type: "LOCK_DOOR";
71
+ }>, z.ZodObject<{
72
+ error: z.ZodNull;
73
+ status: z.ZodLiteral<"pending">;
74
+ action_attempt_id: z.ZodString;
75
+ result: z.ZodNull;
76
+ action_type: z.ZodLiteral<"UNLOCK_DOOR">;
77
+ }, "strip", z.ZodTypeAny, {
78
+ error: null;
79
+ status: "pending";
80
+ action_attempt_id: string;
81
+ result: null;
82
+ action_type: "UNLOCK_DOOR";
83
+ }, {
84
+ error: null;
85
+ status: "pending";
86
+ action_attempt_id: string;
87
+ result: null;
88
+ action_type: "UNLOCK_DOOR";
89
+ }>, z.ZodObject<{
90
+ error: z.ZodNull;
91
+ status: z.ZodLiteral<"success">;
92
+ action_attempt_id: z.ZodString;
93
+ action_type: z.ZodLiteral<"UNLOCK_DOOR">;
94
+ result: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
95
+ }, "strip", z.ZodTypeAny, {
96
+ error: null;
97
+ status: "success";
98
+ action_attempt_id: string;
99
+ result: {};
100
+ action_type: "UNLOCK_DOOR";
101
+ }, {
102
+ error: null;
103
+ status: "success";
104
+ action_attempt_id: string;
105
+ result: {};
106
+ action_type: "UNLOCK_DOOR";
107
+ }>, z.ZodObject<{
108
+ status: z.ZodLiteral<"error">;
109
+ action_attempt_id: z.ZodString;
110
+ result: z.ZodNull;
111
+ action_type: z.ZodLiteral<"UNLOCK_DOOR">;
112
+ error: z.ZodObject<{
113
+ type: z.ZodString;
114
+ message: z.ZodString;
115
+ }, "strip", z.ZodTypeAny, {
116
+ type: string;
117
+ message: string;
118
+ }, {
119
+ type: string;
120
+ message: string;
121
+ }>;
122
+ }, "strip", z.ZodTypeAny, {
123
+ error: {
124
+ type: string;
125
+ message: string;
126
+ };
127
+ status: "error";
128
+ action_attempt_id: string;
129
+ result: null;
130
+ action_type: "UNLOCK_DOOR";
131
+ }, {
132
+ error: {
133
+ type: string;
134
+ message: string;
135
+ };
136
+ status: "error";
137
+ action_attempt_id: string;
138
+ result: null;
139
+ action_type: "UNLOCK_DOOR";
140
+ }>, z.ZodObject<{
141
+ error: z.ZodNull;
142
+ status: z.ZodLiteral<"pending">;
143
+ action_attempt_id: z.ZodString;
144
+ result: z.ZodNull;
145
+ action_type: z.ZodLiteral<"RESET_SANDBOX_WORKSPACE">;
146
+ }, "strip", z.ZodTypeAny, {
147
+ error: null;
148
+ status: "pending";
149
+ action_attempt_id: string;
150
+ result: null;
151
+ action_type: "RESET_SANDBOX_WORKSPACE";
152
+ }, {
153
+ error: null;
154
+ status: "pending";
155
+ action_attempt_id: string;
156
+ result: null;
157
+ action_type: "RESET_SANDBOX_WORKSPACE";
158
+ }>, z.ZodObject<{
159
+ error: z.ZodNull;
160
+ status: z.ZodLiteral<"success">;
161
+ action_attempt_id: z.ZodString;
162
+ action_type: z.ZodLiteral<"RESET_SANDBOX_WORKSPACE">;
163
+ result: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
164
+ }, "strip", z.ZodTypeAny, {
165
+ error: null;
166
+ status: "success";
167
+ action_attempt_id: string;
168
+ result: {};
169
+ action_type: "RESET_SANDBOX_WORKSPACE";
170
+ }, {
171
+ error: null;
172
+ status: "success";
173
+ action_attempt_id: string;
174
+ result: {};
175
+ action_type: "RESET_SANDBOX_WORKSPACE";
176
+ }>, z.ZodObject<{
177
+ status: z.ZodLiteral<"error">;
178
+ action_attempt_id: z.ZodString;
179
+ result: z.ZodNull;
180
+ action_type: z.ZodLiteral<"RESET_SANDBOX_WORKSPACE">;
181
+ error: z.ZodObject<{
182
+ type: z.ZodString;
183
+ message: z.ZodString;
184
+ }, "strip", z.ZodTypeAny, {
185
+ type: string;
186
+ message: string;
187
+ }, {
188
+ type: string;
189
+ message: string;
190
+ }>;
191
+ }, "strip", z.ZodTypeAny, {
192
+ error: {
193
+ type: string;
194
+ message: string;
195
+ };
196
+ status: "error";
197
+ action_attempt_id: string;
198
+ result: null;
199
+ action_type: "RESET_SANDBOX_WORKSPACE";
200
+ }, {
201
+ error: {
202
+ type: string;
203
+ message: string;
204
+ };
205
+ status: "error";
206
+ action_attempt_id: string;
207
+ result: null;
208
+ action_type: "RESET_SANDBOX_WORKSPACE";
209
+ }>, z.ZodObject<{
210
+ error: z.ZodNull;
211
+ status: z.ZodLiteral<"pending">;
212
+ action_attempt_id: z.ZodString;
213
+ result: z.ZodNull;
214
+ action_type: z.ZodLiteral<"SET_COOL">;
215
+ }, "strip", z.ZodTypeAny, {
216
+ error: null;
217
+ status: "pending";
218
+ action_attempt_id: string;
219
+ result: null;
220
+ action_type: "SET_COOL";
221
+ }, {
222
+ error: null;
223
+ status: "pending";
224
+ action_attempt_id: string;
225
+ result: null;
226
+ action_type: "SET_COOL";
227
+ }>, z.ZodObject<{
228
+ error: z.ZodNull;
229
+ status: z.ZodLiteral<"success">;
230
+ action_attempt_id: z.ZodString;
231
+ action_type: z.ZodLiteral<"SET_COOL">;
232
+ result: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
233
+ }, "strip", z.ZodTypeAny, {
234
+ error: null;
235
+ status: "success";
236
+ action_attempt_id: string;
237
+ result: {};
238
+ action_type: "SET_COOL";
239
+ }, {
240
+ error: null;
241
+ status: "success";
242
+ action_attempt_id: string;
243
+ result: {};
244
+ action_type: "SET_COOL";
245
+ }>, z.ZodObject<{
246
+ status: z.ZodLiteral<"error">;
247
+ action_attempt_id: z.ZodString;
248
+ result: z.ZodNull;
249
+ action_type: z.ZodLiteral<"SET_COOL">;
250
+ error: z.ZodObject<{
251
+ type: z.ZodString;
252
+ message: z.ZodString;
253
+ }, "strip", z.ZodTypeAny, {
254
+ type: string;
255
+ message: string;
256
+ }, {
257
+ type: string;
258
+ message: string;
259
+ }>;
260
+ }, "strip", z.ZodTypeAny, {
261
+ error: {
262
+ type: string;
263
+ message: string;
264
+ };
265
+ status: "error";
266
+ action_attempt_id: string;
267
+ result: null;
268
+ action_type: "SET_COOL";
269
+ }, {
270
+ error: {
271
+ type: string;
272
+ message: string;
273
+ };
274
+ status: "error";
275
+ action_attempt_id: string;
276
+ result: null;
277
+ action_type: "SET_COOL";
278
+ }>, z.ZodObject<{
279
+ error: z.ZodNull;
280
+ status: z.ZodLiteral<"pending">;
281
+ action_attempt_id: z.ZodString;
282
+ result: z.ZodNull;
283
+ action_type: z.ZodLiteral<"SET_HEAT">;
284
+ }, "strip", z.ZodTypeAny, {
285
+ error: null;
286
+ status: "pending";
287
+ action_attempt_id: string;
288
+ result: null;
289
+ action_type: "SET_HEAT";
290
+ }, {
291
+ error: null;
292
+ status: "pending";
293
+ action_attempt_id: string;
294
+ result: null;
295
+ action_type: "SET_HEAT";
296
+ }>, z.ZodObject<{
297
+ error: z.ZodNull;
298
+ status: z.ZodLiteral<"success">;
299
+ action_attempt_id: z.ZodString;
300
+ action_type: z.ZodLiteral<"SET_HEAT">;
301
+ result: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
302
+ }, "strip", z.ZodTypeAny, {
303
+ error: null;
304
+ status: "success";
305
+ action_attempt_id: string;
306
+ result: {};
307
+ action_type: "SET_HEAT";
308
+ }, {
309
+ error: null;
310
+ status: "success";
311
+ action_attempt_id: string;
312
+ result: {};
313
+ action_type: "SET_HEAT";
314
+ }>, z.ZodObject<{
315
+ status: z.ZodLiteral<"error">;
316
+ action_attempt_id: z.ZodString;
317
+ result: z.ZodNull;
318
+ action_type: z.ZodLiteral<"SET_HEAT">;
319
+ error: z.ZodObject<{
320
+ type: z.ZodString;
321
+ message: z.ZodString;
322
+ }, "strip", z.ZodTypeAny, {
323
+ type: string;
324
+ message: string;
325
+ }, {
326
+ type: string;
327
+ message: string;
328
+ }>;
329
+ }, "strip", z.ZodTypeAny, {
330
+ error: {
331
+ type: string;
332
+ message: string;
333
+ };
334
+ status: "error";
335
+ action_attempt_id: string;
336
+ result: null;
337
+ action_type: "SET_HEAT";
338
+ }, {
339
+ error: {
340
+ type: string;
341
+ message: string;
342
+ };
343
+ status: "error";
344
+ action_attempt_id: string;
345
+ result: null;
346
+ action_type: "SET_HEAT";
347
+ }>, z.ZodObject<{
348
+ error: z.ZodNull;
349
+ status: z.ZodLiteral<"pending">;
350
+ action_attempt_id: z.ZodString;
351
+ result: z.ZodNull;
352
+ action_type: z.ZodLiteral<"SET_HEAT_COOL">;
353
+ }, "strip", z.ZodTypeAny, {
354
+ error: null;
355
+ status: "pending";
356
+ action_attempt_id: string;
357
+ result: null;
358
+ action_type: "SET_HEAT_COOL";
359
+ }, {
360
+ error: null;
361
+ status: "pending";
362
+ action_attempt_id: string;
363
+ result: null;
364
+ action_type: "SET_HEAT_COOL";
365
+ }>, z.ZodObject<{
366
+ error: z.ZodNull;
367
+ status: z.ZodLiteral<"success">;
368
+ action_attempt_id: z.ZodString;
369
+ action_type: z.ZodLiteral<"SET_HEAT_COOL">;
370
+ result: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
371
+ }, "strip", z.ZodTypeAny, {
372
+ error: null;
373
+ status: "success";
374
+ action_attempt_id: string;
375
+ result: {};
376
+ action_type: "SET_HEAT_COOL";
377
+ }, {
378
+ error: null;
379
+ status: "success";
380
+ action_attempt_id: string;
381
+ result: {};
382
+ action_type: "SET_HEAT_COOL";
383
+ }>, z.ZodObject<{
384
+ status: z.ZodLiteral<"error">;
385
+ action_attempt_id: z.ZodString;
386
+ result: z.ZodNull;
387
+ action_type: z.ZodLiteral<"SET_HEAT_COOL">;
388
+ error: z.ZodObject<{
389
+ type: z.ZodString;
390
+ message: z.ZodString;
391
+ }, "strip", z.ZodTypeAny, {
392
+ type: string;
393
+ message: string;
394
+ }, {
395
+ type: string;
396
+ message: string;
397
+ }>;
398
+ }, "strip", z.ZodTypeAny, {
399
+ error: {
400
+ type: string;
401
+ message: string;
402
+ };
403
+ status: "error";
404
+ action_attempt_id: string;
405
+ result: null;
406
+ action_type: "SET_HEAT_COOL";
407
+ }, {
408
+ error: {
409
+ type: string;
410
+ message: string;
411
+ };
412
+ status: "error";
413
+ action_attempt_id: string;
414
+ result: null;
415
+ action_type: "SET_HEAT_COOL";
416
+ }>, z.ZodObject<{
417
+ error: z.ZodNull;
418
+ status: z.ZodLiteral<"pending">;
419
+ action_attempt_id: z.ZodString;
420
+ result: z.ZodNull;
421
+ action_type: z.ZodLiteral<"SET_FAN_MODE">;
422
+ }, "strip", z.ZodTypeAny, {
423
+ error: null;
424
+ status: "pending";
425
+ action_attempt_id: string;
426
+ result: null;
427
+ action_type: "SET_FAN_MODE";
428
+ }, {
429
+ error: null;
430
+ status: "pending";
431
+ action_attempt_id: string;
432
+ result: null;
433
+ action_type: "SET_FAN_MODE";
434
+ }>, z.ZodObject<{
435
+ error: z.ZodNull;
436
+ status: z.ZodLiteral<"success">;
437
+ action_attempt_id: z.ZodString;
438
+ action_type: z.ZodLiteral<"SET_FAN_MODE">;
439
+ result: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
440
+ }, "strip", z.ZodTypeAny, {
441
+ error: null;
442
+ status: "success";
443
+ action_attempt_id: string;
444
+ result: {};
445
+ action_type: "SET_FAN_MODE";
446
+ }, {
447
+ error: null;
448
+ status: "success";
449
+ action_attempt_id: string;
450
+ result: {};
451
+ action_type: "SET_FAN_MODE";
452
+ }>, z.ZodObject<{
453
+ status: z.ZodLiteral<"error">;
454
+ action_attempt_id: z.ZodString;
455
+ result: z.ZodNull;
456
+ action_type: z.ZodLiteral<"SET_FAN_MODE">;
457
+ error: z.ZodObject<{
458
+ type: z.ZodString;
459
+ message: z.ZodString;
460
+ }, "strip", z.ZodTypeAny, {
461
+ type: string;
462
+ message: string;
463
+ }, {
464
+ type: string;
465
+ message: string;
466
+ }>;
467
+ }, "strip", z.ZodTypeAny, {
468
+ error: {
469
+ type: string;
470
+ message: string;
471
+ };
472
+ status: "error";
473
+ action_attempt_id: string;
474
+ result: null;
475
+ action_type: "SET_FAN_MODE";
476
+ }, {
477
+ error: {
478
+ type: string;
479
+ message: string;
480
+ };
481
+ status: "error";
482
+ action_attempt_id: string;
483
+ result: null;
484
+ action_type: "SET_FAN_MODE";
485
+ }>, z.ZodObject<{
486
+ error: z.ZodNull;
487
+ status: z.ZodLiteral<"pending">;
488
+ action_attempt_id: z.ZodString;
489
+ result: z.ZodNull;
490
+ action_type: z.ZodLiteral<"SET_THERMOSTAT_OFF">;
491
+ }, "strip", z.ZodTypeAny, {
492
+ error: null;
493
+ status: "pending";
494
+ action_attempt_id: string;
495
+ result: null;
496
+ action_type: "SET_THERMOSTAT_OFF";
497
+ }, {
498
+ error: null;
499
+ status: "pending";
500
+ action_attempt_id: string;
501
+ result: null;
502
+ action_type: "SET_THERMOSTAT_OFF";
503
+ }>, z.ZodObject<{
504
+ error: z.ZodNull;
505
+ status: z.ZodLiteral<"success">;
506
+ action_attempt_id: z.ZodString;
507
+ action_type: z.ZodLiteral<"SET_THERMOSTAT_OFF">;
508
+ result: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
509
+ }, "strip", z.ZodTypeAny, {
510
+ error: null;
511
+ status: "success";
512
+ action_attempt_id: string;
513
+ result: {};
514
+ action_type: "SET_THERMOSTAT_OFF";
515
+ }, {
516
+ error: null;
517
+ status: "success";
518
+ action_attempt_id: string;
519
+ result: {};
520
+ action_type: "SET_THERMOSTAT_OFF";
521
+ }>, z.ZodObject<{
522
+ status: z.ZodLiteral<"error">;
523
+ action_attempt_id: z.ZodString;
524
+ result: z.ZodNull;
525
+ action_type: z.ZodLiteral<"SET_THERMOSTAT_OFF">;
526
+ error: z.ZodObject<{
527
+ type: z.ZodString;
528
+ message: z.ZodString;
529
+ }, "strip", z.ZodTypeAny, {
530
+ type: string;
531
+ message: string;
532
+ }, {
533
+ type: string;
534
+ message: string;
535
+ }>;
536
+ }, "strip", z.ZodTypeAny, {
537
+ error: {
538
+ type: string;
539
+ message: string;
540
+ };
541
+ status: "error";
542
+ action_attempt_id: string;
543
+ result: null;
544
+ action_type: "SET_THERMOSTAT_OFF";
545
+ }, {
546
+ error: {
547
+ type: string;
548
+ message: string;
549
+ };
550
+ status: "error";
551
+ action_attempt_id: string;
552
+ result: null;
553
+ action_type: "SET_THERMOSTAT_OFF";
554
+ }>, z.ZodObject<{
555
+ error: z.ZodNull;
556
+ status: z.ZodLiteral<"pending">;
557
+ action_attempt_id: z.ZodString;
558
+ result: z.ZodNull;
559
+ action_type: z.ZodLiteral<"SYNC_ACCESS_CODES">;
560
+ }, "strip", z.ZodTypeAny, {
561
+ error: null;
562
+ status: "pending";
563
+ action_attempt_id: string;
564
+ result: null;
565
+ action_type: "SYNC_ACCESS_CODES";
566
+ }, {
567
+ error: null;
568
+ status: "pending";
569
+ action_attempt_id: string;
570
+ result: null;
571
+ action_type: "SYNC_ACCESS_CODES";
572
+ }>, z.ZodObject<{
573
+ error: z.ZodNull;
574
+ status: z.ZodLiteral<"success">;
575
+ action_attempt_id: z.ZodString;
576
+ action_type: z.ZodLiteral<"SYNC_ACCESS_CODES">;
577
+ result: z.ZodAny;
578
+ }, "strip", z.ZodTypeAny, {
579
+ error: null;
580
+ status: "success";
581
+ action_attempt_id: string;
582
+ action_type: "SYNC_ACCESS_CODES";
583
+ result?: any;
584
+ }, {
585
+ error: null;
586
+ status: "success";
587
+ action_attempt_id: string;
588
+ action_type: "SYNC_ACCESS_CODES";
589
+ result?: any;
590
+ }>, z.ZodObject<{
591
+ status: z.ZodLiteral<"error">;
592
+ action_attempt_id: z.ZodString;
593
+ result: z.ZodNull;
594
+ action_type: z.ZodLiteral<"SYNC_ACCESS_CODES">;
595
+ error: z.ZodObject<{
596
+ type: z.ZodString;
597
+ message: z.ZodString;
598
+ }, "strip", z.ZodTypeAny, {
599
+ type: string;
600
+ message: string;
601
+ }, {
602
+ type: string;
603
+ message: string;
604
+ }>;
605
+ }, "strip", z.ZodTypeAny, {
606
+ error: {
607
+ type: string;
608
+ message: string;
609
+ };
610
+ status: "error";
611
+ action_attempt_id: string;
612
+ result: null;
613
+ action_type: "SYNC_ACCESS_CODES";
614
+ }, {
615
+ error: {
616
+ type: string;
617
+ message: string;
618
+ };
619
+ status: "error";
620
+ action_attempt_id: string;
621
+ result: null;
622
+ action_type: "SYNC_ACCESS_CODES";
623
+ }>, z.ZodObject<{
624
+ error: z.ZodNull;
625
+ status: z.ZodLiteral<"pending">;
626
+ action_attempt_id: z.ZodString;
627
+ result: z.ZodNull;
628
+ action_type: z.ZodLiteral<"CREATE_ACCESS_CODE">;
629
+ }, "strip", z.ZodTypeAny, {
630
+ error: null;
631
+ status: "pending";
632
+ action_attempt_id: string;
633
+ result: null;
634
+ action_type: "CREATE_ACCESS_CODE";
635
+ }, {
636
+ error: null;
637
+ status: "pending";
638
+ action_attempt_id: string;
639
+ result: null;
640
+ action_type: "CREATE_ACCESS_CODE";
641
+ }>, z.ZodObject<{
642
+ error: z.ZodNull;
643
+ status: z.ZodLiteral<"success">;
644
+ action_attempt_id: z.ZodString;
645
+ action_type: z.ZodLiteral<"CREATE_ACCESS_CODE">;
646
+ result: z.ZodAny;
647
+ }, "strip", z.ZodTypeAny, {
648
+ error: null;
649
+ status: "success";
650
+ action_attempt_id: string;
651
+ action_type: "CREATE_ACCESS_CODE";
652
+ result?: any;
653
+ }, {
654
+ error: null;
655
+ status: "success";
656
+ action_attempt_id: string;
657
+ action_type: "CREATE_ACCESS_CODE";
658
+ result?: any;
659
+ }>, z.ZodObject<{
660
+ status: z.ZodLiteral<"error">;
661
+ action_attempt_id: z.ZodString;
662
+ result: z.ZodNull;
663
+ action_type: z.ZodLiteral<"CREATE_ACCESS_CODE">;
664
+ error: z.ZodObject<{
665
+ type: z.ZodString;
666
+ message: z.ZodString;
667
+ }, "strip", z.ZodTypeAny, {
668
+ type: string;
669
+ message: string;
670
+ }, {
671
+ type: string;
672
+ message: string;
673
+ }>;
674
+ }, "strip", z.ZodTypeAny, {
675
+ error: {
676
+ type: string;
677
+ message: string;
678
+ };
679
+ status: "error";
680
+ action_attempt_id: string;
681
+ result: null;
682
+ action_type: "CREATE_ACCESS_CODE";
683
+ }, {
684
+ error: {
685
+ type: string;
686
+ message: string;
687
+ };
688
+ status: "error";
689
+ action_attempt_id: string;
690
+ result: null;
691
+ action_type: "CREATE_ACCESS_CODE";
692
+ }>, z.ZodObject<{
693
+ error: z.ZodNull;
694
+ status: z.ZodLiteral<"pending">;
695
+ action_attempt_id: z.ZodString;
696
+ result: z.ZodNull;
697
+ action_type: z.ZodLiteral<"DELETE_ACCESS_CODE">;
698
+ }, "strip", z.ZodTypeAny, {
699
+ error: null;
700
+ status: "pending";
701
+ action_attempt_id: string;
702
+ result: null;
703
+ action_type: "DELETE_ACCESS_CODE";
704
+ }, {
705
+ error: null;
706
+ status: "pending";
707
+ action_attempt_id: string;
708
+ result: null;
709
+ action_type: "DELETE_ACCESS_CODE";
710
+ }>, z.ZodObject<{
711
+ error: z.ZodNull;
712
+ status: z.ZodLiteral<"success">;
713
+ action_attempt_id: z.ZodString;
714
+ action_type: z.ZodLiteral<"DELETE_ACCESS_CODE">;
715
+ result: z.ZodAny;
716
+ }, "strip", z.ZodTypeAny, {
717
+ error: null;
718
+ status: "success";
719
+ action_attempt_id: string;
720
+ action_type: "DELETE_ACCESS_CODE";
721
+ result?: any;
722
+ }, {
723
+ error: null;
724
+ status: "success";
725
+ action_attempt_id: string;
726
+ action_type: "DELETE_ACCESS_CODE";
727
+ result?: any;
728
+ }>, z.ZodObject<{
729
+ status: z.ZodLiteral<"error">;
730
+ action_attempt_id: z.ZodString;
731
+ result: z.ZodNull;
732
+ action_type: z.ZodLiteral<"DELETE_ACCESS_CODE">;
733
+ error: z.ZodObject<{
734
+ type: z.ZodString;
735
+ message: z.ZodString;
736
+ }, "strip", z.ZodTypeAny, {
737
+ type: string;
738
+ message: string;
739
+ }, {
740
+ type: string;
741
+ message: string;
742
+ }>;
743
+ }, "strip", z.ZodTypeAny, {
744
+ error: {
745
+ type: string;
746
+ message: string;
747
+ };
748
+ status: "error";
749
+ action_attempt_id: string;
750
+ result: null;
751
+ action_type: "DELETE_ACCESS_CODE";
752
+ }, {
753
+ error: {
754
+ type: string;
755
+ message: string;
756
+ };
757
+ status: "error";
758
+ action_attempt_id: string;
759
+ result: null;
760
+ action_type: "DELETE_ACCESS_CODE";
761
+ }>, z.ZodObject<{
762
+ error: z.ZodNull;
763
+ status: z.ZodLiteral<"pending">;
764
+ action_attempt_id: z.ZodString;
765
+ result: z.ZodNull;
766
+ action_type: z.ZodLiteral<"UPDATE_ACCESS_CODE">;
767
+ }, "strip", z.ZodTypeAny, {
768
+ error: null;
769
+ status: "pending";
770
+ action_attempt_id: string;
771
+ result: null;
772
+ action_type: "UPDATE_ACCESS_CODE";
773
+ }, {
774
+ error: null;
775
+ status: "pending";
776
+ action_attempt_id: string;
777
+ result: null;
778
+ action_type: "UPDATE_ACCESS_CODE";
779
+ }>, z.ZodObject<{
780
+ error: z.ZodNull;
781
+ status: z.ZodLiteral<"success">;
782
+ action_attempt_id: z.ZodString;
783
+ action_type: z.ZodLiteral<"UPDATE_ACCESS_CODE">;
784
+ result: z.ZodAny;
785
+ }, "strip", z.ZodTypeAny, {
786
+ error: null;
787
+ status: "success";
788
+ action_attempt_id: string;
789
+ action_type: "UPDATE_ACCESS_CODE";
790
+ result?: any;
791
+ }, {
792
+ error: null;
793
+ status: "success";
794
+ action_attempt_id: string;
795
+ action_type: "UPDATE_ACCESS_CODE";
796
+ result?: any;
797
+ }>, z.ZodObject<{
798
+ status: z.ZodLiteral<"error">;
799
+ action_attempt_id: z.ZodString;
800
+ result: z.ZodNull;
801
+ action_type: z.ZodLiteral<"UPDATE_ACCESS_CODE">;
802
+ error: z.ZodObject<{
803
+ type: z.ZodString;
804
+ message: z.ZodString;
805
+ }, "strip", z.ZodTypeAny, {
806
+ type: string;
807
+ message: string;
808
+ }, {
809
+ type: string;
810
+ message: string;
811
+ }>;
812
+ }, "strip", z.ZodTypeAny, {
813
+ error: {
814
+ type: string;
815
+ message: string;
816
+ };
817
+ status: "error";
818
+ action_attempt_id: string;
819
+ result: null;
820
+ action_type: "UPDATE_ACCESS_CODE";
821
+ }, {
822
+ error: {
823
+ type: string;
824
+ message: string;
825
+ };
826
+ status: "error";
827
+ action_attempt_id: string;
828
+ result: null;
829
+ action_type: "UPDATE_ACCESS_CODE";
830
+ }>, z.ZodObject<{
831
+ error: z.ZodNull;
832
+ status: z.ZodLiteral<"pending">;
833
+ action_attempt_id: z.ZodString;
834
+ result: z.ZodNull;
835
+ action_type: z.ZodLiteral<"CREATE_NOISE_THRESHOLD">;
836
+ }, "strip", z.ZodTypeAny, {
837
+ error: null;
838
+ status: "pending";
839
+ action_attempt_id: string;
840
+ result: null;
841
+ action_type: "CREATE_NOISE_THRESHOLD";
842
+ }, {
843
+ error: null;
844
+ status: "pending";
845
+ action_attempt_id: string;
846
+ result: null;
847
+ action_type: "CREATE_NOISE_THRESHOLD";
848
+ }>, z.ZodObject<{
849
+ error: z.ZodNull;
850
+ status: z.ZodLiteral<"success">;
851
+ action_attempt_id: z.ZodString;
852
+ action_type: z.ZodLiteral<"CREATE_NOISE_THRESHOLD">;
853
+ result: z.ZodAny;
854
+ }, "strip", z.ZodTypeAny, {
855
+ error: null;
856
+ status: "success";
857
+ action_attempt_id: string;
858
+ action_type: "CREATE_NOISE_THRESHOLD";
859
+ result?: any;
860
+ }, {
861
+ error: null;
862
+ status: "success";
863
+ action_attempt_id: string;
864
+ action_type: "CREATE_NOISE_THRESHOLD";
865
+ result?: any;
866
+ }>, z.ZodObject<{
867
+ status: z.ZodLiteral<"error">;
868
+ action_attempt_id: z.ZodString;
869
+ result: z.ZodNull;
870
+ action_type: z.ZodLiteral<"CREATE_NOISE_THRESHOLD">;
871
+ error: z.ZodObject<{
872
+ type: z.ZodString;
873
+ message: z.ZodString;
874
+ }, "strip", z.ZodTypeAny, {
875
+ type: string;
876
+ message: string;
877
+ }, {
878
+ type: string;
879
+ message: string;
880
+ }>;
881
+ }, "strip", z.ZodTypeAny, {
882
+ error: {
883
+ type: string;
884
+ message: string;
885
+ };
886
+ status: "error";
887
+ action_attempt_id: string;
888
+ result: null;
889
+ action_type: "CREATE_NOISE_THRESHOLD";
890
+ }, {
891
+ error: {
892
+ type: string;
893
+ message: string;
894
+ };
895
+ status: "error";
896
+ action_attempt_id: string;
897
+ result: null;
898
+ action_type: "CREATE_NOISE_THRESHOLD";
899
+ }>, z.ZodObject<{
900
+ error: z.ZodNull;
901
+ status: z.ZodLiteral<"pending">;
902
+ action_attempt_id: z.ZodString;
903
+ result: z.ZodNull;
904
+ action_type: z.ZodLiteral<"DELETE_NOISE_THRESHOLD">;
905
+ }, "strip", z.ZodTypeAny, {
906
+ error: null;
907
+ status: "pending";
908
+ action_attempt_id: string;
909
+ result: null;
910
+ action_type: "DELETE_NOISE_THRESHOLD";
911
+ }, {
912
+ error: null;
913
+ status: "pending";
914
+ action_attempt_id: string;
915
+ result: null;
916
+ action_type: "DELETE_NOISE_THRESHOLD";
917
+ }>, z.ZodObject<{
918
+ error: z.ZodNull;
919
+ status: z.ZodLiteral<"success">;
920
+ action_attempt_id: z.ZodString;
921
+ action_type: z.ZodLiteral<"DELETE_NOISE_THRESHOLD">;
922
+ result: z.ZodAny;
923
+ }, "strip", z.ZodTypeAny, {
924
+ error: null;
925
+ status: "success";
926
+ action_attempt_id: string;
927
+ action_type: "DELETE_NOISE_THRESHOLD";
928
+ result?: any;
929
+ }, {
930
+ error: null;
931
+ status: "success";
932
+ action_attempt_id: string;
933
+ action_type: "DELETE_NOISE_THRESHOLD";
934
+ result?: any;
935
+ }>, z.ZodObject<{
936
+ status: z.ZodLiteral<"error">;
937
+ action_attempt_id: z.ZodString;
938
+ result: z.ZodNull;
939
+ action_type: z.ZodLiteral<"DELETE_NOISE_THRESHOLD">;
940
+ error: z.ZodObject<{
941
+ type: z.ZodString;
942
+ message: z.ZodString;
943
+ }, "strip", z.ZodTypeAny, {
944
+ type: string;
945
+ message: string;
946
+ }, {
947
+ type: string;
948
+ message: string;
949
+ }>;
950
+ }, "strip", z.ZodTypeAny, {
951
+ error: {
952
+ type: string;
953
+ message: string;
954
+ };
955
+ status: "error";
956
+ action_attempt_id: string;
957
+ result: null;
958
+ action_type: "DELETE_NOISE_THRESHOLD";
959
+ }, {
960
+ error: {
961
+ type: string;
962
+ message: string;
963
+ };
964
+ status: "error";
965
+ action_attempt_id: string;
966
+ result: null;
967
+ action_type: "DELETE_NOISE_THRESHOLD";
968
+ }>, z.ZodObject<{
969
+ error: z.ZodNull;
970
+ status: z.ZodLiteral<"pending">;
971
+ action_attempt_id: z.ZodString;
972
+ result: z.ZodNull;
973
+ action_type: z.ZodLiteral<"UPDATE_NOISE_THRESHOLD">;
974
+ }, "strip", z.ZodTypeAny, {
975
+ error: null;
976
+ status: "pending";
977
+ action_attempt_id: string;
978
+ result: null;
979
+ action_type: "UPDATE_NOISE_THRESHOLD";
980
+ }, {
981
+ error: null;
982
+ status: "pending";
983
+ action_attempt_id: string;
984
+ result: null;
985
+ action_type: "UPDATE_NOISE_THRESHOLD";
986
+ }>, z.ZodObject<{
987
+ error: z.ZodNull;
988
+ status: z.ZodLiteral<"success">;
989
+ action_attempt_id: z.ZodString;
990
+ action_type: z.ZodLiteral<"UPDATE_NOISE_THRESHOLD">;
991
+ result: z.ZodAny;
992
+ }, "strip", z.ZodTypeAny, {
993
+ error: null;
994
+ status: "success";
995
+ action_attempt_id: string;
996
+ action_type: "UPDATE_NOISE_THRESHOLD";
997
+ result?: any;
998
+ }, {
999
+ error: null;
1000
+ status: "success";
1001
+ action_attempt_id: string;
1002
+ action_type: "UPDATE_NOISE_THRESHOLD";
1003
+ result?: any;
1004
+ }>, z.ZodObject<{
1005
+ status: z.ZodLiteral<"error">;
1006
+ action_attempt_id: z.ZodString;
1007
+ result: z.ZodNull;
1008
+ action_type: z.ZodLiteral<"UPDATE_NOISE_THRESHOLD">;
1009
+ error: z.ZodObject<{
1010
+ type: z.ZodString;
1011
+ message: z.ZodString;
1012
+ }, "strip", z.ZodTypeAny, {
1013
+ type: string;
1014
+ message: string;
1015
+ }, {
1016
+ type: string;
1017
+ message: string;
1018
+ }>;
1019
+ }, "strip", z.ZodTypeAny, {
1020
+ error: {
1021
+ type: string;
1022
+ message: string;
1023
+ };
1024
+ status: "error";
1025
+ action_attempt_id: string;
1026
+ result: null;
1027
+ action_type: "UPDATE_NOISE_THRESHOLD";
1028
+ }, {
1029
+ error: {
1030
+ type: string;
1031
+ message: string;
1032
+ };
1033
+ status: "error";
1034
+ action_attempt_id: string;
1035
+ result: null;
1036
+ action_type: "UPDATE_NOISE_THRESHOLD";
1037
+ }>]>;
1038
+ export type ActionAttempt = z.infer<typeof action_attempt>;