@seamapi/types 1.175.0 → 1.177.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 +1973 -161
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +4627 -403
- package/lib/seam/connect/model-types.d.ts +1 -1
- package/lib/seam/connect/models/acs/system.d.ts +36 -0
- package/lib/seam/connect/models/acs/system.js +8 -0
- package/lib/seam/connect/models/acs/system.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +556 -0
- package/lib/seam/connect/models/action-attempts/action-attempt.js +20 -0
- package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -0
- package/lib/seam/connect/models/action-attempts/common.d.ts +53 -0
- package/lib/seam/connect/models/action-attempts/common.js +24 -0
- package/lib/seam/connect/models/action-attempts/common.js.map +1 -0
- package/lib/seam/connect/models/action-attempts/index.d.ts +1 -0
- package/lib/seam/connect/models/action-attempts/index.js +2 -0
- package/lib/seam/connect/models/action-attempts/index.js.map +1 -0
- package/lib/seam/connect/models/action-attempts/lock-door.d.ts +72 -0
- package/lib/seam/connect/models/action-attempts/lock-door.js +25 -0
- package/lib/seam/connect/models/action-attempts/lock-door.js.map +1 -0
- package/lib/seam/connect/models/action-attempts/reset-sandbox-workspace.d.ts +71 -0
- package/lib/seam/connect/models/action-attempts/reset-sandbox-workspace.js +28 -0
- package/lib/seam/connect/models/action-attempts/reset-sandbox-workspace.js.map +1 -0
- package/lib/seam/connect/models/action-attempts/set-cool.d.ts +71 -0
- package/lib/seam/connect/models/action-attempts/set-cool.js +25 -0
- package/lib/seam/connect/models/action-attempts/set-cool.js.map +1 -0
- package/lib/seam/connect/models/action-attempts/set-fan-mode.d.ts +71 -0
- package/lib/seam/connect/models/action-attempts/set-fan-mode.js +25 -0
- package/lib/seam/connect/models/action-attempts/set-fan-mode.js.map +1 -0
- package/lib/seam/connect/models/action-attempts/set-heat-cool.d.ts +71 -0
- package/lib/seam/connect/models/action-attempts/set-heat-cool.js +25 -0
- package/lib/seam/connect/models/action-attempts/set-heat-cool.js.map +1 -0
- package/lib/seam/connect/models/action-attempts/set-heat.d.ts +71 -0
- package/lib/seam/connect/models/action-attempts/set-heat.js +25 -0
- package/lib/seam/connect/models/action-attempts/set-heat.js.map +1 -0
- package/lib/seam/connect/models/action-attempts/set-thermostat-off.d.ts +71 -0
- package/lib/seam/connect/models/action-attempts/set-thermostat-off.js +25 -0
- package/lib/seam/connect/models/action-attempts/set-thermostat-off.js.map +1 -0
- package/lib/seam/connect/models/action-attempts/unlock-door.d.ts +72 -0
- package/lib/seam/connect/models/action-attempts/unlock-door.js +25 -0
- package/lib/seam/connect/models/action-attempts/unlock-door.js.map +1 -0
- package/lib/seam/connect/models/devices/managed-device.js +6 -2
- package/lib/seam/connect/models/devices/managed-device.js.map +1 -1
- package/lib/seam/connect/models/events/access-codes.d.ts +1 -1
- package/lib/seam/connect/models/events/access-codes.js +1 -1
- package/lib/seam/connect/models/events/access-codes.js.map +1 -1
- package/lib/seam/connect/models/events/acs/common.d.ts +1 -1
- package/lib/seam/connect/models/events/acs/common.js +1 -1
- package/lib/seam/connect/models/events/acs/common.js.map +1 -1
- package/lib/seam/connect/models/events/acs/credentials.d.ts +1 -1
- package/lib/seam/connect/models/events/acs/credentials.js +1 -1
- package/lib/seam/connect/models/events/acs/credentials.js.map +1 -1
- package/lib/seam/connect/models/events/acs/users.d.ts +1 -1
- package/lib/seam/connect/models/events/acs/users.js +1 -1
- package/lib/seam/connect/models/events/acs/users.js.map +1 -1
- package/lib/seam/connect/models/events/action-attempts.d.ts +10 -10
- package/lib/seam/connect/models/events/client-sessions.d.ts +1 -1
- package/lib/seam/connect/models/events/client-sessions.js +1 -1
- package/lib/seam/connect/models/events/client-sessions.js.map +1 -1
- package/lib/seam/connect/models/events/common.d.ts +1 -1
- package/lib/seam/connect/models/events/common.js +1 -1
- package/lib/seam/connect/models/events/common.js.map +1 -1
- package/lib/seam/connect/models/events/connected-accounts.d.ts +1 -1
- package/lib/seam/connect/models/events/connected-accounts.js +1 -1
- package/lib/seam/connect/models/events/connected-accounts.js.map +1 -1
- package/lib/seam/connect/models/events/devices.d.ts +1 -1
- package/lib/seam/connect/models/events/devices.js +1 -1
- package/lib/seam/connect/models/events/devices.js.map +1 -1
- package/lib/seam/connect/models/events/enrollment-automations.d.ts +1 -1
- package/lib/seam/connect/models/events/enrollment-automations.js +1 -1
- package/lib/seam/connect/models/events/enrollment-automations.js.map +1 -1
- package/lib/seam/connect/models/events/phones.d.ts +1 -1
- package/lib/seam/connect/models/events/phones.js +1 -1
- package/lib/seam/connect/models/events/phones.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +1 -1
- package/lib/seam/connect/models/events/seam-event.js +1 -1
- package/lib/seam/connect/models/events/seam-event.js.map +1 -1
- package/lib/seam/connect/models/index.d.ts +1 -0
- package/lib/seam/connect/models/index.js +1 -0
- package/lib/seam/connect/models/index.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +1366 -105
- package/lib/seam/connect/openapi.js +1686 -28
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +2764 -356
- package/lib/seam/connect/schemas.d.ts +1 -1
- package/lib/seam/connect/schemas.js +1 -1
- package/lib/seam/connect/schemas.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/seam/connect/model-types.ts +1 -0
- package/src/lib/seam/connect/models/acs/system.ts +12 -0
- package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +25 -0
- package/src/lib/seam/connect/models/action-attempts/common.ts +27 -0
- package/src/lib/seam/connect/models/action-attempts/index.ts +1 -0
- package/src/lib/seam/connect/models/action-attempts/lock-door.ts +35 -0
- package/src/lib/seam/connect/models/action-attempts/reset-sandbox-workspace.ts +39 -0
- package/src/lib/seam/connect/models/action-attempts/set-cool.ts +33 -0
- package/src/lib/seam/connect/models/action-attempts/set-fan-mode.ts +33 -0
- package/src/lib/seam/connect/models/action-attempts/set-heat-cool.ts +33 -0
- package/src/lib/seam/connect/models/action-attempts/set-heat.ts +33 -0
- package/src/lib/seam/connect/models/action-attempts/set-thermostat-off.ts +36 -0
- package/src/lib/seam/connect/models/action-attempts/unlock-door.ts +35 -0
- package/src/lib/seam/connect/models/devices/managed-device.ts +8 -2
- package/src/lib/seam/connect/models/events/access-codes.ts +1 -1
- package/src/lib/seam/connect/models/events/acs/common.ts +1 -1
- package/src/lib/seam/connect/models/events/acs/credentials.ts +1 -1
- package/src/lib/seam/connect/models/events/acs/users.ts +1 -1
- package/src/lib/seam/connect/models/events/client-sessions.ts +1 -1
- package/src/lib/seam/connect/models/events/common.ts +1 -1
- package/src/lib/seam/connect/models/events/connected-accounts.ts +1 -1
- package/src/lib/seam/connect/models/events/devices.ts +1 -1
- package/src/lib/seam/connect/models/events/enrollment-automations.ts +1 -1
- package/src/lib/seam/connect/models/events/phones.ts +1 -1
- package/src/lib/seam/connect/models/events/seam-event.ts +1 -1
- package/src/lib/seam/connect/models/index.ts +1 -0
- package/src/lib/seam/connect/openapi.ts +1710 -28
- package/src/lib/seam/connect/route-types.ts +3452 -876
- package/src/lib/seam/connect/schemas.ts +6 -1
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const common_action_attempt: z.ZodObject<{
|
|
3
|
+
action_attempt_id: z.ZodString;
|
|
4
|
+
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
status: "error" | "pending" | "success";
|
|
7
|
+
action_attempt_id: string;
|
|
8
|
+
}, {
|
|
9
|
+
status: "error" | "pending" | "success";
|
|
10
|
+
action_attempt_id: string;
|
|
11
|
+
}>;
|
|
12
|
+
export declare const common_pending_action_attempt: z.ZodObject<{
|
|
13
|
+
action_attempt_id: z.ZodString;
|
|
14
|
+
status: z.ZodLiteral<"pending">;
|
|
15
|
+
result: z.ZodNull;
|
|
16
|
+
error: z.ZodNull;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
error: null;
|
|
19
|
+
status: "pending";
|
|
20
|
+
action_attempt_id: string;
|
|
21
|
+
result: null;
|
|
22
|
+
}, {
|
|
23
|
+
error: null;
|
|
24
|
+
status: "pending";
|
|
25
|
+
action_attempt_id: string;
|
|
26
|
+
result: null;
|
|
27
|
+
}>;
|
|
28
|
+
export declare const common_succeeded_action_attempt: z.ZodObject<{
|
|
29
|
+
action_attempt_id: z.ZodString;
|
|
30
|
+
status: z.ZodLiteral<"success">;
|
|
31
|
+
error: z.ZodNull;
|
|
32
|
+
}, "strip", z.ZodTypeAny, {
|
|
33
|
+
error: null;
|
|
34
|
+
status: "success";
|
|
35
|
+
action_attempt_id: string;
|
|
36
|
+
}, {
|
|
37
|
+
error: null;
|
|
38
|
+
status: "success";
|
|
39
|
+
action_attempt_id: string;
|
|
40
|
+
}>;
|
|
41
|
+
export declare const common_failed_action_attempt: z.ZodObject<{
|
|
42
|
+
action_attempt_id: z.ZodString;
|
|
43
|
+
status: z.ZodLiteral<"error">;
|
|
44
|
+
result: z.ZodNull;
|
|
45
|
+
}, "strip", z.ZodTypeAny, {
|
|
46
|
+
status: "error";
|
|
47
|
+
action_attempt_id: string;
|
|
48
|
+
result: null;
|
|
49
|
+
}, {
|
|
50
|
+
status: "error";
|
|
51
|
+
action_attempt_id: string;
|
|
52
|
+
result: null;
|
|
53
|
+
}>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const common_action_attempt = z.object({
|
|
3
|
+
action_attempt_id: z.string().uuid().describe(`
|
|
4
|
+
---
|
|
5
|
+
title: Action Attempt ID
|
|
6
|
+
---
|
|
7
|
+
The ID of the action attempt.
|
|
8
|
+
`),
|
|
9
|
+
status: z.enum(['pending', 'success', 'error']),
|
|
10
|
+
});
|
|
11
|
+
export const common_pending_action_attempt = common_action_attempt.extend({
|
|
12
|
+
status: z.literal('pending'),
|
|
13
|
+
result: z.null(),
|
|
14
|
+
error: z.null(),
|
|
15
|
+
});
|
|
16
|
+
export const common_succeeded_action_attempt = common_action_attempt.extend({
|
|
17
|
+
status: z.literal('success'),
|
|
18
|
+
error: z.null(),
|
|
19
|
+
});
|
|
20
|
+
export const common_failed_action_attempt = common_action_attempt.extend({
|
|
21
|
+
status: z.literal('error'),
|
|
22
|
+
result: z.null(),
|
|
23
|
+
});
|
|
24
|
+
//# sourceMappingURL=common.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC;;;;;GAK7C,CAAC;IACF,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;CAChD,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,6BAA6B,GAAG,qBAAqB,CAAC,MAAM,CAAC;IACxE,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;IAC5B,MAAM,EAAE,CAAC,CAAC,IAAI,EAAE;IAChB,KAAK,EAAE,CAAC,CAAC,IAAI,EAAE;CAChB,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,+BAA+B,GAAG,qBAAqB,CAAC,MAAM,CAAC;IAC1E,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;IAC5B,KAAK,EAAE,CAAC,CAAC,IAAI,EAAE;CAChB,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,4BAA4B,GAAG,qBAAqB,CAAC,MAAM,CAAC;IACvE,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;IAC1B,MAAM,EAAE,CAAC,CAAC,IAAI,EAAE;CACjB,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './action-attempt.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const lock_door_action_attempt: z.ZodDiscriminatedUnion<"status", [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
|
+
}>]>;
|
|
72
|
+
export type LockDoorActionAttempt = z.infer<typeof lock_door_action_attempt>;
|
|
@@ -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('LOCK_DOOR');
|
|
4
|
+
const error = z.object({
|
|
5
|
+
type: z.string(),
|
|
6
|
+
message: z.string(),
|
|
7
|
+
});
|
|
8
|
+
const result = z.object({});
|
|
9
|
+
export const lock_door_action_attempt = z.discriminatedUnion('status', [
|
|
10
|
+
common_pending_action_attempt
|
|
11
|
+
.extend({
|
|
12
|
+
action_type,
|
|
13
|
+
})
|
|
14
|
+
.describe('Locking door.'),
|
|
15
|
+
common_succeeded_action_attempt
|
|
16
|
+
.extend({
|
|
17
|
+
action_type,
|
|
18
|
+
result,
|
|
19
|
+
})
|
|
20
|
+
.describe('Locking door succeeded.'),
|
|
21
|
+
common_failed_action_attempt
|
|
22
|
+
.extend({ action_type, error })
|
|
23
|
+
.describe('Locking door failed.'),
|
|
24
|
+
]);
|
|
25
|
+
//# sourceMappingURL=lock-door.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lock-door.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/lock-door.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,WAAW,CAAC,CAAA;AAE1C,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,wBAAwB,GAAG,CAAC,CAAC,kBAAkB,CAAC,QAAQ,EAAE;IACrE,6BAA6B;SAC1B,MAAM,CAAC;QACN,WAAW;KACZ,CAAC;SACD,QAAQ,CAAC,eAAe,CAAC;IAC5B,+BAA+B;SAC5B,MAAM,CAAC;QACN,WAAW;QACX,MAAM;KACP,CAAC;SACD,QAAQ,CAAC,yBAAyB,CAAC;IACtC,4BAA4B;SACzB,MAAM,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;SAC9B,QAAQ,CAAC,sBAAsB,CAAC;CACpC,CAAC,CAAA"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const reset_sandbox_workspace_action_attempt: z.ZodDiscriminatedUnion<"status", [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<"RESET_SANDBOX_WORKSPACE">;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
error: null;
|
|
10
|
+
status: "pending";
|
|
11
|
+
action_attempt_id: string;
|
|
12
|
+
result: null;
|
|
13
|
+
action_type: "RESET_SANDBOX_WORKSPACE";
|
|
14
|
+
}, {
|
|
15
|
+
error: null;
|
|
16
|
+
status: "pending";
|
|
17
|
+
action_attempt_id: string;
|
|
18
|
+
result: null;
|
|
19
|
+
action_type: "RESET_SANDBOX_WORKSPACE";
|
|
20
|
+
}>, z.ZodObject<{
|
|
21
|
+
error: z.ZodNull;
|
|
22
|
+
status: z.ZodLiteral<"success">;
|
|
23
|
+
action_attempt_id: z.ZodString;
|
|
24
|
+
action_type: z.ZodLiteral<"RESET_SANDBOX_WORKSPACE">;
|
|
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: "RESET_SANDBOX_WORKSPACE";
|
|
32
|
+
}, {
|
|
33
|
+
error: null;
|
|
34
|
+
status: "success";
|
|
35
|
+
action_attempt_id: string;
|
|
36
|
+
result: {};
|
|
37
|
+
action_type: "RESET_SANDBOX_WORKSPACE";
|
|
38
|
+
}>, z.ZodObject<{
|
|
39
|
+
status: z.ZodLiteral<"error">;
|
|
40
|
+
action_attempt_id: z.ZodString;
|
|
41
|
+
result: z.ZodNull;
|
|
42
|
+
action_type: z.ZodLiteral<"RESET_SANDBOX_WORKSPACE">;
|
|
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: "RESET_SANDBOX_WORKSPACE";
|
|
62
|
+
}, {
|
|
63
|
+
error: {
|
|
64
|
+
type: string;
|
|
65
|
+
message: string;
|
|
66
|
+
};
|
|
67
|
+
status: "error";
|
|
68
|
+
action_attempt_id: string;
|
|
69
|
+
result: null;
|
|
70
|
+
action_type: "RESET_SANDBOX_WORKSPACE";
|
|
71
|
+
}>]>;
|
|
@@ -0,0 +1,28 @@
|
|
|
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('RESET_SANDBOX_WORKSPACE');
|
|
4
|
+
const error = z.object({
|
|
5
|
+
type: z.string(),
|
|
6
|
+
message: z.string(),
|
|
7
|
+
});
|
|
8
|
+
const result = z.object({});
|
|
9
|
+
export const reset_sandbox_workspace_action_attempt = z.discriminatedUnion('status', [
|
|
10
|
+
common_pending_action_attempt
|
|
11
|
+
.extend({
|
|
12
|
+
action_type,
|
|
13
|
+
})
|
|
14
|
+
.describe('Resetting sandbox workspace.'),
|
|
15
|
+
common_succeeded_action_attempt
|
|
16
|
+
.extend({
|
|
17
|
+
action_type,
|
|
18
|
+
result,
|
|
19
|
+
})
|
|
20
|
+
.describe('Resetting sandbox workspace succeeded.'),
|
|
21
|
+
common_failed_action_attempt
|
|
22
|
+
.extend({
|
|
23
|
+
action_type,
|
|
24
|
+
error,
|
|
25
|
+
})
|
|
26
|
+
.describe('Resetting sandbox workspace failed.'),
|
|
27
|
+
]);
|
|
28
|
+
//# sourceMappingURL=reset-sandbox-workspace.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reset-sandbox-workspace.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/reset-sandbox-workspace.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,yBAAyB,CAAC,CAAA;AAExD,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,sCAAsC,GAAG,CAAC,CAAC,kBAAkB,CACxE,QAAQ,EACR;IACE,6BAA6B;SAC1B,MAAM,CAAC;QACN,WAAW;KACZ,CAAC;SACD,QAAQ,CAAC,8BAA8B,CAAC;IAC3C,+BAA+B;SAC5B,MAAM,CAAC;QACN,WAAW;QACX,MAAM;KACP,CAAC;SACD,QAAQ,CAAC,wCAAwC,CAAC;IACrD,4BAA4B;SACzB,MAAM,CAAC;QACN,WAAW;QACX,KAAK;KACN,CAAC;SACD,QAAQ,CAAC,qCAAqC,CAAC;CACnD,CACF,CAAA"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const set_cool_action_attempt: z.ZodDiscriminatedUnion<"status", [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<"SET_COOL">;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
error: null;
|
|
10
|
+
status: "pending";
|
|
11
|
+
action_attempt_id: string;
|
|
12
|
+
result: null;
|
|
13
|
+
action_type: "SET_COOL";
|
|
14
|
+
}, {
|
|
15
|
+
error: null;
|
|
16
|
+
status: "pending";
|
|
17
|
+
action_attempt_id: string;
|
|
18
|
+
result: null;
|
|
19
|
+
action_type: "SET_COOL";
|
|
20
|
+
}>, z.ZodObject<{
|
|
21
|
+
error: z.ZodNull;
|
|
22
|
+
status: z.ZodLiteral<"success">;
|
|
23
|
+
action_attempt_id: z.ZodString;
|
|
24
|
+
action_type: z.ZodLiteral<"SET_COOL">;
|
|
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: "SET_COOL";
|
|
32
|
+
}, {
|
|
33
|
+
error: null;
|
|
34
|
+
status: "success";
|
|
35
|
+
action_attempt_id: string;
|
|
36
|
+
result: {};
|
|
37
|
+
action_type: "SET_COOL";
|
|
38
|
+
}>, z.ZodObject<{
|
|
39
|
+
status: z.ZodLiteral<"error">;
|
|
40
|
+
action_attempt_id: z.ZodString;
|
|
41
|
+
result: z.ZodNull;
|
|
42
|
+
action_type: z.ZodLiteral<"SET_COOL">;
|
|
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: "SET_COOL";
|
|
62
|
+
}, {
|
|
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
|
+
}>]>;
|
|
@@ -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_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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const set_fan_mode_action_attempt: z.ZodDiscriminatedUnion<"status", [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<"SET_FAN_MODE">;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
error: null;
|
|
10
|
+
status: "pending";
|
|
11
|
+
action_attempt_id: string;
|
|
12
|
+
result: null;
|
|
13
|
+
action_type: "SET_FAN_MODE";
|
|
14
|
+
}, {
|
|
15
|
+
error: null;
|
|
16
|
+
status: "pending";
|
|
17
|
+
action_attempt_id: string;
|
|
18
|
+
result: null;
|
|
19
|
+
action_type: "SET_FAN_MODE";
|
|
20
|
+
}>, z.ZodObject<{
|
|
21
|
+
error: z.ZodNull;
|
|
22
|
+
status: z.ZodLiteral<"success">;
|
|
23
|
+
action_attempt_id: z.ZodString;
|
|
24
|
+
action_type: z.ZodLiteral<"SET_FAN_MODE">;
|
|
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: "SET_FAN_MODE";
|
|
32
|
+
}, {
|
|
33
|
+
error: null;
|
|
34
|
+
status: "success";
|
|
35
|
+
action_attempt_id: string;
|
|
36
|
+
result: {};
|
|
37
|
+
action_type: "SET_FAN_MODE";
|
|
38
|
+
}>, z.ZodObject<{
|
|
39
|
+
status: z.ZodLiteral<"error">;
|
|
40
|
+
action_attempt_id: z.ZodString;
|
|
41
|
+
result: z.ZodNull;
|
|
42
|
+
action_type: z.ZodLiteral<"SET_FAN_MODE">;
|
|
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: "SET_FAN_MODE";
|
|
62
|
+
}, {
|
|
63
|
+
error: {
|
|
64
|
+
type: string;
|
|
65
|
+
message: string;
|
|
66
|
+
};
|
|
67
|
+
status: "error";
|
|
68
|
+
action_attempt_id: string;
|
|
69
|
+
result: null;
|
|
70
|
+
action_type: "SET_FAN_MODE";
|
|
71
|
+
}>]>;
|
|
@@ -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_FAN_MODE');
|
|
4
|
+
const error = z.object({
|
|
5
|
+
type: z.string(),
|
|
6
|
+
message: z.string(),
|
|
7
|
+
});
|
|
8
|
+
const result = z.object({});
|
|
9
|
+
export const set_fan_mode_action_attempt = z.discriminatedUnion('status', [
|
|
10
|
+
common_pending_action_attempt
|
|
11
|
+
.extend({
|
|
12
|
+
action_type,
|
|
13
|
+
})
|
|
14
|
+
.describe('Setting fan mode.'),
|
|
15
|
+
common_succeeded_action_attempt
|
|
16
|
+
.extend({
|
|
17
|
+
action_type,
|
|
18
|
+
result,
|
|
19
|
+
})
|
|
20
|
+
.describe('Setting fan mode succeeded.'),
|
|
21
|
+
common_failed_action_attempt
|
|
22
|
+
.extend({ action_type, error })
|
|
23
|
+
.describe('Setting fan mode failed.'),
|
|
24
|
+
]);
|
|
25
|
+
//# sourceMappingURL=set-fan-mode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set-fan-mode.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/set-fan-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,cAAc,CAAC,CAAA;AAE7C,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,2BAA2B,GAAG,CAAC,CAAC,kBAAkB,CAAC,QAAQ,EAAE;IACxE,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,CAAC,CAAA"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const set_heat_cool_action_attempt: z.ZodDiscriminatedUnion<"status", [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<"SET_HEAT_COOL">;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
error: null;
|
|
10
|
+
status: "pending";
|
|
11
|
+
action_attempt_id: string;
|
|
12
|
+
result: null;
|
|
13
|
+
action_type: "SET_HEAT_COOL";
|
|
14
|
+
}, {
|
|
15
|
+
error: null;
|
|
16
|
+
status: "pending";
|
|
17
|
+
action_attempt_id: string;
|
|
18
|
+
result: null;
|
|
19
|
+
action_type: "SET_HEAT_COOL";
|
|
20
|
+
}>, z.ZodObject<{
|
|
21
|
+
error: z.ZodNull;
|
|
22
|
+
status: z.ZodLiteral<"success">;
|
|
23
|
+
action_attempt_id: z.ZodString;
|
|
24
|
+
action_type: z.ZodLiteral<"SET_HEAT_COOL">;
|
|
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: "SET_HEAT_COOL";
|
|
32
|
+
}, {
|
|
33
|
+
error: null;
|
|
34
|
+
status: "success";
|
|
35
|
+
action_attempt_id: string;
|
|
36
|
+
result: {};
|
|
37
|
+
action_type: "SET_HEAT_COOL";
|
|
38
|
+
}>, z.ZodObject<{
|
|
39
|
+
status: z.ZodLiteral<"error">;
|
|
40
|
+
action_attempt_id: z.ZodString;
|
|
41
|
+
result: z.ZodNull;
|
|
42
|
+
action_type: z.ZodLiteral<"SET_HEAT_COOL">;
|
|
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: "SET_HEAT_COOL";
|
|
62
|
+
}, {
|
|
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
|
+
}>]>;
|
|
@@ -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_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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const set_heat_action_attempt: z.ZodDiscriminatedUnion<"status", [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<"SET_HEAT">;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
error: null;
|
|
10
|
+
status: "pending";
|
|
11
|
+
action_attempt_id: string;
|
|
12
|
+
result: null;
|
|
13
|
+
action_type: "SET_HEAT";
|
|
14
|
+
}, {
|
|
15
|
+
error: null;
|
|
16
|
+
status: "pending";
|
|
17
|
+
action_attempt_id: string;
|
|
18
|
+
result: null;
|
|
19
|
+
action_type: "SET_HEAT";
|
|
20
|
+
}>, z.ZodObject<{
|
|
21
|
+
error: z.ZodNull;
|
|
22
|
+
status: z.ZodLiteral<"success">;
|
|
23
|
+
action_attempt_id: z.ZodString;
|
|
24
|
+
action_type: z.ZodLiteral<"SET_HEAT">;
|
|
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: "SET_HEAT";
|
|
32
|
+
}, {
|
|
33
|
+
error: null;
|
|
34
|
+
status: "success";
|
|
35
|
+
action_attempt_id: string;
|
|
36
|
+
result: {};
|
|
37
|
+
action_type: "SET_HEAT";
|
|
38
|
+
}>, z.ZodObject<{
|
|
39
|
+
status: z.ZodLiteral<"error">;
|
|
40
|
+
action_attempt_id: z.ZodString;
|
|
41
|
+
result: z.ZodNull;
|
|
42
|
+
action_type: z.ZodLiteral<"SET_HEAT">;
|
|
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: "SET_HEAT";
|
|
62
|
+
}, {
|
|
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
|
+
}>]>;
|