@seamapi/types 1.766.0 → 1.768.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 (42) hide show
  1. package/dist/connect.cjs +410 -130
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +2887 -10
  4. package/dist/index.cjs +410 -130
  5. package/dist/index.cjs.map +1 -1
  6. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +75 -0
  7. package/lib/seam/connect/models/action-attempts/action-attempt.js +2 -0
  8. package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -1
  9. package/lib/seam/connect/models/action-attempts/configure-auto-lock.d.ts +77 -0
  10. package/lib/seam/connect/models/action-attempts/configure-auto-lock.js +31 -0
  11. package/lib/seam/connect/models/action-attempts/configure-auto-lock.js.map +1 -0
  12. package/lib/seam/connect/models/batch.d.ts +166 -0
  13. package/lib/seam/connect/models/customer/customer-portal.js +6 -2
  14. package/lib/seam/connect/models/customer/customer-portal.js.map +1 -1
  15. package/lib/seam/connect/models/customer/user-identity-resources.js +1 -0
  16. package/lib/seam/connect/models/customer/user-identity-resources.js.map +1 -1
  17. package/lib/seam/connect/models/devices/capability-properties/index.d.ts +6 -0
  18. package/lib/seam/connect/models/devices/capability-properties/lock.d.ts +6 -0
  19. package/lib/seam/connect/models/devices/capability-properties/lock.js +12 -0
  20. package/lib/seam/connect/models/devices/capability-properties/lock.js.map +1 -1
  21. package/lib/seam/connect/models/devices/device-metadata.d.ts +7 -0
  22. package/lib/seam/connect/models/devices/device-metadata.js +3 -0
  23. package/lib/seam/connect/models/devices/device-metadata.js.map +1 -1
  24. package/lib/seam/connect/models/devices/device-provider.d.ts +3 -0
  25. package/lib/seam/connect/models/devices/device.d.ts +25 -0
  26. package/lib/seam/connect/models/devices/device.js +1 -0
  27. package/lib/seam/connect/models/devices/device.js.map +1 -1
  28. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +17 -0
  29. package/lib/seam/connect/openapi.d.ts +142 -0
  30. package/lib/seam/connect/openapi.js +239 -0
  31. package/lib/seam/connect/openapi.js.map +1 -1
  32. package/lib/seam/connect/route-types.d.ts +2758 -306
  33. package/package.json +1 -1
  34. package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +2 -0
  35. package/src/lib/seam/connect/models/action-attempts/configure-auto-lock.ts +46 -0
  36. package/src/lib/seam/connect/models/customer/customer-portal.ts +6 -4
  37. package/src/lib/seam/connect/models/customer/user-identity-resources.ts +1 -0
  38. package/src/lib/seam/connect/models/devices/capability-properties/lock.ts +12 -0
  39. package/src/lib/seam/connect/models/devices/device-metadata.ts +5 -0
  40. package/src/lib/seam/connect/models/devices/device.ts +1 -0
  41. package/src/lib/seam/connect/openapi.ts +264 -0
  42. package/src/lib/seam/connect/route-types.ts +3085 -330
package/dist/connect.cjs CHANGED
@@ -149,6 +149,18 @@ var lock_capability_properties = zod.z.object({
149
149
  property_group_key: locks
150
150
  ---
151
151
  Indicates whether the door is open.
152
+ `),
153
+ auto_lock_enabled: zod.z.boolean().optional().describe(`
154
+ ---
155
+ property_group_key: locks
156
+ ---
157
+ Indicates whether automatic locking is enabled.
158
+ `),
159
+ auto_lock_delay_seconds: zod.z.number().optional().describe(`
160
+ ---
161
+ property_group_key: locks
162
+ ---
163
+ The delay in seconds before the lock automatically locks after being unlocked.
152
164
  `)
153
165
  });
154
166
  var hvac_mode_setting = zod.z.enum([
@@ -958,7 +970,10 @@ var device_metadata = zod.z.object({
958
970
  incomplete_keyboard_passcode: zod.z.boolean().describe(
959
971
  `Indicates whether a TTLock device supports an incomplete keyboard passcode.`
960
972
  ),
961
- wifi: zod.z.boolean().describe(`Indicates whether a TTLock device supports Wi-Fi.`)
973
+ wifi: zod.z.boolean().describe(`Indicates whether a TTLock device supports Wi-Fi.`),
974
+ auto_lock_time_config: zod.z.boolean().describe(
975
+ `Indicates whether a TTLock device supports auto-lock time configuration.`
976
+ )
962
977
  }).describe(`Features for a TTLock device.`),
963
978
  has_gateway: zod.z.boolean().optional().describe(`Indicates whether a TTLock device has a gateway.`),
964
979
  wireless_keypads: zod.z.array(
@@ -1242,7 +1257,8 @@ var device_capability_flags = zod.z.object({
1242
1257
  can_program_thermostat_programs_as_same_each_day: zod.z.boolean(),
1243
1258
  can_simulate_hub_connection: zod.z.boolean(),
1244
1259
  can_simulate_hub_disconnection: zod.z.boolean(),
1245
- can_simulate_paid_subscription: zod.z.boolean()
1260
+ can_simulate_paid_subscription: zod.z.boolean(),
1261
+ can_configure_auto_lock: zod.z.boolean()
1246
1262
  }).partial();
1247
1263
  var battery_status = zod.z.enum(["critical", "low", "good", "full"]).describe(`Represents the current status of the battery charge level. Values are \`critical\`, which indicates an extremely low level, suggesting imminent shutdown or an urgent need for charging; \`low\`, which signifies that the battery is under the preferred threshold and should be charged soon; \`good\`, which denotes a satisfactory charge level, adequate for normal use without the immediate need for recharging; and \`full\`, which represents a battery that is fully charged, providing the maximum duration of usage.
1248
1264
  `);
@@ -4168,6 +4184,9 @@ var activate_climate_preset_action_attempt = zod.z.discriminatedUnion(
4168
4184
  common_failed_action_attempt.extend({ action_type, error }).describe("Activating a climate preset failed.")
4169
4185
  ]
4170
4186
  );
