@seamapi/types 1.253.1 → 1.255.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.
Files changed (27) hide show
  1. package/dist/connect.cjs +268 -69
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +1324 -2
  4. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +93 -0
  5. package/lib/seam/connect/models/action-attempts/action-attempt.js +2 -0
  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 +96 -0
  8. package/lib/seam/connect/models/action-attempts/encode-card.js +36 -0
  9. package/lib/seam/connect/models/action-attempts/encode-card.js.map +1 -0
  10. package/lib/seam/connect/models/events/devices.d.ts +91 -1
  11. package/lib/seam/connect/models/events/devices.js +5 -2
  12. package/lib/seam/connect/models/events/devices.js.map +1 -1
  13. package/lib/seam/connect/models/events/seam-event.d.ts +86 -0
  14. package/lib/seam/connect/models/thermostats/climate-preset.d.ts +29 -0
  15. package/lib/seam/connect/models/thermostats/climate-preset.js +8 -0
  16. package/lib/seam/connect/models/thermostats/climate-preset.js.map +1 -1
  17. package/lib/seam/connect/openapi.d.ts +116 -0
  18. package/lib/seam/connect/openapi.js +167 -0
  19. package/lib/seam/connect/openapi.js.map +1 -1
  20. package/lib/seam/connect/route-types.d.ts +1056 -29
  21. package/package.json +1 -1
  22. package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +2 -0
  23. package/src/lib/seam/connect/models/action-attempts/encode-card.ts +46 -0
  24. package/src/lib/seam/connect/models/events/devices.ts +5 -2
  25. package/src/lib/seam/connect/models/thermostats/climate-preset.ts +11 -0
  26. package/src/lib/seam/connect/openapi.ts +169 -0
  27. package/src/lib/seam/connect/route-types.ts +1157 -13
@@ -255,6 +255,99 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
255
255
  status: z.ZodLiteral<"pending">;
256
256
  result: z.ZodNull;
257
257
  error: z.ZodNull;
