@seamapi/types 1.418.0 → 1.419.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
@@ -1463,6 +1463,14 @@ var ttlock_weak_gateway_signal = common_device_warning.extend({
1463
1463
  }).describe(`
1464
1464
  Indicates that the gateway signal is weak.
1465
1465
  `);
1466
+ var power_saving_mode = common_device_warning.extend({
1467
+ warning_code: zod.z.literal("power_saving_mode").describe(warning_code_description2)
1468
+ }).describe(`
1469
+ ---
1470
+ variant_group_key: locks
1471
+ ---
1472
+ Indicates that the device is in power saving mode and may have limited functionality.
1473
+ `);
1466
1474
  var temperature_threshold_exceeded = common_device_warning.extend({
1467
1475
  warning_code: zod.z.literal("temperature_threshold_exceeded").describe(warning_code_description2)
1468
1476
  }).describe(`
@@ -1502,6 +1510,7 @@ var device_warning = zod.z.discriminatedUnion("warning_code", [
1502
1510
  nest_thermostat_in_manual_eco_mode,
1503
1511
  ttlock_lock_gateway_unlocking_not_enabled,
1504
1512
  ttlock_weak_gateway_signal,
1513
+ power_saving_mode,
1505
1514
  temperature_threshold_exceeded,
1506
1515
  device_communication_degraded,
1507
1516
  scheduled_maintenance_window2,
@@ -1525,6 +1534,7 @@ zod.z.object({
1525
1534
  nest_thermostat_in_manual_eco_mode: nest_thermostat_in_manual_eco_mode.optional().nullable(),
1526
1535
  ttlock_lock_gateway_unlocking_not_enabled: ttlock_lock_gateway_unlocking_not_enabled.optional().nullable(),
1527
1536
  ttlock_weak_gateway_signal: ttlock_weak_gateway_signal.optional().nullable(),
1537
+ power_saving_mode: power_saving_mode.optional().nullable(),
1528
1538
  temperature_threshold_exceeded: temperature_threshold_exceeded.optional().nullable(),
1529
1539
  device_communication_degraded: device_communication_degraded.optional().nullable(),
1530
1540
  scheduled_maintenance_window: scheduled_maintenance_window2.optional().nullable(),
@@ -2260,12 +2270,46 @@ var access_code = zod.z.object({
2260
2270
  ...access_code_error.options,
2261
2271
  ...device_and_connected_account_error_options
2262
2272
  ])
2263
- ).describe(
2264
- "Errors associated with the [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes)."
2265
- ),
2266
- warnings: zod.z.array(access_code_warning).describe(
2267
- "Warnings associated with the [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes)."
2268
- ),
2273
+ ).describe(`
2274
+ ---
2275
+ variant_groups:
2276
+ locks:
2277
+ name: Locks
2278
+ access_codes:
2279
+ name: Access Codes
2280
+ thermostats:
2281
+ name: Thermostats
2282
+ hardware:
2283
+ name: Hardware
2284
+ noise_sensors:
2285
+ name: Noise Sensors
2286
+ phones:
2287
+ name: Phones
2288
+ provider_metadata:
2289
+ name: Provider Metadata
2290
+ ---
2291
+ Errors associated with the [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes).
2292
+ `),
2293
+ warnings: zod.z.array(access_code_warning).describe(`
2294
+ ---
2295
+ variant_groups:
2296
+ locks:
2297
+ name: Locks
2298
+ access_codes:
2299
+ name: Access Codes
2300
+ thermostats:
2301
+ name: Thermostats
2302
+ hardware:
2303
+ name: Hardware
2304
+ noise_sensors:
2305
+ name: Noise Sensors
2306
+ phones:
2307
+ name: Phones
2308
+ provider_metadata:
2309
+ name: Provider Metadata
2310
+ ---
2311
+ Warnings associated with the [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes).
2312
+ `),
2269
2313
  is_managed: zod.z.literal(true).describe("Indicates whether Seam manages the access code."),
2270
2314
  starts_at: zod.z.string().datetime().nullable().optional().describe(
2271
2315
  "Date and time at which the time-bound access code becomes active."
@@ -6596,7 +6640,16 @@ var openapi_default = {
6596
6640
  }
6597
6641
  ]
6598
6642
  },
6599
- type: "array"
6643
+ type: "array",
6644
+ "x-variant-groups": {
6645
+ access_codes: { name: "Access Codes" },
6646
+ hardware: { name: "Hardware" },
6647
+ locks: { name: "Locks" },
6648
+ noise_sensors: { name: "Noise Sensors" },
6649
+ phones: { name: "Phones" },
6650
+ provider_metadata: { name: "Provider Metadata" },
6651
+ thermostats: { name: "Thermostats" }
6652
+ }
6600
6653
  },
6601
6654
  is_backup: {
6602
6655
  description: "Indicates whether the access code is a backup code.",
@@ -6918,7 +6971,16 @@ var openapi_default = {
6918
6971
  }
6919
6972
  ]
6920
6973
  },
6921
- type: "array"
6974
+ type: "array",
6975
+ "x-variant-groups": {
6976
+ access_codes: { name: "Access Codes" },
6977
+ hardware: { name: "Hardware" },
6978
+ locks: { name: "Locks" },
6979
+ noise_sensors: { name: "Noise Sensors" },
6980
+ phones: { name: "Phones" },
6981
+ provider_metadata: { name: "Provider Metadata" },
6982
+ thermostats: { name: "Thermostats" }
6983
+ }
6922
6984
  }
6923
6985
  },
6924
6986
  required: [
@@ -16416,6 +16478,28 @@ var openapi_default = {
16416
16478
  required: ["message", "created_at", "warning_code"],
16417
16479
  type: "object"
16418
16480
  },
16481
+ {
16482
+ description: "Indicates that the device is in power saving mode and may have limited functionality.",
16483
+ properties: {
16484
+ created_at: {
16485
+ description: "Date and time at which Seam created the warning.",
16486
+ format: "date-time",
16487
+ type: "string"
16488
+ },
16489
+ message: {
16490
+ description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
16491
+ type: "string"
16492
+ },
16493
+ warning_code: {
16494
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
16495
+ enum: ["power_saving_mode"],
16496
+ type: "string"
16497
+ }
16498
+ },
16499
+ required: ["message", "created_at", "warning_code"],
16500
+ type: "object",
16501
+ "x-variant-group-key": "locks"
16502
+ },
16419
16503
  {
16420
16504
  description: "Indicates that the temperature threshold has been exceeded.",
16421
16505
  properties: {
@@ -23967,7 +24051,16 @@ var openapi_default = {
23967
24051
  }
23968
24052
  ]
23969
24053
  },
23970
- type: "array"
24054
+ type: "array",
24055
+ "x-variant-groups": {
24056
+ access_codes: { name: "Access Codes" },
24057
+ hardware: { name: "Hardware" },
24058
+ locks: { name: "Locks" },
24059
+ noise_sensors: { name: "Noise Sensors" },
24060
+ phones: { name: "Phones" },
24061
+ provider_metadata: { name: "Provider Metadata" },
24062
+ thermostats: { name: "Thermostats" }
24063
+ }
23971
24064
  },
23972
24065
  is_managed: {
23973
24066
  description: "Indicates that Seam does not manage the access code.",
@@ -24255,7 +24348,16 @@ var openapi_default = {
24255
24348
  }
24256
24349
  ]
24257
24350
  },
24258
- type: "array"
24351
+ type: "array",
24352
+ "x-variant-groups": {
24353
+ access_codes: { name: "Access Codes" },
24354
+ hardware: { name: "Hardware" },
24355
+ locks: { name: "Locks" },
24356
+ noise_sensors: { name: "Noise Sensors" },
24357
+ phones: { name: "Phones" },
24358
+ provider_metadata: { name: "Provider Metadata" },
24359
+ thermostats: { name: "Thermostats" }
24360
+ }
24259
24361
  }
24260
24362
  },
24261
24363
  required: [
@@ -26330,6 +26432,28 @@ var openapi_default = {
26330
26432
  required: ["message", "created_at", "warning_code"],
26331
26433
  type: "object"
26332
26434
  },
26435
+ {
26436
+ description: "Indicates that the device is in power saving mode and may have limited functionality.",
26437
+ properties: {
26438
+ created_at: {
26439
+ description: "Date and time at which Seam created the warning.",
26440
+ format: "date-time",
26441
+ type: "string"
26442
+ },
26443
+ message: {
26444
+ description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
26445
+ type: "string"
26446
+ },
26447
+ warning_code: {
26448
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
26449
+ enum: ["power_saving_mode"],
26450
+ type: "string"
26451
+ }
26452
+ },
26453
+ required: ["message", "created_at", "warning_code"],
26454
+ type: "object",
26455
+ "x-variant-group-key": "locks"
26456
+ },
26333
26457
  {
26334
26458
  description: "Indicates that the temperature threshold has been exceeded.",
26335
26459
  properties: {