@seamapi/types 1.303.1 → 1.305.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.
- package/dist/connect.cjs +112 -13
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +610 -2
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +78 -0
- package/lib/seam/connect/models/action-attempts/action-attempt.js +2 -0
- package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/set-hvac-mode.d.ts +80 -0
- package/lib/seam/connect/models/action-attempts/set-hvac-mode.js +25 -0
- package/lib/seam/connect/models/action-attempts/set-hvac-mode.js.map +1 -0
- package/lib/seam/connect/models/events/acs/index.d.ts +26 -0
- package/lib/seam/connect/models/events/acs/systems.d.ts +54 -0
- package/lib/seam/connect/models/events/acs/systems.js +6 -0
- package/lib/seam/connect/models/events/acs/systems.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +26 -0
- package/lib/seam/connect/openapi.js +78 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +506 -2
- package/package.json +1 -1
- package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +2 -0
- package/src/lib/seam/connect/models/action-attempts/set-hvac-mode.ts +33 -0
- package/src/lib/seam/connect/models/events/acs/systems.ts +11 -0
- package/src/lib/seam/connect/openapi.ts +78 -0
- package/src/lib/seam/connect/route-types.ts +569 -0
|
@@ -2608,6 +2608,84 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
2608
2608
|
status: z.ZodLiteral<"pending">;
|
|
2609
2609
|
result: z.ZodNull;
|
|
2610
2610
|
error: z.ZodNull;
|
|
2611
|
+
}>, {
|
|
2612
|
+
action_type: z.ZodLiteral<"SET_HVAC_MODE">;
|
|
2613
|
+
}>, "strip", z.ZodTypeAny, {
|
|
2614
|
+
error: null;
|
|
2615
|
+
status: "pending";
|
|
2616
|
+
action_attempt_id: string;
|
|
2617
|
+
result: null;
|
|
2618
|
+
action_type: "SET_HVAC_MODE";
|
|
2619
|
+
}, {
|
|
2620
|
+
error: null;
|
|
2621
|
+
status: "pending";
|
|
2622
|
+
action_attempt_id: string;
|
|
2623
|
+
result: null;
|
|
2624
|
+
action_type: "SET_HVAC_MODE";
|
|
2625
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
2626
|
+
action_attempt_id: z.ZodString;
|
|
2627
|
+
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
2628
|
+
}, {
|
|
2629
|
+
status: z.ZodLiteral<"success">;
|
|
2630
|
+
error: z.ZodNull;
|
|
2631
|
+
}>, {
|
|
2632
|
+
action_type: z.ZodLiteral<"SET_HVAC_MODE">;
|
|
2633
|
+
result: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
2634
|
+
}>, "strip", z.ZodTypeAny, {
|
|
2635
|
+
error: null;
|
|
2636
|
+
status: "success";
|
|
2637
|
+
action_attempt_id: string;
|
|
2638
|
+
result: {};
|
|
2639
|
+
action_type: "SET_HVAC_MODE";
|
|
2640
|
+
}, {
|
|
2641
|
+
error: null;
|
|
2642
|
+
status: "success";
|
|
2643
|
+
action_attempt_id: string;
|
|
2644
|
+
result: {};
|
|
2645
|
+
action_type: "SET_HVAC_MODE";
|
|
2646
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
2647
|
+
action_attempt_id: z.ZodString;
|
|
2648
|
+
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
2649
|
+
}, {
|
|
2650
|
+
status: z.ZodLiteral<"error">;
|
|
2651
|
+
result: z.ZodNull;
|
|
2652
|
+
}>, {
|
|
2653
|
+
action_type: z.ZodLiteral<"SET_HVAC_MODE">;
|
|
2654
|
+
error: z.ZodObject<{
|
|
2655
|
+
type: z.ZodString;
|
|
2656
|
+
message: z.ZodString;
|
|
2657
|
+
}, "strip", z.ZodTypeAny, {
|
|
2658
|
+
type: string;
|
|
2659
|
+
message: string;
|
|
2660
|
+
}, {
|
|
2661
|
+
type: string;
|
|
2662
|
+
message: string;
|
|
2663
|
+
}>;
|
|
2664
|
+
}>, "strip", z.ZodTypeAny, {
|
|
2665
|
+
error: {
|
|
2666
|
+
type: string;
|
|
2667
|
+
message: string;
|
|
2668
|
+
};
|
|
2669
|
+
status: "error";
|
|
2670
|
+
action_attempt_id: string;
|
|
2671
|
+
result: null;
|
|
2672
|
+
action_type: "SET_HVAC_MODE";
|
|
2673
|
+
}, {
|
|
2674
|
+
error: {
|
|
2675
|
+
type: string;
|
|
2676
|
+
message: string;
|
|
2677
|
+
};
|
|
2678
|
+
status: "error";
|
|
2679
|
+
action_attempt_id: string;
|
|
2680
|
+
result: null;
|
|
2681
|
+
action_type: "SET_HVAC_MODE";
|
|
2682
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
2683
|
+
action_attempt_id: z.ZodString;
|
|
2684
|
+
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
2685
|
+
}, {
|
|
2686
|
+
status: z.ZodLiteral<"pending">;
|
|
2687
|
+
result: z.ZodNull;
|
|
2688
|
+
error: z.ZodNull;
|
|
2611
2689
|
}>, {
|
|
2612
2690
|
action_type: z.ZodLiteral<"ACTIVATE_CLIMATE_PRESET">;
|
|
2613
2691
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -9,6 +9,7 @@ import { set_cool_action_attempt } from './set-cool.js';
|
|
|
9
9
|
import { set_fan_mode_action_attempt } from './set-fan-mode.js';
|
|
10
10
|
import { set_heat_action_attempt } from './set-heat.js';
|
|
11
11
|
import { set_heat_cool_action_attempt } from './set-heat-cool.js';
|
|
12
|
+
import { set_hvac_mode_action_attempt } from './set-hvac-mode.js';
|
|
12
13
|
import { set_thermostat_off_action_attempt } from './set-thermostat-off.js';
|
|
13
14
|
import { unlock_door_action_attempt } from './unlock-door.js';
|
|
14
15
|
export const action_attempt = z.union([
|
|
@@ -22,6 +23,7 @@ export const action_attempt = z.union([
|
|
|
22
23
|
...set_heat_cool_action_attempt.options,
|
|
23
24
|
...set_fan_mode_action_attempt.options,
|
|
24
25
|
...set_thermostat_off_action_attempt.options,
|
|
26
|
+
...set_hvac_mode_action_attempt.options,
|
|
25
27
|
...activate_climate_preset_action_attempt.options,
|
|
26
28
|
...deprecated_action_attempts,
|
|
27
29
|
]);
|
|
@@ -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,gCAAgC,EAAE,MAAM,wBAAwB,CAAA;AACzE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAA;AACrE,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,8BAA8B,CAAC,OAAO;IACzC,GAAG,gCAAgC,CAAC,OAAO;IAC3C,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,gCAAgC,EAAE,MAAM,wBAAwB,CAAA;AACzE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAA;AACrE,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,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,8BAA8B,CAAC,OAAO;IACzC,GAAG,gCAAgC,CAAC,OAAO;IAC3C,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,4BAA4B,CAAC,OAAO;IACvC,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,0BAA0B;CAC9B,CAAC,CAAA"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const set_hvac_mode_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<"SET_HVAC_MODE">;
|
|
11
|
+
}>, "strip", z.ZodTypeAny, {
|
|
12
|
+
error: null;
|
|
13
|
+
status: "pending";
|
|
14
|
+
action_attempt_id: string;
|
|
15
|
+
result: null;
|
|
16
|
+
action_type: "SET_HVAC_MODE";
|
|
17
|
+
}, {
|
|
18
|
+
error: null;
|
|
19
|
+
status: "pending";
|
|
20
|
+
action_attempt_id: string;
|
|
21
|
+
result: null;
|
|
22
|
+
action_type: "SET_HVAC_MODE";
|
|
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<"SET_HVAC_MODE">;
|
|
31
|
+
result: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
32
|
+
}>, "strip", z.ZodTypeAny, {
|
|
33
|
+
error: null;
|
|
34
|
+
status: "success";
|
|
35
|
+
action_attempt_id: string;
|
|
36
|
+
result: {};
|
|
37
|
+
action_type: "SET_HVAC_MODE";
|
|
38
|
+
}, {
|
|
39
|
+
error: null;
|
|
40
|
+
status: "success";
|
|
41
|
+
action_attempt_id: string;
|
|
42
|
+
result: {};
|
|
43
|
+
action_type: "SET_HVAC_MODE";
|
|
44
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
45
|
+
action_attempt_id: z.ZodString;
|
|
46
|
+
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
47
|
+
}, {
|
|
48
|
+
status: z.ZodLiteral<"error">;
|
|
49
|
+
result: z.ZodNull;
|
|
50
|
+
}>, {
|
|
51
|
+
action_type: z.ZodLiteral<"SET_HVAC_MODE">;
|
|
52
|
+
error: z.ZodObject<{
|
|
53
|
+
type: z.ZodString;
|
|
54
|
+
message: z.ZodString;
|
|
55
|
+
}, "strip", z.ZodTypeAny, {
|
|
56
|
+
type: string;
|
|
57
|
+
message: string;
|
|
58
|
+
}, {
|
|
59
|
+
type: string;
|
|
60
|
+
message: string;
|
|
61
|
+
}>;
|
|
62
|
+
}>, "strip", z.ZodTypeAny, {
|
|
63
|
+
error: {
|
|
64
|
+
type: string;
|
|
65
|
+
message: string;
|
|
66
|
+
};
|
|
67
|
+
status: "error";
|
|
68
|
+
action_attempt_id: string;
|
|
69
|
+
result: null;
|
|
70
|
+
action_type: "SET_HVAC_MODE";
|
|
71
|
+
}, {
|
|
72
|
+
error: {
|
|
73
|
+
type: string;
|
|
74
|
+
message: string;
|
|
75
|
+
};
|
|
76
|
+
status: "error";
|
|
77
|
+
action_attempt_id: string;
|
|
78
|
+
result: null;
|
|
79
|
+
action_type: "SET_HVAC_MODE";
|
|
80
|
+
}>]>;
|
|
@@ -0,0 +1,25 @@
|
|
|
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('SET_HVAC_MODE');
|
|
4
|
+
const error = z.object({
|
|
5
|
+
type: z.string(),
|
|
6
|
+
message: z.string(),
|
|
7
|
+
});
|
|
8
|
+
const result = z.object({});
|
|
9
|
+
export const set_hvac_mode_action_attempt = z.discriminatedUnion('status', [
|
|
10
|
+
common_pending_action_attempt
|
|
11
|
+
.extend({
|
|
12
|
+
action_type,
|
|
13
|
+
})
|
|
14
|
+
.describe('Setting HVAC mode.'),
|
|
15
|
+
common_succeeded_action_attempt
|
|
16
|
+
.extend({
|
|
17
|
+
action_type,
|
|
18
|
+
result,
|
|
19
|
+
})
|
|
20
|
+
.describe('Setting HVAC mode succeeded.'),
|
|
21
|
+
common_failed_action_attempt
|
|
22
|
+
.extend({ action_type, error })
|
|
23
|
+
.describe('Setting HVAC mode failed.'),
|
|
24
|
+
]);
|
|
25
|
+
//# sourceMappingURL=set-hvac-mode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set-hvac-mode.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/set-hvac-mode.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,eAAe,CAAC,CAAA;AAE9C,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;IACrB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAA;AAEF,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;AAE3B,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,kBAAkB,CAAC,QAAQ,EAAE;IACzE,6BAA6B;SAC1B,MAAM,CAAC;QACN,WAAW;KACZ,CAAC;SACD,QAAQ,CAAC,oBAAoB,CAAC;IACjC,+BAA+B;SAC5B,MAAM,CAAC;QACN,WAAW;QACX,MAAM;KACP,CAAC;SACD,QAAQ,CAAC,8BAA8B,CAAC;IAC3C,4BAA4B;SACzB,MAAM,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;SAC9B,QAAQ,CAAC,2BAA2B,CAAC;CACzC,CAAC,CAAA"}
|
|
@@ -58,6 +58,32 @@ export declare const acs_events: readonly [import("zod").ZodObject<import("zod")
|
|
|
58
58
|
}, {
|
|
59
59
|
connected_account_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
60
60
|
acs_system_id: import("zod").ZodString;
|
|
61
|
+
}>, {}>, {
|
|
62
|
+
event_type: import("zod").ZodLiteral<"acs_system.disconnected">;
|
|
63
|
+
}>, "strip", import("zod").ZodTypeAny, {
|
|
64
|
+
created_at: string;
|
|
65
|
+
workspace_id: string;
|
|
66
|
+
acs_system_id: string;
|
|
67
|
+
event_id: string;
|
|
68
|
+
occurred_at: string;
|
|
69
|
+
event_type: "acs_system.disconnected";
|
|
70
|
+
connected_account_id?: string | undefined;
|
|
71
|
+
}, {
|
|
72
|
+
created_at: string;
|
|
73
|
+
workspace_id: string;
|
|
74
|
+
acs_system_id: string;
|
|
75
|
+
event_id: string;
|
|
76
|
+
occurred_at: string;
|
|
77
|
+
event_type: "acs_system.disconnected";
|
|
78
|
+
connected_account_id?: string | undefined;
|
|
79
|
+
}>, import("zod").ZodObject<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<{
|
|
80
|
+
event_id: import("zod").ZodString;
|
|
81
|
+
workspace_id: import("zod").ZodString;
|
|
82
|
+
created_at: import("zod").ZodString;
|
|
83
|
+
occurred_at: import("zod").ZodString;
|
|
84
|
+
}, {
|
|
85
|
+
connected_account_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
86
|
+
acs_system_id: import("zod").ZodString;
|
|
61
87
|
}>, {
|
|
62
88
|
acs_credential_id: import("zod").ZodString;
|
|
63
89
|
}>, {
|
|
@@ -27,6 +27,34 @@ export declare const acs_system_connected_event: z.ZodObject<z.objectUtil.extend
|
|
|
27
27
|
connected_account_id?: string | undefined;
|
|
28
28
|
}>;
|
|
29
29
|
export type AcsSystemConnectedEvent = z.infer<typeof acs_system_connected_event>;
|
|
30
|
+
export declare const acs_system_disconnected_event: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
31
|
+
event_id: z.ZodString;
|
|
32
|
+
workspace_id: z.ZodString;
|
|
33
|
+
created_at: z.ZodString;
|
|
34
|
+
occurred_at: z.ZodString;
|
|
35
|
+
}, {
|
|
36
|
+
connected_account_id: z.ZodOptional<z.ZodString>;
|
|
37
|
+
acs_system_id: z.ZodString;
|
|
38
|
+
}>, {}>, {
|
|
39
|
+
event_type: z.ZodLiteral<"acs_system.disconnected">;
|
|
40
|
+
}>, "strip", z.ZodTypeAny, {
|
|
41
|
+
created_at: string;
|
|
42
|
+
workspace_id: string;
|
|
43
|
+
acs_system_id: string;
|
|
44
|
+
event_id: string;
|
|
45
|
+
occurred_at: string;
|
|
46
|
+
event_type: "acs_system.disconnected";
|
|
47
|
+
connected_account_id?: string | undefined;
|
|
48
|
+
}, {
|
|
49
|
+
created_at: string;
|
|
50
|
+
workspace_id: string;
|
|
51
|
+
acs_system_id: string;
|
|
52
|
+
event_id: string;
|
|
53
|
+
occurred_at: string;
|
|
54
|
+
event_type: "acs_system.disconnected";
|
|
55
|
+
connected_account_id?: string | undefined;
|
|
56
|
+
}>;
|
|
57
|
+
export type AcsSystemDisconnectedEvent = z.infer<typeof acs_system_disconnected_event>;
|
|
30
58
|
export declare const acs_system_added_event: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
31
59
|
event_id: z.ZodString;
|
|
32
60
|
workspace_id: z.ZodString;
|
|
@@ -107,4 +135,30 @@ export declare const acs_system_events: readonly [z.ZodObject<z.objectUtil.exten
|
|
|
107
135
|
occurred_at: string;
|
|
108
136
|
event_type: "acs_system.added";
|
|
109
137
|
connected_account_id?: string | undefined;
|
|
138
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
139
|
+
event_id: z.ZodString;
|
|
140
|
+
workspace_id: z.ZodString;
|
|
141
|
+
created_at: z.ZodString;
|
|
142
|
+
occurred_at: z.ZodString;
|
|
143
|
+
}, {
|
|
144
|
+
connected_account_id: z.ZodOptional<z.ZodString>;
|
|
145
|
+
acs_system_id: z.ZodString;
|
|
146
|
+
}>, {}>, {
|
|
147
|
+
event_type: z.ZodLiteral<"acs_system.disconnected">;
|
|
148
|
+
}>, "strip", z.ZodTypeAny, {
|
|
149
|
+
created_at: string;
|
|
150
|
+
workspace_id: string;
|
|
151
|
+
acs_system_id: string;
|
|
152
|
+
event_id: string;
|
|
153
|
+
occurred_at: string;
|
|
154
|
+
event_type: "acs_system.disconnected";
|
|
155
|
+
connected_account_id?: string | undefined;
|
|
156
|
+
}, {
|
|
157
|
+
created_at: string;
|
|
158
|
+
workspace_id: string;
|
|
159
|
+
acs_system_id: string;
|
|
160
|
+
event_id: string;
|
|
161
|
+
occurred_at: string;
|
|
162
|
+
event_type: "acs_system.disconnected";
|
|
163
|
+
connected_account_id?: string | undefined;
|
|
110
164
|
}>];
|
|
@@ -6,6 +6,11 @@ export const acs_system_connected_event = acs_system_event
|
|
|
6
6
|
event_type: z.literal('acs_system.connected'),
|
|
7
7
|
})
|
|
8
8
|
.describe('An ACS system was connected.');
|
|
9
|
+
export const acs_system_disconnected_event = acs_system_event
|
|
10
|
+
.extend({
|
|
11
|
+
event_type: z.literal('acs_system.disconnected'),
|
|
12
|
+
})
|
|
13
|
+
.describe('An ACS system was disconnected.');
|
|
9
14
|
export const acs_system_added_event = acs_system_event
|
|
10
15
|
.extend({
|
|
11
16
|
event_type: z.literal('acs_system.added'),
|
|
@@ -14,5 +19,6 @@ export const acs_system_added_event = acs_system_event
|
|
|
14
19
|
export const acs_system_events = [
|
|
15
20
|
acs_system_connected_event,
|
|
16
21
|
acs_system_added_event,
|
|
22
|
+
acs_system_disconnected_event,
|
|
17
23
|
];
|
|
18
24
|
//# sourceMappingURL=systems.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"systems.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/models/events/acs/systems.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAE9C,MAAM,gBAAgB,GAAG,gBAAgB,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;AAEpD,MAAM,CAAC,MAAM,0BAA0B,GAAG,gBAAgB;KACvD,MAAM,CAAC;IACN,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,sBAAsB,CAAC;CAC9C,CAAC;KACD,QAAQ,CAAC,8BAA8B,CAAC,CAAA;AAI3C,MAAM,CAAC,MAAM,sBAAsB,GAAG,gBAAgB;KACnD,MAAM,CAAC;IACN,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;CAC1C,CAAC;KACD,QAAQ,CAAC,0BAA0B,CAAC,CAAA;AAIvC,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,0BAA0B;IAC1B,sBAAsB;
|
|
1
|
+
{"version":3,"file":"systems.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/models/events/acs/systems.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAE9C,MAAM,gBAAgB,GAAG,gBAAgB,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;AAEpD,MAAM,CAAC,MAAM,0BAA0B,GAAG,gBAAgB;KACvD,MAAM,CAAC;IACN,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,sBAAsB,CAAC;CAC9C,CAAC;KACD,QAAQ,CAAC,8BAA8B,CAAC,CAAA;AAI3C,MAAM,CAAC,MAAM,6BAA6B,GAAG,gBAAgB;KAC1D,MAAM,CAAC;IACN,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,yBAAyB,CAAC;CACjD,CAAC;KACD,QAAQ,CAAC,iCAAiC,CAAC,CAAA;AAM9C,MAAM,CAAC,MAAM,sBAAsB,GAAG,gBAAgB;KACnD,MAAM,CAAC;IACN,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;CAC1C,CAAC;KACD,QAAQ,CAAC,0BAA0B,CAAC,CAAA;AAIvC,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,0BAA0B;IAC1B,sBAAsB;IACtB,6BAA6B;CACrB,CAAA"}
|
|
@@ -564,6 +564,32 @@ export declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObj
|
|
|
564
564
|
}, {
|
|
565
565
|
connected_account_id: z.ZodOptional<z.ZodString>;
|
|
566
566
|
acs_system_id: z.ZodString;
|
|
567
|
+
}>, {}>, {
|
|
568
|
+
event_type: z.ZodLiteral<"acs_system.disconnected">;
|
|
569
|
+
}>, "strip", z.ZodTypeAny, {
|
|
570
|
+
created_at: string;
|
|
571
|
+
workspace_id: string;
|
|
572
|
+
acs_system_id: string;
|
|
573
|
+
event_id: string;
|
|
574
|
+
occurred_at: string;
|
|
575
|
+
event_type: "acs_system.disconnected";
|
|
576
|
+
connected_account_id?: string | undefined;
|
|
577
|
+
}, {
|
|
578
|
+
created_at: string;
|
|
579
|
+
workspace_id: string;
|
|
580
|
+
acs_system_id: string;
|
|
581
|
+
event_id: string;
|
|
582
|
+
occurred_at: string;
|
|
583
|
+
event_type: "acs_system.disconnected";
|
|
584
|
+
connected_account_id?: string | undefined;
|
|
585
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
586
|
+
event_id: z.ZodString;
|
|
587
|
+
workspace_id: z.ZodString;
|
|
588
|
+
created_at: z.ZodString;
|
|
589
|
+
occurred_at: z.ZodString;
|
|
590
|
+
}, {
|
|
591
|
+
connected_account_id: z.ZodOptional<z.ZodString>;
|
|
592
|
+
acs_system_id: z.ZodString;
|
|
567
593
|
}>, {
|
|
568
594
|
acs_credential_id: z.ZodString;
|
|
569
595
|
}>, {
|
|
@@ -3211,6 +3211,82 @@ export default {
|
|
|
3211
3211
|
],
|
|
3212
3212
|
type: 'object',
|
|
3213
3213
|
},
|
|
3214
|
+
{
|
|
3215
|
+
description: 'Setting HVAC mode.',
|
|
3216
|
+
properties: {
|
|
3217
|
+
action_attempt_id: {
|
|
3218
|
+
description: 'The ID of the action attempt.',
|
|
3219
|
+
format: 'uuid',
|
|
3220
|
+
type: 'string',
|
|
3221
|
+
'x-title': 'Action Attempt ID',
|
|
3222
|
+
},
|
|
3223
|
+
action_type: { enum: ['SET_HVAC_MODE'], type: 'string' },
|
|
3224
|
+
error: { nullable: true },
|
|
3225
|
+
result: { nullable: true },
|
|
3226
|
+
status: { enum: ['pending'], type: 'string' },
|
|
3227
|
+
},
|
|
3228
|
+
required: [
|
|
3229
|
+
'action_attempt_id',
|
|
3230
|
+
'status',
|
|
3231
|
+
'result',
|
|
3232
|
+
'error',
|
|
3233
|
+
'action_type',
|
|
3234
|
+
],
|
|
3235
|
+
type: 'object',
|
|
3236
|
+
},
|
|
3237
|
+
{
|
|
3238
|
+
description: 'Setting HVAC mode succeeded.',
|
|
3239
|
+
properties: {
|
|
3240
|
+
action_attempt_id: {
|
|
3241
|
+
description: 'The ID of the action attempt.',
|
|
3242
|
+
format: 'uuid',
|
|
3243
|
+
type: 'string',
|
|
3244
|
+
'x-title': 'Action Attempt ID',
|
|
3245
|
+
},
|
|
3246
|
+
action_type: { enum: ['SET_HVAC_MODE'], type: 'string' },
|
|
3247
|
+
error: { nullable: true },
|
|
3248
|
+
result: { properties: {}, type: 'object' },
|
|
3249
|
+
status: { enum: ['success'], type: 'string' },
|
|
3250
|
+
},
|
|
3251
|
+
required: [
|
|
3252
|
+
'action_attempt_id',
|
|
3253
|
+
'status',
|
|
3254
|
+
'error',
|
|
3255
|
+
'action_type',
|
|
3256
|
+
'result',
|
|
3257
|
+
],
|
|
3258
|
+
type: 'object',
|
|
3259
|
+
},
|
|
3260
|
+
{
|
|
3261
|
+
description: 'Setting HVAC mode failed.',
|
|
3262
|
+
properties: {
|
|
3263
|
+
action_attempt_id: {
|
|
3264
|
+
description: 'The ID of the action attempt.',
|
|
3265
|
+
format: 'uuid',
|
|
3266
|
+
type: 'string',
|
|
3267
|
+
'x-title': 'Action Attempt ID',
|
|
3268
|
+
},
|
|
3269
|
+
action_type: { enum: ['SET_HVAC_MODE'], type: 'string' },
|
|
3270
|
+
error: {
|
|
3271
|
+
properties: {
|
|
3272
|
+
message: { type: 'string' },
|
|
3273
|
+
type: { type: 'string' },
|
|
3274
|
+
},
|
|
3275
|
+
required: ['type', 'message'],
|
|
3276
|
+
type: 'object',
|
|
3277
|
+
},
|
|
3278
|
+
result: { nullable: true },
|
|
3279
|
+
status: { enum: ['error'], type: 'string' },
|
|
3280
|
+
},
|
|
3281
|
+
required: [
|
|
3282
|
+
'action_attempt_id',
|
|
3283
|
+
'status',
|
|
3284
|
+
'result',
|
|
3285
|
+
'action_type',
|
|
3286
|
+
'error',
|
|
3287
|
+
],
|
|
3288
|
+
type: 'object',
|
|
3289
|
+
},
|
|
3214
3290
|
{
|
|
3215
3291
|
description: 'Activating climate preset.',
|
|
3216
3292
|
properties: {
|
|
@@ -14426,6 +14502,7 @@ export default {
|
|
|
14426
14502
|
'access_code.backup_access_code_pulled',
|
|
14427
14503
|
'acs_system.added',
|
|
14428
14504
|
'acs_system.connected',
|
|
14505
|
+
'acs_system.disconnected',
|
|
14429
14506
|
'acs_user.deleted',
|
|
14430
14507
|
'acs_credential.deleted',
|
|
14431
14508
|
'acs_credential.issued',
|
|
@@ -14502,6 +14579,7 @@ export default {
|
|
|
14502
14579
|
'access_code.backup_access_code_pulled',
|
|
14503
14580
|
'acs_system.added',
|
|
14504
14581
|
'acs_system.connected',
|
|
14582
|
+
'acs_system.disconnected',
|
|
14505
14583
|
'acs_user.deleted',
|
|
14506
14584
|
'acs_credential.deleted',
|
|
14507
14585
|
'acs_credential.issued',
|