@seamapi/types 1.429.0 → 1.430.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.
Files changed (27) hide show
  1. package/dist/connect.cjs +252 -8
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +453 -12
  4. package/lib/seam/connect/models/devices/capability-properties/index.d.ts +18 -0
  5. package/lib/seam/connect/models/devices/capability-properties/thermostat.d.ts +18 -0
  6. package/lib/seam/connect/models/devices/capability-properties/thermostat.js +8 -1
  7. package/lib/seam/connect/models/devices/capability-properties/thermostat.js.map +1 -1
  8. package/lib/seam/connect/models/devices/device.d.ts +26 -0
  9. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +18 -0
  10. package/lib/seam/connect/models/events/devices.d.ts +2 -0
  11. package/lib/seam/connect/models/events/seam-event.d.ts +1 -0
  12. package/lib/seam/connect/models/thermostats/climate-preset.d.ts +6 -0
  13. package/lib/seam/connect/models/thermostats/climate-preset.js +4 -1
  14. package/lib/seam/connect/models/thermostats/climate-preset.js.map +1 -1
  15. package/lib/seam/connect/models/thermostats/modes.d.ts +2 -0
  16. package/lib/seam/connect/models/thermostats/modes.js +8 -0
  17. package/lib/seam/connect/models/thermostats/modes.js.map +1 -1
  18. package/lib/seam/connect/openapi.d.ts +210 -4
  19. package/lib/seam/connect/openapi.js +234 -8
  20. package/lib/seam/connect/openapi.js.map +1 -1
  21. package/lib/seam/connect/route-types.d.ts +198 -8
  22. package/package.json +2 -2
  23. package/src/lib/seam/connect/models/devices/capability-properties/thermostat.ts +8 -0
  24. package/src/lib/seam/connect/models/thermostats/climate-preset.ts +8 -1
  25. package/src/lib/seam/connect/models/thermostats/modes.ts +11 -0
  26. package/src/lib/seam/connect/openapi.ts +243 -8
  27. package/src/lib/seam/connect/route-types.ts +683 -8