258
+ }>, {
259
+ action_type: z.ZodLiteral<"ENCODE_CARD">;
260
+ }>, "strip", z.ZodTypeAny, {
261
+ error: null;
262
+ status: "pending";
263
+ action_attempt_id: string;
264
+ result: null;
265
+ action_type: "ENCODE_CARD";
266
+ }, {
267
+ error: null;
268
+ status: "pending";
269
+ action_attempt_id: string;
270
+ result: null;
271
+ action_type: "ENCODE_CARD";
272
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
273
+ action_attempt_id: z.ZodString;
274
+ status: z.ZodEnum<["pending", "success", "error"]>;
275
+ }, {
276
+ status: z.ZodLiteral<"success">;
277
+ error: z.ZodNull;
278
+ }>, {
279
+ action_type: z.ZodLiteral<"ENCODE_CARD">;
280
+ result: z.ZodObject<{
281
+ acs_credential_id: z.ZodNullable<z.ZodString>;
282
+ card_number: z.ZodNullable<z.ZodString>;
283
+ }, "strip", z.ZodTypeAny, {
284
+ acs_credential_id: string | null;
285
+ card_number: string | null;
286
+ }, {
287
+ acs_credential_id: string | null;
288
+ card_number: string | null;
289
+ }>;
290
+ }>, "strip", z.ZodTypeAny, {
291
+ error: null;
292
+ status: "success";
293
+ action_attempt_id: string;
294
+ result: {
295
+ acs_credential_id: string | null;
296
+ card_number: string | null;
297
+ };
298
+ action_type: "ENCODE_CARD";
299
+ }, {
300
+ error: null;
301
+ status: "success";
302
+ action_attempt_id: string;
303
+ result: {
304
+ acs_credential_id: string | null;
305
+ card_number: string | null;
306
+ };
307
+ action_type: "ENCODE_CARD";
308
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
309
+ action_attempt_id: z.ZodString;
310
+ status: z.ZodEnum<["pending", "success", "error"]>;
311
+ }, {
312
+ status: z.ZodLiteral<"error">;
313
+ result: z.ZodNull;
314
+ }>, {
315
+ action_type: z.ZodLiteral<"ENCODE_CARD">;
316
+ error: z.ZodObject<{
317
+ type: z.ZodString;
318
+ message: z.ZodString;
319
+ }, "strip", z.ZodTypeAny, {
320
+ type: string;
321
+ message: string;
322
+ }, {
323
+ type: string;
324
+ message: string;
325
+ }>;
326
+ }>, "strip", z.ZodTypeAny, {
327
+ error: {
328
+ type: string;
329
+ message: string;
330
+ };
331
+ status: "error";
332
+ action_attempt_id: string;
333
+ result: null;
334
+ action_type: "ENCODE_CARD";
335
+ }, {
336
+ error: {
337
+ type: string;
338
+ message: string;
339
+ };
340
+ status: "error";
341
+ action_attempt_id: string;
342
+ result: null;
343
+ action_type: "ENCODE_CARD";
344
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
345
+ action_attempt_id: z.ZodString;
346
+ status: z.ZodEnum<["pending", "success", "error"]>;
347
+ }, {
348
+ status: z.ZodLiteral<"pending">;
349
+ result: z.ZodNull;
350
+ error: z.ZodNull;
258
351
  }>, {
259
352
  action_type: z.ZodLiteral<"RESET_SANDBOX_WORKSPACE">;
260
353
  }>, "strip", z.ZodTypeAny, {
@@ -1,6 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  import { activate_climate_preset_action_attempt } from './activate-climate-preset.js';
3
3
  import { deprecated_action_attempts } from './deprecated.js';
4
+ import { encode_card_action_attempt } from './encode-card.js';
4
5
  import { lock_door_action_attempt } from './lock-door.js';
5
6
  import { read_card_action_attempt } from './read-card.js';
6
7
  import { reset_sandbox_workspace_action_attempt } from './reset-sandbox-workspace.js';
@@ -14,6 +15,7 @@ export const action_attempt = z.union([
14
15
  ...lock_door_action_attempt.options,
15
16
  ...unlock_door_action_attempt.options,
16
17
  ...read_card_action_attempt.options,
18
+ ...encode_card_action_attempt.options,
17
19
  ...reset_sandbox_workspace_action_attempt.options,
18
20
  ...set_cool_action_attempt.options,
19
21
  ...set_heat_action_attempt.options,
@@ -1 +1 @@
1
- {"version":3,"file":"action-attempt.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/action-attempt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAA;AAC5D,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAA;AACvD,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAA;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAA;AACvD,OAAO,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAA;AACjE,OAAO,EAAE,iCAAiC,EAAE,MAAM,yBAAyB,CAAA;AAC3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAA;AAE7D,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC;IACpC,GAAG,wBAAwB,CAAC,OAAO;IACnC,GAAG,0BAA0B,CAAC,OAAO;IACrC,GAAG,wBAAwB,CAAC,OAAO;IACnC,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,uBAAuB,CAAC,OAAO;IAClC,GAAG,uBAAuB,CAAC,OAAO;IAClC,GAAG,4BAA4B,CAAC,OAAO;IACvC,GAAG,2BAA2B,CAAC,OAAO;IACtC,GAAG,iCAAiC,CAAC,OAAO;IAC5C,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,0BAA0B;CAC9B,CAAC,CAAA"}
1
+ {"version":3,"file":"action-attempt.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/action-attempt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAA;AAC5D,OAAO,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAA;AAC7D,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAA;AACvD,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAA;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAA;AACvD,OAAO,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAA;AACjE,OAAO,EAAE,iCAAiC,EAAE,MAAM,yBAAyB,CAAA;AAC3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAA;AAE7D,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC;IACpC,GAAG,wBAAwB,CAAC,OAAO;IACnC,GAAG,0BAA0B,CAAC,OAAO;IACrC,GAAG,wBAAwB,CAAC,OAAO;IACnC,GAAG,0BAA0B,CAAC,OAAO;IACrC,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,uBAAuB,CAAC,OAAO;IAClC,GAAG,uBAAuB,CAAC,OAAO;IAClC,GAAG,4BAA4B,CAAC,OAAO;IACvC,GAAG,2BAA2B,CAAC,OAAO;IACtC,GAAG,iCAAiC,CAAC,OAAO;IAC5C,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,0BAA0B;CAC9B,CAAC,CAAA"}
@@ -0,0 +1,96 @@
1
+ import { z } from 'zod';
2
+ export declare const encode_card_action_attempt: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
3
+ action_attempt_id: z.ZodString;
4
+ status: z.ZodEnum<["pending", "success", "error"]>;
5
+ }, {
6
+ status: z.ZodLiteral<"pending">;
7
+ result: z.ZodNull;
8
+ error: z.ZodNull;
9
+ }>, {
10
+ action_type: z.ZodLiteral<"ENCODE_CARD">;
11
+ }>, "strip", z.ZodTypeAny, {
12
+ error: null;
13
+ status: "pending";
14
+ action_attempt_id: string;
15
+ result: null;
16
+ action_type: "ENCODE_CARD";
17
+ }, {
18
+ error: null;
19
+ status: "pending";
20
+ action_attempt_id: string;
21
+ result: null;
22
+ action_type: "ENCODE_CARD";
23
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
24
+ action_attempt_id: z.ZodString;
25
+ status: z.ZodEnum<["pending", "success", "error"]>;
26
+ }, {
27
+ status: z.ZodLiteral<"success">;
28
+ error: z.ZodNull;
29
+ }>, {
30
+ action_type: z.ZodLiteral<"ENCODE_CARD">;
31
+ result: z.ZodObject<{
32
+ acs_credential_id: z.ZodNullable<z.ZodString>;
33
+ card_number: z.ZodNullable<z.ZodString>;
34
+ }, "strip", z.ZodTypeAny, {
35
+ acs_credential_id: string | null;
36
+ card_number: string | null;
37
+ }, {
38
+ acs_credential_id: string | null;
39
+ card_number: string | null;
40
+ }>;
41
+ }>, "strip", z.ZodTypeAny, {
42
+ error: null;
43
+ status: "success";
44
+ action_attempt_id: string;
45
+ result: {
46
+ acs_credential_id: string | null;
47
+ card_number: string | null;
48
+ };
49
+ action_type: "ENCODE_CARD";
50
+ }, {
51
+ error: null;
52
+ status: "success";
53
+ action_attempt_id: string;
54
+ result: {
55
+ acs_credential_id: string | null;
56
+ card_number: string | null;
57
+ };
58
+ action_type: "ENCODE_CARD";
59
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
60
+ action_attempt_id: z.ZodString;
61
+ status: z.ZodEnum<["pending", "success", "error"]>;
62
+ }, {
63
+ status: z.ZodLiteral<"error">;
64
+ result: z.ZodNull;
65
+ }>, {
66
+ action_type: z.ZodLiteral<"ENCODE_CARD">;
67
+ error: z.ZodObject<{
68
+ type: z.ZodString;
69
+ message: z.ZodString;
70
+ }, "strip", z.ZodTypeAny, {
71
+ type: string;
72
+ message: string;
73
+ }, {
74
+ type: string;
75
+ message: string;
76
+ }>;
77
+ }>, "strip", z.ZodTypeAny, {
78
+ error: {
79
+ type: string;
80
+ message: string;
81
+ };
82
+ status: "error";
83
+ action_attempt_id: string;
84
+ result: null;
85
+ action_type: "ENCODE_CARD";
86
+ }, {
87
+ error: {
88
+ type: string;
89
+ message: string;
90
+ };
91
+ status: "error";
92
+ action_attempt_id: string;
93
+ result: null;
94
+ action_type: "ENCODE_CARD";
95
+ }>]>;
96
+ export type EncodeCardActionAttempt = z.infer<typeof encode_card_action_attempt>;
@@ -0,0 +1,36 @@
1
+ import { z } from 'zod';
2
+ import { common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, } from './common.js';
3
+ const action_type = z.literal('ENCODE_CARD');
4
+ const error = z.object({
5
+ type: z.string(), // TODO This should be typed properly with the possible errors
6
+ message: z.string(),
7
+ });
8
+ const result = z.object({
9
+ acs_credential_id: z
10
+ .string()
11
+ .uuid()
12
+ .nullable()
13
+ .describe('Matching acs_credential currently encoded on this card.'),
14
+ card_number: z
15
+ .string()
16
+ .nullable()
17
+ .describe('A number or sting that physically identifies this card.'),
18
+ // TODO visionline_metadata: visionline_credential_metadata,
19
+ });
20
+ export const encode_card_action_attempt = z.discriminatedUnion('status', [
21
+ common_pending_action_attempt
22
+ .extend({
23
+ action_type,
24
+ })
25
+ .describe('Encoding card data from physical encoder.'),
26
+ common_succeeded_action_attempt
27
+ .extend({
28
+ action_type,
29
+ result,
30
+ })
31
+ .describe('Encoding card data from physical encoder succeeded.'),
32
+ common_failed_action_attempt
33
+ .extend({ action_type, error })
34
+ .describe('Encoding card data from physical encoder failed.'),
35
+ ]);
36
+ //# sourceMappingURL=encode-card.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"encode-card.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/encode-card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,aAAa,CAAA;AAEpB,MAAM,WAAW,GAAG,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC,CAAA;AAE5C,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;IACrB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,8DAA8D;IAChF,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAA;AAEF,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,iBAAiB,EAAE,CAAC;SACjB,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,EAAE;SACV,QAAQ,CAAC,yDAAyD,CAAC;IACtE,WAAW,EAAE,CAAC;SACX,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,yDAAyD,CAAC;IACtE,4DAA4D;CAC7D,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,kBAAkB,CAAC,QAAQ,EAAE;IACvE,6BAA6B;SAC1B,MAAM,CAAC;QACN,WAAW;KACZ,CAAC;SACD,QAAQ,CAAC,2CAA2C,CAAC;IACxD,+BAA+B;SAC5B,MAAM,CAAC;QACN,WAAW;QACX,MAAM;KACP,CAAC;SACD,QAAQ,CAAC,qDAAqD,CAAC;IAClE,4BAA4B;SACzB,MAAM,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;SAC9B,QAAQ,CAAC,kDAAkD,CAAC;CAChE,CAAC,CAAA"}
@@ -792,7 +792,7 @@ export declare const thermostat_climate_preset_activated_event: z.ZodObject<z.ob
792
792
  is_fallback_climate_preset: boolean;
793
793
  }>;
