@seamapi/types 1.304.0 → 1.306.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
@@ -959,7 +959,8 @@ var DEVICE_PROVIDERS = {
959
959
  LATCH: "latch",
960
960
  AKILES: "akiles",
961
961
  VOSTIO: "assa_abloy_vostio",
962
- ASSA_ABLOY_VOSTIO_CREDENTIAL_SERVICE: "assa_abloy_vostio_credential_service"
962
+ ASSA_ABLOY_VOSTIO_CREDENTIAL_SERVICE: "assa_abloy_vostio_credential_service",
963
+ TADO: "tado"
963
964
  };
964
965
  var ALL_DEVICE_PROVIDERS = Object.values(DEVICE_PROVIDERS);
965
966
  var PROVIDER_CATEGORY_MAP = {
@@ -2062,40 +2063,56 @@ var set_heat_cool_action_attempt = zod.z.discriminatedUnion("status", [
2062
2063
  }).describe("Setting HVAC to heat-cool mode succeeded."),
2063
2064
  common_failed_action_attempt.extend({ action_type: action_type9, error: error10 }).describe("Setting heat-cool mode failed.")
2064
2065
  ]);
2065
- var action_type10 = zod.z.literal("SET_THERMOSTAT_OFF");
2066
+ var action_type10 = zod.z.literal("SET_HVAC_MODE");
2066
2067
  var error11 = zod.z.object({
2067
2068
  type: zod.z.string(),
2068
2069
  message: zod.z.string()
2069
2070
  });
2070
2071
  var result11 = zod.z.object({});
2072
+ var set_hvac_mode_action_attempt = zod.z.discriminatedUnion("status", [
2073
+ common_pending_action_attempt.extend({
2074
+ action_type: action_type10
2075
+ }).describe("Setting HVAC mode."),
2076
+ common_succeeded_action_attempt.extend({
2077
+ action_type: action_type10,
2078
+ result: result11
2079
+ }).describe("Setting HVAC mode succeeded."),
2080
+ common_failed_action_attempt.extend({ action_type: action_type10, error: error11 }).describe("Setting HVAC mode failed.")
2081
+ ]);
2082
+ var action_type11 = zod.z.literal("SET_THERMOSTAT_OFF");
2083
+ var error12 = zod.z.object({
2084
+ type: zod.z.string(),
2085
+ message: zod.z.string()
2086
+ });
2087
+ var result12 = zod.z.object({});
2071
2088
  var set_thermostat_off_action_attempt = zod.z.discriminatedUnion(
2072
2089
  "status",
2073
2090
  [
2074
2091
  common_pending_action_attempt.extend({
2075
- action_type: action_type10
2092
+ action_type: action_type11
2076
2093
  }).describe("Turning HVAC off."),
2077
2094
  common_succeeded_action_attempt.extend({
2078
- action_type: action_type10,
2079
- result: result11
2095
+ action_type: action_type11,
2096
+ result: result12
2080
2097
  }).describe("Turning HVAC off succeeded."),
2081
- common_failed_action_attempt.extend({ action_type: action_type10, error: error11 }).describe("Turning HVAC off failed.")
2098
+ common_failed_action_attempt.extend({ action_type: action_type11, error: error12 }).describe("Turning HVAC off failed.")
2082
2099
  ]
2083
2100
  );
