@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 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
  ]);
@@ -2350,12 +2367,16 @@ var acs_system_event = common_acs_event.extend({});
2350
2367
  var acs_system_connected_event = acs_system_event.extend({
2351
2368
  event_type: zod.z.literal("acs_system.connected")
2352
2369
  }).describe("An ACS system was connected.");
2370
+ var acs_system_disconnected_event = acs_system_event.extend({
2371
+ event_type: zod.z.literal("acs_system.disconnected")
2372
+ }).describe("An ACS system was disconnected.");
2353
2373
  var acs_system_added_event = acs_system_event.extend({
2354
2374
  event_type: zod.z.literal("acs_system.added")
2355
2375
  }).describe("An ACS system was added.");
2356
2376
  var acs_system_events = [
2357
2377
  acs_system_connected_event,
2358
- acs_system_added_event
2378
+ acs_system_added_event,
2379
+ acs_system_disconnected_event
2359
2380
  ];
2360
2381
  var acs_user_event = common_acs_event.extend({
2361
2382
  acs_user_id: zod.z.string().uuid()
@@ -6057,6 +6078,82 @@ var openapi_default = {
6057
6078
  ],
6058
6079
  type: "object"
6059
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
+ },
6060
6157
  {
6061
6158
  description: "Activating climate preset.",
6062
6159
  properties: {
@@ -17272,6 +17369,7 @@ var openapi_default = {
17272
17369
  "access_code.backup_access_code_pulled",
17273
17370
  "acs_system.added",
17274
17371
  "acs_system.connected",
17372
+ "acs_system.disconnected",
17275
17373
  "acs_user.deleted",
17276
17374
  "acs_credential.deleted",
17277
17375
  "acs_credential.issued",
@@ -17348,6 +17446,7 @@ var openapi_default = {
17348
17446
  "access_code.backup_access_code_pulled",
17349
17447
  "acs_system.added",
17350
17448
  "acs_system.connected",
17449
+ "acs_system.disconnected",
17351
17450
  "acs_user.deleted",
17352
17451
  "acs_credential.deleted",
17353
17452
  "acs_credential.issued",