package/dist/connect.cjs CHANGED
@@ -148,6 +148,14 @@ var lock_capability_properties = zod.z.object({
148
148
  var hvac_mode_setting = zod.z.enum(["off", "heat", "cool", "heat_cool"]);
149
149
  var fan_mode_setting = zod.z.enum(["auto", "on", "circulate"]);
150
150
  zod.z.array(fan_mode_setting);
151
+ var climate_preset_mode = zod.z.enum([
152
+ "home",
153
+ "away",
154
+ "wake",
155
+ "sleep",
156
+ "occupied",
157
+ "unoccupied"
158
+ ]);
151
159
 
152
160
  // src/lib/seam/connect/models/thermostats/climate-preset.ts
153
161
  var climate_preset = zod.z.object({
@@ -169,6 +177,9 @@ var climate_preset = zod.z.object({
169
177
  display_name: zod.z.string().describe(
170
178
  "Display name for the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets)."
171
179
  ),
180
+ climate_preset_mode: climate_preset_mode.optional().describe(`
181
+ The climate preset mode for the thermostat, based on the available climate preset modes reported by the device.
182
+ `),
172
183
  fan_mode_setting: fan_mode_setting.optional().describe(
173
184
  "Desired [fan mode setting](https://docs.seam.co/latest/capability-guides/thermostats/configure-current-climate-settings#fan-mode-settings), such as `on`, `auto`, or `circulate`."
174
185
  ),
@@ -319,6 +330,13 @@ var thermostat_capability_properties = zod.z.object({
319
330
  ---
320
331
  Fan mode settings that the thermostat supports.
321
332
  `),
333
+ available_climate_preset_modes: zod.z.array(climate_preset_mode).describe(`
334
+ ---
335
+ property_group_key: thermostats
336
+ draft: Needs review.
337
+ ---
338
+ Climate preset modes that the thermostat supports, such as "home", "away", "wake", "sleep", "occupied", and "unoccupied".
339
+ `),
322
340
  is_heating: zod.z.boolean().describe(`
323
341
  ---
324
342
  property_group_key: thermostats
@@ -15584,6 +15602,23 @@ var openapi_default = {
15584
15602
  type: "string",
15585
15603
  "x-property-group-key": "thermostats"
15586
15604
  },
15605
+ available_climate_preset_modes: {
15606
+ description: 'Climate preset modes that the thermostat supports, such as "home", "away", "wake", "sleep", "occupied", and "unoccupied".',
15607
+ items: {
15608
+ enum: [
15609
+ "home",
15610
+ "away",
15611
+ "wake",
15612
+ "sleep",
15613
+ "occupied",
15614
+ "unoccupied"
15615
+ ],
15616
+ type: "string"
15617
+ },
15618
+ type: "array",
15619
+ "x-draft": "Needs review.",
15620
+ "x-property-group-key": "thermostats"
15621
+ },
15587
15622
  available_climate_presets: {
15588
15623
  description: "Available [climate presets](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets) for the thermostat.",
15589
15624
  items: {
@@ -15604,6 +15639,18 @@ var openapi_default = {
15604
15639
  description: "Unique key to identify the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets).",
15605
15640
  type: "string"
15606
15641
  },
15642
+ climate_preset_mode: {
15643
+ description: "\n The climate preset mode for the thermostat, based on the available climate preset modes reported by the device.\n ",
15644
+ enum: [
15645
+ "home",
15646
+ "away",
15647
+ "wake",
15648
+ "sleep",
15649
+ "occupied",
15650
+ "unoccupied"
15651
+ ],
15652
+ type: "string"
15653
+ },
15607
15654
  cooling_set_point_celsius: {
15608
15655
  description: "Temperature to which the thermostat should cool (in \xB0C). See also [Set Points](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points).",
15609
15656
  format: "float",
@@ -15701,6 +15748,18 @@ var openapi_default = {
15701
15748
  description: "Unique key to identify the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets).",
15702
15749
  type: "string"
15703
15750
  },
15751
+ climate_preset_mode: {
15752
+ description: "\n The climate preset mode for the thermostat, based on the available climate preset modes reported by the device.\n ",
15753
+ enum: [
15754
+ "home",
15755
+ "away",
15756
+ "wake",
15757
+ "sleep",
15758
+ "occupied",
15759
+ "unoccupied"
15760
+ ],
15761
+ type: "string"
15762
+ },
15704
15763
  cooling_set_point_celsius: {
15705
15764
  description: "Temperature to which the thermostat should cool (in \xB0C). See also [Set Points](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points).",
15706
15765
  format: "float",
@@ -15770,6 +15829,18 @@ var openapi_default = {
15770
15829
  description: "Unique key to identify the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets).",
15771
15830
  type: "string"
15772
15831
  },
15832
+ climate_preset_mode: {
15833
+ description: "\n The climate preset mode for the thermostat, based on the available climate preset modes reported by the device.\n ",
15834
+ enum: [
15835
+ "home",
15836
+ "away",
15837
+ "wake",
15838
+ "sleep",
15839
+ "occupied",
15840
+ "unoccupied"
15841
+ ],
15842
+ type: "string"
15843
+ },
15773
15844
  cooling_set_point_celsius: {
15774
15845
  description: "Temperature to which the thermostat should cool (in \xB0C). See also [Set Points](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points).",
15775
15846
  format: "float",
@@ -29264,9 +29335,9 @@ var openapi_default = {
29264
29335
  }
29265
29336
  },
29266
29337
  "/access_grants/delete": {
29267
- get: {
29338
+ delete: {
29268
29339
  description: "Delete an access grant.",
29269
- operationId: "accessGrantsDeleteGet",
29340
+ operationId: "accessGrantsDeleteDelete",
29270
29341
  parameters: [
29271
29342
  {
29272
29343
  in: "query",
@@ -29759,9 +29830,9 @@ var openapi_default = {
29759
29830
  }
29760
29831
  },
29761
29832
  "/access_methods/delete": {
29762
- get: {
29833
+ delete: {
29763
29834
  description: "Delete an access method.",
29764
- operationId: "accessMethodsDeleteGet",
29835
+ operationId: "accessMethodsDeleteDelete",
29765
29836
  parameters: [
29766
29837
  {
29767
29838
  in: "query",
@@ -46003,6 +46074,43 @@ var openapi_default = {
46003
46074
  "x-response-key": null,
46004
46075
  "x-title": "Delete Customer Portal Automation Configuration",
46005
46076
  "x-undocumented": "Internal endpoint for customer portals."
46077
+ },
46078
+ post: {
46079
+ description: "Deletes the automation configuration for a customer portal workspace.\nSupports both console session and customer client session authentication.",
46080
+ operationId: "seamCustomerV1AutomationsDeletePost",
46081
+ requestBody: {
46082
+ content: {
46083
+ "application/json": { schema: { properties: {}, type: "object" } }
46084
+ }
46085
+ },
46086
+ responses: {
46087
+ 200: {
46088
+ content: {
46089
+ "application/json": {
46090
+ schema: {
46091
+ properties: { ok: { type: "boolean" } },
46092
+ required: ["ok"],
46093
+ type: "object"
46094
+ }
46095
+ }
46096
+ },
46097
+ description: "OK"
46098
+ },
46099
+ 400: { description: "Bad Request" },
46100
+ 401: { description: "Unauthorized" }
46101
+ },
46102
+ security: [
46103
+ { console_session_with_workspace: [] },
46104
+ { api_key: [] },
46105
+ { client_session_with_customer: [] }
46106
+ ],
46107
+ summary: "/seam/customer/v1/automations/delete",
46108
+ tags: [],
46109
+ "x-fern-sdk-group-name": ["seam", "customer", "v1", "automations"],
46110
+ "x-fern-sdk-method-name": "delete",
46111
+ "x-response-key": null,
46112
+ "x-title": "Delete Customer Portal Automation Configuration",
46113
+ "x-undocumented": "Internal endpoint for customer portals."
46006
46114
  }
46007
46115
  },
46008
46116
  "/seam/customer/v1/automations/get": {
@@ -46105,6 +46213,106 @@ var openapi_default = {
46105
46213
  "x-response-key": null,
46106
46214
  "x-title": "Get Customer Portal Automation Configuration",
46107
46215
  "x-undocumented": "Internal endpoint for customer portals."
46216
+ },
46217
+ post: {
46218
+ description: "Gets the current automation configuration for a customer portal workspace.\nFor customer client sessions, returns customer-specific config if available,\notherwise falls back to workspace-level config.",
46219
+ operationId: "seamCustomerV1AutomationsGetPost",
46220
+ responses: {
46221
+ 200: {
46222
+ content: {
46223
+ "application/json": {
46224
+ schema: {
46225
+ properties: {
46226
+ access_rules: {
46227
+ properties: {
46228
+ reservation_created: {
46229
+ properties: {
46230
+ config: {
46231
+ properties: {
46232
+ access_methods: {
46233
+ items: {
46234
+ enum: ["card", "mobile_key", "code"],
46235
+ type: "string"
46236
+ },
46237
+ minItems: 1,
46238
+ type: "array"
46239
+ },
46240
+ method_issuance_strategy: {
46241
+ enum: [
46242
+ "first_available",
46243
+ "first_two_available",
46244
+ "all_available"
46245
+ ],
46246
+ type: "string"
46247
+ }
46248
+ },
46249
+ required: [
46250
+ "access_methods",
46251
+ "method_issuance_strategy"
46252
+ ],
46253
+ type: "object"
46254
+ },
46255
+ rule: {
46256
+ enum: ["reservation_created"],
46257
+ type: "string"
46258
+ }
46259
+ },
46260
+ required: ["rule", "config"],
46261
+ type: "object"
46262
+ },
46263
+ reservation_deleted: {
46264
+ properties: {
46265
+ config: {
46266
+ $ref: "#/components/schemas/access_code"
46267
+ },
46268
+ rule: {
46269
+ enum: ["reservation_deleted"],
46270
+ type: "string"
46271
+ }
46272
+ },
46273
+ required: ["rule", "config"],
46274
+ type: "object"
46275
+ },
46276
+ reservation_time_updated: {
46277
+ properties: {
46278
+ config: {
46279
+ $ref: "#/components/schemas/access_code"
46280
+ },
46281
+ rule: {
46282
+ enum: ["reservation_time_updated"],
46283
+ type: "string"
46284
+ }
46285
+ },
46286
+ required: ["rule", "config"],
46287
+ type: "object"
46288
+ }
46289
+ },
46290
+ type: "object"
46291
+ },
46292
+ ok: { type: "boolean" }
46293
+ },
46294
+ required: ["ok"],
46295
+ type: "object"
46296
+ }
46297
+ }
46298
+ },
46299
+ description: "OK"
46300
+ },
46301
+ 400: { description: "Bad Request" },
46302
+ 401: { description: "Unauthorized" }
46303
+ },
46304
+ security: [
46305
+ { console_session_with_workspace: [] },
46306
+ { api_key: [] },
46307
+ { client_session_with_customer: [] }
46308
+ ],
46309
+ summary: "/seam/customer/v1/automations/get",
46310
+ tags: [],
46311
+ "x-fern-sdk-group-name": ["seam", "customer", "v1", "automations"],
46312
+ "x-fern-sdk-method-name": "get",
46313
+ "x-response-key": null,
46314
+ "x-title": "Get Customer Portal Automation Configuration",
46315
+ "x-undocumented": "Internal endpoint for customer portals."
46108
46316
  }
46109
46317
  },
46110
46318
  "/seam/customer/v1/automations/update": {
@@ -48024,6 +48232,18 @@ var openapi_default = {
48024
48232
  description: "Unique key to identify the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets).",
48025
48233
  type: "string"
48026
48234
  },
48235
+ climate_preset_mode: {
48236
+ description: "\n The climate preset mode for the thermostat, based on the available climate preset modes reported by the device.\n ",
48237
+ enum: [
48238
+ "home",
48239
+ "away",
48240
+ "wake",
48241
+ "sleep",
48242
+ "occupied",
48243
+ "unoccupied"
48244
+ ],
48245
+ type: "string"
48246
+ },
48027
48247
  cooling_set_point_celsius: {
48028
48248
  description: "Temperature to which the thermostat should cool (in \xB0C). See also [Set Points](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points).",
48029
48249
  format: "float",
@@ -50580,6 +50800,18 @@ var openapi_default = {
50580
50800
  description: "Unique key to identify the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets).",
50581
50801
  type: "string"
50582
50802
  },
50803
+ climate_preset_mode: {
50804
+ description: "\n The climate preset mode for the thermostat, based on the available climate preset modes reported by the device.\n ",
50805
+ enum: [
50806
+ "home",
50807
+ "away",
50808
+ "wake",
50809
+ "sleep",
50810
+ "occupied",
50811
+ "unoccupied"
50812
+ ],
50813
+ type: "string"
50814
+ },
50583
50815
  cooling_set_point_celsius: {
50584
50816
  description: "Temperature to which the thermostat should cool (in \xB0C). See also [Set Points](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points).",
50585
50817
  format: "float",
@@ -50675,6 +50907,18 @@ var openapi_default = {
50675
50907
  description: "Unique key to identify the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets).",
50676
50908
  type: "string"
50677
50909
  },
50910
+ climate_preset_mode: {
50911
+ description: "\n The climate preset mode for the thermostat, based on the available climate preset modes reported by the device.\n ",
50912
+ enum: [
50913
+ "home",
50914
+ "away",
50915
+ "wake",
50916
+ "sleep",
50917
+ "occupied",
50918
+ "unoccupied"
50919
+ ],
50920
+ type: "string"
50921
+ },
50678
50922
  cooling_set_point_celsius: {
50679
50923
  description: "Temperature to which the thermostat should cool (in \xB0C). See also [Set Points](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points).",
50680
50924
  format: "float",
@@ -51029,9 +51273,9 @@ var openapi_default = {
51029
51273
  }
51030
51274
  },
51031
51275
  "/unstable_access_grants/delete": {
51032
- get: {
51276
+ delete: {
51033
51277
  description: "Deletes an access grant.",
51034
- operationId: "unstableAccessGrantsDeleteGet",
51278
+ operationId: "unstableAccessGrantsDeleteDelete",
51035
51279
  parameters: [
51036
51280
  {
51037
51281
  in: "query",
@@ -51398,9 +51642,9 @@ var openapi_default = {
51398
51642
  }
51399
51643
  },
51400
51644
  "/unstable_access_methods/delete": {
51401
- get: {
51645
+ delete: {
51402
51646
  description: "Deletes an access method.",
51403
- operationId: "unstableAccessMethodsDeleteGet",
51647
+ operationId: "unstableAccessMethodsDeleteDelete",
51404
51648
  parameters: [
51405
51649
  {
51406
51650
  in: "query",