794
794
  export type ThermostatClimatePresetActivatedEvent = z.infer<typeof thermostat_climate_preset_activated_event>;
795
- export declare const thermostat_manually_adjusted_event: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
795
+ export declare const thermostat_manually_adjusted_event: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
796
796
  event_id: z.ZodString;
797
797
  workspace_id: z.ZodString;
798
798
  created_at: z.ZodString;
@@ -800,6 +800,8 @@ export declare const thermostat_manually_adjusted_event: z.ZodObject<z.objectUti
800
800
  }, {
801
801
  device_id: z.ZodString;
802
802
  connected_account_id: z.ZodString;
803
+ }>, {
804
+ event_type: z.ZodLiteral<"thermostat.manually_adjusted">;
803
805
  }>, Pick<{
804
806
  climate_preset_key: z.ZodOptional<z.ZodString>;
805
807
  can_edit: z.ZodOptional<z.ZodBoolean>;
@@ -820,6 +822,7 @@ export declare const thermostat_manually_adjusted_event: z.ZodObject<z.objectUti
820
822
  workspace_id: string;
821
823
  event_id: string;
822
824
  occurred_at: string;
825
+ event_type: "thermostat.manually_adjusted";
823
826
  fan_mode_setting?: "auto" | "on" | "circulate" | undefined;
824
827
  hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
825
828
  cooling_set_point_celsius?: number | undefined;
@@ -833,6 +836,7 @@ export declare const thermostat_manually_adjusted_event: z.ZodObject<z.objectUti
833
836
  workspace_id: string;
834
837
  event_id: string;
835
838
  occurred_at: string;
839
+ event_type: "thermostat.manually_adjusted";
836
840
  fan_mode_setting?: "auto" | "on" | "circulate" | undefined;
837
841
  hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
838
842
  cooling_set_point_celsius?: number | undefined;
@@ -1545,4 +1549,90 @@ export declare const device_events: readonly [z.ZodObject<z.objectUtil.extendSha
1545
1549
  occurred_at: string;
1546
1550
  event_type: "lock.access_denied";
1547
1551
  access_code_id?: string | undefined;
1552
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
1553
+ event_id: z.ZodString;
1554
+ workspace_id: z.ZodString;
1555
+ created_at: z.ZodString;
1556
+ occurred_at: z.ZodString;
1557
+ }, {
1558
+ device_id: z.ZodString;
1559
+ connected_account_id: z.ZodString;
1560
+ }>, {
1561
+ event_type: z.ZodLiteral<"thermostat.climate_preset_activated">;
1562
+ thermostat_schedule_id: z.ZodNullable<z.ZodString>;
1563
+ climate_preset_key: z.ZodString;
1564
+ is_fallback_climate_preset: z.ZodBoolean;
1565
+ }>, "strip", z.ZodTypeAny, {
1566
+ connected_account_id: string;
1567
+ created_at: string;
1568
+ climate_preset_key: string;
1569
+ thermostat_schedule_id: string | null;
1570
+ device_id: string;
1571
+ workspace_id: string;
1572
+ event_id: string;
1573
+ occurred_at: string;
1574
+ event_type: "thermostat.climate_preset_activated";
1575
+ is_fallback_climate_preset: boolean;
1576
+ }, {
1577
+ connected_account_id: string;
1578
+ created_at: string;
1579
+ climate_preset_key: string;
1580
+ thermostat_schedule_id: string | null;
1581
+ device_id: string;
1582
+ workspace_id: string;
1583
+ event_id: string;
1584
+ occurred_at: string;
1585
+ event_type: "thermostat.climate_preset_activated";
1586
+ is_fallback_climate_preset: boolean;
1587
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
1588
+ event_id: z.ZodString;
1589
+ workspace_id: z.ZodString;
1590
+ created_at: z.ZodString;
1591
+ occurred_at: z.ZodString;
1592
+ }, {
1593
+ device_id: z.ZodString;
1594
+ connected_account_id: z.ZodString;
1595
+ }>, {
1596
+ event_type: z.ZodLiteral<"thermostat.manually_adjusted">;
1597
+ }>, Pick<{
1598
+ climate_preset_key: z.ZodOptional<z.ZodString>;
1599
+ can_edit: z.ZodOptional<z.ZodBoolean>;
1600
+ can_delete: z.ZodOptional<z.ZodBoolean>;
1601
+ name: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>>;
1602
+ display_name: z.ZodOptional<z.ZodString>;
1603
+ fan_mode_setting: z.ZodOptional<z.ZodOptional<z.ZodEnum<["auto", "on", "circulate"]>>>;
1604
+ hvac_mode_setting: z.ZodOptional<z.ZodOptional<z.ZodEnum<["off", "heat", "cool", "heat_cool"]>>>;
1605
+ cooling_set_point_celsius: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1606
+ heating_set_point_celsius: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1607
+ cooling_set_point_fahrenheit: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1608
+ heating_set_point_fahrenheit: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1609
+ manual_override_allowed: z.ZodOptional<z.ZodBoolean>;
1610
+ }, "fan_mode_setting" | "hvac_mode_setting" | "cooling_set_point_celsius" | "heating_set_point_celsius" | "cooling_set_point_fahrenheit" | "heating_set_point_fahrenheit">>, "strip", z.ZodTypeAny, {
1611
+ connected_account_id: string;
1612
+ created_at: string;
1613
+ device_id: string;
1614
+ workspace_id: string;
1615
+ event_id: string;
1616
+ occurred_at: string;
1617
+ event_type: "thermostat.manually_adjusted";
1618
+ fan_mode_setting?: "auto" | "on" | "circulate" | undefined;
1619
+ hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
1620
+ cooling_set_point_celsius?: number | undefined;
1621
+ heating_set_point_celsius?: number | undefined;
1622
+ cooling_set_point_fahrenheit?: number | undefined;
1623
+ heating_set_point_fahrenheit?: number | undefined;
1624
+ }, {
1625
+ connected_account_id: string;
1626
+ created_at: string;
1627
+ device_id: string;
1628
+ workspace_id: string;
1629
+ event_id: string;
1630
+ occurred_at: string;
1631
+ event_type: "thermostat.manually_adjusted";
1632
+ fan_mode_setting?: "auto" | "on" | "circulate" | undefined;
1633
+ hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
1634
+ cooling_set_point_celsius?: number | undefined;
1635
+ heating_set_point_celsius?: number | undefined;
1636
+ cooling_set_point_fahrenheit?: number | undefined;
1637
+ heating_set_point_fahrenheit?: number | undefined;
1548
1638
  }>];
