@seamapi/types 1.304.0 → 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.
@@ -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"}
@@ -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: {