@seamapi/types 1.310.0 → 1.311.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 (29) hide show
  1. package/dist/connect.cjs +14 -389
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +0 -2328
  4. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +0 -312
  5. package/lib/seam/connect/models/action-attempts/action-attempt.js +0 -8
  6. package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -1
  7. package/lib/seam/connect/openapi.js +0 -304
  8. package/lib/seam/connect/openapi.js.map +1 -1
  9. package/lib/seam/connect/route-types.d.ts +12 -2028
  10. package/package.json +1 -1
  11. package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +0 -8
  12. package/src/lib/seam/connect/openapi.ts +0 -304
  13. package/src/lib/seam/connect/route-types.ts +0 -2268
  14. package/lib/seam/connect/models/action-attempts/set-cool.d.ts +0 -80
  15. package/lib/seam/connect/models/action-attempts/set-cool.js +0 -25
  16. package/lib/seam/connect/models/action-attempts/set-cool.js.map +0 -1
  17. package/lib/seam/connect/models/action-attempts/set-heat-cool.d.ts +0 -80
  18. package/lib/seam/connect/models/action-attempts/set-heat-cool.js +0 -25
  19. package/lib/seam/connect/models/action-attempts/set-heat-cool.js.map +0 -1
  20. package/lib/seam/connect/models/action-attempts/set-heat.d.ts +0 -80
  21. package/lib/seam/connect/models/action-attempts/set-heat.js +0 -25
  22. package/lib/seam/connect/models/action-attempts/set-heat.js.map +0 -1
  23. package/lib/seam/connect/models/action-attempts/set-thermostat-off.d.ts +0 -80
  24. package/lib/seam/connect/models/action-attempts/set-thermostat-off.js +0 -25
  25. package/lib/seam/connect/models/action-attempts/set-thermostat-off.js.map +0 -1
  26. package/src/lib/seam/connect/models/action-attempts/set-cool.ts +0 -33
  27. package/src/lib/seam/connect/models/action-attempts/set-heat-cool.ts +0 -33
  28. package/src/lib/seam/connect/models/action-attempts/set-heat.ts +0 -33
  29. package/src/lib/seam/connect/models/action-attempts/set-thermostat-off.ts +0 -36