@@ -213,6 +213,9 @@ export const thermostat_climate_preset_activated_event = device_event
213
213
  })
214
214
  .describe('A thermostat climate preset was activated.');
215
215
  export const thermostat_manually_adjusted_event = device_event
216
+ .extend({
217
+ event_type: z.literal('thermostat.manually_adjusted'),
218
+ })
216
219
  .merge(climate_setting.pick({
217
220
  fan_mode_setting: true,
218
221
  hvac_mode_setting: true,
@@ -248,7 +251,7 @@ export const device_events = [
248
251
  lock_locked_event,
249
252
  lock_unlocked_event,
250
253
  lock_access_denied_event,
251
- // thermostat_climate_preset_activated_event,
252
- // thermostat_manually_adjusted_event,
254
+ thermostat_climate_preset_activated_event,
255
+ thermostat_manually_adjusted_event,
253
256
  ];
254
257
  //# sourceMappingURL=devices.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"devices.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/events/devices.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE1C,MAAM,YAAY,GAAG,YAAY,CAAC,MAAM,CAAC;IACvC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC;;;;;GAKrC,CAAC;IACF,oBAAoB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC;;;;;GAKhD,CAAC;CACH,CAAC,CAAA;AAEF,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC;;;;;CAKvD,CAAC,CAAA;AAEF,MAAM,qBAAqB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;KACtE,QAAQ,CAAC;;;;;CAKX,CAAC,CAAA;AAEF,MAAM,wBAAwB,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,EAAE,IAAI;IAC/B,4BAA4B,EAAE,IAAI;IAClC,4BAA4B,EAAE,IAAI;CACnC,CAAC,CACH;KACA,QAAQ,CAAC,qCAAqC,CAAC,CAAA;AAMlD,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,sBAAsB;IACtB,mCAAmC;IACnC,2CAA2C;IAC3C,gCAAgC;IAChC,yBAAyB;IACzB,mCAAmC;IACnC,qBAAqB;IACrB,wBAAwB;IACxB,mCAAmC;IACnC,oBAAoB;IACpB,oBAAoB;IACpB,6CAA6C;IAC7C,uDAAuD;IACvD,yCAAyC;IACzC,2CAA2C;IAC3C,oCAAoC;IACpC,kCAAkC;IAClC,wCAAwC;IACxC,iDAAiD;IACjD,uCAAuC;IACvC,0CAA0C;IAC1C,4CAA4C;IAC5C,iBAAiB;IACjB,mBAAmB;IACnB,wBAAwB;IACxB,6CAA6C;IAC7C,sCAAsC;CAC9B,CAAA"}
1
+ {"version":3,"file":"devices.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/events/devices.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE1C,MAAM,YAAY,GAAG,YAAY,CAAC,MAAM,CAAC;IACvC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC;;;;;GAKrC,CAAC;IACF,oBAAoB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC;;;;;GAKhD,CAAC;CACH,CAAC,CAAA;AAEF,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC;;;;;CAKvD,CAAC,CAAA;AAEF,MAAM,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AM,kCAAkC,GAAG,YAAY;KAC3D,MAAM,CAAC;IACN,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,8BAA8B,CAAC;CACtD,CAAC;KACD,KAAK,CACJ,eAAe,CAAC,IAAI,CAAC;IACnB,gBAAgB,EAAE,IAAI;IACtB,iBAAiB,EAAE,IAAI;IACvB,yBAAyB,EAAE,IAAI;IAC/B,yBAAyB,EAAE,IAAI;IAC/B,4BAA4B,EAAE,IAAI;IAClC,4BAA4B,EAAE,IAAI;CACnC,CAAC,CACH;KACA,QAAQ,CAAC,qCAAqC,CAAC,CAAA;AAMlD,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,sBAAsB;IACtB,mCAAmC;IACnC,2CAA2C;IAC3C,gCAAgC;IAChC,yBAAyB;IACzB,mCAAmC;IACnC,qBAAqB;IACrB,wBAAwB;IACxB,mCAAmC;IACnC,oBAAoB;IACpB,oBAAoB;IACpB,6CAA6C;IAC7C,uDAAuD;IACvD,yCAAyC;IACzC,2CAA2C;IAC3C,oCAAoC;IACpC,kCAAkC;IAClC,wCAAwC;IACxC,iDAAiD;IACjD,uCAAuC;IACvC,0CAA0C;IAC1C,4CAA4C;IAC5C,iBAAiB;IACjB,mBAAmB;IACnB,wBAAwB;IACxB,yCAAyC;IACzC,kCAAkC;CAC1B,CAAA"}
@@ -1567,6 +1567,92 @@ export declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObj
1567
1567
  workspace_id: z.ZodString;
1568
1568
  created_at: z.ZodString;
1569
1569
  occurred_at: z.ZodString;
1570
+ }, {
1571
+ device_id: z.ZodString;
1572
+ connected_account_id: z.ZodString;
1573
+ }>, {
1574
+ event_type: z.ZodLiteral<"thermostat.climate_preset_activated">;
1575
+ thermostat_schedule_id: z.ZodNullable<z.ZodString>;
1576
+ climate_preset_key: z.ZodString;
1577
+ is_fallback_climate_preset: z.ZodBoolean;
1578
+ }>, "strip", z.ZodTypeAny, {
1579
+ connected_account_id: string;
1580
+ created_at: string;
1581
+ climate_preset_key: string;
1582
+ thermostat_schedule_id: string | null;
1583
+ device_id: string;
1584
+ workspace_id: string;
1585
+ event_id: string;
1586
+ occurred_at: string;
1587
+ event_type: "thermostat.climate_preset_activated";
1588
+ is_fallback_climate_preset: boolean;
1589
+ }, {
1590
+ connected_account_id: string;
1591
+ created_at: string;
1592
+ climate_preset_key: string;
1593
+ thermostat_schedule_id: string | null;
1594
+ device_id: string;
1595
+ workspace_id: string;
1596
+ event_id: string;
1597
+ occurred_at: string;
1598
+ event_type: "thermostat.climate_preset_activated";
1599
+ is_fallback_climate_preset: boolean;
1600
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
1601
+ event_id: z.ZodString;
1602
+ workspace_id: z.ZodString;
1603
+ created_at: z.ZodString;
1604
+ occurred_at: z.ZodString;
1605
+ }, {
1606
+ device_id: z.ZodString;
1607
+ connected_account_id: z.ZodString;
1608
+ }>, {
1609
+ event_type: z.ZodLiteral<"thermostat.manually_adjusted">;
1610
+ }>, Pick<{
1611
+ climate_preset_key: z.ZodOptional<z.ZodString>;
1612
+ can_edit: z.ZodOptional<z.ZodBoolean>;
1613
+ can_delete: z.ZodOptional<z.ZodBoolean>;
1614
+ name: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>>;
1615
+ display_name: z.ZodOptional<z.ZodString>;
1616
+ fan_mode_setting: z.ZodOptional<z.ZodOptional<z.ZodEnum<["auto", "on", "circulate"]>>>;
1617
+ hvac_mode_setting: z.ZodOptional<z.ZodOptional<z.ZodEnum<["off", "heat", "cool", "heat_cool"]>>>;
1618
+ cooling_set_point_celsius: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1619
+ heating_set_point_celsius: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1620
+ cooling_set_point_fahrenheit: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1621
+ heating_set_point_fahrenheit: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1622
+ manual_override_allowed: z.ZodOptional<z.ZodBoolean>;
1623
+ }, "fan_mode_setting" | "hvac_mode_setting" | "cooling_set_point_celsius" | "heating_set_point_celsius" | "cooling_set_point_fahrenheit" | "heating_set_point_fahrenheit">>, "strip", z.ZodTypeAny, {
1624
+ connected_account_id: string;
1625
+ created_at: string;
1626
+ device_id: string;
1627
+ workspace_id: string;
1628
+ event_id: string;
1629
+ occurred_at: string;
1630
+ event_type: "thermostat.manually_adjusted";
1631
+ fan_mode_setting?: "auto" | "on" | "circulate" | undefined;
1632
+ hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
1633
+ cooling_set_point_celsius?: number | undefined;
1634
+ heating_set_point_celsius?: number | undefined;
1635
+ cooling_set_point_fahrenheit?: number | undefined;
1636
+ heating_set_point_fahrenheit?: number | undefined;
1637
+ }, {
1638
+ connected_account_id: string;
1639
+ created_at: string;
1640
+ device_id: string;
1641
+ workspace_id: string;
1642
+ event_id: string;
1643
+ occurred_at: string;
1644
+ event_type: "thermostat.manually_adjusted";
1645
+ fan_mode_setting?: "auto" | "on" | "circulate" | undefined;
1646
+ hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
1647
+ cooling_set_point_celsius?: number | undefined;
1648
+ heating_set_point_celsius?: number | undefined;
1649
+ cooling_set_point_fahrenheit?: number | undefined;
1650
+ heating_set_point_fahrenheit?: number | undefined;
1651
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
1652
+ event_id: z.ZodString;
1653
+ workspace_id: z.ZodString;
1654
+ created_at: z.ZodString;
1655
+ occurred_at: z.ZodString;
1570
1656
  }, {
1571
1657
  enrollment_automation_id: z.ZodString;
1572
1658
  }>, {
@@ -81,3 +81,32 @@ export declare const climate_setting: z.ZodObject<{
81
81
  manual_override_allowed?: boolean | undefined;
82
82
  }>;
83
83
  export type ClimateSetting = z.infer<typeof climate_setting>;
84
+ export declare const climate_setting_manual: z.ZodObject<Pick<{
85
+ climate_preset_key: z.ZodOptional<z.ZodString>;
86
+ can_edit: z.ZodOptional<z.ZodBoolean>;
87
+ can_delete: z.ZodOptional<z.ZodBoolean>;
88
+ name: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>>;
89
+ display_name: z.ZodOptional<z.ZodString>;
90
+ fan_mode_setting: z.ZodOptional<z.ZodOptional<z.ZodEnum<["auto", "on", "circulate"]>>>;
91
+ hvac_mode_setting: z.ZodOptional<z.ZodOptional<z.ZodEnum<["off", "heat", "cool", "heat_cool"]>>>;
92
+ cooling_set_point_celsius: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
93
+ heating_set_point_celsius: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
94
+ cooling_set_point_fahrenheit: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
95
+ heating_set_point_fahrenheit: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
96
+ manual_override_allowed: z.ZodOptional<z.ZodBoolean>;
97
+ }, "fan_mode_setting" | "hvac_mode_setting" | "cooling_set_point_celsius" | "heating_set_point_celsius" | "cooling_set_point_fahrenheit" | "heating_set_point_fahrenheit">, "strip", z.ZodTypeAny, {
98
+ fan_mode_setting?: "auto" | "on" | "circulate" | undefined;
99
+ hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
100
+ cooling_set_point_celsius?: number | undefined;
101
+ heating_set_point_celsius?: number | undefined;
102
+ cooling_set_point_fahrenheit?: number | undefined;
103
+ heating_set_point_fahrenheit?: number | undefined;
104
+ }, {
105
+ fan_mode_setting?: "auto" | "on" | "circulate" | undefined;
106
+ hvac_mode_setting?: "off" | "heat" | "cool" | "heat_cool" | undefined;
107
+ cooling_set_point_celsius?: number | undefined;
108
+ heating_set_point_celsius?: number | undefined;
109
+ cooling_set_point_fahrenheit?: number | undefined;
110
+ heating_set_point_fahrenheit?: number | undefined;
111
+ }>;
112
+ export type ClimateSettingManual = z.infer<typeof climate_setting_manual>;
@@ -15,4 +15,12 @@ export const climate_preset = z.object({
15
15
  manual_override_allowed: z.boolean(),
16
16
  });
17
17
  export const climate_setting = climate_preset.partial();
18
+ export const climate_setting_manual = climate_setting.pick({
19
+ fan_mode_setting: true,
20
+ hvac_mode_setting: true,
21
+ cooling_set_point_celsius: true,
22
+ heating_set_point_celsius: true,
23
+ cooling_set_point_fahrenheit: true,
24
+ heating_set_point_fahrenheit: true,
25
+ });
18
26
  //# sourceMappingURL=climate-preset.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"climate-preset.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/thermostats/climate-preset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAEhE,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC9B,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE;IACrB,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE;IACvB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE;IACpD,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,gBAAgB,EAAE,gBAAgB,CAAC,QAAQ,EAAE;IAC7C,iBAAiB,EAAE,iBAAiB,CAAC,QAAQ,EAAE;IAC/C,yBAAyB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChD,yBAAyB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChD,4BAA4B,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnD,4BAA4B,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACn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