@seamapi/types 1.765.0 → 1.767.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 +375 -106
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +2881 -10
- package/dist/index.cjs +375 -106
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +75 -0
- package/lib/seam/connect/models/action-attempts/action-attempt.js +2 -0
- package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/configure-auto-lock.d.ts +77 -0
- package/lib/seam/connect/models/action-attempts/configure-auto-lock.js +31 -0
- package/lib/seam/connect/models/action-attempts/configure-auto-lock.js.map +1 -0
- package/lib/seam/connect/models/batch.d.ts +166 -0
- package/lib/seam/connect/models/customer/customer-portal.d.ts +14 -0
- package/lib/seam/connect/models/customer/customer-portal.js +5 -0
- package/lib/seam/connect/models/customer/customer-portal.js.map +1 -1
- package/lib/seam/connect/models/devices/capability-properties/index.d.ts +6 -0
- package/lib/seam/connect/models/devices/capability-properties/lock.d.ts +6 -0
- package/lib/seam/connect/models/devices/capability-properties/lock.js +12 -0
- package/lib/seam/connect/models/devices/capability-properties/lock.js.map +1 -1
- package/lib/seam/connect/models/devices/device-metadata.d.ts +7 -0
- package/lib/seam/connect/models/devices/device-metadata.js +3 -0
- package/lib/seam/connect/models/devices/device-metadata.js.map +1 -1
- package/lib/seam/connect/models/devices/device-provider.d.ts +3 -0
- package/lib/seam/connect/models/devices/device.d.ts +25 -0
- package/lib/seam/connect/models/devices/device.js +1 -0
- package/lib/seam/connect/models/devices/device.js.map +1 -1
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +17 -0
- package/lib/seam/connect/openapi.d.ts +132 -0
- package/lib/seam/connect/openapi.js +229 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +2762 -306
- package/package.json +1 -1
- package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +2 -0
- package/src/lib/seam/connect/models/action-attempts/configure-auto-lock.ts +46 -0
- package/src/lib/seam/connect/models/customer/customer-portal.ts +7 -0
- package/src/lib/seam/connect/models/devices/capability-properties/lock.ts +12 -0
- package/src/lib/seam/connect/models/devices/device-metadata.ts +5 -0
- package/src/lib/seam/connect/models/devices/device.ts +1 -0
- package/src/lib/seam/connect/openapi.ts +246 -0
- package/src/lib/seam/connect/route-types.ts +3089 -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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
|
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
|
|
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
|
|
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:
|
|
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:
|
|
4337
|
-
result:
|
|
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:
|
|
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
|
|
4346
|
-
var
|
|
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
|
|
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:
|
|
4398
|
+
action_type: action_type4
|
|
4360
4399
|
}).describe("Locking a door is pending."),
|
|
4361
4400
|
common_succeeded_action_attempt.extend({
|
|
4362
|
-
action_type:
|
|
4363
|
-
result:
|
|
4401
|
+
action_type: action_type4,
|
|
4402
|
+
result: result5
|
|
4364
4403
|
}).describe("Locking a door succeeded."),
|
|
4365
|
-
common_failed_action_attempt.extend({ action_type:
|
|
4404
|
+
common_failed_action_attempt.extend({ action_type: action_type4, error: error5 }).describe("Locking a door failed.")
|
|
4366
4405
|
]);
|
|
4367
|
-
var
|
|
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
|
|
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
|
|
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:
|
|
4420
|
+
action_type: action_type5
|
|
4382
4421
|
}).describe("Pushing thermostat weekly programs is pending."),
|
|
4383
4422
|
common_succeeded_action_attempt.extend({
|
|
4384
|
-
action_type:
|
|
4385
|
-
result:
|
|
4423
|
+
action_type: action_type5,
|
|
4424
|
+
result: result6
|
|
4386
4425
|
}).describe("Pushing thermostat weekly programs succeeded."),
|
|
4387
|
-
common_failed_action_attempt.extend({ action_type:
|
|
4426
|
+
common_failed_action_attempt.extend({ action_type: action_type5, error: error6 }).describe("Pushing thermostat weekly programs failed.")
|
|
4388
4427
|
]
|
|
4389
4428
|
);
|
|
4390
|
-
var
|
|
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
|
|
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
|
|
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:
|
|
4443
|
+
action_type: action_type6
|
|
4405
4444
|
}).describe("Resetting a sandbox workspace is pending."),
|
|
4406
4445
|
common_succeeded_action_attempt.extend({
|
|
4407
|
-
action_type:
|
|
4408
|
-
result:
|
|
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:
|
|
4412
|
-
error:
|
|
4450
|
+
action_type: action_type6,
|
|
4451
|
+
error: error7
|
|
4413
4452
|
}).describe("Resetting a sandbox workspace failed.")
|
|
4414
4453
|
]
|
|
4415
4454
|
);
|
|
4416
|
-
var
|
|
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
|
|
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
|
|
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:
|
|
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:
|
|
4463
|
-
result:
|
|
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:
|
|
4504
|
+
common_failed_action_attempt.extend({ action_type: action_type7, error: error8 }).describe("Reading credential data from physical encoder failed.")
|
|
4466
4505
|
]);
|
|
4467
|
-
var
|
|
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
|
|
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
|
|
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:
|
|
4518
|
+
action_type: action_type8
|
|
4480
4519
|
}).describe("Setting the fan mode is pending."),
|
|
4481
4520
|
common_succeeded_action_attempt.extend({
|
|
4482
|
-
action_type:
|
|
4483
|
-
result:
|
|
4521
|
+
action_type: action_type8,
|
|
4522
|
+
result: result9
|
|
4484
4523
|
}).describe("Setting the fan mode succeeded."),
|
|
4485
|
-
common_failed_action_attempt.extend({ action_type:
|
|
4524
|
+
common_failed_action_attempt.extend({ action_type: action_type8, error: error9 }).describe("Setting the fan mode failed.")
|
|
4486
4525
|
]);
|
|
4487
|
-
var
|
|
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
|
|
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
|
|
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:
|
|
4538
|
+
action_type: action_type9
|
|
4500
4539
|
}).describe("Setting the HVAC mode is pending."),
|
|
4501
4540
|
common_succeeded_action_attempt.extend({
|
|
4502
|
-
action_type:
|
|
4503
|
-
result:
|
|
4541
|
+
action_type: action_type9,
|
|
4542
|
+
result: result10
|
|
4504
4543
|
}).describe("Setting the HVAC mode succeeded."),
|
|
4505
|
-
common_failed_action_attempt.extend({ action_type:
|
|
4544
|
+
common_failed_action_attempt.extend({ action_type: action_type9, error: error10 }).describe("Setting the HVAC mode failed.")
|
|
4506
4545
|
]);
|
|
4507
|
-
var
|
|
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
|
|
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
|
|
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:
|
|
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:
|
|
4525
|
-
result:
|
|
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:
|
|
4529
|
-
error:
|
|
4567
|
+
action_type: action_type10,
|
|
4568
|
+
error: error11
|
|
4530
4569
|
}).describe("Simulating a keypad code entry failed.")
|
|
4531
4570
|
]
|
|
4532
4571
|
);
|
|
4533
|
-
var
|
|
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
|
|
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
|
|
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:
|
|
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:
|
|
4549
|
-
result:
|
|
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:
|
|
4553
|
-
error:
|
|
4591
|
+
action_type: action_type11,
|
|
4592
|
+
error: error12
|
|
4554
4593
|
}).describe("Simulating a manual lock action using a keypad failed.")
|
|
4555
4594
|
]);
|
|
4556
|
-
var
|
|
4557
|
-
var
|
|
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
|
|
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:
|
|
4609
|
+
action_type: action_type12
|
|
4571
4610
|
}).describe("Unlocking a door is pending."),
|
|
4572
4611
|
common_succeeded_action_attempt.extend({
|
|
4573
|
-
action_type:
|
|
4574
|
-
result:
|
|
4612
|
+
action_type: action_type12,
|
|
4613
|
+
result: result13
|
|
4575
4614
|
}).describe("Unlocking a door succeeded."),
|
|
4576
|
-
common_failed_action_attempt.extend({ action_type:
|
|
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
|
---
|
|
@@ -14349,6 +14389,111 @@ var openapi_default = {
|
|
|
14349
14389
|
],
|
|
14350
14390
|
type: "object"
|
|
14351
14391
|
},
|
|
14392
|
+
{
|
|
14393
|
+
description: "Configuring the auto-lock is pending.",
|
|
14394
|
+
properties: {
|
|
14395
|
+
action_attempt_id: {
|
|
14396
|
+
description: "ID of the action attempt.",
|
|
14397
|
+
format: "uuid",
|
|
14398
|
+
type: "string"
|
|
14399
|
+
},
|
|
14400
|
+
action_type: {
|
|
14401
|
+
description: "Action attempt to track the status of configuring the auto-lock on a lock.",
|
|
14402
|
+
enum: ["CONFIGURE_AUTO_LOCK"],
|
|
14403
|
+
type: "string"
|
|
14404
|
+
},
|
|
14405
|
+
error: {
|
|
14406
|
+
description: "Errors associated with the action attempt. Null for pending action attempts.",
|
|
14407
|
+
nullable: true
|
|
14408
|
+
},
|
|
14409
|
+
result: {
|
|
14410
|
+
description: "Result of the action attempt. Null for pending action attempts.",
|
|
14411
|
+
nullable: true
|
|
14412
|
+
},
|
|
14413
|
+
status: { enum: ["pending"], type: "string" }
|
|
14414
|
+
},
|
|
14415
|
+
required: [
|
|
14416
|
+
"action_attempt_id",
|
|
14417
|
+
"status",
|
|
14418
|
+
"result",
|
|
14419
|
+
"error",
|
|
14420
|
+
"action_type"
|
|
14421
|
+
],
|
|
14422
|
+
type: "object"
|
|
14423
|
+
},
|
|
14424
|
+
{
|
|
14425
|
+
description: "Configuring the auto-lock succeeded.",
|
|
14426
|
+
properties: {
|
|
14427
|
+
action_attempt_id: {
|
|
14428
|
+
description: "ID of the action attempt.",
|
|
14429
|
+
format: "uuid",
|
|
14430
|
+
type: "string"
|
|
14431
|
+
},
|
|
14432
|
+
action_type: {
|
|
14433
|
+
description: "Action attempt to track the status of configuring the auto-lock on a lock.",
|
|
14434
|
+
enum: ["CONFIGURE_AUTO_LOCK"],
|
|
14435
|
+
type: "string"
|
|
14436
|
+
},
|
|
14437
|
+
error: {
|
|
14438
|
+
description: "Errors associated with the action attempt. Null for successful action attempts.",
|
|
14439
|
+
nullable: true
|
|
14440
|
+
},
|
|
14441
|
+
result: {
|
|
14442
|
+
description: "Result of the action.",
|
|
14443
|
+
properties: {},
|
|
14444
|
+
type: "object"
|
|
14445
|
+
},
|
|
14446
|
+
status: { enum: ["success"], type: "string" }
|
|
14447
|
+
},
|
|
14448
|
+
required: [
|
|
14449
|
+
"action_attempt_id",
|
|
14450
|
+
"status",
|
|
14451
|
+
"error",
|
|
14452
|
+
"action_type",
|
|
14453
|
+
"result"
|
|
14454
|
+
],
|
|
14455
|
+
type: "object"
|
|
14456
|
+
},
|
|
14457
|
+
{
|
|
14458
|
+
description: "Configuring the auto-lock failed.",
|
|
14459
|
+
properties: {
|
|
14460
|
+
action_attempt_id: {
|
|
14461
|
+
description: "ID of the action attempt.",
|
|
14462
|
+
format: "uuid",
|
|
14463
|
+
type: "string"
|
|
14464
|
+
},
|
|
14465
|
+
action_type: {
|
|
14466
|
+
description: "Action attempt to track the status of configuring the auto-lock on a lock.",
|
|
14467
|
+
enum: ["CONFIGURE_AUTO_LOCK"],
|
|
14468
|
+
type: "string"
|
|
14469
|
+
},
|
|
14470
|
+
error: {
|
|
14471
|
+
description: "Error associated with the action.",
|
|
14472
|
+
properties: {
|
|
14473
|
+
message: {
|
|
14474
|
+
description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
|
|
14475
|
+
type: "string"
|
|
14476
|
+
},
|
|
14477
|
+
type: { description: "Type of the error.", type: "string" }
|
|
14478
|
+
},
|
|
14479
|
+
required: ["type", "message"],
|
|
14480
|
+
type: "object"
|
|
14481
|
+
},
|
|
14482
|
+
result: {
|
|
14483
|
+
description: "Result of the action attempt. Null for failed action attempts.",
|
|
14484
|
+
nullable: true
|
|
14485
|
+
},
|
|
14486
|
+
status: { enum: ["error"], type: "string" }
|
|
14487
|
+
},
|
|
14488
|
+
required: [
|
|
14489
|
+
"action_attempt_id",
|
|
14490
|
+
"status",
|
|
14491
|
+
"result",
|
|
14492
|
+
"action_type",
|
|
14493
|
+
"error"
|
|
14494
|
+
],
|
|
14495
|
+
type: "object"
|
|
14496
|
+
},
|
|
14352
14497
|
{
|
|
14353
14498
|
properties: {
|
|
14354
14499
|
action_attempt_id: {
|
|
@@ -16109,6 +16254,7 @@ var openapi_default = {
|
|
|
16109
16254
|
device: {
|
|
16110
16255
|
description: "Represents a [device](https://docs.seam.co/latest/core-concepts/devices) that has been connected to Seam.",
|
|
16111
16256
|
properties: {
|
|
16257
|
+
can_configure_auto_lock: { type: "boolean" },
|
|
16112
16258
|
can_hvac_cool: { type: "boolean" },
|
|
16113
16259
|
can_hvac_heat: { type: "boolean" },
|
|
16114
16260
|
can_hvac_heat_cool: { type: "boolean" },
|
|
@@ -18097,6 +18243,10 @@ var openapi_default = {
|
|
|
18097
18243
|
features: {
|
|
18098
18244
|
description: "Features for a TTLock device.",
|
|
18099
18245
|
properties: {
|
|
18246
|
+
auto_lock_time_config: {
|
|
18247
|
+
description: "Indicates whether a TTLock device supports auto-lock time configuration.",
|
|
18248
|
+
type: "boolean"
|
|
18249
|
+
},
|
|
18100
18250
|
incomplete_keyboard_passcode: {
|
|
18101
18251
|
description: "Indicates whether a TTLock device supports an incomplete keyboard passcode.",
|
|
18102
18252
|
type: "boolean"
|
|
@@ -18128,7 +18278,8 @@ var openapi_default = {
|
|
|
18128
18278
|
"unlock_via_gateway",
|
|
18129
18279
|
"lock_command",
|
|
18130
18280
|
"incomplete_keyboard_passcode",
|
|
18131
|
-
"wifi"
|
|
18281
|
+
"wifi",
|
|
18282
|
+
"auto_lock_time_config"
|
|
18132
18283
|
],
|
|
18133
18284
|
type: "object"
|
|
18134
18285
|
},
|
|
@@ -18294,6 +18445,17 @@ var openapi_default = {
|
|
|
18294
18445
|
type: "array",
|
|
18295
18446
|
"x-undocumented": "Marked as experimental."
|
|
18296
18447
|
},
|
|
18448
|
+
auto_lock_delay_seconds: {
|
|
18449
|
+
description: "The delay in seconds before the lock automatically locks after being unlocked.",
|
|
18450
|
+
format: "float",
|
|
18451
|
+
type: "number",
|
|
18452
|
+
"x-property-group-key": "locks"
|
|
18453
|
+
},
|
|
18454
|
+
auto_lock_enabled: {
|
|
18455
|
+
description: "Indicates whether automatic locking is enabled.",
|
|
18456
|
+
type: "boolean",
|
|
18457
|
+
"x-property-group-key": "locks"
|
|
18458
|
+
},
|
|
18297
18459
|
code_constraints: {
|
|
18298
18460
|
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
18461
|
items: {
|
|
@@ -19739,6 +19901,7 @@ var openapi_default = {
|
|
|
19739
19901
|
},
|
|
19740
19902
|
device_provider: {
|
|
19741
19903
|
properties: {
|
|
19904
|
+
can_configure_auto_lock: { type: "boolean" },
|
|
19742
19905
|
can_hvac_cool: { type: "boolean" },
|
|
19743
19906
|
can_hvac_heat: { type: "boolean" },
|
|
19744
19907
|
can_hvac_heat_cool: { type: "boolean" },
|
|
@@ -32510,6 +32673,7 @@ var openapi_default = {
|
|
|
32510
32673
|
unmanaged_device: {
|
|
32511
32674
|
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
32675
|
properties: {
|
|
32676
|
+
can_configure_auto_lock: { type: "boolean" },
|
|
32513
32677
|
can_hvac_cool: { type: "boolean" },
|
|
32514
32678
|
can_hvac_heat: { type: "boolean" },
|
|
32515
32679
|
can_hvac_heat_cool: { type: "boolean" },
|
|
@@ -51504,6 +51668,7 @@ var openapi_default = {
|
|
|
51504
51668
|
manage: {
|
|
51505
51669
|
exclude: false,
|
|
51506
51670
|
exclude_reservation_management: false,
|
|
51671
|
+
exclude_reservation_technical_details: false,
|
|
51507
51672
|
exclude_staff_management: false
|
|
51508
51673
|
},
|
|
51509
51674
|
manage_devices: { exclude: false },
|
|
@@ -51647,6 +51812,11 @@ var openapi_default = {
|
|
|
51647
51812
|
description: "Indicates whether the customer can manage reservations for their properties.",
|
|
51648
51813
|
type: "boolean"
|
|
51649
51814
|
},
|
|
51815
|
+
exclude_reservation_technical_details: {
|
|
51816
|
+
default: false,
|
|
51817
|
+
description: "Indicates whether to exclude technical details from reservation views.",
|
|
51818
|
+
type: "boolean"
|
|
51819
|
+
},
|
|
51650
51820
|
exclude_staff_management: {
|
|
51651
51821
|
default: false,
|
|
51652
51822
|
description: "Indicates whether the customer can manage staff for their properties.",
|
|
@@ -54307,7 +54477,8 @@ var openapi_default = {
|
|
|
54307
54477
|
"can_program_thermostat_programs_as_same_each_day",
|
|
54308
54478
|
"can_simulate_hub_connection",
|
|
54309
54479
|
"can_simulate_hub_disconnection",
|
|
54310
|
-
"can_simulate_paid_subscription"
|
|
54480
|
+
"can_simulate_paid_subscription",
|
|
54481
|
+
"can_configure_auto_lock"
|
|
54311
54482
|
],
|
|
54312
54483
|
type: "string"
|
|
54313
54484
|
},
|
|
@@ -54339,7 +54510,8 @@ var openapi_default = {
|
|
|
54339
54510
|
"can_program_thermostat_programs_as_same_each_day",
|
|
54340
54511
|
"can_simulate_hub_connection",
|
|
54341
54512
|
"can_simulate_hub_disconnection",
|
|
54342
|
-
"can_simulate_paid_subscription"
|
|
54513
|
+
"can_simulate_paid_subscription",
|
|
54514
|
+
"can_configure_auto_lock"
|
|
54343
54515
|
],
|
|
54344
54516
|
type: "string"
|
|
54345
54517
|
},
|
|
@@ -54623,7 +54795,8 @@ var openapi_default = {
|
|
|
54623
54795
|
"can_program_thermostat_programs_as_same_each_day",
|
|
54624
54796
|
"can_simulate_hub_connection",
|
|
54625
54797
|
"can_simulate_hub_disconnection",
|
|
54626
|
-
"can_simulate_paid_subscription"
|
|
54798
|
+
"can_simulate_paid_subscription",
|
|
54799
|
+
"can_configure_auto_lock"
|
|
54627
54800
|
],
|
|
54628
54801
|
type: "string"
|
|
54629
54802
|
},
|
|
@@ -54651,7 +54824,8 @@ var openapi_default = {
|
|
|
54651
54824
|
"can_program_thermostat_programs_as_same_each_day",
|
|
54652
54825
|
"can_simulate_hub_connection",
|
|
54653
54826
|
"can_simulate_hub_disconnection",
|
|
54654
|
-
"can_simulate_paid_subscription"
|
|
54827
|
+
"can_simulate_paid_subscription",
|
|
54828
|
+
"can_configure_auto_lock"
|
|
54655
54829
|
],
|
|
54656
54830
|
type: "string"
|
|
54657
54831
|
},
|
|
@@ -56138,7 +56312,8 @@ var openapi_default = {
|
|
|
56138
56312
|
"can_program_thermostat_programs_as_same_each_day",
|
|
56139
56313
|
"can_simulate_hub_connection",
|
|
56140
56314
|
"can_simulate_hub_disconnection",
|
|
56141
|
-
"can_simulate_paid_subscription"
|
|
56315
|
+
"can_simulate_paid_subscription",
|
|
56316
|
+
"can_configure_auto_lock"
|
|
56142
56317
|
],
|
|
56143
56318
|
type: "string"
|
|
56144
56319
|
},
|
|
@@ -56170,7 +56345,8 @@ var openapi_default = {
|
|
|
56170
56345
|
"can_program_thermostat_programs_as_same_each_day",
|
|
56171
56346
|
"can_simulate_hub_connection",
|
|
56172
56347
|
"can_simulate_hub_disconnection",
|
|
56173
|
-
"can_simulate_paid_subscription"
|
|
56348
|
+
"can_simulate_paid_subscription",
|
|
56349
|
+
"can_configure_auto_lock"
|
|
56174
56350
|
],
|
|
56175
56351
|
type: "string"
|
|
56176
56352
|
},
|
|
@@ -56463,7 +56639,8 @@ var openapi_default = {
|
|
|
56463
56639
|
"can_program_thermostat_programs_as_same_each_day",
|
|
56464
56640
|
"can_simulate_hub_connection",
|
|
56465
56641
|
"can_simulate_hub_disconnection",
|
|
56466
|
-
"can_simulate_paid_subscription"
|
|
56642
|
+
"can_simulate_paid_subscription",
|
|
56643
|
+
"can_configure_auto_lock"
|
|
56467
56644
|
],
|
|
56468
56645
|
type: "string"
|
|
56469
56646
|
},
|
|
@@ -56491,7 +56668,8 @@ var openapi_default = {
|
|
|
56491
56668
|
"can_program_thermostat_programs_as_same_each_day",
|
|
56492
56669
|
"can_simulate_hub_connection",
|
|
56493
56670
|
"can_simulate_hub_disconnection",
|
|
56494
|
-
"can_simulate_paid_subscription"
|
|
56671
|
+
"can_simulate_paid_subscription",
|
|
56672
|
+
"can_configure_auto_lock"
|
|
56495
56673
|
],
|
|
56496
56674
|
type: "string"
|
|
56497
56675
|
},
|
|
@@ -58285,6 +58463,75 @@ var openapi_default = {
|
|
|
58285
58463
|
"x-title": "List Instant Keys"
|
|
58286
58464
|
}
|
|
58287
58465
|
},
|
|
58466
|
+
"/locks/configure_auto_lock": {
|
|
58467
|
+
post: {
|
|
58468
|
+
description: "Configures the auto-lock setting for a specified [lock](https://docs.seam.co/latest/capability-guides/smart-locks).",
|
|
58469
|
+
operationId: "locksConfigureAutoLockPost",
|
|
58470
|
+
requestBody: {
|
|
58471
|
+
content: {
|
|
58472
|
+
"application/json": {
|
|
58473
|
+
schema: {
|
|
58474
|
+
properties: {
|
|
58475
|
+
auto_lock_delay_seconds: {
|
|
58476
|
+
description: "Delay in seconds before the lock automatically locks. Required when enabling auto-lock. Must be between 1 and 60.",
|
|
58477
|
+
format: "float",
|
|
58478
|
+
maximum: 60,
|
|
58479
|
+
minimum: 1,
|
|
58480
|
+
type: "number"
|
|
58481
|
+
},
|
|
58482
|
+
auto_lock_enabled: {
|
|
58483
|
+
description: "Whether to enable or disable auto-lock.",
|
|
58484
|
+
type: "boolean"
|
|
58485
|
+
},
|
|
58486
|
+
device_id: {
|
|
58487
|
+
description: "ID of the lock for which you want to configure the auto-lock.",
|
|
58488
|
+
format: "uuid",
|
|
58489
|
+
type: "string"
|
|
58490
|
+
}
|
|
58491
|
+
},
|
|
58492
|
+
required: ["device_id", "auto_lock_enabled"],
|
|
58493
|
+
type: "object"
|
|
58494
|
+
}
|
|
58495
|
+
}
|
|
58496
|
+
}
|
|
58497
|
+
},
|
|
58498
|
+
responses: {
|
|
58499
|
+
200: {
|
|
58500
|
+
content: {
|
|
58501
|
+
"application/json": {
|
|
58502
|
+
schema: {
|
|
58503
|
+
properties: {
|
|
58504
|
+
action_attempt: {
|
|
58505
|
+
$ref: "#/components/schemas/action_attempt"
|
|
58506
|
+
},
|
|
58507
|
+
ok: { type: "boolean" }
|
|
58508
|
+
},
|
|
58509
|
+
required: ["action_attempt", "ok"],
|
|
58510
|
+
type: "object"
|
|
58511
|
+
}
|
|
58512
|
+
}
|
|
58513
|
+
},
|
|
58514
|
+
description: "OK"
|
|
58515
|
+
},
|
|
58516
|
+
400: { description: "Bad Request" },
|
|
58517
|
+
401: { description: "Unauthorized" }
|
|
58518
|
+
},
|
|
58519
|
+
security: [
|
|
58520
|
+
{ client_session: [] },
|
|
58521
|
+
{ pat_with_workspace: [] },
|
|
58522
|
+
{ console_session_with_workspace: [] },
|
|
58523
|
+
{ api_key: [] }
|
|
58524
|
+
],
|
|
58525
|
+
summary: "/locks/configure_auto_lock",
|
|
58526
|
+
tags: ["/locks"],
|
|
58527
|
+
"x-action-attempt-type": "CONFIGURE_AUTO_LOCK",
|
|
58528
|
+
"x-fern-sdk-group-name": ["locks"],
|
|
58529
|
+
"x-fern-sdk-method-name": "configure_auto_lock",
|
|
58530
|
+
"x-fern-sdk-return-value": "action_attempt",
|
|
58531
|
+
"x-response-key": "action_attempt",
|
|
58532
|
+
"x-title": "Configure Auto-Lock"
|
|
58533
|
+
}
|
|
58534
|
+
},
|
|
58288
58535
|
"/locks/get": {
|
|
58289
58536
|
get: {
|
|
58290
58537
|
description: "Returns a specified [lock](https://docs.seam.co/latest/capability-guides/smart-locks).",
|
|
@@ -58639,7 +58886,8 @@ var openapi_default = {
|
|
|
58639
58886
|
"can_program_thermostat_programs_as_same_each_day",
|
|
58640
58887
|
"can_simulate_hub_connection",
|
|
58641
58888
|
"can_simulate_hub_disconnection",
|
|
58642
|
-
"can_simulate_paid_subscription"
|
|
58889
|
+
"can_simulate_paid_subscription",
|
|
58890
|
+
"can_configure_auto_lock"
|
|
58643
58891
|
],
|
|
58644
58892
|
type: "string"
|
|
58645
58893
|
},
|
|
@@ -58671,7 +58919,8 @@ var openapi_default = {
|
|
|
58671
58919
|
"can_program_thermostat_programs_as_same_each_day",
|
|
58672
58920
|
"can_simulate_hub_connection",
|
|
58673
58921
|
"can_simulate_hub_disconnection",
|
|
58674
|
-
"can_simulate_paid_subscription"
|
|
58922
|
+
"can_simulate_paid_subscription",
|
|
58923
|
+
"can_configure_auto_lock"
|
|
58675
58924
|
],
|
|
58676
58925
|
type: "string"
|
|
58677
58926
|
},
|
|
@@ -58884,7 +59133,8 @@ var openapi_default = {
|
|
|
58884
59133
|
"can_program_thermostat_programs_as_same_each_day",
|
|
58885
59134
|
"can_simulate_hub_connection",
|
|
58886
59135
|
"can_simulate_hub_disconnection",
|
|
58887
|
-
"can_simulate_paid_subscription"
|
|
59136
|
+
"can_simulate_paid_subscription",
|
|
59137
|
+
"can_configure_auto_lock"
|
|
58888
59138
|
],
|
|
58889
59139
|
type: "string"
|
|
58890
59140
|
},
|
|
@@ -58912,7 +59162,8 @@ var openapi_default = {
|
|
|
58912
59162
|
"can_program_thermostat_programs_as_same_each_day",
|
|
58913
59163
|
"can_simulate_hub_connection",
|
|
58914
59164
|
"can_simulate_hub_disconnection",
|
|
58915
|
-
"can_simulate_paid_subscription"
|
|
59165
|
+
"can_simulate_paid_subscription",
|
|
59166
|
+
"can_configure_auto_lock"
|
|
58916
59167
|
],
|
|
58917
59168
|
type: "string"
|
|
58918
59169
|
},
|
|
@@ -59430,7 +59681,8 @@ var openapi_default = {
|
|
|
59430
59681
|
"can_program_thermostat_programs_as_same_each_day",
|
|
59431
59682
|
"can_simulate_hub_connection",
|
|
59432
59683
|
"can_simulate_hub_disconnection",
|
|
59433
|
-
"can_simulate_paid_subscription"
|
|
59684
|
+
"can_simulate_paid_subscription",
|
|
59685
|
+
"can_configure_auto_lock"
|
|
59434
59686
|
],
|
|
59435
59687
|
type: "string"
|
|
59436
59688
|
},
|
|
@@ -59462,7 +59714,8 @@ var openapi_default = {
|
|
|
59462
59714
|
"can_program_thermostat_programs_as_same_each_day",
|
|
59463
59715
|
"can_simulate_hub_connection",
|
|
59464
59716
|
"can_simulate_hub_disconnection",
|
|
59465
|
-
"can_simulate_paid_subscription"
|
|
59717
|
+
"can_simulate_paid_subscription",
|
|
59718
|
+
"can_configure_auto_lock"
|
|
59466
59719
|
],
|
|
59467
59720
|
type: "string"
|
|
59468
59721
|
},
|
|
@@ -59619,7 +59872,8 @@ var openapi_default = {
|
|
|
59619
59872
|
"can_program_thermostat_programs_as_same_each_day",
|
|
59620
59873
|
"can_simulate_hub_connection",
|
|
59621
59874
|
"can_simulate_hub_disconnection",
|
|
59622
|
-
"can_simulate_paid_subscription"
|
|
59875
|
+
"can_simulate_paid_subscription",
|
|
59876
|
+
"can_configure_auto_lock"
|
|
59623
59877
|
],
|
|
59624
59878
|
type: "string"
|
|
59625
59879
|
},
|
|
@@ -59647,7 +59901,8 @@ var openapi_default = {
|
|
|
59647
59901
|
"can_program_thermostat_programs_as_same_each_day",
|
|
59648
59902
|
"can_simulate_hub_connection",
|
|
59649
59903
|
"can_simulate_hub_disconnection",
|
|
59650
|
-
"can_simulate_paid_subscription"
|
|
59904
|
+
"can_simulate_paid_subscription",
|
|
59905
|
+
"can_configure_auto_lock"
|
|
59651
59906
|
],
|
|
59652
59907
|
type: "string"
|
|
59653
59908
|
},
|
|
@@ -67362,6 +67617,11 @@ var openapi_default = {
|
|
|
67362
67617
|
description: "Indicates whether the customer can manage reservations for their properties.",
|
|
67363
67618
|
type: "boolean"
|
|
67364
67619
|
},
|
|
67620
|
+
exclude_reservation_technical_details: {
|
|
67621
|
+
default: false,
|
|
67622
|
+
description: "Indicates whether to exclude technical details from reservation views.",
|
|
67623
|
+
type: "boolean"
|
|
67624
|
+
},
|
|
67365
67625
|
exclude_staff_management: {
|
|
67366
67626
|
default: false,
|
|
67367
67627
|
description: "Indicates whether the customer can manage staff for their properties.",
|
|
@@ -67730,6 +67990,11 @@ var openapi_default = {
|
|
|
67730
67990
|
description: "Indicates whether the customer can manage reservations for their properties.",
|
|
67731
67991
|
type: "boolean"
|
|
67732
67992
|
},
|
|
67993
|
+
exclude_reservation_technical_details: {
|
|
67994
|
+
default: false,
|
|
67995
|
+
description: "Indicates whether to exclude technical details from reservation views.",
|
|
67996
|
+
type: "boolean"
|
|
67997
|
+
},
|
|
67733
67998
|
exclude_staff_management: {
|
|
67734
67999
|
default: false,
|
|
67735
68000
|
description: "Indicates whether the customer can manage staff for their properties.",
|
|
@@ -73877,7 +74142,8 @@ var openapi_default = {
|
|
|
73877
74142
|
"can_program_thermostat_programs_as_same_each_day",
|
|
73878
74143
|
"can_simulate_hub_connection",
|
|
73879
74144
|
"can_simulate_hub_disconnection",
|
|
73880
|
-
"can_simulate_paid_subscription"
|
|
74145
|
+
"can_simulate_paid_subscription",
|
|
74146
|
+
"can_configure_auto_lock"
|
|
73881
74147
|
],
|
|
73882
74148
|
type: "string"
|
|
73883
74149
|
},
|
|
@@ -73909,7 +74175,8 @@ var openapi_default = {
|
|
|
73909
74175
|
"can_program_thermostat_programs_as_same_each_day",
|
|
73910
74176
|
"can_simulate_hub_connection",
|
|
73911
74177
|
"can_simulate_hub_disconnection",
|
|
73912
|
-
"can_simulate_paid_subscription"
|
|
74178
|
+
"can_simulate_paid_subscription",
|
|
74179
|
+
"can_configure_auto_lock"
|
|
73913
74180
|
],
|
|
73914
74181
|
type: "string"
|
|
73915
74182
|
},
|
|
@@ -74080,7 +74347,8 @@ var openapi_default = {
|
|
|
74080
74347
|
"can_program_thermostat_programs_as_same_each_day",
|
|
74081
74348
|
"can_simulate_hub_connection",
|
|
74082
74349
|
"can_simulate_hub_disconnection",
|
|
74083
|
-
"can_simulate_paid_subscription"
|
|
74350
|
+
"can_simulate_paid_subscription",
|
|
74351
|
+
"can_configure_auto_lock"
|
|
74084
74352
|
],
|
|
74085
74353
|
type: "string"
|
|
74086
74354
|
},
|
|
@@ -74108,7 +74376,8 @@ var openapi_default = {
|
|
|
74108
74376
|
"can_program_thermostat_programs_as_same_each_day",
|
|
74109
74377
|
"can_simulate_hub_connection",
|
|
74110
74378
|
"can_simulate_hub_disconnection",
|
|
74111
|
-
"can_simulate_paid_subscription"
|
|
74379
|
+
"can_simulate_paid_subscription",
|
|
74380
|
+
"can_configure_auto_lock"
|
|
74112
74381
|
],
|
|
74113
74382
|
type: "string"
|
|
74114
74383
|
},
|