4187
+ var action_type2 = zod.z.literal("CONFIGURE_AUTO_LOCK").describe(
4188
+ "Action attempt to track the status of configuring the auto-lock on a lock."
4189
+ );
4171
4190
  var error2 = zod.z.object({
4172
4191
  type: zod.z.string().describe("Type of the error."),
4173
4192
  message: zod.z.string().describe(
@@ -4175,17 +4194,37 @@ var error2 = zod.z.object({
4175
4194
  )
4176
4195
  }).describe("Error associated with the action.");
4177
4196
  var result2 = zod.z.object({}).describe("Result of the action.");
4197
+ var configure_auto_lock_action_attempt = zod.z.discriminatedUnion(
4198
+ "status",
4199
+ [
4200
+ common_pending_action_attempt.extend({
4201
+ action_type: action_type2
4202
+ }).describe("Configuring the auto-lock is pending."),
4203
+ common_succeeded_action_attempt.extend({
4204
+ action_type: action_type2,
4205
+ result: result2
4206
+ }).describe("Configuring the auto-lock succeeded."),
4207
+ common_failed_action_attempt.extend({ action_type: action_type2, error: error2 }).describe("Configuring the auto-lock failed.")
4208
+ ]
4209
+ );
4210
+ var error3 = zod.z.object({
4211
+ type: zod.z.string().describe("Type of the error."),
4212
+ message: zod.z.string().describe(
4213
+ "Detailed description of the error. Provides insights into the issue and potentially how to rectify it."
4214
+ )
4215
+ }).describe("Error associated with the action.");
4216
+ var result3 = zod.z.object({}).describe("Result of the action.");
4178
4217
  var sync_access_codes_action_attempt = zod.z.discriminatedUnion("status", [
4179
4218
  common_pending_action_attempt.extend({
4180
4219
  action_type: zod.z.literal("SYNC_ACCESS_CODES").describe("Syncing access codes is pending.")
4181
4220
  }),
4182
4221
  common_succeeded_action_attempt.extend({
4183
4222
  action_type: zod.z.literal("SYNC_ACCESS_CODES").describe("Syncing access codes succeeded."),
4184
- result: result2
4223
+ result: result3
4185
4224
  }),
4186
4225
  common_failed_action_attempt.extend({
4187
4226
  action_type: zod.z.literal("SYNC_ACCESS_CODES").describe("Syncing access codes failed."),
4188
- error: error2
4227
+ error: error3
4189
4228
  })
4190
4229
  ]).describe("Action attempt to track the status of syncing access codes.");
4191
4230
  var create_access_code_action_attempt = zod.z.discriminatedUnion("status", [
@@ -4200,7 +4239,7 @@ var create_access_code_action_attempt = zod.z.discriminatedUnion("status", [
4200
4239
  }),
4201
4240
  common_failed_action_attempt.extend({
4202
4241
  action_type: zod.z.literal("CREATE_ACCESS_CODE").describe("Creating an access code failed."),
4203
- error: error2
4242
+ error: error3
4204
4243
  })
4205
4244
  ]).describe("Action attempt to track the status of creating an access code.");
4206
4245
  var delete_access_code_action_attempt = zod.z.discriminatedUnion("status", [
@@ -4209,11 +4248,11 @@ var delete_access_code_action_attempt = zod.z.discriminatedUnion("status", [
4209
4248
  }),
4210
4249
  common_succeeded_action_attempt.extend({
4211
4250
  action_type: zod.z.literal("DELETE_ACCESS_CODE").describe("Deleting an access code succeeded."),
4212
- result: result2
4251
+ result: result3
4213
4252
  }),
4214
4253
  common_failed_action_attempt.extend({
4215
4254
  action_type: zod.z.literal("DELETE_ACCESS_CODE").describe("Deleting an access code failed."),
4216
- error: error2
4255
+ error: error3
4217
4256
  })
4218
4257
  ]).describe("Action attempt to track the status of deleting an access code.");
4219
4258
  var update_access_code_action_attempt = zod.z.discriminatedUnion("status", [
@@ -4228,7 +4267,7 @@ var update_access_code_action_attempt = zod.z.discriminatedUnion("status", [
4228
4267
  }),
4229
4268
  common_failed_action_attempt.extend({
4230
4269
  action_type: zod.z.literal("UPDATE_ACCESS_CODE").describe("Updating an access code failed."),
4231
- error: error2
4270
+ error: error3
4232
4271
  })
4233
4272
  ]).describe("Action attempt to track the status of updating an access code.");
4234
4273
  var create_noise_threshold_action_attempt = zod.z.discriminatedUnion("status", [
@@ -4243,7 +4282,7 @@ var create_noise_threshold_action_attempt = zod.z.discriminatedUnion("status", [
4243
4282
  }),
4244
4283
  common_failed_action_attempt.extend({
4245
4284
  action_type: zod.z.literal("CREATE_NOISE_THRESHOLD").describe("Creating a noise threshold failed."),
4246
- error: error2
4285
+ error: error3
4247
4286
  })
4248
4287
  ]).describe("Action attempt to track the status of creating a noise threshold.");
4249
4288
  var delete_noise_threshold_action_attempt = zod.z.discriminatedUnion("status", [
@@ -4252,11 +4291,11 @@ var delete_noise_threshold_action_attempt = zod.z.discriminatedUnion("status", [
4252
4291
  }),
4253
4292
  common_succeeded_action_attempt.extend({
4254
4293
  action_type: zod.z.literal("DELETE_NOISE_THRESHOLD").describe("Deleting a noise threshold succeeded."),
4255
- result: result2
4294
+ result: result3
4256
4295
  }),
4257
4296
  common_failed_action_attempt.extend({
4258
4297
  action_type: zod.z.literal("DELETE_NOISE_THRESHOLD").describe("Deleting a noise threshold failed."),
4259
- error: error2
4298
+ error: error3
4260
4299
  })
4261
4300
  ]).describe("Action attempt to track the status of deleting a noise threshold.");
4262
4301
  var update_noise_threshold_action_attempt = zod.z.discriminatedUnion("status", [
@@ -4271,7 +4310,7 @@ var update_noise_threshold_action_attempt = zod.z.discriminatedUnion("status", [
4271
4310
  }),
4272
4311
  common_failed_action_attempt.extend({
4273
4312
  action_type: zod.z.literal("UPDATE_NOISE_THRESHOLD").describe("Updating a noise threshold failed."),
4274
- error: error2
4313
+ error: error3
4275
4314
  })
4276
4315
  ]).describe("Action attempt to track the status of updating a noise threshold.");
4277
4316
  var deprecated_action_attempts = [
@@ -4283,7 +4322,7 @@ var deprecated_action_attempts = [
4283
4322
  ...delete_noise_threshold_action_attempt.options,
4284
4323
  ...update_noise_threshold_action_attempt.options
4285
4324
  ];
4286
- var action_type2 = zod.z.literal("ENCODE_CREDENTIAL").describe(
4325
+ var action_type3 = zod.z.literal("ENCODE_CREDENTIAL").describe(
4287
4326
  "Action attempt to track the status of encoding credential data from the physical encoder onto a card."
4288
4327
  );
4289
4328
  var no_credential_on_encoder_error = zod.z.object({
@@ -4316,104 +4355,104 @@ var encoder_not_online_error = zod.z.object({
4316
4355
  "Detailed description of the error. Provides insights into the issue and potentially how to rectify it."
4317
4356
  )
4318
4357
  }).describe("Error to indicate that the encoder is not online.");
4319
- var error3 = zod.z.union([
4358
+ var error4 = zod.z.union([
4320
4359
  ...common_action_attempt_errors,
4321
4360
  no_credential_on_encoder_error,
4322
4361
  incompatible_card_format_error,
4323
4362
  credential_cannot_be_reissued,
4324
4363
  encoder_not_online_error
4325
4364
  ]);
4326
- var result3 = acs_credential.or(unmanaged_acs_credential).describe(
4365
+ var result4 = acs_credential.or(unmanaged_acs_credential).describe(
4327
4366
  "Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card."
4328
4367
  );
4329
4368
  var encode_credential_action_attempt = zod.z.discriminatedUnion("status", [
4330
4369
  common_pending_action_attempt.extend({
4331
- action_type: action_type2
4370
+ action_type: action_type3
4332
4371
  }).describe(
4333
4372
  "Encoding credential data from the physical encoder onto a card is pending."
4334
4373
  ),
4335
4374
  common_succeeded_action_attempt.extend({
4336
- action_type: action_type2,
4337
- result: result3
4375
+ action_type: action_type3,
4376
+ result: result4
4338
4377
  }).describe(
4339
4378
  "Encoding credential data from the physical encoder onto a card succeeded."
4340
4379
  ),
4341
- common_failed_action_attempt.extend({ action_type: action_type2, error: error3 }).describe(
4380
+ common_failed_action_attempt.extend({ action_type: action_type3, error: error4 }).describe(
4342
4381
  "Encoding credential data from the physical encoder onto a card failed."
4343
4382
  )
4344
4383
  ]);
4345
- var action_type3 = zod.z.literal("LOCK_DOOR").describe("Action attempt to track the status of locking a door.");
4346
- var error4 = zod.z.object({
4384
+ var action_type4 = zod.z.literal("LOCK_DOOR").describe("Action attempt to track the status of locking a door.");
4385
+ var error5 = zod.z.object({
4347
4386
  type: zod.z.string().describe("Type of the error."),
4348
4387
  message: zod.z.string().describe(
4349
4388
  "Detailed description of the error. Provides insights into the issue and potentially how to rectify it."
4350
4389
  )
4351
4390
  }).describe("Error associated with the action.");
4352
- var result4 = zod.z.object({
4391
+ var result5 = zod.z.object({
4353
4392
  was_confirmed_by_device: zod.z.boolean().optional().describe(
4354
4393
  "Indicates whether the device confirmed that the lock action occurred."
4355
4394
  )
4356
4395
  }).describe("Result of the action.");
4357
4396
  var lock_door_action_attempt = zod.z.discriminatedUnion("status", [
4358
4397
  common_pending_action_attempt.extend({
4359
- action_type: action_type3
4398
+ action_type: action_type4
4360
4399
  }).describe("Locking a door is pending."),
4361
4400
  common_succeeded_action_attempt.extend({
4362
- action_type: action_type3,
4363
- result: result4
4401
+ action_type: action_type4,
4402
+ result: result5
4364
4403
  }).describe("Locking a door succeeded."),
4365
- common_failed_action_attempt.extend({ action_type: action_type3, error: error4 }).describe("Locking a door failed.")
4404
+ common_failed_action_attempt.extend({ action_type: action_type4, error: error5 }).describe("Locking a door failed.")
4366
4405
  ]);
4367
- var action_type4 = zod.z.literal("PUSH_THERMOSTAT_PROGRAMS").describe(
4406
+ var action_type5 = zod.z.literal("PUSH_THERMOSTAT_PROGRAMS").describe(
4368
4407
  "Action attempt to track the status of pushing thermostat programs."
4369
4408
  );
4370
- var error5 = zod.z.object({
4409
+ var error6 = zod.z.object({
4371
4410
  type: zod.z.string().describe("Type of the error."),
4372
4411
  message: zod.z.string().describe(
4373
4412
  "Detailed description of the error. Provides insights into the issue and potentially how to rectify it."
4374
4413
  )
4375
4414
  }).describe("Error associated with the action.");
4376
- var result5 = zod.z.object({}).describe("Result of the action.");
4415
+ var result6 = zod.z.object({}).describe("Result of the action.");
4377
4416
  var push_thermostat_programs_action_attempt = zod.z.discriminatedUnion(
4378
4417
  "status",
4379
4418
  [
4380
4419
  common_pending_action_attempt.extend({
4381
- action_type: action_type4
4420
+ action_type: action_type5
4382
4421
  }).describe("Pushing thermostat weekly programs is pending."),
4383
4422
  common_succeeded_action_attempt.extend({
4384
- action_type: action_type4,
4385
- result: result5
4423
+ action_type: action_type5,
4424
+ result: result6
4386
4425
  }).describe("Pushing thermostat weekly programs succeeded."),
4387
- common_failed_action_attempt.extend({ action_type: action_type4, error: error5 }).describe("Pushing thermostat weekly programs failed.")
4426
+ common_failed_action_attempt.extend({ action_type: action_type5, error: error6 }).describe("Pushing thermostat weekly programs failed.")
4388
4427
  ]
4389
4428
  );
4390
- var action_type5 = zod.z.literal("RESET_SANDBOX_WORKSPACE").describe(
4429
+ var action_type6 = zod.z.literal("RESET_SANDBOX_WORKSPACE").describe(
4391
4430
  "Action attempt to track the status of resetting a sandbox workspace."
4392
4431
  );
4393
- var error6 = zod.z.object({
4432
+ var error7 = zod.z.object({
4394
4433
  type: zod.z.string().describe("Type of the error."),
4395
4434
  message: zod.z.string().describe(
4396
4435
  "Detailed description of the error. Provides insights into the issue and potentially how to rectify it."
4397
4436
  )
4398
4437
  }).describe("Error associated with the action.");
4399
- var result6 = zod.z.object({}).describe("Result of the action.");
4438
+ var result7 = zod.z.object({}).describe("Result of the action.");
4400
4439
  var reset_sandbox_workspace_action_attempt = zod.z.discriminatedUnion(
4401
4440
  "status",
4402
4441
  [
4403
4442
  common_pending_action_attempt.extend({
4404
- action_type: action_type5
4443
+ action_type: action_type6
4405
4444
  }).describe("Resetting a sandbox workspace is pending."),
4406
4445
  common_succeeded_action_attempt.extend({
4407
- action_type: action_type5,
4408
- result: result6
4446
+ action_type: action_type6,
4447
+ result: result7
4409
4448
  }).describe("Resetting a sandbox workspace succeeded."),
4410
4449
  common_failed_action_attempt.extend({
4411
- action_type: action_type5,
4412
- error: error6
4450
+ action_type: action_type6,
4451
+ error: error7
4413
4452
  }).describe("Resetting a sandbox workspace failed.")
4414
4453
  ]
4415
4454
  );
4416
- var action_type6 = zod.z.literal("SCAN_CREDENTIAL").describe("Action attempt to track the status of scanning a credential.");
4455
+ var action_type7 = zod.z.literal("SCAN_CREDENTIAL").describe("Action attempt to track the status of scanning a credential.");
4417
4456
  var no_credential_on_encoder_error2 = zod.z.object({
4418
4457
  type: zod.z.literal("no_credential_on_encoder").describe(
4419
4458
  "Error type to indicate that there is no credential on the encoder."
@@ -4428,7 +4467,7 @@ var encoder_not_online_error2 = zod.z.object({
4428
4467
  "Detailed description of the error. Provides insights into the issue and potentially how to rectify it."
4429
4468
  )
4430
4469
  }).describe("Error to indicate that the encoder is not online.");
4431
- var error7 = zod.z.union([
4470
+ var error8 = zod.z.union([
4432
4471
  ...common_action_attempt_errors,
4433
4472
  no_credential_on_encoder_error2,
4434
4473
  encoder_not_online_error2
@@ -4443,7 +4482,7 @@ var warning = zod.z.object({
4443
4482
  )
4444
4483
  }).describe("Warning related to scanning a credential.");
4445
4484
  var acs_credential_on_seam = acs_credential.or(unmanaged_acs_credential);
4446
- var result7 = zod.z.object({
4485
+ var result8 = zod.z.object({
4447
4486
  acs_credential_on_encoder: acs_credential_on_encoder.nullable().describe("Snapshot of credential data read from the physical encoder."),
4448
4487
  acs_credential_on_seam: acs_credential_on_seam.nullable().describe(
4449
4488
  "Corresponding credential data as stored on Seam and the access system."
@@ -4456,124 +4495,124 @@ var result7 = zod.z.object({
4456
4495
  );
4457
4496
  var scan_credential_action_attempt = zod.z.discriminatedUnion("status", [
4458
4497
  common_pending_action_attempt.extend({
4459
- action_type: action_type6
4498
+ action_type: action_type7
4460
4499
  }).describe("Reading credential data from the physical encoder is pending."),
4461
4500
  common_succeeded_action_attempt.extend({
4462
- action_type: action_type6,
4463
- result: result7
4501
+ action_type: action_type7,
4502
+ result: result8
4464
4503
  }).describe("Reading credential data from physical encoder succeeded."),
4465
- common_failed_action_attempt.extend({ action_type: action_type6, error: error7 }).describe("Reading credential data from physical encoder failed.")
4504
+ common_failed_action_attempt.extend({ action_type: action_type7, error: error8 }).describe("Reading credential data from physical encoder failed.")
4466
4505
  ]);
4467
- var action_type7 = zod.z.literal("SET_FAN_MODE").describe(
4506
+ var action_type8 = zod.z.literal("SET_FAN_MODE").describe(
4468
4507
  "Action attempt to track the status of setting the fan mode on a thermostat."
4469
4508
  );
4470
- var error8 = zod.z.object({
4509
+ var error9 = zod.z.object({
4471
4510
  type: zod.z.string().describe("Type of the error."),
4472
4511
  message: zod.z.string().describe(
4473
4512
  "Detailed description of the error. Provides insights into the issue and potentially how to rectify it."
4474
4513
  )
4475
4514
  }).describe("Error associated with the action.");
4476
- var result8 = zod.z.object({}).describe("Result of the action.");
4515
+ var result9 = zod.z.object({}).describe("Result of the action.");
4477
4516
  var set_fan_mode_action_attempt = zod.z.discriminatedUnion("status", [
4478
4517
  common_pending_action_attempt.extend({
4479
- action_type: action_type7
4518
+ action_type: action_type8
4480
4519
  }).describe("Setting the fan mode is pending."),
4481
4520
  common_succeeded_action_attempt.extend({
4482
- action_type: action_type7,
4483
- result: result8
4521
+ action_type: action_type8,
4522
+ result: result9
4484
4523
  }).describe("Setting the fan mode succeeded."),
4485
- common_failed_action_attempt.extend({ action_type: action_type7, error: error8 }).describe("Setting the fan mode failed.")
4524
+ common_failed_action_attempt.extend({ action_type: action_type8, error: error9 }).describe("Setting the fan mode failed.")
4486
4525
  ]);
4487
- var action_type8 = zod.z.literal("SET_HVAC_MODE").describe(
4526
+ var action_type9 = zod.z.literal("SET_HVAC_MODE").describe(
4488
4527
  "Action attempt to track the status of setting the HVAC mode on a thermostat."
4489
4528
  );
4490
- var error9 = zod.z.object({
4529
+ var error10 = zod.z.object({
4491
4530
  type: zod.z.string().describe("Type of the error."),
4492
4531
  message: zod.z.string().describe(
4493
4532
  "Detailed description of the error. Provides insights into the issue and potentially how to rectify it."
4494
4533
  )
4495
4534
  }).describe("Error associated with the action.");
4496
- var result9 = zod.z.object({}).describe("Result of the action.");
4535
+ var result10 = zod.z.object({}).describe("Result of the action.");
4497
4536
  var set_hvac_mode_action_attempt = zod.z.discriminatedUnion("status", [
4498
4537
  common_pending_action_attempt.extend({
4499
- action_type: action_type8
4538
+ action_type: action_type9
4500
4539
  }).describe("Setting the HVAC mode is pending."),
4501
4540
  common_succeeded_action_attempt.extend({
4502
- action_type: action_type8,
4503
- result: result9
4541
+ action_type: action_type9,
4542
+ result: result10
4504
4543
  }).describe("Setting the HVAC mode succeeded."),
4505
- common_failed_action_attempt.extend({ action_type: action_type8, error: error9 }).describe("Setting the HVAC mode failed.")
4544
+ common_failed_action_attempt.extend({ action_type: action_type9, error: error10 }).describe("Setting the HVAC mode failed.")
4506
4545
  ]);
4507
- var action_type9 = zod.z.literal("SIMULATE_KEYPAD_CODE_ENTRY").describe(
4546
+ var action_type10 = zod.z.literal("SIMULATE_KEYPAD_CODE_ENTRY").describe(
4508
4547
  "Action attempt to track the status of simulating a keypad code entry."
4509
4548
  );
4510
- var error10 = zod.z.object({
4549
+ var error11 = zod.z.object({
4511
4550
  type: zod.z.string().describe("Type of the error."),
4512
4551
  message: zod.z.string().describe(
4513
4552
  "Detailed description of the error. Provides insights into the issue and potentially how to rectify it."
4514
4553
  )
4515
4554
  }).describe("Error associated with the action.");
4516
- var result10 = zod.z.object({}).describe("Result of the action.");
4555
+ var result11 = zod.z.object({}).describe("Result of the action.");
4517
4556
  var simulate_keypad_code_entry_action_attempt = zod.z.discriminatedUnion(
4518
4557
  "status",
4519
4558
  [
4520
4559
  common_pending_action_attempt.extend({
4521
- action_type: action_type9
4560
+ action_type: action_type10
4522
4561
  }).describe("Simulating a keypad code entry is pending."),
4523
4562
  common_succeeded_action_attempt.extend({
4524
- action_type: action_type9,
4525
- result: result10
4563
+ action_type: action_type10,
4564
+ result: result11
4526
4565
  }).describe("Simulating a keypad code entry succeeded."),
4527
4566
  common_failed_action_attempt.extend({
4528
- action_type: action_type9,
4529
- error: error10
4567
+ action_type: action_type10,
4568
+ error: error11
4530
4569
  }).describe("Simulating a keypad code entry failed.")
4531
4570
  ]
4532
4571
  );
4533
- var action_type10 = zod.z.literal("SIMULATE_MANUAL_LOCK_VIA_KEYPAD").describe(
4572
+ var action_type11 = zod.z.literal("SIMULATE_MANUAL_LOCK_VIA_KEYPAD").describe(
4534
4573
  "Action attempt to track the status of simulating a manual lock action using a keypad."
4535
4574
  );
4536
- var error11 = zod.z.object({
4575
+ var error12 = zod.z.object({
4537
4576
  type: zod.z.string().describe("Type of the error."),
4538
4577
  message: zod.z.string().describe(
4539
4578
  "Detailed description of the error. Provides insights into the issue and potentially how to rectify it."
4540
4579
  )
4541
4580
  }).describe("Error associated with the action.");
4542
- var result11 = zod.z.object({}).describe("Result of the action.");
4581
+ var result12 = zod.z.object({}).describe("Result of the action.");
4543
4582
  var simulate_manual_lock_via_keypad_action_attempt = zod.z.discriminatedUnion("status", [
4544
4583
  common_pending_action_attempt.extend({
4545
- action_type: action_type10
4584
+ action_type: action_type11
4546
4585
  }).describe("Simulating a manual lock action using a keypad is pending."),
4547
4586
  common_succeeded_action_attempt.extend({
4548
- action_type: action_type10,
4549
- result: result11
4587
+ action_type: action_type11,
4588
+ result: result12
4550
4589
  }).describe("Simulating a manual lock action using a keypad succeeded."),
4551
4590
  common_failed_action_attempt.extend({
4552
- action_type: action_type10,
4553
- error: error11
4591
+ action_type: action_type11,
4592
+ error: error12
4554
4593
  }).describe("Simulating a manual lock action using a keypad failed.")
4555
4594
  ]);
4556
- var action_type11 = zod.z.literal("UNLOCK_DOOR").describe("Action attempt to track the status of unlocking a door.");
4557
- var error12 = zod.z.object({
4595
+ var action_type12 = zod.z.literal("UNLOCK_DOOR").describe("Action attempt to track the status of unlocking a door.");
4596
+ var error13 = zod.z.object({
4558
4597
  type: zod.z.string().describe("Type of the error."),
4559
4598
  message: zod.z.string().describe(
4560
4599
  "Detailed description of the error. Provides insights into the issue and potentially how to rectify it."
4561
4600
  )
4562
4601
  }).describe("Error associated with the action.");
4563
- var result12 = zod.z.object({
4602
+ var result13 = zod.z.object({
4564
4603
  was_confirmed_by_device: zod.z.boolean().optional().describe(
4565
4604
  "Indicates whether the device confirmed that the unlock action occurred."
4566
4605
  )
4567
4606
  }).describe("Result of the action.");
4568
4607
  var unlock_door_action_attempt = zod.z.discriminatedUnion("status", [
4569
4608
  common_pending_action_attempt.extend({
4570
- action_type: action_type11
4609
+ action_type: action_type12
4571
4610
  }).describe("Unlocking a door is pending."),
4572
4611
  common_succeeded_action_attempt.extend({
4573
- action_type: action_type11,
4574
- result: result12
4612
+ action_type: action_type12,
4613
+ result: result13
4575
4614
  }).describe("Unlocking a door succeeded."),
4576
- common_failed_action_attempt.extend({ action_type: action_type11, error: error12 }).describe("Unlocking a door failed.")
4615
+ common_failed_action_attempt.extend({ action_type: action_type12, error: error13 }).describe("Unlocking a door failed.")
4577
4616
  ]);
4578
4617
 
4579
4618
  // src/lib/seam/connect/models/action-attempts/action-attempt.ts
@@ -4589,6 +4628,7 @@ var action_attempt = zod.z.union([
4589
4628
  ...simulate_keypad_code_entry_action_attempt.options,
4590
4629
  ...simulate_manual_lock_via_keypad_action_attempt.options,
4591
4630
  ...push_thermostat_programs_action_attempt.options,
4631
+ ...configure_auto_lock_action_attempt.options,
4592
4632
  ...deprecated_action_attempts
4593
4633
  ]).describe(`
4594
4634
  ---
@@ -6504,6 +6544,7 @@ var staff_member_resource = base_user_identity_resource.extend({
6504
6544
  }).describe(`
6505
6545
  ---
6506
6546
  route_path: /seam/customer/v1/staff_members
6547
+ undocumented: Internal resource for customer portals.
6507
6548
  ---
6508
6549
  Represents a staff member for a specific customer.
6509
6550
  `);
@@ -14349,6 +14390,111 @@ var openapi_default = {
14349
14390
  ],
14350
14391
  type: "object"
14351
14392
  },
14393
+ {
14394
+ description: "Configuring the auto-lock is pending.",
14395
+ properties: {
14396
+ action_attempt_id: {
14397
+ description: "ID of the action attempt.",
14398
+ format: "uuid",
14399
+ type: "string"
14400
+ },
14401
+ action_type: {
14402
+ description: "Action attempt to track the status of configuring the auto-lock on a lock.",
14403
+ enum: ["CONFIGURE_AUTO_LOCK"],
14404
+ type: "string"
14405
+ },
14406
+ error: {
14407
+ description: "Errors associated with the action attempt. Null for pending action attempts.",
14408
+ nullable: true
14409
+ },
14410
+ result: {
14411
+ description: "Result of the action attempt. Null for pending action attempts.",
14412
+ nullable: true
14413
+ },
14414
+ status: { enum: ["pending"], type: "string" }
14415
+ },
14416
+ required: [
14417
+ "action_attempt_id",
14418
+ "status",
14419
+ "result",
14420
+ "error",
14421
+ "action_type"
14422
+ ],
14423
+ type: "object"
14424
+ },
14425
+ {
14426
+ description: "Configuring the auto-lock succeeded.",
14427
+ properties: {
14428
+ action_attempt_id: {
14429
+ description: "ID of the action attempt.",
14430
+ format: "uuid",
14431
+ type: "string"
14432
+ },
14433
+ action_type: {
14434
+ description: "Action attempt to track the status of configuring the auto-lock on a lock.",
14435
+ enum: ["CONFIGURE_AUTO_LOCK"],
14436
+ type: "string"
14437
+ },
14438
+ error: {
14439
+ description: "Errors associated with the action attempt. Null for successful action attempts.",
14440
+ nullable: true
14441
+ },
14442
+ result: {
14443
+ description: "Result of the action.",
14444
+ properties: {},
14445
+ type: "object"
14446
+ },
14447
+ status: { enum: ["success"], type: "string" }
14448
+ },
14449
+ required: [
14450
+ "action_attempt_id",
14451
+ "status",
14452
+ "error",
14453
+ "action_type",
14454
+ "result"
14455
+ ],
14456
+ type: "object"
14457
+ },
14458
+ {
14459
+ description: "Configuring the auto-lock failed.",
14460
+ properties: {
14461
+ action_attempt_id: {
14462
+ description: "ID of the action attempt.",
14463
+ format: "uuid",
14464
+ type: "string"
14465
+ },
14466
+ action_type: {
14467
+ description: "Action attempt to track the status of configuring the auto-lock on a lock.",
14468
+ enum: ["CONFIGURE_AUTO_LOCK"],
14469
+ type: "string"
14470
+ },
14471
+ error: {
14472
+ description: "Error associated with the action.",
14473
+ properties: {
14474
+ message: {
14475
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
14476
+ type: "string"
14477
+ },
14478
+ type: { description: "Type of the error.", type: "string" }
14479
+ },
14480
+ required: ["type", "message"],
14481
+ type: "object"
14482
+ },
14483
+ result: {
14484
+ description: "Result of the action attempt. Null for failed action attempts.",
14485
+ nullable: true
14486
+ },
14487
+ status: { enum: ["error"], type: "string" }
14488
+ },
14489
+ required: [
14490
+ "action_attempt_id",
14491
+ "status",
14492
+ "result",
14493
+ "action_type",
14494
+ "error"
14495
+ ],
14496
+ type: "object"
14497
+ },
14352
14498
  {
14353
14499
  properties: {
14354
14500
  action_attempt_id: {
@@ -16109,6 +16255,7 @@ var openapi_default = {
16109
16255
  device: {
16110
16256
  description: "Represents a [device](https://docs.seam.co/latest/core-concepts/devices) that has been connected to Seam.",
16111
16257
  properties: {
16258
+ can_configure_auto_lock: { type: "boolean" },
16112
16259
  can_hvac_cool: { type: "boolean" },
16113
16260
  can_hvac_heat: { type: "boolean" },
16114
16261
  can_hvac_heat_cool: { type: "boolean" },
@@ -18097,6 +18244,10 @@ var openapi_default = {
18097
18244
  features: {
18098
18245
  description: "Features for a TTLock device.",
18099
18246
  properties: {
18247
+ auto_lock_time_config: {
18248
+ description: "Indicates whether a TTLock device supports auto-lock time configuration.",
18249
+ type: "boolean"
18250
+ },
18100
18251
  incomplete_keyboard_passcode: {
18101
18252
  description: "Indicates whether a TTLock device supports an incomplete keyboard passcode.",
18102
18253
  type: "boolean"
@@ -18128,7 +18279,8 @@ var openapi_default = {
18128
18279
  "unlock_via_gateway",
18129
18280
  "lock_command",
18130
18281
  "incomplete_keyboard_passcode",
18131
- "wifi"
18282
+ "wifi",
18283
+ "auto_lock_time_config"
18132
18284
  ],
18133
18285
  type: "object"
18134
18286
  },
@@ -18294,6 +18446,17 @@ var openapi_default = {
18294
18446
  type: "array",
18295
18447
  "x-undocumented": "Marked as experimental."
18296
18448
  },
18449
+ auto_lock_delay_seconds: {
18450
+ description: "The delay in seconds before the lock automatically locks after being unlocked.",
18451
+ format: "float",
18452
+ type: "number",
18453
+ "x-property-group-key": "locks"
18454
+ },
18455
+ auto_lock_enabled: {
18456
+ description: "Indicates whether automatic locking is enabled.",
18457
+ type: "boolean",
18458
+ "x-property-group-key": "locks"
18459
+ },
18297
18460
  code_constraints: {
18298
18461
  description: "Constraints on access codes for the device. Seam represents each constraint as an object with a `constraint_type` property. Depending on the constraint type, there may also be additional properties. Note that some constraints are manufacturer- or device-specific.",
18299
18462
  items: {
@@ -19739,6 +19902,7 @@ var openapi_default = {
19739
19902
  },
19740
19903
  device_provider: {
19741
19904
  properties: {
19905
+ can_configure_auto_lock: { type: "boolean" },
19742
19906
  can_hvac_cool: { type: "boolean" },
19743
19907
  can_hvac_heat: { type: "boolean" },
19744
19908
  can_hvac_heat_cool: { type: "boolean" },
@@ -29277,7 +29441,8 @@ var openapi_default = {
29277
29441
  },
29278
29442
  required: ["name", "staff_member_key"],
29279
29443
  type: "object",
29280
- "x-route-path": "/seam/customer/v1/staff_members"
29444
+ "x-route-path": "/seam/customer/v1/staff_members",
29445
+ "x-undocumented": "Internal resource for customer portals."
29281
29446
  },
29282
29447
  thermostat_daily_program: {
29283
29448
  description: "Represents a thermostat daily program, consisting of a set of periods, each of which has a starting time and the key that identifies the climate preset to apply at the starting time.",
@@ -32510,6 +32675,7 @@ var openapi_default = {
32510
32675
  unmanaged_device: {
32511
32676
  description: "Represents an [unmanaged device](https://docs.seam.co/latest/core-concepts/devices/managed-and-unmanaged-devices). An unmanaged device has a limited set of visible properties and a subset of supported events. You cannot control an unmanaged device. Any [access codes](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes/migrating-existing-access-codes) on an unmanaged device are unmanaged. To control an unmanaged device with Seam, [convert it to a managed device](https://docs.seam.co/latest/core-concepts/devices/managed-and-unmanaged-devices#convert-an-unmanaged-device-to-managed).",
32512
32677
  properties: {
32678
+ can_configure_auto_lock: { type: "boolean" },
32513
32679
  can_hvac_cool: { type: "boolean" },
32514
32680
  can_hvac_heat: { type: "boolean" },
32515
32681
  can_hvac_heat_cool: { type: "boolean" },
@@ -35006,6 +35172,7 @@ var openapi_default = {
35006
35172
  },
35007
35173
  timeline_events: {
35008
35174
  items: {
35175
+ description: "Timeline event for access code lifecycle activity.",
35009
35176
  properties: {
35010
35177
  actor: {
35011
35178
  description: "Information about who or what triggered this event.",
@@ -35064,7 +35231,8 @@ var openapi_default = {
35064
35231
  "access_code.unmanaged.converted_to_managed",
35065
35232
  "access_code.unmanaged.failed_to_convert_to_managed"
35066
35233
  ],
35067
- type: "string"
35234
+ type: "string",
35235
+ "x-undocumented": "Unreleased."
35068
35236
  },
35069
35237
  occurred_at: {
35070
35238
  description: "ISO 8601 timestamp when the event occurred.",
@@ -35100,7 +35268,8 @@ var openapi_default = {
35100
35268
  "description",
35101
35269
  "actor"
35102
35270
  ],
35103
- type: "object"
35271
+ type: "object",
35272
+ "x-undocumented": "Unreleased."
35104
35273
  },
35105
35274
  type: "array"
35106
35275
  }
@@ -35128,7 +35297,8 @@ var openapi_default = {
35128
35297
  "x-fern-sdk-method-name": "get_timeline",
35129
35298
  "x-fern-sdk-return-value": "timeline_events",
35130
35299
  "x-response-key": "timeline_events",
35131
- "x-title": "Get Access Code Timeline"
35300
+ "x-title": "Get Access Code Timeline",
35301
+ "x-undocumented": "Unreleased."
35132
35302
  },
35133
35303
  post: {
35134
35304
  description: "Returns a chronological timeline of events for an access code.\n\nThe timeline includes state changes (create, update, delete), delivery lifecycle events\n(programming attempts, success/failure), and related device events.",
@@ -35212,6 +35382,7 @@ var openapi_default = {
35212
35382
  },
35213
35383
  timeline_events: {
35214
35384
  items: {
35385
+ description: "Timeline event for access code lifecycle activity.",
35215
35386
  properties: {
35216
35387
  actor: {
35217
35388
  description: "Information about who or what triggered this event.",
@@ -35270,7 +35441,8 @@ var openapi_default = {
35270
35441
  "access_code.unmanaged.converted_to_managed",
35271
35442
  "access_code.unmanaged.failed_to_convert_to_managed"
35272
35443
  ],
35273
- type: "string"
35444
+ type: "string",
35445
+ "x-undocumented": "Unreleased."
35274
35446
  },
35275
35447
  occurred_at: {
35276
35448
  description: "ISO 8601 timestamp when the event occurred.",
@@ -35306,7 +35478,8 @@ var openapi_default = {
35306
35478
  "description",
35307
35479
  "actor"
35308
35480
  ],
35309
- type: "object"
35481
+ type: "object",
35482
+ "x-undocumented": "Unreleased."
35310
35483
  },
35311
35484
  type: "array"
35312
35485
  }
@@ -35334,7 +35507,8 @@ var openapi_default = {
35334
35507
  "x-fern-sdk-method-name": "get_timeline",
35335
35508
  "x-fern-sdk-return-value": "timeline_events",
35336
35509
  "x-response-key": "timeline_events",
35337
- "x-title": "Get Access Code Timeline"
35510
+ "x-title": "Get Access Code Timeline",
35511
+ "x-undocumented": "Unreleased."
35338
35512
  }
35339
35513
  },
35340
35514
  "/access_codes/list": {
@@ -51559,7 +51733,8 @@ var openapi_default = {
51559
51733
  }
51560
51734
  },
51561
51735
  required: ["resource_type", "resource_key"],
51562
- type: "object"
51736
+ type: "object",
51737
+ "x-undocumented": "Internal endpoint for customer portals."
51563
51738
  },
51564
51739
  exclude_locale_picker: {
51565
51740
  default: false,
@@ -52435,7 +52610,8 @@ var openapi_default = {
52435
52610
  },
52436
52611
  required: ["name", "staff_member_key"],
52437
52612
  type: "object",
52438
- "x-route-path": "/seam/customer/v1/staff_members"
52613
+ "x-route-path": "/seam/customer/v1/staff_members",
52614
+ "x-undocumented": "Internal resource for customer portals."
52439
52615
  },
52440
52616
  type: "array"
52441
52617
  },
@@ -53556,7 +53732,8 @@ var openapi_default = {
53556
53732
  },
53557
53733
  required: ["name", "staff_member_key"],
53558
53734
  type: "object",
53559
- "x-route-path": "/seam/customer/v1/staff_members"
53735
+ "x-route-path": "/seam/customer/v1/staff_members",
53736
+ "x-undocumented": "Internal resource for customer portals."
53560
53737
  },
53561
53738
  type: "array"
53562
53739
  },
@@ -53775,7 +53952,8 @@ var openapi_default = {
53775
53952
  "x-fern-sdk-method-name": "create_deep_link",
53776
53953
  "x-fern-sdk-return-value": "deep_link",
53777
53954
  "x-response-key": "deep_link",
53778
- "x-title": "Create Reservation Deep Link"
53955
+ "x-title": "Create Reservation Deep Link",
53956
+ "x-undocumented": "Internal endpoint for customer portals."
53779
53957
  }
53780
53958
  },
53781
53959
  "/devices/delete": {
@@ -54313,7 +54491,8 @@ var openapi_default = {
54313
54491
  "can_program_thermostat_programs_as_same_each_day",
54314
54492
  "can_simulate_hub_connection",
54315
54493
  "can_simulate_hub_disconnection",
54316
- "can_simulate_paid_subscription"
54494
+ "can_simulate_paid_subscription",
54495
+ "can_configure_auto_lock"
54317
54496
  ],
54318
54497
  type: "string"
54319
54498
  },
@@ -54345,7 +54524,8 @@ var openapi_default = {
54345
54524
  "can_program_thermostat_programs_as_same_each_day",
54346
54525
  "can_simulate_hub_connection",
54347
54526
  "can_simulate_hub_disconnection",
54348
- "can_simulate_paid_subscription"
54527
+ "can_simulate_paid_subscription",
54528
+ "can_configure_auto_lock"
54349
54529
  ],
54350
54530
  type: "string"
54351
54531
  },
@@ -54629,7 +54809,8 @@ var openapi_default = {
54629
54809
  "can_program_thermostat_programs_as_same_each_day",
54630
54810
  "can_simulate_hub_connection",
54631
54811
  "can_simulate_hub_disconnection",
54632
- "can_simulate_paid_subscription"
54812
+ "can_simulate_paid_subscription",
54813
+ "can_configure_auto_lock"
54633
54814
  ],
54634
54815
  type: "string"
54635
54816
  },
@@ -54657,7 +54838,8 @@ var openapi_default = {
54657
54838
  "can_program_thermostat_programs_as_same_each_day",
54658
54839
  "can_simulate_hub_connection",
54659
54840
  "can_simulate_hub_disconnection",
54660
- "can_simulate_paid_subscription"
54841
+ "can_simulate_paid_subscription",
54842
+ "can_configure_auto_lock"
54661
54843
  ],
54662
54844
  type: "string"
54663
54845
  },
@@ -56144,7 +56326,8 @@ var openapi_default = {
56144
56326
  "can_program_thermostat_programs_as_same_each_day",
56145
56327
  "can_simulate_hub_connection",
56146
56328
  "can_simulate_hub_disconnection",
56147
- "can_simulate_paid_subscription"
56329
+ "can_simulate_paid_subscription",
56330
+ "can_configure_auto_lock"
56148
56331
  ],
56149
56332
  type: "string"
56150
56333
  },
@@ -56176,7 +56359,8 @@ var openapi_default = {
56176
56359
  "can_program_thermostat_programs_as_same_each_day",
56177
56360
  "can_simulate_hub_connection",
56178
56361
  "can_simulate_hub_disconnection",
56179
- "can_simulate_paid_subscription"
56362
+ "can_simulate_paid_subscription",
56363
+ "can_configure_auto_lock"
56180
56364
  ],
56181
56365
  type: "string"
56182
56366
  },
@@ -56469,7 +56653,8 @@ var openapi_default = {
56469
56653
  "can_program_thermostat_programs_as_same_each_day",
56470
56654
  "can_simulate_hub_connection",
56471
56655
  "can_simulate_hub_disconnection",
56472
- "can_simulate_paid_subscription"
56656
+ "can_simulate_paid_subscription",
56657
+ "can_configure_auto_lock"
56473
56658
  ],
56474
56659
  type: "string"
56475
56660
  },
@@ -56497,7 +56682,8 @@ var openapi_default = {
56497
56682
  "can_program_thermostat_programs_as_same_each_day",
56498
56683
  "can_simulate_hub_connection",
56499
56684
  "can_simulate_hub_disconnection",
56500
- "can_simulate_paid_subscription"
56685
+ "can_simulate_paid_subscription",
56686
+ "can_configure_auto_lock"
56501
56687
  ],
56502
56688
  type: "string"
56503
56689
  },
@@ -58291,6 +58477,75 @@ var openapi_default = {
58291
58477
  "x-title": "List Instant Keys"
58292
58478
  }
58293
58479
  },
58480
+ "/locks/configure_auto_lock": {
58481
+ post: {
58482
+ description: "Configures the auto-lock setting for a specified [lock](https://docs.seam.co/latest/capability-guides/smart-locks).",
58483
+ operationId: "locksConfigureAutoLockPost",
58484
+ requestBody: {
58485
+ content: {
58486
+ "application/json": {
58487
+ schema: {
58488
+ properties: {
58489
+ auto_lock_delay_seconds: {
58490
+ description: "Delay in seconds before the lock automatically locks. Required when enabling auto-lock. Must be between 1 and 60.",
58491
+ format: "float",
58492
+ maximum: 60,
58493
+ minimum: 1,
58494
+ type: "number"
58495
+ },
58496
+ auto_lock_enabled: {
58497
+ description: "Whether to enable or disable auto-lock.",
58498
+ type: "boolean"
58499
+ },
58500
+ device_id: {
58501
+ description: "ID of the lock for which you want to configure the auto-lock.",
58502
+ format: "uuid",
58503
+ type: "string"
58504
+ }
58505
+ },
58506
+ required: ["device_id", "auto_lock_enabled"],
58507
+ type: "object"
58508
+ }
58509
+ }
58510
+ }
58511
+ },
58512
+ responses: {
58513
+ 200: {
58514
+ content: {
58515
+ "application/json": {
58516
+ schema: {
58517
+ properties: {
58518
+ action_attempt: {
58519
+ $ref: "#/components/schemas/action_attempt"
58520
+ },
58521
+ ok: { type: "boolean" }
58522
+ },
58523
+ required: ["action_attempt", "ok"],
58524
+ type: "object"
58525
+ }
58526
+ }
58527
+ },
58528
+ description: "OK"
58529
+ },
58530
+ 400: { description: "Bad Request" },
58531
+ 401: { description: "Unauthorized" }
58532
+ },
58533
+ security: [
58534
+ { client_session: [] },
58535
+ { pat_with_workspace: [] },
58536
+ { console_session_with_workspace: [] },
58537
+ { api_key: [] }
58538
+ ],
58539
+ summary: "/locks/configure_auto_lock",
58540
+ tags: ["/locks"],
58541
+ "x-action-attempt-type": "CONFIGURE_AUTO_LOCK",
58542
+ "x-fern-sdk-group-name": ["locks"],
58543
+ "x-fern-sdk-method-name": "configure_auto_lock",
58544
+ "x-fern-sdk-return-value": "action_attempt",
58545
+ "x-response-key": "action_attempt",
58546
+ "x-title": "Configure Auto-Lock"
58547
+ }
58548
+ },
58294
58549
  "/locks/get": {
58295
58550
  get: {
58296
58551
  description: "Returns a specified [lock](https://docs.seam.co/latest/capability-guides/smart-locks).",
@@ -58645,7 +58900,8 @@ var openapi_default = {
58645
58900
  "can_program_thermostat_programs_as_same_each_day",
58646
58901
  "can_simulate_hub_connection",
58647
58902
  "can_simulate_hub_disconnection",
58648
- "can_simulate_paid_subscription"
58903
+ "can_simulate_paid_subscription",
58904
+ "can_configure_auto_lock"
58649
58905
  ],
58650
58906
  type: "string"
58651
58907
  },
@@ -58677,7 +58933,8 @@ var openapi_default = {
58677
58933
  "can_program_thermostat_programs_as_same_each_day",
58678
58934
  "can_simulate_hub_connection",
58679
58935
  "can_simulate_hub_disconnection",
58680
- "can_simulate_paid_subscription"
58936
+ "can_simulate_paid_subscription",
58937
+ "can_configure_auto_lock"
58681
58938
  ],
58682
58939
  type: "string"
58683
58940
  },
@@ -58890,7 +59147,8 @@ var openapi_default = {
58890
59147
  "can_program_thermostat_programs_as_same_each_day",
58891
59148
  "can_simulate_hub_connection",
58892
59149
  "can_simulate_hub_disconnection",
58893
- "can_simulate_paid_subscription"
59150
+ "can_simulate_paid_subscription",
59151
+ "can_configure_auto_lock"
58894
59152
  ],
58895
59153
  type: "string"
58896
59154
  },
@@ -58918,7 +59176,8 @@ var openapi_default = {
58918
59176
  "can_program_thermostat_programs_as_same_each_day",
58919
59177
  "can_simulate_hub_connection",
58920
59178
  "can_simulate_hub_disconnection",
58921
- "can_simulate_paid_subscription"
59179
+ "can_simulate_paid_subscription",
59180
+ "can_configure_auto_lock"
58922
59181
  ],
58923
59182
  type: "string"
58924
59183
  },
@@ -59436,7 +59695,8 @@ var openapi_default = {
59436
59695
  "can_program_thermostat_programs_as_same_each_day",
59437
59696
  "can_simulate_hub_connection",
59438
59697
  "can_simulate_hub_disconnection",
59439
- "can_simulate_paid_subscription"
59698
+ "can_simulate_paid_subscription",
59699
+ "can_configure_auto_lock"
59440
59700
  ],
59441
59701
  type: "string"
59442
59702
  },
@@ -59468,7 +59728,8 @@ var openapi_default = {
59468
59728
  "can_program_thermostat_programs_as_same_each_day",
59469
59729
  "can_simulate_hub_connection",
59470
59730
  "can_simulate_hub_disconnection",
59471
- "can_simulate_paid_subscription"
59731
+ "can_simulate_paid_subscription",
59732
+ "can_configure_auto_lock"
59472
59733
  ],
59473
59734
  type: "string"
59474
59735
  },
@@ -59625,7 +59886,8 @@ var openapi_default = {
59625
59886
  "can_program_thermostat_programs_as_same_each_day",
59626
59887
  "can_simulate_hub_connection",
59627
59888
  "can_simulate_hub_disconnection",
59628
- "can_simulate_paid_subscription"
59889
+ "can_simulate_paid_subscription",
59890
+ "can_configure_auto_lock"
59629
59891
  ],
59630
59892
  type: "string"
59631
59893
  },
@@ -59653,7 +59915,8 @@ var openapi_default = {
59653
59915
  "can_program_thermostat_programs_as_same_each_day",
59654
59916
  "can_simulate_hub_connection",
59655
59917
  "can_simulate_hub_disconnection",
59656
- "can_simulate_paid_subscription"
59918
+ "can_simulate_paid_subscription",
59919
+ "can_configure_auto_lock"
59657
59920
  ],
59658
59921
  type: "string"
59659
59922
  },
@@ -65350,7 +65613,8 @@ var openapi_default = {
65350
65613
  "x-fern-sdk-method-name": "get",
65351
65614
  "x-fern-sdk-return-value": "automation",
65352
65615
  "x-response-key": "automation",
65353
- "x-title": "Get Customer Automation Configuration"
65616
+ "x-title": "Get Customer Automation Configuration",
65617
+ "x-undocumented": "Internal endpoint for customer portals."
65354
65618
  },
65355
65619
  post: {
65356
65620
  description: "Gets the automation configuration for the authenticated customer.\nReturns the merged configuration (customer overrides on top of workspace defaults).",
@@ -65646,7 +65910,8 @@ var openapi_default = {
65646
65910
  "x-fern-sdk-method-name": "get",
65647
65911
  "x-fern-sdk-return-value": "automation",
65648
65912
  "x-response-key": "automation",
65649
- "x-title": "Get Customer Automation Configuration"
65913
+ "x-title": "Get Customer Automation Configuration",
65914
+ "x-undocumented": "Internal endpoint for customer portals."
65650
65915
  }
65651
65916
  },
65652
65917
  "/seam/customer/v1/customers/automations/update": {
@@ -65932,7 +66197,8 @@ var openapi_default = {
65932
66197
  ],
65933
66198
  "x-fern-sdk-method-name": "update",
65934
66199
  "x-response-key": null,
65935
- "x-title": "Update Customer Automation Configuration"
66200
+ "x-title": "Update Customer Automation Configuration",
66201
+ "x-undocumented": "Internal endpoint for customer portals."
65936
66202
  },
65937
66203
  post: {
65938
66204
  description: "Updates the automation configuration for a specific customer.\nCreates a customer-level override if one does not already exist.",
@@ -66216,7 +66482,8 @@ var openapi_default = {
66216
66482
  ],
66217
66483
  "x-fern-sdk-method-name": "update",
66218
66484
  "x-response-key": null,
66219
- "x-title": "Update Customer Automation Configuration"
66485
+ "x-title": "Update Customer Automation Configuration",
66486
+ "x-undocumented": "Internal endpoint for customer portals."
66220
66487
  }
66221
66488
  },
66222
66489
  "/seam/customer/v1/customers/list": {
@@ -66394,7 +66661,8 @@ var openapi_default = {
66394
66661
  "x-fern-sdk-group-name": ["seam", "customer", "v1", "customers"],
66395
66662
  "x-fern-sdk-method-name": "me",
66396
66663
  "x-response-key": null,
66397
- "x-title": "Me"
66664
+ "x-title": "Me",
66665
+ "x-undocumented": "Internal endpoint for customer portals."
66398
66666
  },
66399
66667
  post: {
66400
66668
  description: "Returns the customer associated with the authenticated client session.",
@@ -66429,7 +66697,8 @@ var openapi_default = {
66429
66697
  "x-fern-sdk-group-name": ["seam", "customer", "v1", "customers"],
66430
66698
  "x-fern-sdk-method-name": "me",
66431
66699
  "x-response-key": null,
66432
- "x-title": "Me"
66700
+ "x-title": "Me",
66701
+ "x-undocumented": "Internal endpoint for customer portals."
66433
66702
  }
66434
66703
  },
66435
66704
  "/seam/customer/v1/customers/open_portal": {
@@ -67273,7 +67542,8 @@ var openapi_default = {
67273
67542
  }
67274
67543
  },
67275
67544
  required: ["resource_type", "resource_key"],
67276
- type: "object"
67545
+ type: "object",
67546
+ "x-undocumented": "Internal endpoint for customer portals."
67277
67547
  },
67278
67548
  exclude_locale_picker: {
67279
67549
  default: false,
@@ -67646,7 +67916,8 @@ var openapi_default = {
67646
67916
  }
67647
67917
  },
67648
67918
  required: ["resource_type", "resource_key"],
67649
- type: "object"
67919
+ type: "object",
67920
+ "x-undocumented": "Internal endpoint for customer portals."
67650
67921
  },
67651
67922
  exclude_locale_picker: {
67652
67923
  default: false,
@@ -70257,7 +70528,8 @@ var openapi_default = {
70257
70528
  "x-fern-sdk-group-name": ["seam", "customer", "v1", "spaces"],
70258
70529
  "x-fern-sdk-method-name": "push_common_areas",
70259
70530
  "x-response-key": null,
70260
- "x-title": "Push Common Areas"
70531
+ "x-title": "Push Common Areas",
70532
+ "x-undocumented": "Internal endpoint for customer portals."
70261
70533
  }
70262
70534
  },
70263
70535
  "/seam/customer/v1/staff_members/get": {
@@ -70325,7 +70597,8 @@ var openapi_default = {
70325
70597
  },
70326
70598
  required: ["staff_member_key", "name"],
70327
70599
  type: "object",
70328
- "x-route-path": "/seam/customer/v1/staff_members"
70600
+ "x-route-path": "/seam/customer/v1/staff_members",
70601
+ "x-undocumented": "Internal resource for customer portals."
70329
70602
  }
70330
70603
  },
70331
70604
  required: ["access_grant", "spaces", "staff_member", "ok"],
@@ -70417,7 +70690,8 @@ var openapi_default = {
70417
70690
  },
70418
70691
  required: ["staff_member_key", "name"],
70419
70692
  type: "object",
70420
- "x-route-path": "/seam/customer/v1/staff_members"
70693
+ "x-route-path": "/seam/customer/v1/staff_members",
70694
+ "x-undocumented": "Internal resource for customer portals."
70421
70695
  }
70422
70696
  },
70423
70697
  required: ["access_grant", "spaces", "staff_member", "ok"],
@@ -70530,7 +70804,8 @@ var openapi_default = {
70530
70804
  },
70531
70805
  required: ["staff_member_key", "name"],
70532
70806
  type: "object",
70533
- "x-route-path": "/seam/customer/v1/staff_members"
70807
+ "x-route-path": "/seam/customer/v1/staff_members",
70808
+ "x-undocumented": "Internal resource for customer portals."
70534
70809
  },
70535
70810
  type: "array"
70536
70811
  }
@@ -70632,7 +70907,8 @@ var openapi_default = {
70632
70907
  },
70633
70908
  required: ["staff_member_key", "name"],
70634
70909
  type: "object",
70635
- "x-route-path": "/seam/customer/v1/staff_members"
70910
+ "x-route-path": "/seam/customer/v1/staff_members",
70911
+ "x-undocumented": "Internal resource for customer portals."
70636
70912
  },
70637
70913
  type: "array"
70638
70914
  }
@@ -73893,7 +74169,8 @@ var openapi_default = {
73893
74169
  "can_program_thermostat_programs_as_same_each_day",
73894
74170
  "can_simulate_hub_connection",
73895
74171
  "can_simulate_hub_disconnection",
73896
- "can_simulate_paid_subscription"
74172
+ "can_simulate_paid_subscription",
74173
+ "can_configure_auto_lock"
73897
74174
  ],
73898
74175
  type: "string"
73899
74176
  },
@@ -73925,7 +74202,8 @@ var openapi_default = {
73925
74202
  "can_program_thermostat_programs_as_same_each_day",
73926
74203
  "can_simulate_hub_connection",
73927
74204
  "can_simulate_hub_disconnection",
73928
- "can_simulate_paid_subscription"
74205
+ "can_simulate_paid_subscription",
74206
+ "can_configure_auto_lock"
73929
74207
  ],
73930
74208
  type: "string"
73931
74209
  },
@@ -74096,7 +74374,8 @@ var openapi_default = {
74096
74374
  "can_program_thermostat_programs_as_same_each_day",
74097
74375
  "can_simulate_hub_connection",
74098
74376
  "can_simulate_hub_disconnection",
74099
- "can_simulate_paid_subscription"
74377
+ "can_simulate_paid_subscription",
74378
+ "can_configure_auto_lock"
74100
74379
  ],
74101
74380
  type: "string"
74102
74381
  },
@@ -74124,7 +74403,8 @@ var openapi_default = {
74124
74403
  "can_program_thermostat_programs_as_same_each_day",
74125
74404
  "can_simulate_hub_connection",
74126
74405
  "can_simulate_hub_disconnection",
74127
- "can_simulate_paid_subscription"
74406
+ "can_simulate_paid_subscription",
74407
+ "can_configure_auto_lock"
74128
74408
  ],
74129
74409
  type: "string"
74130
74410
  },