2084
- var action_type11 = zod.z.literal("UNLOCK_DOOR");
2085
- var error12 = zod.z.object({
2101
+ var action_type12 = zod.z.literal("UNLOCK_DOOR");
2102
+ var error13 = zod.z.object({
2086
2103
  type: zod.z.string(),
2087
2104
  message: zod.z.string()
2088
2105
  });
2089
- var result12 = zod.z.object({});
2106
+ var result13 = zod.z.object({});
2090
2107
  var unlock_door_action_attempt = zod.z.discriminatedUnion("status", [
2091
2108
  common_pending_action_attempt.extend({
2092
- action_type: action_type11
2109
+ action_type: action_type12
2093
2110
  }).describe("Unlocking door."),
2094
2111
  common_succeeded_action_attempt.extend({
2095
- action_type: action_type11,
2096
- result: result12
2112
+ action_type: action_type12,
2113
+ result: result13
2097
2114
  }).describe("Unlocking door succeeded."),
2098
- common_failed_action_attempt.extend({ action_type: action_type11, error: error12 }).describe("Unlocking door failed.")
2115
+ common_failed_action_attempt.extend({ action_type: action_type12, error: error13 }).describe("Unlocking door failed.")
2099
2116
  ]);
2100
2117
 
2101
2118
  // src/lib/seam/connect/models/action-attempts/action-attempt.ts
@@ -2110,6 +2127,7 @@ var action_attempt = zod.z.union([
2110
2127
  ...set_heat_cool_action_attempt.options,
2111
2128
  ...set_fan_mode_action_attempt.options,
2112
2129
  ...set_thermostat_off_action_attempt.options,
2130
+ ...set_hvac_mode_action_attempt.options,
2113
2131
  ...activate_climate_preset_action_attempt.options,
2114
2132
  ...deprecated_action_attempts
2115
2133
  ]);
@@ -6061,6 +6079,82 @@ var openapi_default = {
6061
6079
  ],
6062
6080
  type: "object"
6063
6081
  },
6082
+ {
6083
+ description: "Setting HVAC mode.",
6084
+ properties: {
6085
+ action_attempt_id: {
6086
+ description: "The ID of the action attempt.",
6087
+ format: "uuid",
6088
+ type: "string",
6089
+ "x-title": "Action Attempt ID"
6090
+ },
6091
+ action_type: { enum: ["SET_HVAC_MODE"], type: "string" },
6092
+ error: { nullable: true },
6093
+ result: { nullable: true },
6094
+ status: { enum: ["pending"], type: "string" }
6095
+ },
6096
+ required: [
6097
+ "action_attempt_id",
6098
+ "status",
6099
+ "result",
6100
+ "error",
6101
+ "action_type"
6102
+ ],
6103
+ type: "object"
6104
+ },
6105
+ {
6106
+ description: "Setting HVAC mode succeeded.",
6107
+ properties: {
6108
+ action_attempt_id: {
6109
+ description: "The ID of the action attempt.",
6110
+ format: "uuid",
6111
+ type: "string",
6112
+ "x-title": "Action Attempt ID"
6113
+ },
6114
+ action_type: { enum: ["SET_HVAC_MODE"], type: "string" },
6115
+ error: { nullable: true },
6116
+ result: { properties: {}, type: "object" },
6117
+ status: { enum: ["success"], type: "string" }
6118
+ },
6119
+ required: [
6120
+ "action_attempt_id",
6121
+ "status",
6122
+ "error",
6123
+ "action_type",
6124
+ "result"
6125
+ ],
6126
+ type: "object"
6127
+ },
6128
+ {
6129
+ description: "Setting HVAC mode failed.",
6130
+ properties: {
6131
+ action_attempt_id: {
6132
+ description: "The ID of the action attempt.",
6133
+ format: "uuid",
6134
+ type: "string",
6135
+ "x-title": "Action Attempt ID"
6136
+ },
6137
+ action_type: { enum: ["SET_HVAC_MODE"], type: "string" },
6138
+ error: {
6139
+ properties: {
6140
+ message: { type: "string" },
6141
+ type: { type: "string" }
6142
+ },
6143
+ required: ["type", "message"],
6144
+ type: "object"
6145
+ },
6146
+ result: { nullable: true },
6147
+ status: { enum: ["error"], type: "string" }
6148
+ },
6149
+ required: [
6150
+ "action_attempt_id",
6151
+ "status",
6152
+ "result",
6153
+ "action_type",
6154
+ "error"
6155
+ ],
6156
+ type: "object"
6157
+ },
6064
6158
  {
6065
6159
  description: "Activating climate preset.",
6066
6160
  properties: {
@@ -8254,7 +8348,8 @@ var openapi_default = {
8254
8348
  "latch",
8255
8349
  "akiles",
8256
8350
  "assa_abloy_vostio",
8257
- "assa_abloy_vostio_credential_service"
8351
+ "assa_abloy_vostio_credential_service",
8352
+ "tado"
8258
8353
  ],
8259
8354
  type: "string"
8260
8355
  },
@@ -15578,6 +15673,7 @@ var openapi_default = {
15578
15673
  "akiles",
15579
15674
  "assa_abloy_vostio",
15580
15675
  "assa_abloy_vostio_credential_service",
15676
+ "tado",
15581
15677
  "yale_access",
15582
15678
  "hid_cm",
15583
15679
  "google_nest"
@@ -22171,7 +22267,11 @@ var openapi_default = {
22171
22267
  400: { description: "Bad Request" },
22172
22268
  401: { description: "Unauthorized" }
22173
22269
  },
22174
- security: [{ pat_without_workspace: [] }],
22270
+ security: [
22271
+ { pat_without_workspace: [] },
22272
+ { console_session: [] },
22273
+ { user_session_without_workspace: [] }
22274
+ ],
22175
22275
  summary: "/workspaces/create",
22176
22276
  tags: ["/workspaces"],
22177
22277
  "x-fern-sdk-group-name": ["workspaces"],
@@ -22279,7 +22379,8 @@ var openapi_default = {
22279
22379
  { user_session: [] },
22280
22380
  { user_session_without_workspace: [] },
22281
22381
  { api_key: [] },
22282
- { client_session: [] }
22382
+ { client_session: [] },
22383
+ { console_session: [] }
22283
22384
  ],
22284
22385
  summary: "/workspaces/list",
22285
22386
  tags: ["/workspaces"],
@@ -22316,7 +22417,8 @@ var openapi_default = {
22316
22417
  { user_session: [] },
22317
22418
  { user_session_without_workspace: [] },
22318
22419
  { api_key: [] },
22319
- { client_session: [] }
22420
+ { client_session: [] },
22421
+ { console_session: [] }
22320
22422
  ],
22321
22423
  summary: "/workspaces/list",
22322
22424
  tags: ["/workspaces"],