@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.
package/dist/connect.cjs CHANGED
@@ -2062,40 +2062,56 @@ var set_heat_cool_action_attempt = zod.z.discriminatedUnion("status", [
2062
2062
  }).describe("Setting HVAC to heat-cool mode succeeded."),
2063
2063
  common_failed_action_attempt.extend({ action_type: action_type9, error: error10 }).describe("Setting heat-cool mode failed.")
2064
2064
  ]);
2065
- var action_type10 = zod.z.literal("SET_THERMOSTAT_OFF");
2065
+ var action_type10 = zod.z.literal("SET_HVAC_MODE");
2066
2066
  var error11 = zod.z.object({
2067
2067
  type: zod.z.string(),
2068
2068
  message: zod.z.string()
2069
2069
  });
2070
2070
  var result11 = zod.z.object({});
2071
+ var set_hvac_mode_action_attempt = zod.z.discriminatedUnion("status", [
2072
+ common_pending_action_attempt.extend({
2073
+ action_type: action_type10
2074
+ }).describe("Setting HVAC mode."),
2075
+ common_succeeded_action_attempt.extend({
2076
+ action_type: action_type10,
2077
+ result: result11
2078
+ }).describe("Setting HVAC mode succeeded."),
2079
+ common_failed_action_attempt.extend({ action_type: action_type10, error: error11 }).describe("Setting HVAC mode failed.")
2080
+ ]);
2081
+ var action_type11 = zod.z.literal("SET_THERMOSTAT_OFF");
2082
+ var error12 = zod.z.object({
2083
+ type: zod.z.string(),
2084
+ message: zod.z.string()
2085
+ });
2086
+ var result12 = zod.z.object({});
2071
2087
  var set_thermostat_off_action_attempt = zod.z.discriminatedUnion(
2072
2088
  "status",
2073
2089
  [
2074
2090
  common_pending_action_attempt.extend({
2075
- action_type: action_type10
2091
+ action_type: action_type11
2076
2092
  }).describe("Turning HVAC off."),
2077
2093
  common_succeeded_action_attempt.extend({
2078
- action_type: action_type10,
2079
- result: result11
2094
+ action_type: action_type11,
2095
+ result: result12
2080
2096
  }).describe("Turning HVAC off succeeded."),
2081
- common_failed_action_attempt.extend({ action_type: action_type10, error: error11 }).describe("Turning HVAC off failed.")
2097
+ common_failed_action_attempt.extend({ action_type: action_type11, error: error12 }).describe("Turning HVAC off failed.")
2082
2098
  ]
2083
2099
  );
2084
- var action_type11 = zod.z.literal("UNLOCK_DOOR");
2085
- var error12 = zod.z.object({
2100
+ var action_type12 = zod.z.literal("UNLOCK_DOOR");
2101
+ var error13 = zod.z.object({
2086
2102
  type: zod.z.string(),
2087
2103
  message: zod.z.string()
2088
2104
  });
2089
- var result12 = zod.z.object({});
2105
+ var result13 = zod.z.object({});
2090
2106
  var unlock_door_action_attempt = zod.z.discriminatedUnion("status", [
2091
2107
  common_pending_action_attempt.extend({
2092
- action_type: action_type11
2108
+ action_type: action_type12
2093
2109
  }).describe("Unlocking door."),
2094
2110
  common_succeeded_action_attempt.extend({
2095
- action_type: action_type11,
2096
- result: result12
2111
+ action_type: action_type12,
2112
+ result: result13
2097
2113
  }).describe("Unlocking door succeeded."),
2098
- common_failed_action_attempt.extend({ action_type: action_type11, error: error12 }).describe("Unlocking door failed.")
2114
+ common_failed_action_attempt.extend({ action_type: action_type12, error: error13 }).describe("Unlocking door failed.")
2099
2115
  ]);
2100
2116
 
2101
2117
  // src/lib/seam/connect/models/action-attempts/action-attempt.ts
@@ -2110,6 +2126,7 @@ var action_attempt = zod.z.union([
2110
2126
  ...set_heat_cool_action_attempt.options,
2111
2127
  ...set_fan_mode_action_attempt.options,
2112
2128
  ...set_thermostat_off_action_attempt.options,
2129
+ ...set_hvac_mode_action_attempt.options,
2113
2130
  ...activate_climate_preset_action_attempt.options,
2114
2131
  ...deprecated_action_attempts
2115
2132
  ]);
@@ -6061,6 +6078,82 @@ var openapi_default = {
6061
6078
  ],
6062
6079
  type: "object"
6063
6080
  },
6081
+ {
6082
+ description: "Setting HVAC mode.",
6083
+ properties: {
6084
+ action_attempt_id: {
6085
+ description: "The ID of the action attempt.",
6086
+ format: "uuid",
6087
+ type: "string",
6088
+ "x-title": "Action Attempt ID"
6089
+ },
6090
+ action_type: { enum: ["SET_HVAC_MODE"], type: "string" },
6091
+ error: { nullable: true },
6092
+ result: { nullable: true },
6093
+ status: { enum: ["pending"], type: "string" }
6094
+ },
6095
+ required: [
6096
+ "action_attempt_id",
6097
+ "status",
6098
+ "result",
6099
+ "error",
6100
+ "action_type"
6101
+ ],
6102
+ type: "object"
6103
+ },
6104
+ {
6105
+ description: "Setting HVAC mode succeeded.",
6106
+ properties: {
6107
+ action_attempt_id: {
6108
+ description: "The ID of the action attempt.",
6109
+ format: "uuid",
6110
+ type: "string",
6111
+ "x-title": "Action Attempt ID"
6112
+ },
6113
+ action_type: { enum: ["SET_HVAC_MODE"], type: "string" },
6114
+ error: { nullable: true },
6115
+ result: { properties: {}, type: "object" },
6116
+ status: { enum: ["success"], type: "string" }
6117
+ },
6118
+ required: [
6119
+ "action_attempt_id",
6120
+ "status",
6121
+ "error",
6122
+ "action_type",
6123
+ "result"
6124
+ ],
6125
+ type: "object"
6126
+ },
6127
+ {
6128
+ description: "Setting HVAC mode failed.",
6129
+ properties: {
6130
+ action_attempt_id: {
6131
+ description: "The ID of the action attempt.",
6132
+ format: "uuid",
6133
+ type: "string",
6134
+ "x-title": "Action Attempt ID"
6135
+ },
6136
+ action_type: { enum: ["SET_HVAC_MODE"], type: "string" },
6137
+ error: {
6138
+ properties: {
6139
+ message: { type: "string" },
6140
+ type: { type: "string" }
6141
+ },
6142
+ required: ["type", "message"],
6143
+ type: "object"
6144
+ },
6145
+ result: { nullable: true },
6146
+ status: { enum: ["error"], type: "string" }
6147
+ },
6148
+ required: [
6149
+ "action_attempt_id",
6150
+ "status",
6151
+ "result",
6152
+ "action_type",
6153
+ "error"
6154
+ ],
6155
+ type: "object"
6156
+ },
6064
6157
  {
6065
6158
  description: "Activating climate preset.",
6066
6159
  properties: {