@@ -1,80 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const set_cool_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_COOL">;
11
- }>, "strip", z.ZodTypeAny, {
12
- error: null;
13
- status: "pending";
14
- action_attempt_id: string;
15
- result: null;
16
- action_type: "SET_COOL";
17
- }, {
18
- error: null;
19
- status: "pending";
20
- action_attempt_id: string;
21
- result: null;
22
- action_type: "SET_COOL";
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_COOL">;
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_COOL";
38
- }, {
39
- error: null;
40
- status: "success";
41
- action_attempt_id: string;
42
- result: {};
43
- action_type: "SET_COOL";
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_COOL">;
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_COOL";
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_COOL";
80
- }>]>;
@@ -1,25 +0,0 @@
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_COOL');
4
- const error = z.object({
5
- type: z.string(),
6
- message: z.string(),
7
- });
8
- const result = z.object({});
9
- export const set_cool_action_attempt = z.discriminatedUnion('status', [
10
- common_pending_action_attempt
11
- .extend({
12
- action_type,
13
- })
14
- .describe('Setting HVAC to cool.'),
15
- common_succeeded_action_attempt
16
- .extend({
17
- action_type,
18
- result,
19
- })
20
- .describe('Setting HVAC to cool succeeded.'),
21
- common_failed_action_attempt
22
- .extend({ action_type, error })
23
- .describe('Setting HVAC to cool failed.'),
24
- ]);
25
- //# sourceMappingURL=set-cool.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"set-cool.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/set-cool.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,UAAU,CAAC,CAAA;AAEzC,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,uBAAuB,GAAG,CAAC,CAAC,kBAAkB,CAAC,QAAQ,EAAE;IACpE,6BAA6B;SAC1B,MAAM,CAAC;QACN,WAAW;KACZ,CAAC;SACD,QAAQ,CAAC,uBAAuB,CAAC;IACpC,+BAA+B;SAC5B,MAAM,CAAC;QACN,WAAW;QACX,MAAM;KACP,CAAC;SACD,QAAQ,CAAC,iCAAiC,CAAC;IAC9C,4BAA4B;SACzB,MAAM,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;SAC9B,QAAQ,CAAC,8BAA8B,CAAC;CAC5C,CAAC,CAAA"}
@@ -1,80 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const set_heat_cool_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_HEAT_COOL">;
11
- }>, "strip", z.ZodTypeAny, {
12
- error: null;
13
- status: "pending";
14
- action_attempt_id: string;
15
- result: null;
16
- action_type: "SET_HEAT_COOL";
17
- }, {
18
- error: null;
19
- status: "pending";
20
- action_attempt_id: string;
21
- result: null;
22
- action_type: "SET_HEAT_COOL";
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_HEAT_COOL">;
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_HEAT_COOL";
38
- }, {
39
- error: null;
40
- status: "success";
41
- action_attempt_id: string;
42
- result: {};
43
- action_type: "SET_HEAT_COOL";
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_HEAT_COOL">;
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_HEAT_COOL";
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_HEAT_COOL";
80
- }>]>;
@@ -1,25 +0,0 @@
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_HEAT_COOL');
4
- const error = z.object({
5
- type: z.string(),
6
- message: z.string(),
7
- });
8
- const result = z.object({});
9
- export const set_heat_cool_action_attempt = z.discriminatedUnion('status', [
10
- common_pending_action_attempt
11
- .extend({
12
- action_type,
13
- })
14
- .describe('Setting HVAC to heat-cool mode.'),
15
- common_succeeded_action_attempt
16
- .extend({
17
- action_type,
18
- result,
19
- })
20
- .describe('Setting HVAC to heat-cool mode succeeded.'),
21
- common_failed_action_attempt
22
- .extend({ action_type, error })
23
- .describe('Setting heat-cool mode failed.'),
24
- ]);
25
- //# sourceMappingURL=set-heat-cool.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"set-heat-cool.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/set-heat-cool.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,iCAAiC,CAAC;IAC9C,+BAA+B;SAC5B,MAAM,CAAC;QACN,WAAW;QACX,MAAM;KACP,CAAC;SACD,QAAQ,CAAC,2CAA2C,CAAC;IACxD,4BAA4B;SACzB,MAAM,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;SAC9B,QAAQ,CAAC,gCAAgC,CAAC;CAC9C,CAAC,CAAA"}
@@ -1,80 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const set_heat_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_HEAT">;
11
- }>, "strip", z.ZodTypeAny, {
12
- error: null;
13
- status: "pending";
14
- action_attempt_id: string;
15
- result: null;
16
- action_type: "SET_HEAT";
17
- }, {
18
- error: null;
19
- status: "pending";
20
- action_attempt_id: string;
21
- result: null;
22
- action_type: "SET_HEAT";
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_HEAT">;
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_HEAT";
38
- }, {
39
- error: null;
40
- status: "success";
41
- action_attempt_id: string;
42
- result: {};
43
- action_type: "SET_HEAT";
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_HEAT">;
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_HEAT";
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_HEAT";
80
- }>]>;
@@ -1,25 +0,0 @@
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_HEAT');
4
- const error = z.object({
5
- type: z.string(),
6
- message: z.string(),
7
- });
8
- const result = z.object({});
9
- export const set_heat_action_attempt = z.discriminatedUnion('status', [
10
- common_pending_action_attempt
11
- .extend({
12
- action_type,
13
- })
14
- .describe('Setting HVAC to heat mode.'),
15
- common_succeeded_action_attempt
16
- .extend({
17
- action_type,
18
- result,
19
- })
20
- .describe('Setting HVAC to heat mode succeeded.'),
21
- common_failed_action_attempt
22
- .extend({ action_type, error })
23
- .describe('Setting HVAC to heat mode failed.'),
24
- ]);
25
- //# sourceMappingURL=set-heat.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"set-heat.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/set-heat.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,UAAU,CAAC,CAAA;AAEzC,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,uBAAuB,GAAG,CAAC,CAAC,kBAAkB,CAAC,QAAQ,EAAE;IACpE,6BAA6B;SAC1B,MAAM,CAAC;QACN,WAAW;KACZ,CAAC;SACD,QAAQ,CAAC,4BAA4B,CAAC;IACzC,+BAA+B;SAC5B,MAAM,CAAC;QACN,WAAW;QACX,MAAM;KACP,CAAC;SACD,QAAQ,CAAC,sCAAsC,CAAC;IACnD,4BAA4B;SACzB,MAAM,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;SAC9B,QAAQ,CAAC,mCAAmC,CAAC;CACjD,CAAC,CAAA"}
@@ -1,80 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const set_thermostat_off_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_THERMOSTAT_OFF">;
11
- }>, "strip", z.ZodTypeAny, {
12
- error: null;
13
- status: "pending";
14
- action_attempt_id: string;
15
- result: null;
16
- action_type: "SET_THERMOSTAT_OFF";
17
- }, {
18
- error: null;
19
- status: "pending";
20
- action_attempt_id: string;
21
- result: null;
22
- action_type: "SET_THERMOSTAT_OFF";
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_THERMOSTAT_OFF">;
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_THERMOSTAT_OFF";
38
- }, {
39
- error: null;
40
- status: "success";
41
- action_attempt_id: string;
42
- result: {};
43
- action_type: "SET_THERMOSTAT_OFF";
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_THERMOSTAT_OFF">;
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_THERMOSTAT_OFF";
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_THERMOSTAT_OFF";
80
- }>]>;
@@ -1,25 +0,0 @@
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_THERMOSTAT_OFF');
4
- const error = z.object({
5
- type: z.string(),
6
- message: z.string(),
7
- });
8
- const result = z.object({});
9
- export const set_thermostat_off_action_attempt = z.discriminatedUnion('status', [
10
- common_pending_action_attempt
11
- .extend({
12
- action_type,
13
- })
14
- .describe('Turning HVAC off.'),
15
- common_succeeded_action_attempt
16
- .extend({
17
- action_type,
18
- result,
19
- })
20
- .describe('Turning HVAC off succeeded.'),
21
- common_failed_action_attempt
22
- .extend({ action_type, error })
23
- .describe('Turning HVAC off failed.'),
24
- ]);
25
- //# sourceMappingURL=set-thermostat-off.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"set-thermostat-off.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/set-thermostat-off.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,oBAAoB,CAAC,CAAA;AAEnD,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,iCAAiC,GAAG,CAAC,CAAC,kBAAkB,CACnE,QAAQ,EACR;IACE,6BAA6B;SAC1B,MAAM,CAAC;QACN,WAAW;KACZ,CAAC;SACD,QAAQ,CAAC,mBAAmB,CAAC;IAChC,+BAA+B;SAC5B,MAAM,CAAC;QACN,WAAW;QACX,MAAM;KACP,CAAC;SACD,QAAQ,CAAC,6BAA6B,CAAC;IAC1C,4BAA4B;SACzB,MAAM,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;SAC9B,QAAQ,CAAC,0BAA0B,CAAC;CACxC,CACF,CAAA"}
@@ -1,33 +0,0 @@
1
- import { z } from 'zod'
2
-
3
- import {
4
- common_failed_action_attempt,
5
- common_pending_action_attempt,
6
- common_succeeded_action_attempt,
7
- } from './common.js'
8
-
9
- const action_type = z.literal('SET_COOL')
10
-
11
- const error = z.object({
12
- type: z.string(),
13
- message: z.string(),
14
- })
15
-
16
- const result = z.object({})
17
-
18
- export const set_cool_action_attempt = z.discriminatedUnion('status', [
19
- common_pending_action_attempt
20
- .extend({
21
- action_type,
22
- })
23
- .describe('Setting HVAC to cool.'),
24
- common_succeeded_action_attempt
25
- .extend({
26
- action_type,
27
- result,
28
- })
29
- .describe('Setting HVAC to cool succeeded.'),
30
- common_failed_action_attempt
31
- .extend({ action_type, error })
32
- .describe('Setting HVAC to cool failed.'),
33
- ])
@@ -1,33 +0,0 @@
1
- import { z } from 'zod'
2
-
3
- import {
4
- common_failed_action_attempt,
5
- common_pending_action_attempt,
6
- common_succeeded_action_attempt,
7
- } from './common.js'
8
-
9
- const action_type = z.literal('SET_HEAT_COOL')
10
-
11
- const error = z.object({
12
- type: z.string(),
13
- message: z.string(),
14
- })
15
-
16
- const result = z.object({})
17
-
18
- export const set_heat_cool_action_attempt = z.discriminatedUnion('status', [
19
- common_pending_action_attempt
20
- .extend({
21
- action_type,
22
- })
23
- .describe('Setting HVAC to heat-cool mode.'),
24
- common_succeeded_action_attempt
25
- .extend({
26
- action_type,
27
- result,
28
- })
29
- .describe('Setting HVAC to heat-cool mode succeeded.'),
30
- common_failed_action_attempt
31
- .extend({ action_type, error })
32
- .describe('Setting heat-cool mode failed.'),
33
- ])
@@ -1,33 +0,0 @@
1
- import { z } from 'zod'
2
-
3
- import {
4
- common_failed_action_attempt,
5
- common_pending_action_attempt,
6
- common_succeeded_action_attempt,
7
- } from './common.js'
8
-
9
- const action_type = z.literal('SET_HEAT')
10
-
11
- const error = z.object({
12
- type: z.string(),
13
- message: z.string(),
14
- })
15
-
16
- const result = z.object({})
17
-
18
- export const set_heat_action_attempt = z.discriminatedUnion('status', [
19
- common_pending_action_attempt
20
- .extend({
21
- action_type,
22
- })
23
- .describe('Setting HVAC to heat mode.'),
24
- common_succeeded_action_attempt
25
- .extend({
26
- action_type,
27
- result,
28
- })
29
- .describe('Setting HVAC to heat mode succeeded.'),
30
- common_failed_action_attempt
31
- .extend({ action_type, error })
32
- .describe('Setting HVAC to heat mode failed.'),
33
- ])
@@ -1,36 +0,0 @@
1
- import { z } from 'zod'
2
-
3
- import {
4
- common_failed_action_attempt,
5
- common_pending_action_attempt,
6
- common_succeeded_action_attempt,
7
- } from './common.js'
8
-
9
- const action_type = z.literal('SET_THERMOSTAT_OFF')
10
-
11
- const error = z.object({
12
- type: z.string(),
13
- message: z.string(),
14
- })
15
-
16
- const result = z.object({})
17
-
18
- export const set_thermostat_off_action_attempt = z.discriminatedUnion(
19
- 'status',
20
- [
21
- common_pending_action_attempt
22
- .extend({
23
- action_type,
24
- })
25
- .describe('Turning HVAC off.'),
26
- common_succeeded_action_attempt
27
- .extend({
28
- action_type,
29
- result,
30
- })
31
- .describe('Turning HVAC off succeeded.'),
32
- common_failed_action_attempt
33
- .extend({ action_type, error })
34
- .describe('Turning HVAC off failed.'),
35
- ],
36
- )